hexsha
stringlengths 40
40
| size
int64 5
1.05M
| ext
stringclasses 98
values | lang
stringclasses 21
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
118
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
118
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
int64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
135
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.05M
| avg_line_length
float64 1
1.03M
| max_line_length
int64 2
1.03M
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ba0d52b70dc361111fbfa6bb5d4c3a2ac4aa941
| 2,275
|
lua
|
Lua
|
src/internal.lua
|
NotReux/UpsideEngine
|
321bb75daf29965d45b3d9e33ae3b1e31a647a05
|
[
"Apache-2.0"
] | 18
|
2021-06-04T20:19:34.000Z
|
2021-12-12T01:23:43.000Z
|
src/internal.lua
|
NotReux/UpsideEngine
|
321bb75daf29965d45b3d9e33ae3b1e31a647a05
|
[
"Apache-2.0"
] | null | null | null |
src/internal.lua
|
NotReux/UpsideEngine
|
321bb75daf29965d45b3d9e33ae3b1e31a647a05
|
[
"Apache-2.0"
] | null | null | null |
local internal, data = setmetatable({}, {}), require(script.Parent:WaitForChild("data"));
local function getAxis(c1, c2)
local axis = {};
axis[1] = (c1[2] - c1[1]).Unit;
axis[2] = (c1[4] - c1[1]).Unit;
axis[3] = (c2[2] - c2[1]).Unit;
axis[4] = (c2[4] - c2[1]).Unit;
return axis;
end
local function getCorners(object)
local corners, rot, ap, as = {}, math.rad(object.rotation),
object.absolutePosition, object.absoluteSize;
local center, wc = object.absolutePosition + object.absoluteSize/2, {
Vector2.new(ap.X, ap.Y);
Vector2.new(ap.X + as.X, ap.Y);
Vector2.new(ap.X + as.X, ap.Y + as.Y);
Vector2.new(ap.X, ap.Y + as.Y);
};
for i, corner in ipairs(wc) do
corners[i] = Vector2.new(
center.X + (corner.X - center.X) * math.cos(rot) - (corner.Y - center.Y) * math.sin(rot),
center.Y + (corner.X - center.X) * math.sin(rot) + (corner.Y - center.Y) * math.cos(rot)
);
end
return corners;
end
function internal.updateSpace(this)
for _, meta in pairs(data.space) do
if meta.canCollide and meta.loaded and this.index ~= meta.index then
local c1, c2, collision = getCorners(this), getCorners(meta), true;
local axis, mtvs = getAxis(c1, c2), {};
for i = 1, #axis do
local s1, s2 = {}, {};
for n = 1, 4 do
table.insert(s1, axis[i]:Dot(c1[n]));
table.insert(s2, axis[i]:Dot(c2[n]));
end
local s1max, s1min = math.max(unpack(s1)), math.min(unpack(s1));
local s2max, s2min = math.max(unpack(s2)), math.min(unpack(s2));
if s2min > s1max or s2max < s1min then collision = false; break; end;
table.insert(mtvs, axis[i] * (s1max > s2max and -(s2max - s1min) or (s1max - s1min)))
end
table.sort(mtvs, function(a, b) return a.magnitude < b.magnitude end)
if collision and not this.collisions[meta.index] then
this:fire("collision", meta, mtvs[1]);
meta:fire("collision", this, mtvs[1]);
meta.collisions[this.index] = this;
this.collisions[meta.index] = meta;
elseif not collision and this.collisions[meta.index] then
this:fire("collisionEnded", meta);
meta:fire("collisionEnded", this);
meta.collisions[this.index] = nil;
this.collisions[meta.index] = nil;
end
end
end
end
return internal;
| 22.524752
| 92
| 0.624176
|
0521a19a8a4f54c7d2e85aca319dab336d8499fb
| 67
|
css
|
CSS
|
static/style.css
|
arshiashafiei/TODOlist
|
94df8e5b3ecd542a5e0e54931b9d0d39e637d614
|
[
"MIT"
] | null | null | null |
static/style.css
|
arshiashafiei/TODOlist
|
94df8e5b3ecd542a5e0e54931b9d0d39e637d614
|
[
"MIT"
] | null | null | null |
static/style.css
|
arshiashafiei/TODOlist
|
94df8e5b3ecd542a5e0e54931b9d0d39e637d614
|
[
"MIT"
] | null | null | null |
body {
font-size: 20px;
}
.ml-10 {
margin-left: 40px;
}
| 6.7
| 22
| 0.507463
|
03296d6b233be5d101f66e1271b75d41583260fc
| 899
|
rb
|
Ruby
|
app/controllers/concerns/product_analytics_tracking.rb
|
BearerPipelineTest/gitlabhq
|
55e4390933a4e16f8936604d763a6353f088c4c1
|
[
"MIT"
] | null | null | null |
app/controllers/concerns/product_analytics_tracking.rb
|
BearerPipelineTest/gitlabhq
|
55e4390933a4e16f8936604d763a6353f088c4c1
|
[
"MIT"
] | null | null | null |
app/controllers/concerns/product_analytics_tracking.rb
|
BearerPipelineTest/gitlabhq
|
55e4390933a4e16f8936604d763a6353f088c4c1
|
[
"MIT"
] | null | null | null |
# frozen_string_literal: true
module ProductAnalyticsTracking
include Gitlab::Tracking::Helpers
include RedisTracking
extend ActiveSupport::Concern
class_methods do
def track_event(*controller_actions, name:, conditions: nil, destinations: [:redis_hll], &block)
custom_conditions = [:trackable_html_request?, *conditions]
after_action only: controller_actions, if: custom_conditions do
route_events_to(destinations, name, &block)
end
end
end
private
def route_events_to(destinations, name, &block)
track_unique_redis_hll_event(name, &block) if destinations.include?(:redis_hll)
if destinations.include?(:snowplow) && Feature.enabled?(:route_hll_to_snowplow, tracking_namespace_source, default_enabled: :yaml)
Gitlab::Tracking.event(self.class.to_s, name, namespace: tracking_namespace_source, user: current_user)
end
end
end
| 32.107143
| 134
| 0.760845
|
0af2036ec019eef31e385efb40470faf2b732c17
| 27,068
|
cs
|
C#
|
Core/Services/DishService.cs
|
livingston12/Restaurant-system-Api
|
a5608df9ed08fb418b5f89215a7fd8735f07012a
|
[
"MIT"
] | null | null | null |
Core/Services/DishService.cs
|
livingston12/Restaurant-system-Api
|
a5608df9ed08fb418b5f89215a7fd8735f07012a
|
[
"MIT"
] | null | null | null |
Core/Services/DishService.cs
|
livingston12/Restaurant-system-Api
|
a5608df9ed08fb418b5f89215a7fd8735f07012a
|
[
"MIT"
] | null | null | null |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Pandora.Core.Extensions;
using Pandora.Core.Interfaces;
using Pandora.Core.Migrations;
using Pandora.Core.Models;
using Pandora.Core.Models.Entities;
using Pandora.Core.Models.Requests;
using Pandora.Core.Models.Responses;
using Pandora.Core.Models.Results;
using Pandora.Core.Utils;
using Pandora.Core.ViewModels;
namespace Pandora.Services
{
public class DishService : PandoraService, IDishService
{
public DishService(PandoraDbContext context)
: base(context)
{
}
public async Task<Response<DishViewModel>> GetAsync(DishRequest filter)
{
Check.NotNull(filter, nameof(filter));
Response<DishViewModel> result = null;
var query = GetQuery(filter);
var total = await query.CountAsync().ConfigureAwait(false);
if (total > 0)
{
var queryPaging = MapToViewModel(query)
.Skip(filter.SkipSize)
.Take(filter.PageSize);
result = new Response<DishViewModel>()
{
List = queryPaging,
PageIndex = filter.PageIndex,
PageSize = filter.PageSize,
Total = total
};
}
return result;
}
private IQueryable<DishesEntity> GetQuery(DishRequest filter)
{
var query = dbContext
.Dishes
.Include(a => a.Ingredients)
.Include(a => a.Category)
.AsQueryable();
query = ApplyFilters(query, filter);
query = query.OrderBy(filter.Sort);
return query;
}
private static IQueryable<DishesEntity> ApplyFilters(IQueryable<DishesEntity> query, DishRequest filter)
{
IQueryable<DishesEntity> filteredQuery = query;
filteredQuery = filteredQuery.Where(filter);
filteredQuery = ApplyDishIdsFilters(filteredQuery, filter.DishIds);
return filteredQuery;
}
private static IQueryable<DishesEntity> ApplyDishIdsFilters(IQueryable<DishesEntity> query, string DishIds)
{
if (DishIds.IsNotNullOrEmpty())
{
query = query.Where(p => DishIds.Contains(p.DishId.ToString()));
}
return query;
}
private static IEnumerable<DishViewModel> MapToViewModel(IEnumerable<DishesEntity> query)
{
return query
.Select(m => new DishViewModel
{
DishId = m.DishId,
Dish = m.Dish,
Description = m.Description,
ExpirationDate = m.ExpirationDate,
CategoryId = m.CategoryId,
Quantity = m.Quantity,
Price = m.Price,
NeedGarrison = m.NeedGarrison,
Category = m.Category,
Ingredients = m.Ingredients
.Select(x =>
new DishesDetailViewModel()
{
DishDetailId = x.DishDetailId,
})
});
}
public async Task<Response<DishViewModel>> GetSummaryAsync(int? restaurantId)
{
Check.NotNull(restaurantId, nameof(restaurantId));
Response<DishViewModel> result = null;
var menuIds = dbContext.Menus.Where(m => m.RestaurantId == restaurantId).Select(m => m.MenuId);
var categoryIds = dbContext.Categories.Where(m => menuIds.Contains(m.MenuId)).Select(m => m.CategoryId);
var query = dbContext
.Dishes
.Include(a => a.Ingredients)
.Where(m => categoryIds.Contains(m.CategoryId.Value))
.AsQueryable();
var total = await query.CountAsync().ConfigureAwait(false);
if (total > 0)
{
var queryPaging = MapToViewModel(query);
result = new Response<DishViewModel>()
{
List = queryPaging,
PageIndex = 1,
PageSize = total,
Total = total
};
}
return result;
}
public async Task<Result<DishResult>> CreateAsync(DishViewModelCreate request)
{
Check.NotNull(request, nameof(request));
var result = new Result<DishResult>();
result = await Create(request);
return result;
}
private async Task<Result<DishResult>> Create(DishViewModelCreate request)
{
Result<DishResult> result = new Result<DishResult>();
try
{
result = await SaveAsync(request).ConfigureAwait(false);
}
catch (TimeoutException)
{
result.StatusCode = "408";
result.Message = new StringBuilder("El servicio tardo mas de lo esperado en ejecutar.").ToString();
}
catch (ArgumentNullException)
{
result.StatusCode = "400";
result.Message = new StringBuilder("No se puede crear un plato en blanco.").ToString();
}
return result;
}
private async Task<Result<DishResult>> SaveAsync(DishViewModelCreate request)
{
Result<DishResult> result = new Result<DishResult>();
result.Data = new DishResult(new Dictionary<string, IEnumerable<string>>());
result.Data.Dish = new DishesEntity();
var dish = await DishExists(request);
if (dish != null)
{
result.Data.Dish = dish;
result.StatusCode = "204";
result.Message = "El plato ya existe";
}
else
{
var data = await SaveAsync(request, result.Data).ConfigureAwait(false);
result.Data = data.dataResult;
result.StatusCode = data.statusCode;
result.Message = data.message;
}
return result;
}
private async Task<DishesEntity> DishExists(DishViewModelCreate request)
{
var dish = request.Dish.Trim();
var result = await dbContext.Dishes
.Where(m => m.Dish == dish)
.FirstOrDefaultAsync();
return result;
}
private async Task<(DishResult dataResult, string statusCode, string message)> SaveAsync(DishViewModelCreate request, DishResult dishResult)
{
(DishResult dataResult, string statusCode, string message) result = (dishResult, "", "");
List<string> errors = await validateDish(request);
if (errors.Any())
{
result.dataResult.Errors.Add("1", errors);
result.statusCode = "400";
}
else
{
var tran = await dbContext.Database.BeginTransactionAsync();
try
{
DishesEntity dish = DishRequestToEntity(request);
dbContext.Add(dish);
await dbContext.SaveChangesAsync();
IEnumerable<DishesDetailEntity> dishDetail = DishDetailRequestToEntity(dish.DishId, request.Ingredients);
dbContext.AddRange(dishDetail);
await dbContext.SaveChangesAsync();
await tran.CommitAsync();
result.dataResult.Dish = dish;
result.statusCode = "201";
result.message = "Plato insertado correctamente";
}
catch (Exception ex)
{
await tran.RollbackAsync();
errors.Add($"Error al insertar plato: {ex.Message}");
result.dataResult.Errors.Add("1", errors);
result.statusCode = "400";
}
}
return result;
}
private async Task<List<string>> validateDish(DishViewModelCreate request)
{
List<string> errors = new List<string>();
bool categoryExist = await dbContext.Categories.Where(m => m.CategoryId == request.CategoryId).AnyAsync();
bool ingredientExit = request.Ingredients.Any();
if (request.Dish.Length == 0)
{
errors.Add("El <b>plato</b> es obligatorio");
}
if (request.Price <= 0)
{
errors.Add("El <b>precio</b> tiene que ser mayor que cero");
}
if (!categoryExist)
{
errors.Add("La <b>categoria</b> no existe");
}
if (request.NeedGarrison == true && ingredientExit)
{
errors.Add("El plato es una guarnicion no debe contener ingredientes");
}
else if (ingredientExit)
{
var errorDetail = await validateDishDetail(request.Ingredients);
if (errorDetail.Any())
{
errors.AddRange(errorDetail);
}
}
else if (request.Quantity <= 0)
{
errors.Add("La <b>cantidad</b> es obligatoria");
}
return errors;
}
private async Task<List<string>> validateDishDetail(IEnumerable<DishDetailViewModel> ingredients)
{
List<string> errors = new List<string>();
foreach (var ingre in ingredients)
{
bool existIngredient = await dbContext.Ingredients.Where(m => m.IngredientId == ingre.Ingredient.IngredientId).AnyAsync();
if (ingre.QuantityRequired <= 0)
{
errors.Add("La <b>cantidad</b> requerida debe ser <b>mayor</b> que <b>cero</b>");
}
if (ingre.Ingredient.Ingredient.Length <= 3)
{
errors.Add($"El <b>ingrediente (${ingre.Ingredient.Ingredient})</b> debe contener mas de 3 caracteres");
}
if (ingre.Ingredient.Price <= 0)
{
errors.Add("El <b>precio</b> del ingrediente debe ser <b>mayor</b> que <b>cero</b>");
}
if (!ingre.Ingredient.Quantity.HasValue)
{
errors.Add("La <b>existencia</b> del ingrediente es obligatoria");
}
else if (ingre.Ingredient.Quantity.Value <= 0)
{
errors.Add("La <b>existencia</b> debe ser <b>mayor</b> que <b>cero</b>");
}
if (!existIngredient)
{
errors.Add("El ingrediente no existe");
}
}
return errors;
}
private static DishesEntity DishRequestToEntity(DishViewModelCreate request)
{
DishesEntity result = new DishesEntity()
{
Dish = request.Dish,
Price = request.Price,
Quantity = request.Quantity,
Description = request.Description,
CategoryId = request.CategoryId,
ExpirationDate = request.ExpirationDate,
NeedGarrison = request.NeedGarrison
};
return result;
}
private static IEnumerable<DishesDetailEntity> DishDetailRequestToEntity(int dishId, IEnumerable<DishDetailViewModel> ingredients)
{
var result = ingredients.Select(m => new DishesDetailEntity()
{
DishId = dishId,
IngredientId = m.Ingredient.IngredientId,
Quantity = m.QuantityRequired
});
return result;
}
public async Task<IEnumerable<DishDetailViewModel>> GetDetailAsync(int dishId)
{
var result = await dbContext.DishDetails
.Include(m => m.Ingredient)
.Where(m => m.DishId == dishId)
.Select(m => new DishDetailViewModel()
{
DishDetailId = m.DishDetailId,
Ingredient = GetIngredientViewModel(m.Ingredient),
QuantityRequired = m.Quantity
})
.ToListAsync();
return result;
}
public static IngredientViewModel GetIngredientViewModel(IngredientEntity ingredient)
{
IngredientViewModel result = new IngredientViewModel();
if (ingredient != null)
{
result = new IngredientViewModel()
{
Ingredient = ingredient.Ingredient,
IngredientId = ingredient.IngredientId,
Price = ingredient.Price,
Quantity = ingredient.Quantity,
RestaurantId = ingredient.RestaurantId
};
}
return result;
}
public async Task<UpdateResult> PutAsync(DishUpdateViewModel request)
{
Check.NotNull(request, nameof(request));
UpdateResult result = await PutAsync(request.DishId, request);
return result;
}
private async Task<UpdateResult> PutAsync(int dishId, DishUpdateViewModel request)
{
UpdateResult result = new UpdateResult(new Dictionary<string, IEnumerable<string>>());
(string Index, List<string> errors) listErrors = await ValidateRequest(request);
var dish = await dbContext.Dishes.Where(x => x.DishId == dishId).FirstOrDefaultAsync().ConfigureAwait(false);
if (dish == null)
{
listErrors.errors.Add("El plato no existe");
}
if (listErrors.errors.Any())
{
result.Errors.Add(listErrors.Index, listErrors.errors);
result.StatusCode = "400";
}
else
{
try
{
dish.Dish = request.Dish;
dish.Price = request.Price;
dish.Quantity = request.Quantity;
dish.CategoryId = request.CategoryId;
dish.Description = request.Description;
dish.NeedGarrison = request.NeedGarrison;
dbContext.Entry(dish).State = EntityState.Modified;
await dbContext.SaveChangesAsync();
}
catch (System.Exception ex)
{
listErrors.errors = new List<string>();
listErrors.errors.Add($"Error inesperado: ${ex.Message}");
result.Errors.Add(listErrors.Index, listErrors.errors);
result.StatusCode = "400";
}
}
return result;
}
private async Task<(string Index, List<string> errors)> ValidateRequest(DishUpdateViewModel request)
{
(string Index, List<string> errors) results = ("1", new List<string>());
List<string> errors = new List<string>();
var category = await dbContext.Categories.Where(x => x.CategoryId == request.CategoryId).FirstOrDefaultAsync().ConfigureAwait(false);
if (request.Price <= 0)
{
errors.Add("El precio tiene que ser mayor que cero");
}
//if (request.Quantity <= 0)
//{
//errors.Add("La cantidad tiene que ser mayor que cero");
//}
if (category == null)
{
errors.Add("La categoria no existe");
}
results.errors = errors;
return results;
}
public async Task<UpdateResult> PutDetailAsync(DishDetailRequest request)
{
Check.NotNull(request, nameof(request));
UpdateResult result = await UpdateDetailAsync(request);
return result;
}
private async Task<UpdateResult> UpdateDetailAsync(DishDetailRequest request)
{
UpdateResult result = new UpdateResult(new Dictionary<string, IEnumerable<string>>());
(string Index, List<string> errors) listErrors = ValidateDetailRequest(request);
var dishDetail = await dbContext.DishDetails.Where(x => x.DishDetailId == request.DishDetailId).FirstOrDefaultAsync();
if (dishDetail == null)
{
listErrors.errors.Add("El detalle del plato no existe");
}
if (listErrors.errors.Any())
{
result.Errors.Add(listErrors.Index, listErrors.errors);
result.StatusCode = "400";
}
else
{
try
{
dishDetail.Quantity = request.QuantityRequired.Value;
dbContext.Entry(dishDetail).State = EntityState.Modified;
await dbContext.SaveChangesAsync();
}
catch (System.Exception ex)
{
listErrors.errors = new List<string>();
listErrors.errors.Add($"Error inesperado: ${ex.Message}");
result.Errors.Add(listErrors.Index, listErrors.errors);
result.StatusCode = "400";
}
}
return result;
}
private static (string Index, List<string> errors) ValidateDetailRequest(DishDetailRequest request)
{
(string Index, List<string> errors) results = ("1", new List<string>());
List<string> errors = new List<string>();
if (request.QuantityRequired <= 0)
{
errors.Add("La cantidad tiene que ser mayor que cero");
}
if (!request.QuantityRequired.HasValue)
{
errors.Add("La cantidad tiene que tener un valor");
}
results.errors = errors;
return results;
}
public async Task<UpdateResult> DeleteAsync(int dishId)
{
var dish = await dbContext.Dishes
.Where(x => x.DishId == dishId)
.FirstOrDefaultAsync()
.ConfigureAwait(false);
List<string> dataError = new List<string>();
UpdateResult result = new UpdateResult(new Dictionary<string, IEnumerable<string>>());
try
{
if (dish == null)
{
dataError.Add("El plato no existe");
}
else
{
RemoveDishRelation(dishId);
dbContext.Remove(dish);
await dbContext.SaveChangesAsync();
}
}
catch (Exception ex)
{
dataError.Add($"Error inesperado: {ex.Message}");
}
if (dataError.Any())
{
result.Errors.Add("1", dataError);
}
return result;
}
private void RemoveDishRelation(int dishId)
{
List<string> dataError = new List<string>();
try
{
var dishDetails = dbContext.DishDetails
.Where(m => m.DishId == dishId);
var orderIds = dbContext.OrdersDetail
.Where(m => m.DishId == dishId)
.Select(m => m.OrderId);
var orderDetails = dbContext.OrdersDetail.Where(m => orderIds.Contains(m.OrderId));
var orders = dbContext.Orders.Where(m => orderIds.Contains(m.OrderId));
var invoices = dbContext.Invoices.Where(m => orderIds.Contains(m.OrderId));
if (dishDetails.Any())
{
dbContext.RemoveRange(dishDetails);
}
if (orderDetails.Any())
{
dbContext.RemoveRange(orderDetails);
}
if (invoices.Any())
{
dbContext.RemoveRange(invoices);
}
if (orders.Any())
{
dbContext.RemoveRange(orders);
}
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
public async Task<UpdateResult> DeleteDetailAsync(int dishDetailId)
{
var dishDetail = await dbContext.DishDetails
.Where(x => x.DishDetailId == dishDetailId)
.FirstOrDefaultAsync();
List<string> dataError = new List<string>();
UpdateResult result = new UpdateResult(new Dictionary<string, IEnumerable<string>>());
if (dishDetail == null)
{
dataError.Add("El detalle del plato no existe");
}
else
{
dbContext.Remove(dishDetail);
await dbContext.SaveChangesAsync();
}
if (dataError.Any())
{
result.Errors.Add("1", dataError);
}
return result;
}
public async Task<Result<DishDetailResult>> CreateDetailAsync(DishDetailViewModelCreate request)
{
Check.NotNull(request, nameof(request));
var result = new Result<DishDetailResult>();
result = await CreateDetail(request);
return result;
}
private async Task<Result<DishDetailResult>> CreateDetail(DishDetailViewModelCreate request)
{
Result<DishDetailResult> result = new Result<DishDetailResult>();
try
{
result = await SaveDetailAsync(request).ConfigureAwait(false);
}
catch (TimeoutException)
{
result.StatusCode = "408";
result.Message = new StringBuilder("El servicio tardo mas de lo esperado en ejecutar.").ToString();
}
catch (ArgumentNullException)
{
result.StatusCode = "400";
result.Message = new StringBuilder("No se puede crear un plato en blanco.").ToString();
}
return result;
}
private async Task<Result<DishDetailResult>> SaveDetailAsync(DishDetailViewModelCreate request)
{
Result<DishDetailResult> result = new Result<DishDetailResult>();
result.Data = new DishDetailResult(new Dictionary<string, IEnumerable<string>>());
result.Data.Detail = new DishesDetailEntity();
var detail = await DishDetailExists(request);
if (detail != null)
{
result.Data.Detail = detail;
result.StatusCode = "204";
result.Message = "El ingrediente ya existe para este plato";
}
else
{
var data = await SaveDetailAsync(request, result.Data).ConfigureAwait(false);
result.Data = data.dataResult;
result.StatusCode = data.statusCode;
result.Message = data.message;
}
return result;
}
private async Task<DishesDetailEntity> DishDetailExists(DishDetailViewModelCreate request)
{
return await dbContext.DishDetails.Where(m => m.DishId == request.DishId && m.IngredientId == request.IngredientId).FirstOrDefaultAsync();
}
private async Task<(DishDetailResult dataResult, string statusCode, string message)> SaveDetailAsync(DishDetailViewModelCreate request, DishDetailResult data)
{
(DishDetailResult dataResult, string statusCode, string message) result = (data, "", "");
List<string> errors = await validateDetailAsync(request);
if (errors.Any())
{
result.dataResult.Errors.Add("1", errors);
result.statusCode = "400";
}
else
{
var tran = await dbContext.Database.BeginTransactionAsync();
try
{
DishesDetailEntity dishDetail = new DishesDetailEntity()
{
DishId = request.DishId,
IngredientId = request.IngredientId,
Quantity = request.QuantityRequired
};
dbContext.AddRange(dishDetail);
await dbContext.SaveChangesAsync();
await tran.CommitAsync();
result.dataResult.Detail = dishDetail;
result.statusCode = "201";
result.message = "ingrediente insertado correctamente";
}
catch (Exception ex)
{
await tran.RollbackAsync();
errors.Add($"Error al insertar ingrendiente: {ex.Message}");
result.dataResult.Errors.Add("1", errors);
result.statusCode = "400";
}
}
return result;
}
private async Task<List<string>> validateDetailAsync(DishDetailViewModelCreate request)
{
List<string> errors = new List<string>();
var isDuplicated = await dbContext.DishDetails.Where(m => m.DishId == request.DishId && m.IngredientId == request.IngredientId).AnyAsync();
var dishExists = await dbContext.Dishes.Where(m => m.DishId == request.DishId).AnyAsync();
var ingredientExits = await dbContext.Ingredients.Where(m => m.IngredientId == request.IngredientId).AnyAsync();
if (isDuplicated)
{
errors.Add("El <b>Ingrediente</b> ya existe asociado para este <b>plato</b>");
}
if (!dishExists)
{
errors.Add("Este <b>plato</b> no existe");
}
if (!ingredientExits)
{
errors.Add("Este <b>ingrediente</b> no existe");
}
if (request.QuantityRequired <= 0)
{
errors.Add("La <b>Cantidad requerida</b> tiene que ser <b>mayor</b> que <b>cero</b>");
}
return errors;
}
}
}
| 36.727273
| 166
| 0.512524
|
37fa2f22649296a0a2750cc664f6efc89fb1ab12
| 434
|
swift
|
Swift
|
DiscountWarehouse/Extensions/Array.swift
|
diogoAntunes/DiscountWarehouse
|
46e40337c9c69b19115ca0c2c92d4e4682a8abea
|
[
"MIT"
] | null | null | null |
DiscountWarehouse/Extensions/Array.swift
|
diogoAntunes/DiscountWarehouse
|
46e40337c9c69b19115ca0c2c92d4e4682a8abea
|
[
"MIT"
] | null | null | null |
DiscountWarehouse/Extensions/Array.swift
|
diogoAntunes/DiscountWarehouse
|
46e40337c9c69b19115ca0c2c92d4e4682a8abea
|
[
"MIT"
] | null | null | null |
//
// Array.swift
// DiscountWarehouse
//
// Created by Diogo Antunes on 08/08/16.
// Copyright © 2016 Diogo. All rights reserved.
//
import Foundation
extension Array where Element: Equatable {
func removeDuplicates() -> [Element] {
var result = [Element]()
for value in self {
if result.contains(value) == false { result.append(value) }
}
return result
}
}
| 20.666667
| 71
| 0.585253
|
caca0c3822f2373de42b8c7a90eb5a82b10bb03c
| 363
|
dart
|
Dart
|
flutter/example/lib/data/model/foodle.dart
|
fromerocbs/dynamic
|
67e0b1db737925cfd6dfea938c822e28aad01f5d
|
[
"MIT"
] | 35
|
2020-09-12T06:05:21.000Z
|
2021-08-12T08:03:20.000Z
|
flutter/example/lib/data/model/foodle.dart
|
fromerocbs/dynamic
|
67e0b1db737925cfd6dfea938c822e28aad01f5d
|
[
"MIT"
] | 9
|
2020-09-18T15:09:31.000Z
|
2021-08-09T12:01:56.000Z
|
flutter/example/lib/data/model/foodle.dart
|
softmarshmallow/dynamic
|
6a11143e4c9ae7c6c19e272c00406bed124445c3
|
[
"MIT"
] | 2
|
2021-08-02T08:27:20.000Z
|
2021-08-09T10:32:12.000Z
|
import 'package:dynamic/dynamic.dart' as rui;
class TruckItemLayout extends rui.XLayout<TruckItemBody>{
TruckItemLayout({this.body}): super(body: body);
TruckItemBody body;
}
class TruckItemBody {
TruckItemBody({this.title, this.description, this.image, this.onTap});
rui.XText title;
rui.XText description;
rui.XImage image;
rui.XAction onTap;
}
| 24.2
| 72
| 0.752066
|
e2e0e3cd2e67f98f91e6d6bf6a50b20a7611b481
| 24,407
|
py
|
Python
|
espnet2/gan_tts/jets/jets.py
|
imdanboy/espnet
|
5aa543a9ff6c329f5fc601f3aa053ffd4afb19ba
|
[
"Apache-2.0"
] | null | null | null |
espnet2/gan_tts/jets/jets.py
|
imdanboy/espnet
|
5aa543a9ff6c329f5fc601f3aa053ffd4afb19ba
|
[
"Apache-2.0"
] | null | null | null |
espnet2/gan_tts/jets/jets.py
|
imdanboy/espnet
|
5aa543a9ff6c329f5fc601f3aa053ffd4afb19ba
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2022 Dan Lim
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""JETS module for GAN-TTS task."""
from typing import Any
from typing import Dict
from typing import Optional
import torch
from typeguard import check_argument_types
from espnet2.gan_tts.abs_gan_tts import AbsGANTTS
from espnet2.gan_tts.hifigan import HiFiGANMultiPeriodDiscriminator
from espnet2.gan_tts.hifigan import HiFiGANMultiScaleDiscriminator
from espnet2.gan_tts.hifigan import HiFiGANMultiScaleMultiPeriodDiscriminator
from espnet2.gan_tts.hifigan import HiFiGANPeriodDiscriminator
from espnet2.gan_tts.hifigan import HiFiGANScaleDiscriminator
from espnet2.gan_tts.hifigan.loss import DiscriminatorAdversarialLoss
from espnet2.gan_tts.hifigan.loss import FeatureMatchLoss
from espnet2.gan_tts.hifigan.loss import GeneratorAdversarialLoss
from espnet2.gan_tts.hifigan.loss import MelSpectrogramLoss
from espnet2.gan_tts.jets.generator import JETSGenerator
from espnet2.gan_tts.jets.loss import ForwardSumLoss
from espnet2.gan_tts.jets.loss import VarianceLoss
from espnet2.gan_tts.utils import get_segments
from espnet2.torch_utils.device_funcs import force_gatherable
AVAILABLE_GENERATERS = {
"jets_generator": JETSGenerator,
}
AVAILABLE_DISCRIMINATORS = {
"hifigan_period_discriminator": HiFiGANPeriodDiscriminator,
"hifigan_scale_discriminator": HiFiGANScaleDiscriminator,
"hifigan_multi_period_discriminator": HiFiGANMultiPeriodDiscriminator,
"hifigan_multi_scale_discriminator": HiFiGANMultiScaleDiscriminator,
"hifigan_multi_scale_multi_period_discriminator": HiFiGANMultiScaleMultiPeriodDiscriminator, # NOQA
}
class JETS(AbsGANTTS):
"""JETS module (generator + discriminator).
This is a module of JETS described in `JETS: Jointly Training FastSpeech2
and HiFi-GAN for End to End Text to Speech'_.
.. _`JETS: Jointly Training FastSpeech2 and HiFi-GAN for End to End Text to Speech`
: https://arxiv.org/abs/2203.16852
"""
def __init__(
self,
# generator related
idim: int,
odim: int,
sampling_rate: int = 22050,
generator_type: str = "jets_generator",
generator_params: Dict[str, Any] = {
"adim": 256,
"aheads": 2,
"elayers": 4,
"eunits": 1024,
"dlayers": 4,
"dunits": 1024,
"positionwise_layer_type": "conv1d",
"positionwise_conv_kernel_size": 1,
"use_scaled_pos_enc": True,
"use_batch_norm": True,
"encoder_normalize_before": True,
"decoder_normalize_before": True,
"encoder_concat_after": False,
"decoder_concat_after": False,
"reduction_factor": 1,
"encoder_type": "transformer",
"decoder_type": "transformer",
"transformer_enc_dropout_rate": 0.1,
"transformer_enc_positional_dropout_rate": 0.1,
"transformer_enc_attn_dropout_rate": 0.1,
"transformer_dec_dropout_rate": 0.1,
"transformer_dec_positional_dropout_rate": 0.1,
"transformer_dec_attn_dropout_rate": 0.1,
"conformer_rel_pos_type": "latest",
"conformer_pos_enc_layer_type": "rel_pos",
"conformer_self_attn_layer_type": "rel_selfattn",
"conformer_activation_type": "swish",
"use_macaron_style_in_conformer": True,
"use_cnn_in_conformer": True,
"zero_triu": False,
"conformer_enc_kernel_size": 7,
"conformer_dec_kernel_size": 31,
"duration_predictor_layers": 2,
"duration_predictor_chans": 384,
"duration_predictor_kernel_size": 3,
"duration_predictor_dropout_rate": 0.1,
"energy_predictor_layers": 2,
"energy_predictor_chans": 384,
"energy_predictor_kernel_size": 3,
"energy_predictor_dropout": 0.5,
"energy_embed_kernel_size": 1,
"energy_embed_dropout": 0.5,
"stop_gradient_from_energy_predictor": False,
"pitch_predictor_layers": 5,
"pitch_predictor_chans": 384,
"pitch_predictor_kernel_size": 5,
"pitch_predictor_dropout": 0.5,
"pitch_embed_kernel_size": 1,
"pitch_embed_dropout": 0.5,
"stop_gradient_from_pitch_predictor": True,
"generator_out_channels": 1,
"generator_channels": 512,
"generator_global_channels": -1,
"generator_kernel_size": 7,
"generator_upsample_scales": [8, 8, 2, 2],
"generator_upsample_kernel_sizes": [16, 16, 4, 4],
"generator_resblock_kernel_sizes": [3, 7, 11],
"generator_resblock_dilations": [[1, 3, 5], [1, 3, 5], [1, 3, 5]],
"generator_use_additional_convs": True,
"generator_bias": True,
"generator_nonlinear_activation": "LeakyReLU",
"generator_nonlinear_activation_params": {"negative_slope": 0.1},
"generator_use_weight_norm": True,
"segment_size": 64,
"spks": -1,
"langs": -1,
"spk_embed_dim": None,
"spk_embed_integration_type": "add",
"use_gst": False,
"gst_tokens": 10,
"gst_heads": 4,
"gst_conv_layers": 6,
"gst_conv_chans_list": [32, 32, 64, 64, 128, 128],
"gst_conv_kernel_size": 3,
"gst_conv_stride": 2,
"gst_gru_layers": 1,
"gst_gru_units": 128,
"init_type": "xavier_uniform",
"init_enc_alpha": 1.0,
"init_dec_alpha": 1.0,
"use_masking": False,
"use_weighted_masking": False,
},
# discriminator related
discriminator_type: str = "hifigan_multi_scale_multi_period_discriminator",
discriminator_params: Dict[str, Any] = {
"scales": 1,
"scale_downsample_pooling": "AvgPool1d",
"scale_downsample_pooling_params": {
"kernel_size": 4,
"stride": 2,
"padding": 2,
},
"scale_discriminator_params": {
"in_channels": 1,
"out_channels": 1,
"kernel_sizes": [15, 41, 5, 3],
"channels": 128,
"max_downsample_channels": 1024,
"max_groups": 16,
"bias": True,
"downsample_scales": [2, 2, 4, 4, 1],
"nonlinear_activation": "LeakyReLU",
"nonlinear_activation_params": {"negative_slope": 0.1},
"use_weight_norm": True,
"use_spectral_norm": False,
},
"follow_official_norm": False,
"periods": [2, 3, 5, 7, 11],
"period_discriminator_params": {
"in_channels": 1,
"out_channels": 1,
"kernel_sizes": [5, 3],
"channels": 32,
"downsample_scales": [3, 3, 3, 3, 1],
"max_downsample_channels": 1024,
"bias": True,
"nonlinear_activation": "LeakyReLU",
"nonlinear_activation_params": {"negative_slope": 0.1},
"use_weight_norm": True,
"use_spectral_norm": False,
},
},
# loss related
generator_adv_loss_params: Dict[str, Any] = {
"average_by_discriminators": False,
"loss_type": "mse",
},
discriminator_adv_loss_params: Dict[str, Any] = {
"average_by_discriminators": False,
"loss_type": "mse",
},
feat_match_loss_params: Dict[str, Any] = {
"average_by_discriminators": False,
"average_by_layers": False,
"include_final_outputs": True,
},
mel_loss_params: Dict[str, Any] = {
"fs": 22050,
"n_fft": 1024,
"hop_length": 256,
"win_length": None,
"window": "hann",
"n_mels": 80,
"fmin": 0,
"fmax": None,
"log_base": None,
},
lambda_adv: float = 1.0,
lambda_mel: float = 45.0,
lambda_feat_match: float = 2.0,
lambda_var: float = 1.0,
lambda_align: float = 2.0,
cache_generator_outputs: bool = True,
):
"""Initialize JETS module.
Args:
idim (int): Input vocabrary size.
odim (int): Acoustic feature dimension. The actual output channels will
be 1 since JETS is the end-to-end text-to-wave model but for the
compatibility odim is used to indicate the acoustic feature dimension.
sampling_rate (int): Sampling rate, not used for the training but it will
be referred in saving waveform during the inference.
generator_type (str): Generator type.
generator_params (Dict[str, Any]): Parameter dict for generator.
discriminator_type (str): Discriminator type.
discriminator_params (Dict[str, Any]): Parameter dict for discriminator.
generator_adv_loss_params (Dict[str, Any]): Parameter dict for generator
adversarial loss.
discriminator_adv_loss_params (Dict[str, Any]): Parameter dict for
discriminator adversarial loss.
feat_match_loss_params (Dict[str, Any]): Parameter dict for feat match loss.
mel_loss_params (Dict[str, Any]): Parameter dict for mel loss.
lambda_adv (float): Loss scaling coefficient for adversarial loss.
lambda_mel (float): Loss scaling coefficient for mel spectrogram loss.
lambda_feat_match (float): Loss scaling coefficient for feat match loss.
lambda_var (float): Loss scaling coefficient for variance loss.
lambda_align (float): Loss scaling coefficient for alignment loss.
cache_generator_outputs (bool): Whether to cache generator outputs.
"""
assert check_argument_types()
super().__init__()
# define modules
generator_class = AVAILABLE_GENERATERS[generator_type]
generator_params.update(idim=idim, odim=odim)
self.generator = generator_class(
**generator_params,
)
discriminator_class = AVAILABLE_DISCRIMINATORS[discriminator_type]
self.discriminator = discriminator_class(
**discriminator_params,
)
self.generator_adv_loss = GeneratorAdversarialLoss(
**generator_adv_loss_params,
)
self.discriminator_adv_loss = DiscriminatorAdversarialLoss(
**discriminator_adv_loss_params,
)
self.feat_match_loss = FeatureMatchLoss(
**feat_match_loss_params,
)
self.mel_loss = MelSpectrogramLoss(
**mel_loss_params,
)
self.var_loss = VarianceLoss()
self.forwardsum_loss = ForwardSumLoss()
# coefficients
self.lambda_adv = lambda_adv
self.lambda_mel = lambda_mel
self.lambda_feat_match = lambda_feat_match
self.lambda_var = lambda_var
self.lambda_align = lambda_align
# cache
self.cache_generator_outputs = cache_generator_outputs
self._cache = None
# store sampling rate for saving wav file
# (not used for the training)
self.fs = sampling_rate
# store parameters for test compatibility
self.spks = self.generator.spks
self.langs = self.generator.langs
self.spk_embed_dim = self.generator.spk_embed_dim
@property
def require_raw_speech(self):
"""Return whether or not speech is required."""
return True
@property
def require_vocoder(self):
"""Return whether or not vocoder is required."""
return False
def forward(
self,
text: torch.Tensor,
text_lengths: torch.Tensor,
feats: torch.Tensor,
feats_lengths: torch.Tensor,
speech: torch.Tensor,
speech_lengths: torch.Tensor,
sids: Optional[torch.Tensor] = None,
spembs: Optional[torch.Tensor] = None,
lids: Optional[torch.Tensor] = None,
forward_generator: bool = True,
**kwargs,
) -> Dict[str, Any]:
"""Perform generator forward.
Args:
text (Tensor): Text index tensor (B, T_text).
text_lengths (Tensor): Text length tensor (B,).
feats (Tensor): Feature tensor (B, T_feats, aux_channels).
feats_lengths (Tensor): Feature length tensor (B,).
speech (Tensor): Speech waveform tensor (B, T_wav).
speech_lengths (Tensor): Speech length tensor (B,).
sids (Optional[Tensor]): Speaker index tensor (B,) or (B, 1).
spembs (Optional[Tensor]): Speaker embedding tensor (B, spk_embed_dim).
lids (Optional[Tensor]): Language index tensor (B,) or (B, 1).
forward_generator (bool): Whether to forward generator.
Returns:
Dict[str, Any]:
- loss (Tensor): Loss scalar tensor.
- stats (Dict[str, float]): Statistics to be monitored.
- weight (Tensor): Weight tensor to summarize losses.
- optim_idx (int): Optimizer index (0 for G and 1 for D).
"""
if forward_generator:
return self._forward_generator(
text=text,
text_lengths=text_lengths,
feats=feats,
feats_lengths=feats_lengths,
speech=speech,
speech_lengths=speech_lengths,
sids=sids,
spembs=spembs,
lids=lids,
**kwargs,
)
else:
return self._forward_discrminator(
text=text,
text_lengths=text_lengths,
feats=feats,
feats_lengths=feats_lengths,
speech=speech,
speech_lengths=speech_lengths,
sids=sids,
spembs=spembs,
lids=lids,
**kwargs,
)
def _forward_generator(
self,
text: torch.Tensor,
text_lengths: torch.Tensor,
feats: torch.Tensor,
feats_lengths: torch.Tensor,
speech: torch.Tensor,
speech_lengths: torch.Tensor,
sids: Optional[torch.Tensor] = None,
spembs: Optional[torch.Tensor] = None,
lids: Optional[torch.Tensor] = None,
**kwargs,
) -> Dict[str, Any]:
"""Perform generator forward.
Args:
text (Tensor): Text index tensor (B, T_text).
text_lengths (Tensor): Text length tensor (B,).
feats (Tensor): Feature tensor (B, T_feats, aux_channels).
feats_lengths (Tensor): Feature length tensor (B,).
speech (Tensor): Speech waveform tensor (B, T_wav).
speech_lengths (Tensor): Speech length tensor (B,).
sids (Optional[Tensor]): Speaker index tensor (B,) or (B, 1).
spembs (Optional[Tensor]): Speaker embedding tensor (B, spk_embed_dim).
lids (Optional[Tensor]): Language index tensor (B,) or (B, 1).
Returns:
Dict[str, Any]:
* loss (Tensor): Loss scalar tensor.
* stats (Dict[str, float]): Statistics to be monitored.
* weight (Tensor): Weight tensor to summarize losses.
* optim_idx (int): Optimizer index (0 for G and 1 for D).
"""
# setup
batch_size = text.size(0)
speech = speech.unsqueeze(1)
# calculate generator outputs
reuse_cache = True
if not self.cache_generator_outputs or self._cache is None:
reuse_cache = False
outs = self.generator(
text=text,
text_lengths=text_lengths,
feats=feats,
feats_lengths=feats_lengths,
sids=sids,
spembs=spembs,
lids=lids,
**kwargs,
)
else:
outs = self._cache
# store cache
if self.training and self.cache_generator_outputs and not reuse_cache:
self._cache = outs
# parse outputs
(
speech_hat_,
bin_loss,
log_p_attn,
start_idxs,
d_outs,
ds,
p_outs,
ps,
e_outs,
es,
) = outs
speech_ = get_segments(
x=speech,
start_idxs=start_idxs * self.generator.upsample_factor,
segment_size=self.generator.segment_size * self.generator.upsample_factor,
)
# calculate discriminator outputs
p_hat = self.discriminator(speech_hat_)
with torch.no_grad():
# do not store discriminator gradient in generator turn
p = self.discriminator(speech_)
# calculate losses
mel_loss = self.mel_loss(speech_hat_, speech_)
adv_loss = self.generator_adv_loss(p_hat)
feat_match_loss = self.feat_match_loss(p_hat, p)
dur_loss, pitch_loss, energy_loss = self.var_loss(
d_outs, ds, p_outs, ps, e_outs, es, text_lengths
)
forwardsum_loss = self.forwardsum_loss(log_p_attn, text_lengths, feats_lengths)
mel_loss = mel_loss * self.lambda_mel
adv_loss = adv_loss * self.lambda_adv
feat_match_loss = feat_match_loss * self.lambda_feat_match
g_loss = mel_loss + adv_loss + feat_match_loss
var_loss = (dur_loss + pitch_loss + energy_loss) * self.lambda_var
align_loss = (forwardsum_loss + bin_loss) * self.lambda_align
loss = g_loss + var_loss + align_loss
stats = dict(
generator_loss=loss.item(),
generator_g_loss=g_loss.item(),
generator_var_loss=var_loss.item(),
generator_align_loss=align_loss.item(),
generator_g_mel_loss=mel_loss.item(),
generator_g_adv_loss=adv_loss.item(),
generator_g_feat_match_loss=feat_match_loss.item(),
generator_var_dur_loss=dur_loss.item(),
generator_var_pitch_loss=pitch_loss.item(),
generator_var_energy_loss=energy_loss.item(),
generator_align_forwardsum_loss=forwardsum_loss.item(),
generator_align_bin_loss=bin_loss.item(),
)
loss, stats, weight = force_gatherable((loss, stats, batch_size), loss.device)
# reset cache
if reuse_cache or not self.training:
self._cache = None
return {
"loss": loss,
"stats": stats,
"weight": weight,
"optim_idx": 0, # needed for trainer
}
def _forward_discrminator(
self,
text: torch.Tensor,
text_lengths: torch.Tensor,
feats: torch.Tensor,
feats_lengths: torch.Tensor,
speech: torch.Tensor,
speech_lengths: torch.Tensor,
sids: Optional[torch.Tensor] = None,
spembs: Optional[torch.Tensor] = None,
lids: Optional[torch.Tensor] = None,
**kwargs,
) -> Dict[str, Any]:
"""Perform discriminator forward.
Args:
text (Tensor): Text index tensor (B, T_text).
text_lengths (Tensor): Text length tensor (B,).
feats (Tensor): Feature tensor (B, T_feats, aux_channels).
feats_lengths (Tensor): Feature length tensor (B,).
speech (Tensor): Speech waveform tensor (B, T_wav).
speech_lengths (Tensor): Speech length tensor (B,).
sids (Optional[Tensor]): Speaker index tensor (B,) or (B, 1).
spembs (Optional[Tensor]): Speaker embedding tensor (B, spk_embed_dim).
lids (Optional[Tensor]): Language index tensor (B,) or (B, 1).
Returns:
Dict[str, Any]:
* loss (Tensor): Loss scalar tensor.
* stats (Dict[str, float]): Statistics to be monitored.
* weight (Tensor): Weight tensor to summarize losses.
* optim_idx (int): Optimizer index (0 for G and 1 for D).
"""
# setup
batch_size = text.size(0)
speech = speech.unsqueeze(1)
# calculate generator outputs
reuse_cache = True
if not self.cache_generator_outputs or self._cache is None:
reuse_cache = False
outs = self.generator(
text=text,
text_lengths=text_lengths,
feats=feats,
feats_lengths=feats_lengths,
sids=sids,
spembs=spembs,
lids=lids,
**kwargs,
)
else:
outs = self._cache
# store cache
if self.cache_generator_outputs and not reuse_cache:
self._cache = outs
# parse outputs
speech_hat_, _, _, start_idxs, *_ = outs
speech_ = get_segments(
x=speech,
start_idxs=start_idxs * self.generator.upsample_factor,
segment_size=self.generator.segment_size * self.generator.upsample_factor,
)
# calculate discriminator outputs
p_hat = self.discriminator(speech_hat_.detach())
p = self.discriminator(speech_)
# calculate losses
real_loss, fake_loss = self.discriminator_adv_loss(p_hat, p)
loss = real_loss + fake_loss
stats = dict(
discriminator_loss=loss.item(),
discriminator_real_loss=real_loss.item(),
discriminator_fake_loss=fake_loss.item(),
)
loss, stats, weight = force_gatherable((loss, stats, batch_size), loss.device)
# reset cache
if reuse_cache or not self.training:
self._cache = None
return {
"loss": loss,
"stats": stats,
"weight": weight,
"optim_idx": 1, # needed for trainer
}
def inference(
self,
text: torch.Tensor,
feats: Optional[torch.Tensor] = None,
pitch: Optional[torch.Tensor] = None,
energy: Optional[torch.Tensor] = None,
use_teacher_forcing: bool = False,
**kwargs,
) -> Dict[str, torch.Tensor]:
"""Run inference.
Args:
text (Tensor): Input text index tensor (T_text,).
feats (Tensor): Feature tensor (T_feats, aux_channels).
pitch (Tensor): Pitch tensor (T_feats, 1).
energy (Tensor): Energy tensor (T_feats, 1).
use_teacher_forcing (bool): Whether to use teacher forcing.
Returns:
Dict[str, Tensor]:
* wav (Tensor): Generated waveform tensor (T_wav,).
* duration (Tensor): Predicted duration tensor (T_text,).
"""
# setup
text = text[None]
text_lengths = torch.tensor(
[text.size(1)],
dtype=torch.long,
device=text.device,
)
if "spembs" in kwargs:
kwargs["spembs"] = kwargs["spembs"][None]
# inference
if use_teacher_forcing:
assert feats is not None
feats = feats[None]
feats_lengths = torch.tensor(
[feats.size(1)],
dtype=torch.long,
device=feats.device,
)
assert pitch is not None
pitch = pitch[None]
assert energy is not None
energy = energy[None]
wav, dur = self.generator.inference(
text=text,
text_lengths=text_lengths,
feats=feats,
feats_lengths=feats_lengths,
pitch=pitch,
energy=energy,
use_teacher_forcing=use_teacher_forcing,
**kwargs,
)
else:
wav, dur = self.generator.inference(
text=text,
text_lengths=text_lengths,
**kwargs,
)
return dict(wav=wav.view(-1), duration=dur[0])
| 37.376723
| 104
| 0.578564
|
f6261d1897d3c4e2b3553ed526b581d863dec20b
| 1,628
|
cpp
|
C++
|
Algorithms/0040.Combination_Sum_II.cpp
|
metehkaya/LeetCode
|
52f4a1497758c6f996d515ced151e8783ae4d4d2
|
[
"MIT"
] | 2
|
2020-07-20T06:40:22.000Z
|
2021-11-20T01:23:26.000Z
|
Problems/LeetCode/Problems/0040.Combination_Sum_II.cpp
|
metehkaya/Algo-Archive
|
03b5fdcf06f84a03125c57762c36a4e03ca6e756
|
[
"MIT"
] | null | null | null |
Problems/LeetCode/Problems/0040.Combination_Sum_II.cpp
|
metehkaya/Algo-Archive
|
03b5fdcf06f84a03125c57762c36a4e03ca6e756
|
[
"MIT"
] | null | null | null |
#define fi first
#define se second
#define pb push_back
typedef pair<int,int> pi;
class Solution {
public:
int n,t;
vector<pi> ar;
bool dp[101][31];
vector<int> v[101][31];
vector<vector<int>> ans;
void f(int id , int k , vector<int>& curr) {
if(id == 0) {
vector<int> add;
for( int i = n-1 ; i >= 0 ; i-- )
for( int j = 0 ; j < curr[i] ; j++ )
add.pb(ar[n-1-i].fi);
ans.pb(add);
return;
}
int sz = v[id][k].size();
for( int i = 0 ; i < sz ; i++ ) {
int cnt = v[id][k][i];
int j = k - cnt*ar[id-1].fi;
curr.pb(cnt);
f(id-1,j,curr);
curr.pop_back();
}
}
vector<vector<int>> combinationSum2(vector<int>& arr, int t) {
this->t = t;
n = arr.size();
sort(arr.begin(),arr.end());
for( int i = 0 , j = 0 ; i < n ; i = j ) {
while(j < n && arr[i] == arr[j])
j++;
ar.pb(pi(arr[i],j-i));
}
n = ar.size();
dp[0][0] = true;
for( int i = 0 ; i < n ; i++ )
for( int j = 0 ; j <= t ; j++ )
if(dp[i][j]) {
int mx = min(ar[i].se,(t-j)/ar[i].fi);
for( int k = 0 ; k <= mx ; k++ ) {
int j2 = j + k*ar[i].fi;
v[i+1][j2].pb(k);
dp[i+1][j2] = true;
}
}
vector<int> curr;
if(dp[n][t])
f(n,t,curr);
return ans;
}
};
| 28.561404
| 66
| 0.355651
|
4016cbe08e142cd86bd8b88be8d0fb31bcf3096b
| 97
|
rb
|
Ruby
|
app/models/filter.rb
|
newsdict/newsdict.io
|
fd3707b3e5d39d93e786220f6e318ea72b984e95
|
[
"MIT"
] | null | null | null |
app/models/filter.rb
|
newsdict/newsdict.io
|
fd3707b3e5d39d93e786220f6e318ea72b984e95
|
[
"MIT"
] | 93
|
2019-10-04T10:58:37.000Z
|
2021-12-06T20:20:31.000Z
|
app/models/filter.rb
|
newsdict/newsdict.io
|
fd3707b3e5d39d93e786220f6e318ea72b984e95
|
[
"MIT"
] | 1
|
2019-09-15T00:22:31.000Z
|
2019-09-15T00:22:31.000Z
|
class Filter < ApplicationRecord
include Mongoid::Document
include Mongoid::Timestamps
end
| 24.25
| 33
| 0.793814
|
0524b5ce48674e8e94b48b2794b62d0b08080de4
| 14,503
|
sql
|
SQL
|
inst/sql/sql server/100.Indexing.sql
|
Jimyung6642/ETL---Korean-NSC
|
a4608c52c0814ad23cd7cb704c5a32df62be3065
|
[
"Apache-2.0"
] | null | null | null |
inst/sql/sql server/100.Indexing.sql
|
Jimyung6642/ETL---Korean-NSC
|
a4608c52c0814ad23cd7cb704c5a32df62be3065
|
[
"Apache-2.0"
] | null | null | null |
inst/sql/sql server/100.Indexing.sql
|
Jimyung6642/ETL---Korean-NSC
|
a4608c52c0814ad23cd7cb704c5a32df62be3065
|
[
"Apache-2.0"
] | null | null | null |
/*********************************************************************************
# Copyright 2014 Observational Health Data Sciences and Informatics
#
#
# 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.
********************************************************************************/
/************************
####### # # ####### ###### ##### ###### # # ####### ###
# # ## ## # # # # # # # # ## ## # # # # # # ##### ###### # # ###### ####
# # # # # # # # # # # # # # # # # # # # # ## # # # # # # # #
# # # # # # # ###### # # # # # # # # ###### # # # # # # ##### ## ##### ####
# # # # # # # # # # # # # # # # # # # # # # ## # #
# # # # # # # # # # # # # # # # # # # ## # # # # # # # #
####### # # ####### # ##### ###### # # ## ##### ### # # ##### ###### # # ###### ####
script to create the required indexes within OMOP common data model, version 5.0 for SQL Server database
last revised: 12 Oct 2014
author: Patrick Ryan
description: These indices are considered a minimal requirement to ensure adequate performance of analyses.
*************************/
/*Modified for Korean OHDSI from Patrick Ryan
last revised: 03 Nov 2016
author: jung hyun byun
*/
/****************************************************************************************************************************************
***************************************************** Cluster Index ******************************************************************
*****************************************************************************************************************************************
**********************************/
/************************
Standardized vocabulary
************************/
CREATE UNIQUE CLUSTERED INDEX idx_concept_concept_id ON @ResultDatabaseSchema.concept (concept_id ASC);
CREATE INDEX idx_concept_code ON @ResultDatabaseSchema.concept (concept_code ASC);
CREATE INDEX idx_concept_vocabluary_id ON @ResultDatabaseSchema.concept (vocabulary_id ASC);
CREATE INDEX idx_concept_domain_id ON @ResultDatabaseSchema.concept (domain_id ASC);
CREATE INDEX idx_concept_class_id ON @ResultDatabaseSchema.concept (concept_class_id ASC);
CREATE UNIQUE CLUSTERED INDEX idx_vocabulary_vocabulary_id ON @ResultDatabaseSchema.vocabulary (vocabulary_id ASC);
--CREATE UNIQUE CLUSTERED INDEX idx_domain_domain_id ON domain (domain_id ASC);
CREATE UNIQUE CLUSTERED INDEX idx_concept_class_class_id ON @ResultDatabaseSchema.concept_class (concept_class_id ASC);
CREATE INDEX idx_concept_relationship_id_1 ON @ResultDatabaseSchema.concept_relationship (concept_id_1 ASC);
CREATE INDEX idx_concept_relationship_id_2 ON @ResultDatabaseSchema.concept_relationship (concept_id_2 ASC);
CREATE INDEX idx_concept_relationship_id_3 ON @ResultDatabaseSchema.concept_relationship (relationship_id ASC);
CREATE UNIQUE CLUSTERED INDEX idx_relationship_rel_id ON @ResultDatabaseSchema.relationship (relationship_id ASC);
CREATE CLUSTERED INDEX idx_concept_synonym_id ON @ResultDatabaseSchema.concept_synonym (concept_id ASC);
CREATE CLUSTERED INDEX idx_concept_ancestor_id_1 ON @ResultDatabaseSchema.concept_ancestor (ancestor_concept_id ASC);
CREATE INDEX idx_concept_ancestor_id_2 ON @ResultDatabaseSchema.concept_ancestor (descendant_concept_id ASC);
--CREATE CLUSTERED INDEX idx_source_to_concept_map_id_3 ON source_to_concept_map (target_concept_id ASC);
--CREATE INDEX idx_source_to_concept_map_id_1 ON source_to_concept_map (source_vocabulary_id ASC);
--CREATE INDEX idx_source_to_concept_map_id_2 ON source_to_concept_map (target_vocabulary_id ASC);
--CREATE INDEX idx_source_to_concept_map_code ON source_to_concept_map (source_code ASC);
CREATE CLUSTERED INDEX idx_drug_strength_id_1 ON @ResultDatabaseSchema.drug_strength (drug_concept_id ASC);
CREATE INDEX idx_drug_strength_id_2 ON @ResultDatabaseSchema.drug_strength (ingredient_concept_id ASC);
--CREATE CLUSTERED INDEX idx_cohort_definition_id ON cohort_definition (cohort_definition_id ASC);
--CREATE CLUSTERED INDEX idx_attribute_definition_id ON attribute_definition (attribute_definition_id ASC);
/************************
Standardized clinical data
************************/
CREATE UNIQUE CLUSTERED INDEX idx_person_id ON @ResultDatabaseSchema.person (person_id ASC);
CREATE CLUSTERED INDEX idx_observation_period_id ON @ResultDatabaseSchema.observation_period (person_id ASC);
CREATE CLUSTERED INDEX idx_specimen_person_id ON @ResultDatabaseSchema.specimen (person_id ASC);
CREATE INDEX idx_specimen_concept_id ON @ResultDatabaseSchema.specimen (specimen_concept_id ASC);
CREATE CLUSTERED INDEX idx_death_person_id ON @ResultDatabaseSchema.death (person_id ASC);
CREATE CLUSTERED INDEX idx_visit_person_id ON @ResultDatabaseSchema.visit_occurrence (person_id ASC);
CREATE INDEX idx_visit_concept_id ON @ResultDatabaseSchema.visit_occurrence (visit_concept_id ASC);
CREATE CLUSTERED INDEX idx_procedure_person_id ON @ResultDatabaseSchema.procedure_occurrence (person_id ASC);
CREATE INDEX idx_procedure_concept_id ON @ResultDatabaseSchema.procedure_occurrence (procedure_concept_id ASC);
CREATE INDEX idx_procedure_visit_id ON @ResultDatabaseSchema.procedure_occurrence (visit_occurrence_id ASC);
CREATE CLUSTERED INDEX idx_drug_person_id ON @ResultDatabaseSchema.drug_exposure (person_id ASC);
CREATE INDEX idx_drug_concept_id ON @ResultDatabaseSchema.drug_exposure (drug_concept_id ASC);
CREATE INDEX idx_drug_visit_id ON @ResultDatabaseSchema.drug_exposure (visit_occurrence_id ASC);
CREATE CLUSTERED INDEX idx_device_person_id ON @ResultDatabaseSchema.device_exposure (person_id ASC);
CREATE INDEX idx_device_concept_id ON @ResultDatabaseSchema.device_exposure (device_concept_id ASC);
CREATE INDEX idx_device_visit_id ON @ResultDatabaseSchema.device_exposure (visit_occurrence_id ASC);
CREATE CLUSTERED INDEX idx_condition_person_id ON @ResultDatabaseSchema.condition_occurrence (person_id ASC);
CREATE INDEX idx_condition_concept_id ON @ResultDatabaseSchema.condition_occurrence (condition_concept_id ASC);
CREATE INDEX idx_condition_visit_id ON @ResultDatabaseSchema.condition_occurrence (visit_occurrence_id ASC);
CREATE CLUSTERED INDEX idx_measurement_person_id ON @ResultDatabaseSchema.measurement (person_id ASC);
CREATE INDEX idx_measurement_concept_id ON @ResultDatabaseSchema.measurement (measurement_concept_id ASC);
CREATE INDEX idx_measurement_visit_id ON @ResultDatabaseSchema.measurement (visit_occurrence_id ASC);
CREATE CLUSTERED INDEX idx_note_person_id ON @ResultDatabaseSchema.note (person_id ASC);
CREATE INDEX idx_note_concept_id ON @ResultDatabaseSchema.note (note_type_concept_id ASC);
CREATE INDEX idx_note_visit_id ON @ResultDatabaseSchema.note (visit_occurrence_id ASC);
CREATE CLUSTERED INDEX idx_observation_person_id ON @ResultDatabaseSchema.observation (person_id ASC);
CREATE INDEX idx_observation_concept_id ON @ResultDatabaseSchema.observation (observation_concept_id ASC);
CREATE INDEX idx_observation_visit_id ON @ResultDatabaseSchema.observation (visit_occurrence_id ASC);
/************************
Standardized health economics
************************/
CREATE CLUSTERED INDEX idx_period_person_id ON @ResultDatabaseSchema.payer_plan_period (person_id ASC);
/************************
Standardized derived elements
************************/
CREATE INDEX idx_cohort_subject_id ON @ResultDatabaseSchema.cohort (subject_id ASC);
CREATE INDEX idx_cohort_c_definition_id ON @ResultDatabaseSchema.cohort (cohort_definition_id ASC);
CREATE INDEX idx_ca_subject_id ON @ResultDatabaseSchema.cohort_attribute (subject_id ASC);
CREATE INDEX idx_ca_definition_id ON @ResultDatabaseSchema.cohort_attribute (cohort_definition_id ASC);
CREATE CLUSTERED INDEX idx_drug_era_person_id ON @ResultDatabaseSchema.drug_era (person_id ASC);
CREATE INDEX idx_drug_era_concept_id ON @ResultDatabaseSchema.drug_era (drug_concept_id ASC);
CREATE CLUSTERED INDEX idx_dose_era_person_id ON @ResultDatabaseSchema.dose_era (person_id ASC);
CREATE INDEX idx_dose_era_concept_id ON @ResultDatabaseSchema.dose_era (drug_concept_id ASC);
CREATE CLUSTERED INDEX idx_condition_era_person_id ON @ResultDatabaseSchema.condition_era (person_id ASC);
CREATE INDEX idx_condition_era_concept_id ON @ResultDatabaseSchema.condition_era (condition_concept_id ASC);
/****************************************************************************************************************************************
***************************************************** Non Cluster Index **************************************************************
****************************************************************************************************************************************
**********************************/
/* PERSON */
CREATE NONCLUSTERED INDEX [<PERSON_1, sysname,>]
ON @ResultDatabaseSchema.PERSON ([person_id])
INCLUDE ([year_of_birth],[gender_concept_id] );
CREATE NONCLUSTERED INDEX [<PERSON_2, sysname,>]
ON @ResultDatabaseSchema.PERSON ([location_id])
INCLUDE ([person_id]);
CREATE NONCLUSTERED INDEX [<PERSON_3, sysname,>]
ON @ResultDatabaseSchema.PERSON ([provider_id]);
CREATE NONCLUSTERED INDEX [<PERSON_4, sysname,>]
ON @ResultDatabaseSchema.PERSON ([care_site_id]);
/* OBSERVATION */
CREATE NONCLUSTERED INDEX [<OBSERVATION_1, sysname,>]
ON @ResultDatabaseSchema.[OBSERVATION] ([provider_id]);
CREATE NONCLUSTERED INDEX [<OBSERVATION_2, sysname,>]
ON @ResultDatabaseSchema.[OBSERVATION] ([visit_occurrence_id]);
CREATE NONCLUSTERED INDEX [<OBSERVATION_3, sysname,>]
ON @ResultDatabaseSchema.[OBSERVATION] ([value_as_number],[unit_concept_id])
INCLUDE ([observation_concept_id]);
/* OBSERVATION_PERIOD */
CREATE NONCLUSTERED INDEX [<OBSERVATION_PERIOD_4, sysname,>]
ON @ResultDatabaseSchema.[OBSERVATION_PERIOD] ([PERSON_ID])
INCLUDE ([OBSERVATION_PERIOD_START_DATE]);
CREATE NONCLUSTERED INDEX [<OBSERVATION_PERIOD_5, sysname,>]
ON @ResultDatabaseSchema.[OBSERVATION_PERIOD] ([OBSERVATION_PERIOD_START_DATE],[OBSERVATION_PERIOD_END_DATE])
INCLUDE ([PERSON_ID]);
/* VISIT */
CREATE NONCLUSTERED INDEX [<VISIT_1, sysname,>]
ON @ResultDatabaseSchema.[VISIT_OCCURRENCE] ([care_site_id]);
/* CONDITION */
CREATE NONCLUSTERED INDEX [<CONDITION_1, sysname,>]
ON @ResultDatabaseSchema.[CONDITION_OCCURRENCE] ([provider_id]);
CREATE NONCLUSTERED INDEX [<CONDITION_2, sysname,>]
ON @ResultDatabaseSchema.[CONDITION_OCCURRENCE] ([visit_occurrence_id]);
/* CONDITION_ERA */
CREATE NONCLUSTERED INDEX [<CONDITION_ERA_1, sysname,>]
ON @ResultDatabaseSchema.[CONDITION_ERA] ([person_id])
INCLUDE ([condition_concept_id],[condition_era_start_date]);
/* PROCEDURE */
CREATE NONCLUSTERED INDEX [<PROCEDURE_1, sysname,>]
ON @ResultDatabaseSchema.[PROCEDURE_OCCURRENCE] ([provider_id], [visit_occurrence_id]);
/* DRUG */
CREATE NONCLUSTERED INDEX [<DRUG_1, sysname,>]
ON @ResultDatabaseSchema.[DRUG_EXPOSURE] ([provider_id]);
CREATE NONCLUSTERED INDEX [<DRUG_2, sysname,>]
ON @ResultDatabaseSchema.[DRUG_EXPOSURE] ([visit_occurrence_id])
CREATE NONCLUSTERED INDEX [<DRUG_3, sysname,>]
ON @ResultDatabaseSchema.[DRUG_EXPOSURE] ([days_supply])
INCLUDE ([drug_concept_id])
CREATE NONCLUSTERED INDEX [<DRUG_4, sysname,>]
ON @ResultDatabaseSchema.[DRUG_EXPOSURE] ([refills])
INCLUDE ([drug_concept_id])
CREATE NONCLUSTERED INDEX [<DRUG_5, sysname,>]
ON @ResultDatabaseSchema.[DRUG_EXPOSURE] ([quantity])
INCLUDE ([drug_concept_id])
CREATE NONCLUSTERED INDEX [<DRUG_6, sysname,>]
ON @ResultDatabaseSchema.[DRUG_EXPOSURE] ([drug_concept_id])
INCLUDE ([drug_source_value])
/* DRUG_ERA */
CREATE NONCLUSTERED INDEX [<DRUG_ERA_1, sysname,>]
ON @ResultDatabaseSchema.[DRUG_ERA] ([person_id])
INCLUDE ([drug_concept_id],[drug_era_start_date])
/* MEASUREMENT */
CREATE NONCLUSTERED INDEX [<MEASUREMENT_1, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([person_id])
INCLUDE ([measurement_concept_id],[measurement_date]);
CREATE NONCLUSTERED INDEX [<MEASUREMENT_2, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([provider_id]);
CREATE NONCLUSTERED INDEX [<MEASUREMENT_3, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([visit_occurrence_id]);
CREATE NONCLUSTERED INDEX [<MEASUREMENT_4, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([value_as_number],[value_as_concept_id]);
CREATE NONCLUSTERED INDEX [<MEASUREMENT_5, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([value_as_number],[unit_concept_id])
INCLUDE ([measurement_concept_id]);
CREATE NONCLUSTERED INDEX [<MEASUREMENT_6, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([value_as_number],[unit_concept_id],[range_low],[range_high])
INCLUDE ([measurement_concept_id]);
CREATE NONCLUSTERED INDEX [<MEASUREMENT_7, sysname,>]
ON @ResultDatabaseSchema.[MEASUREMENT] ([value_as_number]);
/* PROVIDER */
CREATE NONCLUSTERED INDEX [<PROVIDER_1, sysname,>]
ON @ResultDatabaseSchema.[PROVIDER] ([care_site_id]);
/* PAYER_PLAN_PERIOD */
CREATE NONCLUSTERED INDEX [<PAYER_PLAN_PERIOD_1, sysname,>]
ON @ResultDatabaseSchema.[PAYER_PLAN_PERIOD] ([person_id])
INCLUDE ([payer_plan_period_start_date],[payer_plan_period_end_date]);
/* ACHILLES_results */
--CREATE NONCLUSTERED INDEX [<ACHILLES_RESULTS, sysname,>]
--ON @ResultDatabaseSchema.[ACHILLES_results] ([count_value]);
| 38.165789
| 137
| 0.681721
|
59460ee523251d87980f8a9f3747ecfd7dc5e767
| 18,933
|
sql
|
SQL
|
env/migration/migrate-3.6.0-3.7.0/sql/schema-changes.sql
|
ernsyn/yes-cart
|
88e627898a82512da2740bda31208b738b9d1375
|
[
"Apache-2.0"
] | 1
|
2019-12-27T22:42:52.000Z
|
2019-12-27T22:42:52.000Z
|
env/migration/migrate-3.6.0-3.7.0/sql/schema-changes.sql
|
ernsyn/yes-cart
|
88e627898a82512da2740bda31208b738b9d1375
|
[
"Apache-2.0"
] | null | null | null |
env/migration/migrate-3.6.0-3.7.0/sql/schema-changes.sql
|
ernsyn/yes-cart
|
88e627898a82512da2740bda31208b738b9d1375
|
[
"Apache-2.0"
] | null | null | null |
--
-- Copyright 2009 Denys Pavlov, Igor Azarnyi
--
-- 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.
--
--
-- This script is for MySQL only with some Derby hints inline with comments
-- We highly recommend you seek YC's support help when upgrading your system
-- for detailed analysis of your code.
--
-- Upgrades organised in blocks representing JIRA tasks for which they are
-- necessary - potentially you may hand pick the upgrades you required but
-- to keep upgrade process as easy as possible for future we recommend full
-- upgrades
--
--
-- YC-982 Swiss billing feature in PostFinance payment gateway
--
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15180, 'postFinancePaymentGateway', 'PF_DELIVERY_AND_INVOICE_ON', null, 'Enable invoice and delivery data',
'Invoice and delivery information will be sent with the order (ECOM_*)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15181, 'postFinancePaymentGateway', 'PF_ITEMISED_ITEM_CAT', null, 'Enabled itemised data item category',
'Refer to PostFinance documentation on what values can be set (if not blank will be set for all itemised parameters)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15182, 'postFinancePaymentGateway', 'PF_ITEMISED_SHIP_CAT', null, 'Enabled itemised data shipping category',
'Refer to PostFinance documentation on what values can be set (if not blank will be set for all itemised parameters)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15184, 'postFinancePaymentGateway', 'PF_DELIVERY_AND_INVOICE_ADDR2_IS_NUMBER', null, 'Enable invoice and delivery data (line 2 is number)',
'When invoice parameters (ECOM_*) are generated address line 2 will be used as *STREET_NUMBER');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15185, 'postFinancePaymentGateway', 'PF_DELIVERY_AND_INVOICE_ADDR1_NUMBER_REGEX', null, 'Enable invoice and delivery data (line 1 regex)',
'When invoice parameters (ECOM_*) are generated regex is used on address line 1 to extract and populate *STREET_NUMBER');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15186, 'postFinancePaymentGateway', 'PF_ITEMISED_USE_TAX_AMOUNT', null, 'Enabled itemised data tax amount',
'By default ITEMVATCODEX parameters are set with tax rate. When set to true ITEMVATX sent instead with tax amount');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15280, 'postFinanceManualPaymentGateway', 'PF_DELIVERY_AND_INVOICE_ON', null, 'Enable invoice and delivery data',
'Invoice and delivery information will be sent with the order (ECOM_*)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15281, 'postFinanceManualPaymentGateway', 'PF_ITEMISED_ITEM_CAT', null, 'Enabled itemised data item category',
'Refer to PostFinance documentation on what values can be set (if not blank will be set for all itemised parameters)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15282, 'postFinanceManualPaymentGateway', 'PF_ITEMISED_SHIP_CAT', null, 'Enabled itemised data shipping category',
'Refer to PostFinance documentation on what values can be set (if not blank will be set for all itemised parameters)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15284, 'postFinanceManualPaymentGateway', 'PF_DELIVERY_AND_INVOICE_ADDR2_IS_NUMBER', null, 'Enable invoice and delivery data (line 2 is number)',
'When invoice parameters (ECOM_*) are generated address line 2 will be used as *STREET_NUMBER');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15285, 'postFinanceManualPaymentGateway', 'PF_DELIVERY_AND_INVOICE_ADDR1_NUMBER_REGEX', null, 'Enable invoice and delivery data (line 1 regex)',
'When invoice parameters (ECOM_*) are generated regex is used on address line 1 to extract and populate *STREET_NUMBER');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (15286, 'postFinanceManualPaymentGateway', 'PF_ITEMISED_USE_TAX_AMOUNT', null, 'Enabled itemised data tax amount',
'By default ITEMVATCODEX parameters are set with tax rate. When set to true ITEMVATX sent instead with tax amount');
--
-- YC-983 No payment required payment gateway
--
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10701, 'noPaymentRequired', 'name', 'No payment required', 'Gateway name (default)', 'Gateway name (default)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10702, 'noPaymentRequired', 'name_en', 'No payment required', 'Gateway name (EN)', 'Gateway name (EN)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10703, 'noPaymentRequired', 'name_ru', 'Оплата не требуется', 'Название платежного шлюза (RU)', 'Название платежного шлюза (RU)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10704, 'noPaymentRequired', 'name_uk', 'Оплата не потрібна', 'Назва платіжного шлюзу (UK)', 'Назва платіжного шлюзу (UK)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10705, 'noPaymentRequired', 'name_de', 'Keine Zahlung erforderlich', 'Gateway-Namen (DE)', 'Gateway-Namen (DE)');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10750, 'noPaymentRequired', 'priority', '100', 'Gateway priority', 'Gateway priority');
INSERT INTO TPAYMENTGATEWAYPARAMETER (PAYMENTGATEWAYPARAMETER_ID, PG_LABEL, P_LABEL, P_VALUE, P_NAME, P_DESCRIPTION)
VALUES (10751, 'noPaymentRequired', 'restrictToCustomerTags', null, 'Gateway restrictions (Customer tags)', 'Gateway restrictions (Customer tags)');
--
-- YC-668 Allow configuration of fulfilment centres for Products
--
alter table TSKUWAREHOUSE add column DISABLED bit default 0;
alter table TSKUWAREHOUSE add column AVAILABLEFROM datetime;
alter table TSKUWAREHOUSE add column AVAILABLETO datetime;
alter table TSKUWAREHOUSE add column RELEASEDATE datetime;
alter table TSKUWAREHOUSE add column AVAILABILITY integer default 1 not null;
alter table TSKUWAREHOUSE add column FEATURED bit;
alter table TSKUWAREHOUSE add column TAG varchar(255);
alter table TSKUWAREHOUSE add column MIN_ORDER_QUANTITY decimal(19,2);
alter table TSKUWAREHOUSE add column MAX_ORDER_QUANTITY decimal(19,2);
alter table TSKUWAREHOUSE add column STEP_ORDER_QUANTITY decimal(19,2);
alter table TSKU add column TAG varchar(255);
-- Derby
-- alter table TSKUWAREHOUSE add column DISABLED smallint not null default 0;
-- alter table TSKUWAREHOUSE add column AVAILABLEFROM timestamp;
-- alter table TSKUWAREHOUSE add column AVAILABLETO timestamp;
-- alter table TSKUWAREHOUSE add column RELEASEDATE timestamp;
-- alter table TSKUWAREHOUSE add column AVAILABILITY integer default 1 not null;
-- alter table TSKUWAREHOUSE add column FEATURED smallint;
-- alter table TSKUWAREHOUSE add column TAG varchar(255);
-- alter table TSKUWAREHOUSE add column MIN_ORDER_QUANTITY numeric(19,2);
-- alter table TSKUWAREHOUSE add column MAX_ORDER_QUANTITY numeric(19,2);
-- alter table TSKUWAREHOUSE add column STEP_ORDER_QUANTITY numeric(19,2);
-- alter table TSKU add column TAG varchar(255);
update TSKUWAREHOUSE w, TPRODUCT p, TSKU s set
w.DISABLED = p.DISABLED,
w.AVAILABLEFROM = p.AVAILABLEFROM,
w.AVAILABLETO = p.AVAILABLETO,
w.AVAILABILITY = p.AVAILABILITY,
w.FEATURED = p.FEATURED,
w.MIN_ORDER_QUANTITY = p.MIN_ORDER_QUANTITY,
w.MAX_ORDER_QUANTITY = p.MAX_ORDER_QUANTITY,
w.STEP_ORDER_QUANTITY = p.STEP_ORDER_QUANTITY
where w.SKU_CODE = s.CODE and s.PRODUCT_ID = p.PRODUCT_ID;
-- Derby
-- update TSKUWAREHOUSE set
-- DISABLED = case when (select DISABLED from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE) = 1 then 1 else 0 end,
-- AVAILABLEFROM = (select AVAILABLEFROM from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE),
-- AVAILABLETO = (select AVAILABLETO from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE),
-- AVAILABILITY = case when (select AVAILABILITY from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE) is not null then (select AVAILABILITY from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE) else 1 end,
-- FEATURED = case when (select FEATURED from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE) = 1 then 1 else 0 end,
-- MIN_ORDER_QUANTITY = (select MIN_ORDER_QUANTITY from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE),
-- MAX_ORDER_QUANTITY = (select MAX_ORDER_QUANTITY from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE),
-- STEP_ORDER_QUANTITY = (select STEP_ORDER_QUANTITY from TPRODUCT, TSKU where TSKU.PRODUCT_ID = TPRODUCT.PRODUCT_ID and SKU_CODE = TSKU.CODE);
alter table TPRODUCT drop column DISABLED;
alter table TPRODUCT drop column AVAILABLEFROM;
alter table TPRODUCT drop column AVAILABLETO;
alter table TPRODUCT drop column AVAILABILITY;
alter table TPRODUCT drop column FEATURED;
alter table TPRODUCT drop column MIN_ORDER_QUANTITY;
alter table TPRODUCT drop column MAX_ORDER_QUANTITY;
alter table TPRODUCT drop column STEP_ORDER_QUANTITY;
alter table TCUSTOMERWISHLIST add column SKU_CODE varchar(255);
alter table TCUSTOMERWISHLIST add column SUPPLIER_CODE varchar(255);
update TCUSTOMERWISHLIST l, TSKU s set
l.SKU_CODE = s.CODE,
l.SUPPLIER_CODE = 'Main'
where l.SKU_ID = s.SKU_ID;
-- Derby
-- update TCUSTOMERWISHLIST set
-- SKU_CODE = (select CODE from TSKU where TCUSTOMERWISHLIST.SKU_ID = TSKU.SKU_ID),
-- SUPPLIER_CODE = 'Main';
alter table TCUSTOMERWISHLIST modify column SKU_CODE varchar(255) not null;
alter table TCUSTOMERWISHLIST modify column SUPPLIER_CODE varchar(255) not null;
-- Derby
-- alter table TCUSTOMERWISHLIST alter column SKU_CODE not null;
-- alter table TCUSTOMERWISHLIST alter column SUPPLIER_CODE not null;
alter table TCUSTOMERWISHLIST drop foreign key constraint FK_WL_SKU;
-- Derby
-- alter table TCUSTOMERWISHLIST drop constraint FK_WL_SKU;
alter table TCUSTOMERWISHLIST drop column SKU_ID;
--
-- YC-828 Extend ProductAvailabilityModel to include next delivery information
--
alter table TSKUWAREHOUSE add column RESTOCKDATE datetime;
alter table TSKUWAREHOUSE add column RESTOCKNOTE varchar(255);
-- alter table TSKUWAREHOUSE add column RESTOCKDATE timestamp;
-- alter table TSKUWAREHOUSE add column RESTOCKNOTE varchar(255);
--
-- YC-996 Refactor PromotionCouponUsageEntity to use code
--
alter table TPROMOTIONCOUPONUSAGE add column COUPON_CODE varchar(255);
update TPROMOTIONCOUPONUSAGE u, TPROMOTIONCOUPON c set
u.COUPON_CODE = c.CODE
where u.COUPON_ID = c.PROMOTIONCOUPON_ID;
-- Derby
-- update TPROMOTIONCOUPONUSAGE set
-- COUPON_CODE = (select CODE from TPROMOTIONCOUPON where TPROMOTIONCOUPONUSAGE.COUPON_ID = TPROMOTIONCOUPON.PROMOTIONCOUPON_ID);
alter table TPROMOTIONCOUPONUSAGE modify column COUPON_CODE varchar(255) not null;
-- Derby
-- alter table TPROMOTIONCOUPONUSAGE alter column COUPON_CODE not null;
alter table TPROMOTIONCOUPONUSAGE drop foreign key constraint FK_COUPON_USAGE;
-- Derby
-- alter table TPROMOTIONCOUPONUSAGE drop constraint FK_COUPON_USAGE;
alter table TPROMOTIONCOUPONUSAGE drop column COUPON_ID;
create index PROMOTIONCOUPONUSAGE_CODE on TPROMOTIONCOUPONUSAGE (COUPON_CODE);
--
-- YC-962 Allow fulfilment centre specific pricing
--
alter table TSKUPRICE add column SUPPLIER varchar(255);
--
-- YC-1004 Security Control
--
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 8026, 'SYSTEM_EXTENSION_CFG_SECURITY', 'SYSTEM_EXTENSION_CFG_SECURITY', 0, NULL, 'System\\Customisations\\Security Control',
'Property mapping for system security control service. E.g.
[NodeType].HTTP.maxRequestsPerMinute=1000
[NodeType].HTTP.maxRequestsPerMinutePerIP=60
[NodeType].HTTP.blockIPCSV=192.0.0.18,192.10
[NodeType].HTTP.allowIPCSV=192.0.0.18,192.10
After changing these settings configurations need to be reloaded (use cluster panel)', 1012, 1000, 0, 0, 0, 0);
--
-- YC-1003 Managed lists
--
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 8017, 'SHOP_SF_MNGLIST_T', 'SHOP_SF_MANAGED_LIST_TYPES', 0, NULL, 'Customer: managed list feature enabled (CSV)', 'CSV of customer types which can use managed lists
E.g. B2B,B2E', 1004, 1001, 0, 0, 0, 0);
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 8018, 'SHOP_SF_LOGIN_MGR_ROLES', 'SHOP_SF_LOGIN_MANAGER', 0, NULL, 'Manager: allowed to login in SF', 'Allow managers with ROLE_SMCALLCENTERLOGINSF to login to SF',
1008, 1001, 0, 0, 0, 0);
INSERT INTO TROLE (ROLE_ID, GUID, CODE, DESCRIPTION) VALUES (404, 'ROLE_SMCALLCENTERLOGINSF', 'ROLE_SMCALLCENTERLOGINSF', 'Call centre order manager (SF login)');
INSERT INTO TROLE (ROLE_ID, GUID, CODE, DESCRIPTION) VALUES (405, 'ROLE_SMCALLCENTERLOGINONBEHALF', 'ROLE_SMCALLCENTERLOGINONBEHALF', 'Call centre order manager (login on behalf)');
INSERT INTO TROLE (ROLE_ID, GUID, CODE, DESCRIPTION) VALUES (406, 'ROLE_SMCALLCENTERCREATEMANAGEDLISTS', 'ROLE_SMCALLCENTERCREATEMANAGEDLISTS', 'Call centre order manager (create managed lists)');
delete from TSHOPPINGCARTSTATE;
alter table TSHOPPINGCARTSTATE add MANAGED bit default 0 not null;
alter table TSHOPPINGCARTSTATE add SHOP_ID bigint default 0 not null;
-- Derby
-- alter table TSHOPPINGCARTSTATE add MANAGED smallint default 0 not null;
-- alter table TSHOPPINGCARTSTATE add SHOP_ID bigint default 0 not null;
create index SHOPPINGCARTSTATE_SHOP on TSHOPPINGCARTSTATE (SHOP_ID);
alter table TCUSTOMERWISHLIST add column NOTIFICATION_EMAIL varchar(255);
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 11322, 'SHOP_CUSTOMER_SORT_OPTIONS', 'SHOP_CUSTOMER_SORT_OPTIONS', 0, NULL, 'Manager: sortable fields (CSV)',
'List of sort fields separated by comma with fail over. Default is: lastname,companyName1,createdTimestamp.', 1004, 1001, 0, 0, 0, 0);
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 11323, 'SHOP_CUSTOMER_IMAGE_WIDTH', 'SHOP_CUSTOMER_IMAGE_WIDTH', 0, NULL, 'Manager: Customer image width in list', 'Customer image width in list', 1006, 1001, 0, 0, 0, 0);
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 11324, 'SHOP_CUSTOMER_IMAGE_HEIGHT', 'SHOP_CUSTOMER_IMAGE_HEIGHT', 0, NULL, 'Manager: Customer image height in list', 'Customer image height in list', 1006, 1001, 0, 0, 0, 0);
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV)
VALUES ( 11325, 'SHOP_CUSTOMER_RECORDS_COLUMNS', 'SHOP_CUSTOMER_RECORDS_COLUMNS', 0, NULL, 'Manager: Quantity of customer pods in one row in list',
'Quantity of product pods in one row to show on category page', 1006, 1001, 0, 0, 0, 0);
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV, DISPLAYNAME)
VALUES ( 11153, 'ORDER_MANAGER_NAME', 'ORDER_MANAGER_NAME', 0, NULL, 'Order Manager Name', 'Order Manager Name', 1000, 1006, 0, 0, 0, 0,
'en#~#Order Manager Name#~#uk#~#Менеджер замовлення#~#ru#~#Менеджер заказа#~#de#~#Auftragsmanager');
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV, DISPLAYNAME)
VALUES ( 11154, 'ORDER_MANAGER_EMAIL', 'ORDER_MANAGER_EMAIL', 0, NULL, 'Order Manager Email', 'Order Manager Email', 1000, 1006, 0, 0, 0, 0,
'en#~#Order Manager Email#~#uk#~#Email Менеджера замовлення#~#ru#~#Email Менеджера заказа#~#de#~#E-Mail des Auftragsmanagers');
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV, DISPLAYNAME)
VALUES ( 11155, 'managedListLine', 'managedListLine', 0, NULL, 'List', 'List', 1000, 1006, 0, 0, 0, 0,
'en#~#List#~#uk#~#Список#~#ru#~#Список#~#de#~#Liste');
INSERT INTO TATTRIBUTE (ATTRIBUTE_ID, GUID, CODE, MANDATORY, VAL, NAME, DESCRIPTION, ETYPE_ID, ATTRIBUTEGROUP_ID, STORE, SEARCH, SEARCHPRIMARY, NAV, DISPLAYNAME)
VALUES ( 11156, 'ItemCostPrice', 'ItemCostPrice', 0, NULL, 'Cost', 'Cost', 1000, 1006, 0, 0, 0, 0,
'en#~#Procurement#~#uk#~#Закупівля#~#ru#~#Закупка#~#de#~#Beschaffung');
--
-- YC-802 Improved data federation
--
alter table TMANAGER add column PRODUCT_SUPPLIER_CATALOGS varchar(255);
alter table TMANAGER add column CATEGORY_CATALOGS varchar(1024);
-- example update all manager if Product.supplierCatalogCode had been used
-- update TMANAGER set PRODUCT_SUPPLIER_CATALOGS = 'ABC,DEF,XYZ';
| 58.981308
| 282
| 0.781334
|
4d58f12937e18b582e430052f082c1ceb8669615
| 214
|
cs
|
C#
|
LifeManager/LifeManager.Messages/Lists/DeleteListCommand.cs
|
SamuelCox/LifeManager
|
8a13e1b71317adbe2091191801aaacf5f91b2069
|
[
"MIT"
] | null | null | null |
LifeManager/LifeManager.Messages/Lists/DeleteListCommand.cs
|
SamuelCox/LifeManager
|
8a13e1b71317adbe2091191801aaacf5f91b2069
|
[
"MIT"
] | 1
|
2018-06-16T15:16:57.000Z
|
2018-06-16T15:16:57.000Z
|
LifeManager/LifeManager.Messages/Lists/DeleteListCommand.cs
|
SamuelCox/LifeManager
|
8a13e1b71317adbe2091191801aaacf5f91b2069
|
[
"MIT"
] | null | null | null |
using System;
using NServiceBus;
namespace LifeManager.Messages.Lists
{
public class DeleteListCommand : ICommand
{
public Guid Id { get; set; }
public string UserId { get; set; }
}
}
| 17.833333
| 45
| 0.64486
|
f724c2ddfd2f404b1bfd5d25e1e25b7cf4768bd3
| 2,379
|
rb
|
Ruby
|
app/controllers/pulitzer/post_type_versions_controller.rb
|
edraut/pulitzer
|
33ed6382175ef9b3d77d9dde53d023a64d60c265
|
[
"MIT"
] | 3
|
2015-06-22T20:24:12.000Z
|
2017-04-30T19:11:00.000Z
|
app/controllers/pulitzer/post_type_versions_controller.rb
|
edraut/pulitzer
|
33ed6382175ef9b3d77d9dde53d023a64d60c265
|
[
"MIT"
] | 40
|
2015-06-30T16:58:16.000Z
|
2017-08-03T03:18:41.000Z
|
app/controllers/pulitzer/post_type_versions_controller.rb
|
edraut/pulitzer
|
33ed6382175ef9b3d77d9dde53d023a64d60c265
|
[
"MIT"
] | 2
|
2015-06-24T20:47:00.000Z
|
2016-03-30T22:26:20.000Z
|
class Pulitzer::PostTypeVersionsController < Pulitzer::ApplicationController
before_action :get_post_type_version, except: [:index, :new, :create, :clone]
def index
@post_type = Pulitzer::PostType.find(params[:post_type_id])
@post_type_versions = @post_type.post_type_versions
render_ajax
end
def create
@post_type_version = Create.new(post_type_version_params).call
render partial: 'show_wrapper', locals: {post_type_version: @post_type_version}
end
def show
render partial: 'show', locals: {post_type_version: @post_type_version}
end
def destroy
@post_type_version.destroy
head :ok and return
end
def template
render_ajax locals: {post_type_version: @post_type_version}
end
def change_state
Pulitzer::PostTypeVersionsController::ChangeState.new(@post_type_version,params[:state_change]).call
if @post_type_version.errors.empty?
render partial: 'show', locals: {post_type_version: @post_type_version}
else
render json: {
flash_message: @post_type_version.errors.full_messages.join('<br>'),
html: render_to_string(partial: 'show', locals: {post_type_version: @post_type_version}) },
status: :conflict
end
end
def clone
post_type_version = Pulitzer::PostTypeVersionsController::Create.new(post_type_version_params, false).call
post_type_version.processing!
Pulitzer::ClonePostTypeVersion.perform_later(post_type_version)
render_ajax locals: {post_type_version: post_type_version, post_type: post_type_version.post_type}
end
def export
post_type_version_json = Export.new(@post_type_version).call
send_data(post_type_version_json,
disposition: 'attachment',
filename: @post_type_version.full_name.parameterize + '.json')
end
def import_post
@post = ImportPost.new(@post_type_version, post_type_version_params).call
if @post.errors.empty?
render partial: 'show', locals: {post_type_version: @post_type_version}
else
render json: {flash_message: "Error importing: #{@post.errors.full_messages}"}, status: 409
end
end
protected
def post_type_version_params
params[:post_type_version].permit!
end
def post_params_name
params[:post_type_version][:name]
end
def get_post_type_version
@post_type_version = Pulitzer::PostTypeVersion.find(params[:id])
end
end
| 30.5
| 110
| 0.745691
|
a31d8d05e04458bdd518ab861ef942138020675b
| 5,757
|
h
|
C
|
libft/libft.h
|
kodet90/so_long
|
d6a330a0c00d637bc16ac674988689a37668b47f
|
[
"BSD-2-Clause"
] | null | null | null |
libft/libft.h
|
kodet90/so_long
|
d6a330a0c00d637bc16ac674988689a37668b47f
|
[
"BSD-2-Clause"
] | null | null | null |
libft/libft.h
|
kodet90/so_long
|
d6a330a0c00d637bc16ac674988689a37668b47f
|
[
"BSD-2-Clause"
] | null | null | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: swilmer <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/02 21:02:21 by swilmer #+# #+# */
/* Updated: 2021/10/10 12:10:54 by swilmer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBFT_H
# define LIBFT_H
# include <unistd.h>
# include <stdlib.h>
# include <stdarg.h>
# include <limits.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 100
# endif
# define QUEUE_LIST 2
# define QUEUE_CLEAR 3
typedef struct s_format
{
int minwidth;
int leftadjustment;
char padding;
int precision;
char conversion;
int maxlen;
} t_format;
typedef struct s_list
{
void *content;
struct s_list *next;
} t_list;
int *ft_arrbbl(int *array, int count);
int *ft_arrdup(int *array, int count);
int ft_arrissrt(int *array, int count);
int ft_arrisunq(int *array, int count);
int ft_count_strings(char **strings);
void ft_exit(char *s);
t_format *ft_format_lstnew(void);
int ft_format_lstreset(t_format *list);
char *ft_format_putchar(char c, t_format *list, char *s);
char *ft_format_puthex(unsigned int n, t_format *list, char *s);
char *ft_format_putnbr_uint(unsigned int n, t_format *list, char *s);
char *ft_format_putnbr(int n, t_format *list, char *s);
char *ft_format_putptr(void *p, t_format *list, char *s);
char *ft_format_putstr(char const *str, t_format *list, char *s);
char *ft_conversion_read(char const **format, va_list *va,
t_format *list, char *s);
void *ft_free_int_array(int **array, int size);
void *ft_free_queue(void *data, int now);
void *ft_free_strings(char **strings);
void *ft_free(void *p);
char *ft_gnl(int fd);
void ft_lstclear_malloc(t_list **lst, void (*del)(void *));
void ft_lstdelone_malloc(t_list *lst, void (*del)(void *));
t_list *ft_lstfind(t_list *lst, void *find, int (*f)(void *, void *));
t_list *ft_lstmap_malloc(t_list *lst, void *(*f)(void *),
void (*del)(void *));
t_list *ft_lstnew_malloc(void *content);
void ft_lstremove_malloc(t_list **lst, t_list *remove,
void (*del)(void *));
void ft_lstremove(t_list **lst, t_list *remove, void (*del)(void *));
void *ft_malloc(size_t size);
void *ft_malloc2(void *p);
int ft_printf(char const *format, ...);
int ft_ptrcmp(void *p1, void *p2);
int ft_satoi(char const *str, int *n);
void *ft_calloc(size_t count, size_t size);
char *ft_itoa(int n);
void ft_lstadd_back(t_list **lst, t_list *new);
void ft_lstadd_front(t_list **lst, t_list *new);
void ft_lstclear(t_list **lst, void (*del)(void *));
void ft_lstdelone(t_list *lst, void (*del)(void *));
void ft_lstiter(t_list *lst, void (*f)(void *));
t_list *ft_lstlast(t_list *lst);
t_list *ft_lstmap(t_list *lst, void *(*f)(void *),
void (*del)(void *));
t_list *ft_lstnew(void *content);
void *ft_memccpy(void *dst, const void *restrict src,
int c, size_t n);
void *ft_memchr(const void *s, int c, size_t n);
char **ft_split(char const *str, char c);
char *ft_strdup(const char *s1);
char *ft_strimplode(char **strs, char *sep);
char *ft_strjoin_free(char *s1, char *s2);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_strmapi(char const *s, char (*f)(unsigned int, char));
char *ft_substr(char const *src, unsigned int start, size_t len);
unsigned int ft_abs(int n);
int ft_atoi(const char *str);
void ft_bzero(void *s, size_t n);
int ft_isalnum(int c);
int ft_isalpha(int c);
int ft_isascii(int c);
int ft_isdigit(int c);
int ft_islower(int c);
int ft_isprint(int c);
int ft_isspace(int c);
int ft_isupper(int c);
int ft_lstsize(t_list *lst);
int ft_max(int a, int b);
int ft_memcmp(const void *s1, const void *s2, size_t n);
void *ft_memcpy(void *dst, const void *src, size_t n);
void *ft_memmove(void *dst, const void *src, size_t len);
void *ft_memset(void *b, int c, size_t len);
int ft_min(int a, int b);
int ft_nbrlen_uint(unsigned int n);
int ft_nbrlen(int n);
int ft_putchar_fd(char c, int fd);
int ft_putchar(char c);
int ft_putendl_fd(char *s, int fd);
int ft_putendl(char *s);
int ft_putnbr_fd(int n, int fd);
int ft_putnbr(int n);
int ft_putstr_fd(char *s, int fd);
int ft_putstr(char *s);
char *ft_stpcpy(char *dest, char const *src);
char *ft_strcat(char *dest, char const *src);
char *ft_strchr(const char *s, int c);
int ft_strcmp(char const *s1, char const *s2);
char *ft_strcpy(char *dest, char const *src);
size_t ft_strlcat(char *dst, const char *src, size_t size);
size_t ft_strlcpy(char *dst, char const *src, size_t dstsize);
size_t ft_strlen(const char *str);
int ft_strncmp(const char *s1, const char *s2, size_t n);
size_t ft_strnlen(char const *str, size_t maxlen);
char *ft_strnstr(const char *big, const char *little,
size_t len);
char *ft_strrchr(const char *s, int c);
char *ft_strrev(char *str);
char *ft_strtrim(char const *src, char const *set);
char *ft_substring(char const *src, unsigned int start,
unsigned int end);
int ft_tolower(int c);
int ft_toupper(int c);
#endif
| 38.898649
| 80
| 0.59128
|
7325de4d403a952137857ba039efdf127e280de8
| 1,502
|
dart
|
Dart
|
bin/main.dart
|
qingshan/mdict_reader
|
94b45e3c07af7587fabe2f0e56a7f68a9aff5483
|
[
"MIT"
] | 2
|
2021-03-20T02:52:44.000Z
|
2021-09-17T06:13:34.000Z
|
bin/main.dart
|
qingshan/mdict_reader
|
94b45e3c07af7587fabe2f0e56a7f68a9aff5483
|
[
"MIT"
] | 3
|
2021-03-19T13:15:02.000Z
|
2022-03-03T08:45:03.000Z
|
bin/main.dart
|
qingshan/mdict_reader
|
94b45e3c07af7587fabe2f0e56a7f68a9aff5483
|
[
"MIT"
] | 5
|
2020-08-10T06:34:03.000Z
|
2021-05-22T14:42:13.000Z
|
import 'dart:io';
import 'package:args/args.dart';
import 'package:mdict_reader/mdict_reader.dart';
void main(List<String> args) {
var parser = ArgParser();
var results = parser.parse(args);
var command = results.rest[0];
var path = results.rest[1];
var words = results.rest.sublist(2);
var mdict = MdictReader(path);
if (words.isEmpty) {
words = mdict.keys();
}
words = words.expand((word) {
if (word.endsWith('.txt')) {
return File(word).readAsLinesSync();
} else {
return [word];
}
}).toList();
words.where((word) => word.isNotEmpty).forEach((word) {
var record = mdict.query(word);
if ('sounds' == command) {
var sounds = parseSounds(record);
print('${word}\t${sounds.join(",")}');
} else {
if (record is String) {
stdout.write(record);
} else {
stdout.add(record);
}
}
});
}
Function processor(String command) {
if ('sounds' == command) {
return (String word, dynamic record) {
var sounds = parseSounds(record);
print('${word}\t${sounds.join(",")}');
};
}
return (String word, dynamic record) {
if (record is String) {
stdout.write(record);
} else {
stdout.add(record);
}
};
}
List<String> parseSounds(String html) {
var re = RegExp(' href="sound:/(\\S+)"');
var sounds = re
.allMatches(html)
.map((match) => match.group(1))
.map((sound) => sound.replaceAll('/', '\\'))
.toList();
return sounds;
}
| 24.225806
| 57
| 0.575899
|
436e1e1b68f4bc92edf9a626d311b8be22604c3a
| 24,050
|
ts
|
TypeScript
|
src/core/workspace.ts
|
daniel-brenot/blockly
|
50ea3f28aa421ba045fabadc2ab12ab2c63c34d1
|
[
"Apache-2.0"
] | null | null | null |
src/core/workspace.ts
|
daniel-brenot/blockly
|
50ea3f28aa421ba045fabadc2ab12ab2c63c34d1
|
[
"Apache-2.0"
] | null | null | null |
src/core/workspace.ts
|
daniel-brenot/blockly
|
50ea3f28aa421ba045fabadc2ab12ab2c63c34d1
|
[
"Apache-2.0"
] | null | null | null |
/**
* @license
* Copyright 2012 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Object representing a workspace.
* @class
*/
import Abstract from 'blockly/core/events/events_abstract';
import arrayUtils from 'blockly/core/utils/array';
import eventUtils from 'blockly/core/events/utils';
import idGenerator from 'blockly/core/utils/idgenerator';
import math from 'blockly/core/utils/math';
import registry from 'blockly/core/registry';
import toolbox from 'blockly/core/utils/toolbox';
import {BlocklyOptions} from 'blockly/core/blockly_options';
import {Block} from 'blockly/core/block';
import {ConnectionDB} from 'blockly/core/connection_db';
import {IASTNodeLocation} from 'blockly/core/interfaces/i_ast_node_location';
import {IConnectionChecker} from 'blockly/core/interfaces/i_connection_checker';
import {Options} from 'blockly/core/options';
import {VariableMap} from 'blockly/core/variable_map';
import {VariableModel} from 'blockly/core/variable_model';
import {WorkspaceComment} from 'blockly/core/workspace_comment';
goog.require('blockly/core/connection_checker');
/**
* Database of all workspaces.
* @private
*/
const WorkspaceDB_ = Object.create(null);
/**
* Class for a workspace. This is a data structure that contains blocks.
* There is no UI, and can be created headlessly.
* @param {!Options=} opt_options Dictionary of options.
* @constructor
* @implements {IASTNodeLocation}
* @alias Blockly.Workspace
*/
const Workspace = function(opt_options) {
/** @type {string} */
this.id = idGenerator.genUid();
WorkspaceDB_[this.id] = this;
/** @type {!Options} */
this.options =
opt_options || new Options(/** @type {!BlocklyOptions} */ ({}));
/** @type {boolean} */
this.RTL = !!this.options.RTL;
/** @type {boolean} */
this.horizontalLayout = !!this.options.horizontalLayout;
/** @type {toolbox.Position} */
this.toolboxPosition = this.options.toolboxPosition;
const connectionCheckerClass = registry.getClassFromOptions(
registry.Type.CONNECTION_CHECKER, this.options, true);
/**
* An object that encapsulates logic for safety, type, and dragging checks.
* @type {!IConnectionChecker}
*/
this.connectionChecker = new connectionCheckerClass(this);
/**
* @type {!Array<!Block>}
* @private
*/
this.topBlocks_ = [];
/**
* @type {!Array<!WorkspaceComment>}
* @private
*/
this.topComments_ = [];
/**
* @type {!Object}
* @private
*/
this.commentDB_ = Object.create(null);
/**
* @type {!Array<!Function>}
* @private
*/
this.listeners_ = [];
/**
* @type {!Array<!Abstract>}
* @protected
*/
this.undoStack_ = [];
/**
* @type {!Array<!Abstract>}
* @protected
*/
this.redoStack_ = [];
/**
* @type {!Object}
* @private
*/
this.blockDB_ = Object.create(null);
/**
* @type {!Object}
* @private
*/
this.typedBlocksDB_ = Object.create(null);
/**
* A map from variable type to list of variable names. The lists contain all
* of the named variables in the workspace, including variables
* that are not currently in use.
* @type {!VariableMap}
* @private
*/
this.variableMap_ = new VariableMap(this);
/**
* Blocks in the flyout can refer to variables that don't exist in the main
* workspace. For instance, the "get item in list" block refers to an "item"
* variable regardless of whether the variable has been created yet.
* A FieldVariable must always refer to a VariableModel. We reconcile
* these by tracking "potential" variables in the flyout. These variables
* become real when references to them are dragged into the main workspace.
* @type {?VariableMap}
* @private
*/
this.potentialVariableMap_ = null;
};
/**
* Returns `true` if the workspace is visible and `false` if it's headless.
* @type {boolean}
*/
Workspace.prototype.rendered = false;
/**
* Returns `true` if the workspace is currently in the process of a bulk clear.
* @type {boolean}
* @package
*/
Workspace.prototype.isClearing = false;
/**
* Maximum number of undo events in stack. `0` turns off undo, `Infinity` sets
* it to unlimited.
* @type {number}
*/
Workspace.prototype.MAX_UNDO = 1024;
/**
* Set of databases for rapid lookup of connection locations.
* @type {Array<!ConnectionDB>}
*/
Workspace.prototype.connectionDBList = null;
/**
* Dispose of this workspace.
* Unlink from all DOM elements to prevent memory leaks.
* @suppress {checkTypes}
*/
Workspace.prototype.dispose = function() {
this.listeners_.length = 0;
this.clear();
// Remove from workspace database.
delete WorkspaceDB_[this.id];
};
/**
* Angle away from the horizontal to sweep for blocks. Order of execution is
* generally top to bottom, but a small angle changes the scan to give a bit of
* a left to right bias (reversed in RTL). Units are in degrees.
* See: https://tvtropes.org/pmwiki/pmwiki.php/Main/DiagonalBilling
*/
Workspace.SCAN_ANGLE = 3;
/**
* Compare function for sorting objects (blocks, comments, etc) by position;
* top to bottom (with slight LTR or RTL bias).
* @param {!Block | !WorkspaceComment} a The first object to
* compare.
* @param {!Block | !WorkspaceComment} b The second object to
* compare.
* @return {number} The comparison value. This tells Array.sort() how to change
* object a's index.
* @private
*/
Workspace.prototype.sortObjects_ = function(a, b) {
const aXY = a.getRelativeToSurfaceXY();
const bXY = b.getRelativeToSurfaceXY();
return (aXY.y + Workspace.prototype.sortObjects_.offset * aXY.x) -
(bXY.y + Workspace.prototype.sortObjects_.offset * bXY.x);
};
/**
* Adds a block to the list of top blocks.
* @param {!Block} block Block to add.
*/
Workspace.prototype.addTopBlock = function(block) {
this.topBlocks_.push(block);
};
/**
* Removes a block from the list of top blocks.
* @param {!Block} block Block to remove.
*/
Workspace.prototype.removeTopBlock = function(block) {
if (!arrayUtils.removeElem(this.topBlocks_, block)) {
throw Error('Block not present in workspace\'s list of top-most blocks.');
}
};
/**
* Finds the top-level blocks and returns them. Blocks are optionally sorted
* by position; top to bottom (with slight LTR or RTL bias).
* @param {boolean} ordered Sort the list if true.
* @return {!Array<!Block>} The top-level block objects.
*/
Workspace.prototype.getTopBlocks = function(ordered) {
// Copy the topBlocks_ list.
const blocks = [].concat(this.topBlocks_);
if (ordered && blocks.length > 1) {
this.sortObjects_.offset = Math.sin(math.toRadians(Workspace.SCAN_ANGLE));
if (this.RTL) {
this.sortObjects_.offset *= -1;
}
blocks.sort(this.sortObjects_);
}
return blocks;
};
/**
* Add a block to the list of blocks keyed by type.
* @param {!Block} block Block to add.
*/
Workspace.prototype.addTypedBlock = function(block) {
if (!this.typedBlocksDB_[block.type]) {
this.typedBlocksDB_[block.type] = [];
}
this.typedBlocksDB_[block.type].push(block);
};
/**
* Remove a block from the list of blocks keyed by type.
* @param {!Block} block Block to remove.
*/
Workspace.prototype.removeTypedBlock = function(block) {
arrayUtils.removeElem(this.typedBlocksDB_[block.type], block);
if (!this.typedBlocksDB_[block.type].length) {
delete this.typedBlocksDB_[block.type];
}
};
/**
* Finds the blocks with the associated type and returns them. Blocks are
* optionally sorted by position; top to bottom (with slight LTR or RTL bias).
* @param {string} type The type of block to search for.
* @param {boolean} ordered Sort the list if true.
* @return {!Array<!Block>} The blocks of the given type.
*/
Workspace.prototype.getBlocksByType = function(type, ordered) {
if (!this.typedBlocksDB_[type]) {
return [];
}
const blocks = this.typedBlocksDB_[type].slice(0);
if (ordered && blocks.length > 1) {
this.sortObjects_.offset = Math.sin(math.toRadians(Workspace.SCAN_ANGLE));
if (this.RTL) {
this.sortObjects_.offset *= -1;
}
blocks.sort(this.sortObjects_);
}
return blocks.filter(function(block) {
return !block.isInsertionMarker();
});
};
/**
* Adds a comment to the list of top comments.
* @param {!WorkspaceComment} comment comment to add.
* @package
*/
Workspace.prototype.addTopComment = function(comment) {
this.topComments_.push(comment);
// Note: If the comment database starts to hold block comments, this may need
// to move to a separate function.
if (this.commentDB_[comment.id]) {
console.warn(
'Overriding an existing comment on this workspace, with id "' +
comment.id + '"');
}
this.commentDB_[comment.id] = comment;
};
/**
* Removes a comment from the list of top comments.
* @param {!WorkspaceComment} comment comment to remove.
* @package
*/
Workspace.prototype.removeTopComment = function(comment) {
if (!arrayUtils.removeElem(this.topComments_, comment)) {
throw Error(
'Comment not present in workspace\'s list of top-most ' +
'comments.');
}
// Note: If the comment database starts to hold block comments, this may need
// to move to a separate function.
delete this.commentDB_[comment.id];
};
/**
* Finds the top-level comments and returns them. Comments are optionally
* sorted by position; top to bottom (with slight LTR or RTL bias).
* @param {boolean} ordered Sort the list if true.
* @return {!Array<!WorkspaceComment>} The top-level comment objects.
* @package
*/
Workspace.prototype.getTopComments = function(ordered) {
// Copy the topComments_ list.
const comments = [].concat(this.topComments_);
if (ordered && comments.length > 1) {
this.sortObjects_.offset = Math.sin(math.toRadians(Workspace.SCAN_ANGLE));
if (this.RTL) {
this.sortObjects_.offset *= -1;
}
comments.sort(this.sortObjects_);
}
return comments;
};
/**
* Find all blocks in workspace. Blocks are optionally sorted
* by position; top to bottom (with slight LTR or RTL bias).
* @param {boolean} ordered Sort the list if true.
* @return {!Array<!Block>} Array of blocks.
*/
Workspace.prototype.getAllBlocks = function(ordered) {
let blocks;
if (ordered) {
// Slow, but ordered.
const topBlocks = this.getTopBlocks(true);
blocks = [];
for (let i = 0; i < topBlocks.length; i++) {
blocks.push.apply(blocks, topBlocks[i].getDescendants(true));
}
} else {
// Fast, but in no particular order.
blocks = this.getTopBlocks(false);
for (let i = 0; i < blocks.length; i++) {
blocks.push.apply(blocks, blocks[i].getChildren(false));
}
}
// Insertion markers exist on the workspace for rendering reasons, but aren't
// "real" blocks from a developer perspective.
const filtered = blocks.filter(function(block) {
return !block.isInsertionMarker();
});
return filtered;
};
/**
* Dispose of all blocks and comments in workspace.
*/
Workspace.prototype.clear = function() {
this.isClearing = true;
try {
const existingGroup = eventUtils.getGroup();
if (!existingGroup) {
eventUtils.setGroup(true);
}
while (this.topBlocks_.length) {
this.topBlocks_[0].dispose(false);
}
while (this.topComments_.length) {
this.topComments_[this.topComments_.length - 1].dispose();
}
if (!existingGroup) {
eventUtils.setGroup(false);
}
this.variableMap_.clear();
if (this.potentialVariableMap_) {
this.potentialVariableMap_.clear();
}
} finally {
this.isClearing = false;
}
};
/* Begin functions that are just pass-throughs to the variable map. */
/**
* Rename a variable by updating its name in the variable map. Identify the
* variable to rename with the given ID.
* @param {string} id ID of the variable to rename.
* @param {string} newName New variable name.
*/
Workspace.prototype.renameVariableById = function(id, newName) {
this.variableMap_.renameVariableById(id, newName);
};
/**
* Create a variable with a given name, optional type, and optional ID.
* @param {string} name The name of the variable. This must be unique across
* variables and procedures.
* @param {?string=} opt_type The type of the variable like 'int' or 'string'.
* Does not need to be unique. Field_variable can filter variables based on
* their type. This will default to '' which is a specific type.
* @param {?string=} opt_id The unique ID of the variable. This will default to
* a UUID.
* @return {!VariableModel} The newly created variable.
*/
Workspace.prototype.createVariable = function(name, opt_type, opt_id) {
return this.variableMap_.createVariable(name, opt_type, opt_id);
};
/**
* Find all the uses of the given variable, which is identified by ID.
* @param {string} id ID of the variable to find.
* @return {!Array<!Block>} Array of block usages.
*/
Workspace.prototype.getVariableUsesById = function(id) {
return this.variableMap_.getVariableUsesById(id);
};
/**
* Delete a variables by the passed in ID and all of its uses from this
* workspace. May prompt the user for confirmation.
* @param {string} id ID of variable to delete.
*/
Workspace.prototype.deleteVariableById = function(id) {
this.variableMap_.deleteVariableById(id);
};
/**
* Find the variable by the given name and return it. Return null if not found.
* @param {string} name The name to check for.
* @param {string=} opt_type The type of the variable. If not provided it
* defaults to the empty string, which is a specific type.
* @return {?VariableModel} The variable with the given name.
*/
// TODO (#1559): Possibly delete this function after resolving #1559.
Workspace.prototype.getVariable = function(name, opt_type) {
return this.variableMap_.getVariable(name, opt_type);
};
/**
* Find the variable by the given ID and return it. Return null if not found.
* @param {string} id The ID to check for.
* @return {?VariableModel} The variable with the given ID.
*/
Workspace.prototype.getVariableById = function(id) {
return this.variableMap_.getVariableById(id);
};
/**
* Find the variable with the specified type. If type is null, return list of
* variables with empty string type.
* @param {?string} type Type of the variables to find.
* @return {!Array<!VariableModel>} The sought after variables of the
* passed in type. An empty array if none are found.
*/
Workspace.prototype.getVariablesOfType = function(type) {
return this.variableMap_.getVariablesOfType(type);
};
/**
* Return all variable types.
* @return {!Array<string>} List of variable types.
* @package
*/
Workspace.prototype.getVariableTypes = function() {
return this.variableMap_.getVariableTypes(this);
};
/**
* Return all variables of all types.
* @return {!Array<!VariableModel>} List of variable models.
*/
Workspace.prototype.getAllVariables = function() {
return this.variableMap_.getAllVariables();
};
/**
* Returns all variable names of all types.
* @return {!Array<string>} List of all variable names of all types.
*/
Workspace.prototype.getAllVariableNames = function() {
return this.variableMap_.getAllVariableNames();
};
/* End functions that are just pass-throughs to the variable map. */
/**
* Returns the horizontal offset of the workspace.
* Intended for LTR/RTL compatibility in XML.
* Not relevant for a headless workspace.
* @return {number} Width.
*/
Workspace.prototype.getWidth = function() {
return 0;
};
/**
* Obtain a newly created block.
* @param {!string} prototypeName Name of the language object containing
* type-specific functions for this block.
* @param {string=} opt_id Optional ID. Use this ID if provided, otherwise
* create a new ID.
* @return {!Block} The created block.
*/
Workspace.prototype.newBlock = function(prototypeName, opt_id) {
const {Block} = goog.module.get('blockly/core/block');
return new Block(this, prototypeName, opt_id);
};
/**
* The number of blocks that may be added to the workspace before reaching
* the maxBlocks.
* @return {number} Number of blocks left.
*/
Workspace.prototype.remainingCapacity = function() {
if (isNaN(this.options.maxBlocks)) {
return Infinity;
}
return this.options.maxBlocks - this.getAllBlocks(false).length;
};
/**
* The number of blocks of the given type that may be added to the workspace
* before reaching the maxInstances allowed for that type.
* @param {string} type Type of block to return capacity for.
* @return {number} Number of blocks of type left.
*/
Workspace.prototype.remainingCapacityOfType = function(type) {
if (!this.options.maxInstances) {
return Infinity;
}
const maxInstanceOfType = (this.options.maxInstances[type] !== undefined) ?
this.options.maxInstances[type] :
Infinity;
return maxInstanceOfType - this.getBlocksByType(type, false).length;
};
/**
* Check if there is remaining capacity for blocks of the given counts to be
* created. If the total number of blocks represented by the map is more than
* the total remaining capacity, it returns false. If a type count is more
* than the remaining capacity for that type, it returns false.
* @param {!Object} typeCountsMap A map of types to counts (usually representing
* blocks to be created).
* @return {boolean} True if there is capacity for the given map,
* false otherwise.
*/
Workspace.prototype.isCapacityAvailable = function(typeCountsMap) {
if (!this.hasBlockLimits()) {
return true;
}
let copyableBlocksCount = 0;
for (const type in typeCountsMap) {
if (typeCountsMap[type] > this.remainingCapacityOfType(type)) {
return false;
}
copyableBlocksCount += typeCountsMap[type];
}
if (copyableBlocksCount > this.remainingCapacity()) {
return false;
}
return true;
};
/**
* Checks if the workspace has any limits on the maximum number of blocks,
* or the maximum number of blocks of specific types.
* @return {boolean} True if it has block limits, false otherwise.
*/
Workspace.prototype.hasBlockLimits = function() {
return this.options.maxBlocks !== Infinity || !!this.options.maxInstances;
};
/**
* Gets the undo stack for workplace.
* @return {!Array<!Abstract>} undo stack
* @package
*/
Workspace.prototype.getUndoStack = function() {
return this.undoStack_;
};
/**
* Gets the redo stack for workplace.
* @return {!Array<!Abstract>} redo stack
* @package
*/
Workspace.prototype.getRedoStack = function() {
return this.redoStack_;
};
/**
* Undo or redo the previous action.
* @param {boolean} redo False if undo, true if redo.
*/
Workspace.prototype.undo = function(redo) {
const inputStack = redo ? this.redoStack_ : this.undoStack_;
const outputStack = redo ? this.undoStack_ : this.redoStack_;
const inputEvent = inputStack.pop();
if (!inputEvent) {
return;
}
let events = [inputEvent];
// Do another undo/redo if the next one is of the same group.
while (inputStack.length && inputEvent.group &&
inputEvent.group === inputStack[inputStack.length - 1].group) {
events.push(inputStack.pop());
}
// Push these popped events on the opposite stack.
for (let i = 0; i < events.length; i++) {
const event = events[i];
outputStack.push(event);
}
events = eventUtils.filter(events, redo);
eventUtils.setRecordUndo(false);
try {
for (let i = 0; i < events.length; i++) {
const event = events[i];
event.run(redo);
}
} finally {
eventUtils.setRecordUndo(true);
}
};
/**
* Clear the undo/redo stacks.
*/
Workspace.prototype.clearUndo = function() {
this.undoStack_.length = 0;
this.redoStack_.length = 0;
// Stop any events already in the firing queue from being undoable.
eventUtils.clearPendingUndo();
};
/**
* When something in this workspace changes, call a function.
* Note that there may be a few recent events already on the stack. Thus the
* new change listener might be called with events that occurred a few
* milliseconds before the change listener was added.
* @param {!Function} func Function to call.
* @return {!Function} Obsolete return value, ignore.
*/
Workspace.prototype.addChangeListener = function(func) {
this.listeners_.push(func);
return func;
};
/**
* Stop listening for this workspace's changes.
* @param {!Function} func Function to stop calling.
*/
Workspace.prototype.removeChangeListener = function(func) {
arrayUtils.removeElem(this.listeners_, func);
};
/**
* Fire a change event.
* @param {!Abstract} event Event to fire.
*/
Workspace.prototype.fireChangeListener = function(event) {
if (event.recordUndo) {
this.undoStack_.push(event);
this.redoStack_.length = 0;
while (this.undoStack_.length > this.MAX_UNDO && this.MAX_UNDO >= 0) {
this.undoStack_.shift();
}
}
for (let i = 0; i < this.listeners_.length; i++) {
const func = this.listeners_[i];
func(event);
}
};
/**
* Find the block on this workspace with the specified ID.
* @param {string} id ID of block to find.
* @return {?Block} The sought after block, or null if not found.
*/
Workspace.prototype.getBlockById = function(id) {
return this.blockDB_[id] || null;
};
/**
* Set a block on this workspace with the specified ID.
* @param {string} id ID of block to set.
* @param {Block} block The block to set.
* @package
*/
Workspace.prototype.setBlockById = function(id, block) {
this.blockDB_[id] = block;
};
/**
* Delete a block off this workspace with the specified ID.
* @param {string} id ID of block to delete.
* @package
*/
Workspace.prototype.removeBlockById = function(id) {
delete this.blockDB_[id];
};
/**
* Find the comment on this workspace with the specified ID.
* @param {string} id ID of comment to find.
* @return {?WorkspaceComment} The sought after comment, or null if not
* found.
* @package
*/
Workspace.prototype.getCommentById = function(id) {
return this.commentDB_[id] || null;
};
/**
* Checks whether all value and statement inputs in the workspace are filled
* with blocks.
* @param {boolean=} opt_shadowBlocksAreFilled An optional argument controlling
* whether shadow blocks are counted as filled. Defaults to true.
* @return {boolean} True if all inputs are filled, false otherwise.
*/
Workspace.prototype.allInputsFilled = function(opt_shadowBlocksAreFilled) {
const blocks = this.getTopBlocks(false);
for (let i = 0; i < blocks.length; i++) {
const block = blocks[i];
if (!block.allInputsFilled(opt_shadowBlocksAreFilled)) {
return false;
}
}
return true;
};
/**
* Return the variable map that contains "potential" variables.
* These exist in the flyout but not in the workspace.
* @return {?VariableMap} The potential variable map.
* @package
*/
Workspace.prototype.getPotentialVariableMap = function() {
return this.potentialVariableMap_;
};
/**
* Create and store the potential variable map for this workspace.
* @package
*/
Workspace.prototype.createPotentialVariableMap = function() {
this.potentialVariableMap_ = new VariableMap(this);
};
/**
* Return the map of all variables on the workspace.
* @return {!VariableMap} The variable map.
*/
Workspace.prototype.getVariableMap = function() {
return this.variableMap_;
};
/**
* Set the map of all variables on the workspace.
* @param {!VariableMap} variableMap The variable map.
* @package
*/
Workspace.prototype.setVariableMap = function(variableMap) {
this.variableMap_ = variableMap;
};
/**
* Find the workspace with the specified ID.
* @param {string} id ID of workspace to find.
* @return {?Workspace} The sought after workspace or null if not found.
*/
Workspace.getById = function(id) {
return WorkspaceDB_[id] || null;
};
/**
* Find all workspaces.
* @return {!Array<!Workspace>} Array of workspaces.
*/
Workspace.getAll = function() {
const workspaces = [];
for (const workspaceId in WorkspaceDB_) {
workspaces.push(WorkspaceDB_[workspaceId]);
}
return workspaces;
};
exports.Workspace = Workspace;
| 30.0625
| 80
| 0.695593
|
2ffae907709c4fece8dfe82a978a584914673d46
| 3,343
|
py
|
Python
|
keras_frcnn/kaist_parser.py
|
cgr3mu/keras-frcnn
|
808559a255110adb05e6d5daddcdff90abae478c
|
[
"Apache-2.0"
] | null | null | null |
keras_frcnn/kaist_parser.py
|
cgr3mu/keras-frcnn
|
808559a255110adb05e6d5daddcdff90abae478c
|
[
"Apache-2.0"
] | null | null | null |
keras_frcnn/kaist_parser.py
|
cgr3mu/keras-frcnn
|
808559a255110adb05e6d5daddcdff90abae478c
|
[
"Apache-2.0"
] | 1
|
2018-07-17T21:22:00.000Z
|
2018-07-17T21:22:00.000Z
|
import os
import cv2
import xml.etree.ElementTree as ET
import numpy as np
def get_data(input_path,mode):
all_imgs = []
classes_count = {}
class_mapping = {}
visualize = False
#data_paths = input_path #[os.path.join(input_path,s) for s in ['VOC2007', 'VOC2012']]
print('Parsing annotation files')
train_imgs_path = os.path.join(input_path,'Train.txt')
test_imgs_path = os.path.join(input_path,'Test.txt')
#for data_path in data_paths:
#imgsets_path_trainval = os.path.join(data_path,'train.txt')
#imgsets_path_test = os.path.join(data_path, 'ImageSets','Main','test.txt')
#annot_path = os.path.join(data_path, 'Annotations')
#imgs_path = os.path.join(data_path, 'JPEGImages')
if mode == "train":
data_path = train_imgs_path
if mode == "test":
data_path = test_imgs_path
trainval_files = []
test_files = []
idx = 0
people = 0
with open(data_path, 'r') as ft:
for line in ft:
line = line.strip("\n")
annot = line.replace("images","annotations-xml")
annot = annot.replace(".jpg",".xml")
annot = annot.replace("/visible","/")
idx += 1
et = ET.parse(annot)
element = et.getroot()
element_objs = element.findall('object')
element_filename = element.find('filename').text
element_width = int(element.find('size').find('width').text)
element_height = int(element.find('size').find('height').text)
if len(element_objs) > 0:
annotation_data = {'filepath': line, 'width': element_width,
'height': element_height, 'bboxes': []}
people += len(element_objs)
'''if element_filename in trainval_files:
annotation_data['imageset'] = 'trainval'
elif element_filename in test_files:
annotation_data['imageset'] = 'test'
else:
annotation_data['imageset'] = 'trainval'''
for element_obj in element_objs:
#class_name = element_obj.find('name').text
class_name = "person"
if class_name not in classes_count:
classes_count[class_name] = 1
else:
classes_count[class_name] += 1
class_mapping[class_name] = 0
'''if class_name not in classes_count:
classes_count[class_name] = 1
else:
classes_count[class_name] += 1
if class_name not in class_mapping:
class_mapping[class_name] = len(class_mapping)'''
obj_bbox = element_obj.find('bndbox')
x1 = int(round(float(obj_bbox.find('xmin').text)))
y1 = int(round(float(obj_bbox.find('ymin').text)))
x2 = int(round(float(obj_bbox.find('xmax').text)))
y2 = int(round(float(obj_bbox.find('ymax').text)))
difficulty = int(element_obj.find('difficult').text) == 1
#print([x1,y1,x2,y2])
annotation_data['bboxes'].append({'class': class_name, 'x1': x1, 'x2': x2, 'y1': y1, 'y2': y2, 'difficult': difficulty})
all_imgs.append(annotation_data)
else:
continue
if visualize:
img = cv2.imread(annotation_data['filepath'])
for bbox in annotation_data['bboxes']:
cv2.rectangle(img, (bbox['x1'], bbox['y1']), (bbox[
'x2'], bbox['y2']), (0, 0, 255))
cv2.imshow('img', img)
cv2.waitKey(0)
# print(people)
return all_imgs, classes_count, class_mapping
#if __name__ == "__main__":
# input_path = "/home/kishan/Documents/Connor-Code/keras-frcnn/kaist-rgbt"
# get_data(input_path, 'test')
#print imgs_dicts[59]
#print len(imgs_dicts)'''
| 30.117117
| 125
| 0.662579
|
a7e89f9218b98590dac348f57ad5ba85e34d5e25
| 430
|
sql
|
SQL
|
automation/tincrepo/main/pxf/features/hive/errors/partitionNameMismatch/sql/query01.sql
|
lchx1010/pxf
|
f6e11f91fb8c01ed27fc829beb3800f3b253c209
|
[
"Apache-2.0"
] | 46
|
2018-10-22T23:34:03.000Z
|
2022-03-31T09:31:34.000Z
|
automation/tincrepo/main/pxf/features/hive/errors/partitionNameMismatch/sql/query01.sql
|
lchx1010/pxf
|
f6e11f91fb8c01ed27fc829beb3800f3b253c209
|
[
"Apache-2.0"
] | 317
|
2018-10-05T23:51:48.000Z
|
2022-03-22T17:38:52.000Z
|
automation/tincrepo/main/pxf/features/hive/errors/partitionNameMismatch/sql/query01.sql
|
lchx1010/pxf
|
f6e11f91fb8c01ed27fc829beb3800f3b253c209
|
[
"Apache-2.0"
] | 46
|
2018-10-10T18:55:00.000Z
|
2022-03-28T07:27:04.000Z
|
-- @description query01 for PXF hive column count mismatch
-- start_matchsubs
--
-- # create a match/subs
--
-- m/ description .*/
-- s/description .*/description DESCRIPTION/
--
-- m/DETAIL/
-- s/DETAIL/CONTEXT/
--
-- m/CONTEXT:.*line.*/
-- s/line \d* of //g
--
-- end_matchsubs
SELECT * from pxf_hive_small_data ORDER BY t1;
| 25.294118
| 97
| 0.504651
|
663eabd6da19a1cb854217333f7c24e1737a9045
| 7,121
|
py
|
Python
|
pipeline/cleanupDocs.py
|
jakelever/corona-ml
|
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
|
[
"MIT"
] | 7
|
2021-02-01T22:39:23.000Z
|
2021-08-09T16:28:38.000Z
|
pipeline/cleanupDocs.py
|
jakelever/corona-ml
|
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
|
[
"MIT"
] | 1
|
2021-05-17T13:14:40.000Z
|
2021-05-20T10:26:09.000Z
|
pipeline/cleanupDocs.py
|
jakelever/corona-ml
|
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
|
[
"MIT"
] | 1
|
2021-01-04T14:11:18.000Z
|
2021-01-04T14:11:18.000Z
|
import json
import argparse
import string
import calendar
import re
from datetime import date
def remove_punctuation(text):
exclude = set(string.punctuation)
return ''.join(ch for ch in text if ch not in exclude)
def cleanup_documents(documents):
dashCharacters = ["-", "\u00ad", "\u2010", "\u2011", "\u2012", "\u2013", "\u2014", "\u2043", "\u2053"]
empty_abstracts = {'','this article has no abstract','no abstract is available for this article','letter without abstract','unknown','not available','no abstract available','na','no abstract provided','no abstract','none','abstract','letter without abstract','not availble','null','graphical abstract'}
title_prefixes_to_trim = ['full-length title', 'infographic title', 'complete title', 'original title', 'title']
abstract_prefixes_to_trim = ['accepted 7 july 2020abstract', 'physicians abstracts', 'unlabelled abstract', 'structured abstract', 'original abstracts', 'summary/abstract', 'original abstract', 'abstracts', ']abstract', 'abstract']
copyright_phrases = [r'This article is protected by copyright\.?', r'All rights reserved\.?',r'Copyright (\u00a9 )?\d+.*',r'\(?\s*Copyright applies to all Abstracts\s*\)?', r'Copyright of .* is the property of .*', r'\[?\s*copyright information to be updated in production process\s*\]?']
copyright_regexes = [ re.compile(phrase, re.IGNORECASE) for phrase in copyright_phrases]
editornameRegex = re.compile('Communicated by Ramaswamy (H\. )?Sarma\.?',re.IGNORECASE)
preprintRemapping = {}
preprintRemapping['medrxiv'] = 'medRxiv'
preprintRemapping['medrxiv.org'] = 'medRxiv'
preprintRemapping['medrxiv : the preprint server for health sciences'] = 'medRxiv'
preprintRemapping['biorxiv'] = 'bioRxiv'
preprintRemapping['biorxiv.org'] = 'bioRxiv'
preprintRemapping['biorxiv : the preprint server for biology'] = 'bioRxiv'
preprintRemapping['chemrxiv'] = 'ChemRxiv'
preprintRemapping['chemrxiv.org'] = 'ChemRxiv'
preprintRemapping['chemrxiv : the preprint server for chemistry'] = 'ChemRxiv'
preprintRemapping['arxiv'] = 'arXiv'
preprintRemapping['arxiv.org'] = 'arXiv'
preprintRemapping['arxiv.org e-print archive'] = 'arXiv'
colonWithNoSpaceRegex = re.compile('(introduction|background|method|methods|result|results|findings|discussion|conclusion|conclusions|evidence|objective|objectives|abbreviations|funding|):(\S)',flags=re.IGNORECASE)
for doc in documents:
doc['title'] = doc['title'].strip()
doc['abstract'] = doc['abstract'].strip()
if any (dc in doc['title'] for dc in dashCharacters):
for dc in dashCharacters:
doc['title'] = doc['title'].replace(dc,'-')
if any (dc in doc['abstract'] for dc in dashCharacters):
for dc in dashCharacters:
doc['abstract'] = doc['abstract'].replace(dc,'-')
abstract_no_punct = remove_punctuation(doc['abstract'].lower())
if abstract_no_punct in empty_abstracts:
doc['abstract'] = ''
# Remove ()s from the end of title
doc['title'] = re.sub("(\(\))+$","",doc['title'])
for prefix in title_prefixes_to_trim:
if doc['title'].lower().startswith(prefix):
doc['title'] = doc['title'][len(prefix):].lstrip(': ').strip()
for prefix in abstract_prefixes_to_trim:
if doc['abstract'].lower().startswith(prefix):
doc['abstract'] = doc['abstract'][len(prefix):].lstrip(': ').strip()
if doc['title'].startswith('[') and (doc['title'].endswith(']') or doc['title'].endswith('].')):
doc['title'] = doc['title'].lstrip('[').rstrip('.').rstrip(']')
# Cleanup some messy section headings in the abstract where there is
# no space after a colon.
doc['abstract'] = colonWithNoSpaceRegex.sub('\\1: \\2',doc['abstract'])
# Removed copyright notices and editor names from bottom of abstracts (that shouldn't be there)
for regex in copyright_regexes:
doc['abstract'] = regex.sub('',doc['abstract']).strip()
doc['abstract'] = editornameRegex.sub('',doc['abstract'])
if 'source_x' in doc and doc['source_x'].lower() in ['biorxiv','medrxiv','arxiv']:
doc['journal'] = doc['source_x']
journal_lower = doc['journal'].lower()
if journal_lower in preprintRemapping:
doc['journal'] = preprintRemapping[journal_lower]
if 'publish_time' in doc:
assert len(doc['publish_time']) in [0,4,10], doc['publish_time']
doc['publish_year'] = None
doc['publish_month'] = None
doc['publish_day'] = None
if len(doc['publish_time']) == 4:
doc['publish_year'] = doc['publish_time']
elif len(doc['publish_time']) == 10:
doc['publish_year'] = doc['publish_time'][0:4]
doc['publish_month'] = doc['publish_time'][5:7]
doc['publish_day'] = doc['publish_time'][8:10]
del doc['publish_time']
if isinstance(doc['publish_year'],str):
doc['publish_year'] = doc['publish_year'].strip()
if isinstance(doc['publish_month'],str):
doc['publish_month'] = doc['publish_month'].strip()
if isinstance(doc['publish_day'],str):
doc['publish_day'] = doc['publish_day'].strip()
date_status = (bool(doc['publish_year']),bool(doc['publish_month']),bool(doc['publish_day']))
assert date_status in [(True,True,True),(True,True,False),(True,False,False),(False,False,False)]
if doc['publish_year']:
doc['publish_year'] = int(doc['publish_year'])
assert doc['publish_year'] > 1700 and doc['publish_year'] < 2100
else:
doc['publish_year'] = None
if doc['publish_month']:
doc['publish_month'] = int(doc['publish_month'])
assert doc['publish_month'] >= 1 and doc['publish_month'] <= 12
else:
doc['publish_month'] = None
if doc['publish_day']:
doc['publish_day'] = int(doc['publish_day'])
_,days_in_month = calendar.monthrange(doc['publish_year'],doc['publish_month'])
assert doc['publish_day'] >= 1 and doc['publish_day'] <= days_in_month
else:
doc['publish_day'] = None
# Check the publication isn't in the future, and drop it back to this month if it appears to be
if doc['publish_year'] is not None:
pub_date = date(doc['publish_year'],doc['publish_month'] if doc['publish_month'] else 1,doc['publish_day'] if doc['publish_day'] else 1)
if pub_date > date.today():
doc['publish_year'] = date.today().year
doc['publish_month'] = doc['publish_month'] if doc['publish_month'] == date.today().month else None
doc['publish_day'] = None
# PubMed IDs must be numbers
if doc['pubmed_id'] and not re.match('^\d+$',doc['pubmed_id']):
doc['pubmed_id'] = ''
# Remove suffix forward-slashes that are appearing in CORD data
if doc['doi']:
doc['doi'] = doc['doi'].rstrip('/')
def main():
parser = argparse.ArgumentParser('Clean up various bits of document metadata and document text')
parser.add_argument('--inJSON',required=True,type=str,help='Input JSON documents')
parser.add_argument('--outJSON',required=True,type=str,help='Output JSON documents')
args = parser.parse_args()
print("Loading documents...")
with open(args.inJSON) as f:
documents = json.load(f)
print("Cleaning documents...")
cleanup_documents(documents)
print("Saving data...")
with open(args.outJSON,'w',encoding='utf8') as f:
json.dump(documents,f)
if __name__ == '__main__':
main()
| 43.687117
| 303
| 0.691616
|
dd57ba7024d79545640e18a08aa6a85770fee6e7
| 1,497
|
java
|
Java
|
src/java/net/sf/jhunlang/jmorph/sword/parser/ExtensionParser.java
|
Zolta/j-morph
|
d6d4d0299103a5e19b1464db4b6cd9bfc03e9545
|
[
"CC-BY-2.0"
] | null | null | null |
src/java/net/sf/jhunlang/jmorph/sword/parser/ExtensionParser.java
|
Zolta/j-morph
|
d6d4d0299103a5e19b1464db4b6cd9bfc03e9545
|
[
"CC-BY-2.0"
] | null | null | null |
src/java/net/sf/jhunlang/jmorph/sword/parser/ExtensionParser.java
|
Zolta/j-morph
|
d6d4d0299103a5e19b1464db4b6cd9bfc03e9545
|
[
"CC-BY-2.0"
] | null | null | null |
package net.sf.jhunlang.jmorph.sword.parser;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import net.sf.jhunlang.jmorph.parser.Parser;
import net.sf.jhunlang.jmorph.sword.Case;
import net.sf.jhunlang.jmorph.sword.Derivative;
import net.sf.jhunlang.jmorph.sword.SimpleDerivative;
import net.sf.jhunlang.jmorph.sword.SwordExtension;
public class ExtensionParser
{
protected List derivatives = new LinkedList();
protected List cases = new LinkedList();
public ExtensionParser(SwordExtension ext)
{
derivatives = ext.getDerivatives();
cases = ext.getCases();
}
/**
* Create and return a {@link Derivative} if <code>explanation</code>
* matches <code>derivatives</code>.
*/
protected Derivative derivative(String affix, String type, String pos)
{
return
new Derivative(SimpleDerivative.getSimpleDerivative(affix, type, pos));
}
protected void addCase(Parser parser, Case cas)
{
ListIterator it = derivatives.listIterator(derivatives.size());
if (it.hasPrevious())
{
Derivative der = (Derivative)it.previous();
der.addPostCase(cas);
}
else
{
cases.add(cas);
}
}
protected void addDerivative(Parser parser, Derivative der)
{
// handle special derivative after POSS_SG
if (cases.size() > 0)
{
der.getPreCases().addAll(cases);
cases.clear();
}
derivatives.add(der);
}
}
| 25.810345
| 78
| 0.671343
|
aa9d44436a45a2bcc15c332871797e059369a322
| 788
|
dart
|
Dart
|
lib/view/MyProfile.dart
|
edufolly/socialgist
|
d05a583dab8973bb112f7835a32f350c94338672
|
[
"Apache-2.0"
] | 8
|
2020-04-19T00:33:00.000Z
|
2020-05-18T02:52:04.000Z
|
lib/view/MyProfile.dart
|
3daysapp/socialgist
|
d05a583dab8973bb112f7835a32f350c94338672
|
[
"Apache-2.0"
] | 9
|
2020-04-21T17:51:10.000Z
|
2020-05-17T21:11:12.000Z
|
lib/view/MyProfile.dart
|
3daysapp/socialgist
|
d05a583dab8973bb112f7835a32f350c94338672
|
[
"Apache-2.0"
] | 1
|
2020-04-21T12:47:57.000Z
|
2020-04-21T12:47:57.000Z
|
import 'package:flutter/material.dart';
import 'package:socialgist/model/User.dart';
import 'package:socialgist/provider/AuthUserProvider.dart';
import 'package:socialgist/util/Config.dart';
import 'package:socialgist/widgets/FutureBuilderFlow.dart';
import 'package:socialgist/widgets/ProfileBody.dart';
///
///
///
class MyProfile extends StatefulWidget {
///
///
///
@override
_MyProfileState createState() => _MyProfileState();
}
///
///
///
class _MyProfileState extends State<MyProfile> {
///
///
///
@override
Widget build(BuildContext context) {
return FutureBuilderFlow<User>(
future: AuthUserProvider(context: context).me(),
dataBuilder: (context, user) {
Config().me = user;
return ProfileBody(user);
},
);
}
}
| 21.297297
| 59
| 0.678934
|
f6252d2cb128d926a9df58446183d716865a9409
| 961
|
cc
|
C++
|
aoj/2/2300.cc
|
eagletmt/procon
|
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
|
[
"MIT"
] | 1
|
2015-04-17T09:54:23.000Z
|
2015-04-17T09:54:23.000Z
|
aoj/2/2300.cc
|
eagletmt/procon
|
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
|
[
"MIT"
] | null | null | null |
aoj/2/2300.cc
|
eagletmt/procon
|
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
|
[
"MIT"
] | null | null | null |
#include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
struct color
{
double L, a, b;
};
inline double sqr(double x) { return x*x; }
inline double operator-(const color& lhs, const color& rhs)
{
return sqr(lhs.L - rhs.L) + sqr(lhs.a - rhs.a) + sqr(lhs.b - rhs.b);
}
int main()
{
int N, M;
cin >> N >> M;
vector<color> cs;
for (int i = 0; i < N; i++) {
color c;
cin >> c.L >> c.a >> c.b;
cs.push_back(c);
}
double ans = 0.0;
for (int s = 0; s < (1<<N); s++) {
vector<color> v;
for (int i = 0; i < N; i++) {
if (s & (1<<i)) {
v.push_back(cs[i]);
}
}
if (v.size() != M) {
continue;
}
double x = 0.0;
for (vector<color>::const_iterator it = v.begin(); it != v.end(); ++it) {
for (vector<color>::const_iterator jt = it+1; jt != v.end(); ++jt) {
x += *it - *jt;
}
}
ans = max(ans, x);
}
printf("%.6f\n", ans);
return 0;
}
| 18.843137
| 77
| 0.488033
|
62389c68bf072ad3d64a22c0fde907b1b71aa4d5
| 1,335
|
dart
|
Dart
|
lib/src/tree.dart
|
JarrodCColburn/console.dart
|
9123cabe97b43e89defd6d31d7dfdaa21c169610
|
[
"MIT"
] | null | null | null |
lib/src/tree.dart
|
JarrodCColburn/console.dart
|
9123cabe97b43e89defd6d31d7dfdaa21c169610
|
[
"MIT"
] | null | null | null |
lib/src/tree.dart
|
JarrodCColburn/console.dart
|
9123cabe97b43e89defd6d31d7dfdaa21c169610
|
[
"MIT"
] | null | null | null |
part of console;
/// Prints a tree. This is ported from the NPM code (the dependency tree)
void printTree(input, {String prefix: '', Map opts}) {
Console.write(createTree(input, prefix: prefix, opts: opts));
}
/// Creates a Tree (this is like the npm dependency tree)
String createTree(input, {String prefix: '', Map opts}) {
if (input is String) {
input = {"label": input};
}
var label = input.containsKey("label") ? input['label'] : "";
var nodes = input.containsKey("nodes") ? input['nodes'] : [];
var lines = label.split("\n");
var splitter =
'\n' + prefix + (nodes.isNotEmpty ? Icon.PIPE_VERTICAL : ' ') + ' ';
return prefix +
lines.join(splitter) +
'\n' +
nodes.map((node) {
var last = nodes.last == node;
var more = node is Map &&
node.containsKey("nodes") &&
node['nodes'] is List &&
node['nodes'].isNotEmpty;
var prefix_ = prefix + (last ? ' ' : Icon.PIPE_VERTICAL) + ' ';
return prefix +
(last ? Icon.PIPE_LEFT_HALF_VERTICAL : Icon.PIPE_LEFT_VERTICAL) +
Icon.PIPE_HORIZONTAL +
(more ? Icon.PIPE_BOTH : Icon.PIPE_HORIZONTAL) +
' ' +
createTree(node, prefix: prefix_, opts: opts)
.substring(prefix.length + 2);
}).join('');
}
| 31.785714
| 77
| 0.569288
|
0ec681d8eef3cbd4d9c6abc49735566edb374242
| 173
|
sql
|
SQL
|
bboss-persistent/test/com/frameworkset/Test.sql
|
bbossgroups/bboss
|
09c505a2d14943aa28463da9403f222419711e20
|
[
"Apache-2.0"
] | 246
|
2015-10-29T03:02:48.000Z
|
2022-03-31T03:58:17.000Z
|
bboss-persistent/test/com/frameworkset/Test.sql
|
bbossgroups/bboss
|
09c505a2d14943aa28463da9403f222419711e20
|
[
"Apache-2.0"
] | 4
|
2016-11-17T08:27:47.000Z
|
2021-07-28T09:31:56.000Z
|
bboss-persistent/test/com/frameworkset/Test.sql
|
bbossgroups/bboss
|
09c505a2d14943aa28463da9403f222419711e20
|
[
"Apache-2.0"
] | 148
|
2015-01-19T06:35:15.000Z
|
2022-01-07T04:53:04.000Z
|
truncate table test1
truncate table test
select * from test1
select * from test
select * from test for update nowait
seq_test
select seq_test.nextval from dual
| 15.727273
| 37
| 0.751445
|
e73477fd6e349731a36c6bd0e1e4283d763f57f3
| 8,603
|
php
|
PHP
|
get_standings_db.php
|
KurtLeadley/SJST
|
27deb95dde52df7f70cedf2cdc845b7911442f61
|
[
"MIT"
] | null | null | null |
get_standings_db.php
|
KurtLeadley/SJST
|
27deb95dde52df7f70cedf2cdc845b7911442f61
|
[
"MIT"
] | null | null | null |
get_standings_db.php
|
KurtLeadley/SJST
|
27deb95dde52df7f70cedf2cdc845b7911442f61
|
[
"MIT"
] | null | null | null |
<?php include 'header.php'; ?>
<?php include 'news.php' ; ?>
<div id="content">
<?php
$configs = include('../config.php');
$apiUrl = $configs->apiurl;
$pdoUrl = $configs->pdo;
try {
$db = new PDO($pdoUrl);
$db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
} catch (Exception $e) {
echo "Error: Could not connect to database. Please try again later.";
exit;
}
/////////////////////////////////////////////////////////
////// Getting the season by date //////////////////////
////////////////////////////////////////////////////////
$seasonYear = date('Y');
$checkDate = strtotime(date('m/d/Y')); //working
$lowerBound = strtotime("1/1/$seasonYear"); // working
$upperBound = strtotime("10/01/$seasonYear"); // working
if (($checkDate >= $lowerBound) && ($checkDate <= $upperBound)) {
$season = date('Y', strtotime('-1 years'));
$season .= "-".date('Y');
$seasonEndYear = $seasonYear;
} else {
$season = date('Y');
$season .= "-".date('Y', strtotime('+1 years'));
$seasonEndYear = (int)$seasonYear + 1;
$seasonEndYear = (string)$seasonEndYear;
}
$dbEntryBound = strtotime("07/01/$seasonEndYear");
/////////////////////////////////////////////////////////
///////////////// Get JSON Standings ////////////////////
////////////////////////////////////////////////////////
if ($checkDate < $dbEntryBound) {
$url = $apiUrl."/v2.0/pull/nhl/".$season."-regular/standings.json";
$json = file_get_contents($url);
$json = json_decode($json);
for($i=0; $i<count($json->teams); $i++) {
$id = $json->teams[$i]->team->id;
$city = $json->teams[$i]->team->city;
$name = $json->teams[$i]->team->name;
$abbreviation = $json->teams[$i]->team->abbreviation;
$gamesPlayed = $json->teams[$i]->stats->gamesPlayed;
$wins = $json->teams[$i]->stats->standings->wins;
$losses = $json->teams[$i]->stats->standings->losses;
$overtimeWins = $json->teams[$i]->stats->standings->overtimeWins;
$overtimeLosses = $json->teams[$i]->stats->standings->overtimeLosses;
$points = $json->teams[$i]->stats->standings->points;
$faceoffWins = $json->teams[$i]->stats->faceoffs->faceoffWins;
$faceoffLosses = $json->teams[$i]->stats->faceoffs->faceoffLosses;
$faceoffPercent = $json->teams[$i]->stats->faceoffs->faceoffPercent;
$powerplays = $json->teams[$i]->stats->powerplay->powerplays;
$powerplayGoals = $json->teams[$i]->stats->powerplay->powerplayGoals;
$ppPercent = ($powerplayGoals / $powerplays) * 100;
$ppPercent = round($ppPercent,2);
$penaltyKills = $json->teams[$i]->stats->powerplay->penaltyKills;
$penaltyKillGoalsAllowed = $json->teams[$i]->stats->powerplay->penaltyKillGoalsAllowed;
$pkPercent = 100-(($penaltyKillGoalsAllowed / $penaltyKills) * 100);
$pkPercent = round($pkPercent,2);
$shGF = $json->teams[$i]->stats->powerplay->shorthandedGoalsFor;
$shGA = $json->teams[$i]->stats->powerplay->shorthandedGoalsAgainst;
$gf = $json->teams[$i]->stats->miscellaneous->goalsFor;
$ga = $json->teams[$i]->stats->miscellaneous->goalsAgainst;
$shots = $json->teams[$i]->stats->miscellaneous->shots;
$penalties= $json->teams[$i]->stats->miscellaneous->penalties;
$pim = $json->teams[$i]->stats->miscellaneous->penaltyMinutes;
$hits = $json->teams[$i]->stats->miscellaneous->hits;
$leagueRank = $json->teams[$i]->overallRank->rank;
$conferenceRank = $json->teams[$i]->conferenceRank->rank;
$divisionRank = $json->teams[$i]->divisionRank->rank;
$conference = $json->teams[$i]->conferenceRank->conferenceName;
$division = $json->teams[$i]->divisionRank->divisionName;
$playoffRank = $json->teams[$i]->playoffRank->rank;
$query = $db->prepare("INSERT OR IGNORE INTO standings ('id','season','gp','wins','losses','otw','otl','pts','league_rank','conf_rank','division_rank','playoff_rank', 'conference', 'division')
VALUES (:id, :season, :gamesPlayed, :wins, :losses, :overtimeWins, :overtimeLosses, :points, :leagueRank, :conferenceRank, :divisionRank, :playoffRank, :conference, :division)");
bindParam($query, $id, $season, $gamesPlayed, $wins, $losses, $overtimeWins, $overtimeLosses, $points, $leagueRank, $conferenceRank, $divisionRank, $playoffRank, $conference, $division);
$query->execute();
$query = $db->prepare("Update standings
SET id=:id, season=:season, gp=:gamesPlayed, wins=:wins, losses=:losses, otw=:overtimeLosses, otw=:overtimeWins, pts=:points, league_rank=:leagueRank, conf_rank=:conferenceRank, division_rank=:divisionRank,
playoff_rank=:playoffRank, conference=:conference, division=:division
WHERE id=:id AND season=:season");
bindParam($query, $id, $season, $gamesPlayed, $wins, $losses, $overtimeWins, $overtimeLosses, $points, $leagueRank, $conferenceRank, $divisionRank, $playoffRank, $conference, $division);
$query->execute();
$query = $db->prepare("INSERT OR IGNORE INTO team_stats ('id','season','fow','fol','fo_percent','pps','ppg','pp_percent','pks','pkga','pk_percent','shgf', 'shga', 'gf', 'ga','shots','penalties','pim','hits')
VALUES (:id, :season, :fow, :fol, :fo_percent, :pps, :ppg, :pp_percent, :pks, :pkga, :pk_percent, :shgf, :shga, :gf, :ga, :shots,:penalties,:pim,:hits)");
bindParam_ts($query, $id, $season, $faceoffWins, $faceoffLosses, $faceoffPercent, $powerplays, $powerplayGoals, $ppPercent, $penaltyKills, $penaltyKillGoalsAllowed, $pkPercent,
$shGF, $shGA, $gf, $ga, $shots, $penalties, $pim, $hits);
$query->execute();
$query = $db->prepare("Update team_stats
SET id=:id, season=:season, fow=:fow, fol=:fol, fo_percent=:fo_percent, pps=:pps, ppg=:ppg, pp_percent=:pp_percent, pks=:pks, pkga=:pkga, pk_percent=:pk_percent,
shgf=:shgf, shga=:shga, gf=:gf, ga=:ga, shots=:shots, penalties=:penalties, pim=:pim, hits=:hits
WHERE id=:id AND season=:season");
bindParam_ts($query, $id, $season, $faceoffWins, $faceoffLosses, $faceoffPercent, $powerplays, $powerplayGoals, $ppPercent, $penaltyKills, $penaltyKillGoalsAllowed, $pkPercent,
$shGF, $shGA, $gf, $ga, $shots, $penalties, $pim, $hits);
$query->execute();
}
}
/////////////////////////////////////////////////////////
///////////////// Bind Parameters Function /////////////
////////////////////////////////////////////////////////
function bindParam($query, $id, $season, $gamesPlayed, $wins, $losses, $overtimeWins, $overtimeLosses, $points, $leagueRank, $conferenceRank, $divisionRank, $playoffRank, $conference, $division) {
$query->bindParam(':id', $id);
$query->bindParam(':season', $season);
$query->bindParam(':gamesPlayed', $gamesPlayed);
$query->bindParam(':wins', $wins);
$query->bindParam(':losses', $losses);
$query->bindParam(':overtimeWins', $overtimeWins);
$query->bindParam(':overtimeLosses', $overtimeLosses);
$query->bindParam(':points', $points);
$query->bindParam(':leagueRank', $leagueRank);
$query->bindParam(':conferenceRank', $conferenceRank);
$query->bindParam(':divisionRank', $divisionRank);
$query->bindParam(':playoffRank', $playoffRank);
$query->bindParam(':conference', $conference);
$query->bindParam(':division', $division);
}
function bindParam_ts($query, $id, $season, $faceoffWins, $faceoffLosses, $faceoffPercent, $powerplays, $powerplayGoals, $ppPercent, $penaltyKills, $penaltyKillGoalsAllowed, $pkPercent,
$shGF, $shGA, $gf, $ga, $shots, $penalties, $pim, $hits) {
$query->bindParam(':id', $id);
$query->bindParam(':season', $season);
$query->bindParam(':fow', $faceoffWins);
$query->bindParam(':fol', $faceoffLosses);
$query->bindParam(':fo_percent', $faceoffPercent);
$query->bindParam(':pps', $powerplays);
$query->bindParam(':ppg', $powerplayGoals);
$query->bindParam(':pp_percent', $ppPercent);
$query->bindParam(':pks', $penaltyKills);
$query->bindParam(':pkga', $penaltyKillGoalsAllowed);
$query->bindParam(':pk_percent', $pkPercent);
$query->bindParam(':shgf', $shGF);
$query->bindParam(':shga', $shGA);
$query->bindParam(':gf', $gf);
$query->bindParam(':ga', $ga);
$query->bindParam(':shots', $shots);
$query->bindParam(':penalties', $penalties);
$query->bindParam(':pim', $pim);
$query->bindParam(':hits', $hits);
}
?>
</div>
<?php include 'pictures.php' ; ?>
<?php include 'footer.php' ; ?>
</div>
</html>
| 50.905325
| 218
| 0.608741
|
82f8b0eb9bd51415999fb8b2303a11114237396a
| 100
|
rb
|
Ruby
|
lib/account_service/client/version.rb
|
hging/account_service-client
|
035c177f12004e27e040269bb4043c13a84ffa38
|
[
"MIT"
] | 1
|
2019-03-05T08:27:46.000Z
|
2019-03-05T08:27:46.000Z
|
lib/account_service/client/version.rb
|
hging/account_service-client
|
035c177f12004e27e040269bb4043c13a84ffa38
|
[
"MIT"
] | null | null | null |
lib/account_service/client/version.rb
|
hging/account_service-client
|
035c177f12004e27e040269bb4043c13a84ffa38
|
[
"MIT"
] | null | null | null |
module BitRabbit
module AccountService
class Client
VERSION = "0.1.3"
end
end
end
| 12.5
| 23
| 0.65
|
e001963af17ed218cbd807a88136ba45a6931f44
| 701
|
php
|
PHP
|
src/Repository/OrganizationRepositoryInterface.php
|
localheinz/github-pulse
|
e2637e529158f8bbe3ea85d5d85d0d319110352a
|
[
"MIT"
] | 12
|
2017-05-10T07:33:01.000Z
|
2020-01-10T18:59:11.000Z
|
src/Repository/OrganizationRepositoryInterface.php
|
localheinz/github-pulse
|
e2637e529158f8bbe3ea85d5d85d0d319110352a
|
[
"MIT"
] | 166
|
2017-05-10T13:47:39.000Z
|
2020-04-29T11:37:12.000Z
|
src/Repository/OrganizationRepositoryInterface.php
|
localheinz/github-pulse
|
e2637e529158f8bbe3ea85d5d85d0d319110352a
|
[
"MIT"
] | 4
|
2017-05-10T13:40:00.000Z
|
2019-10-04T14:15:55.000Z
|
<?php
declare(strict_types=1);
/**
* Copyright (c) 2017 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/github-pulse
*/
namespace Localheinz\GitHub\Pulse\Repository;
use Localheinz\GitHub\Pulse\Exception;
use Localheinz\GitHub\Pulse\Resource;
interface OrganizationRepositoryInterface
{
/**
* @param string $name
*
* @throws Exception\ResourceNotFoundException
* @throws \InvalidArgumentException
*
* @return Resource\OrganizationInterface
*/
public function find(string $name): Resource\OrganizationInterface;
}
| 22.612903
| 71
| 0.727532
|
d2221906baadb476e0ff519e333eb8641f091b33
| 391
|
asm
|
Assembly
|
programs/oeis/013/A013738.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/013/A013738.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/013/A013738.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A013738: a(n) = 6^(3*n + 1).
; 6,1296,279936,60466176,13060694016,2821109907456,609359740010496,131621703842267136,28430288029929701376,6140942214464815497216,1326443518324400147398656,286511799958070431838109696,61886548790943213277031694336,13367494538843734067838845976576,2887378820390246558653190730940416,623673825204293256669089197883129856
mov $1,216
pow $1,$0
mul $1,6
mov $0,$1
| 48.875
| 318
| 0.859335
|
14c460e8c6ead3f0f5556d0e5425ebe1c10bae65
| 1,452
|
tsx
|
TypeScript
|
src/components/navbar/Navbar.tsx
|
Humch/react-components
|
9de2fa020f3f570a8f11313860559600e6f60b4f
|
[
"MIT"
] | 2
|
2021-07-07T19:41:19.000Z
|
2021-07-07T19:55:54.000Z
|
src/components/navbar/Navbar.tsx
|
Humch/react-components
|
9de2fa020f3f570a8f11313860559600e6f60b4f
|
[
"MIT"
] | null | null | null |
src/components/navbar/Navbar.tsx
|
Humch/react-components
|
9de2fa020f3f570a8f11313860559600e6f60b4f
|
[
"MIT"
] | 1
|
2021-07-12T15:55:56.000Z
|
2021-07-12T15:55:56.000Z
|
import React, { ReactNode, useState, useCallback } from 'react';
import clsx from 'clsx';
import { Colors, AnotherColors } from '../../types';
import NavbarBrand from '../navbar-brand/NavbarBrand';
export interface NavbarProps {
children: ReactNode;
label: string;
brandUrl: string;
dataTarget: string;
navbarBrand: ReactNode;
colors?: Colors | Omit<AnotherColors, 'is-text' | 'is-ghost'>;
isTransparent?: boolean;
isFixed?: 'top' | 'bottom';
isSpaced?: boolean;
hasShadow?: boolean;
}
const Navbar: React.FC<NavbarProps> = ({
children,
label,
brandUrl,
dataTarget,
navbarBrand,
colors,
isTransparent,
isFixed,
isSpaced,
hasShadow,
}) => {
const [isOpen, setIsOpen] = useState(false);
const toggleMenu = useCallback(() => {
setIsOpen(!isOpen);
}, [isOpen]);
return (
<nav
className={clsx(
'navbar',
colors,
isTransparent && 'is-transparent',
isFixed && `is-fixed-${isFixed}`,
isSpaced && 'is-spaced',
hasShadow && 'has-shadow'
)}
role="navigation"
aria-label={label}
>
<NavbarBrand
brandUrl={brandUrl}
dataTarget={dataTarget}
toggleMenu={toggleMenu}
isOpen={isOpen}
>
{navbarBrand}
</NavbarBrand>
<div id={dataTarget} className={clsx('navbar-menu', isOpen && 'is-active')}>
{children}
</div>
</nav>
);
};
export default Navbar;
| 21.043478
| 82
| 0.605372
|
1438b65fa6c85b8ac989bb59412feebb3550b953
| 411
|
tsx
|
TypeScript
|
assets/js/components/interest_icon.tsx
|
zephraph/readtome
|
64a5f773bdc3c19d9c5ac50a04aa14e446e36c55
|
[
"MIT"
] | null | null | null |
assets/js/components/interest_icon.tsx
|
zephraph/readtome
|
64a5f773bdc3c19d9c5ac50a04aa14e446e36c55
|
[
"MIT"
] | null | null | null |
assets/js/components/interest_icon.tsx
|
zephraph/readtome
|
64a5f773bdc3c19d9c5ac50a04aa14e446e36c55
|
[
"MIT"
] | null | null | null |
import React from "react";
import { Icon } from "semantic-ui-react";
interface Props {
type: string;
}
export const InterestIcon = (props: Props) => {
switch (props.type) {
case "LISTENED":
return <Icon name="headphones" />;
case "WATCHED":
return <Icon name="tv" />;
case "SAW":
return <Icon name="pallet" />;
case "READ":
return <Icon name="newspaper" />;
}
};
| 20.55
| 47
| 0.588808
|
ed0e17212337e1b4e61bce1579ee0079490d14b0
| 100
|
c
|
C
|
clang/test/Analysis/scan-build/Inputs/multidirectory_project/directory2/file2.c
|
medismailben/llvm-project
|
e334a839032fe500c3bba22bf976ab7af13ce1c1
|
[
"Apache-2.0"
] | 2,338
|
2018-06-19T17:34:51.000Z
|
2022-03-31T11:00:37.000Z
|
clang/test/Analysis/scan-build/Inputs/multidirectory_project/directory2/file2.c
|
medismailben/llvm-project
|
e334a839032fe500c3bba22bf976ab7af13ce1c1
|
[
"Apache-2.0"
] | 3,740
|
2019-01-23T15:36:48.000Z
|
2022-03-31T22:01:13.000Z
|
clang/test/Analysis/scan-build/Inputs/multidirectory_project/directory2/file2.c
|
medismailben/llvm-project
|
e334a839032fe500c3bba22bf976ab7af13ce1c1
|
[
"Apache-2.0"
] | 500
|
2019-01-23T07:49:22.000Z
|
2022-03-30T02:59:37.000Z
|
void function2(int *o) {
if (!o) {
*o = 7; // This will emit a null pointer diagnostic.
}
}
| 16.666667
| 56
| 0.56
|
2fb362d1214c2e0358359ad3fad9859b269b610a
| 2,017
|
py
|
Python
|
doc/sphinx/source/gensidebar.py
|
chrisdane/ESMValTool
|
35e0c2b0dbaa0927a2d677f382b43520633a1a0f
|
[
"Apache-2.0"
] | 1
|
2019-11-28T13:09:42.000Z
|
2019-11-28T13:09:42.000Z
|
doc/sphinx/source/gensidebar.py
|
chrisdane/ESMValTool
|
35e0c2b0dbaa0927a2d677f382b43520633a1a0f
|
[
"Apache-2.0"
] | null | null | null |
doc/sphinx/source/gensidebar.py
|
chrisdane/ESMValTool
|
35e0c2b0dbaa0927a2d677f382b43520633a1a0f
|
[
"Apache-2.0"
] | 1
|
2019-11-29T00:50:30.000Z
|
2019-11-29T00:50:30.000Z
|
"""Generates sidebar/toctree.
Generates the common sidebar/toctree for the sphinx/ReadTheDocs
documentation of the ESMValTool and its subprojects.
"""
import os
def _write_if_changed(fname, contents):
"""Write/update file only if changed."""
try:
with open(fname, "r") as stream:
old_contents = stream.read()
except IOError:
old_contents = ""
if old_contents != contents:
with open(fname, "w") as stream:
stream.write(contents)
def generate_sidebar(conf, conf_api):
"""Generate sidebar.
Generate sidebar for ReadTheDocs with links to subprojects and
superprojects accordingly.
"""
# determine 'latest' or 'stable'
# if not conf.do_gen:
do_gen = os.environ.get("SIDEBAR", None) == "1" or conf["on_rtd"]
lines = ["", ".. DO NOT MODIFY! THIS PAGE IS AUTOGENERATED!", ""]
def _toctree():
lines.extend([".. toctree::", " :maxdepth: 1", ""])
def _endl():
lines.append("")
def _write(project, desc, link, mapping=conf['intersphinx_mapping']):
if project != conf_api:
if do_gen:
args = desc, mapping[project][0], link
lines.append(" %s <%s%s.html>" % args)
else:
args = desc, link
lines.append(" %s <%s>" % args)
#
# Specify the sidebar contents here
#
_toctree()
_write("esmvaltool", "Preface", "preface/index")
_write("esmvaltool", "Gallery", "gallery")
_write("esmvaltool", "Getting started", "getting_started/index")
_write("esmvaltool", "Recipes", "recipes/index")
_write("esmvalcore", "ESMValCore", "esmvalcore/index")
_write("esmvaltool", "Guidelines for diagnostic developers",
"esmvaldiag/index")
_write("esmvalcore", "ESMValCore API Reference",
"api/esmvalcore")
_write("esmvaltool", "Diagnostics API Reference",
"api/esmvaltool")
_endl()
_write_if_changed("_sidebar.rst.inc", "\n".join(lines))
| 29.231884
| 73
| 0.609321
|
3d83d393f1dc19723809f22dd9fb798d5105954f
| 810
|
swift
|
Swift
|
Sources/StaticFiles/MediaTag.swift
|
bobvoorneveld/StaticFiles
|
d94d95afd5563414b79b75745b6669c0d622bb67
|
[
"MIT"
] | null | null | null |
Sources/StaticFiles/MediaTag.swift
|
bobvoorneveld/StaticFiles
|
d94d95afd5563414b79b75745b6669c0d622bb67
|
[
"MIT"
] | null | null | null |
Sources/StaticFiles/MediaTag.swift
|
bobvoorneveld/StaticFiles
|
d94d95afd5563414b79b75745b6669c0d622bb67
|
[
"MIT"
] | null | null | null |
//
// MediaTag.swift
//
//
// Created by Bob Voorneveld on 30/09/2021.
//
import Leaf
import Foundation
struct MediaTagError: Error {}
public struct MediaTag: LeafTag {
public init() {}
public func render(_ ctx: LeafContext) throws -> LeafData {
guard let path = ctx.parameters.first?.string else {
ctx.request?.logger.error("Must include path to media file")
throw MediaTagError()
}
// Check if this file is in the manifest.
guard let newPath = ctx.application?.staticFiles?.get(path) else {
ctx.request?.logger.warning("Could not find file, returning original file. \(path)")
return LeafData.string(path)
}
// Return the hashed version of the file.
return LeafData.string(newPath)
}
}
| 26.129032
| 96
| 0.628395
|
a0fead079d64f84aed1ca1975c47ee74214cb4c4
| 2,844
|
swift
|
Swift
|
Source/SwiftLintFramework/Rules/RuleConfigurations/MissingDocsRuleConfiguration.swift
|
leadingagile/SwiftLint
|
db229aa2211ebf73cb1ee94e3f865a83948a7695
|
[
"MIT"
] | null | null | null |
Source/SwiftLintFramework/Rules/RuleConfigurations/MissingDocsRuleConfiguration.swift
|
leadingagile/SwiftLint
|
db229aa2211ebf73cb1ee94e3f865a83948a7695
|
[
"MIT"
] | 1
|
2021-09-09T06:16:59.000Z
|
2021-09-09T06:16:59.000Z
|
Source/SwiftLintFramework/Rules/RuleConfigurations/MissingDocsRuleConfiguration.swift
|
Lutzifer/SwiftLint
|
1f44d563573bd1a2d292fa05a7fe47f60ee511a9
|
[
"MIT"
] | null | null | null |
public struct MissingDocsRuleConfiguration: RuleConfiguration, Equatable {
private(set) var parameters = [RuleParameter<AccessControlLevel>]()
private(set) var excludesExtensions = true
private(set) var excludesInheritedTypes = true
public var consoleDescription: String {
let parametersDescription = parameters.group { $0.severity }.sorted { $0.key.rawValue < $1.key.rawValue }.map {
"\($0.rawValue): \($1.map { $0.value.description }.sorted(by: <).joined(separator: ", "))"
}.joined(separator: ", ")
if parametersDescription.isEmpty {
return [
"excludes_extensions: \(excludesExtensions)",
"excludes_inherited_types: \(excludesInheritedTypes)"
]
.joined(separator: ", ")
} else {
return [
parametersDescription,
"excludes_extensions: \(excludesExtensions)",
"excludes_inherited_types: \(excludesInheritedTypes)"
]
.joined(separator: ", ")
}
}
public mutating func apply(configuration: Any) throws {
guard let dict = configuration as? [String: Any] else {
throw ConfigurationError.unknownConfiguration
}
if let shouldExcludeExtensions = dict["excludes_extensions"] as? Bool {
excludesExtensions = shouldExcludeExtensions
}
if let shouldExcludeInheritedTypes = dict["excludes_inherited_types"] as? Bool {
excludesExtensions = shouldExcludeInheritedTypes
}
var parameters: [RuleParameter<AccessControlLevel>] = []
for (key, value) in dict {
guard let severity = ViolationSeverity(rawValue: key) else {
throw ConfigurationError.unknownConfiguration
}
if let array = [String].array(of: value) {
let rules: [RuleParameter<AccessControlLevel>] = try array
.map { val -> RuleParameter<AccessControlLevel> in
guard let acl = AccessControlLevel(description: val) else {
throw ConfigurationError.unknownConfiguration
}
return RuleParameter<AccessControlLevel>(severity: severity, value: acl)
}
parameters.append(contentsOf: rules)
} else if let string = value as? String, let acl = AccessControlLevel(description: string) {
let rule = RuleParameter<AccessControlLevel>(severity: severity, value: acl)
parameters.append(rule)
}
}
guard parameters.count == parameters.map({ $0.value }).unique.count else {
throw ConfigurationError.unknownConfiguration
}
self.parameters = parameters
}
}
| 40.056338
| 119
| 0.596343
|
146713c81780e10cc595873aa6ac5d2c2455c7e0
| 11,353
|
sql
|
SQL
|
deliveries/delivery-2/create.sql
|
luist18/feup-bdad-proj
|
db552388b0337b4ed65fea1f9cab1593c1b9b8df
|
[
"MIT"
] | null | null | null |
deliveries/delivery-2/create.sql
|
luist18/feup-bdad-proj
|
db552388b0337b4ed65fea1f9cab1593c1b9b8df
|
[
"MIT"
] | null | null | null |
deliveries/delivery-2/create.sql
|
luist18/feup-bdad-proj
|
db552388b0337b4ed65fea1f9cab1593c1b9b8df
|
[
"MIT"
] | 1
|
2021-06-08T19:10:38.000Z
|
2021-06-08T19:10:38.000Z
|
PRAGMA foreign_keys = on;
DROP TABLE IF EXISTS job_group_vaccination_group;
DROP TABLE IF EXISTS pathology_vaccination_group;
DROP TABLE IF EXISTS pathology_reacts_adversely_to_vaccine;
DROP TABLE IF EXISTS citizen_belongs_to_vaccination_group;
DROP TABLE IF EXISTS vaccination_group_vaccine;
DROP TABLE IF EXISTS citizen_has_pathology;
DROP TABLE IF EXISTS inoculation;
DROP TABLE IF EXISTS district;
DROP TABLE IF EXISTS county;
DROP TABLE IF EXISTS vaccine_storage;
DROP TABLE IF EXISTS transportation;
DROP TABLE IF EXISTS delivery;
DROP TABLE IF EXISTS zip_code;
DROP TABLE IF EXISTS address;
DROP TABLE IF EXISTS job_group;
DROP TABLE IF EXISTS job;
DROP TABLE IF EXISTS vaccine;
DROP TABLE IF EXISTS pathology;
DROP TABLE IF EXISTS vaccination_group;
DROP TABLE IF EXISTS citizen;
DROP TABLE IF EXISTS infrastructure;
DROP TABLE IF EXISTS storehouse;
DROP TABLE IF EXISTS vaccination_centre;
DROP TABLE IF EXISTS distribution_centre;
CREATE TABLE district (
id INTEGER,
name VARCHAR(64) UNIQUE NOT NULL,
CONSTRAINT district_pk PRIMARY KEY (id)
);
CREATE TABLE county (
id INTEGER,
name VARCHAR(64) NOT NULL,
district_id INTEGER NOT NULL,
CONSTRAINT county_pk PRIMARY KEY (id),
CONSTRAINT county_district_fk FOREIGN KEY (district_id) REFERENCES district ON DELETE CASCADE,
CONSTRAINT county_name_unique UNIQUE (name, district_id)
);
CREATE TABLE zip_code (
id INTEGER,
zip_code VARCHAR(16) UNIQUE NOT NULL,
county_id INTEGER NOT NULL,
CONSTRAINT zip_code_pk PRIMARY KEY (id),
CONSTRAINT zip_code_county_fk FOREIGN KEY (county_id) REFERENCES county ON DELETE CASCADE
);
CREATE TABLE address (
id INTEGER,
zip_code_id INTEGER,
street_name VARCHAR(128) NOT NULL,
door_number INTEGER,
CONSTRAINT address_pk PRIMARY KEY (id),
CONSTRAINT address_zip_code_fk FOREIGN KEY (zip_code_id) REFERENCES zip_code ON DELETE SET NULL,
CONSTRAINT address_door_number_check CHECK (
door_number IS NULL
OR door_number >= 1
),
CONSTRAINT address_unique UNIQUE (zip_code_id, street_name, door_number)
);
CREATE TABLE job_group (
id INTEGER,
name VARCHAR(32) UNIQUE NOT NULL,
vaccinated_on_job BOOLEAN DEFAULT false NOT NULL,
CONSTRAINT job_group_pk PRIMARY KEY (id)
);
CREATE TABLE job (
id INTEGER,
name VARCHAR(32) NOT NULL,
group_id INTEGER,
address_id INTEGER,
CONSTRAINT job_pk PRIMARY KEY (id),
CONSTRAINT job_group_fk FOREIGN KEY (group_id) REFERENCES job_group ON DELETE SET NULL,
CONSTRAINT job_address_fk FOREIGN KEY (address_id) REFERENCES address ON DELETE SET NULL,
CONSTRAINT job_unique UNIQUE (name, group_id, address_id)
);
CREATE TABLE pathology (
id INTEGER,
scientific_name VARCHAR(128) UNIQUE NOT NULL,
common_name VARCHAR(128),
CONSTRAINT pathology_pk PRIMARY KEY (id)
);
CREATE TABLE vaccine (
id INTEGER,
name VARCHAR(128) UNIQUE NOT NULL,
producer VARCHAR(128) NOT NULL,
minimum_temperature FLOAT NOT NULL,
maximum_temperature FLOAT NOT NULL,
prevents_pathology_id INTEGER NOT NULL,
inoculations_number INTEGER NOT NULL,
route VARCHAR(16),
additional_info VARCHAR(4096),
CONSTRAINT vaccine PRIMARY KEY (id),
CONSTRAINT vaccine_prevents_pathology_fk FOREIGN KEY (prevents_pathology_id) REFERENCES pathology ON DELETE CASCADE,
CONSTRAINT vaccine_inoculations_num_check CHECK (inoculations_number > 0),
CONSTRAINT vaccine_temperature_range_check CHECK (
minimum_temperature <= maximum_temperature
)
);
CREATE TABLE vaccination_group (
id INTEGER,
minimum_age INTEGER NOT NULL,
maximum_age INTEGER,
priority_level INTEGER NOT NULL,
CONSTRAINT vaccination_group_pk PRIMARY KEY (id),
CONSTRAINT vaccination_group_age_range_check CHECK (
minimum_age >= 0
AND (
minimum_age <= maximum_age
OR maximum_age IS NULL
)
),
CONSTRAINT vaccination_group_priority_level_check CHECK (priority_level >= 0)
);
CREATE TABLE pathology_reacts_adversely_to_vaccine (
vaccine_id INTEGER,
pathology_id INTEGER,
CONSTRAINT pathology_reacts_adversely_to_vaccine_pk PRIMARY KEY (vaccine_id, pathology_id),
CONSTRAINT pathology_reacts_adversely_to_vaccine_vaccine_fk FOREIGN KEY (vaccine_id) REFERENCES vaccine ON DELETE CASCADE,
CONSTRAINT pathology_reacts_adversely_to_vaccine_pathology_fk FOREIGN KEY (pathology_id) REFERENCES pathology ON DELETE CASCADE
);
CREATE TABLE citizen (
id INTEGER,
citizen_card_number VARCHAR(64) UNIQUE NOT NULL,
name VARCHAR(256) NOT NULL,
birth_date DATE NOT NULL,
gender VARCHAR(32) NOT NULL,
job_id INTEGER,
address_id INTEGER,
CONSTRAINT citizen_pk PRIMARY KEY (id),
CONSTRAINT citizen_job_fk FOREIGN KEY (job_id) REFERENCES job ON DELETE SET NULL,
CONSTRAINT citizen_address_fk FOREIGN KEY (address_id) REFERENCES address ON DELETE SET NULL
);
CREATE TABLE job_group_vaccination_group (
job_group_id INTEGER,
vaccination_group_id INTEGER,
CONSTRAINT job_group_vaccination_group_pk PRIMARY KEY (job_group_id, vaccination_group_id),
CONSTRAINT job_group_vaccination_group_job_group_fk FOREIGN KEY (job_group_id) REFERENCES job_group ON DELETE CASCADE,
CONSTRAINT job_group_vaccination_group_vaccination_group_fk FOREIGN KEY (vaccination_group_id) REFERENCES vaccination_group ON DELETE CASCADE
);
CREATE TABLE pathology_vaccination_group (
pathology_id INTEGER,
vaccination_group_id INTEGER,
CONSTRAINT pathology_vaccination_group_pk PRIMARY KEY (pathology_id, vaccination_group_id),
CONSTRAINT pathology_vaccination_group_pathology_fk FOREIGN KEY (pathology_id) REFERENCES pathology ON DELETE CASCADE,
CONSTRAINT pathology_vaccination_group_vaccination_group_fk FOREIGN KEY (vaccination_group_id) REFERENCES vaccination_group ON DELETE CASCADE
);
CREATE TABLE vaccination_group_vaccine (
vaccination_group_id INTEGER,
vaccine_id INTEGER,
CONSTRAINT vaccination_group_vaccine_pk PRIMARY KEY (vaccination_group_id, vaccine_id),
CONSTRAINT vaccination_group_vaccine_vaccination_group_fk FOREIGN KEY (vaccination_group_id) REFERENCES vaccination_group ON DELETE CASCADE,
CONSTRAINT vaccination_group_vaccine_vaccine_fk FOREIGN KEY (vaccine_id) REFERENCES vaccine ON DELETE CASCADE
);
CREATE TABLE citizen_has_pathology (
citizen_id INTEGER,
pathology_id INTEGER,
CONSTRAINT citizen_has_pathology_pk PRIMARY KEY (citizen_id, pathology_id),
CONSTRAINT citizen_has_pathology_citizen_fk FOREIGN KEY (citizen_id) REFERENCES citizen ON DELETE CASCADE,
CONSTRAINT citizen_has_pathology_pathology_fk FOREIGN KEY (pathology_id) REFERENCES pathology ON DELETE CASCADE
);
CREATE TABLE citizen_belongs_to_vaccination_group (
citizen_id INTEGER,
vaccination_group_id INTEGER,
CONSTRAINT citizen_has_pathology_pk PRIMARY KEY (citizen_id, vaccination_group_id),
CONSTRAINT citizen_has_pathology_citizen_fk FOREIGN KEY (citizen_id) REFERENCES citizen ON DELETE CASCADE,
CONSTRAINT citizen_has_pathology_vaccination_group_fk FOREIGN KEY (vaccination_group_id) REFERENCES vaccination_group ON DELETE CASCADE
);
CREATE TABLE inoculation (
id INTEGER,
inoculation_number INTEGER NOT NULL,
date DATE,
vaccination_centre_id INTEGER,
vaccine_id INTEGER NOT NULL,
citizen_id INTEGER NOT NULL,
CONSTRAINT inoculation_pk PRIMARY KEY (id),
CONSTRAINT inoculation_vaccination_centre_fk FOREIGN KEY (vaccination_centre_id) REFERENCES vaccination_centre ON DELETE SET NULL,
CONSTRAINT inoculation_vaccine_fk FOREIGN KEY (vaccine_id) REFERENCES vaccine ON DELETE CASCADE,
CONSTRAINT inoculation_citizen_fk FOREIGN KEY (citizen_id) REFERENCES citizen ON DELETE CASCADE,
CONSTRAINT inoculation_number_check CHECK (inoculation_number >= 1),
CONSTRAINT inoculation_unique UNIQUE (inoculation_number, date, vaccine_id, citizen_id)
);
CREATE TABLE infrastructure (
id INTEGER,
address_id INTEGER NOT NULL,
total_stored_vaccines INTEGER,
CONSTRAINT infrastructure_pk PRIMARY KEY (id),
CONSTRAINT infrastructure_address_fk FOREIGN KEY (address_id) REFERENCES address ON DELETE CASCADE,
CONSTRAINT infrastructure_total_stored_vaccines_check CHECK (total_stored_vaccines >= 0)
);
CREATE TABLE storehouse (
infrastructure_id INTEGER,
maximum_capacity INTEGER,
minimum_temperature FLOAT,
maximum_temperature FLOAT,
CONSTRAINT storehouse_pk PRIMARY KEY (infrastructure_id),
CONSTRAINT storehouse_infrastructure_fk FOREIGN KEY (infrastructure_id) REFERENCES infrastructure ON DELETE CASCADE,
CONSTRAINT storehouse_maximum_capacity_check CHECK (
maximum_capacity IS NULL
OR maximum_capacity > 0
),
CONSTRAINT storehouse_temperature_check CHECK (
minimum_temperature IS NULL
OR maximum_temperature IS NULL
OR maximum_temperature >= minimum_temperature
)
);
CREATE TABLE distribution_centre (
infrastructure_id INTEGER,
CONSTRAINT distribution_centre_pk PRIMARY KEY (infrastructure_id),
CONSTRAINT distribution_centre_infrastructure_fk FOREIGN KEY (infrastructure_id) REFERENCES infrastructure ON DELETE CASCADE
);
CREATE TABLE vaccination_centre (
infrastructure_id INTEGER,
CONSTRAINT vaccination_centre_pk PRIMARY KEY (infrastructure_id),
CONSTRAINT vaccination_centre_infrastructure_fk FOREIGN KEY (infrastructure_id) REFERENCES infrastructure ON DELETE CASCADE
);
CREATE TABLE delivery (
id INTEGER,
distribution_centre_id INTEGER NOT NULL,
vaccine_id INTEGER NOT NULL,
amount INTEGER NOT NULL,
arrival_date DATE,
CONSTRAINT delivery_pk PRIMARY KEY (id),
CONSTRAINT delivery_distribution_centre_fk FOREIGN KEY (distribution_centre_id) REFERENCES distribution_centre ON DELETE CASCADE,
CONSTRAINT delivery_vaccine_fk FOREIGN KEY (vaccine_id) REFERENCES vaccine ON DELETE CASCADE,
CONSTRAINT delivery_amount_check CHECK (amount > 0)
);
CREATE TABLE transportation (
id INTEGER,
shipment_date DATE,
arrival_date DATE,
amount INTEGER NOT NULL,
"from" INTEGER,
"to" INTEGER NOT NULL,
vaccine_id INTEGER NOT NULL,
CONSTRAINT transportation_pk PRIMARY KEY (id),
CONSTRAINT transportation_infrastructre_fk1 FOREIGN KEY ("from") REFERENCES infrastructure ON DELETE SET NULL,
CONSTRAINT transportation_infrastructre_fk2 FOREIGN KEY ("to") REFERENCES infrastructure ON DELETE CASCADE,
CONSTRAINT transportation_vaccine_fk FOREIGN KEY (vaccine_id) REFERENCES vaccine ON DELETE CASCADE,
CONSTRAINT transportation_amount_check CHECK (amount > 0),
CONSTRAINT transportation_date_check CHECK (
shipment_date IS NULL
OR arrival_date IS NULL
OR arrival_date >= shipment_date
)
);
CREATE TABLE vaccine_storage (
vaccine_id INTEGER,
infrastructure_id INTEGER,
amount INTEGER,
CONSTRAINT vaccine_storage_pk PRIMARY KEY (vaccine_id, infrastructure_id),
CONSTRAINT vaccine_storage_vaccine_fk FOREIGN KEY (vaccine_id) REFERENCES vaccine ON DELETE CASCADE,
CONSTRAINT vaccine_storage_infrastructure_fk FOREIGN KEY (infrastructure_id) REFERENCES infrastructure ON DELETE CASCADE,
CONSTRAINT vaccine_storage_storage_amount_check CHECK (
amount IS NULL
OR amount >= 0
)
);
| 40.258865
| 145
| 0.787369
|
a9db5e794a1798a7c5467f171335d8f2d619e6ec
| 35,884
|
php
|
PHP
|
customer/default.php
|
qbentil/ZONGO-MARKET
|
d5c2e7db99ab0fa9cfbfebde0a14907577a88b24
|
[
"MIT"
] | 2
|
2022-03-14T09:18:28.000Z
|
2022-03-14T09:57:03.000Z
|
home/default.php
|
qbentil/ZONGO-MARKET
|
d5c2e7db99ab0fa9cfbfebde0a14907577a88b24
|
[
"MIT"
] | null | null | null |
home/default.php
|
qbentil/ZONGO-MARKET
|
d5c2e7db99ab0fa9cfbfebde0a14907577a88b24
|
[
"MIT"
] | null | null | null |
<link rel="stylesheet" href="css/default.css">
<?php require "includes/head.php" ?>
<!-- Navigation -->
<?php include "./includes/navbar.php" ?>
<div class="container">
<div class="well well-sm">
<strong>Sorted Order Here</strong>
</div>
<div class="grid">
<div class="content">
<ul class="rig columns-4">
<li>
<a href="#">
<div class="img-box">
<img src="images/hp2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<h>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="active fa fa-star-o"></i>
</h>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/hp1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/h_blender2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/phone3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
</ul>
<ul class="rig columns-4">
<li>
<a href="#">
<div class="img-box">
<img src="images/hp2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="active fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/hp1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/h_blender2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/phone3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
</ul>
<ul class="rig columns-4">
<li>
<a href="#">
<div class="img-box">
<img src="images/hp2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="active fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/hp1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/h_blender2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/phone3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
</ul>
<ul class="rig columns-4">
<li>
<a href="#">
<div class="img-box">
<img src="images/hp2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="active fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/hp1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/casio1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/h_blender2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt2.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/phone3.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
<li>
<a href="#">
<div class="img-box">
<img src="images/la_shirt1.jpg" class="img-responsive img-fluid" alt="">
</div>
</a>
<h4 class = "pro-title">Image Title</h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<div class="price"> $999.99</div>
<small>$1,399.99</small>
<hr>
<span class = "icons">
<a href="#" class="btn " title = "View product"><i class="fa fa-picture-o"></i></a>
<a href="#" class="btn " title = "Add to Wishlist"><i class="fa fa-heart"></i></a>
<a href="#" class="btn "><i class="fa fa-shopping-cart"></i>Add to Cart</a>
</span>
</li>
</ul>
</div>
</div>
<!-- /.container class with content as the id-->
<!-- Footer -->
</div>
<?php require "includes/scripts.php" ?>
| 57.877419
| 166
| 0.399147
|
0d2bc3de7dd0464f0c43f237733ff56a5087d158
| 1,609
|
cs
|
C#
|
slimCat/Models/NotificationModels.cs
|
Axaia/slimCat
|
e0db7492a285a220e5c0f6c745a70be02cfb0040
|
[
"BSD-2-Clause"
] | 23
|
2015-01-12T11:41:21.000Z
|
2021-04-02T04:27:54.000Z
|
slimCat/Models/NotificationModels.cs
|
Axaia/slimCat
|
e0db7492a285a220e5c0f6c745a70be02cfb0040
|
[
"BSD-2-Clause"
] | 179
|
2015-01-04T19:34:31.000Z
|
2021-11-28T17:15:27.000Z
|
slimCat/Models/NotificationModels.cs
|
Axaia/slimCat
|
e0db7492a285a220e5c0f6c745a70be02cfb0040
|
[
"BSD-2-Clause"
] | 34
|
2015-03-31T20:47:42.000Z
|
2022-02-21T13:53:55.000Z
|
#region Copyright
// <copyright file="NotificationModels.cs">
// Copyright (c) 2013-2015, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
// </copyright>
#endregion
namespace slimCat.Models
{
#region Usings
using System;
using System.Windows.Documents;
using Services;
using ViewModels;
#endregion
/// <summary>
/// The notification model.
/// </summary>
public abstract class NotificationModel : MessageBase, IViewableObject, ICanNavigate, IDisplayToast
{
public abstract void Navigate(IChatState chatState);
public abstract void DisplayNewToast(IChatState chatState, IManageToasts toastsManager);
public abstract Block View { get; }
}
public interface ICanNavigate
{
void Navigate(IChatState chatState);
}
public interface IDisplayToast
{
void DisplayNewToast(IChatState chatState, IManageToasts toastsManager);
}
public interface IManageToasts
{
Action FlashWindow { get; }
Action PlaySound { get; }
Action<NotificationModel> AddNotification { get; }
ToastNotificationsViewModel Toast { get; }
Action ShowToast { get; }
}
}
| 28.22807
| 103
| 0.679925
|
bb00d438f6bde2f5377a0a5ac0d3ec3bc0fa24c7
| 252,663
|
sql
|
SQL
|
src/main/resources/db/changelog/20201001_1606.mysql.sql
|
Telli/mots
|
cd35d81da0efd4eefbd062410f16b30faaf6792f
|
[
"Apache-2.0"
] | 3
|
2017-10-23T21:15:27.000Z
|
2018-02-16T12:20:03.000Z
|
src/main/resources/db/changelog/20201001_1606.mysql.sql
|
Telli/mots
|
cd35d81da0efd4eefbd062410f16b30faaf6792f
|
[
"Apache-2.0"
] | 44
|
2017-11-08T11:13:55.000Z
|
2022-02-12T04:02:22.000Z
|
src/main/resources/db/changelog/20201001_1606.mysql.sql
|
Telli/mots
|
cd35d81da0efd4eefbd062410f16b30faaf6792f
|
[
"Apache-2.0"
] | 5
|
2017-10-06T17:17:42.000Z
|
2020-10-05T23:32:00.000Z
|
--liquibase formatted sql
--changeset pmuchowski:1601852823634-1
ALTER TABLE ivr_config ADD default_language_id VARCHAR(255) NULL;
--changeset pmuchowski:1601852823634-2
ALTER TABLE ivr_config_languages DROP FOREIGN KEY FKpf7yd3nqoj629q8gbu95o6yrg;
--changeset pmuchowski:1601852823634-3
DROP TABLE ivr_config_languages;
--changeset pmuchowski:1601852823634-4
ALTER TABLE community_health_worker DROP COLUMN preferred_language;
--changeset pmuchowski:1601852823634-5
UPDATE jasper_templates SET `data` =
X'aced0005737200286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f727400000000000027d80200034c000b636f6d70696c65446174617400164c6a6176612f696f2f53657269616c697a61626c653b4c0011636f6d70696c654e616d655375666669787400124c6a6176612f6c616e672f537472696e673b4c000d636f6d70696c6572436c61737371007e00027872002d6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655265706f727400000000000027d802002b49001950534555444f5f53455249414c5f56455253494f4e5f55494449000c626f74746f6d4d617267696e49000b636f6c756d6e436f756e7449000d636f6c756d6e53706163696e6749000b636f6c756d6e57696474685a001069676e6f7265506167696e6174696f6e5a00136973466c6f6174436f6c756d6e466f6f7465725a0010697353756d6d6172794e6577506167655a0020697353756d6d6172795769746850616765486561646572416e64466f6f7465725a000e69735469746c654e65775061676549000a6c6566744d617267696e42000b6f7269656e746174696f6e49000a7061676548656967687449000970616765576964746842000a7072696e744f7264657249000b72696768744d617267696e490009746f704d617267696e42000e7768656e4e6f44617461547970654c000a6261636b67726f756e647400244c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5242616e643b4c000f636f6c756d6e446972656374696f6e7400334c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f52756e446972656374696f6e456e756d3b4c000c636f6c756d6e466f6f74657271007e00044c000c636f6c756d6e48656164657271007e00045b000864617461736574737400285b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52446174617365743b4c000c64656661756c745374796c657400254c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525374796c653b4c000664657461696c71007e00044c000d64657461696c53656374696f6e7400274c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5253656374696f6e3b4c0012666f726d6174466163746f7279436c61737371007e00024c000a696d706f72747353657474000f4c6a6176612f7574696c2f5365743b4c00086c616e677561676571007e00024c000e6c61737450616765466f6f74657271007e00044c000b6d61696e446174617365747400274c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52446174617365743b4c00046e616d6571007e00024c00066e6f4461746171007e00044c00106f7269656e746174696f6e56616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4f7269656e746174696f6e456e756d3b4c000a70616765466f6f74657271007e00044c000a7061676548656164657271007e00044c000f7072696e744f7264657256616c75657400314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5072696e744f72646572456e756d3b4c000b73656374696f6e547970657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f53656374696f6e54797065456e756d3b5b00067374796c65737400265b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525374796c653b4c000773756d6d61727971007e00045b000974656d706c6174657374002f5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525265706f727454656d706c6174653b4c00057469746c6571007e00044c00137768656e4e6f446174615479706556616c75657400354c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5768656e4e6f4461746154797065456e756d3b78700000ea620000001400000001000000000000032200000000000000001400000002530000034a000000001400000014007372002b6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736542616e6400000000000027d802000849001950534555444f5f53455249414c5f56455253494f4e5f5549444900066865696768745a000e697353706c6974416c6c6f7765644c00137072696e745768656e45787072657373696f6e74002a4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5245787072657373696f6e3b4c000d70726f706572746965734d617074002d4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250726f706572746965734d61703b4c000c72657475726e56616c7565737400104c6a6176612f7574696c2f4c6973743b4c000973706c6974547970657400104c6a6176612f6c616e672f427974653b4c000e73706c69745479706556616c75657400304c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f53706c697454797065456e756d3b787200336e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365456c656d656e7447726f757000000000000027d80200024c00086368696c6472656e71007e00154c000c656c656d656e7447726f757074002c4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52456c656d656e7447726f75703b7870737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000077040000000078700000ea620000000001707070707e72002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e53706c697454797065456e756d00000000000000001200007872000e6a6176612e6c616e672e456e756d00000000000000001200007870740007535452455443487e7200316e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e52756e446972656374696f6e456e756d00000000000000001200007871007e001e7400034c5452707371007e00127371007e001b00000009770400000009737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655374617469635465787400000000000027d80200014c00047465787471007e0002787200326e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736554657874456c656d656e7400000000000027d802001949001950534555444f5f53455249414c5f56455253494f4e5f5549444c0008666f6e744e616d6571007e00024c0008666f6e7453697a657400134c6a6176612f6c616e672f496e74656765723b4c0008666f6e7473697a657400114c6a6176612f6c616e672f466c6f61743b4c0013686f72697a6f6e74616c416c69676e6d656e7471007e00164c0018686f72697a6f6e74616c416c69676e6d656e7456616c75657400364c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f486f72697a6f6e74616c416c69676e456e756d3b4c0013686f72697a6f6e74616c54657874416c69676e74003a4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f486f72697a6f6e74616c54657874416c69676e456e756d3b4c00066973426f6c647400134c6a6176612f6c616e672f426f6f6c65616e3b4c000869734974616c696371007e002c4c000d6973506466456d62656464656471007e002c4c000f6973537472696b655468726f75676871007e002c4c000c69735374796c65645465787471007e002c4c000b6973556e6465726c696e6571007e002c4c00076c696e65426f787400274c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a524c696e65426f783b4c000b6c696e6553706163696e6771007e00164c00106c696e6553706163696e6756616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4c696e6553706163696e67456e756d3b4c00066d61726b757071007e00024c00097061726167726170687400294c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525061726167726170683b4c000b706466456e636f64696e6771007e00024c000b706466466f6e744e616d6571007e00024c0008726f746174696f6e71007e00164c000d726f746174696f6e56616c756574002f4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f526f746174696f6e456e756d3b4c0011766572746963616c416c69676e6d656e7471007e00164c0016766572746963616c416c69676e6d656e7456616c75657400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f566572746963616c416c69676e456e756d3b4c0011766572746963616c54657874416c69676e7400384c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f566572746963616c54657874416c69676e456e756d3b7872002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365456c656d656e7400000000000027d802001b49001950534555444f5f53455249414c5f56455253494f4e5f5549444900066865696768745a001769735072696e74496e466972737457686f6c6542616e645a001569735072696e74526570656174656456616c7565735a001a69735072696e745768656e44657461696c4f766572666c6f77735a0015697352656d6f76654c696e655768656e426c616e6b42000c706f736974696f6e5479706542000b7374726574636854797065490005776964746849000178490001794c00096261636b636f6c6f727400104c6a6176612f6177742f436f6c6f723b4c001464656661756c745374796c6550726f76696465727400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5244656661756c745374796c6550726f76696465723b4c000c656c656d656e7447726f757071007e00194c0009666f7265636f6c6f7271007e00344c00036b657971007e00024c00046d6f646571007e00164c00096d6f646556616c756574002b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4d6f6465456e756d3b4c000b706172656e745374796c6571007e00074c0018706172656e745374796c654e616d655265666572656e636571007e00024c0011706f736974696f6e5479706556616c75657400334c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f506f736974696f6e54797065456e756d3b4c00137072696e745768656e45787072657373696f6e71007e00134c00157072696e745768656e47726f75704368616e6765737400254c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5247726f75703b4c000d70726f706572746965734d617071007e00145b001370726f706572747945787072657373696f6e737400335b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250726f706572747945787072657373696f6e3b4c0010737472657463685479706556616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5374726574636854797065456e756d3b4c0004757569647400104c6a6176612f7574696c2f555549443b78700000ea620000001e0001000000000000006e00000000000000007071007e001171007e00247070707070707e7200316e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e506f736974696f6e54797065456e756d00000000000000001200007871007e001e7400134649585f52454c41544956455f544f5f544f5070707372002b6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5250726f706572746965734d617000000000000027d80200034c00046261736571007e00144c000e70726f706572746965734c69737471007e00154c000d70726f706572746965734d617074000f4c6a6176612f7574696c2f4d61703b7870707371007e001b00000001770400000001740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746878737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f400000000000037708000000040000000171007e0044740002707878707e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5374726574636854797065456e756d00000000000000001200007871007e001e74000a4e4f5f535452455443487372000e6a6176612e7574696c2e55554944bc9903f7986d852f0200024a000c6c65617374536967426974734a000b6d6f7374536967426974737870b2db96a319f5ed65cf6b0abd332742630000ea6270707372000f6a6176612e6c616e672e466c6f6174daedc9a2db3cf0ec02000146000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870412000007070707070707070707372002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654c696e65426f7800000000000027d802000b4c000d626f74746f6d50616464696e6771007e00284c0009626f74746f6d50656e74002b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f626173652f4a52426f7850656e3b4c000c626f78436f6e7461696e657274002c4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52426f78436f6e7461696e65723b4c000b6c65667450616464696e6771007e00284c00076c65667450656e71007e00514c000770616464696e6771007e00284c000370656e71007e00514c000c726967687450616464696e6771007e00284c0008726967687450656e71007e00514c000a746f7050616464696e6771007e00284c0006746f7050656e71007e0051787070737200336e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f78426f74746f6d50656e00000000000027d80200007872002d6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f7850656e00000000000027d80200014c00076c696e65426f7871007e002d7872002a6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736550656e00000000000027d802000649001950534555444f5f53455249414c5f56455253494f4e5f5549444c00096c696e65436f6c6f7271007e00344c00096c696e655374796c6571007e00164c000e6c696e655374796c6556616c75657400304c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4c696e655374796c65456e756d3b4c00096c696e65576964746871007e00294c000c70656e436f6e7461696e657274002c4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250656e436f6e7461696e65723b78700000ea627372000e6a6176612e6177742e436f6c6f7201a51783108f337502000546000666616c70686149000576616c75654c0002637374001b4c6a6176612f6177742f636f6c6f722f436f6c6f7253706163653b5b00096672676276616c75657400025b465b00066676616c756571007e005c787000000000ff000000707070707e72002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4c696e655374796c65456e756d00000000000000001200007871007e001e740005534f4c49447371007e004d3f80000071007e005371007e005371007e003c737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c75657871007e004e00000004737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f784c65667450656e00000000000027d80200007871007e00550000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e005371007e0053707371007e00550000ea627070707071007e005371007e005370737200326e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f78526967687450656e00000000000027d80200007871007e00550000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e005371007e005370737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f78546f7050656e00000000000027d80200007871007e00550000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e005371007e0053707070737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736550617261677261706800000000000027d802000a4c000f66697273744c696e65496e64656e7471007e00284c000a6c656674496e64656e7471007e00284c000b6c696e6553706163696e6771007e002e4c000f6c696e6553706163696e6753697a6571007e00294c0012706172616772617068436f6e7461696e65727400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52506172616772617068436f6e7461696e65723b4c000b7269676874496e64656e7471007e00284c000c73706163696e67416674657271007e00284c000d73706163696e674265666f726571007e00284c000c74616253746f70576964746871007e00284c000874616253746f707371007e001578707070707071007e003c70707070707070707070707e7200366e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e566572746963616c54657874416c69676e456e756d00000000000000001200007871007e001e7400064d4944444c4574000249447371007e00260000ea620000001e000100000000000000c80000006e000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e007c740002707871007e007b7400027078787071007e00497371007e004bb0897ea706bbf287ab4f850ab5f14b440000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e008271007e007871007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e0082707371007e00550000ea627070707071007e008271007e0082707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e0082707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e00827070707371007e00717070707071007e0078707070707070707070707071007e0075740008434857204e616d657371007e00260000ea620000001e0001000000000000003c00000136000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e0096740002707871007e00957400027078787071007e00497371007e004b8c05ba304746d28cece61ced74094f8c0000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c71007e009271007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c707371007e00550000ea627070707071007e009c71007e009c707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c7070707371007e00717070707071007e0092707070707070707070707071007e007574000647656e6465727371007e00260000ea620000001e0001000000000000004600000172000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b0000000277040000000274001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e00af740002707871007e00b07400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b671007e00ac71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b6707371007e00550000ea627070707071007e00b671007e00b6707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b6707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b67070707371007e00717070707071007e00ac707070707070707070707071007e007574000844697374726963747371007e00260000ea620000001e00010000000000000046000001b8000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b0000000277040000000274001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e00c9740002707871007e00ca7400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d071007e00c671007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d0707371007e00550000ea627070707071007e00d071007e00d0707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d0707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d07070707371007e00717070707071007e00c6707070707070707070707071007e0075740006536563746f727371007e00260000ea620000001e00010000000000000046000001fe000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b0000000277040000000274001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e00e3740002707871007e00e47400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea71007e00e071007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea707371007e00550000ea627070707071007e00ea71007e00ea707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea7070707371007e00717070707071007e00e0707070707070707070707071007e0075740008466163696c6974797371007e00260000ea620000001e0001000000000000005000000244000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b0000000277040000000274001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e00fd740002707871007e00fe7400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e010471007e00fa71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e0104707371007e00550000ea627070707071007e010471007e0104707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e0104707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e01047070707371007e00717070707071007e00fa707070707070707070707071007e007574000756696c6c6167657371007e00260000ea620000001e0001000000000000005000000294000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b0000000277040000000274001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e0117740002707871007e01187400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e71007e011471007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e707371007e00550000ea627070707071007e011e71007e011e707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e7070707371007e00717070707071007e0114707070707070707070707071007e007574000c50686f6e65204e756d6265727371007e00260000ea620000001e0001000000000000003c000002e4000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b0000000277040000000274001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e0131740002707871007e01327400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e013871007e012e71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e0138707371007e00550000ea627070707071007e013871007e0138707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e0138707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e01387070707371007e00717070707071007e012e707070707070707070707071007e007574000547726f757078700000ea620000001e01707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e014a740002707878707070757200285b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a52446174617365743b4c1a3698cdac9c440200007870000000017372002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654461746173657400000000000027d802001249001950534555444f5f53455249414c5f56455253494f4e5f5549445a000669734d61696e4200177768656e5265736f757263654d697373696e67547970655b00066669656c64737400265b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a524669656c643b4c001066696c74657245787072657373696f6e71007e00135b000667726f7570737400265b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5247726f75703b4c00046e616d6571007e00025b000a706172616d657465727374002a5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52506172616d657465723b4c000d70726f706572746965734d617071007e00145b001370726f706572747945787072657373696f6e737400385b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4461746173657450726f706572747945787072657373696f6e3b4c000571756572797400254c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5251756572793b4c000e7265736f7572636542756e646c6571007e00024c000e7363726970746c6574436c61737371007e00025b000a7363726970746c65747374002a5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525363726970746c65743b5b000a736f72744669656c647374002a5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52536f72744669656c643b4c00047575696471007e003b5b00097661726961626c65737400295b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525661726961626c653b4c001c7768656e5265736f757263654d697373696e675479706556616c756574003e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5768656e5265736f757263654d697373696e6754797065456e756d3b78700000ea620000757200265b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a524669656c643b023cdfc74e2af2700200007870000000017372002c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654669656c6400000000000027d80200064c000b6465736372697074696f6e71007e00024c00046e616d6571007e00024c000d70726f706572746965734d617071007e00145b001370726f706572747945787072657373696f6e7371007e00394c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e000278707074000d746f74616c456c656d656e74737371007e0040707070707400116a6176612e6c616e672e496e746567657270707074000c5265636f726473436f756e747572002a5b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a52506172616d657465723b22000c8d2ac36021020000787000000019737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365506172616d6574657200000000000027d802000a5a000e6973466f7250726f6d7074696e675a000f697353797374656d446566696e65644c001664656661756c7456616c756545787072657373696f6e71007e00134c000b6465736372697074696f6e71007e00024c000e6576616c756174696f6e54696d6574003e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f506172616d657465724576616c756174696f6e54696d65456e756d3b4c00046e616d6571007e00024c000e6e6573746564547970654e616d6571007e00024c000d70726f706572746965734d617071007e00144c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e00027870010170707074000e5245504f52545f434f4e54455854707371007e00407070707400296e65742e73662e6a61737065727265706f7274732e656e67696e652e5265706f7274436f6e74657874707371007e016401017070707400155245504f52545f504152414d45544552535f4d4150707371007e004070707074000d6a6176612e7574696c2e4d6170707371007e016401017070707400164a41535045525f5245504f5254535f434f4e54455854707371007e00407070707400306e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f727473436f6e74657874707371007e0164010170707074000d4a41535045525f5245504f5254707371007e00407070707400286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f7274707371007e016401017070707400115245504f52545f434f4e4e454354494f4e707371007e00407070707400136a6176612e73716c2e436f6e6e656374696f6e707371007e016401017070707400105245504f52545f4d41585f434f554e54707371007e00407070707400116a6176612e6c616e672e496e7465676572707371007e016401017070707400125245504f52545f444154415f534f55524345707371007e00407070707400286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5244617461536f75726365707371007e016401017070707400105245504f52545f5343524950544c4554707371007e004070707074002f6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5241627374726163745363726970746c6574707371007e0164010170707074000d5245504f52545f4c4f43414c45707371007e00407070707400106a6176612e7574696c2e4c6f63616c65707371007e016401017070707400165245504f52545f5245534f555243455f42554e444c45707371007e00407070707400186a6176612e7574696c2e5265736f7572636542756e646c65707371007e016401017070707400105245504f52545f54494d455f5a4f4e45707371007e00407070707400126a6176612e7574696c2e54696d655a6f6e65707371007e016401017070707400155245504f52545f464f524d41545f464143544f5259707371007e004070707074002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e7574696c2e466f726d6174466163746f7279707371007e016401017070707400135245504f52545f434c4153535f4c4f41444552707371007e00407070707400156a6176612e6c616e672e436c6173734c6f61646572707371007e016401017070707400105245504f52545f54454d504c41544553707371007e00407070707400146a6176612e7574696c2e436f6c6c656374696f6e707371007e0164010170707074000b534f52545f4649454c4453707371007e004070707074000e6a6176612e7574696c2e4c697374707371007e0164010170707074000646494c544552707371007e00407070707400296e65742e73662e6a61737065727265706f7274732e656e67696e652e4461746173657446696c746572707371007e016400007070707400056368774964707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e016400007070707400076368774e616d65707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e016400007070707400086469737472696374707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e01640000707070740006736563746f72707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e01640000707070740008666163696c697479707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e0164000070707074000776696c6c616765707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e0164000070707074000570686f6e65707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e0164000070707074000967726f75704e616d65707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e016400007070707400087061676553697a65707371007e00407070707400116a6176612e6c616e672e496e7465676572707371007e0040707070707372002c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365517565727900000000000027d80200025b00066368756e6b7374002b5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5251756572794368756e6b3b4c00086c616e677561676571007e000278707572002b5b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5251756572794368756e6b3b409f00a1e8ba34a4020000787000000021737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736551756572794368756e6b00000000000027d8020004420004747970654c00047465787471007e00024c000e746f6b656e536570617261746f727400154c6a6176612f6c616e672f4368617261637465723b5b0006746f6b656e737400135b4c6a6176612f6c616e672f537472696e673b78700174014a53454c4543540a2020434f554e54282a2920415320746f74616c456c656d656e74730a2046524f4d20636f6d6d756e6974795f6865616c74685f776f726b6572204153206368770a204a4f494e206469737472696374204f4e206368772e64697374726963745f6964203d2064697374726963742e69640a204c454654204a4f494e20736563746f72204f4e206368772e736563746f725f6964203d20736563746f722e69640a204c454654204a4f494e20666163696c697479204f4e206368772e666163696c6974795f6964203d20666163696c6974792e69640a204c454654204a4f494e2076696c6c616765204f4e206368772e76696c6c6167655f6964203d2076696c6c6167652e69640a204c454654204a4f494e206368775f67726f7570204f4e206368775f67726f75702e6964203d206368772e67726f75705f69640a205748455245202870707371007e01d002740005636877496470707371007e01d001740027204953204e554c4c204f52206368772e6368775f6964204c494b4520434f4e434154282725272c70707371007e01d002740005636877496470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d0027400076368774e616d6570707371007e01d001740029204953204e554c4c204f52206368772e6368775f6e616d65204c494b4520434f4e434154282725272c70707371007e01d0027400076368774e616d6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008646973747269637470707371007e01d00174002a204953204e554c4c204f522064697374726963742e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008646973747269637470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740006736563746f7270707371007e01d001740028204953204e554c4c204f5220736563746f722e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740006736563746f7270707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008666163696c69747970707371007e01d00174002a204953204e554c4c204f5220666163696c6974792e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008666163696c69747970707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000776696c6c61676570707371007e01d001740029204953204e554c4c204f522076696c6c6167652e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000776696c6c61676570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000570686f6e6570707371007e01d00174002d204953204e554c4c204f52206368772e70686f6e655f6e756d626572204c494b4520434f4e434154282725272c70707371007e01d00274000570686f6e6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000967726f75704e616d6570707371007e01d00174002b204953204e554c4c204f52206368775f67726f75702e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000967726f75704e616d6570707371007e01d0017400062c2725272929707074000373716c707070707371007e004b8861b795f43f118acdc79b35b4a84892757200295b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a525661726961626c653b62e6837c982cb7440200007870000000077372002f6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655661726961626c6500000000000027d802001249001950534555444f5f53455249414c5f56455253494f4e5f55494442000b63616c63756c6174696f6e42000d696e6372656d656e74547970655a000f697353797374656d446566696e65644200097265736574547970654c001063616c63756c6174696f6e56616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f43616c63756c6174696f6e456e756d3b4c000b6465736372697074696f6e71007e00024c000a65787072657373696f6e71007e00134c000e696e6372656d656e7447726f757071007e00384c0012696e6372656d656e745479706556616c75657400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f496e6372656d656e7454797065456e756d3b4c001b696e6372656d656e746572466163746f7279436c6173734e616d6571007e00024c001f696e6372656d656e746572466163746f7279436c6173735265616c4e616d6571007e00024c0016696e697469616c56616c756545787072657373696f6e71007e00134c00046e616d6571007e00024c000a726573657447726f757071007e00384c000e72657365745479706556616c75657400304c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f526573657454797065456e756d3b4c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e00027870000077ee000001007e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e43616c63756c6174696f6e456e756d00000000000000001200007871007e001e74000653595354454d7070707e7200326e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e496e6372656d656e7454797065456e756d00000000000000001200007871007e001e7400044e4f4e457070737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736545787072657373696f6e00000000000027d802000549000269645b00066368756e6b737400305b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5245787072657373696f6e4368756e6b3b4c0004747970657400354c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f45787072657373696f6e54797065456e756d3b4c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e0002787000000000757200305b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5245787072657373696f6e4368756e6b3b6d59cfde694ba355020000787000000001737200366e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736545787072657373696f6e4368756e6b00000000000027d8020002420004747970654c00047465787471007e00027870017400186e6577206a6176612e6c616e672e496e746567657228312970707074000b504147455f4e554d424552707e72002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e526573657454797065456e756d00000000000000001200007871007e001e7400065245504f525471007e017d707371007e0219000077ee0000010071007e021f70707071007e02227070707400134d41535445525f43555252454e545f504147457071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e02227070707400124d41535445525f544f54414c5f50414745537071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707371007e0224000000017571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228312970707074000d434f4c554d4e5f4e554d424552707e71007e022e7400045041474571007e017d707371007e0219000077ee000001007e71007e021e740005434f554e54707371007e0224000000027571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000037571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707074000c5245504f52545f434f554e547071007e022f71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000047571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000057571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707074000a504147455f434f554e547071007e023b71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000067571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000077571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707074000c434f4c554d4e5f434f554e54707e71007e022e740006434f4c554d4e71007e017d707e72003c6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5768656e5265736f757263654d697373696e6754797065456e756d00000000000000001200007871007e001e7400044e554c4c70707372002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736553656374696f6e00000000000027d80200025b000562616e64737400255b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5242616e643b5b000570617274737400255b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52506172743b7870757200255b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5242616e643b95dd7eec8cca85350200007870000000017371007e00127371007e001b00000009770400000009737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365546578744669656c6400000000000027d802001549001950534555444f5f53455249414c5f56455253494f4e5f55494449000d626f6f6b6d61726b4c6576656c42000e6576616c756174696f6e54696d6542000f68797065726c696e6b54617267657442000d68797065726c696e6b547970655a0015697353747265746368576974684f766572666c6f774c0014616e63686f724e616d6545787072657373696f6e71007e00134c000f6576616c756174696f6e47726f757071007e00384c00136576616c756174696f6e54696d6556616c75657400354c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4576616c756174696f6e54696d65456e756d3b4c000a65787072657373696f6e71007e00134c001968797065726c696e6b416e63686f7245787072657373696f6e71007e00134c001768797065726c696e6b5061676545787072657373696f6e71007e00135b001368797065726c696e6b506172616d65746572737400335b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5248797065726c696e6b506172616d657465723b4c001c68797065726c696e6b5265666572656e636545787072657373696f6e71007e00134c001a68797065726c696e6b546f6f6c74697045787072657373696f6e71007e00134c001768797065726c696e6b5768656e45787072657373696f6e71007e00134c000f6973426c616e6b5768656e4e756c6c71007e002c4c000a6c696e6b54617267657471007e00024c00086c696e6b5479706571007e00024c00077061747465726e71007e00024c00117061747465726e45787072657373696f6e71007e00137871007e00270000ea620000001e0001000000000000006e00000000000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e027074000c76616c7565732e636877496471007e0271740002707878707e71007e004874001a52454c41544956455f544f5f54414c4c4553545f4f424a4543547371007e004bb4da86d5b4785a23b4a7916d24bc45400000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e027871007e026d71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e0278707371007e00550000ea627070707071007e027871007e0278707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e0278707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e02787070707371007e00717070707071007e026d707070707070707070707071007e00750000ea62000000000000000170707e7200336e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4576616c756174696f6e54696d65456e756d00000000000000001200007871007e001e7400034e4f577371007e0224000000157571007e0228000000017371007e022a037400056368774964707070707070707070737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787001707070707371007e026a0000ea620000001e000100000000000000c80000006e000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000371007e0295740002707871007e029374000e76616c7565732e6368774e616d6571007e02947400027078787071007e02757371007e004b814e3e89c9652e62592c94f9cf9249390000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b71007e029071007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b707371007e00550000ea627070707071007e029b71007e029b707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b7070707371007e00717070707071007e0290707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000167571007e0228000000017371007e022a037400076368774e616d6570707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000003c00000136000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000371007e02b3740002707871007e02b174000d76616c7565732e67656e64657271007e02b27400027078787071007e02757371007e004b8893930db8402bc2231172d9bfa24d170000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b971007e02ae71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b9707371007e00550000ea627070707071007e02b971007e02b9707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b9707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b97070707371007e00717070707071007e02ae707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000177571007e0228000000017371007e022a0374000667656e64657270707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000004600000172000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000371007e02d1740002707871007e02cf74000f76616c7565732e646973747269637471007e02d07400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d771007e02cc71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d7707371007e00550000ea627070707071007e02d771007e02d7707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d7707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d77070707371007e00717070707071007e02cc707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000187571007e0228000000017371007e022a03740008646973747269637470707070707070707071007e028f707070707371007e026a0000ea620000001e00010000000000000046000001b8000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e02ee740002707871007e02ed74000d76616c7565732e736563746f7271007e02ef7400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f571007e02ea71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f5707371007e00550000ea627070707071007e02f571007e02f5707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f5707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f57070707371007e00717070707071007e02ea707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000197571007e0228000000017371007e022a03740006736563746f7270707070707070707071007e028f707070707371007e026a0000ea620000001e00010000000000000046000001fe000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e030c740002707871007e030b74000f76616c7565732e666163696c69747971007e030d7400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e031371007e030871007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e0313707371007e00550000ea627070707071007e031371007e0313707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e0313707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e03137070707371007e00717070707071007e0308707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001a7571007e0228000000017371007e022a03740008666163696c69747970707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000005000000244000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e032a740002707871007e032974000e76616c7565732e76696c6c61676571007e032b7400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e033171007e032671007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e0331707371007e00550000ea627070707071007e033171007e0331707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e0331707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e03317070707371007e00717070707071007e0326707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001b7571007e0228000000017371007e022a0374000776696c6c61676570707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000005000000294000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e0348740002707871007e034774000c76616c7565732e70686f6e6571007e03497400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f71007e034471007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f707371007e00550000ea627070707071007e034f71007e034f707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f7070707371007e00717070707071007e0344707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001c7571007e0228000000017371007e022a0374000570686f6e6570707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000003c000002e4000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e0366740002707871007e036574001076616c7565732e67726f75704e616d6571007e03677400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d71007e036271007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d707371007e00550000ea627070707071007e036d71007e036d707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d7070707371007e00717070707071007e0362707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001d7571007e0228000000017371007e022a0374000967726f75704e616d6570707070707070707071007e028f7070707078700000ea620000001e01707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e038274000270787870707e71007e001d74000750524556454e547070707400046a617661707371007e014f0000ea6201007571007e015a000000097371007e015c7074000563687749647371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c707400076368774e616d657371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000667656e6465727371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000864697374726963747371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c70740006736563746f727371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c70740008666163696c6974797371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000776696c6c6167657371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000570686f6e657371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000967726f75704e616d657371007e0040707070707400106a6176612e6c616e672e537472696e677070707400086368775f6c6973747571007e01620000001d7371007e0164010170707071007e0167707371007e004070707071007e0169707371007e0164010170707071007e016b707371007e004070707071007e016d707371007e0164010170707071007e016f707371007e004070707071007e0171707371007e0164010170707071007e0173707371007e004070707071007e0175707371007e0164010170707071007e0177707371007e004070707071007e0179707371007e0164010170707071007e017b707371007e004070707071007e017d707371007e0164010170707071007e017f707371007e004070707071007e0181707371007e0164010170707071007e0183707371007e004070707071007e0185707371007e0164010170707071007e0187707371007e004070707071007e0189707371007e0164010170707071007e018b707371007e004070707071007e018d707371007e0164010170707071007e018f707371007e004070707071007e0191707371007e0164010170707071007e0193707371007e004070707071007e0195707371007e0164010170707071007e0197707371007e004070707071007e0199707371007e0164010170707071007e019b707371007e004070707071007e019d707371007e0164010170707071007e019f707371007e004070707071007e01a1707371007e0164010170707071007e01a3707371007e004070707071007e01a5707371007e016401017070707400125245504f52545f5649525455414c495a4552707371007e00407070707400296e65742e73662e6a61737065727265706f7274732e656e67696e652e4a525669727475616c697a6572707371007e0164010170707074001449535f49474e4f52455f504147494e4154494f4e707371007e00407070707400116a6176612e6c616e672e426f6f6c65616e707371007e016401007070707400056368774964707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e03dd740002494471007e03de74000566616c736571007e03dc740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007070707400076368774e616d65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e03e9740008434857204e616d6571007e03ea74000566616c736571007e03e8740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007070707400086469737472696374707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e03f5740008446973747269637471007e03f674000566616c736571007e03f4740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e01640100707070740006736563746f72707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e0401740006536563746f7271007e040274000566616c736571007e0400740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e01640100707070740008666163696c697479707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e040d740008466163696c69747971007e040e74000566616c736571007e040c740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0164010070707074000776696c6c616765707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e041974000756696c6c61676571007e041a74000566616c736571007e0418740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0164010070707074000570686f6e65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e042574000c50686f6e65206e756d62657271007e042674000566616c736571007e0424740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0164010070707074000967726f75704e616d65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e043174000547726f757071007e043274000566616c736571007e0430740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007371007e0224000000007571007e0228000000017371007e022a017400072263687749642270707070707400076f726465724279707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e04417400084f7264657220427971007e04427400047472756571007e0440740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007371007e0224000000017571007e0228000000017371007e022a01740002323070707070707400087061676553697a65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e04517400054c696d697471007e04527400047472756571007e0450740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007371007e0224000000027571007e0228000000017371007e022a017400013070707070707400066f6666736574707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e04617400064f666673657471007e04627400047472756571007e0460740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0040707371007e001b0000001e77040000001e74002d636f6d2e6a6173706572736f66742e73747564696f2e646174612e64656661756c746461746161646170746572740025636f6d2e6a6173706572736f66742e73747564696f2e646174612e73716c2e7461626c657374002c6e65742e73662e6a61737065727265706f7274732e6578706f72742e68746d6c2e656d6265642e696d6167657400296e65742e73662e6a61737065727265706f7274732e7072696e742e6b6565702e66756c6c2e746578747400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e77686974652e706167652e6261636b67726f756e647400326e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6f6e652e706167652e7065722e73686565747400326e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6f6e652e706167652e7065722e736865657474003f6e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e72656d6f76652e656d7074792e73706163652e6265747765656e2e726f77737400426e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e72656d6f76652e656d7074792e73706163652e6265747765656e2e636f6c756d6e7374003f6e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e72656d6f76652e656d7074792e73706163652e6265747765656e2e726f77737400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e317400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e327400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e337400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e347400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e317400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e327400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e337400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e347400406e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e6b6565702e66697273742e62616e642e317400406e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e6b6565702e66697273742e62616e642e3174001b636f6d2e6a6173706572736f66742e73747564696f2e756e69742e740025636f6d2e6a6173706572736f66742e73747564696f2e756e69742e70616765486569676874740024636f6d2e6a6173706572736f66742e73747564696f2e756e69742e706167655769647468740024636f6d2e6a6173706572736f66742e73747564696f2e756e69742e746f704d617267696e740027636f6d2e6a6173706572736f66742e73747564696f2e756e69742e626f74746f6d4d617267696e740025636f6d2e6a6173706572736f66742e73747564696f2e756e69742e6c6566744d617267696e740026636f6d2e6a6173706572736f66742e73747564696f2e756e69742e72696768744d617267696e740026636f6d2e6a6173706572736f66742e73747564696f2e756e69742e636f6c756d6e5769647468740028636f6d2e6a6173706572736f66742e73747564696f2e756e69742e636f6c756d6e53706163696e6774000a7265706f727454797065787371007e00453f400000000000307708000000400000001e71007e0483740005706978656c71007e04737400047472756571007e0481740005706978656c71007e047474000a7061676548656164657271007e047d74000c636f6c756d6e48656164657271007e0486740005706978656c71007e047574000a70616765466f6f74657271007e046c7400047472756571007e04767400057469746c6571007e0487740008434857204c69737471007e047a7400057469746c6571007e047b74000773756d6d61727971007e047f740005706978656c71007e047874000a7061676548656164657271007e047974000a70616765466f6f74657271007e047074000566616c736571007e046d7400047472756571007e046e74000566616c736571007e046f74000566616c736571007e046a74000f44617461416461707465722e786d6c71007e04717400047472756571007e046b74000071007e047e740005706978656c71007e0480740005706978656c71007e0485740005706978656c71007e047774000773756d6d61727971007e0482740005706978656c71007e047c74000c636f6c756d6e48656164657271007e04727400047472756571007e0484740005706978656c78707371007e01cb7571007e01ce000000267371007e01d00174025353454c4543540a20206368772e6368775f69642041532063687749642c0a20206368772e6368775f6e616d65204153206368774e616d652c0a2020434f4e434154284c454654286368772e67656e6465722c2031292c204c4f57455228535542535452494e47286368772e67656e6465722c20322929292041532067656e6465722c0a202064697374726963742e6e616d652041532064697374726963742c0a2020736563746f722e6e616d6520415320736563746f722c0a2020666163696c6974792e6e616d6520415320666163696c6974792c0a202076696c6c6167652e6e616d652041532076696c6c6167652c0a20206368772e70686f6e655f6e756d6265722041532070686f6e652c0a20206368775f67726f75702e6e616d652041532067726f75704e616d650a2046524f4d20636f6d6d756e6974795f6865616c74685f776f726b6572204153206368770a204a4f494e206469737472696374204f4e206368772e64697374726963745f6964203d2064697374726963742e69640a204c454654204a4f494e20736563746f72204f4e206368772e736563746f725f6964203d20736563746f722e69640a204c454654204a4f494e20666163696c697479204f4e206368772e666163696c6974795f6964203d20666163696c6974792e69640a204c454654204a4f494e2076696c6c616765204f4e206368772e76696c6c6167655f6964203d2076696c6c6167652e69640a204c454654204a4f494e206368775f67726f7570204f4e206368775f67726f75702e6964203d206368772e67726f75705f69640a205748455245202870707371007e01d002740005636877496470707371007e01d001740027204953204e554c4c204f52206368772e6368775f6964204c494b4520434f4e434154282725272c70707371007e01d002740005636877496470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d0027400076368774e616d6570707371007e01d001740029204953204e554c4c204f52206368772e6368775f6e616d65204c494b4520434f4e434154282725272c70707371007e01d0027400076368774e616d6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008646973747269637470707371007e01d00174002a204953204e554c4c204f522064697374726963742e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008646973747269637470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740006736563746f7270707371007e01d001740028204953204e554c4c204f5220736563746f722e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740006736563746f7270707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008666163696c69747970707371007e01d00174002a204953204e554c4c204f5220666163696c6974792e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008666163696c69747970707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000776696c6c61676570707371007e01d001740029204953204e554c4c204f522076696c6c6167652e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000776696c6c61676570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000570686f6e6570707371007e01d00174002d204953204e554c4c204f52206368772e70686f6e655f6e756d626572204c494b4520434f4e434154282725272c70707371007e01d00274000570686f6e6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000967726f75704e616d6570707371007e01d00174002b204953204e554c4c204f52206368775f67726f75702e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000967726f75704e616d6570707371007e01d0017400112c27252729290a204f524445522042592070707371007e01d0037400076f72646572427970707371007e01d0017400080a204c494d49542070707371007e01d0037400087061676553697a6570707371007e01d001740008204f46465345542070707371007e01d0037400066f6666736574707071007e0215707070707371007e004b961c9a8a597aba37f72f93d99e4749247571007e0217000000077371007e0219000077ee0000010071007e021f70707071007e022270707371007e0224000000037571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228312970707071007e022d7071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707071007e02327071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707071007e02347071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707371007e0224000000047571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228312970707071007e023a7071007e023b71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000057571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000067571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707071007e02487071007e022f71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000077571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000087571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707071007e02527071007e023b71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000097571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e02240000000a7571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707071007e025c7071007e025d71007e017d7071007e026071007e03ae707e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4f7269656e746174696f6e456e756d00000000000000001200007871007e001e7400094c414e44534341504570707e72002f6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5072696e744f72646572456e756d00000000000000001200007871007e001e740008564552544943414c7e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e53656374696f6e54797065456e756d00000000000000001200007871007e001e74000442414e44757200265b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a525374796c653bd49cc311d90572350200007870000000067372002c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655374796c65000000000000271102002f49001950534555444f5f53455249414c5f56455253494f4e5f5549445a0009697344656661756c744c00096261636b636f6c6f7271007e00345b0011636f6e646974696f6e616c5374796c65737400315b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52436f6e646974696f6e616c5374796c653b4c001464656661756c745374796c6550726f766964657271007e00354c000466696c6c71007e00164c000966696c6c56616c756574002b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f46696c6c456e756d3b4c0008666f6e744e616d6571007e00024c0008666f6e7453697a6571007e00284c0008666f6e7473697a6571007e00294c0009666f7265636f6c6f7271007e00344c0013686f72697a6f6e74616c416c69676e6d656e7471007e00164c0018686f72697a6f6e74616c416c69676e6d656e7456616c756571007e002a4c0014686f72697a6f6e74616c496d616765416c69676e74003b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f486f72697a6f6e74616c496d616765416c69676e456e756d3b4c0013686f72697a6f6e74616c54657874416c69676e71007e002b4c000f6973426c616e6b5768656e4e756c6c71007e002c4c00066973426f6c6471007e002c4c000869734974616c696371007e002c4c000d6973506466456d62656464656471007e002c4c000f6973537472696b655468726f75676871007e002c4c000c69735374796c65645465787471007e002c4c000b6973556e6465726c696e6571007e002c4c00076c696e65426f7871007e002d4c00076c696e6550656e7400234c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250656e3b4c000b6c696e6553706163696e6771007e00164c00106c696e6553706163696e6756616c756571007e002e4c00066d61726b757071007e00024c00046d6f646571007e00164c00096d6f646556616c756571007e00364c00046e616d6571007e00024c000970617261677261706871007e002f4c000b706172656e745374796c6571007e00074c0018706172656e745374796c654e616d655265666572656e636571007e00024c00077061747465726e71007e00024c000b706466456e636f64696e6771007e00024c000b706466466f6e744e616d6571007e00024c000c706f736974696f6e5479706571007e00164c000672616469757371007e00284c0008726f746174696f6e71007e00164c000d726f746174696f6e56616c756571007e00304c000a7363616c65496d61676571007e00164c000f7363616c65496d61676556616c75657400314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5363616c65496d616765456e756d3b4c000b737472657463685479706571007e00164c0011766572746963616c416c69676e6d656e7471007e00164c0016766572746963616c416c69676e6d656e7456616c756571007e00314c0012766572746963616c496d616765416c69676e7400394c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f566572746963616c496d616765416c69676e456e756d3b4c0011766572746963616c54657874416c69676e71007e003278700000ea62007371007e005a00000000fff0f8ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e053271007e0530707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e0532707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e0532707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e0532707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e05327371007e00560000ea627070707071007e0530707070707e7200296e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4d6f6465456e756d00000000000000001200007871007e001e7400064f50415155457400085461626c655f54487371007e00717070707071007e05307070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffbfe1ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a71007e0548707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a7371007e00560000ea627070707071007e05487070707071007e05447400085461626c655f43487371007e00717070707071007e05487070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffffffff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f71007e055d707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f7371007e00560000ea627070707071007e055d7070707071007e05447400085461626c655f54447371007e00717070707071007e055d7070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000fff0f8ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e057471007e0572707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e0574707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e0574707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e0574707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e05747371007e00560000ea627070707071007e05727070707071007e054474000a5461626c6520315f54487371007e00717070707071007e05727070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffbfe1ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e058971007e0587707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e0589707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e0589707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e0589707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e05897371007e00560000ea627070707071007e05877070707071007e054474000a5461626c6520315f43487371007e00717070707071007e05877070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffffffff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e71007e059c707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e7371007e00560000ea627070707071007e059c7070707071007e054474000a5461626c6520315f54447371007e00717070707071007e059c70707070707070707070707070707070707070707070707371007e00127371007e001b000000147704000000147371007e00260000ea62000000320001000000000000015e00000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e05b6740005706978656c787071007e00497371007e004b9e48704660ec59ecea3b8fe8c2884c620000ea6270707371007e004d418000007070707070707070707371007e0050707371007e00540000ea627070707071007e05bb71007e05bb71007e05b3707371007e00640000ea627070707071007e05bb71007e05bb707371007e00550000ea627070707071007e05bb71007e05bb707371007e00690000ea627070707071007e05bb71007e05bb707371007e006d0000ea627070707071007e05bb71007e05bb7070707371007e00717070707071007e05b3707070707070707070707071007e007574000f434857204c697374205265706f72747371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05c6740015636f6c4d6f64656c2e63687749642e48656164657271007e05c77400024944787071007e00497371007e004b9c58b7d8b078f47c9d8107d7b21e4ff00000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05cc71007e05cc71007e05c3707371007e00640000ea627070707071007e05cc71007e05cc707371007e00550000ea627070707071007e05cc71007e05cc707371007e00690000ea627070707071007e05cc71007e05cc707371007e006d0000ea627070707071007e05cc71007e05cc7070707371007e00717070707071007e05c3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05d6740014636f6c4d6f64656c2e63687749642e6f7264657271007e05d774000130787071007e00497371007e004b816d43a9dfc13620c53192f6ed644c910000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05dc71007e05dc71007e05d3707371007e00640000ea627070707071007e05dc71007e05dc707371007e00550000ea627070707071007e05dc71007e05dc707371007e00690000ea627070707071007e05dc71007e05dc707371007e006d0000ea627070707071007e05dc71007e05dc7070707371007e00717070707071007e05d3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05e6740017636f6c4d6f64656c2e6368774e616d652e48656164657271007e05e7740008434857204e616d65787071007e00497371007e004b97dc33a1508fe0845f34e949b07f4a7b0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05ec71007e05ec71007e05e3707371007e00640000ea627070707071007e05ec71007e05ec707371007e00550000ea627070707071007e05ec71007e05ec707371007e00690000ea627070707071007e05ec71007e05ec707371007e006d0000ea627070707071007e05ec71007e05ec7070707371007e00717070707071007e05e3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05f6740016636f6c4d6f64656c2e6368774e616d652e6f7264657271007e05f774000131787071007e00497371007e004baf5824f7cb50b8525f63dd8a210648650000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05fc71007e05fc71007e05f3707371007e00640000ea627070707071007e05fc71007e05fc707371007e00550000ea627070707071007e05fc71007e05fc707371007e00690000ea627070707071007e05fc71007e05fc707371007e006d0000ea627070707071007e05fc71007e05fc7070707371007e00717070707071007e05f3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0606740016636f6c4d6f64656c2e67656e6465722e48656164657271007e060774000647656e646572787071007e00497371007e004bb87451c0935fa6cc6fadc980ef1340370000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e060c71007e060c71007e0603707371007e00640000ea627070707071007e060c71007e060c707371007e00550000ea627070707071007e060c71007e060c707371007e00690000ea627070707071007e060c71007e060c707371007e006d0000ea627070707071007e060c71007e060c7070707371007e00717070707071007e0603707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0616740015636f6c4d6f64656c2e67656e6465722e6f7264657271007e061774000133787071007e00497371007e004b90d966b49b049cb405068712201b4abc0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e061c71007e061c71007e0613707371007e00640000ea627070707071007e061c71007e061c707371007e00550000ea627070707071007e061c71007e061c707371007e00690000ea627070707071007e061c71007e061c707371007e006d0000ea627070707071007e061c71007e061c7070707371007e00717070707071007e0613707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0626740018636f6c4d6f64656c2e64697374726963742e48656164657271007e06277400084469737472696374787071007e00497371007e004bbbbefa0ee33513fc0155372791a848750000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e062c71007e062c71007e0623707371007e00640000ea627070707071007e062c71007e062c707371007e00550000ea627070707071007e062c71007e062c707371007e00690000ea627070707071007e062c71007e062c707371007e006d0000ea627070707071007e062c71007e062c7070707371007e00717070707071007e0623707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0636740017636f6c4d6f64656c2e64697374726963742e6f7264657271007e063774000134787071007e00497371007e004b8aeb18b35d05d7d516b6471b5eca45b20000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e063c71007e063c71007e0633707371007e00640000ea627070707071007e063c71007e063c707371007e00550000ea627070707071007e063c71007e063c707371007e00690000ea627070707071007e063c71007e063c707371007e006d0000ea627070707071007e063c71007e063c7070707371007e00717070707071007e0633707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0646740016636f6c4d6f64656c2e736563746f722e48656164657271007e0647740006536563746f72787071007e00497371007e004b82c4e4e750689188dc29c153bfb94d1c0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e064c71007e064c71007e0643707371007e00640000ea627070707071007e064c71007e064c707371007e00550000ea627070707071007e064c71007e064c707371007e00690000ea627070707071007e064c71007e064c707371007e006d0000ea627070707071007e064c71007e064c7070707371007e00717070707071007e0643707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0656740015636f6c4d6f64656c2e736563746f722e6f7264657271007e065774000135787071007e00497371007e004b94ae4b091ce57a76f21693411f3242820000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e065c71007e065c71007e0653707371007e00640000ea627070707071007e065c71007e065c707371007e00550000ea627070707071007e065c71007e065c707371007e00690000ea627070707071007e065c71007e065c707371007e006d0000ea627070707071007e065c71007e065c7070707371007e00717070707071007e0653707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0666740018636f6c4d6f64656c2e666163696c6974792e48656164657271007e0667740008466163696c697479787071007e00497371007e004b90b9c56e1945334a43bf39e9561c417b0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e066c71007e066c71007e0663707371007e00640000ea627070707071007e066c71007e066c707371007e00550000ea627070707071007e066c71007e066c707371007e00690000ea627070707071007e066c71007e066c707371007e006d0000ea627070707071007e066c71007e066c7070707371007e00717070707071007e0663707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0676740017636f6c4d6f64656c2e666163696c6974792e6f7264657271007e067774000136787071007e00497371007e004bb8b2685b9e1273c246ce2c3a88a84c480000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e067c71007e067c71007e0673707371007e00640000ea627070707071007e067c71007e067c707371007e00550000ea627070707071007e067c71007e067c707371007e00690000ea627070707071007e067c71007e067c707371007e006d0000ea627070707071007e067c71007e067c7070707371007e00717070707071007e0673707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0686740017636f6c4d6f64656c2e76696c6c6167652e48656164657271007e068774000756696c6c616765787071007e00497371007e004bb1847e6b0c88e831bad3b1e2fdd041090000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e068c71007e068c71007e0683707371007e00640000ea627070707071007e068c71007e068c707371007e00550000ea627070707071007e068c71007e068c707371007e00690000ea627070707071007e068c71007e068c707371007e006d0000ea627070707071007e068c71007e068c7070707371007e00717070707071007e0683707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0696740016636f6c4d6f64656c2e76696c6c6167652e6f7264657271007e069774000137787071007e00497371007e004ba8864ec7757f21cb7799a666b8b740130000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e069c71007e069c71007e0693707371007e00640000ea627070707071007e069c71007e069c707371007e00550000ea627070707071007e069c71007e069c707371007e00690000ea627070707071007e069c71007e069c707371007e006d0000ea627070707071007e069c71007e069c7070707371007e00717070707071007e0693707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06a6740015636f6c4d6f64656c2e70686f6e652e48656164657271007e06a774000c50686f6e65204e756d626572787071007e00497371007e004b8dc0d366aa371e3cc2b4064b52804d370000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06ac71007e06ac71007e06a3707371007e00640000ea627070707071007e06ac71007e06ac707371007e00550000ea627070707071007e06ac71007e06ac707371007e00690000ea627070707071007e06ac71007e06ac707371007e006d0000ea627070707071007e06ac71007e06ac7070707371007e00717070707071007e06a3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06b6740014636f6c4d6f64656c2e70686f6e652e6f7264657271007e06b774000138787071007e00497371007e004b8ce15e4bf088fd1ab7eb3121f8c440f20000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06bc71007e06bc71007e06b3707371007e00640000ea627070707071007e06bc71007e06bc707371007e00550000ea627070707071007e06bc71007e06bc707371007e00690000ea627070707071007e06bc71007e06bc707371007e006d0000ea627070707071007e06bc71007e06bc7070707371007e00717070707071007e06b3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06c6740019636f6c4d6f64656c2e67726f75704e616d652e48656164657271007e06c774000547726f7570787071007e00497371007e004bbdedb2bbae3a192b476790b2255645470000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06cc71007e06cc71007e06c3707371007e00640000ea627070707071007e06cc71007e06cc707371007e00550000ea627070707071007e06cc71007e06cc707371007e00690000ea627070707071007e06cc71007e06cc707371007e006d0000ea627070707071007e06cc71007e06cc7070707371007e00717070707071007e06c3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06d6740018636f6c4d6f64656c2e67726f75704e616d652e6f7264657271007e06d774000139787071007e00497371007e004bbe3e8654631d4c02a805275ac33f41740000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06dc71007e06dc71007e06d3707371007e00640000ea627070707071007e06dc71007e06dc707371007e00550000ea627070707071007e06dc71007e06dc707371007e00690000ea627070707071007e06dc71007e06dc707371007e006d0000ea627070707071007e06dc71007e06dc7070707371007e00717070707071007e06d370707070707070707070707070737200376e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365436f6d706f6e656e74456c656d656e7400000000000027d80200024c0009636f6d706f6e656e747400314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f636f6d706f6e656e742f436f6d706f6e656e743b4c000c636f6d706f6e656e744b65797400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f636f6d706f6e656e742f436f6d706f6e656e744b65793b7871007e00330000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b0000000477040000000474001c636f6d2e6a6173706572736f66742e73747564696f2e6c61796f757474002e636f6d2e6a6173706572736f66742e73747564696f2e7461626c652e7374796c652e7461626c655f68656164657274002f636f6d2e6a6173706572736f66742e73747564696f2e7461626c652e7374796c652e636f6c756d6e5f686561646572740028636f6d2e6a6173706572736f66742e73747564696f2e7461626c652e7374796c652e64657461696c787371007e00453f400000000000067708000000080000000471007e06e9740035636f6d2e6a6173706572736f66742e73747564696f2e656469746f722e6c61796f75742e566572746963616c526f774c61796f757471007e06ea74000a5461626c6520325f544871007e06eb74000a5461626c6520325f434871007e06ec74000a5461626c6520325f5444787071007e00497371007e004bb2a1eb26e69f498bc598494f448049c5737200336e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e5374616e646172645461626c6500000000000027d80200034c0007636f6c756d6e7371007e00154c000a6461746173657452756e74002a4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a524461746173657452756e3b4c000e7768656e4e6f446174615479706574003f4c6e65742f73662f6a61737065727265706f7274732f636f6d706f6e656e74732f7461626c652f5768656e4e6f44617461547970655461626c65456e756d3b78707371007e001b00000001770400000001737200346e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e5374616e64617264436f6c756d6e00000000000027d80200014c000664657461696c74002c4c6e65742f73662f6a61737065727265706f7274732f636f6d706f6e656e74732f7461626c652f43656c6c3b787200386e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e5374616e6461726442617365436f6c756d6e00000000000027d802000b4c000c636f6c756d6e466f6f74657271007e06f94c000c636f6c756d6e48656164657271007e06f94c000c67726f7570466f6f7465727371007e00154c000c67726f75704865616465727371007e00154c00137072696e745768656e45787072657373696f6e71007e00134c000d70726f706572746965734d617071007e00144c001370726f706572747945787072657373696f6e7371007e00154c000b7461626c65466f6f74657271007e06f94c000b7461626c6548656164657271007e06f94c00047575696471007e003b4c0005776964746871007e0028787070707371007e001b00000000770400000000787371007e001b0000000077040000000078707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000271007e0700740005706978656c71007e0701740005706978656c787371007e001b000000007704000000007870707371007e004b837e6a9d6956f03845dc533c8c0c41fd7371007e006200000000737200326e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e436f6d70696c656443656c6c00000000000027d80200074c0003626f7871007e002d4c001464656661756c745374796c6550726f766964657271007e00354c000668656967687471007e00284c000d70726f706572746965734d617071007e00144c0007726f775370616e71007e00284c00057374796c6571007e00074c00127374796c654e616d655265666572656e636571007e00027871007e00187371007e001b000000017704000000017371007e026a0000ea62000000000001000000000000000000000000000000007071007e001171007e070970707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e77696474687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468787371007e00453f400000000000037708000000040000000271007e070e740002707871007e070f74000a746f74616c5061676573787071007e02757371007e004b8c4ea1b04f907326c74987221b324bed0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e071471007e071471007e070b707371007e00640000ea627070707071007e071471007e0714707371007e00550000ea627070707071007e071471007e0714707371007e00690000ea627070707071007e071471007e0714707371007e006d0000ea627070707071007e071471007e07147070707371007e00717070707071007e070b7070707070707070707070700000ea620000000000000000707071007e02887371007e0224000000087571007e0228000000057371007e022a0174000f6e657720426967446563696d616c287371007e022a0374000d746f74616c456c656d656e74737371007e022a0174000c202f2028646f75626c6529207371007e022a027400087061676553697a657371007e022a01740032292e7365745363616c6528302c20426967446563696d616c2e524f554e445f4345494c494e47292e746f537472696e67282970707070707070707071007e028f7070707078707371007e0050707371007e00540000ea627070707071007e072771007e072771007e0709707371007e00640000ea627070707071007e072771007e0727707371007e00550000ea627070707071007e072771007e0727707371007e00690000ea627070707071007e072771007e0727707371007e006d0000ea627070707071007e072771007e072771007e00117371007e0062000000007371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000271007e0730740002707871007e07317400027078787071007e055d7078737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654461746173657452756e00000000000027d80200084c0014636f6e6e656374696f6e45787072657373696f6e71007e00134c001464617461536f7572636545787072657373696f6e71007e00134c000b646174617365744e616d6571007e00025b000a706172616d65746572737400315b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5244617461736574506172616d657465723b4c0017706172616d65746572734d617045787072657373696f6e71007e00134c000d70726f706572746965734d617071007e00144c000c72657475726e56616c75657371007e00154c00047575696471007e003b78707371007e02240000000b7571007e0228000000017371007e022a027400115245504f52545f434f4e4e454354494f4e7070707074000c5265636f726473436f756e747572003a5b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736544617461736574506172616d657465723b2413b76c659575a5020000787000000009737200376e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736544617461736574506172616d6574657200000000000027d80200024c000a65787072657373696f6e71007e00134c00046e616d6571007e000278707371007e02240000000c7571007e0228000000017371007e022a02740005636877496470707074000563687749647371007e073f7371007e02240000000d7571007e0228000000017371007e022a027400076368774e616d657070707400076368774e616d657371007e073f7371007e02240000000e7571007e0228000000017371007e022a02740008646973747269637470707074000864697374726963747371007e073f7371007e02240000000f7571007e0228000000017371007e022a02740006736563746f72707070740006736563746f727371007e073f7371007e0224000000107571007e0228000000017371007e022a02740008666163696c697479707070740008666163696c6974797371007e073f7371007e0224000000117571007e0228000000017371007e022a0274000776696c6c61676570707074000776696c6c6167657371007e073f7371007e0224000000127571007e0228000000017371007e022a0274000570686f6e6570707074000570686f6e657371007e073f7371007e0224000000137571007e0228000000017371007e022a0274000967726f75704e616d6570707074000967726f75704e616d657371007e073f7371007e0224000000147571007e0228000000037371007e022a01740010496e74656765722e76616c75654f66287371007e022a027400087061676553697a657371007e022a01740001297070707400087061676553697a657070707371007e004b88d52b0e618b880b3dda0279b3b9446270737200326e65742e73662e6a61737065727265706f7274732e656e67696e652e636f6d706f6e656e742e436f6d706f6e656e744b657900000000000027d80200034c00046e616d6571007e00024c00096e616d65737061636571007e00024c000f6e616d65737061636550726566697871007e000278707400057461626c6574003d687474703a2f2f6a61737065727265706f7274732e736f75726365666f7267652e6e65742f6a61737065727265706f7274732f636f6d706f6e656e74737400026a7278700000ea620000003201707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e0782740005706978656c78707071007e001f7e7200336e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5768656e4e6f4461746154797065456e756d00000000000000001200007871007e001e740016414c4c5f53454354494f4e535f4e4f5f44455441494c737200366e65742e73662e6a61737065727265706f7274732e656e67696e652e64657369676e2e4a525265706f7274436f6d70696c654461746100000000000027d80200034c001363726f7373746162436f6d70696c654461746171007e00414c001264617461736574436f6d70696c654461746171007e00414c00166d61696e44617461736574436f6d70696c654461746171007e000178707371007e00453f4000000000000077080000001000000000787371007e00453f4000000000000c7708000000100000000171007e0161757200025b42acf317f8060854e0020000787000001524cafebabe0000003400f407000201002a6368775f6c6973745f5265636f726473436f756e745f313630313838363732383735375f37333433333407000401002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a524576616c7561746f7201001b706172616d657465725f5245504f52545f434f4e4e454354494f4e0100324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d657465723b010017706172616d657465725f4a41535045525f5245504f525401001a706172616d657465725f5245504f52545f54494d455f5a4f4e4501000f706172616d657465725f6368774964010012706172616d657465725f7061676553697a6501001a706172616d657465725f5245504f52545f54454d504c4154455301001a706172616d657465725f5245504f52545f4d41585f434f554e5401001a706172616d657465725f5245504f52545f5343524950544c455401001f706172616d657465725f5245504f52545f504152414d45544552535f4d4150010020706172616d657465725f5245504f52545f5245534f555243455f42554e444c4501001c706172616d657465725f5245504f52545f444154415f534f55524345010015706172616d657465725f534f52545f4649454c4453010011706172616d657465725f76696c6c616765010010706172616d657465725f736563746f72010010706172616d657465725f46494c544552010017706172616d657465725f5245504f52545f4c4f43414c45010011706172616d657465725f6368774e616d65010020706172616d657465725f4a41535045525f5245504f5254535f434f4e54455854010013706172616d657465725f67726f75704e616d6501001f706172616d657465725f5245504f52545f464f524d41545f464143544f525901000f706172616d657465725f70686f6e65010012706172616d657465725f6469737472696374010018706172616d657465725f5245504f52545f434f4e5445585401001d706172616d657465725f5245504f52545f434c4153535f4c4f41444552010012706172616d657465725f666163696c6974790100136669656c645f746f74616c456c656d656e747301002e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c643b0100147661726961626c655f504147455f4e554d4245520100314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c653b01001c7661726961626c655f4d41535445525f43555252454e545f5041474501001b7661726961626c655f4d41535445525f544f54414c5f50414745530100167661726961626c655f434f4c554d4e5f4e554d4245520100157661726961626c655f5245504f52545f434f554e540100137661726961626c655f504147455f434f554e540100157661726961626c655f434f4c554d4e5f434f554e540100063c696e69743e010003282956010004436f64650a0003002d0c0029002a090001002f0c0005000609000100310c0007000609000100330c0008000609000100350c0009000609000100370c000a000609000100390c000b0006090001003b0c000c0006090001003d0c000d0006090001003f0c000e000609000100410c000f000609000100430c0010000609000100450c0011000609000100470c0012000609000100490c00130006090001004b0c00140006090001004d0c00150006090001004f0c0016000609000100510c0017000609000100530c0018000609000100550c0019000609000100570c001a000609000100590c001b0006090001005b0c001c0006090001005d0c001d0006090001005f0c001e000609000100610c001f002009000100630c0021002209000100650c0023002209000100670c0024002209000100690c00250022090001006b0c00260022090001006d0c00270022090001006f0c0028002201000f4c696e654e756d6265725461626c6501000e637573746f6d697a6564496e6974010030284c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b29560a000100740c0075007601000a696e6974506172616d73010012284c6a6176612f7574696c2f4d61703b29560a000100780c0079007601000a696e69744669656c64730a0001007b0c007c0076010008696e69745661727308007e0100115245504f52545f434f4e4e454354494f4e0b0080008207008101000d6a6176612f7574696c2f4d61700c00830084010003676574010026284c6a6176612f6c616e672f4f626a6563743b294c6a6176612f6c616e672f4f626a6563743b0700860100306e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d6574657208008801000d4a41535045525f5245504f525408008a0100105245504f52545f54494d455f5a4f4e4508008c010005636877496408008e0100087061676553697a650800900100105245504f52545f54454d504c415445530800920100105245504f52545f4d41585f434f554e540800940100105245504f52545f5343524950544c45540800960100155245504f52545f504152414d45544552535f4d41500800980100165245504f52545f5245534f555243455f42554e444c4508009a0100125245504f52545f444154415f534f5552434508009c01000b534f52545f4649454c445308009e01000776696c6c6167650800a0010006736563746f720800a201000646494c5445520800a401000d5245504f52545f4c4f43414c450800a60100076368774e616d650800a80100164a41535045525f5245504f5254535f434f4e544558540800aa01000967726f75704e616d650800ac0100155245504f52545f464f524d41545f464143544f52590800ae01000570686f6e650800b001000864697374726963740800b201000e5245504f52545f434f4e544558540800b40100135245504f52545f434c4153535f4c4f414445520800b6010008666163696c6974790800b801000d746f74616c456c656d656e74730700ba01002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c640800bc01000b504147455f4e554d4245520700be01002f6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c650800c00100134d41535445525f43555252454e545f504147450800c20100124d41535445525f544f54414c5f50414745530800c401000d434f4c554d4e5f4e554d4245520800c601000c5245504f52545f434f554e540800c801000a504147455f434f554e540800ca01000c434f4c554d4e5f434f554e540100086576616c756174650100152849294c6a6176612f6c616e672f4f626a6563743b01000a457863657074696f6e730700cf0100136a6176612f6c616e672f5468726f7761626c650700d10100116a6176612f6c616e672f496e74656765720a00d000d30c002900d4010004284929560700d60100146a6176612f6d6174682f426967446563696d616c0a00b900d80c00d900da01000867657456616c756501001428294c6a6176612f6c616e672f4f626a6563743b0a00d000dc0c00dd00de010008696e7456616c75650100032829490a008500d80a00d500e10c002900e2010004284429560a00d500e40c00e500e60100087365745363616c6501001a284949294c6a6176612f6d6174682f426967446563696d616c3b0a00d500e80c00e900ea010008746f537472696e6701001428294c6a6176612f6c616e672f537472696e673b01000d537461636b4d61705461626c650700ed0100106a6176612f6c616e672f4f626a65637401000b6576616c756174654f6c640a00b900f00c00f100da01000b6765744f6c6456616c75650100116576616c75617465457374696d6174656401000a536f7572636546696c650021000100030000002100020005000600000002000700060000000200080006000000020009000600000002000a000600000002000b000600000002000c000600000002000d000600000002000e000600000002000f0006000000020010000600000002001100060000000200120006000000020013000600000002001400060000000200150006000000020016000600000002001700060000000200180006000000020019000600000002001a000600000002001b000600000002001c000600000002001d000600000002001e000600000002001f002000000002002100220000000200230022000000020024002200000002002500220000000200260022000000020027002200000002002800220000000800010029002a0001002b0000014a00020001000000aa2ab7002c2a01b5002e2a01b500302a01b500322a01b500342a01b500362a01b500382a01b5003a2a01b5003c2a01b5003e2a01b500402a01b500422a01b500442a01b500462a01b500482a01b5004a2a01b5004c2a01b5004e2a01b500502a01b500522a01b500542a01b500562a01b500582a01b5005a2a01b5005c2a01b5005e2a01b500602a01b500622a01b500642a01b500662a01b500682a01b5006a2a01b5006c2a01b5006eb10000000100700000008e002300000012000400190009001a000e001b0013001c0018001d001d001e0022001f00270020002c00210031002200360023003b00240040002500450026004a0027004f0028005400290059002a005e002b0063002c0068002d006d002e0072002f00770030007c00310081003200860033008b00340090003500950036009a0037009f003800a4003900a900120001007100720001002b0000003400020004000000102a2bb700732a2cb700772a2db7007ab10000000100700000001200040000004500050046000a0047000f00480002007500760001002b000001f400030002000001782a2b127db9007f0200c00085b5002e2a2b1287b9007f0200c00085b500302a2b1289b9007f0200c00085b500322a2b128bb9007f0200c00085b500342a2b128db9007f0200c00085b500362a2b128fb9007f0200c00085b500382a2b1291b9007f0200c00085b5003a2a2b1293b9007f0200c00085b5003c2a2b1295b9007f0200c00085b5003e2a2b1297b9007f0200c00085b500402a2b1299b9007f0200c00085b500422a2b129bb9007f0200c00085b500442a2b129db9007f0200c00085b500462a2b129fb9007f0200c00085b500482a2b12a1b9007f0200c00085b5004a2a2b12a3b9007f0200c00085b5004c2a2b12a5b9007f0200c00085b5004e2a2b12a7b9007f0200c00085b500502a2b12a9b9007f0200c00085b500522a2b12abb9007f0200c00085b500542a2b12adb9007f0200c00085b500562a2b12afb9007f0200c00085b500582a2b12b1b9007f0200c00085b5005a2a2b12b3b9007f0200c00085b5005c2a2b12b5b9007f0200c00085b5005eb10000000100700000006a001a00000050000f0051001e0052002d0053003c0054004b0055005a00560069005700780058008700590096005a00a5005b00b4005c00c3005d00d2005e00e1005f00f0006000ff0061010e0062011d0063012c0064013b0065014a00660159006701680068017700690002007900760001002b0000002c00030002000000102a2b12b7b9007f0200c000b9b50060b10000000100700000000a000200000071000f00720002007c00760001002b0000009e000300020000006a2a2b12bbb9007f0200c000bdb500622a2b12bfb9007f0200c000bdb500642a2b12c1b9007f0200c000bdb500662a2b12c3b9007f0200c000bdb500682a2b12c5b9007f0200c000bdb5006a2a2b12c7b9007f0200c000bdb5006c2a2b12c9b9007f0200c000bdb5006eb10000000100700000002200080000007a000f007b001e007c002d007d003c007e004b007f005a008000690081000100cb00cc000200cd00000004000100ce002b0000013e00060003000000c3014d1baa000000be0000000000000008000000310000003d0000004900000055000000610000006d000000790000008500000091bb00d05904b700d24da70084bb00d05904b700d24da70078bb00d05904b700d24da7006cbb00d05903b700d24da70060bb00d05904b700d24da70054bb00d05903b700d24da70048bb00d05904b700d24da7003cbb00d05903b700d24da70030bb00d5592ab40060b600d7c000d0b600db872ab40036b600dfc000d0b600db876fb700e00305b600e3b600e74d2cb0000000020070000000520014000000890002008b0034008f003d00900040009400490095004c00990055009a0058009e0061009f006400a3006d00a4007000a8007900a9007c00ad008500ae008800b2009100b3009400b700c100bf00eb00000011000afc00340700ec0b0b0b0b0b0b0b0b2c000100ee00cc000200cd00000004000100ce002b0000013e00060003000000c3014d1baa000000be0000000000000008000000310000003d0000004900000055000000610000006d000000790000008500000091bb00d05904b700d24da70084bb00d05904b700d24da70078bb00d05904b700d24da7006cbb00d05903b700d24da70060bb00d05904b700d24da70054bb00d05903b700d24da70048bb00d05904b700d24da7003cbb00d05903b700d24da70030bb00d5592ab40060b600efc000d0b600db872ab40036b600dfc000d0b600db876fb700e00305b600e3b600e74d2cb0000000020070000000520014000000c8000200ca003400ce003d00cf004000d3004900d4004c00d8005500d9005800dd006100de006400e2006d00e3007000e7007900e8007c00ec008500ed008800f1009100f2009400f600c100fe00eb00000011000afc00340700ec0b0b0b0b0b0b0b0b2c000100f200cc000200cd00000004000100ce002b0000013e00060003000000c3014d1baa000000be0000000000000008000000310000003d0000004900000055000000610000006d000000790000008500000091bb00d05904b700d24da70084bb00d05904b700d24da70078bb00d05904b700d24da7006cbb00d05903b700d24da70060bb00d05904b700d24da70054bb00d05903b700d24da70048bb00d05904b700d24da7003cbb00d05903b700d24da70030bb00d5592ab40060b600d7c000d0b600db872ab40036b600dfc000d0b600db876fb700e00305b600e3b600e74d2cb000000002007000000052001400000107000201090034010d003d010e0040011200490113004c0117005501180058011c0061011d00640121006d01220070012600790127007c012b0085012c00880130009101310094013500c1013d00eb00000011000afc00340700ec0b0b0b0b0b0b0b0b2c000100f3000000020002787571007e078c00001e5dcafebabe00000034011a07000201001d6368775f6c6973745f313630313838363732383735375f37333433333407000401002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a524576616c7561746f7201001b706172616d657465725f5245504f52545f434f4e4e454354494f4e0100324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d657465723b010017706172616d657465725f4a41535045525f5245504f525401001a706172616d657465725f5245504f52545f54494d455f5a4f4e4501000f706172616d657465725f6368774964010011706172616d657465725f6f726465724279010012706172616d657465725f7061676553697a6501001a706172616d657465725f5245504f52545f54454d504c4154455301001a706172616d657465725f5245504f52545f4d41585f434f554e5401001a706172616d657465725f5245504f52545f5343524950544c455401001f706172616d657465725f5245504f52545f504152414d45544552535f4d4150010020706172616d657465725f5245504f52545f5245534f555243455f42554e444c4501001c706172616d657465725f5245504f52545f444154415f534f55524345010015706172616d657465725f534f52545f4649454c4453010011706172616d657465725f76696c6c616765010010706172616d657465725f736563746f7201001e706172616d657465725f49535f49474e4f52455f504147494e4154494f4e010010706172616d657465725f46494c544552010010706172616d657465725f6f6666736574010017706172616d657465725f5245504f52545f4c4f43414c45010011706172616d657465725f6368774e616d65010020706172616d657465725f4a41535045525f5245504f5254535f434f4e54455854010013706172616d657465725f67726f75704e616d6501001f706172616d657465725f5245504f52545f464f524d41545f464143544f525901000f706172616d657465725f70686f6e65010012706172616d657465725f6469737472696374010018706172616d657465725f5245504f52545f434f4e5445585401001d706172616d657465725f5245504f52545f434c4153535f4c4f4144455201001c706172616d657465725f5245504f52545f5649525455414c495a4552010012706172616d657465725f666163696c69747901000f6669656c645f67726f75704e616d6501002e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c643b01000c6669656c645f67656e64657201000b6669656c645f70686f6e6501000e6669656c645f646973747269637401000b6669656c645f636877496401000d6669656c645f76696c6c61676501000c6669656c645f736563746f7201000e6669656c645f666163696c69747901000d6669656c645f6368774e616d650100147661726961626c655f504147455f4e554d4245520100314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c653b01001c7661726961626c655f4d41535445525f43555252454e545f5041474501001b7661726961626c655f4d41535445525f544f54414c5f50414745530100167661726961626c655f434f4c554d4e5f4e554d4245520100157661726961626c655f5245504f52545f434f554e540100137661726961626c655f504147455f434f554e540100157661726961626c655f434f4c554d4e5f434f554e540100063c696e69743e010003282956010004436f64650a000300390c00350036090001003b0c00050006090001003d0c00070006090001003f0c0008000609000100410c0009000609000100430c000a000609000100450c000b000609000100470c000c000609000100490c000d0006090001004b0c000e0006090001004d0c000f0006090001004f0c0010000609000100510c0011000609000100530c0012000609000100550c0013000609000100570c0014000609000100590c00150006090001005b0c00160006090001005d0c00170006090001005f0c0018000609000100610c0019000609000100630c001a000609000100650c001b000609000100670c001c000609000100690c001d0006090001006b0c001e0006090001006d0c001f0006090001006f0c0020000609000100710c0021000609000100730c0022000609000100750c0023002409000100770c0025002409000100790c00260024090001007b0c00270024090001007d0c00280024090001007f0c0029002409000100810c002a002409000100830c002b002409000100850c002c002409000100870c002d002e09000100890c002f002e090001008b0c0030002e090001008d0c0031002e090001008f0c0032002e09000100910c0033002e09000100930c0034002e01000f4c696e654e756d6265725461626c6501000e637573746f6d697a6564496e6974010030284c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b29560a000100980c0099009a01000a696e6974506172616d73010012284c6a6176612f7574696c2f4d61703b29560a0001009c0c009d009a01000a696e69744669656c64730a0001009f0c00a0009a010008696e6974566172730800a20100115245504f52545f434f4e4e454354494f4e0b00a400a60700a501000d6a6176612f7574696c2f4d61700c00a700a8010003676574010026284c6a6176612f6c616e672f4f626a6563743b294c6a6176612f6c616e672f4f626a6563743b0700aa0100306e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d657465720800ac01000d4a41535045525f5245504f52540800ae0100105245504f52545f54494d455f5a4f4e450800b001000563687749640800b20100076f7264657242790800b40100087061676553697a650800b60100105245504f52545f54454d504c415445530800b80100105245504f52545f4d41585f434f554e540800ba0100105245504f52545f5343524950544c45540800bc0100155245504f52545f504152414d45544552535f4d41500800be0100165245504f52545f5245534f555243455f42554e444c450800c00100125245504f52545f444154415f534f555243450800c201000b534f52545f4649454c44530800c401000776696c6c6167650800c6010006736563746f720800c801001449535f49474e4f52455f504147494e4154494f4e0800ca01000646494c5445520800cc0100066f66667365740800ce01000d5245504f52545f4c4f43414c450800d00100076368774e616d650800d20100164a41535045525f5245504f5254535f434f4e544558540800d401000967726f75704e616d650800d60100155245504f52545f464f524d41545f464143544f52590800d801000570686f6e650800da01000864697374726963740800dc01000e5245504f52545f434f4e544558540800de0100135245504f52545f434c4153535f4c4f414445520800e00100125245504f52545f5649525455414c495a45520800e2010008666163696c6974790700e401002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c640800e601000667656e6465720800e801000b504147455f4e554d4245520700ea01002f6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c650800ec0100134d41535445525f43555252454e545f504147450800ee0100124d41535445525f544f54414c5f50414745530800f001000d434f4c554d4e5f4e554d4245520800f201000c5245504f52545f434f554e540800f401000a504147455f434f554e540800f601000c434f4c554d4e5f434f554e540100086576616c756174650100152849294c6a6176612f6c616e672f4f626a6563743b01000a457863657074696f6e730700fb0100136a6176612f6c616e672f5468726f7761626c650a00fd00ff0700fe0100116a6176612f6c616e672f496e74656765720c0100010101000776616c75654f660100162849294c6a6176612f6c616e672f496e74656765723b0a00fd01030c00350104010004284929560a00a901060c0107010801000867657456616c756501001428294c6a6176612f6c616e672f4f626a6563743b07010a0100136a6176612f73716c2f436f6e6e656374696f6e07010c0100106a6176612f6c616e672f537472696e670a00fd010e0c0100010f010027284c6a6176612f6c616e672f537472696e673b294c6a6176612f6c616e672f496e74656765723b0a00e3010601000d537461636b4d61705461626c650701130100106a6176612f6c616e672f4f626a65637401000b6576616c756174654f6c640a00e301160c0117010801000b6765744f6c6456616c75650100116576616c75617465457374696d6174656401000a536f7572636546696c650021000100030000002d00020005000600000002000700060000000200080006000000020009000600000002000a000600000002000b000600000002000c000600000002000d000600000002000e000600000002000f0006000000020010000600000002001100060000000200120006000000020013000600000002001400060000000200150006000000020016000600000002001700060000000200180006000000020019000600000002001a000600000002001b000600000002001c000600000002001d000600000002001e000600000002001f000600000002002000060000000200210006000000020022000600000002002300240000000200250024000000020026002400000002002700240000000200280024000000020029002400000002002a002400000002002b002400000002002c002400000002002d002e00000002002f002e000000020030002e000000020031002e000000020032002e000000020033002e000000020034002e0000000800010035003600010037000001b600020001000000e62ab700382a01b5003a2a01b5003c2a01b5003e2a01b500402a01b500422a01b500442a01b500462a01b500482a01b5004a2a01b5004c2a01b5004e2a01b500502a01b500522a01b500542a01b500562a01b500582a01b5005a2a01b5005c2a01b5005e2a01b500602a01b500622a01b500642a01b500662a01b500682a01b5006a2a01b5006c2a01b5006e2a01b500702a01b500722a01b500742a01b500762a01b500782a01b5007a2a01b5007c2a01b5007e2a01b500802a01b500822a01b500842a01b500862a01b500882a01b5008a2a01b5008c2a01b5008e2a01b500902a01b50092b1000000010094000000be002f00000012000400190009001a000e001b0013001c0018001d001d001e0022001f00270020002c00210031002200360023003b00240040002500450026004a0027004f0028005400290059002a005e002b0063002c0068002d006d002e0072002f00770030007c00310081003200860033008b00340090003500950036009a0037009f003800a4003900a9003a00ae003b00b3003c00b8003d00bd003e00c2003f00c7004000cc004100d1004200d6004300db004400e0004500e50012000100950096000100370000003400020004000000102a2bb700972a2cb7009b2a2db7009eb10000000100940000001200040000005100050052000a0053000f005400020099009a000100370000024000030002000001b42a2b12a1b900a30200c000a9b5003a2a2b12abb900a30200c000a9b5003c2a2b12adb900a30200c000a9b5003e2a2b12afb900a30200c000a9b500402a2b12b1b900a30200c000a9b500422a2b12b3b900a30200c000a9b500442a2b12b5b900a30200c000a9b500462a2b12b7b900a30200c000a9b500482a2b12b9b900a30200c000a9b5004a2a2b12bbb900a30200c000a9b5004c2a2b12bdb900a30200c000a9b5004e2a2b12bfb900a30200c000a9b500502a2b12c1b900a30200c000a9b500522a2b12c3b900a30200c000a9b500542a2b12c5b900a30200c000a9b500562a2b12c7b900a30200c000a9b500582a2b12c9b900a30200c000a9b5005a2a2b12cbb900a30200c000a9b5005c2a2b12cdb900a30200c000a9b5005e2a2b12cfb900a30200c000a9b500602a2b12d1b900a30200c000a9b500622a2b12d3b900a30200c000a9b500642a2b12d5b900a30200c000a9b500662a2b12d7b900a30200c000a9b500682a2b12d9b900a30200c000a9b5006a2a2b12dbb900a30200c000a9b5006c2a2b12ddb900a30200c000a9b5006e2a2b12dfb900a30200c000a9b500702a2b12e1b900a30200c000a9b50072b10000000100940000007a001e0000005c000f005d001e005e002d005f003c0060004b0061005a00620069006300780064008700650096006600a5006700b4006800c3006900d2006a00e1006b00f0006c00ff006d010e006e011d006f012c0070013b0071014a0072015900730168007401770075018600760195007701a4007801b300790002009d009a00010037000000c400030002000000882a2b12d3b900a30200c000e3b500742a2b12e5b900a30200c000e3b500762a2b12d7b900a30200c000e3b500782a2b12d9b900a30200c000e3b5007a2a2b12afb900a30200c000e3b5007c2a2b12c3b900a30200c000e3b5007e2a2b12c5b900a30200c000e3b500802a2b12e1b900a30200c000e3b500822a2b12cfb900a30200c000e3b50084b10000000100940000002a000a00000081000f0082001e0083002d0084003c0085004b0086005a008700690088007800890087008a000200a0009a000100370000009e000300020000006a2a2b12e7b900a30200c000e9b500862a2b12ebb900a30200c000e9b500882a2b12edb900a30200c000e9b5008a2a2b12efb900a30200c000e9b5008c2a2b12f1b900a30200c000e9b5008e2a2b12f3b900a30200c000e9b500902a2b12f5b900a30200c000e9b50092b100000001009400000022000800000092000f0093001e0094002d0095003c0096004b0097005a009800690099000100f700f8000200f900000004000100fa003700000343000300030000020b014d1baa00000206000000000000001d000000850000008b000000940000009c000000a8000000b4000000c0000000cc000000d8000000e4000000f0000000fc0000010a00000118000001260000013400000142000001500000015e0000016c0000017a0000018b00000199000001a7000001b5000001c3000001d1000001df000001ed000001fb12af4da7017e1014b800fc4da7017503b800fc4da7016dbb00fd5904b701024da70161bb00fd5904b701024da70155bb00fd5904b701024da70149bb00fd5903b701024da7013dbb00fd5904b701024da70131bb00fd5903b701024da70125bb00fd5904b701024da70119bb00fd5903b701024da7010d2ab4003ab60105c001094da700ff2ab40040b60105c0010b4da700f12ab40060b60105c0010b4da700e32ab4006ab60105c0010b4da700d52ab40056b60105c0010b4da700c72ab40072b60105c0010b4da700b92ab40054b60105c0010b4da700ab2ab40068b60105c0010b4da7009d2ab40064b60105c0010b4da7008f2ab40044b60105c0010bb8010d4da7007e2ab4007cb60110c0010b4da700702ab40084b60110c0010b4da700622ab40076b60110c0010b4da700542ab4007ab60110c0010b4da700462ab40080b60110c0010b4da700382ab40082b60110c0010b4da7002a2ab4007eb60110c0010b4da7001c2ab40078b60110c0010b4da7000e2ab40074b60110c0010b4d2cb0000000020094000000fa003e000000a1000200a3008800a7008b00a8008e00ac009400ad009700b1009c00b2009f00b600a800b700ab00bb00b400bc00b700c000c000c100c300c500cc00c600cf00ca00d800cb00db00cf00e400d000e700d400f000d500f300d900fc00da00ff00de010a00df010d00e3011800e4011b00e8012600e9012900ed013400ee013700f2014200f3014500f7015000f8015300fc015e00fd01610101016c0102016f0106017a0107017d010b018b010c018e011001990111019c011501a7011601aa011a01b5011b01b8011f01c3012001c6012401d1012501d4012901df012a01e2012e01ed012f01f0013301fb013401fe013802090140011100000026001ffc00880701120508070b0b0b0b0b0b0b0b0d0d0d0d0d0d0d0d0d100d0d0d0d0d0d0d0d0a0001011400f8000200f900000004000100fa003700000343000300030000020b014d1baa00000206000000000000001d000000850000008b000000940000009c000000a8000000b4000000c0000000cc000000d8000000e4000000f0000000fc0000010a00000118000001260000013400000142000001500000015e0000016c0000017a0000018b00000199000001a7000001b5000001c3000001d1000001df000001ed000001fb12af4da7017e1014b800fc4da7017503b800fc4da7016dbb00fd5904b701024da70161bb00fd5904b701024da70155bb00fd5904b701024da70149bb00fd5903b701024da7013dbb00fd5904b701024da70131bb00fd5903b701024da70125bb00fd5904b701024da70119bb00fd5903b701024da7010d2ab4003ab60105c001094da700ff2ab40040b60105c0010b4da700f12ab40060b60105c0010b4da700e32ab4006ab60105c0010b4da700d52ab40056b60105c0010b4da700c72ab40072b60105c0010b4da700b92ab40054b60105c0010b4da700ab2ab40068b60105c0010b4da7009d2ab40064b60105c0010b4da7008f2ab40044b60105c0010bb8010d4da7007e2ab4007cb60115c0010b4da700702ab40084b60115c0010b4da700622ab40076b60115c0010b4da700542ab4007ab60115c0010b4da700462ab40080b60115c0010b4da700382ab40082b60115c0010b4da7002a2ab4007eb60115c0010b4da7001c2ab40078b60115c0010b4da7000e2ab40074b60115c0010b4d2cb0000000020094000000fa003e000001490002014b0088014f008b0150008e01540094015500970159009c015a009f015e00a8015f00ab016300b4016400b7016800c0016900c3016d00cc016e00cf017200d8017300db017700e4017800e7017c00f0017d00f3018100fc018200ff0186010a0187010d018b0118018c011b01900126019101290195013401960137019a0142019b0145019f015001a0015301a4015e01a5016101a9016c01aa016f01ae017a01af017d01b3018b01b4018e01b8019901b9019c01bd01a701be01aa01c201b501c301b801c701c301c801c601cc01d101cd01d401d101df01d201e201d601ed01d701f001db01fb01dc01fe01e0020901e8011100000026001ffc00880701120508070b0b0b0b0b0b0b0b0d0d0d0d0d0d0d0d0d100d0d0d0d0d0d0d0d0a0001011800f8000200f900000004000100fa003700000343000300030000020b014d1baa00000206000000000000001d000000850000008b000000940000009c000000a8000000b4000000c0000000cc000000d8000000e4000000f0000000fc0000010a00000118000001260000013400000142000001500000015e0000016c0000017a0000018b00000199000001a7000001b5000001c3000001d1000001df000001ed000001fb12af4da7017e1014b800fc4da7017503b800fc4da7016dbb00fd5904b701024da70161bb00fd5904b701024da70155bb00fd5904b701024da70149bb00fd5903b701024da7013dbb00fd5904b701024da70131bb00fd5903b701024da70125bb00fd5904b701024da70119bb00fd5903b701024da7010d2ab4003ab60105c001094da700ff2ab40040b60105c0010b4da700f12ab40060b60105c0010b4da700e32ab4006ab60105c0010b4da700d52ab40056b60105c0010b4da700c72ab40072b60105c0010b4da700b92ab40054b60105c0010b4da700ab2ab40068b60105c0010b4da7009d2ab40064b60105c0010b4da7008f2ab40044b60105c0010bb8010d4da7007e2ab4007cb60110c0010b4da700702ab40084b60110c0010b4da700622ab40076b60110c0010b4da700542ab4007ab60110c0010b4da700462ab40080b60110c0010b4da700382ab40082b60110c0010b4da7002a2ab4007eb60110c0010b4da7001c2ab40078b60110c0010b4da7000e2ab40074b60110c0010b4d2cb0000000020094000000fa003e000001f1000201f3008801f7008b01f8008e01fc009401fd00970201009c0202009f020600a8020700ab020b00b4020c00b7021000c0021100c3021500cc021600cf021a00d8021b00db021f00e4022000e7022400f0022500f3022900fc022a00ff022e010a022f010d023301180234011b0238012602390129023d0134023e013702420142024301450247015002480153024c015e024d01610251016c0252016f0256017a0257017d025b018b025c018e026001990261019c026501a7026601aa026a01b5026b01b8026f01c3027001c6027401d1027501d4027901df027a01e2027e01ed027f01f0028301fb028401fe028802090290011100000026001ffc00880701120508070b0b0b0b0b0b0b0b0d0d0d0d0d0d0d0d0d100d0d0d0d0d0d0d0d0a000101190000000200027400155f313630313838363732383735375f3733343333347400326e65742e73662e6a61737065727265706f7274732e656e67696e652e64657369676e2e4a524a61766163436f6d70696c6572'
where id = '2201766b-eff3-452d-bc0e-89548526b27c';
--changeset pmuchowski:1601852823634-6
UPDATE jasper_templates SET `data` =
X'aced0005737200286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f727400000000000027d80200034c000b636f6d70696c65446174617400164c6a6176612f696f2f53657269616c697a61626c653b4c0011636f6d70696c654e616d655375666669787400124c6a6176612f6c616e672f537472696e673b4c000d636f6d70696c6572436c61737371007e00027872002d6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655265706f727400000000000027d802002b49001950534555444f5f53455249414c5f56455253494f4e5f55494449000c626f74746f6d4d617267696e49000b636f6c756d6e436f756e7449000d636f6c756d6e53706163696e6749000b636f6c756d6e57696474685a001069676e6f7265506167696e6174696f6e5a00136973466c6f6174436f6c756d6e466f6f7465725a0010697353756d6d6172794e6577506167655a0020697353756d6d6172795769746850616765486561646572416e64466f6f7465725a000e69735469746c654e65775061676549000a6c6566744d617267696e42000b6f7269656e746174696f6e49000a7061676548656967687449000970616765576964746842000a7072696e744f7264657249000b72696768744d617267696e490009746f704d617267696e42000e7768656e4e6f44617461547970654c000a6261636b67726f756e647400244c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5242616e643b4c000f636f6c756d6e446972656374696f6e7400334c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f52756e446972656374696f6e456e756d3b4c000c636f6c756d6e466f6f74657271007e00044c000c636f6c756d6e48656164657271007e00045b000864617461736574737400285b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52446174617365743b4c000c64656661756c745374796c657400254c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525374796c653b4c000664657461696c71007e00044c000d64657461696c53656374696f6e7400274c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5253656374696f6e3b4c0012666f726d6174466163746f7279436c61737371007e00024c000a696d706f72747353657474000f4c6a6176612f7574696c2f5365743b4c00086c616e677561676571007e00024c000e6c61737450616765466f6f74657271007e00044c000b6d61696e446174617365747400274c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52446174617365743b4c00046e616d6571007e00024c00066e6f4461746171007e00044c00106f7269656e746174696f6e56616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4f7269656e746174696f6e456e756d3b4c000a70616765466f6f74657271007e00044c000a7061676548656164657271007e00044c000f7072696e744f7264657256616c75657400314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5072696e744f72646572456e756d3b4c000b73656374696f6e547970657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f53656374696f6e54797065456e756d3b5b00067374796c65737400265b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525374796c653b4c000773756d6d61727971007e00045b000974656d706c6174657374002f5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525265706f727454656d706c6174653b4c00057469746c6571007e00044c00137768656e4e6f446174615479706556616c75657400354c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5768656e4e6f4461746154797065456e756d3b78700000ea620000001400000001000000000000032200000000000000001400000002530000034a000000001400000014007372002b6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736542616e6400000000000027d802000849001950534555444f5f53455249414c5f56455253494f4e5f5549444900066865696768745a000e697353706c6974416c6c6f7765644c00137072696e745768656e45787072657373696f6e74002a4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5245787072657373696f6e3b4c000d70726f706572746965734d617074002d4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250726f706572746965734d61703b4c000c72657475726e56616c7565737400104c6a6176612f7574696c2f4c6973743b4c000973706c6974547970657400104c6a6176612f6c616e672f427974653b4c000e73706c69745479706556616c75657400304c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f53706c697454797065456e756d3b787200336e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365456c656d656e7447726f757000000000000027d80200024c00086368696c6472656e71007e00154c000c656c656d656e7447726f757074002c4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52456c656d656e7447726f75703b7870737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000077040000000078700000ea620000000001707070707e72002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e53706c697454797065456e756d00000000000000001200007872000e6a6176612e6c616e672e456e756d00000000000000001200007870740007535452455443487e7200316e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e52756e446972656374696f6e456e756d00000000000000001200007871007e001e7400034c5452707371007e00127371007e001b00000009770400000009737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655374617469635465787400000000000027d80200014c00047465787471007e0002787200326e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736554657874456c656d656e7400000000000027d802001949001950534555444f5f53455249414c5f56455253494f4e5f5549444c0008666f6e744e616d6571007e00024c0008666f6e7453697a657400134c6a6176612f6c616e672f496e74656765723b4c0008666f6e7473697a657400114c6a6176612f6c616e672f466c6f61743b4c0013686f72697a6f6e74616c416c69676e6d656e7471007e00164c0018686f72697a6f6e74616c416c69676e6d656e7456616c75657400364c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f486f72697a6f6e74616c416c69676e456e756d3b4c0013686f72697a6f6e74616c54657874416c69676e74003a4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f486f72697a6f6e74616c54657874416c69676e456e756d3b4c00066973426f6c647400134c6a6176612f6c616e672f426f6f6c65616e3b4c000869734974616c696371007e002c4c000d6973506466456d62656464656471007e002c4c000f6973537472696b655468726f75676871007e002c4c000c69735374796c65645465787471007e002c4c000b6973556e6465726c696e6571007e002c4c00076c696e65426f787400274c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a524c696e65426f783b4c000b6c696e6553706163696e6771007e00164c00106c696e6553706163696e6756616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4c696e6553706163696e67456e756d3b4c00066d61726b757071007e00024c00097061726167726170687400294c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525061726167726170683b4c000b706466456e636f64696e6771007e00024c000b706466466f6e744e616d6571007e00024c0008726f746174696f6e71007e00164c000d726f746174696f6e56616c756574002f4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f526f746174696f6e456e756d3b4c0011766572746963616c416c69676e6d656e7471007e00164c0016766572746963616c416c69676e6d656e7456616c75657400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f566572746963616c416c69676e456e756d3b4c0011766572746963616c54657874416c69676e7400384c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f566572746963616c54657874416c69676e456e756d3b7872002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365456c656d656e7400000000000027d802001b49001950534555444f5f53455249414c5f56455253494f4e5f5549444900066865696768745a001769735072696e74496e466972737457686f6c6542616e645a001569735072696e74526570656174656456616c7565735a001a69735072696e745768656e44657461696c4f766572666c6f77735a0015697352656d6f76654c696e655768656e426c616e6b42000c706f736974696f6e5479706542000b7374726574636854797065490005776964746849000178490001794c00096261636b636f6c6f727400104c6a6176612f6177742f436f6c6f723b4c001464656661756c745374796c6550726f76696465727400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5244656661756c745374796c6550726f76696465723b4c000c656c656d656e7447726f757071007e00194c0009666f7265636f6c6f7271007e00344c00036b657971007e00024c00046d6f646571007e00164c00096d6f646556616c756574002b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4d6f6465456e756d3b4c000b706172656e745374796c6571007e00074c0018706172656e745374796c654e616d655265666572656e636571007e00024c0011706f736974696f6e5479706556616c75657400334c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f506f736974696f6e54797065456e756d3b4c00137072696e745768656e45787072657373696f6e71007e00134c00157072696e745768656e47726f75704368616e6765737400254c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5247726f75703b4c000d70726f706572746965734d617071007e00145b001370726f706572747945787072657373696f6e737400335b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250726f706572747945787072657373696f6e3b4c0010737472657463685479706556616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5374726574636854797065456e756d3b4c0004757569647400104c6a6176612f7574696c2f555549443b78700000ea620000001e0001000000000000006e00000000000000007071007e001171007e00247070707070707e7200316e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e506f736974696f6e54797065456e756d00000000000000001200007871007e001e7400134649585f52454c41544956455f544f5f544f5070707372002b6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5250726f706572746965734d617000000000000027d80200034c00046261736571007e00144c000e70726f706572746965734c69737471007e00154c000d70726f706572746965734d617074000f4c6a6176612f7574696c2f4d61703b7870707371007e001b00000001770400000001740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746878737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f400000000000037708000000040000000171007e0044740002707878707e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5374726574636854797065456e756d00000000000000001200007871007e001e74000a4e4f5f535452455443487372000e6a6176612e7574696c2e55554944bc9903f7986d852f0200024a000c6c65617374536967426974734a000b6d6f7374536967426974737870b2db96a319f5ed65cf6b0abd332742630000ea6270707372000f6a6176612e6c616e672e466c6f6174daedc9a2db3cf0ec02000146000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870412000007070707070707070707372002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654c696e65426f7800000000000027d802000b4c000d626f74746f6d50616464696e6771007e00284c0009626f74746f6d50656e74002b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f626173652f4a52426f7850656e3b4c000c626f78436f6e7461696e657274002c4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52426f78436f6e7461696e65723b4c000b6c65667450616464696e6771007e00284c00076c65667450656e71007e00514c000770616464696e6771007e00284c000370656e71007e00514c000c726967687450616464696e6771007e00284c0008726967687450656e71007e00514c000a746f7050616464696e6771007e00284c0006746f7050656e71007e0051787070737200336e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f78426f74746f6d50656e00000000000027d80200007872002d6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f7850656e00000000000027d80200014c00076c696e65426f7871007e002d7872002a6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736550656e00000000000027d802000649001950534555444f5f53455249414c5f56455253494f4e5f5549444c00096c696e65436f6c6f7271007e00344c00096c696e655374796c6571007e00164c000e6c696e655374796c6556616c75657400304c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4c696e655374796c65456e756d3b4c00096c696e65576964746871007e00294c000c70656e436f6e7461696e657274002c4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250656e436f6e7461696e65723b78700000ea627372000e6a6176612e6177742e436f6c6f7201a51783108f337502000546000666616c70686149000576616c75654c0002637374001b4c6a6176612f6177742f636f6c6f722f436f6c6f7253706163653b5b00096672676276616c75657400025b465b00066676616c756571007e005c787000000000ff000000707070707e72002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4c696e655374796c65456e756d00000000000000001200007871007e001e740005534f4c49447371007e004d3f80000071007e005371007e005371007e003c737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c75657871007e004e00000004737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f784c65667450656e00000000000027d80200007871007e00550000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e005371007e0053707371007e00550000ea627070707071007e005371007e005370737200326e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f78526967687450656e00000000000027d80200007871007e00550000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e005371007e005370737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365426f78546f7050656e00000000000027d80200007871007e00550000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e005371007e0053707070737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736550617261677261706800000000000027d802000a4c000f66697273744c696e65496e64656e7471007e00284c000a6c656674496e64656e7471007e00284c000b6c696e6553706163696e6771007e002e4c000f6c696e6553706163696e6753697a6571007e00294c0012706172616772617068436f6e7461696e65727400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52506172616772617068436f6e7461696e65723b4c000b7269676874496e64656e7471007e00284c000c73706163696e67416674657271007e00284c000d73706163696e674265666f726571007e00284c000c74616253746f70576964746871007e00284c000874616253746f707371007e001578707070707071007e003c70707070707070707070707e7200366e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e566572746963616c54657874416c69676e456e756d00000000000000001200007871007e001e7400064d4944444c4574000249447371007e00260000ea620000001e000100000000000000c80000006e000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e007c740002707871007e007b7400027078787071007e00497371007e004bb0897ea706bbf287ab4f850ab5f14b440000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e008271007e007871007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e0082707371007e00550000ea627070707071007e008271007e0082707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e0082707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e008271007e00827070707371007e00717070707071007e0078707070707070707070707071007e0075740008434857204e616d657371007e00260000ea620000001e0001000000000000003c00000136000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e0096740002707871007e00957400027078787071007e00497371007e004b8c05ba304746d28cece61ced74094f8c0000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c71007e009271007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c707371007e00550000ea627070707071007e009c71007e009c707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e009c71007e009c7070707371007e00717070707071007e0092707070707070707070707071007e007574000647656e6465727371007e00260000ea620000001e0001000000000000004600000172000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e00b0740002707871007e00af7400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b671007e00ac71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b6707371007e00550000ea627070707071007e00b671007e00b6707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b6707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00b671007e00b67070707371007e00717070707071007e00ac707070707070707070707071007e007574000844697374726963747371007e00260000ea620000001e00010000000000000046000001b8000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e00ca740002707871007e00c97400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d071007e00c671007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d0707371007e00550000ea627070707071007e00d071007e00d0707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d0707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00d071007e00d07070707371007e00717070707071007e00c6707070707070707070707071007e0075740006536563746f727371007e00260000ea620000001e00010000000000000046000001fe000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e00e4740002707871007e00e37400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea71007e00e071007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea707371007e00550000ea627070707071007e00ea71007e00ea707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e00ea71007e00ea7070707371007e00717070707071007e00e0707070707070707070707071007e0075740008466163696c6974797371007e00260000ea620000001e0001000000000000005000000244000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e00fe740002707871007e00fd7400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e010471007e00fa71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e0104707371007e00550000ea627070707071007e010471007e0104707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e0104707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e010471007e01047070707371007e00717070707071007e00fa707070707070707070707071007e007574000756696c6c6167657371007e00260000ea620000001e0001000000000000005000000294000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e0118740002707871007e01177400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e71007e011471007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e707371007e00550000ea627070707071007e011e71007e011e707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e011e71007e011e7070707371007e00717070707071007e0114707070707070707070707071007e007574000c50686f6e65204e756d6265727371007e00260000ea620000001e0001000000000000003c000002e4000000007071007e001171007e002470707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000271007e0132740002707871007e01317400027078787071007e00497371007e004ba39477b69cd3c7210176ef1a9b064ac20000ea6270707371007e004d412000007070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e013871007e012e71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e0138707371007e00550000ea627070707071007e013871007e0138707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e0138707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e013871007e01387070707371007e00717070707071007e012e707070707070707070707071007e007574000547726f757078700000ea620000001e01707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e014a740002707878707070757200285b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a52446174617365743b4c1a3698cdac9c440200007870000000017372002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654461746173657400000000000027d802001249001950534555444f5f53455249414c5f56455253494f4e5f5549445a000669734d61696e4200177768656e5265736f757263654d697373696e67547970655b00066669656c64737400265b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a524669656c643b4c001066696c74657245787072657373696f6e71007e00135b000667726f7570737400265b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5247726f75703b4c00046e616d6571007e00025b000a706172616d657465727374002a5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52506172616d657465723b4c000d70726f706572746965734d617071007e00145b001370726f706572747945787072657373696f6e737400385b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4461746173657450726f706572747945787072657373696f6e3b4c000571756572797400254c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5251756572793b4c000e7265736f7572636542756e646c6571007e00024c000e7363726970746c6574436c61737371007e00025b000a7363726970746c65747374002a5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525363726970746c65743b5b000a736f72744669656c647374002a5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52536f72744669656c643b4c00047575696471007e003b5b00097661726961626c65737400295b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a525661726961626c653b4c001c7768656e5265736f757263654d697373696e675479706556616c756574003e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5768656e5265736f757263654d697373696e6754797065456e756d3b78700000ea620000757200265b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a524669656c643b023cdfc74e2af2700200007870000000017372002c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654669656c6400000000000027d80200064c000b6465736372697074696f6e71007e00024c00046e616d6571007e00024c000d70726f706572746965734d617071007e00145b001370726f706572747945787072657373696f6e7371007e00394c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e000278707074000d746f74616c456c656d656e74737371007e0040707070707400116a6176612e6c616e672e496e746567657270707074000c5265636f726473436f756e747572002a5b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a52506172616d657465723b22000c8d2ac36021020000787000000019737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365506172616d6574657200000000000027d802000a5a000e6973466f7250726f6d7074696e675a000f697353797374656d446566696e65644c001664656661756c7456616c756545787072657373696f6e71007e00134c000b6465736372697074696f6e71007e00024c000e6576616c756174696f6e54696d6574003e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f506172616d657465724576616c756174696f6e54696d65456e756d3b4c00046e616d6571007e00024c000e6e6573746564547970654e616d6571007e00024c000d70726f706572746965734d617071007e00144c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e00027870010170707074000e5245504f52545f434f4e54455854707371007e00407070707400296e65742e73662e6a61737065727265706f7274732e656e67696e652e5265706f7274436f6e74657874707371007e016401017070707400155245504f52545f504152414d45544552535f4d4150707371007e004070707074000d6a6176612e7574696c2e4d6170707371007e016401017070707400164a41535045525f5245504f5254535f434f4e54455854707371007e00407070707400306e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f727473436f6e74657874707371007e0164010170707074000d4a41535045525f5245504f5254707371007e00407070707400286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f7274707371007e016401017070707400115245504f52545f434f4e4e454354494f4e707371007e00407070707400136a6176612e73716c2e436f6e6e656374696f6e707371007e016401017070707400105245504f52545f4d41585f434f554e54707371007e00407070707400116a6176612e6c616e672e496e7465676572707371007e016401017070707400125245504f52545f444154415f534f55524345707371007e00407070707400286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5244617461536f75726365707371007e016401017070707400105245504f52545f5343524950544c4554707371007e004070707074002f6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5241627374726163745363726970746c6574707371007e0164010170707074000d5245504f52545f4c4f43414c45707371007e00407070707400106a6176612e7574696c2e4c6f63616c65707371007e016401017070707400165245504f52545f5245534f555243455f42554e444c45707371007e00407070707400186a6176612e7574696c2e5265736f7572636542756e646c65707371007e016401017070707400105245504f52545f54494d455f5a4f4e45707371007e00407070707400126a6176612e7574696c2e54696d655a6f6e65707371007e016401017070707400155245504f52545f464f524d41545f464143544f5259707371007e004070707074002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e7574696c2e466f726d6174466163746f7279707371007e016401017070707400135245504f52545f434c4153535f4c4f41444552707371007e00407070707400156a6176612e6c616e672e436c6173734c6f61646572707371007e016401017070707400105245504f52545f54454d504c41544553707371007e00407070707400146a6176612e7574696c2e436f6c6c656374696f6e707371007e0164010170707074000b534f52545f4649454c4453707371007e004070707074000e6a6176612e7574696c2e4c697374707371007e0164010170707074000646494c544552707371007e00407070707400296e65742e73662e6a61737065727265706f7274732e656e67696e652e4461746173657446696c746572707371007e016400007070707400056368774964707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e016400007070707400076368774e616d65707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e016400007070707400086469737472696374707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e01640000707070740006736563746f72707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e01640000707070740008666163696c697479707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e0164000070707074000776696c6c616765707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e0164000070707074000570686f6e65707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e0164000070707074000967726f75704e616d65707371007e00407070707400106a6176612e6c616e672e537472696e67707371007e016400007070707400087061676553697a65707371007e00407070707400116a6176612e6c616e672e496e7465676572707371007e0040707070707372002c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365517565727900000000000027d80200025b00066368756e6b7374002b5b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5251756572794368756e6b3b4c00086c616e677561676571007e000278707572002b5b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5251756572794368756e6b3b409f00a1e8ba34a4020000787000000021737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736551756572794368756e6b00000000000027d8020004420004747970654c00047465787471007e00024c000e746f6b656e536570617261746f727400154c6a6176612f6c616e672f4368617261637465723b5b0006746f6b656e737400135b4c6a6176612f6c616e672f537472696e673b78700174016453454c4543540a2020434f554e54282a2920415320746f74616c456c656d656e74730a2046524f4d20636f6d6d756e6974795f6865616c74685f776f726b6572204153206368770a204a4f494e206469737472696374204f4e206368772e64697374726963745f6964203d2064697374726963742e69640a204c454654204a4f494e20736563746f72204f4e206368772e736563746f725f6964203d20736563746f722e69640a204c454654204a4f494e20666163696c697479204f4e206368772e666163696c6974795f6964203d20666163696c6974792e69640a204c454654204a4f494e2076696c6c616765204f4e206368772e76696c6c6167655f6964203d2076696c6c6167652e69640a204c454654204a4f494e206368775f67726f7570204f4e206368775f67726f75702e6964203d206368772e67726f75705f69640a205748455245206368772e73656c6563746564203d20545255450a2020414e44202870707371007e01d002740005636877496470707371007e01d001740027204953204e554c4c204f52206368772e6368775f6964204c494b4520434f4e434154282725272c70707371007e01d002740005636877496470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d0027400076368774e616d6570707371007e01d001740029204953204e554c4c204f52206368772e6368775f6e616d65204c494b4520434f4e434154282725272c70707371007e01d0027400076368774e616d6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008646973747269637470707371007e01d00174002a204953204e554c4c204f522064697374726963742e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008646973747269637470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740006736563746f7270707371007e01d001740028204953204e554c4c204f5220736563746f722e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740006736563746f7270707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008666163696c69747970707371007e01d00174002a204953204e554c4c204f5220666163696c6974792e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008666163696c69747970707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000776696c6c61676570707371007e01d001740029204953204e554c4c204f522076696c6c6167652e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000776696c6c61676570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000570686f6e6570707371007e01d00174002d204953204e554c4c204f52206368772e70686f6e655f6e756d626572204c494b4520434f4e434154282725272c70707371007e01d00274000570686f6e6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000967726f75704e616d6570707371007e01d00174002b204953204e554c4c204f52206368775f67726f75702e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000967726f75704e616d6570707371007e01d0017400062c2725272929707074000373716c707070707371007e004b8c5d7eba0062e560e9148ca7f94d4a67757200295b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a525661726961626c653b62e6837c982cb7440200007870000000077372002f6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655661726961626c6500000000000027d802001249001950534555444f5f53455249414c5f56455253494f4e5f55494442000b63616c63756c6174696f6e42000d696e6372656d656e74547970655a000f697353797374656d446566696e65644200097265736574547970654c001063616c63756c6174696f6e56616c75657400324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f43616c63756c6174696f6e456e756d3b4c000b6465736372697074696f6e71007e00024c000a65787072657373696f6e71007e00134c000e696e6372656d656e7447726f757071007e00384c0012696e6372656d656e745479706556616c75657400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f496e6372656d656e7454797065456e756d3b4c001b696e6372656d656e746572466163746f7279436c6173734e616d6571007e00024c001f696e6372656d656e746572466163746f7279436c6173735265616c4e616d6571007e00024c0016696e697469616c56616c756545787072657373696f6e71007e00134c00046e616d6571007e00024c000a726573657447726f757071007e00384c000e72657365745479706556616c75657400304c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f526573657454797065456e756d3b4c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e00027870000077ee000001007e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e43616c63756c6174696f6e456e756d00000000000000001200007871007e001e74000653595354454d7070707e7200326e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e496e6372656d656e7454797065456e756d00000000000000001200007871007e001e7400044e4f4e457070737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736545787072657373696f6e00000000000027d802000549000269645b00066368756e6b737400305b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5245787072657373696f6e4368756e6b3b4c0004747970657400354c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f45787072657373696f6e54797065456e756d3b4c000e76616c7565436c6173734e616d6571007e00024c001276616c7565436c6173735265616c4e616d6571007e0002787000000000757200305b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5245787072657373696f6e4368756e6b3b6d59cfde694ba355020000787000000001737200366e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736545787072657373696f6e4368756e6b00000000000027d8020002420004747970654c00047465787471007e00027870017400186e6577206a6176612e6c616e672e496e746567657228312970707074000b504147455f4e554d424552707e72002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e526573657454797065456e756d00000000000000001200007871007e001e7400065245504f525471007e017d707371007e0219000077ee0000010071007e021f70707071007e02227070707400134d41535445525f43555252454e545f504147457071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e02227070707400124d41535445525f544f54414c5f50414745537071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707371007e0224000000017571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228312970707074000d434f4c554d4e5f4e554d424552707e71007e022e7400045041474571007e017d707371007e0219000077ee000001007e71007e021e740005434f554e54707371007e0224000000027571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000037571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707074000c5245504f52545f434f554e547071007e022f71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000047571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000057571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707074000a504147455f434f554e547071007e023b71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000067571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000077571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707074000c434f4c554d4e5f434f554e54707e71007e022e740006434f4c554d4e71007e017d707e72003c6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5768656e5265736f757263654d697373696e6754797065456e756d00000000000000001200007871007e001e7400044e554c4c70707372002e6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736553656374696f6e00000000000027d80200025b000562616e64737400255b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5242616e643b5b000570617274737400255b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52506172743b7870757200255b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a5242616e643b95dd7eec8cca85350200007870000000017371007e00127371007e001b00000009770400000009737200306e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365546578744669656c6400000000000027d802001549001950534555444f5f53455249414c5f56455253494f4e5f55494449000d626f6f6b6d61726b4c6576656c42000e6576616c756174696f6e54696d6542000f68797065726c696e6b54617267657442000d68797065726c696e6b547970655a0015697353747265746368576974684f766572666c6f774c0014616e63686f724e616d6545787072657373696f6e71007e00134c000f6576616c756174696f6e47726f757071007e00384c00136576616c756174696f6e54696d6556616c75657400354c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f4576616c756174696f6e54696d65456e756d3b4c000a65787072657373696f6e71007e00134c001968797065726c696e6b416e63686f7245787072657373696f6e71007e00134c001768797065726c696e6b5061676545787072657373696f6e71007e00135b001368797065726c696e6b506172616d65746572737400335b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5248797065726c696e6b506172616d657465723b4c001c68797065726c696e6b5265666572656e636545787072657373696f6e71007e00134c001a68797065726c696e6b546f6f6c74697045787072657373696f6e71007e00134c001768797065726c696e6b5768656e45787072657373696f6e71007e00134c000f6973426c616e6b5768656e4e756c6c71007e002c4c000a6c696e6b54617267657471007e00024c00086c696e6b5479706571007e00024c00077061747465726e71007e00024c00117061747465726e45787072657373696f6e71007e00137871007e00270000ea620000001e0001000000000000006e00000000000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000271007e027074000c76616c7565732e636877496471007e0271740002707878707e71007e004874001a52454c41544956455f544f5f54414c4c4553545f4f424a4543547371007e004bb4da86d5b4785a23b4a7916d24bc45400000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e027871007e026d71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e0278707371007e00550000ea627070707071007e027871007e0278707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e0278707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e027871007e02787070707371007e00717070707071007e026d707070707070707070707071007e00750000ea62000000000000000170707e7200336e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4576616c756174696f6e54696d65456e756d00000000000000001200007871007e001e7400034e4f577371007e0224000000157571007e0228000000017371007e022a037400056368774964707070707070707070737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787001707070707371007e026a0000ea620000001e000100000000000000c80000006e000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e776964746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78787371007e00453f400000000000037708000000040000000371007e0295740002707871007e029374000e76616c7565732e6368774e616d6571007e02947400027078787071007e02757371007e004b814e3e89c9652e62592c94f9cf9249390000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b71007e029071007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b707371007e00550000ea627070707071007e029b71007e029b707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e029b71007e029b7070707371007e00717070707071007e0290707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000167571007e0228000000017371007e022a037400076368774e616d6570707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000003c00000136000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e02b2740002707871007e02b174000d76616c7565732e67656e64657271007e02b37400027078787071007e02757371007e004b8893930db8402bc2231172d9bfa24d170000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b971007e02ae71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b9707371007e00550000ea627070707071007e02b971007e02b9707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b9707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02b971007e02b97070707371007e00717070707071007e02ae707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000177571007e0228000000017371007e022a0374000667656e64657270707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000004600000172000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e02d0740002707871007e02cf74000f76616c7565732e646973747269637471007e02d17400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d771007e02cc71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d7707371007e00550000ea627070707071007e02d771007e02d7707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d7707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02d771007e02d77070707371007e00717070707071007e02cc707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000187571007e0228000000017371007e022a03740008646973747269637470707070707070707071007e028f707070707371007e026a0000ea620000001e00010000000000000046000001b8000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e02ee740002707871007e02ed74000d76616c7565732e736563746f7271007e02ef7400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f571007e02ea71007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f5707371007e00550000ea627070707071007e02f571007e02f5707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f5707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e02f571007e02f57070707371007e00717070707071007e02ea707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e0224000000197571007e0228000000017371007e022a03740006736563746f7270707070707070707071007e028f707070707371007e026a0000ea620000001e00010000000000000046000001fe000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e030c740002707871007e030b74000f76616c7565732e666163696c69747971007e030d7400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e031371007e030871007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e0313707371007e00550000ea627070707071007e031371007e0313707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e0313707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e031371007e03137070707371007e00717070707071007e0308707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001a7571007e0228000000017371007e022a03740008666163696c69747970707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000005000000244000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e032a740002707871007e032974000e76616c7565732e76696c6c61676571007e032b7400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e033171007e032671007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e0331707371007e00550000ea627070707071007e033171007e0331707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e0331707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e033171007e03317070707371007e00717070707071007e0326707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001b7571007e0228000000017371007e022a0374000776696c6c61676570707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000005000000294000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e0348740002707871007e034774000c76616c7565732e70686f6e6571007e03497400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f71007e034471007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f707371007e00550000ea627070707071007e034f71007e034f707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e034f71007e034f7070707371007e00717070707071007e0344707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001c7571007e0228000000017371007e022a0374000570686f6e6570707070707070707071007e028f707070707371007e026a0000ea620000001e0001000000000000003c000002e4000000007071007e001171007e026870707070707071007e003e70707371007e0040707371007e001b000000037704000000037400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e7061746874001c636f6d2e6a6173706572736f66742e73747564696f2e756e69742e78740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468787371007e00453f400000000000037708000000040000000371007e0366740002707871007e036574001076616c7565732e67726f75704e616d6571007e03677400027078787071007e02757371007e004bac71960408c5581e2d46b8a02f3147320000ea627070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d71007e036271007e00637371007e00640000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d707371007e00550000ea627070707071007e036d71007e036d707371007e00690000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d707371007e006d0000ea627371007e005a00000000ff0000007070707071007e005f7371007e004d3f80000071007e036d71007e036d7070707371007e00717070707071007e0362707070707070707070707071007e00750000ea620000000000000001707071007e02887371007e02240000001d7571007e0228000000017371007e022a0374000967726f75704e616d6570707070707070707071007e028f7070707078700000ea620000001e01707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e038274000270787870707e71007e001d74000750524556454e547070707400046a617661707371007e014f0000ea6201007571007e015a000000097371007e015c7074000563687749647371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c707400076368774e616d657371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000667656e6465727371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000864697374726963747371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c70740006736563746f727371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c70740008666163696c6974797371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000776696c6c6167657371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000570686f6e657371007e0040707070707400106a6176612e6c616e672e537472696e67707371007e015c7074000967726f75704e616d657371007e0040707070707400106a6176612e6c616e672e537472696e6770707074000d73656c65637465645f636877737571007e01620000001d7371007e0164010170707071007e0167707371007e004070707071007e0169707371007e0164010170707071007e016b707371007e004070707071007e016d707371007e0164010170707071007e016f707371007e004070707071007e0171707371007e0164010170707071007e0173707371007e004070707071007e0175707371007e0164010170707071007e0177707371007e004070707071007e0179707371007e0164010170707071007e017b707371007e004070707071007e017d707371007e0164010170707071007e017f707371007e004070707071007e0181707371007e0164010170707071007e0183707371007e004070707071007e0185707371007e0164010170707071007e0187707371007e004070707071007e0189707371007e0164010170707071007e018b707371007e004070707071007e018d707371007e0164010170707071007e018f707371007e004070707071007e0191707371007e0164010170707071007e0193707371007e004070707071007e0195707371007e0164010170707071007e0197707371007e004070707071007e0199707371007e0164010170707071007e019b707371007e004070707071007e019d707371007e0164010170707071007e019f707371007e004070707071007e01a1707371007e0164010170707071007e01a3707371007e004070707071007e01a5707371007e016401017070707400125245504f52545f5649525455414c495a4552707371007e00407070707400296e65742e73662e6a61737065727265706f7274732e656e67696e652e4a525669727475616c697a6572707371007e0164010170707074001449535f49474e4f52455f504147494e4154494f4e707371007e00407070707400116a6176612e6c616e672e426f6f6c65616e707371007e016401007070707400056368774964707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e03dd740002494471007e03de74000566616c736571007e03dc740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007070707400076368774e616d65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e03e9740008434857204e616d6571007e03ea74000566616c736571007e03e8740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007070707400086469737472696374707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e03f5740008446973747269637471007e03f674000566616c736571007e03f4740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e01640100707070740006736563746f72707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e0401740006536563746f7271007e040274000566616c736571007e0400740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e01640100707070740008666163696c697479707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e040d740008466163696c69747971007e040e74000566616c736571007e040c740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0164010070707074000776696c6c616765707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e041974000756696c6c61676571007e041a74000566616c736571007e0418740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0164010070707074000570686f6e65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e042574000c50686f6e65206e756d62657271007e042674000566616c736571007e0424740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0164010070707074000967726f75704e616d65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e043174000547726f757071007e043274000566616c736571007e0430740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007371007e0224000000007571007e0228000000017371007e022a017400072263687749642270707070707400076f726465724279707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e04417400084f7264657220427971007e04427400047472756571007e0440740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007371007e0224000000017571007e0228000000017371007e022a01740002323070707070707400087061676553697a65707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e04517400054c696d697471007e04527400047472756571007e0450740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e016401007371007e0224000000027571007e0228000000017371007e022a017400013070707070707400066f6666736574707371007e0040707371007e001b00000003770400000003740008646174615479706574000b646973706c61794e616d657400087265717569726564787371007e00453f400000000000037708000000040000000371007e04617400064f666673657471007e04627400047472756571007e0460740006537472696e67787400106a6176612e6c616e672e537472696e67707371007e0040707371007e001b0000001e77040000001e74002d636f6d2e6a6173706572736f66742e73747564696f2e646174612e64656661756c746461746161646170746572740025636f6d2e6a6173706572736f66742e73747564696f2e646174612e73716c2e7461626c657374002c6e65742e73662e6a61737065727265706f7274732e6578706f72742e68746d6c2e656d6265642e696d6167657400296e65742e73662e6a61737065727265706f7274732e7072696e742e6b6565702e66756c6c2e746578747400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e77686974652e706167652e6261636b67726f756e647400326e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6f6e652e706167652e7065722e73686565747400326e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6f6e652e706167652e7065722e736865657474003f6e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e72656d6f76652e656d7074792e73706163652e6265747765656e2e726f77737400426e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e72656d6f76652e656d7074792e73706163652e6265747765656e2e636f6c756d6e7374003f6e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e72656d6f76652e656d7074792e73706163652e6265747765656e2e726f77737400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e317400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e327400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e337400356e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e62616e642e347400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e317400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e327400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e337400356e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e62616e642e347400406e65742e73662e6a61737065727265706f7274732e6578706f72742e786c732e6578636c7564652e6f726967696e2e6b6565702e66697273742e62616e642e317400406e65742e73662e6a61737065727265706f7274732e6578706f72742e6373762e6578636c7564652e6f726967696e2e6b6565702e66697273742e62616e642e3174001b636f6d2e6a6173706572736f66742e73747564696f2e756e69742e740025636f6d2e6a6173706572736f66742e73747564696f2e756e69742e70616765486569676874740024636f6d2e6a6173706572736f66742e73747564696f2e756e69742e706167655769647468740024636f6d2e6a6173706572736f66742e73747564696f2e756e69742e746f704d617267696e740027636f6d2e6a6173706572736f66742e73747564696f2e756e69742e626f74746f6d4d617267696e740025636f6d2e6a6173706572736f66742e73747564696f2e756e69742e6c6566744d617267696e740026636f6d2e6a6173706572736f66742e73747564696f2e756e69742e72696768744d617267696e740026636f6d2e6a6173706572736f66742e73747564696f2e756e69742e636f6c756d6e5769647468740028636f6d2e6a6173706572736f66742e73747564696f2e756e69742e636f6c756d6e53706163696e6774000a7265706f727454797065787371007e00453f400000000000307708000000400000001e71007e0483740005706978656c71007e04737400047472756571007e0481740005706978656c71007e047474000a7061676548656164657271007e047d74000c636f6c756d6e48656164657271007e0486740005706978656c71007e047574000a70616765466f6f74657271007e046c7400047472756571007e04767400057469746c6571007e048774000d53656c6563746564204348577371007e047a7400057469746c6571007e047b74000773756d6d61727971007e047f740005706978656c71007e047874000a7061676548656164657271007e047974000a70616765466f6f74657271007e047074000566616c736571007e046d7400047472756571007e046e74000566616c736571007e046f74000566616c736571007e046a74000f44617461416461707465722e786d6c71007e04717400047472756571007e046b74000071007e047e740005706978656c71007e0480740005706978656c71007e0485740005706978656c71007e047774000773756d6d61727971007e0482740005706978656c71007e047c74000c636f6c756d6e48656164657271007e04727400047472756571007e0484740005706978656c78707371007e01cb7571007e01ce000000267371007e01d00174026d53454c4543540a20206368772e6368775f69642041532063687749642c0a20206368772e6368775f6e616d65204153206368774e616d652c0a2020434f4e434154284c454654286368772e67656e6465722c2031292c204c4f57455228535542535452494e47286368772e67656e6465722c20322929292041532067656e6465722c0a202064697374726963742e6e616d652041532064697374726963742c0a2020736563746f722e6e616d6520415320736563746f722c0a2020666163696c6974792e6e616d6520415320666163696c6974792c0a202076696c6c6167652e6e616d652041532076696c6c6167652c0a20206368772e70686f6e655f6e756d6265722041532070686f6e652c0a20206368775f67726f75702e6e616d652041532067726f75704e616d650a2046524f4d20636f6d6d756e6974795f6865616c74685f776f726b6572204153206368770a204a4f494e206469737472696374204f4e206368772e64697374726963745f6964203d2064697374726963742e69640a204c454654204a4f494e20736563746f72204f4e206368772e736563746f725f6964203d20736563746f722e69640a204c454654204a4f494e20666163696c697479204f4e206368772e666163696c6974795f6964203d20666163696c6974792e69640a204c454654204a4f494e2076696c6c616765204f4e206368772e76696c6c6167655f6964203d2076696c6c6167652e69640a204c454654204a4f494e206368775f67726f7570204f4e206368775f67726f75702e6964203d206368772e67726f75705f69640a205748455245206368772e73656c6563746564203d20545255450a2020414e44202870707371007e01d002740005636877496470707371007e01d001740027204953204e554c4c204f52206368772e6368775f6964204c494b4520434f4e434154282725272c70707371007e01d002740005636877496470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d0027400076368774e616d6570707371007e01d001740029204953204e554c4c204f52206368772e6368775f6e616d65204c494b4520434f4e434154282725272c70707371007e01d0027400076368774e616d6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008646973747269637470707371007e01d00174002a204953204e554c4c204f522064697374726963742e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008646973747269637470707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740006736563746f7270707371007e01d001740028204953204e554c4c204f5220736563746f722e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740006736563746f7270707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d002740008666163696c69747970707371007e01d00174002a204953204e554c4c204f5220666163696c6974792e6e616d65204c494b4520434f4e434154282725272c70707371007e01d002740008666163696c69747970707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000776696c6c61676570707371007e01d001740029204953204e554c4c204f522076696c6c6167652e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000776696c6c61676570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000570686f6e6570707371007e01d00174002d204953204e554c4c204f52206368772e70686f6e655f6e756d626572204c494b4520434f4e434154282725272c70707371007e01d00274000570686f6e6570707371007e01d00174000e2c27252729290a2020414e44202870707371007e01d00274000967726f75704e616d6570707371007e01d00174002b204953204e554c4c204f52206368775f67726f75702e6e616d65204c494b4520434f4e434154282725272c70707371007e01d00274000967726f75704e616d6570707371007e01d0017400112c27252729290a204f524445522042592070707371007e01d0037400076f72646572427970707371007e01d0017400080a204c494d49542070707371007e01d0037400087061676553697a6570707371007e01d001740008204f46465345542070707371007e01d0037400066f6666736574707071007e0215707070707371007e004b961c9a8a597aba37f72f93d99e4749247571007e0217000000077371007e0219000077ee0000010071007e021f70707071007e022270707371007e0224000000037571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228312970707071007e022d7071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707071007e02327071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707071007e02347071007e022f71007e017d707371007e0219000077ee0000010071007e021f70707071007e022270707371007e0224000000047571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228312970707071007e023a7071007e023b71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000057571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000067571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707071007e02487071007e022f71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000077571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e0224000000087571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707071007e02527071007e023b71007e017d707371007e0219000077ee0000010071007e023e707371007e0224000000097571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e74656765722831297070707071007e022270707371007e02240000000a7571007e0228000000017371007e022a017400186e6577206a6176612e6c616e672e496e746567657228302970707071007e025c7071007e025d71007e017d7071007e026071007e03ae707e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4f7269656e746174696f6e456e756d00000000000000001200007871007e001e7400094c414e44534341504570707e72002f6e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5072696e744f72646572456e756d00000000000000001200007871007e001e740008564552544943414c7e7200306e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e53656374696f6e54797065456e756d00000000000000001200007871007e001e74000442414e44757200265b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e4a525374796c653bd49cc311d90572350200007870000000067372002c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173655374796c65000000000000271102002f49001950534555444f5f53455249414c5f56455253494f4e5f5549445a0009697344656661756c744c00096261636b636f6c6f7271007e00345b0011636f6e646974696f6e616c5374796c65737400315b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a52436f6e646974696f6e616c5374796c653b4c001464656661756c745374796c6550726f766964657271007e00354c000466696c6c71007e00164c000966696c6c56616c756574002b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f46696c6c456e756d3b4c0008666f6e744e616d6571007e00024c0008666f6e7453697a6571007e00284c0008666f6e7473697a6571007e00294c0009666f7265636f6c6f7271007e00344c0013686f72697a6f6e74616c416c69676e6d656e7471007e00164c0018686f72697a6f6e74616c416c69676e6d656e7456616c756571007e002a4c0014686f72697a6f6e74616c496d616765416c69676e74003b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f486f72697a6f6e74616c496d616765416c69676e456e756d3b4c0013686f72697a6f6e74616c54657874416c69676e71007e002b4c000f6973426c616e6b5768656e4e756c6c71007e002c4c00066973426f6c6471007e002c4c000869734974616c696371007e002c4c000d6973506466456d62656464656471007e002c4c000f6973537472696b655468726f75676871007e002c4c000c69735374796c65645465787471007e002c4c000b6973556e6465726c696e6571007e002c4c00076c696e65426f7871007e002d4c00076c696e6550656e7400234c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5250656e3b4c000b6c696e6553706163696e6771007e00164c00106c696e6553706163696e6756616c756571007e002e4c00066d61726b757071007e00024c00046d6f646571007e00164c00096d6f646556616c756571007e00364c00046e616d6571007e00024c000970617261677261706871007e002f4c000b706172656e745374796c6571007e00074c0018706172656e745374796c654e616d655265666572656e636571007e00024c00077061747465726e71007e00024c000b706466456e636f64696e6771007e00024c000b706466466f6e744e616d6571007e00024c000c706f736974696f6e5479706571007e00164c000672616469757371007e00284c0008726f746174696f6e71007e00164c000d726f746174696f6e56616c756571007e00304c000a7363616c65496d61676571007e00164c000f7363616c65496d61676556616c75657400314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f5363616c65496d616765456e756d3b4c000b737472657463685479706571007e00164c0011766572746963616c416c69676e6d656e7471007e00164c0016766572746963616c416c69676e6d656e7456616c756571007e00314c0012766572746963616c496d616765416c69676e7400394c6e65742f73662f6a61737065727265706f7274732f656e67696e652f747970652f566572746963616c496d616765416c69676e456e756d3b4c0011766572746963616c54657874416c69676e71007e003278700000ea62007371007e005a00000000fff0f8ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e053271007e0530707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e0532707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e0532707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e0532707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e053271007e05327371007e00560000ea627070707071007e0530707070707e7200296e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e4d6f6465456e756d00000000000000001200007871007e001e7400064f50415155457400085461626c655f54487371007e00717070707071007e05307070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffbfe1ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a71007e0548707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e054a71007e054a7371007e00560000ea627070707071007e05487070707071007e05447400085461626c655f43487371007e00717070707071007e05487070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffffffff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f71007e055d707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e055f71007e055f7371007e00560000ea627070707071007e055d7070707071007e05447400085461626c655f54447371007e00717070707071007e055d7070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000fff0f8ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e057471007e0572707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e0574707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e0574707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e0574707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e057471007e05747371007e00560000ea627070707071007e05727070707071007e054474000a5461626c6520315f54487371007e00717070707071007e05727070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffbfe1ff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e058971007e0587707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e0589707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e0589707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e0589707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e058971007e05897371007e00560000ea627070707071007e05877070707071007e054474000a5461626c6520315f43487371007e00717070707071007e05877070707070707070707070707070707070707070707371007e05290000ea62007371007e005a00000000ffffffff7070707071007e001170707070707070707070707070707070707371007e0050707371007e00540000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e71007e059c707371007e00640000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e707371007e00550000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e707371007e00690000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e707371007e006d0000ea627371007e005a00000000ff00000070707070707371007e004d3f00000071007e059e71007e059e7371007e00560000ea627070707071007e059c7070707071007e054474000a5461626c6520315f54447371007e00717070707071007e059c70707070707070707070707070707070707070707070707371007e00127371007e001b000000147704000000147371007e00260000ea62000000320001000000000000015e00000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e05b6740005706978656c787071007e00497371007e004b9e48704660ec59ecea3b8fe8c2884c620000ea6270707371007e004d418000007070707070707070707371007e0050707371007e00540000ea627070707071007e05bb71007e05bb71007e05b3707371007e00640000ea627070707071007e05bb71007e05bb707371007e00550000ea627070707071007e05bb71007e05bb707371007e00690000ea627070707071007e05bb71007e05bb707371007e006d0000ea627070707071007e05bb71007e05bb7070707371007e00717070707071007e05b3707070707070707070707071007e007574001453656c65637465642043485773205265706f72747371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05c6740015636f6c4d6f64656c2e63687749642e48656164657271007e05c77400024944787071007e00497371007e004b90f520f6c83e06ab07574e839cbe411b0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05cc71007e05cc71007e05c3707371007e00640000ea627070707071007e05cc71007e05cc707371007e00550000ea627070707071007e05cc71007e05cc707371007e00690000ea627070707071007e05cc71007e05cc707371007e006d0000ea627070707071007e05cc71007e05cc7070707371007e00717070707071007e05c3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05d6740014636f6c4d6f64656c2e63687749642e6f7264657271007e05d774000130787071007e00497371007e004ba55ce5e326290ce274bc8941e89945040000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05dc71007e05dc71007e05d3707371007e00640000ea627070707071007e05dc71007e05dc707371007e00550000ea627070707071007e05dc71007e05dc707371007e00690000ea627070707071007e05dc71007e05dc707371007e006d0000ea627070707071007e05dc71007e05dc7070707371007e00717070707071007e05d3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05e6740017636f6c4d6f64656c2e6368774e616d652e48656164657271007e05e7740008434857204e616d65787071007e00497371007e004b9156f270e1af5196abb0ad8377864edf0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05ec71007e05ec71007e05e3707371007e00640000ea627070707071007e05ec71007e05ec707371007e00550000ea627070707071007e05ec71007e05ec707371007e00690000ea627070707071007e05ec71007e05ec707371007e006d0000ea627070707071007e05ec71007e05ec7070707371007e00717070707071007e05e3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e05f6740016636f6c4d6f64656c2e6368774e616d652e6f7264657271007e05f774000131787071007e00497371007e004ba36d2019cd9b9d6a2f9bfdb9746748060000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e05fc71007e05fc71007e05f3707371007e00640000ea627070707071007e05fc71007e05fc707371007e00550000ea627070707071007e05fc71007e05fc707371007e00690000ea627070707071007e05fc71007e05fc707371007e006d0000ea627070707071007e05fc71007e05fc7070707371007e00717070707071007e05f3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0606740016636f6c4d6f64656c2e67656e6465722e48656164657271007e060774000647656e646572787071007e00497371007e004b8e8d6174ea7f12b10e3b7bb51d1140120000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e060c71007e060c71007e0603707371007e00640000ea627070707071007e060c71007e060c707371007e00550000ea627070707071007e060c71007e060c707371007e00690000ea627070707071007e060c71007e060c707371007e006d0000ea627070707071007e060c71007e060c7070707371007e00717070707071007e0603707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0616740015636f6c4d6f64656c2e67656e6465722e6f7264657271007e061774000133787071007e00497371007e004b873ef1b323eb8f5dd9eec6159b2f4c6c0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e061c71007e061c71007e0613707371007e00640000ea627070707071007e061c71007e061c707371007e00550000ea627070707071007e061c71007e061c707371007e00690000ea627070707071007e061c71007e061c707371007e006d0000ea627070707071007e061c71007e061c7070707371007e00717070707071007e0613707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0626740018636f6c4d6f64656c2e64697374726963742e48656164657271007e06277400084469737472696374787071007e00497371007e004baea514f396b38ec1e424e877efc043700000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e062c71007e062c71007e0623707371007e00640000ea627070707071007e062c71007e062c707371007e00550000ea627070707071007e062c71007e062c707371007e00690000ea627070707071007e062c71007e062c707371007e006d0000ea627070707071007e062c71007e062c7070707371007e00717070707071007e0623707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0636740017636f6c4d6f64656c2e64697374726963742e6f7264657271007e063774000134787071007e00497371007e004b99c40b8fb5b337334be31c0050b246ac0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e063c71007e063c71007e0633707371007e00640000ea627070707071007e063c71007e063c707371007e00550000ea627070707071007e063c71007e063c707371007e00690000ea627070707071007e063c71007e063c707371007e006d0000ea627070707071007e063c71007e063c7070707371007e00717070707071007e0633707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0646740016636f6c4d6f64656c2e736563746f722e48656164657271007e0647740006536563746f72787071007e00497371007e004bbc8fb232aa67e6a90b15467c03a9438f0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e064c71007e064c71007e0643707371007e00640000ea627070707071007e064c71007e064c707371007e00550000ea627070707071007e064c71007e064c707371007e00690000ea627070707071007e064c71007e064c707371007e006d0000ea627070707071007e064c71007e064c7070707371007e00717070707071007e0643707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0656740015636f6c4d6f64656c2e736563746f722e6f7264657271007e065774000135787071007e00497371007e004b9795e7cd0b0e749dd72cc4fcc7ed42800000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e065c71007e065c71007e0653707371007e00640000ea627070707071007e065c71007e065c707371007e00550000ea627070707071007e065c71007e065c707371007e00690000ea627070707071007e065c71007e065c707371007e006d0000ea627070707071007e065c71007e065c7070707371007e00717070707071007e0653707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0666740018636f6c4d6f64656c2e666163696c6974792e48656164657271007e0667740008466163696c697479787071007e00497371007e004b989e119a672ce5fc8bab370ff24541ed0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e066c71007e066c71007e0663707371007e00640000ea627070707071007e066c71007e066c707371007e00550000ea627070707071007e066c71007e066c707371007e00690000ea627070707071007e066c71007e066c707371007e006d0000ea627070707071007e066c71007e066c7070707371007e00717070707071007e0663707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0676740017636f6c4d6f64656c2e666163696c6974792e6f7264657271007e067774000136787071007e00497371007e004ba7e655f17146ccd984cdebc9644b47470000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e067c71007e067c71007e0673707371007e00640000ea627070707071007e067c71007e067c707371007e00550000ea627070707071007e067c71007e067c707371007e00690000ea627070707071007e067c71007e067c707371007e006d0000ea627070707071007e067c71007e067c7070707371007e00717070707071007e0673707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0686740017636f6c4d6f64656c2e76696c6c6167652e48656164657271007e068774000756696c6c616765787071007e00497371007e004bb3490900116625e61db8655d5f7742ae0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e068c71007e068c71007e0683707371007e00640000ea627070707071007e068c71007e068c707371007e00550000ea627070707071007e068c71007e068c707371007e00690000ea627070707071007e068c71007e068c707371007e006d0000ea627070707071007e068c71007e068c7070707371007e00717070707071007e0683707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e0696740016636f6c4d6f64656c2e76696c6c6167652e6f7264657271007e069774000137787071007e00497371007e004b9ce2b8cbffe9e6cebb0fcab9014149080000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e069c71007e069c71007e0693707371007e00640000ea627070707071007e069c71007e069c707371007e00550000ea627070707071007e069c71007e069c707371007e00690000ea627070707071007e069c71007e069c707371007e006d0000ea627070707071007e069c71007e069c7070707371007e00717070707071007e0693707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06a6740015636f6c4d6f64656c2e70686f6e652e48656164657271007e06a774000c50686f6e65204e756d626572787071007e00497371007e004ba285afed8a172290f1613a7b5e1d474e0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06ac71007e06ac71007e06a3707371007e00640000ea627070707071007e06ac71007e06ac707371007e00550000ea627070707071007e06ac71007e06ac707371007e00690000ea627070707071007e06ac71007e06ac707371007e006d0000ea627070707071007e06ac71007e06ac7070707371007e00717070707071007e06a3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06b6740014636f6c4d6f64656c2e70686f6e652e6f7264657271007e06b774000138787071007e00497371007e004bbd4428d4ad42b3fb3960680d8ba34f290000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06bc71007e06bc71007e06b3707371007e00640000ea627070707071007e06bc71007e06bc707371007e00550000ea627070707071007e06bc71007e06bc707371007e00690000ea627070707071007e06bc71007e06bc707371007e006d0000ea627070707071007e06bc71007e06bc7070707371007e00717070707071007e06b3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06c6740019636f6c4d6f64656c2e67726f75704e616d652e48656164657271007e06c774000547726f7570787071007e00497371007e004b9285565923be70bf7ae4177d2f1644500000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06cc71007e06cc71007e06c3707371007e00640000ea627070707071007e06cc71007e06cc707371007e00550000ea627070707071007e06cc71007e06cc707371007e00690000ea627070707071007e06cc71007e06cc707371007e006d0000ea627070707071007e06cc71007e06cc7070707371007e00717070707071007e06c3707070707070707070707070707371007e00260000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b000000027704000000027400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e706174687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e64617461787371007e00453f400000000000037708000000040000000271007e06d6740018636f6c4d6f64656c2e67726f75704e616d652e6f7264657271007e06d774000139787071007e00497371007e004b814c2fe093bebf44321e461914a041d00000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e06dc71007e06dc71007e06d3707371007e00640000ea627070707071007e06dc71007e06dc707371007e00550000ea627070707071007e06dc71007e06dc707371007e00690000ea627070707071007e06dc71007e06dc707371007e006d0000ea627070707071007e06dc71007e06dc7070707371007e00717070707071007e06d370707070707070707070707070737200376e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a5242617365436f6d706f6e656e74456c656d656e7400000000000027d80200024c0009636f6d706f6e656e747400314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f636f6d706f6e656e742f436f6d706f6e656e743b4c000c636f6d706f6e656e744b65797400344c6e65742f73662f6a61737065727265706f7274732f656e67696e652f636f6d706f6e656e742f436f6d706f6e656e744b65793b7871007e00330000ea62000000000001000000000000000000000000000000007071007e001171007e05b170707070707071007e003e70707371007e0040707371007e001b0000000477040000000474001c636f6d2e6a6173706572736f66742e73747564696f2e6c61796f757474002e636f6d2e6a6173706572736f66742e73747564696f2e7461626c652e7374796c652e7461626c655f68656164657274002f636f6d2e6a6173706572736f66742e73747564696f2e7461626c652e7374796c652e636f6c756d6e5f686561646572740028636f6d2e6a6173706572736f66742e73747564696f2e7461626c652e7374796c652e64657461696c787371007e00453f400000000000067708000000080000000471007e06e9740035636f6d2e6a6173706572736f66742e73747564696f2e656469746f722e6c61796f75742e566572746963616c526f774c61796f757471007e06ea74000a5461626c6520325f544871007e06eb74000a5461626c6520325f434871007e06ec74000a5461626c6520325f5444787071007e00497371007e004bb2a1eb26e69f498bc598494f448049c5737200336e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e5374616e646172645461626c6500000000000027d80200034c0007636f6c756d6e7371007e00154c000a6461746173657452756e74002a4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a524461746173657452756e3b4c000e7768656e4e6f446174615479706574003f4c6e65742f73662f6a61737065727265706f7274732f636f6d706f6e656e74732f7461626c652f5768656e4e6f44617461547970655461626c65456e756d3b78707371007e001b00000001770400000001737200346e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e5374616e64617264436f6c756d6e00000000000027d80200014c000664657461696c74002c4c6e65742f73662f6a61737065727265706f7274732f636f6d706f6e656e74732f7461626c652f43656c6c3b787200386e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e5374616e6461726442617365436f6c756d6e00000000000027d802000b4c000c636f6c756d6e466f6f74657271007e06f94c000c636f6c756d6e48656164657271007e06f94c000c67726f7570466f6f7465727371007e00154c000c67726f75704865616465727371007e00154c00137072696e745768656e45787072657373696f6e71007e00134c000d70726f706572746965734d617071007e00144c001370726f706572747945787072657373696f6e7371007e00154c000b7461626c65466f6f74657271007e06f94c000b7461626c6548656164657271007e06f94c00047575696471007e003b4c0005776964746871007e0028787070707371007e001b00000000770400000000787371007e001b0000000077040000000078707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000271007e0700740005706978656c71007e0701740005706978656c787371007e001b000000007704000000007870707371007e004b837e6a9d6956f03845dc533c8c0c41fd7371007e006200000000737200326e65742e73662e6a61737065727265706f7274732e636f6d706f6e656e74732e7461626c652e436f6d70696c656443656c6c00000000000027d80200074c0003626f7871007e002d4c001464656661756c745374796c6550726f766964657271007e00354c000668656967687471007e00284c000d70726f706572746965734d617071007e00144c0007726f775370616e71007e00284c00057374796c6571007e00074c00127374796c654e616d655265666572656e636571007e00027871007e00187371007e001b000000017704000000017371007e026a0000ea62000000000001000000000000000000000000000000007071007e001171007e070970707070707071007e003e70707371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e77696474687400256e65742e73662e6a61737065727265706f7274732e6578706f72742e6a736f6e2e70617468787371007e00453f400000000000037708000000040000000271007e070e740002707871007e070f74000a746f74616c5061676573787071007e02757371007e004b8c4ea1b04f907326c74987221b324bed0000ea627070707070707070707070707371007e0050707371007e00540000ea627070707071007e071471007e071471007e070b707371007e00640000ea627070707071007e071471007e0714707371007e00550000ea627070707071007e071471007e0714707371007e00690000ea627070707071007e071471007e0714707371007e006d0000ea627070707071007e071471007e07147070707371007e00717070707071007e070b7070707070707070707070700000ea620000000000000000707071007e02887371007e0224000000087571007e0228000000057371007e022a0174000f6e657720426967446563696d616c287371007e022a0374000d746f74616c456c656d656e74737371007e022a0174000c202f2028646f75626c6529207371007e022a027400087061676553697a657371007e022a01740032292e7365745363616c6528302c20426967446563696d616c2e524f554e445f4345494c494e47292e746f537472696e67282970707070707070707071007e028f7070707078707371007e0050707371007e00540000ea627070707071007e072771007e072771007e0709707371007e00640000ea627070707071007e072771007e0727707371007e00550000ea627070707071007e072771007e0727707371007e00690000ea627070707071007e072771007e0727707371007e006d0000ea627070707071007e072771007e072771007e00117371007e0062000000007371007e0040707371007e001b00000002770400000002740020636f6d2e6a6173706572736f66742e73747564696f2e756e69742e7769647468740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000271007e0730740002707871007e07317400027078787071007e055d7078737200316e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a52426173654461746173657452756e00000000000027d80200084c0014636f6e6e656374696f6e45787072657373696f6e71007e00134c001464617461536f7572636545787072657373696f6e71007e00134c000b646174617365744e616d6571007e00025b000a706172616d65746572737400315b4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f4a5244617461736574506172616d657465723b4c0017706172616d65746572734d617045787072657373696f6e71007e00134c000d70726f706572746965734d617071007e00144c000c72657475726e56616c75657371007e00154c00047575696471007e003b78707371007e02240000000b7571007e0228000000017371007e022a027400115245504f52545f434f4e4e454354494f4e7070707074000c5265636f726473436f756e747572003a5b4c6e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736544617461736574506172616d657465723b2413b76c659575a5020000787000000009737200376e65742e73662e6a61737065727265706f7274732e656e67696e652e626173652e4a524261736544617461736574506172616d6574657200000000000027d80200024c000a65787072657373696f6e71007e00134c00046e616d6571007e000278707371007e02240000000c7571007e0228000000017371007e022a02740005636877496470707074000563687749647371007e073f7371007e02240000000d7571007e0228000000017371007e022a027400076368774e616d657070707400076368774e616d657371007e073f7371007e02240000000e7571007e0228000000017371007e022a02740008646973747269637470707074000864697374726963747371007e073f7371007e02240000000f7571007e0228000000017371007e022a02740006736563746f72707070740006736563746f727371007e073f7371007e0224000000107571007e0228000000017371007e022a02740008666163696c697479707070740008666163696c6974797371007e073f7371007e0224000000117571007e0228000000017371007e022a0274000776696c6c61676570707074000776696c6c6167657371007e073f7371007e0224000000127571007e0228000000017371007e022a0274000570686f6e6570707074000570686f6e657371007e073f7371007e0224000000137571007e0228000000017371007e022a0274000967726f75704e616d6570707074000967726f75704e616d657371007e073f7371007e0224000000147571007e0228000000037371007e022a01740010496e74656765722e76616c75654f66287371007e022a027400087061676553697a657371007e022a01740001297070707400087061676553697a657070707371007e004b88d52b0e618b880b3dda0279b3b9446270737200326e65742e73662e6a61737065727265706f7274732e656e67696e652e636f6d706f6e656e742e436f6d706f6e656e744b657900000000000027d80200034c00046e616d6571007e00024c00096e616d65737061636571007e00024c000f6e616d65737061636550726566697871007e000278707400057461626c6574003d687474703a2f2f6a61737065727265706f7274732e736f75726365666f7267652e6e65742f6a61737065727265706f7274732f636f6d706f6e656e74737400026a7278700000ea620000003201707371007e0040707371007e001b00000001770400000001740021636f6d2e6a6173706572736f66742e73747564696f2e756e69742e686569676874787371007e00453f400000000000037708000000040000000171007e0782740005706978656c78707071007e001f7e7200336e65742e73662e6a61737065727265706f7274732e656e67696e652e747970652e5768656e4e6f4461746154797065456e756d00000000000000001200007871007e001e740016414c4c5f53454354494f4e535f4e4f5f44455441494c737200366e65742e73662e6a61737065727265706f7274732e656e67696e652e64657369676e2e4a525265706f7274436f6d70696c654461746100000000000027d80200034c001363726f7373746162436f6d70696c654461746171007e00414c001264617461736574436f6d70696c654461746171007e00414c00166d61696e44617461736574436f6d70696c654461746171007e000178707371007e00453f4000000000000077080000001000000000787371007e00453f4000000000000c7708000000100000000171007e0161757200025b42acf317f8060854e0020000787000001529cafebabe0000003400f407000201002f73656c65637465645f636877735f5265636f726473436f756e745f313630313838363733393132395f34323038383507000401002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a524576616c7561746f7201001b706172616d657465725f5245504f52545f434f4e4e454354494f4e0100324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d657465723b010017706172616d657465725f4a41535045525f5245504f525401001a706172616d657465725f5245504f52545f54494d455f5a4f4e4501000f706172616d657465725f6368774964010012706172616d657465725f7061676553697a6501001a706172616d657465725f5245504f52545f54454d504c4154455301001a706172616d657465725f5245504f52545f4d41585f434f554e5401001a706172616d657465725f5245504f52545f5343524950544c455401001f706172616d657465725f5245504f52545f504152414d45544552535f4d4150010020706172616d657465725f5245504f52545f5245534f555243455f42554e444c4501001c706172616d657465725f5245504f52545f444154415f534f55524345010015706172616d657465725f534f52545f4649454c4453010011706172616d657465725f76696c6c616765010010706172616d657465725f736563746f72010010706172616d657465725f46494c544552010017706172616d657465725f5245504f52545f4c4f43414c45010011706172616d657465725f6368774e616d65010020706172616d657465725f4a41535045525f5245504f5254535f434f4e54455854010013706172616d657465725f67726f75704e616d6501001f706172616d657465725f5245504f52545f464f524d41545f464143544f525901000f706172616d657465725f70686f6e65010012706172616d657465725f6469737472696374010018706172616d657465725f5245504f52545f434f4e5445585401001d706172616d657465725f5245504f52545f434c4153535f4c4f41444552010012706172616d657465725f666163696c6974790100136669656c645f746f74616c456c656d656e747301002e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c643b0100147661726961626c655f504147455f4e554d4245520100314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c653b01001c7661726961626c655f4d41535445525f43555252454e545f5041474501001b7661726961626c655f4d41535445525f544f54414c5f50414745530100167661726961626c655f434f4c554d4e5f4e554d4245520100157661726961626c655f5245504f52545f434f554e540100137661726961626c655f504147455f434f554e540100157661726961626c655f434f4c554d4e5f434f554e540100063c696e69743e010003282956010004436f64650a0003002d0c0029002a090001002f0c0005000609000100310c0007000609000100330c0008000609000100350c0009000609000100370c000a000609000100390c000b0006090001003b0c000c0006090001003d0c000d0006090001003f0c000e000609000100410c000f000609000100430c0010000609000100450c0011000609000100470c0012000609000100490c00130006090001004b0c00140006090001004d0c00150006090001004f0c0016000609000100510c0017000609000100530c0018000609000100550c0019000609000100570c001a000609000100590c001b0006090001005b0c001c0006090001005d0c001d0006090001005f0c001e000609000100610c001f002009000100630c0021002209000100650c0023002209000100670c0024002209000100690c00250022090001006b0c00260022090001006d0c00270022090001006f0c0028002201000f4c696e654e756d6265725461626c6501000e637573746f6d697a6564496e6974010030284c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b29560a000100740c0075007601000a696e6974506172616d73010012284c6a6176612f7574696c2f4d61703b29560a000100780c0079007601000a696e69744669656c64730a0001007b0c007c0076010008696e69745661727308007e0100115245504f52545f434f4e4e454354494f4e0b0080008207008101000d6a6176612f7574696c2f4d61700c00830084010003676574010026284c6a6176612f6c616e672f4f626a6563743b294c6a6176612f6c616e672f4f626a6563743b0700860100306e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d6574657208008801000d4a41535045525f5245504f525408008a0100105245504f52545f54494d455f5a4f4e4508008c010005636877496408008e0100087061676553697a650800900100105245504f52545f54454d504c415445530800920100105245504f52545f4d41585f434f554e540800940100105245504f52545f5343524950544c45540800960100155245504f52545f504152414d45544552535f4d41500800980100165245504f52545f5245534f555243455f42554e444c4508009a0100125245504f52545f444154415f534f5552434508009c01000b534f52545f4649454c445308009e01000776696c6c6167650800a0010006736563746f720800a201000646494c5445520800a401000d5245504f52545f4c4f43414c450800a60100076368774e616d650800a80100164a41535045525f5245504f5254535f434f4e544558540800aa01000967726f75704e616d650800ac0100155245504f52545f464f524d41545f464143544f52590800ae01000570686f6e650800b001000864697374726963740800b201000e5245504f52545f434f4e544558540800b40100135245504f52545f434c4153535f4c4f414445520800b6010008666163696c6974790800b801000d746f74616c456c656d656e74730700ba01002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c640800bc01000b504147455f4e554d4245520700be01002f6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c650800c00100134d41535445525f43555252454e545f504147450800c20100124d41535445525f544f54414c5f50414745530800c401000d434f4c554d4e5f4e554d4245520800c601000c5245504f52545f434f554e540800c801000a504147455f434f554e540800ca01000c434f4c554d4e5f434f554e540100086576616c756174650100152849294c6a6176612f6c616e672f4f626a6563743b01000a457863657074696f6e730700cf0100136a6176612f6c616e672f5468726f7761626c650700d10100116a6176612f6c616e672f496e74656765720a00d000d30c002900d4010004284929560700d60100146a6176612f6d6174682f426967446563696d616c0a00b900d80c00d900da01000867657456616c756501001428294c6a6176612f6c616e672f4f626a6563743b0a00d000dc0c00dd00de010008696e7456616c75650100032829490a008500d80a00d500e10c002900e2010004284429560a00d500e40c00e500e60100087365745363616c6501001a284949294c6a6176612f6d6174682f426967446563696d616c3b0a00d500e80c00e900ea010008746f537472696e6701001428294c6a6176612f6c616e672f537472696e673b01000d537461636b4d61705461626c650700ed0100106a6176612f6c616e672f4f626a65637401000b6576616c756174654f6c640a00b900f00c00f100da01000b6765744f6c6456616c75650100116576616c75617465457374696d6174656401000a536f7572636546696c650021000100030000002100020005000600000002000700060000000200080006000000020009000600000002000a000600000002000b000600000002000c000600000002000d000600000002000e000600000002000f0006000000020010000600000002001100060000000200120006000000020013000600000002001400060000000200150006000000020016000600000002001700060000000200180006000000020019000600000002001a000600000002001b000600000002001c000600000002001d000600000002001e000600000002001f002000000002002100220000000200230022000000020024002200000002002500220000000200260022000000020027002200000002002800220000000800010029002a0001002b0000014a00020001000000aa2ab7002c2a01b5002e2a01b500302a01b500322a01b500342a01b500362a01b500382a01b5003a2a01b5003c2a01b5003e2a01b500402a01b500422a01b500442a01b500462a01b500482a01b5004a2a01b5004c2a01b5004e2a01b500502a01b500522a01b500542a01b500562a01b500582a01b5005a2a01b5005c2a01b5005e2a01b500602a01b500622a01b500642a01b500662a01b500682a01b5006a2a01b5006c2a01b5006eb10000000100700000008e002300000012000400190009001a000e001b0013001c0018001d001d001e0022001f00270020002c00210031002200360023003b00240040002500450026004a0027004f0028005400290059002a005e002b0063002c0068002d006d002e0072002f00770030007c00310081003200860033008b00340090003500950036009a0037009f003800a4003900a900120001007100720001002b0000003400020004000000102a2bb700732a2cb700772a2db7007ab10000000100700000001200040000004500050046000a0047000f00480002007500760001002b000001f400030002000001782a2b127db9007f0200c00085b5002e2a2b1287b9007f0200c00085b500302a2b1289b9007f0200c00085b500322a2b128bb9007f0200c00085b500342a2b128db9007f0200c00085b500362a2b128fb9007f0200c00085b500382a2b1291b9007f0200c00085b5003a2a2b1293b9007f0200c00085b5003c2a2b1295b9007f0200c00085b5003e2a2b1297b9007f0200c00085b500402a2b1299b9007f0200c00085b500422a2b129bb9007f0200c00085b500442a2b129db9007f0200c00085b500462a2b129fb9007f0200c00085b500482a2b12a1b9007f0200c00085b5004a2a2b12a3b9007f0200c00085b5004c2a2b12a5b9007f0200c00085b5004e2a2b12a7b9007f0200c00085b500502a2b12a9b9007f0200c00085b500522a2b12abb9007f0200c00085b500542a2b12adb9007f0200c00085b500562a2b12afb9007f0200c00085b500582a2b12b1b9007f0200c00085b5005a2a2b12b3b9007f0200c00085b5005c2a2b12b5b9007f0200c00085b5005eb10000000100700000006a001a00000050000f0051001e0052002d0053003c0054004b0055005a00560069005700780058008700590096005a00a5005b00b4005c00c3005d00d2005e00e1005f00f0006000ff0061010e0062011d0063012c0064013b0065014a00660159006701680068017700690002007900760001002b0000002c00030002000000102a2b12b7b9007f0200c000b9b50060b10000000100700000000a000200000071000f00720002007c00760001002b0000009e000300020000006a2a2b12bbb9007f0200c000bdb500622a2b12bfb9007f0200c000bdb500642a2b12c1b9007f0200c000bdb500662a2b12c3b9007f0200c000bdb500682a2b12c5b9007f0200c000bdb5006a2a2b12c7b9007f0200c000bdb5006c2a2b12c9b9007f0200c000bdb5006eb10000000100700000002200080000007a000f007b001e007c002d007d003c007e004b007f005a008000690081000100cb00cc000200cd00000004000100ce002b0000013e00060003000000c3014d1baa000000be0000000000000008000000310000003d0000004900000055000000610000006d000000790000008500000091bb00d05904b700d24da70084bb00d05904b700d24da70078bb00d05904b700d24da7006cbb00d05903b700d24da70060bb00d05904b700d24da70054bb00d05903b700d24da70048bb00d05904b700d24da7003cbb00d05903b700d24da70030bb00d5592ab40060b600d7c000d0b600db872ab40036b600dfc000d0b600db876fb700e00305b600e3b600e74d2cb0000000020070000000520014000000890002008b0034008f003d00900040009400490095004c00990055009a0058009e0061009f006400a3006d00a4007000a8007900a9007c00ad008500ae008800b2009100b3009400b700c100bf00eb00000011000afc00340700ec0b0b0b0b0b0b0b0b2c000100ee00cc000200cd00000004000100ce002b0000013e00060003000000c3014d1baa000000be0000000000000008000000310000003d0000004900000055000000610000006d000000790000008500000091bb00d05904b700d24da70084bb00d05904b700d24da70078bb00d05904b700d24da7006cbb00d05903b700d24da70060bb00d05904b700d24da70054bb00d05903b700d24da70048bb00d05904b700d24da7003cbb00d05903b700d24da70030bb00d5592ab40060b600efc000d0b600db872ab40036b600dfc000d0b600db876fb700e00305b600e3b600e74d2cb0000000020070000000520014000000c8000200ca003400ce003d00cf004000d3004900d4004c00d8005500d9005800dd006100de006400e2006d00e3007000e7007900e8007c00ec008500ed008800f1009100f2009400f600c100fe00eb00000011000afc00340700ec0b0b0b0b0b0b0b0b2c000100f200cc000200cd00000004000100ce002b0000013e00060003000000c3014d1baa000000be0000000000000008000000310000003d0000004900000055000000610000006d000000790000008500000091bb00d05904b700d24da70084bb00d05904b700d24da70078bb00d05904b700d24da7006cbb00d05903b700d24da70060bb00d05904b700d24da70054bb00d05903b700d24da70048bb00d05904b700d24da7003cbb00d05903b700d24da70030bb00d5592ab40060b600d7c000d0b600db872ab40036b600dfc000d0b600db876fb700e00305b600e3b600e74d2cb000000002007000000052001400000107000201090034010d003d010e0040011200490113004c0117005501180058011c0061011d00640121006d01220070012600790127007c012b0085012c00880130009101310094013500c1013d00eb00000011000afc00340700ec0b0b0b0b0b0b0b0b2c000100f3000000020002787571007e078c00001e62cafebabe00000034011a07000201002273656c65637465645f636877735f313630313838363733393132395f34323038383507000401002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a524576616c7561746f7201001b706172616d657465725f5245504f52545f434f4e4e454354494f4e0100324c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d657465723b010017706172616d657465725f4a41535045525f5245504f525401001a706172616d657465725f5245504f52545f54494d455f5a4f4e4501000f706172616d657465725f6368774964010011706172616d657465725f6f726465724279010012706172616d657465725f7061676553697a6501001a706172616d657465725f5245504f52545f54454d504c4154455301001a706172616d657465725f5245504f52545f4d41585f434f554e5401001a706172616d657465725f5245504f52545f5343524950544c455401001f706172616d657465725f5245504f52545f504152414d45544552535f4d4150010020706172616d657465725f5245504f52545f5245534f555243455f42554e444c4501001c706172616d657465725f5245504f52545f444154415f534f55524345010015706172616d657465725f534f52545f4649454c4453010011706172616d657465725f76696c6c616765010010706172616d657465725f736563746f7201001e706172616d657465725f49535f49474e4f52455f504147494e4154494f4e010010706172616d657465725f46494c544552010010706172616d657465725f6f6666736574010017706172616d657465725f5245504f52545f4c4f43414c45010011706172616d657465725f6368774e616d65010020706172616d657465725f4a41535045525f5245504f5254535f434f4e54455854010013706172616d657465725f67726f75704e616d6501001f706172616d657465725f5245504f52545f464f524d41545f464143544f525901000f706172616d657465725f70686f6e65010012706172616d657465725f6469737472696374010018706172616d657465725f5245504f52545f434f4e5445585401001d706172616d657465725f5245504f52545f434c4153535f4c4f4144455201001c706172616d657465725f5245504f52545f5649525455414c495a4552010012706172616d657465725f666163696c69747901000f6669656c645f67726f75704e616d6501002e4c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c643b01000c6669656c645f67656e64657201000b6669656c645f70686f6e6501000e6669656c645f646973747269637401000b6669656c645f636877496401000d6669656c645f76696c6c61676501000c6669656c645f736563746f7201000e6669656c645f666163696c69747901000d6669656c645f6368774e616d650100147661726961626c655f504147455f4e554d4245520100314c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c653b01001c7661726961626c655f4d41535445525f43555252454e545f5041474501001b7661726961626c655f4d41535445525f544f54414c5f50414745530100167661726961626c655f434f4c554d4e5f4e554d4245520100157661726961626c655f5245504f52545f434f554e540100137661726961626c655f504147455f434f554e540100157661726961626c655f434f4c554d4e5f434f554e540100063c696e69743e010003282956010004436f64650a000300390c00350036090001003b0c00050006090001003d0c00070006090001003f0c0008000609000100410c0009000609000100430c000a000609000100450c000b000609000100470c000c000609000100490c000d0006090001004b0c000e0006090001004d0c000f0006090001004f0c0010000609000100510c0011000609000100530c0012000609000100550c0013000609000100570c0014000609000100590c00150006090001005b0c00160006090001005d0c00170006090001005f0c0018000609000100610c0019000609000100630c001a000609000100650c001b000609000100670c001c000609000100690c001d0006090001006b0c001e0006090001006d0c001f0006090001006f0c0020000609000100710c0021000609000100730c0022000609000100750c0023002409000100770c0025002409000100790c00260024090001007b0c00270024090001007d0c00280024090001007f0c0029002409000100810c002a002409000100830c002b002409000100850c002c002409000100870c002d002e09000100890c002f002e090001008b0c0030002e090001008d0c0031002e090001008f0c0032002e09000100910c0033002e09000100930c0034002e01000f4c696e654e756d6265725461626c6501000e637573746f6d697a6564496e6974010030284c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b4c6a6176612f7574696c2f4d61703b29560a000100980c0099009a01000a696e6974506172616d73010012284c6a6176612f7574696c2f4d61703b29560a0001009c0c009d009a01000a696e69744669656c64730a0001009f0c00a0009a010008696e6974566172730800a20100115245504f52545f434f4e4e454354494f4e0b00a400a60700a501000d6a6176612f7574696c2f4d61700c00a700a8010003676574010026284c6a6176612f6c616e672f4f626a6563743b294c6a6176612f6c616e672f4f626a6563743b0700aa0100306e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c506172616d657465720800ac01000d4a41535045525f5245504f52540800ae0100105245504f52545f54494d455f5a4f4e450800b001000563687749640800b20100076f7264657242790800b40100087061676553697a650800b60100105245504f52545f54454d504c415445530800b80100105245504f52545f4d41585f434f554e540800ba0100105245504f52545f5343524950544c45540800bc0100155245504f52545f504152414d45544552535f4d41500800be0100165245504f52545f5245534f555243455f42554e444c450800c00100125245504f52545f444154415f534f555243450800c201000b534f52545f4649454c44530800c401000776696c6c6167650800c6010006736563746f720800c801001449535f49474e4f52455f504147494e4154494f4e0800ca01000646494c5445520800cc0100066f66667365740800ce01000d5245504f52545f4c4f43414c450800d00100076368774e616d650800d20100164a41535045525f5245504f5254535f434f4e544558540800d401000967726f75704e616d650800d60100155245504f52545f464f524d41545f464143544f52590800d801000570686f6e650800da01000864697374726963740800dc01000e5245504f52545f434f4e544558540800de0100135245504f52545f434c4153535f4c4f414445520800e00100125245504f52545f5649525455414c495a45520800e2010008666163696c6974790700e401002c6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c4669656c640800e601000667656e6465720800e801000b504147455f4e554d4245520700ea01002f6e65742f73662f6a61737065727265706f7274732f656e67696e652f66696c6c2f4a5246696c6c5661726961626c650800ec0100134d41535445525f43555252454e545f504147450800ee0100124d41535445525f544f54414c5f50414745530800f001000d434f4c554d4e5f4e554d4245520800f201000c5245504f52545f434f554e540800f401000a504147455f434f554e540800f601000c434f4c554d4e5f434f554e540100086576616c756174650100152849294c6a6176612f6c616e672f4f626a6563743b01000a457863657074696f6e730700fb0100136a6176612f6c616e672f5468726f7761626c650a00fd00ff0700fe0100116a6176612f6c616e672f496e74656765720c0100010101000776616c75654f660100162849294c6a6176612f6c616e672f496e74656765723b0a00fd01030c00350104010004284929560a00a901060c0107010801000867657456616c756501001428294c6a6176612f6c616e672f4f626a6563743b07010a0100136a6176612f73716c2f436f6e6e656374696f6e07010c0100106a6176612f6c616e672f537472696e670a00fd010e0c0100010f010027284c6a6176612f6c616e672f537472696e673b294c6a6176612f6c616e672f496e74656765723b0a00e3010601000d537461636b4d61705461626c650701130100106a6176612f6c616e672f4f626a65637401000b6576616c756174654f6c640a00e301160c0117010801000b6765744f6c6456616c75650100116576616c75617465457374696d6174656401000a536f7572636546696c650021000100030000002d00020005000600000002000700060000000200080006000000020009000600000002000a000600000002000b000600000002000c000600000002000d000600000002000e000600000002000f0006000000020010000600000002001100060000000200120006000000020013000600000002001400060000000200150006000000020016000600000002001700060000000200180006000000020019000600000002001a000600000002001b000600000002001c000600000002001d000600000002001e000600000002001f000600000002002000060000000200210006000000020022000600000002002300240000000200250024000000020026002400000002002700240000000200280024000000020029002400000002002a002400000002002b002400000002002c002400000002002d002e00000002002f002e000000020030002e000000020031002e000000020032002e000000020033002e000000020034002e0000000800010035003600010037000001b600020001000000e62ab700382a01b5003a2a01b5003c2a01b5003e2a01b500402a01b500422a01b500442a01b500462a01b500482a01b5004a2a01b5004c2a01b5004e2a01b500502a01b500522a01b500542a01b500562a01b500582a01b5005a2a01b5005c2a01b5005e2a01b500602a01b500622a01b500642a01b500662a01b500682a01b5006a2a01b5006c2a01b5006e2a01b500702a01b500722a01b500742a01b500762a01b500782a01b5007a2a01b5007c2a01b5007e2a01b500802a01b500822a01b500842a01b500862a01b500882a01b5008a2a01b5008c2a01b5008e2a01b500902a01b50092b1000000010094000000be002f00000012000400190009001a000e001b0013001c0018001d001d001e0022001f00270020002c00210031002200360023003b00240040002500450026004a0027004f0028005400290059002a005e002b0063002c0068002d006d002e0072002f00770030007c00310081003200860033008b00340090003500950036009a0037009f003800a4003900a9003a00ae003b00b3003c00b8003d00bd003e00c2003f00c7004000cc004100d1004200d6004300db004400e0004500e50012000100950096000100370000003400020004000000102a2bb700972a2cb7009b2a2db7009eb10000000100940000001200040000005100050052000a0053000f005400020099009a000100370000024000030002000001b42a2b12a1b900a30200c000a9b5003a2a2b12abb900a30200c000a9b5003c2a2b12adb900a30200c000a9b5003e2a2b12afb900a30200c000a9b500402a2b12b1b900a30200c000a9b500422a2b12b3b900a30200c000a9b500442a2b12b5b900a30200c000a9b500462a2b12b7b900a30200c000a9b500482a2b12b9b900a30200c000a9b5004a2a2b12bbb900a30200c000a9b5004c2a2b12bdb900a30200c000a9b5004e2a2b12bfb900a30200c000a9b500502a2b12c1b900a30200c000a9b500522a2b12c3b900a30200c000a9b500542a2b12c5b900a30200c000a9b500562a2b12c7b900a30200c000a9b500582a2b12c9b900a30200c000a9b5005a2a2b12cbb900a30200c000a9b5005c2a2b12cdb900a30200c000a9b5005e2a2b12cfb900a30200c000a9b500602a2b12d1b900a30200c000a9b500622a2b12d3b900a30200c000a9b500642a2b12d5b900a30200c000a9b500662a2b12d7b900a30200c000a9b500682a2b12d9b900a30200c000a9b5006a2a2b12dbb900a30200c000a9b5006c2a2b12ddb900a30200c000a9b5006e2a2b12dfb900a30200c000a9b500702a2b12e1b900a30200c000a9b50072b10000000100940000007a001e0000005c000f005d001e005e002d005f003c0060004b0061005a00620069006300780064008700650096006600a5006700b4006800c3006900d2006a00e1006b00f0006c00ff006d010e006e011d006f012c0070013b0071014a0072015900730168007401770075018600760195007701a4007801b300790002009d009a00010037000000c400030002000000882a2b12d3b900a30200c000e3b500742a2b12e5b900a30200c000e3b500762a2b12d7b900a30200c000e3b500782a2b12d9b900a30200c000e3b5007a2a2b12afb900a30200c000e3b5007c2a2b12c3b900a30200c000e3b5007e2a2b12c5b900a30200c000e3b500802a2b12e1b900a30200c000e3b500822a2b12cfb900a30200c000e3b50084b10000000100940000002a000a00000081000f0082001e0083002d0084003c0085004b0086005a008700690088007800890087008a000200a0009a000100370000009e000300020000006a2a2b12e7b900a30200c000e9b500862a2b12ebb900a30200c000e9b500882a2b12edb900a30200c000e9b5008a2a2b12efb900a30200c000e9b5008c2a2b12f1b900a30200c000e9b5008e2a2b12f3b900a30200c000e9b500902a2b12f5b900a30200c000e9b50092b100000001009400000022000800000092000f0093001e0094002d0095003c0096004b0097005a009800690099000100f700f8000200f900000004000100fa003700000343000300030000020b014d1baa00000206000000000000001d000000850000008b000000940000009c000000a8000000b4000000c0000000cc000000d8000000e4000000f0000000fc0000010a00000118000001260000013400000142000001500000015e0000016c0000017a0000018b00000199000001a7000001b5000001c3000001d1000001df000001ed000001fb12af4da7017e1014b800fc4da7017503b800fc4da7016dbb00fd5904b701024da70161bb00fd5904b701024da70155bb00fd5904b701024da70149bb00fd5903b701024da7013dbb00fd5904b701024da70131bb00fd5903b701024da70125bb00fd5904b701024da70119bb00fd5903b701024da7010d2ab4003ab60105c001094da700ff2ab40040b60105c0010b4da700f12ab40060b60105c0010b4da700e32ab4006ab60105c0010b4da700d52ab40056b60105c0010b4da700c72ab40072b60105c0010b4da700b92ab40054b60105c0010b4da700ab2ab40068b60105c0010b4da7009d2ab40064b60105c0010b4da7008f2ab40044b60105c0010bb8010d4da7007e2ab4007cb60110c0010b4da700702ab40084b60110c0010b4da700622ab40076b60110c0010b4da700542ab4007ab60110c0010b4da700462ab40080b60110c0010b4da700382ab40082b60110c0010b4da7002a2ab4007eb60110c0010b4da7001c2ab40078b60110c0010b4da7000e2ab40074b60110c0010b4d2cb0000000020094000000fa003e000000a1000200a3008800a7008b00a8008e00ac009400ad009700b1009c00b2009f00b600a800b700ab00bb00b400bc00b700c000c000c100c300c500cc00c600cf00ca00d800cb00db00cf00e400d000e700d400f000d500f300d900fc00da00ff00de010a00df010d00e3011800e4011b00e8012600e9012900ed013400ee013700f2014200f3014500f7015000f8015300fc015e00fd01610101016c0102016f0106017a0107017d010b018b010c018e011001990111019c011501a7011601aa011a01b5011b01b8011f01c3012001c6012401d1012501d4012901df012a01e2012e01ed012f01f0013301fb013401fe013802090140011100000026001ffc00880701120508070b0b0b0b0b0b0b0b0d0d0d0d0d0d0d0d0d100d0d0d0d0d0d0d0d0a0001011400f8000200f900000004000100fa003700000343000300030000020b014d1baa00000206000000000000001d000000850000008b000000940000009c000000a8000000b4000000c0000000cc000000d8000000e4000000f0000000fc0000010a00000118000001260000013400000142000001500000015e0000016c0000017a0000018b00000199000001a7000001b5000001c3000001d1000001df000001ed000001fb12af4da7017e1014b800fc4da7017503b800fc4da7016dbb00fd5904b701024da70161bb00fd5904b701024da70155bb00fd5904b701024da70149bb00fd5903b701024da7013dbb00fd5904b701024da70131bb00fd5903b701024da70125bb00fd5904b701024da70119bb00fd5903b701024da7010d2ab4003ab60105c001094da700ff2ab40040b60105c0010b4da700f12ab40060b60105c0010b4da700e32ab4006ab60105c0010b4da700d52ab40056b60105c0010b4da700c72ab40072b60105c0010b4da700b92ab40054b60105c0010b4da700ab2ab40068b60105c0010b4da7009d2ab40064b60105c0010b4da7008f2ab40044b60105c0010bb8010d4da7007e2ab4007cb60115c0010b4da700702ab40084b60115c0010b4da700622ab40076b60115c0010b4da700542ab4007ab60115c0010b4da700462ab40080b60115c0010b4da700382ab40082b60115c0010b4da7002a2ab4007eb60115c0010b4da7001c2ab40078b60115c0010b4da7000e2ab40074b60115c0010b4d2cb0000000020094000000fa003e000001490002014b0088014f008b0150008e01540094015500970159009c015a009f015e00a8015f00ab016300b4016400b7016800c0016900c3016d00cc016e00cf017200d8017300db017700e4017800e7017c00f0017d00f3018100fc018200ff0186010a0187010d018b0118018c011b01900126019101290195013401960137019a0142019b0145019f015001a0015301a4015e01a5016101a9016c01aa016f01ae017a01af017d01b3018b01b4018e01b8019901b9019c01bd01a701be01aa01c201b501c301b801c701c301c801c601cc01d101cd01d401d101df01d201e201d601ed01d701f001db01fb01dc01fe01e0020901e8011100000026001ffc00880701120508070b0b0b0b0b0b0b0b0d0d0d0d0d0d0d0d0d100d0d0d0d0d0d0d0d0a0001011800f8000200f900000004000100fa003700000343000300030000020b014d1baa00000206000000000000001d000000850000008b000000940000009c000000a8000000b4000000c0000000cc000000d8000000e4000000f0000000fc0000010a00000118000001260000013400000142000001500000015e0000016c0000017a0000018b00000199000001a7000001b5000001c3000001d1000001df000001ed000001fb12af4da7017e1014b800fc4da7017503b800fc4da7016dbb00fd5904b701024da70161bb00fd5904b701024da70155bb00fd5904b701024da70149bb00fd5903b701024da7013dbb00fd5904b701024da70131bb00fd5903b701024da70125bb00fd5904b701024da70119bb00fd5903b701024da7010d2ab4003ab60105c001094da700ff2ab40040b60105c0010b4da700f12ab40060b60105c0010b4da700e32ab4006ab60105c0010b4da700d52ab40056b60105c0010b4da700c72ab40072b60105c0010b4da700b92ab40054b60105c0010b4da700ab2ab40068b60105c0010b4da7009d2ab40064b60105c0010b4da7008f2ab40044b60105c0010bb8010d4da7007e2ab4007cb60110c0010b4da700702ab40084b60110c0010b4da700622ab40076b60110c0010b4da700542ab4007ab60110c0010b4da700462ab40080b60110c0010b4da700382ab40082b60110c0010b4da7002a2ab4007eb60110c0010b4da7001c2ab40078b60110c0010b4da7000e2ab40074b60110c0010b4d2cb0000000020094000000fa003e000001f1000201f3008801f7008b01f8008e01fc009401fd00970201009c0202009f020600a8020700ab020b00b4020c00b7021000c0021100c3021500cc021600cf021a00d8021b00db021f00e4022000e7022400f0022500f3022900fc022a00ff022e010a022f010d023301180234011b0238012602390129023d0134023e013702420142024301450247015002480153024c015e024d01610251016c0252016f0256017a0257017d025b018b025c018e026001990261019c026501a7026601aa026a01b5026b01b8026f01c3027001c6027401d1027501d4027901df027a01e2027e01ed027f01f0028301fb028401fe028802090290011100000026001ffc00880701120508070b0b0b0b0b0b0b0b0d0d0d0d0d0d0d0d0d100d0d0d0d0d0d0d0d0a000101190000000200027400155f313630313838363733393132395f3432303838357400326e65742e73662e6a61737065727265706f7274732e656e67696e652e64657369676e2e4a524a61766163436f6d70696c6572'
where id = '363c7dc6-cad8-4c2a-97f4-9299e9a0516c';
| 10,106.52
| 126,063
| 0.999513
|
74c3d2a503885b37142ffca944f356067684a914
| 1,730
|
css
|
CSS
|
css/logo-nav.css
|
IceBladeNetwork/cheesecake
|
dae87bafe06d03f5fbb3f4a46ed44970676d2153
|
[
"MIT"
] | null | null | null |
css/logo-nav.css
|
IceBladeNetwork/cheesecake
|
dae87bafe06d03f5fbb3f4a46ed44970676d2153
|
[
"MIT"
] | null | null | null |
css/logo-nav.css
|
IceBladeNetwork/cheesecake
|
dae87bafe06d03f5fbb3f4a46ed44970676d2153
|
[
"MIT"
] | null | null | null |
/*
* Start Bootstrap - Logo Nav (http://startbootstrap.com/)
* Copyright 2013-2016 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
*/
body {
padding-top: 70px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
.navbar-fixed-top .nav {
padding: 15px 0;
}
.navbar-fixed-top .navbar-brand {
padding: 0 15px;
}
@media(min-width:768px) {
body {
padding-top: 100px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
.navbar-fixed-top .navbar-brand {
padding: 15px 0;
}
}
.navbar-inverse {
background: #6a7bb4;
}
.navbar-inverse .navbar-nav > li > a {
color: #4DFFFF;
}
nav < img {
padding-right: 15px;
}
hr {
border: 2px solid #000;
}
.navbar-default .navbar-nav > .active > a {
background: lightblue;
}
.jumbotron {
background: #48579A;
}
#overlay {
background: rgba(0,0,0,0.7);
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
display: none;
text-align: center;
}
#overlay img {
margin: auto;
margin-top: 10%;
display: block;
max-width: 100%;
height: auto;
float: center;
}
#overlay p {
color: white;
}
.carousel-indicators li {
visibility: hidden;
}
.media {
background: #FFF
}
.img-contact {
padding-left: 10px;
border-radius: 6px;
}
.navbar-inverse .navbar-nav > .active > a {
background: #66ccff;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover {
background: #66ccff;
}
.navbar-inverse .navbar-nav > li:hover {
background: rgba(102, 204, 255, .7);
}
| 16.960784
| 113
| 0.620231
|
bb72fa7ea10da7d7eeeebfd4152272d7934edb96
| 32,594
|
cs
|
C#
|
Services/neon-node-agent/Controllers/NodeTaskController.cs
|
jefflill/neonKUBE
|
6cafcd5e6fd982e2a02c4c678bc5f714c9b65b9b
|
[
"Apache-2.0"
] | null | null | null |
Services/neon-node-agent/Controllers/NodeTaskController.cs
|
jefflill/neonKUBE
|
6cafcd5e6fd982e2a02c4c678bc5f714c9b65b9b
|
[
"Apache-2.0"
] | null | null | null |
Services/neon-node-agent/Controllers/NodeTaskController.cs
|
jefflill/neonKUBE
|
6cafcd5e6fd982e2a02c4c678bc5f714c9b65b9b
|
[
"Apache-2.0"
] | null | null | null |
//-----------------------------------------------------------------------------
// FILE: NodeTaskController.cs
// CONTRIBUTOR: Jeff Lill
// COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. 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.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Neon.Common;
using Neon.Diagnostics;
using Neon.IO;
using Neon.Kube;
using Neon.Kube.Operator;
using Neon.Kube.ResourceDefinitions;
using Neon.Retry;
using Neon.Tasks;
using Neon.Time;
using k8s;
using k8s.Models;
using KubeOps.Operator.Controller;
using KubeOps.Operator.Controller.Results;
using KubeOps.Operator.Finalizer;
using KubeOps.Operator.Rbac;
using Newtonsoft.Json;
using Prometheus;
namespace NeonNodeAgent
{
/// <summary>
/// Manages <see cref="V1NeonNodeTask"/> command execution on cluster nodes.
/// </summary>
/// <remarks>
/// <para>
/// This controller relies on a lease named like <b>neon-node-agent.nodetask-NODENAME</b> where <b>NODENAME</b>
/// is the name of the node where the <b>neon-node-agent</b> operator is running. This lease will be
/// persisted in the <see cref="KubeNamespace.NeonSystem"/> namespace and will be used to
/// elect a leader for the node in case there happens to be two agents running on the same
/// node for some reason.
/// </para>
/// <note>
/// This controller provides limited functionality when running on Windows to facilitate debugging.
/// Node tasks on the host node will be simulated in this case by simply returning a zero exit code
/// and empty output and error streams.
/// </note>
/// </remarks>
[EntityRbac(typeof(V1NeonNodeTask), Verbs = RbacVerb.Get | RbacVerb.List | RbacVerb.Patch | RbacVerb.Watch | RbacVerb.Update)]
public class NodeTaskController : IOperatorController<V1NeonNodeTask>
{
//---------------------------------------------------------------------
// Static members
private static readonly INeonLogger log = Program.Service.LogManager.GetLogger<NodeTaskController>();
private static ResourceManager<V1NeonNodeTask, NodeTaskController> resourceManager;
// Paths to relevant folders in the host file system.
private static readonly string hostNeonRunFolder;
private static readonly string hostNeonTasksFolder;
/// <summary>
/// Static constructor.
/// </summary>
static NodeTaskController()
{
hostNeonRunFolder = Path.Combine(Node.HostMount, KubeNodeFolder.NeonRun.Substring(1));
hostNeonTasksFolder = Path.Combine(hostNeonRunFolder, "node-tasks");
}
/// <summary>
/// Starts the controller.
/// </summary>
/// <param name="k8s">The <see cref="IKubernetes"/> client to use.</param>
/// <returns>The tracking <see cref="Task"/>.</returns>
public static async Task StartAsync(IKubernetes k8s)
{
Covenant.Requires<ArgumentNullException>(k8s != null, nameof(k8s));
if (NeonHelper.IsLinux)
{
// Ensure that the [/var/run/neonkube/node-tasks] folder exists on the node.
var scriptPath = Path.Combine(Node.HostMount, $"tmp/node-agent-folder-{NeonHelper.CreateBase36Uuid()}.sh");
var script =
$@"#!/bin/bash
set -euo pipefail
# Ensure that the nodetask runtime folders exist and have the correct permissions.
if [ ! -d {hostNeonRunFolder} ]; then
mkdir -p {hostNeonRunFolder}
chmod 700 {hostNeonRunFolder}
fi
if [ ! -d {hostNeonTasksFolder} ]; then
mkdir -p {hostNeonTasksFolder}
chmod 700 {hostNeonTasksFolder}
fi
# Remove this script.
rm $0
";
File.WriteAllText(scriptPath, NeonHelper.ToLinuxLineEndings(script));
try
{
(await Node.BashExecuteCaptureAsync(scriptPath)).EnsureSuccess();
}
finally
{
NeonHelper.DeleteFile(scriptPath);
}
}
// Load the configuration settings.
var leaderConfig =
new LeaderElectionConfig(
k8s,
@namespace: KubeNamespace.NeonSystem,
leaseName: $"{Program.Service.Name}.nodetask-{Node.Name}",
identity: Pod.Name,
promotionCounter: Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_promoted", "Leader promotions"),
demotionCounter: Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_demoted", "Leader demotions"),
newLeaderCounter: Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_newLeader", "Leadership changes"));
var options = new ResourceManagerOptions()
{
IdleInterval = Program.Service.Environment.Get("NODETASK_IDLE_INTERVAL", TimeSpan.FromSeconds(60)),
ErrorMinRequeueInterval = Program.Service.Environment.Get("NODETASK_ERROR_MIN_REQUEUE_INTERVAL", TimeSpan.FromSeconds(15)),
ErrorMaxRetryInterval = Program.Service.Environment.Get("NODETASK_ERROR_MAX_REQUEUE_INTERVAL", TimeSpan.FromSeconds(60)),
IdleCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_idle", "IDLE events processed."),
ReconcileCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_reconcile", "RECONCILE events processed."),
DeleteCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_delete", "DELETED events processed."),
IdleErrorCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_idle_error", "Failed NodeTask IDLE event processing."),
ReconcileErrorCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_reconcile_error", "Failed NodeTask RECONCILE event processing."),
DeleteErrorCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_delete_error", "Failed NodeTask DELETE event processing."),
StatusModifyErrorCounter = Metrics.CreateCounter($"{Program.Service.MetricsPrefix}nodetask_statusmodify_error", "Failed NodeTask STATUS-MODIFY events processing.")
};
resourceManager = new ResourceManager<V1NeonNodeTask, NodeTaskController>(
k8s,
options: options,
filter: NodeTaskFilter,
leaderConfig: leaderConfig);
await resourceManager.StartAsync();
}
/// <summary>
/// Selects only tasks assigned to the current node to be handled by the resource manager.
/// </summary>
/// <param name="task">The task being filtered.</param>
/// <returns><b>true</b> if the task is assigned to the current node.</returns>
private static bool NodeTaskFilter(V1NeonNodeTask task)
{
Covenant.Requires<ArgumentNullException>(task != null, nameof(task));
// Handle all tasks when debugging.
if (!NeonHelper.IsLinux)
{
return true;
}
// ...otherwise, just for the tasks assigned to the host node.
return task.Spec.Node.Equals(Node.Name, StringComparison.InvariantCultureIgnoreCase);
}
//---------------------------------------------------------------------
// Instance members
private readonly IKubernetes k8s;
/// <summary>
/// Constructor.
/// </summary>
public NodeTaskController(IKubernetes k8s)
{
Covenant.Requires(k8s != null, nameof(k8s));
Covenant.Requires<InvalidOperationException>(resourceManager != null, $"[{nameof(NodeTaskController)}] must be started before KubeOps.");
this.k8s = k8s;
}
/// <inheritdoc/>
public async Task IdleAsync()
{
log.LogInfo("[IDLE]");
// Handle execution of scheduled tasks.
// $todo(jefflill):
//
// I'm implementing this here because even though this would be better
// implemented via requeued events. Unfortunately, we haven't implemented
// that yet.
var utcNow = DateTime.UtcNow;
foreach (var scheduledTask in (await k8s.ListClusterCustomObjectAsync<V1NeonNodeTask>()).Items
.Where(task => NodeTaskFilter(task))
.Where(task => task.Status != null && task.Status.Phase == V1NeonNodeTask.Phase.Pending)
.Where(task => !task.Spec.StartAfterTimestamp.HasValue || task.Spec.StartAfterTimestamp <= utcNow)
.Where(task => !task.Spec.StartBeforeTimestamp.HasValue || task.Spec.StartBeforeTimestamp < utcNow)
.OrderByDescending(task => task.Metadata.CreationTimestamp))
{
await ExecuteTaskAsync(scheduledTask);
}
// Manage tasks by deleting finished tasks after their retention period,
// detecting and deleting orphanded tasks, as well as detecting tardy tasks
// that have missed their scheduling window.
await CleanupTasksAsync();
}
/// <inheritdoc/>
public async Task<ResourceControllerResult> ReconcileAsync(V1NeonNodeTask resource)
{
// Ignore all events when the controller hasn't been started.
if (resourceManager == null)
{
return null;
}
var name = resource.Name();
log.LogInfo($"RECONCILED: {name}");
// We have a new node task targeting the host node:
//
// 1. Ensure that it's valid, delete if bad
// 2. Add a status property as necessary
// 3. Remove the task if it's been retained long enough
// 4. Execute the task if it's pending
var nodeTask = resource;
// Verify that task is valid.
try
{
nodeTask.Validate();
}
catch (Exception e)
{
log.LogWarn($"Invalid NodeTask: [{name}]", e);
log.LogWarn($"Deleting invalid NodeTask: [{name}]");
await k8s.DeleteClusterCustomObjectAsync(nodeTask);
return null;
}
// For new tasks, update the status to PENDING and also add the
// node's owner reference to the object.
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.New)
{
var patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status, new V1NeonNodeTask.TaskStatus());
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Pending);
nodeTask = await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
var nodeOwnerReference = await Node.GetOwnerReferenceAsync(k8s);
if (nodeOwnerReference != null)
{
if (nodeTask.Metadata.OwnerReferences == null)
{
nodeTask.Metadata.OwnerReferences = new List<V1OwnerReference>();
}
nodeTask.Metadata.OwnerReferences.Add(await Node.GetOwnerReferenceAsync(k8s));
}
nodeTask = await k8s.ReplaceClusterCustomObjectAsync<V1NeonNodeTask>(nodeTask, nodeTask.Name());
}
if (nodeTask.Status.FinishTimestamp.HasValue)
{
var retentionTime = DateTime.UtcNow - nodeTask.Status.FinishTimestamp;
if (retentionTime >= TimeSpan.FromSeconds(nodeTask.Spec.RetentionSeconds))
{
log.LogInfo($"NodeTask [{name}] retained for [{retentionTime}] (deleting now).");
await k8s.DeleteClusterCustomObjectAsync(nodeTask);
return null;
}
}
// Execute the task if it's pending and it hasn't missed the scheduling window.
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.Pending)
{
var utcNow = DateTime.UtcNow;
// Abort if we missed the end the scheduled window.
if (nodeTask.Spec.StartBeforeTimestamp.HasValue && nodeTask.Spec.StartBeforeTimestamp < utcNow)
{
log.LogWarn($"Detected tardy [nodetask={nodeTask.Name()}]: task execution didn't start before [{nodeTask.Spec.StartBeforeTimestamp}].");
// Update the node task status to: TARDY
var patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Tardy);
patch.Replace(path => path.Status.FinishTimestamp, utcNow);
patch.Replace(path => path.Status.ExitCode, -1);
await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
return null;
}
// Don't start before a scheduled time.
// $todo(jefflill):
//
// We should requeue the event for the remaining time here, instead of letting
// the IDLE handler execute the delayed task.
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.Pending)
{
if (nodeTask.Spec.StartAfterTimestamp.HasValue && nodeTask.Spec.StartAfterTimestamp.Value <= utcNow)
{
await ExecuteTaskAsync(nodeTask);
return null;
}
else
{
return null;
}
}
await ExecuteTaskAsync(nodeTask);
}
return null;
}
/// <summary>
/// <para>
/// Handles the cleanup of tasks targeting the current cluster node:
/// </para>
/// <list type="bullet">
/// <item>
/// Tasks whose <see cref="V1NeonNodeTask.TaskStatus.AgentId"/> doesn't match
/// the ID for the current agent will be marked as <see cref="V1NeonNodeTask.Phase.Orphaned"/>
/// and the finish time will be set to now. This sets the task up for eventual
/// deletion.
/// </item>
/// <item>
/// Tasks with a finish time that is older than <see cref="V1NeonNodeTask.TaskSpec.RetentionTime"/>
/// will be removed.
/// </item>
/// <item>
/// Scheduled tasks that missed their scheduling window will be marked as TARDY and
/// will be retained for a while before being deleted.
/// </item>
/// </list>
/// </summary>
/// <returns>The tracking <see cref="Task"/>.</returns>
private async Task CleanupTasksAsync()
{
var utcNow = DateTime.UtcNow;
var nodeTasks = (await k8s.ListClusterCustomObjectAsync<V1NeonNodeTask>()).Items
.Where(tasks => NodeTaskFilter(tasks))
.ToArray();
foreach (var nodeTask in nodeTasks)
{
var taskName = nodeTask.Name();
//-------------------------------------------------------------
// Remove invalid tasks.
try
{
nodeTask.Validate();
}
catch (Exception e)
{
log.LogWarn($"Invalid NodeTask: [{taskName}]", e);
log.LogWarn($"Deleting invalid NodeTask: [{taskName}]");
await k8s.DeleteClusterCustomObjectAsync(nodeTask);
continue;
}
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.Running)
{
//---------------------------------------------------------
// Detect and kill orphaned tasks.
if (nodeTask.Status.AgentId != Node.AgentId)
{
log.LogWarn($"Detected orphaned [nodetask={taskName}]: task [agentID={nodeTask.Status.AgentId}] does not match operator [agentID={Node.AgentId}]");
// Update the node task status to: ORPHANED
var patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Orphaned);
patch.Replace(path => path.Status.FinishTimestamp, utcNow);
patch.Replace(path => path.Status.ExitCode, -1);
await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
await KillTaskAsync(nodeTask);
continue;
}
//---------------------------------------------------------
// Kill tasks that have been running for too long.
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.Running &&
utcNow - nodeTask.Status.StartTimestamp >= TimeSpan.FromSeconds(nodeTask.Spec.TimeoutSeconds))
{
log.LogWarn($"Execution timeout [nodetask={taskName}]: execution time exceeds [{nodeTask.Spec.TimeoutSeconds}].");
await KillTaskAsync(nodeTask);
// Update the node task status to: TIMEOUT
var patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Timeout);
patch.Replace(path => path.Status.FinishTimestamp, utcNow);
patch.Replace(path => path.Status.RuntimeSeconds, (int)Math.Ceiling((utcNow - nodeTask.Status.StartTimestamp.Value).TotalSeconds));
patch.Replace(path => path.Status.ExitCode, -1);
await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
continue;
}
//---------------------------------------------------------
// Detect that missed their scheduling window and mark them as tardy
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.Pending &&
nodeTask.Spec.StartBeforeTimestamp.HasValue && nodeTask.Spec.StartBeforeTimestamp <= utcNow)
{
log.LogWarn($"Detected tardy [nodetask={taskName}]: task execution didn't start before [{nodeTask.Spec.StartBeforeTimestamp}].");
// Update the node task status to: TARDY
var patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Tardy);
patch.Replace(path => path.Status.FinishTimestamp, utcNow);
patch.Replace(path => path.Status.ExitCode, -1);
await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
continue;
}
}
}
//-----------------------------------------------------------------
// Remove tasks that have been retained long enough.
foreach (var nodeTask in nodeTasks
.Where(task => task.Status.Phase != V1NeonNodeTask.Phase.New && task.Status.Phase != V1NeonNodeTask.Phase.Running)
.Where(task => (utcNow - task.Status.FinishTimestamp) >= TimeSpan.FromSeconds(task.Spec.RetentionSeconds)))
{
log.LogWarn($"[nodetask={nodeTask.Name()}]: has been retained for [{nodeTask.Spec.RetentionSeconds}] (deleting now).");
await k8s.DeleteClusterCustomObjectAsync(nodeTask);
}
//-----------------------------------------------------------------
// Remove any script folders whose node task no longer exists.
if (NeonHelper.IsLinux)
{
var nodeTaskExecuteIds = new HashSet<string>();
foreach (var nodeTask in nodeTasks.Where(task => !string.IsNullOrEmpty(task.Status.RunId)))
{
nodeTaskExecuteIds.Add(nodeTask.Status.RunId);
}
foreach (var scriptFolderPath in Directory.GetDirectories(hostNeonTasksFolder, "*", SearchOption.TopDirectoryOnly))
{
var scriptFolderName = LinuxPath.GetFileName(scriptFolderPath);
if (!nodeTaskExecuteIds.Contains(scriptFolderName))
{
log.LogWarn($"Removing node task host script folder: {scriptFolderName}");
NeonHelper.DeleteFolder(scriptFolderPath);
}
}
}
}
/// <summary>
/// Kills the node task's process if it is running.
/// </summary>
/// <param name="nodeTask">The node task.</param>
/// <returns>The tracking <see cref="Task"/>.</returns>
private async Task KillTaskAsync(V1NeonNodeTask nodeTask)
{
Covenant.Requires<ArgumentNullException>(nodeTask != null, nameof(nodeTask));
if (!NeonHelper.IsLinux)
{
return;
}
var taskName = nodeTask.Name();
if (nodeTask.Status != null && nodeTask.Status.Phase != V1NeonNodeTask.Phase.Running)
{
return;
}
// Try to locate the task process by process ID and command line. Note that
// we can't use the process ID by itself because it possible that the process
// ID has been recycled and is currently assigned to an entirely unrelated
// process.
//
// We're going to use the [ps --pid=PROCESSID --format cmd=] command. This
// will return an empty line when the process doesn't exist and a single line
// with the process command line when the process exists.
var result = await Node.ExecuteCaptureAsync("ps", new object[] { $"--pid {nodeTask.Status.ProcessId}", "--format cmd=" });
if (result.ExitCode == 0)
{
using (var reader = new StringReader(result.OutputText))
{
var commandLine = reader.Lines().FirstOrDefault();
if (commandLine == nodeTask.Status.CommandLine)
{
// The process ID and command line match, so kill it.
result = await Node.ExecuteCaptureAsync("kill", new object[] { "-s", "SIGTERM", nodeTask.Status.ProcessId });
if (result.ExitCode != 0)
{
log.LogWarn($"[NodeTask: {taskName}]: Cannot kill orphaned task process [{nodeTask.Status.ProcessId}]. [exitcode={result.ExitCode}]");
return;
}
}
}
}
}
/// <summary>
/// Initiates execution of a node task in the background when the task is still pending.
/// </summary>
/// <param name="nodeTask">The node task to be executed.</param>
/// <param name="resources">The existing tasks.</param>
/// <returns>The tracking <see cref="Task"/>.</returns>
private async Task ExecuteTaskAsync(V1NeonNodeTask nodeTask)
{
Covenant.Requires<ArgumentNullException>(nodeTask != null, nameof(nodeTask));
var taskName = nodeTask.Name();
if (nodeTask.Status.Phase != V1NeonNodeTask.Phase.Pending)
{
return;
}
// Start and execute the command. The trick here is that we need the
// ID of the process launched before we can update the status.
int? processId = null;
// Generate the execution UUID and determine where the script will be located.
var executionId = Guid.NewGuid().ToString("d");
var taskFolder = LinuxPath.Combine(hostNeonTasksFolder, executionId);
var scriptPath = LinuxPath.Combine(taskFolder, "task.sh");
// Prepend the script to be deployed with code that sets the special
// environment variables.
var deployedScript =
$@"
#------------------------------------------------------------------------------
# neon-node-task: Initialze special script variables
export NODE_ROOT={Node.HostMount}
export SCRIPT_DIR={taskFolder}
#------------------------------------------------------------------------------
{nodeTask.Spec.BashScript}
";
if (NeonHelper.IsLinux)
{
Directory.CreateDirectory(taskFolder);
File.WriteAllText(scriptPath, NeonHelper.ToLinuxLineEndings(deployedScript));
}
// Start the command process.
var task = (Task<ExecuteResponse>)null;
if (!NeonHelper.IsLinux)
{
processId = 1234;
task = Task.Run<ExecuteResponse>(
async () =>
{
await Task.Delay(TimeSpan.FromSeconds(1));
return new ExecuteResponse(0);
});
}
else
{
try
{
// This callback will be executed once the [Node.ExecuteCaptureAsync()]
// call has the process details. We'll save the details, update the node task
// status and persist the status changes to the API server.
var processCallback =
(Process newProcess) =>
{
processId = newProcess.Id;
log.LogInfo($"Starting [nodetask={taskName}]: [command={Node.GetBashCommandLine(scriptPath)}] [processID={processId}]");
};
task = Node.BashExecuteCaptureAsync(
path: scriptPath,
timeout: TimeSpan.FromSeconds(nodeTask.Spec.TimeoutSeconds),
processCallback: processCallback);
}
catch (Exception e)
{
// We shouldn't ever see an error here because [/bin/bash] should always
// exist, but we'll log something just in case.
log.LogWarn(e);
var failedPatch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
failedPatch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Failed);
failedPatch.Replace(path => path.Status.FinishTimestamp, DateTime.UtcNow);
failedPatch.Replace(path => path.Status.ExitCode, -1);
failedPatch.Replace(path => path.Status.Error, $"EXECUTE FAILED: {e.Message}");
await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(failedPatch), nodeTask.Name());
return;
}
}
// We need to wait for the [Node.BashExecuteCaptureAsync()] call above to
// report the process for the executed script.
try
{
NeonHelper.WaitFor(() => processId != null, timeout: TimeSpan.FromSeconds(15), pollInterval: TimeSpan.FromMilliseconds(150));
}
catch (TimeoutException e)
{
// It's possible but unlikely that the update above failed for some reason.
// We'll log this and then hope for the best.
log.LogWarn(e);
}
// Update the node task status to: RUNNING
var patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Running);
patch.Replace(path => path.Status.StartTimestamp, DateTime.UtcNow);
patch.Replace(path => path.Status.AgentId, Node.AgentId);
patch.Replace(path => path.Status.ProcessId, processId);
patch.Replace(path => path.Status.CommandLine, Node.GetBashCommandLine(scriptPath).Trim());
patch.Replace(path => path.Status.RunId, executionId);
nodeTask = await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
// Wait for the command to complete and then update the node task status.
try
{
var result = (ExecuteResponse)null;
var timeout = false;
try
{
result = await task;
log.LogInfo($"Finished [nodetask={taskName}]: [command={nodeTask.Status.CommandLine}] [exitcode={result.ExitCode}]");
}
catch (TimeoutException)
{
timeout = true;
log.LogWarn($"Timeout [nodetask={taskName}]");
}
var utcNow = DateTime.UtcNow;
if (nodeTask.Status.Phase == V1NeonNodeTask.Phase.Running)
{
patch = OperatorHelper.CreatePatch<V1NeonNodeTask>();
patch.Replace(path => path.Status.FinishTimestamp, utcNow);
if (timeout)
{
patch.Replace(path => path.Status.Phase, V1NeonNodeTask.Phase.Timeout);
patch.Replace(path => path.Status.RuntimeSeconds, (int)Math.Ceiling((utcNow - nodeTask.Status.StartTimestamp.Value).TotalSeconds));
patch.Replace(path => path.Status.ExitCode, -1);
}
else
{
patch.Replace(path => path.Status.Phase, result.ExitCode == 0 ? V1NeonNodeTask.Phase.Success : V1NeonNodeTask.Phase.Failed);
patch.Replace(path => path.Status.RuntimeSeconds, (int)Math.Ceiling((utcNow - nodeTask.Status.StartTimestamp.Value).TotalSeconds));
patch.Replace(path => path.Status.ExitCode, result.ExitCode);
if (nodeTask.Spec.CaptureOutput)
{
patch.Replace(path => path.Status.Output, result.OutputText);
patch.Replace(path => path.Status.Error, result.ErrorText);
}
}
nodeTask = await k8s.PatchClusterCustomObjectStatusAsync<V1NeonNodeTask>(OperatorHelper.ToV1Patch<V1NeonNodeTask>(patch), nodeTask.Name());
}
}
catch (Exception e)
{
log.LogWarn(e);
}
}
}
}
| 42.440104
| 179
| 0.553261
|
a3cf7eabe55679742199e36f28daf2b8a090673f
| 2,029
|
java
|
Java
|
dbflute-runtime/src/test/java/org/dbflute/cbean/chelper/HpCBPurposeTest.java
|
shin-kinoshita/dbflute-core
|
a21ac5f9640fbad415206ac392e6a214132670fe
|
[
"Apache-1.1"
] | null | null | null |
dbflute-runtime/src/test/java/org/dbflute/cbean/chelper/HpCBPurposeTest.java
|
shin-kinoshita/dbflute-core
|
a21ac5f9640fbad415206ac392e6a214132670fe
|
[
"Apache-1.1"
] | null | null | null |
dbflute-runtime/src/test/java/org/dbflute/cbean/chelper/HpCBPurposeTest.java
|
shin-kinoshita/dbflute-core
|
a21ac5f9640fbad415206ac392e6a214132670fe
|
[
"Apache-1.1"
] | null | null | null |
/*
* Copyright 2014-2018 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.dbflute.cbean.chelper;
import junit.framework.TestCase;
/**
* @author jflute
*/
public class HpCBPurposeTest extends TestCase {
public void test_spec_NormalUse() {
// ## Arrange ##
HpCBPurpose purpose = HpCBPurpose.NORMAL_USE; // all can be used
// ## Act & Assert ##
assertFalse(purpose.isNoSetupSelect());
assertFalse(purpose.isNoSpecify());
assertFalse(purpose.isNoSpecifyColumnTwoOrMore());
assertFalse(purpose.isNoSpecifyRelation());
assertFalse(purpose.isNoSpecifyDerivedReferrer());
assertFalse(purpose.isNoQuery());
assertFalse(purpose.isNoOrderBy());
}
public void test_toString() {
assertEquals("NormalUse", HpCBPurpose.NORMAL_USE.toString());
assertEquals("UnionQuery", HpCBPurpose.UNION_QUERY.toString());
assertEquals("ExistsReferrer", HpCBPurpose.EXISTS_REFERRER.toString());
assertEquals("InScopeRelation", HpCBPurpose.IN_SCOPE_RELATION.toString());
assertEquals("DerivedReferrer", HpCBPurpose.DERIVED_REFERRER.toString());
assertEquals("ScalarSelect", HpCBPurpose.SCALAR_SELECT.toString());
assertEquals("ScalarCondition", HpCBPurpose.SCALAR_CONDITION.toString());
assertEquals("ColumnQuery", HpCBPurpose.COLUMN_QUERY.toString());
assertEquals("VaryingUpdate", HpCBPurpose.VARYING_UPDATE.toString());
}
}
| 39.784314
| 82
| 0.713652
|
41efae9d96957d49422b8a0978edec90114c0d2e
| 2,868
|
swift
|
Swift
|
test/Incremental/superfluous-cascade.swift
|
rock88/swift
|
53424447da0fa803be243f59a4bd027faa8d8e0a
|
[
"Apache-2.0"
] | 2
|
2017-06-19T08:57:48.000Z
|
2017-06-20T01:39:32.000Z
|
test/Incremental/superfluous-cascade.swift
|
rock88/swift
|
53424447da0fa803be243f59a4bd027faa8d8e0a
|
[
"Apache-2.0"
] | null | null | null |
test/Incremental/superfluous-cascade.swift
|
rock88/swift
|
53424447da0fa803be243f59a4bd027faa8d8e0a
|
[
"Apache-2.0"
] | 1
|
2017-11-01T15:48:30.000Z
|
2017-11-01T15:48:30.000Z
|
// =============================================================================
// Without private dependencies
// =============================================================================
// Establish status quo
// RUN: %empty-directory(%t)
// RUN: cp %S/Inputs/superfluous-cascade/* %t
// RUN: cp %t/definesPoint{-before,}.swift
// RUN: touch -t 200101010101 %t/*.swift
// RUN: cd %t && %swiftc_driver -enable-batch-mode -j2 -incremental -driver-show-incremental main.swift definesPoint.swift usesPoint.swift usesDisplay.swift -module-name main -output-file-map ofm.json >&output1
// Change one type - the cascading edge causes us to rebuild everything but main
// RUN: cp %t/definesPoint{-after,}.swift
// RUN: touch -t 200201010101 %t/*
// RUN: touch -t 200101010101 %t/*.swift
// RUN: touch -t 200301010101 %t/definesPoint.swift
// RUN: cd %t && %swiftc_driver -enable-batch-mode -j2 -incremental -driver-show-incremental main.swift definesPoint.swift usesPoint.swift usesDisplay.swift -module-name main -output-file-map ofm.json >&output2
// RUN: %FileCheck -check-prefix=CHECK-STATUS-QUO-RECOMPILED %s < %t/output2
// CHECK-STATUS-QUO-RECOMPILED: Queuing because of dependencies discovered later: {compile: usesPoint.o <= usesPoint.swift}
// CHECK-STATUS-QUO-RECOMPILED: Queuing because of dependencies discovered later: {compile: usesDisplay.o <= usesDisplay.swift}
// =============================================================================
// With private dependencies
// =============================================================================
// Establish status quo
// RUN: %empty-directory(%t)
// RUN: cp %S/Inputs/superfluous-cascade/* %t
// RUN: cp %t/definesPoint{-before,}.swift
// RUN: touch -t 200101010101 %t/*.swift
// RUN: cd %t && %swiftc_driver -enable-batch-mode -j2 -incremental -driver-show-incremental main.swift definesPoint.swift usesPoint.swift usesDisplay.swift -module-name main -output-file-map ofm.json -experimental-private-intransitive-dependencies >&output3
// Change one type - now only the user of that type rebuilds
// RUN: cp %t/definesPoint{-after,}.swift
// RUN: touch -t 200201010101 %t/*
// RUN: touch -t 200101010101 %t/*.swift
// RUN: touch -t 200301010101 %t/definesPoint.swift
// RUN: cd %t && %swiftc_driver -enable-batch-mode -j2 -incremental -driver-show-incremental main.swift definesPoint.swift usesPoint.swift usesDisplay.swift -module-name main -output-file-map ofm.json -experimental-private-intransitive-dependencies >&output4
// RUN: %FileCheck -check-prefix=CHECK-PRIVATE-RECOMPILED %s --dump-input=always < %t/output4
// CHECK-PRIVATE-RECOMPILED: Queuing because of dependencies discovered later: {compile: usesPoint.o <= usesPoint.swift}
// CHECK-PRIVATE-RECOMPILED-NOT: Queuing because of dependencies discovered later: {compile: usesDisplay.o <= usesDisplay.swift}
| 50.315789
| 259
| 0.664226
|
a4a48c8ae1b8735ea88fdcfd993bb44b12be7240
| 9,784
|
php
|
PHP
|
resources/views/admin/project/components/form-elements.blade.php
|
theobaidur/govt-project-management
|
ecb1b2dc34642df18d156ce290c316dd3d77a07f
|
[
"MIT"
] | null | null | null |
resources/views/admin/project/components/form-elements.blade.php
|
theobaidur/govt-project-management
|
ecb1b2dc34642df18d156ce290c316dd3d77a07f
|
[
"MIT"
] | 4
|
2021-03-10T02:11:10.000Z
|
2022-02-26T21:23:31.000Z
|
resources/views/admin/project/components/form-elements.blade.php
|
theobaidur/govt-project-management
|
ecb1b2dc34642df18d156ce290c316dd3d77a07f
|
[
"MIT"
] | null | null | null |
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('name'), 'has-success': this.fields.name && this.fields.name.valid }">
<label for="name" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.name') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<input type="text" v-model="form.name" v-validate="'required'" @input="validate($event)" class="form-control" :class="{'form-control-danger': errors.has('name'), 'form-control-success': this.fields.name && this.fields.name.valid}" id="name" name="name" placeholder="{{ trans('admin.project.columns.name') }}">
<div v-if="errors.has('name')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('name') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('description'), 'has-success': this.fields.description && this.fields.description.valid }">
<label for="description" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.description') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<div>
<wysiwyg v-model="form.description" v-validate="'required'" id="description" name="description" :config="mediaWysiwygConfig"></wysiwyg>
</div>
<div v-if="errors.has('description')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('description') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('amount'), 'has-success': this.fields.amount && this.fields.amount.valid }">
<label for="amount" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.amount') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<input type="text" v-model="form.amount" v-validate="'required|decimal'" @input="validate($event)" class="form-control" :class="{'form-control-danger': errors.has('amount'), 'form-control-success': this.fields.amount && this.fields.amount.valid}" id="amount" name="amount" placeholder="{{ trans('admin.project.columns.amount') }}">
<div v-if="errors.has('amount')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('amount') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('bank_guarantee_amount'), 'has-success': this.fields.bank_guarantee_amount && this.fields.bank_guarantee_amount.valid }">
<label for="bank_guarantee_amount" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.bank_guarantee_amount') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<input type="text" v-model="form.bank_guarantee_amount" v-validate="'required|decimal'" @input="validate($event)" class="form-control" :class="{'form-control-danger': errors.has('bank_guarantee_amount'), 'form-control-success': this.fields.bank_guarantee_amount && this.fields.bank_guarantee_amount.valid}" id="bank_guarantee_amount" name="bank_guarantee_amount" placeholder="{{ trans('admin.project.columns.bank_guarantee_amount') }}">
<div v-if="errors.has('bank_guarantee_amount')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('bank_guarantee_amount') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('start_date'), 'has-success': this.fields.start_date && this.fields.start_date.valid }">
<label for="start_date" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.start_date') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<div class="input-group input-group--custom">
<div class="input-group-addon"><i class="fa fa-calendar"></i></div>
<datetime v-model="form.start_date" :config="datetimePickerConfig" v-validate="'required|date_format:yyyy-MM-dd HH:mm:ss'" class="flatpickr" :class="{'form-control-danger': errors.has('start_date'), 'form-control-success': this.fields.start_date && this.fields.start_date.valid}" id="start_date" name="start_date" placeholder="{{ trans('brackets/admin-ui::admin.forms.select_date_and_time') }}"></datetime>
</div>
<div v-if="errors.has('start_date')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('start_date') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('end_date'), 'has-success': this.fields.end_date && this.fields.end_date.valid }">
<label for="end_date" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.end_date') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<div class="input-group input-group--custom">
<div class="input-group-addon"><i class="fa fa-calendar"></i></div>
<datetime v-model="form.end_date" :config="datetimePickerConfig" v-validate="'required|date_format:yyyy-MM-dd HH:mm:ss'" class="flatpickr" :class="{'form-control-danger': errors.has('end_date'), 'form-control-success': this.fields.end_date && this.fields.end_date.valid}" id="end_date" name="end_date" placeholder="{{ trans('brackets/admin-ui::admin.forms.select_date_and_time') }}"></datetime>
</div>
<div v-if="errors.has('end_date')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('end_date') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('department_id'), 'has-success': this.fields.department_id && this.fields.department_id.valid }">
<label for="department_id" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.department_id') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<select v-model="form.department_id" v-validate="''" @input="validate($event)" class="form-control" :class="{'form-control-danger': errors.has('department_id'), 'form-control-success': this.fields.department_id && this.fields.department_id.valid}" id="department_id" name="department_id">
<option disabled value="">{{ trans('admin.project.columns.department_id') }}</option>
@foreach ($departments as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
<div v-if="errors.has('department_id')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('department_id') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('project_director_id'), 'has-success': this.fields.project_director_id && this.fields.project_director_id.valid }">
<label for="project_director_id" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.project_director_id') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<select v-model="form.project_director_id" v-validate="''" @input="validate($event)" class="form-control" :class="{'form-control-danger': errors.has('project_director_id'), 'form-control-success': this.fields.project_director_id && this.fields.project_director_id.valid}" id="project_director_id" name="project_director_id">
<option disabled value="">{{ trans('admin.project.columns.project_director_id') }}</option>
@foreach ($project_directors as $item)
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
@endforeach
</select>
<div v-if="errors.has('project_director_id')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('project_director_id') }}</div>
</div>
</div>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('project_client_id'), 'has-success': this.fields.project_client_id && this.fields.project_client_id.valid }">
<label for="project_client_id" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{ trans('admin.project.columns.project_client_id') }}</label>
<div :class="isFormLocalized ? 'col-md-4' : 'col-md-9 col-xl-8'">
<select v-model="form.project_client_id" v-validate="''" @input="validate($event)" class="form-control" :class="{'form-control-danger': errors.has('project_client_id'), 'form-control-success': this.fields.project_client_id && this.fields.project_client_id.valid}" id="project_client_id" name="project_client_id">
<option disabled value="">{{ trans('admin.project.columns.project_client_id') }}</option>
@foreach ($clients as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
<div v-if="errors.has('project_client_id')" class="form-control-feedback form-text" v-cloak>@{{ errors.first('project_client_id') }}</div>
</div>
</div>
@include('brackets/admin-ui::admin.includes.media-uploader', [
'mediaCollection' => app(App\Models\Project::class)->getMediaCollection('related_files'),
'label' => 'Related Files',
'media' => !empty($project) ? $project->getThumbs200ForCollection('related_files') : null
])
| 95.921569
| 444
| 0.667212
|
20e85683e01ee5d9c79e0783154dac45bfce7a01
| 2,045
|
py
|
Python
|
src/robusta/cli/integrations_cmd.py
|
pavangudiwada/robusta
|
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
|
[
"MIT"
] | null | null | null |
src/robusta/cli/integrations_cmd.py
|
pavangudiwada/robusta
|
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
|
[
"MIT"
] | null | null | null |
src/robusta/cli/integrations_cmd.py
|
pavangudiwada/robusta
|
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
|
[
"MIT"
] | null | null | null |
import base64
import os
import time
import uuid
import requests
import typer
from pydantic import BaseModel
from collections import namedtuple
from .backend_profile import backend_profile
from .utils import log_title
app = typer.Typer()
SLACK_INTEGRATION_SERVICE_ADDRESS = os.environ.get(
"SLACK_INTEGRATION_SERVICE_ADDRESS",
f"{backend_profile.robusta_cloud_api_host}/integrations/slack/get-token",
)
SlackApiKey = namedtuple("SlackApiKey", "key team_name")
def wait_for_slack_api_key(id: str) -> SlackApiKey:
while True:
try:
response_json = requests.get(
f"{SLACK_INTEGRATION_SERVICE_ADDRESS}?id={id}"
).json()
if response_json["token"]:
return SlackApiKey(
str(response_json["token"]), response_json.get("team-name", None)
)
time.sleep(0.5)
except Exception as e:
log_title(f"Error getting slack token {e}")
def _get_slack_key_once() -> SlackApiKey:
id = str(uuid.uuid4())
url = f"{backend_profile.robusta_cloud_api_host}/integrations/slack?id={id}"
typer.secho(
f"If your browser does not automatically launch, open the below url:\n{url}"
)
typer.launch(url)
slack_api_key = wait_for_slack_api_key(id)
return slack_api_key
def get_slack_key() -> (str, str):
slack_api_key = _get_slack_key_once()
if not slack_api_key or not slack_api_key.team_name:
return slack_api_key.key, ""
team_name = slack_api_key.team_name
team_name_styled = typer.style(team_name, fg=typer.colors.CYAN, bold=True)
typer.secho(f"You've just connected Robusta to the Slack of: {team_name_styled}")
return slack_api_key.key, team_name_styled
@app.command()
def slack():
"""generate slack api key"""
key, workspace = get_slack_key()
log_title(
f"Connected to Slack workspace {workspace}.\n"
f"Your Slack key is:\n{key}\nAdd it to the slack sink configuration"
)
if __name__ == "__main__":
app()
| 28.802817
| 85
| 0.681663
|
58aa91f5bd04aca2a45655bfc28ef584886a714c
| 146
|
css
|
CSS
|
stle.css
|
anvaka/sillyheader-theme
|
56ec9b8604ced95c76e1bdeb36c583a6a5d1b4ff
|
[
"MIT"
] | null | null | null |
stle.css
|
anvaka/sillyheader-theme
|
56ec9b8604ced95c76e1bdeb36c583a6a5d1b4ff
|
[
"MIT"
] | null | null | null |
stle.css
|
anvaka/sillyheader-theme
|
56ec9b8604ced95c76e1bdeb36c583a6a5d1b4ff
|
[
"MIT"
] | 1
|
2021-07-21T17:09:46.000Z
|
2021-07-21T17:09:46.000Z
|
body,
html {
background: #252525;
width: 100%;
height: 100%;
position: absolute;
overflow: hidden;
}
div {
float: left;
}
| 12.166667
| 24
| 0.568493
|
4ea31e7031ebd051007af48fcbd557f9bb9eb8bc
| 67
|
go
|
Go
|
src/go/build/testdata/multi/file_appengine.go
|
Havoc-OS/androidprebuilts_go_linux-x86
|
0e86c1f50764de9ba38655f4396d082882e089fa
|
[
"BSD-3-Clause"
] | 107,386
|
2015-01-01T00:05:52.000Z
|
2022-03-31T23:12:54.000Z
|
src/go/build/testdata/multi/file_appengine.go
|
Havoc-OS/androidprebuilts_go_linux-x86
|
0e86c1f50764de9ba38655f4396d082882e089fa
|
[
"BSD-3-Clause"
] | 43,454
|
2015-01-01T00:02:19.000Z
|
2022-03-31T23:44:25.000Z
|
src/go/build/testdata/multi/file_appengine.go
|
Havoc-OS/androidprebuilts_go_linux-x86
|
0e86c1f50764de9ba38655f4396d082882e089fa
|
[
"BSD-3-Clause"
] | 19,167
|
2015-01-01T03:08:10.000Z
|
2022-03-31T22:37:59.000Z
|
// Test data - not compiled.
package test_package
func init() {}
| 11.166667
| 28
| 0.686567
|
dfad18ea3bf1cd54393e997cc17d7aea6da68e7d
| 2,171
|
cs
|
C#
|
XInspector/Attributes/DecimalCount.cs
|
mastertnt/XInspector
|
642047559125b4eb841cd7ffcf00e608d9735c56
|
[
"MIT"
] | null | null | null |
XInspector/Attributes/DecimalCount.cs
|
mastertnt/XInspector
|
642047559125b4eb841cd7ffcf00e608d9735c56
|
[
"MIT"
] | null | null | null |
XInspector/Attributes/DecimalCount.cs
|
mastertnt/XInspector
|
642047559125b4eb841cd7ffcf00e608d9735c56
|
[
"MIT"
] | null | null | null |
using System;
namespace XInspector.Attributes
{
/// <summary>
/// The [Bound] attribute is used for decimal properties.
/// <example>[DecimalCount(4)]</example>
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class DecimalCount : Attribute
{
#region Fields
/// <summary>
/// This variable defines
/// </summary>
public static readonly DecimalCount msDefault = new DecimalCount();
#endregion // Fields.
#region Properties
/// <summary>
/// Gets or sets the minimum value.
/// </summary>
public Int32 Count
{
get;
set;
}
#endregion
#region Methods
/// <summary>
/// Default constructor.
/// </summary>
private DecimalCount()
{
this.Count = 5;
}
/// <summary>
/// Constructor by initialization.
/// </summary>
public DecimalCount(Int32 pDecimalCount)
{
this.Count = pDecimalCount;
}
/// <summary>
/// Compares the attribute with another one.
/// </summary>
/// <param name="pObject">The object to compare.</param>
/// <returns>True if the objects are equal, false otherwise.</returns>
public override Boolean Equals(Object pObject)
{
DecimalCount lBoundedObject = pObject as DecimalCount;
return this.Count.Equals(lBoundedObject.Count);
}
/// <summary>
/// Returns a hash code for the attribute.
/// </summary>
/// <returns>The computed hash code.</returns>
public override Int32 GetHashCode()
{
return this.Count.GetHashCode();
}
/// <summary>
/// This method checks if the attribute is the default attribute.
/// </summary>
/// <returns>True if the attribute is the default attribute, false otherwise.</returns>
public override Boolean IsDefaultAttribute()
{
return this.Equals(msDefault);
}
#endregion
}
}
| 25.845238
| 95
| 0.540765
|
33e0ddbe1a83c6d6105a695018c3f5d14a3f3a2e
| 10,799
|
c
|
C
|
vehicle/OVMS.V3/components/duktape/extras/alloc-pool/duk_alloc_pool.c
|
goev/Open-Vehicle-Monitoring-System-3
|
f2efd1898ec1df19eb730c1eda9a1999a00b36b4
|
[
"MIT"
] | 199
|
2017-04-06T15:20:50.000Z
|
2020-10-16T12:32:56.000Z
|
extras/alloc-pool/duk_alloc_pool.c
|
KiraanRK/esp32-duktape
|
1b7fbcb8bd6bfc346d92df30ec099df7f13b03aa
|
[
"MIT"
] | 9
|
2017-04-09T03:07:11.000Z
|
2017-04-11T02:23:18.000Z
|
extras/alloc-pool/duk_alloc_pool.c
|
KiraanRK/esp32-duktape
|
1b7fbcb8bd6bfc346d92df30ec099df7f13b03aa
|
[
"MIT"
] | 8
|
2017-04-09T04:49:00.000Z
|
2018-07-17T15:55:04.000Z
|
/*
* Pool allocator for low memory targets.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#include "duktape.h"
#include "duk_alloc_pool.h"
/* Define to enable some debug printfs. */
/* #define DUK_ALLOC_POOL_DEBUG */
#if defined(DUK_ALLOC_POOL_ROMPTR_COMPRESSION)
#if 0 /* This extern declaration is provided by duktape.h, array provided by duktape.c. */
extern const void * const duk_rom_compressed_pointers[];
#endif
const void *duk_alloc_pool_romptr_low = NULL;
const void *duk_alloc_pool_romptr_high = NULL;
static void duk__alloc_pool_romptr_init(void);
#endif
#if defined(DUK_USE_HEAPPTR16)
void *duk_alloc_pool_ptrcomp_base = NULL;
#endif
#if defined(DUK_ALLOC_POOL_DEBUG)
static void duk__alloc_pool_dprintf(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
}
#endif
/*
* Pool initialization
*/
void *duk_alloc_pool_init(char *buffer,
size_t size,
const duk_pool_config *configs,
duk_pool_state *states,
int num_pools,
duk_pool_global *global) {
double t_min, t_max, t_curr, x;
int step, i, j, n;
size_t total;
char *p;
/* XXX: check that 'size' is not too large when using pointer
* compression.
*/
/* To optimize pool counts first come up with a 't' which still allows
* total pool size to fit within user provided region. After that
* sprinkle any remaining bytes to the counts. Binary search with a
* fixed step count; last round uses 't_min' as 't_curr' to ensure it
* succeeds.
*/
t_min = 0.0; /* Unless config is insane, this should always be "good". */
t_max = 1e6;
for (step = 0; ; step++) {
if (step >= 100) {
/* Force "known good", rerun config, and break out.
* Deals with rounding corner cases where t_curr is
* persistently "bad" even though t_min is a valid
* solution.
*/
t_curr = t_min;
} else {
t_curr = (t_min + t_max) / 2.0;
}
for (i = 0, total = 0; i < num_pools; i++) {
states[i].size = configs[i].size;
/* Target bytes = A*t + B ==> target count = (A*t + B) / block_size.
* Rely on A and B being small enough so that 'x' won't wrap.
*/
x = ((double) configs[i].a * t_curr + (double) configs[i].b) / (double) configs[i].size;
states[i].count = (unsigned int) x;
total += (size_t) states[i].size * (size_t) states[i].count;
if (total > size) {
goto bad;
}
}
/* t_curr is good. */
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_alloc_pool_init: step=%d, t=[%lf %lf %lf] -> total %ld/%ld (good)\n",
step, t_min, t_curr, t_max, (long) total, (long) size);
#endif
if (step >= 100) {
/* Keep state[] initialization state. The state was
* created using the highest 't_min'.
*/
break;
}
t_min = t_curr;
continue;
bad:
/* t_curr is bad. */
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_alloc_pool_init: step=%d, t=[%lf %lf %lf] -> total %ld/%ld (bad)\n",
step, t_min, t_curr, t_max, (long) total, (long) size);
#endif
if (step >= 1000) {
/* Cannot find any good solution; shouldn't happen
* unless config is bad or 'size' is so small that
* even a baseline allocation won't fit.
*/
return NULL;
}
t_max = t_curr;
/* continue */
}
/* The base configuration is now good; sprinkle any leftovers to
* pools in descending order. Note that for good t_curr, 'total'
* indicates allocated bytes so far and 'size - total' indicates
* leftovers.
*/
for (i = num_pools - 1; i >= 0; i--) {
while (size - total >= states[i].size) {
/* Ignore potential wrapping of states[i].count as the count
* is 32 bits and shouldn't wrap in practice.
*/
states[i].count++;
total += states[i].size;
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_alloc_pool_init: sprinkle %ld bytes (%ld left after)\n",
(long) states[i].size, (long) (size - total));
#endif
}
}
/* Pool counts are final. Allocate the user supplied region based
* on the final counts, initialize free lists for each block size,
* and otherwise finalize 'state' for use.
*/
p = buffer;
global->states = states;
global->num_pools = num_pools;
#if defined(DUK_USE_HEAPPTR16)
/* Register global base value for pointer compression, assumes
* a single active pool -4 allows a single subtract to be used and
* still ensures no non-NULL pointer encodes to zero.
*/
duk_alloc_pool_ptrcomp_base = (void *) (p - 4);
#endif
for (i = 0; i < num_pools; i++) {
n = states[i].count;
if (n > 0) {
states[i].first = (duk_pool_free *) p;
for (j = 0; j < n; j++) {
char *p_next = p + states[i].size;
((duk_pool_free *) p)->next =
(j == n - 1) ? (duk_pool_free *) NULL : (duk_pool_free *) p_next;
p = p_next;
}
} else {
states[i].first = (duk_pool_free *) NULL;
}
states[i].alloc_end = p; /* All members of 'state' now initialized. */
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_alloc_pool_init: block size %5ld, count %5ld, %8ld total bytes, "
"end %p\n",
(long) states[i].size, (long) states[i].count,
(long) states[i].size * (long) states[i].count,
(void *) states[i].alloc_end);
#endif
}
#if defined(DUK_ALLOC_POOL_ROMPTR_COMPRESSION)
/* ROM pointer compression precomputation. Assumes a single active
* pool.
*/
duk__alloc_pool_romptr_init();
#endif
/* Use 'global' as udata. */
return (void *) global;
}
/*
* Allocation providers
*/
void *duk_alloc_pool(void *udata, duk_size_t size) {
duk_pool_global *g = (duk_pool_global *) udata;
int i, n;
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_alloc_pool: %p %ld\n", udata, (long) size);
#endif
if (size == 0) {
return NULL;
}
for (i = 0, n = g->num_pools; i < n; i++) {
duk_pool_state *st = g->states + i;
if (size <= st->size && st->first != NULL) {
duk_pool_free *res = st->first;
st->first = res->next;
return (void *) res;
}
/* Allocation doesn't fit or no free entries, try to borrow
* from the next block size. There's no support for preventing
* a borrow at present.
*/
}
return NULL;
}
void *duk_realloc_pool(void *udata, void *ptr, duk_size_t size) {
duk_pool_global *g = (duk_pool_global *) udata;
int i, j, n;
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_realloc_pool: %p %p %ld\n", udata, ptr, (long) size);
#endif
if (ptr == NULL) {
return duk_alloc_pool(udata, size);
}
if (size == 0) {
duk_free_pool(udata, ptr);
return NULL;
}
/* Non-NULL pointers are necessarily from the pool so we should
* always be able to find the allocation.
*/
for (i = 0, n = g->num_pools; i < n; i++) {
duk_pool_state *st = g->states + i;
char *new_ptr;
/* Because 'ptr' is assumed to be in the pool and pools are
* allocated in sequence, it suffices to check for end pointer
* only.
*/
if ((char *) ptr >= st->alloc_end) {
continue;
}
if (size <= st->size) {
/* Allocation still fits existing allocation. Check if
* we can shrink the allocation to a smaller block size
* (smallest possible).
*/
for (j = 0; j < i; j++) {
duk_pool_state *st2 = g->states + j;
if (size <= st2->size && st2->first != NULL) {
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_realloc_pool: shrink, block size %ld -> %ld\n",
(long) st->size, (long) st2->size);
#endif
new_ptr = (char *) st2->first;
st2->first = ((duk_pool_free *) new_ptr)->next;
memcpy((void *) new_ptr, (const void *) ptr, (size_t) size);
((duk_pool_free *) ptr)->next = st->first;
st->first = (duk_pool_free *) ptr;
return (void *) new_ptr;
}
}
/* Failed to shrink; return existing pointer. */
return ptr;
}
/* Find first free larger block. */
for (j = i + 1; j < n; j++) {
duk_pool_state *st2 = g->states + j;
if (size <= st2->size && st2->first != NULL) {
new_ptr = (char *) st2->first;
st2->first = ((duk_pool_free *) new_ptr)->next;
memcpy((void *) new_ptr, (const void *) ptr, (size_t) st->size);
((duk_pool_free *) ptr)->next = st->first;
st->first = (duk_pool_free *) ptr;
return (void *) new_ptr;
}
}
/* Failed to resize. */
return NULL;
}
/* We should never be here because 'ptr' should be a valid pool
* entry and thus always found above.
*/
return NULL;
}
void duk_free_pool(void *udata, void *ptr) {
duk_pool_global *g = (duk_pool_global *) udata;
int i, n;
#if defined(DUK_ALLOC_POOL_DEBUG)
duk__alloc_pool_dprintf("duk_free_pool: %p %p\n", udata, ptr);
#endif
if (ptr == NULL) {
return;
}
for (i = 0, n = g->num_pools; i < n; i++) {
duk_pool_state *st = g->states + i;
/* Enough to check end address only. */
if ((char *) ptr >= st->alloc_end) {
continue;
}
((duk_pool_free *) ptr)->next = st->first;
st->first = (duk_pool_free *) ptr;
return;
}
/* We should never be here because 'ptr' should be a valid pool
* entry and thus always found above.
*/
}
/*
* Pointer compression
*/
#if defined(DUK_ALLOC_POOL_ROMPTR_COMPRESSION)
static void duk__alloc_pool_romptr_init(void) {
/* Scan ROM pointer range for faster detection of "is 'p' a ROM pointer"
* later on.
*/
const void * const * ptrs = (const void * const *) duk_rom_compressed_pointers;
duk_alloc_pool_romptr_low = duk_alloc_pool_romptr_high = (const void *) *ptrs;
while (*ptrs) {
if (*ptrs > duk_alloc_pool_romptr_high) {
duk_alloc_pool_romptr_high = (const void *) *ptrs;
}
if (*ptrs < duk_alloc_pool_romptr_low) {
duk_alloc_pool_romptr_low = (const void *) *ptrs;
}
ptrs++;
}
}
#endif
/* Encode/decode functions are defined in the header to allow inlining. */
#if defined(DUK_ALLOC_POOL_ROMPTR_COMPRESSION)
duk_uint16_t duk_alloc_pool_enc16_rom(void *ptr) {
/* The if-condition should be the fastest possible check
* for "is 'ptr' in ROM?". If pointer is in ROM, we'd like
* to compress it quickly. Here we just scan a ~1K array
* which is very bad for performance.
*/
const void * const * ptrs = duk_rom_compressed_pointers;
while (*ptrs) {
if (*ptrs == ptr) {
return DUK_ALLOC_POOL_ROMPTR_FIRST + (duk_uint16_t) (ptrs - duk_rom_compressed_pointers);
}
ptrs++;
}
/* We should really never be here: Duktape should only be
* compressing pointers which are in the ROM compressed
* pointers list, which are known at 'make dist' time.
* We go on, causing a pointer compression error.
*/
return 0;
}
#endif
| 27.689744
| 100
| 0.634411
|
7170fc4d75c999eb97c3bf8678260010e8b0e782
| 8,629
|
rs
|
Rust
|
src/lib.rs
|
mmrath/serde_type_name
|
c9409d40ed45c168676d09408670fa7e470b2476
|
[
"Apache-2.0",
"MIT"
] | 4
|
2020-12-08T09:52:02.000Z
|
2022-03-30T04:11:40.000Z
|
src/lib.rs
|
mmrath/serde_type_name
|
c9409d40ed45c168676d09408670fa7e470b2476
|
[
"Apache-2.0",
"MIT"
] | 1
|
2019-02-23T22:08:41.000Z
|
2019-02-24T11:27:44.000Z
|
src/lib.rs
|
mmrath/serde_type_name
|
c9409d40ed45c168676d09408670fa7e470b2476
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
extern crate serde;
#[cfg(test)]
#[macro_use]
extern crate serde_derive;
use serde::ser::{
self, Impossible, Serialize, SerializeStruct, SerializeStructVariant, SerializeTupleStruct,
Serializer,
};
use std::fmt::{self, Display};
// This code is based on
// https://stackoverflow.com/questions/46612327/using-serde-to-get-a-types-name-as-string-when-the-type-is-only-serialize
///
/// ```
/// extern crate serde_type_name;
/// extern crate serde;
/// #[macro_use]
/// extern crate serde_derive;
///
/// use serde::Serialize;
/// use serde_type_name::type_name;
///
/// #[derive(Serialize)]
/// enum SimpleEnum {
/// A(i32),
/// B,
/// C { code: i32 },
/// }
///
/// #[derive(Serialize)]
/// struct SimpleStruct {
/// pub a: i32,
/// }
///
/// #[derive(Serialize)]
/// struct GenericStruct<T: Serialize> {
/// pub inner: T,
/// }
///
/// fn main() {
/// assert_eq!("SimpleEnum", type_name(&SimpleEnum::A(10)).unwrap());
/// assert_eq!("SimpleEnum", type_name(&SimpleEnum::B).unwrap());
/// assert_eq!("SimpleEnum", type_name(&SimpleEnum::C { code: 32 }).unwrap());
///
/// assert_eq!("SimpleStruct", type_name(&SimpleStruct { a: 20 }).unwrap());
///
/// let gs = GenericStruct { inner: 32 };
/// assert_eq!("GenericStruct", type_name(&gs).unwrap());
///
/// let gs_enum = GenericStruct {
/// inner: SimpleEnum::B,
/// };
/// assert_eq!("GenericStruct", type_name(&gs_enum).unwrap());
/// assert_eq!("SimpleEnum", type_name(&gs_enum.inner).unwrap());
/// }
/// ```
///
#[derive(Debug)]
pub struct NotStruct;
type Result<T> = std::result::Result<T, NotStruct>;
impl std::error::Error for NotStruct {
fn description(&self) -> &str {
"not struct"
}
}
impl Display for NotStruct {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", "not struct")
}
}
impl ser::Error for NotStruct {
fn custom<T: Display>(_msg: T) -> Self {
NotStruct
}
}
pub fn type_name<T: Serialize>(t: &T) -> Result<&'static str> {
struct TypeName;
impl Serializer for TypeName {
type Ok = &'static str;
type Error = NotStruct;
type SerializeSeq = Impossible<Self::Ok, Self::Error>;
type SerializeTuple = Impossible<Self::Ok, Self::Error>;
type SerializeTupleStruct = Struct;
type SerializeTupleVariant = Impossible<Self::Ok, Self::Error>;
type SerializeMap = Impossible<Self::Ok, Self::Error>;
type SerializeStruct = Struct;
type SerializeStructVariant = Struct;
fn serialize_bool(self, _v: bool) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_i8(self, _v: i8) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_i16(self, _v: i16) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_i32(self, _v: i32) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_i64(self, _v: i64) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_u8(self, _v: u8) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_u16(self, _v: u16) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_u32(self, _v: u32) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_u64(self, _v: u64) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_f32(self, _v: f32) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_f64(self, _v: f64) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_char(self, _v: char) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_str(self, _v: &str) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_bytes(self, _v: &[u8]) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_none(self) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_some<T: ?Sized + Serialize>(self, _value: &T) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_unit(self) -> Result<Self::Ok> {
Err(NotStruct)
}
fn serialize_unit_struct(self, name: &'static str) -> Result<Self::Ok> {
Ok(name)
}
fn serialize_unit_variant(
self,
name: &'static str,
_variant_index: u32,
_variant: &'static str,
) -> Result<Self::Ok> {
Ok(name)
}
fn serialize_newtype_struct<T: ?Sized + Serialize>(
self,
name: &'static str,
_value: &T,
) -> Result<Self::Ok> {
Ok(name)
}
fn serialize_newtype_variant<T: ?Sized + Serialize>(
self,
name: &'static str,
_variant_index: u32,
_variant: &'static str,
_value: &T,
) -> Result<Self::Ok> {
Ok(name)
}
fn serialize_seq(self, _len: Option<usize>) -> Result<Self::SerializeSeq> {
Err(NotStruct)
}
fn serialize_tuple(self, _len: usize) -> Result<Self::SerializeTuple> {
Err(NotStruct)
}
fn serialize_tuple_struct(
self,
name: &'static str,
_len: usize,
) -> Result<Self::SerializeTupleStruct> {
Ok(Struct(name))
}
fn serialize_tuple_variant(
self,
_name: &'static str,
_variant_index: u32,
_variant: &'static str,
_len: usize,
) -> Result<Self::SerializeTupleVariant> {
Err(NotStruct)
}
fn serialize_map(self, _len: Option<usize>) -> Result<Self::SerializeMap> {
Err(NotStruct)
}
fn serialize_struct(
self,
name: &'static str,
_len: usize,
) -> Result<Self::SerializeStruct> {
Ok(Struct(name))
}
fn serialize_struct_variant(
self,
name: &'static str,
_variant_index: u32,
_variant: &'static str,
_len: usize,
) -> Result<Self::SerializeStructVariant> {
Ok(Struct(name))
}
}
struct Struct(&'static str);
impl SerializeStruct for Struct {
type Ok = &'static str;
type Error = NotStruct;
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
_key: &'static str,
_value: &T,
) -> Result<()> {
Ok(())
}
fn end(self) -> Result<Self::Ok> {
Ok(self.0)
}
}
impl SerializeTupleStruct for Struct {
type Ok = &'static str;
type Error = NotStruct;
fn serialize_field<T: ?Sized + Serialize>(&mut self, _value: &T) -> Result<()> {
Ok(())
}
fn end(self) -> Result<Self::Ok> {
Ok(self.0)
}
}
impl SerializeStructVariant for Struct {
type Ok = &'static str;
type Error = NotStruct;
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
_key: &'static str,
_value: &T,
) -> Result<()> {
Ok(())
}
fn end(self) -> Result<Self::Ok> {
Ok(self.0)
}
}
t.serialize(TypeName)
}
#[cfg(test)]
mod tests {
use serde::Serialize;
#[derive(Serialize)]
enum SimpleEnum {
A(i32),
B,
C { code: i32 },
}
#[derive(Serialize)]
struct SimpleStruct {
pub a: i32,
}
#[derive(Serialize)]
struct GenericStruct<T: Serialize> {
pub inner: T,
}
#[test]
fn test_enum() {
assert_eq!("SimpleEnum", super::type_name(&SimpleEnum::A(10)).unwrap());
assert_eq!("SimpleEnum", super::type_name(&SimpleEnum::B).unwrap());
assert_eq!(
"SimpleEnum",
super::type_name(&SimpleEnum::C { code: 32 }).unwrap()
);
}
#[test]
fn test_struct() {
assert_eq!(
"SimpleStruct",
super::type_name(&SimpleStruct { a: 20 }).unwrap()
);
let gs = GenericStruct { inner: 32 };
assert_eq!("GenericStruct", super::type_name(&gs).unwrap());
let gs_enum = GenericStruct {
inner: SimpleEnum::B,
};
assert_eq!("GenericStruct", super::type_name(&gs_enum).unwrap());
assert_eq!("SimpleEnum", super::type_name(&gs_enum.inner).unwrap());
}
}
| 28.016234
| 121
| 0.521961
|
43ce87e9d3894f0c36c3d16dcbb9abd5530dce4e
| 327
|
ts
|
TypeScript
|
packages/components/icon/definitions/stopFilled.ts
|
clfeng/idux
|
31a941b5137792ed4f7de0e83bb87dfba8c27341
|
[
"MIT"
] | 1
|
2021-01-08T03:57:30.000Z
|
2021-01-08T03:57:30.000Z
|
packages/components/icon/definitions/stopFilled.ts
|
clfeng/idux
|
31a941b5137792ed4f7de0e83bb87dfba8c27341
|
[
"MIT"
] | null | null | null |
packages/components/icon/definitions/stopFilled.ts
|
clfeng/idux
|
31a941b5137792ed4f7de0e83bb87dfba8c27341
|
[
"MIT"
] | 1
|
2021-01-11T09:35:29.000Z
|
2021-01-11T09:35:29.000Z
|
export const StopFilled = {
name: 'stop-filled',
svgString: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm234.8 736.5L223.5 277.2c16-19.7 34-37.7 53.7-53.7l523.3 523.3c-16 19.6-34 37.7-53.7 53.7z"/></svg>',
}
| 65.4
| 273
| 0.678899
|
f7ba51513fb96cd126e66143cba34cb1609c0803
| 923
|
lua
|
Lua
|
lua/wetgenes/www/gae/users.lua
|
xriss/pagecake
|
a8b49a0b49c16c9cf0450830cd26b811863f6ab8
|
[
"Unlicense"
] | null | null | null |
lua/wetgenes/www/gae/users.lua
|
xriss/pagecake
|
a8b49a0b49c16c9cf0450830cd26b811863f6ab8
|
[
"Unlicense"
] | null | null | null |
lua/wetgenes/www/gae/users.lua
|
xriss/pagecake
|
a8b49a0b49c16c9cf0450830cd26b811863f6ab8
|
[
"Unlicense"
] | null | null | null |
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require
local core=require("wetgenes.www.gae.users.core")
module(...)
local _M=require(...)
package.loaded["wetgenes.www.any.users"]=_M
function login_url(a)
return core.login_url(a)
end
function logout_url(a)
return core.logout_url(a)
end
function get_google_user()
return core.get_google_user()
end
| 32.964286
| 524
| 0.812568
|
14427f977fe649cd2367d618d3f34af24445cd39
| 1,754
|
tsx
|
TypeScript
|
ui/src/containers/LoginPage/LoginPage.tsx
|
adosia/spaceprinterapi
|
70757c6308de0286c495089b61482f89170bb5a8
|
[
"MIT"
] | null | null | null |
ui/src/containers/LoginPage/LoginPage.tsx
|
adosia/spaceprinterapi
|
70757c6308de0286c495089b61482f89170bb5a8
|
[
"MIT"
] | null | null | null |
ui/src/containers/LoginPage/LoginPage.tsx
|
adosia/spaceprinterapi
|
70757c6308de0286c495089b61482f89170bb5a8
|
[
"MIT"
] | 1
|
2022-03-19T22:05:29.000Z
|
2022-03-19T22:05:29.000Z
|
import React from "react";
import {MuiThemeProvider, CssBaseline, makeStyles, createStyles, Theme, ButtonBase} from "@material-ui/core"; //tslint:disable-line
import useDarkMode from "use-dark-mode";
import { lightTheme, darkTheme } from "../../themes/theme";
import { Login } from "../../components/Login/Login";
import { SessionSelect } from "../../components/Login/SessionSelect";
import { BlockfrostAPIKey } from "../../components/Blockfrost/BlockfrostAPIKey";
import header from "../../assets/spaceprinter_logo_V1.png"
import "./LoginPage.css";
const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
position: "absolute",
top: "50%",
left: "50%",
marginRight: "-50%",
transform: "translate(-50%, -50%)",
textAlign: "center"
}
}),
);
const LoginPage: React.FC = () => {
const darkMode = useDarkMode();
const theme = darkMode.value ? darkTheme : lightTheme;
const classes = useStyles();
return (
<MuiThemeProvider theme={theme}>
<CssBaseline />
<div className={classes.root}>
<div style={{textAlign: "center"}}>
<img src={header} width="500" />
</div>
<div>
<Login />
</div>
<div>
<SessionSelect />
</div>
<div>
<BlockfrostAPIKey />
</div>
<div>
FireFox User: If you can't login when using https://. <br />
Please click the link below and accept self signed certificate.<br />
<ButtonBase onClick={()=>window.location.assign("https://" + window.location.hostname + ":4442")}>https://{window.location.hostname}:4442</ButtonBase>
</div>
</div>
</MuiThemeProvider >
);
};
export default LoginPage;
| 31.321429
| 160
| 0.603763
|
14afe57553ebea7de10320c12095acc8ff276b84
| 642
|
ts
|
TypeScript
|
types/index.d.ts
|
scorpionslh/vue-form-wizard
|
aaf247d26cd81d3c8b254e983638671948dbf32c
|
[
"MIT"
] | 625
|
2018-07-23T08:57:26.000Z
|
2022-03-31T16:36:54.000Z
|
types/index.d.ts
|
scorpionslh/vue-form-wizard
|
aaf247d26cd81d3c8b254e983638671948dbf32c
|
[
"MIT"
] | 220
|
2017-04-21T21:03:39.000Z
|
2018-07-13T20:44:15.000Z
|
types/index.d.ts
|
scorpionslh/vue-form-wizard
|
aaf247d26cd81d3c8b254e983638671948dbf32c
|
[
"MIT"
] | 188
|
2018-07-25T09:06:02.000Z
|
2022-03-24T17:09:37.000Z
|
import Vue from 'vue'
import { PluginFunction } from "vue";
export function install (vue: typeof Vue): void
export {
Wizard as FormWizard,
ShapeType,
LayoutType,
StepSizeType
} from "./FormWizard"
export { Tab as TabContent } from "./TabContent"
export { Step as WizardStep } from "./WizardStep"
import { Wizard as FormWizard } from "./FormWizard"
import { Tab as TabContent } from "./TabContent"
import { Step as WizardStep } from "./WizardStep"
declare class VueFormWizard {
static install: PluginFunction<never>;
FormWizard: FormWizard;
TabContent: TabContent;
WizardStep: WizardStep;
}
export default VueFormWizard;
| 22.928571
| 51
| 0.735202
|
f5cba75e04235dd6b22900b24378f78f147cece1
| 11,071
|
css
|
CSS
|
static/theme.css
|
mmat11/tube
|
2dd3b41b496107dde835be285a8885da563f2382
|
[
"MIT"
] | null | null | null |
static/theme.css
|
mmat11/tube
|
2dd3b41b496107dde835be285a8885da563f2382
|
[
"MIT"
] | null | null | null |
static/theme.css
|
mmat11/tube
|
2dd3b41b496107dde835be285a8885da563f2382
|
[
"MIT"
] | null | null | null |
:root {
--main-title-color: #1d9100;
--link-hover-color: #1d9100;
}
/* normalize */
* {
font-weight: inherit;
font-size: inherit;
border: none;
outline: none;
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
color: inherit;
text-decoration: none;
}
body {
font-family: Arial, sans-serif;
font-size: 16px;
font-weight: 400;
color: #c5c8c6;
background: #1e1e1e;
padding-bottom: 10px;
}
nav {
z-index: 100;
color: var(--main-title-color);
text-shadow: -2px 2px 3px rgba(0, 0, 0, 0.7);
font-weight: 700;
font-size: 20px;
text-indent: 20px;
line-height: 50px;
width: 100%;
height: 50px;
background: #171717;
border-bottom: 1px solid #272727;
position: relative;
overflow: hidden;
}
nav a.centered {
float: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
main {
width: 1156px;
margin:0 auto;
margin-top: 15px;
white-space: nowrap;
}
#player {
width: 854px;
display: inline-block;
vertical-align: top;
}
/* 480p */
#video {
width: 100%;
height: 480px;
background: #000;
box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.2);
}
#player > h1 {
margin-top: 10px;
}
#player > h2 {
margin-top: 5px;
color: #676867;
font-size: 90%;
}
#player > p {
margin-top: 10px;
font-size: 80%;
width: 100%;
white-space: normal;
}
#playlist {
font-size: 13px;
display: inline-block;
margin-left: 10px;
width: 290px;
height: 607px;;
background: #282a2e;
box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.2);
overflow-x: hidden;
overflow-y: auto;
}
#playlist > a {
display: block;
padding: 10px;
position: relative;
min-height: 54px;
}
#playlist > a:hover {
color: var(--link-hover-color);
}
#playlist > a.playing {
background: #383a3e;
}
#playlist > a + a {
border-top: 1px solid #1e1e1e;
}
#playlist > a > img {
width: 70px;
}
#playlist > a > div {
position: absolute;
top: 10px;
right: 10px;
bottom: 10px;
left: 90px;
}
#playlist > a > div > h1 {
white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
#playlist > a > div > h2 {
margin-top: 5px;
color: #676867;
font-size: 90%;
}
/* 360p */
@media only screen and (max-width: 1180px) {
main {
width: 940px;
}
#player {
width: 640px;
}
#video {
height: 360px;
}
}
/* 240p */
@media only screen and (max-width: 965px) {
main {
width: 726px;
}
#player {
width: 426px;
}
#video {
height: 240px;
}
}
/* 240p with shifted playlist */
@media only screen and (max-width: 750px) {
main {
width: 426px;
}
#player {
width: 426px;
}
#video {
height: 240px;
}
#playlist {
width: 426px;
margin-top: 10px;
margin-left: 0;
display: block;
}
}
/* responsive width with shifted playlist */
@media only screen and (max-width: 440px) {
main {
width: 100%;
}
#player {
width: 100%;
}
#video {
height: auto;
}
#playlist {
width: 100%;
margin-top: 10px;
margin-left: 0;
display: block;
}
}
/* Upload */
.upload_form_cont {
background: -moz-linear-gradient(#ffffff, #f2f2f2);
background: -ms-linear-gradient(#ffffff, #f2f2f2);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #f2f2f2));
background: -webkit-linear-gradient(#ffffff, #f2f2f2);
background: -o-linear-gradient(#ffffff, #f2f2f2);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f2f2f2');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f2f2f2')";
background: linear-gradient(#ffffff, #f2f2f2);
color:#000;
overflow:hidden;
}
#upload_form {
float:left;
padding:20px;
width:700px;
}
#upload_form > div {
margin-bottom:10px;
}
#speed,#remaining {
float:left;
width:100px;
}
#b_transfered {
float:right;
text-align:right;
}
.clear_both {
clear:both;
}
textarea {
border-radius:10px;
-moz-border-radius:10px;
-ms-border-radius:10px;
-o-border-radius:10px;
-webkit-border-radius:10px;
border:1px solid #ccc;
font-size:14pt;
padding:5px 10px;
}
input {
border-radius:10px;
-moz-border-radius:10px;
-ms-border-radius:10px;
-o-border-radius:10px;
-webkit-border-radius:10px;
border:1px solid #ccc;
font-size:14pt;
padding:5px 10px;
}
input[type=button] {
background: -moz-linear-gradient(#ffffff, #dfdfdf);
background: -ms-linear-gradient(#ffffff, #dfdfdf);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #dfdfdf));
background: -webkit-linear-gradient(#ffffff, #dfdfdf);
background: -o-linear-gradient(#ffffff, #dfdfdf);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf')";
background: linear-gradient(#ffffff, #dfdfdf);
}
#video_file {
width:400px;
}
#progress_info {
font-size:10pt;
}
#fileinfo,#error,#error2,#abort,#warnsize {
color:#aaa;
display:none;
font-size:10pt;
font-style:italic;
margin-top:10px;
}
#progress {
border:1px solid #ccc;
display:none;
float:left;
height:14px;
border-radius:10px;
-moz-border-radius:10px;
-ms-border-radius:10px;
-o-border-radius:10px;
-webkit-border-radius:10px;
background: -moz-linear-gradient(#66cc00, #4b9500);
background: -ms-linear-gradient(#66cc00, #4b9500);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #66cc00), color-stop(100%, #4b9500));
background: -webkit-linear-gradient(#66cc00, #4b9500);
background: -o-linear-gradient(#66cc00, #4b9500);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#66cc00', endColorstr='#4b9500');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#66cc00', endColorstr='#4b9500')";
background: linear-gradient(#66cc00, #4b9500);
}
#progress_percent {
float:right;
}
#upload_response {
margin-top: 10px;
padding: 20px;
overflow: hidden;
display: none;
border: 1px solid #ccc;
border-radius:10px;
-moz-border-radius:10px;
-ms-border-radius:10px;
-o-border-radius:10px;
-webkit-border-radius:10px;
box-shadow: 0 0 5px #ccc;
background: -moz-linear-gradient(#bbb, #eee);
background: -ms-linear-gradient(#bbb, #eee);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #bbb), color-stop(100%, #eee));
background: -webkit-linear-gradient(#bbb, #eee);
background: -o-linear-gradient(#bbb, #eee);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bbb', endColorstr='#eee');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#bbb', endColorstr='#eee')";
background: linear-gradient(#000000, #1e1e1e);
}
.fileContainer {
overflow: hidden;
position: relative;
}
label.filebutton {
width:120px;
height:40px;
overflow:hidden;
position:relative;
background:linear-gradient(#000000, #1e1e1e);
box-shadow: 0 0 5px #ccc;
}
label span input {
z-index: 999;
line-height: 0;
font-size: 50px;
position: absolute;
top: -2px;
left: -700px;
opacity: 0;
filter: alpha(opacity = 0);
-ms-filter: "alpha(opacity=0)";
cursor: pointer;
_cursor: hand;
margin: 0;
padding:0;
}
.lds-ellipsis {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ellipsis div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #fff;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
.nav ul {
list-style: none;
background-color: #444;
text-align: center;
padding: 0;
margin: 0;
}
.nav li {
font-family: 'Oswald', sans-serif;
font-size: 1.2em;
line-height: 40px;
height: 40px;
border-bottom: 1px solid #888;
}
.nav a {
text-decoration: none;
color: #fff;
display: block;
transition: .3s background-color;
}
.nav a:hover {
background-color: #005f5f;
}
.nav a.active {
background-color: #fff;
color: #444;
cursor: default;
}
@media screen and (min-width: 600px) {
.nav li {
width: 120px;
border-bottom: none;
height: 50px;
line-height: 50px;
font-size: 1.4em;
}
/* Option 1 - Display Inline */
.nav li {
display: inline-block;
margin-right: -4px;
}
/* Options 2 - Float
.nav li {
float: left;
}
.nav ul {
overflow: auto;
width: 600px;
margin: 0 auto;
}
.nav {
background-color: #444;
}
*/
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background: #1e1e1e;
color: white;
text-align: center;
}
footer p {
font-size: 8px;
}
footer p a {
color: #fff;
}
footer p a {
text-decoration: underline;
color: #fff;
transition: .3s background-color;
}
footer p a:hover {
background-color: #005f5f;
}
/* Add a black background color to the top navigation */
.topnav {
background-color: #333;
overflow: hidden;
}
/* Style the links inside the navigation bar */
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:not(:first-child) {
display: none;
}
/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Add an active class to highlight the current page */
.topnav a.active {
background-color: #4CAF50;
color: white;
}
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
float: right;
display: block;
}
.topnav.responsive {
position: relative;
}
.topnav.responsive a.icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
| 19.629433
| 116
| 0.620811
|
e6a1f8ab0465744e6d4be65ffde3536787c4e998
| 271
|
c
|
C
|
Example/build/Pods.build/Debug-iphonesimulator/PKHUD.build/DerivedSources/PKHUD_vers.c
|
MatiasEz/EmpleadosSL
|
74a36bc81e13ef70ec33acc62b9ac407fea0e313
|
[
"MIT"
] | null | null | null |
Example/build/Pods.build/Debug-iphonesimulator/PKHUD.build/DerivedSources/PKHUD_vers.c
|
MatiasEz/EmpleadosSL
|
74a36bc81e13ef70ec33acc62b9ac407fea0e313
|
[
"MIT"
] | null | null | null |
Example/build/Pods.build/Debug-iphonesimulator/PKHUD.build/DerivedSources/PKHUD_vers.c
|
MatiasEz/EmpleadosSL
|
74a36bc81e13ef70ec33acc62b9ac407fea0e313
|
[
"MIT"
] | null | null | null |
extern const unsigned char PKHUDVersionString[];
extern const double PKHUDVersionNumber;
const unsigned char PKHUDVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:PKHUD PROJECT:Pods-1" "\n";
const double PKHUDVersionNumber __attribute__ ((used)) = (double)1.;
| 45.166667
| 108
| 0.760148
|
3f42900adc7300970cfe389c30775dd8e4ce38b4
| 707
|
php
|
PHP
|
app/database/migrations/2014_12_11_202924_alter-locations-custom_website.php
|
adalwin-hofmann/CouponOpering
|
9d8d6a520f091d5cf43e286c0372d73b70769513
|
[
"MIT"
] | null | null | null |
app/database/migrations/2014_12_11_202924_alter-locations-custom_website.php
|
adalwin-hofmann/CouponOpering
|
9d8d6a520f091d5cf43e286c0372d73b70769513
|
[
"MIT"
] | null | null | null |
app/database/migrations/2014_12_11_202924_alter-locations-custom_website.php
|
adalwin-hofmann/CouponOpering
|
9d8d6a520f091d5cf43e286c0372d73b70769513
|
[
"MIT"
] | null | null | null |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterLocationsCustomWebsite extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('locations', function($table)
{
$table->string('custom_website');
$table->string('custom_website_text');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('locations', function($table)
{
$table->dropColumn('custom_website');
$table->dropColumn('custom_website_text');
});
}
}
| 19.108108
| 54
| 0.567185
|
c57060dcb2037a8b00348cb3b082a7f7fd3c153c
| 2,594
|
css
|
CSS
|
src/components/About/About.css
|
RumenaStaneva/Girls-in-tech
|
2cdcf5fdec3d599144afa502284a39148c984941
|
[
"MIT"
] | null | null | null |
src/components/About/About.css
|
RumenaStaneva/Girls-in-tech
|
2cdcf5fdec3d599144afa502284a39148c984941
|
[
"MIT"
] | null | null | null |
src/components/About/About.css
|
RumenaStaneva/Girls-in-tech
|
2cdcf5fdec3d599144afa502284a39148c984941
|
[
"MIT"
] | null | null | null |
.section-about {
padding: 84px 0;
}
.section-about .section__head {
margin-bottom: 104px;
}
.section-about .section__inner {
background-color: #fff;
padding: 99px 0;
}
.section-about .section__title {
border-bottom: 1px solid #000;
text-align: center;
}
.section-about .section__title h2 {
font-weight: 500;
font-size: 51px;
line-height: 1.21;
margin-bottom: 51px;
}
.section-about .section__image {
border-bottom: 1px solid #000000;
display: flex;
justify-content: center;
}
.section-about .section__image img {
text-align: center;
width: 405px;
margin-top: -2px;
}
.section-about .section__body {
margin-bottom: 124px;
}
.section-about .section__actions {
text-align: center;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
padding: 33px 0;
}
.section-about .section__actions p {
font-weight: 300;
font-size: 35px;
line-height: 1.23;
}
.section-about .section__actions a {
font-weight: 500;
}
.section-about .section__actions a:hover {
text-decoration: none;
}
.message {
padding: 72px 0;
text-align: center;
position: relative;
}
.message .message__title {
font-weight: 500;
font-size: 37px;
line-height: 1.22;
}
.message .message__entry {
font-weight: 300;
font-size: 21px;
line-height: 1.24;
}
.message .message__content {
position: relative;
z-index: 2;
padding: 58px 71px 74px;
background-color: #FFECEC;
max-width: 620px;
width: 100%;
margin-left: 70px;
}
.message .message__image {
position: absolute;
right: 70px;
top: 50%;
transform: translateY(-50%);
z-index: 1;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
width: 457px;
}
.message--reversed .message__image {
left: 0;
right: auto;
}
.message--reversed .message__content {
margin-left: auto;
}
.section__partner {
display: flex;
margin: 0px;
padding: 20px;
justify-content: center;
align-items: center;
}
.section__title {
padding: 20px;
margin: 50px;
}
.partner {
margin: 0 90px;
}
.partner__name {
text-align: center;
padding-bottom: 20px;
}
.partner__image {
width: 250px;
height: 250px;
border-radius: 50%;
transition: transform .3s;
}
.partner__image:before {
position: absolute;
content: '';
left: 0;
top: 0;
width: 100%;
height: 100%;
transition: background-color .3s;
}
.partner__image:hover {
transform: scale(1.08);
}
| 16.735484
| 42
| 0.635698
|
414988f8a46c3029b7ab21a694441a3b23ffa466
| 283
|
lua
|
Lua
|
game/dota_addons/legion_td/scripts/vscripts/abilities/damage/modifier_attack_pierce_lua.lua
|
VicFrank/LegionTD-Reborn
|
e9e5492ec584699e9c2a7e9a7d00eb235e868bb8
|
[
"MIT"
] | 15
|
2018-02-28T08:45:06.000Z
|
2022-03-19T23:47:10.000Z
|
game/dota_addons/legion_td/scripts/vscripts/abilities/damage/modifier_attack_pierce_lua.lua
|
VicFrank/LegionTD-Reborn
|
e9e5492ec584699e9c2a7e9a7d00eb235e868bb8
|
[
"MIT"
] | 16
|
2018-06-09T14:00:26.000Z
|
2020-01-25T20:17:29.000Z
|
game/dota_addons/legion_td/scripts/vscripts/abilities/damage/modifier_attack_pierce_lua.lua
|
VicFrank/LegionTD-Reborn
|
e9e5492ec584699e9c2a7e9a7d00eb235e868bb8
|
[
"MIT"
] | 44
|
2018-01-13T15:01:36.000Z
|
2022-03-24T04:14:55.000Z
|
modifier_attack_pierce_lua = class({})
--------------------------------------------------------------------------------
function modifier_attack_pierce_lua:GetTexture()
return "attack_pierce"
end
--------------------------------------------------------------------------------
| 31.444444
| 80
| 0.342756
|
6a8354341972efba33e0ed6ee0167ffd1c6c4454
| 5,510
|
dart
|
Dart
|
mobx/test/observe_test.dart
|
madewithfelt/mobx.dart
|
4caaf0a0b42f06da9d6db61be71883587a695579
|
[
"MIT"
] | 1
|
2021-03-01T07:28:17.000Z
|
2021-03-01T07:28:17.000Z
|
mobx/test/observe_test.dart
|
madewithfelt/mobx.dart
|
4caaf0a0b42f06da9d6db61be71883587a695579
|
[
"MIT"
] | null | null | null |
mobx/test/observe_test.dart
|
madewithfelt/mobx.dart
|
4caaf0a0b42f06da9d6db61be71883587a695579
|
[
"MIT"
] | 1
|
2020-05-02T15:30:53.000Z
|
2020-05-02T15:30:53.000Z
|
import 'package:mobx/mobx.dart';
import 'package:test/test.dart';
import 'util.dart';
void main() {
turnOffWritePolicy();
group('observe', () {
test('works', () {
final x = Observable(10);
var executed = false;
final dispose = x.observe((change) {
expect(change.newValue, equals(10));
expect(change.oldValue, isNull);
executed = true;
}, fireImmediately: true);
expect(executed, isTrue);
dispose();
});
test('fires when changed', () {
final x = Observable(10);
var executed = false;
final dispose = x.observe((change) {
expect(change.newValue, equals(100));
expect(change.oldValue, 10);
executed = true;
});
expect(executed, isFalse);
x.value = 100;
expect(executed, isTrue);
dispose();
});
group('equality override', () {
test('yields a new value', () {
final x = Observable(
10,
equals: (_, __) => false,
);
var executed = false;
final dispose = x.observe((change) {
expect(change.newValue, equals(10));
executed = true;
}, fireImmediately: true);
expect(executed, isTrue);
executed = false;
x.value = 10;
expect(executed, isTrue);
executed = false;
x.value = 10;
expect(executed, isTrue);
executed = false;
dispose();
});
test('does not yield a new value', () {
final x = Observable(
10,
equals: (_, __) => true,
);
var executed = false;
final dispose = x.observe((change) {
expect(change.newValue, equals(10));
executed = true;
}, fireImmediately: true);
expect(executed, isTrue);
executed = false;
x.value = 10;
expect(executed, isFalse);
x.value = 11;
expect(executed, isFalse);
dispose();
});
});
test('can be disposed', () {
final x = Observable(10);
var executed = false;
final dispose = x.observe((change) {
executed = true;
}, fireImmediately: true);
expect(executed, isTrue);
dispose();
x.value = 100;
executed = false;
expect(executed, isFalse);
});
test('can have multiple listeners', () {
final x = Observable(10);
var executionCount = 0;
final dispose1 = x.observe((change) {
executionCount++;
});
final dispose2 = x.observe((change) {
executionCount++;
});
final dispose3 = x.observe((change) {
executionCount++;
});
x.value = 100;
expect(executionCount, 3);
dispose1();
dispose2();
dispose3();
x.value = 200;
expect(executionCount, 3); // no change here
});
});
group('onBecomeObserved / onBecomeUnobserved', () {
test('works for observables', () {
final x = Observable(10);
var executionCount = 0;
final d1 = x.onBecomeObserved(() {
executionCount++;
});
final d2 = x.onBecomeUnobserved(() {
executionCount++;
});
final d3 = autorun((_) {
x.value;
});
expect(executionCount, equals(1));
d3(); // dispose the autorun
expect(executionCount, equals(2));
d1();
d2();
});
test('works for computeds', () {
final x = Observable(10);
final x1 = Computed(() {
// ignore: unnecessary_statements
x.value + 1;
});
var executionCount = 0;
final d1 = x1.onBecomeObserved(() {
executionCount++;
});
final d2 = x1.onBecomeUnobserved(() {
executionCount++;
});
final d3 = autorun((_) {
x1.value;
});
expect(executionCount, equals(1));
d3(); // dispose the autorun
expect(executionCount, equals(2));
d1();
d2();
});
test('throws if null is passed', () {
final x = Observable(10);
expect(() {
x.onBecomeObserved(null);
}, throwsException);
expect(() {
x.onBecomeUnobserved(null);
}, throwsException);
});
test('multiple can be attached', () {
final x = Observable(10);
var observedCount = 0;
var unobservedCount = 0;
final disposers = <Function>[
x.onBecomeObserved(() {
observedCount++;
}),
x.onBecomeObserved(() {
observedCount++;
}),
x.onBecomeUnobserved(() {
unobservedCount++;
}),
x.onBecomeUnobserved(() {
unobservedCount++;
}),
];
final d = autorun((_) {
x.value;
});
expect(observedCount, equals(2));
d();
expect(unobservedCount, equals(2));
// ignore: avoid_function_literals_in_foreach_calls
disposers.forEach((f) => f());
});
test('fails for null handler', () {
final x = Observable(100);
var observeFailed = false;
var interceptFailed = false;
try {
x.observe(null);
// ignore: avoid_catching_errors
} on AssertionError catch (_) {
observeFailed = true;
}
expect(observeFailed, isTrue);
try {
x.intercept(null);
// ignore: avoid_catching_errors
} on AssertionError catch (_) {
interceptFailed = true;
}
expect(interceptFailed, isTrue);
});
});
}
| 20.559701
| 57
| 0.517967
|
1b73d9a0ef1bec7a14a2183c8c00833f4525a358
| 2,696
|
kt
|
Kotlin
|
app/src/main/java/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt
|
opensourcefuture/blocker
|
4163a04c00d49e107d7696974f54df5e15286155
|
[
"Apache-2.0"
] | null | null | null |
app/src/main/java/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt
|
opensourcefuture/blocker
|
4163a04c00d49e107d7696974f54df5e15286155
|
[
"Apache-2.0"
] | null | null | null |
app/src/main/java/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt
|
opensourcefuture/blocker
|
4163a04c00d49e107d7696974f54df5e15286155
|
[
"Apache-2.0"
] | null | null | null |
package com.merxury.blocker.ui.detail.component
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.elvishew.xlog.XLog
import com.merxury.blocker.databinding.ComponentItemBinding
class ComponentAdapter :
ListAdapter<ComponentData, ComponentAdapter.ComponentViewHolder>(DiffCallback()) {
private val logger = XLog.tag("ComponentAdapter")
var onSwitchClick: ((ComponentData, Boolean) -> Unit)? = null
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ComponentViewHolder {
val context = parent.context
val binding = ComponentItemBinding.inflate(LayoutInflater.from(context), parent, false)
return ComponentViewHolder(context, binding)
}
override fun onBindViewHolder(holder: ComponentViewHolder, position: Int) {
val component = currentList.getOrNull(position)
if (component == null) {
logger.e("Component info is null, position: $position")
return
}
holder.bind(component)
}
fun updateItem(component: ComponentData) {
val name = component.name
val index = currentList.indexOfFirst { it.name == name }
if (index == -1) {
logger.e("Can't find updated item in the list, name: $name")
return
}
notifyItemChanged(index)
}
private class DiffCallback : DiffUtil.ItemCallback<ComponentData>() {
override fun areItemsTheSame(oldItem: ComponentData, newItem: ComponentData): Boolean {
return oldItem.name == newItem.name
}
override fun areContentsTheSame(oldItem: ComponentData, newItem: ComponentData): Boolean {
return oldItem == newItem
}
}
inner class ComponentViewHolder(val context: Context, val binding: ComponentItemBinding) :
RecyclerView.ViewHolder(binding.root) {
fun bind(component: ComponentData) {
binding.componentName.text = component.simpleName
binding.componentPackageName.text = component.name
val isBlocked = component.ifwBlocked || component.pmBlocked
binding.componentSwitch.apply {
setOnCheckedChangeListener(null)
isChecked = !isBlocked
setOnCheckedChangeListener { _, isChecked ->
onSwitchClick?.invoke(component, isChecked)
}
}
binding.runningIndicator.isVisible = component.isRunning
}
}
}
| 38.514286
| 98
| 0.679525
|
c9ca9b3ba8756242882a68476ea361ea63f8689d
| 29,835
|
ts
|
TypeScript
|
test/axes/axisTests.ts
|
7eXx/plottable
|
6f94a4e13153a7123fd91a121dde334027ef1374
|
[
"MIT"
] | 2,942
|
2015-01-02T18:15:48.000Z
|
2022-03-27T06:56:57.000Z
|
test/axes/axisTests.ts
|
7eXx/plottable
|
6f94a4e13153a7123fd91a121dde334027ef1374
|
[
"MIT"
] | 1,813
|
2015-01-01T21:13:00.000Z
|
2022-03-16T13:31:36.000Z
|
test/axes/axisTests.ts
|
7eXx/plottable
|
6f94a4e13153a7123fd91a121dde334027ef1374
|
[
"MIT"
] | 271
|
2015-01-20T05:18:05.000Z
|
2022-02-10T18:19:50.000Z
|
import * as d3 from "d3";
import { assert } from "chai";
import * as Plottable from "../../src";
import * as TestMethods from "../testMethods";
describe("Axis", () => {
const horizontalOrientations: Plottable.AxisOrientation[] = ["top", "bottom"];
const verticalOrientations: Plottable.AxisOrientation[] = ["left", "right"];
const orientations = horizontalOrientations.concat(verticalOrientations);
const isHorizOrient = (orientation: Plottable.AxisOrientation) => horizontalOrientations.indexOf(orientation) > -1;
const numAttr = TestMethods.numAttr;
horizontalOrientations.forEach((horizontalOrientation) => {
const alignment = horizontalOrientation === "top" ? "bottom" : "top";
it(`defaults to a ${alignment} y alignment with orientation ${horizontalOrientation}`, () => {
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, horizontalOrientation);
assert.strictEqual(axis.yAlignment(), alignment, `y alignment for ${horizontalOrientation} is default ${alignment}`);
axis.destroy();
});
});
verticalOrientations.forEach((verticalOrientation) => {
const alignment = verticalOrientation === "left" ? "right" : "left";
it(`defaults to a ${alignment} x alignment with orientation ${verticalOrientation}`, () => {
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, verticalOrientation);
assert.strictEqual(axis.xAlignment(), alignment, `x alignment for ${verticalOrientation} is default ${alignment}`);
axis.destroy();
});
});
it("throws an error when setting an invalid orientation", () => {
const scale = new Plottable.Scales.Linear();
assert.throws(() => new Plottable.Axis(scale, "blargh" as any), "unsupported");
});
it("throws an error when setting a negative tickLabelPadding", () => {
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, "bottom");
assert.throws(() => axis.tickLabelPadding(-1), "must be positive");
axis.destroy();
});
it("throws an error when setting a negative margin", () => {
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, "right");
assert.throws(() => axis.margin(-1), "must be positive");
axis.destroy();
});
orientations.forEach((orientation) => {
it(`updates the layout when updating the margin after rendering for orientation ${orientation}`, () => {
const div = TestMethods.generateDiv();
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, orientation);
axis.renderTo(div);
const relevantDimensionF = () => isHorizOrient(orientation) ? axis.height() : axis.width();
let axisSize = axis.innerTickLength() + axis.margin();
assert.strictEqual(relevantDimensionF(), axisSize, "axis size is the tick length and the margin");
const newMargin = 20;
axis.margin(newMargin);
axisSize = axis.innerTickLength() + axis.margin();
assert.strictEqual(relevantDimensionF(), axisSize, "changing the margin size updates the size");
axis.destroy();
div.remove();
});
});
orientations.forEach((orientation) => {
it(`draws the baseline at the correct edge for ${orientation} orientation`, () => {
const div = TestMethods.generateDiv();
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, orientation);
axis.renderTo(div);
const baseline = axis.content().select(".baseline");
assert.isFalse(baseline.empty(), "baseline exists");
assert.strictEqual(baseline.attr("x1"), orientation !== "left" ? "0" : String(axis.width()), "x1");
assert.strictEqual(baseline.attr("x2"), orientation !== "right" ? String(axis.width()) : "0", "x2");
assert.strictEqual(baseline.attr("y1"), orientation !== "top" ? "0" : String(axis.height()), "y1");
assert.strictEqual(baseline.attr("y2"), orientation !== "bottom" ? String(axis.height()) : "0", "y2");
axis.destroy();
div.remove();
});
});
describe("setting the length of the tick marks", () => {
it("can set for inner", () => {
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, "bottom");
const tickLength = 10;
assert.strictEqual(axis.innerTickLength(tickLength), axis, "setting returns calling object");
assert.strictEqual(axis.innerTickLength(), tickLength, "retrieves set tick length");
assert.throws(() => axis.innerTickLength(-1), "must be positive");
axis.destroy();
});
it("can set for ends", () => {
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, "bottom");
const tickLength = 10;
assert.strictEqual(axis.endTickLength(tickLength), axis, "setting returns calling object");
assert.strictEqual(axis.endTickLength(), tickLength, "retrieves set tick length");
assert.throws(() => axis.endTickLength(-1), "must be positive");
axis.destroy();
});
it("adjusts the height to the greater of innerTickLength and endTickLength", () => {
const div = TestMethods.generateDiv();
const scale = new Plottable.Scales.Linear();
const axis = new Plottable.Axis(scale, "bottom");
axis.showEndTickLabels(true);
axis.renderTo(div);
const expectedHeight = Math.max(axis.innerTickLength(), axis.endTickLength()) + axis.margin();
assert.strictEqual(axis.height(), expectedHeight, "height should be equal to the maximum of the two");
const increasingInnerTickLength = axis.endTickLength() + 10;
axis.innerTickLength(increasingInnerTickLength);
assert.strictEqual(axis.height(), increasingInnerTickLength + axis.margin(), "height should increase to inner tick length");
const increasingEndTickLength = axis.innerTickLength() + 10;
axis.endTickLength(increasingEndTickLength);
assert.strictEqual(axis.height(), increasingEndTickLength + axis.margin(), "height should increase to end tick length");
const decreasingInnerTickLength = axis.endTickLength() - 10;
axis.innerTickLength(decreasingInnerTickLength);
assert.strictEqual(axis.height(), increasingEndTickLength + axis.margin(), "height should not decrease");
axis.destroy();
div.remove();
});
});
describe("enabling axis annotations", () => {
let axis: Plottable.Axis<Date>;
let scale: Plottable.Scales.Time;
beforeEach(() => {
scale = new Plottable.Scales.Time();
axis = new Plottable.Axis(scale, "bottom");
});
it("has annotations disabled by default", () => {
assert.isFalse(axis.annotationsEnabled(), "annotations are disabled by default");
});
it("can set if annotations are enabled", () => {
const annotationsEnabled = true;
assert.strictEqual(axis.annotationsEnabled(annotationsEnabled), axis, "enabling/disabling annotations returns calling axis");
assert.strictEqual(axis.annotationsEnabled(), annotationsEnabled, "can set if annotations are enabled");
const annotatedTicks = [new Date((scale.domain()[0].valueOf() + scale.domain()[1].valueOf()) / 2)];
axis.annotatedTicks(annotatedTicks);
const div = TestMethods.generateDiv();
axis.renderTo(div);
assert.isFalse(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_CIRCLE_CLASS}`).empty(), "annotations render");
axis.destroy();
div.remove();
});
it("can enable annotations after render", () => {
const div = TestMethods.generateDiv();
const domainValues = [scale.domain()[0].valueOf(), scale.domain()[1].valueOf()];
const annotatedTicks = Plottable.Utils.Math.range(domainValues[0], domainValues[1], (domainValues[1] - domainValues[0]) / 10)
.map((d) => new Date(d));
axis.annotatedTicks(annotatedTicks);
axis.renderTo(div);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
0, "no annotations by default");
axis.annotationsEnabled(true);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
annotatedTicks.length, "annotations render");
div.remove();
});
it("can disable annotations after render", () => {
const div = TestMethods.generateDiv();
const domainValues = [scale.domain()[0].valueOf(), scale.domain()[1].valueOf()];
const annotatedTicks = Plottable.Utils.Math.range(domainValues[0], domainValues[1], (domainValues[1] - domainValues[0]) / 10)
.map((d) => new Date(d));
axis.annotationsEnabled(true);
axis.annotatedTicks(annotatedTicks);
axis.renderTo(div);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
annotatedTicks.length, "annotations render");
axis.annotationsEnabled(false);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
0, "no annotations by default");
div.remove();
});
});
describe("annotating ticks", () => {
let axis: Plottable.Axis<number>;
let scale: Plottable.Scales.Linear;
beforeEach(() => {
scale = new Plottable.Scales.Linear();
axis = new Plottable.Axis(scale, "bottom");
});
it("has no annotated ticks by default", () => {
assert.deepEqual(axis.annotatedTicks(), [], "no annotated ticks by default");
axis.destroy();
});
it("can set the annotated ticks", () => {
const domainValues = [scale.domain()[0].valueOf(), scale.domain()[1].valueOf()];
const annotatedTicks = Plottable.Utils.Math.range(domainValues[0], domainValues[1], 10);
assert.strictEqual(axis.annotatedTicks(annotatedTicks), axis, "setting annotated ticks returns calling axis");
assert.deepEqual(axis.annotatedTicks(), annotatedTicks, "can set the annotated ticks");
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv();
axis.renderTo(div);
assert.deepEqual(axis.content().selectAll<Element, any>(".annotation-label").data(), annotatedTicks, "annotated ticks set");
axis.destroy();
div.remove();
});
it("re-renders when annotated ticks are set after render", () => {
const domainValues = [scale.domain()[0].valueOf(), scale.domain()[1].valueOf()];
const annotatedTicks = Plottable.Utils.Math.range(domainValues[0], domainValues[1], 10);
const div = TestMethods.generateDiv();
axis.annotationsEnabled(true);
axis.renderTo(div);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
0, "no annotations by default");
axis.annotatedTicks(annotatedTicks);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
annotatedTicks.length, "annotated ticks annotated");
const annotationFormatter = axis.annotationFormatter();
const annotationLabels = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`);
annotationLabels.each(function(d, i) {
assert.strictEqual(d3.select(this).text(), annotationFormatter(annotatedTicks[i]), `annotated tick ${i} has been formatted`);
});
div.remove();
});
});
describe("formatting annotation ticks", () => {
let axis: Plottable.Axis<number>;
let scale: Plottable.Scales.Linear;
beforeEach(() => {
scale = new Plottable.Scales.Linear();
axis = new Plottable.Axis(scale, "bottom");
});
it("uses the identity formatter by default", () => {
const annotationFormatter = axis.annotationFormatter();
const identityFormatter = Plottable.Formatters.identity();
const testString = "testString";
assert.strictEqual(annotationFormatter(testString), identityFormatter(testString), "uses the identity formatter by default");
axis.destroy();
});
it("can set the annotation formatter", () => {
const annotationFormatter = (d: any) => `${d}foo`;
assert.strictEqual(axis.annotationFormatter(annotationFormatter), axis, "setting annotation formatter returns calling axis");
const testString = "testString";
assert.strictEqual(annotationFormatter(testString), axis.annotationFormatter()(testString), "can set the annotated ticks");
const annotatedTicks = Plottable.Utils.Math.range(scale.domain()[0], scale.domain()[1], 10);
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv();
axis.renderTo(div);
const annotationLabels = axis.content().selectAll<Element, any>(".annotation-label");
assert.strictEqual(annotationLabels.size(), annotatedTicks.length, "same number of annotation labels as annotated ticks");
annotationLabels.each(function(d, i) {
assert.strictEqual(d3.select(this).text(), annotationFormatter(d), `formats tick ${i}`);
});
axis.destroy();
div.remove();
});
it("re-renders when the annotation formatter is changed", () => {
const div = TestMethods.generateDiv();
const annotatedTicks = Plottable.Utils.Math.range(scale.domain()[0], scale.domain()[1], 10);
axis.annotationsEnabled(true);
axis.annotatedTicks(annotatedTicks);
axis.renderTo(div);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
annotatedTicks.length, "annotations have rendered");
const bazFormatter = (d: any) => `${d}baz`;
axis.annotationFormatter(bazFormatter);
const annotationLabels = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`);
assert.strictEqual(annotationLabels.size(), annotatedTicks.length, "annotations have rendered");
annotationLabels.each(function(d, i) {
assert.strictEqual(d3.select(this).text(), bazFormatter(annotatedTicks[i]), `new formatter used for annotation label ${i}`);
});
axis.destroy();
div.remove();
});
});
describe("setting the number of annotation tiers", () => {
let axis: Plottable.Axis<number>;
beforeEach(() => {
axis = new Plottable.Axis(new Plottable.Scales.Linear(), "bottom");
});
it("one annotation tier by default", () => {
assert.deepEqual(axis.annotationTierCount(), 1, "one annotation tier by default");
axis.destroy();
});
it("can set the annotation tier count", () => {
const annotationTierCount = 5;
assert.strictEqual(axis.annotationTierCount(annotationTierCount), axis, "setting annotation tier count returns calling axis");
assert.deepEqual(axis.annotationTierCount(), annotationTierCount, "can set the annotation tier count");
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv();
axis.renderTo(div);
const oldAxisHeight = axis.height();
const increaseAmount = 2;
axis.annotationTierCount(axis.annotationTierCount() + increaseAmount);
assert.operator(axis.height(), ">", oldAxisHeight, "axis takes number of tiers into account");
axis.destroy();
div.remove();
});
it("throws an error when annotation tier count is not valid", () => {
const invalidAnnotationTierCounts = [-1, -100];
invalidAnnotationTierCounts.forEach(function(annotationTierCount) {
const currentAnnotationTierCount = axis.annotationTierCount();
assert.throws(() => axis.annotationTierCount(annotationTierCount),
`annotationTierCount cannot be negative`);
assert.strictEqual(axis.annotationTierCount(), currentAnnotationTierCount,
"annotationTierCount should not be changed to invalid values");
});
axis.destroy();
});
});
describe("drawing annotation elements", () => {
orientations.forEach((orientation) => {
const scale = new Plottable.Scales.ModifiedLog();
scale.domain([0, 300]);
const annotatedTicks = [3, 100, 250];
it(`renders annotation lines, circles, and text extending out from baseline to rect with orientation ${orientation}`, () => {
const div = TestMethods.generateDiv();
const axis = new Plottable.Axis(scale, orientation);
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
axis.renderTo(div);
const annotationRects = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_RECT_CLASS}`);
const annotationCircles = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_CIRCLE_CLASS}`);
assert.strictEqual(annotationCircles.size(), annotatedTicks.length, "circle for each annotated tick");
const axisPointX = (index: number) => {
const correspRect = d3.select(annotationRects.nodes()[index]);
return isHorizOrient(orientation) ? numAttr(correspRect, "x") : (orientation === "left" ? axis.width() : 0);
};
const axisPointY = (index: number) => {
const correspRect = d3.select(annotationRects.nodes()[index]);
return isHorizOrient(orientation) ? (orientation === "top" ? axis.height() : 0) : numAttr(correspRect, "y");
};
annotationCircles.each(function (d, i) {
const annotationCircle = d3.select(this);
assert.closeTo(numAttr(annotationCircle, "cx"), axisPointX(i), window.Pixel_CloseTo_Requirement, `circle ${i} at start`);
assert.closeTo(numAttr(annotationCircle, "cy"), axisPointY(i), window.Pixel_CloseTo_Requirement, `circle ${i} at the top`);
});
const annotationLines = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LINE_CLASS}`);
assert.strictEqual(annotationLines.size(), annotatedTicks.length, "line for each annotated tick");
annotationLines.each(function (d, i) {
const annotationLine = d3.select(this);
const correspondingRect = d3.select(annotationRects.nodes()[i]);
const x2 = numAttr(correspondingRect, "x") + (orientation === "left" ? numAttr(correspondingRect, "width") : 0);
const y2 = numAttr(correspondingRect, "y") + (orientation === "top" ? numAttr(correspondingRect, "height") : 0);
assert.closeTo(numAttr(annotationLine, "x1"), axisPointX(i), window.Pixel_CloseTo_Requirement, `line ${i} x1`);
assert.closeTo(numAttr(annotationLine, "x2"), x2, window.Pixel_CloseTo_Requirement, `line ${i} x2`);
assert.closeTo(numAttr(annotationLine, "y1"), axisPointY(i), window.Pixel_CloseTo_Requirement, `line ${i} y1`);
assert.closeTo(numAttr(annotationLine, "y2"), y2, window.Pixel_CloseTo_Requirement, `line ${i} y2`);
});
const annotationLabelTexts = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS} text`);
assert.strictEqual(annotationLabelTexts.size(), annotatedTicks.length, "label text for each annotated tick");
annotationLabelTexts.each(function (d, i) {
const annotationLabel = d3.select(this);
const surroundingRect = d3.select(annotationRects.nodes()[i]);
TestMethods.assertBBoxInclusion(surroundingRect, annotationLabel);
});
axis.destroy();
div.remove();
});
});
orientations.forEach((orientation) => {
const scale = new Plottable.Scales.ModifiedLog();
scale.domain([0, 300]);
const annotatedTicks = [3, 100, 250];
it(`places the rectangle at the scaled x position for ${orientation} orientation`, () => {
const div = TestMethods.generateDiv();
const axis = new Plottable.Axis(scale, orientation);
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
axis.renderTo(div);
const annotationRects = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_RECT_CLASS}`);
assert.strictEqual(annotationRects.size(), annotatedTicks.length, "same number of annotation rects as ticks");
const scaleAttribute = isHorizOrient(orientation) ? "x" : "y";
annotationRects.each(function (d, i) {
const annotationRect = d3.select(this);
assert.closeTo(numAttr(annotationRect, scaleAttribute), scale.scale(d),
window.Pixel_CloseTo_Requirement, `rectangle ${i} positioned at scaled position`);
});
axis.destroy();
div.remove();
});
});
orientations.forEach((orientation) => {
const scale = new Plottable.Scales.ModifiedLog();
scale.domain([0, 300]);
const annotatedTicks = [3, 100, 250];
it(`places the first row right at the beginning of the annotation area for ${orientation} orientation`, () => {
const div = TestMethods.generateDiv();
const axis = new Plottable.Axis(scale, orientation);
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
axis.renderTo(div);
const firstAnnotationRect = axis.content().select(`.${Plottable.Axis.ANNOTATION_RECT_CLASS}`);
let rectangleRowPos: number;
let expectedRowPos: number;
switch (orientation) {
case "bottom":
rectangleRowPos = numAttr(firstAnnotationRect, "y") + numAttr(firstAnnotationRect, "height");
expectedRowPos = axis.height() - axis.margin();
break;
case "top":
rectangleRowPos = numAttr(firstAnnotationRect, "y");
expectedRowPos = axis.margin();
break;
case "left":
rectangleRowPos = numAttr(firstAnnotationRect, "x");
expectedRowPos = axis.margin();
break;
case "right":
rectangleRowPos = numAttr(firstAnnotationRect, "x") + numAttr(firstAnnotationRect, "width");
expectedRowPos = axis.width() - axis.margin();
break;
}
assert.closeTo(rectangleRowPos, expectedRowPos, window.Pixel_CloseTo_Requirement, "rectangle positioned right above margin");
axis.destroy();
div.remove();
});
});
orientations.forEach((orientation) => {
const scale = new Plottable.Scales.ModifiedLog();
scale.domain([0, 300]);
const annotatedTicks = [50, 51];
it(`moves rectangles that would overlap to different rows for ${orientation} orientation`, () => {
const div = TestMethods.generateDiv();
const axis = new Plottable.Axis(scale, orientation);
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
axis.renderTo(div);
const annotationRects = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_RECT_CLASS}`);
const firstAnnotationRect = d3.select(annotationRects.nodes()[0]);
const secondAnnotationRect = d3.select(annotationRects.nodes()[1]);
const positionAttr = isHorizOrient(orientation) ? "y" : "x";
const offsetAttr = isHorizOrient(orientation) ? "height" : "width";
assert.strictEqual(Math.abs(numAttr(secondAnnotationRect, positionAttr) - numAttr(firstAnnotationRect, positionAttr)),
numAttr(firstAnnotationRect, offsetAttr), "rectangle offset by previous rectangle");
axis.destroy();
div.remove();
});
});
});
it("hides annotations if rectangles are outside the annotation area", () => {
const scale = new Plottable.Scales.Linear();
const annotatedTicks = [50, 51, 150];
scale.domain([0, 300]);
const axis = new Plottable.Axis(scale, "bottom");
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv(300, 300);
axis.renderTo(div);
const annotationRects = axis.content().selectAll<SVGRectElement, any>(`.${Plottable.Axis.ANNOTATION_RECT_CLASS}`);
assert.strictEqual(annotationRects.size(), annotatedTicks.length, "same number of annotation rects as ticks");
annotationRects.each(function(d, i) {
const annotationRect = d3.select(this);
const bbox = this.getBBox();
// add 1px fudge factor to avoid floating point rounding errors
const insideAnnotationArea = bbox.x >= 0 && bbox.x + bbox.width <= axis.width() + 1 &&
bbox.y >= 0 && bbox.y + bbox.height <= axis.height() - axis.margin() + 1;
if (insideAnnotationArea) {
assert.strictEqual(annotationRect.attr("visibility"), "visible", `rect ${i} inside margin area should be visible`);
} else {
assert.strictEqual(annotationRect.attr("visibility"), "hidden", `rect ${i} outside margin area should be not visible`);
}
});
axis.destroy();
div.remove();
});
it("shows annotation circles regardless if rectangles are hidden", () => {
const scale = new Plottable.Scales.Linear();
const annotatedTicks = [50, 51, 150];
scale.domain([0, 300]);
const axis = new Plottable.Axis(scale, "bottom");
axis.annotatedTicks(annotatedTicks);
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv(300, 300);
axis.renderTo(div);
const annotationCircles = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_CIRCLE_CLASS}`);
assert.strictEqual(annotationCircles.size(), annotatedTicks.length, "same number of annotation circles as ticks");
annotationCircles.each(function(d, i) {
const annotationCircle = d3.select(this);
assert.notStrictEqual(annotationCircle.attr("visibility"), "hidden", `circle ${i} inside margin area should be visible`);
});
axis.destroy();
div.remove();
});
it("does not render the null as an annotation", () => {
const annotatedTicks: Date[] = [null];
const scale = new Plottable.Scales.Time();
scale.domain([new Date(1994, 11, 17), new Date(1995, 11, 17)]);
const axis = new Plottable.Axis(scale, "bottom");
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv(300, 300);
axis.renderTo(div);
axis.annotatedTicks(annotatedTicks);
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(), 0, "no annotated ticks");
axis.destroy();
div.remove();
});
it("only renders unique annotated ticks", () => {
const annotatedTicks = [150, 150, 200];
const scale = new Plottable.Scales.Linear();
scale.domain([100, 200]);
const axis = new Plottable.Axis(scale, "bottom");
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv(300, 300);
axis.renderTo(div);
axis.annotatedTicks(annotatedTicks);
const annotatedTickSet = new Plottable.Utils.Set();
annotatedTicks.forEach((annotatedTick) => {
annotatedTickSet.add(annotatedTick);
});
assert.strictEqual(axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_LABEL_CLASS}`).size(),
annotatedTickSet.size, "only unique annotations rendered");
axis.destroy();
div.remove();
});
it("places the tick at the top most row even if it is a duplicated tick", () => {
const annotatedTicks = [150, 150];
const scale = new Plottable.Scales.Linear();
scale.domain([100, 200]);
const axis = new Plottable.Axis(scale, "bottom");
axis.annotationsEnabled(true);
const div = TestMethods.generateDiv(300, 300);
axis.renderTo(div);
axis.annotatedTicks(annotatedTicks);
const annotationRects = axis.content().selectAll<Element, any>(`.${Plottable.Axis.ANNOTATION_RECT_CLASS}`);
assert.strictEqual(annotationRects.size(), 1, "only one annotation rendered");
const annotationRect = d3.select(annotationRects.nodes()[0]);
assert.closeTo(numAttr(annotationRect, "y") + numAttr(annotationRect, "height"),
axis.height() - axis.margin(), window.Pixel_CloseTo_Requirement, "rectangle positioned correctly");
axis.destroy();
div.remove();
});
describe("tickLabelDataOnElement", () => {
const domain = ["label1", "label2", "long long long long long long long long long long long long title"];
let div: d3.Selection<HTMLDivElement, void | {}, any, any>;
let scale: Plottable.Scales.Category;
let axis: Plottable.Axes.Category;
beforeEach(() => {
div = TestMethods.generateDiv();
scale = new Plottable.Scales.Category().domain(domain);
axis = new Plottable.Axes.Category(scale, "left");
const TICK_LABEL_MAX_WIDTH = 60;
axis.tickLabelMaxWidth(TICK_LABEL_MAX_WIDTH);
axis.renderTo(div);
});
afterEach(() => {
axis.destroy();
div.remove();
});
it("returns label datum when element has tick label class", () => {
const tickLabelElement = div.select(`.${Plottable.Axis.TICK_LABEL_CLASS}`).node() as Element;
assert.equal(axis.tickLabelDataOnElement(tickLabelElement), domain[0]);
});
it.skip("returns label datum when element in ancestor has tick label class", () => {
const labelTextLineElement = div.select(".text-line").node() as Element;
assert.equal(axis.tickLabelDataOnElement(labelTextLineElement), domain[0]);
});
it("returns undefined when no ancestor has tick label class", () => {
const contentElement = div.select(".content").node() as Element;
assert.isUndefined(axis.tickLabelDataOnElement(contentElement));
});
it("returns undefined when element is null / undefined", () => {
axis = new Plottable.Axes.Category(scale, "left");
assert.isUndefined(axis.tickLabelDataOnElement(undefined));
assert.isUndefined(axis.tickLabelDataOnElement(null));
});
});
});
| 42.439545
| 140
| 0.665158
|
20b7c7c34e7afb1202a1c2fdbe9647b3e3d30c65
| 3,092
|
lua
|
Lua
|
demos/hello-tofu/main-step-1.lua
|
tofuengine/tofu
|
b258b777ff26e8b095184fab5909c675d6ec559c
|
[
"MIT"
] | 27
|
2020-01-09T05:56:40.000Z
|
2022-03-29T11:48:17.000Z
|
demos/hello-tofu/main-step-1.lua
|
tofuengine/tofu
|
b258b777ff26e8b095184fab5909c675d6ec559c
|
[
"MIT"
] | 1
|
2021-04-25T01:06:18.000Z
|
2021-07-11T19:33:05.000Z
|
demos/hello-tofu/main-step-1.lua
|
tofuengine/tofu
|
b258b777ff26e8b095184fab5909c675d6ec559c
|
[
"MIT"
] | 2
|
2021-04-01T20:51:31.000Z
|
2021-04-22T13:34:31.000Z
|
--[[
MIT License
Copyright (c) 2019-2021 Marco Lizza
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.
]]--
-- Include the modules we'll be using.
local Class = require("tofu.core").Class
local System = require("tofu.core").System
local Canvas = require("tofu.graphics").Canvas
local Display = require("tofu.graphics").Display
local Font = require("tofu.graphics").Font
local Palette = require("tofu.graphics").Palette
-- The entry point is a class, we are creating with a helper function.
local Main = Class.define()
-- The message we are displaying, as a "constant".
local MESSAGE = "Hello, Tofu!"
function Main:__ctor()
-- Load a predefined palette, we choose Pico-8's one.
Display.palette(Palette.new("pico-8"))
-- Create a default font, palette colour `0` as background and `15` as foreground.
-- Please note that, as default, palette colour `0` is set as transparent. This
-- means that the font background colour won't be drawn.
self.font = Font.default(0, 15)
end
function Main:process()
-- Nothing to do, here.
end
function Main:update(_)
-- Ditto.
end
function Main:render(_)
-- Get a reference to the default canvas (i.e. the the virtual-screen).
local canvas = Canvas.default()
-- Query current time since the start, expressed in seconds (as a floating point number).
local t = System.time()
-- Convert the time to an integer, then instruct the engine that colour `15` need to be
-- remapped to colour `index`.
local index = tonumber(t) % 16
canvas:shift(15, index)
-- Clear the virtual-screen with default background colour (i.e. palette colour #0).
canvas:clear()
-- Get the canvas width and height.
local canvas_width, canvas_height = canvas:size()
-- We need the font (message) width and height to center it on screen.
local text_width, text_height = self.font:size(MESSAGE)
-- Compute vertical and horizontal position for the text.
local x = (canvas_width - text_width) * 0.5
local y = (canvas_height - text_height) * 0.5
-- Finally, draw the message on-screen at the given position.
self.font:write(MESSAGE, x, y)
end
return Main
| 35.953488
| 91
| 0.743855
|
85215526b45bb139529ac6244ecc282b42dabc50
| 989
|
cs
|
C#
|
src/Stardust.Paradox.Data/Traversals/GremlinFactory.cs
|
bittola/Stardust.Paradox
|
68885b13eef63afa155bacde8380e4ee36136bd7
|
[
"Apache-2.0"
] | null | null | null |
src/Stardust.Paradox.Data/Traversals/GremlinFactory.cs
|
bittola/Stardust.Paradox
|
68885b13eef63afa155bacde8380e4ee36136bd7
|
[
"Apache-2.0"
] | null | null | null |
src/Stardust.Paradox.Data/Traversals/GremlinFactory.cs
|
bittola/Stardust.Paradox
|
68885b13eef63afa155bacde8380e4ee36136bd7
|
[
"Apache-2.0"
] | null | null | null |
using System;
namespace Stardust.Paradox.Data.Traversals
{
//public static class Gremlin
//{
// public static IGremlinLanguageConnector Spawn()//:p
// {
// return GremlinFactory.G;
// }
//}
public static class GremlinFactory
{
private static Func<IGremlinLanguageConnector> _factoryMethod;
private static IServiceProvider _resolver;
public static IGremlinLanguageConnector G => Activate();
private static IGremlinLanguageConnector Activate()
{
return _factoryMethod?.Invoke() ?? _resolver.GetService(typeof(IGremlinLanguageConnector)) as IGremlinLanguageConnector;
}
public static void SetActivatorFactory(Func<IGremlinLanguageConnector> factoryMetod)
{
_factoryMethod = factoryMetod;
}
public static void SetServiceProvider(IServiceProvider serviceProvider)
{
_resolver = serviceProvider;
}
}
}
| 29.088235
| 132
| 0.655207
|
5eaab6b15280b061dd27a5a43c0a72685812c7b2
| 4,210
|
lua
|
Lua
|
modules/hmi_adapter/hmi_stream_adapter_controller.lua
|
smartdevicelink/sdl_atf
|
08354ae6633169513639a3d9257acd1229a5caa2
|
[
"BSD-3-Clause"
] | 6
|
2016-03-04T20:27:37.000Z
|
2021-11-06T08:05:00.000Z
|
modules/hmi_adapter/hmi_stream_adapter_controller.lua
|
smartdevicelink/sdl_atf
|
08354ae6633169513639a3d9257acd1229a5caa2
|
[
"BSD-3-Clause"
] | 122
|
2016-03-09T20:03:50.000Z
|
2022-01-31T14:26:36.000Z
|
modules/hmi_adapter/hmi_stream_adapter_controller.lua
|
smartdevicelink/sdl_atf
|
08354ae6633169513639a3d9257acd1229a5caa2
|
[
"BSD-3-Clause"
] | 41
|
2016-03-10T09:34:00.000Z
|
2020-12-01T09:08:24.000Z
|
--- Module which provides transport level interface for emulate connection to SDL from HMI for streaming
--
-- *Dependencies:* `qt`, `network`
--
-- *Globals:* `qt`, `network`
-- @module Stream
-- @copyright [SmartDeviceLink Consortium](https://smartdevicelink.com/consortium/)
-- @license <https://github.com/smartdevicelink/sdl_core/blob/master/LICENSE>
local ATF = require("ATF")
local Stream = { }
--- Type which provides transport level interface for emulate connection with SDL from HMI
-- @type Connection
--- Construct instance of Connection type
-- @tparam string host SDL host address
-- @tparam number port SDL port
-- @tparam number bytes Number of bytes to receive before calling callback
-- @tparam function func Callback when stream ends or number of bytes are received
-- @treturn Connection Constructed instance
function Stream.TcpConnection(host, port, bytes, func)
local res =
{
host = host,
port = port,
callback = func,
callbackBytes = bytes,
receivedBytes = 0,
data = {}
}
res.socket = network.TcpClient()
res.qtproxy = qt.dynamic()
local function flushStreamTcpData()
local file = io.open("tcp_stream.out","w+b")
local streamedData = table.concat(res.data)
file:write(streamedData)
file:close()
end
local function processInputData(data)
local tableIndex = #res.data
if tableIndex == 0 then
-- trim off HTTP header
local headerDelimeter = "\r\n\r\n"
local headerSize = data:find(headerDelimeter) + headerDelimeter:len()
data = string.sub(data, headerSize)
end
table.insert(res.data, data);
res.receivedBytes = res.receivedBytes + data:len()
if res.callbackBytes ~= -1 and res.receivedBytes >= res.callbackBytes then
flushStreamTcpData()
res.callback(true, res.callbackBytes, "tcp_stream.out")
res.callbackBytes = -1
end
end
function res.qtproxy.readyRead()
while true do
local data = res.socket:read(81920)
if data == '' or type(data) ~= "string" then break end
processInputData(data)
end
end
res.qtproxy.disconnected = function()
if res.receivedBytes < res.callbackBytes then
flushStreamTcpData()
res.callback(false, res.receivedBytes, "tcp_stream.out")
end
end
qt.connect(res.socket, "disconnected()", res.qtproxy, "disconnected()")
res.qtproxy.connected = function() print("HMI connected to stream") end
qt.connect(res.socket, "connected()", res.qtproxy, "connected()")
qt.connect(res.socket, "readyRead()", res.qtproxy, "readyRead()")
res.socket:connect(host, port, config.connectionTimeout)
return res
end
--- Construct instance of Connection type
-- @tparam string pipe Path to pipe of data
-- @tparam number bytes Number of bytes to receive before calling callback
-- @tparam function func Callback when stream ends or number of bytes are received
-- @treturn Connection Constructed instance
function Stream.PipeConnection(pipe, bytes, func)
local res =
{
callback = func,
callbackBytes = bytes,
receivedBytes = 0,
}
local pipeContentFileName = "pipe_stream.out"
local command = "head -c " .. tostring(bytes) .. " " .. pipe .. " > " .. pipeContentFileName
if config.remoteConnection.enabled then
ATF.remoteUtils.app:ExecuteCommand(command)
local _, isExists = ATF.remoteUtils.file:IsFileExists(".", pipeContentFileName)
if isExists then
local isSuccess, path = ATF.remoteUtils.file:GetFile(".", pipeContentFileName)
if isSuccess then
ATF.remoteUtils.file:DeleteFile(".", pipeContentFileName)
local file = io.open(path, "rb")
res.receivedBytes = file:seek("end")
file:close()
pipeContentFileName = path
else
pipeContentFileName = ""
end
else
pipeContentFileName = ""
end
else
os.execute(command)
local file = io.open(pipeContentFileName, "rb")
res.receivedBytes = file:seek("end")
file:close()
end
local success = res.receivedBytes >= res.callbackBytes
res.callback(success, res.receivedBytes, pipeContentFileName)
return res
end
return Stream
| 31.654135
| 104
| 0.682423
|
f5809dd6dc727a97f2a8fe9110fbbe6e5b78894a
| 1,870
|
go
|
Go
|
timeseries/tstransformations.go
|
usefulrisk/timeseries
|
f35660889f6fca86733890cea26d1db1c2e1d243
|
[
"MIT"
] | null | null | null |
timeseries/tstransformations.go
|
usefulrisk/timeseries
|
f35660889f6fca86733890cea26d1db1c2e1d243
|
[
"MIT"
] | null | null | null |
timeseries/tstransformations.go
|
usefulrisk/timeseries
|
f35660889f6fca86733890cea26d1db1c2e1d243
|
[
"MIT"
] | null | null | null |
package timeseries
import (
"fmt"
"github.com/montanaflynn/stats"
"time"
)
//RemoveOutbounds takes a TimeSeries and produces two new TimeSeries:One is the TimeSeries cleaned from observations outside
//the parameters min and max, the other is the data that have been rejected with "rejected" in the comment
func(tsin *TimeSeries) RemoveOutbounds(min,max float64,comment string)(TimeSeries, TimeSeries){
var tsout,tsrej TimeSeries
tsin.SortMeasAsc()
for _,dataunit:=range tsin.DataSeries{
if dataunit.Meas>max||dataunit.Meas<min{
dataunit.State="Rejected because outside("+fmt.Sprintf("%f",min)+","+fmt.Sprintf("%f",max)+") limits"
tsrej.AddDataUnit(dataunit)
}else{
dataunit.State=comment
tsout.AddDataUnit(dataunit)
}
}
//Attention on a travaillé sur la série originale il ne faut pas oublier de la re-ranger.
tsin.SortChronAsc()
tsout.SortChronAsc()
tsrej.SortChronAsc()
return tsout,tsrej
}
// Clean following indicated percentile
func (tsin *TimeSeries) PercCleaning(perc float64)(TimeSeries, TimeSeries) {
tsin.SortMeasAsc()
dt:= tsin.MeasToArr()
//min:=stat.Quantile(perc,1,dt,nil)
min,_:=stats.Percentile(dt,perc)
//max:=stat.Quantile((1-perc),1,dt,nil)
max,_:=stats.Percentile(dt,(100-perc))
return tsin.RemoveOutbounds(min,max,"Percentile ("+fmt.Sprintf("%.2f",min)+","+fmt.Sprintf("%.2f",max)+") - "+time.Now().Round(0).String())
}
// Clean the cleaned timeseries1 following zscore technique. Save leftover data into leftover
func (tsin *TimeSeries) ZscoreCleaning(lvl float64)(TimeSeries, TimeSeries){
tsin.SortMeasAsc()
dt:= tsin.MeasToArr()
dtmean,_:=stats.Mean(dt)
dtstd,_:=stats.StandardDeviation(dt)
min:=(dtmean-dtstd)*lvl
max:=(dtmean+dtstd)*lvl
return tsin.RemoveOutbounds(min,max,"zScore at "+fmt.Sprintf("%.2f",lvl)+ "("+fmt.Sprintf("%.2f",min)+","+fmt.Sprintf("%.2f",max)+") - "+time.Now().String())
}
| 38.163265
| 158
| 0.732086
|
118b7684967705c06a5b540889fe3c0799c75c1b
| 3,467
|
swift
|
Swift
|
i2app/CorneaPod/Cornea/Classes/Generated/Capabilities/SupportAgentLogEntryCapabilityLegacy.swift
|
wl-net/arcusios
|
9ab7cfe04555c72212ffb9073c7919d1f910849e
|
[
"Apache-2.0"
] | null | null | null |
i2app/CorneaPod/Cornea/Classes/Generated/Capabilities/SupportAgentLogEntryCapabilityLegacy.swift
|
wl-net/arcusios
|
9ab7cfe04555c72212ffb9073c7919d1f910849e
|
[
"Apache-2.0"
] | 1
|
2020-07-13T01:02:56.000Z
|
2020-07-13T01:02:56.000Z
|
i2app/CorneaPod/Cornea/Classes/Generated/Capabilities/SupportAgentLogEntryCapabilityLegacy.swift
|
t1minator/arcus-smart-home-arcusios
|
7d432f6911db74d36f7d19a342f81850b414a6c5
|
[
"Apache-2.0"
] | null | null | null |
//
// SupportAgentLogEntryCapabilityLegacy.swift
//
// Generated on 20/09/18
/*
* Copyright 2019 Arcus Project
*
* 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 Foundation
import PromiseKit
import RxSwift
// MARK: Legacy Support
public class SupportAgentLogEntryCapabilityLegacy: NSObject, ArcusSupportAgentLogEntryCapability, ArcusPromiseConverter {
public var disposeBag: DisposeBag = DisposeBag()
private static let capability: SupportAgentLogEntryCapabilityLegacy = SupportAgentLogEntryCapabilityLegacy()
public static func getCreated(_ model: SupportAgentLogEntryModel) -> Date? {
guard let created: Date = capability.getSupportAgentLogEntryCreated(model) else {
return nil
}
return created
}
public static func getAgentId(_ model: SupportAgentLogEntryModel) -> String? {
return capability.getSupportAgentLogEntryAgentId(model)
}
public static func getAccountId(_ model: SupportAgentLogEntryModel) -> String? {
return capability.getSupportAgentLogEntryAccountId(model)
}
public static func getAction(_ model: SupportAgentLogEntryModel) -> String? {
return capability.getSupportAgentLogEntryAction(model)
}
public static func getParameters(_ model: SupportAgentLogEntryModel) -> [String]? {
return capability.getSupportAgentLogEntryParameters(model)
}
public static func getUserId(_ model: SupportAgentLogEntryModel) -> String? {
return capability.getSupportAgentLogEntryUserId(model)
}
public static func getPlaceId(_ model: SupportAgentLogEntryModel) -> String? {
return capability.getSupportAgentLogEntryPlaceId(model)
}
public static func getDeviceId(_ model: SupportAgentLogEntryModel) -> String? {
return capability.getSupportAgentLogEntryDeviceId(model)
}
public static func createAgentLogEntry(_ model: SupportAgentLogEntryModel, agentId: String, accountId: String, action: String, parameters: [String], userId: String, deviceId: String, placeId: String) -> PMKPromise {
do {
return try capability.promiseForObservable(capability
.requestSupportAgentLogEntryCreateAgentLogEntry(model, agentId: agentId, accountId: accountId, action: action, parameters: parameters, userId: userId, deviceId: deviceId, placeId: placeId))
} catch {
return PMKPromise.new { (_: PMKFulfiller?, rejecter: PMKRejecter?) in
rejecter?(error)
}
}
}
public static func listAgentLogEntries(_ model: SupportAgentLogEntryModel, agentId: String, startDate: String, endDate: String) -> PMKPromise {
do {
return try capability.promiseForObservable(capability
.requestSupportAgentLogEntryListAgentLogEntries(model, agentId: agentId, startDate: startDate, endDate: endDate))
} catch {
return PMKPromise.new { (_: PMKFulfiller?, rejecter: PMKRejecter?) in
rejecter?(error)
}
}
}
}
| 32.707547
| 218
| 0.736083
|
e153f70459d276fc3facee395895268fc863d83d
| 305
|
swift
|
Swift
|
Tests/RazeCoreTests/XCTestMainifests.swift
|
YentingChen/RazeCore
|
2771512e4dca137131869d251ad863e741d9f386
|
[
"MIT"
] | null | null | null |
Tests/RazeCoreTests/XCTestMainifests.swift
|
YentingChen/RazeCore
|
2771512e4dca137131869d251ad863e741d9f386
|
[
"MIT"
] | null | null | null |
Tests/RazeCoreTests/XCTestMainifests.swift
|
YentingChen/RazeCore
|
2771512e4dca137131869d251ad863e741d9f386
|
[
"MIT"
] | null | null | null |
//
// XCTestMainifests.swift
// RazeCoreTests
//
// Created by Yenting Chen on 2022/1/5.
//
import XCTest
#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(RazeColorTests.allTests),
testCasse(NetworkingTests.allTests)
]
}
#endif
| 15.25
| 45
| 0.659016
|
d65081ca4e40b16d61170fdf01d73f52eeb27bb0
| 10,528
|
cs
|
C#
|
timw255.Sitefinity.RestClient/ServiceWrappers/Security/PermissionsServiceWrapper.cs
|
timw255/timw255.Sitefinity.RestClient
|
21dae77b8e24491cd7252d614ebde2234a67db4a
|
[
"MIT"
] | 3
|
2015-03-27T19:55:47.000Z
|
2018-08-14T17:41:03.000Z
|
timw255.Sitefinity.RestClient/ServiceWrappers/Security/PermissionsServiceWrapper.cs
|
timw255/timw255.Sitefinity.RestClient
|
21dae77b8e24491cd7252d614ebde2234a67db4a
|
[
"MIT"
] | null | null | null |
timw255.Sitefinity.RestClient/ServiceWrappers/Security/PermissionsServiceWrapper.cs
|
timw255/timw255.Sitefinity.RestClient
|
21dae77b8e24491cd7252d614ebde2234a67db4a
|
[
"MIT"
] | 3
|
2015-04-29T15:20:29.000Z
|
2018-12-21T09:37:17.000Z
|
using RestSharp;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using timw255.Sitefinity.RestClient.Model;
namespace timw255.Sitefinity.RestClient.ServiceWrappers.Security
{
public class PermissionsServiceWrapper : ServiceWrapper
{
public PermissionsServiceWrapper(SitefinityRestClient sf)
{
this.ServiceUrl = "Sitefinity/Services/Security/Permissions.svc/";
this.SF = sf;
}
//[WebInvoke(Method = "PUT", UriTemplate = "/ChangeInheritance/?dataProviderName={providerName}&managerClassName={managerTypeName}&securedObjectID={securedObjectIdString}&securedObjectType={securedObjectTypeName}&break={breakInheritance}&loseCustomChanges={loseCustomChanges}&transactionName={transactionName}&dynamicDataProviderName={dynamicDataProviderName}")]
public PermissionSetCollectionContext ChangeInheritance(Guid securedObjectId, string securedObjectTypeName, string managerTypeName, string providerName, string breakInheritance, string loseCustomChanges, string transactionName, string dynamicDataProviderName)
{
var request = new RestRequest(this.ServiceUrl + "/ChangeInheritance/?dataProviderName={providerName}&managerClassName={managerTypeName}&securedObjectID={securedObjectId}&securedObjectType={securedObjectTypeName}&break={breakInheritance}&loseCustomChanges={loseCustomChanges}&transactionName={transactionName}&dynamicDataProviderName={dynamicDataProviderName}", Method.PUT);
request.AddUrlSegment("providerName", providerName);
request.AddUrlSegment("managerTypeName", managerTypeName);
request.AddUrlSegment("securedObjectId", securedObjectId.ToString());
request.AddUrlSegment("securedObjectTypeName", securedObjectTypeName);
request.AddUrlSegment("breakInheritance", breakInheritance);
request.AddUrlSegment("loseCustomChanges", loseCustomChanges);
request.AddUrlSegment("transactionName", transactionName);
request.AddUrlSegment("dynamicDataProviderName", dynamicDataProviderName);
return ExecuteRequest<PermissionSetCollectionContext>(request);
}
//[WebGet(UriTemplate = "/GetManagerProviders/?managerClassName={managerClassName}")]
public CollectionContext<ModuleProvider> GetManagerProviders(string managerClassName)
{
var request = new RestRequest(this.ServiceUrl + "/GetManagerProviders/?managerClassName={managerClassName}", Method.GET);
request.AddUrlSegment("managerClassName", managerClassName);
return ExecuteRequest<CollectionContext<ModuleProvider>>(request);
}
//[WebGet(UriTemplate = "/GetModuleProviders/?moduleName={moduleName}")]
public CollectionContext<ModuleProvider> GetModuleProviders(string moduleName)
{
var request = new RestRequest(this.ServiceUrl + "/GetModuleProviders/?moduleName={moduleName}", Method.GET);
request.AddUrlSegment("moduleName", moduleName);
return ExecuteRequest<CollectionContext<ModuleProvider>>(request);
}
//[WebGet(UriTemplate = "/GetModules/?dataProviderName={dataProviderName}&securedObjectID={securedObjectID}&managerClassName={managerClassName}")]
public CollectionContext<WcfPermissionModule> GetModules(string dataProviderName, string managerClassName, string securedObjectID)
{
var request = new RestRequest(this.ServiceUrl + "/GetModules/?dataProviderName={dataProviderName}&securedObjectID={securedObjectID}&managerClassName={managerClassName}", Method.GET);
request.AddUrlSegment("dataProviderName", dataProviderName);
request.AddUrlSegment("securedObjectID", securedObjectID);
request.AddUrlSegment("managerClassName", managerClassName);
return ExecuteRequest<CollectionContext<WcfPermissionModule>>(request);
}
//[WebGet(UriTemplate = "/GetPermissionSets/?permissionsSetName={permissionsSetName}&dataProviderName={dataProviderName}&managerClassName={managerClassName}&principalID={principalID}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}")]
public PermissionSetCollectionContext GetPermissionSetsForSpecificPrincipal(string permissionsSetName, string dataProviderName, string managerClassName, string principalID, string securedObjectID, string securedObjectType, string dynamicDataProviderName)
{
var request = new RestRequest(this.ServiceUrl + "/GetPermissionSets/?permissionsSetName={permissionsSetName}&dataProviderName={dataProviderName}&managerClassName={managerClassName}&principalID={principalID}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}", Method.GET);
request.AddUrlSegment("permissionsSetName", permissionsSetName);
request.AddUrlSegment("dataProviderName", dataProviderName);
request.AddUrlSegment("managerClassName", managerClassName);
request.AddUrlSegment("principalID", principalID);
request.AddUrlSegment("securedObjectID", securedObjectID);
request.AddUrlSegment("securedObjectType", securedObjectType);
request.AddUrlSegment("dynamicDataProviderName", dynamicDataProviderName);
return ExecuteRequest<PermissionSetCollectionContext>(request);
}
//[WebGet(UriTemplate = "/?permissionsSetName={commaDelimitedPermissionsSetNames}&dataProviderName={dataProviderName}&managerClassName={managerClassName}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}")]
public PermissionSetCollectionContext GetPermissionsForSecuredObject(string commaDelimitedPermissionsSetNames, string dataProviderName, string managerClassName, string securedObjectID, string securedObjectType, string dynamicDataProviderName)
{
var request = new RestRequest(this.ServiceUrl + "/?permissionsSetName={commaDelimitedPermissionsSetNames}&dataProviderName={dataProviderName}&managerClassName={managerClassName}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}", Method.GET);
request.AddUrlSegment("commaDelimitedPermissionsSetNames", commaDelimitedPermissionsSetNames);
request.AddUrlSegment("dataProviderName", dataProviderName);
request.AddUrlSegment("managerClassName", managerClassName);
request.AddUrlSegment("securedObjectID", securedObjectID);
request.AddUrlSegment("securedObjectType", securedObjectType);
request.AddUrlSegment("dynamicDataProviderName", dynamicDataProviderName);
return ExecuteRequest<PermissionSetCollectionContext>(request);
}
//[WebInvoke(Method = "PUT", UriTemplate = "/{permissionsSetName}/{dataProviderName}/?permissionObjectRootID={permissionObjectRootID}&managerClassName={managerClassName}&principalID={principalID}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}")]
public void SavePermissionActionsForSpecificPrincipal(List<WcfPermission> principals, string permissionsSetName, string dataProviderName, string permissionObjectRootID, string managerClassName, Guid principalID, string securedObjectID, string securedObjectType, string dynamicDataProviderName)
{
var request = new RestRequest(this.ServiceUrl + "/{permissionsSetName}/{dataProviderName}/?permissionObjectRootID={permissionObjectRootID}&managerClassName={managerClassName}&principalID={principalID}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}", Method.PUT);
request.AddUrlSegment("permissionsSetName", permissionsSetName);
request.AddUrlSegment("dataProviderName", dataProviderName);
request.AddUrlSegment("permissionObjectRootID", permissionObjectRootID);
request.AddUrlSegment("managerClassName", managerClassName);
request.AddUrlSegment("principalID", principalID.ToString());
request.AddUrlSegment("securedObjectID", securedObjectID);
request.AddUrlSegment("securedObjectType", securedObjectType);
request.AddUrlSegment("dynamicDataProviderName", dynamicDataProviderName);
request.AddParameter("application/json", SerializeObject(principals), ParameterType.RequestBody);
ExecuteRequest(request);
}
//[WebInvoke(Method = "PUT", UriTemplate = "/{permissionsSetName}/{dataProviderName}/{actionName}/?permissionObjectRootID={permissionObjectRootID}&managerClassName={managerClassName}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}")]
public void SavePermissionsForSpecificAction(List<WcfPermission> principals, string permissionsSetName, string dataProviderName, string permissionObjectRootID, string actionName, string managerClassName, string securedObjectID, string securedObjectType, string dynamicDataProviderName)
{
var request = new RestRequest(this.ServiceUrl + "/{permissionsSetName}/{dataProviderName}/{actionName}/?permissionObjectRootID={permissionObjectRootID}&managerClassName={managerClassName}&securedObjectID={securedObjectID}&securedObjectType={securedObjectType}&dynamicDataProviderName={dynamicDataProviderName}", Method.PUT);
request.AddUrlSegment("permissionsSetName", permissionsSetName);
request.AddUrlSegment("dataProviderName", dataProviderName);
request.AddUrlSegment("actionName", actionName);
request.AddUrlSegment("permissionObjectRootID", permissionObjectRootID);
request.AddUrlSegment("managerClassName", managerClassName);
request.AddUrlSegment("securedObjectID", securedObjectID);
request.AddUrlSegment("securedObjectType", securedObjectType);
request.AddUrlSegment("dynamicDataProviderName", dynamicDataProviderName);
request.AddParameter("application/json", SerializeObject(principals), ParameterType.RequestBody);
ExecuteRequest(request);
}
}
}
| 75.2
| 385
| 0.769092
|
409a770d0f33f55e7a7a1974a6bd5fd5777c1890
| 377
|
rb
|
Ruby
|
spec/support/matchers/have_errors.rb
|
thiagoa/location
|
ea46222cbc2e627b9f7501fd1c22ae9a80cd2360
|
[
"MIT"
] | null | null | null |
spec/support/matchers/have_errors.rb
|
thiagoa/location
|
ea46222cbc2e627b9f7501fd1c22ae9a80cd2360
|
[
"MIT"
] | null | null | null |
spec/support/matchers/have_errors.rb
|
thiagoa/location
|
ea46222cbc2e627b9f7501fd1c22ae9a80cd2360
|
[
"MIT"
] | null | null | null |
I18n.enforce_available_locales = false
RSpec::Matchers.define :have_error_message do |expected_message|
chain :on_fields do |fields|
@fields = Array(fields)
end
match do |object|
errors = object.errors.messages.select do |field, messages|
@fields.include?(field) && messages.include?(expected_message)
end
errors.count == @fields.count
end
end
| 25.133333
| 68
| 0.718833
|
afd8e43269a0b75a2abfa3955f027285270e3c94
| 1,032
|
py
|
Python
|
storage.py
|
heabyfik/CatBot
|
923df23e3b5262ae3d131b1108aacc6d8264888b
|
[
"MIT"
] | null | null | null |
storage.py
|
heabyfik/CatBot
|
923df23e3b5262ae3d131b1108aacc6d8264888b
|
[
"MIT"
] | null | null | null |
storage.py
|
heabyfik/CatBot
|
923df23e3b5262ae3d131b1108aacc6d8264888b
|
[
"MIT"
] | null | null | null |
from random import randint
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import declarative_base
from sqlalchemy.orm import sessionmaker
engine = create_engine("sqlite:///sqlite3.db")
Base = declarative_base()
Session = sessionmaker(bind=engine)
class Photo(Base):
__tablename__ = "photos"
id = Column(Integer, primary_key=True)
file_id = Column(String)
chat_id = Column(Integer)
description = Column(String)
def __init__(self, file_id, chat_id, description):
self.file_id = file_id
self.chat_id = chat_id
self.description = description
def get_random_photo():
session = Session()
c = session.query(Photo.id).count()
i = randint(1, c)
p = session.query(Photo).filter(Photo.id == i).first()
return p
def add_photo(p: Photo):
session = Session()
session.add(p)
session.commit()
def _create_db():
Base.metadata.create_all(engine)
if __name__ == "__main__":
_create_db()
| 19.846154
| 58
| 0.693798
|
f1910e570e1154b19f115f5f6bca58e22cb7f8e1
| 1,512
|
h
|
C
|
include/guava_session/guava_session.h
|
timgates42/guava
|
4598260858833434df529ae2cd5efcb445593089
|
[
"BSD-3-Clause"
] | 11
|
2018-06-19T03:18:00.000Z
|
2021-02-26T10:52:08.000Z
|
include/guava_session/guava_session.h
|
timgates42/guava
|
4598260858833434df529ae2cd5efcb445593089
|
[
"BSD-3-Clause"
] | 1
|
2015-01-05T09:19:41.000Z
|
2015-01-06T00:28:54.000Z
|
include/guava_session/guava_session.h
|
flatpeach/guava
|
4598260858833434df529ae2cd5efcb445593089
|
[
"BSD-3-Clause"
] | 5
|
2018-06-19T03:18:08.000Z
|
2021-12-25T05:11:17.000Z
|
/*
* Copyright 2014 The guava 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 __GUAVA_SESSION_H__
#define __GUAVA_SESSION_H__
#include "guava.h"
#define GUAVA_SESSION_DEFAULT_NAME "sessionid"
#define GUAVA_SESSION_DEFAULT_GC_TIME (7 * 86400)
#define GUAVA_SESSION_DEFAULT_COOKIE_TIME 0
#define GUAVA_SESSION_DEFAULT_COOKIE_PATH "/"
#define GUAVA_SESSION_DEFAULT_COOKIE_DOMAIN NULL
#define GUAVA_SESSION_DEFAULT_COOKIE_SECURE GUAVA_FALSE
#define GUAVA_SESSION_DEFAULT_COOKIE_HTTPONLY GUAVA_FALSE
typedef struct {
guava_session_store_t store;
PyObject *items; /* Dict for storing key-value data */
} guava_session_store_inmem_t;
typedef struct {
guava_session_store_t store;
guava_string_t path;
} guava_session_store_file_t;
typedef guava_string_t guava_session_id_t;
guava_session_id_t guava_session_new_id(void);
guava_session_id_t guava_session_new_id_raw(const char *id);
void guava_session_id_free(guava_session_id_t id);
guava_session_store_t *guava_session_store_new(guava_session_store_type_t type);
void guava_session_store_free(guava_session_store_t *store);
PyObject *guava_session_get(guava_session_store_t *store, guava_session_id_t id);
PyObject *guava_session_set(guava_session_store_t *store, guava_session_id_t id, PyObject *items);
PyObject *guava_session_delete(guava_session_store_t *store, guava_session_id_t id);
#endif /* !__GUAVA_SESSION_H__ */
| 30.857143
| 98
| 0.823413
|
0d9296cd6e0615f1719dfd6be309d54866c5a2ec
| 4,186
|
rb
|
Ruby
|
app/models/user_event.rb
|
extension/ask
|
2c574a5c05f98adca91be72d0df0450359cd7fd4
|
[
"BSD-Source-Code"
] | null | null | null |
app/models/user_event.rb
|
extension/ask
|
2c574a5c05f98adca91be72d0df0450359cd7fd4
|
[
"BSD-Source-Code"
] | 20
|
2017-11-21T15:17:57.000Z
|
2021-05-18T07:29:16.000Z
|
app/models/user_event.rb
|
extension/ask
|
2c574a5c05f98adca91be72d0df0450359cd7fd4
|
[
"BSD-Source-Code"
] | null | null | null |
class UserEvent < ActiveRecord::Base
belongs_to :creator, :class_name => "User", :foreign_key => "created_by"
belongs_to :user
after_create :create_user_event_notification
serialize :updated_user_attributes
# USER EVENTS
CHANGED_TAGS = 100
CHANGED_VACATION_STATUS = 101
ADDED_LOCATION = 102
REMOVED_LOCATION = 103
ADDED_COUNTY = 104
REMOVED_COUNTY = 105
ADDED_TAGS = 106
REMOVED_TAGS = 107
UPDATED_DESCRIPTION = 108
UPDATED_PROFILE = 109
UPDATED_ANSWERING_PREFS = 110
REMOVED_GROUP = 111
EVENT_STRINGS = {
CHANGED_TAGS => 'changed tags',
CHANGED_VACATION_STATUS => 'changed vacation status',
ADDED_LOCATION => 'added expertise location',
REMOVED_LOCATION => 'removed expertise location',
ADDED_COUNTY => 'added expertise county',
REMOVED_COUNTY => 'removed expertise county',
ADDED_TAGS => 'added expertise tag',
REMOVED_TAGS => 'removed expertise tag',
UPDATED_DESCRIPTION => 'updated description',
UPDATED_PROFILE => 'updated profile',
UPDATED_ANSWERING_PREFS => 'updated answering preferences',
REMOVED_GROUP => 'removed from group'
}
def description
EVENT_STRINGS[self.event_code]
end
def self.log_generic_user_event(user, initiator, edit_hash, user_event)
return self.log_user_changes(user, initiator, user_event, {what_changed: edit_hash})
end
def self.log_removed_group(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, REMOVED_GROUP, edit_hash)
end
def self.log_added_tags(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, ADDED_TAGS, edit_hash)
end
def self.log_removed_tags(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, REMOVED_TAGS, edit_hash)
end
def self.log_updated_vacation_status(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, CHANGED_VACATION_STATUS, edit_hash)
end
def self.log_added_location(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, ADDED_LOCATION, edit_hash)
end
def self.log_removed_location(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, REMOVED_LOCATION, edit_hash)
end
def self.log_added_county(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, ADDED_COUNTY, edit_hash)
end
def self.log_removed_county(user, initiator, edit_hash)
return self.log_user_changes(user, initiator, REMOVED_COUNTY, edit_hash)
end
def self.log_user_changes(user, initiator, event_code, edit_hash = nil)
log_attributes = {}
log_attributes[:created_by] = initiator.id
log_attributes[:user_id] = user.id
log_attributes[:event_code] = event_code
log_attributes[:updated_user_attributes] = edit_hash
return UserEvent.create(log_attributes)
end
def create_user_event_notification
if self.creator != self.user
case self.event_code
when ADDED_TAGS, REMOVED_TAGS
if !Notification.pending_tag_edit_notification?(self)
Notification.create(notifiable: self, created_by: self.created_by, recipient_id: self.user_id,
notification_type: Notification::AAE_EXPERT_TAG_EDIT, delivery_time: 1.minute.from_now )
end
when CHANGED_VACATION_STATUS
Notification.create(notifiable: self, created_by: self.created_by, recipient_id: self.user_id,
notification_type: Notification::AAE_EXPERT_VACATION_EDIT, delivery_time: 1.minute.from_now )
when REMOVED_GROUP
Notification.create(notifiable: self, created_by: self.created_by, recipient_id: self.user_id,
notification_type: Notification::AAE_EXPERT_GROUP_EDIT, delivery_time: 1.minute.from_now )
when ADDED_LOCATION, REMOVED_LOCATION, ADDED_COUNTY, REMOVED_COUNTY
if !Notification.pending_location_edit_notification?(self)
Notification.create(notifiable: self, created_by: self.created_by, recipient_id: self.user_id,
notification_type: Notification::AAE_EXPERT_LOCATION_EDIT, delivery_time: 1.minute.from_now )
end
end
end
end
end
| 37.375
| 123
| 0.742236
|
c6bf860052df08162074961c5dcec3c990c8c624
| 2,938
|
css
|
CSS
|
wbs.css
|
Berresu/Weasley
|
f33a76c6db4e2b9360aa548bd0b4ea470ff00864
|
[
"Unlicense"
] | null | null | null |
wbs.css
|
Berresu/Weasley
|
f33a76c6db4e2b9360aa548bd0b4ea470ff00864
|
[
"Unlicense"
] | null | null | null |
wbs.css
|
Berresu/Weasley
|
f33a76c6db4e2b9360aa548bd0b4ea470ff00864
|
[
"Unlicense"
] | null | null | null |
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
min-height: 100vh;
height: 1000px;
display: grid;
grid-template-columns: 3fr;
grid-template-rows: 450px 3fr 2fr 1fr;
grid-template-areas:
"header"
"article"
"aside"
"footer"
;
}
header{
grid-area: header;
background-color: #F26B33;
background-image: url(images/wbsLogo.fw.png);
background-repeat: no-repeat;
background-size: 100px;
}
header > h1{
display: flex;
justify-content: center;
align-items: flex-start;
padding: 75px;
font-family: Merriweather;
font-weight: bolder;
color: #482368;
}
header > ul{
display: flex;
justify-content: end;
padding: 10px;
list-style-type: none;
word-spacing: 20px;
}
header > ul >li{
padding: 10px;
font-family: Merriweather;
font-weight: bolder;
}
header > ul > li > a{
font-weight: bolder;
text-decoration: none;
color: #482368;
}
header > div{
display: flex;
justify-content: center;
}
article{
grid-area: article;
background-color: #FFB171;
display: flex;
}
.yumruklayanTeleskop{
display: flex;
flex-direction: column;
flex: 1 1 33%;
}
.pigmePofidik{
display: flex;
flex-direction: column;
flex: 1 1 33%;
}
.askIksiri{
display: flex;
flex-direction: column;
flex: 1 1 33%;
}
.yumruklayanTeleskop > img{
height: 200px;
width: 100px;
display: flex;
flex-direction: column;
justify-content: center;
margin: 20px;
}
.pigmePofidik > img{
display: flex;
flex-direction: column;
justify-content: flex-start;
margin: 20px;
}
.askIksiri > img{
height: 150px;
width: 200px;
display: flex;
flex-direction: column;
justify-content: center;
margin: 20px;
}
.yumruklayanTeleskop > h3{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
word-spacing: 5px;
padding: 15px;
}
.yumruklayanTeleskop > p{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
padding: 15px;
}
.pigmePofidik > h3{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
word-spacing: 5px;
padding: 15px;
margin-top: 25px;
}
.pigmePofidik > p{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
padding: 15px;
}
.askIksiri > h3{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
word-spacing: 5px;
padding: 8px;
margin-top: 40px;
}
.askIksiri > p{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
padding: 15px;
}
aside{
grid-area: aside;
background-color: #FD7840;
}
footer{
grid-area: footer;
background-color: #713015;
}
| 18.713376
| 76
| 0.59258
|
69a57f1cdc047bb82b26254849ae58ff7029b4af
| 815
|
rb
|
Ruby
|
test/test-link.rb
|
vjoel/spinoza
|
dae4e581fe563c1953b084474434e84fb332562e
|
[
"BSD-2-Clause"
] | 3
|
2019-10-21T16:13:43.000Z
|
2022-02-16T01:10:36.000Z
|
test/test-link.rb
|
vjoel/spinoza
|
dae4e581fe563c1953b084474434e84fb332562e
|
[
"BSD-2-Clause"
] | null | null | null |
test/test-link.rb
|
vjoel/spinoza
|
dae4e581fe563c1953b084474434e84fb332562e
|
[
"BSD-2-Clause"
] | 1
|
2019-11-01T12:56:22.000Z
|
2019-11-01T12:56:22.000Z
|
require 'minitest/autorun'
require 'spinoza/system/link'
class TestLink < Minitest::Test
include Spinoza
class MockNode
attr_reader :msgs
def initialize
@msgs = []
end
def recv msg: nil
@msgs << msg
end
end
def setup
@timeline = Timeline.new
@node1 = MockNode.new
@node2 = MockNode.new
@link = Link[timeline: @timeline,
src: @node1, dst: @node2, latency: 1.0
]
end
def test_link
@link.send_message "hello"
assert_equal [], @node2.msgs
@timeline.evolve 0.9
assert_equal [], @node2.msgs
@timeline.evolve 0.2
assert_equal ["hello"], @node2.msgs
end
def test_fifo
@link.send_message "foo"
@link.send_message "bar"
@timeline.evolve 1.0
assert_equal ["foo", "bar"], @node2.msgs
end
end
| 18.522727
| 44
| 0.619632
|
4772b354a97bd5c456782cfd45baa5430036d876
| 564
|
rb
|
Ruby
|
lib/generators/rails_lti2_provider/resource_handler/resource_handler_generator.rb
|
Billzzhang/rails_lti2_provider
|
eeb3636a0253acab2e33f916cbd60bc4c2d89d8f
|
[
"MIT"
] | null | null | null |
lib/generators/rails_lti2_provider/resource_handler/resource_handler_generator.rb
|
Billzzhang/rails_lti2_provider
|
eeb3636a0253acab2e33f916cbd60bc4c2d89d8f
|
[
"MIT"
] | 1
|
2020-09-24T17:54:34.000Z
|
2020-09-24T17:54:34.000Z
|
lib/generators/rails_lti2_provider/resource_handler/resource_handler_generator.rb
|
Billzzhang/rails_lti2_provider
|
eeb3636a0253acab2e33f916cbd60bc4c2d89d8f
|
[
"MIT"
] | 9
|
2016-10-17T21:29:34.000Z
|
2020-07-14T14:35:47.000Z
|
# frozen_string_literal: true
class RailsLti2Provider
class ResourceHandlerGenerator < Rails::Generators::NamedBase
source_root File.expand_path('templates', __dir__)
argument :name, type: :string
class_option :code, type: :string
class_option :description, type: :string
class_option :route_path, type: :string
class_option :controller, type: :string
class_option :action, type: :string
def create_resource_handler
template('resource_handler.yml.erb', "config/resource_handlers/#{name.underscore}.yml")
end
end
end
| 31.333333
| 93
| 0.744681
|
6b7230dbec4ddcdc6c6f750718a3314d8eca215a
| 2,809
|
js
|
JavaScript
|
src/utilities/order/razorpayPayment.js
|
VishalPatil18/viskart-react-version
|
8ee78310d23eedb8daf793efcdafbdb6e0562eb3
|
[
"MIT"
] | 1
|
2022-03-16T17:10:35.000Z
|
2022-03-16T17:10:35.000Z
|
src/utilities/order/razorpayPayment.js
|
VishalPatil18/viskart-react-version
|
8ee78310d23eedb8daf793efcdafbdb6e0562eb3
|
[
"MIT"
] | 20
|
2022-03-16T10:19:32.000Z
|
2022-03-31T03:54:26.000Z
|
src/utilities/order/razorpayPayment.js
|
VishalPatil18/viskart-react-version
|
8ee78310d23eedb8daf793efcdafbdb6e0562eb3
|
[
"MIT"
] | null | null | null |
/**
* Welcome to @VISKart / SRC / UTILITIES / ORDER / RAZORPAY_PAYMENT!
*
* This is a razorpay script and function used for payment integration
*
* @type - function
* @param {object} orderState - A state object which has all order details from orderContext
* @param {function} orderDispatch - Dispatch function to change the orderState in orderContext
* @param {function} cartDispatch - Dispatch function to change the cartState in cartContext
* @param {function} navigate - Function used to navigate from one route to another
* @param {string} token - Auth token which verifies users auth activity
* @return - no return
* @export {function} displayRazorpay - The function that performs the mock payment
* @see Source - https://github.com/VishalPatil18/viskart-react-version
*/
import { v4 as uuid } from "uuid";
import { clearCartService } from "../../services";
import { toast } from "react-toastify";
const loadScript = async (url) => {
return new Promise((resolve) => {
const script = document.createElement("script");
script.src = url;
script.onload = () => {
resolve(true);
};
script.onerror = () => {
resolve(false);
};
document.body.appendChild(script);
});
};
const displayRazorpay = async (
orderState,
orderDispatch,
cartDispatch,
navigate,
token
) => {
const res = await loadScript("https://checkout.razorpay.com/v1/checkout.js");
if (!res) {
toast.error("Razorpay SDK failed to load, check you connection!");
return;
}
const options = {
key: "rzp_test_vguN3MRhaRJi4G",
amount: orderState.priceDetails.totalAmount * 75 * 100,
currency: "INR",
name: "VISKart",
description: "Thank you for shopping with us! Enjoy your Games",
image:
"https://raw.githubusercontent.com/VishalPatil18/VISKart/development/assets/logo.svg",
handler: async function () {
const response = await clearCartService(token);
if (response.status === 200) {
cartDispatch({
type: "RESET_CART",
});
orderDispatch({
type: "ADD_NEW_ORDER",
payload: {
order: {
id: uuid(),
date: new Date(),
items: orderState.items,
priceDetails: orderState.priceDetails,
address: orderState.address,
},
},
});
navigate("/user");
toast.success("Order Placed Successfully!");
} else {
toast.error("Order Failed! Please try again!");
}
},
prefill: {
name: "Bablu Tailor",
email: "bablu@gmail.com",
contact: "9876543210",
},
theme: {
color: "#23A6F0",
},
};
const paymentObject = new window.Razorpay(options);
paymentObject.open();
};
export { displayRazorpay };
| 28.958763
| 95
| 0.625489
|
d25b5dcfe4c447b391e2628a80518d33b7a3e4b2
| 2,298
|
css
|
CSS
|
src/main/webapp/static1/css/add-line.css
|
zhouyitong/bmwnews
|
923ac4bdff601da3dad74776e611bf0aee3f7812
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
src/main/webapp/static1/css/add-line.css
|
zhouyitong/bmwnews
|
923ac4bdff601da3dad74776e611bf0aee3f7812
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
src/main/webapp/static1/css/add-line.css
|
zhouyitong/bmwnews
|
923ac4bdff601da3dad74776e611bf0aee3f7812
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
.content-wrap main .goback-wrapper{
padding: 0.8vw;
border-bottom: 1px solid #efefef;
}
.content-wrap main .goback-wrapper a{
display: inline-block;
}
.content-wrap main .goback-wrapper a img{
width: 0.5vw;
display: inline-block;
}
.content-wrap main .goback-wrapper span{
font-size: 0.93vw;
color: #333;
display: inline-block;
padding-left: 0.7vw;
}
.content-wrap main .check-form{
margin-top: 4vw;
}
.content-wrap main .check-form table{
width: 70%;
margin: 0 auto;
margin-bottom: 48px;
}
.content-wrap main .check-form table tr td{
font-size: 12px;
color: #666;
border: 1px solid #ccc;
position: relative;
}
.content-wrap main .check-form table tr .chuli-details{
height: 5vw;
}
.content-wrap main .check-form table tr .chuli-details textarea{
width: 100%;
border: none;
resize: none;
border-top: 1px solid #ccc;
font-size: 12px;
}
.content-wrap main .check-form table tr td input[type='text']{
width: 100%;
border: none;
text-align: center;
font-size: 12px;
height: 100%;
}
.content-wrap main .check-form table tr td select{
width: 87%;
height: 100%;
border: none;
text-align: center;
font-size: 12px;
margin-left:13%;
}
.content-wrap main .check-form table tr td select option{
font-size: 12px;
background-color: #f1f1f1;
}
.content-wrap main .check-form table tr .label{
background-color: #F3F4F7;
padding: 0.7vw 0;
text-align: center;
}
.content-wrap main .check-form table tr .label span{
color: #C30D23;
}
.content-wrap main .check-form table tr .label div span{
color: #C30D23;
}
.content-wrap main .check-form table tr .thead{
padding: 0.8vw 0;
padding-left: 0.4vw;
}
.content-wrap main .check-form table tr .thead span{
font-size: 0.83vw;
color: #C30C23;
}
.content-wrap main .check-form table tr .button{
text-align: center;
border: none;
padding: 48px 0;
}
.content-wrap main .check-form table tr .button input{
text-align: center;
border: none;
font-size: 0.93vw;
background-color: #c30d23;
color: #fff;
padding: 0.8vw 2.5vw;
border-radius: 4px;
display: inline-block;
width: auto;
height: auto;
}
.content-wrap main .check-form table tr .button .gray{
background-color: #ccc;
margin-left: 2.5vw;
}
| 22.752475
| 65
| 0.664056
|
debb26c701cfdcebcf63780f171d30285bf9d5dd
| 9,720
|
ps1
|
PowerShell
|
ADU/OLDER/Scripts/Fabric/Validate_PDW_XMLs.ps1
|
Bhaskers-Blu-Org2/ADU
|
d36ba12a759b8d53bdfe3fede77177e85783a69b
|
[
"MIT"
] | 7
|
2019-10-28T07:55:50.000Z
|
2021-11-30T14:14:13.000Z
|
ADU/OLDER/Scripts/Fabric/Validate_PDW_XMLs.ps1
|
ConnectionMaster/ADU
|
d36ba12a759b8d53bdfe3fede77177e85783a69b
|
[
"MIT"
] | 8
|
2019-05-14T17:35:42.000Z
|
2021-07-28T15:07:54.000Z
|
ADU/OLDER/Scripts/Fabric/Validate_PDW_XMLs.ps1
|
ConnectionMaster/ADU
|
d36ba12a759b8d53bdfe3fede77177e85783a69b
|
[
"MIT"
] | 8
|
2019-05-10T20:49:54.000Z
|
2021-11-30T14:13:43.000Z
|
#* FileName: ValidateAPSXML.ps1
#*=============================================
#* Script Name: ValidateAPSXML.ps1
#* Created: [9/12/2014]
#* Author: Kristine Lange, Nick Salch
#* Company: Microsoft
#* Email: krlange@microsoft.com, nicksalch@microsoft.com
#* Reqrmnts:
#*
#* Keywords:
#*=============================================
#* Purpose: Check ApplianceInfo and Definition XMLs
#* For duplicate IPs and if IPs are within range
#* Future versions will do more verifications against the XML
#*=============================================
#*=============================================
#* REVISION HISTORY
#*=============================================
#* Modified: 10/3/2014
#* 1. Include ClusterIpAddress, ClusterIpAddress0 in the duplicate check
#* 2. Checks if IP is within the specified range (only supports /24 right now)
#*
#*=============================================
#* Modified: 10/7/2014
#* 1. Added ValidateAPSXML to ADU
#* 2. Move GetDuplicate function to PDWFunctions.ps1 for cleaner code
#* in preparation for adding code for other validations
#* 3. Validate definition XMLs
#*=============================================
. $rootPath\Functions\PdwFunctions.ps1
. $rootPath\Functions\ADU_Utils.ps1
#Setup logging
$ErrorActionPreference = "stop" #So that we can trap errors
$WarningPreference = "inquire" #we want to pause on warnings
$source = $MyInvocation.MyCommand.Name #Set Source to current scriptname
New-EventLog -Source $source -LogName "Application" -ErrorAction SilentlyContinue #register the source for the event log
Write-EventLog -Source $source -logname "Application" -EventID 9999 -EntryType Information -message "Starting $source" #first event logged
function ValidateApplianceInfoXML
{
#Check if user wants to specify a different XML path
write-host "If on the appliance, must be run from HST01 where ConfigureEthernet will be executed. " -ForegroundColor Cyan
[string]$xmlpath = read-host "`If running outside of appliance, specify local path (default = C:\PDWINST\Media)"
if ($xmlpath -eq "")
{
$xmlpath = "C:\PDWINST\Media\ApplianceInfo.xml"
}
[xml]$AInfo = Get-Content $xmlpath
[array]$IPs = $null
[array]$IPAll = $null
[int[]]$Octet4 = $null
$X = 0
$DHCPServerX = $AInfo.ApplianceInfo.Regions.Region.DhcpServer.DhcpServerStartRange
$DHCPServerStart = ([ipaddress] $DHCPServerX).GetAddressBytes()[3]
$DHCPServerEnd = ([ipaddress] $AInfo.ApplianceInfo.Regions.Region.DhcpServer.DhcpServerEndRange).GetAddressBytes()[3]
$Octet1 = ([ipaddress] $DHCPServerX).GetAddressBytes()[0]
$Octet2 = ([ipaddress] $DHCPServerX).GetAddressBytes()[1]
$Octet3 = ([ipaddress] $DHCPServerX).GetAddressBytes()[2]
$IPs += $Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress
$IPs += $Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress0
$IPs += $AInfo.ApplianceInfo.Regions.Region.Nodes.Node.Ethernet
$IPs += $AInfo.ApplianceInfo.Regions.Region.nodes.node.ClusterEthernet | where {$_ -ne $NULL}
$IPs += $AInfo.ApplianceInfo.Regions.Region.Nodes.Node.BMCAddress | where {$_ -ne $NULL}
$IPAll += $AInfo.ApplianceInfo.Regions.Region.Nodes.Node.Ethernet
$IPAll += $AInfo.ApplianceInfo.Regions.Region.nodes.node.ClusterEthernet | where {$_ -ne $NULL}
$IPAll += $AInfo.ApplianceInfo.Regions.Region.Nodes.Node.BMCAddress | where {$_ -ne $NULL}
$IPAll += $AInfo.ApplianceInfo.Regions.Region.nodes.node.IB1
$IPAll += $AInfo.ApplianceInfo.Regions.Region.nodes.node.IB2
$IPAll += $AInfo.ApplianceInfo.Regions.Region.nodes.node.ClusterIB1 | where {$_ -ne $NULL}
$IPAll += $AInfo.ApplianceInfo.Regions.Region.nodes.node.ClusterIB2 | where {$_ -ne $NULL}
# Compare ClusterIP and add single record if the same, else add both
if ($Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress -eq $Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress0)
{
$IPAll += $Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress
}
else
{
$IPAll += $Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress
$IPAll += $Ainfo.ApplianceInfo.Regions.Region.Cluster.ClusterIpAddress0
}
# Retrieve duplicate IPs
$dups = getDuplicate $IPAll
if ($dups)
{
write-host "Duplicates found: " $dups
}
else
{
write-host "No duplicates found" -ForegroundColor Green
}
# Check if IPs are within range
write-host "Checking if IPs are within DHCP Server start and end range" -ForegroundColor Cyan
foreach ($IP in $IPs)
{
$Octet4 = $IP | % {$_.split(".")[3]}
if (($Octet4 -lt $DHCPServerStart) -or ($Octet4 -gt $DHCPServerEnd))
{
write-host "$IP outside of range" -ForegroundColor Red
$X = $X + 1
}
}
if ($X -eq 0)
{
write-host "All Ethernet IPs are within the specified range of $DHCPServerX - $DHCPServerEnd" -ForegroundColor Green
}
}
function ValidateDefinitionXMLs
{
#Variable assignment
[array]$IPsForRangeValidation = $null
[array]$IPsFromPDWDefn = $null
[array]$IPsFromHostDefn = $null
[array]$IPsFromFabricDefn = $null
#Load definition XMLs
[xml]$tempAppliancePDWDefn = Get-Content "c:\PDWINST\Media\AppliancePDWDefinition.xml" -ErrorAction Stop
$PDWDomain = GetPdwDomainNameFromXML
$WorkloadAdmin = Get-Credential -Username "$PDWDomain\administrator" -Message "Enter Workload Admin Password"
[xml]$appliancePDWDefn = LoadPDWDefinitionXMLFromCTL($WorkloadAdmin)
[xml]$applianceFabricDefn = LoadFabricDefinitionXMLFromCTL($WorkloadAdmin)
[xml]$applianceHostDefn = LoadHostDefinitionXMLFromCTL($WorkloadAdmin)
#Retrieve all IPs
#Start with PDWDefn
$IPsFromPDWDefn += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.IB1
$IPsFromPDWDefn += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.IB2
$IPsFromPDWDefn += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.Ethernet
$IPsFromPDWDefn += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.ClusterEthernet
$IPsFromPDWDefn += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.ClusterIB1
$IPsFromPDWDefn += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.ClusterIB2
$IPsForRangeValidation += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.Ethernet
$IPsForRangeValidation += $appliancePDWDefn.AppliancePdw.Region.Nodes.Node.ClusterEthernet
#PDWHost
$IPsFromHostDefn += $applianceHostDefn.ApplianceHost.Appliance.Regions.Region.Clusters.Cluster.Nodes.Node.Ethernet
$IPsFromHostDefn += $applianceHostDefn.ApplianceHost.Appliance.Regions.Region.Clusters.Cluster.Nodes.Node.IB1
$IPsFromHostDefn += $applianceHostDefn.ApplianceHost.Appliance.Regions.Region.Clusters.Cluster.Nodes.Node.IB2
$IPsFromHostDefn += $applianceHostDefn.ApplianceHost.Appliance.Regions.Region.Clusters.Cluster.Nodes.Node.BMCAddress
$IPsForRangeValidation += $applianceHostDefn.ApplianceHost.Appliance.Regions.Region.Clusters.Cluster.Nodes.Node.Ethernet
$IPsForRangeValidation += $applianceHostDefn.ApplianceHost.Appliance.Regions.Region.Clusters.Cluster.Nodes.Node.BMCAddress
#PDWFabric
$IPsFromFabricDefn += $applianceFabricDefn.ApplianceFabric.Region.Nodes.AdNode.Ethernet
$IPsFromFabricDefn += $applianceFabricDefn.ApplianceFabric.Region.Nodes.AdNode.IB1
$IPsFromFabricDefn += $applianceFabricDefn.ApplianceFabric.Region.Nodes.AdNode.IB2
$IPsForRangeValidation += $applianceFabricDefn.ApplianceFabric.Region.Nodes.AdNode.Ethernet
#Check for dups
$DupsinPDW = getDuplicate $IPsFromPDWDefn
$DupsinHost = getDuplicate $IPsFromHostDefn
$DupsinFabric = getDuplicate $IPsFromFabricDefn
if ($DupsinPDW)
{
write-host "Duplicates found in AppliancePDWDefinition: " $DupsinPDW
}
if ($DupsinHost)
{
write-host "Duplicates found in ApplianceHostDefinition: " $DupsinHost
}
if ($DupsinFabric)
{
write-host "Duplicates found in ApplianceFabricDefinition: " $DupsinFabric
}
elseif (($DupsinPDW -eq $null) -and ($DupsinHost -eq $null) -and ($DupsinFabric -eq $null))
{
write-host "No duplicates found in any of the definition XMLs" -ForegroundColor Green
}
# Check if IPs are within range
$DHCPServerX = $applianceFabricDefn.ApplianceFabric.Region.Fabric.DhcpServerStartRange
$DHCPServerStart = ([ipaddress] $DHCPServerX).GetAddressBytes()[3]
$DHCPServerEnd = ([ipaddress] $applianceFabricDefn.ApplianceFabric.Region.Fabric.DhcpServerEndRange).GetAddressBytes()[3]
$Octet1 = ([ipaddress] $DHCPServerX).GetAddressBytes()[0]
$Octet2 = ([ipaddress] $DHCPServerX).GetAddressBytes()[1]
$Octet3 = ([ipaddress] $DHCPServerX).GetAddressBytes()[2]
write-host "Checking if IPs are within DHCP Server start and end range $DHCPServerX - $DHCPServerEnd" -ForegroundColor Cyan
foreach ($IP in $IPsForRangeValidation)
{
$Octet4 = $IP | % {$_.split(".")[3]}
if (($Octet4 -lt $DHCPServerStart) -or ($Octet4 -gt $DHCPServerEnd))
{
write-host "$IP outside of range" -ForegroundColor Red
$X = $X + 1
}
}
if ($X -eq 0)
{
write-host "All Ethernet IPs are within the specified range of $DHCPServerX - $DHCPServerEnd" -ForegroundColor Green
}
}
#Main code
[byte]$ValidateXMLAction = read-host "Type 1 if validating definition XMLs or 2 for ApplianceInfo"
If ($ValidateXMLAction -eq 1)
{
ValidateDefinitionXMLs
}
Elseif ($ValidateXMLAction -eq 2)
{
ValidateApplianceInfoXML
}
Else
{
write-host "Not a valid choice. Run tool again and choose 1 or 2." -ForegroundColor Red
}
| 42.26087
| 138
| 0.697119
|
b1a994c05ae3cce8ac512f1a993b164b9decc7a9
| 328
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/env/esxdos/c/sccz80/env_getenv_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/env/esxdos/c/sccz80/env_getenv_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/env/esxdos/c/sccz80/env_getenv_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; char *env_getenv(unsigned char handle,const char *name,char *val,unsigned int valsz,void *buf,unsigned int bufsz)
SECTION code_env
PUBLIC env_getenv_callee
EXTERN asm_env_getenv
env_getenv_callee:
pop af
pop bc
pop hl
exx
pop bc
pop de
pop hl
exx
pop de
exx
push af
jp asm_env_getenv
| 13.666667
| 115
| 0.707317
|
c944ec23c8b39940fcfcbd9432a74da3a70288fc
| 279
|
ts
|
TypeScript
|
protractor-typescript/example-on-prepare/config.ts
|
peterwkc85/protractor-cookbook
|
83bd7b88038e25585821838875ea090096eae163
|
[
"MIT"
] | 153
|
2016-08-01T18:28:14.000Z
|
2021-11-08T09:44:22.000Z
|
protractor-typescript/example-on-prepare/config.ts
|
peterwkc85/protractor-cookbook
|
83bd7b88038e25585821838875ea090096eae163
|
[
"MIT"
] | 31
|
2016-08-22T18:35:48.000Z
|
2019-02-27T07:16:15.000Z
|
protractor-typescript/example-on-prepare/config.ts
|
peterwkc85/protractor-cookbook
|
83bd7b88038e25585821838875ea090096eae163
|
[
"MIT"
] | 94
|
2016-08-01T18:29:22.000Z
|
2021-11-16T12:01:18.000Z
|
import { browser, Config } from 'protractor';
export let config: Config = {
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
specs: [ '../spec.js' ],
onPrepare: () => {
browser.manage().window().maximize();
browser.manage().timeouts().implicitlyWait(5000);
}
};
| 25.363636
| 53
| 0.623656
|
1f064d086b7b06577ed6f51e636cf60be84dcb62
| 2,715
|
cs
|
C#
|
Zelig/Zelig/CompileTime/TargetModels/ProductConfiguration/Abstractions/ARM/Operators/VectorHack_Base.cs
|
NETMF/llilum
|
7ac7669fe205572e8b572b4f3697e5f802e574be
|
[
"MIT"
] | 188
|
2015-07-08T21:13:28.000Z
|
2022-01-01T09:29:33.000Z
|
Zelig/Zelig/CompileTime/TargetModels/ProductConfiguration/Abstractions/ARM/Operators/VectorHack_Base.cs
|
lt72/llilum
|
7ac7669fe205572e8b572b4f3697e5f802e574be
|
[
"MIT"
] | 239
|
2015-07-10T00:48:20.000Z
|
2017-09-21T14:04:58.000Z
|
Zelig/Zelig/CompileTime/TargetModels/ProductConfiguration/Abstractions/ARM/Operators/VectorHack_Base.cs
|
lt72/llilum
|
7ac7669fe205572e8b572b4f3697e5f802e574be
|
[
"MIT"
] | 73
|
2015-07-09T21:02:42.000Z
|
2022-01-01T09:31:26.000Z
|
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Zelig.Configuration.Environment.Abstractions.ARM
{
using System;
using System.Collections.Generic;
using Microsoft.Zelig.Runtime.TypeSystem;
using Microsoft.Zelig.CodeGeneration.IR;
public abstract class VectorHack_Base : Operator
{
private const OperatorCapabilities cCapabilities = OperatorCapabilities.IsNonCommutative |
OperatorCapabilities.DoesNotMutateExistingStorage |
OperatorCapabilities.DoesNotAllocateStorage |
OperatorCapabilities.DoesNotReadExistingMutableStorage |
OperatorCapabilities.DoesNotThrow |
OperatorCapabilities.DoesNotReadThroughPointerOperands |
OperatorCapabilities.DoesNotWriteThroughPointerOperands |
OperatorCapabilities.DoesNotCapturePointerOperands ;
//
// State
//
private int m_size;
//
// Constructor Methods
//
protected VectorHack_Base( Debugging.DebugInfo debugInfo ,
int size ) : base( debugInfo, cCapabilities, OperatorLevel.Lowest )
{
m_size = size;
}
//--//
//
// Helper Methods
//
public override void ApplyTransformation( TransformationContextForIR context )
{
TransformationContextForCodeTransformation context2 = (TransformationContextForCodeTransformation)context;
context2.Push( this );
base.ApplyTransformation( context2 );
context2.Transform( ref m_size );
context2.Pop();
}
//--//
public override bool CanPropagateCopy( Expression exOld ,
Expression exNew )
{
return false;
}
//
// Access Methods
//
public override bool ShouldNotBeRemoved
{
[System.Diagnostics.DebuggerHidden]
get
{
return true;
}
}
public int Size
{
get
{
return m_size;
}
}
//
// Debug Methods
//
}
}
| 28.578947
| 123
| 0.478821
|
386c8edc6f4df4bbb321136c9a7d47854e4ce53f
| 2,758
|
php
|
PHP
|
lib/components/web/ObjectViewEvent.php
|
canis-io/cascade-lib
|
277baba117b3a992a70765ee71b21a4f7a5a03b0
|
[
"BSD-3-Clause"
] | null | null | null |
lib/components/web/ObjectViewEvent.php
|
canis-io/cascade-lib
|
277baba117b3a992a70765ee71b21a4f7a5a03b0
|
[
"BSD-3-Clause"
] | null | null | null |
lib/components/web/ObjectViewEvent.php
|
canis-io/cascade-lib
|
277baba117b3a992a70765ee71b21a4f7a5a03b0
|
[
"BSD-3-Clause"
] | null | null | null |
<?php
/**
* @link http://psesd.org/
*
* @copyright Copyright (c) 2015 Puget Sound ESD
* @license http://psesd.org/license/
*/
namespace cascade\components\web;
/**
* ObjectViewEvent [[@doctodo class_description:cascade\components\web\ObjectViewEvent]].
*
* @author Jacob Morrison <email@ofjacob.com>
*/
class ObjectViewEvent extends \yii\base\Event
{
/**
* @var [[@doctodo var_type:action]] [[@doctodo var_description:action]]
*/
public $action;
/**
* @var [[@doctodo var_type:accessed]] [[@doctodo var_description:accessed]]
*/
public $accessed = true;
/**
* @var [[@doctodo var_type:_object]] [[@doctodo var_description:_object]]
*/
protected $_object;
/**
* @var [[@doctodo var_type:_objectType]] [[@doctodo var_description:_objectType]]
*/
protected $_objectType;
/**
* [[@doctodo method_description:handleWith]].
*
* @param [[@doctodo param_type:callable]] $callable [[@doctodo param_description:callable]]
* @param boolean $always [[@doctodo param_description:always]] [optional]
*
* @return [[@doctodo return_type:handleWith]] [[@doctodo return_description:handleWith]]
*/
public function handleWith($callable, $always = false)
{
if ($this->handled && !$always) {
return false;
}
if (!is_callable($callable)) {
return false;
}
call_user_func($callable, $this);
return false;
}
/**
* Set object.
*
* @param [[@doctodo param_type:object]] $object [[@doctodo param_description:object]]
*/
public function setObject($object)
{
if (is_null($this->_objectType)) {
$this->objectType = $object->objectType;
}
$this->_object = $object;
}
/**
* Get object.
*
* @return [[@doctodo return_type:getObject]] [[@doctodo return_description:getObject]]
*/
public function getObject()
{
return $this->_object;
}
/**
* Set object type.
*
* @param [[@doctodo param_type:type]] $type [[@doctodo param_description:type]]
*/
public function setObjectType($type)
{
if (!is_object($type)) {
if (Yii::$app->collectors['types']->has($type)) {
$type = Yii::$app->collectors['types']->getOne($type)->object;
} else {
$type = null;
}
}
$this->_objectType = $type;
}
/**
* Get object type.
*
* @return [[@doctodo return_type:getObjectType]] [[@doctodo return_description:getObjectType]]
*/
public function getObjectType()
{
return $this->_objectType;
}
}
| 26.018868
| 105
| 0.566715
|
5474d1055a9227ae18067d957fff7a21196368cd
| 76
|
kt
|
Kotlin
|
Project/StompCovidRumors/app/src/main/java/com/example/stompcovidrumors/User.kt
|
kuamia360/CMSC436Project
|
97bec99b565fdd266dc01b953be96b142e548f42
|
[
"MIT"
] | null | null | null |
Project/StompCovidRumors/app/src/main/java/com/example/stompcovidrumors/User.kt
|
kuamia360/CMSC436Project
|
97bec99b565fdd266dc01b953be96b142e548f42
|
[
"MIT"
] | null | null | null |
Project/StompCovidRumors/app/src/main/java/com/example/stompcovidrumors/User.kt
|
kuamia360/CMSC436Project
|
97bec99b565fdd266dc01b953be96b142e548f42
|
[
"MIT"
] | 1
|
2020-11-05T23:56:46.000Z
|
2020-11-05T23:56:46.000Z
|
package com.example.stompcovidrumors
data class User (val email: String="")
| 25.333333
| 38
| 0.789474
|
d15c10301649093807a858625c8c48514643ccab
| 1,200
|
cshtml
|
C#
|
src/Orchard.Web/Themes/OrchardProsTheme/Views/Tickets.List.Filter.Functions.cshtml
|
sfmskywalker/Orchard-Pros
|
70e35167d3853e28daf75d092ab8a91f20ed0b01
|
[
"BSD-3-Clause"
] | 2
|
2019-07-18T23:37:15.000Z
|
2019-07-19T17:59:24.000Z
|
src/Orchard.Web/Themes/OrchardProsTheme/Views/Tickets.List.Filter.Functions.cshtml
|
sfmskywalker/Orchard-Pros
|
70e35167d3853e28daf75d092ab8a91f20ed0b01
|
[
"BSD-3-Clause"
] | null | null | null |
src/Orchard.Web/Themes/OrchardProsTheme/Views/Tickets.List.Filter.Functions.cshtml
|
sfmskywalker/Orchard-Pros
|
70e35167d3853e28daf75d092ab8a91f20ed0b01
|
[
"BSD-3-Clause"
] | null | null | null |
@using Orchard.Taxonomies.Models
@{
var categories = (IList<TermPart>)Model.Categories;
var tags = (IList<TermPart>)Model.Tags;
var categoryId = (int?)Model.CategoryId;
var tagId = (int?)Model.TagId;
var selectedCategory = categoryId != null ? categories.SingleOrDefault(x => x.Id == categoryId) : default(TermPart);
var selectedTag = tagId != null ? tags.SingleOrDefault(x => x.Id == tagId) : default(TermPart);
}
@if (selectedCategory != null || selectedTag != null) {
<!-- Filters -->
<div class="container">
<div class="filters">
<ul>
@if (selectedCategory != null) {
<li class="filter"><a href="@Url.Action("Index", "Ticket", new {tagId = tagId, Area = "OrchardPros"})">@selectedCategory.Name<span class="glyphicon glyphicon-remove"></span></a></li>
}
@if (selectedTag != null) {
<li class="filter"><a href="@Url.Action("Index", "Ticket", new {categoryId = categoryId, Area = "OrchardPros"})">@selectedTag.Name<span class="glyphicon glyphicon-remove"></span></a></li>
}
</ul>
</div>
</div>
<!-- /Filters -->
}
| 46.153846
| 207
| 0.576667
|
e5096aeac664f0188b0e919e5985df6fd79483f4
| 2,817
|
lua
|
Lua
|
milo/plugins/turtleLearn.lua
|
jakedacatman/opus-apps
|
c0092ba52c93862a6d7ad3d05484322fb4dad3e9
|
[
"MIT"
] | 1
|
2019-09-07T14:05:50.000Z
|
2019-09-07T14:05:50.000Z
|
milo/plugins/turtleLearn.lua
|
Ale32bit/opus-apps
|
c0092ba52c93862a6d7ad3d05484322fb4dad3e9
|
[
"MIT"
] | null | null | null |
milo/plugins/turtleLearn.lua
|
Ale32bit/opus-apps
|
c0092ba52c93862a6d7ad3d05484322fb4dad3e9
|
[
"MIT"
] | null | null | null |
local Craft = require('craft2')
local itemDB = require('itemDB')
local Milo = require('milo')
local UI = require('ui')
local Util = require('util')
local turtle = _G.turtle
local context = Milo:getContext()
local function learnRecipe()
local ingredients = Milo:getTurtleInventory()
if not ingredients then
return false, 'No recipe defined'
end
turtle.select(1)
if not turtle.craft() then
return false, 'Failed to craft'
end
local results = Milo:getTurtleInventory()
if not results or not results[1] then
return false, 'Failed to craft'
end
local maxCount
local newRecipe = {
ingredients = ingredients,
}
local numResults = 0
for _,v in pairs(results) do
if v.count > 0 then
numResults = numResults + 1
end
end
if numResults > 1 then
for _,v1 in pairs(results) do
for _,v2 in pairs(ingredients) do
if v1.name == v2.name and
v1.nbtHash == v2.nbtHash and
(v1.damage == v2.damage or
(v1.maxDamage > 0 and v2.maxDamage > 0 and
v1.damage ~= v2.damage)) then
if not newRecipe.crafingTools then
newRecipe.craftingTools = { }
end
local tool = Util.shallowCopy(v2)
if tool.maxDamage > 0 then
tool.damage = '*'
end
--[[
Turtles can only craft one item at a time using a tool :(
]]--
maxCount = 1
newRecipe.craftingTools[Milo:uniqueKey(tool)] = true
v1.craftingTool = true
break
end
end
end
end
local recipe
for _,v in pairs(results) do
if not v.craftingTool then
recipe = v
if maxCount then
recipe.maxCount = maxCount
end
break
end
end
if not recipe then
_debug(results)
_debug(newRecipe)
error('Failed - view system log')
end
newRecipe.count = recipe.count
local key = Milo:uniqueKey(recipe)
if recipe.maxCount ~= 64 then
newRecipe.maxCount = recipe.maxCount
end
for k,ingredient in pairs(Util.shallowCopy(ingredients)) do
if ingredient.maxDamage > 0 then
-- ingredient.damage = '*' -- I don't think this is right
end
ingredients[k] = Milo:uniqueKey(ingredient)
end
context.userRecipes[key] = newRecipe
Util.writeTable(Craft.USER_RECIPES, context.userRecipes)
Craft.loadRecipes()
turtle.emptyInventory()
return recipe
end
local pages = {
turtleCraft = UI.Window {
index = 2,
validFor = 'Turtle Crafting',
notice = UI.TextArea {
x = 2, ex = -2, y = 2, ey = -2,
value =
[[Place recipe in turtle!]],
},
},
}
function pages.turtleCraft:validate()
local recipe, msg = learnRecipe(self)
if recipe then
local displayName = itemDB:getName(recipe)
UI:setPage('listing', {
filter = displayName,
message = 'Learned: ' .. displayName,
})
return true
else
self:emit({ type = 'general_error', message = msg })
end
end
UI:getPage('learnWizard').wizard:add(pages)
| 20.713235
| 74
| 0.668797
|
56c9b09425814e6fd5ea97f81f11868a151d2971
| 327
|
rs
|
Rust
|
benches/bench.rs
|
juliencrn/game-of-life
|
49c3fb8eea7b704e19d006ae775c602a487fbb50
|
[
"MIT"
] | null | null | null |
benches/bench.rs
|
juliencrn/game-of-life
|
49c3fb8eea7b704e19d006ae775c602a487fbb50
|
[
"MIT"
] | null | null | null |
benches/bench.rs
|
juliencrn/game-of-life
|
49c3fb8eea7b704e19d006ae775c602a487fbb50
|
[
"MIT"
] | null | null | null |
#![feature(test)]
extern crate game_of_life;
extern crate test;
#[cfg(test)]
mod tests {
use super::*;
use test::Bencher;
#[bench]
fn universe_ticks(bencher: &mut Bencher) {
let mut universe = game_of_life::Universe::new();
bencher.iter(|| {
universe.tick();
});
}
}
| 16.35
| 57
| 0.562691
|
da7a62c285030175e60aeb1fe5615428356e027f
| 3,459
|
php
|
PHP
|
app/Http/Controllers/LinkController.php
|
HugoLuna5/indicadoresItsta
|
b63217c072661f6efe0de665f718939f4edc8b68
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/LinkController.php
|
HugoLuna5/indicadoresItsta
|
b63217c072661f6efe0de665f718939f4edc8b68
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/LinkController.php
|
HugoLuna5/indicadoresItsta
|
b63217c072661f6efe0de665f718939f4edc8b68
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http\Controllers;
use App\model\Carrera;
use App\model\Desercion;
use App\model\Eficencia;
use App\model\Eficiencia;
use App\model\EgresadosT;
use App\model\Link;
use App\model\Matricula;
use App\model\Periodo;
use App\model\Reprobacion;
use App\model\Titulacion;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Auth;
class LinkController extends Controller
{
//
public function linkCompartidoDesercion($code){
$this->deleteLink();
$consultas = DB::table('links')->where('url',$code)->first();
if ($consultas != null){
$md5 = md5(date("Y-m-d"));
$info = DB::table('carreras')->where('id', Auth::user()->carrera)->first();
$carreras = Carrera::all();
$matricula = Matricula::paginate(1);
$deserciones = Desercion::all();
$cont = 22;
$periodos = Periodo::all();
$contador = 0;
return view('servicios', compact('info', 'carreras', 'matricula', 'deserciones', 'periodos', 'md5', 'cont', 'contador'));
}else{
return back();
}
}
public function linkCompartidoReprobados($code){
$this->deleteLink();
$consultas = DB::table('links')->where('url',$code)->first();
if ($consultas != null){
return "No disponible";
}else{
return back();
}
}
public function linkCompartidoEficiencia($code){
$this->deleteLink();
$consultas = DB::table('links')->where('url',$code)->first();
if ($consultas != null){
$md5 = md5(date("Y-m-d"));
$info = DB::table('carreras')->where('id', Auth::user()->carrera)->first();
$carreras = Carrera::all();
$matricula = Matricula::paginate(1);
$eficiencia = Eficiencia::paginate(24);
$cont = 24;
$titulaciones = Titulacion::paginate(24);
$egresadosT = EgresadosT::paginate(24);
$periodos = Periodo::all();
$contador = 0;
return view('desarrollo', compact('info', 'carreras', 'matricula', 'eficiencia', 'periodos', 'md5', 'cont', 'contador', 'titulaciones', 'egresadosT'));
}else{
return back();
}
}
public function linkCompartidoTitulacion($code){
$this->deleteLink();
$consultas = DB::table('links')->where('url',$code)->first();
if ($consultas != null){
$md5 = md5(date("Y-m-d"));
$info = DB::table('carreras')->where('id', Auth::user()->carrera)->first();
$carreras = Carrera::all();
$matricula = Matricula::paginate(1);
$eficiencia = Eficiencia::paginate(24);
$cont = 24;
$titulaciones = Titulacion::paginate(24);
$egresadosT = EgresadosT::paginate(24);
$periodos = Periodo::all();
$contador = 0;
return view('desarrollo', compact('info', 'carreras', 'matricula', 'eficiencia', 'periodos', 'md5', 'cont', 'contador', 'titulaciones', 'egresadosT'));
}else{
return back();
}
}
public function deleteLink(){
$links = Link::all();
foreach ($links as $link){
if ($link->caducidad <= date("Y-m-d")){
DB::table('links')->where('id',$link->id)->delete();
}
}
}
}
| 26.007519
| 163
| 0.532813
|
2fec635bd5314ea66105dfe458535a2412f92701
| 3,832
|
py
|
Python
|
src/models/losses.py
|
wwang107/master-thesis
|
a386613a3351f1c7aeeb8877c8d8586c5bc3e314
|
[
"MIT",
"Unlicense"
] | null | null | null |
src/models/losses.py
|
wwang107/master-thesis
|
a386613a3351f1c7aeeb8877c8d8586c5bc3e314
|
[
"MIT",
"Unlicense"
] | null | null | null |
src/models/losses.py
|
wwang107/master-thesis
|
a386613a3351f1c7aeeb8877c8d8586c5bc3e314
|
[
"MIT",
"Unlicense"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
class WeightedRegLoss(nn.Module):
def __init__(self):
super().__init__()
def forward(self, pred, gt, mask):
assert pred.size() == gt.size()
mask = mask[:, None, :, :].expand_as(pred)
denom = max(mask.sum(), 1)
loss = ((pred - gt)**2) * mask
loss = loss.sum()/denom
return loss
class BalancedRegLoss(nn.Module):
def __init__(self):
super().__init__()
def forward(self, pred, gt, mask = None):
assert pred.size() == gt.size()
if mask != None:
mask = torch.flatten(mask, start_dim=2)
pred = torch.flatten(pred, start_dim=2)
gt = torch.flatten(gt, start_dim=2)
joint_mask = gt >= 0.5
vis_weight = joint_mask.max(2, keepdim=True)[0] * 1.0
eu_loss = ((pred - gt)**2) * vis_weight
joint_loss = eu_loss[joint_mask].sum()
# body_loss = eu_loss[body_mask].sum()
bg_loss = eu_loss[torch.logical_not(joint_mask)].sum()
loss = joint_loss * 10 + bg_loss
return loss
class RegLoss(nn.Module):
def __init__(self):
super().__init__()
def forward(self, pred, gt, mask):
assert pred.size() == gt.size()
mask = mask[:, None, :, :].expand_as(pred)
loss = ((pred - gt)**2) * mask[:, None, :, :]
if vis_map is not None:
loss = loss * vis_map
loss = loss.mean()
return loss
class AnchorLoss(nn.Module):
def __init__(self, gamma = 0.5):
super().__init__()
self.gamma = gamma
self.bce = F.binary_cross_entropy
self.slack = 0.05
def forward(self, pred, gt, mask):
input = torch.sigmoid(pred)
target_mask = (gt > 0.01).type('torch.FloatTensor').cuda()
neg_mask = (1 - target_mask)
max_mask = (gt > 0.5).type('torch.FloatTensor').cuda()
max_pos = input * max_mask
max_pos = max_pos.max(2)[0].max(2)[0]
max_target = (max_mask * gt).max(2)[0].max(2)[0]
pos = torch.ones(gt.size(0), gt.size(1)).cuda() * (1 + self.slack)
pos[max_target > 0] = max_pos[max_target > 0] # pos == 1 when part annotation does not exist
pos = (pos.view(input.size(0), input.size(1), 1, 1) - self.slack).clamp(min=0).detach()
neg_loss = -(input + (1 - pos)).pow(self.gamma) * torch.log((1 - input).clamp(min=1e-20))
neg_loss = neg_mask * neg_loss
pos_loss = -torch.log(input.clamp(min=1e-20))
bg_loss = -torch.log((1-input).clamp(min=1e-20))
bg_loss = target_mask * bg_loss
loss = (gt * pos_loss + (1 - gt) * bg_loss) + neg_loss
return loss.mean()
class JointsMSELoss(nn.Module):
def __init__(self, use_target_weight):
super(JointsMSELoss, self).__init__()
self.criterion = nn.MSELoss(reduction='mean')
self.use_target_weight = use_target_weight
def forward(self, output, target):
batch_size = output.size(0)
num_joints = output.size(1)
heatmaps_pred = output.reshape(
(batch_size, num_joints, -1))
heatmaps_gt = target.reshape(
(batch_size, num_joints, -1))
weights = torch.where(torch.gt(heatmaps_gt, 0.1), torch.tensor(
[1.0]).cuda(), torch.tensor([0.1]).cuda())
loss = 0
for idx in range(num_joints):
heatmap_pred = heatmaps_pred[:, idx]
heatmap_gt = heatmaps_gt[:,idx]
weight = weights[:,idx]
if self.use_target_weight:
loss += self.criterion(heatmap_pred.mul(weight),
heatmap_gt.mul(weight))
else:
loss += self.criterion(heatmap_pred, heatmap_gt)
return loss
| 31.409836
| 101
| 0.564457
|
75d34597264d943a521cc731250ca6bfd4648a9a
| 6,216
|
css
|
CSS
|
common-helpers/main-v2.css
|
hlfcoding/codepen-resources
|
25d5d7829a46bbf52ef86458ab6aa559673c2ab7
|
[
"MIT"
] | 2
|
2018-03-15T17:06:26.000Z
|
2019-12-03T11:09:36.000Z
|
common-helpers/main-v2.css
|
hlfcoding/codepen-resources
|
25d5d7829a46bbf52ef86458ab6aa559673c2ab7
|
[
"MIT"
] | null | null | null |
common-helpers/main-v2.css
|
hlfcoding/codepen-resources
|
25d5d7829a46bbf52ef86458ab6aa559673c2ab7
|
[
"MIT"
] | null | null | null |
:root {
--light-1: rgba(255, 255, 255, 0.1);
--light-2: rgba(255, 255, 255, 0.2);
--light-3: rgba(255, 255, 255, 0.3);
--light-4: rgba(255, 255, 255, 0.4);
--light-5: rgba(255, 255, 255, 0.5);
--light-6: rgba(255, 255, 255, 0.6);
--light-7: rgba(255, 255, 255, 0.7);
--light-8: rgba(255, 255, 255, 0.8);
--light-9: rgba(255, 255, 255, 0.9);
--light: #fff;
--shade-1: rgba(0, 0, 0, 0.1);
--shade-2: rgba(0, 0, 0, 0.2);
--shade-3: rgba(0, 0, 0, 0.3);
--shade-4: rgba(0, 0, 0, 0.4);
--shade-5: rgba(0, 0, 0, 0.5);
--shade-6: rgba(0, 0, 0, 0.6);
--shade-7: rgba(0, 0, 0, 0.7);
--shade-8: rgba(0, 0, 0, 0.8);
--shade-9: rgba(0, 0, 0, 0.9);
--shade: #000;
--codepen-gray: #555;
--codepen-gray-dark: rgb(29, 31, 32);
--prussian-blue-dark: #003153;
--prussian-blue-dark-medium: #004880;
--prussian-blue-medium: #005eaf;
--prussian-blue-medium-light: #2090df;
--prussian-blue-light: #40d0ff;
--prussian-blue-light-white: #aadfea;
--prussian-blue-white: #efefd0;
--md-line-color: var(--shade-1);
--md-fill-color: var(--shade-1);
--md-em-fill-color: var(--shade-2);
--md-em-line-color: var(--shade-2);
--blink-duration: .1s;
--bar-layout-gutter: 1em;
}
/* Layout */
.-bar-layout>button {
display: block;
line-height: 1;
margin-right: var(--bar-layout-gutter);
}
.-bar-layout>button:last-child {
margin-right: 0;
}
.-bar-layout {
display: flex;
}
.-bar-layout>button {
flex: 1 1 auto;
}
@supports not (display: flex) {
.-bar-layout {
display: block;
}
.-bar-layout>button {
float: left;
}
.-bar-layout::before,
.-bar-layout::after {
content: ' ';
display: table;
}
.-bar-layout::after {
clear: both;
}
}
.-centered {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}
.-clearfix::before,
.-clearfix::after {
content: ' ';
display: table;
}
.-clearfix::after {
clear: both;
}
.-text-block {
line-height: 1.5;
padding: 1rem;
}
.-wrapper-block {
margin: 2rem;
}
/* Type */
/* fix spaces (css-tricks.com/fighting-the-space-between-inline-block-elements) */
.-inline-block-context {
font-size: 0;
}
.-inline-block-context > * {
font-size: 1rem;
}
/* Animation */
@keyframes blink {
50% {
opacity: 0;
}
}
.-blink {
animation-name: blink;
animation-duration: var(--blink-duration);
animation-iteration-count: infinite;
animation-timing-function: steps(1);
}
.-static .-blink {
animation-play-state: paused;
}
/* Skin */
.-block-skin {
background: #f2f2f2;
border-bottom: 1px dashed lightgray;
border-top: 1px dashed lightgray;
}
.-card-skin {
background: var(--light-9);
border: 1px solid var(--shade-5);
border-radius: .3rem;
box-shadow: 0 2px 4px 1px var(--shade-1),
0 1px 2px var(--shade-2),
inset 0 0 0 1px var(--light);
padding: 1rem;
}
.-code-skin {
background: #ffc;
border-radius: 4px;
box-shadow: inset 0 0 0 1px #ff3;
display: inline-block;
line-height: 1.5;
margin: 0 0.3em;
padding: 0 0.7em;
}
.-pane-skin {
background: lightgray;
border: 1px solid gray;
box-shadow: inset 0 0 0 1px var(--light-5);
padding: 1rem;
transition: all 0.3s;
}
.-pane-skin:hover {
background: yellow;
}
/* Appearance */
.-input-style-none *,
.-input-style-none {
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
}
.-show-on-hover,
.-show-on-ready {
opacity: 0;
transition: opacity .3s ease-in-out;
}
.-show-on-hover:hover,
.-show-on-ready[data-ready],
.-show-on-ready.ready {
opacity: 1;
}
.-debug {
border: 1px solid red;
}
.-invisible {
opacity: 0;
position: absolute;
z-index: -9999;
}
/* UI */
.helper-button {
background: var(--md-fill-color);
border-radius: 3px;
border: 1px solid var(--md-line-color);
outline: 0;
padding: .5em .7em;
}
.helper-button:hover {
border-color: var(--md-em-line-color);
}
label.helper-radio-button,
label.helper-radio-button > span.helper-button {
display: inline-block;
}
label.helper-radio-button > input[type=radio] {
visibility: hidden;
position: absolute;
}
label.helper-radio-button > input[type=radio]:checked + span.helper-button {
background: var(--md-em-fill-color);
}
hr.helper {
background: var(--md-line-color);
border: 0;
height: 1px;
margin: 1rem 0;
}
.-graphic {
user-select: none;
}
/* Prose */
.markdown {
font-family: 'Helvetica', sans-serif;
padding: 1rem 2rem;
}
.markdown li,
.markdown blockquote,
.markdown p {
line-height: 1.333;
}
.markdown blockquote {
border-left: 4px solid var(--md-line-color);
margin-left: 18px;
padding-left: 18px;
}
.markdown figure {
margin: 0;
}
.markdown hr {
background-color: var(--md-line-color);
border: 0;
height: 1px;
margin: 2rem 0;
}
.markdown code,
.markdown pre {
background: var(--md-fill-color);
}
.markdown code {
padding: .2em .3em;
}
.markdown pre {
font-size: .9rem;
line-height: 1.5;
overflow-x: auto;
padding: 1rem;
}
.markdown pre code {
background: transparent;
padding: 0;
}
.markdown pre:hover,
.markdown pre:focus {
min-width: min-content;
}
.markdown .-pass {
color: green;
}
.markdown .-fail {
color: red;
}
.console > div::before {
content: '> ';
}
.swatches {
font-size: 0;
}
.swatches > [data-color] {
border: 1px solid transparent;
display: inline-block;
height: 1rem;
width: 1rem;
}
.swatches > [data-color]:hover {
border-color: var(--shade-3);
}
/* Swatch */
[data-palette=prussian-blues] [data-color=dark] {
background-color: var(--prussian-blue-dark);
}
[data-palette=prussian-blues] [data-color=dark-medium] {
background-color: var(--prussian-blue-dark-medium);
}
[data-palette=prussian-blues] [data-color=medium] {
background-color: var(--prussian-blue-medium);
}
[data-palette=prussian-blues] [data-color=medium-light] {
background-color: var(--prussian-blue-medium-light);
}
[data-palette=prussian-blues] [data-color=light] {
background-color: var(--prussian-blue-light);
}
[data-palette=prussian-blues] [data-color=light-white] {
background-color: var(--prussian-blue-light-white);
}
[data-palette=prussian-blues] [data-color=white] {
background-color: var(--prussian-blue-white);
}
| 18.893617
| 82
| 0.628218
|
6624f374dcfa19741551e77489533125f55cbe8e
| 9,786
|
py
|
Python
|
venv/lib/python3.6/site-packages/ansible_collections/netapp/elementsw/tests/unit/plugins/modules/test_na_elementsw_cluster.py
|
usegalaxy-no/usegalaxy
|
75dad095769fe918eb39677f2c887e681a747f3a
|
[
"MIT"
] | 1
|
2020-01-22T13:11:23.000Z
|
2020-01-22T13:11:23.000Z
|
venv/lib/python3.6/site-packages/ansible_collections/netapp/elementsw/tests/unit/plugins/modules/test_na_elementsw_cluster.py
|
usegalaxy-no/usegalaxy
|
75dad095769fe918eb39677f2c887e681a747f3a
|
[
"MIT"
] | 12
|
2020-02-21T07:24:52.000Z
|
2020-04-14T09:54:32.000Z
|
venv/lib/python3.6/site-packages/ansible_collections/netapp/elementsw/tests/unit/plugins/modules/test_na_elementsw_cluster.py
|
usegalaxy-no/usegalaxy
|
75dad095769fe918eb39677f2c887e681a747f3a
|
[
"MIT"
] | null | null | null |
''' unit test for Ansible module: na_elementsw_cluster.py '''
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import inspect
import json
import pytest
from ansible.module_utils import basic
from ansible.module_utils._text import to_bytes
from ansible_collections.netapp.elementsw.tests.unit.compat import unittest
from ansible_collections.netapp.elementsw.tests.unit.compat.mock import patch
import ansible_collections.netapp.elementsw.plugins.module_utils.netapp as netapp_utils
if not netapp_utils.has_sf_sdk():
pytestmark = pytest.mark.skip('skipping as missing required SolidFire Python SDK')
from ansible_collections.netapp.elementsw.plugins.modules.na_elementsw_cluster \
import ElementSWCluster as my_module # module under test
def set_module_args(args):
"""prepare arguments so that they will be picked up during module creation"""
args = json.dumps({'ANSIBLE_MODULE_ARGS': args})
basic._ANSIBLE_ARGS = to_bytes(args) # pylint: disable=protected-access
class AnsibleExitJson(Exception):
"""Exception class to be raised by module.exit_json and caught by the test case"""
class AnsibleFailJson(Exception):
"""Exception class to be raised by module.fail_json and caught by the test case"""
def exit_json(*args, **kwargs): # pylint: disable=unused-argument
"""function to patch over exit_json; package return data into an exception"""
if 'changed' not in kwargs:
kwargs['changed'] = False
raise AnsibleExitJson(kwargs)
def fail_json(*args, **kwargs): # pylint: disable=unused-argument
"""function to patch over fail_json; package return data into an exception"""
kwargs['failed'] = True
raise AnsibleFailJson(kwargs)
NODE_ID1 = 777
NODE_ID2 = 888
NODE_ID3 = 999
class MockSFConnection(object):
''' mock connection to ElementSW host '''
class Bunch(object): # pylint: disable=too-few-public-methods
''' create object with arbitrary attributes '''
def __init__(self, **kw):
''' called with (k1=v1, k2=v2), creates obj.k1, obj.k2 with values v1, v2 '''
setattr(self, '__dict__', kw)
def __repr__(self):
results = dict()
for key, value in vars(self).items():
results[key] = repr(value)
return repr(results)
def __init__(self, force_error=False, where=None, nodes=None):
''' save arguments '''
self.force_error = force_error
self.where = where
self.nodes = nodes
self._port = 442
self.called = list()
def record(self, args, kwargs):
name = inspect.stack()[1][3] # caller function name
print('%s: , args: %s, kwargs: %s' % (name, args, kwargs))
self.called.append(name)
def create_cluster(self, *args, **kwargs): # pylint: disable=unused-argument
self.record(repr(args), repr(kwargs))
def send_request(self, *args, **kwargs): # pylint: disable=unused-argument
self.record(repr(args), repr(kwargs))
def get_config(self, *args, **kwargs): # pylint: disable=unused-argument
self.record(repr(args), repr(kwargs))
if self.force_error and self.where == 'get_config_exception':
raise ConnectionError
if self.nodes is not None:
nodes = ['%d:%s' % (i, node) for i, node in enumerate(self.nodes)]
else:
nodes = list()
cluster = self.Bunch(ensemble=nodes, cluster='cl_name')
config = self.Bunch(cluster=cluster)
return self.Bunch(config=config)
class TestMyModule(unittest.TestCase):
''' a group of related Unit Tests '''
ARGS = {
# 'state': 'present',
'management_virtual_ip': '10.10.10.10',
'storage_virtual_ip': '10.10.10.11',
'nodes': [NODE_ID1, NODE_ID2],
'hostname': 'hostname',
'username': 'username',
'password': 'password',
}
def setUp(self):
self.mock_module_helper = patch.multiple(basic.AnsibleModule,
exit_json=exit_json,
fail_json=fail_json)
self.mock_module_helper.start()
self.addCleanup(self.mock_module_helper.stop)
def test_module_fail_when_required_args_missing(self):
''' required arguments are reported as errors '''
with pytest.raises(AnsibleFailJson) as exc:
set_module_args({})
my_module()
print('Info: %s' % exc.value.args[0]['msg'])
@patch('ansible_collections.netapp.elementsw.plugins.module_utils.netapp.create_sf_connection')
def test_create(self, mock_create_sf_connection):
''' create cluster basic '''
args = dict(self.ARGS) # deep copy as other tests can modify args
set_module_args(args)
# my_obj.sfe will be assigned a MockSFConnection object:
mock_create_sf_connection.return_value = MockSFConnection(force_error=True, where='get_config_exception')
my_obj = my_module()
with pytest.raises(AnsibleExitJson) as exc:
my_obj.apply()
print(exc.value.args[0])
assert exc.value.args[0]['changed']
msg = 'created'
assert msg in exc.value.args[0]['msg']
assert 'create_cluster' in my_obj.sfe_node.called
assert 'send_request' not in my_obj.sfe_node.called
@patch('ansible_collections.netapp.elementsw.plugins.module_utils.netapp.create_sf_connection')
def test_create_extra_parms(self, mock_create_sf_connection):
''' force a direct call to send_request '''
args = dict(self.ARGS) # deep copy as other tests can modify args
args['order_number'] = '12345'
args['serial_number'] = '54321'
set_module_args(args)
# my_obj.sfe will be assigned a MockSFConnection object:
mock_create_sf_connection.return_value = MockSFConnection(force_error=True, where='get_config_exception')
my_obj = my_module()
with pytest.raises(AnsibleExitJson) as exc:
my_obj.apply()
print(exc.value.args[0])
assert exc.value.args[0]['changed']
assert 'send_request' in my_obj.sfe_node.called
assert 'create_cluster' not in my_obj.sfe_node.called
@patch('ansible_collections.netapp.elementsw.plugins.module_utils.netapp.create_sf_connection')
def test_create_idempotent(self, mock_create_sf_connection):
''' cluster already exists with same nodes '''
args = dict(self.ARGS)
set_module_args(args)
# my_obj.sfe will be assigned a MockSFConnection object:
mock_create_sf_connection.return_value = MockSFConnection(nodes=[NODE_ID1, NODE_ID2])
my_obj = my_module()
with pytest.raises(AnsibleExitJson) as exc:
my_obj.apply()
print(exc.value.args[0])
assert not exc.value.args[0]['changed']
assert 'send_request' not in my_obj.sfe_node.called
assert 'create_cluster' not in my_obj.sfe_node.called
@patch('ansible_collections.netapp.elementsw.plugins.module_utils.netapp.create_sf_connection')
def test_create_idempotent_extra_nodes(self, mock_create_sf_connection):
''' cluster already exists with more nodes '''
args = dict(self.ARGS)
set_module_args(args)
# my_obj.sfe will be assigned a MockSFConnection object:
mock_create_sf_connection.return_value = MockSFConnection(nodes=[NODE_ID1, NODE_ID2, NODE_ID3])
my_obj = my_module()
with pytest.raises(AnsibleFailJson) as exc:
my_obj.apply()
print(exc.value.args[0])
msg = 'Error: found existing cluster with more nodes in ensemble.'
assert msg in exc.value.args[0]['msg']
assert 'send_request' not in my_obj.sfe_node.called
assert 'create_cluster' not in my_obj.sfe_node.called
@patch('ansible_collections.netapp.elementsw.plugins.module_utils.netapp.create_sf_connection')
def test_create_idempotent_extra_nodes_ok(self, mock_create_sf_connection):
''' cluster already exists with more nodes but we're OK with a superset '''
args = dict(self.ARGS)
args['fail_if_cluster_already_exists_with_larger_ensemble'] = False
set_module_args(args)
# my_obj.sfe will be assigned a MockSFConnection object:
mock_create_sf_connection.return_value = MockSFConnection(nodes=[NODE_ID1, NODE_ID2, NODE_ID3])
my_obj = my_module()
with pytest.raises(AnsibleExitJson) as exc:
my_obj.apply()
print(exc.value.args[0])
assert not exc.value.args[0]['changed']
msg = 'cluster already exists'
assert msg in exc.value.args[0]['msg']
assert 'send_request' not in my_obj.sfe_node.called
assert 'create_cluster' not in my_obj.sfe_node.called
@patch('ansible_collections.netapp.elementsw.plugins.module_utils.netapp.create_sf_connection')
def test_create_idempotent_missing_nodes(self, mock_create_sf_connection):
''' cluster already exists with fewer nodes.
Since not every node is lister in the ensemble, we can't tell if it's an error or not '''
args = dict(self.ARGS)
set_module_args(args)
# my_obj.sfe will be assigned a MockSFConnection object:
mock_create_sf_connection.return_value = MockSFConnection(nodes=[NODE_ID1])
my_obj = my_module()
with pytest.raises(AnsibleExitJson) as exc:
my_obj.apply()
print(exc.value.args[0])
assert not exc.value.args[0]['changed']
msg = 'cluster already exists'
assert msg in exc.value.args[0]['msg']
assert 'send_request' not in my_obj.sfe_node.called
assert 'create_cluster' not in my_obj.sfe_node.called
| 42.733624
| 113
| 0.674535
|
af567eef01aed2145736b7ba710e9cf108413898
| 3,475
|
rs
|
Rust
|
src/ir_dec_nec.rs
|
liv-dumea/blue-pill-infrared-nec-decoding
|
3bc89056476bff0930104b68a60be98edc7e3b77
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
src/ir_dec_nec.rs
|
liv-dumea/blue-pill-infrared-nec-decoding
|
3bc89056476bff0930104b68a60be98edc7e3b77
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
src/ir_dec_nec.rs
|
liv-dumea/blue-pill-infrared-nec-decoding
|
3bc89056476bff0930104b68a60be98edc7e3b77
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
//! State module for ir receiver
#![allow(dead_code)]
#![allow(unused_variables)]
use core::cell::Cell;
use core::marker::PhantomData;
const START1_MIN: u32 = 7900; //us
const START1_MAX: u32 = 10100; //us
const START2_MIN: u32 = 3400; //us
const START2_MAX: u32 = 5600; //us
const SHORT_MIN: u32 = 350; //us
const SHORT_MAX: u32 = 750; //us
const LONG_MIN: u32 = 1400; //us
const LONG_MAX: u32 = 1900; //us
#[derive(Clone, Copy, Debug)]
enum IrNecState {
Reset,
Start1,
Start2,
PulseData,
Data0,
Data1,
}
/// State machine for ir receiver
#[derive(Debug)]
#[repr(packed)]
pub struct IrDecoderNec<T> {
state: Cell<IrNecState>,
bits: Cell<u32>,
command: Cell<u32>,
_marker: PhantomData<T>,
}
///
pub struct IrCode {
///
pub address: u8,
///
pub command: u8,
}
///
pub enum IrDecodeError {
///
NoData,
///
Implausible,
///
Pending,
}
impl<T> IrDecoderNec<T> {
/// new IR state
pub const fn new() -> Self {
IrDecoderNec {
state: Cell::new(IrNecState::Reset),
bits: Cell::new(0),
command: Cell::new(0),
_marker: PhantomData,
}
}
fn next_state(&self, pulse: u32) {
let new_state = match self.state.get() {
IrNecState::Reset if pulse >= START1_MIN && pulse <= START1_MAX => IrNecState::Start1,
IrNecState::Start1 if pulse >= START2_MIN && pulse <= START2_MAX => IrNecState::Start2,
IrNecState::Start2 |
IrNecState::Data0 |
IrNecState::Data1 if pulse >= SHORT_MIN && pulse <= SHORT_MAX => IrNecState::PulseData,
IrNecState::PulseData if pulse >= SHORT_MIN && pulse <= SHORT_MAX => IrNecState::Data0,
IrNecState::PulseData if pulse >= LONG_MIN && pulse <= LONG_MAX => IrNecState::Data1,
_ => IrNecState::Reset,
};
self.state.set(new_state);
}
/// reset the state
fn reset(&self) {
self.state.set(IrNecState::Reset);
self.bits.set(0);
self.command.set(0);
}
/// feed
pub fn feed(&self, period: u32) {
self.next_state(period);
match self.state.get() {
IrNecState::Data0 => {
self.command.set((self.command.get() << 1) + 0);
self.bits.set(self.bits.get() + 1);
}
IrNecState::Data1 => {
self.command.set((self.command.get() << 1) + 1);
self.bits.set(self.bits.get() + 1);
}
IrNecState::Reset => {
self.reset();
}
_ => {}
}
}
/// read
pub fn try_get(&self) -> Result<IrCode, IrDecodeError> {
if self.bits.get() == 32 {
let message = self.command.get();
self.reset();
let address = ((message >> 24) & 0xFF) as u8;
let address_inv = ((message >> 16) & 0xFF) as u8;
if address == (!address_inv) {
let command = ((message >> 8) & 0xFF) as u8;
let command_inv = ((message) & 0xFF) as u8;
if command == (!command_inv) {
return Ok(IrCode { address, command });
}
}
return Err(IrDecodeError::Implausible);
}
match self.state.get() {
IrNecState::Reset => Err(IrDecodeError::NoData),
_ => Err(IrDecodeError::Pending),
}
}
}
| 25.740741
| 99
| 0.524029
|
7fb5f32e4f3352a675b8aea425dc79ebeed3cabf
| 2,019
|
php
|
PHP
|
tests/Mock/TestDataTable.php
|
icomefromthenet/BoltBookeMe
|
26f745eb66dc77b67eb471be14629cbd35a7d1c3
|
[
"MIT"
] | 2
|
2017-07-01T11:00:49.000Z
|
2021-05-31T07:05:58.000Z
|
tests/Mock/TestDataTable.php
|
icomefromthenet/BoltBookeMe
|
26f745eb66dc77b67eb471be14629cbd35a7d1c3
|
[
"MIT"
] | 1
|
2017-07-01T10:59:35.000Z
|
2017-07-05T09:23:03.000Z
|
tests/Mock/TestDataTable.php
|
icomefromthenet/BoltBookeMe
|
26f745eb66dc77b67eb471be14629cbd35a7d1c3
|
[
"MIT"
] | 1
|
2019-03-01T11:39:45.000Z
|
2019-03-01T11:39:45.000Z
|
<?php
namespace Bolt\Extension\IComeFromTheNet\BookMe\Tests\Mock;
use Bolt\Extension\IComeFromTheNet\BookMe\DataTable\AbstractDataTableManager;
use Bolt\Extension\IComeFromTheNet\BookMe\DataTable\General;
use Bolt\Extension\IComeFromTheNet\BookMe\DataTable\Plugin;
use Bolt\Extension\IComeFromTheNet\BookMe\DataTable\Schema;
use Bolt\Extension\IComeFromTheNet\BookMe\DataTable\DataTableEventRegistry;
class TestDataTable extends AbstractDataTableManager
{
public function setDefaults()
{
# Set Default Options
$oDefaultOptions = new General\DefaultOptions();
$this->addOptionSet($oDefaultOptions);
# set Ajax Options
$oAjaxOption = new General\AjaxOptions();
$oAjaxOption->setDataUrl('www.icomefromthenet.com/data.json');
$this->addOptionSet($oAjaxOption);
# set the Scroller Plugin
$oScrollerPlugin = new Plugin\ScrollerPlugin();
$oScrollerPlugin->setUseLoadingIndicator(true);
$oScrollerPlugin->setUseTrace(true);
$this->addPlugin($oScrollerPlugin);
# Setup Column Schema
$oColumnA = new Schema\ColumnOption();
$oColumnRenderWithOption = new Schema\ColumnRenderOption();
$oColumnRenderWithOption->setFilterIndex('columna_filter');
$oColumnRenderWithOption->setDisplayIndex('columna_display');
$oColumnA->setRenderOption($oColumnRenderWithOption);
$oColumnB = new Schema\ColumnOption();
$oColumnRednerWithCallback = new Schema\ColumnRenderFunc('window.func');
$oColumnB->setRenderFunc($oColumnRednerWithCallback);
$this->getSchema()->addColumn('columnA',$oColumnA);
$this->getSchema()->addColumn('columnB',$oColumnB);
# add init listener event
$this->getEventRegistry()->addEvent(DataTableEventRegistry::CORE_INIT, 'window.func',null);
}
}
/* End of class */
| 32.564516
| 99
| 0.668153
|
b772ee97ebe4f0d16c6334320ad604ce1763ddff
| 5,375
|
hxx
|
C++
|
main/linguistic/workben/sprophelp.hxx
|
Grosskopf/openoffice
|
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
|
[
"Apache-2.0"
] | 679
|
2015-01-06T06:34:58.000Z
|
2022-03-30T01:06:03.000Z
|
main/linguistic/workben/sprophelp.hxx
|
Grosskopf/openoffice
|
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
|
[
"Apache-2.0"
] | 102
|
2017-11-07T08:51:31.000Z
|
2022-03-17T12:13:49.000Z
|
main/linguistic/workben/sprophelp.hxx
|
Grosskopf/openoffice
|
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
|
[
"Apache-2.0"
] | 331
|
2015-01-06T11:40:55.000Z
|
2022-03-14T04:07:51.000Z
|
/**************************************************************
*
* 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.
*
*************************************************************/
#ifndef _LINGU2_PROPHELP_HXX_
#define _LINGU2_PROPHELP_HXX_
#include <tools/solar.h>
#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type
#include <cppuhelper/implbase2.hxx> // helper for implementations
#include <cppuhelper/interfacecontainer.h>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
#include <com/sun/star/linguistic2/XLinguServiceEventBroadcaster.hpp>
namespace com { namespace sun { namespace star { namespace beans {
class XPropertySet;
}}}};
namespace com { namespace sun { namespace star { namespace linguistic2 {
struct LinguServiceEvent;
}}}};
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::linguistic2;
///////////////////////////////////////////////////////////////////////////
// PropertyChgHelper
// virtual base class for all XPropertyChangeListener members of the
// various lingu services.
// Only propertyChange needs to be implemented.
class PropertyChgHelper :
public cppu::WeakImplHelper2
<
XPropertyChangeListener,
XLinguServiceEventBroadcaster
>
{
Sequence< OUString > aPropNames;
Reference< XInterface > xMyEvtObj;
::cppu::OInterfaceContainerHelper aLngSvcEvtListeners;
Reference< XPropertySet > xPropSet;
// disallow use of copy-constructor and assignment-operator
PropertyChgHelper( const PropertyChgHelper & );
PropertyChgHelper & operator = ( const PropertyChgHelper & );
public:
PropertyChgHelper(
const Reference< XInterface > &rxSource,
Reference< XPropertySet > &rxPropSet,
const char *pPropNames[], USHORT nPropCount );
virtual ~PropertyChgHelper();
// XEventListener
virtual void SAL_CALL
disposing( const EventObject& rSource )
throw(RuntimeException);
// XPropertyChangeListener
virtual void SAL_CALL
propertyChange( const PropertyChangeEvent& rEvt )
throw(RuntimeException) = 0;
// XLinguServiceEventBroadcaster
virtual sal_Bool SAL_CALL
addLinguServiceEventListener(
const Reference< XLinguServiceEventListener >& rxListener )
throw(RuntimeException);
virtual sal_Bool SAL_CALL
removeLinguServiceEventListener(
const Reference< XLinguServiceEventListener >& rxListener )
throw(RuntimeException);
// non UNO functions
void AddAsPropListener();
void RemoveAsPropListener();
void LaunchEvent( const LinguServiceEvent& rEvt );
const Sequence< OUString > &
GetPropNames() const { return aPropNames; }
const Reference< XPropertySet > &
GetPropSet() const { return xPropSet; }
const Reference< XInterface > &
GetEvtObj() const { return xMyEvtObj; }
};
///////////////////////////////////////////////////////////////////////////
class PropertyHelper_Spell :
public PropertyChgHelper
{
// default values
BOOL bIsGermanPreReform;
BOOL bIsIgnoreControlCharacters;
BOOL bIsUseDictionaryList;
BOOL bIsSpellUpperCase;
BOOL bIsSpellWithDigits;
BOOL bIsSpellCapitalization;
// return values, will be set to default value or current temporary value
BOOL bResIsGermanPreReform;
BOOL bResIsIgnoreControlCharacters;
BOOL bResIsUseDictionaryList;
BOOL bResIsSpellUpperCase;
BOOL bResIsSpellWithDigits;
BOOL bResIsSpellCapitalization;
// disallow use of copy-constructor and assignment-operator
PropertyHelper_Spell( const PropertyHelper_Spell & );
PropertyHelper_Spell & operator = ( const PropertyHelper_Spell & );
void SetDefault();
public:
PropertyHelper_Spell(
const Reference< XInterface > &rxSource,
Reference< XPropertySet > &rxPropSet );
virtual ~PropertyHelper_Spell();
// XPropertyChangeListener
virtual void SAL_CALL
propertyChange( const PropertyChangeEvent& rEvt )
throw(RuntimeException);
void SetTmpPropVals( const PropertyValues &rPropVals );
BOOL IsGermanPreReform() const { return bResIsGermanPreReform; }
BOOL IsIgnoreControlCharacters() const { return bResIsIgnoreControlCharacters; }
BOOL IsUseDictionaryList() const { return bResIsUseDictionaryList; }
BOOL IsSpellUpperCase() const { return bResIsSpellUpperCase; }
BOOL IsSpellWithDigits() const { return bResIsSpellWithDigits; }
BOOL IsSpellCapitalization() const { return bResIsSpellCapitalization; }
};
///////////////////////////////////////////////////////////////////////////
#endif
| 31.804734
| 106
| 0.718326
|
a32958227b230dae2ec646d3490abfc526fc4b29
| 1,789
|
h
|
C
|
WLRRoute/Classes/WLRRouter.h
|
Neojoke/WLRRoute
|
b490dd04308825afec8ed8b9d0b2e594f61a0666
|
[
"MIT"
] | 321
|
2016-12-18T13:29:17.000Z
|
2021-10-21T03:07:18.000Z
|
WLRRoute/Classes/WLRRouter.h
|
Neojoke/WLRRoute
|
b490dd04308825afec8ed8b9d0b2e594f61a0666
|
[
"MIT"
] | 6
|
2017-01-11T02:59:26.000Z
|
2018-06-07T02:07:23.000Z
|
WLRRoute/Classes/WLRRouter.h
|
Neojoke/WLRRoute
|
b490dd04308825afec8ed8b9d0b2e594f61a0666
|
[
"MIT"
] | 72
|
2016-12-20T07:34:07.000Z
|
2021-07-09T03:39:31.000Z
|
//
// WLRRouter.h
// Pods
//
// Created by Neo on 2016/12/15.
//
//
#import <Foundation/Foundation.h>
#import "WLRRouteMiddlewareProtocol.h"
@class WLRRouteRequest;
@class WLRRouteHandler;
/**
Main route object,it can register a route pattern for a handler or block,manage middlewares,provide Subscription.
路由对象实体,提供注册route表达式和对应handler、block功能,提供中间件注册,提供下标访问的快捷方法
*/
@interface WLRRouter : NSObject
/**
注册一个route表达式并与一个block处理相关联
@param routeHandlerBlock block用以处理匹配route表达式的url的请求
@param route url的路由表达式,支持正则表达式的分组,例如app://login/:phone({0,9+})是一个表达式,:phone代表该路径值对应的key,可以在WLRRouteRequest对象中的routeParameters中获取
*/
-(void)registerBlock:(WLRRouteRequest *(^)(WLRRouteRequest * request))routeHandlerBlock forRoute:(NSString *)route;
/**
注册一个route表达式并与一个block处理相关联
@param routeHandlerBlock handler对象用以处理匹配route表达式的url的请求
@param route url的路由表达式,支持正则表达式的分组,例如app://login/:phone({0,9+})是一个表达式,:phone代表该路径值对应的key,可以在WLRRouteRequest对象中的routeParameters中获取
*/
-(void)registerHandler:(WLRRouteHandler *)handler forRoute:(NSString *)route;
/**
检测url是否能够被处理,不包含中间件的检查
@param url 请求的url
@return 是否可以handle
*/
-(BOOL)canHandleWithURL:(NSURL *)url;
-(void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
-(id)objectForKeyedSubscript:(NSString *)key;
/**
处理url请求
@param URL 调用的url
@param primitiveParameters 携带的原生对象
@param targetCallBack 传给目标对象的回调block
@param completionBlock 完成路由中转的block
@return 是否能够handle
*/
-(BOOL)handleURL:(NSURL *)URL primitiveParameters:(NSDictionary *)primitiveParameters targetCallBack:(void(^)(NSError *, id responseObject))targetCallBack withCompletionBlock:(void(^)(BOOL handled, NSError *error))completionBlock;
-(void)addMiddleware:(id<WLRRouteMiddleware>)middleware;
-(void)removeMiddleware:(id<WLRRouteMiddleware>)middleware;
@end
| 30.844828
| 230
| 0.790945
|
e2ae57a1819ee4d0546c4e46471b8ce63a7d43ed
| 133
|
js
|
JavaScript
|
api/src/api/middleware/error.js
|
ClaudaniloXavier/angular-http-requests
|
921625918af8bfa98b8ccef7ad8d43bc5c77548a
|
[
"MIT"
] | null | null | null |
api/src/api/middleware/error.js
|
ClaudaniloXavier/angular-http-requests
|
921625918af8bfa98b8ccef7ad8d43bc5c77548a
|
[
"MIT"
] | null | null | null |
api/src/api/middleware/error.js
|
ClaudaniloXavier/angular-http-requests
|
921625918af8bfa98b8ccef7ad8d43bc5c77548a
|
[
"MIT"
] | null | null | null |
exports.notFound = function (req, res) {
if (!res.finished)
res.status(404).json({"error": "Recurso não encontrado."})
};
| 33.25
| 66
| 0.62406
|
b760d378dd7d92a01d4faf1e249e8014e969f8c8
| 6,219
|
cshtml
|
C#
|
Pictoload/Pages/Userdashboard/Index.cshtml
|
Grimwolf89/Pictoload
|
2f98e2efe88adec6feb1f7b8c77753ef2d6b60e7
|
[
"MIT"
] | null | null | null |
Pictoload/Pages/Userdashboard/Index.cshtml
|
Grimwolf89/Pictoload
|
2f98e2efe88adec6feb1f7b8c77753ef2d6b60e7
|
[
"MIT"
] | null | null | null |
Pictoload/Pages/Userdashboard/Index.cshtml
|
Grimwolf89/Pictoload
|
2f98e2efe88adec6feb1f7b8c77753ef2d6b60e7
|
[
"MIT"
] | null | null | null |
@page
@model WebUI.Pages.Userdashboard.IndexModel
@{
ViewData["Title"] = "Index";
Layout = "~/Pages/Shared/_Layout.cshtml";
}
<div class="container-xl border mt-5 pt-2">
<div class="row ">
<div class="col ">
<h5 class="display-6 mb-2 pl-2">Upload new image</h5>
</div>
</div>
<div class="row ">
<div class="col mb3 ">
<form class="input-group-text bg-light btn-primary " method="post" enctype="multipart/form-data">
<input class="form-control" type="file" asp-for="Upload" />
<input class=" btn btn-primary" type="submit" value="Upload"/>
</form>
</div>
</div>
</div>
<div class="container-fluid pt-5">
</div>
<div class=" container-xxl border pt-2">
<div class="row ">
<div class="col ">
<h5 class="display-6 mb-2 pl-2">My image collection</h5>
</div>
</div>
<div class="align-content-center custom-control-inline" width=100%>
@foreach (var item in Model.userPhotos) {
<div class="card m-1 text-center" style="width: 15rem;">
<img class="card-img-top" src="@item.ImagePath" alt="Card image cap" height=150>
<div class="card-body">
<h5 class="card-title">@item.Name</h5>
<p class="card-text m-0">Taken by: @item.CapturedBy</p>
<p class="card-text m-0">Location: @item.Geolocation</p>
<p class="card-text m-0">Date Captured: @item.DateCaptured.Day/@item.DateCaptured.Month/@item.DateCaptured.Year </p>
<div class="align-items-center ">
<div class="row ">
<div class="col-sm-3"><a asp-page="./PhotoDetails" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">View</a></div>
<div class="col-sm-3"><a asp-page="./SharePhoto" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Share</a></div>
<div class="col-sm-3"><a asp-page="./Unshare" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Unshare</a></div>
</div>
<div class="row">
<div class="col-sm-3"><a asp-page="./AddPhotoToAlbum" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Album</a></div>
<div class="col-sm-3"><a asp-page="./UpdatePhotoData" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Edit</a></div>
<div class="col-sm-3"><a asp-page="./DeleteImage" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Delete</a></div>
</div>
</div>
</div>
</div>
}
</div>
</div>
<div class=" container-xxl mt-5 border pt-2">
<div class="row ">
<div class="col ">
<h5 class="display-6 mb-2 pl-2">Images Shared with me</h5>
</div>
</div>
<div class="align-content-center custom-control-inline" width=100%>
@foreach (var item in Model.SharedPhotos) {
<div class="card m-1 text-center" style="width: 15rem;">
<img class="card-img-top" src="@item.ImagePath" alt="Card image cap" height=150>
<div class="card-body">
<h5 class="card-title">@item.Name</h5>
<p class="card-text m-0">Taken by: @item.CapturedBy</p>
<p class="card-text m-0">Location: @item.Geolocation</p>
<p class="card-text m-0">Date Captured: @item.DateCaptured.Day/@item.DateCaptured.Month/@item.DateCaptured.Year </p>
<div class="align-items-center ">
<div class="row ">
<div class="col-sm-3"><a asp-page="./PhotoDetails" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">View</a></div>
<div class="col-sm-3"><a asp-page="./SharePhoto" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Share</a></div>
<div class="col-sm-3"><a asp-page="./Unshare" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Unshare</a></div>
</div>
<div class="row">
<div class="col-sm-3"><a asp-page="./AddPhotoToAlbum" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Album</a></div>
<div class="col-sm-3"><a asp-page="./UpdatePhotoData" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Edit</a></div>
<div class="col-sm-3"><a asp-page="./DeleteImage" asp-route-id="@item.Id" class="btn btn-link m-0 p-1 ">Delete</a></div>
</div>
</div>
</div>
</div>
}
</div>
</div>
@*<div>
<h3>My albums</h3>
<div class="d-inline-flex align-content-center" width=100%>
@foreach (var item in Model.UserAlbums) {
if (item != null)
{
<div class="card m-1 text-center" style="width: 15rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">@item.AlbumTitle</h5>
<a href="#" class="btn btn-link">View</a>
<a href="#" class="btn btn-link">Share</a>
<a asp-page="./DeleteAlbum" asp-route-id="@item.Id" class="btn btn-link">Delete</a>
</div>
</div>
}
}
</div>
</div>*@
@*<div>
<h3>Albums shared with me</h3>
<div class="d-inline-flex align-content-center" width=100%>
@foreach (var item in Model.SharedAlbums) {
if (item != null)
{
<div class="card m-1 text-center" style="width: 15rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">@item.AlbumTitle</h5>
<a href="#" class="btn btn-link">View</a>
<a asp-page="./DeleteAlbum" asp-route-id="@item.Id" class="btn btn-link">Delete</a>
</div>
</div>
}
else
{
<p class="mr-2">No Albums on my account --> </p>
<a href="#" >Create Album</a>
}
}
</div>
</div>
*@
| 41.46
| 143
| 0.511819
|
47784515fda01a22c6b05d748ee233e3d692adde
| 357
|
kt
|
Kotlin
|
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/testmodell/personopplysning/StatsborgerskapModell.kt
|
navikt/vtp-pensjon
|
26b96a45fc89e0e195f967d5b99bb4f1cc9bc10e
|
[
"MIT"
] | 1
|
2021-11-09T13:00:58.000Z
|
2021-11-09T13:00:58.000Z
|
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/testmodell/personopplysning/StatsborgerskapModell.kt
|
navikt/vtp-pensjon
|
26b96a45fc89e0e195f967d5b99bb4f1cc9bc10e
|
[
"MIT"
] | 130
|
2020-09-07T14:25:03.000Z
|
2022-03-29T07:57:35.000Z
|
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/testmodell/personopplysning/StatsborgerskapModell.kt
|
navikt/vtp-pensjon
|
26b96a45fc89e0e195f967d5b99bb4f1cc9bc10e
|
[
"MIT"
] | null | null | null |
package no.nav.pensjon.vtp.testmodell.personopplysning
import no.nav.pensjon.vtp.testmodell.kodeverk.Endringstype
import java.time.LocalDate
data class StatsborgerskapModell(
val land: Landkode?,
val fom: LocalDate? = null,
val tom: LocalDate? = null,
val endringstype: Endringstype? = null,
val endringstidspunkt: LocalDate? = null
)
| 27.461538
| 58
| 0.753501
|
b104859a8dcddd9dc65c44923e25570b04f2e9de
| 2,807
|
dart
|
Dart
|
example/lib/main.dart
|
zamstation/zam_event_bus_provider
|
5742a5b72598f67ae1eb77346f5076e189286c32
|
[
"BSD-3-Clause"
] | null | null | null |
example/lib/main.dart
|
zamstation/zam_event_bus_provider
|
5742a5b72598f67ae1eb77346f5076e189286c32
|
[
"BSD-3-Clause"
] | 7
|
2021-06-23T08:17:11.000Z
|
2021-09-28T13:30:55.000Z
|
example/lib/main.dart
|
zamstation/zam_bus_provider
|
5742a5b72598f67ae1eb77346f5076e189286c32
|
[
"BSD-3-Clause"
] | 2
|
2021-09-28T13:41:31.000Z
|
2021-09-28T16:18:29.000Z
|
import 'package:flutter/material.dart';
import 'package:zam_event_bus_provider/zam_event_bus_provider.dart';
import 'package:zam_event_bus/zam_event_bus.dart';
///
/// The Domain Model
///
class Counter {
final int value;
const Counter([this.value = 0]);
Counter increment() => Counter(value + 1);
}
///
/// The Event
///
class IncrementEvent {}
///
/// The Event handler
///
class IncrementUseCase extends SavingEventTransformer<IncrementEvent, Counter> {
@override
Counter execute(IncrementEvent event, EventBus bus) {
final currentCounter = bus.selectFromStore<Counter>();
final newCounter = currentCounter.increment();
return newCounter;
}
}
void main() {
// The setup
final transformers = <EventTransformer>[IncrementUseCase()];
final bus = EventBus(transformers);
// Store initial data.
bus.save(const Counter());
// Pass in the bus and run the app.
runApp(MyApp(bus));
}
class MyApp extends StatelessWidget {
final EventBus bus;
const MyApp(
this.bus, {
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
// Add EventBusProvider before MaterialApp so that
// it is made available to all the routes.
return EventBusProvider(
bus: bus,
child: const MaterialApp(
home: HomePage(title: 'Event Bus Demo'),
),
);
}
}
class HomePage extends StatelessWidget {
final String title;
const HomePage({Key? key, required this.title}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text(title)),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
// You have two options to listen to data:
const Text('You have pushed the button this many times:'),
// 1. inheritance
// - Create a CounterText widget extending DataWidget
const CounterText(),
// 2. composition
// - Wrap your widget inside a View widget.
View<Counter>(
builder: (data) => Text(
'Composition: ${data.value.toString()}',
style: Theme.of(context).textTheme.headline4,
),
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: () => context.dispatch(IncrementEvent()),
child: const Icon(Icons.add),
),
);
}
}
class CounterText extends DataWidget<Counter> {
const CounterText({Key? key}) : super(key: key);
@override
Widget buildUsingData(BuildContext context, Counter data) {
return Text(
'Inheritance: ${data.value.toString()}',
style: Theme.of(context).textTheme.headline4,
);
}
}
| 24.840708
| 80
| 0.628073
|
4655255ed06b493cad492a3f021abed2792fdbf8
| 930
|
php
|
PHP
|
app/Http/Controllers/TodosController.php
|
Antilipsi0/Laravel-AOS-Todo
|
e8c0beba4cf4551d6ee5fe19e59981665b7c4b1b
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/TodosController.php
|
Antilipsi0/Laravel-AOS-Todo
|
e8c0beba4cf4551d6ee5fe19e59981665b7c4b1b
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/TodosController.php
|
Antilipsi0/Laravel-AOS-Todo
|
e8c0beba4cf4551d6ee5fe19e59981665b7c4b1b
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Todos;
class TodosController extends Controller
{
public function liste(){
return view("home", ["todos" => Todos::all()]);
}
public function saveTodo(Request $request){
$texte = $request->input('texte');
if($texte){
$todo = new Todos();
$todo->texte = $texte;
$todo->termine = 0;
$todo->save();
}
return redirect()->action('TodosController@liste');
}
public function markAsDone($id){
$todo = Todos::find($id);
if($todo){
$todo->termine = 1;
$todo->save();
}
return redirect()->action('TodosController@liste');
}
public function deleteTodo($id){
$todo = Todos::find($id);
if($todo){
$todo->delete();
}
return redirect()->action('TodosController@liste');
}
}
| 18.979592
| 59
| 0.54086
|
c6e8ec7afaffa65f8764b838f3bc01ec2f6c4a08
| 18,753
|
py
|
Python
|
test/test_bot.py
|
lyonva/ClassMateBot
|
8ab75f6d4f1c9ea51af1a0bd16327b82f0c587de
|
[
"MIT"
] | null | null | null |
test/test_bot.py
|
lyonva/ClassMateBot
|
8ab75f6d4f1c9ea51af1a0bd16327b82f0c587de
|
[
"MIT"
] | 26
|
2021-11-11T20:47:32.000Z
|
2021-12-02T02:04:27.000Z
|
test/test_bot.py
|
lyonva/ClassMateBot
|
8ab75f6d4f1c9ea51af1a0bd16327b82f0c587de
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2021 War-Keeper
import discord
import os
from datetime import datetime, timedelta
from discord import channel
import discord.ext.test as dpytest
from dotenv import load_dotenv
import pytest
import time
# ------------------------------------------------------------------------------------------------------
# Main file bot testing. Uses dpytest to test bot activity on a simulated server with simulated members
# ------------------------------------------------------------------------------------------------------
# -------------------
# Tests cogs/ping.py
# -------------------
@pytest.mark.asyncio
async def test_ping(bot):
await dpytest.message("$ping")
assert dpytest.verify().message().contains().content("Pong!")
# TODO Test user join messages
# ---------------------
# Tests cogs/groups.py
# ---------------------
@pytest.mark.asyncio
async def test_groupJoin(bot):
# first leave all groups just in case in any
await dpytest.message("$leave")
dpytest.get_message()
# Try to join a group
await dpytest.message("$join 99")
assert dpytest.verify().message().content("You are now in Group 99! There are now 1/6 members.")
# try to join a different group
await dpytest.message("$join 1")
assert dpytest.verify().message().content("You are already in Group 99")
# leave your group
await dpytest.message("$leave")
assert dpytest.verify().message().content("You have been removed from Group 99!")
# leave with no group
await dpytest.message("$leave")
assert dpytest.verify().message().content("You are not in a group!")
await dpytest.message("$autogroup")
assert dpytest.verify().message().content("All the members are mapped to their new groups through autogroup. Please use command $autojoin to connect with your new group members.")
await dpytest.message("$autojoin")
assert dpytest.verify().message().content('You have been added to your new group')
# ------------------------------------
# Tests cogs/groups.py error handling
# ------------------------------------
@pytest.mark.asyncio
async def test_groupError(bot):
# Try to join a group that doesn't exist
await dpytest.message("$join -1")
assert dpytest.verify().message().content("Not a valid group")
assert (
dpytest.verify()
.message()
.content("To use the join command, do: $join <Num> where 0 <= <Num> <= 99 \n ( For example: $join 0 )")
)
try:
await dpytest.message("$join")
# should not reach here
assert False
except:
assert (
dpytest.verify().message().content("To use the join command, do: $join <Num> \n ( For example: $join 0 )")
)
# -----------------------
# Tests cogs/deadline.py
# -----------------------
NO_REMINDER_TEXT = "Congratulations! You have no upcoming reminders."
ONLY_DM_TEXT = "That command is DM only. Try DMing me."
ONLY_SERVER_TEXT = "This command can only be used inside a server."
@pytest.mark.asyncio
async def test_reminders_empty(bot):
# Test all reminder read commands when we have no reminders
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
await dpytest.message("$duetoday", channel = dm_channel)
assert dpytest.get_message().content == NO_REMINDER_TEXT
await dpytest.message("$duethisweek", channel = dm_channel)
assert dpytest.get_message().content == NO_REMINDER_TEXT
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content == NO_REMINDER_TEXT
@pytest.mark.asyncio
async def test_reminder_add(bot):
# Test that reminder clear works for our server
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Add something and check its added
await dpytest.message("$ra Birthday NOV 30 2021 10:00")
assert dpytest.get_message().content == "Homework: Birthday due on: 2021-11-30 10:00:00 has been added."
# Check our reminders
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content != NO_REMINDER_TEXT
@pytest.mark.asyncio
async def test_reminder_edit(bot):
# Test that reminder clear works for our server
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Add something and check its added
await dpytest.message("$ra Birthday NOV 29 2021 10:00")
assert dpytest.get_message().content == "Homework: Birthday due on: 2021-11-29 10:00:00 has been added."
# Edit it
await dpytest.message("$re Birthday NOV 30 2021 10:00")
assert dpytest.get_message().content == "Birthday has been updated with following date: 2021-11-30 10:00:00"
@pytest.mark.asyncio
async def test_reminder_delete(bot):
# Test that reminder clear works for our server
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Add something and check its added
await dpytest.message("$ra Birthday NOV 30 2021 10:00")
assert dpytest.get_message().content == "Homework: Birthday due on: 2021-11-30 10:00:00 has been added."
# Remove and check
await dpytest.message("$rd Birthday")
assert dpytest.get_message().content == "Reminders deleted."
# Check our reminders and see we have nothing
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content == NO_REMINDER_TEXT
@pytest.mark.asyncio
async def test_reminder_clear_server(bot):
# Test that reminder clear works for our server
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Add something and check its added
await dpytest.message("$ra Birthday NOV 30 2021 10:00")
dpytest.get_message() # Discard added message
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content != NO_REMINDER_TEXT
# Clear all
await dpytest.message("$rc")
assert dpytest.get_message().content == "All your reminders from this server have been cleared."
# # Check we have nothing due
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content == NO_REMINDER_TEXT
@pytest.mark.asyncio
async def test_reminder_clear_dm(bot):
# Test that reminder clear works for our server
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Add something and check its added
await dpytest.message("$ra Birthday NOV 30 2021 10:00")
dpytest.get_message() # Discard added message
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content != NO_REMINDER_TEXT
# Clear all
await dpytest.message("$rc", channel = dm_channel)
assert dpytest.get_message().content == "All your reminders have been cleared."
# # Check we have nothing due
await dpytest.message("$reminders", channel = dm_channel)
assert dpytest.get_message().content == NO_REMINDER_TEXT
@pytest.mark.asyncio
async def test_reminder_dmonlycommands(bot):
# Test that check reminder commands can only be used as DMs
await dpytest.message("$duetoday")
assert dpytest.get_message().content == ONLY_DM_TEXT
await dpytest.message("$duethisweek")
assert dpytest.get_message().content == ONLY_DM_TEXT
await dpytest.message("$reminders")
assert dpytest.get_message().content == ONLY_DM_TEXT
@pytest.mark.asyncio
async def test_reminder_serveronlycommands(bot):
# Test that reminder add/edit/delete commands are server only
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
await dpytest.message("$ra Birthday NOV 30 2021 10:00", channel = dm_channel)
assert dpytest.get_message().content == ONLY_SERVER_TEXT
await dpytest.message("$re Birthday NOV 30 2021 10:00", channel = dm_channel)
assert dpytest.get_message().content == ONLY_SERVER_TEXT
await dpytest.message("$rd Birthday", channel = dm_channel)
assert dpytest.get_message().content == ONLY_SERVER_TEXT
@pytest.mark.asyncio
async def test_reminders_duethisweek(bot):
# Test reminders due this week
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Try adding a reminder due in an hour
now = datetime.now() + timedelta(hours=1)
dt_string = now.strftime("%b %d %Y %H:%M")
await dpytest.message(f"$ra HW0 {dt_string}")
dpytest.get_message() # Discard message
# Try adding a reminder due in a day
now = datetime.now() + timedelta(hours=25)
dt_string = now.strftime("%b %d %Y %H:%M")
await dpytest.message(f"$ra HW1 {dt_string}")
dpytest.get_message() # Discard message
# Check to see that the reminder is due this week
await dpytest.message("$duethisweek", channel = dm_channel)
assert dpytest.get_message().content != NO_REMINDER_TEXT
@pytest.mark.asyncio
async def test_reminders_duetoday(bot):
# Test reminders due today week
await dpytest.message("$ping")
dm_channel = dpytest.get_message().channel
# Try adding a reminder due in an hour
now = datetime.now() + timedelta(hours=3)
dt_string = now.strftime("%b %d %Y %H:%M")
await dpytest.message(f"$ra HW0 {dt_string}")
dpytest.get_message() # Discard message
# Check to see that the reminder is due this week
await dpytest.message("$duetoday", channel = dm_channel)
assert dpytest.get_message().content != NO_REMINDER_TEXT
# --------------------
# Tests cogs/pinning
# --------------------
# @pytest.mark.asyncio
# async def test_pinning(bot):
# # Test pinning a message
# await dpytest.message("$pin TestMessage www.google.com this is a test")
# # print(dpytest.get_message().content)
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content("A new message has been pinned with tag: TestMessage and description: www.google.com this is a test")
# )
# await dpytest.message("$pin TestMessage www.discord.com this is also a test")
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content(
# "A new message has been pinned with tag: TestMessage and description: www.discord.com this is also a test"
# )
# )
# # clean up
# # await dpytest.message("$unpin TestMessage")
# # ----------------
# # Tests unpinning
# # ----------------
# @pytest.mark.asyncio
# async def test_unpinning(bot):
# # Test pinning a message
# await dpytest.message("$pin TestMessage www.google.com this is a test")
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content("A new message has been pinned with tag: TestMessage and description: www.google.com this is a test")
# )
# await dpytest.message("$pin TestMessage www.discord.com this is also a test")
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content(
# "A new message has been pinned with tag: TestMessage and description: www.discord.com this is also a test"
# )
# )
# # Tests unpinning a message that doesn't exist
# await dpytest.message("$unpin None")
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content("No message found with the combination of tagname: None, and author:")
# )
# # Tests unpinning messages that DO exist
# await dpytest.message("$unpin TestMessage")
# assert dpytest.verify().message().contains().content("2 pinned message(s) has been deleted with tag: TestMessage")
# # Tests adding another message to update pins
# await dpytest.message("$pin TestMessage2 www.discord.com test")
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content("A new message has been pinned with tag: TestMessage2 and description: www.discord.com test")
# )
# await dpytest.message("$updatepin TestMessage2 www.zoom.com test")
# assert dpytest.verify().message().contains().content("1 pinned message(s) has been deleted with tag: TestMessage2")
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content("A new message has been pinned with tag: TestMessage2 and description: www.zoom.com test")
# )
# # ----------------------
# # Tests invalid pinning
# # ----------------------
# @pytest.mark.asyncio
# async def test_pinError(bot):
# # Tests pinning without a message, will fail
# try:
# await dpytest.message("$pin")
# # shouldnt reach here
# assert False
# except:
# assert (
# dpytest.verify()
# .message()
# .content(
# "To use the pin command, do: $pin TAGNAME DESCRIPTION \n ( For example: $pin HW8 https://"
# "discordapp.com/channels/139565116151562240/139565116151562240/890813190433292298 HW8 reminder )"
# )
# )
# --------------------
# Tests cogs/newComer
# --------------------
@pytest.mark.asyncio
async def test_verify(bot):
user = dpytest.get_config().members[0]
guild = dpytest.get_config().guilds[0]
channel = await guild.create_text_channel("general")
await dpytest.message("$verify Student Name", channel=channel)
assert (
dpytest.verify()
.message()
.contains()
.content("Warning: Please make sure the verified and unverified roles exist in this server!")
)
# Test self-verification - unverified role assigned
await guild.create_role(name="unverified")
await guild.create_role(name="verified")
role = discord.utils.get(guild.roles, name="unverified")
await dpytest.add_role(user, role)
await dpytest.message("$verify Student Name", channel=channel)
assert dpytest.verify().message().contains().content(f"Thank you for verifying! You can start using {guild.name}!")
dpytest.get_message()
@pytest.mark.asyncio
async def test_verifyNoName(bot):
guild = dpytest.get_config().guilds[0]
await guild.create_role(name="unverified")
await guild.create_role(name="verified")
# Test verification without proper argument given
await dpytest.message("$verify")
# print(dpytest.get_message().content)
assert (
dpytest.verify()
.message()
.contains()
.content("To use the verify command, do: $verify <FirstName LastName> \n ( For example: $verify Jane Doe )")
)
# We cannot currently test newComer.py in a meaningful way due to not having a way to DM the test bot directly,
# as well as inability to have dpytest add/remove roles to test specific cases
# --------------------
# Tests cogs/Voting
# --------------------
# @pytest.mark.asyncio
# async def test_voting(bot):
# # Test voting
# await dpytest.message(content="$vote 1")
# assert (
# dpytest.verify().message().content("You are not in a group. You must join a group before voting on a project.")
# )
# await dpytest.message("$join 99")
# dpytest.get_message()
# await dpytest.message(content="$vote 1")
# assert dpytest.verify().message().content("Group 99 has voted for Project 1!")
# await dpytest.message(content="$vote 2")
# assert dpytest.verify().message().content("Group 99 removed vote for Project 1")
# assert dpytest.verify().message().content("Group 99 has voted for Project 2!")
# await dpytest.message(content="$vote 2")
# assert dpytest.verify().message().content("You already voted for Project 2")
# try:
# await dpytest.message(content="$vote")
# # shouldnt reach here
# assert False
# except:
# assert (
# dpytest.verify()
# .message()
# .contains()
# .content("To join a project, use the join command, do: $vote <Num> \n( For example: $vote 0 )")
# )
# await dpytest.message(content="$vote -1")
# assert dpytest.verify().message().content("A valid project number is 1-99.")
# --------------------
# Tests cogs/qanda
# --------------------
@pytest.mark.asyncio
async def test_qanda(bot):
# Test q and a functionalities
# create channel and get user
user = dpytest.get_config().members[0]
guild = dpytest.get_config().guilds[0]
channel = await guild.create_text_channel("q-and-a")
await guild.create_role(name="Instructor")
role = discord.utils.get(guild.roles, name="Instructor")
await dpytest.add_role(user, role)
# Test asking a question anonymously
await dpytest.message('$ask "What class is this?" anonymous', channel=channel)
assert dpytest.verify().message().contains().content("What class is this? by anonymous")
# Test asking a question with name
await dpytest.message('$ask "When is the last day of classes?"', channel=channel)
assert dpytest.verify().message().contains().content("When is the last day of classes? by " + user.name)
# Test deleting a valid question
await dpytest.message("$deleteq 1", channel=channel)
assert dpytest.verify().message().contains().content("Question 1 has been deleted\n")
# Test deleting an invalid question
await dpytest.message("$deleteq 3", channel=channel)
assert dpytest.verify().message().contains().content("Question 3 does not exist")
# --------------------
# Tests cogs/reviewQs
# --------------------
@pytest.mark.asyncio
async def test_review_qs(bot):
# Test review question functionalities
# create roles and get user
user = dpytest.get_config().members[0]
guild = dpytest.get_config().guilds[0]
await guild.create_role(name="Instructor")
role = discord.utils.get(guild.roles, name="Instructor")
await dpytest.add_role(user, role)
# Test adding a question
await dpytest.message('$addQuestion "What class is this?" "CSC510"', member=user)
assert (
dpytest.verify()
.message()
.contains()
.content("A new review question has been added! Question: What class is this? and Answer: CSC510.")
)
# Test getting a question
await dpytest.message("$getQuestion", member=user)
assert dpytest.verify().message().contains().content("What class is this? \n ||CSC510||")
# Test error
with pytest.raises(Exception):
await dpytest.message('$addQuestion "Is this a test question?"', member=user)
assert (
dpytest.verify()
.message()
.contains()
.content(
'To use the addQuestion command, do: $addQuestion "Question" "Answer" \n'
'(For example: $addQuestion "What class is this?" "CSC510")'
)
)
| 37.282306
| 183
| 0.64875
|