hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
26ec32f2c21ea1a786f7d3145e51d8f437d0a65b
5,837
sql
SQL
kontaktor_db.sql
vivina333/SIMKU
b24b265a8ca99fcb2a380e031e16211bfda6cdbf
[ "MIT" ]
null
null
null
kontaktor_db.sql
vivina333/SIMKU
b24b265a8ca99fcb2a380e031e16211bfda6cdbf
[ "MIT" ]
null
null
null
kontaktor_db.sql
vivina333/SIMKU
b24b265a8ca99fcb2a380e031e16211bfda6cdbf
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 13 Jan 2020 pada 14.49 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `kontaktor_db` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_bahan` -- CREATE TABLE `tb_bahan` ( `id_bahan` int(11) NOT NULL, `nama_bahan` varchar(50) NOT NULL, `jumlah` int(11) NOT NULL, `satuan` varchar(50) NOT NULL, `harga_satuan` int(11) NOT NULL, `harga_total` int(11) NOT NULL, `id_projek` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_jmlbiaya` -- CREATE TABLE `tb_jmlbiaya` ( `id_jmlbiaya` int(11) NOT NULL, `id_projek` int(11) NOT NULL, `uraian` varchar(50) NOT NULL, `volume` int(11) NOT NULL, `luas` int(11) NOT NULL, `harga_satuan` int(11) NOT NULL, `harga_total` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_jmlbiaya` -- INSERT INTO `tb_jmlbiaya` (`id_jmlbiaya`, `id_projek`, `uraian`, `volume`, `luas`, `harga_satuan`, `harga_total`) VALUES (22, 2, 'abcd', 2, 10, 1000, 10000), (25, 1, 'bgd', 3, 10, 200, 2000); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_login` -- CREATE TABLE `tb_login` ( `id_login` int(11) NOT NULL, `username` varchar(50) NOT NULL, `PASSWORD` varchar(50) NOT NULL, `level` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_login` -- INSERT INTO `tb_login` (`id_login`, `username`, `PASSWORD`, `level`) VALUES (1, 'soviah', '12345', 'admin'), (2, 'marshel', '2302', 'user'), (3, 'renita', '1212', 'user'), (4, 'aldy', '1402', 'user'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_proses` -- CREATE TABLE `tb_proses` ( `id_proses` int(11) NOT NULL, `nama_mandor` varchar(100) NOT NULL, `foto` varchar(100) NOT NULL, `waktu` date NOT NULL, `ket` text NOT NULL, `id_proyek` int(11) NOT NULL, `id_mandor` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_proyek` -- CREATE TABLE `tb_proyek` ( `id_projek` int(11) NOT NULL, `nama_proyek` varchar(100) NOT NULL, `nama_mandor` varchar(100) NOT NULL, `lokasi` text NOT NULL, `luas` int(11) NOT NULL, `tanggal` date NOT NULL, `id_login` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_proyek` -- INSERT INTO `tb_proyek` (`id_projek`, `nama_proyek`, `nama_mandor`, `lokasi`, `luas`, `tanggal`, `id_login`) VALUES (1, 'Gedung serbaguna', 'marshel', 'Jl. Jember Utara No.21 Kabupaten Jember', 500, '2020-01-15', 1), (2, 'gedung karoke', 'rafif', 'jl.jember gajah mada', 1000, '2020-01-15', 1); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `tb_bahan` -- ALTER TABLE `tb_bahan` ADD PRIMARY KEY (`id_bahan`), ADD KEY `id_proyek` (`id_projek`); -- -- Indeks untuk tabel `tb_jmlbiaya` -- ALTER TABLE `tb_jmlbiaya` ADD PRIMARY KEY (`id_jmlbiaya`), ADD KEY `id_projek` (`id_projek`); -- -- Indeks untuk tabel `tb_login` -- ALTER TABLE `tb_login` ADD PRIMARY KEY (`id_login`); -- -- Indeks untuk tabel `tb_proses` -- ALTER TABLE `tb_proses` ADD PRIMARY KEY (`id_proses`), ADD KEY `id_mandor` (`id_mandor`), ADD KEY `id_proyek` (`id_proyek`); -- -- Indeks untuk tabel `tb_proyek` -- ALTER TABLE `tb_proyek` ADD PRIMARY KEY (`id_projek`), ADD KEY `id_login` (`id_login`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `tb_bahan` -- ALTER TABLE `tb_bahan` MODIFY `id_bahan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT untuk tabel `tb_jmlbiaya` -- ALTER TABLE `tb_jmlbiaya` MODIFY `id_jmlbiaya` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- -- AUTO_INCREMENT untuk tabel `tb_login` -- ALTER TABLE `tb_login` MODIFY `id_login` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `tb_proses` -- ALTER TABLE `tb_proses` MODIFY `id_proses` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT untuk tabel `tb_proyek` -- ALTER TABLE `tb_proyek` MODIFY `id_projek` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `tb_bahan` -- ALTER TABLE `tb_bahan` ADD CONSTRAINT `tb_bahan_ibfk_1` FOREIGN KEY (`id_projek`) REFERENCES `tb_proyek` (`id_projek`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `tb_jmlbiaya` -- ALTER TABLE `tb_jmlbiaya` ADD CONSTRAINT `tb_jmlbiaya_ibfk_1` FOREIGN KEY (`id_projek`) REFERENCES `tb_proyek` (`id_projek`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `tb_proses` -- ALTER TABLE `tb_proses` ADD CONSTRAINT `tb_proses_ibfk_1` FOREIGN KEY (`id_proyek`) REFERENCES `tb_proyek` (`id_projek`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `tb_proyek` -- ALTER TABLE `tb_proyek` ADD CONSTRAINT `tb_proyek_ibfk_1` FOREIGN KEY (`id_login`) REFERENCES `tb_login` (`id_login`); 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 */;
25.051502
137
0.661813
3f63d09ac63c53e46da7eaef4ec3f9cd32e43127
73
rb
Ruby
test/helpers/review_helper_test.rb
AddJam/glasgow-cycling-api
e17dbcee8de16a71b40bc008671c16f92fdef913
[ "MIT" ]
null
null
null
test/helpers/review_helper_test.rb
AddJam/glasgow-cycling-api
e17dbcee8de16a71b40bc008671c16f92fdef913
[ "MIT" ]
null
null
null
test/helpers/review_helper_test.rb
AddJam/glasgow-cycling-api
e17dbcee8de16a71b40bc008671c16f92fdef913
[ "MIT" ]
1
2021-04-11T08:25:31.000Z
2021-04-11T08:25:31.000Z
require 'test_helper' class ReviewHelperTest < ActionView::TestCase end
14.6
45
0.821918
e776b388a9da58c59dc7d18e1bdc9dd8902ba5e8
7,402
php
PHP
resources/views/frontend/deposit.blade.php
farahnaz-a/beehive
f752e1a2f7b696622d13fc82fbb5cd3dc21f8d39
[ "MIT" ]
null
null
null
resources/views/frontend/deposit.blade.php
farahnaz-a/beehive
f752e1a2f7b696622d13fc82fbb5cd3dc21f8d39
[ "MIT" ]
null
null
null
resources/views/frontend/deposit.blade.php
farahnaz-a/beehive
f752e1a2f7b696622d13fc82fbb5cd3dc21f8d39
[ "MIT" ]
null
null
null
@extends('layouts.logindash') @section('content') <div class="hero"> <div class="container"> <div class="w-row"> <div class="column-80 w-col w-col-8"> <div class="div-block-6433"> <div class="div-block-6434"> <h5 class="heading-193">Balance totale<span class="text-span-242"></span></h5> </div> <div class="div-block-6435"> <h3 class="heading-203">{{ Auth::user()->balance ?? 0 }} {{ Auth::user()->currency ?? '€' }}</h3> </div> </div> <div class="div-block-6432"> <div data-duration-in="300" data-duration-out="100" class="tabs-22 w-tabs"> <div class="tabs-menu-24 w-tab-menu"> <a data-w-tab="Tab 2" class="tab-link-tab-2-28 w-inline-block w-tab-link w--current"> <div>Deposer</div> </a> <a data-w-tab="Tab 1" class="tab-link-tab-1-83 w-inline-block w-tab-link "> <div>Retirer</div> </a> </div> <div class="tabs-content-21 w-tab-content"> <div data-w-tab="Tab 1" class="w-tab-pane w--tab-active"> <div class="div-block-6436"> <p>Fait un virement depuis votre compte bancaire avec votre symbole variable. <br><br>Il est possible de déposer uniquement des Euros envoyées par l&#x27;une des <strong>banques européennes.</strong><br><br>Nous vous recommandons d&#x27;utiliser le paiement instantané de votre banque. <br><br>Avec un paiement régulier, l&#x27;argent arrivera dans les 48 heures en moyenne.</p> </div> <div class="div-block-6437"> <div class="div-block-6442"> <h5>Virement bancaire</h5> <div class="text-block-563">xxxxxxxxxxx/xxxxx</div> <div class="text-block-564">Compte bancaire</div> </div> <div class="div-block-6443"> <div class="text-block-567">QR CODE</div> </div> </div> </div> <div data-w-tab="Tab 2" class="w-tab-pane"> <div class="div-block-6444"> <div class="div-block-345"> <div class="w-form"> <form data-name="Email Form 3" action="{{ route('mollie.payment') }}" method="POST"> @csrf <h5 class="heading-40">1. Sélectionne la devise et le mode de paiement</h5> <select id="field-3" name="currency" class="input-field w-select"> <option value="EUR">Euro</option> <option value="GBP">Pound</option> </select> </div> </div> <div class="div-block-351"> <div> <h5 class="heading-40">2. Détails du paiement</h5> </div> <div class="w-form"> <input type="text" class="input-field w-input" maxlength="256" name="amount" placeholder="Amount" id="amount"> <div class="div-block-567"> <div class="paragraph left"><span class="text-span-198">Frais de transaction :</span> 0.00 €</div> <div class="paragraph left"><span class="text-span-199">Tu recevras :</span> <span id="rcv">0.00 €</span> </div> </div> <div class="div-block-352"> <input type="submit" value="Continuer" class="button w-button"></div> </form> </div> </div> </div> </div> </div> </div> </div> </div> <div class="column-79 w-col w-col-4"> <div class="div-block-6441"> <div class="card_ghost_shadow"> <div class="div-block-6439"> <h4 class="h4_withoutpadding">Besoin d&#x27;aide?</h4> <div class="div-block-6446"> <div> <div class="div-block-6440"><img src="{{ asset('depo_assets/images/message-circle.svg') }}" loading="lazy" alt="" class="image-167"> <div class="text-block-566">Ouvrir le tchat</div> </div> </div> <div> <div class="div-block-6440"><img src="{{ asset('depo_assets/images/60dca32b27ab1d0f7948dab0_mail.svg') }}" loading="lazy" alt="" class="image-168"> <div class="text-block-566">help@b-hives.fr</div> </div> </div> <div> <div class="div-block-6440"><img src="{{ asset('depo_assets/images/whatsapp.jpg') }}" loading="lazy" width="20" alt="" class="image-166"> <div class="text-block-566">+xxx xxx xxx</div> </div> </div> </div> </div> </div> <div class="card_ghost_shadow"> <h4 class="h4_withoutpadding">Aide / Faq</h4> <div class="div-block-6447"> <p class="paragraph-45">‍<strong>Can I send money from an account that is not held in my name?<br>‍</strong>Unfortunately no. Money is only accepted from bank accounts held in your name.<br>‍<br>‍<strong>How can I withdraw my money?<br>‍</strong>Available money can be withdrawn at any time. Just open the Withdrawal section, enter the amount and choose the account to which you want to send the money.<br>‍<br>‍<strong>What if I enter wrong payment data?<br>‍</strong>If this happens, contact us as soon as possible. We will work together to identify your transaction and resolve the issue.</p> </div> </div> </div> </div> </div> <div class="nav-bottom"> <div class="w-layout-grid grid-55"> <a href="dashboard.html" class="w-inline-block"><img src="{{ asset('depo_assets/images/60dca32b27ab1dae5648da31_bar-chart-2.svg') }}" loading="lazy" alt=""></a> <a href="make-a-deposit.html" aria-current="page" class="w-inline-block w--current"><img src="{{ asset('depo_assets/images/dollar-sign.svg') }}" loading="lazy" alt=""></a> <a href="#" class="w-inline-block"><img src="{{ asset('depo_assets/images/60dca32b27ab1db1b948d78e_search.svg') }}" loading="lazy" width="30" alt=""></a> <a href="#" class="w-inline-block"><img src="{{ asset('depo_assets/images/60dca32b27ab1d092448da94_heart.svg') }}" loading="lazy" alt=""></a> <a href="#" class="w-inline-block"><img src="{{ asset('depo_assets/images/60dca32b27ab1d93c348da3b_bell.svg') }}" loading="lazy" alt=""></a> </div> </div> </div> </div> @endsection @section('js') <script> $(document).ready(function (){ $("#amount").keyup(function(){ let value = $("#amount").val() + '.00 €'; $("#rcv").text(value); }); }); </script> @endsection
54.426471
611
0.493785
cd1b44a44f251320debc189a16946a37b0342541
4,403
cs
C#
Public/Src/Utilities/Utilities/LineInfo.cs
miniksa/BuildXL
4dc257a82a6126fe7516f15fa6f505c14c122ffb
[ "MIT" ]
448
2018-11-07T21:00:58.000Z
2019-05-06T17:29:34.000Z
Public/Src/Utilities/Utilities/LineInfo.cs
miniksa/BuildXL
4dc257a82a6126fe7516f15fa6f505c14c122ffb
[ "MIT" ]
496
2019-05-06T21:38:22.000Z
2022-03-14T18:17:14.000Z
Public/Src/Utilities/Utilities/LineInfo.cs
miniksa/BuildXL
4dc257a82a6126fe7516f15fa6f505c14c122ffb
[ "MIT" ]
88
2019-05-08T08:28:45.000Z
2022-03-24T23:43:21.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.ContractsLight; using static BuildXL.Utilities.FormattableStringEx; namespace BuildXL.Utilities { /// <summary> /// The token class tracks the location information during parsing. /// </summary> [DebuggerDisplay("{ToDebuggerDisplay(),nq}")] public readonly struct LineInfo : IEquatable<LineInfo> { /// <summary> /// Static singleton invalid value. /// </summary> public static readonly LineInfo Invalid = default(LineInfo); /// <summary> /// Line number of the token /// </summary> public readonly int Line; /// <summary> /// Column number of the token /// </summary> public readonly int Position; /// <summary> /// Whether this value is different from <see cref="LineInfo.Invalid"/>. /// </summary> public bool IsValid => !Equals(Invalid); /// <summary> /// Constructs a token. /// </summary> /// <param name="line">Line number of the token</param> /// <param name="column">Column number of the token</param> public LineInfo(int line, int column) { Line = line; Position = column; } internal void Serialize(BuildXLWriter writer) { Contract.RequiresNotNull(writer); writer.WriteCompact(Line); writer.WriteCompact(Position); } internal static LineInfo Deserialize(BuildXLReader reader) { Contract.RequiresNotNull(reader); var line = reader.ReadInt32Compact(); var position = reader.ReadInt32Compact(); return new LineInfo(line, position); } /// <summary> /// Implicit conversion of Token to LineInfo. /// </summary> public static implicit operator LineInfo(Token token) { return token == null ? default(LineInfo) : new LineInfo(token.Line, token.Position); } /// <summary> /// Implicit conversion of Token to LineInfo. /// </summary> public static implicit operator LineInfo(TokenTextData token) { return token == null ? default(LineInfo) : new LineInfo(token.Line, token.Position); } /// <summary> /// Implicit conversion of TokenData to LineInfo. /// </summary> public static implicit operator LineInfo(TokenData token) { return !token.IsValid ? default(LineInfo) : new LineInfo(token.Line, token.Position); } /// <summary> /// Converts this LineInfo to a LocationData with the given path. /// </summary> public LocationData ToLocationData(AbsolutePath path) { return !path.IsValid ? LocationData.Invalid : new LocationData(path, Line, Position); } /// <summary> /// Implicit conversion of LocationData to LineInfo. /// </summary> public static implicit operator LineInfo(LocationData location) { return new LineInfo(location.Line, location.Position); } /// <inheritdoc /> public override int GetHashCode() { return HashCodeHelper.Combine(Line, Position); } /// <inheritdoc /> public bool Equals(LineInfo other) { return other.Position == Position && other.Line == Line; } /// <inheritdoc /> public override bool Equals(object obj) { return StructUtilities.Equals(this, obj); } /// <nodoc /> public static bool operator ==(LineInfo left, LineInfo right) { return left.Equals(right); } /// <nodoc /> public static bool operator !=(LineInfo left, LineInfo right) { return !left.Equals(right); } [SuppressMessage("Microsoft.Performance", "CA1811")] private string ToDebuggerDisplay() { return I($"({Line}, {Position})"); } } }
31.22695
98
0.553259
2f51ff291ce1d87bab56a5a193a8c2e37ed8c6f3
56
js
JavaScript
dist/server/modules/machine-news/aggregates/shop/interfaces/ShopRepository.js
thinhnguyen1105/excado
19ecb8f05fda70e73670ecea8a9f0526a2ec0280
[ "MIT" ]
null
null
null
dist/server/modules/machine-news/aggregates/shop/interfaces/ShopRepository.js
thinhnguyen1105/excado
19ecb8f05fda70e73670ecea8a9f0526a2ec0280
[ "MIT" ]
3
2020-07-18T10:45:49.000Z
2021-08-13T02:26:22.000Z
dist/server/modules/machine-news/aggregates/shop/interfaces/ShopRepository.js
thinhnguyen1105/excado_project
19ecb8f05fda70e73670ecea8a9f0526a2ec0280
[ "MIT" ]
null
null
null
"use strict"; //# sourceMappingURL=ShopRepository.js.map
28
42
0.785714
a10f7e527973ffb89923d78f63266e0aca33a706
116
sql
SQL
sf.sql
Fansion/sharefun
1e6bf742f5921d8dd464ba6074d6c18859118714
[ "MIT" ]
1
2015-01-17T03:17:48.000Z
2015-01-17T03:17:48.000Z
sf.sql
Fansion/sharefun
1e6bf742f5921d8dd464ba6074d6c18859118714
[ "MIT" ]
null
null
null
sf.sql
Fansion/sharefun
1e6bf742f5921d8dd464ba6074d6c18859118714
[ "MIT" ]
null
null
null
-- -- 数据库: `sf` -- CREATE DATABASE IF NOT EXISTS `sf` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `sf`;
19.333333
86
0.706897
6695d2e060a8fbbe940fafa785be5175ebdbb58a
2,234
lua
Lua
Modules/lua-cofsm/test_cofsm.lua
ToyotaResearchInstitute/rad-robot
9a47e4d88382719ab9bf142932fbcc83dcbcd665
[ "MIT" ]
null
null
null
Modules/lua-cofsm/test_cofsm.lua
ToyotaResearchInstitute/rad-robot
9a47e4d88382719ab9bf142932fbcc83dcbcd665
[ "MIT" ]
null
null
null
Modules/lua-cofsm/test_cofsm.lua
ToyotaResearchInstitute/rad-robot
9a47e4d88382719ab9bf142932fbcc83dcbcd665
[ "MIT" ]
2
2018-06-04T12:38:54.000Z
2018-09-22T10:31:27.000Z
#!/usr/bin/env lua5.1 local fsm = require'cofsm' local function botGo() print('Entry', 'ok') local distance = 0 local evt = false while coroutine.yield(evt) do print('Update', 'go', distance) distance = distance + 1 -- error('oops') evt = distance > 3 and 'stop' end print('Exit', 'woo') return 'bye' end local function botStop() print('Entry', 'eek') local distance = 3 local evt = false while coroutine.yield(evt) do print('Update', 'whoa', distance) distance = distance - 1 evt = distance <= 0 and 'go' end print('Exit', 'phew') return 'hi' end print("init...") local botFsm = fsm.new{ {'botStop', botStop}, {'botStop', 'go', 'botGo'}, {'botGo', 'stop', 'botStop'}, } -- Update the coroutines if botFsm.add_coro and true then print("add coro...") botFsm:add_coro('botGo', botGo) end -- Add a new state print("add state...") botFsm:add_state('botThink') print("add transitions...") botFsm:add_transition('botStop', 'think', 'botThink') botFsm:add_transition('botThink', 'done', 'botStop') print('===') print('Simple demo') print('Initial State:', botFsm.current_state) botFsm:enter('botStop') local status, evt for i=1,20 do print(i, 'Current State:', botFsm.current_state) status, evt = botFsm:update() if i == 8 then botFsm:dispatch('go') else botFsm:dispatch(evt) end print("Status/event", status, evt) end print('Final State:', botFsm.current_state) print('===') print() print('Current State:', botFsm.current_state) for i=1, 5 do print('- call', i, botFsm:update()) end print('! Trigger', 'go', botFsm:dispatch'go') print('! Trigger', 'unknown', botFsm:dispatch'go') print('* Current State:', botFsm.current_state) for i=1, 5 do print('- call', i, botFsm:update()) end print('! Trigger', 'go', botFsm:dispatch'go') print('! Trigger', 'stop', botFsm:dispatch'stop') print('* Current State:', botFsm.current_state) for i=1, 5 do print('- call', i, botFsm:update()) end print('! Trigger', 'think', botFsm:dispatch'think') print('* Current State:', botFsm.current_state) for i=1, 5 do print('- call', i, botFsm:update()) end print('! Trigger', 'done', botFsm:dispatch'done') for i=1, 5 do print('- call', i, botFsm:update()) end
23.765957
53
0.653536
389152de284df761b93554f635788b9abc521a41
1,828
php
PHP
tests/TestCase/Domain/User/Service/UserReaderTest.php
edgd1er/slim4api
56d44083ccc1f5e5f5d90964a2c441225a42b7d3
[ "MIT" ]
2
2021-02-13T13:45:28.000Z
2021-02-16T20:23:18.000Z
tests/TestCase/Domain/User/Service/UserReaderTest.php
edgd1er/slim4api
56d44083ccc1f5e5f5d90964a2c441225a42b7d3
[ "MIT" ]
null
null
null
tests/TestCase/Domain/User/Service/UserReaderTest.php
edgd1er/slim4api
56d44083ccc1f5e5f5d90964a2c441225a42b7d3
[ "MIT" ]
4
2020-08-27T20:13:12.000Z
2021-06-01T15:50:27.000Z
<?php namespace Tests\TestCase\Domain\User\Service; use App\Domain\User\Data\UserData; use App\Domain\User\Repository\UserReaderRepository; use App\Domain\User\Service\UserReader; use App\Exception\ValidationException; use PHPUnit\Framework\TestCase; use Tests\AppTestTrait; class UserReaderTest extends TestCase { use AppTestTrait; public function testGetCustomerDetailsOK() { $cd = new UserData(1, "name", "adress", "city", "phone", "email"); // Mock the required repository method $this->mock(UserReaderRepository::class)->method('getUserById')->with('1')->willReturn($cd); $service = $this->container->get(UserReader::class); $actual = $service->getUserDetails(1); static::assertSame($cd, $actual); } public function testGetCustomerDetailsKoEmptyParam() { $cd = new UserData(1, "name", "adress", "city", "phone", "email"); // Mock the required repository method $this->mock(UserReaderRepository::class)->method('getUserById')->withAnyParameters(); $service = $this->container->get(UserReader::class); $this->expectException(ValidationException::class); $this->expectExceptionMessage('User ID required'); $actual = $service->getUserDetails(null); } public function testGetCustomerDetailsKoCustomerNotFound() { $cd = new UserData(1, "name", "adress", "city", "phone", "email"); // Mock the required repository method $this->mock(UserReaderRepository::class)->method('getUserById')->withAnyParameters(); $service = $this->container->get(UserReader::class); $this->expectException(ValidationException::class); $this->expectExceptionMessage('User ID required'); $actual = $service->getUserDetails(null); } }
29.015873
100
0.667943
f859ff86e6bbd31312c1bf0374cb4b5a12d177c0
597
bats
Shell
tests/make/ec_lint_success.bats
dwc0011/tardigrade-ci
d0d5095f8b339ce1d4803e6b8625edb0e272f1a1
[ "Apache-2.0" ]
2
2021-12-11T00:32:08.000Z
2021-12-11T00:32:11.000Z
tests/make/ec_lint_success.bats
dwc0011/tardigrade-ci
d0d5095f8b339ce1d4803e6b8625edb0e272f1a1
[ "Apache-2.0" ]
273
2020-08-18T14:47:43.000Z
2022-03-31T23:01:41.000Z
tests/make/ec_lint_success.bats
dwc0011/tardigrade-ci
d0d5095f8b339ce1d4803e6b8625edb0e272f1a1
[ "Apache-2.0" ]
10
2020-01-17T15:25:59.000Z
2022-02-09T13:47:51.000Z
#!/usr/bin/env bats TEST_DIR="$(pwd)/ec_lint_success" # generate a test terraform project with a nested project function setup() { rm -rf "$TEST_DIR" working_dirs=("$TEST_DIR" "$TEST_DIR/nested") for working_dir in "${working_dirs[@]}" do mkdir -p "$working_dir" cat > "$working_dir/Makefile" <<"EOF" echo "foo" EOF done } @test "ec/lint: success" { # The 'ec/lint' Makefile target excludes *.bats files. ECLINT_FILES=$(find "${TEST_DIR}" -type f | xargs echo) run make ec/lint ECLINT_FILES="${ECLINT_FILES}" [ "$status" -eq 0 ] } function teardown() { rm -r -f "$TEST_DIR" }
19.258065
57
0.670017
e2f47f0f6b2eb1930b72f4aa8c314033d4a6ad7a
325
py
Python
Easy/number_of_lines_to_write_stirng.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Easy/number_of_lines_to_write_stirng.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Easy/number_of_lines_to_write_stirng.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
class Solution: def numberOfLines(self, widths: List[int], s: str) -> List[int]: s = list(s); lines = 1; line = 0 while s: if line + widths[ord(s[0])-97] > 100: lines += 1; line = 0 else: line += widths[ord(s.pop(0))-97] return [lines, line]
36.111111
68
0.467692
a08dd5fdba3ed087139250fca1777299d3eb3940
444
rs
Rust
src/lib.rs
MaulingMonkey/winstr
fc18ad15498695b86379aed89b55bcff9a58cd2b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/lib.rs
MaulingMonkey/winstr
fc18ad15498695b86379aed89b55bcff9a58cd2b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/lib.rs
MaulingMonkey/winstr
fc18ad15498695b86379aed89b55bcff9a58cd2b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-10-09T08:55:13.000Z
2021-10-09T08:55:13.000Z
#![deny(unsafe_code)] #![cfg_attr(not(feature = "display"), allow(unused_imports))] #[doc(hidden)] pub extern crate winstr_macros; #[cfg(doc)] pub use doc::*; #[cfg(doc)] mod doc { pub mod _alternatives; pub mod _features; } #[cfg(windows)] mod utf16ish; #[cfg(windows)] use utf16ish::*; #[cfg(windows)] #[cfg(feature = "bstr")] #[path="bstring/_bstring.rs"] mod bstring; #[cfg(windows)] #[cfg(feature = "bstr")] pub use bstring::*;
27.75
83
0.653153
a1256505555161f9a3269c0d6543c2dabf1acc92
1,528
ts
TypeScript
src/utils/admin.verify.ts
koppalanaveenkumar/tracking
16417a562f24dafe6b338037f675ec13f4b3a86c
[ "MIT" ]
null
null
null
src/utils/admin.verify.ts
koppalanaveenkumar/tracking
16417a562f24dafe6b338037f675ec13f4b3a86c
[ "MIT" ]
null
null
null
src/utils/admin.verify.ts
koppalanaveenkumar/tracking
16417a562f24dafe6b338037f675ec13f4b3a86c
[ "MIT" ]
null
null
null
import { verify, decode } from 'jsonwebtoken'; import { Request, Response, NextFunction } from 'express'; import config from '../config'; import adminModel from '../models/admin.model'; const adminScret = async (req: any, res: Response, next: NextFunction) => { try { const reqToken: any = req.headers && req.headers.authorization || ''; const token = reqToken.split(' '); if (token && token.length === 2) { const matchToken = token[1]; const verified = verify(matchToken, config.ADMIN_JWT_SECRET); if (verified) { if (token) { const decoded: any = decode(matchToken); if (decoded) { try { const adminDetails: any = await adminModel.findOne({ _id: decoded._id, isActive: true }); if (adminDetails) { req['tokenId'] = decoded._id; next(); } else { res.status(401).json({ adminDetails: true }) } } catch (err) { res.status(500).json({ decoded: false }) } } } } } else { res.status(403).json({ token: "Required" }); } } catch (err) { res.status(500).json({ token: true, err }); } } export default adminScret;
38.2
117
0.447644
14fe068d268988917d8f834a156bed371dbf1fa7
3,767
cpp
C++
oneflow/core/primitive/cpu/elementwise_unary.cpp
shihan-ma/oneflow
1705ec0859aefb4ff07a29ae4255fab70c67464b
[ "Apache-2.0" ]
null
null
null
oneflow/core/primitive/cpu/elementwise_unary.cpp
shihan-ma/oneflow
1705ec0859aefb4ff07a29ae4255fab70c67464b
[ "Apache-2.0" ]
null
null
null
oneflow/core/primitive/cpu/elementwise_unary.cpp
shihan-ma/oneflow
1705ec0859aefb4ff07a29ae4255fab70c67464b
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "oneflow/core/primitive/common/elementwise_unary.h" #include "oneflow/core/primitive/common/unary_functor.h" #include "oneflow/core/primitive/cpu/type_seq.h" namespace oneflow { namespace primitive { namespace { template<UnaryOp unary_op, typename Src, typename Dst> class ElementwiseUnaryImpl : public ElementwiseUnary { public: OF_DISALLOW_COPY_AND_MOVE(ElementwiseUnaryImpl); ElementwiseUnaryImpl() = default; ~ElementwiseUnaryImpl() override = default; void Launch(StreamContext* stream_ctx, const void* src_ptr, void* dst_ptr, size_t count) override { Dst* dst = reinterpret_cast<Dst*>(dst_ptr); const Src* src = reinterpret_cast<const Src*>(src_ptr); for (size_t i = 0; i < count; ++i) { dst[i] = UnaryFunctor<DeviceType::kCPU, unary_op, Dst, Src>()(src[i]); } } }; template<UnaryOp unary_op, typename Src, typename Dst> std::unique_ptr<ElementwiseUnary> NewElementwiseUnary() { return std::unique_ptr<ElementwiseUnary>(new ElementwiseUnaryImpl<unary_op, Src, Dst>()); } class ElementwiseUnaryFactoryImpl : public ElementwiseUnaryFactory { public: OF_DISALLOW_COPY_AND_MOVE(ElementwiseUnaryFactoryImpl); ElementwiseUnaryFactoryImpl() = default; ~ElementwiseUnaryFactoryImpl() override = default; std::unique_ptr<ElementwiseUnary> New(UnaryOp unary_op, DataType src_type, DataType dst_dtype) override { #define MAKE_NEW_SAME_DTYPE_ELEMENTWISE_UNARY_ENTRY(unary_op, dtype_pair) \ {std::make_tuple(unary_op, OF_PP_PAIR_SECOND(dtype_pair), OF_PP_PAIR_SECOND(dtype_pair)), \ NewElementwiseUnary<unary_op, OF_PP_PAIR_FIRST(dtype_pair), OF_PP_PAIR_FIRST(dtype_pair)>}, #define MAKE_NEW_DIFFERENT_DTYPE_ELEMENTWISE_UNARY_ENTRY(unary_op, src_type_pair, dst_dtype_pair) \ {std::make_tuple(unary_op, OF_PP_PAIR_SECOND(src_type_pair), OF_PP_PAIR_SECOND(dst_dtype_pair)), \ NewElementwiseUnary<unary_op, OF_PP_PAIR_FIRST(src_type_pair), \ OF_PP_PAIR_FIRST(dst_dtype_pair)>}, static const std::map<std::tuple<UnaryOp, DataType, DataType>, std::function<std::unique_ptr<ElementwiseUnary>()>> new_elementwise_unary_handle{ OF_PP_SEQ_PRODUCT_FOR_EACH_TUPLE(MAKE_NEW_SAME_DTYPE_ELEMENTWISE_UNARY_ENTRY, UNARY_MATH_OP_SEQ, CPU_PRIMITIVE_NATIVE_TYPE_SEQ) OF_PP_SEQ_PRODUCT_FOR_EACH_TUPLE( MAKE_NEW_DIFFERENT_DTYPE_ELEMENTWISE_UNARY_ENTRY, UNARY_LOGICAL_OP_SEQ, CPU_PRIMITIVE_NATIVE_TYPE_SEQ, CPU_PRIMITIVE_INT8_TYPE_SEQ)}; #undef MAKE_NEW_DIFFERENT_DTYPE_ELEMENTWISE_UNARY_ENTRY #undef MAKE_NEW_SAME_DTYPE_ELEMENTWISE_UNARY_ENTRY const auto it = new_elementwise_unary_handle.find(std::make_tuple(unary_op, src_type, dst_dtype)); if (it != new_elementwise_unary_handle.end()) { return it->second(); } else { return nullptr; } } }; REGISTER_PRIMITIVE_FACTORY(DeviceType::kCPU, ElementwiseUnaryFactory, ElementwiseUnaryFactoryImpl); } // namespace } // namespace primitive } // namespace oneflow
40.074468
100
0.734537
da63ca5f70d9631b01b1e4e2a1705b6d9abaa8a7
4,296
php
PHP
tests/Unit/UserData/Extractor/FacebookTest.php
logical-and/php-oauth
700b769807affc1c5d04ec5a77be69a10a12e52b
[ "MIT" ]
51
2015-03-07T14:20:20.000Z
2021-01-26T14:55:00.000Z
tests/Unit/UserData/Extractor/FacebookTest.php
teknomavi/php-oauth
8274a7f3b4d8ab267274e8cc094ee0849419c6b9
[ "MIT" ]
54
2015-02-11T22:29:33.000Z
2021-08-13T16:48:52.000Z
tests/Unit/UserData/Extractor/FacebookTest.php
logical-and/php-oauth
700b769807affc1c5d04ec5a77be69a10a12e52b
[ "MIT" ]
24
2015-02-21T23:36:49.000Z
2020-12-07T18:56:54.000Z
<?php namespace OAuth\Unit\UserData\Extractor; use OAuth\UserData\Extractor\Facebook; /** * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-02-07 at 22:32:44. */ class FacebookTest extends \PHPUnit_Framework_TestCase { const RESPONSE_PROFILE = '{ "id": "012345678", "name": "John Doe", "first_name": "John", "last_name": "Doe", "link": "https://www.facebook.com/johnnydonny", "birthday": "05/17/1987", "hometown": { "id": "111665038853258", "name": "Catania, Italy" }, "location": { "id": "115353315143936", "name": "Rome, Italy" }, "bio": "A life on the edge", "quotes": "fall seven times - stand up eight", "gender": "male", "email": "johndoe@hotmail.com", "website": "http://blog.foo.com Blog\nhttp://foo.com Portfolio", "timezone": 1, "locale": "it_IT", "verified": true, "updated_time": "2014-02-07T10:57:24+0000", "username": "johnnydonny" }'; const RESPONSE_IMAGE = '{ "data": { "url": "https://fbcdn-profile-a.akamaihd.net/something_n.jpg", "is_silhouette": false } }'; /** * @var Facebook */ protected $extractor; /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $this->extractor = new Facebook(); $service = $this->getMockBuilder('\\OAuth\\OAuth2\\Service\\Facebook') ->disableOriginalConstructor() ->getMock(); $service->expects($this->any()) ->method('requestJSON') ->willReturnCallback( function ($arg) { if ($arg == Facebook::REQUEST_PROFILE) { return json_decode(FacebookTest::RESPONSE_PROFILE, true); } elseif ($arg == Facebook::REQUEST_IMAGE) { return json_decode(FacebookTest::RESPONSE_IMAGE, true); } return null; } ); /** * @var \OAuth\Common\Service\ServiceInterface $service */ $this->extractor->setService($service); } public function testGetUniqueId() { $this->assertEquals('012345678', $this->extractor->getUniqueId()); } public function testGetUsername() { $this->assertEquals('johnnydonny', $this->extractor->getUsername()); } public function testGetFirstName() { $this->assertEquals('John', $this->extractor->getFirstName()); } public function testGetLastName() { $this->assertEquals('Doe', $this->extractor->getLastName()); } public function testGetFullName() { $this->assertEquals('John Doe', $this->extractor->getFullName()); } public function testGetEmail() { $this->assertEquals('johndoe@hotmail.com', $this->extractor->getEmail()); } public function testGetDescription() { $this->assertEquals('A life on the edge', $this->extractor->getDescription()); } public function testGetProfileUrl() { $this->assertEquals('https://www.facebook.com/johnnydonny', $this->extractor->getProfileUrl()); } public function testGetLocation() { $this->assertEquals('Rome, Italy', $this->extractor->getLocation()); } public function testGetWebsites() { $expected = [ 'http://blog.foo.com', 'http://foo.com' ]; $this->assertEquals($expected, $this->extractor->getWebsites()); } public function testGetImageUrl() { $this->assertEquals('https://fbcdn-profile-a.akamaihd.net/something_n.jpg', $this->extractor->getImageUrl()); } public function testIsEmailVerified() { $this->assertTrue($this->extractor->isEmailVerified()); } public function testGetExtra() { $extras = $this->extractor->getExtras(); $this->assertArrayHasKey('birthday', $extras); $this->assertArrayHasKey('hometown', $extras); $this->assertArrayHasKey('quotes', $extras); $this->assertArrayNotHasKey('id', $extras); $this->assertArrayNotHasKey('name', $extras); $this->assertArrayNotHasKey('first_name', $extras); } }
26.68323
117
0.584963
c1b195e590946df21307f0a5266cc09d2bd17026
899
lua
Lua
root/usr/share/vssr/genconfig_hysteria.lua
v03413/luci-app-vssr
122a7b54f9363ff23b318fb10452ce920dd2bac0
[ "MIT" ]
null
null
null
root/usr/share/vssr/genconfig_hysteria.lua
v03413/luci-app-vssr
122a7b54f9363ff23b318fb10452ce920dd2bac0
[ "MIT" ]
null
null
null
root/usr/share/vssr/genconfig_hysteria.lua
v03413/luci-app-vssr
122a7b54f9363ff23b318fb10452ce920dd2bac0
[ "MIT" ]
null
null
null
local ucursor = require 'luci.model.uci'.cursor() local json = require 'luci.jsonc' local server_section = arg[1] local proto = arg[2] local local_port = arg[3] local server = ucursor:get_all('vssr', server_section) local hysteria = { server = server.server .. ":" .. tonumber(server.server_port), obfs = server.h_obfs, up_mbps = tonumber(server.h_up_mbps), down_mbps = tonumber(server.h_down_mbps), insecure = (server.insecure == '1') and true or false, retry = 3, protocol = tostring(server.h_protocol), } if server.h_server_name ~= nil then hysteria["server_name"] = tostring(server.h_server_name) end if proto == "tcp" then hysteria["redirect_tcp"] = { listen = ":" .. local_port, timeout = 300 } else hysteria["tproxy_udp"] = { listen = ":" .. local_port, timeout = 60 } end print(json.stringify(hysteria, 1))
25.685714
66
0.651835
e23b22558ab0ab410322123b21d1add756845f1e
3,166
js
JavaScript
src/client/app/movcaixa/movcaixa.controller.js
jasati/ecold
f5090e387692a0aa82d1342324f428cd476f2c41
[ "MIT" ]
null
null
null
src/client/app/movcaixa/movcaixa.controller.js
jasati/ecold
f5090e387692a0aa82d1342324f428cd476f2c41
[ "MIT" ]
null
null
null
src/client/app/movcaixa/movcaixa.controller.js
jasati/ecold
f5090e387692a0aa82d1342324f428cd476f2c41
[ "MIT" ]
null
null
null
(function () { 'use strict'; angular .module('app.movcaixa') .controller('MovCaixaController', MovCaixaController); MovCaixaController.$inject = ['$q', '$modal', 'logger', 'MovCaixaService', 'routerHelper', 'DataserviseProvider']; /* @ngInject */ function MovCaixaController($q, $modal, logger, MovCaixaService, routerHelper, DataserviseProvider) { var vm = this; vm.title = 'Movimento de Caixa'; vm.movcaixa = []; vm.consulta = {descricao:"",dtini:"", dtfim:"",tipo:""} vm.optionConsulta = [ {valor:"0",desc:"Entrada"}, {valor:"1",desc:"Saida"} ]; vm.totalCaixa = 0; vm.totalRegPag = 15;//quantidade de registro por pagina vm.nPagina = 1;//numero da pagina vm.inicio = 0; vm.getMovCaixa = getMovCaixa; vm.newMovCaixa = newMovCaixa; vm.setPage = setPage; vm.convDate = convDate; activate(); function activate() { var promises = [dataPadrao(),MovCaixaService.startDataset(), getMovCaixa()]; return $q.all(promises).then(function() { logger.info('Janela Caixa Ativada'); }); } function getMovCaixa() { MovCaixaService.read(vm.consulta,getLimite()).then(function(data){ vm.movcaixa = data['reg']; vm.totalReg = data['qtde']; vm.totalCaixa = 0; angular.forEach(vm.movcaixa, function(value, key){ if (value.tipo ==0) { vm.totalCaixa += value.valor; } else { vm.totalCaixa -= value.valor; } }); }); } function newMovCaixa() { var movcaixa = { id_emp:DataserviseProvider.indexGeral.id_emp, id_usuario:DataserviseProvider.indexGeral.id_usuario, data:new Date() }; var modalInstance = $modal.open({ templateUrl: 'app/movcaixa/movcaixa-cadastro.html', controller: 'MovCaixaModalController', controllerAs: 'vm', size: '', backdrop:true, resolve: { MovCaixa: function () { return movcaixa; } } }); modalInstance.result.then(function (save) { MovCaixaService.create(save).then(function(data){ getMovCaixa(); }) }); } function dataPadrao () { var data = new Date(); vm.consulta.dtini = data; vm.consulta.dtfim = data; } function convDate (date) { var dt = new Date(date); return dt; } function getLimite() { vm.inicio = (vm.nPagina - 1) * vm.totalRegPag; return vm.inicio +','+vm.totalRegPag; } function setPage () { getItem(); } } })();
31.346535
118
0.478206
b0dc2211643d9d6be639fdbda1f95b1ab485240f
81
dart
Dart
frontend/base/app/packages/object_storage_repository/lib/object_storage_repository.dart
nicelogic/warmth
e60bfd0f183c3d5971be6eceb26f24cff8284fb6
[ "Apache-2.0" ]
null
null
null
frontend/base/app/packages/object_storage_repository/lib/object_storage_repository.dart
nicelogic/warmth
e60bfd0f183c3d5971be6eceb26f24cff8284fb6
[ "Apache-2.0" ]
null
null
null
frontend/base/app/packages/object_storage_repository/lib/object_storage_repository.dart
nicelogic/warmth
e60bfd0f183c3d5971be6eceb26f24cff8284fb6
[ "Apache-2.0" ]
null
null
null
library object_storage_repository; export 'src/object_storage_repository.dart';
20.25
44
0.864198
e414b2a1b2a703370050c901c1b6dcd62faef9ad
18,002
cs
C#
sdk/identity/Azure.Identity/tests/VisualStudioCodeCredentialLiveTests.cs
zbecknell/azure-sdk-for-net
023cee99e6dfaa084647adc9899254956af1fbb9
[ "MIT" ]
1
2020-04-01T09:55:10.000Z
2020-04-01T09:55:10.000Z
sdk/identity/Azure.Identity/tests/VisualStudioCodeCredentialLiveTests.cs
zbecknell/azure-sdk-for-net
023cee99e6dfaa084647adc9899254956af1fbb9
[ "MIT" ]
154
2019-09-27T03:14:59.000Z
2019-10-14T23:22:19.000Z
sdk/identity/Azure.Identity/tests/VisualStudioCodeCredentialLiveTests.cs
zbecknell/azure-sdk-for-net
023cee99e6dfaa084647adc9899254956af1fbb9
[ "MIT" ]
3
2019-10-07T23:32:16.000Z
2019-10-08T22:28:40.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.IO; using System.Runtime.InteropServices; using System.Text; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; using Azure.Core.TestFramework; using Microsoft.Identity.Client; using NUnit.Framework; namespace Azure.Identity.Tests { public class VisualStudioCodeCredentialLiveTests : RecordedTestBase<IdentityTestEnvironment> { private const string ExpectedServiceName = "VS Code Azure"; public VisualStudioCodeCredentialLiveTests(bool isAsync) : base(isAsync) { Matcher.ExcludeHeaders.Add("Content-Length"); Matcher.ExcludeHeaders.Add("client-request-id"); Matcher.ExcludeHeaders.Add("x-client-OS"); Matcher.ExcludeHeaders.Add("x-client-SKU"); Matcher.ExcludeHeaders.Add("x-client-CPU"); Sanitizer = new IdentityRecordedTestSanitizer(); } [Test] [RunOnlyOnPlatforms(Windows = true, OSX = true)] // Comment this attribute to run this tests on Linux with Libsecret enabled public async Task AuthenticateWithVscCredential() { var tenantId = GetTenantId(); var cloudName = Guid.NewGuid().ToString(); var fileSystem = CreateTestFileSystemService(cloudName: cloudName); using IDisposable fixture = await CreateRefreshTokenFixtureAsync(tenantId, cloudName); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(tenantId, CredentialPipeline.GetInstance(options), fileSystem, default)); AccessToken token = await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None); Assert.IsNotNull(token.Token); } [Test] public async Task AuthenticateWithVscCredential_NoSettingsFile() { var tenantId = GetTenantId(); var refreshToken = await GetRefreshTokenAsync(tenantId); var fileSystemService = new TestFileSystemService { ReadAllHandler = s => throw new FileNotFoundException() }; var vscAdapter = new TestVscAdapter(ExpectedServiceName, "Azure", refreshToken); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(tenantId, CredentialPipeline.GetInstance(options), fileSystemService, vscAdapter)); AccessToken token = await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None); Assert.IsNotNull(token.Token); } [Test] public async Task AuthenticateWithVscCredential_BrokenSettingsFile() { var tenantId = GetTenantId(); var refreshToken = await GetRefreshTokenAsync(tenantId); var fileSystemService = new TestFileSystemService { ReadAllHandler = s => "{a,}" }; var vscAdapter = new TestVscAdapter(ExpectedServiceName, "Azure", refreshToken); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(tenantId, CredentialPipeline.GetInstance(options), fileSystemService, vscAdapter)); AccessToken token = await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None); Assert.IsNotNull(token.Token); } [Test] public async Task AuthenticateWithVscCredential_EmptySettingsFile() { var tenantId = GetTenantId(); var refreshToken = await GetRefreshTokenAsync(tenantId); var fileSystemService = CreateTestFileSystemService(); var vscAdapter = new TestVscAdapter(ExpectedServiceName, "Azure", refreshToken); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(default, CredentialPipeline.GetInstance(options), fileSystemService, vscAdapter)); AccessToken token = await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None); Assert.IsNotNull(token.Token); } [Test] [RunOnlyOnPlatforms(Windows = true, OSX = true)] // Comment this attribute to run this tests on Linux with Libsecret enabled public async Task AuthenticateWithVscCredential_TenantInSettings() { var tenantId = GetTenantId(); var cloudName = Guid.NewGuid().ToString(); var fileSystemService = CreateTestFileSystemService(tenantId, cloudName); using IDisposable fixture = await CreateRefreshTokenFixtureAsync(tenantId, cloudName); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(Guid.NewGuid().ToString(), CredentialPipeline.GetInstance(options), fileSystemService, default)); AccessToken token = await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None); Assert.IsNotNull(token.Token); } [Test] public void AuthenticateWithVscCredential_NoRefreshToken() { var tenantId = GetTenantId(); var vscAdapter = new TestVscAdapter(ExpectedServiceName, "Azure", null); var fileSystem = CreateTestFileSystemService(); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(tenantId, CredentialPipeline.GetInstance(options), fileSystem, vscAdapter)); Assert.CatchAsync<AuthenticationFailedException>(async () => await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None)); } [Test] public void AuthenticateWithVscCredential_AuthenticationCodeInsteadOfRefreshToken() { var tenantId = GetTenantId(); var fileSystemService = CreateTestFileSystemService(); var vscAdapter = new TestVscAdapter(ExpectedServiceName, "Azure", "{}"); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(tenantId, CredentialPipeline.GetInstance(options), fileSystemService, vscAdapter)); Assert.ThrowsAsync<CredentialUnavailableException>(async () => await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None)); } [Test] public void AuthenticateWithVscCredential_InvalidRefreshToken() { var tenantId = GetTenantId(); var fileSystemService = CreateTestFileSystemService(); var vscAdapter = new TestVscAdapter(ExpectedServiceName, "Azure", Guid.NewGuid().ToString()); TokenCredentialOptions options = Recording.InstrumentClientOptions(new TokenCredentialOptions()); VisualStudioCodeCredential credential = InstrumentClient(new VisualStudioCodeCredential(tenantId, CredentialPipeline.GetInstance(options), fileSystemService, vscAdapter)); Assert.ThrowsAsync<CredentialUnavailableException>(async () => await credential.GetTokenAsync(new TokenRequestContext(new[] {".default"}), CancellationToken.None)); } private static TestFileSystemService CreateTestFileSystemService(string tenant = default, string cloudName = default) { var sb = new StringBuilder("{"); if (tenant != default) { sb.AppendFormat("\"azure.tenant\": \"{0}\"", tenant); } if (tenant != default && cloudName != default) { sb.Append(","); } if (cloudName != default) { sb.AppendFormat("\"azure.cloud\": \"{0}\"", cloudName); } sb.Append("}"); return new TestFileSystemService {ReadAllHandler = s => sb.ToString()}; } private async Task<IDisposable> CreateRefreshTokenFixtureAsync(string tenantId, string cloudName) { var refreshToken = await GetRefreshTokenAsync(tenantId); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return WindowsRefreshTokenFixture.Create(cloudName, refreshToken); } if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { return OsxRefreshTokenFixture.Create(cloudName, refreshToken); } if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { return LinuxRefreshTokenFixture.Create(cloudName, refreshToken); } throw new PlatformNotSupportedException(); } private async Task<string> GetRefreshTokenAsync(string tenantId) { if (Recording.Mode == RecordedTestMode.Playback) { return Guid.NewGuid().ToString(); } var clientId = "aebc6443-996d-45c2-90f0-388ff96faa56"; var username = TestEnvironment.Username; var password = TestEnvironment.Password; var client = PublicClientApplicationBuilder.Create(clientId) .WithTenantId(tenantId) .Build(); var retriever = new RefreshTokenRetriever(client.UserTokenCache); await client.AcquireTokenByUsernamePassword(new[] {".default"}, username, password.ToSecureString()).ExecuteAsync(); StaticCachesUtilities.ClearStaticMetadataProviderCache(); StaticCachesUtilities.ClearAuthorityEndpointResolutionManagerCache(); return retriever.RefreshToken; } private string GetTenantId() => TestEnvironment.TestTenantId; private sealed class RefreshTokenRetriever { public string RefreshToken { get; private set; } public RefreshTokenRetriever(ITokenCache tokenCache) { tokenCache.SetAfterAccess(AfterAccessHandler); } private void AfterAccessHandler(TokenCacheNotificationArgs args) { var data = args.TokenCache.SerializeMsalV3(); var serializedData = new UTF8Encoding().GetString(data); var root = JsonDocument.Parse(serializedData).RootElement; var refreshTokenObject = root.GetProperty("RefreshToken"); foreach (JsonProperty property in refreshTokenObject.EnumerateObject()) { if (property.Name.StartsWith(args.Account.HomeAccountId.Identifier)) { RefreshToken = property.Value.GetProperty("secret").GetString(); return; } } } } private sealed class WindowsRefreshTokenFixture : IDisposable { private readonly string _target; public static IDisposable Create(string cloudName, string refreshToken) { var target = $"VS Code Azure/{cloudName}"; var credentialBlobPtr = Marshal.StringToHGlobalAnsi(refreshToken); var credentialData = new WindowsNativeMethods.CredentialData { AttributeCount = 0, Attributes = IntPtr.Zero, Comment = null, CredentialBlob = credentialBlobPtr, CredentialBlobSize = (uint)refreshToken.Length, Flags = 0, Persist = WindowsNativeMethods.CRED_PERSIST.CRED_PERSIST_LOCAL_MACHINE, TargetAlias = null, TargetName = $"{ExpectedServiceName}/{cloudName}", Type = WindowsNativeMethods.CRED_TYPE.GENERIC, UserName = "Azure" }; var credentialDataPtr = Marshal.AllocHGlobal(Marshal.SizeOf(credentialData)); try { Marshal.StructureToPtr(credentialData, credentialDataPtr, false); WindowsNativeMethods.CredWrite(credentialDataPtr); return new WindowsRefreshTokenFixture(target); } finally { Marshal.FreeHGlobal(credentialDataPtr); Marshal.FreeHGlobal(credentialBlobPtr); } } private WindowsRefreshTokenFixture(string target) { _target = target; } public void Dispose() => WindowsNativeMethods.CredDelete(_target, WindowsNativeMethods.CRED_TYPE.GENERIC); } private sealed class OsxRefreshTokenFixture : IDisposable { private readonly string _cloudName; public static IDisposable Create(string cloudName, string refreshToken) { IntPtr itemRef = IntPtr.Zero; try { MacosNativeMethods.SecKeychainAddGenericPassword(IntPtr.Zero, ExpectedServiceName, cloudName, refreshToken, out itemRef); } finally { MacosNativeMethods.CFRelease(itemRef); } return new OsxRefreshTokenFixture(cloudName); } private OsxRefreshTokenFixture(string cloudName) { _cloudName = cloudName; } public void Dispose() { IntPtr credentialsPtr = IntPtr.Zero; IntPtr itemRef = IntPtr.Zero; try { MacosNativeMethods.SecKeychainFindGenericPassword(IntPtr.Zero, ExpectedServiceName, _cloudName, out _, out credentialsPtr, out itemRef); MacosNativeMethods.SecKeychainItemDelete(itemRef); } finally { try { MacosNativeMethods.SecKeychainItemFreeContent(IntPtr.Zero, credentialsPtr); } finally { MacosNativeMethods.CFRelease(itemRef); } } } } private sealed class LinuxRefreshTokenFixture : IDisposable { private readonly string _cloudName; public static IDisposable Create(string cloudName, string refreshToken) { IntPtr schemaPtr = GetLibsecretSchema(); try { LinuxNativeMethods.secret_password_store_sync(schemaPtr, LinuxNativeMethods.SECRET_COLLECTION_SESSION, $"{ExpectedServiceName}/{cloudName}", refreshToken, IntPtr.Zero, "service", ExpectedServiceName, "account", cloudName); } finally { LinuxNativeMethods.secret_schema_unref(schemaPtr); } return new LinuxRefreshTokenFixture(cloudName); } public LinuxRefreshTokenFixture(string cloudName) { _cloudName = cloudName; } public void Dispose() { IntPtr schemaPtr = GetLibsecretSchema(); try { LinuxNativeMethods.secret_password_clear_sync(schemaPtr, IntPtr.Zero, "service", ExpectedServiceName, "account", _cloudName); } finally { LinuxNativeMethods.secret_schema_unref(schemaPtr); } } private static IntPtr GetLibsecretSchema() => LinuxNativeMethods.secret_schema_new("org.freedesktop.Secret.Generic", LinuxNativeMethods.SecretSchemaFlags.SECRET_SCHEMA_DONT_MATCH_NAME, "service", LinuxNativeMethods.SecretSchemaAttributeType.SECRET_SCHEMA_ATTRIBUTE_STRING, "account", LinuxNativeMethods.SecretSchemaAttributeType.SECRET_SCHEMA_ATTRIBUTE_STRING); } private sealed class TestVscAdapter : IVisualStudioCodeAdapter { private readonly string _expectedServiceName; private readonly string _expectedAccountName; private readonly string _refreshToken; public TestVscAdapter(string expectedServiceName, string expectedAccountName, string refreshToken) { _expectedServiceName = expectedServiceName; _expectedAccountName = expectedAccountName; _refreshToken = refreshToken; } public string GetUserSettingsPath() => Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); public string GetCredentials(string serviceName, string accountName) { Assert.AreEqual(_expectedServiceName, serviceName); Assert.AreEqual(_expectedAccountName, accountName); return _refreshToken ?? throw new InvalidOperationException("No token found"); } } } }
43.483092
242
0.627764
bea1ae9e464df2f7a29419c5741de69aecb0caa3
1,800
ts
TypeScript
packages/types/src/interfaces/contracts/definitions.ts
JamesLefrere/api
229fd7252637cf033909389ba611bc5a2a48ccf3
[ "Apache-2.0" ]
null
null
null
packages/types/src/interfaces/contracts/definitions.ts
JamesLefrere/api
229fd7252637cf033909389ba611bc5a2a48ccf3
[ "Apache-2.0" ]
null
null
null
packages/types/src/interfaces/contracts/definitions.ts
JamesLefrere/api
229fd7252637cf033909389ba611bc5a2a48ccf3
[ "Apache-2.0" ]
null
null
null
// Copyright 2017-2019 @polkadot/types authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. export default { types: { AliveContractInfo: { trieId: 'TrieId', storageSize: 'u32', codeHash: 'CodeHash', rentAllowance: 'Balance', deductBlock: 'BlockNumber', lastWrite: 'Option<BlockNumber>' }, CodeHash: 'Hash', ContractCallRequest: { origin: 'AccountId', dest: 'AccountId', value: 'Balance', gasLimit: 'u64', inputData: 'Bytes' }, ContractExecResultSuccess: { status: 'u8', data: 'Bytes' }, ContractExecResult: { _enum: { Success: 'ContractExecResultSuccess', Error: 'Null' } }, ContractInfo: { _enum: { Alive: 'AliveContractInfo', Tombstone: 'TombstoneContractInfo' } }, ContractStorageKey: '[u8; 32]', Gas: 'u64', PrefabWasmModule: { scheduleVersion: 'Compact<u32>', initial: 'Compact<u32>', maximum: 'Compact<u32>', _reserved: 'PrefabWasmModuleReserved', code: 'Bytes' }, PrefabWasmModuleReserved: 'Option<Null>', Schedule: { version: 'u32', putCodePerByteCost: 'Gas', growMemCost: 'Gas', regularOpCost: 'Gas', returnDataPerByteCost: 'Gas', eventDataPerByteCost: 'Gas', eventPerTopicCost: 'Gas', eventBaseCost: 'Gas', sandboxDataReadCost: 'Gas', sandboxDataWriteCost: 'Gas', maxEventTopics: 'u32', maxStackHeight: 'u32', maxMemoryPages: 'u32', enablePrintln: 'bool', maxSubjectLen: 'u32' }, SeedOf: 'Hash', TombstoneContractInfo: 'Hash', TrieId: 'Bytes' } };
25.352113
64
0.594444
b95233bbffaf64f8b5d4367f8c9c9c472dab5be0
795
css
CSS
assets/css/downupPopup.css
asrulcahyadiputra/pa-hpp
4b468dcc2b02b1c0fdf3f2cf623617fab3955c37
[ "MIT" ]
1
2021-07-28T04:05:29.000Z
2021-07-28T04:05:29.000Z
assets/css/downupPopup.css
asrulcahyadiputra/pa-hpp
4b468dcc2b02b1c0fdf3f2cf623617fab3955c37
[ "MIT" ]
null
null
null
assets/css/downupPopup.css
asrulcahyadiputra/pa-hpp
4b468dcc2b02b1c0fdf3f2cf623617fab3955c37
[ "MIT" ]
null
null
null
.downupPopup { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; z-index: 1050; will-change: transform; background-color: #fff; height: 100%; left: 50%; right: 50%; overflow-x: hidden; overflow-y: auto; } .downupPopup.no-act { transform: translate(-50%, 100vh) !important; } .downupPopup-header { padding: 2vh 15px; background-color: #fff; display: flex; justify-content: space-between; } .downupPopup-header .downupPopup-kapat { align-self: center; font-size: 50px; cursor: pointer; } .downupPopup-content { } #dark-back { top: 0; left: 0; width: 100%; height: 100%; position: fixed; display: none; background: rgba(0, 0, 0, 0.4); z-index: 90; padding-right: 17px; overflow: hidden; }
15.9
47
0.627673
15a11c26f297025d81448591b24fb1e7f379990d
10,467
dart
Dart
pkg/test_runner/bin/compare_results.dart
TheRakeshPurohit/sdk
2885ecc42664e4972343addeb73beb892f4737ea
[ "BSD-3-Clause" ]
null
null
null
pkg/test_runner/bin/compare_results.dart
TheRakeshPurohit/sdk
2885ecc42664e4972343addeb73beb892f4737ea
[ "BSD-3-Clause" ]
null
null
null
pkg/test_runner/bin/compare_results.dart
TheRakeshPurohit/sdk
2885ecc42664e4972343addeb73beb892f4737ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env dart // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Compare the old and new test results and list tests that pass the filters. // The output contains additional details in the verbose mode. There is a human // readable mode that explains the results and how they changed. import 'dart:collection'; import 'dart:io'; import 'package:args/args.dart'; import 'package:test_runner/bot_results.dart'; class Event { final Result? before; final Result after; Event(this.before, this.after); bool get isNew => before == null; bool get isNewPassing => before == null && after.matches; bool get isNewFailing => before == null && !after.matches; bool get changed => !unchanged; bool get unchanged => before != null && before!.outcome == after.outcome && before!.expectation == after.expectation; bool get remainedPassing => before!.matches && after.matches; bool get remainedFailing => !before!.matches && !after.matches; bool get flaked => after.flaked; bool get fixed => !before!.matches && after.matches; bool get broke => before!.matches && !after.matches; String get description { if (isNewPassing) { return "is new and succeeded"; } else if (isNewFailing) { return "is new and failed"; } else if (remainedPassing) { return "succeeded again"; } else if (remainedFailing) { return "failed again"; } else if (fixed) { return "was fixed"; } else if (broke) { return "broke"; } else { throw Exception("Unreachable"); } } } class Options { Options(this._options); final ArgResults _options; bool get changed => _options["changed"] as bool; int? get count => _options["count"] is String ? int.parse(_options["count"] as String) : null; String? get flakinessData => _options["flakiness-data"] as String?; bool get help => _options["help"] as bool; bool get human => _options["human"] as bool; bool get judgement => _options["judgement"] as bool; String? get logs => _options["logs"] as String?; bool get logsOnly => _options["logs-only"] as bool; Iterable<String> get statusFilter => ["passing", "flaky", "failing"] .where((option) => _options[option] as bool); bool get unchanged => _options["unchanged"] as bool; bool get verbose => _options["verbose"] as bool; List<String> get rest => _options.rest; } bool firstSection = true; bool search( String description, String searchForStatus, Iterable<Event> events, Options options, Map<String, Map<String, dynamic>> logs, List<String>? logSection) { var judgement = false; var beganSection = false; var count = options.count; final configurations = <String>{}; for (final event in events) { configurations.add(event.after.configuration); if (searchForStatus == "passing" && (event.after.flaked || !event.after.matches)) { continue; } if (searchForStatus == "flaky" && !event.after.flaked) { continue; } if (searchForStatus == "failing" && (event.after.flaked || event.after.matches)) { continue; } if (options.unchanged && !event.unchanged) continue; if (options.changed && !event.changed) continue; if (!beganSection) { if (options.human && !options.logsOnly) { if (!firstSection) { print(""); } firstSection = false; print("$description\n"); } } beganSection = true; final before = event.before; final after = event.after; // The --flaky option is used to get a list of tests to deflake within a // single named configuration. Therefore we can't right now always emit // the configuration name, so only do it if there's more than one in the // results being compared (that won't happen during deflaking. final name = configurations.length == 1 ? event.after.name : event.after.key; if (!after.flaked && !after.matches) { judgement = true; } if (count != null) { if (--count <= 0) { if (options.human) { print("(And more)"); } break; } } String output; if (options.verbose) { if (options.human) { final expect = after.matches ? "" : ", expected ${after.expectation}"; if (before == null || before.outcome == after.outcome) { output = "$name ${event.description} " "(${event.after.outcome}$expect)"; } else { output = "$name ${event.description} " "(${event.before?.outcome} -> ${event.after.outcome}$expect)"; } } else { output = "$name ${before?.outcome} ${after.outcome} " "${before?.expectation} ${after.expectation} " "${before?.matches} ${after.matches} " "${before?.flaked} ${after.flaked}"; } } else { output = name; } final log = logs[event.after.key]; final bar = '=' * (output.length + 2); if (log != null) { logSection?.add("\n\n/$bar\\\n| $output |\n\\$bar/\n\n${log["log"]}"); } if (!options.logsOnly) { print(output); } } return judgement; } main(List<String> args) async { final parser = ArgParser(); parser.addFlag("changed", abbr: 'c', negatable: false, help: "Show only tests that changed results."); parser.addOption("count", abbr: "C", help: "Upper limit on how many tests to report in each section"); parser.addFlag("failing", abbr: 'f', negatable: false, help: "Show failing tests."); parser.addOption("flakiness-data", abbr: 'd', help: "File containing flakiness data"); parser.addFlag("judgement", abbr: 'j', negatable: false, help: "Exit 1 only if any of the filtered results failed."); parser.addFlag("flaky", abbr: 'F', negatable: false, help: "Show flaky tests."); parser.addFlag("help", help: "Show the program usage.", negatable: false); parser.addFlag("human", abbr: "h", negatable: false); parser.addFlag("passing", abbr: 'p', negatable: false, help: "Show passing tests."); parser.addFlag("unchanged", abbr: 'u', negatable: false, help: "Show only tests with unchanged results."); parser.addFlag("verbose", abbr: "v", help: "Show the old and new result for each test", negatable: false); parser.addOption("logs", abbr: "l", help: "Path to file holding logs of failing and flaky tests."); parser.addFlag("logs-only", help: "Only print logs of failing and flaky tests, no other output", negatable: false); final options = Options(parser.parse(args)); if (options.help) { print(""" Usage: compare_results.dart [OPTION]... BEFORE AFTER Compare the old and new test results and list tests that pass the filters. All tests are listed if no filters are given. The options are as follows: ${parser.usage}"""); return; } if (options.changed && options.unchanged) { print( "error: The options --changed and --unchanged are mutually exclusive"); exitCode = 2; return; } final parameters = options.rest; if (parameters.length != 2) { print("error: Expected two parameters " "(results before, results after)"); exitCode = 2; return; } // Load the input and the flakiness data if specified. final before = await loadResultsMap(parameters[0]); final after = await loadResultsMap(parameters[1]); final logs = options.logs == null ? <String, Map<String, dynamic>>{} : await loadResultsMap(options.logs!); final flakinessData = options.flakinessData == null ? <String, Map<String, dynamic>>{} : await loadResultsMap(options.flakinessData!); // The names of every test that has a data point in the new data set. final names = SplayTreeSet<String>.from(after.keys); final events = <Event>[]; for (final name in names) { final mapBefore = before[name]; final mapAfter = after[name]!; final resultBefore = mapBefore != null ? Result.fromMap(mapBefore, flakinessData[name]) : null; final resultAfter = Result.fromMap(mapAfter, flakinessData[name]); final event = Event(resultBefore, resultAfter); events.add(event); } final filterDescriptions = { "passing": { "unchanged": "continued to pass", "changed": "began passing", null: "passed", }, "flaky": { "unchanged": "are known to flake but didn't", "changed": "flaked", null: "are known to flake", }, "failing": { "unchanged": "continued to fail", "changed": "began failing", null: "failed", }, "any": { "unchanged": "had the same result", "changed": "changed result", null: "ran", }, }; final searchForStatuses = options.statusFilter; // Report tests matching the filters. final logSection = <String>[]; var judgement = false; for (final searchForStatus in searchForStatuses.isNotEmpty ? searchForStatuses : <String>["any"]) { final searchForChanged = options.unchanged ? "unchanged" : options.changed ? "changed" : null; final aboutStatus = filterDescriptions[searchForStatus]![searchForChanged]; final sectionHeader = "The following tests $aboutStatus:"; final logSectionArg = searchForStatus == "failing" || searchForStatus == "flaky" ? logSection : null; final possibleJudgement = search( sectionHeader, searchForStatus, events, options, logs, logSectionArg); if (searchForStatus == "failing") { judgement = possibleJudgement; } } if (logSection.isNotEmpty) { print(logSection.join()); } // Exit 1 only if --judgement and any test failed. if (options.judgement) { if (options.human && !options.logsOnly && !firstSection) { print(""); } var oldNew = options.unchanged ? "old " : options.changed ? "new " : ""; if (judgement) { if (options.human && !options.logsOnly) { print("There were ${oldNew}test failures."); } exitCode = 1; } else { if (options.human && !options.logsOnly) { print("No ${oldNew}test failures were found."); } } } }
31.718182
80
0.620235
796997ba4e9771d91b683ae0228d382e492d537b
4,603
php
PHP
tests/EnumTest.php
palshin/enum
4d794214accb1fa428356811cfb416fb42d4a73c
[ "MIT" ]
4
2020-11-10T05:31:59.000Z
2020-11-13T17:11:07.000Z
tests/EnumTest.php
palshin/enum
4d794214accb1fa428356811cfb416fb42d4a73c
[ "MIT" ]
null
null
null
tests/EnumTest.php
palshin/enum
4d794214accb1fa428356811cfb416fb42d4a73c
[ "MIT" ]
null
null
null
<?php namespace Palshin\Enum\Tests; use Palshin\Enum\Exceptions\UndefinedPropertyEnumException; use Palshin\Enum\Exceptions\WritingToReadOnlyPropertyEnumException; use Palshin\Enum\Tests\Enums\AutoIncrementEnum; use Palshin\Enum\Tests\Enums\ConstEnum; use Palshin\Enum\Tests\Enums\DocCommentEnum; use Palshin\Enum\Tests\Enums\FullEnum; use Palshin\Enum\Tests\Enums\ValueEnum; use Palshin\Enum\Tests\Enums\WrongTypeEnum; use PHPUnit\Framework\TestCase; use TypeError; class EnumTest extends TestCase { public function test_const_enum_can_create(): void { $instance = ConstEnum::FOO(); $this->assertInstanceOf(ConstEnum::class, $instance); } public function test_const_enum_can_return_value(): void { $this->assertSame(1, ConstEnum::FOO()->value); } public function test_const_enum_can_return_all_values(): void { $values = ConstEnum::toArray(); $this->assertEquals([ 'FOO' => 1, 'BAR' => 2, ], $values); } public function test_value_enum_can_create(): void { $instance = ValueEnum::FOO(); $this->assertInstanceOf(ValueEnum::class, $instance); } public function test_autoincrement_enum_can_autoincrement(): void { $this->assertEquals([ 'A' => 1, 'B' => 2, 'C' => 3, 'E' => 5, 'F' => 6, 'G' => 7, 'H' => 'FOO', 'I' => 'I', ], AutoIncrementEnum::toArray()); } public function test_doc_comment_enum_can_initialize(): void { $this->assertEquals([ 'FOO' => 'FOO', 'A' => 5, 'B' => 6, 'C' => 7, 'D' => 100500, 'E' => 100501, 'F' => 'BAZ', 'BAR' => 'BAR', ], DocCommentEnum::toArray()); } public function test_same_enum_members_are_equals(): void { $this->assertTrue( DocCommentEnum::A() === DocCommentEnum::A() ); } public function test_different_enum_members_are_not_equals(): void { $this->assertFalse( DocCommentEnum::A() === DocCommentEnum::B() ); } public function test_enum_member_string_represent(): void { $this->assertSame( (string)DocCommentEnum::A()->value, (string)DocCommentEnum::A() ); } public function test_enum_member_id_method(): void { $this->assertSame( 'Palshin\Enum\Tests\Enums\FullEnum::A', FullEnum::A()->id(), ); } public function test_enum_only_scalar_type(): void { $this->expectException(TypeError::class); WrongTypeEnum::A(); } public function test_enum_can_initialize_by_value(): void { $enumMember = DocCommentEnum::fromValue('BAR'); $this->assertTrue( $enumMember instanceof DocCommentEnum && $enumMember->value === 'BAR' ); } public function test_enum_can_initialize_by_name(): void { $enumMember = DocCommentEnum::fromName('BAR'); $this->assertTrue( $enumMember instanceof DocCommentEnum && $enumMember->value === 'BAR' ); } public function test_all_method_return_all_instances(): void { $this->assertEquals( [ ConstEnum::FOO(), ConstEnum::BAR(), ], ConstEnum::all() ); } public function test_writing_to_enum_properties_throws_exception(): void { $this->expectException(WritingToReadOnlyPropertyEnumException::class); $enumMember = DocCommentEnum::BAR(); $enumMember->value = 'New value'; } public function test_calling_to_undeclared_members_throws_exception(): void { $this->expectException(\BadMethodCallException::class); DocCommentEnum::Underclared(); } public function test_calling_to_undeclared_properties_throws_exception(): void { $this->expectException(UndefinedPropertyEnumException::class); $enumMember = DocCommentEnum::A(); $enumMember->vaLue; } public function test_convert_to_json(): void { $this->assertJsonStringEqualsJsonString( '{"BAR":"BAR"}', json_encode(['BAR' => DocCommentEnum::BAR()]) ); } public function test_values_func_override_doc_comment(): void { $this->assertSame('FOO', FullEnum::A()->value); } public function test_can_access_name(): void { $this->assertSame( 'A', FullEnum::A()->name ); } public function test_can_access_value(): void { $this->assertSame( 'BAR', FullEnum::B()->value ); } public function test_can_access_label(): void { $this->assertSame( 'A Label', FullEnum::A()->label ); } public function test_can_access_description(): void { $this->assertSame( 'A description', FullEnum::A()->description ); } }
22.563725
80
0.643711
22c4ca6675241200efc23f0d5bddbf077dc0fd6e
7,602
rs
Rust
src/concat.rs
hhandika/fastq-merger
7f6caeec0b73c712076689c58079482a5b75a844
[ "MIT" ]
null
null
null
src/concat.rs
hhandika/fastq-merger
7f6caeec0b73c712076689c58079482a5b75a844
[ "MIT" ]
null
null
null
src/concat.rs
hhandika/fastq-merger
7f6caeec0b73c712076689c58079482a5b75a844
[ "MIT" ]
null
null
null
use std::collections::HashMap; use std::fs::{self, File}; use std::io::prelude::*; use std::io::{self, BufReader, Result, Write}; use std::path::PathBuf; use flate2::bufread::MultiGzDecoder; use flate2::write::GzEncoder; use flate2::Compression; use glob::{self, MatchOptions}; use indicatif::{ProgressBar, ProgressStyle}; use rayon::prelude::*; use regex::Regex; use crate::utils; pub fn concat_fastq_files(path: &str, outdir: &str) { let contents = parse_input_file(path); println!("Total samples: {}", contents.len()); let spin = set_spinner(); spin.set_message("Processing..."); contents.par_iter().for_each(|(id, path)| { let mut reads = Concat::new(id, path, outdir); let samples = reads.glob_samples(); reads.match_path_to_reads(&samples); reads.sort_results(); reads.concat_lanes_all(); reads.print_results().expect("CANNOT PRINT TO STDOUT"); }); spin.finish_with_message("COMPLETED!\n"); } fn parse_input_file(path: &str) -> HashMap<String, String> { let file = File::open(path).unwrap(); let buff = BufReader::new(file); let mut contents = HashMap::new(); buff.lines() .filter_map(|ok| ok.ok()) .skip(1) .for_each(|line| { let content = line .split(':') .map(|entry| entry.trim().to_string()) .collect::<Vec<String>>(); assert!(content.len() == 2, "INVALID INPUT FORMAT"); let id = content[0].clone(); let path = content[1].clone(); contents.entry(id).or_insert(path); // Avoid duplicates }); contents } fn set_spinner() -> ProgressBar { let spin = ProgressBar::new_spinner(); spin.enable_steady_tick(150); spin.set_style(ProgressStyle::default_spinner().template("{spinner:.simpleDots} {msg}")); spin } struct Concat<'a> { id: &'a str, path: &'a str, read_1: Vec<PathBuf>, read_2: Vec<PathBuf>, outdir: PathBuf, } impl<'a> Concat<'a> { fn new(id: &'a str, path: &'a str, output: &str) -> Self { Self { id, path, outdir: PathBuf::from(output), read_1: Vec::new(), read_2: Vec::new(), } } fn glob_samples(&self) -> Vec<PathBuf> { let pattern = format!("{}/{}*.f*.g*", self.path, self.id); let opts = MatchOptions { case_sensitive: true, ..Default::default() }; glob::glob_with(&pattern, opts) .unwrap() .filter_map(|ok| ok.ok()) .collect() } fn match_path_to_reads(&mut self, paths: &[PathBuf]) { paths.iter().for_each(|read| { let fname = read.file_name().unwrap().to_string_lossy(); if self.re_matches_r1(&fname) { self.read_1.push(PathBuf::from(read)); } if self.re_matches_r2(&fname) { self.read_2.push(PathBuf::from(read)); } }) } fn re_matches_r1(&self, fname: &str) -> bool { lazy_static! { static ref RE: Regex = Regex::new(r"(_|-)((?i)(read|r)1)(?:.*)(gz|gzip)").unwrap(); } RE.is_match(fname) } fn re_matches_r2(&self, fname: &str) -> bool { lazy_static! { static ref RE: Regex = Regex::new(r"(_|-)((?i)(read|r)2)(?:.*)(gz|gzip)").unwrap(); } RE.is_match(fname) } fn sort_results(&mut self) { self.read_1.sort(); self.read_2.sort(); } fn concat_lanes_all(&self) { let fname_r1 = self.get_concat_name_r1(); let fname_r2 = self.get_concat_name_r2(); self.concat_lanes(&self.read_1, &fname_r1); self.concat_lanes(&self.read_2, &fname_r2); } fn concat_lanes(&self, read: &[PathBuf], fname: &str) { let dir = self.get_output_dir(); fs::create_dir_all(&dir).expect("CANNOT CREATE DIR"); let path = dir.join(fname); let save = File::create(path).expect("CANNOT CREATE FILE"); let mut gz = GzEncoder::new(save, Compression::default()); read.iter().for_each(|line| { let file = File::open(line).unwrap(); let buff = BufReader::new(file); let mut decoder = MultiGzDecoder::new(buff); let mut content = Vec::new(); decoder .read_to_end(&mut content) .expect("CANNOT READ FILES"); gz.write_all(&content).unwrap(); }); gz.finish().unwrap(); } fn get_output_dir(&self) -> PathBuf { self.outdir.join(&self.id) } fn get_concat_name_r1(&self) -> String { format!("{}_R1.fastq.gz", &self.id) } fn get_concat_name_r2(&self) -> String { format!("{}_R2.fastq.gz", &self.id) } fn print_results(&self) -> Result<()> { let io = io::stdout(); let mut handle = io::BufWriter::new(io); self.print_header(); writeln!(handle, "Path: {}\n", self.path)?; writeln!(handle, "\x1b[0;33mREAD 1:\x1b[0m")?; self.read_1.iter().for_each(|file| { writeln!(handle, "{}", file.file_name().unwrap().to_string_lossy()).unwrap() }); writeln!(handle)?; writeln!(handle, "\x1b[0;33mREAD 2:\x1b[0m")?; self.read_2.iter().for_each(|file| { writeln!(handle, "{}", file.file_name().unwrap().to_string_lossy()).unwrap() }); writeln!(handle)?; writeln!(handle, "\x1b[0;33mResults:\x1b[0m")?; writeln!(handle, "Dir\t: {}", self.get_output_dir().display())?; writeln!(handle, "Read 1\t: {}", self.get_concat_name_r1())?; writeln!(handle, "Read 2\t: {}", self.get_concat_name_r2())?; writeln!(handle, "\n")?; Ok(()) } fn print_header(&self) { let len = 80; utils::print_divider(&self.id, len); } } #[cfg(test)] mod test { use super::*; use std::path::Path; #[test] fn parse_input_test() { let path = "test_files/input_test.conf"; let contents = parse_input_file(path); assert_eq!(2, contents.len()); } #[test] fn parse_duplicate_input_test() { let path = "test_files/input_duplicate_test.conf"; let contents = parse_input_file(path); assert_eq!(2, contents.len()); } #[test] #[should_panic] fn parse_invalid_input_test() { let path = "test_files/invalid_input_test.conf"; let contents = parse_input_file(path); assert_eq!(2, contents.len()); } #[test] fn regex_lanes_read1_test() { let fname = "genus_epithet_unknown_l001_read1_001.fastq.gz"; let fname2 = "genus_epithet_unknown_l001_read2_001.fastq.gz"; let test = Concat::new(".", ".", "."); assert_eq!(true, test.re_matches_r1(fname)); assert_eq!(false, test.re_matches_r1(fname2)); } #[test] fn regex_lanes_read2_test() { let fname = "genus_epithet_unknown_l001_read1_001.fastq.gz"; let fname2 = "genus_epithet_unknown_l001_read2_001.fastq.gz"; let test = Concat::new(".", ".", "."); assert_eq!(false, test.re_matches_r2(fname)); assert_eq!(true, test.re_matches_r2(fname2)); } #[test] fn output_fname_test() { let id = "Genus_ephithet_unknown"; let path = "."; let outdir = "raw_reads"; let res = Path::new(&outdir).join(&id); let concat = Concat::new(id, path, outdir); assert_eq!(res, concat.get_output_dir()); } }
30.166667
95
0.558143
1a8f704880b581c9b8f42adb4ee8b6de011833f7
9,764
py
Python
coreml/modules/classification.py
core-ml/coreml
c983b919ec9041a9a8d71c03829158ed41da7890
[ "MIT" ]
11
2020-08-28T08:15:24.000Z
2021-08-13T04:50:03.000Z
coreml/modules/classification.py
core-ml/coreml
c983b919ec9041a9a8d71c03829158ed41da7890
[ "MIT" ]
9
2020-12-21T18:03:55.000Z
2022-03-29T22:15:54.000Z
coreml/modules/classification.py
core-ml/coreml
c983b919ec9041a9a8d71c03829158ed41da7890
[ "MIT" ]
2
2020-08-05T16:49:27.000Z
2020-08-20T01:40:07.000Z
"""Defines the class for feed-forward LightningModule.""" from typing import Dict, Tuple, Any, List import torch import numpy as np from pytorch_lightning.metrics.classification import Accuracy, Precision,\ Recall, AUROC, PrecisionRecall, ROC import matplotlib.pyplot as plt import wandb from coreml.modules.nn import NeuralNetworkModule from coreml.utils.loss import loss_factory from coreml.utils.metrics import metric_factory, ConfusionMatrix from coreml.utils.viz import plot_classification_metric_curve from coreml.utils.wandb import get_confusion_matrix from coreml.utils.logger import color class BinaryClassificationModule(NeuralNetworkModule): """LightningModule for binary classification""" def calculate_instance_loss( self, predictions: torch.Tensor, targets: torch.Tensor, mode: str) -> dict: """Calculate loss per instance in a batch :param predictions: Predictions (Predicted) :type predictions: torch.Tensor :param targets: Targets (Ground Truth) :type targets: torch.Tensor :param mode: train/val/test mode :type mode: str :return: dict of losses with list of loss values per instance """ loss_config = self.config['loss'][mode] criterion = loss_factory.create( loss_config['name'], **loss_config['params']) # correct data type to handle mismatch between # CrossEntropyLoss and BCEWithLogitsLoss if loss_config['name'] == 'cross-entropy': targets = targets.long() loss = criterion(predictions, targets) return {'loss': loss} def compute_epoch_metrics( self, predictions: torch.Tensor, targets: torch.Tensor, threshold: float = None, recall: float = 0.9, as_logits: bool = True, classes: List[str] = None) -> dict: """Computes metrics for the epoch :param predictions: epoch predictions :type predictions: torch.Tensor :param targets: ground truths for the epoch :type targets: torch.Tensor :param threshold: confidence threshold to be used for binary classification; if None, the optimal threshold is found. :type threshold: float, defaults to None :param recall: minimum recall to choose the optimal threshold :type recall: float, defaults to 0.9 :param as_logits: whether the predictions are logits; if as_logits=True, the values are converted into sigmoid scores before further processing. :type as_logits: bool, defaults to True :param classes: list of classes in the target :type classes: List[str], defaults to None :return: dictionary of metrics """ if as_logits: # convert to sigmoid scores from logits predictions = torch.sigmoid(predictions) targets = targets.cpu() predict_proba = predictions.detach().cpu() if classes is None: classes = self.config['classes'] if len(classes) != 2: raise ValueError('More than 2 classes found') if threshold is None: print(color('\nFinding optimal threshold based on: {}'.format( self.config['eval']['maximize_metric']))) maximize_fn = metric_factory.create( self.config['eval']['maximize_metric'], **{'recall': recall}) _, _, threshold = maximize_fn(targets, predict_proba) predicted_labels = torch.ge(predict_proba, threshold) confusion_matrix = ConfusionMatrix(classes) confusion_matrix(targets, predicted_labels) # per class recall recall = Recall(reduction='none')(predicted_labels, targets) # standard metrics metrics = { 'accuracy': Accuracy()(predicted_labels, targets), 'confusion_matrix': confusion_matrix.cm, 'threshold': float(threshold), # returns precision per class # take the values for class=1 'precision': Precision(reduction='none')( predicted_labels, targets)[1], # recall = recall for class 1 'recall': recall[1], # specificity = recall for class 0 'specificity': recall[0], } # PR curve precisions, recalls, thresholds = PrecisionRecall()( predict_proba, targets) metrics['pr-curve'] = plot_classification_metric_curve( recalls, precisions, xlabel='Recall', ylabel='Precision') plt.close() # ROC curve fprs, tprs, _ = ROC()(predict_proba, targets) metrics['roc-curve'] = plot_classification_metric_curve( fprs, tprs, xlabel='False Positive Rate', ylabel='True Positive Rate') plt.close() # AUROC if len(torch.unique(targets)) == 1: # handle edge case metrics['auc-roc'] = 0 else: metrics['auc-roc'] = AUROC()(predict_proba, targets) # Specificity-sensitivity curve specificities = np.array([1 - fpr for fpr in fprs]) metrics['ss-curve'] = plot_classification_metric_curve( tprs, specificities, xlabel='Sensitivity', ylabel='Specificity') plt.close() return metrics def get_eval_params( self, predictions: torch.Tensor, targets: torch.Tensor, as_logits: bool = True) -> dict: """Get evaluation params by optimizing on the given data :param predictions: epoch predictions :type predictions: torch.Tensor :param targets: ground truths for the epoch :type targets: torch.Tensor :param as_logits: whether the predictions are logits; if as_logits=True, the values are converted into sigmoid scores before further processing. :type as_logits: bool, defaults to True :return: dict containing evaluation parameters """ metrics = self.compute_epoch_metrics(predictions, targets) param_keys = ['recall', 'threshold'] params = {key: metrics[key] for key in param_keys} return params def update_wandb(self, mode: str, epoch_outputs: dict, metrics: dict): """Logs values to wandb :param mode: train/val/test mode :type mode: str :param epoch_outputs: dictionary containing outputs for the epoch :type epoch_outputs: dict :param metrics: metrics for the epoch :type metrics: dict """ super(BinaryClassificationModule, self).update_wandb( mode, epoch_outputs, metrics) if self.logger is not None: wandb_logs = {} wandb_logs[f'{mode}/confusion_matrix'] = wandb.Image( get_confusion_matrix( metrics['confusion_matrix'], self.config['classes'])) # log classification curves classification_curves = ['pr-curve', 'roc-curve', 'ss-curve'] for curve in classification_curves: if curve in metrics: wandb_logs[f'{mode}/{curve}'] = metrics[curve] # log to wandb self.logger.experiment.log( wandb_logs, step=self.logger.experiment.step) class MultiClassClassificationModule(BinaryClassificationModule): """LightningModule for binary classification""" def compute_epoch_metrics( self, predictions: torch.Tensor, targets: torch.Tensor, threshold: float = None, recall: float = 0.9, as_logits: bool = True, classes: List[str] = None) -> dict: """Computes metrics for the epoch :param predictions: epoch predictions :type predictions: torch.Tensor :param targets: ground truths for the epoch :type targets: torch.Tensor :param threshold: confidence threshold to be used for binary classification; if None, the optimal threshold is found. :type threshold: float, defaults to None :param recall: minimum recall to choose the optimal threshold :type recall: float, defaults to 0.9 :param as_logits: whether the predictions are logits; if as_logits=True, the values are converted into sigmoid scores before further processing. :type as_logits: bool, defaults to True :param classes: list of classes in the target :type classes: List[str], defaults to None :return: dictionary of metrics """ targets = targets.cpu() predicted_labels = torch.argmax(predictions, dim=1).detach().cpu() if classes is None: classes = self.config['classes'] confusion_matrix = ConfusionMatrix(classes) confusion_matrix(targets, predicted_labels) metrics = { 'accuracy': Accuracy()(predicted_labels, targets), 'confusion_matrix': confusion_matrix.cm, } return metrics def get_eval_params( self, predictions: torch.Tensor, targets: torch.Tensor, as_logits: bool = True) -> dict: """Get evaluation params by optimizing on the given data :param predictions: epoch predictions :type predictions: torch.Tensor :param targets: ground truths for the epoch :type targets: torch.Tensor :param as_logits: whether the predictions are logits; if as_logits=True, the values are converted into sigmoid scores before further processing. :type as_logits: bool, defaults to True :return: dict containing evaluation parameters """ return {}
37.992218
74
0.628636
bb6d05d80e9f40fe2523e43bc38496ae01cde212
5,269
cs
C#
src/MassTransit.Interop.NServiceBus/Serialization/NServiceBusXmlMessageSerializer.cs
tanquetav/MassTransit
180620a59d69063985e7b7c20d13ec98aa246ce0
[ "ECL-2.0", "Apache-2.0" ]
4,222
2015-01-03T20:54:46.000Z
2022-03-31T19:38:05.000Z
src/MassTransit.Interop.NServiceBus/Serialization/NServiceBusXmlMessageSerializer.cs
tanquetav/MassTransit
180620a59d69063985e7b7c20d13ec98aa246ce0
[ "ECL-2.0", "Apache-2.0" ]
1,756
2015-01-07T15:58:40.000Z
2022-03-31T07:18:21.000Z
src/MassTransit.Interop.NServiceBus/Serialization/NServiceBusXmlMessageSerializer.cs
tanquetav/MassTransit
180620a59d69063985e7b7c20d13ec98aa246ce0
[ "ECL-2.0", "Apache-2.0" ]
1,352
2015-01-07T17:18:36.000Z
2022-03-29T14:32:55.000Z
namespace MassTransit.Interop.NServiceBus.Serialization { using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net.Mime; using System.Runtime.Serialization; using System.Text; using System.Threading; using System.Xml; using System.Xml.Linq; using MassTransit.Serialization.JsonConverters; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; public class NServiceBusXmlMessageSerializer : IMessageSerializer { public const string ContentTypeHeaderValue = "text/xml"; public static readonly ContentType XmlContentType = new ContentType(ContentTypeHeaderValue); static readonly Lazy<Encoding> Encoding = new Lazy<Encoding>(() => new UTF8Encoding(false, true), LazyThreadSafetyMode.PublicationOnly); static readonly Lazy<JsonSerializer> XmlSerializer; static readonly JsonSerializerSettings XmlSerializerSettings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Include, DefaultValueHandling = DefaultValueHandling.Include, MissingMemberHandling = MissingMemberHandling.Ignore, ObjectCreationHandling = ObjectCreationHandling.Auto, ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, Converters = new List<JsonConverter>(new[] { new XmlNodeConverter { DeserializeRootElementName = "message", WriteArrayAttribute = false, OmitRootObject = true } }) }; public static JsonSerializerSettings SerializerSettings; static readonly Lazy<JsonSerializer> _serializer; public static readonly ByteArrayConverter ByteArrayConverter; public static readonly MessageDataJsonConverter MessageDataJsonConverter; public static readonly StringDecimalConverter StringDecimalConverter; static NServiceBusXmlMessageSerializer() { XmlSerializer = new Lazy<JsonSerializer>(() => JsonSerializer.Create(XmlSerializerSettings)); ByteArrayConverter = new ByteArrayConverter(); MessageDataJsonConverter = new MessageDataJsonConverter(); StringDecimalConverter = new StringDecimalConverter(); DefaultContractResolver serializerContractResolver = new JsonContractResolver(ByteArrayConverter, MessageDataJsonConverter, StringDecimalConverter) {NamingStrategy = new DefaultNamingStrategy()}; SerializerSettings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Ignore, ObjectCreationHandling = ObjectCreationHandling.Auto, ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, ContractResolver = serializerContractResolver, TypeNameHandling = TypeNameHandling.None, DateParseHandling = DateParseHandling.None, DateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind }; _serializer = new Lazy<JsonSerializer>(() => JsonSerializer.Create(SerializerSettings)); } public void Serialize<T>(Stream stream, SendContext<T> context) where T : class { try { context.ContentType = XmlContentType; context.SetNServiceBusHeaders(); var json = new StringBuilder(1024); using (var stringWriter = new StringWriter(json, CultureInfo.InvariantCulture)) using (var jsonWriter = new JsonTextWriter(stringWriter) {Formatting = Newtonsoft.Json.Formatting.None}) { _serializer.Value.Serialize(jsonWriter, context.Message, typeof(T)); jsonWriter.Flush(); stringWriter.Flush(); } using (var stringReader = new StringReader(json.ToString())) using (var jsonReader = new JsonTextReader(stringReader)) { var document = (XDocument)XmlSerializer.Value.Deserialize(jsonReader, typeof(XDocument)); if (document.Root != null) document.Root.Name = typeof(T).Name; using (var writer = new StreamWriter(stream, Encoding.Value, 1024, true)) using (var xmlWriter = XmlWriter.Create(writer, new XmlWriterSettings {CheckCharacters = false})) { document.WriteTo(xmlWriter); } } } catch (SerializationException) { throw; } catch (Exception ex) { throw new SerializationException("Failed to serialize message", ex); } } public ContentType ContentType => XmlContentType; } }
40.844961
158
0.629721
12d2f4d790de886d62ec68b6ed92540293254c15
2,740
cs
C#
Lyyneheym/YuriPlatform/PlatformCore/Evaluator/PolishItem.cs
rinkako/Slyvia
c6ca24f070174daf48eb918d38321b7c956bc2a6
[ "MS-PL" ]
103
2017-04-21T16:46:34.000Z
2022-02-21T13:25:13.000Z
Lyyneheym/YuriPlatform/PlatformCore/Evaluator/PolishItem.cs
rinkako/Slyvia
c6ca24f070174daf48eb918d38321b7c956bc2a6
[ "MS-PL" ]
8
2017-08-04T09:22:53.000Z
2019-09-16T17:07:37.000Z
Lyyneheym/YuriPlatform/PlatformCore/Evaluator/PolishItem.cs
rinkako/Slyvia
c6ca24f070174daf48eb918d38321b7c956bc2a6
[ "MS-PL" ]
18
2017-07-06T15:17:50.000Z
2022-02-05T23:39:37.000Z
namespace Yuri.PlatformCore.Evaluator { /// <summary> /// 运算栈项目 /// </summary> internal sealed class PolishItem { /// <summary> /// 获取或设置Polish项的类型 /// </summary> public PolishItemType ItemType { get; set; } /// <summary> /// 获取或设置Polish项的数值 /// </summary> public double Number { get; set; } /// <summary> /// 获取或设置Polish项的字符串 /// </summary> public string Cluster { get; set; } /// <summary> /// 获取或设置Polish项在运行时环境的变量引用 /// </summary> public object Reference { get; set; } /// <summary> /// 获取两个polish计算项是否可以进行操作 /// </summary> /// <param name="p1">操作数1</param> /// <param name="p2">操作数2</param> /// <returns>是否可以作为操作符的双目</returns> public static bool IsOperatable(PolishItem p1, PolishItem p2, PolishItem poi) { if (p1.Reference != null && p2.Reference != null && p1.Reference.GetType() == p2.Reference.GetType()) { return true; } if (poi.ItemType == PolishItemType.CAL_PLUS) { return true; } if (p1.ItemType == PolishItemType.CONSTANT && p2.ItemType == PolishItemType.CONSTANT) { return true; } if (p1.ItemType == PolishItemType.CONSTANT && p2.ItemType == PolishItemType.VAR_NUM) { return true; } if (p1.ItemType == PolishItemType.VAR_NUM && p2.ItemType == PolishItemType.VAR_NUM) { return true; } if (p1.ItemType == PolishItemType.VAR_NUM && p2.ItemType == PolishItemType.CONSTANT) { return true; } if (p1.ItemType == PolishItemType.STRING && p2.ItemType == PolishItemType.STRING) { return true; } if (p1.ItemType == PolishItemType.STRING && p2.ItemType == PolishItemType.VAR_STRING) { return true; } if (p1.ItemType == PolishItemType.VAR_STRING && p2.ItemType == PolishItemType.VAR_STRING) { return true; } if (p1.ItemType == PolishItemType.VAR_STRING && p2.ItemType == PolishItemType.STRING) { return true; } return false; } } /// <summary> /// 枚举:逆波兰式项类型 /// </summary> internal enum PolishItemType { NONE, CONSTANT, STRING, VAR, VAR_NUM, VAR_STRING, CAL_PLUS, CAL_MINUS, CAL_MULTI, CAL_DIV, CAL_ANDAND, CAL_OROR, CAL_NOT, CAL_EQUAL, CAL_NOTEQUAL, CAL_BIG, CAL_SMALL, CAL_BIGEQUAL, CAL_SMALLEQUAL } }
29.782609
130
0.521533
9e41a32e225814178bda882a475b5e5901b105e7
469
lua
Lua
docs/MomoKit/Loading.lua
lizhizhuanshu/autolua
5440d26bd0198519520cf9ce6e639141b0baf088
[ "MIT" ]
27
2021-03-04T12:24:58.000Z
2022-03-22T03:15:44.000Z
docs/MomoKit/Loading.lua
lizhizhuanshu/autolua
5440d26bd0198519520cf9ce6e639141b0baf088
[ "MIT" ]
1
2022-02-04T06:29:43.000Z
2022-02-25T14:17:59.000Z
docs/MomoKit/Loading.lua
lizhizhuanshu/autolua
5440d26bd0198519520cf9ce6e639141b0baf088
[ "MIT" ]
9
2021-03-04T15:39:55.000Z
2022-03-22T03:15:46.000Z
--- --- Generated by MLN Team (https://www.immomo.com) --- Created by MLN Team. --- DateTime: 15-01-2020 17:35 --- --- --- 加载指示器 --- ---@note 对应iOS原生UIActivityIndicatorView控件 ---@class Loading @parent class ---@public field name string ---@type Loading Loading= { _priveta_class_name = "Loading"} --- --- 显示加载指示器 --- ---@return Loading function Loading:show() return self end --- --- 隐藏加载指示器 --- ---@return Loading function Loading:hide() return self end
14.212121
50
0.648188
2e9425787762106c76f00ae8fe7eb4c54166369f
357
rs
Rust
src/scene/environment.rs
TomCrypto/equinox
915d40238f2b6d8258727b74a68ed2d4cd2702d4
[ "MIT" ]
8
2020-01-21T14:56:34.000Z
2020-08-17T02:01:24.000Z
src/scene/environment.rs
TomCrypto/equinox
915d40238f2b6d8258727b74a68ed2d4cd2702d4
[ "MIT" ]
6
2020-03-26T06:55:59.000Z
2022-02-26T22:40:57.000Z
src/scene/environment.rs
TomCrypto/equinox
915d40238f2b6d8258727b74a68ed2d4cd2702d4
[ "MIT" ]
null
null
null
use serde::{Deserialize, Serialize}; #[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)] #[serde(tag = "type", rename_all = "kebab-case")] pub enum Environment { Solid { tint: [f32; 3] }, Map { tint: [f32; 3], rotation: f32 }, } impl Default for Environment { fn default() -> Self { Self::Solid { tint: [1.0; 3] } } }
23.8
64
0.602241
a48665edccf7d49c1ceb37c4c87db8b9c03f5b77
10,085
php
PHP
application/views/home.php
baysptr/walawalawalawala
e2cfcd9803bc10b880fd591c3f6f80a15be23d77
[ "MIT" ]
null
null
null
application/views/home.php
baysptr/walawalawalawala
e2cfcd9803bc10b880fd591c3f6f80a15be23d77
[ "MIT" ]
null
null
null
application/views/home.php
baysptr/walawalawalawala
e2cfcd9803bc10b880fd591c3f6f80a15be23d77
[ "MIT" ]
1
2019-08-08T15:26:05.000Z
2019-08-08T15:26:05.000Z
<html lang="en"> <head> <title>SPKSKETSA</title> <link href="<?= base_url() ?>assets/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css"> <link href="<?= base_url() ?>assets/css/freelancer.min.css" rel="stylesheet"> <link rel="shortcut icon" href="<?= base_url() ?>assets/img/logoSMK.png"> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> </head> <body id="page-top" onload="$('#summary').hide();$('#c_table').hide();$('#c_error').hide();$('#cariPeminatan')[0].reset();"> <nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav"> <div class="container"> <a class="navbar-brand js-scroll-trigger" href="#page-top">SPKSKETSA</a> <button class="navbar-toggler navbar-toggler-right text-uppercase font-weight-bold bg-primary text-white rounded" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> Menu <i class="fas fa-bars"></i> </button> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto"> <li class="nav-item mx-0 mx-lg-1"> <a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="#about">About</a> </li> <li class="nav-item mx-0 mx-lg-1"> <a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="#contact">Kelulusan</a> </li> <li class="nav-item mx-0 mx-lg-1"> <a class="nav-link py-3 px-0 px-lg-3 rounded bg-danger" href="<?= site_url() ?>auth">Auth</a> </li> </ul> </div> </div> </nav> <!-- Masthead --> <header class="masthead bg-primary text-white text-center"> <div class="container d-flex align-items-center flex-column"> <!-- Masthead Avatar Image --> <img class="masthead-avatar mb-5" src="<?= base_url() ?>assets/img/logoSMK.png" alt=""> <!-- Masthead Heading --> <h1 class="masthead-heading text-uppercase mb-0">Selamat datang</h1> <!-- Icon Divider --> <div class="divider-custom divider-light"> <div class="divider-custom-line"></div> <div class="divider-custom-icon"> <i class="fas fa-star"></i> </div> <div class="divider-custom-line"></div> </div> <!-- Masthead Subheading --> <p class="masthead-subheading font-weight-light mb-0">Selamat datang di Sistem Pengambilan Keputusan SMK KETINTANG SURABAYA</p> </div> </header> <!-- About Section --> <section class="page-section bg-info text-white mb-0" id="about"> <div class="container"> <!-- About Section Heading --> <h2 class="page-section-heading text-center text-uppercase text-white">Sistem Peminatan Jurusan SMK KETINTANG SURABAYA</h2> <!-- Icon Divider --> <div class="divider-custom divider-light"> <div class="divider-custom-line"></div> <div class="divider-custom-icon"> <i class="fas fa-star"></i> </div> <div class="divider-custom-line"></div> </div> <!-- About Section Content --> <div class="row"> <div class="col-lg-4 ml-auto"> <p class="lead">Sistem Penunjang SMK Ketintang adalah Progam yang ditujukan untuk calon siswa untuk memilih kompetensi keahlian sesuai dengan minat dan bakatnya.</p> </div> <div class="col-lg-4 mr-auto"> <p class="lead">Metode yang digunakan adalah Multi Factor Evaluation Process dimana metode ini memberikan bobot nilai kepada kriteria yang dianggap penting dalam mempengaruhi alternatif pilihan kompetensi keahlian</p> </div> </div> <!-- About Section Button --> <div class="text-center mt-4"> <a class="btn btn-xl btn-outline-light" href="#contact"> <i class="fas fa-angle-double-down mr-2"></i> Mulai </a> </div> </div> </section> <!-- Contact Section --> <section class="page-section" id="contact"> <div class="container"> <!-- Contact Section Heading --> <h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">Kriteria Kelulusan</h2> <!-- Icon Divider --> <div class="divider-custom"> <div class="divider-custom-line"></div> <div class="divider-custom-icon"> <i class="fas fa-star"></i> </div> <div class="divider-custom-line"></div> </div> <!-- Contact Section Form --> <div class="row"> <div class="col-lg-8 mx-auto"> Kriteria Kelulusan di SMK Ketintang telah terinput otomatis dari sistem dan tidak perlu memilih. Silahkan klik tombol "Next" untuk melanjutkan progam. <hr/> <table class="table table-striped"> <thead class="table-info"> <tr> <td><strong>NO</strong></td> <td><strong>KOMPETENSI KEAHLIAN</strong></td> <td><strong>PRESENTASE KELULUSAN</strong></td> <td><strong>BOBOT</strong></td> </tr> </thead> <tbody> <?php $no = 1; foreach ($kelulusans as $kelulusan){ ?> <tr> <td style="text-align: center"><?= $no++ ?></td> <td><?= $kelulusan['nama'] ?></td> <td style="text-align: center"><?= $kelulusan['persentase'] ?>%</td> <td style="text-align: center"><?= $kelulusan['bobot'] ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="text-center mt-4"> <a class="btn btn-xl btn-outline-info" href="#kerja"> <i class="fas fa-angle-double-down mr-2"></i> Next </a> <a class="btn btn-xl btn-outline-info" href="#about"> <i class="fas fa-angle-double-up mr-2"></i> Back </a> </div> </div> </section> <!-- Footer --> <footer class="footer text-center"> <div class="container"> <div class="row"> <!-- Footer Location --> <div class="col-lg-6 mb-5 mb-lg-0"> <h4 class="text-uppercase mb-4">Location</h4> <p class="lead mb-0">SMK KETINTANG SURABAYA <br>Jl. Ketintang No. 147 - 151 Surabaya <br> (031) 8284121 - 82937398</p> </div> <!-- Footer Social Icons --> <div class="col-lg-6 mb-5 mb-lg-0"> <h4 class="text-uppercase mb-4">Around the Web</h4> <a class="btn btn-outline-light btn-social mx-1" href="#www.facebook.com"> <i class="fab fa-fw fa-facebook-f"></i> </a> <a class="btn btn-outline-light btn-social mx-1" href="#www.twitter.com"> <i class="fab fa-fw fa-twitter"></i> </a> <a class="btn btn-outline-light btn-social mx-1" href="#www.instgram.com"> <i class="fab fa-fw fa-linkedin-in"></i> </a> <a class="btn btn-outline-light btn-social mx-1" href="#"> <i class="fab fa-fw fa-dribbble"></i> </a> </div> </div> </div> </footer> <!-- Copyright Section --> <section class="copyright py-4 text-center text-white"> <div class="container"> <small>Copyright &copy; SPKSKETSA 2019</small> </div> </section> <!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) --> <div class="scroll-to-top d-lg-none position-fixed "> <a class="js-scroll-trigger d-block text-center text-white rounded" href="#page-top"> <i class="fa fa-chevron-up"></i> </a> </div> <!-- Bootstrap core JavaScript --> <script src="<?= base_url() ?>assets/vendor/jquery/jquery.min.js"></script> <script src="<?= base_url() ?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- Plugin JavaScript --> <script src="<?= base_url() ?>assets/vendor/jquery-easing/jquery.easing.min.js"></script> <!-- Contact Form JavaScript --> <script src="<?= base_url() ?>assets/js/jqBootstrapValidation.js"></script> <script src="<?= base_url() ?>assets/js/contact_me.js"></script> <!-- Custom scripts for this template --> <script src="<?= base_url() ?>assets/js/freelancer.min.js"></script> <script> function myPenghasilan(val) { console.log("Bobot Penghasilan: "+val); } function insertPeminatan() { $.ajax({ url: '<?= site_url() ?>welcome/do_peminatan', type: 'POST', processData: false, cache: false, contentType: false, data: new FormData($("#myForm")[0]), success: function (data) { if(confirm("Apakah anda ingin menampilkan data kesimpulan?")===true){ console.log(data); var mydata = JSON.parse(data); $("#akl").html(mydata.akl + "%"); $("#otkp").html(mydata.otkp + "%"); $("#bdp").html(mydata.bdp + "%"); $("#tkj").html(mydata.tkj + "%"); $("#mm").html(mydata.mm + "%"); $("#kode").html(mydata.kode); google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['AKL', mydata.akl], ['OTKP', mydata.otkp], ['BDP', mydata.bdp], ['TKJJ', mydata.tkj], ['MM', mydata.mm] ]); var options = {'title':'Summary Data Peminatan Jurusan'}; // Display the chart inside the <div> element with id="piechart" var chart = new google.visualization.PieChart(document.getElementById('piechart')); chart.draw(data, options); } $("#summary").show(); location.href = "#summary"; }else{ var mydata = JSON.parse(data); if(confirm("Perhatikan!. Ingat atau simpan kode hasil peminatan anda?["+mydata.kode+"]")===true){ $("#myForm")[0].reset(); $("#summary").hide(); location.href = "#about"; } } } }); } function cariPeminatan() { $.ajax({ url: '<?= site_url() ?>welcome/get_kode', type: 'POST', processData: false, cache: false, contentType: false, data: new FormData($("#cariPeminatan")[0]), success: function (data) { var mydata = JSON.parse(data); if(mydata===null){ $("#cariPeminatan")[0].reset(); $("#c_error").show(); }else{ $("#c_error").hide(); $("#c_akl").html(mydata.akl+"%"); $("#c_otkp").html(mydata.otkp+"%"); $("#c_bdp").html(mydata.bdp+"%"); $("#c_tkj").html(mydata.tkj+"%"); $("#c_mm").html(mydata.mm+"%"); $("#c_table").show(); } } }); } </script> </body> </html>
33.283828
271
0.622509
5bf7ee9e09ed59e0272a467d11ebe0387126f023
5,400
dart
Dart
packages/flame/test/effects/opacity_effect_test.dart
anderlli0053/flame
fa2eabad65e06d09128439be4adfe435e12ac168
[ "MIT" ]
2
2020-06-07T20:37:01.000Z
2020-06-08T21:16:46.000Z
packages/flame/test/effects/opacity_effect_test.dart
anderlli0053/flame
fa2eabad65e06d09128439be4adfe435e12ac168
[ "MIT" ]
null
null
null
packages/flame/test/effects/opacity_effect_test.dart
anderlli0053/flame
fa2eabad65e06d09128439be4adfe435e12ac168
[ "MIT" ]
1
2022-02-26T13:05:48.000Z
2022-02-26T13:05:48.000Z
import 'dart:math'; import 'package:flame/components.dart'; import 'package:flame/game.dart'; import 'package:flame/src/effects/controllers/effect_controller.dart'; import 'package:flame/src/effects/opacity_effect.dart'; import 'package:flame_test/flame_test.dart'; import 'package:flutter_test/flutter_test.dart'; class _PaintComponent extends Component with HasPaint {} void main() { const _epsilon = 0.004; // 1/255, since alpha only holds 8 bits group('OpacityEffect', () { flameGame.test('relative', (game) async { final component = _PaintComponent(); await game.ensureAdd(component); component.setOpacity(0.2); await component.add( OpacityEffect.by(0.4, EffectController(duration: 1)), ); game.update(0); expect(component.getOpacity(), 0.2); expect(component.children.length, 1); game.update(0.5); expectDouble(component.getOpacity(), 0.4, epsilon: _epsilon); game.update(0.5); expectDouble(component.getOpacity(), 0.6, epsilon: _epsilon); game.update(0); expect(component.children.length, 0); expectDouble(component.getOpacity(), 0.6, epsilon: _epsilon); }); flameGame.test('absolute', (game) async { final component = _PaintComponent(); await game.ensureAdd(component); component.setOpacity(0.2); await component.add( OpacityEffect.to(0.4, EffectController(duration: 1)), ); game.update(0); expect(component.getOpacity(), 0.2); expect(component.children.length, 1); game.update(0.5); expectDouble(component.getOpacity(), 0.3, epsilon: _epsilon); game.update(0.5); expectDouble(component.getOpacity(), 0.4, epsilon: _epsilon); game.update(0); expect(component.children.length, 0); expectDouble(component.getOpacity(), 0.4, epsilon: _epsilon); }); flameGame.test('reset relative', (game) async { final component = _PaintComponent(); await game.ensureAdd(component); // Since we'll have to change with multiples of 255 to not get rounding // errors. const step = 10 * 1 / 255; final effect = OpacityEffect.by( -step, EffectController(duration: 1), ); component.add(effect..removeOnFinish = false); for (var i = 0; i < 5; i++) { expectDouble(component.getOpacity(), 1.0 - step * i, epsilon: _epsilon); // After each reset the object will have its opacity modified by -10/255 // relative to its opacity at the start of the effect. effect.reset(); game.update(1); expectDouble( component.getOpacity(), 1.0 - step * (i + 1), epsilon: _epsilon, ); } }); flameGame.test('reset absolute', (game) async { final component = _PaintComponent(); await game.ensureAdd(component); final effect = OpacityEffect.to( 0.0, EffectController(duration: 1), ); component.add(effect..removeOnFinish = false); for (var i = 0; i < 5; i++) { component.setOpacity(1 - 0.1 * i); // After each reset the object will have an opacity value of 0.0 // regardless of its initial opacity. effect.reset(); game.update(1); // TODO(spydon): This is not good, since it sometimes won't hit the // minima. expectDouble(component.getOpacity(), 0.0, epsilon: _epsilon); } }); flameGame.test('opacity composition', (game) async { final component = _PaintComponent(); component.setOpacity(0.0); await game.ensureAdd(component); await component.add( OpacityEffect.by(0.5, EffectController(duration: 10)), ); await component.add( OpacityEffect.by( 0.5, EffectController( duration: 1, reverseDuration: 1, repeatCount: 5, ), ), ); game.update(1); expectDouble( component.getOpacity(), 0.55, // 0.5/10 + 0.5*1 epsilon: _epsilon, ); game.update(1); expectDouble( component.getOpacity(), 0.1, epsilon: _epsilon, ); // 0.5*2/10 + 0.5*1 - 0.5*1 for (var i = 0; i < 10; i++) { game.update(1); } expectDouble(component.getOpacity(), 0.5, epsilon: _epsilon); expect(component.children.length, 0); }); testRandom('a very long opacity change', (Random rng) async { final game = FlameGame()..onGameResize(Vector2(1, 1)); final component = _PaintComponent(); await game.ensureAdd(component); final effect = OpacityEffect.fadeOut( EffectController( duration: 1, reverseDuration: 1, infinite: true, ), ); await component.add(effect); var totalTime = 0.0; while (totalTime < 999.9) { final dt = rng.nextDouble() * 0.02; totalTime += dt; game.update(dt); } game.update(1000 - totalTime); // TODO(spydon): The loop above has an average of 100fps. // It should change from 0-255 in 1s so it will change alpha with an // average of 255/100=2.5 per tick, which should not result in a need of // an epsilon value this high. expectDouble(component.getOpacity(), 1.0, epsilon: 100 * _epsilon); }); }); }
31.034483
80
0.600926
99533689925775db7144e8c869f4488fb771cf1b
404
swift
Swift
ARWorld/2DUtilities/Autolayout/NibView.swift
sudo-world/sudo-world
ec34af675abfaa2dd2db2b502288d8a1ec9b5344
[ "MIT" ]
null
null
null
ARWorld/2DUtilities/Autolayout/NibView.swift
sudo-world/sudo-world
ec34af675abfaa2dd2db2b502288d8a1ec9b5344
[ "MIT" ]
null
null
null
ARWorld/2DUtilities/Autolayout/NibView.swift
sudo-world/sudo-world
ec34af675abfaa2dd2db2b502288d8a1ec9b5344
[ "MIT" ]
2
2018-02-14T15:29:31.000Z
2018-03-03T16:34:43.000Z
// // NibView.swift // A$AP UI Components // // Created by TSD040 on 2018-02-13. // Copyright © 2018 TSD040. All rights reserved. // import UIKit protocol NibView {} extension NibView where Self: UIView { static func instanceFromNib() -> Self? { let nibName = String(describing: self) return Bundle.main.loadNibNamed(nibName, owner: self, options: nil)?.first as? Self } }
21.263158
91
0.665842
4fe8165e183de793228b61ea2162a026e53decc3
444
rb
Ruby
Casks/gtkwave.rb
Argus9/homebrew-cask
40feb5727825ee8b6b4f7b00ff00e5b530e73e47
[ "BSD-2-Clause" ]
null
null
null
Casks/gtkwave.rb
Argus9/homebrew-cask
40feb5727825ee8b6b4f7b00ff00e5b530e73e47
[ "BSD-2-Clause" ]
null
null
null
Casks/gtkwave.rb
Argus9/homebrew-cask
40feb5727825ee8b6b4f7b00ff00e5b530e73e47
[ "BSD-2-Clause" ]
null
null
null
cask 'gtkwave' do version '3.3.96' sha256 'a74998b974c552939f69f4221a11fbdb74e1595dc87ed76aa1a11e0816e24d6f' # downloads.sourceforge.net/gtkwave was verified as official when first introduced to the cask url "https://downloads.sourceforge.net/gtkwave/gtkwave-#{version}-osx-app/gtkwave.zip" appcast 'https://sourceforge.net/projects/gtkwave/rss' name 'GTKWave' homepage 'https://gtkwave.sourceforge.io/' app 'gtkwave.app' end
34.153846
96
0.777027
dba2f17e24b17eb6c95ad93571dc2244168998df
2,332
php
PHP
migrations/Version20200706071923.php
caba94/eco
c8c28fb78c0d692f3340bbd064bb96fdda2acf45
[ "MIT" ]
null
null
null
migrations/Version20200706071923.php
caba94/eco
c8c28fb78c0d692f3340bbd064bb96fdda2acf45
[ "MIT" ]
null
null
null
migrations/Version20200706071923.php
caba94/eco
c8c28fb78c0d692f3340bbd064bb96fdda2acf45
[ "MIT" ]
null
null
null
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20200706071923 extends AbstractMigration { public function getDescription() : string { return ''; } public function up(Schema $schema) : void { // this up() migration is auto-generated, please modify it to your needs $this->addSql('CREATE TABLE craft (id INT AUTO_INCREMENT NOT NULL, raw1_id INT DEFAULT NULL, job_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, qraw1 INT DEFAULT NULL, qraw2 INT DEFAULT NULL, qraw3 INT DEFAULT NULL, INDEX IDX_F45C4A84BF567DBA (raw1_id), INDEX IDX_F45C4A84BE04EA9 (job_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE job (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, bonus11_name VARCHAR(255) DEFAULT NULL, bonus11_value INT DEFAULT NULL, bonus12_name VARCHAR(255) DEFAULT NULL, bonus12_value INT DEFAULT NULL, bonus21_name VARCHAR(255) DEFAULT NULL, bonus21_value INT DEFAULT NULL, bonus22_name VARCHAR(255) DEFAULT NULL, bonus22_value INT DEFAULT NULL, img VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE raw (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, price DOUBLE PRECISION DEFAULT NULL, img VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('ALTER TABLE craft ADD CONSTRAINT FK_F45C4A84BF567DBA FOREIGN KEY (raw1_id) REFERENCES raw (id)'); $this->addSql('ALTER TABLE craft ADD CONSTRAINT FK_F45C4A84BE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)'); } public function down(Schema $schema) : void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE craft DROP FOREIGN KEY FK_F45C4A84BE04EA9'); $this->addSql('ALTER TABLE craft DROP FOREIGN KEY FK_F45C4A84BF567DBA'); $this->addSql('DROP TABLE craft'); $this->addSql('DROP TABLE job'); $this->addSql('DROP TABLE raw'); } }
58.3
514
0.733705
7aa7115388cfbd84f552db15414ce0baf6f80c5a
1,325
cs
C#
DataBrowser/DataBrowser.WebRole/Reports/Reports.aspx.cs
openlab/OGDI-DataLab
22cb80be26f15e913ac5f1b32f4ada2627620646
[ "MS-PL" ]
18
2015-02-09T13:08:19.000Z
2021-05-12T18:38:08.000Z
DataBrowser/DataBrowser.WebRole/Reports/Reports.aspx.cs
openlab/OGDI-DataLab
22cb80be26f15e913ac5f1b32f4ada2627620646
[ "MS-PL" ]
null
null
null
DataBrowser/DataBrowser.WebRole/Reports/Reports.aspx.cs
openlab/OGDI-DataLab
22cb80be26f15e913ac5f1b32f4ada2627620646
[ "MS-PL" ]
7
2015-05-01T00:50:47.000Z
2018-02-16T01:56:48.000Z
using System; using Ogdi.InteractiveSdk.Mvc.Models.Reports; namespace Ogdi.InteractiveSdk.Reports { public partial class Reports : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { var list = ReportDataSource.Select(); if(!IsPostBack) { this.DropDownList1.DataSource = list; this.DropDownList1.DataTextField = "DisplayName"; this.DropDownList1.DataValueField = "Name"; this.DropDownList1.DataBind(); this.From.SelectedDate = DateTime.Now.Date; this.To.SelectedDate = DateTime.Now.Date.AddDays(+1); } //this.ReportViewer1.Reset(); ReportEntry re = list[DropDownList1.SelectedIndex]; this.ReportViewer1.LocalReport.ReportEmbeddedResource = "Ogdi.InteractiveSdk.Mvc.Reports.data." + re.Name; this.ObjectDataSource1.SelectMethod = re.Method; this.ObjectDataSource1.TypeName = re.Type; this.ObjectDataSource1.DataBind(); //this.ReportViewer1.LocalReport.DataSources.Add( // new Microsoft.Reporting.WebForms.ReportDataSource("Data", "ObjectDataSource1")); this.ReportViewer1.LocalReport.Refresh(); } } }
33.125
118
0.617358
75aa29be1984184e283b5af9ec274cf05406bbe6
94
css
CSS
src/components/Toast/Toast.css
IEEE-VIT/palette-21-frontend
982894a65bd318011b3a53b25144e621785a2966
[ "MIT" ]
14
2021-06-09T08:17:34.000Z
2021-07-15T15:51:39.000Z
src/components/Toast/Toast.css
IEEE-VIT/palette-21-frontend
982894a65bd318011b3a53b25144e621785a2966
[ "MIT" ]
null
null
null
src/components/Toast/Toast.css
IEEE-VIT/palette-21-frontend
982894a65bd318011b3a53b25144e621785a2966
[ "MIT" ]
1
2021-06-10T06:21:54.000Z
2021-06-10T06:21:54.000Z
.Toastify__toast--default { color : black; } .Toastify__toast-body { padding: 10px; }
13.428571
27
0.659574
a9dcc5d0aa87d3873594a722e0660f6fe79209f7
521
php
PHP
prestashop/analytics/plugins/Referrers/Categories/ReferrersCategory.php
andresmundoweb/prueba
4eac89def7f08b5e551e695edf030a42501266bc
[ "Apache-2.0" ]
null
null
null
prestashop/analytics/plugins/Referrers/Categories/ReferrersCategory.php
andresmundoweb/prueba
4eac89def7f08b5e551e695edf030a42501266bc
[ "Apache-2.0" ]
null
null
null
prestashop/analytics/plugins/Referrers/Categories/ReferrersCategory.php
andresmundoweb/prueba
4eac89def7f08b5e551e695edf030a42501266bc
[ "Apache-2.0" ]
null
null
null
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Plugins\Referrers\Categories; use Piwik\Category\Category; use Piwik\Piwik; class ReferrersCategory extends Category { protected $id = 'Referrers_Referrers'; protected $order = 15; protected $icon = 'icon-reporting-referer'; public function getDisplayName() { return Piwik::translate('Referrers_Acquisition'); } }
20.84
68
0.692898
f6222e3913c0936eaf112edcfd46a875e8e1abc1
934
swift
Swift
Smack/Smack/Utilities/Constants.swift
mischarouleaux/Smack
8756ccfc04add0c0a32f4fe87ca2ced785c80579
[ "MIT" ]
null
null
null
Smack/Smack/Utilities/Constants.swift
mischarouleaux/Smack
8756ccfc04add0c0a32f4fe87ca2ced785c80579
[ "MIT" ]
null
null
null
Smack/Smack/Utilities/Constants.swift
mischarouleaux/Smack
8756ccfc04add0c0a32f4fe87ca2ced785c80579
[ "MIT" ]
null
null
null
// // Constants.swift // Smack // // Created by Mischa Rouleaux on 14-08-17. // Copyright © 2017 Jonny B. All rights reserved. // import Foundation typealias CompletionHandler = (_ Succes: Bool) -> () //URL Constants let BASE_URL = "https://devlopeschatapp.herokuapp.com/v1/" let URL_REGISTER = "\(BASE_URL)account/register" let URL_LOGIN = "\(BASE_URL)account/login" let URL_USER_ADD = "\(BASE_URL)user/add" // Colors let smackPurplePlaceholder = #colorLiteral(red: 0, green: 0.4784313725, blue: 1, alpha: 1) //Notification let NOTIF_USER_DATA_DID_CHANGE = Notification.Name("notifUserDataChanged") //Headers let HEADER = ["Content-Type": "application/json; charset=utf-8"] //Segues let TO_LOGIN = "toLogin" let TO_CREATE_ACCOUNT = "toCreateAccount" let UNWIND = "unwindToChannel" let TO_AVATAR_PICKET = "toAvatarPicker" //User Defaults let TOKEN_KEY = "token" let LOGGED_IN_KEY = "loggedIn" let USER_EMAIL = "userEmail"
24.578947
90
0.739829
7960885623d9039bf6780960850121ef503d0132
8,427
php
PHP
admin/functions/left_nav.php
doodersrage/CheapLocalDeals.com
3260648fdf2f70e5df4191447ed20e3a5fbe307f
[ "MIT" ]
1
2015-11-06T00:08:22.000Z
2015-11-06T00:08:22.000Z
admin/functions/left_nav.php
doodersrage/CheapLocalDeals.com
3260648fdf2f70e5df4191447ed20e3a5fbe307f
[ "MIT" ]
1
2015-10-18T00:19:05.000Z
2016-06-25T16:40:57.000Z
admin/functions/left_nav.php
doodersrage/CheapLocalDeals.com
3260648fdf2f70e5df4191447ed20e3a5fbe307f
[ "MIT" ]
null
null
null
<?PHP function prnt_left_nav() { global $dbh; // added to allow user lockout if ($_SESSION['allowed_access']['Advertisers'] == 1) { $section_link = array('title' => 'Advertisers', 'links' => array(array('name' => 'Existing', 'link' => '?sect=retcustomer&mode=view'), array('name' => 'Add New', 'link' => '?sect=retcustomer&mode=add'), array('name' => 'Pending Approval', 'link' => '?sect=retcustomer&mode=pending_approval'), array('name' => 'Change Pending Approval', 'link' => '?sect=retcustomer&mode=change_pending_approval'), array('name' => 'Non-Cert Adverts', 'link' => '?sect=retcustomer&mode=noncertadverts'), array('name' => 'Reviews', 'link' => '?sect=retcustomer&mode=reviews'), array('name' => 'Payment Problems', 'link' => '?sect=retcustomer&mode=payment_problems'), array('name' => 'Deleted', 'link' => '?sect=retcustomerbackup&mode=view'), array('name' => 'Advertiser Levels', 'link' => '?sect=retcustomer&mode=customerlevels'), array('name' => 'Certificate Rates', 'link' => '?sect=retcustomer&mode=certificateamount'), array('name' => 'Payment Methods', 'link' => '?sect=retcustomer&mode=paymentmethods'), array('name' => 'Promo Codes', 'link' => '?sect=retcustomer&mode=promocodes'), array('name' => 'Download Excel Doc', 'link' => '?sect=retcustomer&mode=printcsv'), ) ); $left_nav = left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Customers'] == 1) { // regular customers section $section_link = array('title' => 'Customers', 'links' => array(array('name' => 'Existing', 'link' => '?sect=regcustomer&mode=view'), array('name' => 'Add New', 'link' => '?sect=regcustomer&mode=add'), array('name' => 'Promo Codes', 'link' => '?sect=regcustomer&mode=promocodes'), array('name' => 'Balance Coupons', 'link' => '?sect=regcustomer&mode=balancecoupons'), array('name' => 'Download Excel Doc', 'link' => '?sect=regcustomer&mode=printcsv'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Zip Codes'] == 1) { // Zip Codes section $section_link = array('title' => 'Locations', 'links' => array(array('name' => 'View/Edit States', 'link' => '?sect=states&mode=view'), array('name' => 'View/Edit Cities & Towns', 'link' => '?sect=cities&mode=view'), array('name' => 'View/Edit Zip Codes', 'link' => '?sect=zipcodes&mode=view'), array('name' => 'Download ZIPs CSV', 'link' => '?sect=zipcodes&mode=download'), array('name' => 'Upload Zips CSV', 'link' => '?sect=zipcodes&mode=upload'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Categories'] == 1) { // Categories section $section_link = array('title' => 'Categories', 'links' => array(array('name' => 'View/Edit', 'link' => '?sect=categories&mode=view'), array('name' => 'Add New', 'link' => '?sect=categories&mode=add'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Pages'] == 1) { // Pages section $section_link = array('title' => 'Pages', 'links' => array(array('name' => 'View/Edit', 'link' => '?sect=pages&mode=view'), array('name' => 'Add New', 'link' => '?sect=pages&mode=add'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Stats'] == 1) { // Stats section $section_link = array('title' => 'Stats', 'links' => array(array('name' => 'Sessions', 'link' => '?sect=sessions&mode=view'), array('name' => 'Category Views', 'link' => '?sect=categories&mode=viewhits'), array('name' => 'Zip Code Views', 'link' => '?sect=zipcodes&mode=viewhits'), array('name' => 'New Advertisers', 'link' => '?sect=retcustomer&mode=newcustomers'), array('name' => 'New Customers', 'link' => '?sect=regcustomer&mode=newcustomers'), array('name' => '404 Page Hits', 'link' => '?sect=404&mode=view'), ) // array('name' => 'Page Hits', // 'link' => '?sect=page_hits&mode=view'), ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Orders'] == 1) { // orders section $section_link = array('title' => 'Orders', 'links' => array(array('name' => 'Recent Orders', 'link' => '?sect=orders&mode=recent_orders'), array('name' => 'All Orders', 'link' => '?sect=orders&mode=all_orders'), array('name' => 'Create Certificate', 'link' => '?sect=createcertificate&mode=new'), array('name' => 'Active Certificates', 'link' => '?sect=orders&mode=active_certificates_listing'), array('name' => 'Inactive Certificates', 'link' => '?sect=orders&mode=inactive_certificates_listing'), array('name' => 'Processed Advertiser Memberships', 'link' => '?sect=orders&mode=processed_advertiser_mems'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Email'] == 1) { // admin users section $section_link = array('title' => 'Email', 'links' => array(array('name' => 'Email Customers', 'link' => '?sect=email&mode=customers'), array('name' => 'Email Customers By State', 'link' => '?sect=email&mode=statecustomers'), array('name' => 'Email Advertisers', 'link' => '?sect=email&mode=advertisers'), array('name' => 'Email By State Advertisers', 'link' => '?sect=email&mode=stateadvertisers'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Admin Users'] == 1) { // admin users section $section_link = array('title' => 'Admin Users', 'links' => array(array('name' => 'Users List', 'link' => '?sect=admin_users&mode=admin_users_listing'), array('name' => 'Add New User', 'link' => '?sect=admin_users&mode=new_user'), ) ); $left_nav .= left_menu_sub($section_link); } // added to allow user lockout if ($_SESSION['allowed_access']['Settings'] == 1) { $section_link = array(); // settings section $section_link['title'] = 'Settings'; // pull and populate settings menu $sql_query = "SELECT id, name FROM settings_groups ORDER BY sort_order ASC, name ASC "; $rows = $dbh->queryAll($sql_query); $i = 0; foreach($rows as $settings_g) { $section_link['links'][$i]['name'] = $settings_g['name']; $section_link['links'][$i]['link'] = '?sect=settings&id='.$settings_g['id']; $i++; } $section_link['links'][$i]['name'] = 'Update XML Sitemaps'; $section_link['links'][$i]['link'] = '../tools/generate_sitemaps/'; $i++; $section_link['links'][$i]['name'] = 'Generate City Category Search Friendly Names'; $section_link['links'][$i]['link'] = '../tools/import_states.php'; $i++; $section_link['links'][$i]['name'] = 'Page Cache Admin'; $section_link['links'][$i]['link'] = '../tools/cache_admin/'; $section_link['links'][$i]['name'] = 'API Access Settings'; $section_link['links'][$i]['link'] = '?sect=apiaccess&mode=view'; $left_nav .= left_menu_sub($section_link); } $left_nav .= T.'<ul>' . LB; $left_nav .= T.'<li><a href="'.SITE_URL.'logoff.php">Logout</a></li>' . LB; $left_nav .= T.'</ul>' . LB; return $left_nav; } // print sub menu function left_menu_sub($section_link) { $left_nav = '<ul><li><h2>'.$section_link['title'].'</h2>'; $left_nav .= T.'<ul>'.LB; $cl_count = count($section_link['links']); for ($i = 0; $i < $cl_count; $i++) { $left_nav .= T.T.'<li>'.print_link(SITE_ADMIN_SSL_URL,$section_link['links'][$i]['link'],$section_link['links'][$i]['name']).'</li>'.LB; } $left_nav .= T.'</ul></li></ul>' . LB; return $left_nav; } ?>
31.44403
138
0.572446
b7ec2ded9ede0c10e1a74a00dbea85b3736245d2
329
cs
C#
src/Services/Account/Account.API/Models/ConfigCalendarAccount.cs
lefevbre-organization/eShopOnContainers
857dca95cfd44b7ca6551a7c9ec0531e4e4a7d0b
[ "MIT" ]
null
null
null
src/Services/Account/Account.API/Models/ConfigCalendarAccount.cs
lefevbre-organization/eShopOnContainers
857dca95cfd44b7ca6551a7c9ec0531e4e4a7d0b
[ "MIT" ]
3
2021-02-25T17:45:17.000Z
2021-04-05T12:12:52.000Z
src/Services/Account/Account.API/Models/ConfigCalendarAccount.cs
lefevbre-organization/eShopOnContainers
857dca95cfd44b7ca6551a7c9ec0531e4e4a7d0b
[ "MIT" ]
null
null
null
namespace Lefebvre.eLefebvreOnContainers.Services.Account.API.Models { /// <summary> /// Clase para configurar los datos por defecto de un proveeddor de imap /// </summary> public class ConfigCalendarAccount { public string provider { get; set; } public string account { get; set; } } }
25.307692
76
0.656535
73db44fc3536eceb341be223f3812d262f2fc9d0
1,108
kt
Kotlin
app/src/main/java/ir/yaddasht/yaddasht/view/behaviour/SearchBarBehaviour.kt
hamooo90/Yaddasht_java
369884a3cc0c807e403712a8f974c72ee8968706
[ "Apache-2.0" ]
null
null
null
app/src/main/java/ir/yaddasht/yaddasht/view/behaviour/SearchBarBehaviour.kt
hamooo90/Yaddasht_java
369884a3cc0c807e403712a8f974c72ee8968706
[ "Apache-2.0" ]
null
null
null
app/src/main/java/ir/yaddasht/yaddasht/view/behaviour/SearchBarBehaviour.kt
hamooo90/Yaddasht_java
369884a3cc0c807e403712a8f974c72ee8968706
[ "Apache-2.0" ]
null
null
null
package ir.yaddasht.yaddasht.view.behaviour import android.content.Context import android.util.AttributeSet import android.view.View import androidx.coordinatorlayout.widget.CoordinatorLayout import androidx.swiperefreshlayout.widget.SwipeRefreshLayout import com.google.android.material.appbar.AppBarLayout class SearchBarBehaviour( context: Context, attrs: AttributeSet ) : CoordinatorLayout.Behavior<View>(context, attrs) { private var previousY: Float = 0f override fun layoutDependsOn( parent: CoordinatorLayout, child: View, dependency: View ): Boolean = dependency is AppBarLayout override fun onDependentViewChanged( parent: CoordinatorLayout, child: View, dependency: View ): Boolean { val currentY = dependency.y // When the AppBarLayout scrolls, scroll the RecyclerView for the same distance (child as SwipeRefreshLayout) .getChildAt(0) .scrollBy(0, (previousY - currentY).toInt()) previousY = currentY return false } }
30.777778
87
0.690433
e02edceceb219f0cf4c73876b5ee073059e208a9
604
cs
C#
AspNetCore22Mvc/Models/CustomModels/Admin_Settings.cs
gillsontechnologies/aspcore22
5aee3d6bdde54071eae8f91c362ccd17177acfd5
[ "MIT" ]
null
null
null
AspNetCore22Mvc/Models/CustomModels/Admin_Settings.cs
gillsontechnologies/aspcore22
5aee3d6bdde54071eae8f91c362ccd17177acfd5
[ "MIT" ]
null
null
null
AspNetCore22Mvc/Models/CustomModels/Admin_Settings.cs
gillsontechnologies/aspcore22
5aee3d6bdde54071eae8f91c362ccd17177acfd5
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace AspNetCore22Mvc.Models.CustomModels { public class Admin_Settings { [Key] public int Id { get; set; } public string AdminEmailId { get; set; } public string GoogleClientId { get; set; } public string GoogleClientSecret { get; set; } public string MicrosoftClientId { get; set; } public string MicrosoftClientSecret { get; set; } public string SendGridKey { get; set; } } }
27.454545
57
0.675497
6ac7b324a9b7ac830bb1f36a0f712aee3c11ba90
3,420
go
Go
DataModeling/05-BasicFriendFinding/main.go
verdverm/neo4j-tutorials
a96d7aa23f0298dd3517992d29837c634688b1bf
[ "MIT" ]
12
2015-01-14T19:05:53.000Z
2019-12-19T23:17:22.000Z
DataModeling/05-BasicFriendFinding/main.go
verdverm/neo4j-tutorials
a96d7aa23f0298dd3517992d29837c634688b1bf
[ "MIT" ]
1
2015-01-16T01:02:09.000Z
2015-01-16T01:51:08.000Z
DataModeling/05-BasicFriendFinding/main.go
verdverm/neo4j-tutorials
a96d7aa23f0298dd3517992d29837c634688b1bf
[ "MIT" ]
3
2015-09-05T13:31:55.000Z
2020-04-24T03:46:15.000Z
package main import ( "fmt" "github.com/jmcvetta/neoism" "github.com/verdverm/neo4j-tutorials/common/reset" ) var ( db *neoism.Database ) func panicErr(err error) { if err != nil { panic(err) } } func init() { resetDB() var err error db, err = neoism.Connect("http://localhost:7474/db/data") if err != nil { panic(err) } initDB() } func resetDB() { reset.RemoveNeo4jDB() reset.StartNeo4jDB() } func initDB() { stmt := ` create (_0:User {name:"Bill"}) create (_1:User {name:"Sara"}) create (_2:User {name:"Derrick"}) create (_3:User {name:"Ian"}) create (_4:User {name:"Jill"}) create (_5:User {name:"Joe"}) create _0-[:Knows]->_2 create _0-[:Knows]->_3 create _1-[:Knows]->_0 create _1-[:Knows]->_3 create _1-[:Knows]->_4 create _5-[:Knows]->_0 create _5-[:Knows]->_1 ` cq := neoism.CypherQuery{ Statement: stmt, } err := db.Cypher(&cq) panicErr(err) } func main() { listUsers() println() getFriendList("Joe") println() getFriendRecommendations("Joe") println() // listGraphData() } func listUsers() { stmt := ` MATCH (user:User) RETURN user.name ORDER BY user.name ` res := []struct { Name string `json:"user.name"` }{} // construct query cq := neoism.CypherQuery{ Statement: stmt, Parameters: nil, Result: &res, } // execute query err := db.Cypher(&cq) panicErr(err) if len(res) > 0 { fmt.Println("Users:") for _, n := range res { fmt.Printf(" %-24s\n", n.Name) } } else { fmt.Println("No results found") } } func getFriendList(user string) { stmt := ` MATCH (user:User {name: {userSub}})-[:Knows]->(friend:User) RETURN friend.name ORDER BY friend.name ` params := neoism.Props{"userSub": user} res := []struct { Friend string `json:"friend.name"` }{} // construct query cq := neoism.CypherQuery{ Statement: stmt, Parameters: params, Result: &res, } // execute query err := db.Cypher(&cq) panicErr(err) if len(res) > 0 { fmt.Println(user, "friends:") for _, n := range res { fmt.Printf(" %-24s\n", n.Friend) } } else { fmt.Println("No results found") } } func getFriendRecommendations(user string) { stmt := ` MATCH (user:User {name: {userSub}})-[:Knows*2..2]->(friend_of_friend:User) WHERE NOT (user)-[:Knows]-(friend_of_friend) RETURN friend_of_friend.name, COUNT(*) as fcount ORDER BY fcount DESC, friend_of_friend.name ` params := neoism.Props{"userSub": user} res := []struct { Friend string `json:"friend_of_friend.name"` Count int `json:"fcount"` }{} // construct query cq := neoism.CypherQuery{ Statement: stmt, Parameters: params, Result: &res, } // execute query err := db.Cypher(&cq) panicErr(err) if len(res) > 0 { fmt.Println(user, "friend recommendations:") for _, n := range res { fmt.Printf(" %-24s %4d\n", n.Friend, n.Count) } } else { fmt.Println("No results found") } } func listGraphData() { // query results res := []struct { From neoism.Node Rel neoism.Relationship To neoism.Node }{} // construct query cq := neoism.CypherQuery{ Statement: ` MATCH (n)-[r]->(m) RETURN n AS From, r AS Rel, m AS To; `, Result: &res, } // execute query err := db.Cypher(&cq) panicErr(err) fmt.Println("Graph Data: ", len(res)) for i, _ := range res { n := res[i] fmt.Printf(" [%d] %+v -> %+v -> %+v\n", i, n.From.Data, n.Rel.Data, n.To.Data) } }
17.44898
81
0.615497
c93ddf7f891de1c11b32ec9e03f8e7e805b0e01f
41
ts
TypeScript
src/rajasekhar/groupPeople/index.ts
unifystockx/code_compete
65f5ab16b85995e071e14d3ea2d6ead474517d6a
[ "MIT" ]
null
null
null
src/rajasekhar/groupPeople/index.ts
unifystockx/code_compete
65f5ab16b85995e071e14d3ea2d6ead474517d6a
[ "MIT" ]
18
2020-09-10T06:46:53.000Z
2020-09-21T09:21:03.000Z
src/rajasekhar/groupPeople/index.ts
unifystockx/code_compete
65f5ab16b85995e071e14d3ea2d6ead474517d6a
[ "MIT" ]
2
2020-09-11T05:59:57.000Z
2020-09-22T08:10:08.000Z
export { default } from './groupPeople';
20.5
40
0.682927
5ec16b2243394594f80954dcb5e8f67ec4b0af9d
360
rb
Ruby
spec/support/config_helper.rb
shadabahmed/multi_config
f090c038aaa9ec948c94727c93ccb9918617e4c2
[ "MIT" ]
null
null
null
spec/support/config_helper.rb
shadabahmed/multi_config
f090c038aaa9ec948c94727c93ccb9918617e4c2
[ "MIT" ]
null
null
null
spec/support/config_helper.rb
shadabahmed/multi_config
f090c038aaa9ec948c94727c93ccb9918617e4c2
[ "MIT" ]
null
null
null
# Loads a namespaced config. Similar to the load method in MultiConfig::ORMs::ActiveRecord::Config.path method def load_namespaced_config(file) namespace = File.basename(file, File.extname(file)) config = YAML.load(ERB.new(IO.read(File.expand_path("../config/#{file}", __FILE__))).result) config.inject({}) { |h, (k, v)| h["#{namespace}_#{k}"]=v; h } end
60
110
0.708333
ef06f56a301ba4ad07d12e3f66300a4df2fa92e2
3,493
go
Go
email/mailer.go
wuyrush/pin
49538589c4bf0536eebb48dff5ede4e5a475ad3d
[ "MIT" ]
null
null
null
email/mailer.go
wuyrush/pin
49538589c4bf0536eebb48dff5ede4e5a475ad3d
[ "MIT" ]
null
null
null
email/mailer.go
wuyrush/pin
49538589c4bf0536eebb48dff5ede4e5a475ad3d
[ "MIT" ]
null
null
null
package email import ( "crypto/tls" "fmt" "net" "net/mail" "net/smtp" "strings" ) // Mailer vends email dispatch logic via SSL/TLS only. type Mailer struct { skipTLSVerify bool // NOTE only set to true during testing } // Mail encapsulates email details necessary for dispatch // When provide sender's authentication, NOTE some mail service(like netease) will use dedicated authorization // code as secret instead of email account login password type Mail struct { Addr string // address of smtp server in host:port format From mail.Address To []mail.Address Subj, ContentType, Content string // TODO: make content as an io.Reader to handle input of larger size Auth smtp.Auth // usually smtp server will publicize the auth extension they support, so let client decide this } // Send sends the given email via SSL/TLS. func (ml *Mailer) Send(m *Mail) error { c, err := ml.newTLSClient(m.Addr) if err != nil { return fmt.Errorf("error creating TLS smtp client: %w", err) } defer c.Close() // TODO: understand the effect of QUIT command - for now we are not sure whether we can always execute it // or not defer c.Quit() // auth if m.Auth != nil { if ok, exts := c.Extension("AUTH"); ok { if err := c.Auth(m.Auth); err != nil { return fmt.Errorf("error authenticating client: %w. smtp server at %s supports AUTH extensions [%s]", err, m.Addr, exts) } } else { // never disclose client's auth details to untrusted network return fmt.Errorf("smtp server at %s has no auth support", m.Addr) } } // prepare email transaction if err := c.Mail(m.From.Address); err != nil { return fmt.Errorf("error executing MAIL command with smtp server at %s: %w", m.Addr, err) } for _, t := range m.To { if err := c.Rcpt(t.Address); err != nil { return fmt.Errorf("error executing RCPT command with smtp server at %s: %w", m.Addr, err) } } // write actual email content to server w, err := c.Data() if err != nil { return fmt.Errorf("error executing DATA command with smtp server at %s: %w", m.Addr, err) } // close the writer before we can call any other c's methods defer w.Close() msg := compose(m) // DEBUG: log.Println("composed message:", msg) if _, err := w.Write([]byte(msg)); err != nil { return fmt.Errorf("error writing email data to smtp server at %s: %w", m.Addr, err) } return nil } func (ml *Mailer) newTLSClient(addr string) (*smtp.Client, error) { host, _, err := net.SplitHostPort(addr) if err != nil { return nil, fmt.Errorf("smtp server address %s is invalid: %w", addr, err) } tlsCfg := &tls.Config{ InsecureSkipVerify: ml.skipTLSVerify, ServerName: host, } conn, err := tls.Dial("tcp", addr, tlsCfg) if err != nil { return nil, fmt.Errorf("error dialing %s via TLS: %w", addr, err) } return smtp.NewClient(conn, host) } func compose(m *Mail) string { headers := map[string]string{ "From": m.From.String(), "Subject": m.Subj, "Content-Type": m.ContentType, } var b strings.Builder for i, t := range m.To { // NOTE msut format the mail address explictly by calling String() otherwise it uses default format fmt.Fprint(&b, t.String()) if i < len(m.To)-1 { fmt.Fprint(&b, ",") } } headers["To"] = b.String() b.Reset() for k, v := range headers { fmt.Fprintf(&b, "%s: %s\r\n", k, v) } fmt.Fprint(&b, "\r\n") fmt.Fprint(&b, m.Content) return b.String() }
31.1875
134
0.649299
fed541acee90f3dbae44df1ccb5939675db3ee15
13,021
rs
Rust
src/image.rs
lobau/image-roll
8505b9f22abb5cce1747282b8cbd9a12c4c2376d
[ "MIT" ]
114
2021-06-11T15:59:57.000Z
2022-03-16T21:42:04.000Z
src/image.rs
lobau/image-roll
8505b9f22abb5cce1747282b8cbd9a12c4c2376d
[ "MIT" ]
39
2021-06-11T20:48:07.000Z
2022-03-16T23:20:27.000Z
src/image.rs
lobau/image-roll
8505b9f22abb5cce1747282b8cbd9a12c4c2376d
[ "MIT" ]
14
2021-06-12T00:39:48.000Z
2022-03-16T01:59:12.000Z
use std::path::Path; use anyhow::{anyhow, Result}; use gtk::gdk_pixbuf::{InterpType, Pixbuf}; use crate::image_operation::{ApplyImageOperation, ImageOperation}; pub type Coordinates = (u32, u32); pub type CoordinatesPair = (Coordinates, Coordinates); pub struct Image { original_image_buffer: Option<Pixbuf>, current_image_buffer: Option<Pixbuf>, preview_image_buffer: Option<Pixbuf>, operations: Vec<ImageOperation>, current_operation_index: Option<usize>, } impl Image { pub fn load<P: AsRef<Path>>(path: P) -> Result<Image> { let image_buffer = Pixbuf::from_file(path)?; Ok(Image { original_image_buffer: Some(image_buffer.clone()), current_image_buffer: Some(image_buffer), preview_image_buffer: None, operations: Vec::new(), current_operation_index: None, }) } pub fn save<P: AsRef<Path>>(&mut self, path: P, clear_operations: bool) -> Result<()> { let current_image_buffer = self .current_image_buffer .as_mut() .ok_or_else(|| anyhow!("Image buffer is missing!"))?; let extension = path .as_ref() .extension() .map(|extension| extension.to_str()) .flatten() .ok_or_else(|| anyhow!("File path doesn't have file extension"))?; let lowercase_extension = extension.to_lowercase(); let file_type = match lowercase_extension.as_str() { file_type @ "jpeg" | file_type @ "png" | file_type @ "tiff" | file_type @ "ico" | file_type @ "bmp" => file_type, "jpg" => "jpeg", _ => "png", }; let options: &[(&str, &str)] = match file_type { "jpeg" => &[("quality", "100")], "png" => &[("compression", "9")], _ => &[], }; current_image_buffer.savev(path.as_ref(), file_type, options)?; if clear_operations { self.original_image_buffer = Some(current_image_buffer.clone()); self.current_operation_index = None; self.operations.clear(); } Ok(()) } pub fn reload<P: AsRef<Path>>(self, path: P) -> Result<Image> { let original_image_buffer = Pixbuf::from_file(path)?; let mut current_image_buffer = original_image_buffer.clone(); if let Some(current_operation_index) = self.current_operation_index { current_image_buffer = self .operations .iter() .take(current_operation_index + 1) .fold(current_image_buffer, |image, operation| { image.apply_operation(operation).unwrap_or(image) }); } Ok(Image { original_image_buffer: Some(original_image_buffer), current_image_buffer: Some(current_image_buffer), preview_image_buffer: None, operations: self.operations, current_operation_index: self.current_operation_index, }) } // pub fn image_buffer(&self) -> Option<&Pixbuf> { // self.image_buffer.as_ref() // } pub fn remove_image_buffers(&mut self) { self.original_image_buffer = None; self.current_image_buffer = None; self.preview_image_buffer = None; } fn image_buffer_scale_to_fit(&self, canvas_width: u32, canvas_height: u32) -> Option<Pixbuf> { if let Some(image_buffer) = &self.current_image_buffer { let image_width = image_buffer.width() as f64; let image_height = image_buffer.height() as f64; let width_ratio = canvas_width as f64 / image_width; let height_ratio = canvas_height as f64 / image_height; let scale_ratio = width_ratio.min(height_ratio); image_buffer.scale_simple( (image_width * scale_ratio) as i32, (image_height * scale_ratio) as i32, InterpType::Bilinear, ) } else { None } } fn image_buffer_resize(&self, scale: u32) -> Option<Pixbuf> { if let Some(image_buffer) = &self.current_image_buffer { image_buffer.scale_simple( (image_buffer.width() as f64 * (scale as f64 / 100.0)) as i32, (image_buffer.height() as f64 * (scale as f64 / 100.0)) as i32, InterpType::Bilinear, ) } else { None } } pub fn create_preview_image_buffer(&mut self, preview_size: PreviewSize) { self.preview_image_buffer = match preview_size { PreviewSize::BestFit(canvas_width, canvas_height) => { self.image_buffer_scale_to_fit(canvas_width, canvas_height) } PreviewSize::OriginalSize => self.current_image_buffer.clone(), PreviewSize::Resized(scale) => self.image_buffer_resize(scale), }; } pub fn create_print_image_buffer( &self, canvas_width: u32, canvas_height: u32, ) -> Option<Pixbuf> { if let Some((image_width, image_height)) = self.image_size() { if image_width > canvas_width || image_height > canvas_height { self.image_buffer_scale_to_fit(canvas_width, canvas_height) } else { self.current_image_buffer.clone() } } else { None } } pub fn preview_image_buffer(&self) -> Option<&Pixbuf> { self.preview_image_buffer.as_ref() } pub fn image_size(&self) -> Option<(u32, u32)> { self.current_image_buffer .as_ref() .map(|image_buffer| (image_buffer.width() as u32, image_buffer.height() as u32)) } pub fn image_aspect_ratio(&self) -> Option<f64> { self.image_size() .map(|(image_width, image_height)| image_width as f64 / image_height as f64) } pub fn preview_image_buffer_size(&self) -> Option<(u32, u32)> { self.preview_image_buffer .as_ref() .map(|image_buffer| (image_buffer.width() as u32, image_buffer.height() as u32)) } pub fn preview_coords_to_image_coords( &self, coords: CoordinatesPair, ) -> Option<CoordinatesPair> { let ((start_coord_x, start_coord_y), (end_coord_x, end_coord_y)) = coords; if let Some((image_width, image_height)) = self.image_size() { if let Some((preview_width, preview_height)) = self.preview_image_buffer_size() { Some(( ( (start_coord_x as f64 * (image_width as f64 / preview_width as f64)) as u32, (start_coord_y as f64 * (image_height as f64 / preview_height as f64)) as u32, ), ( (end_coord_x as f64 * (image_width as f64 / preview_width as f64)) as u32, (end_coord_y as f64 * (image_height as f64 / preview_height as f64)) as u32, ), )) } else { None } } else { None } } pub fn has_unsaved_operations(&self) -> bool { !self.operations.is_empty() && self.current_operation_index.is_some() } pub fn can_undo_operation(&self) -> bool { self.current_operation_index.is_some() } pub fn undo_operation(&mut self) { if self.can_undo_operation() { self.current_operation_index = self.current_operation_index.unwrap().checked_sub(1); self.current_image_buffer = Some( self.operations .iter() .take( self.current_operation_index .map_or(0, |operation_index| operation_index + 1), ) .fold( self.original_image_buffer.clone().unwrap(), |image, operation| image.apply_operation(operation).unwrap_or(image), ), ); } } pub fn can_redo_operation(&self) -> bool { match self.current_operation_index { Some(operation_index) => operation_index + 1 < self.operations.len(), None => !self.operations.is_empty(), } } pub fn redo_operation(&mut self) { if self.can_redo_operation() { self.current_operation_index = self .current_operation_index .map_or(Some(0), |current_operation_index| { Some(current_operation_index + 1) }); self.current_image_buffer = Some( self.operations .iter() .take(self.current_operation_index.unwrap() + 1) .fold( self.original_image_buffer.clone().unwrap(), |image, operation| image.apply_operation(operation).unwrap_or(image), ), ); } } } impl ApplyImageOperation for Image { type Result = Self; fn apply_operation(mut self, image_operation: &ImageOperation) -> Self::Result { if let Some(image_buffer) = self.current_image_buffer { let applied_operation_image_buffer = image_buffer.apply_operation(image_operation); if applied_operation_image_buffer.is_some() { if let Some(current_operation_index) = self.current_operation_index { self.operations.truncate(current_operation_index + 1); } self.operations.push(*image_operation); self.current_operation_index = Some(self.operations.len() - 1); } self.current_image_buffer = Some(applied_operation_image_buffer.unwrap_or(image_buffer)); } self } } #[derive(Clone, Copy, Debug)] pub enum PreviewSize { BestFit(u32, u32), OriginalSize, Resized(u32), } impl From<PreviewSize> for String { fn from(value: PreviewSize) -> Self { match value { PreviewSize::BestFit(_, _) => String::from("Fit screen"), PreviewSize::OriginalSize => String::from("100%"), PreviewSize::Resized(value) => format!("{}%", value), } } } impl PreviewSize { pub fn smaller(self) -> PreviewSize { match self { PreviewSize::BestFit(_, _) => PreviewSize::OriginalSize, PreviewSize::OriginalSize => PreviewSize::Resized(75), PreviewSize::Resized(value) if value == 500 => PreviewSize::Resized(200), PreviewSize::Resized(value) if value == 200 => PreviewSize::Resized(150), PreviewSize::Resized(value) if value == 150 => PreviewSize::Resized(133), PreviewSize::Resized(value) if value == 133 => PreviewSize::OriginalSize, PreviewSize::Resized(value) if value == 75 => PreviewSize::Resized(66), PreviewSize::Resized(value) if value == 66 => PreviewSize::Resized(50), PreviewSize::Resized(value) if value == 50 => PreviewSize::Resized(33), PreviewSize::Resized(value) if value == 33 => PreviewSize::Resized(25), PreviewSize::Resized(value) if value == 25 => PreviewSize::Resized(10), PreviewSize::Resized(value) if value == 10 => PreviewSize::Resized(5), PreviewSize::Resized(_) => panic!("Preview size with given scale is not supported"), } } pub fn can_be_smaller(&self) -> bool { !matches!(self, PreviewSize::Resized(value) if value <= &5) } pub fn larger(self) -> PreviewSize { match self { PreviewSize::BestFit(_, _) => PreviewSize::OriginalSize, PreviewSize::OriginalSize => PreviewSize::Resized(133), PreviewSize::Resized(value) if value == 5 => PreviewSize::Resized(10), PreviewSize::Resized(value) if value == 10 => PreviewSize::Resized(25), PreviewSize::Resized(value) if value == 25 => PreviewSize::Resized(33), PreviewSize::Resized(value) if value == 33 => PreviewSize::Resized(50), PreviewSize::Resized(value) if value == 50 => PreviewSize::Resized(66), PreviewSize::Resized(value) if value == 66 => PreviewSize::Resized(75), PreviewSize::Resized(value) if value == 75 => PreviewSize::OriginalSize, PreviewSize::Resized(value) if value == 133 => PreviewSize::Resized(150), PreviewSize::Resized(value) if value == 150 => PreviewSize::Resized(200), PreviewSize::Resized(value) if value == 200 => PreviewSize::Resized(500), PreviewSize::Resized(_) => panic!("Preview size with given scale is not supported"), } } pub fn can_be_larger(&self) -> bool { !matches!(self, PreviewSize::Resized(value) if value >= &500) } }
38.752976
100
0.57269
afeaa00c02e4ffc8d5fd4b255c6a2dfaae61fdbf
5,955
py
Python
transform/views/test_views.py
ONSdigital/sdx-transform-cora
4f4536a6a4f9f12e6e1c5667d16e9746bd4d85db
[ "MIT" ]
null
null
null
transform/views/test_views.py
ONSdigital/sdx-transform-cora
4f4536a6a4f9f12e6e1c5667d16e9746bd4d85db
[ "MIT" ]
42
2017-03-15T11:46:44.000Z
2018-11-13T11:52:10.000Z
transform/views/test_views.py
ONSdigital/sdx-transform-cora
4f4536a6a4f9f12e6e1c5667d16e9746bd4d85db
[ "MIT" ]
1
2021-04-11T08:11:49.000Z
2021-04-11T08:11:49.000Z
from transform.transformers.pdf_transformer import PDFTransformer from transform.transformers.pdf_transformer_style_cora import CoraPdfTransformerStyle from transform.transformers.image_transformer import ImageTransformer from transform import app from jinja2 import Environment, PackageLoader from flask import make_response, send_file import logging from structlog import wrap_logger import json logger = wrap_logger(logging.getLogger(__name__)) env = Environment(loader=PackageLoader('transform', 'templates')) test_message = """{ "type": "uk.gov.ons.edc.eq:surveyresponse", "origin": "uk.gov.ons.edc.eq", "survey_id": "144", "version": "0.0.1", "collection": { "exercise_sid": "hfjdskf", "instrument_id": "0001", "period": "201605" }, "submitted_at": "2016-03-12T10:39:40Z", "metadata": { "user_id": "789473423", "ru_ref": "12345678901A" }, "data": { "0210": "1", "0220": "0", "0230": "1", "0240": "0", "0410": "1", "0420": "0", "0430": "1", "0440": "0", "2310": "1", "2320": "0", "2330": "1", "2340": "0", "1310": "0", "2675": "0", "2676": "1", "2677": "0", "1410": "123456", "1320": "1", "1420": "123456", "1331": "0", "1332": "1", "1333": "0", "1430": "123456", "1340": "1", "1440": "123456", "1350": "0", "1450": "123456", "1360": "1", "1460": "123456", "1371": "0", "1372": "1", "1373": "0", "1374": "1", "1470": "123456", "0510": "yes", "0610": "0", "0620": "1", "0630": "0", "0520": "yes", "0601": "0", "0602": "1", "0603": "0", "0710": "0", "0720": "1", "0810": "123", "0820": "010", "0830": "789", "0840": "963", "0900": "yes", "1010": "0", "1020": "1", "1030": "0", "1100": "yes", "1510": "1", "1530": "0", "1520": "1", "2657": "0100", "2658": "1000", "2659": "0001", "2660": "0010", "2661": "0100", "2662": "1000", "2663": "0001", "2664": "0010", "2665": "0100", "2666": "1000", "2667": "0001", "2011": "1", "2020": "0", "2030": "1", "2040": "0", "1210": "0100", "1211": "1000", "1220": "0001", "1230": "0010", "1240": "0100", "1250": "1000", "1290": "0001", "1260": "0010", "1270": "0100", "1212": "1000", "1213": "0001", "1280": "0010", "1601": "0001", "1620": "0010", "1631": "0100", "1632": "1000", "1640": "0001", "1650": "0010", "1660": "0100", "1670": "1000", "1680": "0001", "1610": "0010", "1611": "0100", "1690": "1000", "1811": "0", "1812": "1", "1813": "0", "1814": "1", "1821": "1", "1822": "0", "1823": "1", "1824": "0", "1881": "0", "1882": "1", "1883": "0", "1884": "1", "1891": "1", "1892": "0", "1893": "1", "1894": "0", "1841": "0", "1842": "1", "1843": "0", "1844": "1", "1851": "1", "1852": "0", "1853": "1", "1854": "0", "1861": "0", "1862": "1", "1863": "0", "1864": "1", "1871": "1", "1872": "0", "1873": "1", "1874": "0", "2650": "0001", "2651": "0010", "2652": "0100", "2653": "1000", "2654": "0001", "2655": "0010", "2656": "0100", "2668": "0", "2669": "1", "2670": "0", "2671": "1", "2672": "0", "2673": "1", "2674": "0", "2410": "123456", "2420": "123456", "2440": "123456", "2510": "4567890", "2520": "1234567", "2610": "963", "2620": "123", "2631": "1", "2632": "0", "2633": "1", "2634": "0", "2635": "1", "2636": "0", "2678": "0", "2700": "1", "2800": "000", "2801": "10", "2900": "no" } }""" @app.route('/images-test', methods=['GET']) def images_test(): survey_response = json.loads(test_message) form_id = survey_response['collection']['instrument_id'] with open("./transform/surveys/%s.%s.json" % (survey_response['survey_id'], form_id)) as json_file: survey = json.load(json_file) itransformer = ImageTransformer(logger, survey, survey_response, CoraPdfTransformerStyle()) itransformer.get_zipped_images() return send_file(itransformer.zip, mimetype='application/zip') @app.route('/pdf-test', methods=['GET']) def pdf_test(): survey_response = json.loads(test_message) form_id = survey_response['collection']['instrument_id'] with open("./transform/surveys/%s.%s.json" % (survey_response['survey_id'], form_id)) as json_file: survey = json.load(json_file) pdf = PDFTransformer(survey, survey_response, CoraPdfTransformerStyle()) rendered_pdf = pdf.render() response = make_response(rendered_pdf) response.mimetype = 'application/pdf' return response @app.route('/html-test', methods=['GET']) def html_test(): response = json.loads(test_message) template = env.get_template('html.tmpl') form_id = response['collection']['instrument_id'] with open("./transform/surveys/%s.%s.json" % (response['survey_id'], form_id)) as json_file: survey = json.load(json_file) return template.render(response=response, survey=survey)
25.126582
103
0.451889
2d43a11f0e4f049caa1b57f6dc75ec43c2c3bec4
1,007
css
CSS
37/styles.css
andyjakubowski/visual-explorations
02500fdbc652aa65043bd00764a6f3dfc22fab53
[ "MIT" ]
2
2021-12-23T11:11:33.000Z
2022-03-07T03:19:20.000Z
37/styles.css
andyjakubowski/visual-explorations
02500fdbc652aa65043bd00764a6f3dfc22fab53
[ "MIT" ]
3
2022-02-14T02:02:17.000Z
2022-02-19T07:16:44.000Z
38/styles.css
andyjakubowski/visual-explorations
02500fdbc652aa65043bd00764a6f3dfc22fab53
[ "MIT" ]
null
null
null
* { outline: 1px solid hsla(0, 0%, 50%, 50%); } :root { height: 100vh; background: thistle; } body { margin: 0; height: 100%; /* background: white; */ } .container { width: 800px; height: 300px; background: white; } .v-stack { min-width: 0; min-height: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; --v-stack-alignment: flex-start; align-items: var(--v-stack-alignment); } .h-stack { min-width: 0; min-height: 0; align-self: stretch; display: flex; justify-content: var(--v-stack-alignment, center); align-items: center; /* flex: var(--flex); */ } .v-spacer { height: 100vh; flex: 1 100 auto; } .h-spacer { width: 100vw; flex: 1 100 auto; } .view { box-sizing: border-box; flex: none; background: seashell; opacity: 0.5; } .view.a { padding: 12px 16px; } .view.b { padding: 4px 32px; } .view.c { padding: 16px 8px; } /* Positioning */ /* Display */ /* Colors */ /* Type */ /* Other */
13.426667
52
0.599801
5e766266da7802d4f39bb401a477d23cc6e5b454
430
rb
Ruby
spec/target_spec.rb
ifreecarve/vivisector
67f5530c86647c9d6e49a67ff74f579b1e83c5fd
[ "Apache-2.0" ]
null
null
null
spec/target_spec.rb
ifreecarve/vivisector
67f5530c86647c9d6e49a67ff74f579b1e83c5fd
[ "Apache-2.0" ]
null
null
null
spec/target_spec.rb
ifreecarve/vivisector
67f5530c86647c9d6e49a67ff74f579b1e83c5fd
[ "Apache-2.0" ]
null
null
null
require 'prism_qa' RSpec.describe PrismQA::Target, "#init" do context "when initialized and populated" do it "retains values" do target = PrismQA::Target.new expect(target.name).to eq nil expect(target.attribute).to eq nil target.name = "my_name" target.attribute = "my attribute" expect(target.name).to eq "my_name" expect(target.attribute).to eq "my attribute" end end end
26.875
51
0.669767
ff4320db5bd1ccf8a20540f20fece0a392103ce4
203
py
Python
exo2/test_file.py
natoutatou/seatech-poo-python-robotics
711988b3a0affcf9aa1234e97a35654d563b18d1
[ "MIT" ]
null
null
null
exo2/test_file.py
natoutatou/seatech-poo-python-robotics
711988b3a0affcf9aa1234e97a35654d563b18d1
[ "MIT" ]
null
null
null
exo2/test_file.py
natoutatou/seatech-poo-python-robotics
711988b3a0affcf9aa1234e97a35654d563b18d1
[ "MIT" ]
null
null
null
from exo2_starter_template import Cyborg from robot import Robot from human import Human h = Human('femme') h.eat(['banane', 'chocolaaat', 'petit ecolier']) print(h.estomac) h.eat(['pizza', 'pizza'])
22.555556
48
0.724138
6f2ff837cade58a32d5c6055db6f6bc0f7dc7cad
1,560
sql
SQL
examples/minitwit/minitwit/population.sql
SwatiSah00/flask_2
cc1c1d81c49effb5f3b67590d25295320b867ab5
[ "BSD-3-Clause" ]
null
null
null
examples/minitwit/minitwit/population.sql
SwatiSah00/flask_2
cc1c1d81c49effb5f3b67590d25295320b867ab5
[ "BSD-3-Clause" ]
null
null
null
examples/minitwit/minitwit/population.sql
SwatiSah00/flask_2
cc1c1d81c49effb5f3b67590d25295320b867ab5
[ "BSD-3-Clause" ]
null
null
null
INSERT INTO user (username, email, pw_hash) VALUES ('swati', 'swati@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b'); INSERT INTO user (username, email, pw_hash) VALUES ('sachin', 'sachin@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b'); INSERT INTO user (username, email, pw_hash) VALUES ('satish', 'satish@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b'); INSERT INTO user (username, email, pw_hash) VALUES ('saket', 'saket@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b'); INSERT INTO user (username, email, pw_hash) VALUES ('disu', 'disu@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b'); INSERT INTO user (username, email, pw_hash) VALUES ('nani', 'nani@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b'); INSERT INTO follower VALUES (1, 2); INSERT INTO follower VALUES (1, 3); INSERT INTO follower VALUES (2, 3); INSERT INTO follower VALUES (4, 3); INSERT INTO follower VALUES (5, 1); INSERT INTO follower VALUES (3, 2); INSERT INTO message (author_id, text, pub_date) VALUES (1, 'Hey everyone!', 100); INSERT INTO message (author_id, text, pub_date) VALUES (2, 'Hey! Goodmorning!', 100); INSERT INTO message (author_id, text, pub_date) VALUES (5, 'Have a great day guys!', 100);
33.913043
135
0.784615
7f93b87d3963fdfc8bf888e83c5ec3a2a4a52754
439
kt
Kotlin
seouling/src/main/java/mobile/seouling/com/application/data/db/PlanDao.kt
thisishoonlee/seouling-android
7c7cfbf3170856546d5b0b804a37b642c222214a
[ "Apache-2.0" ]
null
null
null
seouling/src/main/java/mobile/seouling/com/application/data/db/PlanDao.kt
thisishoonlee/seouling-android
7c7cfbf3170856546d5b0b804a37b642c222214a
[ "Apache-2.0" ]
null
null
null
seouling/src/main/java/mobile/seouling/com/application/data/db/PlanDao.kt
thisishoonlee/seouling-android
7c7cfbf3170856546d5b0b804a37b642c222214a
[ "Apache-2.0" ]
null
null
null
package mobile.seouling.com.application.data.db import androidx.paging.DataSource import androidx.room.Dao import androidx.room.Query import io.reactivex.Flowable import mobile.seouling.com.application.data.vo.Plan @Dao interface PlanDao : BaseDao<Plan> { @Query("SELECT * FROM plans") fun getPlans() : Flowable<List<Plan>> @Query("SELECT * FROM plans") fun getPlansAsDataSourceFactory(): DataSource.Factory<Int, Plan> }
25.823529
68
0.763098
406a7c0fea3b0b594e1ee02917eb5c53ba3b19d4
915
ts
TypeScript
src/app/@core/stores/user.store.ts
akania93/RecruitmentApp-Properly
4b8b473701b4d046d5ac8ae67535c4f7487b6e6a
[ "MIT" ]
null
null
null
src/app/@core/stores/user.store.ts
akania93/RecruitmentApp-Properly
4b8b473701b4d046d5ac8ae67535c4f7487b6e6a
[ "MIT" ]
null
null
null
src/app/@core/stores/user.store.ts
akania93/RecruitmentApp-Properly
4b8b473701b4d046d5ac8ae67535c4f7487b6e6a
[ "MIT" ]
null
null
null
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { share } from 'rxjs/operators'; import { User } from '../interfaces/common/users'; @Injectable({ providedIn: 'root', }) export class UserStore { private user: User; protected userState$ = new BehaviorSubject<User>(undefined); getUser(): User { return this.user; } setUser(paramUser: User) { this.user = paramUser; this.userState$.next(this.user); this.changeUserState(paramUser); } onUserStateChange() { return this.userState$.pipe(share()); } changeUserState(paramUser: User) { this.userState$.next(paramUser); } setSetting(themeName: string) { if (this.user) { if (this.user.settings) { this.user.settings.themeName = themeName; } else { this.user.settings = { themeName }; } this.changeUserState(this.user); } } }
20.795455
62
0.642623
44b950fa188899bd4b68fab53897592ede577865
647
sh
Shell
bin/check_sync_gspan_class.sh
asangphukieo/GraphProt
1ce3db40e30ebd9442203dbf8c05aa0e72ffe170
[ "MIT" ]
11
2017-09-27T16:05:06.000Z
2022-01-18T09:07:16.000Z
bin/check_sync_gspan_class.sh
asangphukieo/GraphProt
1ce3db40e30ebd9442203dbf8c05aa0e72ffe170
[ "MIT" ]
6
2018-11-22T15:52:50.000Z
2022-01-15T07:50:58.000Z
bin/check_sync_gspan_class.sh
asangphukieo/GraphProt
1ce3db40e30ebd9442203dbf8c05aa0e72ffe170
[ "MIT" ]
3
2019-09-04T10:09:58.000Z
2020-11-15T20:52:43.000Z
#!/usr/bin/env bash [ $# -ne 2 ] && echo "Usage: $(basename $0) GSPAN.gz class" && echo "Instead of: $(basename $0) $*" && exit 1 # this skript will check if the class file and the (gzipped) gspan are in sync # iE if the number of lines in the class file matches the number of graphs # (regexp '^t') in the gspan file GSPAN_FILE=$1 CLASS_FILE=$2 N_CLASS=`cat ${CLASS_FILE} | wc -l` N_GRAPHS=`zcat ${GSPAN_FILE} | grep -c '^t'` #echo $N_GRAPHS; #echo $N_CLASS; [ $N_GRAPHS -ne $N_CLASS ] && echo "error: gspan and class not in sync [${N_GRAPHS} graphs vs. ${N_CLASS} class entries]" && exit 1 echo "OK: gspan and class in sync" && exit 0
32.35
131
0.658423
2555654a477c0292f3e134726c6e8e3986f3c5fc
4,102
cs
C#
unittest-ddd/Dataset/BaseDataSet.cs
mapdojo/SQLServerSpatialTools
9bdfcddae1baacef91905b898b2e8a2334aa2f20
[ "MS-PL" ]
39
2019-06-27T07:44:24.000Z
2022-03-29T09:14:59.000Z
unittest-ddd/Dataset/BaseDataSet.cs
mapdojo/SQLServerSpatialTools
9bdfcddae1baacef91905b898b2e8a2334aa2f20
[ "MS-PL" ]
7
2019-06-27T16:05:14.000Z
2022-03-24T18:25:39.000Z
unittest-ddd/Dataset/BaseDataSet.cs
mapdojo/SQLServerSpatialTools
9bdfcddae1baacef91905b898b2e8a2334aa2f20
[ "MS-PL" ]
19
2019-05-21T22:37:18.000Z
2022-02-16T00:31:16.000Z
//------------------------------------------------------------------------------ // Copyright (c) 2019 Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ using System; using System.Globalization; namespace SQLSpatialTools.UnitTests.DDD { public class BaseDataSet { public const string UpdateTargetQuery = "UPDATE [{0}] Set [{1}] = {2} WHERE [ID] = {3};"; public string ExpectedResult1 { get; set; } public string ExpectedResult2 { get; set; } public string SqlObtainedResult1 { get; set; } public string SqlObtainedResult2 { get; set; } public int Id { get; set; } public string Result { get; set; } public string SqlError { get; set; } public string SqlElapsedTime { get; private set; } public string OracleResult1 { get; set; } public bool OutputComparison1 { get; set; } public bool OutputComparison2 { get; set; } public string OracleResult2 { get; set; } public string OracleElapsedTime { get; private set; } public string OracleError { get; set; } public string ExecutionTime => DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture); public string OracleQuery { get; set; } internal void SetElapsedTime(TimeSpan elapsed) { SqlElapsedTime = elapsed.ToString(); } internal void SetOracleElapsedTime(TimeSpan elapsed) { OracleElapsedTime = elapsed.ToString(); } internal string GetTargetUpdateQuery(string tableName, string fieldName, object fieldValue) { return string.Format(CultureInfo.CurrentCulture, UpdateTargetQuery, tableName, fieldName, GetFieldValue(fieldValue), Id); } internal string UpdateOverallStatusCountQuery(string tableName, int count, int passCount, int failCount) { return string.Format(CultureInfo.CurrentCulture, OverallResult.UpdateQuery, count, passCount, failCount, tableName); } internal string InsertOverallStatusQuery(string tableName) { return string.Format(CultureInfo.CurrentCulture, OverallResult.InsertQuery, tableName); } private static string GetFieldValue(object fieldValue) { if (fieldValue == null) return $"N''"; var type = fieldValue.GetType(); if (type == typeof(int) || type == typeof(float) || type == typeof(double)) return fieldValue.ToString(); else if (type == typeof(bool)) return (bool)fieldValue ? "1" : "0"; return $"N'{fieldValue}'"; } public class OverallResult { public const string TableName = "_LRS_OverallResult"; public static readonly string SelectQuery = $"SELECT [Id], [FunctionName], [TotalCount], [PassCount], [FailCount] FROM [{TableName}];"; private static readonly string InsertPart1 = $"INSERT INTO[{TableName}] ([FunctionName]) "; private const string InsertPart2 = "VALUES (N'{0}');"; public static readonly string InsertQuery = string.Concat(InsertPart1, InsertPart2); private static readonly string UpdatePart1 = $"UPDATE [{TableName}] SET "; private const string UpdatePart2 = "[TotalCount] = {0}, [PassCount] = {1}, [FailCount] = {2} WHERE [FunctionName] = '{3}';"; public static readonly string UpdateQuery = string.Concat(UpdatePart1, UpdatePart2); public string FunctionName { get; set; } public int TotalCount { get; set; } public int PassCount { get; set; } public int FailCount { get; set; } } public class OralceTwoResult { public string Output1 { get; set; } public string Output2 { get; set; } } public class OralceOneResult { public string Output1 { get; set; } } } }
40.613861
136
0.587518
2faab8a47f14e1e80ef9778047cb061953ec9fa6
357
py
Python
Meus_dessafios/Exercicios2021/ex109/testes.py
DiegoSilvaHoffmann/Curso-de-Python
62824bbd3ed42b256fda77acd49536ec7cf23b29
[ "MIT" ]
null
null
null
Meus_dessafios/Exercicios2021/ex109/testes.py
DiegoSilvaHoffmann/Curso-de-Python
62824bbd3ed42b256fda77acd49536ec7cf23b29
[ "MIT" ]
null
null
null
Meus_dessafios/Exercicios2021/ex109/testes.py
DiegoSilvaHoffmann/Curso-de-Python
62824bbd3ed42b256fda77acd49536ec7cf23b29
[ "MIT" ]
null
null
null
from ex109 import moeda valor = float(input('Informe um valor: R$')) print(f'A metade de {moeda.moeda(valor)}, é {moeda.metade(valor, True)}.') print(f'O dobro de {moeda.moeda(valor)}, é {moeda.dobro(valor, True)}.') print(f'Com aumento de 10%, fica {moeda.aumentar(valor, 10, True)}.') print(f'Com 15% de desconto, fica {moeda.diminuir(valor, 15, True)}')
51
74
0.691877
da687d2f635648bc6da19f5fe42253e28eaf854a
780
php
PHP
console/controllers/JdController.php
jellywen2017/jelly
79ba05f895417862fddf32f3abdb817399a1363c
[ "BSD-3-Clause" ]
null
null
null
console/controllers/JdController.php
jellywen2017/jelly
79ba05f895417862fddf32f3abdb817399a1363c
[ "BSD-3-Clause" ]
null
null
null
console/controllers/JdController.php
jellywen2017/jelly
79ba05f895417862fddf32f3abdb817399a1363c
[ "BSD-3-Clause" ]
null
null
null
<?php namespace console\controllers; use Yii; use common\helpers\AppAlarmHelper; use Curl\Curl; class JdController extends BaseMongoController { public function actionDegree(){ $params = [ 'source'=>'smartH5', ]; $curl = new Curl(); $curl->post('https://ms.jr.jd.com/gw/generic/pc_jj/h5/m/getDegreeInfo',$params); if ($curl->error) { Yii::error("code:".$curl->errorCode." message:".$curl->errorMessage); return false; } $data = $curl->response; $degree = $data->resultData->datas->degree; $degreeDate = $data->resultData->datas->degreeDate; $msg = "热度:".$degree." 日期:".$degreeDate; echo $msg; AppAlarmHelper::sendAlarm($msg); } }
25.16129
88
0.571795
2c5f7ea4c68c24ffc532cde965d12f210b74f55e
144
py
Python
LearningPython/MOOC's/generator.py
bk211/fac
9d74875561f60978d2c39af3d5e97605d21c0cc9
[ "MIT" ]
1
2018-11-21T10:56:09.000Z
2018-11-21T10:56:09.000Z
LearningPython/MOOC's/generator.py
bk211/fac
9d74875561f60978d2c39af3d5e97605d21c0cc9
[ "MIT" ]
null
null
null
LearningPython/MOOC's/generator.py
bk211/fac
9d74875561f60978d2c39af3d5e97605d21c0cc9
[ "MIT" ]
1
2021-12-04T20:31:36.000Z
2021-12-04T20:31:36.000Z
import os L1=['Hello','World',18,'Apple',None] L2=[] for elem in L1: if isinstance(elem,str): elem=elem.lower() L2.append(elem) print(L2)
18
36
0.659722
446ad1725a02f39cea3544cd2cc7cb25830461aa
543
py
Python
algorithms/word-pattern.py
Chronoviser/leetcode-1
65ee0504d64c345f822f216fef6e54dd62b8f858
[ "MIT" ]
41
2018-07-03T07:35:30.000Z
2021-09-25T09:33:43.000Z
algorithms/word-pattern.py
Chronoviser/leetcode-1
65ee0504d64c345f822f216fef6e54dd62b8f858
[ "MIT" ]
2
2018-07-23T10:50:11.000Z
2020-10-06T07:34:29.000Z
algorithms/word-pattern.py
Chronoviser/leetcode-1
65ee0504d64c345f822f216fef6e54dd62b8f858
[ "MIT" ]
7
2018-07-06T13:43:18.000Z
2020-10-06T02:29:57.000Z
class Solution: def wordPattern(self, pattern, str): """ :type pattern: str :type str: str :rtype: bool """ words = str.split(' ') if len(pattern) != len(words) or len(set(pattern)) != len(set(words)): return False d = dict() for index, value in enumerate(pattern): if value not in d: d[value] = words[index] else: if d[value] != words[index]: return False return True
25.857143
78
0.464088
23e7c9bffd30375a030689f6a3a17b4d1cdf1c0d
896
js
JavaScript
src/Storefront/Resources/app/administration/src/modules/sw-settings-storefront/index.js
michielkalle/platform
72987304b01c1c666c7ac2896ac4157f2e1468c1
[ "MIT" ]
null
null
null
src/Storefront/Resources/app/administration/src/modules/sw-settings-storefront/index.js
michielkalle/platform
72987304b01c1c666c7ac2896ac4157f2e1468c1
[ "MIT" ]
null
null
null
src/Storefront/Resources/app/administration/src/modules/sw-settings-storefront/index.js
michielkalle/platform
72987304b01c1c666c7ac2896ac4157f2e1468c1
[ "MIT" ]
null
null
null
import './page/sw-settings-storefront-index'; import './component/sw-settings-storefront-configuration'; Shopware.Module.register('sw-settings-storefront', { type: 'core', name: 'sw-settings-storefront', title: 'sw-settings-storefront.general.mainMenuItemGeneral', description: 'sw-settings-storefront.general.description', color: '#9AA8B5', icon: 'default-building-shop', favicon: 'icon-module-settings.png', routes: { index: { component: 'sw-settings-storefront-index', path: 'index', meta: { parentPath: 'sw.settings.index.system', privilege: 'system.system_config', }, }, }, settingsItem: { group: 'system', to: 'sw.settings.storefront.index', icon: 'default-building-shop', privilege: 'system.system_config', }, });
28.903226
64
0.59933
b0d7ce4547ac5598b413cb9d8a37795fb0c37c78
6,618
py
Python
contrail-openstack/hooks/contrail_openstack_hooks.py
hashnfv/hashnfv-ovno
12a817571140fcb2531112b894ad37fbfffd44c6
[ "Apache-2.0" ]
null
null
null
contrail-openstack/hooks/contrail_openstack_hooks.py
hashnfv/hashnfv-ovno
12a817571140fcb2531112b894ad37fbfffd44c6
[ "Apache-2.0" ]
null
null
null
contrail-openstack/hooks/contrail_openstack_hooks.py
hashnfv/hashnfv-ovno
12a817571140fcb2531112b894ad37fbfffd44c6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json from subprocess import CalledProcessError, check_output import sys import uuid from charmhelpers.core.hookenv import ( Hooks, UnregisteredHookError, config, log, related_units, relation_get, relation_ids, relation_set, status_set, leader_get, leader_set, is_leader, application_version_set, ) from charmhelpers.core.host import ( restart_on_change, ) from charmhelpers.fetch import ( apt_install, apt_update, apt_upgrade, configure_sources ) from contrail_openstack_utils import ( write_configs, update_service_ips, ) NEUTRON_API_PACKAGES = ["neutron-plugin-contrail"] hooks = Hooks() config = config() @hooks.hook("install.real") def install(): status_set('maintenance', 'Installing...') configure_sources(True, "install-sources", "install-keys") apt_update(fatal=True) apt_upgrade(fatal=True, dist=False) status_set("blocked", "Missing relation to contrail-controller") @hooks.hook("config-changed") def config_changed(): if config.changed("install-sources") or config.changed("install-keys"): configure_sources(True, "install-sources", "install-keys") apt_update(fatal=True) apt_upgrade(fatal=True, dist=False) if is_leader(): _configure_metadata_shared_secret() @hooks.hook("leader-elected") def leader_elected(): _configure_metadata_shared_secret() _notify_clients() @hooks.hook("leader-settings-changed") def leader_settings_changed(): _notify_clients() @hooks.hook("contrail-controller-relation-joined") def contrail_controller_joined(): if not is_leader(): return data = _get_orchestrator_info() relation_set(**data) @hooks.hook("contrail-controller-relation-changed") @restart_on_change({"/etc/neutron/plugins/opencontrail/ContrailPlugin.ini": ["neutron-server"]}) def contrail_controller_changed(): data = relation_get() def _update_config(key, data_key): if data_key in data: val = data[data_key] if val is not None: config[key] = val else: config.pop(key, None) _update_config("auth_info", "auth-info") _update_config("ssl_ca", "ssl-ca") _update_config("api_vip", "api-vip") _update_config("api_ip", "private-address") _update_config("api_port", "port") config.save() write_configs() status_set("active", "Unit is ready") # auth_info can affect endpoints changed = update_service_ips() if changed and is_leader(): data = _get_orchestrator_info() for rid in relation_ids("contrail-controller"): relation_set(relation_id=rid, **data) @hooks.hook("contrail-controller-relation-departed") @restart_on_change({"/etc/neutron/plugins/opencontrail/ContrailPlugin.ini": ["neutron-server"]}) def contrail_cotroller_departed(): units = [unit for rid in relation_ids("contrail-controller") for unit in related_units(rid)] if units: return for key in ["auth_info", "ssl_ca", "api_vip", "api_ip", "api_port"]: config.pop(key, None) config.save() write_configs() status_set("blocked", "Missing relation to contrail-controller") def _configure_metadata_shared_secret(): secret = leader_get("metadata-shared-secret") if config["enable-metadata-server"] and not secret: secret = str(uuid.uuid4()) elif not config["enable-metadata-server"] and secret: secret = None else: return leader_set(settings={"metadata-shared-secret": secret}) def _notify_clients(): # notify clients data = _get_orchestrator_info() for rid in relation_ids("contrail-controller"): relation_set(relation_id=rid, **data) for rid in relation_ids("nova-compute"): nova_compute_joined(rid) def _get_orchestrator_info(): info = {"cloud_orchestrator": "openstack"} if config["enable-metadata-server"]: info["metadata_shared_secret"] = leader_get("metadata-shared-secret") def _add_to_info(key): value = config.get(key) if value: info[key] = value _add_to_info("compute_service_ip") _add_to_info("image_service_ip") _add_to_info("network_service_ip") return {"orchestrator-info": json.dumps(info)} @hooks.hook("neutron-api-relation-joined") def neutron_api_joined(): apt_install(NEUTRON_API_PACKAGES, fatal=True) try: cmd = ["dpkg-query", "-f", "${Version}\\n", "-W", "neutron-plugin-contrail"] version = check_output(cmd).decode("UTF-8").rstrip() application_version_set(version) except CalledProcessError as e: log("Couldn't detect installed application version: " + str(e)) # create plugin config base = "neutron_plugin_contrail.plugins.opencontrail" plugin = base + ".contrail_plugin.NeutronPluginContrailCoreV2" service_plugins = base + ".loadbalancer.v2.plugin.LoadBalancerPluginV2" extensions = [ "/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/extensions", "/usr/lib/python2.7/dist-packages/neutron_lbaas/extensions"] conf = { "neutron-api": { "/etc/neutron/neutron.conf": { "sections": { "DEFAULT": [ ("api_extensions_path", ":".join(extensions)) ] } } } } settings = { "neutron-plugin": "contrail", "core-plugin": plugin, "neutron-plugin-config": "/etc/neutron/plugins/opencontrail/ContrailPlugin.ini", "service-plugins": service_plugins, "quota-driver": base + ".quota.driver.QuotaDriver", "subordinate_configuration": json.dumps(conf)} relation_set(relation_settings=settings) @hooks.hook("nova-compute-relation-joined") def nova_compute_joined(rel_id=None): # create plugin config conf = { "nova-compute": { "/etc/nova/nova.conf": { "sections": { "DEFAULT": [ ("firewall_driver", "nova.virt.firewall.NoopFirewallDriver") ] } } } } settings = { "metadata-shared-secret": leader_get("metadata-shared-secret"), "subordinate_configuration": json.dumps(conf)} relation_set(relation_id=rel_id, relation_settings=settings) def main(): try: hooks.execute(sys.argv) except UnregisteredHookError as e: log("Unknown hook {} - skipping.".format(e)) if __name__ == "__main__": main()
27.347107
78
0.654125
7486ae77cc25109730041763b5de0e775f715b65
1,027
h
C
include/jet/points_to_implicit3.h
PavelBlend/fluid-engine-dev
45b4bdbdb4c6d8c0beebc682180469198203b0ef
[ "MIT" ]
1,355
2016-05-08T07:29:22.000Z
2022-03-30T13:59:35.000Z
include/jet/points_to_implicit3.h
Taiyuan-Zhang/fluid-engine-dev
45b4bdbdb4c6d8c0beebc682180469198203b0ef
[ "MIT" ]
208
2016-05-25T19:47:27.000Z
2022-01-17T04:18:29.000Z
include/jet/points_to_implicit3.h
Taiyuan-Zhang/fluid-engine-dev
45b4bdbdb4c6d8c0beebc682180469198203b0ef
[ "MIT" ]
218
2016-08-23T16:51:10.000Z
2022-03-31T03:55:48.000Z
// Copyright (c) 2018 Doyub Kim // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef INCLUDE_JET_POINTS_TO_IMPLICIT3_H_ #define INCLUDE_JET_POINTS_TO_IMPLICIT3_H_ #include <jet/array_accessor1.h> #include <jet/scalar_grid3.h> #include <jet/vector3.h> #include <memory> namespace jet { //! Abstract base class for 3-D points-to-implicit converters. class PointsToImplicit3 { public: //! Default constructor. PointsToImplicit3(); //! Default destructor. virtual ~PointsToImplicit3(); //! Converts the given points to implicit surface scalar field. virtual void convert(const ConstArrayAccessor1<Vector3D>& points, ScalarGrid3* output) const = 0; }; //! Shared pointer for the PointsToImplicit3 type. typedef std::shared_ptr<PointsToImplicit3> PointsToImplicit3Ptr; } // namespace jet #endif // INCLUDE_JET_POINTS_TO_IMPLICIT3_H_
27.026316
72
0.744888
6d91cacb9a23cd502a916b5f4866bdd83e062f9c
46
ts
TypeScript
js/solid/cis-alarm-snooze.d.ts
reesretuta/dropshipping-icons
c4b4f40959b1e44abaacd86981b9a896b121f419
[ "CC-BY-4.0", "MIT" ]
null
null
null
js/solid/cis-alarm-snooze.d.ts
reesretuta/dropshipping-icons
c4b4f40959b1e44abaacd86981b9a896b121f419
[ "CC-BY-4.0", "MIT" ]
null
null
null
js/solid/cis-alarm-snooze.d.ts
reesretuta/dropshipping-icons
c4b4f40959b1e44abaacd86981b9a896b121f419
[ "CC-BY-4.0", "MIT" ]
null
null
null
export declare const cisAlarmSnooze: string[];
46
46
0.826087
a378a10d3ccc7ef2c2627979d317633e43226955
690
ts
TypeScript
node_modules/@types/gulp-protractor/index.d.ts
daliyajohn/Angular-2-EventEmitter-
c453ebfe43ac1d93a7e4befb4fea0576c2830f7b
[ "MIT" ]
1
2019-02-21T16:29:27.000Z
2019-02-21T16:29:27.000Z
node_modules/@types/gulp-protractor/index.d.ts
daliyajohn/Angular-2-EventEmitter-
c453ebfe43ac1d93a7e4befb4fea0576c2830f7b
[ "MIT" ]
null
null
null
node_modules/@types/gulp-protractor/index.d.ts
daliyajohn/Angular-2-EventEmitter-
c453ebfe43ac1d93a7e4befb4fea0576c2830f7b
[ "MIT" ]
null
null
null
// Type definitions for gulp-protractor v1.0.0 // Project: https://github.com/mllrsohn/gulp-protractor // Definitions by: Tanguy Krotoff <https://github.com/tkrotoff> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import gulp = require('gulp'); interface IOptions { configFile?: string; args?: Array<string>; debug?: boolean; } interface IGulpProtractor { getProtractorDir(): string; protractor(options?: IOptions): NodeJS.ReadWriteStream; webdriver_standalone: gulp.TaskCallback; webdriver_update: gulp.TaskCallback; } declare var protractor: IGulpProtractor; export = protractor;
27.6
67
0.713043
a350ec52e8c952d6262bea3b3c264d8eb613ec46
232
sql
SQL
migrations/selection.sql
NYCPlanning/labs-factfinder-api
6270ec2001df79b3903adcdd8388d3f04e434c65
[ "CC0-1.0" ]
5
2018-02-25T14:22:37.000Z
2021-12-13T19:17:51.000Z
migrations/selection.sql
NYCPlanning/labs-factfinder-api
6270ec2001df79b3903adcdd8388d3f04e434c65
[ "CC0-1.0" ]
65
2018-02-07T00:28:29.000Z
2021-09-29T19:38:17.000Z
migrations/selection.sql
NYCPlanning/labs-factfinder-api
6270ec2001df79b3903adcdd8388d3f04e434c65
[ "CC0-1.0" ]
1
2018-02-09T02:43:34.000Z
2018-02-09T02:43:34.000Z
/* This will be used to store custom geography selections */ CREATE TABLE IF NOT EXISTS selection ( geotype text CHECK(geotype IN ('blocks','tracts','ntas','cdtas','boroughs','districts')), geoids text[], hash text PRIMARY KEY );
29
90
0.724138
445c41d4d16acaed9fc0c9b7806c12251a2a36a6
4,262
py
Python
generateReport.py
ravdeep9530/MB_bathroom_v0.2
6051e0ea567acba6f3a6bca0ae405504cce67c1b
[ "MIT" ]
null
null
null
generateReport.py
ravdeep9530/MB_bathroom_v0.2
6051e0ea567acba6f3a6bca0ae405504cce67c1b
[ "MIT" ]
2
2021-05-08T21:02:22.000Z
2021-09-01T05:24:40.000Z
generateReport.py
ravdeep9530/MB_bathroom_v0.2
6051e0ea567acba6f3a6bca0ae405504cce67c1b
[ "MIT" ]
null
null
null
import sched, time import os import datetime import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders from sqlConn import con import asyncio import pymysql email_template = [] def send_report(filename=""): server = None # Send the mail if email_template.__len__() > 0: try: print(email_template[0][1]) server = smtplib.SMTP(email_template[0][4], email_template[0][5],None, 30) #try: # server.connect(email_template[0][4], email_template[0][5],None, 30) #except smtplib.SMTPAuthenticationError as e: # print(str(e)) #print(email_template[0][1]) import traceback traceback.print_exc() #server.connect() server.starttls() # Next, log in to the server server.login(email_template[0][1], email_template[0][2]) msg = MIMEMultipart() msg['From'] = "ravdeeps3@gmail.com" msg['To'] = email_template[0][9] msg['Subject'] = email_template[0][6] body = email_template[0][7] msg.attach(MIMEText(body, 'plain')) attachment = "" if email_template[0][8] == 1: part = MIMEBase('application', 'octet-stream') try: attachment = open("./" + filename, "rb") except Exception as ee: print("" + str(ee)) if attachment != "": part.set_payload((attachment).read()) encoders.encode_base64(part) part.add_header('Content-Disposition', "attachment; filename= %s" % filename) msg.attach(part) text = msg.as_string() server.sendmail("ravdeeps3@gmail.com",email_template[0][9].split(','), text) print('sent' + str(email_template[0][10]) + str('1')) getResult("UPDATE EMAIL_HISTORY SET status=1 WHERE history_id=" + str(email_template[0][10])); except pymysql.InternalError as e: print ('SMTP Exception:' + str(e)) getResult("INSERT INTO `JOB_ERROR`(`job_id`, `error_description`) VALUES (1,'SMTP Exception:" + str(e)+"')") except smtplib.SMTPException as e: print ('SMTP Exception:' + str(e)) import traceback traceback.print_exc() except Exception as e: print ('SMTP Exception:' + str(e)) import traceback traceback.print_exc() # c = con.cursor() # print("CALL updateMessageQueue('" + str(row[0]) + "');") # c.callproc("updateEmailHistory", [int(email_template[0][10]),int('2')]) # c.close() def getResult(q): cur = con.cursor() cur.execute(q) del email_template[:] row = cur.fetchone() while row is not None: email_template.append(row) #print(email_template) row = cur.fetchone() # with open('music1.json', 'w') as f: # json.dump(rs,f,cls=DatetimeEncoder) # for r in cur: # print(r) con.commit() cur.close() # con.close() return 1 async def check_pending_notifications(): try: getResult("CALL `getEmailTemplate`();") filename="" if email_template[0][8] == 1: filename = getFilename(email_template[0][11]) send_report(filename) pass except Exception as e: print("No Email is Pending." + str(e)) if str(e).__contains__("index out")!=1: getResult("INSERT INTO `JOB_ERROR`(`job_id`, `error_description`) VALUES (1,'SMTP Exception:" + str(e) + "')") s = sched.scheduler(time.time, time.sleep) def getFilename(url): today = datetime.date.today() # print today os.system("wkhtmltopdf " + url + " HMS_" + str(today) + ".pdf") # do your stuff fname = "HMS_" + str(today) + ".pdf" return fname def do_something(sc): loop = asyncio.get_event_loop() loop.run_until_complete(check_pending_notifications()) s.enter(10, 1, do_something, (sc,)) s.enter(1, 1, do_something, (s,)) s.run()
30.22695
122
0.566635
be463d334d2dfc8524e2ca604c0ab33e1fa71d4f
166
ts
TypeScript
styles/chakra-override/foundations/breakpoints.ts
elliehamilton3/commerce
176823abbeb03e659c877f3009193b4e32fe72a6
[ "MIT" ]
null
null
null
styles/chakra-override/foundations/breakpoints.ts
elliehamilton3/commerce
176823abbeb03e659c877f3009193b4e32fe72a6
[ "MIT" ]
null
null
null
styles/chakra-override/foundations/breakpoints.ts
elliehamilton3/commerce
176823abbeb03e659c877f3009193b4e32fe72a6
[ "MIT" ]
null
null
null
import { createBreakpoints } from '@chakra-ui/theme-tools' export const breakpoints = createBreakpoints({ sm: '30em', md: '48em', lg: '62em', xl: '75em', })
18.444444
58
0.650602
20094c47e74b93f6f603fe2bb16d0d6763b59087
4,871
py
Python
examples/lib/code.py
tmontes/ppytty
2c4e4965c8e9914fc9a17017457cdbf428d6b6e7
[ "MIT" ]
1
2018-05-23T19:39:47.000Z
2018-05-23T19:39:47.000Z
examples/lib/code.py
tmontes/ppytty
2c4e4965c8e9914fc9a17017457cdbf428d6b6e7
[ "MIT" ]
85
2018-06-23T17:28:14.000Z
2018-08-14T13:48:38.000Z
examples/lib/code.py
tmontes/ppytty
2c4e4965c8e9914fc9a17017457cdbf428d6b6e7
[ "MIT" ]
null
null
null
import os from ppytty import SlideDeck, Slide, SlideTemplate, Text, Code Text.padding = Code.padding = (1, 2) SlideTemplate.widgets = [ Text( text='Code Widget Test {slide_number}/{slide_count} | {slide_title}', use_context=True, geometry=dict(x=0, y=0, w=1.0, h=3), ) ] SlideTemplate.widget_slots = { 'left': dict(x=4, y=0.2, w=0.5, h=0.7, dw=-5), 'right': dict(x=0.5, y=0.2, w=0.5, h=0.7, dx=1, dw=-5), } # ------------------------------------------------------------------------------ # Slide | Basic Code code = r''' def add(a, b): """ Returns a plus b. """ return a + b ''' code_from_str = Code(code=code) code_from_file = Code(file_name='files/fib.py') code_basic = Slide(title='Code from str/file', widgets=[[ code_from_str, code_from_file, ]]) # ------------------------------------------------------------------------------ # Slide | Pygments styles builtin and custom try: from pygments import style, token class CustomStyle(style.Style): styles = { token.Comment: '#208080', token.Literal.String: '#40a040', token.Keyword: '#0080f0', token.Operator: '#f000f0', token.Name.Function: '#f0a000', } except ImportError: CustomStyle = object code_non_default_style = Code(code='# bw style\n'+code, pygm_style_name='bw') code_custom_style = Code(code='# custom style\n'+code, pygm_style=CustomStyle) code_styles = Slide(title='Selected builtin / custom styles', widgets=[[ code_non_default_style, code_custom_style, ]]) # ------------------------------------------------------------------------------ # Slide | Long-line handling code = r''' # This is a single-line, very long comment, that does not to fit in a single output line. def incredible_function(operation, *arguments, **options): """ Returns a plus b. """ return a + b ''' code_long_lines_wrap = Code(code=code, wrap=True) code_long_lines_trunc = Code(code=code, wrap=False) code_long_lines = Slide(title='Long line wrapping/truncating', widgets=[[ code_long_lines_wrap, code_long_lines_trunc, ]]) # ------------------------------------------------------------------------------ # Slide | Long code truncation code = r''' my_long_dict = { 1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 1, 11: 1, 12: 1, 13: 1, 13: 1, 14: 1, 15: 'This is a very long string forcing the output window to do wrapping.', 16: 1, 17: 1, 18: 1, 19: 1, 20: 1, } ''' code_long_truncate = Code(code=code, wrap=True) code_long_offset = Code(code=code, wrap=False) code_long = Slide(title='Long code truncation', widgets=[[ code_long_truncate, code_long_offset, ]]) # ------------------------------------------------------------------------------ # Slide | Line numbers and long-line handling code = r''' # This is a single-line, very long comment, that does not to fit in a single output line. def incredible_function(operation, *arguments, **options): """ Returns a plus b. """ return a + b def another_function(): """ Answer to the Ultimate Question of Life, the Universe, and Everything. """ return 42 ''' code_long_lines_wrap_numbered = Code(code=code, wrap=True, padding=(1, 2, 1, 1), line_numbers=True, line_number_suffix=' \N{BOX DRAWINGS LIGHT VERTICAL} ') code_long_lines_trunc_numbered = Code(code=code, wrap=False, padding=(1, 2, 1, 1), line_numbers=True, line_number_fmt='02x', line_number_fg=248, line_number_bg=242) code_long_lines_numbered = Slide(title='Line numbers and long line wrap/truncate', widgets=[[ code_long_lines_wrap_numbered, code_long_lines_trunc_numbered, ]]) # ------------------------------------------------------------------------------ # Slide | First line offset this_file = os.path.basename(__file__) code_first_line_offset_plain = Code(file_name=this_file, first_line=167, truncate_code_with=None) code_first_line_offset_numbered = Code(file_name=this_file, first_line=167, line_numbers=True, line_number_fmt='3d', line_number_fg=248, line_number_bg=242) code_first_line_offset = Slide(title='First line offset', widgets=[[ code_first_line_offset_plain, code_first_line_offset_numbered, ]]) # ------------------------------------------------------------------------------ # The SlideDeck ppytty_task = SlideDeck([ code_first_line_offset, code_long_lines_numbered, code_long, code_long_lines, code_styles, code_basic, ])
24.852041
93
0.551632
2cbf9f2ebfef40a0d2877d965b5d8e83b2bb34fd
114
sh
Shell
sources/Scripts/and.sh
alexeyhripunov/SurfCustomCalabash
770c0aead62ae627b8f0ca37d98915292cfaf105
[ "MIT" ]
5
2019-03-01T12:09:23.000Z
2020-07-09T10:37:36.000Z
sources/Scripts/and.sh
alexeyhripunov/SurfCustomCalabash
770c0aead62ae627b8f0ca37d98915292cfaf105
[ "MIT" ]
1
2020-05-14T14:57:12.000Z
2020-07-29T09:26:38.000Z
sources/Scripts/and.sh
alexeyhripunov/SurfCustomCalabash
770c0aead62ae627b8f0ca37d98915292cfaf105
[ "MIT" ]
1
2020-02-19T10:25:39.000Z
2020-02-19T10:25:39.000Z
#!/bin/bash echo "===== RUNNING TEST SUITE ANDROID=====================" calabash-android run L.apk -p android
19
60
0.561404
5485ed87203045e4f7c4dda593a17114f4f29142
315
h
C
src/kits/debugger/private/ids/LocalVariableID.h
stasinek/BHAPI
5d9aa61665ae2cc5c6e34415957d49a769325b2b
[ "BSD-3-Clause", "MIT" ]
3
2018-05-21T15:32:32.000Z
2019-03-21T13:34:55.000Z
src/kits/debugger/private/ids/LocalVariableID.h
stasinek/BHAPI
5d9aa61665ae2cc5c6e34415957d49a769325b2b
[ "BSD-3-Clause", "MIT" ]
null
null
null
src/kits/debugger/private/ids/LocalVariableID.h
stasinek/BHAPI
5d9aa61665ae2cc5c6e34415957d49a769325b2b
[ "BSD-3-Clause", "MIT" ]
null
null
null
/* * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. * Distributed under the terms of the MIT License. */ #ifndef LOCAL_VARIABLE_ID_H #define LOCAL_VARIABLE_ID_H #include <ObjectID.h> class LocalVariableID : public ObjectID { public: virtual ~LocalVariableID(); }; #endif // LOCAL_VARIABLE_ID_H
16.578947
55
0.742857
8ec01d4b6eb5a03c3e0fc6ac3346ea3df35449cd
92
js
JavaScript
jspm_packages/github/eligrey/FileSaver.js@master.js
jsdelivrbot/project-cms
4a203b9b0317443a92fcdc52afe00afacc2a80ad
[ "MIT" ]
null
null
null
jspm_packages/github/eligrey/FileSaver.js@master.js
jsdelivrbot/project-cms
4a203b9b0317443a92fcdc52afe00afacc2a80ad
[ "MIT" ]
null
null
null
jspm_packages/github/eligrey/FileSaver.js@master.js
jsdelivrbot/project-cms
4a203b9b0317443a92fcdc52afe00afacc2a80ad
[ "MIT" ]
1
2018-12-09T15:14:03.000Z
2018-12-09T15:14:03.000Z
define(["github:eligrey/FileSaver.js@master/FileSaver"], function(main) { return main; });
30.666667
73
0.728261
e0445041cc825d76335ebbb832dc77cb1d6497d9
2,278
c
C
src/tanh.c
adimehta03/cDNN
75425e01d7948c51b9dcae0524a80d6e3ccdd424
[ "MIT" ]
12
2021-04-17T06:29:03.000Z
2021-12-14T04:51:12.000Z
src/tanh.c
adimehta03/cDNN
75425e01d7948c51b9dcae0524a80d6e3ccdd424
[ "MIT" ]
null
null
null
src/tanh.c
adimehta03/cDNN
75425e01d7948c51b9dcae0524a80d6e3ccdd424
[ "MIT" ]
4
2021-04-17T06:38:42.000Z
2021-08-15T12:46:42.000Z
#include <cdnn/activations.h> #include <cdnn/model.h> extern __Model__ * m; dARRAY * forward_pass_tanh(){ dARRAY * tanh_out = (dARRAY*)malloc(sizeof(dARRAY)); tanh_out->matrix = (float*)calloc(m->current_layer->DENSE->cache->shape[0]*m->current_layer->DENSE->cache->shape[1],sizeof(float)); omp_set_num_threads(8); #pragma omp parallel for num_threads(8) shared(m,tanh_out) schedule(static) for(int i=0;i<m->current_layer->DENSE->cache->shape[0]*m->current_layer->DENSE->cache->shape[1];i++){ //Computing the tanh function float exp_res1 = exp(m->current_layer->DENSE->cache->matrix[i]); float exp_res2 = exp(-1*m->current_layer->DENSE->cache->matrix[i]); tanh_out->matrix[i] = (exp_res1 - exp_res2)/(exp_res1 + exp_res2); } tanh_out->shape[0] = m->current_layer->DENSE->cache->shape[0]; tanh_out->shape[1] = m->current_layer->DENSE->cache->shape[1]; return tanh_out; } dARRAY * backward_pass_tanh(){ dARRAY * tanh_out = (dARRAY*)malloc(sizeof(dARRAY)); tanh_out->matrix = (float*)calloc(m->current_layer->DENSE->A->shape[0]*m->current_layer->DENSE->A->shape[1],sizeof(float)); omp_set_num_threads(8); #pragma omp parallel for num_threads(8) shared(m,tanh_out) schedule(static) for(int i=0;i<m->current_layer->DENSE->A->shape[0]*m->current_layer->DENSE->A->shape[1];i++){ //Computing the tanh function float exp_res1 = exp(m->current_layer->DENSE->A->matrix[i]); float exp_res2 = exp(-1*m->current_layer->DENSE->A->matrix[i]); float temp = (exp_res1 - exp_res2)/(exp_res1 + exp_res2); //gradient of tanh is g'(z) = 1 - (tanh(z))^2 tanh_out->matrix[i] = 1-pow(temp,2.0f); } tanh_out->shape[0] = m->current_layer->DENSE->A->shape[0]; tanh_out->shape[1] = m->current_layer->DENSE->A->shape[1]; return tanh_out; } Tanh * Tanh__init__(dARRAY * linear_matrix){ Tanh * tanh = (Tanh*)malloc(sizeof(Tanh)); tanh->forward = forward_pass_tanh; tanh->backward = backward_pass_tanh; tanh->in_dims[0] = tanh->out_dims[0] = linear_matrix->shape[0]; tanh->in_dims[1] = tanh->out_dims[1] = linear_matrix->shape[1]; return tanh; } dARRAY * (TanH)(Tanh_args args){ Tanh * t = Tanh__init__(args.input); if(!args.status) return t->forward(); else return t->backward(); free(t); t=NULL; }
39.964912
133
0.678227
b02e8d705f4433a8a8c345556bf727f88bf3da10
715
py
Python
django_attachments/fields.py
mireq/django-attachments
53060499e931723ac510a42dd7ac72addbbdf653
[ "BSD-2-Clause-FreeBSD" ]
1
2020-02-08T02:43:15.000Z
2020-02-08T02:43:15.000Z
django_attachments/fields.py
mireq/django-attachments
53060499e931723ac510a42dd7ac72addbbdf653
[ "BSD-2-Clause-FreeBSD" ]
2
2020-06-05T17:38:51.000Z
2021-04-30T08:28:39.000Z
django_attachments/fields.py
mireq/django-attachments
53060499e931723ac510a42dd7ac72addbbdf653
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from django.db import models class LibraryFormField(forms.ModelChoiceField): pass class GalleryFormField(LibraryFormField): pass class LibraryField(models.ForeignKey): description = "Attachments" def __init__(self, to='django_attachments.Library', *args, **kwargs): super().__init__(to, *args, **kwargs) def formfield(self, **kwargs): defaults = {'form_class': LibraryFormField} defaults.update(kwargs) return super().formfield(**defaults) class GalleryField(LibraryField): description = "Gallery" def formfield(self, **kwargs): defaults = {'form_class': GalleryFormField} defaults.update(kwargs) return super().formfield(**defaults)
21.666667
70
0.73986
a1988502dd0d56010e5d2a01c9e60cd0fd2b09ed
7,670
ts
TypeScript
src/pages/everydaymeal/everydaymeal.ts
mlesterdampios/diet_plan
14597d605cda830ae2949c22310371d2600b141f
[ "MIT" ]
null
null
null
src/pages/everydaymeal/everydaymeal.ts
mlesterdampios/diet_plan
14597d605cda830ae2949c22310371d2600b141f
[ "MIT" ]
1
2021-03-09T11:45:17.000Z
2021-03-09T11:45:17.000Z
src/pages/everydaymeal/everydaymeal.ts
mlesterdampios/diet_plan
14597d605cda830ae2949c22310371d2600b141f
[ "MIT" ]
null
null
null
import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams, LoadingController, ToastController } from 'ionic-angular'; import { Http } from '@angular/http'; import { Storage } from '@ionic/storage'; /** * Generated class for the EverydaymealPage page. * * See https://ionicframework.com/docs/components/#navigation for more info on * Ionic pages and navigation. */ @IonicPage() @Component({ selector: 'page-everydaymeal', templateUrl: 'everydaymeal.html', }) export class EverydaymealPage { everydaymeals : any[]; //page: number; cat : any = {}; public loadProgress : any[]; savedMeal : any = []; progress : any = []; progress_enabled = false; constructor(public loadingCtrl: LoadingController,public navCtrl: NavController, public navParams: NavParams,public http: Http, public toastCtrl: ToastController, public storage: Storage) { this.cat.name = "Everyday Meals"; this.everydaymeals = [{ id : 1, name : "Day 1", profile_img : "assets/images/day1.jpg", full_instructions : { breakfast : "1 serving Avocado Egg Toast<br/>", lunch : "2 cups mixed greens<br/>"+ "3/4 cup veggies of your choice (try cucumbers and tomatoes)<br/>"+ "2/3 cup chickpeas, rinsed<br/>"+ "1 Tbsp. almonds, chopped<br/>"+ "1 medium orange", dinner : "1 serving Seared Salmon with Green Peppercorn Sauce<br/>"+ "1 cup steamed green beans<br/>"+ "1 baked medium red potato, drizzled with 1/2 Tbsp. olive oil and a pinch each of salt and pepper.<br/>", additional : "" } }, { id : 2, name : "Day 2", profile_img : "assets/images/day2.jpg", full_instructions : { breakfast : "1 cup bran cereal<br/>"+ "1 cup skim milk<br/>"+ "1/2 cup blueberries<br/>", lunch : "1 medium apple<br/>"+ "3/4 medium red bell pepper, sliced<br/>"+ "2 Tbsp. hummus<br/>", dinner : "2 cups Roasted Tofu & Peanut Noodle Salad", additional : "" } }, { id : 3, name : "Day 3", profile_img : "assets/images/day3.jpg", full_instructions : { breakfast : "1 cup nonfat plain Greek yogurt<br/>"+ "1/2 cup blueberries<br/>"+ "1 1/2 Tbsp. slivered almonds<br/>", lunch : "1 1/2 cups Roasted Tofu & Peanut Noodle Salad<br/>"+ "1 cup strawberries<br/>", dinner : "1 serving Grilled Romaine with Avocado-Lime Dressing<br/>"+ "4 oz. cooked chicken breast, cooked in 1 1/2 tsp. olive oil and seasoned with 1/4 tsp. cumin and a pinch each of salt and pepper<br/>"+ "3/4 cup cooked quinoa<br/>", additional : "" } }, { id : 4, name : "Day 4", profile_img : "assets/images/day4.jpg", full_instructions : { breakfast : "1 cup bran cereal<br/>"+ "1 cup skim milk<br/>"+ "1/4 cup blueberries<br/>", lunch : "3 cups mixed greens<br/>"+ "3 oz. leftover cooked chicken breast<br/>"+ "5 cherry tomatoes, halved<br/>"+ "1/2 cup cucumber slices<br/>"+ "1/4 cup shredded carrot<br/>"+ "1 medium orange<br/>", dinner : "1 serving Cod with Tomato Cream Sauce<br/>"+ "1/2 cup cooked brown rice<br/>"+ "2 cups mixed greens, topped with 1 Tbsp. balsamic vinegar and 2 tsp. olive oil.<br/>", additional : "" } },{ id : 5, name : "Day 5", profile_img : "assets/images/day5.jpg", full_instructions : { breakfast : "1/2 cup rolled oats, cooked in 1 cup milk<br/>"+ "1/2 cup sliced strawberries<br/>", lunch : "2 corn tortillas<br/>"+ "2/3 cup canned black beans, rinsed<br/>"+ "1/2 bell pepper, sliced<br/>"+ "2 Tbsp. shredded Cheddar cheese<br/>"+ "2 Tbsp. salsa or pico de gallo<br/>"+ "1/2 cup blueberries<br/>", dinner : "1 1/4 cups Chicken Cauliflower Fried Rice<br/>"+ "2 cups mixed greens, topped with 1 Tbsp. red wine vinegar and 2 tsp. olive oil.<br/>", additional : "" } },{ id : 6, name : "Day 6", profile_img : "assets/images/day6.jpg", full_instructions : { breakfast : "1 cup bran cereal<br/>"+ "1 cup skim milk<br/>"+ "1/2 cup blueberries<br/>", lunch : "1 medium orange<br/>"+ "1 cup strawberries<br/>", dinner : "1 serving Toaster-Oven Tostada", additional : "" } },{ id : 7, name : "Day 7", profile_img : "assets/images/day7.jpg", full_instructions : { breakfast : "1 serving Avocado Egg Toast<br/>", lunch : "2 cups spinach<br/>"+ "2.5 oz. chunk light tuna in water, drained<br/>"+ "1/2 cup canned white beans, rinsed<br/>"+ "3/4 cup veggies of your choice (try tomatoes & cucumbers)<br/>"+ "1 medium orange<br/>", dinner : "1 serving Lemongrass Pork & Spaghetti Squash Noodle Bowl<br/>", additional : "" } }]; this.loadProgress = []; this.progress = []; for(var i = 0; i <= this.everydaymeals.length; i++){ this.loadProgress.push(0); this.progress.push(0); } } ionViewDidEnter() { for(var i = 0; i <= this.everydaymeals.length; i++){ this.loadProgress[i] = 0; this.progress[i] = 0; } this.storage.ready().then(()=>{ this.storage.get("savedMeal").then((savedMeal)=>{ if(savedMeal != null){ this.savedMeal = savedMeal; }else{ this.savedMeal = [{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false },{ breakfast : false, lunch : false, dinner : false }]; } for(var i = 0; i <= this.everydaymeals.length; i++){ if(this.savedMeal[i].breakfast){ this.progress[i]++; } if(this.savedMeal[i].lunch){ this.progress[i]++; } if(this.savedMeal[i].dinner){ this.progress[i]++; } } console.log(this.progress); console.log(this.loadProgress); console.log('-----------'); if(!this.progress_enabled){ setInterval(() => { for(var i = 0; i <= this.everydaymeals.length; i++){ if (this.loadProgress[i] < 100){ if(this.progress[i]*33.33>this.loadProgress[i]){ this.loadProgress[i] += 1; } } else{ clearInterval(this.loadProgress[i]); } }}, 10); } this.progress_enabled=true; }) }) } everydaymealdetials(everydaymeal){ this.navCtrl.push('EverydaymealdetailsPage', { "everydaymeal":everydaymeal}); } }
33.060345
192
0.5206
641c27704ffafbc884aa012bc64dffbb6ef084ca
1,417
py
Python
pymento_meg/version.py
adswa/pymento
17182124a9b917365b181bf7936f290f16a9105c
[ "MIT" ]
null
null
null
pymento_meg/version.py
adswa/pymento
17182124a9b917365b181bf7936f290f16a9105c
[ "MIT" ]
null
null
null
pymento_meg/version.py
adswa/pymento
17182124a9b917365b181bf7936f290f16a9105c
[ "MIT" ]
null
null
null
import sys from os.path import lexists, dirname, join as opj, curdir __version__ = "0.0.12" __hardcoded_version__ = __version__ __full_version__ = __version__ moddir = dirname(__file__) projdir = curdir if moddir == "datalad" else dirname(moddir) if lexists(opj(projdir, ".git")): # If under git -- attempt to deduce a better "dynamic" version following git try: from subprocess import Popen, PIPE # Note: Popen does not support `with` way correctly in 2.7 # git = Popen( ["git", "describe", "--abbrev=4", "--dirty", "--match", r"[0-9]*\.*"], stdout=PIPE, stderr=PIPE, cwd=projdir, ) if git.wait() != 0: raise OSError("Could not run git describe") line = git.stdout.readlines()[0] _ = git.stderr.readlines() # Just take describe and replace initial '-' with .dev to be more "pythonish" # Encoding simply because distutils' LooseVersion compares only StringType # and thus misses in __cmp__ necessary wrapping for unicode strings __full_version__ = line.strip().decode("ascii").replace("-", ".dev", 1) # To follow PEP440 we can't have all the git fanciness __version__ = __full_version__.split("-")[0] except (SyntaxError, AttributeError, IndexError): raise except: # just stick to the hard-coded pass
36.333333
85
0.622442
6ac24d812a713c337d7a3a186cfe81e7bd83bb1c
266
sh
Shell
av_library/init-ffmpeg.sh
JeffMony/JianYing
4e7dba98a29987a4118ac9a5bebcae7c5dba2f2f
[ "Apache-2.0" ]
12
2021-08-06T01:19:08.000Z
2022-03-28T10:38:45.000Z
av_library/init-ffmpeg.sh
JeffMony/JianYing
4e7dba98a29987a4118ac9a5bebcae7c5dba2f2f
[ "Apache-2.0" ]
null
null
null
av_library/init-ffmpeg.sh
JeffMony/JianYing
4e7dba98a29987a4118ac9a5bebcae7c5dba2f2f
[ "Apache-2.0" ]
2
2021-08-23T07:11:03.000Z
2021-12-19T14:20:51.000Z
#!/bin/bash # download ffmpeg source FFMPEG_UPSTREAM=https://github.com/FFmpeg/FFmpeg TAG_NAME=n4.0.3 CUR_DIR=$(pwd) SOURCE_DIR=${CUR_DIR}/sources/ffmpeg git clone ${FFMPEG_UPSTREAM} ${SOURCE_DIR} cd ${SOURCE_DIR} git checkout -b ${TAG_NAME} ${TAG_NAME} cd -
14.777778
48
0.733083
f3d2972690b5dc32e76fd3038e0b011b6fd70127
4,889
swift
Swift
Sources/PCBasicCurrentUser.swift
sharezieapp/chatkit-swift
c8708eb98c146abf57112b1fa8a5737ab1dc8bad
[ "MIT" ]
43
2017-09-18T15:34:49.000Z
2021-03-26T06:26:34.000Z
Sources/PCBasicCurrentUser.swift
sharezieapp/chatkit-swift
c8708eb98c146abf57112b1fa8a5737ab1dc8bad
[ "MIT" ]
150
2017-09-15T14:33:43.000Z
2020-04-02T14:37:57.000Z
Sources/PCBasicCurrentUser.swift
sharezieapp/chatkit-swift
c8708eb98c146abf57112b1fa8a5737ab1dc8bad
[ "MIT" ]
21
2017-11-27T05:55:54.000Z
2021-11-11T03:17:21.000Z
import Foundation import PusherPlatform public final class PCBasicCurrentUser { public let id: String public let pathFriendlyID: String let userStore: PCGlobalUserStore let roomStore: PCRoomStore let cursorStore: PCCursorStore public internal(set) var userSubscription: PCUserSubscription? public internal(set) var presenceSubscription: PCPresenceSubscription? private let chatkitBeamsTokenProviderInstance: Instance let instance: Instance let filesInstance: Instance let presenceInstance: Instance let delegate: PCChatManagerDelegate let connectionCoordinator: PCConnectionCoordinator public init( id: String, pathFriendlyID: String, instance: Instance, chatkitBeamsTokenProviderInstance: Instance, filesInstance: Instance, presenceInstance: Instance, connectionCoordinator: PCConnectionCoordinator, delegate: PCChatManagerDelegate, userStore: PCGlobalUserStore? = nil, roomStore: PCRoomStore? = nil, cursorStore: PCCursorStore? = nil ) { self.id = id self.pathFriendlyID = pathFriendlyID self.instance = instance self.chatkitBeamsTokenProviderInstance = chatkitBeamsTokenProviderInstance self.filesInstance = filesInstance self.presenceInstance = presenceInstance self.connectionCoordinator = connectionCoordinator self.delegate = delegate let us = userStore ?? PCGlobalUserStore(instance: instance) let rs = roomStore ?? PCRoomStore(rooms: PCSynchronizedArray<PCRoom>(), instance: instance) self.userStore = us self.roomStore = rs self.cursorStore = cursorStore ?? PCCursorStore( instance: instance, roomStore: rs, userStore: us ) } func establishUserSubscription( initialStateHandler: @escaping ((roomsPayload: [[String: Any]], cursorsPayload: [[String: Any]], currentUserPayload: [String: Any])) -> Void ) { let path = "/users" let subscribeRequest = PPRequestOptions(method: HTTPMethod.SUBSCRIBE.rawValue, path: path) var resumableSub = PPResumableSubscription( instance: self.instance, requestOptions: subscribeRequest ) let userSub = PCUserSubscription( instance: self.instance, filesInstance: self.filesInstance, presenceInstance: self.presenceInstance, resumableSubscription: resumableSub, userStore: self.userStore, cursorStore: self.cursorStore, delegate: self.delegate, userID: id, pathFriendlyUserID: pathFriendlyID, connectionCoordinator: connectionCoordinator, initialStateHandler: initialStateHandler ) self.userSubscription = userSub // TODO: Decide what to do with onEnd self.instance.subscribeWithResume( with: &resumableSub, using: subscribeRequest, onEvent: { [unowned userSub] eventID, headers, data in userSub.handleEvent(eventID: eventID, headers: headers, data: data) }, onEnd: { _, _, _ in }, onError: { [unowned self] error in self.connectionCoordinator.connectionEventCompleted( PCConnectionEvent(currentUser: nil, error: error) ) } ) } func establishPresenceSubscription() { // If a presenceSubscription already exists then we want to create a new one // so we first close the existing subscription, if it was still open if let presSub = self.presenceSubscription { presSub.end() self.presenceSubscription = nil } let path = "/users/\(self.pathFriendlyID)/register" let subscribeRequest = PPRequestOptions(method: HTTPMethod.SUBSCRIBE.rawValue, path: path) var resumableSub = PPResumableSubscription( instance: self.presenceInstance, requestOptions: subscribeRequest ) let presenceSub = PCPresenceSubscription(resumableSubscription: resumableSub) self.presenceSubscription = presenceSub self.presenceInstance.subscribeWithResume( with: &resumableSub, using: subscribeRequest, onOpen: { [unowned self, unowned presenceSub] in self.connectionCoordinator.connectionEventCompleted( PCConnectionEvent(presenceSubscription: presenceSub, error: nil) ) }, onError: { [unowned self] error in self.connectionCoordinator.connectionEventCompleted( PCConnectionEvent(presenceSubscription: nil, error: error) ) } ) } }
36.214815
148
0.644304
4391db2ff8c1938806efcac5825d5100b16bb8e7
28,062
ts
TypeScript
src/application-bot.ts
ashdoesdev/ApplicationBot
d8bf37a835f4a06956179b5e50ee2d59fb4b2277
[ "MIT" ]
null
null
null
src/application-bot.ts
ashdoesdev/ApplicationBot
d8bf37a835f4a06956179b5e50ee2d59fb4b2277
[ "MIT" ]
null
null
null
src/application-bot.ts
ashdoesdev/ApplicationBot
d8bf37a835f4a06956179b5e50ee2d59fb4b2277
[ "MIT" ]
null
null
null
import { Client, Collection, GuildMember, Message, RichEmbed, TextChannel } from 'discord.js'; import * as fs from 'fs'; import { setTimeout } from 'timers'; import { AlreadyAppliedEmbed } from './Embeds/already-applied.embed'; import { ApplicationAcceptedEmbed } from './Embeds/application-accepted.embed'; import { ApplicationDeniedEmbed } from './Embeds/application-denied.embed'; import { ApplicationLogEmbed } from './Embeds/application-log.embed'; import { ApplicationQuestionsEmbed } from './Embeds/application-questions.embed'; import { ApplicationStartEmbed } from './Embeds/application-start.embed'; import { ApplicationEmbed } from './Embeds/application.embed'; import { ArchivedApplicationEmbed } from './Embeds/archived-application.embed'; import { BackupApplicationEmbed } from './Embeds/backup-application.embed'; import { CommunityOptionAcceptEmbed } from './Embeds/community-option-accept.embed'; import { CommunityOptionDenyEmbed } from './Embeds/community-option-deny.embed'; import { CommunityOptionTimeoutEmbed } from './Embeds/community-option-timeout.embed'; import { CommunityOptionEmbed } from './Embeds/community-option.embed'; import { IntroEmbed } from './Embeds/intro.embed'; import { LastQuestionEmbed } from './Embeds/last-question.embed'; import { QuestionEmbed } from './Embeds/question.embed'; import { ReserveOptionAcceptEmbed } from './Embeds/reserve-option-accept.embed'; import { ReserveOptionDenyEmbed } from './Embeds/reserve-option-deny.embed'; import { ReserveOptionTimeoutEmbed } from './Embeds/reserve-option-timeout.embed'; import { ReserveOptionEmbed } from './Embeds/reserve-option.embed'; import { ThanksForApplyingEmbed } from './Embeds/thanks-for-applying.embed'; import { TimeoutEmbed } from './Embeds/timeout.embed'; import { VoteEmbed } from './Embeds/vote.embed'; import { MessagesHelper } from './Helpers/messages.helper'; import { ApplicationState } from './Models/ApplicationState'; export class ApplicationBot { private _client = new Client(); private _applyChannel: TextChannel; private _applicationsNewChannel: TextChannel; private _applicationsLogChannel: TextChannel; private _applicationsArchivedChannel: TextChannel; private _applicationChatsArchiveChannel: TextChannel; private _activeApplications: Map<string, ApplicationState>; private _leadership: GuildMember[]; private _appSettings; private _questions; private _messages: MessagesHelper = new MessagesHelper(); private _guildMembers: GuildMember[]; public start(appSettings): void { this._appSettings = appSettings; this._questions = this._appSettings['questions']; this._client.login(this._appSettings['token']); this._client.once('ready', () => { console.log('Ready!'); this._applyChannel = this._client.channels.get(this._appSettings['apply']) as TextChannel; this._applicationsNewChannel = this._client.channels.get(this._appSettings['applications-new']) as TextChannel; this._applicationsLogChannel = this._client.channels.get(this._appSettings['applications-log']) as TextChannel; this._applicationsArchivedChannel = this._client.channels.get(this._appSettings['applications-archived']) as TextChannel; this._applicationChatsArchiveChannel = this._client.channels.get(this._appSettings['application-chats-archived']) as TextChannel; }); this._client.on('message', async message => { if (message.content === '/archiveapp' && message.member.roles.has(this._appSettings['leadership']) && (message.channel as TextChannel).name.startsWith('application-')) { let messages = await this._messages.getMessages(message.channel as TextChannel); messages.reverse(); let member; if (Array.from(messages[0].mentions.users)[0]) { member = Array.from(messages[0].mentions.users)[0][1]; } if (member) { (message.channel as TextChannel).overwritePermissions(member, { VIEW_CHANNEL: false }); } for (let message of messages) { await this._applicationChatsArchiveChannel.send(`*Message from ${message.author.username}*\n${message.content}`); await message.delete(); } (message.channel as TextChannel).delete(); } if (message.content.toLowerCase() === '/apply') { if (message.channel.id === this._applyChannel.id || (message.channel.id === this._applicationsLogChannel.id && message.author.id === this._appSettings['admin'])) { this._leadership = this._client.guilds.get(this._appSettings['server']).members.array().filter((member) => member.roles.filter((role) => role.id === this._appSettings['leadership']).array().length > 0); if (!this._activeApplications) { this._activeApplications = new Map<string, ApplicationState>(); } if (!this._activeApplications.get(message.author.id)) { this._activeApplications.set(message.author.id, new ApplicationState()); let activeApplication = this._activeApplications.get(message.author.id); message.author.send(new IntroEmbed(this._appSettings)).then((sentMessage) => { message.react('✅'); this.awaitConfirmation( sentMessage as Message, message, this.proceedToApplicationStart.bind(this, message, activeApplication), this.sendEmbed.bind(this, message, new TimeoutEmbed(this._leadership, this._appSettings['apply']))); }); this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'Application Initiated', 'Sent initial message covering the charter and schedule. Awaiting reply.', this._appSettings['guildColor'])); } else { this.sendEmbed(message, new AlreadyAppliedEmbed(this._leadership, this._appSettings['guildColor'])); this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'User May Need Help', 'User sent another /apply when they already had an active application.', this._appSettings['guildColor'])); } } } if (message.content === '/test' && message.channel.type === 'dm') { message.author.send('Bot running.'); } if (message.content.startsWith('/restore') && message.channel.type === 'dm' && message.author.id === this._appSettings['admin']) { let memberId = message.content.match(/"((?:\\.|[^"\\])*)"/)[0].replace(/"/g, ''); this._guildMembers = this._client.guilds.get(this._appSettings['server']).members.array(); let fullMember = this.matchMemberFromId(this._guildMembers, memberId) || memberId; if (fullMember) { let path = message.content.replace('/restore', '').replace(memberId, '').replace(/"/g, '').trim(); fs.createReadStream(path) .on('data', (data) => { let backup: string[][] = JSON.parse(data); this._applicationsArchivedChannel.send(new BackupApplicationEmbed(backup, fullMember, this._appSettings['guildColor'])); }) .on('error', (error) => { message.channel.send('File not found.'); }); } else { message.channel.send('Member not found.'); } } }); } public get questionCount(): number { return Object.entries(this._questions).length; } public get monthDayYearFormatted(): string { return `${new Date().getMonth() + 1}-${new Date().getDate()}-${new Date().getFullYear()}`; } private proceedToApplicationStart(message: Message, activeApplication: ApplicationState) { message.author.send(new ApplicationStartEmbed(this._appSettings['guildColor'], this.questionCount)).then((sentMessage) => { this.awaitConfirmation( sentMessage as Message, message, this.proceedToQuestion.bind(this, 1, message, activeApplication), this.sendEmbed.bind(this, message, new TimeoutEmbed(this._leadership, this._appSettings['apply'])) ) }); this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'Charter and Schedule Approved', 'Sent "About the Application Process" message and awaiting reply to begin.', this._appSettings['guildColor'])); } private sendEmbed(message: Message, embed: RichEmbed) { message.author.send(embed); if (embed instanceof TimeoutEmbed) { this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'Application Timed Out', 'User let their application time out (30 minutes of inactivity). If you suspect this is a bug, let me know and I will check logs.', this._appSettings['guildColor'])); } } private async proceedToQuestion(questionNumber: number, message: Message, activeApplication: ApplicationState) { if (questionNumber === 1) { this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'Application Begun', 'Sent first question and awaiting reply.', this._appSettings['guildColor'])); } else { await this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, `Received Reply to Question ${questionNumber - 1}`, this._questions[questionNumber - 1], this._appSettings['guildColor'])); this._applicationsLogChannel.send(`*Message received from ${message.author.username}*\n${activeApplication.replies[questionNumber - 2].content}`); } if (questionNumber !== (this.questionCount + 1)) { message.author.send(new QuestionEmbed(this._questions[questionNumber], questionNumber, this._appSettings['guildColor'])).then((sentMessage) => { questionNumber++; this.awaitResponse( sentMessage as Message, message, activeApplication, this.proceedToQuestion.bind(this, questionNumber, message, activeApplication), this.sendEmbed.bind(this, message, new TimeoutEmbed(this._leadership, this._appSettings['apply'])) ) }); } else { message.author.send(new LastQuestionEmbed(this._appSettings['guildColor'])).then((sentMessage) => { this.awaitConfirmation( sentMessage as Message, message, this.finalizeApplication.bind(this, message, activeApplication), this.sendEmbed.bind(this, message, new TimeoutEmbed(this._leadership, this._appSettings['apply']))); }); } } private async finalizeApplication(message: Message, activeApplication: ApplicationState): Promise<void> { this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'Application Submitted', 'User submitted their application.', this._appSettings['guildColor'])); let appChunked = this._messages.safeChunkApp(this._questions, activeApplication.replies); await this._applicationsNewChannel.send(new ApplicationEmbed(message, this._appSettings['guildColor'])); for (let i = 0; i < appChunked.length; i++) { let applicationMessage = await this._applicationsNewChannel.send(new ApplicationQuestionsEmbed(appChunked[i], this._appSettings['guildColor'])); if (i + 1 === appChunked.length) { this._applicationsNewChannel.send(new VoteEmbed(message, this._appSettings['guildColor'])).then((voteMessage) => { this.awaitMajorityApproval( voteMessage as Message, this.approveApplication.bind(this, applicationMessage, voteMessage, message, activeApplication), this.denyApplication.bind(this, applicationMessage, voteMessage, message, activeApplication), this.sendCommunityMemberOption.bind(this, applicationMessage, voteMessage, message, activeApplication), this.sendReserveMemberOption.bind(this, applicationMessage, voteMessage, message, activeApplication)) }); } } activeApplication.openAppChannel = await message.guild.createChannel(`application-${message.author.username}`, { type: "text" }) as TextChannel; activeApplication.openAppChannel.overwritePermissions(this._appSettings['bot'], { VIEW_CHANNEL: true, MENTION_EVERYONE: true }); activeApplication.openAppChannel.overwritePermissions(this._appSettings['leadership'], { VIEW_CHANNEL: true }); activeApplication.openAppChannel.overwritePermissions(message.author.id, { VIEW_CHANNEL: true }); activeApplication.openAppChannel.overwritePermissions(this._appSettings['everyone'], { VIEW_CHANNEL: false }); message.author.send(new ThanksForApplyingEmbed(this._leadership, activeApplication.openAppChannel.id, this._appSettings['guildColor'])); activeApplication.openAppChannel.send(`<@${message.author.id}> *This is a temporary channel created to discuss your application. It will stay open until your application process is complete. Feel free to ping <@&${this._appSettings['leadership']}> for any questions.*`); this.backUpValues(activeApplication); this._applicationsLogChannel.send(new ApplicationLogEmbed(message.author.username, 'Backup Complete', 'Post-application steps complete and application backed up.', this._appSettings['guildColor'])); } private approveApplication(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState): void { userMessage.author.send(new ApplicationAcceptedEmbed(this._appSettings)); userMessage.member.addRole(this._appSettings['applicant']); applicationMessage.channel.send('Application approved. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (archiveMessage as Message).delete(); this.archiveApplication(':white_check_mark:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private denyApplication(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState): void { userMessage.author.send(new ApplicationDeniedEmbed(this._appSettings)); applicationMessage.channel.send('Application denied. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (archiveMessage as Message).delete(); this.archiveApplication(':x:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private approveCommunityMember(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState, confirmationMessage: Message): void { userMessage.author.send(new CommunityOptionAcceptEmbed(this._appSettings)); userMessage.member.addRole(this._appSettings['community']); applicationMessage.channel.send('Community member option accepted. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (confirmationMessage as Message).delete(); (archiveMessage as Message).delete(); this.archiveApplication(':slight_smile: :white_check_mark:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private denyCommunityMember(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState, confirmationMessage: Message): void { userMessage.author.send(new CommunityOptionDenyEmbed(this._appSettings)); applicationMessage.channel.send('Community member option declined. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (confirmationMessage as Message).delete(); (archiveMessage as Message).delete(); this.archiveApplication(':slight_smile: :x:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private timeoutCommunityMember(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState, confirmationMessage: Message): void { userMessage.author.send(new CommunityOptionTimeoutEmbed(this._appSettings['guildColor'])); applicationMessage.channel.send('Community member option timed out due to inactivity. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (confirmationMessage as Message).delete(); (archiveMessage as Message).delete(); this.archiveApplication(':slight_smile: :clock1:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private async sendCommunityMemberOption(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState): Promise<void> { let confirmationMessage = await applicationMessage.channel.send(`Community member proposal sent to ${userMessage.author.username}. Awaiting reply.`); userMessage.author.send(new CommunityOptionEmbed(this._appSettings['guildColor'])).then((sentMessage) => { this.awaitRoleApproval( sentMessage as Message, userMessage, this.approveCommunityMember.bind(this, applicationMessage, voteMessage, userMessage, activeApplication, confirmationMessage), this.denyCommunityMember.bind(this, applicationMessage, voteMessage, userMessage, activeApplication, confirmationMessage), this.timeoutCommunityMember.bind(this, applicationMessage, voteMessage, userMessage, activeApplication, confirmationMessage)), true }) } private approveReserveMember(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState, confirmationMessage: Message): void { userMessage.author.send(new ReserveOptionAcceptEmbed(this._appSettings)); userMessage.member.addRole(this._appSettings['reserve']); applicationMessage.channel.send('Reserve member option accepted. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (confirmationMessage as Message).delete(); (archiveMessage as Message).delete(); this.archiveApplication(':muscle: :white_check_mark:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private denyReserveMember(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState, confirmationMessage: Message): void { userMessage.author.send(new ReserveOptionDenyEmbed(this._appSettings)); applicationMessage.channel.send('Reserve member option declined. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (confirmationMessage as Message).delete(); (archiveMessage as Message).delete(); this.archiveApplication(':muscle: :x:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private timeoutReserveMember(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState, confirmationMessage: Message): void { userMessage.author.send(new ReserveOptionTimeoutEmbed(this._appSettings['guildColor'])); applicationMessage.channel.send('Reserve member option timed out due to inactivity. Archiving in 5 seconds.').then((archiveMessage) => { setTimeout(() => { (confirmationMessage as Message).delete(); (archiveMessage as Message).delete(); this.archiveApplication(':muscle: :clock1:', applicationMessage, voteMessage, userMessage, activeApplication); }, 5000); }); } private async sendReserveMemberOption(applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState): Promise<void> { let confirmationMessage = await applicationMessage.channel.send(`Reserve member proposal sent to ${userMessage.author.username}. Awaiting reply.`); userMessage.author.send(new ReserveOptionEmbed(this._appSettings)).then((sentMessage) => { this.awaitRoleApproval( sentMessage as Message, userMessage, this.approveReserveMember.bind(this, applicationMessage, voteMessage, userMessage, activeApplication, confirmationMessage), this.denyReserveMember.bind(this, applicationMessage, voteMessage, userMessage, activeApplication, confirmationMessage), this.timeoutReserveMember.bind(this, applicationMessage, voteMessage, userMessage, activeApplication, confirmationMessage)), true }) } private async archiveApplication(reaction: string, applicationMessage: Message, voteMessage: Message, userMessage: Message, activeApplication: ApplicationState): Promise<void> { let appChunked = this._messages.safeChunkApp(this._questions, activeApplication.replies); await this._applicationsArchivedChannel.send(new ArchivedApplicationEmbed(reaction, userMessage, this._appSettings['guildColor'])); for (let chunk of appChunked) { await this._applicationsArchivedChannel.send(new ApplicationQuestionsEmbed(chunk, this._appSettings['guildColor'])); } applicationMessage.delete(); voteMessage.delete(); this._activeApplications.delete(userMessage.author.id); } private awaitRoleApproval(sentMessage: Message, message: Message, proceed, abort, timeout, preserveApplicationState?: boolean): void { sentMessage.react('✅').then(() => sentMessage.react('❌')); const filter = (reaction, user) => { return (reaction.emoji.name === '✅' || reaction.emoji.name === '❌') && user.id === message.author.id; }; sentMessage.awaitReactions(filter, { max: 1, time: 86400000, errors: ['time'] }).then((collected) => { if (collected.first().emoji.name === '✅') { proceed(); } else { abort(); this._activeApplications.delete(message.author.id); } }).catch(() => { timeout(); if (!preserveApplicationState) { this._activeApplications.delete(message.author.id); } }); } private awaitConfirmation(sentMessage: Message, message: Message, proceed, timeout): void { sentMessage.react('✅'); const filter = (reaction, user) => { return reaction.emoji.name === '✅' && user.id === message.author.id; }; sentMessage.awaitReactions(filter, { max: 1, time: 1800000, errors: ['time'] }).then((collected) => { proceed(); }).catch((error) => { if (error) { if (error instanceof Collection) { timeout(); this._activeApplications.delete(message.author.id); } } console.log("error in awaitConfirmation:", error); }); } private awaitMajorityApproval(sentMessage: Message, approve, deny, community, reserve): void { sentMessage.react('✅').then(() => sentMessage.react('❌')).then(() => sentMessage.react('💪')).then(() => sentMessage.react('🙂')); const filter = (reaction, user) => { return (reaction.emoji.name === '✅' || reaction.emoji.name === '❌' || reaction.emoji.name === '💪' || reaction.emoji.name === '🙂' || reaction.emoji.name === '👍' || reaction.emoji.name === '👎' || reaction.emoji.name === '🙃' || reaction.emoji.name === '🍴') && this._leadership.find((member) => member.id === user.id) != null; }; const collector = (sentMessage as Message).createReactionCollector(filter); let minToProceed = Math.round(this._leadership.length / 2) + 1; collector.on('collect', (reaction) => { if (reaction.emoji.name === '✅' && reaction.users.array().length >= minToProceed) { approve(); collector.stop(); } if (reaction.emoji.name === '❌' && reaction.users.array().length >= minToProceed) { deny(); collector.stop(); } if (reaction.emoji.name === '🙂' && reaction.users.array().length >= minToProceed) { community(); collector.stop(); } if (reaction.emoji.name === '💪' && reaction.users.array().length >= minToProceed) { reserve(); collector.stop(); } // reactions below can be used to bypass voting if (reaction.emoji.name === '👍') { approve(); collector.stop(); } if (reaction.emoji.name === '👎') { deny(); collector.stop(); } if (reaction.emoji.name === '🙃') { community(); collector.stop(); } if (reaction.emoji.name === '🍴') { reserve(); collector.stop(); } }) } private awaitResponse(sentMessage: Message, message: Message, activeApplication: ApplicationState, proceed, timeout): void { const filter = response => { return message.author.id === response.author.id; }; sentMessage.channel.awaitMessages(filter, { maxMatches: 1, time: 1800000, errors: ['time'] }).then((collected) => { activeApplication.replies.push(Array.from(collected.entries())[0][1]); proceed(); }).catch((error) => { if (error) { if (error instanceof Collection) { timeout(); this._activeApplications.delete(message.author.id); } } console.log("error in awaitResponse:", error); }); } private matchMemberFromId(members: GuildMember[], memberId: string): GuildMember { return members.find((x) => x.id === memberId); } private async backUpValues(activeApplication: ApplicationState): Promise<void> { let cleanReplies = new Array<[string, string]>(); for (let i = 0; i < activeApplication.replies.length; i++) { cleanReplies.push([this._questions[i + 1], activeApplication.replies[i].content]); } let dir = 'backups'; if (!fs.existsSync(dir)) { fs.mkdirSync(dir, { recursive: true }); } fs.createWriteStream(`${dir}/application-${activeApplication.replies[0].author.id}-${this.monthDayYearFormatted}.json`) .write(JSON.stringify(cleanReplies)); } }
53.147727
334
0.638443
93d5342b9cd805103ef4b6b3b360c0da891401de
638
cs
C#
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/UsersModule.cs
kamilbaczek/estimation-tool
d4a2c2b112c2b830ba067dc69776deaccf752435
[ "MIT" ]
1
2021-06-24T15:13:21.000Z
2021-06-24T15:13:21.000Z
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/UsersModule.cs
kamilbaczek/estimations-tool
d4a2c2b112c2b830ba067dc69776deaccf752435
[ "MIT" ]
null
null
null
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/UsersModule.cs
kamilbaczek/estimations-tool
d4a2c2b112c2b830ba067dc69776deaccf752435
[ "MIT" ]
null
null
null
using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Divstack.Company.Estimation.Tool.Bootstrapper")] namespace Divstack.Company.Estimation.Tool.Users.Api; using Application.Authentication; using Infrastructure; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; internal static class UsersModule { public static IServiceCollection AddUsersModule(this IServiceCollection services, IConfiguration configuration) { services.AddScoped<ICurrentUserService, CurrentUserService>(); services.AddInfrastructure(configuration); return services; } }
29
115
0.804075
20238cc7e7763b6f125cdf027c53c3faa0730e46
35,908
swift
Swift
GNImageCollection/GNImageCollection.swift
nicolaouG/GNImageCollection
d587649a2bc723c074d151abd8b9b2f727fcc1b0
[ "MIT" ]
null
null
null
GNImageCollection/GNImageCollection.swift
nicolaouG/GNImageCollection
d587649a2bc723c074d151abd8b9b2f727fcc1b0
[ "MIT" ]
null
null
null
GNImageCollection/GNImageCollection.swift
nicolaouG/GNImageCollection
d587649a2bc723c074d151abd8b9b2f727fcc1b0
[ "MIT" ]
null
null
null
// // GNImageCollection.swift // GNImageCollection // // Created by george on 08/04/2020. // Copyright © 2020 George Nicolaou. All rights reserved. // import UIKit public class GNImageCollection: UICollectionViewController, UICollectionViewDelegateFlowLayout { enum Identifiers: String { case cell = "ImageZoomCell" case trackerCell = "TrackerCell" case removeAction = "Remove" case shareAction = "Share" case saveAction = "Save" case rotateAction = "Rotate" case alertErrorTitle = "Error" case alertOkAction = "OK" case alertCancelAction = "Cancel" } public enum BottomImagesTrackerType { case thumbnails case dots case none } public var images: [UIImage]? { didSet { addImagesTracker() } } public var urlStrings: [String]? { didSet { addImagesTracker() } } public var imagePlaceholder: UIImage? private var textColor: UIColor { get { if #available(iOS 13.0, *) { return UIColor.label } else { return UIColor.black } } } private var backgroundColor: UIColor { get { if #available(iOS 13.0, *) { return UIColor.systemBackground } else { return UIColor.white } } } private lazy var emptyMessageLabel: UILabel = { let l = UILabel(frame: CGRect(x: 20, y: 20, width: collectionView.frame.width - 40, height: collectionView.frame.height - 40)) l.numberOfLines = 0 l.textColor = textColor l.textAlignment = .center l.font = UIFont(name: "TrebuchetMS", size: 16) return l }() private lazy var closeButtonLeftConstraint = NSLayoutConstraint(item: closeButton, attribute: .leading, relatedBy: .equal, toItem: collectionView, attribute: .leading, multiplier: 1, constant: 20) private lazy var closeButton: UIButton = { let b = UIButton() b.setTitle("Close", for: .normal) b.addTarget(self, action: #selector(closeButtonClicked), for: .touchUpInside) b.setTitleColor(textColor, for: .normal) b.contentEdgeInsets = UIEdgeInsets(top: 4, left: 6, bottom: 4, right: 6) return b }() private lazy var longPressGesture: UILongPressGestureRecognizer = { let g = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction)) return g }() private let flowLayout: UICollectionViewFlowLayout = { let l = UICollectionViewFlowLayout() l.scrollDirection = .horizontal l.minimumInteritemSpacing = 0 l.minimumLineSpacing = 0 return l }() private let bottomTrackerFlowLayout: UICollectionViewFlowLayout = { let l = UICollectionViewFlowLayout() l.scrollDirection = .horizontal l.minimumInteritemSpacing = 10 l.minimumLineSpacing = 10 l.estimatedItemSize = CGSize(width: 1, height: 1) return l }() public lazy var bottomTrackerCollectionView: UICollectionView = { let c = UICollectionView(frame: .zero, collectionViewLayout: bottomTrackerFlowLayout) c.delegate = self c.dataSource = self c.allowsMultipleSelection = false c.bounces = false c.register(GNTrackerCollectionViewCell.self, forCellWithReuseIdentifier: Identifiers.trackerCell.rawValue) return c }() public var currentImageTrackerColor: UIColor = .systemBlue { didSet { bottomTrackerCollectionView.reloadData() bottomTrackerCollectionView.scrollToItem(at: IndexPath(item: self.indexOfVisibleItem(), section: 0), at: .centeredHorizontally, animated: true) } } public var defaultImageTrackerColor: UIColor = .systemGray { didSet { bottomTrackerCollectionView.reloadData() bottomTrackerCollectionView.scrollToItem(at: IndexPath(item: self.indexOfVisibleItem(), section: 0), at: .centeredHorizontally, animated: true) } } private var bottomImagesTrackerType: BottomImagesTrackerType private var trackerCellHeight: CGFloat = 0 private var trackerCollectionViewWidth = NSLayoutConstraint() public init(images: [UIImage], bottomImageTracker: BottomImagesTrackerType) { self.images = images self.bottomImagesTrackerType = bottomImageTracker super.init(collectionViewLayout: flowLayout) collectionView.isPagingEnabled = true } public init(urlStrings: [String], imagePlaceholder: UIImage = UIImage(), bottomImageTracker: BottomImagesTrackerType) { self.urlStrings = urlStrings self.imagePlaceholder = imagePlaceholder self.bottomImagesTrackerType = bottomImageTracker super.init(collectionViewLayout: flowLayout) collectionView.isPagingEnabled = true } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } override public func viewDidLoad() { super.viewDidLoad() collectionView.backgroundColor = backgroundColor collectionView.register(GNImageCollectionViewCell.self, forCellWithReuseIdentifier: Identifiers.cell.rawValue) flowLayout.itemSize = collectionCellSize() setupTrackerCellSize() addImagesTracker() if #available(iOS 13.0, *) { } else { view.addGestureRecognizer(longPressGesture) } DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { /// wait for the navBar / tabBar to load (if any) if self.isModal { self.addCloseButton() } } } override public func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { super.viewWillTransition(to: size, with: coordinator) let index = indexOfVisibleItem() coordinator.animate(alongsideTransition: { _ in self.flowLayout.invalidateLayout() let ip = IndexPath(item: index, section: 0) self.collectionView.scrollToItem(at: ip, at: .centeredHorizontally, animated: false) ((self.collectionView.cellForItem(at: ip) as? GNImageCollectionViewCell)?.zoomView)?.setupImageViewContentMode() ((self.collectionView.cellForItem(at: ip) as? GNImageCollectionViewCell)?.zoomView)?.setZoomScale(1, animated: false) }, completion: { _ in }) } public override func viewWillLayoutSubviews() { super.viewWillLayoutSubviews() setupNewTrackerCollectionViewWidth() } private func setupNewTrackerCollectionViewWidth() { let newWidth = bottomTrackerCollectionView.contentSize.width let initialWidth = view.frame.width - 40 if newWidth < initialWidth { trackerCollectionViewWidth.constant = bottomTrackerCollectionView.contentSize.width } else { trackerCollectionViewWidth.constant = initialWidth } } private func setupTrackerCellSize() { switch bottomImagesTrackerType { case .dots: trackerCellHeight = 8 case .thumbnails: trackerCellHeight = 40 case .none: trackerCellHeight = 0 } } public func getCollectionView(_ requestingController: UIViewController) -> UIView? { closeButton.isHidden = true requestingController.addChild(self) didMove(toParent: requestingController) return view } private func addCloseButton() { view.addSubview(closeButton) closeButton.translatesAutoresizingMaskIntoConstraints = false let t = closeButton.topAnchor.constraint(equalTo: view.topAnchor, constant: 20) let l = closeButton.leftAnchor.constraint(equalTo: view.leftAnchor, constant: 20) [t, l].forEach({ $0.isActive = true }) addBlurBackground(to: closeButton) } private func addImagesTracker() { if !view.subviews.contains(bottomTrackerCollectionView) && bottomImagesTrackerType != .none { view.addSubview(bottomTrackerCollectionView) bottomTrackerCollectionView.translatesAutoresizingMaskIntoConstraints = false trackerCollectionViewWidth = bottomTrackerCollectionView.widthAnchor.constraint(equalToConstant: view.frame.width - 40) let h = bottomTrackerCollectionView.heightAnchor.constraint(equalToConstant: trackerCellHeight + 4) let b = bottomTrackerCollectionView.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -20) let cx = bottomTrackerCollectionView.centerXAnchor.constraint(equalTo: view.centerXAnchor) [trackerCollectionViewWidth, b, h, cx].forEach({ $0.isActive = true }) addBlurBackground(to: bottomTrackerCollectionView) } } private func addBlurBackground(to v: UIView) { v.backgroundColor = .clear let blurStyle: UIBlurEffect.Style if #available(iOS 13.0, *) { blurStyle = .systemUltraThinMaterial } else { blurStyle = .extraLight } let blurEffect = UIBlurEffect(style: blurStyle) let effectView = UIVisualEffectView(effect: blurEffect) effectView.isUserInteractionEnabled = false effectView.layer.cornerRadius = 8 effectView.clipsToBounds = true if let cv = v as? UICollectionView { cv.backgroundView = effectView return } else { v.insertSubview(effectView, at: 0) } effectView.translatesAutoresizingMaskIntoConstraints = false let cx = effectView.centerYAnchor.constraint(equalTo: v.centerYAnchor) let cy = effectView.centerXAnchor.constraint(equalTo: v.centerXAnchor) let w = effectView.widthAnchor.constraint(equalTo: v.widthAnchor) let h = effectView.heightAnchor.constraint(equalTo: v.heightAnchor) [cx, cy, w, h].forEach({ $0.isActive = true }) } @objc private func closeButtonClicked() { if let navController = navigationController { navController.popViewController(animated: true) } else { dismiss(animated: true, completion: nil) } } @objc private func longPressAction() { let index = indexOfVisibleItem() let indexPath = IndexPath(item: index, section: 0) guard let cell = self.collectionView.cellForItem(at: indexPath) as? GNImageCollectionViewCell, let image = cell.zoomView.imageView.image else { return } let alert = UIAlertController(title: "Options", message: nil, preferredStyle: .actionSheet) let save = UIAlertAction(title: Identifiers.saveAction.rawValue, style: .default) { _ in self.saveAction(image) } let share = UIAlertAction(title: Identifiers.shareAction.rawValue, style: .default) { _ in self.shareAction(image) } let remove = UIAlertAction(title: Identifiers.removeAction.rawValue, style: .destructive) { _ in self.removeAction(index) } let cancel = UIAlertAction(title: Identifiers.alertCancelAction.rawValue, style: .cancel) { _ in } [save, share, remove, cancel].forEach({ alert.addAction($0) }) present(alert, animated: true, completion: nil) } private func setEmptyMessage(_ message: String) { emptyMessageLabel.text = message collectionView.backgroundView = emptyMessageLabel } public func indexOfVisibleItem() -> Int { guard collectionView != nil else { return 0 } let itemWidth = collectionCellSize().width let offset = collectionView.contentOffset.x / itemWidth let index = Int(round(offset)) let numberOfItems = collectionView.numberOfItems(inSection: 0) let safeIndex = max(0, min(numberOfItems - 1, index)) return safeIndex } override public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) { guard scrollView == collectionView else { return } recolorTrackerCollectionViewCells() } // MARK: UICollectionViewDataSource override public func numberOfSections(in collectionView: UICollectionView) -> Int { if collectionView == bottomTrackerCollectionView { return bottomImagesTrackerType == .none ? 0 : 1 } else { if let imgs = images { if imgs.isEmpty { setEmptyMessage("No image to display") } } else if let strs = urlStrings { if strs.isEmpty { setEmptyMessage("No image to display") } } else { setEmptyMessage("Image not found") } return 1 // if images == nil { // setEmptyMessage("Image not found") // } else if images?.count ?? 0 == 0 { // setEmptyMessage("No image to display") // } // return 1 } } override public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { if let imgs = images { return imgs.count } else if let strs = urlStrings { return strs.count } else { return 0 } // if collectionView == bottomTrackerCollectionView { // return bottomImagesTrackerType == .none ? 0 : images?.count ?? 0 // } else { // return images?.count ?? 0 // } } override public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { if collectionView == bottomTrackerCollectionView { var cell = collectionView.dequeueReusableCell(withReuseIdentifier: Identifiers.trackerCell.rawValue, for: indexPath) as? GNTrackerCollectionViewCell if cell == nil { cell = GNTrackerCollectionViewCell() } switch bottomImagesTrackerType { case .dots: cell?.imageView.backgroundColor = (indexPath.item == indexOfVisibleItem()) ? currentImageTrackerColor : defaultImageTrackerColor cell?.imageView.layer.cornerRadius = trackerCellHeight / 2 case .thumbnails: if let links = urlStrings, indexPath.item < links.count { cell?.imageView.download(from: links[indexPath.item], placeholder: imagePlaceholder?.resizedImageWithinRect(rectSize: CGSize(width: trackerCellHeight, height: trackerCellHeight)), onSuccess: { _ in cell?.imageView.image = cell?.imageView.image?.resizedImageWithinRect(rectSize: CGSize(width: self.trackerCellHeight, height: self.trackerCellHeight)) }) } else { if indexPath.item < images?.count ?? 0 { cell?.imageView.image = images?[indexPath.item].resizedImageWithinRect(rectSize: CGSize(width: trackerCellHeight, height: trackerCellHeight)) } } cell?.imageView.layer.cornerRadius = 4 let isSelected = indexPath.item == indexOfVisibleItem() cell?.imageView.layer.borderColor = isSelected ? currentImageTrackerColor.cgColor : UIColor.clear.cgColor cell?.imageView.layer.borderWidth = isSelected ? 2 : 0 case .none: break } return cell ?? GNTrackerCollectionViewCell() } else { var cell = collectionView.dequeueReusableCell(withReuseIdentifier: Identifiers.cell.rawValue, for: indexPath) as? GNImageCollectionViewCell if cell == nil { cell = GNImageCollectionViewCell() } if let links = urlStrings, indexPath.item < links.count { cell?.placeholder = imagePlaceholder cell?.link = links[indexPath.item] } else { if indexPath.item < images?.count ?? 0 { cell?.image = images?[indexPath.item] } } return cell ?? GNImageCollectionViewCell() } } override public func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { if collectionView == bottomTrackerCollectionView { } else { if let cell = cell as? GNImageCollectionViewCell { cell.zoomView.setZoomScale(1, animated: false) } } } // MARK: UICollectionViewDelegate override public func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool { if collectionView == bottomTrackerCollectionView, bottomImagesTrackerType == .thumbnails { return true } return false } override public func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool { if collectionView == bottomTrackerCollectionView, bottomImagesTrackerType == .thumbnails { return true } return false } public override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { if collectionView == bottomTrackerCollectionView, bottomImagesTrackerType == .thumbnails { self.collectionView.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true) bottomTrackerCollectionView.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true) recolorTrackerCollectionViewCells(at: indexPath.item) } } // MARK: FlowLayoutDelegate public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { if collectionView == bottomTrackerCollectionView { return CGSize(width: trackerCellHeight, height: trackerCellHeight) } else { return collectionCellSize() } } public func collectionCellSize() -> CGSize { var h = collectionView.frame.height var w = collectionView.frame.width if #available(iOS 11.0, *) { h = collectionView.safeAreaLayoutGuide.layoutFrame.height w = collectionView.safeAreaLayoutGuide.layoutFrame.width } if let sectionInset = (collectionViewLayout as? UICollectionViewFlowLayout)?.sectionInset { w -= sectionInset.left + sectionInset.right + collectionView.contentInset.left + collectionView.contentInset.right h -= sectionInset.top + sectionInset.bottom + collectionView.contentInset.top + collectionView.contentInset.bottom } return CGSize(width: w, height: h) } func recolorTrackerCollectionViewCells(at index: Int = -1) { guard bottomImagesTrackerType != .none else { return } let selectedSubviewIndex: Int if index == -1 { selectedSubviewIndex = indexOfVisibleItem() } else { selectedSubviewIndex = index } bottomTrackerCollectionView.scrollToItem(at: IndexPath(item: selectedSubviewIndex, section: 0), at: .centeredHorizontally, animated: true) bottomTrackerCollectionView.visibleCells.forEach({ if let cell = $0 as? GNTrackerCollectionViewCell { let isCurrentCell = (bottomTrackerCollectionView.indexPath(for: cell)?.item ?? -1) == selectedSubviewIndex switch bottomImagesTrackerType { case .dots: cell.imageView.backgroundColor = isCurrentCell ? currentImageTrackerColor : defaultImageTrackerColor case .thumbnails: cell.imageView.layer.borderColor = isCurrentCell ? currentImageTrackerColor.cgColor : UIColor.clear.cgColor cell.imageView.layer.borderWidth = isCurrentCell ? 2 : 0 case .none: break } } }) } } // MARK: - Context Menu extension GNImageCollection { @available(iOS 13.0, *) override public func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { guard collectionView != bottomTrackerCollectionView else { return nil } return contextMenu(for: indexPath) } @available(iOS 13.0, *) private func contextMenu(for indexPath: IndexPath) -> UIContextMenuConfiguration? { let configuration = UIContextMenuConfiguration(identifier: "\(indexPath.item)" as NSCopying, previewProvider: { return self.contextMenuPreviewVC(for: indexPath) }, actionProvider: { _ in guard let cell = self.collectionView.cellForItem(at: indexPath) as? GNImageCollectionViewCell, let image = cell.zoomView.imageView.image else { return nil } let save = UIAction(title: Identifiers.saveAction.rawValue, image: UIImage(systemName: "tray.and.arrow.down"), identifier: UIAction.Identifier(rawValue: Identifiers.saveAction.rawValue)) { _ in self.saveAction(image) } let share = UIAction(title: Identifiers.shareAction.rawValue, image: UIImage(systemName: "square.and.arrow.up"), identifier: UIAction.Identifier(rawValue: Identifiers.shareAction.rawValue)) { _ in self.shareAction(image) } let remove = UIAction(title: Identifiers.removeAction.rawValue, image: UIImage(systemName: "trash"), identifier: UIAction.Identifier(rawValue: Identifiers.removeAction.rawValue), discoverabilityTitle: nil, attributes: .destructive, handler: { _ in self.removeAction(indexPath.item) }) // let editMenu = UIMenu(title: "Edit...", children: [rotate, delete]) return UIMenu(title: "Options", image: nil, identifier: nil, children: [save, share, remove]) }) return configuration } private func contextMenuPreviewVC(for indexPath: IndexPath) -> UIViewController? { guard let cell = collectionView.cellForItem(at: indexPath) as? GNImageCollectionViewCell else { return nil } let vc = UIViewController() let iv = UIImageView() let maxWidth = UIDevice.current.userInterfaceIdiom == .pad ? UIScreen.main.bounds.width * 0.5 : UIScreen.main.bounds.width * 0.8 let maxHeight = UIDevice.current.userInterfaceIdiom == .pad ? UIScreen.main.bounds.height * 0.5 : UIScreen.main.bounds.height * 0.5 iv.frame = CGRect(x: 0, y: 0, width: maxWidth, height: maxHeight) iv.image = cell.zoomView.imageView.image iv.contentMode = .scaleAspectFit let desiredSize = iv.aspectFitSize iv.frame.size = desiredSize vc.view = iv vc.preferredContentSize = desiredSize return vc } private func saveAction(_ image: UIImage) { /// PList -> Privacy - Photo Library Additions Usage Description UIImageWriteToSavedPhotosAlbum(image, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil) } @objc private func image(_ image: UIImage, didFinishSavingWithError error: Error?, contextInfo: UnsafeRawPointer) { if let err = error { let ac = UIAlertController(title: Identifiers.alertErrorTitle.rawValue, message: err.localizedDescription, preferredStyle: .alert) ac.addAction(UIAlertAction(title: Identifiers.alertOkAction.rawValue, style: .default)) present(ac, animated: true) } } private func shareAction(_ image: UIImage) { /// PList -> Privacy - Photo Library Additions Usage Description let activityvc = UIActivityViewController(activityItems: [image], applicationActivities: nil) ///activityvc.excludedActivityTypes = [.saveToCameraRoll] activityvc.popoverPresentationController?.sourceView = collectionView /// for ipads present(activityvc, animated: true, completion: nil) } private func removeAction(_ index: Int) { guard index < (images?.count ?? 0) || index < (urlStrings?.count ?? 0) else { return } if let imgs = images, index < imgs.count { images?.remove(at: index) collectionView.reloadData() } else if let links = urlStrings, index < links.count { urlStrings?.remove(at: index) collectionView.reloadData() } // guard index < (images?.count ?? 0) else { return } // images?.remove(at: index) // collectionView.reloadData() UIView.animate(withDuration: 0.1, animations: { self.bottomTrackerCollectionView.reloadSections(IndexSet(arrayLiteral: 0)) self.view.layoutIfNeeded() }, completion: { _ in self.setupNewTrackerCollectionViewWidth() self.bottomTrackerCollectionView.scrollToItem(at: IndexPath(item: self.indexOfVisibleItem(), section: 0), at: .centeredHorizontally, animated: true) }) } } // MARK: - TrackerCollectionViewCell public class GNTrackerCollectionViewCell: UICollectionViewCell { public lazy var imageView: UIImageView = { let iv = UIImageView() iv.contentMode = .scaleAspectFit iv.clipsToBounds = true iv.translatesAutoresizingMaskIntoConstraints = false return iv }() override init(frame: CGRect) { super.init(frame: frame) setupView() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func setupView() { addSubview(imageView) [imageView.leftAnchor.constraint(equalTo: leftAnchor), imageView.rightAnchor.constraint(equalTo: rightAnchor), imageView.topAnchor.constraint(equalTo: topAnchor), imageView.bottomAnchor.constraint(equalTo: bottomAnchor) ].forEach({ $0.isActive = true }) } } // MARK: - ImageCollectionViewCell public class GNImageCollectionViewCell: UICollectionViewCell { lazy var zoomView: ImageZoomView = { let iv = ImageZoomView() iv.contentMode = .scaleAspectFit return iv }() public var image: UIImage? { didSet { if let img = image { zoomView.image = img } } } var placeholder: UIImage? var link: String? { didSet { if let link = link { zoomView.imageView.download(from: link, placeholder: placeholder, onSuccess: { _ in self.zoomView.setupImageViewContentMode() }) } } } override public func prepareForReuse() { super.prepareForReuse() zoomView.setZoomScale(1, animated: false) } override init(frame: CGRect) { super.init(frame: frame) setupView() } convenience init(image: UIImage) { self.init() self.image = image } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func setupView() { contentView.addSubview(zoomView) setupConstraints() } private func setupConstraints() { zoomView.translatesAutoresizingMaskIntoConstraints = false let l = zoomView.leftAnchor.constraint(equalTo: leftAnchor) let r = zoomView.rightAnchor.constraint(equalTo: rightAnchor) let t = zoomView.topAnchor.constraint(equalTo: topAnchor) let b = zoomView.bottomAnchor.constraint(equalTo: bottomAnchor) [l, r, t, b].forEach({ $0.isActive = true }) } } // MARK: - ImageZoomView class ImageZoomView: UIScrollView, UIScrollViewDelegate { lazy var imageView: UIImageView = { let iv = UIImageView() iv.contentMode = .scaleAspectFit iv.isUserInteractionEnabled = true return iv }() private lazy var doubleTapToZoomGesture: UITapGestureRecognizer = { let gesture = UITapGestureRecognizer() gesture.numberOfTapsRequired = 2 gesture.addTarget(self, action: #selector(doubleTapped)) return gesture }() public var image: UIImage? { didSet { if let img = image { imageView.image = img setupImageViewContentMode() } } } func setupImageViewContentMode() { layoutIfNeeded() let image = self.image ?? imageView.image /// in case of assigning link as image if (image?.size.width ?? 0) >= bounds.width || (image?.size.height ?? 0) >= bounds.height { imageView.contentMode = .scaleAspectFit } else { imageView.contentMode = .center } } override init(frame: CGRect) { super.init(frame: frame) setupView() } convenience init(frame: CGRect = .zero, image: UIImage) { self.init() self.image = image } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func setupView() { addSubview(imageView) setupConstraints() delegate = self minimumZoomScale = 1 maximumZoomScale = 5 addGestureRecognizer(doubleTapToZoomGesture) } private func setupConstraints() { imageView.translatesAutoresizingMaskIntoConstraints = false let w = imageView.widthAnchor.constraint(equalTo: widthAnchor) let h = imageView.heightAnchor.constraint(equalTo: heightAnchor) let cx = imageView.centerXAnchor.constraint(equalTo: centerXAnchor) let cy = imageView.centerYAnchor.constraint(equalTo: centerYAnchor) [w, h, cx, cy].forEach({ $0.isActive = true }) if image != nil { setupImageViewContentMode() } } @objc private func doubleTapped() { if zoomScale == 1 { zoom(to: zoomRectForScale(2, center: doubleTapToZoomGesture.location(in: doubleTapToZoomGesture.view)), animated: true) } else { setZoomScale(1, animated: true) } } private func zoomRectForScale(_ scale: CGFloat, center: CGPoint) -> CGRect { var zoomRect = CGRect.zero zoomRect.size.height = imageView.frame.size.height / scale zoomRect.size.width = imageView.frame.size.width / scale let newCenter = convert(center, from: imageView) zoomRect.origin.x = newCenter.x - (zoomRect.size.width / 2.0) zoomRect.origin.y = newCenter.y - (zoomRect.size.height / 2.0) return zoomRect } internal func viewForZooming(in scrollView: UIScrollView) -> UIView? { return imageView } } // MARK: - Usefull extensions extension UIViewController { public var isModal: Bool { let presentingIsModal = presentingViewController != nil let presentingIsNavigation = navigationController?.presentingViewController?.presentedViewController == navigationController let presentingIsTabBar = tabBarController?.presentingViewController is UITabBarController return presentingIsModal || presentingIsNavigation || presentingIsTabBar } } extension UIImageView { /// Find the size of the image, once the parent imageView has been given a contentMode of .scaleAspectFit /// Querying the image.size returns the non-scaled size. This helper property is needed for accurate results. public var aspectFitSize: CGSize { guard let image = image else { return CGSize.zero } var aspectFitSize = CGSize(width: frame.size.width, height: frame.size.height) let newWidth: CGFloat = frame.size.width / image.size.width let newHeight: CGFloat = frame.size.height / image.size.height if newHeight < newWidth { aspectFitSize.width = newHeight * image.size.width } else if newWidth < newHeight { aspectFitSize.height = newWidth * image.size.height } return aspectFitSize } public func download(from link: String, placeholder: UIImage?, onSuccess: /*@escaping */((_ image: UIImage) -> Void)? = nil) { self.image = placeholder self.contentMode = .scaleAspectFit guard let url = URL(string: link) else { return } /// check if cached if let cachedImage = ImageCache.shared.image(forKey: link) { self.image = cachedImage onSuccess?(cachedImage) return } URLSession.shared.dataTask(with: url) { data, response, error in if let err = error { print(err) return } guard ///let httpURLResponse = response as? HTTPURLResponse, ///httpURLResponse.statusCode == 200, let mimeType = response?.mimeType, mimeType.hasPrefix("image"), let data = data, let image = UIImage(data: data) else { print("Invalid image URL.") return } DispatchQueue.main.async() { [weak self] in self?.image = image ImageCache.shared.save(image: image, forKey: link) onSuccess?(image) } }.resume() } } extension UIImage { func resizedImage(newSize: CGSize) -> UIImage { guard self.size != newSize else { return self } UIGraphicsBeginImageContextWithOptions(newSize, false, 0.0); self.draw(in: CGRect(x: 0, y: 0, width: newSize.width, height: newSize.height)) let newImage: UIImage = UIGraphicsGetImageFromCurrentImageContext()! UIGraphicsEndImageContext() return newImage } /*** Call this to prevent quality loss ***/ public func resizedImageWithinRect(rectSize: CGSize) -> UIImage { let widthFactor = size.width / rectSize.width let heightFactor = size.height / rectSize.height var resizeFactor = widthFactor if size.height > size.width { resizeFactor = heightFactor } let newSize = CGSize(width: size.width/resizeFactor, height: size.height/resizeFactor) let resized = resizedImage(newSize: newSize) return resized } } // MARK: - ImageCache class ImageCache { private let cache = NSCache<NSString, UIImage>() private var observer: NSObjectProtocol! static let shared = ImageCache() private init() { /// purge cache on memory pressure observer = NotificationCenter.default.addObserver(forName: UIApplication.didReceiveMemoryWarningNotification, object: nil, queue: nil) { [weak self] notification in self?.cache.removeAllObjects() } } deinit { NotificationCenter.default.removeObserver(observer!) } func image(forKey key: String) -> UIImage? { return cache.object(forKey: key as NSString) } func save(image: UIImage, forKey key: String) { cache.setObject(image, forKey: key as NSString) } }
37.997884
259
0.630528
dba3dfaf6ef77c97cb2f145544a9b415b4811c52
92
php
PHP
hphp/test/zend/good/ext/iconv/tests/iconv_mime_decode_headers-charset-length-cve-2007-4840.php
radford/hhvm
a7cd6754d14742b40528c847b607a1608cfcfe98
[ "PHP-3.01", "Zend-2.0" ]
344
2015-01-07T16:28:24.000Z
2022-03-25T14:48:56.000Z
hphp/test/zend/good/ext/iconv/tests/iconv_mime_decode_headers-charset-length-cve-2007-4840.php
radford/hhvm
a7cd6754d14742b40528c847b607a1608cfcfe98
[ "PHP-3.01", "Zend-2.0" ]
21
2015-02-02T22:50:45.000Z
2017-09-24T21:22:30.000Z
hphp/test/zend/good/ext/iconv/tests/iconv_mime_decode_headers-charset-length-cve-2007-4840.php
radford/hhvm
a7cd6754d14742b40528c847b607a1608cfcfe98
[ "PHP-3.01", "Zend-2.0" ]
95
2015-01-01T00:06:47.000Z
2021-06-15T07:03:42.000Z
<?php $a = str_repeat("/", 9000000); var_dump(iconv_mime_decode_headers("a", null, $a)); ?>
18.4
51
0.652174
180f391f15593202ca762b51b1975e63629487bb
1,093
swift
Swift
BeautifulLunaSmile/TypesAndExtensions/NetworkError.swift
Mosquito1123/BeautifulMoonSmile
37e863c9a09e1b8a1ac9ded863cfa54682da4593
[ "BSD-2-Clause" ]
null
null
null
BeautifulLunaSmile/TypesAndExtensions/NetworkError.swift
Mosquito1123/BeautifulMoonSmile
37e863c9a09e1b8a1ac9ded863cfa54682da4593
[ "BSD-2-Clause" ]
null
null
null
BeautifulLunaSmile/TypesAndExtensions/NetworkError.swift
Mosquito1123/BeautifulMoonSmile
37e863c9a09e1b8a1ac9ded863cfa54682da4593
[ "BSD-2-Clause" ]
null
null
null
// // NetworkError.swift // BeautifulLunaSmile // // Created by Mosquito1123 on 13/07/2019. // Copyright © 2019 Cranberry. All rights reserved. // import Foundation public enum NetworkError: Error { case badStatusCode(statusCode: Int) case badResponse case badJSON case noData case offline case other(Error?) } extension NetworkError: LocalizedError { public var localizedDescription: String { switch self { case .badResponse: return NSLocalizedString("Bad response object returned", comment: "") case .badJSON: return NSLocalizedString("Bad JSON object, unable to parse", comment: "") case .noData: return NSLocalizedString("No response data", comment: "") case .offline: return NSLocalizedString("No internet connection is available", comment: "") case .badStatusCode(let statusCode): return "Bad status code returned: \(statusCode)" case .other(let error): return "NetworkError: \(String(describing: error))" } } }
28.763158
88
0.645014
41d03cf2cc6773dccea1d58423b3057b473c57b9
847
lua
Lua
model/data/spells/Makarakarn.lua
Zaltu/personax-lua-src
190fc200ee978892cfc0a21e816839910064ccfa
[ "MIT" ]
1
2019-02-08T22:13:37.000Z
2019-02-08T22:13:37.000Z
model/data/spells/Makarakarn.lua
Zaltu/personax-lua-src
190fc200ee978892cfc0a21e816839910064ccfa
[ "MIT" ]
null
null
null
model/data/spells/Makarakarn.lua
Zaltu/personax-lua-src
190fc200ee978892cfc0a21e816839910064ccfa
[ "MIT" ]
null
null
null
local spell = {} spell["element"] = [[Support]] spell["cost"] = 55 spell["desc"] = [[Repels the next magical attack back towards the enemy]] spell["target"] = [[One Ally]] spell["name"] = [[Makarakarn]] spell["costtype"] = [[SP]] spell["blurb"] = [[ has a magical shield!]] function spell.activate() state.context.cost(spell.costtype, spell.cost) state.context.passive(spell, state.battle.participants[state.battle.target], state.battle.participants[state.battle.open], 99, "defendstatus") end function spell.process(uspell, damage) valid = {"Slash", "Strike", "Pierce"} if not valid[uspell.element] then state.battle.target = state.battle.open --Once activated, status is popped state.battle.participants[state.battle.target]["defendstatus"][spell.name] = nil end return damage end return spell
32.576923
146
0.689492
8344b7bec5f3201aad7dc58b3e06b9b6b3262638
6,592
ts
TypeScript
test/controllers/userController.test.ts
PRIV00/boilerplate-api
2875c72756964a05ce6121316697f14d5acb0072
[ "MIT" ]
null
null
null
test/controllers/userController.test.ts
PRIV00/boilerplate-api
2875c72756964a05ce6121316697f14d5acb0072
[ "MIT" ]
null
null
null
test/controllers/userController.test.ts
PRIV00/boilerplate-api
2875c72756964a05ce6121316697f14d5acb0072
[ "MIT" ]
null
null
null
import { expect } from "chai"; import { Request, Response } from "express"; import { createUser, updateUser, getUser, deleteUser } from "../../src/controllers/userController"; import User, { IUser } from "../../src/models/User"; import { mockExpressObjects } from "../helpers"; import msg from '../../src/constants/messages'; describe('User Controller', () => { let req: Request; let res: Response; beforeEach(() => ({ req, res } = mockExpressObjects())); describe('#createUser()', () => { beforeEach(() => { req.body = { username: 'Test User', email: 'test_email@gmail.com', password: 'password' } }) it('should save the user to the database.', done => { createUser(req, res) .then(result => { return User.findById((<any>result)._id); }) .then(result => { expect(result).to.not.be.null; done(); }) .catch(err => done(err)); }); it('should return the user data as a json.', done => { createUser(req, res) .then(result => { expect(['_id', 'username', 'email']).to.have.members(Object.keys(result)); expect(result).to.have.property('username').which.equals(req.body.username); expect(result).to.have.property('email').which.equals(req.body.email); done(); }) .catch(err => done(err)); }); }); describe('#deleteUser()', () => { beforeEach(done => { res.locals.user = new User({ username: 'Test User', email: 'test@test.com', password: 'password' }) res.locals.user.save() .then(() => { return User.findById(res.locals.user._id); }) .then((result: IUser | null) => { expect(result).to.not.be.null; done(); }); req.body.password = 'password'; }) it('should delete the current user if correct password is provided.', done => { deleteUser(req, res) .then(() => { return User.findById(res.locals.user._id); }) .then((result: IUser | null) => { expect(result).to.be.null; done(); }) .catch(err => done(err)); }); it('should give a user deleted message if delete was successful.', done => { deleteUser(req, res) .then(result => { expect(result).to.have.property('message').which.equals(msg.USER_DELETED); done(); }) .catch(err => done(err)); }); it('should not delete the current user if incorrect password is provided.', done => { req.body.password = 'badpassword'; deleteUser(req, res) .then(() => { return User.findById(res.locals.user._id); }) .then((result: IUser | null) => { expect(result).to.not.be.null; done(); }) .catch(err => done(err)); }); it('should return an incorrect password message if incorrect password is provided.', done => { req.body.password = 'badpassword'; deleteUser(req, res) .then(result => { expect(result).to.have.property('message').which.equals(msg.INVALID_PASSWORD); done(); }) .catch(err => done(err)); }) }); describe('#getUser()', () => { beforeEach(() => { res.locals.user = new User({ username: 'Test User', email: 'test@test.com', password: 'testpassword' }); }); it('should get the current user\'s data', done => { getUser(req, res) .then(result => { expect(result).to.have.property('username').which.equals(res.locals.user.username); expect(result).to.have.property('email').which.equals(res.locals.user.email); expect(result).to.have.property('_id'); expect(result).to.not.have.property('password'); done(); }) .catch(err => done(err)); }); }); describe('#updateUser()', () => { beforeEach(done => { res.locals.user = new User({ username: 'Test User', email: 'test@test.com', password: 'password' }); res.locals.user.save(done); }); it('should reject the update request if currentPassword is incorrect.', done => { req.body.currentPassword = 'badPassword'; updateUser(req, res) .then(result => { expect(result).to.have.property('message').which.equals(msg.INVALID_PASSWORD); expect(res.statusCode).to.equal(401); done(); }) .catch(err => done(err)); }); it('should update the user\'s email if provided.', done => { req.body.currentPassword = 'password'; req.body.newEmail = 'test2@test.com' updateUser(req, res) .then(result => { expect(result).to.have.property('email').which.equals(req.body.newEmail); done(); }) .catch(err => done(err)); }); it('should update the user\'s password if provided.', done => { req.body.currentPassword = 'password'; req.body.newPassword = 'newPassword'; updateUser(req, res) .then(() => { return User.findById(res.locals.user._id).select('+password'); }) .then(result => { return (<IUser>result).validatePassword('newPassword'); }) .then(result => { expect(result).to.be.true; done(); }) .catch(err => done(err)); }); }) });
37.033708
103
0.44736
96139d235f257e7ddc479b08e3f66db102962012
5,606
swift
Swift
Spider/Web/Web+Vibration.swift
AndreasLS/spider
b1bfbdcf1e4aef3ff73999ffa313233b5be32d9b
[ "MIT" ]
2
2022-02-26T14:15:11.000Z
2022-03-30T18:36:26.000Z
Spider/Web/Web+Vibration.swift
AndreasLS/spider
b1bfbdcf1e4aef3ff73999ffa313233b5be32d9b
[ "MIT" ]
null
null
null
Spider/Web/Web+Vibration.swift
AndreasLS/spider
b1bfbdcf1e4aef3ff73999ffa313233b5be32d9b
[ "MIT" ]
null
null
null
// // Web+Vibration.swift // Spider // // Created by Andre Luiz Salla on 18/08/20. // Copyright © 2020 Andre Luiz Salla. All rights reserved. // import Foundation import Flies import UIKit extension FlyBaseFlow where Self: FlyValidable { func validate() { try? self.validate(parameters: nil) } } extension Web: Vibration { func isAvailable(signal: FlyBase.Path) -> Bool { let fly = try? self.getFly(for: signal) return fly != nil } func flow(signal: String, style: PresentationType, parameters: [String : Any]?, completion: BaseCallback?) throws { let fly = try getAndCreate(with: signal) if let flow = fly as? FlyBaseFlow { try checkState(singleton: flow as? FlySingleton) if let validable = flow as? FlyBaseValidable { try validable.validation(with: parameters) } let capsule = self.attach(fly: flow, callback: completion) flow.completion = capsule.callback self.flowFly(to: try flow.start(with: parameters), in: windowsArraySource?.windowArray.filter {$0.isKeyWindow}.first, with: style) (flow as? FlySingleton)?.state = .running } else { throw InternalError.flyIsNotFlow } } func flow<T: Codable, U: Codable>(signal: String, style: PresentationType, parameters: T?, completion: CallbackResult<U>?) throws { let fly = try getAndCreate(with: signal) if let flow = fly as? FlyBaseFlow { try checkState(singleton: flow as? FlySingleton) let dictionary = try CodableUtils.toDictionary(codable: parameters) if let validable = flow as? FlyBaseValidable { try validable.validation(with: dictionary) } let callback = self.makeCallback(completion) let capsule = self.attach(fly: flow, callback: callback) flow.completion = capsule.callback self.flowFly(to: try flow.start(with: dictionary), in: windowsArraySource?.windowArray.filter {$0.isKeyWindow}.first, with: style) (flow as? FlySingleton)?.state = .running } else { throw InternalError.flyIsNotFlow } } func service(signal: String, parameters: [String : Any]?, completion: BaseCallback?) throws { let fly = try getAndCreate(with: signal) if let service = fly as? FlyBaseService { try checkState(singleton: service as? FlySingleton) if let validable = service as? FlyBaseValidable { try validable.validation(with: parameters) } let capsule = self.attach(fly: service, callback: completion) service.completion = capsule.callback try service.start(with: parameters) (service as? FlySingleton)?.state = .running } else { throw InternalError.flyIsNotService } } func service<T: Codable, U: Codable>(signal: String, parameters: T?, completion: CallbackResult<U>?) throws { let fly = try getAndCreate(with: signal) if let service = fly as? FlyBaseService { try checkState(singleton: service as? FlySingleton) let dictionary = try CodableUtils.toDictionary(codable: parameters) if let validable = service as? FlyBaseValidable { try validable.validation(with: dictionary) } let callback = self.makeCallback(completion) let capsule = self.attach(fly: service, callback: callback) service.completion = capsule.callback try service.start(with: dictionary) (service as? FlySingleton)?.state = .running } else { throw InternalError.flyIsNotService } } private func getAndCreate(with signal: String) throws -> FlyBase { let flyType = try self.getFly(for: signal) let fly = flyType.newInstance() return fly } private func checkState(singleton: FlySingleton?) throws { if let singleton = singleton, singleton.state == .running { throw InternalError.singletonIsBusy } } private func makeCallback<T: Codable>(_ completion: CallbackResult<T>?) -> BaseCallback? { return { result in guard let result = result else { completion?(nil) return } switch result { case .success(let data): if let sData = data { if !CodableUtils.checkEncodable(for: sData) { completion?(.failure(InternalError.parserError)) } else if let codable: T = try? CodableUtils.toCodable(dictonary: sData) { completion?(.success(codable)) } else { completion?(.failure(InternalError.parserError)) } } else { completion?(.success(nil)) } case .failure(let error): completion?(.failure(error)) } } } }
37.373333
94
0.543703
255290198b62c1ea8c5c04c6118ffbc6d11b42d0
2,226
cs
C#
src/Cadenza/Test/Cadenza/NaturalStringComparerTest.cs
cadenza/cadenza
498b91f8700fa39f90847c8c9b5079af210dbd53
[ "MIT" ]
13
2015-01-28T18:03:31.000Z
2021-09-29T09:22:46.000Z
src/Cadenza/Test/Cadenza/NaturalStringComparerTest.cs
wickedshimmy/cadenza
bab49af78420d164e79dacd49f476f8b7104f0ed
[ "MIT" ]
null
null
null
src/Cadenza/Test/Cadenza/NaturalStringComparerTest.cs
wickedshimmy/cadenza
bab49af78420d164e79dacd49f476f8b7104f0ed
[ "MIT" ]
2
2021-04-15T09:48:42.000Z
2021-08-10T05:52:08.000Z
// // NaturalStringComparerTest.cs // // Author: // Jonathan Pryor <jpryor@novell.com> // // Copyright (c) 2008 Novell, Inc. (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using Cadenza.Collections; using Cadenza.Tests; namespace Cadenza.Collections.Tests { [TestFixture] public class NaturalStringComparerTest : BaseRocksFixture { [Test] public void Compare () { string[] expected = { "a.1.b.2.c.3.d.4.e.5.f.6.g.7.h.8.i.9.j.10.k.11", "a.1.b.2.c.3.d.4.e.5.f.6.g.7.h.8.i.9.j.10.k.12", "bar", "foo", "foo", "foo1", "foo2", "foo3", "foo4", "foo5", "foo6", "foo7", "foo8", "foo9", "foo10", }; List<string> actual = new List<string> { "foo", "foo", "foo10", "foo1", "foo4", "foo2", "foo3", "foo9", "foo5", "foo7", "foo8", "foo6", "bar", "a.1.b.2.c.3.d.4.e.5.f.6.g.7.h.8.i.9.j.10.k.12", "a.1.b.2.c.3.d.4.e.5.f.6.g.7.h.8.i.9.j.10.k.11", }; actual.Sort (NaturalStringComparer.Default); AssertAreSame (expected, actual); } } }
25.586207
73
0.655885
01f1683c00312e3b7a2becc419e111bed23f9bf5
2,657
rs
Rust
rust/src/main.rs
iamlouk/pythagoras-tree
8469de0648e12321f82ba6baa7d62cd4564072f9
[ "MIT" ]
null
null
null
rust/src/main.rs
iamlouk/pythagoras-tree
8469de0648e12321f82ba6baa7d62cd4564072f9
[ "MIT" ]
null
null
null
rust/src/main.rs
iamlouk/pythagoras-tree
8469de0648e12321f82ba6baa7d62cd4564072f9
[ "MIT" ]
null
null
null
extern crate sdl2; use sdl2::event::Event; use sdl2::keyboard::Keycode; use sdl2::pixels::Color; use std::time::{Duration, SystemTime}; use std::io::prelude::*; static WINDOW_WIDTH:u32 = 1000; static WINDOW_HEIGHT:u32 = 650; static MS_PER_FRAME:u64 = (1000 / 60); mod geometry; use geometry::*; fn draw_pythagoras_tree(prev_rect: &Square, counter: i8, shift: f32, renderer: &mut sdl2::render::Renderer) { let left = prev_rect.next_left(shift); let right = prev_rect.next_right(shift); left.draw(renderer); right.draw(renderer); if counter > 0 { draw_pythagoras_tree(&left, counter - 1, shift, renderer); draw_pythagoras_tree(&right, counter - 1, shift, renderer); } } fn main() { println!("Hallo, Rust!"); let sdl_context = sdl2::init().unwrap(); let video_subsystem = sdl_context.video().unwrap(); let window = video_subsystem.window("Pythagoras: Hallo, Welt!", WINDOW_WIDTH, WINDOW_HEIGHT) .position_centered() .opengl() .build() .unwrap(); let mut renderer = window.renderer() .build() .unwrap(); renderer.set_draw_color( Color::RGB(255, 255, 255) ); renderer.clear(); let rect_width = (WINDOW_WIDTH as f32) * 0.15; let mut first_rect = Square::new( Vector::new(((WINDOW_WIDTH / 2) - (rect_width as u32 / 2)) as f32, WINDOW_HEIGHT as f32), Vector::new(0f32, -rect_width), Vector::new(rect_width, 0f32), 0.0 ); let mut shift:f32 = 0.0; let mut i:u64 = 0; let mut average_ms_per_frame:u64 = 0; let mut event_pump = sdl_context.event_pump().unwrap(); print!("FPS: ??\r"); 'mainloop: loop { let now = SystemTime::now(); for event in event_pump.poll_iter() { match event { Event::Quit {..} | Event::KeyDown { keycode: Some(Keycode::Escape), .. } => { break 'mainloop }, _ => {} } } renderer.set_draw_color( Color::RGB(255, 255, 255) ); renderer.clear(); renderer.set_draw_color(Color::RGB(0, 0, 0)); first_rect.draw(&mut renderer); draw_pythagoras_tree(&first_rect, 11, shift, &mut renderer); renderer.present(); i += 1; shift = (i as f32 * 0.01).sin() * 0.1; first_rect.recalc_p(shift); let elapsed_time: Duration = now.elapsed().unwrap(); let mut ms = (1000*1000*1000 * elapsed_time.as_secs() + (elapsed_time.subsec_nanos() as u64))/(1000 * 1000); if ms < MS_PER_FRAME { let correction = MS_PER_FRAME - ms; std::thread::sleep( Duration::from_millis( correction ) ); ms += correction; } average_ms_per_frame = (average_ms_per_frame + ms) / 2; if (i % 25) == 0 { print!("FPS: {:?}\r", 1000 / average_ms_per_frame); std::io::stdout().flush().ok().expect("could not flush stdout"); } } println!("\nBye! "); }
25.066038
110
0.659767
5dbcae02d407603e7f865047be88aab1147ddfeb
669
sql
SQL
controleacesso/controleacesso-mysql-create.sql
erosvitor/mysql-templates
12dedeae3889c2a97b17269a08df535914fc4d82
[ "MIT" ]
null
null
null
controleacesso/controleacesso-mysql-create.sql
erosvitor/mysql-templates
12dedeae3889c2a97b17269a08df535914fc4d82
[ "MIT" ]
null
null
null
controleacesso/controleacesso-mysql-create.sql
erosvitor/mysql-templates
12dedeae3889c2a97b17269a08df535914fc4d82
[ "MIT" ]
null
null
null
CREATE DATABASE controleacesso DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; USE controleacesso; CREATE TABLE usuarios ( codigo INTEGER NOT NULL AUTO_INCREMENT, nome VARCHAR(60) NOT NULL, login VARCHAR(15) NOT NULL, senha VARCHAR(128) NOT NULL, PRIMARY KEY (codigo) ); CREATE TABLE perfis ( codigo INTEGER NOT NULL AUTO_INCREMENT, nome VARCHAR(60) NOT NULL, PRIMARY KEY (codigo) ); CREATE TABLE usuarios_perfis ( codigo_usuario INTEGER NOT NULL, codigo_perfil INTEGER NOT NULL, PRIMARY KEY (codigo_usuario, codigo_perfil), FOREIGN KEY (codigo_usuario) REFERENCES usuarios(codigo), FOREIGN KEY (codigo_perfil) REFERENCES perfis(codigo) );
21.580645
75
0.766816
b02dcaa3cd188599c5ffa1101d042b78052d8e85
1,400
py
Python
ucf_sub_catkin_ros/src/sub_utils/src/linefinder.py
RoboticsClubatUCF/RoboSub
47304c620f963a8762db57a7ed248d1df90190fb
[ "MIT" ]
null
null
null
ucf_sub_catkin_ros/src/sub_utils/src/linefinder.py
RoboticsClubatUCF/RoboSub
47304c620f963a8762db57a7ed248d1df90190fb
[ "MIT" ]
19
2016-09-16T19:52:57.000Z
2018-04-14T18:16:17.000Z
ucf_sub_catkin_ros/src/sub_utils/src/linefinder.py
RoboticsClubatUCF/RoboSub
47304c620f963a8762db57a7ed248d1df90190fb
[ "MIT" ]
8
2016-01-06T20:56:45.000Z
2017-02-26T02:49:17.000Z
import cv2 import numpy as np import time image = cv2.imread('test.png') image = cv2.flip(image,2) rows, cols,_ = image.shape M = cv2.getRotationMatrix2D((cols/2,rows/2),40,1) image = cv2.warpAffine(image,M,(cols,rows)) mask=cv2.inRange(image, np.array([0, 180, 255],dtype='uint8'),np.array([0, 180, 255],dtype='uint8')) _, cnts, _ = cv2.findContours(mask.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) t0 = time.time() size = np.size(mask) skel = np.zeros(mask.shape,np.uint8) element = cv2.getStructuringElement(cv2.MORPH_CROSS,(20,20)) done = False while( not done): eroded = cv2.erode(mask,element) temp = cv2.dilate(eroded,element) temp = cv2.subtract(mask,temp) skel = cv2.bitwise_or(skel,temp) img = eroded.copy() done = True zeros = size - cv2.countNonZero(mask) if zeros==size: break t1=time.time() print(t1-t0) lines = cv2.HoughLines(skel,1,np.pi/90,52) print(lines) if lines[0][0][1] > lines[1][0][1]: newPath = lines[0] else: newPath = lines[1] for i in range(len(lines)): for rho,theta in lines[1]: a = np.cos(theta) b = np.sin(theta) x0 = a*rho y0 = b*rho x1 = int(x0 + 1000*(-b)) y1 = int(y0 + 1000*(a)) x2 = int(x0 - 1000*(-b)) y2 = int(y0 - 1000*(a)) print(x1,y1,x2,y2) cv2.line(image,(x1,y1),(x2,y2),(0,0,255),2) cv2.imshow("skel",image) cv2.waitKey(0) cv2.destroyAllWindows()
24.561404
101
0.636429
25eab1876aab70b56db06fc2935158518e66f837
1,110
cs
C#
Assets/Scripts/Old/Tiles/CanGetHurtTile.cs
martindzejky/ld44
51c4fb97381f998658ce6b2565682439961f91e6
[ "BlueOak-1.0.0" ]
1
2019-05-01T12:16:31.000Z
2019-05-01T12:16:31.000Z
Assets/Scripts/Old/Tiles/CanGetHurtTile.cs
martindzejky/ld44
51c4fb97381f998658ce6b2565682439961f91e6
[ "BlueOak-1.0.0" ]
null
null
null
Assets/Scripts/Old/Tiles/CanGetHurtTile.cs
martindzejky/ld44
51c4fb97381f998658ce6b2565682439961f91e6
[ "BlueOak-1.0.0" ]
null
null
null
using UnityEngine; public class CanGetHurtTile : MonoBehaviour { public float maxLife = 100f; public float life = 100f; public bool isGoal = false; private SpriteRenderer spriteRenderer; private Color goalColor = new Color(.5f, 0, 0); public void Start() { this.spriteRenderer = this.GetComponent<SpriteRenderer>(); if (this.isGoal) { GlobalGameController.globalInstance.currentGoals.Add(this); } } public void Update() { if (this.isGoal) { var value = Mathf.Sin(Time.timeSinceLevelLoad * 3f) / 2f + .5f; this.spriteRenderer.color = Color.Lerp(Color.white, this.goalColor, value); } else { this.spriteRenderer.color = Color.Lerp(Color.gray, Color.white, this.life / this.maxLife); } if (this.life <= 0) { if (this.isGoal) { GlobalGameController.globalInstance.CompleteGoal(this); } ParticleController.instance.SpawnKillParticles(this.transform.position, 4); Destroy(this.gameObject); } } }
30
102
0.610811
421580dc50f212aaf5e8bd1e570efcca4e62a0b4
371
cs
C#
LNF/Reporting/IReportingClient.cs
lurienanofab/lnf
bdbe3042b33751d7f88a86a5aa5e2b33059bb475
[ "MIT" ]
1
2019-02-19T18:02:22.000Z
2019-02-19T18:02:22.000Z
LNF/Reporting/IReportingClient.cs
lurienanofab/lnf
bdbe3042b33751d7f88a86a5aa5e2b33059bb475
[ "MIT" ]
null
null
null
LNF/Reporting/IReportingClient.cs
lurienanofab/lnf
bdbe3042b33751d7f88a86a5aa5e2b33059bb475
[ "MIT" ]
null
null
null
namespace LNF.Reporting { public interface IReportingClient { int ClientID { get; set; } string Email { get; set; } string FName { get; set; } bool IsFinManager { get; set; } bool IsInternal { get; set; } bool IsManager { get; set; } string LName { get; set; } string UserName { get; set; } } }
26.5
39
0.541779
24d8c91554b58206fff645e758374daa1392cc08
311,682
sql
SQL
temp/sql/phpce.sql
chenguanyong/lnbei
70a4a1dff8a1a3cced6b48351aeef540efc60c43
[ "Apache-2.0" ]
1
2018-08-09T01:33:44.000Z
2018-08-09T01:33:44.000Z
temp/sql/phpce.sql
chenguanyong/lnbei
70a4a1dff8a1a3cced6b48351aeef540efc60c43
[ "Apache-2.0" ]
null
null
null
temp/sql/phpce.sql
chenguanyong/lnbei
70a4a1dff8a1a3cced6b48351aeef540efc60c43
[ "Apache-2.0" ]
1
2018-08-09T01:33:52.000Z
2018-08-09T01:33:52.000Z
/* Navicat MySQL Data Transfer Source Server : hy Source Server Version : 50715 Source Host : localhost:3306 Source Database : phpce Target Server Type : MYSQL Target Server Version : 50715 File Encoding : 65001 Date: 2018-01-06 11:24:24 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for ce_article -- ---------------------------- DROP TABLE IF EXISTS `ce_article`; CREATE TABLE `ce_article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` char(64) NOT NULL COMMENT '文章标题', `uid` int(11) DEFAULT '0' COMMENT '用户id(0表示管理员上传,大于0用户上传)', `image` char(128) DEFAULT NULL COMMENT '文章图片', `filepath` char(128) DEFAULT NULL COMMENT '文件地址', `downtype` tinyint(128) DEFAULT '0' COMMENT '下载类型,1是积分,2是金币', `filename` char(32) DEFAULT NULL COMMENT '文件名', `content` text NOT NULL COMMENT '文章内容', `descript` text COMMENT '文章描述', `relurl` char(128) DEFAULT NULL COMMENT '\n\n\n\n外部地址', `update_time` int(11) DEFAULT NULL, `create_time` int(11) DEFAULT NULL COMMENT '发布时间', `navid` int(11) DEFAULT NULL COMMENT '导航id', `cateid` int(11) NOT NULL DEFAULT '0' COMMENT '文章父分类', `catesubid` int(11) DEFAULT '0' COMMENT '文章子分类', `tags` char(32) DEFAULT NULL COMMENT '文章标签', `downcount` tinyint(4) DEFAULT '0' COMMENT '下载次数', `commentcount` int(11) DEFAULT '0' COMMENT '评论次数', `browsecount` int(11) DEFAULT '45' COMMENT '浏览次数', `type` int(11) DEFAULT '1' COMMENT '奖励类型(1是表示积分,2是金币)', `collectcount` int(11) DEFAULT '0' COMMENT '收藏人数', `integralcount` int(11) DEFAULT '0' COMMENT '积分', `goldcount` int(11) DEFAULT '0' COMMENT '金币', `isrecommend` tinyint(4) DEFAULT '0' COMMENT '是否推荐', `ishot` tinyint(4) DEFAULT '0' COMMENT '是否热门', `seodescription` char(200) DEFAULT NULL COMMENT '文章描述', `seokeywords` char(64) DEFAULT NULL COMMENT '文章关键词', `isstatus` tinyint(4) DEFAULT '0' COMMENT '是否审核', `companyID` int(11) DEFAULT NULL, `keyword` char(200) DEFAULT NULL, `cityID` int(11) DEFAULT NULL, `auth` char(50) DEFAULT NULL COMMENT '作者', `iscomment` tinyint(4) DEFAULT '0' COMMENT '是否评论', `ispublish` tinyint(4) DEFAULT NULL COMMENT '是否发布', `IsDelete` tinyint(4) DEFAULT '0', `IsForeign foreign` tinyint(4) DEFAULT '1' COMMENT '是否对外1:表示对外0:表示不对外', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=62 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_article -- ---------------------------- INSERT INTO `ce_article` VALUES ('61', 'ghdfgh', '0', 'ghd', 'dgh', '4', 'sfgsd', 'dfgsdf', 'sdfg', 'dfg', '232', '2323', '163', '163', '0', null, '0', '0', '45', '1', '0', '0', '0', '0', '0', null, null, '0', null, null, null, null, '0', null, '0', '1'); -- ---------------------------- -- Table structure for ce_articlecate -- ---------------------------- DROP TABLE IF EXISTS `ce_articlecate`; CREATE TABLE `ce_articlecate` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Name` char(100) DEFAULT NULL, `State` int(5) DEFAULT '0' COMMENT '状态', `Pid` int(11) DEFAULT '0', `CityID` int(11) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `Createtime` datetime DEFAULT NULL, `Updatetime` datetime DEFAULT NULL, `UserID` int(11) NOT NULL COMMENT '用户id', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_articlecate -- ---------------------------- INSERT INTO `ce_articlecate` VALUES ('1', '首页', '0', '0', '0', '0', '2017-06-14 14:45:55', '2017-06-14 14:45:58', '0'); INSERT INTO `ce_articlecate` VALUES ('2', '新闻', '0', '1', '0', '0', '2017-06-12 14:46:34', '2017-06-29 14:46:38', '0'); INSERT INTO `ce_articlecate` VALUES ('3', '历史', '0', '2', '0', '0', '2017-06-20 14:47:16', '2017-06-27 14:47:19', '0'); -- ---------------------------- -- Table structure for ce_article_auth -- ---------------------------- DROP TABLE IF EXISTS `ce_article_auth`; CREATE TABLE `ce_article_auth` ( `ID` int(11) NOT NULL, `ArticleID` int(11) DEFAULT NULL, `Foreign` tinytext COMMENT '对外的权限', `Inside` tinytext COMMENT '对内的权限', `Createtime` datetime DEFAULT NULL, `Updatetime` datetime DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `IsDelete` int(5) DEFAULT '0', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_article_auth -- ---------------------------- -- ---------------------------- -- Table structure for ce_article_cate -- ---------------------------- DROP TABLE IF EXISTS `ce_article_cate`; CREATE TABLE `ce_article_cate` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ArticleID` int(11) DEFAULT '2' COMMENT '导航id', `CateID` int(11) DEFAULT '0' COMMENT '上级菜单id', `createtime` datetime DEFAULT NULL COMMENT '创建时间', `updatetime` datetime DEFAULT NULL COMMENT '更新时间', `companyID` int(11) DEFAULT NULL, `cityID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=MyISAM AUTO_INCREMENT=164 DEFAULT CHARSET=gbk; -- ---------------------------- -- Records of ce_article_cate -- ---------------------------- INSERT INTO `ce_article_cate` VALUES ('163', '0', '0', '2017-06-04 16:39:07', '2017-06-04 16:39:10', '0', '0'); -- ---------------------------- -- Table structure for ce_auth_com_city_role -- ---------------------------- DROP TABLE IF EXISTS `ce_auth_com_city_role`; CREATE TABLE `ce_auth_com_city_role` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `CompanyID` int(11) unsigned DEFAULT NULL, `CityID` int(11) unsigned DEFAULT NULL, `Auth` tinytext, `RoleID` int(10) unsigned DEFAULT NULL, `IsAll` int(5) DEFAULT '0' COMMENT '是不是全部', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_auth_com_city_role -- ---------------------------- INSERT INTO `ce_auth_com_city_role` VALUES ('4', '1', '1', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50', '1', '0'); INSERT INTO `ce_auth_com_city_role` VALUES ('5', '1', '1', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50', '2', '0'); -- ---------------------------- -- Table structure for ce_auth_com_city_user -- ---------------------------- DROP TABLE IF EXISTS `ce_auth_com_city_user`; CREATE TABLE `ce_auth_com_city_user` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `CompanyID` int(11) unsigned DEFAULT NULL, `CityID` int(11) unsigned DEFAULT NULL, `Auth` tinytext, `UserID` int(10) unsigned DEFAULT NULL, `IsAll` int(5) DEFAULT '0' COMMENT '是否是全部', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_auth_com_city_user -- ---------------------------- INSERT INTO `ce_auth_com_city_user` VALUES ('1', '1', '1', '1,2,3,', '1', '0'); -- ---------------------------- -- Table structure for ce_city -- ---------------------------- DROP TABLE IF EXISTS `ce_city`; CREATE TABLE `ce_city` ( `ID` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `parentID` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `parentid` (`parentID`) ) ENGINE=MyISAM AUTO_INCREMENT=3360 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_city -- ---------------------------- INSERT INTO `ce_city` VALUES ('1', '中国', '0'); INSERT INTO `ce_city` VALUES ('2', '北京市', '1'); INSERT INTO `ce_city` VALUES ('3', '上海市', '1'); INSERT INTO `ce_city` VALUES ('4', '天津市', '1'); INSERT INTO `ce_city` VALUES ('5', '重庆市', '1'); INSERT INTO `ce_city` VALUES ('6', '河北省', '1'); INSERT INTO `ce_city` VALUES ('7', '山西省', '1'); INSERT INTO `ce_city` VALUES ('8', '内蒙古', '1'); INSERT INTO `ce_city` VALUES ('9', '辽宁省', '1'); INSERT INTO `ce_city` VALUES ('10', '吉林省', '1'); INSERT INTO `ce_city` VALUES ('11', '黑龙江省', '1'); INSERT INTO `ce_city` VALUES ('12', '江苏省', '1'); INSERT INTO `ce_city` VALUES ('13', '浙江省', '1'); INSERT INTO `ce_city` VALUES ('14', '安徽省', '1'); INSERT INTO `ce_city` VALUES ('15', '福建省', '1'); INSERT INTO `ce_city` VALUES ('16', '江西省', '1'); INSERT INTO `ce_city` VALUES ('17', '山东省', '1'); INSERT INTO `ce_city` VALUES ('18', '河南省', '1'); INSERT INTO `ce_city` VALUES ('19', '湖北省', '1'); INSERT INTO `ce_city` VALUES ('20', '湖南省', '1'); INSERT INTO `ce_city` VALUES ('21', '广东省', '1'); INSERT INTO `ce_city` VALUES ('22', '广西', '1'); INSERT INTO `ce_city` VALUES ('23', '海南省', '1'); INSERT INTO `ce_city` VALUES ('24', '四川省', '1'); INSERT INTO `ce_city` VALUES ('25', '贵州省', '1'); INSERT INTO `ce_city` VALUES ('26', '云南省', '1'); INSERT INTO `ce_city` VALUES ('27', '西藏', '1'); INSERT INTO `ce_city` VALUES ('28', '陕西省', '1'); INSERT INTO `ce_city` VALUES ('29', '甘肃省', '1'); INSERT INTO `ce_city` VALUES ('30', '青海省', '1'); INSERT INTO `ce_city` VALUES ('31', '宁夏', '1'); INSERT INTO `ce_city` VALUES ('32', '新疆', '1'); INSERT INTO `ce_city` VALUES ('33', '台湾省', '1'); INSERT INTO `ce_city` VALUES ('34', '香港', '1'); INSERT INTO `ce_city` VALUES ('35', '澳门', '1'); INSERT INTO `ce_city` VALUES ('36', '东城区', '2'); INSERT INTO `ce_city` VALUES ('37', '西城区', '2'); INSERT INTO `ce_city` VALUES ('38', '崇文区', '2'); INSERT INTO `ce_city` VALUES ('39', '宣武区', '2'); INSERT INTO `ce_city` VALUES ('40', '朝阳区', '2'); INSERT INTO `ce_city` VALUES ('41', '石景山区', '2'); INSERT INTO `ce_city` VALUES ('42', '海淀区', '2'); INSERT INTO `ce_city` VALUES ('43', '门头沟区', '2'); INSERT INTO `ce_city` VALUES ('44', '房山区', '2'); INSERT INTO `ce_city` VALUES ('45', '通州区', '2'); INSERT INTO `ce_city` VALUES ('46', '顺义区', '2'); INSERT INTO `ce_city` VALUES ('47', '昌平区', '2'); INSERT INTO `ce_city` VALUES ('48', '大兴区', '2'); INSERT INTO `ce_city` VALUES ('49', '怀柔区', '2'); INSERT INTO `ce_city` VALUES ('50', '平谷区', '2'); INSERT INTO `ce_city` VALUES ('51', '密云县', '2'); INSERT INTO `ce_city` VALUES ('52', '延庆县', '2'); INSERT INTO `ce_city` VALUES ('53', '黄浦区', '3'); INSERT INTO `ce_city` VALUES ('54', '卢湾区', '3'); INSERT INTO `ce_city` VALUES ('55', '徐汇区', '3'); INSERT INTO `ce_city` VALUES ('56', '长宁区', '3'); INSERT INTO `ce_city` VALUES ('57', '静安区', '3'); INSERT INTO `ce_city` VALUES ('58', '普陀区', '3'); INSERT INTO `ce_city` VALUES ('59', '闸北区', '3'); INSERT INTO `ce_city` VALUES ('60', '虹口区', '3'); INSERT INTO `ce_city` VALUES ('61', '杨浦区', '3'); INSERT INTO `ce_city` VALUES ('62', '闵行区', '3'); INSERT INTO `ce_city` VALUES ('63', '宝山区', '3'); INSERT INTO `ce_city` VALUES ('64', '嘉定区', '3'); INSERT INTO `ce_city` VALUES ('65', '浦东新区', '3'); INSERT INTO `ce_city` VALUES ('66', '金山区', '3'); INSERT INTO `ce_city` VALUES ('67', '松江区', '3'); INSERT INTO `ce_city` VALUES ('68', '青浦区', '3'); INSERT INTO `ce_city` VALUES ('69', '南汇区', '3'); INSERT INTO `ce_city` VALUES ('70', '奉贤区', '3'); INSERT INTO `ce_city` VALUES ('71', '崇明县', '3'); INSERT INTO `ce_city` VALUES ('72', '和平区', '4'); INSERT INTO `ce_city` VALUES ('73', '河东区', '4'); INSERT INTO `ce_city` VALUES ('74', '河西区', '4'); INSERT INTO `ce_city` VALUES ('75', '南开区', '4'); INSERT INTO `ce_city` VALUES ('76', '河北区', '4'); INSERT INTO `ce_city` VALUES ('77', '红桥区', '4'); INSERT INTO `ce_city` VALUES ('78', '塘沽区', '4'); INSERT INTO `ce_city` VALUES ('79', '汉沽区', '4'); INSERT INTO `ce_city` VALUES ('80', '大港区', '4'); INSERT INTO `ce_city` VALUES ('81', '东丽区', '4'); INSERT INTO `ce_city` VALUES ('82', '西青区', '4'); INSERT INTO `ce_city` VALUES ('83', '津南区', '4'); INSERT INTO `ce_city` VALUES ('84', '北辰区', '4'); INSERT INTO `ce_city` VALUES ('85', '武清区', '4'); INSERT INTO `ce_city` VALUES ('86', '宝坻区', '4'); INSERT INTO `ce_city` VALUES ('87', '宁河县', '4'); INSERT INTO `ce_city` VALUES ('88', '静海县', '4'); INSERT INTO `ce_city` VALUES ('89', '蓟县', '4'); INSERT INTO `ce_city` VALUES ('90', '万州区', '5'); INSERT INTO `ce_city` VALUES ('91', '涪陵区', '5'); INSERT INTO `ce_city` VALUES ('92', '渝中区', '5'); INSERT INTO `ce_city` VALUES ('93', '大渡口区', '5'); INSERT INTO `ce_city` VALUES ('94', '江北区', '5'); INSERT INTO `ce_city` VALUES ('95', '沙坪坝区', '5'); INSERT INTO `ce_city` VALUES ('96', '九龙坡区', '5'); INSERT INTO `ce_city` VALUES ('97', '南岸区', '5'); INSERT INTO `ce_city` VALUES ('98', '北碚区', '5'); INSERT INTO `ce_city` VALUES ('99', '万盛区', '5'); INSERT INTO `ce_city` VALUES ('100', '双桥区', '5'); INSERT INTO `ce_city` VALUES ('101', '渝北区', '5'); INSERT INTO `ce_city` VALUES ('102', '巴南区', '5'); INSERT INTO `ce_city` VALUES ('103', '黔江区', '5'); INSERT INTO `ce_city` VALUES ('104', '长寿区', '5'); INSERT INTO `ce_city` VALUES ('105', '綦江县', '5'); INSERT INTO `ce_city` VALUES ('106', '潼南县', '5'); INSERT INTO `ce_city` VALUES ('107', '铜梁县', '5'); INSERT INTO `ce_city` VALUES ('108', '大足县', '5'); INSERT INTO `ce_city` VALUES ('109', '荣昌县', '5'); INSERT INTO `ce_city` VALUES ('110', '璧山县', '5'); INSERT INTO `ce_city` VALUES ('111', '梁平县', '5'); INSERT INTO `ce_city` VALUES ('112', '城口县', '5'); INSERT INTO `ce_city` VALUES ('113', '丰都县', '5'); INSERT INTO `ce_city` VALUES ('114', '垫江县', '5'); INSERT INTO `ce_city` VALUES ('115', '武隆县', '5'); INSERT INTO `ce_city` VALUES ('116', '忠县', '5'); INSERT INTO `ce_city` VALUES ('117', '开县', '5'); INSERT INTO `ce_city` VALUES ('118', '云阳县', '5'); INSERT INTO `ce_city` VALUES ('119', '奉节县', '5'); INSERT INTO `ce_city` VALUES ('120', '巫山县', '5'); INSERT INTO `ce_city` VALUES ('121', '巫溪县', '5'); INSERT INTO `ce_city` VALUES ('122', '石柱县', '5'); INSERT INTO `ce_city` VALUES ('123', '秀山县', '5'); INSERT INTO `ce_city` VALUES ('124', '酉阳县', '5'); INSERT INTO `ce_city` VALUES ('125', '彭水县', '5'); INSERT INTO `ce_city` VALUES ('126', '江津区', '5'); INSERT INTO `ce_city` VALUES ('127', '合川区', '5'); INSERT INTO `ce_city` VALUES ('128', '永川区', '5'); INSERT INTO `ce_city` VALUES ('129', '南川区', '5'); INSERT INTO `ce_city` VALUES ('130', '石家庄市', '6'); INSERT INTO `ce_city` VALUES ('131', '唐山市', '6'); INSERT INTO `ce_city` VALUES ('132', '秦皇岛市', '6'); INSERT INTO `ce_city` VALUES ('133', '邯郸市', '6'); INSERT INTO `ce_city` VALUES ('134', '邢台市', '6'); INSERT INTO `ce_city` VALUES ('135', '保定市', '6'); INSERT INTO `ce_city` VALUES ('136', '张家口市', '6'); INSERT INTO `ce_city` VALUES ('137', '承德市', '6'); INSERT INTO `ce_city` VALUES ('138', '沧州市', '6'); INSERT INTO `ce_city` VALUES ('139', '廊坊市', '6'); INSERT INTO `ce_city` VALUES ('140', '衡水市', '6'); INSERT INTO `ce_city` VALUES ('141', '太原市', '7'); INSERT INTO `ce_city` VALUES ('142', '大同市', '7'); INSERT INTO `ce_city` VALUES ('143', '阳泉市', '7'); INSERT INTO `ce_city` VALUES ('144', '长治市', '7'); INSERT INTO `ce_city` VALUES ('145', '晋城市', '7'); INSERT INTO `ce_city` VALUES ('146', '朔州市', '7'); INSERT INTO `ce_city` VALUES ('147', '晋中市', '7'); INSERT INTO `ce_city` VALUES ('148', '运城市', '7'); INSERT INTO `ce_city` VALUES ('149', '忻州市', '7'); INSERT INTO `ce_city` VALUES ('150', '临汾市', '7'); INSERT INTO `ce_city` VALUES ('151', '吕梁市', '7'); INSERT INTO `ce_city` VALUES ('152', '呼和浩特市', '8'); INSERT INTO `ce_city` VALUES ('153', '包头市', '8'); INSERT INTO `ce_city` VALUES ('154', '乌海市', '8'); INSERT INTO `ce_city` VALUES ('155', '赤峰市', '8'); INSERT INTO `ce_city` VALUES ('156', '通辽市', '8'); INSERT INTO `ce_city` VALUES ('157', '鄂尔多斯市', '8'); INSERT INTO `ce_city` VALUES ('158', '呼伦贝尔市', '8'); INSERT INTO `ce_city` VALUES ('159', '巴彦淖尔市', '8'); INSERT INTO `ce_city` VALUES ('160', '乌兰察布市', '8'); INSERT INTO `ce_city` VALUES ('161', '兴安盟', '8'); INSERT INTO `ce_city` VALUES ('162', '锡林郭勒盟', '8'); INSERT INTO `ce_city` VALUES ('163', '阿拉善盟', '8'); INSERT INTO `ce_city` VALUES ('164', '沈阳市', '9'); INSERT INTO `ce_city` VALUES ('165', '大连市', '9'); INSERT INTO `ce_city` VALUES ('166', '鞍山市', '9'); INSERT INTO `ce_city` VALUES ('167', '抚顺市', '9'); INSERT INTO `ce_city` VALUES ('168', '本溪市', '9'); INSERT INTO `ce_city` VALUES ('169', '丹东市', '9'); INSERT INTO `ce_city` VALUES ('170', '锦州市', '9'); INSERT INTO `ce_city` VALUES ('171', '营口市', '9'); INSERT INTO `ce_city` VALUES ('172', '阜新市', '9'); INSERT INTO `ce_city` VALUES ('173', '辽阳市', '9'); INSERT INTO `ce_city` VALUES ('174', '盘锦市', '9'); INSERT INTO `ce_city` VALUES ('175', '铁岭市', '9'); INSERT INTO `ce_city` VALUES ('176', '朝阳市', '9'); INSERT INTO `ce_city` VALUES ('177', '葫芦岛市', '9'); INSERT INTO `ce_city` VALUES ('178', '长春市', '10'); INSERT INTO `ce_city` VALUES ('179', '吉林市', '10'); INSERT INTO `ce_city` VALUES ('180', '四平市', '10'); INSERT INTO `ce_city` VALUES ('181', '辽源市', '10'); INSERT INTO `ce_city` VALUES ('182', '通化市', '10'); INSERT INTO `ce_city` VALUES ('183', '白山市', '10'); INSERT INTO `ce_city` VALUES ('184', '松原市', '10'); INSERT INTO `ce_city` VALUES ('185', '白城市', '10'); INSERT INTO `ce_city` VALUES ('186', '延边', '10'); INSERT INTO `ce_city` VALUES ('187', '哈尔滨市', '11'); INSERT INTO `ce_city` VALUES ('188', '齐齐哈尔市', '11'); INSERT INTO `ce_city` VALUES ('189', '鸡西市', '11'); INSERT INTO `ce_city` VALUES ('190', '鹤岗市', '11'); INSERT INTO `ce_city` VALUES ('191', '双鸭山市', '11'); INSERT INTO `ce_city` VALUES ('192', '大庆市', '11'); INSERT INTO `ce_city` VALUES ('193', '伊春市', '11'); INSERT INTO `ce_city` VALUES ('194', '佳木斯市', '11'); INSERT INTO `ce_city` VALUES ('195', '七台河市', '11'); INSERT INTO `ce_city` VALUES ('196', '牡丹江市', '11'); INSERT INTO `ce_city` VALUES ('197', '黑河市', '11'); INSERT INTO `ce_city` VALUES ('198', '绥化市', '11'); INSERT INTO `ce_city` VALUES ('199', '大兴安岭地区', '11'); INSERT INTO `ce_city` VALUES ('200', '南京市', '12'); INSERT INTO `ce_city` VALUES ('201', '无锡市', '12'); INSERT INTO `ce_city` VALUES ('202', '徐州市', '12'); INSERT INTO `ce_city` VALUES ('203', '常州市', '12'); INSERT INTO `ce_city` VALUES ('204', '苏州市', '12'); INSERT INTO `ce_city` VALUES ('205', '南通市', '12'); INSERT INTO `ce_city` VALUES ('206', '连云港市', '12'); INSERT INTO `ce_city` VALUES ('207', '淮安市', '12'); INSERT INTO `ce_city` VALUES ('208', '盐城市', '12'); INSERT INTO `ce_city` VALUES ('209', '扬州市', '12'); INSERT INTO `ce_city` VALUES ('210', '镇江市', '12'); INSERT INTO `ce_city` VALUES ('211', '泰州市', '12'); INSERT INTO `ce_city` VALUES ('212', '宿迁市', '12'); INSERT INTO `ce_city` VALUES ('213', '杭州市', '13'); INSERT INTO `ce_city` VALUES ('214', '宁波市', '13'); INSERT INTO `ce_city` VALUES ('215', '温州市', '13'); INSERT INTO `ce_city` VALUES ('216', '嘉兴市', '13'); INSERT INTO `ce_city` VALUES ('217', '湖州市', '13'); INSERT INTO `ce_city` VALUES ('218', '绍兴市', '13'); INSERT INTO `ce_city` VALUES ('219', '金华市', '13'); INSERT INTO `ce_city` VALUES ('220', '衢州市', '13'); INSERT INTO `ce_city` VALUES ('221', '舟山市', '13'); INSERT INTO `ce_city` VALUES ('222', '台州市', '13'); INSERT INTO `ce_city` VALUES ('223', '丽水市', '13'); INSERT INTO `ce_city` VALUES ('224', '合肥市', '14'); INSERT INTO `ce_city` VALUES ('225', '芜湖市', '14'); INSERT INTO `ce_city` VALUES ('226', '蚌埠市', '14'); INSERT INTO `ce_city` VALUES ('227', '淮南市', '14'); INSERT INTO `ce_city` VALUES ('228', '马鞍山市', '14'); INSERT INTO `ce_city` VALUES ('229', '淮北市', '14'); INSERT INTO `ce_city` VALUES ('230', '铜陵市', '14'); INSERT INTO `ce_city` VALUES ('231', '安庆市', '14'); INSERT INTO `ce_city` VALUES ('232', '黄山市', '14'); INSERT INTO `ce_city` VALUES ('233', '滁州市', '14'); INSERT INTO `ce_city` VALUES ('234', '阜阳市', '14'); INSERT INTO `ce_city` VALUES ('235', '宿州市', '14'); INSERT INTO `ce_city` VALUES ('236', '巢湖市', '14'); INSERT INTO `ce_city` VALUES ('237', '六安市', '14'); INSERT INTO `ce_city` VALUES ('238', '亳州市', '14'); INSERT INTO `ce_city` VALUES ('239', '池州市', '14'); INSERT INTO `ce_city` VALUES ('240', '宣城市', '14'); INSERT INTO `ce_city` VALUES ('241', '福州市', '15'); INSERT INTO `ce_city` VALUES ('242', '厦门市', '15'); INSERT INTO `ce_city` VALUES ('243', '莆田市', '15'); INSERT INTO `ce_city` VALUES ('244', '三明市', '15'); INSERT INTO `ce_city` VALUES ('245', '泉州市', '15'); INSERT INTO `ce_city` VALUES ('246', '漳州市', '15'); INSERT INTO `ce_city` VALUES ('247', '南平市', '15'); INSERT INTO `ce_city` VALUES ('248', '龙岩市', '15'); INSERT INTO `ce_city` VALUES ('249', '宁德市', '15'); INSERT INTO `ce_city` VALUES ('250', '南昌市', '16'); INSERT INTO `ce_city` VALUES ('251', '景德镇市', '16'); INSERT INTO `ce_city` VALUES ('252', '萍乡市', '16'); INSERT INTO `ce_city` VALUES ('253', '九江市', '16'); INSERT INTO `ce_city` VALUES ('254', '新余市', '16'); INSERT INTO `ce_city` VALUES ('255', '鹰潭市', '16'); INSERT INTO `ce_city` VALUES ('256', '赣州市', '16'); INSERT INTO `ce_city` VALUES ('257', '吉安市', '16'); INSERT INTO `ce_city` VALUES ('258', '宜春市', '16'); INSERT INTO `ce_city` VALUES ('259', '抚州市', '16'); INSERT INTO `ce_city` VALUES ('260', '上饶市', '16'); INSERT INTO `ce_city` VALUES ('261', '济南市', '17'); INSERT INTO `ce_city` VALUES ('262', '青岛市', '17'); INSERT INTO `ce_city` VALUES ('263', '淄博市', '17'); INSERT INTO `ce_city` VALUES ('264', '枣庄市', '17'); INSERT INTO `ce_city` VALUES ('265', '东营市', '17'); INSERT INTO `ce_city` VALUES ('266', '烟台市', '17'); INSERT INTO `ce_city` VALUES ('267', '潍坊市', '17'); INSERT INTO `ce_city` VALUES ('268', '济宁市', '17'); INSERT INTO `ce_city` VALUES ('269', '泰安市', '17'); INSERT INTO `ce_city` VALUES ('270', '威海市', '17'); INSERT INTO `ce_city` VALUES ('271', '日照市', '17'); INSERT INTO `ce_city` VALUES ('272', '莱芜市', '17'); INSERT INTO `ce_city` VALUES ('273', '临沂市', '17'); INSERT INTO `ce_city` VALUES ('274', '德州市', '17'); INSERT INTO `ce_city` VALUES ('275', '聊城市', '17'); INSERT INTO `ce_city` VALUES ('276', '滨州市', '17'); INSERT INTO `ce_city` VALUES ('277', '荷泽市', '17'); INSERT INTO `ce_city` VALUES ('278', '郑州市', '18'); INSERT INTO `ce_city` VALUES ('279', '开封市', '18'); INSERT INTO `ce_city` VALUES ('280', '洛阳市', '18'); INSERT INTO `ce_city` VALUES ('281', '平顶山市', '18'); INSERT INTO `ce_city` VALUES ('282', '安阳市', '18'); INSERT INTO `ce_city` VALUES ('283', '鹤壁市', '18'); INSERT INTO `ce_city` VALUES ('284', '新乡市', '18'); INSERT INTO `ce_city` VALUES ('285', '焦作市', '18'); INSERT INTO `ce_city` VALUES ('286', '濮阳市', '18'); INSERT INTO `ce_city` VALUES ('287', '许昌市', '18'); INSERT INTO `ce_city` VALUES ('288', '漯河市', '18'); INSERT INTO `ce_city` VALUES ('289', '三门峡市', '18'); INSERT INTO `ce_city` VALUES ('290', '南阳市', '18'); INSERT INTO `ce_city` VALUES ('291', '商丘市', '18'); INSERT INTO `ce_city` VALUES ('292', '信阳市', '18'); INSERT INTO `ce_city` VALUES ('293', '周口市', '18'); INSERT INTO `ce_city` VALUES ('294', '驻马店市', '18'); INSERT INTO `ce_city` VALUES ('295', '武汉市', '19'); INSERT INTO `ce_city` VALUES ('296', '黄石市', '19'); INSERT INTO `ce_city` VALUES ('297', '十堰市', '19'); INSERT INTO `ce_city` VALUES ('298', '宜昌市', '19'); INSERT INTO `ce_city` VALUES ('299', '襄樊市', '19'); INSERT INTO `ce_city` VALUES ('300', '鄂州市', '19'); INSERT INTO `ce_city` VALUES ('301', '荆门市', '19'); INSERT INTO `ce_city` VALUES ('302', '孝感市', '19'); INSERT INTO `ce_city` VALUES ('303', '荆州市', '19'); INSERT INTO `ce_city` VALUES ('304', '黄冈市', '19'); INSERT INTO `ce_city` VALUES ('305', '咸宁市', '19'); INSERT INTO `ce_city` VALUES ('306', '随州市', '19'); INSERT INTO `ce_city` VALUES ('307', '恩施土家族苗族自治州', '19'); INSERT INTO `ce_city` VALUES ('308', '仙桃市', '19'); INSERT INTO `ce_city` VALUES ('309', '潜江市', '19'); INSERT INTO `ce_city` VALUES ('310', '天门市', '19'); INSERT INTO `ce_city` VALUES ('311', '神农架林区', '19'); INSERT INTO `ce_city` VALUES ('312', '长沙市', '20'); INSERT INTO `ce_city` VALUES ('313', '株洲市', '20'); INSERT INTO `ce_city` VALUES ('314', '湘潭市', '20'); INSERT INTO `ce_city` VALUES ('315', '衡阳市', '20'); INSERT INTO `ce_city` VALUES ('316', '邵阳市', '20'); INSERT INTO `ce_city` VALUES ('317', '岳阳市', '20'); INSERT INTO `ce_city` VALUES ('318', '常德市', '20'); INSERT INTO `ce_city` VALUES ('319', '张家界市', '20'); INSERT INTO `ce_city` VALUES ('320', '益阳市', '20'); INSERT INTO `ce_city` VALUES ('321', '郴州市', '20'); INSERT INTO `ce_city` VALUES ('322', '永州市', '20'); INSERT INTO `ce_city` VALUES ('323', '怀化市', '20'); INSERT INTO `ce_city` VALUES ('324', '娄底市', '20'); INSERT INTO `ce_city` VALUES ('325', '湘西土家族苗族自治州', '20'); INSERT INTO `ce_city` VALUES ('326', '广州市', '21'); INSERT INTO `ce_city` VALUES ('327', '韶关市', '21'); INSERT INTO `ce_city` VALUES ('328', '深圳市', '21'); INSERT INTO `ce_city` VALUES ('329', '珠海市', '21'); INSERT INTO `ce_city` VALUES ('330', '汕头市', '21'); INSERT INTO `ce_city` VALUES ('331', '佛山市', '21'); INSERT INTO `ce_city` VALUES ('332', '江门市', '21'); INSERT INTO `ce_city` VALUES ('333', '湛江市', '21'); INSERT INTO `ce_city` VALUES ('334', '茂名市', '21'); INSERT INTO `ce_city` VALUES ('335', '肇庆市', '21'); INSERT INTO `ce_city` VALUES ('336', '惠州市', '21'); INSERT INTO `ce_city` VALUES ('337', '梅州市', '21'); INSERT INTO `ce_city` VALUES ('338', '汕尾市', '21'); INSERT INTO `ce_city` VALUES ('339', '河源市', '21'); INSERT INTO `ce_city` VALUES ('340', '阳江市', '21'); INSERT INTO `ce_city` VALUES ('341', '清远市', '21'); INSERT INTO `ce_city` VALUES ('342', '东莞市', '21'); INSERT INTO `ce_city` VALUES ('343', '中山市', '21'); INSERT INTO `ce_city` VALUES ('344', '潮州市', '21'); INSERT INTO `ce_city` VALUES ('345', '揭阳市', '21'); INSERT INTO `ce_city` VALUES ('346', '云浮市', '21'); INSERT INTO `ce_city` VALUES ('347', '南宁市', '22'); INSERT INTO `ce_city` VALUES ('348', '柳州市', '22'); INSERT INTO `ce_city` VALUES ('349', '桂林市', '22'); INSERT INTO `ce_city` VALUES ('350', '梧州市', '22'); INSERT INTO `ce_city` VALUES ('351', '北海市', '22'); INSERT INTO `ce_city` VALUES ('352', '防城港市', '22'); INSERT INTO `ce_city` VALUES ('353', '钦州市', '22'); INSERT INTO `ce_city` VALUES ('354', '贵港市', '22'); INSERT INTO `ce_city` VALUES ('355', '玉林市', '22'); INSERT INTO `ce_city` VALUES ('356', '百色市', '22'); INSERT INTO `ce_city` VALUES ('357', '贺州市', '22'); INSERT INTO `ce_city` VALUES ('358', '河池市', '22'); INSERT INTO `ce_city` VALUES ('359', '来宾市', '22'); INSERT INTO `ce_city` VALUES ('360', '崇左市', '22'); INSERT INTO `ce_city` VALUES ('361', '海口市', '23'); INSERT INTO `ce_city` VALUES ('362', '三亚市', '23'); INSERT INTO `ce_city` VALUES ('363', '五指山市', '23'); INSERT INTO `ce_city` VALUES ('364', '琼海市', '23'); INSERT INTO `ce_city` VALUES ('365', '儋州市', '23'); INSERT INTO `ce_city` VALUES ('366', '文昌市', '23'); INSERT INTO `ce_city` VALUES ('367', '万宁市', '23'); INSERT INTO `ce_city` VALUES ('368', '东方市', '23'); INSERT INTO `ce_city` VALUES ('369', '定安县', '23'); INSERT INTO `ce_city` VALUES ('370', '屯昌县', '23'); INSERT INTO `ce_city` VALUES ('371', '澄迈县', '23'); INSERT INTO `ce_city` VALUES ('372', '临高县', '23'); INSERT INTO `ce_city` VALUES ('373', '白沙黎族自治县', '23'); INSERT INTO `ce_city` VALUES ('374', '昌江黎族自治县', '23'); INSERT INTO `ce_city` VALUES ('375', '乐东黎族自治县', '23'); INSERT INTO `ce_city` VALUES ('376', '陵水黎族自治县', '23'); INSERT INTO `ce_city` VALUES ('377', '保亭黎族苗族自治县', '23'); INSERT INTO `ce_city` VALUES ('378', '琼中黎族苗族自治县', '23'); INSERT INTO `ce_city` VALUES ('379', '西沙群岛', '23'); INSERT INTO `ce_city` VALUES ('380', '南沙群岛', '23'); INSERT INTO `ce_city` VALUES ('381', '中沙群岛的岛礁及其海域', '23'); INSERT INTO `ce_city` VALUES ('382', '成都市', '24'); INSERT INTO `ce_city` VALUES ('383', '自贡市', '24'); INSERT INTO `ce_city` VALUES ('384', '攀枝花市', '24'); INSERT INTO `ce_city` VALUES ('385', '泸州市', '24'); INSERT INTO `ce_city` VALUES ('386', '德阳市', '24'); INSERT INTO `ce_city` VALUES ('387', '绵阳市', '24'); INSERT INTO `ce_city` VALUES ('388', '广元市', '24'); INSERT INTO `ce_city` VALUES ('389', '遂宁市', '24'); INSERT INTO `ce_city` VALUES ('390', '内江市', '24'); INSERT INTO `ce_city` VALUES ('391', '乐山市', '24'); INSERT INTO `ce_city` VALUES ('392', '南充市', '24'); INSERT INTO `ce_city` VALUES ('393', '眉山市', '24'); INSERT INTO `ce_city` VALUES ('394', '宜宾市', '24'); INSERT INTO `ce_city` VALUES ('395', '广安市', '24'); INSERT INTO `ce_city` VALUES ('396', '达州市', '24'); INSERT INTO `ce_city` VALUES ('397', '雅安市', '24'); INSERT INTO `ce_city` VALUES ('398', '巴中市', '24'); INSERT INTO `ce_city` VALUES ('399', '资阳市', '24'); INSERT INTO `ce_city` VALUES ('400', '阿坝州', '24'); INSERT INTO `ce_city` VALUES ('401', '甘孜州', '24'); INSERT INTO `ce_city` VALUES ('402', '凉山州', '24'); INSERT INTO `ce_city` VALUES ('403', '贵阳市', '25'); INSERT INTO `ce_city` VALUES ('404', '六盘水市', '25'); INSERT INTO `ce_city` VALUES ('405', '遵义市', '25'); INSERT INTO `ce_city` VALUES ('406', '安顺市', '25'); INSERT INTO `ce_city` VALUES ('407', '铜仁地区', '25'); INSERT INTO `ce_city` VALUES ('408', '黔西南州', '25'); INSERT INTO `ce_city` VALUES ('409', '毕节地区', '25'); INSERT INTO `ce_city` VALUES ('410', '黔东南州', '25'); INSERT INTO `ce_city` VALUES ('411', '黔南州', '25'); INSERT INTO `ce_city` VALUES ('412', '昆明市', '26'); INSERT INTO `ce_city` VALUES ('413', '曲靖市', '26'); INSERT INTO `ce_city` VALUES ('414', '玉溪市', '26'); INSERT INTO `ce_city` VALUES ('415', '保山市', '26'); INSERT INTO `ce_city` VALUES ('416', '昭通市', '26'); INSERT INTO `ce_city` VALUES ('417', '丽江市', '26'); INSERT INTO `ce_city` VALUES ('418', '思茅市', '26'); INSERT INTO `ce_city` VALUES ('419', '临沧市', '26'); INSERT INTO `ce_city` VALUES ('420', '楚雄州', '26'); INSERT INTO `ce_city` VALUES ('421', '红河州', '26'); INSERT INTO `ce_city` VALUES ('422', '文山州', '26'); INSERT INTO `ce_city` VALUES ('423', '西双版纳', '26'); INSERT INTO `ce_city` VALUES ('424', '大理', '26'); INSERT INTO `ce_city` VALUES ('425', '德宏', '26'); INSERT INTO `ce_city` VALUES ('426', '怒江', '26'); INSERT INTO `ce_city` VALUES ('427', '迪庆', '26'); INSERT INTO `ce_city` VALUES ('428', '拉萨市', '27'); INSERT INTO `ce_city` VALUES ('429', '昌都', '27'); INSERT INTO `ce_city` VALUES ('430', '山南', '27'); INSERT INTO `ce_city` VALUES ('431', '日喀则', '27'); INSERT INTO `ce_city` VALUES ('432', '那曲', '27'); INSERT INTO `ce_city` VALUES ('433', '阿里', '27'); INSERT INTO `ce_city` VALUES ('434', '林芝', '27'); INSERT INTO `ce_city` VALUES ('435', '西安市', '28'); INSERT INTO `ce_city` VALUES ('436', '铜川市', '28'); INSERT INTO `ce_city` VALUES ('437', '宝鸡市', '28'); INSERT INTO `ce_city` VALUES ('438', '咸阳市', '28'); INSERT INTO `ce_city` VALUES ('439', '渭南市', '28'); INSERT INTO `ce_city` VALUES ('440', '延安市', '28'); INSERT INTO `ce_city` VALUES ('441', '汉中市', '28'); INSERT INTO `ce_city` VALUES ('442', '榆林市', '28'); INSERT INTO `ce_city` VALUES ('443', '安康市', '28'); INSERT INTO `ce_city` VALUES ('444', '商洛市', '28'); INSERT INTO `ce_city` VALUES ('445', '兰州市', '29'); INSERT INTO `ce_city` VALUES ('446', '嘉峪关市', '29'); INSERT INTO `ce_city` VALUES ('447', '金昌市', '29'); INSERT INTO `ce_city` VALUES ('448', '白银市', '29'); INSERT INTO `ce_city` VALUES ('449', '天水市', '29'); INSERT INTO `ce_city` VALUES ('450', '武威市', '29'); INSERT INTO `ce_city` VALUES ('451', '张掖市', '29'); INSERT INTO `ce_city` VALUES ('452', '平凉市', '29'); INSERT INTO `ce_city` VALUES ('453', '酒泉市', '29'); INSERT INTO `ce_city` VALUES ('454', '庆阳市', '29'); INSERT INTO `ce_city` VALUES ('455', '定西市', '29'); INSERT INTO `ce_city` VALUES ('456', '陇南市', '29'); INSERT INTO `ce_city` VALUES ('457', '临夏州', '29'); INSERT INTO `ce_city` VALUES ('458', '甘州', '29'); INSERT INTO `ce_city` VALUES ('459', '西宁市', '30'); INSERT INTO `ce_city` VALUES ('460', '海东地区', '30'); INSERT INTO `ce_city` VALUES ('461', '海州', '30'); INSERT INTO `ce_city` VALUES ('462', '黄南州', '30'); INSERT INTO `ce_city` VALUES ('463', '海南州', '30'); INSERT INTO `ce_city` VALUES ('464', '果洛州', '30'); INSERT INTO `ce_city` VALUES ('465', '玉树州', '30'); INSERT INTO `ce_city` VALUES ('466', '海西州', '30'); INSERT INTO `ce_city` VALUES ('467', '银川市', '31'); INSERT INTO `ce_city` VALUES ('468', '石嘴山市', '31'); INSERT INTO `ce_city` VALUES ('469', '吴忠市', '31'); INSERT INTO `ce_city` VALUES ('470', '固原市', '31'); INSERT INTO `ce_city` VALUES ('471', '中卫市', '31'); INSERT INTO `ce_city` VALUES ('472', '乌鲁木齐市', '32'); INSERT INTO `ce_city` VALUES ('473', '克拉玛依市', '32'); INSERT INTO `ce_city` VALUES ('474', '吐鲁番地区', '32'); INSERT INTO `ce_city` VALUES ('475', '哈密地区', '32'); INSERT INTO `ce_city` VALUES ('476', '昌吉州', '32'); INSERT INTO `ce_city` VALUES ('477', '博尔州', '32'); INSERT INTO `ce_city` VALUES ('478', '巴音郭楞州', '32'); INSERT INTO `ce_city` VALUES ('479', '阿克苏地区', '32'); INSERT INTO `ce_city` VALUES ('480', '克孜勒苏柯尔克孜自治州', '32'); INSERT INTO `ce_city` VALUES ('481', '喀什地区', '32'); INSERT INTO `ce_city` VALUES ('482', '和田地区', '32'); INSERT INTO `ce_city` VALUES ('483', '伊犁州', '32'); INSERT INTO `ce_city` VALUES ('484', '塔城地区', '32'); INSERT INTO `ce_city` VALUES ('485', '阿勒泰地区', '32'); INSERT INTO `ce_city` VALUES ('486', '石河子市', '32'); INSERT INTO `ce_city` VALUES ('487', '阿拉尔市', '32'); INSERT INTO `ce_city` VALUES ('488', '图木舒克市', '32'); INSERT INTO `ce_city` VALUES ('489', '五家渠市', '32'); INSERT INTO `ce_city` VALUES ('490', '台北市', '33'); INSERT INTO `ce_city` VALUES ('491', '高雄市', '33'); INSERT INTO `ce_city` VALUES ('492', '基隆市', '33'); INSERT INTO `ce_city` VALUES ('493', '新竹市', '33'); INSERT INTO `ce_city` VALUES ('494', '台中市', '33'); INSERT INTO `ce_city` VALUES ('495', '嘉义市', '33'); INSERT INTO `ce_city` VALUES ('496', '台南市', '33'); INSERT INTO `ce_city` VALUES ('497', '台北县', '33'); INSERT INTO `ce_city` VALUES ('498', '桃园县', '33'); INSERT INTO `ce_city` VALUES ('499', '新竹县', '33'); INSERT INTO `ce_city` VALUES ('500', '苗栗县', '33'); INSERT INTO `ce_city` VALUES ('501', '台中县', '33'); INSERT INTO `ce_city` VALUES ('502', '彰化县', '33'); INSERT INTO `ce_city` VALUES ('503', '南投县', '33'); INSERT INTO `ce_city` VALUES ('504', '云林县', '33'); INSERT INTO `ce_city` VALUES ('505', '嘉义县', '33'); INSERT INTO `ce_city` VALUES ('506', '台南县', '33'); INSERT INTO `ce_city` VALUES ('507', '高雄县', '33'); INSERT INTO `ce_city` VALUES ('508', '屏东县', '33'); INSERT INTO `ce_city` VALUES ('509', '宜兰县', '33'); INSERT INTO `ce_city` VALUES ('510', '花莲县', '33'); INSERT INTO `ce_city` VALUES ('511', '台东县', '33'); INSERT INTO `ce_city` VALUES ('512', '澎湖县', '33'); INSERT INTO `ce_city` VALUES ('513', '金门县', '33'); INSERT INTO `ce_city` VALUES ('514', '连江县', '33'); INSERT INTO `ce_city` VALUES ('515', '中西区', '34'); INSERT INTO `ce_city` VALUES ('516', '东区', '34'); INSERT INTO `ce_city` VALUES ('517', '南区', '34'); INSERT INTO `ce_city` VALUES ('518', '湾仔区', '34'); INSERT INTO `ce_city` VALUES ('519', '九龙城区', '34'); INSERT INTO `ce_city` VALUES ('520', '观塘区', '34'); INSERT INTO `ce_city` VALUES ('521', '深水埗区', '34'); INSERT INTO `ce_city` VALUES ('522', '黄大仙区', '34'); INSERT INTO `ce_city` VALUES ('523', '油尖旺区', '34'); INSERT INTO `ce_city` VALUES ('524', '离岛区', '34'); INSERT INTO `ce_city` VALUES ('525', '葵青区', '34'); INSERT INTO `ce_city` VALUES ('526', '北区', '34'); INSERT INTO `ce_city` VALUES ('527', '西贡区', '34'); INSERT INTO `ce_city` VALUES ('528', '沙田区', '34'); INSERT INTO `ce_city` VALUES ('529', '大埔区', '34'); INSERT INTO `ce_city` VALUES ('530', '荃湾区', '34'); INSERT INTO `ce_city` VALUES ('531', '屯门区', '34'); INSERT INTO `ce_city` VALUES ('532', '元朗区', '34'); INSERT INTO `ce_city` VALUES ('533', '花地玛堂区', '35'); INSERT INTO `ce_city` VALUES ('534', '市圣安多尼堂区', '35'); INSERT INTO `ce_city` VALUES ('535', '大堂区', '35'); INSERT INTO `ce_city` VALUES ('536', '望德堂区', '35'); INSERT INTO `ce_city` VALUES ('537', '风顺堂区', '35'); INSERT INTO `ce_city` VALUES ('538', '嘉模堂区', '35'); INSERT INTO `ce_city` VALUES ('539', '圣方济各堂区', '35'); INSERT INTO `ce_city` VALUES ('540', '长安区', '130'); INSERT INTO `ce_city` VALUES ('541', '桥东区', '130'); INSERT INTO `ce_city` VALUES ('542', '桥西区', '130'); INSERT INTO `ce_city` VALUES ('543', '新华区', '130'); INSERT INTO `ce_city` VALUES ('544', '井陉矿区', '130'); INSERT INTO `ce_city` VALUES ('545', '裕华区', '130'); INSERT INTO `ce_city` VALUES ('546', '井陉县', '130'); INSERT INTO `ce_city` VALUES ('547', '正定县', '130'); INSERT INTO `ce_city` VALUES ('548', '栾城县', '130'); INSERT INTO `ce_city` VALUES ('549', '行唐县', '130'); INSERT INTO `ce_city` VALUES ('550', '灵寿县', '130'); INSERT INTO `ce_city` VALUES ('551', '高邑县', '130'); INSERT INTO `ce_city` VALUES ('552', '深泽县', '130'); INSERT INTO `ce_city` VALUES ('553', '赞皇县', '130'); INSERT INTO `ce_city` VALUES ('554', '无极县', '130'); INSERT INTO `ce_city` VALUES ('555', '平山县', '130'); INSERT INTO `ce_city` VALUES ('556', '元氏县', '130'); INSERT INTO `ce_city` VALUES ('557', '赵县', '130'); INSERT INTO `ce_city` VALUES ('558', '辛集市', '130'); INSERT INTO `ce_city` VALUES ('559', '藁城市', '130'); INSERT INTO `ce_city` VALUES ('560', '晋州市', '130'); INSERT INTO `ce_city` VALUES ('561', '新乐市', '130'); INSERT INTO `ce_city` VALUES ('562', '鹿泉市', '130'); INSERT INTO `ce_city` VALUES ('563', '路南区', '131'); INSERT INTO `ce_city` VALUES ('564', '路北区', '131'); INSERT INTO `ce_city` VALUES ('565', '古冶区', '131'); INSERT INTO `ce_city` VALUES ('566', '开平区', '131'); INSERT INTO `ce_city` VALUES ('567', '丰南区', '131'); INSERT INTO `ce_city` VALUES ('568', '丰润区', '131'); INSERT INTO `ce_city` VALUES ('569', '滦县', '131'); INSERT INTO `ce_city` VALUES ('570', '滦南县', '131'); INSERT INTO `ce_city` VALUES ('571', '乐亭县', '131'); INSERT INTO `ce_city` VALUES ('572', '迁西县', '131'); INSERT INTO `ce_city` VALUES ('573', '玉田县', '131'); INSERT INTO `ce_city` VALUES ('574', '唐海县', '131'); INSERT INTO `ce_city` VALUES ('575', '遵化市', '131'); INSERT INTO `ce_city` VALUES ('576', '迁安市', '131'); INSERT INTO `ce_city` VALUES ('577', '海港区', '132'); INSERT INTO `ce_city` VALUES ('578', '山海关区', '132'); INSERT INTO `ce_city` VALUES ('579', '北戴河区', '132'); INSERT INTO `ce_city` VALUES ('580', '青龙县', '132'); INSERT INTO `ce_city` VALUES ('581', '昌黎县', '132'); INSERT INTO `ce_city` VALUES ('582', '抚宁县', '132'); INSERT INTO `ce_city` VALUES ('583', '卢龙县', '132'); INSERT INTO `ce_city` VALUES ('584', '邯山区', '133'); INSERT INTO `ce_city` VALUES ('585', '丛台区', '133'); INSERT INTO `ce_city` VALUES ('586', '复兴区', '133'); INSERT INTO `ce_city` VALUES ('587', '峰峰矿区', '133'); INSERT INTO `ce_city` VALUES ('588', '邯郸县', '133'); INSERT INTO `ce_city` VALUES ('589', '临漳县', '133'); INSERT INTO `ce_city` VALUES ('590', '成安县', '133'); INSERT INTO `ce_city` VALUES ('591', '大名县', '133'); INSERT INTO `ce_city` VALUES ('592', '涉县', '133'); INSERT INTO `ce_city` VALUES ('593', '磁县', '133'); INSERT INTO `ce_city` VALUES ('594', '肥乡县', '133'); INSERT INTO `ce_city` VALUES ('595', '永年县', '133'); INSERT INTO `ce_city` VALUES ('596', '邱县', '133'); INSERT INTO `ce_city` VALUES ('597', '鸡泽县', '133'); INSERT INTO `ce_city` VALUES ('598', '广平县', '133'); INSERT INTO `ce_city` VALUES ('599', '馆陶县', '133'); INSERT INTO `ce_city` VALUES ('600', '魏县', '133'); INSERT INTO `ce_city` VALUES ('601', '曲周县', '133'); INSERT INTO `ce_city` VALUES ('602', '武安市', '133'); INSERT INTO `ce_city` VALUES ('603', '桥东区', '134'); INSERT INTO `ce_city` VALUES ('604', '桥西区', '134'); INSERT INTO `ce_city` VALUES ('605', '邢台县', '134'); INSERT INTO `ce_city` VALUES ('606', '临城县', '134'); INSERT INTO `ce_city` VALUES ('607', '内丘县', '134'); INSERT INTO `ce_city` VALUES ('608', '柏乡县', '134'); INSERT INTO `ce_city` VALUES ('609', '隆尧县', '134'); INSERT INTO `ce_city` VALUES ('610', '任县', '134'); INSERT INTO `ce_city` VALUES ('611', '南和县', '134'); INSERT INTO `ce_city` VALUES ('612', '宁晋县', '134'); INSERT INTO `ce_city` VALUES ('613', '巨鹿县', '134'); INSERT INTO `ce_city` VALUES ('614', '新河县', '134'); INSERT INTO `ce_city` VALUES ('615', '广宗县', '134'); INSERT INTO `ce_city` VALUES ('616', '平乡县', '134'); INSERT INTO `ce_city` VALUES ('617', '威县', '134'); INSERT INTO `ce_city` VALUES ('618', '清河县', '134'); INSERT INTO `ce_city` VALUES ('619', '临西县', '134'); INSERT INTO `ce_city` VALUES ('620', '南宫市', '134'); INSERT INTO `ce_city` VALUES ('621', '沙河市', '134'); INSERT INTO `ce_city` VALUES ('622', '新市区', '135'); INSERT INTO `ce_city` VALUES ('623', '北市区', '135'); INSERT INTO `ce_city` VALUES ('624', '南市区', '135'); INSERT INTO `ce_city` VALUES ('625', '满城县', '135'); INSERT INTO `ce_city` VALUES ('626', '清苑县', '135'); INSERT INTO `ce_city` VALUES ('627', '涞水县', '135'); INSERT INTO `ce_city` VALUES ('628', '阜平县', '135'); INSERT INTO `ce_city` VALUES ('629', '徐水县', '135'); INSERT INTO `ce_city` VALUES ('630', '定兴县', '135'); INSERT INTO `ce_city` VALUES ('631', '唐县', '135'); INSERT INTO `ce_city` VALUES ('632', '高阳县', '135'); INSERT INTO `ce_city` VALUES ('633', '容城县', '135'); INSERT INTO `ce_city` VALUES ('634', '涞源县', '135'); INSERT INTO `ce_city` VALUES ('635', '望都县', '135'); INSERT INTO `ce_city` VALUES ('636', '安新县', '135'); INSERT INTO `ce_city` VALUES ('637', '易县', '135'); INSERT INTO `ce_city` VALUES ('638', '曲阳县', '135'); INSERT INTO `ce_city` VALUES ('639', '蠡县', '135'); INSERT INTO `ce_city` VALUES ('640', '顺平县', '135'); INSERT INTO `ce_city` VALUES ('641', '博野县', '135'); INSERT INTO `ce_city` VALUES ('642', '雄县', '135'); INSERT INTO `ce_city` VALUES ('643', '涿州市', '135'); INSERT INTO `ce_city` VALUES ('644', '定州市', '135'); INSERT INTO `ce_city` VALUES ('645', '安国市', '135'); INSERT INTO `ce_city` VALUES ('646', '高碑店市', '135'); INSERT INTO `ce_city` VALUES ('647', '桥东区', '136'); INSERT INTO `ce_city` VALUES ('648', '桥西区', '136'); INSERT INTO `ce_city` VALUES ('649', '宣化区', '136'); INSERT INTO `ce_city` VALUES ('650', '下花园区', '136'); INSERT INTO `ce_city` VALUES ('651', '宣化县', '136'); INSERT INTO `ce_city` VALUES ('652', '张北县', '136'); INSERT INTO `ce_city` VALUES ('653', '康保县', '136'); INSERT INTO `ce_city` VALUES ('654', '沽源县', '136'); INSERT INTO `ce_city` VALUES ('655', '尚义县', '136'); INSERT INTO `ce_city` VALUES ('656', '蔚县', '136'); INSERT INTO `ce_city` VALUES ('657', '阳原县', '136'); INSERT INTO `ce_city` VALUES ('658', '怀安县', '136'); INSERT INTO `ce_city` VALUES ('659', '万全县', '136'); INSERT INTO `ce_city` VALUES ('660', '怀来县', '136'); INSERT INTO `ce_city` VALUES ('661', '涿鹿县', '136'); INSERT INTO `ce_city` VALUES ('662', '赤城县', '136'); INSERT INTO `ce_city` VALUES ('663', '崇礼县', '136'); INSERT INTO `ce_city` VALUES ('664', '双桥区', '137'); INSERT INTO `ce_city` VALUES ('665', '双滦区', '137'); INSERT INTO `ce_city` VALUES ('666', '鹰手营子矿区', '137'); INSERT INTO `ce_city` VALUES ('667', '承德县', '137'); INSERT INTO `ce_city` VALUES ('668', '兴隆县', '137'); INSERT INTO `ce_city` VALUES ('669', '平泉县', '137'); INSERT INTO `ce_city` VALUES ('670', '滦平县', '137'); INSERT INTO `ce_city` VALUES ('671', '隆化县', '137'); INSERT INTO `ce_city` VALUES ('672', '丰宁县', '137'); INSERT INTO `ce_city` VALUES ('673', '宽城县', '137'); INSERT INTO `ce_city` VALUES ('674', '围场县', '137'); INSERT INTO `ce_city` VALUES ('675', '新华区', '138'); INSERT INTO `ce_city` VALUES ('676', '运河区', '138'); INSERT INTO `ce_city` VALUES ('677', '沧县', '138'); INSERT INTO `ce_city` VALUES ('678', '青县', '138'); INSERT INTO `ce_city` VALUES ('679', '东光县', '138'); INSERT INTO `ce_city` VALUES ('680', '海兴县', '138'); INSERT INTO `ce_city` VALUES ('681', '盐山县', '138'); INSERT INTO `ce_city` VALUES ('682', '肃宁县', '138'); INSERT INTO `ce_city` VALUES ('683', '南皮县', '138'); INSERT INTO `ce_city` VALUES ('684', '吴桥县', '138'); INSERT INTO `ce_city` VALUES ('685', '献县', '138'); INSERT INTO `ce_city` VALUES ('686', '孟村县', '138'); INSERT INTO `ce_city` VALUES ('687', '泊头市', '138'); INSERT INTO `ce_city` VALUES ('688', '任丘市', '138'); INSERT INTO `ce_city` VALUES ('689', '黄骅市', '138'); INSERT INTO `ce_city` VALUES ('690', '河间市', '138'); INSERT INTO `ce_city` VALUES ('691', '安次区', '139'); INSERT INTO `ce_city` VALUES ('692', '广阳区', '139'); INSERT INTO `ce_city` VALUES ('693', '固安县', '139'); INSERT INTO `ce_city` VALUES ('694', '永清县', '139'); INSERT INTO `ce_city` VALUES ('695', '香河县', '139'); INSERT INTO `ce_city` VALUES ('696', '大城县', '139'); INSERT INTO `ce_city` VALUES ('697', '文安县', '139'); INSERT INTO `ce_city` VALUES ('698', '大厂县', '139'); INSERT INTO `ce_city` VALUES ('699', '霸州市', '139'); INSERT INTO `ce_city` VALUES ('700', '三河市', '139'); INSERT INTO `ce_city` VALUES ('701', '桃城区', '140'); INSERT INTO `ce_city` VALUES ('702', '枣强县', '140'); INSERT INTO `ce_city` VALUES ('703', '武邑县', '140'); INSERT INTO `ce_city` VALUES ('704', '武强县', '140'); INSERT INTO `ce_city` VALUES ('705', '饶阳县', '140'); INSERT INTO `ce_city` VALUES ('706', '安平县', '140'); INSERT INTO `ce_city` VALUES ('707', '故城县', '140'); INSERT INTO `ce_city` VALUES ('708', '景县', '140'); INSERT INTO `ce_city` VALUES ('709', '阜城县', '140'); INSERT INTO `ce_city` VALUES ('710', '冀州市', '140'); INSERT INTO `ce_city` VALUES ('711', '深州市', '140'); INSERT INTO `ce_city` VALUES ('712', '小店区', '141'); INSERT INTO `ce_city` VALUES ('713', '迎泽区', '141'); INSERT INTO `ce_city` VALUES ('714', '杏花岭区', '141'); INSERT INTO `ce_city` VALUES ('715', '尖草坪区', '141'); INSERT INTO `ce_city` VALUES ('716', '万柏林区', '141'); INSERT INTO `ce_city` VALUES ('717', '晋源区', '141'); INSERT INTO `ce_city` VALUES ('718', '清徐县', '141'); INSERT INTO `ce_city` VALUES ('719', '阳曲县', '141'); INSERT INTO `ce_city` VALUES ('720', '娄烦县', '141'); INSERT INTO `ce_city` VALUES ('721', '古交市', '141'); INSERT INTO `ce_city` VALUES ('722', '城区', '142'); INSERT INTO `ce_city` VALUES ('723', '矿区', '142'); INSERT INTO `ce_city` VALUES ('724', '南郊区', '142'); INSERT INTO `ce_city` VALUES ('725', '新荣区', '142'); INSERT INTO `ce_city` VALUES ('726', '阳高县', '142'); INSERT INTO `ce_city` VALUES ('727', '天镇县', '142'); INSERT INTO `ce_city` VALUES ('728', '广灵县', '142'); INSERT INTO `ce_city` VALUES ('729', '灵丘县', '142'); INSERT INTO `ce_city` VALUES ('730', '浑源县', '142'); INSERT INTO `ce_city` VALUES ('731', '左云县', '142'); INSERT INTO `ce_city` VALUES ('732', '大同县', '142'); INSERT INTO `ce_city` VALUES ('733', '城区', '143'); INSERT INTO `ce_city` VALUES ('734', '矿区', '143'); INSERT INTO `ce_city` VALUES ('735', '郊区', '143'); INSERT INTO `ce_city` VALUES ('736', '平定县', '143'); INSERT INTO `ce_city` VALUES ('737', '盂县', '143'); INSERT INTO `ce_city` VALUES ('738', '城区', '144'); INSERT INTO `ce_city` VALUES ('739', '郊区', '144'); INSERT INTO `ce_city` VALUES ('740', '长治县', '144'); INSERT INTO `ce_city` VALUES ('741', '襄垣县', '144'); INSERT INTO `ce_city` VALUES ('742', '屯留县', '144'); INSERT INTO `ce_city` VALUES ('743', '平顺县', '144'); INSERT INTO `ce_city` VALUES ('744', '黎城县', '144'); INSERT INTO `ce_city` VALUES ('745', '壶关县', '144'); INSERT INTO `ce_city` VALUES ('746', '长子县', '144'); INSERT INTO `ce_city` VALUES ('747', '武乡县', '144'); INSERT INTO `ce_city` VALUES ('748', '沁县', '144'); INSERT INTO `ce_city` VALUES ('749', '沁源县', '144'); INSERT INTO `ce_city` VALUES ('750', '潞城市', '144'); INSERT INTO `ce_city` VALUES ('751', '城区', '145'); INSERT INTO `ce_city` VALUES ('752', '沁水县', '145'); INSERT INTO `ce_city` VALUES ('753', '阳城县', '145'); INSERT INTO `ce_city` VALUES ('754', '陵川县', '145'); INSERT INTO `ce_city` VALUES ('755', '泽州县', '145'); INSERT INTO `ce_city` VALUES ('756', '高平市', '145'); INSERT INTO `ce_city` VALUES ('757', '朔城区', '146'); INSERT INTO `ce_city` VALUES ('758', '平鲁区', '146'); INSERT INTO `ce_city` VALUES ('759', '山阴县', '146'); INSERT INTO `ce_city` VALUES ('760', '应县', '146'); INSERT INTO `ce_city` VALUES ('761', '右玉县', '146'); INSERT INTO `ce_city` VALUES ('762', '怀仁县', '146'); INSERT INTO `ce_city` VALUES ('763', '榆次区', '147'); INSERT INTO `ce_city` VALUES ('764', '榆社县', '147'); INSERT INTO `ce_city` VALUES ('765', '左权县', '147'); INSERT INTO `ce_city` VALUES ('766', '和顺县', '147'); INSERT INTO `ce_city` VALUES ('767', '昔阳县', '147'); INSERT INTO `ce_city` VALUES ('768', '寿阳县', '147'); INSERT INTO `ce_city` VALUES ('769', '太谷县', '147'); INSERT INTO `ce_city` VALUES ('770', '祁县', '147'); INSERT INTO `ce_city` VALUES ('771', '平遥县', '147'); INSERT INTO `ce_city` VALUES ('772', '灵石县', '147'); INSERT INTO `ce_city` VALUES ('773', '介休市', '147'); INSERT INTO `ce_city` VALUES ('774', '盐湖区', '148'); INSERT INTO `ce_city` VALUES ('775', '临猗县', '148'); INSERT INTO `ce_city` VALUES ('776', '万荣县', '148'); INSERT INTO `ce_city` VALUES ('777', '闻喜县', '148'); INSERT INTO `ce_city` VALUES ('778', '稷山县', '148'); INSERT INTO `ce_city` VALUES ('779', '新绛县', '148'); INSERT INTO `ce_city` VALUES ('780', '绛县', '148'); INSERT INTO `ce_city` VALUES ('781', '垣曲县', '148'); INSERT INTO `ce_city` VALUES ('782', '夏县', '148'); INSERT INTO `ce_city` VALUES ('783', '平陆县', '148'); INSERT INTO `ce_city` VALUES ('784', '芮城县', '148'); INSERT INTO `ce_city` VALUES ('785', '永济市', '148'); INSERT INTO `ce_city` VALUES ('786', '河津市', '148'); INSERT INTO `ce_city` VALUES ('787', '忻府区', '149'); INSERT INTO `ce_city` VALUES ('788', '定襄县', '149'); INSERT INTO `ce_city` VALUES ('789', '五台县', '149'); INSERT INTO `ce_city` VALUES ('790', '代县', '149'); INSERT INTO `ce_city` VALUES ('791', '繁峙县', '149'); INSERT INTO `ce_city` VALUES ('792', '宁武县', '149'); INSERT INTO `ce_city` VALUES ('793', '静乐县', '149'); INSERT INTO `ce_city` VALUES ('794', '神池县', '149'); INSERT INTO `ce_city` VALUES ('795', '五寨县', '149'); INSERT INTO `ce_city` VALUES ('796', '岢岚县', '149'); INSERT INTO `ce_city` VALUES ('797', '河曲县', '149'); INSERT INTO `ce_city` VALUES ('798', '保德县', '149'); INSERT INTO `ce_city` VALUES ('799', '偏关县', '149'); INSERT INTO `ce_city` VALUES ('800', '原平市', '149'); INSERT INTO `ce_city` VALUES ('801', '尧都区', '150'); INSERT INTO `ce_city` VALUES ('802', '曲沃县', '150'); INSERT INTO `ce_city` VALUES ('803', '翼城县', '150'); INSERT INTO `ce_city` VALUES ('804', '襄汾县', '150'); INSERT INTO `ce_city` VALUES ('805', '洪洞县', '150'); INSERT INTO `ce_city` VALUES ('806', '古县', '150'); INSERT INTO `ce_city` VALUES ('807', '安泽县', '150'); INSERT INTO `ce_city` VALUES ('808', '浮山县', '150'); INSERT INTO `ce_city` VALUES ('809', '吉县', '150'); INSERT INTO `ce_city` VALUES ('810', '乡宁县', '150'); INSERT INTO `ce_city` VALUES ('811', '大宁县', '150'); INSERT INTO `ce_city` VALUES ('812', '隰县', '150'); INSERT INTO `ce_city` VALUES ('813', '永和县', '150'); INSERT INTO `ce_city` VALUES ('814', '蒲县', '150'); INSERT INTO `ce_city` VALUES ('815', '汾西县', '150'); INSERT INTO `ce_city` VALUES ('816', '侯马市', '150'); INSERT INTO `ce_city` VALUES ('817', '霍州市', '150'); INSERT INTO `ce_city` VALUES ('818', '离石区', '151'); INSERT INTO `ce_city` VALUES ('819', '文水县', '151'); INSERT INTO `ce_city` VALUES ('820', '交城县', '151'); INSERT INTO `ce_city` VALUES ('821', '兴县', '151'); INSERT INTO `ce_city` VALUES ('822', '临县', '151'); INSERT INTO `ce_city` VALUES ('823', '柳林县', '151'); INSERT INTO `ce_city` VALUES ('824', '石楼县', '151'); INSERT INTO `ce_city` VALUES ('825', '岚县', '151'); INSERT INTO `ce_city` VALUES ('826', '方山县', '151'); INSERT INTO `ce_city` VALUES ('827', '中阳县', '151'); INSERT INTO `ce_city` VALUES ('828', '交口县', '151'); INSERT INTO `ce_city` VALUES ('829', '孝义市', '151'); INSERT INTO `ce_city` VALUES ('830', '汾阳市', '151'); INSERT INTO `ce_city` VALUES ('831', '新城区', '152'); INSERT INTO `ce_city` VALUES ('832', '回民区', '152'); INSERT INTO `ce_city` VALUES ('833', '玉泉区', '152'); INSERT INTO `ce_city` VALUES ('834', '赛罕区', '152'); INSERT INTO `ce_city` VALUES ('835', '土默特左旗', '152'); INSERT INTO `ce_city` VALUES ('836', '托克托县', '152'); INSERT INTO `ce_city` VALUES ('837', '和林格尔县', '152'); INSERT INTO `ce_city` VALUES ('838', '清水河县', '152'); INSERT INTO `ce_city` VALUES ('839', '武川县', '152'); INSERT INTO `ce_city` VALUES ('840', '东河区', '153'); INSERT INTO `ce_city` VALUES ('841', '昆都仑区', '153'); INSERT INTO `ce_city` VALUES ('842', '青山区', '153'); INSERT INTO `ce_city` VALUES ('843', '石拐区', '153'); INSERT INTO `ce_city` VALUES ('844', '白云矿区', '153'); INSERT INTO `ce_city` VALUES ('845', '九原区', '153'); INSERT INTO `ce_city` VALUES ('846', '土默特右旗', '153'); INSERT INTO `ce_city` VALUES ('847', '固阳县', '153'); INSERT INTO `ce_city` VALUES ('848', '达尔罕茂明安联合旗', '153'); INSERT INTO `ce_city` VALUES ('849', '海勃湾区', '154'); INSERT INTO `ce_city` VALUES ('850', '海南区', '154'); INSERT INTO `ce_city` VALUES ('851', '乌达区', '154'); INSERT INTO `ce_city` VALUES ('852', '红山区', '155'); INSERT INTO `ce_city` VALUES ('853', '元宝山区', '155'); INSERT INTO `ce_city` VALUES ('854', '松山区', '155'); INSERT INTO `ce_city` VALUES ('855', '阿鲁科尔沁旗', '155'); INSERT INTO `ce_city` VALUES ('856', '巴林左旗', '155'); INSERT INTO `ce_city` VALUES ('857', '巴林右旗', '155'); INSERT INTO `ce_city` VALUES ('858', '林西县', '155'); INSERT INTO `ce_city` VALUES ('859', '克什克腾旗', '155'); INSERT INTO `ce_city` VALUES ('860', '翁牛特旗', '155'); INSERT INTO `ce_city` VALUES ('861', '喀喇沁旗', '155'); INSERT INTO `ce_city` VALUES ('862', '宁城县', '155'); INSERT INTO `ce_city` VALUES ('863', '敖汉旗', '155'); INSERT INTO `ce_city` VALUES ('864', '科尔沁区', '156'); INSERT INTO `ce_city` VALUES ('865', '科尔沁左翼中旗', '156'); INSERT INTO `ce_city` VALUES ('866', '科尔沁左翼后旗', '156'); INSERT INTO `ce_city` VALUES ('867', '开鲁县', '156'); INSERT INTO `ce_city` VALUES ('868', '库伦旗', '156'); INSERT INTO `ce_city` VALUES ('869', '奈曼旗', '156'); INSERT INTO `ce_city` VALUES ('870', '扎鲁特旗', '156'); INSERT INTO `ce_city` VALUES ('871', '霍林郭勒市', '156'); INSERT INTO `ce_city` VALUES ('872', '东胜区', '157'); INSERT INTO `ce_city` VALUES ('873', '达拉特旗', '157'); INSERT INTO `ce_city` VALUES ('874', '准格尔旗', '157'); INSERT INTO `ce_city` VALUES ('875', '鄂托克前旗', '157'); INSERT INTO `ce_city` VALUES ('876', '鄂托克旗', '157'); INSERT INTO `ce_city` VALUES ('877', '杭锦旗', '157'); INSERT INTO `ce_city` VALUES ('878', '乌审旗', '157'); INSERT INTO `ce_city` VALUES ('879', '伊金霍洛旗', '157'); INSERT INTO `ce_city` VALUES ('880', '海拉尔区', '158'); INSERT INTO `ce_city` VALUES ('881', '阿荣旗', '158'); INSERT INTO `ce_city` VALUES ('882', '莫力达瓦达斡尔族自治旗', '158'); INSERT INTO `ce_city` VALUES ('883', '鄂伦春自治旗', '158'); INSERT INTO `ce_city` VALUES ('884', '鄂温克族自治旗', '158'); INSERT INTO `ce_city` VALUES ('885', '陈巴尔虎旗', '158'); INSERT INTO `ce_city` VALUES ('886', '新巴尔虎左旗', '158'); INSERT INTO `ce_city` VALUES ('887', '新巴尔虎右旗', '158'); INSERT INTO `ce_city` VALUES ('888', '满洲里市', '158'); INSERT INTO `ce_city` VALUES ('889', '牙克石市', '158'); INSERT INTO `ce_city` VALUES ('890', '扎兰屯市', '158'); INSERT INTO `ce_city` VALUES ('891', '额尔古纳市', '158'); INSERT INTO `ce_city` VALUES ('892', '根河市', '158'); INSERT INTO `ce_city` VALUES ('893', '临河区', '159'); INSERT INTO `ce_city` VALUES ('894', '五原县', '159'); INSERT INTO `ce_city` VALUES ('895', '磴口县', '159'); INSERT INTO `ce_city` VALUES ('896', '乌拉特前旗', '159'); INSERT INTO `ce_city` VALUES ('897', '乌拉特中旗', '159'); INSERT INTO `ce_city` VALUES ('898', '乌拉特后旗', '159'); INSERT INTO `ce_city` VALUES ('899', '杭锦后旗', '159'); INSERT INTO `ce_city` VALUES ('900', '集宁区', '160'); INSERT INTO `ce_city` VALUES ('901', '卓资县', '160'); INSERT INTO `ce_city` VALUES ('902', '化德县', '160'); INSERT INTO `ce_city` VALUES ('903', '商都县', '160'); INSERT INTO `ce_city` VALUES ('904', '兴和县', '160'); INSERT INTO `ce_city` VALUES ('905', '凉城县', '160'); INSERT INTO `ce_city` VALUES ('906', '察哈尔右翼前旗', '160'); INSERT INTO `ce_city` VALUES ('907', '察哈尔右翼中旗', '160'); INSERT INTO `ce_city` VALUES ('908', '察哈尔右翼后旗', '160'); INSERT INTO `ce_city` VALUES ('909', '四子王旗', '160'); INSERT INTO `ce_city` VALUES ('910', '丰镇市', '160'); INSERT INTO `ce_city` VALUES ('911', '乌兰浩特市', '161'); INSERT INTO `ce_city` VALUES ('912', '阿尔山市', '161'); INSERT INTO `ce_city` VALUES ('913', '科尔沁右翼前旗', '161'); INSERT INTO `ce_city` VALUES ('914', '科尔沁右翼中旗', '161'); INSERT INTO `ce_city` VALUES ('915', '扎赉特旗', '161'); INSERT INTO `ce_city` VALUES ('916', '突泉县', '161'); INSERT INTO `ce_city` VALUES ('917', '二连浩特市', '162'); INSERT INTO `ce_city` VALUES ('918', '锡林浩特市', '162'); INSERT INTO `ce_city` VALUES ('919', '阿巴嘎旗', '162'); INSERT INTO `ce_city` VALUES ('920', '苏尼特左旗', '162'); INSERT INTO `ce_city` VALUES ('921', '苏尼特右旗', '162'); INSERT INTO `ce_city` VALUES ('922', '东乌珠穆沁旗', '162'); INSERT INTO `ce_city` VALUES ('923', '西乌珠穆沁旗', '162'); INSERT INTO `ce_city` VALUES ('924', '太仆寺旗', '162'); INSERT INTO `ce_city` VALUES ('925', '镶黄旗', '162'); INSERT INTO `ce_city` VALUES ('926', '正镶白旗', '162'); INSERT INTO `ce_city` VALUES ('927', '正蓝旗', '162'); INSERT INTO `ce_city` VALUES ('928', '多伦县', '162'); INSERT INTO `ce_city` VALUES ('929', '阿拉善左旗', '163'); INSERT INTO `ce_city` VALUES ('930', '阿拉善右旗', '163'); INSERT INTO `ce_city` VALUES ('931', '额济纳旗', '163'); INSERT INTO `ce_city` VALUES ('932', '和平区', '164'); INSERT INTO `ce_city` VALUES ('933', '沈河区', '164'); INSERT INTO `ce_city` VALUES ('934', '大东区', '164'); INSERT INTO `ce_city` VALUES ('935', '皇姑区', '164'); INSERT INTO `ce_city` VALUES ('936', '铁西区', '164'); INSERT INTO `ce_city` VALUES ('937', '苏家屯区', '164'); INSERT INTO `ce_city` VALUES ('938', '东陵区', '164'); INSERT INTO `ce_city` VALUES ('939', '新城子区', '164'); INSERT INTO `ce_city` VALUES ('940', '于洪区', '164'); INSERT INTO `ce_city` VALUES ('941', '辽中县', '164'); INSERT INTO `ce_city` VALUES ('942', '康平县', '164'); INSERT INTO `ce_city` VALUES ('943', '法库县', '164'); INSERT INTO `ce_city` VALUES ('944', '新民市', '164'); INSERT INTO `ce_city` VALUES ('945', '中山区', '165'); INSERT INTO `ce_city` VALUES ('946', '西岗区', '165'); INSERT INTO `ce_city` VALUES ('947', '沙河口区', '165'); INSERT INTO `ce_city` VALUES ('948', '甘井子区', '165'); INSERT INTO `ce_city` VALUES ('949', '旅顺口区', '165'); INSERT INTO `ce_city` VALUES ('950', '金州区', '165'); INSERT INTO `ce_city` VALUES ('951', '长海县', '165'); INSERT INTO `ce_city` VALUES ('952', '瓦房店市', '165'); INSERT INTO `ce_city` VALUES ('953', '普兰店市', '165'); INSERT INTO `ce_city` VALUES ('954', '庄河市', '165'); INSERT INTO `ce_city` VALUES ('955', '铁东区', '166'); INSERT INTO `ce_city` VALUES ('956', '铁西区', '166'); INSERT INTO `ce_city` VALUES ('957', '立山区', '166'); INSERT INTO `ce_city` VALUES ('958', '千山区', '166'); INSERT INTO `ce_city` VALUES ('959', '台安县', '166'); INSERT INTO `ce_city` VALUES ('960', '岫岩满族自治县', '166'); INSERT INTO `ce_city` VALUES ('961', '海城市', '166'); INSERT INTO `ce_city` VALUES ('962', '新抚区', '167'); INSERT INTO `ce_city` VALUES ('963', '东洲区', '167'); INSERT INTO `ce_city` VALUES ('964', '望花区', '167'); INSERT INTO `ce_city` VALUES ('965', '顺城区', '167'); INSERT INTO `ce_city` VALUES ('966', '抚顺县', '167'); INSERT INTO `ce_city` VALUES ('967', '新宾满族自治县', '167'); INSERT INTO `ce_city` VALUES ('968', '清原满族自治县', '167'); INSERT INTO `ce_city` VALUES ('969', '平山区', '168'); INSERT INTO `ce_city` VALUES ('970', '溪湖区', '168'); INSERT INTO `ce_city` VALUES ('971', '明山区', '168'); INSERT INTO `ce_city` VALUES ('972', '南芬区', '168'); INSERT INTO `ce_city` VALUES ('973', '本溪满族自治县', '168'); INSERT INTO `ce_city` VALUES ('974', '桓仁满族自治县', '168'); INSERT INTO `ce_city` VALUES ('975', '元宝区', '169'); INSERT INTO `ce_city` VALUES ('976', '振兴区', '169'); INSERT INTO `ce_city` VALUES ('977', '振安区', '169'); INSERT INTO `ce_city` VALUES ('978', '宽甸满族自治县', '169'); INSERT INTO `ce_city` VALUES ('979', '东港市', '169'); INSERT INTO `ce_city` VALUES ('980', '凤城市', '169'); INSERT INTO `ce_city` VALUES ('981', '古塔区', '170'); INSERT INTO `ce_city` VALUES ('982', '凌河区', '170'); INSERT INTO `ce_city` VALUES ('983', '太和区', '170'); INSERT INTO `ce_city` VALUES ('984', '黑山县', '170'); INSERT INTO `ce_city` VALUES ('985', '义县', '170'); INSERT INTO `ce_city` VALUES ('986', '凌海市', '170'); INSERT INTO `ce_city` VALUES ('987', '北镇市', '170'); INSERT INTO `ce_city` VALUES ('988', '站前区', '171'); INSERT INTO `ce_city` VALUES ('989', '西市区', '171'); INSERT INTO `ce_city` VALUES ('990', '鲅鱼圈区', '171'); INSERT INTO `ce_city` VALUES ('991', '老边区', '171'); INSERT INTO `ce_city` VALUES ('992', '盖州市', '171'); INSERT INTO `ce_city` VALUES ('993', '大石桥市', '171'); INSERT INTO `ce_city` VALUES ('994', '海州区', '172'); INSERT INTO `ce_city` VALUES ('995', '新邱区', '172'); INSERT INTO `ce_city` VALUES ('996', '太平区', '172'); INSERT INTO `ce_city` VALUES ('997', '清河门区', '172'); INSERT INTO `ce_city` VALUES ('998', '细河区', '172'); INSERT INTO `ce_city` VALUES ('999', '阜新蒙古族自治县', '172'); INSERT INTO `ce_city` VALUES ('1000', '彰武县', '172'); INSERT INTO `ce_city` VALUES ('1001', '白塔区', '173'); INSERT INTO `ce_city` VALUES ('1002', '文圣区', '173'); INSERT INTO `ce_city` VALUES ('1003', '宏伟区', '173'); INSERT INTO `ce_city` VALUES ('1004', '弓长岭区', '173'); INSERT INTO `ce_city` VALUES ('1005', '太子河区', '173'); INSERT INTO `ce_city` VALUES ('1006', '辽阳县', '173'); INSERT INTO `ce_city` VALUES ('1007', '灯塔市', '173'); INSERT INTO `ce_city` VALUES ('1008', '双台子区', '174'); INSERT INTO `ce_city` VALUES ('1009', '兴隆台区', '174'); INSERT INTO `ce_city` VALUES ('1010', '大洼县', '174'); INSERT INTO `ce_city` VALUES ('1011', '盘山县', '174'); INSERT INTO `ce_city` VALUES ('1012', '银州区', '175'); INSERT INTO `ce_city` VALUES ('1013', '清河区', '175'); INSERT INTO `ce_city` VALUES ('1014', '铁岭县', '175'); INSERT INTO `ce_city` VALUES ('1015', '西丰县', '175'); INSERT INTO `ce_city` VALUES ('1016', '昌图县', '175'); INSERT INTO `ce_city` VALUES ('1017', '调兵山市', '175'); INSERT INTO `ce_city` VALUES ('1018', '开原市', '175'); INSERT INTO `ce_city` VALUES ('1019', '双塔区', '176'); INSERT INTO `ce_city` VALUES ('1020', '龙城区', '176'); INSERT INTO `ce_city` VALUES ('1021', '朝阳县', '176'); INSERT INTO `ce_city` VALUES ('1022', '建平县', '176'); INSERT INTO `ce_city` VALUES ('1023', '喀喇沁左翼蒙古族自治县', '176'); INSERT INTO `ce_city` VALUES ('1024', '北票市', '176'); INSERT INTO `ce_city` VALUES ('1025', '凌源市', '176'); INSERT INTO `ce_city` VALUES ('1026', '连山区', '177'); INSERT INTO `ce_city` VALUES ('1027', '龙港区', '177'); INSERT INTO `ce_city` VALUES ('1028', '南票区', '177'); INSERT INTO `ce_city` VALUES ('1029', '绥中县', '177'); INSERT INTO `ce_city` VALUES ('1030', '建昌县', '177'); INSERT INTO `ce_city` VALUES ('1031', '兴城市', '177'); INSERT INTO `ce_city` VALUES ('1032', '南关区', '178'); INSERT INTO `ce_city` VALUES ('1033', '宽城区', '178'); INSERT INTO `ce_city` VALUES ('1034', '朝阳区', '178'); INSERT INTO `ce_city` VALUES ('1035', '二道区', '178'); INSERT INTO `ce_city` VALUES ('1036', '绿园区', '178'); INSERT INTO `ce_city` VALUES ('1037', '双阳区', '178'); INSERT INTO `ce_city` VALUES ('1038', '农安县', '178'); INSERT INTO `ce_city` VALUES ('1039', '九台市', '178'); INSERT INTO `ce_city` VALUES ('1040', '榆树市', '178'); INSERT INTO `ce_city` VALUES ('1041', '德惠市', '178'); INSERT INTO `ce_city` VALUES ('1042', '昌邑区', '179'); INSERT INTO `ce_city` VALUES ('1043', '龙潭区', '179'); INSERT INTO `ce_city` VALUES ('1044', '船营区', '179'); INSERT INTO `ce_city` VALUES ('1045', '丰满区', '179'); INSERT INTO `ce_city` VALUES ('1046', '永吉县', '179'); INSERT INTO `ce_city` VALUES ('1047', '蛟河市', '179'); INSERT INTO `ce_city` VALUES ('1048', '桦甸市', '179'); INSERT INTO `ce_city` VALUES ('1049', '舒兰市', '179'); INSERT INTO `ce_city` VALUES ('1050', '磐石市', '179'); INSERT INTO `ce_city` VALUES ('1051', '铁西区', '180'); INSERT INTO `ce_city` VALUES ('1052', '铁东区', '180'); INSERT INTO `ce_city` VALUES ('1053', '梨树县', '180'); INSERT INTO `ce_city` VALUES ('1054', '伊通满族自治县', '180'); INSERT INTO `ce_city` VALUES ('1055', '公主岭市', '180'); INSERT INTO `ce_city` VALUES ('1056', '双辽市', '180'); INSERT INTO `ce_city` VALUES ('1057', '龙山区', '181'); INSERT INTO `ce_city` VALUES ('1058', '西安区', '181'); INSERT INTO `ce_city` VALUES ('1059', '东丰县', '181'); INSERT INTO `ce_city` VALUES ('1060', '东辽县', '181'); INSERT INTO `ce_city` VALUES ('1061', '东昌区', '182'); INSERT INTO `ce_city` VALUES ('1062', '二道江区', '182'); INSERT INTO `ce_city` VALUES ('1063', '通化县', '182'); INSERT INTO `ce_city` VALUES ('1064', '辉南县', '182'); INSERT INTO `ce_city` VALUES ('1065', '柳河县', '182'); INSERT INTO `ce_city` VALUES ('1066', '梅河口市', '182'); INSERT INTO `ce_city` VALUES ('1067', '集安市', '182'); INSERT INTO `ce_city` VALUES ('1068', '八道江区', '183'); INSERT INTO `ce_city` VALUES ('1069', '抚松县', '183'); INSERT INTO `ce_city` VALUES ('1070', '靖宇县', '183'); INSERT INTO `ce_city` VALUES ('1071', '长白朝鲜族自治县', '183'); INSERT INTO `ce_city` VALUES ('1072', '江源县', '183'); INSERT INTO `ce_city` VALUES ('1073', '临江市', '183'); INSERT INTO `ce_city` VALUES ('1074', '宁江区', '184'); INSERT INTO `ce_city` VALUES ('1075', '前郭尔罗斯蒙古族自治县', '184'); INSERT INTO `ce_city` VALUES ('1076', '长岭县', '184'); INSERT INTO `ce_city` VALUES ('1077', '乾安县', '184'); INSERT INTO `ce_city` VALUES ('1078', '扶余县', '184'); INSERT INTO `ce_city` VALUES ('1079', '洮北区', '185'); INSERT INTO `ce_city` VALUES ('1080', '镇赉县', '185'); INSERT INTO `ce_city` VALUES ('1081', '通榆县', '185'); INSERT INTO `ce_city` VALUES ('1082', '洮南市', '185'); INSERT INTO `ce_city` VALUES ('1083', '大安市', '185'); INSERT INTO `ce_city` VALUES ('1084', '延吉市', '186'); INSERT INTO `ce_city` VALUES ('1085', '图们市', '186'); INSERT INTO `ce_city` VALUES ('1086', '敦化市', '186'); INSERT INTO `ce_city` VALUES ('1087', '珲春市', '186'); INSERT INTO `ce_city` VALUES ('1088', '龙井市', '186'); INSERT INTO `ce_city` VALUES ('1089', '和龙市', '186'); INSERT INTO `ce_city` VALUES ('1090', '汪清县', '186'); INSERT INTO `ce_city` VALUES ('1091', '安图县', '186'); INSERT INTO `ce_city` VALUES ('1092', '道里区', '187'); INSERT INTO `ce_city` VALUES ('1093', '南岗区', '187'); INSERT INTO `ce_city` VALUES ('1094', '道外区', '187'); INSERT INTO `ce_city` VALUES ('1095', '香坊区', '187'); INSERT INTO `ce_city` VALUES ('1096', '动力区', '187'); INSERT INTO `ce_city` VALUES ('1097', '平房区', '187'); INSERT INTO `ce_city` VALUES ('1098', '松北区', '187'); INSERT INTO `ce_city` VALUES ('1099', '呼兰区', '187'); INSERT INTO `ce_city` VALUES ('1100', '依兰县', '187'); INSERT INTO `ce_city` VALUES ('1101', '方正县', '187'); INSERT INTO `ce_city` VALUES ('1102', '宾县', '187'); INSERT INTO `ce_city` VALUES ('1103', '巴彦县', '187'); INSERT INTO `ce_city` VALUES ('1104', '木兰县', '187'); INSERT INTO `ce_city` VALUES ('1105', '通河县', '187'); INSERT INTO `ce_city` VALUES ('1106', '延寿县', '187'); INSERT INTO `ce_city` VALUES ('1107', '阿城市', '187'); INSERT INTO `ce_city` VALUES ('1108', '双城市', '187'); INSERT INTO `ce_city` VALUES ('1109', '尚志市', '187'); INSERT INTO `ce_city` VALUES ('1110', '五常市', '187'); INSERT INTO `ce_city` VALUES ('1111', '龙沙区', '188'); INSERT INTO `ce_city` VALUES ('1112', '建华区', '188'); INSERT INTO `ce_city` VALUES ('1113', '铁锋区', '188'); INSERT INTO `ce_city` VALUES ('1114', '昂昂溪区', '188'); INSERT INTO `ce_city` VALUES ('1115', '富拉尔基区', '188'); INSERT INTO `ce_city` VALUES ('1116', '碾子山区', '188'); INSERT INTO `ce_city` VALUES ('1117', '梅里斯达斡尔族区', '188'); INSERT INTO `ce_city` VALUES ('1118', '龙江县', '188'); INSERT INTO `ce_city` VALUES ('1119', '依安县', '188'); INSERT INTO `ce_city` VALUES ('1120', '泰来县', '188'); INSERT INTO `ce_city` VALUES ('1121', '甘南县', '188'); INSERT INTO `ce_city` VALUES ('1122', '富裕县', '188'); INSERT INTO `ce_city` VALUES ('1123', '克山县', '188'); INSERT INTO `ce_city` VALUES ('1124', '克东县', '188'); INSERT INTO `ce_city` VALUES ('1125', '拜泉县', '188'); INSERT INTO `ce_city` VALUES ('1126', '讷河市', '188'); INSERT INTO `ce_city` VALUES ('1127', '鸡冠区', '189'); INSERT INTO `ce_city` VALUES ('1128', '恒山区', '189'); INSERT INTO `ce_city` VALUES ('1129', '滴道区', '189'); INSERT INTO `ce_city` VALUES ('1130', '梨树区', '189'); INSERT INTO `ce_city` VALUES ('1131', '城子河区', '189'); INSERT INTO `ce_city` VALUES ('1132', '麻山区', '189'); INSERT INTO `ce_city` VALUES ('1133', '鸡东县', '189'); INSERT INTO `ce_city` VALUES ('1134', '虎林市', '189'); INSERT INTO `ce_city` VALUES ('1135', '密山市', '189'); INSERT INTO `ce_city` VALUES ('1136', '向阳区', '190'); INSERT INTO `ce_city` VALUES ('1137', '工农区', '190'); INSERT INTO `ce_city` VALUES ('1138', '南山区', '190'); INSERT INTO `ce_city` VALUES ('1139', '兴安区', '190'); INSERT INTO `ce_city` VALUES ('1140', '东山区', '190'); INSERT INTO `ce_city` VALUES ('1141', '兴山区', '190'); INSERT INTO `ce_city` VALUES ('1142', '萝北县', '190'); INSERT INTO `ce_city` VALUES ('1143', '绥滨县', '190'); INSERT INTO `ce_city` VALUES ('1144', '尖山区', '191'); INSERT INTO `ce_city` VALUES ('1145', '岭东区', '191'); INSERT INTO `ce_city` VALUES ('1146', '四方台区', '191'); INSERT INTO `ce_city` VALUES ('1147', '宝山区', '191'); INSERT INTO `ce_city` VALUES ('1148', '集贤县', '191'); INSERT INTO `ce_city` VALUES ('1149', '友谊县', '191'); INSERT INTO `ce_city` VALUES ('1150', '宝清县', '191'); INSERT INTO `ce_city` VALUES ('1151', '饶河县', '191'); INSERT INTO `ce_city` VALUES ('1152', '萨尔图区', '192'); INSERT INTO `ce_city` VALUES ('1153', '龙凤区', '192'); INSERT INTO `ce_city` VALUES ('1154', '让胡路区', '192'); INSERT INTO `ce_city` VALUES ('1155', '红岗区', '192'); INSERT INTO `ce_city` VALUES ('1156', '大同区', '192'); INSERT INTO `ce_city` VALUES ('1157', '肇州县', '192'); INSERT INTO `ce_city` VALUES ('1158', '肇源县', '192'); INSERT INTO `ce_city` VALUES ('1159', '林甸县', '192'); INSERT INTO `ce_city` VALUES ('1160', '杜尔伯特蒙古族自治县', '192'); INSERT INTO `ce_city` VALUES ('1161', '伊春区', '193'); INSERT INTO `ce_city` VALUES ('1162', '南岔区', '193'); INSERT INTO `ce_city` VALUES ('1163', '友好区', '193'); INSERT INTO `ce_city` VALUES ('1164', '西林区', '193'); INSERT INTO `ce_city` VALUES ('1165', '翠峦区', '193'); INSERT INTO `ce_city` VALUES ('1166', '新青区', '193'); INSERT INTO `ce_city` VALUES ('1167', '美溪区', '193'); INSERT INTO `ce_city` VALUES ('1168', '金山屯区', '193'); INSERT INTO `ce_city` VALUES ('1169', '五营区', '193'); INSERT INTO `ce_city` VALUES ('1170', '乌马河区', '193'); INSERT INTO `ce_city` VALUES ('1171', '汤旺河区', '193'); INSERT INTO `ce_city` VALUES ('1172', '带岭区', '193'); INSERT INTO `ce_city` VALUES ('1173', '乌伊岭区', '193'); INSERT INTO `ce_city` VALUES ('1174', '红星区', '193'); INSERT INTO `ce_city` VALUES ('1175', '上甘岭区', '193'); INSERT INTO `ce_city` VALUES ('1176', '嘉荫县', '193'); INSERT INTO `ce_city` VALUES ('1177', '铁力市', '193'); INSERT INTO `ce_city` VALUES ('1178', '永红区', '194'); INSERT INTO `ce_city` VALUES ('1179', '向阳区', '194'); INSERT INTO `ce_city` VALUES ('1180', '前进区', '194'); INSERT INTO `ce_city` VALUES ('1181', '东风区', '194'); INSERT INTO `ce_city` VALUES ('1182', '郊区', '194'); INSERT INTO `ce_city` VALUES ('1183', '桦南县', '194'); INSERT INTO `ce_city` VALUES ('1184', '桦川县', '194'); INSERT INTO `ce_city` VALUES ('1185', '汤原县', '194'); INSERT INTO `ce_city` VALUES ('1186', '抚远县', '194'); INSERT INTO `ce_city` VALUES ('1187', '同江市', '194'); INSERT INTO `ce_city` VALUES ('1188', '富锦市', '194'); INSERT INTO `ce_city` VALUES ('1189', '新兴区', '195'); INSERT INTO `ce_city` VALUES ('1190', '桃山区', '195'); INSERT INTO `ce_city` VALUES ('1191', '茄子河区', '195'); INSERT INTO `ce_city` VALUES ('1192', '勃利县', '195'); INSERT INTO `ce_city` VALUES ('1193', '东安区', '196'); INSERT INTO `ce_city` VALUES ('1194', '阳明区', '196'); INSERT INTO `ce_city` VALUES ('1195', '爱民区', '196'); INSERT INTO `ce_city` VALUES ('1196', '西安区', '196'); INSERT INTO `ce_city` VALUES ('1197', '东宁县', '196'); INSERT INTO `ce_city` VALUES ('1198', '林口县', '196'); INSERT INTO `ce_city` VALUES ('1199', '绥芬河市', '196'); INSERT INTO `ce_city` VALUES ('1200', '海林市', '196'); INSERT INTO `ce_city` VALUES ('1201', '宁安市', '196'); INSERT INTO `ce_city` VALUES ('1202', '穆棱市', '196'); INSERT INTO `ce_city` VALUES ('1203', '爱辉区', '197'); INSERT INTO `ce_city` VALUES ('1204', '嫩江县', '197'); INSERT INTO `ce_city` VALUES ('1205', '逊克县', '197'); INSERT INTO `ce_city` VALUES ('1206', '孙吴县', '197'); INSERT INTO `ce_city` VALUES ('1207', '北安市', '197'); INSERT INTO `ce_city` VALUES ('1208', '五大连池市', '197'); INSERT INTO `ce_city` VALUES ('1209', '北林区', '198'); INSERT INTO `ce_city` VALUES ('1210', '望奎县', '198'); INSERT INTO `ce_city` VALUES ('1211', '兰西县', '198'); INSERT INTO `ce_city` VALUES ('1212', '青冈县', '198'); INSERT INTO `ce_city` VALUES ('1213', '庆安县', '198'); INSERT INTO `ce_city` VALUES ('1214', '明水县', '198'); INSERT INTO `ce_city` VALUES ('1215', '绥棱县', '198'); INSERT INTO `ce_city` VALUES ('1216', '安达市', '198'); INSERT INTO `ce_city` VALUES ('1217', '肇东市', '198'); INSERT INTO `ce_city` VALUES ('1218', '海伦市', '198'); INSERT INTO `ce_city` VALUES ('1219', '呼玛县', '199'); INSERT INTO `ce_city` VALUES ('1220', '塔河县', '199'); INSERT INTO `ce_city` VALUES ('1221', '漠河县', '199'); INSERT INTO `ce_city` VALUES ('1222', '玄武区', '200'); INSERT INTO `ce_city` VALUES ('1223', '白下区', '200'); INSERT INTO `ce_city` VALUES ('1224', '秦淮区', '200'); INSERT INTO `ce_city` VALUES ('1225', '建邺区', '200'); INSERT INTO `ce_city` VALUES ('1226', '鼓楼区', '200'); INSERT INTO `ce_city` VALUES ('1227', '下关区', '200'); INSERT INTO `ce_city` VALUES ('1228', '浦口区', '200'); INSERT INTO `ce_city` VALUES ('1229', '栖霞区', '200'); INSERT INTO `ce_city` VALUES ('1230', '雨花台区', '200'); INSERT INTO `ce_city` VALUES ('1231', '江宁区', '200'); INSERT INTO `ce_city` VALUES ('1232', '六合区', '200'); INSERT INTO `ce_city` VALUES ('1233', '溧水县', '200'); INSERT INTO `ce_city` VALUES ('1234', '高淳县', '200'); INSERT INTO `ce_city` VALUES ('1235', '崇安区', '201'); INSERT INTO `ce_city` VALUES ('1236', '南长区', '201'); INSERT INTO `ce_city` VALUES ('1237', '北塘区', '201'); INSERT INTO `ce_city` VALUES ('1238', '锡山区', '201'); INSERT INTO `ce_city` VALUES ('1239', '惠山区', '201'); INSERT INTO `ce_city` VALUES ('1240', '滨湖区', '201'); INSERT INTO `ce_city` VALUES ('1241', '江阴市', '201'); INSERT INTO `ce_city` VALUES ('1242', '宜兴市', '201'); INSERT INTO `ce_city` VALUES ('1243', '鼓楼区', '202'); INSERT INTO `ce_city` VALUES ('1244', '云龙区', '202'); INSERT INTO `ce_city` VALUES ('1245', '九里区', '202'); INSERT INTO `ce_city` VALUES ('1246', '贾汪区', '202'); INSERT INTO `ce_city` VALUES ('1247', '泉山区', '202'); INSERT INTO `ce_city` VALUES ('1248', '丰县', '202'); INSERT INTO `ce_city` VALUES ('1249', '沛县', '202'); INSERT INTO `ce_city` VALUES ('1250', '铜山县', '202'); INSERT INTO `ce_city` VALUES ('1251', '睢宁县', '202'); INSERT INTO `ce_city` VALUES ('1252', '新沂市', '202'); INSERT INTO `ce_city` VALUES ('1253', '邳州市', '202'); INSERT INTO `ce_city` VALUES ('1254', '天宁区', '203'); INSERT INTO `ce_city` VALUES ('1255', '钟楼区', '203'); INSERT INTO `ce_city` VALUES ('1256', '戚墅堰区', '203'); INSERT INTO `ce_city` VALUES ('1257', '新北区', '203'); INSERT INTO `ce_city` VALUES ('1258', '武进区', '203'); INSERT INTO `ce_city` VALUES ('1259', '溧阳市', '203'); INSERT INTO `ce_city` VALUES ('1260', '金坛市', '203'); INSERT INTO `ce_city` VALUES ('1261', '沧浪区', '204'); INSERT INTO `ce_city` VALUES ('1262', '平江区', '204'); INSERT INTO `ce_city` VALUES ('1263', '金阊区', '204'); INSERT INTO `ce_city` VALUES ('1264', '虎丘区', '204'); INSERT INTO `ce_city` VALUES ('1265', '吴中区', '204'); INSERT INTO `ce_city` VALUES ('1266', '相城区', '204'); INSERT INTO `ce_city` VALUES ('1267', '常熟市', '204'); INSERT INTO `ce_city` VALUES ('1268', '张家港市', '204'); INSERT INTO `ce_city` VALUES ('1269', '昆山市', '204'); INSERT INTO `ce_city` VALUES ('1270', '吴江市', '204'); INSERT INTO `ce_city` VALUES ('1271', '太仓市', '204'); INSERT INTO `ce_city` VALUES ('1272', '崇川区', '205'); INSERT INTO `ce_city` VALUES ('1273', '港闸区', '205'); INSERT INTO `ce_city` VALUES ('1274', '海安县', '205'); INSERT INTO `ce_city` VALUES ('1275', '如东县', '205'); INSERT INTO `ce_city` VALUES ('1276', '启东市', '205'); INSERT INTO `ce_city` VALUES ('1277', '如皋市', '205'); INSERT INTO `ce_city` VALUES ('1278', '通州市', '205'); INSERT INTO `ce_city` VALUES ('1279', '海门市', '205'); INSERT INTO `ce_city` VALUES ('1280', '连云区', '206'); INSERT INTO `ce_city` VALUES ('1281', '新浦区', '206'); INSERT INTO `ce_city` VALUES ('1282', '海州区', '206'); INSERT INTO `ce_city` VALUES ('1283', '赣榆县', '206'); INSERT INTO `ce_city` VALUES ('1284', '东海县', '206'); INSERT INTO `ce_city` VALUES ('1285', '灌云县', '206'); INSERT INTO `ce_city` VALUES ('1286', '灌南县', '206'); INSERT INTO `ce_city` VALUES ('1287', '清河区', '207'); INSERT INTO `ce_city` VALUES ('1288', '楚州区', '207'); INSERT INTO `ce_city` VALUES ('1289', '淮阴区', '207'); INSERT INTO `ce_city` VALUES ('1290', '清浦区', '207'); INSERT INTO `ce_city` VALUES ('1291', '涟水县', '207'); INSERT INTO `ce_city` VALUES ('1292', '洪泽县', '207'); INSERT INTO `ce_city` VALUES ('1293', '盱眙县', '207'); INSERT INTO `ce_city` VALUES ('1294', '金湖县', '207'); INSERT INTO `ce_city` VALUES ('1295', '亭湖区', '208'); INSERT INTO `ce_city` VALUES ('1296', '盐都区', '208'); INSERT INTO `ce_city` VALUES ('1297', '响水县', '208'); INSERT INTO `ce_city` VALUES ('1298', '滨海县', '208'); INSERT INTO `ce_city` VALUES ('1299', '阜宁县', '208'); INSERT INTO `ce_city` VALUES ('1300', '射阳县', '208'); INSERT INTO `ce_city` VALUES ('1301', '建湖县', '208'); INSERT INTO `ce_city` VALUES ('1302', '东台市', '208'); INSERT INTO `ce_city` VALUES ('1303', '大丰市', '208'); INSERT INTO `ce_city` VALUES ('1304', '广陵区', '209'); INSERT INTO `ce_city` VALUES ('1305', '邗江区', '209'); INSERT INTO `ce_city` VALUES ('1306', '维扬区', '209'); INSERT INTO `ce_city` VALUES ('1307', '宝应县', '209'); INSERT INTO `ce_city` VALUES ('1308', '仪征市', '209'); INSERT INTO `ce_city` VALUES ('1309', '高邮市', '209'); INSERT INTO `ce_city` VALUES ('1310', '江都市', '209'); INSERT INTO `ce_city` VALUES ('1311', '京口区', '210'); INSERT INTO `ce_city` VALUES ('1312', '润州区', '210'); INSERT INTO `ce_city` VALUES ('1313', '丹徒区', '210'); INSERT INTO `ce_city` VALUES ('1314', '丹阳市', '210'); INSERT INTO `ce_city` VALUES ('1315', '扬中市', '210'); INSERT INTO `ce_city` VALUES ('1316', '句容市', '210'); INSERT INTO `ce_city` VALUES ('1317', '海陵区', '211'); INSERT INTO `ce_city` VALUES ('1318', '高港区', '211'); INSERT INTO `ce_city` VALUES ('1319', '兴化市', '211'); INSERT INTO `ce_city` VALUES ('1320', '靖江市', '211'); INSERT INTO `ce_city` VALUES ('1321', '泰兴市', '211'); INSERT INTO `ce_city` VALUES ('1322', '姜堰市', '211'); INSERT INTO `ce_city` VALUES ('1323', '宿城区', '212'); INSERT INTO `ce_city` VALUES ('1324', '宿豫区', '212'); INSERT INTO `ce_city` VALUES ('1325', '沭阳县', '212'); INSERT INTO `ce_city` VALUES ('1326', '泗阳县', '212'); INSERT INTO `ce_city` VALUES ('1327', '泗洪县', '212'); INSERT INTO `ce_city` VALUES ('1328', '上城区', '213'); INSERT INTO `ce_city` VALUES ('1329', '下城区', '213'); INSERT INTO `ce_city` VALUES ('1330', '江干区', '213'); INSERT INTO `ce_city` VALUES ('1331', '拱墅区', '213'); INSERT INTO `ce_city` VALUES ('1332', '西湖区', '213'); INSERT INTO `ce_city` VALUES ('1333', '滨江区', '213'); INSERT INTO `ce_city` VALUES ('1334', '萧山区', '213'); INSERT INTO `ce_city` VALUES ('1335', '余杭区', '213'); INSERT INTO `ce_city` VALUES ('1336', '桐庐县', '213'); INSERT INTO `ce_city` VALUES ('1337', '淳安县', '213'); INSERT INTO `ce_city` VALUES ('1338', '建德市', '213'); INSERT INTO `ce_city` VALUES ('1339', '富阳市', '213'); INSERT INTO `ce_city` VALUES ('1340', '临安市', '213'); INSERT INTO `ce_city` VALUES ('1341', '海曙区', '214'); INSERT INTO `ce_city` VALUES ('1342', '江东区', '214'); INSERT INTO `ce_city` VALUES ('1343', '江北区', '214'); INSERT INTO `ce_city` VALUES ('1344', '北仑区', '214'); INSERT INTO `ce_city` VALUES ('1345', '镇海区', '214'); INSERT INTO `ce_city` VALUES ('1346', '鄞州区', '214'); INSERT INTO `ce_city` VALUES ('1347', '象山县', '214'); INSERT INTO `ce_city` VALUES ('1348', '宁海县', '214'); INSERT INTO `ce_city` VALUES ('1349', '余姚市', '214'); INSERT INTO `ce_city` VALUES ('1350', '慈溪市', '214'); INSERT INTO `ce_city` VALUES ('1351', '奉化市', '214'); INSERT INTO `ce_city` VALUES ('1352', '鹿城区', '215'); INSERT INTO `ce_city` VALUES ('1353', '龙湾区', '215'); INSERT INTO `ce_city` VALUES ('1354', '瓯海区', '215'); INSERT INTO `ce_city` VALUES ('1355', '洞头县', '215'); INSERT INTO `ce_city` VALUES ('1356', '永嘉县', '215'); INSERT INTO `ce_city` VALUES ('1357', '平阳县', '215'); INSERT INTO `ce_city` VALUES ('1358', '苍南县', '215'); INSERT INTO `ce_city` VALUES ('1359', '文成县', '215'); INSERT INTO `ce_city` VALUES ('1360', '泰顺县', '215'); INSERT INTO `ce_city` VALUES ('1361', '瑞安市', '215'); INSERT INTO `ce_city` VALUES ('1362', '乐清市', '215'); INSERT INTO `ce_city` VALUES ('1363', '秀城区', '216'); INSERT INTO `ce_city` VALUES ('1364', '秀洲区', '216'); INSERT INTO `ce_city` VALUES ('1365', '嘉善县', '216'); INSERT INTO `ce_city` VALUES ('1366', '海盐县', '216'); INSERT INTO `ce_city` VALUES ('1367', '海宁市', '216'); INSERT INTO `ce_city` VALUES ('1368', '平湖市', '216'); INSERT INTO `ce_city` VALUES ('1369', '桐乡市', '216'); INSERT INTO `ce_city` VALUES ('1370', '吴兴区', '217'); INSERT INTO `ce_city` VALUES ('1371', '南浔区', '217'); INSERT INTO `ce_city` VALUES ('1372', '德清县', '217'); INSERT INTO `ce_city` VALUES ('1373', '长兴县', '217'); INSERT INTO `ce_city` VALUES ('1374', '安吉县', '217'); INSERT INTO `ce_city` VALUES ('1375', '越城区', '218'); INSERT INTO `ce_city` VALUES ('1376', '绍兴县', '218'); INSERT INTO `ce_city` VALUES ('1377', '新昌县', '218'); INSERT INTO `ce_city` VALUES ('1378', '诸暨市', '218'); INSERT INTO `ce_city` VALUES ('1379', '上虞市', '218'); INSERT INTO `ce_city` VALUES ('1380', '嵊州市', '218'); INSERT INTO `ce_city` VALUES ('1381', '婺城区', '219'); INSERT INTO `ce_city` VALUES ('1382', '金东区', '219'); INSERT INTO `ce_city` VALUES ('1383', '武义县', '219'); INSERT INTO `ce_city` VALUES ('1384', '浦江县', '219'); INSERT INTO `ce_city` VALUES ('1385', '磐安县', '219'); INSERT INTO `ce_city` VALUES ('1386', '兰溪市', '219'); INSERT INTO `ce_city` VALUES ('1387', '义乌市', '219'); INSERT INTO `ce_city` VALUES ('1388', '东阳市', '219'); INSERT INTO `ce_city` VALUES ('1389', '永康市', '219'); INSERT INTO `ce_city` VALUES ('1390', '柯城区', '220'); INSERT INTO `ce_city` VALUES ('1391', '衢江区', '220'); INSERT INTO `ce_city` VALUES ('1392', '常山县', '220'); INSERT INTO `ce_city` VALUES ('1393', '开化县', '220'); INSERT INTO `ce_city` VALUES ('1394', '龙游县', '220'); INSERT INTO `ce_city` VALUES ('1395', '江山市', '220'); INSERT INTO `ce_city` VALUES ('1396', '定海区', '221'); INSERT INTO `ce_city` VALUES ('1397', '普陀区', '221'); INSERT INTO `ce_city` VALUES ('1398', '岱山县', '221'); INSERT INTO `ce_city` VALUES ('1399', '嵊泗县', '221'); INSERT INTO `ce_city` VALUES ('1400', '椒江区', '222'); INSERT INTO `ce_city` VALUES ('1401', '黄岩区', '222'); INSERT INTO `ce_city` VALUES ('1402', '路桥区', '222'); INSERT INTO `ce_city` VALUES ('1403', '玉环县', '222'); INSERT INTO `ce_city` VALUES ('1404', '三门县', '222'); INSERT INTO `ce_city` VALUES ('1405', '天台县', '222'); INSERT INTO `ce_city` VALUES ('1406', '仙居县', '222'); INSERT INTO `ce_city` VALUES ('1407', '温岭市', '222'); INSERT INTO `ce_city` VALUES ('1408', '临海市', '222'); INSERT INTO `ce_city` VALUES ('1409', '莲都区', '223'); INSERT INTO `ce_city` VALUES ('1410', '青田县', '223'); INSERT INTO `ce_city` VALUES ('1411', '缙云县', '223'); INSERT INTO `ce_city` VALUES ('1412', '遂昌县', '223'); INSERT INTO `ce_city` VALUES ('1413', '松阳县', '223'); INSERT INTO `ce_city` VALUES ('1414', '云和县', '223'); INSERT INTO `ce_city` VALUES ('1415', '庆元县', '223'); INSERT INTO `ce_city` VALUES ('1416', '景宁畲族自治县', '223'); INSERT INTO `ce_city` VALUES ('1417', '龙泉市', '223'); INSERT INTO `ce_city` VALUES ('1418', '瑶海区', '224'); INSERT INTO `ce_city` VALUES ('1419', '庐阳区', '224'); INSERT INTO `ce_city` VALUES ('1420', '蜀山区', '224'); INSERT INTO `ce_city` VALUES ('1421', '包河区', '224'); INSERT INTO `ce_city` VALUES ('1422', '长丰县', '224'); INSERT INTO `ce_city` VALUES ('1423', '肥东县', '224'); INSERT INTO `ce_city` VALUES ('1424', '肥西县', '224'); INSERT INTO `ce_city` VALUES ('1425', '镜湖区', '225'); INSERT INTO `ce_city` VALUES ('1426', '弋江区', '225'); INSERT INTO `ce_city` VALUES ('1427', '鸠江区', '225'); INSERT INTO `ce_city` VALUES ('1428', '三山区', '225'); INSERT INTO `ce_city` VALUES ('1429', '芜湖县', '225'); INSERT INTO `ce_city` VALUES ('1430', '繁昌县', '225'); INSERT INTO `ce_city` VALUES ('1431', '南陵县', '225'); INSERT INTO `ce_city` VALUES ('1432', '龙子湖区', '226'); INSERT INTO `ce_city` VALUES ('1433', '蚌山区', '226'); INSERT INTO `ce_city` VALUES ('1434', '禹会区', '226'); INSERT INTO `ce_city` VALUES ('1435', '淮上区', '226'); INSERT INTO `ce_city` VALUES ('1436', '怀远县', '226'); INSERT INTO `ce_city` VALUES ('1437', '五河县', '226'); INSERT INTO `ce_city` VALUES ('1438', '固镇县', '226'); INSERT INTO `ce_city` VALUES ('1439', '大通区', '227'); INSERT INTO `ce_city` VALUES ('1440', '田家庵区', '227'); INSERT INTO `ce_city` VALUES ('1441', '谢家集区', '227'); INSERT INTO `ce_city` VALUES ('1442', '八公山区', '227'); INSERT INTO `ce_city` VALUES ('1443', '潘集区', '227'); INSERT INTO `ce_city` VALUES ('1444', '凤台县', '227'); INSERT INTO `ce_city` VALUES ('1445', '金家庄区', '228'); INSERT INTO `ce_city` VALUES ('1446', '花山区', '228'); INSERT INTO `ce_city` VALUES ('1447', '雨山区', '228'); INSERT INTO `ce_city` VALUES ('1448', '当涂县', '228'); INSERT INTO `ce_city` VALUES ('1449', '杜集区', '229'); INSERT INTO `ce_city` VALUES ('1450', '相山区', '229'); INSERT INTO `ce_city` VALUES ('1451', '烈山区', '229'); INSERT INTO `ce_city` VALUES ('1452', '濉溪县', '229'); INSERT INTO `ce_city` VALUES ('1453', '铜官山区', '230'); INSERT INTO `ce_city` VALUES ('1454', '狮子山区', '230'); INSERT INTO `ce_city` VALUES ('1455', '郊区', '230'); INSERT INTO `ce_city` VALUES ('1456', '铜陵县', '230'); INSERT INTO `ce_city` VALUES ('1457', '迎江区', '231'); INSERT INTO `ce_city` VALUES ('1458', '大观区', '231'); INSERT INTO `ce_city` VALUES ('1459', '宜秀区', '231'); INSERT INTO `ce_city` VALUES ('1460', '怀宁县', '231'); INSERT INTO `ce_city` VALUES ('1461', '枞阳县', '231'); INSERT INTO `ce_city` VALUES ('1462', '潜山县', '231'); INSERT INTO `ce_city` VALUES ('1463', '太湖县', '231'); INSERT INTO `ce_city` VALUES ('1464', '宿松县', '231'); INSERT INTO `ce_city` VALUES ('1465', '望江县', '231'); INSERT INTO `ce_city` VALUES ('1466', '岳西县', '231'); INSERT INTO `ce_city` VALUES ('1467', '桐城市', '231'); INSERT INTO `ce_city` VALUES ('1468', '屯溪区', '232'); INSERT INTO `ce_city` VALUES ('1469', '黄山区', '232'); INSERT INTO `ce_city` VALUES ('1470', '徽州区', '232'); INSERT INTO `ce_city` VALUES ('1471', '歙县', '232'); INSERT INTO `ce_city` VALUES ('1472', '休宁县', '232'); INSERT INTO `ce_city` VALUES ('1473', '黟县', '232'); INSERT INTO `ce_city` VALUES ('1474', '祁门县', '232'); INSERT INTO `ce_city` VALUES ('1475', '琅琊区', '233'); INSERT INTO `ce_city` VALUES ('1476', '南谯区', '233'); INSERT INTO `ce_city` VALUES ('1477', '来安县', '233'); INSERT INTO `ce_city` VALUES ('1478', '全椒县', '233'); INSERT INTO `ce_city` VALUES ('1479', '定远县', '233'); INSERT INTO `ce_city` VALUES ('1480', '凤阳县', '233'); INSERT INTO `ce_city` VALUES ('1481', '天长市', '233'); INSERT INTO `ce_city` VALUES ('1482', '明光市', '233'); INSERT INTO `ce_city` VALUES ('1483', '颍州区', '234'); INSERT INTO `ce_city` VALUES ('1484', '颍东区', '234'); INSERT INTO `ce_city` VALUES ('1485', '颍泉区', '234'); INSERT INTO `ce_city` VALUES ('1486', '临泉县', '234'); INSERT INTO `ce_city` VALUES ('1487', '太和县', '234'); INSERT INTO `ce_city` VALUES ('1488', '阜南县', '234'); INSERT INTO `ce_city` VALUES ('1489', '颍上县', '234'); INSERT INTO `ce_city` VALUES ('1490', '界首市', '234'); INSERT INTO `ce_city` VALUES ('1491', '埇桥区', '235'); INSERT INTO `ce_city` VALUES ('1492', '砀山县', '235'); INSERT INTO `ce_city` VALUES ('1493', '萧县', '235'); INSERT INTO `ce_city` VALUES ('1494', '灵璧县', '235'); INSERT INTO `ce_city` VALUES ('1495', '泗县', '235'); INSERT INTO `ce_city` VALUES ('1496', '居巢区', '236'); INSERT INTO `ce_city` VALUES ('1497', '庐江县', '236'); INSERT INTO `ce_city` VALUES ('1498', '无为县', '236'); INSERT INTO `ce_city` VALUES ('1499', '含山县', '236'); INSERT INTO `ce_city` VALUES ('1500', '和县', '236'); INSERT INTO `ce_city` VALUES ('1501', '金安区', '237'); INSERT INTO `ce_city` VALUES ('1502', '裕安区', '237'); INSERT INTO `ce_city` VALUES ('1503', '寿县', '237'); INSERT INTO `ce_city` VALUES ('1504', '霍邱县', '237'); INSERT INTO `ce_city` VALUES ('1505', '舒城县', '237'); INSERT INTO `ce_city` VALUES ('1506', '金寨县', '237'); INSERT INTO `ce_city` VALUES ('1507', '霍山县', '237'); INSERT INTO `ce_city` VALUES ('1508', '谯城区', '238'); INSERT INTO `ce_city` VALUES ('1509', '涡阳县', '238'); INSERT INTO `ce_city` VALUES ('1510', '蒙城县', '238'); INSERT INTO `ce_city` VALUES ('1511', '利辛县', '238'); INSERT INTO `ce_city` VALUES ('1512', '贵池区', '239'); INSERT INTO `ce_city` VALUES ('1513', '东至县', '239'); INSERT INTO `ce_city` VALUES ('1514', '石台县', '239'); INSERT INTO `ce_city` VALUES ('1515', '青阳县', '239'); INSERT INTO `ce_city` VALUES ('1516', '宣州区', '240'); INSERT INTO `ce_city` VALUES ('1517', '郎溪县', '240'); INSERT INTO `ce_city` VALUES ('1518', '广德县', '240'); INSERT INTO `ce_city` VALUES ('1519', '泾县', '240'); INSERT INTO `ce_city` VALUES ('1520', '绩溪县', '240'); INSERT INTO `ce_city` VALUES ('1521', '旌德县', '240'); INSERT INTO `ce_city` VALUES ('1522', '宁国市', '240'); INSERT INTO `ce_city` VALUES ('1523', '鼓楼区', '241'); INSERT INTO `ce_city` VALUES ('1524', '台江区', '241'); INSERT INTO `ce_city` VALUES ('1525', '仓山区', '241'); INSERT INTO `ce_city` VALUES ('1526', '马尾区', '241'); INSERT INTO `ce_city` VALUES ('1527', '晋安区', '241'); INSERT INTO `ce_city` VALUES ('1528', '闽侯县', '241'); INSERT INTO `ce_city` VALUES ('1529', '连江县', '241'); INSERT INTO `ce_city` VALUES ('1530', '罗源县', '241'); INSERT INTO `ce_city` VALUES ('1531', '闽清县', '241'); INSERT INTO `ce_city` VALUES ('1532', '永泰县', '241'); INSERT INTO `ce_city` VALUES ('1533', '平潭县', '241'); INSERT INTO `ce_city` VALUES ('1534', '福清市', '241'); INSERT INTO `ce_city` VALUES ('1535', '长乐市', '241'); INSERT INTO `ce_city` VALUES ('1536', '思明区', '242'); INSERT INTO `ce_city` VALUES ('1537', '海沧区', '242'); INSERT INTO `ce_city` VALUES ('1538', '湖里区', '242'); INSERT INTO `ce_city` VALUES ('1539', '集美区', '242'); INSERT INTO `ce_city` VALUES ('1540', '同安区', '242'); INSERT INTO `ce_city` VALUES ('1541', '翔安区', '242'); INSERT INTO `ce_city` VALUES ('1542', '城厢区', '243'); INSERT INTO `ce_city` VALUES ('1543', '涵江区', '243'); INSERT INTO `ce_city` VALUES ('1544', '荔城区', '243'); INSERT INTO `ce_city` VALUES ('1545', '秀屿区', '243'); INSERT INTO `ce_city` VALUES ('1546', '仙游县', '243'); INSERT INTO `ce_city` VALUES ('1547', '梅列区', '244'); INSERT INTO `ce_city` VALUES ('1548', '三元区', '244'); INSERT INTO `ce_city` VALUES ('1549', '明溪县', '244'); INSERT INTO `ce_city` VALUES ('1550', '清流县', '244'); INSERT INTO `ce_city` VALUES ('1551', '宁化县', '244'); INSERT INTO `ce_city` VALUES ('1552', '大田县', '244'); INSERT INTO `ce_city` VALUES ('1553', '尤溪县', '244'); INSERT INTO `ce_city` VALUES ('1554', '沙县', '244'); INSERT INTO `ce_city` VALUES ('1555', '将乐县', '244'); INSERT INTO `ce_city` VALUES ('1556', '泰宁县', '244'); INSERT INTO `ce_city` VALUES ('1557', '建宁县', '244'); INSERT INTO `ce_city` VALUES ('1558', '永安市', '244'); INSERT INTO `ce_city` VALUES ('1559', '鲤城区', '245'); INSERT INTO `ce_city` VALUES ('1560', '丰泽区', '245'); INSERT INTO `ce_city` VALUES ('1561', '洛江区', '245'); INSERT INTO `ce_city` VALUES ('1562', '泉港区', '245'); INSERT INTO `ce_city` VALUES ('1563', '惠安县', '245'); INSERT INTO `ce_city` VALUES ('1564', '安溪县', '245'); INSERT INTO `ce_city` VALUES ('1565', '永春县', '245'); INSERT INTO `ce_city` VALUES ('1566', '德化县', '245'); INSERT INTO `ce_city` VALUES ('1567', '金门县', '245'); INSERT INTO `ce_city` VALUES ('1568', '石狮市', '245'); INSERT INTO `ce_city` VALUES ('1569', '晋江市', '245'); INSERT INTO `ce_city` VALUES ('1570', '南安市', '245'); INSERT INTO `ce_city` VALUES ('1571', '芗城区', '246'); INSERT INTO `ce_city` VALUES ('1572', '龙文区', '246'); INSERT INTO `ce_city` VALUES ('1573', '云霄县', '246'); INSERT INTO `ce_city` VALUES ('1574', '漳浦县', '246'); INSERT INTO `ce_city` VALUES ('1575', '诏安县', '246'); INSERT INTO `ce_city` VALUES ('1576', '长泰县', '246'); INSERT INTO `ce_city` VALUES ('1577', '东山县', '246'); INSERT INTO `ce_city` VALUES ('1578', '南靖县', '246'); INSERT INTO `ce_city` VALUES ('1579', '平和县', '246'); INSERT INTO `ce_city` VALUES ('1580', '华安县', '246'); INSERT INTO `ce_city` VALUES ('1581', '龙海市', '246'); INSERT INTO `ce_city` VALUES ('1582', '延平区', '247'); INSERT INTO `ce_city` VALUES ('1583', '顺昌县', '247'); INSERT INTO `ce_city` VALUES ('1584', '浦城县', '247'); INSERT INTO `ce_city` VALUES ('1585', '光泽县', '247'); INSERT INTO `ce_city` VALUES ('1586', '松溪县', '247'); INSERT INTO `ce_city` VALUES ('1587', '政和县', '247'); INSERT INTO `ce_city` VALUES ('1588', '邵武市', '247'); INSERT INTO `ce_city` VALUES ('1589', '武夷山市', '247'); INSERT INTO `ce_city` VALUES ('1590', '建瓯市', '247'); INSERT INTO `ce_city` VALUES ('1591', '建阳市', '247'); INSERT INTO `ce_city` VALUES ('1592', '新罗区', '248'); INSERT INTO `ce_city` VALUES ('1593', '长汀县', '248'); INSERT INTO `ce_city` VALUES ('1594', '永定县', '248'); INSERT INTO `ce_city` VALUES ('1595', '上杭县', '248'); INSERT INTO `ce_city` VALUES ('1596', '武平县', '248'); INSERT INTO `ce_city` VALUES ('1597', '连城县', '248'); INSERT INTO `ce_city` VALUES ('1598', '漳平市', '248'); INSERT INTO `ce_city` VALUES ('1599', '蕉城区', '249'); INSERT INTO `ce_city` VALUES ('1600', '霞浦县', '249'); INSERT INTO `ce_city` VALUES ('1601', '古田县', '249'); INSERT INTO `ce_city` VALUES ('1602', '屏南县', '249'); INSERT INTO `ce_city` VALUES ('1603', '寿宁县', '249'); INSERT INTO `ce_city` VALUES ('1604', '周宁县', '249'); INSERT INTO `ce_city` VALUES ('1605', '柘荣县', '249'); INSERT INTO `ce_city` VALUES ('1606', '福安市', '249'); INSERT INTO `ce_city` VALUES ('1607', '福鼎市', '249'); INSERT INTO `ce_city` VALUES ('1608', '东湖区', '250'); INSERT INTO `ce_city` VALUES ('1609', '西湖区', '250'); INSERT INTO `ce_city` VALUES ('1610', '青云谱区', '250'); INSERT INTO `ce_city` VALUES ('1611', '湾里区', '250'); INSERT INTO `ce_city` VALUES ('1612', '青山湖区', '250'); INSERT INTO `ce_city` VALUES ('1613', '南昌县', '250'); INSERT INTO `ce_city` VALUES ('1614', '新建县', '250'); INSERT INTO `ce_city` VALUES ('1615', '安义县', '250'); INSERT INTO `ce_city` VALUES ('1616', '进贤县', '250'); INSERT INTO `ce_city` VALUES ('1617', '昌江区', '251'); INSERT INTO `ce_city` VALUES ('1618', '珠山区', '251'); INSERT INTO `ce_city` VALUES ('1619', '浮梁县', '251'); INSERT INTO `ce_city` VALUES ('1620', '乐平市', '251'); INSERT INTO `ce_city` VALUES ('1621', '安源区', '252'); INSERT INTO `ce_city` VALUES ('1622', '湘东区', '252'); INSERT INTO `ce_city` VALUES ('1623', '莲花县', '252'); INSERT INTO `ce_city` VALUES ('1624', '上栗县', '252'); INSERT INTO `ce_city` VALUES ('1625', '芦溪县', '252'); INSERT INTO `ce_city` VALUES ('1626', '庐山区', '253'); INSERT INTO `ce_city` VALUES ('1627', '浔阳区', '253'); INSERT INTO `ce_city` VALUES ('1628', '九江县', '253'); INSERT INTO `ce_city` VALUES ('1629', '武宁县', '253'); INSERT INTO `ce_city` VALUES ('1630', '修水县', '253'); INSERT INTO `ce_city` VALUES ('1631', '永修县', '253'); INSERT INTO `ce_city` VALUES ('1632', '德安县', '253'); INSERT INTO `ce_city` VALUES ('1633', '星子县', '253'); INSERT INTO `ce_city` VALUES ('1634', '都昌县', '253'); INSERT INTO `ce_city` VALUES ('1635', '湖口县', '253'); INSERT INTO `ce_city` VALUES ('1636', '彭泽县', '253'); INSERT INTO `ce_city` VALUES ('1637', '瑞昌市', '253'); INSERT INTO `ce_city` VALUES ('1638', '渝水区', '254'); INSERT INTO `ce_city` VALUES ('1639', '分宜县', '254'); INSERT INTO `ce_city` VALUES ('1640', '月湖区', '255'); INSERT INTO `ce_city` VALUES ('1641', '余江县', '255'); INSERT INTO `ce_city` VALUES ('1642', '贵溪市', '255'); INSERT INTO `ce_city` VALUES ('1643', '章贡区', '256'); INSERT INTO `ce_city` VALUES ('1644', '赣县', '256'); INSERT INTO `ce_city` VALUES ('1645', '信丰县', '256'); INSERT INTO `ce_city` VALUES ('1646', '大余县', '256'); INSERT INTO `ce_city` VALUES ('1647', '上犹县', '256'); INSERT INTO `ce_city` VALUES ('1648', '崇义县', '256'); INSERT INTO `ce_city` VALUES ('1649', '安远县', '256'); INSERT INTO `ce_city` VALUES ('1650', '龙南县', '256'); INSERT INTO `ce_city` VALUES ('1651', '定南县', '256'); INSERT INTO `ce_city` VALUES ('1652', '全南县', '256'); INSERT INTO `ce_city` VALUES ('1653', '宁都县', '256'); INSERT INTO `ce_city` VALUES ('1654', '于都县', '256'); INSERT INTO `ce_city` VALUES ('1655', '兴国县', '256'); INSERT INTO `ce_city` VALUES ('1656', '会昌县', '256'); INSERT INTO `ce_city` VALUES ('1657', '寻乌县', '256'); INSERT INTO `ce_city` VALUES ('1658', '石城县', '256'); INSERT INTO `ce_city` VALUES ('1659', '瑞金市', '256'); INSERT INTO `ce_city` VALUES ('1660', '南康市', '256'); INSERT INTO `ce_city` VALUES ('1661', '吉州区', '257'); INSERT INTO `ce_city` VALUES ('1662', '青原区', '257'); INSERT INTO `ce_city` VALUES ('1663', '吉安县', '257'); INSERT INTO `ce_city` VALUES ('1664', '吉水县', '257'); INSERT INTO `ce_city` VALUES ('1665', '峡江县', '257'); INSERT INTO `ce_city` VALUES ('1666', '新干县', '257'); INSERT INTO `ce_city` VALUES ('1667', '永丰县', '257'); INSERT INTO `ce_city` VALUES ('1668', '泰和县', '257'); INSERT INTO `ce_city` VALUES ('1669', '遂川县', '257'); INSERT INTO `ce_city` VALUES ('1670', '万安县', '257'); INSERT INTO `ce_city` VALUES ('1671', '安福县', '257'); INSERT INTO `ce_city` VALUES ('1672', '永新县', '257'); INSERT INTO `ce_city` VALUES ('1673', '井冈山市', '257'); INSERT INTO `ce_city` VALUES ('1674', '袁州区', '258'); INSERT INTO `ce_city` VALUES ('1675', '奉新县', '258'); INSERT INTO `ce_city` VALUES ('1676', '万载县', '258'); INSERT INTO `ce_city` VALUES ('1677', '上高县', '258'); INSERT INTO `ce_city` VALUES ('1678', '宜丰县', '258'); INSERT INTO `ce_city` VALUES ('1679', '靖安县', '258'); INSERT INTO `ce_city` VALUES ('1680', '铜鼓县', '258'); INSERT INTO `ce_city` VALUES ('1681', '丰城市', '258'); INSERT INTO `ce_city` VALUES ('1682', '樟树市', '258'); INSERT INTO `ce_city` VALUES ('1683', '高安市', '258'); INSERT INTO `ce_city` VALUES ('1684', '临川区', '259'); INSERT INTO `ce_city` VALUES ('1685', '南城县', '259'); INSERT INTO `ce_city` VALUES ('1686', '黎川县', '259'); INSERT INTO `ce_city` VALUES ('1687', '南丰县', '259'); INSERT INTO `ce_city` VALUES ('1688', '崇仁县', '259'); INSERT INTO `ce_city` VALUES ('1689', '乐安县', '259'); INSERT INTO `ce_city` VALUES ('1690', '宜黄县', '259'); INSERT INTO `ce_city` VALUES ('1691', '金溪县', '259'); INSERT INTO `ce_city` VALUES ('1692', '资溪县', '259'); INSERT INTO `ce_city` VALUES ('1693', '东乡县', '259'); INSERT INTO `ce_city` VALUES ('1694', '广昌县', '259'); INSERT INTO `ce_city` VALUES ('1695', '信州区', '260'); INSERT INTO `ce_city` VALUES ('1696', '上饶县', '260'); INSERT INTO `ce_city` VALUES ('1697', '广丰县', '260'); INSERT INTO `ce_city` VALUES ('1698', '玉山县', '260'); INSERT INTO `ce_city` VALUES ('1699', '铅山县', '260'); INSERT INTO `ce_city` VALUES ('1700', '横峰县', '260'); INSERT INTO `ce_city` VALUES ('1701', '弋阳县', '260'); INSERT INTO `ce_city` VALUES ('1702', '余干县', '260'); INSERT INTO `ce_city` VALUES ('1703', '鄱阳县', '260'); INSERT INTO `ce_city` VALUES ('1704', '万年县', '260'); INSERT INTO `ce_city` VALUES ('1705', '婺源县', '260'); INSERT INTO `ce_city` VALUES ('1706', '德兴市', '260'); INSERT INTO `ce_city` VALUES ('1707', '历下区', '261'); INSERT INTO `ce_city` VALUES ('1708', '市中区', '261'); INSERT INTO `ce_city` VALUES ('1709', '槐荫区', '261'); INSERT INTO `ce_city` VALUES ('1710', '天桥区', '261'); INSERT INTO `ce_city` VALUES ('1711', '历城区', '261'); INSERT INTO `ce_city` VALUES ('1712', '长清区', '261'); INSERT INTO `ce_city` VALUES ('1713', '平阴县', '261'); INSERT INTO `ce_city` VALUES ('1714', '济阳县', '261'); INSERT INTO `ce_city` VALUES ('1715', '商河县', '261'); INSERT INTO `ce_city` VALUES ('1716', '章丘市', '261'); INSERT INTO `ce_city` VALUES ('1717', '市南区', '262'); INSERT INTO `ce_city` VALUES ('1718', '市北区', '262'); INSERT INTO `ce_city` VALUES ('1719', '四方区', '262'); INSERT INTO `ce_city` VALUES ('1720', '黄岛区', '262'); INSERT INTO `ce_city` VALUES ('1721', '崂山区', '262'); INSERT INTO `ce_city` VALUES ('1722', '李沧区', '262'); INSERT INTO `ce_city` VALUES ('1723', '城阳区', '262'); INSERT INTO `ce_city` VALUES ('1724', '胶州市', '262'); INSERT INTO `ce_city` VALUES ('1725', '即墨市', '262'); INSERT INTO `ce_city` VALUES ('1726', '平度市', '262'); INSERT INTO `ce_city` VALUES ('1727', '胶南市', '262'); INSERT INTO `ce_city` VALUES ('1728', '莱西市', '262'); INSERT INTO `ce_city` VALUES ('1729', '淄川区', '263'); INSERT INTO `ce_city` VALUES ('1730', '张店区', '263'); INSERT INTO `ce_city` VALUES ('1731', '博山区', '263'); INSERT INTO `ce_city` VALUES ('1732', '临淄区', '263'); INSERT INTO `ce_city` VALUES ('1733', '周村区', '263'); INSERT INTO `ce_city` VALUES ('1734', '桓台县', '263'); INSERT INTO `ce_city` VALUES ('1735', '高青县', '263'); INSERT INTO `ce_city` VALUES ('1736', '沂源县', '263'); INSERT INTO `ce_city` VALUES ('1737', '市中区', '264'); INSERT INTO `ce_city` VALUES ('1738', '薛城区', '264'); INSERT INTO `ce_city` VALUES ('1739', '峄城区', '264'); INSERT INTO `ce_city` VALUES ('1740', '台儿庄区', '264'); INSERT INTO `ce_city` VALUES ('1741', '山亭区', '264'); INSERT INTO `ce_city` VALUES ('1742', '滕州市', '264'); INSERT INTO `ce_city` VALUES ('1743', '东营区', '265'); INSERT INTO `ce_city` VALUES ('1744', '河口区', '265'); INSERT INTO `ce_city` VALUES ('1745', '垦利县', '265'); INSERT INTO `ce_city` VALUES ('1746', '利津县', '265'); INSERT INTO `ce_city` VALUES ('1747', '广饶县', '265'); INSERT INTO `ce_city` VALUES ('1748', '芝罘区', '266'); INSERT INTO `ce_city` VALUES ('1749', '福山区', '266'); INSERT INTO `ce_city` VALUES ('1750', '牟平区', '266'); INSERT INTO `ce_city` VALUES ('1751', '莱山区', '266'); INSERT INTO `ce_city` VALUES ('1752', '长岛县', '266'); INSERT INTO `ce_city` VALUES ('1753', '龙口市', '266'); INSERT INTO `ce_city` VALUES ('1754', '莱阳市', '266'); INSERT INTO `ce_city` VALUES ('1755', '莱州市', '266'); INSERT INTO `ce_city` VALUES ('1756', '蓬莱市', '266'); INSERT INTO `ce_city` VALUES ('1757', '招远市', '266'); INSERT INTO `ce_city` VALUES ('1758', '栖霞市', '266'); INSERT INTO `ce_city` VALUES ('1759', '海阳市', '266'); INSERT INTO `ce_city` VALUES ('1760', '潍城区', '267'); INSERT INTO `ce_city` VALUES ('1761', '寒亭区', '267'); INSERT INTO `ce_city` VALUES ('1762', '坊子区', '267'); INSERT INTO `ce_city` VALUES ('1763', '奎文区', '267'); INSERT INTO `ce_city` VALUES ('1764', '临朐县', '267'); INSERT INTO `ce_city` VALUES ('1765', '昌乐县', '267'); INSERT INTO `ce_city` VALUES ('1766', '青州市', '267'); INSERT INTO `ce_city` VALUES ('1767', '诸城市', '267'); INSERT INTO `ce_city` VALUES ('1768', '寿光市', '267'); INSERT INTO `ce_city` VALUES ('1769', '安丘市', '267'); INSERT INTO `ce_city` VALUES ('1770', '高密市', '267'); INSERT INTO `ce_city` VALUES ('1771', '昌邑市', '267'); INSERT INTO `ce_city` VALUES ('1772', '市中区', '268'); INSERT INTO `ce_city` VALUES ('1773', '任城区', '268'); INSERT INTO `ce_city` VALUES ('1774', '微山县', '268'); INSERT INTO `ce_city` VALUES ('1775', '鱼台县', '268'); INSERT INTO `ce_city` VALUES ('1776', '金乡县', '268'); INSERT INTO `ce_city` VALUES ('1777', '嘉祥县', '268'); INSERT INTO `ce_city` VALUES ('1778', '汶上县', '268'); INSERT INTO `ce_city` VALUES ('1779', '泗水县', '268'); INSERT INTO `ce_city` VALUES ('1780', '梁山县', '268'); INSERT INTO `ce_city` VALUES ('1781', '曲阜市', '268'); INSERT INTO `ce_city` VALUES ('1782', '兖州市', '268'); INSERT INTO `ce_city` VALUES ('1783', '邹城市', '268'); INSERT INTO `ce_city` VALUES ('1784', '泰山区', '269'); INSERT INTO `ce_city` VALUES ('1785', '岱岳区', '269'); INSERT INTO `ce_city` VALUES ('1786', '宁阳县', '269'); INSERT INTO `ce_city` VALUES ('1787', '东平县', '269'); INSERT INTO `ce_city` VALUES ('1788', '新泰市', '269'); INSERT INTO `ce_city` VALUES ('1789', '肥城市', '269'); INSERT INTO `ce_city` VALUES ('1790', '环翠区', '270'); INSERT INTO `ce_city` VALUES ('1791', '文登市', '270'); INSERT INTO `ce_city` VALUES ('1792', '荣成市', '270'); INSERT INTO `ce_city` VALUES ('1793', '乳山市', '270'); INSERT INTO `ce_city` VALUES ('1794', '东港区', '271'); INSERT INTO `ce_city` VALUES ('1795', '岚山区', '271'); INSERT INTO `ce_city` VALUES ('1796', '五莲县', '271'); INSERT INTO `ce_city` VALUES ('1797', '莒县', '271'); INSERT INTO `ce_city` VALUES ('1798', '莱城区', '272'); INSERT INTO `ce_city` VALUES ('1799', '钢城区', '272'); INSERT INTO `ce_city` VALUES ('1800', '兰山区', '273'); INSERT INTO `ce_city` VALUES ('1801', '罗庄区', '273'); INSERT INTO `ce_city` VALUES ('1802', '河东区', '273'); INSERT INTO `ce_city` VALUES ('1803', '沂南县', '273'); INSERT INTO `ce_city` VALUES ('1804', '郯城县', '273'); INSERT INTO `ce_city` VALUES ('1805', '沂水县', '273'); INSERT INTO `ce_city` VALUES ('1806', '苍山县', '273'); INSERT INTO `ce_city` VALUES ('1807', '费县', '273'); INSERT INTO `ce_city` VALUES ('1808', '平邑县', '273'); INSERT INTO `ce_city` VALUES ('1809', '莒南县', '273'); INSERT INTO `ce_city` VALUES ('1810', '蒙阴县', '273'); INSERT INTO `ce_city` VALUES ('1811', '临沭县', '273'); INSERT INTO `ce_city` VALUES ('1812', '德城区', '274'); INSERT INTO `ce_city` VALUES ('1813', '陵县', '274'); INSERT INTO `ce_city` VALUES ('1814', '宁津县', '274'); INSERT INTO `ce_city` VALUES ('1815', '庆云县', '274'); INSERT INTO `ce_city` VALUES ('1816', '临邑县', '274'); INSERT INTO `ce_city` VALUES ('1817', '齐河县', '274'); INSERT INTO `ce_city` VALUES ('1818', '平原县', '274'); INSERT INTO `ce_city` VALUES ('1819', '夏津县', '274'); INSERT INTO `ce_city` VALUES ('1820', '武城县', '274'); INSERT INTO `ce_city` VALUES ('1821', '乐陵市', '274'); INSERT INTO `ce_city` VALUES ('1822', '禹城市', '274'); INSERT INTO `ce_city` VALUES ('1823', '东昌府区', '275'); INSERT INTO `ce_city` VALUES ('1824', '阳谷县', '275'); INSERT INTO `ce_city` VALUES ('1825', '莘县', '275'); INSERT INTO `ce_city` VALUES ('1826', '茌平县', '275'); INSERT INTO `ce_city` VALUES ('1827', '东阿县', '275'); INSERT INTO `ce_city` VALUES ('1828', '冠县', '275'); INSERT INTO `ce_city` VALUES ('1829', '高唐县', '275'); INSERT INTO `ce_city` VALUES ('1830', '临清市', '275'); INSERT INTO `ce_city` VALUES ('1831', '滨城区', '276'); INSERT INTO `ce_city` VALUES ('1832', '惠民县', '276'); INSERT INTO `ce_city` VALUES ('1833', '阳信县', '276'); INSERT INTO `ce_city` VALUES ('1834', '无棣县', '276'); INSERT INTO `ce_city` VALUES ('1835', '沾化县', '276'); INSERT INTO `ce_city` VALUES ('1836', '博兴县', '276'); INSERT INTO `ce_city` VALUES ('1837', '邹平县', '276'); INSERT INTO `ce_city` VALUES ('1838', '牡丹区', '277'); INSERT INTO `ce_city` VALUES ('1839', '曹县', '277'); INSERT INTO `ce_city` VALUES ('1840', '单县', '277'); INSERT INTO `ce_city` VALUES ('1841', '成武县', '277'); INSERT INTO `ce_city` VALUES ('1842', '巨野县', '277'); INSERT INTO `ce_city` VALUES ('1843', '郓城县', '277'); INSERT INTO `ce_city` VALUES ('1844', '鄄城县', '277'); INSERT INTO `ce_city` VALUES ('1845', '定陶县', '277'); INSERT INTO `ce_city` VALUES ('1846', '东明县', '277'); INSERT INTO `ce_city` VALUES ('1847', '中原区', '278'); INSERT INTO `ce_city` VALUES ('1848', '二七区', '278'); INSERT INTO `ce_city` VALUES ('1849', '管城回族区', '278'); INSERT INTO `ce_city` VALUES ('1850', '金水区', '278'); INSERT INTO `ce_city` VALUES ('1851', '上街区', '278'); INSERT INTO `ce_city` VALUES ('1852', '惠济区', '278'); INSERT INTO `ce_city` VALUES ('1853', '中牟县', '278'); INSERT INTO `ce_city` VALUES ('1854', '巩义市', '278'); INSERT INTO `ce_city` VALUES ('1855', '荥阳市', '278'); INSERT INTO `ce_city` VALUES ('1856', '新密市', '278'); INSERT INTO `ce_city` VALUES ('1857', '新郑市', '278'); INSERT INTO `ce_city` VALUES ('1858', '登封市', '278'); INSERT INTO `ce_city` VALUES ('1859', '龙亭区', '279'); INSERT INTO `ce_city` VALUES ('1860', '顺河回族区', '279'); INSERT INTO `ce_city` VALUES ('1861', '鼓楼区', '279'); INSERT INTO `ce_city` VALUES ('1862', '禹王台区', '279'); INSERT INTO `ce_city` VALUES ('1863', '金明区', '279'); INSERT INTO `ce_city` VALUES ('1864', '杞县', '279'); INSERT INTO `ce_city` VALUES ('1865', '通许县', '279'); INSERT INTO `ce_city` VALUES ('1866', '尉氏县', '279'); INSERT INTO `ce_city` VALUES ('1867', '开封县', '279'); INSERT INTO `ce_city` VALUES ('1868', '兰考县', '279'); INSERT INTO `ce_city` VALUES ('1869', '老城区', '280'); INSERT INTO `ce_city` VALUES ('1870', '西工区', '280'); INSERT INTO `ce_city` VALUES ('1871', '廛河回族区', '280'); INSERT INTO `ce_city` VALUES ('1872', '涧西区', '280'); INSERT INTO `ce_city` VALUES ('1873', '吉利区', '280'); INSERT INTO `ce_city` VALUES ('1874', '洛龙区', '280'); INSERT INTO `ce_city` VALUES ('1875', '孟津县', '280'); INSERT INTO `ce_city` VALUES ('1876', '新安县', '280'); INSERT INTO `ce_city` VALUES ('1877', '栾川县', '280'); INSERT INTO `ce_city` VALUES ('1878', '嵩县', '280'); INSERT INTO `ce_city` VALUES ('1879', '汝阳县', '280'); INSERT INTO `ce_city` VALUES ('1880', '宜阳县', '280'); INSERT INTO `ce_city` VALUES ('1881', '洛宁县', '280'); INSERT INTO `ce_city` VALUES ('1882', '伊川县', '280'); INSERT INTO `ce_city` VALUES ('1883', '偃师市', '280'); INSERT INTO `ce_city` VALUES ('1884', '新华区', '281'); INSERT INTO `ce_city` VALUES ('1885', '卫东区', '281'); INSERT INTO `ce_city` VALUES ('1886', '石龙区', '281'); INSERT INTO `ce_city` VALUES ('1887', '湛河区', '281'); INSERT INTO `ce_city` VALUES ('1888', '宝丰县', '281'); INSERT INTO `ce_city` VALUES ('1889', '叶县', '281'); INSERT INTO `ce_city` VALUES ('1890', '鲁山县', '281'); INSERT INTO `ce_city` VALUES ('1891', '郏县', '281'); INSERT INTO `ce_city` VALUES ('1892', '舞钢市', '281'); INSERT INTO `ce_city` VALUES ('1893', '汝州市', '281'); INSERT INTO `ce_city` VALUES ('1894', '文峰区', '282'); INSERT INTO `ce_city` VALUES ('1895', '北关区', '282'); INSERT INTO `ce_city` VALUES ('1896', '殷都区', '282'); INSERT INTO `ce_city` VALUES ('1897', '龙安区', '282'); INSERT INTO `ce_city` VALUES ('1898', '安阳县', '282'); INSERT INTO `ce_city` VALUES ('1899', '汤阴县', '282'); INSERT INTO `ce_city` VALUES ('1900', '滑县', '282'); INSERT INTO `ce_city` VALUES ('1901', '内黄县', '282'); INSERT INTO `ce_city` VALUES ('1902', '林州市', '282'); INSERT INTO `ce_city` VALUES ('1903', '鹤山区', '283'); INSERT INTO `ce_city` VALUES ('1904', '山城区', '283'); INSERT INTO `ce_city` VALUES ('1905', '淇滨区', '283'); INSERT INTO `ce_city` VALUES ('1906', '浚县', '283'); INSERT INTO `ce_city` VALUES ('1907', '淇县', '283'); INSERT INTO `ce_city` VALUES ('1908', '红旗区', '284'); INSERT INTO `ce_city` VALUES ('1909', '卫滨区', '284'); INSERT INTO `ce_city` VALUES ('1910', '凤泉区', '284'); INSERT INTO `ce_city` VALUES ('1911', '牧野区', '284'); INSERT INTO `ce_city` VALUES ('1912', '新乡县', '284'); INSERT INTO `ce_city` VALUES ('1913', '获嘉县', '284'); INSERT INTO `ce_city` VALUES ('1914', '原阳县', '284'); INSERT INTO `ce_city` VALUES ('1915', '延津县', '284'); INSERT INTO `ce_city` VALUES ('1916', '封丘县', '284'); INSERT INTO `ce_city` VALUES ('1917', '长垣县', '284'); INSERT INTO `ce_city` VALUES ('1918', '卫辉市', '284'); INSERT INTO `ce_city` VALUES ('1919', '辉县市', '284'); INSERT INTO `ce_city` VALUES ('1920', '解放区', '285'); INSERT INTO `ce_city` VALUES ('1921', '中站区', '285'); INSERT INTO `ce_city` VALUES ('1922', '马村区', '285'); INSERT INTO `ce_city` VALUES ('1923', '山阳区', '285'); INSERT INTO `ce_city` VALUES ('1924', '修武县', '285'); INSERT INTO `ce_city` VALUES ('1925', '博爱县', '285'); INSERT INTO `ce_city` VALUES ('1926', '武陟县', '285'); INSERT INTO `ce_city` VALUES ('1927', '温县', '285'); INSERT INTO `ce_city` VALUES ('1928', '济源市', '285'); INSERT INTO `ce_city` VALUES ('1929', '沁阳市', '285'); INSERT INTO `ce_city` VALUES ('1930', '孟州市', '285'); INSERT INTO `ce_city` VALUES ('1931', '华龙区', '286'); INSERT INTO `ce_city` VALUES ('1932', '清丰县', '286'); INSERT INTO `ce_city` VALUES ('1933', '南乐县', '286'); INSERT INTO `ce_city` VALUES ('1934', '范县', '286'); INSERT INTO `ce_city` VALUES ('1935', '台前县', '286'); INSERT INTO `ce_city` VALUES ('1936', '濮阳县', '286'); INSERT INTO `ce_city` VALUES ('1937', '魏都区', '287'); INSERT INTO `ce_city` VALUES ('1938', '许昌县', '287'); INSERT INTO `ce_city` VALUES ('1939', '鄢陵县', '287'); INSERT INTO `ce_city` VALUES ('1940', '襄城县', '287'); INSERT INTO `ce_city` VALUES ('1941', '禹州市', '287'); INSERT INTO `ce_city` VALUES ('1942', '长葛市', '287'); INSERT INTO `ce_city` VALUES ('1943', '源汇区', '288'); INSERT INTO `ce_city` VALUES ('1944', '郾城区', '288'); INSERT INTO `ce_city` VALUES ('1945', '召陵区', '288'); INSERT INTO `ce_city` VALUES ('1946', '舞阳县', '288'); INSERT INTO `ce_city` VALUES ('1947', '临颍县', '288'); INSERT INTO `ce_city` VALUES ('1948', '湖滨区', '289'); INSERT INTO `ce_city` VALUES ('1949', '渑池县', '289'); INSERT INTO `ce_city` VALUES ('1950', '陕县', '289'); INSERT INTO `ce_city` VALUES ('1951', '卢氏县', '289'); INSERT INTO `ce_city` VALUES ('1952', '义马市', '289'); INSERT INTO `ce_city` VALUES ('1953', '灵宝市', '289'); INSERT INTO `ce_city` VALUES ('1954', '宛城区', '290'); INSERT INTO `ce_city` VALUES ('1955', '卧龙区', '290'); INSERT INTO `ce_city` VALUES ('1956', '南召县', '290'); INSERT INTO `ce_city` VALUES ('1957', '方城县', '290'); INSERT INTO `ce_city` VALUES ('1958', '西峡县', '290'); INSERT INTO `ce_city` VALUES ('1959', '镇平县', '290'); INSERT INTO `ce_city` VALUES ('1960', '内乡县', '290'); INSERT INTO `ce_city` VALUES ('1961', '淅川县', '290'); INSERT INTO `ce_city` VALUES ('1962', '社旗县', '290'); INSERT INTO `ce_city` VALUES ('1963', '唐河县', '290'); INSERT INTO `ce_city` VALUES ('1964', '新野县', '290'); INSERT INTO `ce_city` VALUES ('1965', '桐柏县', '290'); INSERT INTO `ce_city` VALUES ('1966', '邓州市', '290'); INSERT INTO `ce_city` VALUES ('1967', '梁园区', '291'); INSERT INTO `ce_city` VALUES ('1968', '睢阳区', '291'); INSERT INTO `ce_city` VALUES ('1969', '民权县', '291'); INSERT INTO `ce_city` VALUES ('1970', '睢县', '291'); INSERT INTO `ce_city` VALUES ('1971', '宁陵县', '291'); INSERT INTO `ce_city` VALUES ('1972', '柘城县', '291'); INSERT INTO `ce_city` VALUES ('1973', '虞城县', '291'); INSERT INTO `ce_city` VALUES ('1974', '夏邑县', '291'); INSERT INTO `ce_city` VALUES ('1975', '永城市', '291'); INSERT INTO `ce_city` VALUES ('1976', '浉河区', '292'); INSERT INTO `ce_city` VALUES ('1977', '平桥区', '292'); INSERT INTO `ce_city` VALUES ('1978', '罗山县', '292'); INSERT INTO `ce_city` VALUES ('1979', '光山县', '292'); INSERT INTO `ce_city` VALUES ('1980', '新县', '292'); INSERT INTO `ce_city` VALUES ('1981', '商城县', '292'); INSERT INTO `ce_city` VALUES ('1982', '固始县', '292'); INSERT INTO `ce_city` VALUES ('1983', '潢川县', '292'); INSERT INTO `ce_city` VALUES ('1984', '淮滨县', '292'); INSERT INTO `ce_city` VALUES ('1985', '息县', '292'); INSERT INTO `ce_city` VALUES ('1986', '川汇区', '293'); INSERT INTO `ce_city` VALUES ('1987', '扶沟县', '293'); INSERT INTO `ce_city` VALUES ('1988', '西华县', '293'); INSERT INTO `ce_city` VALUES ('1989', '商水县', '293'); INSERT INTO `ce_city` VALUES ('1990', '沈丘县', '293'); INSERT INTO `ce_city` VALUES ('1991', '郸城县', '293'); INSERT INTO `ce_city` VALUES ('1992', '淮阳县', '293'); INSERT INTO `ce_city` VALUES ('1993', '太康县', '293'); INSERT INTO `ce_city` VALUES ('1994', '鹿邑县', '293'); INSERT INTO `ce_city` VALUES ('1995', '项城市', '293'); INSERT INTO `ce_city` VALUES ('1996', '驿城区', '294'); INSERT INTO `ce_city` VALUES ('1997', '西平县', '294'); INSERT INTO `ce_city` VALUES ('1998', '上蔡县', '294'); INSERT INTO `ce_city` VALUES ('1999', '平舆县', '294'); INSERT INTO `ce_city` VALUES ('2000', '正阳县', '294'); INSERT INTO `ce_city` VALUES ('2001', '确山县', '294'); INSERT INTO `ce_city` VALUES ('2002', '泌阳县', '294'); INSERT INTO `ce_city` VALUES ('2003', '汝南县', '294'); INSERT INTO `ce_city` VALUES ('2004', '遂平县', '294'); INSERT INTO `ce_city` VALUES ('2005', '新蔡县', '294'); INSERT INTO `ce_city` VALUES ('2006', '江岸区', '295'); INSERT INTO `ce_city` VALUES ('2007', '江汉区', '295'); INSERT INTO `ce_city` VALUES ('2008', '硚口区', '295'); INSERT INTO `ce_city` VALUES ('2009', '汉阳区', '295'); INSERT INTO `ce_city` VALUES ('2010', '武昌区', '295'); INSERT INTO `ce_city` VALUES ('2011', '青山区', '295'); INSERT INTO `ce_city` VALUES ('2012', '洪山区', '295'); INSERT INTO `ce_city` VALUES ('2013', '东西湖区', '295'); INSERT INTO `ce_city` VALUES ('2014', '汉南区', '295'); INSERT INTO `ce_city` VALUES ('2015', '蔡甸区', '295'); INSERT INTO `ce_city` VALUES ('2016', '江夏区', '295'); INSERT INTO `ce_city` VALUES ('2017', '黄陂区', '295'); INSERT INTO `ce_city` VALUES ('2018', '新洲区', '295'); INSERT INTO `ce_city` VALUES ('2019', '黄石港区', '296'); INSERT INTO `ce_city` VALUES ('2020', '西塞山区', '296'); INSERT INTO `ce_city` VALUES ('2021', '下陆区', '296'); INSERT INTO `ce_city` VALUES ('2022', '铁山区', '296'); INSERT INTO `ce_city` VALUES ('2023', '阳新县', '296'); INSERT INTO `ce_city` VALUES ('2024', '大冶市', '296'); INSERT INTO `ce_city` VALUES ('2025', '茅箭区', '297'); INSERT INTO `ce_city` VALUES ('2026', '张湾区', '297'); INSERT INTO `ce_city` VALUES ('2027', '郧县', '297'); INSERT INTO `ce_city` VALUES ('2028', '郧西县', '297'); INSERT INTO `ce_city` VALUES ('2029', '竹山县', '297'); INSERT INTO `ce_city` VALUES ('2030', '竹溪县', '297'); INSERT INTO `ce_city` VALUES ('2031', '房县', '297'); INSERT INTO `ce_city` VALUES ('2032', '丹江口市', '297'); INSERT INTO `ce_city` VALUES ('2033', '西陵区', '298'); INSERT INTO `ce_city` VALUES ('2034', '伍家岗区', '298'); INSERT INTO `ce_city` VALUES ('2035', '点军区', '298'); INSERT INTO `ce_city` VALUES ('2036', '猇亭区', '298'); INSERT INTO `ce_city` VALUES ('2037', '夷陵区', '298'); INSERT INTO `ce_city` VALUES ('2038', '远安县', '298'); INSERT INTO `ce_city` VALUES ('2039', '兴山县', '298'); INSERT INTO `ce_city` VALUES ('2040', '秭归县', '298'); INSERT INTO `ce_city` VALUES ('2041', '长阳土家族自治县', '298'); INSERT INTO `ce_city` VALUES ('2042', '五峰土家族自治县', '298'); INSERT INTO `ce_city` VALUES ('2043', '宜都市', '298'); INSERT INTO `ce_city` VALUES ('2044', '当阳市', '298'); INSERT INTO `ce_city` VALUES ('2045', '枝江市', '298'); INSERT INTO `ce_city` VALUES ('2046', '襄城区', '299'); INSERT INTO `ce_city` VALUES ('2047', '樊城区', '299'); INSERT INTO `ce_city` VALUES ('2048', '襄阳区', '299'); INSERT INTO `ce_city` VALUES ('2049', '南漳县', '299'); INSERT INTO `ce_city` VALUES ('2050', '谷城县', '299'); INSERT INTO `ce_city` VALUES ('2051', '保康县', '299'); INSERT INTO `ce_city` VALUES ('2052', '老河口市', '299'); INSERT INTO `ce_city` VALUES ('2053', '枣阳市', '299'); INSERT INTO `ce_city` VALUES ('2054', '宜城市', '299'); INSERT INTO `ce_city` VALUES ('2055', '梁子湖区', '300'); INSERT INTO `ce_city` VALUES ('2056', '华容区', '300'); INSERT INTO `ce_city` VALUES ('2057', '鄂城区', '300'); INSERT INTO `ce_city` VALUES ('2058', '东宝区', '301'); INSERT INTO `ce_city` VALUES ('2059', '掇刀区', '301'); INSERT INTO `ce_city` VALUES ('2060', '京山县', '301'); INSERT INTO `ce_city` VALUES ('2061', '沙洋县', '301'); INSERT INTO `ce_city` VALUES ('2062', '钟祥市', '301'); INSERT INTO `ce_city` VALUES ('2063', '孝南区', '302'); INSERT INTO `ce_city` VALUES ('2064', '孝昌县', '302'); INSERT INTO `ce_city` VALUES ('2065', '大悟县', '302'); INSERT INTO `ce_city` VALUES ('2066', '云梦县', '302'); INSERT INTO `ce_city` VALUES ('2067', '应城市', '302'); INSERT INTO `ce_city` VALUES ('2068', '安陆市', '302'); INSERT INTO `ce_city` VALUES ('2069', '汉川市', '302'); INSERT INTO `ce_city` VALUES ('2070', '沙市区', '303'); INSERT INTO `ce_city` VALUES ('2071', '荆州区', '303'); INSERT INTO `ce_city` VALUES ('2072', '公安县', '303'); INSERT INTO `ce_city` VALUES ('2073', '监利县', '303'); INSERT INTO `ce_city` VALUES ('2074', '江陵县', '303'); INSERT INTO `ce_city` VALUES ('2075', '石首市', '303'); INSERT INTO `ce_city` VALUES ('2076', '洪湖市', '303'); INSERT INTO `ce_city` VALUES ('2077', '松滋市', '303'); INSERT INTO `ce_city` VALUES ('2078', '黄州区', '304'); INSERT INTO `ce_city` VALUES ('2079', '团风县', '304'); INSERT INTO `ce_city` VALUES ('2080', '红安县', '304'); INSERT INTO `ce_city` VALUES ('2081', '罗田县', '304'); INSERT INTO `ce_city` VALUES ('2082', '英山县', '304'); INSERT INTO `ce_city` VALUES ('2083', '浠水县', '304'); INSERT INTO `ce_city` VALUES ('2084', '蕲春县', '304'); INSERT INTO `ce_city` VALUES ('2085', '黄梅县', '304'); INSERT INTO `ce_city` VALUES ('2086', '麻城市', '304'); INSERT INTO `ce_city` VALUES ('2087', '武穴市', '304'); INSERT INTO `ce_city` VALUES ('2088', '咸安区', '305'); INSERT INTO `ce_city` VALUES ('2089', '嘉鱼县', '305'); INSERT INTO `ce_city` VALUES ('2090', '通城县', '305'); INSERT INTO `ce_city` VALUES ('2091', '崇阳县', '305'); INSERT INTO `ce_city` VALUES ('2092', '通山县', '305'); INSERT INTO `ce_city` VALUES ('2093', '赤壁市', '305'); INSERT INTO `ce_city` VALUES ('2094', '曾都区', '306'); INSERT INTO `ce_city` VALUES ('2095', '广水市', '306'); INSERT INTO `ce_city` VALUES ('2096', '恩施市', '307'); INSERT INTO `ce_city` VALUES ('2097', '利川市', '307'); INSERT INTO `ce_city` VALUES ('2098', '建始县', '307'); INSERT INTO `ce_city` VALUES ('2099', '巴东县', '307'); INSERT INTO `ce_city` VALUES ('2100', '宣恩县', '307'); INSERT INTO `ce_city` VALUES ('2101', '咸丰县', '307'); INSERT INTO `ce_city` VALUES ('2102', '来凤县', '307'); INSERT INTO `ce_city` VALUES ('2103', '鹤峰县', '307'); INSERT INTO `ce_city` VALUES ('2104', '芙蓉区', '312'); INSERT INTO `ce_city` VALUES ('2105', '天心区', '312'); INSERT INTO `ce_city` VALUES ('2106', '岳麓区', '312'); INSERT INTO `ce_city` VALUES ('2107', '开福区', '312'); INSERT INTO `ce_city` VALUES ('2108', '雨花区', '312'); INSERT INTO `ce_city` VALUES ('2109', '长沙县', '312'); INSERT INTO `ce_city` VALUES ('2110', '望城县', '312'); INSERT INTO `ce_city` VALUES ('2111', '宁乡县', '312'); INSERT INTO `ce_city` VALUES ('2112', '浏阳市', '312'); INSERT INTO `ce_city` VALUES ('2113', '荷塘区', '313'); INSERT INTO `ce_city` VALUES ('2114', '芦淞区', '313'); INSERT INTO `ce_city` VALUES ('2115', '石峰区', '313'); INSERT INTO `ce_city` VALUES ('2116', '天元区', '313'); INSERT INTO `ce_city` VALUES ('2117', '株洲县', '313'); INSERT INTO `ce_city` VALUES ('2118', '攸县', '313'); INSERT INTO `ce_city` VALUES ('2119', '茶陵县', '313'); INSERT INTO `ce_city` VALUES ('2120', '炎陵县', '313'); INSERT INTO `ce_city` VALUES ('2121', '醴陵市', '313'); INSERT INTO `ce_city` VALUES ('2122', '雨湖区', '314'); INSERT INTO `ce_city` VALUES ('2123', '岳塘区', '314'); INSERT INTO `ce_city` VALUES ('2124', '湘潭县', '314'); INSERT INTO `ce_city` VALUES ('2125', '湘乡市', '314'); INSERT INTO `ce_city` VALUES ('2126', '韶山市', '314'); INSERT INTO `ce_city` VALUES ('2127', '珠晖区', '315'); INSERT INTO `ce_city` VALUES ('2128', '雁峰区', '315'); INSERT INTO `ce_city` VALUES ('2129', '石鼓区', '315'); INSERT INTO `ce_city` VALUES ('2130', '蒸湘区', '315'); INSERT INTO `ce_city` VALUES ('2131', '南岳区', '315'); INSERT INTO `ce_city` VALUES ('2132', '衡阳县', '315'); INSERT INTO `ce_city` VALUES ('2133', '衡南县', '315'); INSERT INTO `ce_city` VALUES ('2134', '衡山县', '315'); INSERT INTO `ce_city` VALUES ('2135', '衡东县', '315'); INSERT INTO `ce_city` VALUES ('2136', '祁东县', '315'); INSERT INTO `ce_city` VALUES ('2137', '耒阳市', '315'); INSERT INTO `ce_city` VALUES ('2138', '常宁市', '315'); INSERT INTO `ce_city` VALUES ('2139', '双清区', '316'); INSERT INTO `ce_city` VALUES ('2140', '大祥区', '316'); INSERT INTO `ce_city` VALUES ('2141', '北塔区', '316'); INSERT INTO `ce_city` VALUES ('2142', '邵东县', '316'); INSERT INTO `ce_city` VALUES ('2143', '新邵县', '316'); INSERT INTO `ce_city` VALUES ('2144', '邵阳县', '316'); INSERT INTO `ce_city` VALUES ('2145', '隆回县', '316'); INSERT INTO `ce_city` VALUES ('2146', '洞口县', '316'); INSERT INTO `ce_city` VALUES ('2147', '绥宁县', '316'); INSERT INTO `ce_city` VALUES ('2148', '新宁县', '316'); INSERT INTO `ce_city` VALUES ('2149', '城步苗族自治县', '316'); INSERT INTO `ce_city` VALUES ('2150', '武冈市', '316'); INSERT INTO `ce_city` VALUES ('2151', '岳阳楼区', '317'); INSERT INTO `ce_city` VALUES ('2152', '云溪区', '317'); INSERT INTO `ce_city` VALUES ('2153', '君山区', '317'); INSERT INTO `ce_city` VALUES ('2154', '岳阳县', '317'); INSERT INTO `ce_city` VALUES ('2155', '华容县', '317'); INSERT INTO `ce_city` VALUES ('2156', '湘阴县', '317'); INSERT INTO `ce_city` VALUES ('2157', '平江县', '317'); INSERT INTO `ce_city` VALUES ('2158', '汨罗市', '317'); INSERT INTO `ce_city` VALUES ('2159', '临湘市', '317'); INSERT INTO `ce_city` VALUES ('2160', '武陵区', '318'); INSERT INTO `ce_city` VALUES ('2161', '鼎城区', '318'); INSERT INTO `ce_city` VALUES ('2162', '安乡县', '318'); INSERT INTO `ce_city` VALUES ('2163', '汉寿县', '318'); INSERT INTO `ce_city` VALUES ('2164', '澧县', '318'); INSERT INTO `ce_city` VALUES ('2165', '临澧县', '318'); INSERT INTO `ce_city` VALUES ('2166', '桃源县', '318'); INSERT INTO `ce_city` VALUES ('2167', '石门县', '318'); INSERT INTO `ce_city` VALUES ('2168', '津市市', '318'); INSERT INTO `ce_city` VALUES ('2169', '永定区', '319'); INSERT INTO `ce_city` VALUES ('2170', '武陵源区', '319'); INSERT INTO `ce_city` VALUES ('2171', '慈利县', '319'); INSERT INTO `ce_city` VALUES ('2172', '桑植县', '319'); INSERT INTO `ce_city` VALUES ('2173', '资阳区', '320'); INSERT INTO `ce_city` VALUES ('2174', '赫山区', '320'); INSERT INTO `ce_city` VALUES ('2175', '南县', '320'); INSERT INTO `ce_city` VALUES ('2176', '桃江县', '320'); INSERT INTO `ce_city` VALUES ('2177', '安化县', '320'); INSERT INTO `ce_city` VALUES ('2178', '沅江市', '320'); INSERT INTO `ce_city` VALUES ('2179', '北湖区', '321'); INSERT INTO `ce_city` VALUES ('2180', '苏仙区', '321'); INSERT INTO `ce_city` VALUES ('2181', '桂阳县', '321'); INSERT INTO `ce_city` VALUES ('2182', '宜章县', '321'); INSERT INTO `ce_city` VALUES ('2183', '永兴县', '321'); INSERT INTO `ce_city` VALUES ('2184', '嘉禾县', '321'); INSERT INTO `ce_city` VALUES ('2185', '临武县', '321'); INSERT INTO `ce_city` VALUES ('2186', '汝城县', '321'); INSERT INTO `ce_city` VALUES ('2187', '桂东县', '321'); INSERT INTO `ce_city` VALUES ('2188', '安仁县', '321'); INSERT INTO `ce_city` VALUES ('2189', '资兴市', '321'); INSERT INTO `ce_city` VALUES ('2190', '零陵区', '322'); INSERT INTO `ce_city` VALUES ('2191', '冷水滩区', '322'); INSERT INTO `ce_city` VALUES ('2192', '祁阳县', '322'); INSERT INTO `ce_city` VALUES ('2193', '东安县', '322'); INSERT INTO `ce_city` VALUES ('2194', '双牌县', '322'); INSERT INTO `ce_city` VALUES ('2195', '道县', '322'); INSERT INTO `ce_city` VALUES ('2196', '江永县', '322'); INSERT INTO `ce_city` VALUES ('2197', '宁远县', '322'); INSERT INTO `ce_city` VALUES ('2198', '蓝山县', '322'); INSERT INTO `ce_city` VALUES ('2199', '新田县', '322'); INSERT INTO `ce_city` VALUES ('2200', '江华瑶族自治县', '322'); INSERT INTO `ce_city` VALUES ('2201', '鹤城区', '323'); INSERT INTO `ce_city` VALUES ('2202', '中方县', '323'); INSERT INTO `ce_city` VALUES ('2203', '沅陵县', '323'); INSERT INTO `ce_city` VALUES ('2204', '辰溪县', '323'); INSERT INTO `ce_city` VALUES ('2205', '溆浦县', '323'); INSERT INTO `ce_city` VALUES ('2206', '会同县', '323'); INSERT INTO `ce_city` VALUES ('2207', '麻阳苗族自治县', '323'); INSERT INTO `ce_city` VALUES ('2208', '新晃侗族自治县', '323'); INSERT INTO `ce_city` VALUES ('2209', '芷江侗族自治县', '323'); INSERT INTO `ce_city` VALUES ('2210', '靖州苗族侗族自治县', '323'); INSERT INTO `ce_city` VALUES ('2211', '通道侗族自治县', '323'); INSERT INTO `ce_city` VALUES ('2212', '洪江市', '323'); INSERT INTO `ce_city` VALUES ('2213', '娄星区', '324'); INSERT INTO `ce_city` VALUES ('2214', '双峰县', '324'); INSERT INTO `ce_city` VALUES ('2215', '新化县', '324'); INSERT INTO `ce_city` VALUES ('2216', '冷水江市', '324'); INSERT INTO `ce_city` VALUES ('2217', '涟源市', '324'); INSERT INTO `ce_city` VALUES ('2218', '吉首市', '325'); INSERT INTO `ce_city` VALUES ('2219', '泸溪县', '325'); INSERT INTO `ce_city` VALUES ('2220', '凤凰县', '325'); INSERT INTO `ce_city` VALUES ('2221', '花垣县', '325'); INSERT INTO `ce_city` VALUES ('2222', '保靖县', '325'); INSERT INTO `ce_city` VALUES ('2223', '古丈县', '325'); INSERT INTO `ce_city` VALUES ('2224', '永顺县', '325'); INSERT INTO `ce_city` VALUES ('2225', '龙山县', '325'); INSERT INTO `ce_city` VALUES ('2226', '荔湾区', '326'); INSERT INTO `ce_city` VALUES ('2227', '越秀区', '326'); INSERT INTO `ce_city` VALUES ('2228', '海珠区', '326'); INSERT INTO `ce_city` VALUES ('2229', '天河区', '326'); INSERT INTO `ce_city` VALUES ('2230', '白云区', '326'); INSERT INTO `ce_city` VALUES ('2231', '黄埔区', '326'); INSERT INTO `ce_city` VALUES ('2232', '番禺区', '326'); INSERT INTO `ce_city` VALUES ('2233', '花都区', '326'); INSERT INTO `ce_city` VALUES ('2234', '南沙区', '326'); INSERT INTO `ce_city` VALUES ('2235', '萝岗区', '326'); INSERT INTO `ce_city` VALUES ('2236', '增城市', '326'); INSERT INTO `ce_city` VALUES ('2237', '从化市', '326'); INSERT INTO `ce_city` VALUES ('2238', '武江区', '327'); INSERT INTO `ce_city` VALUES ('2239', '浈江区', '327'); INSERT INTO `ce_city` VALUES ('2240', '曲江区', '327'); INSERT INTO `ce_city` VALUES ('2241', '始兴县', '327'); INSERT INTO `ce_city` VALUES ('2242', '仁化县', '327'); INSERT INTO `ce_city` VALUES ('2243', '翁源县', '327'); INSERT INTO `ce_city` VALUES ('2244', '乳源瑶族自治县', '327'); INSERT INTO `ce_city` VALUES ('2245', '新丰县', '327'); INSERT INTO `ce_city` VALUES ('2246', '乐昌市', '327'); INSERT INTO `ce_city` VALUES ('2247', '南雄市', '327'); INSERT INTO `ce_city` VALUES ('2248', '罗湖区', '328'); INSERT INTO `ce_city` VALUES ('2249', '福田区', '328'); INSERT INTO `ce_city` VALUES ('2250', '南山区', '328'); INSERT INTO `ce_city` VALUES ('2251', '宝安区', '328'); INSERT INTO `ce_city` VALUES ('2252', '龙岗区', '328'); INSERT INTO `ce_city` VALUES ('2253', '盐田区', '328'); INSERT INTO `ce_city` VALUES ('2254', '香洲区', '329'); INSERT INTO `ce_city` VALUES ('2255', '斗门区', '329'); INSERT INTO `ce_city` VALUES ('2256', '金湾区', '329'); INSERT INTO `ce_city` VALUES ('2257', '龙湖区', '330'); INSERT INTO `ce_city` VALUES ('2258', '金平区', '330'); INSERT INTO `ce_city` VALUES ('2259', '濠江区', '330'); INSERT INTO `ce_city` VALUES ('2260', '潮阳区', '330'); INSERT INTO `ce_city` VALUES ('2261', '潮南区', '330'); INSERT INTO `ce_city` VALUES ('2262', '澄海区', '330'); INSERT INTO `ce_city` VALUES ('2263', '南澳县', '330'); INSERT INTO `ce_city` VALUES ('2264', '禅城区', '331'); INSERT INTO `ce_city` VALUES ('2265', '南海区', '331'); INSERT INTO `ce_city` VALUES ('2266', '顺德区', '331'); INSERT INTO `ce_city` VALUES ('2267', '三水区', '331'); INSERT INTO `ce_city` VALUES ('2268', '高明区', '331'); INSERT INTO `ce_city` VALUES ('2269', '蓬江区', '332'); INSERT INTO `ce_city` VALUES ('2270', '江海区', '332'); INSERT INTO `ce_city` VALUES ('2271', '新会区', '332'); INSERT INTO `ce_city` VALUES ('2272', '台山市', '332'); INSERT INTO `ce_city` VALUES ('2273', '开平市', '332'); INSERT INTO `ce_city` VALUES ('2274', '鹤山市', '332'); INSERT INTO `ce_city` VALUES ('2275', '恩平市', '332'); INSERT INTO `ce_city` VALUES ('2276', '赤坎区', '333'); INSERT INTO `ce_city` VALUES ('2277', '霞山区', '333'); INSERT INTO `ce_city` VALUES ('2278', '坡头区', '333'); INSERT INTO `ce_city` VALUES ('2279', '麻章区', '333'); INSERT INTO `ce_city` VALUES ('2280', '遂溪县', '333'); INSERT INTO `ce_city` VALUES ('2281', '徐闻县', '333'); INSERT INTO `ce_city` VALUES ('2282', '廉江市', '333'); INSERT INTO `ce_city` VALUES ('2283', '雷州市', '333'); INSERT INTO `ce_city` VALUES ('2284', '吴川市', '333'); INSERT INTO `ce_city` VALUES ('2285', '茂南区', '334'); INSERT INTO `ce_city` VALUES ('2286', '茂港区', '334'); INSERT INTO `ce_city` VALUES ('2287', '电白县', '334'); INSERT INTO `ce_city` VALUES ('2288', '高州市', '334'); INSERT INTO `ce_city` VALUES ('2289', '化州市', '334'); INSERT INTO `ce_city` VALUES ('2290', '信宜市', '334'); INSERT INTO `ce_city` VALUES ('2291', '端州区', '335'); INSERT INTO `ce_city` VALUES ('2292', '鼎湖区', '335'); INSERT INTO `ce_city` VALUES ('2293', '广宁县', '335'); INSERT INTO `ce_city` VALUES ('2294', '怀集县', '335'); INSERT INTO `ce_city` VALUES ('2295', '封开县', '335'); INSERT INTO `ce_city` VALUES ('2296', '德庆县', '335'); INSERT INTO `ce_city` VALUES ('2297', '高要市', '335'); INSERT INTO `ce_city` VALUES ('2298', '四会市', '335'); INSERT INTO `ce_city` VALUES ('2299', '惠城区', '336'); INSERT INTO `ce_city` VALUES ('2300', '惠阳区', '336'); INSERT INTO `ce_city` VALUES ('2301', '博罗县', '336'); INSERT INTO `ce_city` VALUES ('2302', '惠东县', '336'); INSERT INTO `ce_city` VALUES ('2303', '龙门县', '336'); INSERT INTO `ce_city` VALUES ('2304', '梅江区', '337'); INSERT INTO `ce_city` VALUES ('2305', '梅县', '337'); INSERT INTO `ce_city` VALUES ('2306', '大埔县', '337'); INSERT INTO `ce_city` VALUES ('2307', '丰顺县', '337'); INSERT INTO `ce_city` VALUES ('2308', '五华县', '337'); INSERT INTO `ce_city` VALUES ('2309', '平远县', '337'); INSERT INTO `ce_city` VALUES ('2310', '蕉岭县', '337'); INSERT INTO `ce_city` VALUES ('2311', '兴宁市', '337'); INSERT INTO `ce_city` VALUES ('2312', '城区', '338'); INSERT INTO `ce_city` VALUES ('2313', '海丰县', '338'); INSERT INTO `ce_city` VALUES ('2314', '陆河县', '338'); INSERT INTO `ce_city` VALUES ('2315', '陆丰市', '338'); INSERT INTO `ce_city` VALUES ('2316', '源城区', '339'); INSERT INTO `ce_city` VALUES ('2317', '紫金县', '339'); INSERT INTO `ce_city` VALUES ('2318', '龙川县', '339'); INSERT INTO `ce_city` VALUES ('2319', '连平县', '339'); INSERT INTO `ce_city` VALUES ('2320', '和平县', '339'); INSERT INTO `ce_city` VALUES ('2321', '东源县', '339'); INSERT INTO `ce_city` VALUES ('2322', '江城区', '340'); INSERT INTO `ce_city` VALUES ('2323', '阳西县', '340'); INSERT INTO `ce_city` VALUES ('2324', '阳东县', '340'); INSERT INTO `ce_city` VALUES ('2325', '阳春市', '340'); INSERT INTO `ce_city` VALUES ('2326', '清城区', '341'); INSERT INTO `ce_city` VALUES ('2327', '佛冈县', '341'); INSERT INTO `ce_city` VALUES ('2328', '阳山县', '341'); INSERT INTO `ce_city` VALUES ('2329', '连山壮族瑶族自治县', '341'); INSERT INTO `ce_city` VALUES ('2330', '连南瑶族自治县', '341'); INSERT INTO `ce_city` VALUES ('2331', '清新县', '341'); INSERT INTO `ce_city` VALUES ('2332', '英德市', '341'); INSERT INTO `ce_city` VALUES ('2333', '连州市', '341'); INSERT INTO `ce_city` VALUES ('2334', '湘桥区', '344'); INSERT INTO `ce_city` VALUES ('2335', '潮安县', '344'); INSERT INTO `ce_city` VALUES ('2336', '饶平县', '344'); INSERT INTO `ce_city` VALUES ('2337', '榕城区', '345'); INSERT INTO `ce_city` VALUES ('2338', '揭东县', '345'); INSERT INTO `ce_city` VALUES ('2339', '揭西县', '345'); INSERT INTO `ce_city` VALUES ('2340', '惠来县', '345'); INSERT INTO `ce_city` VALUES ('2341', '普宁市', '345'); INSERT INTO `ce_city` VALUES ('2342', '云城区', '346'); INSERT INTO `ce_city` VALUES ('2343', '新兴县', '346'); INSERT INTO `ce_city` VALUES ('2344', '郁南县', '346'); INSERT INTO `ce_city` VALUES ('2345', '云安县', '346'); INSERT INTO `ce_city` VALUES ('2346', '罗定市', '346'); INSERT INTO `ce_city` VALUES ('2347', '兴宁区', '347'); INSERT INTO `ce_city` VALUES ('2348', '青秀区', '347'); INSERT INTO `ce_city` VALUES ('2349', '江南区', '347'); INSERT INTO `ce_city` VALUES ('2350', '西乡塘区', '347'); INSERT INTO `ce_city` VALUES ('2351', '良庆区', '347'); INSERT INTO `ce_city` VALUES ('2352', '邕宁区', '347'); INSERT INTO `ce_city` VALUES ('2353', '武鸣县', '347'); INSERT INTO `ce_city` VALUES ('2354', '隆安县', '347'); INSERT INTO `ce_city` VALUES ('2355', '马山县', '347'); INSERT INTO `ce_city` VALUES ('2356', '上林县', '347'); INSERT INTO `ce_city` VALUES ('2357', '宾阳县', '347'); INSERT INTO `ce_city` VALUES ('2358', '横县', '347'); INSERT INTO `ce_city` VALUES ('2359', '城中区', '348'); INSERT INTO `ce_city` VALUES ('2360', '鱼峰区', '348'); INSERT INTO `ce_city` VALUES ('2361', '柳南区', '348'); INSERT INTO `ce_city` VALUES ('2362', '柳北区', '348'); INSERT INTO `ce_city` VALUES ('2363', '柳江县', '348'); INSERT INTO `ce_city` VALUES ('2364', '柳城县', '348'); INSERT INTO `ce_city` VALUES ('2365', '鹿寨县', '348'); INSERT INTO `ce_city` VALUES ('2366', '融安县', '348'); INSERT INTO `ce_city` VALUES ('2367', '融水苗族自治县', '348'); INSERT INTO `ce_city` VALUES ('2368', '三江侗族自治县', '348'); INSERT INTO `ce_city` VALUES ('2369', '秀峰区', '349'); INSERT INTO `ce_city` VALUES ('2370', '叠彩区', '349'); INSERT INTO `ce_city` VALUES ('2371', '象山区', '349'); INSERT INTO `ce_city` VALUES ('2372', '七星区', '349'); INSERT INTO `ce_city` VALUES ('2373', '雁山区', '349'); INSERT INTO `ce_city` VALUES ('2374', '阳朔县', '349'); INSERT INTO `ce_city` VALUES ('2375', '临桂县', '349'); INSERT INTO `ce_city` VALUES ('2376', '灵川县', '349'); INSERT INTO `ce_city` VALUES ('2377', '全州县', '349'); INSERT INTO `ce_city` VALUES ('2378', '兴安县', '349'); INSERT INTO `ce_city` VALUES ('2379', '永福县', '349'); INSERT INTO `ce_city` VALUES ('2380', '灌阳县', '349'); INSERT INTO `ce_city` VALUES ('2381', '龙胜各族自治县', '349'); INSERT INTO `ce_city` VALUES ('2382', '资源县', '349'); INSERT INTO `ce_city` VALUES ('2383', '平乐县', '349'); INSERT INTO `ce_city` VALUES ('2384', '荔蒲县', '349'); INSERT INTO `ce_city` VALUES ('2385', '恭城瑶族自治县', '349'); INSERT INTO `ce_city` VALUES ('2386', '万秀区', '350'); INSERT INTO `ce_city` VALUES ('2387', '蝶山区', '350'); INSERT INTO `ce_city` VALUES ('2388', '长洲区', '350'); INSERT INTO `ce_city` VALUES ('2389', '苍梧县', '350'); INSERT INTO `ce_city` VALUES ('2390', '藤县', '350'); INSERT INTO `ce_city` VALUES ('2391', '蒙山县', '350'); INSERT INTO `ce_city` VALUES ('2392', '岑溪市', '350'); INSERT INTO `ce_city` VALUES ('2393', '海城区', '351'); INSERT INTO `ce_city` VALUES ('2394', '银海区', '351'); INSERT INTO `ce_city` VALUES ('2395', '铁山港区', '351'); INSERT INTO `ce_city` VALUES ('2396', '合浦县', '351'); INSERT INTO `ce_city` VALUES ('2397', '港口区', '352'); INSERT INTO `ce_city` VALUES ('2398', '防城区', '352'); INSERT INTO `ce_city` VALUES ('2399', '上思县', '352'); INSERT INTO `ce_city` VALUES ('2400', '东兴市', '352'); INSERT INTO `ce_city` VALUES ('2401', '钦南区', '353'); INSERT INTO `ce_city` VALUES ('2402', '钦北区', '353'); INSERT INTO `ce_city` VALUES ('2403', '灵山县', '353'); INSERT INTO `ce_city` VALUES ('2404', '浦北县', '353'); INSERT INTO `ce_city` VALUES ('2405', '港北区', '354'); INSERT INTO `ce_city` VALUES ('2406', '港南区', '354'); INSERT INTO `ce_city` VALUES ('2407', '覃塘区', '354'); INSERT INTO `ce_city` VALUES ('2408', '平南县', '354'); INSERT INTO `ce_city` VALUES ('2409', '桂平市', '354'); INSERT INTO `ce_city` VALUES ('2410', '玉州区', '355'); INSERT INTO `ce_city` VALUES ('2411', '容县', '355'); INSERT INTO `ce_city` VALUES ('2412', '陆川县', '355'); INSERT INTO `ce_city` VALUES ('2413', '博白县', '355'); INSERT INTO `ce_city` VALUES ('2414', '兴业县', '355'); INSERT INTO `ce_city` VALUES ('2415', '北流市', '355'); INSERT INTO `ce_city` VALUES ('2416', '右江区', '356'); INSERT INTO `ce_city` VALUES ('2417', '田阳县', '356'); INSERT INTO `ce_city` VALUES ('2418', '田东县', '356'); INSERT INTO `ce_city` VALUES ('2419', '平果县', '356'); INSERT INTO `ce_city` VALUES ('2420', '德保县', '356'); INSERT INTO `ce_city` VALUES ('2421', '靖西县', '356'); INSERT INTO `ce_city` VALUES ('2422', '那坡县', '356'); INSERT INTO `ce_city` VALUES ('2423', '凌云县', '356'); INSERT INTO `ce_city` VALUES ('2424', '乐业县', '356'); INSERT INTO `ce_city` VALUES ('2425', '田林县', '356'); INSERT INTO `ce_city` VALUES ('2426', '西林县', '356'); INSERT INTO `ce_city` VALUES ('2427', '隆林各族自治县', '356'); INSERT INTO `ce_city` VALUES ('2428', '八步区', '357'); INSERT INTO `ce_city` VALUES ('2429', '昭平县', '357'); INSERT INTO `ce_city` VALUES ('2430', '钟山县', '357'); INSERT INTO `ce_city` VALUES ('2431', '富川瑶族自治县', '357'); INSERT INTO `ce_city` VALUES ('2432', '金城江区', '358'); INSERT INTO `ce_city` VALUES ('2433', '南丹县', '358'); INSERT INTO `ce_city` VALUES ('2434', '天峨县', '358'); INSERT INTO `ce_city` VALUES ('2435', '凤山县', '358'); INSERT INTO `ce_city` VALUES ('2436', '东兰县', '358'); INSERT INTO `ce_city` VALUES ('2437', '罗城仫佬族自治县', '358'); INSERT INTO `ce_city` VALUES ('2438', '环江毛南族自治县', '358'); INSERT INTO `ce_city` VALUES ('2439', '巴马瑶族自治县', '358'); INSERT INTO `ce_city` VALUES ('2440', '都安瑶族自治县', '358'); INSERT INTO `ce_city` VALUES ('2441', '大化瑶族自治县', '358'); INSERT INTO `ce_city` VALUES ('2442', '宜州市', '358'); INSERT INTO `ce_city` VALUES ('2443', '兴宾区', '359'); INSERT INTO `ce_city` VALUES ('2444', '忻城县', '359'); INSERT INTO `ce_city` VALUES ('2445', '象州县', '359'); INSERT INTO `ce_city` VALUES ('2446', '武宣县', '359'); INSERT INTO `ce_city` VALUES ('2447', '金秀瑶族自治县', '359'); INSERT INTO `ce_city` VALUES ('2448', '合山市', '359'); INSERT INTO `ce_city` VALUES ('2449', '江洲区', '360'); INSERT INTO `ce_city` VALUES ('2450', '扶绥县', '360'); INSERT INTO `ce_city` VALUES ('2451', '宁明县', '360'); INSERT INTO `ce_city` VALUES ('2452', '龙州县', '360'); INSERT INTO `ce_city` VALUES ('2453', '大新县', '360'); INSERT INTO `ce_city` VALUES ('2454', '天等县', '360'); INSERT INTO `ce_city` VALUES ('2455', '凭祥市', '360'); INSERT INTO `ce_city` VALUES ('2456', '秀英区', '361'); INSERT INTO `ce_city` VALUES ('2457', '龙华区', '361'); INSERT INTO `ce_city` VALUES ('2458', '琼山区', '361'); INSERT INTO `ce_city` VALUES ('2459', '美兰区', '361'); INSERT INTO `ce_city` VALUES ('2460', '锦江区', '382'); INSERT INTO `ce_city` VALUES ('2461', '青羊区', '382'); INSERT INTO `ce_city` VALUES ('2462', '金牛区', '382'); INSERT INTO `ce_city` VALUES ('2463', '武侯区', '382'); INSERT INTO `ce_city` VALUES ('2464', '成华区', '382'); INSERT INTO `ce_city` VALUES ('2465', '龙泉驿区', '382'); INSERT INTO `ce_city` VALUES ('2466', '青白江区', '382'); INSERT INTO `ce_city` VALUES ('2467', '新都区', '382'); INSERT INTO `ce_city` VALUES ('2468', '温江区', '382'); INSERT INTO `ce_city` VALUES ('2469', '金堂县', '382'); INSERT INTO `ce_city` VALUES ('2470', '双流县', '382'); INSERT INTO `ce_city` VALUES ('2471', '郫县', '382'); INSERT INTO `ce_city` VALUES ('2472', '大邑县', '382'); INSERT INTO `ce_city` VALUES ('2473', '蒲江县', '382'); INSERT INTO `ce_city` VALUES ('2474', '新津县', '382'); INSERT INTO `ce_city` VALUES ('2475', '都江堰市', '382'); INSERT INTO `ce_city` VALUES ('2476', '彭州市', '382'); INSERT INTO `ce_city` VALUES ('2477', '邛崃市', '382'); INSERT INTO `ce_city` VALUES ('2478', '崇州市', '382'); INSERT INTO `ce_city` VALUES ('2479', '自流井区', '383'); INSERT INTO `ce_city` VALUES ('2480', '贡井区', '383'); INSERT INTO `ce_city` VALUES ('2481', '大安区', '383'); INSERT INTO `ce_city` VALUES ('2482', '沿滩区', '383'); INSERT INTO `ce_city` VALUES ('2483', '荣县', '383'); INSERT INTO `ce_city` VALUES ('2484', '富顺县', '383'); INSERT INTO `ce_city` VALUES ('2485', '东区', '384'); INSERT INTO `ce_city` VALUES ('2486', '西区', '384'); INSERT INTO `ce_city` VALUES ('2487', '仁和区', '384'); INSERT INTO `ce_city` VALUES ('2488', '米易县', '384'); INSERT INTO `ce_city` VALUES ('2489', '盐边县', '384'); INSERT INTO `ce_city` VALUES ('2490', '江阳区', '385'); INSERT INTO `ce_city` VALUES ('2491', '纳溪区', '385'); INSERT INTO `ce_city` VALUES ('2492', '龙马潭区', '385'); INSERT INTO `ce_city` VALUES ('2493', '泸县', '385'); INSERT INTO `ce_city` VALUES ('2494', '合江县', '385'); INSERT INTO `ce_city` VALUES ('2495', '叙永县', '385'); INSERT INTO `ce_city` VALUES ('2496', '古蔺县', '385'); INSERT INTO `ce_city` VALUES ('2497', '旌阳区', '386'); INSERT INTO `ce_city` VALUES ('2498', '中江县', '386'); INSERT INTO `ce_city` VALUES ('2499', '罗江县', '386'); INSERT INTO `ce_city` VALUES ('2500', '广汉市', '386'); INSERT INTO `ce_city` VALUES ('2501', '什邡市', '386'); INSERT INTO `ce_city` VALUES ('2502', '绵竹市', '386'); INSERT INTO `ce_city` VALUES ('2503', '涪城区', '387'); INSERT INTO `ce_city` VALUES ('2504', '游仙区', '387'); INSERT INTO `ce_city` VALUES ('2505', '三台县', '387'); INSERT INTO `ce_city` VALUES ('2506', '盐亭县', '387'); INSERT INTO `ce_city` VALUES ('2507', '安县', '387'); INSERT INTO `ce_city` VALUES ('2508', '梓潼县', '387'); INSERT INTO `ce_city` VALUES ('2509', '北川羌族自治县', '387'); INSERT INTO `ce_city` VALUES ('2510', '平武县', '387'); INSERT INTO `ce_city` VALUES ('2511', '江油市', '387'); INSERT INTO `ce_city` VALUES ('2512', '市中区', '388'); INSERT INTO `ce_city` VALUES ('2513', '元坝区', '388'); INSERT INTO `ce_city` VALUES ('2514', '朝天区', '388'); INSERT INTO `ce_city` VALUES ('2515', '旺苍县', '388'); INSERT INTO `ce_city` VALUES ('2516', '青川县', '388'); INSERT INTO `ce_city` VALUES ('2517', '剑阁县', '388'); INSERT INTO `ce_city` VALUES ('2518', '苍溪县', '388'); INSERT INTO `ce_city` VALUES ('2519', '船山区', '389'); INSERT INTO `ce_city` VALUES ('2520', '安居区', '389'); INSERT INTO `ce_city` VALUES ('2521', '蓬溪县', '389'); INSERT INTO `ce_city` VALUES ('2522', '射洪县', '389'); INSERT INTO `ce_city` VALUES ('2523', '大英县', '389'); INSERT INTO `ce_city` VALUES ('2524', '市中区', '390'); INSERT INTO `ce_city` VALUES ('2525', '东兴区', '390'); INSERT INTO `ce_city` VALUES ('2526', '威远县', '390'); INSERT INTO `ce_city` VALUES ('2527', '资中县', '390'); INSERT INTO `ce_city` VALUES ('2528', '隆昌县', '390'); INSERT INTO `ce_city` VALUES ('2529', '市中区', '391'); INSERT INTO `ce_city` VALUES ('2530', '沙湾区', '391'); INSERT INTO `ce_city` VALUES ('2531', '五通桥区', '391'); INSERT INTO `ce_city` VALUES ('2532', '金口河区', '391'); INSERT INTO `ce_city` VALUES ('2533', '犍为县', '391'); INSERT INTO `ce_city` VALUES ('2534', '井研县', '391'); INSERT INTO `ce_city` VALUES ('2535', '夹江县', '391'); INSERT INTO `ce_city` VALUES ('2536', '沐川县', '391'); INSERT INTO `ce_city` VALUES ('2537', '峨边彝族自治县', '391'); INSERT INTO `ce_city` VALUES ('2538', '马边彝族自治县', '391'); INSERT INTO `ce_city` VALUES ('2539', '峨眉山市', '391'); INSERT INTO `ce_city` VALUES ('2540', '顺庆区', '392'); INSERT INTO `ce_city` VALUES ('2541', '高坪区', '392'); INSERT INTO `ce_city` VALUES ('2542', '嘉陵区', '392'); INSERT INTO `ce_city` VALUES ('2543', '南部县', '392'); INSERT INTO `ce_city` VALUES ('2544', '营山县', '392'); INSERT INTO `ce_city` VALUES ('2545', '蓬安县', '392'); INSERT INTO `ce_city` VALUES ('2546', '仪陇县', '392'); INSERT INTO `ce_city` VALUES ('2547', '西充县', '392'); INSERT INTO `ce_city` VALUES ('2548', '阆中市', '392'); INSERT INTO `ce_city` VALUES ('2549', '东坡区', '393'); INSERT INTO `ce_city` VALUES ('2550', '仁寿县', '393'); INSERT INTO `ce_city` VALUES ('2551', '彭山县', '393'); INSERT INTO `ce_city` VALUES ('2552', '洪雅县', '393'); INSERT INTO `ce_city` VALUES ('2553', '丹棱县', '393'); INSERT INTO `ce_city` VALUES ('2554', '青神县', '393'); INSERT INTO `ce_city` VALUES ('2555', '翠屏区', '394'); INSERT INTO `ce_city` VALUES ('2556', '宜宾县', '394'); INSERT INTO `ce_city` VALUES ('2557', '南溪县', '394'); INSERT INTO `ce_city` VALUES ('2558', '江安县', '394'); INSERT INTO `ce_city` VALUES ('2559', '长宁县', '394'); INSERT INTO `ce_city` VALUES ('2560', '高县', '394'); INSERT INTO `ce_city` VALUES ('2561', '珙县', '394'); INSERT INTO `ce_city` VALUES ('2562', '筠连县', '394'); INSERT INTO `ce_city` VALUES ('2563', '兴文县', '394'); INSERT INTO `ce_city` VALUES ('2564', '屏山县', '394'); INSERT INTO `ce_city` VALUES ('2565', '广安区', '395'); INSERT INTO `ce_city` VALUES ('2566', '岳池县', '395'); INSERT INTO `ce_city` VALUES ('2567', '武胜县', '395'); INSERT INTO `ce_city` VALUES ('2568', '邻水县', '395'); INSERT INTO `ce_city` VALUES ('2569', '华蓥市', '395'); INSERT INTO `ce_city` VALUES ('2570', '通川区', '396'); INSERT INTO `ce_city` VALUES ('2571', '达县', '396'); INSERT INTO `ce_city` VALUES ('2572', '宣汉县', '396'); INSERT INTO `ce_city` VALUES ('2573', '开江县', '396'); INSERT INTO `ce_city` VALUES ('2574', '大竹县', '396'); INSERT INTO `ce_city` VALUES ('2575', '渠县', '396'); INSERT INTO `ce_city` VALUES ('2576', '万源市', '396'); INSERT INTO `ce_city` VALUES ('2577', '雨城区', '397'); INSERT INTO `ce_city` VALUES ('2578', '名山县', '397'); INSERT INTO `ce_city` VALUES ('2579', '荥经县', '397'); INSERT INTO `ce_city` VALUES ('2580', '汉源县', '397'); INSERT INTO `ce_city` VALUES ('2581', '石棉县', '397'); INSERT INTO `ce_city` VALUES ('2582', '天全县', '397'); INSERT INTO `ce_city` VALUES ('2583', '芦山县', '397'); INSERT INTO `ce_city` VALUES ('2584', '宝兴县', '397'); INSERT INTO `ce_city` VALUES ('2585', '巴州区', '398'); INSERT INTO `ce_city` VALUES ('2586', '通江县', '398'); INSERT INTO `ce_city` VALUES ('2587', '南江县', '398'); INSERT INTO `ce_city` VALUES ('2588', '平昌县', '398'); INSERT INTO `ce_city` VALUES ('2589', '雁江区', '399'); INSERT INTO `ce_city` VALUES ('2590', '安岳县', '399'); INSERT INTO `ce_city` VALUES ('2591', '乐至县', '399'); INSERT INTO `ce_city` VALUES ('2592', '简阳市', '399'); INSERT INTO `ce_city` VALUES ('2593', '汶川县', '400'); INSERT INTO `ce_city` VALUES ('2594', '理县', '400'); INSERT INTO `ce_city` VALUES ('2595', '茂县', '400'); INSERT INTO `ce_city` VALUES ('2596', '松潘县', '400'); INSERT INTO `ce_city` VALUES ('2597', '九寨沟县', '400'); INSERT INTO `ce_city` VALUES ('2598', '金川县', '400'); INSERT INTO `ce_city` VALUES ('2599', '小金县', '400'); INSERT INTO `ce_city` VALUES ('2600', '黑水县', '400'); INSERT INTO `ce_city` VALUES ('2601', '马尔康县', '400'); INSERT INTO `ce_city` VALUES ('2602', '壤塘县', '400'); INSERT INTO `ce_city` VALUES ('2603', '阿坝县', '400'); INSERT INTO `ce_city` VALUES ('2604', '若尔盖县', '400'); INSERT INTO `ce_city` VALUES ('2605', '红原县', '400'); INSERT INTO `ce_city` VALUES ('2606', '康定县', '401'); INSERT INTO `ce_city` VALUES ('2607', '泸定县', '401'); INSERT INTO `ce_city` VALUES ('2608', '丹巴县', '401'); INSERT INTO `ce_city` VALUES ('2609', '九龙县', '401'); INSERT INTO `ce_city` VALUES ('2610', '雅江县', '401'); INSERT INTO `ce_city` VALUES ('2611', '道孚县', '401'); INSERT INTO `ce_city` VALUES ('2612', '炉霍县', '401'); INSERT INTO `ce_city` VALUES ('2613', '甘孜县', '401'); INSERT INTO `ce_city` VALUES ('2614', '新龙县', '401'); INSERT INTO `ce_city` VALUES ('2615', '德格县', '401'); INSERT INTO `ce_city` VALUES ('2616', '白玉县', '401'); INSERT INTO `ce_city` VALUES ('2617', '石渠县', '401'); INSERT INTO `ce_city` VALUES ('2618', '色达县', '401'); INSERT INTO `ce_city` VALUES ('2619', '理塘县', '401'); INSERT INTO `ce_city` VALUES ('2620', '巴塘县', '401'); INSERT INTO `ce_city` VALUES ('2621', '乡城县', '401'); INSERT INTO `ce_city` VALUES ('2622', '稻城县', '401'); INSERT INTO `ce_city` VALUES ('2623', '得荣县', '401'); INSERT INTO `ce_city` VALUES ('2624', '西昌市', '402'); INSERT INTO `ce_city` VALUES ('2625', '木里藏族自治县', '402'); INSERT INTO `ce_city` VALUES ('2626', '盐源县', '402'); INSERT INTO `ce_city` VALUES ('2627', '德昌县', '402'); INSERT INTO `ce_city` VALUES ('2628', '会理县', '402'); INSERT INTO `ce_city` VALUES ('2629', '会东县', '402'); INSERT INTO `ce_city` VALUES ('2630', '宁南县', '402'); INSERT INTO `ce_city` VALUES ('2631', '普格县', '402'); INSERT INTO `ce_city` VALUES ('2632', '布拖县', '402'); INSERT INTO `ce_city` VALUES ('2633', '金阳县', '402'); INSERT INTO `ce_city` VALUES ('2634', '昭觉县', '402'); INSERT INTO `ce_city` VALUES ('2635', '喜德县', '402'); INSERT INTO `ce_city` VALUES ('2636', '冕宁县', '402'); INSERT INTO `ce_city` VALUES ('2637', '越西县', '402'); INSERT INTO `ce_city` VALUES ('2638', '甘洛县', '402'); INSERT INTO `ce_city` VALUES ('2639', '美姑县', '402'); INSERT INTO `ce_city` VALUES ('2640', '雷波县', '402'); INSERT INTO `ce_city` VALUES ('2641', '南明区', '403'); INSERT INTO `ce_city` VALUES ('2642', '云岩区', '403'); INSERT INTO `ce_city` VALUES ('2643', '花溪区', '403'); INSERT INTO `ce_city` VALUES ('2644', '乌当区', '403'); INSERT INTO `ce_city` VALUES ('2645', '白云区', '403'); INSERT INTO `ce_city` VALUES ('2646', '小河区', '403'); INSERT INTO `ce_city` VALUES ('2647', '开阳县', '403'); INSERT INTO `ce_city` VALUES ('2648', '息烽县', '403'); INSERT INTO `ce_city` VALUES ('2649', '修文县', '403'); INSERT INTO `ce_city` VALUES ('2650', '清镇市', '403'); INSERT INTO `ce_city` VALUES ('2651', '钟山区', '404'); INSERT INTO `ce_city` VALUES ('2652', '六枝特区', '404'); INSERT INTO `ce_city` VALUES ('2653', '水城县', '404'); INSERT INTO `ce_city` VALUES ('2654', '盘县', '404'); INSERT INTO `ce_city` VALUES ('2655', '红花岗区', '405'); INSERT INTO `ce_city` VALUES ('2656', '汇川区', '405'); INSERT INTO `ce_city` VALUES ('2657', '遵义县', '405'); INSERT INTO `ce_city` VALUES ('2658', '桐梓县', '405'); INSERT INTO `ce_city` VALUES ('2659', '绥阳县', '405'); INSERT INTO `ce_city` VALUES ('2660', '正安县', '405'); INSERT INTO `ce_city` VALUES ('2661', '道真仡佬族苗族自治县', '405'); INSERT INTO `ce_city` VALUES ('2662', '务川仡佬族苗族自治县', '405'); INSERT INTO `ce_city` VALUES ('2663', '凤冈县', '405'); INSERT INTO `ce_city` VALUES ('2664', '湄潭县', '405'); INSERT INTO `ce_city` VALUES ('2665', '余庆县', '405'); INSERT INTO `ce_city` VALUES ('2666', '习水县', '405'); INSERT INTO `ce_city` VALUES ('2667', '赤水市', '405'); INSERT INTO `ce_city` VALUES ('2668', '仁怀市', '405'); INSERT INTO `ce_city` VALUES ('2669', '西秀区', '406'); INSERT INTO `ce_city` VALUES ('2670', '平坝县', '406'); INSERT INTO `ce_city` VALUES ('2671', '普定县', '406'); INSERT INTO `ce_city` VALUES ('2672', '镇宁布依族苗族自治县', '406'); INSERT INTO `ce_city` VALUES ('2673', '关岭布依族苗族自治县', '406'); INSERT INTO `ce_city` VALUES ('2674', '紫云苗族布依族自治县', '406'); INSERT INTO `ce_city` VALUES ('2675', '铜仁市', '407'); INSERT INTO `ce_city` VALUES ('2676', '江口县', '407'); INSERT INTO `ce_city` VALUES ('2677', '玉屏侗族自治县', '407'); INSERT INTO `ce_city` VALUES ('2678', '石阡县', '407'); INSERT INTO `ce_city` VALUES ('2679', '思南县', '407'); INSERT INTO `ce_city` VALUES ('2680', '印江土家族苗族自治县', '407'); INSERT INTO `ce_city` VALUES ('2681', '德江县', '407'); INSERT INTO `ce_city` VALUES ('2682', '沿河土家族自治县', '407'); INSERT INTO `ce_city` VALUES ('2683', '松桃苗族自治县', '407'); INSERT INTO `ce_city` VALUES ('2684', '万山特区', '407'); INSERT INTO `ce_city` VALUES ('2685', '兴义市', '408'); INSERT INTO `ce_city` VALUES ('2686', '兴仁县', '408'); INSERT INTO `ce_city` VALUES ('2687', '普安县', '408'); INSERT INTO `ce_city` VALUES ('2688', '晴隆县', '408'); INSERT INTO `ce_city` VALUES ('2689', '贞丰县', '408'); INSERT INTO `ce_city` VALUES ('2690', '望谟县', '408'); INSERT INTO `ce_city` VALUES ('2691', '册亨县', '408'); INSERT INTO `ce_city` VALUES ('2692', '安龙县', '408'); INSERT INTO `ce_city` VALUES ('2693', '毕节市', '409'); INSERT INTO `ce_city` VALUES ('2694', '大方县', '409'); INSERT INTO `ce_city` VALUES ('2695', '黔西县', '409'); INSERT INTO `ce_city` VALUES ('2696', '金沙县', '409'); INSERT INTO `ce_city` VALUES ('2697', '织金县', '409'); INSERT INTO `ce_city` VALUES ('2698', '纳雍县', '409'); INSERT INTO `ce_city` VALUES ('2699', '威宁彝族回族苗族自治县', '409'); INSERT INTO `ce_city` VALUES ('2700', '赫章县', '409'); INSERT INTO `ce_city` VALUES ('2701', '凯里市', '410'); INSERT INTO `ce_city` VALUES ('2702', '黄平县', '410'); INSERT INTO `ce_city` VALUES ('2703', '施秉县', '410'); INSERT INTO `ce_city` VALUES ('2704', '三穗县', '410'); INSERT INTO `ce_city` VALUES ('2705', '镇远县', '410'); INSERT INTO `ce_city` VALUES ('2706', '岑巩县', '410'); INSERT INTO `ce_city` VALUES ('2707', '天柱县', '410'); INSERT INTO `ce_city` VALUES ('2708', '锦屏县', '410'); INSERT INTO `ce_city` VALUES ('2709', '剑河县', '410'); INSERT INTO `ce_city` VALUES ('2710', '台江县', '410'); INSERT INTO `ce_city` VALUES ('2711', '黎平县', '410'); INSERT INTO `ce_city` VALUES ('2712', '榕江县', '410'); INSERT INTO `ce_city` VALUES ('2713', '从江县', '410'); INSERT INTO `ce_city` VALUES ('2714', '雷山县', '410'); INSERT INTO `ce_city` VALUES ('2715', '麻江县', '410'); INSERT INTO `ce_city` VALUES ('2716', '丹寨县', '410'); INSERT INTO `ce_city` VALUES ('2717', '都匀市', '411'); INSERT INTO `ce_city` VALUES ('2718', '福泉市', '411'); INSERT INTO `ce_city` VALUES ('2719', '荔波县', '411'); INSERT INTO `ce_city` VALUES ('2720', '贵定县', '411'); INSERT INTO `ce_city` VALUES ('2721', '瓮安县', '411'); INSERT INTO `ce_city` VALUES ('2722', '独山县', '411'); INSERT INTO `ce_city` VALUES ('2723', '平塘县', '411'); INSERT INTO `ce_city` VALUES ('2724', '罗甸县', '411'); INSERT INTO `ce_city` VALUES ('2725', '长顺县', '411'); INSERT INTO `ce_city` VALUES ('2726', '龙里县', '411'); INSERT INTO `ce_city` VALUES ('2727', '惠水县', '411'); INSERT INTO `ce_city` VALUES ('2728', '三都水族自治县', '411'); INSERT INTO `ce_city` VALUES ('2729', '五华区', '412'); INSERT INTO `ce_city` VALUES ('2730', '盘龙区', '412'); INSERT INTO `ce_city` VALUES ('2731', '官渡区', '412'); INSERT INTO `ce_city` VALUES ('2732', '西山区', '412'); INSERT INTO `ce_city` VALUES ('2733', '东川区', '412'); INSERT INTO `ce_city` VALUES ('2734', '呈贡县', '412'); INSERT INTO `ce_city` VALUES ('2735', '晋宁县', '412'); INSERT INTO `ce_city` VALUES ('2736', '富民县', '412'); INSERT INTO `ce_city` VALUES ('2737', '宜良县', '412'); INSERT INTO `ce_city` VALUES ('2738', '石林彝族自治县', '412'); INSERT INTO `ce_city` VALUES ('2739', '嵩明县', '412'); INSERT INTO `ce_city` VALUES ('2740', '禄劝彝族苗族自治县', '412'); INSERT INTO `ce_city` VALUES ('2741', '寻甸回族彝族自治县', '412'); INSERT INTO `ce_city` VALUES ('2742', '安宁市', '412'); INSERT INTO `ce_city` VALUES ('2743', '麒麟区', '413'); INSERT INTO `ce_city` VALUES ('2744', '马龙县', '413'); INSERT INTO `ce_city` VALUES ('2745', '陆良县', '413'); INSERT INTO `ce_city` VALUES ('2746', '师宗县', '413'); INSERT INTO `ce_city` VALUES ('2747', '罗平县', '413'); INSERT INTO `ce_city` VALUES ('2748', '富源县', '413'); INSERT INTO `ce_city` VALUES ('2749', '会泽县', '413'); INSERT INTO `ce_city` VALUES ('2750', '沾益县', '413'); INSERT INTO `ce_city` VALUES ('2751', '宣威市', '413'); INSERT INTO `ce_city` VALUES ('2752', '红塔区', '414'); INSERT INTO `ce_city` VALUES ('2753', '江川县', '414'); INSERT INTO `ce_city` VALUES ('2754', '澄江县', '414'); INSERT INTO `ce_city` VALUES ('2755', '通海县', '414'); INSERT INTO `ce_city` VALUES ('2756', '华宁县', '414'); INSERT INTO `ce_city` VALUES ('2757', '易门县', '414'); INSERT INTO `ce_city` VALUES ('2758', '峨山彝族自治县', '414'); INSERT INTO `ce_city` VALUES ('2759', '新平彝族傣族自治县', '414'); INSERT INTO `ce_city` VALUES ('2760', '元江哈尼族彝族傣族自治县', '414'); INSERT INTO `ce_city` VALUES ('2761', '隆阳区', '415'); INSERT INTO `ce_city` VALUES ('2762', '施甸县', '415'); INSERT INTO `ce_city` VALUES ('2763', '腾冲县', '415'); INSERT INTO `ce_city` VALUES ('2764', '龙陵县', '415'); INSERT INTO `ce_city` VALUES ('2765', '昌宁县', '415'); INSERT INTO `ce_city` VALUES ('2766', '昭阳区', '416'); INSERT INTO `ce_city` VALUES ('2767', '鲁甸县', '416'); INSERT INTO `ce_city` VALUES ('2768', '巧家县', '416'); INSERT INTO `ce_city` VALUES ('2769', '盐津县', '416'); INSERT INTO `ce_city` VALUES ('2770', '大关县', '416'); INSERT INTO `ce_city` VALUES ('2771', '永善县', '416'); INSERT INTO `ce_city` VALUES ('2772', '绥江县', '416'); INSERT INTO `ce_city` VALUES ('2773', '镇雄县', '416'); INSERT INTO `ce_city` VALUES ('2774', '彝良县', '416'); INSERT INTO `ce_city` VALUES ('2775', '威信县', '416'); INSERT INTO `ce_city` VALUES ('2776', '水富县', '416'); INSERT INTO `ce_city` VALUES ('2777', '古城区', '417'); INSERT INTO `ce_city` VALUES ('2778', '玉龙纳西族自治县', '417'); INSERT INTO `ce_city` VALUES ('2779', '永胜县', '417'); INSERT INTO `ce_city` VALUES ('2780', '华坪县', '417'); INSERT INTO `ce_city` VALUES ('2781', '宁蒗彝族自治县', '417'); INSERT INTO `ce_city` VALUES ('2782', '翠云区', '418'); INSERT INTO `ce_city` VALUES ('2783', '普洱哈尼族彝族自治县', '418'); INSERT INTO `ce_city` VALUES ('2784', '墨江哈尼族自治县', '418'); INSERT INTO `ce_city` VALUES ('2785', '景东彝族自治县', '418'); INSERT INTO `ce_city` VALUES ('2786', '景谷傣族彝族自治县', '418'); INSERT INTO `ce_city` VALUES ('2787', '镇沅彝族哈尼族拉祜族自治县', '418'); INSERT INTO `ce_city` VALUES ('2788', '江城哈尼族彝族自治县', '418'); INSERT INTO `ce_city` VALUES ('2789', '孟连傣族拉祜族佤族自治县', '418'); INSERT INTO `ce_city` VALUES ('2790', '澜沧拉祜族自治县', '418'); INSERT INTO `ce_city` VALUES ('2791', '西盟佤族自治县', '418'); INSERT INTO `ce_city` VALUES ('2792', '临翔区', '419'); INSERT INTO `ce_city` VALUES ('2793', '凤庆县', '419'); INSERT INTO `ce_city` VALUES ('2794', '云县', '419'); INSERT INTO `ce_city` VALUES ('2795', '永德县', '419'); INSERT INTO `ce_city` VALUES ('2796', '镇康县', '419'); INSERT INTO `ce_city` VALUES ('2797', '双江拉祜族佤族布朗族傣族自治县', '419'); INSERT INTO `ce_city` VALUES ('2798', '耿马傣族佤族自治县', '419'); INSERT INTO `ce_city` VALUES ('2799', '沧源佤族自治县', '420'); INSERT INTO `ce_city` VALUES ('2800', '楚雄市', '420'); INSERT INTO `ce_city` VALUES ('2801', '双柏县', '420'); INSERT INTO `ce_city` VALUES ('2802', '牟定县', '420'); INSERT INTO `ce_city` VALUES ('2803', '南华县', '420'); INSERT INTO `ce_city` VALUES ('2804', '姚安县', '420'); INSERT INTO `ce_city` VALUES ('2805', '大姚县', '420'); INSERT INTO `ce_city` VALUES ('2806', '永仁县', '420'); INSERT INTO `ce_city` VALUES ('2807', '元谋县', '420'); INSERT INTO `ce_city` VALUES ('2808', '武定县', '420'); INSERT INTO `ce_city` VALUES ('2809', '禄丰县', '420'); INSERT INTO `ce_city` VALUES ('2810', '个旧市', '421'); INSERT INTO `ce_city` VALUES ('2811', '开远市', '421'); INSERT INTO `ce_city` VALUES ('2812', '蒙自县', '421'); INSERT INTO `ce_city` VALUES ('2813', '屏边苗族自治县', '421'); INSERT INTO `ce_city` VALUES ('2814', '建水县', '421'); INSERT INTO `ce_city` VALUES ('2815', '石屏县', '421'); INSERT INTO `ce_city` VALUES ('2816', '弥勒县', '421'); INSERT INTO `ce_city` VALUES ('2817', '泸西县', '421'); INSERT INTO `ce_city` VALUES ('2818', '元阳县', '421'); INSERT INTO `ce_city` VALUES ('2819', '红河县', '421'); INSERT INTO `ce_city` VALUES ('2820', '金平苗族瑶族傣族自治县', '421'); INSERT INTO `ce_city` VALUES ('2821', '绿春县', '421'); INSERT INTO `ce_city` VALUES ('2822', '河口瑶族自治县', '421'); INSERT INTO `ce_city` VALUES ('2823', '文山县', '422'); INSERT INTO `ce_city` VALUES ('2824', '砚山县', '422'); INSERT INTO `ce_city` VALUES ('2825', '西畴县', '422'); INSERT INTO `ce_city` VALUES ('2826', '麻栗坡县', '422'); INSERT INTO `ce_city` VALUES ('2827', '马关县', '422'); INSERT INTO `ce_city` VALUES ('2828', '丘北县', '422'); INSERT INTO `ce_city` VALUES ('2829', '广南县', '422'); INSERT INTO `ce_city` VALUES ('2830', '富宁县', '422'); INSERT INTO `ce_city` VALUES ('2831', '景洪市', '423'); INSERT INTO `ce_city` VALUES ('2832', '勐海县', '423'); INSERT INTO `ce_city` VALUES ('2833', '勐腊县', '423'); INSERT INTO `ce_city` VALUES ('2834', '大理市', '424'); INSERT INTO `ce_city` VALUES ('2835', '漾濞彝族自治县', '424'); INSERT INTO `ce_city` VALUES ('2836', '祥云县', '424'); INSERT INTO `ce_city` VALUES ('2837', '宾川县', '424'); INSERT INTO `ce_city` VALUES ('2838', '弥渡县', '424'); INSERT INTO `ce_city` VALUES ('2839', '南涧彝族自治县', '424'); INSERT INTO `ce_city` VALUES ('2840', '巍山彝族回族自治县', '424'); INSERT INTO `ce_city` VALUES ('2841', '永平县', '424'); INSERT INTO `ce_city` VALUES ('2842', '云龙县', '424'); INSERT INTO `ce_city` VALUES ('2843', '洱源县', '424'); INSERT INTO `ce_city` VALUES ('2844', '剑川县', '424'); INSERT INTO `ce_city` VALUES ('2845', '鹤庆县', '424'); INSERT INTO `ce_city` VALUES ('2846', '瑞丽市', '425'); INSERT INTO `ce_city` VALUES ('2847', '潞西市', '425'); INSERT INTO `ce_city` VALUES ('2848', '梁河县', '425'); INSERT INTO `ce_city` VALUES ('2849', '盈江县', '425'); INSERT INTO `ce_city` VALUES ('2850', '陇川县', '425'); INSERT INTO `ce_city` VALUES ('2851', '泸水县', '426'); INSERT INTO `ce_city` VALUES ('2852', '福贡县', '426'); INSERT INTO `ce_city` VALUES ('2853', '贡山独龙族怒族自治县', '426'); INSERT INTO `ce_city` VALUES ('2854', '兰坪白族普米族自治县', '426'); INSERT INTO `ce_city` VALUES ('2855', '香格里拉县', '427'); INSERT INTO `ce_city` VALUES ('2856', '德钦县', '427'); INSERT INTO `ce_city` VALUES ('2857', '维西傈僳族自治县', '427'); INSERT INTO `ce_city` VALUES ('2858', '城关区', '428'); INSERT INTO `ce_city` VALUES ('2859', '林周县', '428'); INSERT INTO `ce_city` VALUES ('2860', '当雄县', '428'); INSERT INTO `ce_city` VALUES ('2861', '尼木县', '428'); INSERT INTO `ce_city` VALUES ('2862', '曲水县', '428'); INSERT INTO `ce_city` VALUES ('2863', '堆龙德庆县', '428'); INSERT INTO `ce_city` VALUES ('2864', '达孜县', '428'); INSERT INTO `ce_city` VALUES ('2865', '墨竹工卡县', '428'); INSERT INTO `ce_city` VALUES ('2866', '昌都县', '429'); INSERT INTO `ce_city` VALUES ('2867', '江达县', '429'); INSERT INTO `ce_city` VALUES ('2868', '贡觉县', '429'); INSERT INTO `ce_city` VALUES ('2869', '类乌齐县', '429'); INSERT INTO `ce_city` VALUES ('2870', '丁青县', '429'); INSERT INTO `ce_city` VALUES ('2871', '察雅县', '429'); INSERT INTO `ce_city` VALUES ('2872', '八宿县', '429'); INSERT INTO `ce_city` VALUES ('2873', '左贡县', '429'); INSERT INTO `ce_city` VALUES ('2874', '芒康县', '429'); INSERT INTO `ce_city` VALUES ('2875', '洛隆县', '429'); INSERT INTO `ce_city` VALUES ('2876', '边坝县', '429'); INSERT INTO `ce_city` VALUES ('2877', '乃东县', '430'); INSERT INTO `ce_city` VALUES ('2878', '扎囊县', '430'); INSERT INTO `ce_city` VALUES ('2879', '贡嘎县', '430'); INSERT INTO `ce_city` VALUES ('2880', '桑日县', '430'); INSERT INTO `ce_city` VALUES ('2881', '琼结县', '430'); INSERT INTO `ce_city` VALUES ('2882', '曲松县', '430'); INSERT INTO `ce_city` VALUES ('2883', '措美县', '430'); INSERT INTO `ce_city` VALUES ('2884', '洛扎县', '430'); INSERT INTO `ce_city` VALUES ('2885', '加查县', '430'); INSERT INTO `ce_city` VALUES ('2886', '隆子县', '430'); INSERT INTO `ce_city` VALUES ('2887', '错那县', '430'); INSERT INTO `ce_city` VALUES ('2888', '浪卡子县', '430'); INSERT INTO `ce_city` VALUES ('2889', '日喀则市', '431'); INSERT INTO `ce_city` VALUES ('2890', '南木林县', '431'); INSERT INTO `ce_city` VALUES ('2891', '江孜县', '431'); INSERT INTO `ce_city` VALUES ('2892', '定日县', '431'); INSERT INTO `ce_city` VALUES ('2893', '萨迦县', '431'); INSERT INTO `ce_city` VALUES ('2894', '拉孜县', '431'); INSERT INTO `ce_city` VALUES ('2895', '昂仁县', '431'); INSERT INTO `ce_city` VALUES ('2896', '谢通门县', '431'); INSERT INTO `ce_city` VALUES ('2897', '白朗县', '431'); INSERT INTO `ce_city` VALUES ('2898', '仁布县', '431'); INSERT INTO `ce_city` VALUES ('2899', '康马县', '431'); INSERT INTO `ce_city` VALUES ('2900', '定结县', '431'); INSERT INTO `ce_city` VALUES ('2901', '仲巴县', '431'); INSERT INTO `ce_city` VALUES ('2902', '亚东县', '431'); INSERT INTO `ce_city` VALUES ('2903', '吉隆县', '431'); INSERT INTO `ce_city` VALUES ('2904', '聂拉木县', '431'); INSERT INTO `ce_city` VALUES ('2905', '萨嘎县', '431'); INSERT INTO `ce_city` VALUES ('2906', '岗巴县', '431'); INSERT INTO `ce_city` VALUES ('2907', '那曲县', '432'); INSERT INTO `ce_city` VALUES ('2908', '嘉黎县', '432'); INSERT INTO `ce_city` VALUES ('2909', '比如县', '432'); INSERT INTO `ce_city` VALUES ('2910', '聂荣县', '432'); INSERT INTO `ce_city` VALUES ('2911', '安多县', '432'); INSERT INTO `ce_city` VALUES ('2912', '申扎县', '432'); INSERT INTO `ce_city` VALUES ('2913', '索县', '432'); INSERT INTO `ce_city` VALUES ('2914', '班戈县', '432'); INSERT INTO `ce_city` VALUES ('2915', '巴青县', '432'); INSERT INTO `ce_city` VALUES ('2916', '尼玛县', '432'); INSERT INTO `ce_city` VALUES ('2917', '普兰县', '433'); INSERT INTO `ce_city` VALUES ('2918', '札达县', '433'); INSERT INTO `ce_city` VALUES ('2919', '噶尔县', '433'); INSERT INTO `ce_city` VALUES ('2920', '日土县', '433'); INSERT INTO `ce_city` VALUES ('2921', '革吉县', '433'); INSERT INTO `ce_city` VALUES ('2922', '改则县', '433'); INSERT INTO `ce_city` VALUES ('2923', '措勤县', '433'); INSERT INTO `ce_city` VALUES ('2924', '林芝县', '434'); INSERT INTO `ce_city` VALUES ('2925', '工布江达县', '434'); INSERT INTO `ce_city` VALUES ('2926', '米林县', '434'); INSERT INTO `ce_city` VALUES ('2927', '墨脱县', '434'); INSERT INTO `ce_city` VALUES ('2928', '波密县', '434'); INSERT INTO `ce_city` VALUES ('2929', '察隅县', '434'); INSERT INTO `ce_city` VALUES ('2930', '朗县', '434'); INSERT INTO `ce_city` VALUES ('2931', '新城区', '435'); INSERT INTO `ce_city` VALUES ('2932', '碑林区', '435'); INSERT INTO `ce_city` VALUES ('2933', '莲湖区', '435'); INSERT INTO `ce_city` VALUES ('2934', '灞桥区', '435'); INSERT INTO `ce_city` VALUES ('2935', '未央区', '435'); INSERT INTO `ce_city` VALUES ('2936', '雁塔区', '435'); INSERT INTO `ce_city` VALUES ('2937', '阎良区', '435'); INSERT INTO `ce_city` VALUES ('2938', '临潼区', '435'); INSERT INTO `ce_city` VALUES ('2939', '长安区', '435'); INSERT INTO `ce_city` VALUES ('2940', '蓝田县', '435'); INSERT INTO `ce_city` VALUES ('2941', '周至县', '435'); INSERT INTO `ce_city` VALUES ('2942', '户县', '435'); INSERT INTO `ce_city` VALUES ('2943', '高陵县', '435'); INSERT INTO `ce_city` VALUES ('2944', '王益区', '436'); INSERT INTO `ce_city` VALUES ('2945', '印台区', '436'); INSERT INTO `ce_city` VALUES ('2946', '耀州区', '436'); INSERT INTO `ce_city` VALUES ('2947', '宜君县', '436'); INSERT INTO `ce_city` VALUES ('2948', '渭滨区', '437'); INSERT INTO `ce_city` VALUES ('2949', '金台区', '437'); INSERT INTO `ce_city` VALUES ('2950', '陈仓区', '437'); INSERT INTO `ce_city` VALUES ('2951', '凤翔县', '437'); INSERT INTO `ce_city` VALUES ('2952', '岐山县', '437'); INSERT INTO `ce_city` VALUES ('2953', '扶风县', '437'); INSERT INTO `ce_city` VALUES ('2954', '眉县', '437'); INSERT INTO `ce_city` VALUES ('2955', '陇县', '437'); INSERT INTO `ce_city` VALUES ('2956', '千阳县', '437'); INSERT INTO `ce_city` VALUES ('2957', '麟游县', '437'); INSERT INTO `ce_city` VALUES ('2958', '凤县', '437'); INSERT INTO `ce_city` VALUES ('2959', '太白县', '437'); INSERT INTO `ce_city` VALUES ('2960', '秦都区', '438'); INSERT INTO `ce_city` VALUES ('2961', '杨凌区', '438'); INSERT INTO `ce_city` VALUES ('2962', '渭城区', '438'); INSERT INTO `ce_city` VALUES ('2963', '三原县', '438'); INSERT INTO `ce_city` VALUES ('2964', '泾阳县', '438'); INSERT INTO `ce_city` VALUES ('2965', '乾县', '438'); INSERT INTO `ce_city` VALUES ('2966', '礼泉县', '438'); INSERT INTO `ce_city` VALUES ('2967', '永寿县', '438'); INSERT INTO `ce_city` VALUES ('2968', '彬县', '438'); INSERT INTO `ce_city` VALUES ('2969', '长武县', '438'); INSERT INTO `ce_city` VALUES ('2970', '旬邑县', '438'); INSERT INTO `ce_city` VALUES ('2971', '淳化县', '438'); INSERT INTO `ce_city` VALUES ('2972', '武功县', '438'); INSERT INTO `ce_city` VALUES ('2973', '兴平市', '438'); INSERT INTO `ce_city` VALUES ('2974', '临渭区', '439'); INSERT INTO `ce_city` VALUES ('2975', '华县', '439'); INSERT INTO `ce_city` VALUES ('2976', '潼关县', '439'); INSERT INTO `ce_city` VALUES ('2977', '大荔县', '439'); INSERT INTO `ce_city` VALUES ('2978', '合阳县', '439'); INSERT INTO `ce_city` VALUES ('2979', '澄城县', '439'); INSERT INTO `ce_city` VALUES ('2980', '蒲城县', '439'); INSERT INTO `ce_city` VALUES ('2981', '白水县', '439'); INSERT INTO `ce_city` VALUES ('2982', '富平县', '439'); INSERT INTO `ce_city` VALUES ('2983', '韩城市', '439'); INSERT INTO `ce_city` VALUES ('2984', '华阴市', '439'); INSERT INTO `ce_city` VALUES ('2985', '宝塔区', '440'); INSERT INTO `ce_city` VALUES ('2986', '延长县', '440'); INSERT INTO `ce_city` VALUES ('2987', '延川县', '440'); INSERT INTO `ce_city` VALUES ('2988', '子长县', '440'); INSERT INTO `ce_city` VALUES ('2989', '安塞县', '440'); INSERT INTO `ce_city` VALUES ('2990', '志丹县', '440'); INSERT INTO `ce_city` VALUES ('2991', '吴起县', '440'); INSERT INTO `ce_city` VALUES ('2992', '甘泉县', '440'); INSERT INTO `ce_city` VALUES ('2993', '富县', '440'); INSERT INTO `ce_city` VALUES ('2994', '洛川县', '440'); INSERT INTO `ce_city` VALUES ('2995', '宜川县', '440'); INSERT INTO `ce_city` VALUES ('2996', '黄龙县', '440'); INSERT INTO `ce_city` VALUES ('2997', '黄陵县', '440'); INSERT INTO `ce_city` VALUES ('2998', '汉台区', '441'); INSERT INTO `ce_city` VALUES ('2999', '南郑县', '441'); INSERT INTO `ce_city` VALUES ('3000', '城固县', '441'); INSERT INTO `ce_city` VALUES ('3001', '洋县', '441'); INSERT INTO `ce_city` VALUES ('3002', '西乡县', '441'); INSERT INTO `ce_city` VALUES ('3003', '勉县', '441'); INSERT INTO `ce_city` VALUES ('3004', '宁强县', '441'); INSERT INTO `ce_city` VALUES ('3005', '略阳县', '441'); INSERT INTO `ce_city` VALUES ('3006', '镇巴县', '441'); INSERT INTO `ce_city` VALUES ('3007', '留坝县', '441'); INSERT INTO `ce_city` VALUES ('3008', '佛坪县', '441'); INSERT INTO `ce_city` VALUES ('3009', '榆阳区', '442'); INSERT INTO `ce_city` VALUES ('3010', '神木县', '442'); INSERT INTO `ce_city` VALUES ('3011', '府谷县', '442'); INSERT INTO `ce_city` VALUES ('3012', '横山县', '442'); INSERT INTO `ce_city` VALUES ('3013', '靖边县', '442'); INSERT INTO `ce_city` VALUES ('3014', '定边县', '442'); INSERT INTO `ce_city` VALUES ('3015', '绥德县', '442'); INSERT INTO `ce_city` VALUES ('3016', '米脂县', '442'); INSERT INTO `ce_city` VALUES ('3017', '佳县', '442'); INSERT INTO `ce_city` VALUES ('3018', '吴堡县', '442'); INSERT INTO `ce_city` VALUES ('3019', '清涧县', '442'); INSERT INTO `ce_city` VALUES ('3020', '子洲县', '442'); INSERT INTO `ce_city` VALUES ('3021', '汉滨区', '443'); INSERT INTO `ce_city` VALUES ('3022', '汉阴县', '443'); INSERT INTO `ce_city` VALUES ('3023', '石泉县', '443'); INSERT INTO `ce_city` VALUES ('3024', '宁陕县', '443'); INSERT INTO `ce_city` VALUES ('3025', '紫阳县', '443'); INSERT INTO `ce_city` VALUES ('3026', '岚皋县', '443'); INSERT INTO `ce_city` VALUES ('3027', '平利县', '443'); INSERT INTO `ce_city` VALUES ('3028', '镇坪县', '443'); INSERT INTO `ce_city` VALUES ('3029', '旬阳县', '443'); INSERT INTO `ce_city` VALUES ('3030', '白河县', '443'); INSERT INTO `ce_city` VALUES ('3031', '商州区', '444'); INSERT INTO `ce_city` VALUES ('3032', '洛南县', '444'); INSERT INTO `ce_city` VALUES ('3033', '丹凤县', '444'); INSERT INTO `ce_city` VALUES ('3034', '商南县', '444'); INSERT INTO `ce_city` VALUES ('3035', '山阳县', '444'); INSERT INTO `ce_city` VALUES ('3036', '镇安县', '444'); INSERT INTO `ce_city` VALUES ('3037', '柞水县', '444'); INSERT INTO `ce_city` VALUES ('3038', '城关区', '445'); INSERT INTO `ce_city` VALUES ('3039', '七里河区', '445'); INSERT INTO `ce_city` VALUES ('3040', '西固区', '445'); INSERT INTO `ce_city` VALUES ('3041', '安宁区', '445'); INSERT INTO `ce_city` VALUES ('3042', '红古区', '445'); INSERT INTO `ce_city` VALUES ('3043', '永登县', '445'); INSERT INTO `ce_city` VALUES ('3044', '皋兰县', '445'); INSERT INTO `ce_city` VALUES ('3045', '榆中县', '445'); INSERT INTO `ce_city` VALUES ('3046', '金川区', '447'); INSERT INTO `ce_city` VALUES ('3047', '永昌县', '447'); INSERT INTO `ce_city` VALUES ('3048', '白银区', '448'); INSERT INTO `ce_city` VALUES ('3049', '平川区', '448'); INSERT INTO `ce_city` VALUES ('3050', '靖远县', '448'); INSERT INTO `ce_city` VALUES ('3051', '会宁县', '448'); INSERT INTO `ce_city` VALUES ('3052', '景泰县', '448'); INSERT INTO `ce_city` VALUES ('3053', '秦城区', '449'); INSERT INTO `ce_city` VALUES ('3054', '北道区', '449'); INSERT INTO `ce_city` VALUES ('3055', '清水县', '449'); INSERT INTO `ce_city` VALUES ('3056', '秦安县', '449'); INSERT INTO `ce_city` VALUES ('3057', '甘谷县', '449'); INSERT INTO `ce_city` VALUES ('3058', '武山县', '449'); INSERT INTO `ce_city` VALUES ('3059', '张家川回族自治县', '449'); INSERT INTO `ce_city` VALUES ('3060', '凉州区', '450'); INSERT INTO `ce_city` VALUES ('3061', '民勤县', '450'); INSERT INTO `ce_city` VALUES ('3062', '古浪县', '450'); INSERT INTO `ce_city` VALUES ('3063', '天祝藏族自治县', '450'); INSERT INTO `ce_city` VALUES ('3064', '甘州区', '451'); INSERT INTO `ce_city` VALUES ('3065', '肃南裕固族自治县', '451'); INSERT INTO `ce_city` VALUES ('3066', '民乐县', '451'); INSERT INTO `ce_city` VALUES ('3067', '临泽县', '451'); INSERT INTO `ce_city` VALUES ('3068', '高台县', '451'); INSERT INTO `ce_city` VALUES ('3069', '山丹县', '451'); INSERT INTO `ce_city` VALUES ('3070', '崆峒区', '452'); INSERT INTO `ce_city` VALUES ('3071', '泾川县', '452'); INSERT INTO `ce_city` VALUES ('3072', '灵台县', '452'); INSERT INTO `ce_city` VALUES ('3073', '崇信县', '452'); INSERT INTO `ce_city` VALUES ('3074', '华亭县', '452'); INSERT INTO `ce_city` VALUES ('3075', '庄浪县', '452'); INSERT INTO `ce_city` VALUES ('3076', '静宁县', '452'); INSERT INTO `ce_city` VALUES ('3077', '肃州区', '453'); INSERT INTO `ce_city` VALUES ('3078', '金塔县', '453'); INSERT INTO `ce_city` VALUES ('3079', '瓜州县', '453'); INSERT INTO `ce_city` VALUES ('3080', '肃北蒙古族自治县', '453'); INSERT INTO `ce_city` VALUES ('3081', '阿克塞哈萨克族自治县', '453'); INSERT INTO `ce_city` VALUES ('3082', '玉门市', '453'); INSERT INTO `ce_city` VALUES ('3083', '敦煌市', '453'); INSERT INTO `ce_city` VALUES ('3084', '西峰区', '454'); INSERT INTO `ce_city` VALUES ('3085', '庆城县', '454'); INSERT INTO `ce_city` VALUES ('3086', '环县', '454'); INSERT INTO `ce_city` VALUES ('3087', '华池县', '454'); INSERT INTO `ce_city` VALUES ('3088', '合水县', '454'); INSERT INTO `ce_city` VALUES ('3089', '正宁县', '454'); INSERT INTO `ce_city` VALUES ('3090', '宁县', '454'); INSERT INTO `ce_city` VALUES ('3091', '镇原县', '454'); INSERT INTO `ce_city` VALUES ('3092', '安定区', '455'); INSERT INTO `ce_city` VALUES ('3093', '通渭县', '455'); INSERT INTO `ce_city` VALUES ('3094', '陇西县', '455'); INSERT INTO `ce_city` VALUES ('3095', '渭源县', '455'); INSERT INTO `ce_city` VALUES ('3096', '临洮县', '455'); INSERT INTO `ce_city` VALUES ('3097', '漳县', '455'); INSERT INTO `ce_city` VALUES ('3098', '岷县', '455'); INSERT INTO `ce_city` VALUES ('3099', '武都区', '456'); INSERT INTO `ce_city` VALUES ('3100', '成县', '456'); INSERT INTO `ce_city` VALUES ('3101', '文县', '456'); INSERT INTO `ce_city` VALUES ('3102', '宕昌县', '456'); INSERT INTO `ce_city` VALUES ('3103', '康县', '456'); INSERT INTO `ce_city` VALUES ('3104', '西和县', '456'); INSERT INTO `ce_city` VALUES ('3105', '礼县', '456'); INSERT INTO `ce_city` VALUES ('3106', '徽县', '456'); INSERT INTO `ce_city` VALUES ('3107', '两当县', '456'); INSERT INTO `ce_city` VALUES ('3108', '临夏市', '457'); INSERT INTO `ce_city` VALUES ('3109', '临夏县', '457'); INSERT INTO `ce_city` VALUES ('3110', '康乐县', '457'); INSERT INTO `ce_city` VALUES ('3111', '永靖县', '457'); INSERT INTO `ce_city` VALUES ('3112', '广河县', '457'); INSERT INTO `ce_city` VALUES ('3113', '和政县', '457'); INSERT INTO `ce_city` VALUES ('3114', '东乡族自治县', '457'); INSERT INTO `ce_city` VALUES ('3115', '积石山保安族东乡族撒拉族自治县', '457'); INSERT INTO `ce_city` VALUES ('3116', '合作市', '458'); INSERT INTO `ce_city` VALUES ('3117', '临潭县', '458'); INSERT INTO `ce_city` VALUES ('3118', '卓尼县', '458'); INSERT INTO `ce_city` VALUES ('3119', '舟曲县', '458'); INSERT INTO `ce_city` VALUES ('3120', '迭部县', '458'); INSERT INTO `ce_city` VALUES ('3121', '玛曲县', '458'); INSERT INTO `ce_city` VALUES ('3122', '碌曲县', '458'); INSERT INTO `ce_city` VALUES ('3123', '夏河县', '458'); INSERT INTO `ce_city` VALUES ('3124', '城东区', '459'); INSERT INTO `ce_city` VALUES ('3125', '城中区', '459'); INSERT INTO `ce_city` VALUES ('3126', '城西区', '459'); INSERT INTO `ce_city` VALUES ('3127', '城北区', '459'); INSERT INTO `ce_city` VALUES ('3128', '大通回族土族自治县', '459'); INSERT INTO `ce_city` VALUES ('3129', '湟中县', '459'); INSERT INTO `ce_city` VALUES ('3130', '湟源县', '459'); INSERT INTO `ce_city` VALUES ('3131', '平安县', '460'); INSERT INTO `ce_city` VALUES ('3132', '民和回族土族自治县', '460'); INSERT INTO `ce_city` VALUES ('3133', '乐都县', '460'); INSERT INTO `ce_city` VALUES ('3134', '互助土族自治县', '460'); INSERT INTO `ce_city` VALUES ('3135', '化隆回族自治县', '460'); INSERT INTO `ce_city` VALUES ('3136', '循化撒拉族自治县', '460'); INSERT INTO `ce_city` VALUES ('3137', '门源回族自治县', '461'); INSERT INTO `ce_city` VALUES ('3138', '祁连县', '461'); INSERT INTO `ce_city` VALUES ('3139', '海晏县', '461'); INSERT INTO `ce_city` VALUES ('3140', '刚察县', '461'); INSERT INTO `ce_city` VALUES ('3141', '同仁县', '462'); INSERT INTO `ce_city` VALUES ('3142', '尖扎县', '462'); INSERT INTO `ce_city` VALUES ('3143', '泽库县', '462'); INSERT INTO `ce_city` VALUES ('3144', '河南蒙古族自治县', '462'); INSERT INTO `ce_city` VALUES ('3145', '共和县', '463'); INSERT INTO `ce_city` VALUES ('3146', '同德县', '463'); INSERT INTO `ce_city` VALUES ('3147', '贵德县', '463'); INSERT INTO `ce_city` VALUES ('3148', '兴海县', '463'); INSERT INTO `ce_city` VALUES ('3149', '贵南县', '463'); INSERT INTO `ce_city` VALUES ('3150', '玛沁县', '464'); INSERT INTO `ce_city` VALUES ('3151', '班玛县', '464'); INSERT INTO `ce_city` VALUES ('3152', '甘德县', '464'); INSERT INTO `ce_city` VALUES ('3153', '达日县', '464'); INSERT INTO `ce_city` VALUES ('3154', '久治县', '464'); INSERT INTO `ce_city` VALUES ('3155', '玛多县', '464'); INSERT INTO `ce_city` VALUES ('3156', '玉树县', '465'); INSERT INTO `ce_city` VALUES ('3157', '杂多县', '465'); INSERT INTO `ce_city` VALUES ('3158', '称多县', '465'); INSERT INTO `ce_city` VALUES ('3159', '治多县', '465'); INSERT INTO `ce_city` VALUES ('3160', '囊谦县', '465'); INSERT INTO `ce_city` VALUES ('3161', '曲麻莱县', '465'); INSERT INTO `ce_city` VALUES ('3162', '格尔木市', '466'); INSERT INTO `ce_city` VALUES ('3163', '德令哈市', '466'); INSERT INTO `ce_city` VALUES ('3164', '乌兰县', '466'); INSERT INTO `ce_city` VALUES ('3165', '都兰县', '466'); INSERT INTO `ce_city` VALUES ('3166', '天峻县', '466'); INSERT INTO `ce_city` VALUES ('3167', '兴庆区', '467'); INSERT INTO `ce_city` VALUES ('3168', '西夏区', '467'); INSERT INTO `ce_city` VALUES ('3169', '金凤区', '467'); INSERT INTO `ce_city` VALUES ('3170', '永宁县', '467'); INSERT INTO `ce_city` VALUES ('3171', '贺兰县', '467'); INSERT INTO `ce_city` VALUES ('3172', '灵武市', '467'); INSERT INTO `ce_city` VALUES ('3173', '大武口区', '468'); INSERT INTO `ce_city` VALUES ('3174', '惠农区', '468'); INSERT INTO `ce_city` VALUES ('3175', '平罗县', '468'); INSERT INTO `ce_city` VALUES ('3176', '利通区', '469'); INSERT INTO `ce_city` VALUES ('3177', '盐池县', '469'); INSERT INTO `ce_city` VALUES ('3178', '同心县', '469'); INSERT INTO `ce_city` VALUES ('3179', '青铜峡市', '469'); INSERT INTO `ce_city` VALUES ('3180', '原州区', '470'); INSERT INTO `ce_city` VALUES ('3181', '西吉县', '470'); INSERT INTO `ce_city` VALUES ('3182', '隆德县', '470'); INSERT INTO `ce_city` VALUES ('3183', '泾源县', '470'); INSERT INTO `ce_city` VALUES ('3184', '彭阳县', '470'); INSERT INTO `ce_city` VALUES ('3185', '沙坡头区', '471'); INSERT INTO `ce_city` VALUES ('3186', '中宁县', '471'); INSERT INTO `ce_city` VALUES ('3187', '海原县', '471'); INSERT INTO `ce_city` VALUES ('3188', '天山区', '472'); INSERT INTO `ce_city` VALUES ('3189', '沙依巴克区', '472'); INSERT INTO `ce_city` VALUES ('3190', '新市区', '472'); INSERT INTO `ce_city` VALUES ('3191', '水磨沟区', '472'); INSERT INTO `ce_city` VALUES ('3192', '头屯河区', '472'); INSERT INTO `ce_city` VALUES ('3193', '达坂城区', '472'); INSERT INTO `ce_city` VALUES ('3194', '东山区', '472'); INSERT INTO `ce_city` VALUES ('3195', '乌鲁木齐县', '472'); INSERT INTO `ce_city` VALUES ('3196', '独山子区', '473'); INSERT INTO `ce_city` VALUES ('3197', '克拉玛依区', '473'); INSERT INTO `ce_city` VALUES ('3198', '白碱滩区', '473'); INSERT INTO `ce_city` VALUES ('3199', '乌尔禾区', '473'); INSERT INTO `ce_city` VALUES ('3200', '吐鲁番市', '474'); INSERT INTO `ce_city` VALUES ('3201', '鄯善县', '474'); INSERT INTO `ce_city` VALUES ('3202', '托克逊县', '474'); INSERT INTO `ce_city` VALUES ('3203', '哈密市', '475'); INSERT INTO `ce_city` VALUES ('3204', '巴里坤哈萨克自治县', '475'); INSERT INTO `ce_city` VALUES ('3205', '伊吾县', '475'); INSERT INTO `ce_city` VALUES ('3206', '昌吉市', '476'); INSERT INTO `ce_city` VALUES ('3207', '阜康市', '476'); INSERT INTO `ce_city` VALUES ('3208', '米泉市', '476'); INSERT INTO `ce_city` VALUES ('3209', '呼图壁县', '476'); INSERT INTO `ce_city` VALUES ('3210', '玛纳斯县', '476'); INSERT INTO `ce_city` VALUES ('3211', '奇台县', '476'); INSERT INTO `ce_city` VALUES ('3212', '吉木萨尔县', '476'); INSERT INTO `ce_city` VALUES ('3213', '木垒哈萨克自治县', '476'); INSERT INTO `ce_city` VALUES ('3214', '博乐市', '477'); INSERT INTO `ce_city` VALUES ('3215', '精河县', '477'); INSERT INTO `ce_city` VALUES ('3216', '温泉县', '477'); INSERT INTO `ce_city` VALUES ('3217', '库尔勒市', '478'); INSERT INTO `ce_city` VALUES ('3218', '轮台县', '478'); INSERT INTO `ce_city` VALUES ('3219', '尉犁县', '478'); INSERT INTO `ce_city` VALUES ('3220', '若羌县', '478'); INSERT INTO `ce_city` VALUES ('3221', '且末县', '478'); INSERT INTO `ce_city` VALUES ('3222', '焉耆回族自治县', '478'); INSERT INTO `ce_city` VALUES ('3223', '和静县', '478'); INSERT INTO `ce_city` VALUES ('3224', '和硕县', '478'); INSERT INTO `ce_city` VALUES ('3225', '博湖县', '478'); INSERT INTO `ce_city` VALUES ('3226', '阿克苏市', '479'); INSERT INTO `ce_city` VALUES ('3227', '温宿县', '479'); INSERT INTO `ce_city` VALUES ('3228', '库车县', '479'); INSERT INTO `ce_city` VALUES ('3229', '沙雅县', '479'); INSERT INTO `ce_city` VALUES ('3230', '新和县', '479'); INSERT INTO `ce_city` VALUES ('3231', '拜城县', '479'); INSERT INTO `ce_city` VALUES ('3232', '乌什县', '479'); INSERT INTO `ce_city` VALUES ('3233', '阿瓦提县', '479'); INSERT INTO `ce_city` VALUES ('3234', '柯坪县', '479'); INSERT INTO `ce_city` VALUES ('3235', '阿图什市', '480'); INSERT INTO `ce_city` VALUES ('3236', '阿克陶县', '480'); INSERT INTO `ce_city` VALUES ('3237', '阿合奇县', '480'); INSERT INTO `ce_city` VALUES ('3238', '乌恰县', '480'); INSERT INTO `ce_city` VALUES ('3239', '喀什市', '481'); INSERT INTO `ce_city` VALUES ('3240', '疏附县', '481'); INSERT INTO `ce_city` VALUES ('3241', '疏勒县', '481'); INSERT INTO `ce_city` VALUES ('3242', '英吉沙县', '481'); INSERT INTO `ce_city` VALUES ('3243', '泽普县', '481'); INSERT INTO `ce_city` VALUES ('3244', '莎车县', '481'); INSERT INTO `ce_city` VALUES ('3245', '叶城县', '481'); INSERT INTO `ce_city` VALUES ('3246', '麦盖提县', '481'); INSERT INTO `ce_city` VALUES ('3247', '岳普湖县', '481'); INSERT INTO `ce_city` VALUES ('3248', '伽师县', '481'); INSERT INTO `ce_city` VALUES ('3249', '巴楚县', '481'); INSERT INTO `ce_city` VALUES ('3250', '塔什库尔干塔吉克自治县', '481'); INSERT INTO `ce_city` VALUES ('3251', '和田市', '482'); INSERT INTO `ce_city` VALUES ('3252', '和田县', '482'); INSERT INTO `ce_city` VALUES ('3253', '墨玉县', '482'); INSERT INTO `ce_city` VALUES ('3254', '皮山县', '482'); INSERT INTO `ce_city` VALUES ('3255', '洛浦县', '482'); INSERT INTO `ce_city` VALUES ('3256', '策勒县', '482'); INSERT INTO `ce_city` VALUES ('3257', '于田县', '482'); INSERT INTO `ce_city` VALUES ('3258', '民丰县', '482'); INSERT INTO `ce_city` VALUES ('3259', '伊宁市', '483'); INSERT INTO `ce_city` VALUES ('3260', '奎屯市', '483'); INSERT INTO `ce_city` VALUES ('3261', '伊宁县', '483'); INSERT INTO `ce_city` VALUES ('3262', '察布查尔锡伯自治县', '483'); INSERT INTO `ce_city` VALUES ('3263', '霍城县', '483'); INSERT INTO `ce_city` VALUES ('3264', '巩留县', '483'); INSERT INTO `ce_city` VALUES ('3265', '新源县', '483'); INSERT INTO `ce_city` VALUES ('3266', '昭苏县', '483'); INSERT INTO `ce_city` VALUES ('3267', '特克斯县', '483'); INSERT INTO `ce_city` VALUES ('3268', '尼勒克县', '483'); INSERT INTO `ce_city` VALUES ('3269', '塔城市', '484'); INSERT INTO `ce_city` VALUES ('3270', '乌苏市', '484'); INSERT INTO `ce_city` VALUES ('3271', '额敏县', '484'); INSERT INTO `ce_city` VALUES ('3272', '沙湾县', '484'); INSERT INTO `ce_city` VALUES ('3273', '托里县', '484'); INSERT INTO `ce_city` VALUES ('3274', '裕民县', '484'); INSERT INTO `ce_city` VALUES ('3275', '和布克赛尔蒙古自治县', '484'); INSERT INTO `ce_city` VALUES ('3276', '阿勒泰市', '485'); INSERT INTO `ce_city` VALUES ('3277', '布尔津县', '485'); INSERT INTO `ce_city` VALUES ('3278', '富蕴县', '485'); INSERT INTO `ce_city` VALUES ('3279', '福海县', '485'); INSERT INTO `ce_city` VALUES ('3280', '哈巴河县', '485'); INSERT INTO `ce_city` VALUES ('3281', '青河县', '485'); INSERT INTO `ce_city` VALUES ('3282', '吉木乃县', '485'); INSERT INTO `ce_city` VALUES ('3358', '钓鱼岛', '0'); -- ---------------------------- -- Table structure for ce_config -- ---------------------------- DROP TABLE IF EXISTS `ce_config`; CREATE TABLE `ce_config` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id值', `Name` char(50) DEFAULT NULL COMMENT '名称', `Value` char(255) DEFAULT NULL COMMENT '值', `Createtime` datetime DEFAULT NULL COMMENT '创建时间', `Updatetime` datetime DEFAULT NULL COMMENT '更新时间', `CompanyID` int(11) DEFAULT NULL COMMENT '公司ID', `CityID` int(11) DEFAULT NULL COMMENT ' 城市ID', `PID` int(11) DEFAULT '0' COMMENT '父id', `State` int(5) DEFAULT '0' COMMENT '1 删除。0未删除', `Diction` int(11) DEFAULT NULL COMMENT '字典项', `Type` int(5) DEFAULT '0' COMMENT '0:text,1:checkbox,2:radio3:select', `Class` varchar(255) DEFAULT NULL COMMENT 'css样式', `Remarks` varchar(255) DEFAULT NULL COMMENT '描述', `Title` varchar(255) DEFAULT NULL COMMENT '标题', `Rule` varchar(255) DEFAULT NULL COMMENT '规则', `Message` varchar(255) DEFAULT NULL COMMENT '提示信息', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='系统配置表'; -- ---------------------------- -- Records of ce_config -- ---------------------------- INSERT INTO `ce_config` VALUES ('1', 'SYSTEM', '林北移动互联网', '2017-08-15 11:27:26', '2017-08-15 11:27:31', '1', '1', '3', '0', '0', '0', null, null, '系统名称', 'required: true,', 'required: \"This field is required.\",'); INSERT INTO `ce_config` VALUES ('2', 'COMPANY', '林北软件集团', '2017-08-13 11:37:52', '2017-08-13 11:37:56', '1', '1', '3', '0', '0', '1', null, null, '系统作者', null, null); INSERT INTO `ce_config` VALUES ('3', '', '系统', '2017-08-13 11:37:52', '2017-08-13 11:37:56', '1', '1', '0', '0', '0', '1', 'green ace-icon fa fa-home bigger-120', null, null, null, null); -- ---------------------------- -- Table structure for ce_databases -- ---------------------------- DROP TABLE IF EXISTS `ce_databases`; CREATE TABLE `ce_databases` ( `ID` int(11) NOT NULL, `Nmae` char(255) DEFAULT NULL, `Content` char(255) DEFAULT NULL, `Createtime` datetime DEFAULT NULL, `Updatetime` datetime DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_databases -- ---------------------------- -- ---------------------------- -- Table structure for ce_department -- ---------------------------- DROP TABLE IF EXISTS `ce_department`; CREATE TABLE `ce_department` ( `ID` int(8) NOT NULL AUTO_INCREMENT, `OrganizationName` char(32) CHARACTER SET utf8 DEFAULT NULL, `ShortName` char(32) CHARACTER SET utf8 DEFAULT NULL, `ClassDepth` int(1) DEFAULT NULL, `ParentID` int(8) DEFAULT '0', `CompetentID` int(8) DEFAULT NULL, `SubIDList` char(128) DEFAULT NULL, `DutyLeaderUserID` int(11) DEFAULT NULL, `OrderNumber` int(8) DEFAULT '1000', `DateTimeCreated` datetime DEFAULT NULL, `DateTimeUpdated` datetime DEFAULT NULL, `IsDelete` bit(1) DEFAULT b'0', `CityID` int(11) DEFAULT '0', `CompanyID` int(11) DEFAULT NULL, `Flag` int(5) DEFAULT '0', PRIMARY KEY (`ID`) ) ENGINE=MyISAM AUTO_INCREMENT=119 DEFAULT CHARSET=ascii ROW_FORMAT=COMPACT; -- ---------------------------- -- Records of ce_department -- ---------------------------- INSERT INTO `ce_department` VALUES ('1', '河南投资集团有限公司', '投资集团', '0', '0', '1', '1', null, '10', '2013-02-13 23:46:58', '2013-02-13 23:46:58', '\0', '1', '1', '1'); INSERT INTO `ce_department` VALUES ('2', '集团本部', '集团本部', '1', '1', '1', '2', null, '20', '2012-12-21 12:45:50', '2012-12-21 12:45:50', '\0', '1', '1', '1'); INSERT INTO `ce_department` VALUES ('3', '控股企业', '控股企业', '1', '1', '1', '3', null, '30', '2012-12-21 12:46:56', '2012-12-21 12:46:56', '\0', '1', '1', '0'); INSERT INTO `ce_department` VALUES ('4', '参股企业', '参股企业', '1', '1', '1', '4', null, '40', '2012-12-21 12:47:19', '2012-12-21 12:47:19', '\0', '1', '1', '0'); INSERT INTO `ce_department` VALUES ('5', '总经理工作部', '总经部', '2', '2', '2', '5', null, '100', '2014-04-08 08:42:09', '2014-04-08 08:42:09', '\0', '1', '1', '0'); INSERT INTO `ce_department` VALUES ('6', '发展计划部', '计划部', '2', '2', '2', '6', null, '300', '2014-04-17 14:35:37', '2014-04-17 14:35:37', '\0', '1', '1', '0'); INSERT INTO `ce_department` VALUES ('7', '企业策划部', '企划部', '2', '2', '2', '7|99|100|101|104', null, '400', '2013-07-26 09:57:06', '2013-07-26 09:57:06', '\0', '6', '1', '0'); INSERT INTO `ce_department` VALUES ('8', '资本运营部', '资本部', '2', '2', '2', '8', null, '500', '2014-04-17 15:46:34', '2014-04-17 15:46:34', '\0', '7', '1', null); INSERT INTO `ce_department` VALUES ('9', '豫能控股', '电力子公司', '2', '2', '2', '9|23|24|25|27|28|29|30|31|32|33|34|45|73|74|85|86|108|115', null, '1800', '2013-07-26 10:07:15', '2013-07-26 10:07:15', '\0', '8', '1', null); INSERT INTO `ce_department` VALUES ('10', '金融管理部', '金融部', '2', '2', '2', '10|35|36|37|38|89|98|110', null, '1300', '2016-03-14 09:55:16', '2016-03-14 09:55:16', '\0', '9', '1', '0'); INSERT INTO `ce_department` VALUES ('11', '大河纸业', '造纸子公司', '2', '2', '2', '11|39|40|46|47', null, '1900', '2013-07-26 10:07:51', '2013-07-26 10:07:51', '\0', '12', '1', '0'); INSERT INTO `ce_department` VALUES ('12', '同力股份', '同力股份', '2', '2', '2', '12|104|42|43|48|49|50|51|52|53|75|76|77|78|79|80|81|82|87|96|97|102|105|114', null, '2000', '2013-07-26 10:08:21', '2013-07-26 10:08:21', '\0', '12', '1', '0'); INSERT INTO `ce_department` VALUES ('13', '产业管理部', '产业部', '2', '2', '2', '13|54|55|56|57|58|59|60|83|84|93', null, '1500', '2016-03-14 09:55:45', '2016-03-14 09:55:45', '\0', '13', '1', '0'); INSERT INTO `ce_department` VALUES ('14', '控股发展', '控股发展', '2', '2', '2', '14|41|61|62|72|103|106', null, '1400', '2015-12-03 05:05:06', '2015-12-03 05:05:06', '\0', '14', '1', '0'); INSERT INTO `ce_department` VALUES ('15', '天地置业', '天地置业', '2', '2', '2', '15|44|63|64|65|66|67|68|69|70|71|88|94|95', null, '1600', '2015-12-03 05:04:11', '2015-12-03 05:04:11', '\0', '15', '1', '0'); INSERT INTO `ce_department` VALUES ('16', '资产管理部', '资产部', '2', '2', '2', '16', null, '1700', '2016-03-14 09:56:14', '2016-03-14 09:56:14', '\0', '16', '1', '0'); INSERT INTO `ce_department` VALUES ('17', '专家咨询办公室', '专家办公室', '2', '2', '2', '17', null, '2100', '2013-07-26 10:23:31', '2013-07-26 10:23:31', '\0', '1', '1', '0'); INSERT INTO `ce_department` VALUES ('18', '人力资源部', '人力部', '2', '2', '2', '18', null, '700', '2013-07-26 10:00:55', '2013-07-26 10:00:55', '\0', '1', '1', '0'); INSERT INTO `ce_department` VALUES ('19', '财务部', '财务部', '2', '2', '2', '19', null, '800', '2013-07-26 10:01:20', '2013-07-26 10:01:20', '\0', '1', '1', '1'); INSERT INTO `ce_department` VALUES ('20', '审计部', '审计部', '2', '2', '2', '20', null, '900', '2013-07-26 10:01:33', '2013-07-26 10:01:33', '\0', '1', '1', '1'); INSERT INTO `ce_department` VALUES ('21', '党群工作部', '党群部', '2', '2', '2', '21', null, '1100', '2014-04-17 15:46:56', '2014-04-17 15:46:56', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('22', '纪检监察部', '纪检部', '2', '2', '2', '22', null, '1200', '2014-04-17 15:46:44', '2014-04-17 15:46:44', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('23', '河南豫能控股股份有限公司', '豫能控股', '2', '3', '9', '23|115', null, '2000', '2013-01-29 14:23:43', '2013-01-29 14:23:43', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('24', '南阳鸭河口发电有限责任公司', '鸭河口发电', '2', '3', '9', '24', null, '2100', '2012-12-21 11:11:09', '2013-01-29 14:24:20', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('25', '南阳天益发电有限责任公司', '天益发电', '2', '3', '9', '25', null, '2200', '2012-12-21 11:36:45', '2013-01-29 14:25:23', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('26', '法律事务部', '法律部', '2', '2', '2', '26', null, '1000', '2012-12-21 12:32:09', '2013-07-26 10:01:42', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('27', '鹤壁万和发电有限责任公司', '万和发电', '2', '3', '9', '27', null, '2300', '2012-12-21 13:01:18', '2013-01-29 14:25:33', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('28', '鹤壁同力发电有限责任公司', '同力发电', '2', '3', '9', '28', null, '2400', '2012-12-24 03:42:15', '2013-01-29 14:25:58', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('29', '鹤壁丰鹤发电有限责任公司', '鹤壁丰鹤', '2', '3', '9', '29', null, '2500', '2012-12-24 03:42:41', '2013-01-29 14:26:29', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('30', '河南新中益电力有限公司', '新中益', '2', '3', '9', '30', null, '2600', '2012-12-24 03:43:26', '2013-01-29 14:27:11', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('31', '濮阳龙丰热电有限责任公司', '龙丰热电', '2', '3', '9', '31', null, '2700', '2012-12-24 03:46:35', '2013-02-28 11:33:57', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('32', '焦作天力电力投资有限公司', '焦作天力', '2', '3', '9', '32', null, '2800', '2012-12-24 03:48:05', '2013-01-29 14:27:40', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('33', '郑州新力电力有限公司', '郑州新力', '2', '3', '9', '33', null, '2800', '2012-12-24 03:52:21', '2013-01-29 14:28:12', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('34', '河南投资集团燃料有限责任公司', '燃料公司', '2', '3', '9', '34', null, '2900', '2012-12-24 03:52:50', '2013-01-29 14:28:23', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('35', '中原证券股份有限公司', '中原证券', '2', '3', '10', '35', null, '1300100', '2012-12-24 04:03:10', '2013-07-26 10:25:02', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('36', '中原信托有限公司', '中原信托', '2', '3', '10', '36', null, '1300200', '2012-12-24 04:10:31', '2013-07-26 10:27:20', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('37', '开封市商业银行股份有限公司', '开封商行', '2', '3', '10', '37', null, '1300300', '2012-12-24 04:11:42', '2013-07-26 10:27:40', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('38', '河南投资集团担保有限公司', '担保公司', '2', '3', '10', '38|110', null, '1300400', '2012-12-24 04:17:13', '2013-07-26 10:28:00', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('39', '驻马店市白云纸业有限公司', '白云纸业', '2', '3', '11', '39', null, '3200', '2012-12-24 04:24:50', '2013-01-29 14:29:12', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('40', '濮阳龙丰纸业有限公司', '龙丰纸业', '2', '3', '11', '40', null, '3300', '2012-12-24 04:25:16', '2013-01-29 14:24:50', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('41', '河南省许平南高速公路有限责任公司', '许平南', '2', '3', '14', '41', null, '1400300', '2013-01-16 08:24:44', '2013-07-26 10:33:51', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('42', '驻马店市豫龙同力水泥有限公司', '豫龙同力', '2', '3', '12', '42|75|76|77|78|79|80|81|82', null, '1000', '2013-01-21 14:50:41', '2013-01-29 14:48:24', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('43', '河南同力水泥股份公司', '同力股份', '2', '3', '12', '43', null, '1000', '2013-01-21 14:51:37', '2013-01-21 14:51:37', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('44', '林州市太行大峡谷旅游开发有限公司', '大峡谷', '2', '3', '15', '44', null, '1600200', '2013-01-29 10:47:45', '2013-07-26 10:36:55', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('45', '河南豫能电力检修工程有限公司', '豫能检修', '2', '3', '9', '45|115', null, '2850', '2013-01-29 14:35:38', '2013-01-29 14:36:50', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('46', '焦作瑞丰纸业有限公司', '瑞丰纸业', '2', '3', '11', '46', null, '3310', '2013-01-29 14:38:44', '2013-01-29 14:38:44', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('47', '周口大河林业有限公司', '大河林业', '2', '3', '11', '47', null, '3310', '2013-01-29 14:39:00', '2013-01-29 14:39:00', '\0', '1', '1', null); INSERT INTO `ce_department` VALUES ('48', '三门峡市建方水泥有限公司', '建方水泥', '2', '3', '12', '48', null, '3310', '2013-01-29 14:39:42', '2013-01-29 14:39:42', '\0', '1', null, null); INSERT INTO `ce_department` VALUES ('49', '河南省豫鹤同力水泥有限公司', '豫鹤同力', '2', '3', '12', '49|97|105', null, '4000', '2013-01-29 14:40:33', '2013-01-29 14:40:33', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('50', '洛阳黄河同力水泥有限责任公司', '黄河同力', '2', '3', '12', '50', null, '4000', '2013-01-29 14:40:51', '2013-01-29 14:40:51', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('51', '新乡平原同力水泥有限责任公司', '平原同力', '2', '3', '12', '51|96|102', null, '4100', '2013-01-29 14:41:10', '2013-01-29 14:41:10', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('52', '河南省同力水泥有限公司', '省同力', '2', '3', '12', '52|114|105', null, '4200', '2013-01-29 14:41:25', '2013-09-17 15:09:11', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('53', '河南省豫南水泥有限公司', '豫南水泥', '2', '3', '12', '53', null, '4200', '2013-01-29 14:42:00', '2013-09-17 15:09:37', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('54', '郑州拓洋实业有限公司', '拓洋实业', '2', '3', '13', '54', null, '5000', '2013-01-29 14:42:57', '2013-01-29 14:42:57', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('55', '河南安彩高科股份有限公司', '安彩高科', '2', '3', '13', '55', null, '1500100', '2013-01-29 14:43:10', '2013-07-26 10:35:08', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('56', '南阳信泰科技有限公司', '信泰科技', '2', '3', '13', '56', null, '5000', '2013-01-29 14:43:19', '2013-01-29 14:43:19', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('57', '郑州海特模具有限公司', '海特模具', '2', '3', '13', '57', null, '5000', '2013-01-29 14:43:29', '2013-01-29 14:43:29', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('58', '河南仲景药业有限公司', '仲景药业', '2', '3', '13', '58', null, '5000', '2013-01-29 14:43:39', '2013-01-29 14:43:39', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('59', '洛阳春都投资股份有限公司', '春都投资', '2', '3', '13', '59', null, '5000', '2013-01-29 14:43:50', '2013-01-29 14:43:50', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('60', '河南新能硅业科技有限公司', '新能硅业', '2', '3', '13', '60', null, '5000', '2013-01-29 14:44:01', '2013-01-29 14:44:01', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('61', '河南天地置业有限责任公司', '天地置业', '2', '3', '14', '61', null, '1400100', '2013-01-29 14:44:53', '2013-07-26 10:32:59', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('62', '河南投资集团电子科技有限责任公司', '电子科技', '2', '3', '14', '62', null, '1400200', '2013-01-29 14:45:22', '2013-07-26 10:33:10', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('63', '天地酒店管理公司', '酒管公司', '2', '3', '15', '63|94|95', null, '1600100', '2013-01-29 14:45:40', '2013-07-26 10:37:07', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('64', '河南投资集团丹阳岛开发有限公司', '丹阳岛', '2', '3', '15', '64', null, '1600300', '2013-01-29 14:46:28', '2013-07-26 10:37:17', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('65', '内黄林场', '内黄林场', '2', '3', '15', '65', null, '1600400', '2013-01-29 14:46:46', '2013-07-26 10:42:03', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('66', '民权林场', '民权林场', '2', '3', '15', '66', null, '1600500', '2013-01-29 14:46:54', '2013-07-26 10:43:24', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('67', '西华林场', '西华林场', '2', '3', '15', '67', null, '1600600', '2013-01-29 14:47:01', '2013-07-26 10:43:09', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('68', '扶沟林场', '扶沟林场', '2', '3', '15', '68', null, '1600700', '2013-01-29 14:47:12', '2013-07-26 10:42:39', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('69', '河南省国有固始林场', '固始林场', '2', '3', '15', '69', null, '1600800', '2013-01-29 14:47:26', '2013-07-26 10:42:20', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('70', '河南省林业厅物资站', '物资站', '2', '3', '15', '70', null, '1601000', '2013-01-29 14:47:49', '2013-07-26 10:39:15', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('71', '河南投资集团白条河农场', '白条河农场', '2', '3', '15', '71', null, '1600900', '2013-01-29 14:48:00', '2013-07-26 10:40:31', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('72', '河南林长高速公路有限责任公司', '林长高速', '2', '3', '14', '72', null, '1400400', '2013-01-31 15:31:00', '2013-07-26 10:34:45', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('73', '新乡中益计划部', '中益计划部', '3', '85', '85', '73', null, '1000', '2013-02-04 16:58:32', '2013-03-14 11:46:55', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('74', '鹤壁鹤淇发电有限责任公司', '鹤壁鹤淇', '2', '3', '9', '74', null, '1000', '2013-02-16 14:35:29', '2013-02-16 14:35:29', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('75', '豫龙同力信阳分公司', '豫龙同力信阳', '3', '42', '42', '75', null, '1000', '2013-02-19 15:26:41', '2013-02-19 17:06:24', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('76', '豫龙同力采购部-大宗原材料', '豫龙同力大采', '3', '42', '42', '76', null, '1000', '2013-02-19 16:57:10', '2013-02-19 16:59:57', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('77', '豫龙同力采购部-备品备件', '豫龙同力备品', '3', '42', '42', '77', null, '1000', '2013-02-19 16:57:45', '2013-02-19 17:00:21', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('78', '豫龙同力物流部-运输服务', '豫龙同力物流', '3', '42', '42', '78', null, '1000', '2013-02-19 16:58:11', '2013-02-19 17:00:29', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('79', '豫龙同力二期-工程', '豫龙同力二期', '3', '42', '42', '79', null, '1000', '2013-02-19 16:58:34', '2013-02-19 17:00:37', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('80', '豫龙同力综合办-劳务', '豫龙同力劳务', '3', '42', '42', '80', null, '1000', '2013-02-19 16:58:54', '2013-02-19 17:00:57', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('81', '豫龙同力生产部-维修服务', '豫龙同力维修', '3', '42', '42', '81', null, '1000', '2013-02-19 16:59:14', '2013-02-19 17:01:09', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('82', '豫龙同力新辉', '豫龙同力新辉', '3', '42', '42', '82', null, '1000', '2013-02-20 10:19:00', '2013-02-20 10:19:00', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('83', '河南省立安实业有限责任公司', '立安实业', '2', '3', '13', '83', null, '1500700', '2013-02-27 10:43:29', '2013-07-26 10:32:28', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('84', '河南省发展燃气有限公司', '发展燃气', '2', '3', '13', '84', null, '1000', '2013-03-05 17:28:53', '2014-05-08 09:35:35', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('85', '新乡中益发电有限公司', '新乡中益', '2', '3', '9', '73|85|86', null, '1000', '2013-03-14 11:45:59', '2013-03-14 11:45:59', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('86', '新乡中益物资部', '中益物资部', '3', '85', '85', '86', null, '1000', '2013-03-14 11:47:41', '2013-03-14 11:47:41', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('87', '三门峡腾跃同力水泥有限公司', '腾跃同力', '2', '3', '12', '87', null, '1000', '2013-06-07 11:20:34', '2013-06-07 11:20:34', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('88', '河南省绿源林产品有限公司', '绿源公司', '2', '3', '15', '88', null, '1601100', '2013-06-26 16:06:03', '2013-07-26 10:39:31', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('89', '北京新安财富创业投资有限公司', '北新投', '2', '3', '10', '89', null, '1300800', '2013-07-02 10:23:02', '2013-07-26 10:31:38', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('90', '战略发展部', '战略部', '2', '2', '2', '90', null, '200', '2013-07-26 09:53:26', '2013-07-26 09:55:37', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('91', '工程管理部', '工程部', '2', '2', '2', '91', null, '400', '2013-07-26 09:53:46', '2014-04-17 15:46:21', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('92', '董事会办公室', '董事会办公室', '2', '2', '2', '92', null, '2200', '2013-07-26 10:24:06', '2015-04-23 15:26:40', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('93', '郑州宝蓝包装技术有限公司', '郑州宝蓝', '2', '3', '13', '93', null, '1500800', '2013-09-04 15:22:47', '2013-09-04 15:23:17', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('94', '河南天地酒店有限公司', '天地酒店', '3', '63', '15', '94', null, '1000', '2013-09-06 16:44:33', '2013-09-06 16:44:33', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('95', '天地酒店公司红旗渠迎宾馆分公司', '红旗渠迎宾馆', '3', '63', '15', '95', null, '1000', '2013-09-06 16:44:59', '2013-09-06 16:46:13', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('96', '长垣县同力水泥有限责任公司', '长垣同力', '3', '51', '12', '96', null, '1000', '2013-09-17 15:07:40', '2013-09-18 08:25:09', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('97', '濮阳同力水泥有限公司', '濮阳同力', '3', '49', '12', '97', null, '1000', '2013-09-18 08:24:51', '2013-09-18 08:24:51', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('98', '河南创业投资有限公司', '河南创投', '2', '3', '10', '98', null, '1300900', '2013-11-14 10:32:04', '2013-11-14 10:33:03', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('99', '电力董事会', '电力董事会', '3', '2', '7', '99', null, '1000', '2014-04-08 08:43:46', '2014-04-08 08:45:27', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('100', '造纸董事会', '造纸董事会', '3', '2', '7', '100', null, '1000', '2014-04-08 08:44:11', '2014-04-08 08:45:43', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('101', '水泥董事会', '水泥董事会', '3', '2', '7', '101|104', null, '1000', '2014-04-08 08:44:20', '2014-04-08 08:45:55', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('102', '长垣同力建材有限公司', '长垣同力建材', '3', '51', '12', '102', null, '1000', '2014-06-09 10:51:22', '2014-06-09 10:51:22', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('103', '河南投资集团控股发展有限公司', '控股发展', '2', '3', '14', '103', null, '1400500', '2014-06-16 11:28:26', '2014-06-16 11:29:09', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('104', '同力水泥豫北运营区', '同力豫北区', '3', '12', '101', '104', null, '1000', '2015-01-20 09:54:38', '2015-01-20 09:54:38', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('105', '鹤壁同力建材有限公司', '鹤壁同力建材', '3', '49', '52', '105', null, '1000', '2015-02-28 10:31:21', '2015-02-28 10:31:21', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('106', '郑州航空港水务发展有限公司', '港区水务', '2', '3', '14', '106', null, '1400510', '2015-04-07 16:54:00', '2015-04-07 16:55:54', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('107', '集团领导', '集团领导', '2', '2', '2', '107', null, '50', '2015-04-24 11:53:46', '2015-04-24 11:54:16', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('108', '濮阳豫能发电有限责任公司', '濮阳豫能', '2', '3', '9', '108', null, '2850', '2015-04-24 15:51:33', '2015-04-24 15:52:45', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('109', '控股企业高管', '企业高管', '2', '2', '2', '109', null, '1750', '2015-04-27 10:11:41', '2015-04-27 10:12:25', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('110', '综合部', '担保-综合部', '3', '38', '38', '110', null, '1000', '2015-05-04 10:10:22', '2015-05-04 10:10:22', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('111', '基金管理部', '基金部', '2', '2', '2', '111', null, '1210', '2015-11-10 16:01:15', '2015-11-10 16:02:20', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('112', '信息管理部', '信息部', '2', '2', '2', '112', null, '1220', '2015-11-10 16:02:53', '2015-11-10 16:02:53', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('113', '业务协同部', '协同部', '2', '2', '2', '113', null, '1230', '2015-11-10 16:03:14', '2015-11-10 16:05:35', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('114', '省同力综合办', '综合办', '3', '52', '52', '114', null, '1000', '2016-05-10 11:08:20', '2016-05-10 11:08:20', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('115', '河南煤炭储配交易中心有限公司', '煤炭交易', '3', '23', '45', '115', null, '1000', '2016-05-13 17:24:16', '2016-05-13 17:24:16', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('116', '河南城市发展投资有限公司', '省发投', '2', '1', '117', '116', null, '1000', '2016-06-02 08:14:47', '2016-06-02 08:16:07', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('117', '河南城发', '河南城发', '2', '2', '2', '117|116', null, '1400', '2016-06-02 08:15:13', '2016-06-02 08:19:44', '\0', null, null, null); INSERT INTO `ce_department` VALUES ('118', '颐城控股', '颐城控股', '2', '2', '2', '118', null, '1400', '2016-06-02 08:23:33', '2016-06-02 08:23:33', '\0', null, null, null); -- ---------------------------- -- Table structure for ce_department1 -- ---------------------------- DROP TABLE IF EXISTS `ce_department1`; CREATE TABLE `ce_department1` ( `ID` int(5) NOT NULL AUTO_INCREMENT, `DepartmentID` int(5) DEFAULT NULL, `DepartmentName` char(50) DEFAULT NULL, `ParentID` int(5) DEFAULT NULL, `IsDelete` int(5) DEFAULT '0', `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_department1 -- ---------------------------- -- ---------------------------- -- Table structure for ce_directory -- ---------------------------- DROP TABLE IF EXISTS `ce_directory`; CREATE TABLE `ce_directory` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `FileName` char(255) DEFAULT NULL, `ParentID` bigint(20) DEFAULT NULL, `CityID` int(11) DEFAULT '0', `CompanyID` int(11) DEFAULT '0' COMMENT '公司ID', `Size` int(11) NOT NULL DEFAULT '0' COMMENT '文件数量', `IsDelete` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除', `Type` int(11) DEFAULT '0', `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `Path` char(100) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_directory -- ---------------------------- INSERT INTO `ce_directory` VALUES ('1', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('2', '手机', '1', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('3', '电脑', '1', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('4', '我的模板', '3', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('5', '我的文件', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('6', '金融', '1', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('7', '机械', '1', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('8', '水平', '1', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('9', '被子', '1', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('10', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('11', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('12', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('13', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('14', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('15', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('16', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('17', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('18', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('19', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('20', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('21', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('22', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('23', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('24', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('25', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('26', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('27', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); INSERT INTO `ce_directory` VALUES ('28', '我的图片', '0', '0', '0', '0', '0', '0', '2017-05-25 10:30:02', '2017-05-16 10:29:59', 'sdfsld'); -- ---------------------------- -- Table structure for ce_email -- ---------------------------- DROP TABLE IF EXISTS `ce_email`; CREATE TABLE `ce_email` ( `ID` int(11) unsigned NOT NULL AUTO_INCREMENT, `Title` char(255) DEFAULT NULL COMMENT '标题', `From` char(255) DEFAULT NULL, `To` char(255) DEFAULT NULL, `Body` text COMMENT '内容', `Dir` int(5) DEFAULT '0' COMMENT '0:草稿箱,1:发件箱2:收件箱3:回收站;文件目录', `IsHot` int(5) DEFAULT '0' COMMENT '热点', `UserID` bigint(20) DEFAULT NULL COMMENT '用户id', `Updatetime` datetime DEFAULT NULL, `Createtime` datetime DEFAULT NULL, `IsRead` int(5) DEFAULT '0' COMMENT '是否阅读', `Status` int(5) DEFAULT '0' COMMENT '发送状态0:未发送,1:已发送,', `IsDelete` int(5) DEFAULT '0' COMMENT '状态0:未删除1:删除', `CityID` int(11) DEFAULT NULL COMMENT '城市id', `CompanyID` int(11) DEFAULT NULL COMMENT '公司id', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_email -- ---------------------------- INSERT INTO `ce_email` VALUES ('1', '谁', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('2', '谁1', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('3', '谁2', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('4', '谁3', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('5', '谁4', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('6', '谁5', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('7', '谁6', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('8', '谁45', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('9', '谁334', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('10', '谁345', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('11', '谁45', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('12', '谁344', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('13', '谁34', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('14', '谁fd', '9@qq.com', '44@a.com', 'dsfsd', '1', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('15', '谁34v', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('16', '谁43tv', '9@qq.com', '44@a.com', 'dsfsd', '1', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('17', '谁34tt', '9@qq.com', '44@a.com', 'dsfsd', '1', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('18', '谁tte', '9@qq.com', '44@a.com', 'dsfsd', '1', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('19', '谁sdfg', '9@qq.com', '44@a.com', 'dsfsd', '1', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('20', '谁sdfgdf', '9@qq.com', '44@a.com', 'dsfsd', '1', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('21', '谁sd', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('22', '谁dg', '9@qq.com', '44@a.com', 'dsfsd', '1', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('23', '谁sdfg', '9@qq.com', '44@a.com', 'dsfsd', '1', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('24', '谁dsgv', '9@qq.com', '44@a.com', 'dsfsd', '1', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('25', '谁sddg', '9@qq.com', '44@a.com', 'dsfsd', '1', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('26', '谁ffds3', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('27', '谁sergw', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('28', '谁regw', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('29', '谁cwe', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('30', '谁23v', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('31', '谁er2', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('32', '谁fv3', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('33', '谁rfe3', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('34', '谁wrew4', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('35', '谁fgbre', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('36', '谁g', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('37', '谁erw', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('38', '谁wrg', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', null, '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('39', '谁reg', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('40', '谁th', '9@qq.com', '44@a.com', 'dsfsd', '0', '1', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('41', '谁a', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('42', '谁af', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('43', '谁as', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('44', '谁w', '9@qq.com', '44@a.com', 'dsfsd', '1', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('45', '谁gf', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('46', '谁fg', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('47', '谁hs', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('48', '谁hhwsreg', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('49', '谁sdfvs', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('50', '谁vgf', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('51', '谁ds', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('52', '谁gsdf', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('53', '谁adfa', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('54', '谁afe', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('55', '谁ef', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('56', '谁daf', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('57', '谁df', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('58', '谁aef', '9@qq.com', '44@a.com', 'dsfsd', '2', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('59', '谁34er', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('60', '谁v43', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('61', '谁wert134', '9@qq.com', '44@a.com', 'dsfsd', '3', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('62', '谁324', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('63', '谁rqe', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('64', '谁efe', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); INSERT INTO `ce_email` VALUES ('65', '谁we', '9@qq.com', '44@a.com', 'dsfsd', '0', '0', '12', '2017-06-05 14:49:28', '2017-06-13 14:49:25', '0', '0', '0', '0', '0'); -- ---------------------------- -- Table structure for ce_emailfiledir -- ---------------------------- DROP TABLE IF EXISTS `ce_emailfiledir`; CREATE TABLE `ce_emailfiledir` ( `ID` int(11) NOT NULL, `Name` varchar(50) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `UpdateTime` datetime DEFAULT NULL, `CreateTime` datetime DEFAULT NULL, `UserID` int(11) DEFAULT NULL, `ParentID` int(11) DEFAULT NULL COMMENT '父ID', `Type` int(11) DEFAULT NULL COMMENT '0:邮件1:消息2:任务', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件分组'; -- ---------------------------- -- Records of ce_emailfiledir -- ---------------------------- -- ---------------------------- -- Table structure for ce_enclosure -- ---------------------------- DROP TABLE IF EXISTS `ce_enclosure`; CREATE TABLE `ce_enclosure` ( `ID` int(11) unsigned NOT NULL AUTO_INCREMENT, `Name` char(100) DEFAULT NULL COMMENT '名称', `Type` int(255) unsigned DEFAULT '0' COMMENT '0:图片1file', `EmailID` int(11) DEFAULT '0' COMMENT '邮件ID', `Path` char(255) DEFAULT NULL COMMENT '附件地址', `IsDelete` int(5) DEFAULT '0' COMMENT '是否删除', `Createtime` datetime DEFAULT NULL, `Updatetime` datetime DEFAULT NULL, `Quote` int(5) DEFAULT '0' COMMENT '引用计数', `CityID` int(11) DEFAULT '0' COMMENT '城市ID', `CompanyID` int(11) DEFAULT '0' COMMENT '公司id', `EmailDirID` int(11) DEFAULT NULL COMMENT '附件分组id', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8 COMMENT='邮箱附件表'; -- ---------------------------- -- Records of ce_enclosure -- ---------------------------- INSERT INTO `ce_enclosure` VALUES ('1', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('2', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('3', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('4', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('5', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('6', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('7', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('8', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('9', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('10', 'dfa', '0', '2', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('11', 'dfa', '1', '3', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('12', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('13', 'dfa', '1', '3', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('14', 'dfa', '1', '3', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('15', 'dfa', '0', '13', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('16', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('17', 'dfa', '0', '13', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('18', 'dfa', '0', '2', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('19', 'dfa', '0', '4', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('20', 'dfa', '0', '13', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('21', 'dfa', '0', '123', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('22', 'dfa', '1', '12', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('23', 'dfa', '0', '12', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('24', 'dfa', '1', '11', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('25', 'dfa', '1', '15', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('26', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('27', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('28', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('29', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('30', 'dfa', '11', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('31', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('32', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('33', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('34', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('35', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('36', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('37', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('38', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('39', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('40', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('41', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('42', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('43', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('44', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('45', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('46', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('47', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('48', 'dfa', '11', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('49', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('50', 'dfa', '0', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('51', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); INSERT INTO `ce_enclosure` VALUES ('52', 'dfa', '1', '1', 'dsfasf', '0', '2017-06-05 17:29:06', '2017-06-19 17:29:10', '0', '0', '0', null); -- ---------------------------- -- Table structure for ce_file -- ---------------------------- DROP TABLE IF EXISTS `ce_file`; CREATE TABLE `ce_file` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `FileName` varchar(255) DEFAULT NULL, `URL` varchar(255) DEFAULT NULL, `Path` varchar(255) DEFAULT NULL, `UserID` bigint(20) DEFAULT NULL, `Quote` int(5) DEFAULT NULL, `type` char(20) DEFAULT NULL COMMENT '文件类型', `FileID` bigint(20) DEFAULT NULL, `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_file -- ---------------------------- -- ---------------------------- -- Table structure for ce_image -- ---------------------------- DROP TABLE IF EXISTS `ce_image`; CREATE TABLE `ce_image` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `ImageName` char(255) DEFAULT NULL, `URL` char(255) DEFAULT NULL, `Path` char(255) DEFAULT NULL, `UserID` bigint(20) DEFAULT NULL, `Type` char(20) DEFAULT NULL COMMENT '文件类型', `FileID` bigint(20) DEFAULT NULL, `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `IsDelete` int(5) DEFAULT '0', `Quote` int(5) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_image -- ---------------------------- INSERT INTO `ce_image` VALUES ('4', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('5', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('6', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('7', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('8', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('9', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('10', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('11', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('12', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('13', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('14', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('15', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('16', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('17', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('18', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('19', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('20', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('21', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('22', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('23', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('24', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('25', '杯子', 'http://dsfaldkf', 'sdfa', '1', 'png', '1', '2017-05-09 14:58:22', '2017-05-15 14:58:25', null, null); INSERT INTO `ce_image` VALUES ('26', 'f.jpg', 'upload/file/image/20170603/f49078f99afd1c35eafe130c1f0f09a2.jpg', 'upload/file/image/20170603/f49078f99afd1c35eafe130c1f0f09a2.jpg', null, null, '0', null, null, '0', null); INSERT INTO `ce_image` VALUES ('27', 'f.jpg', 'upload/file/image/20170603/9fbfb16832af7818d43b087083428ae5.jpg', 'upload/file/image/20170603/9fbfb16832af7818d43b087083428ae5.jpg', null, null, '0', null, null, '0', null); INSERT INTO `ce_image` VALUES ('28', 'f.jpg', 'upload/file/image/20170603/db00c0fc7bcd83f9b781963a6a5fa13d.jpg', 'upload/file/image/20170603/db00c0fc7bcd83f9b781963a6a5fa13d.jpg', null, null, '0', null, null, '0', null); INSERT INTO `ce_image` VALUES ('29', 'f.jpg', 'upload/file/image/20170617/f9a4e5e9a3f618d32170eefaaaee258f.jpg', 'upload/file/image/20170617/f9a4e5e9a3f618d32170eefaaaee258f.jpg', null, 'jpeg', '1', null, null, '0', null); INSERT INTO `ce_image` VALUES ('30', 'tt.jpg', 'upload/file/image/20170617/8df690015218566aea0b74ccc361d4a4.jpg', 'upload/file/image/20170617/8df690015218566aea0b74ccc361d4a4.jpg', null, 'jpeg', '1', null, null, '0', null); -- ---------------------------- -- Table structure for ce_information -- ---------------------------- DROP TABLE IF EXISTS `ce_information`; CREATE TABLE `ce_information` ( `ID` bigint(20) NOT NULL, `Information` char(255) DEFAULT NULL COMMENT '信息主题', `From` bigint(20) DEFAULT NULL COMMENT '来自', `To` bigint(20) DEFAULT NULL COMMENT '去向', `Type` char(255) DEFAULT NULL COMMENT '类型', `Createtime` datetime DEFAULT NULL, `Updatetime` datetime DEFAULT NULL, `IsDelete` int(5) DEFAULT NULL COMMENT '是否删除', `IsRead` int(5) DEFAULT NULL COMMENT '是否以读', `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户之间信息表'; -- ---------------------------- -- Records of ce_information -- ---------------------------- -- ---------------------------- -- Table structure for ce_log -- ---------------------------- DROP TABLE IF EXISTS `ce_log`; CREATE TABLE `ce_log` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `Title` char(255) DEFAULT NULL COMMENT '标题', `Content` char(255) DEFAULT NULL COMMENT '内容', `CompanyID` int(11) DEFAULT NULL COMMENT '公司ID', `CityID` int(11) DEFAULT NULL COMMENT '城市', `Createtime` datetime DEFAULT NULL COMMENT '创建时间', `Updatetime` datetime DEFAULT NULL COMMENT '更新时间', `UserID` bigint(20) DEFAULT NULL COMMENT '用户id', `Type` int(255) DEFAULT NULL COMMENT '类型。2:警告,1:错误,0普通', `IsDelete` int(5) DEFAULT NULL COMMENT '是否删除', `ErrorID` bigint(20) DEFAULT NULL COMMENT '错误代码', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='日志表'; -- ---------------------------- -- Records of ce_log -- ---------------------------- INSERT INTO `ce_log` VALUES ('1', 'sdfasd', '都是发的', '0', '0', '2017-05-08 11:20:12', '2017-05-15 11:20:16', '0', '0', '0', '0'); -- ---------------------------- -- Table structure for ce_member -- ---------------------------- DROP TABLE IF EXISTS `ce_member`; CREATE TABLE `ce_member` ( `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT, `UserID` bigint(20) NOT NULL, `Username` char(60) NOT NULL DEFAULT '' COMMENT '用户名', `Nickname` char(32) DEFAULT NULL COMMENT '昵称', `Password` char(64) NOT NULL DEFAULT '' COMMENT '登录密码;mb_password加密', `Avatar` char(255) DEFAULT '' COMMENT '用户头像,相对于upload/avatar目录', `Email` char(100) NOT NULL DEFAULT '' COMMENT '登录邮箱', `CityID` char(16) DEFAULT '0' COMMENT '市', `Signature` char(64) DEFAULT NULL COMMENT '个性签名', `Lleval_id` tinyint(4) DEFAULT '0' COMMENT '会员等级', `Iintegral` int(11) DEFAULT '0' COMMENT '积分', `Gold` int(11) DEFAULT '0' COMMENT '金币', `Status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户状态 0:禁用; 1:正常 ;2:未验证', `Sendtime` char(32) DEFAULT NULL COMMENT '找回密码发送邮件的时间', `IsDelete` int(5) DEFAULT NULL, `Createtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间', `Updatetime` datetime DEFAULT NULL COMMENT '更新时间', `CompanyID` int(11) DEFAULT NULL, `Auth` tinytext COMMENT '权限列表', PRIMARY KEY (`id`), KEY `user_login_key` (`Username`) USING BTREE, KEY `user` (`UserID`), CONSTRAINT `user` FOREIGN KEY (`UserID`) REFERENCES `ce_memberinfo` (`UserID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表'; -- ---------------------------- -- Records of ce_member -- ---------------------------- -- ---------------------------- -- Table structure for ce_memberinfo -- ---------------------------- DROP TABLE IF EXISTS `ce_memberinfo`; CREATE TABLE `ce_memberinfo` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `UserID` bigint(20) DEFAULT NULL COMMENT '用户名', `OldPassword` char(64) NOT NULL DEFAULT '' COMMENT '登录密码;mb_password加密', `Sex` char(4) DEFAULT '0' COMMENT '性别 1是男,2是女', `Email_code` char(60) DEFAULT NULL COMMENT '激活码', `Phone` bigint(11) unsigned DEFAULT NULL COMMENT '手机号', `Job` char(32) DEFAULT NULL COMMENT '职位', `Sign_count` int(11) DEFAULT '0' COMMENT '连续签到次数', `Real_name` char(30) DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_login_key` (`UserID`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户详细信息表'; -- ---------------------------- -- Records of ce_memberinfo -- ---------------------------- -- ---------------------------- -- Table structure for ce_memberrule -- ---------------------------- DROP TABLE IF EXISTS `ce_memberrule`; CREATE TABLE `ce_memberrule` ( `ID` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员角色表'; -- ---------------------------- -- Records of ce_memberrule -- ---------------------------- -- ---------------------------- -- Table structure for ce_menu -- ---------------------------- DROP TABLE IF EXISTS `ce_menu`; CREATE TABLE `ce_menu` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `MenuName` char(100) COLLATE utf8_latvian_ci DEFAULT NULL, `ParentID` int(11) unsigned DEFAULT NULL, `URL` char(100) COLLATE utf8_latvian_ci DEFAULT NULL, `Flag` int(11) DEFAULT '0' COMMENT '是否是按钮', `css` char(20) COLLATE utf8_latvian_ci DEFAULT NULL, `IsDelete` int(11) DEFAULT '0', `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `Condition` varchar(255) COLLATE utf8_latvian_ci DEFAULT NULL COMMENT '额外的规则', `Param` varchar(255) COLLATE utf8_latvian_ci DEFAULT NULL COMMENT '参数', `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci; -- ---------------------------- -- Records of ce_menu -- ---------------------------- INSERT INTO `ce_menu` VALUES ('1', '系统设置', '0', '#', '0', null, '0', '2017-02-21 18:33:05', '2017-02-20 18:33:08', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('2', '内容管理', '0', '#', '0', null, '0', '2017-02-20 18:34:21', '2017-02-20 18:34:25', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('3', 'OA中心', '0', '#', '0', null, '0', '2017-02-21 18:35:39', '2017-02-21 18:35:41', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('4', '角色管理', '1', '#index/Role/index', '0', null, '0', '2017-02-23 15:40:29', '2017-02-23 15:40:57', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('5', '菜单管理', '1', '#index/Menu/index/', '0', null, '0', '2017-02-23 15:40:31', '2017-02-23 15:41:00', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('6', '用户管理', '1', '#index/User/index/', '0', null, '0', '2017-02-23 15:40:33', '2017-02-23 15:41:03', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('7', '部门管理', '1', '#index/Department/index/', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:41:05', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('20', '数据库管理', '1', '#index/Database/index/', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('21', '日志管理', '1', '#index/Log/index/', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('22', '网信管理', '0', '#', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('23', '页面管理', '2', '#', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('24', '控件管理', '2', '#web/Widget/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('25', '文章管理', '2', '#web/Article/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('26', '其他管理', '1', '#', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('27', '图片管理', '26', '#index/Image/index/', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('28', '文件管理', '26', '#index/File/index/', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('29', '页面设计', '23', '#web/Index/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('30', ' 系统配置', '26', '#index/Sysconf/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('31', '消息管理', '22', '#netletter/index/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('32', '任务管理', '22', '#netletter/task/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('33', '邮件管理', '22', '#netletter/Email/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('35', '信息提醒', '22', '#netletter/Waringmsg /index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('36', '文章列表', '2', '#web/Article/articleList', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('37', '弹出框', '3', '#widow/Filewindow/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('38', '模板管理', '2', '#web/template/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('39', '模块管理', '2', '#web/Navigation/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('40', '权限管理', '2', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('41', '个人桌面', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('42', '人事管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('43', '财务管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('44', '业务管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('45', '合同管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('46', '政策管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('47', '资料管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('48', '资产管理', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); INSERT INTO `ce_menu` VALUES ('49', '论坛', '3', '#web/Auth/index', '0', null, '0', '2017-02-23 15:40:36', '2017-02-23 15:40:36', null, null, '1', '1'); -- ---------------------------- -- Table structure for ce_menu_role -- ---------------------------- DROP TABLE IF EXISTS `ce_menu_role`; CREATE TABLE `ce_menu_role` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `MenuID` bigint(20) NOT NULL, `RoleID` bigint(20) NOT NULL, `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `IsDelete` int(11) DEFAULT '0', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci; -- ---------------------------- -- Records of ce_menu_role -- ---------------------------- INSERT INTO `ce_menu_role` VALUES ('1', '1', '1', '2017-02-23 14:56:26', '2017-03-06 16:32:39', '0'); INSERT INTO `ce_menu_role` VALUES ('2', '2', '1', '2017-02-23 15:50:31', '2017-03-06 16:32:41', '0'); INSERT INTO `ce_menu_role` VALUES ('3', '3', '1', '2017-02-23 15:50:34', '2017-03-06 16:32:45', '0'); INSERT INTO `ce_menu_role` VALUES ('4', '4', '1', '2017-03-06 16:32:04', '2017-03-06 16:32:46', '0'); INSERT INTO `ce_menu_role` VALUES ('5', '5', '1', '2017-03-06 16:32:09', '2017-03-06 16:32:48', '0'); INSERT INTO `ce_menu_role` VALUES ('6', '6', '1', '2017-03-06 16:32:11', '2017-03-06 16:32:51', '0'); INSERT INTO `ce_menu_role` VALUES ('7', '7', '1', '2017-03-23 16:32:20', '2017-03-06 16:32:53', '0'); INSERT INTO `ce_menu_role` VALUES ('8', '8', '1', '2017-03-06 16:32:12', '2017-03-06 16:32:55', '0'); INSERT INTO `ce_menu_role` VALUES ('9', '9', '1', '2017-03-16 16:32:22', '2017-03-06 16:32:57', '0'); INSERT INTO `ce_menu_role` VALUES ('10', '21', '1', '2017-03-06 16:32:25', '2017-03-06 16:32:59', '0'); INSERT INTO `ce_menu_role` VALUES ('11', '22', '1', '2017-03-06 16:32:27', '2017-03-06 16:33:04', '0'); INSERT INTO `ce_menu_role` VALUES ('12', '23', '1', '2017-03-06 16:32:29', '2017-03-06 16:33:06', '0'); INSERT INTO `ce_menu_role` VALUES ('13', '24', '1', '2017-03-06 16:32:31', '2017-03-06 16:33:07', '0'); INSERT INTO `ce_menu_role` VALUES ('16', '25', '1', '2017-03-06 16:32:33', '2017-03-06 16:33:09', '0'); INSERT INTO `ce_menu_role` VALUES ('17', '20', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('18', '27', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('19', '28', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('20', '29', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('21', '26', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('22', '30', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('23', '31', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('24', '32', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('25', '33', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('27', '35', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('28', '36', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('29', '37', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('30', '38', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('31', '39', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('32', '40', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('33', '41', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('34', '42', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('35', '43', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('36', '44', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('37', '45', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('38', '46', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('39', '47', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('40', '48', '1', null, null, '0'); INSERT INTO `ce_menu_role` VALUES ('41', '49', '1', null, null, '0'); -- ---------------------------- -- Table structure for ce_message -- ---------------------------- DROP TABLE IF EXISTS `ce_message`; CREATE TABLE `ce_message` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `MessageID` bigint(20) DEFAULT NULL, `SendID` bigint(20) DEFAULT NULL, `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `IsRead` int(5) DEFAULT NULL, `state` int(5) DEFAULT '0' COMMENT '0:未发送。1:已发送2:草稿', `UserID` int(11) DEFAULT '0' COMMENT '发送人ID ', PRIMARY KEY (`ID`), KEY `message` (`MessageID`), CONSTRAINT `message` FOREIGN KEY (`MessageID`) REFERENCES `ce_messageinfo` (`messageID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_message -- ---------------------------- -- ---------------------------- -- Table structure for ce_messagegroup -- ---------------------------- DROP TABLE IF EXISTS `ce_messagegroup`; CREATE TABLE `ce_messagegroup` ( `ID` int(11) NOT NULL, `MessageGroupID` int(11) DEFAULT NULL, `Name` char(20) DEFAULT NULL, `IsDelete` int(5) DEFAULT NULL, `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_messagegroup -- ---------------------------- -- ---------------------------- -- Table structure for ce_messageinfo -- ---------------------------- DROP TABLE IF EXISTS `ce_messageinfo`; CREATE TABLE `ce_messageinfo` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `title` char(100) DEFAULT NULL, `body` char(255) DEFAULT NULL, `type` char(255) DEFAULT '0', `IsDelete` int(5) DEFAULT '0', `messageID` bigint(20) NOT NULL DEFAULT '0', `state` int(5) DEFAULT '0' COMMENT '0:表示未发送。1:已发送2:草稿', `msggroupID` bigint(20) DEFAULT '0' COMMENT '消息组id', `UserID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`), KEY `messageID` (`messageID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_messageinfo -- ---------------------------- -- ---------------------------- -- Table structure for ce_navigation -- ---------------------------- DROP TABLE IF EXISTS `ce_navigation`; CREATE TABLE `ce_navigation` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Name` varchar(255) DEFAULT NULL COMMENT '名称', `ParentID` int(11) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `Accesstype` int(5) DEFAULT '0' COMMENT '访问类型', `UserID` int(11) DEFAULT NULL COMMENT '创建id', `isParent` int(5) DEFAULT NULL, `EnName` varchar(255) DEFAULT NULL COMMENT '英文名称', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='栏目表'; -- ---------------------------- -- Records of ce_navigation -- ---------------------------- INSERT INTO `ce_navigation` VALUES ('1', '综合', '0', '0', '0', '0', '1', '1', null); INSERT INTO `ce_navigation` VALUES ('2', '首页', '1', '0', '0', '0', '1', '1', null); INSERT INTO `ce_navigation` VALUES ('3', '演示', '1', '0', '0', '0', '1', '1', null); INSERT INTO `ce_navigation` VALUES ('4', '下载', '1', '0', '0', '0', '1', '1', null); INSERT INTO `ce_navigation` VALUES ('5', '文档', '1', '0', '0', '0', '1', '1', null); -- ---------------------------- -- Table structure for ce_pagehtml -- ---------------------------- DROP TABLE IF EXISTS `ce_pagehtml`; CREATE TABLE `ce_pagehtml` ( `ID` int(20) unsigned NOT NULL AUTO_INCREMENT, `Name` char(255) DEFAULT NULL COMMENT '网页的名称', `TempleID` int(20) DEFAULT NULL COMMENT '模板id', `SoureCode` text COMMENT '源代码', `BinaryCode` text COMMENT '编译后的代码', `DatetimeUpdated` datetime DEFAULT NULL COMMENT '更新时间', `CityID` int(11) DEFAULT NULL, `Title` varchar(255) DEFAULT NULL COMMENT '网页标题', `KeyWord` varchar(255) DEFAULT NULL COMMENT '关键内容', `Accesstype` int(5) DEFAULT NULL COMMENT '访问类型0:公共1私有2:保护', `IsDelete` int(5) DEFAULT '0' COMMENT '是否删除', `CompanyID` int(20) DEFAULT NULL, `DatetimeCreated` datetime DEFAULT NULL COMMENT '创建时间', `NavID` int(11) DEFAULT '0' COMMENT '导航id', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_pagehtml -- ---------------------------- INSERT INTO `ce_pagehtml` VALUES ('1', '首页', '1', 'r', 'd', '2017-04-11 16:50:44', '0', '首页', '我是', '0', '0', '0', '2017-04-11 16:50:31', '2'); INSERT INTO `ce_pagehtml` VALUES ('2', '导航', '2', 'd', 'd', '2017-04-11 16:50:47', '0', '演示', '林北', '0', '0', '0', '2017-04-19 16:50:34', '3'); INSERT INTO `ce_pagehtml` VALUES ('3', '商城', '3', 'c', 'd', '2017-04-11 16:50:50', '0', '下载', '软件', '0', '0', '0', '2017-04-11 16:50:38', '4'); INSERT INTO `ce_pagehtml` VALUES ('4', '联系我们', '4', 'd', 'd', '2017-04-11 16:50:53', '0', '文档', 'doc', '0', '0', '0', '2017-04-11 16:50:42', '5'); -- ---------------------------- -- Table structure for ce_page_log -- ---------------------------- DROP TABLE IF EXISTS `ce_page_log`; CREATE TABLE `ce_page_log` ( `ID` int(11) NOT NULL, `Name` varchar(255) DEFAULT NULL, `PageID` int(11) DEFAULT NULL, `UserID` int(11) DEFAULT NULL COMMENT '用户id', `CreateTime` datetime DEFAULT NULL COMMENT '创建时间', `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `Content` varchar(255) DEFAULT NULL COMMENT '内容', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='本表是网页内容和用户修改日志表'; -- ---------------------------- -- Records of ce_page_log -- ---------------------------- -- ---------------------------- -- Table structure for ce_rank -- ---------------------------- DROP TABLE IF EXISTS `ce_rank`; CREATE TABLE `ce_rank` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `RankID` bigint(20) DEFAULT NULL, `RankName` char(100) COLLATE utf8_latvian_ci DEFAULT NULL, `IsDelete` int(11) unsigned DEFAULT '0', `Css` char(10) COLLATE utf8_latvian_ci DEFAULT NULL, `Auth` tinytext COLLATE utf8_latvian_ci, `CompanyAuth` tinytext COLLATE utf8_latvian_ci, `CityAuth` tinytext COLLATE utf8_latvian_ci, `Condition` varchar(255) COLLATE utf8_latvian_ci DEFAULT NULL, `State` int(5) DEFAULT '1' COMMENT '状态', `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci COMMENT='权限表'; -- ---------------------------- -- Records of ce_rank -- ---------------------------- -- ---------------------------- -- Table structure for ce_rank_member -- ---------------------------- DROP TABLE IF EXISTS `ce_rank_member`; CREATE TABLE `ce_rank_member` ( `ID` int(11) NOT NULL, `RankID` int(11) NOT NULL COMMENT '等级id', `MemberID` int(11) NOT NULL COMMENT '会员id', `Createtime` datetime DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限与会员表'; -- ---------------------------- -- Records of ce_rank_member -- ---------------------------- -- ---------------------------- -- Table structure for ce_role -- ---------------------------- DROP TABLE IF EXISTS `ce_role`; CREATE TABLE `ce_role` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `RoleID` bigint(20) DEFAULT NULL, `RoleName` char(100) COLLATE utf8_latvian_ci DEFAULT NULL, `IsDelete` int(11) unsigned DEFAULT '0', `CompanyID` int(11) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `Css` char(10) COLLATE utf8_latvian_ci DEFAULT NULL, `Auth` tinytext COLLATE utf8_latvian_ci, `CompanyAuth` tinytext COLLATE utf8_latvian_ci, `CityAuth` tinytext COLLATE utf8_latvian_ci, `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `Condition` varchar(255) COLLATE utf8_latvian_ci DEFAULT NULL, `State` int(5) DEFAULT '1' COMMENT '状态', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci; -- ---------------------------- -- Records of ce_role -- ---------------------------- INSERT INTO `ce_role` VALUES ('1', '1', '管理员', '0', '1', '1', 'fa', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50', '1,2,3,4', '2,3,2,1,22,222,1', '2017-02-21 18:37:01', '2017-02-21 18:37:05', null, '1'); INSERT INTO `ce_role` VALUES ('2', '2', '审核员', '0', '1', '1', 'fa', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50', '1', '1', '2017-02-21 18:37:37', '2017-02-24 10:06:04', null, '1'); -- ---------------------------- -- Table structure for ce_role_user -- ---------------------------- DROP TABLE IF EXISTS `ce_role_user`; CREATE TABLE `ce_role_user` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `RoleID` bigint(20) DEFAULT NULL, `UserID` bigint(20) DEFAULT NULL, `IsDelete` int(11) DEFAULT '0', `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=453 DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci; -- ---------------------------- -- Records of ce_role_user -- ---------------------------- INSERT INTO `ce_role_user` VALUES ('1', '1', '824', '0', null, null); INSERT INTO `ce_role_user` VALUES ('29', '11', '16', '0', '2017-02-23 12:31:26', '2017-02-23 12:31:26'); INSERT INTO `ce_role_user` VALUES ('30', '1', '1', '0', '2017-02-23 16:32:08', '2017-02-23 16:32:08'); INSERT INTO `ce_role_user` VALUES ('31', '13', '2', '0', '2017-02-23 16:32:08', '2017-02-23 16:32:08'); INSERT INTO `ce_role_user` VALUES ('32', '13', '3', '0', '2017-02-23 16:32:08', '2017-02-23 16:32:08'); INSERT INTO `ce_role_user` VALUES ('33', '3', '1', '0', '2017-02-27 11:21:42', '2017-02-27 11:21:42'); INSERT INTO `ce_role_user` VALUES ('34', '2', '1', '0', '2017-02-27 11:22:27', '2017-02-27 11:22:27'); INSERT INTO `ce_role_user` VALUES ('35', '2', '825', '0', '2017-02-27 11:22:27', '2017-02-27 11:22:27'); INSERT INTO `ce_role_user` VALUES ('36', '2', '827', '0', '2017-02-27 11:22:27', '2017-02-27 11:22:27'); INSERT INTO `ce_role_user` VALUES ('37', '1', '825', '0', '2017-02-27 11:23:00', '2017-02-27 11:23:00'); INSERT INTO `ce_role_user` VALUES ('38', '1', '827', '0', '2017-02-27 11:23:00', '2017-02-27 11:23:00'); INSERT INTO `ce_role_user` VALUES ('39', '1', '5', '0', '2017-02-28 06:39:25', '2017-02-28 06:39:25'); INSERT INTO `ce_role_user` VALUES ('40', '1', '9', '0', '2017-02-28 06:39:25', '2017-02-28 06:39:25'); INSERT INTO `ce_role_user` VALUES ('41', '1', '11', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('42', '1', '342', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('43', '1', '391', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('44', '1', '556', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('45', '1', '541', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('46', '1', '545', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('47', '1', '597', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('48', '1', '601', '0', '2017-02-28 06:39:26', '2017-02-28 06:39:26'); INSERT INTO `ce_role_user` VALUES ('49', '1', '676', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('50', '1', '749', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('51', '1', '8', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('52', '1', '16', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('53', '1', '380', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('54', '1', '393', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('55', '1', '549', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('56', '1', '474', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('57', '1', '501', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('58', '1', '575', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('59', '1', '760', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('60', '1', '761', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('61', '1', '766', '0', '2017-02-28 06:39:27', '2017-02-28 06:39:27'); INSERT INTO `ce_role_user` VALUES ('62', '1', '789', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('63', '1', '805', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('64', '1', '806', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('65', '1', '808', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('66', '1', '811', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('67', '1', '815', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('68', '1', '3', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('69', '1', '7', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('70', '1', '55', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('71', '1', '100', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('72', '1', '369', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('73', '1', '389', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('74', '1', '437', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('75', '1', '560', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('76', '1', '779', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('77', '1', '395', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('78', '1', '547', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('79', '1', '548', '0', '2017-02-28 06:39:28', '2017-02-28 06:39:28'); INSERT INTO `ce_role_user` VALUES ('80', '1', '492', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('81', '1', '493', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('82', '1', '680', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('83', '1', '684', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('84', '1', '783', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('85', '1', '56', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('86', '1', '73', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('87', '1', '113', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('88', '1', '154', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('89', '1', '179', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('90', '1', '180', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('91', '1', '186', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('92', '1', '385', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('93', '1', '625', '0', '2017-02-28 06:39:29', '2017-02-28 06:39:29'); INSERT INTO `ce_role_user` VALUES ('94', '1', '711', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('95', '1', '715', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('96', '1', '717', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('97', '1', '718', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('98', '1', '719', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('99', '1', '728', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('100', '1', '731', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('101', '1', '771', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('102', '1', '156', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('103', '1', '160', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('104', '1', '402', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('105', '1', '482', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('106', '1', '509', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('107', '1', '598', '0', '2017-02-28 06:39:30', '2017-02-28 06:39:30'); INSERT INTO `ce_role_user` VALUES ('108', '1', '74', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('109', '1', '83', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('110', '1', '101', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('111', '1', '183', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('112', '1', '208', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('113', '1', '383', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('114', '1', '429', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('115', '1', '430', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('116', '1', '433', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('117', '1', '712', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('118', '1', '713', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('119', '1', '714', '0', '2017-02-28 06:39:31', '2017-02-28 06:39:31'); INSERT INTO `ce_role_user` VALUES ('120', '1', '716', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('121', '1', '739', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('122', '1', '752', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('123', '1', '765', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('124', '1', '33', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('125', '1', '102', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('126', '1', '110', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('127', '1', '161', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('128', '1', '373', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('129', '1', '384', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('130', '1', '416', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('131', '1', '564', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('132', '1', '641', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('133', '1', '677', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('134', '1', '726', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('135', '1', '727', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('136', '1', '753', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('137', '1', '772', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('138', '1', '795', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('139', '1', '362', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('140', '1', '379', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('141', '1', '404', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('142', '1', '543', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('143', '1', '563', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('144', '1', '603', '0', '2017-02-28 06:39:32', '2017-02-28 06:39:32'); INSERT INTO `ce_role_user` VALUES ('145', '1', '633', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('146', '1', '639', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('147', '1', '403', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('148', '1', '405', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('149', '1', '406', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('150', '1', '540', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('151', '1', '551', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('152', '1', '1', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('153', '8', '1', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('154', '9', '1', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('155', '1', '526', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('156', '1', '533', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('157', '1', '534', '0', '2017-02-28 06:39:33', '2017-02-28 06:39:33'); INSERT INTO `ce_role_user` VALUES ('158', '1', '600', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('159', '1', '628', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('160', '1', '642', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('161', '1', '396', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('162', '1', '544', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('163', '1', '455', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('164', '1', '468', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('165', '1', '480', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('166', '1', '554', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('167', '1', '502', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('168', '1', '637', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('169', '1', '638', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('170', '1', '15', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('171', '1', '58', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('172', '1', '397', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('173', '1', '550', '0', '2017-02-28 06:39:34', '2017-02-28 06:39:34'); INSERT INTO `ce_role_user` VALUES ('174', '1', '559', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('175', '1', '537', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('176', '1', '546', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('177', '1', '594', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('178', '1', '596', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('179', '1', '531', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('180', '1', '664', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('181', '1', '398', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('182', '1', '491', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('183', '1', '503', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('184', '1', '630', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('185', '1', '640', '0', '2017-02-28 06:39:35', '2017-02-28 06:39:35'); INSERT INTO `ce_role_user` VALUES ('186', '1', '643', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('187', '1', '644', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('188', '1', '651', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('189', '1', '819', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('190', '1', '820', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('191', '1', '99', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('192', '1', '400', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('193', '1', '447', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('194', '1', '557', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('195', '1', '499', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('196', '1', '500', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('197', '1', '506', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('198', '1', '17', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('199', '1', '18', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('200', '1', '19', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('201', '1', '169', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('202', '1', '401', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('203', '1', '631', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('204', '1', '399', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('205', '1', '561', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('206', '1', '539', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('207', '1', '552', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('208', '1', '553', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('209', '1', '6', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('210', '1', '80', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('211', '1', '392', '0', '2017-02-28 06:39:36', '2017-02-28 06:39:36'); INSERT INTO `ce_role_user` VALUES ('212', '1', '443', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('213', '1', '555', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('214', '1', '510', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('215', '1', '604', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('216', '1', '608', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('217', '1', '762', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('218', '1', '782', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('219', '1', '790', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('220', '1', '807', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('221', '1', '810', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('222', '1', '812', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('223', '1', '813', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('224', '1', '814', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('225', '1', '816', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('226', '1', '2', '0', '2017-02-28 06:39:37', '2017-02-28 06:39:37'); INSERT INTO `ce_role_user` VALUES ('227', '1', '82', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('228', '1', '157', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('229', '1', '158', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('230', '1', '159', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('231', '1', '394', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('232', '1', '809', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('233', '1', '407', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('234', '1', '408', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('235', '1', '409', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('236', '1', '532', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('237', '1', '107', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('238', '1', '420', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('239', '1', '607', '0', '2017-02-28 06:39:38', '2017-02-28 06:39:38'); INSERT INTO `ce_role_user` VALUES ('240', '1', '609', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('241', '1', '610', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('242', '1', '611', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('243', '1', '615', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('244', '1', '616', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('245', '1', '620', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('246', '1', '621', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('247', '1', '626', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('248', '1', '634', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('249', '1', '636', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('250', '1', '562', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('251', '1', '645', '0', '2017-02-28 06:39:39', '2017-02-28 06:39:39'); INSERT INTO `ce_role_user` VALUES ('252', '1', '647', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('253', '1', '648', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('254', '1', '649', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('255', '1', '652', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('256', '1', '653', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('257', '1', '654', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('258', '1', '655', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('259', '1', '656', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('260', '1', '657', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('261', '1', '658', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('262', '1', '659', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('263', '1', '660', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('264', '1', '661', '0', '2017-02-28 06:39:40', '2017-02-28 06:39:40'); INSERT INTO `ce_role_user` VALUES ('265', '1', '662', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('266', '1', '663', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('267', '1', '665', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('268', '1', '666', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('269', '1', '667', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('270', '1', '668', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('271', '1', '669', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('272', '1', '670', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('273', '1', '671', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('274', '1', '672', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('275', '1', '673', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('276', '1', '674', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('277', '1', '675', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('278', '1', '678', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('279', '1', '679', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('280', '1', '681', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('281', '1', '682', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('282', '1', '683', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('283', '1', '685', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('284', '1', '687', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('285', '1', '688', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('286', '1', '689', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('287', '1', '690', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('288', '1', '691', '0', '2017-02-28 06:39:41', '2017-02-28 06:39:41'); INSERT INTO `ce_role_user` VALUES ('289', '1', '692', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('290', '1', '694', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('291', '1', '695', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('292', '1', '696', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('293', '1', '697', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('294', '1', '700', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('295', '1', '701', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('296', '1', '702', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('297', '1', '703', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('298', '1', '704', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('299', '1', '706', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('300', '1', '707', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('301', '1', '708', '0', '2017-02-28 06:39:42', '2017-02-28 06:39:42'); INSERT INTO `ce_role_user` VALUES ('302', '1', '709', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('303', '1', '710', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('304', '1', '720', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('305', '1', '721', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('306', '1', '722', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('307', '1', '723', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('308', '1', '724', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('309', '1', '725', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('310', '1', '730', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('311', '1', '732', '0', '2017-02-28 06:39:43', '2017-02-28 06:39:43'); INSERT INTO `ce_role_user` VALUES ('312', '1', '733', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('313', '1', '735', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('314', '1', '736', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('315', '1', '737', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('316', '1', '738', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('317', '1', '740', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('318', '1', '741', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('319', '1', '742', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('320', '1', '743', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('321', '1', '744', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('322', '1', '745', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('323', '1', '746', '0', '2017-02-28 06:39:44', '2017-02-28 06:39:44'); INSERT INTO `ce_role_user` VALUES ('324', '1', '747', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('325', '1', '750', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('326', '1', '751', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('327', '1', '754', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('328', '1', '755', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('329', '1', '756', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('330', '1', '757', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('331', '1', '758', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('332', '1', '763', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('333', '1', '764', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('334', '1', '767', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('335', '1', '768', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('336', '1', '773', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('337', '1', '774', '0', '2017-02-28 06:39:45', '2017-02-28 06:39:45'); INSERT INTO `ce_role_user` VALUES ('338', '1', '776', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('339', '1', '778', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('340', '1', '780', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('341', '1', '784', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('342', '1', '785', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('343', '1', '786', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('344', '1', '787', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('345', '1', '788', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('346', '1', '791', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('347', '1', '792', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('348', '1', '793', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('349', '1', '794', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('350', '1', '796', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('351', '1', '797', '0', '2017-02-28 06:39:46', '2017-02-28 06:39:46'); INSERT INTO `ce_role_user` VALUES ('352', '1', '798', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('353', '1', '799', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('354', '1', '801', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('355', '1', '802', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('356', '1', '817', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('357', '1', '818', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('358', '1', '821', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('359', '1', '822', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('360', '1', '823', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('361', '1', '75', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('362', '1', '77', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('363', '1', '558', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('364', '1', '477', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('365', '1', '490', '0', '2017-02-28 06:39:47', '2017-02-28 06:39:47'); INSERT INTO `ce_role_user` VALUES ('366', '1', '729', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('367', '1', '1', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('368', '1', '10', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('369', '1', '62', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('370', '1', '824', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('371', '1', '4', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('372', '1', '184', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('373', '1', '538', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('374', '1', '617', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('375', '1', '57', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('376', '1', '646', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('377', '1', '781', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('378', '1', '12', '0', '2017-02-28 06:39:48', '2017-02-28 06:39:48'); INSERT INTO `ce_role_user` VALUES ('379', '1', '90', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('380', '1', '686', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('381', '1', '435', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('382', '1', '589', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('383', '1', '26', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('384', '1', '137', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('385', '1', '138', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('386', '1', '166', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('387', '1', '188', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('388', '1', '331', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('389', '1', '333', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('390', '1', '339', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('391', '1', '341', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('392', '1', '344', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('393', '1', '346', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('394', '1', '428', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('395', '1', '574', '0', '2017-02-28 06:39:49', '2017-02-28 06:39:49'); INSERT INTO `ce_role_user` VALUES ('396', '1', '27', '0', '2017-02-28 06:39:50', '2017-02-28 06:39:50'); INSERT INTO `ce_role_user` VALUES ('397', '1', '192', '0', '2017-02-28 06:39:50', '2017-02-28 06:39:50'); INSERT INTO `ce_role_user` VALUES ('398', '1', '332', '0', '2017-02-28 06:39:50', '2017-02-28 06:39:50'); INSERT INTO `ce_role_user` VALUES ('399', '1', '386', '0', '2017-02-28 06:39:50', '2017-02-28 06:39:50'); INSERT INTO `ce_role_user` VALUES ('400', '1', '387', '0', '2017-02-28 06:39:50', '2017-02-28 06:39:50'); INSERT INTO `ce_role_user` VALUES ('401', '1', '388', '0', '2017-02-28 06:39:50', '2017-02-28 06:39:50'); INSERT INTO `ce_role_user` VALUES ('402', '1', '595', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('403', '1', '627', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('404', '1', '632', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('405', '1', '38', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('406', '1', '123', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('407', '1', '152', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('408', '1', '200', '0', '2017-02-28 06:39:51', '2017-02-28 06:39:51'); INSERT INTO `ce_role_user` VALUES ('409', '1', '287', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('410', '1', '288', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('411', '1', '292', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('412', '1', '295', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('413', '1', '311', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('414', '1', '312', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('415', '1', '363', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('416', '1', '588', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('417', '1', '39', '0', '2017-02-28 06:39:52', '2017-02-28 06:39:52'); INSERT INTO `ce_role_user` VALUES ('418', '1', '40', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('419', '1', '41', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('420', '1', '42', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('421', '1', '43', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('422', '1', '136', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('423', '1', '199', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('424', '1', '299', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('425', '1', '300', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('426', '1', '343', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('427', '1', '440', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('428', '1', '577', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('429', '1', '698', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('430', '1', '134', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('431', '1', '23', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('432', '1', '97', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('433', '1', '143', '0', '2017-02-28 06:39:53', '2017-02-28 06:39:53'); INSERT INTO `ce_role_user` VALUES ('434', '1', '205', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('435', '1', '233', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('436', '1', '283', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('437', '1', '284', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('438', '1', '291', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('439', '1', '434', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('440', '1', '619', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('441', '1', '35', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('442', '1', '36', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('443', '1', '96', '0', '2017-02-28 06:39:54', '2017-02-28 06:39:54'); INSERT INTO `ce_role_user` VALUES ('444', '1', '142', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('445', '1', '151', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('446', '1', '191', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('447', '1', '223', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('448', '1', '602', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('449', '1', '734', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('450', '1', '614', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('451', '1', '21', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); INSERT INTO `ce_role_user` VALUES ('452', '1', '71', '0', '2017-02-28 06:39:55', '2017-02-28 06:39:55'); -- ---------------------------- -- Table structure for ce_select -- ---------------------------- DROP TABLE IF EXISTS `ce_select`; CREATE TABLE `ce_select` ( `ID` int(11) NOT NULL, `Name` char(255) DEFAULT NULL, `Pid` int(11) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, `code` char(5) DEFAULT NULL COMMENT '选择码', `CityID` int(11) DEFAULT NULL, `Createtime` datetime DEFAULT NULL, `Updatetime` datetime DEFAULT NULL, `IsDelete` int(5) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典表'; -- ---------------------------- -- Records of ce_select -- ---------------------------- -- ---------------------------- -- Table structure for ce_task -- ---------------------------- DROP TABLE IF EXISTS `ce_task`; CREATE TABLE `ce_task` ( `ID` int(11) NOT NULL, `Title` char(255) DEFAULT NULL, `Body` char(255) DEFAULT NULL, `Type` int(255) DEFAULT NULL, `UserID` bigint(20) NOT NULL, `Createtime` datetime DEFAULT NULL, `updatetime` datetime DEFAULT NULL, `IsDetele` int(5) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `CompanyID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='任务表'; -- ---------------------------- -- Records of ce_task -- ---------------------------- -- ---------------------------- -- Table structure for ce_template -- ---------------------------- DROP TABLE IF EXISTS `ce_template`; CREATE TABLE `ce_template` ( `ID` int(11) NOT NULL, `Name` char(80) DEFAULT NULL COMMENT '模版名称', `CompanyID` int(255) DEFAULT NULL, `CityID` int(11) DEFAULT NULL, `UserID` int(11) DEFAULT '0' COMMENT '用户id', `Type` int(11) DEFAULT NULL COMMENT '类型', `CreateTime` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='模板数据'; -- ---------------------------- -- Records of ce_template -- ---------------------------- -- ---------------------------- -- Table structure for ce_user -- ---------------------------- DROP TABLE IF EXISTS `ce_user`; CREATE TABLE `ce_user` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `UserID` bigint(20) DEFAULT NULL, `UserName` char(30) NOT NULL COMMENT '用户名', `Names` char(20) DEFAULT NULL COMMENT '真实姓名', `PassWord` char(100) NOT NULL COMMENT '登录密码', `DepartmentID` int(5) DEFAULT '0', `CompanyID` int(5) DEFAULT NULL COMMENT '部门id', `IsDelete` int(1) DEFAULT '0' COMMENT '是否删除', `phone` char(12) DEFAULT NULL COMMENT '手机号', `moblie` char(12) DEFAULT NULL COMMENT '手机号', `DatetimeCreated` datetime DEFAULT NULL COMMENT '创建时间', `DatetimeUpdated` datetime DEFAULT NULL COMMENT '更新时间', `CityID` int(11) DEFAULT NULL, `Image` char(255) DEFAULT NULL COMMENT '头像', `loginFlag` int(5) DEFAULT '0' COMMENT '登录标志', `Nickname` varchar(50) DEFAULT NULL COMMENT '昵称', `Email` varchar(255) DEFAULT NULL COMMENT '邮箱', `Agreement` int(5) DEFAULT NULL COMMENT '同意协议', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_user -- ---------------------------- INSERT INTO `ce_user` VALUES ('1', '1', 'chen', '陈官勇', '202cb962ac59075b964b07152d234b70', '1', '1', '0', '15638202185', '6040992', '2017-03-02 15:08:15', '2017-03-02 15:08:20', '2', null, '0', 'CHEN', null, null); -- ---------------------------- -- Table structure for ce_userinfo -- ---------------------------- DROP TABLE IF EXISTS `ce_userinfo`; CREATE TABLE `ce_userinfo` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `UserID` bigint(20) DEFAULT NULL, `bz` char(200) DEFAULT NULL COMMENT '备注', `email` char(50) DEFAULT NULL COMMENT '邮件', `Grade` int(255) DEFAULT '0' COMMENT '等级', `workID` bigint(20) DEFAULT NULL COMMENT '工号', `IsDelete` int(5) DEFAULT '0' COMMENT '是否删除', `Integral` int(11) DEFAULT '0' COMMENT '积分', `Role` varchar(50) DEFAULT NULL COMMENT '角色', `Department` varchar(50) DEFAULT NULL COMMENT '部门', `Company` varchar(50) DEFAULT NULL COMMENT '所在公司', `City` varchar(50) DEFAULT NULL COMMENT '所在城市', `Lasttime` datetime DEFAULT NULL COMMENT '最后登录时间', `IP` char(20) DEFAULT NULL COMMENT '登录ip', `Position` varchar(50) DEFAULT NULL COMMENT '职位', `InductionTime` datetime DEFAULT NULL COMMENT '入职时间', `state` int(5) DEFAULT '0' COMMENT '0:正常1:实习2:离职', `Adress` varchar(255) DEFAULT NULL COMMENT '地址', `Age` int(11) DEFAULT '0' COMMENT ' 年龄', `Personsigna` varchar(255) DEFAULT NULL COMMENT '个性签名', PRIMARY KEY (`ID`), KEY `userID` (`UserID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_userinfo -- ---------------------------- INSERT INTO `ce_userinfo` VALUES ('1', '1', 'dfadsfadsf', '22rsd', '1', '1234', '0', '144', '管理员', '信息部', '林北软件集团', '林州', '2017-07-30 15:11:25', '192.168.0.1', 'CEO', '2017-07-30 15:11:43', '0', '中国河南林州', '20', '失败是成功之母'); -- ---------------------------- -- Table structure for ce_user_auth -- ---------------------------- DROP TABLE IF EXISTS `ce_user_auth`; CREATE TABLE `ce_user_auth` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `UserID` int(11) DEFAULT NULL, `CompanyAuth` tinytext, `CityAuth` tinytext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of ce_user_auth -- ---------------------------- INSERT INTO `ce_user_auth` VALUES ('1', '1', '2,3,4,5,6,7,8,9', '65,45,343,23,'); -- ---------------------------- -- Table structure for ce_widget -- ---------------------------- DROP TABLE IF EXISTS `ce_widget`; CREATE TABLE `ce_widget` ( `ID` int(11) unsigned NOT NULL AUTO_INCREMENT, `ParentID` int(11) DEFAULT NULL COMMENT '控件父id', `Name` char(50) DEFAULT NULL COMMENT '控件名称', `Namespace` char(60) DEFAULT NULL COMMENT '空间命名空间', `Class` char(60) DEFAULT NULL COMMENT '控件类名', `DatetimeCreated` datetime DEFAULT NULL, `DatetimeUpdated` datetime DEFAULT NULL, `IsDelete` int(5) DEFAULT '0', `Flag` int(5) unsigned DEFAULT '0' COMMENT '标示', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='控件类'; -- ---------------------------- -- Records of ce_widget -- ---------------------------- INSERT INTO `ce_widget` VALUES ('1', '0', '按钮', '3', 'e', '2017-04-11 16:44:20', '2017-04-11 16:44:20', '0', '0'); INSERT INTO `ce_widget` VALUES ('2', '0', '模板', '4', '5', '2017-04-12 16:45:12', '2017-04-11 16:44:20', '0', '0'); INSERT INTO `ce_widget` VALUES ('3', '1', 'button', 'r', 'r', '2017-04-12 16:45:43', '2017-04-11 16:44:20', '0', '1'); INSERT INTO `ce_widget` VALUES ('4', '2', 'panl', 'r', 'r', '2017-04-12 16:46:07', '2017-04-11 16:44:20', '0', '1'); -- ---------------------------- -- Table structure for ce_widget_template -- ---------------------------- DROP TABLE IF EXISTS `ce_widget_template`; CREATE TABLE `ce_widget_template` ( `ID` int(11) NOT NULL, `WidgetID` int(11) DEFAULT NULL, `TemplateID` int(11) DEFAULT NULL, `CreateTime` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='空间和模板关系表'; -- ---------------------------- -- Records of ce_widget_template -- ----------------------------
61.5
300
0.604379
a32f546a2f36dcf1cad66ea814288cbcde6a96bf
4,128
kt
Kotlin
app/src/main/java/io/horizontalsystems/bankwallet/modules/settings/security/SecuritySettingsActivity.kt
HashEngineering/unstoppable-wallet-android
1c6c180e192ba621359519d03434299e0bdcc6a1
[ "MIT" ]
1
2022-01-06T03:28:25.000Z
2022-01-06T03:28:25.000Z
app/src/main/java/io/horizontalsystems/bankwallet/modules/settings/security/SecuritySettingsActivity.kt
HashEngineering/unstoppable-wallet-android
1c6c180e192ba621359519d03434299e0bdcc6a1
[ "MIT" ]
null
null
null
app/src/main/java/io/horizontalsystems/bankwallet/modules/settings/security/SecuritySettingsActivity.kt
HashEngineering/unstoppable-wallet-android
1c6c180e192ba621359519d03434299e0bdcc6a1
[ "MIT" ]
1
2022-01-27T23:33:02.000Z
2022-01-27T23:33:02.000Z
package io.horizontalsystems.bankwallet.modules.settings.security import android.content.Intent import android.os.Bundle import android.widget.CompoundButton import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProvider import io.horizontalsystems.bankwallet.R import io.horizontalsystems.bankwallet.core.BaseActivity import io.horizontalsystems.bankwallet.core.setOnSingleClickListener import io.horizontalsystems.bankwallet.modules.settings.security.privacy.PrivacySettingsModule import io.horizontalsystems.pin.PinModule import io.horizontalsystems.views.SingleSwitchListener import io.horizontalsystems.views.TopMenuItem import io.horizontalsystems.views.showIf import kotlinx.android.synthetic.main.activity_settings_security.* class SecuritySettingsActivity : BaseActivity() { private lateinit var viewModel: SecuritySettingsViewModel override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_settings_security) viewModel = ViewModelProvider(this).get(SecuritySettingsViewModel::class.java) viewModel.init() shadowlessToolbar.bind(getString(R.string.Settings_SecurityCenter), TopMenuItem(R.drawable.ic_back, onClick = { onBackPressed() })) changePin.setOnSingleClickListener { viewModel.delegate.didTapEditPin() } privacy.setOnSingleClickListener { viewModel.delegate.didTapPrivacy() } biometricAuth.setOnClickListener { biometricAuth.switchToggle() } enablePin.setOnSingleClickListener { enablePin.switchToggle() } // Handling view model live events viewModel.pinSetLiveData.observe(this, Observer { pinEnabled -> enablePin.showSwitch(pinEnabled, object: SingleSwitchListener(){ override fun onSingleSwitch(buttonView: CompoundButton?, isChecked: Boolean) { viewModel.delegate.didSwitchPinSet(isChecked) } }) }) viewModel.editPinVisibleLiveData.observe(this, Observer { pinEnabled -> changePin.showIf(pinEnabled) enablePin.showBottomBorder(!pinEnabled) }) viewModel.biometricSettingsVisibleLiveData.observe(this, Observer { enabled -> biometricAuth.showIf(enabled) txtBiometricAuthInfo.showIf(enabled) }) viewModel.biometricEnabledLiveData.observe(this, Observer { biometricAuth.showSwitch(it, CompoundButton.OnCheckedChangeListener { _, isChecked -> viewModel.delegate.didSwitchBiometricEnabled(isChecked) }) }) //router viewModel.openEditPinLiveEvent.observe(this, Observer { PinModule.startForEditPin(this) }) viewModel.openSetPinLiveEvent.observe(this, Observer { PinModule.startForSetPin(this, REQUEST_CODE_SET_PIN) }) viewModel.openUnlockPinLiveEvent.observe(this, Observer { PinModule.startForUnlock(this, REQUEST_CODE_UNLOCK_PIN_TO_DISABLE_PIN) }) viewModel.openPrivacySettingsLiveEvent.observe(this, Observer { PrivacySettingsModule.start(this) }) } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) if (requestCode == REQUEST_CODE_SET_PIN) { when (resultCode) { PinModule.RESULT_OK -> viewModel.delegate.didSetPin() PinModule.RESULT_CANCELLED -> viewModel.delegate.didCancelSetPin() } } if (requestCode == REQUEST_CODE_UNLOCK_PIN_TO_DISABLE_PIN) { when (resultCode) { PinModule.RESULT_OK -> viewModel.delegate.didUnlockPinToDisablePin() PinModule.RESULT_CANCELLED -> viewModel.delegate.didCancelUnlockPinToDisablePin() } } } companion object { const val REQUEST_CODE_SET_PIN = 1 const val REQUEST_CODE_UNLOCK_PIN_TO_DISABLE_PIN = 2 } }
36.530973
139
0.69937
795c3bb3836f36b7a6dd50aaee5586e840cb3f1f
6,537
php
PHP
home-template.php
mristic505/storystudio
ca438c83ba8106f5cbfa24808e63b07865c6d871
[ "MIT" ]
null
null
null
home-template.php
mristic505/storystudio
ca438c83ba8106f5cbfa24808e63b07865c6d871
[ "MIT" ]
null
null
null
home-template.php
mristic505/storystudio
ca438c83ba8106f5cbfa24808e63b07865c6d871
[ "MIT" ]
null
null
null
<?php /* Template Name: Home Page */ get_header(); ?> <main role="main"> <!-- section --> <section> <?php if (have_posts()): while (have_posts()) : the_post(); ?> <!-- article --> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="home_hero"> <div class="h1">Promoting literacy through the power of storytelling</div> <div class="h2">Story Studio elevates student achievement in reading, writing, listening &amp; speaking skills through the power of visual art and storytelling in programs throughout the US.</div> </div> <section class="gray stats"> <div class="inner"> <div class="row"> <div class="col-sm n1"> <div class="n_holder"> <div class="counter"><span id="n1">0</span>%</div> </div> <div class="n_text">OF TEACHERS REPORTED THAT THEY HAVE GAINED EXPERIENCE IN USING THE ARTS IN THEIR CLASSROOM THROUGH THE SOTRY STUDIO PROGRAM.</div> </div> <div class="col-sm n2"> <div class="n_holder"> <div class="counter"><span id="n2">0</span>%</div> </div> <div class="n_text">OF THE TEACHERS REPORTED THAT USING THE ARTS HAS HELPED THEM GROW PROFESSIONALLY.</div> </div> <div class="col-sm n3"> <div class="n_holder"> <div class="counter"><span id="n3">0</span>%</div> </div> <div class="n_text">OF TEACHERS DEVELOPED THE ABILITY TO TEACH VISUAL ARTS &amp; THEATER UNITS AS PART OF THEIR ESL CURRICULUM.</div> </div> </div> <div style="text-align: center;"><a class="cta_blue" href="/wp-content/uploads/2018/04/2016-2017-Story-Studio-Final-Report.pdf">2017 ANNUAL REPORTS</a></div> </div> </section> <section class="gray hp_video"> <div class="inner video_holder"> <video id="my_video_1" class="video-js vjs-default-skin" poster="http://storystudio.mristic.com/wp-content/uploads/2018/04/2018-04-13.jpg" preload="none" controls="controls" width="940px" height="539px" data-setup="{ &quot;aspectRatio&quot;:&quot;940:539&quot;, &quot;playbackRates&quot;: [1, 1.5, 2] }"> <source src="http://storystudio.mristic.com/wp-content/uploads/2018/04/STORY-STUDIO-Urban-Arts-Partnership.mp4" type="video/mp4" /> </video> </div> </section> <section class="white student_work"> <div class="inner"> <h2>STUDENT ARTWORK</h2> <ul class="responsive"> <li><?php echo wp_get_attachment_image( 184, array('220', '290'), "", array( "data-toggle" => "modal", "data-target" => "#modal1" ) ); ?></li> <li><?php echo wp_get_attachment_image( 185, array('220', '290'), "", array( "data-toggle" => "modal", "data-target" => "#modal2" ) ); ?></li> <li><?php echo wp_get_attachment_image( 186, array('220', '290'), "", array( "data-toggle" => "modal", "data-target" => "#modal3" ) ); ?></li> <li><?php echo wp_get_attachment_image( 187, array('220', '290'), "", array( "data-toggle" => "modal", "data-target" => "#modal4" ) ); ?></li> <li><?php echo wp_get_attachment_image( 188, array('220', '290'), "", array( "data-toggle" => "modal", "data-target" => "#modal5" ) ); ?></li> </ul> </div> </section> </article> <!-- /article --> <?php endwhile; ?> <?php endif; ?> </section> <!-- /section --> </main> <div class="modal image_modal fade bd-example-" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="modal1"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <div class="modal-body"> <div class="inner video_holder"> <?php echo wp_get_attachment_image( 177, 'large', "", "" ); ?> </div> </div> </div> </div> </div> <div class="modal image_modal fade bd-example-" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="modal2"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <div class="modal-body"> <div class="inner video_holder"> <?php echo wp_get_attachment_image( 178, 'large', "", "" ); ?> </div> </div> </div> </div> </div> <div class="modal image_modal fade bd-example-" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="modal3"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <div class="modal-body"> <div class="inner video_holder"> <?php echo wp_get_attachment_image( 179, 'large', "", "" ); ?> </div> </div> </div> </div> </div> <div class="modal image_modal fade bd-example-" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="modal4"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <div class="modal-body"> <div class="inner video_holder"> <?php echo wp_get_attachment_image( 180, 'large', "", "" ); ?> </div> </div> </div> </div> </div> <div class="modal image_modal fade bd-example-" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="modal5"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <div class="modal-body"> <div class="inner video_holder"> <?php echo wp_get_attachment_image( 181, 'large', "", "" ); ?> </div> </div> </div> </div> </div> <?php get_footer(); ?>
45.082759
316
0.5784
a9162baf24de0becddfdc30a35571f972100c0c5
796
css
CSS
src/css/header-images.css
markuseckstein/urlaub-im-muellerhaus.de
befb3ba8dbe7aed32070eadd69825b42625925bb
[ "MIT" ]
null
null
null
src/css/header-images.css
markuseckstein/urlaub-im-muellerhaus.de
befb3ba8dbe7aed32070eadd69825b42625925bb
[ "MIT" ]
null
null
null
src/css/header-images.css
markuseckstein/urlaub-im-muellerhaus.de
befb3ba8dbe7aed32070eadd69825b42625925bb
[ "MIT" ]
null
null
null
.header-image { height: 50vmin; background-size: cover; } .header-image--index { background-image: url('../img/index_header.jpg'); background-position: 91% 69%; height: 65vmin; } .header-image--wohnungen { background-image: url('../img/wohnungen_header.jpg'); background-position: 50% 61%; } .header-image--garten { background-image: url('../img/garten_header.jpg'); background-position: 50% 63%; } .header-image--umgebung { background-image: url('../img/umgebung_header.jpg'); background-position: 50% 47%; } .header-image--preise { background-image: url('../img/preise_header.jpg'); background-position: 50% 47%; } .header-image--impressum { background-image: url('../img/impressum_header.jpg'); background-position: 50% 66%; }
22.111111
57
0.658291
e0187db067d958aad909dccaca3749cdc387a8c6
873
cs
C#
Web/StrumskaSlava.Web.ViewModels/Receipt/Details/ReceiptDetailsViewModel.cs
DanailY/StrumskaSlava
1b1810cf159085b5a9f3ebdc5ece1804e3cb0921
[ "MIT" ]
null
null
null
Web/StrumskaSlava.Web.ViewModels/Receipt/Details/ReceiptDetailsViewModel.cs
DanailY/StrumskaSlava
1b1810cf159085b5a9f3ebdc5ece1804e3cb0921
[ "MIT" ]
null
null
null
Web/StrumskaSlava.Web.ViewModels/Receipt/Details/ReceiptDetailsViewModel.cs
DanailY/StrumskaSlava
1b1810cf159085b5a9f3ebdc5ece1804e3cb0921
[ "MIT" ]
null
null
null
namespace StrumskaSlava.Web.ViewModels.Receipt.Details { using System; using System.Collections.Generic; using System.Text; using AutoMapper; using StrumskaSlava.Services.Data; using StrumskaSlava.Services.Mapping; public class ReceiptDetailsViewModel : IMapFrom<ReceiptServiceModel>, IHaveCustomMappings { public string Id { get; set; } public DateTime CreatedOn { get; set; } public string Recipient { get; set; } public List<ReceiptDetailsOrderViewModel> Orders { get; set; } public void CreateMappings(IProfileExpression configuration) { configuration .CreateMap<ReceiptServiceModel, ReceiptDetailsViewModel>() .ForMember(destination => destination.Recipient, opts => opts.MapFrom(origin => origin.Recipient.UserName)); } } }
30.103448
124
0.676976
25eb777fc865645a5808682aa45146d188479a66
1,244
cs
C#
Validation/MVVMUtopia/Validation/Validation.cs
ProbynData/IAB330GroupAssignment
189b51ccc7a74a4b1d69ace976d52be4dbc5233c
[ "MIT" ]
151
2016-01-25T07:23:10.000Z
2022-03-28T15:46:05.000Z
Validation/MVVMUtopia/Validation/Validation.cs
juergenanton/xamarin-forms
e3f6aaf9ad97acf4898522f9708b6349f903cbcb
[ "MIT" ]
7
2017-08-31T08:03:40.000Z
2022-03-18T00:01:37.000Z
Validation/MVVMUtopia/Validation/Validation.cs
juergenanton/xamarin-forms
e3f6aaf9ad97acf4898522f9708b6349f903cbcb
[ "MIT" ]
128
2016-01-29T15:02:33.000Z
2022-02-23T12:19:01.000Z
using System.Collections.ObjectModel; using System.Linq; using Xamarin.Forms; namespace MVVMUtopia { public static class Validation { public static readonly BindableProperty ErrorsProperty = BindableProperty.CreateAttached( "Errors", typeof(ReadOnlyCollection<string>), typeof(Validation), Validator.EmptyErrorsCollection, propertyChanged: OnPropertyErrorsChanged); public static ReadOnlyCollection<string> GetErrors(BindableObject element) { return (ReadOnlyCollection<string>)element.GetValue(ErrorsProperty); } public static void SetErrors(BindableObject element, ReadOnlyCollection<string> value) { element.SetValue(ErrorsProperty, value); } static void OnPropertyErrorsChanged(BindableObject element, object oldValue, object newValue) { var view = element as View; if (view == null | oldValue == null || newValue == null) { return; } var propertyErrors = (ReadOnlyCollection<string>)newValue; if (propertyErrors.Any()) { view.Effects.Add(new BorderEffect()); } else { var effectToRemove = view.Effects.FirstOrDefault(e => e is BorderEffect); if (effectToRemove != null) { view.Effects.Remove(effectToRemove); } } } } }
24.392157
95
0.721061
a001782720c31b749c3b8515fcaeac2f5717ac68
1,854
lua
Lua
LoveUIView/TextLabel.lua
LexLoki/LoveUIView
246a6d481d2a151ef3919be3a18216e8d828f95a
[ "MIT" ]
3
2017-10-06T04:14:55.000Z
2022-03-25T07:12:07.000Z
LoveUIView/TextLabel.lua
LexLoki/LoveUIView
246a6d481d2a151ef3919be3a18216e8d828f95a
[ "MIT" ]
null
null
null
LoveUIView/TextLabel.lua
LexLoki/LoveUIView
246a6d481d2a151ef3919be3a18216e8d828f95a
[ "MIT" ]
null
null
null
-- The MIT License (MIT) -- Copyright © 2016 Pietro Ribeiro Pepe. -- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. local path = (...):match("(.-)[^%.]+$") local class = require (path.."class") local View = require (path.."View") path = nil local TextLabel = class.extends(View,"TextLabel") ------------------------------------------ -- Public functions ------------------------------------------ function TextLabel.new(x,y,width,height) local self = TextLabel.newObject(x,y,width,height) self.text = '' self.textColor = {0,0,0} self.textAlignment = 'left' self.isSelected = false self.blinkOn = false return self end function TextLabel:draw_content() self:super_draw_content() love.graphics.setColor(self.textColor) love.graphics.printf(self.text,-self.pivot[1]*self.width,-self.pivot[2]*self.height,self.width,self.textAlignment) end return TextLabel
52.971429
464
0.731392
0d282521050219681932945aa4e60de9b337635c
3,847
cs
C#
DeusaldPhysics2D/Box2dNative/Generated/b2DistanceJoint.cs
Deusald/DeusaldPhysics2D
137e69d85b3e670a4e93cbc573e53d9abe800270
[ "MIT" ]
1
2021-10-30T08:12:36.000Z
2021-10-30T08:12:36.000Z
DeusaldPhysics2D/Box2dNative/Generated/b2DistanceJoint.cs
Deusald/DeusaldPhysics2D
137e69d85b3e670a4e93cbc573e53d9abe800270
[ "MIT" ]
null
null
null
DeusaldPhysics2D/Box2dNative/Generated/b2DistanceJoint.cs
Deusald/DeusaldPhysics2D
137e69d85b3e670a4e93cbc573e53d9abe800270
[ "MIT" ]
null
null
null
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.2 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ namespace Box2D { internal class b2DistanceJoint : b2Joint { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal b2DistanceJoint(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Box2dPINVOKE.b2DistanceJoint_SWIGUpcast(cPtr), cMemoryOwn) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(b2DistanceJoint obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } protected override void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; Box2dPINVOKE.delete_b2DistanceJoint(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } base.Dispose(disposing); } } public override b2Vec2 GetAnchorA() { b2Vec2 ret = new b2Vec2(Box2dPINVOKE.b2DistanceJoint_GetAnchorA(swigCPtr), true); return ret; } public override b2Vec2 GetAnchorB() { b2Vec2 ret = new b2Vec2(Box2dPINVOKE.b2DistanceJoint_GetAnchorB(swigCPtr), true); return ret; } public override b2Vec2 GetReactionForce(float inv_dt) { b2Vec2 ret = new b2Vec2(Box2dPINVOKE.b2DistanceJoint_GetReactionForce(swigCPtr, inv_dt), true); return ret; } public override float GetReactionTorque(float inv_dt) { float ret = Box2dPINVOKE.b2DistanceJoint_GetReactionTorque(swigCPtr, inv_dt); return ret; } public b2Vec2 GetLocalAnchorA() { b2Vec2 ret = new b2Vec2(Box2dPINVOKE.b2DistanceJoint_GetLocalAnchorA(swigCPtr), false); return ret; } public b2Vec2 GetLocalAnchorB() { b2Vec2 ret = new b2Vec2(Box2dPINVOKE.b2DistanceJoint_GetLocalAnchorB(swigCPtr), false); return ret; } public float GetLength() { float ret = Box2dPINVOKE.b2DistanceJoint_GetLength(swigCPtr); return ret; } public float SetLength(float length) { float ret = Box2dPINVOKE.b2DistanceJoint_SetLength(swigCPtr, length); return ret; } public float GetMinLength() { float ret = Box2dPINVOKE.b2DistanceJoint_GetMinLength(swigCPtr); return ret; } public float SetMinLength(float minLength) { float ret = Box2dPINVOKE.b2DistanceJoint_SetMinLength(swigCPtr, minLength); return ret; } public float GetMaxLength() { float ret = Box2dPINVOKE.b2DistanceJoint_GetMaxLength(swigCPtr); return ret; } public float SetMaxLength(float maxLength) { float ret = Box2dPINVOKE.b2DistanceJoint_SetMaxLength(swigCPtr, maxLength); return ret; } public float GetCurrentLength() { float ret = Box2dPINVOKE.b2DistanceJoint_GetCurrentLength(swigCPtr); return ret; } public void SetStiffness(float stiffness) { Box2dPINVOKE.b2DistanceJoint_SetStiffness(swigCPtr, stiffness); } public float GetStiffness() { float ret = Box2dPINVOKE.b2DistanceJoint_GetStiffness(swigCPtr); return ret; } public void SetDamping(float damping) { Box2dPINVOKE.b2DistanceJoint_SetDamping(swigCPtr, damping); } public float GetDamping() { float ret = Box2dPINVOKE.b2DistanceJoint_GetDamping(swigCPtr); return ret; } } }
31.276423
140
0.676111
a13ee59de4c65c2d1f451fb1d2be8ae60ac2b02e
1,580
ts
TypeScript
src/components/tilePane/view/Provider/hook/useMove/index.ts
xcfox/react-tile-pane
02cd1e28b3b724dd31db52b4e968825beac8ae11
[ "MIT" ]
5
2021-03-17T03:56:36.000Z
2022-02-07T21:22:37.000Z
src/components/tilePane/view/Provider/hook/useMove/index.ts
xcfox/react-tile-pane
02cd1e28b3b724dd31db52b4e968825beac8ae11
[ "MIT" ]
null
null
null
src/components/tilePane/view/Provider/hook/useMove/index.ts
xcfox/react-tile-pane
02cd1e28b3b724dd31db52b4e968825beac8ae11
[ "MIT" ]
null
null
null
import { useContext, useMemo } from 'react' import { TileBranchesContext, TileLeavesContext, TabsBarContext, TitleRectsContext, TileDispatchContext, } from '../..' import { PaneName } from '../../../../util' import { calcLeafWithTitleRect, calcPreBox, } from '../../../DraggableTitle/components/PreBox/util' export type Vector2 = [number, number] /** Accepts an array in [x, y] format, with each number between 0 and 1, the pane will be moved to that position in the container. * when null is passed in, the pane will be closed. * @example * move(names.apple, null) // close the `apple` pane * move(names.apple, [0.99, 0.01]) // move `apple` pane to upper right corner */ export type MovePane = (name: PaneName, position?: Vector2 | null) => void export function useMovePane(): MovePane { const dispatch = useContext(TileDispatchContext) const branches = useContext(TileBranchesContext) const leaves = useContext(TileLeavesContext) const { preBox: preBoxInTabBar } = useContext(TabsBarContext) const titleRects = useContext(TitleRectsContext) const leafWithTitleRects = useMemo( () => calcLeafWithTitleRect(titleRects, leaves), [leaves, titleRects] ) return (name, position) => { if (!position) { dispatch({ leafToCloseTab: { name } }) return } const paneWithPreBox = calcPreBox( branches, leaves, leafWithTitleRects, position, preBoxInTabBar ) dispatch({ tabToStartMoving: { name } }) dispatch({ tabToStopMoving: { pane: name, preBox: paneWithPreBox } }) } }
29.259259
130
0.686076