prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>file2json.service.ts<|end_file_name|><|fim▁begin|>import { Injectable } from '@angular/core'; let papa = require('papaparse'); @Injectable() export class File2JSONService { CSV2JSON(csvFile: File, callback): void { let config = { skipEmptyLines: true, header: true, complete: function(results) { callback(results); }}; <|fim▁hole|> papa.parse(csvFile, config); } }<|fim▁end|>
<|file_name|>.eslintrc.js<|end_file_name|><|fim▁begin|>module.exports = { "extends": "airbnb", "parser": "babel-eslint", "plugins": [ "react" ], "rules": { "react/prop-types": 0, "react/jsx-boolean-value": 0, "consistent-return": 0, "guard-for-in": 0,<|fim▁hole|>};<|fim▁end|>
"no-use-before-define": 0, "space-before-function-paren": [2, { "anonymous": "never", "named": "always" }] }
<|file_name|>wsgi.py<|end_file_name|><|fim▁begin|>""" WSGI config for nykampweb project.<|fim▁hole|>It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nykampweb.settings") application = get_wsgi_application()<|fim▁end|>
<|file_name|>lights.rs<|end_file_name|><|fim▁begin|>/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //! Module that implements lights for `PhilipsHueAdapter` //! //! This module implements AdapterManager-facing functionality. //! It registers a service for every light and adds setters and //! getters according to the light type. use foxbox_taxonomy::api::Error; use foxbox_taxonomy::manager::*; use foxbox_taxonomy::services::*; use foxbox_taxonomy::values::{ Type }; use super::*; use super::hub_api::HubApi; use std::sync::{ Arc, Mutex }; const CUSTOM_PROPERTY_MANUFACTURER: &'static str = "manufacturer"; const CUSTOM_PROPERTY_MODEL: &'static str = "model"; const CUSTOM_PROPERTY_NAME: &'static str = "name"; const CUSTOM_PROPERTY_TYPE: &'static str = "type"; #[derive(Clone)] pub struct Light { api: Arc<Mutex<HubApi>>, hub_id: String, light_id: String, service_id: Id<ServiceId>, pub get_available_id: Id<Channel>, pub get_power_id: Id<Channel>, pub set_power_id: Id<Channel>, pub get_color_id: Id<Channel>, pub set_color_id: Id<Channel>, } impl Light { pub fn new(api: Arc<Mutex<HubApi>>, hub_id: &str, light_id: &str) -> Self { Light { api: api, hub_id: hub_id.to_owned(), light_id: light_id.to_owned(), service_id: create_light_id(&hub_id, &light_id), get_available_id: create_getter_id("available", &hub_id, &light_id), get_power_id: create_getter_id("power", &hub_id, &light_id), set_power_id: create_setter_id("power", &hub_id, &light_id), get_color_id: create_getter_id("color", &hub_id, &light_id), set_color_id: create_setter_id("color", &hub_id, &light_id), } } pub fn start(&self) { // Nothing to do, yet } pub fn stop(&self) { // Nothing to do, yet } pub fn init_service(&mut self, manager: Arc<AdapterManager>, services: LightServiceMap) -> Result<(), Error> { let adapter_id = create_adapter_id(); let status = self.api.lock().unwrap().get_light_status(&self.light_id); if status.lighttype == "Extended color light" { info!("New Philips Hue `Extended Color Light` service for light {} on bridge {}", self.light_id, self.hub_id); let mut service = Service::empty(&self.service_id, &adapter_id); service.properties.insert(CUSTOM_PROPERTY_MANUFACTURER.to_owned(), status.manufacturername.to_owned()); service.properties.insert(CUSTOM_PROPERTY_MODEL.to_owned(), status.modelid.to_owned()); service.properties.insert(CUSTOM_PROPERTY_NAME.to_owned(), status.name.to_owned()); service.properties.insert(CUSTOM_PROPERTY_TYPE.to_owned(), "Light/ColorLight".to_owned()); service.tags.insert(tag_id!("type:Light/ColorLight")); try!(manager.add_service(service)); // The `available` getter yields `On` when the light // is plugged in and `Off` when it is not. Availability // Has no effect on the API other than that you won't // see the light change because it lacks external power. try!(manager.add_channel(Channel { supports_fetch: true, kind: ChannelKind::Extension { vendor: Id::new("foxlink@mozilla.com"), adapter: Id::new("Philips Hue Adapter"), kind: Id::new("available"), typ: Type::OnOff, }, ..Channel::empty(&self.get_available_id, &self.service_id, &adapter_id) })); try!(manager.add_channel(Channel { supports_fetch: true, kind: ChannelKind::LightOn, ..Channel::empty(&self.get_power_id, &self.service_id, &adapter_id) })); try!(manager.add_channel(Channel { supports_send: true, kind: ChannelKind::LightOn, ..Channel::empty(&self.set_power_id, &self.service_id, &adapter_id) })); try!(manager.add_channel(Channel { supports_fetch: true, kind: ChannelKind::Extension { vendor: Id::new("foxlink@mozilla.com"), adapter: Id::new("Philips Hue Adapter"), kind: Id::new("Color"), typ: Type::Color, }, ..Channel::empty(&self.get_color_id, &self.service_id, &adapter_id) })); try!(manager.add_channel(Channel { supports_send: true, kind: ChannelKind::Extension { vendor: Id::new("foxlink@mozilla.com"), adapter: Id::new("Philips Hue Adapter"), kind: Id::new("Color"), typ: Type::Color, }, ..Channel::empty(&self.set_color_id, &self.service_id, &adapter_id) })); let mut services_lock = services.lock().unwrap(); services_lock.getters.insert(self.get_available_id.clone(), self.clone()); services_lock.getters.insert(self.get_power_id.clone(), self.clone()); services_lock.setters.insert(self.set_power_id.clone(), self.clone()); services_lock.getters.insert(self.get_color_id.clone(), self.clone()); services_lock.setters.insert(self.set_color_id.clone(), self.clone()); } else if status.lighttype == "Dimmable light" { info!("New Philips Hue `Dimmable Light` service for light {} on bridge {}", self.light_id, self.hub_id); let mut service = Service::empty(&self.service_id, &adapter_id); service.properties.insert(CUSTOM_PROPERTY_MANUFACTURER.to_owned(), status.manufacturername.to_owned()); service.properties.insert(CUSTOM_PROPERTY_MODEL.to_owned(), status.modelid.to_owned()); service.properties.insert(CUSTOM_PROPERTY_NAME.to_owned(), status.name.to_owned()); service.properties.insert(CUSTOM_PROPERTY_TYPE.to_owned(), "Light/DimmerLight".to_owned()); service.tags.insert(tag_id!("type:Light/DimmerLight")); try!(manager.add_service(service)); try!(manager.add_channel(Channel { supports_fetch: true, kind: ChannelKind::Extension { vendor: Id::new("foxlink@mozilla.com"), adapter: Id::new("Philips Hue Adapter"), kind: Id::new("available"), typ: Type::OnOff, }, ..Channel::empty(&self.get_available_id, &self.service_id, &adapter_id) })); try!(manager.add_channel(Channel { supports_fetch: true, kind: ChannelKind::LightOn, ..Channel::empty(&self.get_power_id, &self.service_id, &adapter_id) })); try!(manager.add_channel(Channel { supports_send: true, kind: ChannelKind::LightOn, ..Channel::empty(&self.set_power_id, &self.service_id, &adapter_id) })); let mut services_lock = services.lock().unwrap(); services_lock.getters.insert(self.get_available_id.clone(), self.clone()); services_lock.getters.insert(self.get_power_id.clone(), self.clone()); services_lock.setters.insert(self.set_power_id.clone(), self.clone()); } else { warn!("Ignoring unsupported Hue light type {}, ID {} on bridge {}", status.lighttype, self.light_id, self.hub_id); } Ok(()) } pub fn get_available(&self) -> bool { let status = self.api.lock().unwrap().get_light_status(&self.light_id); status.state.reachable<|fim▁hole|> let status = self.api.lock().unwrap().get_light_status(&self.light_id); status.state.on } pub fn set_power(&self, on: bool) { self.api.lock().unwrap().set_light_power(&self.light_id, on); } #[allow(dead_code)] pub fn get_brightness(&self) -> f64 { // Hue API gives brightness value in [0, 254] let ls = self.api.lock().unwrap().get_light_status(&self.light_id); ls.state.bri as f64 / 254f64 } #[allow(dead_code)] pub fn set_brightness(&self, bri: f64) { // Hue API takes brightness value in [0, 254] let bri = bri.max(0f64).min(1f64); // [0,1] // convert to value space used by Hue let bri: u32 = (bri * 254f64) as u32; self.api.lock().unwrap().set_light_brightness(&self.light_id, bri); } pub fn get_color(&self) -> (f64, f64, f64) { // Hue API gives hue angle in [0, 65535], and sat and val in [0, 254] let ls = self.api.lock().unwrap().get_light_status(&self.light_id); let hue: f64 = ls.state.hue.unwrap_or(0) as f64 / 65536f64 * 360f64; let sat: f64 = ls.state.sat.unwrap_or(0) as f64 / 254f64; let val: f64 = ls.state.bri as f64 / 254f64; (hue, sat, val) } pub fn set_color(&self, hsv: (f64, f64, f64)) { // Hue API takes hue angle in [0, 65535], and sat and val in [0, 254] let (hue, sat, val) = hsv; let hue = ((hue % 360f64) + 360f64) % 360f64; // [0,360) let sat = sat.max(0f64).min(1f64); // [0,1] let val = val.max(0f64).min(1f64); // [0,1] // convert to value space used by Hue let hue: u32 = (hue * 65536f64 / 360f64) as u32; let sat: u32 = (sat * 254f64) as u32; let val: u32 = (val * 254f64) as u32; self.api.lock().unwrap().set_light_color(&self.light_id, (hue, sat, val)); } }<|fim▁end|>
} pub fn get_power(&self) -> bool {
<|file_name|>variable.rs<|end_file_name|><|fim▁begin|>use Renderable; use context::Context; use error::Result; #[derive(Debug)] pub struct Variable { name: String, } impl Renderable for Variable { fn render(&self, context: &mut Context) -> Result<Option<String>> { let res = match context.get_val(&self.name) { Some(val) => Some(val.to_string()), None => None, }; Ok(res) } } impl Variable { pub fn new(name: &str) -> Variable { Variable { name: name.to_owned() } } pub fn name(&self) -> String { self.name.clone() }<|fim▁hole|><|fim▁end|>
}
<|file_name|>anti-abuse-client.js<|end_file_name|><|fim▁begin|><|fim▁hole|>/* global $ */ "use strict"; var formField = require("../ui/utils/form-field.js"); module.exports = function(core, config, store) { function addBanMenu(from, menu, next) { var room = store.get("nav", "room"), rel = store.getRelation(), senderRelation = store.getRelation(room, from), senderRole, senderTransitionRole; senderRelation = senderRelation ? senderRelation : {}; senderRole = senderRelation.role ? senderRelation.role : "none"; senderTransitionRole = senderRelation.transitionRole ? senderRelation.transitionRole : "none"; if (/^guest-/.test(from)) senderRole = "guest"; switch (senderRole) { case "follower": case "none": case "moderator": case "registered": if (senderRole === "moderator" && rel.role !== "owner") break; menu.items.banuser = { prio: 550, text: "Ban user", action: function() { core.emit("expel-up", { to: room, ref: from, role: "banned", transitionRole: senderRole, transitionType: null }); } }; break; case "banned": menu.items.unbanuser = { prio: 550, text: "unban user", action: function() { core.emit("admit-up", { to: room, ref: from, role: senderTransitionRole || "follower" }); } }; break; case "owner": case "guest": break; } next(); } core.on("conf-show", function(tabs, next) { var room = tabs.room, antiAbuse, $div; room.params = room.params || {}; antiAbuse = room.params.antiAbuse = room.params.antiAbuse || {}; antiAbuse.block = antiAbuse.block || { english: false }; antiAbuse.customPhrases = antiAbuse.customPhrases || []; if (typeof antiAbuse.spam !== "boolean") { antiAbuse.spam = true; } $div = $("<div>").append( formField("Spam control", "toggle", "spam-control", antiAbuse.spam), formField("Blocked words list", "check", "blocklists", [ ["list-en-strict", "English abusive words", antiAbuse.block.english] ]), formField("Custom blocked phrases/word", "area", "block-custom", antiAbuse.customPhrases.join("\n")), formField("", "info", "spam-control-helper-text", "One phrase/word each line") ); tabs.spam = { text: "Spam control", html: $div }; next(); }, 600); core.on("conf-save", function(room, next) { room.params = room.params || {}; room.params.antiAbuse = { spam: $("#spam-control").is(":checked"), block: { english: $("#list-en-strict").is(":checked") }, customPhrases: $("#block-custom").val().split("\n").map(function(item) { return (item.trim()).toLowerCase(); }) }; next(); }, 500); core.on("text-menu", function(menu, next) { var textObj = menu.textObj, room = store.get("nav", "room"), rel = store.getRelation(); if (!(rel && (/(owner|moderator|su)/).test(rel.role) && textObj)) { return next(); } if (textObj.tags && textObj.tags.indexOf("hidden") > -1) { menu.items.unhidemessage = { prio: 500, text: "Unhide message", action: function() { var tags = Array.isArray(textObj.tags) ? textObj.tags.slice(0) : []; core.emit("edit-up", { to: room, ref: textObj.id, tags: tags.filter(function(t) { return t !== "hidden"; }) }); } }; } else { menu.items.hidemessage = { prio: 500, text: "Hide message", action: function() { var tags = Array.isArray(textObj.tags) ? textObj.tags.slice(0) : []; tags.push("hidden"); core.emit("edit-up", { to: room, ref: textObj.id, tags: tags }); } }; } addBanMenu(textObj.from, menu, next); }, 500); core.on("people-menu", function(menu, next) { var rel = store.getRelation(); if (!(rel && (/(owner|moderator|su)/).test(rel.role))) { return next(); } addBanMenu(menu.user.id, menu, next); }, 500); core.on("thread-menu", function(menu, next) { var threadObj = menu.threadObj, room = store.get("nav", "room"), rel = store.getRelation(); if (!(rel && (/(owner|moderator)/).test(rel.role) && threadObj)) { return next(); } if (threadObj.tags && threadObj.tags.indexOf("thread-hidden") > -1) { menu.items.unhidethread = { prio: 500, text: "Unhide discussion", action: function() { var tags = Array.isArray(threadObj.tags) ? threadObj.tags.slice(0) : []; core.emit("edit-up", { to: room, ref: threadObj.id, tags: tags.filter(function(t) { return t !== "thread-hidden"; }), color: threadObj.color // Ugly hack around lack of color info on a discussion }); } }; } else { menu.items.hidethread = { prio: 500, text: "Hide discussion", action: function() { var tags = Array.isArray(threadObj.tags) ? threadObj.tags.slice(0) : []; tags.push("thread-hidden"); core.emit("edit-up", { to: room, ref: threadObj.id, tags: tags, color: threadObj.color }); } }; } next(); }, 500); };<|fim▁end|>
/* jshint browser: true */
<|file_name|>HttpConnection.java<|end_file_name|><|fim▁begin|>package org.osmdroid.bonuspack.utils; import java.io.IOException; import java.io.InputStream; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.StatusLine; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.BasicHttpParams; import org.apache.http.params.HttpConnectionParams; import org.apache.http.params.HttpParams; import org.apache.http.util.EntityUtils; import android.util.Log; /** * A "very very simple to use" class for performing http get and post requests. * So many ways to do that, and potential subtle issues. * If complexity should be added to handle even more issues, complexity should be put here and only here. * * Typical usage: * <pre>HttpConnection connection = new HttpConnection(); * connection.doGet("http://www.google.com"); * InputStream stream = connection.getStream(); * if (stream != null) { * //use this stream, for buffer reading, or XML SAX parsing, or whatever... * } * connection.close();</pre> */ public class HttpConnection { private DefaultHttpClient client; private InputStream stream; private HttpEntity entity; private String mUserAgent; private final static int TIMEOUT_CONNECTION=3000; //ms private final static int TIMEOUT_SOCKET=8000; //ms public HttpConnection(){ stream = null; entity = null; HttpParams httpParameters = new BasicHttpParams(); /* useful? HttpProtocolParams.setContentCharset(httpParameters, "UTF-8"); HttpProtocolParams.setHttpElementCharset(httpParameters, "UTF-8"); */ // Set the timeout in milliseconds until a connection is established. HttpConnectionParams.setConnectionTimeout(httpParameters, TIMEOUT_CONNECTION); // Set the default socket timeout (SO_TIMEOUT) // in milliseconds which is the timeout for waiting for data. HttpConnectionParams.setSoTimeout(httpParameters, TIMEOUT_SOCKET); client = new DefaultHttpClient(httpParameters); //TODO: created here. Reuse to do for better perfs???... } public void setUserAgent(String userAgent){ mUserAgent = userAgent; } /** * @param sUrl url to get */ public void doGet(String sUrl){ try { HttpGet request = new HttpGet(sUrl); if (mUserAgent != null) request.setHeader("User-Agent", mUserAgent); HttpResponse response = client.execute(request); StatusLine status = response.getStatusLine(); if (status.getStatusCode() != 200) { Log.e(BonusPackHelper.LOG_TAG, "Invalid response from server: " + status.toString()); } else { entity = response.getEntity(); } } catch (Exception e){ e.printStackTrace(); } } public void doPost(String sUrl, List<NameValuePair> nameValuePairs) { try { HttpPost request = new HttpPost(sUrl); if (mUserAgent != null) request.setHeader("User-Agent", mUserAgent); request.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(request); StatusLine status = response.getStatusLine(); if (status.getStatusCode() != 200) { Log.e(BonusPackHelper.LOG_TAG, "Invalid response from server: " + status.toString()); } else { entity = response.getEntity(); } } catch (Exception e) { e.printStackTrace(); } } /** * @return the opened InputStream, or null if creation failed for any reason. */ public InputStream getStream() { try { if (entity != null) stream = entity.getContent(); } catch (IOException e) { e.printStackTrace(); } return stream; } /** * @return the whole content as a String, or null if creation failed for any reason. */ public String getContentAsString(){ try { if (entity != null) { return EntityUtils.toString(entity, "UTF-8"); //setting the charset is important if none found in the entity. } else return null; } catch (IOException e) { e.printStackTrace(); return null; }<|fim▁hole|> } /** * Calling close once is mandatory. */ public void close(){ if (stream != null){ try { stream.close(); stream = null; } catch (IOException e) { e.printStackTrace(); } } if (entity != null){ try { entity.consumeContent(); //"finish". Important if we want to reuse the client object one day... entity = null; } catch (IOException e) { e.printStackTrace(); } } if (client != null){ client.getConnectionManager().shutdown(); client = null; } } }<|fim▁end|>
<|file_name|>controllers.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from gluon import current #from gluon.html import * from gluon.storage import Storage from s3 import S3CustomController THEME = "historic.CRMT" # ============================================================================= class index(S3CustomController): """ Custom Home Page """ def __call__(self): output = {} # Latest Activities db = current.db s3db = current.s3db atable = s3db.project_activity query = (atable.deleted == False) output["total_activities"] = db(query).count() #gtable = s3db.gis_location #query &= (atable.location_id == gtable.id) ogtable = s3db.org_group ltable = s3db.project_activity_group query &= (atable.id == ltable.activity_id) & \ (ogtable.id == ltable.group_id) rows = db(query).select(atable.id, atable.name, atable.date, #gtable.L3, ogtable.name, limitby = (0, 3), orderby = ~atable.date ) latest_activities = [] current.deployment_settings.L10n.date_format = "%d %b %y" drepresent = atable.date.represent for row in rows: date = row["project_activity.date"] if date: nice_date = drepresent(date) else: nice_date = "" latest_activities.append(Storage(id = row["project_activity.id"], name = row["project_activity.name"], date = nice_date, date_iso = date or "", org_group = row["org_group.name"], #location = row["gis_location.L3"], )) output["latest_activities"] = latest_activities # Which Map should we link to in "Know your community"? auth = current.auth table = s3db.gis_config if auth.is_logged_in() and auth.user.org_group_id: # Coalition Map ogtable = s3db.org_group og = db(ogtable.id == auth.user.org_group_id).select(ogtable.pe_id, limitby=(0, 1) ).first()<|fim▁hole|> # Default Map query = (table.uuid == "SITE_DEFAULT") config = db(query).select(table.id, limitby=(0, 1) ).first() try: output["config_id"] = config.id except: output["config_id"] = None self._view(THEME, "index.html") return output # END =========================================================================<|fim▁end|>
query = (table.pe_id == og.pe_id) else:
<|file_name|>util.tour.js<|end_file_name|><|fim▁begin|>define(['jquery', 'util.tooltips', 'helper.boxes', 'modules/panel'], function($, tooltips, panel) { /* Grid */ tourStepsGrid = [ { beginning: true, title: 'Welcome to the Blox Visual Editor!', content: '<p>If this is your first time in the Blox Visual Editor, <strong>we recommend following this tour so you can get the most out of Blox</strong>.</p><p>Or, if you\'re experienced or want to dive in right away, just click the close button in the top right at any time.</p>' }, { target: $('li#mode-grid'), title: 'Mode Selector', content: '<p>The Blox Visual Editor is split up into 2 modes.</p><p><ul><li><strong>Grid</strong> &ndash; Build your layouts</li><li><strong>Design</strong> &ndash; Add colors, customize fonts, and more!</li></ul></p>', position: { my: 'top left', at: 'bottom center' } }, { target: $('#layout-selector-select-content'), title: 'Layout Selector', content: '<p style="font-size:12px;">Since you may not want every page to be the same, you may use the Layout Selector to select which page, post, or archive to edit.</p><p style="font-size:12px;">The Layout Selector is based off of inheritance. For example, you can customize the "Page" layout and all pages will follow that layout. Plus, you can customize a specific page and it\'ll be different than all other pages.</p><p style="font-size:12px;">The layout selector will allow you to be as precise or broad as you wish. It\'s completely up to you!</p>', position: { my: 'top center', at: 'bottom center' } }, { target: $('div#box-grid-wizard'), title: 'The Blox Grid', content: '<p>Now we\'re ready to get started with the Blox Grid. In other words, the good stuff.</p><p>To build your first layout, please select a preset to the right to pre-populate the grid. Or, you may select "Use Empty Grid" to start with a completely blank grid.</p><p>Once you have a preset selected, click "Finish".</p>', position: { my: 'right top', at: 'left center' }, nextHandler: { showButton: false, clickElement: '#grid-wizard-button-preset-use-preset, span.grid-wizard-use-empty-grid', message: 'Please click <strong>"Finish"</strong> or <strong>"Use Empty Grid"</strong> to continue.' } }, { iframeTarget: 'div.grid-container', title: 'Adding Blocks', content: '<p>To add a block, simply place your mouse into the grid then click at where you\'d like the top-left point of the block to be.</p><p>Drag your mouse and the block will appear! Once the block appears, you may choose the block type.</p><p>Hint: Don\'t worry about being precise, you may always move or resize the block.</p>', position: { my: 'right top', at: 'left top', adjustY: 100 }, maxWidth: 280 }, { iframeTarget: 'div.grid-container', title: 'Modifying Blocks', content: '\ <p style="font-size:12px;">After you\'ve added the desired blocks to your layout, you may move, resize, delete, or change the options of the block at any time.</p>\ <ul style="font-size:12px;">\ <li><strong>Moving Blocks</strong> &ndash; Click and drag the block. If you wish to move multiple blocks simultaneously, double-click on a block to enter <em>Mass Block Selection Mode</em>.</li>\ <li><strong>Resizing Blocks</strong> &ndash; Grab the border or corner of the block and drag your mouse.</li>\ <li><strong>Block Options (e.g. header image)</strong> &ndash; Hover over the block then click the block options icon in the top-right.</li>\ <li><strong>Deleting Blocks</strong> &ndash; Move your mouse over the desired block, then click the <em>X</em> icon in the top-right.</li>\ </ul>', position: { my: 'right top', at: 'left top', adjustY: 100 }, maxWidth: 280 }, { target: $('#save-button-container'), title: 'Saving', content: '<p>Now that you hopefully have a few changes to be saved, you can save using this spiffy Save button.</p><p>For those of you who like hotkeys, use <strong>Ctrl + S</strong> to save.</p>', position: { my: 'top right', at: 'bottom center' }, tip: 'top right' }, { target: $('li#mode-design a'), title: 'Design Mode', content: '<p>Thanks for sticking with us!</p><p>Now that you have an understanding of the Grid Mode, we hope you stick with us and head on over to the Design Mode.</p>', position: { my: 'top left', at: 'bottom center', adjustY: 5 }, tip: 'top left', buttonText: 'Continue to Design Mode', buttonCallback: function () { $.post(Blox.ajaxURL, { security: Blox.security, action: 'blox_visual_editor', method: 'ran_tour', mode: 'grid', complete: function () { Blox.ranTour['grid'] = true; /* Advance to Design Editor */ $('li#mode-design a').trigger('click'); window.location = $('li#mode-design a').attr('href'); } }); } } ]; /* Design */ tourStepsDesign = [ { beginning: true, title: 'Welcome to the Blox Design Editor!', content: "<p>In the <strong>Design Editor</strong>, you can style your elements however you'd like.</p><p>Whether it's fonts, colors, padding, borders, shadows, or rounded corners, you can use the design editor.</p><p>Stick around to learn more!</p>" }, { target: '#side-panel-top', title: 'Element Selector', content: '<p>The element selector allows you choose which element to edit.</p>', position: { my: 'right top', at: 'left center' }, callback: function () { $('li#element-block-header > span.element-name').trigger('click'); } }, { target: '#toggle-inspector', title: 'Inspector', content: "\ <p>Instead of using the <em>Element Selector</em>, let the Inspector do the work for you.</p>\ <p><strong>Try it out!</strong> Point and right-click on the element you wish to edit and it will become selected!</p>\ ", position: { my: 'top right', at: 'bottom center', adjustX: 10, adjustY: 5 } }, { target: 'window', title: 'Have fun building with Blox!', content: '<p>We hope you find Blox to the most powerful and easy-to-use WordPress framework around.</p><p>If you have any questions, please don\'t hesitate to visit the <a href="http://support.bloxtheme.com/?utm_source=visualeditor&utm_medium=blox&utm_campaign=tour" target="_blank">support forums</a>.</p>', end: true } ]; return { start: function () { if ( Blox.mode == 'grid' ) { var steps = tourStepsGrid; hidePanel(); openBox('grid-wizard'); } else if ( Blox.mode == 'design' ) { var steps = tourStepsDesign; showPanel(); require(['modules/design/mode-design'], function() { showDesignEditor(); }); if ( typeof $('div#panel').data('ui-tabs') != 'undefined' ) selectTab('editor-tab', $('div#panel')); } else { return; } $('<div class="black-overlay"></div>') .hide() .attr('id', 'black-overlay-tour') .css('zIndex', 15) .appendTo('body') .fadeIn(500); $(document.body).qtip({ id: 'tour', // Give it an ID of qtip-tour so we an identify it easily content: { text: steps[0].content + '<div id="tour-next-container"><span id="tour-next" class="tour-button button button-blue">Continue Tour <span class="arrow">&rsaquo;</span></span></div>', title: { text: steps[0].title, // ...and title button: 'Skip Tour' } }, style: { classes: 'qtip-tour', tip: { width: 18, height: 10, mimic: 'center', offset: 10 } }, position: { my: 'center', at: 'center', target: $(window), // Also use first steps position target... viewport: $(window), // ...and make sure it stays on-screen if possible adjust: { y: 5, method: 'shift shift' } }, show: { event: false, // Only show when show() is called manually ready: true, // Also show on page load, effect: function () { $(this).fadeIn(500); } }, hide: false, // Don't hide unless we call hide() events: { render: function (event, api) { $('#iframe-notice').remove(); hideIframeOverlay(); openBox('grid-wizard'); // Grab tooltip element var tooltip = api.elements.tooltip; // Track the current step in the API api.step = 0; // Bind custom custom events we can fire to step forward/back tooltip.bind('next', function (event) { /* For some reason trigger window resizing helps tooltip positioning */ $(window).trigger('resize'); // Increase/decrease step depending on the event fired api.step += 1; api.step = Math.min(steps.length - 1, Math.max(0, api.step)); // Set new step properties currentTourStep = steps[api.step]; $('div#black-overlay-tour').fadeOut(100, function () { $(this).remove(); }); //Run the callback if it exists if ( typeof currentTourStep.callback === 'function' ) { currentTourStep.callback.apply(api); } if ( currentTourStep.target == 'window' ) { currentTourStep.target = $(window); } else if ( typeof currentTourStep.target == 'string' ) { currentTourStep.target = $(currentTourStep.target); } else if ( typeof currentTourStep.iframeTarget == 'string' ) { currentTourStep.target = $i(currentTourStep.iframeTarget).first(); } api.set('position.target', currentTourStep.target); if ( typeof currentTourStep.maxWidth !== 'undefined' && window.innerWidth < 1440 ) { $('.qtip-tour').css('maxWidth', currentTourStep.maxWidth); } else { $('.qtip-tour').css('maxWidth', 350); } /* Set up button */ var buttonText = 'Next'; if ( typeof currentTourStep.buttonText == 'string' ) var buttonText = currentTourStep.buttonText; if ( typeof currentTourStep.end !== 'undefined' && currentTourStep.end === true ) { var button = '<div id="tour-next-container"><span id="tour-finish" class="tour-button button button-blue">Close Tour <span class="arrow">&rsaquo;</span></div>'; } else if ( typeof currentTourStep.nextHandler === 'undefined' || currentTourStep.nextHandler.showButton ) { var button = '<div id="tour-next-container"><span id="tour-next" class="tour-button button button-blue">' + buttonText + ' <span class="arrow">&rsaquo;</span></div>'; } else { var button = '<div id="tour-next-container"><p>' + currentTourStep.nextHandler.message + '</p></div>'; } /* Next Handler Callback... Be able to use something other than the button */ if ( typeof currentTourStep.nextHandler !== 'undefined' && $(currentTourStep.nextHandler.clickElement) ) { var nextHandlerCallback = function (event) { $('.qtip-tour').triggerHandler('next'); event.preventDefault(); $(this).unbind('click', nextHandlerCallback); } $(currentTourStep.nextHandler.clickElement).bind('click', nextHandlerCallback); } /* Set the Content */ api.set('content.text', currentTourStep.content + button); api.set('content.title', currentTourStep.title); if ( typeof currentTourStep.end === 'undefined' ) { /* Position */ if ( typeof currentTourStep.position !== 'undefined' ) { api.set('position.my', currentTourStep.position.my); api.set('position.at', currentTourStep.position.at); /* Offset/Adjust */ if ( typeof currentTourStep.position.adjustX !== 'undefined' ) { api.set('position.adjust.x', currentTourStep.position.adjustX); } else { api.set('position.adjust.x', 0); } if ( typeof currentTourStep.position.adjustY !== 'undefined' ) { api.set('position.adjust.y', currentTourStep.position.adjustY);<|fim▁hole|> } } else { api.set('position.my', 'top center'); api.set('position.at', 'bottom center'); } if ( typeof currentTourStep.tip !== 'undefined' ) api.set('style.tip.corner', currentTourStep.tip); } else { api.set('position.my', 'center'); api.set('position.at', 'center'); } }); /* Tour Button Bindings */ $('div.qtip-tour').on('click', 'span#tour-next', function (event) { /* Callback that fires upon button click... Used for advancing to Design Editor */ if ( typeof currentTourStep == 'object' && typeof currentTourStep.buttonCallback == 'function' ) currentTourStep.buttonCallback.call(); $('.qtip-tour').triggerHandler('next'); event.preventDefault(); }); $('div.qtip-tour').on('click', 'span#tour-finish', function (event) { $('.qtip-tour').qtip('hide'); }); }, // Destroy the tooltip after it hides as its no longer needed hide: function (event, api) { $('div#tour-overlay').remove(); $('div#black-overlay-tour').fadeOut(100, function () { $(this).remove(); }); $('.qtip-tour').fadeOut(100, function () { $(this).qtip('destroy'); }); //Tell the DB that the tour has been ran if ( Blox.ranTour[Blox.mode] == false && Blox.ranTour.legacy != true ) { $.post(Blox.ajaxURL, { security: Blox.security, action: 'blox_visual_editor', method: 'ran_tour', mode: Blox.mode }); Blox.ranTour[Blox.mode] = true; } } } }); } } });<|fim▁end|>
} else { api.set('position.adjust.y', 0);
<|file_name|>Nextion.cpp<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2016,2017,2018,2020 by Jonathan Naylor G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "NetworkInfo.h" #include "Nextion.h" #include "Log.h" #include <cstdio> #include <cassert> #include <cstring> #include <ctime> #include <clocale> const unsigned int DSTAR_RSSI_COUNT = 3U; // 3 * 420ms = 1260ms const unsigned int DSTAR_BER_COUNT = 63U; // 63 * 20ms = 1260ms const unsigned int DMR_RSSI_COUNT = 4U; // 4 * 360ms = 1440ms const unsigned int DMR_BER_COUNT = 24U; // 24 * 60ms = 1440ms const unsigned int YSF_RSSI_COUNT = 13U; // 13 * 100ms = 1300ms const unsigned int YSF_BER_COUNT = 13U; // 13 * 100ms = 1300ms const unsigned int P25_RSSI_COUNT = 7U; // 7 * 180ms = 1260ms const unsigned int P25_BER_COUNT = 7U; // 7 * 180ms = 1260ms const unsigned int NXDN_RSSI_COUNT = 28U; // 28 * 40ms = 1120ms const unsigned int NXDN_BER_COUNT = 28U; // 28 * 40ms = 1120ms const unsigned int M17_RSSI_COUNT = 28U; // 28 * 40ms = 1120ms const unsigned int M17_BER_COUNT = 28U; // 28 * 40ms = 1120ms #define LAYOUT_COMPAT_MASK (7 << 0) // compatibility for old setting #define LAYOUT_TA_ENABLE (1 << 4) // enable Talker Alias (TA) display #define LAYOUT_TA_COLOUR (1 << 5) // TA display with font colour change #define LAYOUT_TA_FONTSIZE (1 << 6) // TA display with font size change #define LAYOUT_DIY (1 << 7) // use ON7LDS-DIY layout // bit[3:2] is used in Display.cpp to set connection speed for LCD panel. // 00:low, others:high-speed. bit[2] is overlapped with LAYOUT_COMPAT_MASK. #define LAYOUT_HIGHSPEED (3 << 2) CNextion::CNextion(const std::string& callsign, unsigned int dmrid, ISerialPort* serial, unsigned int brightness, bool displayClock, bool utc, unsigned int idleBrightness, unsigned int screenLayout, unsigned int txFrequency, unsigned int rxFrequency, bool displayTempInF) : CDisplay(), m_callsign(callsign), m_ipaddress("(ip unknown)"), m_dmrid(dmrid), m_serial(serial), m_brightness(brightness), m_mode(MODE_IDLE), m_displayClock(displayClock), m_utc(utc), m_idleBrightness(idleBrightness), m_screenLayout(0), m_clockDisplayTimer(1000U, 0U, 400U), m_rssiAccum1(0U), m_rssiAccum2(0U), m_berAccum1(0.0F), m_berAccum2(0.0F), m_rssiCount1(0U), m_rssiCount2(0U), m_berCount1(0U), m_berCount2(0U), m_txFrequency(txFrequency), m_rxFrequency(rxFrequency), m_fl_txFrequency(0.0F), m_fl_rxFrequency(0.0F), m_displayTempInF(displayTempInF) { assert(serial != NULL); assert(brightness >= 0U && brightness <= 100U); static const unsigned int feature_set[] = { 0, // 0: G4KLX 0, // 1: (reserved, low speed) // 2: ON7LDS LAYOUT_TA_ENABLE | LAYOUT_TA_COLOUR | LAYOUT_TA_FONTSIZE, LAYOUT_TA_ENABLE | LAYOUT_DIY, // 3: ON7LDS-DIY LAYOUT_TA_ENABLE | LAYOUT_DIY, // 4: ON7LDS-DIY (high speed) 0, // 5: (reserved, high speed) 0, // 6: (reserved, high speed) 0, // 7: (reserved, high speed) }; if (screenLayout & ~LAYOUT_COMPAT_MASK) m_screenLayout = screenLayout & ~LAYOUT_COMPAT_MASK; else m_screenLayout = feature_set[screenLayout]; } CNextion::~CNextion() { } bool CNextion::open() { unsigned char info[100U]; CNetworkInfo* m_network; bool ret = m_serial->open(); if (!ret) { LogError("Cannot open the port for the Nextion display"); delete m_serial; return false; } info[0] = 0; m_network = new CNetworkInfo; m_network->getNetworkInterface(info); m_ipaddress = (char*)info; sendCommand("bkcmd=0"); sendCommandAction(0U); m_fl_txFrequency = double(m_txFrequency) / 1000000.0F; m_fl_rxFrequency = double(m_rxFrequency) / 1000000.0F; setIdle(); return true; } void CNextion::setIdleInt() { // a few bits borrowed from Lieven De Samblanx ON7LDS, NextionDriver char command[100U]; sendCommand("page MMDVM"); sendCommandAction(1U); if (m_brightness>0) { ::sprintf(command, "dim=%u", m_idleBrightness); sendCommand(command); } ::sprintf(command, "t0.txt=\"%s/%u\"", m_callsign.c_str(), m_dmrid); sendCommand(command); if (m_screenLayout & LAYOUT_DIY) { ::sprintf(command, "t4.txt=\"%s\"", m_callsign.c_str()); sendCommand(command); ::sprintf(command, "t5.txt=\"%u\"", m_dmrid); sendCommand(command); sendCommandAction(17U); ::sprintf(command, "t30.txt=\"%3.6f\"",m_fl_rxFrequency); // RX freq sendCommand(command); sendCommandAction(20U); ::sprintf(command, "t32.txt=\"%3.6f\"",m_fl_txFrequency); // TX freq sendCommand(command); sendCommandAction(21U); // CPU temperature FILE* fp = ::fopen("/sys/class/thermal/thermal_zone0/temp", "rt"); if (fp != NULL) { double val = 0.0; int n = ::fscanf(fp, "%lf", &val); ::fclose(fp); if (n == 1) { val /= 1000.0; if (m_displayTempInF) { val = (1.8 * val) + 32.0; ::sprintf(command, "t20.txt=\"%2.1f %cF\"", val, 176); } else { ::sprintf(command, "t20.txt=\"%2.1f %cC\"", val, 176); } sendCommand(command); sendCommandAction(22U); } } } else { sendCommandAction(17U); } sendCommand("t1.txt=\"MMDVM IDLE\""); sendCommandAction(11U); ::sprintf(command, "t3.txt=\"%s\"", m_ipaddress.c_str()); sendCommand(command); sendCommandAction(16U); m_clockDisplayTimer.start(); m_mode = MODE_IDLE; } void CNextion::setErrorInt(const char* text) { assert(text != NULL); sendCommand("page MMDVM"); sendCommandAction(1U); char command[20]; if (m_brightness>0) { ::sprintf(command, "dim=%u", m_brightness); sendCommand(command); } ::sprintf(command, "t0.txt=\"%s\"", text); sendCommandAction(13U); sendCommand(command); sendCommand("t1.txt=\"ERROR\""); sendCommandAction(14U); m_clockDisplayTimer.stop(); m_mode = MODE_ERROR; } void CNextion::setLockoutInt() { sendCommand("page MMDVM"); sendCommandAction(1U); char command[20]; if (m_brightness>0) { ::sprintf(command, "dim=%u", m_brightness); sendCommand(command); } sendCommand("t0.txt=\"LOCKOUT\""); sendCommandAction(15U); m_clockDisplayTimer.stop(); m_mode = MODE_LOCKOUT; } void CNextion::setQuitInt() { sendCommand("page MMDVM"); sendCommandAction(1U); char command[100]; if (m_brightness>0) { ::sprintf(command, "dim=%u", m_idleBrightness); sendCommand(command); } ::sprintf(command, "t3.txt=\"%s\"", m_ipaddress.c_str()); sendCommand(command); sendCommandAction(16U); sendCommand("t0.txt=\"MMDVM STOPPED\""); sendCommandAction(19U); m_clockDisplayTimer.stop(); m_mode = MODE_QUIT; } void CNextion::setFMInt() { sendCommand("page MMDVM"); sendCommandAction(1U); char command[20]; if (m_brightness > 0) { ::sprintf(command, "dim=%u", m_brightness); sendCommand(command); } sendCommand("t0.txt=\"FM\""); sendCommandAction(18U); m_clockDisplayTimer.stop(); m_mode = MODE_FM; } void CNextion::writeDStarInt(const char* my1, const char* my2, const char* your, const char* type, const char* reflector) { assert(my1 != NULL); assert(my2 != NULL); assert(your != NULL); assert(type != NULL); assert(reflector != NULL); <|fim▁hole|> if (m_mode != MODE_DSTAR) { sendCommand("page DStar"); sendCommandAction(2U); } char text[50U]; if (m_brightness>0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } ::sprintf(text, "t0.txt=\"%s %.8s/%4.4s\"", type, my1, my2); sendCommand(text); sendCommandAction(42U); ::sprintf(text, "t1.txt=\"%.8s\"", your); sendCommand(text); sendCommandAction(45U); if (::strcmp(reflector, " ") != 0) { ::sprintf(text, "t2.txt=\"via %.8s\"", reflector); sendCommand(text); sendCommandAction(46U); } m_clockDisplayTimer.stop(); m_mode = MODE_DSTAR; m_rssiAccum1 = 0U; m_berAccum1 = 0.0F; m_rssiCount1 = 0U; m_berCount1 = 0U; } void CNextion::writeDStarRSSIInt(unsigned char rssi) { m_rssiAccum1 += rssi; m_rssiCount1++; if (m_rssiCount1 == DSTAR_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t3.txt=\"-%udBm\"", m_rssiAccum1 / DSTAR_RSSI_COUNT); sendCommand(text); sendCommandAction(47U); m_rssiAccum1 = 0U; m_rssiCount1 = 0U; } } void CNextion::writeDStarBERInt(float ber) { m_berAccum1 += ber; m_berCount1++; if (m_berCount1 == DSTAR_BER_COUNT) { char text[25U]; ::sprintf(text, "t4.txt=\"%.1f%%\"", m_berAccum1 / float(DSTAR_BER_COUNT)); sendCommand(text); sendCommandAction(48U); m_berAccum1 = 0.0F; m_berCount1 = 0U; } } void CNextion::clearDStarInt() { sendCommand("t0.txt=\"Listening\""); sendCommandAction(41U); sendCommand("t1.txt=\"\""); sendCommand("t2.txt=\"\""); sendCommand("t3.txt=\"\""); sendCommand("t4.txt=\"\""); } void CNextion::writeDMRInt(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type) { assert(type != NULL); if (m_mode != MODE_DMR) { sendCommand("page DMR"); sendCommandAction(3U); if (slotNo == 1U) { if (m_screenLayout & LAYOUT_TA_ENABLE) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t2.pco=0"); if (m_screenLayout & LAYOUT_TA_FONTSIZE) sendCommand("t2.font=4"); } sendCommand("t2.txt=\"2 Listening\""); sendCommandAction(69U); } else { if (m_screenLayout & LAYOUT_TA_ENABLE) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t0.pco=0"); if (m_screenLayout & LAYOUT_TA_FONTSIZE) sendCommand("t0.font=4"); } sendCommand("t0.txt=\"1 Listening\""); sendCommandAction(61U); } } char text[50U]; if (m_brightness>0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } if (slotNo == 1U) { ::sprintf(text, "t0.txt=\"1 %s %s\"", type, src.c_str()); if (m_screenLayout & LAYOUT_TA_ENABLE) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t0.pco=0"); if (m_screenLayout & LAYOUT_TA_FONTSIZE) sendCommand("t0.font=4"); } sendCommand(text); sendCommandAction(62U); ::sprintf(text, "t1.txt=\"%s%s\"", group ? "TG" : "", dst.c_str()); sendCommand(text); sendCommandAction(65U); } else { ::sprintf(text, "t2.txt=\"2 %s %s\"", type, src.c_str()); if (m_screenLayout & LAYOUT_TA_ENABLE) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t2.pco=0"); if (m_screenLayout & LAYOUT_TA_FONTSIZE) sendCommand("t2.font=4"); } sendCommand(text); sendCommandAction(70U); ::sprintf(text, "t3.txt=\"%s%s\"", group ? "TG" : "", dst.c_str()); sendCommand(text); sendCommandAction(73U); } m_clockDisplayTimer.stop(); m_mode = MODE_DMR; m_rssiAccum1 = 0U; m_rssiAccum2 = 0U; m_berAccum1 = 0.0F; m_berAccum2 = 0.0F; m_rssiCount1 = 0U; m_rssiCount2 = 0U; m_berCount1 = 0U; m_berCount2 = 0U; } void CNextion::writeDMRRSSIInt(unsigned int slotNo, unsigned char rssi) { if (slotNo == 1U) { m_rssiAccum1 += rssi; m_rssiCount1++; if (m_rssiCount1 == DMR_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t4.txt=\"-%udBm\"", m_rssiAccum1 / DMR_RSSI_COUNT); sendCommand(text); sendCommandAction(66U); m_rssiAccum1 = 0U; m_rssiCount1 = 0U; } } else { m_rssiAccum2 += rssi; m_rssiCount2++; if (m_rssiCount2 == DMR_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t5.txt=\"-%udBm\"", m_rssiAccum2 / DMR_RSSI_COUNT); sendCommand(text); sendCommandAction(74U); m_rssiAccum2 = 0U; m_rssiCount2 = 0U; } } } void CNextion::writeDMRTAInt(unsigned int slotNo, unsigned char* talkerAlias, const char* type) { if (!(m_screenLayout & LAYOUT_TA_ENABLE)) return; if (type[0] == ' ') { if (slotNo == 1U) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t0.pco=33808"); sendCommandAction(64U); } else { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t2.pco=33808"); sendCommandAction(72U); } return; } if (slotNo == 1U) { char text[50U]; ::sprintf(text, "t0.txt=\"1 %s %s\"", type, talkerAlias); if (m_screenLayout & LAYOUT_TA_FONTSIZE) { if (::strlen((char*)talkerAlias) > (16U-4U)) sendCommand("t0.font=3"); if (::strlen((char*)talkerAlias) > (20U-4U)) sendCommand("t0.font=2"); if (::strlen((char*)talkerAlias) > (24U-4U)) sendCommand("t0.font=1"); } if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t0.pco=1024"); sendCommand(text); sendCommandAction(63U); } else { char text[50U]; ::sprintf(text, "t2.txt=\"2 %s %s\"", type, talkerAlias); if (m_screenLayout & LAYOUT_TA_FONTSIZE) { if (::strlen((char*)talkerAlias) > (16U-4U)) sendCommand("t2.font=3"); if (::strlen((char*)talkerAlias) > (20U-4U)) sendCommand("t2.font=2"); if (::strlen((char*)talkerAlias) > (24U-4U)) sendCommand("t2.font=1"); } if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t2.pco=1024"); sendCommand(text); sendCommandAction(71U); } } void CNextion::writeDMRBERInt(unsigned int slotNo, float ber) { if (slotNo == 1U) { m_berAccum1 += ber; m_berCount1++; if (m_berCount1 == DMR_BER_COUNT) { char text[25U]; ::sprintf(text, "t6.txt=\"%.1f%%\"", m_berAccum1 / DMR_BER_COUNT); sendCommand(text); sendCommandAction(67U); m_berAccum1 = 0U; m_berCount1 = 0U; } } else { m_berAccum2 += ber; m_berCount2++; if (m_berCount2 == DMR_BER_COUNT) { char text[25U]; ::sprintf(text, "t7.txt=\"%.1f%%\"", m_berAccum2 / DMR_BER_COUNT); sendCommand(text); sendCommandAction(75U); m_berAccum2 = 0U; m_berCount2 = 0U; } } } void CNextion::clearDMRInt(unsigned int slotNo) { if (slotNo == 1U) { sendCommand("t0.txt=\"1 Listening\""); sendCommandAction(61U); if (m_screenLayout & LAYOUT_TA_ENABLE) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t0.pco=0"); if (m_screenLayout & LAYOUT_TA_FONTSIZE) sendCommand("t0.font=4"); } sendCommand("t1.txt=\"\""); sendCommand("t4.txt=\"\""); sendCommand("t6.txt=\"\""); } else { sendCommand("t2.txt=\"2 Listening\""); sendCommandAction(69U); if (m_screenLayout & LAYOUT_TA_ENABLE) { if (m_screenLayout & LAYOUT_TA_COLOUR) sendCommand("t2.pco=0"); if (m_screenLayout & LAYOUT_TA_FONTSIZE) sendCommand("t2.font=4"); } sendCommand("t3.txt=\"\""); sendCommand("t5.txt=\"\""); sendCommand("t7.txt=\"\""); } } void CNextion::writeFusionInt(const char* source, const char* dest, unsigned char dgid, const char* type, const char* origin) { assert(source != NULL); assert(dest != NULL); assert(type != NULL); assert(origin != NULL); if (m_mode != MODE_YSF) { sendCommand("page YSF"); sendCommandAction(4U); } char text[30U]; if (m_brightness>0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } ::sprintf(text, "t0.txt=\"%s %.10s\"", type, source); sendCommand(text); sendCommandAction(82U); ::sprintf(text, "t1.txt=\"DG-ID %u\"", dgid); sendCommand(text); sendCommandAction(83U); if (::strcmp(origin, " ") != 0) { ::sprintf(text, "t2.txt=\"at %.10s\"", origin); sendCommand(text); sendCommandAction(84U); } m_clockDisplayTimer.stop(); m_mode = MODE_YSF; m_rssiAccum1 = 0U; m_berAccum1 = 0.0F; m_rssiCount1 = 0U; m_berCount1 = 0U; } void CNextion::writeFusionRSSIInt(unsigned char rssi) { m_rssiAccum1 += rssi; m_rssiCount1++; if (m_rssiCount1 == YSF_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t3.txt=\"-%udBm\"", m_rssiAccum1 / YSF_RSSI_COUNT); sendCommand(text); sendCommandAction(85U); m_rssiAccum1 = 0U; m_rssiCount1 = 0U; } } void CNextion::writeFusionBERInt(float ber) { m_berAccum1 += ber; m_berCount1++; if (m_berCount1 == YSF_BER_COUNT) { char text[25U]; ::sprintf(text, "t4.txt=\"%.1f%%\"", m_berAccum1 / float(YSF_BER_COUNT)); sendCommand(text); sendCommandAction(86U); m_berAccum1 = 0.0F; m_berCount1 = 0U; } } void CNextion::clearFusionInt() { sendCommand("t0.txt=\"Listening\""); sendCommandAction(81U); sendCommand("t1.txt=\"\""); sendCommand("t2.txt=\"\""); sendCommand("t3.txt=\"\""); sendCommand("t4.txt=\"\""); } void CNextion::writeP25Int(const char* source, bool group, unsigned int dest, const char* type) { assert(source != NULL); assert(type != NULL); if (m_mode != MODE_P25) { sendCommand("page P25"); sendCommandAction(5U); } char text[30U]; if (m_brightness>0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } ::sprintf(text, "t0.txt=\"%s %.10s\"", type, source); sendCommand(text); sendCommandAction(102U); ::sprintf(text, "t1.txt=\"%s%u\"", group ? "TG" : "", dest); sendCommand(text); sendCommandAction(103U); m_clockDisplayTimer.stop(); m_mode = MODE_P25; m_rssiAccum1 = 0U; m_berAccum1 = 0.0F; m_rssiCount1 = 0U; m_berCount1 = 0U; } void CNextion::writeP25RSSIInt(unsigned char rssi) { m_rssiAccum1 += rssi; m_rssiCount1++; if (m_rssiCount1 == P25_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t2.txt=\"-%udBm\"", m_rssiAccum1 / P25_RSSI_COUNT); sendCommand(text); sendCommandAction(104U); m_rssiAccum1 = 0U; m_rssiCount1 = 0U; } } void CNextion::writeP25BERInt(float ber) { m_berAccum1 += ber; m_berCount1++; if (m_berCount1 == P25_BER_COUNT) { char text[25U]; ::sprintf(text, "t3.txt=\"%.1f%%\"", m_berAccum1 / float(P25_BER_COUNT)); sendCommand(text); sendCommandAction(105U); m_berAccum1 = 0.0F; m_berCount1 = 0U; } } void CNextion::clearP25Int() { sendCommand("t0.txt=\"Listening\""); sendCommandAction(101U); sendCommand("t1.txt=\"\""); sendCommand("t2.txt=\"\""); sendCommand("t3.txt=\"\""); } void CNextion::writeNXDNInt(const char* source, bool group, unsigned int dest, const char* type) { assert(source != NULL); assert(type != NULL); if (m_mode != MODE_NXDN) { sendCommand("page NXDN"); sendCommandAction(6U); } char text[30U]; if (m_brightness>0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } ::sprintf(text, "t0.txt=\"%s %.10s\"", type, source); sendCommand(text); sendCommandAction(122U); ::sprintf(text, "t1.txt=\"%s%u\"", group ? "TG" : "", dest); sendCommand(text); sendCommandAction(123U); m_clockDisplayTimer.stop(); m_mode = MODE_NXDN; m_rssiAccum1 = 0U; m_berAccum1 = 0.0F; m_rssiCount1 = 0U; m_berCount1 = 0U; } void CNextion::writeNXDNRSSIInt(unsigned char rssi) { m_rssiAccum1 += rssi; m_rssiCount1++; if (m_rssiCount1 == NXDN_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t2.txt=\"-%udBm\"", m_rssiAccum1 / NXDN_RSSI_COUNT); sendCommand(text); sendCommandAction(124U); m_rssiAccum1 = 0U; m_rssiCount1 = 0U; } } void CNextion::writeNXDNBERInt(float ber) { m_berAccum1 += ber; m_berCount1++; if (m_berCount1 == NXDN_BER_COUNT) { char text[25U]; ::sprintf(text, "t3.txt=\"%.1f%%\"", m_berAccum1 / float(NXDN_BER_COUNT)); sendCommand(text); sendCommandAction(125U); m_berAccum1 = 0.0F; m_berCount1 = 0U; } } void CNextion::clearNXDNInt() { sendCommand("t0.txt=\"Listening\""); sendCommandAction(121U); sendCommand("t1.txt=\"\""); sendCommand("t2.txt=\"\""); sendCommand("t3.txt=\"\""); } void CNextion::writeM17Int(const char* source, const char* dest, const char* type) { assert(source != NULL); assert(dest != NULL); assert(type != NULL); if (m_mode != MODE_M17) { sendCommand("page M17"); sendCommandAction(8U); } char text[30U]; if (m_brightness > 0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } ::sprintf(text, "t0.txt=\"%s %.10s\"", type, source); sendCommand(text); sendCommandAction(142U); ::sprintf(text, "t1.txt=\"%s\"", dest); sendCommand(text); sendCommandAction(143U); m_clockDisplayTimer.stop(); m_mode = MODE_M17; m_rssiAccum1 = 0U; m_berAccum1 = 0.0F; m_rssiCount1 = 0U; m_berCount1 = 0U; } void CNextion::writeM17RSSIInt(unsigned char rssi) { m_rssiAccum1 += rssi; m_rssiCount1++; if (m_rssiCount1 == M17_RSSI_COUNT) { char text[25U]; ::sprintf(text, "t2.txt=\"-%udBm\"", m_rssiAccum1 / M17_RSSI_COUNT); sendCommand(text); sendCommandAction(144U); m_rssiAccum1 = 0U; m_rssiCount1 = 0U; } } void CNextion::writeM17BERInt(float ber) { m_berAccum1 += ber; m_berCount1++; if (m_berCount1 == M17_BER_COUNT) { char text[25U]; ::sprintf(text, "t3.txt=\"%.1f%%\"", m_berAccum1 / float(M17_BER_COUNT)); sendCommand(text); sendCommandAction(145U); m_berAccum1 = 0.0F; m_berCount1 = 0U; } } void CNextion::clearM17Int() { sendCommand("t0.txt=\"Listening\""); sendCommandAction(141U); sendCommand("t1.txt=\"\""); sendCommand("t2.txt=\"\""); sendCommand("t3.txt=\"\""); } void CNextion::writePOCSAGInt(uint32_t ric, const std::string& message) { if (m_mode != MODE_POCSAG) { sendCommand("page POCSAG"); sendCommandAction(7U); } char text[200U]; if (m_brightness>0) { ::sprintf(text, "dim=%u", m_brightness); sendCommand(text); } ::sprintf(text, "t0.txt=\"RIC: %u\"", ric); sendCommand(text); sendCommandAction(132U); ::sprintf(text, "t1.txt=\"%s\"", message.c_str()); sendCommand(text); sendCommandAction(133U); m_clockDisplayTimer.stop(); m_mode = MODE_POCSAG; } void CNextion::clearPOCSAGInt() { sendCommand("t0.txt=\"Waiting\""); sendCommandAction(134U); sendCommand("t1.txt=\"\""); } void CNextion::writeCWInt() { sendCommand("t1.txt=\"Sending CW Ident\""); sendCommandAction(12U); m_clockDisplayTimer.start(); m_mode = MODE_CW; } void CNextion::clearCWInt() { sendCommand("t1.txt=\"MMDVM IDLE\""); sendCommandAction(11U); } void CNextion::clockInt(unsigned int ms) { // Update the clock display in IDLE mode every 400ms m_clockDisplayTimer.clock(ms); if (m_displayClock && (m_mode == MODE_IDLE || m_mode == MODE_CW) && m_clockDisplayTimer.isRunning() && m_clockDisplayTimer.hasExpired()) { time_t currentTime; struct tm *Time; ::time(&currentTime); // Get the current time if (m_utc) Time = ::gmtime(&currentTime); else Time = ::localtime(&currentTime); setlocale(LC_TIME,""); char text[50U]; strftime(text, 50, "t2.txt=\"%x %X\"", Time); sendCommand(text); m_clockDisplayTimer.start(); // restart the clock display timer } } void CNextion::close() { m_serial->close(); delete m_serial; } void CNextion::sendCommandAction(unsigned int status) { if (!(m_screenLayout & LAYOUT_DIY)) return; char text[30U]; ::sprintf(text, "MMDVM.status.val=%d", status); sendCommand(text); sendCommand("click S0,1"); } void CNextion::sendCommand(const char* command) { assert(command != NULL); m_serial->write((unsigned char*)command, (unsigned int)::strlen(command)); m_serial->write((unsigned char*)"\xFF\xFF\xFF", 3U); // Since we just firing commands at the display, and not listening for the response, // we must add a bit of a delay to allow the display to process the commands, else some are getting mangled. // 10 ms is just a guess, but seems to be sufficient. CThread::sleep(10U); }<|fim▁end|>
<|file_name|>transform.py<|end_file_name|><|fim▁begin|># # SPDX-FileCopyrightText: 2017 Dmytro Kolomoiets <amerlyq@gmail.com> and contributors. #<|fim▁hole|> class NodeSuperimposeTr(object): def __call__(self, g, node_uid, aug): conv = {} for uid in aug: if uid == aug.get_root(): g[node_uid] = aug[uid] conv[uid] = node_uid else: conv[uid] = g.add_object(aug[uid]) for uid in aug: for edge in aug.neighbors(uid): g.add_arrow(conv[uid], conv[edge])<|fim▁end|>
# SPDX-License-Identifier: GPL-3.0-only #
<|file_name|>GbjUserSoldCommentsReplyService.java<|end_file_name|><|fim▁begin|>/** * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.sys.service.gbj; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.RequestParam; import com.thinkgem.jeesite.common.persistence.Page; import com.thinkgem.jeesite.common.service.CrudService; import com.thinkgem.jeesite.modules.sys.dao.gbj.GbjUserSoldCommentsReplyDao; import com.thinkgem.jeesite.modules.sys.entity.gbj.GbjUserSoldCommentsReply; /** * 卖标信息评论回复管理Service * * @author snnu * @version 2018-01-18 */ @Service @Transactional(readOnly = true) public class GbjUserSoldCommentsReplyService extends CrudService<GbjUserSoldCommentsReplyDao, GbjUserSoldCommentsReply> { @Autowired GbjUserSoldCommentsReplyDao gbjUserSoldCommentsReplyDao; public GbjUserSoldCommentsReply get(String id) { return super.get(id); } public List<GbjUserSoldCommentsReply> findList(GbjUserSoldCommentsReply gbjUserSoldCommentsReply) { return super.findList(gbjUserSoldCommentsReply); } public Page<GbjUserSoldCommentsReply> findPage(Page<GbjUserSoldCommentsReply> page, GbjUserSoldCommentsReply gbjUserSoldCommentsReply) { return super.findPage(page, gbjUserSoldCommentsReply); } @Transactional(readOnly = false)<|fim▁hole|> @Transactional(readOnly = false) public void delete(GbjUserSoldCommentsReply gbjUserSoldCommentsReply) { super.delete(gbjUserSoldCommentsReply); } public List<GbjUserSoldCommentsReply> findDomainArticleSoldReplyCommentsList(@RequestParam("id") String id) { return gbjUserSoldCommentsReplyDao.findDomainArticleSoldReplyCommentsList(id); } }<|fim▁end|>
public void save(GbjUserSoldCommentsReply gbjUserSoldCommentsReply) { super.save(gbjUserSoldCommentsReply); }
<|file_name|>Troop.js<|end_file_name|><|fim▁begin|>class Goblin extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 100; this.attackStrength = 60; this.attackSpeed = 1100;<|fim▁hole|> this.deploySpeed = 1000; this.size = 10; this.color = 'green'; super.setup(); } } class Skeleton extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 38; this.attackStrength = 38; this.attackSpeed = 1000; this.speed = 0.1; // 10 px/ms this.deploySpeed = 1000; this.size = 7; this.color = 'white'; super.setup(); } } class Archer extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 175; this.attackStrength = 59; this.attackSpeed = 1200; this.attackAir = true; this.speed = 0.05; // 10 px/ms this.range = 100; this.deploySpeed = 1000; this.size = 10; this.color = 'pink'; super.setup(); } } class BabyDragon extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 800; this.attackStrength = 100; this.attackSpeed = 1600; this.attackSplash = true; this.attackAir = true; this.speed = 0.05; // 10 px/ms this.range = 70; this.targetRadius = 20; this.deploySpeed = 1000; this.flyingTroop = true; this.size = 15; this.color = 'darkgreen'; super.setup(); } } class Giant extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 2000; this.attackStrength = 145; this.attackSpeed = 1500; this.speed = 0.01; // 10 px/ms this.deploySpeed = 1000; this.attackBuilding = true; this.size = 20; this.color = 'brown'; super.setup(); } }<|fim▁end|>
this.speed = 0.15; // 10 px/ms
<|file_name|>questions.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Module that implements the questions types """ import json from . import errors def question_factory(kind, *args, **kwargs): for clazz in (Text, Password, Confirm, List, Checkbox): if clazz.kind == kind: return clazz(*args, **kwargs) raise errors.UnknownQuestionTypeError() def load_from_dict(question_dict): """ Load one question from a dict. It requires the keys 'name' and 'kind'. :return: The Question object with associated data. :return type: Question """ return question_factory(**question_dict) def load_from_list(question_list): """ Load a list of questions from a list of dicts. It requires the keys 'name' and 'kind' for each dict. :return: A list of Question objects with associated data. :return type: List """ return [load_from_dict(q) for q in question_list] def load_from_json(question_json): """ Load Questions from a JSON string. :return: A list of Question objects with associated data if the JSON contains a list or a Question if the JSON contains a dict. :return type: List or Dict """ data = json.loads(question_json) if isinstance(data, list): return load_from_list(data) if isinstance(data, dict): return load_from_dict(data) raise TypeError(<|fim▁hole|> class TaggedValue(object): def __init__(self, label, value): self.label = label self.value = value def __str__(self): return self.label def __repr__(self): return self.value def __cmp__(self, other): if isinstance(other, TaggedValue): return self.value != other.value return self.value != other class Question(object): kind = 'base question' def __init__(self, name, message='', choices=None, default=None, ignore=False, validate=True): self.name = name self._message = message self._choices = choices or [] self._default = default self._ignore = ignore self._validate = validate self.answers = {} @property def ignore(self): return bool(self._solve(self._ignore)) @property def message(self): return self._solve(self._message) @property def default(self): return self._solve(self._default) @property def choices_generator(self): for choice in self._solve(self._choices): yield ( TaggedValue(*choice) if isinstance(choice, tuple) and len(choice) == 2 else choice ) @property def choices(self): return list(self.choices_generator) def validate(self, current): try: if self._solve(self._validate, current): return except Exception: pass raise errors.ValidationError(current) def _solve(self, prop, *args, **kwargs): if callable(prop): return prop(self.answers, *args, **kwargs) if isinstance(prop, str): return prop.format(**self.answers) return prop class Text(Question): kind = 'text' class Password(Question): kind = 'password' class Confirm(Question): kind = 'confirm' def __init__(self, name, default=False, **kwargs): super(Confirm, self).__init__(name, default=default, **kwargs) class List(Question): kind = 'list' class Checkbox(Question): kind = 'checkbox'<|fim▁end|>
'Json contained a %s variable when a dict or list was expected', type(data))
<|file_name|>filecontainer.rs<|end_file_name|><|fim▁begin|>/* Copyright (C) 2017 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * version 2 along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ use std::ptr; use std::os::raw::{c_void}; use crate::core::*; // Defined in util-file.h extern { pub fn FileFlowToFlags(flow: *const Flow, flags: u8) -> u16; } pub const FILE_USE_DETECT: u16 = BIT_U16!(13); // Generic file structure, so it can be used by different protocols #[derive(Debug, Default)] pub struct Files { pub files_ts: FileContainer, pub files_tc: FileContainer, pub flags_ts: u16, pub flags_tc: u16, } impl Files { pub fn get(&mut self, direction: Direction) -> (&mut FileContainer, u16) { if direction == Direction::ToServer { (&mut self.files_ts, self.flags_ts) } else { (&mut self.files_tc, self.flags_tc) } } } pub struct File; #[repr(C)] #[derive(Debug)] pub struct FileContainer { head: * mut c_void, tail: * mut c_void, } impl Drop for FileContainer { fn drop(&mut self) { self.free(); } } impl Default for FileContainer { fn default() -> Self { Self { head: ptr::null_mut(), tail: ptr::null_mut(), }} } impl FileContainer { pub fn default() -> FileContainer { FileContainer { head:ptr::null_mut(), tail:ptr::null_mut() } } pub fn free(&mut self) { SCLogDebug!("freeing self"); match unsafe {SC} { None => panic!("BUG no suricata_config"),<|fim▁hole|> }, } } pub fn file_open(&mut self, cfg: &'static SuricataFileContext, track_id: &u32, name: &[u8], flags: u16) -> i32 { match unsafe {SC} { None => panic!("BUG no suricata_config"), Some(c) => { SCLogDebug!("FILE {:p} OPEN flags {:04X}", &self, flags); let res = (c.FileOpenFile)(self, cfg.files_sbcfg, *track_id, name.as_ptr(), name.len() as u16, ptr::null(), 0u32, flags); res } } } pub fn file_append(&mut self, track_id: &u32, data: &[u8], is_gap: bool) -> i32 { SCLogDebug!("FILECONTAINER: append {}", data.len()); if data.len() == 0 { return 0 } match unsafe {SC} { None => panic!("BUG no suricata_config"), Some(c) => { let res = match is_gap { false => { SCLogDebug!("appending file data"); let r = (c.FileAppendData)(self, *track_id, data.as_ptr(), data.len() as u32); r }, true => { SCLogDebug!("appending GAP"); let r = (c.FileAppendGAP)(self, *track_id, data.as_ptr(), data.len() as u32); r }, }; res } } } pub fn file_close(&mut self, track_id: &u32, flags: u16) -> i32 { SCLogDebug!("FILECONTAINER: CLOSEing"); match unsafe {SC} { None => panic!("BUG no suricata_config"), Some(c) => { let res = (c.FileCloseFile)(self, *track_id, ptr::null(), 0u32, flags); res } } } pub fn files_prune(&mut self) { SCLogDebug!("FILECONTAINER: pruning"); match unsafe {SC} { None => panic!("BUG no suricata_config"), Some(c) => { (c.FilePrune)(self); } } } pub fn file_set_txid_on_last_file(&mut self, tx_id: u64) { match unsafe {SC} { None => panic!("BUG no suricata_config"), Some(c) => { (c.FileSetTx)(self, tx_id); } } } }<|fim▁end|>
Some(c) => { (c.FileContainerRecycle)(self);
<|file_name|>initialize_fill_test.cpp<|end_file_name|><|fim▁begin|>#include <stan/math/prim.hpp> #include <gtest/gtest.h> #include <vector> TEST(AgradPrimMatrix, initialize_fill) { using Eigen::Dynamic; using Eigen::Matrix; using stan::math::initialize_fill; using std::vector; double x; double y = 10; initialize_fill(x, y); EXPECT_FLOAT_EQ(10.0, x); std::vector<double> z(2); double a = 15; initialize_fill(z, a); EXPECT_FLOAT_EQ(15.0, z[0]); EXPECT_FLOAT_EQ(15.0, z[1]); EXPECT_EQ(2U, z.size());<|fim▁hole|> initialize_fill(m, static_cast<double>(12)); for (int i = 0; i < 2; ++i) for (int j = 0; j < 3; ++j) EXPECT_FLOAT_EQ(12.0, m(i, j)); Matrix<double, Dynamic, 1> rv(3); initialize_fill(rv, static_cast<double>(13)); for (int i = 0; i < 3; ++i) EXPECT_FLOAT_EQ(13.0, rv(i)); Matrix<double, 1, Dynamic> v(4); initialize_fill(v, static_cast<double>(22)); for (int i = 0; i < 4; ++i) EXPECT_FLOAT_EQ(22.0, v(i)); vector<vector<double> > d(3, vector<double>(2)); initialize_fill(d, static_cast<double>(54)); for (size_t i = 0; i < 3; ++i) for (size_t j = 0; j < 2; ++j) EXPECT_FLOAT_EQ(54, d[i][j]); } TEST(AgradPrimMatrix, initialize_fillDouble) { using Eigen::Dynamic; using Eigen::Matrix; using stan::math::initialize_fill; Matrix<double, Dynamic, 1> y(3); initialize_fill(y, 3.0); EXPECT_EQ(3, y.size()); EXPECT_FLOAT_EQ(3.0, y[0]); }<|fim▁end|>
Matrix<double, Dynamic, Dynamic> m(2, 3);
<|file_name|>test_settings.py<|end_file_name|><|fim▁begin|>from datetime import date, datetime, time from decimal import Decimal from django.core.files import File from django.core.files.storage import default_storage from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from django.utils.timezone import now from i18nfield.strings import LazyI18nString from pretix.base import settings from pretix.base.models import Event, Organizer, User from pretix.base.settings import SettingsSandbox from pretix.control.forms.global_settings import GlobalSettingsObject class SettingsTestCase(TestCase): def setUp(self): settings.DEFAULTS['test_default'] = { 'default': 'def', 'type': str } self.global_settings = GlobalSettingsObject() self.global_settings.settings._flush() self.organizer = Organizer.objects.create(name='Dummy', slug='dummy') self.organizer.settings._flush() self.event = Event.objects.create( organizer=self.organizer, name='Dummy', slug='dummy', date_from=now(), ) self.event.settings._flush() def test_global_set_explicit(self): self.global_settings.settings.test = 'foo' self.assertEqual(self.global_settings.settings.test, 'foo') # Reload object self.global_settings = GlobalSettingsObject() self.assertEqual(self.global_settings.settings.test, 'foo') def test_organizer_set_explicit(self): self.organizer.settings.test = 'foo' self.assertEqual(self.organizer.settings.test, 'foo') # Reload object self.organizer = Organizer.objects.get(id=self.organizer.id) self.assertEqual(self.organizer.settings.test, 'foo') def test_event_set_explicit(self): self.event.settings.test = 'foo' self.assertEqual(self.event.settings.test, 'foo') # Reload object self.event = Event.objects.get(id=self.event.id) self.assertEqual(self.event.settings.test, 'foo') def test_event_set_twice(self): self.event.settings.test = 'bar' self.event.settings.test = 'foo' self.assertEqual(self.event.settings.test, 'foo') # Reload object self.event = Event.objects.get(id=self.event.id) self.assertEqual(self.event.settings.test, 'foo') def test_organizer_set_on_global(self): self.global_settings.settings.test = 'foo' self.assertEqual(self.global_settings.settings.test, 'foo') self.assertEqual(self.organizer.settings.test, 'foo') # Reload object self.global_settings = GlobalSettingsObject() self.assertEqual(self.global_settings.settings.test, 'foo') self.assertEqual(self.organizer.settings.test, 'foo') def test_event_set_on_global(self): self.global_settings.settings.test = 'foo' self.assertEqual(self.global_settings.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'foo') # Reload object self.global_settings = GlobalSettingsObject() self.assertEqual(self.global_settings.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'foo') def test_event_set_on_organizer(self): self.organizer.settings.test = 'foo' self.assertEqual(self.organizer.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'foo') # Reload object self.organizer = Organizer.objects.get(id=self.organizer.id) self.assertEqual(self.organizer.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'foo') def test_event_override_organizer(self): self.organizer.settings.test = 'foo' self.event.settings.test = 'bar' self.assertEqual(self.organizer.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'bar') # Reload object self.organizer = Organizer.objects.get(id=self.organizer.id) self.event = Event.objects.get(id=self.event.id) self.assertEqual(self.organizer.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'bar') def test_event_override_global(self): self.global_settings.settings.test = 'foo' self.event.settings.test = 'bar' self.assertEqual(self.global_settings.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'bar') # Reload object self.global_settings = GlobalSettingsObject() self.event = Event.objects.get(id=self.event.id) self.assertEqual(self.global_settings.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'bar') def test_default(self): self.assertEqual(self.global_settings.settings.test_default, 'def') self.assertEqual(self.organizer.settings.test_default, 'def') self.assertEqual(self.event.settings.test_default, 'def') self.assertEqual(self.event.settings.get('nonexistant', default='abc'), 'abc') def test_default_typing(self): self.assertIs(type(self.event.settings.get('nonexistant', as_type=Decimal, default=0)), Decimal) def test_item_access(self): self.event.settings['foo'] = 'abc' self.assertEqual(self.event.settings['foo'], 'abc') del self.event.settings['foo'] self.assertIsNone(self.event.settings['foo']) def test_delete(self): self.organizer.settings.test = 'foo' self.event.settings.test = 'bar' self.assertEqual(self.organizer.settings.test, 'foo') self.assertEqual(self.event.settings.test, 'bar') del self.event.settings.test self.assertEqual(self.event.settings.test, 'foo') self.event = Event.objects.get(id=self.event.id) self.assertEqual(self.event.settings.test, 'foo') del self.organizer.settings.test self.assertIsNone(self.organizer.settings.test) self.organizer = Organizer.objects.get(id=self.organizer.id) self.assertIsNone(self.organizer.settings.test) def test_serialize_str(self):<|fim▁hole|> self._test_serialization('ABC', as_type=str) def test_serialize_float(self): self._test_serialization(2.3, float) def test_serialize_int(self): self._test_serialization(2, int) def test_serialize_datetime(self): self._test_serialization(now(), datetime) def test_serialize_time(self): self._test_serialization(now().time(), time) def test_serialize_date(self): self._test_serialization(now().date(), date) def test_serialize_decimal(self): self._test_serialization(Decimal('2.3'), Decimal) def test_serialize_dict(self): self._test_serialization({'a': 'b', 'c': 'd'}, dict) def test_serialize_list(self): self._test_serialization([1, 2, 'a'], list) def test_serialize_lazyi18nstring(self): self._test_serialization(LazyI18nString({'de': 'Hallo', 'en': 'Hello'}), LazyI18nString) def test_serialize_bool(self): self._test_serialization(True, bool) self._test_serialization(False, bool) def test_serialize_bool_implicit(self): self.event.settings.set('test', True) self.event.settings._flush() self.assertIs(self.event.settings.get('test', as_type=None), True) self.event.settings.set('test', False) self.event.settings._flush() self.assertIs(self.event.settings.get('test', as_type=None), False) def test_serialize_versionable(self): self._test_serialization(self.event, Event) def test_serialize_model(self): self._test_serialization(User.objects.create_user('dummy@dummy.dummy', 'dummy'), User) def test_serialize_unknown(self): class Type: pass try: self._test_serialization(Type(), Type) self.assertTrue(False, 'No exception thrown!') except TypeError: pass def test_serialize_file(self): val = SimpleUploadedFile("sample_invalid_image.jpg", b"file_content", content_type="image/jpeg") default_storage.save(val.name, val) val.close() self.event.settings.set('test', val) self.event.settings._flush() f = self.event.settings.get('test', as_type=File) self.assertIsInstance(f, File) self.assertTrue(f.name.endswith(val.name)) f.close() def test_unserialize_file_value(self): val = SimpleUploadedFile("sample_invalid_image.jpg", b"file_content", content_type="image/jpeg") default_storage.save(val.name, val) val.close() self.event.settings.set('test', val) self.event.settings._flush() f = self.event.settings.get('test', as_type=File) self.assertIsInstance(f, File) self.assertTrue(f.name.endswith(val.name)) f.close() def test_autodetect_file_value(self): val = SimpleUploadedFile("sample_invalid_image.jpg", b"file_content", content_type="image/jpeg") default_storage.save(val.name, val) val.close() self.event.settings.set('test', val) self.event.settings._flush() f = self.event.settings.get('test') self.assertIsInstance(f, File) self.assertTrue(f.name.endswith(val.name)) f.close() def test_autodetect_file_value_of_parent(self): val = SimpleUploadedFile("sample_invalid_image.jpg", b"file_content", content_type="image/jpeg") default_storage.save(val.name, val) val.close() self.organizer.settings.set('test', val) self.organizer.settings._flush() f = self.event.settings.get('test') self.assertIsInstance(f, File) self.assertTrue(f.name.endswith(val.name)) f.close() def _test_serialization(self, val, as_type): self.event.settings.set('test', val) self.event.settings._flush() self.assertEqual(self.event.settings.get('test', as_type=as_type), val) self.assertIsInstance(self.event.settings.get('test', as_type=as_type), as_type) def test_sandbox(self): sandbox = SettingsSandbox('testing', 'foo', self.event) sandbox.set('foo', 'bar') self.assertEqual(sandbox.get('foo'), 'bar') self.assertEqual(self.event.settings.get('testing_foo_foo'), 'bar') self.assertIsNone(self.event.settings.get('foo'), 'bar') sandbox['bar'] = 'baz' sandbox.baz = 42 self.event = Event.objects.get(id=self.event.id) sandbox = SettingsSandbox('testing', 'foo', self.event) self.assertEqual(sandbox['bar'], 'baz') self.assertEqual(sandbox.baz, '42') del sandbox.baz del sandbox['bar'] self.assertIsNone(sandbox.bar) self.assertIsNone(sandbox['baz']) def test_freeze(self): olddef = settings.DEFAULTS settings.DEFAULTS = { 'test_default': { 'default': 'def', 'type': str } } self.event.organizer.settings.set('bar', 'baz') self.event.organizer.settings.set('foo', 'baz') self.event.settings.set('foo', 'bar') frozen = self.event.settings.freeze() self.event.settings.set('foo', 'notfrozen') try: self.assertEqual(frozen, { 'test_default': 'def', 'bar': 'baz', 'foo': 'bar' }) finally: settings.DEFAULTS = olddef<|fim▁end|>
<|file_name|>class-poly-methods-cross-crate.rs<|end_file_name|><|fim▁begin|>// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // xfail-fast // aux-build:cci_class_6.rs extern mod cci_class_6; use cci_class_6::kitties::cat; <|fim▁hole|> let mut kitty = cat(1000u, 2, ~[~"tabby"]); assert_eq!(nyan.how_hungry, 99); assert_eq!(kitty.how_hungry, 2); nyan.speak(~[1u,2u,3u]); assert_eq!(nyan.meow_count(), 55u); kitty.speak(~[~"meow", ~"mew", ~"purr", ~"chirp"]); assert_eq!(kitty.meow_count(), 1004u); }<|fim▁end|>
pub fn main() { let mut nyan : cat<char> = cat::<char>(52u, 99, ~['p']);
<|file_name|>deepset.js<|end_file_name|><|fim▁begin|>'use strict'; // MODULES // var isArrayLike = require( 'validate.io-array-like' ), isTypedArrayLike = require( 'validate.io-typed-array-like' ), deepSet = require( 'utils-deep-set' ).factory, deepGet = require( 'utils-deep-get' ).factory; // FUNCTIONS var POW = require( './number.js' ); // POWER // /** * FUNCTION: power( arr, y, path[, sep] ) * Computes an element-wise power or each element and deep sets the input array. * * @param {Array} arr - input array * @param {Number[]|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|Number} y - either an array of equal length or a scalar * @param {String} path - key path used when deep getting and setting * @param {String} [sep] - key path separator * @returns {Array} input array */ function power( x, y, path, sep ) { var len = x.length, opts = {}, dget, dset, v, i; if ( arguments.length > 3 ) { opts.sep = sep; } if ( len ) { dget = deepGet( path, opts ); dset = deepSet( path, opts ); if ( isTypedArrayLike( y ) ) { for ( i = 0; i < len; i++ ) { v = dget( x[ i ] ); if ( typeof v === 'number' ) { dset( x[ i ], POW( v, y[ i ] ) ); } else {<|fim▁hole|> } } } else if ( isArrayLike( y ) ) { for ( i = 0; i < len; i++ ) { v = dget( x[ i ] ); if ( typeof v === 'number' && typeof y[ i ] === 'number' ) { dset( x[ i ], POW( v, y[ i ] ) ); } else { dset( x[ i ], NaN ); } } } else { if ( typeof y === 'number' ) { for ( i = 0; i < len; i++ ) { v = dget( x[ i ] ); if ( typeof v === 'number' ) { dset( x[ i ], POW( v, y ) ); } else { dset( x[ i ], NaN ); } } } else { for ( i = 0; i < len; i++ ) { dset( x[ i ], NaN ); } } } } return x; } // end FUNCTION power() // EXPORTS // module.exports = power;<|fim▁end|>
dset( x[ i ], NaN );
<|file_name|>recipe-511434.py<|end_file_name|><|fim▁begin|>HOST = '127.0.0.1' PORT = 8080 from Tkinter import * import tkColorChooser import socket import thread import spots ################################################################################ def main(): global hold, fill, draw, look<|fim▁hole|> hold = [] fill = '#000000' connect() root = Tk() root.title('Paint 1.0') root.resizable(False, False) upper = LabelFrame(root, text='Your Canvas') lower = LabelFrame(root, text='Their Canvas') draw = Canvas(upper, bg='#ffffff', width=400, height=300, highlightthickness=0) look = Canvas(lower, bg='#ffffff', width=400, height=300, highlightthickness=0) cursor = Button(upper, text='Cursor Color', command=change_cursor) canvas = Button(upper, text='Canvas Color', command=change_canvas) draw.bind('<Motion>', motion) draw.bind('<ButtonPress-1>', press) draw.bind('<ButtonRelease-1>', release) draw.bind('<Button-3>', delete) upper.grid(padx=5, pady=5) lower.grid(padx=5, pady=5) draw.grid(row=0, column=0, padx=5, pady=5, columnspan=2) look.grid(padx=5, pady=5) cursor.grid(row=1, column=0, padx=5, pady=5, sticky=EW) canvas.grid(row=1, column=1, padx=5, pady=5, sticky=EW) root.mainloop() ################################################################################ def connect(): try: start_client() except: start_server() thread.start_new_thread(processor, ()) def start_client(): global QRI server = socket.socket() server.connect((HOST, PORT)) QRI = spots.qri(server) def start_server(): global QRI server = socket.socket() server.bind(('', PORT)) server.listen(1) QRI = spots.qri(server.accept()[0]) def processor(): while True: ID, (func, args, kwargs) = QRI.query() getattr(look, func)(*args, **kwargs) def call(func, *args, **kwargs): try: QRI.call((func, args, kwargs), 0.001) except: pass ################################################################################ def change_cursor(): global fill color = tkColorChooser.askcolor(color=fill)[1] if color is not None: fill = color def change_canvas(): color = tkColorChooser.askcolor(color=draw['bg'])[1] if color is not None: draw['bg'] = color draw.config(bg=color) call('config', bg=color) ################################################################################ def motion(event): if hold: hold.extend([event.x, event.y]) event.widget.create_line(hold[-4:], fill=fill, tag='TEMP') call('create_line', hold[-4:], fill=fill, tag='TEMP') def press(event): global hold hold = [event.x, event.y] def release(event): global hold if len(hold) > 2: event.widget.delete('TEMP') event.widget.create_line(hold, fill=fill, smooth=True) call('delete', 'TEMP') call('create_line', hold, fill=fill, smooth=True) hold = [] def delete(event): event.widget.delete(ALL) call('delete', ALL) ################################################################################ if __name__ == '__main__': main()<|fim▁end|>
<|file_name|>input.js<|end_file_name|><|fim▁begin|>var foo = createReactClass({});<|fim▁hole|><|fim▁end|>
var bar = React.createClass({});
<|file_name|>0001_initial.py<|end_file_name|><|fim▁begin|>from django.db import migrations, models from django.conf import settings from opaque_keys.edx.django.models import CourseKeyField <|fim▁hole|> ] operations = [ migrations.CreateModel( name='CourseGoal', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('course_key', CourseKeyField(max_length=255, db_index=True)), ('goal_key', models.CharField(default='unsure', max_length=100, choices=[('certify', 'Earn a certificate.'), ('complete', 'Complete the course.'), ('explore', 'Explore the course.'), ('unsure', 'Not sure yet.')])), ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)), ], ), migrations.AlterUniqueTogether( name='coursegoal', unique_together={('user', 'course_key')}, ), ]<|fim▁end|>
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
<|file_name|>currencyPairs.service-mock.ts<|end_file_name|><|fim▁begin|>import { bind } from "@react-rxjs/core"<|fim▁hole|>import { of } from "rxjs" import { delay, distinctUntilChanged, map } from "rxjs/operators" import { CurrencyPair } from "./types" const fakeData: Record<string, CurrencyPair> = { EURUSD: { symbol: "EURUSD", ratePrecision: 5, pipsPosition: 4, base: "EUR", terms: "USD", defaultNotional: 1000000, }, USDJPY: { symbol: "USDJPY", ratePrecision: 3, pipsPosition: 2, base: "USD", terms: "JPY", defaultNotional: 1000000, }, GBPUSD: { symbol: "GBPUSD", ratePrecision: 5, pipsPosition: 4, base: "GBP", terms: "USD", defaultNotional: 1000000, }, GBPJPY: { symbol: "GBPJPY", ratePrecision: 3, pipsPosition: 2, base: "GBP", terms: "JPY", defaultNotional: 1000000, }, EURJPY: { symbol: "EURJPY", ratePrecision: 3, pipsPosition: 2, base: "EUR", terms: "JPY", defaultNotional: 1000000, }, AUDUSD: { symbol: "AUDUSD", ratePrecision: 5, pipsPosition: 4, base: "AUD", terms: "USD", defaultNotional: 1000000, }, NZDUSD: { symbol: "NZDUSD", ratePrecision: 5, pipsPosition: 4, base: "NZD", terms: "USD", defaultNotional: 10000000, }, EURCAD: { symbol: "EURCAD", ratePrecision: 5, pipsPosition: 4, base: "EUR", terms: "CAD", defaultNotional: 1000000, }, EURAUD: { symbol: "EURAUD", ratePrecision: 5, pipsPosition: 4, base: "EUR", terms: "AUD", defaultNotional: 1000000, }, } export const [useCurrencyPairs, currencyPairs$] = bind< Record<string, CurrencyPair> >(of(fakeData).pipe(delay(1_000))) export const [useCurrencyPair, getCurrencyPair$] = bind((symbol: string) => currencyPairs$.pipe( map((currencyPairs) => currencyPairs[symbol]), distinctUntilChanged(), ), )<|fim▁end|>
<|file_name|>userTableModule.js<|end_file_name|><|fim▁begin|>angular.module("userTableModule", []) .controller('userTableController', ['$http', function ($http, $scope, $log) { var userTable = this; userTable.users = []; $http.get('/allUsers').success(function (data) { userTable.users = data; }).error(function (data) { }); userTable.addRow = function() { userTable.users = push({ 'id' : $scope.id, 'fullName' : userTable.fullName, 'lastName' : userTable.lastName, 'description' : userTable.description }); userTable.fullName = ''; userTable.lastName = ''; userTable.description = ''; }; userTable.deleteUserById = function (id) { var userArr = eval(userTable.users); var index = -1; for (var i = 0; i < userArr.length; i++) { if (userArr[i].id == id) { index = i; break; } }<|fim▁hole|> }; }]);<|fim▁end|>
if (index == -1) { alert("Не удалось найти строку с таким id:" + id); } userTable.users.splice(index, 1);
<|file_name|>sweep.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from utils import load_data, save_data <|fim▁hole|>def run(): # load in members, orient by bioguide ID print("Loading current legislators...") current = load_data("legislators-current.yaml") current_bioguide = { } for m in current: if "bioguide" in m["id"]: current_bioguide[m["id"]["bioguide"]] = m # remove out-of-office people from current committee membership print("Sweeping committee membership...") membership_current = load_data("committee-membership-current.yaml") for committee_id in list(membership_current.keys()): for member in membership_current[committee_id]: if member["bioguide"] not in current_bioguide: print("\t[%s] Ding ding ding! (%s)" % (member["bioguide"], member["name"])) membership_current[committee_id].remove(member) save_data(membership_current, "committee-membership-current.yaml") # remove out-of-office people from social media info print("Sweeping social media accounts...") socialmedia_current = load_data("legislators-social-media.yaml") for member in list(socialmedia_current): if member["id"]["bioguide"] not in current_bioguide: print("\t[%s] Ding ding ding! (%s)" % (member["id"]["bioguide"], member["social"])) socialmedia_current.remove(member) save_data(socialmedia_current, "legislators-social-media.yaml") if __name__ == '__main__': run()<|fim▁end|>
<|file_name|>Make Layer Cells.py<|end_file_name|><|fim▁begin|># $description: Split into layer cells # $autorun # $show-in-menu import pya import sys sys.stderr = sys.stdout class MenuAction(pya.Action): def __init__(self, title, shortcut, action): self.title = title self.shortcut = shortcut self.action = action def triggered(self): self.action() def make_layer_cells(): #Load View app = pya.Application.instance() mw = app.main_window() lv = mw.current_view() ly = lv.active_cellview().layout() dbu = ly.dbu if lv==None: raise Exception("No view selected") cv = lv.cellview(lv.active_cellview_index()) #Loop through layers for layer in [1,2,3]: new_cell = ly.create_cell(cv.cell.display_title() + "L" + str(layer)) # Loop through instances for inst in cv.cell.each_inst(): #Calculate location of instances itrans = pya.ICplxTrans.from_trans(pya.CplxTrans()) box = inst.bbox().transformed(itrans) x = box.center().x y = box.center().y #Create new cell to represent given layer new_subcell = ly.create_cell(inst.cell.display_title() + "L" + str(layer)) #Map Bounding box and shape layers to new layer lm = pya.LayerMapping() lm.map(ly.layer(1,3), ly.layer(1,3)) lm.map(ly.layer(layer, 0), ly.layer(layer, 0)) lm.map(ly.layer(layer,1), ly.layer(layer, 0)) #Create Instance Array to place into cell<|fim▁hole|> #Copy shapes, place, and insert array.cell_index=new_subcell.cell_index() new_subcell.copy_shapes(inst.cell, lm) array.trans = pya.Trans(pya.Point(x,y)) new_cell.insert(array) x = MenuAction("Make Layer Cells", "", make_layer_cells) app = pya.Application.instance() mw = app.main_window() menu = mw.menu() menu.insert_separator("@hcp_context_menu.end", "sep_layer_cells") menu.insert_item("@hcp_context_menu.end", "layer_cells", x)<|fim▁end|>
array = pya.CellInstArray()
<|file_name|>main.cpp<|end_file_name|><|fim▁begin|>/* * main.cpp * * Created on: 2015Äê12ÔÂ3ÈÕ * Author: weiteng */ #include <sys/file.h> #include "libc2c/pid_guard.h" #include "../../include/log_manager.h" #include "app_config.h" #include "config_report_agent.h" void CheckProcessAlive(const char *sPIDPath,const char *sPIDFile) { assert(sPIDPath); assert(sPIDFile); char sFilePath[255]; snprintf(sFilePath,sizeof(sFilePath),"%s%s",sPIDPath,sPIDFile); int fd; fd = open(sFilePath,O_CREAT|O_RDWR,0666); if( fd == -1) { printf("open file error,filename:%s\n",sFilePath); exit(1); } int ret = flock(fd,LOCK_EX|LOCK_NB); if(ret != 0) { printf("process already run!\n"); exit(0); } } int main(int argc, char ** argv) { std::string sXmlCfgFile = DEFAULT_CONFIG_FILE; if (argc >= 2) { sXmlCfgFile = argv[1]; } if (access(sXmlCfgFile.c_str(), F_OK) == -1) { printf("can't open config file %s\n", sXmlCfgFile.c_str()); return EXIT_FAILURE; } // µ¥½ø³ÌÔËÐÐ CheckProcessAlive("/var/tmp/",APP_PROCESS_NAME.c_str()); // ³õʼ»¯ wq::report::CConfigReportAgent oConfigReportAgent; if (oConfigReportAgent.Init(sXmlCfgFile) < 0) { printf("confi report agent init failed."); return EXIT_FAILURE; } // ¿ªÊ¼Ñ­»· oConfigReportAgent.StartLoop(); return EXIT_SUCCESS; <|fim▁hole|>}<|fim▁end|>
<|file_name|>cstringio-example-2.py<|end_file_name|><|fim▁begin|>''' ΪÁËÈÃÄãµÄ´úÂ뾡¿ÉÄÜ¿ì, µ«Í¬Ê±±£Ö¤¼æÈݵͰ汾µÄ Python ,Äã¿ÉÒÔʹÓÃÒ»¸öС¼¼ÇÉÔÚ cStringIO ²»¿ÉÓÃʱÆôÓà StringIO Ä£¿é, Èç ÏÂÀý Ëùʾ. ''' try: import cStringIO StringIO = cStringIO<|fim▁hole|> print StringIO<|fim▁end|>
except ImportError: import StringIO
<|file_name|>Generator.java<|end_file_name|><|fim▁begin|>package com.sqisland.gce2retrofit; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.stream.JsonReader; import com.squareup.javawriter.JavaWriter; import org.apache.commons.cli.BasicParser; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; import org.apache.commons.lang3.text.WordUtils; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.io.Writer; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.EnumSet; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import static javax.lang.model.element.Modifier.PUBLIC; public class Generator { private static final String OPTION_CLASS_MAP = "classmap"; private static final String OPTION_METHODS = "methods"; private static Gson gson = new Gson(); public enum MethodType { SYNC, ASYNC, REACTIVE } public static void main(String... args) throws IOException, URISyntaxException { Options options = getOptions(); CommandLine cmd = getCommandLine(options, args); if (cmd == null) { return; } String[] arguments = cmd.getArgs(); if (arguments.length != 2) { HelpFormatter formatter = new HelpFormatter(); formatter.printHelp("java -jar gce2retrofit.jar discovery.json output_dir", options); System.exit(1); } String discoveryFile = arguments[0]; String outputDir = arguments[1]; Map<String, String> classMap = cmd.hasOption(OPTION_CLASS_MAP)? readClassMap(new FileReader(cmd.getOptionValue(OPTION_CLASS_MAP))) : null; EnumSet<MethodType> methodTypes = getMethods(cmd.getOptionValue(OPTION_METHODS)); generate(new FileReader(discoveryFile), new FileWriterFactory(new File(outputDir)), classMap, methodTypes); } private static Options getOptions() { Options options = new Options(); options.addOption( OPTION_CLASS_MAP, true, "Map fields to classes. Format: field_name\\tclass_name"); options.addOption( OPTION_METHODS, true, "Methods to generate, either sync, async or reactive. Default is to generate sync & async."); return options; } private static CommandLine getCommandLine(Options options, String... args) { CommandLineParser parser = new BasicParser(); try { CommandLine cmd = parser.parse(options, args); return cmd; } catch (ParseException e) { System.out.println("Unexpected exception:" + e.getMessage()); } return null; } public static void generate( Reader discoveryReader, WriterFactory writerFactory, Map<String, String> classMap, EnumSet<MethodType> methodTypes) throws IOException, URISyntaxException { JsonReader jsonReader = new JsonReader(discoveryReader); Discovery discovery = gson.fromJson(jsonReader, Discovery.class); String packageName = StringUtil.getPackageName(discovery.baseUrl); if (packageName == null || packageName.isEmpty()) { packageName = StringUtil.getPackageName(discovery.rootUrl); } String modelPackageName = packageName + ".model"; for (Entry<String, JsonElement> entry : discovery.schemas.entrySet()) { generateModel( writerFactory, modelPackageName, entry.getValue().getAsJsonObject(), classMap); } if (discovery.resources != null) { generateInterfaceFromResources( writerFactory, packageName, "", discovery.resources, methodTypes); } if (discovery.name != null && discovery.methods != null) { generateInterface( writerFactory, packageName, discovery.name, discovery.methods, methodTypes); } } public static Map<String, String> readClassMap(Reader reader) throws IOException { Map<String, String> classMap = new HashMap<String, String>(); String line; BufferedReader bufferedReader = new BufferedReader(reader); while ((line = bufferedReader.readLine()) != null) { String[] fields = line.split("\t"); if (fields.length == 2) { classMap.put(fields[0], fields[1]); } } return classMap; } public static EnumSet<MethodType> getMethods(String input) { EnumSet<MethodType> methodTypes = EnumSet.noneOf(MethodType.class); if (input != null) { String[] parts = input.split(","); for (String part : parts) { if ("sync".equals(part) || "both".equals(part)) { methodTypes.add(MethodType.SYNC); } if ("async".equals(part) || "both".equals(part)) { methodTypes.add(MethodType.ASYNC); } if ("reactive".equals(part)) { methodTypes.add(MethodType.REACTIVE); } } } if (methodTypes.isEmpty()) { methodTypes = EnumSet.of(Generator.MethodType.ASYNC, Generator.MethodType.SYNC); } return methodTypes; } private static void generateModel( WriterFactory writerFactory, String modelPackageName, JsonObject schema, Map<String, String> classMap) throws IOException { String id = schema.get("id").getAsString(); String path = StringUtil.getPath(modelPackageName, id + ".java"); Writer writer = writerFactory.getWriter(path); JavaWriter javaWriter = new JavaWriter(writer); javaWriter.emitPackage(modelPackageName) .emitImports("com.google.gson.annotations.SerializedName") .emitEmptyLine() .emitImports("java.util.List") .emitEmptyLine(); String type = schema.get("type").getAsString(); if (type.equals("object")) { javaWriter.beginType(modelPackageName + "." + id, "class", EnumSet.of(PUBLIC)); generateObject(javaWriter, schema, classMap); javaWriter.endType(); } else if (type.equals("string")) { javaWriter.beginType(modelPackageName + "." + id, "enum", EnumSet.of(PUBLIC)); generateEnum(javaWriter, schema); javaWriter.endType(); } writer.close(); } private static void generateObject( JavaWriter javaWriter, JsonObject schema, Map<String, String> classMap) throws IOException { JsonElement element = schema.get("properties"); if (element == null) { return; } JsonObject properties = element.getAsJsonObject(); for (Entry<String, JsonElement> entry : properties.entrySet()) { String key = entry.getKey(); String variableName = key; if (StringUtil.isReservedWord(key)) { javaWriter.emitAnnotation("SerializedName(\"" + key + "\")"); variableName += "_"; } PropertyType propertyType = gson.fromJson( entry.getValue(), PropertyType.class); String javaType = propertyType.toJavaType(); if (classMap != null && classMap.containsKey(key)) { javaType = classMap.get(key); } javaWriter.emitField(javaType, variableName, EnumSet.of(PUBLIC)); } } private static void generateEnum(JavaWriter javaWriter, JsonObject schema) throws IOException { JsonArray enums = schema.get("enum").getAsJsonArray(); for (int i = 0; i < enums.size(); ++i) { javaWriter.emitEnumValue(enums.get(i).getAsString()); } } private static void generateInterfaceFromResources( WriterFactory writerFactory, String packageName, String resourceName, JsonObject resources, EnumSet<MethodType> methodTypes) throws IOException { for (Entry<String, JsonElement> entry : resources.entrySet()) { JsonObject entryValue = entry.getValue().getAsJsonObject(); if (entryValue.has("methods")) { generateInterface(writerFactory, packageName, resourceName + "_" + entry.getKey(), entryValue.get("methods").getAsJsonObject(), methodTypes); } if (entryValue.has("resources")) { generateInterfaceFromResources(writerFactory, packageName, resourceName + "_" + entry.getKey(), entryValue.get("resources").getAsJsonObject(), methodTypes); } } } private static void generateInterface( WriterFactory writerFactory, String packageName, String resourceName, JsonObject methods, EnumSet<MethodType> methodTypes) throws IOException { String capitalizedName = WordUtils.capitalizeFully(resourceName, '_'); String className = capitalizedName.replaceAll("_", ""); String path = StringUtil.getPath(packageName, className + ".java"); Writer fileWriter = writerFactory.getWriter(path); JavaWriter javaWriter = new JavaWriter(fileWriter); javaWriter.emitPackage(packageName) .emitImports(packageName + ".model.*") .emitEmptyLine() .emitImports( "retrofit.Callback", "retrofit.client.Response", "retrofit.http.GET", "retrofit.http.POST", "retrofit.http.PATCH", "retrofit.http.DELETE", "retrofit.http.Body", "retrofit.http.Path", "retrofit.http.Query"); if (methodTypes.contains(MethodType.REACTIVE)) { javaWriter.emitImports("rx.Observable"); } javaWriter.emitEmptyLine(); javaWriter.beginType( packageName + "." + className, "interface", EnumSet.of(PUBLIC)); for (Entry<String, JsonElement> entry : methods.entrySet()) { String methodName = entry.getKey(); Method method = gson.fromJson(entry.getValue(), Method.class); for (MethodType methodType : methodTypes) { javaWriter.emitAnnotation(method.httpMethod, "\"/" + method.path + "\""); emitMethodSignature(fileWriter, methodName, method, methodType); } } javaWriter.endType(); fileWriter.close(); } // TODO: Use JavaWriter to emit method signature private static void emitMethodSignature( Writer writer, String methodName, Method method, MethodType methodType) throws IOException { ArrayList<String> params = new ArrayList<String>(); if (method.request != null) { params.add("@Body " + method.request.$ref + " " + (method.request.parameterName != null ? method.request.parameterName : "resource")); } for (Entry<String, JsonElement> param : getParams(method)) { params.add(param2String(param)); } String returnValue = "void"; if (methodType == MethodType.SYNC && "POST".equals(method.httpMethod)) { returnValue = "Response"; } if (method.response != null) { if (methodType == MethodType.SYNC) { returnValue = method.response.$ref; } else if (methodType == MethodType.REACTIVE) { returnValue = "Observable<" + method.response.$ref + ">"; } } if (methodType == MethodType.ASYNC) { if (method.response == null) { params.add("Callback<Void> cb"); } else { params.add("Callback<" + method.response.$ref + "> cb"); } } writer.append(" " + returnValue + " " + methodName + (methodType == MethodType.REACTIVE ? "Rx" : "") + "("); for (int i = 0; i < params.size(); ++i) { if (i != 0) { writer.append(", "); } writer.append(params.get(i)); } writer.append(");\n"); } /** * Assemble a list of parameters, with the first entries matching the ones * listed in parameterOrder * * @param method The method containing parameters and parameterOrder * @return Ordered parameters */ private static List<Entry<String, JsonElement>> getParams(Method method) { List<Entry<String, JsonElement>> params = new ArrayList<Entry<String, JsonElement>>(); if (method.parameters == null) { return params; } // Convert the entry set into a map, and extract the keys not listed in // parameterOrder HashMap<String, Entry<String, JsonElement>> map = new HashMap<String, Entry<String, JsonElement>>(); List<String> remaining = new ArrayList<String>(); for (Entry<String, JsonElement> entry : method.parameters.entrySet()) { String key = entry.getKey(); map.put(key, entry); if (method.parameterOrder == null || !method.parameterOrder.contains(key)) { remaining.add(key); } } // Add the keys in parameterOrder if (method.parameterOrder != null) { for (String key : method.parameterOrder) { params.add(map.get(key)); }<|fim▁hole|> params.add(map.get(key)); } return params; } private static String param2String(Entry<String, JsonElement> param) { StringBuffer buf = new StringBuffer(); String paramName = param.getKey(); ParameterType paramType = gson.fromJson( param.getValue(), ParameterType.class); if ("path".equals(paramType.location)) { buf.append("@Path(\"" + paramName + "\") "); } if ("query".equals(paramType.location)) { buf.append("@Query(\"" + paramName + "\") "); } String type = paramType.toJavaType(); if (!paramType.required) { type = StringUtil.primitiveToObject(type); } buf.append(type + " " + paramName); return buf.toString(); } }<|fim▁end|>
} // Then add the keys not in parameterOrder for (String key : remaining) {
<|file_name|>unicodecsv.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import sys import csv from itertools import izip # https://pypi.python.org/pypi/unicodecsv # http://semver.org/ VERSION = (0, 9, 4) __version__ = ".".join(map(str, VERSION)) pass_throughs = [ 'register_dialect', 'unregister_dialect', 'get_dialect', 'list_dialects', 'field_size_limit', 'Dialect', 'excel', 'excel_tab', 'Sniffer', 'QUOTE_ALL', 'QUOTE_MINIMAL', 'QUOTE_NONNUMERIC', 'QUOTE_NONE', 'Error' ] __all__ = [ 'reader', 'writer', 'DictReader', 'DictWriter', ] + pass_throughs for prop in pass_throughs: globals()[prop] = getattr(csv, prop) def _stringify(s, encoding, errors): if s is None: return '' if isinstance(s, unicode): return s.encode(encoding, errors) elif isinstance(s, (int, float)): pass # let csv.QUOTE_NONNUMERIC do its thing. elif not isinstance(s, str): s = str(s) return s def _stringify_list(l, encoding, errors='strict'): try: return [_stringify(s, encoding, errors) for s in iter(l)] except TypeError, e: raise csv.Error(str(e)) def _unicodify(s, encoding): if s is None: return None if isinstance(s, (unicode, int, float)): return s elif isinstance(s, str): return s.decode(encoding) return s class UnicodeWriter(object): """ >>> import unicodecsv >>> from cStringIO import StringIO >>> f = StringIO() >>> w = unicodecsv.writer(f, encoding='utf-8') >>> w.writerow((u'é', u'ñ')) >>> f.seek(0) >>> r = unicodecsv.reader(f, encoding='utf-8') >>> row = r.next() >>> row[0] == u'é' True >>> row[1] == u'ñ' True """ def __init__(self, f, dialect=csv.excel, encoding='utf-8', errors='strict', *args, **kwds): self.encoding = encoding self.writer = csv.writer(f, dialect, *args, **kwds) self.encoding_errors = errors def writerow(self, row): self.writer.writerow( _stringify_list(row, self.encoding, self.encoding_errors)) def writerows(self, rows): for row in rows: self.writerow(row) @property def dialect(self): return self.writer.dialect writer = UnicodeWriter class UnicodeReader(object): def __init__(self, f, dialect=None, encoding='utf-8', errors='strict', **kwds): format_params = ['delimiter', 'doublequote', 'escapechar', 'lineterminator', 'quotechar', 'quoting', 'skipinitialspace'] if dialect is None: if not any([kwd_name in format_params for kwd_name in kwds.keys()]): dialect = csv.excel self.reader = csv.reader(f, dialect, **kwds) self.encoding = encoding self.encoding_errors = errors def next(self): row = self.reader.next() encoding = self.encoding encoding_errors = self.encoding_errors float_ = float unicode_ = unicode try: val = [(value if isinstance(value, float_) else unicode_(value, encoding, encoding_errors)) for value in row]<|fim▁hole|> # attempt a different encoding... encoding = 'ISO-8859-1' val = [(value if isinstance(value, float_) else unicode_(value, encoding, encoding_errors)) for value in row] return val def __iter__(self): return self @property def dialect(self): return self.reader.dialect @property def line_num(self): return self.reader.line_num reader = UnicodeReader class DictWriter(csv.DictWriter): """ >>> from cStringIO import StringIO >>> f = StringIO() >>> w = DictWriter(f, ['a', u'ñ', 'b'], restval=u'î') >>> w.writerow({'a':'1', u'ñ':'2'}) >>> w.writerow({'a':'1', u'ñ':'2', 'b':u'ø'}) >>> w.writerow({'a':u'é', u'ñ':'2'}) >>> f.seek(0) >>> r = DictReader(f, fieldnames=['a', u'ñ'], restkey='r') >>> r.next() == {'a': u'1', u'ñ':'2', 'r': [u'î']} True >>> r.next() == {'a': u'1', u'ñ':'2', 'r': [u'\xc3\xb8']} True >>> r.next() == {'a': u'\xc3\xa9', u'ñ':'2', 'r': [u'\xc3\xae']} True """ def __init__(self, csvfile, fieldnames, restval='', extrasaction='raise', dialect='excel', encoding='utf-8', errors='strict', *args, **kwds): self.encoding = encoding csv.DictWriter.__init__( self, csvfile, fieldnames, restval, extrasaction, dialect, *args, **kwds) self.writer = UnicodeWriter( csvfile, dialect, encoding=encoding, errors=errors, *args, **kwds) self.encoding_errors = errors def writeheader(self): fieldnames = _stringify_list( self.fieldnames, self.encoding, self.encoding_errors) header = dict(zip(self.fieldnames, self.fieldnames)) self.writerow(header) class DictReader(csv.DictReader): """ >>> from cStringIO import StringIO >>> f = StringIO() >>> w = DictWriter(f, fieldnames=['name', 'place']) >>> w.writerow({'name': 'Cary Grant', 'place': 'hollywood'}) >>> w.writerow({'name': 'Nathan Brillstone', 'place': u'øLand'}) >>> w.writerow({'name': u'Willam ø. Unicoder', 'place': u'éSpandland'}) >>> f.seek(0) >>> r = DictReader(f, fieldnames=['name', 'place']) >>> print r.next() == {'name': 'Cary Grant', 'place': 'hollywood'} True >>> print r.next() == {'name': 'Nathan Brillstone', 'place': u'øLand'} True >>> print r.next() == {'name': u'Willam ø. Unicoder', 'place': u'éSpandland'} True """ def __init__(self, csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', encoding='utf-8', errors='strict', *args, **kwds): if fieldnames is not None: fieldnames = _stringify_list(fieldnames, encoding) csv.DictReader.__init__( self, csvfile, fieldnames, restkey, restval, dialect, *args, **kwds) self.reader = UnicodeReader(csvfile, dialect, encoding=encoding, errors=errors, *args, **kwds) if fieldnames is None and not hasattr(csv.DictReader, 'fieldnames'): # Python 2.5 fieldnames workaround. # (http://bugs.python.org/issue3436) reader = UnicodeReader( csvfile, dialect, encoding=encoding, *args, **kwds) self.fieldnames = _stringify_list(reader.next(), reader.encoding) self.unicode_fieldnames = [_unicodify(f, encoding) for f in self.fieldnames] self.unicode_restkey = _unicodify(restkey, encoding) def next(self): row = csv.DictReader.next(self) result = dict((uni_key, row[str_key]) for (str_key, uni_key) in izip(self.fieldnames, self.unicode_fieldnames)) rest = row.get(self.restkey) if rest: result[self.unicode_restkey] = rest return result<|fim▁end|>
except UnicodeDecodeError as e:
<|file_name|>ThreadTask.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 1998-2010 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Resin Open Source is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty * of NON-INFRINGEMENT. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with Resin Open Source; if not, write to the * * Free Software Foundation, Inc. * 59 Temple Place, Suite 330 * Boston, MA 02111-1307 USA * * @author Scott Ferguson */ package com.caucho.env.thread; import java.util.concurrent.locks.LockSupport; import com.caucho.util.Alarm; /** * A generic pool of threads available for Alarms and Work tasks. */ final class ThreadTask { private final Runnable _runnable; private final ClassLoader _loader; private volatile Thread _thread; ThreadTask(Runnable runnable, ClassLoader loader, Thread thread) { _runnable = runnable; _loader = loader; _thread = thread; } final Runnable getRunnable() { return _runnable;<|fim▁hole|> final ClassLoader getLoader() { return _loader; } void clearThread() { _thread = null; } final void wake() { Thread thread = _thread; _thread = null; if (thread != null) LockSupport.unpark(thread); } final void park(long expires) { Thread thread = _thread; while (_thread != null && Alarm.getCurrentTimeActual() < expires) { try { Thread.interrupted(); LockSupport.parkUntil(thread, expires); } catch (Exception e) { } } /* if (_thread != null) { System.out.println("TIMEOUT:" + thread); Thread.dumpStack(); } */ _thread = null; } }<|fim▁end|>
}
<|file_name|>A.java<|end_file_name|><|fim▁begin|>public enum A { ; A(String s){}<|fim▁hole|><|fim▁end|>
}
<|file_name|>a23e88f06478_add_commentset_fields.py<|end_file_name|><|fim▁begin|>"""Add commentset fields. Revision ID: a23e88f06478 Revises: 284c10efdbce Create Date: 2021-03-22 02:54:30.416806 """ from alembic import op from sqlalchemy.sql import column, table import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a23e88f06478' down_revision = '284c10efdbce' branch_labels = None depends_on = None commentset = table( 'commentset', column('id', sa.Integer()), column('last_comment_at', sa.TIMESTAMP(timezone=True)), ) comment = table( 'comment', column('id', sa.Integer()), column('created_at', sa.TIMESTAMP(timezone=True)), column('commentset_id', sa.Integer()), ) def upgrade(): op.add_column( 'commentset', sa.Column('last_comment_at', sa.TIMESTAMP(timezone=True), nullable=True), ) op.add_column( 'commentset_membership', sa.Column( 'is_muted', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false(), ),<|fim▁hole|> op.execute( commentset.update().values( last_comment_at=sa.select([sa.func.max(comment.c.created_at)]).where( comment.c.commentset_id == commentset.c.id ) ) ) def downgrade(): op.drop_column('commentset_membership', 'is_muted') op.drop_column('commentset', 'last_comment_at')<|fim▁end|>
) op.alter_column('commentset_membership', 'is_muted', server_default=None)
<|file_name|>EventsBoss.java<|end_file_name|><|fim▁begin|>/** * NOTE: This copyright does *not* cover user programs that use HQ * program services by normal system calls through the application * program interfaces provided as part of the Hyperic Plug-in Development * Kit or the Hyperic Client Development Kit - this is merely considered * normal use of the program, and does *not* fall under the heading of * "derived work". * * Copyright (C) [2009-2010], VMware, Inc. * This file is part of HQ. * * HQ is free software; you can redistribute it and/or modify * it under the terms version 2 of the GNU General Public License as * published by the Free Software Foundation. This program is distributed * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without * even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. * */ package org.hyperic.hq.bizapp.shared; import java.util.List; import java.util.Map; import javax.security.auth.login.LoginException; import org.hyperic.hq.appdef.shared.AppdefEntityID; import org.hyperic.hq.appdef.shared.AppdefEntityNotFoundException; import org.hyperic.hq.appdef.shared.AppdefEntityTypeID; import org.hyperic.hq.auth.shared.SessionException; import org.hyperic.hq.auth.shared.SessionNotFoundException; import org.hyperic.hq.auth.shared.SessionTimeoutException; import org.hyperic.hq.authz.server.session.AuthzSubject; import org.hyperic.hq.authz.shared.PermissionException; import org.hyperic.hq.common.ApplicationException; import org.hyperic.hq.common.DuplicateObjectException; import org.hyperic.hq.escalation.server.session.Escalatable; import org.hyperic.hq.escalation.server.session.Escalation; import org.hyperic.hq.escalation.server.session.EscalationAlertType; import org.hyperic.hq.escalation.server.session.EscalationState; import org.hyperic.hq.events.ActionConfigInterface; import org.hyperic.hq.events.ActionCreateException; import org.hyperic.hq.events.ActionExecuteException; import org.hyperic.hq.events.AlertConditionCreateException; import org.hyperic.hq.events.AlertDefinitionCreateException; import org.hyperic.hq.events.AlertNotFoundException; import org.hyperic.hq.events.MaintenanceEvent; import org.hyperic.hq.events.TriggerCreateException; import org.hyperic.hq.events.server.session.Action; import org.hyperic.hq.events.server.session.Alert; import org.hyperic.hq.events.shared.ActionValue; import org.hyperic.hq.events.shared.AlertDefinitionValue; import org.hyperic.util.ConfigPropertyException; import org.hyperic.util.config.ConfigResponse; import org.hyperic.util.config.ConfigSchema; import org.hyperic.util.config.InvalidOptionException; import org.hyperic.util.config.InvalidOptionValueException; import org.hyperic.util.pager.PageControl; import org.hyperic.util.pager.PageList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.quartz.SchedulerException; import org.springframework.transaction.annotation.Transactional; /** * Local interface for EventsBoss. */ public interface EventsBoss { /** * Get the number of alerts for the given array of AppdefEntityID's */ public int[] getAlertCount(int sessionID, org.hyperic.hq.appdef.shared.AppdefEntityID[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Get the number of alerts for the given array of AppdefEntityID's, mapping AppdefEntityID to it's alerts count * */ @Transactional(readOnly = true) public Map<AppdefEntityID, Integer> getAlertCountMapped(int sessionID, AppdefEntityID[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Create an alert definition */ public AlertDefinitionValue createAlertDefinition(int sessionID, AlertDefinitionValue adval) throws org.hyperic.hq.events.AlertDefinitionCreateException, PermissionException, InvalidOptionException, InvalidOptionValueException, SessionException; /** * Create an alert definition for a resource type */ public AlertDefinitionValue createResourceTypeAlertDefinition(int sessionID, AppdefEntityTypeID aetid, AlertDefinitionValue adval) throws org.hyperic.hq.events.AlertDefinitionCreateException, PermissionException, InvalidOptionException, InvalidOptionValueException, SessionNotFoundException, SessionTimeoutException; public Action createAction(int sessionID, Integer adid, String className, ConfigResponse config) throws SessionNotFoundException, SessionTimeoutException, ActionCreateException, PermissionException; /** * Activate/deactivate a collection of alert definitions */ public void activateAlertDefinitions(int sessionID, java.lang.Integer[] ids, boolean activate) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Activate or deactivate alert definitions by AppdefEntityID. */ public void activateAlertDefinitions(int sessionID, org.hyperic.hq.appdef.shared.AppdefEntityID[] eids, boolean activate) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException; /** * Update just the basics */ public void updateAlertDefinitionBasic(int sessionID, Integer alertDefId, String name, String desc, int priority, boolean activate) throws SessionNotFoundException, SessionTimeoutException, PermissionException; public void updateAlertDefinition(int sessionID, AlertDefinitionValue adval) throws TriggerCreateException, InvalidOptionException, InvalidOptionValueException, AlertConditionCreateException, ActionCreateException, SessionNotFoundException, SessionTimeoutException; /** * Get actions for a given alert. * @param alertId the alert id */ public List<ActionValue> getActionsForAlert(int sessionId, Integer alertId) throws SessionNotFoundException, SessionTimeoutException; /** * Update an action */ public void updateAction(int sessionID, ActionValue aval) throws SessionNotFoundException, SessionTimeoutException; /** * Delete a collection of alert definitions */ public void deleteAlertDefinitions(int sessionID, java.lang.Integer[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Delete list of alerts */ public void deleteAlerts(int sessionID, java.lang.Integer[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Delete all alerts for a list of alert definitions * */ public int deleteAlertsForDefinitions(int sessionID, java.lang.Integer[] adids) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Get an alert definition by ID */ public AlertDefinitionValue getAlertDefinition(int sessionID, Integer id) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Find an alert by ID */ public Alert getAlert(int sessionID, Integer id) throws SessionNotFoundException, SessionTimeoutException, AlertNotFoundException; /** * Get a list of all alert definitions */ public PageList<AlertDefinitionValue> findAllAlertDefinitions(int sessionID) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Get a collection of alert definitions for a resource */ public PageList<AlertDefinitionValue> findAlertDefinitions(int sessionID, AppdefEntityID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Get a collection of alert definitions for a resource or resource type */ public PageList<AlertDefinitionValue> findAlertDefinitions(int sessionID, AppdefEntityTypeID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Find all alert definition names for a resource * @return Map of AlertDefinition names and IDs */ public Map<String, Integer> findAlertDefinitionNames(int sessionID, AppdefEntityID id, Integer parentId) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException; /** * Find all alerts for an appdef resource */ public PageList<Alert> findAlerts(int sessionID, AppdefEntityID id, long begin, long end, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Search alerts given a set of criteria * @param username the username * @param count the maximum number of alerts to return * @param priority allowable values: 0 (all), 1, 2, or 3 * @param timeRange the amount of time from current time to include * @param ids the IDs of resources to include or null for ALL * @return a list of {@link Escalatable}s */ public List<Escalatable> findRecentAlerts(String username, int count, int priority, long timeRange, org.hyperic.hq.appdef.shared.AppdefEntityID[] ids) throws LoginException, ApplicationException, ConfigPropertyException; /** * Search recent alerts given a set of criteria * @param sessionID the session token * @param count the maximum number of alerts to return * @param priority allowable values: 0 (all), 1, 2, or 3 * @param timeRange the amount of time from current time to include * @param ids the IDs of resources to include or null for ALL * @return a list of {@link Escalatable}s */ public List<Escalatable> findRecentAlerts(int sessionID, int count, int priority, long timeRange, org.hyperic.hq.appdef.shared.AppdefEntityID[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Get config schema info for an action class */ public ConfigSchema getActionConfigSchema(int sessionID, String actionClass) throws SessionNotFoundException, SessionTimeoutException, org.hyperic.util.config.EncodingException; /** * Get config schema info for a trigger class */ public ConfigSchema getRegisteredTriggerConfigSchema(int sessionID, String triggerClass) throws SessionNotFoundException, SessionTimeoutException, org.hyperic.util.config.EncodingException; public void deleteEscalationByName(int sessionID, String name) throws SessionTimeoutException, SessionNotFoundException, PermissionException, org.hyperic.hq.common.ApplicationException; public void deleteEscalationById(int sessionID, Integer id) throws SessionTimeoutException, SessionNotFoundException, PermissionException, org.hyperic.hq.common.ApplicationException; /** * remove escalation by id */ public void deleteEscalationById(int sessionID, java.lang.Integer[] ids) throws SessionTimeoutException, SessionNotFoundException, PermissionException, org.hyperic.hq.common.ApplicationException; /** * retrieve escalation name by alert definition id. */ public Integer getEscalationIdByAlertDefId(int sessionID, Integer id, EscalationAlertType alertType) throws SessionTimeoutException, SessionNotFoundException, PermissionException; /** * set escalation name by alert definition id. */ public void setEscalationByAlertDefId(int sessionID, Integer id, Integer escId, EscalationAlertType alertType) throws SessionTimeoutException, SessionNotFoundException, PermissionException; /** * unset escalation by alert definition id. */ public void unsetEscalationByAlertDefId(int sessionID, Integer id, EscalationAlertType alertType) throws SessionTimeoutException, SessionNotFoundException, PermissionException; /** * retrieve escalation JSONObject by alert definition id. */ public JSONObject jsonEscalationByAlertDefId(int sessionID, Integer id, EscalationAlertType alertType) throws org.hyperic.hq.auth.shared.SessionException, PermissionException, JSONException; /** * retrieve escalation object by escalation id. */ public Escalation findEscalationById(int sessionID, Integer id) throws SessionTimeoutException, SessionNotFoundException, PermissionException; public void addAction(int sessionID, Escalation e, ActionConfigInterface cfg, long waitTime) throws SessionTimeoutException, SessionNotFoundException, PermissionException; public void removeAction(int sessionID, Integer escId, Integer actId) throws SessionTimeoutException, SessionNotFoundException, PermissionException; /** * Retrieve a list of {@link EscalationState}s, representing the active * escalations in the system. */ public List<EscalationState> getActiveEscalations(int sessionId, int maxEscalations) throws org.hyperic.hq.auth.shared.SessionException; /** * Gets the escalatable associated with the specified state */ public Escalatable getEscalatable(int sessionId, EscalationState state) throws org.hyperic.hq.auth.shared.SessionException; /** * retrieve all escalation policy names as a Array of JSONObject. Escalation * json finders begin with json* to be consistent with DAO finder convention */ public JSONArray listAllEscalationName(int sessionID) throws JSONException, SessionTimeoutException, SessionNotFoundException, PermissionException; /** * Create a new escalation. If alertDefId is non-null, the escalation will * also be associated with the given alert definition. */ public Escalation createEscalation(int sessionID, String name, String desc, boolean allowPause, long maxWaitTime, boolean notifyAll, boolean repeat, EscalationAlertType alertType, Integer alertDefId) throws SessionTimeoutException, SessionNotFoundException, PermissionException, DuplicateObjectException; /** * Update basic escalation properties */ public void updateEscalation(int sessionID, Escalation escalation, String name, String desc, long maxWait, boolean pausable, boolean notifyAll, boolean repeat) throws SessionTimeoutException, SessionNotFoundException, PermissionException, DuplicateObjectException; public boolean acknowledgeAlert(int sessionID, EscalationAlertType alertType, Integer alertID, long pauseWaitTime, String moreInfo) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ActionExecuteException; /** * Fix a single alert. Method is "NotSupported" since all the alert fixes * may take longer than the transaction timeout. No need for a transaction * in this context. */ public void fixAlert(int sessionID, EscalationAlertType alertType, Integer alertID, String moreInfo) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ActionExecuteException; /** * Fix a batch of alerts. Method is "NotSupported" since all the alert fixes * may take longer than the transaction timeout. No need for a transaction * in this context. */ public void fixAlert(int sessionID, EscalationAlertType alertType, Integer alertID, String moreInfo, boolean fixAllPrevious) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ActionExecuteException; /** * Get the last fix if available */ public String getLastFix(int sessionID, Integer defId) throws SessionNotFoundException, SessionTimeoutException, PermissionException; /** * Get a maintenance event by group id */ public MaintenanceEvent getMaintenanceEvent(int sessionId, Integer groupId) throws SessionNotFoundException, SessionTimeoutException, PermissionException, SchedulerException; /** * Schedule a maintenance event */ public MaintenanceEvent scheduleMaintenanceEvent(int sessionId, MaintenanceEvent event) throws SessionNotFoundException, SessionTimeoutException, PermissionException, SchedulerException; /** * Schedule a maintenance event */ public void unscheduleMaintenanceEvent(int sessionId, MaintenanceEvent event)<|fim▁hole|> SchedulerException; }<|fim▁end|>
throws SessionNotFoundException, SessionTimeoutException, PermissionException,
<|file_name|>_tickvals.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__( self, plotly_name="tickvals", parent_name="sunburst.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), role=kwargs.pop("role", "data"),<|fim▁hole|><|fim▁end|>
**kwargs )
<|file_name|>webpackStatic.js<|end_file_name|><|fim▁begin|>"use strict";<|fim▁hole|> Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var STATIC_REG = /.*\.(png|jpe?g|gif|svg|woff2?|eot|ttf|otf)$/; var VER_REG = /[\W][\d\w]+(?=\.\w+$)/; var _default = function _default(req, res, next) { var filePaths = req.url.split('/'); if (STATIC_REG.test(req.path) && filePaths[2] === 'prd') { filePaths.splice(2, 1); req.url = filePaths.join('/').replace(VER_REG, ''); } next(); }; exports["default"] = _default;<|fim▁end|>
<|file_name|>wordfast.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2007 Zuza Software Foundation # # This file is part of translate. # # translate is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # translate is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with translate; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """Manage the Wordfast Translation Memory format Wordfast TM format is the Translation Memory format used by the U{Wordfast<http://www.wordfast.net/>} computer aided translation tool. It is a bilingual base class derived format with L{WordfastTMFile} and L{WordfastUnit} providing file and unit level access. Wordfast tools ============== Wordfast is a computer aided translation tool. It is an application built on top of Microsoft Word and is implemented as a rather sophisticated set of macros. Understanding that helps us understand many of the seemingly strange choices around this format including: encoding, escaping and file naming. Implementation ============== The implementation covers the full requirements of a Wordfast TM file. The files are simple Tab Separated Value (TSV) files that can be read by Microsoft Excel and other spreadsheet programs. They use the .txt extension which does make it more difficult to automatically identify such files. The dialect of the TSV files is specified by L{WordfastDialect}. Encoding -------- The files are UTF-16 or ISO-8859-1 (Latin1) encoded. These choices are most likely because Microsoft Word is the base editing tool for Wordfast. The format is tab separated so we are able to detect UTF-16 vs Latin-1 by searching for the occurance of a UTF-16 tab character and then continuing with the parsing. Timestamps ---------- L{WordfastTime} allows for the correct management of the Wordfast YYYYMMDD~HHMMSS timestamps. However, timestamps on individual units are not updated when edited. Header ------ L{WordfastHeader} provides header management support. The header functionality is fully implemented through observing the behaviour of the files in real use cases, input from the Wordfast programmers and public documentation. Escaping -------- Wordfast TM implements a form of escaping that covers two aspects: 1. Placeable: bold, formating, etc. These are left as is and ignored. It is up to the editor and future placeable implementation to manage these. 2. Escapes: items that may confuse Excel or translators are escaped as &'XX;. These are fully implemented and are converted to and from Unicode. By observing behaviour and reading documentation we where able to observe all possible escapes. Unfortunately the escaping differs slightly between Windows and Mac version. This might cause errors in future. Functions allow for L{conversion to Unicode<_wf_to_char>} and L{back to Wordfast escapes<_char_to_wf>}. Extended Attributes ------------------- The last 4 columns allow users to define and manage extended attributes. These are left as is and are not directly managed byour implemenation. """ import csv import sys import time from translate.storage import base WF_TIMEFORMAT = "%Y%m%d~%H%M%S" """Time format used by Wordfast""" WF_FIELDNAMES_HEADER = ["date", "userlist", "tucount", "src-lang", "version", "target-lang", "license", "attr1list", "attr2list", "attr3list", "attr4list", "attr5list"] """Field names for the Wordfast header""" WF_FIELDNAMES = ["date", "user", "reuse", "src-lang", "source", "target-lang", "target", "attr1", "attr2", "attr3", "attr4"] """Field names for a Wordfast TU""" WF_FIELDNAMES_HEADER_DEFAULTS = { "date": "%19000101~121212", "userlist": "%User ID,TT,TT Translate-Toolkit", "tucount": "%TU=00000001", "src-lang": "%EN-US", "version": "%Wordfast TM v.5.51w9/00", "target-lang": "", "license": "%---00000001", "attr1list": "", "attr2list": "", "attr3list": "", "attr4list": "" } """Default or minimum header entries for a Wordfast file""" # TODO Needs validation. The following need to be checked against a WF TM file to ensure # that the correct Unicode values have been chosen for the characters. For now these look # correct and have been taken from Windows CP1252 and Macintosh code points found for # the respective character sets on Linux. WF_ESCAPE_MAP = ( ("&'26;", u"\u0026"), # & - Ampersand (must be first to prevent escaping of escapes) ("&'82;", u"\u201A"), # ‚ - Single low-9 quotation mark ("&'85;", u"\u2026"), # … - Elippsis ("&'91;", u"\u2018"), # ‘ - left single quotation mark ("&'92;", u"\u2019"), # ’ - right single quotation mark ("&'93;", u"\u201C"), # “ - left double quotation mark ("&'94;", u"\u201D"), # ” - right double quotation mark ("&'96;", u"\u2013"), # – - en dash (validate) ("&'97;", u"\u2014"), # — - em dash (validate) ("&'99;", u"\u2122"), # ™ - Trade mark # Windows only<|fim▁hole|> ("&'BC;", u"\u00BC"), # ¼ ("&'BD;", u"\u00BD"), # ½ ("&'BE;", u"\u00BE"), # ¾ # Mac only ("&'A8;", u"\u00AE"), # ® - Registered ("&'AA;", u"\u2122"), # ™ - Trade mark ("&'C7;", u"\u00AB"), # « - Left-pointing double angle quotation mark ("&'C8;", u"\u00BB"), # » - Right-pointing double angle quotation mark ("&'C9;", u"\u2026"), # … - Horizontal Elippsis ("&'CA;", u"\u00A0"), #   - Non breaking space ("&'D0;", u"\u2013"), # – - en dash (validate) ("&'D1;", u"\u2014"), # — - em dash (validate) ("&'D2;", u"\u201C"), # “ - left double quotation mark ("&'D3;", u"\u201D"), # ” - right double quotation mark ("&'D4;", u"\u2018"), # ‘ - left single quotation mark ("&'D5;", u"\u2019"), # ’ - right single quotation mark ("&'E2;", u"\u201A"), # ‚ - Single low-9 quotation mark ("&'E3;", u"\u201E"), # „ - Double low-9 quotation mark # Other markers #("&'B;", u"\n"), # Soft-break - XXX creates a problem with roundtripping could also be represented by \u2028 ) """Mapping of Wordfast &'XX; escapes to correct Unicode characters""" TAB_UTF16 = "\x00\x09" """The tab \\t character as it would appear in UTF-16 encoding""" def _char_to_wf(string): """Char -> Wordfast &'XX; escapes Full roundtripping is not possible because of the escaping of NEWLINE \\n and TAB \\t""" # FIXME there is no platform check to ensure that we use Mac encodings when running on a Mac if string: for code, char in WF_ESCAPE_MAP: string = string.replace(char.encode('utf-8'), code) string = string.replace("\n", "\\n").replace("\t", "\\t") return string def _wf_to_char(string): """Wordfast &'XX; escapes -> Char""" if string: for code, char in WF_ESCAPE_MAP: string = string.replace(code, char.encode('utf-8')) string = string.replace("\\n", "\n").replace("\\t", "\t") return string class WordfastDialect(csv.Dialect): """Describe the properties of a Wordfast generated TAB-delimited file.""" delimiter = "\t" lineterminator = "\r\n" quoting = csv.QUOTE_NONE if sys.version_info < (2, 5, 0): # We need to define the following items for csv in Python < 2.5 quoting = csv.QUOTE_MINIMAL # Wordfast does not quote anything, since we escape # \t anyway in _char_to_wf this should not be a problem doublequote = False skipinitialspace = False escapechar = None quotechar = '"' csv.register_dialect("wordfast", WordfastDialect) class WordfastTime(object): """Manages time stamps in the Wordfast format of YYYYMMDD~hhmmss""" def __init__(self, newtime=None): self._time = None if not newtime: self.time = None elif isinstance(newtime, basestring): self.timestring = newtime elif isinstance(newtime, time.struct_time): self.time = newtime def get_timestring(self): """Get the time in the Wordfast time format""" if not self._time: return None else: return time.strftime(WF_TIMEFORMAT, self._time) def set_timestring(self, timestring): """Set the time_sturct object using a Wordfast time formated string @param timestring: A Wordfast time string (YYYMMDD~hhmmss) @type timestring: String """ self._time = time.strptime(timestring, WF_TIMEFORMAT) timestring = property(get_timestring, set_timestring) def get_time(self): """Get the time_struct object""" return self._time def set_time(self, newtime): """Set the time_struct object @param newtime: a new time object @type newtime: time.time_struct """ if newtime and isinstance(newtime, time.struct_time): self._time = newtime else: self._time = None time = property(get_time, set_time) def __str__(self): if not self.timestring: return "" else: return self.timestring class WordfastHeader(object): """A wordfast translation memory header""" def __init__(self, header=None): self._header_dict = [] if not header: self.header = self._create_default_header() elif isinstance(header, dict): self.header = header def _create_default_header(self): """Create a default Wordfast header with the date set to the current time""" defaultheader = WF_FIELDNAMES_HEADER_DEFAULTS defaultheader['date'] = '%%%s' % WordfastTime(time.localtime()).timestring return defaultheader def getheader(self): """Get the header dictionary""" return self._header_dict def setheader(self, newheader): self._header_dict = newheader header = property(getheader, setheader) def settargetlang(self, newlang): self._header_dict['target-lang'] = '%%%s' % newlang targetlang = property(None, settargetlang) def settucount(self, count): self._header_dict['tucount'] = '%%TU=%08d' % count tucount = property(None, settucount) class WordfastUnit(base.TranslationUnit): """A Wordfast translation memory unit""" def __init__(self, source=None): self._dict = {} if source: self.source = source super(WordfastUnit, self).__init__(source) def _update_timestamp(self): """Refresh the timestamp for the unit""" self._dict['date'] = WordfastTime(time.localtime()).timestring def getdict(self): """Get the dictionary of values for a Wordfast line""" return self._dict def setdict(self, newdict): """Set the dictionary of values for a Wordfast line @param newdict: a new dictionary with Wordfast line elements @type newdict: Dict """ # TODO First check that the values are OK self._dict = newdict dict = property(getdict, setdict) def _get_source_or_target(self, key): if self._dict.get(key, None) is None: return None elif self._dict[key]: return _wf_to_char(self._dict[key]).decode('utf-8') else: return "" def _set_source_or_target(self, key, newvalue): if newvalue is None: self._dict[key] = None if isinstance(newvalue, unicode): newvalue = newvalue.encode('utf-8') newvalue = _char_to_wf(newvalue) if not key in self._dict or newvalue != self._dict[key]: self._dict[key] = newvalue self._update_timestamp() def getsource(self): return self._get_source_or_target('source') def setsource(self, newsource): self._rich_source = None return self._set_source_or_target('source', newsource) source = property(getsource, setsource) def gettarget(self): return self._get_source_or_target('target') def settarget(self, newtarget): self._rich_target = None return self._set_source_or_target('target', newtarget) target = property(gettarget, settarget) def settargetlang(self, newlang): self._dict['target-lang'] = newlang targetlang = property(None, settargetlang) def __str__(self): return str(self._dict) def istranslated(self): if not self._dict.get('source', None): return False return bool(self._dict.get('target', None)) class WordfastTMFile(base.TranslationStore): """A Wordfast translation memory file""" Name = _("Wordfast Translation Memory") Mimetypes = ["application/x-wordfast"] Extensions = ["txt"] def __init__(self, inputfile=None, unitclass=WordfastUnit): """construct a Wordfast TM, optionally reading in from inputfile.""" self.UnitClass = unitclass base.TranslationStore.__init__(self, unitclass=unitclass) self.filename = '' self.header = WordfastHeader() self._encoding = 'iso-8859-1' if inputfile is not None: self.parse(inputfile) def parse(self, input): """parsese the given file or file source string""" if hasattr(input, 'name'): self.filename = input.name elif not getattr(self, 'filename', ''): self.filename = '' if hasattr(input, "read"): tmsrc = input.read() input.close() input = tmsrc if TAB_UTF16 in input.split("\n")[0]: self._encoding = 'utf-16' else: self._encoding = 'iso-8859-1' try: input = input.decode(self._encoding).encode('utf-8') except: raise ValueError("Wordfast files are either UTF-16 (UCS2) or ISO-8859-1 encoded") for header in csv.DictReader(input.split("\n")[:1], fieldnames=WF_FIELDNAMES_HEADER, dialect="wordfast"): self.header = WordfastHeader(header) lines = csv.DictReader(input.split("\n")[1:], fieldnames=WF_FIELDNAMES, dialect="wordfast") for line in lines: newunit = WordfastUnit() newunit.dict = line self.addunit(newunit) def __str__(self): output = csv.StringIO() header_output = csv.StringIO() writer = csv.DictWriter(output, fieldnames=WF_FIELDNAMES, dialect="wordfast") unit_count = 0 for unit in self.units: if unit.istranslated(): unit_count += 1 writer.writerow(unit.dict) if unit_count == 0: return "" output.reset() self.header.tucount = unit_count outheader = csv.DictWriter(header_output, fieldnames=WF_FIELDNAMES_HEADER, dialect="wordfast") outheader.writerow(self.header.header) header_output.reset() decoded = "".join(header_output.readlines() + output.readlines()).decode('utf-8') try: return decoded.encode(self._encoding) except UnicodeEncodeError: return decoded.encode('utf-16')<|fim▁end|>
("&'A0;", u"\u00A0"), #   - Non breaking space ("&'A9;", u"\u00A9"), # © - Copyright ("&'AE;", u"\u00AE"), # ® - Registered
<|file_name|>backend.memory.js<|end_file_name|><|fim▁begin|>this.recline = this.recline || {}; this.recline.Backend = this.recline.Backend || {}; this.recline.Backend.Memory = this.recline.Backend.Memory || {}; (function(my, recline) { "use strict"; my.__type__ = 'memory'; // private data - use either jQuery or Underscore Deferred depending on what is available var Deferred = (typeof jQuery !== "undefined" && jQuery.Deferred) || _.Deferred; // ## Data Wrapper // // Turn a simple array of JS objects into a mini data-store with // functionality like querying, faceting, updating (by ID) and deleting (by // ID). // // @param records list of hashes for each record/row in the data ({key: // value, key: value}) // @param fields (optional) list of field hashes (each hash defining a field // as per recline.Model.Field). If fields not specified they will be taken // from the data. my.Store = function(records, fields) { var self = this; this.records = records; // backwards compatability (in v0.5 records was named data) this.data = this.records; if (fields) { this.fields = fields; } else { if (records) { this.fields = _.map(records[0], function(value, key) { return {id: key, type: 'string'}; }); } } this.update = function(doc) { _.each(self.records, function(internalDoc, idx) { if(doc.id === internalDoc.id) { self.records[idx] = doc; } }); }; this.remove = function(doc) { var newdocs = _.reject(self.records, function(internalDoc) { return (doc.id === internalDoc.id); }); this.records = newdocs; }; this.save = function(changes, dataset) { var self = this; var dfd = new Deferred(); // TODO _.each(changes.creates) { ... } _.each(changes.updates, function(record) { self.update(record); }); _.each(changes.deletes, function(record) { self.remove(record); }); dfd.resolve(); return dfd.promise(); }, this.query = function(queryObj) { var dfd = new Deferred(); var numRows = queryObj.size || this.records.length; var start = queryObj.from || 0; var results = this.records; results = this._applyFilters(results, queryObj); results = this._applyFreeTextQuery(results, queryObj); // TODO: this is not complete sorting! // What's wrong is we sort on the *last* entry in the sort list if there are multiple sort criteria _.each(queryObj.sort, function(sortObj) { var fieldName = sortObj.field; results = _.sortBy(results, function(doc) { var _out = doc[fieldName]; return _out; }); if (sortObj.order == 'desc') { results.reverse(); } }); var facets = this.computeFacets(results, queryObj); var out = { total: results.length, hits: results.slice(start, start+numRows), facets: facets }; dfd.resolve(out); return dfd.promise(); }; // in place filtering this._applyFilters = function(results, queryObj) { var filters = queryObj.filters; // register filters var filterFunctions = { term : term, terms : terms, range : range, geo_distance : geo_distance }; var dataParsers = { integer: function (e) { return parseFloat(e, 10); }, 'float': function (e) { return parseFloat(e, 10); }, number: function (e) { return parseFloat(e, 10); }, string : function (e) { return e.toString(); }, date : function (e) { return moment(e).valueOf(); }, datetime : function (e) { return new Date(e).valueOf(); } }; var keyedFields = {}; _.each(self.fields, function(field) { keyedFields[field.id] = field; }); function getDataParser(filter) { var fieldType = keyedFields[filter.field].type || 'string'; return dataParsers[fieldType]; } // filter records return _.filter(results, function (record) { var passes = _.map(filters, function (filter) { return filterFunctions[filter.type](record, filter); }); // return only these records that pass all filters return _.all(passes, _.identity); }); // filters definitions function term(record, filter) { var parse = getDataParser(filter); var value = parse(record[filter.field]); var term = parse(filter.term); return (value === term); } function terms(record, filter) { var parse = getDataParser(filter); var value = parse(record[filter.field]); var terms = parse(filter.terms).split(","); return (_.indexOf(terms, value) >= 0); } function range(record, filter) { var fromnull = (_.isUndefined(filter.from) || filter.from === null || filter.from === ''); var tonull = (_.isUndefined(filter.to) || filter.to === null || filter.to === ''); var parse = getDataParser(filter); var value = parse(record[filter.field]); var from = parse(fromnull ? '' : filter.from); var to = parse(tonull ? '' : filter.to); // if at least one end of range is set do not allow '' to get through // note that for strings '' <= {any-character} e.g. '' <= 'a' if ((!fromnull || !tonull) && value === '') { return false; } return ((fromnull || value >= from) && (tonull || value <= to)); } function geo_distance() { // TODO code here } }; // we OR across fields but AND across terms in query string this._applyFreeTextQuery = function(results, queryObj) { if (queryObj.q) { var terms = queryObj.q.split(' '); var patterns=_.map(terms, function(term) { return new RegExp(term.toLowerCase()); }); results = _.filter(results, function(rawdoc) { var matches = true; _.each(patterns, function(pattern) { var foundmatch = false; _.each(self.fields, function(field) { var value = rawdoc[field.id]; if ((value !== null) && (value !== undefined)) { value = value.toString(); } else { // value can be null (apparently in some cases) value = ''; } // TODO regexes? foundmatch = foundmatch || (pattern.test(value.toLowerCase())); // TODO: early out (once we are true should break to spare unnecessary testing) // if (foundmatch) return true; }); matches = matches && foundmatch; // TODO: early out (once false should break to spare unnecessary testing) // if (!matches) return false; }); return matches; }); } return results; }; this.computeFacets = function(records, queryObj) { var facetResults = {}; if (!queryObj.facets) { return facetResults; } _.each(queryObj.facets, function(query, facetId) { // TODO: remove dependency on recline.Model facetResults[facetId] = new recline.Model.Facet({id: facetId}).toJSON(); facetResults[facetId].termsall = {}; }); // faceting _.each(records, function(doc) { _.each(queryObj.facets, function(query, facetId) { var fieldId = query.terms.field; var val = doc[fieldId]; var tmp = facetResults[facetId]; if (val) { tmp.termsall[val] = tmp.termsall[val] ? tmp.termsall[val] + 1 : 1; } else { tmp.missing = tmp.missing + 1; } }); }); _.each(queryObj.facets, function(query, facetId) { var tmp = facetResults[facetId]; var terms = _.map(tmp.termsall, function(count, term) { return { term: term, count: count }; }); tmp.terms = _.sortBy(terms, function(item) { // want descending order return -item.count;<|fim▁hole|> }; }; }(this.recline.Backend.Memory, this.recline));<|fim▁end|>
}); tmp.terms = tmp.terms.slice(0, 10); }); return facetResults;
<|file_name|>course_copy_csv.py<|end_file_name|><|fim▁begin|>import requests import csv from configparser import ConfigParser config = ConfigParser() config.read("config.cfg") token = config.get("auth", "token") domain = config.get("instance", "domain") headers = {"Authorization" : "Bearer %s" % token} source_course_id = 311693 csv_file = ""<|fim▁hole|>with open(csv_file, 'rb') as courses: coursesreader = csv.reader(courses) for course in coursesreader: uri = domain + "/api/v1/courses/sis_course_id:%s/content_migrations" % course r = requests.post(uri, headers=headers,data=payload) print r.status_code + " " + course<|fim▁end|>
payload = {'migration_type': 'course_copy_importer', 'settings[source_course_id]': source_course_id}
<|file_name|>001_add_initial_tables.py<|end_file_name|><|fim▁begin|># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack Foundation # # 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. import sqlalchemy as sql def upgrade(migrate_engine): # Upgrade operations go here. Don't create your own engine; bind # migrate_engine to your metadata meta = sql.MetaData() meta.bind = migrate_engine # catalog service_table = sql.Table( 'service', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('type', sql.String(255)), sql.Column('extra', sql.Text())) service_table.create(migrate_engine, checkfirst=True) endpoint_table = sql.Table( 'endpoint', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('region', sql.String(255)), sql.Column('service_id', sql.String(64), sql.ForeignKey('service.id'), nullable=False), sql.Column('extra', sql.Text())) endpoint_table.create(migrate_engine, checkfirst=True) # identity role_table = sql.Table( 'role', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('name', sql.String(255), unique=True, nullable=False)) role_table.create(migrate_engine, checkfirst=True) if migrate_engine.name == 'ibm_db_sa': # NOTE(blk-u): SQLAlchemy for PostgreSQL picks the name tenant_name_key # for the unique constraint, but for DB2 doesn't give the UC a name # unless we tell it to and there is no DDL to alter a column to drop # an unnamed unique constraint, so this code creates a named unique # constraint on the name column rather than an unnamed one. # (This is used in migration 16.) tenant_table = sql.Table( 'tenant', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('name', sql.String(64), nullable=False), sql.Column('extra', sql.Text()), sql.UniqueConstraint('name', name='tenant_name_key')) else: tenant_table = sql.Table( 'tenant', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('name', sql.String(64), unique=True, nullable=False), sql.Column('extra', sql.Text())) tenant_table.create(migrate_engine, checkfirst=True) metadata_table = sql.Table( 'metadata', meta, sql.Column('user_id', sql.String(64), primary_key=True), sql.Column('tenant_id', sql.String(64), primary_key=True), sql.Column('data', sql.Text())) metadata_table.create(migrate_engine, checkfirst=True) ec2_credential_table = sql.Table( 'ec2_credential', meta, sql.Column('access', sql.String(64), primary_key=True), sql.Column('secret', sql.String(64)), sql.Column('user_id', sql.String(64)), sql.Column('tenant_id', sql.String(64))) ec2_credential_table.create(migrate_engine, checkfirst=True) if migrate_engine.name == 'ibm_db_sa': # NOTE(blk-u): SQLAlchemy for PostgreSQL picks the name user_name_key # for the unique constraint, but for DB2 doesn't give the UC a name # unless we tell it to and there is no DDL to alter a column to drop # an unnamed unique constraint, so this code creates a named unique # constraint on the name column rather than an unnamed one. # (This is used in migration 16.) user_table = sql.Table( 'user', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('name', sql.String(64), nullable=False), sql.Column('extra', sql.Text()), sql.UniqueConstraint('name', name='user_name_key')) else: user_table = sql.Table( 'user', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('name', sql.String(64), unique=True, nullable=False), sql.Column('extra', sql.Text())) user_table.create(migrate_engine, checkfirst=True) user_tenant_membership_table = sql.Table( 'user_tenant_membership', meta, sql.Column( 'user_id', sql.String(64), sql.ForeignKey('user.id'), primary_key=True),<|fim▁hole|> sql.Column( 'tenant_id', sql.String(64), sql.ForeignKey('tenant.id'), primary_key=True)) user_tenant_membership_table.create(migrate_engine, checkfirst=True) # token token_table = sql.Table( 'token', meta, sql.Column('id', sql.String(64), primary_key=True), sql.Column('expires', sql.DateTime()), sql.Column('extra', sql.Text())) token_table.create(migrate_engine, checkfirst=True) def downgrade(migrate_engine): # Operations to reverse the above upgrade go here. meta = sql.MetaData() meta.bind = migrate_engine tables = ['user_tenant_membership', 'token', 'user', 'tenant', 'role', 'metadata', 'ec2_credential', 'endpoint', 'service'] for t in tables: table = sql.Table(t, meta, autoload=True) table.drop(migrate_engine, checkfirst=True)<|fim▁end|>
<|file_name|>b.py<|end_file_name|><|fim▁begin|>from font import font from qt import QFont class b( font ): """<|fim▁hole|> <p> <b>Properties:</b> <br> See <a href="font.html">&lt;font&gt;</a> for properties. """ def __init__( self, *args ): """ Initiate the container, contents, and properties. -*args, arguments for the for constructor. """ apply( font.__init__, (self,) + args ) self.setWeight( QFont.Bold ) def getHtml( self ): """ Get the HTML associated with this object. Returns a list of html strings, with each entry being a line in a html file. """ return [ "<b>" ] + font.getHtml( self ) + [ "</b>" ]<|fim▁end|>
&lt;b&gt; makes text bold.
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup file for youtube_podcaster. This file was generated with PyScaffold 2.4.2, a tool that easily puts up a scaffold for your new Python project. Learn more under: http://pyscaffold.readthedocs.org/ """ import sys from setuptools import setup<|fim▁hole|> sphinx = ['sphinx'] if needs_sphinx else [] setup(setup_requires=['six', 'pyscaffold>=2.4rc1,<2.5a0'] + sphinx, tests_require=['pytest_cov', 'pytest'], use_pyscaffold=True) if __name__ == "__main__": setup_package()<|fim▁end|>
def setup_package(): needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
<|file_name|>Main.java<|end_file_name|><|fim▁begin|>/** * Problem 10.1 CTCI Sorted Merge * * You are given two sorted arrays, a and b, where a has a large enough buffer at the end to hold * b. Write a method to merge b into a in sorted order. * * Examples: * * a: 2, 7, 22, 44, 56, 88, 456, 5589 * b: 1, 4, 9, 23, 99, 1200 * * Result: * * result: 1, 2, 4, 7, 9, 22, 23, 44, 56, 88, 99, 456, 1200, 5589 * * Analysis: * * The merge is probably most effective if the values are inserted into the buffer starting with * the end of the input arrays. * * a == a0, a1, a2, ..., ai, ... an i.e. i is range 0..n * b == b0, b1, b2, ..., bj, ... bm i.e. j is range 0..m * * Algorithm:<|fim▁hole|> * result. * * 2) Decrement the running index for each array contributing to the result on this iteration. * * 3) Repeat until the b running index (j) is 0 (all of b have been added to a). * * i = n; * j = m; * while j >= 0 do * if i < 0 * then * a[j] = b[j] * else if a[i] > b[j] * then * a[i+j+1] = a[i--] * else if b[j] > a[i] * a[i+j] = b[j--] * else * a[i+j] = b[j--] * a[i+j] = a[i--] */ import java.util.Arrays; import java.util.Locale; public class Main { /** Run the program using the command line arguments. */ public static void main(String[] args) { // Define a and b. int[] a = new int[]{2, 7, 22, 44, 56, 88, 456, 5589}; int[] b = new int[]{1, 4, 9, 23, 99, 1200}; int[] result = smerge(a, b); String format = "Result: %s"; System.out.println(String.format(Locale.US, format, Arrays.toString(result))); } /** Return the given value in the given base. */ private static int[] smerge(final int[] a, final int[] b) { final int N = a.length; final int M = b.length; int [] result = new int[N + M]; System.arraycopy(a, 0, result, 0, N); int i = N - 1; int j = M - 1; while (j >= 0) { if (i < 0) result[j] = b[j--]; else if (a[i] > b[j]) result[i + j + 1] = a[i--]; else if (b[j] > a[i]) result[i + j + 1] = b[j--]; else { result[i + j + 1] = a[i--]; result[i + j + 1] = b[j--]; } } return result; } }<|fim▁end|>
* * 1) Starting at the end of the arrays, compare (a, b) each descending element and place the larger * at the end of the result array (a). If the values are identical, put both elements into the
<|file_name|>GetWebPage.py<|end_file_name|><|fim▁begin|>from urllib.request import urlopen for line in urlopen('https://secure.ecs.soton.ac.uk/status/'): line = line.decode('utf-8') # Decoding the binary data to text. if 'Core Priority Devices' in line: #look for 'Core Priority Devices' To find the line of text with the list of issues linesIWant = line.split('Priority Devices')[2].split("<tr") linesIWant.pop() linesIWant.pop(0) issues=[] for f in linesIWant: if not 'border: 0px' in f: if 'machine' in f: machineName=f.split('<b>')[1].split('</b>')[0] if 'state_2' in f: service=f.split('<td>')[2].split('</td>')[0] problem=f.split('<td>')[3].split('</td>')[0] issues.append(service+','+machineName+','+problem+'\n') elif 'state_2' in f: service=f.split('<td>')[1].split('</td>')[0]<|fim▁hole|> problem=f.split('<td>')[2].split('</td>')[0] issues.append(service+','+machineName+','+problem+'\n') logfile=open('newlog.txt','w') logfile.writelines(issues) logfile.close()<|fim▁end|>
<|file_name|>live.js<|end_file_name|><|fim▁begin|>window.chartColors = { red: 'rgb(255, 99, 132)', orange: 'rgb(255, 159, 64)', yellow: 'rgb(255, 205, 86)', green: 'rgb(75, 192, 192)', blue: 'rgb(54, 162, 235)', purple: 'rgb(153, 102, 255)', grey: 'rgb(231,233,237)' }; ES.WidgetLive = ES.Widget.extend({ init: function() { var me = this, idInstance = ES.getActiveInstanceId(); me._super('widget-livedata'); var $component = $('#'+ me.cssId); $component.find('.widget-body').append('<canvas id="testChart"></canvas>'); var config = { type: 'line', data: { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [{ label: "My First dataset", backgroundColor: window.chartColors.red, borderColor: window.chartColors.red, data: [ 10, 2, 5, 7, 2, 1, 8 ], fill: false }, { label: "My Second dataset", fill: false, backgroundColor: window.chartColors.blue, borderColor: window.chartColors.blue, data: [ 10, 6, 6, 7, 2, 7, 8 ] }] }, options: { responsive: true, maintainAspectRatio: false, title:{ display:true, text:'Chart.js Line Chart' }, tooltips: { mode: 'index', intersect: false }, hover: { mode: 'nearest', intersect: true }, scales: { xAxes: [{ display: true, scaleLabel: { display: true, labelString: 'Month' }<|fim▁hole|> }], yAxes: [{ display: true, scaleLabel: { display: true, labelString: 'Value' } }] } } }; window.myLine = new Chart($("#testChart"), config); //ES.ajax({ // url: BASE_URL + "api/instances/"+ idInstance +"/data", // success: function(data) { // debugger; // } //}); } // var me = this; // me._super('widget-live'); // // setInterval(function() { // me.requestChartData() // }, 120000); // // this.temperatureChart = new Highcharts.Chart({ // chart: { // renderTo: 'temperatureChart', // marginTop: 50, // height: 320, // defaultSeriesType: 'spline' // }, credits: { // enabled: false // }, // title: { // text: '' // }, // exporting: { // enabled: false // }, // legend: { // verticalAlign: 'top' // }, // scrollbar: { // enabled: roomTemperatureData.length > 10 // }, // xAxis: { // type: 'datetime', // min: roomTemperatureData.length > 10 ? roomTemperatureData[roomTemperatureData.length - 11].x : null, // max: roomTemperatureData.length > 10 ? roomTemperatureData[roomTemperatureData.length -1].x : null // }, // yAxis: { // minPadding: 0.2, // maxPadding: 0.2, // minRange: 0.5, // title: { // text: I18n.valueInCelsius, // margin: 25 // }, // plotBands: [{ // Cold // from: 0, // to: 18, // color: 'rgba(68, 170, 213, 0.1)', // label: { // text: I18n.cold, // style: { // color: '#606060' // } // } // }, { // Hot // from: 35, // to: 60, // color: 'rgba(191, 11, 35, 0.1)', // label: { // text: I18n.hot, // style: { // color: '#606060' // } // } // }] // }, // series: [{ // name: I18n.roomTemperature + ' (°C)', // color: '#BF0B23', // dashStyle: 'ShortDash', // data: roomTemperatureData // },{ // name: I18n.tankTemperature + '(°C)', // color: '#0066FF', // dashStyle: 'ShortDash', // data: tankTemperatureData // }] // }); // // this.humidityChart = new Highcharts.Chart({ // chart: { // renderTo: 'humidityChart', // marginTop: 50, // height: 320, // defaultSeriesType: 'spline' // }, // credits: { // enabled: false // }, // title: { // text: '' // }, // exporting: { // enabled: false // }, // legend: { // verticalAlign: 'top' // }, // scrollbar: { // enabled: humidityData.length > 10 // }, // xAxis: { // type: 'datetime', // min: humidityData.length > 10 ? humidityData[humidityData.length - 11].x : null, // max: humidityData.length > 10 ? humidityData[humidityData.length -1].x : null // }, // yAxis: { // minPadding: 0.5, // maxPadding: 0.5, // minRange: 5, // max: 100, // min: 0, // title: { // text: I18n.valueInPercent, // margin: 25 // }, // plotBands: [{ // Low // from: 0, // to: 20, // color: 'rgba(191, 11, 35, 0.1)', // label: { // text: I18n.low, // style: { // color: '#606060' // } // } // }, { // High // from: 50, // to: 100, // color: 'rgba(68, 170, 213, 0.1)', // label: { // text: I18n.high, // style: { // color: '#606060' // } // } // }] // }, // series: [{ // name: I18n.humidityPercent, // color: '#44aad5', // dashStyle: 'ShortDash', // data: humidityData // }] // }); //}, //requestChartData: function() { // var me = this; // $.ajax({ // url: BASE_URL + 'ajax/chartLiveData/' + ES.getActiveInstanceId(), // cache: false, // dataType: "json", // success: function(point) { // /*if(point.roomTemperature.length > 0 && // temperatureChart.series[0].data.length > 0 && // temperatureChart.series[0].data[temperatureChart.series[0].data.length-1].x != point.roomTemperature[0]) { // var series = temperatureChart.series[0], // shift = series.data.length > 40; // // temperatureChart.series[0].addPoint(eval(point.roomTemperature), true, shift); // }*/ // // me.addChartData(point.roomTemperature, me.temperatureChart.series[0]); // // /*if(point.tankTemperature.length > 0 && // temperatureChart.series[1].data.length > 0 && // temperatureChart.series[1].data[temperatureChart.series[1].data.length-1].x != point.tankTemperature[0]) { // var series = temperatureChart.series[1], // shift = series.data.length > 40; // // temperatureChart.series[1].addPoint(eval(point.tankTemperature), true, shift); // }*/ // // me.addChartData(point.tankTemperature, me.temperatureChart.series[1]); // } // }); //}, //addChartData: function(data, chartSerie) { // if(data.length > 0 && // chartSerie.data.length > 0 && // chartSerie.data[chartSerie.data.length-1].x != data[0]) { // var shift = chartSerie.data.length > 80; // // chartSerie.addPoint(eval(data), true, shift); // } //} });<|fim▁end|>
<|file_name|>basic.py<|end_file_name|><|fim▁begin|>"""A basic implementation of a Neural Network by following the tutorial by Andrew Trask http://iamtrask.github.io/2015/07/12/basic-python-network/ """ import numpy as np # sigmoid function def nonlin(x, deriv=False): if deriv==True: return x * (1-x) return 1 / (1 + np.exp(-x)) # input dataset x = np.array([[0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) # output dataset y = np.array([[0, 0, 1, 1]]).T # seed random numbers to make calculation<|fim▁hole|> # initialize weights randomly with mean 0 syn0 = 2*np.random.random((3, 1)) - 1 for i in xrange(10000): # forward propagation l0 = x l1 = nonlin(np.dot(l0, syn0)) print l1 break # how much did we miss l1_error = y - l1 # multiply how much we missed by the # slope of the sigmoid at the values in l1 l1_delta = l1_error * nonlin(l1, True) # update weights syn0 += np.dot(l0.T, l1_delta) print 'Output after training:' print l1<|fim▁end|>
# deterministic (good practice) np.random.seed(1)
<|file_name|>wikiLink.spec.ts<|end_file_name|><|fim▁begin|>import Markdown from 'markdown-it' import { wikiLinkInit } from './index' describe('wikiLink', () => { let md: Markdown = undefined<|fim▁hole|> afterEach(() => (md = undefined)) it('should gerenare wiki link tag', () => { const actual = md?.render('~[link-name](12345abcdef)').trim() const expected = '<p><a href="#12345abcdef" class="wiki-link" title="link-name">link-name</a></p>' expect(actual).toEqual(expected) }) })<|fim▁end|>
beforeEach(() => (md = new Markdown({}).use(wikiLinkInit())))
<|file_name|>compile_OgreMain_1.cpp<|end_file_name|><|fim▁begin|>#include "src/OgreExternalTextureSourceManager.cpp" #include "src/OgreFileSystem.cpp" #include "src/OgreFont.cpp" #include "src/OgreFontManager.cpp" #include "src/OgreFrustum.cpp" #include "src/OgreGpuProgram.cpp" #include "src/OgreGpuProgramManager.cpp" #include "src/OgreGpuProgramParams.cpp" #include "src/OgreGpuProgramUsage.cpp" #include "src/OgreHardwareBufferManager.cpp" #include "src/OgreHardwareIndexBuffer.cpp" #include "src/OgreHardwareOcclusionQuery.cpp" #include "src/OgreHardwarePixelBuffer.cpp" #include "src/OgreHardwareVertexBuffer.cpp" #include "src/OgreHighLevelGpuProgram.cpp" #include "src/OgreHighLevelGpuProgramManager.cpp" #include "src/OgreImage.cpp" #include "src/OgreInstanceBatch.cpp" #include "src/OgreInstanceBatchHW.cpp" #include "src/OgreInstanceBatchHW_VTF.cpp" #include "src/OgreInstanceBatchShader.cpp" #include "src/OgreInstanceBatchVTF.cpp" #include "src/OgreInstancedGeometry.cpp" #include "src/OgreInstancedEntity.cpp" #include "src/OgreInstanceManager.cpp" #include "src/OgreKeyFrame.cpp" #include "src/OgreLight.cpp" #include "src/OgreLodStrategy.cpp" #include "src/OgreLodStrategyManager.cpp" #include "src/OgreLog.cpp" #include "src/OgreLogManager.cpp" #include "src/OgreManualObject.cpp"<|fim▁hole|>#include "src/OgreMaterialManager.cpp" #include "src/OgreMaterialSerializer.cpp" #include "src/OgreMath.cpp" #include "src/OgreMatrix3.cpp" #include "src/OgreMatrix4.cpp" #include "src/OgreMemoryAllocatedObject.cpp" #include "src/OgreMemoryNedAlloc.cpp"<|fim▁end|>
#include "src/OgreMaterial.cpp"
<|file_name|>check.py<|end_file_name|><|fim▁begin|>#-*- coding:utf-8 -*- from findbilibili import * #funtion name [checkinfo]<|fim▁hole|>#param array 抓取的文字 #return string 回答 def checkinfo2(content): content[1] = content[1].decode('gbk') key = content[1].encode('utf-8') if key == '节操': return '这种东西早就没有了' result = animation(key) #搜动漫 return result #funtion name [animation] #搜索动漫 #param array 动漫名字 #return string 最后更新网址 def animation(name): url = bilibili(name) try: result = 'bilibili最后更新:第'+url[-1][0]+'集'+url[-1][1] return result except IndexError: return '什么都找不到!'<|fim▁end|>
#判断要输出的回答
<|file_name|>_customdatasrc.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators <|fim▁hole|> plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs )<|fim▁end|>
class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="customdatasrc", parent_name="scatter", **kwargs): super(CustomdatasrcValidator, self).__init__(
<|file_name|>amicreation.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from __future__ import print_function import boto3 import time from botocore.exceptions import ClientError from datetime import datetime def get_unix_timestamp(): """ Generate a Unix timestamp string. """ d = datetime.now() t = time.mktime(d.timetuple()) return str(int(t)) def lambda_handler(event, context): """ Create EBS AMI for instances identified by the filter. """ if not 'DryRun' in event:<|fim▁hole|> event['Filters'] = [{ 'Name': 'tag-key', 'Values': ['ops:snapshot'] }] ec2 = boto3.resource('ec2') # Iterate through instances identified by the filter. for instance in ec2.instances.filter(Filters=event['Filters']): instance_name = instance.instance_id instance_tags = [] # If a Name tag is available, use it to identify the instance # instead of the instance_id. for tag in instance.tags: if tag['Key'] == 'Name' and tag['Value'] != '': instance_name = tag['Value'] else: instance_tags.append(tag) try: # Create the AMI image_name = instance_name + '-' + get_unix_timestamp() image = instance.create_image( Name=image_name, NoReboot=True, DryRun=event['DryRun'] ) print('Started image creation: ' + image_name) image_tags = [{'Key': 'ops:retention', 'Value': '30'}] + instance_tags image.create_tags( Tags=image_tags, DryRun=event['DryRun'] ) except ClientError as e: if e.response['Error']['Code'] == 'DryRunOperation': pass<|fim▁end|>
event['DryRun'] = False if not 'Filters' in event:
<|file_name|>fclass.rs<|end_file_name|><|fim▁begin|>use std::{borrow::Cow, io::Write}; use log::debug; use petgraph::Direction; use proc_macro2::{Span, TokenStream}; use quote::{quote, ToTokens}; use rustc_hash::FxHashSet; use smol_str::SmolStr; use syn::{spanned::Spanned, Ident, Type}; use crate::{ cpp::{ c_func_name, cpp_code, do_c_func_name, map_type::map_type, CppContext, CppForeignMethodSignature, CppForeignTypeInfo, MethodContext, }, error::{panic_on_syn_error, DiagnosticError, Result}, extension::extend_foreign_class, file_cache::FileWriteCache, namegen::new_unique_name, typemap::{ ast::{list_lifetimes, strip_lifetimes}, ty::RustType, utils::{ convert_to_heap_pointer, create_suitable_types_for_constructor_and_self, foreign_from_rust_convert_method_output, foreign_to_rust_convert_method_inputs, unpack_from_heap_pointer, }, ForeignTypeInfo, TypeConvCodeSubstParam, TypeMap, FROM_VAR_TEMPLATE, TO_VAR_TEMPLATE, TO_VAR_TYPE_TEMPLATE, }, types::{ForeignClassInfo, MethodAccess, MethodVariant, SelfTypeVariant}, KNOWN_CLASS_DERIVES, PLAIN_CLASS, SMART_PTR_COPY_TRAIT, WRITE_TO_MEM_FAILED_MSG, }; pub(in crate::cpp) fn generate(ctx: &mut CppContext, class: &ForeignClassInfo) -> Result<()> { debug!( "generate: begin for {}, this_type_for_method {:?}", class.name, class.self_desc ); let has_methods = class.methods.iter().any(|m| match m.variant { MethodVariant::Method(_) => true, _ => false, }); let has_constructor = class .methods .iter() .any(|m| m.variant == MethodVariant::Constructor); if has_methods && !has_constructor { return Err(DiagnosticError::new( class.src_id, class.span(), format!( "namespace {}, class {}: has methods, but no constructor\n May be you need to use `private constructor = empty;` syntax?", ctx.cfg.namespace_name, class.name ), )); } let mut m_sigs = find_suitable_foreign_types_for_methods(ctx, class)?; let mut req_includes = cpp_code::cpp_list_required_includes(&mut m_sigs); let my_self_cpp = format!("\"{}\"", cpp_code::cpp_header_name(class)); let my_self_c = format!("\"{}\"", cpp_code::c_header_name(class)); req_includes.retain(|el| *el != my_self_cpp && *el != my_self_c); do_generate(ctx, class, &req_includes, &m_sigs)?; Ok(()) } fn do_generate( ctx: &mut CppContext, class: &ForeignClassInfo, req_includes: &[SmolStr], methods_sign: &[CppForeignMethodSignature], ) -> Result<()> { use std::fmt::Write; let c_path = ctx.cfg.output_dir.join(cpp_code::c_header_name(class)); let mut c_include_f = FileWriteCache::new(&c_path, ctx.generated_foreign_files); let cpp_path = ctx.cfg.output_dir.join(cpp_code::cpp_header_name(class)); let mut cpp_include_f = FileWriteCache::new(&cpp_path, ctx.generated_foreign_files); let cpp_fwd_path = ctx.cfg.output_dir.join(format!("{}_fwd.hpp", class.name)); let mut cpp_fwd_f = FileWriteCache::new(&cpp_fwd_path, ctx.generated_foreign_files); macro_rules! map_write_err { ($file_path:ident) => { |err| { DiagnosticError::new( class.src_id, class.span(), format!("write to {} failed: {}", $file_path.display(), err), ) } }; } let c_class_type = cpp_code::c_class_type(class); let class_doc_comments = cpp_code::doc_comments_to_c_comments(&class.doc_comments, true); generte_c_header_preamble(ctx, &class_doc_comments, &c_class_type, &mut c_include_f); let plain_class = need_plain_class(class); let class_name = if !plain_class { format!("{}Wrapper", class.name) } else { class.name.to_string() }; let static_only = class .methods .iter() .all(|x| x.variant == MethodVariant::StaticMethod); generate_cpp_header_preamble( ctx, class, &class_name, &class_doc_comments, req_includes, static_only, &c_class_type, &mut c_include_f, &mut cpp_include_f, )?; let mut last_cpp_access = Some("public"); let dummy_ty = parse_type! { () }; let dummy_rust_ty = ctx.conv_map.find_or_alloc_rust_type_no_src_id(&dummy_ty); let (this_type_for_method, code_box_this) = if let Some(this_type) = class.self_desc.as_ref().map(|x| &x.constructor_ret_type) { let this_type = ctx.conv_map.ty_to_rust_type(this_type); let (this_type_for_method, code_box_this) = convert_to_heap_pointer(ctx.conv_map, &this_type, "this"); let lifetimes = list_lifetimes(&this_type.ty); let unpack_code = unpack_from_heap_pointer(&this_type, TO_VAR_TEMPLATE, true); let class_name = &this_type.ty; let unpack_code = unpack_code.replace(TO_VAR_TEMPLATE, "p"); let unpack_code: TokenStream = syn::parse_str(&unpack_code).unwrap_or_else(|err| { panic_on_syn_error("internal/c++ foreign class unpack code", unpack_code, err) }); let this_type_for_method_ty = this_type_for_method.to_type_without_lifetimes(); let fclass_impl_code: TokenStream = quote! { impl<#(#lifetimes),*> SwigForeignClass for #class_name { fn c_class_name() -> *const ::std::os::raw::c_char { swig_c_str!(stringify!(#class_name)) } fn box_object(this: Self) -> *mut ::std::os::raw::c_void { #code_box_this this as *mut ::std::os::raw::c_void } fn unbox_object(p: *mut ::std::os::raw::c_void) -> Self { let p = p as *mut #this_type_for_method_ty; #unpack_code p } } }; ctx.rust_code.push(fclass_impl_code); (this_type_for_method, code_box_this) } else { (dummy_rust_ty, TokenStream::new()) }; let no_this_info = || { DiagnosticError::new( class.src_id, class.span(), format!( "Class {} has methods, but there is no constructor\n May be you need to use `private constructor = empty;` syntax?", class.name, ), ) }; let mut need_destructor = false; //because of VC++ has problem with cross-references of types let mut inline_impl = String::new(); for (method, f_method) in class.methods.iter().zip(methods_sign) { c_include_f .write_all(cpp_code::doc_comments_to_c_comments(&method.doc_comments, false).as_bytes()) .expect(WRITE_TO_MEM_FAILED_MSG); let method_access = match method.access { MethodAccess::Private => "private", MethodAccess::Public => "public", MethodAccess::Protected => "protected", }; if last_cpp_access .map(|last| last != method_access) .unwrap_or(true) { writeln!(cpp_include_f, "{}:", method_access).expect(WRITE_TO_MEM_FAILED_MSG); } last_cpp_access = Some(method_access); cpp_include_f .write_all(cpp_code::doc_comments_to_c_comments(&method.doc_comments, false).as_bytes()) .expect(WRITE_TO_MEM_FAILED_MSG); let c_func_name = c_func_name(class, method); let c_args_with_types = cpp_code::c_generate_args_with_types(f_method, method.arg_names_without_self(), false); let comma_c_args_with_types = if c_args_with_types.is_empty() { String::new() } else { format!(", {}", c_args_with_types) }; let have_args_except_self = if let MethodVariant::Method(_) = method.variant { method.fn_decl.inputs.len() > 1 } else { !method.fn_decl.inputs.is_empty() }; let mut known_names: FxHashSet<SmolStr> = method.arg_names_without_self().map(|x| x.into()).collect(); if let MethodVariant::Method(_) = method.variant { if known_names.contains("this") { return Err(DiagnosticError::new( class.src_id, method.rust_id.span(), "Invalid argument name 'this' reserved for generate code purposes", )); } known_names.insert("this".into()); } let ret_name = new_unique_name(&known_names, "ret"); known_names.insert(ret_name.clone()); let conv_ret = new_unique_name(&known_names, "conv_ret"); known_names.insert(conv_ret.clone()); let cpp_args_with_types = cpp_code::cpp_generate_args_with_types(f_method, method.arg_names_without_self()); let (conv_args_code, cpp_args_for_c) = cpp_code::convert_args(f_method, &mut known_names, method.arg_names_without_self())?; let real_output_typename: Cow<str> = match method.fn_decl.output { syn::ReturnType::Default => Cow::Borrowed("()"), syn::ReturnType::Type(_, ref t) => { let mut ty: syn::Type = (**t).clone(); strip_lifetimes(&mut ty); ty.into_token_stream().to_string().into() } }; let mut rust_args_with_types = String::new(); let mut input_to_output_arg: Option<(&CppForeignTypeInfo, &str)> = None; for (f_type_info, arg_name) in f_method.input.iter().zip(method.arg_names_without_self()) { if f_type_info.input_to_output { if method.variant == MethodVariant::Constructor { return Err(DiagnosticError::new( class.src_id, method.rust_id.span(), "constructor has argument with 'intput_to_output' tag, but constructor can not return", )); } if input_to_output_arg.is_some() { return Err(DiagnosticError::new( class.src_id, method.rust_id.span(), "method has two arguments with 'intput_to_output' tag", )); } if method.fn_decl.output != syn::ReturnType::Default { return Err(DiagnosticError::new( class.src_id, method.rust_id.span(), "method has argument with 'intput_to_output' tag, but return type not '()'", )); } input_to_output_arg = Some((f_type_info, arg_name)); } write!( &mut rust_args_with_types, "{}: {}, ", arg_name, f_type_info.as_ref().correspoding_rust_type.typename(), ) .expect(WRITE_TO_MEM_FAILED_MSG); } let method_ctx = MethodContext { class, method, f_method, c_func_name: &c_func_name, decl_func_args: &rust_args_with_types, real_output_typename: &real_output_typename, ret_name: &ret_name, }; let method_name = method.short_name().as_str().to_string(); let f_output_type = if let Some((ref input_to_output_arg, _)) = input_to_output_arg { input_to_output_arg } else { &f_method.output }; let (cpp_ret_type, convert_ret_for_cpp) = match f_output_type.cpp_converter.as_ref() { Some(cpp_converter) => { let cpp_ret_type = cpp_converter.typename.clone(); if input_to_output_arg.is_none() { let conv_code = cpp_converter .converter .generate_code_with_subst_func(|param_name| match param_name { TypeConvCodeSubstParam::Name(name) => { if name == FROM_VAR_TEMPLATE { Some(Cow::Borrowed(&ret_name)) } else if name == TO_VAR_TYPE_TEMPLATE { Some(format!("{} {}", cpp_ret_type, conv_ret).into()) } else if name == TO_VAR_TEMPLATE { Some(Cow::Borrowed(&conv_ret)) } else { None } } TypeConvCodeSubstParam::Tmp(name_template) => { let tmp_name = new_unique_name(&known_names, name_template); let tmp_name_ret = tmp_name.to_string().into(); known_names.insert(tmp_name); Some(tmp_name_ret) } })?; if cpp_converter.converter.has_param(TO_VAR_TYPE_TEMPLATE) { ( cpp_ret_type, format!("{}\n return {};", conv_code, conv_ret), ) } else { (cpp_ret_type, format!(" return {};", conv_code)) } } else { (cpp_ret_type, format!(" return {};", ret_name)) } } None => ( f_output_type.as_ref().name.clone(), format!(" return {};", ret_name), ), }; //rename types like "struct Foo" to "Foo" to make VC++ compiler happy let cpp_ret_type = cpp_ret_type.display().replace("struct", ""); let input_to_output_ret_code = if let Some((_, ref arg_name)) = input_to_output_arg { format!( r#" return {}; "#, arg_name ) } else { String::new() }; match method.variant { MethodVariant::StaticMethod => { writeln!( c_include_f, r#" {ret_type} {c_func_name}({args_with_types});"#, ret_type = f_method.output.as_ref().name, c_func_name = c_func_name, args_with_types = c_args_with_types, ) .expect(WRITE_TO_MEM_FAILED_MSG); writeln!( cpp_include_f, r#" static {cpp_ret_type} {method_name}({cpp_args_with_types}) noexcept;"#, method_name = method_name, cpp_ret_type = cpp_ret_type, cpp_args_with_types = cpp_args_with_types, ) .expect(WRITE_TO_MEM_FAILED_MSG); if !plain_class { write!( &mut inline_impl, r#" template<bool OWN_DATA> inline {cpp_ret_type} {class_name}<OWN_DATA>::{method_name}({cpp_args_with_types}) noexcept {{ {conv_args_code}"#, cpp_ret_type = cpp_ret_type, class_name = class_name, method_name = method_name, cpp_args_with_types = cpp_args_with_types, conv_args_code = conv_args_code, ) } else { write!( &mut inline_impl, r#" inline {cpp_ret_type} {class_name}::{method_name}({cpp_args_with_types}) noexcept {{ {conv_args_code}"#, cpp_ret_type = cpp_ret_type, class_name = class_name, method_name = method_name, cpp_args_with_types = cpp_args_with_types, conv_args_code = conv_args_code, ) } .expect(WRITE_TO_MEM_FAILED_MSG); if f_method.output.as_ref().name.display() != "void" { writeln!( &mut inline_impl, r#" {c_ret_type} {ret} = {c_func_name}({cpp_args_for_c}); {convert_ret_for_cpp} }}"#, c_ret_type = f_method.output.as_ref().name, convert_ret_for_cpp = convert_ret_for_cpp, cpp_args_for_c = cpp_args_for_c, c_func_name = c_func_name, ret = ret_name, ) .expect(WRITE_TO_MEM_FAILED_MSG); } else { writeln!( &mut inline_impl, r#" {c_func_name}({cpp_args_for_c});{input_to_output} }}"#, c_func_name = c_func_name, cpp_args_for_c = cpp_args_for_c, input_to_output = input_to_output_ret_code ) .expect(WRITE_TO_MEM_FAILED_MSG); } ctx.rust_code .append(&mut generate_static_method(ctx.conv_map, &method_ctx)?); } MethodVariant::Method(ref self_variant) => { let const_if_readonly = if self_variant.is_read_only() { "const " } else { "" }; writeln!( c_include_f, r#" {ret_type} {func_name}({const_if_readonly}{c_class_type} * const self{args_with_types});"#, ret_type = f_method.output.as_ref().name, c_class_type = c_class_type, func_name = c_func_name, args_with_types = comma_c_args_with_types, const_if_readonly = const_if_readonly, ) .expect(WRITE_TO_MEM_FAILED_MSG); writeln!( cpp_include_f, r#" {cpp_ret_type} {method_name}({cpp_args_with_types}) {const_if_readonly}noexcept;"#, method_name = method_name, cpp_ret_type = cpp_ret_type, cpp_args_with_types = cpp_args_with_types, const_if_readonly = const_if_readonly, ) .expect(WRITE_TO_MEM_FAILED_MSG); if !plain_class { write!(&mut inline_impl, r#" template<bool OWN_DATA> inline {cpp_ret_type} {class_name}<OWN_DATA>::{method_name}({cpp_args_with_types}) {const_if_readonly}noexcept {{ {conv_args_code}"#, cpp_args_with_types = cpp_args_with_types, method_name = method_name, class_name = class_name, cpp_ret_type = cpp_ret_type, const_if_readonly = const_if_readonly, conv_args_code = conv_args_code, ) } else { write!(&mut inline_impl, r#" inline {cpp_ret_type} {class_name}::{method_name}({cpp_args_with_types}) {const_if_readonly}noexcept {{ {conv_args_code}"#, cpp_args_with_types = cpp_args_with_types, method_name = method_name, class_name = class_name, cpp_ret_type = cpp_ret_type, const_if_readonly = const_if_readonly, conv_args_code = conv_args_code, ) } .expect(WRITE_TO_MEM_FAILED_MSG); if f_method.output.as_ref().name.display() != "void" { writeln!( &mut inline_impl, r#" {c_ret_type} {ret} = {c_func_name}(this->self_{cpp_args_for_c}); {convert_ret_for_cpp} }}"#, convert_ret_for_cpp = convert_ret_for_cpp, c_ret_type = f_method.output.as_ref().name, c_func_name = c_func_name, cpp_args_for_c = if !have_args_except_self { String::new() } else { format!(", {}", cpp_args_for_c) }, ret = ret_name, ) .expect(WRITE_TO_MEM_FAILED_MSG); } else { writeln!( &mut inline_impl, r#" {c_func_name}(this->self_{cpp_args_for_c});{input_to_output} }}"#, c_func_name = c_func_name, cpp_args_for_c = if !have_args_except_self { String::new() } else { format!(", {}", cpp_args_for_c) }, input_to_output = input_to_output_ret_code ) .expect(WRITE_TO_MEM_FAILED_MSG); } ctx.rust_code.append(&mut generate_method( ctx.conv_map, &method_ctx, class, *self_variant, &this_type_for_method, )?); } MethodVariant::Constructor => { need_destructor = true; if method.is_dummy_constructor() { writeln!( cpp_include_f, r#" {class_name}() noexcept {{}}"#, class_name = class_name, ) .expect(WRITE_TO_MEM_FAILED_MSG); } else { writeln!( c_include_f, r#" {c_class_type} *{func_name}({args_with_types});"#, c_class_type = c_class_type, func_name = c_func_name, args_with_types = c_args_with_types, ) .expect(WRITE_TO_MEM_FAILED_MSG); writeln!( cpp_include_f, r#" {class_name}({cpp_args_with_types}) noexcept {{ {conv_args_code} this->self_ = {c_func_name}({cpp_args_for_c}); if (this->self_ == nullptr) {{ std::abort(); }} }}"#, c_func_name = c_func_name, cpp_args_with_types = cpp_args_with_types, class_name = class_name, cpp_args_for_c = cpp_args_for_c, conv_args_code = conv_args_code, ) .expect(WRITE_TO_MEM_FAILED_MSG); let constructor_ret_type = class .self_desc .as_ref() .map(|x| &x.constructor_ret_type) .ok_or_else(&no_this_info)? .clone(); let this_type = constructor_ret_type.clone(); ctx.rust_code.append(&mut generate_constructor( ctx.conv_map, &method_ctx, constructor_ret_type, this_type, &code_box_this, )?); } } } } if need_destructor { let this_type = ctx.conv_map.ty_to_rust_type( class .self_desc .as_ref() .map(|x| &x.constructor_ret_type) .ok_or_else(&no_this_info)?, ); let unpack_code = unpack_from_heap_pointer(&this_type, "this", false); let c_destructor_name = format!("{}_delete", class.name); let code = format!( r#" #[allow(unused_variables, unused_mut, non_snake_case, unused_unsafe)] #[no_mangle] pub extern "C" fn {c_destructor_name}(this: *mut {this_type}) {{ {unpack_code} drop(this); }} "#, c_destructor_name = c_destructor_name, unpack_code = unpack_code, this_type = this_type_for_method, ); debug!("we generate and parse code: {}", code); ctx.rust_code.push( syn::parse_str(&code).unwrap_or_else(|err| { panic_on_syn_error("internal cpp desctructor code", code, err) }), ); writeln!( c_include_f, r#" void {c_destructor_name}(const {c_class_type} *self);"#, c_class_type = c_class_type, c_destructor_name = c_destructor_name, ) .expect(WRITE_TO_MEM_FAILED_MSG); writeln!( cpp_include_f, r#" private: static void free_mem(SelfType &p) noexcept {{ if ({own_data_check}p != nullptr) {{ {c_destructor_name}(p); }} p = nullptr; }} public: ~{class_name}() noexcept {{ free_mem(this->self_); }}"#, c_destructor_name = c_destructor_name, class_name = class_name, own_data_check = if !plain_class { "OWN_DATA && " } else { "" }, ) .expect(WRITE_TO_MEM_FAILED_MSG); } else if !static_only { // not need_destructor writeln!( cpp_include_f, r#" private: static void free_mem(SelfType &) noexcept {{ }}"#, ) .expect(WRITE_TO_MEM_FAILED_MSG); } writeln!( c_include_f, r#" #ifdef __cplusplus }} #endif "# ) .expect(WRITE_TO_MEM_FAILED_MSG); if !class.foreign_code.is_empty() { writeln!(cpp_include_f, "\n{}", class.foreign_code).expect(WRITE_TO_MEM_FAILED_MSG); } if !static_only { cpp_include_f.write_all( br#" private: SelfType self_; }; "#, ) } else { cpp_include_f.write_all( br#" }; "#, ) } .expect(WRITE_TO_MEM_FAILED_MSG); // Write method implementations. if ctx.cfg.separate_impl_headers { writeln!( cpp_include_f, r#" }} // namespace {namespace}"#, namespace = ctx.cfg.namespace_name ) .expect(WRITE_TO_MEM_FAILED_MSG); let cpp_impl_path = ctx.cfg.output_dir.join(format!("{}_impl.hpp", class.name)); let mut cpp_impl_f = FileWriteCache::new(&cpp_impl_path, ctx.generated_foreign_files); writeln!( cpp_impl_f, r#"// Automatically generated by flapigen #pragma once #include "{class_name}.hpp" namespace {namespace} {{"#, class_name = class.name, namespace = ctx.cfg.namespace_name, ) .expect(WRITE_TO_MEM_FAILED_MSG); write_methods_impls(&mut cpp_impl_f, &ctx.cfg.namespace_name, &inline_impl) .map_err(map_write_err!(cpp_impl_path))?; cpp_impl_f .update_file_if_necessary() .map_err(map_write_err!(cpp_impl_path))?; } else { write_methods_impls(&mut cpp_include_f, &ctx.cfg.namespace_name, &inline_impl) .map_err(map_write_err!(cpp_path))?; } if !plain_class { writeln!( cpp_fwd_f, r#"// Automatically generated by flapigen #pragma once namespace {namespace} {{ template<bool> class {base_class_name}; using {class_name} = {base_class_name}<true>; using {class_name}Ref = {base_class_name}<false>; }} // namespace {namespace}"#, namespace = ctx.cfg.namespace_name, class_name = class.name, base_class_name = class_name ) } else { writeln!( cpp_fwd_f, r#"// Automatically generated by flapigen #pragma once namespace {namespace} {{ class {class_name}; }} // namespace {namespace}"#, namespace = ctx.cfg.namespace_name, class_name = class.name, ) } .expect(WRITE_TO_MEM_FAILED_MSG); cpp_fwd_f .update_file_if_necessary() .map_err(map_write_err!(cpp_fwd_path))?; c_include_f .update_file_if_necessary() .map_err(map_write_err!(c_path))?; let mut cnt = cpp_include_f.take_content(); extend_foreign_class( class, &mut cnt, &KNOWN_CLASS_DERIVES, ctx.class_ext_handlers, ctx.method_ext_handlers, )?; cpp_include_f.replace_content(cnt); cpp_include_f .update_file_if_necessary() .map_err(map_write_err!(cpp_path))?; Ok(()) } fn generate_static_method(conv_map: &mut TypeMap, mc: &MethodContext) -> Result<Vec<TokenStream>> { let c_ret_type = mc .f_method .output .as_ref() .correspoding_rust_type .typename(); let (mut deps_code_out, convert_output_code) = foreign_from_rust_convert_method_output( conv_map, mc.class.src_id, &mc.method.fn_decl.output, mc.f_method.output.base.correspoding_rust_type.to_idx(), mc.ret_name, c_ret_type, )?; let (deps_code_in, convert_input_code) = foreign_to_rust_convert_method_inputs( conv_map, mc.class.src_id, mc.method, mc.f_method, mc.method.arg_names_without_self(), c_ret_type, )?; let code = format!( r#" #[allow(non_snake_case, unused_variables, unused_mut, unused_unsafe)] #[no_mangle] pub extern "C" fn {func_name}({decl_func_args}) -> {c_ret_type} {{ {convert_input_code} let mut {ret_name}: {real_output_typename} = {call}; {convert_output_code} {ret_name} }} "#, func_name = mc.c_func_name, decl_func_args = mc.decl_func_args, c_ret_type = c_ret_type, convert_input_code = convert_input_code, convert_output_code = convert_output_code, real_output_typename = mc.real_output_typename, call = mc.method.generate_code_to_call_rust_func(), ret_name = mc.ret_name, ); let mut gen_code = deps_code_in; gen_code.append(&mut deps_code_out); gen_code.push( syn::parse_str(&code) .unwrap_or_else(|err| panic_on_syn_error("cpp internal static method", code, err)), ); Ok(gen_code) } fn generate_method( conv_map: &mut TypeMap, mc: &MethodContext, class: &ForeignClassInfo, self_variant: SelfTypeVariant, this_type_for_method: &RustType, ) -> Result<Vec<TokenStream>> { let c_ret_type = mc .f_method .output .as_ref() .correspoding_rust_type .typename(); let (deps_code_in, convert_input_code) = foreign_to_rust_convert_method_inputs( conv_map, mc.class.src_id, mc.method, mc.f_method, mc.method.arg_names_without_self(), c_ret_type, )?; let (mut deps_code_out, convert_output_code) = foreign_from_rust_convert_method_output( conv_map, mc.class.src_id, &mc.method.fn_decl.output, mc.f_method.output.base.correspoding_rust_type.to_idx(), mc.ret_name, c_ret_type, )?; //&mut constructor_real_type -> &mut class.self_type let (from_ty, to_ty): (Type, Type) = create_suitable_types_for_constructor_and_self( self_variant, class, &this_type_for_method.ty, ); let from_ty = conv_map.find_or_alloc_rust_type(&from_ty, class.src_id); let to_ty = conv_map.find_or_alloc_rust_type(&to_ty, class.src_id); let (mut deps_this, convert_this) = conv_map.convert_rust_types( from_ty.to_idx(), to_ty.to_idx(), "this", "this", c_ret_type, (mc.class.src_id, mc.method.span()), )?; let code = format!( r#" #[allow(non_snake_case, unused_variables, unused_mut, unused_unsafe)] #[no_mangle] pub extern "C" fn {func_name}(this: *mut {this_type}, {decl_func_args}) -> {c_ret_type} {{ {convert_input_code} let this: {this_type_ref} = unsafe {{ this.as_mut().unwrap() }}; {convert_this} let mut {ret_name}: {real_output_typename} = {call}; {convert_output_code} {ret_name} }} "#, func_name = mc.c_func_name, decl_func_args = mc.decl_func_args, convert_input_code = convert_input_code, c_ret_type = c_ret_type, this_type_ref = from_ty, this_type = this_type_for_method, convert_this = convert_this, convert_output_code = convert_output_code, real_output_typename = mc.real_output_typename, call = mc.method.generate_code_to_call_rust_func(), ret_name = mc.ret_name, ); let mut gen_code = deps_code_in; gen_code.append(&mut deps_code_out); gen_code.append(&mut deps_this); gen_code.push( syn::parse_str(&code) .unwrap_or_else(|err| panic_on_syn_error("cpp internal method", code, err)), ); Ok(gen_code) } fn generate_constructor( conv_map: &mut TypeMap, mc: &MethodContext, construct_ret_type: Type, this_type: Type, code_box_this: &TokenStream, ) -> Result<Vec<TokenStream>> { let this_type: RustType = conv_map.ty_to_rust_type(&this_type); let ret_type_name = this_type.normalized_name.as_str(); let (deps_code_in, convert_input_code) = foreign_to_rust_convert_method_inputs( conv_map, mc.class.src_id, mc.method, mc.f_method, mc.method.arg_names_without_self(), ret_type_name, )?; let construct_ret_type: RustType = conv_map.ty_to_rust_type(&construct_ret_type); let (mut deps_this, convert_this) = conv_map.convert_rust_types( construct_ret_type.to_idx(), this_type.to_idx(), "this", "this", ret_type_name, (mc.class.src_id, mc.method.span()), )?; let code = format!( r#" #[allow(unused_variables, unused_mut, non_snake_case, unused_unsafe)] #[no_mangle] pub extern "C" fn {func_name}({decl_func_args}) -> *const ::std::os::raw::c_void {{ {convert_input_code} let this: {real_output_typename} = {call}; {convert_this} {box_this} this as *const ::std::os::raw::c_void }} "#, func_name = mc.c_func_name, convert_this = convert_this, decl_func_args = mc.decl_func_args, convert_input_code = convert_input_code, box_this = code_box_this, real_output_typename = construct_ret_type, call = mc.method.generate_code_to_call_rust_func(), ); let mut gen_code = deps_code_in; gen_code.append(&mut deps_this); gen_code .push(syn::parse_str(&code).unwrap_or_else(|err| { panic_on_syn_error("cpp internal constructor method", code, err) })); Ok(gen_code) } fn write_methods_impls( file: &mut FileWriteCache, namespace_name: &str, inline_impl: &str, ) -> std::io::Result<()> { writeln!( file, r#" {inline_impl} }} // namespace {namespace}"#, namespace = namespace_name, inline_impl = inline_impl, ) } fn find_suitable_foreign_types_for_methods( ctx: &mut CppContext, class: &ForeignClassInfo, ) -> Result<Vec<CppForeignMethodSignature>> { let mut ret = Vec::<CppForeignMethodSignature>::with_capacity(class.methods.len()); let dummy_ty = parse_type! { () }; let dummy_rust_ty = ctx.conv_map.find_or_alloc_rust_type_no_src_id(&dummy_ty); for method in &class.methods { //skip self argument let skip_n = match method.variant { MethodVariant::Method(_) => 1, _ => 0, }; assert!(method.fn_decl.inputs.len() >= skip_n); let mut input = Vec::<CppForeignTypeInfo>::with_capacity(method.fn_decl.inputs.len() - skip_n); for arg in method.fn_decl.inputs.iter().skip(skip_n) { let named_arg = arg .as_named_arg() .map_err(|err| DiagnosticError::from_syn_err(class.src_id, err))?; let arg_rust_ty = ctx .conv_map .find_or_alloc_rust_type(&named_arg.ty, class.src_id); input.push(map_type( ctx, &arg_rust_ty, Direction::Incoming, (class.src_id, named_arg.ty.span()), )?); } let output: CppForeignTypeInfo = match method.variant { MethodVariant::Constructor => ForeignTypeInfo { name: "".into(), correspoding_rust_type: dummy_rust_ty.clone(), } .into(), _ => match method.fn_decl.output { syn::ReturnType::Default => ForeignTypeInfo { name: "void".into(), correspoding_rust_type: dummy_rust_ty.clone(), } .into(), syn::ReturnType::Type(_, ref rt) => { let ret_rust_ty = ctx.conv_map.find_or_alloc_rust_type(rt, class.src_id); map_type( ctx, &ret_rust_ty, Direction::Outgoing, (class.src_id, rt.span()), )? } }, }; ret.push(CppForeignMethodSignature { output, input }); } Ok(ret) } fn generte_c_header_preamble( ctx: &CppContext, class_doc_comments: &str, c_class_type: &str, c_include_f: &mut FileWriteCache, ) { writeln!( c_include_f, r##"// Automatically generated by flapigen {doc_comments} #pragma once //for (u)intX_t types #include <stdint.h> #ifdef __cplusplus static_assert(sizeof(uintptr_t) == sizeof(uint8_t) * {sizeof_usize}, "our conversation usize <-> uintptr_t is wrong"); extern "C" {{ #endif typedef struct {c_class_type} {c_class_type}; "##, doc_comments = class_doc_comments, c_class_type = c_class_type, sizeof_usize = ctx.target_pointer_width / 8, ) .expect(WRITE_TO_MEM_FAILED_MSG); } fn generate_cpp_header_preamble( ctx: &mut CppContext, class: &ForeignClassInfo, tmp_class_name: &str, class_doc_comments: &str, req_includes: &[SmolStr], static_only: bool, c_class_type: &str, c_include_f: &mut FileWriteCache, cpp_include_f: &mut FileWriteCache, ) -> Result<()> { use std::fmt::Write; let mut includes = String::new(); for inc in req_includes { writeln!(&mut includes, "#include {}", inc).unwrap(); } let plain_class = need_plain_class(class); if !plain_class { writeln!( cpp_include_f, r#"// Automatically generated by flapigen #pragma once //for assert #include <cassert> //for std::abort #include <cstdlib> //for std::move #include <utility> //for std::conditional #include <type_traits> {includes} #include "c_{class_dot_name}.h" namespace {namespace} {{ template<bool> class {class_name};<|fim▁hole|>using {class_dot_name} = {class_name}<true>; using {class_dot_name}Ref = {class_name}<false>; {doc_comments} template<bool OWN_DATA> class {class_name} {{ public: using value_type = {class_name}<true>; friend class {class_name}<true>; friend class {class_name}<false>;"#, includes = includes, class_name = tmp_class_name, class_dot_name = class.name, namespace = ctx.cfg.namespace_name, doc_comments = class_doc_comments, ) } else { writeln!( cpp_include_f, r#"// Automatically generated by flapigen #pragma once //for assert #include <cassert> //for std::abort #include <cstdlib> //for std::move #include <utility> {includes} #include "c_{class_name}.h" namespace {namespace} {{ {doc_comments} class {class_name} {{ public:"#, includes = includes, class_name = class.name, namespace = ctx.cfg.namespace_name, doc_comments = class_doc_comments, ) } .expect(WRITE_TO_MEM_FAILED_MSG); if !static_only { if !plain_class { writeln!( cpp_include_f, r#" using SelfType = typename std::conditional<OWN_DATA, {c_class_type} *, const {c_class_type} *>::type; using CForeignType = {c_class_type}; {class_name}({class_name} &&o) noexcept: self_(o.self_) {{ o.self_ = nullptr; }} {class_name} &operator=({class_name} &&o) noexcept {{ assert(this != &o); free_mem(this->self_); self_ = o.self_; o.self_ = nullptr; return *this; }} explicit {class_name}(SelfType o) noexcept: self_(o) {{}} {c_class_type} *release() noexcept {{ {c_class_type} *ret = self_; self_ = nullptr; return ret; }} explicit operator SelfType() const noexcept {{ return self_; }} {class_name}<false> as_rref() const noexcept {{ return {class_name}<false>{{ self_ }}; }} const {class_name}<true> &as_cref() const noexcept {{ return reinterpret_cast<const {class_name}<true> &>(*this); }}"#, c_class_type = c_class_type, class_name = tmp_class_name, ) } else { writeln!( cpp_include_f, r#" using SelfType = {c_class_type} *; using CForeignType = {c_class_type}; {class_name}({class_name} &&o) noexcept: self_(o.self_) {{ o.self_ = nullptr; }} {class_name} &operator=({class_name} &&o) noexcept {{ assert(this != &o); free_mem(this->self_); self_ = o.self_; o.self_ = nullptr; return *this; }} explicit {class_name}(SelfType o) noexcept: self_(o) {{}} {c_class_type} *release() noexcept {{ {c_class_type} *ret = self_; self_ = nullptr; return ret; }} explicit operator SelfType() const noexcept {{ return self_; }}"#, c_class_type = c_class_type, class_name = class.name, ) }.expect(WRITE_TO_MEM_FAILED_MSG); } if !static_only { genearte_copy_stuff( ctx, class, c_class_type, c_include_f, cpp_include_f, tmp_class_name, )?; } Ok(()) } fn genearte_copy_stuff( ctx: &mut CppContext, class: &ForeignClassInfo, c_class_type: &str, c_include_f: &mut FileWriteCache, cpp_include_f: &mut FileWriteCache, tmp_class_name: &str, ) -> Result<()> { let plain_class = need_plain_class(class); let tmp_class_name: Cow<str> = if !plain_class { tmp_class_name.into() } else { class.name.to_string().into() }; if class.copy_derived() { let pos = class .methods .iter() .position(|m| { if let Some(seg) = m.rust_id.segments.last() { seg.ident == "clone" } else { false } }) .ok_or_else(|| { DiagnosticError::new( class.src_id, class.span(), format!( "Class {} (namespace {}) has derived Copy attribute, but no clone method", class.name, ctx.cfg.namespace_name, ), ) })?; let c_clone_func = c_func_name(class, &class.methods[pos]); writeln!( cpp_include_f, r#" {class_name}(const {class_name}& o) noexcept {{ {own_data_static_assert} if (o.self_ != nullptr) {{ self_ = {c_clone_func}(o.self_); }} else {{ self_ = nullptr; }} }} {class_name} &operator=(const {class_name}& o) noexcept {{ {own_data_static_assert} if (this != &o) {{ free_mem(this->self_); if (o.self_ != nullptr) {{ self_ = {c_clone_func}(o.self_); }} else {{ self_ = nullptr; }} }} return *this; }}"#, own_data_static_assert = if !plain_class { "static_assert(OWN_DATA, \"copy possible only if class own data\");" } else { "" }, c_clone_func = c_clone_func, class_name = tmp_class_name ) .expect(WRITE_TO_MEM_FAILED_MSG); } else if class.smart_ptr_copy_derived() { let this_type = class .self_desc .as_ref() .map(|x| &x.constructor_ret_type) .ok_or_else(|| { DiagnosticError::new( class.src_id, class.span(), format!( "class marked as {} should have at least one constructor", SMART_PTR_COPY_TRAIT ), ) })?; let this_type = ctx.conv_map.ty_to_rust_type(this_type); let (this_type_for_method, _) = convert_to_heap_pointer(ctx.conv_map, &this_type, "this"); let unpack_code = unpack_from_heap_pointer(&this_type, "this", true); let unpack_code: TokenStream = syn::parse_str(&unpack_code).unwrap_or_else(|err| { panic_on_syn_error("clone method for smart_ptr_derived class", unpack_code, err) }); let clone_fn_name = do_c_func_name(class, MethodAccess::Private, "clone"); let clone_fn_name = Ident::new(&clone_fn_name, Span::call_site()); let this_type_ty = this_type.to_type_without_lifetimes(); let this_type_for_method_ty = this_type_for_method.to_type_without_lifetimes(); ctx.rust_code.push(quote! { #[allow(non_snake_case, unused_variables, unused_mut, unused_unsafe)] #[no_mangle] pub extern "C" fn #clone_fn_name(this: *const #this_type_for_method_ty) -> *mut ::std::os::raw::c_void { #unpack_code let ret: #this_type_ty = this.clone(); ::std::mem::forget(this); SwigForeignClass::box_object(ret) } }); writeln!( c_include_f, r#" {c_class_type} *{func_name}(const {c_class_type} *);"#, c_class_type = c_class_type, func_name = clone_fn_name, ) .expect(WRITE_TO_MEM_FAILED_MSG); writeln!( cpp_include_f, r#" {class_name}(const {class_name}& o) noexcept {{ {own_data_static_assert} if (o.self_ != nullptr) {{ self_ = {c_clone_func}(o.self_); }} else {{ self_ = nullptr; }} }} {class_name} &operator=(const {class_name}& o) noexcept {{ {own_data_static_assert} if (this != &o) {{ free_mem(this->self_); if (o.self_ != nullptr) {{ self_ = {c_clone_func}(o.self_); }} else {{ self_ = nullptr; }} }} return *this; }}"#, own_data_static_assert = if !plain_class { "static_assert(OWN_DATA, \"copy possible only if class own data\");" } else { "" }, c_clone_func = clone_fn_name, class_name = tmp_class_name ) .expect(WRITE_TO_MEM_FAILED_MSG); } else { writeln!( cpp_include_f, r#" {class_name}(const {class_name}&) = delete; {class_name} &operator=(const {class_name}&) = delete;"#, class_name = tmp_class_name ) .expect(WRITE_TO_MEM_FAILED_MSG); } Ok(()) } #[inline] pub(in crate::cpp) fn need_plain_class(class: &ForeignClassInfo) -> bool { class.derive_list.iter().any(|x| *x == PLAIN_CLASS) }<|fim▁end|>
<|file_name|>CyanACTabCompleter.java<|end_file_name|><|fim▁begin|>package info.cyanac.plugin.bukkit; import java.util.ArrayList; import java.util.List; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabCompleter; public class CyanACTabCompleter implements TabCompleter { @Override public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) { if(command.getName().equalsIgnoreCase("cyanac")){ List<String> tabCompletionList = new ArrayList(); tabCompletionList.add("help"); tabCompletionList.add("resync"); tabCompletionList.add("license"); return tabCompletionList;<|fim▁hole|> } }<|fim▁end|>
} return null;
<|file_name|>ui_test.go<|end_file_name|><|fim▁begin|>package main import ( "testing" ) <|fim▁hole|>}<|fim▁end|>
func TestMain(t *testing.T) {
<|file_name|>packet_handler.rs<|end_file_name|><|fim▁begin|>extern crate netfilter_queue as nfq; use std::ptr::null; use nfq::handle::{Handle, ProtocolFamily}; use nfq::queue::{CopyMode, Verdict, PacketHandler, QueueHandle};<|fim▁hole|>use nfq::message::Message; use nfq::error::Error; fn main() { let mut handle = Handle::new().ok().unwrap(); handle.bind(ProtocolFamily::INET).ok().unwrap(); let mut queue = handle.queue(0, Decider).ok().unwrap(); let _ = queue.set_mode(CopyMode::Metadata).unwrap(); println!("Listening for packets..."); handle.start(4096); println!("...finished."); } struct Decider; impl PacketHandler for Decider { #[allow(non_snake_case)] fn handle(&mut self, hq: QueueHandle, message: Result<&Message, &Error>) -> i32 { match message { Ok(m) => { let _ = Verdict::set_verdict(hq, m.header.id(), Verdict::Accept, 0, null()); }, Err(_) => () } 0 } }<|fim▁end|>
<|file_name|>batch.py<|end_file_name|><|fim▁begin|># Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Create / interact with a batch of updates / deletes.""" from gcloud._localstack import _LocalStack from gcloud.datastore import _implicit_environ from gcloud.datastore import helpers from gcloud.datastore.key import _dataset_ids_equal from gcloud.datastore import _datastore_v1_pb2 as datastore_pb _BATCHES = _LocalStack() class Batch(object): """An abstraction representing a collected group of updates / deletes. Used to build up a bulk mutuation. For example, the following snippet of code will put the two ``save`` operations and the delete operatiuon into the same mutation, and send them to the server in a single API request:: >>> from gcloud.datastore.batch import Batch >>> batch = Batch() >>> batch.put(entity1) >>> batch.put(entity2) >>> batch.delete(key3) >>> batch.commit() You can also use a batch as a context manager, in which case the ``commit`` will be called automatically if its block exits without raising an exception:: >>> with Batch() as batch: ... batch.put(entity1) ... batch.put(entity2) ... batch.delete(key3) By default, no updates will be sent if the block exits with an error:: >>> from gcloud import datastore >>> dataset = datastore.get_dataset('dataset-id') >>> with Batch() as batch: ... do_some_work(batch) ... raise Exception() # rolls back """ def __init__(self, dataset_id=None, connection=None): """ Construct a batch. :type dataset_id: :class:`str`. :param dataset_id: The ID of the dataset. :type connection: :class:`gcloud.datastore.connection.Connection` :param connection: The connection used to connect to datastore. :raises: :class:`ValueError` if either a connection or dataset ID are not set. """ self._connection = connection or _implicit_environ.CONNECTION self._dataset_id = dataset_id or _implicit_environ.DATASET_ID if self._connection is None or self._dataset_id is None: raise ValueError('A batch must have a connection and ' 'a dataset ID set.') self._mutation = datastore_pb.Mutation() self._auto_id_entities = [] @staticmethod def current(): """Return the topmost batch / transaction, or None.""" return _BATCHES.top @property def dataset_id(self): """Getter for dataset ID in which the batch will run. :rtype: :class:`str` :returns: The dataset ID in which the batch will run. """ return self._dataset_id @property def connection(self): """Getter for connection over which the batch will run. :rtype: :class:`gcloud.datastore.connection.Connection` :returns: The connection over which the batch will run. """ return self._connection @property def mutation(self): """Getter for the current mutation. Every batch is committed with a single Mutation representing the 'work' to be done as part of the batch. Inside a batch, calling ``batch.put()`` with an entity, or ``batch.delete`` with a key, builds up the mutation. This getter returns the Mutation protobuf that has been built-up so far. :rtype: :class:`gcloud.datastore._datastore_v1_pb2.Mutation` :returns: The Mutation protobuf to be sent in the commit request. """ return self._mutation def add_auto_id_entity(self, entity): """Adds an entity to the list of entities to update with IDs. When an entity has a partial key, calling ``save()`` adds an insert_auto_id entry in the mutation. In order to make sure we update the Entity once the transaction is committed, we need to keep track of which entities to update (and the order is important). When you call ``save()`` on an entity inside a transaction, if the entity has a partial key, it adds itself to the list of entities to be updated once the transaction is committed by calling this method. :type entity: :class:`gcloud.datastore.entity.Entity` :param entity: The entity to be updated with a completed key. :raises: ValueError if the entity's key is alread completed. """ if not entity.key.is_partial: raise ValueError("Entity has a completed key") self._auto_id_entities.append(entity) def put(self, entity): """Remember an entity's state to be saved during ``commit``. .. note:: Any existing properties for the entity will be replaced by those currently set on this instance. Already-stored properties which do not correspond to keys set on this instance will be removed from the datastore. .. note:: Property values which are "text" ('unicode' in Python2, 'str' in Python3) map to 'string_value' in the datastore; values which are "bytes" ('str' in Python2, 'bytes' in Python3) map to 'blob_value'. :type entity: :class:`gcloud.datastore.entity.Entity` :param entity: the entity to be saved. :raises: ValueError if entity has no key assigned, or if the key's ``dataset_id`` does not match ours. """ if entity.key is None: raise ValueError("Entity must have a key") if not _dataset_ids_equal(self._dataset_id, entity.key.dataset_id): raise ValueError("Key must be from same dataset as batch") _assign_entity_to_mutation( self.mutation, entity, self._auto_id_entities) def delete(self, key): """Remember a key to be deleted durring ``commit``. :type key: :class:`gcloud.datastore.key.Key` :param key: the key to be deleted. :raises: ValueError if key is not complete, or if the key's ``dataset_id`` does not match ours. """ if key.is_partial: raise ValueError("Key must be complete") if not _dataset_ids_equal(self._dataset_id, key.dataset_id): raise ValueError("Key must be from same dataset as batch") key_pb = key.to_protobuf() helpers._add_keys_to_request(self.mutation.delete, [key_pb]) def begin(self): """No-op Overridden by :class:`gcloud.datastore.transaction.Transaction`. """ pass def commit(self): """Commits the batch. This is called automatically upon exiting a with statement, however it can be called explicitly if you don't want to use a context manager. """ response = self.connection.commit(self._dataset_id, self.mutation) # If the back-end returns without error, we are guaranteed that # the response's 'insert_auto_id_key' will match (length and order) # the request's 'insert_auto_id` entities, which are derived from # our '_auto_id_entities' (no partial success). for new_key_pb, entity in zip(response.insert_auto_id_key, self._auto_id_entities): new_id = new_key_pb.path_element[-1].id entity.key = entity.key.completed_key(new_id) def rollback(self): """No-op Overridden by :class:`gcloud.datastore.transaction.Transaction`. """ pass def __enter__(self): _BATCHES.push(self) self.begin() return self def __exit__(self, exc_type, exc_val, exc_tb): try: if exc_type is None: self.commit() else: self.rollback() finally: _BATCHES.pop()<|fim▁hole|> If ``entity.key`` is incomplete, append ``entity`` to ``auto_id_entities`` for later fixup during ``commit``. Helper method for ``Batch.put``. :type mutation_pb: :class:`gcloud.datastore._datastore_v1_pb2.Mutation` :param mutation_pb; the Mutation protobuf for the batch / transaction. :type entity: :class:`gcloud.datastore.entity.Entity` :param entity; the entity being updated within the batch / transaction. :type auto_id_entities: list of :class:`gcloud.datastore.entity.Entity` :param auto_id_entities: entiites with partial keys, to be fixed up during commit. """ auto_id = entity.key.is_partial key_pb = entity.key.to_protobuf() key_pb = helpers._prepare_key_for_request(key_pb) if auto_id: insert = mutation_pb.insert_auto_id.add() auto_id_entities.append(entity) else: # We use ``upsert`` for entities with completed keys, rather than # ``insert`` or ``update``, in order not to create race conditions # based on prior existence / removal of the entity. insert = mutation_pb.upsert.add() insert.key.CopyFrom(key_pb) for name, value in entity.items(): value_is_list = isinstance(value, list) if value_is_list and len(value) == 0: continue prop = insert.property.add() # Set the name of the property. prop.name = name # Set the appropriate value. helpers._set_protobuf_value(prop.value, value) if name in entity.exclude_from_indexes: if not value_is_list: prop.value.indexed = False for sub_value in prop.value.list_value: sub_value.indexed = False<|fim▁end|>
def _assign_entity_to_mutation(mutation_pb, entity, auto_id_entities): """Copy ``entity`` into appropriate slot of ``mutation_pb``.
<|file_name|>map.js<|end_file_name|><|fim▁begin|>/** * Clone a copy of the object passed as parameter using JQuery extension * @param {object} o * @return {object} copy of the parameter object */ function clone(o) { return jQuery.extend({}, o); } function disableZoomHandlers(map) { map.touchZoom.disable(); map.doubleClickZoom.disable(); map.scrollWheelZoom.disable(); if (map.tap) map.tap.disable(); } // on('click') => changeColor function changeColor(e) { for (var i = 0; i < geoJson.length; i++) { geoJson[i].properties['marker-color'] = geoJson[i].properties['old-color'] || geoJson[i].properties['marker-color']; } addImages(e); e.layer.feature.properties['old-color'] = e.layer.feature.properties['marker-color']; e.layer.feature.properties['marker-color'] = '#ff8888'; myLayer.setGeoJSON(geoJson); } // on('click') => centerOnMarker function centerOnMarker(e) { goo = clone(e.layer.getLatLng()); goo["lat"] += 3.3; map.panTo(goo); } // map button - onclick => hideQuotes function hideQuotes() { $('#quotes').fadeTo(2000, 0.0, function() { // get focus on the map again $('#quotes').hide(); }); $('#map').fadeTo(2000, 1.0); } // quotes button - onclick => hideQuotes function showQuotes() { $('#quotes').fadeTo(2000, 1.0); $('#map').fadeTo(2000, 0.3); } // on('layeradd') => addImages function addImages(e) { var marker = e.layer; var feature = marker.feature; var images = feature.properties.images var slideshowContent = ''; for(var i = 0; i < images.length; i++) { var img = images[i]; slideshowContent += '<div class="image' + (i === 0 ? ' active' : '') + '">' + '<img src="' + img[0] + '" />'; if (img[1]) { slideshowContent += '<div class="caption">' + img[1] + '</div>'; } slideshowContent += '</div>'; } var popupContent = '<div id="' + feature.properties.id + '" class="popup">' + '<h2>' + feature.properties.title + '</h2>' + '<div class="slideshow">' + slideshowContent + '</div>' + '<div class="cycle">' + '<a href="#" class="prev">&laquo;</a>' + '<a href="#" class="next">&raquo;</a>' + '</div>' '</div>'; var popUpOpt = {closeButton: false, minWidth: 320}; marker.bindPopup(popupContent, popUpOpt); } // on('ready') => addLines function addLines() { var polyline = newLine(); polyline.addTo(map); myLayer.eachLayer(function(l) { if (mustDraw(l.feature.properties)) { polyline.addLatLng(l.getLatLng()); } }); } function newLine() { var lineOpt = {weight: 5, color: "#fff", opacity: 0.7, clickable: false}; return L.polyline([], lineOpt); } // draw a line between large markers only function mustDraw(properties) { return properties["marker-size"] == "large"; } // on('click') => createPopUpHTML function createPopUpHTML() { var $slideshow = $('.slideshow'), $newSlide; if ($(this).hasClass('prev')) { $newSlide = $slideshow.find('.active').prev(); if ($newSlide.index() < 0) { $newSlide = $('.image').last(); } } else { $newSlide = $slideshow.find('.active').next(); if ($newSlide.index() < 0) { $newSlide = $('.image').first(); } } $slideshow.find('.active').removeClass('active').hide(); $newSlide.addClass('active').show(); return false; } /** * Menu mouse over position * Stackoverflow: 19618103 * http://jsfiddle.net/ravikumaranantha/Wtfpx/2/ */ var mouse_position; var animating = false; $(document).mousemove(function (e) { if (animating) {return;}<|fim▁hole|> $('#cms_bar').animate({left: 0, opacity: 0.9}, 200, function () { animating = false; }); } else if (mouse_position > 100) { animating = true; $('#cms_bar').animate({left: -80, opacity: 0.7}, 500, function () { animating = false; }); } });<|fim▁end|>
mouse_position = e.clientX; if (mouse_position <= 100) { animating = true;
<|file_name|>base.py<|end_file_name|><|fim▁begin|># Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. """ Plugin's Base Class """ import sys import cli from cli.docopt import docopt PLUGIN_NAME = "base-plugin" PLUGIN_CLASS = "PluginBase" VERSION = "Mesos Plugin Base 1.0" SHORT_HELP = "This is the base plugin from which all other plugins inherit." USAGE = \ """ {short_help} Usage: mesos {plugin} (-h | --help) mesos {plugin} --version mesos {plugin} <command> (-h | --help) mesos {plugin} [options] <command> [<args>...] Options: -h --help Show this screen. --version Show version info. Commands: {commands} """ SUBCOMMAND_USAGE = \ """{short_help} Usage: mesos {plugin} {command} (-h | --help) mesos {plugin} {command} --version mesos {plugin} {command} [options] {arguments} Options: {flags} Description: {long_help} """ class PluginBase(): """ Base class from which all CLI plugins should inherit. """ # pylint: disable=too-few-public-methods COMMANDS = {} def __setup__(self, command, argv): pass def __module_reference__(self): return sys.modules[self.__module__] def __init__(self, settings, config): # pylint: disable=invalid-name self.PLUGIN_NAME = PLUGIN_NAME self.PLUGIN_CLASS = PLUGIN_CLASS self.VERSION = VERSION self.SHORT_HELP = SHORT_HELP self.USAGE = USAGE module = self.__module_reference__() if hasattr(module, "PLUGIN_NAME"): self.PLUGIN_NAME = getattr(module, "PLUGIN_NAME") if hasattr(module, "PLUGIN_CLASS"): self.PLUGIN_CLASS = getattr(module, "PLUGIN_CLASS") if hasattr(module, "VERSION"): self.VERSION = getattr(module, "VERSION") if hasattr(module, "SHORT_HELP"): self.SHORT_HELP = getattr(module, "SHORT_HELP") if hasattr(module, "USAGE"): self.USAGE = getattr(module, "USAGE") self.settings = settings self.config = config def __autocomplete__(self, command, current_word, argv): # pylint: disable=unused-variable,unused-argument, # attribute-defined-outside-init return ("default", []) def __autocomplete_base__(self, current_word, argv): option = "default" # <command> comp_words = list(self.COMMANDS.keys()) comp_words = cli.util.completions(comp_words, current_word, argv) if comp_words is not None: return (option, comp_words) # <args>... comp_words = self.__autocomplete__(argv[0], current_word, argv[1:]) # In general, we expect a tuple to be returned from __autocomplete__, # with the first element being a valid autocomplete option, and the # second being a list of completion words. However, in the common # case we usually use the default option, so it's OK for a plugin to # just return a list. We will add the "default" option for them. if isinstance(comp_words, tuple): option, comp_words = comp_words return (option, comp_words) def main(self, argv): """ Main method takes argument from top level mesos and parses them to call the appropriate method.<|fim▁hole|> command_strings = cli.util.format_commands_help(self.COMMANDS) usage = self.USAGE.format( plugin=self.PLUGIN_NAME, short_help=self.SHORT_HELP, commands=command_strings) arguments = docopt( usage, argv=argv, version=self.VERSION, program="mesos " + self.PLUGIN_NAME, options_first=True) cmd = arguments["<command>"] argv = arguments["<args>"] if cmd in self.COMMANDS.keys(): if "external" not in self.COMMANDS[cmd]: argument_format, short_help, long_help, flag_format = \ cli.util.format_subcommands_help(self.COMMANDS[cmd]) usage = SUBCOMMAND_USAGE.format( plugin=self.PLUGIN_NAME, command=cmd, arguments=argument_format, flags=flag_format, short_help=short_help, long_help=long_help) arguments = docopt( usage, argv=argv, program="mesos " + self.PLUGIN_NAME + " " + cmd, version=self.VERSION, options_first=True) if "alias" in self.COMMANDS[cmd]: cmd = self.COMMANDS[cmd]["alias"] self.__setup__(cmd, argv) return getattr(self, cmd.replace("-", "_"))(arguments) return self.main(["--help"])<|fim▁end|>
"""
<|file_name|>aff_validator.py<|end_file_name|><|fim▁begin|># coding: utf-8 import os from difflib import SequenceMatcher from unicodedata import normalize def remove_diacritics(s): try: s = normalize('NFKD', s) except TypeError: s = normalize('NFKD', unicode(s, "utf-8")) finally: return s.encode('ASCII', 'ignore').decode('ASCII') def remove_suffixes_and_prefixes(state): for term in [" PROVINCE", "PROVINCIA DE ", "STATE OF ", " STATE"]: state = state.replace(term, "") return state def remove_non_alpha_characters(s): # Remove caracteres como vírgulas, pontos, parênteses etc return "".join([c for c in s if c.isalpha() or c in [" ", "-"]]) def similarity_ratio(value1, value2): s = SequenceMatcher(None, value1, value2) return s.ratio() def normalize_value(s): s = remove_diacritics(s) s = s.upper() s = remove_non_alpha_characters(s) return s class States: def __init__(self): self._states = {} self.load() def load(self): with open(os.path.dirname(os.path.realpath(__file__)) + "/assets/states_abbrev.csv") as fp: for row in fp.readlines(): row = row.strip() if "," in row: name, abbrev = row.split(",") name = remove_diacritics(name) name = name.upper() self._states[name] = abbrev def get_state_abbrev(self, state): return self._states.get(state) def get_state_abbrev_by_similarity(self, state): similar = [ (similarity_ratio(name, state), abbrev) for name, abbrev in self._states.items() ] similar = sorted(similar) if similar[-1][0] > 0.8: return similar[-1][1] def normalize(self, state): state = remove_suffixes_and_prefixes(state) state_abbrev = ( self.get_state_abbrev(state) or self.get_state_abbrev_by_similarity(state) or state ) return state_abbrev<|fim▁hole|>def is_a_match(original, normalized, states=None): original = normalize_value(original) normalized = normalize_value(normalized) if original == normalized: return True if similarity_ratio(original, normalized) > 0.8: return True if states and hasattr(states, 'normalize'): original = states.normalize(original) normalized = states.normalize(normalized) if original == normalized: return True return False STATES = States() def has_conflicts(original_aff, normaff): if original_aff: conflicts = [] for label in ["country_iso_3166", "state", "city"]: original = original_aff.get(label) normalized = normaff.get(label) if original and normalized: states = STATES if label == "state" else None if is_a_match(original, normalized, states): continue conflicts.append((label, original, normalized)) return conflicts<|fim▁end|>
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.yangtypes import YANGDynClass from pyangbind.lib.yangtypes import ReferenceType from pyangbind.lib.base import PybindBase from collections import OrderedDict from decimal import Decimal from bitarray import bitarray import six # PY3 support of some PY2 keywords (needs improved) if six.PY3: import builtins as __builtin__ long = int elif six.PY2: import __builtin__ from . import config from . import state from . import reset_triggers class overload_bit(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-network-instance - based on the path /network-instances/network-instance/protocols/protocol/isis/global/lsp-bit/overload-bit. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This container defines Overload Bit configuration. """ __slots__ = ( "_path_helper", "_extmethods", "__config", "__state", "__reset_triggers" ) _yang_name = "overload-bit" _pybind_generated_by = "container" def __init__(self, *args, **kwargs): self._path_helper = False self._extmethods = False self.__config = YANGDynClass( base=config.config, is_container="container", yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) self.__state = YANGDynClass( base=state.state, is_container="container", yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) self.__reset_triggers = YANGDynClass( base=reset_triggers.reset_triggers, is_container="container", yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path() + [self._yang_name] else: return [ "network-instances", "network-instance", "protocols", "protocol", "isis", "global", "lsp-bit", "overload-bit", ] def _get_config(self): """ Getter method for config, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/config (container) YANG Description: This container defines ISIS Overload Bit configuration. """ return self.__config def _set_config(self, v, load=False): """ Setter method for config, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/config (container) If this variable is read-only (config: false) in the source YANG file, then _set_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_config() directly. YANG Description: This container defines ISIS Overload Bit configuration. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=config.config, is_container="container", yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) except (TypeError, ValueError): raise ValueError( { "error-string": """config must be of a type compatible with container""", "defined-type": "container", "generated-type": """YANGDynClass(base=config.config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='container', is_config=True)""", } ) self.__config = t if hasattr(self, "_set"): self._set() def _unset_config(self): self.__config = YANGDynClass( base=config.config, is_container="container", yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) def _get_state(self): """<|fim▁hole|> """ return self.__state def _set_state(self, v, load=False): """ Setter method for state, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/state (container) If this variable is read-only (config: false) in the source YANG file, then _set_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_state() directly. YANG Description: This container defines state for ISIS Overload Bit. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=state.state, is_container="container", yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) except (TypeError, ValueError): raise ValueError( { "error-string": """state must be of a type compatible with container""", "defined-type": "container", "generated-type": """YANGDynClass(base=state.state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='container', is_config=True)""", } ) self.__state = t if hasattr(self, "_set"): self._set() def _unset_state(self): self.__state = YANGDynClass( base=state.state, is_container="container", yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) def _get_reset_triggers(self): """ Getter method for reset_triggers, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/reset_triggers (container) YANG Description: This container defines state for ISIS Overload Bit reset triggers """ return self.__reset_triggers def _set_reset_triggers(self, v, load=False): """ Setter method for reset_triggers, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/reset_triggers (container) If this variable is read-only (config: false) in the source YANG file, then _set_reset_triggers is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_reset_triggers() directly. YANG Description: This container defines state for ISIS Overload Bit reset triggers """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=reset_triggers.reset_triggers, is_container="container", yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) except (TypeError, ValueError): raise ValueError( { "error-string": """reset_triggers must be of a type compatible with container""", "defined-type": "container", "generated-type": """YANGDynClass(base=reset_triggers.reset_triggers, is_container='container', yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='container', is_config=True)""", } ) self.__reset_triggers = t if hasattr(self, "_set"): self._set() def _unset_reset_triggers(self): self.__reset_triggers = YANGDynClass( base=reset_triggers.reset_triggers, is_container="container", yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) config = __builtin__.property(_get_config, _set_config) state = __builtin__.property(_get_state, _set_state) reset_triggers = __builtin__.property(_get_reset_triggers, _set_reset_triggers) _pyangbind_elements = OrderedDict( [("config", config), ("state", state), ("reset_triggers", reset_triggers)] ) from . import config from . import state from . import reset_triggers class overload_bit(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-network-instance-l2 - based on the path /network-instances/network-instance/protocols/protocol/isis/global/lsp-bit/overload-bit. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This container defines Overload Bit configuration. """ __slots__ = ( "_path_helper", "_extmethods", "__config", "__state", "__reset_triggers" ) _yang_name = "overload-bit" _pybind_generated_by = "container" def __init__(self, *args, **kwargs): self._path_helper = False self._extmethods = False self.__config = YANGDynClass( base=config.config, is_container="container", yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) self.__state = YANGDynClass( base=state.state, is_container="container", yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) self.__reset_triggers = YANGDynClass( base=reset_triggers.reset_triggers, is_container="container", yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path() + [self._yang_name] else: return [ "network-instances", "network-instance", "protocols", "protocol", "isis", "global", "lsp-bit", "overload-bit", ] def _get_config(self): """ Getter method for config, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/config (container) YANG Description: This container defines ISIS Overload Bit configuration. """ return self.__config def _set_config(self, v, load=False): """ Setter method for config, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/config (container) If this variable is read-only (config: false) in the source YANG file, then _set_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_config() directly. YANG Description: This container defines ISIS Overload Bit configuration. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=config.config, is_container="container", yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) except (TypeError, ValueError): raise ValueError( { "error-string": """config must be of a type compatible with container""", "defined-type": "container", "generated-type": """YANGDynClass(base=config.config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='container', is_config=True)""", } ) self.__config = t if hasattr(self, "_set"): self._set() def _unset_config(self): self.__config = YANGDynClass( base=config.config, is_container="container", yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) def _get_state(self): """ Getter method for state, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/state (container) YANG Description: This container defines state for ISIS Overload Bit. """ return self.__state def _set_state(self, v, load=False): """ Setter method for state, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/state (container) If this variable is read-only (config: false) in the source YANG file, then _set_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_state() directly. YANG Description: This container defines state for ISIS Overload Bit. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=state.state, is_container="container", yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) except (TypeError, ValueError): raise ValueError( { "error-string": """state must be of a type compatible with container""", "defined-type": "container", "generated-type": """YANGDynClass(base=state.state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='container', is_config=True)""", } ) self.__state = t if hasattr(self, "_set"): self._set() def _unset_state(self): self.__state = YANGDynClass( base=state.state, is_container="container", yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) def _get_reset_triggers(self): """ Getter method for reset_triggers, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/reset_triggers (container) YANG Description: This container defines state for ISIS Overload Bit reset triggers """ return self.__reset_triggers def _set_reset_triggers(self, v, load=False): """ Setter method for reset_triggers, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/reset_triggers (container) If this variable is read-only (config: false) in the source YANG file, then _set_reset_triggers is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_reset_triggers() directly. YANG Description: This container defines state for ISIS Overload Bit reset triggers """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=reset_triggers.reset_triggers, is_container="container", yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) except (TypeError, ValueError): raise ValueError( { "error-string": """reset_triggers must be of a type compatible with container""", "defined-type": "container", "generated-type": """YANGDynClass(base=reset_triggers.reset_triggers, is_container='container', yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='container', is_config=True)""", } ) self.__reset_triggers = t if hasattr(self, "_set"): self._set() def _unset_reset_triggers(self): self.__reset_triggers = YANGDynClass( base=reset_triggers.reset_triggers, is_container="container", yang_name="reset-triggers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace="http://openconfig.net/yang/network-instance", defining_module="openconfig-network-instance", yang_type="container", is_config=True, ) config = __builtin__.property(_get_config, _set_config) state = __builtin__.property(_get_state, _set_state) reset_triggers = __builtin__.property(_get_reset_triggers, _set_reset_triggers) _pyangbind_elements = OrderedDict( [("config", config), ("state", state), ("reset_triggers", reset_triggers)] )<|fim▁end|>
Getter method for state, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/global/lsp_bit/overload_bit/state (container) YANG Description: This container defines state for ISIS Overload Bit.
<|file_name|>models.py<|end_file_name|><|fim▁begin|>#coding=utf-8 from django.db import models from django.contrib.auth.models import User<|fim▁hole|> class Activity(models.Model): owner = models.ForeignKey(User, null=False) text = models.CharField(max_length=20, unique=True) class Dessert(models.Model): activity = models.ForeignKey(Activity, null=False) description = models.TextField() photo = models.ImageField()<|fim▁end|>
<|file_name|>add-page.js<|end_file_name|><|fim▁begin|>/** * Created with JetBrains WebStorm. * User: yuzhechang * Date: 13-9-24 * Time: 下午3:47 * To change this template use File | Settings | File Templates. */ (function($) { var ngmod = angular.module("framework.controllers", ["framework.serviceService"]); <|fim▁hole|> //页面数据,回传数据 //modal_onLoad是父controller里的虚方法(面向对象里类的概念)。 // 在这里的实际中是父controller里调用$rootScope.modal_onLoad,在子controller里提供modal_onLoad,并写入到$rootScope中。 $rootScope.modal_onLoad = function(config){ $scope.data = config.data; if(config.data.rowData) { $scope.flistData = config.data.rowData; $scope.selFlist = config.data.rowData.fieldName; console.log( $scope.selFlist); } // $scope.flistData.position = config.data.rowsNum; //添加提交按钮的处理事件 config.onSubmitForModal(function(){ console.log("窗口内的提交事件"); // config.resultData = {id:10000,msg:"回传数据"}; config.resultData = $scope.flistData; return true; }); } //获取属性数据 service_clist_FlistRES.get({ },function(structureFlist){ $scope.structureFlist=structureFlist; console.log(structureFlist); }); //选择属性事件 $scope.flistChange=function(flistId) { var flistjson =eval('('+flistId+')'); $scope.flistData = flistjson; $scope.flistData.fieldName=flistjson.name; $scope.flistData.desc=flistjson.description; $scope.flistData.otherName =flistjson.name; $scope.flistData.required=$(".J_isMust option:checked").text(); $scope.flistData.position= $scope.data.rowsNum; } }); })(jQuery);<|fim▁end|>
ngmod.controller("pageCtrl",function($scope,$rootScope,service_clist_FlistRES){ $scope.abc = "test-data"; $scope.flistData = null; $scope.selFlist=null ;
<|file_name|>adminws.py<|end_file_name|><|fim▁begin|>"""Contain the socket handler for players""" from game import Game from websocket import WebSocketHandler from zone import Zone import errcode class AdminWs(WebSocketHandler): """The socket handler for websocket""" def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.callable_from_json = {"setParams": self.set_params, "login": self.login, "logout": self.logout, "getParams": self.get_params, "startGame": self.start_game} def open(self, *args, **kwargs): super().open(*args, **kwargs) self.login()<|fim▁hole|> @staticmethod def start_game(): """start the game""" Game().start_game() @staticmethod def set_params(**kwargs): """set params of the game""" params = Game().params map_ = kwargs.get('map', None) if map_: params.map_center = (map_['lat'], map_['lng']) zones = kwargs.get('zones', []) for zone in zones: Game().create_zone(zone['team'], tuple(zone['pos']), zone['radius'], zone['id'], Zone) timeout = kwargs.get('time') params.game_timeout = timeout def get_params(self): """send to admin all params""" pass def login(self): """Login player and look if username and team are valids""" if Game().admin: self.send(errcode.USERNAME_ALREADY_SET) self.close() else: Game().admin = self self.logged = True def logout(self): """logout player and remove it from game""" self.close() def on_close(self): print("Admin is exiting...") self.logged = False Game().admin = None def send(self, msg): super().send(msg) print('Send to Admin : {}'.format(msg)) def on_message(self, msg): print('Send by Admin : {}'.format(msg)) super().on_message(msg)<|fim▁end|>
<|file_name|>type.go<|end_file_name|><|fim▁begin|>// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // DWARF type information structures. // The format is heavily biased toward C, but for simplicity // the String methods use a pseudo-Go syntax. package dwarf import "strconv" // A Type conventionally represents a pointer to any of the // specific Type structures (CharType, StructType, etc.). type Type interface { Common() *CommonType String() string Size() int64 } // A CommonType holds fields common to multiple types. // If a field is not known or not applicable for a given type, // the zero value is used. type CommonType struct { ByteSize int64 // size of value of this type, in bytes Name string // name that can be used to refer to type } func (c *CommonType) Common() *CommonType { return c } func (c *CommonType) Size() int64 { return c.ByteSize } // Basic types // A BasicType holds fields common to all basic types. type BasicType struct { CommonType BitSize int64 BitOffset int64 } func (b *BasicType) Basic() *BasicType { return b } func (t *BasicType) String() string { if t.Name != "" { return t.Name } return "?" } // A CharType represents a signed character type. type CharType struct { BasicType } // A UcharType represents an unsigned character type. type UcharType struct { BasicType } // An IntType represents a signed integer type. type IntType struct { BasicType } // A UintType represents an unsigned integer type. type UintType struct { BasicType } // A FloatType represents a floating point type. type FloatType struct { BasicType } // A ComplexType represents a complex floating point type. type ComplexType struct { BasicType } // A BoolType represents a boolean type. type BoolType struct { BasicType } // An AddrType represents a machine address type. type AddrType struct { BasicType } // An UnspecifiedType represents an implicit, unknown, ambiguous or nonexistent type. type UnspecifiedType struct { BasicType } // qualifiers // A QualType represents a type that has the C/C++ "const", "restrict", or "volatile" qualifier. type QualType struct { CommonType Qual string Type Type } func (t *QualType) String() string { return t.Qual + " " + t.Type.String() } func (t *QualType) Size() int64 { return t.Type.Size() } // An ArrayType represents a fixed size array type. type ArrayType struct { CommonType Type Type StrideBitSize int64 // if > 0, number of bits to hold each element Count int64 // if == -1, an incomplete array, like char x[]. } func (t *ArrayType) String() string { return "[" + strconv.FormatInt(t.Count, 10) + "]" + t.Type.String() } func (t *ArrayType) Size() int64 { if t.Count == -1 { return 0 } return t.Count * t.Type.Size() } // A VoidType represents the C void type. type VoidType struct { CommonType } func (t *VoidType) String() string { return "void" } // A PtrType represents a pointer type. type PtrType struct { CommonType Type Type } func (t *PtrType) String() string { return "*" + t.Type.String() } // A StructType represents a struct, union, or C++ class type. type StructType struct { CommonType StructName string Kind string // "struct", "union", or "class". Field []*StructField Incomplete bool // if true, struct, union, class is declared but not defined } // A StructField represents a field in a struct, union, or C++ class type. type StructField struct { Name string Type Type ByteOffset int64 ByteSize int64 BitOffset int64 // within the ByteSize bytes at ByteOffset BitSize int64 // zero if not a bit field } func (t *StructType) String() string { if t.StructName != "" { return t.Kind + " " + t.StructName } return t.Defn() } func (t *StructType) Defn() string { s := t.Kind if t.StructName != "" { s += " " + t.StructName } if t.Incomplete { s += " /*incomplete*/" return s } s += " {" for i, f := range t.Field { if i > 0 { s += "; " } s += f.Name + " " + f.Type.String() s += "@" + strconv.FormatInt(f.ByteOffset, 10) if f.BitSize > 0 { s += " : " + strconv.FormatInt(f.BitSize, 10) s += "@" + strconv.FormatInt(f.BitOffset, 10) } } s += "}" return s } // An EnumType represents an enumerated type. // The only indication of its native integer type is its ByteSize // (inside CommonType). type EnumType struct { CommonType EnumName string Val []*EnumValue } // An EnumValue represents a single enumeration value. type EnumValue struct { Name string Val int64 } func (t *EnumType) String() string { s := "enum" if t.EnumName != "" { s += " " + t.EnumName } s += " {"<|fim▁hole|> s += "; " } s += v.Name + "=" + strconv.FormatInt(v.Val, 10) } s += "}" return s } // A FuncType represents a function type. type FuncType struct { CommonType ReturnType Type ParamType []Type } func (t *FuncType) String() string { s := "func(" for i, t := range t.ParamType { if i > 0 { s += ", " } s += t.String() } s += ")" if t.ReturnType != nil { s += " " + t.ReturnType.String() } return s } // A DotDotDotType represents the variadic ... function parameter. type DotDotDotType struct { CommonType } func (t *DotDotDotType) String() string { return "..." } // A TypedefType represents a named type. type TypedefType struct { CommonType Type Type } func (t *TypedefType) String() string { return t.Name } func (t *TypedefType) Size() int64 { return t.Type.Size() } // typeReader is used to read from either the info section or the // types section. type typeReader interface { Seek(Offset) Next() (*Entry, error) clone() typeReader offset() Offset // AddressSize returns the size in bytes of addresses in the current // compilation unit. AddressSize() int } // Type reads the type at off in the DWARF ``info'' section. func (d *Data) Type(off Offset) (Type, error) { return d.readType("info", d.Reader(), off, d.typeCache, nil) } // readType reads a type from r at off of name. It adds types to the // type cache, appends new typedef types to typedefs, and computes the // sizes of types. Callers should pass nil for typedefs; this is used // for internal recursion. func (d *Data) readType(name string, r typeReader, off Offset, typeCache map[Offset]Type, typedefs *[]*TypedefType) (Type, error) { if t, ok := typeCache[off]; ok { return t, nil } r.Seek(off) e, err := r.Next() if err != nil { return nil, err } addressSize := r.AddressSize() if e == nil || e.Offset != off { return nil, DecodeError{name, off, "no type at offset"} } // If this is the root of the recursion, prepare to resolve // typedef sizes once the recursion is done. This must be done // after the type graph is constructed because it may need to // resolve cycles in a different order than readType // encounters them. if typedefs == nil { var typedefList []*TypedefType defer func() { for _, t := range typedefList { t.Common().ByteSize = t.Type.Size() } }() typedefs = &typedefList } // Parse type from Entry. // Must always set typeCache[off] before calling // d.readType recursively, to handle circular types correctly. var typ Type nextDepth := 0 // Get next child; set err if error happens. next := func() *Entry { if !e.Children { return nil } // Only return direct children. // Skip over composite entries that happen to be nested // inside this one. Most DWARF generators wouldn't generate // such a thing, but clang does. // See golang.org/issue/6472. for { kid, err1 := r.Next() if err1 != nil { err = err1 return nil } if kid == nil { err = DecodeError{name, r.offset(), "unexpected end of DWARF entries"} return nil } if kid.Tag == 0 { if nextDepth > 0 { nextDepth-- continue } return nil } if kid.Children { nextDepth++ } if nextDepth > 0 { continue } return kid } } // Get Type referred to by Entry's AttrType field. // Set err if error happens. Not having a type is an error. typeOf := func(e *Entry) Type { tval := e.Val(AttrType) var t Type switch toff := tval.(type) { case Offset: if t, err = d.readType(name, r.clone(), toff, typeCache, typedefs); err != nil { return nil } case uint64: if t, err = d.sigToType(toff); err != nil { return nil } default: // It appears that no Type means "void". return new(VoidType) } return t } switch e.Tag { case TagArrayType: // Multi-dimensional array. (DWARF v2 §5.4) // Attributes: // AttrType:subtype [required] // AttrStrideSize: size in bits of each element of the array // AttrByteSize: size of entire array // Children: // TagSubrangeType or TagEnumerationType giving one dimension. // dimensions are in left to right order. t := new(ArrayType) typ = t typeCache[off] = t if t.Type = typeOf(e); err != nil { goto Error } t.StrideBitSize, _ = e.Val(AttrStrideSize).(int64) // Accumulate dimensions, var dims []int64 for kid := next(); kid != nil; kid = next() { // TODO(rsc): Can also be TagEnumerationType // but haven't seen that in the wild yet. switch kid.Tag { case TagSubrangeType: count, ok := kid.Val(AttrCount).(int64) if !ok { // Old binaries may have an upper bound instead. count, ok = kid.Val(AttrUpperBound).(int64) if ok { count++ // Length is one more than upper bound. } else if len(dims) == 0 { count = -1 // As in x[]. } } dims = append(dims, count) case TagEnumerationType: err = DecodeError{name, kid.Offset, "cannot handle enumeration type as array bound"} goto Error } } if len(dims) == 0 { // LLVM generates this for x[]. dims = []int64{-1} } t.Count = dims[0] for i := len(dims) - 1; i >= 1; i-- { t.Type = &ArrayType{Type: t.Type, Count: dims[i]} } case TagBaseType: // Basic type. (DWARF v2 §5.1) // Attributes: // AttrName: name of base type in programming language of the compilation unit [required] // AttrEncoding: encoding value for type (encFloat etc) [required] // AttrByteSize: size of type in bytes [required] // AttrBitOffset: for sub-byte types, size in bits // AttrBitSize: for sub-byte types, bit offset of high order bit in the AttrByteSize bytes name, _ := e.Val(AttrName).(string) enc, ok := e.Val(AttrEncoding).(int64) if !ok { err = DecodeError{name, e.Offset, "missing encoding attribute for " + name} goto Error } switch enc { default: err = DecodeError{name, e.Offset, "unrecognized encoding attribute value"} goto Error case encAddress: typ = new(AddrType) case encBoolean: typ = new(BoolType) case encComplexFloat: typ = new(ComplexType) if name == "complex" { // clang writes out 'complex' instead of 'complex float' or 'complex double'. // clang also writes out a byte size that we can use to distinguish. // See issue 8694. switch byteSize, _ := e.Val(AttrByteSize).(int64); byteSize { case 8: name = "complex float" case 16: name = "complex double" } } case encFloat: typ = new(FloatType) case encSigned: typ = new(IntType) case encUnsigned: typ = new(UintType) case encSignedChar: typ = new(CharType) case encUnsignedChar: typ = new(UcharType) } typeCache[off] = typ t := typ.(interface { Basic() *BasicType }).Basic() t.Name = name t.BitSize, _ = e.Val(AttrBitSize).(int64) t.BitOffset, _ = e.Val(AttrBitOffset).(int64) case TagClassType, TagStructType, TagUnionType: // Structure, union, or class type. (DWARF v2 §5.5) // Attributes: // AttrName: name of struct, union, or class // AttrByteSize: byte size [required] // AttrDeclaration: if true, struct/union/class is incomplete // Children: // TagMember to describe one member. // AttrName: name of member [required] // AttrType: type of member [required] // AttrByteSize: size in bytes // AttrBitOffset: bit offset within bytes for bit fields // AttrBitSize: bit size for bit fields // AttrDataMemberLoc: location within struct [required for struct, class] // There is much more to handle C++, all ignored for now. t := new(StructType) typ = t typeCache[off] = t switch e.Tag { case TagClassType: t.Kind = "class" case TagStructType: t.Kind = "struct" case TagUnionType: t.Kind = "union" } t.StructName, _ = e.Val(AttrName).(string) t.Incomplete = e.Val(AttrDeclaration) != nil t.Field = make([]*StructField, 0, 8) var lastFieldType *Type var lastFieldBitOffset int64 for kid := next(); kid != nil; kid = next() { if kid.Tag == TagMember { f := new(StructField) if f.Type = typeOf(kid); err != nil { goto Error } switch loc := kid.Val(AttrDataMemberLoc).(type) { case []byte: // TODO: Should have original compilation // unit here, not unknownFormat. b := makeBuf(d, unknownFormat{}, "location", 0, loc) if b.uint8() != opPlusUconst { err = DecodeError{name, kid.Offset, "unexpected opcode"} goto Error } f.ByteOffset = int64(b.uint()) if b.err != nil { err = b.err goto Error } case int64: f.ByteOffset = loc } haveBitOffset := false f.Name, _ = kid.Val(AttrName).(string) f.ByteSize, _ = kid.Val(AttrByteSize).(int64) f.BitOffset, haveBitOffset = kid.Val(AttrBitOffset).(int64) f.BitSize, _ = kid.Val(AttrBitSize).(int64) t.Field = append(t.Field, f) bito := f.BitOffset if !haveBitOffset { bito = f.ByteOffset * 8 } if bito == lastFieldBitOffset && t.Kind != "union" { // Last field was zero width. Fix array length. // (DWARF writes out 0-length arrays as if they were 1-length arrays.) zeroArray(lastFieldType) } lastFieldType = &f.Type lastFieldBitOffset = bito } } if t.Kind != "union" { b, ok := e.Val(AttrByteSize).(int64) if ok && b*8 == lastFieldBitOffset { // Final field must be zero width. Fix array length. zeroArray(lastFieldType) } } case TagConstType, TagVolatileType, TagRestrictType: // Type modifier (DWARF v2 §5.2) // Attributes: // AttrType: subtype t := new(QualType) typ = t typeCache[off] = t if t.Type = typeOf(e); err != nil { goto Error } switch e.Tag { case TagConstType: t.Qual = "const" case TagRestrictType: t.Qual = "restrict" case TagVolatileType: t.Qual = "volatile" } case TagEnumerationType: // Enumeration type (DWARF v2 §5.6) // Attributes: // AttrName: enum name if any // AttrByteSize: bytes required to represent largest value // Children: // TagEnumerator: // AttrName: name of constant // AttrConstValue: value of constant t := new(EnumType) typ = t typeCache[off] = t t.EnumName, _ = e.Val(AttrName).(string) t.Val = make([]*EnumValue, 0, 8) for kid := next(); kid != nil; kid = next() { if kid.Tag == TagEnumerator { f := new(EnumValue) f.Name, _ = kid.Val(AttrName).(string) f.Val, _ = kid.Val(AttrConstValue).(int64) n := len(t.Val) if n >= cap(t.Val) { val := make([]*EnumValue, n, n*2) copy(val, t.Val) t.Val = val } t.Val = t.Val[0 : n+1] t.Val[n] = f } } case TagPointerType: // Type modifier (DWARF v2 §5.2) // Attributes: // AttrType: subtype [not required! void* has no AttrType] // AttrAddrClass: address class [ignored] t := new(PtrType) typ = t typeCache[off] = t if e.Val(AttrType) == nil { t.Type = &VoidType{} break } t.Type = typeOf(e) case TagSubroutineType: // Subroutine type. (DWARF v2 §5.7) // Attributes: // AttrType: type of return value if any // AttrName: possible name of type [ignored] // AttrPrototyped: whether used ANSI C prototype [ignored] // Children: // TagFormalParameter: typed parameter // AttrType: type of parameter // TagUnspecifiedParameter: final ... t := new(FuncType) typ = t typeCache[off] = t if t.ReturnType = typeOf(e); err != nil { goto Error } t.ParamType = make([]Type, 0, 8) for kid := next(); kid != nil; kid = next() { var tkid Type switch kid.Tag { default: continue case TagFormalParameter: if tkid = typeOf(kid); err != nil { goto Error } case TagUnspecifiedParameters: tkid = &DotDotDotType{} } t.ParamType = append(t.ParamType, tkid) } case TagTypedef: // Typedef (DWARF v2 §5.3) // Attributes: // AttrName: name [required] // AttrType: type definition [required] t := new(TypedefType) typ = t typeCache[off] = t t.Name, _ = e.Val(AttrName).(string) t.Type = typeOf(e) case TagUnspecifiedType: // Unspecified type (DWARF v3 §5.2) // Attributes: // AttrName: name t := new(UnspecifiedType) typ = t typeCache[off] = t t.Name, _ = e.Val(AttrName).(string) } if err != nil { goto Error } { b, ok := e.Val(AttrByteSize).(int64) if !ok { b = -1 switch t := typ.(type) { case *TypedefType: // Record that we need to resolve this // type's size once the type graph is // constructed. *typedefs = append(*typedefs, t) case *PtrType: b = int64(addressSize) } } typ.Common().ByteSize = b } return typ, nil Error: // If the parse fails, take the type out of the cache // so that the next call with this offset doesn't hit // the cache and return success. delete(typeCache, off) return nil, err } func zeroArray(t *Type) { if t == nil { return } at, ok := (*t).(*ArrayType) if !ok || at.Type.Size() == 0 { return } // Make a copy to avoid invalidating typeCache. tt := *at tt.Count = 0 *t = &tt }<|fim▁end|>
for i, v := range t.Val { if i > 0 {
<|file_name|>goku_test.go<|end_file_name|><|fim▁begin|>package goku import ( "runtime" "testing" "time" ) type TestReader struct{} func (self TestReader) Read() ([]Message, error) { time.Sleep(10 * time.Millisecond) return []Message{"Hello"}, nil } type TestWriter struct { msgs []Message } func (self *TestWriter) Write(msgs []Message) error { for _, msg := range msgs { self.msgs = append(self.msgs, msg) } return nil } func TestNewQueueSetupReader(t *testing.T) { t.Parallel() q := NewQueue(&TestReader{}, nil) select { case <-q.Sender(): break<|fim▁hole|>} func TestNewQueueSetsupWriter(t *testing.T) { t.Parallel() writer := &TestWriter{} q := NewQueue(nil, writer) q.Receiver() <- "Hello" q.Receiver() <- "World" // Ensure writer gorouting run runtime.Gosched() if count := len(writer.msgs); count != 2 { t.Errorf("messages written == %d, want 2", count) } }<|fim▁end|>
case <-time.After(100 * time.Millisecond): t.Fatal("Timeout expired") }
<|file_name|>testPotentialIntegrals.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from icqsol.bem.icqPotentialIntegrals import PotentialIntegrals from icqsol.bem.icqLaplaceMatrices import getFullyQualifiedSharedLibraryName import numpy def testObserverOnA(order): paSrc = numpy.array([0., 0., 0.]) pbSrc = numpy.array([1., 0., 0.]) pcSrc = numpy.array([0., 1., 0.]) xObs = paSrc integral = PotentialIntegrals(xObs, pbSrc, pcSrc, order).getIntegralOneOverR() exact = numpy.sqrt(2.) * numpy.arcsinh(1.) print('testObserverOnA: order = {0} integral = {1} exact = {2} error = {3}'.format(\ order, integral, exact, integral - exact)) def testObserverOnB(order): paSrc = numpy.array([0., 0., 0.]) pbSrc = numpy.array([1., 0., 0.]) pcSrc = numpy.array([0., 1., 0.]) xObs = pbSrc integral = PotentialIntegrals(xObs, pcSrc, paSrc, order).getIntegralOneOverR() exact = numpy.arcsinh(1.) print('testObserverOnB: order = {0} integral = {1} exact = {2} error = {3}'.format(\ order, integral, exact, integral - exact)) def testObserverOnC(order): paSrc = numpy.array([0., 0., 0.]) pbSrc = numpy.array([1., 0., 0.]) pcSrc = numpy.array([0., 1., 0.]) xObs = pcSrc integral = PotentialIntegrals(xObs, paSrc, pbSrc, order).getIntegralOneOverR() exact = numpy.arcsinh(1.) print('testObserverOnC: order = {0} integral = {1} exact = {2} error = {3}'.format(\ order, integral, exact, integral - exact)) def testOffDiagonal2Triangles(): import vtk import sys import pkg_resources PY_MAJOR_VERSION = sys.version_info[0] from ctypes import cdll, c_long, POINTER, c_double pdata = vtk.vtkPolyData() points = vtk.vtkPoints() points.SetNumberOfPoints(4) points.SetPoint(0, (0., 0., 0.)) points.SetPoint(1, (1., 0., 0.)) points.SetPoint(2, (1., 1., 0.)) points.SetPoint(3, (0., 1., 0.)) pdata.SetPoints(points) pdata.Allocate(2, 1) ptIds = vtk.vtkIdList() ptIds.SetNumberOfIds(3)<|fim▁hole|> ptIds.SetId(0, 1); ptIds.SetId(1, 2); ptIds.SetId(2, 3) pdata.InsertNextCell(vtk.VTK_POLYGON, ptIds) addr = int(pdata.GetAddressAsString('vtkPolyData')[5:], 0) gMat = numpy.zeros((2,2), numpy.float64) if PY_MAJOR_VERSION < 3: fullyQualifiedLibName = pkg_resources.resource_filename('icqsol', 'icqLaplaceMatricesCpp.so') else: libName = pkg_resources.resource_filename('icqsol', 'icqLaplaceMatricesCpp') fullyQualifiedLibName = getFullyQualifiedSharedLibraryName(libName) lib = cdll.LoadLibrary(fullyQualifiedLibName) lib.computeOffDiagonalTerms(c_long(addr), gMat.ctypes.data_as(POINTER(c_double))) exact = numpy.array([[0, -0.07635909342383773],[-0.07635909342383773, 0]]) print(gMat) print(exact) print('error: {0}'.format(gMat - exact)) if __name__ == '__main__': for order in range(1, 6): testObserverOnA(order) testObserverOnB(order) testObserverOnC(order) print('-'*80) testOffDiagonal2Triangles()<|fim▁end|>
ptIds.SetId(0, 0); ptIds.SetId(1, 1); ptIds.SetId(2, 3) pdata.InsertNextCell(vtk.VTK_POLYGON, ptIds)
<|file_name|>learning_curve.py<|end_file_name|><|fim▁begin|>"""Utilities to evaluate models with respect to a variable """ # Author: Alexander Fabisch <afabisch@informatik.uni-bremen.de> # # License: BSD 3 clause import warnings import numpy as np from .base import is_classifier, clone from .cross_validation import check_cv from .externals.joblib import Parallel, delayed from .cross_validation import _safe_split, _score, _fit_and_score from .metrics.scorer import check_scoring from .utils import indexable from .utils.fixes import astype warnings.warn("This module has been deprecated in favor of the " "model_selection module into which all the functions are moved." " This module will be removed in 0.20", DeprecationWarning) __all__ = ['learning_curve', 'validation_curve'] def learning_curve(estimator, X, y, train_sizes=np.linspace(0.1, 1.0, 5), cv=None, scoring=None, exploit_incremental_learning=False, n_jobs=1, pre_dispatch="all", verbose=0): """Learning curve. Determines cross-validated training and test scores for different training set sizes. A cross-validation generator splits the whole dataset k times in training and test data. Subsets of the training set with varying sizes will be used to train the estimator and a score for each training subset size and the test set will be computed. Afterwards, the scores will be averaged over all k runs for each training subset size. Read more in the :ref:`User Guide <learning_curves>`. Parameters ---------- estimator : object type that implements the "fit" and "predict" methods An object of that type which is cloned for each validation. X : array-like, shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. y : array-like, shape (n_samples) or (n_samples, n_features), optional Target relative to X for classification or regression; None for unsupervised learning. train_sizes : array-like, shape (n_ticks,), dtype float or int Relative or absolute numbers of training examples that will be used to generate the learning curve. If the dtype is float, it is regarded as a fraction of the maximum size of the training set (that is determined by the selected validation method), i.e. it has to be within (0, 1]. Otherwise it is interpreted as absolute sizes of the training sets. Note that for classification the number of samples usually have to be big enough to contain at least one sample from each class. (default: np.linspace(0.1, 1.0, 5)) cv : int, cross-validation generator or an iterable, optional Determines the cross-validation splitting strategy. Possible inputs for cv are: - None, to use the default 3-fold cross-validation, - integer, to specify the number of folds. - An object to be used as a cross-validation generator. - An iterable yielding train/test splits. For integer/None inputs, if the estimator is a classifier and ``y`` is either binary or multiclass, :class:`StratifiedKFold` used. In all other cases, :class:`KFold` is used. Refer :ref:`User Guide <cross_validation>` for the various cross-validation strategies that can be used here. scoring : string, callable or None, optional, default: None A string (see model evaluation documentation) or a scorer callable object / function with signature ``scorer(estimator, X, y)``. exploit_incremental_learning : boolean, optional, default: False If the estimator supports incremental learning, this will be used to speed up fitting for different training set sizes. n_jobs : integer, optional Number of jobs to run in parallel (default 1). pre_dispatch : integer or string, optional Number of predispatched jobs for parallel execution (default is all). The option can reduce the allocated memory. The string can be an expression like '2*n_jobs'. verbose : integer, optional Controls the verbosity: the higher, the more messages. Returns ------- train_sizes_abs : array, shape = (n_unique_ticks,), dtype int Numbers of training examples that has been used to generate the learning curve. Note that the number of ticks might be less than n_ticks because duplicate entries will be removed. train_scores : array, shape (n_ticks, n_cv_folds) Scores on training sets. test_scores : array, shape (n_ticks, n_cv_folds) Scores on test set. Notes ----- See :ref:`examples/model_selection/plot_learning_curve.py <example_model_selection_plot_learning_curve.py>` """ if exploit_incremental_learning and not hasattr(estimator, "partial_fit"): raise ValueError("An estimator must support the partial_fit interface " "to exploit incremental learning") X, y = indexable(X, y) # Make a list since we will be iterating multiple times over the folds cv = list(check_cv(cv, X, y, classifier=is_classifier(estimator))) scorer = check_scoring(estimator, scoring=scoring) # HACK as long as boolean indices are allowed in cv generators if cv[0][0].dtype == bool: new_cv = [] for i in range(len(cv)): new_cv.append((np.nonzero(cv[i][0])[0], np.nonzero(cv[i][1])[0])) cv = new_cv n_max_training_samples = len(cv[0][0]) # Because the lengths of folds can be significantly different, it is # not guaranteed that we use all of the available training data when we # use the first 'n_max_training_samples' samples. train_sizes_abs = _translate_train_sizes(train_sizes, n_max_training_samples) n_unique_ticks = train_sizes_abs.shape[0] if verbose > 0: print("[learning_curve] Training set sizes: " + str(train_sizes_abs)) parallel = Parallel(n_jobs=n_jobs, pre_dispatch=pre_dispatch, verbose=verbose) if exploit_incremental_learning: classes = np.unique(y) if is_classifier(estimator) else None out = parallel(delayed(_incremental_fit_estimator)( clone(estimator), X, y, classes, train, test, train_sizes_abs, scorer, verbose) for train, test in cv) else: out = parallel(delayed(_fit_and_score)( clone(estimator), X, y, scorer, train[:n_train_samples], test, verbose, parameters=None, fit_params=None, return_train_score=True) for train, test in cv for n_train_samples in train_sizes_abs) out = np.array(out)[:, :2] n_cv_folds = out.shape[0] // n_unique_ticks out = out.reshape(n_cv_folds, n_unique_ticks, 2) out = np.asarray(out).transpose((2, 1, 0)) return train_sizes_abs, out[0], out[1] def _translate_train_sizes(train_sizes, n_max_training_samples): """Determine absolute sizes of training subsets and validate 'train_sizes'. Examples: _translate_train_sizes([0.5, 1.0], 10) -> [5, 10] _translate_train_sizes([5, 10], 10) -> [5, 10] Parameters ---------- train_sizes : array-like, shape (n_ticks,), dtype float or int Numbers of training examples that will be used to generate the learning curve. If the dtype is float, it is regarded as a fraction of 'n_max_training_samples', i.e. it has to be within (0, 1]. n_max_training_samples : int Maximum number of training samples (upper bound of 'train_sizes'). Returns ------- train_sizes_abs : array, shape (n_unique_ticks,), dtype int Numbers of training examples that will be used to generate the learning curve. Note that the number of ticks might be less than n_ticks because duplicate entries will be removed. """ train_sizes_abs = np.asarray(train_sizes) n_ticks = train_sizes_abs.shape[0] n_min_required_samples = np.min(train_sizes_abs) n_max_required_samples = np.max(train_sizes_abs) if np.issubdtype(train_sizes_abs.dtype, np.float): if n_min_required_samples <= 0.0 or n_max_required_samples > 1.0: raise ValueError("train_sizes has been interpreted as fractions " "of the maximum number of training samples and " "must be within (0, 1], but is within [%f, %f]." % (n_min_required_samples, n_max_required_samples)) train_sizes_abs = astype(train_sizes_abs * n_max_training_samples, dtype=np.int, copy=False) train_sizes_abs = np.clip(train_sizes_abs, 1, n_max_training_samples) else: if (n_min_required_samples <= 0 or n_max_required_samples > n_max_training_samples): raise ValueError("train_sizes has been interpreted as absolute " "numbers of training samples and must be within " "(0, %d], but is within [%d, %d]."<|fim▁hole|> % (n_max_training_samples, n_min_required_samples, n_max_required_samples)) train_sizes_abs = np.unique(train_sizes_abs) if n_ticks > train_sizes_abs.shape[0]: warnings.warn("Removed duplicate entries from 'train_sizes'. Number " "of ticks will be less than than the size of " "'train_sizes' %d instead of %d)." % (train_sizes_abs.shape[0], n_ticks), RuntimeWarning) return train_sizes_abs def _incremental_fit_estimator(estimator, X, y, classes, train, test, train_sizes, scorer, verbose): """Train estimator on training subsets incrementally and compute scores.""" train_scores, test_scores = [], [] partitions = zip(train_sizes, np.split(train, train_sizes)[:-1]) for n_train_samples, partial_train in partitions: train_subset = train[:n_train_samples] X_train, y_train = _safe_split(estimator, X, y, train_subset) X_partial_train, y_partial_train = _safe_split(estimator, X, y, partial_train) X_test, y_test = _safe_split(estimator, X, y, test, train_subset) if y_partial_train is None: estimator.partial_fit(X_partial_train, classes=classes) else: estimator.partial_fit(X_partial_train, y_partial_train, classes=classes) train_scores.append(_score(estimator, X_train, y_train, scorer)) test_scores.append(_score(estimator, X_test, y_test, scorer)) return np.array((train_scores, test_scores)).T def validation_curve(estimator, X, y, param_name, param_range, cv=None, scoring=None, n_jobs=1, pre_dispatch="all", verbose=0): """Validation curve. Determine training and test scores for varying parameter values. Compute scores for an estimator with different values of a specified parameter. This is similar to grid search with one parameter. However, this will also compute training scores and is merely a utility for plotting the results. Read more in the :ref:`User Guide <validation_curve>`. Parameters ---------- estimator : object type that implements the "fit" and "predict" methods An object of that type which is cloned for each validation. X : array-like, shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. y : array-like, shape (n_samples) or (n_samples, n_features), optional Target relative to X for classification or regression; None for unsupervised learning. param_name : string Name of the parameter that will be varied. param_range : array-like, shape (n_values,) The values of the parameter that will be evaluated. cv : int, cross-validation generator or an iterable, optional Determines the cross-validation splitting strategy. Possible inputs for cv are: - None, to use the default 3-fold cross-validation, - integer, to specify the number of folds. - An object to be used as a cross-validation generator. - An iterable yielding train/test splits. For integer/None inputs, if the estimator is a classifier and ``y`` is either binary or multiclass, :class:`StratifiedKFold` used. In all other cases, :class:`KFold` is used. Refer :ref:`User Guide <cross_validation>` for the various cross-validation strategies that can be used here. scoring : string, callable or None, optional, default: None A string (see model evaluation documentation) or a scorer callable object / function with signature ``scorer(estimator, X, y)``. n_jobs : integer, optional Number of jobs to run in parallel (default 1). pre_dispatch : integer or string, optional Number of predispatched jobs for parallel execution (default is all). The option can reduce the allocated memory. The string can be an expression like '2*n_jobs'. verbose : integer, optional Controls the verbosity: the higher, the more messages. Returns ------- train_scores : array, shape (n_ticks, n_cv_folds) Scores on training sets. test_scores : array, shape (n_ticks, n_cv_folds) Scores on test set. Notes ----- See :ref:`examples/model_selection/plot_validation_curve.py <example_model_selection_plot_validation_curve.py>` """ X, y = indexable(X, y) cv = check_cv(cv, X, y, classifier=is_classifier(estimator)) scorer = check_scoring(estimator, scoring=scoring) parallel = Parallel(n_jobs=n_jobs, pre_dispatch=pre_dispatch, verbose=verbose) out = parallel(delayed(_fit_and_score)( estimator, X, y, scorer, train, test, verbose, parameters={param_name: v}, fit_params=None, return_train_score=True) for train, test in cv for v in param_range) out = np.asarray(out)[:, :2] n_params = len(param_range) n_cv_folds = out.shape[0] // n_params out = out.reshape(n_cv_folds, n_params, 2).transpose((2, 1, 0)) return out[0], out[1]<|fim▁end|>
<|file_name|>base.py<|end_file_name|><|fim▁begin|># Django settings for opendata project. import os from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS from django.core.urlresolvers import reverse_lazy PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) PROJECT_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, os.pardir)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Victor Rocha', 'vrocha@caktusgroup.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'opendata', 'USER': '', 'PASSWORD': '', 'HOST': '',<|fim▁hole|># Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # On Unix systems, a value of None will cause Django to use the same # timezone as the operating system. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'America/New_York' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale. USE_L10N = True # If you set this to False, Django will not use timezone-aware datetimes. USE_TZ = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'public', 'media') # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = os.path.join(PROJECT_ROOT, 'public', 'static') # URL prefix for static files. # Example: "http://media.lawrence.com/static/" STATIC_URL = '/static/' # Additional locations of static files STATICFILES_DIRS = ( os.path.join(PROJECT_PATH, 'static'), ) # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder', # 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.Loader', ) TEMPLATE_CONTEXT_PROCESSORS += ( 'django.core.context_processors.request', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'pagination.middleware.PaginationMiddleware', 'django_sorting.middleware.SortingMiddleware', 'django.middleware.locale.LocaleMiddleware', ) ROOT_URLCONF = 'opendata.urls' # Python dotted path to the WSGI application used by Django's runserver. WSGI_APPLICATION = 'opendata.wsgi.application' TEMPLATE_DIRS = ( os.path.join(PROJECT_PATH, 'templates'), ) FIXTURE_DIRS = ( os.path.join(PROJECT_PATH, 'fixtures'), ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.comments', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.sitemaps', # Internal apps 'opendata.catalog', 'opendata.requests', 'opendata.search', 'opendata.comments', 'opendata.suggestions', # External apps 'south', 'compressor', 'captcha', 'scribbler', 'widget_tweaks', 'haystack', 'selectable', 'djcelery', 'djangoratings', 'pagination', 'django_sorting', 'registration', 'sorl.thumbnail', 'secure_input', ) # Comments app COMMENTS_APP = 'opendata.comments' # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error when DEBUG=False. # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize your logging configuration. LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse' } }, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'filters': ['require_debug_false'], 'class': 'django.utils.log.AdminEmailHandler' }, 'console':{ 'level': 'DEBUG', 'class': 'logging.StreamHandler', }, }, 'loggers': { # '': { # 'handlers': ['console'], # 'level': 'DEBUG', # }, 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } } LOGIN_REDIRECT_URL = reverse_lazy('home') # Application settings SKIP_SOUTH_TESTS = True COMPRESS_PRECOMPILERS = ( ('text/less', 'lessc {infile} {outfile}'), ) # Celery setup import djcelery djcelery.setup_loader() # Haystack conf HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'URL': 'http://127.0.0.1:8983/solr' }, } HAYSTACK_SIGNAL_PROCESSOR = 'opendata.search.index_processors.M2MRealtimeSignalProcessor' HAYSTACK_SEARCH_RESULTS_PER_PAGE = 5 ACCOUNT_ACTIVATION_DAYS = 7 DEFAULT_FROM_EMAIL = "Open NC <info@open-nc.org>" # DATEFORMAT DATE_INPUT_FORMATS = ( '%m/%d/%Y', '%m/%d/%y', '%Y-%m-%d', # '2006-10-25', '10/25/2006', '10/25/06' # '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006' # '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006' # '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006' # '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006' ) RECAPTCHA_PUBLIC_KEY = '6LcyhuoSAAAAAPHpTGWpqvIZvO5rBttlZisQl2q3' RECAPTCHA_USE_SSL = True # WYSIWYG Editor ALLOWED_TAGS = ('p', 'ol', 'ul', 'li', 'br')<|fim▁end|>
'PORT': '', } }
<|file_name|>card-list.ts<|end_file_name|><|fim▁begin|>import { Component, Input, ContentChild, ViewChildren, QueryList } from 'angular2/core'; import template from './card-list.html!text'; import { CardHeader } from './header/card-header'; import { CardBody } from './body/card-body'; import { Card } from './card/card'; export { CardHeader, CardBody }; @Component({ selector: 'conf-card-list', template: template, directives: [Card], }) export class CardList { @Input() source: any[]; @ContentChild(CardHeader) head: CardHeader; @ContentChild(CardBody)<|fim▁hole|> @ViewChildren(Card) cards: QueryList<Card>; collapseAll() { this.cards.map((card: Card) => card.close()); } }<|fim▁end|>
body: CardBody;
<|file_name|>taskbar_ia.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="ia"> <context> <name>LxQtTaskButton</name> <message> <location filename="../lxqttaskbutton.cpp" line="367"/> <source>Application</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="400"/> <source>To &amp;Desktop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="402"/> <source>&amp;All Desktops</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="410"/> <source>Desktop &amp;%1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="417"/> <source>&amp;To Current Desktop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="426"/> <source>Ma&amp;ximize</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="433"/> <source>Maximize vertically</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="438"/> <source>Maximize horizontally</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="444"/> <source>&amp;Restore</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="448"/> <source>Mi&amp;nimize</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="454"/> <source>Roll down</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="460"/> <source>Roll up</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="468"/> <source>&amp;Layer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="470"/> <source>Always on &amp;top</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="476"/> <source>&amp;Normal</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="482"/> <source>Always on &amp;bottom</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbutton.cpp" line="490"/> <source>&amp;Close</source> <translation type="unfinished"></translation> </message> </context> <context> <name>LxQtTaskbarConfiguration</name> <message> <location filename="../lxqttaskbarconfiguration.ui" line="14"/> <source>Task Manager Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="20"/> <source>Taskbar Contents</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="26"/> <source>Show windows from current desktop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="49"/> <source>Taskbar Appearance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="65"/> <source>Minimum button width</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="88"/> <source>Auto&amp;rotate buttons when the panel is vertical</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="98"/> <source>Close on middle-click</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.ui" line="36"/><|fim▁hole|> <message> <location filename="../lxqttaskbarconfiguration.ui" line="55"/> <source>Button style</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.cpp" line="46"/> <source>Icon and text</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.cpp" line="47"/> <source>Only icon</source> <translation type="unfinished"></translation> </message> <message> <location filename="../lxqttaskbarconfiguration.cpp" line="48"/> <source>Only text</source> <translation type="unfinished"></translation> </message> </context> </TS><|fim▁end|>
<source>Show windows from all desktops</source> <translation type="unfinished"></translation> </message>
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django.db import models from django.template.defaultfilters import truncatechars class Setting(models.Model): name = models.CharField(max_length=100, unique=True, db_index=True) value = models.TextField(blank=True, default='') value_type = models.CharField(max_length=1, choices=(('s', 'string'), ('i', 'integer'), ('f', 'float'), ('b', 'boolean'))) hide_value_in_list = models.BooleanField(default=False) <|fim▁hole|> return "%s = %s (%s)" % (self.name, "**скрыто**" if self.hide_value_in_list else truncatechars(self.value, 150), self.get_value_type_display()) def get_value(self): val = self.value types = {'s': str, 'i': int, 'b': (lambda v: v.lower() == "true"), 'f': float} return types[self.value_type](val) class Meta: verbose_name = 'Параметр' verbose_name_plural = 'Параметры'<|fim▁end|>
def __str__(self):
<|file_name|>security.js<|end_file_name|><|fim▁begin|>BrowserPolicy.content.allowOriginForAll("*.googleapis.com"); BrowserPolicy.content.allowOriginForAll("*.gstatic.com"); BrowserPolicy.content.allowOriginForAll("*.bootstrapcdn.com"); BrowserPolicy.content.allowOriginForAll("*.geobytes.com");<|fim▁hole|>BrowserPolicy.content.allowFontDataUrl();<|fim▁end|>
<|file_name|>component.js<|end_file_name|><|fim▁begin|><|fim▁hole|> hasErrors: Ember.computed.notEmpty('model.errors.[]') });<|fim▁end|>
import Ember from 'ember'; export default Ember.Component.extend({
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>//! Converts XML strings into a DOM structure //! //! ### Example //! //! ``` //! use document::parser::Parser; //! let parser = Parser::new(); //! let xml = r#"<?xml version="1.0"?> //! <!-- Awesome data incoming --> //! <data awesome="true"> //! <datum>Science</datum> //! <datum><![CDATA[Literature]]></datum> //! <datum>Math &gt; others</datum> //! </data>"#; //! let doc = parser.parse(xml).ok().expect("Failed to parse"); //! ``` //! //! ### Error handling //! //! When an error occurs in an alternation, //! we return the most interesting failure. //! //! When an error occurs while parsing zero-or-more items, //! we return the items parsed in addition to the failure point. //! If the next required item fails, //! we return the more interesting error of the two. //! //! When we have multiple errors, //! the *most interesting error* is the one that occurred last in the input. //! We assume that this will be closest to what the user intended. //! //! ### Unresolved questions: //! //! - Should zero-or-one mimic zero-or-more? //! - Should we restart from both the failure point and the original start point? //! - Should we preserve a tree of all the failures? //! //! ### Known issues //! //! - `panic!` is used in recoverable situations. //! //! ### Influences //! //! - http://www.scheidecker.net/2012/12/03/parser-combinators/ use std::ascii::AsciiExt; use std::char::from_u32; use std::num::from_str_radix; use std::cell::RefCell; use self::xmlstr::XmlStr; use super::dom4; mod xmlstr; pub struct Parser; #[deriving(Show)] enum AttributeValue<'a> { ReferenceAttributeValue(Reference<'a>), LiteralAttributeValue(&'a str), } #[deriving(Show)] enum Reference<'a> { EntityReference(&'a str), DecimalCharReference(&'a str), HexCharReference(&'a str), } struct BestFailure<'a> { failure: Option<ParseFailure<'a>> } impl<'a> BestFailure<'a> { fn new() -> BestFailure<'a> { BestFailure { failure: None, } } fn with(failure: ParseFailure<'a>) -> BestFailure<'a> { BestFailure { failure: Some(failure), } } fn push(&mut self, failure: ParseFailure<'a>) { if let Some(old) = self.failure { if failure.point.offset <= old.point.offset { return; } } self.failure = Some(failure) } fn pop(&self) -> ParseFailure<'a> { self.failure.expect("No errors found") } } macro_rules! try_parse( ($e:expr) => ({ match $e { Success(x) => x, Partial((_, pf, _)) | Failure(pf) => return Failure(pf), } }) ) macro_rules! try_partial_parse( ($e:expr) => ({ match $e { Success((v, xml)) => (v, BestFailure::new(), xml), Partial((v, pf, xml)) => (v, BestFailure::with(pf), xml), Failure(pf) => return Failure(pf), } }) ) macro_rules! try_resume_after_partial_failure( ($partial:expr, $e:expr) => ({ match $e { Success(x) => x, Partial((_, pf, _)) | Failure(pf) => { let mut partial = $partial; partial.push(pf); return Failure(partial.pop()) }, } }); ) // Pattern: zero-or-one macro_rules! parse_optional( ($parser:expr, $start:expr) => ({ match $parser { Success((value, next)) => (Some(value), next), Partial((value, _, next)) => (Some(value), next), Failure(_) => (None, $start), } }) ) // Pattern: alternate macro_rules! parse_alternate_rec( ($start:expr, $errors:expr, {}) => ({ Failure($errors.pop()) }); ($start:expr, $errors:expr, { [$parser:expr -> $transformer:expr], $([$parser_rest:expr -> $transformer_rest:expr],)* }) => ( match $parser($start) { Success((val, next)) => Success(($transformer(val), next)), Partial((_, pf, _)) | Failure(pf) => { $errors.push(pf); parse_alternate_rec!($start, $errors, { $([$parser_rest -> $transformer_rest],)* }) }, } ); ) macro_rules! parse_alternate( ($start:expr, { $([$parser_rest:expr -> $transformer_rest:expr],)* }) => ({ let mut errors = BestFailure::new(); parse_alternate_rec!($start, errors, { $([$parser_rest -> $transformer_rest],)* }) }); ) // Pattern: zero-or-more macro_rules! parse_zero_or_more( ($start:expr, $parser:expr) => {{ let mut err; let mut start = $start; loop { let (_, next_start) = match $parser(start) { Success(x) => x, Partial((_, pf, _)) | Failure(pf) => { err = Some(pf); break } }; start = next_start; } Partial(((), err.unwrap(), start)) }}; ) #[deriving(Show,Clone,PartialEq)] struct StartPoint<'a> { offset: uint, s: &'a str, } impl<'a> StartPoint<'a> { fn slice_at(&self, position: uint) -> (&'a str, StartPoint<'a>) { (self.s.slice_to(position), StartPoint{offset: self.offset + position, s: self.s.slice_from(position)}) } fn consume_to(&self, l: Option<uint>) -> ParseResult<'a, &'a str> { match l { None => Failure(ParseFailure{point: self.clone()}), Some(position) => Success(self.slice_at(position)), } } fn consume_space(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_space()) } fn consume_attribute_value(&self, quote: &str) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_attribute(quote)) } fn consume_literal(&self, literal: &str) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_literal(literal)) } fn consume_name(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_name()) } fn consume_version_num(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_version_num()) } fn consume_decimal_chars(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_decimal_chars()) } fn consume_hex_chars(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_hex_chars()) } fn consume_char_data(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_char_data()) } fn consume_cdata(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_cdata()) } fn consume_comment(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_comment()) } fn consume_pi_value(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_pi_value()) } fn consume_start_tag(&self) -> ParseResult<'a, &'a str> { self.consume_to(self.s.end_of_start_tag()) } } struct ParseFailure<'a> { point: StartPoint<'a>, } enum ParseResult<'a, T> { Success((T, StartPoint<'a>)), Partial((T, ParseFailure<'a>, StartPoint<'a>)), Failure((ParseFailure<'a>)), } impl Parser { pub fn new() -> Parser { Parser } fn parse_eq<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, ()> { let (_, xml) = parse_optional!(xml.consume_space(), xml); let (_, xml) = try_parse!(xml.consume_literal("=")); let (_, xml) = parse_optional!(xml.consume_space(), xml); Success(((), xml)) } fn parse_version_info<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, &'a str> { let (_, xml) = try_parse!(xml.consume_space()); let (_, xml) = try_parse!(xml.consume_literal("version")); let (_, xml) = try_parse!(self.parse_eq(xml)); let (version, xml) = try_parse!( self.parse_quoted_value(xml, |xml, _| xml.consume_version_num()) ); Success((version, xml)) } fn parse_xml_declaration<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_literal("<?xml")); let (_version, xml) = try_parse!(self.parse_version_info(xml)); // let (encoding, xml) = parse_optional!(self.parse_encoding_declaration(xml)); // let (standalone, xml) = parse_optional!(self.parse_standalone_declaration(xml)); let (_, xml) = parse_optional!(xml.consume_space(), xml); let (_, xml) = try_parse!(xml.consume_literal("?>")); Success(((), xml)) } fn parse_misc<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { parse_alternate!(xml, { [|xml: StartPoint<'a>| self.parse_comment(xml, sink) -> |_| ()], [|xml: StartPoint<'a>| self.parse_pi(xml, sink) -> |_| ()], [|xml: StartPoint<'a>| xml.consume_space() -> |_| ()], }) } fn parse_miscs<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { parse_zero_or_more!(xml, |xml| self.parse_misc(xml, sink)) } fn parse_prolog<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = parse_optional!(self.parse_xml_declaration(xml), xml); self.parse_miscs(xml, sink) } fn parse_one_quoted_value<'a, T>(&self, xml: StartPoint<'a>, quote: &str, f: |StartPoint<'a>| -> ParseResult<'a, T>) -> ParseResult<'a, T> { let (_, xml) = try_parse!(xml.consume_literal(quote)); let (value, f, xml) = try_partial_parse!(f(xml)); let (_, xml) = try_resume_after_partial_failure!(f, xml.consume_literal(quote)); Success((value, xml)) } fn parse_quoted_value<'a, T>(&self, xml: StartPoint<'a>, f: |StartPoint<'a>, &str| -> ParseResult<'a, T>) -> ParseResult<'a, T> { parse_alternate!(xml, { [|xml| self.parse_one_quoted_value(xml, "'", |xml| f(xml, "'")) -> |v| v], [|xml| self.parse_one_quoted_value(xml, "\"", |xml| f(xml, "\"")) -> |v| v], }) } fn parse_attribute_values<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S, quote: &str) -> ParseResult<'a, ()> { parse_zero_or_more!(xml, |xml| parse_alternate!(xml, { [|xml: StartPoint<'a>| xml.consume_attribute_value(quote) -> |v| sink.attribute_value(LiteralAttributeValue(v))], [|xml: StartPoint<'a>| self.parse_reference(xml) -> |e| sink.attribute_value(ReferenceAttributeValue(e))], })) } fn parse_attribute<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_space()); let (name, xml) = try_parse!(xml.consume_name()); sink.attribute_start(name); let (_, xml) = try_parse!(self.parse_eq(xml)); let (_, xml) = try_parse!( self.parse_quoted_value(xml, |xml, quote| self.parse_attribute_values(xml, sink, quote)) ); sink.attribute_end(name); Success(((), xml)) } fn parse_attributes<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { parse_zero_or_more!(xml, |xml| self.parse_attribute(xml, sink)) } fn parse_element_end<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, &'a str> { let (_, xml) = try_parse!(xml.consume_literal("</")); let (name, xml) = try_parse!(xml.consume_name()); let (_, xml) = parse_optional!(xml.consume_space(), xml); let (_, xml) = try_parse!(xml.consume_literal(">")); Success((name, xml)) } fn parse_char_data<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (text, xml) = try_parse!(xml.consume_char_data()); sink.text(text); Success(((), xml)) } fn parse_cdata<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_literal("<![CDATA[")); let (text, xml) = try_parse!(xml.consume_cdata()); let (_, xml) = try_parse!(xml.consume_literal("]]>")); sink.text(text); Success(((), xml)) } fn parse_entity_ref<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, Reference<'a>> { let (_, xml) = try_parse!(xml.consume_literal("&")); let (name, xml) = try_parse!(xml.consume_name()); let (_, xml) = try_parse!(xml.consume_literal(";")); Success((EntityReference(name), xml)) } fn parse_decimal_char_ref<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, Reference<'a>> { let (_, xml) = try_parse!(xml.consume_literal("&#")); let (dec, xml) = try_parse!(xml.consume_decimal_chars()); let (_, xml) = try_parse!(xml.consume_literal(";")); Success((DecimalCharReference(dec), xml)) } fn parse_hex_char_ref<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, Reference<'a>> { let (_, xml) = try_parse!(xml.consume_literal("&#x")); let (hex, xml) = try_parse!(xml.consume_hex_chars()); let (_, xml) = try_parse!(xml.consume_literal(";")); Success((HexCharReference(hex), xml)) } fn parse_reference<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, Reference<'a>> { parse_alternate!(xml, { [|xml| self.parse_entity_ref(xml) -> |e| e], [|xml| self.parse_decimal_char_ref(xml) -> |d| d], [|xml| self.parse_hex_char_ref(xml) -> |h| h], }) } fn parse_comment<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_literal("<!--")); let (text, xml) = try_parse!(xml.consume_comment()); let (_, xml) = try_parse!(xml.consume_literal("-->")); sink.comment(text); Success(((), xml)) } fn parse_pi_value<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, &'a str> { let (_, xml) = try_parse!(xml.consume_space()); xml.consume_pi_value() } fn parse_pi<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_literal("<?")); let (target, xml) = try_parse!(xml.consume_name()); let (value, xml) = parse_optional!(self.parse_pi_value(xml), xml); let (_, xml) = try_parse!(xml.consume_literal("?>")); if target.eq_ignore_ascii_case("xml") { panic!("Can't use xml as a PI target"); } sink.processing_instruction(target, value); Success(((), xml)) } fn parse_content<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = parse_optional!(self.parse_char_data(xml, sink), xml); // Pattern: zero-or-more let mut start = xml; loop { let xxx = parse_alternate!(start, { [|xml| self.parse_element(xml, sink) -> |_| ()], [|xml| self.parse_cdata(xml, sink) -> |_| ()], [|xml| self.parse_reference(xml) -> |r| sink.reference(r)], [|xml| self.parse_comment(xml, sink) -> |_| ()], [|xml| self.parse_pi(xml, sink) -> |_| ()], }); let (_, after) = match xxx { Success(x) => x, Partial((_, pf, _)) | Failure(pf) => return Partial(((), pf, start)), }; let (_, xml) = parse_optional!(self.parse_char_data(after, sink), after); start = xml; } } fn parse_empty_element_tail<'a>(&self, xml: StartPoint<'a>) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_literal("/>")); Success(((), xml)) } fn parse_non_empty_element_tail<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S, start_name: &str) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_literal(">")); let (_, f, xml) = try_partial_parse!(self.parse_content(xml, sink)); let (end_name, xml) = try_resume_after_partial_failure!(f, self.parse_element_end(xml)); if start_name != end_name { panic!("tags do not match!"); } Success(((), xml)) } fn parse_element<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, xml) = try_parse!(xml.consume_start_tag()); let (name, xml) = try_parse!(xml.consume_name()); sink.element_start(name); let (_, f, xml) = try_partial_parse!(self.parse_attributes(xml, sink)); let (_, xml) = parse_optional!(xml.consume_space(), xml); let (_, xml) = try_resume_after_partial_failure!(f, parse_alternate!(xml, { [|xml| self.parse_empty_element_tail(xml) -> |_| ()], [|xml| self.parse_non_empty_element_tail(xml, sink, name) -> |_| ()], }) ); sink.element_end(name); Success(((), xml)) } fn parse_document<'a, 's, S : ParserSink>(&self, xml: StartPoint<'a>, sink: &'s mut S) -> ParseResult<'a, ()> { let (_, f, xml) = try_partial_parse!(self.parse_prolog(xml, sink)); let (_, xml) = try_resume_after_partial_failure!(f, self.parse_element(xml, sink)); let (_, xml) = parse_optional!(self.parse_miscs(xml, sink), xml); Success(((), xml)) } pub fn parse<'a>(&self, xml: &'a str) -> Result<super::Package, uint> { let xml = StartPoint{offset: 0, s: xml}; let package = super::Package::new(); { let doc = package.as_document(); let mut hydrator = SaxHydrator::new(&doc); match self.parse_document(xml, &mut hydrator) { Success(x) => x, Partial((_, pf, _)) | Failure(pf) => return Err(pf.point.offset), }; } // TODO: Check fully parsed Ok(package) } } trait ParserSink { fn element_start(&mut self, name: &str); fn element_end(&mut self, name: &str); fn comment(&mut self, text: &str);<|fim▁hole|> fn attribute_start(&mut self, name: &str); fn attribute_value(&mut self, value: AttributeValue); fn attribute_end(&mut self, name: &str); } struct SaxHydrator<'d> { doc: &'d dom4::Document<'d>, stack: Vec<dom4::Element<'d>>, attr_value: RefCell<String>, } impl<'d> SaxHydrator<'d> { fn new(doc: &'d dom4::Document<'d>) -> SaxHydrator<'d> { SaxHydrator { doc: doc, stack: Vec::new(), attr_value: RefCell::new(String::new()), } } fn current_element(&self) -> &dom4::Element<'d> { self.stack.last().expect("No element to append to") } fn append_text(&self, text: dom4::Text<'d>) { self.current_element().append_child(text); } fn append_to_either<T : dom4::ToChildOfRoot<'d>>(&self, child: T) { match self.stack.last() { None => self.doc.root().append_child(child), Some(parent) => parent.append_child(child.to_child_of_root()), } } fn decode_reference<T>(&self, ref_data: Reference, cb: |&str| -> T) -> T { match ref_data { DecimalCharReference(d) => { let code: u32 = from_str_radix(d, 10).expect("Not valid decimal"); let c: char = from_u32(code).expect("Not a valid codepoint"); let s = String::from_char(1, c); cb(s.as_slice()) }, HexCharReference(h) => { let code: u32 = from_str_radix(h, 16).expect("Not valid hex"); let c: char = from_u32(code).expect("Not a valid codepoint"); let s = String::from_char(1, c); cb(s.as_slice()) }, EntityReference(e) => { let s = match e { "amp" => "&", "lt" => "<", "gt" => ">", "apos" => "'", "quot" => "\"", _ => panic!("unknown entity"), }; cb(s) } } } } impl<'d> ParserSink for SaxHydrator<'d> { fn element_start(&mut self, name: &str) { let element = self.doc.create_element(name); self.append_to_either(element); self.stack.push(element); } fn element_end(&mut self, _name: &str) { self.stack.pop(); } fn comment(&mut self, text: &str) { let comment = self.doc.create_comment(text); self.append_to_either(comment); } fn processing_instruction(&mut self, target: &str, value: Option<&str>) { let pi = self.doc.create_processing_instruction(target, value); self.append_to_either(pi); } fn text(&mut self, text: &str) { let text = self.doc.create_text(text); self.append_text(text); } fn reference(&mut self, reference: Reference) { let text = self.decode_reference(reference, |s| self.doc.create_text(s)); self.append_text(text); } fn attribute_start(&mut self, _name: &str) { self.attr_value.borrow_mut().clear(); } fn attribute_value(&mut self, value: AttributeValue) { match value { LiteralAttributeValue(v) => self.attr_value.borrow_mut().push_str(v), ReferenceAttributeValue(r) => self.decode_reference(r, |s| self.attr_value.borrow_mut().push_str(s)), } } fn attribute_end(&mut self, name: &str) { self.current_element().set_attribute_value(name, self.attr_value.borrow().as_slice()); } } #[cfg(test)] mod test { use super::Parser; use super::super::Package; use super::super::dom4; macro_rules! assert_str_eq( ($l:expr, $r:expr) => (assert_eq!($l.as_slice(), $r.as_slice())); ) fn full_parse(xml: &str) -> Result<Package, uint> { Parser::new() .parse(xml) } fn quick_parse(xml: &str) -> Package { full_parse(xml) .ok() .expect("Failed to parse the XML string") } fn top<'d>(doc: &'d dom4::Document<'d>) -> dom4::Element<'d> { doc.root().children()[0].element().unwrap() } #[test] fn a_document_with_a_prolog() { let package = quick_parse("<?xml version='1.0' ?><hello />"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.name(), "hello"); } #[test] fn a_document_with_a_prolog_with_double_quotes() { let package = quick_parse("<?xml version=\"1.0\" ?><hello />"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.name(), "hello"); } #[test] fn a_document_with_a_single_element() { let package = quick_parse("<hello />"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.name(), "hello"); } #[test] fn an_element_with_an_attribute() { let package = quick_parse("<hello scope='world'/>"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.attribute_value("scope").unwrap(), "world"); } #[test] fn an_element_with_an_attribute_using_double_quotes() { let package = quick_parse("<hello scope=\"world\"/>"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.attribute_value("scope").unwrap(), "world"); } #[test] fn an_element_with_multiple_attributes() { let package = quick_parse("<hello scope='world' happy='true'/>"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.attribute_value("scope").unwrap(), "world"); assert_str_eq!(top.attribute_value("happy").unwrap(), "true"); } #[test] fn an_attribute_with_references() { let package = quick_parse("<log msg='I &lt;3 math' />"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.attribute_value("msg").unwrap(), "I <3 math"); } #[test] fn an_element_that_is_not_self_closing() { let package = quick_parse("<hello></hello>"); let doc = package.as_document(); let top = top(&doc); assert_str_eq!(top.name(), "hello"); } #[test] fn nested_elements() { let package = quick_parse("<hello><world/></hello>"); let doc = package.as_document(); let hello = top(&doc); let world = hello.children()[0].element().unwrap(); assert_str_eq!(world.name(), "world"); } #[test] fn multiply_nested_elements() { let package = quick_parse("<hello><awesome><world/></awesome></hello>"); let doc = package.as_document(); let hello = top(&doc); let awesome = hello.children()[0].element().unwrap(); let world = awesome.children()[0].element().unwrap(); assert_str_eq!(world.name(), "world"); } #[test] fn nested_elements_with_attributes() { let package = quick_parse("<hello><world name='Earth'/></hello>"); let doc = package.as_document(); let hello = top(&doc); let world = hello.children()[0].element().unwrap(); assert_str_eq!(world.attribute_value("name").unwrap(), "Earth"); } #[test] fn element_with_text() { let package = quick_parse("<hello>world</hello>"); let doc = package.as_document(); let hello = top(&doc); let text = hello.children()[0].text().unwrap(); assert_str_eq!(text.text(), "world"); } #[test] fn element_with_cdata() { let package = quick_parse("<words><![CDATA[I have & and < !]]></words>"); let doc = package.as_document(); let words = top(&doc); let text = words.children()[0].text().unwrap(); assert_str_eq!(text.text(), "I have & and < !"); } #[test] fn element_with_comment() { let package = quick_parse("<hello><!-- A comment --></hello>"); let doc = package.as_document(); let words = top(&doc); let comment = words.children()[0].comment().unwrap(); assert_str_eq!(comment.text(), " A comment "); } #[test] fn comment_before_top_element() { let package = quick_parse("<!-- A comment --><hello />"); let doc = package.as_document(); let comment = doc.root().children()[0].comment().unwrap(); assert_str_eq!(comment.text(), " A comment "); } #[test] fn multiple_comments_before_top_element() { let xml = r" <!--Comment 1--> <!--Comment 2--> <hello />"; let package = quick_parse(xml); let doc = package.as_document(); let comment1 = doc.root().children()[0].comment().unwrap(); let comment2 = doc.root().children()[1].comment().unwrap(); assert_str_eq!(comment1.text(), "Comment 1"); assert_str_eq!(comment2.text(), "Comment 2"); } #[test] fn multiple_comments_after_top_element() { let xml = r" <hello /> <!--Comment 1--> <!--Comment 2-->"; let package = quick_parse(xml); let doc = package.as_document(); let comment1 = doc.root().children()[1].comment().unwrap(); let comment2 = doc.root().children()[2].comment().unwrap(); assert_str_eq!(comment1.text(), "Comment 1"); assert_str_eq!(comment2.text(), "Comment 2"); } #[test] fn element_with_processing_instruction() { let package = quick_parse("<hello><?device?></hello>"); let doc = package.as_document(); let hello = top(&doc); let pi = hello.children()[0].processing_instruction().unwrap(); assert_str_eq!(pi.target(), "device"); assert_eq!(pi.value(), None); } #[test] fn top_level_processing_instructions() { let xml = r" <?output printer?> <hello /> <?validated?>"; let package = quick_parse(xml); let doc = package.as_document(); let pi1 = doc.root().children()[0].processing_instruction().unwrap(); let pi2 = doc.root().children()[2].processing_instruction().unwrap(); assert_str_eq!(pi1.target(), "output"); assert_str_eq!(pi1.value().unwrap(), "printer"); assert_str_eq!(pi2.target(), "validated"); assert_eq!(pi2.value(), None); } #[test] fn element_with_decimal_char_reference() { let package = quick_parse("<math>2 &#62; 1</math>"); let doc = package.as_document(); let math = top(&doc); let text1 = math.children()[0].text().unwrap(); let text2 = math.children()[1].text().unwrap(); let text3 = math.children()[2].text().unwrap(); assert_str_eq!(text1.text(), "2 "); assert_str_eq!(text2.text(), ">"); assert_str_eq!(text3.text(), " 1"); } #[test] fn element_with_hexidecimal_char_reference() { let package = quick_parse("<math>1 &#x3c; 2</math>"); let doc = package.as_document(); let math = top(&doc); let text1 = math.children()[0].text().unwrap(); let text2 = math.children()[1].text().unwrap(); let text3 = math.children()[2].text().unwrap(); assert_str_eq!(text1.text(), "1 "); assert_str_eq!(text2.text(), "<"); assert_str_eq!(text3.text(), " 2"); } #[test] fn element_with_entity_reference() { let package = quick_parse("<math>I &lt;3 math</math>"); let doc = package.as_document(); let math = top(&doc); let text1 = math.children()[0].text().unwrap(); let text2 = math.children()[1].text().unwrap(); let text3 = math.children()[2].text().unwrap(); assert_str_eq!(text1.text(), "I "); assert_str_eq!(text2.text(), "<"); assert_str_eq!(text3.text(), "3 math"); } #[test] fn element_with_mixed_children() { let package = quick_parse("<hello>to <!--fixme--><a><![CDATA[the]]></a><?world?></hello>"); let doc = package.as_document(); let hello = top(&doc); let text = hello.children()[0].text().unwrap(); let comment = hello.children()[1].comment().unwrap(); let element = hello.children()[2].element().unwrap(); let pi = hello.children()[3].processing_instruction().unwrap(); assert_str_eq!(text.text(), "to "); assert_str_eq!(comment.text(), "fixme"); assert_str_eq!(element.name(), "a"); assert_str_eq!(pi.target(), "world"); } #[test] fn failure_no_open_brace() { let r = full_parse("hi />"); assert_eq!(r, Err(0)); } #[test] fn failure_unclosed_tag() { let r = full_parse("<hi"); assert_eq!(r, Err(3)); } #[test] fn failure_unexpected_space() { let r = full_parse("<hi / >"); assert_eq!(r, Err(4)); } #[test] fn failure_attribute_without_open_quote() { let r = full_parse("<hi oops=value' />"); assert_eq!(r, Err(9)); } #[test] fn failure_attribute_without_close_quote() { let r = full_parse("<hi oops='value />"); assert_eq!(r, Err(18)); } #[test] fn failure_unclosed_attribute_and_tag() { let r = full_parse("<hi oops='value"); assert_eq!(r, Err(15)); } #[test] fn failure_nested_unclosed_tag() { let r = full_parse("<hi><oops</hi>"); assert_eq!(r, Err(9)); } #[test] fn failure_nested_unexpected_space() { let r = full_parse("<hi><oops / ></hi>"); assert_eq!(r, Err(10)); } #[test] fn failure_malformed_entity_reference() { let r = full_parse("<hi>Entity: &;</hi>"); assert_eq!(r, Err(13)); } #[test] fn failure_nested_malformed_entity_reference() { let r = full_parse("<hi><bye>Entity: &;</bye></hi>"); assert_eq!(r, Err(18)); } #[test] fn failure_nested_attribute_without_open_quote() { let r = full_parse("<hi><bye oops=value' /></hi>"); assert_eq!(r, Err(14)); } #[test] fn failure_nested_attribute_without_close_quote() { let r = full_parse("<hi><bye oops='value /></hi>"); assert_eq!(r, Err(23)); } #[test] fn failure_nested_unclosed_attribute_and_tag() { let r = full_parse("<hi><bye oops='value</hi>"); assert_eq!(r, Err(20)); } }<|fim▁end|>
fn processing_instruction(&mut self, target: &str, value: Option<&str>); fn text(&mut self, text: &str); fn reference(&mut self, reference: Reference);
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>fn main() { let x = 5; let x = x + 1;<|fim▁hole|>}<|fim▁end|>
let x = x * 2; println!("The value of x is: {}", x);
<|file_name|>errno.rs<|end_file_name|><|fim▁begin|>use imp::errno as errno; const ZMQ_HAUSNUMERO: i32 = 156384712; pub const EACCES: i32 = errno::EACCES; pub const EADDRINUSE: i32 = errno::EADDRINUSE; pub const EAGAIN: i32 = errno::EAGAIN; pub const EBUSY: i32 = errno::EBUSY; pub const ECONNREFUSED: i32 = errno::ECONNREFUSED; pub const EFAULT: i32 = errno::EFAULT; pub const EINTR: i32 = errno::EINTR; pub const EHOSTUNREACH: i32 = errno::EHOSTUNREACH; pub const EINPROGRESS: i32 = errno::EINPROGRESS; pub const EINVAL: i32 = errno::EINVAL; pub const EMFILE: i32 = errno::EMFILE; pub const EMSGSIZE: i32 = errno::EMSGSIZE; pub const ENAMETOOLONG: i32 = errno::ENAMETOOLONG; pub const ENODEV: i32 = errno::ENODEV; pub const ENOENT: i32 = errno::ENOENT; pub const ENOMEM: i32 = errno::ENOMEM; pub const ENOTCONN: i32 = errno::ENOTCONN; pub const ENOTSOCK: i32 = errno::ENOTSOCK; pub const EPROTO: i32 = errno::EPROTO; pub const EPROTONOSUPPORT: i32 = errno::EPROTONOSUPPORT; #[cfg(not(target_os = "windows"))] pub const ENOTSUP: i32 = (ZMQ_HAUSNUMERO + 1); #[cfg(target_os = "windows")] pub const ENOTSUP: i32 = errno::ENOTSUP; pub const ENOBUFS: i32 = errno::ENOBUFS; pub const ENETDOWN: i32 = errno::ENETDOWN; pub const EADDRNOTAVAIL: i32 = errno::EADDRNOTAVAIL; // native zmq error codes<|fim▁hole|>pub const ENOCOMPATPROTO: i32 = (ZMQ_HAUSNUMERO + 52); pub const ETERM: i32 = (ZMQ_HAUSNUMERO + 53); pub const EMTHREAD: i32 = (ZMQ_HAUSNUMERO + 54);<|fim▁end|>
pub const EFSM: i32 = (ZMQ_HAUSNUMERO + 51);
<|file_name|>tessera.ts<|end_file_name|><|fim▁begin|>import { Searchable } from '../common' <|fim▁hole|>import { Tesseramento } from './tesseramento' export class Tessera implements Searchable{ id: number; numero: number; anno: Tesseramento; quota ?: number; id_statino ?: number; constructor(fields?: Partial<Tessera>){ if(fields) { Object.assign(this, fields); if(fields.anno){ this.anno = new Tesseramento(fields.anno); } } } contains(needle: string): boolean { return this.numero && this.numero.toString().indexOf(needle) != -1; } clone(): Tessera{ let toReturn = new Tessera(this); return toReturn; } }<|fim▁end|>
<|file_name|>lifelines.py<|end_file_name|><|fim▁begin|>import time import RPi.GPIO as GPIO GPIO.VERSION GPIO.setmode(GPIO.BOARD) GPIO.setup(11,GPIO.OUT)<|fim▁hole|> from smbus import SMBus bus = SMBus(1) def read_ain(i): global bus #bus.write_byte_data(0x48, 0x40 | ((i) & 0x03), 0) bus.write_byte(0x48, i) bus.read_byte(0x48)#first 2 are last state, and last state repeated. bus.read_byte(0x48) return bus.read_byte(0x48) while(True): alcohol = read_ain(2)*0.001 heartrate = read_ain(1) print "-------------------------\n" print("Alcohol Sensor: {0:.3f}%".format(alcohol)) if(heartrate<60) or (heartrate>100): GPIO.output(11,0) GPIO.output(12,1) else: GPIO.output(11,1) GPIO.output(12,0) print("Heart Rate Sensor: {0:.0f} BPM\n".format(heartrate)) time.sleep(1)#sec<|fim▁end|>
GPIO.setup(12,GPIO.OUT)
<|file_name|>validate_match.py<|end_file_name|><|fim▁begin|>''' Created on Mar 4, 2017 @author: preiniger ''' def __validate_alliance(alliance_color, teams, official_sr): team1sr = None team2sr = None team3sr = None # TODO: there has to be a better way... but I'd rather not touch the DB for sr in teams[0].scoreresult_set.all(): if sr.match.matchNumber == official_sr.official_match.matchNumber: team1sr = sr break for sr in teams[1].scoreresult_set.all(): if sr.match.matchNumber == official_sr.official_match.matchNumber: team2sr = sr break for sr in teams[2].scoreresult_set.all(): if sr.match.matchNumber == official_sr.official_match.matchNumber: team3sr = sr break team_srs = [team1sr, team2sr, team3sr] team_srs = [sr for sr in team_srs if sr != None] warning_messages = [] error_messages = [] for team in teams: if team != official_sr.team1 and team != official_sr.team2 and team != official_sr.team3: error_messages.append((alliance_color + " team mismatch", teams, team.teamNumber)) if len(team_srs) != 3: error_messages.append((alliance_color + " wrong number of teams", 3, len(team_srs))) tele_high_tubes = 0 tele_mid_tubes = 0 tele_low_tubes = 0 for sr in team_srs: tele_high_tubes += sr.high_tubes_hung tele_mid_tubes += sr.mid_tubes_hung tele_low_tubes += sr.low_tubes_hung total_score = tele_high_tubes * 3 + tele_mid_tubes * 2 + tele_low_tubes<|fim▁hole|> if total_score != official_sr.total_score: warning_messages.append((alliance_color + " total score", official_sr.total_score, total_score)) return warning_messages, error_messages def validate_match(match, official_match, official_srs): error_level = 0 warning_messages = [] error_messages = [] red_teams = [match.red1, match.red2, match.red3] blue_teams = [match.blue1, match.blue2, match.blue3] red_sr = official_srs[0] blue_sr = official_srs[1] red_warning, red_error = __validate_alliance("Red", red_teams, red_sr) blue_warning, blue_error = __validate_alliance("Blue", blue_teams, blue_sr) warning_messages.extend(red_warning) warning_messages.extend(blue_warning) error_messages.extend(red_error) error_messages.extend(blue_error) if len(error_messages) != 0: error_level = 2 elif len(warning_messages) != 0: error_level = 1 return error_level, warning_messages, error_messages<|fim▁end|>
<|file_name|>VirtualFolder.ts<|end_file_name|><|fim▁begin|>import { IResource, SimpleCallback, ReturnCallback, ResourceType } from '../IResource' import { Readable, Writable } from 'stream' import { StandardResource } from '../std/StandardResource' import { ResourceChildren } from '../std/ResourceChildren' import { VirtualResource } from './VirtualResource' import { FSManager } from '../../../manager/v1/FSManager' import { Errors } from '../../../Errors' export class VirtualFolder extends VirtualResource { children : ResourceChildren constructor(name : string, parent ?: IResource, fsManager ?: FSManager) { super(name, parent, fsManager); this.children = new ResourceChildren(); } // ****************************** Std meta-data ****************************** // type(callback : ReturnCallback<ResourceType>) { callback(null, ResourceType.Directory) } // ****************************** Content ****************************** // write(targetSource : boolean, callback : ReturnCallback<Writable>) { callback(Errors.InvalidOperation, null); } read(targetSource : boolean, callback : ReturnCallback<Readable>) { callback(Errors.InvalidOperation, null); } mimeType(targetSource : boolean, callback : ReturnCallback<string>) { callback(Errors.NoMimeTypeForAFolder, null); } size(targetSource : boolean, callback : ReturnCallback<number>) { callback(Errors.NoSizeForAFolder, null); } // ****************************** Children ****************************** // addChild(resource : IResource, callback : SimpleCallback) { this.children.add(resource, (e) => { if(!e) resource.parent = this; callback(e); }); } removeChild(resource : IResource, callback : SimpleCallback) { this.children.remove(resource, (e) => { if(!e) resource.parent = null;<|fim▁hole|> } getChildren(callback : ReturnCallback<IResource[]>) { callback(null, this.children.children); } }<|fim▁end|>
callback(e); });
<|file_name|>mtk-route.js<|end_file_name|><|fim▁begin|>!(function(root) { function Grapnel(opts) { "use strict"; var self = this; // Scope reference this.events = {}; // Event Listeners this.state = null; // Router state object this.options = opts || {}; // Options this.options.env = this.options.env || (!!(Object.keys(root).length === 0 && process && process.browser !== true) ? 'server' : 'client'); this.options.mode = this.options.mode || (!!(this.options.env !== 'server' && this.options.pushState && root.history && root.history.pushState) ? 'pushState' : 'hashchange'); this.version = '0.6.4'; // Version if ('function' === typeof root.addEventListener) { root.addEventListener('hashchange', function() { self.trigger('hashchange'); }); root.addEventListener('popstate', function(e) { // Make sure popstate doesn't run on init -- this is a common issue with Safari and old versions of Chrome if (self.state && self.state.previousState === null) return false; self.trigger('navigate'); }); } return this; }; /** * Create a RegExp Route from a string * This is the heart of the router and I've made it as small as possible! * * @param {String} Path of route * @param {Array} Array of keys to fill * @param {Bool} Case sensitive comparison * @param {Bool} Strict mode */ Grapnel.regexRoute = function(path, keys, sensitive, strict) { if (path instanceof RegExp) return path; if (path instanceof Array) path = '(' + path.join('|') + ')'; // Build route RegExp path = path.concat(strict ? '' : '/?') .replace(/\/\(/g, '(?:/') .replace(/\+/g, '__plus__') .replace(/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?/g, function(_, slash, format, key, capture, optional) { keys.push({ name: key, optional: !!optional }); slash = slash || ''; return '' + (optional ? '' : slash) + '(?:' + (optional ? slash : '') + (format || '') + (capture || (format && '([^/.]+?)' || '([^/]+?)')) + ')' + (optional || ''); }) .replace(/([\/.])/g, '\\$1') .replace(/__plus__/g, '(.+)') .replace(/\*/g, '(.*)'); return new RegExp('^' + path + '$', sensitive ? '' : 'i'); }; /** * ForEach workaround utility * * @param {Array} to iterate * @param {Function} callback */ Grapnel._forEach = function(a, callback) { if (typeof Array.prototype.forEach === 'function') return Array.prototype.forEach.call(a, callback); // Replicate forEach() return function(c, next) { for (var i = 0, n = this.length; i < n; ++i) { c.call(next, this[i], i, this); } }.call(a, callback); }; /** * Add an route and handler * * @param {String|RegExp} route name * @return {self} Router */ Grapnel.prototype.get = Grapnel.prototype.add = function(route) { var self = this, middleware = Array.prototype.slice.call(arguments, 1, -1), handler = Array.prototype.slice.call(arguments, -1)[0], request = new Request(route); var invoke = function RouteHandler() { // Build request parameters var req = request.parse(self.path()); // Check if matches are found if (req.match) { // Match found var extra = { route: route, params: req.params, req: req, regex: req.match }; // Create call stack -- add middleware first, then handler var stack = new CallStack(self, extra).enqueue(middleware.concat(handler)); // Trigger main event self.trigger('match', stack, req); // Continue? if (!stack.runCallback) return self; // Previous state becomes current state stack.previousState = self.state; // Save new state self.state = stack; // Prevent this handler from being called if parent handler in stack has instructed not to propagate any more events if (stack.parent() && stack.parent().propagateEvent === false) { stack.propagateEvent = false; return self; } // Call handler stack.callback(); } // Returns self return self; }; // Event name var eventName = (self.options.mode !== 'pushState' && self.options.env !== 'server') ? 'hashchange' : 'navigate'; // Invoke when route is defined, and once again when app navigates return invoke().on(eventName, invoke); }; /** * Fire an event listener * * @param {String} event name * @param {Mixed} [attributes] Parameters that will be applied to event handler * @return {self} Router */ Grapnel.prototype.trigger = function(event) { var self = this, params = Array.prototype.slice.call(arguments, 1); // Call matching events if (this.events[event]) { Grapnel._forEach(this.events[event], function(fn) { fn.apply(self, params); }); } return this; }; /** * Add an event listener * * @param {String} event name (multiple events can be called when separated by a space " ") * @param {Function} callback * @return {self} Router */ Grapnel.prototype.on = Grapnel.prototype.bind = function(event, handler) { var self = this, events = event.split(' '); Grapnel._forEach(events, function(event) { if (self.events[event]) { self.events[event].push(handler); } else { self.events[event] = [handler]; } }); return this; }; /** * Allow event to be called only once * * @param {String} event name(s) * @param {Function} callback * @return {self} Router */ Grapnel.prototype.once = function(event, handler) { var ran = false; return this.on(event, function() { if (ran) return false; ran = true; handler.apply(this, arguments); handler = null; return true; }); }; /** * @param {String} Route context (without trailing slash) * @param {[Function]} Middleware (optional) * @return {Function} Adds route to context */ Grapnel.prototype.context = function(context) { var self = this, middleware = Array.prototype.slice.call(arguments, 1); return function() { var value = arguments[0], submiddleware = (arguments.length > 2) ? Array.prototype.slice.call(arguments, 1, -1) : [], handler = Array.prototype.slice.call(arguments, -1)[0], prefix = (context.slice(-1) !== '/' && value !== '/' && value !== '') ? context + '/' : context, path = (value.substr(0, 1) !== '/') ? value : value.substr(1), pattern = prefix + path; return self.add.apply(self, [pattern].concat(middleware).concat(submiddleware).concat([handler])); } }; /** * Navigate through history API * * @param {String} Pathname * @return {self} Router */ Grapnel.prototype.navigate = function(path) { return this.path(path).trigger('navigate'); }; <|fim▁hole|> if ('string' === typeof pathname) { // Set path if (self.options.mode === 'pushState') { frag = (self.options.root) ? (self.options.root + pathname) : pathname; root.history.pushState({}, null, frag); } else if (root.location) { root.location.hash = (self.options.hashBang ? '!' : '') + pathname; } else { root._pathname = pathname || ''; } return this; } else if ('undefined' === typeof pathname) { // Get path if (self.options.mode === 'pushState') { frag = root.location.pathname.replace(self.options.root, ''); } else if (self.options.mode !== 'pushState' && root.location) { frag = (root.location.hash) ? root.location.hash.split((self.options.hashBang ? '#!' : '#'))[1] : ''; } else { frag = root._pathname || ''; } return frag; } else if (pathname === false) { // Clear path if (self.options.mode === 'pushState') { root.history.pushState({}, null, self.options.root || '/'); } else if (root.location) { root.location.hash = (self.options.hashBang) ? '!' : ''; } return self; } }; /** * Create routes based on an object * * @param {Object} [Options, Routes] * @param {Object Routes} * @return {self} Router */ Grapnel.listen = function() { var opts, routes; if (arguments[0] && arguments[1]) { opts = arguments[0]; routes = arguments[1]; } else { routes = arguments[0]; } // Return a new Grapnel instance return (function() { // TODO: Accept multi-level routes for (var key in routes) { this.add.call(this, key, routes[key]); } return this; }).call(new Grapnel(opts || {})); }; /** * Create a call stack that can be enqueued by handlers and middleware * * @param {Object} Router * @param {Object} Extend * @return {self} CallStack */ function CallStack(router, extendObj) { this.stack = CallStack.global.slice(0); this.router = router; this.runCallback = true; this.callbackRan = false; this.propagateEvent = true; this.value = router.path(); for (var key in extendObj) { this[key] = extendObj[key]; } return this; }; /** * Build request parameters and allow them to be checked against a string (usually the current path) * * @param {String} Route * @return {self} Request */ function Request(route) { this.route = route; this.keys = []; this.regex = Grapnel.regexRoute(route, this.keys); }; // This allows global middleware CallStack.global = []; /** * Prevent a callback from being called * * @return {self} CallStack */ CallStack.prototype.preventDefault = function() { this.runCallback = false; }; /** * Prevent any future callbacks from being called * * @return {self} CallStack */ CallStack.prototype.stopPropagation = function() { this.propagateEvent = false; }; /** * Get parent state * * @return {Object} Previous state */ CallStack.prototype.parent = function() { var hasParentEvents = !!(this.previousState && this.previousState.value && this.previousState.value == this.value); return (hasParentEvents) ? this.previousState : false; }; /** * Run a callback (calls to next) * * @return {self} CallStack */ CallStack.prototype.callback = function() { this.callbackRan = true; this.timeStamp = Date.now(); this.next(); }; /** * Add handler or middleware to the stack * * @param {Function|Array} Handler or a array of handlers * @param {Int} Index to start inserting * @return {self} CallStack */ CallStack.prototype.enqueue = function(handler, atIndex) { var handlers = (!Array.isArray(handler)) ? [handler] : ((atIndex < handler.length) ? handler.reverse() : handler); while (handlers.length) { this.stack.splice(atIndex || this.stack.length + 1, 0, handlers.shift()); } return this; }; /** * Call to next item in stack -- this adds the `req`, `event`, and `next()` arguments to all middleware * * @return {self} CallStack */ CallStack.prototype.next = function() { var self = this; return this.stack.shift().call(this.router, this.req, this, function next() { self.next.call(self); }); }; /** * Match a path string -- returns a request object if there is a match -- returns false otherwise * * @return {Object} req */ Request.prototype.parse = function(path) { var match = path.match(this.regex), self = this; var req = { params: {}, keys: this.keys, matches: (match || []).slice(1), match: match }; // Build parameters Grapnel._forEach(req.matches, function(value, i) { var key = (self.keys[i] && self.keys[i].name) ? self.keys[i].name : i; // Parameter key will be its key or the iteration index. This is useful if a wildcard (*) is matched req.params[key] = (value) ? decodeURIComponent(value) : undefined; }); return req; }; // Append utility constructors to Grapnel Grapnel.CallStack = CallStack; Grapnel.Request = Request; if ('function' === typeof root.define && !root.define.amd.grapnel) { root.define(function(require, exports, module) { root.define.amd.grapnel = true; return Grapnel; }); } else if ('object' === typeof module && 'object' === typeof module.exports) { module.exports = exports = Grapnel; } else { root.Grapnel = Grapnel; } }).call({}, ('object' === typeof window) ? window : this); /* var router = new Grapnel({ pushState : true, hashBang : true }); router.get('/products/:category/:id?', function(req){ var id = req.params.id, category = req.params.category console.log(category, id); }); router.get('/tiempo', function(req){ console.log("tiempo!"); $("#matikbirdpath").load("views/rooms.html", function(res){ console.log(res); console.log("hola"); }); }); router.get('/', function(req){ console.log(req.user); console.log("hola!"); $("#matikbirdpath").load("views/rooms.html", function(res){ console.log(res); console.log("hola"); }); }); router.navigate('/'); */ NProgress.start(); var routes = { '/' : function(req, e){ $("#matikbirdpath").load("views/main.html", function(res){ console.log(res); NProgress.done(); }); }, '/dashboard' : function(req, e){ $("#matikbirdpath").load("views/dashboard.html", function(res){ console.log(res); NProgress.done(); }); }, '/calendario' : function(req, e){ $("#matikbirdpath").load("views/calendario.html", function(res){ console.log(res); console.log("hola"); }); }, '/now' : function(req, e){ $("#matikbirdpath").load("views/clase_ahora.html", function(res){ console.log(res); console.log("hola"); }); }, '/category/:id' : function(req, e){ // Handle route }, '/*' : function(req, e){ if(!e.parent()){ $("#matikbirdpath").load("views/main.html", function(res){ console.log(res); NProgress.done(); }); } } } var router = Grapnel.listen({ pushState : true, hashBang: true }, routes);<|fim▁end|>
Grapnel.prototype.path = function(pathname) { var self = this, frag;
<|file_name|>commentsClass.ts<|end_file_name|><|fim▁begin|>// @target: ES5 // @declaration: true // @comments: true /** This is class c2 without constuctor*/ class c2 { } var i2 = new c2(); var i2_c = c2; class c3 { /** Constructor comment*/ constructor() { } } var i3 = new c3(); var i3_c = c3; /** Class comment*/ class c4 { /** Constructor comment*/ constructor() { } } var i4 = new c4(); var i4_c = c4; /** Class with statics*/ class c5 { static s1: number; } var i5 = new c5(); var i5_c = c5; /// class with statics and constructor class c6 { /// class with statics and constructor2 /// s1 comment static s1: number; /// s1 comment2 /// constructor comment <|fim▁hole|>var i6 = new c6(); var i6_c = c6; // class with statics and constructor class c7 { // s1 comment static s1: number; // constructor comment constructor() { } } var i7 = new c7(); var i7_c = c7; /** class with statics and constructor */ class c8 { /** s1 comment */ static s1: number; /** s1 comment2 */ /** constructor comment */ constructor() { /** constructor comment2 */ } } var i8 = new c8(); var i8_c = c8;<|fim▁end|>
constructor() { /// constructor comment2 } }
<|file_name|>test.rs<|end_file_name|><|fim▁begin|>// use msg_parse::{ParsingResult, Parsing, add_char}; // use test_diff; // pub const MSG_TEST_WIKIPEDIA1: &'static str = "8=FIX.4.2|9=178|35=8|49=PHLX|56=PERS|52=20071123-05:\ // 30:00.000|11=ATOMNOCCC9990900|20=3|150=E|39=E|55=MSFT|167=CS|54=1|38=15|40=2|44=15|58=PHLX \ // EQUITY TESTING|59=0|47=C|32=0|31=0|151=15|14=0|6=0|10=128|"; // fn add_char_incomplete(mut parser: Parsing, ch: char) -> Parsing { // match add_char(parser, ch) { // ParsingResult::Parsing(parsing) => parser = parsing, // ParsingResult::ParsedOK(_) => panic!("ParsedOK in icomplete message"), // ParsingResult::ParsedErrors { parsed: _, errors: _ } => {<|fim▁hole|>// } // } // parser // } // #[test] // fn init_add_char() { // let mut parser = Parsing::new(); // parser = add_char_incomplete(parser, '1'); // ass_eqdf!{ // parser.parsed.orig_msg => "1".to_string(), // parser.parsed.msg_length => 1, // parser.reading_tag => 1 // }; // }<|fim▁end|>
// panic!("ParsedErrors in icomplete message")
<|file_name|>test_door.py<|end_file_name|><|fim▁begin|>""" Tests for a door card.<|fim▁hole|>from onirim import card from onirim import component from onirim import core from onirim import agent class DoorActor(agent.Actor): """ """ def __init__(self, do_open): self._do_open = do_open def open_door(self, content, door_card): return self._do_open DRAWN_CAN_NOT_OPEN = ( card.Color.red, False, component.Content( undrawn_cards=[], hand=[card.key(card.Color.blue)]), component.Content( undrawn_cards=[], hand=[card.key(card.Color.blue)], limbo=[card.door(card.Color.red)]), ) DRAWN_DO_NOT_OPEN = ( card.Color.red, False, component.Content( undrawn_cards=[], hand=[card.key(card.Color.red)]), component.Content( undrawn_cards=[], hand=[card.key(card.Color.red)], limbo=[card.door(card.Color.red)]), ) DRAWN_DO_OPEN = ( card.Color.red, True, component.Content( undrawn_cards=[], hand=[ card.key(card.Color.red), card.key(card.Color.red), card.key(card.Color.red), ]), component.Content( undrawn_cards=[], discarded=[card.key(card.Color.red)], hand=[card.key(card.Color.red), card.key(card.Color.red)], opened=[card.door(card.Color.red)]), ) DRAWN_DO_OPEN_2 = ( card.Color.red, True, component.Content( undrawn_cards=[], hand=[ card.key(card.Color.blue), card.key(card.Color.red), ]), component.Content( undrawn_cards=[], discarded=[card.key(card.Color.red)], hand=[card.key(card.Color.blue)], opened=[card.door(card.Color.red)]), ) DRAWN_CASES = [ DRAWN_CAN_NOT_OPEN, DRAWN_DO_NOT_OPEN, DRAWN_DO_OPEN, DRAWN_DO_OPEN_2, ] @pytest.mark.parametrize( "color, do_open, content, content_after", DRAWN_CASES) def test_drawn(color, do_open, content, content_after): door_card = card.door(color) door_card.drawn(core.Core(DoorActor(do_open), agent.Observer(), content)) assert content == content_after<|fim▁end|>
""" import pytest
<|file_name|>build.rs<|end_file_name|><|fim▁begin|>extern crate gcc; // Build script which is called before every 'cargo build' fn main() {<|fim▁hole|> println!("Compiling libmovie_hash.a!"); gcc::Config::new() .file("c_src/movie_hash.c") .compile("libmovie_hash.a"); }<|fim▁end|>
// Debug output only visible on panic!
<|file_name|>ticker.ts<|end_file_name|><|fim▁begin|>import { State } from './core/enum/state' import { ITicker } from './core/interfaces/ITicker' /** * Main Fatina Ticker * Parent of all the normal tween and sequence * * @export * @class Ticker * @extends {EventList} * @implements {ITicker} */ export class Ticker implements ITicker { public state = State.Idle /** * @private */ private timescale = 1 public elapsed = 0 public duration = 0<|fim▁hole|> * @private */ private tickCb: (dt: number) => void | undefined /** * @private */ private readonly ticks: Set<(dt: number) => void> = new Set() /** * @private */ private readonly newTicks: Set<(dt: number) => void> = new Set() /** * @private */ private parent: ITicker /** * @private */ private dt = 0 public setParent(parent: ITicker, tick: (dt: number) => void) { this.tickCb = tick this.parent = parent } /** * Method used to change the timescale * * @param {number} scale */ public setTimescale(scale: number): void { this.timescale = scale } /** * Method used by the child to be updated * * @param {(dt: number) => void} cb */ public addTick(cb: (dt: number) => void): void { this.newTicks.add(cb) } /** * Method used by the child to not receive update anymore * * @param {(dt: number) => void} cb */ public removeTick(cb: (dt: number) => void): void { if (!this.ticks.delete(cb)) { this.newTicks.delete(cb) } } /** * Method used to tick all the child (tick listeners) * * @param {number} dt * @returns */ public tick(dt: number) { if (this.state !== State.Run) { return } this.dt = dt * this.timescale if (this.newTicks.size > 0) { this.newTicks.forEach((tick) => this.ticks.add(tick)) this.newTicks.clear() } this.ticks.forEach((tick) => tick(this.dt)) this.elapsed += this.dt } public start(): void { if (this.state === State.Idle) { this.state = State.Run } } public pause(): void { if (this.state === State.Run) { this.state = State.Pause } } public resume(): void { if (this.state === State.Pause) { this.state = State.Run } } public kill(): void { if (this.state >= 3) { return } if (this.parent && this.tickCb) { this.parent.removeTick(this.tickCb) } this.state = State.Killed } public skip(): void {} public reset(): void { this.state = State.Idle } public get isIdle(): boolean { return this.state === State.Idle } public get isRunning(): boolean { return this.state === State.Run } public get isFinished(): boolean { return this.state >= 3 } public get isPaused(): boolean { return this.state === State.Pause } }<|fim▁end|>
/**
<|file_name|>vi.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- { '# selected': '# được lựa chọn', "'Cancel' will indicate an asset log entry did not occur": "'Hủy' sẽ chỉ dẫn một lệnh nhập không thực hiện được", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "Một địa điểm chứa các đặc tính địa lý cho vùng đó. Đó có thể là một địa điểm theo đơn vị hành chính hay 'địa điểm nhóm' hay một địa điểm có đường ranh giới cho vùng đó.", "A volunteer is defined as active if they've participated in an average of 8 or more hours of Program work or Trainings per month in the last year": 'Tình nguyện viên hoạt động tích cực là những người tham gia trung bình từ 8 tiếng hoặc hơn vào các hoạt động của chương trình hay tập huấn một tháng trong năm trước.', "Acronym of the organization's name, eg. IFRC.": 'Từ viết tắt của tên tổ chức, vd IFRC.', "Add Person's Details": 'Thêm thông tin cá nhân', "Address of an image to use for this Layer in the Legend. This allows use of a controlled static image rather than querying the server automatically for what it provides (which won't work through GeoWebCache anyway).": 'Địa chỉ của hình ảnh sử dụng cho Lớp này nằm trong phần ghi chú. Việc này giúp việc sử dụng hình ảnh ổn định được kiểm soát tránh báo cáo tự động gửi tới máy chủ yêu cầu giải thích về nội dung cung cấp (chức năng này không hoạt động thông qua GeoWebCach).', "Authenticate system's Twitter account": 'Xác thực tài khoản Twitter thuộc hệ thống', "Can't import tweepy": 'Không thể nhập khẩu tweepy', "Cancel' will indicate an asset log entry did not occur": "Hủy' có nghĩa là ghi chép nhật ký tài sản không được lưu", "Caution: doesn't respect the framework rules!": 'Cảnh báo: Không tôn trọng các qui đinh khung chương trình', "Children's Education": 'Giáo dục Trẻ em', "Click 'Start' to synchronize with this repository now:": "Bấm nút 'Bắt đầu' để đồng bộ hóa kho dữ liệu bầy giờ", "Click on questions below to select them, then click 'Display Selected Questions' button to view the selected questions for all Completed Assessment Forms": "Bấm vào các câu hỏi phía dưới để chọn, sau đó bấm nút 'Hiển thị các câu hỏi đã chọn' để xem các câu hỏi đã chọn cho tất cả các mẫu Đánh giá hoàn chỉnh", "Don't Know": 'Không biết', "Edit Person's Details": 'Chỉnh sửa thông tin cá nhân', "Enter a name to search for. You may use % as wildcard. Press 'Search' without input to list all items.": "Nhập tên để tìm kiếm. Bạn có thể sử dụng % như là ký tự đặc biệt. Ấn 'Tìm kiếm' mà không nhập giá trị để liệt kê tất cả mặt hàng", "Error No Job ID's provided": 'Lỗi mã nhận dạng công việc không được cung cấp', "Framework added, awaiting administrator's approval": 'Khung chương trình đã được thêm mới, đang chờ phê duyệt của quản trị viên', "Go to %(url)s, sign up & then register your application. You can put any URL in & you only need to select the 'modify the map' permission.": "Đến trang %(url)s, đăng ký & sau đó đăng ký ứng dụng của bạn. Bạn có thể dùng bất cứ đường dẫn URL & chỉ cần chọn 'chức năng cho phép sửa bản đồ'.", "If selected, then this Asset's Location will be updated whenever the Person's Location is updated.": 'Nếu chọn, thì sau đó vị trí tài sản sẽ được cập nhật ngay khi vị trí của người đó được cập nhật.', "If this configuration is displayed on the GIS config menu, give it a name to use in the menu. The name for a personal map configuration will be set to the user's name.": 'Nếu cấu hình này được thể hiện trên danh mục cấu hình GIS, đặt tên cho cấu hình để sử dụng trên danh mục. Tên cấu hình bản đồ của cá nhân sẽ được gắn với tên người sử dụng.', "If this field is populated then a user who specifies this Organization when signing up will be assigned as a Staff of this Organization unless their domain doesn't match the domain field.": 'Nếu trường này đã nhiều người khi đó người dùng sẽ chi tiết tổ chức lúc đó việc đăng ký sẽ được phân bổ như là Cán bộ của tổ chức trừ phi chức năng đó không phù hợp.', "If you don't see the Cluster in the list, you can add a new one by clicking link 'Create Cluster'.": "Nếu bạn không tìm thấy tên Nhóm trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm nhóm'", "If you don't see the Organization in the list, you can add a new one by clicking link 'Create Organization'.": "Nếu bạn không tìm thấy tên Tổ chức trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm tổ chức'", "If you don't see the Sector in the list, you can add a new one by clicking link 'Create Sector'.": "Nếu bạn không tìm thấy Lĩnh vực trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm lĩnh vực'", "If you don't see the Type in the list, you can add a new one by clicking link 'Create Office Type'.": "Nếu bạn không tìm thấy Loại hình văn phòng trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm loại hình văn phòng'", "If you don't see the Type in the list, you can add a new one by clicking link 'Create Organization Type'.": "Nếu bạn không tìm thấy tên Loại hình tổ chức trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm loại hình tổ chức'", "If you don't see the activity in the list, you can add a new one by clicking link 'Create Activity'.": "Nếu bạn không tìm thấy hoạt động trong danh sách, bạn có thể thêm một bằng cách ấn nút 'Thêm hoạt động'", "If you don't see the asset in the list, you can add a new one by clicking link 'Create Asset'.": "Nếu bạn không tìm thấy tài sản trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm tài sản'", "If you don't see the beneficiary in the list, you can add a new one by clicking link 'Add Beneficiaries'.": "Nếu bạn không tìm thấy tên người hưởng lợi trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm người hưởng lợi'", "If you don't see the community in the list, you can add a new one by clicking link 'Create Community'.": "Nếu bạn không thấy Cộng đồng trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm cộng đồng'", "If you don't see the location in the list, you can add a new one by clicking link 'Create Location'.": "Nếu bạn không thấy Địa điểm trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm địa điểm'", "If you don't see the project in the list, you can add a new one by clicking link 'Create Project'.": "Nếu bạn không thấy dự án trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm dự án'", "If you don't see the type in the list, you can add a new one by clicking link 'Create Activity Type'.": "Nếu bạn không thấy loại hình hoạt động trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm loại hình hoạt động'", "If you don't see the vehicle in the list, you can add a new one by clicking link 'Add Vehicle'.": "Nếu bạn không thấy phương tiện vận chuyển trong danh sách, bạn có thể thêm mới bằng cách ấn nút 'Thêm phương tiện vận chuyển'", "If you enter a foldername then the layer will appear in this folder in the Map's layer switcher.": 'Nếu bạn nhập tên thư mục sau đó lớp đó sẽ hiện ra trong thư mục trong nút chuyển lớp Bản đồ.', "Last Week's Work": 'Công việc của tuấn trước', "Level is higher than parent's": 'Cấp độ cao hơn cấp độ gốc', "List Persons' Details": 'Liệt kê thông tin cá nhân', "Need a 'url' argument!": "Cần đối số cho 'url'!", "No UTC offset found. Please set UTC offset in your 'User Profile' details. Example: UTC+0530": "Không có thời gian bù UTC được tìm thấy. Cài đặt thời gian bù UTC trong thông tin 'Hồ sơ người sử dụng' của bạn. Ví dụ: UTC+0530", "Only Categories of type 'Vehicle' will be seen in the dropdown.": "Chỉ những hạng mục thuộc 'Xe cộ' được thể hiện trong danh sách thả xuống", "Optional. The name of the geometry column. In PostGIS this defaults to 'the_geom'.": "Tùy chọn. Tên của cột hình dạng. Trong PostGIS tên này được mặc định là 'the_geom'.", "Parent level should be higher than this record's level. Parent level is": 'Mức độ cấp trên phải cao hơn mức độ của bản lưu này. Mức độ cấp trên là', "Password fields don't match": 'Trường mật khẩu không tương thích', "Person's Details added": 'Thông tin được thêm vào của cá nhân', "Person's Details deleted": 'Thông tin đã xóa của cá nhân', "Person's Details updated": 'Thông tin được cập nhật của cá nhân', "Person's Details": 'Thông tin cá nhân', "Persons' Details": 'Thông tin cá nhân', "Phone number to donate to this organization's relief efforts.": 'Số điện thoại để ủng hộ cho những nỗ lực cứu trợ của tổ chức này', "Please come back after sometime if that doesn't help.": 'Xin vui lòng quay trở lại sau nếu điều đó không giúp ích bạn.', "Please provide as much detail as you can, including the URL(s) where the bug occurs or you'd like the new feature to go.": 'Xin vui lòng cung cấp thông tin chi tiết nhất có thể, bao gồm những đường dẫn URL chứa các lỗi kỹ thuật hay bạn muốn thực hiện chức năng mới.', "Post graduate (Doctor's)": 'Tiến sỹ', "Post graduate (Master's)": 'Thạc sỹ', "Quantity in %s's Warehouse": 'Số lượng trong %s Nhà kho', "Search Person's Details": 'Tìm kiếm thông tin cá nhân', "Select a Facility Type from the list or click 'Create Facility Type'": "Chọn loại hình bộ phận từ danh sách hoặc bấm 'Thêm loại hình bộ phận'", "Select a Room from the list or click 'Create Room'": "Chọn một Phòng từ danh sách hay bấm 'Thêm Phòng'", "Select this if all specific locations need a parent at the deepest level of the location hierarchy. For example, if 'district' is the smallest division in the hierarchy, then all specific locations would be required to have a district as a parent.": "Chọn nó nếu tất cả các điểm cụ thể cần lớp cao nhất trong hệ thống hành chính các địa điểm. Ví dụ, nếu 'là lớp huyện' là phân chia nhỏ nhất trong hệ thống, do vậy các địa điểm cụ thể sẽ yêu cầu có lớp huyện là lớp trên.", "Select this if all specific locations need a parent location in the location hierarchy. This can assist in setting up a 'region' representing an affected area.": 'Chọn nó nếu tất cả các điểm cụ thể cần lớp trên trong hệ thống hành chính các địa điểm. Nó có thể giúp lập nên một vùng diện cho một vùng bị ảnh hưởng. ', "Sorry, things didn't get done on time.": 'Xin lỗi, công việc đã không được làm đúng lúc.', "Sorry, we couldn't find that page.": 'Xin lỗi, chúng tôi không thể tìm thấy trang đó', "Status 'assigned' requires the %(fieldname)s to not be blank": "Tình trạng 'được bổ nhiệm' đòi hỏi %(fieldname)s không được bỏ trống", "System's Twitter account updated": 'Tài khoản Twitter của Hệ thống được cập nhật', "The Project module can be used to record Project Information and generate Who's Doing What Where reports.": 'Mô đun Dự án có thể được sử dụng để ghi lại Thông tin Dự án và cho ra các báo cáo Ai Đang làm Điều gì Ở đâu.', "The URL of the image file. If you don't upload an image file, then you must specify its location here.": 'Đường dẫn URL của tệp tin hình ảnh. Nếu bạn không tải tệp tin hình ảnh lên, thì bạn phải đưa đường dẫn tới vị trí của tệp tin đó tại đây.', "The person's manager within this Office/Project.": 'Quản lý của một cá nhân trong Văn phòng/Dự án', "The staff member's official job title": 'Chức vụ chính thức của cán bộ', "The volunteer's role": 'Vai trò của tình nguyện viên', "There are no details for this person yet. Add Person's Details.": 'Chưa có thông tin về người này. Hãy thêm Thông tin.', "To search for a hospital, enter any part of the name or ID. You may use % as wildcard. Press 'Search' without input to list all hospitals.": 'Để tìm kiếm một bệnh viện, nhập một phần tên hoặc ID. Có thể sử dụng % như một ký tự thay thế cho một nhóm ký tự. Nhấn "Tìm kiếm" mà không nhập thông tin, sẽ hiển thị toàn bộ các bệnh viện.', "To search for a location, enter the name. You may use % as wildcard. Press 'Search' without input to list all locations.": "Dể tìm kiếm địa điểm, nhập tên của địa điểm đó. Bản có thể sử dụng ký tự % như là ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập tên địa điểm để liệt kê toàn bộ địa điểm.", "To search for a member, enter any portion of the name of the person or group. You may use % as wildcard. Press 'Search' without input to list all members": "Để tìm thành viên, nhập tên của thành viên hoặc nhóm. Bạn có thể sử dụng % như là ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập tên để liệt toàn bộ thành viên", "To search for a person, enter any of the first, middle or last names and/or an ID number of a person, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all persons.": "Để tìm kiếm người, nhập bất kỳ tên, tên đệm hoặc tên họ và/ hoặc số nhận dạng cá nhân của người đó, tách nhau bởi dấu cách. Ấn nút 'Tìm kiếm' mà không nhập tên người để liệt kê toàn bộ người.", "Type the first few characters of one of the Participant's names.": 'Nhập những ký tự đầu tiên trong tên của một Người tham dự.', "Type the first few characters of one of the Person's names.": 'Nhập những ký tự đầu tiên trong tên của một Người.', "Type the name of an existing catalog item OR Click 'Create Item' to add an item which is not in the catalog.": "Nhập tên của một mặt hàng trong danh mục đang tồn tại HOẶC Nhấn 'Thêm mặt hàng mới' để thêm một mặt hàng chưa có trong danh mục.", "Upload an image file here. If you don't upload an image file, then you must specify its location in the URL field.": 'Tải lên file hình ảnh tại đây. Nếu bạn không đăng tải được file hình ảnh, bạn phải chỉ đường dẫn chính xác tới vị trí của file trong trường URL.', "Uploaded file(s) are not Image(s). Supported image formats are '.png', '.jpg', '.bmp', '.gif'.": "File được tải không phải là hình ảnh. Định dạng hình ảnh hỗ trợ là '.png', '.jpg', '.bmp', '.gif'", "View and/or update details of the person's record": 'Xem và/hoặc cập nhật chi tiết mục ghi cá nhân', """Welcome to %(system_name)s - You can start using %(system_name)s at: %(url)s - To edit your profile go to: %(url)s%(profile)s Thank you""": """Chào mừng anh/chị truy cập %(system_name)s Anh/chị có thể bắt đầu sử dụng %(system_name)s tại %(url)s Để chỉnh sửa hồ sơ của anh/chị, xin vui lòng truy cập %(url)s%(profile)s Cảm ơn""", "Yes, No, Don't Know": 'Có, Không, Không biết', "You can search by asset number, item description or comments. You may use % as wildcard. Press 'Search' without input to list all assets.": "Bạn có thể tìm kiếm theo mã số tài sản, mô tả mặt hàng hoặc các bình luận. Bạn có thể sử dụng % làm ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập giá trị để liệt kê tất cả tài sản.", "You can search by course name, venue name or event comments. You may use % as wildcard. Press 'Search' without input to list all events.": "Bạn có thể tìm kiếm theo tên khóa học, tên địa điểm tổ chức hoặc bình luận về khóa học. Bạn có thể sử dụng % làm ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập giá trị để liệt kê tất cả khóa học.", "You can search by description. You may use % as wildcard. Press 'Search' without input to list all incidents.": "Bạn có thể tìm kiếm theo mô tả. Bạn có thể sử dụng % làm ký tự đại diện. Không nhập thông tin và nhấn 'Tìm kiếm' để liệt kê tất cả các sự kiện.", "You can search by job title or person name - enter any of the first, middle or last names, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all persons.": "Bạn có thể tìm kiếm theo chức vụ nghề nghiệp hoặc theo tên đối tượng - nhập bất kỳ tên nào trong tên chính, tên đệm hay họ, tách nhau bởi dấu cách. Bạn có thể sử dụng % làm ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập giá trị để liệt kê tất cả đối tượng.", "You can search by person name - enter any of the first, middle or last names, separated by spaces. You may use % as wildcard. Press 'Search' without input to list all persons.": "Bạn có thể tìm kiếm theo tên người - nhập bất kỳ tên, tên đệm hay tên họ, tách nhau bởi dấu cách. Bạn có thể sử dụng % làm ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập giá trị để liệt kê tất cả số người.", "You can search by trainee name, course name or comments. You may use % as wildcard. Press 'Search' without input to list all trainees.": "Bạn có thể tìm kiếm bằng tên người được tập huấn, tên khóa học hoặc các bình luận. Bạn có thể sử dụng % làm ký tự đặc trưng. Ấn nút 'Tìm kiếm' mà không nhập giá trị để liệt kê tất cả người được tập huấn.", "You have personalised settings, so changes made here won't be visible to you. To change your personalised settings, click ": 'Bạn đã thiết lập các cài đặt cá nhân, vì vậy bạn không xem được các thay đổi ở đây.Để thiết lập lại, nhấp chuột vào', "You have unsaved changes. Click Cancel now, then 'Save' to save them. Click OK now to discard them.": "Bạn chưa lưu các thay đổi. Ấn 'Hủy bỏ' bây giờ, sau đó ấn 'Lưu' để lưu lại. Ấn OK bây giờ để bỏ các thay đổi", "communications systems, health facilities, 'lifelines', power and energy, emergency evacuation shelters, financial infrastructure, schools, transportation, waste disposal, water supp": 'hệ thống thông tin liên lạc, cơ sở CSSK, hệ thống bảo hộ, năng lượng, các địa điểm sơ tán trong tình huống khẩn cấp, hạ tầng tài chính, trường học, giao thông, bãi rác thải, hệ thống cấp nước', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"cập nhật" là một lựa chọn như "Thực địa1=\'giá trị mới\'". Bạn không thể cập nhật hay xóa các kết quả của một NHÓM', '# of Houses Damaged': 'Số nóc nhà bị phá hủy', '# of Houses Destroyed': 'Số căn nhà bị phá hủy', '# of International Staff': 'số lượng cán bộ quốc tế', '# of National Staff': 'số lượng cán bộ trong nước', '# of People Affected': 'Số người bị ảnh hưởng', '# of People Injured': 'Số lượng người bị thương', '%(GRN)s Number': '%(GRN)s Số', '%(GRN)s Status': '%(GRN)s Tình trạng', '%(PO)s Number': '%(PO)s Số', '%(REQ)s Number': '%(REQ)s Số', '%(app)s not installed. Ask the Server Administrator to install on Server.': '%(app)s dụng chưa được cài. Liên hệ với ban quản trị máy chủ để cài ứng dụng trên máy chủ', '%(count)s Entries Found': '%(count)s Hồ sơ được tìm thấy', '%(count)s Roles of the user removed': '%(count)s Đã gỡ bỏ chức năng của người sử dụng', '%(count)s Users removed from Role': '%(count)s Đã xóa người sử dụng khỏi chức năng', '%(count_of)d translations have been imported to the %(language)s language file': '%(count_of)d bản dịch được nhập liệu trong %(language)s file ngôn ngữ', '%(item)s requested from %(site)s': '%(item)s đề nghị từ %(site)s', '%(module)s not installed': '%(module)s chưa được cài đặt', '%(pe)s in %(location)s': '%(pe)s tại %(location)s', '%(quantity)s in stock': '%(quantity)s hàng lưu kho', '%(system_name)s has sent an email to %(email)s to verify your email address.\nPlease check your email to verify this address. If you do not receive this email please check you junk email or spam filters.': '%(system_name)s đã gửi email đến %(email)s để kiểm tra địa chỉ email của bạn.\nĐề nghị kiểm tra email để xác nhận. Nếu bạn không nhận được hãy kiểm tra hộp thư rác hay bộ lọc thư rác.', '%s items are attached to this shipment': '%s hàng hóa được chuyển trong đợt xuất hàng này', '& then click on the map below to adjust the Lat/Lon fields': '& sau đó chọn trên bản đồ để chính sửa số kinh/vĩ độ', '(filtered from _MAX_ total entries)': '(lọc từ _MAX_ toàn bộ hồ sơ)', '* Required Fields': '* Bắt buộc phải điền', '...or add a new bin': '…hoặc thêm một ngăn mới', '1 Assessment': '1 Đánh giá', '1 location, shorter time, can contain multiple Tasks': '1 địa điểm, thời gian ngắn hơn, có thể bao gồm nhiều nhiệm vụ khác nhau', '1. Fill the necessary fields in BLOCK CAPITAL letters.': '1. Điền nội dung vào các ô cần thiết bằng CHỮ IN HOA.', '2. Always use one box per letter and leave one box space to separate words.': '2. Luôn sử dụng một ô cho một chữ cái và để một ô trống để cách giữa các từ', '3. Fill in the circles completely.': '3. Điền đầy đủ vào các ô tròn', '3W Report': 'Báo cáo 3W', 'A Marker assigned to an individual Location is set if there is a need to override the Marker assigned to the Feature Class.': 'Một đánh dấu cho một vị trí đơn lẻ nếu cần thiết để thay thế một Đánh dấu theo chức năng.', 'A brief description of the group (optional)': 'Mô tả ngắn gọn nhóm đánh giá (không bắt buộc)', 'A catalog of different Assessment Templates including summary information': 'Danh mục các biểu mẫu đánh giá khác nhau bao gồm cả thông tin tóm tắt', 'A file in GPX format taken from a GPS.': 'file định dạng GPX từ máy định vị GPS.', 'A place within a Site like a Shelf, room, bin number etc.': 'Một nơi trên site như số ngăn ,số phòng,số thùng v.v', 'A project milestone marks a significant date in the calendar which shows that progress towards the overall objective is being made.': 'Một mốc quan trọng của dự án đánh dấu ngày quan trọng trong lịch để chỉ ra tiến độ đạt được mục tổng quát của dự án.', 'A snapshot of the location or additional documents that contain supplementary information about the Site can be uploaded here.': 'Upload ảnh chụp vị trí hoặc tài liệu bổ sung chứa thông tin bổ sung về trang web tại đây', 'A staff member may have multiple roles in addition to their formal job title.': 'Một cán bộ có thể có nhiều chức năng nhiệm vụ bổ sung thêm vào chức năng nhiệm vụ chính.', 'A strict location hierarchy cannot have gaps.': 'Thứ tự vi trí đúng không thể có khoảng cách.', 'A survey series with id %s does not exist. Please go back and create one.': 'Chuỗi khảo sát số %s không tồn tai.Vui lòng quay lại và tạo mới', 'A task is a piece of work that an individual or team can do in 1-2 days.': 'Nhiệm vụ là công việc mà một cá nhân hoặc nhóm có thể thực hiện trong 1-2 ngày.', 'A volunteer may have multiple roles in addition to their formal job title.': 'Một tình nguyện viên có thể có nhiều chức năng nhiệm vụ bổ sung thêm vào chức năng nhiệm vụ chính.', 'ABOUT CALCULATIONS': 'TẠM TÍNH', 'ABOUT THIS MODULE': 'Giới thiệu Module này', 'ABSOLUTE%(br)sDEVIATION': 'HOÀN TOÀN%(br)sCHỆCH HƯỚNG', 'ACTION REQUIRED': 'HÀNH ĐỘNG ĐƯỢC YÊU CẦU', 'ALL REPORTS': 'TẤT CẢ BÁO CÁO', 'ALL': 'Tất cả', 'ANY': 'BẤT KỲ', 'API is documented here': 'API được lưu trữ ở đây', 'APPROVE REPORTS': 'PHÊ DUYỆT BÁO CÁO', 'AUTH TOKEN': 'THẺ XÁC THỰC', 'Abbreviation': 'Từ viết tắt', 'Ability to customize the list of human resource tracked at a Shelter': 'Khả năng tùy chỉnh danh sách nguồn nhân lực theo dõi tại nơi cư trú', 'Ability to customize the list of important facilities needed at a Shelter': 'Khả năng tùy chỉnh danh sách các điều kiện quan trọng cần thiết tại một cơ sở cư trú', 'Able to Respond?': 'Có khả năng ứng phó không?', 'About Us': 'Giới thiệu', 'About': 'Khoảng', 'Accept Push': 'Chấp nhận Đẩy', 'Accept unsolicited data transmissions from the repository.': 'Chấp nhận truyền các dữ liệu chưa tổng hợp từ kho dữ liệu.', 'Access denied': 'Từ chối truy cập', 'Account Name': 'Tên tài khoản', 'Account Registered - Please Check Your Email': 'Tài khoản đã được đăng ký- Kiểm tra email của bạn', 'Achieved': 'Thành công', 'Acronym': 'Từ viết tắt', 'Action': 'Hành động', 'Actioning officer': 'Cán bộ hành động', 'Actions taken as a result of this request.': 'Hành động được thực hiện như là kết quả của yêu cầu này.', 'Actions': 'Hành động', 'Activate': 'Kích hoạt', 'Active Problems': 'Có vấn đề kích hoạt', 'Active': 'Đang hoạt động', 'Active?': 'Đang hoạt động?', 'Activities matching Assessments': 'Hoạt động phù hợp với Đánh giá', 'Activities': 'Hoạt động', 'Activity Added': 'Hoạt động đã được thêm mới', 'Activity Deleted': 'Hoạt động đã được xóa', 'Activity Details': 'Chi tiết hoạt động', 'Activity Report': 'Báo cáo hoạt động', 'Activity Type Added': 'Loại hình hoạt động đã được thêm mới', 'Activity Type Deleted': 'Loại hình hoạt động đã được xóa', 'Activity Type Sectors': 'Lĩnh vực của loại hình hoạt động', 'Activity Type Updated': 'Loại hình hoạt động đã được cập nhật', 'Activity Type': 'Hoạt động', 'Activity Types': 'Hoạt động', 'Activity Updated': 'Hoạt động đã được cập nhật', 'Activity': 'Hoạt động', 'Add Activity Type': 'Thêm loại hình hoạt động', 'Add Address': 'Thêm địa chỉ', 'Add Affiliation': 'Thêm liên kết', 'Add Aid Request': 'Thêm yêu cầu cứu trợ', 'Add Alternative Item': 'Thêm mặt hàng thay thế', 'Add Annual Budget': 'Thêm ngân sách năm', 'Add Assessment Answer': 'Thêm câu trả lời đánh giá', 'Add Assessment Templates': 'Thêm biểu mẫu đánh giá', 'Add Assessment': 'Thêm đợt đánh giá', 'Add Award': 'Thêm mới', 'Add Beneficiaries': 'Thêm người hưởng lợi', 'Add Branch Organization': 'Thêm tổ chức cấp tỉnh/ huyện/ xã', 'Add Certificate for Course': 'Thêm chứng nhận khóa tập huấn', 'Add Certification': 'Thêm bằng cấp', 'Add Contact Information': 'Thêm thông tin liên hệ', 'Add Contact': 'Thêm liên lạc', 'Add Credential': 'Thêm thư ủy nhiệm', 'Add Data to Theme Layer': 'Thêm dữ liệu vào lớp chủ đề', 'Add Demographic Data': 'Thêm số liệu dân số', 'Add Demographic Source': 'Thêm nguồn thông tin dân số', 'Add Demographic': 'Thêm dữ liệu nhân khẩu', 'Add Disciplinary Action': 'Thêm mới', 'Add Disciplinary Action Type': 'Thêm hình thức kỷ luật', 'Add Distribution': 'Thêm thông tin hàng hóa đóng góp', 'Add Donor': 'Thêm tên người quyên góp vào danh sách', 'Add Education': 'Thêm trình độ học vấn', 'Add Email Settings': 'Thêm cài đặt email', 'Add Employment': 'Thêm mới', 'Add Experience': 'Thêm Kinh nghiệm', 'Add Framework': 'Thêm khung chương trình', 'Add Group Member': 'Thêm thành viên nhóm', 'Add Hours': 'Thêm thời gian hoạt động', 'Add Identity': 'Thêm nhận dạng', 'Add Image': 'Thêm hình ảnh', 'Add Item Catalog': 'Thêm danh mục hàng hóa', 'Add Item to Catalog': 'Thêm hàng hóa vào danh mục', 'Add Item to Commitment': 'Thêm hàng hóa vào cam kết', 'Add Item to Request': 'Thêm hàng hóa mới để yêu cầu', 'Add Item to Shipment': 'Thêm hàng hóa vào lô hàng chuyển đi', 'Add Item to Stock': 'Thêm mặt hàng lưu kho', 'Add Item': 'Thêm hàng hóa', 'Add Job Role': 'Thêm chức năng công việc', 'Add Key': 'Thêm từ khóa', 'Add Kit': 'Thêm Kit', 'Add Layer from Catalog': 'Thêm lớp từ danh mục', 'Add Layer to this Profile': 'Thêm lớp vào hồ sơ này', 'Add Line': 'Thêm dòng', 'Add Location': 'Thêm địa điểm', 'Add Locations': 'Thêm địa điểm mới', 'Add Log Entry': 'Thêm ghi chép nhật ký', 'Add Member': 'Thêm hội viên', 'Add Membership': 'Thêm nhóm hội viên', 'Add Message': 'Thêm tin nhắn', 'Add New Aid Request': 'Thêm yêu cầu cứu trợ mới', 'Add New Beneficiaries': 'Thêm người hưởng lợi mới', 'Add New Beneficiary Type': 'Thêm loại người hưởng lợi mới', 'Add New Branch': 'Thêm chi nhánh mới', 'Add New Cluster': 'Thêm nhóm mới', 'Add New Commitment Item': 'Thêm hàng hóa cam kết mới', 'Add New Community': 'Thêm cộng đồng mới', 'Add New Config': 'Thêm cấu hình mới', 'Add New Demographic Data': 'Thêm số liệu dân số mới', 'Add New Demographic Source': 'Thêm nguồn số liệu dân số mới', 'Add New Demographic': 'Thêm dữ liệu nhân khẩu mới', 'Add New Document': 'Thêm tài liệu mới', 'Add New Donor': 'Thêm nhà tài trợ mới', 'Add New Entry': 'Thêm hồ sơ mới', 'Add New Flood Report': 'Thêm báo cáo lũ lụt mới', 'Add New Framework': 'Thêm khung chương trình mới', 'Add New Image': 'Thêm hình ảnh mới', 'Add New Item to Stock': 'Thêm hàng hóa mới để lưu trữ', 'Add New Job Role': 'Thêm chức năng công việc mới', 'Add New Key': 'Thêm Key mới', 'Add New Layer to Symbology': 'Thêm lớp mới vào các mẫu biểu tượng', 'Add New Mailing List': 'Thêm danh sách gửi thư mới', 'Add New Member': 'Thêm hội viên mới', 'Add New Membership Type': 'Thêm loại nhóm hội viên mới', 'Add New Membership': 'Thêm nhóm hội viên mới', 'Add New Organization Domain': 'Thêm lĩnh vực hoạt động mới của tổ chức', 'Add New Output': 'Thêm kết quả đầu ra mới', 'Add New Participant': 'Thêm người tham dự mới', 'Add New Problem': 'Thêm vấn đề mới', 'Add New Profile Configuration': 'Thêm định dạng hồ sơ tiểu sử mới', 'Add New Record': 'Thêm hồ sơ mới', 'Add New Request Item': 'Thêm yêu cầu hàng hóa mới', 'Add New Request': 'Thêm yêu cầu mới', 'Add New Response': 'Thêm phản hồi mới', 'Add New Role to User': 'Gán vai trò mới cho người dùng', 'Add New Shipment Item': 'Thêm mặt hàng mới được vận chuyển', 'Add New Site': 'Thêm trang web mới', 'Add New Solution': 'Thêm giải pháp mới', 'Add New Staff Assignment': 'Thêm nhiệm vụ mới cho cán bộ', 'Add New Staff': 'Thêm bộ phận nhân viên', 'Add New Storage Location': 'Thêm Vị trí kho lưu trữ mới', 'Add New Survey Template': 'Thêm mẫu khảo sát mới', 'Add New Team Member': 'Thêm thành viên mới', 'Add New Team': 'Thêm Đội/Nhóm mới', 'Add New Unit': 'Thêm đơn vị mới', 'Add New Vehicle Assignment': 'Thêm phân công mới cho phương tiện vận chuyển', 'Add New Vulnerability Aggregated Indicator': 'Thêm chỉ số gộp mới đánh giá tình trạng dễ bị tổn thương', 'Add New Vulnerability Data': 'Thêm dữ liệu mới về tình trạng dễ bị tổn thương', 'Add New Vulnerability Indicator Sources': 'Thêm nguồn chỉ số mới đánh giá tình trạng dễ bị tổn thương', 'Add New Vulnerability Indicator': 'Thêm chỉ số mới đánh giá tình trạng dễ bị tổn thương', 'Add Order': 'Thêm đơn đặt hàng', 'Add Organization Domain': 'Thêm lĩnh vực hoạt động của tổ chức', 'Add Organization to Project': 'Thêm tổ chức tham gia dự án', 'Add Parser Settings': 'Thêm cài đặt cú pháp', 'Add Participant': 'Thêm người tham dự', 'Add Person to Commitment': 'Thêm đối tượng cam kết', 'Add Person': 'Thêm họ tên', 'Add Photo': 'Thêm ảnh', 'Add Point': 'Thêm điểm', 'Add Polygon': 'Thêm đường chuyền', 'Add Professional Experience': 'Thêm kinh nghiệm nghề nghiệp', 'Add Profile Configuration for this Layer': 'Thêm định dạng hồ sơ tiểu sử cho lớp này', 'Add Profile Configuration': 'Thêm hồ sơ tiểu sử', 'Add Program Hours': 'Thêm thời gian tham gia chương trình', 'Add Recipient': 'Thêm người nhận viện trợ', 'Add Record': 'Thêm hồ sơ', 'Add Reference Document': 'Thêm tài liệu tham chiếu', 'Add Request Detail': 'thêm chi tiết yêu cầu', 'Add Request Item': 'Thêm yêu cầu hàng hóa', 'Add Request': 'Thêm yêu cầu', 'Add Resource': 'Thêm nguồn lực', 'Add Salary': 'Thêm mới', 'Add Salary Grade': 'Thêm bậc lương', 'Add Sender Organization': 'Thêm tổ chức gửi', 'Add Setting': 'Thêm cài đặt', 'Add Site': 'Thêm site', 'Add Skill': 'Thêm kỹ năng', 'Add Skill Equivalence': 'Thêm kỹ năng tương đương', 'Add Skill Types': 'Thêm loại kỹ năng', 'Add Skill to Request': 'Thêm kỹ năng để yêu cầu', 'Add Staff Assignment': 'Thêm nhiệm vụ cho cán bộ', 'Add Staff Level': 'Thêm ngạch công chức', 'Add Staff Member to Project': 'Thêm cán bộ thực hiện dự án', 'Add Stock to Warehouse': 'Thêm hàng vào kho', 'Add Storage Location ': 'Thêm vị trí lưu trữ', 'Add Storage Location': 'Thêm vị trí lưu trữ', 'Add Sub-Category': 'Thêm danh mục cấp dưới', 'Add Survey Answer': 'Thêm trả lời khảo sát', 'Add Survey Question': 'Thêm câu hỏi khảo sát', 'Add Survey Section': 'Thêm phần Khảo sát', 'Add Survey Series': 'Thêm chuỗi khảo sát', 'Add Survey Template': 'Thêm mẫu khảo sát', 'Add Symbology to Layer': 'Thêm biểu tượng cho lớp', 'Add Team Member': 'Thêm thành viên Đội/Nhóm', 'Add Team': 'Thêm Đội/Nhóm', 'Add Template Section': 'Thêm nội dung vào biểu mẫu', 'Add Training': 'Thêm tập huấn', 'Add Translation Language': 'Thêm ngôn ngữ biên dịch mới', 'Add Twilio Settings': 'Thêm cài đặt Twilio', 'Add Unit': 'Thêm đơn vị', 'Add Vehicle Assignment': 'Thêm phân công cho phương tiện vận chuyển', 'Add Vehicle': 'Thêm phương tiện vận chuyển', 'Add Volunteer Registration': 'Thêm Đăng ký tình nguyện viên', 'Add Volunteer to Project': 'Thêm tình nguyện viên hoạt động trong dự án', 'Add Vulnerability Aggregated Indicator': 'Thêm chỉ số gộp đánh giá tình trạng dễ bị tổn thương', 'Add Vulnerability Data': 'Thêm dữ liệu về tình trạng dễ bị tổn thương', 'Add Vulnerability Indicator Source': 'Thêm nguồn chỉ số đánh giá tình trạng dễ bị tổn thương', 'Add Vulnerability Indicator': 'Thêm chỉ số đánh giá tình trạng dễ bị tổn thương', 'Add a description': 'Thêm miêu tả', 'Add a new Assessment Answer': 'Thêm câu trả lời mới trong mẫu đánh giá', 'Add a new Assessment Question': 'Thêm câu hỏi mới trong mẫu đánh giá', 'Add a new Assessment Template': 'Thêm biểu mẫu đánh giá mới', 'Add a new Completed Assessment Form': 'Thêm mẫu đánh giá được hoàn thiện mới', 'Add a new Disaster Assessment': 'Thêm báo cáo đánh giá thảm họa mới', 'Add a new Site from where the Item is being sent.': 'Thêm Site nơi gửi hàng hóa đến ', 'Add a new Template Section': 'Thêm nội dung mới vào biểu mẫu', 'Add a new certificate to the catalog.': 'Thêm chứng chỉ mới vào danh mục', 'Add a new competency rating to the catalog.': 'Thêm xếp loại năng lực mới vào danh mục', 'Add a new membership type to the catalog.': 'Thêm loại hình nhóm hội viên mới vào danh mục', 'Add a new programme to the catalog.': 'Thêm chương trình mới vào danh mục', 'Add a new skill type to the catalog.': 'Thêm loại kỹ năng mới vào danh mục', 'Add all organizations which are involved in different roles in this project': 'Thêm tất cả tổ chức đang tham gia vào dự án với vai trò khác nhau', 'Add all': 'Thêm tất cả', 'Add new Group': 'Thêm nhóm mới', 'Add new Question Meta-Data': 'Thêm siêu dữ liệu câu hỏi mới', 'Add new and manage existing members.': 'Thêm mới và quản lý hội viên.', 'Add new and manage existing staff.': 'Thêm mới và quản lý cán bộ.', 'Add new and manage existing volunteers.': 'Thêm mới và quản lý tình nguyện viên.', 'Add new position.': 'Thêm địa điểm mới', 'Add new project.': 'Thêm dự án mới', 'Add new staff role.': 'Thêm vai trò nhân viên mới', 'Add saved search': 'Thêm tìm kiếm đã lưu', 'Add strings manually through a text file': 'Thêm chuỗi ký tự thủ công bằng file văn bản', 'Add strings manually': 'Thêm chuỗi ký tự thủ công', 'Add the Storage Location where this this Bin belongs to.': 'Thêm vị trí kho lưu trữ chứa Bin này', 'Add the main Warehouse/Site information where this Item is to be added.': 'Thêm thông tin Nhà kho/Site chứa hàng hóa đã được nhập thông tin', 'Add this entry': 'Thêm hồ sơ này', 'Add to Bin': 'Thêm vào thùng', 'Add': 'Thêm', 'Add...': 'Thêm…', 'Add/Edit/Remove Layers': 'Thêm/Sửa/Xóa các lớp', 'Added to Group': 'Nhóm hội viên đã được thêm', 'Added to Team': 'Nhóm hội viên đã được thêm', 'Address Details': 'Chi tiết địa chỉ', 'Address Type': 'Loại địa chỉ', 'Address added': 'Địa chỉ đã được thêm', 'Address deleted': 'Địa chỉ đã được xóa', 'Address updated': 'Địa chỉ đã được cập nhật', 'Address': 'Địa chỉ', 'Addresses': 'Địa chỉ', 'Adjust Item Quantity': 'Chỉnh sửa số lượng mặt hàng', 'Adjust Stock Item': 'Chỉnh sửa mặt hàng lưu kho', 'Adjust Stock Levels': 'Điều chỉnh cấp độ hàng lưu kho', 'Adjust Stock': 'Chỉnh sửa hàng lưu kho', 'Adjustment created': 'Chỉnh sửa đã được tạo', 'Adjustment deleted': 'Chỉnh sửa đã đươc xóa', 'Adjustment modified': 'Chỉnh sửa đã được thay đổi', 'Admin Email': 'Email của quản trị viên', 'Admin Name': 'Tên quản trị viên', 'Admin Tel': 'Số điện thoại của Quản trị viên', 'Admin': 'Quản trị', 'Administration': 'Quản trị', 'Administrator': 'Quản trị viên', 'Adolescent (12-20)': 'Vị thành niên (12-20)', 'Adult (21-50)': 'Người trưởng thành (21-50)', 'Adult Psychiatric': 'Bệnh nhân tâm thần', 'Adult female': 'Nữ giới', 'Adult male': 'Đối tượng người lớn là nam ', 'Advance': 'Cao cấp', 'Advanced Catalog Search': 'Tìm kiếm danh mục nâng cao', 'Advanced Category Search': 'Tìm kiếm danh mục nâng cao', 'Advanced Location Search': 'Tìm kiếm vị trí nâng cao', 'Advanced Search': 'Tìm kiếm nâng cao', 'Advanced Site Search': 'Tìm kiếm website nâng cao', 'Advocacy': 'Vận động chính sách', 'Affected Persons': 'Người bị ảnh hưởng', 'Affiliation Details': 'Chi tiết liên kết', 'Affiliation added': 'Liên kết đã được thêm', 'Affiliation deleted': 'Liên kết đã được xóa', 'Affiliation updated': 'Liên kết đã được cập nhật', 'Affiliations': 'Liên kết', 'Age Group (Count)': 'Nhóm tuổi (Số lượng)', 'Age Group': 'Nhóm tuổi', 'Age group does not match actual age.': 'Nhóm tuổi không phù hợp với tuổi hiện tại', 'Aid Request Details': 'Chi tiết yêu cầu cứu trợ', 'Aid Request added': 'Đã thêm yêu cầu viện trợ', 'Aid Request deleted': 'Đã xóa yêu cầu cứu trợ', 'Aid Request updated': 'Đã cập nhật Yêu cầu cứu trợ', 'Aid Request': 'Yêu cầu cứu trợ', 'Aid Requests': 'yêu cầu cứu trợ', 'Aircraft Crash': 'Tại nạn máy bay', 'Aircraft Hijacking': 'Bắt cóc máy bay', 'Airport Closure': 'Đóng cửa sân bay', 'Airport': 'Sân bay', 'Airports': 'Sân bay', 'Airspace Closure': 'Đóng cửa trạm không gian', 'Alcohol': 'Chất cồn', 'Alerts': 'Cảnh báo', 'All Entities': 'Tất cả đối tượng', 'All Inbound & Outbound Messages are stored here': 'Tất cả tin nhắn gửi và nhận được lưu ở đây', 'All Open Tasks': 'Tất cả nhiệm vụ công khai', 'All Records': 'Tất cả hồ sơ', 'All Requested Items': 'Hàng hóa được yêu cầu', 'All Resources': 'Tất cả nguồn lực', 'All Tasks': 'Tất cả nhiệm vụ', 'All reports': 'Tất cả báo cáo', 'All selected': 'Tất cả', 'All': 'Tất cả', 'Allowance': 'Phụ cấp', 'Allowed to push': 'Cho phép bấm nút', 'Allows authorized users to control which layers are available to the situation map.': 'Cho phép người dùng đã đăng nhập kiểm soát layer nào phù hợp với bản đồ tình huống', 'Alternative Item Details': 'Chi tiết mặt hàng thay thế', 'Alternative Item added': 'Mặt hàng thay thế đã được thêm', 'Alternative Item deleted': 'Mặt hàng thay thế đã được xóa', 'Alternative Item updated': 'Mặt hàng thay thế đã được cập nhật', 'Alternative Items': 'Mặt hàng thay thế', 'Ambulance Service': 'Dịch vụ xe cứu thương', 'Amount': 'Tổng ngân sách', 'An Assessment Template can be selected to create a Disaster Assessment. Within a Disaster Assessment, responses can be collected and results can analyzed as tables, charts and maps': 'Mẫu đánh giá có thể được chọn để tạo ra một Đánh giá tình hình Thảm họa. Trong Đánh giá tình hình Thảm họa, các hoạt động ứng phó có thể được tổng hợp và kết quả có thể được phân tích dưới dạng bảng, biểu đồ và bản đồ', 'An Item Category must have a Code OR a Name.': 'Danh mục hàng hóa phải có Mã hay Tên.', 'Analysis': 'Phân tích', 'Animal Die Off': 'Động vật tuyệt chủng', 'Animal Feed': 'Thức ăn động vật', 'Annual Budget deleted': 'Ngân sách năm đã được xóa', 'Annual Budget updated': 'Ngân sách năm đã được cập nhật', 'Annual Budget': 'Ngân sách năm', 'Annual Budgets': 'Ngân sách năm', 'Anonymous': 'Ẩn danh', 'Answer Choices (One Per Line)': 'Chọn câu trả lời', 'Any available Metadata in the files will be read automatically, such as Timestamp, Author, Latitude & Longitude.': 'Thông tin có sẵn trong file như Timestamp,Tác giả, Kinh độ, Vĩ độ sẽ được đọc tự động', 'Any': 'Bất cứ', 'Applicable to projects in Pacific countries only': 'Chỉ áp dụng cho dự án trong các nước thuộc khu vực Châu Á - Thái Bình Dương', 'Application Permissions': 'Chấp nhận đơn đăng ký', 'Application': 'Đơn đăng ký', 'Apply changes': 'Lưu thay đổi', 'Approval pending': 'Đang chờ phê duyệt', 'Approval request submitted': 'Yêu cầu phê duyệt đã được gửi', 'Approve': 'Phê duyệt', 'Approved By': 'Được phê duyệt bởi', 'Approved by %(first_initial)s.%(last_initial)s': 'Được phê duyệt bởi %(first_initial)s.%(last_initial)s', 'Approved': 'Đã phê duyệt', 'Approver': 'Người phê duyệt', 'ArcGIS REST Layer': 'Lớp ArcGIS REST', 'Archive not Delete': 'Bản lưu không xóa', 'Arctic Outflow': 'Dòng chảy từ Bắc Cực', 'Are you sure you want to delete this record?': 'Bạn có chắc bạn muốn xóa hồ sơ này?', 'Arrived': 'Đã đến', 'As of yet, no sections have been added to this template.': 'Chưa hoàn thành, không mục nào được thêm vào mẫu này', 'Assessment Answer Details': 'Nội dung câu trả lời trong mẫu đánh giá', 'Assessment Answer added': 'Câu trả lời trong mẫu đánh giá đã được thêm', 'Assessment Answer deleted': 'Câu trả lời trong mẫu đánh giá đã được xóa', 'Assessment Answer updated': 'Câu trả lời trong mẫu đánh giá đã được cập nhật', 'Assessment Answers': 'Câu trả lời trong mẫu đánh', 'Assessment Question Details': 'Nội dung câu trả hỏi trong mẫu đánh giá', 'Assessment Question added': 'Câu trả hỏi trong mẫu đánh giá đã được thêm', 'Assessment Question deleted': 'Câu trả hỏi trong mẫu đánh giá đã được xóa', 'Assessment Question updated': 'Câu trả hỏi trong mẫu đánh giá đã được cập nhật', 'Assessment Questions': 'Câu trả hỏi trong mẫu đánh', 'Assessment Template Details': 'Nội dung biểu mẫu đánh giá', 'Assessment Template added': 'Biểu mẫu đánh giá đã được thêm', 'Assessment Template deleted': 'Biểu mẫu đánh giá đã được xóa', 'Assessment Template updated': 'Biểu mẫu đánh giá đã được cập nhật', 'Assessment Templates': 'Biểu mẫu đánh giá', 'Assessment admin level': 'Cấp quản lý đánh giá', 'Assessment and Community/ Beneficiary Identification': 'Đánh giá và xác định đối tượng/ cộng đồng hưởng lợi', 'Assessment timeline': 'Khung thời gian đánh giá', 'Assessment updated': 'Đã cập nhật Trị giá tính thuế', 'Assessment': 'Đánh giá', 'Assessments': 'Đánh giá', 'Asset Details': 'Thông tin tài sản', 'Asset Log Details': 'Chi tiết nhật ký tài sản', 'Asset Log Empty': 'Xóa nhật ký tài sản', 'Asset Log Entry deleted': 'Ghi chép nhật ký tài sản đã được xóa', 'Asset Log Entry updated': 'Ghi chép nhật ký tài sản đã được cập nhật', 'Asset Log': 'Nhật ký tài sản', 'Asset Number': 'Số tài sản', 'Asset added': 'Tài sản đã được thêm', 'Asset deleted': 'Tài sản đã được xóa', 'Asset updated': 'Tài sản đã được cập nhật', 'Asset': 'Tài sản', 'Assets are resources which are not consumable but are expected back, so they need tracking.': 'Tài sản là các nguồn lực không tiêu hao và có thể được hoàn trả nên cần theo dõi tài sản', 'Assets': 'Tài sản', 'Assign Asset': 'Giao tài sản', 'Assign Human Resource': 'Phân chia nguồn nhân lực', 'Assign New Human Resource': 'Phân chia nguồn nhân lực mới', 'Assign Role to a User': 'Phân công vai trò cho người sử dụng', 'Assign Roles': 'Phân công vai trò', 'Assign Staff': 'Phân công cán bộ', 'Assign Vehicle': 'Phân công phương tiện vận chuyển', 'Assign another Role': 'Phân công vai trò khác', 'Assign to Facility/Site': 'Phân công tới Bộ phân/ Địa bàn', 'Assign to Organization': 'Phân công tới Tổ chức', 'Assign to Person': 'Phân công tới đối tượng', 'Assign': 'Phân công', 'Assigned By': 'Được phân công bởi', 'Assigned Roles': 'Vai trò được phân công', 'Assigned To': 'Được phân công tới', 'Assigned to Facility/Site': 'Được phân công tới Bộ phân/ Địa bàn', 'Assigned to Organization': 'Được phân công tới Tổ chức', 'Assigned to Person': 'Được phân công tới đối tượng', 'Assigned to': 'Được phân công tới', 'Assigned': 'Được phân công', 'Association': 'Liên hiệp', 'At or below %s': 'Tại đây hoặc phí dưới %s', 'At/Visited Location (not virtual)': 'Địa điêm ở/đã đến (không ảo)', 'Attachments': 'Đính kèm', 'Attribution': 'Quyền hạn', 'Australian Dollars': 'Đô la Úc', 'Authentication Required': 'Xác thực được yêu cầu', 'Author': 'Tác giả', 'Auxiliary Role': 'Vai trò bổ trợ', 'Availability': 'Thời gian có thể tham gia', 'Available Alternative Inventories': 'Hàng tồn kho thay thế sẵn có', 'Available Forms': 'Các mẫu có sẵn', 'Available Inventories': 'Hàng tồn kho sẵn có', 'Available databases and tables': 'Cơ sở dữ liệu và bảng biểu sẵn có', 'Available in Viewer?': 'Sẵn có để xem', 'Available until': 'Sẵn sàng cho đến khi', 'Avalanche': 'Tuyết lở', 'Average': 'Trung bình', 'Award Type': 'Hình thức khen thưởng', 'Award': 'Khen thưởng', 'Awarding Body': 'Cấp khen thưởng', 'Awards': 'Khen thưởng', 'Awareness Raising': 'Nâng cao nhận thức', 'BACK TO %(system_name_short)s': 'TRỞ LẠI %(system_name_short)s', 'BACK TO MAP VIEW': 'TRỞ LẠI XEM BẢN ĐỒ', 'BROWSE OTHER REGIONS': 'LỰA CHỌN CÁC VÙNG KHÁC', 'Baby And Child Care': 'Chăm sóc trẻ em', 'Bachelor': 'Cửa nhân', "Bachelor's Degree": 'Trung cấp, cao đẳng, đại học', 'Back to Roles List': 'Quay trở lại danh sách vai trò', 'Back to Users List': 'Quay trở lại danh sách người sử dụng', 'Back to the main screen': 'Trở lại màn hình chính', 'Back': 'Trở lại', 'Background Color': 'Màu nền', 'Baldness': 'Cây trụi lá', 'Bank/micro finance': 'Tài chính Ngân hàng', 'Base %(facility)s Set': 'Tập hợp %(facility)s nền tảng', 'Base Facility/Site Set': 'Tập hợp Bộ phận/ Địa bàn nền tảng', 'Base Layer?': 'Lớp bản đồ cơ sở?', 'Base Layers': 'Lớp bản đồ cơ sở', 'Base Location': 'Địa điểm nền tảng', 'Base URL of the remote Sahana Eden instance including application path, e.g. http://www.example.org/eden': 'Đường dẫn Cơ bản của Hệ thống Sahana Eden từ xa bao gồm đường dẫn ứng dụng như http://www.example.org/eden', 'Base Unit': 'Đơn vị cơ sở', 'Basic Details': 'Chi tiết cơ bản', 'Basic information on the requests and donations, such as category, the units, contact details and the status.': 'Thông tin cơ bản về các yêu cầu và quyên góp như thể loại, tên đơn vị, chi tiết liên lạc và tình trạng', 'Basic reports on the Shelter and drill-down by region': 'Báo cáo cơ bản về nơi cư trú và báo cáo chi tiết theo vùng', 'Baud rate to use for your modem - The default is safe for most cases': 'Tốc độ truyền sử dụng cho mô đem của bạn - Chế độ mặc định là an toàn trong hầu hết các trường hợp', 'Bed Type': 'Loại Giường', 'Behaviour Change Communication': 'Truyền thông thay đổi hành vi', 'Beneficiaries Added': 'Người hưởng lợi đã được thêm', 'Beneficiaries Deleted': 'Người hưởng lợi đã được xóa', 'Beneficiaries Details': 'Thông tin của người hưởng lợi', 'Beneficiaries Updated': 'Người hưởng lợi đã được cập nhật', 'Beneficiaries': 'Người hưởng lợi', 'Beneficiary Report': 'Báo cáo người hưởng lợi', 'Beneficiary Type Added': 'Loại người hưởng lợi đã được thêm', 'Beneficiary Type Deleted': 'Loại người hưởng lợi đã được xóa', 'Beneficiary Type Updated': 'Loại người hưởng lợi đã được cập nhật', 'Beneficiary Type': 'Đối tượng hưởng lợi', 'Beneficiary Types': 'Đối tượng hưởng lợi', 'Beneficiary of preferential treatment policy': 'Là đối tượng chính sách', 'Beneficiary': 'Người Hưởng lợi', 'Better Programming Initiative Guidance': 'Hướng dẫn sử dụng tài liệu BPI', 'Bin': 'Thẻ kho', 'Bing Layer': 'Lớp thừa', 'Biological Hazard': 'Hiểm họa sinh học', 'Biscuits': 'Bánh quy', 'Blizzard': 'Bão tuyết', 'Blocked': 'Bị chặn', 'Blood Donation and Services': 'Hiến máu và Dịch vụ về máu', 'Blood Type (AB0)': 'Nhóm máu (ABO)', 'Blowing Snow': 'Tuyết lở', 'Body Recovery Requests': 'Yêu cầu phục hồi cơ thể', 'Body Recovery': 'Phục hồi thân thể', 'Body': 'Thân thể', 'Bomb Explosion': 'Nổ bom', 'Bomb Threat': 'Nguy cơ nổ bom', 'Bomb': 'Bom', 'Border Color for Text blocks': 'Màu viền cho khối văn bản', 'Both': 'Cả hai', 'Branch Capacity Development': 'Phát triển năng lực cho Tỉnh/ thành Hội', 'Branch Organization Details': 'Thông tin tổ chức cơ sở', 'Branch Organization added': 'Tổ chức cơ sở đã được thêm', 'Branch Organization deleted': 'Tổ chức cơ sở đã được xóa', 'Branch Organization updated': 'Tổ chức cơ sở đã được cập nhật', 'Branch Organizations': 'Tổ chức cơ sở', 'Branch': 'Cơ sở', 'Branches': 'Cơ sở', 'Brand Details': 'Thông tin nhãn hiệu', 'Brand added': 'Nhãn hiệu đã được thêm', 'Brand deleted': 'Nhãn hiệu đã được xóa', 'Brand updated': 'Nhãn hiệu đã được cập nhật', 'Brand': 'Nhãn hiệu', 'Brands': 'Nhãn hiệu', 'Breakdown': 'Chi tiết theo', 'Bridge Closed': 'Cầu đã bị đóng', 'Buddhist': 'Tín đồ Phật giáo', 'Budget Updated': 'Cập nhât ngân sách', 'Budget deleted': 'Đã xóa ngân sách', 'Budget': 'Ngân sách', 'Budgets': 'Ngân sách', 'Buffer': 'Đệm', 'Bug': 'Lỗi', 'Building Collapsed': 'Nhà bị sập', 'Building Name': 'Tên tòa nhà', 'Bulk Uploader': 'Công cụ đê tải lên số lượng lớn thông tin', 'Bundle Updated': 'Cập nhật Bundle', 'Bundles': 'Bó', 'By Warehouse': 'Bằng Kho hàng', 'By Warehouse/Facility/Office': 'Bằng Kho hàng/ Bộ phận/ Văn phòng', 'By selecting this you agree that we may contact you.': 'Bằng việc lựa chọn bạn đồng ý chúng tôi có thể liên lạc với bạn', 'CBDRM': 'QLRRTHDVCĐ', 'COPY': 'Sao chép', 'CREATE': 'TẠO', 'CSS file %s not writable - unable to apply theme!': 'không viết được file CSS %s - không thể áp dụng chủ đề', 'CV': 'Quá trình công tác', 'Calculate': 'Tính toán', 'Calculation': 'Tính toán', 'Calendar': 'Lịch', 'Camp': 'Trạm/chốt tập trung', 'Can only approve 1 record at a time!': 'Chỉ có thể phê duyệt 1 hồ sơ mỗi lần', 'Can only disable 1 record at a time!': 'Chỉ có thể vô hiệu 1 hồ sơ mỗi lần', 'Can only update 1 record at a time!': 'Chỉ có thể cập nhật 1 hồ sơ mỗi lần', 'Can read PoIs either from an OpenStreetMap file (.osm) or mirror.': 'Có thể đọc PoIs từ cả định dạng file OpenStreetMap (.osm) hoặc mirror.', 'Canadian Dollars': 'Đô la Canada', 'Cancel Log Entry': 'Hủy ghi chép nhật ký', 'Cancel Shipment': 'Hủy lô hàng vận chuyển', 'Cancel editing': 'Hủy chỉnh sửa', 'Cancel': 'Hủy', 'Canceled': 'Đã hủy', 'Cannot delete whilst there are linked records. Please delete linked records first.': 'Không xóa được khi đang có bản thu liên quan.Hãy xóa bản thu trước', 'Cannot disable your own account!': 'Không thể vô hiệu tài khoản của chính bạn', 'Cannot make an Organization a branch of itself!': 'Không thể tạo ra tổ chức là tổ chức cơ sở của chính nó', 'Cannot open created OSM file!': 'Không thể mở file OSM đã tạo', 'Cannot read from file: %(filename)s': 'Không thể đọc file: %(filename)s', 'Cannot send messages if Messaging module disabled': 'Không thể gửi tin nhắn nếu chức năng nhắn tin bị tắt', 'Capacity Building of Staff': 'Xây dựng năng lực cho Cán bộ', 'Capacity Building of Volunteers': 'Xây dựng năng lực cho Tình nguyện viên', 'Capacity Building': 'Xây dựng năng lực', 'Capacity Development': 'Nâng cao năng lực', 'Capture Information on Disaster Victim groups (Tourists, Passengers, Families, etc.)': 'Nắm bắt thông tin của các nạn nhân chịu ảnh hưởng của thiên tai(Khách du lịch,Gia đình...)', 'Card number': 'Số thẻ BHXH', 'Cardiology': 'Bệnh tim mạch', 'Cases': 'Trường hợp', 'Casual Labor': 'Nhân công thời vụ', 'Catalog Details': 'Thông tin danh mục', 'Catalog Item added': 'Mặt hàng trong danh mục đã được thêm', 'Catalog Item deleted': 'Mặt hàng trong danh mục đã được xóa', 'Catalog Item updated': 'Mặt hàng trong danh mục đã được cập nhật', 'Catalog Items': 'Mặt hàng trong danh mục', 'Catalog added': 'Danh mục đã được thêm', 'Catalog deleted': 'Danh mục đã được xóa', 'Catalog updated': 'Danh mục đã được cập nhật', 'Catalog': 'Danh mục', 'Catalogs': 'Danh mục', 'Categories': 'Chủng loại', 'Category': 'Chủng loại', 'Center': 'Trung tâm', 'Certificate Catalog': 'Danh mục chứng nhận', 'Certificate Details': 'Thông tin chứng nhận', 'Certificate List': 'Danh sách chứng nhận', 'Certificate Status': 'Tình trạng của chứng nhận', 'Certificate added': 'Chứng nhận đã được thêm', 'Certificate deleted': 'Chứng nhận đã được xóa', 'Certificate updated': 'Chứng nhận đã được cập nhật', 'Certificate': 'Chứng nhận', 'Certificates': 'Chứng nhận', 'Certification Details': 'Thông tin bằng cấp', 'Certification added': 'Bằng cấp đã được thêm', 'Certification deleted': 'Bằng cấp đã được xóa', 'Certification updated': 'Bằng cấp đã được cập nhật', 'Certifications': 'Bằng cấp', 'Certifying Organization': 'Tổ chức xác nhận', 'Change Password': 'Thay đổi mật khẩu', 'Chart': 'Biểu đồ', 'Check Request': 'Kiểm tra yêu cầu', 'Check for errors in the URL, maybe the address was mistyped.': 'Kiểm tra lỗi đường dẫn URL, địa chỉ có thể bị đánh sai', 'Check if the URL is pointing to a directory instead of a webpage.': 'Kiểm tra nếu đường dẫn URL chỉ dẫn đến danh bạ chứ không phải đến trang web', 'Check outbox for the message status': 'Kiểm tra hộp thư đi để xem tình trạng thư gửi đi', 'Check this to make your search viewable by others.': 'Chọn ô này để người khác có thể xem được tìm kiếm của bạn', 'Check': 'Kiểm tra', 'Check-In': 'Đăng ký', 'Check-Out': 'Thanh toán', 'Checked': 'Đã kiểm tra', 'Checking your file...': 'Kiểm tra file của bạn', 'Checklist of Operations': 'Danh sách kiểm tra các hoạt động', 'Chemical Hazard': 'Hiểm họa óa học', 'Child (2-11)': 'Trẻ em (2-11)', 'Child Abduction Emergency': 'Tình trạng khẩn cấp về lạm dụng trẻ em', 'Children (2-5 years)': 'Trẻ em (từ 2-5 tuổi)', 'Children (< 2 years)': 'Trẻ em (dưới 2 tuổi)', 'Choose Country': 'Lựa chọn quốc gia', 'Choose File': 'Chọn file', 'Choose country': 'Lựa chọn quốc gia', 'Choose': 'Lựa chọn', 'Christian': 'Tín đồ Cơ-đốc giáo', 'Church': 'Nhà thờ', 'Circumstances of disappearance, other victims/witnesses who last saw the missing person alive.': 'Hoàn cảnh mất tích, những nhân chứng nhìn thấy lần gần đây nhất nạn nhân còn sống', 'City / Town / Village': 'Phường/ Xã', 'Civil Emergency': 'Tình trạng khẩn cấp dân sự', 'Civil Society/NGOs': 'Tổ chức xã hội/NGOs', 'Clear filter': 'Xóa', 'Clear selection': 'Xóa lựa chọn', 'Clear': 'Xóa', 'Click anywhere on the map for full functionality': 'Bấm vào vị trí bất kỳ trên bản đồ để có đầy đủ chức năng', 'Click on a marker to see the Completed Assessment Form': 'Bấm vào nút đánh dấu để xem Mẫu đánh giá đã hoàn chỉnh', 'Click on the chart to show/hide the form.': 'Bấm vào biểu đồ để hiển thị/ ẩn mẫu', 'Click on the link %(url)s to reset your password': 'Bấm vào đường dẫn %(url)s khởi tạo lại mật khẩu của bạn', 'Click on the link %(url)s to verify your email': 'Bấm vào đường dẫn %(url)s để kiểm tra địa chỉ email của bạn', 'Click to dive in to regions or rollover to see more': 'Bấm để dẫn tới vùng hoặc cuộn chuột để xem gần hơn', 'Click where you want to open Streetview': 'Bấm vào chỗ bạn muốn xem ở chế độ Đường phố', 'Climate Change Adaptation': 'Thích ứng với Biến đổi khí hậu', 'Climate Change Mitigation': 'Giảm nhẹ Biến đổi khí hậu', 'Climate Change': 'Biến đổi khí hậu', 'Clinical Laboratory': 'Phòng thí nghiệm lâm sàng', 'Close Adjustment': 'Đóng điều chỉnh', 'Close map': 'Đóng bản đồ', 'Close': 'Đóng', 'Closed': 'Đã đóng', 'Closed?': 'Đã Đóng?', 'Cluster Details': 'Thông tin nhóm', 'Cluster Distance': 'Khoảng cách các nhóm', 'Cluster Threshold': 'Ngưỡng của mỗi nhóm', 'Cluster added': 'Nhóm đã được thêm', 'Cluster deleted': 'Nhóm đã được xóa', 'Cluster updated': 'Nhóm đã được cập nhật', 'Cluster': 'Nhóm', 'Cluster(s)': 'Nhóm', 'Clusters': 'Nhóm', 'Code Share': 'Chia sẻ mã', 'Code': 'Mã', 'Cold Wave': 'Đợt lạnh', 'Collect PIN from Twitter': 'Thu thập mã PIN từ Twitter', 'Color of selected Input fields': 'Màu của trường đã được chọn', 'Column Choices (One Per Line': 'Chọn cột', 'Columns': 'Cột', 'Combined Method': 'phương pháp được kết hợp', 'Come back later. Everyone visiting this site is probably experiencing the same problem as you.': 'Quay lại sau. Mọi người ghé thăm trang này đều gặp vấn đề giống bạn.', 'Come back later.': 'Quay lại sau.', 'Comment': 'Ghi chú', 'Comments': 'Ghi chú', 'Commit Date': 'Thời điểm cam kết', 'Commit': 'Cam kết', 'Commit Status': 'Tình trạng cam kết', 'Commitment Added': 'Cam kết đã được thêm', 'Commitment Canceled': 'Cam kết đã được hủy', 'Commitment Details': 'Thông tin của cam kết', 'Commitment Item Details': 'Thông tin mặt hàng cam kết', 'Commitment Item added': 'Mặt hàng cam kết đã được thêm', 'Commitment Item deleted': 'Mặt hàng cam kết đã được xóa', 'Commitment Item updated': 'Mặt hàng cam kết đã được cập nhật', 'Commitment Items': 'Mặt hàng cam kết', 'Commitment Updated': 'Cam kết đã được cập nhật', 'Commitment': 'Cam kết', 'Commitments': 'Cam kết', 'Committed By': 'Cam kết bởi', 'Committed People': 'Người đã Cam kết', 'Committed Person Details': 'Thông tin người đã cam kết', 'Committed Person updated': 'Người cam kết đã được cập nhật', 'Committed': 'Đã Cam kết', 'Committing Organization': 'Tổ chức cam kết', 'Committing Person': 'Người đang cam Kết', 'Committing Warehouse': 'Kho hàng đang cam kết', 'Commodities Loaded': 'Hàng hóa được đưa lên xe', 'Commune Name': 'Tên xã', 'Commune': 'Phường/ Xã', 'Communicable Diseases': 'Bệnh dịch lây truyền', 'Communities': 'Địa bàn dự án', 'Community Action Planning': 'Lập kế hoạch hành động của cộng đồng', 'Community Added': 'Công đồng đã được thêm', 'Community Contacts': 'Thông tin liên hệ của cộng đồng', 'Community Deleted': 'Công đồng đã được xóa', 'Community Details': 'Thông tin về cộng đồng', 'Community Health Center': 'Trung tâm sức khỏe cộng đồng', 'Community Health': 'Chăm sóc sức khỏe cộng đồng', 'Community Member': 'Thành viên cộng đồng', 'Community Mobilisation': 'Huy động cộng đồng', 'Community Mobilization': 'Huy động cộng đồng', 'Community Organisation': 'Tổ chức cộng đồng', 'Community Organization': 'Tổ chức cộng đồng', 'Community Updated': 'Công đồng đã được cập nhật', 'Community Health': 'CSSK Cộng đồng', 'Community': 'Cộng đồng', 'Community-based DRR': 'GTRRTH dựa vào cộng đồng', 'Company': 'Công ty', 'Competency Rating Catalog': 'Danh mục xếp hạng năng lực', 'Competency Rating Details': 'Thông tin xếp hạng năng lực', 'Competency Rating added': 'Xếp hạng năng lực đã được thêm', 'Competency Rating deleted': 'Xếp hạng năng lực đã được xóa', 'Competency Rating updated': 'Xếp hạng năng lực đã được cập nhật', 'Competency Rating': 'Xếp hạng năng lực', 'Competency': 'Cấp độ thành thục', 'Complete Returns': 'Quay lại hoàn toàn', 'Complete Unit Label for e.g. meter for m.': 'Nhãn đơn vị đầy đủ. Ví dụ mét cho m.', 'Complete': 'Hoàn thành', 'Completed Assessment Form Details': 'Thông tin biểu mẫu đánh giá đã hoàn thiện', 'Completed Assessment Form deleted': 'Biểu mẫu đánh giá đã hoàn thiện đã được thêm', 'Completed Assessment Form entered': 'Biểu mẫu đánh giá đã hoàn thiện đã được nhập', 'Completed Assessment Form updated': 'Biểu mẫu đánh giá đã hoàn thiện đã được cập nhật', 'Completed Assessment Forms': 'Biểu mẫu đánh giá đã hoàn thiện', 'Completed Assessments': 'Các Đánh giá đã Hoàn thành', 'Completed': 'Hoàn thành', 'Completion Question': 'Câu hỏi hoàn thành', 'Complex Emergency': 'Tình huống khẩn cấp phức tạp', 'Complexion': 'Cục diện', 'Compose': 'Soạn thảo', 'Condition': 'Điều kiện', 'Conduct a Disaster Assessment': 'Thực hiện đánh giá thảm họa', 'Config added': 'Cấu hình đã được thêm', 'Config updated': 'Cập nhật tùy chỉnh', 'Config': 'Tùy chỉnh', 'Configs': 'Cấu hình', 'Configuration': 'Cấu hình', 'Configure Layer for this Symbology': 'Thiết lập cấu hình lớp cho biểu tượng này', 'Configure Run-time Settings': 'Thiết lập cấu hình cho cài đặt thời gian hoạt động', 'Configure connection details and authentication': 'Thiêt lập cấu hình cho thông tin kết nối và xác thực', 'Configure resources to synchronize, update methods and policies': 'Cài đặt cấu hình các nguồn lực để đồng bộ, cập nhật phương pháp và chính sách', 'Configure the default proxy server to connect to remote repositories': 'Thiết lập cấu hình cho máy chủ mặc định để kết nối tới khu vực lưu trữ từ xa', 'Configure/Monitor Synchonization': 'Thiêt lập cấu hình/ giám sát đồng bộ hóa', 'Confirm Shipment Received': 'Xác nhận lô hàng đã nhận', 'Confirm that some items were returned from a delivery to beneficiaries and they will be accepted back into stock.': 'Xác nhận một số mặt hàng đã được trả lại từ bên vận chuyển tới người hưởng lợi và các mặt hàng này sẽ được chấp thuân nhập trở lại kho.', 'Confirm that the shipment has been received by a destination which will not record the shipment directly into the system and confirmed as received.': 'Xác nhận lô hàng đã nhận đến điểm gửi mà không biên nhập lô hàng trực tiếp vào hệ thống và đã xác nhận việc nhận hàng', 'Confirmed': 'Đã xác nhận', 'Confirming Organization': 'Tổ chức xác nhận', 'Conflict Policy': 'Xung đột Chính sách', 'Construction of Transitional Shelter': 'Xây dựng nhà tạm', 'Consumable': 'Có thể tiêu dùng được', 'Contact Added': 'Thông tin liên hệ đã được thêm', 'Contact Data': 'Dữ liệu thông tin liên hệ', 'Contact Deleted': 'Thông tin liên hệ đã được xóa', 'Contact Description': 'Số điện thoại/ Email', 'Contact Details': 'Thông tin hợp đồng', 'Contact Info': 'Thông tin liên hệ', 'Contact Information Added': 'Thông tin liên hệ đã được thêm', 'Contact Information Deleted': 'Thông tin liên hệ đã được xóa', 'Contact Information Updated': 'Thông tin liên hệ đã được cập nhật', 'Contact Information': 'Thông tin liên hệ', 'Contact Method': 'Phương pháp liên hệ', 'Contact People': 'Người liên hệ', 'Contact Person': 'Người liên hệ', 'Contact Persons': 'Người liên hệ', 'Contact Updated': 'Thông tin liên hệ đã được cập nhật', 'Contact us': 'Liên hệ chúng tôi', 'Contact': 'Thông tin liên hệ', 'Contacts': 'Thông tin liên hệ', 'Contents': 'Nội dung', 'Context': 'Bối cảnh', 'Contingency/ Preparedness Planning': 'Lập kế hoạch dự phòng/ phòng ngừa', 'Contract End Date': 'Ngày kết thúc hợp đồng', 'Contributor': 'Người đóng góp', 'Controller': 'Người kiểm soát', 'Conversion Tool': 'Công cụ chuyển đổi', 'Coordinate Layer': 'Lớp điều phối', 'Coordination and Partnerships': 'Điều phối và Hợp tác', 'Copy': 'Sao chép', 'Corn': 'Ngũ cốc', 'Corporate Entity': 'Thực thể công ty', 'Could not add person record': 'Không thêm được hồ sơ cá nhân', 'Could not auto-register at the repository, please register manually.': 'Không thể đăng ký tự động vào kho dữ liệu, đề nghị đăng ký thủ công', 'Could not create record.': 'Không tạo được hồ sơ', 'Could not generate report': 'Không tạo được báo cáo', 'Could not initiate manual synchronization.': 'Không thể bắt đầu việc đồng bộ hóa thủ công', 'Count of Question': 'Số lượng câu Hỏi', 'Count': 'Số lượng', 'Countries': 'Quốc gia', 'Country Code': 'Quốc gia cấp', 'Country in': 'Quốc gia ở', 'Country is required!': 'Quốc gia bắt buộc điền!', 'Country': 'Quốc gia', 'County / District (Count)': 'Quận / Huyện (số lượng)', 'County / District': 'Quận/ Huyện', 'Course Catalog': 'Danh mục khóa tập huấn', 'Course Certificate Details': 'Thông tin chứng nhận khóa tập huấn', 'Course Certificate added': 'Chứng nhận khóa tập huấn đã được thêm', 'Course Certificate deleted': 'Chứng nhận khóa tập huấn đã được xóa', 'Course Certificate updated': 'Chứng nhận khóa tập huấn đã được cập nhật', 'Course Certificates': 'Chứng chỉ khóa học', 'Course Details': 'Thông tin khóa tập huấn', 'Course added': 'Khóa tập huấn đã được thêm', 'Course deleted': 'Khóa tập huấn đã được xóa', 'Course updated': 'Khóa tập huấn đã được cập nhật', 'Course': 'Khóa tập huấn', 'Create & manage Distribution groups to receive Alerts': 'Tạo & quản lý nhóm phân phát để nhận cảnh báo', 'Create Activity Type': 'Thêm loại hình hoạt động', 'Create Activity': 'Thêm hoạt động', 'Create Assessment Template': 'Thêm biểu mẫu đánh giá', 'Create Assessment': 'Thêm đợt đánh giá', 'Create Asset': 'Thêm tài sản', 'Create Award': 'Thêm khen thưởng', 'Create Award Type': 'Thêm hình thức khen thưởng', 'Create Beneficiary Type': 'Thêm loại người hưởng lợi', 'Create Brand': 'Thêm nhãn hàng', 'Create Catalog Item': 'Thêm mặt hàng vào danh mục', 'Create Catalog': 'Thêm danh mục', 'Create Certificate': 'Thêm chứng nhận', 'Create Cluster': 'Thêm nhóm', 'Create Community': 'Thêm cộng đồng', 'Create Competency Rating': 'Thêm xếp loại năng lực', 'Create Contact': 'Thêm liên lạc', 'Create Course': 'Thêm khóa tập huấn', 'Create Department': 'Thêm phòng/ban', 'Create Disaster Assessment': 'Thêm báo cáo đánh giá thảm họa', 'Create Facility Type': 'Thêm loại hình bộ phận', 'Create Facility': 'Thêm bộ phận', 'Create Feature Layer': 'Thêm lớp chức năng', 'Create Group Entry': 'Tạo ghi chép nhóm', 'Create Group': 'Thêm nhóm', 'Create Hazard': 'Thêm hiểm họa', 'Create Hospital': 'Thêm Bệnh viện', 'Create Incident Report': 'Thêm báo cáo sự cố', 'Create Incident': 'Thêm sự kiện', 'Create Item Category': 'Thêm loại hàng hóa', 'Create Item Pack': 'Thêm gói hàng hóa', 'Create Item': 'Tạo mặt hàng mới', 'Create Item': 'Thêm hàng hóa', 'Create Job Title': 'Thêm chức danh công việc', 'Create Job': 'Thêm công việc', 'Create Kit': 'Thêm dụng cụ', 'Create Layer': 'Thêm lớp', 'Create Location Hierarchy': 'Thêm thứ tự địa điểm', 'Create Location': 'Thêm địa điểm', 'Create Mailing List': 'Thêm danh sách gửi thư', 'Create Map Profile': 'Thêm cài đặt cấu hình bản đồ', 'Create Marker': 'Thêm công cụ đánh dấu', 'Create Member': 'Thêm hội viên', 'Create Membership Type': 'Thêm loại hội viên', 'Create Milestone': 'Thêm mốc quan trọng', 'Create National Society': 'Thêm Hội Quốc gia', 'Create Office Type': 'Thêm loại hình văn phòng mới', 'Create Office': 'Thêm văn phòng', 'Create Organization Type': 'Thêm loại hình tổ chức', 'Create Organization': 'Thêm tổ chức', 'Create PDF': 'Tạo PDF', 'Create Partner Organization': 'Thêm tổ chức đối tác', 'Create Program': 'Thêm chương trình', 'Create Project': 'Thêm dự án', 'Create Projection': 'Thêm dự đoán', 'Create Question Meta-Data': 'Thêm siêu dữ liệu câu hỏi', 'Create Report': 'Thêm báo cáo mới', 'Create Repository': 'Thêm kho chứa', 'Create Request': 'Khởi tạo yêu cầu', 'Create Resource': 'Thêm nguồn lực', 'Create Role': 'Thêm vai trò', 'Create Room': 'Thêm phòng', 'Create Sector': 'Thêm lĩnh vực', 'Create Shelter': 'Thêm Nơi cư trú mới', 'Create Skill Type': 'Thêm loại kỹ năng', 'Create Skill': 'Thêm kỹ năng', 'Create Staff Level': 'Thêm ngạch công chức', 'Create Staff Member': 'Thêm cán bộ', 'Create Status': 'Thêm trạng thái', 'Create Supplier': 'Thêm nhà cung cấp', 'Create Symbology': 'Thêm biểu tượng', 'Create Task': 'Thêm nhiệm vụ', 'Create Team': 'Tạo đội TNV', 'Create Theme': 'Thêm chủ đề', 'Create Training Event': 'Thêm khóa tập huấn', 'Create User': 'Thêm người dùng', 'Create Volunteer Cluster Position': 'Thêm vi trí của nhóm tình nguyện viên', 'Create Volunteer Cluster Type': 'Thêm loại hình nhóm tình nguyện viên', 'Create Volunteer Cluster': 'Thêm nhóm tình nguyện viên', 'Create Volunteer Role': 'Thêm vai trò của tình nguyện viên', 'Create Volunteer': 'Thêm tình nguyện viên', 'Create Warehouse': 'Thêm kho hàng', 'Create a Person': 'Thêm họ tên', 'Create a group entry in the registry.': 'Tạo ghi chép nhóm trong hồ sơ đăng ký', 'Create a new Team': 'Tạo đội TNV mới', 'Create a new facility or ensure that you have permissions for an existing facility.': 'Tạo tiện ích mới hoặc đảm bảo rằng bạn có quyền truy cập vào tiện ích sẵn có', 'Create a new organization or ensure that you have permissions for an existing organization.': 'Tạo tổ chức mới hoặc đảm bảo rằng bạn có quyền truy cập vào một tổ chức có sẵn', 'Create alert': 'Tạo cảnh báo', 'Create an Assessment Question': 'Thêm câu hỏi trong mẫu đánh giá', 'Create search': 'Thêm tìm kiếm', 'Create template': 'Tạo mẫu biểu', 'Create': 'Thêm', 'Created By': 'Tạo bởi', 'Created by': 'Tạo bởi', 'Credential Details': 'Thông tin thư ủy nhiệm', 'Credential added': 'Thư ủy nhiệm đã được thêm', 'Credential deleted': 'Thư ủy nhiệm đã được xóa', 'Credential updated': 'Thư ủy nhiệm đã được cập nhật', 'Credentialling Organization': 'Tổ chức ủy nhiệm', 'Credentials': 'Thư ủy nhiệm', 'Crime': 'Tội phạm', 'Criteria': 'Tiêu chí', 'Critical Infrastructure': 'Cở sở hạ tầng trọng yếu', 'Currency': 'Tiền tệ', 'Current Group Members': 'Nhóm thành viên hiện tại', 'Current Home Address': 'Địa chỉ nhà riêng hiện tại', 'Current Identities': 'Nhận dạng hiện tại', 'Current Location': 'Vị trí hiện tại', 'Current Memberships': 'Thành viên hiện tại', 'Current Owned By (Organization/Branch)': 'Hiện tại đang được sở hữu bởi (Tổ chức/ cơ sở)', 'Current Status': 'Trạng thái hiện tại', 'Current Twitter account': 'Tài khoản Twitter hiện tại', 'Current request': 'Yêu cầu hiện tại', 'Current response': 'Hoạt động ưng phó hiện tại', 'Current session': 'Phiên họp hiện tại', 'Current': 'Đang đề xuất', 'Currently no Certifications registered': 'Hiện tại chưa có chứng nhận nào được đăng ký', 'Currently no Course Certificates registered': 'Hiện tại chưa có chứng nhận khóa tập huấn nào được đăng ký', 'Currently no Credentials registered': 'Hiện tại chưa có thư ủy nhiệm nào được đăng ký', 'Currently no Participants registered': 'Hiện tại chưa có người tham dự nào đăng ký', 'Currently no Professional Experience entered': 'Hiện tại chưa có kinh nghiệm nghề nghiệp nào được nhập', 'Currently no Skill Equivalences registered': 'Hiện tại chưa có kỹ năng tương đương nào được đăng ký', 'Currently no Skills registered': 'Hiện tại chưa có kỹ năng nào được đăng ký', 'Currently no Trainings registered': 'Hiện tại chưa có khóa tập huấn nào được đăng ký', 'Currently no entries in the catalog': 'Hiện chưa có hồ sơ nào trong danh mục', 'Currently no hours recorded for this volunteer': 'Hiện tại chưa có thời gian hoạt động được ghi cho tình nguyện viên này', 'Currently no programmes registered': 'Hiện tại chưa có chương trình nào được đăng ký', 'Currently no staff assigned': 'Hiện tại chưa có cán bộ nào được phân công', 'Currently no training events registered': 'Hiện tại chưa có khóa tập huấn nào được đăng ký', 'Customer': 'Khách hàng', 'Customisable category of aid': 'Các tiêu chí cứu trợ có thể tùy chỉnh', 'Cyclone': 'Bão', 'DATA QUALITY': 'CHẤT LƯỢNG DỮ LIỆU', 'DATA/REPORT': 'DỮ LIỆU/BÁO CÁO', 'DECIMAL_SEPARATOR': 'Ngăn cách bằng dấu phẩy', 'DELETE': 'XÓA', 'DRR': 'GTRRTH', 'DRRPP Extensions': 'Gia hạn DRRPP', 'Daily Work': 'Công việc hàng ngày', 'Daily': 'Hàng ngày', 'Dam Overflow': 'Tràn đập', 'Damaged': 'Thiệt hại', 'Dangerous Person': 'Người nguy hiểm', 'Dashboard': 'Bảng điều khiển', 'Data Quality': 'Chất lượng Dữ liệu', 'Data Source': 'Nguồn Dữ liệu', 'Data Type': 'Loại dữ liệu', 'Data added to Theme Layer': 'Dữ liệu đã được thêm vào lớp chủ đề', 'Data import error': 'Lỗi nhập khẩu dữ liệu', 'Data uploaded': 'Dữ liệu đã được tải lên', 'Data': 'Dữ liệu', 'Data/Reports': 'Dữ liệu/Báo cáo', 'Database Development': 'Xây dựng cơ sở dữ liệu', 'Database': 'Cơ sở Dữ liệu', 'Date Available': 'Ngày rãnh rỗi', 'Date Created': 'Ngày đã được tạo', 'Date Due': 'Ngày đến hạn', 'Date Expected': 'Ngày được mong muốn', 'Date Joined': 'Ngày tham gia', 'Date Needed By': 'Ngày cần bởi', 'Date Published': 'Ngày xuất bản', 'Date Question': 'Hỏi Ngày', 'Date Range': 'Khoảng thời gian', 'Date Received': 'Ngày Nhận được', 'Date Released': 'Ngày Xuất ra', 'Date Repacked': 'Ngày Đóng gói lại', 'Date Requested': 'Ngày Đề nghị', 'Date Required Until': 'Trước Ngày Đòi hỏi ', 'Date Required': 'Ngày Đòi hỏi', 'Date Sent': 'Ngày gửi', 'Date Taken': 'Ngày Nhận được', 'Date Until': 'Trước Ngày', 'Date and Time of Goods receipt. By default shows the current time but can be modified by editing in the drop down list.': 'Ngày giờ nhận hàng hóa.Hiển thị thời gian theo mặc định nhưng vẫn có thể chỉnh sửa', 'Date and Time': 'Ngày và giờ', 'Date must be %(max)s or earlier!': 'Ngày phải %(max)s hoặc sớm hơn!', 'Date must be %(min)s or later!': 'Ngày phải %(min)s hoặc muộn hơn!', 'Date must be between %(min)s and %(max)s!': 'Ngày phải trong khoản %(min)s và %(max)s!', 'Date of Birth': 'Ngày Sinh', 'Date of Report': 'Ngày báo cáo', 'Date of adjustment': 'Điều chỉnh ngày', 'Date of submission': 'Ngày nộp', 'Date Resigned': 'Ngày từ nhiệm', 'Date': 'Ngày bắt đầu', 'Date/Time of Alert': 'Ngày/Giờ Cảnh báo', 'Date/Time of Dispatch': 'Ngày/Giờ Gửi', 'Date/Time of Find': 'Ngày giờ tìm kiếm', 'Date/Time': 'Ngày/Giờ', 'Day': 'Ngày', 'De-duplicator': 'Bộ chống trùng', 'Dead Bodies': 'Các xác chết', 'Dead Body Reports': 'Báo cáo thiệt hại về người', 'Dead Body': 'Xác chết', 'Deaths/24hrs': 'Số người chết/24h', 'Deceased': 'Đã chết', 'Decimal Degrees': 'Độ âm', 'Decision': 'Quyết định', 'Decline failed': 'Thất bại trong việc giảm', 'Default Base layer?': 'Lớp bản đồ cơ sở mặc định', 'Default Location': 'Địa điểm mặc định', 'Default Marker': 'Đánh dấu mặc định', 'Default Realm = All Entities the User is a Staff Member of': 'Realm mặc định=tất cả các đơn vị, người Sử dụng là cán bộ thành viên của', 'Default Realm': 'Realm mặc định', 'Default map question': 'Câu hỏi bản đồ mặc định', 'Default synchronization policy': 'Chính sách đồng bộ hóa mặc định', 'Default': 'Mặc định', 'Defaults': 'Mặc định', 'Defines the icon used for display of features on handheld GPS.': 'Định nghĩa biểu tượng được sử dụng để miêu tả các chức năng trên máy GPS cầm tay.', 'Defines the icon used for display of features on interactive map & KML exports.': 'Định nghĩa biểu tượng được sử dụng để miêu tả các chức năng trên bản đồ tương tác và chiết xuất KML.', 'Degrees in a latitude must be between -90 to 90.': 'Giá trị vĩ độ phải trong khoảng -90 tới 90', 'Degrees in a longitude must be between -180 to 180.': 'Giá trị kinh độ phải nằm giữa -180 tới 180', 'Degrees must be a number.': 'Độ: phải hiển thị bằng số', 'Delete Affiliation': 'Xóa liên kết', 'Delete Aid Request': 'Xóa yêu cầu cứu trợ', 'Delete Alternative Item': 'Xóa mặt hàng thay thế', 'Delete Asset Log Entry': 'Xóa ghi chép nhật ký tài sản', 'Delete Asset': 'Xóa tài sản', 'Delete Branch': 'Xóa tổ chức cơ sở', 'Delete Brand': 'Xóa nhãn hiệu', 'Delete Budget': 'Xóa ngân sách', 'Delete Catalog Item': 'Xóa mặt hang trong danh mục', 'Delete Catalog': 'Xóa danh mục', 'Delete Certificate': 'Xóa chứng chỉ', 'Delete Certification': 'Xóa bằng cấp', 'Delete Cluster': 'Xóa nhóm', 'Delete Commitment Item': 'Xóa mặt hàng cam kết', 'Delete Commitment': 'Xóa cam kết', 'Delete Competency Rating': 'Xóa xếp loại năng lực', 'Delete Config': 'Xóa cấu hình', 'Delete Contact Information': 'Xóa thông tin liên hệ', 'Delete Course Certificate': 'Xóa chứng chỉ khóa học', 'Delete Course': 'Xóa khóa học', 'Delete Credential': 'Xóa thư ủy nhiệm', 'Delete Data from Theme layer': 'Xoá dữ liệu khỏi lớp chủ đề', 'Delete Department': 'Xóa phòng/ban', 'Delete Document': 'Xóa tài liệu', 'Delete Donor': 'Xóa nhà tài trợ', 'Delete Facility Type': 'Xóa loại hinh bộ phận', 'Delete Facility': 'Xóa bộ phận', 'Delete Feature Layer': 'Xóa lớp chức năng', 'Delete Group': 'Xóa nhóm', 'Delete Hazard': 'Xóa hiểm họa', 'Delete Hospital': 'Xóa Bệnh viện', 'Delete Hours': 'Xóa thời gian hoạt động', 'Delete Image': 'Xóa hình ảnh', 'Delete Incident Report': 'Xóa báo cáo sự kiện', 'Delete Inventory Store': 'Xóa kho lưu trữ', 'Delete Item Category': 'Xóa danh mục hàng hóa', 'Delete Item Pack': 'Xóa gói hàng', 'Delete Item from Request': 'Xóa mặt hàng từ yêu cầu', 'Delete Item': 'Xóa mặt hàng', 'Delete Job Role': 'Xóa vai trò công việc', 'Delete Job Title': 'Xóa chức danh', 'Delete Kit': 'Xóa dụng cụ', 'Delete Layer': 'Xóa lớp', 'Delete Location Hierarchy': 'Xóa thứ tự địa điểm', 'Delete Location': 'Xóa địa điểm', 'Delete Mailing List': 'Xóa danh sách gửi thư', 'Delete Map Profile': 'Xóa cài đặt cấu hình bản đồ', 'Delete Marker': 'Xóa công cụ đánh dấu', 'Delete Member': 'Xóa hội viên', 'Delete Membership Type': 'Xóa loại hình nhóm hội viên', 'Delete Membership': 'Xóa nhóm hội viên', 'Delete Message': 'Xóa tin nhắn', 'Delete Metadata': 'Xóa siêu dữ liệu', 'Delete National Society': 'Xóa Hội Quốc gia', 'Delete Office Type': 'Xóa loại hình văn phòng', 'Delete Office': 'Xóa văn phòng', 'Delete Order': 'Xóa đơn đặt hàng', 'Delete Organization Domain': 'Xóa lĩnh vực hoạt động của tổ chức', 'Delete Organization Type': 'Xóa loại hình tổ chức', 'Delete Organization': 'Xóa tổ chức', 'Delete Participant': 'Xóa người tham dự', 'Delete Partner Organization': 'Xóa tổ chức đối tác', 'Delete Person': 'Xóa đối tượng', 'Delete Photo': 'Xóa ảnh', 'Delete Professional Experience': 'Xóa kinh nghiệm nghề nghiệp', 'Delete Program': 'Xóa chương trình', 'Delete Project': 'Xóa dự án', 'Delete Projection': 'Xóa dự đoán', 'Delete Received Shipment': 'Xóa lô hàng đã nhận', 'Delete Record': 'Xóa hồ sơ', 'Delete Report': 'Xóa báo cáo', 'Delete Request Item': 'Xóa yêu cầu hàng hóa', 'Delete Request': 'Xóa yêu cầu', 'Delete Role': 'Xóa vai trò', 'Delete Room': 'Xóa phòng', 'Delete Sector': 'Xóa lĩnh vực', 'Delete Sent Shipment': 'Xóa lô hàng đã gửi', 'Delete Service Profile': 'Xóa hồ sơ đăng ký dịch vụ', 'Delete Shipment Item': 'Xóa mặt hàng trong lô hàng', 'Delete Skill Equivalence': 'Xóa kỹ năng tương đương', 'Delete Skill Type': 'Xóa loại kỹ năng', 'Delete Skill': 'Xóa kỹ năng', 'Delete Staff Assignment': 'Xóa phân công cho cán bộ', 'Delete Staff Member': 'Xóa cán bộ', 'Delete Status': 'Xóa tình trạng', 'Delete Stock Adjustment': 'Xóa điều chỉnh hàng lưu kho', 'Delete Supplier': 'Xóa nhà cung cấp', 'Delete Survey Question': 'Xóa câu hỏi khảo sát', 'Delete Survey Template': 'Xóa mẫu khảo sát', 'Delete Symbology': 'Xóa biểu tượng', 'Delete Theme': 'Xóa chủ đề', 'Delete Training Event': 'Xóa sự kiện tập huấn', 'Delete Training': 'Xóa tập huấn', 'Delete Unit': 'Xóa đơn vị', 'Delete User': 'Xóa người dùng', 'Delete Volunteer Cluster Position': 'Xóa vị trí nhóm tình nguyện viên', 'Delete Volunteer Cluster Type': 'Xóa loại hình nhóm tình nguyện viên', 'Delete Volunteer Cluster': 'Xóa nhóm tình nguyện viên', 'Delete Volunteer Role': 'Xóa vai trò của tình nguyện viên', 'Delete Volunteer': 'Xóa tình nguyện viên', 'Delete Warehouse': 'Xóa kho hàng', 'Delete all data of this type which the user has permission to before upload. This is designed for workflows where the data is maintained in an offline spreadsheet and uploaded just for Reads.': 'Xóa tất cả dữ liệu loại này mà người dùng có quyền truy cập trước khi tải lên. Việc này được thiết kế cho chu trình làm việc mà dữ liệu được quản lý trên excel ngoại tuyến và được tải lên chỉ để đọc.', 'Delete from Server?': 'Xóa khỏi máy chủ', 'Delete saved search': 'Xóa tìm kiếm đã lưu', 'Delete this Assessment Answer': 'Xóa câu trả lời này trong mẫu đánh giá', 'Delete this Assessment Question': 'Xóa câu hỏi này trong mẫu đánh giá', 'Delete this Assessment Template': 'Xóa biểu mẫu đánh giá này', 'Delete this Completed Assessment Form': 'Xóa biểu mẫu đánh giá đã được hoàn thiện này', 'Delete this Disaster Assessment': 'Xóa đánh giá thảm họa này', 'Delete this Question Meta-Data': 'Xóa siêu dữ liệu câu hỏi này', 'Delete this Template Section': 'Xóa nội dung này trong biểu mẫu', 'Delete': 'Xóa', 'Deliver To': 'Gửi tới', 'Delivered By': 'Được bởi', 'Delivered To': 'Đã gửi tới', 'Demographic Data Details': 'Thông tin số liệu dân số', 'Demographic Data added': 'Số liệu dân số đã được thêm', 'Demographic Data deleted': 'Số liệu dân số đã được xóa', 'Demographic Data updated': 'Số liệu dân số đã được cập nhật', 'Demographic Data': 'Số liệu dân số', 'Demographic Details': 'Thông tin dân số', 'Demographic Source Details': 'Thông tin về nguồn dữ liệu dân số', 'Demographic Sources': 'Nguồn dữ liệu dân số', 'Demographic added': 'Dữ liệu nhân khẩu đã được thêm', 'Demographic data': 'Số liệu dân số', 'Demographic deleted': 'Dữ liệu nhân khẩu đã được xóa', 'Demographic source added': 'Nguồn số liệu dân số đã được thêm', 'Demographic source deleted': 'Nguồn số liệu dân số đã được xóa', 'Demographic source updated': 'Nguồn số liệu dân số đã được cập nhật', 'Demographic updated': 'Dữ liệu nhân khẩu đã được cập nhật', 'Demographic': 'Nhân khẩu', 'Demographics': 'Nhân khẩu', 'Demonstrations': 'Trình diễn', 'Dental Examination': 'Khám nha khoa', 'Dental Profile': 'Hồ sơ khám răng', 'Department / Unit': 'Ban / Đơn vị', 'Department Catalog': 'Danh sách phòng/ban', 'Department Details': 'Thông tin phòng/ban', 'Department added': 'Phòng ban đã được thêm', 'Department deleted': 'Phòng ban đã được xóa', 'Department updated': 'Phòng ban đã được cập nhật', 'Deployment Location': 'Địa điểm điều động', 'Deployment Request': 'Yêu cầu điều động', 'Deployment': 'Triển khai', 'Describe the condition of the roads to your hospital.': 'Mô tả tình trạng các con đường tới bệnh viện.', "Describe the procedure which this record relates to (e.g. 'medical examination')": 'Mô tả qui trình liên quan tới hồ sơ này (ví dụ: "kiểm tra sức khỏe")', 'Description of Contacts': 'Mô tả thông tin mối liên lạc', 'Description of defecation area': 'Mo tả khu vực defecation', 'Description': 'Mô tả', 'Design, deploy & analyze surveys.': 'Thiết kế, triển khai và phân tích đánh giá.', 'Destination': 'Điểm đến', 'Destroyed': 'Bị phá hủy', 'Detailed Description/URL': 'Mô tả chi tiêt/URL', 'Details field is required!': 'Ô Thông tin chi tiết là bắt buộc!', 'Details of Disaster Assessment': 'Thông tin chi tiết về đánh giá thảm họa', 'Details of each question in the Template': 'Chi tiết về mỗi câu hỏi trong biểu mẫu', 'Details': 'Chi tiết', 'Dignitary Visit': 'Chuyến thăm cấp cao', 'Direction': 'Định hướng', 'Disable': 'Vô hiệu', 'Disabled': 'Đã tắt', 'Disaster Assessment Chart': 'Biểu đồ đánh giá thảm họa', 'Disaster Assessment Map': 'Bản đồ đánh giá thảm họa', 'Disaster Assessment Summary': 'Tóm tắt đánh giá thảm họa', 'Disaster Assessment added': 'Báo cáo đánh giá thảm họa đã được thêm', 'Disaster Assessment deleted': 'Báo cáo đánh giá thảm họa đã được xóa', 'Disaster Assessment updated': 'Báo cáo đánh giá thảm họa đã được cập nhật', 'Disaster Assessments': 'Đánh giá thảm họa', 'Disaster Law': 'Luật phòng, chống thiên tai', 'Disaster Risk Management': 'QLRRTH', 'Disaster Risk Reduction': 'GTRRTH', 'Disaster Victim Identification': 'Nhận dạng nạn nhân trong thảm họa', 'Disaster chemical spill/leak, explosions, collapses, gas leaks, urban fire, oil spill, technical failure': 'rò rỉ hóa học, nổ, rò khí ga, hỏa hoạn trong đô thị, tràn dầu', 'Disciplinary Action Type': 'Hình thức kỷ luật', 'Disciplinary Body': 'Cấp kỷ luật', 'Disciplinary Record': 'Kỷ luật', 'Discussion Forum': 'Diễn đàn thảo luận', 'Dispatch Time': 'Thời gian gửi đi', 'Dispatch': 'Gửi đi', 'Dispensary': 'Y tế dự phòng', 'Displaced Populations': 'Dân cư bị sơ tán', 'Display Chart': 'Hiển thị biểu đồ', 'Display Polygons?': 'Hiển thị hình đa giác?', 'Display Question on Map': 'Hiển thị câu hỏi trên bản đồ', 'Display Routes?': 'Hiển thị tuyến đường?', 'Display Selected Questions': 'Hiển thị câu hỏi được lựa chọn', 'Display Tracks?': 'Hiển thị dấu vết?', 'Display Waypoints?': 'Hiển thị các cột báo trên đường?', 'Display': 'Hiển thị', 'Distance from %s:': 'Khoảng cách từ %s:', 'Distribution Item Details': 'Chi tiết hàng hóa cứu trợ ', 'Distribution Item': 'Hàng hóa đóng góp', 'Distribution groups': 'Nhóm cấp phát', 'Distribution of Food': 'Cấp phát lương thực', 'Distribution of Non-Food Items': 'Cấp phát các mặt hàng phi lương thực', 'Distribution of Shelter Repair Kits': 'Cấp phát bộ dụng cụ sửa nhà', 'Distribution': 'Cấp phát', 'District': 'Quận/ Huyện', 'Diversifying Livelihoods': 'Đa dạng nguồn sinh kế', 'Divorced': 'Ly hôn', 'Do you really want to approve this record?': 'Bạn có thực sự muốn chấp thuân hồ sơ này không?', 'Do you really want to delete these records?': 'Bạn có thực sự muốn xóa các hồ sơ này không?', 'Do you really want to delete this record? (This action can not be reversed)': 'Bạn có thực sự muốn xóa hồ sơ này không? (Hồ sơ không thể khôi phục lại sau khi xóa)', 'Do you want to cancel this received shipment? The items will be removed from the Warehouse. This action CANNOT be undone!': 'Bạn có muốn hủy lô hàng đã nhận được này không? Hàng hóa này sẽ bị xóa khỏi Kho hàng. Dữ liệu không thể khôi phục lại sau khi xóa!', 'Do you want to cancel this sent shipment? The items will be returned to the Warehouse. This action CANNOT be undone!': 'Bạn có muốn hủy Lô hàng đã nhận được này không? Hàng hóa này sẽ được trả lại Kho hàng. Dữ liệu không thể khôi phục lại sau khi xóa!', 'Do you want to close this adjustment?': 'Bạn có muốn đóng điều chỉnh này lại?', 'Do you want to complete the return process?': 'Bạn có muốn hoàn thành quá trình trả lại hàng này?', 'Do you want to over-write the file metadata with new default values?': 'Bạn có muốn thay dữ liệu file bằng giá trị mặc định mới không?', 'Do you want to receive this shipment?': 'Bạn có muốn nhận lô hàng này?', 'Do you want to send this shipment?': 'Bạn có muốn gửi lô hàng này?', 'Document Details': 'Chi tiết tài liệu', 'Document Scan': 'Quyét Tài liệu', 'Document added': 'Tài liệu đã được thêm', 'Document deleted': 'Tài liệu đã được xóa', 'Document updated': 'Tài liệu đã được cập nhật', 'Document': 'Tài liệu', 'Documents': 'Tài liệu', 'Doing nothing (no structured activity)': 'Không làm gì (không có hoạt động theo kế hoạch', 'Domain': 'Phạm vi hoạt động', 'Domestic chores': 'Công việc nội trợ', 'Donated': 'Đã tài trợ', 'Donating Organization': 'Tổ chức tài trợ', 'Donation Phone #': 'Số điện thoại để ủng hộ', 'Donation': 'Ủng hộ', 'Donor Details': 'Thông tin nhà tài trợ', 'Donor Driven Housing Reconstruction': 'Xây lại nhà theo yêu cầu của nhà tài trợ', 'Donor added': 'Nhà tài trợ đã được thêm', 'Donor deleted': 'Nhà tài trợ đã được xóa', 'Donor updated': 'Nhà tài trợ đã được cập nhật', 'Donor': 'Nhà Tài trợ', 'Donors': 'Nhà tài trợ', 'Donor(s)': 'Nhà tài trợ', 'Donors Report': 'Báo cáo nhà tài trợ', 'Download Assessment Form Document': 'Biểu mẫu đánh giá đã dạng văn bản được tải về', 'Download Assessment Form Spreadsheet': 'Biểu mẫu đánh giá đã dạng excel được tải về', 'Download OCR-able PDF Form': 'Tải về biểu mẫu định dạng OCR-able PDF', 'Download Template': 'Tải Mẫu nhập liệu', 'Download last build': 'Tải về bộ tài liệu cập nhật nhất', 'Download': 'Tải về', 'Download.CSV formatted Template': 'Tải về biểu mẫu định dạng CSV', 'Draft Features': 'Chức năng dự thảo', 'Draft': 'Dự thảo', 'Drainage': 'Hệ thống thoát nước', 'Draw a square to limit the results to just those within the square.': 'Vẽ một ô vuông để giới hạn kết quả tìm kiếm chỉ nằm trong ô vuông đó', 'Driving License': 'Giấy phép lái xe', 'Drought': 'Hạn hán', 'Drugs': 'Thuốc', 'Due %(date)s': 'hết hạn %(date)s', 'Dug Well': 'Đào giếng', 'Dump': 'Trút xuống', 'Duplicate Locations': 'Nhân đôi các vị trí', 'Duplicate label selected': 'Nhân đôi biểu tượng đã chọn', 'Duplicate': 'Nhân đôi', 'Duration (months)': 'Khoảng thời gian (tháng)', 'Dust Storm': 'Bão cát', 'EMS Status': 'Tình trạng EMS', 'Early Warning': 'Cảnh báo sớm', 'Earthquake': 'Động đất', 'Economics of DRR': 'Tính kinh tế của GTRRTH', 'Edit Activity Type': 'Chỉnh sửa loại hình hoạt động', 'Edit Activity': 'Chỉnh sửa hoạt động', 'Edit Address': 'Chỉnh sửa địa chỉ', 'Edit Adjustment': 'Chỉnh sửa điều chỉnh', 'Edit Affiliation': 'Chỉnh sửa liên kết', 'Edit Aid Request': 'Chỉnh sửa Yêu cầu cứu trợ', 'Edit Alternative Item': 'Chỉnh sửa mặt hàng thay thê', 'Edit Annual Budget': 'Chỉnh sửa ngân sách năm', 'Edit Assessment Answer': 'Chỉnh sửa câu trả lời trong mẫu đánh giá', 'Edit Assessment Question': 'Chỉnh sửa câu trả hỏi trong mẫu đánh giá', 'Edit Assessment Template': 'Chỉnh sửa biểu mẫu đánh giá', 'Edit Assessment': 'Chỉnh sửa Đánh giá', 'Edit Asset Log Entry': 'Chỉnh sửa ghi chép nhật ký tài sản', 'Edit Asset': 'Chỉnh sửa tài sản', 'Edit Beneficiaries': 'Chỉnh sửa người hưởng lợi', 'Edit Beneficiary Type': 'Chỉnh sửa loại người hưởng lợi', 'Edit Branch Organization': 'Chỉnh sửa tổ chức cơ sở', 'Edit Brand': 'Chỉnh sửa nhãn hiệu', 'Edit Catalog Item': 'Chỉnh sửa mặt hàng trong danh mục', 'Edit Catalog': 'Chỉnh sửa danh mục hàng hóa', 'Edit Certificate': 'Chỉnh sửa chứng chỉ', 'Edit Certification': 'Chỉnh sửa bằng cấp', 'Edit Cluster': 'Chỉnh sửa nhóm', 'Edit Commitment Item': 'Chỉnh sửa mặt hàng cam kết', 'Edit Commitment': 'Chỉnh sửa cam kết', 'Edit Committed Person': 'Chỉnh sửa đối tượng cam kết', 'Edit Community Details': 'Chỉnh sửa thông tin về cộng đồng', 'Edit Competency Rating': 'Chỉnh sửa xếp hạng năng lực', 'Edit Completed Assessment Form': 'Chỉnh sửa biểu mẫu đánh giá đã hoàn thiện', 'Edit Contact Details': 'Chỉnh sửa thông tin liên hệ', 'Edit Contact Information': 'Chỉnh sửa thông tin liên hệ', 'Edit Course Certificate': 'Chỉnh sửa chứng chỉ khóa học', 'Edit Course': 'Chỉnh sửa khóa học', 'Edit Credential': 'Chỉnh sửa thư ủy nhiệm', 'Edit DRRPP Extensions': 'Chỉnh sửa gia hạn DRRPP', 'Edit Defaults': 'Chỉnh sửa mặc định', 'Edit Demographic Data': 'Chỉnh sửa số liệu dân số', 'Edit Demographic Source': 'Chỉnh sửa nguồn số liệu dân số', 'Edit Demographic': 'Chỉnh sửa dữ liệu nhân khẩu', 'Edit Department': 'Chỉnh sửa phòng/ban', 'Edit Description': 'Chỉnh sửa mô tả', 'Edit Details': 'Chỉnh sửa thông tin chi tiết', 'Edit Disaster Victims': 'Chỉnh sửa thông tin nạn nhân trong thiên tai', 'Edit Distribution': 'Chỉnh sửa Quyên góp', 'Edit Document': 'Chỉnh sửa tài liệu', 'Edit Donor': 'Chỉnh sửa nhà tài trợ', 'Edit Education Details': 'Chỉnh sửa thông tin về trình độ học vấn', 'Edit Email Settings': 'Chỉnh sửa cài đặt email', 'Edit Entry': 'Chỉnh sửa hồ sơ', 'Edit Facility Type': 'Chỉnh sửa loại hình bộ phận', 'Edit Facility': 'Chỉnh sửa bộ phận', 'Edit Feature Layer': 'Chỉnh sửa lớp chức năng', 'Edit Framework': 'Chỉnh sửa khung chương trình', 'Edit Group': 'Chỉnh sửa nhóm', 'Edit Hazard': 'Chỉnh sửa hiểm họa', 'Edit Hospital': 'Chỉnh sửa Bệnh viện', 'Edit Hours': 'Chỉnh sửa thời gian hoạt động', 'Edit Human Resource': 'Chỉnh sửa nguồn nhân lực', 'Edit Identification Report': 'Chỉnh sửa báo cáo định dạng', 'Edit Identity': 'Chỉnh sửa nhận dạng', 'Edit Image Details': 'Chỉnh sửa thông tin hình ảnh', 'Edit Image': 'Chỉnh sửa ảnh', 'Edit Incident Report': 'Chỉnh sửa báo cáo sự cố', 'Edit Incident': 'Chỉnh sửa Các sự việc xảy ra', 'Edit Item Catalog Categories': 'Chỉnh sửa danh mục hàng hóa', 'Edit Item Category': 'Chỉnh sửa danh mục hàng hóa', 'Edit Item Pack': 'Chỉnh sửa gói hàng', 'Edit Item in Request': 'Chỉnh sửa mặt hàng đang được yêu cầu', 'Edit Item': 'Chỉnh sửa mặt hàng', 'Edit Job Role': 'Chỉnh sửa chức năng nhiệm vụ', 'Edit Job Title': 'Chỉnh sửa chức danh', 'Edit Job': 'Chỉnh sửa công việc', 'Edit Key': 'Chỉnh sửa Key', 'Edit Layer': 'Chỉnh sửa lớp', 'Edit Level %d Locations?': 'Chỉnh sửa cấp độ %d địa điểm?', 'Edit Location Details': 'Chỉnh sửa chi tiết địa điểm', 'Edit Location Hierarchy': 'Chỉnh sửa thứ tự địa điểm', 'Edit Location': 'Chỉnh sửa địa điểm', 'Edit Log Entry': 'Chỉnh sửa ghi chép nhật ký', 'Edit Logged Time': 'Chỉnh sửa thời gian đăng nhập', 'Edit Mailing List': 'Chỉnh sửa danh sách gửi thư', 'Edit Map Profile': 'Chỉnh sửa cài đặt cấu hình bản đồ', 'Edit Map Services': 'Chỉnh sửa dịch vụ bản đồ', 'Edit Marker': 'Chỉnh sửa công cụ đánh dấu', 'Edit Member': 'Chỉnh sửa hội viên', 'Edit Membership Type': 'Chỉnh sửa loại hình nhóm hội viên', 'Edit Membership': 'Chỉnh sửa nhóm hội viên', 'Edit Message': 'Chỉnh sửa tin nhắn', 'Edit Messaging Settings': 'Chỉnh sửa thiết lập tin nhắn', 'Edit Metadata': 'Chỉnh sửa dữ liệu', 'Edit Milestone': 'Chỉnh sửa mốc thời gian quan trọng', 'Edit Modem Settings': 'Chỉnh sửa cài đặt Modem', 'Edit National Society': 'Chỉnh sửa Hội Quốc gia', 'Edit Office Type': 'Chỉnh sửa loại hình văn phòng', 'Edit Office': 'Chỉnh sửa văn phòng', 'Edit Options': 'Chỉnh sửa lựa chọn', 'Edit Order': 'Chỉnh sửa lệnh', 'Edit Organization Domain': 'Chỉnh sửa lĩnh vực hoạt động của tổ chức', 'Edit Organization Type': 'Chỉnh sửa loại hình tổ chức', 'Edit Organization': 'Chỉnh sửa tổ chức', 'Edit Output': 'Chỉnh sửa kết quả đầu ra', 'Edit Parser Settings': 'Chỉnh sửa cài đặt cú pháp', 'Edit Participant': 'Chỉnh sửa người tham dự', 'Edit Partner Organization': 'Chỉnh sửa tổ chức đối tác', 'Edit Peer Details': 'Chỉnh sửa chi tiết nhóm người', 'Edit Permissions for %(role)s': 'Chỉnh sửa quyền truy cập cho %(role)s', 'Edit Person Details': 'Chỉnh sửa thông tin cá nhân', 'Edit Photo': 'Chỉnh sửa ảnh', 'Edit Problem': 'Chỉnh sửa Vấn đề', 'Edit Professional Experience': 'Chỉnh sửa kinh nghiệm nghề nghiệp', 'Edit Profile Configuration': 'Chỉnh sửa định dạng hồ sơ tiểu sử', 'Edit Program': 'Chỉnh sửa chương trình', 'Edit Project Organization': 'Chỉnh sửa tổ chức thực hiện dự án', 'Edit Project': 'Chỉnh sửa dự án', 'Edit Projection': 'Chỉnh sửa dự đoán', 'Edit Question Meta-Data': 'Chỉnh sửa siêu dữ liệu câu hỏi', 'Edit Record': 'Chỉnh sửa hồ sơ', 'Edit Recovery Details': 'Chỉnh sửa chi tiết khôi phục', 'Edit Report': 'Chỉnh sửa báo cáo', 'Edit Repository Configuration': 'Chỉnh sửa định dạng lưu trữ', 'Edit Request Item': 'Chỉnh sửa yêu cầu hàng hóa', 'Edit Request': 'Chỉnh sửa yêu cầu', 'Edit Requested Skill': 'Chỉnh sửa kỹ năng được yêu cầu', 'Edit Resource Configuration': 'Chỉnh sửa định dạng nguồn', 'Edit Resource': 'Chỉnh sửa tài nguyên', 'Edit Response': 'Chỉnh sửa phản hồi', 'Edit Role': 'Chỉnh sửa vai trò', 'Edit Room': 'Chỉnh sửa phòng', 'Edit SMS Message': 'Chỉnh sửa tin nhắn SMS', 'Edit SMS Settings': 'Chỉnh sửa cài đặt tin nhắn SMS', 'Edit SMTP to SMS Settings': 'Chỉnh sửa SMTP sang cài đặt SMS', 'Edit Sector': 'Chỉnh sửa lĩnh vực', 'Edit Setting': 'Chỉnh sửa cài đặt', 'Edit Settings': 'Thay đổi thiết lập', 'Edit Shelter Service': 'Chỉnh sửa dịch vụ cư trú', 'Edit Shelter': 'Chỉnh sửa thông tin cư trú', 'Edit Shipment Item': 'Chỉnh sửa hàng hóa trong lô hàng vận chuyển', 'Edit Site': 'Chỉnh sửa thông tin trên website ', 'Edit Skill Equivalence': 'Chỉnh sửa kỹ năng tương đương', 'Edit Skill Type': 'Chỉnh sửa loại kỹ năng', 'Edit Skill': 'Chỉnh sửa kỹ năng', 'Edit Staff Assignment': 'Chỉnh sửa phân công cán bộ', 'Edit Staff Member Details': 'Chỉnh sửa thông tin chi tiết của cán bộ', 'Edit Status': 'Chỉnh sửa tình trạng', 'Edit Supplier': 'Chỉnh sửa nhà cung cấp', 'Edit Survey Answer': 'Chỉnh sửa trả lời khảo sát', 'Edit Survey Series': 'Chỉnh sửa chuỗi khảo sát', 'Edit Survey Template': 'Chỉnh sửa mẫu điều tra', 'Edit Symbology': 'Chỉnh sửa biểu tượng', 'Edit Synchronization Settings': 'Chỉnh sửa cài đặt đồng bộ hóa', 'Edit Task': 'Chỉnh sửa nhiệm vụ', 'Edit Team': 'Chỉnh sửa Đội/Nhóm', 'Edit Template Section': 'Chỉnh sửa nội dung trong biểu mẫu', 'Edit Theme Data': 'Chỉnh sửa dữ liệu chủ đề', 'Edit Theme': 'Chỉnh sửa chủ đề', 'Edit Training Event': 'Chỉnh sửa sự kiện tập huấn', 'Edit Training': 'Chỉnh sửa tập huấn', 'Edit Tropo Settings': 'Chỉnh sửa cài đặt Tropo', 'Edit Twilio Settings': 'Chỉnh sửa cài đặt Twilio', 'Edit User': 'Chỉnh sửa người sử dụng', 'Edit Vehicle Assignment': 'Chỉnh sửa phân công phương tiện vận chuyển', 'Edit Volunteer Cluster Position': 'Chỉnh sửa vị trí nhóm tình nguyện viên', 'Edit Volunteer Cluster Type': 'Chỉnh sửa loại hình nhóm tình nguyện viên', 'Edit Volunteer Cluster': 'Chỉnh sửa nhóm tình nguyện viên', 'Edit Volunteer Details': 'Chỉnh sửa thông tin tình nguyện viên', 'Edit Volunteer Registration': 'Chỉnh sửa đăng ký tình nguyện viên', 'Edit Volunteer Role': 'Chỉnh sửa vai trò tình nguyện viên', 'Edit Vulnerability Aggregated Indicator': 'Chỉnh sửa chỉ số gộp đánh giá tình trạng dễ bị tổn thương', 'Edit Vulnerability Data': 'Chỉnh sửa dữ liệu về tình trạng dễ bị tổn thương', 'Edit Vulnerability Indicator Sources': 'Chỉnh sửa nguồn chỉ số đánh giá tình trạng dễ bị tổn thương', 'Edit Vulnerability Indicator': 'Chỉnh sửa chỉ số đánh giá tình trạng dễ bị tổn thương', 'Edit Warehouse Stock': 'Chỉnh sửa hàng lưu kho', 'Edit Warehouse': 'Chỉnh sửa kho hàng', 'Edit Web API Settings': 'Chỉnh sửa Cài đặt Web API', 'Edit current record': 'Chỉnh sửa hồ sơ hiện tại', 'Edit message': 'Chỉnh sửa tin nhắn', 'Edit saved search': 'Chỉnh sửa tìm kiếm đã lưu', 'Edit the Application': 'Chỉnh sửa ứng dụng', 'Edit the OpenStreetMap data for this area': 'Chỉnh sửa dữ liệu bản đồ OpenStreetMap cho vùng này', 'Edit this Disaster Assessment': 'Chỉnh sửa báo cáo đánh giá thảm họa này', 'Edit this entry': 'Chỉnh sửa hồ sơ này', 'Edit': 'Chỉnh sửa', 'Editable?': 'Có thể chỉnh sửa', 'Education & Advocacy': 'Giáo dục và Vận động chính sách', 'Education & School Safety': 'Giáo dục và An toàn trong trường học', 'Education Details': 'Thông tin về trình độ học vấn', 'Education details added': 'Thông tin về trình độ học vấn đã được thêm', 'Education details deleted': 'Thông tin về trình độ học vấn đã được xóa', 'Education details updated': 'Thông tin về trình độ học vấn đã được cập nhật', 'Education materials received': 'Đã nhận được tài liệu, dụng cụ phục vụ học tập', 'Education materials, source': 'Dụng cụ học tập, nguồn', 'Education': 'Trình độ học vấn', 'Either a shelter or a location must be specified': 'Nhà tạm hoặc vị trí đều cần được nêu rõ', 'Either file upload or document URL required.': 'File để tải lên hoặc được dẫn tới tài liệu đều được yêu cầu.', 'Either file upload or image URL required.': 'File để tải lên hoặc được dẫn tới hình ảnh đều được yêu cầu.', 'Elevated': 'Nâng cao lên', 'Email Address to which to send SMS messages. Assumes sending to phonenumber@address': 'Địa chỉ email để gửi tin nhắn SMS. Giả định gửi đến số điện thoại', 'Email Address': 'Địa chỉ email', 'Email Details': 'Thông tin về địa chỉ email', 'Email InBox': 'Hộp thư đến trong email', 'Email Setting Details': 'Thông tin cài đặt email', 'Email Setting deleted': 'Cài đặt email đã được xóa', 'Email Settings': 'Cài đặt email', 'Email address verified, however registration is still pending approval - please wait until confirmation received.': 'Địa chỉ email đã được xác nhận, tuy nhiên đăng ký vẫn còn chờ duyệt - hãy đợi đến khi nhận được phê chuẩn', 'Email deleted': 'Email đã được xóa', 'Email settings updated': 'Cài đặt email đã được cập nhật', 'Emergency Contact': 'Thông tin liên hệ trong trường hợp khẩn cấp', 'Emergency Contacts': 'Thông tin liên hệ trong trường hợp khẩn cấp', 'Emergency Department': 'Bộ phận cấp cứu', 'Emergency Health': 'Chăm sóc sức khỏe trong tình huống khẩn cấp', 'Emergency Medical Technician': 'Nhân viên y tế EMT', 'Emergency Shelter': 'Nhà tạm trong tình huống khẩn cấp', 'Emergency Support Facility': 'Bộ phận hỗ trợ khẩn cấp', 'Emergency Support Service': 'Dịch vụ hỗ trợ khẩn cấp', 'Emergency Telecommunication': 'Truyền thông trong tình huống khẩn cấp', 'Emergency Telecommunications': 'Thông tin liên lạc trong tình huống khẩn cấp', 'Emergency contacts': 'Thông tin liên hệ khẩn cấp', 'Employment type': 'Loại hình lao động', 'Enable in Default Config?': 'Cho phép ở cấu hình mặc định?', 'Enable': 'Cho phép', 'Enable/Disable Layers': 'Kích hoạt/Tắt Layer', 'Enabled': 'Được cho phép', 'End Date': 'Ngày kết thúc', 'End date': 'Ngày kết thúc', 'Enter Completed Assessment Form': 'Nhập biểu mẫu đánh giá đã hoàn thiện', 'Enter Completed Assessment': 'Nhập báo cáo đánh giá đã hoàn thiện', 'Enter Coordinates in Deg Min Sec': 'Nhập tọa độ ở dạng Độ,Phút,Giây', 'Enter a name for the spreadsheet you are uploading (mandatory).': 'Nhập tên cho bảng tính bạn đang tải lên(bắt buộc)', 'Enter a new support request.': 'Nhập một yêu cầu hỗ trợ mới', 'Enter a summary of the request here.': 'Nhập tóm tắt các yêu cầu ở đây', 'Enter a valid email': 'Nhập địa chỉ email có giá trị', 'Enter a value carefully without spelling mistakes, this field will be crosschecked.': 'Nhập giá trị cẩn thận tránh các lỗi chính tả, nội dung này sẽ được kiểm tra chéo', 'Enter indicator ratings': 'Nhập xếp hạng chỉ số', 'Enter keywords': 'Từ khóa tìm kiếm', 'Enter some characters to bring up a list of possible matches': 'Nhập một vài ký tự để hiện ra danh sách có sẵn', 'Enter the same password as above': 'Nhập lại mật khẩu giống như trên', 'Enter your first name': 'Nhập tên của bạn', 'Enter your organization': 'Nhập tên tổ chức của bạn', 'Entering a phone number is optional, but doing so allows you to subscribe to receive SMS messages.': 'Nhập số điện thoại là không bắt buộc, tuy nhiên nếu nhập số điện thoại bạn sẽ có thể nhận được các tin nhắn', 'Entity': 'Pháp nhân', 'Entry added to Asset Log': 'Ghi chép đã được thêm vào nhật ký tài sản', 'Environment': 'Môi trường', 'Epidemic': 'Dịch bệnh', 'Epidemic/Pandemic Preparedness': 'Phòng dịch', 'Error File missing': 'Lỗi không tìm thấy file', 'Error in message': 'Lỗi trong tin nhắn', "Error logs for '%(app)s'": "Báo cáo lỗi cho '%(app)s'", 'Errors': 'Lỗi', 'Essential Staff?': 'Cán bộ Chủ chốt?', 'Estimated # of households who are affected by the emergency': 'Ước tính # số hộ chịu ảnh hưởng từ thiên tai', 'Estimated Delivery Date': 'Thời gian giao hàng dự kiến', 'Estimated Value per Pack': 'Giá trị dự tính mỗi gói', 'Ethnicity': 'Dân tộc', 'Euros': 'Đồng Euro', 'Evaluate the information in this message. (This value SHOULD NOT be used in public warning applications.)': 'Đánh giá thông tin trong thư. (giá trị này KHÔNG NÊN sử dụng trong các ứng dụng cảnh báo công cộng)', 'Event Type': 'Loại Sự kiện', 'Event type': 'Loại sự kiện ', 'Events': 'Sự kiện', 'Example': 'Ví dụ', 'Excellent': 'Tuyệt vời', 'Excreta Disposal': 'Xử lý phân', 'Expected Out': 'Theo dự kiến', 'Experience': 'Kinh nghiệm', 'Expiration Date': 'Ngày hết hạn', 'Expiration Details': 'Thông tin về hết hạn', 'Expiration Report': 'Báo cáo hết hạn', 'Expired': 'Đã hết hạn', 'Expiring Staff Contracts Report': 'Hợp đồng lao động sắp hết hạn', 'Expiry (months)': 'Hết hạn (tháng)', 'Expiry Date': 'Ngày hết hạn', 'Expiry Date/Time': 'Ngày/Giờ hết hạn', 'Expiry Time': 'Hạn sử dụng ', 'Explanation about this view': 'Giải thích về quan điểm này', 'Explosive Hazard': 'Hiểm họa cháy nổ', 'Export Data': 'Xuất dữ liệu', 'Export all Completed Assessment Data': 'Chiết xuất toàn bộ dữ liệu đánh giá đã hoàn thiện', 'Export as Pootle (.po) file (Excel (.xls) is default)': 'Chiết xuất định dạng file Pootle (.po) (định dạng excel là mặc định)', 'Export as': 'Chiết suất tới', 'Export in EDXL-HAVE format': 'Chiết suất ra định dạng EDXL-HAVE ', 'Export in GPX format': 'Chiết xuất định dạng file GPX', 'Export in HAVE format': 'Chiết suất định dạng HAVE', 'Export in KML format': 'Chiết suất định dạng KML', 'Export in OSM format': 'Chiết xuất định dạng OSM', 'Export in PDF format': 'Chiết suất định dạng PDF', 'Export in RSS format': 'Chiết suất định dạng RSS', 'Export in XLS format': 'Chiết suất định dạng XLS', 'Export to': 'Chiết suất tới', 'Eye Color': 'Màu mắt', 'FAIR': 'CÔNG BẰNG', 'FROM': 'TỪ', 'Facial hair, color': 'Màu râu', 'Facial hair, length': 'Độ dài râu', 'Facial hair, type': 'Kiểu râu', 'Facilities': 'Bộ phận', 'Facility Contact': 'Thông tin liên hệ của bộ phận', 'Facility Details': 'Thông tin về bộ phận', 'Facility Type Details': 'Thông tin về loại hình bộ phận', 'Facility Type added': 'Loại hình bộ phận đã được thêm', 'Facility Type deleted': 'Loại hình bộ phận đã được xóa', 'Facility Type updated': 'Loại hình bộ phận đã được cập nhật', 'Facility Types': 'Loại hình bộ phận', 'Facility added': 'Bộ phận đã được thêm', 'Facility deleted': 'Bộ phận đã được xóa', 'Facility updated': 'Bộ phận đã được cập nhật', 'Facility': 'Bộ phận', 'Fail': 'Thất bại', 'Failed to approve': 'Không phê duyệt thành công', 'Fair': 'công bằng', 'Falling Object Hazard': 'Hiểm họa vật thể rơi từ trên cao', 'Family': 'Gia đình', 'Family/friends': 'Gia đình/Bạn bè', 'Feature Info': 'Thông tin chức năng', 'Feature Layer Details': 'Thông tin về lớp chức năng', 'Feature Layer added': 'Lớp chức năng đã được thêm', 'Feature Layer deleted': 'Lớp chức năng đã được xóa', 'Feature Layer updated': 'Lớp chức năng đã được cập nhật', 'Feature Layer': 'Lớp Chức năng', 'Feature Layers': 'Lớp Chức năng', 'Feature Namespace': 'Vùng tên chức năng', 'Feature Request': 'Yêu cầu chức năng', 'Feature Type': 'Loại chức năng', 'Features Include': 'Chức năng bao gồm', 'Feedback': 'Phản hồi', 'Female headed households': 'Phụ nữ đảm đương công việc nội trợ', 'Female': 'Nữ', 'Few': 'Một vài', 'File Uploaded': 'File đã được tải lên', 'File uploaded': 'File đã được tải lên', 'Fill out online below or ': 'Điền thông tin trực tuyến vào phía dưới hoặc', 'Filter Field': 'Ô lọc thông tin', 'Filter Options': 'Lựa chọn lọc', 'Filter Value': 'Giá trị lọc', 'Filter by Category': 'Lọc theo danh mục', 'Filter by Country': 'Lọc theo quốc gia', 'Filter by Organization': 'Lọc theo tổ chức', 'Filter by Status': 'Lọc theo tình trạng', 'Filter type ': 'Hình thức lọc', 'Filter': 'Bộ lọc', 'Financial System Development': 'Xây dựng hệ thống tài chính', 'Find Recovery Report': 'Tìm Báo cáo phục hồi', 'Find by Name': 'Tìm theo tên', 'Find': 'Tìm', 'Fingerprint': 'Vân tay', 'Fingerprinting': 'Dấu vân tay', 'Fire Station': 'Trạm chữa cháy', 'Fire Stations': 'Trạm chữa cháy', 'Fire': 'Hỏa hoạn', 'First Name': 'Tên', 'First': 'Trang đầu', 'Flash Flood': 'Lũ Quét', 'Flash Freeze': 'Lạnh cóng đột ngột', 'Flood Alerts': 'Báo động lũ', 'Flood Report Details': 'Chi tiết báo cáo tình hình lũ lụt', 'Flood Report added': 'Báo cáo lũ lụt đã được thêm', 'Flood Report updated': 'Đã cập nhật báo cáo tình hình lũ lụt ', 'Flood': 'Lũ lụt', 'Focal Point': 'Tiêu điểm', 'Fog': 'Sương mù', 'Food Security': 'An ninh lương thực', 'Food': 'Thực phẩm', 'For Entity': 'Đối với đơn vị', 'For POP-3 this is usually 110 (995 for SSL), for IMAP this is usually 143 (993 for IMAP).': 'Đối với POP-3 thường sử dụng 110 (995 cho SSL), đối với IMAP thường sử dụng 143 (993 cho IMAP).', 'For each sync partner, there is a default sync job that runs after a specified interval of time. You can also set up more sync jobs which could be customized on your needs. Click the link on the right to get started.': 'Đối với mỗi đối tác đồng bộ, có một công việc đồng bộ mặc định chạy sau một khoảng thời gian nhất định. Bạn cũng có thể thiết lập thêm công việc đồng bộ hơn nữa để có thể tùy biến theo nhu cầu. Nhấp vào liên kết bên phải để bắt đầu', 'For live help from the Sahana community on using this application, go to': 'Để được giúp đỡ trực tuyến từ cộng đồng Sahana về sử dụng phần mềm ứng dụng, mời đến', 'For more details on the Sahana Eden system, see the': 'Chi tiết hệ thống Sahana Eden xem tại', 'Forest Fire': 'Cháy rừng', 'Form Settings': 'Cài đặt biểu mẫu', 'Formal camp': 'Trại chính thức', 'Format': 'Định dạng', 'Found': 'Tìm thấy', 'Framework added': 'Khung chương trình đã được thêm', 'Framework deleted': 'Khung chương trình đã được xóa', 'Framework updated': 'Khung chương trình đã được cập nhật', 'Framework': 'Khung chương trình', 'Frameworks': 'Khung chương trình', 'Freezing Drizzle': 'Mưa bụi lạnh cóng', 'Freezing Rain': 'Mưa lạnh cóng', 'Freezing Spray': 'Mùa phùn lạnh cóng', 'Frequency': 'Tần suất', 'From Facility': 'Từ bộ phận', 'From Warehouse/Facility/Office': 'Từ Kho hàng/Bộ phận/Văn phòng', 'From': 'Từ', 'Frost': 'Băng giá', 'Fulfil. Status': 'Điền đầy đủ tình trạng', 'Full beard': 'Râu rậm', 'Full-time': 'Chuyên trách', 'Fullscreen Map': 'Bản đồ cỡ lớn', 'Function Permissions': 'Chức năng cho phép', 'Function for Value': 'Chức năng cho giá trị', 'Function': 'Chức năng', 'Functions available': 'Chức năng sẵn có', 'Funding Report': 'Báo cáo tài trợ', 'Funding': 'Kinh phí', 'Fundraising, income generation, in-kind support, partnership': 'Gây quỹ, tạo thu nhập, hỗ trợ bằng hiện vật, hợp tác', 'Funds Contributed by this Organization': 'Tài trợ đóng góp bởi tổ chức này', 'Funds Contributed': 'Kinh phí được tài trợ', 'GIS & Mapping': 'GIS & Lập bản đồ', 'GO TO ANALYSIS': 'ĐẾN MỤC PHÂN TÍCH', 'GO TO THE REGION': 'ĐẾN KHU VỰC', 'GPS Data': 'Dữ liệu GPS', 'GPS Marker': 'Dụng cụ đánh dấu GPS', 'GPS Track File': 'File vẽ GPS', 'GPS Track': 'Đường vẽ GPS', 'GPX Layer': 'Lớp GPX', 'Gale Wind': 'Gió mạnh', 'Gap Analysis Map': 'Bản đồ phân tích thiếu hụt', 'Gap Analysis Report': 'Báo cáo phân tích thiếu hụt', 'Gauges': 'Máy đo', 'Gender': 'Giới', 'Generate portable application': 'Tạo ứng dụng cầm tay', 'Generator': 'Bộ sinh', 'GeoJSON Layer': 'Lớp GeoJSON', 'GeoRSS Layer': 'Lớp GeoRSS', 'Geocoder Selection': 'Lựa chọn các mã địa lý', 'Geometry Name': 'Tên trúc hình', 'Get Feature Info': 'Lấy thông tin về chức năng', 'Give a brief description of the image, e.g. what can be seen where on the picture (optional).': 'Đưa ra chú thích hình ảnh ngắn gọn, vd: có thể xem gì ở đâu trên bức hình này (không bắt buộc).', 'Global Messaging Settings': 'Cài đặt hộp thư tin nhắn toàn cầu', 'Go to Functional Map': 'Tới bản đồ chức năng', 'Go to Request': 'Đến mục yêu cầu', 'Go to the': 'Đến', 'Go': 'Thực hiện', 'Goatee': 'Chòm râu dê', 'Good Condition': 'Điều kiện tốt', 'Good': 'Tốt', 'Goods Received Note': 'Giấy nhận Hàng hóa', 'Google Layer': 'Lớp Google', 'Governance': 'Quản lý nhà nước', 'Grade Code': 'Bậc lương', 'Grade': 'Tốt nghiệp hạng', 'Graduate': 'Đại học', 'Graph': 'Đường vẽ', 'Great British Pounds': 'Bảng Anh', 'Greater than 10 matches. Please refine search further': 'Tìm thấy nhiều hơn 10 kết quả. Hãy nhập lại từ khóa', 'Grid': 'Hiển thị dạng lưới', 'Group Description': 'Mô tả về nhóm', 'Group Details': 'Thông tin về nhóm', 'Group Head': 'Trưởng Nhóm', 'Group Members': 'Thành viên Nhóm', 'Group Memberships': 'Hội viên nhóm', 'Group Name': 'Tên nhóm', 'Group Type': 'Loại hình nhóm', 'Group added': 'Nhóm đã được thêm', 'Group deleted': 'Nhóm đã được xóa', 'Group description': 'Mô tả Nhóm', 'Group type': 'Loại nhóm', 'Group updated': 'Nhóm đã được cập nhật', 'Group': 'Nhóm', 'Grouped by': 'Nhóm theo', 'Groups': 'Nhóm', 'Guide': 'Hướng dẫn', 'HFA Priorities': 'Ưu tiên HFA', 'HFA1: Ensure that disaster risk reduction is a national and a local priority with a strong institutional basis for implementation.': 'HFA1: Đảm bảo rằng giảm thiểu rủi ro thảm họa là ưu tiên quốc gia và địa phương với một nền tảng tổ chức mạnh mễ để thực hiện hoạt động', 'HFA2: Identify, assess and monitor disaster risks and enhance early warning.': 'HFA2: Xác định, đánh giá và giám sát rủi ro thảm họa và tăng cường cảnh báo sớm.', 'HFA3: Use knowledge, innovation and education to build a culture of safety and resilience at all levels.': 'HFA3: Sử dụng kiến thức, sáng kiến và tập huấn để xây dựng cộng đồng an toàn ở mọi cấp.', 'HFA4: Reduce the underlying risk factors.': 'HFA4: Giảm các yếu tố rủi ro gốc rễ', 'HFA5: Strengthen disaster preparedness for effective response at all levels.': 'HFA5: Tăng cường phòng ngừa thảm họa để đảm bảo ứng phó hiệu quả ở mọi cấp.', 'HIGH RESILIENCE': 'MỨC ĐỘ AN TOÀN CAO', 'HIGH': 'CAO', 'Hail': 'Mưa đá', 'Hair Color': 'Màu tóc', 'Hair Length': 'Độ dài tóc', 'Hair Style': 'Kiểu tóc', 'Has the %(GRN)s (%(GRN_name)s) form been completed?': 'Mẫu %(GRN)s (%(GRN_name)s) đã được hoàn thành chưa?', 'Has the Certificate for receipt of the shipment been given to the sender?': 'Chứng nhận đã nhận được lô hàng đã gửi đến người gửi chưa?', 'Hazard Details': 'Thông tin vê hiểm họa', 'Hazard Points': 'Điểm hiểm họa', 'Hazard added': 'Hiểm họa đã được thêm', 'Hazard deleted': 'Hiểm họa đã được xóa', 'Hazard updated': 'Hiểm họa đã được cập nhật', 'Hazard': 'Hiểm họa', 'Hazardous Material': 'Vật liệu nguy hiểm', 'Hazardous Road Conditions': 'Điều kiện đường xá nguy hiểm', 'Hazards': 'Hiểm họa', 'Header Background': 'Nền vùng trên', 'Health & Health Facilities': 'CSSK & Cơ sở CSSK', 'Health Insurance': 'Bảo hiểm y tế', 'Health center': 'Trung tâm y tế', #'Health': 'Sức khỏe', 'Health': 'CSSK', 'Heat Wave': 'Đợt nắng nóng kéo dài', 'Heat and Humidity': 'Nóng và ẩm', 'Height (cm)': 'Chiều cao (cm)', 'Height (m)': 'Chiều cao (m)', 'Height': 'Chiều cao', 'Help': 'Trợ giúp', 'Helps to monitor status of hospitals': 'Hỗ trợ giám sát trạng thái các bệnh viện', 'Helps to report and search for Missing Persons': 'Hỗ trợ báo cáo và tìm kếm những người mất tích', 'Hide Chart': 'Ẩn biểu đồ', 'Hide Pivot Table': 'Ẩn Pivot Table', 'Hide Table': 'Ẩn bảng', 'Hide': 'Ẩn', 'Hierarchy Level 1 Name (e.g. State or Province)': 'Hệ thống tên cấp 1 (ví dụ Bang hay Tỉnh)', 'Hierarchy Level 2 Name (e.g. District or County)': 'Hệ thống tên cấp 2 (ví dụ Huyện hay thị xã)', 'Hierarchy Level 3 Name (e.g. City / Town / Village)': 'Hệ thống tên cấp 3 (ví dụ Thành phố/thị trấn/xã)', 'Hierarchy Level 4 Name (e.g. Neighbourhood)': 'Hệ thống tên cấp 4 (ví dụ xóm làng)', 'Hierarchy Level 5 Name': 'Hệ thống tên cấp 5', 'Hierarchy': 'Thứ tự', 'High School': 'Phổ thông', 'High Water': 'Nước Cao', 'High': 'Cao', 'Hindu': 'Người theo đạo Hindu', 'History': 'Lịch sử', 'Hit the back button on your browser to try again.': 'Bấm nút trở lại trên màn hình để thử lại', 'Home Address': 'Địa chỉ nhà riêng', 'Home Country': 'Bản quốc', 'Home Crime': 'Tội ác tại nhà', 'Home Phone': 'Điện thoại nhà riêng', 'Home Town': 'Nguyên quán', 'Home': 'Trang chủ', 'Hospital Details': 'Chi tiết thông tin bệnh viện', 'Hospital Status Report': 'Báo cáo tình trạng bệnh viện', 'Hospital information added': 'Đã thêm thông tin Bệnh viện', 'Hospital information deleted': 'Đã xóa thông tin bệnh viện', 'Hospital information updated': 'Đã cập nhật thông tin bệnh viện', 'Hospital status assessment.': 'Đánh giá trạng thái bệnh viện', 'Hospital': 'Bệnh viện', 'Hospitals': 'Bệnh viện', 'Host National Society': 'Hội QG chủ nhà', 'Host': 'Chủ nhà', 'Hot Spot': 'Điểm Nóng', 'Hour': 'Thời gian', 'Hourly': 'Theo giờ', 'Hours Details': 'Thông tin về thời gian hoạt động', 'Hours Model': 'Chuyên trách/ kiêm nhiệm', 'Hours added': 'Thời gian hoạt động đã được thêm', 'Hours by Program Report': 'Thời gian hoạt động theo chương trình', 'Hours by Role Report': 'Thời gian hoạt động theo vai trò', 'Hours deleted': 'Thời gian hoạt động đã được xóa', 'Hours updated': 'Thời gian hoạt động đã được cập nhật', 'Hours': 'Thời gian hoạt động', 'Households below %(br)s poverty line': 'Hộ gia đình dưới %(br)s mức nghèo', 'Households below poverty line': 'Hộ gia đình dưới mức nghèo', 'Households': 'Hộ gia đình', 'Housing Repair & Retrofitting': 'Sửa chữa và cải tạo nhà', 'How data shall be transferred': 'Dữ liệu sẽ được chuyển giao như thế nào', 'How local records shall be updated': 'Hồ sơ địa phương sẽ được cập nhật thế nào', 'How many Boys (0-17 yrs) are Injured due to the crisis': 'Đối tượng nam trong độ tuổi 0-17 bị thương trong thiên tai', 'How many Boys (0-17 yrs) are Missing due to the crisis': 'Có bao nhiêu bé trai (0 đến 17 tuổi) bị mất tích do thiên tai', 'How many Girls (0-17 yrs) are Injured due to the crisis': 'Đối tượng nữ từ 0-17 tuổi bị thương trong thiên tai', 'How many Men (18 yrs+) are Dead due to the crisis': 'Bao nhiêu người (trên 18 tuổi) chết trong thảm họa', 'How many Men (18 yrs+) are Missing due to the crisis': 'Đối tượng nam 18 tuổi trở lên mất tích trong thiên tai', 'How many Women (18 yrs+) are Dead due to the crisis': 'Đối tượng nữ từ 18 tuổi trở lên thiệt mạng trong thiên tai', 'How many Women (18 yrs+) are Injured due to the crisis': 'Số nạn nhân là nữ trên 18 tuổi chịu ảnh hưởng của cuộc khủng hoảng', 'How much detail is seen. A high Zoom level means lot of detail, but not a wide area. A low Zoom level means seeing a wide area, but not a high level of detail.': 'Mức độ chi tiết có thể xem. Mức phóng to cao có thể xem được nhiều chi tiết, nhưng không xem được diện tích rộng. Mức Phóng thấp có thể xem được diện tích rộng, nhưng không xem được nhiều chi tiết.', 'How often you want to be notified. If there are no changes, no notification will be sent.': 'Mức độ thường xuyên bạn muốn nhận thông báo. Nếu không có thay đổi, bạn sẽ không nhận được thông báo.', 'How you want to be notified.': 'Bạn muốn được thông báo như thế nào.', 'Human Resource Assignment updated': 'Phân bổ nguồn nhân lực đã được cập nhật', 'Human Resource Assignments': 'Phân bổ nguồn nhân lực', 'Human Resource Details': 'Thông tin về nguồn nhân lực', 'Human Resource assigned': 'Nguồn nhân lực được phân bổ', 'Human Resource Development': 'Phát triển nguồn nhân lực', 'Human Resource unassigned': 'Nguồn nhân lực chưa được phân bổ', 'Human Resource': 'Nguồn Nhân lực', 'Human Resources': 'Nguồn Nhân lực', 'Hurricane Force Wind': 'Gió mạnh cấp bão lốc', 'Hurricane': 'Bão lốc', 'Hygiene Promotion': 'Tăng cường vệ sinh', 'Hygiene kits, source': 'Dụng cụ vệ sinh, nguồn', 'I accept. Create my account.': 'Tôi đồng ý. Tạo tài khoản của tôi', 'ICONS': 'BIỂU TƯỢNG', 'ID Card Number': 'Số Chứng mính thư nhân dân', 'ID Number': 'Số CMT/ Hộ chiếủ', 'ID Tag Number': 'Số nhận dạng thẻ', 'ID Type': 'Loại giấy tờ nhận dạng', 'ID': 'Thông tin nhận dạng', 'IEC Materials': 'Tài liệu tuyên truyền', 'INDICATOR RATINGS': 'XẾP LOẠI CHỈ SỐ', 'INDICATORS': 'CHỈ SỐ', 'Ice Pressure': 'Sức ép băng tuyết', 'Iceberg': 'Tảng băng', 'Identification label of the Storage bin.': 'Nhãn xác định Bin lưu trữ', 'Identifier Name for your Twilio Account.': 'Xác định tên trong tài khoản Twilio của bạn', 'Identifier which the repository identifies itself with when sending synchronization requests.': 'Xác định danh mục lưu trữ nào cần được yêu cầu đồng bộ hóa', 'Identities': 'Các Chứng minh', 'Identity Details': 'Chi tiết Chứng minh', 'Identity added': 'Thêm Chứng minh', 'Identity deleted': 'Xóa Chứng minh', 'Identity updated': 'Cập nhất Chứng minh', 'Identity': 'Chứng minh ND', 'If a ticket was issued then please provide the Ticket ID.': 'Nếu vé đã được cấp, vui lòng cung cấp mã vé', 'If a user verifies that they own an Email Address with this domain, the Approver field is used to determine whether & by whom further approval is required.': 'Nếu người dùng xác nhận rằng họ sở hữu địa chỉ email với miền này, ô Người phê duyệt sẽ được sử dụng để xác định xem liệu có cần thiết phải có phê duyệt và phê duyệt của ai.', 'If checked, the notification will contain all modified records. If not checked, a notification will be send for each modified record.': 'Nếu chọn, thông báo sẽ bao gồm toàn bộ hồ sơ được chỉnh sửa. Nếu không chọn, thông báo sẽ được gửi mỗi khi có hồ sơ được chỉnh sửa', 'If it is a URL leading to HTML, then this will downloaded.': 'Nếu đó là đường dẫn URL dẫn đến trang HTML, thì sẽ được tải xuống', 'If neither are defined, then the Default Marker is used.': 'Nếu cả hai đều không được xác định, thì đánh dấu mặc định sẽ được sử dụng.', 'If none are selected, then all are searched.': 'Nếu không chọn gì, thì sẽ tìm kiếm tất cả.', 'If not found, you can have a new location created.': 'Nếu không tìm thấy, bạn có thể tạo địa điểm mới.', 'If the location is a geographic area, then state at what level here.': 'Nếu địa điểm là một vùng địa lý thì cần nêu rõ là cấp độ nào ở đây.', 'If the person counts as essential staff when evacuating all non-essential staff.': 'Nếu người đó là cán bộ chủ chốt khi đó sẽ sơ tán mọi cán bộ không quan trọng.', 'If the request is for %s, please enter the details on the next screen.': 'Nếu yêu cầu là %s thì xin mời nhập các chi tiết vào trang tiếp theo.', 'If the request type is "Other", please enter request details here.': "Nếu loại yêu cầu là 'Khác', xin nhập chi tiết của yêu cầu ở đây.", 'If this field is populated then a user with the Domain specified will automatically be assigned as a Staff of this Organization': 'Nếu trường này đã nhiều người khi đó người dùng có chức năng tổ chức sẽ được tự động phân bổ như là Cán bộ của tổ chức.', 'If this is set to True then mails will be deleted from the server after downloading.': 'Nếu đã được xác định là Đúng thư sau đó sẽ bị xóa khỏi máy chủ sau khi tải về', 'If this record should be restricted then select which role is required to access the record here.': 'Nếu hồ sơ này cần bị hạn chế truy cập, lựa chọn ở đây chức năng nào có thể truy cập vào hồ sơ này ', 'If this record should be restricted then select which role(s) are permitted to access the record here.': 'Nếu hồ sơ này cần bị hạn chế truy cập, lựa chọn ở đây những chức năng nào được quyền truy cập vào hồ sơ này ', 'If yes, specify what and by whom': 'Nếu có, hãy ghi rõ đã chỉnh sửa những gì và chỉnh sửa', 'If yes, which and how': 'nếu có thì cái nào và như thế nào', 'If you need to add a new document then you can click here to attach one.': 'Nếu cần thêm một tài liệu mới, nhấn vào đây để đính kèm', 'If you want several values, then separate with': 'Nếu bạn muốn nhiều giá trị, thì tách rời với', 'If you would like to help, then please %(sign_up_now)s': 'Nếu bạn muốn giúp đỡ, thì xin mời %(đăng ký bây giờ)s', 'If you would like to help, then please': 'Vui lòng giúp đỡ nếu bạn muốn', 'Ignore Errors?': 'Bỏ qua lỗi?', 'Illegal Immigrant': 'Người nhập cư bất hợp pháp', 'Image Details': 'Chi tiết hình ảnh', 'Image File(s), one image per page': 'Tệp hình ảnh, một hình ảnh trên một trang', 'Image Type': 'Loại hình ảnh', 'Image added': 'Thêm hình ảnh', 'Image deleted': 'Xóa hình ảnh', 'Image updated': 'Cập nhật hình ảnh', 'Image': 'Hình ảnh', 'Image/Attachment': 'Ảnh/ tệp đính kèm', 'Images': 'Các hình ảnh', 'Impact Assessments': 'Đánh giá tác động', 'Import Activity Data': 'Nhập khẩu dữ liệu hoạt động', 'Import Annual Budget data': 'Nhập khẩu dữ liệu ngân sách hàng năm', 'Import Assets': 'Nhập khẩu dữ liệu tài sản', 'Import Branch Organizations': 'Nhập khẩu dữ liệu về Tỉnh/thành Hội', 'Import Certificates': 'Nhập khẩu dữ liệu về chứng chỉ tập huấn', 'Import Community Data': 'Nhập khẩu dữ liệu cộng đồng', 'Import Completed Assessment Forms': 'Nhập khẩu biểu mẫu đánh giá đã hoàn chỉnh', 'Import Courses': 'Nhập khẩu dữ liệu về khóa tập huấn', 'Import Data for Theme Layer': 'Nhập khảu dữ liệu cho lớp chủ đề', 'Import Demographic Data': 'Nhập khẩu số liệu dân số', 'Import Demographic Sources': 'Nhập khẩu nguồn số liệu dân số', 'Import Demographic': 'Nhập khẩu dữ liệu nhân khẩu', 'Import Demographics': 'Tải dữ liệu dân số', 'Import Departments': 'Nhập khẩu dữ liệu phòng/ban', 'Import Facilities': 'Nhập khẩu bộ phận', 'Import Facility Types': 'Nhập khẩu loại hình bộ phận', 'Import File': 'Nhập khẩu File', 'Import Framework data': 'Nhập khẩu dữ liệu về khung chương trình', 'Import Hazards': 'Nhập khẩu hiểm họa', 'Import Hours': 'Nhập khẩu thời gian hoạt động', 'Import Incident Reports from Ushahidi': 'Nhập khẩu báo cáo sự cố từ Ushahidi', 'Import Incident Reports': 'Nhập khẩu báo cáo sự cố', 'Import Job Roles': 'Nhập khẩu vai trò công việc', 'Import Jobs': 'Chuyển đổi nghề nghiệp', 'Import Location Data': 'Nhập khẩu dữ liệu địa điểm', 'Import Locations': 'Nhập khẩu địa điểm', 'Import Logged Time data': 'Nhập khẩu dữ liệu thời gian truy cập', 'Import Members': 'Nhập khẩu thành viên', 'Import Membership Types': 'Nhập khẩu loại hình thành viên', 'Import Milestone Data': 'Nhập khẩu dự liệu các thời điểm quan trọng', 'Import Milestones': 'Tải dự liệu các thời điểm quan trọng', 'Import Offices': 'Nhập khẩu văn phòng', 'Import Organizations': 'Nhập khẩu tổ chức', 'Import Participant List': 'Nhập khẩu danh sách học viên', 'Import Participants': 'Tải người tham dự', 'Import Partner Organizations': 'Nhập khẩu dữ liệu về tổ chức đối tác', 'Import Project Communities': 'Đối tượng hưởng lợi dự án', 'Import Project Organizations': 'Tổ chức thực hiện dự án', 'Import Projects': 'Dự án', 'Import Red Cross & Red Crescent National Societies': 'Nhập khẩu dữ liệu về Hội CTĐ & TLLĐ Quốc gia', 'Import Staff': 'Nhập khẩu cán bộ', 'Import Stations': 'Nhập khẩu các trạm', 'Import Statuses': 'Nhập khẩu tình trạng', 'Import Suppliers': 'Nhập khẩu các nhà cung cấp', 'Import Tasks': 'Nhập khẩu Nhiệm vụ', 'Import Template Layout': 'Nhập khẩu sơ đồ mẫu', 'Import Templates': 'Nhập khẩu biểu mẫu', 'Import Theme data': 'Nhập khẩu dữ liệu chủ đề', 'Import Themes': 'Nhập khẩu Chủ đề', 'Import Training Events': 'Nhập khẩu sự kiện tập huấn', 'Import Training Participants': 'Nhập khẩu dữ liệu học viên được tập huấn', 'Import Vehicles': 'Nhập khẩu các phương tiện đi lại', 'Import Volunteer Cluster Positions': 'Nhập khẩu vị trí nhóm tình nguyện viên', 'Import Volunteer Cluster Types': 'Nhập khẩu loại hình nhóm tình nguyện viên', 'Import Volunteer Clusters': 'Nhập khẩu nhóm tình nguyện viên', 'Import Volunteers': 'Nhập khẩu tình nguyện viên', 'Import Vulnerability Aggregated Indicator': 'Nhập khẩu chỉ số phân tách tình trạng dễ bị tổn thương', 'Import Vulnerability Data': 'Nhập khẩu dữ liệu tình trạng dễ bị tổn thương', 'Import Vulnerability Indicator Sources': 'Nhập khẩu Nguồn chỉ số tình trạng dễ bị tổn thương', 'Import Vulnerability Indicator': 'Nhập khẩu chỉ số tình trạng dễ bị tổn thương', 'Import Warehouse Stock': 'Nhập khẩu hàng lưu kho', 'Import Warehouses': 'Nhập khẩu kho', 'Import from CSV': 'Nhập khẩu từ CSV', 'Import from OpenStreetMap': 'Nhập khẩu từ bản đồ OpenstreetMap', 'Import multiple tables as CSV': 'Chuyển đổi định dạng bảng sang CSV', 'Import': 'Nhập khẩu dữ liệu', 'Import/Export': 'Nhập/ Xuất dữ liệu', 'Important': 'Quan trọng', 'Imported data': 'Dữ liệu đã nhập', 'In Catalogs': 'Trong danh mục', 'In GeoServer, this is the Layer Name. Within the WFS getCapabilities, this is the FeatureType Name part after the colon(:).': 'Trong GeoServer, đây là tên lớp. Trong WFS getCapabilities, đây là tên FeatureType, phần sau dấu hai chấm (:).', 'In Inventories': 'Trong nhóm hàng', 'In Process': 'Đang tiến hành', 'In Stock': 'Đang lưu kho', 'In error': 'mắc lỗi', 'In order to be able to edit OpenStreetMap data from within %(name_short)s, you need to register for an account on the OpenStreetMap server.': 'Để có thể chỉnh sửa dữ liệu trên OpenstreetMap từ trong %(name_short)s, ban cần đăng ký tài khoản trên máy chủ OpenStreetMap.', 'In transit': 'Đang trên đường', 'Inbound Mail Settings': 'Cài đặt thư đến', 'Inbound Message Source': 'Nguồn thư đến', 'Incident Categories': 'Danh mục sự cố', 'Incident Commander': 'Chỉ huy tình huống tai nạn', 'Incident Report Details': 'Chi tiết Báo cáo tai nạn', 'Incident Report added': 'Thêm Báo cáo tai nạn', 'Incident Report deleted': 'Xóa Báo cáo tai nạn', 'Incident Report updated': 'Cập nhật Báo cáo tai nạn', 'Incident Report': 'Báo cáo tai nạn', 'Incident Reports': 'Báo cáo sự cố', 'Incident Timeline': 'Dòng thời gian tai nạn', 'Incident Types': 'Loại sự cố', 'Incident': 'Sự cố', 'Incidents': 'Tai nạn', 'Include any special requirements such as equipment which they need to bring.': 'Bao gồm các yêu cầu đặc biệt như thiết bị cần mang theo', 'Include core files': 'Bao gồm các tệp chủ chốt', 'Including emerging and re-emerging diseases, vaccine preventable diseases, HIV, TB': 'Gồm các bệnh mới bùng phát và tái bùng phát, các bệnh có thể ngừa bằng vaccine, HIV, lao phổi', 'Incoming Shipments': 'Lô hàng đang đến', 'Incorrect parameters': 'Tham số không đúng', 'Indicator Comparison': 'So sánh chỉ số', 'Indicator': 'Chỉ số', 'Indicators': 'Chỉ số', 'Individuals': 'Cá nhân', 'Industrial Crime': 'Tội ác công nghiệp', 'Industry Fire': 'Cháy nổ công nghiệp', 'Infant (0-1)': 'Trẻ sơ sinh (0-1)', 'Infectious Disease (Hazardous Material)': 'Dịch bệnh lây nhiễm (vật liệu nguy hiểm)', 'Infectious Disease': 'Dịch bệnh lây nhiễm', 'Infestation': 'Sự phá hoại', 'Informal camp': 'Trại không chính thức', 'Information Management': 'Quản lý thông tin', #'Information Technology': 'Công nghệ thông tin', 'Information Technology': 'CNTT', 'Infrastructure Development': 'Phát triển cơ sở hạ tầng', 'Inherited?': 'Được thừa kế?', 'Initials': 'Tên viết tắt', 'Insect Infestation': 'Dịch sâu bọ', 'Instance Type': 'Loại ví dụ', 'Instant Porridge': 'Cháo ăn liền', 'Insurance Number': 'Số sổ/thẻ bảo hiểm', 'Insurer': 'Nơi đăng ký BHXH', 'Instructor': 'Giảng viên', 'Insufficient Privileges': 'Không đủ đặc quyền', 'Insufficient vars: Need module, resource, jresource, instance': 'Không đủ var: cần module, nguồn lực, j nguồn lực, tức thời', 'Integrity error: record can not be deleted while it is referenced by other records': 'Lỗi liên kết: hồ sơ không thể bị xóa khi đang được liên kết với hồ sơ khác', 'Intermediate': 'Trung cấp', 'Internal Shipment': 'Vận chuyển nội bộ', 'Internal State': 'Tình trạng bên trong', 'International NGO': 'Tổ chức phi chính phủ quốc tế', 'International Organization': 'Tổ chức quốc tế', 'Interview taking place at': 'Phỏng vấn diễn ra tại', 'Invalid Location!': 'Vị trí không hợp lệ!', 'Invalid Query': 'Truy vấn không hợp lệ', 'Invalid Site!': 'Trang không hợp lệ!', 'Invalid form (re-opened in another window?)': 'Mẫu không hợp lệ (mở lại trong cửa sổ khác?)', 'Invalid phone number!': 'Số điện thoại không hợp lệ!', 'Invalid phone number': 'Số điện thoại không đúng', 'Invalid request!': 'Yêu cầu không hợp lệ!', 'Invalid request': 'Yêu cầu không hợp lệ', 'Invalid source': 'Nguồn không hợp lệ', 'Invalid ticket': 'Vé không đúng', 'Invalid': 'Không đúng', 'Inventory Adjustment Item': 'Mặt hàng điều chỉnh sau kiểm kê', 'Inventory Adjustment': 'Điều chỉnh sau kiểm kê', 'Inventory Item Details': 'Chi tiết hàng hóa trong kho', 'Inventory Item added': 'Bổ sung hàng hóa vào kho lưu trữ.', 'Inventory Items include both consumable supplies & those which will get turned into Assets at their destination.': 'Hàng hóa kiểm kê bao gồm cả hàng tiêu hao & hàng hóa sẽ được trả lại như tài sản tại đích đến', 'Inventory Items': 'Mặt hàng kiểm kê', 'Inventory Store Details': 'Chi tiết kho lưu trữ', 'Inventory of Effects': 'Kho dự phòng', 'Inventory': 'Kiểm kê', 'Is editing level L%d locations allowed?': 'Có được phép chỉnh sửa vị trí cấp độ L%d?', 'Is this a strict hierarchy?': 'Có phải là thứ tự đúng?', 'Issuing Authority': 'Cơ quan cấp', 'It captures not only the places where they are active, but also captures information on the range of projects they are providing in each area.': 'Nó không chỉ nhận các vị trí đang kích hoạt mà cũng nhận các thông tin về các dự án đang có ở từng vùng', 'Item Added to Shipment': 'Mặt hàng được thêm vào lô hàng vận chuyển', 'Item Catalog Details': 'Thông tin danh mục hàng hóa', 'Item Catalog added': 'Đã thêm danh mục hàng hóa', 'Item Catalog deleted': 'Đã xóa danh mục hàng hóa', 'Item Catalog updated': 'Đã cập nhật danh mục hàng hóa', 'Item Catalogs': 'Danh mục hàng hóa', 'Item Categories': 'Loại hàng hóa', 'Item Category Details': 'Thông tin danh mục hàng hóa', 'Item Category added': 'Danh mục hàng hóa đã được thêm', 'Item Category deleted': 'Danh mục hàng hóa đã được xóa', 'Item Category updated': 'Danh mục hàng hóa đã được cập nhật', 'Item Category': 'Danh mục hàng hóa', 'Item Code': 'Mã hàng', 'Item Details': 'Thông tin hàng hóa', 'Item Name': 'Tên hàng', 'Item Pack Details': 'Thông tin về gói hàng', 'Item Pack added': 'Gói hàng đã được thêm', 'Item Pack deleted': 'Gói hàng đã được xóa', 'Item Pack updated': 'Gói hàng đã được cập nhật', 'Item Packs': 'Gói hàng', 'Item Status': 'Tình trạng hàng hóa', 'Item Sub-Category updated': 'Đã cập nhật tiêu chí phụ của hàng hóa', 'Item Tracking Status': 'Theo dõi tình trạng hàng hóa', 'Item added to stock': 'Mặt hàng được thêm vào kho', 'Item added': 'Mặt hàng đã được thêm', 'Item already in Bundle!': 'Hàng đã có trong Bundle!', 'Item deleted': 'Mặt hàng đã được xóa', 'Item quantity adjusted': 'Số lượng hàng đã được điều chỉnh', 'Item updated': 'Mặt hàng đã được cập nhật', 'Item': 'Mặt hàng', 'Item(s) added to Request': 'Hàng hóa đã được thêm vào yêu cầu', 'Item(s) deleted from Request': 'Hàng hóa đã được xóa khỏi yêu cầu', 'Item(s) updated on Request': 'Hàng hóa đã được cập nhật vào yêu cầu', 'Item/Description': 'Mặt hàng/ Miêu tả', 'Items in Category are Vehicles': 'Mặt hàng trong danh mục là phương tiện vận chuyển', 'Items in Category can be Assets': 'Mặt hàng trong danh mục có thể là tài sản', 'Items in Request': 'Hàng hóa trong thư yêu cầu', 'Items in Stock': 'Hàng hóa lưu kho', 'Items': 'Hàng hóa', 'Items/Description': 'Mô tả/Hàng hóa', 'JS Layer': 'Lớp JS', 'Jewish': 'Người Do Thái', 'Job Role Catalog': 'Danh mục vai trò công việc', 'Job Role Details': 'Chi tiết vai trò công việc', 'Job Role added': 'Vai trò công việc đã được thêm', 'Job Role deleted': 'Vai trò công việc đã được xóa', 'Job Role updated': 'Vai trò công việc đã được cập nhật', 'Job Role': 'Vai trò công việc', 'Job Schedule': 'Kế hoạch công việc', 'Job Title Catalog': 'Vị trí chức vụ', 'Job Title Details': 'Chi tiết chức danh công việc', 'Job Title added': 'Chức danh công việc đã được thêm', 'Job Title deleted': 'Chức danh công việc đã được xóa', 'Job Title updated': 'Chức danh công việc đã được cập nhật', 'Job Title': 'Chức danh công việc', 'Job Titles': 'Chức vụ', 'Job added': 'Công việc đã được thêm', 'Job deleted': 'Công việc đã được xóa', 'Job reactivated': 'Công việc đã được kích hoạt lại', 'Job updated': 'Công việc đã được cập nhật', 'Journal Entry Details': 'Chi tiết ghi chép nhật ký', 'Journal entry added': 'Ghi chép nhật ký đã được thêm', 'Journal entry deleted': 'Ghi chép nhật ký đã được xóa', 'Journal entry updated': 'Ghi chép nhật ký đã được cập nhật', 'Journal': 'Nhật ký', 'KML Layer': 'Lớp KML', 'Key Value pairs': 'Đôi giá trị Khóa', 'Key deleted': 'Đã xóa từ khóa', 'Key': 'Phím', 'Keyword': 'Từ khóa', 'Keywords': 'Từ khóa', 'Kit Created': 'Thùng hàng đã được tạo', 'Kit Details': 'Chi tiết thùng hàng', 'Kit Item': 'Mặt hàng trong thùng', 'Kit Items': 'Mặt hàng trong thùng', 'Kit canceled': 'Thùng hàng đã được hủy', 'Kit deleted': 'Đã xóa Kit', 'Kit updated': 'Thùng hàng đã được cập nhật', 'Kit': 'Thùng hàng', 'Kit?': 'Thùng hàng?', 'Kits': 'Thùng hàng', 'Kitting': 'Trang bị dụng cụ', 'Knowledge Management': 'Quản lý tri thức', 'Known Locations': 'Vị trí được xác định', 'LEGEND': 'CHÚ GIẢI', 'LICENSE': 'Bản quyền', 'LOW RESILIENCE': 'MỨC ĐỘ AN TOÀN THẤP', 'LOW': 'THẤP', 'Label': 'Nhãn', 'Lack of transport to school': 'Thiếu phương tiện di chuyển cho trẻ em đến trường', 'Lahar': 'Dòng dung nham', 'Land Slide': 'Sạt lở đất', 'Landslide': 'Sạt lở đất', 'Language Code': 'Mã Ngôn ngữ', 'Language code': 'Mã ngôn ngữ', 'Language': 'Ngôn ngữ', 'Last Checked': 'Lần cuối cùng được kiểm tra', 'Last Data Collected on': 'Dữ liệu mới nhất được thu thập trên', 'Last Name': 'Tên họ', 'Last Pull': 'Kéo gần nhất', 'Last Push': 'Đầy gần nhất', 'Last known location': 'Địa điểm vừa biết đến', 'Last pull on': 'Kéo về gần đây', 'Last push on': 'Đẩy vào gần đây', 'Last run': 'Lần chạy gần nhất', 'Last status': 'Trạng thái gần đây', 'Last updated': 'Cập nhật mới nhất', 'Last': 'Trang cuối', 'Latitude & Longitude': 'Vĩ độ & Kinh độ', 'Latitude is Invalid!': 'Vị độ không hợp lệ', 'Latitude is North-South (Up-Down). Latitude is zero on the equator and positive in the northern hemisphere and negative in the southern hemisphere.': 'Vĩ độ là Bắc-Nam (trên xuống). Vĩ độ bằng không trên đường xích đạo, dương phía bán cầu Bắc và âm phía bán cầu Nam', 'Latitude is North-South (Up-Down).': 'Vĩ độ Bắc-Nam (trên-xuống)', 'Latitude is zero on the equator and positive in the northern hemisphere and negative in the southern hemisphere.': 'Vĩ độ bằng 0 là ở xích đạo và có giá trị dương ở bắc bán cầu và giá trị âm ở nam bán cầu', 'Latitude must be between -90 and 90.': 'Vĩ độ phải nằm giữa -90 và 90', 'Latitude of Map Center': 'Vĩ độ trung tâm bản đồ vùng', 'Latitude of far northern end of the region of interest.': 'Vĩ độ bắc điểm cuối của vùng quan tâm', 'Latitude of far southern end of the region of interest.': 'Vĩ độ nam điểm cuối của vùng quan tâm', 'Latitude should be between': 'Vĩ độ phải từ ', 'Latitude': 'Vĩ độ', 'Latrines': 'nhà vệ sinh', 'Layer Details': 'Thông tin về Lớp', 'Layer Name': 'Tên lớp', 'Layer Properties': 'Đặc tính của lớp bản đồ', 'Layer added': 'Lớp đã được thêm', 'Layer deleted': 'Lớp đã được xóa', 'Layer has been Disabled': 'Lớp đã bị khóa', 'Layer has been Enabled': 'Lớp đã được bật', 'Layer removed from Symbology': 'Lớp đã được gỡ khỏi danh mục biểu tượng', 'Layer updated': 'Lớp đã được cập nhật', 'Layer': 'Lớp', 'Layers updated': 'Đã cập nhật Layer', 'Layers': 'Lớp', 'Layout': 'Định dạng', 'Lead Implementer for this project is already set, please choose another role.': 'Người thực hiện chính của Dự án này đã được chỉ định, đề nghị chọn một vai trò khác', 'Lead Implementer': 'Trưởng nhóm thực hiện', 'Lead Organization': 'Tổ chức chỉ đạo', 'Leader': 'Người lãnh đạo', 'Leave blank to request an unskilled person': 'Bỏ trắng nếu yêu cầu người không cần kỹ năng', 'Left-side is fully transparent (0), right-side is opaque (1.0).': 'Bên trái là hoàn toàn trong suốt (0), bên phải là không trong suốt (1.0)', 'Legend URL': 'Chú giải URL', 'Legend': 'Chú giải', 'Length (m)': 'Chiều dài (m)', 'Length': 'Độ dài', 'Less Options': 'Thu hẹp chức năng', 'Level of Award (Count)': 'Trình độ học vấn (Số lượng)', 'Level of Award': 'Trình độ học vấn', 'Level of competency this person has with this skill.': 'Cấp độ năng lực của người này với kỹ năng đó', 'Level': 'Cấp độ', 'Library support not available for OpenID': 'Thư viện hỗ trợ không có sẵn cho việc tạo ID', 'License Number': 'Số giấy phép', 'Link (or refresh link) between User, Person & HR Record': 'Đường dẫn (hay đường dẫn mới) giữa người dùng, người và hồ sơ cán bộ', 'Link to this result': 'Đường dẫn tới kết quả này', 'Link': 'Liên kết', 'List / Add Baseline Types': 'Liệt kê / thêm loại hình khảo sát trước can thiệp', 'List / Add Impact Types': 'Liệt kê / thêm loại tác động', 'List Activities': 'Liêt kê hoạt động', 'List Activity Types': 'Liệt kê loại hoạt động', 'List Addresses': 'Liệt kê địa chỉ', 'List Affiliations': 'Liệt kê liên kết', 'List Aid Requests': 'Danh sách Yêu cầu cứu trợ', 'List All Catalogs & Add Items to Catalogs': 'Liệt kê danh mục & Thêm mục mặt hàng vào danh mục', 'List All Commitments': 'Liệt kê tất cả cam kết', 'List All Community Contacts': 'Liệt kê tất cả thông tin liên lạc của cộng đồng', 'List All Entries': 'Liệt kê tất cả hồ sơ', 'List All Essential Staff': 'Liệt kê tất cả cán bộ quan trọng', 'List All Item Categories': 'Liệt kê tât cả danh mục hàng hóa', 'List All Items': 'Liệt kê tất cả mặt hàng', 'List All Memberships': 'Danh sách tất cả các thành viên', 'List All Requested Items': 'Liệt kê tất cả mặt hàng được yêu cầu', 'List All Requested Skills': 'Liệt kê tất cả kỹ năng được yêu cầu', 'List All Requests': 'Liệt kê tất cả yêu cầu', 'List All Roles': 'Liệt kê tất cẩ vai trò', 'List All Security-related Staff': 'Liệt kê tất cả cán bộ liên quan đến vai trò bảo vệ', 'List All Users': 'Liệt kê tất cả người dùng', 'List All': 'Liệt kê tất cả', 'List Alternative Items': 'Liệt kê mặt hàng thay thế', 'List Annual Budgets': 'Liệt kê ngân sách năm', 'List Assessment Answers': 'Liêt kê câu trả lời trong biểu mẫu đánh giá', 'List Assessment Questions': 'Liệt kê câu hỏi trong biểu mẫu đánh giá', 'List Assessment Templates': 'Liệt kê biểu mẫu đánh giá', 'List Assessments': 'Danh sách Trị giá tính thuế', 'List Assets': 'Liệt kê tài sản', 'List Assigned Human Resources': 'Liệt kê nguồn nhân lực đã được phân công', 'List Beneficiaries': 'Liệt kê người hưởng lợi', 'List Beneficiary Types': 'Liệt kê loại người hưởng lợi', 'List Branch Organizations': 'Liệt kê tổ chức cơ sở', 'List Brands': 'Liệt kê nhãn hiệu', 'List Catalog Items': 'Liệt kê mặt hàng trong danh mục', 'List Catalogs': 'Liệt kê danh mục', 'List Certificates': 'Liệt kê chứng chỉ', 'List Certifications': 'Liệt kê bằng cấp', 'List Checklists': 'Danh sách Checklists ', 'List Clusters': 'Liệt kê nhóm', 'List Commitment Items': 'Liệt kê mặt hàng cam kết', 'List Commitments': 'Liệt kê cam kết', 'List Committed People': 'Liệt kê người cam kết', 'List Communities': 'Liệt kê cộng đồng', 'List Community Contacts': 'Thông tin liên hệ cộng đồng', 'List Competency Ratings': 'Liệt kê xếp hạng năng lực', 'List Completed Assessment Forms': 'Liệt kê biểu mẫu đánh giá đã hoàn thiện', 'List Contact Information': 'Liệt kê thông tin liên lạc', 'List Contacts': 'Liệt kê liên lạc', 'List Course Certificates': 'Liệt kê Chứng chỉ khóa học', 'List Courses': 'Liệt kê khóa học', 'List Credentials': 'Liệt kê thư ủy nhiệm', 'List Current': 'Danh mục hiện hành', 'List Data in Theme Layer': 'Liệt kê dữ liệu trong lớp chủ đề ', 'List Demographic Data': 'Liệt kê số liệu dân số', 'List Demographic Sources': 'Liệt kê nguồn thông tin về dân số', 'List Demographics': 'Liệt kê dữ liệu nhân khẩu', 'List Departments': 'Liệt kê phòng/ban', 'List Disaster Assessments': 'Liệt kê báo cáo đánh giá thảm họa', 'List Distributions': 'Danh sách ủng hộ,quyên góp', 'List Documents': 'Liệt kê tài liệu', 'List Donors': 'Liệt kê nhà tài trợ', 'List Education Details': 'Liệt kê thông tin về trình độ học vấn', 'List Facilities': 'Liệt kê bộ phận', 'List Facility Types': 'Liệt kê loại hình bộ phận', 'List Feature Layers': 'Liệt kê lớp chức năng', 'List Frameworks': 'Liệt kê khung chương trình', 'List Groups': 'Liệt kê nhóm', 'List Hazards': 'Liệt kê hiểm họa', 'List Hospitals': 'Danh sách Bệnh viện', 'List Hours': 'Liệt kê thời gian hoạt động', 'List Identities': 'Liệt kê nhận dạng', 'List Images': 'Liệt kê hình ảnh', 'List Incident Reports': 'Liệt kê báo cáo sự cố', 'List Item Categories': 'Liệt kê danh mục hàng hóa', 'List Item Packs': 'Liệt kê gói hàng', 'List Items in Request': 'Liệt kê mặt hàng đang được yêu cầu', 'List Items in Stock': 'Liệt kê mặt hàng đang lưu kho', 'List Items': 'Liệt kê hàng hóa', 'List Job Roles': 'Liệt kê vai trò công việc', 'List Job Titles': 'Liệt kê chức danh công việc', 'List Jobs': 'Liệt kê công việc', 'List Kits': 'Liệt kê thùng hàng', 'List Layers in Profile': 'Liệt kê lớp trong hồ sơ tiểu sử', 'List Layers in Symbology': 'Liệt kê lớp trong biểu tượng', 'List Layers': 'Liệt kê lớp', 'List Location Hierarchies': 'Liệt kê thứ tự địa điểm', 'List Locations': 'Liệt kê địa điểm', 'List Log Entries': 'Liệt kê ghi chép nhật ký', 'List Logged Time': 'Liệt kê thời gian đang nhập', 'List Mailing Lists': 'Liệt kê danh sách gửi thư', 'List Map Profiles': 'Liệt kê cấu hình bản đồ', 'List Markers': 'Liệt kê công cụ đánh dấu', 'List Members': 'Liệt kê hội viên', 'List Membership Types': 'Liệt kê loại hình nhóm hội viên', 'List Memberships': 'Liệt kê nhóm hội viên', 'List Messages': 'Liệt kê tin nhắn', 'List Metadata': 'Danh sách dữ liệu', 'List Milestones': 'Liệt kê mốc thời gian quan trọng', 'List Missing Persons': 'Danh sách những người mất tích', 'List Office Types': 'Liệt kê loại hình văn phòng', 'List Offices': 'Liệt kê văn phòng', 'List Orders': 'Liệt kê lệnh', 'List Organization Domains': 'Liệt kê lĩnh vực hoạt động của tổ chức', 'List Organization Types': 'Liệt kê loại hình tổ chức', 'List Organizations': 'Liệt kê tổ chức', 'List Outputs': 'Liệt kê đầu ra', 'List Participants': 'Liệt kê người Tham dự', 'List Partner Organizations': 'Liệt kê tổ chức đối tác', 'List Persons': 'Liệt kê đối tượng', 'List Photos': 'Liệt kê ảnh', 'List Profiles configured for this Layer': 'Liệt kê tiểu sử được cấu hình cho lớp này', 'List Programs': 'Liệt kê chương trình', 'List Project Organizations': 'Liệt kê tổ chức dự án', 'List Projections': 'Liệt kê dự đoán', 'List Projects': 'Liệt kê dự án', 'List Question Meta-Data': 'Liệt kê siêu dữ liệu câu hỏi', 'List Received/Incoming Shipments': 'Liệt kê lô hàng nhận được/đang đến', 'List Records': 'Liệt kê hồ sơ', 'List Red Cross & Red Crescent National Societies': 'Liệt kê Hội CTĐ & TLLĐ quốc gia', 'List Repositories': 'Liệt kê kho lưu trữ', 'List Request Items': 'Danh sách Hang hóa yêu cầu', 'List Requested Skills': 'Liệt kê kỹ năng được yêu cầu', 'List Requests': 'Liệt kê yêu cầu', 'List Resources': 'Liệt kê nguồn lực', 'List Rivers': 'Danh sách sông', 'List Roles': 'Liệt kê vai trò', 'List Rooms': 'Liệt kê phòng', 'List Sectors': 'Liệt kê lĩnh vực', 'List Sent Shipments': 'Liệt kê lô hàng đã gửi đi', 'List Shelter Services': 'Danh sách dịch vụ cư trú', 'List Shipment Items': 'Liệt kê mặt hàng trong lô hàng', 'List Shipment/Way Bills': 'Danh sách Đơn hàng/Phí đường bộ', 'List Sites': 'Danh sách site', 'List Skill Equivalences': 'Liệt kê kỹ năng tương đương', 'List Skill Types': 'Liệt kê loại kỹ năng', 'List Skills': 'Liệt kê kỹ năng', 'List Staff & Volunteers': 'Liệt kê Cán bộ và Tình nguyện viên', 'List Staff Assignments': 'Liệt kê phân công cán bộ', 'List Staff Members': 'Liệt kê cán bộ', 'List Staff Types': 'Lên danh sách các bộ phận nhân viên', 'List Staff': 'Danh sách Nhân viên', 'List Statuses': 'Liệt kê tình trạng', 'List Stock Adjustments': 'Liệt kê điều chỉnh hàng lưu kho', 'List Stock in Warehouse': 'Liệt kê hàng lưu trong kho hàng', 'List Storage Location': 'Danh sách vị trí kho lưu trữ', 'List Subscriptions': 'Danh sách Đăng ký', 'List Suppliers': 'Liệt kê nhà cung cấp', 'List Support Requests': 'Liệt kê đề nghị hỗ trợ', 'List Survey Questions': 'Danh sách câu hỏi khảo sát', 'List Survey Series': 'Lên danh sách chuỗi khảo sát', 'List Symbologies for Layer': 'Liệt kê biểu tượng cho Lớp', 'List Symbologies': 'Liệt kê biểu tượng', 'List Tasks': 'Liệt kê nhiệm vụ', 'List Teams': 'Liệt kê Đội/Nhóm', 'List Template Sections': 'Liệt kê nội dung biểu mẫu', 'List Themes': 'Liệt kê chủ đề', 'List Training Events': 'Liệt kê khóa tập huấn', 'List Trainings': 'Liệt kê lớp tập huấn', 'List Units': 'Danh sách đơn vị', 'List Users': 'Liệt kê người sử dụng', 'List Vehicle Assignments': 'Liệt kê phân công phương tiện vận chuyển', 'List Volunteer Cluster Positions': 'Liệt kê vị trí nhóm tình nguyện viên', 'List Volunteer Cluster Types': 'Liệt kê loại hình nhóm tình nguyện viên', 'List Volunteer Clusters': 'Liệt kê nhóm tình nguyện viên', 'List Volunteer Roles': 'Liệt kê vai trò của tình nguyện viên', 'List Volunteers': 'Liệt kê tình nguyện viên', 'List Vulnerability Aggregated Indicators': 'Liệt kê chỉ số gộp đánh giá tình trạng dễ bị tổn thương', 'List Vulnerability Data': 'Liệt kê dữ liệu về tình trạng dễ bị tổn thương', 'List Vulnerability Indicator Sources': 'Liệt kê nguồn chỉ số đánh giá tình trạng dễ bị tổn thương', 'List Vulnerability Indicators': 'Liệt kê chỉ số đánh giá tình trạng dễ bị tổn thương', 'List Warehouses': 'Liệt kê kho hàng', 'List alerts': 'Liệt kê cảnh báo', 'List all Entries': 'Liệt kê tất cả hồ sơ', 'List all': 'Liệt kê tất cả', 'List of Missing Persons': 'Danh sách những người mất tích', 'List of Professional Experience': 'Danh sách kinh nghiệm nghề nghiệp', 'List of Requests': 'Danh sách yêu cầu', 'List of Roles': 'Danh sách vai trò', 'List of addresses': 'Danh sách các địa chỉ', 'List saved searches': 'Liệt kê tìm kiếm đã lưu', 'List templates': 'Liệt kê biểu mẫu', 'List unidentified': 'Liệt kê danh mục chư tìm thấy', 'List': 'Liệt kê', 'List/Add': 'Liệt kê/ Thêm', 'Lists "who is doing what & where". Allows relief agencies to coordinate their activities': 'Danh sách "Ai làm gì, ở đâu"Cho phép các tổ chức cứu trợ điều phối hoạt động của mình', 'Live Help': 'Trợ giúp trực tuyến', 'Livelihood': 'Sinh kế', 'Livelihoods': 'Sinh kế', 'Load Cleaned Data into Database': 'Tải dữ liệu sạch vào cơ sở dữ liệu', 'Load Raw File into Grid': 'Tải file thô vào hệ thống mạng', 'Load': 'Tải', 'Loaded By': 'Được tải lên bởi', 'Loading report details': 'Tải thông tin báo cáo', 'Loading': 'Đang tải', 'Local Name': 'Tên địa phương', 'Local Names': 'Tên địa phương', 'Location (Site)': 'Địa điểm (vùng)', 'Location 1': 'Địa điểm 1', 'Location 2': 'Địa điểm 2', 'Location 3': 'Địa điểm 3', 'Location Added': 'Địa điểm đã được thêm', 'Location Deleted': 'Địa điểm đã được xóa', 'Location Detail': 'Thông tin địa điểm', 'Location Details': 'Thông tin địa điểm', 'Location Group': 'Nhóm địa điểm', 'Location Hierarchies': 'Thứ tự địa điểm', 'Location Hierarchy Level 1 Name': 'Tên thứ tự địa điểm cấp 1', 'Location Hierarchy Level 2 Name': 'Tên thứ tự địa điểm cấp 2', 'Location Hierarchy Level 3 Name': 'Tên thứ tự địa điểm cấp 3', 'Location Hierarchy Level 4 Name': 'Tên thứ tự địa điểm cấp 4', 'Location Hierarchy Level 5 Name': 'Tên thứ tự địa điểm cấp 5', 'Location Hierarchy added': 'Thứ tự địa điểm đã được thêm', 'Location Hierarchy deleted': 'Thứ tự địa điểm đã được xóa', 'Location Hierarchy updated': 'Thứ tự địa điểm đã được cập nhật', 'Location Hierarchy': 'Thứ tự địa điểm', 'Location Updated': 'Địa điểm đã được cập nhật', 'Location added': 'Địa điểm đã được thêm', 'Location deleted': 'Địa điểm đã được xóa', 'Location is Required!': 'Địa điểm được yêu cầu!', 'Location needs to have WKT!': 'Địa điểm cần để có WKT!', 'Location updated': 'Địa điểm đã được cập nhật', 'Location': 'Địa điểm', 'Locations of this level need to have a parent of level': 'Địa điểm ở cấp độ này cần có các cấp độ cha', 'Locations': 'Địa điểm', 'Log Entry Deleted': 'Ghi chép nhật ký đã được xóa', 'Log Entry Details': 'Thông tin về ghi chép nhật ký', 'Log Entry': 'Ghi chép nhật ký', 'Log New Time': 'Thời gian truy cập Mới', 'Log Time Spent': 'Thời gian đã Truy cập', 'Log entry added': 'Ghi chép nhật ký đã được thêm', 'Log entry deleted': 'Ghi chép nhật ký đã được xóa', 'Log entry updated': 'Ghi chép nhật ký đã được cập nhật', 'Log': 'Nhật ký', 'Logged Time Details': 'Thông tin về thời gian đã truy cập', 'Logged Time': 'Thời gian đã truy cập', 'Login with Facebook': 'Đăng nhập với Facebook', 'Login with Google': 'Đăng nhập với Google', 'Login': 'Đăng nhập', 'Logistics & Warehouse': 'Hậu cần & Nhà kho', 'Logo of the organization. This should be a png or jpeg file and it should be no larger than 400x400': 'Biểu trưng của một tổ chức phải là tệp png hay jpeg and không lớn hơn 400x400', 'Logo': 'Biểu tượng', 'Logout': 'Thoát', 'Long Name': 'Tên đầy đủ', 'Long Text': 'Đoạn văn bản dài', 'Long-term': 'Dài hạn', 'Longitude is Invalid!': 'Kinh độ không hợp lệ', 'Longitude is West - East (sideways). Longitude is zero on the prime meridian (Greenwich Mean Time) and is positive to the east, across Europe and Asia. Longitude is negative to the west, across the Atlantic and the Americas.': 'Kinh độ trải dài theo hướng Đông-Tây. Kinh tuyến không nằm trên kinh tuyến gốc (Greenwich Mean Time) hướng về phía đông, vắt ngang châu Âu và châu Á.', 'Longitude is West - East (sideways).': 'Kinh độ Tây - Đông (đường ngang)', 'Longitude is West-East (sideways).': 'Kinh độ Tây - Đông (đường ngang)', 'Longitude is zero on the prime meridian (Greenwich Mean Time) and is positive to the east, across Europe and Asia. Longitude is negative to the west, across the Atlantic and the Americas.': 'Kinh độ là 0 tại đường kinh tuyến đầu tiên (Thời gian vùng Greenwich) và có giá trị dương sang phía đông, qua Châu Âu và Châu Á. Kinh tuyến có giá trị âm sang phía tây, từ Đại Tây Dương qua Châu Mỹ.', 'Longitude is zero on the prime meridian (through Greenwich, United Kingdom) and is positive to the east, across Europe and Asia. Longitude is negative to the west, across the Atlantic and the Americas.': 'Kinh độ là 0 tại đường kinh tuyến đầu tiên (xuyên qua Greenwich, Anh) và có giá trị dương sang phía đông, qua châu Âu và Châu Á. Kinh tuyến có giá trị âm sang phía tây qua Đại Tây Dương và Châu Mỹ.', 'Longitude must be between -180 and 180.': 'Kinh độ phải nằm giữa -180 và 180', 'Longitude of Map Center': 'Kinh độ trung tâm bản đồ của vùng quan tâm', 'Longitude of far eastern end of the region of interest.': 'Kinh độ phía đông điểm cuối của vùng quan tâm', 'Longitude of far western end of the region of interest.': 'Kinh độ phía tây điểm cuối của vùng quan tâm', 'Longitude should be between': 'Kinh độ phải từ giữa', 'Longitude': 'Kinh độ', 'Looting': 'Nạn cướp bóc', 'Lost Password': 'Mất mật khẩu', 'Lost': 'Mất', 'Low': 'Thấp', 'MEDIAN': 'ĐIỂM GIỮA', 'MGRS Layer': 'Lớp MGRS', 'MODERATE': 'TRUNG BÌNH', 'MY REPORTS': 'BÁO CÁO CỦA TÔI', 'Magnetic Storm': 'Bão từ trường', 'Mailing List Details': 'Thông tin danh sách gửi thư', 'Mailing List Name': 'Tên danh sách gửi thư', 'Mailing Lists': 'Danh sách gửi thư', 'Mailing list added': 'Danh sách gửi thư đã được thêm', 'Mailing list deleted': 'Danh sách gửi thư đã được xóa', 'Mailing list updated': 'Danh sách gửi thư đã được cập nhật', 'Mailing list': 'Danh sách gửi thư', 'Main Duties': 'Nhiệm vụ chính', 'Mainstreaming DRR': 'GTRRTH Chính thống', 'Major Damage': 'Thiệt hại lớn', 'Major outward damage': 'Vùng ngoài chính hỏng', 'Major': 'Chuyên ngành', 'Make Commitment': 'Làm một cam kết', 'Make New Commitment': 'Làm một cam kết Mới', 'Make Request': 'Đặt yêu cầu', 'Make a Request for Aid': 'Tạo yêu cầu cứu trợ', 'Make a Request': 'Tạo yêu cầu', 'Male': 'Nam', 'Manage Layers in Catalog': 'Quản lý Lớp trong danh mục', 'Manage National Society Data': 'Quản lý dữ liệu Hội quốc gia', 'Manage Offices Data': 'Quản lý dữ liệu văn phòng', 'Manage Returns': 'Quản lý hàng trả lại', 'Manage Staff Data': 'Quản lý dữ liệu cán bộ', 'Manage Sub-Category': 'Quản lý Tiêu chí phụ', 'Manage Teams Data': 'Quản lý dữ liệu đội TNV', 'Manage Users & Roles': 'Quản lý Người sử dụng & Vai trò', 'Manage Volunteer Data': 'Quản lý dữ liệu TNV', 'Manage Your Facilities': 'Quản lý bộ phận của bạn', 'Manage office inventories and assets.': 'Quản lý tài sản và thiết bị văn phòng', 'Manage volunteers by capturing their skills, availability and allocation': 'Quản ly tình nguyện viên bằng việc nắm bắt những kĩ năng, khả năng và khu vực hoạt động của họ', 'Managing material and human resources together to better prepare for future hazards and vulnerabilities.': 'Quản lý nguồn lực để chuẩn bị tốt hơn cho hiểm họa trong tương lai và tình trạng dễ bị tổn thương.', 'Managing, Storing and Distributing Relief Items.': 'Quản lý, Lưu trữ và Quyên góp hàng cứu trợ', 'Mandatory. In GeoServer, this is the Layer Name. Within the WFS getCapabilities, this is the FeatureType Name part after the colon(:).': 'Bắt buộc. Trong máy chủ về Địa lý, đây là tên Lớp. Trong lớp WFS theo Khả năng là đường dẫn, đây là phần Tên loại chức năng sau dấu hai chấm (:).', 'Mandatory. The URL to access the service.': 'Trường bắt buộc. URL để đăng nhập dịch vụ', 'Manual Synchronization': 'Đồng bộ hóa thủ công', 'Manual synchronization completed.': 'Đồng bộ hóa thủ công đã hoàn tất', 'Manual synchronization scheduled - refresh page to update status.': 'Đồng bộ hóa thủ công đã được đặt lịch - làm mới trang để cập nhật tình trạng', 'Manual synchronization started in the background.': 'Đồng bộ hóa thủ công đã bắt đầu ở nền móng', 'Map Center Latitude': 'Vĩ độ trung tâm bản đồ', 'Map Center Longitude': 'Kinh độ trung tâm bản đồ', 'Map Profile added': 'Cấu hình bản đồ đã được thêm', 'Map Profile deleted': 'Cấu hình bản đồ đã được xóa', 'Map Profile updated': 'Cấu hình bản đồ đã được cập nhật', 'Map Profile': 'Cấu hình bản đồ', 'Map Profiles': 'Cấu hình bản đồ', 'Map Height': 'Chiều cao bản đồ', 'Map Service Catalog': 'Catalogue bản đồ dịch vụ', 'Map Settings': 'Cài đặt bản đồ', 'Map Viewing Client': 'Người đang xem bản đồ', 'Map Width': 'Độ rộng bản đồ', 'Map Zoom': 'Phóng to thu nhỏ Bản đồ', 'Map from Sahana Eden': 'Bản đồ từ Sahana Eden', 'Map not available: No Projection configured': 'Bản đồ không có: Chưa có dự đoán được cài đặt', 'Map not available: Projection %(projection)s not supported - please add definition to %(path)s': 'Bản đồ không có: Dự đoán %(projection)s không được hỗ trỡ - xin thêm khái niệm đến %(path)s', 'Map of Communties': 'Bản đồ cộng đồng', 'Map of Hospitals': 'Bản đồ bệnh viện', 'Map of Incident Reports': 'Bản đồ báo cáo sự cố', 'Map of Offices': 'Bản đồ văn phòng', 'Map of Projects': 'Bản đồ dự án', 'Map of Warehouses': 'Bản đồ kho hàng', 'Map': 'Bản đồ', 'Map': 'Bản đồ', 'Marine Security': 'An ninh hàng hải', 'Marital Status': 'Tình trạng hôn nhân', 'Marker Details': 'Thông tin công cụ đánh dấu', 'Marker Levels': 'Cấp độ công cụ đánh dấu', 'Marker added': 'Công cụ đánh dấu đã được thêm', 'Marker deleted': 'Công cụ đánh dấu đã được xóa', 'Marker updated': 'Công cụ đánh dấu đã được cập nhật', 'Marker': 'Công cụ đánh dấu', 'Markers': 'Công cụ đánh dấu', 'Married': 'Đã kết hôn', 'Master Message Log to process incoming reports & requests': 'Kiểm soát log tin nhắn để xử lý báo cáo và yêu cầu gửi đến', 'Master Message Log': 'Nhật ký tin nhắn chính', 'Master': 'Chủ chốt', 'Master Degree or Higher': 'Trên đại học', 'Match Requests': 'Phù hợp với yêu cầu', 'Match?': 'Phù hợp?', 'Matching Catalog Items': 'Mặt hàng trong danh mục phù hợp', 'Matching Items': 'Mặt hàng phù hợp', 'Matching Records': 'Hồ sơ phù hợp', 'Maternal, Newborn and Child Health': 'CSSK Bà mẹ, trẻ sơ sinh và trẻ em', 'Matrix of Choices (Only one answer)': 'Ma trận lựa chọn (chỉ chọn một câu trả lời)', 'Maximum Location Latitude': 'Vĩ độ tối đa của địa điểm', 'Maximum Location Longitude': 'Kinh độ tối đa của địa điểm', 'Maximum Weight': 'Khối lượng tối đa', 'Maximum must be greater than minimum': 'Giá trị tối đa phải lớn hơn giá trị tối thiểu', 'Maximum': 'Tối đa', 'Mean': 'Trung bình', 'Measure Area: Click the points around the polygon & end with a double-click': 'Đo diện tích: Bấm chuột vào điểm của khu vực cần đo & kết thúc bằng nháy đúp chuột', 'Measure Length: Click the points along the path & end with a double-click': 'Đo Chiều dài: Bấm chuột vào điểm dọc đường đi & kết thúc bằng nháy đúp chuột', 'Media': 'Truyền thông', 'Median Absolute Deviation': 'Độ lệch tuyệt đối trung bình', 'Median': 'Điểm giữa', 'Medical Conditions': 'Tình trạng sức khỏe', 'Medical Services': 'Dịch vụ y tế', 'Medium': 'Trung bình', 'Member Base Development': 'Phát triển cơ sở hội viên', 'Member Details': 'Thông tin về hội viên', 'Member ID': 'Tên truy nhập của hội viên', 'Member added to Group': 'Thành viên nhóm đã được thêm', 'Member added to Team': 'Thành viên Đội/Nhóm đã thêm', 'Member added': 'Hội viên đã được thêm', 'Member deleted': 'Hội viên đã được xóa', 'Member removed from Group': 'Nhóm hội viên đã được xóa', 'Member updated': 'Hội viên đã được cập nhật', 'Member': 'Hội viên', 'Members': 'Hội viên', 'Membership Details': 'Thông tin về nhóm hội viên', 'Membership Fee': 'Phí hội viên', 'Membership Paid': 'Hội viên đã đóng phí', 'Membership Type Details': 'Thông tin về loại hình nhóm hội viên', 'Membership Type added': 'Loại hình nhóm hội viên đã được thêm', 'Membership Type deleted': 'Loại hình nhóm hội viên đã được xóa', 'Membership Type updated': 'Loại hình nhóm hội viên đã được cập nhật', 'Membership Types': 'Loại hình nhóm hội viên', 'Membership updated': 'Nhóm hội viên đã được cập nhật', 'Membership': 'Nhóm hội viên', 'Memberships': 'Nhóm hội viên', 'Message Details': 'Chi tiết tin nhắn', 'Message Parser settings updated': 'Cài đặt cú pháp tin nhắn đã được cập nhật', 'Message Source': 'Nguồn tin nhắn', 'Message Variable': 'Biến tin nhắn', 'Message added': 'Tin nhắn đã được thêm ', 'Message deleted': 'Tin nhắn đã được xóa', 'Message updated': 'Tin nhắn đã được cập nhật', 'Message variable': 'Biến tin nhắn', 'Message': 'Tin nhắn', 'Messages': 'Tin nhắn', 'Messaging': 'Soạn tin nhắn', 'Metadata Details': 'Chi tiết siêu dữ liệu', 'Metadata added': 'Đã thêm dữ liệu', 'Metadata': 'Lý lịch dữ liệu', 'Meteorite': 'Thiên thạch', 'Middle Name': 'Tên đệm', 'Migrants or ethnic minorities': 'Dân di cư hoặc dân tộc thiểu số', 'Milestone Added': 'Mốc thời gian quan trọng đã được thêm', 'Milestone Deleted': 'Mốc thời gian quan trọng đã được xóa', 'Milestone Details': 'Thông tin về mốc thời gian quan trọng', 'Milestone Updated': 'Mốc thời gian quan trọng đã được cập nhật', 'Milestone': 'Mốc thời gian quan trọng', 'Milestones': 'Mốc thời gian quan trọng', 'Minimum Location Latitude': 'Vĩ độ tối thiểu của địa điểm', 'Minimum Location Longitude': 'Kinh độ tối thiểu của địa điểm', 'Minimum': 'Tối thiểu', 'Minor Damage': 'Thiệt hại nhỏ', 'Minute': 'Phút', 'Minutes must be a number.': 'Giá trị của phút phải bằng chữ số', 'Minutes must be less than 60.': 'Giá trị của phút phải ít hơn 60', 'Missing Person Details': 'Chi tiết về người mất tích', 'Missing Person Reports': 'Báo cáo số người mất tích', 'Missing Person': 'Người mất tích', 'Missing Persons Report': 'Báo cáo số người mất tích', 'Missing Persons': 'Người mất tích', 'Missing Senior Citizen': 'Người già bị mất tích', 'Missing Vulnerable Person': 'Người dễ bị tổn thương mất tích', 'Missing': 'Mất tích', 'Mobile Phone Number': 'Số di động', 'Mobile Phone': 'Số di động', 'Mobile': 'Di động', 'Mode': 'Phương thức', 'Model/Type': 'Đời máy/ Loại', 'Modem settings updated': 'Cài đặt mô đem được đã được cập nhật', 'Modem': 'Mô đem', 'Moderator': 'Điều tiết viên', 'Modify Feature: Select the feature you wish to deform & then Drag one of the dots to deform the feature in your chosen manner': 'Sửa đổi tính năng: Lựa chọn tính năng bạn muốn để thay đổi và sau đó kéo vào một trong điểm để thay đổi tính năng theoh bạn chọn', 'Modify Information on groups and individuals': 'Thay đổi thông tin của nhóm và cá nhân', 'Module Administration': 'Quản trị Mô-đun', 'Monday': 'Thứ Hai', 'Monetization Details': 'Thông tin lưu hành tiền tệ', 'Monetization Report': 'Báo cáo lưu hành tiền tệ', 'Monetization': 'Lưu hành tiền tệ', 'Monitoring and Evaluation': 'Đánh giá và Giám sát', 'Month': 'Tháng', 'Monthly': 'Hàng tháng', 'Months': 'Tháng', 'More Options': 'Mở rộng chức năng', 'Morgue': 'Phòng tư liệu', 'Morgues': 'Phòng tư liệu', 'Moustache': 'Râu quai nón', 'Move Feature: Drag feature to desired location': 'Di chuyển tính năng: Kéo tính năng tới vị trí mong muốn', 'Multi-Option': 'Đa lựa chọn', 'Multiple Matches': 'Nhiều kết quả phù hợp', 'Multiple': 'Nhiều', 'Muslim': 'Tín đồ Hồi giáo', 'Must a location have a parent location?': 'Một địa danh cần phải có địa danh trực thuộc đi kèm?', 'My Logged Hours': 'Thời gian truy cập của tôi', 'My Open Tasks': 'Nhiệm vụ của tôi', 'My Profile': 'Hồ sơ của tôi', 'My Tasks': 'Nhiệm vụ của tôi', 'My reports': 'Báo cáo của tôi', 'N/A': 'Không xác định', 'NDRT (National Disaster Response Teams)': 'Đội ứng phó thảm họa cấp TW', 'NO': 'KHÔNG', 'NUMBER_GROUPING': 'SỐ_THEO NHÓM', 'NZSEE Level 1': 'Mức 1 NZSEE', 'NZSEE Level 2': 'Mức 2 NZSEE', 'Name and/or ID': 'Tên và/hoặc tên truy nhập', 'Name field is required!': 'Bắt buộc phải điền Tên!', 'Name of Award': 'Tên phần thưởng', 'Name of Driver': 'Tên tài xế', 'Name of Father': 'Tên cha', 'Name of Institute': 'Trường Đại học/ Học viện', 'Name of Mother': 'Tên mẹ', 'Name of Storage Bin Type.': 'Tên loại Bin lưu trữ', 'Name of the person in local language and script (optional).': 'Tên theo ngôn ngữ và chữ viết địa phương (tùy chọn)', 'Name of the repository (for you own reference)': 'Tên của kho (để bạn tham khảo)', 'Name': 'Tên', 'National ID Card': 'Chứng minh nhân dân', 'National NGO': 'Các tổ chức phi chính phủ ', 'National Societies': 'Hội Quốc gia', 'National Society / Branch': 'Trung ương/ Tỉnh, thành Hội', 'National Society Details': 'Thông tin về Hội Quốc gia', 'National Society added': 'Hội Quốc gia đã được thêm', 'National Society deleted': 'Hội Quốc gia đã được xóa', 'National Society updated': 'Hội Quốc gia đã được cập nhật', 'National Society': 'Hội QG', 'Nationality of the person.': 'Quốc tịch', 'Nationality': 'Quốc tịch', 'Nautical Accident': 'Tai nạn trên biển', 'Nautical Hijacking': 'Cướp trên biển', 'Need to configure Twitter Authentication': 'Cần thiết lập cấu hình Xác thực Twitter', 'Need to select 2 Locations': 'Cần chọn 2 vị trí', 'Need to specify a location to search for.': 'Cần xác định cụ thể một địa điểm để tìm kiếm', 'Need to specify a role!': 'Yêu cầu xác định vai trò', 'Needs Maintenance': 'Cần bảo dưỡng', 'Never': 'Không bao giờ', 'New Annual Budget created': 'Ngân sách hàng năm mới đã được tạo', 'New Certificate': 'Chứng chỉ mới', 'New Checklist': 'Checklist mới', 'New Entry in Asset Log': 'Ghi chép mới trong nhật ký tài sản', 'New Entry': 'Hồ sơ mới', 'New Job Title': 'Chức vụ công việc mới', 'New Organization': 'Tổ chức mới', 'Add Output': 'Kết quả đầu ra mới', 'New Post': 'Bài đăng mới', 'New Record': 'Hồ sơ mới', 'New Request': 'Yêu cầu mới', 'New Role': 'Vai trò mới', 'New Stock Adjustment': 'Điều chỉnh mới về kho hàng', 'New Support Request': 'Yêu cầu hỗ trợ mới', 'New Team': 'Đội/Nhóm mới', 'New Theme': 'Chủ đề mới', 'New Training Course': 'Khóa tập huấn mới', 'New Training Event': 'Khóa tập huấn mới', 'New User': 'Người sử dụng mới', 'New': 'Thêm mới', 'News': 'Tin tức', 'Next View': 'Hiển thị tiếp', 'Next run': 'Lần chạy tiếp theo', 'Next': 'Trang sau', 'No Activities Found': 'Không tìm thấy hoạt động nào', 'No Activity Types Found': 'Không tìm thấy loại hình hoạt động nào', 'No Addresses currently registered': 'Hiện tại chưa đăng ký Địa chỉ', 'No Affiliations defined': 'Không xác định được liên kết nào', 'No Aid Requests have been made yet': 'Chưa có yêu cầu cứu trợ nào được tạo', 'No Alternative Items currently registered': 'Hiện không có mặt hàng thay thế nào được đăng ký', 'No Assessment Answers': 'Không có câu trả lời cho đánh giá', 'No Assessment Questions': 'Không có câu hỏi đánh giá', 'No Assessment Templates': 'Không có mẫu đánh giá', 'No Assessments currently registered': 'Chưa đăng ký trị giá tính thuế', 'No Assets currently registered': 'Hiện không có tài sản nào được đăng ký', 'No Awards found': 'Không tìm thấy thônng tin về khen thưởng', 'No Base Layer': 'Không có lớp bản đồ cơ sở', 'No Beneficiaries Found': 'Không tìm thấy người hưởng lợi nào', 'No Beneficiary Types Found': 'Không tìm thấy nhóm người hưởng lợi nào', 'No Branch Organizations currently registered': 'Hiện không có tổ chức cơ sở nào được đăng ký', 'No Brands currently registered': 'Hiện không có nhãn hàng nào được đăng ký', 'No Catalog Items currently registered': 'Hiện không có mặt hàng nào trong danh mục được đăng ký', 'No Catalogs currently registered': 'Hiện không có danh mục nào được đăng ký', 'No Category<>Sub-Category<>Catalog Relation currently registered': 'Hiện tại chưa có Category<>Sub-Category<>Catalog Relation được đăng ký', 'No Clusters currently registered': 'Hiện không có nhóm nào được đăng ký', 'No Commitment Items currently registered': 'Hiện không có hàng hóa cam kết nào được đăng ký', 'No Commitments': 'Không có cam kết nào', 'No Communities Found': 'Không tìm thấy cộng đồng nào', 'No Completed Assessment Forms': 'Không có mẫu khảo sát đánh giá hoàn thiện nào', 'No Contacts Found': 'Không tìm thấy liên lạc nào', 'No Data currently defined for this Theme Layer': 'Hiện không xác định được dữ liệu nào cho lớp chủ đề này', 'No Data': 'Không có dữ liệu', 'No Disaster Assessments': 'Không có đánh giá thảm họa nào', 'No Distribution Items currently registered': 'Chưa đăng ký danh sách hàng hóa đóng góp', 'No Documents found': 'Không tìm thấy tài liệu nào', 'No Donors currently registered': 'Hiện không có nhà tài trợ nào được đăng ký', 'No Emails currently in InBox': 'Hiện không có thư điện tử nào trong hộp thư đến', 'No Entries Found': 'Không có hồ sơ nào được tìm thấy', 'No Facilities currently registered': 'Hiện không có trang thiết bị nào được đăng ký', 'No Facility Types currently registered': 'Không có bộ phận nào được đăng ký', 'No Feature Layers currently defined': 'Hiện không xác định được lớp đặc điểm nào', 'No File Chosen': 'Chưa chọn File', 'No Flood Reports currently registered': 'Chưa đăng ký báo cáo lũ lụt', 'No Frameworks found': 'Không tìm thấy khung chương trình nào', 'No Groups currently defined': 'Hiện tại không xác định được nhóm', 'No Groups currently registered': 'Hiện không có nhóm nào được đăng ký', 'No Hazards currently registered': 'Hiện không có hiểm họa nào được đăng ký', 'No Hospitals currently registered': 'Chưa có bệnh viện nào đăng ký', 'No Human Resources currently assigned to this incident': 'Hiện không có nhân sự nào được phân công cho công việc này', 'No Identities currently registered': 'Hiện không có nhận diện nào được đăng ký', 'No Image': 'Không có ảnh', 'No Images currently registered': 'Hiện không có hình ảnh nào được đăng ký', 'No Incident Reports currently registered': 'Hiện không có báo cáo sự việc nào được đăng ký', 'No Incidents currently registered': 'Chưa sự việc nào được đưa lên', 'No Inventories currently have suitable alternative items in stock': 'Hiện không có bảng kiểm kê nào có mặt hàng thay thế trong kho', 'No Inventories currently have this item in stock': 'Hiện không có bảng kiểm kê nào có mặt hàng này trong kho', 'No Item Categories currently registered': 'Hiện không có nhóm mặt hàng nào được đăng ký', 'No Item Packs currently registered': 'Hiện không có gói hàng nào được đăng ký', 'No Items currently registered': 'Hiện không có mặt hàng nào được đăng ký', 'No Items currently requested': 'Hiện tại không có hàng hóa nào được yêu cầu', 'No Kits': 'Không có thùng hành nào', 'No Layers currently configured in this Profile': 'Hiện không có lớp nào được tạo ra trong hồ sơ này', 'No Layers currently defined in this Symbology': 'Hiện không xác định được lớp nào trong biểu tượng này', 'No Layers currently defined': 'Hiện không xác định được lớp nào', 'No Location Hierarchies currently defined': 'Hiện không xác định được thứ tự địa điểm', 'No Locations Found': 'Không tìm thấy địa điểm nào', 'No Locations currently available': 'Hiện không có địa điểm', 'No Locations currently registered': 'Hiện tại chưa có vị trí nào được đăng ký', 'No Mailing List currently established': 'Hiện không có danh sách địa chỉ thư nào được thiết lập', 'No Map Profiles currently defined': 'Hiện không xác định được cài đặt cấu hình bản đồ nào', 'No Markers currently available': 'Hiện không có dấu mốc nào', 'No Match': 'Không phù hợp', 'No Matching Catalog Items': 'Không có mặt hàng nào trong danh mục phù hợp', 'No Matching Items': 'Không có mặt hàng phù hợp', 'No Matching Records': 'Không có hồ sơ phù hợp', 'No Members currently registered': 'Hiện không có hội viên nào được đăng ký', 'No Memberships currently defined': 'Chưa xác nhận đăng ký thành viên', 'No Messages currently in Outbox': 'Hiện không có thư nào trong hộp thư đi', 'No Metadata currently defined': 'Hiện tại không xác định được loại siêu dữ liệu', 'No Milestones Found': 'Không tìm thấy sự kiện quan trọng nào', 'No Office Types currently registered': 'Hiện không có loại hình văn phòng nào được đăng ký', 'No Offices currently registered': 'Hiện không có văn phòng nào được đăng ký', 'No Open Tasks for %(project)s': 'Không có công việc chưa được xác định nào cho %(project)s', 'No Orders registered': 'Không có đề nghị nào được đăng ký', 'No Organization Domains currently registered': 'Không có lĩnh vực hoạt động của tổ chức nào được đăng ký', 'No Organization Types currently registered': 'Hiện không có loại hình tổ chức nào được đăng ký', 'No Organizations currently registered': 'Hiện không có tổ chức nào được đăng ký', 'No Organizations for Project(s)': 'Không có tổ chức cho dự án', 'No Organizations found for this Framework': 'Không tìm thấy tổ chức trong chương trình khung này', 'No Packs for Item': 'Không có hàng đóng gói', 'No Partner Organizations currently registered': 'Hiện không có tổ chức đối tác nào được đăng ký', 'No People currently committed': 'Hiện không có người nào cam kết', 'No People currently registered in this shelter': 'Không có người đăng ký cư trú ở đơn vị này', 'No Persons currently registered': 'Hiện không có người nào đăng ký', 'No Persons currently reported missing': 'Hiện tại không thấy báo cáo về người mất tích', 'No Photos found': 'Không tìm thấy hình ảnh', 'No PoIs available.': 'Không có PoIs', 'No Presence Log Entries currently registered': 'Hiện chư có ghi chép nhật ký được đăng ký', 'No Professional Experience found': 'Không tìm thấy kinh nghiệm nghề nghiệp', 'No Profiles currently have Configurations for this Layer': 'Hiện không có hồ sơ nào có cài đặt cấu hình cho lớp này', 'No Projections currently defined': 'Hiện không xác định được trình diễn nào', 'No Projects currently registered': 'Hiện không có dự án nào được đăng ký', 'No Question Meta-Data': 'Không có siêu dữ liệu lớn câu hỏi', 'No Ratings for Skill Type': 'Không xếp loại cho loại kỹ năng', 'No Received Shipments': 'Không có chuyến hàng nào được nhận', 'No Records currently available': 'Hiện tại không có hồ sơ nào sẵn có', 'No Red Cross & Red Crescent National Societies currently registered': 'Hiện không có Hội Chữ thập đỏ và Trăng lưỡi liềm đỏ quốc gia nào được đăng ký', 'No Request Items currently registered': 'Hiện không có mặt hàng đề nghị nào được đăng ký', 'No Requests': 'Không có đề nghị', 'No Roles defined': 'Không có vai trò nào được xác định ', 'No Rooms currently registered': 'Hiện không có phòng nào được đăng ký', 'No Search saved': 'Không có tìm kiếm nào được lưu', 'No Sectors currently registered': 'Hiện không có lĩnh vực nào được đăng ký', 'No Sent Shipments': 'Không có chuyến hàng nào được gửi', 'No Settings currently defined': 'Hiện không có cài đặt nào được xác định', 'No Shelters currently registered': 'Hiện tại chưa đăng ký nơi cư trú', 'No Shipment Items': 'Không có hàng hóa vận chuyển nào', 'No Shipment Transit Logs currently registered': 'Không có số liệu lưu về vận chuyển được ghi nhận', 'No Skill Types currently set': 'Chưa cài đặt loại kỹ năng', 'No Skills currently requested': 'Hiện không có kỹ năng nào được đề nghị', 'No Staff currently registered': 'Hiện không có cán bộ nào được đăng ký', 'No Statuses currently registered': 'Hiện không có tình trạng nào được đăng ký', 'No Stock currently registered in this Warehouse': 'Hiện không có hàng hóa nào được đăng ký trong nhà kho này', 'No Stock currently registered': 'Hiện không có hàng hóa nào được đăng ký', 'No Storage Bin Type currently registered': 'Chưa đăng ký Loại Bin lưu trữ', 'No Suppliers currently registered': 'Hiện không có nhà cung cấp nào được đăng ký', 'No Support Requests currently registered': 'Hiện tại không có yêu cầu hỗ trợ nào được đăng ký', 'No Survey Questions currently registered': 'Hiện tại không có câu hỏi khảo sát nào được đăng ký', 'No Symbologies currently defined for this Layer': 'Hiện không xác định được biểu tượng nào cho lớp này', 'No Symbologies currently defined': 'Hiện không xác định được biểu tượng nào', 'No Tasks Assigned': 'Không có công việc nào được giao', 'No Teams currently registered': 'Hiện không có Đội/Nhóm nào được đăng ký', 'No Template Sections': 'Không có phần về biểu mẫu', 'No Themes currently registered': 'Hiện không có chủ đề nào được đăng ký', 'No Tickets currently registered': 'Hiện tại chưa đăng ký Ticket ', 'No Time Logged': 'Không có thời gian nào được ghi lại', 'No Twilio Settings currently defined': 'Hiện không có cài đặt Twilio nào được xác định', 'No Units currently registered': 'Chưa đăng ký tên đơn vị', 'No Users currently registered': 'Hiện không có người sử dụng nào được đăng ký', 'No Vehicles currently assigned to this incident': 'Hiện không có phương tiện vận chuyển nào được điều động cho sự việc này', 'No Volunteer Cluster Positions': 'Không có vị trí của nhóm tình nguyện viên', 'No Volunteer Cluster Types': 'Không có loại hình nhóm tình nguyện viên', 'No Volunteer Clusters': 'Không có nhóm tình nguyện viên', 'No Volunteers currently registered': 'Hiện không có tình nguyện viên nào được đăng ký', 'No Warehouses currently registered': 'Hiện không có nhà kho nào được đăng ký', 'No access at all': 'Không truy cập', 'No access to this record!': 'Không tiếp cận được bản lưu này!', 'No annual budgets found': 'Không tìm thấy bản ngân sách năm', 'No contact information available': 'Không có thông tin liên hệ', 'No contact method found': 'Không tìm thấy cách thức liên hệ', 'No contacts currently registered': 'Chưa đăng ký thông tin liên lạc', 'No data available in table': 'Không có dữ liệu trong bảng', 'No data available': 'Không có dữ liệu sẵn có', 'No data in this table - cannot create PDF!': 'Không có dữ liệu trong bảng - không thể tạo file PDF', 'No databases in this application': 'Không có cơ sở dữ liệu trong ứng dụng này', 'No demographic data currently available': 'Hiện không xác định được dữ liệu nhân khẩu', 'No demographic sources currently defined': 'Hiện không xác định được nguồn nhân khẩu', 'No demographics currently defined': 'Hiện không xác định được số liệu thống kê dân số', 'No education details currently registered': 'Hiện không có thông tin về học vấn được đăng ký', 'No entries currently available': 'Hiện chưa có hồ sơ nào', 'No entries found': 'Không có hồ sơ nào được tìm thấy', 'No entry available': 'Chưa có hồ sơ nào', 'No file chosen': 'Chưa chọn file', 'No forms to the corresponding resource have been downloaded yet.': 'Không tải được mẫu nào cho nguồn tài nguyên tương ứng', 'No further users can be assigned.': 'Không thể phân công thêm người sử dụng', 'No items currently in stock': 'Hiện không có mặt hàng nào trong kho', 'No items have been selected for shipping.': 'Không có mặt hàng nào được lựa chọn để vận chuyển', 'No jobs configured yet': 'Chưa thiết lập công việc', 'No jobs configured': 'Không thiết lập công việc', 'No linked records': 'Không có bản thu liên quan', 'No location information defined!': 'Không xác định được thông tin về địa điểm!', 'No match': 'Không phù hợp', 'No matching element found in the data source': 'Không tìm được yếu tố phù hợp từ nguồn dữ liệu', 'No matching records found': 'Không tìm thấy hồ sơ phù hợp', 'No matching result': 'Không có kết quả phù hợp', 'No membership types currently registered': 'Hiện không có loại hình hội viên nào được đăng ký', 'No messages in the system': 'Không có thư nào trong hệ thống', 'No offices registered for organisation': 'Không có văn phòng nào đăng ký tổ chức', 'No options available': 'Không có lựa chọn sẵn có', 'No outputs defined': 'Không tìm thấy đầu ra', 'No pending registrations found': 'Không tìm thấy đăng ký đang chờ', 'No pending registrations matching the query': 'Không tìm thấy đăng ký khớp với yêu cầu', 'No problem group defined yet': 'Chưa xác định được nhóm gặp nạn', 'No records in this resource': 'Không có hồ sơ nào trong tài nguyên mới', 'No records in this resource. Add one more records manually and then retry.': 'Không có hồ sơ nào trong tài nguyên này. Thêm một hoặc nhiều hồ sơ một cách thủ công và sau đó thử lại ', 'No records to delete': 'Không có bản thu để xóa', 'No records to review': 'Không có hồ sơ nào để rà soát', 'No report available.': 'Không có báo cáo', 'No reports available.': 'Không có báo cáo nào', 'No repositories configured': 'Không có chỗ chứa hàng nào được tạo ra', 'No requests found': 'Không tìm thấy yêu cầu', 'No resources configured yet': 'Chưa có nguồn lực nào được tạo ra', 'No role to delete': 'Không có chức năng nào để xóa', 'No roles currently assigned to this user.': 'Hiện tại không có chức năng nào được cấp cho người sử dụng này', 'No service profile available': 'Không có hồ sơ đăng ký dịch vụ nào', 'No staff or volunteers currently registered': 'Hiện không có cán bộ hay tình nguyện viên nào được đăng ký', 'No stock adjustments have been done': 'Không có bất kỳ điều chỉnh nào về hàng hóa', 'No synchronization': 'Chưa đồng bộ hóa', 'No tasks currently registered': 'Hiện không có công việc nào được đăng ký', 'No template found!': 'Không tìm thấy mẫu', 'No themes found': 'Không tìm thấy chủ đề nào', 'No translations exist in spreadsheet': 'Không có phần dịch trong bảng tính', 'No users with this role at the moment.': 'Hiện tại không có người sử dụng nào có chức năng này', 'No valid data in the file': 'Không có dữ liệu có giá trị trong tệp tin', 'No volunteer information registered': 'Chưa đăng ký thông tin tình nguyện viên', 'No vulnerability aggregated indicators currently defined': 'Hiện không xác định được chỉ số tổng hợp về tình trạng dễ bị tổn thương', 'No vulnerability data currently defined': 'Hiện không xác định được dữ liệu về tình trạng dễ bị tổn thương', 'No vulnerability indicator Sources currently defined': 'Hiện không xác định được nguồn chỉ số về tình trạng dễ bị tổn thương', 'No vulnerability indicators currently defined': 'Hiện không xác định được chỉ số về tình trạng dễ bị tổn thương', 'No': 'Không', 'Non-Communicable Diseases': 'Bệnh không lây nhiễm', 'None (no such record)': 'Không cái nào (không có bản lưu như thế)', 'None': 'Không có', 'Nonexistent or invalid resource': 'Không tồn tại hoặc nguồn lực không hợp lệ', 'Noodles': 'Mì', 'Normal Job': 'Công việc hiện nay', 'Normal': 'Bình thường', 'Not Authorized': 'Không được phép', 'Not Set': 'Chưa thiết đặt', 'Not implemented': 'Không được thực hiện', 'Not installed or incorrectly configured.': 'Không được cài đặt hoặc cài đặt cấu hình không chính xác', 'Not yet a Member of any Group': 'Hiện không có nhóm hội viên nào được đăng ký', 'Not you?': 'Không phải bạn chứ?', 'Note that when using geowebcache, this can be set in the GWC config.': 'Lưu ý khi sử dụng geowebcache, phần này có thể được cài đặt trong cấu hình GWC.', 'Note: Make sure that all the text cells are quoted in the csv file before uploading': 'Lưu ý: Đảm bảo tất cả các ô chữ được trích dẫn trong tệp tin csv trước khi tải lên', 'Notice to Airmen': 'Lưu ý cho phi công', 'Notification frequency': 'Tần suất thông báo', 'Notification method': 'Phương pháp thông báo', 'Notify': 'Thông báo', 'Number of Completed Assessment Forms': 'Số phiếu đánh giá đã được hoàn chỉnh', 'Number of People Affected': 'Số người bị ảnh hưởng', 'Number of People Dead': 'Số người chết', 'Number of People Injured': 'Số người bị thương', 'Number of People Required': 'Số người cần', 'Number of Rows': 'Số hàng', 'Number of alternative places for studying': 'Số địa điểm có thể dùng làm trường học tạm thời', 'Number of newly admitted patients during the past 24 hours.': 'Số lượng bệnh nhân tiếp nhận trong 24h qua', 'Number of private schools': 'Số lượng trường tư', 'Number of religious schools': 'Số lượng trường công giáo', 'Number of vacant/available beds in this hospital. Automatically updated from daily reports.': 'Số các giường bệnh trống trong bệnh viện. Tự động cập nhật từ các báo cáo hàng ngày.', 'Number or Label on the identification tag this person is wearing (if any).': 'Số hoặc nhãn trên thẻ nhận diện mà người này đang đeo (nếu có)', 'Number': 'Số', 'Number/Percentage of affected population that is Female & Aged 0-5': 'Đối tượng nữ trong độ tuổi 0-5 tuổi chịu ảnh hưởng của thiên tai ', 'Number/Percentage of affected population that is Female & Aged 6-12': 'Đối tượng nữ trong độ tuổi 6-12 chịu ảnh hưởng của thiên tai', 'Number/Percentage of affected population that is Male & Aged 0-5': 'Đối tượng nam trong độ tuổi 0-5 chịu ảnh hưởng từ thiên tai', 'Number/Percentage of affected population that is Male & Aged 18-25': 'Đối tượng nam giới trong độ tuổi 18-25 chịu ảnh hưởng của thiên tai', 'Number/Percentage of affected population that is Male & Aged 26-60': 'Đối tượng là Nam giới và trong độ tuổi từ 26-60 chịu ảnh hưởng lớn từ thiên tai', 'Numbers Only': 'Chỉ dùng số', 'Numeric': 'Bằng số', 'Nutrition': 'Dinh dưỡng', 'OCR Form Review': 'Mẫu OCR tổng hợp', 'OCR module is disabled. Ask the Server Administrator to enable it.': 'Module OCR không được phép. Yêu cầu Quản trị mạng cho phép', 'OCR review data has been stored into the database successfully.': 'Dự liệu OCR tổng hợp đã được lưu thành công vào kho dữ liệu', 'OK': 'Đồng ý', 'OSM file generation failed!': 'Chiết xuất tệp tin OSM đã bị lỗi!', 'OSM file generation failed: %s': 'Chiết xuất tệp tin OSM đã bị lỗi: %s', 'OTHER DATA': 'DỮ LIỆU KHÁC', 'OTHER REPORTS': 'BÁO CÁO KHÁC', 'OVERALL RESILIENCE': 'SỰ BỀN VỮNG TỔNG THỂ', 'Object': 'Đối tượng', 'Objectives': 'Mục tiêu', 'Observer': 'Người quan sát', 'Obsolete': 'Đã thôi hoạt động', 'Obstetrics/Gynecology': 'Sản khoa/Phụ khoa', 'Office Address': 'Địa chỉ văn phòng', 'Office Details': 'Thông tin về văn phòng', 'Office Phone': 'Điện thoại văn phòng', 'Office Type Details': 'Thông tin về loại hình văn phòng', 'Office Type added': 'Loại hình văn phòng được thêm vào', 'Office Type deleted': 'Loại hình văn phòng đã xóa', 'Office Type updated': 'Loại hình văn phòng được cập nhật', 'Office Type': 'Loại hình văn phòng', 'Office Types': 'Loại văn phòng', 'Office added': 'Văn phòng được thêm vào', 'Office deleted': 'Văn phòng đã xóa', 'Office updated': 'Văn phòng được cập nhật', 'Office': 'Văn phòng', 'Office/Center': 'Văn phòng/Trung tâm', 'Office/Warehouse/Facility': 'Trụ sở làm việc', 'Officer': 'Chuyên viên', 'Offices': 'Văn phòng', 'Old': 'Người già', 'On Hold': 'Tạm dừng', 'On Order': 'Theo đề nghị', 'On by default?': 'Theo mặc định?', 'One item is attached to this shipment': 'Một mặt hàng được bổ sung thêm vào kiện hàng này', 'One-time costs': 'Chí phí một lần', 'Ongoing': 'Đang thực hiện', 'Only showing accessible records!': 'Chỉ hiển thị hồ sơ có thể truy cập', 'Only use this button to accept back into stock some items that were returned from a delivery to beneficiaries who do not record the shipment details directly into the system': 'Chỉ sử dụng nút này để nhận lại vào kho một số mặt hàng được trả lại do người nhận không trực tiếp lưu thông tin về kiện hàng này trên hệ thống', 'Only use this button to confirm that the shipment has been received by a destination which will not record the shipment directly into the system': 'Chỉ sử dụng nút này để xác nhận kiện hàng đã được nhận tại một địa điểm không trực tiếp lưu thông tin về kiện hàng trên hệ thống', 'Oops! Something went wrong...': 'Xin lỗi! Có lỗi gì đó…', 'Oops! something went wrong on our side.': 'Xin lỗi! Có trục trặc gì đó từ phía chúng tôi.', 'Opacity': 'Độ mờ', 'Open Incidents': 'Mở sự kiện', 'Open Map': 'Mở bản đồ', 'Open Tasks for %(project)s': 'Các công việc chưa xác định cho %(project)s', 'Open Tasks for Project': 'Mở nhiệm vụ cho một dự án', 'Open recent': 'Mở gần đây', 'Open': 'Mở', 'OpenStreetMap Layer': 'Mở lớp bản đồ đường đi', 'OpenStreetMap OAuth Consumer Key': 'Mã khóa người sử dụng OpenStreetMap OAuth', 'OpenStreetMap OAuth Consumer Secret': 'Bí mật người sử dụng OpenStreetMap OAuth', 'OpenWeatherMap Layer': 'Lớp OpenWeatherMap (bản đồ thời tiết mở)', 'Operating Rooms': 'Phòng điều hành', 'Operation not permitted': 'Hoạt động không được phép', 'Option Other': 'Lựa chọn khác', 'Option': 'Lựa chọn', 'Optional Subject to put into Email - can be used as a Security Password by the service provider': 'Chủ đề tùy chọn để đưa vào Thư điện tử - có thể được sử dụng như một Mật khẩu bảo mật do nhà cung cấp dịch vụ cung cấp', 'Optional password for HTTP Basic Authentication.': 'Mật khẩu tùy chọn cho Sự xác thực cơ bản HTTP.', 'Optional selection of a MapServer map.': 'Tùy chọn một bản đồ trong Máy chủ bản đồ.', 'Optional selection of a background color.': 'Tùy chọn màu sắc cho nền.', 'Optional selection of an alternate style.': 'Tùy chọn một kiểu dáng thay thế.', 'Optional username for HTTP Basic Authentication.': 'Tên truy nhập tùy chọn cho Sự xác thực cơ bản HTTP.', 'Optional. If you wish to style the features based on values of an attribute, select the attribute to use here.': 'Tùy chọn. Nếu bạn muốn tự tạo ra chức năng dựa trên các giá trị của một thuộc tính, hãy lựa chọn thuộc tính để sử dụng tại đây.', 'Optional. In GeoServer, this is the Workspace Namespace URI (not the name!). Within the WFS getCapabilities, this is the FeatureType Name part before the colon(:).': 'Tùy chọn. Trong máy chủ về địa lý, đây là Vùng tên Vùng làm việc URI (không phải là một tên gọi!). Trong lớp WFS theo khả năng là đường dẫn, đây là phần Tên loại chức năng trước dấu hai chấm (:).', 'Optional. The name of an element whose contents should be a URL of an Image file put into Popups.': 'Tùy chọn. Tên của một bộ phận có chứa nội dung là một URL của một tệp tin hình ảnh được đưa vào các cửa sổ tự động hiển thị.', 'Optional. The name of an element whose contents should be put into Popups.': 'Tùy chọn. Tên của một bộ phận có chứa nội dung được đưa vào các cửa sổ tự động hiển thị.', 'Optional. The name of the schema. In Geoserver this has the form http://host_name/geoserver/wfs/DescribeFeatureType?version=1.1.0&;typename=workspace_name:layer_name.': 'Tùy chọn. Tên của sơ đồ. Trong Geoserver tên này có dạng http://tên máy chủ/geoserver/wfs/Mô tả Loại Đặc điểm ?phiên bản=1.1.0&;nhập tên=vùng làm việc_tên:lớp_tên.', 'Options': 'Các lựa chọn', 'Or add a new language code': 'Hoặc chọn một ngôn ngữ khác', 'Order Created': 'Đơn hàng đã tạo', 'Order Details': 'Thông tin đơn hàng', 'Order Due %(date)s': 'Thời hạn của đơn hàng %(date)s', 'Order Item': 'Các mặt hàng trong đơn hàng', 'Order canceled': 'Đơn hàng đã bị hủy', 'Order updated': 'Đơn hàng được cập nhật', 'Order': 'Đơn hàng', 'Orders': 'Các đơn hàng', 'Organization Details': 'Thông tin về tổ chức', 'Organization Domain Details': 'Thông tin về lĩnh vực hoạt động của tổ chức', 'Organization Domain added': 'Lĩnh vực hoạt động của tổ chức đã được thêm', 'Organization Domain deleted': 'Lĩnh vực hoạt động của tổ chức đã được xóa', 'Organization Domain updated': 'Lĩnh vực hoạt động của tổ chức đã được cập nhật', 'Organization Domains': 'Loại hình hoạt động của tổ chức', 'Organization Registry': 'Đăng ký tổ chức', 'Organization Type Details': 'Thông tin về loại hình tổ chức', 'Organization Type added': 'Loại hình tổ chức được thêm vào', 'Organization Type deleted': 'Loại hình tổ chức đã xóa', 'Organization Type updated': 'Loại hình tổ chức được cập nhật', 'Organization Type': 'Loại hình tổ chức', 'Organization Types': 'Loại hình tổ chức', 'Organization Units': 'Đơn vị của tổ chức', 'Organization added to Framework': 'Tổ chức được thêm vào Chương trình khung', 'Organization added to Project': 'Tổ chức được thêm vào Dự án', 'Organization added': 'Tổ chức được thêm vào', 'Organization deleted': 'Tổ chức đã xóa', 'Organization removed from Framework': 'Tổ chức đã rút ra khỏi Chương trình khung', 'Organization removed from Project': 'Tổ chức đã rút ra khỏi Dự án', 'Organization updated': 'Tổ chức được cập nhật', 'Organization': 'Tổ chức', 'Organization/Supplier': 'Tổ chức/ Nhà cung cấp', 'Organizational Development': 'Phát triển tổ chức', 'Organizations / Teams / Facilities': 'Tổ chức/ Đội/ Cơ sở hạ tầng', 'Organizations': 'Tổ chức', 'Organized By': 'Đơn vị tổ chức', 'Origin': 'Nguồn gốc', 'Original Quantity': 'Số lượng ban đầu', 'Original Value per Pack': 'Giá trị ban đầu cho mỗi gói hàng', 'Other Address': 'Địa chỉ khác', 'Other Details': 'Thông tin khác', 'Other Education': 'Trình độ học vấn khác', 'Other Employment': 'Quá trình công tác ngoài Chữ thập đỏ', 'Other Evidence': 'Bằng chứng khác', 'Other Faucet/Piped Water': 'Các đường xả lũ khác', 'Other Inventories': 'Kho hàng khác', 'Other Isolation': 'Những vùng bị cô lập khác', 'Other Users': 'Người sử dụng khác', 'Other activities of boys 13-17yrs': 'Các hoạt động khác của nam thanh niên từ 13-17 tuổi', 'Other activities of boys <12yrs before disaster': 'Các hoạt động khác của bé trai dưới 12 tuổi trước khi xảy ra thiên tai', 'Other alternative places for study': 'Những nơi có thể dùng làm trường học tạm thời', 'Other assistance needed': 'Các hỗ trợ cần thiết', 'Other assistance, Rank': 'Những sự hỗ trợ khác,thứ hạng', 'Other data': 'Dữ liệu khác', 'Other factors affecting school attendance': 'Những yếu tố khác ảnh hưởng đến việc đến trường', 'Other reports': 'Báo cáo khác', 'Other settings can only be set by editing a file on the server': 'Cài đặt khác chỉ có thể được cài đặt bằng cách sửa đổi một tệp tin trên máy chủ', 'Other side dishes in stock': 'Món trộn khác trong kho', 'Other': 'Khác', 'Others': 'Khác', 'Outbound Mail settings are configured in models/000_config.py.': 'Cài đặt thư gửi ra nước ngoài được cấu hình thành các kiểu/000_config.py.', 'Outbox': 'Hộp thư đi', 'Outcomes, Impact, Challenges': 'Kết quả, Tác động, Thách thức', 'Outgoing SMS handler': 'Bộ quản lý tin nhắn SMS gửi đi', 'Output added': 'Đầu ra được thêm vào', 'Output deleted': 'Đầu ra đã xóa', 'Output updated': 'Đầu ra được cập nhật', 'Output': 'Đầu ra', 'Outputs': 'Các đầu ra', 'Over 60': 'Trên 60', 'Overall Resilience': 'Sự bền vững tổng thể', 'Overland Flow Flood': 'Dòng nước lũ lụt trên đất đất liền', 'Overlays': 'Lớp dữ liệu phủ', 'Owned By (Organization/Branch)': 'Sở hữu bởi (Tổ chức/ Chi nhánh)', 'Owned Records': 'Hồ sơ được sở hữu', 'Owned Resources': 'Nguồn lực thuộc sở hữu', 'Owner Driven Housing Reconstruction': 'Xây lại nhà theo nhu cầu của chủ nhà', 'Owning Organization': 'Tổ chức nắm quyền sở hữu', 'PASSA': 'Phương pháp tiếp cận có sự tham gia về nhận thức an toàn nhà ở', 'PIL (Python Image Library) not installed': 'PIL (thư viện ảnh Python) chưa cài đặt', 'PIL (Python Image Library) not installed, images cannot be embedded in the PDF report': 'PIL (thư viện ảnh Python) chưa được cài đặt, hình ảnh không thể gắn vào báo cáo dạng PDF', 'PIN number from Twitter (leave empty to detach account)': 'Số PIN từ Twitter (để trống để tách tài khoản)', 'PMER Development': 'Phát triển năng lực Báo cáo, đánh giá, giám sát và lập kế hoạch (PMER)', 'POOR': 'NGHÈO', 'POPULATION DENSITY': 'MẬT ĐỘ DÂN SỐ', 'POPULATION:': 'DÂN SỐ:', 'Pack': 'Gói', 'Packs': 'Các gói', 'Page': 'Trang', 'Paid': 'Đã nộp', 'Pan Map: keep the left mouse button pressed and drag the map': 'Dính bản đồ: giữ chuột trái và di chuột để di chuyển bản đồ', 'Parameters': 'Tham số', 'Parent Item': 'Mặt hàng cùng gốc', 'Parent Project': 'Dự án cùng gốc', 'Parent needs to be of the correct level': 'Phần tử cấp trên cần ở mức chính xác', 'Parent needs to be set for locations of level': 'Phần tử cấp trên cần được cài đặt cho các điểm mức độ', 'Parent needs to be set': 'Phần tử cấp trên cần được cài đặt', 'Parent': 'Phần tử cấp trên', 'Parser Setting deleted': 'Cài đặt của bộ phân tích đã xóa', 'Parser Settings': 'Các cài đặt của bộ phân tích', 'Parsing Settings': 'Cài đặt cú pháp', 'Parsing Status': 'Tình trạng phân tích', 'Parsing Workflow': 'Quá trình phân tích', 'Part of the URL to call to access the Features': 'Phần URL để gọi để truy cập tới chức năng', 'Part-time': 'Kiêm nhiệm', 'Partial': 'Một phần', 'Participant Details': 'Thông tin về người tham dự', 'Participant added': 'Người tham dự được thêm vào', 'Participant deleted': 'Người tham dự đã xóa', 'Participant updated': 'Người tham dự được cập nhật', 'Participant': 'Người tham dự', 'Participants': 'Những người tham dự', 'Participating Organizations': 'Các tổ chức tham gia', 'Partner National Society': 'Hội Quốc gia thành viên', 'Partner Organization Details': 'Thông tin về tổ chức đối tác', 'Partner Organization added': 'Tổ chức đối tác được thêm vào', 'Partner Organization deleted': 'Tổ chức đối tác đã xóa', 'Partner Organization updated': 'Tổ chức đối tác đã được cập nhật', 'Partner Organizations': 'Tổ chức đối tác', 'Partner': 'Đối tác', 'Partners': 'Đối tác', 'Partnerships': 'Hợp tác', 'Pass': 'Qua', 'Passport': 'Hộ chiếu', 'Password to use for authentication at the remote site.': 'Mật khẩu để sử dụng để xác định tại một địa điểm ở xa', 'Password': 'Mật khẩu', 'Pathology': 'Bệnh lý học', 'Patients': 'Bệnh nhân', 'Pediatric ICU': 'Chuyên khoa nhi', 'Pediatric Psychiatric': 'Khoa Tâm thần dành cho bệnh nhi', 'Pediatrics': 'Khoa Nhi', 'Peer Registration Request': 'yêu cầu đăng ký', 'Peer registration request added': 'Đã thêm yêu cầu đăng ký', 'Peer registration request updated': 'Cập nhật yêu cẩu đăng ký', 'Pending Requests': 'yêu cầu đang chờ', 'Pending': 'Đang xử lý', 'People Trapped': 'Người bị bắt', 'People': 'Người', 'Percentage': 'Phần trăm', 'Performance Rating': 'Đánh giá quá trình thực hiện', 'Permanent Home Address': 'Địa chỉ thường trú', 'Permanent': 'Biên chế', 'Person (Count)': 'Họ tên (Số lượng)', 'Person Details': 'Thông tin cá nhân', 'Person Registry': 'Cơ quan đăng ký nhân sự', 'Person added to Commitment': 'Người được thêm vào Cam kết', 'Person added to Group': 'Người được thêm vào Nhóm', 'Person added to Team': 'Người được thêm vào Đội', 'Person added': 'Người được thêm vào', 'Person deleted': 'Người đã xóa', 'Person details updated': 'Thông tin cá nhân được cập nhật', 'Person must be specified!': 'Người phải được chỉ định!', 'Person or OU': 'Người hay OU', 'Person removed from Commitment': 'Người đã xóa khỏi Cam kết', 'Person removed from Group': 'Người đã xóa khỏi Nhóm', 'Person removed from Team': 'Người đã xóa khỏi Đội', 'Person reporting': 'Báo cáo về người', 'Person who has actually seen the person/group.': 'Người đã thực sự nhìn thấy người/ nhóm', 'Person who observed the presence (if different from reporter).': 'Người quan sát tình hình (nếu khác với phóng viên)', 'Person': 'Họ tên', 'Personal Effects Details': 'Chi tiết ảnh hưởng cá nhân', 'Personal Profile': 'Hồ sơ cá nhân', 'Personal': 'Cá nhân', 'Personnel': 'Nhân viên', 'Persons with disability (mental)': 'Người tàn tật (về tinh thần)', 'Persons with disability (physical)': 'Người tàn tật (về thể chất)', 'Persons': 'Họ tên', 'Philippine Pesos': 'Đồng Pê sô Phi-lip-pin', 'Phone #': 'Số điện thoại', 'Phone 1': 'Điện thoại 1', 'Phone 2': 'Điện thoại 2', 'Phone number is required': 'Yêu cầu nhập số điện thoại', 'Phone': 'Điện thoại', 'Photo Details': 'Thông tin về ảnh', 'Photo added': 'Ảnh được thêm vào', 'Photo deleted': 'Ảnh đã xóa', 'Photo updated': 'Ảnh được cập nhật', 'Photograph': 'Ảnh', 'Photos': 'Những bức ảnh', 'Place of Birth': 'Nơi sinh', 'Place of registration for health-check and medical treatment': 'Nơi đăng ký khám chữa bệnh', 'Place of registration': 'Nơi đăng ký BHXH', 'Place on Map': 'Vị trí trên bản đồ', 'Place': 'Nơi', 'Planned %(date)s': 'Đã lập kế hoạch %(date)s', 'Planned Procurement Item': 'Mặt hàng mua sắm theo kế hoạch', 'Planned Procurement': 'Mua sắm theo kế hoạch', 'Planned Procurements': 'Những trường hợp mua sắm đã lập kế hoạch', 'Planned': 'Đã lập kế hoạch', 'Please do not remove this sheet': 'Xin vui lòng không xóa bảng này', 'Please enter a First Name': 'Vui lòng nhập họ', 'Please enter a Warehouse/Facility/Office OR an Organization': 'Xin vui lòng nhập một Nhà kho/ Bộ phận/ Văn phòng HOẶC một Tổ chức', 'Please enter a Warehouse/Facility/Office': 'Xin vui lòng nhập một Nhà kho/ Bộ phận/ Văn phòng', 'Please enter a first name': 'Xin vui lòng nhập một tên', 'Please enter a last name': 'Xin vui lòng nhập một họ', 'Please enter a number only': 'Vui lòng chỉ nhập một số', 'Please enter a valid email address': 'Vui lòng nhập địa chỉ email hợp lệ', 'Please enter a valid email address.': 'Vui lòng nhập địa chỉ email hợp lệ', 'Please enter an Organization/Supplier': 'Xin vui lòng nhập một Tổ chức/ Nhà cung cấp', 'Please enter the first few letters of the Person/Group for the autocomplete.': 'Xin vui lòng nhập những chữ cái đầu tiên của Tên/ Nhóm để tự động dò tìm.', 'Please enter the recipient(s)': 'Xin vui lòng nhập người nhận', 'Please fill this!': 'Xin vui lòng nhập thông tin vào đây!', 'Please provide the URL of the page you are referring to, a description of what you expected to happen & what actually happened.': 'Vui lòng cung cấp đường dẫn trang bạn muốn tham chiếu tới, miêu tả bạn thực sự muốn gì và cái gì đã thực sự xảy ra.', 'Please record Beneficiary according to the reporting needs of your project': 'Xin vui lòng lưu thông tin Người hưởng lợi theo những nhu cầu về báo cáo của dự án của bạn', 'Please review demographic data for': 'Xin vui lòng rà soát lại số liệu dân số để', 'Please review indicator ratings for': 'Xin vui lòng rà soát lại những đánh giá về chỉ số để', 'Please select another level': 'Xin vui lòng lựa chọn một cấp độ khác', 'Please select': 'Xin vui lòng lựa chọn', 'Please use this field to record any additional information, including a history of the record if it is updated.': 'Vui lòng sử dụng ô này để điền thêm các thông tin bổ sung, bao gồm cả lịch sử của hồ sơ nếu được cập nhật.', 'Please use this field to record any additional information, such as Ushahidi instance IDs. Include a history of the record if it is updated.': 'Xin vui lòng sử dụng ô này để điền thông tin bổ sung, như là tên truy nhập phiên bản Ushahidi. Bao gồm một lịch sử của hồ sơ nếu được cập nhật.', 'PoIs successfully imported.': 'PoIs đã được nhập thành công.', 'Poisoning': 'Sự nhiễm độc', 'Poisonous Gas': 'Khí độc', 'Policy Development': 'Xây dựng chính sách', 'Political Theory Education': 'Trình độ Lý luận chính trị', 'Pollution and other environmental': 'Ô nhiễm và các vấn đề môi trường khác', 'Polygon': 'Đa giác', 'Poor': 'Nghèo', 'Population Report': 'Báo cáo dân số', 'Population': 'Dân số', 'Popup Fields': 'Các trường cửa sổ tự động hiển thị', 'Popup Label': 'Nhãn cửa sổ tự động hiển thị', 'Porridge': 'Cháo yến mạch', 'Port Closure': 'Cổng đóng', 'Port': 'Cổng', 'Portable App': 'Ứng dụng di động', 'Portal at': 'Cổng thông tin', 'Position': 'Vị trí', 'Positions': 'Những vị trí', 'Post Graduate': 'Trên đại học', 'Postcode': 'Mã bưu điện', 'Posts': 'Thư tín', 'Poultry restocking, Rank': 'Thu mua gia cầm, thứ hạng', 'Power Failure': 'Lỗi nguồn điện', 'Powered by ': 'Cung cấp bởi', 'Powered by Sahana': 'Cung cấp bởi Sahana', 'Powered by': 'Cung cấp bởi', 'Preferred Name': 'Tên thường gọi', 'Presence Condition': 'Điều kiện xuất hiện', 'Presence Log': 'Lịch trình xuất hiện', 'Presence': 'Sự hiện diện', 'Previous View': 'Hiển thị trước', 'Previous': 'Trang trước', 'Primary': 'Sơ cấp', 'Principal Officer': 'Chuyên viên chính', 'Print / Share': 'In ra / Chia sẻ', 'Print Extent': 'Kích thước in', 'Print Map': 'In bản đồ', 'Printed from Sahana Eden': 'Được in từ Sahana Eden', 'Printing disabled since server not accessible': 'Chức năng in không thực hiện được do không thể kết nối với máy chủ', 'Priority from 1 to 9. 1 is most preferred.': 'Thứ tự ưu tiên từ 1 đến 9. 1 được ưu tiên nhất.', 'Priority': 'Ưu tiên', 'Privacy': 'Riêng tư', 'Private-Public Partnerships': 'Hợp tác tư nhân và nhà nước', 'Problem Administration': 'Quản lý vấn đề', 'Problem connecting to twitter.com - please refresh': 'Vấn đề khi kết nối với twitter.com - vui lòng làm lại', 'Problem updated': 'Đã cập nhật vấn đề', 'Problem': 'Vấn đề', 'Problems': 'Vấn đề', 'Procedure': 'Thủ tục', 'Process Received Shipment': 'Thủ tục nhận lô hàng', 'Process Shipment to Send': 'Thủ tục gửi lô hàng', 'Processing': 'Đang xử lý', 'Procured': 'Được mua', 'Procurement Plans': 'Kế hoạch mua sắm', 'Profession': 'Nghề nghiệp', 'Professional Experience Details': 'Thông tin về kinh nghiệm nghề nghiệp', 'Professional Experience added': 'Kinh nghiệm nghề nghiệp đã được thêm vào', 'Professional Experience deleted': 'Kinh nghiệm nghề nghiệp đã xóa', 'Professional Experience updated': 'Kinh nghiệp nghề nghiệp được cập nhật', 'Professional Experience': 'Kinh nghiệm nghề nghiệp', 'Profile Configuration removed': 'Cấu hình hồ sơ đã xóa', 'Profile Configuration updated': 'Cấu hình hồ sơ được cập nhật', 'Profile Configuration': 'Cấu hình hồ sơ', 'Profile Configurations': 'Các cấu hình hồ sơ', 'Profile Configured': 'Hồ sơ đã được cài đặt cấu hình', 'Profile Details': 'Thông tin về hồ sơ', 'Profile Picture': 'Ảnh hồ sơ', 'Profile Picture?': 'Ảnh đại diện?', 'Profile': 'Hồ sơ', 'Profiles': 'Các hồ sơ', 'Program (Count)': 'Chương trình (Số lượng)', 'Program Details': 'Thông tin về chương trình', 'Program Hours (Month)': 'Thời gian tham gia chương trình (Tháng)', 'Program Hours (Year)': 'Thời gian tham gia chương trình (Năm)', 'Program Hours': 'Thời gian tham gia chương trình', 'Program added': 'Chương trình đã được thêm vào', 'Program deleted': 'Chương trình đã xóa', 'Program updated': 'Chương trình được cập nhật', 'Program': 'Chương trình tham gia', 'Programme Planning and Management': 'Quản lý và lập kế hoạch Chương trình', 'Programme Preparation and Action Plan, Budget & Schedule': 'Xây dựng Chương trình và Kế hoạch hành động, lập ngân sách và lịch hoạt động', 'Programs': 'Chương trình', 'Project Activities': 'Các hoạt động của dự án', 'Project Activity': 'Hoạt động của dự án', 'Project Assessments and Planning': 'Lập kế hoạch và đánh giá dự án', 'Project Beneficiary Type': 'Nhóm người hưởng lợi của dự án', 'Project Beneficiary': 'Người hưởng lợi của dự án', 'Project Calendar': 'Lịch dự án', 'Project Details': 'Thông tin về dự án', 'Project Name': 'Tên dự án', 'Project Organization Details': 'Thông tin về tổ chức của dự án', 'Project Organization updated': 'Tổ chức dự án được cập nhật', 'Project Organizations': 'Các tổ chức dự án', 'Project Time Report': 'Báo cáo thời gian dự án', 'Project Title': 'Tên dự án', 'Project added': 'Dự án được thêm vào', 'Project deleted': 'Dự án đã xóa', 'Project not Found': 'Không tìm thấy dự án', 'Project updated': 'Dự án được cập nhật', 'Project': 'Dự án', 'Projection Details': 'Thông tin dự đoán', 'Projection Type': 'Loại dự báo', 'Projection added': 'Dự đoán được thêm vào', 'Projection deleted': 'Dự đoán đã xóa', 'Projection updated': 'Dự đoán được cập nhật', 'Projection': 'Dự đoán', 'Projections': 'Nhiều dự đoán', 'Projects Map': 'Bản đồ dự án', 'Projects': 'Dự án', 'Proposed': 'Được đề xuất', 'Protecting Livelihoods': 'Bảo vệ Sinh kế', 'Protocol': 'Giao thức', 'Provide Metadata for your media files': 'Cung cấp lý lịch dữ liệu cho các tệp tin đa phương tiện', 'Provide a password': 'Cung cấp mật khẩu', 'Provider': 'Nơi đăng ký BHYT', 'Province': 'Tỉnh/thành', 'Provision of Tools and Equipment': 'Cung cấp công cụ và trang thiết bị', 'Proxy Server URL': 'Máy chủ ủy nhiệm URL', 'Psychiatrics/Pediatric': 'Khoa thần kinh/Khoa nhi', 'Psychosocial Support': 'Hỗ trợ tâm lý', 'Public Administration Education': 'Trình độ Quản lý nhà nước', 'Public Event': 'Sự kiện dành cho công chúng', 'Public and private transportation': 'Phương tiện vận chuyển công cộng và cá nhân', 'Public': 'Công khai', 'Purchase Data': 'Dữ liệu mua hàng', 'Purchase Date': 'Ngày mua hàng', 'Purchase': 'Mua hàng', 'Purpose': 'Mục đích', 'Pyroclastic Flow': 'Dòng dung nham', 'Pyroclastic Surge': 'Núi lửa phun trào', 'Python Serial module not available within the running Python - this needs installing to activate the Modem': 'Modun số liệu Python không sẵn có trong Python đang chạy - cần cài đặt để kích hoạt modem', 'Python needs the ReportLab module installed for PDF export': 'Chưa cài đặt kho báo cáo', 'Python needs the xlrd module installed for XLS export': 'Chạy Python cần xlrd module được cài đặt để chiết xuất định dạng XLS', 'Python needs the xlwt module installed for XLS export': 'Chạy Python cần xlwt module được cài đặt để chiết xuất định dạng XLS', 'Quantity Committed': 'Số lượng cam kết', 'Quantity Fulfilled': 'Số lượng đã được cung cấp', 'Quantity Received': 'Số lượng đã nhận được', 'Quantity Returned': 'Số lượng được trả lại', 'Quantity Sent': 'Số lượng đã gửi', 'Quantity in Transit': 'Số lượng đang được vận chuyển', 'Quantity': 'Số lượng', 'Quarantine': 'Cách ly để kiểm dịch', 'Queries': 'Thắc mắc', 'Query Feature': 'Đặc tính thắc mắc', 'Query': 'Yêu cầu', 'Queryable?': 'Có thể yêu cầu?', 'Question Details': 'Thông tin về câu hỏi', 'Question Meta-Data Details': 'Chi tiết lý lịch dữ liệu về câu hỏi', 'Question Meta-Data added': 'Lý lịch dữ liệu về câu hỏi được thêm vào', 'Question Meta-Data deleted': 'Lý lịch dữ liệu về câu hỏi đã xóa', 'Question Meta-Data updated': 'Lý lịch dữ liệu về câu hỏi được cập nhật', 'Question Meta-Data': 'Lý lịch dữ liệu về câu hỏi', 'Question Summary': 'Tóm tắt câu hỏi', 'Question': 'Câu hỏi', 'RC historical employment record': 'Quá trình công tác tại Hội', 'READ': 'ĐỌC', 'REPORTS': 'BÁO CÁO', 'RESET': 'THIẾT LẬP LẠI', 'RESILIENCE': 'AN TOÀN', 'REST Filter': 'Bộ lọc REST', 'RFA Priorities': 'Những ưu tiên RFA', 'RFA1: Governance-Organisational, Institutional, Policy and Decision Making Framework': 'RFA1: Quản trị - Về tổ chức, Về thể chế, Chính sách và Khung ra quyết định', 'RFA2: Knowledge, Information, Public Awareness and Education': 'RFA2: Kiến thức, Thông tin, Nhận thức của công chúng và Đào tạo', 'RFA3: Analysis and Evaluation of Hazards, Vulnerabilities and Elements at Risk': 'RFA3: Phân tích và Đánh giá Hiểm họa, Tình trạng dễ bị tổn thương và Những yếu tố dễ gặp rủi ro', 'RFA4: Planning for Effective Preparedness, Response and Recovery': 'RFA4: Lập kế hoạch cho Chuẩn bị, Ứng phó và Phục hồi hiệu quả', 'RFA5: Effective, Integrated and People-Focused Early Warning Systems': 'RFA5: Hệ thống cảnh báo sớm hiệu quả, tích hợp và chú trọng vào con người', 'RFA6: Reduction of Underlying Risk Factors': 'RFA6: Giảm thiểu những nhân tố rủi ro cơ bản', 'Race': 'Chủng tộc', 'Radio Callsign': 'Tín hiệu điện đàm', 'Radiological Hazard': 'Hiểm họa phóng xạ', 'Railway Accident': 'Tai nạn đường sắt', 'Railway Hijacking': 'Cướp tàu hỏa', 'Rain Fall': 'Mưa lớn', 'Rapid Assessments': 'Đánh giá nhanh', 'Rapid Close Lead': 'Nhanh chóng đóng lại', 'Rapid Data Entry': 'Nhập dữ liệu nhanh', 'Raw Database access': 'Truy cập cơ sở dữ liệu gốc', 'Ready': 'Sẵn sàng', 'Reason': 'Lý do', 'Receive %(opt_in)s updates:': 'Nhận %(opt_in)s cập nhật', 'Receive New Shipment': 'Nhận lô hàng mới', 'Receive Shipment': 'Nhận lô hàng', 'Receive updates': 'Nhập cập nhật', 'Receive': 'Nhận', 'Receive/Incoming': 'Nhận/ Đến', 'Received By': 'Nhận bởi', 'Received Shipment Details': 'Thông tin về lô hàng nhận', 'Received Shipment canceled': 'Lô hàng nhận đã bị hoãn', 'Received Shipment updated': 'Lô hàng nhận đã được cập nhật', 'Received Shipments': 'Hàng nhận', 'Received date': 'Ngày nhận', 'Received': 'Đã được nhận', 'Received/Incoming Shipments': 'Lô hàng nhận/đến', 'Receiving Inventory': 'Nhận hàng tồn kho', 'Reception': 'Nhận', 'Recipient': 'Người nhận', 'Recipient(s)': 'Người nhận', 'Recipients': 'Những người nhận', 'Record Deleted': 'Hồ sơ bị xóa', 'Record Details': 'Chi tiết hồ sơ', 'Record added': 'Hồ sơ được thêm', 'Record already exists': 'Bản lưu đã tồn tại', 'Record approved': 'Hồ sơ được chấp thuân', 'Record could not be approved.': 'Hồ sơ không được chấp thuận', 'Record could not be deleted.': 'Hồ sơ không thể xóa', 'Record deleted': 'Hồ sơ bị xóa', 'Record not found!': 'Không tìm thấy bản lưu!', 'Record not found': 'Không tìm thấy hồ sơ', 'Record updated': 'Hồ sơ được cập nhật', 'Record': 'Hồ sơ', 'Records': 'Các hồ sơ', 'Recovery Request added': 'Đã thêm yêu cầu phục hồi', 'Recovery Request deleted': 'phục hồi các yêu cầu bị xóa', 'Recovery Request updated': 'Cập nhật Yêu cầu phục hồi', 'Recovery Request': 'Phục hồi yêu cầu', 'Recovery Requests': 'Phục hồi yêu cầu', 'Recovery': 'Phục hồi', 'Recurring costs': 'Chi phí định kỳ', 'Recurring': 'Định kỳ', 'Red Cross & Red Crescent National Societies': 'Các Hội Chữ thập đỏ & Trăng lưỡi liềm đỏ Quốc gia', 'Red Cross Employment History': 'Quá trình công tác trong Chữ thập đỏ', 'Refresh Rate (seconds)': 'Tỉ lệ làm mới (giây)', 'Region Location': 'Địa điểm vùng', 'Region': 'Vùng', 'Regional': 'Địa phương', 'Register As': 'Đăng ký là', 'Register Person into this Shelter': 'Đăng ký cá nhân vào nơi cư trú', 'Register Person': 'Đăng ký Cá nhân', 'Register for Account': 'Đăng ký tài khoản', 'Register': 'Đăng ký', 'Registered People': 'Những người đã đăng ký', 'Registered users can %(login)s to access the system': 'Người sử dụng đã đăng ký có thể %(đăng nhập)s để truy cập vào hệ thống', 'Registered users can': 'Người dùng đã đăng ký có thể', 'Registration Details': 'Chi tiết đăng ký', 'Registration added': 'Bản đăng ký đã được thêm', 'Registration not permitted': 'Việc đăng ký không được chấp thuận', 'Reject request submitted': 'Đề nghị từ chối đã được gửi đi', 'Reject': 'Từ chối', 'Relationship': 'Mối quan hệ', 'Relief Team': 'Đội cứu trợ', 'Religion': 'Tôn giáo', 'Reload': 'Tải lại', 'Remarks': 'Những nhận xét', 'Remember Me': 'Duy trì đăng nhập', 'Remote Error': 'Lỗi từ xa', 'Remove Feature: Select the feature you wish to remove & press the delete key': 'Chức năng gỡ bỏ: Lựa chọn chức năng bạn muốn gõ bỏ và ấn phím xóa', 'Remove Human Resource from this incident': 'Xóa nguồn Nhân lực khỏi sự việc này', 'Remove Layer from Profile': 'Xóa Lớp khỏi Hồ sơ', 'Remove Layer from Symbology': 'Xóa Lớp khỏi Biểu tượng', 'Remove Organization from Project': 'Xóa Tổ chức khỏi Dự án', 'Remove Person from Commitment': 'Xóa Người khỏi Cam kết', 'Remove Person from Group': 'Xóa Người khỏi Nhóm', 'Remove Person from Team': 'Xóa Người khỏi Đội', 'Remove Profile Configuration for Layer': 'Xóa Cấu hình hồ sơ cho Lớp', 'Remove Skill from Request': 'Xóa Kỹ năng khỏi Đề nghị', 'Remove Skill': 'Xóa Kỹ năng', 'Remove Stock from Warehouse': 'Xóa Hàng hóa khỏi Nhà kho', 'Remove Symbology from Layer': 'Xóa Biểu tượng khỏi Lớp', 'Remove Vehicle from this incident': 'Xóa Phương tiện khỏi sự việc này', 'Remove all log entries': 'Xóa toàn bộ ghi chép nhật ký', 'Remove all': 'Gỡ bỏ toàn bộ', 'Remove existing data before import': 'Xóa dữ liệu đang tồn tại trước khi nhập', 'Remove selection': 'Gỡ bỏ có lựa chọn', 'Remove this entry': 'Gỡ bỏ hồ sơ này', 'Remove': 'Gỡ bỏ', 'Reopened': 'Được mở lại', 'Repacked By': 'Được đóng gói lại bởi', 'Repair': 'Sửa chữa', 'Repaired': 'Được sửa chữa', 'Repeat your password': 'Nhập lại mật khẩu', 'Repeat': 'Lặp lại', 'Replace if Newer': 'Thay thế nếu mới hơn', 'Replace': 'Thay thế', 'Replacing or Provisioning Livelihoods': 'Thay thế hoặc Cấp phát sinh kế', 'Replies': 'Trả lời', 'Reply Message': 'Trả lời tin nhắn', 'Reply': 'Trả lời', 'Report Date': 'Ngày báo cáo', 'Report Details': 'Chi tiết báo cáo', 'Report Options': 'Lựa chọn yêu cầu báo cáo', 'Report To': 'Báo cáo cho', 'Report Type': 'Loại báo cáo', 'Report a Problem with the Software': 'báo cáo lỗi bằng phần mềm', 'Report added': 'Đã thêm báo cáo', 'Report by Age/Gender': 'Báo cáo theo tuổi/ giới tính', 'Report deleted': 'Đã xóa báo cáo', 'Report my location': 'Báo cáo vị trí ', 'Report of': 'Báo cáo theo', 'Report on Annual Budgets': 'Báo cáo về Ngân sách năm', 'Report on Themes': 'Báo cáo về Chủ đề', 'Report the contributing factors for the current EMS status.': 'Báo cáo các nhân tố đóng góp cho tình trạng EMS hiện tại.', 'Report': 'Báo cáo', 'Report': 'Báo cáo', 'Reported By (Not Staff)': 'Được báo cáo bởi (không phải nhân viên)', 'Reported By (Staff)': 'Được báo cáo bởi (nhân viên)', 'Reported To': 'Được báo cáo tới', 'Reported': 'Được báo cáo', 'Reportlab not installed': 'Chưa cài đặt kho báo cáo', 'Reports': 'Báo cáo', 'Repositories': 'Nơi lưu trữ', 'Repository Base URL': 'Nơi lưu trữ cơ bản URL', 'Repository Configuration': 'Cấu hình nơi lưu trữ', 'Repository Name': 'Tên nơi lưu trữ', 'Repository UUID': 'Lưu trữ UUID', 'Repository configuration deleted': 'Cấu hình nơi lưu trữ đã xóa', 'Repository configuration updated': 'Cấu hình nơi lưu trữ được cập nhật', 'Repository configured': 'Nơi lưu trữ đã được cấu hình', 'Repository': 'Nơi lưu trữ', 'Request Added': 'Đề nghị được thêm vào', 'Request Canceled': 'Đề nghị đã bị hủy', 'Request Details': 'Yêu cầu thông tin chi tiết', 'Request From': 'Đề nghị từ', 'Request Item Details': 'Chi tiết mặt hàng đề nghị', 'Request Item added': 'Đã thêm yêu cầu hàng hóa', 'Request Item deleted': 'Xóa yêu cầu hàng hóa', 'Request Item updated': 'Đã cập nhật hàng hóa yêu cầu', 'Request Item': 'Mặt hàng yêu cầu', 'Request Items': 'Mặt hàng yêu cầu', 'Request New People': 'Yêu cầu cán bộ mới', 'Request Status': 'Tình trạng lời đề nghị', 'Request Stock from Available Warehouse': 'Đề nghị Hàng từ Kho hàng đang có', 'Request Type': 'Loại hình đề nghị', 'Request Updated': 'Đề nghị được cập nhật', 'Request added': 'Yêu cầu được thêm', 'Request deleted': 'Yêu cầu được xóa', 'Request for Role Upgrade': 'yêu cầu nâng cấp vai trò', 'Request from Facility': 'Đề nghị từ bộ phận', 'Request updated': 'Yêu cầu được cập nhật', 'Request': 'Yêu cầu', 'Request, Response & Session': 'Yêu cầu, Phản hồi và Tương tác', 'Requested By': 'Đã được đề nghị bởi', 'Requested For Facility': 'Được yêu cầu cho bộ phận', 'Requested For': 'Đã được đề nghị cho', 'Requested From': 'Đã được đề nghị từ', 'Requested Items': 'Yêu cầu mặt hàng', 'Requested Skill Details': 'Chi tiết kỹ năng đã đề nghị', 'Requested Skill updated': 'Kỹ năng được đề nghị đã được cập nhật', 'Requested Skills': 'Những kỹ năng được đề nghị', 'Requested by': 'Yêu cầu bởi', 'Requested': 'Đã được đề nghị', 'Requester': 'Người đề nghị', 'Requestor': 'Người yêu cầu', 'Requests Management': 'Quản lý những đề nghị', 'Requests for Item': 'Yêu cầu hàng hóa', 'Requests': 'Yêu cầu', 'Required Skills': 'Những kỹ năng cần có ', 'Requires Login!': 'Đề nghị đăng nhập!', 'Requires Login': 'Đề nghị đăng nhập', 'Reset Password': 'Cài đặt lại mật khẩu', 'Reset all filters': 'Tái thiết lập tất cả lựa chọn lọc', 'Reset filter': 'Tái thiết lập lựa chọn lọc', 'Reset form': 'Đặt lại mẫu', 'Reset': 'Thiết lập lại', 'Resolution': 'Nghị quyết', 'Resource Configuration': 'Cấu hình nguồn lực', 'Resource Management System': 'Hệ thống quản lý nguồn lực', 'Resource Mobilization': 'Huy động nguồn lực', 'Resource Name': 'Tên nguồn lực', 'Resource configuration deleted': 'Cấu hình nguồn lực đã xóa', 'Resource configuration updated': 'Cầu hình nguồn lực được cập nhật', 'Resource configured': 'Nguồn lực đã được cấu hình', 'Resources': 'Những nguồn lực', 'Responder(s)': 'Người ứng phó', 'Response deleted': 'Xóa phản hồi', 'Response': 'Ứng phó', 'Responses': 'Các đợt ứng phó', 'Restarting Livelihoods': 'Tái khởi động nguồn sinh kế', 'Results': 'Kết quả', 'Retail Crime': 'Chiếm đoạt tài sản để bán', 'Retrieve Password': 'Khôi phục mật khẩu', 'Return to Request': 'Trở về Đề nghị', 'Return': 'Trở về', 'Returned From': 'Được trả lại từ', 'Returned': 'Đã được trả lại', 'Returning': 'Trả lại', 'Review Incoming Shipment to Receive': 'Rà soát Lô hàng đến để Nhận', 'Review next': 'Rà soát tiếp', 'Review': 'Rà soát', 'Revised Quantity': 'Số lượng đã được điều chỉnh', 'Revised Status': 'Tình trạng đã được điều chỉnh', 'Revised Value per Pack': 'Giá trị mỗi Gói đã được điều chỉnh', 'Riot': 'Bạo động', 'Risk Identification & Assessment': 'Đánh giá và Xác định rủi ro', 'Risk Transfer & Insurance': 'Bảo hiểm và hỗ trợ tài chính nhằm ứng phó với rủi ro', 'Risk Transfer': 'Hỗ trợ tài chính nhằm ứng phó với rủi ro', 'River Details': 'Chi tiết Sông', 'River': 'Sông', 'Road Accident': 'Tai nạn đường bộ', 'Road Closed': 'Đường bị chặn', 'Road Delay': 'Cản trở giao thông đường bộ', 'Road Hijacking': 'Tấn công trên đường', 'Road Safety': 'An toàn đường bộ', 'Road Usage Condition': 'Tình hình sử dụng đường sá', 'Role Details': 'Chi tiết về vai trò', 'Role Name': 'Tên chức năng', 'Role Required': 'Chức năng được yêu cầu', 'Role added': 'Vai trò được thêm vào', 'Role assigned to User': 'Chức năng được cấp cho người sử dụng này', 'Role deleted': 'Vai trò đã xóa', 'Role updated': 'Vai trò được cập nhật', 'Role': 'Vai trò', 'Roles Permitted': 'Các chức năng được cho phép', 'Roles currently assigned': 'Các chức năng được cấp hiện tại', 'Roles of User': 'Các chức năng của người sử dụng', 'Roles updated': 'Các chức năng được cập nhật', 'Roles': 'Vai trò', 'Room Details': 'Chi tiết về phòng', 'Room added': 'Phòng được thêm vào', 'Room deleted': 'Phòng đã xóa', 'Room updated': 'Phòng được cập nhật', 'Room': 'Phòng', 'Rooms': 'Những phòng', 'Rotation': 'Sự luân phiên', 'Rows in table': 'Các hàng trong bảng', 'Rows selected': 'Các hàng được chọn', 'Rows': 'Các dòng', 'Run Functional Tests': 'Kiểm thử chức năng', 'Run every': 'Khởi động mọi hàng', 'S3Pivottable unresolved dependencies': 'Các phụ thuộc không được xử lý S3pivottable', 'SMS Modems (Inbound & Outbound)': 'Modem SMS (gửi ra & gửi đến)', 'SMS Outbound': 'SMS gửi ra', 'SMS Settings': 'Cài đặt tin nhắn', 'SMS settings updated': 'Cập nhật cài đặt SMS', 'SMTP to SMS settings updated': 'Cập nhật cài đặt SMTP to SMS', 'SOPS and Guidelines Development': 'Xây dựng Hướng dẫn và Quy trình chuẩn', 'STRONG': 'MẠNH', 'SUBMIT DATA': 'GỬI DỮ LIỆU', 'Sahana Administrator': 'Quản trị viên Sahana', 'Sahana Community Chat': 'Nói chuyện trên cộng đồng Sahana', 'Sahana Eden Humanitarian Management Platform': 'Diễn đàn Quản lý nhân đạo Sahana Eden', 'Sahana Eden Website': 'Trang thông tin Sahana Eden', 'Sahana Eden portable application generator': 'Bộ sinh ứng dụng cầm tay Sahana Eden', 'Sahana Login Approval Pending': 'Chờ chấp nhận đăng nhập vào Sahana', 'Salary': 'Lương', 'Salary Coefficient': 'Hệ số', 'Sale': 'Bán hàng', 'Satellite': 'Vệ tinh', 'Save and add Items': 'Lưu và thêm Hàng hóa', 'Save and add People': 'Lưu và thêm Người', 'Save any Changes in the one you wish to keep': 'Lưu mọi thay đổi ở bất kỳ nơi nào bạn muốn', 'Save search': 'Lưu tìm kiếm', 'Save this search': 'Lưu tìm kiếm này', 'Save': 'Lưu', 'Save: Default Lat, Lon & Zoom for the Viewport': 'Lưu: Mặc định kinh độ, vĩ độ & phóng ảnh cho cổng nhìn', 'Saved Queries': 'Các thắc mắc được lưu', 'Saved Searches': 'Những tìm kiếm đã lưu', 'Saved search added': 'Tìm kiếm đã lưu đã được thêm vào', 'Saved search deleted': 'Tìm kiếm được lưu đã xóa', 'Saved search details': 'Chi tiết về tìm kiếm đã lưu', 'Saved search updated': 'Tìm kiếm đã lưu đã được cập nhật', 'Saved searches': 'Những tìm kiếm đã lưu', 'Scale of Results': 'Phạm vi của kết quả', 'Scale': 'Kích thước', 'Scanned Copy': 'Bản chụp điện tử', 'Scanned Forms Upload': 'Tải lên mẫu đã quyét', 'Scenarios': 'Các kịch bản', 'Schedule synchronization jobs': 'Các công việc được điều chỉnh theo lịch trình', 'Schedule': 'Lịch trình', 'Scheduled Jobs': 'Công việc đã được lập kế hoạch', 'Schema': 'Giản đồ', 'School Closure': 'Đóng cửa trường học', 'School Health': 'CSSK trong trường học', 'School Lockdown': 'Đóng cửa trường học', 'School tents received': 'Đã nhận được lều gửi cho trường học ', 'School/studying': 'Trường học', 'Seaport': 'Cảng biển', 'Seaports': 'Các cảng biển', 'Search & List Catalog': 'Tìm kiếm và liệt kê các danh mục', 'Search & List Category': 'Tìm và liệt kê danh mục', 'Search & List Items': 'Tìm kiếm và hiển thị danh sách hàng hóa', 'Search & List Locations': 'Tìm và liệt kê các địa điểm', 'Search & List Sub-Category': 'Tìm kiếm và lên danh sách Tiêu chí phụ', 'Search & Subscribe': 'Tìm kiếm và Đặt mua', 'Search Activities': 'Tìm kiếm hoạt động', 'Search Addresses': 'Tìm kiếm địa chỉ', 'Search Affiliations': 'Tìm kiếm chi nhánh', 'Search Aid Requests': 'Tìm kiếm Yêu cầu cứu trợ', 'Search Alternative Items': 'Tìm kiếm mục thay thế', 'Search Annual Budgets': 'Tìm kiếm các ngân sách năm', 'Search Assessments': 'Tìm kiếm các đánh giá', 'Search Asset Log': 'Tìm kiếm nhật ký tài sản', 'Search Assets': 'Tìm kiếm tài sản', 'Search Assigned Human Resources': 'Tìm kiếm người được phân công', 'Search Beneficiaries': 'Tìm kiếm những người hưởng lợi', 'Search Beneficiary Types': 'Tìm kiếm những nhóm người hưởng lợi', 'Search Branch Organizations': 'Tìm kiếm tổ chức chi nhánh', 'Search Brands': 'Tìm kiếm nhãn hàng', 'Search Budgets': 'Tìm kiếm các ngân sách', 'Search Catalog Items': 'Tìm kiếm mặt hàng trong danh mục', 'Search Catalogs': 'Tìm kiếm danh mục', 'Search Certificates': 'Tìm kiếm chứng chỉ', 'Search Certifications': 'Tìm kiếm bằng cấp', 'Search Checklists': 'Tìm kiếm Checklist', 'Search Clusters': 'Tìm kiếm nhóm', 'Search Commitment Items': 'Tìm kiếm mục cam kết', 'Search Commitments': 'Tìm kiếm cam kết', 'Search Committed People': 'Tìm kiếm người được cam kết', 'Search Community Contacts': 'Tìm kiếm thông tin liên lạc của cộng đồng', 'Search Community': 'Tìm kiếm cộng đồng', 'Search Competency Ratings': 'Tìm kiếm đánh giá năng lực', 'Search Contact Information': 'Tìm kiếm thông tin liên hệ', 'Search Contacts': 'Tìm kiếm liên lạc', 'Search Course Certificates': 'Tìm kiếm chứng chỉ đào tạo', 'Search Courses': 'Tìm kiếm khóa đào tạo', 'Search Credentials': 'Tìm kiếm giấy chứng nhận', 'Search Demographic Data': 'Tìm kiếm dữ liệu nhân khẩu học', 'Search Demographic Sources': 'Tìm kiếm nguồn dữ liệu dân số', 'Search Demographics': 'Tìm kiếm số liệu thống kê dân số', 'Search Departments': 'Tìm kiếm phòng/ban', 'Search Distributions': 'Tìm kiếm Quyên góp', 'Search Documents': 'Tìm kiếm tài liệu', 'Search Donors': 'Tìm kiếm nhà tài trợ', 'Search Education Details': 'Tìm kiếm thông tin đào tạo', 'Search Email InBox': 'Tìm kiếm thư trong hộp thư đến', 'Search Entries': 'Tìm kiếm hồ sơ', 'Search Facilities': 'Tìm kiếm trang thiết bị', 'Search Facility Types': 'Tìm kiếm loại hình bộ phận', 'Search Feature Layers': 'Tìm kiếm lớp tính năng', 'Search Flood Reports': 'Tìm các báo cáo về lũ lụt', 'Search Frameworks': 'Tìm kiếm khung chương trình', 'Search Groups': 'Tìm kiếm nhóm', 'Search Hospitals': 'Tìm kếm các bệnh viện', 'Search Hours': 'Tìm kiếm theo thời gian hoạt động', 'Search Identity': 'Tìm kiếm nhận dạng', 'Search Images': 'Tìm kiếm hình ảnh', 'Search Incident Reports': 'Tìm kiếm báo cáo sự việc', 'Search Item Catalog(s)': 'Tìm kiếm Catalog hàng hóa', 'Search Item Categories': 'Tìm kiếm nhóm mặt hàng', 'Search Item Packs': 'Tìm kiếm gói hàng', 'Search Items in Request': 'Tìm kiếm mặt hàng đang đề nghị', 'Search Items': 'Tìm kiếm mặt hàng', 'Search Job Roles': 'Tìm kiếm vai trò của công việc', 'Search Job Titles': 'Tìm kiếm chức danh công việc', 'Search Keys': 'Tìm kiếm mã', 'Search Kits': 'Tìm kiếm bộ dụng cụ', 'Search Layers': 'Tìm kiếm lớp', 'Search Location Hierarchies': 'Tìm kiếm thứ tự địa điểm', 'Search Location': 'Tìm kiếm địa điểm', 'Search Locations': 'Tìm kiếm địa điểm', 'Search Log Entry': 'Tìm kiếm ghi chép nhật ký', 'Search Logged Time': 'Tìm kiếm thời gian đăng nhập', 'Search Mailing Lists': 'Tìm kiếm danh sách gửi thư', 'Search Map Profiles': 'Tìm kiếm cấu hình bản đồ', 'Search Markers': 'Tìm kiếm đánh dấu', 'Search Members': 'Tìm kiếm thành viên', 'Search Membership Types': 'Tìm kiếm loại hình hội viên', 'Search Membership': 'Tìm kiếm hội viên', 'Search Memberships': 'Tim kiếm thành viên', 'Search Metadata': 'Tìm kiếm dữ liệu', 'Search Milestones': 'Tìm kiếm mốc quan trọng', 'Search Office Types': 'Tìm kiếm loại hình văn phòng', 'Search Offices': 'Tìm kiếm văn phòng', 'Search Open Tasks for %(project)s': 'Tìm kiếm Công việc Chưa được xác định cho %(project)s', 'Search Orders': 'Tìm kiếm đơn hàng', 'Search Organization Domains': 'Tìm kiếm lĩnh vực hoạt động của tổ chức', 'Search Organization Types': 'Tìm kiếm loại hình tổ chức', 'Search Organizations': 'Tìm kiếm tổ chức', 'Search Participants': 'Tìm kiếm người tham dự', 'Search Partner Organizations': 'Tìm kiếm tổ chức thành viên', 'Search Persons': 'Tìm kiếm người', 'Search Photos': 'Tìm kiếm hình ảnh', 'Search Professional Experience': 'Tìm kiếm kinh nghiệm nghề nghiệp', 'Search Programs': 'Tìm kiếm chương trình', 'Search Project Organizations': 'Tìm kiếm tổ chức dự án', 'Search Projections': 'Tìm kiếm dự đoán', 'Search Projects': 'Tìm kiếm dự án', 'Search Received/Incoming Shipments': 'Tìm kiếm lô hàng đến/nhận', 'Search Records': 'Tìm kiếm hồ sơ', 'Search Red Cross & Red Crescent National Societies': 'Tìm kiếm Hội Chữ thập đỏ và Trăng lưỡi liềm đỏ Quốc gia', 'Search Registations': 'Tìm kiếm các đăng ký', 'Search Registration Request': 'Tìm kiếm Yêu cầu Đăng ký', 'Search Report': 'Tìm kiếm báo cáo', 'Search Reports': 'Tìm kiếm Báo cáo', 'Search Request Items': 'Tìm kiếm Yêu cầu hàng hóa', 'Search Request': 'Tìm kiếm yêu cầu', 'Search Requested Skills': 'Tìm kiếm kỹ năng được đề nghị', 'Search Requests': 'Tìm kiếm đề nghị', 'Search Resources': 'Tìm kiếm các nguồn lực', 'Search Results': 'Tìm kiếm kết quả', 'Search Roles': 'Tìm kiếm vai trò', 'Search Rooms': 'Tìm kiếm phòng', 'Search Sectors': 'Tìm kiếm lĩnh vực', 'Search Sent Shipments': 'Tìm kiếm lô hàng đã gửi', 'Search Shelter Services': 'Tìm kiếm dịch vụ cư trú', 'Search Shelter Types': 'Tìm kiếm Loại Cư trú', 'Search Shipment Items': 'Tìm kiếm mặt hàng của lô hàng', 'Search Shipment/Way Bills': 'Tìm kiếm đơn hàng/hóa đơn vận chuyển', 'Search Shipped Items': 'Tìm kiếm mặt hàng được chuyển', 'Search Skill Equivalences': 'Tìm kiếm kỹ năng tương ứng', 'Search Skill Types': 'Tìm kiếm nhóm kỹ năng', 'Search Skills': 'Tìm kiếm kỹ năng', 'Search Staff & Volunteers': 'Tìm kiếm nhân viên & tình nguyện viên', 'Search Staff Assignments': 'Tìm kiếm công việc của nhân viên', 'Search Staff': 'Tìm kiếm nhân viên', 'Search Stock Adjustments': 'Tìm kiếm điều chỉnh về kho hàng', 'Search Stock Items': 'Tìm kiếm mặt hàng trong kho', 'Search Storage Location(s)': 'Tìm kiếm kho lưu trữ', 'Search Subscriptions': 'Tìm kiếm danh sách, số tiền quyên góp', 'Search Suppliers': 'Tìm kiếm nhà cung cấp', 'Search Support Requests': 'Tìm kiếm yêu cầu được hỗ trợ', 'Search Symbologies': 'Tìm kiếm biểu tượng', 'Search Tasks': 'Tìm kiếm nhiệm vụ', 'Search Teams': 'Tìm kiếm Đội/Nhóm', 'Search Theme Data': 'Tìm kiếm dữ liệu chủ đề', 'Search Themes': 'Tìm kiếm chủ đề', 'Search Tracks': 'Tìm kiếm dấu vết', 'Search Training Events': 'Tìm kiếm khóa tập huấn', 'Search Training Participants': 'Tìm kiếm học viên', 'Search Twilio SMS Inbox': 'Tìm kiếm hộp thư đến SMS Twilio', 'Search Twitter Tags': 'Tìm kiếm liên kết với Twitter', 'Search Units': 'Tìm kiếm đơn vị', 'Search Users': 'Tìm kiếm người sử dụng', 'Search Vehicle Assignments': 'Tìm kiếm việc điều động phương tiện', 'Search Volunteer Cluster Positions': 'Tìm kiếm vị trí của nhóm tình nguyện viên', 'Search Volunteer Cluster Types': 'Tìm kiếm loại hình nhóm tình nguyện viên', 'Search Volunteer Clusters': 'Tìm kiếm nhóm tình nguyện viên', 'Search Volunteer Registrations': 'Tìm kiếm Đăng ký tình nguyện viên', 'Search Volunteer Roles': 'Tìm kiếm vai trò của tình nguyện viên', 'Search Volunteers': 'Tìm kiếm tình nguyện viên', 'Search Vulnerability Aggregated Indicators': 'Tìm kiếm chỉ số theo tình trạng dễ bị tổn thương', 'Search Vulnerability Data': 'Tìm kiếm dữ liệu về tình trạng dễ bị tổn thương', 'Search Vulnerability Indicator Sources': 'Tìm kiếm nguồn chỉ số về tình trạng dễ bị tổn thương', 'Search Vulnerability Indicators': 'Tìm kiếm chỉ số về tình trạng dễ bị tổn thương', 'Search Warehouse Stock': 'Tìm kiếm Hàng trữ trong kho', 'Search Warehouses': 'Tìm kiếm Nhà kho', 'Search and Edit Group': 'Tìm và sửa thông tin nhóm', 'Search and Edit Individual': 'Tìm kiếm và chỉnh sửa cá nhân', 'Search for Activity Type': 'Tìm kiếm nhóm hoạt động', 'Search for Job': 'Tìm kiếm công việc', 'Search for Repository': 'Tìm kiếm Nơi lưu trữ', 'Search for Resource': 'Tìm kiếm nguồn lực', 'Search for a Hospital': 'Tìm kiếm bệnh viện', 'Search for a Location': 'Tìm một địa điểm', 'Search for a Person': 'Tìm kiếm theo tên', 'Search for a Project Community by name.': 'Tìm kiếm cộng đồng dự án theo tên.', 'Search for a Project by name, code, location, or description.': 'Tìm kiếm dự án theo tên, mã, địa điểm, hoặc mô tả.', 'Search for a Project by name, code, or description.': 'Tìm kiếm dự án theo tên, mã, hoặc mô tả.', 'Search for a Project': 'Tìm kiếm dự án', 'Search for a Request': 'Tìm kiếm một yêu cầu', 'Search for a Task by description.': 'Tìm kiếm nhiệm vụ theo mô tả.', 'Search for a shipment by looking for text in any field.': 'Tìm kiếm lô hàng bằng cách nhập từ khóa vào các ô.', 'Search for a shipment received between these dates': 'Tìm kiếm lô hàng đã nhận trong những ngày gần đây', 'Search for an Organization by name or acronym': 'Tìm kiếm tổ chức theo tên hoặc chữ viết tắt', 'Search for an item by Year of Manufacture.': 'Tìm kiếm mặt hàng theo năm sản xuất.', 'Search for an item by brand.': 'Tìm kiếm mặt hàng theo nhãn hàng.', 'Search for an item by catalog.': 'Tìm kiếm mặt hàng theo danh mục.', 'Search for an item by category.': 'Tìm kiếm mặt hàng theo nhóm.', 'Search for an item by its code, name, model and/or comment.': 'Tìm kiếm mặt hàng theo mã, tên, kiểu và/hoặc nhận xét.', 'Search for an item by text.': 'Tìm kiếm mặt hàng theo từ khóa.', 'Search for an order by looking for text in any field.': 'Tìm kiếm đơn đặt hàng bằng cách nhập từ khóa vào các ô.', 'Search for an order expected between these dates': 'Tìm kiếm một đơn hàng dự kiến trong những ngày gần đây', 'Search for office by organization.': 'Tìm kiếm văn phòng theo tổ chức.', 'Search for office by text.': 'Tìm kiếm văn phòng theo từ khóa.', 'Search for warehouse by organization.': 'Tìm kiếm nhà kho theo tổ chức.', 'Search for warehouse by text.': 'Tìm kiếm nhà kho theo từ khóa.', 'Search location in Geonames': 'Tìm kiếm địa điểm theo địa danh', 'Search messages': 'Tìm kiếm tin nhắn', 'Search saved searches': 'Tìm kiếm tìm kiếm được lưu', 'Search': 'Tìm kiếm', 'Secondary Server (Optional)': 'Máy chủ thứ cấp', 'Seconds must be a number between 0 and 60': 'Giây phải là số từ 0 đến 60', 'Seconds must be a number.': 'Giây phải bằng số', 'Seconds must be less than 60.': 'Giây phải nhỏ hơn 60', 'Section Details': 'Chi tiết khu vực', 'Section': 'Lĩnh vực', 'Sections that are part of this template': 'Các lĩnh vực là bộ phận của mẫu này', 'Sector Details': 'Chi tiết lĩnh vực', 'Sector added': 'Thêm Lĩnh vực', 'Sector deleted': 'Xóa Lĩnh vực', 'Sector updated': 'Cập nhật Lĩnh vực', 'Sector': 'Lĩnh vực', 'Sector(s)': 'Lĩnh vực', 'Sectors to which this Theme can apply': 'Lựa chọn Lĩnh vực phù hợp với Chủ đề này', 'Sectors': 'Lĩnh vực', 'Security Policy': 'Chính sách bảo mật', 'Security Required': 'An ninh được yêu cầu', 'Security Staff Types': 'Loại cán bộ bảo vệ', 'See All Entries': 'Xem tất cả hồ sơ', 'See a detailed description of the module on the Sahana Eden wiki': 'Xem chi tiết mô tả Modun trên Sahana Eden wiki', 'See the universally unique identifier (UUID) of this repository': 'Xem Định dạng duy nhất toàn cầu (UUID) của thư mục lưu này', 'Seen': 'Đã xem', 'Select %(location)s': 'Chọn %(location)s', 'Select %(up_to_3_locations)s to compare overall resilience': 'Chọn %(up_to_3_locations)s để so sánh tổng thể Sự phục hồi nhanh', 'Select All': 'Chọn tất cả', 'Select Existing Location': 'Lựa chọn vị trí đang có', 'Select Items from the Request': 'Chọn Hàng hóa từ Yêu cầu', 'Select Label Question': 'Chọn nhãn câu hỏi', 'Select Modules for translation': 'Lựa chọn các Module để dịch', 'Select Modules which are to be translated': 'Chọn Modun cần dịch', 'Select Numeric Questions (one or more):': 'Chọn câu hỏi về lượng (một hay nhiều hơn)', 'Select Stock from this Warehouse': 'Chọn hàng hóa lưu kho từ một Kho hàng', 'Select This Location': 'Lựa chọn vị trí này', 'Select a Country': 'Chọn nước', 'Select a commune to': 'Chọn xã đến', 'Select a label question and at least one numeric question to display the chart.': 'Chọn nhãn câu hỏi và ít nhất 1 câu hỏi về lượng để thể hiện biểu đồ', 'Select a location': 'Lựa chọn Quốc gia', 'Select a question from the list': 'Chọn một câu hỏi trong danh sách', 'Select all modules': 'Chọn mọi Modun', 'Select all that apply': 'Chọn tất cả các áp dụng trên', 'Select an Organization to see a list of offices': 'Chọn một Tổ chức để xem danh sách văn phòng', 'Select an existing bin': 'Lựa chọn ngăn có sẵn', 'Select an office': 'Chọn một văn phòng', 'Select any one option that apply': 'Lựa chọn bất cứ một lựa chọn được áp dụng', 'Select data type': 'Chọn loại dữ liệu', 'Select from Registry': 'Chọn từ danh sách đã đăng ký', 'Select language code': 'Chọn mã ngôn ngữ', 'Select one or more option(s) that apply': 'Lựa một hoặc nhiều lựa chọn được áp dụng', 'Select the default site.': 'Lựa chọn trang mặc định', 'Select the language file': 'Chọn tệp ngôn ngữ', 'Select the overlays for Assessments and Activities relating to each Need to identify the gap.': 'Lựa chọn lớp dữ liệu phủ cho Đánh giá và Hoạt động liên quan đến mỗi nhu cầu để xác định khoảng thiếu hụt.', 'Select the person assigned to this role for this project.': 'Chọn người được bổ nhiệm cho vai trò này trong dự án', 'Select the required modules': 'Chọn Modun cần thiết', 'Select': 'Chọn', 'Selected Questions for all Completed Assessment Forms': 'Câu hỏi được chọn cho tất cả các mẫu Đánh giá đã hoàn thành', 'Selects what type of gateway to use for outbound SMS': 'Chọn loại cổng để sử dụng tin nhắn gửi ra', 'Send Alerts using Email &/or SMS': 'Gửi Cảnh báo sử dụng thư điện từ &/hay SMS', 'Send Commitment': 'Gửi Cam kết', 'Send Dispatch Update': 'Gửi cập nhật ', 'Send Message': 'Gửi tin', 'Send New Shipment': 'Gửi Lô hàng Mới', 'Send Notification': 'Gửi thông báo', 'Send Shipment': 'Gửi Lô hàng', 'Send Task Notification': 'Gửi Thông báo Nhiệm vụ', 'Send a message to this person': 'Gửi tin nhắn cho người này', 'Send a message to this team': 'Gửi tin nhắn cho đội này', 'Send batch': 'Gửi hàng loạt', 'Send from %s': 'Gửi từ %s', 'Send message': 'Gửi tin nhắn', 'Send new message': 'Gửi tin nhắn mới', 'Send': 'Gửi', 'Sender': 'Người gửi', 'Senders': 'Người gửi', 'Senior (50+)': 'Người già (50+)', 'Senior Officer': 'Chuyên viên cao cấp', 'Sensitivity': 'Mức độ nhạy cảm', 'Sent By Person': 'Được gửi bởi Ai', 'Sent By': 'Được gửi bởi', 'Sent Shipment Details': 'Chi tiết lô hàng đã gửi', 'Sent Shipment canceled and items returned to Warehouse': 'Hủy lô hàng đã gửi và trả lại hàng hóa về kho Hàng', 'Sent Shipment canceled': 'Hủy lô hàng đã gửi', 'Sent Shipment has returned, indicate how many items will be returned to Warehouse.': 'Lô hàng được gửi đã được trả lại, nêu rõ bao nhiêu mặt hàng sẽ được trả lại kho hàng', 'Sent Shipment updated': 'Cập nhật Lô hàng đã gửi', 'Sent Shipments': 'Hàng chuyển', 'Sent date': 'Thời điểm gửi', 'Sent': 'đã được gửi', 'Separated': 'Ly thân', 'Serial Number': 'Số se ri', 'Series details missing': 'Chi tiết Se ri đang mất tích', 'Series': 'Se ri', 'Server': 'Máy chủ', 'Service Record': 'Hồ sơ hoạt động', 'Service or Facility': 'Dịch vụ hay Bộ phận', 'Service profile added': 'Đã thêm thông tin dịch vụ', 'Services Available': 'Các dịch vụ đang triển khai', 'Services': 'Dịch vụ', 'Set Base Facility/Site': 'Thiết lập Bộ phận/Địa bàn cơ bản', 'Set By': 'Thiết lập bởi', 'Set True to allow editing this level of the location hierarchy by users who are not MapAdmins.': 'Thiết lập Đúng để cho phép chỉnh sửa mức này của hệ thống hành chính địa điểm bởi người sử dụng không thuộc quản trị bản đồ', 'Setting Details': 'Chi tiết cài đặt', 'Setting added': 'Thêm cài đặt', 'Setting deleted': 'Xóa cài đặt', 'Settings were reset because authenticating with Twitter failed': 'Cài đặt được làm lại vì sự xác minh với Twitter bị lỗi', 'Settings which can be configured through the web interface are available here.': 'Cài đặt có thể được cấu hình thông quan tương tác với trang web có thể làm ở đây.', 'Settings': 'Các Cài đặt', 'Sex (Count)': 'Giới tính (Số lượng)', 'Sex': 'Giới tính', 'Sexual and Reproductive Health': 'Sức khỏe sinh sản và Sức khỏe tình dục', 'Share a common Marker (unless over-ridden at the Feature level)': 'Chia sẻ Đèn hiệu chung(nếu không vượt mức tính năng)', 'Shelter Registry': 'Đăng ký tạm trú', 'Shelter Repair Kit': 'Bộ dụng cụ sửa nhà', 'Shelter Service Details': 'Chi tiết dịch vụ cư trú', 'Shelter Services': 'Dịch vụ cư trú', 'Shelter added': 'Đã thêm Thông tin cư trú', 'Shelter deleted': 'Đã xóa nơi cư trú', 'Shelter': 'Nhà', 'Shelters': 'Địa điểm cư trú', 'Shipment Created': 'Tạo Lô hàng', 'Shipment Item Details': 'Chi tiết hàng hóa trong lô hàng', 'Shipment Item deleted': 'Xóa hàng hóa trong lô hàng', 'Shipment Item updated': 'Cập nhật hàng hóa trong lô hàng', 'Shipment Items Received': 'Hàng hóa trong lô hàng đã nhận được', 'Shipment Items sent from Warehouse': 'Hàng hóa trong lô hàng được gửi từ Kho hàng', 'Shipment Items': 'Hàng hóa trong lô hàng', 'Shipment Type': 'Loại Lô hàng', 'Shipment received': 'Lô hàng đã nhận được', 'Shipment to Receive': 'Lô hàng sẽ nhận được', 'Shipment to Send': 'Lô hàng sẽ gửi', 'Shipment': 'Lô hàng', 'Shipment/Way Bills': 'Đơn hàng/Hóa đơn vận chuyển', 'Shipment<>Item Relation added': 'Đã thêm đơn hàng <>hàng hóa liên quan', 'Shipment<>Item Relation deleted': 'Đã xóa dơn hàng <>Hàng hóa liên quan', 'Shipment<>Item Relation updated': 'Đã cập nhật Đơn hàng<>hàng hóa liên qua', 'Shipment<>Item Relations Details': 'Đơn hàng<>Chi tiết hàng hóa liên quan', 'Shipments': 'Các loại lô hàng', 'Shipping Organization': 'Tổ chức hàng hải', 'Shooting': 'Bắn', 'Short Description': 'Miêu tả ngắn gọn', 'Short Text': 'Đoạn văn bản ngắn', 'Short Title / ID': 'Tên viết tắt/ Mã dự án', 'Short-term': 'Ngắn hạn', 'Show Details': 'Hiển thị chi tiết', 'Show %(number)s entries': 'Hiển thị %(number)s hồ sơ', 'Show less': 'Thể hiện ít hơn', 'Show more': 'Thể hiện nhiều hơn', 'Show on Map': 'Thể hiện trên bản đồ', 'Show on map': 'Hiển thị trên bản đồ', 'Show totals': 'Hiển thị tổng', 'Show': 'Hiển thị', 'Showing 0 to 0 of 0 entries': 'Hiển thị 0 tới 0 của 0 hồ sơ', 'Showing _START_ to _END_ of _TOTAL_ entries': 'Hiển thị _START_ tới _END_ của _TOTAL_ hồ sơ', 'Showing latest entries first': 'Hiển thị hồ sơ mới nhất trước', 'Signature / Stamp': 'Chữ ký/dấu', 'Signature': 'Chữ ký', 'Simple Search': 'Tìm kiếm cơ bản', 'Single PDF File': 'File PDF', 'Single': 'Độc thân', 'Site Address': 'Địa chỉ trang web ', 'Site Administration': 'Quản trị Site', 'Site Manager': 'Quản trị website ', 'Site Name': 'Tên địa điểm', 'Site updated': 'Đã cập nhật site', 'Site': 'Địa điểm', 'Sitemap': 'Bản đồ địa điểm', 'Sites': 'Trang web', 'Situation Awareness & Geospatial Analysis': 'Nhận biết tình huống và phân tích tọa độ địa lý', 'Situation': 'Tình hình', 'Skeleton Example': 'Ví dụ khung', 'Sketch': 'Phác thảo', 'Skill Catalog': 'Danh mục kỹ năng', 'Skill Details': 'Chi tiết kỹ năng', 'Skill Equivalence Details': 'Chi tiết Kỹ năng tương ứng', 'Skill Equivalence added': 'Thêm Kỹ năng tương ứng', 'Skill Equivalence deleted': 'Xóa Kỹ năng tương ứng', 'Skill Equivalence updated': 'Cập nhật Kỹ năng tương ứng', 'Skill Equivalence': 'Kỹ năng tương ứng', 'Skill Equivalences': 'các Kỹ năng tương ứng', 'Skill Type Catalog': 'Danh mục Loại Kỹ năng', 'Skill Type added': 'Thêm Loại Kỹ năng', 'Skill Type deleted': 'Xóa Loại Kỹ năng', 'Skill Type updated': 'Cập nhật Loại Kỹ năng', 'Skill Type': 'Loại Kỹ năng', 'Skill added to Request': 'Thêm Kỹ năng vào Yêu cầu', 'Skill added': 'Thêm Kỹ năng', 'Skill deleted': 'Xóa kỹ năng', 'Skill removed from Request': 'Bỏ kỹ năng khỏi yêu cầu', 'Skill removed': 'Bỏ kỹ năng', 'Skill updated': 'Cập nhật kỹ năng', 'Skill': 'Kỹ năng', 'Skills': 'Kỹ năng', 'Smoke': 'Khói', 'Snapshot': 'Chụp ảnh', 'Snow Fall': 'Tuyết rơi', 'Snow Squall': 'Tiếng tuyết rơi', 'Social Impact & Resilience': 'Khả năng phục hồi và Tác động xã hội', 'Social Inclusion & Diversity': 'Đa dạng hóa/ Tăng cường hòa nhập xã hội', 'Social Insurance Number': 'Số sổ BHXH', 'Social Insurance': 'Bảo hiểm xã hội', 'Social Mobilization': 'Huy động xã hội', 'Solid Waste Management': 'Quản lý chất thải rắn', 'Solution added': 'Đã thêm giải pháp', 'Solution deleted': 'Đã xóa giải pháp', 'Solution updated': 'Đã cập nhật giải pháp', 'Sorry - the server has a problem, please try again later.': 'Xin lỗi - Máy chủ có sự cố, vui lòng thử lại sau.', 'Sorry location %(location)s appears to be outside the area of parent %(parent)s.': 'Xin lỗi địa điểm %(location)s có vẻ như ngoài vùng của lớp trên %(parent)s', 'Sorry location %(location)s appears to be outside the area supported by this deployment.': 'Xin lỗi địa điểm %(location)s có vẻ như ngoài vùng hỗ trợ bởi đợt triển khai này', 'Sorry location appears to be outside the area of parent %(parent)s.': 'Xin lỗi địa điểm có vẻ như ngoài vùng của lớp trên %(parent)s', 'Sorry location appears to be outside the area supported by this deployment.': 'Xin lỗi địa điểm có vẻ như ngoài vùng hỗ trợ bởi đợt triển khai này', 'Sorry, I could not understand your request': 'Xin lỗi, tôi không thể hiểu yêu cầu của bạn', 'Sorry, only users with the MapAdmin role are allowed to edit these locations': 'Xin lỗi, chỉ người sử dụng có chức năng quản trị bản đồ được phép chỉnh sửa các địa điểm này', 'Sorry, something went wrong.': 'Xin lỗi, có sự cố.', 'Sorry, that page is forbidden for some reason.': 'Xin lỗi, vì một số lý do trang đó bị cấm.', 'Sorry, that service is temporary unavailable.': 'Xin lỗi, dịch vụ đó tạm thời không có', 'Sorry, there are no addresses to display': 'Xin lỗi, Không có địa chỉ để hiện thị', 'Source Type': 'Loại nguồn', 'Source not specified!': 'Nguồn không xác định', 'Source': 'Nguồn', 'Space Debris': 'Rác vũ trụ', 'Spanish': 'Người Tây Ban Nha', 'Special Ice': 'Băng tuyết đặc biệt', 'Special Marine': 'Thủy quân đặc biệt', 'Special needs': 'Nhu cầu đặc biệt', 'Specialized Hospital': 'Bệnh viện chuyên khoa', 'Specific Area (e.g. Building/Room) within the Location that this Person/Group is seen.': 'Khu vực cụ thể (ví dụ Tòa nhà/Phòng) trong khu vực mà người/Nhóm đã xem', 'Specific locations need to have a parent of level': 'Các địa điểm cụ thể cần có lớp trên', 'Specify a descriptive title for the image.': 'Chỉ định một tiêu đề mô tả cho ảnh', 'Spherical Mercator (900913) is needed to use OpenStreetMap/Google/Bing base layers.': 'Spherical Mercator (900913) cần thiết để sử dụng OpenStreetMap/Google/Bing như là lớp bản đồ cơ sở.', 'Spreadsheet': 'Bảng tính', 'Squall': 'tiếng kêu', 'Staff & Volunteers (Combined)': 'Cán bộ & TNV', 'Staff & Volunteers': 'Cán bộ & Tình nguyện viên', 'Staff Assigned': 'Cán bộ được bộ nhiệm', 'Staff Assignment Details': 'Chi tiết bổ nhiệm cán bộ', 'Staff Assignment removed': 'Bỏ bổ nhiệm cán bộ', 'Staff Assignment updated': 'Cập nhật bổ nhiệm cán bộ', 'Staff Assignments': 'Các bổ nhiệm cán bộ', 'Staff ID': 'Định danh cán bộ', 'Staff Level': 'Ngạch công chức', 'Staff Management': 'Quản lý cán bộ', 'Staff Member Details updated': 'Cập nhật chi tiết cán bộ', 'Staff Member Details': 'Chi tiết cán bộ', 'Staff Member deleted': 'Xóa Cán bộ', 'Staff Record': 'Hồ sơ cán bộ', 'Staff Report': 'Cán bộ', 'Staff Type Details': 'Chi tiết bộ phận nhân viên', 'Staff deleted': 'Xóa tên nhân viên', 'Staff member added': 'Thêm cán bộ', 'Staff with Contracts Expiring in the next Month': 'Cán bộ hết hạn hợp đồng tháng tới', 'Staff': 'Cán bộ', 'Staff/Volunteer Record': 'Hồ sơ Cán bộ/Tình nguyện viên', 'Staff/Volunteer': 'Cán bộ/Tình nguyện viên', 'Start Date': 'Ngày bắt đầu', 'Start date': 'Ngày bắt đầu', 'Start of Period': 'Khởi đầu chu kỳ', 'Start': 'Bắt đầu', 'State / Province (Count)': 'Tỉnh / Thành phố (Số lượng)', 'State / Province': 'Tỉnh', 'State Management Education': 'Quản lý nhà nước', 'Station Parameters': 'Thông số trạm', 'Statistics Parameter': 'Chỉ số thống kê', 'Statistics': 'Thống kê', 'Stats Group': 'Nhóm thống kê', 'Status Details': 'Chi tiết Tình trạng', 'Status Report': 'Báo cáo tình trạng ', 'Status Updated': 'Cập nhật Tình trạng', 'Status added': 'Thêm Tình trạng', 'Status deleted': 'Xóa Tình trạng', 'Status of adjustment': 'Điều chỉnh Tình trạng', 'Status of operations of the emergency department of this hospital.': 'Tình trạng hoạt động của phòng cấp cứu tại bệnh viện này', 'Status of security procedures/access restrictions in the hospital.': 'Trạng thái của các giới hạn thủ tục/truy nhập an ninh trong bệnh viện', 'Status of the operating rooms of this hospital.': 'Trạng thái các phòng bệnh trong bệnh viện này', 'Status updated': 'Cập nhật Tình trạng', 'Status': 'Tình trạng', 'Statuses': 'Các tình trạng', 'Stock Adjustment Details': 'Chi tiết điều chỉnh hàng lưu kho', 'Stock Adjustments': 'Điều chỉnh Hàng lưu kho', 'Stock Expires %(date)s': 'Hàng lưu kho hết hạn %(date)s', 'Stock added to Warehouse': 'Hàng hóa lưu kho được thêm vào Kho hàng', 'Stock in Warehouse': 'Hàng lưu kho', 'Stock removed from Warehouse': 'Hàng lưu kho được lấy ra khỏi Kho hàng', 'Stock': 'Hàng lưu kho', 'Stockpiling, Prepositioning of Supplies': 'Dự trữ hàng hóa', 'Stocks and relief items.': 'Kho hàng và hàng cứu trợ.', 'Stolen': 'Bị mất cắp', 'Store spreadsheets in the Eden database': 'Lưu trữ bảng tính trên cơ sở dữ liệu của Eden', 'Storm Force Wind': 'Sức mạnh Gió bão', 'Storm Surge': 'Bão biển gây nước dâng', 'Stowaway': 'Đi tàu lậu', 'Strategy': 'Chiến lược', 'Street Address': 'Địa chỉ', 'Street View': 'Xem kiểu đường phố', 'Strengthening Livelihoods': 'Cải thiện nguồn sinh kế', 'Strong Wind': 'Gió bão', 'Strong': 'Mạnh', 'Structural Safety': 'An toàn kết cấu trong xây dựng', 'Style Field': 'Kiểu trường', 'Style Values': 'Kiểu giá trị', 'Style': 'Kiểu', 'Subject': 'Tiêu đề', 'Submission successful - please wait': 'Gửi thành công - vui lòng đợi', 'Submit Data': 'Gửi dữ liệu', 'Submit New (full form)': 'Gửi mới (mẫu đầy đủ)', 'Submit New (triage)': 'Gửi mới (cho nhóm 3 người)', 'Submit New': 'Gửi mới', 'Submit all': 'Gửi tất cả', 'Submit data to the region': 'Gửi dữ liệu cho vùng', 'Submit more': 'Gửi thêm', 'Submit online': 'Gửi qua mạng', 'Submit': 'Gửi', 'Submitted by': 'Được gửi bởi', 'Subscription deleted': 'Đã xóa đăng ký', 'Subscriptions': 'Quyên góp', 'Subsistence Cost': 'Mức sống tối thiểu', 'Successfully registered at the repository.': 'Đã đăng ký thành công vào hệ thống', 'Suggest not changing this field unless you know what you are doing.': 'Khuyến nghị bạn không thay đổi trường này khi chưa chắc chắn', 'Sum': 'Tổng', 'Summary Details': 'Thông tin tổng hợp', 'Summary by Question Type - (The fewer text questions the better the analysis can be)': 'Tổng hợp theo loại câu hỏi - (Phân tích dễ dàng hơn nếu có ít câu hỏi bằng chữ)', <|fim▁hole|>'Summary of Incoming Supplies': 'Tổng hợp mặt hàng đang đến', 'Summary of Releases': 'Tổng hợp bản tin báo chí', 'Summary': 'Tổng hợp', 'Supplier Details': 'Thông tin nhà cung cấp', 'Supplier added': 'Nhà cung cấp đã được thêm', 'Supplier deleted': 'Nhà cung cấp đã được xóa', 'Supplier updated': 'Nhà cung cấp đã được cập nhật', 'Supplier': 'Nhà cung cấp', 'Supplier/Donor': 'Nhà cung cấp/Nhà tài trợ', 'Suppliers': 'Nhà cung cấp', 'Supply Chain Management': 'Quản lý dây chuyền cung cấp', 'Support Request': 'Hỗ trợ yêu cầu', 'Support Requests': 'Yêu cầu hỗ trợ', 'Support': 'Trợ giúp', 'Surplus': 'Thặng dư', 'Survey Answer Details': 'Chi tiết trả lời câu hỏi khảo sát', 'Survey Answer added': 'Đã thêm trả lời khảo sát', 'Survey Name': 'Tên khảo sát', 'Survey Question Display Name': 'Tên trên bảng câu hỏi khảo sát', 'Survey Question updated': 'cập nhật câu hỏi khảo sát', 'Survey Section added': 'Đã thêm khu vực khảo sát', 'Survey Section updated': 'Cập nhật khu vực khảo sát', 'Survey Series added': 'Đã thêm chuỗi khảo sát', 'Survey Series deleted': 'Đã xóa chuỗi khảo sát', 'Survey Series updated': 'Đã cập nhật serie khảo sát', 'Survey Series': 'Chuỗi khảo sát', 'Survey Template added': 'Thêm mẫu Khảo sát', 'Survey Templates': 'Mẫu khảo sát', 'Swiss Francs': 'Frăng Thụy Sỹ', 'Switch to 3D': 'Chuyển sang 3D', 'Symbologies': 'Các biểu tượng', 'Symbology Details': 'Chi tiết biểu tượng', 'Symbology added': 'Thêm biểu tượng', 'Symbology deleted': 'Xóa biểu tượng', 'Symbology removed from Layer': 'Bỏ biểu tượng khỏi lớp', 'Symbology updated': 'Cập nhật biểu tượng', 'Symbology': 'Biểu tượng', 'Sync Conflicts': 'Xung đột khi đồng bộ hóa', 'Sync Now': 'Đồng bộ hóa ngay bây giờ', 'Sync Partners': 'Đối tác đồng bộ', 'Sync Schedule': 'Lịch đồng bộ', 'Sync process already started on ': 'Quá trinh đồng bộ đã bắt đầu lúc ', 'Synchronization Job': 'Chức năng Đồng bộ hóa', 'Synchronization Log': 'Danh mục Đồng bộ hóa', 'Synchronization Schedule': 'Kế hoạch Đồng bộ hóa', 'Synchronization Settings': 'Các cài đặt Đồng bộ hóa', 'Synchronization allows you to share data that you have with others and update your own database with latest data from other peers. This page provides you with information about how to use the synchronization features of Sahana Eden': 'Đồng bộ hóa cho phép bạn chia sẻ dữ liệu và cập nhật cơ sở dữ liệu với các máy khác.Trang này hường dẫn bạn cách sử dụng các tính năng đồng bộ của Sahana Eden', 'Synchronization currently active - refresh page to update status.': 'Đồng bộ hóa đang chạy - làm mới trang để cập nhật tình trạng', 'Synchronization mode': 'Chế độ đồng bộ hóa', 'Synchronization not configured.': 'Chưa thiết đặt đồng bộ hóa', 'Synchronization settings updated': 'Các cài đặt đồng bộ hóa được cập nhật', 'Synchronization': 'Đồng bộ hóa', 'Syncronization History': 'Lịch sử đồng bộ hóa', 'System keeps track of all Volunteers working in the disaster region. It captures not only the places where they are active, but also captures information on the range of services they are providing in each area.': 'Hệ thống theo sát quá trình làm việc của các tình nguyện viên trong khu vực thiên tai.Hệ thống nắm bắt không chỉ vị trí hoạt động mà còn cả thông tin về các dịch vụ đang cung cấp trong mỗi khu vực', 'THOUSAND_SEPARATOR': 'Định dạng hàng nghìn', 'TMS Layer': 'Lớp TMS', 'TO': 'TỚI', 'Table Permissions': 'Quyền truy cập bảng', 'Table name of the resource to synchronize': 'Bảng tên nguồn lực để đồng bộ hóa', 'Table': 'Bảng thông tin', 'Tablename': 'Tên bảng', 'Tags': 'Các bảng tên', 'Task Details': 'Các chi tiết nhiệm vụ', 'Task List': 'Danh sách Nhiệm vụ', 'Task added': 'Nhiệm vụ được thêm vào', 'Task deleted': 'Nhiệm vụ đã xóa', 'Task updated': 'Nhiệm vụ được cập nhật', 'Task': 'Nhiệm vụ', 'Tasks': 'Nhiệm vụ', 'Team Description': 'Mô tả về Đội/Nhóm', 'Team Details': 'Thông tin về Đội/Nhóm', 'Team ID': 'Mã Đội/Nhóm', 'Team Leader': 'Đội trưởng', 'Team Members': 'Thành viên Đội/Nhóm', 'Team Name': 'Tên Đội/Nhóm', 'Team Type': 'Loại hình Đội/Nhóm', 'Team added': 'Đội/ Nhóm đã thêm', 'Team deleted': 'Đội/ Nhóm đã xóa', 'Team updated': 'Đội/ Nhóm đã cập nhật', 'Team': 'Đội', 'Teams': 'Đội/Nhóm', 'Technical Disaster': 'Thảm họa liên quan đến công nghệ', 'Telephony': 'Đường điện thoại', 'Tells GeoServer to do MetaTiling which reduces the number of duplicate labels.': 'Yêu cầu GeoServer làm MetaTiling để giảm số nhãn bị lặp', 'Template Name': 'Tên Biểu mẫu', 'Template Section Details': 'Chi tiết Mục Biểu mẫu', 'Template Section added': 'Mục Biểu mẫu được thêm', 'Template Section deleted': 'Mục Biểu mẫu đã xóa', 'Template Section updated': 'Mục Biểu mẫu được cập nhật', 'Template Sections': 'Các Mục Biểu mẫu', 'Template Summary': 'Tóm tắt Biểu mẫu', 'Template': 'Biểu mẫu', 'Templates': 'Biểu mẫu', 'Term for the fifth-level within-country administrative division (e.g. a voting or postcode subdivision). This level is not often used.': 'Khái niệm về sự phân chia hành chính trong nước cấp thứ năm (ví dụ như sự phân chia bầu cử hay mã bưu điện). Mức này thường ít được dùng', 'Term for the fourth-level within-country administrative division (e.g. Village, Neighborhood or Precinct).': 'Khái niệm về sự phân chia hành chính cấp thứ tư bên trong quốc gia (ví dụ như làng, hàng xóm hay bản)', 'Term for the primary within-country administrative division (e.g. State or Province).': 'Khái niệm về sự phân chia hành chính trong nước cấp một (ví dụ như Bang hay Tỉnh)', 'Term for the secondary within-country administrative division (e.g. District or County).': 'Khái niệm về sự phân chia hành chính trong nước cấp thứ hai (ví dụ như quận huyện hay thị xã)', 'Term for the third-level within-country administrative division (e.g. City or Town).': 'Khái niệm về sự phân chia hành chính trong nước cấp thứ ba (ví dụ như thành phố hay thị trấn)', 'Term': 'Loại hợp đồng', 'Terms of Service:': 'Điều khoản Dịch vụ:', 'Terrorism': 'Khủng bố', 'Tertiary Server (Optional)': 'Máy chủ Cấp ba (Tùy chọn)', 'Text Color for Text blocks': 'Màu vản bản cho khối văn bản', 'Text': 'Từ khóa', 'Thank you for your approval': 'Cảm ơn bạn vì sự phê duyệt', 'Thank you, the submission%(br)shas been declined': 'Cảm ơn bạn, lời đề nghị %(br)s đã bị từ chối', 'Thanks for your assistance': 'Cám ơn sự hỗ trợ của bạn', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1 == db.table2.field2" results in a SQL JOIN.': '"Câu hỏi" là một điều kiện có dạng "db.bảng1.trường1==\'giá trị\'". Bất kỳ cái gì có dạng "db.bảng1.trường1 == db.bảng2.trường2" đều có kết quả là một SQL THAM GIA.', 'The Area which this Site is located within.': 'Khu vực có chứa Địa điểm này', 'The Assessment Module stores assessment templates and allows responses to assessments for specific events to be collected and analyzed': 'Mô đun Khảo sát Đánh giá chứa các biểu mẫu khảo sát đánh giá và cho phép thu thập và phân tích các phản hồi đối với khảo sát đánh giá cho các sự kiện cụ thể', 'The Author of this Document (optional)': 'Tác giá của Tài liệu này (tùy chọn)', 'The Bin in which the Item is being stored (optional).': 'Ngăn/ Khu vực chứa hàng (tùy chọn)', 'The Current Location of the Person/Group, which can be general (for Reporting) or precise (for displaying on a Map). Enter a few characters to search from available locations.': 'Địa điểm hiện tại của Người/ Nhóm, có thể là chung chung (dùng để Báo cáo) hoặc chính xác (dùng để thể hiện trên Bản đồ). Nhập các ký tự để tìm kiếm từ các địa điểm hiện có.', 'The Email Address to which approval requests are sent (normally this would be a Group mail rather than an individual). If the field is blank then requests are approved automatically if the domain matches.': 'Địa chỉ thư điện tử để gửi các yêu cầu phê duyệt (thông thường địa chỉ này là một nhóm các địa chỉ chứ không phải là các địa chỉ đơn lẻ). Nếu trường này bị bỏ trống thì các yêu cầu sẽ được tự động chấp thuận nếu miền phù hợp.', 'The Incident Reporting System allows the General Public to Report Incidents & have these Tracked.': 'Hệ thống Báo cáo Sự kiện cho phép ', 'The Location the Person has come from, which can be general (for Reporting) or precise (for displaying on a Map). Enter a few characters to search from available locations.': 'Địa điểm xuất phát của Người, có thể chung chung (dùng cho Báo cáo) hay chính xác (dùng để thể hiện trên Bản đồ). Nhập một số ký tự để tìm kiếm từ các địa điểm đã có.', 'The Location the Person is going to, which can be general (for Reporting) or precise (for displaying on a Map). Enter a few characters to search from available locations.': 'Địa điểm mà Người chuẩn bị đến, có thể là chung chung (dùng cho Báo cáo) hay chính xác (dùng để thể hiện trên Bản đồ). Nhập một số ký tự để tìm kiếm từ các địa điểm đã có.', 'The Media Library provides a catalog of digital media.': 'Thư viện Đa phương tiện cung cấp một danh mục các phương tiện số.', 'The Messaging Module is the main communications hub of the Sahana system. It is used to send alerts and/or messages using SMS & Email to various groups and individuals before, during and after a disaster.': 'Chức năng nhắn tin là trung tâm thông tin chính của hệ thống Sahana. Chức năng này được sử dụng để gửi cảnh báo và/ hoặc tin nhắn dạng SMS và email tới các nhóm và cá nhân trước, trong và sau thảm họa.', 'The Organization Registry keeps track of all the relief organizations working in the area.': 'Cơ quan đăng ký Tổ chức theo dõi tất cả các tổ chức cứu trợ đang hoạt động trong khu vực.', 'The Organization this record is associated with.': 'Tổ chức được ghi liên kết với.', 'The Role this person plays within this hospital.': 'Vai trò của người này trong bệnh viện', 'The Tracking Number %s is already used by %s.': 'Số Theo dõi %s đã được sử dụng bởi %s.', 'The URL for the GetCapabilities page of a Web Map Service (WMS) whose layers you want available via the Browser panel on the Map.': 'URL cho trang GetCapabilities của một Dịch vụ Bản đồ Mạng (WMS) có các lớp mà bạn muốn có thông qua bảng Trình duyệt trên Bản đồ.', 'The URL of your web gateway without the post parameters': 'URL của cổng mạng của bạn mà không có các thông số điện tín', 'The URL to access the service.': 'URL để truy cập dịch vụ.', 'The answers are missing': 'Chưa có các câu trả lời', 'The area is': 'Khu vực là', 'The attribute which is used for the title of popups.': 'Thuộc tính được sử dụng cho tiêu đề của các cửa sổ tự động hiển thị.', 'The attribute within the KML which is used for the title of popups.': 'Thuộc tính trong KML được sử dụng cho tiêu đề của các cửa sổ tự động hiển thị.', 'The attribute(s) within the KML which are used for the body of popups. (Use a space between attributes)': '(Các) thuộc tính trong KML được sử dụng cho phần nội dung của các cửa sổ tự động hiển thị. (Sử dụng dấu cách giữa các thuộc tính)', 'The body height (crown to heel) in cm.': 'Chiều cao của phần thân (từ đầu đến chân) tính theo đơn vị cm.', 'The contact person for this organization.': 'Người chịu trách nhiệm liên lạc cho tổ chức này', 'The facility where this position is based.': 'Bộ phận mà vị trí này trực thuộc', 'The first or only name of the person (mandatory).': 'Tên (bắt buộc phải điền).', 'The following %s have been added': '%s dưới đây đã được thêm vào', 'The following %s have been updated': '%s dưới đây đã được cập nhật', 'The form of the URL is http://your/web/map/service?service=WMS&request=GetCapabilities where your/web/map/service stands for the URL path to the WMS.': 'Dạng URL là http://your/web/map/service?service=WMS&request=GetCapabilities where your/web/map/service stands for the URL path to the WMS.', 'The hospital this record is associated with.': 'Bệnh viện lưu hồ sơ này', 'The language you wish the site to be displayed in.': 'Ngôn ngữ bạn muốn đê hiển thị trên trang web', 'The length is': 'Chiều dài là', 'The list of Brands are maintained by the Administrators.': 'Danh sách các Chi nhánh do Những người quản lý giữ.', 'The list of Catalogs are maintained by the Administrators.': 'Danh sách các Danh mục do Những người quản lý giữ.', 'The list of Item categories are maintained by the Administrators.': 'Danh sách category hàng hóa được quản trị viên quản lý', 'The map will be displayed initially with this latitude at the center.': 'Bản đồ sẽ được thể hiện đầu tiên với vĩ độ này tại địa điểm trung tâm.', 'The map will be displayed initially with this longitude at the center.': 'Bản đồ sẽ được thể hiện đầu tiên với kinh độ này tại địa điểm trung tâm.', 'The minimum number of features to form a cluster.': 'Các đặc điểm tối thiểu để hình thành một nhóm.', 'The name to be used when calling for or directly addressing the person (optional).': 'Tên được sử dụng khi gọi người này (tùy chọn).', 'The number geographical units that may be part of the aggregation': 'Số đơn vị địa lý có thể là một phần của tổ hợp', 'The number of Units of Measure of the Alternative Items which is equal to One Unit of Measure of the Item': 'Số Đơn vị Đo của Các mặt hàng thay thế bằng với Một Đơn vị Đo của Mặt hàng đó', 'The number of aggregated records': 'Số bản lưu đã được tổng hợp', 'The number of pixels apart that features need to be before they are clustered.': 'Số điểm ảnh ngoài mà các đặc điểm cần trước khi được nhóm', 'The number of tiles around the visible map to download. Zero means that the 1st page loads faster, higher numbers mean subsequent panning is faster.': 'Số lớp để tải về quanh bản đồ được thể hiện. Không có nghĩa là trang đầu tiên tải nhanh hơn, các con số cao hơn nghĩa là việc quét sau nhanh hơn.', 'The person reporting about the missing person.': 'Người báo cáo về người mất tích', 'The post variable containing the phone number': 'Vị trí có thể thay đổi đang chứa số điện thoại', 'The post variable on the URL used for sending messages': 'Vị trí có thể thay đổi trên URL được dùng để gửi tin nhắn', 'The post variables other than the ones containing the message and the phone number': 'Vị trí có thể thay đổi khác với các vị trí đang chứa các tin nhắn và số điện thoại', 'The serial port at which the modem is connected - /dev/ttyUSB0, etc on linux and com1, com2, etc on Windows': 'Chuỗi cổng kết nối mô đem - /dev/ttyUSB0, v.v. trên linux và com1, com2, v.v. trên Windows', 'The server did not receive a timely response from another server that it was accessing to fill the request by the browser.': 'Máy chủ không nhận được một phản hồi kịp thời từ một máy chủ khác khi đang truy cập để hoàn tất yêu cầu bằng bộ trình duyệt.', 'The server received an incorrect response from another server that it was accessing to fill the request by the browser.': 'Máy chủ đã nhận được một phản hồi sai từ một máy chủ khác khi đang truy cập để hoàn tất yêu cầu bằng bộ trình duyệt.', 'The simple policy allows anonymous users to Read & registered users to Edit. The full security policy allows the administrator to set permissions on individual tables or records - see models/zzz.py.': 'Các chính sách đơn giản cho phép người dùng ẩn danh đọc và đăng ký để chỉnh sửa. Các chính sách bảo mật đầy đủ cho phép quản trị viên thiết lập phân quyền trên các bảng cá nhân hay - xem mô hình / zzz.py.', 'The staff responsibile for Facilities can make Requests for assistance. Commitments can be made against these Requests however the requests remain open until the requestor confirms that the request is complete.': 'Cán bộ chịu trách nhiệm về Các cơ sở có thể đưa ra Yêu cầu trợ giúp. Các cam kết có thể được đưa ra đối với những Yêu cầu này tuy nhiên các yêu cầu này phải để mở cho đến khi người yêu cầu xác nhận yêu cầu đã hoàn tất.', 'The synchronization module allows the synchronization of data resources between Sahana Eden instances.': 'Mô đun đồng bộ hóa cho phép đồng bộ hóa nguồn dữ liệu giữa các phiên bản Sahana Eden.', 'The system supports 2 projections by default:': 'Hệ thống hỗ trợ 2 dự thảo bởi chế độ mặc định:', 'The token associated with this application on': 'Mã thông báo liên quan đến ứng dụng này trên', 'The unique identifier which identifies this instance to other instances.': 'Yếu tố khác biệt phân biệt lần này với các lần khác', 'The uploaded Form is unreadable, please do manual data entry.': 'Mẫu được tải không thể đọc được, vui lòng nhập dữ liệu thủ công', 'The weight in kg.': 'Trọng lượng tính theo đơn vị kg.', 'Theme Data deleted': 'Dữ liệu Chủ đề đã xóa', 'Theme Data updated': 'Dữ liệu Chủ đề đã cập nhật', 'Theme Data': 'Dữ liệu Chủ đề', 'Theme Details': 'Chi tiết Chủ đề', 'Theme Layer': 'Lớp Chủ đề', 'Theme Sectors': 'Lĩnh vực của Chủ đề', 'Theme added': 'Chủ đề được thêm vào', 'Theme deleted': 'Chủ đề đã xóa', 'Theme removed': 'Chủ đề đã loại bỏ', 'Theme updated': 'Chủ đề đã cập nhật', 'Theme': 'Chủ đề', 'Themes': 'Chủ đề', 'There are multiple records at this location': 'Có nhiều bản lưu tại địa điểm này', 'There is a problem with your file.': 'Có vấn đề với tệp tin của bạn.', 'There is insufficient data to draw a chart from the questions selected': 'Không có đủ dữ liệu để vẽ biểu đồ từ câu hỏi đã chọn', 'There is no address for this person yet. Add new address.': 'Chưa có địa chỉ về người này. Hãy thêm địa chỉ.', 'There was a problem, sorry, please try again later.': 'Đã có vấn đề, xin lỗi, vui lòng thử lại sau.', 'These are settings for Inbound Mail.': 'Đây là những cài đặt cho Hộp thư đến.', 'These are the Incident Categories visible to normal End-Users': 'Đây là những Nhóm Sự kiện hiển thị cho Người dùng Cuối cùng thông thường.', 'These are the filters being used by the search.': 'Đây là những bộ lọc sử dụng cho tìm kiếm.', 'These need to be added in Decimal Degrees.': 'Cần thêm vào trong Số các chữ số thập phân.', 'They': 'Người ta', 'This Group has no Members yet': 'Hiện không có hội viên nào được đăng ký', 'This Team has no Members yet': 'Hiện không có hội viên nào được đăng ký', 'This adjustment has already been closed.': 'Điều chỉnh này đã đóng.', 'This email-address is already registered.': 'Địa chỉ email này đã được đăng ký.', 'This form allows the administrator to remove a duplicate location.': 'Mẫu này cho phép quản trị viên xóa bỏ các địa điểm trùng', 'This is appropriate if this level is under construction. To prevent accidental modification after this level is complete, this can be set to False.': 'Lựa chọn này phù hợp nếu cấp độ này đang được xây dựng. Để không vô tình chỉnh sửa sau khi hoàn tất cấp độ này, lựa chọn này có thể được đặt ở giá trị Sai.', 'This is normally edited using the Widget in the Style Tab in the Layer Properties on the Map.': 'Điều này thông thường được chỉnh sửa sử dụng Công cụ trong Mục Kiểu dáng trong Các đặc trưng của Lớp trên Bản đồ.', 'This is the full name of the language and will be displayed to the user when selecting the template language.': 'Đây là tên đầy đủ của ngôn ngữ và sẽ được thể hiện với người dùng khi lựa chọn ngôn ngữ.', 'This is the name of the parsing function used as a workflow.': 'Đây là tên của chức năng phân tích cú pháp được sử dụng như là một chuỗi công việc.', 'This is the name of the username for the Inbound Message Source.': 'Đây là tên của người dùng cho Nguồn tin nhắn đến.', 'This is the short code of the language and will be used as the name of the file. This should be the ISO 639 code.': 'Đây là mã ngắn gọn của ngôn ngữ và sẽ được sử dụng làm tên của tệp tin. Mã này nên theo mã ISO 639.', 'This is the way to transfer data between machines as it maintains referential integrity.': 'Đây là cách truyền dữ liệu giữa các máy vì nó bảo toàn tham chiếu', 'This job has already been finished successfully.': 'Công việc đã được thực hiện thành công.', 'This level is not open for editing.': 'Cấp độ này không cho phép chỉnh sửa.', 'This might be due to a temporary overloading or maintenance of the server.': 'Điều này có lẽ là do máy chủ đang quá tải hoặc đang được bảo trì.', 'This module allows Warehouse Stock to be managed, requested & shipped between the Warehouses and Other Inventories': 'Chức năng này giúp việc quản lý, đặt yêu cầu và di chuyển hàng lưu trữ giữa các kho hàng và các vị trí lưu trữ khác trong kho', 'This resource cannot be displayed on the map!': 'Nguồn lực này không thể hiện trên bản đồ!', 'This resource is already configured for this repository': 'Nguồn lực này đã được thiết lập cấu hình cho kho hàng này', 'This role can not be assigned to users.': 'Chức năng không thể cấp cho người sử dụng', 'This screen allows you to upload a collection of photos to the server.': 'Màn hình này cho phép bạn đăng tải một bộ sưu tập hình ảnh lên máy chủ.', 'This shipment contains %s items': 'Lô hàng này chứa %s mặt hàng', 'This shipment contains one item': 'Lô hàng này chứa một mặt hàng', 'This shipment has already been received & subsequently canceled.': 'Lô hàng này đã được nhận & về sau bị hủy.', 'This shipment has already been received.': 'Lô hàng này đã được nhận.', 'This shipment has already been sent.': 'Lô hàng này đã được gửi.', 'This shipment has not been received - it has NOT been canceled because it can still be edited.': 'Lô hàng này chưa được nhận - KHÔNG bị hủy vì vẫn có thể điều chỉnh.', 'This shipment has not been returned.': 'Lô hàng này chưa được trả lại.', 'This shipment has not been sent - it cannot be returned because it can still be edited.': 'Lô hàng này chưa được gửi - không thể trả lại vì vẫn có thể điều chỉnh.', 'This shipment has not been sent - it has NOT been canceled because it can still be edited.': 'Lô hàng này chưa được gửi - KHÔNG bị hủy vì vẫn có thể điều chỉnh.', 'This should be an export service URL': 'Có thể đây là một dịch vụ xuất URL', 'Thunderstorm': 'Giông bão', 'Thursday': 'Thứ Năm', 'Ticket Details': 'Chi tiết Ticket', 'Ticket Viewer': 'Người kiểm tra vé', 'Ticket deleted': 'Đã xóa Ticket', 'Ticket': 'Vé', 'Tickets': 'Vé', 'Tiled': 'Lợp', 'Time Actual': 'Thời gian thực tế', 'Time Estimate': 'Ước lượng thời gian', 'Time Estimated': 'Thời gian dự đoán', 'Time Frame': 'Khung thời gian', 'Time In': 'Thời điểm vào', 'Time Log Deleted': 'Lịch trình thời gian đã xóa', 'Time Log Updated': 'Lịch trình thời gian đã cập nhật', 'Time Log': 'Lịch trình thời gian', 'Time Logged': 'Thời gian truy nhập', 'Time Out': 'Thời gian thoát', 'Time Question': 'Câu hỏi thời gian', 'Time Taken': 'Thời gian đã dùng', 'Time of Request': 'Thời gian yêu cầu', 'Time': 'Thời gian', 'Timeline': 'Nhật ký', 'Title to show for the Web Map Service panel in the Tools panel.': 'Tiêu đề thể hiện với bảng Dịch vụ Bản đồ Mạng trong bảng Công cụ.', 'Title': 'Tiêu đề', 'To Organization': 'Tới Tổ chức', 'To Person': 'Tới Người', 'To Warehouse/Facility/Office': 'Tới Nhà kho/Bộ phận/Văn phòng', 'To begin the sync process, click the button on the right => ': 'Nhấp chuột vào nút bên phải để kích hoạt quá trình đồng bộ', 'To edit OpenStreetMap, you need to edit the OpenStreetMap settings in your Map Config': 'Để chỉnh sửa OpenStreetMap, bạn cần chỉnh sửa cài đặt OpenStreetMap trong cài đặt cấu hình bản đồ của bạn.', 'To variable': 'Tới biến số', 'To': 'Tới', 'Tools and Guidelines Development': 'Xây dựng các hướng dẫn và công cụ', 'Tools': 'Công cụ', 'Tornado': 'Lốc xoáy', 'Total # of Target Beneficiaries': 'Tổng số # đối tượng hưởng lợi', 'Total Annual Budget': 'Tổng ngân sách hàng năm', 'Total Cost per Megabyte': 'Tổng chi phí cho mỗi Megabyte', 'Total Cost': 'Giá tổng', 'Total Funding Amount': 'Tổng số tiền hỗ trợ', 'Total Locations': 'Tổng các vị trí', 'Total Persons': 'Tổng số người', 'Total Recurring Costs': 'Tổng chi phí định kỳ', 'Total Value': 'Giá trị tổng', 'Total number of beds in this hospital. Automatically updated from daily reports.': 'Tổng số giường bệnh trong bệnh viện này. Tự động cập nhật từ các báo cáo hàng ngày.', 'Total number of houses in the area': 'Tổng số nóc nhà trong khu vực', 'Total number of schools in affected area': 'Số lượng trường học trong khu vực chịu ảnh hưởng thiên tai', 'Total': 'Tổng', 'Tourist Group': 'Nhóm khách du lịch', 'Tracing': 'Đang tìm kiếm', 'Track Shipment': 'Theo dõi lô hàng', 'Track with this Person?': 'Theo dõi Người này?', 'Track': 'Dấu viết', 'Trackable': 'Có thể theo dõi được', 'Tracking and analysis of Projects and Activities.': 'Giám sát và phân tích Dự án và Hoạt động', 'Traffic Report': 'Báo cáo giao thông', 'Training (Count)': 'Tập huấn (Số lượng)', 'Training Course Catalog': 'Danh mục khóa tập huấn', 'Training Courses': 'Danh mục khóa tập huấn', 'Training Details': 'Chi tiết về khóa tập huấn', 'Training Event Details': 'Chi tiết về khóa tập huấn', 'Training Event added': 'Khóa tập huấn được thêm vào', 'Training Event deleted': 'Khóa tập huấn đã xóa', 'Training Event updated': 'Khóa tập huấn đã cập nhật', 'Training Event': 'Khóa tập huấn', 'Training Events': 'Khóa tập huấn', 'Training Facility': 'Đơn vị đào tạo', 'Training Hours (Month)': 'Thời gian tập huấn (Tháng)', 'Training Hours (Year)': 'Thời gian tập huấn (Năm)', 'Training Report': 'Tập huấn', 'Training added': 'Tập huấn được thêm vào', 'Training deleted': 'Tập huấn đã xóa', 'Training of Master Trainers/ Trainers': 'Tập huấn Giảng viên/ Giảng viên nguồn', 'Training Sector': 'Lĩnh vực tập huấn', 'Training updated': 'Tập huấn đã cập nhật', 'Training': 'Tập huấn', 'Trainings': 'Tập huấn', 'Transfer Ownership To (Organization/Branch)': 'Chuyển Quyền sở hữu cho (Tổ chức/ Chi nhánh)', 'Transfer Ownership': 'Chuyển Quyền sở hữu', 'Transfer': 'Chuyển giao', 'Transit Status': 'Tình trạng chuyển tiếp', 'Transit': 'Chuyển tiếp', 'Transitional Shelter Construction': 'Xây dựng nhà tạm', 'Transitional Shelter': 'Nhà tạm', 'Translate': 'Dịch', 'Translated File': 'File được dịch', 'Translation Functionality': 'Chức năng Dịch', 'Translation': 'Dịch', 'Transparent?': 'Có minh bạch không?', 'Transportation Required': 'Cần vận chuyển', 'Transported By': 'Đơn vị vận chuyển', 'Tropical Storm': 'Bão nhiệt đới', 'Tropo Messaging Token': 'Mã thông báo tin nhắn Tropo', 'Tropo settings updated': 'Cài đặt Tropo được cập nhật', 'Truck': 'Xe tải', 'Try checking the URL for errors, maybe it was mistyped.': 'Kiểm tra đường dẫn URL xem có lỗi không, có thể đường dẫn bị gõ sai.', 'Try hitting refresh/reload button or trying the URL from the address bar again.': 'Thử nhấn nút làm lại/tải lại hoặc thử lại URL từ trên thanh địa chỉ.', 'Try refreshing the page or hitting the back button on your browser.': 'Thử tải lại trang hoặc nhấn nút trở lại trên trình duyệt của bạn.', 'Tsunami': 'Sóng thần', 'Twilio SMS InBox': 'Hộp thư đến SMS twilio', 'Twilio SMS Inbox empty. ': 'Hộp thư đến Twilio trống.', 'Twilio SMS Inbox': 'Hộp thư đến Twilio', 'Twilio SMS Settings': 'Cài đặt SMS twilio', 'Twilio SMS deleted': 'Tin nhắn Twilio đã xóa', 'Twilio SMS updated': 'Tin nhắn Twilio được cập nhật', 'Twilio SMS': 'Tin nhắn Twilio', 'Twilio Setting Details': 'Chi tiết cài đặt Twilio', 'Twilio Setting added': 'Cài đặt Twilio được thêm vào', 'Twilio Setting deleted': 'Cài đặt Twilio đã xóa', 'Twilio Settings': 'Cài đặt Twilio', 'Twilio settings updated': 'Cài đặt Twilio được cập nhật', 'Twitter ID or #hashtag': 'Tên đăng nhập Twitter hay từ hay chuỗi các ký tự bắt đầu bằng dấu # (#hashtag)', 'Twitter Settings': 'Cài đặt Twitter', 'Type of Transport': 'Loại phương tiện giao thông', 'Type of adjustment': 'Loại hình điều chỉnh', 'Type': 'Đối tượng', 'Types of Activities': 'Các loại hình Hoạt động', 'Types': 'Các loại', 'UPDATE': 'CẬP NHẬT', 'URL for the twilio API.': 'URL cho twilio API.', 'URL of the default proxy server to connect to remote repositories (if required). If only some of the repositories require the use of a proxy server, you can configure this in the respective repository configurations.': 'URL của máy chủ trung chuyển mặc định để kết nối với các kho hàng ở khu vực xa (nếu cần thiết). Nếu chỉ có một số kho hàng cần một máy chủ trung chuyển sử dụng thì bạn có thể tạo cấu hình cho máy này tương ứng với cấu hình của kho hàng.', 'URL of the proxy server to connect to the repository (leave empty for default proxy)': 'URL của máy chủ trung chuyển để kết nối với kho hàng (để trống với phần ủy nhiệm mặc định)', 'URL to a Google Calendar to display on the project timeline.': 'URL đến Lịch Google để thể hiện dòng thời gian của dự án.', 'UTC Offset': 'Độ xê dịch giờ quốc tế', 'Un-Repairable': 'Không-Sửa chữa được', 'Unable to find sheet %(sheet_name)s in uploaded spreadsheet': 'Không thể tìm thấy bảng %(sheet_name)s trong bảng tính đã đăng tải', 'Unable to open spreadsheet': 'Không thể mở được bảng tính', 'Unable to parse CSV file or file contains invalid data': 'Không thể cài đặt cú pháp cho file CSV hoặc file chức dữ liệu không hợp lệ', 'Unable to parse CSV file!': 'Không thể đọc file CSV', 'Unassigned': 'Chưa được điều động', 'Under 5': 'Dưới 5', 'Under which condition a local record shall be updated if it also has been modified locally since the last synchronization': 'Trong điều kiện nào thì một bản lưu nội bộ sẽ được cập nhật nếu bản lưu này cũng được điều chỉnh trong nội bộ kể từ lần đồng bộ hóa cuối cùng', 'Under which conditions local records shall be updated': 'Trong những điều kiện nào thì các bản lưu nội bộ sẽ được cập nhật', 'Unidentified': 'Không nhận dạng được', 'Unique Locations': 'Các địa điểm duy nhất', 'Unique identifier which THIS repository identifies itself with when sending synchronization requests.': 'Ký hiệu nhận dạng duy nhất để kho hàng NÀY nhận dạng chính nó khi gửi các đề nghị đồng bộ hóa.', 'Unit Cost': 'Đơn giá', 'Unit Short Code for e.g. m for meter.': 'Viết tắt các đơn vị, ví dụ m viết tắt của mét', 'Unit Value': 'Thành tiền', 'Unit added': 'Đã thêm đơn vị', 'Unit of Measure': 'Đơn vị đo', 'Unit updated': 'Đơn vị được cập nhật', 'Unit': 'Đơn vị', 'United States Dollars': 'Đô La Mỹ', 'Units': 'Các đơn vị', 'University / College': 'Trung cấp / Cao đẳng / Đại học', 'Unknown Locations': 'Địa điểm không xác định', 'Unknown question code': 'Mã câu hỏi chưa được biết đến', 'Unknown': 'Chưa xác định', 'Unloading': 'Đang gỡ ra', 'Unselect to disable the modem': 'Thôi chọn để tạm ngừng hoạt động của mô đem', 'Unselect to disable this API service': 'Thôi chọn để tạm ngừng dịch vụ API này', 'Unselect to disable this SMTP service': 'Thôi chọn để tạm ngừng dịch vụ SMTP này', 'Unsent': 'Chưa được gửi', 'Unspecified': 'Không rõ', 'Unsupported data format': 'Định dạng dữ liệu không được hỗ trợ', 'Unsupported method': 'Phương pháp không được hỗ trợ', 'Update Map': 'Cập nhật Bản đồ', 'Update Master file': 'Cập nhật tệp tin Gốc', 'Update Method': 'Cập nhật Phương pháp', 'Update Policy': 'Cập nhật Chính sách', 'Update Report': 'Cập nhật báo cáo', 'Update Request': 'Cập nhật Yêu cầu', 'Update Service Profile': 'Cập nhật hồ sơ đăng ký dịch vụ', 'Update Status': 'Cập nhật Tình trạng', 'Update Task Status': 'Cập nhật tình trạng công việc ', 'Update this entry': 'Cập nhật hồ sơ này', 'Updated By': 'Được cập nhật bởi', 'Upload .CSV': 'Tải lên .CSV', 'Upload Completed Assessment Form': 'Tải lên Mẫu đánh giá đã hoàn thiện', 'Upload Format': 'Tải định dạng', 'Upload Photos': 'Tải lên Hình ảnh', 'Upload Scanned OCR Form': 'Tải mẫu scan OCR', 'Upload Web2py portable build as a zip file': 'Tải lên Web2py như một tệp nén', 'Upload a Question List import file': 'Tải lên một tệp tin được chiết xuất chứa Danh sách các câu hỏi', 'Upload a Spreadsheet': 'Tải một bảng tính lên', 'Upload a file formatted according to the Template.': 'Nhập khẩu được định dạng theo mẫu', 'Upload a text file containing new-line separated strings:': 'Tải lên một tệp tin văn bản chứa các chuỗi được tách thành dòng mới:', 'Upload an Assessment Template import file': 'Tải lên một tệp tin được chiết xuất chứa Biểu mẫu Khảo sát đánh giá', 'Upload an image file (png or jpeg), max. 400x400 pixels!': 'Tải lên file hình ảnh (png hoặc jpeg) có độ phân giải tối đa là 400x400 điểm ảnh!', 'Upload demographic data': 'Tải lên dữ liệu nhân khẩu', 'Upload file': 'Tải file', 'Upload indicators': 'Tải lên các chỉ số', 'Upload successful': 'Tải lên thành công', 'Upload the (completely or partially) translated csv file': 'Tải lên (toàn bộ hoặc một phần) tệp tin csv đã được chuyển ngữ', 'Upload the Completed Assessment Form': 'Tải lên Mẫu đánh giá', 'Upload translated files': 'Tải file được dịch', 'Upload': 'Tải lên', 'Uploaded PDF file has more/less number of page(s) than required. Check if you have provided appropriate revision for your Form as well as check the Form contains appropriate number of pages.': '', 'Uploaded file is not a PDF file. Provide a Form in valid PDF Format.': 'File được tải không phải định dạng PDF. Cung cấp mẫu ở định dạng PDF', 'Uploading report details': 'Đang tải lên các chi tiết báo cáo', 'Urban Fire': 'Cháy trong thành phố', 'Urban Risk & Planning': 'Quy hoạch đô thị và Rủi ro đô thị', 'Urdu': 'Ngôn ngữ Urdu(một trong hai ngôn ngữ chính thức tại Pakistan', 'Urgent': 'Khẩn cấp', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Sử dụng (...)&(...) cho VÀ, (...)|(...) cho HOẶC, và ~(...) cho KHÔNG để tạo ra những câu hỏi phức tạp hơn.', 'Use Geocoder for address lookups?': 'Sử dụng Geocoder để tìm kiếm địa chỉ?', 'Use Translation Functionality': 'Sử dụng Chức năng Dịch', 'Use decimal': 'Sử dụng dấu phẩy', 'Use default': 'Sử dụng cài đặt mặc định', 'Use deg, min, sec': 'Sử dụng độ, phút, giây', 'Use these links to download data that is currently in the database.': 'Dùng liên kết này để tải dữ liệu hiện có trên cơ sở dữ liệu xuống', 'Use this space to add a description about the Bin Type.': 'Thêm thông tin mô tả loại Bin ở đây', 'Use this space to add a description about the warehouse/site.': 'Thêm mô tả nhà kho/site ở đây', 'Use this space to add additional comments and notes about the Site/Warehouse.': 'Viết bình luận và ghi chú về site/nhà kho ở đây', 'Use this to set the starting location for the Location Selector.': 'Sử dụng cái này để thiết lập địa điểm xuất phát cho Bộ chọn lọc Địa điểm.', 'Used in onHover Tooltip & Cluster Popups to differentiate between types.': 'Đã dùng trong onHover Tooltip & Cluster Popups để phân biệt các loại', 'Used to build onHover Tooltip & 1st field also used in Cluster Popups to differentiate between records.': 'Đã dùng để xây dựng onHover Tooltip & trường thứ nhất cũng đã sử dụng trong Cluster Popups phân biệt các hồ sơ.', 'Used to check that latitude of entered locations is reasonable. May be used to filter lists of resources that have locations.': 'Được sử dụng để kiểm tra vĩ độ của những địa điểm được nhập có chính xác không. Có thể được sử dụng để lọc danh sách các nguồn lực có địa điểm.', 'Used to check that longitude of entered locations is reasonable. May be used to filter lists of resources that have locations.': 'Được sử dụng để kiểm tra kinh độ của những địa điểm được nhập có chính xác không. Có thể được sử dụng để lọc danh sách các nguồn lực có địa điểm.', 'User Account has been Approved': 'Tài khoản của người sử dụng đã được duyệt', 'User Account has been Disabled': 'Tài khoản của người sử dụng đã bị ngưng hoạt động', 'User Account': 'Tài khoản của người sử dụng', 'User Details': 'Thông tin về người sử dụng', 'User Guidelines Synchronization': 'Đồng bộ hóa Hướng dẫn cho Người sử dụng', 'User Management': 'Quản lý người dùng', 'User Profile': 'Hồ sơ người sử dụng', 'User Requests': 'Yêu cầu của người dùng', 'User Roles': 'Vai trò của người sử dụng', 'User Updated': 'Đã cập nhât người dùng', 'User added to Role': 'Người sử dụng được thêm vào chức năng', 'User added': 'Người sử dụng được thêm vào', 'User deleted': 'Người sử dụng đã xóa', 'User has been (re)linked to Person and Human Resource record': 'Người sử dụng đã được liên kết thành công', 'User updated': 'Người sử dụng được cập nhật', 'User with Role': 'Người sử dụng có chức năng này', 'User': 'Người sử dụng', 'Username to use for authentication at the remote site.': 'Tên người sử dụng dùng để xác nhận tại khu vực ở xa.', 'Username': 'Tên người sử dụng', 'Users in my Organizations': 'Những người dùng trong tổ chức của tôi', 'Users removed': 'Xóa người dùng', 'Users with this Role': 'Những người sử dụng với chức năng này', 'Users': 'Danh sách người dùng', 'Uses the REST Query Format defined in': 'Sử dụng Định dạng câu hỏi REST đã được xác định trong', 'Ushahidi Import': 'Nhập Ushahidi', 'Utilization Details': 'Chi tiết về Việc sử dụng', 'Utilization Report': 'Báo cáo quá trình sử dụng', 'VCA (Vulnerability and Capacity Assessment': 'VCA (Đánh giá Tình trạng dễ bị tổn thương và Khả năng)', 'VCA REPORTS': 'BÁO CÁO VCA', 'VCA Report': 'Báo cáo VCA', 'Valid From': 'Có hiệu lực từ', 'Valid Until': 'Có hiệu lực đến', 'Valid': 'Hiệu lực', 'Validation error': 'Lỗi xác thực', 'Value per Pack': 'Giá trị mỗi gói', 'Value': 'Giá trị', 'Vector Control': 'Kiểm soát Vec-tơ', 'Vehicle Assignment updated': 'Việc điệu động xe được cập nhật', 'Vehicle Assignments': 'Các việc điều động xe', 'Vehicle Crime': 'Tội phạm liên quan đến xe', 'Vehicle Details': 'Thông tin về xe', 'Vehicle Plate Number': 'Biển số xe', 'Vehicle Types': 'Loại phương tiện di chuyển', 'Vehicle assigned': 'Xe được điều động', 'Vehicle unassigned': 'Xe chưa được điều động', 'Vehicle': 'Xe', 'Vehicles': 'Phương tiện di chuyển', 'Venue': 'Địa điểm tổ chức', 'Verified': 'Đã được thẩm định', 'Verified?': 'Đã được thẩm định?', 'Verify Password': 'Kiểm tra mật khẩu', 'Verify password': 'Kiểm tra mật khẩu', 'Version': 'Phiên bản', 'Very Good': 'Rất tốt', 'Very Strong': 'Rất mạnh', 'Vietnamese': 'Tiếng Việt', 'View Alerts received using either Email or SMS': 'Xem các Cảnh báo nhận được sử dụng thư điện tử hoặc tin nhắn', 'View All': 'Xem tất cả', 'View Email InBox': 'Xem hộp thư điện tử đến', 'View Email Settings': 'Xem cài đặt thư điện tử', 'View Error Tickets': 'Xem các vé lỗi', 'View Fullscreen Map': 'Xem bản đồ toàn màn hình', 'View Items': 'Xem các mặt hàng', 'View Location Details': 'Xem chi tiết vị trí', 'View Outbox': 'Xem hộp thư điện tử đi', 'View Reports': 'Xem báo cáo', 'View Requests for Aid': 'Xem Yêu cầu viện trợ', 'View Settings': 'Xem cài đặt', 'View Test Result Reports': 'Xem báo cáo kết quả kiểm tra', 'View Translation Percentage': 'Xem tỷ lệ phần trăm chuyển đổi', 'View Twilio SMS': 'Xem tin nhắn văn bản Twilio', 'View Twilio Settings': 'Xem các Cài đặt Twilio', 'View all log entries': 'Xem toàn bộ nhật ký ghi chép', 'View as Pages': 'Xem từng trang', 'View full size': 'Xem kích thước đầy đủ', 'View log entries per repository': 'Xem ghi chép nhật ký theo kho hàng', 'View on Map': 'Xem trên bản đồ', 'View or update the status of a hospital.': 'Xem hoặc cập nhật trạng thái của một bệnh viện', 'View the hospitals on a map.': 'Hiển thị bệnh viện trên bản đồ', 'View the module-wise percentage of translated strings': 'Xem phần trăm ', 'View': 'Xem', 'View/Edit the Database directly': 'Trực tiếp Xem/Sửa Cơ sở dữ liệu', 'Village / Suburb': 'Thôn / Xóm', 'Violence Prevention': 'Phòng ngừa bạo lực', 'Vocational School/ College': 'Trung cấp/ Cao đẳng', 'Volcanic Ash Cloud': 'Mây bụi núi lửa', 'Volcanic Event': 'Sự kiện phun trào núi lửa', 'Volcano': 'Núi lửa', 'Volume (m3)': 'Thể tích (m3)', 'Volunteer Cluster Position added': 'Vị trí Nhóm Tình nguyện viên được thêm vào', 'Volunteer Cluster Position deleted': 'Vị trí Nhóm Tình nguyện viên đã xóa', 'Volunteer Cluster Position updated': 'Vị trí Nhóm Tình nguyện viên được cập nhật', 'Volunteer Cluster Position': 'Vị trí Nhóm Tình nguyện viên', 'Volunteer Cluster Type added': 'Mô hình Nhóm Tình nguyện viên được thêm vào', 'Volunteer Cluster Type deleted': 'Mô hình Nhóm Tình nguyện viên đã xóa', 'Volunteer Cluster Type updated': 'Mô hình Nhóm Tình nguyện viên được cập nhật', 'Volunteer Cluster Type': 'Mô hình Nhóm Tình nguyện viên', 'Volunteer Cluster added': 'Nhóm Tình nguyện viên được thêm vào', 'Volunteer Cluster deleted': 'Nhóm Tình nguyện viên đã xóa', 'Volunteer Cluster updated': 'Nhóm Tình nguyện viên được cập nhật', 'Volunteer Cluster': 'Nhóm Tình nguyện viên', 'Volunteer Data': 'Dữ liệu tình nguyện viên', 'Volunteer Details updated': 'Thông tin về Tình nguyện viên được cập nhật', 'Volunteer Details': 'Thông tin về Tình nguyện viên', 'Volunteer Management': 'Quản lý tình nguyện viên', 'Volunteer Project': 'Dự án tình nguyện', 'Volunteer Record': 'Hồ sơ TNV', 'Volunteer Registration': 'Đăng ký tình nguyện viên', 'Volunteer Registrations': 'Đăng ksy tình nguyện viên', 'Volunteer Report': 'Tình nguyện viên', 'Volunteer Request': 'Đề nghị Tình nguyện viên', 'Volunteer Role (Count)': 'Chức năng nhiệm vụ TNV (Số lượng)', 'Volunteer Role Catalog': 'Danh mục về Vai trò của Tình nguyện viên', 'Volunteer Role Catalogue': 'Danh mục vai trò TNV', 'Volunteer Role Details': 'Chi tiết về Vai trò của Tình nguyện viên', 'Volunteer Role added': 'Vai trò của Tình nguyện viên được thêm vào', 'Volunteer Role deleted': 'Vai trò của Tình nguyện viên đã xóa', 'Volunteer Role updated': 'Vai trò của Tình nguyện viên được cập nhật', 'Volunteer Role': 'Chức năng nhiệm vụ TNV', 'Volunteer Roles': 'Chức năng nhiệm vụ TNV', 'Volunteer Service Record': 'Bản lưu Dịch vụ Tình nguyện viên', 'Volunteer added': 'Tình nguyện viên được thêm vào', 'Volunteer and Staff Management': 'Quản lý TNV và Cán bộ', 'Volunteer deleted': 'Tình nguyện viên đã xóa', 'Volunteer registration added': 'Đã thêm đăng ký tình nguyện viên', 'Volunteer registration deleted': 'Đã xóa đăng ký tình nguyện viên', 'Volunteer registration updated': 'Đã cập nhật đăng ký tình nguyện viên', 'Volunteer': 'Tình nguyện viên', 'Volunteers': 'Tình nguyện viên', 'Votes': 'Bình chọn', 'Vulnerability Aggregated Indicator Details': 'Chi tiết về chỉ số tổng hợp về Tình trạng dễ bị tổn thương', 'Vulnerability Aggregated Indicator added': 'Chỉ số tổng hợp về Tình trạng dễ bị tổn thương được thêm vào', 'Vulnerability Aggregated Indicator deleted': 'Chỉ số tổng hợp về Tình trạng dễ bị tổn thương đã xóa', 'Vulnerability Aggregated Indicator updated': 'Chỉ số tổng hợp về Tình trạng dễ bị tổn thương được cập nhật', 'Vulnerability Aggregated Indicator': 'Chỉ số tổng hợp về Tình trạng dễ bị tổn thương', 'Vulnerability Aggregated Indicators': 'Các chỉ số tổng hợp về Tình trạng dễ bị tổn thương', 'Vulnerability Data Details': 'Dữ liệu chi tiết về Tình trạng dễ bị tổn thương', 'Vulnerability Data added': 'Dữ liệu về Tình trạng dễ bị tổn thương được thêm vào', 'Vulnerability Data deleted': 'Dữ liệu về Tình trạng dễ bị tổn thương đã xóa', 'Vulnerability Data updated': 'Dữ liệu về Tình trạng dễ bị tổn thương được cập nhật', 'Vulnerability Data': 'Dữ liệu về Tình trạng dễ bị tổn thương', 'Vulnerability Indicator Details': 'Chỉ số chi tiết về Tình trạng dễ bị tổn thương', 'Vulnerability Indicator Source Details': 'Chi tiết Nguồn Chỉ số về Tình trạng dễ bị tổn thương', 'Vulnerability Indicator Sources': 'Các Nguồn Chỉ số về Tình trạng dễ bị tổn thương', 'Vulnerability Indicator added': 'Chỉ số về Tình trạng dễ bị tổn thương được thêm vào', 'Vulnerability Indicator deleted': 'Chỉ số về Tình trạng dễ bị tổn thương đã xóa', 'Vulnerability Indicator updated': 'Chỉ số về Tình trạng dễ bị tổn thương được cập nhật', 'Vulnerability Indicator': 'Chỉ số về Tình trạng dễ bị tổn thương', 'Vulnerability Indicators': 'Các Chỉ số về Tình trạng dễ bị tổn thương', 'Vulnerability Mapping': 'Vẽ bản đồ về Tình trạng dễ bị tổn thương', 'Vulnerability indicator sources added': 'Các nguồn chỉ số về Tình trạng dễ bị tổn thương được thêm vào', 'Vulnerability indicator sources deleted': 'Các nguồn chỉ số về Tình trạng dễ bị tổn thương đã xóa', 'Vulnerability indicator sources updated': 'Các nguồn chỉ số về Tình trạng dễ bị tổn thương được cập nhật', #'Vulnerability': 'Tình trạng dễ bị tổn thương', 'Vulnerability': 'TTDBTT', 'Vulnerable Populations': 'Đối tượng dễ bị tổn thương', 'WARNING': 'CẢNH BÁO', 'WATSAN': 'NSVS', 'WAYBILL': 'VẬN ĐƠN', 'WFS Layer': 'Lớp WFS', 'WGS84 (EPSG 4236) is required for many WMS servers.': 'WGS84 (EPSG 4236) cần có cho nhiều máy chủ WMS.', 'WMS Layer': 'Lớp WMS', 'Warehouse Details': 'Thông tin về Nhà kho', 'Warehouse Management': 'Quản lý kho hàng', 'Warehouse Stock Details': 'Thông tin về Hàng hóa trong kho', 'Warehouse Stock Report': 'Báo cáo Hàng hóa trong Nhà kho', 'Warehouse Stock updated': 'Hàng hóa trong kho được cập nhật', 'Warehouse Stock': 'Hàng trong kho', 'Warehouse added': 'Nhà kho được thêm vào', 'Warehouse deleted': 'Nhà kho đã xóa', 'Warehouse updated': 'Nhà kho được cập nhật', 'Warehouse': 'Nhà kho', 'Warehouse/Facility/Office (Recipient)': 'Nhà kho/Bộ phận/Văn phòng (Bên nhận)', 'Warehouse/Facility/Office': 'Nhà kho/Bộ phận/Văn phòng', 'Warehouses': 'Nhà kho', 'Water Sources': 'Các nguồn nước', 'Water Supply': 'Cung cấp nước sạch', 'Water and Sanitation': 'Nước sạch và Vệ sinh', 'Water gallon': 'Ga-lông nước', 'Water': 'Nước', 'Waterspout': 'Máng xối nước', 'Way Bill(s)': 'Hóa đơn thu phí đường bộ', 'Waybill Number': 'Số Vận đơn', 'We have tried': 'Chúng tôi đã cố gắng', 'Weak': 'Yếu', 'Web API settings updated': 'Cài đặt API Trang thông tin được cập nhật', 'Web API': 'API Trang thông tin', 'Web Form': 'Kiểu Trang thông tin', 'Web Map Service Browser Name': 'Tên Trình duyệt Dịch vụ Bản đồ Trang thông tin', 'Web Map Service Browser URL': 'URL Trình duyệt Dịch vụ Bản đồ Trang thông tin', 'Web2py executable zip file found - Upload to replace the existing file': 'Tệp tin nén có thể thực hiện chức năng gián điệp - Đăng tải để thay thế tệp tin đang tồn tại', 'Web2py executable zip file needs to be uploaded to use this function.': 'Tệp tin nén có thể thực hiện chức năng gián điệp cần được đăng tải để sử dụng chức năng này.', 'Website': 'Trang thông tin', 'Week': 'Tuần', 'Weekly': 'Hàng tuần', 'Weight (kg)': 'Trọng lượng (kg)', 'Weight': 'Trọng lượng', 'Welcome to %(system_name)s': 'Chào mừng anh/chị truy cập %(system_name)s', 'Welcome to the': 'Chào mừng bạn tới', 'Well-Known Text': 'Từ khóa thường được dùng', 'What are you submitting?': 'Bạn đang gửi cái gì?', 'What order to be contacted in.': 'Đơn hàng nào sẽ được liên hệ trao đổi.', 'What the Items will be used for': 'Các mặt hàng sẽ được sử dụng để làm gì', 'When this search was last checked for changes.': 'Tìm kiếm này được kiểm tra lần cuối là khi nào để tìm ra những thay đổi.', 'Whether the Latitude & Longitude are inherited from a higher level in the location hierarchy rather than being a separately-entered figure.': 'Vĩ độ & Kinh độ có được chiết xuất từ một địa điểm có phân cấp hành chính cao hơn hay là một con số được nhập riêng lẻ.', 'Whether the resource should be tracked using S3Track rather than just using the Base Location': 'Nguồn lực nên được theo dõi sử dụng Dấu vết S3 hay chỉ sử dụng Địa điểm cơ bản', 'Which methods to apply when importing data to the local repository': 'Áp dụng phương pháp nào khi nhập dữ liệu vào kho dữ liệu nội bộ', 'Whiskers': 'Râu', 'Who is doing What Where': 'Ai đang làm Gì Ở đâu', 'Who usually collects water for the family?': 'Ai là người thường đi lấy nước cho cả gia đình', 'Widowed': 'Góa', 'Width (m)': 'Rộng (m)', 'Width': 'Độ rộng', 'Wild Fire': 'Cháy Lớn', 'Will be filled automatically when the Item has been Repacked': 'Sẽ được điền tự động khi Hàng hóa được Đóng gói lại', 'Will be filled automatically when the Shipment has been Received': 'Sẽ được điền tự động khi Lô hàng được Nhận', 'Wind Chill': 'Rét cắt da cắt thịt', 'Winter Storm': 'Bão Mùa đông', 'Women of Child Bearing Age': 'Phụ nữ trong độ tuổi sinh sản', 'Women who are Pregnant or in Labour': 'Phụ nữ trong thời kỳ thai sản', 'Work phone': 'Điện thoại công việc', 'Work': 'Công việc', 'Workflow not specified!': 'Chuỗi công việc chưa được xác định!', 'Workflow': 'Chuỗi công việc', 'Working hours end': 'Hết giờ làm việc', 'Working hours start': 'Bắt đầu giờ làm việc', 'X-Ray': 'Tia X', 'XML parse error': 'Lỗi phân tích cú pháp trong XML', 'XSLT stylesheet not found': 'Không tìm thấy kiểu bảng tính XSLT', 'XSLT transformation error': 'Lỗi chuyển đổi định dạng XSLT', 'XYZ Layer': 'Lớp XYZ', 'YES': 'CÓ', 'Year of Manufacture': 'Năm sản xuất', 'Year that the organization was founded': 'Năm thành lập tổ chức', 'Year': 'Năm', 'Yes': 'Có', 'Yes, No': 'Có, Không', 'You are about to submit indicator ratings for': 'Bạn chuẩn bị gửi đánh giá chỉ số cho', 'You are attempting to delete your own account - are you sure you want to proceed?': 'Bạn đang cố gắng xóa tài khoản của bạn - bạn có chắc chắn muốn tiếp tục không?', 'You are currently reported missing!': 'Hiện tại bạn được báo cáo là đã mất tích!', 'You are not permitted to approve documents': 'Bạn không được phép phê duyệt tài liệu', 'You are not permitted to upload files': 'Bạn không được phép đăng tải tệp tin', 'You are viewing': 'Bạn đang xem', 'You can click on the map below to select the Lat/Lon fields': 'Bạn có thể nhấn vào bản đồ phía dưới để chọn các trường Vĩ độ/Kinh độ', 'You can only make %d kit(s) with the available stock': 'Bạn chỉ có thể điền %d bộ(s) với các số lượng hàng có sẵn', 'You can select the Draw tool': 'Bạn có thể lựa chọn công cụ Vẽ', 'You can set the modem settings for SMS here.': 'Bạn có thể cài đặt modem cho tin nhắn ở đây', 'You can use the Conversion Tool to convert from either GPS coordinates or Degrees/Minutes/Seconds.': 'Bạn có thể sử dụng Công cụ Đổi để chuyển đổi từ tọa độ GPS (Hệ thống định vị toàn cầu) hoặc Độ/ Phút/ Giây.', 'You do not have permission for any facility to add an order.': 'Bạn không có quyền đối với bất kỳ tính năng nào để thêm đơn đặt hàng.', 'You do not have permission for any facility to make a commitment.': 'Bạn không có quyền đối với bất kỳ tính năng nào để đưa ra cam kết.', 'You do not have permission for any facility to make a request.': 'Bạn không có quyền đối với bất kỳ tính năng nào để đưa ra yêu cầu.', 'You do not have permission for any facility to perform this action.': 'Bạn không có quyền đối với bất kỳ tính năng nào để thực hiện hành động này.', 'You do not have permission for any facility to receive a shipment.': 'Bạn không có quyền đối với bất kỳ tính năng nào để nhận chuyến hàng.', 'You do not have permission for any facility to send a shipment.': 'Bạn không có quyền đối với bất kỳ tính năng nào để gửi chuyến hàng.', 'You do not have permission for any organization to perform this action.': 'Bạn không có quyền truy cập bất cứ tổ chức nào để thực hiện hành động này', 'You do not have permission for any site to add an inventory item.': 'Bạn không được phép thêm mặt hàng lưu kho tại bất kỳ địa điểm nào.', 'You do not have permission to adjust the stock level in this warehouse.': 'Bạn không được phép điều chỉnh cấp độ lưu kho trong nhà kho này.', 'You do not have permission to cancel this received shipment.': 'Bạn không được phép hủy lô hàng đã nhận này.', 'You do not have permission to cancel this sent shipment.': 'Bạn không được phép hủy lô hàng đã gửi này.', 'You do not have permission to make this commitment.': 'Bạn không được phép thực hiện cam kết này.', 'You do not have permission to receive this shipment.': 'Bạn không được phép nhận lô hàng này.', 'You do not have permission to return this sent shipment.': 'Bạn không được phép trả lại lô hàng đã gửi này.', 'You do not have permission to send messages': 'Bạn không được phép gửi tin nhắn', 'You do not have permission to send this shipment.': 'Bạn không được phép gửi lô hàng này.', 'You have unsaved changes. You need to press the Save button to save them': 'Bạn chưa lưu lại những thay đổi. Bạn cần nhấn nút Lưu để lưu lại những thay đổi này', 'You must enter a minimum of %d characters': 'Bạn phải điền ít nhất %d ký tự', 'You must provide a series id to proceed.': 'Bạn phải nhập số id của serie để thao tác tiếp', 'You need to check all item quantities and allocate to bins before you can receive the shipment': 'Bạn cần kiểm tra số lượng của tất cả các mặt hàng và chia thành các thùng trước khi nhận lô hàng', 'You need to check all item quantities before you can complete the return process': 'Bạn cần kiểm tra số lượng của tất cả các mặt hàng trước khi hoàn tất quá trình trả lại hàng', 'You need to create a template before you can create a series': 'Bạn cần tạo ra một biểu mẫu trước khi tạo ra một loạt các biểu mẫu', 'You need to use the spreadsheet which you can download from this page': 'Bạn cần sử dụng bảng tính tải từ trang này', 'You should edit Twitter settings in models/000_config.py': 'Bạn nên chỉnh sửa cài đặt Twitter trong các kiểu models/000-config.py', 'Your name for this search. Notifications will use this name.': 'Tên của bạn cho tìm kiếm này. Các thông báo sẽ sử dụng tên này.', 'Your post was added successfully.': 'Bạn đã gửi thông tin thành công', 'Youth Development': 'Phát triển thanh thiếu niên', 'Youth and Volunteer Development': 'Phát triển TNV và Thanh thiếu niên', 'Zone Types': 'Các loại vùng châu lục', 'Zones': 'Vùng châu lục', 'Zoom In: click in the map or use the left mouse button and drag to create a rectangle': 'Phóng to: nhấn vào bản đồ hoặc sử dụng nút chuột trái và kéo để tạo ra một hình chữ nhật', 'Zoom Levels': 'Các cấp độ phóng', 'Zoom Out: click in the map or use the left mouse button and drag to create a rectangle': 'Thu nhỏ: nhấn vào bản đồ hoặc sử dụng nút chuột trái và kéo để tạo ra một hình chữ nhật', 'Zoom in closer to Edit OpenStreetMap layer': 'Phóng gần hơn tới lớp Sửa Bản đồ Đường đi Chưa xác định', 'Zoom to Current Location': 'Phóng đến Địa điểm Hiện tại', 'Zoom to maximum map extent': 'Phóng to để mở rộng tối đa bản đồ', 'Zoom': 'Phóng', 'access granted': 'truy cập được chấp thuận', 'activate to sort column ascending': 'Sắp xếp theo thứ tự tăng dần', 'activate to sort column descending': 'Sắp xếp theo thứ tự giảm dần', 'active': 'đang hoạt động', 'adaptation to climate change, sustainable development': 'thích ứng với biến đổi khí hậu, phát triển bền vững', 'always update': 'luôn luôn cập nhật', 'an individual/team to do in 1-2 days': 'một cá nhân/nhóm thực hiện trong 1-2 ngày', 'and': 'và', 'anonymous user': 'Người dùng nặc danh', 'assigned': 'đã phân công', 'at-risk populations, including: children, orphans, disabled, elderly, homeless, hospitalized people, illegal immigrants, illiterate, medically or chemically dependent, impoverished p': 'đối tượng chịu rủi ro gồm có: trẻ em, trẻ mồ côi, người khuyết tật, người già, người vô gia cư, người bệnh, dân di cư bất hợp pháp, người không biết chữ, người phải điều trị hóa chất hoặc điều trị y tế, người nghèo ', 'average': 'Trung bình', 'black': 'đen', 'blond': 'Tóc vàng', 'blue': 'Xanh da trời', 'brown': 'Nâu', 'bubonic plague, cholera, dengue, non-pandemic diseases, typhoid': 'bệnh dịch hạch, dịch tả, bệnh đănggơ, bệnh không phát dịch, bệnh thương hàn', 'building back better, long-term recovery and reconstruction, rehabilitation, shelter': 'hồi phục tốt hơn, tái xây dựng và phục hồi lâu dài, nhà tạm', 'building codes, building standards, building materials, construction, retrofitting': 'luật xây dựng, tiêu chuẩn xây dựng, vật liệu xây dựng, trang bị thêm ', 'by %(person)s': 'bởi %(person)s', 'by': 'bởi', 'can be used to extract data from spreadsheets and put them into database tables.': 'có thể dùng để trích xuất dữ liệu từ bẳng tính đưa vào cơ sở dữ liệu', 'cannot be deleted.': 'không thể xóa', 'capacity of health practitioners, mental health': 'năng lực của cán bộ CSSK, sức khỏe tâm thần', 'check all': 'kiểm tra tất cả', 'civic action, collective community action, community-based organization (CBO) action, grassroots action, integrative DRR, non-governmental organization (NGO) action': 'hành động của công dân, của cộng đồng, của các tổ chức dựa vào cộng đồng, GNRRTH mang tính tích hợp, các hành động của các tổ chức phi chính phủ.', 'civil protection, contingency and emergency planning, early recovery, preparedness': 'bảo vệ nhân dân, lập kế hoạch dự phòng và ứng phó với tình huống khẩn cấp, phục hồi nhanh, phòng ngừa', 'clear': 'xóa', 'click here': 'Ấn vào đây', 'coastal flood, wave surge, wind setup': 'lũ ven biển, sóng dâng cao, tạo gió', 'consider': 'cân nhắc', 'contains': 'Gồm có', 'coping capacity, loss absorption, loss acceptance, psychosocial support, social vulnerability, trauma prevention': 'khả năng ứng phó, khả năng chịu tổn thất, hỗ trợ tâm lý, tổn thương xã hội, ngăn ngừa các chấn thương tâm lý', 'corporate social responsibility, private sector engagement in DRR': 'trách nhiệm với xã hội của các công ty, tập đoàn, sự tham gia của khu vực tư nhân vào công tác GNRRTH', 'cost benefit analysis, disaster risk financing, financial effects of disasters, poverty and disaster risk, risk sharing, socio-economic impacts of disasters': 'phân tích lợi ích kinh tế, hỗ trợ tài chính cho hoạt động ứng phó với rủi ro thảm họa, ảnh hưởng tài chính của thảm họa, nghèo đói và rủi ro thảm họa, sự tác động đến kinh tế xã hội của thảm họa', 'crater, lava, magma, molten materials, pyroclastic flows, volcanic rock, volcanic ash': 'dung nham, vật liệu nóng chảy, nham tầng phun trào, nham thạch, bụi núi lửa', 'created': 'Đã tạo', 'curly': 'Xoắn', 'current': 'Đang hoạt động', 'daily': 'hàng ngày', 'dark': 'tối', 'database %s select': '%s cơ sở dự liệu lựa chọn', 'database': 'Cơ sở Dữ liệu', 'days': 'các ngày', 'debris flow, mud flow, mud slide, rock fall, slide, lahar, rock slide and topple': 'sạt lở đất, đá, sạt bùn', 'deceased': 'Đã chết', 'deficiency of precipitation, desertification, pronounced absence of rainfall': 'thiếu nước, sa mạc hóa, không có mưa kéo dài', 'delete all checked': 'Xóa tất cả các chọn', 'deleted': 'đã xóa', 'disaster databases, disaster information, disaster risk information portals, ICT': 'cơ sở dữ liệu về thảm họa, thông tin thảm họa, cổng thông tin về rủi ro thảm họa, ICT', 'disaster insurance, contingency funding, micro-insurance, post-disaster loans, risk financing, risk insurance, risk sharing, pooling': 'bảo hiểm thảm họa, quỹ dự phòng, bảo hiểm vi mô, khoản vay sau thảm họa, hỗ trợ tài chính nhằm ứng phó với rủi ro, chia sẻ, hợp nhất nhằm ứng phó với rủi ro', 'disaster reporting, disaster information dissemination': 'báo cáo thảm họa, tuyên truyền thông tin về thảm họa', 'disaster risk reduction policy and legislation, National Platform for disaster risk reduction, Regional Platforms for disaster risk reduction': 'việc banh hành và hoạch định chính sách về GNRRTH, Diễn đàn quốc gia về GNRRTH, Diễn đàn khu vực về GNRRTH', 'diseased': 'Bị dịch bệnh', 'displaced': 'Sơ tán', 'divorced': 'ly hôn', 'does not contain': 'không chứa', 'drinking water, freshwater, irrigation, potable water, water and sanitation, water resource management': 'nước uống, nước ngọt, hệ thống tưới tiêu, nước sạch và vệ sinh, quản lý nguồn nước', 'e.g. Census 2010': 'ví dụ Điều tra 2010', 'editor': 'người biên tập', 'expired': 'đã hết hạn', 'export as csv file': 'Xuất dưới dạng file csv', 'extreme weather, extreme temperature, cold temperatures': 'thời tiết cực đoan, nhiệt độ khắc nghiệt, nhiệt độ lạnh', 'extreme weather, extreme temperature, high temperatures': 'thời tiết cực đoan, nhiệt độ khắc nghiệt, nhiệt độ cao', 'fair': 'công bằng', 'fat': 'béo', 'feedback': 'phản hồi', 'female': 'nữ', 'fill in order: day(2) month(2) year(4)': 'điền theo thứ tự: ngày(2) tháng(2) năm(4)', 'fill in order: hour(2) min(2) day(2) month(2) year(4)': 'điền theo thứ tự: giờ(2) phút(2) ngày(2) tháng(2) năm(4)', 'forehead': 'Phía trước', 'form data': 'Tạo dữ liệu', 'found': 'Tìm thấy', 'full': 'đầy đủ', 'gendered vulnerability, gender-sensitive disaster risk management': 'tình trạng dễ bị tổn thương có yếu tố về giới, quản lý rủi ro thảm họa có tính nhạy cảm về giới', 'geographic information systems, hazard exposure mapping, vulnerability mapping, risk mapping': 'hệ thống thông tin địa lý, bản đồ hiểm họa, bản đồ tình trạng dễ bị tổn thương, bản đồ rủi ro', 'getting': 'đang nhận được', 'green': 'xanh lá cây', 'grey': 'xám', 'here': 'ở đây', 'hourly': 'hàng giờ', 'hours': 'thời gian hoạt động', 'hurricane, tropical storm, tropical depression, typhoon': 'bão, bão nhiệt đới, áp thấp nhiệt đới', 'ignore': 'bỏ qua', 'in GPS format': 'Ở định dạng GPS', 'in Stock': 'Tồn kho', 'in this': 'trong đó', 'in': 'trong', 'injured': 'Bị thương', 'input': 'nhập liệu', 'insert new %s': 'Thêm mới %s', 'insert new': 'Thêm mới', 'insufficient number of pages provided': 'không đủ số lượng trang được cung cấp', 'inundation; includes: flash floods': 'ngập úng, lũ quét', 'invalid request': 'Yêu cầu không hợp lệ', 'is a central online repository where information on all the disaster victims and families, especially identified casualties, evacuees and displaced people can be stored. Information like name, age, contact number, identity card number, displaced location, and other details are captured. Picture and finger print details of the people can be uploaded to the system. People can also be captured by group for efficiency and convenience.': 'là trung tâm thông tin trực tuyến, nơi lưu trữ thông tin về các nạn nhân và gia đình chịu ảnh hưởng của thiên tai, đặc biệt là xác định con số thương vong và lượng người sơ tán.Thông tin như tên, tuổi, số điện thoại, số CMND, nơi sơ tán và các thông tin khác cũng được lưu lại.Ảnh và dấu vân tay cũng có thể tải lên hệ thống.Để hiệu quả và tiện lợi hơn có thể quản lý theo nhóm', 'items selected': 'mặt hàng được lựa chọn', 'key': 'phím', 'label': 'Nhãn', 'latrines': 'nhà vệ sinh', 'learning, safe schools': 'trường học an toàn, giáo dục', 'light': 'Ánh sáng', 'local knowledge, local risk mapping': 'hiểu biết của địa phương, lập bản đồ rủi ro của địa phương', 'locust, plague, African bees': 'châu chấu, ong Châu Phi', 'long': 'dài', 'long>12cm': 'dài>12cm', 'male': 'Nam', 'mandatory fields': 'Trường bắt buộc', 'married': 'đã kết hôn', 'max': 'tới', 'maxExtent': 'Mở rộng tối đa', 'maxResolution': 'Độ phân giải tối đa', 'medium': 'trung bình', 'medium<12cm': 'trung bình <12cm', 'min': 'từ', 'minutes': 'biên bản', 'missing': 'mất tích', 'moderate': 'trung bình', 'module allows the site administrator to configure various options.': 'mô đun cho phép người quản trị trang thông tin cài đặt cấu hình các tùy chọn khác nhau', 'module helps monitoring the status of hospitals.': 'module giúp theo dõi tình trạng bệnh viện', 'multiple hazard crisis, humanitarian crisis, conflict': 'đa hiểm họa, xung đột, khủng hoảng nhân đạo', 'multiplier[0]': 'số nhân[0]', 'natural hazard': 'thảm họa thiên nhiên', 'negroid': 'người da đen', 'never update': 'không bao giờ cập nhật', 'never': 'không bao giờ', 'new ACL': 'ACL mới', 'new': 'thêm mới', 'next 50 rows': '50 dòng tiếp theo', 'no options available': 'không có lựa chọn sẵn có', 'no': 'không', 'none': 'không có', 'normal': 'bình thường', 'not specified': 'không xác định', 'obsolete': 'Đã thôi hoạt động', 'of total data reported': 'của dữ liệu tổng được báo cáo', 'of': 'của', 'offices by organisation': 'văn phòng theo tổ chức', 'on %(date)s': 'vào %(date)s', 'or import from csv file': 'hoặc nhập dữ liệu từ tệp tin csv', 'or': 'hoặc', 'other': 'khác', 'out of': 'ngoài ra', 'over one hour': 'hơn một tiếng', 'overdue': 'quá hạn', 'paid': 'đã nộp', 'per month': 'theo tháng', 'piece': 'chiếc', 'poor': 'nghèo', 'popup_label': 'nhãn_cửa sổ tự động hiển thị', 'previous 50 rows': '50 dòng trước', 'problem connecting to twitter.com - please refresh': 'lỗi kết nối với twitter.com - vui lòng tải lại', 'provides a catalogue of digital media.': 'cung cấp danh mục các phương tiện truyền thông kỹ thuật số', 'pull and push': 'kéo và đẩy', 'pull': 'kéo', 'push': 'đẩy', 'record does not exist': 'Thư mục ghi không tồn tại', 'record id': 'lưu tên truy nhập', 'records deleted': 'hồ sơ đã được xóa', 'red': 'đỏ', 'replace': 'thay thế', 'reports successfully imported.': 'báo cáo đã được nhập khẩu thành công', 'representation of the Polygon/Line.': 'đại diện của Polygon/Line.', 'retry': 'Thử lại', 'risk assessment, loss data, disaster risk management': 'đánh giá rủi ro, dữ liệu thiệt hại, quản lý rủi ro thảm họa', 'risk knowledge, monitoring and warning service, risk communication, response capability, disaster preparedness, risk modelling': 'tăng cường hiểu biết về rủi ro, hoạt động cảnh báo và giám sát, truyền thông về rủi ro, khả năng ứng phó, phòng ngừa thảm họa, lập mô hình ứng phó với rủi ro', 'river': 'sông', 'row.name': 'dòng.tên', 'search': 'tìm kiếm', 'seconds': 'giây', 'see comment': 'xem ghi chú', 'seismic, tectonic': 'địa chấn', 'selected': 'được lựa chọn', 'separated from family': 'Chia tách khỏi gia đình', 'separated': 'ly thân', 'shaved': 'bị cạo sạch', 'short': 'Ngắn', 'short<6cm': 'Ngắn hơn <6cm', 'sides': 'các mặt', 'sign-up now': 'Đăng ký bây giờ', 'simple': 'đơn giản', 'single': 'độc thân', 'slim': 'mỏng', 'straight': 'thẳng hướng', 'strong': 'Mạnh', 'sublayer.name': 'tên.lớp dưới', 'submitted by': 'được gửi bởi', 'suffered financial losses': 'Các mất mát tài chính đã phải chịu', 'sustainable development, environmental degradation, ecosystems and environmental management': 'phát triển bền vững, thoái hóa môi trường, quản lý môi trường và hệ sinh thái', 'table': 'bảng', 'tall': 'cao', 'text': 'từ khóa', 'times (0 = unlimited)': 'thời gian (0 = vô hạn)', 'times and it is still not working. We give in. Sorry.': 'Nhiều lần mà vẫn không có kết quả, thất bại, xin lỗi', 'times': 'thời gian', 'to access the system': 'truy cập vào hệ thống', 'to download a OCR Form.': 'Để tải xuống một mẫu OCR', 'tonsure': 'lễ cạo đầu', 'total': 'tổng', 'training and development, institutional strengthening, institutional learning': 'tập huấn và phát triển, tăng cường thể chế, tăng cường hiểu biết của tổ chức', 'tweepy module not available within the running Python - this needs installing for non-Tropo Twitter support!': 'mô đun tweepy không có trong quá trình chạy Python - cần cài đặt để hỗ trợ Twitter không có Tropo!', 'unapproved': 'chưa được chấp thuận', 'uncheck all': 'bỏ chọn toàn bộ', 'unknown': 'không biết', 'unlimited': 'vô hạn', 'up to 3 locations': 'lên tới 3 địa điểm', 'update if master': 'cập nhật nếu là bản gốc', 'update if newer': 'cập nhật nếu mới hơn', 'update': 'cập nhật', 'updated': 'đã cập nhật', 'urban fire, bush fire, forest fire, uncontrolled fire, wildland fire': 'cháy trong đô thị, cháy rừng, cháy không kiểm soát, cháy vùng đất hoang dã', 'urban planning, urban management': 'quy hoạch đô thị, quản lý đô thị', 'using default': 'sử dụng mặc định', 'waterspout, twister, vortex': 'vòi rồng, gió xoáy, giông lốc', 'wavy': 'dạng sóng', 'weekly': 'hàng tuần', 'weeks': 'tuần', 'white': 'trắng', 'wider area, longer term, usually contain multiple Activities': 'khu vực rộng lớn hơn, dài hạn hơn, thường chứa nhiều Hoạt động', 'widowed': 'góa', 'within human habitat': 'trong khu dân cư', 'yes': 'có', }<|fim▁end|>
'Summary of Completed Assessment Forms': 'Tổng hợp biểu mẫu đánh giá đã hoàn thành',
<|file_name|>socket.js<|end_file_name|><|fim▁begin|>define(['socket.io'], function() { var socket = io.connect('//' + window.document.location.host);<|fim▁hole|>})<|fim▁end|>
return socket;
<|file_name|>utils.py<|end_file_name|><|fim▁begin|>""" Utilities and helper functions<|fim▁hole|> try: return model.objects.get(**kwargs) except model.DoesNotExist: return None<|fim▁end|>
""" def get_object_or_none(model, **kwargs):
<|file_name|>uint_macros.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![experimental] #![macro_escape] #![doc(hidden)] #![allow(unsigned_negate)] macro_rules! uint_module (($T:ty) => ( // String conversion functions and impl str -> num /// Parse a byte slice as a number in the given base /// /// Yields an `Option` because `buf` may or may not actually be parseable. /// /// # Examples /// /// ``` /// let num = std::uint::parse_bytes([49,50,51,52,53,54,55,56,57], 10); /// assert!(num == Some(123456789)); /// ``` #[inline] #[experimental = "might need to return Result"] pub fn parse_bytes(buf: &[u8], radix: uint) -> Option<$T> { strconv::from_str_bytes_common(buf, radix, false, false, false, strconv::ExpNone, false, false) } #[experimental = "might need to return Result"] impl FromStr for $T { #[inline] fn from_str(s: &str) -> Option<$T> { strconv::from_str_common(s, 10u, false, false, false, strconv::ExpNone, false, false)<|fim▁hole|>impl FromStrRadix for $T { #[inline] fn from_str_radix(s: &str, radix: uint) -> Option<$T> { strconv::from_str_common(s, radix, false, false, false, strconv::ExpNone, false, false) } } // String conversion functions and impl num -> str /// Convert to a string as a byte slice in a given base. /// /// Use in place of x.to_string() when you do not need to store the string permanently /// /// # Examples /// /// ``` /// #![allow(deprecated)] /// /// std::uint::to_str_bytes(123, 10, |v| { /// assert!(v == "123".as_bytes()); /// }); /// ``` #[inline] #[deprecated = "just use .to_string(), or a BufWriter with write! if you mustn't allocate"] pub fn to_str_bytes<U>(n: $T, radix: uint, f: |v: &[u8]| -> U) -> U { use io::{Writer, Seek}; // The radix can be as low as 2, so we need at least 64 characters for a // base 2 number, and then we need another for a possible '-' character. let mut buf = [0u8, ..65]; let amt = { let mut wr = ::io::BufWriter::new(buf); (write!(&mut wr, "{}", ::fmt::radix(n, radix as u8))).unwrap(); wr.tell().unwrap() as uint }; f(buf.slice(0, amt)) } #[deprecated = "use fmt::radix"] impl ToStrRadix for $T { /// Convert to a string in a given base. #[inline] fn to_str_radix(&self, radix: uint) -> String { format!("{}", ::fmt::radix(*self, radix as u8)) } } #[cfg(test)] mod tests { use prelude::*; use super::*; use num::ToStrRadix; use str::StrSlice; use u16; #[test] pub fn test_to_string() { assert_eq!((0 as $T).to_str_radix(10u), "0".to_string()); assert_eq!((1 as $T).to_str_radix(10u), "1".to_string()); assert_eq!((2 as $T).to_str_radix(10u), "2".to_string()); assert_eq!((11 as $T).to_str_radix(10u), "11".to_string()); assert_eq!((11 as $T).to_str_radix(16u), "b".to_string()); assert_eq!((255 as $T).to_str_radix(16u), "ff".to_string()); assert_eq!((0xff as $T).to_str_radix(10u), "255".to_string()); } #[test] pub fn test_from_str() { assert_eq!(from_str::<$T>("0"), Some(0u as $T)); assert_eq!(from_str::<$T>("3"), Some(3u as $T)); assert_eq!(from_str::<$T>("10"), Some(10u as $T)); assert_eq!(from_str::<u32>("123456789"), Some(123456789 as u32)); assert_eq!(from_str::<$T>("00100"), Some(100u as $T)); assert!(from_str::<$T>("").is_none()); assert!(from_str::<$T>(" ").is_none()); assert!(from_str::<$T>("x").is_none()); } #[test] pub fn test_parse_bytes() { use str::StrSlice; assert_eq!(parse_bytes("123".as_bytes(), 10u), Some(123u as $T)); assert_eq!(parse_bytes("1001".as_bytes(), 2u), Some(9u as $T)); assert_eq!(parse_bytes("123".as_bytes(), 8u), Some(83u as $T)); assert_eq!(u16::parse_bytes("123".as_bytes(), 16u), Some(291u as u16)); assert_eq!(u16::parse_bytes("ffff".as_bytes(), 16u), Some(65535u as u16)); assert_eq!(parse_bytes("z".as_bytes(), 36u), Some(35u as $T)); assert!(parse_bytes("Z".as_bytes(), 10u).is_none()); assert!(parse_bytes("_".as_bytes(), 2u).is_none()); } #[test] fn test_uint_to_str_overflow() { let mut u8_val: u8 = 255_u8; assert_eq!(u8_val.to_string(), "255".to_string()); u8_val += 1 as u8; assert_eq!(u8_val.to_string(), "0".to_string()); let mut u16_val: u16 = 65_535_u16; assert_eq!(u16_val.to_string(), "65535".to_string()); u16_val += 1 as u16; assert_eq!(u16_val.to_string(), "0".to_string()); let mut u32_val: u32 = 4_294_967_295_u32; assert_eq!(u32_val.to_string(), "4294967295".to_string()); u32_val += 1 as u32; assert_eq!(u32_val.to_string(), "0".to_string()); let mut u64_val: u64 = 18_446_744_073_709_551_615_u64; assert_eq!(u64_val.to_string(), "18446744073709551615".to_string()); u64_val += 1 as u64; assert_eq!(u64_val.to_string(), "0".to_string()); } #[test] fn test_uint_from_str_overflow() { let mut u8_val: u8 = 255_u8; assert_eq!(from_str::<u8>("255"), Some(u8_val)); assert!(from_str::<u8>("256").is_none()); u8_val += 1 as u8; assert_eq!(from_str::<u8>("0"), Some(u8_val)); assert!(from_str::<u8>("-1").is_none()); let mut u16_val: u16 = 65_535_u16; assert_eq!(from_str::<u16>("65535"), Some(u16_val)); assert!(from_str::<u16>("65536").is_none()); u16_val += 1 as u16; assert_eq!(from_str::<u16>("0"), Some(u16_val)); assert!(from_str::<u16>("-1").is_none()); let mut u32_val: u32 = 4_294_967_295_u32; assert_eq!(from_str::<u32>("4294967295"), Some(u32_val)); assert!(from_str::<u32>("4294967296").is_none()); u32_val += 1 as u32; assert_eq!(from_str::<u32>("0"), Some(u32_val)); assert!(from_str::<u32>("-1").is_none()); let mut u64_val: u64 = 18_446_744_073_709_551_615_u64; assert_eq!(from_str::<u64>("18446744073709551615"), Some(u64_val)); assert!(from_str::<u64>("18446744073709551616").is_none()); u64_val += 1 as u64; assert_eq!(from_str::<u64>("0"), Some(u64_val)); assert!(from_str::<u64>("-1").is_none()); } #[test] #[should_fail] pub fn to_str_radix1() { 100u.to_str_radix(1u); } #[test] #[should_fail] pub fn to_str_radix37() { 100u.to_str_radix(37u); } } ))<|fim▁end|>
} } #[experimental = "might need to return Result"]
<|file_name|>auto_channels.go<|end_file_name|><|fim▁begin|>// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. package app import ( "github.com/mattermost/platform/model" "github.com/mattermost/platform/utils" ) <|fim▁hole|> Fuzzy bool DisplayNameLen utils.Range DisplayNameCharset string NameLen utils.Range NameCharset string ChannelType string } func NewAutoChannelCreator(client *model.Client, team *model.Team) *AutoChannelCreator { return &AutoChannelCreator{ client: client, team: team, Fuzzy: false, DisplayNameLen: CHANNEL_DISPLAY_NAME_LEN, DisplayNameCharset: utils.ALPHANUMERIC, NameLen: CHANNEL_NAME_LEN, NameCharset: utils.LOWERCASE, ChannelType: CHANNEL_TYPE, } } func (cfg *AutoChannelCreator) createRandomChannel() (*model.Channel, bool) { var displayName string if cfg.Fuzzy { displayName = utils.FuzzName() } else { displayName = utils.RandomName(cfg.NameLen, cfg.NameCharset) } name := utils.RandomName(cfg.NameLen, cfg.NameCharset) channel := &model.Channel{ TeamId: cfg.team.Id, DisplayName: displayName, Name: name, Type: cfg.ChannelType} println(cfg.client.GetTeamRoute()) result, err := cfg.client.CreateChannel(channel) if err != nil { err.Translate(utils.T) println(err.Error()) println(err.DetailedError) return nil, false } return result.Data.(*model.Channel), true } func (cfg *AutoChannelCreator) CreateTestChannels(num utils.Range) ([]*model.Channel, bool) { numChannels := utils.RandIntFromRange(num) channels := make([]*model.Channel, numChannels) for i := 0; i < numChannels; i++ { var err bool channels[i], err = cfg.createRandomChannel() if err != true { return channels, false } } return channels, true }<|fim▁end|>
type AutoChannelCreator struct { client *model.Client team *model.Team
<|file_name|>configuration.d.ts<|end_file_name|><|fim▁begin|>/** * @license * Copyright 2013 Palantir Technologies, Inc. * * 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. */ import { IOptions, RuleSeverity } from "./language/rule/rule"; export interface IConfigurationFile { /** * @deprecated property is never set * * The severity that is applied to rules in this config file as well as rules * in any inherited config files which have their severity set to "default". * Not inherited. */ defaultSeverity?: RuleSeverity; /** * An array of config files whose rules are inherited by this config file. */ extends: string[]; /** * Rules that are used to lint to JavaScript files. */ jsRules: Map<string, Partial<IOptions>>; /** * A subset of the CLI options. */ linterOptions?: Partial<{ exclude: string[]; format: string; }>; /** * Directories containing custom rules. Resolved using node module semantics. */ rulesDirectory: string[]; /** * Rules that are used to lint TypeScript files. */ rules: Map<string, Partial<IOptions>>; } export interface IConfigurationLoadResult { path?: string; results?: IConfigurationFile; } export declare const JSON_CONFIG_FILENAME = "tslint.json"; /** @deprecated use `JSON_CONFIG_FILENAME` or `CONFIG_FILENAMES` instead. */ export declare const CONFIG_FILENAME = "tslint.json"; export declare const CONFIG_FILENAMES: string[]; export declare const DEFAULT_CONFIG: IConfigurationFile; export declare const EMPTY_CONFIG: IConfigurationFile; /** * Searches for a TSLint configuration and returns the data from the config. * @param configFile A path to a config file, this can be null if the location of a config is not known * @param inputFilePath A path containing the current file being linted. This is the starting location * of the search for a configuration. * @returns Load status for a TSLint configuration object */ export declare function findConfiguration(configFile: string | null, inputFilePath: string): IConfigurationLoadResult; export declare function findConfiguration(configFile: string, inputFilePath?: string): IConfigurationLoadResult; /** * Searches for a TSLint configuration and returns the path to it. * Could return undefined if not configuration is found. * @param suppliedConfigFilePath A path to an known config file supplied by a user. Pass null here if * the location of the config file is not known and you want to search for one. * @param inputFilePath A path to the current file being linted. This is the starting location * of the search for a configuration.<|fim▁hole|> * @returns An absolute path to a tslint.json or tslint.yml or tslint.yaml file * or undefined if neither can be found. */ export declare function findConfigurationPath(suppliedConfigFilePath: string | null, inputFilePath: string): string | undefined; export declare function findConfigurationPath(suppliedConfigFilePath: string, inputFilePath?: string): string | undefined; /** * Used Node semantics to load a configuration file given configFilePath. * For example: * '/path/to/config' will be treated as an absolute path * './path/to/config' will be treated as a relative path * 'path/to/config' will attempt to load a to/config file inside a node module named path * @param configFilePath The configuration to load * @param originalFilePath (deprecated) The entry point configuration file * @returns a configuration object for TSLint loaded from the file at configFilePath */ export declare function loadConfigurationFromPath(configFilePath?: string, _originalFilePath?: string): IConfigurationFile; /** Reads the configuration file from disk and parses it as raw JSON, YAML or JS depending on the extension. */ export declare function readConfigurationFile(filepath: string): RawConfigFile; export declare function extendConfigurationFile(targetConfig: IConfigurationFile, nextConfigSource: IConfigurationFile): IConfigurationFile; /** * returns the absolute path (contrary to what the name implies) * * @deprecated use `path.resolve` instead */ export declare function getRelativePath(directory?: string | null, relativeTo?: string): string | undefined; export declare function useAsPath(directory: string): boolean; /** * @param directories A path(s) to a directory of custom rules * @param relativeTo A path that directories provided are relative to. * For example, if the directories come from a tslint.json file, this path * should be the path to the tslint.json file. * @return An array of absolute paths to directories potentially containing rules */ export declare function getRulesDirectories(directories?: string | string[], relativeTo?: string): string[]; export interface RawConfigFile { extends?: string | string[]; linterOptions?: IConfigurationFile["linterOptions"]; rulesDirectory?: string | string[]; defaultSeverity?: string; rules?: RawRulesConfig; jsRules?: RawRulesConfig | boolean; } export interface RawRulesConfig { [key: string]: RawRuleConfig; } export declare type RawRuleConfig = null | undefined | boolean | any[] | { severity?: RuleSeverity | "warn" | "none" | "default"; options?: any; }; /** * Parses a config file and normalizes legacy config settings. * If `configFileDir` and `readConfig` are provided, this function will load all base configs and reduce them to the final configuration. * * @param configFile The raw object read from the JSON of a config file * @param configFileDir The directory of the config file * @param readConfig Will be used to load all base configurations while parsing. The function is called with the resolved path. */ export declare function parseConfigFile(configFile: RawConfigFile, configFileDir?: string, readConfig?: (path: string) => RawConfigFile): IConfigurationFile; /** * Fills in default values for `IOption` properties and outputs an array of `IOption` */ export declare function convertRuleOptions(ruleConfiguration: Map<string, Partial<IOptions>>): IOptions[]; export declare function isFileExcluded(filepath: string, configFile?: IConfigurationFile): boolean; export declare function stringifyConfiguration(configFile: IConfigurationFile): string;<|fim▁end|>
<|file_name|>aiplatform_generated_aiplatform_v1beta1_metadata_service_query_context_lineage_subgraph_async.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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. # # Generated code. DO NOT EDIT! # # Snippet for QueryContextLineageSubgraph<|fim▁hole|># python3 -m pip install google-cloud-aiplatform # [START aiplatform_generated_aiplatform_v1beta1_MetadataService_QueryContextLineageSubgraph_async] from google.cloud import aiplatform_v1beta1 async def sample_query_context_lineage_subgraph(): # Create a client client = aiplatform_v1beta1.MetadataServiceAsyncClient() # Initialize request argument(s) request = aiplatform_v1beta1.QueryContextLineageSubgraphRequest( context="context_value", ) # Make the request response = await client.query_context_lineage_subgraph(request=request) # Handle the response print(response) # [END aiplatform_generated_aiplatform_v1beta1_MetadataService_QueryContextLineageSubgraph_async]<|fim▁end|>
# NOTE: This snippet has been automatically generated for illustrative purposes only. # It may require modifications to work in your environment. # To install the latest published package dependency, execute the following:
<|file_name|>promlex.l.go<|end_file_name|><|fim▁begin|>// CAUTION: Generated file - DO NOT EDIT. // Copyright 2017 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package textparse import ( "github.com/pkg/errors" ) const ( sInit = iota sComment sMeta1 sMeta2 sLabels sLValue sValue sTimestamp sExemplar sEValue sETimestamp ) // Lex is called by the parser generated by "go tool yacc" to obtain each // token. The method is opened before the matching rules block and closed at // the end of the file. func (l *promlexer) Lex() token { if l.i >= len(l.b) { return tEOF } c := l.b[l.i] l.start = l.i yystate0: switch yyt := l.state; yyt { default: panic(errors.Errorf(`invalid start condition %d`, yyt)) case 0: // start condition: INITIAL goto yystart1 case 1: // start condition: sComment goto yystart8 case 2: // start condition: sMeta1 goto yystart19 case 3: // start condition: sMeta2 goto yystart21 case 4: // start condition: sLabels goto yystart24 case 5: // start condition: sLValue goto yystart29 case 6: // start condition: sValue goto yystart33 case 7: // start condition: sTimestamp goto yystart36 } goto yystate0 // silence unused label error goto yystate1 // silence unused label error yystate1: c = l.next() yystart1: switch { default: goto yyabort case c == '#': goto yystate5 case c == ':' || c >= 'A' && c <= 'Z' || c == '_' || c >= 'a' && c <= 'z': goto yystate7 case c == '\n': goto yystate4 case c == '\t' || c == ' ': goto yystate3 case c == '\x00': goto yystate2 } yystate2: c = l.next() goto yyrule1 yystate3: c = l.next() switch { default: goto yyrule3 case c == '\t' || c == ' ': goto yystate3 } yystate4: c = l.next() goto yyrule2 yystate5: c = l.next() switch { default: goto yyrule5 case c == '\t' || c == ' ': goto yystate6 } yystate6: c = l.next() switch { default: goto yyrule4 case c == '\t' || c == ' ': goto yystate6 } yystate7: c = l.next() switch { default: goto yyrule10 case c >= '0' && c <= ':' || c >= 'A' && c <= 'Z' || c == '_' || c >= 'a' && c <= 'z': goto yystate7 } goto yystate8 // silence unused label error yystate8: c = l.next() yystart8: switch { default: goto yyabort case c == 'H': goto yystate9 case c == 'T': goto yystate14 case c == '\t' || c == ' ': goto yystate3 } yystate9: c = l.next() switch { default: goto yyabort case c == 'E': goto yystate10 } yystate10: c = l.next() switch { default: goto yyabort case c == 'L': goto yystate11 } yystate11: c = l.next() switch { default: goto yyabort case c == 'P': goto yystate12 } yystate12: c = l.next() switch { default: goto yyabort case c == '\t' || c == ' ': goto yystate13 } yystate13: c = l.next() switch { default: goto yyrule6 case c == '\t' || c == ' ': goto yystate13 } yystate14: c = l.next() switch { default: goto yyabort case c == 'Y': goto yystate15 } yystate15: c = l.next() switch { default: goto yyabort case c == 'P': goto yystate16 } yystate16: c = l.next()<|fim▁hole|> switch { default: goto yyabort case c == 'E': goto yystate17 } yystate17: c = l.next() switch { default: goto yyabort case c == '\t' || c == ' ': goto yystate18 } yystate18: c = l.next() switch { default: goto yyrule7 case c == '\t' || c == ' ': goto yystate18 } goto yystate19 // silence unused label error yystate19: c = l.next() yystart19: switch { default: goto yyabort case c == ':' || c >= 'A' && c <= 'Z' || c == '_' || c >= 'a' && c <= 'z': goto yystate20 case c == '\t' || c == ' ': goto yystate3 } yystate20: c = l.next() switch { default: goto yyrule8 case c >= '0' && c <= ':' || c >= 'A' && c <= 'Z' || c == '_' || c >= 'a' && c <= 'z': goto yystate20 } goto yystate21 // silence unused label error yystate21: c = l.next() yystart21: switch { default: goto yyrule9 case c == '\t' || c == ' ': goto yystate23 case c >= '\x01' && c <= '\b' || c >= '\v' && c <= '\x1f' || c >= '!' && c <= 'ÿ': goto yystate22 } yystate22: c = l.next() switch { default: goto yyrule9 case c >= '\x01' && c <= '\t' || c >= '\v' && c <= 'ÿ': goto yystate22 } yystate23: c = l.next() switch { default: goto yyrule3 case c == '\t' || c == ' ': goto yystate23 case c >= '\x01' && c <= '\b' || c >= '\v' && c <= '\x1f' || c >= '!' && c <= 'ÿ': goto yystate22 } goto yystate24 // silence unused label error yystate24: c = l.next() yystart24: switch { default: goto yyabort case c == ',': goto yystate25 case c == '=': goto yystate26 case c == '\t' || c == ' ': goto yystate3 case c == '}': goto yystate28 case c >= 'A' && c <= 'Z' || c == '_' || c >= 'a' && c <= 'z': goto yystate27 } yystate25: c = l.next() goto yyrule15 yystate26: c = l.next() goto yyrule14 yystate27: c = l.next() switch { default: goto yyrule12 case c >= '0' && c <= '9' || c >= 'A' && c <= 'Z' || c == '_' || c >= 'a' && c <= 'z': goto yystate27 } yystate28: c = l.next() goto yyrule13 goto yystate29 // silence unused label error yystate29: c = l.next() yystart29: switch { default: goto yyabort case c == '"': goto yystate30 case c == '\t' || c == ' ': goto yystate3 } yystate30: c = l.next() switch { default: goto yyabort case c == '"': goto yystate31 case c == '\\': goto yystate32 case c >= '\x01' && c <= '!' || c >= '#' && c <= '[' || c >= ']' && c <= 'ÿ': goto yystate30 } yystate31: c = l.next() goto yyrule16 yystate32: c = l.next() switch { default: goto yyabort case c >= '\x01' && c <= '\t' || c >= '\v' && c <= 'ÿ': goto yystate30 } goto yystate33 // silence unused label error yystate33: c = l.next() yystart33: switch { default: goto yyabort case c == '\t' || c == ' ': goto yystate3 case c == '{': goto yystate35 case c >= '\x01' && c <= '\b' || c >= '\v' && c <= '\x1f' || c >= '!' && c <= 'z' || c >= '|' && c <= 'ÿ': goto yystate34 } yystate34: c = l.next() switch { default: goto yyrule17 case c >= '\x01' && c <= '\b' || c >= '\v' && c <= '\x1f' || c >= '!' && c <= 'z' || c >= '|' && c <= 'ÿ': goto yystate34 } yystate35: c = l.next() goto yyrule11 goto yystate36 // silence unused label error yystate36: c = l.next() yystart36: switch { default: goto yyabort case c == '\n': goto yystate37 case c == '\t' || c == ' ': goto yystate3 case c >= '0' && c <= '9': goto yystate38 } yystate37: c = l.next() goto yyrule19 yystate38: c = l.next() switch { default: goto yyrule18 case c >= '0' && c <= '9': goto yystate38 } yyrule1: // \0 { return tEOF } yyrule2: // \n { l.state = sInit return tLinebreak goto yystate0 } yyrule3: // [ \t]+ { return tWhitespace } yyrule4: // #[ \t]+ { l.state = sComment goto yystate0 } yyrule5: // # { return l.consumeComment() } yyrule6: // HELP[\t ]+ { l.state = sMeta1 return tHelp goto yystate0 } yyrule7: // TYPE[\t ]+ { l.state = sMeta1 return tType goto yystate0 } yyrule8: // {M}({M}|{D})* { l.state = sMeta2 return tMName goto yystate0 } yyrule9: // {C}* { l.state = sInit return tText goto yystate0 } yyrule10: // {M}({M}|{D})* { l.state = sValue return tMName goto yystate0 } yyrule11: // \{ { l.state = sLabels return tBraceOpen goto yystate0 } yyrule12: // {L}({L}|{D})* { return tLName } yyrule13: // \} { l.state = sValue return tBraceClose goto yystate0 } yyrule14: // = { l.state = sLValue return tEqual goto yystate0 } yyrule15: // , { return tComma } yyrule16: // \"(\\.|[^\\"])*\" { l.state = sLabels return tLValue goto yystate0 } yyrule17: // [^{ \t\n]+ { l.state = sTimestamp return tValue goto yystate0 } yyrule18: // {D}+ { return tTimestamp } yyrule19: // \n { l.state = sInit return tLinebreak goto yystate0 } panic("unreachable") goto yyabort // silence unused label error yyabort: // no lexem recognized // Workaround to gobble up comments that started with a HELP or TYPE // prefix. We just consume all characters until we reach a newline. // This saves us from adding disproportionate complexity to the parser. if l.state == sComment { return l.consumeComment() } return tInvalid } func (l *promlexer) consumeComment() token { for c := l.cur(); ; c = l.next() { switch c { case 0: return tEOF case '\n': l.state = sInit return tComment } } }<|fim▁end|>
<|file_name|>details.js<|end_file_name|><|fim▁begin|>import React, { Fragment } from 'react'; import { compose, graphql } from 'react-apollo'; import { set } from 'react-redux-values'; import ReduxForm from 'declarative-redux-form'; import { Row, Col } from 'joyent-react-styled-flexboxgrid'; import { Margin } from 'styled-components-spacing'; import { change } from 'redux-form'; import { connect } from 'react-redux'; import intercept from 'apr-intercept'; import get from 'lodash.get'; import { NameIcon, H3, Button, H4, P } from 'joyent-ui-toolkit'; import Title from '@components/create-image/title'; import Details from '@components/create-image/details'; import Description from '@components/description'; import GetRandomName from '@graphql/get-random-name.gql'; import createClient from '@state/apollo-client'; import { instanceName as validateName } from '@state/validators'; import { Forms } from '@root/constants'; const NameContainer = ({ expanded, proceeded, name, version, description, placeholderName, randomizing, handleAsyncValidate, shouldAsyncValidate, handleNext, handleRandomize, handleEdit, step }) => ( <Fragment> <Title id={step} onClick={!expanded && !name && handleEdit} collapsed={!expanded && !proceeded}<|fim▁hole|> {expanded ? ( <Description> Here you can name your custom image, version it, and give it a description so that you can identify it elsewhere in the Triton ecosystem. </Description> ) : null} <ReduxForm form={Forms.FORM_DETAILS} destroyOnUnmount={false} forceUnregisterOnUnmount={true} asyncValidate={handleAsyncValidate} shouldAsyncValidate={shouldAsyncValidate} onSubmit={handleNext} > {props => expanded ? ( <Details {...props} placeholderName={placeholderName} randomizing={randomizing} onRandomize={handleRandomize} /> ) : name ? ( <Margin top="3"> <H3 bold noMargin> {name} </H3> {version ? ( <Margin top="2"> <H4 bold noMargin> {version} </H4> </Margin> ) : null} {description ? ( <Row> <Col xs="12" sm="8"> <Margin top="1"> <P>{description}</P> </Margin> </Col> </Row> ) : null} </Margin> ) : null } </ReduxForm> {expanded ? ( <Margin top="4" bottom="7"> <Button type="button" disabled={!name} onClick={handleNext}> Next </Button> </Margin> ) : proceeded ? ( <Margin top="4" bottom="7"> <Button type="button" onClick={handleEdit} secondary> Edit </Button> </Margin> ) : null} </Fragment> ); export default compose( graphql(GetRandomName, { options: () => ({ fetchPolicy: 'network-only', ssr: false }), props: ({ data }) => ({ placeholderName: data.rndName || '' }) }), connect( ({ form, values }, ownProps) => { const name = get(form, `${Forms.FORM_DETAILS}.values.name`, ''); const version = get(form, `${Forms.FORM_DETAILS}.values.version`, ''); const description = get( form, `${Forms.FORM_DETAILS}.values.description`, '' ); const proceeded = get(values, `${Forms.FORM_DETAILS}-proceeded`, false); const randomizing = get(values, 'create-image-name-randomizing', false); return { ...ownProps, proceeded, randomizing, name, version, description }; }, (dispatch, { history, match }) => ({ handleNext: () => { dispatch(set({ name: `${Forms.FORM_DETAILS}-proceeded`, value: true })); return history.push(`/images/~create/${match.params.instance}/tag`); }, handleEdit: () => { dispatch(set({ name: `${Forms.FORM_DETAILS}-proceeded`, value: true })); return history.push(`/images/~create/${match.params.instance}/name`); }, shouldAsyncValidate: ({ trigger }) => { return trigger === 'change'; }, handleAsyncValidate: validateName, handleRandomize: async () => { dispatch(set({ name: 'create-image-name-randomizing', value: true })); const [err, res] = await intercept( createClient().query({ fetchPolicy: 'network-only', query: GetRandomName }) ); dispatch(set({ name: 'create-image-name-randomizing', value: false })); if (err) { // eslint-disable-next-line no-console console.error(err); return; } const { data } = res; const { rndName } = data; return dispatch(change(Forms.FORM_DETAILS, 'name', rndName)); } }) ) )(NameContainer);<|fim▁end|>
icon={<NameIcon />} > Image name and details </Title>
<|file_name|>theme.ts<|end_file_name|><|fim▁begin|>import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { StorageService } from '../../provider/storage.service'; import { ThemeService } from '../../provider/theme.service'; import { InformService } from '../../provider/inform.service'; /** * Generated class for the ThemePage page. * * See https://ionicframework.com/docs/components/#navigation for more info on * Ionic pages and navigation. */ @IonicPage() @Component({ selector: 'page-theme', templateUrl: 'theme.html', })<|fim▁hole|> constructor(public navCtrl: NavController, public navParams: NavParams, public sto: StorageService, public global:ThemeService, public is:InformService, ) { } list:object[]; ionViewDidLoad() { console.log('ionViewDidLoad ThemePage'); this.list=[ { name:'新桥', color:'blue', },{ name:'葡萄', color:'purple', }, { name:'原谅', color:'darkgray', }, { name:'纯白', color:'white', textColor:'#488aff', }, { name:'夜间', color:'black', }, { name:'少女', color:'indianred', }, ] } changeTheme(color){ var theme='theme-'+color; console.log('传入的主题是:'+theme); this.is.createL('设置中...',1000,()=>{ this.navCtrl.pop(); }); this.global.set('theme', theme); this.sto.save('theme',theme); } }<|fim▁end|>
export class ThemePage {
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from . import models<|fim▁hole|><|fim▁end|>
from . import lroe
<|file_name|>Pwm.cpp<|end_file_name|><|fim▁begin|>#include "Wire.h" PwmRPi::PwmRPi(unsigned char channel) { this->channel = (channel & 0x01); } void PwmRPi::begin() { pwm.address = PWM_ADDRESS; Bcm2835::mapPeripheral(&pwm); } void PwmRPi::stop() { Bcm2835::unmapPeripheral(&pwm); }<|fim▁hole|>PwmRPi Pwm0(0); PwmRPi Pwm1(1);<|fim▁end|>
<|file_name|>ImageDataComposite.java<|end_file_name|><|fim▁begin|>package com.kartoflane.superluminal2.ui.sidebar.data; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import com.kartoflane.superluminal2.Superluminal; import com.kartoflane.superluminal2.components.enums.Images; import com.kartoflane.superluminal2.components.enums.OS; import com.kartoflane.superluminal2.core.Cache; import com.kartoflane.superluminal2.core.Manager; import com.kartoflane.superluminal2.mvc.controllers.AbstractController; import com.kartoflane.superluminal2.mvc.controllers.ImageController; import com.kartoflane.superluminal2.utils.UIUtils; import com.kartoflane.superluminal2.utils.Utils; public class ImageDataComposite extends Composite implements DataComposite { private ImageController controller = null; private Label label = null; private Button btnFollowHull;<|fim▁hole|> public ImageDataComposite( Composite parent, ImageController control ) { super( parent, SWT.NONE ); setLayout( new GridLayout( 2, false ) ); controller = control; label = new Label( this, SWT.NONE ); label.setAlignment( SWT.CENTER ); label.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false, 2, 1 ) ); String alias = control.getAlias(); label.setText( "Image" + ( alias == null ? "" : " (" + alias + ")" ) ); Label separator = new Label( this, SWT.SEPARATOR | SWT.HORIZONTAL ); separator.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false, 2, 1 ) ); btnFollowHull = new Button( this, SWT.CHECK ); btnFollowHull.setLayoutData( new GridData( SWT.LEFT, SWT.CENTER, true, false, 1, 1 ) ); btnFollowHull.setText( "Follow Hull" ); lblFollowHelp = new Label( this, SWT.NONE ); lblFollowHelp.setLayoutData( new GridData( SWT.RIGHT, SWT.CENTER, false, false, 1, 1 ) ); lblFollowHelp.setImage( Cache.checkOutImage( this, "cpath:/assets/help.png" ) ); String msg = "When checked, this object will follow the hull image, so that " + "when hull is moved, this object is moved as well."; UIUtils.addTooltip( lblFollowHelp, Utils.wrapOSNot( msg, Superluminal.WRAP_WIDTH, Superluminal.WRAP_TOLERANCE, OS.MACOSX() ) ); btnFollowHull.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent e ) { if ( btnFollowHull.getSelection() ) { controller.setParent( Manager.getCurrentShip().getImageController( Images.HULL ) ); } else { controller.setParent( Manager.getCurrentShip().getShipController() ); } controller.updateFollowOffset(); } } ); updateData(); } @Override public void updateData() { String alias = controller.getAlias(); label.setText( "Image" + ( alias == null ? "" : " (" + alias + ")" ) ); ImageController hullController = Manager.getCurrentShip().getImageController( Images.HULL ); btnFollowHull.setVisible( controller != hullController ); btnFollowHull.setSelection( controller.getParent() == hullController ); lblFollowHelp.setVisible( controller != hullController ); } @Override public void setController( AbstractController controller ) { this.controller = (ImageController)controller; } public void reloadController() { } @Override public void dispose() { Cache.checkInImage( this, "cpath:/assets/help.png" ); super.dispose(); } }<|fim▁end|>
private Label lblFollowHelp;
<|file_name|>deferred.js<|end_file_name|><|fim▁begin|>// Returns function that returns deferred or promise object. // // 1. If invoked without arguments then deferred object is returned // Deferred object consist of promise (unresolved) function and resolve // function through which we resolve promise // 2. If invoked with one argument then promise is returned which resolved value // is given argument. Argument may be any value (even undefined), // if it's promise then same promise is returned // 3. If invoked with more than one arguments then promise that resolves with // array of all resolved arguments is returned. 'use strict'; var isError = require('es5-ext/lib/Error/is-error') , validError = require('es5-ext/lib/Error/valid-error') , noop = require('es5-ext/lib/Function/noop') , isPromise = require('./is-promise') , every = Array.prototype.every, push = Array.prototype.push , Deferred, createDeferred, count = 0, timeout, extendShim, ext , protoSupported = Boolean(isPromise.__proto__); extendShim = function (promise) { ext._names.forEach(function (name) { promise[name] = function () { return promise.__proto__[name].apply(promise, arguments); };<|fim▁hole|> promise.resolved = promise.__proto__.resolved; }; Deferred = function () { var promise = function (win, fail) { return promise.then(win, fail); }; if (!count) { timeout = setTimeout(noop, 1e9); } ++count; if (createDeferred._monitor) { promise.monitor = createDeferred._monitor(); } promise.__proto__ = ext._unresolved; if (!protoSupported) { extendShim(promise); } createDeferred._profile && createDeferred._profile(); this.promise = promise; this.resolve = this.resolve.bind(this); this.reject = this.reject.bind(this); }; Deferred.prototype = { resolved: false, resolve: function (value) { var i, name, data; if (this.resolved) { return this.promise; } this.resolved = true; if (!--count) { clearTimeout(timeout); } if (this.promise.monitor) { clearTimeout(this.promise.monitor); } if (isPromise(value)) { if (!value.resolved) { if (!value.dependencies) { value.dependencies = []; } value.dependencies.push(this.promise); if (this.promise.pending) { if (value.pending) { push.apply(value.pending, this.promise.pending); this.promise.pending = value.pending; if (this.promise.dependencies) { this.promise.dependencies.forEach(function self(dPromise) { dPromise.pending = value.pending; if (dPromise.dependencies) { dPromise.dependencies.forEach(self); } }); } } else { value.pending = this.promise.pending; } } else if (value.pending) { this.promise.pending = value.pending; } else { this.promise.pending = value.pending = []; } return this.promise; } else { value = value.value; } } this.promise.value = value; this.promise.failed = (value && isError(value)) || false; this.promise.__proto__ = ext._resolved; if (!protoSupported) { this.promise.resolved = true; } if (this.promise.dependencies) { this.promise.dependencies.forEach(function self(dPromise) { dPromise.value = value; dPromise.failed = this.failed; dPromise.__proto__ = ext._resolved; if (!protoSupported) { dPromise.resolved = true; } delete dPromise.pending; if (dPromise.dependencies) { dPromise.dependencies.forEach(self, this); delete dPromise.dependencies; } }, this.promise); delete this.promise.dependencies; } if ((data = this.promise.pending)) { for (i = 0; (name = data[i]); ++i) { ext._onresolve[name].apply(this.promise, data[++i]); } delete this.promise.pending; } return this.promise; }, reject: function (error) { return this.resolve(validError(error)); } }; module.exports = createDeferred = function (value) { var l, d, waiting, initialized, result, promise; if ((l = arguments.length)) { if (l > 1) { d = new Deferred(); waiting = 0; result = new Array(l); every.call(arguments, function (value, index) { if (isPromise(value)) { ++waiting; value.end(function (value) { result[index] = value; if (!--waiting && initialized) { d.resolve(result); } }, d.resolve); } else if (isError(value)) { d.resolve(value); return false; } else { result[index] = value; } return true; }); initialized = true; if (!waiting) { d.resolve(result); } return d.promise; } else if (isPromise(value)) { return value; } else { promise = function (win, fail) { return promise.then(win, fail); }; promise.value = value; promise.failed = isError(value); promise.__proto__ = ext._resolved; if (!protoSupported) { extendShim(promise); } createDeferred._profile && createDeferred._profile(true); return promise; } } return new Deferred(); }; createDeferred.Deferred = Deferred; ext = require('./_ext');<|fim▁end|>
}); promise.returnsPromise = true;