code stringlengths 5 1.01M | repo_name stringlengths 5 84 | path stringlengths 4 311 | language stringclasses 30 values | license stringclasses 15 values | size int64 5 1.01M | input_ids listlengths 502 502 | token_type_ids listlengths 502 502 | attention_mask listlengths 502 502 | labels listlengths 502 502 |
|---|---|---|---|---|---|---|---|---|---|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
$config['base_url'] = '';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'AUTO' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = 'AUTO';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'english';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/core_classes.html
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression which characters are permitted
| within your URLs. When someone tries to submit a URL with disallowed
| characters they will get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ folder. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| system/cache/ folder. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key. See the user guide for info.
|
*/
$config['encryption_key'] = 'qwerty';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'sess_expire_on_close' = Whether to cause the session to expire automatically
| when the browser window is closed
| 'sess_encrypt_cookie' = Whether to encrypt the cookie
| 'sess_use_database' = Whether to save the session data to a database
| 'sess_table_name' = The name of the session database table
| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or 'gmt'. This pref tells the system whether to use
| your server's local time as the master 'now' reference, or convert it to
| GMT. See the 'date helper' page of the user guide for information
| regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy IP
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
| header in order to properly identify the visitor's IP address.
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
|
*/
$config['proxy_ips'] = '';
/* End of file config.php */
/* Location: ./application/config/config.php */
| dotcool/androidmarket | phpserver/app/application/config/config.php | PHP | mit | 12,805 | [
30522,
1026,
1029,
25718,
2065,
1006,
999,
4225,
1006,
1005,
2918,
15069,
1005,
1007,
1007,
6164,
1006,
1005,
2053,
3622,
5896,
3229,
3039,
1005,
1007,
1025,
1013,
1008,
1064,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
var models = require('../models');
var Message = models.Message;
var User = require('../proxy').User;
var messageProxy = require('../proxy/message');
var mail = require('./mail');
exports.sendReplyMessage = function (master_id, author_id, topic_id, reply_id) {
var message = new Message();
message.type = 'reply';
message.master_id = master_id;
message.author_id = author_id;
message.topic_id = topic_id;
message.reply_id = reply_id;
message.save(function (err) {
// TODO: 异常处理
User.getUserById(master_id, function (err, master) {
// TODO: 异常处理
if (master && master.receive_reply_mail) {
message.has_read = true;
message.save();
messageProxy.getMessageById(message._id, function (err, msg) {
msg.reply_id = reply_id;
// TODO: 异常处理
mail.sendReplyMail(master.email, msg);
});
}
});
});
};
exports.sendReply2Message = function (master_id, author_id, topic_id, reply_id) {
var message = new Message();
message.type = 'reply2';
message.master_id = master_id;
message.author_id = author_id;
message.topic_id = topic_id;
message.reply_id = reply_id;
message.save(function (err) {
// TODO: 异常处理
User.getUserById(master_id, function (err, master) {
// TODO: 异常处理
if (master && master.receive_reply_mail) {
message.has_read = true;
message.save();
messageProxy.getMessageById(message._id, function (err, msg) {
msg.reply_id = reply_id;
// TODO: 异常处理
mail.sendReplyMail(master.email, msg);
});
}
});
});
};
exports.sendAtMessage = function (master_id, author_id, topic_id, reply_id, callback) {
var message = new Message();
message.type = 'at';
message.master_id = master_id;
message.author_id = author_id;
message.topic_id = topic_id;
message.reply_id = reply_id;
message.save(function (err) {
// TODO: 异常处理
User.getUserById(master_id, function (err, master) {
// TODO: 异常处理
if (master && master.receive_at_mail) {
message.has_read = true;
message.save();
messageProxy.getMessageById(message._id, function (err, msg) {
// TODO: 异常处理
mail.sendAtMail(master.email, msg);
});
}
});
callback(err);
});
};
//author_id is the follower, so the message of the master is master_id
exports.sendFollowMessage = function (follow_id, author_id) {
var message = new Message();
message.type = 'follow';
message.master_id = follow_id;
message.author_id = author_id;
message.save();
};
//author_id is the attendee
exports.sendAttendMessage = function (master_id, topic_id, author_id) {
var message = new Message();
message.type = 'attend';
message.master_id = master_id;
message.author_id = author_id;
message.topic_id= topic_id;
message.save();
};
| tianyisheng/icardyou | services/message.js | JavaScript | mit | 2,941 | [
30522,
13075,
4275,
1027,
5478,
1006,
1005,
1012,
1012,
1013,
4275,
1005,
1007,
1025,
13075,
4471,
1027,
4275,
1012,
4471,
1025,
13075,
5310,
1027,
5478,
1006,
1005,
1012,
1012,
1013,
24540,
1005,
1007,
1012,
5310,
1025,
13075,
4471,
21572,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
var gulp = require('gulp');
var browserify = require('browserify');
//transform jsx to js
var reactify = require('reactify');
//convert to stream
var source = require('vinyl-source-stream');
var nodemon = require('gulp-nodemon');
gulp.task('browserify', function() {
//source
browserify('./src/js/main.js')
//convert jsx to js
.transform('reactify')
//creates a bundle
.bundle()
.pipe(source('main.js'))
.pipe(gulp.dest('dist/js'))
});
gulp.task('copy', function() {
gulp.src('src/index.html')
.pipe(gulp.dest('dist'));
gulp.src('src/assets/**/*.*')
.pipe(gulp.dest('dist/assets'));
});
gulp.task('nodemon', function(cb) {
var called = false;
return nodemon({
script: 'server.js'
}).on('start', function() {
if (!called) {
called = true;
cb();
}
});
});
gulp.task('default', ['browserify', 'copy', 'nodemon'], function() {
return gulp.watch('src/**/*.*', ['browserify', 'copy']);
});
| felixcriv/react_scheduler_component | gulpfile.js | JavaScript | mit | 1,039 | [
30522,
13075,
26546,
1027,
5478,
1006,
1005,
26546,
1005,
1007,
1025,
13075,
16602,
8757,
1027,
5478,
1006,
1005,
16602,
8757,
1005,
1007,
1025,
1013,
1013,
10938,
1046,
2015,
2595,
2000,
1046,
2015,
13075,
10509,
8757,
1027,
5478,
1006,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// <auto-generated />
// This file was generated by a T4 template.
// Don't change it directly as your change would get overwritten. Instead, make changes
// to the .tt file (i.e. the T4 template) and save it to regenerate this file.
// Make sure the compiler doesn't complain about missing Xml comments
#pragma warning disable 1591
namespace SugarRestSharp.Models
{
using System;
using Newtonsoft.Json;
/// <summary>
/// A class which represents the calls table.
/// </summary>
[ModuleProperty(ModuleName = "Calls", TableName="calls")]
public partial class Call : EntityBase
{
[JsonProperty(PropertyName = "id")]
public virtual string Id { get; set; }
[JsonProperty(PropertyName = "name")]
public virtual string Name { get; set; }
[JsonProperty(PropertyName = "date_entered")]
public virtual DateTime? DateEntered { get; set; }
[JsonProperty(PropertyName = "date_modified")]
public virtual DateTime? DateModified { get; set; }
[JsonProperty(PropertyName = "modified_user_id")]
public virtual string ModifiedUserId { get; set; }
[JsonProperty(PropertyName = "created_by")]
public virtual string CreatedBy { get; set; }
[JsonProperty(PropertyName = "description")]
public virtual string Description { get; set; }
[JsonProperty(PropertyName = "deleted")]
public virtual sbyte? Deleted { get; set; }
[JsonProperty(PropertyName = "assigned_user_id")]
public virtual string AssignedUserId { get; set; }
[JsonProperty(PropertyName = "duration_hours")]
public virtual int? DurationHours { get; set; }
[JsonProperty(PropertyName = "duration_minutes")]
public virtual int? DurationMinutes { get; set; }
[JsonProperty(PropertyName = "date_start")]
public virtual DateTime? DateStart { get; set; }
[JsonProperty(PropertyName = "date_end")]
public virtual DateTime? DateEnd { get; set; }
[JsonProperty(PropertyName = "parent_type")]
public virtual string ParentType { get; set; }
[JsonProperty(PropertyName = "status")]
public virtual string Status { get; set; }
[JsonProperty(PropertyName = "direction")]
public virtual string Direction { get; set; }
[JsonProperty(PropertyName = "parent_id")]
public virtual string ParentId { get; set; }
[JsonProperty(PropertyName = "reminder_time")]
public virtual int? ReminderTime { get; set; }
[JsonProperty(PropertyName = "email_reminder_time")]
public virtual int? EmailReminderTime { get; set; }
[JsonProperty(PropertyName = "email_reminder_sent")]
public virtual sbyte? EmailReminderSent { get; set; }
[JsonProperty(PropertyName = "outlook_id")]
public virtual string OutlookId { get; set; }
[JsonProperty(PropertyName = "repeat_type")]
public virtual string RepeatType { get; set; }
[JsonProperty(PropertyName = "repeat_interval")]
public virtual int? RepeatInterval { get; set; }
[JsonProperty(PropertyName = "repeat_dow")]
public virtual string RepeatDow { get; set; }
[JsonProperty(PropertyName = "repeat_until")]
public virtual DateTime? RepeatUntil { get; set; }
[JsonProperty(PropertyName = "repeat_count")]
public virtual int? RepeatCount { get; set; }
[JsonProperty(PropertyName = "repeat_parent_id")]
public virtual string RepeatParentId { get; set; }
[JsonProperty(PropertyName = "recurring_source")]
public virtual string RecurringSource { get; set; }
}
} | mattkol/SugarRestSharp | SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Call.cs | C# | mit | 3,363 | [
30522,
1013,
1013,
1026,
8285,
1011,
7013,
1013,
1028,
1013,
1013,
2023,
5371,
2001,
7013,
2011,
1037,
1056,
2549,
23561,
1012,
1013,
1013,
2123,
1005,
1056,
2689,
2009,
3495,
2004,
2115,
2689,
2052,
2131,
2058,
15773,
1012,
2612,
1010,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# -*- 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ữ)',
'Summary of Completed Assessment Forms': 'Tổng hợp biểu mẫu đánh giá đã hoàn thành',
'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ó',
}
| flavour/ifrc_qa | languages/vi.py | Python | mit | 374,132 | [
30522,
1001,
1011,
1008,
1011,
16861,
1024,
21183,
2546,
1011,
1022,
1011,
1008,
1011,
1063,
1005,
1001,
3479,
1005,
1024,
1005,
1001,
1102,
19098,
2278,
11320,
2050,
16480,
2078,
1005,
1010,
1000,
1005,
17542,
1005,
2097,
5769,
2019,
11412... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (C) 2004 IBM Corporation
*
* Author: Serge Hallyn <serue@us.ibm.com>
*
* 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, version 2 of the
* License.
*/
#include <linux/export.h>
#include <linux/uts.h>
#include <linux/utsname.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/cred.h>
#include <linux/user_namespace.h>
#include <linux/proc_ns.h>
#include <linux/sched/task.h>
static struct ucounts *inc_uts_namespaces(struct user_namespace *ns)
{
return inc_ucount(ns, current_euid(), UCOUNT_UTS_NAMESPACES);
}
static void dec_uts_namespaces(struct ucounts *ucounts)
{
dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES);
}
static struct uts_namespace *create_uts_ns(void)
{
struct uts_namespace *uts_ns;
uts_ns = kmalloc(sizeof(struct uts_namespace), GFP_KERNEL);
if (uts_ns)
kref_init(&uts_ns->kref);
return uts_ns;
}
/*
* Clone a new ns copying an original utsname, setting refcount to 1
* @old_ns: namespace to clone
* Return ERR_PTR(-ENOMEM) on error (failure to kmalloc), new ns otherwise
*/
static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns,
struct uts_namespace *old_ns)
{
struct uts_namespace *ns;
struct ucounts *ucounts;
int err;
err = -ENOSPC;
ucounts = inc_uts_namespaces(user_ns);
if (!ucounts)
goto fail;
err = -ENOMEM;
ns = create_uts_ns();
if (!ns)
goto fail_dec;
err = ns_alloc_inum(&ns->ns);
if (err)
goto fail_free;
ns->ucounts = ucounts;
ns->ns.ops = &utsns_operations;
down_read(&uts_sem);
memcpy(&ns->name, &old_ns->name, sizeof(ns->name));
ns->user_ns = get_user_ns(user_ns);
up_read(&uts_sem);
return ns;
fail_free:
kfree(ns);
fail_dec:
dec_uts_namespaces(ucounts);
fail:
return ERR_PTR(err);
}
/*
* Copy task tsk's utsname namespace, or clone it if flags
* specifies CLONE_NEWUTS. In latter case, changes to the
* utsname of this process won't be seen by parent, and vice
* versa.
*/
struct uts_namespace *copy_utsname(unsigned long flags,
struct user_namespace *user_ns, struct uts_namespace *old_ns)
{
struct uts_namespace *new_ns;
BUG_ON(!old_ns);
get_uts_ns(old_ns);
if (!(flags & CLONE_NEWUTS))
return old_ns;
new_ns = clone_uts_ns(user_ns, old_ns);
put_uts_ns(old_ns);
return new_ns;
}
void free_uts_ns(struct kref *kref)
{
struct uts_namespace *ns;
ns = container_of(kref, struct uts_namespace, kref);
dec_uts_namespaces(ns->ucounts);
put_user_ns(ns->user_ns);
ns_free_inum(&ns->ns);
kfree(ns);
}
static inline struct uts_namespace *to_uts_ns(struct ns_common *ns)
{
return container_of(ns, struct uts_namespace, ns);
}
static struct ns_common *utsns_get(struct task_struct *task)
{
struct uts_namespace *ns = NULL;
struct nsproxy *nsproxy;
task_lock(task);
nsproxy = task->nsproxy;
if (nsproxy) {
ns = nsproxy->uts_ns;
get_uts_ns(ns);
}
task_unlock(task);
return ns ? &ns->ns : NULL;
}
static void utsns_put(struct ns_common *ns)
{
put_uts_ns(to_uts_ns(ns));
}
static int utsns_install(struct nsproxy *nsproxy, struct ns_common *new)
{
struct uts_namespace *ns = to_uts_ns(new);
if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) ||
!ns_capable(current_user_ns(), CAP_SYS_ADMIN))
return -EPERM;
get_uts_ns(ns);
put_uts_ns(nsproxy->uts_ns);
nsproxy->uts_ns = ns;
return 0;
}
static struct user_namespace *utsns_owner(struct ns_common *ns)
{
return to_uts_ns(ns)->user_ns;
}
const struct proc_ns_operations utsns_operations = {
.name = "uts",
.type = CLONE_NEWUTS,
.get = utsns_get,
.put = utsns_put,
.install = utsns_install,
.owner = utsns_owner,
};
| mkvdv/au-linux-kernel-autumn-2017 | linux/kernel/utsname.c | C | gpl-3.0 | 3,695 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2432,
9980,
3840,
1008,
1008,
3166,
1024,
21747,
2534,
6038,
1026,
14262,
5657,
1030,
2149,
1012,
9980,
1012,
4012,
1028,
1008,
1008,
2023,
2565,
2003,
2489,
4007,
1025,
2017,
2064,
2417,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*
* $Id: NetworkNode.java 669 2010-06-14 14:53:38Z twanschik $
*
* @version $Rev: 669 $
* @author $Author: twanschik $
* @date $Date: 2010-06-14 16:53:38 +0200 (Mo, 14 Jun 2010) $
*
*/
package org.hswgt.teachingbox.core.rl.network;
import java.io.Serializable;
import org.hswgt.teachingbox.core.rl.tools.Copyable;
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.impl.DenseDoubleMatrix1D;
import java.util.LinkedList;
import java.util.List;
// Abstract class representing a node in a network. Currently all nodes hold a
// position so put it into the NetworkNode itself.
public abstract class NetworkNode implements Copyable<NetworkNode>, Serializable {
private static final long serialVersionUID = -1375335252449897775L;
protected DoubleMatrix1D position;
// dimension indicates how much dimensions this node covers
protected int dimension = 0;
protected List<NetworkNodeObserver> observers =
new LinkedList<NetworkNodeObserver>();
protected Network net = null;
// abstract method to implement
public abstract double getValue(DoubleMatrix1D state);
public double getValue(double[] state) {
return getValue(new DenseDoubleMatrix1D(state));
}
public DoubleMatrix1D getPosition() {
return position.copy();
}
public void setPosition(DoubleMatrix1D position) {
boolean notify = true;
if (this.position != null && this.position.equals(position))
notify = false;
this.position = position.copy();
if (notify)
this.notifyShapeChanged();
}
public void setPosition(double[] position) {
this.setPosition(new DenseDoubleMatrix1D(position));
}
public void notifyPositionChanged() {
for (NetworkNodeObserver observer: observers)
observer.positionChanged(this);
}
// classes derived from NetworkNode should call notifyShapeChanged
// if the change the shape. For RBFs this should be called if sigma changes!
public void notifyShapeChanged() {
for (NetworkNodeObserver observer: observers)
observer.shapeChanged(this);
}
/**
* Attaches an observer to this
*
* @param obs The observer to attach
*/
public void addObserver(final NetworkNodeObserver obs)
{
if( !this.observers.contains(obs) )
this.observers.add(obs);
}
/**
* Remove an observer from this
* @param obs The observer to detach
*/
public void removeObserver(final NetworkNodeObserver obs)
{
this.observers.remove(obs);
}
public Network getNet() {
return net;
}
public void setNet(Network net) {
this.net = net;
}
public int getDimension() {
return dimension;
}
}
| ieugen/Teachingbox | src/org/hswgt/teachingbox/core/rl/network/NetworkNode.java | Java | gpl-3.0 | 2,818 | [
30522,
1013,
1008,
1008,
1008,
1008,
1002,
8909,
1024,
2897,
3630,
3207,
1012,
9262,
5764,
2683,
2230,
1011,
5757,
1011,
2403,
2403,
1024,
5187,
1024,
4229,
2480,
1056,
7447,
11624,
5480,
1002,
1008,
1008,
1030,
2544,
1002,
7065,
1024,
57... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
it("should load the component from container", () => {
return import("./App").then(({ default: App }) => {
const rendered = App();
expect(rendered).toBe(
"App rendered with [This is react 2.1.0] and [ComponentA rendered with [This is react 2.1.0]] and [ComponentB rendered with [This is react 2.1.0]]"
);
return import("./upgrade-react").then(({ default: upgrade }) => {
upgrade();
const rendered = App();
expect(rendered).toBe(
"App rendered with [This is react 3.2.1] and [ComponentA rendered with [This is react 3.2.1]] and [ComponentB rendered with [This is react 3.2.1]]"
);
});
});
});
| webpack/webpack | test/configCases/container/1-container-full/index.js | JavaScript | mit | 623 | [
30522,
2009,
1006,
1000,
2323,
7170,
1996,
6922,
2013,
11661,
1000,
1010,
1006,
1007,
1027,
1028,
1063,
2709,
12324,
1006,
1000,
1012,
1013,
10439,
1000,
1007,
1012,
2059,
1006,
1006,
1063,
12398,
1024,
10439,
1065,
1007,
1027,
1028,
1063,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<div class="panel-content content">
<div class="form-item">
<fieldset>
<legend><{$smarty.const._AM_ELE_DERIVED_CAP}></legend>
<textarea id="elements-ele_value" name="elements-ele_value[0]" class="code-textarea" rows="5" cols="35"><{$content.ele_value[0]}></textarea>
<div class="description">
<p><{$content.listofelementsoptions}> <input type=button name=addele value="<{$smarty.const._AM_ELE_DERIVED_ADD}>"></p>
<p><{$smarty.const._AM_ELE_DERIVED_DESC}></p>
</div>
</fieldset>
</div>
<div class="form-item">
<fieldset>
<legend><{$smarty.const._AM_ELE_DERIVED_UPDATE_CAP}></legend>
<p>
<span name="updateder_controls">
<input type=button name=updateder value="<{$smarty.const._AM_ELE_DERIVED_UPDATE}>"> <{$content.listofrelationshipoptions}>
</span>
<span name="updateder_Info" style="display:none">
Updating Values... <img src="../../../images/await.gif" width="20" height="20"/>
</span>
</p>
<div class="description">
<p><{$smarty.const._AM_ELE_DERIVED_UPDATE_DESC}></p>
</div>
</fieldset>
</div>
<div class="form-item">
<fieldset>
<legend><{$smarty.const._AM_ELE_DERIVED_NUMBER_OPTS}></legend>
<div class="form-item">
<label for="elements-ele_value[1]"><{$smarty.const._AM_ELE_NUMBER_OPTS_DEC}></label><input type="text" id="elements-ele_value[1]" name="elements-ele_value[1]" value="<{$content.ele_value.1}>" size="2" maxlength="2"/>
</div>
<div class="form-item">
<label for="elements-ele_value[2]"><{$smarty.const._AM_ELE_NUMBER_OPTS_PREFIX}></label><input type="text" id="elements-ele_value[2]" name="elements-ele_value[2]" value="<{$content.ele_value.2}>" size="5" maxlength="255"/>
</div>
<div class="form-item">
<label for="elements-ele_value[5]"><{$smarty.const._AM_ELE_NUMBER_OPTS_SUFFIX}></label><input type="text" id="elements-ele_value[5]" name="elements-ele_value[5]" value="<{$content.ele_value.5}>" size="5" maxlength="255"/>
</div>
<div class="form-item">
<label for="elements-ele_value[3]"><{$smarty.const._AM_ELE_NUMBER_OPTS_DECSEP}></label><input type="text" id="elements-ele_value[3]" name="elements-ele_value[3]" value="<{$content.ele_value.3}>" size="5" maxlength="255"/>
</div>
<div class="form-item">
<label for="elements-ele_value[4]"><{$smarty.const._AM_ELE_NUMBER_OPTS_SEP}></label><input type="text" id="elements-ele_value[4]" name="elements-ele_value[4]" value="<{$content.ele_value.4}>" size="5" maxlength="255"/>
</div>
<div class="description">
<{$smarty.const._AM_ELE_NUMBER_OPTS_DESC}>
</div>
</fieldset>
</div>
</div>
<script type="text/javascript">
// http://plugins.jquery.com/project/caret-range
/*
* jQuery Caret Range plugin
* Copyright (c) 2009 Matt Zabriskie
* Released under the MIT and GPL licenses.
*/
(function($) {
$.extend($.fn, {
caret: function (start, end) {
var elem = this[0];
if (elem) {
// get caret range
if (typeof start == "undefined") {
if (elem.selectionStart) {
start = elem.selectionStart;
end = elem.selectionEnd;
}
else if (document.selection) {
var val = this.val();
var range = document.selection.createRange().duplicate();
range.moveEnd("character", val.length)
start = (range.text == "" ? val.length : val.lastIndexOf(range.text));
range = document.selection.createRange().duplicate();
range.moveStart("character", -val.length);
end = range.text.length;
}
}
// set caret range
else {
var val = this.val();
if (typeof start != "number") start = -1;
if (typeof end != "number") end = -1;
if (start < 0) start = 0;
if (end > val.length) end = val.length;
if (end < start) end = start;
if (start > end) start = end;
elem.focus();
if (elem.selectionStart) {
elem.selectionStart = start;
elem.selectionEnd = end;
}
else if (document.selection) {
var range = elem.createTextRange();
range.collapse(true);
range.moveStart("character", start);
range.moveEnd("character", end - start);
range.select();
}
}
return {start:start, end:end};
}
}
});
})(jQuery);
$("[name=addele]").click(function () {
//$("#elements-ele_value[0]").val( $("#elements-ele_value[0]").val() + '"' + $("#listofelementsoptions").find(':selected').val() + '"' );
var input = $("#elements-ele_value");
var range = input.caret();
var value = input.val();
var text = '"' + $("#listofelementsoptions").find(':selected').val() + '"';
input.val(value.substr(0, range.start) + text + value.substr(range.end, value.length));
input.caret(range.start + text.length);
return false;
});
var formID = "";
var formRelationID = "1";
$("[name=updateder]").click(function () {
formID = $("[name=formulize_form_id]").val();
formRelationID = $("#listofrelationshipoptions").find(':selected').val()
var limitStart = 0;
$("[name=updateder_controls]").hide();
$("[name=updateder_Info]").show();
updateDerivedValues(formID,formRelationID,limitStart);
return false;
});
function updateDerivedValues(fid,frid,limitStart){
$.get("<{$xoops_url}>/modules/formulize/formulize_xhr_responder.php?uid=<{$content.uid}>&op=update_derived_value&fid="+fid+"&frid="+frid+"&limitstart="+limitStart, function(data){
if(!isNaN(data) && data > 0){
limitStart += parseInt(data);
updateDerivedValues(fid,frid,limitStart);
}else{
$("[name=updateder_Info]").hide();
$("[name=updateder_controls]").show();
if (isNaN(data)) {
alert(data);
} else {
$("#derivedfinished").show();
}
}
});
}
function removeOnChange(){
$("#listofrelationshipoptions").unbind("change");
$("#listofelementsoptions").unbind("change");
}
window.setTimeout("removeOnChange();",500);
</script> | skenow/formulize | modules/formulize/templates/admin/element_type_derived.html | HTML | gpl-2.0 | 6,297 | [
30522,
1026,
4487,
2615,
2465,
1027,
1000,
5997,
1011,
4180,
4180,
1000,
1028,
1026,
4487,
2615,
2465,
1027,
1000,
2433,
1011,
8875,
1000,
1028,
1026,
4249,
3388,
1028,
1026,
5722,
1028,
1026,
1063,
1002,
6047,
2100,
1012,
9530,
3367,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
ManageIndexes = {
GridPanel : function(config) {
config.autoExpandColumn = 'columns';
config.viewConfig = { forceFit: true };
ManageIndexes.GridPanel.superclass.constructor.call(this, config);
},
gridPanelStore : function(data) {
var store = new Ext.data.SimpleStore( {
fields : data.fields
});
store.loadData(data.data);
return store;
},
gridPanelColumnModel : function(data) {
for ( var i = 0; i < data.models.length; i++) {
var curr = data.models[i];
if (curr.id == 'unique' || curr.id == 'fullText') {
curr.renderer = function(v) {
//return '<div class="x-grid3-check-col' + (v ? '-on' : '') + '"> </div>';
return '<input type="checkbox" '+(v?'checked="checked"':'')+' disabled="disabled" />';
};
}
}
var cm = new Ext.grid.ColumnModel( {
columns : data.models
});
return cm;
},
closeManageIndexesWindow : function() {
Ext.getCmp('manage_indexes_window').close();
},
showDeleteIndexConfirmation : function() {
// Get the selected row(s)
var indexesGrid = Ext.getCmp('manage_indexes_grid');
var selModel = indexesGrid.getSelectionModel();
var rows = selModel.getSelections();
// If no rows are selected, alert the user.
if (!rows.length) {
var msg = "Please select index(s) to delete!";
Dbl.Utils.showErrorMsg(msg, '');
// Ext.MessageBox.alert('No Index(es) Selected',
// 'Please select the index(es) to delete');
return;
}
ManageIndexes.indexesForDeletion = [];
for ( var i = 0; i < rows.length; i++) {
ManageIndexes.indexesForDeletion.push(rows[i].data.indexName);
}
// Get confirmation from the user
var title = 'Are you sure?';
var message = 'Are you sure you want to delete the selected index(es)?';
var handleConfirmation = function(btn) {
if (btn == "yes") {
// Send the delete index command to server
Server.sendCommand('delete_indexes', {
indexes : ManageIndexes.indexesForDeletion,
table : Explorer.selectedDbTable
}, function(data) {
// var msg = "Index(s) deleted successfully";
Dbl.Utils.showInfoMsg(Messages.getMsg('index_deletion_success'));
// Ext.MessageBox.alert('Success!!',
// 'Index(es) deleted successfully');
ManageIndexes.refreshGrid();
// Server.sendCommand('get_min_table_indexes', {
// parent_database : Explorer.selectedDatabase,
// table : Explorer.selectedDbTable
// }, function(data) {
// var store = ManageIndexes.gridPanelStore(data);
// var cm = ManageIndexes.gridPanelColumnModel(data);
// Ext.getCmp('manage_indexes_grid')
// .reconfigure(store, cm);
//
// });
});
}
};
Ext.MessageBox.confirm(title, message, handleConfirmation);
},
indexesForDeletion : [],
refreshGrid: function()
{
Server.sendCommand('get_min_table_indexes', {
parent_database : Explorer.selectedDatabase,
table : Explorer.selectedDbTable
}, function(data) {
var store = ManageIndexes.gridPanelStore(data);
var cm = ManageIndexes.gridPanelColumnModel(data);
Ext.getCmp('manage_indexes_grid').reconfigure(store, cm);
});
},
showEditIndexWindow: function()
{
var selectionCount = Ext.getCmp('manage_indexes_grid').getSelectionModel().getCount();
if(!selectionCount) {
// var msg = "Please select an index to edit!";
Dbl.Utils.showErrorMsg(Messages.getMsg('edit_index_required'));
} else if(selectionCount > 1) {
// var msg = "Please select a single index to edit!";
Dbl.Utils.showErrorMsg(Messages.getMsg('edit_index_single'));
} else {
Server.sendCommand('get_min_table_columns', {
table : Explorer.selectedDbTable
}, function(data) {
data.editMode = true;
ManageIndexes.addIndexWin = new ManageIndexes.AddIndexWindow(data);
ManageIndexes.addIndexWin.show();
});
}
},
showAddIndexWindow : function(editMode) {
Server.sendCommand('get_min_table_columns', {
table : Explorer.selectedDbTable
}, function(data) {
ManageIndexes.addIndexWin = new ManageIndexes.AddIndexWindow(data);
ManageIndexes.addIndexWin.show();
});
},
AddIndexWindow : function(data) {
var gridPanel = new ManageIndexes.AddIndexGrid(data);
var form = new ManageIndexes.AddIndexForm();
if(data.editMode)
{
var index = Ext.getCmp('manage_indexes_grid').getSelectionModel().getSelected().data;
var indexName = index.indexName;
var formObj = form.getForm();
formObj.findField('add_index_form_index_name').setValue(indexName);
formObj.findField('add_index_form_original_name').setValue(indexName);
//form.originalIndexName = indexName;
var indexType;
if(indexName == 'PRIMARY')
indexType = 'primary';
else if(index.unique == true)
indexType = 'unique';
else if(index.fullText == true)
indexType = 'fullText';
else
indexType = 'none';
var cmpId = 'add_index_form_index_type_'+indexType;
Ext.getCmp('options_group').setValue(cmpId,true);
var columns = index.columns.split(',').reverse();
for(var i=0; i<columns.length; i++)
{
var recIndex = gridPanel.getStore().find('Name',columns[i]);
var rec = gridPanel.getStore().getAt(recIndex);
rec.set('included', true);
gridPanel.getStore().remove(rec);
gridPanel.getStore().insert(0, rec);
}
}
ManageIndexes.AddIndexWindow.superclass.constructor.call(this, {
title : "Add New Index",
id : "add_index_window",
headerAsText : true,
width : 350,
resizable : false,
modal : true,
plain : true,
stateful : true,
shadow : false,
onEsc : function() {
},
closeAction : 'destroy',
items : [ form, gridPanel ],
buttons : [
{
text: data.editMode ? 'submit' : 'add',
handler: data.editMode?ManageIndexes.editIndex:ManageIndexes.createAndAddIndex
},
{
text: 'cancel',
handler: ManageIndexes.closeAddIndexWindow
}]
});
},
AddIndexGrid : function(data) {
var includedModel = new Ext.ux.CheckColumn({
header: ' ',
checkOnly: true,
dataIndex: 'included',
width: 20});
for(var i=0; i<data.fields.length; i++)
{
if(data.fields[i] == "included") {
data.fields[i].type = 'bool';
data.models[i] = includedModel;
}
}
ManageIndexes.AddIndexGrid.superclass.constructor.call(this, {
fields : data.fields,
data : data.data,
models : data.models,
autoExpandColumn: 'Name',
viewConfig: { forceFit: true },
id : 'add_index_grid',
height: 180,
//width: 333,
autoScroll: true,
fbar: [Messages.getMsg('edit_index_footer')],
enableDragDrop: true,
ddGroup: 'mygridDD',
plugins: [includedModel],
listeners: {
"render": {
scope: this,
fn: function(grid) {
var ddrow = new Ext.dd.DropTarget(grid.container, {
ddGroup : 'mygridDD',
copy: false,
notifyDrop : function(dd, e, data){
//Ext.getCmp('reorder_columns_window').reorderButton.enable();
var ds = grid.store;
var sm = grid.getSelectionModel();
var rows = sm.getSelections();
//var rows = this.currentRowEl;
if(dd.getDragData(e)) {
var cindex=dd.getDragData(e).rowIndex;
if(typeof(cindex) != "undefined") {
for(i = 0; i < rows.length; i++) {
ds.remove(ds.getById(rows[i].id));
}
ds.insert(cindex,data.selections);
sm.clearSelections();
}
}
}
});
}
}
}
});
},
AddIndexForm: function(data) {
var radioGroupItems = [
{
boxLabel: 'Unique',
name: 'add_index_form_index_type',
id: 'add_index_form_index_type_unique',
inputValue: 'unique'
},
{
boxLabel: 'Full Text',
name: 'add_index_form_index_type',
id: 'add_index_form_index_type_fullText',
inputValue: 'fullText'
},
{
boxLabel: 'Primary',
name: 'add_index_form_index_type',
id: 'add_index_form_index_type_primary',
inputValue: 'primary',
listeners:
{
'check': {
fn: function()
{
var form = Ext.getCmp('add_index_form').getForm().getValues(false);
var indexName = Ext.getCmp('add_index_form_index_name');
if(form.add_index_form_index_type == 'primary')
{
indexName.prevValue = form.add_index_form_index_name;
indexName.setValue('PRIMARY');
indexName.disable();
}
else
{
indexName.setValue(indexName.prevValue);
indexName.enable();
}
}
}
}
},
{
boxLabel: 'None',
name: 'add_index_form_index_type',
id: 'add_index_form_index_type_none',
inputValue: 'none',
checked: true
}];
ManageIndexes.AddIndexForm.superclass.constructor.call(this, {
id: 'add_index_form',
labelAlign: 'top',
frame: true,
bodyStyle: "padding: 5px",
defaults: {
anchor: '100%'
},
items:[
{
xtype: 'textfield',
fieldLabel: 'Index Name',
name: 'add_index_form_index_name',
id: 'add_index_form_index_name',
blankText: 'Index name is required',
allowBlank: false
},
{
xtype: 'hidden',
name: 'add_index_form_original_name',
id: 'add_index_form_original_name'
},
{
xtype: 'radiogroup',
rows: 1,
id: 'options_group',
defaults: {
anchor: '100%'
},
bodyStyle: "padding: 0px; margin: 0px",
items: radioGroupItems,
fieldLabel: 'Index Options'
}]
});
},
editIndex: function()
{
ManageIndexes.createAndAddIndex(true);
},
createAndAddIndex: function(editMode)
{
var form = Ext.getCmp('add_index_form').getForm();
if(!form.isValid())
{
return;
}
var values = form.getValues();
var store = Ext.getCmp('add_index_grid').getStore();
var indexes = [];
var selectedRows = 0;
for(var i=0; i<store.getCount(); i++)
{
var record = store.getAt(i);
if(record.get('included') == true)
{
indexes.push(record.get('Name'));
selectedRows++;
}
}
if(selectedRows < 1)
{
// var msg = 'Please select at least one column';
Dbl.Utils.showErrorMsg(Messages.getMsg('add_index_column_req'));
//Ext.MessageBox.alert('No Columns Selected', 'Please Select atleast one column');
return;
}
Server.sendCommand(
'create_indexes',
{
table: Explorer.selectedDbTable,
type: values.add_index_form_index_type,
name: values.add_index_form_index_name,
indexes: indexes,
originalName: values.add_index_form_original_name
},
function(data) {
if(data.success) {
ManageIndexes.refreshGrid();
ManageIndexes.closeAddIndexWindow();
// var msg = 'Index added successfully';
Dbl.Utils.showInfoMsg(Messages.getMsg('index_addition_success'));
} else if(!data.success) {
var msg = data.msg ? data.msg : data;
Dbl.Utils.showErrorMsg(data.msg, '');
}
}, function(data){
Dbl.Utils.showErrorMsg(data.msg, '');
});
},
closeAddIndexWindow: function() {
Ext.getCmp('add_index_window').close();
}
};
Ext.onReady(function() {
Ext.extend(ManageIndexes.GridPanel, Dbl.ListViewPanel, {
hello : function(str) {
}
});
Ext.extend(ManageIndexes.AddIndexWindow, Ext.Window, {
});
Ext.extend(ManageIndexes.AddIndexGrid, Dbl.ListViewPanel, {});
Ext.extend(ManageIndexes.AddIndexForm, Ext.FormPanel, {});
});
| manusis/dblite | app/js/dblite/manageindexes.js | JavaScript | gpl-3.0 | 11,797 | [
30522,
6133,
22254,
10288,
2229,
1027,
1063,
8370,
9739,
2884,
1024,
3853,
1006,
9530,
8873,
2290,
1007,
1063,
9530,
8873,
2290,
1012,
8285,
10288,
9739,
16409,
4747,
2819,
2078,
1027,
1005,
7753,
1005,
1025,
9530,
8873,
2290,
1012,
3193,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.nacos.istio.xds;
import com.alibaba.nacos.istio.api.ApiGenerator;
import com.alibaba.nacos.istio.api.ApiGeneratorFactory;
import com.alibaba.nacos.istio.common.*;
import com.alibaba.nacos.istio.misc.Loggers;
import com.alibaba.nacos.istio.util.NonceGenerator;
import com.google.protobuf.Any;
import io.envoyproxy.envoy.service.discovery.v3.AggregatedDiscoveryServiceGrpc;
import io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest;
import io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse;
import io.grpc.stub.StreamObserver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import static com.alibaba.nacos.istio.api.ApiConstants.MESH_CONFIG_PROTO_PACKAGE;
import static com.alibaba.nacos.istio.api.ApiConstants.SERVICE_ENTRY_PROTO_PACKAGE;
/**
* @author special.fy
*/
@Service
public class NacosXdsService extends AggregatedDiscoveryServiceGrpc.AggregatedDiscoveryServiceImplBase {
private final Map<String, AbstractConnection<DiscoveryResponse>> connections = new ConcurrentHashMap<>(16);
public boolean hasClientConnection() {
return connections.size() != 0;
}
@Autowired
ApiGeneratorFactory apiGeneratorFactory;
@Autowired
NacosResourceManager resourceManager;
@Override
public StreamObserver<DiscoveryRequest> streamAggregatedResources(StreamObserver<DiscoveryResponse> responseObserver) {
// TODO add authN
// Init snapshot of nacos service info.
resourceManager.initResourceSnapshot();
AbstractConnection<DiscoveryResponse> newConnection = new XdsConnection(responseObserver);
return new StreamObserver<DiscoveryRequest>() {
private boolean initRequest = true;
@Override
public void onNext(DiscoveryRequest discoveryRequest) {
// init connection
if (initRequest) {
newConnection.setConnectionId(discoveryRequest.getNode().getId());
connections.put(newConnection.getConnectionId(), newConnection);
initRequest = false;
}
process(discoveryRequest, newConnection);
}
@Override
public void onError(Throwable throwable) {
Loggers.MAIN.error("xds: {} stream error.", newConnection.getConnectionId(), throwable);
clear();
}
@Override
public void onCompleted() {
Loggers.MAIN.info("xds: {} stream close.", newConnection.getConnectionId());
responseObserver.onCompleted();
clear();
}
private void clear() {
connections.remove(newConnection.getConnectionId());
}
};
}
public void process(DiscoveryRequest discoveryRequest, AbstractConnection<DiscoveryResponse> connection) {
if (!shouldPush(discoveryRequest, connection)) {
return;
}
DiscoveryResponse response = buildDiscoveryResponse(discoveryRequest.getTypeUrl(), resourceManager.getResourceSnapshot());
connection.push(response, connection.getWatchedStatusByType(discoveryRequest.getTypeUrl()));
}
private boolean shouldPush(DiscoveryRequest discoveryRequest, AbstractConnection<DiscoveryResponse> connection) {
String type = discoveryRequest.getTypeUrl();
String connectionId = connection.getConnectionId();
// Suitable for bug of istio
// See https://github.com/istio/istio/pull/34633
if (type.equals(MESH_CONFIG_PROTO_PACKAGE)) {
Loggers.MAIN.info("xds: type {} should be ignored.", type);
return false;
}
if (discoveryRequest.getErrorDetail().getCode() != 0) {
Loggers.MAIN.error("xds: ACK error, connection-id: {}, code: {}, message: {}",
connectionId,
discoveryRequest.getErrorDetail().getCode(),
discoveryRequest.getErrorDetail().getMessage());
return false;
}
WatchedStatus watchedStatus;
if (discoveryRequest.getResponseNonce().isEmpty()) {
Loggers.MAIN.info("xds: init request, type {}, connection-id {}, version {}",
type, connectionId, discoveryRequest.getVersionInfo());
watchedStatus = new WatchedStatus();
watchedStatus.setType(discoveryRequest.getTypeUrl());
connection.addWatchedResource(discoveryRequest.getTypeUrl(), watchedStatus);
return true;
}
watchedStatus = connection.getWatchedStatusByType(discoveryRequest.getTypeUrl());
if (watchedStatus == null) {
Loggers.MAIN.info("xds: reconnect, type {}, connection-id {}, version {}, nonce {}.",
type, connectionId, discoveryRequest.getVersionInfo(), discoveryRequest.getResponseNonce());
watchedStatus = new WatchedStatus();
watchedStatus.setType(discoveryRequest.getTypeUrl());
connection.addWatchedResource(discoveryRequest.getTypeUrl(), watchedStatus);
return true;
}
if (!watchedStatus.getLatestNonce().equals(discoveryRequest.getResponseNonce())) {
Loggers.MAIN.warn("xds: request dis match, type {}, connection-id {}",
discoveryRequest.getTypeUrl(),
connection.getConnectionId());
return false;
}
// This request is ack, we should record version and nonce.
watchedStatus.setAckedVersion(discoveryRequest.getVersionInfo());
watchedStatus.setAckedNonce(discoveryRequest.getResponseNonce());
Loggers.MAIN.info("xds: ack, type {}, connection-id {}, version {}, nonce {}", type, connectionId,
discoveryRequest.getVersionInfo(), discoveryRequest.getResponseNonce());
return false;
}
public void handleEvent(ResourceSnapshot resourceSnapshot, Event event) {
switch (event.getType()) {
case Service:
if (connections.size() == 0) {
return;
}
Loggers.MAIN.info("xds: event {} trigger push.", event.getType());
// Service Entry via MCP
DiscoveryResponse serviceEntryResponse = buildDiscoveryResponse(SERVICE_ENTRY_PROTO_PACKAGE, resourceSnapshot);
// TODO CDS, EDS
for (AbstractConnection<DiscoveryResponse> connection : connections.values()) {
// Service Entry via MCP
WatchedStatus watchedStatus = connection.getWatchedStatusByType(SERVICE_ENTRY_PROTO_PACKAGE);
if (watchedStatus != null) {
connection.push(serviceEntryResponse, watchedStatus);
}
// TODO CDS, EDS
}
break;
case Endpoint:
Loggers.MAIN.warn("Currently, endpoint event is not supported.");
break;
default:
Loggers.MAIN.warn("Invalid event {}, ignore it.", event.getType());
}
}
private DiscoveryResponse buildDiscoveryResponse(String type, ResourceSnapshot resourceSnapshot) {
@SuppressWarnings("unchecked")
ApiGenerator<Any> serviceEntryGenerator = (ApiGenerator<Any>) apiGeneratorFactory.getApiGenerator(type);
List<Any> rawResources = serviceEntryGenerator.generate(resourceSnapshot);
String nonce = NonceGenerator.generateNonce();
return DiscoveryResponse.newBuilder()
.setTypeUrl(type)
.addAllResources(rawResources)
.setVersionInfo(resourceSnapshot.getVersion())
.setNonce(nonce).build();
}
}
| alibaba/nacos | istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java | Java | apache-2.0 | 8,564 | [
30522,
1013,
1008,
1008,
9385,
2639,
1011,
2760,
4862,
3676,
3676,
2177,
3173,
5183,
1012,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,
2224,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* 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
*
* https://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 by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto
package com.google.cloud.compute.v1;
/**
*
*
* <pre>
* A request message for Disks.Delete. See the method description for details.
* </pre>
*
* Protobuf type {@code google.cloud.compute.v1.DeleteDiskRequest}
*/
public final class DeleteDiskRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteDiskRequest)
DeleteDiskRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteDiskRequest.newBuilder() to construct.
private DeleteDiskRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeleteDiskRequest() {
disk_ = "";
project_ = "";
requestId_ = "";
zone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeleteDiskRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private DeleteDiskRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 24669418:
{
java.lang.String s = input.readStringRequireUtf8();
disk_ = s;
break;
}
case 29957474:
{
java.lang.String s = input.readStringRequireUtf8();
zone_ = s;
break;
}
case 296879706:
{
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
requestId_ = s;
break;
}
case 1820481738:
{
java.lang.String s = input.readStringRequireUtf8();
project_ = s;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_DeleteDiskRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.DeleteDiskRequest.class,
com.google.cloud.compute.v1.DeleteDiskRequest.Builder.class);
}
private int bitField0_;
public static final int DISK_FIELD_NUMBER = 3083677;
private volatile java.lang.Object disk_;
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The disk.
*/
@java.lang.Override
public java.lang.String getDisk() {
java.lang.Object ref = disk_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
disk_ = s;
return s;
}
}
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for disk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDiskBytes() {
java.lang.Object ref = disk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
disk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECT_FIELD_NUMBER = 227560217;
private volatile java.lang.Object project_;
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @return The project.
*/
@java.lang.Override
public java.lang.String getProject() {
java.lang.Object ref = project_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
project_ = s;
return s;
}
}
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @return The bytes for project.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProjectBytes() {
java.lang.Object ref = project_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
project_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUEST_ID_FIELD_NUMBER = 37109963;
private volatile java.lang.Object requestId_;
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return Whether the requestId field is set.
*/
@java.lang.Override
public boolean hasRequestId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return The requestId.
*/
@java.lang.Override
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
}
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return The bytes for requestId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_FIELD_NUMBER = 3744684;
private volatile java.lang.Object zone_;
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @return The zone.
*/
@java.lang.Override
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
}
}
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @return The bytes for zone.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(disk_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3083677, disk_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(disk_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3083677, disk_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.compute.v1.DeleteDiskRequest)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.DeleteDiskRequest other =
(com.google.cloud.compute.v1.DeleteDiskRequest) obj;
if (!getDisk().equals(other.getDisk())) return false;
if (!getProject().equals(other.getProject())) return false;
if (hasRequestId() != other.hasRequestId()) return false;
if (hasRequestId()) {
if (!getRequestId().equals(other.getRequestId())) return false;
}
if (!getZone().equals(other.getZone())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DISK_FIELD_NUMBER;
hash = (53 * hash) + getDisk().hashCode();
hash = (37 * hash) + PROJECT_FIELD_NUMBER;
hash = (53 * hash) + getProject().hashCode();
if (hasRequestId()) {
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
}
hash = (37 * hash) + ZONE_FIELD_NUMBER;
hash = (53 * hash) + getZone().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.DeleteDiskRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.compute.v1.DeleteDiskRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
* <pre>
* A request message for Disks.Delete. See the method description for details.
* </pre>
*
* Protobuf type {@code google.cloud.compute.v1.DeleteDiskRequest}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteDiskRequest)
com.google.cloud.compute.v1.DeleteDiskRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_DeleteDiskRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.DeleteDiskRequest.class,
com.google.cloud.compute.v1.DeleteDiskRequest.Builder.class);
}
// Construct using com.google.cloud.compute.v1.DeleteDiskRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
disk_ = "";
project_ = "";
requestId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
zone_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.DeleteDiskRequest getDefaultInstanceForType() {
return com.google.cloud.compute.v1.DeleteDiskRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.DeleteDiskRequest build() {
com.google.cloud.compute.v1.DeleteDiskRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.DeleteDiskRequest buildPartial() {
com.google.cloud.compute.v1.DeleteDiskRequest result =
new com.google.cloud.compute.v1.DeleteDiskRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.disk_ = disk_;
result.project_ = project_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.requestId_ = requestId_;
result.zone_ = zone_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.compute.v1.DeleteDiskRequest) {
return mergeFrom((com.google.cloud.compute.v1.DeleteDiskRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.DeleteDiskRequest other) {
if (other == com.google.cloud.compute.v1.DeleteDiskRequest.getDefaultInstance()) return this;
if (!other.getDisk().isEmpty()) {
disk_ = other.disk_;
onChanged();
}
if (!other.getProject().isEmpty()) {
project_ = other.project_;
onChanged();
}
if (other.hasRequestId()) {
bitField0_ |= 0x00000001;
requestId_ = other.requestId_;
onChanged();
}
if (!other.getZone().isEmpty()) {
zone_ = other.zone_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.compute.v1.DeleteDiskRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.cloud.compute.v1.DeleteDiskRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object disk_ = "";
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The disk.
*/
public java.lang.String getDisk() {
java.lang.Object ref = disk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
disk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for disk.
*/
public com.google.protobuf.ByteString getDiskBytes() {
java.lang.Object ref = disk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
disk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @param value The disk to set.
* @return This builder for chaining.
*/
public Builder setDisk(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
disk_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return This builder for chaining.
*/
public Builder clearDisk() {
disk_ = getDefaultInstance().getDisk();
onChanged();
return this;
}
/**
*
*
* <pre>
* Name of the persistent disk to delete.
* </pre>
*
* <code>string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @param value The bytes for disk to set.
* @return This builder for chaining.
*/
public Builder setDiskBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
disk_ = value;
onChanged();
return this;
}
private java.lang.Object project_ = "";
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @return The project.
*/
public java.lang.String getProject() {
java.lang.Object ref = project_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
project_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @return The bytes for project.
*/
public com.google.protobuf.ByteString getProjectBytes() {
java.lang.Object ref = project_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
project_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @param value The project to set.
* @return This builder for chaining.
*/
public Builder setProject(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
project_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @return This builder for chaining.
*/
public Builder clearProject() {
project_ = getDefaultInstance().getProject();
onChanged();
return this;
}
/**
*
*
* <pre>
* Project ID for this request.
* </pre>
*
* <code>
* string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
* </code>
*
* @param value The bytes for project to set.
* @return This builder for chaining.
*/
public Builder setProjectBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
project_ = value;
onChanged();
return this;
}
private java.lang.Object requestId_ = "";
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return Whether the requestId field is set.
*/
public boolean hasRequestId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
requestId_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @return This builder for chaining.
*/
public Builder clearRequestId() {
bitField0_ = (bitField0_ & ~0x00000001);
requestId_ = getDefaultInstance().getRequestId();
onChanged();
return this;
}
/**
*
*
* <pre>
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* </pre>
*
* <code>optional string request_id = 37109963;</code>
*
* @param value The bytes for requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
requestId_ = value;
onChanged();
return this;
}
private java.lang.Object zone_ = "";
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @return The zone.
*/
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @return The bytes for zone.
*/
public com.google.protobuf.ByteString getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @param value The zone to set.
* @return This builder for chaining.
*/
public Builder setZone(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zone_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @return This builder for chaining.
*/
public Builder clearZone() {
zone_ = getDefaultInstance().getZone();
onChanged();
return this;
}
/**
*
*
* <pre>
* The name of the zone for this request.
* </pre>
*
* <code>
* string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
* </code>
*
* @param value The bytes for zone to set.
* @return This builder for chaining.
*/
public Builder setZoneBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zone_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteDiskRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteDiskRequest)
private static final com.google.cloud.compute.v1.DeleteDiskRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteDiskRequest();
}
public static com.google.cloud.compute.v1.DeleteDiskRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeleteDiskRequest> PARSER =
new com.google.protobuf.AbstractParser<DeleteDiskRequest>() {
@java.lang.Override
public DeleteDiskRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteDiskRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<DeleteDiskRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeleteDiskRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.compute.v1.DeleteDiskRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
| googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteDiskRequest.java | Java | apache-2.0 | 42,420 | [
30522,
1013,
1008,
1008,
9385,
12609,
8224,
11775,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,
2224,
2023,
5371,
3272,
1999,
12646,
2007,
1996,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2019 DeepMind Technologies Limited.
//
// 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.
#ifndef REVERB_CC_TESTING_TIME_TESTUTIL_H_
#define REVERB_CC_TESTING_TIME_TESTUTIL_H_
#include "absl/time/clock.h"
#include "absl/time/time.h"
namespace deepmind {
namespace reverb {
namespace test {
template <typename F>
void WaitFor(F&& exit_criteria_fn, const absl::Duration& wait_duration,
int max_iteration) {
for (int retries = 0; !exit_criteria_fn() && retries < max_iteration;
++retries) {
absl::SleepFor(wait_duration);
}
}
} // namespace test
} // namespace reverb
} // namespace deepmind
#endif // REVERB_CC_TESTING_TIME_TESTUTIL_H_
| deepmind/reverb | reverb/cc/testing/time_testutil.h | C | apache-2.0 | 1,189 | [
30522,
1013,
1013,
9385,
10476,
2784,
23356,
6786,
3132,
1012,
1013,
1013,
1013,
1013,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1013,
1013,
2017,
2089,
2025,
2224,
2023,
5371,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* AbstractLikelihoodCore.java
*
* Copyright (C) 2002-2006 Alexei Drummond and Andrew Rambaut
*
* This file is part of BEAST.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership and licensing.
*
* BEAST is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* BEAST is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with BEAST; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
package dr.evomodel.treelikelihood;
/**
* AbstractLikelihoodCore - An abstract base class for LikelihoodCores
*
* @author Andrew Rambaut
* @version $Id: AbstractLikelihoodCore.java,v 1.11 2006/08/30 16:02:42 rambaut Exp $
*/
public abstract class AbstractLikelihoodCore implements LikelihoodCore {
protected int stateCount;
protected int nodeCount;
protected int patternCount;
protected int partialsSize;
protected int matrixSize;
protected int matrixCount;
protected boolean integrateCategories;
protected double[][][] partials;
protected int[][] states;
protected double[][][] matrices;
protected int[] currentMatricesIndices;
protected int[] storedMatricesIndices;
protected int[] currentPartialsIndices;
protected int[] storedPartialsIndices;
protected boolean useScaling = false;
protected double[][][] scalingFactors;
private double scalingThreshold = 1.0E-100;
/**
* Constructor
*
* @param stateCount number of states
*/
public AbstractLikelihoodCore(int stateCount) {
this.stateCount = stateCount;
}
/**
* initializes partial likelihood arrays.
*
* @param nodeCount the number of nodes in the tree
* @param patternCount the number of patterns
* @param matrixCount the number of matrices (i.e., number of categories)
* @param integrateCategories whether sites are being integrated over all matrices
*/
public void initialize(int nodeCount, int patternCount, int matrixCount, boolean integrateCategories) {
this.nodeCount = nodeCount;
this.patternCount = patternCount;
this.matrixCount = matrixCount;
this.integrateCategories = integrateCategories;
if (integrateCategories) {
partialsSize = patternCount * stateCount * matrixCount;
} else {
partialsSize = patternCount * stateCount;
}
partials = new double[2][nodeCount][];
currentMatricesIndices = new int[nodeCount];
storedMatricesIndices = new int[nodeCount];
currentPartialsIndices = new int[nodeCount];
storedPartialsIndices = new int[nodeCount];
states = new int[nodeCount][];
for (int i = 0; i < nodeCount; i++) {
partials[0][i] = null;
partials[1][i] = null;
states[i] = null;
}
matrixSize = stateCount * stateCount;
matrices = new double[2][nodeCount][matrixCount * matrixSize];
}
/**
* cleans up and deallocates arrays.
*/
public void finalize() throws java.lang.Throwable {
super.finalize();
nodeCount = 0;
patternCount = 0;
matrixCount = 0;
partials = null;
currentPartialsIndices = null;
storedPartialsIndices = null;
states = null;
matrices = null;
currentMatricesIndices = null;
storedMatricesIndices = null;
scalingFactors = null;
}
public void setUseScaling(boolean useScaling) {
this.useScaling = useScaling;
if (useScaling) {
scalingFactors = new double[2][nodeCount][patternCount];
}
}
/**
* Allocates partials for a node
*/
public void createNodePartials(int nodeIndex) {
this.partials[0][nodeIndex] = new double[partialsSize];
this.partials[1][nodeIndex] = new double[partialsSize];
}
/**
* Sets partials for a node
*/
public void setNodePartials(int nodeIndex, double[] partials) {
if (this.partials[0][nodeIndex] == null) {
createNodePartials(nodeIndex);
}
if (partials.length < partialsSize) {
int k = 0;
for (int i = 0; i < matrixCount; i++) {
System.arraycopy(partials, 0, this.partials[0][nodeIndex], k, partials.length);
k += partials.length;
}
} else {
System.arraycopy(partials, 0, this.partials[0][nodeIndex], 0, partials.length);
}
}
/**
* Allocates states for a node
*/
public void createNodeStates(int nodeIndex) {
this.states[nodeIndex] = new int[patternCount];
}
/**
* Sets states for a node
*/
public void setNodeStates(int nodeIndex, int[] states) {
if (this.states[nodeIndex] == null) {
createNodeStates(nodeIndex);
}
System.arraycopy(states, 0, this.states[nodeIndex], 0, patternCount);
}
/**
* Gets states for a node
*/
public void getNodeStates(int nodeIndex, int[] states) {
System.arraycopy(this.states[nodeIndex], 0, states, 0, patternCount);
}
public void setNodeMatrixForUpdate(int nodeIndex) {
currentMatricesIndices[nodeIndex] = 1 - currentMatricesIndices[nodeIndex];
}
/**
* Sets probability matrix for a node
*/
public void setNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {
System.arraycopy(matrix, 0, matrices[currentMatricesIndices[nodeIndex]][nodeIndex],
matrixIndex * matrixSize, matrixSize);
}
/**
* Gets probability matrix for a node
*/
public void getNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {
System.arraycopy(matrices[currentMatricesIndices[nodeIndex]][nodeIndex],
matrixIndex * matrixSize, matrix, 0, matrixSize);
}
public void setNodePartialsForUpdate(int nodeIndex) {
currentPartialsIndices[nodeIndex] = 1 - currentPartialsIndices[nodeIndex];
}
/**
* Sets the currently updating node partials for node nodeIndex. This may
* need to repeatedly copy the partials for the different category partitions
*/
public void setCurrentNodePartials(int nodeIndex, double[] partials) {
if (partials.length < partialsSize) {
int k = 0;
for (int i = 0; i < matrixCount; i++) {
System.arraycopy(partials, 0, this.partials[currentPartialsIndices[nodeIndex]][nodeIndex], k, partials.length);
k += partials.length;
}
} else {
System.arraycopy(partials, 0, this.partials[currentPartialsIndices[nodeIndex]][nodeIndex], 0, partials.length);
}
}
/**
* Calculates partial likelihoods at a node.
*
* @param nodeIndex1 the 'child 1' node
* @param nodeIndex2 the 'child 2' node
* @param nodeIndex3 the 'parent' node
*/
public void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3) {
if (states[nodeIndex1] != null) {
if (states[nodeIndex2] != null) {
calculateStatesStatesPruning(
states[nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
states[nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3]);
} else {
calculateStatesPartialsPruning(states[nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex2]][nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3]);
}
} else {
if (states[nodeIndex2] != null) {
calculateStatesPartialsPruning(states[nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3]);
} else {
calculatePartialsPartialsPruning(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex2]][nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3]);
}
}
if (useScaling) {
scalePartials(nodeIndex3);
}
//
// int k =0;
// for (int i = 0; i < patternCount; i++) {
// double f = 0.0;
//
// for (int j = 0; j < stateCount; j++) {
// f += partials[currentPartialsIndices[nodeIndex3]][nodeIndex3][k];
// k++;
// }
// if (f == 0.0) {
// Logger.getLogger("error").severe("A partial likelihood (node index = " + nodeIndex3 + ", pattern = "+ i +") is zero for all states.");
// }
// }
}
/**
* Calculates partial likelihoods at a node when both children have states.
*/
protected abstract void calculateStatesStatesPruning(int[] states1, double[] matrices1,
int[] states2, double[] matrices2,
double[] partials3);
/**
* Calculates partial likelihoods at a node when one child has states and one has partials.
*/
protected abstract void calculateStatesPartialsPruning(int[] states1, double[] matrices1,
double[] partials2, double[] matrices2,
double[] partials3);
/**
* Calculates partial likelihoods at a node when both children have partials.
*/
protected abstract void calculatePartialsPartialsPruning(double[] partials1, double[] matrices1,
double[] partials2, double[] matrices2,
double[] partials3);
/**
* Calculates partial likelihoods at a node.
*
* @param nodeIndex1 the 'child 1' node
* @param nodeIndex2 the 'child 2' node
* @param nodeIndex3 the 'parent' node
* @param matrixMap a map of which matrix to use for each pattern (can be null if integrating over categories)
*/
public void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3, int[] matrixMap) {
if (states[nodeIndex1] != null) {
if (states[nodeIndex2] != null) {
calculateStatesStatesPruning(
states[nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
states[nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3], matrixMap);
} else {
calculateStatesPartialsPruning(
states[nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex2]][nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3], matrixMap);
}
} else {
if (states[nodeIndex2] != null) {
calculateStatesPartialsPruning(
states[nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3], matrixMap);
} else {
calculatePartialsPartialsPruning(
partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex2]][nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],
partials[currentPartialsIndices[nodeIndex3]][nodeIndex3], matrixMap);
}
}
if (useScaling) {
scalePartials(nodeIndex3);
}
}
/**
* Calculates partial likelihoods at a node when both children have states.
*/
protected abstract void calculateStatesStatesPruning(int[] states1, double[] matrices1,
int[] states2, double[] matrices2,
double[] partials3, int[] matrixMap);
/**
* Calculates partial likelihoods at a node when one child has states and one has partials.
*/
protected abstract void calculateStatesPartialsPruning(int[] states1, double[] matrices1,
double[] partials2, double[] matrices2,
double[] partials3, int[] matrixMap);
/**
* Calculates partial likelihoods at a node when both children have partials.
*/
protected abstract void calculatePartialsPartialsPruning(double[] partials1, double[] matrices1,
double[] partials2, double[] matrices2,
double[] partials3, int[] matrixMap);
public void integratePartials(int nodeIndex, double[] proportions, double[] outPartials) {
calculateIntegratePartials(partials[currentPartialsIndices[nodeIndex]][nodeIndex], proportions, outPartials);
}
/**
* Integrates partials across categories.
*
* @param inPartials the partials at the node to be integrated
* @param proportions the proportions of sites in each category
* @param outPartials an array into which the integrated partials will go
*/
protected abstract void calculateIntegratePartials(double[] inPartials, double[] proportions, double[] outPartials);
/**
* Scale the partials at a given node. This uses a scaling suggested by Ziheng Yang in
* Yang (2000) J. Mol. Evol. 51: 423-432
* <p/>
* This function looks over the partial likelihoods for each state at each pattern
* and finds the largest. If this is less than the scalingThreshold (currently set
* to 1E-40) then it rescales the partials for that pattern by dividing by this number
* (i.e., normalizing to between 0, 1). It then stores the log of this scaling.
* This is called for every internal node after the partials are calculated so provides
* most of the performance hit. Ziheng suggests only doing this on a proportion of nodes
* but this sounded like a headache to organize (and he doesn't use the threshold idea
* which improves the performance quite a bit).
*
* @param nodeIndex
*/
protected void scalePartials(int nodeIndex) {
int u = 0;
for (int i = 0; i < patternCount; i++) {
double scaleFactor = 0.0;
int v = u;
for (int k = 0; k < matrixCount; k++) {
for (int j = 0; j < stateCount; j++) {
if (partials[currentPartialsIndices[nodeIndex]][nodeIndex][v] > scaleFactor) {
scaleFactor = partials[currentPartialsIndices[nodeIndex]][nodeIndex][v];
}
v++;
}
v += (patternCount - 1) * stateCount;
}
if (scaleFactor < scalingThreshold) {
v = u;
for (int k = 0; k < matrixCount; k++) {
for (int j = 0; j < stateCount; j++) {
partials[currentPartialsIndices[nodeIndex]][nodeIndex][v] /= scaleFactor;
v++;
}
v += (patternCount - 1) * stateCount;
}
scalingFactors[currentPartialsIndices[nodeIndex]][nodeIndex][i] = Math.log(scaleFactor);
} else {
scalingFactors[currentPartialsIndices[nodeIndex]][nodeIndex][i] = 0.0;
}
u += stateCount;
}
}
/**
* This function returns the scaling factor for that pattern by summing over
* the log scalings used at each node. If scaling is off then this just returns
* a 0.
*
* @return the log scaling factor
*/
public double getLogScalingFactor(int pattern) {
double logScalingFactor = 0.0;
if (useScaling) {
for (int i = 0; i < nodeCount; i++) {
logScalingFactor += scalingFactors[currentPartialsIndices[i]][i][pattern];
}
}
return logScalingFactor;
}
/**
* Gets the partials for a particular node.
*
* @param nodeIndex the node
* @param outPartials an array into which the partials will go
*/
public void getPartials(int nodeIndex, double[] outPartials) {
double[] partials1 = partials[currentPartialsIndices[nodeIndex]][nodeIndex];
System.arraycopy(partials1, 0, outPartials, 0, partialsSize);
}
/**
* Store current state
*/
public void storeState() {
System.arraycopy(currentMatricesIndices, 0, storedMatricesIndices, 0, nodeCount);
System.arraycopy(currentPartialsIndices, 0, storedPartialsIndices, 0, nodeCount);
}
/**
* Restore the stored state
*/
public void restoreState() {
// Rather than copying the stored stuff back, just swap the pointers...
int[] tmp1 = currentMatricesIndices;
currentMatricesIndices = storedMatricesIndices;
storedMatricesIndices = tmp1;
int[] tmp2 = currentPartialsIndices;
currentPartialsIndices = storedPartialsIndices;
storedPartialsIndices = tmp2;
}
}
| whdc/ieo-beast | src/dr/evomodel/treelikelihood/AbstractLikelihoodCore.java | Java | lgpl-2.1 | 18,890 | [
30522,
1013,
1008,
1008,
10061,
10359,
3669,
9021,
17345,
1012,
9262,
1008,
1008,
9385,
1006,
1039,
1007,
2526,
1011,
2294,
21219,
19266,
1998,
4080,
8223,
27773,
2102,
1008,
1008,
2023,
5371,
2003,
2112,
1997,
6841,
1012,
1008,
2156,
1996,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/*
* Copyright (c) 2011 Litle & Co.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace litle\sdk\Test\unit;
use litle\sdk\LitleOnlineRequest;
class EcheckCreditUnitTest extends \PHPUnit_Framework_TestCase
{
public function test_simple_echeckCredit()
{
$hash_in = array('litleTxnId' =>'123123');
$mock = $this->getMock('litle\sdk\LitleXmlMapper');
$mock->expects($this->once())
->method('request')
->with($this->matchesRegularExpression('/.*<litleTxnId>123123.*/'));
$litleTest = new LitleOnlineRequest();
$litleTest->newXML = $mock;
$litleTest->echeckCreditRequest($hash_in);
}
public function test_both_choices()
{
$hash_in = array('reportGroup'=>'Planets','litleTxnId'=>'123456',
'echeckToken' => array('accType'=>'Checking','routingNum'=>'123123','litleToken'=>'1234565789012','checkNum'=>'123455'),
'echeck' => array('accType'=>'Checking','routingNum'=>'123123','accNum'=>'12345657890','checkNum'=>'123455'));
$litleTest = new LitleOnlineRequest();
$this->setExpectedException('InvalidArgumentException',"Entered an Invalid Amount of Choices for a Field, please only fill out one Choice!!!!");
$retOb = $litleTest->echeckCreditRequest($hash_in);
}
public function test_loggedInUser()
{
$hash_in = array(
'litleTxnId' =>'123123',
'merchantSdk'=>'PHP;8.14.0',
'loggedInUser' => 'gdake');
$mock = $this->getMock('litle\sdk\LitleXmlMapper');
$mock->expects($this->once())
->method('request')
->with($this->matchesRegularExpression('/.*merchantSdk="PHP;8.14.0".*loggedInUser="gdake" xmlns=.*>.*/'));
$litleTest = new LitleOnlineRequest();
$litleTest->newXML = $mock;
$litleTest->echeckCreditRequest($hash_in);
}
}
| Cartworks/Platform | core/addons/payment_litleco/include/litle/sdk/Test/unit/EcheckCreditUnitTest.php | PHP | mit | 2,928 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2249,
5507,
2571,
1004,
2522,
1012,
1008,
1008,
6656,
2003,
2182,
3762,
4379,
1010,
2489,
1997,
3715,
1010,
2000,
2151,
2711,
1008,
11381,
1037,
6100,
1997,
2023,
4007,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//
// obint.h
//
// Copyright (C) 1996 Limit Point Systems, Inc.
//
// Author: Curtis Janssen <cljanss@limitpt.com>
// Maintainer: LPS
//
// This file is part of the SC Toolkit.
//
// The SC Toolkit is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.
//
// The SC Toolkit 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 Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public License
// along with the SC Toolkit; see the file COPYING.LIB. If not, write to
// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
//
// The U.S. Government is granted a limited license as per AL 91-7.
//
#ifndef _chemistry_qc_basis_obint_h
#define _chemistry_qc_basis_obint_h
#ifdef __GNUC__
#pragma interface
#endif
#include <util/ref/ref.h>
#include <util/state/state.h>
#include <math/scmat/matrix.h>
#include <math/scmat/elemop.h>
#include <chemistry/qc/basis/gaussbas.h>
#include <chemistry/qc/basis/dercent.h>
namespace sc {
class Integral;
// //////////////////////////////////////////////////////////////////////////
class EfieldDotVectorData: public RefCount
{
public:
EfieldDotVectorData() {};
~EfieldDotVectorData();
double position[3];
double vector[3];
void set_position(double*);
void set_vector(double*);
};
class DipoleData: public RefCount
{
public:
double origin[3];
DipoleData(double *d) {origin[0]=d[0]; origin[1]=d[1]; origin[2]=d[2];}
DipoleData() {origin[0]=origin[1]=origin[2]=0.0;}
~DipoleData();
void set_origin(double*);
};
class PointChargeData: public RefCount
{
private:
int ncharges_;
const double *charges_;
const double *const*positions_;
double *alloced_charges_;
double **alloced_positions_;
public:
// If copy_data is 0, the passed positions and charges will
// be stored (but not freed).
PointChargeData(int ncharge,
const double *const*positions, const double *charges,
int copy_data = 0);
~PointChargeData();
int ncharges() const { return ncharges_; }
const double *charges() const { return charges_; }
const double *const*positions() const { return positions_; }
};
/** OneBodyInt is an abstract base class for objects that
compute integrals between two basis functions. */
class OneBodyInt : public RefCount {
protected:
// this is who created me
Integral *integral_;
Ref<GaussianBasisSet> bs1_;
Ref<GaussianBasisSet> bs2_;
double *buffer_;
OneBodyInt(Integral *integral,
const Ref<GaussianBasisSet>&b1,
const Ref<GaussianBasisSet>&b2 = 0);
public:
virtual ~OneBodyInt();
/// Returns the number of basis functions on center one.
int nbasis() const;
/// Returns the number of basis functions on the center one.
int nbasis1() const;
/// Returns the number of basis functions on the center two.
int nbasis2() const;
/// Return the number of shells on center one.
int nshell() const;
/// Return the number of shells on the center one.
int nshell1() const;
/// Return the number of shells on the center two.
int nshell2() const;
/// Return the basis set on center one.
Ref<GaussianBasisSet> basis();
/// Return the basis set on the center one.
Ref<GaussianBasisSet> basis1();
/// Return the basis set on the center two.
Ref<GaussianBasisSet> basis2();
/// Returns the buffer where the integrals are placed.
const double * buffer() const;
/** Computes the integrals between basis functions in the
given shell pair. */
virtual void compute_shell(int,int) = 0;
/** This is called for one body integrals that take data to let
them know that the data they reference has changed. */
virtual void reinitialize();
/** Return true if the clone member can be called. The default
* implementation returns false. */
virtual bool cloneable();
/** Returns a clone of this. The default implementation throws an
* exception. */
virtual Ref<OneBodyInt> clone();
Integral *integral() const { return integral_; }
};
// //////////////////////////////////////////////////////////////////////////
/** OneBodyOneCenterInt is an abstract base class for objects that
compute integrals between two basis functions. */
class OneBodyOneCenterInt : public RefCount {
protected:
// this is who created me
Integral *integral_;
Ref<GaussianBasisSet> bs1_;
double *buffer_;
OneBodyOneCenterInt(Integral *integral,
const Ref<GaussianBasisSet>&b1);
public:
virtual ~OneBodyOneCenterInt();
/// Returns the number of basis functions on center one.
int nbasis() const;
/// Returns the number of basis functions on the center one.
int nbasis1() const;
/// Return the number of shells on center one.
int nshell() const;
/// Return the number of shells on the center one.
int nshell1() const;
/// Return the basis set on center one.
Ref<GaussianBasisSet> basis();
/// Return the basis set on the center one.
Ref<GaussianBasisSet> basis1();
/// Returns the buffer where the integrals are placed.
const double * buffer() const;
/** Computes the integrals for basis functions on the
given shell. */
virtual void compute_shell(int) = 0;
/** This is called for one body integrals that take data to let
them know that the data they reference has changed. */
virtual void reinitialize();
/** Return true if the clone member can be called. The default
* implementation returns false. */
virtual bool cloneable();
/** Returns a clone of this. The default implementation throws an
* exception. */
virtual Ref<OneBodyOneCenterInt> clone();
Integral *integral() const { return integral_; }
};
// //////////////////////////////////////////////////////////////////////////
class OneBodyOneCenterWrapper : public OneBodyOneCenterInt {
Ref<OneBodyInt> ob_;
int jsh_;
public:
OneBodyOneCenterWrapper(const Ref<OneBodyInt>& ob,
int sh2 = 0);
void compute_shell(int);
};
// //////////////////////////////////////////////////////////////////////////
class ShellPairIter {
private:
const double * buf;
double scale_;
int e12;
int index;
int ioffset;
int joffset;
int iend;
int jend;
int icur;
int jcur;
public:
ShellPairIter();
~ShellPairIter();
void init(const double * buffer, int ishell, int jshell,
int ioff, int joff, int nfunci, int nfuncj, int redund=0,
double scale=1.0);
void start() { icur=jcur=index=0; }
int ready() const { return (icur < iend); }
void next() {
if (jcur < ((e12)?(icur):((jend)-1))) {
index++;
jcur++;
return;
}
jcur=0;
icur++;
index = icur*jend;
}
int current_i() const { return icur; }
int current_j() const { return jcur; }
int i() const { return icur+ioffset; }
int j() const { return jcur+joffset; }
int nint() const { return iend*jend; }
double val() const { return buf[index]*scale_; }
};
// //////////////////////////////////////////////////////////////////////////
class OneBodyIntIter : public RefCount {
protected:
Ref<OneBodyInt> obi; // help me obi wan
ShellPairIter spi;
int redund;
int istart;
int jstart;
int iend;
int jend;
int icur;
int jcur;
int ij;
public:
OneBodyIntIter();
OneBodyIntIter(const Ref<OneBodyInt>&);
virtual ~OneBodyIntIter();
virtual void start(int ist=0, int jst=0, int ien=0, int jen=0);
virtual void next();
int ready() const { return (icur < iend); }
int ishell() const { return icur; }
int jshell() const { return jcur; }
int ijshell() const { return ij; }
int redundant() const { return redund; }
void set_redundant(int i) { redund=i; }
virtual double scale() const;
Ref<OneBodyInt> one_body_int() { return obi; }
ShellPairIter& current_pair();
virtual bool cloneable();
virtual Ref<OneBodyIntIter> clone();
};
// //////////////////////////////////////////////////////////////////////////
class OneBodyIntOp: public SCElementOp {
protected:
Ref<OneBodyIntIter> iter;
public:
OneBodyIntOp(const Ref<OneBodyInt>&);
OneBodyIntOp(const Ref<OneBodyIntIter>&);
virtual ~OneBodyIntOp();
void process(SCMatrixBlockIter&);
void process_spec_rect(SCMatrixRectBlock*);
void process_spec_ltri(SCMatrixLTriBlock*);
void process_spec_rectsub(SCMatrixRectSubBlock*);
void process_spec_ltrisub(SCMatrixLTriSubBlock*);
bool cloneable();
Ref<SCElementOp> clone();
int has_side_effects();
};
class OneBody3IntOp: public SCElementOp3 {
private:
Ref<OneBodyIntIter> iter;
public:
OneBody3IntOp(const Ref<OneBodyInt>&b);
OneBody3IntOp(const Ref<OneBodyIntIter>&);
virtual ~OneBody3IntOp();
void process(SCMatrixBlockIter&,
SCMatrixBlockIter&,
SCMatrixBlockIter&);
void process_spec_rect(SCMatrixRectBlock*,
SCMatrixRectBlock*,
SCMatrixRectBlock*);
void process_spec_ltri(SCMatrixLTriBlock*,
SCMatrixLTriBlock*,
SCMatrixLTriBlock*);
int has_side_effects();
int has_side_effects_in_arg1();
int has_side_effects_in_arg2();
};
// //////////////////////////////////////////////////////////////////////////
/** OneBodyDerivInt is an abstract base class for objects that
compute one body derivative integrals. */
class OneBodyDerivInt : public RefCount {
protected:
// this is who created me
Integral *integral_;
Ref<GaussianBasisSet> bs1;
Ref<GaussianBasisSet> bs2;
double *buffer_;
public:
OneBodyDerivInt(Integral *, const Ref<GaussianBasisSet>&b);
OneBodyDerivInt(Integral *,
const Ref<GaussianBasisSet>&b1,
const Ref<GaussianBasisSet>&b2);
virtual ~OneBodyDerivInt();
/// Return the number of basis functions on center one.
int nbasis() const;
/// Return the number of basis functions on the center one.
int nbasis1() const;
/// Return the number of basis functions on the center two.
int nbasis2() const;
/// Return the number of shells on center one.
int nshell() const;
/// Return the number of shells on center one.
int nshell1() const;
/// Return the number of shells on center two.
int nshell2() const;
/// Return the basis set on center one.
Ref<GaussianBasisSet> basis();
/// Return the basis set on center one.
Ref<GaussianBasisSet> basis1();
/// Return the basis set on center two.
Ref<GaussianBasisSet> basis2();
/** The computed shell integrals will be put in the buffer returned by
this member. */
const double * buffer() const;
/** Compute the derivative integrals and place the result in the buffer
returned by buffer(). */
virtual void compute_shell(int ish, int jsh, DerivCenters&) = 0;
/** Compute the derivative integrals with respect to the given center
and place the result in the buffer returned by buffer(). */
virtual void compute_shell(int ish, int jsh, int center) = 0;
};
// //////////////////////////////////////////////////////////////////////////
/** OneBodyOneCenterDerivInt is an abstract base class for objects that
compute one body derivative integrals on a single center. */
class OneBodyOneCenterDerivInt : public RefCount {
protected:
// this is who created me
Integral *integral_;
Ref<GaussianBasisSet> bs1;
double *buffer_;
public:
OneBodyOneCenterDerivInt(Integral *, const Ref<GaussianBasisSet>&b);
virtual ~OneBodyOneCenterDerivInt();
/// Return the number of basis functions on center one.
int nbasis() const;
/// Return the number of basis functions on center one.
int nbasis1() const;
/// Return the number of shells on center one.
int nshell() const;
/// Return the number of shells on center one.
int nshell1() const;
/// Return the basis set on center one.
Ref<GaussianBasisSet> basis();
/// Return the basis set on center one.
Ref<GaussianBasisSet> basis1();
/** The computed shell integrals will be put in the buffer returned by
this member. */
const double * buffer() const;
/** Compute the derivative integrals and place the result in the buffer
returned by buffer(). */
virtual void compute_shell(int ish, DerivCenters&) = 0;
/** Compute the derivative integrals with respect to the given center
and place the result in the buffer returned by buffer(). */
virtual void compute_shell(int ish, int center) = 0;
};
}
#endif
// Local Variables:
// mode: c++
// c-file-style: "ETS"
// End:
| qsnake/mpqc | src/lib/chemistry/qc/basis/obint.h | C | gpl-2.0 | 13,449 | [
30522,
1013,
1013,
1013,
1013,
27885,
18447,
1012,
1044,
1013,
1013,
1013,
1013,
9385,
1006,
1039,
1007,
2727,
5787,
2391,
3001,
1010,
4297,
1012,
1013,
1013,
1013,
1013,
3166,
1024,
9195,
5553,
14416,
1026,
18856,
8405,
4757,
1030,
5787,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
=begin
Copyright (C) 2016 Witesy Contributors
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 3 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, see <http://www.gnu.org/licenses/>.
=end
FactoryGirl.define do
factory :order do
order_number "1"
shipping_mode "ups"
payment_term "30 days"
order_date "2013-12-30"
ship_by "2014-12-30"
shipping_address { FactoryGirl.create(:address)}
billing_address { FactoryGirl.create(:address)}
end
end
| sempliva/Witesy | spec/factories/order.rb | Ruby | gpl-3.0 | 947 | [
30522,
1027,
4088,
9385,
1006,
1039,
1007,
2355,
15966,
2229,
2100,
16884,
2023,
2565,
2003,
2489,
4007,
1024,
2017,
2064,
2417,
2923,
3089,
8569,
2618,
2009,
1998,
1013,
2030,
19933,
2009,
2104,
1996,
3408,
1997,
1996,
27004,
2236,
2270,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace Craft;
/**
* ElementsService provides APIs for managing elements.
*
* An instance of ElementsService is globally accessible in Craft via {@link WebApp::elements `craft()->elements`}.
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @copyright Copyright (c) 2014, Pixel & Tonic, Inc.
* @license http://craftcms.com/license Craft License Agreement
* @see http://craftcms.com
* @package craft.app.services
* @since 1.0
*/
class ElementsService extends BaseApplicationComponent
{
// Properties
// =========================================================================
/**
* @var array
*/
private $_placeholderElements;
/**
* @var array
*/
private $_searchResults;
// Public Methods
// =========================================================================
// Finding Elements
// -------------------------------------------------------------------------
/**
* Returns an element criteria model for a given element type.
*
* This should be the starting point any time you want to fetch elements in Craft.
*
* ```php
* $criteria = craft()->elements->getCriteria(ElementType::Entry);
* $criteria->section = 'news';
* $entries = $criteria->find();
* ```
*
* @param string $type The element type class handle (e.g. one of the values in the {@link ElementType} enum).
* @param mixed $attributes Any criteria attribute values that should be pre-populated on the criteria model.
*
* @throws Exception
* @return ElementCriteriaModel An element criteria model, wired to fetch elements of the given $type.
*/
public function getCriteria($type, $attributes = null)
{
$elementType = $this->getElementType($type);
if (!$elementType)
{
throw new Exception(Craft::t('No element type exists by the type “{type}”.', array('type' => $type)));
}
return new ElementCriteriaModel($attributes, $elementType);
}
/**
* Returns an element by its ID.
*
* If no element type is provided, the method will first have to run a DB query to determine what type of element
* the $elementId is, so you should definitely pass it if it’s known.
*
* The element’s status will not be a factor when using this method.
*
* @param int $elementId The element’s ID.
* @param null $elementType The element type’s class handle.
* @param string $localeId The locale to fetch the element in.
* Defaults to {@link WebApp::language `craft()->language`}.
*
* @return BaseElementModel|null The matching element, or `null`.
*/
public function getElementById($elementId, $elementType = null, $localeId = null)
{
if (!$elementId)
{
return null;
}
if (!$elementType)
{
$elementType = $this->getElementTypeById($elementId);
if (!$elementType)
{
return null;
}
}
$criteria = $this->getCriteria($elementType);
$criteria->id = $elementId;
$criteria->locale = $localeId;
$criteria->status = null;
$criteria->localeEnabled = null;
return $criteria->first();
}
/**
* Returns an element by its URI.
*
* @param string $uri The element’s URI.
* @param string|null $localeId The locale to look for the URI in, and to return the element in.
* Defaults to {@link WebApp::language `craft()->language`}.
* @param bool $enabledOnly Whether to only look for an enabled element. Defaults to `false`.
*
* @return BaseElementModel|null The matching element, or `null`.
*/
public function getElementByUri($uri, $localeId = null, $enabledOnly = false)
{
if ($uri === '')
{
$uri = '__home__';
}
if (!$localeId)
{
$localeId = craft()->language;
}
// First get the element ID and type
$conditions = array('and',
'elements_i18n.uri = :uri',
'elements_i18n.locale = :locale'
);
$params = array(
':uri' => $uri,
':locale' => $localeId
);
if ($enabledOnly)
{
$conditions[] = 'elements_i18n.enabled = 1';
$conditions[] = 'elements.enabled = 1';
$conditions[] = 'elements.archived = 0';
}
$result = craft()->db->createCommand()
->select('elements.id, elements.type')
->from('elements elements')
->join('elements_i18n elements_i18n', 'elements_i18n.elementId = elements.id')
->where($conditions, $params)
->queryRow();
if ($result)
{
// Return the actual element
return $this->getElementById($result['id'], $result['type'], $localeId);
}
}
/**
* Returns the element type(s) used by the element of a given ID(s).
*
* If a single ID is passed in (an int), then a single element type will be returned (a string), or `null` if
* no element exists by that ID.
*
* If an array is passed in, then an array will be returned.
*
* @param int|array $elementId An element’s ID, or an array of elements’ IDs.
*
* @return string|array|null The element type(s).
*/
public function getElementTypeById($elementId)
{
if (is_array($elementId))
{
return craft()->db->createCommand()
->selectDistinct('type')
->from('elements')
->where(array('in', 'id', $elementId))
->queryColumn();
}
else
{
return craft()->db->createCommand()
->select('type')
->from('elements')
->where(array('id' => $elementId))
->queryScalar();
}
}
/**
* Finds elements.
*
* @param ElementCriteriaModel $criteria An element criteria model that defines the parameters for the elements
* we should be looking for.
* @param bool $justIds Whether the method should only return an array of the IDs of the matched
* elements. Defaults to `false`.
*
* @return array The matched elements, or their IDs, depending on $justIds.
*/
public function findElements($criteria = null, $justIds = false)
{
$elements = array();
$query = $this->buildElementsQuery($criteria, $contentTable, $fieldColumns, $justIds);
if ($query)
{
$results = $query->queryAll();
if ($results)
{
if ($justIds)
{
foreach ($results as $result)
{
$elements[] = $result['id'];
}
}
else
{
$locale = $criteria->locale;
$elementType = $criteria->getElementType();
$indexBy = $criteria->indexBy;
$lastElement = null;
foreach ($results as $result)
{
// Do we have a placeholder for this elmeent?
if (isset($this->_placeholderElements[$result['id']][$locale]))
{
$element = $this->_placeholderElements[$result['id']][$locale];
}
else
{
// Make a copy to pass to the onPopulateElement event
$originalResult = array_merge($result);
if ($contentTable)
{
// Separate the content values from the main element attributes
$content = array(
'id' => (isset($result['contentId']) ? $result['contentId'] : null),
'elementId' => $result['id'],
'locale' => $locale,
'title' => (isset($result['title']) ? $result['title'] : null)
);
unset($result['title']);
if ($fieldColumns)
{
foreach ($fieldColumns as $column)
{
// Account for results where multiple fields have the same handle, but from
// different columns e.g. two Matrix block types that each have a field with the
// same handle
$colName = $column['column'];
$fieldHandle = $column['handle'];
if (!isset($content[$fieldHandle]) || (empty($content[$fieldHandle]) && !empty($result[$colName])))
{
$content[$fieldHandle] = $result[$colName];
}
unset($result[$colName]);
}
}
}
$result['locale'] = $locale;
// Should we set a search score on the element?
if (isset($this->_searchResults[$result['id']]))
{
$result['searchScore'] = $this->_searchResults[$result['id']];
}
$element = $elementType->populateElementModel($result);
// Was an element returned?
if (!$element || !($element instanceof BaseElementModel))
{
continue;
}
if ($contentTable)
{
$element->setContent($content);
}
// Fire an 'onPopulateElement' event
$this->onPopulateElement(new Event($this, array(
'element' => $element,
'result' => $originalResult
)));
}
if ($indexBy)
{
$elements[$element->$indexBy] = $element;
}
else
{
$elements[] = $element;
}
if ($lastElement)
{
$lastElement->setNext($element);
$element->setPrev($lastElement);
}
else
{
$element->setPrev(false);
}
$lastElement = $element;
}
$lastElement->setNext(false);
}
}
}
return $elements;
}
/**
* Returns the total number of elements that match a given criteria.
*
* @param ElementCriteriaModel $criteria An element criteria model that defines the parameters for the elements
* we should be counting.
*
* @return int The total number of elements that match the criteria.
*/
public function getTotalElements($criteria = null)
{
$query = $this->buildElementsQuery($criteria, $contentTable, $fieldColumns, true);
if ($query)
{
// Remove the order, offset, limit, and any additional tables in the FROM clause
$query
->order('')
->offset(0)
->limit(-1)
->from('elements elements');
// Can't use COUNT() here because of complications with the GROUP BY clause.
$rows = $query->queryColumn();
return count($rows);
}
else
{
return 0;
}
}
/**
* Preps a {@link DbCommand} object for querying for elements, based on a given element criteria.
*
* @param ElementCriteriaModel &$criteria The element criteria model
* @param string &$contentTable The content table that should be joined in. (This variable will
* actually get defined by buildElementsQuery(), and is passed by
* reference so whatever’s calling the method will have access to its
* value.)
* @param array &$fieldColumns Info about the content field columns being selected. (This variable
* will actually get defined by buildElementsQuery(), and is passed by
* reference so whatever’s calling the method will have access to its
* value.)
* @param bool $justIds Whether the method should only return an array of the IDs of the
* matched elements. Defaults to `false`.
*
* @return DbCommand|false The DbCommand object, or `false` if the method was able to determine ahead of time that
* there’s no chance any elements are going to be found with the given parameters.
*/
public function buildElementsQuery(&$criteria = null, &$contentTable = null, &$fieldColumns = null, $justIds = false)
{
if (!($criteria instanceof ElementCriteriaModel))
{
$criteria = $this->getCriteria('Entry', $criteria);
}
$elementType = $criteria->getElementType();
if (!$elementType->isLocalized())
{
// The criteria *must* be set to the primary locale
$criteria->locale = craft()->i18n->getPrimarySiteLocaleId();
}
else if (!$criteria->locale)
{
// Default to the current app locale
$criteria->locale = craft()->language;
}
// Set up the query
// ---------------------------------------------------------------------
// Create the DbCommand object
$query = craft()->db->createCommand();
// Fire an 'onBeforeBuildElementsQuery' event
$event = new Event($this, array(
'criteria' => $criteria,
'justIds' => $justIds,
'query' => $query
));
$this->onBeforeBuildElementsQuery($event);
// Did any of the event handlers object to this query?
if (!$event->performAction)
{
return false;
}
if ($justIds)
{
$query->select('elements.id');
}
else
{
$query->select('elements.id, elements.type, elements.enabled, elements.archived, elements.dateCreated, elements.dateUpdated, elements_i18n.slug, elements_i18n.uri, elements_i18n.enabled AS localeEnabled');
}
$query
->from('elements elements')
->join('elements_i18n elements_i18n', 'elements_i18n.elementId = elements.id')
->where('elements_i18n.locale = :locale', array(':locale' => $criteria->locale))
->group('elements.id');
if ($elementType->hasContent())
{
$contentTable = $elementType->getContentTableForElementsQuery($criteria);
if ($contentTable)
{
$contentCols = 'content.id AS contentId';
if ($elementType->hasTitles())
{
$contentCols .= ', content.title';
}
// TODO: Replace this with a call to getFieldsForElementsQuery() in 3.0
$fieldColumns = $elementType->getContentFieldColumnsForElementsQuery($criteria);
foreach ($fieldColumns as $column)
{
$contentCols .= ', content.'.$column['column'];
}
if (!$justIds)
{
$query->addSelect($contentCols);
}
$query->join($contentTable.' content', 'content.elementId = elements.id');
$query->andWhere('content.locale = :locale');
}
}
// Basic element params
// ---------------------------------------------------------------------
// If the 'id' parameter is set to any empty value besides `null`, don't return anything
if ($criteria->id !== null && empty($criteria->id))
{
return false;
}
if ($criteria->id)
{
$query->andWhere(DbHelper::parseParam('elements.id', $criteria->id, $query->params));
}
if ($criteria->archived)
{
$query->andWhere('elements.archived = 1');
}
else
{
$query->andWhere('elements.archived = 0');
if ($criteria->status)
{
$statusConditions = array();
$statuses = ArrayHelper::stringToArray($criteria->status);
foreach ($statuses as $status)
{
$status = StringHelper::toLowerCase($status);
// Is this a supported status?
if (in_array($status, array_keys($elementType->getStatuses())))
{
if ($status == BaseElementModel::ENABLED)
{
$statusConditions[] = 'elements.enabled = 1';
}
else if ($status == BaseElementModel::DISABLED)
{
$statusConditions[] = 'elements.enabled = 0';
}
else
{
$elementStatusCondition = $elementType->getElementQueryStatusCondition($query, $status);
if ($elementStatusCondition)
{
$statusConditions[] = $elementStatusCondition;
}
else if ($elementStatusCondition === false)
{
return false;
}
}
}
}
if ($statusConditions)
{
if (count($statusConditions) == 1)
{
$statusCondition = $statusConditions[0];
}
else
{
array_unshift($statusConditions, 'or');
$statusCondition = $statusConditions;
}
$query->andWhere($statusCondition);
}
}
}
if ($criteria->dateCreated)
{
$query->andWhere(DbHelper::parseDateParam('elements.dateCreated', $criteria->dateCreated, $query->params));
}
if ($criteria->dateUpdated)
{
$query->andWhere(DbHelper::parseDateParam('elements.dateUpdated', $criteria->dateUpdated, $query->params));
}
if ($elementType->hasTitles() && $criteria->title)
{
$query->andWhere(DbHelper::parseParam('content.title', $criteria->title, $query->params));
}
// i18n params
// ---------------------------------------------------------------------
if ($criteria->slug)
{
$query->andWhere(DbHelper::parseParam('elements_i18n.slug', $criteria->slug, $query->params));
}
if ($criteria->uri)
{
$query->andWhere(DbHelper::parseParam('elements_i18n.uri', $criteria->uri, $query->params));
}
if ($criteria->localeEnabled)
{
$query->andWhere('elements_i18n.enabled = 1');
}
// Relational params
// ---------------------------------------------------------------------
// Convert the old childOf and parentOf params to the relatedTo param
// childOf(element) => relatedTo({ source: element })
// parentOf(element) => relatedTo({ target: element })
if (!$criteria->relatedTo && ($criteria->childOf || $criteria->parentOf))
{
$relatedTo = array('and');
if ($criteria->childOf)
{
$relatedTo[] = array('sourceElement' => $criteria->childOf, 'field' => $criteria->childField);
}
if ($criteria->parentOf)
{
$relatedTo[] = array('targetElement' => $criteria->parentOf, 'field' => $criteria->parentField);
}
$criteria->relatedTo = $relatedTo;
}
if ($criteria->relatedTo)
{
$relationParamParser = new ElementRelationParamParser();
$relConditions = $relationParamParser->parseRelationParam($criteria->relatedTo, $query);
if ($relConditions === false)
{
return false;
}
$query->andWhere($relConditions);
// If there's only one relation criteria and it's specifically for grabbing target elements, allow the query
// to order by the relation sort order
if (!$justIds && $relationParamParser->isRelationFieldQuery())
{
$query->addSelect('sources1.sortOrder');
}
}
// Give field types a chance to make changes
// ---------------------------------------------------------------------
if ($elementType->hasContent() && $contentTable)
{
$contentService = craft()->content;
$originalFieldColumnPrefix = $contentService->fieldColumnPrefix;
// TODO: $fields should already be defined by now in Craft 3.0
$fields = $elementType->getFieldsForElementsQuery($criteria);
$extraCriteriaAttributes = $criteria->getExtraAttributeNames();
foreach ($fields as $field)
{
$fieldType = $field->getFieldType();
if ($fieldType)
{
// Was this field's parameter set on the criteria model?
if (in_array($field->handle, $extraCriteriaAttributes))
{
$fieldCriteria = $criteria->{$field->handle};
}
else
{
$fieldCriteria = null;
}
// Set the field's column prefix on ContentService
if ($field->columnPrefix)
{
$contentService->fieldColumnPrefix = $field->columnPrefix;
}
$fieldTypeResponse = $fieldType->modifyElementsQuery($query, $fieldCriteria);
// Set it back
$contentService->fieldColumnPrefix = $originalFieldColumnPrefix;
// Need to bail early?
if ($fieldTypeResponse === false)
{
return false;
}
}
}
}
// Give the element type a chance to make changes
// ---------------------------------------------------------------------
if ($elementType->modifyElementsQuery($query, $criteria) === false)
{
return false;
}
// Structure params
// ---------------------------------------------------------------------
if ($query->isJoined('structureelements'))
{
if (!$justIds)
{
$query->addSelect('structureelements.root, structureelements.lft, structureelements.rgt, structureelements.level');
}
if ($criteria->ancestorOf)
{
if (!$criteria->ancestorOf instanceof BaseElementModel)
{
$criteria->ancestorOf = craft()->elements->getElementById($criteria->ancestorOf, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->ancestorOf)
{
return false;
}
}
if ($criteria->ancestorOf)
{
$query->andWhere(
array('and',
'structureelements.lft < :ancestorOf_lft',
'structureelements.rgt > :ancestorOf_rgt',
'structureelements.root = :ancestorOf_root'
),
array(
':ancestorOf_lft' => $criteria->ancestorOf->lft,
':ancestorOf_rgt' => $criteria->ancestorOf->rgt,
':ancestorOf_root' => $criteria->ancestorOf->root
)
);
if ($criteria->ancestorDist)
{
$query->andWhere('structureelements.level >= :ancestorOf_level',
array(':ancestorOf_level' => $criteria->ancestorOf->level - $criteria->ancestorDist)
);
}
}
}
if ($criteria->descendantOf)
{
if (!$criteria->descendantOf instanceof BaseElementModel)
{
$criteria->descendantOf = craft()->elements->getElementById($criteria->descendantOf, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->descendantOf)
{
return false;
}
}
if ($criteria->descendantOf)
{
$query->andWhere(
array('and',
'structureelements.lft > :descendantOf_lft',
'structureelements.rgt < :descendantOf_rgt',
'structureelements.root = :descendantOf_root'
),
array(
':descendantOf_lft' => $criteria->descendantOf->lft,
':descendantOf_rgt' => $criteria->descendantOf->rgt,
':descendantOf_root' => $criteria->descendantOf->root
)
);
if ($criteria->descendantDist)
{
$query->andWhere('structureelements.level <= :descendantOf_level',
array(':descendantOf_level' => $criteria->descendantOf->level + $criteria->descendantDist)
);
}
}
}
if ($criteria->siblingOf)
{
if (!$criteria->siblingOf instanceof BaseElementModel)
{
$criteria->siblingOf = craft()->elements->getElementById($criteria->siblingOf, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->siblingOf)
{
return false;
}
}
if ($criteria->siblingOf)
{
$query->andWhere(
array('and',
'structureelements.level = :siblingOf_level',
'structureelements.root = :siblingOf_root',
'structureelements.elementId != :siblingOf_elementId'
),
array(
':siblingOf_level' => $criteria->siblingOf->level,
':siblingOf_root' => $criteria->siblingOf->root,
':siblingOf_elementId' => $criteria->siblingOf->id
)
);
if ($criteria->siblingOf->level != 1)
{
$parent = $criteria->siblingOf->getParent();
if ($parent)
{
$query->andWhere(
array('and',
'structureelements.lft > :siblingOf_lft',
'structureelements.rgt < :siblingOf_rgt'
),
array(
':siblingOf_lft' => $parent->lft,
':siblingOf_rgt' => $parent->rgt
)
);
}
else
{
return false;
}
}
}
}
if ($criteria->prevSiblingOf)
{
if (!$criteria->prevSiblingOf instanceof BaseElementModel)
{
$criteria->prevSiblingOf = craft()->elements->getElementById($criteria->prevSiblingOf, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->prevSiblingOf)
{
return false;
}
}
if ($criteria->prevSiblingOf)
{
$query->andWhere(
array('and',
'structureelements.level = :prevSiblingOf_level',
'structureelements.rgt = :prevSiblingOf_rgt',
'structureelements.root = :prevSiblingOf_root'
),
array(
':prevSiblingOf_level' => $criteria->prevSiblingOf->level,
':prevSiblingOf_rgt' => $criteria->prevSiblingOf->lft - 1,
':prevSiblingOf_root' => $criteria->prevSiblingOf->root
)
);
}
}
if ($criteria->nextSiblingOf)
{
if (!$criteria->nextSiblingOf instanceof BaseElementModel)
{
$criteria->nextSiblingOf = craft()->elements->getElementById($criteria->nextSiblingOf, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->nextSiblingOf)
{
return false;
}
}
if ($criteria->nextSiblingOf)
{
$query->andWhere(
array('and',
'structureelements.level = :nextSiblingOf_level',
'structureelements.lft = :nextSiblingOf_lft',
'structureelements.root = :nextSiblingOf_root'
),
array(
':nextSiblingOf_level' => $criteria->nextSiblingOf->level,
':nextSiblingOf_lft' => $criteria->nextSiblingOf->rgt + 1,
':nextSiblingOf_root' => $criteria->nextSiblingOf->root
)
);
}
}
if ($criteria->positionedBefore)
{
if (!$criteria->positionedBefore instanceof BaseElementModel)
{
$criteria->positionedBefore = craft()->elements->getElementById($criteria->positionedBefore, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->positionedBefore)
{
return false;
}
}
if ($criteria->positionedBefore)
{
$query->andWhere(
array('and',
'structureelements.rgt < :positionedBefore_rgt',
'structureelements.root = :positionedBefore_root'
),
array(
':positionedBefore_rgt' => $criteria->positionedBefore->lft,
':positionedBefore_root' => $criteria->positionedBefore->root
)
);
}
}
if ($criteria->positionedAfter)
{
if (!$criteria->positionedAfter instanceof BaseElementModel)
{
$criteria->positionedAfter = craft()->elements->getElementById($criteria->positionedAfter, $elementType->getClassHandle(), $criteria->locale);
if (!$criteria->positionedAfter)
{
return false;
}
}
if ($criteria->positionedAfter)
{
$query->andWhere(
array('and',
'structureelements.lft > :positionedAfter_lft',
'structureelements.root = :positionedAfter_root'
),
array(
':positionedAfter_lft' => $criteria->positionedAfter->rgt,
':positionedAfter_root' => $criteria->positionedAfter->root
)
);
}
}
if ($criteria->level || $criteria->depth)
{
// TODO: 'depth' is deprecated; use 'level' instead.
$level = ($criteria->level ? $criteria->level : $criteria->depth);
$query->andWhere(DbHelper::parseParam('structureelements.level', $level, $query->params));
}
}
// Search
// ---------------------------------------------------------------------
$this->_searchResults = null;
if ($criteria->search)
{
$elementIds = $this->_getElementIdsFromQuery($query);
$searchResults = craft()->search->filterElementIdsByQuery($elementIds, $criteria->search, true, $criteria->locale, true);
// No results?
if (!$searchResults)
{
return false;
}
$filteredElementIds = array_keys($searchResults);
if ($criteria->order == 'score')
{
// Order the elements in the exact order that SearchService returned them in
$query->order(craft()->db->getSchema()->orderByColumnValues('elements.id', $filteredElementIds));
}
$query->andWhere(array('in', 'elements.id', $filteredElementIds));
$this->_searchResults = $searchResults;
}
// Order
// ---------------------------------------------------------------------
if ($criteria->fixedOrder)
{
$ids = ArrayHelper::stringToArray($criteria->id);
if (!$ids)
{
return array();
}
$query->order(craft()->db->getSchema()->orderByColumnValues('elements.id', $ids));
}
else if ($criteria->order && $criteria->order != 'score')
{
$order = $criteria->order;
$orderColumnMap = array();
if (is_array($fieldColumns))
{
// Add the field column prefixes
foreach ($fieldColumns as $column)
{
$orderColumnMap[$column['handle']] = $column['column'];
}
}
// Prevent “1052 Column 'id' in order clause is ambiguous” MySQL error
$orderColumnMap['id'] = 'elements.id';
foreach ($orderColumnMap as $orderValue => $columnName)
{
// Avoid matching fields named "asc" or "desc" in the string "column_name asc" or
// "column_name desc"
$order = preg_replace('/(?<!\w\s|\.)\b'.$orderValue.'\b/', $columnName.'$1', $order);
}
$query->order($order);
}
// Offset and Limit
// ---------------------------------------------------------------------
if ($criteria->offset)
{
$query->offset($criteria->offset);
}
if ($criteria->limit)
{
$query->limit($criteria->limit);
}
// Fire an 'onBuildElementsQuery' event
$this->onBuildElementsQuery(new Event($this, array(
'criteria' => $criteria,
'justIds' => $justIds,
'query' => $query
)));
return $query;
}
/**
* Returns an element’s URI for a given locale.
*
* @param int $elementId The element’s ID.
* @param string $localeId The locale to search for the element’s URI in.
*
* @return string|null The element’s URI, or `null`.
*/
public function getElementUriForLocale($elementId, $localeId)
{
return craft()->db->createCommand()
->select('uri')
->from('elements_i18n')
->where(array('elementId' => $elementId, 'locale' => $localeId))
->queryScalar();
}
/**
* Returns the locales that a given element is enabled in.
*
* @param int $elementId The element’s ID.
*
* @return array The locales that the element is enabled in. If the element could not be found, an empty array
* will be returned.
*/
public function getEnabledLocalesForElement($elementId)
{
return craft()->db->createCommand()
->select('locale')
->from('elements_i18n')
->where(array('elementId' => $elementId, 'enabled' => 1))
->queryColumn();
}
// Saving Elements
// -------------------------------------------------------------------------
/**
* Handles all of the routine tasks that go along with saving elements.
*
* Those tasks include:
*
* - Validating its content (if $validateContent is `true`, or it’s left as `null` and the element is enabled)
* - Ensuring the element has a title if its type {@link BaseElementType::hasTitles() has titles}, and giving it a
* default title in the event that $validateContent is set to `false`
* - Saving a row in the `elements` table
* - Assigning the element’s ID on the element model, if it’s a new element
* - Assigning the element’s ID on the element’s content model, if there is one and it’s a new set of content
* - Updating the search index with new keywords from the element’s content
* - Setting a unique URI on the element, if it’s supposed to have one.
* - Saving the element’s row(s) in the `elements_i18n` and `content` tables
* - Deleting any rows in the `elements_i18n` and `content` tables that no longer need to be there
* - Calling the field types’ {@link BaseFieldType::onAfterElementSave() onAfterElementSave()} methods
* - Cleaing any template caches that the element was involved in
*
* This method should be called by a service’s “saveX()” method, _after_ it is done validating any attributes on
* the element that are of particular concern to its element type. For example, if the element were an entry,
* saveElement() should be called only after the entry’s sectionId and typeId attributes had been validated to
* ensure that they point to valid section and entry type IDs.
*
* @param BaseElementModel $element The element that is being saved
* @param bool|null $validateContent Whether the element's content should be validated. If left 'null', it
* will depend on whether the element is enabled or not.
*
* @throws Exception|\Exception
* @return bool
*/
public function saveElement(BaseElementModel $element, $validateContent = null)
{
$elementType = $this->getElementType($element->getElementType());
$isNewElement = !$element->id;
// Validate the content first
if ($elementType->hasContent())
{
if ($validateContent === null)
{
$validateContent = (bool) $element->enabled;
}
if ($validateContent && !craft()->content->validateContent($element))
{
$element->addErrors($element->getContent()->getErrors());
return false;
}
else
{
// Make sure there's a title
if ($elementType->hasTitles())
{
$fields = array('title');
$content = $element->getContent();
$content->setRequiredFields($fields);
if (!$content->validate($fields) && $content->hasErrors('title'))
{
// Just set *something* on it
if ($isNewElement)
{
$content->title = 'New '.$element->getClassHandle();
}
else
{
$content->title = $element->getClassHandle().' '.$element->id;
}
}
}
}
}
// Get the element record
if (!$isNewElement)
{
$elementRecord = ElementRecord::model()->findByAttributes(array(
'id' => $element->id,
'type' => $element->getElementType()
));
if (!$elementRecord)
{
throw new Exception(Craft::t('No element exists with the ID “{id}”.', array('id' => $element->id)));
}
}
else
{
$elementRecord = new ElementRecord();
$elementRecord->type = $element->getElementType();
}
// Set the attributes
$elementRecord->enabled = (bool) $element->enabled;
$elementRecord->archived = (bool) $element->archived;
$transaction = craft()->db->getCurrentTransaction() === null ? craft()->db->beginTransaction() : null;
try
{
// Fire an 'onBeforeSaveElement' event
$event = new Event($this, array(
'element' => $element,
'isNewElement' => $isNewElement
));
$this->onBeforeSaveElement($event);
// Is the event giving us the go-ahead?
if ($event->performAction)
{
// Save the element record first
$success = $elementRecord->save(false);
if ($success)
{
if ($isNewElement)
{
// Save the element id on the element model, in case {id} is in the URL format
$element->id = $elementRecord->id;
if ($elementType->hasContent())
{
$element->getContent()->elementId = $element->id;
}
}
// Save the content
if ($elementType->hasContent())
{
craft()->content->saveContent($element, false, (bool)$element->id);
}
// Update the search index
craft()->search->indexElementAttributes($element);
// Update the locale records and content
// We're saving all of the element's locales here to ensure that they all exist and to update the URI in
// the event that the URL format includes some value that just changed
$localeRecords = array();
if (!$isNewElement)
{
$existingLocaleRecords = ElementLocaleRecord::model()->findAllByAttributes(array(
'elementId' => $element->id
));
foreach ($existingLocaleRecords as $record)
{
$localeRecords[$record->locale] = $record;
}
}
$mainLocaleId = $element->locale;
$locales = $element->getLocales();
$localeIds = array();
if (!$locales)
{
throw new Exception('All elements must have at least one locale associated with them.');
}
foreach ($locales as $localeId => $localeInfo)
{
if (is_numeric($localeId) && is_string($localeInfo))
{
$localeId = $localeInfo;
$localeInfo = array();
}
$localeIds[] = $localeId;
if (!isset($localeInfo['enabledByDefault']))
{
$localeInfo['enabledByDefault'] = true;
}
if (isset($localeRecords[$localeId]))
{
$localeRecord = $localeRecords[$localeId];
}
else
{
$localeRecord = new ElementLocaleRecord();
$localeRecord->elementId = $element->id;
$localeRecord->locale = $localeId;
$localeRecord->enabled = $localeInfo['enabledByDefault'];
}
// Is this the main locale?
$isMainLocale = ($localeId == $mainLocaleId);
if ($isMainLocale)
{
$localizedElement = $element;
}
else
{
// Copy the element for this locale
$localizedElement = $element->copy();
$localizedElement->locale = $localeId;
if ($localeRecord->id)
{
// Keep the original slug
$localizedElement->slug = $localeRecord->slug;
}
else
{
// Default to the main locale's slug
$localizedElement->slug = $element->slug;
}
}
if ($elementType->hasContent())
{
if (!$isMainLocale)
{
$content = null;
if (!$isNewElement)
{
// Do we already have a content row for this locale?
$content = craft()->content->getContent($localizedElement);
}
if (!$content)
{
$content = craft()->content->createContent($localizedElement);
$content->setAttributes($element->getContent()->getAttributes());
$content->id = null;
$content->locale = $localeId;
}
$localizedElement->setContent($content);
}
if (!$localizedElement->getContent()->id)
{
craft()->content->saveContent($localizedElement, false, false);
}
}
// Capture the original slug, in case it's entirely composed of invalid characters
$originalSlug = $localizedElement->slug;
// Clean up the slug
ElementHelper::setValidSlug($localizedElement);
// If the slug was entirely composed of invalid characters, it will be blank now.
if ($originalSlug && !$localizedElement->slug)
{
$localizedElement->slug = $originalSlug;
$element->addError('slug', Craft::t('{attribute} is invalid.', array('attribute' => Craft::t('Slug'))));
// Don't bother with any of the other locales
$success = false;
break;
}
ElementHelper::setUniqueUri($localizedElement);
$localeRecord->slug = $localizedElement->slug;
$localeRecord->uri = $localizedElement->uri;
if ($isMainLocale)
{
$localeRecord->enabled = (bool)$element->localeEnabled;
}
$success = $localeRecord->save();
if (!$success)
{
// Pass any validation errors on to the element
$element->addErrors($localeRecord->getErrors());
// Don't bother with any of the other locales
break;
}
}
if ($success)
{
if (!$isNewElement)
{
// Delete the rows that don't need to be there anymore
craft()->db->createCommand()->delete('elements_i18n', array('and',
'elementId = :elementId',
array('not in', 'locale', $localeIds)
), array(
':elementId' => $element->id
));
if ($elementType->hasContent())
{
craft()->db->createCommand()->delete($element->getContentTable(), array('and',
'elementId = :elementId',
array('not in', 'locale', $localeIds)
), array(
':elementId' => $element->id
));
}
}
// Call the field types' onAfterElementSave() methods
$fieldLayout = $element->getFieldLayout();
if ($fieldLayout)
{
foreach ($fieldLayout->getFields() as $fieldLayoutField)
{
$field = $fieldLayoutField->getField();
if ($field)
{
$fieldType = $field->getFieldType();
if ($fieldType)
{
$fieldType->element = $element;
$fieldType->onAfterElementSave();
}
}
}
}
// Finally, delete any caches involving this element. (Even do this for new elements, since they
// might pop up in a cached criteria.)
craft()->templateCache->deleteCachesByElement($element);
}
}
}
else
{
$success = false;
}
// Commit the transaction regardless of whether we saved the user, in case something changed
// in onBeforeSaveElement
if ($transaction !== null)
{
$transaction->commit();
}
}
catch (\Exception $e)
{
if ($transaction !== null)
{
$transaction->rollback();
}
throw $e;
}
if ($success)
{
// Fire an 'onSaveElement' event
$this->onSaveElement(new Event($this, array(
'element' => $element,
'isNewElement' => $isNewElement
)));
}
else
{
if ($isNewElement)
{
$element->id = null;
if ($elementType->hasContent())
{
$element->getContent()->id = null;
$element->getContent()->elementId = null;
}
}
}
return $success;
}
/**
* Updates an element’s slug and URI, along with any descendants.
*
* @param BaseElementModel $element The element to update.
* @param bool $updateOtherLocales Whether the element’s other locales should also be updated.
* @param bool $updateDescendants Whether the element’s descendants should also be updated.
* @param bool $asTask Whether the element’s slug and URI should be updated via a background task.
*
* @return null
*/
public function updateElementSlugAndUri(BaseElementModel $element, $updateOtherLocales = true, $updateDescendants = true, $asTask = false)
{
if ($asTask)
{
craft()->tasks->createTask('UpdateElementSlugsAndUris', null, array(
'elementId' => $element->id,
'elementType' => $element->getElementType(),
'locale' => $element->locale,
'updateOtherLocales' => $updateOtherLocales,
'updateDescendants' => $updateDescendants,
));
return;
}
ElementHelper::setUniqueUri($element);
craft()->db->createCommand()->update('elements_i18n', array(
'slug' => $element->slug,
'uri' => $element->uri
), array(
'elementId' => $element->id,
'locale' => $element->locale
));
// Delete any caches involving this element
craft()->templateCache->deleteCachesByElement($element);
if ($updateOtherLocales)
{
$this->updateElementSlugAndUriInOtherLocales($element);
}
if ($updateDescendants)
{
$this->updateDescendantSlugsAndUris($element, $updateOtherLocales);
}
}
/**
* Updates an element’s slug and URI, for any locales besides the given one.
*
* @param BaseElementModel $element The element to update.
*
* @return null
*/
public function updateElementSlugAndUriInOtherLocales(BaseElementModel $element)
{
foreach (craft()->i18n->getSiteLocaleIds() as $localeId)
{
if ($localeId == $element->locale)
{
continue;
}
$elementInOtherLocale = $this->getElementById($element->id, $element->getElementType(), $localeId);
if ($elementInOtherLocale)
{
$this->updateElementSlugAndUri($elementInOtherLocale, false, false);
}
}
}
/**
* Updates an element’s descendants’ slugs and URIs.
*
* @param BaseElementModel $element The element whose descendants should be updated.
* @param bool $updateOtherLocales Whether the element’s other locales should also be updated.
* @param bool $asTask Whether the descendants’ slugs and URIs should be updated via a background task.
*
* @return null
*/
public function updateDescendantSlugsAndUris(BaseElementModel $element, $updateOtherLocales = true, $asTask = false)
{
$criteria = $this->getCriteria($element->getElementType());
$criteria->descendantOf = $element;
$criteria->descendantDist = 1;
$criteria->status = null;
$criteria->localeEnabled = null;
$criteria->locale = $element->locale;
if ($asTask)
{
$childIds = $criteria->ids();
if ($childIds)
{
craft()->tasks->createTask('UpdateElementSlugsAndUris', null, array(
'elementId' => $childIds,
'elementType' => $element->getElementType(),
'locale' => $element->locale,
'updateOtherLocales' => $updateOtherLocales,
'updateDescendants' => true,
));
}
}
else
{
$children = $criteria->find();
foreach ($children as $child)
{
$this->updateElementSlugAndUri($child, $updateOtherLocales, true, false);
}
}
}
/**
* Merges two elements together.
*
* This method will update the following:
*
* - Any relations involving the merged element
* - Any structures that contain the merged element
* - Any reference tags in textual custom fields referencing the merged element
*
* @param int $mergedElementId The ID of the element that is going away.
* @param int $prevailingElementId The ID of the element that is sticking around.
*
* @throws \Exception
* @return bool Whether the elements were merged successfully.
*/
public function mergeElementsByIds($mergedElementId, $prevailingElementId)
{
$transaction = craft()->db->getCurrentTransaction() === null ? craft()->db->beginTransaction() : null;
try
{
// Update any relations that point to the merged element
$relations = craft()->db->createCommand()
->select('id, fieldId, sourceId, sourceLocale')
->from('relations')
->where(array('targetId' => $mergedElementId))
->queryAll();
foreach ($relations as $relation)
{
// Make sure the persisting element isn't already selected in the same field
$persistingElementIsRelatedToo = (bool) craft()->db->createCommand()
->from('relations')
->where(array(
'fieldId' => $relation['fieldId'],
'sourceId' => $relation['sourceId'],
'sourceLocale' => $relation['sourceLocale'],
'targetId' => $prevailingElementId
))
->count('id');
if (!$persistingElementIsRelatedToo)
{
craft()->db->createCommand()->update('relations', array(
'targetId' => $prevailingElementId
), array(
'id' => $relation['id']
));
}
}
// Update any structures that the merged element is in
$structureElements = craft()->db->createCommand()
->select('id, structureId')
->from('structureelements')
->where(array('elementId' => $mergedElementId))
->queryAll();
foreach ($structureElements as $structureElement)
{
// Make sure the persisting element isn't already a part of that structure
$persistingElementIsInStructureToo = (bool) craft()->db->createCommand()
->from('structureElements')
->where(array(
'structureId' => $structureElement['structureId'],
'elementId' => $prevailingElementId
))
->count('id');
if (!$persistingElementIsInStructureToo)
{
craft()->db->createCommand()->update('relations', array(
'elementId' => $prevailingElementId
), array(
'id' => $structureElement['id']
));
}
}
// Update any reference tags
$elementType = $this->getElementTypeById($prevailingElementId);
if ($elementType)
{
$refTagPrefix = '{'.lcfirst($elementType).':';
craft()->tasks->createTask('FindAndReplace', Craft::t('Updating element references'), array(
'find' => $refTagPrefix.$mergedElementId.':',
'replace' => $refTagPrefix.$prevailingElementId.':',
));
craft()->tasks->createTask('FindAndReplace', Craft::t('Updating element references'), array(
'find' => $refTagPrefix.$mergedElementId.'}',
'replace' => $refTagPrefix.$prevailingElementId.'}',
));
}
// Fire an 'onMergeElements' event
$this->onMergeElements(new Event($this, array(
'mergedElementId' => $mergedElementId,
'prevailingElementId' => $prevailingElementId
)));
// Now delete the merged element
$success = $this->deleteElementById($mergedElementId);
if ($transaction !== null)
{
$transaction->commit();
}
return $success;
}
catch (\Exception $e)
{
if ($transaction !== null)
{
$transaction->rollback();
}
throw $e;
}
}
/**
* Deletes an element(s) by its ID(s).
*
* @param int|array $elementIds The element’s ID, or an array of elements’ IDs.
*
* @throws \Exception
* @return bool Whether the element(s) were deleted successfully.
*/
public function deleteElementById($elementIds)
{
if (!$elementIds)
{
return false;
}
if (!is_array($elementIds))
{
$elementIds = array($elementIds);
}
$transaction = craft()->db->getCurrentTransaction() === null ? craft()->db->beginTransaction() : null;
try
{
// Fire an 'onBeforeDeleteElements' event
$this->onBeforeDeleteElements(new Event($this, array(
'elementIds' => $elementIds
)));
// First delete any structure nodes with these elements, so NestedSetBehavior can do its thing. We need to
// go one-by-one in case one of theme deletes the record of another in the process.
foreach ($elementIds as $elementId)
{
$records = StructureElementRecord::model()->findAllByAttributes(array(
'elementId' => $elementId
));
foreach ($records as $record)
{
// If this element still has any children, move them up before the one getting deleted.
$children = $record->children()->findAll();
foreach ($children as $child)
{
$child->moveBefore($record);
}
// Delete this element's node
$record->deleteNode();
}
}
// Delete the caches before they drop their elementId relations (passing `false` because there's no chance
// this element is suddenly going to show up in a new query)
craft()->templateCache->deleteCachesByElementId($elementIds, false);
// Now delete the rows in the elements table
if (count($elementIds) == 1)
{
$condition = array('id' => $elementIds[0]);
$matrixBlockCondition = array('ownerId' => $elementIds[0]);
$searchIndexCondition = array('elementId' => $elementIds[0]);
}
else
{
$condition = array('in', 'id', $elementIds);
$matrixBlockCondition = array('in', 'ownerId', $elementIds);
$searchIndexCondition = array('in', 'elementId', $elementIds);
}
// First delete any Matrix blocks that belong to this element(s)
$matrixBlockIds = craft()->db->createCommand()
->select('id')
->from('matrixblocks')
->where($matrixBlockCondition)
->queryColumn();
if ($matrixBlockIds)
{
craft()->matrix->deleteBlockById($matrixBlockIds);
}
// Delete the elements table rows, which will cascade across all other InnoDB tables
$affectedRows = craft()->db->createCommand()->delete('elements', $condition);
// The searchindex table is MyISAM, though
craft()->db->createCommand()->delete('searchindex', $searchIndexCondition);
if ($transaction !== null)
{
$transaction->commit();
}
return (bool) $affectedRows;
}
catch (\Exception $e)
{
if ($transaction !== null)
{
$transaction->rollback();
}
throw $e;
}
}
/**
* Deletes elements by a given type.
*
* @param string $type The element type class handle.
*
* @return bool Whether the elements were deleted successfully.
*/
public function deleteElementsByType($type)
{
// Get the IDs and let deleteElementById() take care of the actual deletion
$elementIds = craft()->db->createCommand()
->select('id')
->from('elements')
->where('type = :type', array(':type' => $type))
->queryColumn();
if ($elementIds)
{
$this->deleteElementById($elementIds);
// Delete the template caches
craft()->templateCache->deleteCachesByElementType($type);
}
}
// Element types
// -------------------------------------------------------------------------
/**
* Returns all installed element types.
*
* @return IElementType[] The installed element types.
*/
public function getAllElementTypes()
{
return craft()->components->getComponentsByType(ComponentType::Element);
}
/**
* Returns an element type by its class handle.
*
* @param string $class The element type class handle.
*
* @return IElementType|null The element type, or `null`.
*/
public function getElementType($class)
{
return craft()->components->getComponentByTypeAndClass(ComponentType::Element, $class);
}
// Element Actions
// -------------------------------------------------------------------------
/**
* Returns all installed element actions.
*
* @return IElementAction[] The installed element actions.
*/
public function getAllActions()
{
return craft()->components->getComponentsByType(ComponentType::ElementAction);
}
/**
* Returns an element action by its class handle.
*
* @param string $class The element action class handle.
*
* @return IElementType|null The element action, or `null`.
*/
public function getAction($class)
{
return craft()->components->getComponentByTypeAndClass(ComponentType::ElementAction, $class);
}
// Misc
// -------------------------------------------------------------------------
/**
* Parses a string for element [reference tags](http://craftcms.com/docs/reference-tags).
*
* @param string $str The string to parse.
*
* @return string The parsed string.
*/
public function parseRefs($str)
{
if (strpos($str, '{') !== false)
{
global $refTagsByElementType;
$refTagsByElementType = array();
$str = preg_replace_callback('/\{(\w+)\:([^\:\}]+)(?:\:([^\:\}]+))?\}/', function($matches)
{
global $refTagsByElementType;
$elementTypeHandle = ucfirst($matches[1]);
$token = '{'.StringHelper::randomString(9).'}';
$refTagsByElementType[$elementTypeHandle][] = array('token' => $token, 'matches' => $matches);
return $token;
}, $str);
if ($refTagsByElementType)
{
$search = array();
$replace = array();
$things = array('id', 'ref');
foreach ($refTagsByElementType as $elementTypeHandle => $refTags)
{
$elementType = craft()->elements->getElementType($elementTypeHandle);
if (!$elementType)
{
// Just put the ref tags back the way they were
foreach ($refTags as $refTag)
{
$search[] = $refTag['token'];
$replace[] = $refTag['matches'][0];
}
}
else
{
$refTagsById = array();
$refTagsByRef = array();
foreach ($refTags as $refTag)
{
// Searching by ID?
if (is_numeric($refTag['matches'][2]))
{
$refTagsById[$refTag['matches'][2]][] = $refTag;
}
else
{
$refTagsByRef[$refTag['matches'][2]][] = $refTag;
}
}
// Things are about to get silly...
foreach ($things as $thing)
{
$refTagsByThing = ${'refTagsBy'.ucfirst($thing)};
if ($refTagsByThing)
{
$criteria = craft()->elements->getCriteria($elementTypeHandle);
$criteria->status = null;
$criteria->limit = null;
$criteria->$thing = array_keys($refTagsByThing);
$elements = $criteria->find();
$elementsByThing = array();
foreach ($elements as $element)
{
$elementsByThing[$element->$thing] = $element;
}
foreach ($refTagsByThing as $thingVal => $refTags)
{
if (isset($elementsByThing[$thingVal]))
{
$element = $elementsByThing[$thingVal];
}
else
{
$element = false;
}
foreach($refTags as $refTag)
{
$search[] = $refTag['token'];
if ($element)
{
if (!empty($refTag['matches'][3]) && isset($element->{$refTag['matches'][3]}))
{
$value = (string) $element->{$refTag['matches'][3]};
$replace[] = $this->parseRefs($value);
}
else
{
// Default to the URL
$replace[] = $element->getUrl();
}
}
else
{
$replace[] = $refTag['matches'][0];
}
}
}
}
}
}
}
$str = str_replace($search, $replace, $str);
}
unset ($refTagsByElementType);
}
return $str;
}
/**
* Stores a placeholder element that {@link findElements()} should use instead of populating a new element with a
* matching ID and locale.
*
* This is used by Live Preview and Sharing features.
*
* @param BaseElementModel $element The element currently being edited by Live Preview.
*
* @return null
*/
public function setPlaceholderElement(BaseElementModel $element)
{
// Won't be able to do anything with this if it doesn't have an ID or locale
if (!$element->id || !$element->locale)
{
return;
}
$this->_placeholderElements[$element->id][$element->locale] = $element;
}
// Events
// -------------------------------------------------------------------------
/**
* Fires an 'onBeforeBuildElementsQuery' event.
*
* @param Event $event
*
* @return null
*/
public function onBeforeBuildElementsQuery(Event $event)
{
$this->raiseEvent('onBeforeBuildElementsQuery', $event);
}
/**
* Fires an 'onBuildElementsQuery' event.
*
* @param Event $event
*
* @return null
*/
public function onBuildElementsQuery(Event $event)
{
$this->raiseEvent('onBuildElementsQuery', $event);
}
/**
* Fires an 'onPopulateElement' event.
*
* @param Event $event
*
* @return null
*/
public function onPopulateElement(Event $event)
{
$this->raiseEvent('onPopulateElement', $event);
}
/**
* Fires an 'onMergeElements' event.
*
* @param Event $event
*
* @return null
*/
public function onMergeElements(Event $event)
{
$this->raiseEvent('onMergeElements', $event);
}
/**
* Fires an 'onBeforeDeleteElements' event.
*
* @param Event $event
*
* @return null
*/
public function onBeforeDeleteElements(Event $event)
{
$this->raiseEvent('onBeforeDeleteElements', $event);
}
/**
* Fires an 'onBeforeSaveElement' event.
*
* @param Event $event
*
* @return null
*/
public function onBeforeSaveElement(Event $event)
{
$this->raiseEvent('onBeforeSaveElement', $event);
}
/**
* Fires an 'onSaveElement' event.
*
* @param Event $event
*
* @return null
*/
public function onSaveElement(Event $event)
{
$this->raiseEvent('onSaveElement', $event);
}
/**
* Fires an 'onBeforePerformAction' event.
*
* @param Event $event
*
* @return null
*/
public function onBeforePerformAction(Event $event)
{
$this->raiseEvent('onBeforePerformAction', $event);
}
/**
* Fires an 'onPerformAction' event.
*
* @param Event $event
*
* @return null
*/
public function onPerformAction(Event $event)
{
$this->raiseEvent('onPerformAction', $event);
}
// Private Methods
// =========================================================================
/**
* Returns the unique element IDs that match a given element query.
*
* @param DbCommand $query
*
* @return array
*/
private function _getElementIdsFromQuery(DbCommand $query)
{
// Get the matched element IDs, and then have the SearchService filter them.
$elementIdsQuery = craft()->db->createCommand()
->select('elements.id')
->from('elements elements');
$elementIdsQuery->setWhere($query->getWhere());
$elementIdsQuery->setJoin($query->getJoin());
$elementIdsQuery->params = $query->params;
return $elementIdsQuery->queryColumn();
}
}
| Skilgarriff/docker-craft | app/craft/app/services/ElementsService.php | PHP | mit | 58,551 | [
30522,
1026,
1029,
25718,
3415,
15327,
7477,
1025,
1013,
1008,
1008,
1008,
3787,
8043,
7903,
2063,
3640,
17928,
2015,
2005,
6605,
3787,
1012,
1008,
1008,
2019,
6013,
1997,
3787,
8043,
7903,
2063,
2003,
16452,
7801,
1999,
7477,
3081,
1063,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//===-- CPPTargetMachine.h - TargetMachine for the C++ backend --*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the TargetMachine that is used by the C++ backend.
//
//===----------------------------------------------------------------------===//
#ifndef CPPTARGETMACHINE_H
#define CPPTARGETMACHINE_H
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetData.h"
namespace llvm {
class formatted_raw_ostream;
struct CPPTargetMachine : public TargetMachine {
CPPTargetMachine(const Target &T, const std::string &TT,
const std::string &FS)
: TargetMachine(T) {}
virtual bool WantsWholeFile() const { return true; }
virtual bool addPassesToEmitWholeFile(PassManager &PM,
formatted_raw_ostream &Out,
CodeGenFileType FileType,
CodeGenOpt::Level OptLevel,
bool DisableVerify);
virtual const TargetData *getTargetData() const { return 0; }
};
extern Target TheCppBackendTarget;
} // End llvm namespace
#endif
| wrmsr/lljvm | thirdparty/llvm/lib/Target/CppBackend/CPPTargetMachine.h | C | mit | 1,371 | [
30522,
1013,
1013,
1027,
1027,
1027,
1011,
1011,
18133,
22799,
20800,
29418,
17231,
2063,
1012,
1044,
1011,
4539,
22911,
14014,
2005,
1996,
1039,
1009,
1009,
30524,
1013,
1013,
2023,
5371,
2003,
5500,
2104,
1996,
2118,
1997,
4307,
2330,
312... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#ifndef STAN_MATH_REV_FUN_ASIN_HPP
#define STAN_MATH_REV_FUN_ASIN_HPP
#include <stan/math/prim/fun/asin.hpp>
#include <stan/math/prim/fun/abs.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/fun/abs.hpp>
#include <stan/math/rev/fun/asinh.hpp>
#include <stan/math/rev/fun/value_of_rec.hpp>
#include <cmath>
#include <complex>
namespace stan {
namespace math {
/**
* Return the principal value of the arc sine, in radians, of the
* specified variable (cmath).
*
* The derivative is defined by
*
* \f$\frac{d}{dx} \arcsin x = \frac{1}{\sqrt{1 - x^2}}\f$.
*
*
\f[
\mbox{asin}(x) =
\begin{cases}
\textrm{NaN} & \mbox{if } x < -1\\
\arcsin(x) & \mbox{if } -1\leq x\leq 1 \\
\textrm{NaN} & \mbox{if } x > 1\\[6pt]
\textrm{NaN} & \mbox{if } x = \textrm{NaN}
\end{cases}
\f]
\f[
\frac{\partial\, \mbox{asin}(x)}{\partial x} =
\begin{cases}
\textrm{NaN} & \mbox{if } x < -1\\
\frac{\partial\, \arcsin(x)}{\partial x} & \mbox{if } -1\leq x\leq 1 \\
\textrm{NaN} & \mbox{if } x < -1\\[6pt]
\textrm{NaN} & \mbox{if } x = \textrm{NaN}
\end{cases}
\f]
\f[
\frac{\partial \, \arcsin(x)}{\partial x} = \frac{1}{\sqrt{1-x^2}}
\f]
*
* @param x Variable in range [-1, 1].
* @return Arc sine of variable, in radians.
*/
inline var asin(const var& x) {
return make_callback_var(std::asin(x.val()), [x](const auto& vi) mutable {
x.adj() += vi.adj() / std::sqrt(1.0 - (x.val() * x.val()));
});
}
/**
* Return the principal value of the arc sine, in radians, of the
* specified variable (cmath).
*
* @tparam Varmat a `var_value` with inner Eigen type
* @param x Variable with cells in range [-1, 1].
* @return Arc sine of variable, in radians.
*/
template <typename VarMat, require_var_matrix_t<VarMat>* = nullptr>
inline auto asin(const VarMat& x) {
return make_callback_var(
x.val().array().asin().matrix(), [x](const auto& vi) mutable {
x.adj().array()
+= vi.adj().array() / (1.0 - (x.val().array().square())).sqrt();
});
}
/**
* Return the arc sine of the complex argument.
*
* @param[in] z argument
* @return arc sine of the argument
*/
inline std::complex<var> asin(const std::complex<var>& z) {
return stan::math::internal::complex_asin(z);
}
} // namespace math
} // namespace stan
#endif
| stan-dev/math | stan/math/rev/fun/asin.hpp | C++ | bsd-3-clause | 2,377 | [
30522,
1001,
2065,
13629,
2546,
9761,
1035,
8785,
1035,
7065,
1035,
4569,
1035,
2004,
2378,
1035,
6522,
2361,
1001,
9375,
9761,
1035,
8785,
1035,
7065,
1035,
4569,
1035,
2004,
2378,
1035,
6522,
2361,
1001,
2421,
1026,
9761,
1013,
8785,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2010 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
// disclaimer in the documentation and/or other materials provided
// with the distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "config.h"
#include <math.h>
#include "bignum-dtoa.h"
#include "bignum.h"
#include "double.h"
namespace WTF {
namespace double_conversion {
static int NormalizedExponent(uint64_t significand, int exponent) {
ASSERT(significand != 0);
while ((significand & Double::kHiddenBit) == 0) {
significand = significand << 1;
exponent = exponent - 1;
}
return exponent;
}
// Forward declarations:
// Returns an estimation of k such that 10^(k-1) <= v < 10^k.
static int EstimatePower(int exponent);
// Computes v / 10^estimated_power exactly, as a ratio of two bignums, numerator
// and denominator.
static void InitialScaledStartValues(double v,
int estimated_power,
bool need_boundary_deltas,
Bignum* numerator,
Bignum* denominator,
Bignum* delta_minus,
Bignum* delta_plus);
// Multiplies numerator/denominator so that its values lies in the range 1-10.
// Returns decimal_point s.t.
// v = numerator'/denominator' * 10^(decimal_point-1)
// where numerator' and denominator' are the values of numerator and
// denominator after the call to this function.
static void FixupMultiply10(int estimated_power, bool is_even,
int* decimal_point,
Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus);
// Generates digits from the left to the right and stops when the generated
// digits yield the shortest decimal representation of v.
static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus,
bool is_even,
Vector<char> buffer, int* length);
// Generates 'requested_digits' after the decimal point.
static void BignumToFixed(int requested_digits, int* decimal_point,
Bignum* numerator, Bignum* denominator,
Vector<char>(buffer), int* length);
// Generates 'count' digits of numerator/denominator.
// Once 'count' digits have been produced rounds the result depending on the
// remainder (remainders of exactly .5 round upwards). Might update the
// decimal_point when rounding up (for example for 0.9999).
static void GenerateCountedDigits(int count, int* decimal_point,
Bignum* numerator, Bignum* denominator,
Vector<char>(buffer), int* length);
void BignumDtoa(double v, BignumDtoaMode mode, int requested_digits,
Vector<char> buffer, int* length, int* decimal_point) {
ASSERT(v > 0);
ASSERT(!Double(v).IsSpecial());
uint64_t significand = Double(v).Significand();
bool is_even = (significand & 1) == 0;
int exponent = Double(v).Exponent();
int normalized_exponent = NormalizedExponent(significand, exponent);
// estimated_power might be too low by 1.
int estimated_power = EstimatePower(normalized_exponent);
// Shortcut for Fixed.
// The requested digits correspond to the digits after the point. If the
// number is much too small, then there is no need in trying to get any
// digits.
if (mode == BIGNUM_DTOA_FIXED && -estimated_power - 1 > requested_digits) {
buffer[0] = '\0';
*length = 0;
// Set decimal-point to -requested_digits. This is what Gay does.
// Note that it should not have any effect anyways since the string is
// empty.
*decimal_point = -requested_digits;
return;
}
Bignum numerator;
Bignum denominator;
Bignum delta_minus;
Bignum delta_plus;
// Make sure the bignum can grow large enough. The smallest double equals
// 4e-324. In this case the denominator needs fewer than 324*4 binary digits.
// The maximum double is 1.7976931348623157e308 which needs fewer than
// 308*4 binary digits.
ASSERT(Bignum::kMaxSignificantBits >= 324*4);
bool need_boundary_deltas = (mode == BIGNUM_DTOA_SHORTEST);
InitialScaledStartValues(v, estimated_power, need_boundary_deltas,
&numerator, &denominator,
&delta_minus, &delta_plus);
// We now have v = (numerator / denominator) * 10^estimated_power.
FixupMultiply10(estimated_power, is_even, decimal_point,
&numerator, &denominator,
&delta_minus, &delta_plus);
// We now have v = (numerator / denominator) * 10^(decimal_point-1), and
// 1 <= (numerator + delta_plus) / denominator < 10
switch (mode) {
case BIGNUM_DTOA_SHORTEST:
GenerateShortestDigits(&numerator, &denominator,
&delta_minus, &delta_plus,
is_even, buffer, length);
break;
case BIGNUM_DTOA_FIXED:
BignumToFixed(requested_digits, decimal_point,
&numerator, &denominator,
buffer, length);
break;
case BIGNUM_DTOA_PRECISION:
GenerateCountedDigits(requested_digits, decimal_point,
&numerator, &denominator,
buffer, length);
break;
default:
UNREACHABLE();
}
buffer[*length] = '\0';
}
// The procedure starts generating digits from the left to the right and stops
// when the generated digits yield the shortest decimal representation of v. A
// decimal representation of v is a number lying closer to v than to any other
// double, so it converts to v when read.
//
// This is true if d, the decimal representation, is between m- and m+, the
// upper and lower boundaries. d must be strictly between them if !is_even.
// m- := (numerator - delta_minus) / denominator
// m+ := (numerator + delta_plus) / denominator
//
// Precondition: 0 <= (numerator+delta_plus) / denominator < 10.
// If 1 <= (numerator+delta_plus) / denominator < 10 then no leading 0 digit
// will be produced. This should be the standard precondition.
static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus,
bool is_even,
Vector<char> buffer, int* length) {
// Small optimization: if delta_minus and delta_plus are the same just reuse
// one of the two bignums.
if (Bignum::Equal(*delta_minus, *delta_plus)) {
delta_plus = delta_minus;
}
*length = 0;
while (true) {
uint16_t digit;
digit = numerator->DivideModuloIntBignum(*denominator);
ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive.
// digit = numerator / denominator (integer division).
// numerator = numerator % denominator.
buffer[(*length)++] = digit + '0';
// Can we stop already?
// If the remainder of the division is less than the distance to the lower
// boundary we can stop. In this case we simply round down (discarding the
// remainder).
// Similarly we test if we can round up (using the upper boundary).
bool in_delta_room_minus;
bool in_delta_room_plus;
if (is_even) {
in_delta_room_minus = Bignum::LessEqual(*numerator, *delta_minus);
} else {
in_delta_room_minus = Bignum::Less(*numerator, *delta_minus);
}
if (is_even) {
in_delta_room_plus =
Bignum::PlusCompare(*numerator, *delta_plus, *denominator) >= 0;
} else {
in_delta_room_plus =
Bignum::PlusCompare(*numerator, *delta_plus, *denominator) > 0;
}
if (!in_delta_room_minus && !in_delta_room_plus) {
// Prepare for next iteration.
numerator->Times10();
delta_minus->Times10();
// We optimized delta_plus to be equal to delta_minus (if they share the
// same value). So don't multiply delta_plus if they point to the same
// object.
if (delta_minus != delta_plus) {
delta_plus->Times10();
}
} else if (in_delta_room_minus && in_delta_room_plus) {
// Let's see if 2*numerator < denominator.
// If yes, then the next digit would be < 5 and we can round down.
int compare = Bignum::PlusCompare(*numerator, *numerator, *denominator);
if (compare < 0) {
// Remaining digits are less than .5. -> Round down (== do nothing).
} else if (compare > 0) {
// Remaining digits are more than .5 of denominator. -> Round up.
// Note that the last digit could not be a '9' as otherwise the whole
// loop would have stopped earlier.
// We still have an assert here in case the preconditions were not
// satisfied.
ASSERT(buffer[(*length) - 1] != '9');
buffer[(*length) - 1]++;
} else {
// Halfway case.
// TODO(floitsch): need a way to solve half-way cases.
// For now let's round towards even (since this is what Gay seems to
// do).
if ((buffer[(*length) - 1] - '0') % 2 == 0) {
// Round down => Do nothing.
} else {
ASSERT(buffer[(*length) - 1] != '9');
buffer[(*length) - 1]++;
}
}
return;
} else if (in_delta_room_minus) {
// Round down (== do nothing).
return;
} else { // in_delta_room_plus
// Round up.
// Note again that the last digit could not be '9' since this would have
// stopped the loop earlier.
// We still have an ASSERT here, in case the preconditions were not
// satisfied.
ASSERT(buffer[(*length) -1] != '9');
buffer[(*length) - 1]++;
return;
}
}
}
// Let v = numerator / denominator < 10.
// Then we generate 'count' digits of d = x.xxxxx... (without the decimal point)
// from left to right. Once 'count' digits have been produced we decide wether
// to round up or down. Remainders of exactly .5 round upwards. Numbers such
// as 9.999999 propagate a carry all the way, and change the
// exponent (decimal_point), when rounding upwards.
static void GenerateCountedDigits(int count, int* decimal_point,
Bignum* numerator, Bignum* denominator,
Vector<char>(buffer), int* length) {
ASSERT(count >= 0);
for (int i = 0; i < count - 1; ++i) {
uint16_t digit;
digit = numerator->DivideModuloIntBignum(*denominator);
ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive.
// digit = numerator / denominator (integer division).
// numerator = numerator % denominator.
buffer[i] = digit + '0';
// Prepare for next iteration.
numerator->Times10();
}
// Generate the last digit.
uint16_t digit;
digit = numerator->DivideModuloIntBignum(*denominator);
if (Bignum::PlusCompare(*numerator, *numerator, *denominator) >= 0) {
digit++;
}
buffer[count - 1] = digit + '0';
// Correct bad digits (in case we had a sequence of '9's). Propagate the
// carry until we hat a non-'9' or til we reach the first digit.
for (int i = count - 1; i > 0; --i) {
if (buffer[i] != '0' + 10) break;
buffer[i] = '0';
buffer[i - 1]++;
}
if (buffer[0] == '0' + 10) {
// Propagate a carry past the top place.
buffer[0] = '1';
(*decimal_point)++;
}
*length = count;
}
// Generates 'requested_digits' after the decimal point. It might omit
// trailing '0's. If the input number is too small then no digits at all are
// generated (ex.: 2 fixed digits for 0.00001).
//
// Input verifies: 1 <= (numerator + delta) / denominator < 10.
static void BignumToFixed(int requested_digits, int* decimal_point,
Bignum* numerator, Bignum* denominator,
Vector<char>(buffer), int* length) {
// Note that we have to look at more than just the requested_digits, since
// a number could be rounded up. Example: v=0.5 with requested_digits=0.
// Even though the power of v equals 0 we can't just stop here.
if (-(*decimal_point) > requested_digits) {
// The number is definitively too small.
// Ex: 0.001 with requested_digits == 1.
// Set decimal-point to -requested_digits. This is what Gay does.
// Note that it should not have any effect anyways since the string is
// empty.
*decimal_point = -requested_digits;
*length = 0;
return;
} else if (-(*decimal_point) == requested_digits) {
// We only need to verify if the number rounds down or up.
// Ex: 0.04 and 0.06 with requested_digits == 1.
ASSERT(*decimal_point == -requested_digits);
// Initially the fraction lies in range (1, 10]. Multiply the denominator
// by 10 so that we can compare more easily.
denominator->Times10();
if (Bignum::PlusCompare(*numerator, *numerator, *denominator) >= 0) {
// If the fraction is >= 0.5 then we have to include the rounded
// digit.
buffer[0] = '1';
*length = 1;
(*decimal_point)++;
} else {
// Note that we caught most of similar cases earlier.
*length = 0;
}
return;
} else {
// The requested digits correspond to the digits after the point.
// The variable 'needed_digits' includes the digits before the point.
int needed_digits = (*decimal_point) + requested_digits;
GenerateCountedDigits(needed_digits, decimal_point,
numerator, denominator,
buffer, length);
}
}
// Returns an estimation of k such that 10^(k-1) <= v < 10^k where
// v = f * 2^exponent and 2^52 <= f < 2^53.
// v is hence a normalized double with the given exponent. The output is an
// approximation for the exponent of the decimal approimation .digits * 10^k.
//
// The result might undershoot by 1 in which case 10^k <= v < 10^k+1.
// Note: this property holds for v's upper boundary m+ too.
// 10^k <= m+ < 10^k+1.
// (see explanation below).
//
// Examples:
// EstimatePower(0) => 16
// EstimatePower(-52) => 0
//
// Note: e >= 0 => EstimatedPower(e) > 0. No similar claim can be made for e<0.
static int EstimatePower(int exponent) {
// This function estimates log10 of v where v = f*2^e (with e == exponent).
// Note that 10^floor(log10(v)) <= v, but v <= 10^ceil(log10(v)).
// Note that f is bounded by its container size. Let p = 53 (the double's
// significand size). Then 2^(p-1) <= f < 2^p.
//
// Given that log10(v) == log2(v)/log2(10) and e+(len(f)-1) is quite close
// to log2(v) the function is simplified to (e+(len(f)-1)/log2(10)).
// The computed number undershoots by less than 0.631 (when we compute log3
// and not log10).
//
// Optimization: since we only need an approximated result this computation
// can be performed on 64 bit integers. On x86/x64 architecture the speedup is
// not really measurable, though.
//
// Since we want to avoid overshooting we decrement by 1e10 so that
// floating-point imprecisions don't affect us.
//
// Explanation for v's boundary m+: the computation takes advantage of
// the fact that 2^(p-1) <= f < 2^p. Boundaries still satisfy this requirement
// (even for denormals where the delta can be much more important).
const double k1Log10 = 0.30102999566398114; // 1/lg(10)
// For doubles len(f) == 53 (don't forget the hidden bit).
const int kSignificandSize = 53;
double estimate = ceil((exponent + kSignificandSize - 1) * k1Log10 - 1e-10);
return static_cast<int>(estimate);
}
// See comments for InitialScaledStartValues.
static void InitialScaledStartValuesPositiveExponent(
double v, int estimated_power, bool need_boundary_deltas,
Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus) {
// A positive exponent implies a positive power.
ASSERT(estimated_power >= 0);
// Since the estimated_power is positive we simply multiply the denominator
// by 10^estimated_power.
// numerator = v.
numerator->AssignUInt64(Double(v).Significand());
numerator->ShiftLeft(Double(v).Exponent());
// denominator = 10^estimated_power.
denominator->AssignPowerUInt16(10, estimated_power);
if (need_boundary_deltas) {
// Introduce a common denominator so that the deltas to the boundaries are
// integers.
denominator->ShiftLeft(1);
numerator->ShiftLeft(1);
// Let v = f * 2^e, then m+ - v = 1/2 * 2^e; With the common
// denominator (of 2) delta_plus equals 2^e.
delta_plus->AssignUInt16(1);
delta_plus->ShiftLeft(Double(v).Exponent());
// Same for delta_minus (with adjustments below if f == 2^p-1).
delta_minus->AssignUInt16(1);
delta_minus->ShiftLeft(Double(v).Exponent());
// If the significand (without the hidden bit) is 0, then the lower
// boundary is closer than just half a ulp (unit in the last place).
// There is only one exception: if the next lower number is a denormal then
// the distance is 1 ulp. This cannot be the case for exponent >= 0 (but we
// have to test it in the other function where exponent < 0).
uint64_t v_bits = Double(v).AsUint64();
if ((v_bits & Double::kSignificandMask) == 0) {
// The lower boundary is closer at half the distance of "normal" numbers.
// Increase the common denominator and adapt all but the delta_minus.
denominator->ShiftLeft(1); // *2
numerator->ShiftLeft(1); // *2
delta_plus->ShiftLeft(1); // *2
}
}
}
// See comments for InitialScaledStartValues
static void InitialScaledStartValuesNegativeExponentPositivePower(
double v, int estimated_power, bool need_boundary_deltas,
Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus) {
uint64_t significand = Double(v).Significand();
int exponent = Double(v).Exponent();
// v = f * 2^e with e < 0, and with estimated_power >= 0.
// This means that e is close to 0 (have a look at how estimated_power is
// computed).
// numerator = significand
// since v = significand * 2^exponent this is equivalent to
// numerator = v * / 2^-exponent
numerator->AssignUInt64(significand);
// denominator = 10^estimated_power * 2^-exponent (with exponent < 0)
denominator->AssignPowerUInt16(10, estimated_power);
denominator->ShiftLeft(-exponent);
if (need_boundary_deltas) {
// Introduce a common denominator so that the deltas to the boundaries are
// integers.
denominator->ShiftLeft(1);
numerator->ShiftLeft(1);
// Let v = f * 2^e, then m+ - v = 1/2 * 2^e; With the common
// denominator (of 2) delta_plus equals 2^e.
// Given that the denominator already includes v's exponent the distance
// to the boundaries is simply 1.
delta_plus->AssignUInt16(1);
// Same for delta_minus (with adjustments below if f == 2^p-1).
delta_minus->AssignUInt16(1);
// If the significand (without the hidden bit) is 0, then the lower
// boundary is closer than just one ulp (unit in the last place).
// There is only one exception: if the next lower number is a denormal
// then the distance is 1 ulp. Since the exponent is close to zero
// (otherwise estimated_power would have been negative) this cannot happen
// here either.
uint64_t v_bits = Double(v).AsUint64();
if ((v_bits & Double::kSignificandMask) == 0) {
// The lower boundary is closer at half the distance of "normal" numbers.
// Increase the denominator and adapt all but the delta_minus.
denominator->ShiftLeft(1); // *2
numerator->ShiftLeft(1); // *2
delta_plus->ShiftLeft(1); // *2
}
}
}
// See comments for InitialScaledStartValues
static void InitialScaledStartValuesNegativeExponentNegativePower(
double v, int estimated_power, bool need_boundary_deltas,
Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus) {
const uint64_t kMinimalNormalizedExponent =
UINT64_2PART_C(0x00100000, 00000000);
uint64_t significand = Double(v).Significand();
int exponent = Double(v).Exponent();
// Instead of multiplying the denominator with 10^estimated_power we
// multiply all values (numerator and deltas) by 10^-estimated_power.
// Use numerator as temporary container for power_ten.
Bignum* power_ten = numerator;
power_ten->AssignPowerUInt16(10, -estimated_power);
if (need_boundary_deltas) {
// Since power_ten == numerator we must make a copy of 10^estimated_power
// before we complete the computation of the numerator.
// delta_plus = delta_minus = 10^estimated_power
delta_plus->AssignBignum(*power_ten);
delta_minus->AssignBignum(*power_ten);
}
// numerator = significand * 2 * 10^-estimated_power
// since v = significand * 2^exponent this is equivalent to
// numerator = v * 10^-estimated_power * 2 * 2^-exponent.
// Remember: numerator has been abused as power_ten. So no need to assign it
// to itself.
ASSERT(numerator == power_ten);
numerator->MultiplyByUInt64(significand);
// denominator = 2 * 2^-exponent with exponent < 0.
denominator->AssignUInt16(1);
denominator->ShiftLeft(-exponent);
if (need_boundary_deltas) {
// Introduce a common denominator so that the deltas to the boundaries are
// integers.
numerator->ShiftLeft(1);
denominator->ShiftLeft(1);
// With this shift the boundaries have their correct value, since
// delta_plus = 10^-estimated_power, and
// delta_minus = 10^-estimated_power.
// These assignments have been done earlier.
// The special case where the lower boundary is twice as close.
// This time we have to look out for the exception too.
uint64_t v_bits = Double(v).AsUint64();
if ((v_bits & Double::kSignificandMask) == 0 &&
// The only exception where a significand == 0 has its boundaries at
// "normal" distances:
(v_bits & Double::kExponentMask) != kMinimalNormalizedExponent) {
numerator->ShiftLeft(1); // *2
denominator->ShiftLeft(1); // *2
delta_plus->ShiftLeft(1); // *2
}
}
}
// Let v = significand * 2^exponent.
// Computes v / 10^estimated_power exactly, as a ratio of two bignums, numerator
// and denominator. The functions GenerateShortestDigits and
// GenerateCountedDigits will then convert this ratio to its decimal
// representation d, with the required accuracy.
// Then d * 10^estimated_power is the representation of v.
// (Note: the fraction and the estimated_power might get adjusted before
// generating the decimal representation.)
//
// The initial start values consist of:
// - a scaled numerator: s.t. numerator/denominator == v / 10^estimated_power.
// - a scaled (common) denominator.
// optionally (used by GenerateShortestDigits to decide if it has the shortest
// decimal converting back to v):
// - v - m-: the distance to the lower boundary.
// - m+ - v: the distance to the upper boundary.
//
// v, m+, m-, and therefore v - m- and m+ - v all share the same denominator.
//
// Let ep == estimated_power, then the returned values will satisfy:
// v / 10^ep = numerator / denominator.
// v's boundarys m- and m+:
// m- / 10^ep == v / 10^ep - delta_minus / denominator
// m+ / 10^ep == v / 10^ep + delta_plus / denominator
// Or in other words:
// m- == v - delta_minus * 10^ep / denominator;
// m+ == v + delta_plus * 10^ep / denominator;
//
// Since 10^(k-1) <= v < 10^k (with k == estimated_power)
// or 10^k <= v < 10^(k+1)
// we then have 0.1 <= numerator/denominator < 1
// or 1 <= numerator/denominator < 10
//
// It is then easy to kickstart the digit-generation routine.
//
// The boundary-deltas are only filled if need_boundary_deltas is set.
static void InitialScaledStartValues(double v,
int estimated_power,
bool need_boundary_deltas,
Bignum* numerator,
Bignum* denominator,
Bignum* delta_minus,
Bignum* delta_plus) {
if (Double(v).Exponent() >= 0) {
InitialScaledStartValuesPositiveExponent(
v, estimated_power, need_boundary_deltas,
numerator, denominator, delta_minus, delta_plus);
} else if (estimated_power >= 0) {
InitialScaledStartValuesNegativeExponentPositivePower(
v, estimated_power, need_boundary_deltas,
numerator, denominator, delta_minus, delta_plus);
} else {
InitialScaledStartValuesNegativeExponentNegativePower(
v, estimated_power, need_boundary_deltas,
numerator, denominator, delta_minus, delta_plus);
}
}
// This routine multiplies numerator/denominator so that its values lies in the
// range 1-10. That is after a call to this function we have:
// 1 <= (numerator + delta_plus) /denominator < 10.
// Let numerator the input before modification and numerator' the argument
// after modification, then the output-parameter decimal_point is such that
// numerator / denominator * 10^estimated_power ==
// numerator' / denominator' * 10^(decimal_point - 1)
// In some cases estimated_power was too low, and this is already the case. We
// then simply adjust the power so that 10^(k-1) <= v < 10^k (with k ==
// estimated_power) but do not touch the numerator or denominator.
// Otherwise the routine multiplies the numerator and the deltas by 10.
static void FixupMultiply10(int estimated_power, bool is_even,
int* decimal_point,
Bignum* numerator, Bignum* denominator,
Bignum* delta_minus, Bignum* delta_plus) {
bool in_range;
if (is_even) {
// For IEEE doubles half-way cases (in decimal system numbers ending with 5)
// are rounded to the closest floating-point number with even significand.
in_range = Bignum::PlusCompare(*numerator, *delta_plus, *denominator) >= 0;
} else {
in_range = Bignum::PlusCompare(*numerator, *delta_plus, *denominator) > 0;
}
if (in_range) {
// Since numerator + delta_plus >= denominator we already have
// 1 <= numerator/denominator < 10. Simply update the estimated_power.
*decimal_point = estimated_power + 1;
} else {
*decimal_point = estimated_power;
numerator->Times10();
if (Bignum::Equal(*delta_minus, *delta_plus)) {
delta_minus->Times10();
delta_plus->AssignBignum(*delta_minus);
} else {
delta_minus->Times10();
delta_plus->Times10();
}
}
}
} // namespace double_conversion
} // namespace WTF
| Irrelon/JavaScriptCore | wtf/dtoa/bignum-dtoa.cc | C++ | lgpl-2.1 | 33,077 | [
30522,
1013,
1013,
9385,
2230,
1996,
15754,
2622,
6048,
1012,
2035,
2916,
9235,
1012,
1013,
1013,
25707,
1998,
2224,
1999,
3120,
1998,
12441,
3596,
1010,
2007,
2030,
2302,
1013,
1013,
14080,
1010,
2024,
7936,
3024,
2008,
1996,
2206,
3785,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# AUTOGENERATED FILE
FROM balenalib/up-board-fedora:34-run
ENV NODE_VERSION 15.14.0
ENV YARN_VERSION 1.22.4
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
done \
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \
&& echo "23f8adb7afbd9969f0f9b8b2da0ba3e0a9db57c547aa0c5e0885f0b2aae6081c node-v$NODE_VERSION-linux-x64.tar.gz" | sha256sum -c - \
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt/yarn \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& npm config set unsafe-perm true -g --unsafe-perm \
&& rm -rf /tmp/*
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@node.sh" \
&& echo "Running test-stack@node" \
&& chmod +x test-stack@node.sh \
&& bash test-stack@node.sh \
&& rm -rf test-stack@node.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: Intel 64-bit (x86-64) \nOS: Fedora 34 \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nNode.js v15.14.0, Yarn v1.22.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo $'#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh | nghiant2710/base-images | balena-base-images/node/up-board/fedora/34/15.14.0/run/Dockerfile | Dockerfile | apache-2.0 | 2,754 | [
30522,
1001,
8285,
6914,
16848,
5371,
2013,
28352,
8189,
29521,
1013,
2039,
1011,
2604,
1011,
7349,
6525,
1024,
4090,
1011,
2448,
4372,
2615,
13045,
1035,
2544,
2321,
30524,
20952,
2094,
18827,
2683,
2581,
2546,
2629,
1032,
1025,
2079,
1032... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#if UNITY_4_3 || UNITY_4_3_0 || UNITY_4_3_1
#define UNITY_4_3
#elif UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2
#define UNITY_4
#elif UNITY_3_0 || UNITY_3_0_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5
#define UNITY_3
#endif
using UnityEngine;
using UnityEditor;
using System.Collections;
using ProBuilder2.Common;
using ProBuilder2.MeshOperations;
using ProBuilder2.EditorEnum;
namespace ProBuilder2.Actions
{
public class ExtrudeFace : Editor
{
const int EXTRUDE = 100;
[MenuItem("Tools/" + pb_Constant.PRODUCT_NAME + "/Geometry/Extrude %#e", false, EXTRUDE + 1)]
public static void ExtrudeNoTranslation()
{
PerformExtrusion(0f);
}
[MenuItem("Tools/" + pb_Constant.PRODUCT_NAME + "/Geometry/Extrude with Translation %e", false, EXTRUDE)]
public static void Extrude()
{
PerformExtrusion(.25f);
}
private static void PerformExtrusion(float dist)
{
SelectMode mode = pb_Editor.instance.GetSelectionMode();
pb_Object[] pbs = pbUtil.GetComponents<pb_Object>(Selection.transforms);
#if !UNITY_4_3
Undo.RegisterUndo(pbUtil.GetComponents<pb_Object>(Selection.transforms), "extrude selected.");
#else
Undo.RecordObjects(pbUtil.GetComponents<pb_Object>(Selection.transforms), "extrude selected.");
#endif
int extrudedFaceCount = 0;
foreach(pb_Object pb in pbs)
{
switch(mode)
{
case SelectMode.Face:
if(pb.selected_faces.Length < 1)
continue;
extrudedFaceCount += pb.selected_faces.Length;
pb.Extrude(pb.selected_faces, dist);
break;
case SelectMode.Edge:
if(pb.selected_edges.Length < 1)
continue;
pb_Edge[] newEdges = pb.Extrude(pb.selected_edges, dist, pb_Preferences_Internal.GetBool(pb_Constant.pbPerimeterEdgeExtrusionOnly));
if(newEdges != null)
{
extrudedFaceCount += pb.selected_edges.Length;
pb.selected_edges = newEdges;
pb.selected_triangles = pb.SharedTrianglesWithTriangles( pb.selected_edges.ToIntArray() );
}
break;
}
pb.GenerateUV2(true);
}
if(extrudedFaceCount > 0)
{
string val = "";
if(mode == SelectMode.Edge)
val = (extrudedFaceCount > 1 ? extrudedFaceCount + " Edges" : "Edge");
else
val = (extrudedFaceCount > 1 ? extrudedFaceCount + " Faces" : "Face");
pb_Editor_Utility.ShowNotification("Extrude " + val, "Extrudes the selected faces / edges.");
}
if(pb_Editor.instance)
pb_Editor.instance.UpdateSelection();
}
}
}
| Jack423/TankGame | Assets/6by7/ProBuilder/Editor/Actions/ExtrudeFace.cs | C# | gpl-2.0 | 2,531 | [
30522,
1001,
2065,
8499,
1035,
1018,
1035,
1017,
1064,
1064,
8499,
1035,
1018,
1035,
1017,
1035,
1014,
1064,
1064,
8499,
1035,
1018,
1035,
1017,
1035,
1015,
1001,
9375,
8499,
1035,
1018,
1035,
1017,
1001,
12005,
2546,
8499,
1035,
1018,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (C) 2011-2014 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2014 MaNGOS <http://getmangos.com/>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef TRINITY_DISABLEMGR_H
#define TRINITY_DISABLEMGR_H
#include "Define.h"
class Unit;
enum DisableType
{
DISABLE_TYPE_SPELL = 0,
DISABLE_TYPE_QUEST = 1,
DISABLE_TYPE_MAP = 2,
DISABLE_TYPE_BATTLEGROUND = 3,
DISABLE_TYPE_ACHIEVEMENT_CRITERIA = 4,
DISABLE_TYPE_OUTDOORPVP = 5,
DISABLE_TYPE_VMAP = 6,
DISABLE_TYPE_MMAP = 7
};
enum SpellDisableTypes
{
SPELL_DISABLE_PLAYER = 0x1,
SPELL_DISABLE_CREATURE = 0x2,
SPELL_DISABLE_PET = 0x4,
SPELL_DISABLE_DEPRECATED_SPELL = 0x8,
SPELL_DISABLE_MAP = 0x10,
SPELL_DISABLE_AREA = 0x20,
SPELL_DISABLE_LOS = 0x40,
MAX_SPELL_DISABLE_TYPE = ( SPELL_DISABLE_PLAYER | SPELL_DISABLE_CREATURE | SPELL_DISABLE_PET |
SPELL_DISABLE_DEPRECATED_SPELL | SPELL_DISABLE_MAP | SPELL_DISABLE_AREA |
SPELL_DISABLE_LOS)
};
enum VmapDisableTypes
{
VMAP_DISABLE_AREAFLAG = 0x1,
VMAP_DISABLE_HEIGHT = 0x2,
VMAP_DISABLE_LOS = 0x4,
VMAP_DISABLE_LIQUIDSTATUS = 0x8
};
enum MMapDisableTypes
{
MMAP_DISABLE_PATHFINDING = 0x0
};
namespace DisableMgr
{
void LoadDisables();
bool IsDisabledFor(DisableType type, uint32 entry, Unit const* unit, uint8 flags = 0);
void CheckQuestDisables();
}
#endif //TRINITY_DISABLEMGR_H
| darkloveir/Skyfire-6.1.2-version | src/server/game/Conditions/DisableMgr.h | C | gpl-2.0 | 2,375 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2249,
1011,
2297,
2622,
3712,
10273,
1026,
8299,
1024,
1013,
1013,
7479,
1012,
3934,
4801,
10273,
1012,
8917,
1013,
1028,
1008,
9385,
1006,
1039,
1007,
2263,
1011,
2297,
7124,
17345,
1026,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package org.dhydrated.kanbanana.server.controller;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.dhydrated.kanbanana.server.repository.BaseRepository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
public abstract class BaseService<E> {
private Logger log = Logger.getLogger(BaseService.class.getName());
public List<E> list(String parentId) {
log.log(Level.INFO, "get");
return getRepository().list(parentId);
}
public E get(@PathVariable("id") String id) throws Exception{
log.log(Level.INFO, "get");
return getRepository().get(id);
}
public E save(@RequestBody E entity) {
log.log(Level.INFO, "save");
log.log(Level.INFO, "Entity: " + entity);
getRepository().save(entity);
return entity;
}
public Boolean delete(@PathVariable("id") String id) throws Exception{
log.log(Level.INFO, "delete");
try {
getRepository().delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public abstract BaseRepository<E> getRepository();
public abstract void setRepository(BaseRepository<E> repository);
}
| dhydrated/kan-banana-server | src/main/java/org/dhydrated/kanbanana/server/controller/BaseService.java | Java | gpl-3.0 | 1,217 | [
30522,
7427,
8917,
1012,
28144,
25688,
9250,
1012,
22827,
19445,
2532,
1012,
8241,
1012,
11486,
1025,
12324,
9262,
1012,
21183,
4014,
1012,
2862,
1025,
12324,
9262,
1012,
21183,
4014,
1012,
15899,
1012,
2504,
1025,
12324,
9262,
1012,
21183,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
require_relative "hypersphere.rb"
class Circle < HyperSphere
def initialize(radius = 1, center = [0,0], pct_error = 1)
super(radius, center, pct_error)
end
def area
dim_check(2)
Math::PI * (@radius ** 2)
end
def circumference
dim_check(2)
2 * Math::PI * @radius
end
def inspect
"Circle: #{equation}"
end
private
def circle_equation
dim_check(2)
center_point = @center.dup
coord_names = ["x", "y"]
center_point.coords.each_with_index do |center_coord, index|
if center_coord == 0
# coord_name is fine
elsif center_coord < 0
coord_names[index] = "(#{coord_names[index]} + #{-center_coord})"
else
coord_names[index] = "(#{coord_names[index]} - #{center_coord})"
end
end
"#{coord_names[0]}^2 + #{coord_names[1]}^2 = #{@radius ** 2}"
end
def close_enough(guess, exact)
range = Array.new
range[0] = exact *(100.0 - @pct_error)/100.0
range[1] = exact * (100.0 + @pct_error)/100.0
guess.between?(range[0], range[1])
end
end
| MrMicrowaveOven/zadt | lib/zadt/AbstractDataTypes/Geometrics/circle.rb | Ruby | mit | 1,065 | [
30522,
5478,
1035,
5816,
1000,
23760,
23874,
1012,
21144,
1000,
2465,
4418,
1026,
23760,
23874,
13366,
3988,
4697,
1006,
12177,
1027,
1015,
1010,
2415,
1027,
1031,
1014,
1010,
1014,
1033,
1010,
7473,
2102,
1035,
7561,
1027,
1015,
1007,
3565... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Gasparrinia donetzica Dubovik SPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | mdoering/backbone | life/Plantae/Magnoliophyta/Magnoliopsida/Apiales/Apiaceae/Gasparrinia/Gasparrinia donetzica/README.md | Markdown | apache-2.0 | 179 | [
30522,
1001,
12008,
2906,
22612,
2050,
2589,
5753,
5555,
12931,
4492,
5480,
2427,
1001,
1001,
1001,
1001,
3570,
3970,
1001,
1001,
1001,
1001,
2429,
2000,
2248,
3269,
3415,
5950,
1001,
1001,
1001,
1001,
2405,
1999,
19701,
1001,
1001,
1001,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Ext.namespace("Ext.haode");
Ext.haode.Control = function(args){
Ext.apply(this, args);
this.init();
};
Ext.haode.Control.prototype = {
userName : '',
version : '',
app_name : '',
copyright : '',
viewport : null,
cn : 1,
init : function() {
this.viewport = this.getViewport();
},
getViewport : function() {
var viewport;
if (this.viewport) {
viewport = this.viewport;
} else {
var centerPanel = this.getCenterPanel();
viewport = new Ext.Viewport({
layout: 'fit',
items: [centerPanel]
});
}
return viewport;
},
getCenterPanel : function() {
var panel;
if (this.viewport) {
panel = this.getViewport().items[0];
} else {
var n = new Ext.Button({
id : 'tsb',
text : '发放任务',
align : 'right',
width : 80,
menu : [{
text : '常规任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
timeout : 1000000,
url : 'task.do?action=normal',
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
}
// }, {
// text : '个别任务',
// handler : function() {
// if (!Ext.getCmp('form').getForm().isValid()) {
// alert('请正确填写表单');
// return;
// }
//
// var sm = new Ext.grid.CheckboxSelectionModel();
// var store1 = new Ext.data.Store({
// proxy : new Ext.data.HttpProxy({
// url : 'customerManager.do?action=queryAll'
// }),
// reader : new Ext.data.JsonReader({
// root : 'rows',
// totalProperty : 'total',
// id : 'id',
// fields : ['id', 'name', 'username']
// })
// });
//
// var paging = new Ext.PagingToolbar({
// pageSize : 20,
// store : store1,
// displayInfo : true,
// displayMsg : '当前显示数据 {0} - {1} of {2}',
// emptyMsg : '没有数据'
// });
//
// var win = new Ext.Window({
// title : '客户经理',
// id : 'bind',
// layout : 'fit',
// border : false,
// modal : true,
// width : 500,
// height : 400,
// items : [new Ext.grid.GridPanel({
// id : 'grid1',
// loadMask : true,
//// tbar : [{
//// xtype : 'textfield',
//// id : 'searchName',
//// emptyText : '请输入客户经理名称...',
//// width : 150
//// }, {
//// text : '搜索',
//// width : 45,
//// xtype : 'button',
//// handler : function() {
////
//// }
//// }],
// store : store1,
// sm : sm,
// cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
// header : '客户经理名称',
// width : 200,
// dataIndex : 'name',
// align : 'center'
// }, {
// header : '客户经理用户名',
// width : 230,
// dataIndex : 'username',
// align : 'center'
// }]),
// bbar : paging
// })],
// buttons : [{
// text : '确定',
// handler : function() {
// var mrecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
// if (mrecords.length < 1) {
// alert('请选择要做任务的客户经理!');
// return;
// }
// var mids = '';
// for (var j = 0; j < mrecords.length; j++) {
// mids += ',' + mrecords[j].get('id');
// }
//
// Ext.getCmp('bind').close();
// Ext.getCmp('form').getForm().submit({
// waitTitle : '提示',
// waitMsg : '正在提交数据请稍后...',
// url : 'task.do?action=indevi',
// params : {
// mids : mids
// },
// method : 'post',
// success : function(form, action) {
// alert(action.result.myHashMap.msg);
// },
// failure : function(form, action) {
// alert(action.result.myHashMap.msg);
// }
// });
//
// }
// }, {
// text : '取消',
// handler : function() {
// Ext.getCmp('bind').close();
// }
// }]
// });
// win.show(Ext.getBody());
// store1.load({
// params : {
// start : 0,
// limit : 20
// }
// });
//
// }
}, {
text : '分组任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
var sm = new Ext.grid.CheckboxSelectionModel();
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customerGroup.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var win = new Ext.Window({
title : '客户分组',
id : 'bind',
layout : 'fit',
border : false,
modal : true,
width : 500,
height : 400,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
sm : sm,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
header : '客户分组名称',
width : 200,
dataIndex : 'name',
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var grecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (grecords.length < 1) {
alert('请选择客户分组!');
return;
}
var gids = '';
for (var j = 0; j < grecords.length; j++) {
gids += ',' + grecords[j].get('id');
}
Ext.getCmp('bind').close();
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=group',
params : {
gids : gids
},
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('bind').close();
}
}]
});
win.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20,
all : 0
}
});
}
}, {
text : '客户任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customer.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name', 'number', 'sell_number', 'store_name', 'level', 'phone_number', 'manager',
'backup_number', 'address', 'order_type', 'gps', 'last_visit_time']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var sm = new Ext.grid.CheckboxSelectionModel();
var win1 = new Ext.Window({
title : '选择客户',
id : 'chooseCustomer',
layout : 'fit',
border : false,
modal : true,
width : 800,
height : 600,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
sm : sm,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
header : '客户名称',
width : 100,
dataIndex : 'name',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户编号',
width : 130,
dataIndex : 'number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '专卖证号',
width : 130,
dataIndex : 'sell_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '店铺名称',
width : 200,
dataIndex : 'store_name',
sortable : true,
remoteSort : true,
align : 'left'
}, {
header : '客户级别',
width : 90,
dataIndex : 'level',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '电话号码',
width : 100,
dataIndex : 'phone_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户经理',
width : 120,
dataIndex : 'manager',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '备用号码',
width : 100,
dataIndex : 'backup_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '经营地址',
width : 240,
dataIndex : 'address',
sortable : true,
remoteSort : true,
align : 'left',
renderer : function(value, meta) {
meta.attr = 'title="' + value + '"';
return value;
}
}, {
header : '订货类型',
width : 60,
dataIndex : 'order_type',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : 'GPS(经度,纬度)',
width : 150,
dataIndex : 'gps',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '最近一次拜访时间',
width : 180,
dataIndex : 'last_visit_time',
sortable : true,
remoteSort : true,
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var crecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (crecords.length < 1) {
alert('请选择要拜访的客户!');
return;
}
var size = crecords.length;
var cids = "";
for (var i = 0; i < size; i++) {
cids += ',' + crecords[i].get('id');
}
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=customerTask',
params : {
cids : cids
},
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
Ext.getCmp('chooseCustomer').close();
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('chooseCustomer').close();
}
}]
});
win1.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20
}
});
}
}, {
text : '自定义任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
var cids = '';
var mid = '';
var win = new Ext.Window({
title : '自定义任务',
id : 'editWin',
layout : 'fit',
border : false,
modal : true,
width : 500,
height : 250,
items : [new Ext.form.FormPanel({
id : 'editForm',
frame : true,
bodyStyle : 'padding : 30px; 20px;',
defaults : {
msgTarget : 'under'
},
height : 'auto',
labelWidth : 80,
labelAlign : 'right',
items : [{
xtype : 'compositefield',
width : 500,
items : [{
fieldLabel : '客户名称',
xtype : 'textfield',
id : 'customer',
allowBlank : false,
width : 300
}, {
text : '浏览…',
xtype : 'button',
handler : function() {
// 选择客户
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customer.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name', 'number', 'sell_number', 'store_name', 'level', 'phone_number', 'manager',
'backup_number', 'address', 'order_type', 'gps', 'last_visit_time']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var sm = new Ext.grid.CheckboxSelectionModel();
var win1 = new Ext.Window({
title : '选择客户',
id : 'chooseCustomer',
layout : 'fit',
border : false,
modal : true,
width : 800,
height : 600,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
sm : sm,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
header : '客户名称',
width : 100,
dataIndex : 'name',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户编号',
width : 130,
dataIndex : 'number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '专卖证号',
width : 130,
dataIndex : 'sell_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '店铺名称',
width : 200,
dataIndex : 'store_name',
sortable : true,
remoteSort : true,
align : 'left'
}, {
header : '客户级别',
width : 90,
dataIndex : 'level',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '电话号码',
width : 100,
dataIndex : 'phone_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户经理',
width : 120,
dataIndex : 'manager',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '备用号码',
width : 100,
dataIndex : 'backup_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '经营地址',
width : 240,
dataIndex : 'address',
sortable : true,
remoteSort : true,
align : 'left',
renderer : function(value, meta) {
meta.attr = 'title="' + value + '"';
return value;
}
}, {
header : '订货类型',
width : 60,
dataIndex : 'order_type',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : 'GPS(经度,纬度)',
width : 150,
dataIndex : 'gps',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '最近一次拜访时间',
width : 180,
dataIndex : 'last_visit_time',
sortable : true,
remoteSort : true,
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var crecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (crecords.length < 1) {
alert('请选择要拜访的客户!');
return;
}
var size = crecords.length;
var cnames = '';
for (var i = 0; i < size; i++) {
cids += ',' + crecords[i].get('id');
cnames += ',' + crecords[i].get('name');
}
Ext.getCmp('customer').setValue(cnames.substring(1));
Ext.getCmp('chooseCustomer').close();
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('chooseCustomer').close();
}
}]
});
win1.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20
}
});
}
}]
}, {
xtype : 'compositefield',
width : 500,
items : [{
fieldLabel : '客户经理',
xtype : 'textfield',
id : 'manager',
allowBlank : false,
width : 300
}, {
text : '浏览…',
xtype : 'button',
handler : function() {
// 选择客户经理
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customerManager.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name', 'username', 'department', 'area']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var win1 = new Ext.Window({
title : '选择客户经理',
id : 'bind',
layout : 'fit',
border : false,
modal : true,
width : 600,
height : 400,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), {
header : '客户经理名称',
width : 130,
dataIndex : 'name',
align : 'center'
}, {
header : '用户名',
width : 130,
dataIndex : 'username',
align : 'center'
}, {
header : '部门',
width : 130,
dataIndex : 'department',
align : 'center'
}, {
header : '片区',
width : 130,
dataIndex : 'area',
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var mrecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (mrecords.length < 1) {
alert('请选择客户经理!');
return;
}
mid = mrecords[0].get('id');
var manager = mrecords[0].get('name');
if (mrecords[0].get('department') != "") {
manager = manager + "-" + mrecords[0].get('department');
}
if (mrecords[0].get('area') != "") {
manager = manager + "-" + mrecords[0].get('area');
}
Ext.getCmp('manager').setValue(manager);
Ext.getCmp('bind').close();
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('bind').close();
}
}]
});
win1.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20
}
});
}
}]
}],
buttons : [{
text : '确定',
handler : function() {
Ext.getCmp('editWin').close();
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=newCustomerTask',
params : {
mid : mid,
cids : cids,
},
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('editWin').close();
}
}]
})]
});
win.show(Ext.getBody());
}
}]
});
panel = new Ext.form.FormPanel({
id : 'form',
defaults : {
width : 250,
msgTarget : 'under'
},
bodyStyle : 'padding : 50px; 150px;',
labelWidth : 80,
labelAlign : 'right',
tbar : [{
xtype : 'button',
id : 'ad',
iconCls : 'add',
text : '增加内容',
align : 'right',
width : 80,
handler : function() {
this.cn = this.cn + 1;
var f = Ext.getCmp('form');
var a = Ext.getCmp('ad');
var t = Ext.getCmp('tsb');
var c = new Ext.form.TextField({
fieldLabel : '任务内容' + this.cn,
allowBlank : false,
name : 'content' + this.cn,
id : 'content' + this.cn,
xtype : 'textfield'
});
f.remove(t);
f.add(c);
f.add(n);
f.doLayout();
},
scope : this
}],
items : [{
fieldLabel : '任务起始时间',
allowBlank : false,
editable : false,
name : 'start',
id : 'start',
xtype : 'datefield'
}, {
fieldLabel : '任务完成时间',
allowBlank : false,
editable : false,
name : 'end',
id : 'end',
xtype : 'datefield'
}, {
fieldLabel : '任务标题',
allowBlank : false,
name : 'content',
id : 'content',
xtype : 'textfield'
}, {
fieldLabel : '任务内容' + this.cn,
allowBlank : false,
name : 'content' + this.cn,
id : 'content' + this.cn,
xtype : 'textfield'
}, {
xtype : 'button',
id : 'tsb',
text : '发放任务',
align : 'right',
width : 80,
menu : [{
text : '常规任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=normal',
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
}
// }, {
// text : '个别任务',
// handler : function() {
// if (!Ext.getCmp('form').getForm().isValid()) {
// alert('请正确填写表单');
// return;
// }
//
//
// var sm = new Ext.grid.CheckboxSelectionModel();
// var store1 = new Ext.data.Store({
// proxy : new Ext.data.HttpProxy({
// url : 'customerManager.do?action=queryAll'
// }),
// reader : new Ext.data.JsonReader({
// root : 'rows',
// totalProperty : 'total',
// id : 'id',
// fields : ['id', 'name', 'username']
// })
// });
//
// var paging = new Ext.PagingToolbar({
// pageSize : 20,
// store : store1,
// displayInfo : true,
// displayMsg : '当前显示数据 {0} - {1} of {2}',
// emptyMsg : '没有数据'
// });
//
// var win = new Ext.Window({
// title : '客户经理',
// id : 'bind',
// layout : 'fit',
// border : false,
// modal : true,
// width : 500,
// height : 400,
// items : [new Ext.grid.GridPanel({
// id : 'grid1',
// loadMask : true,
//// tbar : [{
//// xtype : 'textfield',
//// id : 'searchName',
//// emptyText : '请输入客户经理名称...',
//// width : 150
//// }, {
//// text : '搜索',
//// width : 45,
//// xtype : 'button',
//// handler : function() {
////
//// }
//// }],
// store : store1,
// sm : sm,
// cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
// header : '客户经理名称',
// width : 200,
// dataIndex : 'name',
// align : 'center'
// }, {
// header : '客户经理用户名',
// width : 230,
// dataIndex : 'username',
// align : 'center'
// }]),
// bbar : paging
// })],
// buttons : [{
// text : '确定',
// handler : function() {
// var mrecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
// if (mrecords.length < 1) {
// alert('请选择要做任务的客户经理!');
// return;
// }
// var mids = '';
// for (var j = 0; j < mrecords.length; j++) {
// mids += ',' + mrecords[j].get('id');
// }
//
// Ext.getCmp('bind').close();
// Ext.getCmp('form').getForm().submit({
// waitTitle : '提示',
// waitMsg : '正在提交数据请稍后...',
// url : 'task.do?action=indevi',
// params : {
// mids : mids
// },
// method : 'post',
// success : function(form, action) {
// alert(action.result.myHashMap.msg);
// },
// failure : function(form, action) {
// alert(action.result.myHashMap.msg);
// }
// });
//
// }
// }, {
// text : '取消',
// handler : function() {
// Ext.getCmp('bind').close();
// }
// }]
// });
// win.show(Ext.getBody());
// store1.load({
// params : {
// start : 0,
// limit : 20
// }
// });
//
// }
}, {
text : '分组任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
var sm = new Ext.grid.CheckboxSelectionModel();
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customerGroup.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var win = new Ext.Window({
title : '客户分组',
id : 'bind',
layout : 'fit',
border : false,
modal : true,
width : 500,
height : 400,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
sm : sm,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
header : '客户分组名称',
width : 200,
dataIndex : 'name',
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var grecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (grecords.length < 1) {
alert('请选择客户分组!');
return;
}
var gids = '';
for (var j = 0; j < grecords.length; j++) {
gids += ',' + grecords[j].get('id');
}
Ext.getCmp('bind').close();
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=group',
params : {
gids : gids
},
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('bind').close();
}
}]
});
win.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20,
all : 0
}
});
}
}, {
text : '客户任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customer.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name', 'number', 'sell_number', 'store_name', 'level', 'phone_number', 'manager',
'backup_number', 'address', 'order_type', 'gps', 'last_visit_time']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var sm = new Ext.grid.CheckboxSelectionModel();
var win1 = new Ext.Window({
title : '选择客户',
id : 'chooseCustomer',
layout : 'fit',
border : false,
modal : true,
width : 800,
height : 600,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
sm : sm,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
header : '客户名称',
width : 100,
dataIndex : 'name',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户编号',
width : 130,
dataIndex : 'number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '专卖证号',
width : 130,
dataIndex : 'sell_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '店铺名称',
width : 200,
dataIndex : 'store_name',
sortable : true,
remoteSort : true,
align : 'left'
}, {
header : '客户级别',
width : 90,
dataIndex : 'level',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '电话号码',
width : 100,
dataIndex : 'phone_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户经理',
width : 120,
dataIndex : 'manager',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '备用号码',
width : 100,
dataIndex : 'backup_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '经营地址',
width : 240,
dataIndex : 'address',
sortable : true,
remoteSort : true,
align : 'left',
renderer : function(value, meta) {
meta.attr = 'title="' + value + '"';
return value;
}
}, {
header : '订货类型',
width : 60,
dataIndex : 'order_type',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : 'GPS(经度,纬度)',
width : 150,
dataIndex : 'gps',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '最近一次拜访时间',
width : 180,
dataIndex : 'last_visit_time',
sortable : true,
remoteSort : true,
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var crecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (crecords.length < 1) {
alert('请选择要拜访的客户!');
return;
}
var size = crecords.length;
var cids = "";
for (var i = 0; i < size; i++) {
cids += ',' + crecords[i].get('id');
}
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=customerTask',
params : {
cids : cids
},
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
Ext.getCmp('chooseCustomer').close();
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('chooseCustomer').close();
}
}]
});
win1.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20
}
});
}
}, {
text : '自定义任务',
handler : function() {
if (!Ext.getCmp('form').getForm().isValid()) {
alert('请正确填写表单');
return;
}
var cids = '';
var mid = '';
var win = new Ext.Window({
title : '自定义任务',
id : 'editWin',
layout : 'fit',
border : false,
modal : true,
width : 500,
height : 250,
items : [new Ext.form.FormPanel({
id : 'editForm',
frame : true,
bodyStyle : 'padding : 30px; 20px;',
defaults : {
msgTarget : 'under'
},
height : 'auto',
labelWidth : 80,
labelAlign : 'right',
items : [{
xtype : 'compositefield',
width : 500,
items : [{
fieldLabel : '客户名称',
xtype : 'textfield',
id : 'customer',
allowBlank : false,
width : 300
}, {
text : '浏览…',
xtype : 'button',
handler : function() {
// 选择客户
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customer.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name', 'number', 'sell_number', 'store_name', 'level', 'phone_number', 'manager',
'backup_number', 'address', 'order_type', 'gps', 'last_visit_time']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var sm = new Ext.grid.CheckboxSelectionModel();
var win1 = new Ext.Window({
title : '选择客户',
id : 'chooseCustomer',
layout : 'fit',
border : false,
modal : true,
width : 800,
height : 600,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
sm : sm,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), sm, {
header : '客户名称',
width : 100,
dataIndex : 'name',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户编号',
width : 130,
dataIndex : 'number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '专卖证号',
width : 130,
dataIndex : 'sell_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '店铺名称',
width : 200,
dataIndex : 'store_name',
sortable : true,
remoteSort : true,
align : 'left'
}, {
header : '客户级别',
width : 90,
dataIndex : 'level',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '电话号码',
width : 100,
dataIndex : 'phone_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '客户经理',
width : 120,
dataIndex : 'manager',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '备用号码',
width : 100,
dataIndex : 'backup_number',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '经营地址',
width : 240,
dataIndex : 'address',
sortable : true,
remoteSort : true,
align : 'left',
renderer : function(value, meta) {
meta.attr = 'title="' + value + '"';
return value;
}
}, {
header : '订货类型',
width : 60,
dataIndex : 'order_type',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : 'GPS(经度,纬度)',
width : 150,
dataIndex : 'gps',
sortable : true,
remoteSort : true,
align : 'center'
}, {
header : '最近一次拜访时间',
width : 180,
dataIndex : 'last_visit_time',
sortable : true,
remoteSort : true,
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var crecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (crecords.length < 1) {
alert('请选择要拜访的客户!');
return;
}
var size = crecords.length;
var cnames = '';
for (var i = 0; i < size; i++) {
cids += ',' + crecords[i].get('id');
cnames += ',' + crecords[i].get('name');
}
Ext.getCmp('customer').setValue(cnames.substring(1));
Ext.getCmp('chooseCustomer').close();
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('chooseCustomer').close();
}
}]
});
win1.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20
}
});
}
}]
}, {
xtype : 'compositefield',
width : 500,
items : [{
fieldLabel : '客户经理',
xtype : 'textfield',
id : 'manager',
allowBlank : false,
width : 300
}, {
text : '浏览…',
xtype : 'button',
handler : function() {
// 选择客户经理
var store1 = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : 'customerManager.do?action=queryAll'
}),
reader : new Ext.data.JsonReader({
root : 'rows',
totalProperty : 'total',
id : 'id',
fields : ['id', 'name', 'username', 'department', 'area']
})
});
var paging = new Ext.PagingToolbar({
pageSize : 20,
store : store1,
displayInfo : true,
displayMsg : '当前显示数据 {0} - {1} of {2}',
emptyMsg : '没有数据'
});
var win1 = new Ext.Window({
title : '选择客户经理',
id : 'bind',
layout : 'fit',
border : false,
modal : true,
width : 600,
height : 400,
items : [new Ext.grid.GridPanel({
id : 'grid1',
loadMask : true,
store : store1,
cm : new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({width:38}), {
header : '客户经理名称',
width : 130,
dataIndex : 'name',
align : 'center'
}, {
header : '用户名',
width : 130,
dataIndex : 'username',
align : 'center'
}, {
header : '部门',
width : 130,
dataIndex : 'department',
align : 'center'
}, {
header : '片区',
width : 130,
dataIndex : 'area',
align : 'center'
}]),
bbar : paging
})],
buttons : [{
text : '确定',
handler : function() {
var mrecords = Ext.getCmp('grid1').getSelectionModel().getSelections();
if (mrecords.length < 1) {
alert('请选择客户经理!');
return;
}
mid = mrecords[0].get('id');
var manager = mrecords[0].get('name');
if (mrecords[0].get('department') != "") {
manager = manager + "-" + mrecords[0].get('department');
}
if (mrecords[0].get('area') != "") {
manager = manager + "-" + mrecords[0].get('area');
}
Ext.getCmp('manager').setValue(manager);
Ext.getCmp('bind').close();
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('bind').close();
}
}]
});
win1.show(Ext.getBody());
store1.load({
params : {
start : 0,
limit : 20
}
});
}
}]
}],
buttons : [{
text : '确定',
handler : function() {
Ext.getCmp('editWin').close();
Ext.getCmp('form').getForm().submit({
waitTitle : '提示',
waitMsg : '正在提交数据请稍后...',
url : 'task.do?action=newCustomerTask',
params : {
mid : mid,
cids : cids,
},
method : 'post',
success : function(form, action) {
alert(action.result.myHashMap.msg);
},
failure : function(form, action) {
alert(action.result.myHashMap.msg);
}
});
}
}, {
text : '取消',
handler : function() {
Ext.getCmp('editWin').close();
}
}]
})]
});
win.show(Ext.getBody());
}
}]
}]
});
}
return panel;
}
};
| hairlun/customer-visit-web | WebRoot/task/index.js | JavaScript | apache-2.0 | 49,167 | [
30522,
4654,
2102,
1012,
3415,
15327,
1006,
1000,
4654,
2102,
1012,
5292,
10244,
1000,
1007,
1025,
4654,
2102,
1012,
5292,
10244,
1012,
2491,
1027,
3853,
1006,
12098,
5620,
1007,
1063,
4654,
2102,
1012,
6611,
1006,
2023,
1010,
12098,
5620,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (c) 2007, Mathieu Champlon
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met :
*
* . Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* . Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* . Neither the name of the copyright holders nor the names of the
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE THE COPYRIGHT
* OWNERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "xeumeuleu_test_pch.h"
#include <xeumeuleu/xml.hpp>
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_reads_from_first_stream
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_reads_from_first_stream )
{
xml::xistringstream xis1( "<root-1/>" );
xml::xistringstream xis2( "<root-2/>" );
xml::ximultistream xis( xis1, xis2 );
BOOST_CHECK_NO_THROW( xis >> xml::start( "root-1" ) );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_reads_from_second_stream
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_reads_from_second_stream )
{
xml::xistringstream xis1( "<root-1/>" );
xml::xistringstream xis2( "<root-2/>" );
xml::ximultistream xis( xis1, xis2 );
BOOST_CHECK_NO_THROW( xis >> xml::start( "root-2" ) );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_a_non_existing_node_throws
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_a_non_existing_node_throws )
{
xml::xistringstream xis1( "<root-1/>" );
xml::xistringstream xis2( "<root-2/>" );
xml::ximultistream xis( xis1, xis2 );
BOOST_CHECK_THROW( xis >> xml::start( "non-existing-node" ), xml::exception );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_reads_attribute_from_first_stream
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_reads_attribute_from_first_stream )
{
xml::xistringstream xis1( "<root attribute='stream-1'/>" );
xml::xistringstream xis2( "<root/>" );
xml::ximultistream xis( xis1, xis2 );
xis >> xml::start( "root" );
BOOST_CHECK_EQUAL( "stream-1", xis.attribute< std::string >( "attribute" ) );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_reads_attribute_from_second_stream
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_reads_attribute_from_second_stream )
{
xml::xistringstream xis1( "<root/>" );
xml::xistringstream xis2( "<root attribute='stream-2'/>" );
xml::ximultistream xis( xis1, xis2 );
xis >> xml::start( "root" );
BOOST_CHECK_EQUAL( "stream-2", xis.attribute< std::string >( "attribute" ) );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_reads_attribute_with_first_stream_precedence
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_reads_attribute_with_first_stream_precedence )
{
xml::xistringstream xis1( "<root attribute='stream-1'/>" );
xml::xistringstream xis2( "<root attribute='stream-2'/>" );
xml::ximultistream xis( xis1, xis2 );
xis >> xml::start( "root" );
BOOST_CHECK_EQUAL( "stream-1", xis.attribute< std::string >( "attribute" ) );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_a_non_existing_attribute_throws
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_a_non_existing_attribute_throws )
{
xml::xistringstream xis1( "<root/>" );
xml::xistringstream xis2( "<root/>" );
xml::ximultistream xis( xis1, xis2 );
xis >> xml::start( "root" );
BOOST_CHECK_THROW( xis.attribute< std::string >( "attribute" ), xml::exception );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_a_non_existing_attribute_from_existing_branch_throws
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_a_non_existing_attribute_from_existing_branch_throws )
{
xml::xistringstream xis1( "<root-1/>" );
xml::xistringstream xis2( "<root-2/>" );
xml::ximultistream xis( xis1, xis2 );
xis >> xml::start( "root-1" );
BOOST_CHECK_THROW( xis.attribute< std::string >( "attribute" ), xml::exception );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_from_first_branch_then_second_branch_is_transparent
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_from_first_branch_then_second_branch_is_transparent )
{
xml::xistringstream xis1( "<root-1 attribute-1='stream-1'/>" );
xml::xistringstream xis2( "<root-2 attribute-2='stream-2'/>" );
xml::ximultistream xis( xis1, xis2 );
std::string actual1, actual2;
xis >> xml::start( "root-1" )
>> xml::attribute( "attribute-1", actual1 )
>> xml::end
>> xml::start( "root-2" )
>> xml::attribute( "attribute-2", actual2 );
BOOST_CHECK_EQUAL( "stream-1", actual1 );
BOOST_CHECK_EQUAL( "stream-2", actual2 );
}
// -----------------------------------------------------------------------------
// Name: reading_from_an_ximultistream_from_second_branch_does_not_change_stream_precedence
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( reading_from_an_ximultistream_from_second_branch_does_not_change_stream_precedence )
{
xml::xistringstream xis1( "<root attribute='stream-1'/>" );
xml::xistringstream xis2( "<root attribute='stream-2'><element/></root>" );
xml::ximultistream xis( xis1, xis2 );
xis >> xml::start( "root" )
>> xml::start( "element" )
>> xml::end;
BOOST_CHECK_EQUAL( "stream-1", xis.attribute< std::string >( "attribute" ) );
}
// -----------------------------------------------------------------------------
// Name: an_ximultistream_can_be_wrapped_by_an_xisubstream
// Created: MAT 2008-01-07
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( an_ximultistream_can_be_wrapped_by_an_xisubstream )
{
xml::xistringstream xis1( "<root-1 attribute='stream-1'/>" );
xml::xistringstream xis2( "<root-2 attribute='stream-2'/>" );
xml::ximultistream xis( xis1, xis2 );
{
xml::xisubstream xiss( xis );
xiss >> xml::start( "root-2" );
}
xis >> xml::start( "root-1" );
BOOST_CHECK_EQUAL( "stream-1", xis.attribute< std::string >( "attribute" ) );
}
// -----------------------------------------------------------------------------
// Name: an_ximultistream_can_be_wrapped_by_another_ximultistream
// Created: MAT 2008-04-25
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( an_ximultistream_can_be_wrapped_by_another_ximultistream )
{
xml::xistringstream xis1( "<root-1 attribute='stream-1'/>" );
xml::xistringstream xis2( "<root-2 attribute='stream-2'/>" );
xml::xistringstream xis3( "<root-3 attribute='stream-3'/>" );
xml::ximultistream xims( xis1, xis2 );
xml::ximultistream xis( xims, xis3 );
std::string actual1, actual2, actual3;
xis >> xml::start( "root-1" )
>> xml::attribute( "attribute", actual1 )
>> xml::end
>> xml::start( "root-2" )
>> xml::attribute( "attribute", actual2 )
>> xml::end
>> xml::start( "root-3" )
>> xml::attribute( "attribute", actual3 );
BOOST_CHECK_EQUAL( "stream-1", actual1 );
BOOST_CHECK_EQUAL( "stream-2", actual2 );
BOOST_CHECK_EQUAL( "stream-3", actual3 );
}
// -----------------------------------------------------------------------------
// Name: serializing_an_ximultistream_into_an_xostream_at_root_level_throws
// Created: MAT 2008-11-22
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( serializing_an_ximultistream_into_an_xostream_at_root_level_merges_attributes )
{
xml::xistringstream xis1( "<root/>" );
xml::xistringstream xis2( "<root/>" );
xml::ximultistream xims( xis1, xis2 );
xml::xostringstream xos;
BOOST_CHECK_THROW( xos << xims, xml::exception );
}
// -----------------------------------------------------------------------------
// Name: serializing_an_ximultistream_into_an_xostream_adds_both_stream_contents
// Created: MAT 2008-11-22
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( serializing_an_ximultistream_into_an_xostream_adds_both_stream_contents )
{
xml::xistringstream xis1( "<root-1/>" );
xml::xistringstream xis2( "<root-2/>" );
xml::ximultistream xims( xis1, xis2 );
xml::xostringstream xos;
xos << xml::start( "root" )
<< xims
<< xml::end;
xml::xistringstream xis( xos.str() );
xis >> xml::start( "root" )
>> xml::start( "root-1" )
>> xml::end
>> xml::start( "root-2" );
}
// -----------------------------------------------------------------------------
// Name: an_ximultistream_can_be_buffered_by_an_xibufferstream
// Created: MAT 2008-05-17
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( an_ximultistream_can_be_buffered_by_an_xibufferstream )
{
xml::xistringstream xis1( "<root-1 attribute='stream-1'/>" );
xml::xistringstream xis2( "<root-2 attribute='stream-2'/>" );
xml::ximultistream xis( xis1, xis2 );
xml::xibufferstream xibs( xis );
std::string actual1, actual2;
xibs >> xml::start( "root-1" )
>> xml::attribute( "attribute", actual1 )
>> xml::end
>> xml::start( "root-2" )
>> xml::attribute( "attribute", actual2 );
BOOST_CHECK_EQUAL( "stream-1", actual1 );
BOOST_CHECK_EQUAL( "stream-2", actual2 );
}
// -----------------------------------------------------------------------------
// Name: an_optional_attribute_not_found_in_first_stream_falls_back_to_the_second_stream
// Created: MAT 2008-05-17
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( an_optional_attribute_not_found_in_first_stream_falls_back_to_the_second_stream )
{
xml::xistringstream xis1( "<root/>" );
xml::xistringstream xis2( "<root attribute='stream-2'/>" );
xml::ximultistream xis( xis1, xis2 );
xml::xibufferstream xibs( xis );
std::string actual = "stream-1";
xibs >> xml::start( "root" )
>> xml::optional >>xml::attribute( "attribute", actual );
BOOST_CHECK_EQUAL( "stream-2", actual );
}
// -----------------------------------------------------------------------------
// Name: an_optional_attribute_not_found_in_either_stream_is_valid
// Created: MAT 2008-05-17
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( an_optional_attribute_not_found_in_either_stream_is_valid )
{
xml::xistringstream xis1( "<root/>" );
xml::xistringstream xis2( "<root/>" );
xml::ximultistream xis( xis1, xis2 );
xml::xibufferstream xibs( xis );
std::string actual = "no attribute";
xibs >> xml::start( "root" )
>> xml::optional >>xml::attribute( "attribute", actual );
BOOST_CHECK_EQUAL( "no attribute", actual );
}
// -----------------------------------------------------------------------------
// Name: an_optional_attribute_not_found_in_an_optional_sub_node_of_either_stream_is_valid
// Created: MCO 2009-05-31
// -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE( an_optional_attribute_not_found_in_an_optional_sub_node_of_either_stream_is_valid )
{
xml::xistringstream xis1( "<root>"
" <sub-node/>"
"</root>" );
xml::xistringstream xis2( "<root/>" );
xml::ximultistream xis( xis1, xis2 );
std::string attribute;
xis >> xml::start( "root" )
>> xml::optional >> xml::start( "sub-node" )
>> xml::optional >> xml::attribute( "non-existing-attribute", attribute );
}
| mat007/xeumeuleu | src/tests/xeumeuleu_test/ximultistream_test.cpp | C++ | bsd-3-clause | 14,818 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2289,
1010,
8785,
17301,
24782,
7811,
1008,
2035,
2916,
9235,
1012,
1008,
1008,
25707,
1998,
2224,
1999,
3120,
1998,
12441,
3596,
1010,
2007,
2030,
2302,
1008,
14080,
1010,
2024,
7936,
3024,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[AddComponentMenu("Ferr SuperCube/SuperMesh Combiner")]
public class SuperMeshCombiner : MonoBehaviour {
public const int MaxVerts = 65534;
class Subset {
public List<Vector3> mPoints = new List<Vector3>();
public List<Vector3> mNormals = new List<Vector3>();
public List<Vector2> mUVs = new List<Vector2>();
public List<Vector2> mLightUVs = new List<Vector2>();
public List<Vector4> mTangents = new List<Vector4>();
public List<Color> mColors = new List<Color>();
public List<int > mIndices = new List<int>();
public Material mMaterial = null;
public int mLightmapID = -1;
public int mMeshGroup = -1;
public int Count { get {return mPoints.Count;} }
public void Add (Subset aOther) {
CheckArrays(aOther);
mPoints .AddRange(aOther.mPoints);
mNormals .AddRange(aOther.mNormals);
mUVs .AddRange(aOther.mUVs);
mLightUVs.AddRange(aOther.mLightUVs);
mTangents.AddRange(aOther.mTangents);
mColors .AddRange(aOther.mColors);
}
public void CheckArrays(Subset aSubset = null) {
if (aSubset == null) aSubset = this;
if (aSubset.mNormals .Count > 0) CheckFilled<Vector3>(ref mNormals, Vector3.zero, mPoints.Count);
if (aSubset.mUVs .Count > 0) CheckFilled<Vector2>(ref mUVs, Vector2.zero, mPoints.Count);
if (aSubset.mLightUVs.Count > 0) CheckFilled<Vector2>(ref mLightUVs, Vector2.zero, mPoints.Count);
if (aSubset.mTangents.Count > 0) CheckFilled<Vector4>(ref mTangents, Vector4.zero, mPoints.Count);
if (aSubset.mColors .Count > 0) CheckFilled<Color >(ref mColors, Color.white, mPoints.Count);
}
static void CheckFilled<T>(ref List<T> aList, T aValue, int aCount) {
for (int i = aList.Count; i < aCount; i++) {
aList.Add(aValue);
}
}
}
[SerializeField]
bool mOnlyCombineChildren = false;
#if UNITY_5
[SerializeField, HideInInspector]
#else
[SerializeField]
#endif
bool mOnlyStaticObjects = false;
[SerializeField]
bool mOnlySuperObjects = false;
[SerializeField]
bool mLogTimeCost = false;
public void Start() {
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
sw.Start();
bool isPro = Application.HasProLicense();
#if UNITY_5
isPro = true;
#endif
// Find all the meshes in our domain
MeshFilter[] meshes = null;
if (mOnlyCombineChildren) {
meshes = GetComponentsInChildren <MeshFilter>();
} else {
meshes = GameObject.FindObjectsOfType<MeshFilter>();
}
List<Subset> subsets = new List<Subset>();
Dictionary<int, int> layers = new Dictionary<int, int>();
int validCount = 0;
for (int i = 0; i < meshes.Length; i+=1) {
// determine if the mesh is valid, and check it with our settings
if (meshes[i] == null || meshes[i].sharedMesh == null) continue;
if (meshes[i].GetComponent<SuperMeshCombiner>() != null) continue;
if (mOnlySuperObjects && meshes[i].GetComponent(typeof(Ferr.IProceduralMesh)) == null) continue;
if (isPro && meshes[i].gameObject.isStatic) continue; // Unity pro is already handling this object, we'll only crash the program if we try this.
if (mOnlyStaticObjects && !meshes[i].gameObject.isStatic) continue;
// just tracking count =D
validCount += 1;
// add the material subsets of the valid mesh
Renderer r = meshes[i].GetComponent<Renderer>();
Matrix4x4 mat = meshes[i].transform.localToWorldMatrix;
for (int s = 0; s < meshes[i].sharedMesh.subMeshCount; s+=1) {
#if UNITY_5
AddSubset(ref subsets, meshes[i].sharedMesh, r.lightmapIndex, s, r.sharedMaterials[s], mat, r.realtimeLightmapScaleOffset);
#else
AddSubset(ref subsets, meshes[i].sharedMesh, r.lightmapIndex, s, r.sharedMaterials[s], mat, r.lightmapTilingOffset);
#endif
}
r.enabled = false;
// keep track what layer this is on, and how many are on it
if (!layers.ContainsKey(meshes[i].gameObject.layer)) layers.Add(meshes[i].gameObject.layer, 0);
layers[meshes[i].gameObject.layer] += 1;
}
// figure out the most common layer type, and use that for our layer overall
if (gameObject.layer == 0) {
int commonLayer = gameObject.layer;
int max = 0;
foreach (KeyValuePair<int, int> pair in layers) {
if (pair.Value > max) {
commonLayer = pair.Key;
max = pair.Value;
}
}
gameObject.layer = commonLayer;
}
// create meshes based on the info we've collected
int lightmapCount = LightmapCount(subsets);
for (int i=0; i<lightmapCount; i+=1) {
CreateSizedMeshes(gameObject, subsets, LightmapID(subsets, i));
}
sw.Stop();
if (mLogTimeCost) Debug.Log(string.Format("Merging geometry [{1} objects scanned: {2} valid, {3} subsets]: {0}ms", System.Math.Round((float)sw.Elapsed.TotalMilliseconds, 2), meshes.Length, validCount, subsets.Count));
}
static void CreateSizedMeshes(GameObject aParent, List<Subset> aSubsets, int aLightmapID) {
List<List<Subset>> sizedMeshes = new List<List<Subset>>();
List<int> meshVertCount = new List<int>();
// this should reduce extra draw calls that might happen when mesh subsets get split too small
aSubsets.Sort((a,b)=> {return a.mMaterial==null?0:a.mMaterial.GetInstanceID().CompareTo(b.mMaterial==null?0:b.mMaterial.GetInstanceID());});
sizedMeshes .Add(new List<Subset>());
meshVertCount.Add(0);
for (int i = 0; i < aSubsets.Count; i++) {
if (aSubsets[i].mLightmapID != aLightmapID) continue;
// see if we can find room in one of the meshes we're about to create
bool found = false;
for (int m = 0; m < sizedMeshes.Count; m++) {
if (meshVertCount[m] + aSubsets[i].Count < SuperMeshCombiner.MaxVerts) {
found = true;
meshVertCount[m] += aSubsets[i].Count;
sizedMeshes [m].Add(aSubsets[i]);
}
}
// if there's no room, add a new mesh to the end!
if (!found) {
List<Subset> newMesh = new List<Subset>();
newMesh.Add(aSubsets[i]);
meshVertCount.Add(aSubsets[i].Count);
sizedMeshes .Add(newMesh);
}
}
// create a mesh object for each collection of subsets
for (int i = 0; i < sizedMeshes.Count; i++) {
GameObject go = new GameObject("Lightmap_" + aLightmapID + "_mesh_" + i);
MeshFilter mesh = go.AddComponent<MeshFilter >();
MeshRenderer r = go.AddComponent<MeshRenderer>();
mesh.sharedMesh = MergeSubsets(sizedMeshes[i], aLightmapID);
r.sharedMaterials = GetMaterials(sizedMeshes[i], aLightmapID);
r.lightmapIndex = aLightmapID;
go.layer = aParent.layer;
go.transform.parent = aParent.transform;
go.transform.position = Vector3.zero;
go.transform.localScale = Vector3.one;
go.transform.rotation = Quaternion.identity;
}
}
static void AddSubset(ref List<Subset> aSubsets, Mesh aMesh, int aLightmapID, int aMeshSubsetID, Material aMaterial, Matrix4x4 aTransform, Vector4 aLightmapOffset) {
Vector3[] meshVerts = aMesh.vertices;
Vector3[] meshNorms = aMesh.normals;
Vector4[] meshTans = aMesh.tangents;
Vector2[] meshUVs = aMesh.uv;
Color [] meshColors = aMesh.colors;
int [] inds = aMesh.GetIndices( aMeshSubsetID );
#if UNITY_5
Vector2[] meshLightUVs = aMesh.uv2;
#else
Vector2[] meshLightUVs = aMesh.uv1;
#endif
SortedList remapIndices = new SortedList();
List<Vector3> verts = new List<Vector3>();
List<Vector3> norms = new List<Vector3>();
List<Vector2> uvs = new List<Vector2>();
List<Vector2> lights = new List<Vector2>();
List<Vector4> tans = new List<Vector4>();
List<Color> cols = new List<Color> ();
List<int> setInds= new List<int> ();
// gather all mesh data in this subset, and remap the indices to match the new index of each vert.
for (int i = 0; i < inds.Length; ++i) {
int id = inds[i];
int remap = remapIndices.IndexOfKey(id);
if (remap == -1) {
remapIndices.Add(id, verts.Count);
setInds .Add( verts.Count);
verts .Add(aTransform.MultiplyPoint3x4(meshVerts[id]));
norms .Add(aTransform.MultiplyVector (meshNorms[id]));
uvs .Add(meshUVs [id]);
if (meshColors.Length > 0) {
cols.Add(meshColors [id]);
} else {
cols.Add(Color.white);
}
if (meshLightUVs.Length >= meshUVs.Length) {
lights.Add(new Vector2(aLightmapOffset.z, aLightmapOffset.w) + Vector2.Scale(new Vector2(aLightmapOffset.x, aLightmapOffset.y), meshLightUVs[id]));
}
tans.Add(meshTans[id]);
} else {
setInds.Add((int)remapIndices.GetByIndex(remap));
}
}
// find a subset that matches material, lightmap, and has room for this mesh!
int subsetID = -1;
for (int i = 0; i < aSubsets.Count; i+=1) {
if (aSubsets[i].mMaterial == aMaterial && aSubsets[i].mLightmapID == aLightmapID && aSubsets[i].Count+verts.Count < SuperMeshCombiner.MaxVerts) {
subsetID = i;
}
}
// if none was found, add one
if (subsetID == -1) {
Subset s = new Subset();
s.mMaterial = aMaterial;
s.mLightmapID = aLightmapID;
aSubsets.Add(s);
subsetID = aSubsets.Count-1;
}
// fill the subset with the data we just gathered
Subset set = aSubsets[subsetID];
int startID = set.mPoints.Count;
set.mPoints .AddRange(verts );
set.mNormals .AddRange(norms );
set.mColors .AddRange(cols );
set.mUVs .AddRange(uvs );
set.mLightUVs.AddRange(lights);
set.mTangents.AddRange(tans );
for (int i=0; i<setInds.Count; i++) set.mIndices.Add(setInds[i] + startID);
}
static Mesh MergeSubsets(List<Subset> aSubsets, int aLightmapID) {
Mesh result = new Mesh();
Subset resultSubset = new Subset();
List<List<int>> indices = new List<List<int>>();
for (int i = 0; i < aSubsets.Count; ++i) {
if (aSubsets[i].mLightmapID != aLightmapID) continue;
int startID = resultSubset.Count;
resultSubset.Add(aSubsets[i]);
List<int> subIndices = new List<int>();
for (int t = 0; t < aSubsets[i].mIndices.Count; t+=1) {
subIndices.Add(startID + aSubsets[i].mIndices[t]);
}
indices.Add(subIndices);
}
// cap it off if we used that category of data at all!
resultSubset.CheckArrays();
result.vertices = resultSubset.mPoints .ToArray();
result.normals = resultSubset.mNormals .ToArray();
result.uv = resultSubset.mUVs .ToArray();
result.tangents = resultSubset.mTangents.ToArray();
result.colors = resultSubset.mColors .ToArray();
#if UNITY_5
result.uv2 = resultSubset.mLightUVs.ToArray();
#else
result.uv1 = resultSubset.mLightUVs.ToArray();
#endif
result.subMeshCount = aSubsets.Count;
for (int i = 0; i < indices.Count; ++i) {
result.SetIndices(indices[i].ToArray(), MeshTopology.Triangles, i);
}
result.RecalculateBounds();
return result;
}
static Material[] GetMaterials(List<Subset> aSubsets ,int aLightmapID) {
List<Material> result = new List<Material>(aSubsets.Count);
for (int i=0; i<aSubsets.Count; i+=1) {
if (aSubsets[i].mLightmapID == aLightmapID) {
result.Add(aSubsets[i].mMaterial);
}
}
return result.ToArray();
}
static int LightmapCount(List<Subset> aSubsets) {
List<int> lightmaps = new List<int>();
for (int i = 0; i < aSubsets.Count; i+=1) {
if (!lightmaps.Contains(aSubsets[i].mLightmapID))
lightmaps.Add(aSubsets[i].mLightmapID);
}
return lightmaps.Count;
}
static int LightmapID(List<Subset> aSubsets, int aIndex) {
List<int> lightmaps = new List<int>();
for (int i = 0; i < aSubsets.Count; i+=1) {
if (!lightmaps.Contains(aSubsets[i].mLightmapID)) {
if (lightmaps.Count == aIndex) {
return aSubsets[i].mLightmapID;
}
lightmaps.Add(aSubsets[i].mLightmapID);
}
}
return -1;
}
} | Rckdrigo/Emma | Assets/Ferr/SuperCube/Scripts/SuperMeshCombiner.cs | C# | artistic-2.0 | 11,802 | [
30522,
2478,
8499,
13159,
3170,
1025,
2478,
2291,
1012,
6407,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
1031,
5587,
9006,
29513,
3372,
3549,
2226,
1006,
1000,
10768,
12171,
3565,
10841,
4783,
1013,
3565,
7834,
2232,
11506,
2099,
1000... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
---
title: 더 깊은 연구를 위해
date: 03/09/2021
---
“온 하늘이 안식일을 지킨다. 그러나 무관심하고 아무것도 하지 않는 식으로 지키 지 않는다. 이 날에 영혼의 모든 에너지가 일깨워져야 한다. 왜냐하면 우리가 하나님 과 우리 구주 그리스도를 그날 만나는 것이 아닌가? 우리는 그분을 믿음으로 바라볼 수 있다. 그분께서는 모든 영혼을 새롭게 하시고 축복하시고자 갈망하신다”(교회증 언, 6권, 362).
“하나님께 대한 요구는 다른 날에보다 안식일에 한층 더 크다. 그러므로 하나님의 백성들은 그들의 평시의 작업을 떠나서 명상과 예배로 시간을 보내는 것이다. 그들은 다른 날보다도 안식일에 더욱 많은 은총을 하나님께 간구한다. 그들은 특별한 관심을 보여 주시기를 하나님께 요구한다. 그들은 하나님의 가장 훌륭한 축복을 갈망한다. 하나님께서는 이러한 요구 사항들을 들어주시기 전에 안식일이 지나가기를 기다리지 않으신다. 하늘의 사업은 결코 중단되지 않으므로 사람들도 선한 일을 결코 중단해서 는 안 된다. 안식일은 쓸모없는 무위(無爲)의 시간이 되도록 의도되지 않았다. 율법은 주의 안식일에 세속적인 일을 금지하고 있다. 생계를 위한 일은 중지해야 한다. 세속 적인 향락이나 이익을 위한 노동은 그날에는 적법하지 않다. 그러나 하나님께서 당신 의 창조하시는 역사를 쉬시고 안식일에 안식하여 그날을 거룩하게 하신 것처럼 사람 도 그의 일상 생애의 일에서 떠나서 이 거룩한 시간을 건전한 안식과 예배와 거룩한 행위를 위하여 바쳐야 한다”(시대의 소망, 207).
**핵심적인 토의를 위해**
`➊ 환경 문제는 많은 나라에서 뜨거운 정치적 토론의 주제가 되었다. 우 리는 재림 성도로서 어떻게 하면 정치적인 논리와 상관없이 자연을 돌보 는 좋은 청지기가 될 수 있는가?`
`➋ 섬김은 마음에서부터 시작된다. 어떻게 하면 더 활발한 섬김의 정신 을 우리 가운데 조성할 수 있겠는가? 안식일이 어떻게 우리로 하여금 그 러한 믿음을 실천할 기회를 제공하는가?`
`➌ 매 안식일 우리는 모든 인류가 하나님으로부터 창조되었음을 기억하게 된다. 우리는 주변에 있는 사람들을 하나님의 눈으로 바라본다. 안식일을 지키는 것이 어떻게 인종, 민족, 계층, 성별 의 차이에 상관없이 우리 모두가 하나님의 형상에 따라 만들어졌으며, 하나님의 사랑의 대상임 을 기억하게 도와주는가?` | imasaru/sabbath-school-lessons | src/ko/2021-03/10/07.md | Markdown | mit | 2,781 | [
30522,
1011,
1011,
1011,
2516,
1024,
1457,
30008,
100,
1463,
30010,
30021,
29991,
30014,
29994,
30017,
30022,
100,
3058,
1024,
6021,
1013,
5641,
1013,
25682,
1011,
1011,
1011,
1523,
1463,
30011,
30021,
1469,
30006,
29992,
30017,
30022,
29999,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Rails.application.routes.draw do
get 'pages/index'
get 'pages/settings'
get 'pages/terms'
get 'pages/download'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
root 'pages#index'
#POSTS:
post 'pages/uploadFile' => 'pages#uploadFile'
post 'pages/downloadFile' => 'pages#downloadFile'
post 'pages/resetSettings' => 'pages#resetSettings'
post 'pages/configure' => 'pages#configure'
#MATCHES
get 'download' => 'pages#download'
get 'upload' => 'pages#index'
get 'settings'=> 'pages#settings'
get 'terms' => 'pages#terms'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
end
| NigelChen/Dropex | config/routes.rb | Ruby | mit | 2,044 | [
30522,
15168,
1012,
4646,
1012,
5847,
1012,
4009,
2079,
2131,
1005,
5530,
1013,
5950,
1005,
2131,
1005,
5530,
1013,
10906,
1005,
2131,
1005,
5530,
1013,
3408,
1005,
2131,
1005,
5530,
1013,
8816,
1005,
1001,
1996,
9470,
2003,
2241,
2588,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#ifndef HASH_H
#define HASH_H
struct s_sym {
char *name;
struct s_var *value;
struct s_sym *next;
};
struct s_hash {
int size;
bool closure;
struct s_hash *outer;
struct s_sym **sym;
};
typedef struct s_hash HASH;
typedef struct s_sym SYM;
struct s_iter {
HASH* hash;
int index;
SYM* sp;
};
typedef struct s_iter ITER;
HASH* new_env(int,HASH*,VAR*,VAR*);
/* static int hashed(HASH*,char*); */
/* static SYM* lookup(HASH*,char*); */
HASH* env_put(HASH*,char*,VAR*);
VAR* env_get(HASH*,char*);
void env_dump(HASH*);
void env_free(HASH*);
ITER* env_iter_init(HASH*);
SYM* env_next(ITER*);
HASH* env_del(HASH*,char*);
#endif
| mpwillson/mal | myc/env.h | C | mpl-2.0 | 663 | [
30522,
1001,
2065,
13629,
2546,
23325,
1035,
1044,
1001,
9375,
23325,
1035,
1044,
2358,
6820,
6593,
1055,
1035,
25353,
2213,
1063,
25869,
1008,
2171,
1025,
2358,
6820,
6593,
1055,
1035,
13075,
1008,
3643,
1025,
2358,
6820,
6593,
1055,
1035,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/*
Gibbon, Flexible & Open School System
Copyright (C) 2010, Ross Parker
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 3 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, see <http://www.gnu.org/licenses/>.
*/
use Gibbon\Module\Credentials\CredentialsCredentialGateway;
include '../../gibbon.php';
$gibbonPersonID = $_GET['gibbonPersonID'] ?? '';
$search = $_GET['search'] ?? '';
$allStudents = $_GET['allStudents'] ?? '';
$credentialsCredentialID = $_GET['credentialsCredentialID'] ?? '';
$URL = $session->get('absoluteURL').'/index.php?q=/modules/'.getModuleName($_POST['address'])."/credentials_student_delete.php&gibbonPersonID=$gibbonPersonID&search=$search&allStudents=$allStudents&credentialsCredentialID=".$credentialsCredentialID;
$URLDelete = $session->get('absoluteURL').'/index.php?q=/modules/'.getModuleName($_POST['address'])."/credentials_student.php&gibbonPersonID=$gibbonPersonID&search=$search&allStudents=$allStudents";
if (isActionAccessible($guid, $connection2, '/modules/Credentials/credentials_student_delete.php') == false) {
//Fail 0
$URL .= '&return=error0';
header("Location: {$URL}");
} else {
//Proceed!
if (($credentialsCredentialID == '') or ( $gibbonPersonID == '')) {
echo __m('Fatal error loading this page!');
} else {
$credentialsCredentialGateway = $container->get(CredentialsCredentialGateway::class);
$credential = $credentialsCredentialGateway->getById($credentialsCredentialID);
if (!$credential) {
//Fail 2
$URL .= '&return=error2';
header("Location: {$URL}");
} else {
//Write to database
$credentialsCredentialGateway->delete($credentialsCredentialID);
//Success 0
$URLDelete = $URLDelete.'&return=success0';
header("Location: {$URLDelete}");
}
}
}
| GibbonEdu/module-credentials | Credentials/credentials_student_deleteProcess.php | PHP | gpl-3.0 | 2,382 | [
30522,
1026,
1029,
25718,
1013,
1008,
21025,
27684,
1010,
12379,
1004,
2330,
2082,
2291,
9385,
1006,
1039,
1007,
2230,
1010,
5811,
6262,
2023,
2565,
2003,
2489,
4007,
1024,
2017,
2064,
2417,
2923,
3089,
8569,
2618,
2009,
1998,
1013,
2030,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import { EventBus } from '../wires/event_bus';
class EventStore {
constructor(storeAdapter) {
this.adapter = storeAdapter;
}
appendToStream(streamId, expectedVersion, events) {
if (events.length === 0) {
return;
}
events.forEach(function(event) {
this.adapter.append(streamId, expectedVersion, event);
EventBus.publish('domain.'+streamId+'.'+event.name, event);
expectedVersion++;
}, this);
}
loadEventStream(streamId) {
var version = 0,
events = [],
records = this.readEventStream(streamId, 0, null);
records.forEach(function(r) {
version = r.version;
events.push(r.data);
});
return new EventStream(streamId, events, version);
}
readEventStream(streamId, skipEvents, maxCount) {
return this.adapter.read(streamId, skipEvents, maxCount);
}
}
class EventStream {
constructor(streamId, events, version) {
this.streamId = streamId;
this.events = events;
this.version = version;
}
}
export { EventStore, EventStream }; | goldoraf/osef | src/storage/event_store.js | JavaScript | mit | 1,162 | [
30522,
12324,
1063,
2724,
8286,
1065,
2013,
1005,
1012,
1012,
1013,
14666,
1013,
2724,
1035,
3902,
1005,
1025,
2465,
2824,
19277,
1063,
9570,
2953,
1006,
3573,
8447,
13876,
2121,
1007,
1063,
2023,
1012,
15581,
2121,
1027,
3573,
8447,
13876,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
script.skin.helper.service
Helper service and scripts for Kodi skins
mainmodule.py
All script methods provided by the addon
'''
import xbmc
import xbmcvfs
import xbmcgui
import xbmcaddon
from skinsettings import SkinSettings
from simplecache import SimpleCache
from utils import log_msg, KODI_VERSION
from utils import log_exception, get_current_content_type, ADDON_ID, recursive_delete_dir
from dialogselect import DialogSelect
from xml.dom.minidom import parse
from metadatautils import KodiDb, process_method_on_list
import urlparse
import sys
class MainModule:
'''mainmodule provides the script methods for the skinhelper addon'''
def __init__(self):
'''Initialization and main code run'''
self.win = xbmcgui.Window(10000)
self.addon = xbmcaddon.Addon(ADDON_ID)
self.kodidb = KodiDb()
self.cache = SimpleCache()
self.params = self.get_params()
log_msg("MainModule called with parameters: %s" % self.params)
action = self.params.get("action", "")
# launch module for action provided by this script
try:
getattr(self, action)()
except AttributeError:
log_exception(__name__, "No such action: %s" % action)
except Exception as exc:
log_exception(__name__, exc)
finally:
xbmc.executebuiltin("dialog.Close(busydialog)")
# do cleanup
self.close()
def close(self):
'''Cleanup Kodi Cpython instances on exit'''
self.cache.close()
del self.win
del self.addon
del self.kodidb
log_msg("MainModule exited")
@classmethod
def get_params(self):
'''extract the params from the called script path'''
params = {}
for arg in sys.argv[1:]:
paramname = arg.split('=')[0]
paramvalue = arg.replace(paramname + "=", "")
paramname = paramname.lower()
if paramname == "action":
paramvalue = paramvalue.lower()
params[paramname] = paramvalue
return params
def deprecated_method(self, newaddon):
'''
used when one of the deprecated methods is called
print warning in log and call the external script with the same parameters
'''
action = self.params.get("action")
log_msg("Deprecated method: %s. Please call %s directly" % (action, newaddon), xbmc.LOGWARNING)
paramstring = ""
for key, value in self.params.iteritems():
paramstring += ",%s=%s" % (key, value)
if xbmc.getCondVisibility("System.HasAddon(%s)" % newaddon):
xbmc.executebuiltin("RunAddon(%s%s)" % (newaddon, paramstring))
else:
# trigger install of the addon
if KODI_VERSION > 16:
xbmc.executebuiltin("InstallAddon(%s)" % newaddon)
else:
xbmc.executebuiltin("RunPlugin(plugin://%s)" % newaddon)
@staticmethod
def musicsearch():
'''helper to go directly to music search dialog'''
xbmc.executebuiltin("ActivateWindow(Music)")
xbmc.executebuiltin("SendClick(8)")
def setview(self):
'''sets the selected viewmode for the container'''
xbmc.executebuiltin("ActivateWindow(busydialog)")
content_type = get_current_content_type()
if not content_type:
content_type = "files"
current_view = xbmc.getInfoLabel("Container.Viewmode").decode("utf-8")
view_id, view_label = self.selectview(content_type, current_view)
current_forced_view = xbmc.getInfoLabel("Skin.String(SkinHelper.ForcedViews.%s)" % content_type)
if view_id is not None:
# also store forced view
if (content_type and current_forced_view and current_forced_view != "None" and
xbmc.getCondVisibility("Skin.HasSetting(SkinHelper.ForcedViews.Enabled)")):
xbmc.executebuiltin("Skin.SetString(SkinHelper.ForcedViews.%s,%s)" % (content_type, view_id))
xbmc.executebuiltin("Skin.SetString(SkinHelper.ForcedViews.%s.label,%s)" % (content_type, view_label))
self.win.setProperty("SkinHelper.ForcedView", view_id)
if not xbmc.getCondVisibility("Control.HasFocus(%s)" % current_forced_view):
xbmc.sleep(100)
xbmc.executebuiltin("Container.SetViewMode(%s)" % view_id)
xbmc.executebuiltin("SetFocus(%s)" % view_id)
else:
self.win.clearProperty("SkinHelper.ForcedView")
# set view
xbmc.executebuiltin("Container.SetViewMode(%s)" % view_id)
def selectview(self, content_type="other", current_view=None, display_none=False):
'''reads skinfile with all views to present a dialog to choose from'''
cur_view_select_id = None
label = ""
all_views = []
if display_none:
listitem = xbmcgui.ListItem(label="None")
listitem.setProperty("id", "None")
all_views.append(listitem)
# read the special skin views file
views_file = xbmc.translatePath('special://skin/extras/views.xml').decode("utf-8")
if xbmcvfs.exists(views_file):
doc = parse(views_file)
listing = doc.documentElement.getElementsByTagName('view')
itemcount = 0
for view in listing:
label = xbmc.getLocalizedString(int(view.attributes['languageid'].nodeValue))
viewid = view.attributes['value'].nodeValue
mediatypes = view.attributes['type'].nodeValue.lower().split(",")
if label.lower() == current_view.lower() or viewid == current_view:
cur_view_select_id = itemcount
if display_none:
cur_view_select_id += 1
if (("all" in mediatypes or content_type.lower() in mediatypes) and
(not "!" + content_type.lower() in mediatypes) and not
xbmc.getCondVisibility("Skin.HasSetting(SkinHelper.view.Disabled.%s)" % viewid)):
image = "special://skin/extras/viewthumbs/%s.jpg" % viewid
listitem = xbmcgui.ListItem(label=label, iconImage=image)
listitem.setProperty("viewid", viewid)
listitem.setProperty("icon", image)
all_views.append(listitem)
itemcount += 1
dialog = DialogSelect("DialogSelect.xml", "", listing=all_views,
windowtitle=self.addon.getLocalizedString(32012), richlayout=True)
dialog.autofocus_id = cur_view_select_id
dialog.doModal()
result = dialog.result
del dialog
if result:
viewid = result.getProperty("viewid")
label = result.getLabel().decode("utf-8")
return (viewid, label)
else:
return (None, None)
# pylint: disable-msg=too-many-local-variables
def enableviews(self):
'''show select dialog to enable/disable views'''
all_views = []
views_file = xbmc.translatePath('special://skin/extras/views.xml').decode("utf-8")
richlayout = self.params.get("richlayout", "") == "true"
if xbmcvfs.exists(views_file):
doc = parse(views_file)
listing = doc.documentElement.getElementsByTagName('view')
for view in listing:
view_id = view.attributes['value'].nodeValue
label = xbmc.getLocalizedString(int(view.attributes['languageid'].nodeValue))
desc = label + " (" + str(view_id) + ")"
image = "special://skin/extras/viewthumbs/%s.jpg" % view_id
listitem = xbmcgui.ListItem(label=label, label2=desc, iconImage=image)
listitem.setProperty("viewid", view_id)
if not xbmc.getCondVisibility("Skin.HasSetting(SkinHelper.view.Disabled.%s)" % view_id):
listitem.select(selected=True)
excludefromdisable = False
try:
excludefromdisable = view.attributes['excludefromdisable'].nodeValue == "true"
except Exception:
pass
if not excludefromdisable:
all_views.append(listitem)
dialog = DialogSelect(
"DialogSelect.xml",
"",
listing=all_views,
windowtitle=self.addon.getLocalizedString(32013),
multiselect=True, richlayout=richlayout)
dialog.doModal()
result = dialog.result
del dialog
if result:
for item in result:
view_id = item.getProperty("viewid")
if item.isSelected():
# view is enabled
xbmc.executebuiltin("Skin.Reset(SkinHelper.view.Disabled.%s)" % view_id)
else:
# view is disabled
xbmc.executebuiltin("Skin.SetBool(SkinHelper.view.Disabled.%s)" % view_id)
# pylint: enable-msg=too-many-local-variables
def setforcedview(self):
'''helper that sets a forced view for a specific content type'''
content_type = self.params.get("contenttype")
if content_type:
current_view = xbmc.getInfoLabel("Skin.String(SkinHelper.ForcedViews.%s)" % content_type)
if not current_view:
current_view = "0"
view_id, view_label = self.selectview(content_type, current_view, True)
if view_id or view_label:
xbmc.executebuiltin("Skin.SetString(SkinHelper.ForcedViews.%s,%s)" % (content_type, view_id))
xbmc.executebuiltin("Skin.SetString(SkinHelper.ForcedViews.%s.label,%s)" % (content_type, view_label))
@staticmethod
def get_youtube_listing(searchquery):
'''get items from youtube plugin by query'''
lib_path = u"plugin://plugin.video.youtube/kodion/search/query/?q=%s" % searchquery
return KodiDb().files(lib_path)
def searchyoutube(self):
'''helper to search youtube for the given title'''
xbmc.executebuiltin("ActivateWindow(busydialog)")
title = self.params.get("title", "")
window_header = self.params.get("header", "")
results = []
for media in self.get_youtube_listing(title):
if not media["filetype"] == "directory":
label = media["label"]
label2 = media["plot"]
image = ""
if media.get('art'):
if media['art'].get('thumb'):
image = (media['art']['thumb'])
listitem = xbmcgui.ListItem(label=label, label2=label2, iconImage=image)
listitem.setProperty("path", media["file"])
results.append(listitem)
# finished lookup - display listing with results
xbmc.executebuiltin("dialog.Close(busydialog)")
dialog = DialogSelect("DialogSelect.xml", "", listing=results, windowtitle=window_header,
multiselect=False, richlayout=True)
dialog.doModal()
result = dialog.result
del dialog
if result:
if xbmc.getCondVisibility(
"Window.IsActive(script-skin_helper_service-CustomInfo.xml) | "
"Window.IsActive(movieinformation)"):
xbmc.executebuiltin("Dialog.Close(movieinformation)")
xbmc.executebuiltin("Dialog.Close(script-skin_helper_service-CustomInfo.xml)")
xbmc.sleep(1000)
xbmc.executebuiltin('PlayMedia("%s")' % result.getProperty("path"))
del result
def getcastmedia(self):
'''helper to show a dialog with all media for a specific actor'''
xbmc.executebuiltin("ActivateWindow(busydialog)")
name = self.params.get("name", "")
window_header = self.params.get("name", "")
results = []
items = self.kodidb.castmedia(name)
items = process_method_on_list(self.kodidb.prepare_listitem, items)
for item in items:
if item["file"].startswith("videodb://"):
item["file"] = "ActivateWindow(Videos,%s,return)" % item["file"]
else:
item["file"] = 'PlayMedia("%s")' % item["file"]
results.append(self.kodidb.create_listitem(item, False))
# finished lookup - display listing with results
xbmc.executebuiltin("dialog.Close(busydialog)")
dialog = DialogSelect("DialogSelect.xml", "", listing=results, windowtitle=window_header, richlayout=True)
dialog.doModal()
result = dialog.result
del dialog
if result:
while xbmc.getCondVisibility("System.HasModalDialog"):
xbmc.executebuiltin("Action(Back)")
xbmc.sleep(300)
xbmc.executebuiltin(result.getfilename())
del result
def setfocus(self):
'''helper to set focus on a list or control'''
control = self.params.get("control")
fallback = self.params.get("fallback")
position = self.params.get("position", "0")
relativeposition = self.params.get("relativeposition")
if relativeposition:
position = int(relativeposition) - 1
count = 0
if control:
while not xbmc.getCondVisibility("Control.HasFocus(%s)" % control):
if xbmc.getCondVisibility("Window.IsActive(busydialog)"):
xbmc.sleep(150)
continue
elif count == 20 or (xbmc.getCondVisibility(
"!Control.IsVisible(%s) | "
"!IntegerGreaterThan(Container(%s).NumItems,0)" % (control, control))):
if fallback:
xbmc.executebuiltin("Control.SetFocus(%s)" % fallback)
break
else:
xbmc.executebuiltin("Control.SetFocus(%s,%s)" % (control, position))
xbmc.sleep(50)
count += 1
def setwidgetcontainer(self):
'''helper that reports the current selected widget container/control'''
controls = self.params.get("controls", "").split("-")
if controls:
xbmc.sleep(50)
for i in range(10):
for control in controls:
if xbmc.getCondVisibility("Control.IsVisible(%s) + IntegerGreaterThan(Container(%s).NumItems,0)"
% (control, control)):
self.win.setProperty("SkinHelper.WidgetContainer", control)
return
xbmc.sleep(50)
self.win.clearProperty("SkinHelper.WidgetContainer")
def saveskinimage(self):
'''let the user select an image and save it to addon_data for easy backup'''
skinstring = self.params.get("skinstring", "")
allow_multi = self.params.get("multi", "") == "true"
header = self.params.get("header", "")
value = SkinSettings().save_skin_image(skinstring, allow_multi, header)
if value:
xbmc.executebuiltin("Skin.SetString(%s,%s)" % (skinstring.encode("utf-8"), value.encode("utf-8")))
@staticmethod
def checkskinsettings():
'''performs check of all default skin settings and labels'''
SkinSettings().correct_skin_settings()
def setskinsetting(self):
'''allows the user to set a skin setting with a select dialog'''
setting = self.params.get("setting", "")
org_id = self.params.get("id", "")
if "$" in org_id:
org_id = xbmc.getInfoLabel(org_id).decode("utf-8")
header = self.params.get("header", "")
SkinSettings().set_skin_setting(setting=setting, window_header=header, original_id=org_id)
def setskinconstant(self):
'''allows the user to set a skin constant with a select dialog'''
setting = self.params.get("setting", "")
value = self.params.get("value", "")
header = self.params.get("header", "")
SkinSettings().set_skin_constant(setting, header, value)
def setskinconstants(self):
'''allows the skinner to set multiple skin constants'''
settings = self.params.get("settings", "").split("|")
values = self.params.get("values", "").split("|")
SkinSettings().set_skin_constants(settings, values)
def setskinshortcutsproperty(self):
'''allows the user to make a setting for skinshortcuts using the special skinsettings dialogs'''
setting = self.params.get("setting", "")
prop = self.params.get("property", "")
header = self.params.get("header", "")
SkinSettings().set_skinshortcuts_property(setting, header, prop)
def togglekodisetting(self):
'''toggle kodi setting'''
settingname = self.params.get("setting", "")
cur_value = xbmc.getCondVisibility("system.getbool(%s)" % settingname)
if cur_value:
new_value = "false"
else:
new_value = "true"
xbmc.executeJSONRPC(
'{"jsonrpc":"2.0", "id":1, "method":"Settings.SetSettingValue","params":{"setting":"%s","value":%s}}' %
(settingname, new_value))
def setkodisetting(self):
'''set kodi setting'''
settingname = self.params.get("setting", "")
value = self.params.get("value", "")
is_int = False
try:
valueint = int(value)
is_int = True
del valueint
except Exception:
pass
if value.lower() == "true":
value = 'true'
elif value.lower() == "false":
value = 'false'
elif is_int:
value = '"%s"' % value
xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.SetSettingValue",\
"params":{"setting":"%s","value":%s}}' % (settingname, value))
def playtrailer(self):
'''auto play windowed trailer inside video listing'''
if not xbmc.getCondVisibility("Player.HasMedia | Container.Scrolling | Container.OnNext | "
"Container.OnPrevious | !IsEmpty(Window(Home).Property(traileractionbusy))"):
self.win.setProperty("traileractionbusy", "traileractionbusy")
widget_container = self.params.get("widgetcontainer", "")
trailer_mode = self.params.get("mode", "").replace("auto_", "")
allow_youtube = self.params.get("youtube", "") == "true"
if not trailer_mode:
trailer_mode = "windowed"
if widget_container:
widget_container_prefix = "Container(%s)." % widget_container
else:
widget_container_prefix = ""
li_title = xbmc.getInfoLabel("%sListItem.Title" % widget_container_prefix).decode('utf-8')
li_trailer = xbmc.getInfoLabel("%sListItem.Trailer" % widget_container_prefix).decode('utf-8')
if not li_trailer and allow_youtube:
youtube_result = self.get_youtube_listing("%s Trailer" % li_title)
if youtube_result:
li_trailer = youtube_result[0].get("file")
# always wait a bit to prevent trailer start playing when we're scrolling the list
xbmc.Monitor().waitForAbort(3)
if li_trailer and (li_title == xbmc.getInfoLabel("%sListItem.Title"
% widget_container_prefix).decode('utf-8')):
if trailer_mode == "fullscreen" and li_trailer:
xbmc.executebuiltin('PlayMedia("%s")' % li_trailer)
else:
xbmc.executebuiltin('PlayMedia("%s",1)' % li_trailer)
self.win.setProperty("TrailerPlaying", trailer_mode)
self.win.clearProperty("traileractionbusy")
def colorpicker(self):
'''legacy'''
self.deprecated_method("script.skin.helper.colorpicker")
def backup(self):
'''legacy'''
self.deprecated_method("script.skin.helper.skinbackup")
def restore(self):
'''legacy'''
self.deprecated_method("script.skin.helper.skinbackup")
def reset(self):
'''legacy'''
self.deprecated_method("script.skin.helper.skinbackup")
def colorthemes(self):
'''legacy'''
self.deprecated_method("script.skin.helper.skinbackup")
def createcolortheme(self):
'''legacy'''
self.deprecated_method("script.skin.helper.skinbackup")
def restorecolortheme(self):
'''legacy'''
self.deprecated_method("script.skin.helper.skinbackup")
def conditionalbackgrounds(self):
'''legacy'''
self.deprecated_method("script.skin.helper.backgrounds")
def splashscreen(self):
'''helper to show a user defined splashscreen in the skin'''
import time
splashfile = self.params.get("file", "")
duration = int(self.params.get("duration", 5))
if (splashfile.lower().endswith("jpg") or splashfile.lower().endswith("gif") or
splashfile.lower().endswith("png") or splashfile.lower().endswith("tiff")):
# this is an image file
self.win.setProperty("SkinHelper.SplashScreen", splashfile)
# for images we just wait for X seconds to close the splash again
start_time = time.time()
while (time.time() - start_time) <= duration:
xbmc.sleep(500)
else:
# for video or audio we have to wait for the player to finish...
xbmc.Player().play(splashfile, windowed=True)
xbmc.sleep(500)
while xbmc.getCondVisibility("Player.HasMedia"):
xbmc.sleep(150)
# replace startup window with home
startupwindow = xbmc.getInfoLabel("System.StartupWindow")
xbmc.executebuiltin("ReplaceWindow(%s)" % startupwindow)
autostart_playlist = xbmc.getInfoLabel("$ESCINFO[Skin.String(autostart_playlist)]")
if autostart_playlist:
xbmc.executebuiltin("PlayMedia(%s)" % autostart_playlist)
def videosearch(self):
'''show the special search dialog'''
xbmc.executebuiltin("ActivateWindow(busydialog)")
from resources.lib.searchdialog import SearchDialog
search_dialog = SearchDialog("script-skin_helper_service-CustomSearch.xml",
self.addon.getAddonInfo('path').decode("utf-8"), "Default", "1080i")
search_dialog.doModal()
del search_dialog
def showinfo(self):
'''shows our special videoinfo dialog'''
dbid = self.params.get("dbid", "")
dbtype = self.params.get("dbtype", "")
from infodialog import show_infodialog
show_infodialog(dbid, dbtype)
def deletedir(self):
'''helper to delete a directory, input can be normal filesystem path or vfs'''
del_path = self.params.get("path")
if del_path:
ret = xbmcgui.Dialog().yesno(heading=xbmc.getLocalizedString(122),
line1=u"%s[CR]%s" % (xbmc.getLocalizedString(125), del_path))
if ret:
success = recursive_delete_dir(del_path)
if success:
xbmcgui.Dialog().ok(heading=xbmc.getLocalizedString(19179),
line1=self.addon.getLocalizedString(32014))
else:
xbmcgui.Dialog().ok(heading=xbmc.getLocalizedString(16205),
line1=xbmc.getLocalizedString(32015))
def overlaytexture(self):
'''legacy: helper to let the user choose a background overlay from a skin defined folder'''
skinstring = self.params.get("skinstring", "BackgroundOverlayTexture")
self.params["skinstring"] = skinstring
self.params["resourceaddon"] = "resource.images.backgroundoverlays"
self.params["customfolder"] = "special://skin/extras/bgoverlays/"
self.params["allowmulti"] = "false"
self.params["header"] = self.addon.getLocalizedString(32002)
self.selectimage()
def busytexture(self):
'''legacy: helper which lets the user select a busy spinner from predefined spinners in the skin'''
skinstring = self.params.get("skinstring", "SkinHelper.SpinnerTexture")
self.params["skinstring"] = skinstring
self.params["resourceaddon"] = "resource.images.busyspinners"
self.params["customfolder"] = "special://skin/extras/busy_spinners/"
self.params["allowmulti"] = "true"
self.params["header"] = self.addon.getLocalizedString(32006)
self.selectimage()
def selectimage(self):
'''helper which lets the user select an image or imagepath from resourceaddons or custom path'''
skinsettings = SkinSettings()
skinstring = self.params.get("skinstring", "")
skinshortcutsprop = self.params.get("skinshortcutsproperty", "")
current_value = self.params.get("currentvalue", "")
resource_addon = self.params.get("resourceaddon", "")
allow_multi = self.params.get("allowmulti", "false") == "true"
windowheader = self.params.get("header", "")
skinhelper_backgrounds = self.params.get("skinhelperbackgrounds", "false") == "true"
label, value = skinsettings.select_image(
skinstring, allow_multi=allow_multi, windowheader=windowheader, resource_addon=resource_addon,
skinhelper_backgrounds=skinhelper_backgrounds, current_value=current_value)
if label:
if skinshortcutsprop:
# write value to skinshortcuts prop
from skinshortcuts import set_skinshortcuts_property
set_skinshortcuts_property(skinshortcutsprop, value, label)
else:
# write the values to skin strings
if value.startswith("$INFO"):
# we got an dynamic image from window property
skinsettings.set_skin_variable(skinstring, value)
value = "$VAR[%s]" % skinstring
skinstring = skinstring.encode("utf-8")
label = label.encode("utf-8")
xbmc.executebuiltin("Skin.SetString(%s.label,%s)" % (skinstring, label))
xbmc.executebuiltin("Skin.SetString(%s.name,%s)" % (skinstring, label))
xbmc.executebuiltin("Skin.SetString(%s,%s)" % (skinstring, value))
xbmc.executebuiltin("Skin.SetString(%s.path,%s)" % (skinstring, value))
del skinsettings
def dialogok(self):
'''helper to show an OK dialog with a message'''
headertxt = self.params.get("header")
bodytxt = self.params.get("message")
if bodytxt.startswith(" "):
bodytxt = bodytxt[1:]
if headertxt.startswith(" "):
headertxt = headertxt[1:]
dialog = xbmcgui.Dialog()
dialog.ok(heading=headertxt, line1=bodytxt)
del dialog
def dialogyesno(self):
'''helper to show a YES/NO dialog with a message'''
headertxt = self.params.get("header")
bodytxt = self.params.get("message")
yesactions = self.params.get("yesaction", "").split("|")
noactions = self.params.get("noaction", "").split("|")
if bodytxt.startswith(" "):
bodytxt = bodytxt[1:]
if headertxt.startswith(" "):
headertxt = headertxt[1:]
if xbmcgui.Dialog().yesno(heading=headertxt, line1=bodytxt):
for action in yesactions:
xbmc.executebuiltin(action.encode("utf-8"))
else:
for action in noactions:
xbmc.executebuiltin(action.encode("utf-8"))
def textviewer(self):
'''helper to show a textviewer dialog with a message'''
headertxt = self.params.get("header", "")
bodytxt = self.params.get("message", "")
if bodytxt.startswith(" "):
bodytxt = bodytxt[1:]
if headertxt.startswith(" "):
headertxt = headertxt[1:]
xbmcgui.Dialog().textviewer(headertxt, bodytxt)
def fileexists(self):
'''helper to let the skinner check if a file exists
and write the outcome to a window prop or skinstring'''
filename = self.params.get("file")
skinstring = self.params.get("skinstring")
windowprop = self.params.get("winprop")
if xbmcvfs.exists(filename):
if windowprop:
self.win.setProperty(windowprop, "exists")
if skinstring:
xbmc.executebuiltin("Skin.SetString(%s,exists)" % skinstring)
else:
if windowprop:
self.win.clearProperty(windowprop)
if skinstring:
xbmc.executebuiltin("Skin.Reset(%s)" % skinstring)
def stripstring(self):
'''helper to allow the skinner to strip a string and write results to a skin string'''
splitchar = self.params.get("splitchar")
if splitchar.upper() == "[SPACE]":
splitchar = " "
skinstring = self.params.get("string")
if not skinstring:
skinstring = self.params.get("skinstring")
output = self.params.get("output")
index = self.params.get("index", 0)
skinstring = skinstring.split(splitchar)[int(index)]
self.win.setProperty(output, skinstring)
def getfilename(self, filename=""):
'''helper to display a sanitized filename in the vidoeinfo dialog'''
output = self.params.get("output")
if not filename:
filename = xbmc.getInfoLabel("ListItem.FileNameAndPath")
if not filename:
filename = xbmc.getInfoLabel("ListItem.FileName")
if "filename=" in filename:
url_params = dict(urlparse.parse_qsl(filename))
filename = url_params.get("filename")
self.win.setProperty(output, filename)
def getplayerfilename(self):
'''helper to parse the filename from a plugin (e.g. emby) filename'''
filename = xbmc.getInfoLabel("Player.FileNameAndPath")
if not filename:
filename = xbmc.getInfoLabel("Player.FileName")
self.getfilename(filename)
def getpercentage(self):
'''helper to calculate the percentage of 2 numbers and write results to a skinstring'''
total = int(params.get("total"))
count = int(params.get("count"))
roundsteps = self.params.get("roundsteps")
skinstring = self.params.get("skinstring")
percentage = int(round((1.0 * count / total) * 100))
if roundsteps:
roundsteps = int(roundsteps)
percentage = percentage + (roundsteps - percentage) % roundsteps
xbmc.executebuiltin("Skin.SetString(%s,%s)" % (skinstring, percentage))
def setresourceaddon(self):
'''helper to let the user choose a resource addon and set that as skin string'''
from resourceaddons import setresourceaddon
addontype = self.params.get("addontype", "")
skinstring = self.params.get("skinstring", "")
setresourceaddon(addontype, skinstring)
def checkresourceaddons(self):
'''allow the skinner to perform a basic check if some required resource addons are available'''
from resourceaddons import checkresourceaddons
addonslist = self.params.get("addonslist", [])
if addonslist:
addonslist = addonslist.split("|")
checkresourceaddons(addonslist)
| mrquim/mrquimrepo | script.skin.helper.service/resources/lib/main_module.py | Python | gpl-2.0 | 31,819 | [
30522,
1001,
999,
1013,
2149,
2099,
1013,
8026,
1013,
18750,
1001,
1011,
1008,
1011,
16861,
1024,
21183,
2546,
1011,
1022,
1011,
1008,
1011,
1005,
1005,
1005,
5896,
1012,
3096,
1012,
2393,
2121,
1012,
2326,
2393,
2121,
2326,
1998,
14546,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 2013 Mirantis, 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.
**/
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
var staticDir = grunt.option('static-dir') || '/tmp/static_compressed';
grunt.initConfig({
pkg: pkg,
requirejs: {
compile: {
options: {
baseUrl: '.',
appDir: 'static',
dir: staticDir,
mainConfigFile: 'static/js/main.js',
waitSeconds: 60,
optimize: 'uglify2',
optimizeCss: 'standard',
pragmas: {
compressed: true
},
map: {
'*': {
'css': 'require-css'
}
},
modules: [
{
name: 'js/main',
exclude: ['css/normalize']
}
]
}
}
},
jslint: {
client: {
src: [
'static/js/**/*.js',
'!static/js/libs/**',
'!static/js/expression_parser.js'
],
directives: {
predef: ['requirejs', 'require', 'define', 'app', 'Backbone', '$', '_'],
ass: true,
browser: true,
unparam: true,
nomen: true,
eqeq: true,
vars: true,
white: true,
es5: false
}
}
},
less: {
all: {
src: 'static/css/styles.less',
dest: 'static/css/styles.css',
}
},
bower: {
install: {
options: {
//set install to true to load Bower packages from inet
install: true,
targetDir: 'static/js/libs/bower',
verbose: true,
cleanTargetDir: false,
cleanBowerDir: true,
layout: "byComponent",
bowerOptions: {
production: true,
install: '--offline'
}
}
}
},
clean: {
trim: {
expand: true,
cwd: staticDir,
src: [
'**/*.js',
'!js/main.js',
'!js/libs/bower/requirejs/js/require.js',
'**/*.css',
'**/*.less',
'!css/styles.css',
'templates',
'i18n'
]
},
options: {
force: true
}
},
cleanempty: {
trim: {
expand: true,
cwd: staticDir,
src: ['**']
},
options: {
files: false,
force: true
}
},
replace: {
sha: {
src: 'static/index.html',
dest: staticDir + '/',
replacements: [{
from: '__COMMIT_SHA__',
to: function() {
return grunt.config.get('meta.revision');
}
}]
}
},
revision: {
options: {
short: false
}
},
jison: {
target : {
src: 'static/config_expression.jison',
dest: 'static/js/expression_parser.js',
options: {
moduleType: 'js'
}
}
}
});
Object.keys(pkg.devDependencies)
.filter(function(npmTaskName) { return npmTaskName.indexOf('grunt-') === 0; })
.forEach(grunt.loadNpmTasks.bind(grunt));
grunt.registerTask('trimstatic', ['clean', 'cleanempty']);
grunt.registerTask('build', ['bower', 'less', 'requirejs', 'trimstatic', 'revision', 'replace']);
grunt.registerTask('default', ['build']);
grunt.task.loadTasks('grunt');
};
| koder-ua/nailgun-fcert | nailgun/Gruntfile.js | JavaScript | apache-2.0 | 4,971 | [
30522,
1013,
1008,
1008,
9385,
2286,
18062,
16778,
2015,
1010,
4297,
1012,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
2017,
2089,
1008,
2025,
2224,
2023,
5371,
3272,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
SignVerifyMessageDialog::SignVerifyMessageDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SignVerifyMessageDialog),
model(0)
{
ui->setupUi(this);
#if (QT_VERSION >= 0x040700)
/* Do not move this to the XML file, Qt before 4.7 will choke on it */
ui->addressIn_SM->setPlaceholderText(tr("Enter a Synapse address (e.g. XsyikK1pALjkLwYTnJSJMu2VHUmP5nJWfR)"));
ui->signatureOut_SM->setPlaceholderText(tr("Click \"Sign Message\" to generate signature"));
ui->addressIn_VM->setPlaceholderText(tr("Enter a Synapse address (e.g. XsyikK1pALjkLwYTnJSJMu2VHUmP5nJWfR)"));
ui->signatureIn_VM->setPlaceholderText(tr("Enter Synapse signature"));
#endif
GUIUtil::setupAddressWidget(ui->addressIn_SM, this);
GUIUtil::setupAddressWidget(ui->addressIn_VM, this);
ui->addressIn_SM->installEventFilter(this);
ui->messageIn_SM->installEventFilter(this);
ui->signatureOut_SM->installEventFilter(this);
ui->addressIn_VM->installEventFilter(this);
ui->messageIn_VM->installEventFilter(this);
ui->signatureIn_VM->installEventFilter(this);
ui->signatureOut_SM->setFont(GUIUtil::bitcoinAddressFont());
ui->signatureIn_VM->setFont(GUIUtil::bitcoinAddressFont());
}
SignVerifyMessageDialog::~SignVerifyMessageDialog()
{
delete ui;
}
void SignVerifyMessageDialog::setModel(WalletModel *model)
{
this->model = model;
}
void SignVerifyMessageDialog::setAddress_SM(QString address)
{
ui->addressIn_SM->setText(address);
ui->messageIn_SM->setFocus();
}
void SignVerifyMessageDialog::setAddress_VM(QString address)
{
ui->addressIn_VM->setText(address);
ui->messageIn_VM->setFocus();
}
void SignVerifyMessageDialog::showTab_SM(bool fShow)
{
ui->tabWidget->setCurrentIndex(0);
if (fShow)
this->show();
}
void SignVerifyMessageDialog::showTab_VM(bool fShow)
{
ui->tabWidget->setCurrentIndex(1);
if (fShow)
this->show();
}
void SignVerifyMessageDialog::on_addressBookButton_SM_clicked()
{
if (model && model->getAddressTableModel())
{
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::ReceivingTab, this);
dlg.setModel(model->getAddressTableModel());
if (dlg.exec())
{
setAddress_SM(dlg.getReturnValue());
}
}
}
void SignVerifyMessageDialog::on_pasteButton_SM_clicked()
{
setAddress_SM(QApplication::clipboard()->text());
}
void SignVerifyMessageDialog::on_signMessageButton_SM_clicked()
{
/* Clear old signature to ensure users don't get confused on error with an old signature displayed */
ui->signatureOut_SM->clear();
CBitcoinAddress addr(ui->addressIn_SM->text().toStdString());
if (!addr.IsValid())
{
ui->addressIn_SM->setValid(false);
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("The entered address is invalid.") + QString(" ") + tr("Please check the address and try again."));
return;
}
CKeyID keyID;
if (!addr.GetKeyID(keyID))
{
ui->addressIn_SM->setValid(false);
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("The entered address does not refer to a key.") + QString(" ") + tr("Please check the address and try again."));
return;
}
WalletModel::UnlockContext ctx(model->requestUnlock());
if (!ctx.isValid())
{
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("Wallet unlock was cancelled."));
return;
}
CKey key;
if (!pwalletMain->GetKey(keyID, key))
{
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("Private key for the entered address is not available."));
return;
}
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << ui->messageIn_SM->document()->toPlainText().toStdString();
std::vector<unsigned char> vchSig;
if (!key.SignCompact(Hash(ss.begin(), ss.end()), vchSig))
{
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(QString("<nobr>") + tr("Message signing failed.") + QString("</nobr>"));
return;
}
ui->statusLabel_SM->setStyleSheet("QLabel { color: green; }");
ui->statusLabel_SM->setText(QString("<nobr>") + tr("Message signed.") + QString("</nobr>"));
ui->signatureOut_SM->setText(QString::fromStdString(EncodeBase64(&vchSig[0], vchSig.size())));
}
void SignVerifyMessageDialog::on_copySignatureButton_SM_clicked()
{
QApplication::clipboard()->setText(ui->signatureOut_SM->text());
}
void SignVerifyMessageDialog::on_clearButton_SM_clicked()
{
ui->addressIn_SM->clear();
ui->messageIn_SM->clear();
ui->signatureOut_SM->clear();
ui->statusLabel_SM->clear();
ui->addressIn_SM->setFocus();
}
void SignVerifyMessageDialog::on_addressBookButton_VM_clicked()
{
if (model && model->getAddressTableModel())
{
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::SendingTab, this);
dlg.setModel(model->getAddressTableModel());
if (dlg.exec())
{
setAddress_VM(dlg.getReturnValue());
}
}
}
void SignVerifyMessageDialog::on_verifyMessageButton_VM_clicked()
{
CBitcoinAddress addr(ui->addressIn_VM->text().toStdString());
if (!addr.IsValid())
{
ui->addressIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The entered address is invalid.") + QString(" ") + tr("Please check the address and try again."));
return;
}
CKeyID keyID;
if (!addr.GetKeyID(keyID))
{
ui->addressIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The entered address does not refer to a key.") + QString(" ") + tr("Please check the address and try again."));
return;
}
bool fInvalid = false;
std::vector<unsigned char> vchSig = DecodeBase64(ui->signatureIn_VM->text().toStdString().c_str(), &fInvalid);
if (fInvalid)
{
ui->signatureIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The signature could not be decoded.") + QString(" ") + tr("Please check the signature and try again."));
return;
}
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << ui->messageIn_VM->document()->toPlainText().toStdString();
CKey key;
if (!key.SetCompactSignature(Hash(ss.begin(), ss.end()), vchSig))
{
ui->signatureIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The signature did not match the message digest.") + QString(" ") + tr("Please check the signature and try again."));
return;
}
if (!(CBitcoinAddress(key.GetPubKey().GetID()) == addr))
{
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(QString("<nobr>") + tr("Message verification failed.") + QString("</nobr>"));
return;
}
ui->statusLabel_VM->setStyleSheet("QLabel { color: green; }");
ui->statusLabel_VM->setText(QString("<nobr>") + tr("Message verified.") + QString("</nobr>"));
}
void SignVerifyMessageDialog::on_clearButton_VM_clicked()
{
ui->addressIn_VM->clear();
ui->signatureIn_VM->clear();
ui->messageIn_VM->clear();
ui->statusLabel_VM->clear();
ui->addressIn_VM->setFocus();
}
bool SignVerifyMessageDialog::eventFilter(QObject *object, QEvent *event)
{
if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::FocusIn)
{
if (ui->tabWidget->currentIndex() == 0)
{
/* Clear status message on focus change */
ui->statusLabel_SM->clear();
/* Select generated signature */
if (object == ui->signatureOut_SM)
{
ui->signatureOut_SM->selectAll();
return true;
}
}
else if (ui->tabWidget->currentIndex() == 1)
{
/* Clear status message on focus change */
ui->statusLabel_VM->clear();
}
}
return QDialog::eventFilter(object, event);
}
| thruelios/ab180 | src/qt/signverifymessagedialog.cpp | C++ | mit | 8,779 | [
30522,
1001,
2421,
1000,
3696,
6299,
8757,
7834,
3736,
5999,
4818,
8649,
1012,
1044,
1000,
1001,
2421,
1000,
21318,
1035,
3696,
6299,
8757,
7834,
3736,
5999,
4818,
8649,
1012,
1044,
1000,
1001,
2421,
1000,
4769,
8654,
13704,
1012,
1044,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>bitcoinlite</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The bitcoinlite developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>
Este é um programa experimental.
Distribuído sob uma licença de software MIT/X11, por favor verifique o ficheiro anexo license.txt ou http://www.opensource.org/licenses/mit-license.php.
Este produto inclui software desenvolvido pelo Projecto OpenSSL para uso no OpenSSL Toolkit (http://www.openssl.org/), software criptográfico escrito por Eric Young (eay@cryptsoft.com) e software UPnP escrito por Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Clique duas vezes para editar o endereço ou o rótulo</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Criar um novo endereço</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copie o endereço selecionado para a área de transferência</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your bitcoinlite addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Copiar Endereço</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a bitcoinlite address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Apagar o endereço selecionado da lista</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified bitcoinlite address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>E&liminar</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Copiar &Rótulo</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Editar</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Ficheiro separado por vírgulas (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Rótulo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(sem rótulo)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Diálogo de Frase-Passe</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Escreva a frase de segurança</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nova frase de segurança</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Repita a nova frase de segurança</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Escreva a nova frase de seguraça da sua carteira. <br/> Por favor, use uma frase de <b>10 ou mais caracteres aleatórios,</b> ou <b>oito ou mais palavras</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Encriptar carteira</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>A sua frase de segurança é necessária para desbloquear a carteira.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Desbloquear carteira</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>A sua frase de segurança é necessária para desencriptar a carteira.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Desencriptar carteira</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Alterar frase de segurança</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Escreva a frase de segurança antiga seguida da nova para a carteira.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Confirmar encriptação da carteira</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Tem a certeza que deseja encriptar a carteira?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>IMPORTANTE: Qualquer cópia de segurança anterior da carteira deverá ser substituída com o novo, actualmente encriptado, ficheiro de carteira. Por razões de segurança, cópias de segurança não encriptadas efectuadas anteriormente do ficheiro da carteira tornar-se-ão inúteis assim que começar a usar a nova carteira encriptada.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Atenção: A tecla Caps Lock está activa!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Carteira encriptada</translation>
</message>
<message>
<location line="-58"/>
<source>bitcoinlite will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>A encriptação da carteira falhou</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>A encriptação da carteira falhou devido a um erro interno. A carteira não foi encriptada.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>As frases de segurança fornecidas não coincidem.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>O desbloqueio da carteira falhou</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>A frase de segurança introduzida para a desencriptação da carteira estava incorreta.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>A desencriptação da carteira falhou</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>A frase de segurança da carteira foi alterada com êxito.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+280"/>
<source>Sign &message...</source>
<translation>Assinar &mensagem...</translation>
</message>
<message>
<location line="+242"/>
<source>Synchronizing with network...</source>
<translation>Sincronizando com a rede...</translation>
</message>
<message>
<location line="-308"/>
<source>&Overview</source>
<translation>Visã&o geral</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Mostrar visão geral da carteira</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transações</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Navegar pelo histórico de transações</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>Fec&har</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Sair da aplicação</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Sobre &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Mostrar informação sobre Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opções...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>E&ncriptar Carteira...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Guardar Carteira...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>Mudar &Palavra-passe...</translation>
</message>
<message numerus="yes">
<location line="+250"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-247"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Send coins to a bitcoinlite address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Modify configuration options for bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Faça uma cópia de segurança da carteira para outra localização</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Mudar a frase de segurança utilizada na encriptação da carteira</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>Janela de &depuração</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Abrir consola de diagnóstico e depuração</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Verificar mensagem...</translation>
</message>
<message>
<location line="-200"/>
<source>bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Carteira</translation>
</message>
<message>
<location line="+178"/>
<source>&About bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>Mo&strar / Ocultar</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>&File</source>
<translation>&Ficheiro</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>Con&figurações</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>A&juda</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Barra de separadores</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[rede de testes]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>bitcoinlite client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to bitcoinlite network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-284"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+288"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Atualizado</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Recuperando...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Transação enviada</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Transação recebida</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Data: %1
Quantia: %2
Tipo: %3
Endereço: %4
</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid bitcoinlite address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>A carteira está <b>encriptada</b> e atualmente <b>desbloqueada</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>A carteira está <b>encriptada</b> e atualmente <b>bloqueada</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n hora</numerusform><numerusform>%n horas</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n dia</numerusform><numerusform>%n dias</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. bitcoinlite can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Alerta da Rede</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation>Quantidade:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Quantia:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioridade:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Taxa:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Saída Baixa:</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>não</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation>Depois de taxas:</translation>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation>Troco:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation>(des)seleccionar todos</translation>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation>Modo de árvore</translation>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>Modo lista</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation>Confirmados</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Confirmada</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioridade</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Copiar endereço</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar rótulo</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Copiar quantia</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Copiar ID da Transação</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Copiar quantidade</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Taxa de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Taxa depois de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Prioridade de Cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Copiar output baixo</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar alteração</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>o maior</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>alto</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>médio-alto</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation>médio</translation>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>baixo-médio</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>baixo</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>O mais baixo</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>sim</translation>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(Sem rótulo)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation>Alteração de %1 (%2)</translation>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(Alteração)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Editar Endereço</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Rótulo</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>E&ndereço</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Novo endereço de entrada</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Novo endereço de saída</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Editar endereço de entrada</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Editar endereço de saída</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>O endereço introduzido "%1" já se encontra no livro de endereços.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid bitcoinlite address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Impossível desbloquear carteira.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Falha ao gerar nova chave.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>bitcoinlite-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opções</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Principal</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Pagar &taxa de transação</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start bitcoinlite after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start bitcoinlite on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Rede</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the bitcoinlite client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Mapear porta usando &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the bitcoinlite network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>&IP do proxy:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Porta:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Porta do proxy (p.ex. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>&Versão SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Versão do proxy SOCKS (p.ex. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Janela</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Apenas mostrar o ícone da bandeja após minimizar a janela.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimizar para a bandeja e não para a barra de ferramentas</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Minimize ao invés de sair da aplicação quando a janela é fechada. Com esta opção selecionada, a aplicação apenas será encerrada quando escolher Sair da aplicação no menú.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimizar ao fechar</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>Vis&ualização</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Linguagem da interface de utilizador:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting bitcoinlite.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unidade a usar em quantias:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Escolha a subdivisão unitária a ser mostrada por defeito na aplicação e ao enviar moedas.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show bitcoinlite addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>Mostrar en&dereços na lista de transações</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation>Escolha para mostrar funcionalidades de controlo "coin" ou não.</translation>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Cancelar</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>padrão</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting bitcoinlite.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>O endereço de proxy introduzido é inválido. </translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formulário</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the bitcoinlite network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Carteira</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>O seu saldo disponível para gastar</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Imaturo:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>O saldo minado ainda não maturou</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Total:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>O seu saldo total actual</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Transações recentes</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>fora de sincronia</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nome do Cliente</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>N/D</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Versão do Cliente</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informação</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Usando versão OpenSSL</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Tempo de início</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Rede</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Número de ligações</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Cadeia de blocos</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Número actual de blocos</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Total estimado de blocos</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Tempo do último bloco</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Abrir</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the bitcoinlite-Qt help message to get a list with possible bitcoinlite command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Consola</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Data de construção</translation>
</message>
<message>
<location line="-104"/>
<source>bitcoinlite - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>bitcoinlite Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Ficheiro de registo de depuração</translation>
</message>
<message>
<location line="+7"/>
<source>Open the bitcoinlite debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Limpar consola</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the bitcoinlite RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Use as setas para cima e para baixo para navegar no histórico e <b>Ctrl-L</b> para limpar o ecrã.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Digite <b>help</b> para visualizar os comandos disponíveis.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Enviar Moedas</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation>Funcionalidades de Coin Controlo:</translation>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation>Entradas</translation>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation>Selecção automática</translation>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation>Fundos insuficientes!</translation>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation>Quantidade:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Quantia:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioridade:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Taxa:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Output Baixo:</translation>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation>Depois de taxas:</translation>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Enviar para múltiplos destinatários de uma vez</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Adicionar &Destinatário</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Limpar Tudo</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Confirme ação de envio</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Enviar</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a bitcoinlite address (e.g. RJhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>Copiar quantidade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar quantia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>Taxa de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Taxa depois de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Prioridade de Cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Copiar output baixo</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar alteração</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Confirme envio de moedas</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>O endereço de destino não é válido, por favor verifique.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>A quantia a pagar deverá ser maior que 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>A quantia excede o seu saldo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>O total excede o seu saldo quando a taxa de transação de %1 for incluída.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Endereço duplicado encontrado, apenas poderá enviar uma vez para cada endereço por cada operação de envio.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid bitcoinlite address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(Sem rótulo)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>Qu&antia:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Pagar A:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Escreva um rótulo para este endereço para o adicionar ao seu livro de endereços</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>Rótu&lo:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. RJhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Cole endereço da área de transferência</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a bitcoinlite address (e.g. RJhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Assinaturas - Assinar / Verificar uma Mensagem</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>A&ssinar Mensagem</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Pode assinar mensagens com os seus endereços para provar que são seus. Tenha atenção ao assinar mensagens ambíguas, pois ataques de phishing podem tentar enganá-lo, de modo a assinar a sua identidade para os atacantes. Apenas assine declarações completamente detalhadas com as quais concorde.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. RJhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Cole endereço da área de transferência</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Escreva aqui a mensagem que deseja assinar</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Copiar a assinatura actual para a área de transferência</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this bitcoinlite address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Repôr todos os campos de assinatura de mensagem</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Limpar &Tudo</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Verificar Mensagem</translation>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>Introduza o endereço de assinatura, mensagem (assegure-se de copiar quebras de linha, espaços, tabuladores, etc. exactamente) e assinatura abaixo para verificar a mensagem. Tenha atenção para não ler mais na assinatura do que o que estiver na mensagem assinada, para evitar ser enganado por um atacante que se encontre entre si e quem assinou a mensagem.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. RJhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified bitcoinlite address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Repôr todos os campos de verificação de mensagem</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a bitcoinlite address (e.g. RJhbfkAFvXqYkreSgJfrRLS9DepUcxbQci)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Clique "Assinar mensagem" para gerar a assinatura</translation>
</message>
<message>
<location line="+3"/>
<source>Enter bitcoinlite signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>O endereço introduzido é inválido. </translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Por favor verifique o endereço e tente de novo.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>O endereço introduzido não refere a chave alguma.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>O desbloqueio da carteira foi cancelado.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>A chave privada para o endereço introduzido não está disponível.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Assinatura de mensagem falhou.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Mensagem assinada.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>A assinatura não pôde ser descodificada.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Por favor verifique a assinatura e tente de novo.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>A assinatura não condiz com o conteúdo da mensagem.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Verificação da mensagem falhou.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Mensagem verificada.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Aberto até %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/desligado</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/não confirmada</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 confirmações</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Estado</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, transmitida através de %n nó</numerusform><numerusform>, transmitida através de %n nós</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Origem</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Gerado</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>De</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Para</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>endereço próprio</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>rótulo</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Crédito</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>matura daqui por %n bloco</numerusform><numerusform>matura daqui por %n blocos</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>não aceite</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Débito</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Taxa de transação</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Valor líquido</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Mensagem</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Comentário</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID da Transação</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 110 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Informação de depuração</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transação</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Entradas</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>verdadeiro</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>falso</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, ainda não foi transmitida com sucesso</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>desconhecido</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Detalhes da transação</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Esta janela mostra uma descrição detalhada da transação</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Aberto até %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confirmada (%1 confirmações)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Aberta por mais %n bloco</numerusform><numerusform>Aberta por mais %n blocos</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Este bloco não foi recebido por outros nós e provavelmente não será aceite pela rede!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Gerado mas não aceite</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Recebido com</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Recebido de</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Enviado para</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pagamento ao próprio</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minadas</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/d)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Estado da transação. Pairar por cima deste campo para mostrar o número de confirmações.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Data e hora a que esta transação foi recebida.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipo de transação.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Endereço de destino da transação.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Quantia retirada ou adicionada ao saldo.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Todas</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hoje</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Esta semana</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Este mês</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Mês passado</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Este ano</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Período...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Recebida com</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Enviada para</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Para si</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minadas</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Outras</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Escreva endereço ou rótulo a procurar</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Quantia mínima</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Copiar endereço</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar rótulo</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar quantia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Copiar ID da Transação</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Editar rótulo</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Mostrar detalhes da transação</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Ficheiro separado por vírgula (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Confirmada</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Rótulo</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Período:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>até</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>bitcoinlite version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Utilização:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or bitcoinlited</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Listar comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Obter ajuda para um comando</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Opções:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: bitcoinlite.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: bitcoinlited.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation>Especifique ficheiro de carteira (dentro da pasta de dados)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Especificar pasta de dados</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Definir o tamanho da cache de base de dados em megabytes (por defeito: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 28756)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Manter no máximo <n> ligações a outros nós da rede (por defeito: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Ligar a um nó para recuperar endereços de pares, e desligar</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Especifique o seu endereço público</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Tolerância para desligar nós mal-formados (por defeito: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Número de segundos a impedir que nós mal-formados se liguem de novo (por defeito: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Ocorreu um erro ao definir a porta %u do serviço RPC a escutar em IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 28755)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Aceitar comandos da consola e JSON-RPC</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Correr o processo como um daemon e aceitar comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Utilizar a rede de testes - testnet</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Aceitar ligações externas (padrão: 1 sem -proxy ou -connect)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Ocorreu um erro ao definir a porta %u do serviço RPC a escutar em IPv6, a usar IPv4: %s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Atenção: -paytxfee está definida com um valor muito alto! Esta é a taxa que irá pagar se enviar uma transação.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong bitcoinlite will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Atenção: erro ao ler wallet.dat! Todas as chaves foram lidas correctamente, mas dados de transação ou do livro de endereços podem estar em falta ou incorrectos.</translation>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Atenção: wallet.dat corrupto, dados recuperados! wallet.dat original salvo como wallet.{timestamp}.bak em %s; se o seu saldo ou transações estiverem incorrectos deverá recuperar de uma cópia de segurança.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Tentar recuperar chaves privadas de um wallet.dat corrupto</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Opções de criação de bloco:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Apenas ligar ao(s) nó(s) especificado(s)</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Descobrir endereço IP próprio (padrão: 1 ao escutar e sem -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Falhou a escutar em qualquer porta. Use -listen=0 se quer isto.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Armazenamento intermédio de recepção por ligação, <n>*1000 bytes (por defeito: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Armazenamento intermédio de envio por ligação, <n>*1000 bytes (por defeito: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Apenas ligar a nós na rede <net> (IPv4, IPv6 ou Tor)</translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>Opções SSL: (ver a Wiki Bitcoin para instruções de configuração SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Enviar informação de rastreio/depuração para a consola e não para o ficheiro debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Definir tamanho minímo de um bloco em bytes (por defeito: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Encolher ficheiro debug.log ao iniciar o cliente (por defeito: 1 sem -debug definido)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Especificar tempo de espera da ligação em millisegundos (por defeito: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Usar UPnP para mapear a porta de escuta (padrão: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Usar UPnP para mapear a porta de escuta (padrão: 1 ao escutar)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Nome de utilizador para ligações JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Atenção: Esta versão está obsoleta, é necessário actualizar!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat corrupta, recuperação falhou</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Palavra-passe para ligações JSON-RPC</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=bitcoinliterpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "bitcoinlite Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permitir ligações JSON-RPC do endereço IP especificado</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Enviar comandos para o nó a correr em <ip> (por defeito: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Executar comando quando mudar o melhor bloco (no comando, %s é substituído pela hash do bloco)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Executar comando quando uma das transações na carteira mudar (no comando, %s é substituído pelo ID da Transação)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Atualize a carteira para o formato mais recente</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Definir o tamanho da memória de chaves para <n> (por defeito: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Reexaminar a cadeia de blocos para transações em falta na carteira</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Usar OpenSSL (https) para ligações JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Ficheiro de certificado do servidor (por defeito: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Chave privada do servidor (por defeito: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Esta mensagem de ajuda</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. bitcoinlite is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Incapaz de vincular a %s neste computador (vínculo retornou erro %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permitir procuras DNS para -addnode, -seednode e -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Carregar endereços...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Erro ao carregar wallet.dat: Carteira danificada</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart bitcoinlite to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Erro ao carregar wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Endereço -proxy inválido: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Rede desconhecida especificada em -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Versão desconhecida de proxy -socks requisitada: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Não conseguiu resolver endereço -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Não conseguiu resolver endereço -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Quantia inválida para -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Quantia inválida</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Fundos insuficientes</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Carregar índice de blocos...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Adicione um nó ao qual se ligar e tentar manter a ligação aberta</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. bitcoinlite is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Carregar carteira...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Impossível mudar a carteira para uma versão anterior</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Impossível escrever endereço por defeito</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Reexaminando...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Carregamento completo</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Para usar a opção %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Erro</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Deverá definir rpcpassword=<password> no ficheiro de configuração:
%s
Se o ficheiro não existir, crie-o com permissões de leitura apenas para o dono.</translation>
</message>
</context>
</TS> | bitcoinlitedev/bitcoinlite-master | src/qt/locale/bitcoin_pt_PT.ts | TypeScript | mit | 119,136 | [
30522,
1026,
1029,
20950,
2544,
1027,
1000,
1015,
1012,
1014,
1000,
1029,
1028,
1026,
999,
9986,
13874,
24529,
1028,
1026,
24529,
2653,
1027,
1000,
13866,
1035,
13866,
1000,
2544,
1027,
1000,
1016,
1012,
1015,
1000,
1028,
1026,
6123,
1028,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
include('../../../operaciones.php');
conectar();
apruebadeintrusos();
if($_SESSION['cargo_user']!="Bodeguero"){
header('Location: ../../../login.php');
}
?>
<html lang="en">
<head>
<title>PNKS Inventario - Estadística de Productos</title>
<!-- BEGIN META -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="your,keywords">
<meta name="description" content="Short explanation about this website">
<!-- END META -->
<!-- BEGIN STYLESHEETS -->
<link href='http://fonts.googleapis.com/css?family=Roboto:300italic,400italic,300,400,500,700,900' rel='stylesheet' type='text/css'/>
<link type="text/css" rel="stylesheet" href="../../../css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="../../../css/materialadmin.css" />
<link type="text/css" rel="stylesheet" href="../../../css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="../../../css/material-design-iconic-font.min.css" />
<link type="text/css" rel="stylesheet" href="../../../css/libs/DataTables/jquery.dataTables.css" />
<link type="text/css" rel="stylesheet" href="../../../css/libs/DataTables/extensions/dataTables.colVis.css" />
<link type="text/css" rel="stylesheet" href="../../../css/libs/DataTables/extensions/dataTables.tableTools.css" />
<!-- END STYLESHEETS -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/libs/utils/html5shiv.js?1403934957"></script>
<script type="text/javascript" src="js/libs/utils/respond.min.js?1403934956"></script>
<![endif]-->
</head>
<body class="menubar-hoverable header-fixed menubar-first menubar-visible menubar-pin">
<!-- BEGIN HEADER-->
<header id="header" >
<div class="headerbar">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="headerbar-left">
<ul class="header-nav header-nav-options">
<li class="header-nav-brand" >
<div class="brand-holder">
<a href="">
<span class="text-lg text-bold text-primary">PNKS LTDA</span>
</a>
</div>
</li>
<li>
<a class="btn btn-icon-toggle menubar-toggle" data-toggle="menubar" href="javascript:void(0);">
<i class="fa fa-bars"></i>
</a>
</li>
</ul>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="headerbar-right">
<ul class="header-nav header-nav-profile">
<li class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle ink-reaction" data-toggle="dropdown">
<?php
if(file_exists('../../../img/usuarios/'.$_SESSION['foto_user'])){
?>
<img src="../../../img/usuarios/<?php echo $_SESSION['foto_user']; ?>" alt="" />
<?php
} else {
?>
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iMTgwIj48cmVjdCB3aWR0aD0iMTcxIiBoZWlnaHQ9IjE4MCIgZmlsbD0iI2VlZSI+PC9yZWN0Pjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9Ijg1LjUiIHk9IjkwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjEycHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+MTcxeDE4MDwvdGV4dD48L3N2Zz4="/>
<?php
}
?>
<span class="profile-info">
<?php echo $_SESSION['usuario_session']; ?>
<small><?php echo $_SESSION['cargo_user']; ?></small>
</span>
</a>
<ul class="dropdown-menu animation-dock">
<li class="dropdown-header">Opciones de Cuenta</li>
<li><a href="../../opcion/cambiarclave.php">Cambiar Clave</a></li>
<li><a href="../../opcion/cambiarficha.php">Cambiar Datos Personales</a></li>
<li><a href="../../opcion/cambiarfoto.php">Cambiar Foto de Perfil</a></li>
<li class="divider"></li>
<li><a href="../../../login.php" onClick=""><i class="fa fa-fw fa-power-off text-danger"></i> Salir</a></li>
</ul><!--end .dropdown-menu -->
</li><!--end .dropdown -->
</ul><!--end .header-nav-profile -->
</div><!--end #header-navbar-collapse -->
</div>
</header>
<!-- END HEADER-->
<!-- BEGIN BASE-->
<div id="base">
<!-- BEGIN OFFCANVAS LEFT -->
<div class="offcanvas">
</div><!--end .offcanvas-->
<!-- END OFFCANVAS LEFT -->
<!-- BEGIN CONTENT-->
<div id="content">
<section>
<div class="section-body">
<div class="row">
</div><!--end .row -->
</div><!--end .section-body -->
</section>
</div><!--end #content-->
<!-- END CONTENT -->
<div id="menubar" class="menubar-first">
<div class="menubar-fixed-panel">
<div>
<a class="btn btn-icon-toggle btn-default menubar-toggle" data-toggle="menubar" href="javascript:void(0);">
<i class="fa fa-bars"></i>
</a>
</div>
<div class="expanded">
<a href="">
<span class="text-lg text-bold text-primary ">PNKS LTDA</span>
</a>
</div>
</div>
<div class="menubar-scroll-panel">
<!-- BEGIN MAIN MENU -->
<ul id="main-menu" class="gui-controls">
<!-- BEGIN DASHBOARD -->
<li>
<a href="../index.php">
<div class="gui-icon"><i class="md md-home"></i></div>
<span class="title">Inicio</span>
</a>
</li>
<li>
<a href="../producto.php">
<div class="gui-icon"><i class="md md-web"></i></div>
<span class="title">Ficha Producto</span>
</a>
</li><!--end /menu-li -->
<!-- END DASHBOARD -->
<!-- BEGIN EMAIL -->
<li>
<a href="../etiqueta.php">
<div class="gui-icon"><i class="md md-chat"></i></div>
<span class="title">Emisión de Etiqueta</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li>
<li>
<a href="../bodega.php">
<div class="gui-icon"><i class="glyphicon glyphicon-list-alt"></i></div>
<span class="title">Administración de Bodega</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li>
<li>
<a href="../reserva.php">
<div class="gui-icon"><i class="md md-view-list"></i></div>
<span class="title">Control de Reservas</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li>
<a href="../inventario.php">
<div class="gui-icon"><i class="fa fa-table"></i></div>
<span class="title">Inventario</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li>
<a href="../stock.php">
<div class="gui-icon"><i class="md md-assignment-turned-in"></i></div>
<span class="title">Control de Stock</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li>
<a href="../precio.php">
<div class="gui-icon"><i class="md md-assignment"></i></div>
<span class="title">Lista de Precio</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li>
<a href="../cliente.php">
<div class="gui-icon"><i class="md md-description"></i></div>
<span class="title">Ficha Cliente</span>
</a>
</li><!--end /menu-li -->
<!-- END EMAIL -->
<!-- BEGIN EMAIL -->
<li class="gui-folder">
<a>
<div class="gui-icon"><i class="md md-assessment"></i></div>
<span class="title">Informes</span>
</a>
<!--start submenu -->
<ul>
<li><a href="stockbodega.php"><span class="title">Stock por Bodega</span></a></li>
<li><a href="guia.php"><span class="title">Entrada y Salida</span></a></li>
<li><a href="stock.php"><span class="title">Control de Stock</span></a></li>
<li><a href="consumo.php"><span class="title">Consumo Interno</span></a></li>
<li><a href="consignacion.php"><span class="title">Consignaciones</span></a></li>
<li><a href="estadistica.php" class="active"><span class="title">Estadística de Producto</span></a></li>
<li><a href="serie.php"><span class="title">Control de Serie</span></a></li>
<li><a href="vencimiento.php" ><span class="title">Vencimiento de Producto</span></a></li>
<li><a href="rotacion.php"><span class="title">Rotación de Inventario</span></a></li>
<li><a href="toma.php"><span class="title">Toma de Inventario</span></a></li>
</ul><!--end /submenu -->
</li><!--end /menu-li -->
<!-- END EMAIL -->
</ul><!--end .main-menu -->
<!-- END MAIN MENU -->
<div class="menubar-foot-panel">
<small class="no-linebreak hidden-folded">
<span class="opacity-75">© 2015</span> <strong>GH Soluciones Informáticas</strong>
</small>
</div>
</div><!--end .menubar-scroll-panel-->
</div><!--end #menubar-->
<!-- END MENUBAR -->
</div><!--end #base-->
<!-- END BASE -->
<!-- BEGIN JAVASCRIPT -->
<script src="../../../js/libs/jquery/jquery-1.11.2.min.js"></script>
<script src="../../../js/libs/jquery/jquery-migrate-1.2.1.min.js"></script>
<script src="../../../js/libs/bootstrap/bootstrap.min.js"></script>
<script src="../../../js/libs/spin.js/spin.min.js"></script>
<script src="../../../js/libs/autosize/jquery.autosize.min.js"></script>
<script src="../../../js/libs/DataTables/jquery.dataTables.min.js"></script>
<script src="../../../js/libs/DataTables/extensions/ColVis/js/dataTables.colVis.min.js"></script>
<script src="../../../js/libs/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
<script src="../../../js/libs/nanoscroller/jquery.nanoscroller.min.js"></script>
<script src="../../../js/core/source/App.js"></script>
<script src="../../../js/core/source/AppNavigation.js"></script>
<script src="../../../js/core/source/AppOffcanvas.js"></script>
<script src="../../../js/core/source/AppCard.js"></script>
<script src="../../../js/core/source/AppForm.js"></script>
<script src="../../../js/core/source/AppVendor.js"></script>
<!-- END JAVASCRIPT -->
</body>
</html> | DerKow/erp | admin/bodega/informe/estadistica.php | PHP | gpl-2.0 | 11,126 | [
30522,
1026,
1029,
25718,
2421,
1006,
1005,
1012,
1012,
1013,
1012,
1012,
1013,
1012,
1012,
1013,
3850,
10446,
2229,
1012,
25718,
1005,
1007,
1025,
13171,
25572,
2099,
1006,
1007,
1025,
19804,
5657,
9024,
12377,
16344,
26658,
2015,
1006,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
## name
annotateTree
## title
## description
## details
## authors
## see_also
## example
## references
| revbayes/revbayes | help/md/annotateTree.md | Markdown | gpl-3.0 | 104 | [
30522,
1001,
1001,
2171,
5754,
17287,
22513,
9910,
1001,
1001,
2516,
1001,
1001,
6412,
1001,
1001,
4751,
1001,
1001,
6048,
1001,
1001,
2156,
1035,
2036,
1001,
1001,
2742,
1001,
1001,
7604,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//
// ______ _____ _____
// | ____/ ____/ ____|
// | |__ | | | | __
// | __|| | | | |_ |
// | |___| |___| |__| |
// |______\_____\_____|
//
//
// NSObject+Swizzling.h
// SnapEcgDoctor
//
// Created by tan on 2017/2/14.
// Copyright © 2017年 baotiao ni. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSObject (Swizzling)
+ (void)swizzleSelector:(SEL)originalSelector withSwizzledSelector:(SEL)swizzledSelector;
@end
| fttios/ECGPublicLib | ECGPublicLib/ECGSet+Safe/NSObject+Swizzling.h | C | mit | 466 | [
30522,
1013,
1013,
1013,
1013,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1035,
1013,
1013,
1064,
1035,
1035,
1035,
1035,
1013,
1035,
1035,
1035,
1035,
1013,
1035,
1035,
1035,
1035,
1064,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="(C) Copyright 2010" />
<meta name="DC.rights.owner" content="(C) Copyright 2010" />
<meta name="DC.Type" content="cxxClass" />
<meta name="DC.Title" content="CPtiKeyMapDataFactory" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="GUID-52D2FA0B-F2BB-336B-AAA3-53BAAB9CDC7C" />
<title>
CPtiKeyMapDataFactory
</title>
<link type="text/css" rel="stylesheet" href="css/common.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="css/sdl.css" media="screen"/>
<!--[if IE]>
<link href="css/iefix.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
<meta name="keywords" content="api" />
<link rel="stylesheet" type="text/css" href="cxxref.css" />
</head>
<body class="cxxref" id="GUID-52D2FA0B-F2BB-336B-AAA3-53BAAB9CDC7C">
<a name="GUID-52D2FA0B-F2BB-336B-AAA3-53BAAB9CDC7C">
<!-- -->
</a>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_header.html'); ?>
<div id="sdl_container">
<div id="leftMenu">
<div id="expandcontractdiv">
<a id="collapseTree" href="javascript:tree.collapseAll()">
Collapse all
</a>
<a id="index" href="index.html">
Symbian^3 Application Developer Library
</a>
</div>
<iframe style="border:none" height="800" width="300" src="index-toc.html"></iframe>
<div id="treeDiv1">
 
</div>
<script type="text/javascript">
var currentIconMode = 0; window.name="id2518338 id2518347 id2420140 id2406431 id2406544 id2406641 ";
YAHOO.util.Event.onDOMReady(buildTree, this,true);
</script>
</div>
<div id="sdl_content">
<div class="breadcrumb">
<a href="index.html" title="Symbian^3 Application Developer Library">
Symbian^3 Application Developer Library
</a>
>
</div>
<h1 class="topictitle1">
CPtiKeyMapDataFactory Class Reference
</h1>
<table class="signature">
<tr>
<td>
class CPtiKeyMapDataFactory : public CBase
</td>
</tr>
</table>
<div class="section">
<div>
<p>
Keymap data factory class.
</p>
</div>
</div>
<div class="section derivation">
<h2 class="sectiontitle">
Inherits from
</h2>
<ul class="derivation derivation-root">
<li class="derivation-depth-0 ">
CPtiKeyMapDataFactory
<ul class="derivation">
<li class="derivation-depth-1 ">
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase
</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="section member-index">
<table border="0" class="member-index">
<thead>
<tr>
<th colspan="2">
Public Member Functions
</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right" class="code">
</td>
<td>
<a href="#GUID-EF092D24-2B1E-3D23-81C3-31B1E73301C5">
~CPtiKeyMapDataFactory
</a>
()
</td>
</tr>
<tr class="bg">
<td align="right" class="code">
IMPORT_C
<a href="GUID-52D2FA0B-F2BB-336B-AAA3-53BAAB9CDC7C.html">
CPtiKeyMapDataFactory
</a>
*
</td>
<td>
<a href="#GUID-23419E77-D69E-3224-8B2E-4D89684DE60C">
CreateImplementationL
</a>
(const
<a href="GUID-530281E6-29FC-33F2-BC9B-610FBA389444.html">
TUid
</a>
)
</td>
</tr>
<tr>
<td align="right" class="code">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
<a href="#GUID-5170B5FB-7C5F-3AFD-B002-F0327DD93DD5">
ImplementationUid
</a>
()
</td>
</tr>
<tr class="bg">
<td align="right" class="code">
<a href="GUID-670B1750-7C1F-3DB3-9635-C255F9D3E08D.html">
MPtiKeyMapData
</a>
*
</td>
<td>
<a href="#GUID-EC0769C2-FE34-3CFD-948C-D9EE5A799D00">
KeyMapDataForLanguageL
</a>
(
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
)
</td>
</tr>
<tr>
<td align="right" class="code">
IMPORT_C void
</td>
<td>
<a href="#GUID-A241E73E-A311-311C-B271-9DF46673CAFE">
ListImplementationsL
</a>
(
<a href="GUID-FAEBF321-6B08-3041-A01F-B1E7282D0707.html">
RArray
</a>
<
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
> &)
</td>
</tr>
<tr class="bg">
<td align="right" class="code">
void
</td>
<td>
<a href="#GUID-C4355AEF-68DD-34B9-A008-84BEB1C61696">
ListLanguagesL
</a>
(
<a href="GUID-FAEBF321-6B08-3041-A01F-B1E7282D0707.html">
RArray
</a>
<
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
> &)
</td>
</tr>
<tr>
<td align="right" class="code">
IMPORT_C void
</td>
<td>
<a href="#GUID-7BC9394A-F0A4-323A-B2F6-69AB5090A353">
Reserved_1
</a>
()
</td>
</tr>
<tr class="bg">
<td align="right" class="code">
IMPORT_C void
</td>
<td>
<a href="#GUID-84B9F5A6-20CE-3596-9BFC-FFD93679E105">
Reserved_2
</a>
()
</td>
</tr>
</tbody>
</table>
<table border="0" class="member-index">
<thead>
<tr>
<th colspan="2">
Private Member Functions
</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right" class="code">
void
</td>
<td>
<a href="#GUID-EAB64EA6-597C-373C-9DCA-7F4D1ED721DA">
SetDestructorKeyId
</a>
(
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
)
</td>
</tr>
<tr class="bg">
<td align="right" class="code">
void
</td>
<td>
<a href="#GUID-B2A96013-7D7C-34F6-AA7A-0EF3A9FC4A87">
SetImplementationUid
</a>
(
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
)
</td>
</tr>
</tbody>
</table>
<table border="0" class="member-index">
<thead>
<tr>
<th colspan="2">
Inherited Functions
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::CBase()
</a>
</td>
</tr>
<tr class="bg">
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::Delete(CBase *)
</a>
</td>
</tr>
<tr>
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::Extension_(TUint,TAny *&,TAny *)
</a>
</td>
</tr>
<tr class="bg">
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::operator new(TUint)
</a>
</td>
</tr>
<tr>
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::operator new(TUint,TAny *)
</a>
</td>
</tr>
<tr class="bg">
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::operator new(TUint,TLeave)
</a>
</td>
</tr>
<tr>
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::operator new(TUint,TLeave,TUint)
</a>
</td>
</tr>
<tr class="bg">
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::operator new(TUint,TUint)
</a>
</td>
</tr>
<tr>
<td>
</td>
<td>
<a href="GUID-8F6FE089-E2A8-30F4-B67E-10F286347681.html">
CBase::~CBase()
</a>
</td>
</tr>
</tbody>
</table>
<table border="0" class="member-index">
<thead>
<tr>
<th colspan="2">
Private Attributes
</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right" valign="top">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
<a href="#GUID-248752D2-78D5-3D4C-9669-003664FE8370">
iDTorId
</a>
</td>
</tr>
<tr class="bg">
<td align="right" valign="top">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
<a href="#GUID-918F3835-B3D0-34D8-A23C-EA33DCF87892">
iImplUid
</a>
</td>
</tr>
<tr>
<td align="right" valign="top">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
<a href="#GUID-425BEFBE-639E-33F5-B1C3-83CFF34AE854">
iReserved
</a>
</td>
</tr>
</tbody>
</table>
</div>
<h1 class="pageHeading topictitle1">
Constructor & Destructor Documentation
</h1>
<div class="nested1" id="GUID-EF092D24-2B1E-3D23-81C3-31B1E73301C5">
<a name="GUID-EF092D24-2B1E-3D23-81C3-31B1E73301C5">
<!-- -->
</a>
<h2 class="topictitle2">
~CPtiKeyMapDataFactory()
</h2>
<table class="signature">
<tr>
<td>
IMPORT_C
</td>
<td>
~CPtiKeyMapDataFactory
</td>
<td>
(
</td>
<td>
)
</td>
<td>
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<h1 class="pageHeading topictitle1">
Member Functions Documentation
</h1>
<div class="nested1" id="GUID-23419E77-D69E-3224-8B2E-4D89684DE60C">
<a name="GUID-23419E77-D69E-3224-8B2E-4D89684DE60C">
<!-- -->
</a>
<h2 class="topictitle2">
CreateImplementationL(const TUid)
</h2>
<table class="signature">
<tr>
<td>
IMPORT_C
<a href="GUID-52D2FA0B-F2BB-336B-AAA3-53BAAB9CDC7C.html">
CPtiKeyMapDataFactory
</a>
*
</td>
<td>
CreateImplementationL
</td>
<td>
(
</td>
<td>
const
<a href="GUID-530281E6-29FC-33F2-BC9B-610FBA389444.html">
TUid
</a>
</td>
<td>
aImplUid
</td>
<td>
)
</td>
<td>
[static]
</td>
</tr>
</table>
<div class="section">
<div>
<p>
Creates a key map data instance for given implementation uid.
</p>
<div class="p">
<dl class="since">
<dt class="dlterm">
Since
</dt>
<dd>
S60 V5.0
</dd>
</dl>
</div>
</div>
</div>
<div class="section parameters">
<h3 class="sectiontitle">
Parameters
</h3>
<table border="0" class="parameters">
<tr>
<td class="parameter">
const
<a href="GUID-530281E6-29FC-33F2-BC9B-610FBA389444.html">
TUid
</a>
aImplUid
</td>
<td>
An implemenation uid for key map data factory to be created.
</td>
</tr>
</table>
</div>
</div>
<div class="nested1" id="GUID-5170B5FB-7C5F-3AFD-B002-F0327DD93DD5">
<a name="GUID-5170B5FB-7C5F-3AFD-B002-F0327DD93DD5">
<!-- -->
</a>
<h2 class="topictitle2">
ImplementationUid()
</h2>
<table class="signature">
<tr>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
ImplementationUid
</td>
<td>
(
</td>
<td>
)
</td>
<td>
const [inline]
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<div class="nested1" id="GUID-EC0769C2-FE34-3CFD-948C-D9EE5A799D00">
<a name="GUID-EC0769C2-FE34-3CFD-948C-D9EE5A799D00">
<!-- -->
</a>
<h2 class="topictitle2">
KeyMapDataForLanguageL(TInt)
</h2>
<table class="signature">
<tr>
<td>
<a href="GUID-670B1750-7C1F-3DB3-9635-C255F9D3E08D.html">
MPtiKeyMapData
</a>
*
</td>
<td>
KeyMapDataForLanguageL
</td>
<td>
(
</td>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
aLanguageCode
</td>
<td>
)
</td>
<td>
[pure virtual]
</td>
</tr>
</table>
<div class="section">
<div>
<p>
Returns keymap data object for given language.
</p>
<div class="p">
<dl class="since">
<dt class="dlterm">
Since
</dt>
<dd>
S60 5.0
</dd>
</dl>
</div>
</div>
</div>
<div class="section parameters">
<h3 class="sectiontitle">
Parameters
</h3>
<table border="0" class="parameters">
<tr>
<td class="parameter">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
aLanguageCode
</td>
<td>
Languace code for requested data.
</td>
</tr>
</table>
</div>
</div>
<div class="nested1" id="GUID-A241E73E-A311-311C-B271-9DF46673CAFE">
<a name="GUID-A241E73E-A311-311C-B271-9DF46673CAFE">
<!-- -->
</a>
<h2 class="topictitle2">
ListImplementationsL(RArray< TInt > &)
</h2>
<table class="signature">
<tr>
<td>
IMPORT_C void
</td>
<td>
ListImplementationsL
</td>
<td>
(
</td>
<td>
<a href="GUID-FAEBF321-6B08-3041-A01F-B1E7282D0707.html">
RArray
</a>
<
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
> &
</td>
<td>
aResult
</td>
<td>
)
</td>
<td>
[static]
</td>
</tr>
</table>
<div class="section">
<div>
<p>
Fills given list with implementation uids of all found key map data factory implementations.
</p>
<div class="p">
<dl class="since">
<dt class="dlterm">
Since
</dt>
<dd>
S60 V5.0
</dd>
</dl>
</div>
</div>
</div>
<div class="section parameters">
<h3 class="sectiontitle">
Parameters
</h3>
<table border="0" class="parameters">
<tr>
<td class="parameter">
<a href="GUID-FAEBF321-6B08-3041-A01F-B1E7282D0707.html">
RArray
</a>
<
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
> & aResult
</td>
<td>
An array to be filled with uids.
</td>
</tr>
</table>
</div>
</div>
<div class="nested1" id="GUID-C4355AEF-68DD-34B9-A008-84BEB1C61696">
<a name="GUID-C4355AEF-68DD-34B9-A008-84BEB1C61696">
<!-- -->
</a>
<h2 class="topictitle2">
ListLanguagesL(RArray< TInt > &)
</h2>
<table class="signature">
<tr>
<td>
void
</td>
<td>
ListLanguagesL
</td>
<td>
(
</td>
<td>
<a href="GUID-FAEBF321-6B08-3041-A01F-B1E7282D0707.html">
RArray
</a>
<
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
> &
</td>
<td>
aResult
</td>
<td>
)
</td>
<td>
[pure virtual]
</td>
</tr>
</table>
<div class="section">
<div>
<p>
Lists all languages supported by this data factory.
</p>
<div class="p">
<dl class="since">
<dt class="dlterm">
Since
</dt>
<dd>
S60 5.0
</dd>
</dl>
</div>
</div>
</div>
<div class="section parameters">
<h3 class="sectiontitle">
Parameters
</h3>
<table border="0" class="parameters">
<tr>
<td class="parameter">
<a href="GUID-FAEBF321-6B08-3041-A01F-B1E7282D0707.html">
RArray
</a>
<
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
> & aResult
</td>
<td>
List instance for storing results.
</td>
</tr>
</table>
</div>
</div>
<div class="nested1" id="GUID-7BC9394A-F0A4-323A-B2F6-69AB5090A353">
<a name="GUID-7BC9394A-F0A4-323A-B2F6-69AB5090A353">
<!-- -->
</a>
<h2 class="topictitle2">
Reserved_1()
</h2>
<table class="signature">
<tr>
<td>
IMPORT_C void
</td>
<td>
Reserved_1
</td>
<td>
(
</td>
<td>
)
</td>
<td>
[virtual]
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<div class="nested1" id="GUID-84B9F5A6-20CE-3596-9BFC-FFD93679E105">
<a name="GUID-84B9F5A6-20CE-3596-9BFC-FFD93679E105">
<!-- -->
</a>
<h2 class="topictitle2">
Reserved_2()
</h2>
<table class="signature">
<tr>
<td>
IMPORT_C void
</td>
<td>
Reserved_2
</td>
<td>
(
</td>
<td>
)
</td>
<td>
[virtual]
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<div class="nested1" id="GUID-EAB64EA6-597C-373C-9DCA-7F4D1ED721DA">
<a name="GUID-EAB64EA6-597C-373C-9DCA-7F4D1ED721DA">
<!-- -->
</a>
<h2 class="topictitle2">
SetDestructorKeyId(TInt)
</h2>
<table class="signature">
<tr>
<td>
void
</td>
<td>
SetDestructorKeyId
</td>
<td>
(
</td>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
aUid
</td>
<td>
)
</td>
<td>
[private, inline]
</td>
</tr>
</table>
<div class="section">
</div>
<div class="section parameters">
<h3 class="sectiontitle">
Parameters
</h3>
<table border="0" class="parameters">
<tr>
<td class="parameter">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
aUid
</td>
<td>
</td>
</tr>
</table>
</div>
</div>
<div class="nested1" id="GUID-B2A96013-7D7C-34F6-AA7A-0EF3A9FC4A87">
<a name="GUID-B2A96013-7D7C-34F6-AA7A-0EF3A9FC4A87">
<!-- -->
</a>
<h2 class="topictitle2">
SetImplementationUid(TInt)
</h2>
<table class="signature">
<tr>
<td>
void
</td>
<td>
SetImplementationUid
</td>
<td>
(
</td>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
aUid
</td>
<td>
)
</td>
<td>
[private, inline]
</td>
</tr>
</table>
<div class="section">
</div>
<div class="section parameters">
<h3 class="sectiontitle">
Parameters
</h3>
<table border="0" class="parameters">
<tr>
<td class="parameter">
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
aUid
</td>
<td>
</td>
</tr>
</table>
</div>
</div>
<h1 class="pageHeading topictitle1">
Member Data Documentation
</h1>
<div class="nested1" id="GUID-248752D2-78D5-3D4C-9669-003664FE8370">
<a name="GUID-248752D2-78D5-3D4C-9669-003664FE8370">
<!-- -->
</a>
<h2 class="topictitle2">
TInt
iDTorId
</h2>
<table class="signature">
<tr>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
iDTorId
</td>
<td>
[private]
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<div class="nested1" id="GUID-918F3835-B3D0-34D8-A23C-EA33DCF87892">
<a name="GUID-918F3835-B3D0-34D8-A23C-EA33DCF87892">
<!-- -->
</a>
<h2 class="topictitle2">
TInt
iImplUid
</h2>
<table class="signature">
<tr>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
iImplUid
</td>
<td>
[private]
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<div class="nested1" id="GUID-425BEFBE-639E-33F5-B1C3-83CFF34AE854">
<a name="GUID-425BEFBE-639E-33F5-B1C3-83CFF34AE854">
<!-- -->
</a>
<h2 class="topictitle2">
TInt
iReserved
</h2>
<table class="signature">
<tr>
<td>
<a href="GUID-FC2F2B93-3D18-3BCC-9FD6-6BC6B240B667.html">
TInt
</a>
</td>
<td>
iReserved
</td>
<td>
[private]
</td>
</tr>
</table>
<div class="section">
</div>
</div>
<p class="copyright">Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).<br /> All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the <a href=" http://www.eclipse.org/legal/epl-v10.html"> Eclipse Public License
v1.0</a>.</p>
</div>
</div>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_footer.html'); ?>
</body>
</html> | warlordh/fork_Symbian | sdk/GUID-52D2FA0B-F2BB-336B-AAA3-53BAAB9CDC7C.html | HTML | epl-1.0 | 23,488 | [
30522,
1026,
1029,
20950,
2544,
1027,
1005,
1015,
1012,
1014,
1005,
17181,
1027,
1005,
21183,
2546,
1011,
1022,
1005,
1029,
1028,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
1060,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Start Project Euler
## Run specific unit test
```
go test -timeout 30s github.com/fenglyu/projecteuler/golang/common -run ^\(TestTailFib\)$
```
## Go pprof
```
> https://github.com/campoy/go-tooling-workshop/blob/master/3-dynamic-analysis/3-profiling/2-pprof.md
> http://www.graphviz.org/
go tool pprof 27.prof
```
## Go Module proxy
```
export GOPROXY=https://mirrors.aliyun.com/goproxy/
```
## Similiar math chanlleage
```
https://github.com/go-kit/kit
```
| fenglyu/projecteuler | README.md | Markdown | mit | 471 | [
30522,
1001,
2707,
2622,
7327,
3917,
1001,
1001,
2448,
3563,
3131,
3231,
1036,
1036,
1036,
2175,
3231,
1011,
2051,
5833,
2382,
2015,
21025,
2705,
12083,
1012,
4012,
1013,
19004,
2135,
2226,
1013,
2622,
13765,
3917,
1013,
2175,
25023,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#include <stdio.h>
#include <QtDebug>
#include "cguitreedomdocument.h"
CGuiTreeDomDocument::CGuiTreeDomDocument()
{
QDomImplementation impl;
impl.setInvalidDataPolicy(QDomImplementation::ReturnNullNode);
}
/**
* Get first "guiObject" located in "guiRoot".
*
* @return Node element of first guiObject or an empty element node if there is none.
**/
CGuiTreeDomElement CGuiTreeDomDocument::getFirstGuiObjectElement()
{
CGuiTreeDomElement domElmGuiTree;
domElmGuiTree = this->firstChildElement("guiRoot");
if(domElmGuiTree.isNull())
return(domElmGuiTree);
return(domElmGuiTree.firstChildElement("guiObject"));
}
| stevedorries/DFM2QT4UI | cguitreedomdocument.cpp | C++ | lgpl-2.1 | 651 | [
30522,
1001,
2421,
1026,
2358,
20617,
1012,
1044,
1028,
1001,
2421,
1026,
1053,
2102,
3207,
8569,
2290,
1028,
1001,
2421,
1000,
1039,
25698,
13334,
9527,
3527,
24894,
4765,
1012,
1044,
1000,
1039,
25698,
13334,
9527,
3527,
24894,
4765,
1024... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Occluded Library: OccludedLibrary/opengl/retained/scene/objects/gl_retained_fixed_camera.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Occluded Library
 <span id="projectnumber">0.1</span>
</div>
<div id="projectbrief">A graphics library that sits on top of low level libraries such as OpenGL and DirectX.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('gl__retained__fixed__camera_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">gl_retained_fixed_camera.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "gl_retained_camera.h"</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="keyword">namespace </span>occluded { <span class="keyword">namespace </span>opengl { <span class="keyword">namespace </span>retained { <span class="keyword">namespace </span>scene { <span class="keyword">namespace </span>objects {</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html">gl_retained_fixed_camera</a>:</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">public</span> <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__camera.html">gl_retained_camera</a></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a11d41eb793d0b0ab72d81303f2a0422a">gl_retained_fixed_camera</a>( <span class="keyword">const</span> <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1shaders_1_1shader__program.html">shader_program</a>& shaderProg, <span class="keyword">const</span> glm::mat4& proj, <span class="keyword">const</span> glm::mat4& view );</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  ~<a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html">gl_retained_fixed_camera</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">void</span> <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a81ea1cd723428ac234ca814c43363a90">set_for_render</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">const</span> <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1nodes_1_1gl__retained__fixed__transformation.html">nodes::gl_retained_fixed_transformation</a>& <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a167066c59a31c58a34bf8112e3f9ef37">get_projection</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">const</span> <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1nodes_1_1gl__retained__fixed__transformation.html">nodes::gl_retained_fixed_transformation</a>& <a class="code" href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a354c288a4f0c6d05bcbbb256d7c65931">get_view</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> };</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> } <span class="comment">// end of objects namespace</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> } <span class="comment">// end of scene namespace</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> } <span class="comment">// end of retained namespace</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> } <span class="comment">// end of opengl namespace</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> } <span class="comment">// end of occluded namespace</span></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1nodes_1_1gl__retained__fixed__transformation_html"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1nodes_1_1gl__retained__fixed__transformation.html">occluded::opengl::retained::scene::nodes::gl_retained_fixed_transformation</a></div><div class="ttdef"><b>Definition:</b> gl_retained_fixed_transformation.h:10</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__camera_html"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__camera.html">occluded::opengl::retained::scene::objects::gl_retained_camera</a></div><div class="ttdoc">An abstract OpenGL camera class which contains the necessary method that any retained camera will use...</div><div class="ttdef"><b>Definition:</b> gl_retained_camera.h:18</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera_html_a354c288a4f0c6d05bcbbb256d7c65931"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a354c288a4f0c6d05bcbbb256d7c65931">occluded::opengl::retained::scene::objects::gl_retained_fixed_camera::get_view</a></div><div class="ttdeci">const nodes::gl_retained_fixed_transformation & get_view() const </div><div class="ttdoc">Gets the view transformation. </div><div class="ttdef"><b>Definition:</b> gl_retained_fixed_camera.cpp:25</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera_html_a167066c59a31c58a34bf8112e3f9ef37"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a167066c59a31c58a34bf8112e3f9ef37">occluded::opengl::retained::scene::objects::gl_retained_fixed_camera::get_projection</a></div><div class="ttdeci">const nodes::gl_retained_fixed_transformation & get_projection() const </div><div class="ttdoc">Gets the projection transformation. </div><div class="ttdef"><b>Definition:</b> gl_retained_fixed_camera.cpp:21</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera_html_a81ea1cd723428ac234ca814c43363a90"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a81ea1cd723428ac234ca814c43363a90">occluded::opengl::retained::scene::objects::gl_retained_fixed_camera::set_for_render</a></div><div class="ttdeci">void set_for_render() const </div><div class="ttdoc">Sets this camera to the camera that will be used for rendering. </div><div class="ttdef"><b>Definition:</b> gl_retained_fixed_camera.cpp:14</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1shaders_1_1shader__program_html"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1shaders_1_1shader__program.html">occluded::opengl::retained::shaders::shader_program</a></div><div class="ttdoc">A wrapper class for an OpenGL GLSL shader program. </div><div class="ttdef"><b>Definition:</b> shader_program.h:19</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera_html_a11d41eb793d0b0ab72d81303f2a0422a"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html#a11d41eb793d0b0ab72d81303f2a0422a">occluded::opengl::retained::scene::objects::gl_retained_fixed_camera::gl_retained_fixed_camera</a></div><div class="ttdeci">gl_retained_fixed_camera(const shader_program &shaderProg, const glm::mat4 &proj, const glm::mat4 &view)</div><div class="ttdoc">Initializes an OpenGL fixed camera. </div><div class="ttdef"><b>Definition:</b> gl_retained_fixed_camera.cpp:5</div></div>
<div class="ttc" id="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera_html"><div class="ttname"><a href="classoccluded_1_1opengl_1_1retained_1_1scene_1_1objects_1_1gl__retained__fixed__camera.html">occluded::opengl::retained::scene::objects::gl_retained_fixed_camera</a></div><div class="ttdoc">A camera with a fixed position and a fixed orientation. </div><div class="ttdef"><b>Definition:</b> gl_retained_fixed_camera.h:14</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_eb31cc02556c90539efbe1c6c599098c.html">OccludedLibrary</a></li><li class="navelem"><a class="el" href="dir_725cdbe3b0660c87c65dc4288272c312.html">opengl</a></li><li class="navelem"><a class="el" href="dir_c4ead09a1921a448dbfe4c6bb29a8d0e.html">retained</a></li><li class="navelem"><a class="el" href="dir_fe1f5a08ac9948ec2b98735a9c4a70bf.html">scene</a></li><li class="navelem"><a class="el" href="dir_bd266e0f75a088bfdfd0fb33bc5e4e08.html">objects</a></li><li class="navelem"><b>gl_retained_fixed_camera.h</b></li>
<li class="footer">Generated on Mon Aug 25 2014 22:44:21 for Occluded Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>
| PMurph/OccludedLibrary | OccludedLibrary/docs/html/gl__retained__fixed__camera_8h_source.html | HTML | bsd-3-clause | 14,956 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
1060,
11039,
19968,
1015,
1012,
1014,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import sys
import os
import os.path as op
__version__ = '2.0.5'
from cfchecker.cfchecks import getargs, CFChecker
def cfchecks_main():
"""cfchecks_main is based on the main program block in cfchecks.py
"""
(badc,coards,uploader,useFileName,standardName,areaTypes,udunitsDat,version,files)=getargs(sys.argv)
inst = CFChecker(uploader=uploader, useFileName=useFileName, badc=badc, coards=coards, cfStandardNamesXML=standardName, cfAreaTypesXML=areaTypes, udunitsDat=udunitsDat, version=version)
for file in files:
rc = inst.checker(file)
sys.exit (rc)
| RosalynHatcher/CFChecker | src/cfchecker/__init__.py | Python | bsd-3-clause | 598 | [
30522,
12324,
25353,
2015,
12324,
9808,
12324,
9808,
1012,
4130,
2004,
6728,
1035,
1035,
2544,
1035,
1035,
1027,
1005,
1016,
1012,
1014,
1012,
1019,
1005,
2013,
12935,
5403,
9102,
1012,
12935,
5403,
10603,
12324,
2131,
2906,
5620,
1010,
129... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package me.code4fun.roboq;
import android.os.Handler;
/**
* @since 0.1
*/
public abstract class PostRunnableCallback extends HandlerCallback {
public PostRunnableCallback(Handler handler) {
super(handler);
}
@Override
public void onResponse(Request req, Response resp, Exception error) {
Runnable r = createRunnable(req, resp, error);
if (r != null)
processRunnable(r);
}
protected abstract Runnable createRunnable(Request req, Response resp, Exception error);
protected void processRunnable(Runnable r) {
handler.post(r);
}
}
| gaorx/Roboq | Roboq/src/me/code4fun/roboq/PostRunnableCallback.java | Java | apache-2.0 | 611 | [
30522,
7427,
2033,
1012,
3642,
2549,
11263,
2078,
1012,
6487,
2080,
4160,
1025,
12324,
11924,
1012,
9808,
1012,
28213,
1025,
1013,
1008,
1008,
1008,
1030,
2144,
1014,
1012,
1015,
1008,
1013,
2270,
10061,
2465,
2695,
15532,
22966,
9289,
2085... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace OC\PlatformBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use OC\PlatformBundle\Entity\Advert;
/** Une annonce peut contenir plusieurs candidatures, alors qu'une candidature n'appartient qu'à une seule annonce */
/**
* @ORM\Table(name="application")
* @ORM\Entity(repositoryClass="OC\PlatformBundle\Repository\ApplicationRepository")
*/
class Application
{
/**
* @ORM\ManyToOne(targetEntity="OC\PlatformBundle\Entity\Advert", inversedBy="applications")
* @ORM\JoinColumn(nullable=false)
*/
private $advert;
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="author", type="string", length=255)
*/
private $author;
/**
* @ORM\Column(name="content", type="text")
*/
private $content;
/**
* @ORM\Column(name="date", type="datetime")
*/
private $date;
public function __construct()
{
$this->date = new \Datetime();
}
public function getId()
{
return $this->id;
}
public function setAuthor($author)
{
$this->author = $author;
return $this;
}
public function getAuthor()
{
return $this->author;
}
public function setContent($content)
{
$this->content = $content;
return $this;
}
public function getContent()
{
return $this->content;
}
public function setDate(\DateTimeInterface $date)
{
$this->date = $date;
return $this;
}
public function getDate()
{
return $this->date;
}
public function setAdvert(Advert $advert)
{
$this->advert = $advert;
return $this;
}
public function getAdvert()
{
return $this->advert;
}
}
| walter-da-costa/sf2project | src/OC/PlatformBundle/Entity/Application.php | PHP | mit | 1,858 | [
30522,
1026,
1029,
25718,
3415,
15327,
1051,
2278,
1032,
4132,
27265,
2571,
1032,
9178,
1025,
2224,
8998,
1032,
2030,
2213,
1032,
12375,
2004,
2030,
2213,
1025,
2224,
1051,
2278,
1032,
4132,
27265,
2571,
1032,
9178,
1032,
4748,
16874,
1025,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<div default-container>
<div class="contact-egen">
<div class="col s12 contact-egen-header">QUALIFY H1-B CANDIDATE</div>
<div class="row">
<div class="col s6">
<div class="form-group input-field">
<input type="text"
class="form-control"
id="name"
ng-model="vm.candidateName">
<label for="name">Candidate Name</label>
</div>
</div>
<div class="col s6 input-field">
<input type="text"
class="form-control"
id="email"
ng-model="vm.candidateEmail">
<label for="email">Candidate email (optional)</label>
</div>
</div>
<div class="col s12 input-field">
<div class="form-group">
<textarea id="message"
ng-model="vm.message"
maxlength="320"
row="3"
class="materialize-textarea"></textarea>
<label for="message">Custom message</label>
</div>
<div class="float-right">
<small class="dark-red">{{320 - vm.message.length}}/320</small>
</div>
</div>
<div class="col s12 margin-top-25 text-align-center">
<a type="submit"
href="#app/user-dashboard"
class="app btn btn-default">BACK TO MENU
</a>
<button type="submit"
ng-click="vm.send()"
class="app btn btn-primary">SEND
</button>
</div>
</div>
</div> | sanket30/ng-login | app/src/features/qualify-candidate/contact-egen/contact-egen.html | HTML | mit | 1,771 | [
30522,
1026,
4487,
2615,
12398,
1011,
11661,
1028,
1026,
4487,
2615,
2465,
1027,
1000,
3967,
1011,
1041,
6914,
1000,
1028,
1026,
4487,
2615,
2465,
1027,
1000,
8902,
1055,
12521,
3967,
1011,
1041,
6914,
1011,
20346,
1000,
1028,
7515,
1044,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
This file is part of TableGUI.
Copyright (c) 2014 Felipe Ferreira da Silva
TableGUI is licensed under MIT license.
See the file "LICENSE" for license details.
*/
#include <stdio.h>
#include <math.h>
#include <GL/gl.h>
#include <GLFW/glfw3.h>
#include <basicutils.h>
#include "GUI.h"
#include "GUI_theme.h"
#include "GUI_checkbox.h"
void GUIWidget_KeyDown(TGUIWidget *AWidget, int AKey, int AScancode, int AMods);
void GUIWidget_KeyUp(TGUIWidget *AWidget, int AKey, int AScancode, int AMods);
void GUIWidget_MouseDown(TGUIWidget *AWidget, int AButton, int AMouseX, int AMouseY);
void GUIWidget_MouseUp(TGUIWidget *AWidget, int AButton, int AMouseX, int AMouseY);
void GUIWidget_MouseClick(TGUIWidget *AWidget, int AButton, int AMouseX, int AMouseY);
void GUIWidget_MouseEnter(TGUIWidget *AWidget);
void GUIWidget_MouseLeave(TGUIWidget *AWidget);
void Alloc_GUIWidget(TGUIWidget *AWidget);
| sphaero/TableGUI | GUI_widget.h | C | mit | 912 | [
30522,
1013,
1008,
2023,
5371,
2003,
2112,
1997,
2795,
25698,
1012,
9385,
1006,
1039,
1007,
2297,
17095,
26135,
4830,
11183,
2795,
25698,
2003,
7000,
2104,
10210,
6105,
30524,
2860,
2509,
1012,
1044,
1028,
1001,
2421,
1026,
3937,
21823,
487... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package chapter4
import org.scalatest._
import chapter4.Either._
class EitherTest extends FlatSpec with Matchers with
OptionValues with Inside with Inspectors {
"4.6 flatMap with Right('Hello') to length" should " be Right(5)" in {
assert(Right("Hello").flatMap(value => Right(value.length)) == Right(5))
}
"4.6 map with Right('Hello') to length" should " be Right(5)" in {
assert(Right("Hello").map(_.length) == Right(5))
}
"4.6 orElse with Failed" should " be Right('Passed')" in {
assert(Left("Falied").orElse(Right("Passed")) == Right("Passed"))
}
"4.6 map2 with Right to Right" should " be Right" in {
assert(Right(10).map2(Right(10))(_ + _) == Right(20))
}
"4.6 map2 with Right to Left" should " be Left" in {
assert(Right(10).map2(Left("Failed"))(_ + _) == Left("Failed"))
}
"4.7 sequence all right list" should "be list of Right" in {
assert(sequence(List(Right(1), Right(2), Right(3))) == Right(List(1, 2, 3)))
}
"4.7 sequence with Left" should "be Left and first failure" in {
assert(sequence(List(Right(1), Left("Failed1"), Left("Failed2"))) == Left("Failed1"))
}
"4.7 traverse with all Right" should "be Right" in {
assert(traverse(List(1, 2, 3, 4))(Right(_)) == Right(List(1, 2, 3, 4)))
}
"4.7 traverse with a Left on greater than two" should "be Left" in {
assert(traverse(List(1, 2, 3, 4))(value => if (value >= 2) Left("GTOE2:" + value) else Right(value)) == Left("GTOE2:2"))
}
}
| mattjtodd/fp-in-scala | src/test/scala/chapter4/EitherTest.scala | Scala | apache-2.0 | 1,495 | [
30522,
7427,
3127,
2549,
12324,
8917,
1012,
26743,
22199,
1012,
1035,
12324,
3127,
2549,
1012,
2593,
1012,
1035,
2465,
2593,
22199,
8908,
14201,
5051,
2278,
2007,
2674,
2545,
2007,
5724,
10175,
15808,
2007,
2503,
2007,
28421,
1063,
1000,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
Copyright 2016-present the Material Components for iOS authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>
#import "MDCButton.h"
/**
Shapes for Material Floating buttons.
The mini size should only be used when required for visual continuity with other elements on the
screen.
*/
typedef NS_ENUM(NSInteger, MDCFloatingButtonShape) {
MDCFloatingButtonShapeDefault,
MDCFloatingButtonShapeMini
};
/**
A "floating" MDCButton.
Floating action buttons are circular, float a considerable amount above their parent, have
their own background color, and also raise briefly when touched. Floating action buttons should
only be used rarely, for the main action of a screen.
@see http://www.google.com/design/spec/components/buttons.html#buttons-main-buttons
*/
@interface MDCFloatingButton : MDCButton
/**
Returns a MDCFloatingButton with default colors and the given @c shape.
@param shape Button shape.
@return Button with shape.
*/
+ (nonnull instancetype)floatingButtonWithShape:(MDCFloatingButtonShape)shape;
/**
@return The default floating button size dimension.
*/
+ (CGFloat)defaultDimension;
/**
@return The mini floating button size dimension.
*/
+ (CGFloat)miniDimension;
/**
Initializes self to a button with the given @c shape.
@param frame Button frame.
@param shape Button shape.
@return Button with shape.
*/
- (nonnull instancetype)initWithFrame:(CGRect)frame
shape:(MDCFloatingButtonShape)shape NS_DESIGNATED_INITIALIZER;
/**
Initializes self to a button with the MDCFloatingButtonShapeDefault shape.
@param frame Button frame.
@return Button with MDCFloatingButtonShapeDefault shape.
*/
- (nonnull instancetype)initWithFrame:(CGRect)frame;
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
#pragma mark - Deprecations
+ (nonnull instancetype)buttonWithShape:(MDCFloatingButtonShape)shape
__deprecated_msg("Use floatingButtonWithShape: instead.");
@end
| chriscox/material-components-ios | demos/Codelabs/BuildingBeautifulApps/ObjectiveC/Starter/Pods/MaterialComponents/components/Buttons/src/MDCFloatingButton.h | C | apache-2.0 | 2,578 | [
30522,
1013,
1008,
9385,
2355,
1011,
2556,
1996,
3430,
6177,
2005,
16380,
6048,
1012,
2035,
2916,
9235,
1012,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
2017,
2089,
2025,
2224,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* Created by PhpStorm.
* User: Sheila
* Date: 12/12/2014
* Time: 6:51 AM
*/
| experimentX/worklor | wp-content/plugins/booklor/testlor.php | PHP | gpl-2.0 | 91 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
2580,
2011,
25718,
19718,
1012,
1008,
5310,
1024,
15062,
1008,
3058,
1024,
2260,
1013,
2260,
1013,
2297,
1008,
2051,
1024,
1020,
1024,
4868,
2572,
1008,
1013,
102,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
include ../Makefile.tests_common
USEMODULE += fmt
USEMODULE += posix_semaphore
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include
| aeneby/RIOT | tests/posix_semaphore/Makefile | Makefile | lgpl-2.1 | 147 | [
30522,
2421,
1012,
1012,
1013,
2191,
8873,
2571,
1012,
5852,
1035,
2691,
2224,
5302,
8566,
2571,
1009,
1027,
4718,
2102,
2224,
5302,
8566,
2571,
1009,
1027,
13433,
5332,
2595,
1035,
7367,
2863,
8458,
5686,
4487,
19150,
1035,
11336,
1009,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* This file is part of ELKI:
* Environment for Developing KDD-Applications Supported by Index-Structures
*
* Copyright (C) 2019
* ELKI Development Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package elki.utilities.datastructures.heap;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Random;
import org.junit.Ignore;
import org.junit.Test;
/**
* Unit test to ensure that our heap is not significantly worse than SUN javas
* regular PriorityQueue.
*
* @author Erich Schubert
* @since 0.7.0
*/
public class HeapPerformanceTest {
private final int queueSize = 200000;
private final int preiterations = 20;
private final int iterations = 200;
private final long seed = 123456L;
@Ignore
@Test
public void testRuntime() throws Exception {
// prepare the data set
final List<Integer> elements = new ArrayList<>(queueSize);
{
final Random random = new Random(seed);
for(int i = 0; i < queueSize; i++) {
elements.add(i);
}
Collections.shuffle(elements, random);
}
// Pretest, to trigger hotspot compiler, hopefully.
{
for(int j = 0; j < preiterations; j++) {
ComparableMinHeap<Integer> pq = new ComparableMinHeap<>();
testHeap(elements, pq);
}
for(int j = 0; j < preiterations; j++) {
PriorityQueue<Integer> pq = new PriorityQueue<>();
testQueue(elements, pq);
}
}
long pqstart = System.nanoTime();
{
for(int j = 0; j < iterations; j++) {
PriorityQueue<Integer> pq = new PriorityQueue<>();
testQueue(elements, pq);
}
}
long pqtime = System.nanoTime() - pqstart;
long hstart = System.nanoTime();
{
for(int j = 0; j < iterations; j++) {
ComparableMinHeap<Integer> pq = new ComparableMinHeap<>();
testHeap(elements, pq);
}
}
long htime = System.nanoTime() - hstart;
// System.err.println("Heap performance test: us: " + htime*1E-9 + " java: " + pqtime*1E-9);
assertTrue("Heap performance regression - run test individually, since the hotspot optimizations may make the difference! " + htime + " >>= " + pqtime, htime < 1.1 * pqtime);
// 1.1 allows some difference in measuring, which can occur e.g. due to Jacoco instrumentation
}
private void testHeap(final List<Integer> elements, ComparableMinHeap<Integer> pq) {
// Insert all
for(int i = 0; i < elements.size(); i++) {
pq.add(elements.get(i));
}
// Poll first half.
final int half = elements.size() >> 1;
for(int i = 0; i < half; i++) {
assertEquals((int) pq.poll(), i);
// assertEquals((int) pq.poll(), queueSize - 1 - i);
}
assertEquals("Heap not half-empty?", elements.size() - half, pq.size());
pq.clear();
}
private void testQueue(final List<Integer> elements, Queue<Integer> pq) {
// Insert all
for(int i = 0; i < elements.size(); i++) {
pq.add(elements.get(i));
}
// Poll first half.
final int half = elements.size() >> 1;
for(int i = 0; i < half; i++) {
assertEquals((int) pq.poll(), i);
// assertEquals((int) pq.poll(), queueSize - 1 - i);
}
assertEquals("Heap not half-empty?", elements.size() - half, pq.size());
pq.clear();
}
} | elki-project/elki | elki-core-util/src/test/java/elki/utilities/datastructures/heap/HeapPerformanceTest.java | Java | agpl-3.0 | 4,083 | [
30522,
1013,
1008,
1008,
2023,
5371,
2003,
2112,
1997,
18995,
2072,
1024,
1008,
4044,
2005,
4975,
1047,
14141,
1011,
5097,
3569,
2011,
5950,
1011,
5090,
1008,
1008,
9385,
1006,
1039,
1007,
10476,
1008,
18995,
2072,
2458,
2136,
1008,
1008,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* (C) IT Sky Consulting GmbH 2015
* http://www.it-sky-consulting.com/
* Author: Karl Brodowsky
* Date: 2015-03-11
* License: GPL v2 (See https://de.wikipedia.org/wiki/GNU_General_Public_License )
*/
#include <stdio.h>
#include <stdlib.h>
#include <arithmetic.h>
const uint128 TEN_18 = 1000000000000000000L;
const uint128 TEN_19 = 10000000000000000000L;
// const uint128 TEN_36 = TEN_19*TEN_19;
const uint128 EIGHT_21 = ((uint128)1)<<(21*3);
unsigned_result_with_carry adc(uint64 x, uint64 y, uint8 carry) {
unsigned_result_with_carry result;
uint64 z = x + y + carry;
int xh = CHECK_HIGHEST_BIT(x);
int yh = CHECK_HIGHEST_BIT(y);
int zh = CHECK_HIGHEST_BIT(z);
int cc = zh ? (xh & yh) : (xh | yh);
result.value = z;
result.carry = (uint8) cc;
return result;
}
unsigned_result_with_carry add(uint64 x, uint64 y) {
return adc(x, y, 0);
}
unsigned_result_with_carry adc_sx(unsigned_result_with_carry rx, uint64 y) {
return adc(rx.value, y, rx.carry);
}
unsigned_result_with_carry adc_sy(uint64 x, unsigned_result_with_carry ry) {
return adc(x, ry.value, ry.carry);
}
unsigned_result_with_carry sbb(uint64 x, uint64 y, uint8 carry) {
unsigned_result_with_carry result;
uint64 z = x - y - carry;
int xh = CHECK_HIGHEST_BIT(x);
int yh = CHECK_HIGHEST_BIT(y);
int zh = CHECK_HIGHEST_BIT(z);
int cc = xh ? (yh & zh) : (yh | zh);
result.value = z;
result.carry = (uint8) cc;
return result;
}
unsigned_result_with_carry sub(uint64 x, uint64 y) {
return sbb(x, y, 0);
}
uint64 lower(uint128 x) {
return (uint64) x;
}
uint64 upper(uint128 x) {
return (uint64) (x >> 64);
}
uint128 combine(uint64 upper, uint64 lower) {
return (((uint128) upper)<<64) + lower;
}
uint128 mul(uint64 x, uint64 y) {
uint128 result = (uint128) x * (uint128) y;
return result;
}
unsigned_divx_result divx(uint128 x, uint64 y) {
// printf("x=%lld y=%lld\n", (uint64) x, y);
// fflush(stdout);
uint128 q = x / y;
/* printf("q=%lld x=%lld y=%lld\n", (uint64) q, (uint64) x, y); */
/* fflush(stdout); */
uint64 r = x % y;
/* printf("r=%lld q=%lld x=%lld y=%lld\n", r, (uint64) q, (uint64) x, y); */
/* fflush(stdout); */
uint64 ql = lower(q);
/* printf("ql=%lld r=%lld q=%lld x=%lld y=%lld\n", ql, r, (uint64) q, (uint64) x, y); */
/* fflush(stdout); */
uint64 qu = upper(q);
/* printf("qu=%lld ql=%lld r=%lld q=%lld x=%lld y=%lld\n", qu, ql, r, (uint64) q, (uint64) x, y); */
/* fflush(stdout); */
unsigned_divx_result result;
result.quotient = ql;
result.remainder = r;
result.overflow = (qu != 0);
return result;
}
void sprint_uint128_dec(char *buf, uint128 x) {
uint64 xl = (uint64) (x % TEN_18);
uint128 xx = x / TEN_18;
uint64 xm = (uint64) (xx % TEN_18);
uint64 xh = (uint64) (xx / TEN_18);
if (xh != 0) {
sprintf(buf, "%llu%018llu%018llu", xh, xm, xl);
} else if (xm != 0) {
sprintf(buf, "%llu%018llu", xm, xl);
} else {
sprintf(buf, "%llu", xl);
}
}
void sprint_uint128_hex(char *buf, uint128 x) {
uint64 xl = lower(x);
uint64 xh = upper(x);
if (xh != 0) {
sprintf(buf, "%llx%016llx", xh, xl);
} else {
sprintf(buf, "%llx", xl);
}
}
void sprint_uint128_oct(char *buf, uint128 x) {
uint64 xl = (uint64) (x % EIGHT_21);
uint128 xx = x / EIGHT_21;
uint64 xm = (uint64) (xx % EIGHT_21);
uint64 xh = (uint64) (xx / EIGHT_21);
if (xh != 0) {
sprintf(buf, "%llo%021llo%021llo", xh, xm, xl);
} else if (xm != 0) {
sprintf(buf, "%llo%021llo", xm, xl);
} else {
sprintf(buf, "%llo", xl);
}
}
| 8l/c-arithmetic | lib/arithmetic.c | C | gpl-2.0 | 3,551 | [
30522,
1013,
1008,
1006,
1039,
1007,
2009,
3712,
10552,
18289,
2325,
1008,
8299,
1024,
1013,
1013,
7479,
1012,
2009,
1011,
3712,
1011,
10552,
1012,
4012,
1013,
1008,
3166,
1024,
6382,
22953,
3527,
9333,
4801,
1008,
3058,
1024,
2325,
1011,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
watch: clean
NODE_ENV=development `npm bin`/webpack -w
package: build
mkdir -p dist
zip -x\*.DS_Store dist/linkgrabber.zip -r css html images js vendor manifest.json
build: clean
NODE_ENV=production `npm bin`/webpack
lint:
node_modules/.bin/eslint src
clean:
rm -rf js
rm -rf dist
| 7fffffff/linkgrabber | Makefile | Makefile | mit | 292 | [
30522,
3422,
1024,
4550,
13045,
1035,
4372,
2615,
1027,
2458,
1036,
27937,
2213,
8026,
1036,
1013,
4773,
23947,
1011,
1059,
7427,
1024,
3857,
12395,
4305,
2099,
1011,
1052,
4487,
3367,
14101,
1011,
1060,
1032,
1008,
1012,
16233,
1035,
3573,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#include "../../../pchdef.h"
#include "../../playerbot.h"
#include "WarriorMultipliers.h"
#include "DpsWarriorStrategy.h"
using namespace ai;
class DpsWarriorStrategyActionNodeFactory : public NamedObjectFactory<ActionNode>
{
public:
DpsWarriorStrategyActionNodeFactory()
{
creators["overpower"] = &overpower;
creators["melee"] = &melee;
creators["charge"] = &charge;
creators["bloodthirst"] = &bloodthirst;
creators["mortal strike"] = &mortal_strike;
creators["whirlwind"] = &whirlwind;
creators["death wish"] = &death_wish;
creators["execute"] = &execute;
}
private:
static ActionNode* overpower(PlayerbotAI* ai)
{
return new ActionNode ("overpower",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("melee"), NULL),
/*C*/ NULL);
}
static ActionNode* melee(PlayerbotAI* ai)
{
return new ActionNode ("melee",
/*P*/ NextAction::array(0, new NextAction("charge"), NULL),
/*A*/ NULL,
/*C*/ NULL);
}
static ActionNode* charge(PlayerbotAI* ai)
{
return new ActionNode ("charge",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("reach melee"), NULL),
/*C*/ NULL);
}
static ActionNode* bloodthirst(PlayerbotAI* ai)
{
return new ActionNode ("bloodthirst",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("heroic strike"), NULL),
/*C*/ NULL);
}
static ActionNode* mortal_strike(PlayerbotAI* ai)
{
return new ActionNode("mortal strike",
/*P*/ NextAction::array(0, new NextAction("berserker stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("heroic strike"), NULL),
/*C*/ NULL);
}
static ActionNode* whirlwind(PlayerbotAI* ai)
{
return new ActionNode("whirlwind",
/*P*/ NextAction::array(0, new NextAction("berserker stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("bloodthirst"), NULL),
/*C*/ NULL);
}
static ActionNode* death_wish(PlayerbotAI* ai)
{
return new ActionNode ("death wish",
/*P*/ NULL,
/*A*/ NextAction::array(0, new NextAction("berserker rage"), NULL),
/*C*/ NULL);
}
static ActionNode* execute(PlayerbotAI* ai)
{
return new ActionNode ("execute",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("heroic strike"), NULL),
/*C*/ NULL);
}
};
DpsWarriorStrategy::DpsWarriorStrategy(PlayerbotAI* ai) : GenericWarriorStrategy(ai)
{
actionNodeFactories.Add(new DpsWarriorStrategyActionNodeFactory());
}
NextAction** DpsWarriorStrategy::getDefaultActions()
{
return NextAction::array(0, new NextAction("bloodthirst", ACTION_HIGH + 1), new NextAction("whirlwind", ACTION_HIGH + 1), NULL);
}
void DpsWarriorStrategy::InitTriggers(std::list<TriggerNode*> &triggers)
{
GenericWarriorStrategy::InitTriggers(triggers);
triggers.push_back(new TriggerNode(
"enemy out of melee",
NextAction::array(0, new NextAction("charge", ACTION_NORMAL + 9),
new NextAction("intercept", ACTION_NORMAL + 9), NULL)));
triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("execute", ACTION_HIGH + 4), NULL)));
triggers.push_back(new TriggerNode(
"hamstring",
NextAction::array(0, new NextAction("hamstring", ACTION_INTERRUPT), NULL)));
triggers.push_back(new TriggerNode(
"victory rush",
NextAction::array(0, new NextAction("victory rush", ACTION_HIGH + 3), NULL)));
triggers.push_back(new TriggerNode(
"death wish",
NextAction::array(0, new NextAction("death wish", ACTION_HIGH + 2), NULL)));
}
void DpsWarrirorAoeStrategy::InitTriggers(std::list<TriggerNode*> &triggers)
{
triggers.push_back(new TriggerNode(
"rend on attacker",
NextAction::array(0, new NextAction("rend on attacker", ACTION_HIGH + 1), NULL)));
triggers.push_back(new TriggerNode(
"light aoe",
NextAction::array(0, new NextAction("thunder clap", ACTION_HIGH + 2),
new NextAction("demoralizing shout", ACTION_HIGH + 2),
new NextAction("cleave", ACTION_HIGH + 2), NULL)));
triggers.push_back(new TriggerNode(
"medium aoe",
NextAction::array(0, new NextAction("sweeping strikes", ACTION_HIGH + 3), new NextAction("recklessness", ACTION_HIGH + 2), NULL)));
}
| daddycaddy/TC-PB | src/plugins/playerbot/strategy/warrior/DpsWarriorStrategy.cpp | C++ | gpl-2.0 | 4,660 | [
30522,
1001,
2421,
1000,
1012,
1012,
1013,
1012,
1012,
1013,
1012,
1012,
1013,
7473,
14945,
12879,
1012,
1044,
1000,
1001,
2421,
1000,
1012,
1012,
1013,
1012,
1012,
1013,
2447,
18384,
1012,
1044,
1000,
1001,
2421,
1000,
6750,
12274,
7096,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Interacting with notifications

This directory contains three example projects to get started building a Digital Wellbeing experiment with the Android Notifications API. These building block projects could be used as the starting point for a new experiment, a reference for adding notification handling code to another app, or just to learn more about the API.
You can learn more about the [Android Notifications API](https://developer.android.com/guide/topics/ui/notifiers/notifications) and the [Notification Listener API](https://developer.android.com/reference/android/service/notification/NotificationListenerService) in the developer documentation.
## Example 1: Notification listener
[In this example project](./notifications-listener), the app will create a Notification Listener service and register itself to receive notifications. The service adds all the notifications it receives to a database and presents them in a list view. This example uses the [Notification Listener API](https://developer.android.com/reference/android/service/notification/NotificationListenerService).
## Example 2: Notifications snoozer
[This example](./notification-snoozer) demonstrates the snooze functionality of the Notifications API. With this API the delivery of notifications is deferred until some point in the future. Notifications can be snoozed for any amount of time; when a snooze time has expired the notification will either be sent or it can be snoozed again.
Like the Notification Listener, the app will display a list of current notifications. Each notification in the list shows a snooze button. By tapping this icon, the user can snooze the individual notification for 1 minute. When the notification is snoozed, it disappears from the System UI's Notification Drawer and will be redelivered once the snooze time is over.
This example uses the [Notification Listener API](https://developer.android.com/reference/android/service/notification/NotificationListenerService). Please note that it's not possible to programmatically unsnooze a notification once snoozed, even if the demo app is closed.
## Example 3: Notification generator
[This example](./notification-generator) is a simple notification generator, which can be used for testing your notification handling application. The application runs as a background service, and will continue to send notifications after the foreground window has been closed. You can set the frequency of notifications using the slider, and start and stop the service using the toggle. | googlecreativelab/digital-wellbeing-experiments-toolkit | notifications/README.md | Markdown | apache-2.0 | 2,584 | [
30522,
1001,
21935,
2007,
26828,
2015,
999,
1031,
26828,
2015,
1033,
1006,
1012,
1012,
1013,
10047,
2290,
1013,
26828,
2015,
1012,
1052,
3070,
1007,
2023,
14176,
3397,
2093,
2742,
3934,
2000,
2131,
2318,
2311,
1037,
3617,
2092,
19205,
3070,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using RippleCommonUtilities;
using RippleDictionary;
using RippleScreenApp.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Speech.Synthesis;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace RippleScreenApp
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class ScreenWindow : Window
{
internal static RippleDictionary.Ripple rippleData;
private static TextBlock tbElement = new TextBlock();
private static TextBlock fullScreenTbElement = new TextBlock();
private static Image imgElement = new Image();
private static Image fullScreenImgElement = new Image();
private static String currentVideoURI = String.Empty;
private static RippleDictionary.ContentType currentScreenContent = ContentType.Nothing;
private static bool loopVideo = false;
private BackgroundWorker myBackgroundWorker;
private BackgroundWorker pptWorker;
Utilities.ScriptingHelper helper;
public System.Windows.Forms.Integration.WindowsFormsHost host;
public System.Windows.Forms.WebBrowser browserElement;
internal static String personName;
private long prevRow;
private Tile currentTile = null;
private bool StartVideoPlayed = false;
public static String sessionGuid = String.Empty;
public ScreenWindow()
{
try
{
InitializeComponent();
LoadData();
SetObjectProperties();
//Start receiving messages
Utilities.MessageReceiver.StartReceivingMessages(this);
}
catch (Exception ex)
{
//Exit and do nothing
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Screen {0}", ex.Message);
}
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
try
{
this.WindowState = System.Windows.WindowState.Maximized;
ResetUI();
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Window Loaded {0}", ex.Message);
}
}
private void SetObjectProperties()
{
//Initialize video properties
this.IntroVideoControl.Source = new Uri(Helper.GetAssetURI(rippleData.Screen.ScreenContents["IntroVideo"].Content));
this.IntroVideoControl.ScrubbingEnabled = true;
//Set image elements properties
imgElement.Stretch = Stretch.Fill;
fullScreenImgElement.Stretch = Stretch.Fill;
//Set text block properties
tbElement.FontSize = 50;
tbElement.Margin = new Thickness(120, 120, 120, 0);
tbElement.TextWrapping = TextWrapping.Wrap;
fullScreenTbElement.FontSize = 50;
fullScreenTbElement.Margin = new Thickness(120, 120, 120, 0);
fullScreenTbElement.TextWrapping = TextWrapping.Wrap;
}
/// <summary>
/// Method that loads the configured data for the Screen, right now the Source is XML
/// </summary>
private void LoadData()
{
try
{
//Loads the local dictionary data from the configuration XML
rippleData = RippleDictionary.Dictionary.GetRipple(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location));
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Load Data for Screen {0}", ex.Message);
throw;
}
}
/// <summary>
/// Resets the UI to System locked mode.
/// </summary>
private void ResetUI()
{
try
{
Globals.ResetGlobals();
currentVideoURI = String.Empty;
currentScreenContent = ContentType.Nothing;
loopVideo = false;
StartVideoPlayed = false;
sessionGuid = String.Empty;
//Pick up content based on the "LockScreen" ID
ProjectContent(rippleData.Screen.ScreenContents["LockScreen"]);
//Commit the telemetry data
Utilities.TelemetryWriter.CommitTelemetryAsync();
}
catch (Exception ex)
{
//Do nothing
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Reset UI for Screen {0}", ex.Message);
}
}
/// <summary>
/// Code will receive messages from the floor
/// Invoke appropriate content projection based on the tile ID passed
/// </summary>
/// <param name="val"></param>
public void OnMessageReceived(string val)
{
try
{
//Check for reset
if (val.Equals("Reset"))
{
//Update the previous entry
Utilities.TelemetryWriter.UpdatePreviousEntry();
//Reset the system
ResetUI();
}
//Check for System start
//Check for System start
else if (val.StartsWith("System Start"))
{
//Load the telemetry Data
Utilities.TelemetryWriter.RetrieveTelemetryData();
//The floor has asked the screen to start the system
//Get the User Name
Globals.UserName = val.Split(':')[1];
//Get the person identity for the session
personName = String.IsNullOrEmpty(Globals.UserName) ? Convert.ToString(Guid.NewGuid()) : Globals.UserName;
Utilities.TelemetryWriter.AddTelemetryRow(rippleData.Floor.SetupID, personName, "Unlock", val, "Unlock");
//Set the system state
Globals.currentAppState = RippleSystemStates.UserDetected;
//Play the Intro Content
ProjectIntroContent(rippleData.Screen.ScreenContents["IntroVideo"]);
}
//Check for gestures
else if (val.StartsWith("Gesture"))
{
OnGestureInput(val.Split(':')[1]);
}
//Check for HTMl messages
else if (val.StartsWith("HTML"))
{
OnHTMLMessagesReceived(val.Split(':')[1]);
}
//Check for options- TODO need to figure out
else if (val.StartsWith("Option"))
{
//Do nothing
}
//Check if a content - tile mapping or in general content tag exists
else
{
if (rippleData.Screen.ScreenContents.ContainsKey(val) && rippleData.Screen.ScreenContents[val].Type != ContentType.Nothing)
{
//Set the system state
Globals.currentAppState = RippleSystemStates.OptionSelected;
ProjectContent(rippleData.Screen.ScreenContents[val]);
RippleCommonUtilities.LoggingHelper.LogTrace(1, "In Message Received {0} {1}:{2}", Utilities.TelemetryWriter.telemetryData.Tables[0].Rows.Count, Utilities.TelemetryWriter.telemetryData.Tables[0].Rows[Utilities.TelemetryWriter.telemetryData.Tables[0].Rows.Count - 1].ItemArray[6], DateTime.Now);
//Update the end time for the previous
Utilities.TelemetryWriter.UpdatePreviousEntry();
//Insert the new entry
Utilities.TelemetryWriter.AddTelemetryRow(rippleData.Floor.SetupID, personName, ((currentTile = GetFloorTileForID(val))==null)?"Unknown":currentTile.Name, val, (val == "Tile0") ? "Start" : "Option");
}
else
{
//Stop any existing projections
DocumentPresentation.HelperMethods.StopPresentation();
FullScreenContentGrid.Children.Clear();
ContentGrid.Children.Clear();
//Set focus for screen window also
Utilities.Helper.ClickOnScreenToGetFocus();
//Stop any existing videos
loopVideo = false;
VideoControl.Source = null;
FullScreenVideoControl.Source = null;
//Clean the images
fullScreenImgElement.Source = null;
imgElement.Source = null;
//Clear the header text
TitleLabel.Text = "";
//Dispose the objects
if(browserElement != null)
browserElement.Dispose();
browserElement = null;
if (host != null)
host.Dispose();
host = null;
if (helper != null)
helper.PropertyChanged -= helper_PropertyChanged;
helper = null;
currentScreenContent = ContentType.Nothing;
ShowText("No content available for this option, Please try some other tile option", "No Content");
}
}
}
catch (Exception ex)
{
//Do nothing
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in On message received for Screen {0}", ex.Message);
}
}
private void OnHTMLMessagesReceived(string p)
{
try
{
if(p.StartsWith("SessionID,"))
{
sessionGuid = p;
return;
}
if (helper != null && currentScreenContent == ContentType.HTML)
{
helper.MessageReceived(p);
}
}
catch (Exception ex)
{
//Do nothing
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in OnHTMLMessagesReceived received for Screen {0}", ex.Message);
}
}
private void OnGestureInput(string inputGesture)
{
try
{
//PPT Mode - left and right swipe
if (inputGesture == GestureTypes.LeftSwipe.ToString() && currentScreenContent == ContentType.PPT)
{
//Acts as previous
DocumentPresentation.HelperMethods.GotoPrevious();
}
else if (inputGesture == GestureTypes.RightSwipe.ToString() && currentScreenContent == ContentType.PPT)
{
//Check again, Means the presentation ended on clicking next
if (!DocumentPresentation.HelperMethods.HasPresentationStarted())
{
//Change the screen
//ShowText("Your presentation has ended, Select some other option", "Select some other option");
ShowImage(@"\Assets\Images\pptend.png", "Presentation Ended");
//Set focus for screen window also
Utilities.Helper.ClickOnScreenToGetFocus();
}
//Acts as next
DocumentPresentation.HelperMethods.GotoNext();
//Check again, Means the presentation ended on clicking next
if (!DocumentPresentation.HelperMethods.HasPresentationStarted())
{
//Change the screen text
//ShowText("Your presentation has ended, Select some other option", "Select some other option");
ShowImage(@"\Assets\Images\pptend.png", "Presentation Ended");
//Set focus for screen window also
Utilities.Helper.ClickOnScreenToGetFocus();
}
}
//Browser mode
else if (currentScreenContent == ContentType.HTML)
{
OnHTMLMessagesReceived(inputGesture.ToString());
}
//Set focus for screen window also
//Utilities.Helper.ClickOnScreenToGetFocus();
}
catch (Exception ex)
{
//Do nothing
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in OnGestureInput received for Screen {0}", ex.Message);
}
}
#region Content Projection methods
/// <summary>
/// Identifies the content type and project accordingly
/// </summary>
/// <param name="screenContent"></param>
private void ProjectContent(RippleDictionary.ScreenContent screenContent)
{
try
{
if (screenContent.Type == ContentType.HTMLMessage)
{
if (helper != null && currentScreenContent == ContentType.HTML)
{
helper.MessageReceived(screenContent.Content);
return;
}
}
//Stop any existing projections
DocumentPresentation.HelperMethods.StopPresentation();
FullScreenContentGrid.Children.Clear();
ContentGrid.Children.Clear();
//Set focus for screen window also
Utilities.Helper.ClickOnScreenToGetFocus();
//Stop any existing videos
loopVideo = false;
VideoControl.Source = null;
FullScreenVideoControl.Source = null;
//Clean the images
fullScreenImgElement.Source = null;
imgElement.Source = null;
//Clear the header text
TitleLabel.Text = "";
//Dispose the objects
if (browserElement != null)
browserElement.Dispose();
browserElement = null;
if (host != null)
host.Dispose();
host = null;
if (helper != null)
helper.PropertyChanged -= helper_PropertyChanged;
helper = null;
currentScreenContent = screenContent.Type;
if (screenContent.Id == "Tile0" && StartVideoPlayed)
{
currentScreenContent = ContentType.Image;
ShowImage("\\Assets\\Images\\default_start.png", screenContent.Header);
return;
}
switch (screenContent.Type)
{
case RippleDictionary.ContentType.HTML:
ShowBrowser(screenContent.Content, screenContent.Header);
break;
case RippleDictionary.ContentType.Image:
ShowImage(screenContent.Content, screenContent.Header);
break;
case RippleDictionary.ContentType.PPT:
ShowPPT(screenContent.Content, screenContent.Header);
break;
case RippleDictionary.ContentType.Text:
ShowText(screenContent.Content, screenContent.Header);
break;
case RippleDictionary.ContentType.Video:
loopVideo = (screenContent.LoopVideo == null) ? false : Convert.ToBoolean(screenContent.LoopVideo);
if (screenContent.Id == "Tile0")
StartVideoPlayed = true;
ShowVideo(screenContent.Content, screenContent.Header);
break;
}
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in ProjectContent Method for screen {0}", ex.Message);
}
}
private void ProjectIntroContent(RippleDictionary.ScreenContent screenContent)
{
try
{
//Dispose the previous content
//Stop any existing projections
DocumentPresentation.HelperMethods.StopPresentation();
FullScreenContentGrid.Children.Clear();
ContentGrid.Children.Clear();
//Set focus for screen window also
Utilities.Helper.ClickOnScreenToGetFocus();
//Stop any existing videos
loopVideo = false;
VideoControl.Source = null;
FullScreenVideoControl.Source = null;
//Clean the images
fullScreenImgElement.Source = null;
imgElement.Source = null;
//Clear the header text
TitleLabel.Text = "";
if (browserElement != null)
browserElement.Dispose();
browserElement = null;
if (host != null)
host.Dispose();
host = null;
if (helper != null)
helper.PropertyChanged -= helper_PropertyChanged;
helper = null;
//Play the Intro video
this.TitleLabel.Text = "";
ContentGrid.Visibility = Visibility.Collapsed;
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
IntroVideoControl.Visibility = Visibility.Visible;
VideoControl.Visibility = Visibility.Collapsed;
VideoGrid.Visibility = Visibility.Visible;
IntroVideoControl.Play();
this.UpdateLayout();
myBackgroundWorker = new BackgroundWorker();
myBackgroundWorker.DoWork += myBackgroundWorker_DoWork;
myBackgroundWorker.RunWorkerCompleted += myBackgroundWorker_RunWorkerCompleted;
myBackgroundWorker.RunWorkerAsync(rippleData.Floor.Start.IntroVideoWaitPeriod);
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in ProjectIntroContent Method for screen {0}", ex.Message);
}
}
private void myBackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
//System has been started, it just finished playing the intro video
if (Globals.currentAppState == RippleSystemStates.UserDetected)
{
this.IntroVideoControl.Stop();
//this.IntroVideoControl.Source = null;
this.IntroVideoControl.Visibility = System.Windows.Visibility.Collapsed;
ShowGotoStartContent();
}
}
private void myBackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
{
System.Threading.Thread.Sleep(Convert.ToInt16(e.Argument) * 1000);
}
/// <summary>
/// Code to project a video
/// If the Header value is not provided, the content is projected in full screen mode
/// </summary>
/// <param name="Content"></param>
/// <param name="header"></param>
private void ShowVideo(String Content, String header)
{
try
{
//Check if header is null
//Null - Show full screen content
if (String.IsNullOrEmpty(header))
{
//Show the full screen video control
currentVideoURI = Helper.GetAssetURI(Content);
FullScreenVideoControl.Source = new Uri(currentVideoURI);
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Visible;
FullScreenVideoControl.Play();
}
else
{
TitleLabel.Text = header;
currentVideoURI = Helper.GetAssetURI(Content);
VideoControl.Source = new Uri(currentVideoURI);
ContentGrid.Visibility = Visibility.Collapsed;
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
VideoControl.Visibility = Visibility.Visible;
VideoGrid.Visibility = Visibility.Visible;
VideoControl.Play();
}
this.UpdateLayout();
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Show Video method {0}", ex.Message);
}
}
/// <summary>
/// Code to display text
/// If the Header value is not provided, the content is projected in full screen mode
/// </summary>
/// <param name="Content"></param>
/// <param name="header"></param>
private void ShowText(String Content, String header)
{
try
{
//Check if header is null
//Null - Show full screen content
if (String.IsNullOrEmpty(header))
{
//Show the full screen control with text
fullScreenTbElement.Text = Content;
FullScreenContentGrid.Children.Clear();
FullScreenContentGrid.Children.Add(fullScreenTbElement);
FullScreenContentGrid.Visibility = Visibility.Visible;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
}
else
{
TitleLabel.Text = header;
tbElement.Text = Content;
ContentGrid.Children.Clear();
ContentGrid.Children.Add(tbElement);
ContentGrid.Visibility = Visibility.Visible;
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
VideoGrid.Visibility = Visibility.Collapsed;
}
this.UpdateLayout();
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Show Text method {0}", ex.Message);
}
}
/// <summary>
/// Code to project a PPT
/// If the Header value is not provided, the content is projected in full screen mode
/// </summary>
/// <param name="Content"></param>
/// <param name="header"></param>
private void ShowPPT(String Content, String header)
{
try
{
//Check if header is null
//Null - Show full screen content
if (String.IsNullOrEmpty(header))
{
//Show the full screen video control
FullScreenContentGrid.Visibility = Visibility.Visible;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
}
else
{
TitleLabel.Text = header;
ContentGrid.Visibility = Visibility.Visible;
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
VideoGrid.Visibility = Visibility.Collapsed;
}
this.UpdateLayout();
DocumentPresentation.HelperMethods.StartPresentation(Helper.GetAssetURI(Content));
//ShowText("Please wait while we load your presentation", header);
//ShowImage(@"\Assets\Images\loading.png", header);
//this.UpdateLayout();
//pptWorker = new BackgroundWorker();
//pptWorker.DoWork += pptWorker_DoWork;
//pptWorker.RunWorkerAsync(Content);
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Show PPT method {0}", ex.Message);
}
}
void pptWorker_DoWork(object sender, DoWorkEventArgs e)
{
DocumentPresentation.HelperMethods.StartPresentation(Helper.GetAssetURI(e.Argument.ToString()));
}
/// <summary>
/// Code to project an image
/// If the Header value is not provided, the content is projected in full screen mode
/// </summary>
/// <param name="Content"></param>
/// <param name="header"></param>
private void ShowImage(String Content, String header)
{
try
{
//Check if header is null
//Null - Show full screen content
if (String.IsNullOrEmpty(header))
{
//Show the full screen control with text
fullScreenImgElement.Source = new BitmapImage(new Uri(Helper.GetAssetURI(Content)));
FullScreenContentGrid.Children.Clear();
FullScreenContentGrid.Children.Add(fullScreenImgElement);
FullScreenContentGrid.Visibility = Visibility.Visible;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
}
else
{
TitleLabel.Text = header;
imgElement.Source = new BitmapImage(new Uri(Helper.GetAssetURI(Content)));
ContentGrid.Children.Clear();
ContentGrid.Children.Add(imgElement);
ContentGrid.Visibility = Visibility.Visible;
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
VideoGrid.Visibility = Visibility.Collapsed;
}
this.UpdateLayout();
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Show Image {0}", ex.Message);
}
}
/// <summary>
/// Code to show browser based content, applicable for URL's
/// If the Header value is not provided, the content is projected in full screen mode
/// </summary>
/// <param name="Content"></param>
/// <param name="header"></param>
private void ShowBrowser(String Content, String header)
{
try
{
//Check if header is null
//Null - Show full screen content
if (String.IsNullOrEmpty(header))
{
//Show the full screen video control
//Display HTML content
host = new System.Windows.Forms.Integration.WindowsFormsHost();
browserElement = new System.Windows.Forms.WebBrowser();
browserElement.ScriptErrorsSuppressed = true;
helper = new Utilities.ScriptingHelper(this);
browserElement.ObjectForScripting = helper;
host.Child = browserElement;
helper.PropertyChanged += helper_PropertyChanged;
FullScreenContentGrid.Children.Clear();
FullScreenContentGrid.Children.Add(host);
FullScreenContentGrid.Visibility = Visibility.Visible;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
}
else
{
TitleLabel.Text = header;
host = new System.Windows.Forms.Integration.WindowsFormsHost();
browserElement = new System.Windows.Forms.WebBrowser();
browserElement.ScriptErrorsSuppressed = true;
helper = new Utilities.ScriptingHelper(this);
host.Child = browserElement;
browserElement.ObjectForScripting = helper;
helper.PropertyChanged += helper_PropertyChanged;
ContentGrid.Children.Clear();
ContentGrid.Children.Add(host);
ContentGrid.Visibility = Visibility.Visible;
FullScreenContentGrid.Visibility = Visibility.Collapsed;
FullScreenVideoGrid.Visibility = Visibility.Collapsed;
VideoGrid.Visibility = Visibility.Collapsed;
}
String fileLocation = Helper.GetAssetURI(Content);
String pageUri = String.Empty;
//Local file
if (File.Exists(fileLocation))
{
String[] PathParts = fileLocation.Split(new char[] { ':' });
pageUri = "file://127.0.0.1/" + PathParts[0] + "$" + PathParts[1];
}
//Web hosted file
else
{
pageUri = Content;
}
browserElement.Navigate(pageUri);
this.UpdateLayout();
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in Show Browser {0}", ex.Message);
}
}
#endregion
#region Helpers
private Tile GetFloorTileForID(string TileID)
{
Tile reqdTile = null;
try
{
reqdTile = rippleData.Floor.Tiles[TileID];
}
catch (Exception)
{
try
{
reqdTile = rippleData.Floor.Tiles[TileID.Substring(0, TileID.LastIndexOf("SubTile"))].SubTiles[TileID];
}
catch (Exception)
{
return null;
}
}
return reqdTile;
}
#endregion
private void VideoControl_MediaEnded(object sender, RoutedEventArgs e)
{
if (currentScreenContent == ContentType.Video && loopVideo && (!String.IsNullOrEmpty(currentVideoURI)))
{
//Replay the video
VideoControl.Source = new Uri(currentVideoURI);
VideoControl.Play();
}
}
private void FullScreenVideoControl_MediaEnded(object sender, RoutedEventArgs e)
{
if (currentScreenContent == ContentType.Video && loopVideo && (!String.IsNullOrEmpty(currentVideoURI)))
{
//Replay the video
FullScreenVideoControl.Source = new Uri(currentVideoURI);
FullScreenVideoControl.Play();
}
}
private void ShowGotoStartContent()
{
//Set the system state
Globals.currentAppState = RippleSystemStates.UserWaitToGoOnStart;
ProjectContent(rippleData.Screen.ScreenContents["GotoStart"]);
}
private void IntroVideoControl_MediaEnded(object sender, RoutedEventArgs e)
{
//System has been started, it just finished playing the intro video
//if (Globals.currentAppState == RippleSystemStates.UserDetected)
//{
// this.IntroVideoControl.Stop();
// ShowGotoStartContent();
//}
}
private void Window_Closing_1(object sender, CancelEventArgs e)
{
RippleCommonUtilities.LoggingHelper.StopLogging();
}
//Handles messages sent by HTML animations
void helper_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
try
{
var scriptingHelper = sender as Utilities.ScriptingHelper;
if (scriptingHelper != null)
{
if (e.PropertyName == "SendMessage")
{
if ((!String.IsNullOrEmpty(scriptingHelper.SendMessage)) && currentScreenContent == ContentType.HTML)
{
//Send the screen a message for HTML parameter passing
Utilities.MessageReceiver.SendMessage("HTML:" + scriptingHelper.SendMessage);
}
}
}
}
catch (Exception ex)
{
RippleCommonUtilities.LoggingHelper.LogTrace(1, "Went wrong in helper property changed event {0}", ex.Message);
}
}
}
}
| Microsoft/kinect-ripple | Ripple/RippleScreenApp/ScreenWindow.xaml.cs | C# | mit | 33,912 | [
30522,
2478,
24644,
9006,
8202,
21823,
15909,
3111,
1025,
2478,
26862,
28097,
5649,
1025,
2478,
24644,
18182,
29098,
1012,
16548,
1025,
2478,
2291,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
2478,
2291,
1012,
6922,
5302,
9247,
1025,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import React from "react"
import Img from "gatsby-image"
import { StaticQuery, graphql } from "gatsby"
import html5 from "../images/html5.svg"
import js from "../images/javascript.svg"
import jQuery from "../images/jquery.svg"
import php from "../images/php.svg"
import python from "../images/python.svg"
import css3 from "../images/css3.svg"
import sass from "../images/sass.svg"
import react from "../images/react.svg"
import redux from "../images/redux.svg"
import angular from "../images/angular.svg"
import nodejs from "../images/nodejs.svg"
import express from "../images/express.svg"
import graphQL from "../images/graphql.svg"
import apollo from "../images/apollo.svg"
import laravel from "../images/laravel.svg"
import django from "../images/django.svg"
import ruby from "../images/ruby.svg"
import rails from "../images/rails.svg"
import firebase from "../images/firebase.svg"
import mongodb from "../images/mongodb.svg"
import postgresql from "../images/postgresql.svg"
const About = ({ id }) => (
<StaticQuery
query={graphql`
query AboutImgQuery {
aboutImg: file(relativePath: { eq: "towers.jpg" }) {
childImageSharp {
fluid(maxWidth: 1200) {
...GatsbyImageSharpFluid
}
}
}
}
`}
render={data => (
<section id={id} className="section cover">
<Img
title="About image"
alt="Towers"
fluid={data.aboutImg.childImageSharp.fluid}
style={{
borderBottom: "2px solid #0F2027",
position: "absolute",
left: 0,
top: 0,
width: "100%",
height: "100%",
}}
/>
<div className="overlay" />
<div className="about">
<h1 className="name mt-5">
<b>About Me</b>
</h1>
<div className="description mb-4">
<h5 className="greetings">
I'm a developer who is driven by the motivation to learn and
utilize all of the <br />
newest and leading software technologies, tools and frameworks.{" "}
<br />
Here are some of the technologies I have worked with:
</h5>
</div>
<div className="svg-container">
<div className="logo-container">
<a
href="https://rebrand.ly/w1zfk5"
target="_blank"
rel="noopener noreferrer"
>
<img src={html5} alt="html5" />
</a>
<h5>HTML</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/gpe80b"
target="_blank"
rel="noopener noreferrer"
>
<img src={css3} alt="css3" />
</a>
<h5>CSS</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/ac3zez"
target="_blank"
rel="noopener noreferrer"
>
<img src={sass} alt="sass" />
</a>
<h5>Sass</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/gdw8nf"
target="_blank"
rel="noopener noreferrer"
>
<img src={js} alt="js" />
</a>
<h5>JavaScript</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/t8q4kk"
target="_blank"
rel="noopener noreferrer"
>
<img src={jQuery} alt="jQuery" />
</a>
<h5>jQuery</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/5dmk0k"
target="_blank"
rel="noopener noreferrer"
>
<img src={php} alt="php" />
</a>
<h5>PHP</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/51v3f7"
target="_blank"
rel="noopener noreferrer"
>
<img src={ruby} alt="ruby" />
</a>
<h5>Ruby</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/u9f3bu"
target="_blank"
rel="noopener noreferrer"
>
<img src={python} alt="python" />
</a>
<h5>Python</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/4711zo"
target="_blank"
rel="noopener noreferrer"
>
<img src={react} alt="react" />
</a>
<h5>React</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/f4fdtb"
target="_blank"
rel="noopener noreferrer"
>
<img src={redux} alt="redux" />
</a>
<h5>Redux</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/0af3pn"
target="_blank"
rel="noopener noreferrer"
>
<img src={angular} alt="angular" />
</a>
<h5>Angular</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/fno5hy"
target="_blank"
rel="noopener noreferrer"
>
<img src={nodejs} alt="nodejs" />
</a>
<h5>Node</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/8pwvla"
target="_blank"
rel="noopener noreferrer"
>
<img src={express} alt="express" />
</a>
<h5>Express</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/chgco7"
target="_blank"
rel="noopener noreferrer"
>
<img src={graphQL} alt="graphQL" />
</a>
<h5>GraphQL</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/s8v7qq"
target="_blank"
rel="noopener noreferrer"
>
<img src={apollo} alt="apollo" />
</a>
<h5>Apollo</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/jm3gu8"
target="_blank"
rel="noopener noreferrer"
>
<img src={laravel} alt="laravel" />
</a>
<h5>Laravel</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/hbkv6c"
target="_blank"
rel="noopener noreferrer"
>
<img src={django} alt="django" />
</a>
<h5>Django</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/71jw07"
target="_blank"
rel="noopener noreferrer"
>
<img src={rails} alt="rails" />
</a>
<h5>Ruby on Rails</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/8jg10f"
target="_blank"
rel="noopener noreferrer"
>
<img src={firebase} alt="firebase" />
</a>
<h5>Firebase</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/1lamx3"
target="_blank"
rel="noopener noreferrer"
>
<img src={mongodb} alt="mongodb" />
</a>
<h5>MongoDB</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/az0ssm"
target="_blank"
rel="noopener noreferrer"
>
<img src={postgresql} alt="postgresql" />
</a>
<h5>PostgreSQL</h5>
</div>
</div>
<div className="arrow animated bounceInDown" />
</div>
</section>
)}
/>
)
export default About
| ajspotts/ajspotts.github.io | src/components/about.js | JavaScript | mit | 9,133 | [
30522,
12324,
10509,
2013,
1000,
10509,
1000,
12324,
10047,
2290,
2013,
1000,
11721,
3215,
3762,
1011,
3746,
1000,
12324,
1063,
10763,
4226,
2854,
1010,
10629,
4160,
2140,
1065,
2013,
1000,
11721,
3215,
3762,
1000,
12324,
16129,
2629,
2013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package cat.udl.menufinder.fragments;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import cat.udl.menufinder.R;
import cat.udl.menufinder.activities.DetailRestaurantActivity;
import cat.udl.menufinder.activities.HomeActivity;
import cat.udl.menufinder.activities.ReviewRestaurantActivity;
import cat.udl.menufinder.adapters.RestaurantsAdapter;
import cat.udl.menufinder.application.MasterFragment;
import cat.udl.menufinder.models.AccountSubscription;
import cat.udl.menufinder.models.Restaurant;
import cat.udl.menufinder.utils.Utils;
import static cat.udl.menufinder.utils.Constants.KEY_RESTAURANT;
public class SubscriptionsFragment extends MasterFragment {
protected RestaurantsAdapter adapter;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_restaurants, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
configHeader();
configList();
}
protected void configHeader() {
}
protected void configList() {
RecyclerView recyclerView = (RecyclerView) getView().findViewById(R.id.list);
RecyclerView.ItemDecoration itemDecoration = new DividerItemDecoration(
getActivity(), DividerItemDecoration.VERTICAL);
recyclerView.addItemDecoration(itemDecoration);
DefaultItemAnimator animator = new DefaultItemAnimator();
animator.setAddDuration(1000);
recyclerView.setItemAnimator(animator);
List<Restaurant> restaurants = getRestaurants();
adapter = new RestaurantsAdapter(getActivity(), restaurants, new RestaurantsFragment.OnRestaurantClickListener() {
@Override
public void onRestaurantClick(Restaurant restaurant, View view) {
DetailRestaurantFragment fragment = (DetailRestaurantFragment) getFragmentManager()
.findFragmentById(R.id.detail_fragment);
if (fragment != null && fragment.isInLayout()) {
fragment.update(restaurant);
} else {
Intent intent = new Intent(getActivity(), DetailRestaurantActivity.class);
intent.putExtra(KEY_RESTAURANT, restaurant);
if (Build.VERSION.SDK_INT >= 21) {
View image = view.findViewById(R.id.image);
ActivityOptionsCompat activityOptionsCompat =
ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(),
image, getString(R.string.image_restaurant));
startActivity(intent, activityOptionsCompat.toBundle());
} else {
startActivity(intent);
}
}
}
@Override
public void onShareClick(Restaurant restaurant) {
startActivity(Utils.getShareIntent(getString(R.string.share_text, restaurant.getName())));
}
@Override
public void onViewMapClick(Restaurant restaurant) {
HomeActivity activity = (HomeActivity) getActivity();
activity.loadFragment(R.id.content, RestaurantMapFragment.newInstance(restaurant));
}
@Override
public void onReViewClick(Restaurant restaurant) {
Intent intent = new Intent(getActivity(), ReviewRestaurantActivity.class);
intent.putExtra(KEY_RESTAURANT, restaurant);
startActivity(intent);
}
@Override
public void onFavouriteClick(Restaurant restaurant, boolean checked) {
AccountSubscription subscription = new AccountSubscription(getMasterApplication().getUsername(), restaurant.getId());
if (checked) getDbManager().addAccountSubscription(subscription);
else getDbManager().deleteAccountSubscription(subscription);
}
});
recyclerView.setAdapter(adapter);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
}
public List<Restaurant> getRestaurants() {
return getDbManager().getSubscribedRestaurantsOfAccount(getMasterApplication().getUsername());
}
public interface OnRestaurantClickListener {
void onRestaurantClick(Restaurant restaurant, View view);
void onShareClick(Restaurant restaurant);
void onViewMapClick(Restaurant restaurant);
void onReViewClick(Restaurant restaurant);
void onFavouriteClick(Restaurant restaurant, boolean checked);
}
}
| MenuFinder/AndroidClient | app/src/main/java/cat/udl/menufinder/fragments/SubscriptionsFragment.java | Java | gpl-3.0 | 5,205 | [
30522,
7427,
4937,
1012,
20904,
2140,
1012,
12183,
23695,
1012,
10341,
1025,
12324,
11924,
1012,
4180,
1012,
7848,
1025,
12324,
11924,
1012,
9808,
1012,
3857,
1025,
12324,
11924,
1012,
9808,
1012,
14012,
1025,
12324,
11924,
1012,
2490,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
describe('authoring', () => {
var GUID = 'urn:tag:superdesk-1';
var USER = 'user:1';
var ITEM: any = {guid: GUID};
beforeEach(window.module(($provide) => {
$provide.constant('lodash', _);
}));
beforeEach(window.module('angular-embed'));
beforeEach(window.module('superdesk.apps.publish'));
beforeEach(window.module('superdesk.core.preferences'));
beforeEach(window.module('superdesk.apps.archive'));
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.core.auth'));
beforeEach(window.module('superdesk.apps.workspace.content'));
beforeEach(window.module('superdesk.mocks'));
beforeEach(window.module('superdesk.core.privileges'));
beforeEach(window.module('superdesk.apps.desks'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.apps.vocabularies'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(window.module('superdesk.core.editor3'));
beforeEach(window.module('superdesk.apps.editor2'));
beforeEach(inject(($window) => {
$window.onbeforeunload = angular.noop;
}));
beforeEach(inject((preferencesService, desks, $q) => {
spyOn(preferencesService, 'get').and.returnValue($q.when({items: ['urn:tag:superdesk-1']}));
spyOn(preferencesService, 'update').and.returnValue($q.when({}));
spyOn(preferencesService, 'getPrivileges').and.returnValue($q.when({}));
spyOn(desks, 'fetchCurrentUserDesks').and.returnValue($q.when([]));
}));
beforeEach(inject(($route) => {
$route.current = {params: {_id: GUID}};
}));
beforeEach(inject((session) => {
session.start({_id: 'sess'}, {_id: USER});
expect(session.identity._id).toBe(USER);
}));
it('can open an item',
inject((superdesk, api, lock, autosave, $injector, $q, $rootScope) => {
var _item,
lockedItem = angular.extend({_locked: false}, ITEM);
spyOn(api, 'find').and.returnValue($q.when(ITEM));
spyOn(lock, 'lock').and.returnValue($q.when(lockedItem));
spyOn(autosave, 'open').and.returnValue($q.when(lockedItem));
$injector.invoke(superdesk.activity('authoring').resolve.item).then((resolvedItem) => {
_item = resolvedItem;
});
$rootScope.$digest();
expect(api.find).toHaveBeenCalledWith('archive', GUID, jasmine.any(Object));
expect(lock.lock).toHaveBeenCalledWith(ITEM, false, undefined);
expect(autosave.open).toHaveBeenCalledWith(lockedItem);
expect(_item.guid).toBe(GUID);
}));
it('does lock item only once',
inject((superdesk, api, lock, autosave, session, $injector, $q, $rootScope) => {
var lockedItem: any = ITEM;
lockedItem.lock_user = USER;
lockedItem.lock_session = session.sessionId;
spyOn(api, 'find').and.returnValue($q.when(lockedItem));
$injector.invoke(superdesk.activity('authoring').resolve.item);
$rootScope.$digest();
expect(ITEM._locked).toBe(true);
}));
it('unlocks a locked item and locks by current user',
inject((authoring, lock, $rootScope, $timeout, api, $q, $location) => {
spyOn(api, 'save').and.returnValue($q.when({}));
spyOn(lock, 'unlock').and.returnValue($q.when({}));
var lockedItem = {guid: GUID, _id: GUID, _locked: true, lock_user: 'user:5', task: 'desk:1'};
var $scope = startAuthoring(lockedItem, 'edit');
$rootScope.$digest();
$scope.unlock();
$timeout.flush(5000);
$rootScope.$digest();
expect($location.path(), '/authoring/' + $scope.item._id);
}));
it('can autosave and save an item', inject((api, $q, $timeout, $rootScope) => {
var $scope = startAuthoring({guid: GUID, _id: GUID, task: 'desk:1', _locked: true, _editable: true},
'edit'),
headline = 'test headline';
expect($scope.dirty).toBe(false);
expect($scope.item.guid).toBe(GUID);
spyOn(api, 'save').and.returnValue($q.when({headline: 'foo'}));
// edit
$scope.item.headline = headline;
$scope.autosave($scope.item);
expect($scope.dirty).toBe(true);
// autosave
$timeout.flush(5000);
expect(api.save).toHaveBeenCalled();
expect($scope.item.headline).toBe(headline);
// save
$scope.save();
$rootScope.$digest();
expect($scope.dirty).toBe(false);
expect(api.save).toHaveBeenCalled();
}));
it('can use a previously created autosave', inject(() => {
var $scope = startAuthoring({_autosave: {headline: 'test'}}, 'edit');
expect($scope.item._autosave.headline).toBe('test');
expect($scope.item.headline).toBe('test');
}));
it('can save while item is being autosaved', inject(($rootScope, $timeout, $q, api) => {
var $scope = startAuthoring({headline: 'test', task: 'desk:1'}, 'edit');
$scope.item.body_html = 'test';
$rootScope.$digest();
$timeout.flush(1000);
spyOn(api, 'save').and.returnValue($q.when({}));
$scope.save();
$rootScope.$digest();
$timeout.flush(5000);
expect($scope.item._autosave).toBeNull();
}));
it('can close item after save work confirm', inject(($rootScope, $q, $location, authoring, reloadService) => {
startAuthoring({headline: 'test'}, 'edit');
$location.search('item', 'foo');
$location.search('action', 'edit');
$rootScope.$digest();
spyOn(authoring, 'saveWorkConfirmation').and.returnValue($q.when());
spyOn(reloadService, 'forceReload');
$rootScope.$broadcast('savework', 'test');
$rootScope.$digest();
expect($location.search().item).toBe(undefined);
expect($location.search().action).toBe(undefined);
expect(reloadService.forceReload).toHaveBeenCalled();
}));
it('can populate content metadata for undo', inject(($rootScope) => {
var orig = {headline: 'foo'};
var scope = startAuthoring(orig, 'edit');
expect(scope.origItem.headline).toBe('foo');
expect(scope.item.headline).toBe('foo');
expect(scope.item.slugline).toBe('');
scope.$apply(() => {
scope.origItem.headline = 'bar';
scope.origItem.slugline = 'slug';
});
expect(scope.item.headline).toBe('foo');
expect(scope.item.slugline).toBe('');
}));
it('confirm the associated media not called',
inject((api, $q, $rootScope, config, confirm) => {
let item = {
_id: 'test',
headline: 'headline',
};
let rewriteOf = {
_id: 'rewriteOf',
headline: 'rewrite',
associations: {
featuremedia: {
},
},
};
let defered = $q.defer();
config.features = {
editFeaturedImage: 1,
};
spyOn(api, 'find').and.returnValue($q.when({rewriteOf}));
spyOn(confirm, 'confirmFeatureMedia').and.returnValue(defered.promise);
let scope = startAuthoring(item, 'edit');
scope.publish();
$rootScope.$digest();
expect(confirm.confirmFeatureMedia).not.toHaveBeenCalled();
expect(api.find).not.toHaveBeenCalledWith('archive', 'rewriteOf');
}));
it('confirm the associated media not called if not rewrite_of',
inject((api, $q, $rootScope, config, confirm) => {
let item = {
_id: 'test',
headline: 'headline',
};
let rewriteOf = {
_id: 'rewriteOf',
headline: 'rewrite',
associations: {
featuremedia: {
},
},
};
let defered = $q.defer();
config.features = {
editFeaturedImage: 1,
confirmMediaOnUpdate: 1,
};
spyOn(api, 'find').and.returnValue($q.when({rewriteOf}));
spyOn(confirm, 'confirmFeatureMedia').and.returnValue(defered.promise);
let scope = startAuthoring(item, 'edit');
scope.publish();
$rootScope.$digest();
expect(confirm.confirmFeatureMedia).not.toHaveBeenCalled();
expect(api.find).not.toHaveBeenCalledWith('archive', 'rewriteOf');
}));
it('confirm the associated media called if rewrite_of but no associated media on edited item',
inject((api, $q, $rootScope, config, confirm, authoring) => {
let item = {
_id: 'test',
headline: 'headline',
rewrite_of: 'rewriteOf',
};
let rewriteOf = {
_id: 'rewriteOf',
headline: 'rewrite',
associations: {
featuremedia: {
},
},
};
let defered = $q.defer();
config.features = {
editFeaturedImage: 1,
confirmMediaOnUpdate: 1,
};
spyOn(api, 'find').and.returnValue($q.when(rewriteOf));
spyOn(confirm, 'confirmFeatureMedia').and.returnValue(defered.promise);
spyOn(authoring, 'autosave').and.returnValue(item);
spyOn(authoring, 'publish').and.returnValue(item);
let scope = startAuthoring(item, 'edit');
scope.publish();
$rootScope.$digest();
expect(api.find).toHaveBeenCalledWith('archive', 'rewriteOf');
expect(confirm.confirmFeatureMedia).toHaveBeenCalledWith(rewriteOf);
defered.resolve(rewriteOf);
$rootScope.$digest();
expect(authoring.autosave).toHaveBeenCalled();
expect(authoring.publish).not.toHaveBeenCalled();
}));
it('confirm the associated media but do not use the associated media',
inject((api, $q, $rootScope, config, confirm, authoring) => {
let item = {
_id: 'test',
rewrite_of: 'rewriteOf',
};
let rewriteOf = {
_id: 'rewriteOf',
associations: {
featuremedia: {
test: 'test',
},
},
};
let defered = $q.defer();
config.features = {
editFeaturedImage: 1,
confirmMediaOnUpdate: 1,
};
spyOn(api, 'find').and.returnValue($q.when(rewriteOf));
spyOn(confirm, 'confirmFeatureMedia').and.returnValue(defered.promise);
spyOn(authoring, 'autosave').and.returnValue({});
spyOn(authoring, 'publish').and.returnValue({});
let scope = startAuthoring(item, 'edit');
scope.publish();
$rootScope.$digest();
expect(api.find).toHaveBeenCalledWith('archive', 'rewriteOf');
expect(confirm.confirmFeatureMedia).toHaveBeenCalledWith(rewriteOf);
defered.resolve({});
$rootScope.$digest();
expect(authoring.publish).toHaveBeenCalled();
expect(authoring.autosave).not.toHaveBeenCalled();
}));
it('can reject publishing on error', inject((api, $q, $rootScope, authoring, lock) => {
let success = jasmine.createSpy('success');
let error = jasmine.createSpy('error');
spyOn(api, 'update').and.returnValue($q.reject('err'));
spyOn(lock, 'unlock').and.returnValue();
authoring.publish({}, {}).then(success, error);
$rootScope.$digest();
expect(api.update).toHaveBeenCalled();
expect(lock.unlock).not.toHaveBeenCalled();
expect(success).not.toHaveBeenCalled();
expect(error).toHaveBeenCalledWith('err');
}));
it('can continue publishing on unlock error', inject((api, $q, $rootScope, authoring, lock) => {
let success = jasmine.createSpy('success');
let error = jasmine.createSpy('error');
let item = {};
spyOn(api, 'update').and.returnValue($q.when(item));
spyOn(lock, 'unlock').and.returnValue($q.reject({}));
authoring.publish({}, {}).then(success, error);
$rootScope.$digest();
expect(lock.unlock).toHaveBeenCalledWith(item);
expect(success).toHaveBeenCalledWith(item);
expect(error).not.toHaveBeenCalled();
}));
/**
* Start authoring ctrl for given item.
*
* @param {object} item
* @param {string} action
* @returns {object}
*/
function startAuthoring(item, action) {
var $scope;
inject(($rootScope, $controller, superdesk, $compile) => {
$scope = $rootScope.$new();
$controller(superdesk.activity('authoring').controller, {
$scope: $scope,
item: item,
action: action,
});
$compile(angular.element('<div sd-authoring-workspace><div sd-authoring></div></div>'))($scope);
});
return $scope;
}
describe('authoring service', () => {
var confirmDefer;
beforeEach(inject((confirm, lock, $q) => {
confirmDefer = $q.defer();
spyOn(confirm, 'confirm').and.returnValue(confirmDefer.promise);
spyOn(confirm, 'confirmPublish').and.returnValue(confirmDefer.promise);
spyOn(confirm, 'confirmSaveWork').and.returnValue(confirmDefer.promise);
spyOn(confirm, 'confirmFeatureMedia').and.returnValue(confirmDefer.promise);
spyOn(lock, 'unlock').and.returnValue($q.when());
}));
it('can check if an item is editable', inject((authoring, session) => {
expect(authoring.isEditable({})).toBe(false);
expect(authoring.isEditable({lock_user: session.identity._id, lock_session: session.sessionId}))
.toBe(true);
}));
it('can close a read-only item', inject((authoring, confirm, lock, $rootScope) => {
var done = jasmine.createSpy('done');
authoring.close({}).then(done);
$rootScope.$digest();
expect(confirm.confirm).not.toHaveBeenCalled();
expect(lock.unlock).not.toHaveBeenCalled();
expect(done).toHaveBeenCalled();
}));
it('can unlock on close editable item without changes made',
inject((authoring, confirm, lock, $rootScope) => {
expect(authoring.isEditable(ITEM)).toBe(true);
authoring.close(ITEM, false);
$rootScope.$digest();
expect(confirm.confirm).not.toHaveBeenCalled();
expect(lock.unlock).toHaveBeenCalled();
}));
it('confirms if an item is dirty and saves',
inject((authoring, confirm, lock, $q, $rootScope) => {
var edit = Object.create(ITEM);
edit.headline = 'test';
authoring.close(edit, ITEM, true);
$rootScope.$digest();
expect(confirm.confirm).toHaveBeenCalled();
expect(lock.unlock).not.toHaveBeenCalled();
spyOn(authoring, 'save').and.returnValue($q.when());
confirmDefer.resolve();
$rootScope.$digest();
expect(authoring.save).toHaveBeenCalledWith(ITEM, edit);
expect(lock.unlock).toHaveBeenCalled();
}));
it('confirms if an item is dirty on opening new or existing item and not unlocking on save',
inject((authoring, confirm, lock, $q, $rootScope) => {
var edit = Object.create(ITEM);
edit.headline = 'test';
authoring.close(edit, ITEM, true, true);
$rootScope.$digest();
expect(confirm.confirm).toHaveBeenCalled();
expect(lock.unlock).not.toHaveBeenCalled();
spyOn(authoring, 'save').and.returnValue($q.when());
confirmDefer.resolve();
$rootScope.$digest();
expect(authoring.save).toHaveBeenCalledWith(ITEM, edit);
expect(lock.unlock).not.toHaveBeenCalled();
}));
it('can unlock an item', inject((authoring, session, confirm, autosave) => {
var item = {lock_user: session.identity._id, lock_session: session.sessionId};
expect(authoring.isEditable(item)).toBe(true);
spyOn(confirm, 'unlock');
spyOn(autosave, 'stop');
authoring.unlock(item);
expect(authoring.isEditable(item)).toBe(false);
expect(confirm.unlock).toHaveBeenCalled();
expect(autosave.stop).toHaveBeenCalled();
}));
it('can publish items', inject((authoring, api, $q) => {
var item = {_id: 1, state: 'submitted'};
spyOn(api, 'update').and.returnValue($q.when());
authoring.publish(item);
expect(api.update).toHaveBeenCalledWith('archive_publish', item, {});
}));
it('confirms if an item is dirty and saves and publish',
inject((authoring, api, confirm, lock, $q, $rootScope) => {
var edit = Object.create(ITEM);
_.extend(edit, {
_id: 1,
headline: 'test',
lock_user: 'user:1',
state: 'submitted',
});
authoring.publishConfirmation(ITEM, edit, true, 'publish');
$rootScope.$digest();
expect(confirm.confirmPublish).toHaveBeenCalled();
expect(lock.unlock).not.toHaveBeenCalled();
spyOn(api, 'update').and.returnValue($q.when(_.extend({}, edit, {})));
authoring.publish(edit);
$rootScope.$digest();
expect(api.update).toHaveBeenCalledWith('archive_publish', edit, {});
expect(lock.unlock).toHaveBeenCalled();
}));
it('confirms if an item is dirty and save work in personal',
inject((authoring, api, confirm, lock, $q, $rootScope) => {
var edit = Object.create(ITEM);
_.extend(edit, {
task: {desk: null, stage: null, user: 1},
type: 'text',
version: 1,
});
authoring.saveWorkConfirmation(ITEM, edit, true, 'User is disabled');
$rootScope.$digest();
expect(confirm.confirmSaveWork).toHaveBeenCalled();
spyOn(api, 'save').and.returnValue($q.when(_.extend({}, edit, {})));
authoring.saveWork(edit);
$rootScope.$digest();
expect(api.save).toHaveBeenCalledWith('archive', {}, edit);
}));
it('close the published dirty item without confirmation',
inject((authoring, api, confirm, lock, autosave, $q, $rootScope) => {
var publishedItem = Object.create(ITEM);
publishedItem.state = 'published';
var edit = Object.create(publishedItem);
edit.headline = 'test';
spyOn(authoring, 'isEditable').and.returnValue(true);
spyOn(autosave, 'drop').and.returnValue($q.when({}));
authoring.close(edit, publishedItem, true, false);
$rootScope.$digest();
expect(confirm.confirm).not.toHaveBeenCalled();
expect(lock.unlock).toHaveBeenCalled();
expect(autosave.drop).toHaveBeenCalled();
}));
it('close the corrected dirty item without confirmation',
inject((authoring, api, confirm, lock, autosave, $q, $rootScope) => {
var publishedItem = Object.create(ITEM);
publishedItem.state = 'corrected';
var edit = Object.create(publishedItem);
edit.headline = 'test';
spyOn(authoring, 'isEditable').and.returnValue(true);
spyOn(autosave, 'drop').and.returnValue($q.when({}));
authoring.close(edit, publishedItem, true, false);
$rootScope.$digest();
expect(confirm.confirm).not.toHaveBeenCalled();
expect(lock.unlock).toHaveBeenCalled();
expect(autosave.drop).toHaveBeenCalled();
}));
it('can validate schedule', inject((authoring) => {
var errors = authoring.validateSchedule('2010-10-10', '08:10:10', '2010-10-10T08:10:10', 'Europe/Prague');
expect(errors).toBeTruthy();
expect(errors.future).toBeTruthy();
errors = authoring.validateSchedule('2099-10-10', '11:32:21', '2099-10-10T08:10:10', 'Europe/Prague');
expect(errors).toBeFalsy();
}));
it('can validate schedule for pre utc timezone', inject((authoring, moment) => {
// utc - 1h and matching server tz format
var timestamp = moment.utc()
.subtract(1, 'hours')
.format()
.replace('+00:00', '+0000');
expect(authoring.validateSchedule(
timestamp.slice(0, 10),
timestamp.slice(11, 19),
timestamp,
'America/Toronto', // anything before utc
)).toBeFalsy();
}));
it('updates orig item on save',
inject((authoring, $rootScope, $httpBackend, api, $q, urls) => {
var item = {headline: 'foo'};
var orig: any = {_links: {self: {href: 'archive/foo'}}};
spyOn(urls, 'item').and.returnValue($q.when(orig._links.self.href));
$httpBackend.expectPATCH(orig._links.self.href, item)
.respond(200, {_etag: 'new', _current_version: 2});
authoring.save(orig, item);
$rootScope.$digest();
$httpBackend.flush();
expect(orig._etag).toBe('new');
expect(orig._current_version).toBe(2);
}));
});
describe('media identifer generator service', () => {
it('generates media field identifer', inject((mediaIdGenerator) => {
expect(mediaIdGenerator.getFieldVersionName('media1')).toBe('media1');
expect(mediaIdGenerator.getFieldVersionName('media1', 1)).toBe('media1--1');
expect(mediaIdGenerator.getFieldParts('media1')).toEqual(['media1', null]);
expect(mediaIdGenerator.getFieldParts('media1--1')).toEqual(['media1', 1]);
}));
});
describe('carousel directive', () => {
it('initializes the current related item identifer', inject(($rootScope, $compile) => {
let scope = $rootScope.$new();
let elem = $compile('<div sd-item-carousel data-item="item" data-items="items"></div>')(scope);
scope.$digest();
let iscope = elem.isolateScope();
scope.item = {guid: 'item1', associations: {'media1--1': {guid: 'foo', type: 'picture'}}};
scope.items = [{fieldId: 'media1--1', 'media1--1': {guid: 'foo', type: 'picture'}}];
scope.$digest();
expect(iscope.rel).toBe(null);
scope.item = {guid: 'item1', associations: {'media1--1': null}};
scope.items = [{fieldId: 'media1--1', 'media1--1': null}];
scope.$digest();
expect(iscope.rel).toBe('media1--1');
}));
});
});
describe('Item Crops directive', () => {
beforeEach(window.module('superdesk.apps.publish'));
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.mocks'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.apps.vocabularies'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(window.module('superdesk.core.editor3'));
beforeEach(window.module('superdesk.apps.editor2'));
it('showCrops return true if image renditions are present',
inject(($rootScope, $compile, $q, metadata, vocabularies) => {
var metaInit = $q.defer();
metadata.values = {
crop_sizes: [
{name: '4-3'}, {name: '16-9'},
],
};
spyOn(metadata, 'initialize').and.returnValue(metaInit.promise);
spyOn(vocabularies, 'getAllActiveVocabularies').and.returnValue($q.when([]));
let scope = $rootScope.$new();
scope.item = {
type: 'picture',
renditions: {
},
};
var elem = $compile('<div sd-item-crops data-item="item"></div>')(scope);
metaInit.resolve();
scope.$digest();
let iScope = elem.isolateScope();
expect(iScope.showCrops()).not.toBe(true);
scope.item = {
type: 'picture',
renditions: {
'4-3': {
},
},
};
scope.$digest();
expect(iScope.showCrops()).toBe(true);
}),
);
});
describe('autosave', () => {
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.mocks'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.apps.searchProviders'));
it('can fetch an autosave for item locked by user and is editable',
inject((autosave, api, $q, $rootScope) => {
spyOn(api, 'find').and.returnValue($q.when({}));
autosave.open({_locked: true, _editable: true, _id: 1});
$rootScope.$digest();
expect(api.find).toHaveBeenCalledWith('archive_autosave', 1);
}));
it('will skip autosave fetch when item is locked by user but not editable',
inject((autosave, api, $q, $rootScope) => {
spyOn(api, 'find').and.returnValue($q.when({}));
autosave.open({_locked: false, _editable: false, _id: 1});
$rootScope.$digest();
expect(api.find).not.toHaveBeenCalled();
}));
it('will skip autosave fetch when item is locked by another user',
inject((autosave, api, $rootScope) => {
spyOn(api, 'find');
autosave.open({_locked: true});
$rootScope.$digest();
expect(api.find).not.toHaveBeenCalled();
}));
it('can create an autosave', inject((autosave, api, $q, $timeout, $rootScope) => {
var orig: any = {_id: 1, _etag: 'x', _locked: true, _editable: true};
var item = Object.create(orig);
item.headline = 'test';
spyOn(api, 'save').and.returnValue($q.when({_id: 2}));
autosave.save(item, orig);
$rootScope.$digest();
expect(api.save).not.toHaveBeenCalled();
$timeout.flush(5000);
expect(api.save).toHaveBeenCalledWith('archive_autosave', {}, {_id: 1, headline: 'test'});
expect(orig._autosave._id).toBe(2);
expect(item.headline).toBe('test');
expect(orig.headline).not.toBe('test');
}));
it('can save multiple items', inject((autosave, api, $q, $timeout, $rootScope) => {
var item1 = {_id: 1, _etag: '1', _locked: true, _editable: true},
item2 = {_id: 2, _etag: '2', _locked: true, _editable: true};
spyOn(api, 'save').and.returnValue($q.when({}));
autosave.save(_.create(item1), item1);
$timeout.flush(1500);
autosave.save(_.create(item2), item2);
$timeout.flush(2500);
expect(api.save).toHaveBeenCalled();
expect(api.save.calls.count()).toBe(1);
$timeout.flush(5000);
expect(api.save.calls.count()).toBe(2);
}));
});
describe('lock service', () => {
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.mocks'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.apps.searchProviders'));
var user = {_id: 'user'};
var sess = {_id: 'sess'};
var anotherUser = {_id: 'another_user'};
beforeEach(inject((session) => {
session.start(sess, user);
}));
it('can test if item is locked', inject((lock) => {
expect(lock.isLocked({})).toBe(false);
expect(lock.isLocked({lock_user: '1'})).toBe(true);
}));
it('can detect lock by same user and different session', inject((lock) => {
expect(lock.isLocked({lock_user: 'user'})).toBe(true);
expect(lock.isLocked({lock_user: 'user', lock_session: 'other_sess'})).toBe(true);
}));
it('can use lock_user dict', inject((lock, session) => {
expect(lock.isLocked({lock_user: {_id: 'user'}})).toBe(true);
expect(lock.isLocked({lock_user: {_id: 'user'}, lock_session: session.sessionId})).toBe(false);
}));
it('can unlock the item if user has unlock privileges', inject((lock, privileges, $rootScope) => {
privileges.setUserPrivileges({unlock: 1});
$rootScope.$digest();
// testing if the user can unlock its own content.
expect(lock.can_unlock({lock_user: user._id})).toBe(true);
expect(lock.can_unlock({lock_user: user._id, lock_session: 'another_session'})).toBe(true);
expect(lock.can_unlock({lock_user: anotherUser._id, lock_session: 'another_session'})).toBe(1);
}));
it('can unlock the item if user has no unlock privileges', inject((lock, privileges, $rootScope) => {
privileges.setUserPrivileges({unlock: 0});
$rootScope.$digest();
// testing if the user can unlock its own content.
expect(lock.can_unlock({lock_user: user._id})).toBe(true);
expect(lock.can_unlock({lock_user: user._id, lock_session: 'another_session'})).toBe(true);
expect(lock.can_unlock({lock_user: anotherUser._id, lock_session: 'another_session'})).toBe(0);
}));
it('can unlock own draft but not other users item', inject((lock, privileges, $rootScope) => {
privileges.setUserPrivileges({unlock: 1});
$rootScope.$digest();
// testing if the user can unlock its own content.
expect(lock.can_unlock({lock_user: user._id, state: 'draft'})).toBe(true);
expect(lock.can_unlock({lock_user: user._id, state: 'draft', lock_session: 'another_session'})).toBe(true);
var item = {lock_user: anotherUser._id, state: 'draft', lock_session: 'another_session'};
expect(lock.can_unlock(item)).toBe(false);
}));
});
describe('authoring actions', () => {
var userDesks = [{_id: 'desk1'}, {_id: 'desk2'}];
/**
* Assert the actions
*
* @param {Object} actions : actions to be asserted.
* @param {string[]} keys : keys to be truthy.
*/
function allowedActions(actions, keys) {
_.forOwn(actions, (value, key) => {
if (_.includes(keys, key)) {
expect(value).toBeTruthy();
} else {
expect(value).toBeFalsy();
}
});
}
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.mocks'));
beforeEach(window.module('superdesk.apps.desks'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(inject((desks, $q) => {
spyOn(desks, 'fetchCurrentUserDesks').and.returnValue($q.when(userDesks));
}));
it('can perform actions if the item is located on the personal workspace',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'draft',
flags: {marked_for_not_publication: false},
type: 'text',
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'copy', 'spike', 'multi_edit', 'export', 'set_label']);
}));
it('can perform actions if the item is located on the desk',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'submitted',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
mark_for_desks: true,
unlock: true,
publish: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 're_write',
'mark_item_for_highlight', 'mark_item_for_desks',
'package_item', 'multi_edit', 'publish', 'add_to_current', 'export', 'set_label']);
}));
it('cannot perform publish if the item is marked for not publication',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'submitted',
flags: {marked_for_not_publication: true},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 're_write',
'mark_item_for_highlight', 'package_item', 'multi_edit', 'add_to_current',
'export', 'set_label']);
}));
it('cannot perform publish if the item is highlight package',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'submitted',
type: 'composite',
highlight: 1,
task: {
desk: 'desk1',
},
_current_version: 1,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike',
'package_item', 'multi_edit', 'add_to_current', 'set_label']);
}));
it('cannot publish if user does not have publish privileges on the desk',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'submitted',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: false,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 're_write',
'mark_item_for_highlight', 'package_item', 'multi_edit', 'add_to_current',
'export', 'set_label']);
}));
it('can only view the item if the user does not have desk membership',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'submitted',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk3',
},
_current_version: 2,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
mark_for_desks: false,
unlock: true,
archive: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['view', 're_write', 'export', 'set_label']);
}));
it('can only view the item if the item is killed',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'killed',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['view', 'export', 'set_label']);
}));
it('can only view the item if the item is recalled',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'recalled',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['view', 'export', 'set_label']);
}));
it('cannot create an update for a rewritten story ',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
type: 'text',
rewritten_by: 1,
task: {
desk: 'desk1',
},
};
var userPrivileges = {
archive: true,
rewrite: true,
unlock: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['view', 'package_item', 'multi_edit', 'add_to_current',
'resend', 'export', 'set_label']);
}));
it('can only view or unmark item if the item is spiked',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'spiked',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions,
['view', 'unspike', 'export', 'mark_item_for_desks', 'mark_item_for_highlight', 'set_label']);
}));
it('Can perform correction or kill or takedown on published item',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
archive_item: {
_id: 'test',
state: 'published',
marked_for_not_publication: false,
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
takedown: true,
archive_broadcast: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 'view', 'add_to_current',
'mark_item_for_highlight', 'package_item', 'multi_edit', 'correct', 'takedown', 'kill', 're_write',
'create_broadcast', 'resend', 'export', 'set_label']);
}));
it('Can perform resend on rewritten item',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item: any = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
archive_item: {
_id: 'test',
state: 'published',
marked_for_not_publication: false,
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
archive_broadcast: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 'view', 'add_to_current',
'mark_item_for_highlight', 'package_item', 'multi_edit', 'correct', 'kill', 're_write',
'create_broadcast', 'resend', 'export', 'set_label']);
item.archive_item.rewritten_by = 'abc';
itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 'view', 'add_to_current', 'mark_item_for_highlight',
'package_item', 'multi_edit', 'correct', 'kill', 'create_broadcast', 'resend', 'export',
'set_label']);
}));
it('Cannot perform correction or kill or takedown on published item without privileges',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
archive_item: {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: false,
kill: false,
takedown: false,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 'view', 'add_to_current',
'mark_item_for_highlight', 'package_item', 'multi_edit', 're_write', 'resend',
'export', 'set_label']);
}));
it('Can only view if the item is not the current version',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
last_published_version: false,
_current_version: 8,
archive_item: {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['view', 'export', 'set_label']);
}));
it('Can only view, duplicate and deschedule if the item is scheduled',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'scheduled',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 8,
archive_item: {
_id: 'test',
state: 'scheduled',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 8,
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['view', 'duplicate', 'deschedule', 'export', 'set_label']);
}));
it('Cannot send item if the version is zero',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 0,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
mark_for_desks: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: false,
move: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 'add_to_current',
'mark_item_for_highlight', 'package_item', 'multi_edit', 'publish', 'export',
'mark_item_for_desks', 're_write', 'set_label']);
}));
it('Can edit if the version is zero',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 0,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: false,
move: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 'add_to_current',
'mark_item_for_highlight', 'package_item', 'multi_edit', 'publish', 'export',
're_write', 'set_label']);
}));
it('Cannot send item if the no move privileges',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: false,
move: false,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 'add_to_current',
're_write', 'mark_item_for_highlight', 'package_item', 'multi_edit', 'publish',
'export', 'set_label']);
}));
it('Can send item if the version greater then zero',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: false,
move: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 'add_to_current',
're_write', 'mark_item_for_highlight', 'package_item', 'multi_edit', 'publish',
'send', 'export', 'set_label']);
}));
it('Can do edit for embargo item.',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
embargo: Date(),
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: true,
move: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 'add_to_current',
'mark_item_for_highlight', 'multi_edit', 'publish', 'send', 'export', 'set_label']);
}));
it('Can do edit for scheduled item.',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 1,
publish_schedule: Date(),
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: true,
move: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'duplicate', 'spike', 'add_to_current',
'mark_item_for_highlight', 'multi_edit', 'publish', 'send', 'export', 're_write',
'set_label']);
}));
it('Can do rewrite and package item for scheduled item after passing publish schedule.',
inject((privileges, desks, authoring, $q, $rootScope) => {
var pastTimestamp = new Date();
pastTimestamp.setHours(pastTimestamp.getHours() - 1);
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 2,
publish_schedule: pastTimestamp,
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
package_item: true,
move: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['correct', 'kill', 'duplicate', 'add_to_current', 're_write',
'view', 'package_item', 'mark_item_for_highlight', 'multi_edit', 'resend', 'export',
'set_label']);
}));
it('Create broadcast icon is available for text item.',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
genre: [],
archive_item: {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
genre: [],
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
archive_broadcast: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 're_write', 'mark_item_for_highlight', 'multi_edit',
'correct', 'kill', 'package_item', 'view', 'create_broadcast', 'add_to_current', 'resend',
'export', 'set_label']);
}));
it('Create broadcast icon is available for text item with genre Article.',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
genre: [{name: 'Article', value: 'Article'}],
archive_item: {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
genre: [{name: 'Article', value: 'Article'}],
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
archive_broadcast: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 're_write', 'mark_item_for_highlight', 'multi_edit',
'correct', 'kill', 'package_item', 'view', 'create_broadcast', 'add_to_current', 'resend',
'export', 'set_label']);
}));
it('Create broadcast icon is not available for broadcast item',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
genre: [
{name: 'Interview', value: 'Interview'},
{name: 'Broadcast Script', value: 'Broadcast Script'},
],
archive_item: {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
genre: [
{name: 'Interview', value: 'Interview'},
{name: 'Broadcast Script', value: 'Broadcast Script'},
],
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
archive_broadcast: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 'mark_item_for_highlight', 'multi_edit',
'correct', 'kill', 'package_item', 'view', 'add_to_current', 'resend', 'export',
're_write', 'set_label']);
}));
it('Export action is available for text item.',
inject((privileges, authoring, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
};
var userPrivileges = {
mark_item: false,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['re_write', 'save', 'edit', 'package_item',
'multi_edit', 'add_to_current', 'export', 'set_label']);
}));
it('Export action is not available for non-text item.',
inject((privileges, authoring, $rootScope) => {
var item = {
_id: 'test',
state: 'in_progress',
flags: {marked_for_not_publication: false},
type: 'composite',
task: {
desk: 'desk1',
},
};
var userPrivileges = {
mark_item: false,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['save', 'edit', 'package_item', 'multi_edit', 'add_to_current',
'set_label']);
}));
it('rewrite is not allowed if re-written item exists.',
inject((privileges, desks, authoring, $q, $rootScope) => {
var item = {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
rewritten_by: '123',
genre: [
{name: 'Interview', value: 'Interview'},
],
archive_item: {
_id: 'test',
state: 'published',
flags: {marked_for_not_publication: false},
type: 'text',
task: {
desk: 'desk1',
},
_current_version: 10,
rewritten_by: '123',
genre: [
{name: 'Interview', value: 'Interview'},
],
},
};
var userPrivileges = {
duplicate: true,
mark_item: false,
spike: true,
unspike: true,
mark_for_highlights: true,
unlock: true,
publish: true,
correct: true,
kill: true,
archive_broadcast: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
var itemActions = authoring.itemActions(item);
allowedActions(itemActions, ['duplicate', 'mark_item_for_highlight', 'multi_edit',
'create_broadcast', 'correct', 'kill', 'package_item', 'view', 'add_to_current',
'resend', 'export', 'set_label']);
}));
it('cannot mark or highlight if the item is not a text item',
inject((privileges, desks, authoring, $q, $rootScope) => {
let item = {
_id: 'test',
type: 'text',
task: {
desk: 'desk1',
},
};
let userPrivileges = {
mark_for_highlights: true,
mark_for_desks: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
let itemActions = authoring.itemActions(item);
expect(itemActions.mark_item_for_desks).toBeTruthy();
expect(itemActions.mark_item_for_highlight).toBeTruthy();
item.type = 'picture';
itemActions = authoring.itemActions(item);
expect(itemActions.mark_item_for_desks).toBeFalsy();
expect(itemActions.mark_item_for_highlight).toBeFalsy();
}));
});
describe('authoring workspace', () => {
var item, lockedItem;
beforeEach(() => {
item = {_id: 'foo', type: 'text'};
lockedItem = {_id: item._id, _editable: true};
});
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(inject(($q, authoring) => {
spyOn(authoring, 'open').and.returnValue($q.when(lockedItem));
}));
it('can edit item', inject((superdeskFlags, authoringWorkspace, $rootScope) => {
expect(superdeskFlags.flags.authoring).toBeFalsy();
authoringWorkspace.edit(item);
$rootScope.$apply();
expect(authoringWorkspace.item).toBe(lockedItem);
expect(authoringWorkspace.action).toBe('edit');
expect(authoringWorkspace.getItem()).toBe(lockedItem);
expect(authoringWorkspace.getAction()).toBe('edit');
expect(superdeskFlags.flags.authoring).toBeTruthy();
authoringWorkspace.close(true);
expect(authoringWorkspace.item).toBe(null);
expect(authoringWorkspace.getItem()).toBe(null);
expect(superdeskFlags.flags.authoring).toBeFalsy();
}));
it('can open item in readonly mode', inject((superdeskFlags, authoringWorkspace, $rootScope,
authoring, $q) => {
lockedItem._editable = false;
authoringWorkspace.view(item);
$rootScope.$apply();
expect(authoringWorkspace.item).toBe(lockedItem);
expect(authoringWorkspace.action).toBe('view');
expect(superdeskFlags.flags.authoring).toBe(true);
lockedItem._editable = true;
}));
it('can kill an item', inject((authoringWorkspace, $rootScope) => {
authoringWorkspace.kill(item);
$rootScope.$apply();
expect(authoringWorkspace.item).toBe(lockedItem);
expect(authoringWorkspace.action).toBe('kill');
}));
it('can handle edit.item activity', inject((superdesk, authoringWorkspace, $rootScope) => {
superdesk.intent('edit', 'item', item);
$rootScope.$digest();
expect(authoringWorkspace.item).toBe(lockedItem);
expect(authoringWorkspace.action).toBe('edit');
}));
it('can open an item for edit or readonly', inject((authoringWorkspace, authoring, send, $q, $rootScope) => {
item.state = 'draft';
authoringWorkspace.open(item);
expect(authoring.open).toHaveBeenCalledWith(item._id, false, null, 'edit');
item.state = 'published';
authoringWorkspace.open(item);
expect(authoring.open).toHaveBeenCalledWith(item._id, true, null, 'view');
var archived = {_id: 'bar'};
spyOn(send, 'one').and.returnValue($q.when(archived));
item._type = 'ingest';
authoringWorkspace.open(item);
expect(send.one).toHaveBeenCalledWith(item);
$rootScope.$digest();
expect(authoring.open).toHaveBeenCalledWith(archived._id, false, null, 'edit');
}));
describe('init', () => {
it('can open item from $location for editing', inject((api, $location, $rootScope, $injector) => {
$location.search('item', item._id);
$location.search('action', 'edit');
$rootScope.$digest();
var authoringWorkspace = $injector.get('authoringWorkspace');
$rootScope.$digest();
expect(authoringWorkspace.item).toBe(lockedItem);
expect(authoringWorkspace.action).toBe('edit');
}));
it('can open item from $location for viewing', inject(($location, $rootScope, $injector) => {
$location.search('item', 'bar');
$location.search('action', 'view');
$rootScope.$digest();
var authoringWorkspace = $injector.get('authoringWorkspace');
$rootScope.$digest();
expect(authoringWorkspace.item).toBe(lockedItem);
expect(authoringWorkspace.action).toBe('view');
}));
});
});
describe('authoring container directive', () => {
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(inject(($templateCache) => {
// avoid loading of authoring
$templateCache.put('scripts/apps/authoring/views/authoring-container.html', '<div></div>');
}));
var item, lockedItem, scope, elem, iscope;
beforeEach(inject(($compile, $rootScope, $q, authoring) => {
item = {_id: 'foo'};
lockedItem = {_id: item._id, _editable: true};
spyOn(authoring, 'open').and.returnValue($q.when(lockedItem));
scope = $rootScope.$new();
elem = $compile('<div sd-authoring-container></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
}));
it('handles edit', inject((authoringWorkspace, $rootScope) => {
authoringWorkspace.edit(item);
$rootScope.$digest();
// testing reset in first cycle between
expect(iscope.authoring.item).toBe(null);
$rootScope.$digest();
expect(iscope.authoring.item).toBe(lockedItem);
expect(iscope.authoring.action).toBe('edit');
expect(iscope.authoring.state.opened).toBe(true);
authoringWorkspace.close(true);
$rootScope.$digest();
expect(iscope.authoring.item).toBe(null);
expect(iscope.authoring.state.opened).toBe(false);
}));
it('handles view', inject((authoringWorkspace, $rootScope) => {
lockedItem._editable = false;
authoringWorkspace.view(item);
$rootScope.$digest();
$rootScope.$digest();
expect(iscope.authoring.item).toBe(lockedItem);
expect(iscope.authoring.action).toBe('view');
expect(iscope.authoring.state.opened).toBe(true);
lockedItem._editable = true;
}));
it('handles kill', inject((authoringWorkspace, $rootScope) => {
authoringWorkspace.kill(item);
$rootScope.$digest();
$rootScope.$digest();
expect(iscope.authoring.item).toBe(lockedItem);
expect(iscope.authoring.action).toBe('kill');
}));
it('handles correct', inject((authoringWorkspace, $rootScope) => {
authoringWorkspace.correct(item);
$rootScope.$digest();
$rootScope.$digest();
expect(iscope.authoring.item).toBe(lockedItem);
expect(iscope.authoring.action).toBe('correct');
}));
describe('authoring embed directive', () => {
beforeEach(inject(($templateCache) => {
$templateCache.put('scripts/apps/authoring/views/authoring.html', '<div></div>');
}));
it('applies kill template',
inject((authoringWorkspace, $rootScope, api, $compile, $q) => {
authoringWorkspace.kill(item);
$rootScope.$digest();
$rootScope.$digest();
expect(iscope.authoring.item).toBe(lockedItem);
expect(iscope.authoring.action).toBe('kill');
spyOn(api, 'save').and.returnValue($q.when({}));
var elemEmbed = $compile('<div sd-authoring-embedded data-item="authoring.item"' +
' data-action="authoring.action"></div>')(iscope);
iscope.$digest();
var iscopeEmbed = elemEmbed.isolateScope();
expect(iscopeEmbed.action).toBe('kill');
expect(api.save)
.toHaveBeenCalledWith('content_templates_apply', {}, {
template_name: 'kill',
item: {_id: 'foo'},
}, {});
}));
});
});
describe('authoring themes', () => {
beforeEach(window.module('superdesk.core.preferences'));
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(inject(($q, preferencesService) => {
spyOn(preferencesService, 'get').and.returnValue($q.when({'editor:theme': ['theme:proofreadTheme']}));
}));
var normalTheme = {
cssClass: '',
label: 'Default',
key: 'default',
},
darkTheme = {
cssClass: 'dark-theme-mono',
label: 'Dark monospace',
key: 'dark-mono',
};
it('can define normal theme', inject((authThemes) => {
spyOn(authThemes, 'save');
authThemes.save('theme', normalTheme);
expect(authThemes.save).toHaveBeenCalledWith('theme', normalTheme);
}));
it('can define proofread theme', inject((authThemes) => {
spyOn(authThemes, 'save');
authThemes.save('proofreadTheme', darkTheme);
expect(authThemes.save).toHaveBeenCalledWith('proofreadTheme', darkTheme);
}));
it('can get normal theme', inject((authThemes, $rootScope) => {
var theme = null;
authThemes.get('theme').then((_theme) => {
theme = _theme;
});
$rootScope.$digest();
expect(theme).not.toBe(null);
}));
it('can get proofread theme', inject((authThemes, $rootScope) => {
var proofreadTheme = null;
authThemes.get('proofreadTheme').then((_theme) => {
proofreadTheme = _theme;
});
$rootScope.$digest();
expect(proofreadTheme).not.toBe(null);
}));
});
describe('send item directive', () => {
beforeEach(window.module(($provide) => {
$provide.constant('config', {
server: {url: undefined},
iframely: {key: '123'},
editor: {},
features: {onlyEditor3: false},
});
}));
beforeEach(window.module('superdesk.core.editor3'));
beforeEach(window.module('superdesk.apps.editor2'));
beforeEach(window.module('superdesk.core.preferences'));
beforeEach(window.module('superdesk.apps.authoring'));
beforeEach(window.module('superdesk.templates-cache'));
beforeEach(window.module('superdesk.core.api'));
beforeEach(window.module('superdesk.apps.vocabularies'));
beforeEach(window.module('superdesk.apps.searchProviders'));
beforeEach(window.module('superdesk.apps.extension-points'));
beforeEach(inject(($templateCache) => {
$templateCache.put('scripts/apps/authoring/views/send-item.html', '');
}));
it('can hide embargo if user does not have the privilege',
inject(($compile, $rootScope, privileges) => {
var scope, elem, iscope;
scope = $rootScope.$new();
scope.item = {
_id: 'foo',
type: 'text',
state: 'in-progress',
};
var userPrivileges = {
embargo: false,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
scope.action = 'edit';
elem = $compile('<div sd-send-item data-item="item" data-mode="authoring" ' +
'data-action="action"></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
expect(iscope.showPublishSchedule()).toBe(true);
expect(iscope.showEmbargo()).toBe(false);
}));
it('can show embargo and publish schedule for text item',
inject(($compile, $rootScope, privileges) => {
var scope, elem, iscope;
scope = $rootScope.$new();
scope.item = {
_id: 'foo',
type: 'text',
state: 'in-progress',
};
var userPrivileges = {
embargo: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
scope.action = 'edit';
elem = $compile('<div sd-send-item data-item="item" data-mode="authoring" ' +
'data-action="action"></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
expect(iscope.showPublishSchedule()).toBe(true);
expect(iscope.showEmbargo()).toBe(true);
}));
it('can show embargo date',
inject(($compile, $rootScope, privileges) => {
var scope, elem, iscope;
scope = $rootScope.$new();
scope.item = {
_id: 'foo',
type: 'text',
state: 'in-progress',
embargo_date: Date(),
};
var userPrivileges = {
embargo: true,
};
privileges.setUserPrivileges(userPrivileges);
$rootScope.$digest();
scope.action = 'edit';
elem = $compile('<div sd-send-item data-item="item" data-mode="authoring" ' +
'data-action="action"></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
expect(iscope.showPublishSchedule()).toBe(false);
expect(iscope.showEmbargo()).toBe(true);
}));
it('can show published schedule date',
inject(($compile, $rootScope) => {
var scope, elem, iscope;
scope = $rootScope.$new();
scope.item = {
_id: 'foo',
type: 'text',
state: 'in-progress',
publish_schedule_date: Date(),
};
scope.action = 'edit';
elem = $compile('<div sd-send-item data-item="item" data-mode="authoring" ' +
'data-action="action"></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
expect(iscope.showPublishSchedule()).toBe(true);
expect(iscope.showEmbargo()).toBe(false);
}));
it('can get last destination desk and stage',
inject(($compile, $rootScope, preferencesService, $q) => {
var scope, elem, iscope;
scope = $rootScope.$new();
scope.item = {
_id: '123456',
type: 'text',
};
var destination = {desk: '123', stage: '456'};
spyOn(preferencesService, 'get').and.returnValue($q.when(destination));
scope.action = 'edit';
elem = $compile('<div sd-send-item data-item="item" data-mode="authoring" ' +
'data-action="action"></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
iscope.destination_last = null;
preferencesService.get().then((prefs) => {
iscope.destination_last = {
desk: prefs.desk,
stage: prefs.stage,
};
});
iscope.$digest();
expect(iscope.destination_last.desk).toEqual('123');
expect(iscope.destination_last.stage).toEqual('456');
}));
it('can show send and publish button',
inject(($compile, $rootScope, config) => {
var scope, elem, iscope;
scope = $rootScope.$new();
scope.item = {
_id: 'foo',
type: 'text',
state: 'in-progress',
task: {
desk: '123',
stage: '456',
},
_current_version: 1,
};
scope.action = 'edit';
elem = $compile('<div sd-send-item data-item="item" data-orig="item" data-mode="authoring" ' +
'data-action="action"></div>')(scope);
scope.$digest();
iscope = elem.isolateScope();
expect(iscope.canSendAndPublish()).toBeFalsy();
config.ui = {sendAndPublish: 1};
expect(iscope.canSendAndPublish()).toBeFalsy();
iscope.selectedDesk = {_id: '123'};
iscope.selectedStage = {_id: '456'};
expect(iscope.canSendAndPublish()).toBeFalsy();
iscope.selectedDesk = {_id: '123'};
iscope.selectedStage = {_id: '4566'};
iscope.itemActions = {publish: 1};
expect(iscope.canSendAndPublish()).toBeFalsy();
iscope.selectedDesk = {_id: '1234'};
iscope.selectedStage = {_id: '456'};
expect(iscope.canSendAndPublish()).toBeTruthy();
}));
describe('Send And Publish', () => {
var scope, iScope, elem, publish;
var movedItem = {
_id: 'foo',
type: 'text',
state: 'in-progress',
task: {
desk: 'New Desk',
stage: 'New Stage',
},
_current_version: 2,
_etag: '1111',
_locked: true,
};
var selectedDesk = {
_id: 'New Desk', name: 'new desk',
};
var selectedStage = {
_id: 'New Stage', name: 'new stage',
};
beforeEach(inject(($q, $compile, $rootScope, api, editor) => {
spyOn(api, 'find').and.returnValue($q.when({}));
spyOn(api, 'save').and.returnValue($q.when({task: {desk: 'new', stage: 'new'}}));
scope = $rootScope.$new();
scope.item = {
_id: 'foo',
type: 'text',
state: 'in-progress',
task: {
desk: '123',
stage: '456',
},
_current_version: 1,
_etag: '123',
};
scope.action = 'edit';
scope.publish = function() {
return publish;
};
elem = $compile('<div sd-send-item data-item="item" data-orig="item" data-mode="authoring" ' +
'data-action="action" data-publish="publish()"></div>')(scope);
scope.$digest();
iScope = elem.isolateScope();
iScope.beforeSend = function() {
return $q.when({});
};
}));
it('can send and publish item to different desk', inject((authoring, $q, authoringWorkspace) => {
publish = true; // publish succeeds
iScope.selectedDesk = selectedDesk;
iScope.selectedStage = selectedStage;
spyOn(authoring, 'open').and.returnValue($q.when(movedItem));
spyOn(authoringWorkspace, 'close').and.returnValue($q.when(true));
expect(iScope.orig.task.desk).toBe('123');
expect(iScope.orig.task.stage).toBe('456');
expect(iScope.orig._etag).toBe('123');
iScope.sendAndPublish();
iScope.$digest();
expect(authoring.open).toHaveBeenCalledWith('foo', false);
expect(authoringWorkspace.close).toHaveBeenCalledWith(false);
expect(iScope.orig.task.desk).toBe(selectedDesk._id);
expect(iScope.orig.task.stage).toBe(selectedStage._id);
expect(iScope.orig._locked).toBe(true);
expect(iScope.orig._etag).toBe('1111');
}));
it('can send and publish item to different desk publish fails',
inject((authoring, $q, authoringWorkspace, notify) => {
publish = false; // publish succeeds
iScope.selectedDesk = selectedDesk;
iScope.selectedStage = selectedStage;
spyOn(authoring, 'open').and.returnValue($q.when(movedItem));
spyOn(authoringWorkspace, 'close').and.returnValue($q.when(true));
expect(iScope.orig.task.desk).toBe('123');
expect(iScope.orig.task.stage).toBe('456');
expect(iScope.orig._etag).toBe('123');
iScope.sendAndPublish();
iScope.$digest();
expect(authoring.open).toHaveBeenCalledWith('foo', false);
expect(authoringWorkspace.close).not.toHaveBeenCalledWith(false);
expect(iScope.orig.task.desk).toBe(selectedDesk._id);
expect(iScope.orig.task.stage).toBe(selectedStage._id);
expect(iScope.orig._locked).toBe(true);
expect(iScope.orig._etag).toBe('1111');
}));
it('can send and publish item to different desk but locking failed',
inject((authoring, $q, authoringWorkspace, notify) => {
publish = true; // publish succeeds
movedItem._locked = false; // locked failed.
iScope.selectedDesk = selectedDesk;
iScope.selectedStage = selectedStage;
spyOn(authoring, 'open').and.returnValue($q.when(movedItem));
spyOn(authoringWorkspace, 'close').and.returnValue($q.when(true));
spyOn(notify, 'error');
expect(iScope.orig.task.desk).toBe('123');
expect(iScope.orig.task.stage).toBe('456');
expect(iScope.orig._etag).toBe('123');
iScope.sendAndPublish();
iScope.$digest();
expect(authoring.open).toHaveBeenCalledWith('foo', false);
expect(authoringWorkspace.close).not.toHaveBeenCalledWith(false);
expect(iScope.orig.task.desk).toBe(selectedDesk._id);
expect(iScope.orig.task.stage).toBe(selectedStage._id);
expect(iScope.orig._locked).toBe(false);
expect(iScope.orig._etag).toBe('1111');
expect(notify.error).toHaveBeenCalledWith('Failed to send and publish.');
}));
});
});
| mdhaman/superdesk-client-core | scripts/apps/authoring/tests/authoring.spec.ts | TypeScript | agpl-3.0 | 90,132 | [
30522,
6235,
1006,
1005,
3166,
2075,
1005,
1010,
1006,
1007,
1027,
1028,
1063,
13075,
26458,
2094,
1027,
1005,
24471,
2078,
1024,
6415,
1024,
3565,
6155,
2243,
1011,
1015,
1005,
1025,
13075,
5310,
1027,
1005,
5310,
1024,
1015,
1005,
1025,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients
* Adapted from PLUTO and Pochoir test bench
*
* Tareq Malas
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#ifdef LIKWID_PERFMON
#include <likwid.h>
#endif
#include "print_utils.h"
#define TESTS 2
#define MAX(a,b) ((a) > (b) ? a : b)
#define MIN(a,b) ((a) < (b) ? a : b)
/* Subtract the `struct timeval' values X and Y,
* storing the result in RESULT.
*
* Return 1 if the difference is negative, otherwise 0.
*/
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y)
{
/* Perform the carry for the later subtraction by updating y. */
if (x->tv_usec < y->tv_usec)
{
int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1;
y->tv_usec -= 1000000 * nsec;
y->tv_sec += nsec;
}
if (x->tv_usec - y->tv_usec > 1000000)
{
int nsec = (x->tv_usec - y->tv_usec) / 1000000;
y->tv_usec += 1000000 * nsec;
y->tv_sec -= nsec;
}
/* Compute the time remaining to wait.
* tv_usec is certainly positive.
*/
result->tv_sec = x->tv_sec - y->tv_sec;
result->tv_usec = x->tv_usec - y->tv_usec;
/* Return 1 if result is negative. */
return x->tv_sec < y->tv_sec;
}
int main(int argc, char *argv[])
{
int t, i, j, k, m, test;
int Nx, Ny, Nz, Nt;
if (argc > 3) {
Nx = atoi(argv[1])+8;
Ny = atoi(argv[2])+8;
Nz = atoi(argv[3])+8;
}
if (argc > 4)
Nt = atoi(argv[4]);
// allocate the arrays
double ****A = (double ****) malloc(sizeof(double***)*2);
for(m=0; m<2;m++){
A[m] = (double ***) malloc(sizeof(double**)*Nz);
for(i=0; i<Nz; i++){
A[m][i] = (double**) malloc(sizeof(double*)*Ny);
for(j=0;j<Ny;j++){
A[m][i][j] = (double*) malloc(sizeof(double)*Nx);
}
}
}
double ****coef = (double ****) malloc(sizeof(double***)*13);
for(m=0; m<13;m++){
coef[m] = (double ***) malloc(sizeof(double**)*Nz);
for(i=0; i<Nz; i++){
coef[m][i] = (double**) malloc(sizeof(double*)*Ny);
for(j=0;j<Ny;j++){
coef[m][i][j] = (double*) malloc(sizeof(double)*Nx);
}
}
}
// tile size information, including extra element to decide the list length
int *tile_size = (int*) malloc(sizeof(int));
tile_size[0] = -1;
// The list is modified here before source-to-source transformations
tile_size = (int*) realloc((void *)tile_size, sizeof(int)*5);
tile_size[0] = 8;
tile_size[1] = 8;
tile_size[2] = 4;
tile_size[3] = 256;
tile_size[4] = -1;
// for timekeeping
int ts_return = -1;
struct timeval start, end, result;
double tdiff = 0.0, min_tdiff=1.e100;
const int BASE = 1024;
// initialize variables
//
srand(42);
for (i = 1; i < Nz; i++) {
for (j = 1; j < Ny; j++) {
for (k = 1; k < Nx; k++) {
A[0][i][j][k] = 1.0 * (rand() % BASE);
}
}
}
for (m=0; m<13; m++) {
for (i=1; i<Nz; i++) {
for (j=1; j<Ny; j++) {
for (k=1; k<Nx; k++) {
coef[m][i][j][k] = 1.0 * (rand() % BASE);
}
}
}
}
#ifdef LIKWID_PERFMON
LIKWID_MARKER_INIT;
#pragma omp parallel
{
LIKWID_MARKER_THREADINIT;
#pragma omp barrier
LIKWID_MARKER_START("calc");
}
#endif
int num_threads = 1;
#if defined(_OPENMP)
num_threads = omp_get_max_threads();
#endif
for(test=0; test<TESTS; test++){
gettimeofday(&start, 0);
// serial execution - Addition: 6 && Multiplication: 2
#pragma scop
for (t = 0; t < Nt; t++) {
for (i = 4; i < Nz-4; i++) {
for (j = 4; j < Ny-4; j++) {
for (k = 4; k < Nx-4; k++) {
A[(t+1)%2][i][j][k] =
coef[0][i][j][k] * A[(t)%2][i ][j ][k ] +
coef[1][i][j][k] * (A[(t)%2][i-1][j ][k ] + A[(t)%2][i+1][j ][k ]) +
coef[2][i][j][k] * (A[(t)%2][i ][j-1][k ] + A[(t)%2][i ][j+1][k ]) +
coef[3][i][j][k] * (A[(t)%2][i ][j ][k-1] + A[(t)%2][i ][j ][k+1]) +
coef[4][i][j][k] * (A[(t)%2][i-2][j ][k ] + A[(t)%2][i+2][j ][k ]) +
coef[5][i][j][k] * (A[(t)%2][i ][j-2][k ] + A[(t)%2][i ][j+2][k ]) +
coef[6][i][j][k] * (A[(t)%2][i ][j ][k-2] + A[(t)%2][i ][j ][k+2]) +
coef[7][i][j][k] * (A[(t)%2][i-3][j ][k ] + A[(t)%2][i+3][j ][k ]) +
coef[8][i][j][k] * (A[(t)%2][i ][j-3][k ] + A[(t)%2][i ][j+3][k ]) +
coef[9][i][j][k] * (A[(t)%2][i ][j ][k-3] + A[(t)%2][i ][j ][k+3]) +
coef[10][i][j][k]* (A[(t)%2][i-4][j ][k ] + A[(t)%2][i+4][j ][k ]) +
coef[11][i][j][k]* (A[(t)%2][i ][j-4][k ] + A[(t)%2][i ][j+4][k ]) +
coef[12][i][j][k]* (A[(t)%2][i ][j ][k-4] + A[(t)%2][i ][j ][k+4]) ;
}
}
}
}
#pragma endscop
gettimeofday(&end, 0);
ts_return = timeval_subtract(&result, &end, &start);
tdiff = (double) (result.tv_sec + result.tv_usec * 1.0e-6);
min_tdiff = min(min_tdiff, tdiff);
printf("Rank 0 TEST# %d time: %f\n", test, tdiff);
}
PRINT_RESULTS(4, "variable axis-symmetric")
#ifdef LIKWID_PERFMON
#pragma omp parallel
{
LIKWID_MARKER_STOP("calc");
}
LIKWID_MARKER_CLOSE;
#endif
// Free allocated arrays
for(i=0; i<Nz; i++){
for(j=0;j<Ny;j++){
free(A[0][i][j]);
free(A[1][i][j]);
}
free(A[0][i]);
free(A[1][i]);
}
free(A[0]);
free(A[1]);
for(m=0; m<13;m++){
for(i=0; i<Nz; i++){
for(j=0;j<Ny;j++){
free(coef[m][i][j]);
}
free(coef[m][i]);
}
free(coef[m]);
}
return 0;
}
| tareqmalas/girih | pluto_examples/gen_kernels/lbpar_3d25pt_var8_8_4_256/3d25pt_var.c | C | bsd-3-clause | 5,815 | [
30522,
1013,
1008,
1008,
2344,
1011,
1015,
1010,
7605,
2423,
2391,
26261,
12273,
4014,
2007,
8123,
1011,
19490,
9342,
3468,
21374,
1008,
5967,
2013,
26930,
1998,
13433,
9905,
4313,
3231,
6847,
1008,
1008,
16985,
2063,
4160,
28935,
2015,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{499:function(t,e,s){"use strict";s.r(e);var a=s(0),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#examples"}},[t._v("#")]),t._v(" Examples")]),t._v(" "),s("p",[t._v("Spreadsheets: Edit a cell in the sheet")]),t._v(" "),s("h2",{attrs:{id:"solutions"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#solutions"}},[t._v("#")]),t._v(" Solutions")]),t._v(" "),s("p",[s("strong",[t._v("Data Curator")]),s("br"),t._v("\nEdit CSV and XLS files without unintentionally changing the raw data. Also, automatically detects the schema for every file.")]),t._v(" "),s("p",[s("strong",[t._v("Delimiter")]),s("br"),t._v("\nEdit and sync CSV files with GitHub directly in the browser.")])])}),[],!1,null,null,null);e.default=n.exports}}]); | anelda/website | assets/js/88.10da411c.js | JavaScript | mit | 967 | [
30522,
1006,
3332,
1012,
4773,
23947,
22578,
2239,
2361,
1027,
3332,
1012,
4773,
23947,
22578,
2239,
2361,
1064,
1064,
1031,
1033,
1007,
1012,
5245,
1006,
1031,
1031,
6070,
1033,
1010,
1063,
4749,
2683,
1024,
3853,
1006,
1056,
1010,
1041,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.guitar.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@Configuration
@EnableJpaRepositories(basePackages={"com.guitar.repository"})
public class JpaConfiguration {
}
| dlbunker/ps-guitar-rest | src/main/java/com/guitar/config/JpaConfiguration.java | Java | apache-2.0 | 280 | [
30522,
7427,
4012,
1012,
2858,
1012,
9530,
8873,
2290,
1025,
12324,
8917,
1012,
3500,
15643,
6198,
1012,
6123,
1012,
5754,
17287,
3508,
1012,
9563,
1025,
12324,
8917,
1012,
3500,
15643,
6198,
1012,
2951,
1012,
16545,
2050,
1012,
22409,
1012... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
const html = require('choo/html');
module.exports = function(name, url) {
const dialog = function(state, emit, close) {
return html`
<send-share-dialog
class="flex flex-col items-center text-center p-4 max-w-sm m-auto"
>
<h1 class="text-3xl font-bold my-4">
${state.translate('notifyUploadEncryptDone')}
</h1>
<p class="font-normal leading-normal text-grey-80 dark:text-grey-40">
${state.translate('shareLinkDescription')}<br />
<span class="word-break-all">${name}</span>
</p>
<input
type="text"
id="share-url"
class="w-full my-4 border rounded-lg leading-loose h-12 px-2 py-1 dark:bg-grey-80"
value="${url}"
readonly="true"
/>
<button
class="btn rounded-lg w-full flex-shrink-0 focus:outline"
onclick="${share}"
title="${state.translate('shareLinkButton')}"
>
${state.translate('shareLinkButton')}
</button>
<button
class="link-blue my-4 font-medium cursor-pointer focus:outline"
onclick="${close}"
title="${state.translate('okButton')}"
>
${state.translate('okButton')}
</button>
</send-share-dialog>
`;
async function share(event) {
event.stopPropagation();
try {
await navigator.share({
title: state.translate('-send-brand'),
text: state.translate('shareMessage', { name }),
url
});
} catch (e) {
if (e.code === e.ABORT_ERR) {
return;
}
console.error(e);
}
close();
}
};
dialog.type = 'share';
return dialog;
};
| mozilla/send | app/ui/shareDialog.js | JavaScript | mpl-2.0 | 1,735 | [
30522,
9530,
3367,
16129,
1027,
5478,
1006,
1005,
16480,
2080,
1013,
16129,
1005,
1007,
1025,
11336,
1012,
14338,
1027,
3853,
1006,
2171,
1010,
24471,
2140,
1007,
1063,
9530,
3367,
13764,
8649,
1027,
3853,
1006,
2110,
1010,
12495,
2102,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jsonp({"cep":"29160314","logradouro":"Rua C 12","bairro":"Conjunto Carapina I","cidade":"Serra","uf":"ES","estado":"Esp\u00edrito Santo"});
| lfreneda/cepdb | api/v1/29160314.jsonp.js | JavaScript | cc0-1.0 | 140 | [
30522,
1046,
3385,
2361,
1006,
1063,
1000,
8292,
2361,
1000,
1024,
1000,
27173,
16086,
21486,
2549,
1000,
1010,
1000,
8833,
12173,
8162,
2080,
1000,
1024,
1000,
21766,
2050,
1039,
2260,
1000,
1010,
1000,
21790,
18933,
1000,
1024,
1000,
9530... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
switch ($page){
case 'psd-files':
$subtitle = ' - PSD files included';
break;
case 'changelog':
$subtitle = ' - Changelog';
break;
case 'assets':
$subtitle = ' - Assets';
break;
default:
$subtitle = '';
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>My Heaven - Online Booking PSD Template<?php echo $subtitle; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="My Heaven is a clean and complete booking PSD template ideal for hotels, guest houses, villas and more." />
<meta name="keywords" content="availability, book, booking, calendar, holiday, hostel, hotel, rate, rent, reservation, room, schedule, travel, vacation, villa" />
<?php include_once('../libraries/php/assets.php'); ?>
<?php include_once('../libraries/php/google-analytics.php'); ?>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>My Heaven - Online Booking PSD Template</h1>
</div> | dotonpaper/envato-help | my-heaven-online-booking-psd-template/header.php | PHP | mit | 1,163 | [
30522,
1026,
1029,
25718,
6942,
1006,
1002,
3931,
1007,
1063,
2553,
1005,
8827,
2094,
1011,
6764,
1005,
1024,
1002,
4942,
3775,
9286,
1027,
1005,
1011,
8827,
2094,
6764,
2443,
1005,
1025,
3338,
1025,
2553,
1005,
2689,
21197,
1005,
1024,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* 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.
*/
package org.apache.nifi.processors.standard;
import org.apache.nifi.annotation.behavior.DynamicProperty;
import org.apache.nifi.annotation.behavior.InputRequirement;
import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
import org.apache.nifi.annotation.behavior.PrimaryNodeOnly;
import org.apache.nifi.annotation.behavior.Stateful;
import org.apache.nifi.annotation.behavior.TriggerSerially;
import org.apache.nifi.annotation.behavior.WritesAttribute;
import org.apache.nifi.annotation.behavior.WritesAttributes;
import org.apache.nifi.annotation.documentation.CapabilityDescription;
import org.apache.nifi.annotation.documentation.SeeAlso;
import org.apache.nifi.annotation.documentation.Tags;
import org.apache.nifi.components.PropertyDescriptor;
import org.apache.nifi.components.state.Scope;
import org.apache.nifi.expression.ExpressionLanguageScope;
import org.apache.nifi.processor.ProcessContext;
import org.apache.nifi.processor.ProcessSession;
import org.apache.nifi.processor.Relationship;
import org.apache.nifi.processors.standard.sql.DefaultAvroSqlWriter;
import org.apache.nifi.processors.standard.sql.SqlWriter;
import org.apache.nifi.util.db.JdbcCommon;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static org.apache.nifi.processors.standard.util.JdbcProperties.DEFAULT_PRECISION;
import static org.apache.nifi.processors.standard.util.JdbcProperties.DEFAULT_SCALE;
import static org.apache.nifi.processors.standard.util.JdbcProperties.NORMALIZE_NAMES_FOR_AVRO;
import static org.apache.nifi.processors.standard.util.JdbcProperties.USE_AVRO_LOGICAL_TYPES;
@TriggerSerially
@InputRequirement(Requirement.INPUT_FORBIDDEN)
@Tags({"sql", "select", "jdbc", "query", "database"})
@SeeAlso({GenerateTableFetch.class, ExecuteSQL.class})
@CapabilityDescription("Generates a SQL select query, or uses a provided statement, and executes it to fetch all rows whose values in the specified "
+ "Maximum Value column(s) are larger than the "
+ "previously-seen maxima. Query result will be converted to Avro format. Expression Language is supported for several properties, but no incoming "
+ "connections are permitted. The Variable Registry may be used to provide values for any property containing Expression Language. If it is desired to "
+ "leverage flow file attributes to perform these queries, the GenerateTableFetch and/or ExecuteSQL processors can be used for this purpose. "
+ "Streaming is used so arbitrarily large result sets are supported. This processor can be scheduled to run on "
+ "a timer or cron expression, using the standard scheduling methods. This processor is intended to be run on the Primary Node only. FlowFile attribute "
+ "'querydbtable.row.count' indicates how many rows were selected.")
@Stateful(scopes = Scope.CLUSTER, description = "After performing a query on the specified table, the maximum values for "
+ "the specified column(s) will be retained for use in future executions of the query. This allows the Processor "
+ "to fetch only those records that have max values greater than the retained values. This can be used for "
+ "incremental fetching, fetching of newly added rows, etc. To clear the maximum values, clear the state of the processor "
+ "per the State Management documentation")
@WritesAttributes({
@WritesAttribute(attribute = "tablename", description="Name of the table being queried"),
@WritesAttribute(attribute = "querydbtable.row.count", description="The number of rows selected by the query"),
@WritesAttribute(attribute="fragment.identifier", description="If 'Max Rows Per Flow File' is set then all FlowFiles from the same query result set "
+ "will have the same value for the fragment.identifier attribute. This can then be used to correlate the results."),
@WritesAttribute(attribute = "fragment.count", description = "If 'Max Rows Per Flow File' is set then this is the total number of "
+ "FlowFiles produced by a single ResultSet. This can be used in conjunction with the "
+ "fragment.identifier attribute in order to know how many FlowFiles belonged to the same incoming ResultSet. If Output Batch Size is set, then this "
+ "attribute will not be populated."),
@WritesAttribute(attribute="fragment.index", description="If 'Max Rows Per Flow File' is set then the position of this FlowFile in the list of "
+ "outgoing FlowFiles that were all derived from the same result set FlowFile. This can be "
+ "used in conjunction with the fragment.identifier attribute to know which FlowFiles originated from the same query result set and in what order "
+ "FlowFiles were produced"),
@WritesAttribute(attribute = "maxvalue.*", description = "Each attribute contains the observed maximum value of a specified 'Maximum-value Column'. The "
+ "suffix of the attribute is the name of the column. If Output Batch Size is set, then this attribute will not be populated.")})
@DynamicProperty(name = "initial.maxvalue.<max_value_column>", value = "Initial maximum value for the specified column",
expressionLanguageScope = ExpressionLanguageScope.VARIABLE_REGISTRY, description = "Specifies an initial max value for max value column(s). Properties should "
+ "be added in the format `initial.maxvalue.<max_value_column>`. This value is only used the first time the table is accessed (when a Maximum Value Column is specified).")
@PrimaryNodeOnly
public class QueryDatabaseTable extends AbstractQueryDatabaseTable {
public QueryDatabaseTable() {
final Set<Relationship> r = new HashSet<>();
r.add(REL_SUCCESS);
relationships = Collections.unmodifiableSet(r);
final List<PropertyDescriptor> pds = new ArrayList<>();
pds.add(DBCP_SERVICE);
pds.add(DB_TYPE);
pds.add(new PropertyDescriptor.Builder()
.fromPropertyDescriptor(TABLE_NAME)
.description("The name of the database table to be queried. When a custom query is used, this property is used to alias the query and appears as an attribute on the FlowFile.")
.build());
pds.add(COLUMN_NAMES);
pds.add(WHERE_CLAUSE);
pds.add(SQL_QUERY);
pds.add(MAX_VALUE_COLUMN_NAMES);
pds.add(QUERY_TIMEOUT);
pds.add(FETCH_SIZE);
pds.add(MAX_ROWS_PER_FLOW_FILE);
pds.add(OUTPUT_BATCH_SIZE);
pds.add(MAX_FRAGMENTS);
pds.add(NORMALIZE_NAMES_FOR_AVRO);
pds.add(TRANS_ISOLATION_LEVEL);
pds.add(USE_AVRO_LOGICAL_TYPES);
pds.add(DEFAULT_PRECISION);
pds.add(DEFAULT_SCALE);
propDescriptors = Collections.unmodifiableList(pds);
}
@Override
protected SqlWriter configureSqlWriter(ProcessSession session, ProcessContext context) {
final String tableName = context.getProperty(TABLE_NAME).evaluateAttributeExpressions().getValue();
final boolean convertNamesForAvro = context.getProperty(NORMALIZE_NAMES_FOR_AVRO).asBoolean();
final Boolean useAvroLogicalTypes = context.getProperty(USE_AVRO_LOGICAL_TYPES).asBoolean();
final Integer maxRowsPerFlowFile = context.getProperty(MAX_ROWS_PER_FLOW_FILE).evaluateAttributeExpressions().asInteger();
final Integer defaultPrecision = context.getProperty(DEFAULT_PRECISION).evaluateAttributeExpressions().asInteger();
final Integer defaultScale = context.getProperty(DEFAULT_SCALE).evaluateAttributeExpressions().asInteger();
final JdbcCommon.AvroConversionOptions options = JdbcCommon.AvroConversionOptions.builder()
.recordName(tableName)
.convertNames(convertNamesForAvro)
.useLogicalTypes(useAvroLogicalTypes)
.defaultPrecision(defaultPrecision)
.defaultScale(defaultScale)
.maxRows(maxRowsPerFlowFile)
.build();
return new DefaultAvroSqlWriter(options);
}
}
| mcgilman/nifi | nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryDatabaseTable.java | Java | apache-2.0 | 9,016 | [
30522,
1013,
1008,
1008,
7000,
2000,
1996,
15895,
4007,
3192,
1006,
2004,
2546,
1007,
2104,
2028,
2030,
2062,
1008,
12130,
6105,
10540,
1012,
30524,
3272,
1999,
12646,
2007,
1008,
1996,
6105,
1012,
2017,
2089,
6855,
1037,
6100,
1997,
1996,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace Examples
{
class Program
{
[STAThread]
static void Main(string[] args)
{
SolidEdgeFramework.Application application = null;
SolidEdgePart.PartDocument partDocument = null;
SolidEdgePart.Models models = null;
SolidEdgePart.Model model = null;
SolidEdgePart.RevolvedCutouts revolvedCutouts = null;
SolidEdgePart.RevolvedCutout revolvedCutout = null;
try
{
// See "Handling 'Application is Busy' and 'Call was Rejected By Callee' errors" topic.
OleMessageFilter.Register();
// Attempt to connect to a running instance of Solid Edge.
application = (SolidEdgeFramework.Application)Marshal.GetActiveObject("SolidEdge.Application");
partDocument = application.ActiveDocument as SolidEdgePart.PartDocument;
if (partDocument != null)
{
models = partDocument.Models;
model = models.Item(1);
revolvedCutouts = model.RevolvedCutouts;
for (int i = 1; i <= revolvedCutouts.Count; i++)
{
revolvedCutout = revolvedCutouts.Item(i);
var topCap = (SolidEdgeGeometry.Face)revolvedCutout.TopCap;
}
}
}
catch (System.Exception ex)
{
Console.WriteLine(ex);
}
finally
{
OleMessageFilter.Unregister();
}
}
}
} | SolidEdgeCommunity/docs | docfx_project/snippets/SolidEdgePart.RevolvedCutout.TopCap.cs | C# | mit | 1,741 | [
30522,
2478,
2291,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
2478,
2291,
1012,
2448,
7292,
1012,
6970,
11923,
2121,
7903,
2229,
1025,
3415,
15327,
4973,
1063,
2465,
2565,
1063,
1031,
28093,
28362,
4215,
1033,
10763,
11675,
2364,
1006... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 1999,2004 The Apache Software 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.
*/
package org.apache.catalina.ssi;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Implements the Server-side #include command
*
* @author Bip Thelin
* @author Paul Speed
* @author Dan Sandberg
* @author David Becker
* @version $Revision: 303882 $, $Date: 2005-04-23 12:22:37 +0200 (sam., 23 avr. 2005) $
*/
public final class SSIInclude implements SSICommand {
/**
* @see SSICommand
*/
public long process(SSIMediator ssiMediator, String commandName,
String[] paramNames, String[] paramValues, PrintWriter writer) {
long lastModified = 0;
String configErrMsg = ssiMediator.getConfigErrMsg();
for (int i = 0; i < paramNames.length; i++) {
String paramName = paramNames[i];
String paramValue = paramValues[i];
String substitutedValue = ssiMediator
.substituteVariables(paramValue);
try {
if (paramName.equalsIgnoreCase("file")
|| paramName.equalsIgnoreCase("virtual")) {
boolean virtual = paramName.equalsIgnoreCase("virtual");
lastModified = ssiMediator.getFileLastModified(
substitutedValue, virtual);
String text = ssiMediator.getFileText(substitutedValue,
virtual);
writer.write(text);
} else {
ssiMediator.log("#include--Invalid attribute: "
+ paramName);
writer.write(configErrMsg);
}
} catch (IOException e) {
ssiMediator.log("#include--Couldn't include file: "
+ substitutedValue, e);
writer.write(configErrMsg);
}
}
return lastModified;
}
} | plumer/codana | tomcat_files/6.0.0/SSIInclude.java | Java | mit | 2,465 | [
30522,
1013,
1008,
1008,
9385,
2639,
1010,
2432,
1996,
15895,
4007,
3192,
1012,
7000,
2104,
1996,
1008,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
2017,
2089,
2025,
2224,
2023,
5371,
1008,
3272,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Module dependencies
*/
var Server = require('annex-ws-node').Server;
var http = require('http');
var stack = require('connect-stack');
var pns = require('pack-n-stack');
module.exports = function createServer(opts) {
var server = http.createServer();
server.stack = [];
server.handle = stack(server.stack);
server.use = function(fn) {
fn.handle = fn;
server.stack.push(fn);
return server;
};
var routes = server.routes = {};
var hasPushedRouter = false;
server.register =
server.fn = function(modName, fnName, cb) {
var mod = routes[modName] = routes[modName] || {};
var fn = mod[fnName] = mod[fnName] || [];
fn.push(cb);
server.emit('register:call', modName, fnName);
if (hasPushedRouter) return server;
server.use(router);
hasPushedRouter = true;
return server;
};
function router(req, res, next) {
var mod = routes[req.module];
if (!mod) return next();
var fn = mod[req.method];
if (!fn) return next();
// TODO support next('route')
fn[0](req, res, next);
}
var wss = new Server({server: server, marshal: opts.marshal});
wss.listen(function(req, res) {
// TODO do a domain here
server.handle(req, res, function(err) {
if (!res._sent) {
err ? res.error(err.message) : res.error(req.module + ':' + req.method + ' not implemented');
if (err) console.error(err.stack || err.message);
}
});
});
return server;
}
| poegroup/poe-service-node | server.js | JavaScript | mit | 1,468 | [
30522,
1013,
1008,
1008,
1008,
11336,
12530,
15266,
1008,
1013,
13075,
8241,
1027,
5478,
1006,
1005,
17827,
1011,
1059,
2015,
1011,
13045,
1005,
1007,
1012,
8241,
1025,
13075,
8299,
1027,
5478,
1006,
1005,
8299,
1005,
1007,
1025,
13075,
999... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# hoist-model-wrappers
model wrappers to give to users
| hoist/hoist-model-wrappers | README.md | Markdown | mit | 55 | [
30522,
1001,
7570,
2923,
1011,
2944,
1011,
10236,
7347,
2944,
10236,
7347,
2000,
2507,
2000,
5198,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package leetcode;
/**
* https://leetcode.com/problems/convert-1d-array-into-2d-array/
*/
public class Problem2022 {
public int[][] construct2DArray(int[] original, int m, int n) {
if (m * n != original.length) {
return new int[][]{};
}
int[][] answer = new int[m][n];
int index = 0;
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
answer[i][j] = original[index++];
}
}
return answer;
}
}
| fredyw/leetcode | src/main/java/leetcode/Problem2022.java | Java | mit | 519 | [
30522,
7427,
3389,
13535,
10244,
1025,
1013,
1008,
1008,
1008,
16770,
1024,
1013,
1013,
3389,
13535,
10244,
1012,
4012,
1013,
3471,
1013,
10463,
1011,
1015,
2094,
1011,
9140,
1011,
2046,
1011,
14134,
1011,
9140,
1013,
1008,
1013,
2270,
2465... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
detail-patient-widget .defaultinsets {
padding: 5px;
}
detail-patient-widget .col1 {
width: 160px;
text-align: left;
}
detail-patient-widget .col2 {
width: 110px;
text-align: right;
}
detail-patient-widget .sm-well {
margin-bottom: 5px;
padding: 9px 18px;
}
detail-patient-widget .responder {
width: 84px;
}
detail-patient-widget .responder-container {
position: relative;
float: right;
} | crismaproject/pilot-e-application | app/styles/detailPatientDirective.css | CSS | lgpl-3.0 | 433 | [
30522,
6987,
1011,
5776,
1011,
15536,
24291,
1012,
12398,
7076,
8454,
1063,
11687,
4667,
1024,
1019,
2361,
2595,
1025,
1065,
6987,
1011,
5776,
1011,
15536,
24291,
1012,
8902,
2487,
1063,
9381,
1024,
8148,
2361,
2595,
1025,
3793,
1011,
25705... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_API_SOCKET_TCP_SOCKET_H_
#define EXTENSIONS_BROWSER_API_SOCKET_TCP_SOCKET_H_
#include <stdint.h>
#include <memory>
#include <string>
#include "base/memory/weak_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "extensions/browser/api/socket/socket.h"
#include "extensions/common/api/socket.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/base/completion_once_callback.h"
#include "services/network/public/mojom/network_service.mojom.h"
#include "services/network/public/mojom/tcp_socket.mojom.h"
#include "services/network/public/mojom/tls_socket.mojom.h"
namespace content {
class BrowserContext;
class StoragePartition;
}
namespace extensions {
class MojoDataPump;
class TCPSocket : public Socket {
public:
using UpgradeToTLSCallback = base::OnceCallback<void(
int,
mojo::PendingRemote<network::mojom::TLSClientSocket>,
const net::IPEndPoint&,
const net::IPEndPoint&,
mojo::ScopedDataPipeConsumerHandle,
mojo::ScopedDataPipeProducerHandle)>;
// Constuctor for when |socket_mode_| is unknown. The |socket_mode_| will be
// filled in when the consumer calls Listen/Connect.
TCPSocket(content::BrowserContext* browser_context,
const std::string& owner_extension_id);
// Created using TCPServerSocket::Accept().
TCPSocket(mojo::PendingRemote<network::mojom::TCPConnectedSocket> socket,
mojo::ScopedDataPipeConsumerHandle receive_stream,
mojo::ScopedDataPipeProducerHandle send_stream,
const absl::optional<net::IPEndPoint>& remote_addr,
const std::string& owner_extension_id);
TCPSocket(const TCPSocket&) = delete;
TCPSocket& operator=(const TCPSocket&) = delete;
~TCPSocket() override;
void Connect(const net::AddressList& address,
net::CompletionOnceCallback callback) override;
void Disconnect(bool socket_destroying) override;
void Bind(const std::string& address,
uint16_t port,
net::CompletionOnceCallback callback) override;
void Read(int count, ReadCompletionCallback callback) override;
void RecvFrom(int count, RecvFromCompletionCallback callback) override;
void SendTo(scoped_refptr<net::IOBuffer> io_buffer,
int byte_count,
const net::IPEndPoint& address,
net::CompletionOnceCallback callback) override;
void SetKeepAlive(bool enable,
int delay,
SetKeepAliveCallback callback) override;
void SetNoDelay(bool no_delay, SetNoDelayCallback callback) override;
void Listen(const std::string& address,
uint16_t port,
int backlog,
ListenCallback callback) override;
void Accept(AcceptCompletionCallback callback) override;
bool IsConnected() override;
bool GetPeerAddress(net::IPEndPoint* address) override;
bool GetLocalAddress(net::IPEndPoint* address) override;
Socket::SocketType GetSocketType() const override;
void UpgradeToTLS(api::socket::SecureOptions* options,
UpgradeToTLSCallback callback);
void SetStoragePartitionForTest(
content::StoragePartition* storage_partition) {
storage_partition_ = storage_partition;
}
protected:
int WriteImpl(net::IOBuffer* io_buffer,
int io_buffer_size,
net::CompletionOnceCallback callback) override;
private:
// Connects a client TCP socket.
void OnConnectComplete(int result,
const absl::optional<net::IPEndPoint>& local_addr,
const absl::optional<net::IPEndPoint>& peer_addr,
mojo::ScopedDataPipeConsumerHandle receive_stream,
mojo::ScopedDataPipeProducerHandle send_stream);
// Connects a server TCP socket.
void OnListenComplete(int result,
const absl::optional<net::IPEndPoint>& local_addr);
void OnAccept(
int result,
const absl::optional<net::IPEndPoint>& remote_addr,
mojo::PendingRemote<network::mojom::TCPConnectedSocket> connected_socket,
mojo::ScopedDataPipeConsumerHandle receive_stream,
mojo::ScopedDataPipeProducerHandle send_stream);
void OnWriteComplete(net::CompletionOnceCallback callback, int result);
void OnReadComplete(int result, scoped_refptr<net::IOBuffer> io_buffer);
void OnUpgradeToTLSComplete(
UpgradeToTLSCallback callback,
mojo::PendingRemote<network::mojom::TLSClientSocket> tls_socket,
const net::IPEndPoint& local_addr,
const net::IPEndPoint& peer_addr,
int result,
mojo::ScopedDataPipeConsumerHandle receive_stream,
mojo::ScopedDataPipeProducerHandle send_stream,
const absl::optional<net::SSLInfo>& ssl_info);
content::StoragePartition* GetStoragePartitionHelper();
enum SocketMode {
UNKNOWN = 0,
CLIENT,
SERVER,
};
// |this| doesn't outlive |browser_context_| because |this| is owned by
// ApiResourceManager which is a BrowserContextKeyedAPI.
content::BrowserContext* browser_context_;
SocketMode socket_mode_;
// CLIENT mode.
mojo::Remote<network::mojom::TCPConnectedSocket> client_socket_;
// SERVER mode.
mojo::Remote<network::mojom::TCPServerSocket> server_socket_;
net::CompletionOnceCallback connect_callback_;
ListenCallback listen_callback_;
AcceptCompletionCallback accept_callback_;
ReadCompletionCallback read_callback_;
std::unique_ptr<MojoDataPump> mojo_data_pump_;
absl::optional<net::IPEndPoint> local_addr_;
absl::optional<net::IPEndPoint> peer_addr_;
// Only used in tests.
content::StoragePartition* storage_partition_ = nullptr;
// WeakPtr is used when posting tasks to |task_runner_| which might outlive
// |this|.
base::WeakPtrFactory<TCPSocket> weak_factory_{this};
};
// TCP Socket instances from the "sockets.tcp" namespace. These are regular
// socket objects with additional properties related to the behavior defined in
// the "sockets.tcp" namespace.
class ResumableTCPSocket : public TCPSocket {
public:
ResumableTCPSocket(content::BrowserContext* browser_context,
const std::string& owner_extension_id);
// Created using TCPServerSocket::Accept().
ResumableTCPSocket(
mojo::PendingRemote<network::mojom::TCPConnectedSocket> socket,
mojo::ScopedDataPipeConsumerHandle receive_stream,
mojo::ScopedDataPipeProducerHandle send_stream,
const absl::optional<net::IPEndPoint>& remote_addr,
const std::string& owner_extension_id);
~ResumableTCPSocket() override;
// Overriden from ApiResource
bool IsPersistent() const override;
const std::string& name() const { return name_; }
void set_name(const std::string& name) { name_ = name; }
bool persistent() const { return persistent_; }
void set_persistent(bool persistent) { persistent_ = persistent; }
int buffer_size() const { return buffer_size_; }
void set_buffer_size(int buffer_size) { buffer_size_ = buffer_size; }
bool paused() const { return paused_; }
void set_paused(bool paused) { paused_ = paused; }
private:
friend class ApiResourceManager<ResumableTCPSocket>;
static const char* service_name() { return "ResumableTCPSocketManager"; }
// Application-defined string - see sockets_tcp.idl.
std::string name_;
// Flag indicating whether the socket is left open when the application is
// suspended - see sockets_tcp.idl.
bool persistent_;
// The size of the buffer used to receive data - see sockets_tcp.idl.
int buffer_size_;
// Flag indicating whether a connected socket blocks its peer from sending
// more data - see sockets_tcp.idl.
bool paused_;
};
// TCP Socket instances from the "sockets.tcpServer" namespace. These are
// regular socket objects with additional properties related to the behavior
// defined in the "sockets.tcpServer" namespace.
class ResumableTCPServerSocket : public TCPSocket {
public:
ResumableTCPServerSocket(content::BrowserContext* browser_context,
const std::string& owner_extension_id);
// Overriden from ApiResource
bool IsPersistent() const override;
const std::string& name() const { return name_; }
void set_name(const std::string& name) { name_ = name; }
bool persistent() const { return persistent_; }
void set_persistent(bool persistent) { persistent_ = persistent; }
bool paused() const { return paused_; }
void set_paused(bool paused) { paused_ = paused; }
private:
friend class ApiResourceManager<ResumableTCPServerSocket>;
static const char* service_name() {
return "ResumableTCPServerSocketManager";
}
// Application-defined string - see sockets_tcp_server.idl.
std::string name_;
// Flag indicating whether the socket is left open when the application is
// suspended - see sockets_tcp_server.idl.
bool persistent_;
// Flag indicating whether a connected socket blocks its peer from sending
// more data - see sockets_tcp_server.idl.
bool paused_;
};
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_SOCKET_TCP_SOCKET_H_
| scheib/chromium | extensions/browser/api/socket/tcp_socket.h | C | bsd-3-clause | 9,357 | [
30522,
1013,
1013,
9385,
2297,
1996,
10381,
21716,
5007,
6048,
1012,
2035,
2916,
9235,
1012,
1013,
1013,
2224,
1997,
2023,
3120,
3642,
2003,
9950,
2011,
1037,
18667,
2094,
1011,
2806,
6105,
2008,
2064,
2022,
1013,
1013,
2179,
1999,
1996,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#include "private-libwebsockets.h"
struct libwebsocket *libwebsocket_client_connect_2(
struct libwebsocket_context *context,
struct libwebsocket *wsi
) {
struct libwebsocket_pollfd pfd;
#ifdef LWS_USE_IPV6
struct sockaddr_in6 server_addr6;
struct sockaddr_in6 client_addr6;
struct addrinfo hints, *result;
#endif
struct sockaddr_in server_addr4;
struct sockaddr_in client_addr4;
struct sockaddr *v;
int n;
int plen = 0;
const char *ads;
lwsl_client("libwebsocket_client_connect_2\n");
/*
* proxy?
*/
if (context->http_proxy_port) {
plen = sprintf((char *)context->service_buffer,
"CONNECT %s:%u HTTP/1.0\x0d\x0a"
"User-agent: libwebsockets\x0d\x0a"
/*Proxy-authorization: basic aGVsbG86d29ybGQ= */
"\x0d\x0a",
lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS),
wsi->u.hdr.ah->c_port);
ads = context->http_proxy_address;
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context))
server_addr6.sin6_port = htons(context->http_proxy_port);
else
#endif
server_addr4.sin_port = htons(context->http_proxy_port);
} else {
ads = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS);
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context))
server_addr6.sin6_port = htons(wsi->u.hdr.ah->c_port);
else
#endif
server_addr4.sin_port = htons(wsi->u.hdr.ah->c_port);
}
/*
* prepare the actual connection (to the proxy, if any)
*/
lwsl_client("libwebsocket_client_connect_2: address %s\n", ads);
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context)) {
memset(&hints, 0, sizeof(struct addrinfo));
n = getaddrinfo(ads, NULL, &hints, &result);
if (n) {
#ifdef _WIN32
lwsl_err("getaddrinfo: %ls\n", gai_strerrorW(n));
#else
lwsl_err("getaddrinfo: %s\n", gai_strerror(n));
#endif
goto oom4;
}
server_addr6.sin6_family = AF_INET6;
switch (result->ai_family) {
case AF_INET:
/* map IPv4 to IPv6 */
bzero((char *)&server_addr6.sin6_addr,
sizeof(struct in6_addr));
server_addr6.sin6_addr.s6_addr[10] = 0xff;
server_addr6.sin6_addr.s6_addr[11] = 0xff;
memcpy(&server_addr6.sin6_addr.s6_addr[12],
&((struct sockaddr_in *)result->ai_addr)->sin_addr,
sizeof(struct in_addr));
break;
case AF_INET6:
memcpy(&server_addr6.sin6_addr,
&((struct sockaddr_in6 *)result->ai_addr)->sin6_addr,
sizeof(struct in6_addr));
break;
default:
lwsl_err("Unknown address family\n");
freeaddrinfo(result);
goto oom4;
}
freeaddrinfo(result);
} else
#endif
{
struct addrinfo ai, *res, *result;
void *p = NULL;
memset (&ai, 0, sizeof ai);
ai.ai_family = PF_UNSPEC;
ai.ai_socktype = SOCK_STREAM;
ai.ai_flags = AI_CANONNAME;
if (getaddrinfo(ads, NULL, &ai, &result))
goto oom4;
res = result;
while (!p && res) {
switch (res->ai_family) {
case AF_INET:
p = &((struct sockaddr_in *)res->ai_addr)->sin_addr;
break;
}
res = res->ai_next;
}
if (!p) {
freeaddrinfo(result);
goto oom4;
}
server_addr4.sin_family = AF_INET;
server_addr4.sin_addr = *((struct in_addr *)p);
bzero(&server_addr4.sin_zero, 8);
freeaddrinfo(result);
}
int should_call_connect = 0;
if (wsi->sock < 0) {
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context))
wsi->sock = socket(AF_INET6, SOCK_STREAM, 0);
else
#endif
wsi->sock = socket(AF_INET, SOCK_STREAM, 0);
if (wsi->sock < 0) {
lwsl_warn("Unable to open socket\n");
goto oom4;
}
if (lws_plat_set_socket_options(context, wsi->sock)) {
lwsl_err("Failed to set wsi socket options\n");
compatible_close(wsi->sock);
goto oom4;
}
wsi->mode = LWS_CONNMODE_WS_CLIENT_WAITING_CONNECT;
should_call_connect = 1;
lws_libev_accept(context, wsi, wsi->sock);
insert_wsi_socket_into_fds(context, wsi);
libwebsocket_set_timeout(wsi,
PENDING_TIMEOUT_AWAITING_CONNECT_RESPONSE,
AWAITING_TIMEOUT);
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context)) {
v = (struct sockaddr *)&client_addr6;
n = sizeof(client_addr6);
bzero((char *)v, n);
client_addr6.sin6_family = AF_INET6;
} else
#endif
{
v = (struct sockaddr *)&client_addr4;
n = sizeof(client_addr4);
bzero((char *)v, n);
client_addr4.sin_family = AF_INET;
}
if (context->iface) {
if (interface_to_sa(context, context->iface,
(struct sockaddr_in *)v, n) < 0) {
lwsl_err("Unable to find interface %s\n",
context->iface);
compatible_close(wsi->sock);
goto failed;
}
if (bind(wsi->sock, v, n) < 0) {
lwsl_err("Error binding to interface %s",
context->iface);
compatible_close(wsi->sock);
goto failed;
}
}
}
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context)) {
v = (struct sockaddr *)&server_addr6;
n = sizeof(struct sockaddr_in6);
} else
#endif
{
v = (struct sockaddr *)&server_addr4;
n = sizeof(struct sockaddr);
}
if (should_call_connect)
{
if(connect(wsi->sock, v, n) == -1 || LWS_ERRNO == LWS_EISCONN)
{
if(LWS_ERRNO == LWS_EALREADY || LWS_ERRNO == LWS_EINPROGRESS
|| LWS_ERRNO == LWS_EWOULDBLOCK)
{
lwsl_client("nonblocking connect retry\n");
/*
* must do specifically a POLLOUT poll to hear
* about the connect completion
*/
if(lws_change_pollfd(wsi, 0, LWS_POLLOUT))
goto oom4;
lws_libev_io(context, wsi, LWS_EV_START | LWS_EV_WRITE);
return wsi;
}
if(LWS_ERRNO != LWS_EISCONN)
{
lwsl_debug("Connect failed errno=%d\n", LWS_ERRNO);
goto failed;
}
}
}
else
{
fd_set set;
FD_ZERO(&set);
FD_SET(wsi->sock, &set);
struct timeval time;
time.tv_sec = AWAITING_TIMEOUT;
time.tv_usec = 0;
select(wsi->sock + 1, NULL, &set, NULL, &time);
}
lwsl_client("connected\n");
/* we are connected to server, or proxy */
if (context->http_proxy_port) {
/* OK from now on we talk via the proxy, so connect to that */
/*
* (will overwrite existing pointer,
* leaving old string/frag there but unreferenced)
*/
if (lws_hdr_simple_create(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS,
context->http_proxy_address))
goto failed;
wsi->u.hdr.ah->c_port = context->http_proxy_port;
n = send(wsi->sock, context->service_buffer, plen, MSG_NOSIGNAL);
if (n < 0) {
lwsl_debug("ERROR writing to proxy socket\n");
goto failed;
}
libwebsocket_set_timeout(wsi,
PENDING_TIMEOUT_AWAITING_PROXY_RESPONSE,
AWAITING_TIMEOUT);
wsi->mode = LWS_CONNMODE_WS_CLIENT_WAITING_PROXY_REPLY;
return wsi;
}
/*
* provoke service to issue the handshake directly
* we need to do it this way because in the proxy case, this is the
* next state and executed only if and when we get a good proxy
* response inside the state machine... but notice in SSL case this
* may not have sent anything yet with 0 return, and won't until some
* many retries from main loop. To stop that becoming endless,
* cover with a timeout.
*/
libwebsocket_set_timeout(wsi,
PENDING_TIMEOUT_SENT_CLIENT_HANDSHAKE, AWAITING_TIMEOUT);
wsi->mode = LWS_CONNMODE_WS_CLIENT_ISSUE_HANDSHAKE;
pfd.fd = wsi->sock;
pfd.revents = LWS_POLLIN;
n = libwebsocket_service_fd(context, &pfd);
if (n < 0)
goto failed;
if (n) /* returns 1 on failure after closing wsi */
return NULL;
return wsi;
oom4:
lws_free(wsi->u.hdr.ah);
lws_free(wsi);
return NULL;
failed:
libwebsocket_close_and_free_session(context, wsi,
LWS_CLOSE_STATUS_NOSTATUS);
return NULL;
}
/**
* libwebsocket_client_connect() - Connect to another websocket server
* @context: Websocket context
* @address: Remote server address, eg, "myserver.com"
* @port: Port to connect to on the remote server, eg, 80
* @ssl_connection: 0 = ws://, 1 = wss:// encrypted, 2 = wss:// allow self
* signed certs
* @path: Websocket path on server
* @host: Hostname on server
* @origin: Socket origin name
* @protocol: Comma-separated list of protocols being asked for from
* the server, or just one. The server will pick the one it
* likes best. If you don't want to specify a protocol, which is
* legal, use NULL here.
* @ietf_version_or_minus_one: -1 to ask to connect using the default, latest
* protocol supported, or the specific protocol ordinal
*
* This function creates a connection to a remote server
*/
LWS_VISIBLE struct libwebsocket *
libwebsocket_client_connect(struct libwebsocket_context *context,
const char *address,
int port,
int ssl_connection,
const char *path,
const char *host,
const char *origin,
const char *protocol,
int ietf_version_or_minus_one)
{
struct libwebsocket *wsi;
wsi = lws_zalloc(sizeof(struct libwebsocket));
if (wsi == NULL)
goto bail;
wsi->sock = -1;
/* -1 means just use latest supported */
if (ietf_version_or_minus_one == -1)
ietf_version_or_minus_one = SPEC_LATEST_SUPPORTED;
wsi->ietf_spec_revision = ietf_version_or_minus_one;
wsi->user_space = NULL;
wsi->state = WSI_STATE_CLIENT_UNCONNECTED;
wsi->protocol = NULL;
wsi->pending_timeout = NO_PENDING_TIMEOUT;
#ifdef LWS_OPENSSL_SUPPORT
wsi->use_ssl = ssl_connection;
#else
if (ssl_connection) {
lwsl_err("libwebsockets not configured for ssl\n");
goto bail;
}
#endif
if (lws_allocate_header_table(wsi))
goto bail;
/*
* we're not necessarily in a position to action these right away,
* stash them... we only need during connect phase so u.hdr is fine
*/
wsi->u.hdr.ah->c_port = port;
if (lws_hdr_simple_create(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS, address))
goto bail1;
/* these only need u.hdr lifetime as well */
if (lws_hdr_simple_create(wsi, _WSI_TOKEN_CLIENT_URI, path))
goto bail1;
if (lws_hdr_simple_create(wsi, _WSI_TOKEN_CLIENT_HOST, host))
goto bail1;
if (origin)
if (lws_hdr_simple_create(wsi,
_WSI_TOKEN_CLIENT_ORIGIN, origin))
goto bail1;
/*
* this is a list of protocols we tell the server we're okay with
* stash it for later when we compare server response with it
*/
if (protocol)
if (lws_hdr_simple_create(wsi,
_WSI_TOKEN_CLIENT_SENT_PROTOCOLS, protocol))
goto bail1;
wsi->protocol = &context->protocols[0];
/*
* Check with each extension if it is able to route and proxy this
* connection for us. For example, an extension like x-google-mux
* can handle this and then we don't need an actual socket for this
* connection.
*/
if (lws_ext_callback_for_each_extension_type(context, wsi,
LWS_EXT_CALLBACK_CAN_PROXY_CLIENT_CONNECTION,
(void *)address, port) > 0) {
lwsl_client("libwebsocket_client_connect: ext handling conn\n");
libwebsocket_set_timeout(wsi,
PENDING_TIMEOUT_AWAITING_EXTENSION_CONNECT_RESPONSE,
AWAITING_TIMEOUT);
wsi->mode = LWS_CONNMODE_WS_CLIENT_WAITING_EXTENSION_CONNECT;
return wsi;
}
lwsl_client("libwebsocket_client_connect: direct conn\n");
return libwebsocket_client_connect_2(context, wsi);
bail1:
lws_free(wsi->u.hdr.ah);
bail:
lws_free(wsi);
return NULL;
}
/**
* libwebsocket_client_connect_extended() - Connect to another websocket server
* @context: Websocket context
* @address: Remote server address, eg, "myserver.com"
* @port: Port to connect to on the remote server, eg, 80
* @ssl_connection: 0 = ws://, 1 = wss:// encrypted, 2 = wss:// allow self
* signed certs
* @path: Websocket path on server
* @host: Hostname on server
* @origin: Socket origin name
* @protocol: Comma-separated list of protocols being asked for from
* the server, or just one. The server will pick the one it
* likes best.
* @ietf_version_or_minus_one: -1 to ask to connect using the default, latest
* protocol supported, or the specific protocol ordinal
* @userdata: Pre-allocated user data
*
* This function creates a connection to a remote server
*/
LWS_VISIBLE struct libwebsocket *
libwebsocket_client_connect_extended(struct libwebsocket_context *context,
const char *address,
int port,
int ssl_connection,
const char *path,
const char *host,
const char *origin,
const char *protocol,
int ietf_version_or_minus_one,
void *userdata)
{
struct libwebsocket *ws =
libwebsocket_client_connect(context, address, port,
ssl_connection, path, host, origin, protocol,
ietf_version_or_minus_one);
if (ws && !ws->user_space && userdata) {
ws->user_space_externally_allocated = 1;
ws->user_space = userdata ;
}
return ws ;
}
| GroundControl-Solutions/libwebsockets | lib/client-handshake.c | C | lgpl-2.1 | 12,420 | [
30522,
1001,
2421,
1000,
2797,
1011,
5622,
2497,
8545,
5910,
7432,
8454,
1012,
1044,
1000,
2358,
6820,
6593,
5622,
2497,
8545,
5910,
7432,
3388,
1008,
5622,
2497,
8545,
5910,
7432,
3388,
1035,
7396,
1035,
7532,
1035,
1016,
1006,
2358,
682... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.1', 'F05.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.2', 'F19.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.3', 'F19.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.4', 'F05.8'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.5', 'F10.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.6', 'F11.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.7', 'F12.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.8', 'F13.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.9', 'F14.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.10', 'F15.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.11', 'F16.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.12', 'F18.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.1.13', 'F19.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.2.1', 'F01.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.2.2', 'F02.4'
---- EXEC[dbo].[CreateICD10CodeMap] '18.1.2.3', '-'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.2.4', 'F02.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.1.2.5', 'F30.9'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.1', 'F10.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.2', 'F15.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.3', 'F12.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.4', 'F14.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.5', 'F16.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.6', 'F11.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.7', 'F16.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.8', 'F13.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.9', 'F19.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.10', 'F19.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.11', 'F15.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.12', 'F17.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.2.13', 'F18.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.1 ', 'F34.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.2.1', 'F32.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.2.2', 'F32.2'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.3.1', 'F31.5'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.3.2', 'F32.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.3.3', 'F30.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.3.4', 'F30.2'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.3.5', 'F31.6'
--EXEC[dbo].[CreateICD10CodeMap] '18.3.3.6', 'F31.6'
--EXEC[dbo].[CreateICD10CodeMap] '18.4', 'F41.9'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.1', 'F41.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.2', 'F40.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.3', 'F40.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.4', 'F40.2'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.5', 'F40.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.6', 'F42.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.7', 'F43.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.4.8', 'F43.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.5.1', 'F50.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.5.2', 'F50.2'
--EXEC[dbo].[CreateICD10CodeMap] '18.5.3', 'F50.4'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.1', 'F20.2'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.2', 'F20.1'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.3', 'F20.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.4', 'F20.5'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.5', 'F20.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.6', 'F20.8'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.7', 'F25.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.8', 'F22.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.9', 'F23.8'
--EXEC[dbo].[CreateICD10CodeMap] '18.6.10', 'F23.9'
--EXEC[dbo].[CreateICD10CodeMap] '18.7.1', 'F90.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.7.2', 'F91.9'
--EXEC[dbo].[CreateICD10CodeMap] '18.7.3', 'F91.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.7.4', 'F91.8'
--EXEC[dbo].[CreateICD10CodeMap] '18.8.1', 'F45.0'
--EXEC[dbo].[CreateICD10CodeMap] '18.8.2', 'F44.6'
---- EXEC[dbo].[CreateICD10CodeMap] '18.9', '-'
--EXEC[dbo].[CreateICD10CodeMap] '18.10.1', 'F60.3'
--EXEC[dbo].[CreateICD10CodeMap] '18.10.2', 'F65.0'
---- EXEC[dbo].[CreateICD10CodeMap] '18.11', '-'
--Could not find Impairment Group Code (18.1.1.5)
--Could not find Impairment Group Code (18.1.1.6)
--Could not find Impairment Group Code (18.1.1.7)
--Could not find Impairment Group Code (18.1.1.8)
--Could not find Impairment Group Code (18.1.1.9)
--Could not find Impairment Group Code (18.1.1.10)
--Could not find Impairment Group Code (18.1.1.11)
--Could not find Impairment Group Code (18.1.1.12)
--Could not find Impairment Group Code (18.1.1.13)
--Could not find Impairment Group Code (18.1.2.5)
--Could not find Impairment Group Code (18.2.12)
--Could not find Impairment Group Code (18.2.13)
--Could not find Impairment Group Code (18.4)
--Could not find Impairment Group Code (18.4.1)
--Could not find Impairment Group Code (18.4.2)
--Could not find Impairment Group Code (18.10.1)
--Could not find Impairment Group Code (18.10.2)
| developersworkspace/EPONS | SourceCode/EPONS/EPONS.Teddy.Database/Data/ICD10CodeMap.sql | SQL | mit | 4,578 | [
30522,
1011,
1011,
4654,
8586,
1031,
16962,
2080,
1033,
1012,
1031,
3443,
2594,
2094,
10790,
16044,
2863,
2361,
1033,
1005,
2324,
1012,
1015,
1012,
1015,
1012,
1015,
1005,
1010,
1005,
1042,
2692,
2629,
1012,
1014,
1005,
1011,
1011,
4654,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 2015-2017 the original author or 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 org.docksidestage.app.web.product;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.docksidestage.dbflute.allcommon.CDef;
import org.hibernate.validator.constraints.Length;
/**
* @author jflute
*/
public class ProductSearchForm {
@Length(max = 10) // #simple_for_example just for validtion example
public String productName;
public CDef.ProductStatus productStatus;
@Length(max = 5) // #simple_for_example just for validtion example
public String purchaseMemberName;
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
| dbflute-session/lastaflute-test-catalog | src/main/java/org/docksidestage/app/web/product/ProductSearchForm.java | Java | apache-2.0 | 1,252 | [
30522,
1013,
1008,
1008,
9385,
2325,
1011,
2418,
1996,
2434,
3166,
2030,
6048,
1012,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,
2224,
2023,
53... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import { A, O } from 'b-o-a';
import { State } from '../types/state';
import currentPage$ from '../props/current-page';
import signIn$ from '../props/sign-in';
import spots$ from '../props/spots';
import spotForm$ from '../props/spot-form';
import stampRallies$ from '../props/stamp-rallies';
import stampRally$ from '../props/stamp-rally';
import stampRallyForm$ from '../props/stamp-rally-form';
import token$ from '../props/token';
const getDefaultState = (): State => {
return {
googleApiKey: process.env.GOOGLE_API_KEY,
currentPage: 'sign_in#index',
signIn: {
email: null,
password: null
},
spots: [],
spotForm: {
name: null
},
stampRallies: [],
stampRally: null,
stampRallyForm: {
name: null
},
token: {
token: null,
userId: null
}
};
};
const $ = (action$: O<A<any>>, state: State): O<State> => {
const s = (state ? state : getDefaultState());
return O
.combineLatest(
currentPage$(s.currentPage, action$),
signIn$(s.signIn, action$),
token$(s.token, action$),
spots$(s.spots, action$),
spotForm$(s.spotForm, action$),
stampRallies$(s.stampRallies, action$),
stampRally$(s.stampRally, action$),
stampRallyForm$(s.stampRallyForm, action$),
(
currentPage,
signIn,
token,
spots,
spotForm,
stampRallies,
stampRally,
stampRallyForm
): State => {
return Object.assign({}, s, {
currentPage,
signIn,
token,
spots,
spotForm,
stampRallies,
stampRally,
stampRallyForm
});
}
)
.do(console.log.bind(console)) // logger for state
.share();
};
export { $ };
| bouzuya/rally-rxjs | src/props/index.ts | TypeScript | mit | 1,793 | [
30522,
12324,
1063,
1037,
1010,
1051,
1065,
2013,
1005,
1038,
1011,
1051,
1011,
1037,
1005,
1025,
12324,
1063,
2110,
1065,
2013,
1005,
1012,
1012,
1013,
4127,
1013,
2110,
1005,
1025,
30524,
2783,
1011,
3931,
1005,
1025,
12324,
3696,
2378,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// 文件上传
jQuery(function() {
var $ = jQuery,
$list = $('#thelist'),
$btn = $('#ctlBtn'),
state = 'pending',
// 优化retina, 在retina下这个值是2
ratio = window.devicePixelRatio || 1,
// 缩略图大小
thumbnailWidth = 100 * ratio,
thumbnailHeight = 100 * ratio,
uploader;
uploader = WebUploader.create({
// 单文件上传
multiple: false,
// 不压缩image
resize: false,
// swf文件路径
swf: '/webuploader/Uploader.swf',
// 文件接收服务端。
server: '/upload',
// 选择文件的按钮。可选。
// 内部根据当前运行是创建,可能是input元素,也可能是flash.
pick: '#picker',
// 只允许选择图片文件。
accept: {
title: 'Images',
extensions: 'gif,jpg,jpeg,bmp,png',
mimeTypes: 'image/*'
}
});
// 当有文件添加进来的时候
uploader.on( 'fileQueued', function( file ) {
var $li = $(
'<div id="' + file.id + '" class="file-item thumbnail">' +
'<img>' +
'<div class="info">' + file.name + '</div>' +
'</div>'
),
$img = $li.find('img');
$list.append( $li );
// 创建缩略图
uploader.makeThumb( file, function( error, src ) {
if ( error ) {
$img.replaceWith('<span>不能预览</span>');
return;
}
$img.attr( 'src', src );
}, thumbnailWidth, thumbnailHeight );
});
// 文件上传过程中创建进度条实时显示。
uploader.on( 'uploadProgress', function( file, percentage ) {
var $li = $( '#'+file.id ),
$percent = $li.find('.progress .progress-bar');
// 避免重复创建
if ( !$percent.length ) {
$percent = $('<div class="progress progress-striped active">' +
'<div class="progress-bar" role="progressbar" style="width: 0%">' +
'</div>' +
'</div>').appendTo( $li ).find('.progress-bar');
}
$li.find('p.state').text('上传中');
$percent.css( 'width', percentage * 100 + '%' );
});
uploader.on( 'uploadSuccess', function( file , data) {
$( '#'+file.id ).find('p.state').text('已上传');
$('#user_avatar').val(data.imageurl)
$('#avatar').attr("src",data.imageurl)
});
uploader.on( 'uploadError', function( file ) {
$( '#'+file.id ).find('p.state').text('上传出错');
});
uploader.on( 'uploadComplete', function( file ) {
$( '#'+file.id ).find('.progress').fadeOut();
});
uploader.on( 'all', function( type ) {
if ( type === 'startUpload' ) {
state = 'uploading';
} else if ( type === 'stopUpload' ) {
state = 'paused';
} else if ( type === 'uploadFinished' ) {
state = 'done';
}
if ( state === 'uploading' ) {
$btn.text('暂停上传');
} else {
$btn.text('开始上传');
}
});
$btn.on( 'click', function() {
if ( state === 'uploading' ) {
uploader.stop();
} else {
uploader.upload();
}
});
}); | sxyx2008/rubyblog | public/webuploader/user-webuploader.js | JavaScript | mit | 3,416 | [
30522,
1013,
1013,
1861,
100,
1742,
100,
1046,
4226,
2854,
1006,
3853,
1006,
1007,
1063,
13075,
1002,
1027,
1046,
4226,
2854,
1010,
1002,
2862,
1027,
1002,
1006,
1005,
1001,
1996,
9863,
1005,
1007,
1010,
1002,
18411,
2078,
1027,
1002,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
"""A connection adapter that tries to use the best polling method for the
platform pika is running on.
"""
import os
import logging
import socket
import select
import errno
import time
from operator import itemgetter
from collections import defaultdict
import threading
import pika.compat
from pika.compat import dictkeys
from pika.adapters.base_connection import BaseConnection
LOGGER = logging.getLogger(__name__)
# One of select, epoll, kqueue or poll
SELECT_TYPE = None
# Use epoll's constants to keep life easy
READ = 0x0001
WRITE = 0x0004
ERROR = 0x0008
if pika.compat.PY2:
_SELECT_ERROR = select.error
else:
# select.error was deprecated and replaced by OSError in python 3.3
_SELECT_ERROR = OSError
def _get_select_errno(error):
if pika.compat.PY2:
assert isinstance(error, select.error), repr(error)
return error.args[0]
else:
assert isinstance(error, OSError), repr(error)
return error.errno
class SelectConnection(BaseConnection):
"""An asynchronous connection adapter that attempts to use the fastest
event loop adapter for the given platform.
"""
def __init__(self,
parameters=None,
on_open_callback=None,
on_open_error_callback=None,
on_close_callback=None,
stop_ioloop_on_close=True,
custom_ioloop=None):
"""Create a new instance of the Connection object.
:param pika.connection.Parameters parameters: Connection parameters
:param method on_open_callback: Method to call on connection open
:param on_open_error_callback: Method to call if the connection cant
be opened
:type on_open_error_callback: method
:param method on_close_callback: Method to call on connection close
:param bool stop_ioloop_on_close: Call ioloop.stop() if disconnected
:param custom_ioloop: Override using the global IOLoop in Tornado
:raises: RuntimeError
"""
ioloop = custom_ioloop or IOLoop()
super(SelectConnection, self).__init__(parameters, on_open_callback,
on_open_error_callback,
on_close_callback, ioloop,
stop_ioloop_on_close)
def _adapter_connect(self):
"""Connect to the RabbitMQ broker, returning True on success, False
on failure.
:rtype: bool
"""
error = super(SelectConnection, self)._adapter_connect()
if not error:
self.ioloop.add_handler(self.socket.fileno(), self._handle_events,
self.event_state)
return error
def _adapter_disconnect(self):
"""Disconnect from the RabbitMQ broker"""
if self.socket:
self.ioloop.remove_handler(self.socket.fileno())
super(SelectConnection, self)._adapter_disconnect()
class IOLoop(object):
"""Singlton wrapper that decides which type of poller to use, creates an
instance of it in start_poller and keeps the invoking application in a
blocking state by calling the pollers start method. Poller should keep
looping until IOLoop.instance().stop() is called or there is a socket
error.
Passes through all operations to the loaded poller object.
"""
def __init__(self):
self._poller = self._get_poller()
def __getattr__(self, attr):
return getattr(self._poller, attr)
def _get_poller(self):
"""Determine the best poller to use for this enviroment."""
poller = None
if hasattr(select, 'epoll'):
if not SELECT_TYPE or SELECT_TYPE == 'epoll':
LOGGER.debug('Using EPollPoller')
poller = EPollPoller()
if not poller and hasattr(select, 'kqueue'):
if not SELECT_TYPE or SELECT_TYPE == 'kqueue':
LOGGER.debug('Using KQueuePoller')
poller = KQueuePoller()
if (not poller and hasattr(select, 'poll') and
hasattr(select.poll(), 'modify')): # pylint: disable=E1101
if not SELECT_TYPE or SELECT_TYPE == 'poll':
LOGGER.debug('Using PollPoller')
poller = PollPoller()
if not poller:
LOGGER.debug('Using SelectPoller')
poller = SelectPoller()
return poller
class SelectPoller(object):
"""Default behavior is to use Select since it's the widest supported and has
all of the methods we need for child classes as well. One should only need
to override the update_handler and start methods for additional types.
"""
# Drop out of the poll loop every POLL_TIMEOUT secs as a worst case, this
# is only a backstop value. We will run timeouts when they are scheduled.
POLL_TIMEOUT = 5
# if the poller uses MS specify 1000
POLL_TIMEOUT_MULT = 1
def __init__(self):
"""Create an instance of the SelectPoller
"""
# fd-to-handler function mappings
self._fd_handlers = dict()
# event-to-fdset mappings
self._fd_events = {READ: set(), WRITE: set(), ERROR: set()}
self._stopping = False
self._timeouts = {}
self._next_timeout = None
self._processing_fd_event_map = {}
# Mutex for controlling critical sections where ioloop-interrupt sockets
# are created, used, and destroyed. Needed in case `stop()` is called
# from a thread.
self._mutex = threading.Lock()
# ioloop-interrupt socket pair; initialized in start()
self._r_interrupt = None
self._w_interrupt = None
def get_interrupt_pair(self):
""" Use a socketpair to be able to interrupt the ioloop if called
from another thread. Socketpair() is not supported on some OS (Win)
so use a pair of simple UDP sockets instead. The sockets will be
closed and garbage collected by python when the ioloop itself is.
"""
try:
read_sock, write_sock = socket.socketpair()
except AttributeError:
LOGGER.debug("Using custom socketpair for interrupt")
read_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
read_sock.bind(('localhost', 0))
write_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
write_sock.connect(read_sock.getsockname())
read_sock.setblocking(0)
write_sock.setblocking(0)
return read_sock, write_sock
def read_interrupt(self, interrupt_sock,
events, write_only): # pylint: disable=W0613
""" Read the interrupt byte(s). We ignore the event mask and write_only
flag as we can ony get here if there's data to be read on our fd.
:param int interrupt_sock: The file descriptor to read from
:param int events: (unused) The events generated for this fd
:param bool write_only: (unused) True if poll was called to trigger a
write
"""
try:
os.read(interrupt_sock, 512)
except OSError as err:
if err.errno != errno.EAGAIN:
raise
def add_timeout(self, deadline, callback_method):
"""Add the callback_method to the IOLoop timer to fire after deadline
seconds. Returns a handle to the timeout. Do not confuse with
Tornado's timeout where you pass in the time you want to have your
callback called. Only pass in the seconds until it's to be called.
:param int deadline: The number of seconds to wait to call callback
:param method callback_method: The callback method
:rtype: str
"""
timeout_at = time.time() + deadline
value = {'deadline': timeout_at, 'callback': callback_method}
timeout_id = hash(frozenset(value.items()))
self._timeouts[timeout_id] = value
if not self._next_timeout or timeout_at < self._next_timeout:
self._next_timeout = timeout_at
return timeout_id
def remove_timeout(self, timeout_id):
"""Remove a timeout if it's still in the timeout stack
:param str timeout_id: The timeout id to remove
"""
try:
timeout = self._timeouts.pop(timeout_id)
if timeout['deadline'] == self._next_timeout:
self._next_timeout = None
except KeyError:
pass
def get_next_deadline(self):
"""Get the interval to the next timeout event, or a default interval
"""
if self._next_timeout:
timeout = max((self._next_timeout - time.time(), 0))
elif self._timeouts:
deadlines = [t['deadline'] for t in self._timeouts.values()]
self._next_timeout = min(deadlines)
timeout = max((self._next_timeout - time.time(), 0))
else:
timeout = SelectPoller.POLL_TIMEOUT
timeout = min((timeout, SelectPoller.POLL_TIMEOUT))
return timeout * SelectPoller.POLL_TIMEOUT_MULT
def process_timeouts(self):
"""Process the self._timeouts event stack"""
now = time.time()
to_run = [timer for timer in self._timeouts.values()
if timer['deadline'] <= now]
# Run the timeouts in order of deadlines. Although this shouldn't
# be strictly necessary it preserves old behaviour when timeouts
# were only run periodically.
for t in sorted(to_run, key=itemgetter('deadline')):
t['callback']()
del self._timeouts[hash(frozenset(t.items()))]
self._next_timeout = None
def add_handler(self, fileno, handler, events):
"""Add a new fileno to the set to be monitored
:param int fileno: The file descriptor
:param method handler: What is called when an event happens
:param int events: The event mask
"""
self._fd_handlers[fileno] = handler
self.update_handler(fileno, events)
def update_handler(self, fileno, events):
"""Set the events to the current events
:param int fileno: The file descriptor
:param int events: The event mask
"""
for ev in (READ, WRITE, ERROR):
if events & ev:
self._fd_events[ev].add(fileno)
else:
self._fd_events[ev].discard(fileno)
def remove_handler(self, fileno):
"""Remove a file descriptor from the set
:param int fileno: The file descriptor
"""
try:
del self._processing_fd_event_map[fileno]
except KeyError:
pass
self.update_handler(fileno, 0)
del self._fd_handlers[fileno]
def start(self):
"""Start the main poller loop. It will loop here until self._stopping"""
LOGGER.debug('Starting IOLoop')
self._stopping = False
with self._mutex:
# Watch out for reentry
if self._r_interrupt is None:
# Create ioloop-interrupt socket pair and register read handler.
# NOTE: we defer their creation because some users (e.g.,
# BlockingConnection adapter) don't use the event loop and these
# sockets would get reported as leaks
self._r_interrupt, self._w_interrupt = self.get_interrupt_pair()
self.add_handler(self._r_interrupt.fileno(),
self.read_interrupt,
READ)
interrupt_sockets_created = True
else:
interrupt_sockets_created = False
try:
# Run event loop
while not self._stopping:
self.poll()
self.process_timeouts()
finally:
# Unregister and close ioloop-interrupt socket pair
if interrupt_sockets_created:
with self._mutex:
self.remove_handler(self._r_interrupt.fileno())
self._r_interrupt.close()
self._r_interrupt = None
self._w_interrupt.close()
self._w_interrupt = None
def stop(self):
"""Request exit from the ioloop."""
LOGGER.debug('Stopping IOLoop')
self._stopping = True
with self._mutex:
if self._w_interrupt is None:
return
try:
# Send byte to interrupt the poll loop, use write() for
# consitency.
os.write(self._w_interrupt.fileno(), b'X')
except OSError as err:
if err.errno != errno.EWOULDBLOCK:
raise
except Exception as err:
# There's nothing sensible to do here, we'll exit the interrupt
# loop after POLL_TIMEOUT secs in worst case anyway.
LOGGER.warning("Failed to send ioloop interrupt: %s", err)
raise
def poll(self, write_only=False):
"""Wait for events on interested filedescriptors.
:param bool write_only: Passed through to the hadnlers to indicate
that they should only process write events.
"""
while True:
try:
read, write, error = select.select(self._fd_events[READ],
self._fd_events[WRITE],
self._fd_events[ERROR],
self.get_next_deadline())
break
except _SELECT_ERROR as error:
if _get_select_errno(error) == errno.EINTR:
continue
else:
raise
# Build an event bit mask for each fileno we've recieved an event for
fd_event_map = defaultdict(int)
for fd_set, ev in zip((read, write, error), (READ, WRITE, ERROR)):
for fileno in fd_set:
fd_event_map[fileno] |= ev
self._process_fd_events(fd_event_map, write_only)
def _process_fd_events(self, fd_event_map, write_only):
""" Processes the callbacks for each fileno we've recieved events.
Before doing so we re-calculate the event mask based on what is
currently set in case it has been changed under our feet by a
previous callback. We also take a store a refernce to the
fd_event_map in the class so that we can detect removal of an
fileno during processing of another callback and not generate
spurious callbacks on it.
:param dict fd_event_map: Map of fds to events recieved on them.
"""
self._processing_fd_event_map = fd_event_map
for fileno in dictkeys(fd_event_map):
if fileno not in fd_event_map:
# the fileno has been removed from the map under our feet.
continue
events = fd_event_map[fileno]
for ev in [READ, WRITE, ERROR]:
if fileno not in self._fd_events[ev]:
events &= ~ev
if events:
handler = self._fd_handlers[fileno]
handler(fileno, events, write_only=write_only)
class KQueuePoller(SelectPoller):
"""KQueuePoller works on BSD based systems and is faster than select"""
def __init__(self):
"""Create an instance of the KQueuePoller
:param int fileno: The file descriptor to check events for
:param method handler: What is called when an event happens
:param int events: The events to look for
"""
self._kqueue = select.kqueue()
super(KQueuePoller, self).__init__()
def update_handler(self, fileno, events):
"""Set the events to the current events
:param int fileno: The file descriptor
:param int events: The event mask
"""
kevents = list()
if not events & READ:
if fileno in self._fd_events[READ]:
kevents.append(select.kevent(fileno,
filter=select.KQ_FILTER_READ,
flags=select.KQ_EV_DELETE))
else:
if fileno not in self._fd_events[READ]:
kevents.append(select.kevent(fileno,
filter=select.KQ_FILTER_READ,
flags=select.KQ_EV_ADD))
if not events & WRITE:
if fileno in self._fd_events[WRITE]:
kevents.append(select.kevent(fileno,
filter=select.KQ_FILTER_WRITE,
flags=select.KQ_EV_DELETE))
else:
if fileno not in self._fd_events[WRITE]:
kevents.append(select.kevent(fileno,
filter=select.KQ_FILTER_WRITE,
flags=select.KQ_EV_ADD))
for event in kevents:
self._kqueue.control([event], 0)
super(KQueuePoller, self).update_handler(fileno, events)
def _map_event(self, kevent):
"""return the event type associated with a kevent object
:param kevent kevent: a kevent object as returned by kqueue.control()
"""
if kevent.filter == select.KQ_FILTER_READ:
return READ
elif kevent.filter == select.KQ_FILTER_WRITE:
return WRITE
elif kevent.flags & select.KQ_EV_ERROR:
return ERROR
def poll(self, write_only=False):
"""Check to see if the events that are cared about have fired.
:param bool write_only: Don't look at self.events, just look to see if
the adapter can write.
"""
while True:
try:
kevents = self._kqueue.control(None, 1000,
self.get_next_deadline())
break
except _SELECT_ERROR as error:
if _get_select_errno(error) == errno.EINTR:
continue
else:
raise
fd_event_map = defaultdict(int)
for event in kevents:
fileno = event.ident
fd_event_map[fileno] |= self._map_event(event)
self._process_fd_events(fd_event_map, write_only)
class PollPoller(SelectPoller):
"""Poll works on Linux and can have better performance than EPoll in
certain scenarios. Both are faster than select.
"""
POLL_TIMEOUT_MULT = 1000
def __init__(self):
"""Create an instance of the KQueuePoller
:param int fileno: The file descriptor to check events for
:param method handler: What is called when an event happens
:param int events: The events to look for
"""
self._poll = self.create_poller()
super(PollPoller, self).__init__()
def create_poller(self):
return select.poll() # pylint: disable=E1101
def add_handler(self, fileno, handler, events):
"""Add a file descriptor to the poll set
:param int fileno: The file descriptor to check events for
:param method handler: What is called when an event happens
:param int events: The events to look for
"""
self._poll.register(fileno, events)
super(PollPoller, self).add_handler(fileno, handler, events)
def update_handler(self, fileno, events):
"""Set the events to the current events
:param int fileno: The file descriptor
:param int events: The event mask
"""
super(PollPoller, self).update_handler(fileno, events)
self._poll.modify(fileno, events)
def remove_handler(self, fileno):
"""Remove a fileno to the set
:param int fileno: The file descriptor
"""
super(PollPoller, self).remove_handler(fileno)
self._poll.unregister(fileno)
def poll(self, write_only=False):
"""Poll until the next timeout waiting for an event
:param bool write_only: Only process write events
"""
while True:
try:
events = self._poll.poll(self.get_next_deadline())
break
except _SELECT_ERROR as error:
if _get_select_errno(error) == errno.EINTR:
continue
else:
raise
fd_event_map = defaultdict(int)
for fileno, event in events:
fd_event_map[fileno] |= event
self._process_fd_events(fd_event_map, write_only)
class EPollPoller(PollPoller):
"""EPoll works on Linux and can have better performance than Poll in
certain scenarios. Both are faster than select.
"""
POLL_TIMEOUT_MULT = 1
def create_poller(self):
return select.epoll() # pylint: disable=E1101
| reddec/pika | pika/adapters/select_connection.py | Python | bsd-3-clause | 21,137 | [
30522,
1000,
1000,
1000,
1037,
4434,
15581,
2121,
2008,
5363,
2000,
2224,
1996,
2190,
17888,
4118,
2005,
1996,
4132,
14255,
2912,
2003,
2770,
2006,
1012,
1000,
1000,
1000,
12324,
9808,
12324,
15899,
12324,
22278,
12324,
7276,
12324,
9413,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jsonp({"cep":"05417040","logradouro":"Rua Jo\u00e3o Miguel Jarra","bairro":"Vila Madalena","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| lfreneda/cepdb | api/v1/05417040.jsonp.js | JavaScript | cc0-1.0 | 156 | [
30522,
1046,
3385,
2361,
1006,
1063,
1000,
8292,
2361,
1000,
1024,
1000,
5709,
23632,
19841,
12740,
1000,
1010,
1000,
8833,
12173,
8162,
2080,
1000,
1024,
1000,
21766,
2050,
8183,
1032,
1057,
8889,
2063,
2509,
2080,
8374,
15723,
2527,
1000,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import logging
from mwoauth import ConsumerToken, Handshaker, AccessToken
from mwoauth.errors import OAuthException
import urllib.parse
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import login, authenticate
from django.contrib.auth.models import User
from django.core.exceptions import DisallowedHost, PermissionDenied
from django.urls import reverse_lazy
from django.http import HttpResponseRedirect
from django.http.request import QueryDict
from django.views.generic.base import View
from django.utils.translation import get_language, gettext as _
from urllib.parse import urlencode
from .models import Editor
logger = logging.getLogger(__name__)
def _localize_oauth_redirect(redirect):
"""
Given an appropriate mediawiki oauth handshake url, return one that will
present the user with a login page of their preferred language.
"""
logger.info("Localizing oauth handshake URL.")
redirect_parsed = urllib.parse.urlparse(redirect)
redirect_query = urllib.parse.parse_qs(redirect_parsed.query)
localized_redirect = redirect_parsed.scheme
localized_redirect += "://"
localized_redirect += redirect_parsed.netloc
localized_redirect += redirect_parsed.path
localized_redirect += "?title="
localized_redirect += "Special:UserLogin"
localized_redirect += "&uselang="
localized_redirect += get_language()
localized_redirect += "&returnto="
localized_redirect += str(redirect_query["title"][0])
localized_redirect += "&returntoquery="
localized_redirect += "%26oauth_consumer_key%3D"
localized_redirect += str(redirect_query["oauth_consumer_key"][0])
localized_redirect += "%26oauth_token%3D"
localized_redirect += str(redirect_query["oauth_token"][0])
return localized_redirect
def _get_handshaker():
consumer_token = ConsumerToken(
settings.TWLIGHT_OAUTH_CONSUMER_KEY, settings.TWLIGHT_OAUTH_CONSUMER_SECRET
)
handshaker = Handshaker(settings.TWLIGHT_OAUTH_PROVIDER_URL, consumer_token)
return handshaker
def _dehydrate_token(token):
"""
Convert the request token into a dict suitable for storing in the session.
"""
session_token = {}
session_token["key"] = token.key
session_token["secret"] = token.secret
return session_token
def _rehydrate_token(token):
"""
Convert the stored dict back into a request token that we can use for
getting an access grant.
"""
request_token = ConsumerToken(token["key"], token["secret"])
return request_token
class OAuthBackend(object):
def _get_username(self, identity):
# The Username is globally unique, but Wikipedia allows it to
# have characters that the Django username system rejects. However,
# wiki userID should be unique, and limited to ASCII.
return "{sub}".format(sub=identity["sub"])
def _create_user(self, identity):
# This can't be super informative because we don't want to log
# identities.
logger.info("Creating user.")
# if not self._meets_minimum_requirement(identity):
# This needs to be reworked to actually check against global_userinfo.
# Don't create a User or Editor if this person does not meet the
# minimum account quality requirement. It would be nice to provide
# some user feedback here, but we can't; exception messages don't
# get passed on as template context in Django 1.8. (They do in
# 1.10, so this can be revisited in future.)
# logger.warning('User did not meet minimum requirements; not created.')
# messages.add_message (request, messages.WARNING,
# _('You do not meet the minimum requirements.'))
# raise PermissionDenied
# -------------------------- Create the user ---------------------------
try:
email = identity["email"]
except KeyError:
email = None
username = self._get_username(identity)
# Since we are not providing a password argument, this will call
# set_unusable_password, which is exactly what we want; users created
# via OAuth should only be allowed to log in via OAuth.
user = User.objects.create_user(username=username, email=email)
logger.info("User user successfully created.")
return user
def _create_editor(self, user, identity):
# ------------------------- Create the editor --------------------------
logger.info("Creating editor.")
editor = Editor()
editor.user = user
editor.wp_sub = identity["sub"]
lang = get_language()
editor.update_from_wikipedia(identity, lang) # This call also saves the editor
logger.info("Editor successfully created.")
return editor
def _create_user_and_editor(self, identity):
user = self._create_user(identity)
editor = self._create_editor(user, identity)
return user, editor
def _get_and_update_user_from_identity(self, identity):
"""
If we have an Editor and User matching the identity returned by
Wikipedia, update the editor with the identity parameters and return its
associated user. If we don't, create an Editor and User, and return that
user.
If the wikipedia account does not meet our eligibility criteria, create
a TWLight account if needed, but set it as inactive. Also deactivate
any existing accounts that have become ineligible.
Also return a boolean that is True if we created a user during this
call and False if we did not.
"""
logger.info("Attempting to update editor after OAuth login.")
try:
username = self._get_username(identity)
user = User.objects.get(username=username)
# This login path should only be used for accounts created via
# Wikipedia login, which all have editor objects.
if hasattr(user, "editor"):
editor = user.editor
lang = get_language()
editor.update_from_wikipedia(
identity, lang
) # This call also saves the editor
logger.info("Editor updated.")
created = False
else:
try:
logger.warning(
"A user tried using the Wikipedia OAuth "
"login path but does not have an attached editor."
)
editor = self._create_editor(user, identity)
created = True
except:
raise PermissionDenied
except User.DoesNotExist:
logger.info("Can't find user; creating one.")
user, editor = self._create_user_and_editor(identity)
created = True
return user, created
def authenticate(self, request=None, access_token=None, handshaker=None):
logger.info("Authenticating user...")
if not request or not access_token or not handshaker:
logger.info(
"Missing OAuth authentication elements; falling back"
"to another authentication method."
)
# You must have meant to use a different authentication backend.
# Returning None will make Django keep going down its list of
# options.
return None
try:
assert isinstance(access_token, AccessToken)
except AssertionError as e:
logger.exception(e)
return None
# Get identifying information about the user. This doubles as a way
# to authenticate the access token, which only Wikimedia can do,
# and thereby to authenticate the user (which is hard for us to do as
# we have no password.)
logger.info("Identifying user...")
try:
identity = handshaker.identify(access_token, 15)
except OAuthException as e:
logger.warning(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This error message is shown when there's a problem with the authenticated login process.
_("You tried to log in but presented an invalid access token."),
)
raise PermissionDenied
# Get or create the user.
logger.info("User has been identified; getting or creating user.")
user, created = self._get_and_update_user_from_identity(identity)
if created:
try:
user.editor.save()
except AssertionError:
# This was used to handle users not setting a home wiki
# but that information is no longer collected
pass
else:
logger.info("User has been updated.")
request.session["user_created"] = created
# The authenticate() function of a Django auth backend must return
# the user.
return user
def get_user(self, user_id):
try:
return User.objects.get(pk=user_id)
except User.DoesNotExist as e:
logger.exception(e)
return None
class OAuthInitializeView(View):
"""
Ask Wikipedia for a temporary key/secret for the user, and redirect
them to their home Wikipedia to confirm authorization.
"""
def get(self, request, *args, **kwargs):
# The site might be running under multiple URLs, so find out the current
# one (and make sure it's legit).
# The Sites framework was designed for different URLs that correspond to
# different databases or functionality - it's not a good fit here.
domain = self.request.get_host()
try:
assert domain in settings.ALLOWED_HOSTS # safety first!
except (AssertionError, DisallowedHost) as e:
logger.exception(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This message is shown when the OAuth login process fails because the request came from the wrong website. Don't translate {domain}.
_("{domain} is not an allowed host.").format(domain=domain),
)
raise PermissionDenied
# Try to capture the relevant page state, including desired destination
try:
request.session["get"] = request.GET
logger.info("Found get parameters for post-login redirection.")
except Exception as e:
logger.warning(e)
pass
# If the user has already logged in, let's not spam the OAuth provider.
if self.request.user.is_authenticated:
# We're using this twice. Not very DRY.
# Send user either to the destination specified in the 'next'
# parameter or to their own editor detail page.
try:
# Create a QueryDict from the 'get' session dict.
query_dict = QueryDict(urlencode(request.session["get"]), mutable=True)
# Pop the 'next' parameter out of the QueryDict.
next = query_dict.pop("next")
# Set the return url to the value of 'next'. Basic.
return_url = next[0]
# Pop the 'from_homepage' parameter out of the QueryDict.
# We don't need it here.
query_dict.pop("from_homepage", None)
# If there is anything left in the QueryDict after popping
# 'next', append it to the return url. This preserves state
# for filtered lists and redirected form submissions like
# the partner suggestion form.
if query_dict:
return_url += "&" + urlencode(query_dict)
logger.info(
"User is already authenticated. Sending them on "
'for post-login redirection per "next" parameter.'
)
except KeyError as e:
return_url = reverse_lazy("homepage")
logger.warning(e)
return HttpResponseRedirect(return_url)
# If the user isn't logged in
else:
# Get handshaker for the configured wiki oauth URL.
handshaker = _get_handshaker()
logger.info("handshaker gotten.")
try:
redirect, request_token = handshaker.initiate()
except OAuthException as e:
logger.warning(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This warning message is shown to users when OAuth handshaker can't be initiated.
_("Handshaker not initiated, please try logging in again."),
)
raise PermissionDenied
# Create a QueryDict from the 'get' session dict.
query_dict = QueryDict(urlencode(request.session["get"]), mutable=True)
# Pop the 'next' parameter out of the QueryDict.
next = query_dict.pop("next")
# Set the return url to the value of 'next'. Basic.
return_url = next[0]
# Pop the 'from_homepage' parameter out of the QueryDict.
from_homepage = query_dict.pop("from_homepage", None)
if from_homepage:
logger.info("Logging in from homepage, redirecting to Meta login")
local_redirect = _localize_oauth_redirect(redirect)
else:
logger.info(
"Trying to access a link while not logged in, redirecting to homepage"
)
messages.add_message(
request,
messages.INFO,
# fmt: off
# Translators: this message is displayed to users that don't have accounts and clicked on a proxied link.
_("To view this link you need to be an eligible library user. Please login to continue."),
# fmt: on
)
if return_url:
homepage = reverse_lazy("homepage")
local_redirect = "{homepage}?next_url={return_url}".format(
homepage=homepage, return_url=return_url
)
else:
local_redirect = reverse_lazy("homepage")
logger.info("handshaker initiated.")
self.request.session["request_token"] = _dehydrate_token(request_token)
return HttpResponseRedirect(local_redirect)
class OAuthCallbackView(View):
"""
Receive the redirect from Wikipedia and parse the response token.
"""
def get(self, request, *args, **kwargs):
request_meta_qs = request.META["QUERY_STRING"]
request_get = request.GET
response_qs = None
if request_meta_qs:
response_qs = request_meta_qs
elif "oauth_token" in request_get and "oauth_verifier" in request_get:
response_qs = request_get.urlencode()
try:
response_qs_parsed = urllib.parse.parse_qs(response_qs)
assert "oauth_token" in response_qs_parsed
assert "oauth_verifier" in response_qs_parsed
except (AssertionError, TypeError) as e:
logger.warning(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This warning message is shown to users when the response received from Wikimedia OAuth servers is not a valid one.
_("Did not receive a valid oauth response."),
)
raise PermissionDenied
# Get the handshaker. It should have already been constructed by
# OAuthInitializeView.
domain = self.request.get_host()
try:
assert domain in settings.ALLOWED_HOSTS
except (AssertionError, DisallowedHost) as e:
logger.warning(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This message is shown when the OAuth login process fails because the request came from the wrong website. Don't translate {domain}.
_("{domain} is not an allowed host.").format(domain=domain),
)
raise PermissionDenied
try:
handshaker = _get_handshaker()
except AssertionError as e:
# get_handshaker will throw AssertionErrors for invalid data.
logger.warning(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This message is shown when the OAuth login process fails.
_("Could not find handshaker."),
)
raise PermissionDenied
# Get the session token placed by OAuthInitializeView.
session_token = request.session.pop("request_token", None)
if not session_token:
logger.info("No session token.")
messages.add_message(
request,
messages.WARNING,
# Translators: This message is shown when the OAuth login process fails.
_("No session token."),
)
raise PermissionDenied
# Rehydrate it into a request token.
request_token = _rehydrate_token(session_token)
if not request_token:
logger.warning("No request token.")
messages.add_message(
request,
messages.WARNING,
# Translators: This message is shown when the OAuth login process fails.
_("No request token."),
)
raise PermissionDenied
# See if we can complete the OAuth process.
try:
access_token = handshaker.complete(request_token, response_qs)
except OAuthException as e:
logger.warning(e)
messages.add_message(
request,
messages.WARNING,
# Translators: This message is shown when the OAuth login process fails.
_("Access token generation failed."),
)
raise PermissionDenied
user = authenticate(
request=request, access_token=access_token, handshaker=handshaker
)
created = request.session.pop("user_created", False)
if user and not user.is_active:
# Do NOT log in the user.
if created:
messages.add_message(
request,
messages.WARNING,
# fmt: off
# Translators: If the user tries to log in, but their account does not meet certain requirements, they cannot login.
_("Your Wikipedia account does not meet the eligibility criteria in the terms of use, so your Wikipedia Library Card Platform account cannot be activated."),
# fmt: on
)
else:
messages.add_message(
request,
messages.WARNING,
# fmt: off
# Translators: If the user tries to log in, but their account does not meet certain requirements, they cannot login.
_("Your Wikipedia account no longer meets the eligibility criteria in the terms of use, so you cannot be logged in. If you think you should be able to log in, please email wikipedialibrary@wikimedia.org."),
# fmt: on
)
return_url = reverse_lazy("terms")
elif user:
login(request, user)
if created:
messages.add_message(
request,
messages.INFO,
# Translators: this message is displayed to users with brand new accounts.
_("Welcome! Please agree to the terms of use."),
)
return_url = reverse_lazy("terms")
else:
# We're using this twice. Not very DRY.
# Send user either to the destination specified in the 'next'
# parameter or to their own editor detail page.
if user.userprofile.terms_of_use:
try:
# Create a QueryDict from the 'get' session dict.
query_dict = QueryDict(
urlencode(request.session["get"]), mutable=True
)
# Pop the 'next' parameter out of the QueryDict.
next = query_dict.pop("next")
# Set the return url to the value of 'next'. Basic.
return_url = next[0]
# Pop the 'from_homepage' parameter out of the QueryDict.
# We don't need it here.
query_dict.pop("from_homepage", None)
# If there is anything left in the QueryDict after popping
# 'next', append it to the return url. This preserves state
# for filtered lists and redirected form submissions like
# the partner suggestion form.
if query_dict:
return_url += "&" + urlencode(query_dict)
logger.info(
"User authenticated. Sending them on for "
'post-login redirection per "next" parameter.'
)
except KeyError as e:
return_url = reverse_lazy("homepage")
logger.warning(e)
else:
return_url = reverse_lazy("terms")
else:
return_url = reverse_lazy("homepage")
return HttpResponseRedirect(return_url)
| WikipediaLibrary/TWLight | TWLight/users/oauth.py | Python | mit | 22,204 | [
30522,
12324,
15899,
2013,
12464,
10441,
14317,
12324,
7325,
18715,
2368,
1010,
2398,
20459,
2121,
1010,
3229,
18715,
2368,
2013,
12464,
10441,
14317,
1012,
10697,
12324,
1051,
4887,
10760,
2595,
24422,
12324,
24471,
6894,
2497,
1012,
11968,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 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, see http://www.gnu.org/licenses.
*
* http://numenta.org/licenses/
* ---------------------------------------------------------------------
*/
/** @file
*/
#include <nta/os/Path.hpp>
#include <nta/os/Directory.hpp>
#include <nta/os/OS.hpp>
#include <nta/os/FStream.hpp>
#include <nta/utils/Log.hpp>
#include <boost/tokenizer.hpp>
#include <boost/scoped_array.hpp>
#include <sstream>
#include <iterator>
#include <apr-1/apr.h>
#ifdef NTA_PLATFORM_win32
extern "C" {
#include <apr-1/arch/win32/apr_arch_utf8.h>
}
#include <windows.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream>
#if defined(NTA_PLATFORM_darwin86) || defined(NTA_PLATFORM_darwin64)
#include <mach-o/dyld.h> // _NSGetExecutablePath
#else
// linux
#include <unistd.h> // readlink
#endif
#endif
namespace nta
{
#ifdef WIN32
const char * Path::sep = "\\";
const char * Path::pathSep = ";";
#else
const char * Path::sep = "/";
const char * Path::pathSep = ":";
#endif
const char * Path::parDir = "..";
Path::Path(const std::string & path) : path_(path)
{
}
static apr_status_t getInfo(const std::string & path, apr_int32_t wanted, apr_finfo_t & info)
{
NTA_CHECK(!path.empty()) << "Can't get the info of an empty path";
apr_status_t res;
apr_pool_t * pool = NULL;
#ifdef WIN32
res = ::apr_pool_create(&pool, NULL);
if (res != APR_SUCCESS)
{
NTA_WARN << "Internal error: unable to create APR pool when getting info on path '" << path << "'";
}
#endif
res = ::apr_stat(&info, path.c_str(), wanted, pool);
#ifdef WIN32
::apr_pool_destroy(pool);
#endif
return res;
}
bool Path::exists(const std::string & path)
{
if (path.empty())
return false;
apr_finfo_t st;
apr_status_t res = getInfo(path, APR_FINFO_TYPE, st);
return res == APR_SUCCESS;
}
static apr_filetype_e getType(const std::string & path, bool check = true)
{
apr_finfo_t st;
apr_status_t res = getInfo(path, APR_FINFO_TYPE, st);
if (check)
{
NTA_CHECK(res == APR_SUCCESS)
<< "Can't get info for '" << path << "', " << OS::getErrorMessage();
}
return st.filetype;
}
bool Path::isFile(const std::string & path)
{
return getType(path, false) == APR_REG;
}
bool Path::isDirectory(const std::string & path)
{
return getType(path) == APR_DIR;
}
bool Path::isSymbolicLink(const std::string & path)
{
return getType(path) == APR_LNK;
}
bool Path::isAbsolute(const std::string & path)
{
NTA_CHECK(!path.empty()) << "Empty path is invalid";
#ifdef WIN32
if (path.size() < 2)
return false;
else
{
bool local = ::isalpha(path[0]) && path[1] == ':';
bool unc = path.size() > 2 && path[0] == '\\' && path[1] == '\\';
return local || unc;
}
#else
return path[0] == '/';
#endif
}
bool Path::areEquivalent(const std::string & path1, const std::string & path2)
{
apr_finfo_t st1;
apr_finfo_t st2;
apr_int32_t wanted = APR_FINFO_IDENT;
apr_status_t s;
s = getInfo(path1.c_str(), wanted, st1);
// If either of the paths does not exist, then we say they are not equivalent
if (s != APR_SUCCESS)
return false;
s = getInfo(path2.c_str(), wanted, st2);
if (s != APR_SUCCESS)
return false;
bool res = true;
res &= st1.device == st2.device;
res &= st1.inode == st2.inode;
// We do not require the names to match. Could be a hard link.
// res &= std::string(st1.fname) == std::string(st2.fname);
return res;
}
std::string Path::getParent(const std::string & path)
{
if (path == "")
return "";
std::string np = Path::normalize(path);
Path::StringVec sv = Path::split(np);
sv.push_back("..");
return Path::normalize(Path::join(sv.begin(), sv.end()));
}
std::string Path::getBasename(const std::string & path)
{
std::string::size_type index = path.find_last_of(Path::sep);
if (index == std::string::npos)
return path;
return path.substr(index+1);
}
std::string Path::getExtension(const std::string & path)
{
std::string basename = Path::getBasename(path);
std::string::size_type index = basename.find_last_of('.');
// If its a regular or hidden filenames with no extension
// return an empty string
if (index == std::string::npos || // regular filename with no ext
index == 0 || // hidden file (starts with a '.')
index == basename.length() -1) // filename ends with a dot
return "";
// Don't include the dot, just the extension itself (unlike Python)
return std::string(basename.c_str() + index + 1, basename.length() - index - 1);
}
Size Path::getFileSize(const std::string & path)
{
apr_finfo_t st;
apr_int32_t wanted = APR_FINFO_TYPE | APR_FINFO_SIZE;
apr_status_t res = getInfo(path.c_str(), wanted, st);
NTA_CHECK(res == APR_SUCCESS);
NTA_CHECK(st.filetype == APR_REG) << "Can't get the size of a non-file object";
return (Size)st.size;
}
std::string Path::normalize(const std::string & path)
{
// Easiest way is: split, then remove "." and remove a/.. (but not ../.. !)
// This does not get a/b/../.. so if we remove a/.., go through the string again
// Also need to treat rootdir/.. specially
// Also normalize(foo/..) -> "." but normalize(foo/bar/..) -> "foo"
StringVec v = Path::split(path);
if (v.size() == 0)
return "";
StringVec outv;
bool doAgain = true;
while (doAgain)
{
doAgain = false;
for (unsigned int i = 0; i < v.size(); i++)
{
if (v[i] == "") continue; // remove empty fields
if (v[i] == "." && v.size() > 1) continue; // skip "." unless it is by itself
if (i == 0 && isRootdir(v[i]) && i+1 < v.size() && v[i+1] == "..")
{
// <root>/.. -> <root>
outv.push_back(v[i]);
i++; // skipped following ".."
doAgain = true;
continue;
}
// remove "foo/.."
if (i+1 < v.size() && v[i] != ".." && v[i+1] == "..")
{
// but as a special case, if the full path is "foo/.." return "."
if (v.size() == 2) return ".";
i++;
doAgain = true;
continue;
}
outv.push_back(v[i]);
}
if (doAgain)
{
v = outv;
outv.clear();
}
}
return Path::join(outv.begin(), outv.end());
}
std::string Path::makeAbsolute(const std::string & path)
{
if (Path::isAbsolute(path))
return path;
std::string cwd = Directory::getCWD();
// If its already absolute just return the original path
if (::strncmp(cwd.c_str(), path.c_str(), cwd.length()) == 0)
return path;
// Get rid of trailing separators if any
if (path.find_last_of(Path::sep) == path.length() - 1)
{
cwd = std::string(cwd.c_str(), cwd.length()-1);
}
// join the cwd to the path and return it (handle duplicate separators)
std::string result = cwd;
if (path.find_first_of(Path::sep) == 0)
{
return cwd + path;
}
else
{
return cwd + Path::sep + path;
}
return "";
}
#ifdef WIN32
std::string Path::unicodeToUtf8(const std::wstring& path)
{
// Assume the worst we can do is have 6 UTF-8 bytes per unicode
// character.
apr_size_t tmpNameSize = path.size() * 6 + 1;
// Store buffer in a boost::scoped_array so it gets cleaned up for us.
boost::scoped_array<char> tmpNameBuf;
char* tmpNameP = new char[tmpNameSize];
tmpNameBuf.reset(tmpNameP);
apr_size_t inWords = path.size()+1;
apr_size_t outChars = tmpNameSize;
apr_status_t result = ::apr_conv_ucs2_to_utf8((apr_wchar_t *)path.c_str(),
&inWords, tmpNameP, &outChars);
if (result != 0 || inWords != 0)
{
std::stringstream ss;
ss << "Path::unicodeToUtf8() - error converting path to UTF-8:"
<< std::endl << "error code: " << result;
NTA_THROW << ss.str();
}
return std::string(tmpNameP);
}
std::wstring Path::utf8ToUnicode(const std::string& path)
{
// Assume the number of unicode characters is <= number of UTF-8 bytes.
apr_size_t tmpNameSize = path.size() + 1;
// Store buffer in a boost::scoped_array so it gets cleaned up for us.
boost::scoped_array<wchar_t> tmpNameBuf;
wchar_t* tmpNameP = new wchar_t[tmpNameSize];
tmpNameBuf.reset(tmpNameP);
apr_size_t inBytes = path.size()+1;
apr_size_t outWords = tmpNameSize;
apr_status_t result = ::apr_conv_utf8_to_ucs2(path.c_str(),
&inBytes, (apr_wchar_t*)tmpNameP, &outWords);
if (result != 0 || inBytes != 0)
{
char errBuffer[1024];
std::stringstream ss;
ss << "Path::utf8ToUnicode() - error converting path to Unicode"
<< std::endl
<< ::apr_strerror(result, errBuffer, 1024);
NTA_THROW << ss.str();
}
return std::wstring(tmpNameP);
}
#endif
Path::StringVec Path::split(const std::string & path)
{
/**
* Don't use boost::tokenizer because we need to handle the prefix specially.
* Handling the prefix is messy on windows, but this is the only place we have
* to do it
*/
StringVec parts;
std::string::size_type curpos = 0;
if (path.size() == 0)
return parts;
#ifndef WIN32
// only possible prefix is "/"
if (path[0] == '/')
{
parts.push_back("/");
curpos++;
}
#else
// prefix may be 1) "\", 2) "\\", 3) "[a-z]:", 4) "[a-z]:\"
if (path.size() == 1)
{
// captures both "\" and "a"
parts.push_back(path);
return parts;
}
if (path[0] == '\\')
{
if (path[1] == '\\')
{
// case 2
parts.push_back("\\\\");
curpos = 2;
}
else
{
// case 1
parts.push_back("\\");
curpos = 1;
}
}
else
{
if (path[1] == ':')
{
if (path.size() > 2 && path[2] == '\\')
{
// case 4
parts.push_back(path.substr(0, 3));
curpos = 3;
}
else
{
parts.push_back(path.substr(0, 2));
curpos = 2;
}
}
}
#endif
// simple tokenization based on separator. Note that "foo//bar" -> "foo", "", "bar"
std::string::size_type newpos;
while (curpos < path.size() && curpos != std::string::npos)
{
// Be able to split on either separator including mixed separators on Windows
#ifdef WIN32
std::string::size_type p1 = path.find("\\", curpos);
std::string::size_type p2 = path.find("/", curpos);
newpos = p1 < p2 ? p1 : p2;
#else
newpos = path.find(Path::sep, curpos);
#endif
if (newpos == std::string::npos)
{
parts.push_back(path.substr(curpos));
curpos = newpos;
}
else
{
// note: if we have a "//" then newpos == curpos and this string is empty
if (newpos != curpos)
{
parts.push_back(path.substr(curpos, newpos - curpos));
}
curpos = newpos + 1;
}
}
return parts;
}
bool Path::isPrefix(const std::string & s)
{
#ifdef WIN32
size_t len = s.length();
if (len < 2)
return false;
if (len == 2)
return ::isalpha(s[0]) && s[1] == ':';
else if (len == 3)
{
bool localPrefix = ::isalpha(s[0]) && s[1] == ':' && s[2] == '\\';
bool uncPrefix = s[0] == '\\' && s[1] == '\\' && ::isalpha(s[2]);
return localPrefix || uncPrefix;
}
else // len > 3
return s[0] == '\\' && s[1] == '\\' && ::isalpha(s[2]);
#else
return s == "/";
#endif
}
bool Path::isRootdir(const std::string& s)
{
// redundant test on unix, but second test covers windows
return isPrefix(s);
}
std::string Path::join(StringVec::const_iterator begin, StringVec::const_iterator end)
{
if (begin == end)
return "";
if (begin + 1 == end)
return std::string(*begin);
std::string path(*begin);
#ifdef WIN32
if (path[path.length()-1] != Path::sep[0])
path += Path::sep;
#else
// Treat first element specially (on Unix)
// it may be a prefix, which is not followed by "/"
if (!Path::isPrefix(*begin))
path += Path::sep;
#endif
begin++;
while (begin != end)
{
path += *begin;
begin++;
if (begin != end)
{
path += Path::sep;
}
}
return path;
}
void Path::copy(const std::string & source, const std::string & destination)
{
NTA_CHECK(!source.empty())
<< "Can't copy from an empty source";
NTA_CHECK(!destination.empty())
<< "Can't copy to an empty destination";
NTA_CHECK(source != destination)
<< "Source and destination must be different";
if (isDirectory(source))
{
Directory::copyTree(source, destination);
return;
}
// The target is always a filename. The input destination
// Can be either a directory or a filename. If the destination
// doesn't exist it is treated as a filename.
std::string target(destination);
if (Path::exists(destination) && isDirectory(destination))
target = Path::normalize(Path::join(destination, Path::getBasename(source)));
bool success = true;
#ifdef WIN32
// Must remove read-only or hidden files before copy
// because they cannot be overwritten. For simplicity
// I just always remove if it exists.
if (Path::exists(target))
Path::remove(target);
// This will quietly overwrite the destination file if it exists
std::wstring wsource(utf8ToUnicode(source));
std::wstring wtarget(utf8ToUnicode(target));
BOOL res = ::CopyFile(/*(LPCTSTR)*/wsource.c_str(),
/*(LPCTSTR)*/wtarget.c_str(),
FALSE);
success = res != FALSE;
#else
try
{
OFStream out(target.c_str());
out.exceptions(std::ofstream::failbit | std::ofstream::badbit);
UInt64 size = Path::getFileSize(source);
if(size) {
IFStream in(source.c_str());
if(out.fail()) {
std::cout << OS::getErrorMessage() << std::endl;
}
in.exceptions(std::ifstream::failbit | std::ifstream::badbit);
out << in.rdbuf();
}
}
catch(std::exception &e) {
std::cerr << "Path::copy('" << source << "', '" << target << "'): "
<< e.what() << std::endl;
}
catch (...)
{
success = false;
}
#endif
if (!success)
NTA_THROW << "Path::copy() - failed copying file "
<< source << " to " << destination << " os error: "
<< OS::getErrorMessage();
}
void Path::setPermissions(const std::string &path,
bool userRead, bool userWrite,
bool groupRead, bool groupWrite,
bool otherRead, bool otherWrite
)
{
if(Path::isDirectory(path)) {
Directory::Iterator iter(path);
Directory::Entry e;
while(iter.next(e)) {
std::string sub = Path::join(path, e.path);
setPermissions(sub,
userRead, userWrite,
groupRead, groupWrite,
otherRead, otherWrite);
}
}
#if WIN32
int countFailure = 0;
std::wstring wpath(utf8ToUnicode(path));
DWORD attr = GetFileAttributes(wpath.c_str());
if(attr != INVALID_FILE_ATTRIBUTES) {
if(userWrite) attr &= ~FILE_ATTRIBUTE_READONLY;
BOOL res = SetFileAttributes(wpath.c_str(), attr);
if(!res) {
NTA_WARN << "Path::setPermissions: Failed to set attributes for " << path;
++countFailure;
}
}
else {
NTA_WARN << "Path::setPermissions: Failed to get attributes for " << path;
++countFailure;
}
if(countFailure > 0) {
NTA_THROW << "Path::setPermissions failed for " << path;
}
#else
mode_t mode = 0;
if (userRead) mode |= S_IRUSR;
if (userWrite) mode |= S_IRUSR;
if (groupRead) mode |= S_IRGRP;
if (groupWrite) mode |= S_IWGRP;
if (otherRead) mode |= S_IROTH;
if (otherWrite) mode |= S_IWOTH;
chmod(path.c_str(), mode);
#endif
}
void Path::remove(const std::string & path)
{
NTA_CHECK(!path.empty())
<< "Can't remove an empty path";
// Just return if it doesn't exist already
if (!Path::exists(path))
return;
if (isDirectory(path))
{
Directory::removeTree(path);
return;
}
#ifdef WIN32
std::wstring wpath(utf8ToUnicode(path));
BOOL res = ::DeleteFile(/*(LPCTSTR)*/wpath.c_str());
if (res == FALSE)
NTA_THROW << "Path::remove() -- unable to delete '" << path
<< "' error message: " << OS::getErrorMessage();
#else
int res = ::remove(path.c_str());
if (res != 0)
NTA_THROW << "Path::remove() -- unable to delete '" << path
<< "' error message: " << OS::getErrorMessage();
#endif
}
void Path::rename(const std::string & oldPath, const std::string & newPath)
{
NTA_CHECK(!oldPath.empty() && !newPath.empty())
<< "Can't rename to/from empty path";
#ifdef WIN32
std::wstring wOldPath(utf8ToUnicode(oldPath));
std::wstring wNewPath(utf8ToUnicode(newPath));
BOOL res = ::MoveFile(/*(LPCTSTR)*/wOldPath.c_str(), /*(LPCTSTR)*/wNewPath.c_str());
if (res == FALSE)
NTA_THROW << "Path::rename() -- unable to rename '"
<< oldPath << "' to '" << newPath
<< "' error message: " << OS::getErrorMessage();
#else
int res = ::rename(oldPath.c_str(), newPath.c_str());
if (res == -1)
NTA_THROW << "Path::rename() -- unable to rename '"
<< oldPath << "' to '" << newPath
<< "' error message: " << OS::getErrorMessage();
#endif
}
Path::operator const char *() const
{
return path_.c_str();
}
Path & Path::operator+=(const Path & path)
{
Path::StringVec sv;
sv.push_back(std::string(path_));
sv.push_back(std::string(path.path_));
path_ = Path::join(sv.begin(), sv.end());
return *this;
}
bool Path::operator==(const Path & other)
{
return Path::normalize(path_) == Path::normalize(other.path_);
}
Path Path::getParent() const
{
return Path::getParent(path_);
}
Path Path::getBasename() const
{
return Path::getBasename(path_);
}
Path Path::getExtension() const
{
return Path::getExtension(path_);
}
Size Path::getFileSize() const
{
return Path::getFileSize(path_);
}
Path & Path::normalize()
{
path_ = Path::normalize(path_);
return *this;
}
Path & Path::makeAbsolute()
{
if (!isAbsolute())
path_ = Path::makeAbsolute(path_);
return *this;
}
Path::StringVec Path::split() const
{
return Path::split(path_);
}
void Path::remove() const
{
Path::remove(path_);
}
void Path::rename(const std::string & newPath)
{
Path::rename(path_, newPath);
path_ = newPath;
}
bool Path::isDirectory() const
{
return Path::isDirectory(path_);
}
bool Path::isFile() const
{
return Path::isFile(path_);
}
bool Path::isSymbolicLink() const
{
return Path::isSymbolicLink(path_);
}
bool Path::isAbsolute() const
{
return Path::isAbsolute(path_);
}
bool Path::isRootdir() const
{
return Path::isRootdir(path_);
}
bool Path::exists() const
{
return Path::exists(path_);
}
bool Path::isEmpty() const
{
return path_.empty();
}
Path operator+(const Path & p1, const Path & p2)
{
Path::StringVec sv;
sv.push_back(std::string(p1));
sv.push_back(std::string(p2));
return Path::join(sv.begin(), sv.end());
}
std::string Path::join(const std::string & path1, const std::string & path2)
{
return path1 + Path::sep + path2;
}
std::string Path::join(const std::string & path1, const std::string & path2,
const std::string & path3)
{
return path1 + Path::sep + path2 + Path::sep + path3;
}
std::string Path::join(const std::string & path1, const std::string & path2,
const std::string & path3, const std::string & path4)
{
return path1 + Path::sep + path2 + Path::sep + path3 + Path::sep + path4;
}
std::string Path::getExecutablePath()
{
std::string epath = "UnknownExecutablePath";
#ifndef NTA_PLATFORM_win32
char *buf = new char[1000];
UInt32 bufsize = 1000;
// sets bufsize to actual length.
#if defined(NTA_PLATFORM_darwin86) || defined(NTA_PLATFORM_darwin64)
_NSGetExecutablePath(buf, &bufsize);
if (bufsize < 1000)
buf[bufsize] = '\0';
#else
int count = readlink("/proc/self/exe", buf, bufsize);
if (count < 0)
NTA_THROW << "Unable to read /proc/self/exe to get executable name";
if (count < 1000)
buf[count] = '\0';
#endif
// make sure it's null-terminated
buf[999] = '\0';
epath = buf;
delete[] buf;
#else
// windows
wchar_t *buf = new wchar_t[1000];
GetModuleFileName(NULL, buf, 1000);
// null-terminated string guaranteed unless length > 999
buf[999] = '\0';
std::wstring wpath(buf);
delete[] buf;
epath = unicodeToUtf8(wpath);
#endif
return epath;
}
} // namespace nta
| tsenggordon/nupic.core.gordon | src/main/os/Path.cpp | C++ | gpl-3.0 | 22,560 | [
30522,
1013,
1008,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (c) 2003, 2007-8 Matteo Frigo
* Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/* This file was automatically generated --- DO NOT EDIT */
/* Generated on Mon Feb 9 19:53:08 EST 2009 */
#include "codelet-dft.h"
#ifdef HAVE_FMA
/* Generated by: ../../../genfft/gen_twiddle_c -fma -reorder-insns -schedule-for-pipeline -simd -compact -variables 4 -pipeline-latency 8 -n 64 -name t1bv_64 -include t1b.h -sign 1 */
/*
* This function contains 519 FP additions, 384 FP multiplications,
* (or, 261 additions, 126 multiplications, 258 fused multiply/add),
* 187 stack variables, 15 constants, and 128 memory accesses
*/
#include "t1b.h"
static void t1bv_64(R *ri, R *ii, const R *W, stride rs, INT mb, INT me, INT ms)
{
DVK(KP773010453, +0.773010453362736960810906609758469800971041293);
DVK(KP995184726, +0.995184726672196886244836953109479921575474869);
DVK(KP820678790, +0.820678790828660330972281985331011598767386482);
DVK(KP098491403, +0.098491403357164253077197521291327432293052451);
DVK(KP956940335, +0.956940335732208864935797886980269969482849206);
DVK(KP881921264, +0.881921264348355029712756863660388349508442621);
DVK(KP303346683, +0.303346683607342391675883946941299872384187453);
DVK(KP534511135, +0.534511135950791641089685961295362908582039528);
DVK(KP831469612, +0.831469612302545237078788377617905756738560812);
DVK(KP980785280, +0.980785280403230449126182236134239036973933731);
DVK(KP668178637, +0.668178637919298919997757686523080761552472251);
DVK(KP198912367, +0.198912367379658006911597622644676228597850501);
DVK(KP923879532, +0.923879532511286756128183189396788286822416626);
DVK(KP414213562, +0.414213562373095048801688724209698078569671875);
DVK(KP707106781, +0.707106781186547524400844362104849039284835938);
INT m;
R *x;
x = ii;
for (m = mb, W = W + (mb * ((TWVL / VL) * 126)); m < me; m = m + VL, x = x + (VL * ms), W = W + (TWVL * 126), MAKE_VOLATILE_STRIDE(rs)) {
V T6L, T6M, T6O, T6P, T75, T6V, T5A, T6A, T72, T6K, T6t, T6D, T6w, T6B, T6h;
V T6E;
{
V Ta, T3U, T3V, T37, T7a, T58, T7B, T6l, T1v, T24, T5Q, T7o, T5F, T7l, T43;
V T4F, T2i, T2R, T6b, T7v, T60, T7s, T4a, T4I, T5u, T7h, T5x, T7g, T1i, T3b;
V T4m, T4C, T7e, T5l, T7d, T5o, T3a, TV, T4B, T4j, T3X, T3Y, T6o, T7b, T5f;
V T7C, Tx, T38, T2p, T61, T2n, T65, T2D, T7p, T5M, T7m, T5T, T4G, T46, T25;
V T1S, T2q, T2u, T2w;
{
V T5q, T10, T5v, T15, T1b, T5s, T1c, T1e;
{
V T1V, T1p, T5B, T5O, T1u, T1X, T20, T21;
{
V T1, T2, T7, T5, T32, T34, T2X, T2Z;
T1 = LD(&(x[0]), ms, &(x[0]));
T2 = LD(&(x[WS(rs, 32)]), ms, &(x[0]));
T7 = LD(&(x[WS(rs, 48)]), ms, &(x[0]));
T5 = LD(&(x[WS(rs, 16)]), ms, &(x[0]));
T32 = LD(&(x[WS(rs, 56)]), ms, &(x[0]));
T34 = LD(&(x[WS(rs, 24)]), ms, &(x[0]));
T2X = LD(&(x[WS(rs, 8)]), ms, &(x[0]));
T2Z = LD(&(x[WS(rs, 40)]), ms, &(x[0]));
{
V T1m, T54, T6j, T36, T56, T31, T55, T1n, T1q, T1s, T4, T9;
{
V T3, T8, T6, T33, T35, T2Y, T30, T1l;
T1l = LD(&(x[WS(rs, 1)]), ms, &(x[WS(rs, 1)]));
T3 = BYTW(&(W[TWVL * 62]), T2);
T8 = BYTW(&(W[TWVL * 94]), T7);
T6 = BYTW(&(W[TWVL * 30]), T5);
T33 = BYTW(&(W[TWVL * 110]), T32);
T35 = BYTW(&(W[TWVL * 46]), T34);
T2Y = BYTW(&(W[TWVL * 14]), T2X);
T30 = BYTW(&(W[TWVL * 78]), T2Z);
T1m = BYTW(&(W[0]), T1l);
T54 = VSUB(T1, T3);
T4 = VADD(T1, T3);
T6j = VSUB(T6, T8);
T9 = VADD(T6, T8);
T36 = VADD(T33, T35);
T56 = VSUB(T33, T35);
T31 = VADD(T2Y, T30);
T55 = VSUB(T2Y, T30);
T1n = LD(&(x[WS(rs, 33)]), ms, &(x[WS(rs, 1)]));
}
T1q = LD(&(x[WS(rs, 17)]), ms, &(x[WS(rs, 1)]));
T1s = LD(&(x[WS(rs, 49)]), ms, &(x[WS(rs, 1)]));
Ta = VSUB(T4, T9);
T3U = VADD(T4, T9);
{
V T57, T6k, T1o, T1r, T1t, T1W, T1U, T1Z;
T1U = LD(&(x[WS(rs, 9)]), ms, &(x[WS(rs, 1)]));
T3V = VADD(T31, T36);
T37 = VSUB(T31, T36);
T57 = VADD(T55, T56);
T6k = VSUB(T55, T56);
T1o = BYTW(&(W[TWVL * 64]), T1n);
T1r = BYTW(&(W[TWVL * 32]), T1q);
T1t = BYTW(&(W[TWVL * 96]), T1s);
T1V = BYTW(&(W[TWVL * 16]), T1U);
T1W = LD(&(x[WS(rs, 41)]), ms, &(x[WS(rs, 1)]));
T1Z = LD(&(x[WS(rs, 57)]), ms, &(x[WS(rs, 1)]));
T7a = VFNMS(LDK(KP707106781), T57, T54);
T58 = VFMA(LDK(KP707106781), T57, T54);
T7B = VFNMS(LDK(KP707106781), T6k, T6j);
T6l = VFMA(LDK(KP707106781), T6k, T6j);
T1p = VADD(T1m, T1o);
T5B = VSUB(T1m, T1o);
T5O = VSUB(T1r, T1t);
T1u = VADD(T1r, T1t);
T1X = BYTW(&(W[TWVL * 80]), T1W);
T20 = BYTW(&(W[TWVL * 112]), T1Z);
T21 = LD(&(x[WS(rs, 25)]), ms, &(x[WS(rs, 1)]));
}
}
}
{
V T5W, T2N, T69, T2L, T5Y, T2P, T48, T2c, T2h;
{
V T41, T1Y, T5C, T22, T2d, T29, T2b, T2f, T28, T2a, T2H, T2J;
T28 = LD(&(x[WS(rs, 63)]), ms, &(x[WS(rs, 1)]));
T2a = LD(&(x[WS(rs, 31)]), ms, &(x[WS(rs, 1)]));
T1v = VSUB(T1p, T1u);
T41 = VADD(T1p, T1u);
T1Y = VADD(T1V, T1X);
T5C = VSUB(T1V, T1X);
T22 = BYTW(&(W[TWVL * 48]), T21);
T2d = LD(&(x[WS(rs, 15)]), ms, &(x[WS(rs, 1)]));
T29 = BYTW(&(W[TWVL * 124]), T28);
T2b = BYTW(&(W[TWVL * 60]), T2a);
T2f = LD(&(x[WS(rs, 47)]), ms, &(x[WS(rs, 1)]));
T2H = LD(&(x[WS(rs, 55)]), ms, &(x[WS(rs, 1)]));
T2J = LD(&(x[WS(rs, 23)]), ms, &(x[WS(rs, 1)]));
{
V T23, T5D, T2e, T2g, T2I, T2K, T2M;
T2M = LD(&(x[WS(rs, 7)]), ms, &(x[WS(rs, 1)]));
T23 = VADD(T20, T22);
T5D = VSUB(T20, T22);
T2e = BYTW(&(W[TWVL * 28]), T2d);
T2c = VADD(T29, T2b);
T5W = VSUB(T29, T2b);
T2g = BYTW(&(W[TWVL * 92]), T2f);
T2I = BYTW(&(W[TWVL * 108]), T2H);
T2K = BYTW(&(W[TWVL * 44]), T2J);
T2N = BYTW(&(W[TWVL * 12]), T2M);
{
V T5E, T5P, T42, T2O;
T5E = VADD(T5C, T5D);
T5P = VSUB(T5C, T5D);
T24 = VSUB(T1Y, T23);
T42 = VADD(T1Y, T23);
T69 = VSUB(T2g, T2e);
T2h = VADD(T2e, T2g);
T2O = LD(&(x[WS(rs, 39)]), ms, &(x[WS(rs, 1)]));
T2L = VADD(T2I, T2K);
T5Y = VSUB(T2I, T2K);
T5Q = VFMA(LDK(KP707106781), T5P, T5O);
T7o = VFNMS(LDK(KP707106781), T5P, T5O);
T5F = VFMA(LDK(KP707106781), T5E, T5B);
T7l = VFNMS(LDK(KP707106781), T5E, T5B);
T43 = VADD(T41, T42);
T4F = VSUB(T41, T42);
T2P = BYTW(&(W[TWVL * 76]), T2O);
}
}
}
T2i = VSUB(T2c, T2h);
T48 = VADD(T2c, T2h);
{
V TW, TY, T11, T2Q, T5X, T13;
TW = LD(&(x[WS(rs, 62)]), ms, &(x[0]));
TY = LD(&(x[WS(rs, 30)]), ms, &(x[0]));
T11 = LD(&(x[WS(rs, 14)]), ms, &(x[0]));
T2Q = VADD(T2N, T2P);
T5X = VSUB(T2N, T2P);
T13 = LD(&(x[WS(rs, 46)]), ms, &(x[0]));
{
V T12, T5Z, T6a, T49, T14, T18, T1a;
{
V T17, T19, TX, TZ;
T17 = LD(&(x[WS(rs, 54)]), ms, &(x[0]));
T19 = LD(&(x[WS(rs, 22)]), ms, &(x[0]));
TX = BYTW(&(W[TWVL * 122]), TW);
TZ = BYTW(&(W[TWVL * 58]), TY);
T12 = BYTW(&(W[TWVL * 26]), T11);
T5Z = VADD(T5X, T5Y);
T6a = VSUB(T5Y, T5X);
T2R = VSUB(T2L, T2Q);
T49 = VADD(T2Q, T2L);
T14 = BYTW(&(W[TWVL * 90]), T13);
T18 = BYTW(&(W[TWVL * 106]), T17);
T5q = VSUB(TX, TZ);
T10 = VADD(TX, TZ);
T1a = BYTW(&(W[TWVL * 42]), T19);
}
T6b = VFMA(LDK(KP707106781), T6a, T69);
T7v = VFNMS(LDK(KP707106781), T6a, T69);
T60 = VFMA(LDK(KP707106781), T5Z, T5W);
T7s = VFNMS(LDK(KP707106781), T5Z, T5W);
T4a = VADD(T48, T49);
T4I = VSUB(T48, T49);
T5v = VSUB(T14, T12);
T15 = VADD(T12, T14);
T1b = VADD(T18, T1a);
T5s = VSUB(T18, T1a);
}
T1c = LD(&(x[WS(rs, 6)]), ms, &(x[0]));
T1e = LD(&(x[WS(rs, 38)]), ms, &(x[0]));
}
}
}
{
V Th, T59, Tf, Tv, T5d, Tj, Tm, To;
{
V T5h, TQ, T5m, T5i, TO, TS, TJ, T4h, TD, TI;
{
V T4k, T16, TB, T1d, T1f, TE, TG, TA, Tz, TK, TM, TC;
Tz = LD(&(x[WS(rs, 2)]), ms, &(x[0]));
T4k = VADD(T10, T15);
T16 = VSUB(T10, T15);
TB = LD(&(x[WS(rs, 34)]), ms, &(x[0]));
T1d = BYTW(&(W[TWVL * 10]), T1c);
T1f = BYTW(&(W[TWVL * 74]), T1e);
TE = LD(&(x[WS(rs, 18)]), ms, &(x[0]));
TG = LD(&(x[WS(rs, 50)]), ms, &(x[0]));
TA = BYTW(&(W[TWVL * 2]), Tz);
TK = LD(&(x[WS(rs, 10)]), ms, &(x[0]));
TM = LD(&(x[WS(rs, 42)]), ms, &(x[0]));
TC = BYTW(&(W[TWVL * 66]), TB);
{
V T1g, T5r, TF, TH, TL, TN, TP;
TP = LD(&(x[WS(rs, 58)]), ms, &(x[0]));
T1g = VADD(T1d, T1f);
T5r = VSUB(T1d, T1f);
TF = BYTW(&(W[TWVL * 34]), TE);
TH = BYTW(&(W[TWVL * 98]), TG);
TL = BYTW(&(W[TWVL * 18]), TK);
TN = BYTW(&(W[TWVL * 82]), TM);
T5h = VSUB(TA, TC);
TD = VADD(TA, TC);
TQ = BYTW(&(W[TWVL * 114]), TP);
{
V T5w, T5t, T4l, T1h, TR;
T5w = VSUB(T5s, T5r);
T5t = VADD(T5r, T5s);
T4l = VADD(T1g, T1b);
T1h = VSUB(T1b, T1g);
T5m = VSUB(TF, TH);
TI = VADD(TF, TH);
T5i = VSUB(TL, TN);
TO = VADD(TL, TN);
TR = LD(&(x[WS(rs, 26)]), ms, &(x[0]));
T5u = VFMA(LDK(KP707106781), T5t, T5q);
T7h = VFNMS(LDK(KP707106781), T5t, T5q);
T5x = VFMA(LDK(KP707106781), T5w, T5v);
T7g = VFNMS(LDK(KP707106781), T5w, T5v);
T1i = VFNMS(LDK(KP414213562), T1h, T16);
T3b = VFMA(LDK(KP414213562), T16, T1h);
T4m = VADD(T4k, T4l);
T4C = VSUB(T4k, T4l);
TS = BYTW(&(W[TWVL * 50]), TR);
}
}
}
TJ = VSUB(TD, TI);
T4h = VADD(TD, TI);
{
V Tb, Td, Tr, T5j, TT, Tt, Tg;
Tb = LD(&(x[WS(rs, 4)]), ms, &(x[0]));
Td = LD(&(x[WS(rs, 36)]), ms, &(x[0]));
Tr = LD(&(x[WS(rs, 12)]), ms, &(x[0]));
T5j = VSUB(TQ, TS);
TT = VADD(TQ, TS);
Tt = LD(&(x[WS(rs, 44)]), ms, &(x[0]));
Tg = LD(&(x[WS(rs, 20)]), ms, &(x[0]));
{
V Ti, Tc, Te, Ts;
Ti = LD(&(x[WS(rs, 52)]), ms, &(x[0]));
Tc = BYTW(&(W[TWVL * 6]), Tb);
Te = BYTW(&(W[TWVL * 70]), Td);
Ts = BYTW(&(W[TWVL * 22]), Tr);
{
V T5k, T5n, TU, T4i, Tu;
T5k = VADD(T5i, T5j);
T5n = VSUB(T5i, T5j);
TU = VSUB(TO, TT);
T4i = VADD(TO, TT);
Tu = BYTW(&(W[TWVL * 86]), Tt);
Th = BYTW(&(W[TWVL * 38]), Tg);
T59 = VSUB(Tc, Te);
Tf = VADD(Tc, Te);
T7e = VFNMS(LDK(KP707106781), T5k, T5h);
T5l = VFMA(LDK(KP707106781), T5k, T5h);
T7d = VFNMS(LDK(KP707106781), T5n, T5m);
T5o = VFMA(LDK(KP707106781), T5n, T5m);
T3a = VFMA(LDK(KP414213562), TJ, TU);
TV = VFNMS(LDK(KP414213562), TU, TJ);
T4B = VSUB(T4h, T4i);
T4j = VADD(T4h, T4i);
Tv = VADD(Ts, Tu);
T5d = VSUB(Tu, Ts);
Tj = BYTW(&(W[TWVL * 102]), Ti);
}
}
Tm = LD(&(x[WS(rs, 60)]), ms, &(x[0]));
To = LD(&(x[WS(rs, 28)]), ms, &(x[0]));
}
}
{
V T5b, T6m, Tl, T1A, T5G, T1Q, T5K, T1C, T1D, T5e, T6n, Tw, T1H, T1J;
{
V T1w, T1y, T1M, T1O, Tq, T5c, T1B;
T1w = LD(&(x[WS(rs, 5)]), ms, &(x[WS(rs, 1)]));
T1y = LD(&(x[WS(rs, 37)]), ms, &(x[WS(rs, 1)]));
T1M = LD(&(x[WS(rs, 13)]), ms, &(x[WS(rs, 1)]));
T1O = LD(&(x[WS(rs, 45)]), ms, &(x[WS(rs, 1)]));
T1B = LD(&(x[WS(rs, 21)]), ms, &(x[WS(rs, 1)]));
{
V Tk, T5a, Tn, Tp;
Tk = VADD(Th, Tj);
T5a = VSUB(Th, Tj);
Tn = BYTW(&(W[TWVL * 118]), Tm);
Tp = BYTW(&(W[TWVL * 54]), To);
{
V T1x, T1z, T1N, T1P;
T1x = BYTW(&(W[TWVL * 8]), T1w);
T1z = BYTW(&(W[TWVL * 72]), T1y);
T1N = BYTW(&(W[TWVL * 24]), T1M);
T1P = BYTW(&(W[TWVL * 88]), T1O);
T5b = VFNMS(LDK(KP414213562), T5a, T59);
T6m = VFMA(LDK(KP414213562), T59, T5a);
T3X = VADD(Tf, Tk);
Tl = VSUB(Tf, Tk);
Tq = VADD(Tn, Tp);
T5c = VSUB(Tn, Tp);
T1A = VADD(T1x, T1z);
T5G = VSUB(T1x, T1z);
T1Q = VADD(T1N, T1P);
T5K = VSUB(T1N, T1P);
T1C = BYTW(&(W[TWVL * 40]), T1B);
}
}
T1D = LD(&(x[WS(rs, 53)]), ms, &(x[WS(rs, 1)]));
T5e = VFNMS(LDK(KP414213562), T5d, T5c);
T6n = VFMA(LDK(KP414213562), T5c, T5d);
T3Y = VADD(Tq, Tv);
Tw = VSUB(Tq, Tv);
T1H = LD(&(x[WS(rs, 61)]), ms, &(x[WS(rs, 1)]));
T1J = LD(&(x[WS(rs, 29)]), ms, &(x[WS(rs, 1)]));
}
{
V T1I, T1K, T1F, T5H, T2k, T2l, T2z, T2B, T2j, T1E;
T2j = LD(&(x[WS(rs, 3)]), ms, &(x[WS(rs, 1)]));
T1E = BYTW(&(W[TWVL * 104]), T1D);
T6o = VSUB(T6m, T6n);
T7b = VADD(T6m, T6n);
T5f = VADD(T5b, T5e);
T7C = VSUB(T5b, T5e);
Tx = VADD(Tl, Tw);
T38 = VSUB(Tl, Tw);
T1I = BYTW(&(W[TWVL * 120]), T1H);
T1K = BYTW(&(W[TWVL * 56]), T1J);
T1F = VADD(T1C, T1E);
T5H = VSUB(T1C, T1E);
T2k = BYTW(&(W[TWVL * 4]), T2j);
T2l = LD(&(x[WS(rs, 35)]), ms, &(x[WS(rs, 1)]));
T2z = LD(&(x[WS(rs, 11)]), ms, &(x[WS(rs, 1)]));
T2B = LD(&(x[WS(rs, 43)]), ms, &(x[WS(rs, 1)]));
{
V T5I, T5R, T44, T1G, T2m, T2A, T2C, T5S, T5L, T1R, T45, T2o, T5J, T1L;
T2o = LD(&(x[WS(rs, 19)]), ms, &(x[WS(rs, 1)]));
T5J = VSUB(T1I, T1K);
T1L = VADD(T1I, T1K);
T5I = VFNMS(LDK(KP414213562), T5H, T5G);
T5R = VFMA(LDK(KP414213562), T5G, T5H);
T44 = VADD(T1A, T1F);
T1G = VSUB(T1A, T1F);
T2m = BYTW(&(W[TWVL * 68]), T2l);
T2A = BYTW(&(W[TWVL * 20]), T2z);
T2C = BYTW(&(W[TWVL * 84]), T2B);
T5S = VFNMS(LDK(KP414213562), T5J, T5K);
T5L = VFMA(LDK(KP414213562), T5K, T5J);
T1R = VSUB(T1L, T1Q);
T45 = VADD(T1L, T1Q);
T2p = BYTW(&(W[TWVL * 36]), T2o);
T61 = VSUB(T2k, T2m);
T2n = VADD(T2k, T2m);
T65 = VSUB(T2C, T2A);
T2D = VADD(T2A, T2C);
T7p = VSUB(T5I, T5L);
T5M = VADD(T5I, T5L);
T7m = VSUB(T5R, T5S);
T5T = VADD(T5R, T5S);
T4G = VSUB(T44, T45);
T46 = VADD(T44, T45);
T25 = VSUB(T1G, T1R);
T1S = VADD(T1G, T1R);
T2q = LD(&(x[WS(rs, 51)]), ms, &(x[WS(rs, 1)]));
}
T2u = LD(&(x[WS(rs, 59)]), ms, &(x[WS(rs, 1)]));
T2w = LD(&(x[WS(rs, 27)]), ms, &(x[WS(rs, 1)]));
}
}
}
}
{
V T67, T7w, T6e, T7t, T3s, T3E, T39, T3D, T1k, T3k, T3t, T3c, T1T, T3v, T3w;
V T26, T2G, T3y, T3z, T2T;
{
V T4A, T4N, T47, T4v, T2r, T2v, T2x, T4s, T40, T3W, T3Z;
T4A = VSUB(T3U, T3V);
T3W = VADD(T3U, T3V);
T3Z = VADD(T3X, T3Y);
T4N = VSUB(T3X, T3Y);
T47 = VSUB(T43, T46);
T4v = VADD(T43, T46);
T2r = BYTW(&(W[TWVL * 100]), T2q);
T2v = BYTW(&(W[TWVL * 116]), T2u);
T2x = BYTW(&(W[TWVL * 52]), T2w);
T4s = VADD(T3W, T3Z);
T40 = VSUB(T3W, T3Z);
{
V T4O, T4n, T4Q, T4H, T4E, T4W, T4u, T4y, T4d, T4J, T2F, T2S;
{
V T6c, T63, T2t, T4b, T6d, T66, T2E, T4c;
{
V T4D, T62, T2s, T64, T2y, T4t;
T4O = VSUB(T4B, T4C);
T4D = VADD(T4B, T4C);
T62 = VSUB(T2r, T2p);
T2s = VADD(T2p, T2r);
T64 = VSUB(T2v, T2x);
T2y = VADD(T2v, T2x);
T4t = VADD(T4j, T4m);
T4n = VSUB(T4j, T4m);
T4Q = VFMA(LDK(KP414213562), T4F, T4G);
T4H = VFNMS(LDK(KP414213562), T4G, T4F);
T4E = VFMA(LDK(KP707106781), T4D, T4A);
T4W = VFNMS(LDK(KP707106781), T4D, T4A);
T6c = VFNMS(LDK(KP414213562), T61, T62);
T63 = VFMA(LDK(KP414213562), T62, T61);
T2t = VSUB(T2n, T2s);
T4b = VADD(T2n, T2s);
T6d = VFMA(LDK(KP414213562), T64, T65);
T66 = VFNMS(LDK(KP414213562), T65, T64);
T2E = VSUB(T2y, T2D);
T4c = VADD(T2y, T2D);
T4u = VSUB(T4s, T4t);
T4y = VADD(T4s, T4t);
}
T67 = VADD(T63, T66);
T7w = VSUB(T66, T63);
T6e = VADD(T6c, T6d);
T7t = VSUB(T6d, T6c);
T4d = VADD(T4b, T4c);
T4J = VSUB(T4c, T4b);
T2F = VADD(T2t, T2E);
T2S = VSUB(T2E, T2t);
}
{
V Ty, T1j, T4R, T4K;
Ty = VFMA(LDK(KP707106781), Tx, Ta);
T3s = VFNMS(LDK(KP707106781), Tx, Ta);
T3E = VSUB(TV, T1i);
T1j = VADD(TV, T1i);
T39 = VFMA(LDK(KP707106781), T38, T37);
T3D = VFNMS(LDK(KP707106781), T38, T37);
T4R = VFMA(LDK(KP414213562), T4I, T4J);
T4K = VFNMS(LDK(KP414213562), T4J, T4I);
{
V T4w, T4e, T4P, T4Z;
T4w = VADD(T4a, T4d);
T4e = VSUB(T4a, T4d);
T4P = VFMA(LDK(KP707106781), T4O, T4N);
T4Z = VFNMS(LDK(KP707106781), T4O, T4N);
T1k = VFMA(LDK(KP923879532), T1j, Ty);
T3k = VFNMS(LDK(KP923879532), T1j, Ty);
{
V T4L, T50, T4S, T4X;
T4L = VADD(T4H, T4K);
T50 = VSUB(T4H, T4K);
T4S = VSUB(T4Q, T4R);
T4X = VADD(T4Q, T4R);
{
V T4f, T4o, T4x, T4z;
T4f = VADD(T47, T4e);
T4o = VSUB(T47, T4e);
T4x = VSUB(T4v, T4w);
T4z = VADD(T4v, T4w);
{
V T53, T51, T4M, T4U;
T53 = VFNMS(LDK(KP923879532), T50, T4Z);
T51 = VFMA(LDK(KP923879532), T50, T4Z);
T4M = VFNMS(LDK(KP923879532), T4L, T4E);
T4U = VFMA(LDK(KP923879532), T4L, T4E);
{
V T52, T4Y, T4T, T4V;
T52 = VFMA(LDK(KP923879532), T4X, T4W);
T4Y = VFNMS(LDK(KP923879532), T4X, T4W);
T4T = VFNMS(LDK(KP923879532), T4S, T4P);
T4V = VFMA(LDK(KP923879532), T4S, T4P);
{
V T4p, T4r, T4g, T4q;
T4p = VFNMS(LDK(KP707106781), T4o, T4n);
T4r = VFMA(LDK(KP707106781), T4o, T4n);
T4g = VFNMS(LDK(KP707106781), T4f, T40);
T4q = VFMA(LDK(KP707106781), T4f, T40);
ST(&(x[0]), VADD(T4y, T4z), ms, &(x[0]));
ST(&(x[WS(rs, 32)]), VSUB(T4y, T4z), ms, &(x[0]));
ST(&(x[WS(rs, 16)]), VFMAI(T4x, T4u), ms, &(x[0]));
ST(&(x[WS(rs, 48)]), VFNMSI(T4x, T4u), ms, &(x[0]));
ST(&(x[WS(rs, 44)]), VFNMSI(T51, T4Y), ms, &(x[0]));
ST(&(x[WS(rs, 20)]), VFMAI(T51, T4Y), ms, &(x[0]));
ST(&(x[WS(rs, 52)]), VFMAI(T53, T52), ms, &(x[0]));
ST(&(x[WS(rs, 12)]), VFNMSI(T53, T52), ms, &(x[0]));
ST(&(x[WS(rs, 4)]), VFMAI(T4V, T4U), ms, &(x[0]));
ST(&(x[WS(rs, 60)]), VFNMSI(T4V, T4U), ms, &(x[0]));
ST(&(x[WS(rs, 36)]), VFMAI(T4T, T4M), ms, &(x[0]));
ST(&(x[WS(rs, 28)]), VFNMSI(T4T, T4M), ms, &(x[0]));
ST(&(x[WS(rs, 56)]), VFNMSI(T4r, T4q), ms, &(x[0]));
ST(&(x[WS(rs, 8)]), VFMAI(T4r, T4q), ms, &(x[0]));
ST(&(x[WS(rs, 40)]), VFMAI(T4p, T4g), ms, &(x[0]));
ST(&(x[WS(rs, 24)]), VFNMSI(T4p, T4g), ms, &(x[0]));
T3t = VADD(T3a, T3b);
T3c = VSUB(T3a, T3b);
}
}
}
}
}
}
T1T = VFMA(LDK(KP707106781), T1S, T1v);
T3v = VFNMS(LDK(KP707106781), T1S, T1v);
T3w = VFNMS(LDK(KP707106781), T25, T24);
T26 = VFMA(LDK(KP707106781), T25, T24);
T2G = VFMA(LDK(KP707106781), T2F, T2i);
T3y = VFNMS(LDK(KP707106781), T2F, T2i);
T3z = VFNMS(LDK(KP707106781), T2S, T2R);
T2T = VFMA(LDK(KP707106781), T2S, T2R);
}
}
}
{
V T3u, T3M, T3F, T3P, T3x, T3G, T3q, T3m, T3h, T3j, T3r, T3p, T2W, T3i;
{
V T3d, T3n, T27, T3e, T2U, T3f;
T3d = VFMA(LDK(KP923879532), T3c, T39);
T3n = VFNMS(LDK(KP923879532), T3c, T39);
T27 = VFNMS(LDK(KP198912367), T26, T1T);
T3e = VFMA(LDK(KP198912367), T1T, T26);
T2U = VFNMS(LDK(KP198912367), T2T, T2G);
T3f = VFMA(LDK(KP198912367), T2G, T2T);
T3u = VFMA(LDK(KP923879532), T3t, T3s);
T3M = VFNMS(LDK(KP923879532), T3t, T3s);
{
V T3g, T3l, T2V, T3o;
T3g = VSUB(T3e, T3f);
T3l = VADD(T3e, T3f);
T2V = VADD(T27, T2U);
T3o = VSUB(T27, T2U);
T3F = VFNMS(LDK(KP923879532), T3E, T3D);
T3P = VFMA(LDK(KP923879532), T3E, T3D);
T3x = VFMA(LDK(KP668178637), T3w, T3v);
T3G = VFNMS(LDK(KP668178637), T3v, T3w);
T3q = VFMA(LDK(KP980785280), T3l, T3k);
T3m = VFNMS(LDK(KP980785280), T3l, T3k);
T3h = VFNMS(LDK(KP980785280), T3g, T3d);
T3j = VFMA(LDK(KP980785280), T3g, T3d);
T3r = VFNMS(LDK(KP980785280), T3o, T3n);
T3p = VFMA(LDK(KP980785280), T3o, T3n);
T2W = VFNMS(LDK(KP980785280), T2V, T1k);
T3i = VFMA(LDK(KP980785280), T2V, T1k);
}
}
{
V T7n, T7Z, T8j, T89, T7k, T7O, T8g, T7Y, T7H, T7R, T80, T7q, T7u, T82, T83;
V T7x;
{
V T7c, T7W, T7D, T87, T7f, T7E, T3A, T3H, T7F, T7i;
T7c = VFNMS(LDK(KP923879532), T7b, T7a);
T7W = VFMA(LDK(KP923879532), T7b, T7a);
T7D = VFMA(LDK(KP923879532), T7C, T7B);
T87 = VFNMS(LDK(KP923879532), T7C, T7B);
T7f = VFNMS(LDK(KP668178637), T7e, T7d);
T7E = VFMA(LDK(KP668178637), T7d, T7e);
ST(&(x[WS(rs, 46)]), VFNMSI(T3p, T3m), ms, &(x[0]));
ST(&(x[WS(rs, 18)]), VFMAI(T3p, T3m), ms, &(x[0]));
ST(&(x[WS(rs, 50)]), VFMAI(T3r, T3q), ms, &(x[0]));
ST(&(x[WS(rs, 14)]), VFNMSI(T3r, T3q), ms, &(x[0]));
ST(&(x[WS(rs, 2)]), VFMAI(T3j, T3i), ms, &(x[0]));
ST(&(x[WS(rs, 62)]), VFNMSI(T3j, T3i), ms, &(x[0]));
ST(&(x[WS(rs, 34)]), VFMAI(T3h, T2W), ms, &(x[0]));
ST(&(x[WS(rs, 30)]), VFNMSI(T3h, T2W), ms, &(x[0]));
T3A = VFMA(LDK(KP668178637), T3z, T3y);
T3H = VFNMS(LDK(KP668178637), T3y, T3z);
T7F = VFMA(LDK(KP668178637), T7g, T7h);
T7i = VFNMS(LDK(KP668178637), T7h, T7g);
T7n = VFNMS(LDK(KP923879532), T7m, T7l);
T7Z = VFMA(LDK(KP923879532), T7m, T7l);
{
V T3I, T3N, T3B, T3Q;
T3I = VSUB(T3G, T3H);
T3N = VADD(T3G, T3H);
T3B = VADD(T3x, T3A);
T3Q = VSUB(T3x, T3A);
{
V T7j, T88, T7G, T7X;
T7j = VADD(T7f, T7i);
T88 = VSUB(T7f, T7i);
T7G = VSUB(T7E, T7F);
T7X = VADD(T7E, T7F);
{
V T3S, T3O, T3J, T3L;
T3S = VFNMS(LDK(KP831469612), T3N, T3M);
T3O = VFMA(LDK(KP831469612), T3N, T3M);
T3J = VFNMS(LDK(KP831469612), T3I, T3F);
T3L = VFMA(LDK(KP831469612), T3I, T3F);
{
V T3T, T3R, T3C, T3K;
T3T = VFMA(LDK(KP831469612), T3Q, T3P);
T3R = VFNMS(LDK(KP831469612), T3Q, T3P);
T3C = VFNMS(LDK(KP831469612), T3B, T3u);
T3K = VFMA(LDK(KP831469612), T3B, T3u);
T8j = VFNMS(LDK(KP831469612), T88, T87);
T89 = VFMA(LDK(KP831469612), T88, T87);
T7k = VFNMS(LDK(KP831469612), T7j, T7c);
T7O = VFMA(LDK(KP831469612), T7j, T7c);
T8g = VFNMS(LDK(KP831469612), T7X, T7W);
T7Y = VFMA(LDK(KP831469612), T7X, T7W);
T7H = VFMA(LDK(KP831469612), T7G, T7D);
T7R = VFNMS(LDK(KP831469612), T7G, T7D);
ST(&(x[WS(rs, 42)]), VFMAI(T3R, T3O), ms, &(x[0]));
ST(&(x[WS(rs, 22)]), VFNMSI(T3R, T3O), ms, &(x[0]));
ST(&(x[WS(rs, 54)]), VFNMSI(T3T, T3S), ms, &(x[0]));
ST(&(x[WS(rs, 10)]), VFMAI(T3T, T3S), ms, &(x[0]));
ST(&(x[WS(rs, 58)]), VFMAI(T3L, T3K), ms, &(x[0]));
ST(&(x[WS(rs, 6)]), VFNMSI(T3L, T3K), ms, &(x[0]));
ST(&(x[WS(rs, 26)]), VFMAI(T3J, T3C), ms, &(x[0]));
ST(&(x[WS(rs, 38)]), VFNMSI(T3J, T3C), ms, &(x[0]));
T80 = VFNMS(LDK(KP923879532), T7p, T7o);
T7q = VFMA(LDK(KP923879532), T7p, T7o);
}
}
}
}
T7u = VFNMS(LDK(KP923879532), T7t, T7s);
T82 = VFMA(LDK(KP923879532), T7t, T7s);
T83 = VFNMS(LDK(KP923879532), T7w, T7v);
T7x = VFMA(LDK(KP923879532), T7w, T7v);
}
{
V T5g, T6I, T6p, T6T, T5p, T6q, T6r, T5y;
T5g = VFMA(LDK(KP923879532), T5f, T58);
T6I = VFNMS(LDK(KP923879532), T5f, T58);
{
V T7r, T7I, T7y, T7J;
T7r = VFNMS(LDK(KP534511135), T7q, T7n);
T7I = VFMA(LDK(KP534511135), T7n, T7q);
T7y = VFNMS(LDK(KP534511135), T7x, T7u);
T7J = VFMA(LDK(KP534511135), T7u, T7x);
{
V T81, T8a, T84, T8b;
T81 = VFMA(LDK(KP303346683), T80, T7Z);
T8a = VFNMS(LDK(KP303346683), T7Z, T80);
T84 = VFMA(LDK(KP303346683), T83, T82);
T8b = VFNMS(LDK(KP303346683), T82, T83);
T6p = VFMA(LDK(KP923879532), T6o, T6l);
T6T = VFNMS(LDK(KP923879532), T6o, T6l);
T5p = VFNMS(LDK(KP198912367), T5o, T5l);
T6q = VFMA(LDK(KP198912367), T5l, T5o);
{
V T7K, T7P, T7z, T7S;
T7K = VSUB(T7I, T7J);
T7P = VADD(T7I, T7J);
T7z = VADD(T7r, T7y);
T7S = VSUB(T7r, T7y);
{
V T8c, T8h, T85, T8k;
T8c = VSUB(T8a, T8b);
T8h = VADD(T8a, T8b);
T85 = VADD(T81, T84);
T8k = VSUB(T81, T84);
{
V T7Q, T7U, T7L, T7N;
T7Q = VFNMS(LDK(KP881921264), T7P, T7O);
T7U = VFMA(LDK(KP881921264), T7P, T7O);
T7L = VFNMS(LDK(KP881921264), T7K, T7H);
T7N = VFMA(LDK(KP881921264), T7K, T7H);
{
V T7T, T7V, T7A, T7M;
T7T = VFMA(LDK(KP881921264), T7S, T7R);
T7V = VFNMS(LDK(KP881921264), T7S, T7R);
T7A = VFNMS(LDK(KP881921264), T7z, T7k);
T7M = VFMA(LDK(KP881921264), T7z, T7k);
{
V T8i, T8m, T8d, T8f;
T8i = VFMA(LDK(KP956940335), T8h, T8g);
T8m = VFNMS(LDK(KP956940335), T8h, T8g);
T8d = VFNMS(LDK(KP956940335), T8c, T89);
T8f = VFMA(LDK(KP956940335), T8c, T89);
{
V T8l, T8n, T86, T8e;
T8l = VFNMS(LDK(KP956940335), T8k, T8j);
T8n = VFMA(LDK(KP956940335), T8k, T8j);
T86 = VFNMS(LDK(KP956940335), T85, T7Y);
T8e = VFMA(LDK(KP956940335), T85, T7Y);
ST(&(x[WS(rs, 53)]), VFMAI(T7V, T7U), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 11)]), VFNMSI(T7V, T7U), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 43)]), VFNMSI(T7T, T7Q), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 21)]), VFMAI(T7T, T7Q), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 5)]), VFMAI(T7N, T7M), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 59)]), VFNMSI(T7N, T7M), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 37)]), VFMAI(T7L, T7A), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 27)]), VFNMSI(T7L, T7A), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 51)]), VFNMSI(T8n, T8m), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 13)]), VFMAI(T8n, T8m), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 45)]), VFMAI(T8l, T8i), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 19)]), VFNMSI(T8l, T8i), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 61)]), VFMAI(T8f, T8e), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 3)]), VFNMSI(T8f, T8e), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 29)]), VFMAI(T8d, T86), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 35)]), VFNMSI(T8d, T86), ms, &(x[WS(rs, 1)]));
T6r = VFMA(LDK(KP198912367), T5u, T5x);
T5y = VFNMS(LDK(KP198912367), T5x, T5u);
}
}
}
}
}
}
}
}
{
V T5N, T5U, T68, T5z, T6U, T6f;
T5N = VFMA(LDK(KP923879532), T5M, T5F);
T6L = VFNMS(LDK(KP923879532), T5M, T5F);
T6M = VFNMS(LDK(KP923879532), T5T, T5Q);
T5U = VFMA(LDK(KP923879532), T5T, T5Q);
T68 = VFMA(LDK(KP923879532), T67, T60);
T6O = VFNMS(LDK(KP923879532), T67, T60);
T5z = VADD(T5p, T5y);
T6U = VSUB(T5p, T5y);
T6P = VFNMS(LDK(KP923879532), T6e, T6b);
T6f = VFMA(LDK(KP923879532), T6e, T6b);
{
V T5V, T6u, T6g, T6v, T6s, T6J;
T6s = VSUB(T6q, T6r);
T6J = VADD(T6q, T6r);
T5V = VFNMS(LDK(KP098491403), T5U, T5N);
T6u = VFMA(LDK(KP098491403), T5N, T5U);
T75 = VFMA(LDK(KP980785280), T6U, T6T);
T6V = VFNMS(LDK(KP980785280), T6U, T6T);
T5A = VFMA(LDK(KP980785280), T5z, T5g);
T6A = VFNMS(LDK(KP980785280), T5z, T5g);
T6g = VFNMS(LDK(KP098491403), T6f, T68);
T6v = VFMA(LDK(KP098491403), T68, T6f);
T72 = VFNMS(LDK(KP980785280), T6J, T6I);
T6K = VFMA(LDK(KP980785280), T6J, T6I);
T6t = VFMA(LDK(KP980785280), T6s, T6p);
T6D = VFNMS(LDK(KP980785280), T6s, T6p);
T6w = VSUB(T6u, T6v);
T6B = VADD(T6u, T6v);
T6h = VADD(T5V, T6g);
T6E = VSUB(T5V, T6g);
}
}
}
}
}
}
}
{
V T6W, T6N, T6G, T6C, T6z, T6x, T6H, T6F, T6y, T6i, T6X, T6Q;
T6W = VFNMS(LDK(KP820678790), T6L, T6M);
T6N = VFMA(LDK(KP820678790), T6M, T6L);
T6G = VFMA(LDK(KP995184726), T6B, T6A);
T6C = VFNMS(LDK(KP995184726), T6B, T6A);
T6z = VFMA(LDK(KP995184726), T6w, T6t);
T6x = VFNMS(LDK(KP995184726), T6w, T6t);
T6H = VFNMS(LDK(KP995184726), T6E, T6D);
T6F = VFMA(LDK(KP995184726), T6E, T6D);
T6y = VFMA(LDK(KP995184726), T6h, T5A);
T6i = VFNMS(LDK(KP995184726), T6h, T5A);
T6X = VFNMS(LDK(KP820678790), T6O, T6P);
T6Q = VFMA(LDK(KP820678790), T6P, T6O);
{
V T73, T6Y, T76, T6R;
ST(&(x[WS(rs, 49)]), VFMAI(T6H, T6G), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 15)]), VFNMSI(T6H, T6G), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 47)]), VFNMSI(T6F, T6C), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 17)]), VFMAI(T6F, T6C), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 1)]), VFMAI(T6z, T6y), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 63)]), VFNMSI(T6z, T6y), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 33)]), VFMAI(T6x, T6i), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 31)]), VFNMSI(T6x, T6i), ms, &(x[WS(rs, 1)]));
T73 = VADD(T6W, T6X);
T6Y = VSUB(T6W, T6X);
T76 = VSUB(T6N, T6Q);
T6R = VADD(T6N, T6Q);
{
V T78, T74, T71, T6Z, T79, T77, T70, T6S;
T78 = VFNMS(LDK(KP773010453), T73, T72);
T74 = VFMA(LDK(KP773010453), T73, T72);
T71 = VFMA(LDK(KP773010453), T6Y, T6V);
T6Z = VFNMS(LDK(KP773010453), T6Y, T6V);
T79 = VFMA(LDK(KP773010453), T76, T75);
T77 = VFNMS(LDK(KP773010453), T76, T75);
T70 = VFMA(LDK(KP773010453), T6R, T6K);
T6S = VFNMS(LDK(KP773010453), T6R, T6K);
ST(&(x[WS(rs, 55)]), VFNMSI(T79, T78), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 9)]), VFMAI(T79, T78), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 41)]), VFMAI(T77, T74), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 23)]), VFNMSI(T77, T74), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 57)]), VFMAI(T71, T70), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 7)]), VFNMSI(T71, T70), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 25)]), VFMAI(T6Z, T6S), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 39)]), VFNMSI(T6Z, T6S), ms, &(x[WS(rs, 1)]));
}
}
}
}
}
static const tw_instr twinstr[] = {
VTW(0, 1),
VTW(0, 2),
VTW(0, 3),
VTW(0, 4),
VTW(0, 5),
VTW(0, 6),
VTW(0, 7),
VTW(0, 8),
VTW(0, 9),
VTW(0, 10),
VTW(0, 11),
VTW(0, 12),
VTW(0, 13),
VTW(0, 14),
VTW(0, 15),
VTW(0, 16),
VTW(0, 17),
VTW(0, 18),
VTW(0, 19),
VTW(0, 20),
VTW(0, 21),
VTW(0, 22),
VTW(0, 23),
VTW(0, 24),
VTW(0, 25),
VTW(0, 26),
VTW(0, 27),
VTW(0, 28),
VTW(0, 29),
VTW(0, 30),
VTW(0, 31),
VTW(0, 32),
VTW(0, 33),
VTW(0, 34),
VTW(0, 35),
VTW(0, 36),
VTW(0, 37),
VTW(0, 38),
VTW(0, 39),
VTW(0, 40),
VTW(0, 41),
VTW(0, 42),
VTW(0, 43),
VTW(0, 44),
VTW(0, 45),
VTW(0, 46),
VTW(0, 47),
VTW(0, 48),
VTW(0, 49),
VTW(0, 50),
VTW(0, 51),
VTW(0, 52),
VTW(0, 53),
VTW(0, 54),
VTW(0, 55),
VTW(0, 56),
VTW(0, 57),
VTW(0, 58),
VTW(0, 59),
VTW(0, 60),
VTW(0, 61),
VTW(0, 62),
VTW(0, 63),
{TW_NEXT, VL, 0}
};
static const ct_desc desc = { 64, "t1bv_64", twinstr, &GENUS, {261, 126, 258, 0}, 0, 0, 0 };
void X(codelet_t1bv_64) (planner *p) {
X(kdft_dit_register) (p, t1bv_64, &desc);
}
#else /* HAVE_FMA */
/* Generated by: ../../../genfft/gen_twiddle_c -simd -compact -variables 4 -pipeline-latency 8 -n 64 -name t1bv_64 -include t1b.h -sign 1 */
/*
* This function contains 519 FP additions, 250 FP multiplications,
* (or, 467 additions, 198 multiplications, 52 fused multiply/add),
* 107 stack variables, 15 constants, and 128 memory accesses
*/
#include "t1b.h"
static void t1bv_64(R *ri, R *ii, const R *W, stride rs, INT mb, INT me, INT ms)
{
DVK(KP290284677, +0.290284677254462367636192375817395274691476278);
DVK(KP956940335, +0.956940335732208864935797886980269969482849206);
DVK(KP471396736, +0.471396736825997648556387625905254377657460319);
DVK(KP881921264, +0.881921264348355029712756863660388349508442621);
DVK(KP634393284, +0.634393284163645498215171613225493370675687095);
DVK(KP773010453, +0.773010453362736960810906609758469800971041293);
DVK(KP098017140, +0.098017140329560601994195563888641845861136673);
DVK(KP995184726, +0.995184726672196886244836953109479921575474869);
DVK(KP195090322, +0.195090322016128267848284868477022240927691618);
DVK(KP980785280, +0.980785280403230449126182236134239036973933731);
DVK(KP555570233, +0.555570233019602224742830813948532874374937191);
DVK(KP831469612, +0.831469612302545237078788377617905756738560812);
DVK(KP382683432, +0.382683432365089771728459984030398866761344562);
DVK(KP923879532, +0.923879532511286756128183189396788286822416626);
DVK(KP707106781, +0.707106781186547524400844362104849039284835938);
INT m;
R *x;
x = ii;
for (m = mb, W = W + (mb * ((TWVL / VL) * 126)); m < me; m = m + VL, x = x + (VL * ms), W = W + (TWVL * 126), MAKE_VOLATILE_STRIDE(rs)) {
V Tg, T4B, T6v, T7G, T3r, T4w, T5q, T7F, T5Y, T62, T28, T4d, T2g, T4a, T7g;
V T7Y, T6f, T6j, T2Z, T4k, T37, T4h, T7n, T81, T7w, T7x, T7y, T5M, T6q, T1k;
V T4s, T1r, T4t, T7t, T7u, T7v, T5F, T6p, TV, T4p, T12, T4q, T7A, T7B, TD;
V T4x, T3k, T4C, T5x, T6s, T1R, T4b, T7j, T7Z, T2j, T4e, T5V, T63, T2I, T4i;
V T7q, T82, T3a, T4l, T6c, T6k;
{
V T1, T3, T3p, T3n, Tb, Td, Te, T6, T8, T9, T2, T3o, T3m;
T1 = LD(&(x[0]), ms, &(x[0]));
T2 = LD(&(x[WS(rs, 32)]), ms, &(x[0]));
T3 = BYTW(&(W[TWVL * 62]), T2);
T3o = LD(&(x[WS(rs, 48)]), ms, &(x[0]));
T3p = BYTW(&(W[TWVL * 94]), T3o);
T3m = LD(&(x[WS(rs, 16)]), ms, &(x[0]));
T3n = BYTW(&(W[TWVL * 30]), T3m);
{
V Ta, Tc, T5, T7;
Ta = LD(&(x[WS(rs, 56)]), ms, &(x[0]));
Tb = BYTW(&(W[TWVL * 110]), Ta);
Tc = LD(&(x[WS(rs, 24)]), ms, &(x[0]));
Td = BYTW(&(W[TWVL * 46]), Tc);
Te = VSUB(Tb, Td);
T5 = LD(&(x[WS(rs, 8)]), ms, &(x[0]));
T6 = BYTW(&(W[TWVL * 14]), T5);
T7 = LD(&(x[WS(rs, 40)]), ms, &(x[0]));
T8 = BYTW(&(W[TWVL * 78]), T7);
T9 = VSUB(T6, T8);
}
{
V T4, Tf, T6t, T6u;
T4 = VSUB(T1, T3);
Tf = VMUL(LDK(KP707106781), VADD(T9, Te));
Tg = VSUB(T4, Tf);
T4B = VADD(T4, Tf);
T6t = VADD(T6, T8);
T6u = VADD(Tb, Td);
T6v = VSUB(T6t, T6u);
T7G = VADD(T6t, T6u);
}
{
V T3l, T3q, T5o, T5p;
T3l = VMUL(LDK(KP707106781), VSUB(T9, Te));
T3q = VSUB(T3n, T3p);
T3r = VSUB(T3l, T3q);
T4w = VADD(T3q, T3l);
T5o = VADD(T1, T3);
T5p = VADD(T3n, T3p);
T5q = VSUB(T5o, T5p);
T7F = VADD(T5o, T5p);
}
}
{
V T24, T26, T61, T2b, T2d, T60, T1W, T5W, T21, T5X, T22, T27;
{
V T23, T25, T2a, T2c;
T23 = LD(&(x[WS(rs, 17)]), ms, &(x[WS(rs, 1)]));
T24 = BYTW(&(W[TWVL * 32]), T23);
T25 = LD(&(x[WS(rs, 49)]), ms, &(x[WS(rs, 1)]));
T26 = BYTW(&(W[TWVL * 96]), T25);
T61 = VADD(T24, T26);
T2a = LD(&(x[WS(rs, 1)]), ms, &(x[WS(rs, 1)]));
T2b = BYTW(&(W[0]), T2a);
T2c = LD(&(x[WS(rs, 33)]), ms, &(x[WS(rs, 1)]));
T2d = BYTW(&(W[TWVL * 64]), T2c);
T60 = VADD(T2b, T2d);
}
{
V T1T, T1V, T1S, T1U;
T1S = LD(&(x[WS(rs, 9)]), ms, &(x[WS(rs, 1)]));
T1T = BYTW(&(W[TWVL * 16]), T1S);
T1U = LD(&(x[WS(rs, 41)]), ms, &(x[WS(rs, 1)]));
T1V = BYTW(&(W[TWVL * 80]), T1U);
T1W = VSUB(T1T, T1V);
T5W = VADD(T1T, T1V);
}
{
V T1Y, T20, T1X, T1Z;
T1X = LD(&(x[WS(rs, 57)]), ms, &(x[WS(rs, 1)]));
T1Y = BYTW(&(W[TWVL * 112]), T1X);
T1Z = LD(&(x[WS(rs, 25)]), ms, &(x[WS(rs, 1)]));
T20 = BYTW(&(W[TWVL * 48]), T1Z);
T21 = VSUB(T1Y, T20);
T5X = VADD(T1Y, T20);
}
T5Y = VSUB(T5W, T5X);
T62 = VSUB(T60, T61);
T22 = VMUL(LDK(KP707106781), VSUB(T1W, T21));
T27 = VSUB(T24, T26);
T28 = VSUB(T22, T27);
T4d = VADD(T27, T22);
{
V T2e, T2f, T7e, T7f;
T2e = VSUB(T2b, T2d);
T2f = VMUL(LDK(KP707106781), VADD(T1W, T21));
T2g = VSUB(T2e, T2f);
T4a = VADD(T2e, T2f);
T7e = VADD(T60, T61);
T7f = VADD(T5W, T5X);
T7g = VSUB(T7e, T7f);
T7Y = VADD(T7e, T7f);
}
}
{
V T2V, T2X, T6i, T32, T34, T6h, T2N, T6d, T2S, T6e, T2T, T2Y;
{
V T2U, T2W, T31, T33;
T2U = LD(&(x[WS(rs, 15)]), ms, &(x[WS(rs, 1)]));
T2V = BYTW(&(W[TWVL * 28]), T2U);
T2W = LD(&(x[WS(rs, 47)]), ms, &(x[WS(rs, 1)]));
T2X = BYTW(&(W[TWVL * 92]), T2W);
T6i = VADD(T2V, T2X);
T31 = LD(&(x[WS(rs, 63)]), ms, &(x[WS(rs, 1)]));
T32 = BYTW(&(W[TWVL * 124]), T31);
T33 = LD(&(x[WS(rs, 31)]), ms, &(x[WS(rs, 1)]));
T34 = BYTW(&(W[TWVL * 60]), T33);
T6h = VADD(T32, T34);
}
{
V T2K, T2M, T2J, T2L;
T2J = LD(&(x[WS(rs, 7)]), ms, &(x[WS(rs, 1)]));
T2K = BYTW(&(W[TWVL * 12]), T2J);
T2L = LD(&(x[WS(rs, 39)]), ms, &(x[WS(rs, 1)]));
T2M = BYTW(&(W[TWVL * 76]), T2L);
T2N = VSUB(T2K, T2M);
T6d = VADD(T2K, T2M);
}
{
V T2P, T2R, T2O, T2Q;
T2O = LD(&(x[WS(rs, 55)]), ms, &(x[WS(rs, 1)]));
T2P = BYTW(&(W[TWVL * 108]), T2O);
T2Q = LD(&(x[WS(rs, 23)]), ms, &(x[WS(rs, 1)]));
T2R = BYTW(&(W[TWVL * 44]), T2Q);
T2S = VSUB(T2P, T2R);
T6e = VADD(T2P, T2R);
}
T6f = VSUB(T6d, T6e);
T6j = VSUB(T6h, T6i);
T2T = VMUL(LDK(KP707106781), VSUB(T2N, T2S));
T2Y = VSUB(T2V, T2X);
T2Z = VSUB(T2T, T2Y);
T4k = VADD(T2Y, T2T);
{
V T35, T36, T7l, T7m;
T35 = VSUB(T32, T34);
T36 = VMUL(LDK(KP707106781), VADD(T2N, T2S));
T37 = VSUB(T35, T36);
T4h = VADD(T35, T36);
T7l = VADD(T6h, T6i);
T7m = VADD(T6d, T6e);
T7n = VSUB(T7l, T7m);
T81 = VADD(T7l, T7m);
}
}
{
V T1g, T1i, T5K, T1m, T1o, T5J, T18, T5G, T1d, T5H, T5I, T5L;
{
V T1f, T1h, T1l, T1n;
T1f = LD(&(x[WS(rs, 14)]), ms, &(x[0]));
T1g = BYTW(&(W[TWVL * 26]), T1f);
T1h = LD(&(x[WS(rs, 46)]), ms, &(x[0]));
T1i = BYTW(&(W[TWVL * 90]), T1h);
T5K = VADD(T1g, T1i);
T1l = LD(&(x[WS(rs, 62)]), ms, &(x[0]));
T1m = BYTW(&(W[TWVL * 122]), T1l);
T1n = LD(&(x[WS(rs, 30)]), ms, &(x[0]));
T1o = BYTW(&(W[TWVL * 58]), T1n);
T5J = VADD(T1m, T1o);
}
{
V T15, T17, T14, T16;
T14 = LD(&(x[WS(rs, 6)]), ms, &(x[0]));
T15 = BYTW(&(W[TWVL * 10]), T14);
T16 = LD(&(x[WS(rs, 38)]), ms, &(x[0]));
T17 = BYTW(&(W[TWVL * 74]), T16);
T18 = VSUB(T15, T17);
T5G = VADD(T15, T17);
}
{
V T1a, T1c, T19, T1b;
T19 = LD(&(x[WS(rs, 54)]), ms, &(x[0]));
T1a = BYTW(&(W[TWVL * 106]), T19);
T1b = LD(&(x[WS(rs, 22)]), ms, &(x[0]));
T1c = BYTW(&(W[TWVL * 42]), T1b);
T1d = VSUB(T1a, T1c);
T5H = VADD(T1a, T1c);
}
T7w = VADD(T5J, T5K);
T7x = VADD(T5G, T5H);
T7y = VSUB(T7w, T7x);
T5I = VSUB(T5G, T5H);
T5L = VSUB(T5J, T5K);
T5M = VFNMS(LDK(KP382683432), T5L, VMUL(LDK(KP923879532), T5I));
T6q = VFMA(LDK(KP923879532), T5L, VMUL(LDK(KP382683432), T5I));
{
V T1e, T1j, T1p, T1q;
T1e = VMUL(LDK(KP707106781), VSUB(T18, T1d));
T1j = VSUB(T1g, T1i);
T1k = VSUB(T1e, T1j);
T4s = VADD(T1j, T1e);
T1p = VSUB(T1m, T1o);
T1q = VMUL(LDK(KP707106781), VADD(T18, T1d));
T1r = VSUB(T1p, T1q);
T4t = VADD(T1p, T1q);
}
}
{
V TR, TT, T5A, TX, TZ, T5z, TJ, T5C, TO, T5D, T5B, T5E;
{
V TQ, TS, TW, TY;
TQ = LD(&(x[WS(rs, 18)]), ms, &(x[0]));
TR = BYTW(&(W[TWVL * 34]), TQ);
TS = LD(&(x[WS(rs, 50)]), ms, &(x[0]));
TT = BYTW(&(W[TWVL * 98]), TS);
T5A = VADD(TR, TT);
TW = LD(&(x[WS(rs, 2)]), ms, &(x[0]));
TX = BYTW(&(W[TWVL * 2]), TW);
TY = LD(&(x[WS(rs, 34)]), ms, &(x[0]));
TZ = BYTW(&(W[TWVL * 66]), TY);
T5z = VADD(TX, TZ);
}
{
V TG, TI, TF, TH;
TF = LD(&(x[WS(rs, 10)]), ms, &(x[0]));
TG = BYTW(&(W[TWVL * 18]), TF);
TH = LD(&(x[WS(rs, 42)]), ms, &(x[0]));
TI = BYTW(&(W[TWVL * 82]), TH);
TJ = VSUB(TG, TI);
T5C = VADD(TG, TI);
}
{
V TL, TN, TK, TM;
TK = LD(&(x[WS(rs, 58)]), ms, &(x[0]));
TL = BYTW(&(W[TWVL * 114]), TK);
TM = LD(&(x[WS(rs, 26)]), ms, &(x[0]));
TN = BYTW(&(W[TWVL * 50]), TM);
TO = VSUB(TL, TN);
T5D = VADD(TL, TN);
}
T7t = VADD(T5z, T5A);
T7u = VADD(T5C, T5D);
T7v = VSUB(T7t, T7u);
T5B = VSUB(T5z, T5A);
T5E = VSUB(T5C, T5D);
T5F = VFMA(LDK(KP382683432), T5B, VMUL(LDK(KP923879532), T5E));
T6p = VFNMS(LDK(KP382683432), T5E, VMUL(LDK(KP923879532), T5B));
{
V TP, TU, T10, T11;
TP = VMUL(LDK(KP707106781), VSUB(TJ, TO));
TU = VSUB(TR, TT);
TV = VSUB(TP, TU);
T4p = VADD(TU, TP);
T10 = VSUB(TX, TZ);
T11 = VMUL(LDK(KP707106781), VADD(TJ, TO));
T12 = VSUB(T10, T11);
T4q = VADD(T10, T11);
}
}
{
V Tl, T5r, TB, T5u, Tq, T5s, Tw, T5v, Tr, TC;
{
V Ti, Tk, Th, Tj;
Th = LD(&(x[WS(rs, 4)]), ms, &(x[0]));
Ti = BYTW(&(W[TWVL * 6]), Th);
Tj = LD(&(x[WS(rs, 36)]), ms, &(x[0]));
Tk = BYTW(&(W[TWVL * 70]), Tj);
Tl = VSUB(Ti, Tk);
T5r = VADD(Ti, Tk);
}
{
V Ty, TA, Tx, Tz;
Tx = LD(&(x[WS(rs, 60)]), ms, &(x[0]));
Ty = BYTW(&(W[TWVL * 118]), Tx);
Tz = LD(&(x[WS(rs, 28)]), ms, &(x[0]));
TA = BYTW(&(W[TWVL * 54]), Tz);
TB = VSUB(Ty, TA);
T5u = VADD(Ty, TA);
}
{
V Tn, Tp, Tm, To;
Tm = LD(&(x[WS(rs, 20)]), ms, &(x[0]));
Tn = BYTW(&(W[TWVL * 38]), Tm);
To = LD(&(x[WS(rs, 52)]), ms, &(x[0]));
Tp = BYTW(&(W[TWVL * 102]), To);
Tq = VSUB(Tn, Tp);
T5s = VADD(Tn, Tp);
}
{
V Tt, Tv, Ts, Tu;
Ts = LD(&(x[WS(rs, 12)]), ms, &(x[0]));
Tt = BYTW(&(W[TWVL * 22]), Ts);
Tu = LD(&(x[WS(rs, 44)]), ms, &(x[0]));
Tv = BYTW(&(W[TWVL * 86]), Tu);
Tw = VSUB(Tt, Tv);
T5v = VADD(Tt, Tv);
}
T7A = VADD(T5r, T5s);
T7B = VADD(T5u, T5v);
Tr = VFMA(LDK(KP382683432), Tl, VMUL(LDK(KP923879532), Tq));
TC = VFNMS(LDK(KP382683432), TB, VMUL(LDK(KP923879532), Tw));
TD = VSUB(Tr, TC);
T4x = VADD(Tr, TC);
{
V T3i, T3j, T5t, T5w;
T3i = VFNMS(LDK(KP382683432), Tq, VMUL(LDK(KP923879532), Tl));
T3j = VFMA(LDK(KP923879532), TB, VMUL(LDK(KP382683432), Tw));
T3k = VSUB(T3i, T3j);
T4C = VADD(T3i, T3j);
T5t = VSUB(T5r, T5s);
T5w = VSUB(T5u, T5v);
T5x = VMUL(LDK(KP707106781), VADD(T5t, T5w));
T6s = VMUL(LDK(KP707106781), VSUB(T5t, T5w));
}
}
{
V T1z, T5P, T1P, T5T, T1E, T5Q, T1K, T5S;
{
V T1w, T1y, T1v, T1x;
T1v = LD(&(x[WS(rs, 5)]), ms, &(x[WS(rs, 1)]));
T1w = BYTW(&(W[TWVL * 8]), T1v);
T1x = LD(&(x[WS(rs, 37)]), ms, &(x[WS(rs, 1)]));
T1y = BYTW(&(W[TWVL * 72]), T1x);
T1z = VSUB(T1w, T1y);
T5P = VADD(T1w, T1y);
}
{
V T1M, T1O, T1L, T1N;
T1L = LD(&(x[WS(rs, 13)]), ms, &(x[WS(rs, 1)]));
T1M = BYTW(&(W[TWVL * 24]), T1L);
T1N = LD(&(x[WS(rs, 45)]), ms, &(x[WS(rs, 1)]));
T1O = BYTW(&(W[TWVL * 88]), T1N);
T1P = VSUB(T1M, T1O);
T5T = VADD(T1M, T1O);
}
{
V T1B, T1D, T1A, T1C;
T1A = LD(&(x[WS(rs, 21)]), ms, &(x[WS(rs, 1)]));
T1B = BYTW(&(W[TWVL * 40]), T1A);
T1C = LD(&(x[WS(rs, 53)]), ms, &(x[WS(rs, 1)]));
T1D = BYTW(&(W[TWVL * 104]), T1C);
T1E = VSUB(T1B, T1D);
T5Q = VADD(T1B, T1D);
}
{
V T1H, T1J, T1G, T1I;
T1G = LD(&(x[WS(rs, 61)]), ms, &(x[WS(rs, 1)]));
T1H = BYTW(&(W[TWVL * 120]), T1G);
T1I = LD(&(x[WS(rs, 29)]), ms, &(x[WS(rs, 1)]));
T1J = BYTW(&(W[TWVL * 56]), T1I);
T1K = VSUB(T1H, T1J);
T5S = VADD(T1H, T1J);
}
{
V T1F, T1Q, T7h, T7i;
T1F = VFNMS(LDK(KP382683432), T1E, VMUL(LDK(KP923879532), T1z));
T1Q = VFMA(LDK(KP923879532), T1K, VMUL(LDK(KP382683432), T1P));
T1R = VSUB(T1F, T1Q);
T4b = VADD(T1F, T1Q);
T7h = VADD(T5P, T5Q);
T7i = VADD(T5S, T5T);
T7j = VSUB(T7h, T7i);
T7Z = VADD(T7h, T7i);
}
{
V T2h, T2i, T5R, T5U;
T2h = VFMA(LDK(KP382683432), T1z, VMUL(LDK(KP923879532), T1E));
T2i = VFNMS(LDK(KP382683432), T1K, VMUL(LDK(KP923879532), T1P));
T2j = VSUB(T2h, T2i);
T4e = VADD(T2h, T2i);
T5R = VSUB(T5P, T5Q);
T5U = VSUB(T5S, T5T);
T5V = VMUL(LDK(KP707106781), VSUB(T5R, T5U));
T63 = VMUL(LDK(KP707106781), VADD(T5R, T5U));
}
}
{
V T2q, T66, T2G, T6a, T2v, T67, T2B, T69;
{
V T2n, T2p, T2m, T2o;
T2m = LD(&(x[WS(rs, 3)]), ms, &(x[WS(rs, 1)]));
T2n = BYTW(&(W[TWVL * 4]), T2m);
T2o = LD(&(x[WS(rs, 35)]), ms, &(x[WS(rs, 1)]));
T2p = BYTW(&(W[TWVL * 68]), T2o);
T2q = VSUB(T2n, T2p);
T66 = VADD(T2n, T2p);
}
{
V T2D, T2F, T2C, T2E;
T2C = LD(&(x[WS(rs, 11)]), ms, &(x[WS(rs, 1)]));
T2D = BYTW(&(W[TWVL * 20]), T2C);
T2E = LD(&(x[WS(rs, 43)]), ms, &(x[WS(rs, 1)]));
T2F = BYTW(&(W[TWVL * 84]), T2E);
T2G = VSUB(T2D, T2F);
T6a = VADD(T2D, T2F);
}
{
V T2s, T2u, T2r, T2t;
T2r = LD(&(x[WS(rs, 19)]), ms, &(x[WS(rs, 1)]));
T2s = BYTW(&(W[TWVL * 36]), T2r);
T2t = LD(&(x[WS(rs, 51)]), ms, &(x[WS(rs, 1)]));
T2u = BYTW(&(W[TWVL * 100]), T2t);
T2v = VSUB(T2s, T2u);
T67 = VADD(T2s, T2u);
}
{
V T2y, T2A, T2x, T2z;
T2x = LD(&(x[WS(rs, 59)]), ms, &(x[WS(rs, 1)]));
T2y = BYTW(&(W[TWVL * 116]), T2x);
T2z = LD(&(x[WS(rs, 27)]), ms, &(x[WS(rs, 1)]));
T2A = BYTW(&(W[TWVL * 52]), T2z);
T2B = VSUB(T2y, T2A);
T69 = VADD(T2y, T2A);
}
{
V T2w, T2H, T7o, T7p;
T2w = VFNMS(LDK(KP382683432), T2v, VMUL(LDK(KP923879532), T2q));
T2H = VFMA(LDK(KP923879532), T2B, VMUL(LDK(KP382683432), T2G));
T2I = VSUB(T2w, T2H);
T4i = VADD(T2w, T2H);
T7o = VADD(T66, T67);
T7p = VADD(T69, T6a);
T7q = VSUB(T7o, T7p);
T82 = VADD(T7o, T7p);
}
{
V T38, T39, T68, T6b;
T38 = VFMA(LDK(KP382683432), T2q, VMUL(LDK(KP923879532), T2v));
T39 = VFNMS(LDK(KP382683432), T2B, VMUL(LDK(KP923879532), T2G));
T3a = VSUB(T38, T39);
T4l = VADD(T38, T39);
T68 = VSUB(T66, T67);
T6b = VSUB(T69, T6a);
T6c = VMUL(LDK(KP707106781), VSUB(T68, T6b));
T6k = VMUL(LDK(KP707106781), VADD(T68, T6b));
}
}
{
V T7s, T7R, T7M, T7U, T7D, T7T, T7J, T7Q;
{
V T7k, T7r, T7K, T7L;
T7k = VFNMS(LDK(KP382683432), T7j, VMUL(LDK(KP923879532), T7g));
T7r = VFMA(LDK(KP923879532), T7n, VMUL(LDK(KP382683432), T7q));
T7s = VSUB(T7k, T7r);
T7R = VADD(T7k, T7r);
T7K = VFMA(LDK(KP382683432), T7g, VMUL(LDK(KP923879532), T7j));
T7L = VFNMS(LDK(KP382683432), T7n, VMUL(LDK(KP923879532), T7q));
T7M = VSUB(T7K, T7L);
T7U = VADD(T7K, T7L);
}
{
V T7z, T7C, T7H, T7I;
T7z = VMUL(LDK(KP707106781), VSUB(T7v, T7y));
T7C = VSUB(T7A, T7B);
T7D = VSUB(T7z, T7C);
T7T = VADD(T7C, T7z);
T7H = VSUB(T7F, T7G);
T7I = VMUL(LDK(KP707106781), VADD(T7v, T7y));
T7J = VSUB(T7H, T7I);
T7Q = VADD(T7H, T7I);
}
{
V T7E, T7N, T7W, T7X;
T7E = VBYI(VSUB(T7s, T7D));
T7N = VSUB(T7J, T7M);
ST(&(x[WS(rs, 20)]), VADD(T7E, T7N), ms, &(x[0]));
ST(&(x[WS(rs, 44)]), VSUB(T7N, T7E), ms, &(x[0]));
T7W = VSUB(T7Q, T7R);
T7X = VBYI(VSUB(T7U, T7T));
ST(&(x[WS(rs, 36)]), VSUB(T7W, T7X), ms, &(x[0]));
ST(&(x[WS(rs, 28)]), VADD(T7W, T7X), ms, &(x[0]));
}
{
V T7O, T7P, T7S, T7V;
T7O = VBYI(VADD(T7D, T7s));
T7P = VADD(T7J, T7M);
ST(&(x[WS(rs, 12)]), VADD(T7O, T7P), ms, &(x[0]));
ST(&(x[WS(rs, 52)]), VSUB(T7P, T7O), ms, &(x[0]));
T7S = VADD(T7Q, T7R);
T7V = VBYI(VADD(T7T, T7U));
ST(&(x[WS(rs, 60)]), VSUB(T7S, T7V), ms, &(x[0]));
ST(&(x[WS(rs, 4)]), VADD(T7S, T7V), ms, &(x[0]));
}
}
{
V T84, T8c, T8l, T8n, T87, T8h, T8b, T8g, T8i, T8m;
{
V T80, T83, T8j, T8k;
T80 = VSUB(T7Y, T7Z);
T83 = VSUB(T81, T82);
T84 = VMUL(LDK(KP707106781), VSUB(T80, T83));
T8c = VMUL(LDK(KP707106781), VADD(T80, T83));
T8j = VADD(T7Y, T7Z);
T8k = VADD(T81, T82);
T8l = VBYI(VSUB(T8j, T8k));
T8n = VADD(T8j, T8k);
}
{
V T85, T86, T89, T8a;
T85 = VADD(T7t, T7u);
T86 = VADD(T7w, T7x);
T87 = VSUB(T85, T86);
T8h = VADD(T85, T86);
T89 = VADD(T7F, T7G);
T8a = VADD(T7A, T7B);
T8b = VSUB(T89, T8a);
T8g = VADD(T89, T8a);
}
T8i = VSUB(T8g, T8h);
ST(&(x[WS(rs, 48)]), VSUB(T8i, T8l), ms, &(x[0]));
ST(&(x[WS(rs, 16)]), VADD(T8i, T8l), ms, &(x[0]));
T8m = VADD(T8g, T8h);
ST(&(x[WS(rs, 32)]), VSUB(T8m, T8n), ms, &(x[0]));
ST(&(x[0]), VADD(T8m, T8n), ms, &(x[0]));
{
V T88, T8d, T8e, T8f;
T88 = VBYI(VSUB(T84, T87));
T8d = VSUB(T8b, T8c);
ST(&(x[WS(rs, 24)]), VADD(T88, T8d), ms, &(x[0]));
ST(&(x[WS(rs, 40)]), VSUB(T8d, T88), ms, &(x[0]));
T8e = VBYI(VADD(T87, T84));
T8f = VADD(T8b, T8c);
ST(&(x[WS(rs, 8)]), VADD(T8e, T8f), ms, &(x[0]));
ST(&(x[WS(rs, 56)]), VSUB(T8f, T8e), ms, &(x[0]));
}
}
{
V T5O, T6H, T6x, T6F, T6n, T6I, T6A, T6E;
{
V T5y, T5N, T6r, T6w;
T5y = VSUB(T5q, T5x);
T5N = VSUB(T5F, T5M);
T5O = VSUB(T5y, T5N);
T6H = VADD(T5y, T5N);
T6r = VSUB(T6p, T6q);
T6w = VSUB(T6s, T6v);
T6x = VSUB(T6r, T6w);
T6F = VADD(T6w, T6r);
{
V T65, T6y, T6m, T6z;
{
V T5Z, T64, T6g, T6l;
T5Z = VSUB(T5V, T5Y);
T64 = VSUB(T62, T63);
T65 = VFMA(LDK(KP831469612), T5Z, VMUL(LDK(KP555570233), T64));
T6y = VFNMS(LDK(KP555570233), T5Z, VMUL(LDK(KP831469612), T64));
T6g = VSUB(T6c, T6f);
T6l = VSUB(T6j, T6k);
T6m = VFNMS(LDK(KP555570233), T6l, VMUL(LDK(KP831469612), T6g));
T6z = VFMA(LDK(KP555570233), T6g, VMUL(LDK(KP831469612), T6l));
}
T6n = VSUB(T65, T6m);
T6I = VADD(T6y, T6z);
T6A = VSUB(T6y, T6z);
T6E = VADD(T65, T6m);
}
}
{
V T6o, T6B, T6K, T6L;
T6o = VADD(T5O, T6n);
T6B = VBYI(VADD(T6x, T6A));
ST(&(x[WS(rs, 54)]), VSUB(T6o, T6B), ms, &(x[0]));
ST(&(x[WS(rs, 10)]), VADD(T6o, T6B), ms, &(x[0]));
T6K = VBYI(VADD(T6F, T6E));
T6L = VADD(T6H, T6I);
ST(&(x[WS(rs, 6)]), VADD(T6K, T6L), ms, &(x[0]));
ST(&(x[WS(rs, 58)]), VSUB(T6L, T6K), ms, &(x[0]));
}
{
V T6C, T6D, T6G, T6J;
T6C = VSUB(T5O, T6n);
T6D = VBYI(VSUB(T6A, T6x));
ST(&(x[WS(rs, 42)]), VSUB(T6C, T6D), ms, &(x[0]));
ST(&(x[WS(rs, 22)]), VADD(T6C, T6D), ms, &(x[0]));
T6G = VBYI(VSUB(T6E, T6F));
T6J = VSUB(T6H, T6I);
ST(&(x[WS(rs, 26)]), VADD(T6G, T6J), ms, &(x[0]));
ST(&(x[WS(rs, 38)]), VSUB(T6J, T6G), ms, &(x[0]));
}
}
{
V T6O, T79, T6Z, T77, T6V, T7a, T72, T76;
{
V T6M, T6N, T6X, T6Y;
T6M = VADD(T5q, T5x);
T6N = VADD(T6p, T6q);
T6O = VSUB(T6M, T6N);
T79 = VADD(T6M, T6N);
T6X = VADD(T5F, T5M);
T6Y = VADD(T6v, T6s);
T6Z = VSUB(T6X, T6Y);
T77 = VADD(T6Y, T6X);
{
V T6R, T70, T6U, T71;
{
V T6P, T6Q, T6S, T6T;
T6P = VADD(T5Y, T5V);
T6Q = VADD(T62, T63);
T6R = VFMA(LDK(KP980785280), T6P, VMUL(LDK(KP195090322), T6Q));
T70 = VFNMS(LDK(KP195090322), T6P, VMUL(LDK(KP980785280), T6Q));
T6S = VADD(T6f, T6c);
T6T = VADD(T6j, T6k);
T6U = VFNMS(LDK(KP195090322), T6T, VMUL(LDK(KP980785280), T6S));
T71 = VFMA(LDK(KP195090322), T6S, VMUL(LDK(KP980785280), T6T));
}
T6V = VSUB(T6R, T6U);
T7a = VADD(T70, T71);
T72 = VSUB(T70, T71);
T76 = VADD(T6R, T6U);
}
}
{
V T6W, T73, T7c, T7d;
T6W = VADD(T6O, T6V);
T73 = VBYI(VADD(T6Z, T72));
ST(&(x[WS(rs, 50)]), VSUB(T6W, T73), ms, &(x[0]));
ST(&(x[WS(rs, 14)]), VADD(T6W, T73), ms, &(x[0]));
T7c = VBYI(VADD(T77, T76));
T7d = VADD(T79, T7a);
ST(&(x[WS(rs, 2)]), VADD(T7c, T7d), ms, &(x[0]));
ST(&(x[WS(rs, 62)]), VSUB(T7d, T7c), ms, &(x[0]));
}
{
V T74, T75, T78, T7b;
T74 = VSUB(T6O, T6V);
T75 = VBYI(VSUB(T72, T6Z));
ST(&(x[WS(rs, 46)]), VSUB(T74, T75), ms, &(x[0]));
ST(&(x[WS(rs, 18)]), VADD(T74, T75), ms, &(x[0]));
T78 = VBYI(VSUB(T76, T77));
T7b = VSUB(T79, T7a);
ST(&(x[WS(rs, 30)]), VADD(T78, T7b), ms, &(x[0]));
ST(&(x[WS(rs, 34)]), VSUB(T7b, T78), ms, &(x[0]));
}
}
{
V T4z, T5g, T4R, T59, T4H, T5j, T4O, T55, T4o, T4S, T4K, T4P, T52, T5k, T5c;
V T5h;
{
V T4y, T57, T4v, T58, T4r, T4u;
T4y = VADD(T4w, T4x);
T57 = VSUB(T4B, T4C);
T4r = VFMA(LDK(KP980785280), T4p, VMUL(LDK(KP195090322), T4q));
T4u = VFNMS(LDK(KP195090322), T4t, VMUL(LDK(KP980785280), T4s));
T4v = VADD(T4r, T4u);
T58 = VSUB(T4r, T4u);
T4z = VSUB(T4v, T4y);
T5g = VADD(T57, T58);
T4R = VADD(T4y, T4v);
T59 = VSUB(T57, T58);
}
{
V T4D, T54, T4G, T53, T4E, T4F;
T4D = VADD(T4B, T4C);
T54 = VSUB(T4x, T4w);
T4E = VFNMS(LDK(KP195090322), T4p, VMUL(LDK(KP980785280), T4q));
T4F = VFMA(LDK(KP195090322), T4s, VMUL(LDK(KP980785280), T4t));
T4G = VADD(T4E, T4F);
T53 = VSUB(T4E, T4F);
T4H = VSUB(T4D, T4G);
T5j = VADD(T54, T53);
T4O = VADD(T4D, T4G);
T55 = VSUB(T53, T54);
}
{
V T4g, T4I, T4n, T4J;
{
V T4c, T4f, T4j, T4m;
T4c = VADD(T4a, T4b);
T4f = VADD(T4d, T4e);
T4g = VFNMS(LDK(KP098017140), T4f, VMUL(LDK(KP995184726), T4c));
T4I = VFMA(LDK(KP098017140), T4c, VMUL(LDK(KP995184726), T4f));
T4j = VADD(T4h, T4i);
T4m = VADD(T4k, T4l);
T4n = VFMA(LDK(KP995184726), T4j, VMUL(LDK(KP098017140), T4m));
T4J = VFNMS(LDK(KP098017140), T4j, VMUL(LDK(KP995184726), T4m));
}
T4o = VSUB(T4g, T4n);
T4S = VADD(T4I, T4J);
T4K = VSUB(T4I, T4J);
T4P = VADD(T4g, T4n);
}
{
V T4Y, T5a, T51, T5b;
{
V T4W, T4X, T4Z, T50;
T4W = VSUB(T4a, T4b);
T4X = VSUB(T4e, T4d);
T4Y = VFNMS(LDK(KP634393284), T4X, VMUL(LDK(KP773010453), T4W));
T5a = VFMA(LDK(KP634393284), T4W, VMUL(LDK(KP773010453), T4X));
T4Z = VSUB(T4h, T4i);
T50 = VSUB(T4l, T4k);
T51 = VFMA(LDK(KP773010453), T4Z, VMUL(LDK(KP634393284), T50));
T5b = VFNMS(LDK(KP634393284), T4Z, VMUL(LDK(KP773010453), T50));
}
T52 = VSUB(T4Y, T51);
T5k = VADD(T5a, T5b);
T5c = VSUB(T5a, T5b);
T5h = VADD(T4Y, T51);
}
{
V T4A, T4L, T5i, T5l;
T4A = VBYI(VSUB(T4o, T4z));
T4L = VSUB(T4H, T4K);
ST(&(x[WS(rs, 17)]), VADD(T4A, T4L), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 47)]), VSUB(T4L, T4A), ms, &(x[WS(rs, 1)]));
T5i = VADD(T5g, T5h);
T5l = VBYI(VADD(T5j, T5k));
ST(&(x[WS(rs, 57)]), VSUB(T5i, T5l), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 7)]), VADD(T5i, T5l), ms, &(x[WS(rs, 1)]));
}
{
V T5m, T5n, T4M, T4N;
T5m = VSUB(T5g, T5h);
T5n = VBYI(VSUB(T5k, T5j));
ST(&(x[WS(rs, 39)]), VSUB(T5m, T5n), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 25)]), VADD(T5m, T5n), ms, &(x[WS(rs, 1)]));
T4M = VBYI(VADD(T4z, T4o));
T4N = VADD(T4H, T4K);
ST(&(x[WS(rs, 15)]), VADD(T4M, T4N), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 49)]), VSUB(T4N, T4M), ms, &(x[WS(rs, 1)]));
}
{
V T4Q, T4T, T56, T5d;
T4Q = VADD(T4O, T4P);
T4T = VBYI(VADD(T4R, T4S));
ST(&(x[WS(rs, 63)]), VSUB(T4Q, T4T), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 1)]), VADD(T4Q, T4T), ms, &(x[WS(rs, 1)]));
T56 = VBYI(VSUB(T52, T55));
T5d = VSUB(T59, T5c);
ST(&(x[WS(rs, 23)]), VADD(T56, T5d), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 41)]), VSUB(T5d, T56), ms, &(x[WS(rs, 1)]));
}
{
V T5e, T5f, T4U, T4V;
T5e = VBYI(VADD(T55, T52));
T5f = VADD(T59, T5c);
ST(&(x[WS(rs, 9)]), VADD(T5e, T5f), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 55)]), VSUB(T5f, T5e), ms, &(x[WS(rs, 1)]));
T4U = VSUB(T4O, T4P);
T4V = VBYI(VSUB(T4S, T4R));
ST(&(x[WS(rs, 33)]), VSUB(T4U, T4V), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 31)]), VADD(T4U, T4V), ms, &(x[WS(rs, 1)]));
}
}
{
V T1u, T43, T3D, T3V, T3t, T45, T3B, T3K, T3d, T3E, T3w, T3A, T3R, T46, T3Y;
V T42;
{
V TE, T3U, T1t, T3T, T13, T1s;
TE = VSUB(Tg, TD);
T3U = VADD(T3r, T3k);
T13 = VFMA(LDK(KP831469612), TV, VMUL(LDK(KP555570233), T12));
T1s = VFNMS(LDK(KP555570233), T1r, VMUL(LDK(KP831469612), T1k));
T1t = VSUB(T13, T1s);
T3T = VADD(T13, T1s);
T1u = VSUB(TE, T1t);
T43 = VADD(T3U, T3T);
T3D = VADD(TE, T1t);
T3V = VSUB(T3T, T3U);
}
{
V T3s, T3I, T3h, T3J, T3f, T3g;
T3s = VSUB(T3k, T3r);
T3I = VADD(Tg, TD);
T3f = VFNMS(LDK(KP555570233), TV, VMUL(LDK(KP831469612), T12));
T3g = VFMA(LDK(KP555570233), T1k, VMUL(LDK(KP831469612), T1r));
T3h = VSUB(T3f, T3g);
T3J = VADD(T3f, T3g);
T3t = VSUB(T3h, T3s);
T45 = VADD(T3I, T3J);
T3B = VADD(T3s, T3h);
T3K = VSUB(T3I, T3J);
}
{
V T2l, T3u, T3c, T3v;
{
V T29, T2k, T30, T3b;
T29 = VSUB(T1R, T28);
T2k = VSUB(T2g, T2j);
T2l = VFMA(LDK(KP881921264), T29, VMUL(LDK(KP471396736), T2k));
T3u = VFNMS(LDK(KP471396736), T29, VMUL(LDK(KP881921264), T2k));
T30 = VSUB(T2I, T2Z);
T3b = VSUB(T37, T3a);
T3c = VFNMS(LDK(KP471396736), T3b, VMUL(LDK(KP881921264), T30));
T3v = VFMA(LDK(KP471396736), T30, VMUL(LDK(KP881921264), T3b));
}
T3d = VSUB(T2l, T3c);
T3E = VADD(T3u, T3v);
T3w = VSUB(T3u, T3v);
T3A = VADD(T2l, T3c);
}
{
V T3N, T3W, T3Q, T3X;
{
V T3L, T3M, T3O, T3P;
T3L = VADD(T28, T1R);
T3M = VADD(T2g, T2j);
T3N = VFMA(LDK(KP956940335), T3L, VMUL(LDK(KP290284677), T3M));
T3W = VFNMS(LDK(KP290284677), T3L, VMUL(LDK(KP956940335), T3M));
T3O = VADD(T2Z, T2I);
T3P = VADD(T37, T3a);
T3Q = VFNMS(LDK(KP290284677), T3P, VMUL(LDK(KP956940335), T3O));
T3X = VFMA(LDK(KP290284677), T3O, VMUL(LDK(KP956940335), T3P));
}
T3R = VSUB(T3N, T3Q);
T46 = VADD(T3W, T3X);
T3Y = VSUB(T3W, T3X);
T42 = VADD(T3N, T3Q);
}
{
V T3e, T3x, T44, T47;
T3e = VADD(T1u, T3d);
T3x = VBYI(VADD(T3t, T3w));
ST(&(x[WS(rs, 53)]), VSUB(T3e, T3x), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 11)]), VADD(T3e, T3x), ms, &(x[WS(rs, 1)]));
T44 = VBYI(VSUB(T42, T43));
T47 = VSUB(T45, T46);
ST(&(x[WS(rs, 29)]), VADD(T44, T47), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 35)]), VSUB(T47, T44), ms, &(x[WS(rs, 1)]));
}
{
V T48, T49, T3y, T3z;
T48 = VBYI(VADD(T43, T42));
T49 = VADD(T45, T46);
ST(&(x[WS(rs, 3)]), VADD(T48, T49), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 61)]), VSUB(T49, T48), ms, &(x[WS(rs, 1)]));
T3y = VSUB(T1u, T3d);
T3z = VBYI(VSUB(T3w, T3t));
ST(&(x[WS(rs, 43)]), VSUB(T3y, T3z), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 21)]), VADD(T3y, T3z), ms, &(x[WS(rs, 1)]));
}
{
V T3C, T3F, T3S, T3Z;
T3C = VBYI(VSUB(T3A, T3B));
T3F = VSUB(T3D, T3E);
ST(&(x[WS(rs, 27)]), VADD(T3C, T3F), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 37)]), VSUB(T3F, T3C), ms, &(x[WS(rs, 1)]));
T3S = VADD(T3K, T3R);
T3Z = VBYI(VADD(T3V, T3Y));
ST(&(x[WS(rs, 51)]), VSUB(T3S, T3Z), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 13)]), VADD(T3S, T3Z), ms, &(x[WS(rs, 1)]));
}
{
V T40, T41, T3G, T3H;
T40 = VSUB(T3K, T3R);
T41 = VBYI(VSUB(T3Y, T3V));
ST(&(x[WS(rs, 45)]), VSUB(T40, T41), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 19)]), VADD(T40, T41), ms, &(x[WS(rs, 1)]));
T3G = VBYI(VADD(T3B, T3A));
T3H = VADD(T3D, T3E);
ST(&(x[WS(rs, 5)]), VADD(T3G, T3H), ms, &(x[WS(rs, 1)]));
ST(&(x[WS(rs, 59)]), VSUB(T3H, T3G), ms, &(x[WS(rs, 1)]));
}
}
}
}
static const tw_instr twinstr[] = {
VTW(0, 1),
VTW(0, 2),
VTW(0, 3),
VTW(0, 4),
VTW(0, 5),
VTW(0, 6),
VTW(0, 7),
VTW(0, 8),
VTW(0, 9),
VTW(0, 10),
VTW(0, 11),
VTW(0, 12),
VTW(0, 13),
VTW(0, 14),
VTW(0, 15),
VTW(0, 16),
VTW(0, 17),
VTW(0, 18),
VTW(0, 19),
VTW(0, 20),
VTW(0, 21),
VTW(0, 22),
VTW(0, 23),
VTW(0, 24),
VTW(0, 25),
VTW(0, 26),
VTW(0, 27),
VTW(0, 28),
VTW(0, 29),
VTW(0, 30),
VTW(0, 31),
VTW(0, 32),
VTW(0, 33),
VTW(0, 34),
VTW(0, 35),
VTW(0, 36),
VTW(0, 37),
VTW(0, 38),
VTW(0, 39),
VTW(0, 40),
VTW(0, 41),
VTW(0, 42),
VTW(0, 43),
VTW(0, 44),
VTW(0, 45),
VTW(0, 46),
VTW(0, 47),
VTW(0, 48),
VTW(0, 49),
VTW(0, 50),
VTW(0, 51),
VTW(0, 52),
VTW(0, 53),
VTW(0, 54),
VTW(0, 55),
VTW(0, 56),
VTW(0, 57),
VTW(0, 58),
VTW(0, 59),
VTW(0, 60),
VTW(0, 61),
VTW(0, 62),
VTW(0, 63),
{TW_NEXT, VL, 0}
};
static const ct_desc desc = { 64, "t1bv_64", twinstr, &GENUS, {467, 198, 52, 0}, 0, 0, 0 };
void X(codelet_t1bv_64) (planner *p) {
X(kdft_dit_register) (p, t1bv_64, &desc);
}
#endif /* HAVE_FMA */
| Eigenlabs/EigenD | lib_fftw/src/dft/simd/codelets/t1bv_64.c | C | gpl-3.0 | 64,983 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2494,
1010,
2289,
1011,
1022,
24713,
10424,
14031,
1008,
9385,
1006,
1039,
1007,
2494,
1010,
2289,
1011,
1022,
4404,
2820,
1997,
2974,
1008,
1008,
2023,
2565,
2003,
2489,
4007,
1025,
2017,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.gentics.mesh.core.webroot;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
import org.junit.Test;
import org.mockito.Mockito;
import com.gentics.mesh.core.data.branch.HibBranch;
public class PathPrefixUtilTest {
@Test
public void testSanitize() {
assertEquals("", PathPrefixUtil.sanitize(""));
assertEquals("/bla", PathPrefixUtil.sanitize("bla"));
assertEquals("/bla", PathPrefixUtil.sanitize("bla/"));
assertEquals("", PathPrefixUtil.sanitize("/"));
}
@Test
public void testStrip() {
HibBranch branch = Mockito.mock(HibBranch.class);
when(branch.getPathPrefix()).thenReturn("");
assertEquals("", PathPrefixUtil.strip(branch, ""));
when(branch.getPathPrefix()).thenReturn("abc");
assertEquals("", PathPrefixUtil.strip(branch, ""));
assertEquals("", PathPrefixUtil.strip(branch, "/abc"));
}
@Test
public void testStartsWithPrefix() {
HibBranch branch = Mockito.mock(HibBranch.class);
when(branch.getPathPrefix()).thenReturn("cba");
assertFalse(PathPrefixUtil.startsWithPrefix(branch, "/abc"));
when(branch.getPathPrefix()).thenReturn("abc");
assertTrue(PathPrefixUtil.startsWithPrefix(branch, "/abc"));
}
}
| gentics/mesh | tests/tests-common/src/main/java/com/gentics/mesh/core/webroot/PathPrefixUtilTest.java | Java | apache-2.0 | 1,290 | [
30522,
7427,
4012,
1012,
8991,
14606,
1012,
20437,
1012,
4563,
1012,
4773,
3217,
4140,
1025,
12324,
10763,
8917,
1012,
12022,
4183,
1012,
20865,
1012,
20865,
2063,
26426,
2015,
1025,
12324,
10763,
8917,
1012,
12022,
4183,
1012,
20865,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.dutproject.cinemaproject.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.dutproject.cinemaproject.model.bean.Account;
/**
* Servlet implementation class LoginFormServlet
*/
@WebServlet(name = "Login", urlPatterns = { "/Login" })
public class LoginFormServlet extends LoginBaseServlet {
private static final long serialVersionUID = 1L;
@Override
protected void doWork(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
if (getPermission(request) == Account.NO_PERMISSION)
request.getServletContext().getRequestDispatcher("/jsp/loginForm.jsp").forward(request, response);
else
navigateToHome(request, response);
}
}
| sontx/da-cnpm | CinemaProject/src/com/dutproject/cinemaproject/controller/LoginFormServlet.java | Java | apache-2.0 | 876 | [
30522,
7427,
4012,
1012,
4241,
25856,
3217,
20614,
1012,
5988,
21572,
20614,
1012,
11486,
1025,
12324,
9262,
1012,
22834,
1012,
22834,
10288,
24422,
1025,
12324,
9262,
2595,
1012,
14262,
2615,
7485,
1012,
14262,
2615,
25890,
2595,
24422,
1025... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
use ::{BroadcastMode, Instruction, MaskReg, MergeMode, Mnemonic, OperandSize, Reg, RoundingMode};
use ::RegType::*;
use ::instruction_def::*;
use ::Operand::*;
use ::Reg::*;
use ::RegScale::*;
fn pinsrb_1() {
run_test(&Instruction { mnemonic: Mnemonic::PINSRB, operand1: Some(Direct(XMM6)), operand2: Some(Direct(EBP)), operand3: Some(Literal8(106)), operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[102, 15, 58, 32, 245, 106], OperandSize::Dword)
}
fn pinsrb_2() {
run_test(&Instruction { mnemonic: Mnemonic::PINSRB, operand1: Some(Direct(XMM5)), operand2: Some(IndirectScaledDisplaced(ESI, Two, 1749524261, Some(OperandSize::Byte), None)), operand3: Some(Literal8(109)), operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[102, 15, 58, 32, 44, 117, 37, 159, 71, 104, 109], OperandSize::Dword)
}
fn pinsrb_3() {
run_test(&Instruction { mnemonic: Mnemonic::PINSRB, operand1: Some(Direct(XMM5)), operand2: Some(Direct(EDI)), operand3: Some(Literal8(12)), operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[102, 15, 58, 32, 239, 12], OperandSize::Qword)
}
fn pinsrb_4() {
run_test(&Instruction { mnemonic: Mnemonic::PINSRB, operand1: Some(Direct(XMM0)), operand2: Some(IndirectScaledDisplaced(RDI, Four, 1269005607, Some(OperandSize::Byte), None)), operand3: Some(Literal8(38)), operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[102, 15, 58, 32, 4, 189, 39, 125, 163, 75, 38], OperandSize::Qword)
}
| GregoryComer/rust-x86asm | src/test/instruction_tests/pinsrb.rs | Rust | mit | 1,668 | [
30522,
2224,
1024,
1024,
1063,
3743,
5302,
3207,
1010,
7899,
1010,
7308,
2890,
2290,
1010,
13590,
5302,
3207,
1010,
24098,
26941,
2594,
1010,
3850,
18376,
4697,
1010,
19723,
1010,
26939,
5302,
3207,
1065,
1025,
2224,
1024,
1024,
19723,
1387... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//classMemberCopy.cpp
//Copyright (c) 2016 mmYYmmdd
#include "stdafx.h"
#include <utility>
#include "OAIdl.h"
#if _MSC_VER < 1900
#define noexcept throw()
#endif
namespace {
//ReDimÂ\Èzñ©Ç¤©
HRESULT redimCheck(SAFEARRAY * psa) noexcept
{
if ( const auto dim = ::SafeArrayGetDim(psa) )
{
SAFEARRAYBOUND saboundNew{ 0, 0 };
LONG lLbound, lUbound;
auto a1 = ::SafeArrayGetLBound(psa, dim, &lLbound);
auto a2 = ::SafeArrayGetUBound(psa, dim, &lUbound);
saboundNew.cElements = 1 + lUbound - lLbound;
saboundNew.lLbound = lLbound;
return ::SafeArrayRedim(psa, &saboundNew);
}
return S_OK; //¢ú»zñàReDimÂ\
}
// Rs[ *me->mem <===> *target->mem
template <typename T>
void copy_or_swap(T* pV, IDispatch* me, IDispatch* target, __int32 dir) noexcept
{
auto n = reinterpret_cast<char*>(pV) - reinterpret_cast<char*>(me);
auto p = reinterpret_cast<T*>(reinterpret_cast<char*>(target) + n);
if (0 < dir) *p = *pV;
else if (dir < 0) *pV = *p;
else std::swap(*p, *pV);
}
}
// VBAÌNXIuWFNgÌÁèÌoiIuWFNg^ÈOjð¯êNX̼ÌIuWFNgÉRs[·é
// me : NXIuWFNgiByVal x As ***Class) (As ObjectÅÍ_)
// mbr : ÁèÌoiIuWFNg^ÈOj
// target : ÎÛIuWFNgimeƯêNXj
// dir : 0 < dir : me©çtargetÖRs[A dir < 0 : target©çmeÖRs[A@dir == 0 : swap
VARIANT_BOOL __stdcall copy_valueMember(IDispatch* me ,
VARIANT& mbr ,
IDispatch* target ,
__int32 dir ) noexcept
{
const auto vt = mbr.vt;
if ( vt & VT_BYREF )
{
if ( vt & VT_ARRAY )
{
if ( redimCheck(*mbr.pparray) == S_OK )
{
auto d = reinterpret_cast<char*>(mbr.pparray) - reinterpret_cast<char*>(me);
auto p = reinterpret_cast<SAFEARRAY**>(reinterpret_cast<char*>(target) + d);
if ( 0 < dir )
{
::SafeArrayDestroy(*p);
::SafeArrayCopy(*mbr.pparray, p);
}
else if ( dir < 0 )
{
::SafeArrayDestroy(*mbr.pparray);
::SafeArrayCopy(*p, mbr.pparray);
}
else
{
std::swap(*p, *mbr.pparray);
}
}
else
{
auto d = reinterpret_cast<char*>(*mbr.pparray) - reinterpret_cast<char*>(me);
auto p = reinterpret_cast<SAFEARRAY*>(reinterpret_cast<char*>(target) + d);
if ( 0 < dir )
{
::SafeArrayCopyData(*mbr.pparray, p);
}
else if ( dir < 0 )
{
::SafeArrayCopyData(p, *mbr.pparray);
}
else
{
SAFEARRAY* tmp = nullptr;
::SafeArrayCopy(p, &tmp);
::SafeArrayCopyData(*mbr.pparray, p);
::SafeArrayCopyData(tmp, p);
::SafeArrayDestroy(tmp);
}
}
}
else switch ( vt % VT_ARRAY )
{
case VT_UI1: copy_or_swap(mbr.pbVal, me, target, dir); break;
case VT_I2: copy_or_swap(mbr.piVal, me, target, dir); break;
case VT_I4: copy_or_swap(mbr.plVal, me, target, dir); break;
case VT_I8: copy_or_swap(mbr.pllVal, me, target, dir); break;
case VT_R4: copy_or_swap(mbr.pfltVal, me, target, dir); break;
case VT_R8: copy_or_swap(mbr.pdblVal, me, target, dir); break;
case VT_CY: copy_or_swap(mbr.pcyVal, me, target, dir); break;
case VT_DATE: copy_or_swap(mbr.pdate, me, target, dir); break;
case VT_BOOL: copy_or_swap(mbr.pboolVal, me, target, dir); break;
case VT_BSTR: /////////////
{
auto n = reinterpret_cast<char*>(mbr.pbstrVal) - reinterpret_cast<char*>(me);
auto p = reinterpret_cast<BSTR*>(reinterpret_cast<char*>(target) + n);
if ( 0 < dir ) ::SysReAllocString(p, *mbr.pbstrVal);
else if ( dir < 0 ) ::SysReAllocString(mbr.pbstrVal, *p);
else std::swap(*p, *mbr.pbstrVal);
break;
}
default: return 0;
}
}
else
{
auto n = reinterpret_cast<char*>(&mbr) - reinterpret_cast<char*>(me);
auto p = reinterpret_cast<VARIANT*>(reinterpret_cast<char*>(target) + n);
if ( 0 < dir ) { ::VariantCopy(p, &mbr); }
else if ( dir < 0 ) { ::VariantCopy(&mbr, p); }
else { std::swap(*p, mbr); }
}
return -1;
}
// VBAÌNXIuWFNgÌIuWFNg^Ìoð¯êNX̼ÌIuWFNgÉRs[·é
// me : NXIuWFNgiByVal x As ***Class) (As ObjectÅÍ_)
// pmbr : ÁèÌo
// target : ÎÛIuWFNgimeƯêNXj
// dir : 0 < dir : me©çtargetÖRs[A dir < 0 : target©çmeÖRs[A@dir == 0 : swap
// method : oÅ éIuWFNgÌøÈµÌRs[\bh¼i"clone"j
VARIANT_BOOL __stdcall copy_objectMember( IDispatch* me ,
IDispatch** pmbr ,
IDispatch* target ,
__int32 dir ,
VARIANT& method ) noexcept
{
auto n = reinterpret_cast<char*>(pmbr) - reinterpret_cast<char*>(me);
auto p = reinterpret_cast<IDispatch**>(reinterpret_cast<char*>(target) + n);
if ( 0 == dir )
{
std::swap(*p, *pmbr);
return -1;
}
else
{
BSTR name = (method.vt & VT_BYREF )?
( ((method.vt & VT_BSTR) && method.pbstrVal )? *method.pbstrVal : nullptr ) :
( ((method.vt & VT_BSTR) && method.bstrVal ) ? method.bstrVal : nullptr );
if ( !name ) return 0;
VARIANT tmp;
::VariantInit(&tmp);
tmp.vt = VT_DISPATCH;
tmp.pdispVal = nullptr;
DISPPARAMS dp = { nullptr, nullptr, 0, 0 };
if (IDispatch*& from_ = (0 < dir) ? *pmbr : *p )
{
DISPID dispid;
from_->GetIDsOfNames(IID_NULL, &name, 1, LOCALE_USER_DEFAULT, &dispid);
HRESULT hr = from_->Invoke(dispid,
IID_NULL,
LOCALE_SYSTEM_DEFAULT,
DISPATCH_METHOD,
&dp,
&tmp,
NULL,
NULL);
if (hr != S_OK) return 0;
}
std::swap(tmp.pdispVal, (0 < dir) ? *p: *pmbr);
::VariantClear(&tmp);
return -1;
}
}
| mYmd/VBA | classMemberCopy.cpp | C++ | mit | 7,558 | [
30522,
1013,
1013,
2465,
4168,
21784,
3597,
7685,
1012,
18133,
2361,
1013,
1013,
9385,
1006,
1039,
1007,
2355,
3461,
2100,
24335,
26876,
2094,
1001,
2421,
1000,
2358,
2850,
2546,
2595,
1012,
1044,
1000,
1001,
2421,
1026,
9710,
1028,
1001,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* AdwordsUserListService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201601.rm;
public interface AdwordsUserListService extends javax.xml.rpc.Service {
public java.lang.String getAdwordsUserListServiceInterfacePortAddress();
public com.google.api.ads.adwords.axis.v201601.rm.AdwordsUserListServiceInterface getAdwordsUserListServiceInterfacePort() throws javax.xml.rpc.ServiceException;
public com.google.api.ads.adwords.axis.v201601.rm.AdwordsUserListServiceInterface getAdwordsUserListServiceInterfacePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
}
| gawkermedia/googleads-java-lib | modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201601/rm/AdwordsUserListService.java | Java | apache-2.0 | 720 | [
30522,
1013,
1008,
1008,
1008,
4748,
22104,
20330,
27103,
2121,
7903,
2063,
1012,
9262,
1008,
1008,
2023,
5371,
2001,
8285,
1011,
7013,
2013,
1059,
16150,
2140,
1008,
2011,
1996,
15895,
8123,
1015,
1012,
1018,
9388,
6185,
1010,
2268,
1006,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Thu Jun 12 19:19:16 EDT 2014 -->
<title>Uses of Package com.runescape.revised.content.social.impl</title>
<meta name="date" content="2014-06-12">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Package com.runescape.revised.content.social.impl";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/runescape/revised/content/social/impl/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Uses of Package com.runescape.revised.content.social.impl" class="title">Uses of Package<br>com.runescape.revised.content.social.impl</h1>
</div>
<div class="contentContainer">No usage of com.runescape.revised.content.social.impl</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/runescape/revised/content/social/impl/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| RodriguesJ/Atem | doc/com/runescape/revised/content/social/impl/package-use.html | HTML | epl-1.0 | 3,988 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
16129,
1018,
1012,
5890,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
8917,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#ifndef RBKIT_APPSTATE_H
#define RBKIT_APPSTATE_H
#include <QObject>
#include <QMutex>
#include <QHash>
#include <QVariant>
namespace RBKit {
class AppState
{
QMutex mutex;
QHash<QString, QVariant> appState;
QHash<int, QString> snapshotNames;
AppState();
static AppState *singleton;
QString protocolVersion;
public:
const QVariant getState(const QString& ket);
void setAppState(const QString key, const QVariant value);
void setSnapshotName(int key, QString snapShotName);
QString getSnapshotName(int key) const;
void removeSnapshotName(int key);
static AppState* getInstance();
QString getProtocolVersion() const;
void setProtocolVersion(const QString &value);
};
} // namespace RBKit
#endif // RBKIT_APPSTATE_H
| duleorlovic/rbkit-client | rbkit-lib/model/appstate.h | C | gpl-2.0 | 774 | [
30522,
1001,
2065,
13629,
2546,
21144,
23615,
1035,
18726,
12259,
1035,
1044,
1001,
9375,
21144,
23615,
1035,
18726,
12259,
1035,
1044,
1001,
2421,
1026,
1053,
16429,
20614,
1028,
1001,
2421,
1026,
1053,
26746,
2595,
1028,
1001,
2421,
1026,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Monomial.hh, part of the RotationShield program
* Copyright (c) 2007-2014 Michael P. Mendenhall
*
* 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 3 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/// \file "Monomial.hh" \brief Templatized monomial term for a polynomial
#ifndef MONOMIAL_HH
/// Make sure this header is only loaded once
#define MONOMIAL_HH
#include "Vec.hh"
#include <iostream>
#include <iomanip>
#include <exception>
/// general exception for polynomial problems
class PolynomialException: public std::exception {
virtual const char* what() const throw() {
return "Monomial Problem!";
}
};
/// exception for attempts to use inconsistent units
class InconsistentMonomialException: public PolynomialException {
virtual const char* what() const throw() {
return "Incomparable monomial terms!";
}
};
template<unsigned int N, typename T, typename P>
class Monomial {
public:
/// constructor
Monomial(T v, Vec<N,P> d): val(v), dimensions(d) { }
/// constructor for dimensionless
Monomial(T v): val(v), dimensions(Vec<N,P>()) { }
/// destructor
virtual ~Monomial() {}
/// check Monomial consistency
bool consistentWith(const Monomial<N,T,P>& u) const { return dimensions == u.dimensions; }
/// throw error if inconsistent
virtual void assertConsistent(const Monomial<N,T,P>& u) const { if(!consistentWith(u)) throw(InconsistentMonomialException()); }
/// output representation in algebraic form
std::ostream& algebraicForm(std::ostream& o) const;
/// output representation in data table form
std::ostream& tableForm(std::ostream& o) const;
/// output representation in LaTeX form
std::ostream& latexForm(std::ostream& o) const;
/// convert to dimensionless quantity of given unit
double in(const Monomial<N,T,P>& u) const { assertConsistent(u); return val/u.val; }
/// unary minus
const Monomial<N,T,P> operator-() const;
/// inverse Monomial
const Monomial<N,T,P> inverse() const;
/// evaluate value at given point
T operator()(const Vec<N,T>& v) const;
/// inplace addition
Monomial<N,T,P>& operator+=(const Monomial<N,T,P>& rhs);
/// inplace subtraction
Monomial<N,T,P>& operator-=(const Monomial<N,T,P>& rhs);
/// inplace multiplication
Monomial<N,T,P>& operator*=(const Monomial<N,T,P>& rhs);
/// inplace division
Monomial<N,T,P>& operator/=(const Monomial<N,T,P>& rhs);
/// inplace multiplication
Monomial<N,T,P>& operator*=(T rhs);
/// inplace division
Monomial<N,T,P>& operator/=(T rhs);
/// addition operator
const Monomial<N,T,P> operator+(const Monomial<N,T,P>& other) const;
/// subtraction operator
const Monomial<N,T,P> operator-(const Monomial<N,T,P>& other) const;
/// multiplication operator
const Monomial<N,T,P> operator*(const Monomial<N,T,P>& other) const;
/// division operator
const Monomial<N,T,P> operator/(const Monomial<N,T,P>& other) const;
/// multiplication operator
const Monomial<N,T,P> operator*(T other) const;
/// division operator
const Monomial<N,T,P> operator/(T other) const;
T val; ///< dimensionless value
Vec<N,P> dimensions; ///< unit dimensions
static const char* vletters; ///< letters for variable names
};
template<unsigned int N, typename T, typename P>
const char* Monomial<N,T,P>::vletters = "xyztuvwabcdefghijklmnopqrs";
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator-() const {
Monomial<N,T,P> u = *this;
u.val = -val;
return u;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::inverse() const {
Monomial<N,T,P> u = *this;
u.val = 1./val;
u.dimensions = -u.dimensions;
return u;
}
template<unsigned int N, typename T, typename P>
T Monomial<N,T,P>::operator()(const Vec<N,T>& v) const {
T s = val;
for(unsigned int i=0; i<N; i++)
s *= pow(v[i],dimensions[i]);
return s;
}
template<unsigned int N, typename T, typename P>
Monomial<N,T,P>& Monomial<N,T,P>::operator+=(const Monomial<N,T,P>& rhs) {
assertConsistent(rhs);
val += rhs.val;
return *this;
}
template<unsigned int N, typename T, typename P>
Monomial<N,T,P>& Monomial<N,T,P>::operator-=(const Monomial<N,T,P>& rhs) {
assertConsistent(rhs);
val -= rhs.val;
return *this;
}
template<unsigned int N, typename T, typename P>
Monomial<N,T,P>& Monomial<N,T,P>::operator*=(const Monomial<N,T,P>& rhs) {
dimensions += rhs.dimensions;
val *= rhs.val;
return *this;
}
template<unsigned int N, typename T, typename P>
Monomial<N,T,P>& Monomial<N,T,P>::operator/=(const Monomial<N,T,P>& rhs) {
dimensions -= rhs.dimensions;
val /= rhs.val;
return *this;
}
template<unsigned int N, typename T, typename P>
Monomial<N,T,P>& Monomial<N,T,P>::operator*=(T rhs) {
val *= rhs;
return *this;
}
template<unsigned int N, typename T, typename P>
Monomial<N,T,P>& Monomial<N,T,P>::operator/=(T rhs) {
val /= rhs;
return *this;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator+(const Monomial<N,T,P>& other) const {
Monomial<N,T,P> result = *this;
result += other;
return result;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator-(const Monomial<N,T,P>& other) const {
Monomial<N,T,P> result = *this;
result -= other;
return result;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator*(const Monomial<N,T,P>& other) const {
Monomial<N,T,P> result = *this;
result *= other;
return result;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator/(const Monomial<N,T,P>& other) const {
Monomial<N,T,P> result = *this;
result /= other;
return result;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator*(T other) const {
Monomial<N,T,P> result = *this;
result *= other;
return result;
}
template<unsigned int N, typename T, typename P>
const Monomial<N,T,P> Monomial<N,T,P>::operator/(T other) const {
Monomial<N,T,P> result = *this;
result /= other;
return result;
}
template<unsigned int N, typename T, typename P>
std::ostream& Monomial<N,T,P>::algebraicForm(std::ostream& o) const {
o << std::showpos << val << std::noshowpos;
for(P i=0; i<N; i++) {
if(dimensions[i] > 0) {
if(dimensions[i] == 1)
o << vletters[i];
else
o << vletters[i] << "^" << dimensions[i];
}
}
return o;
}
template<unsigned int N, typename T, typename P>
std::ostream& Monomial<N,T,P>::latexForm(std::ostream& o) const {
o << std::showpos << val << std::noshowpos;
for(P i=0; i<N; i++) {
if(dimensions[i] > 0) {
if(dimensions[i] == 1) {
o << vletters[i];
} else {
o << vletters[i] << "^";
if(dimensions[i] < 10)
o << dimensions[i] ;
else
o << "{" << dimensions[i] << "}";
}
}
}
return o;
}
template<unsigned int N, typename T, typename P>
std::ostream& Monomial<N,T,P>::tableForm(std::ostream& o) const {
o << std::setw(20) << std::setprecision(10) << val << "\t";
for(P i=0; i<N; i++)
o << " " << std::setw(0) << dimensions[i];
return o;
}
/// output representation
template<unsigned int N, typename T, typename P>
std::ostream& operator<<(std::ostream& o, const Monomial<N,T,P>& u) {
o << "[ " << u.val << " " << u.dimensions << " ]";
return o;
}
#endif
| mpmendenhall/rotationshield | MathUtils/Monomial.hh | C++ | gpl-3.0 | 8,516 | [
30522,
1013,
1008,
1008,
18847,
10092,
30524,
2417,
2923,
3089,
8569,
2618,
2009,
1998,
1013,
2030,
19933,
1008,
2009,
2104,
1996,
3408,
1997,
1996,
27004,
2236,
2270,
6105,
2004,
2405,
2011,
1008,
1996,
2489,
4007,
3192,
1025,
2593,
2544,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* libunwind - a platform-independent unwind library
Copyright (C) 2003, 2005 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#ifndef unwind_internal_h
#define unwind_internal_h
#define UNW_LOCAL_ONLY
#include <unwind.h>
#include <stdlib.h>
#include <libunwind.h>
#include "libunwind_i.h"
/* The version of the _Unwind_*() interface implemented by this code. */
#define _U_VERSION 1
typedef _Unwind_Reason_Code (*_Unwind_Personality_Fn)
(int, _Unwind_Action, uint64_t, struct _Unwind_Exception *,
struct _Unwind_Context *);
struct _Unwind_Context {
unw_cursor_t cursor;
int end_of_stack; /* set to 1 if the end of stack was reached */
};
/* This must be a macro because unw_getcontext() must be invoked from
the callee, even if optimization (and hence inlining) is turned
off. The macro arguments MUST NOT have any side-effects. */
#define _Unwind_InitContext(context, uc) \
((context)->end_of_stack = 0, \
((unw_getcontext (uc) < 0 || unw_init_local (&(context)->cursor, uc) < 0) \
? -1 : 0))
static _Unwind_Reason_Code ALWAYS_INLINE
_Unwind_Phase2 (struct _Unwind_Exception *exception_object,
struct _Unwind_Context *context)
{
_Unwind_Stop_Fn stop = (_Unwind_Stop_Fn) exception_object->private_1;
uint64_t exception_class = exception_object->exception_class;
void *stop_parameter = (void *) exception_object->private_2;
_Unwind_Personality_Fn personality;
_Unwind_Reason_Code reason;
_Unwind_Action actions;
unw_proc_info_t pi;
unw_word_t ip;
int ret;
actions = _UA_CLEANUP_PHASE;
if (stop)
actions |= _UA_FORCE_UNWIND;
while (1)
{
ret = unw_step (&context->cursor);
if (ret <= 0)
{
if (ret == 0)
{
actions |= _UA_END_OF_STACK;
context->end_of_stack = 1;
}
else
return _URC_FATAL_PHASE2_ERROR;
}
if (stop)
{
reason = (*stop) (_U_VERSION, actions, exception_class,
exception_object, context, stop_parameter);
if (reason != _URC_NO_REASON)
/* Stop function may return _URC_FATAL_PHASE2_ERROR if
it's unable to handle end-of-stack condition or
_URC_FATAL_PHASE2_ERROR if something is wrong. Not
that it matters: the resulting state is indeterminate
anyhow so we must return _URC_FATAL_PHASE2_ERROR... */
return _URC_FATAL_PHASE2_ERROR;
}
if (context->end_of_stack
|| unw_get_proc_info (&context->cursor, &pi) < 0)
return _URC_FATAL_PHASE2_ERROR;
personality = (_Unwind_Personality_Fn) (uintptr_t) pi.handler;
if (personality)
{
if (!stop)
{
if (unw_get_reg (&context->cursor, UNW_REG_IP, &ip) < 0)
return _URC_FATAL_PHASE2_ERROR;
if ((unsigned long) stop_parameter == ip)
actions |= _UA_HANDLER_FRAME;
}
reason = (*personality) (_U_VERSION, actions, exception_class,
exception_object, context);
if (reason != _URC_CONTINUE_UNWIND)
{
if (reason == _URC_INSTALL_CONTEXT)
{
/* we may regain control via _Unwind_Resume() */
unw_resume (&context->cursor);
abort ();
}
else
return _URC_FATAL_PHASE2_ERROR;
}
if (actions & _UA_HANDLER_FRAME)
/* The personality routine for the handler-frame changed
it's mind; that's a no-no... */
abort ();
}
}
return _URC_FATAL_PHASE2_ERROR; /* shouldn't be reached */
}
#endif /* unwind_internal_h */
| yaozongyou/common | third_party/libunwind/src/unwind/unwind-internal.h | C | mit | 4,465 | [
30522,
1013,
1008,
5622,
8569,
2078,
11101,
1011,
1037,
4132,
1011,
2981,
4895,
11101,
3075,
9385,
1006,
1039,
1007,
2494,
1010,
2384,
2002,
13668,
6582,
1011,
24100,
2522,
5201,
2011,
2585,
9587,
11711,
2121,
1011,
9745,
1026,
2585,
2213,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Begonia trapa var. pilosa L.B.Sm. & Wassh. VARIETY
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | mdoering/backbone | life/Plantae/Magnoliophyta/Magnoliopsida/Cucurbitales/Begoniaceae/Begonia/Begonia trapa/Begonia trapa pilosa/README.md | Markdown | apache-2.0 | 192 | [
30522,
1001,
11693,
12488,
8132,
2050,
13075,
1012,
14255,
10483,
2050,
1048,
1012,
1038,
1012,
15488,
1012,
1004,
2001,
4095,
1012,
3528,
1001,
1001,
1001,
1001,
3570,
3970,
1001,
1001,
1001,
1001,
2429,
2000,
2248,
3269,
3415,
5950,
1001,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* 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. */
/* -------------------------------------------------------------------------- */
#ifndef VIRTUAL_MACHINE_MANAGER_DRIVER_H_
#define VIRTUAL_MACHINE_MANAGER_DRIVER_H_
#include <map>
#include <string>
#include <sstream>
#include "Mad.h"
#include "VirtualMachinePool.h"
using namespace std;
/**
* VirtualMachineManagerDriver provides a base class to implement VM Manager
* Drivers. This class implements the protocol and recover functions
* from the Mad interface. Classes derived from the VirtualMachineManagerDriver
* must implement the deployment function to generate specific VM
* deployment information for the unerlying MAD.
*/
class VirtualMachineManagerDriver : public Mad
{
public:
VirtualMachineManagerDriver(
int userid,
const map<string,string>& attrs,
bool sudo,
VirtualMachinePool * pool);
virtual ~VirtualMachineManagerDriver(){};
/**
* Implements the VM Manager driver protocol.
* @param message the string read from the driver
*/
void protocol(
string& message);
/**
* TODO: What do we need here? just poll the active VMs to recover
* connections? Or an specific recover action from the MAD?
*/
void recover();
/**
* Generates a driver-specific deployment file:
* @param vm pointer to a virtual machine
* @param file_name to generate the deployment description
* @return 0 on success
*/
virtual int deployment_description(
const VirtualMachine * vm,
const string& file_name) const = 0;
/**
* Updates the VM with the information gathered by the drivers
*
* @param id VM id
* @param monitor_str String returned by the poll driver call
*/
static void process_poll(int id, const string &monitor_str);
/**
* Updates the VM with the information gathered by the drivers
*
* @param vm VM to update, must be locked
* @param monitor_str String returned by the poll driver call
*/
static void process_poll(VirtualMachine* vm, const string &monitor_str);
protected:
/**
* Gets a configuration attr from driver configuration file (single
* version)
* @param name of config attribute
* @param value of the attribute
*/
void get_default(
const char * name,
string& value) const
{
string sn = name;
driver_conf.get(sn,value);
}
/**
* Gets a configuration attr from driver configuration file (vector
* version)
* @param name of config vector attribute for the domain
* @param vname of the attribute
* @param value of the attribute
*/
void get_default(
const char * name,
const char * vname,
string& value) const;
/**
* Gets a configuration attr from driver configuration file (vector
* version)
* @param name of config vector attribute for the domain
* @param vname of the attribute
* @param value of the attribute
*
* @return true if the attribute was found
*/
bool get_default(
const char * name,
const char * vname,
bool& value) const;
private:
/**
* Configuration file for the driver
*/
Template driver_conf;
/**
* Pointer to the Virtual Machine Pool, to access VMs
*/
VirtualMachinePool * vmpool;
friend class VirtualMachineManager;
/**
* Sends a deploy request to the MAD: "DEPLOY ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void deploy (
const int oid,
const string& drv_msg) const
{
write_drv("DEPLOY", oid, drv_msg);
}
/**
* Sends a shutdown request to the MAD: "SHUTDOWN ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void shutdown (
const int oid,
const string& drv_msg) const
{
write_drv("SHUTDOWN", oid, drv_msg);
}
/**
* Sends a reset request to the MAD: "RESET ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void reset (
const int oid,
const string& drv_msg) const
{
write_drv("RESET", oid, drv_msg);
}
/**
* Sends a reboot request to the MAD: "REBOOT ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void reboot (
const int oid,
const string& drv_msg) const
{
write_drv("REBOOT", oid, drv_msg);
}
/**
* Sends a cancel request to the MAD: "CANCEL ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void cancel (
const int oid,
const string& drv_msg) const
{
write_drv("CANCEL", oid, drv_msg);
}
/**
* Sends a cleanup request to the MAD: "CLEANUP ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void cleanup (
const int oid,
const string& drv_msg) const
{
write_drv("CLEANUP", oid, drv_msg);
}
/**
* Sends a checkpoint request to the MAD: "CHECKPOINT ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void checkpoint (
const int oid,
const string& drv_msg) const
{
write_drv("CHECKPOINT", oid, drv_msg);
}
/**
* Sends a save request to the MAD: "SAVE ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void save (
const int oid,
const string& drv_msg) const
{
write_drv("SAVE", oid, drv_msg);
}
/**
* Sends a save request to the MAD: "RESTORE ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void restore (
const int oid,
const string& drv_msg) const
{
write_drv("RESTORE", oid, drv_msg);
}
/**
* Sends a migrate request to the MAD: "MIGRATE ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void migrate (
const int oid,
const string& drv_msg) const
{
write_drv("MIGRATE", oid, drv_msg);
}
/**
* Sends a poll request to the MAD: "POLL ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void poll (
const int oid,
const string& drv_msg) const
{
write_drv("POLL", oid, drv_msg);
}
/**
* Sends an attach request to the MAD: "ATTACHDISK ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void attach (
const int oid,
const string& drv_msg) const
{
write_drv("ATTACHDISK", oid, drv_msg);
}
/**
* Sends a detach request to the MAD: "DETACHDISK ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void detach (
const int oid,
const string& drv_msg) const
{
write_drv("DETACHDISK", oid, drv_msg);
}
/**
* Sends an attach NIC request to the MAD: "ATTACHNIC ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void attach_nic (
const int oid,
const string& drv_msg) const
{
write_drv("ATTACHNIC", oid, drv_msg);
}
/**
* Sends a detach request to the MAD: "DETACHNIC ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void detach_nic (
const int oid,
const string& drv_msg) const
{
write_drv("DETACHNIC", oid, drv_msg);
}
/**
* Sends a snapshot create request to the MAD:
* "SNAPSHOTCREATE ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void snapshot_create (
const int oid,
const string& drv_msg) const
{
write_drv("SNAPSHOTCREATE", oid, drv_msg);
}
/**
* Sends a snapshot revert request to the MAD:
* "SNAPSHOTREVERT ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void snapshot_revert (
const int oid,
const string& drv_msg) const
{
write_drv("SNAPSHOTREVERT", oid, drv_msg);
}
/**
* Sends a snapshot delete request to the MAD:
* "SNAPSHOTDELETE ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void snapshot_delete (
const int oid,
const string& drv_msg) const
{
write_drv("SNAPSHOTDELETE", oid, drv_msg);
}
/**
* Gets VM information from the driver answer
* @param monitor_str from the driver
* @param memory Kilobytes used by the VM (total)
* @param cpu used by the VM (rate)
* @param net_tx transmitted bytes (total)
* @param net_rx received bytes (total)
* @param state of the vm
* @param custom monitor information
*/
static int parse_vm_info(
const string& monitor_str,
int &cpu,
int &memory,
long long &net_tx,
long long &net_rx,
char &state,
map<string,string> &custom);
/**
*
*/
void write_drv(const char * aname, const int oid, const string& msg) const
{
ostringstream os;
os << aname << " " << oid << " " << msg << endl;
write(os);
}
};
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
#endif /*VIRTUAL_MACHINE_MANAGER_DRIVER_H_*/
| gargamelcat/ONE4 | include/VirtualMachineManagerDriver.h | C | apache-2.0 | 11,752 | [
30522,
1013,
1008,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
{if $options!=''}
<div class="attributes clearfix">
<dl>
{foreach name=outer item=options_data from=$options}
{if $options_data.DATA || $GM_HIDE_OUT_OF_STOCK == 'false'}
<dt>{$options_data.NAME}:</dt>
<dd>
<select class="input-select{if $PRICE_STATUS != 1} gm_attr_calc_input{/if}" name="id[{$options_data.ID}]">
{foreach key=key_data item=item_data from=$options_data.DATA}
<option value="{$item_data.ID}" title="{$item_data.TEXT|replace:'"':'"'} {if $item_data.PRICE}{$item_data.PREFIX} {$item_data.PRICE}{/if}{if $GM_SHOW_STOCK == 'true' && $options_data.NAME != 'downloads'} {$GM_STOCK_TEXT_BEFORE|replace:'"':'"'}{$item_data.GM_STOCK}{$GM_STOCK_TEXT_AFTER|replace:'"':'"'}{/if}" {if !$chk} selected="selected" {$chk = true}{/if}>{$item_data.TEXT} {if $item_data.PRICE}{$item_data.PREFIX} {$item_data.PRICE}{/if}{if $GM_SHOW_STOCK == 'true' && $options_data.NAME != 'downloads'} {$GM_STOCK_TEXT_BEFORE}{$item_data.GM_STOCK}{$GM_STOCK_TEXT_AFTER}{/if}</option>
{/foreach}
</select>
{$chk = false}
</dd>
{/if}
{/foreach}
</dl>
</div>
{/if}
| khadim-raath/gambioTest | templates/EyeCandy/module/product_options/product_options_dropdown.html | HTML | gpl-2.0 | 1,150 | [
30522,
1063,
2065,
1002,
7047,
999,
1027,
1005,
1005,
1065,
1026,
4487,
2615,
2465,
1027,
1000,
12332,
3154,
8873,
2595,
1000,
1028,
1026,
21469,
1028,
1063,
18921,
6776,
2171,
1027,
6058,
8875,
1027,
7047,
1035,
2951,
2013,
1027,
1002,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.