content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
listlengths
1
8
#define TORCH_ASSERT_NO_OPERATORS #define _USE_MATH_DEFINES #include <ATen/native/Activation.h> #include <cmath> #include <thrust/tuple.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/core/TensorBase.h> #include <ATen/cuda/ApplyGridUtils.cuh> #include <ATen/cuda/detail/OffsetCalculator.cuh> #include <ATen/native/cuda/Loops.cuh> #include <c10/cuda/CUDAMathCompat.h> #include <c10/core/Scalar.h> namespace at { namespace native { // ----------------------------------- // glu forward // ----------------------------------- void glu_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND2(kHalf, kBFloat16, iter.dtype(), "glu_cuda", [&]() { using acc_t = at::acc_type<scalar_t, true>; gpu_kernel(iter, [] GPU_LAMBDA (scalar_t a_, scalar_t b_) -> scalar_t { const acc_t a = a_; const acc_t b = b_; const acc_t one = acc_t(1); const acc_t sigmoid = one / (one + std::exp(-b)); return a * sigmoid; }); }); } // ----------------------------------- // glu backward // ----------------------------------- // Byte offsets don't require multiplication by sizeof(T), so are slightly cheaper. // For fixed offsets, this removes all penalty from 64-bit indexing. template <typename T> __device__ T* byte_offset(T* ptr, int64_t offset) { using byte_ptr_t = typename std::conditional< std::is_const<T>::value, const char*, char*>::type; return reinterpret_cast<T*>( reinterpret_cast<byte_ptr_t>(ptr) + offset ); } template <typename scalar_t, typename OffsetCalc> __global__ void glu_backward_kernel( int numel, scalar_t* gI, const scalar_t* I, const scalar_t* gO, OffsetCalc offset_calculator, int64_t gI_byte_offset, int64_t I_byte_offset) { using acc_t = at::acc_type<scalar_t, true>; const uint32_t linear_index = blockIdx.x * blockDim.x + threadIdx.x; if (linear_index >= numel) { return; } const auto offsets = offset_calculator.get(linear_index); // We explicitly iterate over the first half of the input tensor, and // gI_byte_offset and I_byte_offset are the offsets to access the // corresponding index in the second half of the tensor. const acc_t a = I[offsets[1]]; const acc_t b = *byte_offset(I + offsets[1], I_byte_offset); const acc_t gO_val = gO[offsets[2]]; const auto one = acc_t(1); const acc_t sigmoid = one / (one + std::exp(-b)); auto* gA = gI + offsets[0]; *gA = sigmoid * gO_val; auto* gB = byte_offset(gA, gI_byte_offset); *gB = (one - sigmoid) * sigmoid * gO_val * a; } void launch_glu_backward_kernel(const TensorIteratorBase& iter, int64_t gI_stride, int64_t I_stride) { const auto N = iter.numel(); TORCH_INTERNAL_ASSERT_DEBUG_ONLY(N > 0 && N <= std::numeric_limits<int32_t>::max()); const auto offset_calculator = make_element_offset_calculator<3>(iter); constexpr int64_t block_size = 256; const int64_t grid = (N + block_size - 1) / block_size; const auto stream = at::cuda::getCurrentCUDAStream(); AT_DISPATCH_FLOATING_TYPES_AND2(kHalf, kBFloat16, iter.common_dtype(), "glu_backward_cuda", [&] { auto gI = static_cast<scalar_t*>(iter.data_ptr(0)); auto I = static_cast<const scalar_t*>(iter.data_ptr(1)); auto gO = static_cast<const scalar_t*>(iter.data_ptr(2)); glu_backward_kernel<<<grid, block_size, 0, stream>>>( N, gI, I, gO, offset_calculator, gI_stride * sizeof(scalar_t), I_stride * sizeof(scalar_t)); C10_CUDA_KERNEL_LAUNCH_CHECK(); }); } // ----------------------------------- // log_sigmoid forward // ----------------------------------- void launch_log_sigmoid_forward_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND(kHalf, iter.common_dtype(), "log_sigmoid_forward_cuda", [&] { using acc_t = acc_type<scalar_t, true>; gpu_kernel(iter, [] GPU_LAMBDA (scalar_t in_) -> scalar_t { const acc_t in = in_; const auto min = std::min(acc_t(0), in); const auto z = std::exp(-std::abs(in)); return min - std::log1p(z); }); }); } // ----------------------------------- // log_sigmoid backward // ----------------------------------- void log_sigmoid_backward_kernel(TensorIterator& iter) { AT_DISPATCH_FLOATING_TYPES_AND(kHalf, iter.common_dtype(), "log_sigmoid_backward_cuda", [&] { using acc_t = acc_type<scalar_t, true>; gpu_kernel(iter, [] GPU_LAMBDA (scalar_t in_, scalar_t grad_out_) -> scalar_t { const acc_t in = in_; const acc_t grad_out = grad_out_; auto in_negative = in < acc_t(0); auto max_deriv = in_negative ? acc_t(1) : acc_t(0); auto sign = in_negative ? acc_t(1) : -acc_t(1); const auto z = std::exp(-std::abs(in)); return grad_out * (max_deriv - sign * (z / (acc_t(1) + z))); }); }); } // ----------------------------------- // prelu forward // ----------------------------------- void launch_prelu_cuda_kernel_share_weights(TensorIteratorBase &iter, const TensorBase &weight) { AT_DISPATCH_FLOATING_TYPES_AND(at::ScalarType::Half, iter.input_dtype(), "prelu_cuda", [&] { const auto *weight_data = weight.data_ptr<scalar_t>(); at::native::gpu_kernel(iter, [weight_data] GPU_LAMBDA (scalar_t input_val) { return (input_val > 0) ? input_val : *weight_data * input_val; }); }); } template <typename scalar_t> __global__ void prelu_cuda_kernel_multi_weights( scalar_t* result_data, const scalar_t* input_data, const scalar_t* weight_data, int64_t input_stride0, int64_t input_stride1, int64_t input_numel) { int64_t linearId = blockIdx.x * blockDim.x + threadIdx.x; if (linearId >= input_numel) return; // multiply values at each channel with weight[channel_index] int64_t channel = (linearId % input_stride0) / input_stride1; scalar_t input_data_val = input_data[linearId]; result_data[linearId] = (input_data_val > 0) ? input_data_val : weight_data[channel] * input_data_val; } void launch_prelu_cuda_kernel_multi_weights( const TensorBase &result, const TensorBase &input, const TensorBase &weight) { int64_t input_ndim = input.dim(); TORCH_CHECK(input_ndim > 0, "Not allow zero-dim input tensor."); int64_t channel_size = 1; // channel_size default to 1 int64_t input_stride0 = 1, input_stride1 = 1; if (input_ndim > 1) { channel_size = input.size(1); // channel is the 2nd dim of input auto strides = input.strides(); input_stride0 = strides[0]; input_stride1 = strides[1]; } const int64_t weight_num = weight.numel(); TORCH_CHECK(channel_size == weight_num, "Mismatch of parameter numbers and input channel size. Found parameter numbers = ", weight_num, " and channel size = ", channel_size, "."); // config to run cuda kernel int64_t input_numel = input.numel(); const dim3 block = dim3(std::min(static_cast<int64_t>(cuda::getApplyBlock().x), input_numel)); dim3 grid; int curDevice = -1; cudaGetDevice(&curDevice); cudaStream_t stream = at::cuda::getCurrentCUDAStream(curDevice); TORCH_CHECK(cuda::getApplyGrid(input_numel, grid, curDevice), "prelu: input too large or too many dimensions"); AT_DISPATCH_FLOATING_TYPES_AND(at::ScalarType::Half, input.scalar_type(), "prelu_cuda", [&] { prelu_cuda_kernel_multi_weights<scalar_t> <<<grid, block, 0, stream>>>( result.data_ptr<scalar_t>(), input.data_ptr<scalar_t>(), weight.data_ptr<scalar_t>(), input_stride0, input_stride1, input_numel); C10_CUDA_KERNEL_LAUNCH_CHECK(); }); } // ----------------------------------- // prelu backward // ----------------------------------- void launch_prelu_cuda_backward_kernel_share_weights( TensorIteratorBase &iter, const TensorBase &weight) { // N.B. `std::tuple` does not support `::operator=` on device code. AT_DISPATCH_FLOATING_TYPES_AND(at::ScalarType::Half, iter.input_dtype(), "prelu_backward_cuda", [&] { const auto *weight_data = weight.data_ptr<scalar_t>(); gpu_kernel_multiple_outputs(iter, [=] GPU_LAMBDA (scalar_t input, scalar_t grad_out) -> thrust::tuple<scalar_t, scalar_t> { scalar_t input_grad = input > 0 ? grad_out : (*weight_data) * grad_out; scalar_t weight_grad_collector = input > 0 ? scalar_t(0) : input * grad_out; return {input_grad, weight_grad_collector}; }); }); } template <typename scalar_t> __global__ void prelu_cuda_backward_kernel_multi_weights( const scalar_t* input_data, const scalar_t* weight_data, const scalar_t* grad_out_data, scalar_t* input_grad_data, scalar_t* weight_grad_collector, int64_t input_stride0, int64_t input_stride1, int64_t input_numel) { int64_t linearId = blockIdx.x * blockDim.x + threadIdx.x; if (linearId >= input_numel) return; int64_t channel = (linearId % input_stride0) / input_stride1; scalar_t input_data_val = input_data[linearId]; scalar_t grad_out_data_val = grad_out_data[linearId]; input_grad_data[linearId] = (input_data_val > 0) ? grad_out_data_val : weight_data[channel] * grad_out_data_val; weight_grad_collector[linearId] = (input_data_val > 0) ? scalar_t(0) : input_data_val * grad_out_data_val; } void launch_prelu_cuda_backward_kernel_multi_weights( const TensorBase &input, const TensorBase &weight, const TensorBase &grad_out, const TensorBase &input_grad, const TensorBase &weight_grad_collector) { int64_t input_ndim = input.dim(); TORCH_CHECK(input_ndim > 0, "Not allow zero-dim input tensor."); int64_t channel_size = 1; // channel_size default to 1 int64_t input_stride0 = 1, input_stride1 = 1; if (input_ndim > 1) { channel_size = input.size(1); // channel is the 2nd dim of input auto strides = input.strides(); input_stride0 = strides[0]; input_stride1 = strides[1]; } const int64_t weight_num = weight.numel(); TORCH_CHECK(channel_size == weight_num, "Mismatch of parameter numbers and input channel size. Found parameter numbers = ", weight_num, " and channel size = ", channel_size, "."); // config to run cuda kernel int64_t input_numel = input.numel(); const dim3 block = dim3(std::min(static_cast<int64_t>(cuda::getApplyBlock().x), input_numel)); dim3 grid; int curDevice = -1; cudaGetDevice(&curDevice); cudaStream_t stream = at::cuda::getCurrentCUDAStream(curDevice); TORCH_CHECK(cuda::getApplyGrid(input_numel, grid, curDevice), "prelu_backward_cuda: input too large or too many dimensions"); AT_DISPATCH_FLOATING_TYPES_AND(at::ScalarType::Half, input.scalar_type(), "prelu_backward_cuda", [&] { prelu_cuda_backward_kernel_multi_weights<scalar_t> <<<grid, block, 0, stream>>>( input.data_ptr<scalar_t>(), weight.data_ptr<scalar_t>(), grad_out.data_ptr<scalar_t>(), input_grad.data_ptr<scalar_t>(), weight_grad_collector.data_ptr<scalar_t>(), input_stride0, input_stride1, input_numel); C10_CUDA_KERNEL_LAUNCH_CHECK(); }); } // ----------------------------------- // hardshrink // ----------------------------------- void hardshrink_kernel(TensorIteratorBase& iter, const Scalar& value) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "hardshrink_cuda", [&]() { auto lambd = value.to<scalar_t>(); gpu_kernel(iter, [lambd]GPU_LAMBDA(scalar_t a) -> scalar_t { return (a >= -lambd && a <= lambd) ? scalar_t(0) : a; }); }); } void softshrink_kernel(TensorIteratorBase& iter, const Scalar& value) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "softshrink_cuda", [&]() { auto lambd = value.to<scalar_t>(); gpu_kernel(iter, [lambd]GPU_LAMBDA(scalar_t a) -> scalar_t { return a > lambd ? a - lambd : (a < -lambd ? a + lambd : scalar_t(0)); }); }); } void shrink_backward_kernel(TensorIteratorBase& iter, const Scalar& value) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "shrink_backward_cuda", [&]() { auto lambd = value.to<scalar_t>(); gpu_kernel(iter, [lambd]GPU_LAMBDA(scalar_t grad_val, scalar_t self_val) -> scalar_t { return (self_val >= -lambd && self_val <= lambd) ? scalar_t(0) : grad_val; }); }); } void hardtanh_backward_kernel(TensorIterator& iter, const Scalar& min, const Scalar& max) { AT_DISPATCH_FLOATING_TYPES_AND(at::ScalarType::Half, iter.dtype(), "hardtanh_backward_cuda", [&]() { auto min_val = min.to<scalar_t>(); auto max_val = max.to<scalar_t>(); gpu_kernel(iter, [min_val, max_val]GPU_LAMBDA(scalar_t a, scalar_t b) -> scalar_t { return (b <= min_val) || (b >= max_val) ? scalar_t(0) : a; }); }); } void softplus_kernel(TensorIteratorBase& iter, const Scalar& beta_, const Scalar& threshold_) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "softplus_cuda", [&]() { auto beta = beta_.to<scalar_t>(); auto threshold = threshold_.to<scalar_t>(); gpu_kernel(iter, [beta, threshold]GPU_LAMBDA(scalar_t a) -> scalar_t { return (a * beta) > threshold ? a : static_cast<scalar_t>(::log1p(std::exp(a * beta))) / beta; }); }); } void softplus_backward_kernel(TensorIteratorBase& iter, const Scalar& beta_, const Scalar& threshold_) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "softplus_backward_cuda", [&]() { auto beta = beta_.to<scalar_t>(); auto threshold = threshold_.to<scalar_t>(); gpu_kernel(iter, [beta, threshold]GPU_LAMBDA(scalar_t a, scalar_t b) -> scalar_t { scalar_t z = std::exp(b * beta); return (b * beta) > threshold ? a : a * z / (z + scalar_t(1.)); }); }); } template <typename scalar_t> void threshold_kernel_impl(TensorIteratorBase& iter, scalar_t threshold, scalar_t value) { gpu_kernel_with_scalars(iter, [=]GPU_LAMBDA(scalar_t x, scalar_t other) -> scalar_t { return x <= threshold ? value : other; }); } static void threshold_kernel_cuda(TensorIteratorBase& iter, const Scalar& threshold, const Scalar& value) { AT_DISPATCH_ALL_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "threshold_cuda", [&] { threshold_kernel_impl<scalar_t>(iter, threshold.to<scalar_t>(), value.to<scalar_t>()); }); } void elu_kernel(TensorIteratorBase& iter, const Scalar& alpha, const Scalar& scale, const Scalar& input_scale) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "elu_cuda", [&]() { auto negcoef = alpha.to<scalar_t>() * scale.to<scalar_t>(); auto poscoef = scale.to<scalar_t>(); auto negiptcoef = input_scale.to<scalar_t>(); gpu_kernel(iter, [negcoef, poscoef, negiptcoef]GPU_LAMBDA(scalar_t a) -> scalar_t { return a > scalar_t(0) ? a * poscoef : (static_cast<scalar_t>(std::exp(a * negiptcoef)) - scalar_t(1.)) * negcoef; }); }); } void elu_backward_kernel(TensorIteratorBase& iter, const Scalar& alpha, const Scalar& scale, const Scalar& input_scale, bool is_result) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "elu_backward_cuda", [&]() { auto negcoef = alpha.to<scalar_t>() * scale.to<scalar_t>(); auto poscoef = scale.to<scalar_t>(); auto negiptcoef = input_scale.to<scalar_t>(); gpu_kernel(iter, [negcoef, poscoef, negiptcoef, is_result]GPU_LAMBDA(scalar_t a, scalar_t b) -> scalar_t { if (is_result) { return b <= scalar_t(0) ? a * negiptcoef * (b + negcoef) : a * poscoef; } else { return b <= scalar_t(0) ? a * negiptcoef * negcoef * (static_cast<scalar_t>(std::exp(b * negiptcoef))) : a * poscoef; } }); }); } void GeluCUDAKernelImpl(TensorIteratorBase& it) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, it.dtype(), "GeluCUDAKernelImpl", [&]() { using T_ACC = acc_type<scalar_t, true>; gpu_kernel(it, [] GPU_LAMBDA(scalar_t x) -> scalar_t { return static_cast<T_ACC>(x) * c10::cuda::compat::normcdf(static_cast<T_ACC>(x)); }); }); } void GeluBackwardCUDAKernelImpl(TensorIteratorBase& it) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, it.dtype(), "GeluBackwardCUDAKernelImpl", [&]() { using T_ACC = acc_type<scalar_t, true>; gpu_kernel(it, [] GPU_LAMBDA(scalar_t dy, scalar_t x) -> scalar_t { constexpr T_ACC kBeta = M_2_SQRTPI * M_SQRT1_2 * T_ACC(0.5); const T_ACC cdf = c10::cuda::compat::normcdf(static_cast<T_ACC>(x)); const T_ACC pdf = c10::cuda::compat::exp( T_ACC(-0.5) * static_cast<T_ACC>(x) * static_cast<T_ACC>(x)) * kBeta; return static_cast<T_ACC>(dy) * (cdf + static_cast<T_ACC>(x) * pdf); }); }); } namespace { void leaky_relu_kernel(TensorIteratorBase& iter, const Scalar& negval_) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "leaky_relu_cuda", [&]() { auto negval = negval_.to<scalar_t>(); gpu_kernel(iter, [negval]GPU_LAMBDA(scalar_t a) -> scalar_t { return a > scalar_t(0) ? a : a * negval; }); }); } void leaky_relu_backward_kernel(TensorIteratorBase& iter, const Scalar& negval_) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "leaky_relu_backward_cuda", [&]() { auto negval = negval_.to<scalar_t>(); gpu_kernel(iter, [negval]GPU_LAMBDA(scalar_t a, scalar_t b) -> scalar_t { return a > scalar_t(0) ? b : b * negval; }); }); } void hardswish_kernel(TensorIterator& iter) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "hardswish_cuda", [&]() { using T_ACC = acc_type<scalar_t, true>; const T_ACC zero(0.0f); const T_ACC one_sixth(1.0f / 6.0f); const T_ACC three(3.0f); const T_ACC six(6.0f); gpu_kernel(iter, [zero, one_sixth, three, six]GPU_LAMBDA(scalar_t self_val) -> scalar_t { T_ACC x = static_cast<T_ACC>(self_val); return x * std::min(std::max(x + three, zero), six) * one_sixth; }); }); } void hardswish_backward_kernel(TensorIterator& iter) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "hardswish_backward_cuda", [&]() { using T_ACC = acc_type<scalar_t, true>; const T_ACC zero(0.0f); const T_ACC three(3.0f); const T_ACC neg_three(-3.0f); const T_ACC one_half(0.5f); gpu_kernel( iter, [zero, three, neg_three, one_half]GPU_LAMBDA(scalar_t grad_val_, scalar_t self_val_) -> scalar_t { T_ACC grad_val = static_cast<T_ACC>(grad_val_); T_ACC self_val = static_cast<T_ACC>(self_val_); if (self_val < neg_three) { return zero; } else if (self_val <= three) { return grad_val * ((self_val / three) + one_half); } else { return grad_val; } }); }); } void hardsigmoid_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "hardsigmoid_cuda", [&]() { using T_ACC = acc_type<scalar_t, true>; const T_ACC zero(0.0f); const T_ACC one_sixth(1.0f / 6.0f); const T_ACC three(3.0f); const T_ACC six(6.0f); gpu_kernel(iter, [zero, one_sixth, three, six]GPU_LAMBDA(scalar_t self_val) -> scalar_t { T_ACC x = static_cast<T_ACC>(self_val); return std::min(std::max(x + three, zero), six) * one_sixth; }); }); } void hardsigmoid_backward_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "hardsigmoid_backward_cuda", [&]() { using T_ACC = acc_type<scalar_t, true>; const T_ACC zero(0.0f); const T_ACC three(3.0f); const T_ACC neg_three(-3.0f); const T_ACC one_sixth(1.0f / 6.0f); gpu_kernel( iter, [zero, three, neg_three, one_sixth]GPU_LAMBDA(scalar_t grad_val_, scalar_t self_val_) -> scalar_t { T_ACC grad_val = static_cast<T_ACC>(grad_val_); T_ACC self_val = static_cast<T_ACC>(self_val_); return (self_val > neg_three && self_val < three) ? grad_val * one_sixth : zero; }); }); } void silu_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND2( at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "silu_cuda", [&]() { gpu_kernel( iter, [] GPU_LAMBDA(scalar_t x) -> scalar_t { using T_ACC = acc_type<scalar_t, true>; const T_ACC x_acc = static_cast<T_ACC>(x); return x_acc / (T_ACC(1) + c10::cuda::compat::exp(-x_acc)); }); }); } void silu_backward_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND2( at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "silu_backward_cuda", [&]() { gpu_kernel( iter, [] GPU_LAMBDA(scalar_t dy, scalar_t x) -> scalar_t { using T_ACC = acc_type<scalar_t, true>; const T_ACC dy_acc = static_cast<T_ACC>(dy); const T_ACC x_acc = static_cast<T_ACC>(x); const T_ACC s_acc = T_ACC(1) / (T_ACC(1) + c10::cuda::compat::exp(-x_acc)); return dy_acc * s_acc * (T_ACC(1) + x_acc * (T_ACC(1) - s_acc)); }); }); } void mish_kernel(TensorIteratorBase& iter) { AT_DISPATCH_FLOATING_TYPES_AND2( at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "mish_cuda", [&]() { gpu_kernel( iter, [] GPU_LAMBDA(scalar_t x) -> scalar_t { using T_ACC = acc_type<scalar_t, true>; const T_ACC x_acc = static_cast<T_ACC>(x); return x_acc * c10::cuda::compat::tanh(c10::cuda::compat::log1p(c10::cuda::compat::exp(x_acc))); }); }); } void mish_backward_kernel(TensorIterator& iter) { AT_DISPATCH_FLOATING_TYPES_AND2( at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "mish_backward_cuda", [&]() { gpu_kernel( iter, [] GPU_LAMBDA(scalar_t dy, scalar_t x) -> scalar_t { using T_ACC = acc_type<scalar_t, true>; const T_ACC dy_acc = static_cast<T_ACC>(dy); const T_ACC x_acc = static_cast<T_ACC>(x); const T_ACC s_acc = T_ACC(1) / (T_ACC(1) + c10::cuda::compat::exp(-x_acc)); const T_ACC t_acc = c10::cuda::compat::tanh(c10::cuda::compat::log1p(c10::cuda::compat::exp(x_acc))); return dy_acc * (t_acc + x_acc * s_acc * (T_ACC(1) - t_acc * t_acc)); }); }); } } // namespace REGISTER_DISPATCH(hardtanh_backward_stub, &hardtanh_backward_kernel); REGISTER_DISPATCH(hardshrink_stub, &hardshrink_kernel); REGISTER_DISPATCH(log_sigmoid_backward_stub, &log_sigmoid_backward_kernel); REGISTER_DISPATCH(softshrink_stub, &softshrink_kernel); REGISTER_DISPATCH(shrink_backward_stub, &shrink_backward_kernel); REGISTER_DISPATCH(elu_stub, &elu_kernel); REGISTER_DISPATCH(elu_backward_stub, &elu_backward_kernel); REGISTER_DISPATCH(glu_stub, &glu_kernel); REGISTER_DISPATCH(leaky_relu_stub, &leaky_relu_kernel); REGISTER_DISPATCH(leaky_relu_backward_stub, &leaky_relu_backward_kernel); REGISTER_DISPATCH(hardswish_stub, &hardswish_kernel); REGISTER_DISPATCH(hardswish_backward_stub, &hardswish_backward_kernel); REGISTER_DISPATCH(hardsigmoid_stub, &hardsigmoid_kernel); REGISTER_DISPATCH(hardsigmoid_backward_stub, &hardsigmoid_backward_kernel); REGISTER_DISPATCH(softplus_stub, &softplus_kernel); REGISTER_DISPATCH(softplus_backward_stub, &softplus_backward_kernel); REGISTER_DISPATCH(silu_stub, &silu_kernel); REGISTER_DISPATCH(silu_backward_stub, &silu_backward_kernel); REGISTER_DISPATCH(mish_stub, &mish_kernel); REGISTER_DISPATCH(mish_backward_stub, &mish_backward_kernel); REGISTER_DISPATCH(threshold_stub, &threshold_kernel_cuda); } // namespace native } // namespace at
Cuda
5
xiaohanhuang/pytorch
aten/src/ATen/native/cuda/Activation.cu
[ "Intel" ]
use assert_cmd::prelude::*; use dir_diff; use std::process::Command; use tempdir; use tempdir::TempDir; #[test] fn test_go_help() { let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("-h"); // assert_eq!(output, help); let assert = cmd.assert(); assert.success().stdout( r#"gen-license-go is a 996.icu license generator implemented in Go, this generator is developed to generate various open-source licenses including MIT, Apache, etc. More importantly, the main purpose of this tool is to incorporate those aforesaid licenses into a brand new license: 996.icu, defined by this repository. Usage: gen-license-go [flags] gen-license-go [command] Available Commands: gen gen is a 996.icu license generator-command. help Help about any command Flags: -h, --help help for gen-license-go -l, --list list all licenses (default true) Use "gen-license-go [command] --help" for more information about a command."#, ); } #[test] fn test_go_create_license_mit() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("mit").arg("--996icu").args("en-us"); assert!( !dir_diff::is_different(&tmp_dir.path(), "../../gen-license-go/licenses/mit.txt").unwrap() ); } #[test] fn test_go_create_license_996icu() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("--996icu").arg("--996icu").args("en-us"); assert!(!dir_diff::is_different( &tmp_dir.path(), "../../gen-license-go/licenses/996.icu.template.en-us.txt" ) .unwrap()); } #[test] fn test_go_create_license_agpl() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen") .arg("--agpl-3.0") .arg("--996icu") .args("en-us"); assert!(!dir_diff::is_different( &tmp_dir.path(), "../../gen-license-go/licenses/agpl-3.0.txt" ) .unwrap()); } #[test] fn test_go_create_license_apache() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen") .arg("--apache-2.0") .arg("--996icu") .args("en-us"); assert!(!dir_diff::is_different( &tmp_dir.path(), "../../gen-license-go/licenses/apache-2.0.txt" ) .unwrap()); } #[test] fn test_go_create_license_bsd_2() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen") .arg("--bsd-2-clause") .arg("--996icu") .args("en-us"); assert!(!dir_diff::is_different( &tmp_dir.path(), "../../gen-license-go/licenses/bsd-2-clause.txt" ) .unwrap()); } #[test] fn test_go_create_license_bsd_3() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen") .arg("bsd-3-clause") .arg("--996icu") .args("en-us"); assert!(!dir_diff::is_different( &tmp_dir.path(), "../../gen-license-go/licenses/bsd-3-clause.txt" ) .unwrap()); } #[test] fn test_go_create_license_epl() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("epl-2.0").arg("--996icu").args("en-us"); assert!( !dir_diff::is_different(&tmp_dir.path(), "../../gen-license-go/licenses/996.txt").unwrap() ); } #[test] fn test_go_create_license_996() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("--996"); assert!( !dir_diff::is_different(&tmp_dir.path(), "../../gen-license-go/licenses/996.txt").unwrap() ); } #[test] fn test_go_create_license_996() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("--996"); assert!( !dir_diff::is_different(&tmp_dir.path(), "../../gen-license-go/licenses/996.txt").unwrap() ); } #[test] fn test_go_create_license_996() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("--996"); assert!( !dir_diff::is_different(&tmp_dir.path(), "../../gen-license-go/licenses/996.txt").unwrap() ); } #[test] fn test_go_create_license_996() { let tmp_dir = TempDir::new("foo").expect("create temp dir failed"); let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/gen-license-go" } else { "../gen-license-go/bin/osx/gen-license-go" }; let mut cmd = Command::new(&path); cmd.arg("gen").arg("--996"); assert!( !dir_diff::is_different(&tmp_dir.path(), "../../gen-license-go/licenses/996.txt").unwrap() ); }
Rust
4
luyouli/996.ICU
archived/licenses[WIP]/tools/test-gen-license/src/test_go.rs
[ "ICU", "MIT" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="19008000"> <Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property> <Item Name="My Computer" Type="My Computer"> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="Client" Type="Folder"> <Item Name="TestClientStreaming.vi" Type="VI" URL="../Client/TestClientStreaming.vi"/> <Item Name="TestServerStreaming.vi" Type="VI" URL="../Client/TestServerStreaming.vi"/> </Item> <Item Name="Protobuf" Type="Folder"> <Item Name="SimpleAnyBuilder.vi" Type="VI" URL="../Protobuf/SimpleAnyBuilder.vi"/> <Item Name="SimpleAnyPackUnpack.vi" Type="VI" URL="../Protobuf/SimpleAnyPackUnpack.vi"/> <Item Name="SimpleBuilder.vi" Type="VI" URL="../Protobuf/SimpleBuilder.vi"/> <Item Name="SimplePackUnpack.vi" Type="VI" URL="../Protobuf/SimplePackUnpack.vi"/> <Item Name="TestParseWithUnknownFields.vi" Type="VI" URL="../Protobuf/TestParseWithUnknownFields.vi"/> <Item Name="TestUnpackFields.vi" Type="VI" URL="../Protobuf/TestUnpackFields.vi"/> </Item> <Item Name="Protos" Type="Folder"> <Item Name="data_marshal.proto" Type="Document" URL="../Protos/data_marshal.proto"/> </Item> <Item Name="TestDataMarshal" Type="Folder"> <Item Name="TestDataMarshal.lvlib" Type="Library" URL="../Servers/TestDataMarshal/TestDataMarshal.lvlib"/> </Item> <Item Name="Dependencies" Type="Dependencies"> <Item Name="vi.lib" Type="Folder"> <Item Name="Any.ctl" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/typeDefs/Any.ctl"/> <Item Name="AnyBuilderAddValue.vim" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Message Requests/AnyBuilderAddValue.vim"/> <Item Name="AnyBuilderBegin.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Message Requests/AnyBuilderBegin.vi"/> <Item Name="AnyBuilderBuild.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Message Requests/AnyBuilderBuild.vi"/> <Item Name="AnyBuilderBuildToBuffer.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Message Requests/AnyBuilderBuildToBuffer.vi"/> <Item Name="Application Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Application Directory.vi"/> <Item Name="CompleteMetadataRegistration.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/CompleteMetadataRegistration.vi"/> <Item Name="CreateSerializationSession.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/CreateSerializationSession.vi"/> <Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/> <Item Name="FreeSerializationSession.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/FreeSerializationSession.vi"/> <Item Name="Get Server DLL Path.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Server/Get Server DLL Path.vi"/> <Item Name="grpcId.ctl" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/typeDefs/grpcId.ctl"/> <Item Name="Message Element Metadata.ctl" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/typeDefs/Message Element Metadata.ctl"/> <Item Name="Message Element Type.ctl" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/typeDefs/Message Element Type.ctl"/> <Item Name="Message Metadata.ctl" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/typeDefs/Message Metadata.ctl"/> <Item Name="NI_Data Type.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/Data Type/NI_Data Type.lvlib"/> <Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/> <Item Name="PackToAny.vim" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Message Requests/PackToAny.vim"/> <Item Name="PackToBuffer.vim" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/PackToBuffer.vim"/> <Item Name="Register Message Metadata.vi" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Server/Register Message Metadata.vi"/> <Item Name="UnpackFromAny.vim" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/Message Requests/UnpackFromAny.vim"/> <Item Name="UnpackFromBuffer.vim" Type="VI" URL="/&lt;vilib&gt;/gRPC/LabVIEW gRPC Library/Server API/UnpackFromBuffer.vim"/> </Item> <Item Name="gprc-lvsupport.lvlib" Type="Library" URL="../../labview source/gRPC lv Support/gprc-lvsupport.lvlib"/> </Item> <Item Name="Build Specifications" Type="Build"/> </Item> </Project>
LabVIEW
2
NJKirchner/grpc-labview
tests/Tests.lvproj
[ "MIT" ]
#N canvas 325 92 664 335 12; #X obj 62 82 inlet; #X obj 62 110 float \$1; #X obj 62 138 send \$2; #X text 180 223 For obvious reasons you might not want to call a patch as an abstraction from itself., f 43; #X text 177 182 In this case \$1 is a number you can specify and \$2 is a "send" destination.; #X text 411 287 updated for Pd version 0.26; #X text 180 102 When you call an abstraction by typing \, say \, "sendnumber 1 x" in an object box. the subpatch can access the values of the creation arguments (1 and x) as "\$1" and "\$2" inside object boxes. Typing \$1 inside a message box has a different meaning (see the message box help window.); #X text 181 30 This window is used by 11.subpatch.pd to demonstrate the abstraction mechanism in Pd. If you've opened this window directly \, you might also want to open the other one to see how it's used. ; #X connect 0 0 1 0; #X connect 1 0 2 0;
Pure Data
5
mcclure/pure-data
doc/2.control.examples/sendnumber.pd
[ "TCL" ]
CREATE TABLE `tb_qinfehbzem` ( `col_ginzfhyvfi` int(10) unsigned DEFAULT '1', `col_cakcnwuchg` date DEFAULT '2019-07-04', `col_hgdcocydeg` int(10) unsigned zerofill DEFAULT NULL, `col_opsrfpouaa` longblob, UNIQUE KEY `uk_tcqbsivphi` (`col_opsrfpouaa`(1)), UNIQUE KEY `col_hgdcocydeg` (`col_hgdcocydeg`,`col_opsrfpouaa`(29)) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SQL
3
yuanweikang2020/canal
parse/src/test/resources/ddl/table/mysql_9.sql
[ "Apache-2.0" ]
PREFIX : <http://example.org/> SELECT * WHERE { ?s :num ?num FILTER(ABS(?num) >= 2) }
SPARQL
4
alpano-unibz/ontop
test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/functions/abs01.rq
[ "Apache-2.0" ]
package pandas_test import "testing" import "strings" option now = () => 2030-01-01T00:00:00Z inData = " #datatype,string,long,dateTime:RFC3339,string,string,string,string,string,string,string #group,false,false,false,false,true,true,true,true,true,true #default,_result,,,,,,,,, ,result,table,_time,_value,_field,_measurement,device,fstype,host,path ,,0,2018-05-22T19:53:26Z,a,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:36Z,k9n gm,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:46Z,b ,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:56Z,2COTDe,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:54:06Z,cLnSkNMI ,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:54:16Z,13F2 ,used_percent,disk,disk1,apfs,host.local,/ " outData = " #datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,string,string,string,string,string,string,string #group,false,false,true,true,false,false,true,true,true,true,true,true #default,_result,,,,,,,,,,, ,result,table,_start,_stop,_time,_value,_field,_measurement,device,fstype,host,path ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,2018-05-22T19:53:26Z,aPLUS,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,2018-05-22T19:53:36Z,k9n gmPLUS,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,2018-05-22T19:53:46Z,b PLUS,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,2018-05-22T19:53:56Z,2COTDePLUS,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,2018-05-22T19:54:06Z,cLnSkNMI PLUS,used_percent,disk,disk1,apfs,host.local,/ ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,2018-05-22T19:54:16Z,13F2 PLUS,used_percent,disk,disk1,apfs,host.local,/ " t_string_joinStr = (table=<-) => table |> range(start: 2018-05-22T19:53:26Z) |> map(fn: (r) => ({r with _value: strings.joinStr(arr: [r._value, "PLUS"], v: "")})) test _string_joinStr = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_string_joinStr})
FLUX
4
metrico/flux
stdlib/testing/pandas/cat_strings_joinStr_test.flux
[ "MIT" ]
[a|b|="c"]{}
CSS
1
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/input.css
[ "Apache-2.0" ]
`numpy.fromregex` now accepts ``os.PathLike`` implementations ------------------------------------------------------------- `numpy.fromregex` now accepts objects implementing the `__fspath__<os.PathLike>` protocol, *e.g.* `pathlib.Path`.
reStructuredText
1
iam-abbas/numpy
doc/release/upcoming_changes/19680.improvement.rst
[ "BSD-3-Clause" ]
<?xml version="1.0" encoding="utf-8"?> <?python import urlparse import logging logger = logging.getLogger('pywms.templates.GetCapabilities') def strip_qs(url): t = urlparse.urlparse(url) return urlparse.urlunparse(list(t[:3])+['','','']) def layerFolderName(indexes): """Turn a list of indexes into a layer name. """ return "folder_%s" % '_'.join(str(x) for x in indexes) ?> <WMS_Capabilities version="${version}" xmlns:py="http://purl.org/kid/ns#" xmlns="http://www.opengis.net/wms" xmlns:xlink="http://www.w3.org/1999/xlink/"> <Layer py:def="layer(name)"> <!--! <?python logger.info('calling layer(%s)' % name) ?> --> <Name>${name}</Name> <Title>${model.layers[name].title}</Title> <Abstract py:content="model.layers[name].abstract"/> <Dimension py:for="name, dim in model.layers[name].dimensions.items()" name="${name}" units="${dim.units}" >${dim.extent}</Dimension> </Layer> <Layer py:def="layerFolder(lf, indexes, depth, topLevel=False)"> <!--! <?python logger.info('calling layerFolder(%s, %s, %s)' % (lf, indexes, depth)) ?> --> <Name py:if="indexes" py:content="layerFolderName(indexes)"/> <Name py:if="not indexes">toplevel</Name> <Title py:content="lf.title"/> <Abstract py:content="lf.abstract"/> <!--! <CRS py:if="topLevel">CRS:84</CRS> --> <SRS py:if="topLevel">EPSG:4326</SRS> <BoundingBox py:if="topLevel" SRS="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90"/> <div py:if="depth != 0" py:for="i, item in enumerate(lf.contents)" py:strip="True"> <Layer py:if="type(item) == str" py:replace="layer(item)"/> <Layer py:if="type(item) != str" py:replace="layerFolder(item, indexes + [i], depth-1)"/> </div> </Layer> <Service> <Name>WMS</Name> <Title>${model.title}</Title> <OnlineResource xlink:type="simple" xlink:href="${strip_qs(url)}"/> </Service> <Capability> <Request> <GetCapabilities> <Format>application/vnd.ogc.wms_xml</Format> <DCPType><HTTP><Get> <OnlineResource xlink:type="simple" xlink:href="${strip_qs(url)}"/> </Get></HTTP></DCPType> </GetCapabilities> <GetMap> <Format py:for="format in formats">${format}</Format> <DCPType><HTTP><Get> <OnlineResource xlink:type="simple" xlink:href="${strip_qs(url)}"/> </Get></HTTP></DCPType> </GetMap> </Request> <Exception> <Format>application/vnd.ogc.se_xml</Format> </Exception> <?python if not contextFolder: contextFolder = model.layerFolder ?> ${layerFolder(contextFolder, indexes, depth, topLevel=True)} </Capability> </WMS_Capabilities>
Genshi
4
cedadev/cows
cows/service/imps/pywms/templates/GetCapabilities.kid
[ "BSD-2-Clause" ]
;============================================================================== ; Autopsy Forensic Browser ; ; Copyright 2019 Basis Technology Corp. ; Contact: carrier <at> sleuthkit <dot> org ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. ;============================================================================== #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include<ComboConstants.au3> #include <EditConstants.au3> #include<WindowsConstants.au3> #include <ManifestGenerationAlgorithms.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode ;============================================== ; ;Draw GUI and declare variables ; ;============================================== local $windowHeight = 560 local $windowWidth = 460 local $windowTitle = "Autopsy Auto Ingest Manifest File Generator" Global $hMainGUI = GUICreate($windowTitle, $windowWidth, $windowHeight) ;To make GUI resize add following args -1, -1, $WS_OVERLAPPEDWINDOW) ;GUICtrlSetResizing ($hMainGUI, $GUI_DOCKBORDERS) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEButton") Global $propertiesFile = "ManifestTool.settings" Global $workingDir = @WorkingDir local $topMargin = 12 local $leftMargin = 12 local $labelOffset = 1 local $buttonOffset = -3 local $progressAreaInset = 8 local $distanceFromTop = $topMargin local $distanceFromLeft = $leftMargin Global $defaultDirectory = @MyDocumentsDir & "\" local $labelWidth = 63 local $fieldWidth = 255 local $buttonWidth = 95 local $fieldHeight = 20 local $descriptionHeight = 50 local $progressAreaWidth = $windowWidth - 2*($progressAreaInset+$leftMargin) local $gapBetweenWidth = 10 local $gapBetweenHeight = 10 ;Draw the GUI Code GUICtrlCreateLabel("Input", $distanceFromLeft, $distanceFromTop+$labelOffset) $distanceFromLeft = $distanceFromLeft+$labelWidth+$gapBetweenWidth Global $algorithmComboBox = GUICtrlCreateCombo(GetDefaultAlgorithmName(), $distanceFromLeft, $distanceFromTop, $fieldWidth, $fieldHeight, $CBS_DROPDOWNLIST) GUICtrlSetOnEvent($algorithmComboBox, "Redraw") Global $allAlgorithmNames = GetAlgorithmNames() for $algorithmName IN $allAlgorithmNames ; Add additional items to the combobox. GUICtrlSetData($algorithmComboBox, $algorithmName) Next $distanceFromLeft = $leftMargin $distanceFromTop = $distanceFromTop + $fieldHeight + $gapBetweenHeight GUICtrlCreateLabel("Description", $distanceFromLeft, $distanceFromTop+$labelOffset) $distanceFromLeft = $distanceFromLeft+$labelWidth+$gapBetweenWidth ;calculate height of progress area to use remaining space minus space for exit button Global $descriptionArea = GUICtrlCreateEdit("", $distanceFromLeft, $distanceFromTop, $fieldWidth, $descriptionHeight, BitOr($ES_READONLY,$WS_VSCROLL, $ES_MULTILINE)) $distanceFromLeft = $leftMargin $distanceFromTop = $distanceFromTop + $descriptionHeight + $gapBetweenHeight Global $caseDirectoryLabel = GUICtrlCreateLabel("Case Directory", $distanceFromLeft, $distanceFromTop+$labelOffset) $distanceFromLeft = $distanceFromLeft+$labelWidth+$gapBetweenWidth Global $rootFolderField = GUICtrlCreateInput("", $distanceFromLeft, $distanceFromTop, $fieldWidth, $fieldHeight) $distanceFromLeft = $distanceFromLeft +$fieldWidth+$gapBetweenWidth Global $browseButton = GUICtrlCreateButton("Browse", $distanceFromLeft, $distanceFromTop+$buttonOffset, $buttonWidth) $distanceFromLeft = $leftMargin $distanceFromTop = $distanceFromTop + $fieldHeight + $gapBetweenHeight Global $caseNameLabel = GUICtrlCreateLabel("Case Name", $distanceFromLeft, $distanceFromTop+$labelOffset) $distanceFromLeft = $distanceFromLeft+$labelWidth+$gapBetweenWidth Global $caseNameField = GUICtrlCreateInput("", $distanceFromLeft, $distanceFromTop, $fieldWidth, $fieldHeight) $distanceFromLeft = $distanceFromLeft +$fieldWidth+$gapBetweenWidth $distanceFromTop = $distanceFromTop + $fieldHeight + $gapBetweenHeight $distanceFromTop = $distanceFromTop + $gapBetweenHeight ;add an extra gap before Generate Manifest button Global $generateManifestButton = GUICtrlCreateButton("Generate Manifest", $distanceFromLeft, $distanceFromTop+$buttonOffset, $buttonWidth) GUICtrlSetOnEvent($generateManifestButton, "AlgorithmGenerateManifestAction") $distanceFromTop = $distanceFromTop + $fieldHeight + $gapBetweenHeight $distanceFromLeft = $leftMargin $distanceFromTop = $distanceFromTop + $fieldHeight + $gapBetweenHeight ;add extra gap before progress area local $ProgressLabel = GUICtrlCreateLabel("Progress", $distanceFromLeft, $distanceFromTop+$labelOffset) $distanceFromTop = $distanceFromTop + $fieldHeight + $gapBetweenHeight $distanceFromLeft = $distanceFromLeft + $progressAreaInset $progressAreaHeight = $windowHeight -$distanceFromTop - $gapBetweenHeight - $gapBetweenHeight - $fieldHeight ;calculate height of progress area to use remaining space minus space for exit button Global $progressField = GUICtrlCreateEdit("", $distanceFromLeft, $distanceFromTop, $progressAreaWidth, $progressAreaHeight, BitOr($ES_READONLY,$WS_VSCROLL, $ES_MULTILINE)) $distanceFromLeft = $distanceFromLeft + $progressAreaWidth - $buttonWidth $distanceFromTop = $distanceFromTop + $progressAreaHeight + $gapBetweenHeight Local $exitButton = GUICtrlCreateButton("Exit", $distanceFromLeft, $distanceFromTop+$buttonOffset, $buttonWidth) GUICtrlSetOnEvent($exitButton, "CLOSEButton") GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEButton") GUISwitch($hMainGUI) GUISetState(@SW_SHOW) ChangeToDefaultGUI() ReadPropertiesFile() Local $oldCaseName = GUICtrlRead($caseNameField) local $oldRootFolder = GUICtrlRead($rootFolderField) While 1 Sleep(100) ; Sleep to reduce CPU usage ValidateFields($oldCaseName, $oldRootFolder) ;validate here so that we check the current value of any input areas without requiring a change in focus $oldCaseName = GUICtrlRead($caseNameField) $oldRootFolder = GUICtrlRead($rootFolderField) WEnd ;============================================== ; ;Functions ; ;============================================== ; Read the saved properties file, if none exist make one with the current settings Func ReadPropertiesFile() If FileExists($propertiesFile) <> 1 Then FileChangeDir($workingDir) _FileCreate($propertiesFile) WritePropertiesFile() Endif Local $propertiesFileHandle = FileOpen($propertiesFile, $FO_READ) Local $savedSelection = FileReadLine($propertiesFileHandle, 1) Local $indexOfSelection = _ArraySearch($allAlgorithmNames, $savedSelection) if ($indexOfSelection >= 0) Then GUICtrlSetData($algorithmComboBox, $savedSelection, $savedSelection) EndIf Local $savedDirectory = FileReadLine($propertiesFileHandle, 2) if (FileExists($savedDirectory)) Then $defaultDirectory = $savedDirectory EndIf FileClose($propertiesFileHandle) Redraw() EndFunc ; Write the current settings to the properties file Func WritePropertiesFile() FileChangeDir($workingDir) Local $propertiesFileHandle = FileOpen($propertiesFile, $FO_OVERWRITE) If $propertiesFileHandle == -1 Then ;can't access the properties file so exit Return EndIf FileWrite($propertiesFileHandle, GUICtrlRead($algorithmComboBox) & @CRLF) FileWrite($propertiesFileHandle, $defaultDirectory & @CRLF) FileClose($propertiesFileHandle) EndFunc ;Make only the settings and labels relevent to the selected Algorithm visible using $GUI_SHOW and $GUI_HIDE Func Redraw() ; Note: At this point @GUI_CtrlId would equal algorithmComboBox Local $selectedAlgName = GUICtrlRead($algorithmComboBox) ;Move controls based on what is hidden or shown using ControlGetPos() and GUICtrlSetPos() If $selectedAlgName == $allAlgorithmNames[2] Then ;"One Data Source Per Folder" ChangeToDefaultGUI() GUICtrlSetData($descriptionArea, GetAlgorithmDescription(2)) ElseIf $selectedAlgName == $allAlgorithmNames[0] Then ;"Single Data Source" ChangeToSingleDataSourceGUI() GUICtrlSetData($descriptionArea, GetAlgorithmDescription(0)) ElseIf $selectedAlgName == $allAlgorithmNames[1] Then ;"Folder of Logical Files" ChangeToFolderOfLogicalFilesGUI() GUICtrlSetData($descriptionArea, GetAlgorithmDescription(1)) EndIf EndFunc ;==>AlgorithmComboBox ;Change the controls displayed in the GUI to the ones needed for the Single Data Source algorithm Func ChangeToSingleDataSourceGUI() ClearFields() GUICtrlSetData($caseDirectoryLabel, "Data Source") GUICtrlSetState($caseNameField, $GUI_SHOW) GUICtrlSetState($caseNameLabel, $GUI_SHOW) GUICtrlSetOnEvent($browseButton, "BrowseForDataSourceFile") GUICtrlSetState($generateManifestButton, $GUI_DISABLE) EndFunc ;Change the controls displayed in the GUI to the ones needed for the Folder of Logical Files algorithm Func ChangeToFolderOfLogicalFilesGUI() ClearFields() GUICtrlSetData($caseDirectoryLabel, "Data Source") GUICtrlSetData($caseDirectoryLabel, "Data Source") GUICtrlSetState($caseNameField, $GUI_SHOW) GUICtrlSetState($caseNameLabel, $GUI_SHOW) GUICtrlSetOnEvent($browseButton, "Browse") GUICtrlSetState($generateManifestButton, $GUI_DISABLE) EndFunc ;Change the controls displayed in the GUI to the ones needed for One Data Source Per Folder Func ChangeToDefaultGUI() ClearFields() GUICtrlSetData($caseDirectoryLabel, "Case Directory") GUICtrlSetState($rootFolderField, $GUI_SHOW) GUICtrlSetState($caseDirectoryLabel, $GUI_SHOW) GUICtrlSetState($caseNameField, $GUI_HIDE) GUICtrlSetState($caseNameLabel, $GUI_HIDE) GUICtrlSetOnEvent($browseButton, "Browse") ;rename to RootDirectory to root directory ;hide case name field GUICtrlSetState($generateManifestButton, $GUI_DISABLE) EndFunc ;ensure that all fields for the selected algorithm are valid Func ValidateFields($oldCaseName, $oldRootFolder) Local $dataSourcePath = GUICtrlRead($rootFolderField) Local $caseName = GUICtrlRead($caseNameField) if ($dataSourcePath <> $oldRootFolder Or $caseName <> $oldCaseName) Then Local $selectedAlgName = GUICtrlRead($algorithmComboBox) If $selectedAlgName == $allAlgorithmNames[2] Then ;"One Data Source Per Folder" ValidateDefaultFields($dataSourcePath) ElseIf $selectedAlgName == $allAlgorithmNames[0] Then ;"Single Data Source" ValidateSingleDataSourceFields($dataSourcePath, $caseName) ElseIf $selectedAlgName == $allAlgorithmNames[1] Then ;"Folder of Logical Files" ValidateSingleDataSourceFields($dataSourcePath, $caseName) EndIf EndIf EndFunc ;ensure that the settings for the default algorithm are valid before enabling it Func ValidateDefaultFields($rootFolderPath) if ($rootFolderPath <> "" And FileExists($rootFolderPath)) Then GUICtrlSetState($generateManifestButton, $GUI_ENABLE) Else GUICtrlSetState($generateManifestButton, $GUI_DISABLE) EndIf EndFunc ;ensure that the settings for the Single Data Source and Folder of Logical Files algorithms are valid Func ValidateSingleDataSourceFields($dataSourcePath, $caseName) if ($dataSourcePath <> "" And FileExists($dataSourcePath) And $caseName <> "") Then GUICtrlSetState($generateManifestButton, $GUI_ENABLE) Else GUICtrlSetState($generateManifestButton, $GUI_DISABLE) EndIf EndFunc ;clear all input fields, and reset them to an empty string Func ClearFields() GUICtrlSetData($rootFolderField, "") GUICtrlSetData($caseNameField, "") EndFunc ;Open a directory chooser Func Browse() ; Note: At this point @GUI_CtrlId would equal $browseButton GUICtrlSetState($browseButton, $GUI_DISABLE) Local $selectedDirectory = FileSelectFolder("Select Folder", $defaultDirectory) Local $caseDir = "" Local $caseDrive = "" If (FileExists($selectedDirectory)) Then _PathSplit($selectedDirectory, $caseDrive, $caseDir, "", "") $defaultDirectory = $caseDrive & $caseDir GUICtrlSetData($rootFolderField, $selectedDirectory) EndIf If GUICtrlRead($algorithmComboBox) == $allAlgorithmNames[2] Then ;"One Data Source Per Folder" If ($selectedDirectory == $defaultDirectory) Then ;Don't allow root drives as selected directory for this algorithm MsgBox(0, "Invalid Case Directory", "The directory is used to determine the case name and can not be the root directory of a disk.") GUICtrlSetData($rootFolderField, "") EndIf EndIf GUICtrlSetState($caseNameField, $GUI_FOCUS) GUICtrlSetState($browseButton, $GUI_ENABLE) EndFunc ;==>BrowseButton ; Open a file chooser Func BrowseForDataSourceFile() ; Note: At this point @GUI_CtrlId would equal $browseButton GUICtrlSetState($browseButton, $GUI_DISABLE) Local $selectedDataSource = FileOpenDialog("Select Data Source", $defaultDirectory, "All Supported Types (*.img; *.dd; *.001; *.aa; *.raw; *.bin; *.E01; *.vmdk; *.vhd) |Raw Images (*.img; *.dd; *.001; *.aa; *.raw; *.bin) |Encase Images (*.E01) |Virtual Machines (*.vmdk; *.vhd) |Logical Evidence File (*.L01) |All Files (*.*)", $FD_FILEMUSTEXIST) Local $caseDir = "" Local $caseDrive = "" If (FileExists($selectedDataSource)) Then _PathSplit ($selectedDataSource, $caseDrive, $caseDir, "", "") $defaultDirectory = $caseDrive & $caseDir GUICtrlSetData($rootFolderField, $selectedDataSource) EndIf GUICtrlSetState($caseNameField, $GUI_FOCUS) GUICtrlSetState($browseButton, $GUI_ENABLE) EndFunc ;Perform the action associated with the generate manifest button which should be defined in ManifestGenerationAlgorithms.au3 Func AlgorithmGenerateManifestAction() ; Note: At this point @GUI_CtrlId would equal $generateManifestButton GUICtrlSetState($generateManifestButton, $GUI_DISABLE) RunAlgorithm(GUICtrlRead($algorithmComboBox), GetSettings(), $progressField) GUICtrlSetState($generateManifestButton, $GUI_ENABLE) EndFunc ;==>GenerateManifestButton ;Get an array of settings as they are set on this panel Func GetSettings() Local $settings[2] $settings[0] = GUICtrlRead($rootFolderField) $settings[1] = GUICtrlRead($caseNameField) Return $settings EndFunc ;Close the tool Func CLOSEButton() ; Note: at this point @GUI_CtrlId would equal $GUI_EVENT_CLOSE, ; @GUI_WinHandle will be either $hMainGUI or $hDummyGUI GUICtrlSetState($exitButton, $GUI_DISABLE) If @GUI_WinHandle = $hMainGUI Then WritePropertiesFile() Exit EndIf GUICtrlSetState($exitButton, $GUI_ENABLE) EndFunc ;==>CLOSEButton
AutoIt
5
ljmf00/autopsy
Tools/ManifestTool/ManifestTool.au3
[ "Apache-2.0" ]
/****************************************************************************** * Copyright 2019 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *****************************************************************************/ #include "modules/canbus/vehicle/zhongyun/protocol/gear_control_a1.h" #include "modules/drivers/canbus/common/byte.h" namespace apollo { namespace canbus { namespace zhongyun { using ::apollo::drivers::canbus::Byte; const int32_t Gearcontrola1::ID = 0xA1; // public Gearcontrola1::Gearcontrola1() { Reset(); } uint32_t Gearcontrola1::GetPeriod() const { // TODO(ChaoM) : modify every protocol's period manually static const uint32_t PERIOD = 20 * 1000; return PERIOD; } void Gearcontrola1::UpdateData(uint8_t* data) { set_p_gear_state_target(data, gear_state_target_); set_p_gear_enable_control(data, gear_enable_control_); } void Gearcontrola1::Reset() { // TODO(ChaoM) : you should check this manually gear_state_target_ = Gear_control_a1::GEAR_STATE_TARGET_P; gear_enable_control_ = Gear_control_a1::GEAR_ENABLE_CONTROL_GEAR_MANUALCONTROL; } Gearcontrola1* Gearcontrola1::set_gear_state_target( Gear_control_a1::Gear_state_targetType gear_state_target) { gear_state_target_ = gear_state_target; return this; } // config detail: {'name': 'Gear_state_target', 'enum': {1: // 'GEAR_STATE_TARGET_P', 2: 'GEAR_STATE_TARGET_N', 3: 'GEAR_STATE_TARGET_D', 4: // 'GEAR_STATE_TARGET_R', 5: 'GEAR_STATE_TARGET_INVALID'}, 'precision': 1.0, // 'len': 8, 'is_signed_var': False, 'offset': 0.0, 'physical_range': '[1|5]', // 'bit': 8, 'type': 'enum', 'order': 'intel', 'physical_unit': ''} void Gearcontrola1::set_p_gear_state_target( uint8_t* data, Gear_control_a1::Gear_state_targetType gear_state_target) { int x = gear_state_target; Byte to_set(data + 1); to_set.set_value(static_cast<uint8_t>(x), 0, 8); } Gearcontrola1* Gearcontrola1::set_gear_enable_control( Gear_control_a1::Gear_enable_controlType gear_enable_control) { gear_enable_control_ = gear_enable_control; return this; } // config detail: {'name': 'Gear_Enable_control', 'enum': {0: // 'GEAR_ENABLE_CONTROL_GEAR_MANUALCONTROL', 1: // 'GEAR_ENABLE_CONTROL_GEAR_AUTOCONTROL'}, 'precision': 1.0, 'len': 8, // 'is_signed_var': False, 'offset': 0.0, 'physical_range': '[0|1]', 'bit': 0, // 'type': 'enum', 'order': 'intel', 'physical_unit': ''} void Gearcontrola1::set_p_gear_enable_control( uint8_t* data, Gear_control_a1::Gear_enable_controlType gear_enable_control) { int x = gear_enable_control; Byte to_set(data + 0); to_set.set_value(static_cast<uint8_t>(x), 0, 8); } } // namespace zhongyun } // namespace canbus } // namespace apollo
C++
5
jzjonah/apollo
modules/canbus/vehicle/zhongyun/protocol/gear_control_a1.cc
[ "Apache-2.0" ]
/** @type {import("../../../../../").LoaderDefinition} */ module.exports = function () { const callback = this.async(); this.resolve(this.context, "./file", (err, file) => { if (err) return callback(err); if (!file) return callback(new Error("Resolving failed")); this.fs.readFile(file, (err, result) => { if (err) return callback(err); callback( null, `export default ${JSON.stringify(result.toString("utf-8").trim())};` ); }); }); };
JavaScript
4
fourstash/webpack
test/watchCases/resolve/in-loader/0/loader.js
[ "MIT" ]
# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit cargo CARGO_FETCH_CRATES=yes DESCRIPTION="md cat" HOMEPAGE="https://github.com/lunaryorn/mdcat" SRC_URI="https://github.com/lunaryorn/mdcat/archive/mdcat-${PV}.tar.gz" RESTRICT="mirror" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-${P}"
Gentoo Ebuild
2
gentoo/gentoo-rust
app-misc/mdcat/mdcat-0.4.0.ebuild
[ "BSD-3-Clause" ]
/* * Alloy model of the Halmos handshake problem * * Hilary and Jocelyn are married. They invite four couples who are friends for dinner. When * they arrive, they shake hands with each other. Nobody shakes hands with him or herself * or with his or her spouse. After there has been some handshaking, Jocelyn jumps up on * a chair and says "Stop shaking hands!", and then asks how many hands each person has * shaken. All the answers are different. How many hands has Hilary shaken? * * The Alloy model represents the problem as a set of constraints. Properties of the spouse * relationship and of handshaking in general are given as facts. The particular situation * is cast as a function. * * There are 9 people answering, and all answers are different. Nobody can shake more than * 8 hands. So answers must be 0..8. The one (p8 say) who answered 8 has shaken everybody's * hand except for his or her own, and his or her spouse's. Now consider the person who shook * 0 hands (p0 say). The persons p0 and p8 are distinct. If they are not married, then p8 cannot * have shaken 8 hands, because he or she did not shake the hand of p0 or of his or her spouse. * So p8's spouse to p0. Now imagine Jocelyn asking the question again, with p0 and p8 out of * the room, and excluding hand shakes with them. Since p8 shook hands with everyone else * except p0 and p8, everyone gives an answer one smaller than they did before, giving 0..6. * The argument now applies recursively. So Hilary is left alone, having shaken 4 hands. * * author: Daniel Jackson, 11/15/01 */ sig Person {spouse: Person, shaken: set Person} one sig Jocelyn, Hilary extends Person {} fact ShakingProtocol { // nobody shakes own or spouse's hand all p: Person | no (p + p.spouse) & p.shaken // if p shakes q, q shakes p all p, q: Person | p in q.shaken => q in p.shaken } fact Spouses { all p, q: Person | p!=q => { // if q is p's spouse, p is q's spouse p.spouse = q => q.spouse = p // no spouse sharing p.spouse != q.spouse } all p: Person { // a person is his or her spouse's spouse p.spouse.spouse = p // nobody is his or her own spouse p != p.spouse } } pred Puzzle { // everyone but Jocelyn has shaken a different number of hands all p,q: Person - Jocelyn | p!=q => #p.shaken != #q.shaken // Hilary's spouse is Jocelyn Hilary.spouse = Jocelyn } P10: run Puzzle for exactly 10 Person, 5 int expect 1 P12: run Puzzle for exactly 12 Person, 5 int expect 1 P14: run Puzzle for exactly 14 Person, 5 int expect 1 P16: run Puzzle for exactly 16 Person, 6 int expect 1
Alloy
5
c-luu/alloy-specs
puzzles/halmos-handshake/handshake.als
[ "Apache-2.0" ]
\documentclass{article} \usepackage{hyperref} \usepackage[links]{agda} \begin{document} \AgdaTarget{ℕ} \AgdaTarget{zero} \begin{code} data ℕ : Set where zero : ℕ suc : ℕ → ℕ \end{code} See next page for how to define \AgdaFunction{two} (doesn't turn into a link because the target hasn't been defined yet). We could do it manually though; \hyperlink{two}{\AgdaDatatype{two}}. \newpage \AgdaTarget{two} \hypertarget{two}{} \begin{code} two : ℕ two = suc (suc zero) \end{code} \AgdaInductiveConstructor{zero} is of type \AgdaDatatype{ℕ}. \AgdaInductiveConstructor{suc} has not been defined to be a target so it doesn't turn into a link. \newpage Now that the target for \AgdaFunction{two} has been defined the link works automatically. \begin{code} data Bool : Set where true false : Bool \end{code} The AgdaTarget command takes a list as input, enabling several targets to be specified as follows: \AgdaTarget{if, then, else, if\_then\_else\_} \begin{code} if_then_else_ : {A : Set} → Bool → A → A → A if true then t else f = t if false then t else f = f \end{code} \newpage Mixfix identifier need their underscores escaped: \AgdaFunction{if\_then\_else\_}. \end{document}
Literate Agda
5
cruhland/agda
test/LaTeXAndHTML/succeed/Links.lagda
[ "MIT" ]
--- foo: bar --- a { color:blue } --- .b { color:red }
CSS
1
fuelingtheweb/prettier
tests/css_yaml/malformed-2.css
[ "MIT" ]
package com.baeldung.gson.primitives.models; public class CharExample { public char value; public String toString() { return "{char: " + value + "}"; } }
Java
3
DBatOWL/tutorials
gson/src/main/java/com/baeldung/gson/primitives/models/CharExample.java
[ "MIT" ]
# # Copyright 2013 (c) Pointwise, Inc. # All rights reserved. # # This sample Pointwise script is not supported by Pointwise, Inc. # It is provided freely for demonstration purposes only. # SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE. # ############################################################################### ## ## ButterflyMaker.glf ## ## Script with Tk interface that inserts a butterfly topology into selected ## structured blocks. ## ############################################################################### package require PWI_Glyph 2.3 ## GLOBAL VARIABLES ## # GUI title and header strings set guiTitle "Create Butterfly Topology" set guiHeader "Transform H Topology Block(s) into Butterfly Topology" set guiGroupPrefix "GROUP: " # Global creator set flag set creation_mode 0 set isCreatorSet false set oFraction .25 set oDimension 10 set Last_Job_Type "None" set Cancel_Job false set Error_Last_Job false set Job_Running false set oScaleFac [list 0.5 0.5 0.5] set locatorH_prop {} set End_Script false # Inital direction set Direction "I" set dupDirection "I" set prevDirection "I" # Global entity lists set Structured_Blocks {} set Prev_Structured_Blocks {} set Transformed_Blocks {} set ListBoxBlocks {} set ListBoxGroups {} set MasterAlignBlocks {} set ListBoxSelectableItems {} set Original_EntRenderAtt {} set Prev_Highlight_Selection {} # Special entity collections set tempEntCollection [pw::Collection create] set prevOgridCollection [pw::Collection create] # Gui and Color Constants set defDomainColor #008F00 set defColor #00AAFF set defWidth 1 set defColorMode Automatic set defSelectColorMode Entity set defSelectColor #FF7878 set defSelectWidth 2 set defListBoxStringWidth 20 ############################################################################### # blkGetIJK: return blocks ijk value based on direction ############################################################################### proc blkGetIJK { dir ind1 ind2 ind3 } { if {$dir == "I"} { set i $ind3 set j $ind1 set k $ind2 } elseif {$dir == "J"} { set j $ind3 set i $ind1 set k $ind2 } else { set k $ind3 set i $ind1 set j $ind2 } return "$i $j $k" } ############################################################################### # copyConDistribution: copy edge's distribution and run it to a connector # - Distribution might need to be reversed; logic handles this by creating an # edge from the connectors in edge (this is done to ensure they are in order). # Then, the first and last point of con and the new edge are compared. If the # first and last are on opposite ends, the distribution is reversed before it # is applied. ############################################################################### proc copyConDistribution { con edge } { # Form edge from connectors set tmpEdges [pw::Edge createFromConnectors -single $edge] # For all the edges, gather up the connectors foreach tEdge $tmpEdges { set conCount [$tEdge getConnectorCount] for {set i 1} {$i <= $conCount} {incr i} { lappend conList [$tmpEdges getConnector $i] } } # Use these connectors to create the distribution set dist [pw::DistributionGeneral create $conList] set c2ptA [$tmpEdges getPoint 1] set c2ptB [$tmpEdges getPoint [$tmpEdges getDimension]] set c1ptA [$con getXYZ -arc 0.0] set c1ptB [$con getXYZ -arc 1.0] set cp1 [$con closestPoint $c2ptA] set cp2 [$con closestPoint $c2ptB] set tolerance 0.0005 # Compare first and last point of con and new edge to see if distribution # should be reversed if { [pwu::Vector3 equal -tolerance $tolerance $cp1 $c1ptB] && [pwu::Vector3 equal -tolerance $tolerance $cp2 $c1ptA]} { $dist reverse } # Set distribution for a con's subconnectors set numSubConnectors [$con getSubConnectorCount] for {set i 1} {$i <= $numSubConnectors} {incr i} { $con setDistribution -lockEnds $i $dist } } ############################################################################### # getDist: use Glyph utility commands pwu::Vector3 subtract and length ############################################################################### proc getDist {pt1 pt2} { set 2sub1 [pwu::Vector3 subtract $pt2 $pt1] set dist [pwu::Vector3 length $2sub1] return $dist } ############################################################################### # getConByNode: given a pt and a connector list, return the connector and pt ############################################################################### proc getConByNode { pt conList } { set tol [pw::Grid getGridPointTolerance] foreach con $conList { set pta [$con getXYZ -arc 0] set ptb [$con getXYZ -arc 1] set dist_a [getDist $pt $pta] set dist_b [getDist $pt $ptb] if {$dist_a < $tol} { return "$con $ptb" } elseif {$dist_b < $tol} { return "$con $pta" } } } ############################################################################### # GetBlkEdgeCons: # - Compares two faces on a given block and returns a list of shared connectors ############################################################################### proc GetBlkEdgeCons {blk face1 face2} { set face_2_BoundCons {} set tmpFace2 [$blk getFace $face2] set tmpFace1 [$blk getFace $face1] set dom_2_count [$tmpFace2 getDomainCount] # get All domains of face2 # get All edges of all domains # get All connectors of all edges # append all connectors to face_2_BoundCons for {set i 1} {$i <= $dom_2_count} {incr i} { set dom [$tmpFace2 getDomain $i] set dom_edge_count [$dom getEdgeCount] for {set j 1} {$j <= $dom_edge_count} {incr j} { set edge [$dom getEdge $j] set edge_con_count [$edge getConnectorCount] for {set k 1} {$k <= $edge_con_count} {incr k} { set con [$edge getConnector $k] if {[lsearch $face_2_BoundCons $con] == -1} { lappend face_2_BoundCons $con } } } } set sharingCons {} set dom_1_count [$tmpFace1 getDomainCount] # get All domains of face1 # get All edges of all domains # get All connectors of all edges # append all connectors to sharingCons for {set i 1} {$i <= $dom_1_count} {incr i} { set dom [$tmpFace1 getDomain $i] set dom_edge_count [$dom getEdgeCount] for {set j 1} {$j <= $dom_edge_count} {incr j} { set edge [$dom getEdge $j] set edge_con_count [$edge getConnectorCount] for {set k 1} {$k <= $edge_con_count} {incr k} { set con [$edge getConnector $k] if {[lsearch $face_2_BoundCons $con] >= 0} { lappend sharingCons $con } } } } if {[llength $sharingCons] == 0} { set msg "Cannot find sharing edge of $blk between $face1 and $face2." return -code error $msg } return $sharingCons } ############################################################################### # createBlockFromDomainsAndFace: # - Helper function for blkMakeBflyBlocks # - Creates a block from a list of domains and a list of faces # - Ensures that domain list is flattened before block is created ############################################################################### proc createBlockFromDomainsAndFace { domList faceList } { set resultList {} foreach dom $domList { lappend resultList $dom } if {[llength $faceList] > 0} { set faceDomList [getFaceDomains $faceList] lappend resultList $faceDomList } # Create new structured block set blk [pw::BlockStructured create] # Create face with domain, then add face to block foreach dom $resultList { $blk addFace [pw::FaceStructured createFromDomains $dom] } return $blk } ############################################################################### # blkMakeBflyBlocks: # - Given a Block and direction, transforms H Topology to Butterfly topology ############################################################################### proc blkMakeBflyBlocks { blk dir } { global tempEntCollection set blkInfo [$blk getDimensions] set id [lindex $blkInfo 0] set jd [lindex $blkInfo 1] set kd [lindex $blkInfo 2] # Determine the butterfly face IDs, ind3_min_face and ind3_max_face. # The dimension in the propagating direction is ind3_max. if {$dir == "I"} { set max1 $jd set max2 $kd set ind3_max $id set ind1_min_face JMinimum set ind1_max_face JMaximum set ind2_min_face KMinimum set ind2_max_face KMaximum set ind3_min_face IMinimum set ind3_max_face IMaximum } elseif {$dir == "J"} { set max1 $id set max2 $kd set ind3_max $jd set ind1_min_face IMinimum set ind1_max_face IMaximum set ind2_min_face KMinimum set ind2_max_face KMaximum set ind3_min_face JMinimum set ind3_max_face JMaximum } else { set max1 $id set max2 $jd set ind3_max $kd set ind1_min_face IMinimum set ind1_max_face IMaximum set ind2_min_face JMinimum set ind2_max_face JMaximum set ind3_min_face KMinimum set ind3_max_face KMaximum } if {$dir == "ALL"} { set capMin 1 set capMax 1 } else { set capMin 0 set capMax 0 } if {[blkMakeBflyDomains $blk $dir doms] == 0} { return 0; } # Get faces according to ind1, ind2, ind3 - min & max set face1 [$blk getFace $ind2_min_face] set face2 [$blk getFace $ind1_max_face] set face3 [$blk getFace $ind2_max_face] set face4 [$blk getFace $ind1_min_face] set face5 [$blk getFace $ind3_min_face] set face6 [$blk getFace $ind3_max_face] $tempEntCollection add [$face5 getDomains] $tempEntCollection add [$face6 getDomains] set base [$blk getName] #-- create domain list for blk(center) set tmpDomainList [list $doms(center,ind3_min) $doms(center,ind3_max) \ $doms(center,ind1_min) $doms(center,ind1_max) $doms(center,ind2_min) \ $doms(center,ind2_max)] #-- Center block set blks(center) [createBlockFromDomainsAndFace $tmpDomainList {} ] #-- create domain list for blk(ogrid1) set tmpDomainList [list $doms(ogrid1,ind3_min) $doms(ogrid1,ind3_max) \ $doms(center,ind2_min) $doms(corner1) $doms(corner2)] #-- Ogrid 1 (ind2_min) block set blks(ogrid1) [createBlockFromDomainsAndFace $tmpDomainList $face1] #-- create domain list for blk(ogrid2) set tmpDomainList [list $doms(ogrid2,ind3_min) $doms(ogrid2,ind3_max) \ $doms(center,ind1_max) $doms(corner2) $doms(corner3)] #-- Ogrid 2 (ind1_max) block set blks(ogrid2) [createBlockFromDomainsAndFace $tmpDomainList $face2] #-- create domain list for blk(ogrid3) set tmpDomainList [list $doms(ogrid3,ind3_min) $doms(ogrid3,ind3_max) \ $doms(center,ind2_max) $doms(corner3) $doms(corner4)] #-- Ogrid 3 (ind2_max) block set blks(ogrid3) [createBlockFromDomainsAndFace $tmpDomainList $face3] #-- create domain list for blk(Ogrid4) set tmpDomainList [list $doms(ogrid4,ind3_min) $doms(ogrid4,ind3_max) \ $doms(center,ind1_min) $doms(corner4) $doms(corner1)] #-- Ogrid 4 (ind1_min) block set blks(ogrid4) [createBlockFromDomainsAndFace $tmpDomainList $face4] set base [string trim $base] $blks(center) setName "${base}_center" $blks(ogrid1) setName "${base}_ogrid1" $blks(ogrid2) setName "${base}_ogrid2" $blks(ogrid3) setName "${base}_ogrid3" $blks(ogrid4) setName "${base}_ogrid4" if {$capMin} { #-- Create domains for blks(capmin) set tmpDomainList [list $doms(center,ind3_min) $doms(ogrid1,ind3_min) \ $doms(ogrid2,ind3_min) $doms(ogrid3,ind3_min) $doms(ogrid4,ind3_min)] #-- Cap min (ind3_min) block set blks(capmin) [createBlockFromDomainsAndFace $tmpDomainList $face5] #-- Set name of capmin (ind3_min) block $blks(capmin) setName "${base}_capmin" } if {$capMax} { #-- Cap max (ind3_max) block set tmpDomainList [list $doms(center,ind3_max) $doms(ogrid1,ind3_max) \ $doms(ogrid2,ind3_max) $doms(ogrid3,ind3_max) $doms(ogrid4,ind3_max)] #-- Cap max (ind3_min) blockS set blks(capmax) [createBlockFromDomainsAndFace $tmpDomainList $face6] #-- Set name of capmax (ind3_min) block $blks(capmax) setName "${base}_capmax" } return 1 } ############################################################################### # oneEdgeCreated: # - Helper function for makeDomains # - Creates edges from connector list # - Those edges stored in named reference edgeVar # - Returns false if more than one edge created ############################################################################### proc oneEdgeCreated { edgeVar conList } { upvar $edgeVar tmpEdge set tmpEdge [pw::Edge createFromConnectors -single $conList] set result true # If more than one edge created, return false if {[llength $tmpEdge] > 1} { set result false } return $result } ############################################################################### # makeConnector: blkMakeBlfyDomains helper function ############################################################################### proc makeConnector { con dim } { set pt0 [$con getXYZ -arc 0] set pt1 [$con getXYZ -arc 1] $con setDimension $dim if [catch {$con -arc 0}] { set $con [getConnectorByEndPoints $pt0 $pt1] } } ############################################################################### # makeDomains: # - Helper function for blkMakeBlfyDomains # - Creates domains # - conList -> list of primary connectors to create domain ############################################################################### proc makeDomains { domVar conList } { set tmpEdgeList {} upvar $domVar tmpDom foreach con $conList { if {[oneEdgeCreated edge $con]} { lappend tmpEdgeList $edge } else { set msg "Connectors could not be merged into single edge." return -code error $msg } } # Check that edges are valid before creating domain set tmpDom [pw::DomainStructured create] foreach edge $tmpEdgeList { if {[catch {$tmpDom addEdge $edge} msg]} { if {[string compare $msg "ERROR: (EXCEPTION) Edge is undefined"]} { return -code error \ "Error: Edge undefined. \nA connector's dimension may be to small." } } } if {![$tmpDom isValid]} { pw::Entity delete $tmpDom # If tmpEdgeList does not "qualify" for a structured domain, then try to # find an existing domain using corner nodes of connectors in conList set tmpDom [getDomainByCorners \ [[lindex $conList 0] getXYZ -arc 0] \ [[lindex $conList 0] getXYZ -arc 1] \ [[lindex $conList 2] getXYZ -arc 0] \ [[lindex $conList 2] getXYZ -arc 1]] } return 1; } ############################################################################### # projectDomainList: # - Helper function for blkMakeBflyDomains # - Projects a domain onto a given database # - If cannot find appropriate db for projection, uses argument database for # projection ############################################################################### proc projectDomainList { domain database} { set domainProjectable true set projectionDBList { } set ptCount [$domain getPointCount -constrained constrainedPtCount] # If all points are db constrained, try to project onto that database if {$ptCount == $constrainedPtCount} { for {set i 1} {$i <= $ptCount} {incr i} { set dbEntity [lindex [$domain getPoint $i] 2] if {[lsearch $projectionDBList $dbEntity] == -1} { if {[$dbEntity isBaseForProject]} { # If dbEntity is unique and projectable append it to dbEntityList lappend projectionDBList $dbEntity } else { # Since one of the databases is not projectable, set domainProjectable false break } } } # Otherwise, matching domain is not projectable } else { set domainProjectable false } if {!$domainProjectable} { set projectionDBList $database } $domain project -type ClosestPoint $projectionDBList } ############################################################################### # blkMakeBflyDomains: # - Accepts a Block, Direction, and named reference to a domain array # - Create butterfly block domains ############################################################################### proc blkMakeBflyDomains { blk dir domVar } { global oFraction oDimension butterflyDBArr defDomainColor \ prevOgridCollection butterflyDomList set butterflyDomList {} set splitEdges 1 upvar $domVar doms if {$dir == "ALL"} { set capMin 1 set capMax 1 } else { set capMin 0 set capMax 0 } #if not a structured block, return if {![$blk isOfType pw::BlockStructured]} { return 0 } set blkInfo [$blk getDimensions] set id [lindex $blkInfo 0] set jd [lindex $blkInfo 1] set kd [lindex $blkInfo 2] # ind3_min -- the minimum I/J/K index to start with. It is always 1. # ind3_min_face and ind3_max_face are the butterfly faces. set ind3_min 1 if {$dir == "I"} { set max1 $jd set max2 $kd set ind3_max $id set ind1_min_face JMinimum set ind1_max_face JMaximum set ind2_min_face KMinimum set ind2_max_face KMaximum set ind3_min_face IMinimum set ind3_max_face IMaximum } elseif {$dir == "J"} { set max1 $id set max2 $kd set ind3_max $jd set ind1_min_face IMinimum set ind1_max_face IMaximum set ind2_min_face KMinimum set ind2_max_face KMaximum set ind3_min_face JMinimum set ind3_max_face JMaximum } else { # Note this is applied to two cases: K and ALL modes. set max1 $id set max2 $jd set ind3_max $kd set ind1_min_face IMinimum set ind1_max_face IMaximum set ind2_min_face JMinimum set ind2_max_face JMaximum set ind3_min_face KMinimum set ind3_max_face KMaximum } # Determine the other 2 indices (J and K) of H domain given one (I) of # butterfly faces. # # Jmax o---------------o o---------------o # | | | | # | | | | # | | | | # |ind1_max | |ind2_min | # | o-------o | | o-------o | # | | | | | | | | #J index of H | | | | | | | | K index of H # | | | | | | | | # | o-------o | | o-------o | # |ind1_min | | ind2_max| # | | | | # | | | | # Jmin=1 o---------------o Kmin=1 o---------------o Kmax # # Imin butterfly face Imax butterfly face # # if {$max1 < $max2} { set ogrid_i [expr int($max1*$oFraction)] set id2 [expr $max1/2] if {$ogrid_i > $id2} { set ogrid_i $id2 } if {$ogrid_i < 2 } { set ogrid_i 2 } } else { set ogrid_i [expr int($max2*$oFraction)] set jd2 [expr $max2/2] if {$ogrid_i > $jd2} { set ogrid_i $jd2 } if {$ogrid_i < 2 } { set ogrid_i 2 } } set ogrid_j $ogrid_i set ind1_min $ogrid_i set ind1_max [expr $max1-$ogrid_i+1] set ind2_min $ogrid_j set ind2_max [expr $max2-$ogrid_j+1] #-- Create connectors blkMakeBflyConnectors $blk $dir con # Michael: Reduced with makeConnector # Create 4 connectors based on the four nodes of H domain. foreach end {ind3_min ind3_max} { foreach beg {ind1_min ind1_max} { makeConnector $con($beg,$end) $max2 } foreach beg {ind2_min ind2_max} { makeConnector $con($beg,$end) $max1 } foreach beg {corner1 corner2 corner3 corner4} { makeConnector $con($beg,$end) $oDimension } } foreach end {ind1_min ind1_max} { foreach beg {ind2_min ind2_max} { makeConnector $con($beg,$end) $ind3_max } } # Create the 2 H domains on butterfly faces, say, Imin and Imax if I selected. # con(ind2_min,ind3_min) -- Kmin H connector on Imin face. # con(ind1_max,ind3_min) -- Jmax H connector on Imin face. # con(ind2_max,ind3_min) -- Kmax H connector on Imin face. # con(ind1_min,ind3_min) -- Jmin H connector on Imin face. # Please note they have to be added in order such that a closed perimeter # loop is created. # # Jmax Con # o---------------o # | | # | | # | | # Kmin Con| | Kmax Con # | | # | | # o---------------o # Jmin Con # #-- Center domains # # # # # ind2_min # | | | | ind3_min # o----+-+-+-+-------------o / / / # / | | | | . | / / # / v v v v . . | / # / . . . | # / . . . . | # o-----------------------o . . . | # | \ ogrid1 . | . . | # | \ . . | . | # ---| o-----------o . . | <-+-------- # ind1_max -----| | . | . . | <---+------ ind1_min # --------| | . . | . | <-----+---- # | | . . . | | | # ogrid2| * * * * |ogrid4 | # | | / / / / | | o # | / / / / | | / # | ind3_max -----o | / # | / \ | / # | / ogrid3 \ | / # o-----------------------o # | | | | # | | | | # ind2_max # # # Create doms(center,ind3_min) set conList [list \ $con(ind2_min,ind3_min) $con(ind1_max,ind3_min) \ $con(ind2_max,ind3_min) $con(ind1_min,ind3_min)] makeDomains doms(center,ind3_min) $conList # Create doms(center,ind3_max) set conList [list \ $con(ind2_min,ind3_max) $con(ind1_max,ind3_max) \ $con(ind2_max,ind3_max) $con(ind1_min,ind3_max)] makeDomains doms(center,ind3_max) $conList # Create Jmin domain(s) of the center block if I mode is selected. #-- ind1_min face set conList [list \ $con(ind2_min,ind1_min) $con(ind1_min,ind3_max) \ $con(ind2_max,ind1_min) $con(ind1_min,ind3_min)] makeDomains doms(center,ind1_min) $conList # Create Jmax domain(s) of the center blockif I mode is selected. #-- ind1_max face set conList [list \ $con(ind2_min,ind1_max) $con(ind1_max,ind3_max) \ $con(ind2_max,ind1_max) $con(ind1_max,ind3_min)] makeDomains doms(center,ind1_max) $conList # Create Kmin domain(s) of the center block if I mode is selected. #-- ind2_min face set conList [list \ $con(ind2_min,ind1_min) $con(ind2_min,ind3_max) \ $con(ind2_min,ind1_max) $con(ind2_min,ind3_min)] makeDomains doms(center,ind2_min) $conList # Create Kmin domain(s) of the center block if I mode is selected. #-- ind2_max face set conList [list \ $con(ind2_max,ind1_min) $con(ind2_max,ind3_max) \ $con(ind2_max,ind1_max) $con(ind2_max,ind3_min)] makeDomains doms(center,ind2_max) $conList # Create 4 Ogrid domains on the 1st butterfly face, say Imin if I mode is # selected. #-- Ogrid domain 1 ind3_min face set edge1 [GetBlkEdgeCons $blk $ind2_min_face $ind3_min_face] set conList [list \ $con(corner2,ind3_min) $con(ind2_min,ind3_min) \ $con(corner1,ind3_min) $edge1] makeDomains doms(ogrid1,ind3_min) $conList #-- Ogrid domain 2 ind3_min face set edge1 [GetBlkEdgeCons $blk $ind1_max_face $ind3_min_face] set conList [list \ $con(corner3,ind3_min) $con(ind1_max,ind3_min) \ $con(corner2,ind3_min) $edge1] makeDomains doms(ogrid2,ind3_min) $conList #-- Ogrid domain 3 ind3_min face set edge1 [GetBlkEdgeCons $blk $ind2_max_face $ind3_min_face] set conList [list \ $con(corner4,ind3_min) $con(ind2_max,ind3_min) \ $con(corner3,ind3_min) $edge1] makeDomains doms(ogrid3,ind3_min) $conList #-- Ogrid domain 4 ind3_min face set edge1 [GetBlkEdgeCons $blk $ind1_min_face $ind3_min_face] set conList [list \ $con(corner1,ind3_min) $con(ind1_min,ind3_min) \ $con(corner4,ind3_min) $edge1] makeDomains doms(ogrid4,ind3_min) $conList # Create 4 Ogrid domains on the 2st butterfly face, say Imax if I mode is # selected. #-- Ogrid domain 1 ind3_max face set edge1 [GetBlkEdgeCons $blk $ind2_min_face $ind3_max_face] set conList [list \ $con(corner2,ind3_max) $con(ind2_min,ind3_max) \ $con(corner1,ind3_max) $edge1] makeDomains doms(ogrid1,ind3_max) $conList #-- Ogrid domain 2 ind3_max face set edge1 [GetBlkEdgeCons $blk $ind1_max_face $ind3_max_face] set conList [list \ $con(corner3,ind3_max) $con(ind1_max,ind3_max) \ $con(corner2,ind3_max) $edge1] makeDomains doms(ogrid2,ind3_max) $conList #-- Ogrid domain 3 ind3_max face set edge1 [GetBlkEdgeCons $blk $ind2_max_face $ind3_max_face] set conList [list \ $con(corner4,ind3_max) $con(ind2_max,ind3_max) \ $con(corner3,ind3_max) $edge1] makeDomains doms(ogrid3,ind3_max) $conList #-- Ogrid domain 4 ind3_max face set edge1 [GetBlkEdgeCons $blk $ind1_min_face $ind3_max_face] set conList [list \ $con(corner1,ind3_max) $con(ind1_min,ind3_max) \ $con(corner4,ind3_max) $edge1] makeDomains doms(ogrid4,ind3_max) $conList # Domain #-- Corner 1 domain set edge1 [GetBlkEdgeCons $blk $ind2_min_face $ind1_min_face] # Copy the distribution of the corresponding edge of the block to the # Butterfly connector that is perpendicular to the butterfly faces. copyConDistribution $con(ind2_min,ind1_min) $edge1 set conList [list \ $con(corner1,ind3_max) $con(ind2_min,ind1_min) \ $con(corner1,ind3_min) $edge1] makeDomains doms(corner1) $conList #-- Corner 2 domain set edge1 [GetBlkEdgeCons $blk $ind2_min_face $ind1_max_face] # Copy the distribution of the corresponding edge of the block to the # Butterfly connector that is perpendicular to the butterfly faces. copyConDistribution $con(ind2_min,ind1_max) $edge1 set conList [list \ $con(corner2,ind3_max) $con(ind2_min,ind1_max) \ $con(corner2,ind3_min) $edge1] makeDomains doms(corner2) $conList #-- Corner 3 domain set edge1 [GetBlkEdgeCons $blk $ind2_max_face $ind1_max_face] # Copy the distribution of the corresponding edge of the block to the # Butterfly connector that is perpendicular to the butterfly faces. copyConDistribution $con(ind2_max,ind1_max) $edge1 set conList [list \ $con(corner3,ind3_max) $con(ind2_max,ind1_max) \ $con(corner3,ind3_min) $edge1] makeDomains doms(corner3) $conList #-- Corner 4 domain set edge1 [GetBlkEdgeCons $blk $ind2_max_face $ind1_min_face] # Copy the distribution of the corresponding edge of the block to the # Butterfly connector that is perpendicular to the butterfly faces. copyConDistribution $con(ind2_max,ind1_min) $edge1 set conList [list \ $con(corner4,ind3_max) $con(ind2_max,ind1_min) \ $con(corner4,ind3_min) $edge1] makeDomains doms(corner4) $conList #Project the created butterfly domains onto the original block surfaces. if {$dir == "I" || $dir == "J" || $dir == "K"} { $prevOgridCollection set [list $doms(center,ind3_min) \ $doms(center,ind3_max) $doms(ogrid1,ind3_min) $doms(ogrid1,ind3_max) \ $doms(ogrid2,ind3_min) $doms(ogrid2,ind3_max) $doms(ogrid3,ind3_min) \ $doms(ogrid3,ind3_max) $doms(ogrid4,ind3_min) $doms(ogrid4,ind3_max)] # Project domains onto database entity set butterflyDomList [$prevOgridCollection list] foreach domain $butterflyDomList { projectDomainList $domain $butterflyDBArr($blk) # Color domains so that they do not appear DB constrained. An alternative # would be to (1) delete the tmp db surfaces now (2) run elliptical solver # on these domains; however, we can't do that at this point due to mode # restrictions. So, just hide that they are db constrained. $domain setRenderAttribute ColorMode Entity $domain setColor $defDomainColor } } return 1 } ############################################################################### # getCornerPointsForIndex: # - This is a helper function function for HDomLocator # - Returns corner points for length and spacing (calcualted by # getLengthSpacingArr) ############################################################################### proc getCornerPointsForIndex { length spacing max index } { global oScaleFac set tol [pw::Grid getGridPointTolerance] set cornerPts {} set targetLength_1 [expr $length *(1.0 - [lindex $oScaleFac $index]) / 2.0] set targetLength_2 [expr $length - $targetLength_1 ] set testLength 0.0 for {set ii 1} {$ii < $max} {incr ii 1} { set tmpSpacing [lindex $spacing [expr $ii-1]] set testLength [expr $testLength + $tmpSpacing] if {[expr abs( $targetLength_1 - $testLength )] < $tol || [expr abs( $targetLength_2 - $testLength )] < $tol || [expr abs( $testLength - $targetLength_1)] < $tmpSpacing || [expr abs( $testLength - $targetLength_2)] < $tmpSpacing} { lappend cornerPts [expr $ii+1] } } return $cornerPts } ############################################################################### # getLengthSpacingArr: # - This is a helper function function for HDomLocator # - Returns an array containing length and spacing for given index ############################################################################### proc getLengthSpacingArr { blk index transformDir max } { set spacing {} set length 0.0 set indexArr(I) 1 set indexArr(J) 1 set indexArr(K) 1 for {set ii 1} {$ii < $max} {incr ii} { set indexArr($index) $ii set pt1 [$blk getXYZ [blkGetIJK $transformDir $indexArr(I) $indexArr(J) \ $indexArr(K)]] set indexArr($index) [expr $ii + 1] set pt2 [$blk getXYZ [blkGetIJK $transformDir $indexArr(I) $indexArr(J) \ $indexArr(K)]] set incr [getDist $pt1 $pt2] set length [expr $length + $incr] lappend spacing $incr } set lengthSpacingArr(length) $length set lengthSpacingArr(spacing) $spacing return [array get lengthSpacingArr] } ############################################################################### # HDomLocator: # - Replace the old guessing scheme below which requires domain joining if # multidom butterfly faces occurs. That is not reliable when the topology # gets complicated. ############################################################################### proc HDomLocator { blk dir max1 max2 ind3_min ind3_max } { global oScaleFac Propagate locatorH_prop Preview set tol [pw::Grid getGridPointTolerance] if {$Propagate} { set propagateBlks [getPropagatedBlockList $blk $dir] } else { set propagateBlks $blk } set propBlks {} foreach blkDir $propagateBlks { lappend propBlks [lindex $blkDir 0] } # For propagate mode only. If H location is already obtained for the first # block in the propagating block list, the old location information will be # returned. This method saves tremendous time if the topology change will be # propagated through many blocks. if {$Propagate == 1 && [llength $locatorH_prop] > 1 && $dir != "ALL" && \ [lsearch $locatorH_prop $blk] > 3} { # Skip the H calculation if it is already calculated for one block among # this propagating set. Return the first four elements of the list as the # location. return [lrange $locatorH_prop 0 3] } # # Improve the performance by simlifying the method of obtaining the # ogrid_i/j/k. The old method above has to go through lots of iterations to # decide the cooresponding ijk index for the H region. Moreover, its guessing # scheme is based on the normalized dimention so the H region location highly # depends on the connector distribution. # # Determine the 2 indices (J and K) of H domain given one (I) of butterfly # faces. # # # index3 index4 # Jmax o---?-------?---o o---------------o # | | | | # | | | | # | | | | # | | | | # index2 ? o-------o | | o-------o | # | | | | | | | | # | | | | | | | | # | | | | | | | | # index1 ? o-------o | | o-------o | # | | | | # | | | | # | | | | # Jmin=1 o---------------o Kmin=1 o---------------o Kmax # # # Obtain the grid points, index 1~4, and use their JK indices to locate the # H region. # Case study: max1 VS ind1_min and ind1_max; max2 VS ind2_min and ind2_max. # # Direction: I J K # ogrid_i loop (1,max1_i,1) (max1_i,1,1) (max1_i,1,1) # blkGetIJK indice (max1_i,1,1) (max1_i,1,1) (max1_i,1,1) # ogrid_j loop (1,1,max2_i) (1,1,max2_i) (1,max2_i,1) # blkGetIJK indice (1,max2_i,1) (1,max2_i,1) (1,max2_i,1) # # Calculate ind1_min & ind1_max array set iArr [getLengthSpacingArr $blk "I" $dir $max1] set corner1_Pts [getCornerPointsForIndex $iArr(length) $iArr(spacing) $max1 0] set ogrid_i [lindex $corner1_Pts 0] if {$ogrid_i == 1} { set ogrid_i 2 } set ind1_min $ogrid_i set ind1_max [lindex $corner1_Pts end] if {$ind1_max == $max1} { set ind1_max [expr $max1-1] } # Calculate ind2_min & ind2_max array set jArr [getLengthSpacingArr $blk "J" $dir $max2] set corner2_Pts [getCornerPointsForIndex $jArr(length) $jArr(spacing) $max2 1] set ogrid_j [lindex $corner2_Pts 0] if {$ogrid_j == 1} { set ogrid_j 2 } set ind2_min $ogrid_j set ind2_max [lindex $corner2_Pts end] if {$ind2_max == $max2} { set ind2_max [expr $max2-1] } # Obtain the dimension index for the third direction when ALL is applied. if {$dir == "ALL"} { # Calculate ind3_min & ind3_max array set kArr [getLengthSpacingArr $blk "K" $dir $ind3_max] set corner3_Pts [getCornerPointsForIndex $kArr(length) $kArr(spacing) \ $ind3_max 2] set ogrid_k [lindex $corner3_Pts 0] if {$ogrid_k == 1} { set ogrid_k 2 } set ind3_min $ogrid_k set ind3_max [lindex $corner3_Pts end] } # Please note this list should show the corresponding block. Otherwise, the # H locator will be the same even when multiple propagating cases are # selected. if {$Propagate == 1 && $dir != "ALL"} { set locatorH_prop [list $ind1_min $ind1_max $ind2_min $ind2_max] set locatorH_prop [concat $locatorH_prop $propBlks] } set HLocation [list $ind1_min $ind1_max $ind2_min \ $ind2_max $ind3_min $ind3_max] return $HLocation } ############################################################################### # createConnectorFromIndices: # - Creates connectors from segments # - This is a helper function function for blkMakeBflyConnectors # - indList => values for ind1 ind2 ind3 # - index => iterates through corresponding index # (0 = ind1, 1 = ind2, 2 = ind3) # - loopMinMax => values for loopMin & loopMax ############################################################################### proc createConnectorFromIndices { indList index loopMinMax dir blk } { set loopMin [lindex $loopMinMax 0] set loopMax [lindex $loopMinMax 1] set segment [pw::SegmentSpline create] for {set i $loopMin} {$i <= $loopMax} {incr i} { lset indList [expr $index - 1] $i $segment addPoint [getBlkXYZFromIndices $blk $dir $indList] } set connector [pw::Connector create] # Add segment to Connector # if there is an error, return another connector by endpoints if {[catch {$connector addSegment $segment}]} { $connector delete set ind1 [lindex $indList 0] set ind2 [lindex $indList 1] set ind3 [lindex $indList 2] set connector [getConnectorByEndPoints \ [$blk getXYZ [blkGetIJK $dir $ind1 $ind2 $ind3]] $pt] } return $connector } ############################################################################### # getBlkXYZFromIndicies: # - returns a point on a block given 3 indicies (I,J,K) ############################################################################### proc getBlkXYZFromIndices { blk dir indList } { set ind1 [lindex $indList 0] set ind2 [lindex $indList 1] set ind3 [lindex $indList 2] if {[catch {$blk getXYZ [blkGetIJK $dir $ind1 $ind2 $ind3]} pt]} { set msg "Failed to get point while processing block: [$blk getName]." return -code error $msg } return $pt } ############################################################################### # blkMakeBflyConnectors: # - Accepts a block, direction, and a named reference to a connector array # - Creates butterfly block connectors on the given block ############################################################################### proc blkMakeBflyConnectors { blk dir conVar {temp 0}} { global oFraction oDimension Propagate oScaleFac scriptDir # Skip the H dimension index calculation if propagate is applied to adjacent # blocks. #global ind1_min ind1_max ind2_min ind2_max upvar $conVar con # If block is not Structured, return 0 if {![$blk isOfType pw::BlockStructured]} { return 0 } set blkInfo [$blk getDimensions] set id [lindex $blkInfo 0] set jd [lindex $blkInfo 1] set kd [lindex $blkInfo 2] set ind3_min 1 if {$dir == "I"} { set max1 $jd set max2 $kd set ind3_max $id } elseif {$dir == "J"} { set max1 $id set max2 $kd set ind3_max $jd } elseif {$dir == "K"} { set max1 $id set max2 $jd set ind3_max $kd } else { set max1 $id set max2 $jd set ind3_max $kd } # Move the H domain locator out of this procedure so that it can be skipped # if Propagate is applied. set ind3_beg $ind3_min set ind3_end $ind3_max set HLocationData [HDomLocator $blk $dir $max1 $max2 $ind3_min $ind3_max] set ind1_min [lindex $HLocationData 0] set ind1_max [lindex $HLocationData 1] set ind2_min [lindex $HLocationData 2] set ind2_max [lindex $HLocationData 3] if {$dir == "ALL"} { set ind3_min [lindex $HLocationData 4] set ind3_max [lindex $HLocationData 5] } ## Creates all indice connectors ## #-- Connectors for center Bfly block set indArr(1,0) $ind1_min set indArr(1,1) $ind1_max set indArr(2,0) $ind2_min set indArr(2,1) $ind2_max set indArr(3,0) $ind3_min set indArr(3,1) $ind3_max set indArr(1,0,name) "ind1_min" set indArr(1,1,name) "ind1_max" set indArr(2,0,name) "ind2_min" set indArr(2,1,name) "ind2_max" set indArr(3,0,name) "ind3_min" set indArr(3,1,name) "ind3_max" for {set i 1} {$i <= 3} {incr i} { for {set j 0} {$j < 2} {incr j} { for {set k 0} {$k < 2} {incr k} { set index $i set loopMinMax [list $indArr($i,0) $indArr($i,1)] set indList {} switch $i { 1 { lappend indList $indArr(1,0) $indArr(2,$j) $indArr(3,$k) set name1 $indArr(2,$j,name) set name2 $indArr(3,$k,name) } 2 { lappend indList $indArr(1,$j) $indArr(2,0) $indArr(3,$k) set name1 $indArr(1,$j,name) set name2 $indArr(3,$k,name) } 3 { lappend indList $indArr(1,$j) $indArr(2,$k) $indArr(3,0) set name1 $indArr(2,$k,name) set name2 $indArr(1,$j,name) } } set con($name1,$name2) [createConnectorFromIndices $indList $index \ $loopMinMax $dir $blk] } } } #-- Create connectors from corner to center Bfly Block set indArr(1,0,pt1) 1 set indArr(1,1,pt1) $max1 set indArr(2,0,pt1) 1 set indArr(2,1,pt1) $max2 set indArr(3,0,pt1) $ind3_beg set indArr(3,1,pt1) $ind3_end set indArr(1,0,pt2) $ind1_min set indArr(1,1,pt2) $ind1_max set indArr(2,0,pt2) $ind2_min set indArr(2,1,pt2) $ind2_max set indArr(3,0,pt2) $ind3_min set indArr(3,1,pt2) $ind3_max set conName1(0,0) "corner1" set conName1(1,0) "corner2" set conName1(0,1) "corner4" set conName1(1,1) "corner3" set conName2(0) "ind3_min" set conName2(1) "ind3_max" set isPtError false for {set i 0} {$i < 2} {incr i} { for {set j 0} {$j < 2} {incr j} { for {set k 0} {$k < 2} {incr k} { set name1 $conName1($j,$i) set name2 $conName2($k) set ind3 $indArr(3,$k,pt1) set ind1 $indArr(1,$j,pt1) set ind2 $indArr(2,$i,pt1) set indList [list $ind1 $ind2 $ind3] if {[catch {set pt1 [getBlkXYZFromIndices $blk $dir $indList]}]} { set isPtError true } set ind3 $indArr(3,$k,pt2) set ind1 $indArr(1,$j,pt2) set ind2 $indArr(2,$i,pt2) set indList [list $ind1 $ind2 $ind3] if {[catch {set pt2 [getBlkXYZFromIndices $blk $dir $indList]}]} { set isPtError true } if {!$isPtError} { set segment [pw::SegmentSpline create] $segment addPoint $pt1 $segment addPoint $pt2 set con($name1,$name2) [pw::Connector create] $con($name1,$name2) addSegment $segment } else { #If there is a problem, create connector from Segment set con($name1,$name2) [pw::Connector create] set con($name1,$name2) [getConnectorByEndPoints $pt1 $pt2] } set isPtError false } } } return 1 } ############################################################################### # getConnectorByEndPoints: # - Looks at ALL connectors on grid and returns that connector which has the # - end points of pt1 and pt2 ############################################################################### proc getConnectorByEndPoints { pt1 pt2 } { set tol [pw::Grid getNodeTolerance] foreach con [pw::Grid getAll -type pw::Connector] { set pta [$con getXYZ -arc 0] set ptb [$con getXYZ -arc 1] set dist_1a [getDist $pt1 $pta] set dist_1b [getDist $pt1 $ptb] set dist_2a [getDist $pt2 $pta] set dist_2b [getDist $pt2 $ptb] if {($dist_1a < $tol && $dist_2b < $tol) || \ ($dist_1b < $tol && $dist_2a < $tol)} { return $con } } set msg "Failed to create Connector: No connector found." return -code error $msg } ############################################################################### # getDomainByCorners: # - Looks at ALL domains on grid and returns that domain which has the end # - corners which correspond to arguments pt1 pt2 pt3 pt4 ############################################################################### proc getDomainByCorners { pt1 pt2 pt3 pt4 } { set allDoms [pw::Grid getAll -type pw::Domain] foreach dom $allDoms { set domPtList {} set dimensions [$dom getDimensions] lappend domPtList [$dom getXYZ [list 1 1]] lappend domPtList [$dom getXYZ [list [lindex $dimensions 0] 1]] lappend domPtList [$dom getXYZ [list 1 [lindex $dimensions 1]]] lappend domPtList [$dom getXYZ $dimensions] set matchCount 0 foreach pt $domPtList { if {[pwu::Vector3 equal $pt $pt1] || [pwu::Vector3 equal $pt $pt2] || [pwu::Vector3 equal $pt $pt3] || [pwu::Vector3 equal $pt $pt4]} { incr matchCount } } if {$matchCount == 4} { return $dom } } set msg "Failed to create Domain: Domain not found." return -code error $msg } ############################################################################### # buildGridInfoList: # - Saves grid information for use in Gui and Transformation # - If refreshSelectBlocks is true, then blocks in GUI listbox are refreshed # and selection emptied. Should be set after run or ok since blocks change ############################################################################### proc buildGridInfoList { refreshSelectBlocks } { global Structured_Blocks ListBoxBlocks ListBoxGroups Transformed_Blocks \ defListBoxStringWidth Original_EntRenderAtt set prevBlks {} if {$refreshSelectBlocks} { set prevBlks $Structured_Blocks } set Structured_Blocks [pw::Grid getAll -type pw::BlockStructured] # We must manually remove unbalanced/invalid blocks set invalidBlks {} for {set i 0} {$i < [llength $Structured_Blocks]} {incr i} { set blk [lindex $Structured_Blocks $i] if {![$blk isValid]} { set Structured_Blocks [lreplace $Structured_Blocks $i $i] lappend invalidBlks $blk } } # Remove blocks that have already been transformed from Structured_Blocks foreach blk $Transformed_Blocks { set index [lsearch $Structured_Blocks $blk] if {$index >= 0} { set Structured_Blocks [lreplace $Structured_Blocks $index $index] } } # Add potential block groups set strBlkGroups [getStrBlkGroups [pw::Group getAll] $Structured_Blocks \ [concat $Transformed_Blocks $invalidBlks]] if {$refreshSelectBlocks} { set ListBoxBlocks {} set ListBoxGroups {} foreach blk $Structured_Blocks { lappend ListBoxBlocks $blk } foreach group $strBlkGroups { lappend ListBoxGroups $group } } } ############################################################################### # getStrBlkGroups: # - Given a list of groups, returns only groups containing structured blocks # - Of the structured blocks in a group, at least one must be in masterBlkList # - Of the remaining structured blocks, they must exist in secondaryBlkList ############################################################################### proc getStrBlkGroups { groupList masterBlkList secondaryBlkList } { set strGroups {} foreach group $groupList { if {[string compare [$group getEntityType] pw::Block] == 0} { set groupHasStrBlocks false set entList [$group getEntityList] foreach ent $entList { if {[$ent isOfType pw::BlockStructured]} { if {[lsearch $masterBlkList $ent] >= 0} { set groupHasStrBlocks true } else { if {[lsearch $secondaryBlkList $ent] == -1} { set groupHasStrBlocks false break } } } } if {$groupHasStrBlocks} { set strGroups [lappend strGroups $group] } } } return $strGroups } ############################################################################### # buildConRenderList: Builds a special con-to-render attribute list for all # connectors. List format is like this, # {con1Name con1Color con1LineWidth con1ColorMode} {con2Name con2Color ...} # - This is built so that original connector attributes may be restored once # the script finishes. ############################################################################### proc buildConRenderList { cons } { set conRenderList {} foreach con $cons { set conRenderList [lappend conRenderList [list $con [$con getColor] \ [$con getRenderAttribute LineWidth] [$con getRenderAttribute ColorMode]]] } return $conRenderList } ############################################################################### # restoreConRenderAtts: Restores connectors to their original render attributes ############################################################################### proc restoreConRenderAtts {} { global Original_EntRenderAtt defWidth defColor # newCons is trimmed down from a list of all connectors to a list of only the # newly created ones. set newCons [pw::Grid getAll -type pw::Connector] foreach ent $Original_EntRenderAtt { set entName [lindex $ent 0] set conIndex [lsearch -exact $newCons $entName] if {$conIndex >= 0} { set newCons [lreplace $newCons $conIndex $conIndex] } # Set Color and Line Length $entName setColor [lindex $ent 1] $entName setRenderAttribute LineWidth [lindex $ent 2] $entName setRenderAttribute ColorMode [lindex $ent 3] } # Newly created connectors will not be in Original_EntRenderAtt, so they # are set to default render attributes. foreach con $newCons { $con setColor $defColor $con setRenderAttribute LineWidth $defWidth $con setRenderAttribute ColorMode Entity } pw::Display update } ############################################################################### # updateGuiState: # - Enables/Disables GUI Widgets based on user interaction # - If clearSelection, then the users listbox selection is cleared ############################################################################### proc updateGuiState {{clearSelection false}} { global Job_Running Last_Job_Type Propagate Direction ListBoxSelectableItems if {!$Job_Running} { if [string equal $Last_Job_Type "Transform"] { # Update GUI selectable blocks set ListBoxSelectableItems [getSelectionList true true] # If a job has been applied setGuiState disabled .right.top.list configure -state normal .bottom.buttons.ok configure -state normal .bottom.buttons.cancel configure -state normal .right.select configure -state normal if $clearSelection { .right.top.list selection clear 0 end } } if {[llength [.right.top.list curselection]] > 0} { # If blocks are selected setGuiState normal } else { setApplicationGuiState disabled if {[string compare $Last_Job_Type "Transform"] == 0} { .bottom.buttons.ok configure -state normal } } highlightSelectedBlocks } else { # If Job is running setGuiState disabled } } ############################################################################### # shortenItem: shorten string length to fit in listbox. repl appended ############################################################################### proc shortenItem { item repl } { global defListBoxStringWidth set listBoxCharWidth [expr $defListBoxStringWidth - 1] set replIndex [expr $listBoxCharWidth - [string length $repl]] if {[string length $item] > $listBoxCharWidth && $replIndex > \ [string length $repl]} { set item [string range $item 0 $replIndex] set item [append item $repl] } return $item } ############################################################################### # highlightSelectedBlocks: highlight selected blocks by changing render atts ############################################################################### proc highlightSelectedBlocks { } { global Structured_Blocks Prev_Highlight_Selection defSelectColor \ defSelectWidth defSelectColorMode defColor defWidth defColorMode # First, gather up the current selection of blocks set selectedBlks [getCurSelBlks] set newBlks [ldifference $selectedBlks $Prev_Highlight_Selection] set oldBlks [ldifference $Prev_Highlight_Selection $selectedBlks] if {[llength $newBlks] > 0 || [llength $oldBlks] > 0} { # Reset old blocks to default Bfly script colors if {[llength $oldBlks] > 0} { highlightBlockCons $oldBlks $defColorMode $defColor $defWidth } # Set All selected blocks to default Bfly script "selected" colors highlightBlockCons $selectedBlks $defSelectColorMode $defSelectColor \ $defSelectWidth # If changes were made, update the display and prev. selected blocks pw::Display update set Prev_Highlight_Selection $selectedBlks } } ############################################################################### # highlightBlockCons: Using a block list, highlight all block connectors ############################################################################### proc highlightBlockCons { blkList colorMode color width } { # Drill down and find all connectors that correspond to the blk list and # highlight them. set conList {} set doms {} foreach blk $blkList { set faceCount [$blk getFaceCount] for {set i 1} {$i <= $faceCount} {incr i} { set face [$blk getFace $i] set edgeCount [$face getEdgeCount] for {set j 1} {$j <= $edgeCount} {incr j} { set edge [$face getEdge $j] set conCount [$edge getConnectorCount] for {set k 1} {$k <= $conCount} {incr k} { set con [$edge getConnector $k] $con setRenderAttribute ColorMode Entity $con setColor $color $con setRenderAttribute LineWidth $width } } } } } ############################################################################### # ldifference: Helper function (list set difference) ############################################################################### proc ldifference {a b} { set result {} foreach e $a { if {$e ni $b} {lappend result $e} } return $result } ############################################################################### # createBflyDBSurf: # - Takes a block and direction and exports the domains on the block that # correspond the the direction. # - It is then re-imported to produce a database for projection # - Database is saved in global butterflyDBArr ############################################################################### proc createBflyDBSurf { blk dir } { global butterflyDBFile scriptDir set butterflyDBFile [file join $scriptDir "butterflyDB.grd"] set butterflyFaces {} set boundaryList [list IMinimum IMaximum JMinimum JMaximum KMinimum KMaximum] set faceList {} foreach boundary $boundaryList { lappend faceList [$blk getFace $boundary] } set domFacImin [lindex $faceList 0] set domFacImax [lindex $faceList 1] set domFacJmin [lindex $faceList 2] set domFacJmax [lindex $faceList 3] set domFacKmin [lindex $faceList 4] set domFacKmax [lindex $faceList 5] set domNumImin [llength $domFacImin] set domNumImax [llength $domFacImax] set domNumJmin [llength $domFacJmin] set domNumJmax [llength $domFacJmax] set domNumKmin [llength $domFacKmin] set domNumKmax [llength $domFacKmax] if {$dir == "I"} { foreach face $domFacImin { lappend butterflyFaces $face } foreach face $domFacImax { lappend butterflyFaces $face } } elseif {$dir == "J"} { foreach face $domFacJmin { lappend butterflyFaces $face } foreach face $domFacJmax { lappend butterflyFaces $face } } elseif {$dir == "K"} { foreach face $domFacKmin { lappend butterflyFaces $face } foreach face $domFacKmax { lappend butterflyFaces $face } } set butterflyDoms [getFaceDomains $butterflyFaces] pw::Grid export -type PLOT3D -format ASCII -precision Double \ $butterflyDoms $butterflyDBFile set dbList [pw::Database import -type PLOT3D -format ASCII -precision Double \ $butterflyDBFile] # Tmp Database file no longer needed. Delete it. if { [file exists $butterflyDBFile] } { file delete -force $butterflyDBFile } # Must join faces to avoid bad projections. For example, the ogrid might be # built on a split domain. set dbList [pw::Surface join -reject remain $dbList] return [concat $dbList $remain] } ############################################################################### # deleteBflyDBSurf: # - deletes databases stored in butterflyDBArr # - Cleans up database last used by createBflyDBSurf ############################################################################### proc deleteBflyDBSurf { } { global butterflyDBArr Transformed_Blocks prevDirection if {$prevDirection != "ALL" && [info exists butterflyDBArr]} { foreach blk $Transformed_Blocks { if {[llength $butterflyDBArr($blk)] > 0} { foreach db $butterflyDBArr($blk) { $db delete -force } } unset butterflyDBArr($blk) } } } ############################################################################### # switchMode: # - This that happen when the direction (I,J,K,ALL) is changed # - Called from Radiobutton presses ############################################################################### proc switchMode { {dir 0} } { global ListBoxBlocks Propagate Direction if {$dir} { set currentSelection [.right.top.list curselection] } .right.top.list selection clear 0 end foreach csel $currentSelection { .right.top.list selection set $csel .right.top.list selection set $csel } .left.dir.i configure -state normal .left.dir.j configure -state normal .left.dir.k configure -state normal .left.dir.all configure -state normal if {$Direction == "ALL"} { set Propagate 0 .left.values.propagate configure -state disabled } else { .left.values.propagate configure -state normal } # Disable Propagate if no direction is specified. if {$Direction == ""} { .left.values.propagate configure -state disabled } } ############################################################################### # setGuiState: # - Enable/disables GUI # - It is used to indicate that a transformation is currently running ############################################################################### proc setGuiState { isEnabled } { # Set listbox .right.top.list configure -state $isEnabled .right.select configure -state $isEnabled # set the state of the GUI application options setApplicationGuiState $isEnabled # set CANCEL button states .bottom.buttons.cancel configure -state $isEnabled # Update GUI so state change is visible update } ############################################################################### # setApplicationGuiState: # - Enable/disables GUI related to options (Apply, Ok, Directions) # - It is used to indicate that a transformation is currently running ############################################################################### proc setApplicationGuiState { isEnabled } { global Direction # Set radio button state .left.dir.i configure -state $isEnabled .left.dir.j configure -state $isEnabled .left.dir.k configure -state $isEnabled .left.dir.all configure -state $isEnabled # Set option panel state .left.values.dist.entdist configure -state $isEnabled .left.values.pts.entpts configure -state $isEnabled if {$Direction != "ALL"} { .left.values.propagate configure -state $isEnabled } # Set preview button state .left.values.preview configure -state $isEnabled # set OK and RUN button states .bottom.buttons.ok configure -state $isEnabled .bottom.buttons.run configure -state $isEnabled } ############################################################################### # getPropagatedBlockList: # - For all blocks in BlkList, gets adjacent blocks that are in the propagated # direction. # - Returns updated block list (checks for duplicates) ############################################################################### proc getPropagatedBlockList { blkList dir } { for {set i 0} {$i < [llength $blkList]} {incr i} { set tmpBlk [lindex [lindex $blkList $i] 0] set adjBlockList [getAdjacentPropagatedBlocks $tmpBlk $dir] foreach adjblk $adjBlockList { # if not a duplicate, then add to blkList if {[lsearch $blkList $adjblk] == -1} { lappend blkList $adjblk } } } return $blkList } ############################################################################### # getAdjacentPropagatedBlocks: # - For a given domain and blocklist, returns all blocks that reference that # domain ############################################################################### proc getAdjacentPropagatedBlocks { blk dir } { global Structured_Blocks set adjacentBlocks [list $blk] set faceDomList [list \ [list [getFaceDomains [$blk getFace ${dir}Minimum]]] \ [list [getFaceDomains [$blk getFace ${dir}Maximum]]]] foreach domList $faceDomList { # If domlist contains only one domain if {[llength $domList] == 1} { set refBlocks [getDomsReferencedBlocks $domList $Structured_Blocks] foreach tblk $refBlocks { if {[lsearch -exact $adjacentBlocks $tblk] == -1} { lappend adjacentBlocks "$tblk" } } } } return $adjacentBlocks } ############################################################################### # getDomsReferencedBlocks: # - For a given domain and blocklist, returns all blocks that reference that # domain ############################################################################### proc getDomsReferencedBlocks { domain blkList } { set refedBlocks { } foreach blk $blkList { set domList [getRefedDomains $blk] foreach dom $domList { if {[string compare $domain $dom] == 0} { lappend refedBlocks $blk continue } } } return $refedBlocks } ############################################################################### # getFaceDomains: returns all domains associated with a list of faces ############################################################################### proc getFaceDomains { faceList } { set resultList {} foreach subFace $faceList { set domList [$subFace getDomains] foreach dm $domList { #Append to result list lappend resultList $dm } } return $resultList } ############################################################################### # getRefedDomains: returns a list of domains belonging to the blocks in blkList ############################################################################### proc getRefedDomains { blkList } { foreach blk $blkList { set faceCount [$blk getFaceCount] for {set i 1} {$i <= $faceCount} {incr i} { set tmpFace [$blk getFace $i] set domainCount [$tmpFace getDomainCount] for {set j 1} {$j <= $domainCount} {incr j} { set tmpDomain [$tmpFace getDomain $j] lappend domainList $tmpDomain } } } return $domainList } ############################################################################### # buildBlockList: creates list of blocks for Bfly topology creation ############################################################################### proc buildBlockList { dir propagate } { global Structured_Blocks set bflyBlockList { } # If Direction is set to "ALL" if {$dir == "ALL"} { if {[llength [.right.top.list curselection]] > 0} { set bflyBlockList [getCurSelBlks] } # If Direction is set to "I, J, or, K" and at least 1 block is selected } elseif {[llength [.right.top.list curselection]] > 0} { set bflyBlockList [getCurSelBlks] # If propagated, get propagated block list if {$propagate == 1} { set bflyBlockList [getPropagatedBlockList $bflyBlockList $dir] } } return $bflyBlockList } ############################################################################### # buildAlignList: # - Builds a Master-Block align list so that topologically connects blocks may # be oriented consistently ############################################################################### proc buildAlignList { } { global MasterAlignBlocks set selBlocks [getSelectionList false false] for {set i 0} {[llength $selBlocks] > 0} {incr i} { set topBlock [lindex $selBlocks 0] set adjBlocks($i) [concat $topBlock [pw::Block getAdjacentBlocks -all \ $topBlock]] set selBlocks [ldifference $selBlocks $adjBlocks($i)] } set MasterAlignBlocks {} for {set j 0} {$j < $i} {incr j} { lappend MasterAlignBlocks [lindex $adjBlocks($j) 0] } } ############################################################################### # orientBlocks: # - orients blocks based on MasterAlignBlocks created with buildAlignList ############################################################################### proc orientBlocks {} { global MasterAlignBlocks set selBlocks [getSelectionList false false] foreach blk $MasterAlignBlocks { $blk alignOrientation $selBlocks } } ############################################################################### # deleteLastBlock: # - Delete pre-transformed blocks if they exist # - Align new blocks according to master before old master may get deleted. # - Set a new/valid MasterBlock after deleting old blocks ############################################################################### proc deleteLastBlock { } { global Transformed_Blocks MasterBlock # Must orient the blocks now before they are deleted. This keeps orientation # consistent. orientBlocks foreach blk $Transformed_Blocks { $blk delete } # Rebuild align list with new master align blocks buildAlignList } ############################################################################### # runJob: # - performs transformation to butterfly topology # - If drawPreview == true, only connectors drawn for user preview ############################################################################### proc runJob { dir propagate drawPreview } { global oScaleFac oDimension guiTitle Job_Running Transformed_Blocks global Last_Job_Type butterflyDBArr butterflyDBSurf prevDirection global Error_Last_Job locatorH_prop set Error_Last_Job false set Job_Running true updateGuiState # Warning if oScaleFac component is larger than 1.0. set oScale_1 [lindex $oScaleFac 0] set oScale_2 [lindex $oScaleFac 1] set oScale_3 [lindex $oScaleFac 2] if {$oScale_1 > 1.0 || $oScale_2 > 1.0 || $oScale_3 > 1.0 || \ $oScale_1 < 0.0 || $oScale_2 < 0.0 || $oScale_3 < 0.0} { set Job_Running false updateGuiState set msg "Invalid scaling factor input!" return -code error $msg } if {$oDimension < 2 || ![string is digit $oDimension]} { set Job_Running false updateGuiState set msg "Invalid Ogrid rib grid points!" return -code error $msg } # Clean any previous intermediate objects clean false # Create Databases for projections set blkList [buildBlockList $dir $propagate] if {!$drawPreview} { if {$dir != "ALL"} { foreach blk $blkList { set butterflyDBArr($blk) [createBflyDBSurf $blk $dir] } } } # Run Job on all blocks that have been selected setCreatorState create set count 0 foreach blk $blkList { incr count if {$drawPreview} { # Draw preview set Last_Job_Type "Preview" # Draw Connector Preview blkMakeBflyConnectors $blk $dir cons } else { # Apply Transformation set Last_Job_Type "Transform" # Draw butterfly topology blkMakeBflyBlocks $blk $dir } } # Re-build GUI grid info lists based on previous job if {$drawPreview} { buildGridInfoList false } else { set Transformed_Blocks $blkList buildGridInfoList true } set prevDirection $dir # Reset locatorH_prop to an empty list set locatorH_prop { } # Preview created, re-enable GUI and reset title wm title . $guiTitle set Job_Running false updateGuiState true # Update Pointwise display pw::Display update } ############################################################################### # selectBtnPressed: called when interactive block selection button is pressed ############################################################################### proc selectBtnPressed { } { global Propagate Direction Structured_Blocks if {[llength $Structured_Blocks] <= 0} { set title "Error: No Blocks Available" set msg "There are no structured blocks in the current grid" tk_messageBox -title $title -message $msg -type ok -icon error return } wm withdraw . set desc "Please select the blocks you wish to convert to a butterfly topology." set mask [pw::Display createSelectionMask -requireBlock Structured] pw::Display selectEntities -description $desc -selectionmask \ $mask -pool $Structured_Blocks tSel .right.top.list selection clear 0 end foreach i $tSel(Blocks) { .right.top.list selection set [lsearch $Structured_Blocks $i] \ [lsearch $Structured_Blocks $i] } updateGuiState if {[winfo exists .]} { wm deiconify . } } ############################################################################### # makeInputField: create a Tk text widget ############################################################################### proc makeInputField { parent name title variable {width 10} {when ""} \ {valid ""}} { frame $parent.$name label $parent.$name.lbl$name -text $title entry $parent.$name.ent$name -textvariable $variable -width $width if {[string compare $valid ""]!=0} { $parent.$name.ent$name configure -validate $when set var " if {$valid==1} { if {[string compare %V focusout]==0} \ { focus %W }; return 0 } else { %W configure -background #FFFFFF; \ return 1 }"] $parent.$name.ent$name configure -validatecommand $var $parent.$name.ent$name configure -invalidcommand { %W configure -background "#FFCCCC" } } pack "$parent.$name.lbl$name" -side left -padx 3 -pady 1 pack "$parent.$name.ent$name" -side right -padx 3 -pady 1 return $parent.$name } ############################################################################### # addUniqueToList: unique entities from addEntList are added to entList ############################################################################### proc addUniqueToList { entList addEntList } { foreach ent $addEntList { if {[lsearch $entList $ent] == -1} { lappend entList $ent } } return $entList } ############################################################################### # getCurSelBlks: # - Determine user selected blocks from Gui listbox. # - Valid blocks from groups are added. ############################################################################### proc getCurSelBlks {} { set curSelIndexList [.right.top.list curselection] set selectionList [getSelectionList false true] set curSelBlks {} foreach index $curSelIndexList { set curEnt [lindex $selectionList $index] if {[$curEnt isOfType pw::BlockStructured]} { lappend curSelBlks $curEnt } elseif {[$curEnt isOfType pw::Group]} { set groupEntList [$curEnt getEntityList] set strBlkEnts {} foreach ent $groupEntList { if {[$ent isOfType pw::BlockStructured] && [$ent isValid]} { lappend strBlkEnts $ent } } set curSelBlks [addUniqueToList $curSelBlks $strBlkEnts] } } return $curSelBlks } ############################################################################### # getSelectionList: # - Create a list of all blocks "available" to be picked. # - If makePrintable, then entity names are used and "shortened" if needed. ############################################################################### proc getSelectionList { makePrintable returnGroups } { global ListBoxBlocks ListBoxGroups guiGroupPrefix set printableList {} foreach blk $ListBoxBlocks { if {$makePrintable} { lappend printableList [shortenItem [$blk getName] "..."] } else { lappend printableList $blk } } if {$returnGroups} { foreach group $ListBoxGroups { if {$makePrintable} { set groupName "$guiGroupPrefix[$group getName]" lappend printableList [shortenItem $groupName "..."] } else { lappend printableList $group } } } return $printableList } ################################################################################# # preselectBlocks: # -Checks if any structured blocks have been selected before script is run # -Selects these blocks in the listbox ################################################################################# proc preselectBlocks { } { global ListBoxSelectableItems # Update GUI selectable blocks set ListBoxSelectableItems [getSelectionList true true] pw::Display getSelectedEntities ents foreach blk $ents(Blocks) { if [$blk isOfType pw::BlockStructured] { # Name of the block as it appears in the List Tab set blkName [$blk getName] # Finds the index of selected block in the listbox set blkStrucIndex [lsearch $ListBoxSelectableItems $blkName] # Selects the block in the listbox .right.top.list select set $blkStrucIndex } } } ############################################################################### # setCreatorState: # - If possible, sets creator state according to input parameter "state" # - State = create, end, or abort # - global variable isCreatorSet used to ensure that multiple modes aren't set, # and that non-existent modes are not ended or aborted ############################################################################### proc setCreatorState { state } { global creation_mode isCreatorSet if {[string compare $state "create"] == 0} { if {!$isCreatorSet} { set creation_mode [pw::Application begin Create -monitor] set isCreatorSet true } } elseif {[string compare $state "end"] == 0} { if {$isCreatorSet} { $creation_mode end set isCreatorSet false } } elseif {[string compare $state "abort"] == 0} { if {$isCreatorSet} { $creation_mode abort set isCreatorSet false } } } ############################################################################### # changeDirection: # - Change direction of BflyBlock creation # - Called by the GUI RadioButtons in makeWindow ############################################################################### proc changeDirection { } { global Direction dupDirection if {[string compare $Direction $dupDirection] != 0} { switchMode 1 } set dupDirection $Direction } ############################################################################### # handleError: Called when excetption is caught during runJob ############################################################################### proc handleError { msg } { global locatorH_prop guiTitle Job_Running Last_Job_Type Error_Last_Job set Error_Last_Job true tk_messageBox -message $msg -type ok -icon error -title "Error" setCreatorState abort # Clear selection in list box .right.top.list configure -state normal .right.top.list selection clear 0 end buildGridInfoList false # Reset locatorH_prop to an empty list set locatorH_prop { } # Preview created, re-enable GUI and reset title wm title . $guiTitle set Job_Running false updateGuiState # Update Pointwise display pw::Display update } ############################################################################### # previewBtnPressed: # - Updates and redraws Pointwise Display based on chosen # - Called by the GUI RadioButtons in makeWindow ############################################################################### proc previewBtnPressed { dir } { global Propagate # While preview is being created, update window titile and disable GUI wm title . "Creating Butterfly Topology Preview" # Run Job while catching & displaying errors if {[catch { runJob $dir $Propagate true } msg]} { handleError $msg } } ############################################################################### # listBoxInteract: respond to listbox item selection (clean and update gui) ############################################################################### proc listBoxInteract {} { #clean false updateGuiState } ############################################################################### # cancelBtnPressed: abort changes and exit ############################################################################### proc cancelBtnPressed { } { global Cancel_Job set Cancel_Job true clean true exit } ############################################################################### # okBtnPressed: # - Save changes by ending creator mode # - exit ############################################################################### proc okBtnPressed { } { runBtnPressed clean true exit } ############################################################################### # runBtnPressed: runs the current Butterfly topology conversion job ############################################################################### proc runBtnPressed { } { global Direction Propagate guiTitle Last_Job_Type # While topology is being created, update window titile and disable GUI wm title . "Creating Butterfly Topology" # Run Job while catching & displaying errors if {[catch {runJob $Direction $Propagate false} msg]} { handleError $msg } # Clear selection in list box set Propagate 0 # Toplogy created, re-enable GUI and reset title wm title . $guiTitle } ############################################################################### # clean: # - Deletes last transformed block (if necessary) # - Deletes last Bfly Database surfaces (if necessary) # - Ends or aborts creator state appropriately ############################################################################### proc clean { isEnd } { global Last_Job_Type Cancel_Job Error_Last_Job Original_EntRenderAtt \ End_Script tempEntCollection prevOgridCollection butterflyDomList if {[string compare $Last_Job_Type "Transform"] == 0} { if {$Cancel_Job || $Error_Last_Job} { setCreatorState abort deleteBflyDBSurf } else { setCreatorState end deleteBflyDBSurf deleteLastBlock $tempEntCollection do "delete" $prevOgridCollection do "setRenderAttribute" "ColorMode" "Automatic" } } elseif {[string compare $Last_Job_Type "Preview"] == 0} { setCreatorState abort } if {$isEnd && !$End_Script} { set End_Script true restoreConRenderAtts } set Last_Job_Type "None" } ############################################################################### # makeWindow: # - create GUI window for butterfly topology transformation ############################################################################### proc makeWindow { } { global scriptDir guiTitle guiHeader defListBoxStringWidth # Create a title label label .title -text $guiHeader set font [.title cget -font] .title configure -font [font create -family [font actual $font -family] \ -weight bold] pack .title -expand 1 -side top pack [frame .hr1 -bd 1 -height 2 -relief sunken] -fill x -pady 2 pack [frame .content] -fill both -side top frame .contents frame .left # Create Radiobuttons For Directions "(I) (J) (K) (ALL)" frame .left.dir -bd 1 -relief solid pack [radiobutton .left.dir.i -text "I" -command changeDirection \ -variable Direction -value I] -side left -expand 1 pack [radiobutton .left.dir.j -text "J" -command changeDirection \ -variable Direction -value J] -side left -expand 1 pack [radiobutton .left.dir.k -text "K" -command changeDirection \ -variable Direction -value K] -side left -expand 1 pack [radiobutton .left.dir.all -text "All" -command changeDirection \ -variable Direction -value ALL] -side left -expand 1 pack .left.dir -fill both -padx 2 -pady 0 -expand 1 frame .left.values -bd 1 -relief solid # Allow user to input scaling factor in 2 dimensions for adjusting H region's # length and width. pack [makeInputField .left.values dist "H Region 3D Scaler (0,1.0):" \ oScaleFac] -fill x -padx 2 -pady 4 pack [makeInputField .left.values pts "Grid Points on Ogrid Ribs:" \ oDimension] -fill x -padx 2 -pady 8 checkbutton .left.values.propagate -text "Propagate Topology" \ -variable Propagate # Create button for previewing toplogy changes] button .left.values.preview -text "Preview Topology" \ -command {previewBtnPressed $Direction} pack .left.values -fill x -padx 2 -pady 2 pack .left.values.propagate -padx 2 -pady 8 pack .left.values.preview -padx 2 -pady 8 pack .left -in .contents -side right -expand 1 frame .right -bd 1 -relief solid # Change the position and the text of select block button. This command is # not neccessary when the selection is already made in the GUI list. set listBoxPadY 5 # Create button for interactive selection pack [button .right.select -text "Click to Select Interactively" \ -command selectBtnPressed] -side bottom -pady $listBoxPadY -padx 20 pack [frame .right.top] -side bottom # Create scrollbar for blk listbox pack [scrollbar .right.top.scroll -command ".right.top.list yview" \ -takefocus 0] -side right -fill y -pady $listBoxPadY # Create listbox for all available structured blocks pack [listbox .right.top.list -yscrollcommand ".right.top.scroll set" \ -selectmode extended -exportselection false -takefocus 0 -height 8 \ -width $defListBoxStringWidth -font TkFixedFont] -fill both -side right \ -pady $listBoxPadY # Populate block list on start .right.top.list configure -listvar ListBoxSelectableItems # Binds slecection in listbox to block selection in script bind .right.top.list <<ListboxSelect>> { listBoxInteract } pack .right -in .contents -side left -fill y pack .contents -padx 10 -pady 10 pack [frame .hr2 -bd 1 -height 2 -relief sunken] -fill x frame .bottom frame .bottom.buttons -relief solid # Create Cancel button pack [button .bottom.buttons.cancel -text "Cancel" \ -command cancelBtnPressed] -padx 5 -pady 1 -side right -expand 1 -fill x # Create OK button pack [button .bottom.buttons.ok -text "OK" -command okBtnPressed] \ -padx 5 -pady 1 -side right -expand 1 -fill x # Create Run button pack [button .bottom.buttons.run -text "Run" -command runBtnPressed] \ -padx 5 -pady 1 -side right -expand 1 -fill x pack [label .bottom.buttons.logo -image [pwLogo] -bd 0 -relief flat] \ -side bottom -padx 5 -expand 1 -fill x pack .bottom.buttons -side bottom -fill x -padx 2 -pady 2 pack .bottom -side bottom -fill x # Add an empty label with pading to add some space between "left" and "right" # widgets pack [label .center] -padx 3 pack .center -in .contents -side bottom -fill x # binds window destruction to clean bind . <Destroy> { clean true } # bind standard pointwise shortcuts for Cancel, Ok, & (Apply = Run) bind . <KeyPress-Escape> { .bottom.buttons.cancel invoke } bind . <Control-KeyPress-Return> { .bottom.buttons.ok invoke } bind . <Control-Shift-KeyPress-Return> { .bottom.buttons.run invoke } ::tk::PlaceWindow . widget wm title . $guiTitle # Disable window resize wm resizable . false false } ############################################################################### # pwLogo: get pointwise logo ############################################################################### proc pwLogo { } { set logoData { R0lGODlhiQAYAMZnAAAAAA4ODhQUFBsbGyQkJCwsLDMzMzs7O0REREtLS1RUVFtbW2JiYmtra3Jy cnt7ewBjqgtqrgBmsABrtwBsuRJusBZwsRpzsyF2syJ4tSh7ty1/uQZ1xC+AujeFvDiFvT2IvjGQ 1EWNwUiPwk6TxEqVylSXxleYx1iZx1ybyGGeymSgy26mz3Coz2On122q1Wqt3XSq0Xuu03+x1Xqx 2HS04n+544ODg4qKipSUlJubm6Ojo6ysrLS0tLu8vIS01oi214q32I252ZK825i+2pzC3pXB4ZnI 6qPG4KXI4qvM46HL6rDP5bTR5rzW6b/Y6sTExMzMzM/R0dPT09ra2sTb68re7M/h79Di78ni9NXl 8d3q9N/u+OTk5Ovr6+Pu9ubw9+3z9+Xx+ery+PLy8vH3+vX5+/////////////////////////// /////////////////////////////////////////////////////////////////////////yH5 BAEKAH8ALAAAAACJABgAAAf+gH+Cg4SFhoeIiYqLjI2Oj5CRkpOUlZaPPDs5hDkKnp8KCzuKTk1K f2BKp4ZQoF1/C6CgDlGDN7K4Cj5QCZ4NhlSGO58JXVGfC4NdoKOGt7mgPn/DDg43UIIJANvc3AiH QlpBJE1DKDJFKUGFOt2v3fDbDoIG8fEPXd21ygOvhAHd/uQIKKgdt3mGCNiDNwqHjwVQdOAQxGDh NgWEtKRQAUTLDywrIEDwkCTCB0I83P0BaBHAjT/aWgL4dYBbskEDJw6K0o3BnxvcAgzC0U3HIQQy AfjoooPKAR9RNv2p2FLKICJbkvz4cubHmC9CZlQ5EwEDF0Epub1LOjXprx7+KgUpFECI6rYpf4hu E4q2m85CSGWOeoBjCg8GzQJbfCBIiZgiT55wNaNCCRASKJpsYdGkr9o/SQH0aJAU4x8B3HTC3cZj UDcDgvQC4PsnH7cBhwoknQilAQ8HRgX5yEFcB/GY23wuGSEDAhIkV84AUXElgsgTQUAU8bztFcuZ OsLf+O6ACo/zPdDzSJ8e78/bgmpuI1CwWzPZtP8o6JbAUJQeAAYoIID+/LGPIrZtk0wIQVRwwRko mPCDCDKUoUQIEMRQhEhH/JFWdytx454g+yUHSYJK6afPH/LNNlRQhKA40yWFGBPFjTcu0M1LHDT4 xBBMNHHCGUxAMEIYJ/z+0IJIMHioUjc91MXNL8pAYSU2R3HTHxXd/NLli3sVMlA3jA1CBY5oplmg ISVa1IMVFBTxhQoZbvGDEiyIBIEWZuj5wh+rgQglITpuQ2Vs3YxISKAAvNKiAIXeBaaLhTwAT3As JoWpIZEu9EcSElxRhUgt5LnnBSIp0QWdENDwhw8qfRflIJEeKlA3wRyi0DaMMfoaIfgdAlSi2Wia iF32YFQDBEyEIdIQzUHwgwwYjBHSGCNAYAQRUzzJzayC1EqIQdvkakiwfwxgT2uT5keIpdzQB1NS zRyCLDwHCGIDBEWEQ8IQrJJgRhOsatAEEyXIwOVnshI65bi4IoJilMP+duNuxe4S0qJo88r0lyF2 DbDDyDtg+YcWKwgBAQhJbGGFEk4MgQWrpJ4xQRULC/qtw4ZyEjEibeYrIwBltpsIiv0hRwBxOeDA dA6KFmIXbImcoKcMSHyAqgVW6HlBE0+48AcUse5M68ODkAuAuaxE3CaIwMKYSIv5ttlfJHYVoMiG Iqnwg57MLglCGSZAAIaTnw16ds9p/4zIrgD41C03+RaCLiLqbvNNm9/gzY3eiXzBBAgQXIAE4BUw EcQXJIiUBeIgNrz4jDg5fsiYtOu2DbhGH0IFcpF3DEDnkOStSNZVILFCFRtYsEEKPxBpHQQycNco aGaHi3Z93LB9CEvq/qRF17lyT0EAAQMI8N3OwA/g/vvps2vv54tka4IQX2xxcDopECFSCoP40PVk pz3Gca9ci6jI3QSBmqLFLUxjawluhGcRqcxvG6BTxN9W5gTAQYAIIFgBSry1O57R7oBrWwTZ6tWW NfWOJxbZB/AWwkLAEGQRWkABvywAuOqxg4QAkF+mLkKIigEgaocoBiF8UDlDOIAgZLPHAUaku5Z8 rBA7aIAWX+IIK2jhCTFAxxYOMYUHmBEff6hGNRSVRQf4hhBQcGM1XOgIOgoijmbkYhdwwMc+5kAa nNCiIAcpSJPR6JCITKQiGREIADs=} return [image create photo -format GIF -data $logoData] } # enable Tk in Glyph 2 pw::Script loadTk catch { set scriptDir [file dirname [info script]] source [file join $scriptDir pwiLogo.glf] } # create the Tk window and place it makeWindow ::tk::PlaceWindow . widget # keep tk window "always on top" wm attributes . -topmost yes # Initialize Grid Info Lists buildGridInfoList true # Save original grid Render Attributes and set current conns to default colors set allCons [pw::Grid getAll -type pw::Connector] set allStrBlks [pw::Grid getAll -type pw::BlockStructured] set Original_EntRenderAtt [buildConRenderList $allCons] highlightBlockCons $allStrBlks $defColorMode $defColor $defWidth pw::Display update # Align all blocks to begin with. This keeps things consistent buildAlignList orientBlocks preselectBlocks # Initial Gui State update updateGuiState # process Tk events until the window is destroyed tkwait window . # # DISCLAIMER: # TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, POINTWISE DISCLAIMS # ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED # TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE, WITH REGARD TO THIS SCRIPT. TO THE MAXIMUM EXTENT PERMITTED # BY APPLICABLE LAW, IN NO EVENT SHALL POINTWISE BE LIABLE TO ANY PARTY # FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES # WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF # BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE # USE OF OR INABILITY TO USE THIS SCRIPT EVEN IF POINTWISE HAS BEEN # ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND REGARDLESS OF THE # FAULT OR NEGLIGENCE OF POINTWISE. #
Glyph
5
smola/language-dataset
data/github.com/pointwise/ButterflyMaker/69640569d9a6c1fe89f21373e5dc9c943685b041/ButterflyMaker.glf
[ "MIT" ]
x : y : 2
Objective-J
0
justinmann/sj
tests/assignment8.sj
[ "Apache-2.0" ]
#include <Arduino.h> #include <SPI.h> #include "U8x8lib.h" /*=============================================*/ /* display setup procedures */ u8x8_t u8x8; uint8_t tile[8] = { 0x0f, 0x0f, 0x0f, 0x0f, 0xf0, 0xf0, 0xf0, 0xf0 }; void setup(void) { pinMode(7, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); digitalWrite(7, 0); // default output in I2C mode for the SSD1306 test shield digitalWrite(9, 0); // default output in I2C mode for the SSD1306 test shield: set the i2c adr to 0 digitalWrite(10, 0); // default output in I2C mode for the SSD1306 test shield //u8x8_Setup_3Wire_SW_SPI(&u8x8, u8x8_d_ssd1306_128x64_noname, 13, 11, 10, 8); //u8x8_Setup_4Wire_SW_SPI(&u8x8, u8x8_d_ssd1306_128x64_noname, 13, 11, 10, 9, 8); //u8x8_Setup_4Wire_HW_SPI(&u8x8, u8x8_d_ssd1306_128x64_noname, 10, 9, 8); u8x8_Setup_SSD13xx_SW_I2C(&u8x8, u8x8_d_ssd1306_128x64_noname, 13, 11, 8); //u8x8_Setup_8Bit_6800(&u8x8, u8x8_d_ssd1306_128x64_noname, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //u8x8_Setup_8Bit_8080(&u8x8, u8x8_d_ssd1306_128x64_noname, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //u8x8_Setup_4Wire_SW_SPI(&u8x8, u8x8_d_uc1701_dogs102, 13, 11, 10, 9, 8); //u8x8_Setup_4Wire_HW_SPI(&u8x8, u8x8_d_uc1701_dogs102, 10, 9, 8); } void loop(void) { u8x8_InitDisplay(&u8x8); //u8x8_SetFlipMode(&u8x8, 1); //digitalWrite(9, 0); // default output in I2C mode for the SSD1306 test shield: set the i2c adr to 0 for(;;) { u8x8_ClearDisplay(&u8x8); u8x8_SetPowerSave(&u8x8, 0); //u8x8_SetContrast(&u8x8, 10); //delay(500); u8x8_SetFont(&u8x8, u8x8_font_chroma48medium8_r); u8x8_DrawString(&u8x8, 0, 0, "Hello World"); u8x8_DrawString(&u8x8, 3, 1, "ABCdefg"); u8x8_DrawTile(&u8x8, 1, 1, 1, tile); u8x8_DrawTile(&u8x8, 2, 2, 1, tile); u8x8_DrawTile(&u8x8, 3, 3, 1, tile); u8x8_DrawTile(&u8x8, 4, 4, 1, tile); u8x8_DrawTile(&u8x8, 5, 5, 1, tile); u8x8_DrawTile(&u8x8, 6, 6, 1, tile); //delay(2000); } }
Arduino
5
Linghhh/u8g2
sys/arduino/ssd1306_test/test.ino
[ "BSD-2-Clause" ]
;; Test that the function docs are handled as they should be. (defmodule test_docs "Testing function docs. This line and the next are indented 3. We have the functions one/3, two/3, three/3, four/3, five/3, six/3" (export (one 3) (two 3) (three 3) (four 3) (five 3) (six 3))) (defun one (x y z) "A simple one line doc string." (list x y z )) (defun two (x y z) "x y z 3 lines where the 2nd is indented 3 and the 3rd has the same indentation." (list x y z)) (defun three (x y z) "x y z 4 lines where this is indented 4 this is indented 4 as well while this is one is indented only 2 and this one is indented 6." (list x y z)) (defun four (x y z) "x y z 1 line indented 3 indented 3 just skipped a blank line." (list x y z)) (defun five (x y z) " x y z there were 2 blank lines before the arg line which was indented 3 as is this one after a blank line." (list x y z)) (define-function six ((doc "x y z 3 lines where the 2nd is indented 9 and the 3rd has the same indentation.") (doc "This is the second doc string of 4" "where this is in the same doc as 2") (doc "x y z 1 line indented 4 indented 4 just skipped a blank line.")) (lambda (x y z) (list x y z)))
LFE
4
haetze/lfe
dev/test_docs.lfe
[ "Apache-2.0" ]
#!/usr/bin/env sage # Use sage's built in Elliptic Curve Method for factorization of large composites import sys n = int(sys.argv[1]) try: print(ecm.factor(n)) except: print(0)
Sage
4
CrackerCat/RsaCtfTool
sage/ecm2.sage
[ "Beerware" ]
class BOOK_COLLECTION create make feature {NONE} -- Initialization make (a_name: STRING_32) -- Create a book collection with `a_name' as `name'. do set_name (a_name) create book_index.make (10) ensure name_set: name = a_name end feature -- Access name: STRING_32 -- Name. books: LIST [BOOK] -- collection of book. do create {LINKED_LIST [BOOK]} Result.make across book_index as it loop Result.append (it.item) end end books_by_author (a_author: STRING_32): LIST [BOOK] -- Books wrote by `a_author' in this collection. do if attached book_index [a_author] as l_result then Result := l_result else create {LINKED_LIST [BOOK]} Result.make end end feature -- Change set_name (a_name: STRING_32) -- Set `name' with `a_name'. do name := a_name ensure name_set: name = a_name end add_book (a_book: BOOK) -- Extend collection with `a_book'. local l: detachable LIST [BOOK] do l := book_index.at (a_book.author.name) if l = Void then create {LINKED_LIST [BOOK]} l.make book_index.put (l, a_book.author.name) end l.force (a_book) end add_books (book_list: like books) -- Append collection with `book_list'. do across book_list as it loop add_book (it.item) end end feature {NONE} -- Implementation book_index: HASH_TABLE [LIST [BOOK], STRING_32] -- Association of author name and its books. end -- class BOOK_COLLECTION
Eiffel
5
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Eiffel/book_collection.e
[ "MIT" ]
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) (* A mini-LLAIR model, based on the files in sledge/src/llair *) open HolKernel boolLib bossLib Parse; open settingsTheory memory_modelTheory; new_theory "llair"; numLib.prefer_num (); (* ----- Abstract syntax ----- *) Datatype: typ = | FunctionT typ (typ list) (* How many bits the integer occupies *) | IntegerT num | PointerT typ | ArrayT typ num | TupleT (typ list) End Datatype: var = Var_name string typ End (* These labels have more structure than in the OCaml, but this makes it much * easier to reason about generating many labels from a single LLVM label when * splitting blocks at calls and phi instructions. We don't have to worry about * l1, l2, l3, etc already being in use when working from a block labelled l. * The semantics doesn't look inside of labels, other than for the function * name, so the extra structure could be flattened as long as the flattening * doesn't introduce clashes. It's probably not worth the hassle to do so. *) Datatype: label = (* Args: function name, block name which is None for the entry block, numerical index *) | Lab_name string (string option) num (* A move block that was created from a phi instruction. * Args: function name, from block label, to block label *) | Mov_name string (string option) string End Definition label_to_fname_def: (label_to_fname (Lab_name fname _ _) = fname) ∧ (label_to_fname (Mov_name fname _ _) = fname) End (* Based on the constructor functions in exp.mli rather than the type definition *) Datatype: exp = (* Args: variable name, true for globals *) | Var var bool | Nondet (* Args: function name, block name *) | Label label (* Args: byte, size *) | Splat exp exp (* Args: size, byte array *) | Memory exp exp (* Byte array concatenation *) | Concat (exp list) | Integer int typ | Eq exp exp | Lt exp exp | Ult exp exp | Sub typ exp exp | Record (exp list) (* Args: Record, index *) | Select exp exp (* Args: Record, index, value *) | Update exp exp exp (* Args: number of bits, integer expression, result type *) | Signed num exp typ (* Args: number of bits, integer expression, result type *) | Unsigned num exp typ End Datatype: inst = (* Args: the list of variable, expression assignments to do *) | Move ((var # exp) list) (* Args: result reg, pointer, length *) | Load var exp num (* Args: pointer, value, length *) | Store exp exp num (* Args: destination, contents, length *) | Memset exp exp exp (* Args: destination, source, length *) | Memcpy exp exp exp (* Args: destination, source, length *) | Memmov exp exp exp (* Args : result, number of elements, size *) | Alloc var exp exp (* Args: pointer *) | Free exp (* Args: result reg *) | NondetI var | Abort End Datatype: term = (* Args: key, branch table, default exp *) | Switch exp ((int # label) list) label (* Args: int to switch on, jump table *) | Iswitch exp (label list) (* Args: result reg, function to call, arguments, return type of callee, * return target, exception target *) | Call var string (exp list) typ label label | Return exp | Throw exp | Unreachable | Exit exp End Datatype: block = <| cmnd : inst list; term : term |> End (* The llair code doesn't have params here yet, but it will need to *) Datatype: func = <| params : var list; locals : var set; entry : label; cfg : (label, block) alist; freturn : var; fthrow : var |> End (* The int is how much space the global needs *) Datatype: global = <| var : var; init : (exp # int) option; typ: typ |> End Datatype: llair = <| glob_init : global list; functions : (string, func) alist |> End (* ----- Semantic states ----- *) (* These are the values that can be stored in registers. The implementation uses * integers with a bit-width to represent numbers and pointers. Here we * interpret the bit width b as meaning the int should be in the range [-2^(b-1),2^(b-1)) *) Datatype: flat_v = | IntV int num End Type v = ``:flat_v reg_v`` Datatype: frame = <| ret : label; exn_ret : label; ret_var : var; saved_locals : var |-> v; |> End Datatype: state = <| bp : label; (* Pointer to the next block to execute *) glob_addrs : var |-> num; locals : var |-> v; stack : frame list; heap : unit heap; status : trace_type |> End (* Assume that all pointers can fit in 64 bits *) Definition pointer_size_def: pointer_size = 64 End (* ----- Semantic transitions ----- *) (* The size of a type in bytes, rounded up *) Definition sizeof_def: (sizeof (IntegerT n) = (n+7) DIV 8) ∧ (sizeof (PointerT t) = (pointer_size+7) DIV 8) ∧ (sizeof (ArrayT t n) = n * sizeof t) ∧ (sizeof (TupleT ts) = sum (map sizeof ts)) Termination WF_REL_TAC `measure typ_size` >> simp [] >> Induct >> rw [definition "typ_size_def"] >> simp [] >> first_x_assum drule >> decide_tac End (* The size of a type in bits *) Definition sizeof_bits_def: (sizeof_bits (IntegerT n) = n) ∧ (sizeof_bits (PointerT t) = pointer_size) ∧ (sizeof_bits (ArrayT t n) = n * sizeof_bits t) ∧ (sizeof_bits (TupleT ts) = sum (map sizeof_bits ts)) Termination WF_REL_TAC `measure typ_size` >> simp [] >> Induct >> rw [definition "typ_size_def"] >> simp [] >> first_x_assum drule >> decide_tac End Definition first_class_type_def: (first_class_type (IntegerT _) ⇔ T) ∧ (first_class_type (PointerT _) ⇔ T) ∧ (first_class_type (ArrayT t _) ⇔ first_class_type t) ∧ (first_class_type (TupleT ts) ⇔ every first_class_type ts) ∧ (first_class_type _ ⇔ F) Termination WF_REL_TAC `measure typ_size` >> rw [] >> Induct_on `ts` >> rw [definition "typ_size_def"] >> res_tac >> decide_tac End Inductive value_type: (∀n i. value_type (IntegerT n) (FlatV (IntV i n))) ∧ (∀t vs n. every (value_type t) vs ∧ length vs = n ∧ first_class_type t ⇒ value_type (ArrayT t n) (AggV vs)) ∧ (∀ts vs. list_rel value_type ts vs ⇒ value_type (TupleT ts) (AggV vs)) End Definition bool2v_def: bool2v b = FlatV (IntV (if b then 1 else 0) 1) End (* The natural number, interpreted as unsigned, fits in the given number of bits *) Definition nfits_def: nfits (n:num) size ⇔ 0 < size ∧ n < 2 ** size End Definition signed2unsigned_def: signed2unsigned i size = if i < 0 then Num (2 ** size + i) else Num i End (* Convert an integer to an unsigned number, following the 2's complement * representation, assuming (ifits i size). This is what OCaml's Z.extract does, * which is used in LLAIR for Convert expressions and unsigned operations, e.g., * <. *) Definition i2n_def: i2n (IntV i size) : num = signed2unsigned i size End (* Convert an unsigned number into the integer that it would be in 2's * compliment with the given size, assuming (nfits n size) *) Definition n2i_def: n2i n size = if 2 ** (size - 1) ≤ n then (IntV (&n - &(2 ** size)) size) else (IntV (&n) size) End Inductive eval_exp: (∀s v r. flookup s.locals v = Some r ⇒ eval_exp s (Var v F) r) ∧ (∀s v r. flookup s.glob_addrs v = Some r ⇒ eval_exp s (Var v T) (FlatV (n2i r pointer_size))) ∧ (* TODO: Nondet I guess we need to know the type here *) (* TODO: Label *) (∀s e1 e2 n byte n_size. eval_exp s e1 (FlatV (IntV byte 8)) ∧ (* This idiom means that e2 evaluates to a non-negative integer n, and is * used throughout *) eval_exp s e2 (FlatV (IntV (&n) n_size)) ⇒ eval_exp s (Splat e1 e2) (AggV (replicate n (FlatV (IntV byte 8))))) ∧ (* TODO Question: What if size <> vals? *) (∀s e1 e2 l vals n_size. eval_exp s e1 (AggV vals) ∧ eval_exp s e2 (FlatV (IntV (&l) n_size)) ∧ l = length vals ⇒ eval_exp s (Memory e1 e2) (AggV vals)) ∧ (∀s es vals. list_rel (eval_exp s) es (map AggV vals) ⇒ eval_exp s (Concat es) (AggV (flat vals))) ∧ (∀s i size. eval_exp s (Integer i (IntegerT size)) (FlatV (IntV (truncate_2comp i size) size))) ∧ (* TODO Question: Should the same integer with two different sizes be equal *) (∀s e1 e2 r1 r2. eval_exp s e1 r1 ∧ eval_exp s e2 r2 ⇒ eval_exp s (Eq e1 e2) (bool2v (r1 = r2))) ∧ (∀s e1 e2 i1 size1 i2 size2. eval_exp s e1 (FlatV (IntV i1 size1)) ∧ eval_exp s e2 (FlatV (IntV i2 size2)) ∧ ifits i1 size1 ∧ ifits i2 size2 ⇒ eval_exp s (Lt e1 e2) (bool2v (i1 < i2))) ∧ (∀s e1 e2 i1 i2 size1 size2. eval_exp s e1 (FlatV (IntV i1 size1)) ∧ eval_exp s e2 (FlatV (IntV i2 size2)) ∧ ifits i1 size1 ∧ ifits i2 size2 ⇒ eval_exp s (Ult e1 e2) (bool2v (i2n (IntV i1 size1) < i2n (IntV i2 size2)))) ∧ (∀s size e1 e2 i1 i2. eval_exp s e1 (FlatV (IntV i1 size)) ∧ eval_exp s e2 (FlatV (IntV i2 size)) ⇒ eval_exp s (Sub (IntegerT size) e1 e2) (FlatV (IntV (truncate_2comp (i1 - i2) size) size))) ∧ (∀s es vals. list_rel (eval_exp s) es vals ⇒ eval_exp s (Record es) (AggV vals)) ∧ (∀s e1 e2 vals idx idx_size. eval_exp s e1 (AggV vals) ∧ eval_exp s e2 (FlatV (IntV (&idx) idx_size)) ∧ idx < length vals ⇒ eval_exp s (Select e1 e2) (el idx vals)) ∧ (∀s e1 e2 e3 vals r idx idx_size. eval_exp s e1 (AggV vals) ∧ eval_exp s e2 (FlatV (IntV (&idx) idx_size)) ∧ eval_exp s e3 r ∧ idx < length vals ⇒ eval_exp s (Update e1 e2 e3) (AggV (list_update r idx vals))) ∧ (∀s e i size to_t size1. eval_exp s e (FlatV (IntV i size1)) ∧ size < sizeof_bits to_t ⇒ eval_exp s (Unsigned size e to_t) (FlatV (IntV (&(signed2unsigned (truncate_2comp i size) size)) (sizeof_bits to_t)))) ∧ (∀s e size size1 i to_t. eval_exp s e (FlatV (IntV i size1)) ∧ size ≤ sizeof_bits to_t ⇒ eval_exp s (Signed size e to_t) (FlatV (IntV (truncate_2comp i size) (sizeof_bits to_t)))) End (* BEGIN Functions to interface to the generic memory model *) Definition type_to_shape_def: (type_to_shape (IntegerT n) = Flat (sizeof (IntegerT n)) (IntegerT n)) ∧ (type_to_shape (PointerT t) = Flat (sizeof (PointerT t)) (PointerT t)) ∧ (type_to_shape (ArrayT t n) = Array (type_to_shape t) n) ∧ (type_to_shape (TupleT ts) = Tuple (map type_to_shape ts)) Termination WF_REL_TAC `measure typ_size` >> rw [] >> Induct_on `ts` >> rw [definition "typ_size_def"] >> res_tac >> decide_tac End Definition convert_value_def: (convert_value (IntegerT size) n = if size = 1 then IntV (if n = 0 then 0 else -1) size else n2i n size) ∧ (convert_value (PointerT t) n = n2i n pointer_size) End Definition bytes_to_llair_value_def: bytes_to_llair_value t bs = (bytes_to_value (λn t w. convert_value t w) (type_to_shape t) bs) End Definition unconvert_value_def: unconvert_value (IntV i size) = ((size + 7) DIV 8, i2n (IntV i size)) End Definition llair_value_to_bytes_def: llair_value_to_bytes v = value_to_bytes unconvert_value v End (* END Functions to interface to the generic memory model *) Definition update_results_def: update_results xvs s = s with locals := s.locals |++ xvs End Inductive get_obs: (∀s ptr bytes x. flookup s.glob_addrs x = Some ptr ⇒ get_obs s ptr bytes (W x bytes)) ∧ (∀s ptr bytes. ptr ∉ FRANGE s.glob_addrs ⇒ get_obs s ptr bytes Tau) End Inductive step_inst: (∀s ves rs. list_rel (eval_exp s) (map snd ves) rs ⇒ step_inst s (Move ves) Tau (update_results (map (λ(v,r). (v, r)) (zip (map fst ves, rs))) s)) ∧ (∀s x t e size ptr freeable interval bytes. eval_exp s e (FlatV ptr) ∧ interval = Interval freeable (i2n ptr) (i2n ptr + size) ∧ is_allocated interval s.heap ∧ bytes = map snd (get_bytes s.heap interval) ⇒ step_inst s (Load (Var_name x t) e size) Tau (update_results [(Var_name x t, fst (bytes_to_llair_value t bytes))] s)) ∧ (∀s e1 e2 size ptr bytes freeable interval r obs. eval_exp s e1 (FlatV ptr) ∧ eval_exp s e2 r ∧ interval = Interval freeable (i2n ptr) (i2n ptr + size) ∧ is_allocated interval s.heap ∧ bytes = llair_value_to_bytes r ∧ length bytes = size ∧ get_obs s (i2n ptr) bytes obs ⇒ step_inst s (Store e1 e2 size) obs (s with heap := set_bytes () bytes (i2n ptr) s.heap)) ∧ (* TODO memset *) (∀s e1 e2 e3 dest_ptr src_ptr size src_interval freeable1 freeable2 bytes. eval_exp s e1 (FlatV dest_ptr) ∧ eval_exp s e2 (FlatV src_ptr) ∧ eval_exp s e3 (FlatV size) ∧ src_interval = Interval freeable1 (i2n src_ptr) (i2n src_ptr + i2n size) ∧ is_allocated src_interval s.heap ∧ is_allocated (Interval freeable2 (i2n dest_ptr) (i2n dest_ptr + i2n size)) s.heap ∧ (* TODO Question: should we allow overlap? *) bytes = map snd (get_bytes s.heap src_interval) ⇒ step_inst s (Memcpy e1 e2 e3) Tau (s with heap := set_bytes () bytes (i2n dest_ptr) s.heap)) ∧ (* TODO memmove *) (∀s v e1 e2 n size ptr new_h size_size. eval_exp s e1 (FlatV n) ∧ eval_exp s e2 (FlatV (IntV (&size) size_size)) ∧ allocate s.heap (i2n n * size) () (ptr, new_h) ∧ nfits ptr pointer_size ⇒ step_inst s (Alloc v e1 e2) Tau (update_results [(v, FlatV (n2i ptr pointer_size))] (s with heap := new_h))) ∧ (∀s e ptr. eval_exp s e (FlatV ptr) ⇒ step_inst s (Free e) Tau (s with heap := deallocate [A (i2n ptr)] s.heap)) ∧ (∀s x t nondet. value_type t nondet ⇒ step_inst s (NondetI (Var_name x t)) Tau (update_results [(Var_name x t, nondet)] s)) End Inductive step_term: (∀prog s e table default idx idx_size. eval_exp s e (FlatV (IntV idx idx_size)) ⇒ step_term prog s (Switch e table default) Tau (s with bp := (case alookup table idx of Some lab => lab | None => default))) ∧ (∀prog s e labs i idx idx_size. eval_exp s e (FlatV (IntV (&idx) idx_size)) ∧ idx < length labs ⇒ step_term prog s (Iswitch e labs) Tau (s with bp := el i labs)) ∧ (∀prog s v callee es t ret1 ret2 vals f. alookup prog.functions callee = Some f ∧ list_rel (eval_exp s) es vals ⇒ step_term prog s (Call v callee es t ret1 ret2) Tau <| bp := f.entry; glob_addrs := s.glob_addrs; locals := alist_to_fmap (zip (f.params, vals)); stack := <| ret := ret1; exn_ret := ret2; ret_var := v; saved_locals := s.locals |> :: s.stack; heap := s.heap |>) ∧ (∀prog s e r top rest. eval_exp s e r ∧ s.stack = top::rest ⇒ step_term prog s (Return e) Tau <| bp := top.ret; glob_addrs := s.glob_addrs; locals := top.saved_locals |+ (top.ret_var, r); stack := rest; heap := s.heap |>) ∧ (∀prog s e i size. eval_exp s e (FlatV (IntV i size)) ⇒ step_term prog s (Exit e) (Exit i) (s with status := Complete i)) (* TODO Throw *) End (* With function calls terminating blocks, it's very easy to get rid of the * instruction pointer and do a big-step evaluation for each block *) Inductive step_block: (∀prog s1 t l s2. step_term prog s1 t l s2 ⇒ step_block prog s1 [] t [l] s2) ∧ (∀prog s1 t. ¬(∃s2 (l:var obs). step_term prog s1 t l s2) ⇒ step_block prog s1 [] t [Error] (s1 with status := Stuck)) ∧ (∀prog s1 i1 is t. (¬∃l s2. step_inst s1 i1 l s2) ⇒ step_block prog s1 (i1::is) t [Error] (s1 with status := Stuck)) ∧ (∀prog s1 i l is ls t s2 s3. step_inst s1 i l s2 ∧ step_block prog s2 is t ls s3 ⇒ step_block prog s1 (i::is) t (l::ls) s3) End Inductive get_block: ∀prog bp f b. alookup prog.functions (label_to_fname bp) = Some f ∧ alookup f.cfg bp = Some b ⇒ get_block prog bp b End Inductive step: ∀prog s b ls s'. get_block prog s.bp b ∧ step_block prog s b.cmnd b.term ls s' ∧ s.status = Partial ⇒ step prog s ls s' End Definition sem_def: sem p s1 = { l1 | ∃path l2. l1 ∈ observation_prefixes ((last path).status, flat l2) ∧ toList (labels path) = Some l2 ∧ finite path ∧ okpath (step p) path ∧ first path = s1 } End export_theory ();
Standard ML
5
JacobBarthelmeh/infer
sledge/semantics/llairScript.sml
[ "MIT" ]
export default { compile_options: { enableSourcemap: false } };
JavaScript
1
vatro/svelte
test/sourcemaps/samples/no-sourcemap/_config.js
[ "MIT" ]
--TEST-- Test that mixed is a valid return type --FILE-- <?php function foo(): mixed { return null; } ?> --EXPECT--
PHP
4
NathanFreeman/php-src
Zend/tests/type_declarations/mixed/syntax/mixed_return_success.phpt
[ "PHP-3.01" ]
<html> <body> <!-- #include file ="headers\header.inc" --> <% For i = 0 To 5 Response.Write("The number is " & i & "<br />") Next %> <% Response.Write("Hello World!") %> <% Dim x(2,2) x(0,0)="Volvo" x(0,1)="BMW" x(0,2)="Ford" x(1,0)="Apple" x(1,1)="Orange" x(1,2)="Banana" x(2,0)="Coke" x(2,1)="Pepsi" x(2,2)="Sprite" for i=0 to 2 response.write("<p>") for j=0 to 2 response.write(x(i,j) & "<br />") next response.write("</p>") next %> </body> </html>
ASP
3
purveshpatel511/bat
tests/syntax-tests/source/ASP/test.asp
[ "Apache-2.0", "MIT" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ #include "actions_harness.uc" #include "global.uc" .sig s .reg addr .reg value .reg loop_cntr .reg expected_hdr_stack .reg expected_proto .reg in_args .reg volatile write $pkt_data_wr[20] .xfer_order $pkt_data_wr .reg pkt_vec[PV_SIZE_LW] /* IPv6 pkt with 1 Extension Header */ move($pkt_data_wr[0], 0x00163ec4) move($pkt_data_wr[1], 0x23450000) move($pkt_data_wr[2], 0x0b000200) move($pkt_data_wr[3], 0x86dd6030) move($pkt_data_wr[4], 0x00000010) move($pkt_data_wr[5], 0x2bfffe80) // Next Header is in 31:24 move($pkt_data_wr[6], 0x00000000) move($pkt_data_wr[7], 0x00000200) move($pkt_data_wr[8], 0x0bfffe00) move($pkt_data_wr[9], 0x02003555) move($pkt_data_wr[10], 0x55556666) move($pkt_data_wr[11], 0x66667777) move($pkt_data_wr[12], 0x77778888) move($pkt_data_wr[13], 0x88881100) move($pkt_data_wr[14], 0x00000000) move($pkt_data_wr[15], 0x0000003f) move($pkt_data_wr[16], 0x003f0008) move($pkt_data_wr[17], 0x9b680c79) move($pkt_data_wr[18], 0x8ce90000) move(loop_cntr, 0) .while (loop_cntr < 4) aggregate_zero(pkt_vec, PV_SIZE_LW) move(pkt_vec[0], 0x46) move(pkt_vec[2], 0x80) move(pkt_vec[3], 0x0) move(pkt_vec[4], 0x3fc0) move(pkt_vec[5], 0) move(in_args, 0x12b51c00) move(expected_hdr_stack, (14 << 24) | ((14+40+8) << 16) | (14 << 8) | (14+40+8)) move(expected_proto, 0x1) /* Loop thru these Extension Headers hop 0 dest 60 0x3c rout 43 0x2b frag 44 0x2c */ .if (loop_cntr == 0) move($pkt_data_wr[5], 0x00fffe80) /* Hop-by-Hop */ .elif (loop_cntr == 1) move($pkt_data_wr[5], 0x3cfffe80) /* Destination Options */ .elif (loop_cntr == 2) move($pkt_data_wr[5], 0x2bfffe80) /* Routing */ .elif (loop_cntr == 3) move($pkt_data_wr[5], 0x2cfffe80) /* Fragment */ move(expected_hdr_stack, ((14 << 24) | (14 << 8))) move(expected_proto, 0x5) .endif move(addr, 0x80) // nfp6000 indirect format requires 1 less alu[value, --, B, 18, <<8] alu[--, value, OR, 1, <<7] mem[write32, $pkt_data_wr[0], 0, <<8, addr, max_19], ctx_swap[s], indirect_ref pv_seek(pkt_vec, 0, (PV_SEEK_INIT | PV_SEEK_DEFAULT)) alu[--, --, B, *$index++] alu[--, --, B, *$index++] alu[--, --, B, *$index++] pv_hdr_parse(pkt_vec, in_args, check_result#) check_result#: test_assert_equal(BF_A(pkt_vec, PV_HEADER_STACK_bf), expected_hdr_stack) test_assert_equal(BF_A(pkt_vec, PV_PROTO_bf), expected_proto) alu[loop_cntr, loop_cntr, +, 1] .endw test_pass() PV_HDR_PARSE_SUBROUTINE#: pv_hdr_parse_subroutine(pkt_vec) PV_SEEK_SUBROUTINE#: pv_seek_subroutine(pkt_vec)
UnrealScript
4
pcasconnetronome/nic-firmware
test/datapath/pv_parse_ipv6_ext_hdrs_udp_x80_test.uc
[ "BSD-2-Clause" ]
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" #define PosInf 0x7FF0000000000000 #define NaN 0x7FF8000000000001 #define NegInf 0xFFF0000000000000 // func ·archMax(x, y float64) float64 TEXT ·archMax(SB),NOSPLIT,$0 // +Inf special cases MOVD $PosInf, R0 MOVD x+0(FP), R1 CMP R0, R1 BEQ isPosInf MOVD y+8(FP), R2 CMP R0, R2 BEQ isPosInf // normal case FMOVD R1, F0 FMOVD R2, F1 FMAXD F0, F1, F0 FMOVD F0, ret+16(FP) RET isPosInf: // return +Inf MOVD R0, ret+16(FP) RET // func archMin(x, y float64) float64 TEXT ·archMin(SB),NOSPLIT,$0 // -Inf special cases MOVD $NegInf, R0 MOVD x+0(FP), R1 CMP R0, R1 BEQ isNegInf MOVD y+8(FP), R2 CMP R0, R2 BEQ isNegInf // normal case FMOVD R1, F0 FMOVD R2, F1 FMIND F0, F1, F0 FMOVD F0, ret+16(FP) RET isNegInf: // return -Inf MOVD R0, ret+16(FP) RET
GAS
4
SSSDNSY/go
src/math/dim_arm64.s
[ "BSD-3-Clause" ]
Released PSS*1*139 SEQ #126 Extracted from mail message **KIDS**:PSS*1.0*139^ **INSTALL NAME** PSS*1.0*139 "BLD",7709,0) PSS*1.0*139^PHARMACY DATA MANAGEMENT^0^3080825^y "BLD",7709,1,0) ^^26^26^3080825^ "BLD",7709,1,1,0) This patch has enhancements which extend the capabilities of the Veterans "BLD",7709,1,2,0) Health Information Systems and Technology Architecture (VistA) electronic "BLD",7709,1,3,0) pharmacy (ePharmacy) billing system. "BLD",7709,1,4,0) "BLD",7709,1,5,0) All sites should install this patches regardless of whether or not they "BLD",7709,1,6,0) have been activated for ePharmacy by the Central Business Office (CBO). "BLD",7709,1,7,0) After the installation of these patches, the activation status of the "BLD",7709,1,8,0) site will not be impacted. As before, activation of the ePharmacy "BLD",7709,1,9,0) product will require instructions provided by the CBO. Sites are not to "BLD",7709,1,10,0) activate unless instructed specifically by the CBO. "BLD",7709,1,11,0) "BLD",7709,1,12,0) This patch is being released along with PSO*7*303 and IB*2*405. These "BLD",7709,1,13,0) patches can be installed in any order but the full functionality contained "BLD",7709,1,14,0) within these patches will not be available until all 3 patches are "BLD",7709,1,15,0) installed. "BLD",7709,1,16,0) "BLD",7709,1,17,0) This patch modifies the Pharmacy Data Management v1.0 application as "BLD",7709,1,18,0) described below: "BLD",7709,1,19,0) "BLD",7709,1,20,0) 1. A new Drug Enforcement Administration (DEA) Special Handling code, N "BLD",7709,1,21,0) for Nutritional Supplement, was added as a selection to the DEA SPECIAL "BLD",7709,1,22,0) HDLG prompt for DRUG ENTER/EDIT [PSS DRUG ENTER/EDIT] option. Once "BLD",7709,1,23,0) Outpatient Pharmacy patch PSO*7*303 and Integrated Billing patch IB*2*405 "BLD",7709,1,24,0) is installed, any drug defined with this new code will be treated in the "BLD",7709,1,25,0) same manner as supply items and investigational drugs. The N DEA Special "BLD",7709,1,26,0) Handling code must be defined manually. "BLD",7709,4,0) ^9.64PA^^ "BLD",7709,6) 1^ "BLD",7709,6.3) 6 "BLD",7709,"KRN",0) ^9.67PA^8989.52^19 "BLD",7709,"KRN",.4,0) .4 "BLD",7709,"KRN",.401,0) .401 "BLD",7709,"KRN",.402,0) .402 "BLD",7709,"KRN",.403,0) .403 "BLD",7709,"KRN",.5,0) .5 "BLD",7709,"KRN",.84,0) .84 "BLD",7709,"KRN",3.6,0) 3.6 "BLD",7709,"KRN",3.8,0) 3.8 "BLD",7709,"KRN",9.2,0) 9.2 "BLD",7709,"KRN",9.8,0) 9.8 "BLD",7709,"KRN",9.8,"NM",0) ^9.68A^1^1 "BLD",7709,"KRN",9.8,"NM",1,0) PSSDDUT2^^0^B81884236 "BLD",7709,"KRN",9.8,"NM","B","PSSDDUT2",1) "BLD",7709,"KRN",19,0) 19 "BLD",7709,"KRN",19.1,0) 19.1 "BLD",7709,"KRN",101,0) 101 "BLD",7709,"KRN",409.61,0) 409.61 "BLD",7709,"KRN",771,0) 771 "BLD",7709,"KRN",870,0) 870 "BLD",7709,"KRN",8989.51,0) 8989.51 "BLD",7709,"KRN",8989.52,0) 8989.52 "BLD",7709,"KRN",8994,0) 8994 "BLD",7709,"KRN","B",.4,.4) "BLD",7709,"KRN","B",.401,.401) "BLD",7709,"KRN","B",.402,.402) "BLD",7709,"KRN","B",.403,.403) "BLD",7709,"KRN","B",.5,.5) "BLD",7709,"KRN","B",.84,.84) "BLD",7709,"KRN","B",3.6,3.6) "BLD",7709,"KRN","B",3.8,3.8) "BLD",7709,"KRN","B",9.2,9.2) "BLD",7709,"KRN","B",9.8,9.8) "BLD",7709,"KRN","B",19,19) "BLD",7709,"KRN","B",19.1,19.1) "BLD",7709,"KRN","B",101,101) "BLD",7709,"KRN","B",409.61,409.61) "BLD",7709,"KRN","B",771,771) "BLD",7709,"KRN","B",870,870) "BLD",7709,"KRN","B",8989.51,8989.51) "BLD",7709,"KRN","B",8989.52,8989.52) "BLD",7709,"KRN","B",8994,8994) "BLD",7709,"QDEF") ^^^^NO^^^^NO^^NO "BLD",7709,"QUES",0) ^9.62^^ "BLD",7709,"REQB",0) ^9.611^1^1 "BLD",7709,"REQB",1,0) PSS*1.0*126^2 "BLD",7709,"REQB","B","PSS*1.0*126",1) "MBREQ") 0 "PKG",488,-1) 1^1 "PKG",488,0) PHARMACY DATA MANAGEMENT^PSS^Maintenance of Pharmacy files. "PKG",488,20,0) ^9.402P^^ "PKG",488,22,0) ^9.49I^1^1 "PKG",488,22,1,0) 1.0^2970930^3000316^66481 "PKG",488,22,1,"PAH",1,0) 139^3080825^123457114 "PKG",488,22,1,"PAH",1,1,0) ^^26^26^3080825 "PKG",488,22,1,"PAH",1,1,1,0) This patch has enhancements which extend the capabilities of the Veterans "PKG",488,22,1,"PAH",1,1,2,0) Health Information Systems and Technology Architecture (VistA) electronic "PKG",488,22,1,"PAH",1,1,3,0) pharmacy (ePharmacy) billing system. "PKG",488,22,1,"PAH",1,1,4,0) "PKG",488,22,1,"PAH",1,1,5,0) All sites should install this patches regardless of whether or not they "PKG",488,22,1,"PAH",1,1,6,0) have been activated for ePharmacy by the Central Business Office (CBO). "PKG",488,22,1,"PAH",1,1,7,0) After the installation of these patches, the activation status of the "PKG",488,22,1,"PAH",1,1,8,0) site will not be impacted. As before, activation of the ePharmacy "PKG",488,22,1,"PAH",1,1,9,0) product will require instructions provided by the CBO. Sites are not to "PKG",488,22,1,"PAH",1,1,10,0) activate unless instructed specifically by the CBO. "PKG",488,22,1,"PAH",1,1,11,0) "PKG",488,22,1,"PAH",1,1,12,0) This patch is being released along with PSO*7*303 and IB*2*405. These "PKG",488,22,1,"PAH",1,1,13,0) patches can be installed in any order but the full functionality contained "PKG",488,22,1,"PAH",1,1,14,0) within these patches will not be available until all 3 patches are "PKG",488,22,1,"PAH",1,1,15,0) installed. "PKG",488,22,1,"PAH",1,1,16,0) "PKG",488,22,1,"PAH",1,1,17,0) This patch modifies the Pharmacy Data Management v1.0 application as "PKG",488,22,1,"PAH",1,1,18,0) described below: "PKG",488,22,1,"PAH",1,1,19,0) "PKG",488,22,1,"PAH",1,1,20,0) 1. A new Drug Enforcement Administration (DEA) Special Handling code, N "PKG",488,22,1,"PAH",1,1,21,0) for Nutritional Supplement, was added as a selection to the DEA SPECIAL "PKG",488,22,1,"PAH",1,1,22,0) HDLG prompt for DRUG ENTER/EDIT [PSS DRUG ENTER/EDIT] option. Once "PKG",488,22,1,"PAH",1,1,23,0) Outpatient Pharmacy patch PSO*7*303 and Integrated Billing patch IB*2*405 "PKG",488,22,1,"PAH",1,1,24,0) is installed, any drug defined with this new code will be treated in the "PKG",488,22,1,"PAH",1,1,25,0) same manner as supply items and investigational drugs. The N DEA Special "PKG",488,22,1,"PAH",1,1,26,0) Handling code must be defined manually. "QUES","XPF1",0) Y "QUES","XPF1","??") ^D REP^XPDH "QUES","XPF1","A") Shall I write over your |FLAG| File "QUES","XPF1","B") YES "QUES","XPF1","M") D XPF1^XPDIQ "QUES","XPF2",0) Y "QUES","XPF2","??") ^D DTA^XPDH "QUES","XPF2","A") Want my data |FLAG| yours "QUES","XPF2","B") YES "QUES","XPF2","M") D XPF2^XPDIQ "QUES","XPI1",0) YO "QUES","XPI1","??") ^D INHIBIT^XPDH "QUES","XPI1","A") Want KIDS to INHIBIT LOGONs during the install "QUES","XPI1","B") NO "QUES","XPI1","M") D XPI1^XPDIQ "QUES","XPM1",0) PO^VA(200,:EM "QUES","XPM1","??") ^D MG^XPDH "QUES","XPM1","A") Enter the Coordinator for Mail Group '|FLAG|' "QUES","XPM1","B") "QUES","XPM1","M") D XPM1^XPDIQ "QUES","XPO1",0) Y "QUES","XPO1","??") ^D MENU^XPDH "QUES","XPO1","A") Want KIDS to Rebuild Menu Trees Upon Completion of Install "QUES","XPO1","B") NO "QUES","XPO1","M") D XPO1^XPDIQ "QUES","XPZ1",0) Y "QUES","XPZ1","??") ^D OPT^XPDH "QUES","XPZ1","A") Want to DISABLE Scheduled Options, Menu Options, and Protocols "QUES","XPZ1","B") NO "QUES","XPZ1","M") D XPZ1^XPDIQ "QUES","XPZ2",0) Y "QUES","XPZ2","??") ^D RTN^XPDH "QUES","XPZ2","A") Want to MOVE routines to other CPUs "QUES","XPZ2","B") NO "QUES","XPZ2","M") D XPZ2^XPDIQ "RTN") 1 "RTN","PSSDDUT2") 0^1^B81884236^B81292420 "RTN","PSSDDUT2",1,0) PSSDDUT2 ;BIR/LDT - Pharmacy Data Management DD Utility ; 8/21/07 8:43am "RTN","PSSDDUT2",2,0) ;;1.0; PHARMACY DATA MANAGEMENT; **3,21,61,81,95,127,126,139**;9/30/97;Build 6 "RTN","PSSDDUT2",3,0) ; "RTN","PSSDDUT2",4,0) ;Reference to ^DIC(42 supported by DBIA #10039 "RTN","PSSDDUT2",5,0) ;Reference to ^DD(59.723 supported by DBIA #2159 "RTN","PSSDDUT2",6,0) ;Reference to ^PSNDF(50.68 supported by DBIA 3735 "RTN","PSSDDUT2",7,0) ; "RTN","PSSDDUT2",8,0) DEA ;(Replaces ^PSODEA) "RTN","PSSDDUT2",9,0) S PSSHLP(1)="THE SPECIAL HANDLING CODE IS A 2 TO 6 POSTION FIELD. IF APPLICABLE," "RTN","PSSDDUT2",10,0) S PSSHLP(2)="A SCHEDULE CODE MUST APPEAR IN THE FIRST POSITION. FOR EXAMPLE," "RTN","PSSDDUT2",11,0) S PSSHLP(3)="A SCHEDULE 3 NARCOTIC WILL BE CODED '3A', A SCHEDULE 3 NON-NARCOTIC WILL BE" "RTN","PSSDDUT2",12,0) S PSSHLP(4)="CODED '3C' AND A SCHEDULE 2 DEPRESSANT WILL BE CODED '2L'." "RTN","PSSDDUT2",13,0) S PSSHLP(5)="THE CODES ARE:" "RTN","PSSDDUT2",14,0) D WRITE "RTN","PSSDDUT2",15,0) F II=1:1 Q:$P($T(D+II),";",3)="" S PSSHLP(II)=$P($T(D+II),";",3,99) "RTN","PSSDDUT2",16,0) S PSSHLP(1,"F")="!!" D WRITE "RTN","PSSDDUT2",17,0) D PKIND,WRITE "RTN","PSSDDUT2",18,0) D K II Q "RTN","PSSDDUT2",19,0) ;;0 MANUFACTURED IN PHARMACY "RTN","PSSDDUT2",20,0) ;;1 SCHEDULE 1 ITEM "RTN","PSSDDUT2",21,0) ;;2 SCHEDULE 2 ITEM "RTN","PSSDDUT2",22,0) ;;3 SCHEDULE 3 ITEM "RTN","PSSDDUT2",23,0) ;;4 SCHEDULE 4 ITEM "RTN","PSSDDUT2",24,0) ;;5 SCHEDULE 5 ITEM "RTN","PSSDDUT2",25,0) ;;6 LEGEND ITEM "RTN","PSSDDUT2",26,0) ;;9 OVER-THE-COUNTER "RTN","PSSDDUT2",27,0) ;;L DEPRESSANTS AND STIMULANTS "RTN","PSSDDUT2",28,0) ;;A NARCOTICS AND ALCOHOLS "RTN","PSSDDUT2",29,0) ;;P DATED DRUGS "RTN","PSSDDUT2",30,0) ;;I INVESTIGATIONAL DRUGS "RTN","PSSDDUT2",31,0) ;;M BULK COMPOUND ITEMS "RTN","PSSDDUT2",32,0) ;;C CONTROLLED SUBSTANCES - NON NARCOTIC "RTN","PSSDDUT2",33,0) ;;R RESTRICTED ITEMS "RTN","PSSDDUT2",34,0) ;;S SUPPLY ITEMS "RTN","PSSDDUT2",35,0) ;;B ALLOW REFILL (SCH. 3, 4, 5 ONLY) "RTN","PSSDDUT2",36,0) ;;W NOT RENEWABLE "RTN","PSSDDUT2",37,0) ;;F NON REFILLABLE "RTN","PSSDDUT2",38,0) ;;E ELECTRONICALLY BILLABLE "RTN","PSSDDUT2",39,0) ;;N NUTRITIONAL SUPPLEMENT "RTN","PSSDDUT2",40,0) ;; "RTN","PSSDDUT2",41,0) DEATBL ; More Help regarding DEA Codes "RTN","PSSDDUT2",42,0) K PSSHLP "RTN","PSSDDUT2",43,0) F II=1:1 Q:$P($T(TBL+II),";",3)="" S PSSHLP(II)=$P($T(TBL+II),";",3,99) "RTN","PSSDDUT2",44,0) S PSSHLP(1,"F")="!!" D WRITE "RTN","PSSDDUT2",45,0) ; "RTN","PSSDDUT2",46,0) TBL K II Q "RTN","PSSDDUT2",47,0) ;; DEA CODE TABLE "RTN","PSSDDUT2",48,0) ;; CODE ALLOW RENEWS ALLOW REFILLS "RTN","PSSDDUT2",49,0) ;; 1 NO NO "RTN","PSSDDUT2",50,0) ;; 2 NO NO "RTN","PSSDDUT2",51,0) ;; 2A NO NO "RTN","PSSDDUT2",52,0) ;; 3 YES YES "RTN","PSSDDUT2",53,0) ;; 3A YES NO "RTN","PSSDDUT2",54,0) ;; 3AB YES YES "RTN","PSSDDUT2",55,0) ;; 4 YES YES "RTN","PSSDDUT2",56,0) ;; 4A YES NO "RTN","PSSDDUT2",57,0) ;; 4AB YES YES "RTN","PSSDDUT2",58,0) ;; 5 YES YES "RTN","PSSDDUT2",59,0) ;; 5A YES NO "RTN","PSSDDUT2",60,0) ;; 5AB YES YES "RTN","PSSDDUT2",61,0) ;; ADDING W TO A SCHED. 3,4,OR 5 CODE DISALLOWS RENEWS. "RTN","PSSDDUT2",62,0) ;; ADDING F TO A SCHED. 3,4,OR 5 CODE DISALLOWS REFILLS "RTN","PSSDDUT2",63,0) ;; IF A CODE IS NOT LISTED IN THE ABOVE TABLE "RTN","PSSDDUT2",64,0) ;; IT HAS NO EFFECT ON RENEW OR REFILL "RTN","PSSDDUT2",65,0) SIG ;checks SIG for RXs (Replaces SIG^PSOHELP) "RTN","PSSDDUT2",66,0) I $E(X)=" " D EN^DDIOL("Leading spaces are not allowed in the SIG! ","","$C(7),!") K X Q "RTN","PSSDDUT2",67,0) SIGONE S SIG="" Q:$L(X)<1 F Z0=1:1:$L(X," ") G:Z0="" EN S Z1=$P(X," ",Z0) D G:'$D(X) EN "RTN","PSSDDUT2",68,0) .I $L(Z1)>32 D EN^DDIOL("MAX OF 32 CHARACTERS ALLOWED BETWEEN SPACES.","","$C(7),!?5") K X Q "RTN","PSSDDUT2",69,0) .D:$D(X)&($G(Z1)]"") S SIG=SIG_" "_Z1 "RTN","PSSDDUT2",70,0) ..S Y=$O(^PS(51,"B",Z1,0)) Q:'Y!($P($G(^PS(51,+Y,0)),"^",4)>1) S Z1=$P(^PS(51,Y,0),"^",2) Q:'$D(^(9)) S Y=$P(X," ",Z0-1),Y=$E(Y,$L(Y)) S:Y>1 Z1=^(9) "RTN","PSSDDUT2",71,0) EN K Z1,Z0 ;S:$G(POERR) PSOERR("SIG")="("_$E(SIG,2,999999999)_")" "RTN","PSSDDUT2",72,0) Q "RTN","PSSDDUT2",73,0) ; "RTN","PSSDDUT2",74,0) DRUGW ;(Replaces DRUGW^PSOUTLA) "RTN","PSSDDUT2",75,0) F Z0=1:1 Q:$P(X,",",Z0,99)="" S Z1=$P(X,",",Z0) D:$D(^PS(54,Z1,0)) EN^DDIOL($P(^(0),"^"),"","!,?35") I '$D(^(0)) D EN^DDIOL("NO SUCH WARNING LABEL","","?35") K X Q "RTN","PSSDDUT2",76,0) Q "RTN","PSSDDUT2",77,0) ; "RTN","PSSDDUT2",78,0) P ;(Replaces ^PSODSRC) "RTN","PSSDDUT2",79,0) S PSSHLP(1)="A TWO OR THREE POSITION CODE IDENTIFIES THE SOURCE OF SUPPLY AND WHETHER" "RTN","PSSDDUT2",80,0) S PSSHLP(2)="THE DRUG IS STOCKED BY THE STATION SUPPLY DIVISION. THE FIRST" "RTN","PSSDDUT2",81,0) S PSSHLP(3)="POSITION OF THE CODE IDENTIFIES SOURCE OF SUPPLY. THE CODES ARE:" "RTN","PSSDDUT2",82,0) D WRITE "RTN","PSSDDUT2",83,0) F II=0:1:10 S PSSHLP(II+1)=$P($T(S+II+1),";",3),PSSHLP(II+1,"F")="!?10" "RTN","PSSDDUT2",84,0) S PSSHLP(1,"F")="!!?10" "RTN","PSSDDUT2",85,0) D WRITE "RTN","PSSDDUT2",86,0) S PSSHLP(1)="THE SECOND POSITION OF THE CODE INDICATES WHETHER THE ITEM IS" "RTN","PSSDDUT2",87,0) S PSSHLP(2)="OR IS NOT AVAILABLE FROM SUPPLY WAREHOUSE STOCK. THE CODES ARE:" "RTN","PSSDDUT2",88,0) S PSSHLP(3)="P POSTED STOCK" "RTN","PSSDDUT2",89,0) S PSSHLP(3,"F")="!!?10" "RTN","PSSDDUT2",90,0) S PSSHLP(4)="U UNPOSTED" "RTN","PSSDDUT2",91,0) S PSSHLP(4,"F")="!?10" "RTN","PSSDDUT2",92,0) S PSSHLP(5)="M BULK COMPOUND" "RTN","PSSDDUT2",93,0) S PSSHLP(5,"F")="!?10" "RTN","PSSDDUT2",94,0) S PSSHLP(6)="* USE CODE 0 ONLY WITH SECOND POSITION M." "RTN","PSSDDUT2",95,0) D WRITE Q "RTN","PSSDDUT2",96,0) ; "RTN","PSSDDUT2",97,0) S ;;DESCRIPTION MEANINGS "RTN","PSSDDUT2",98,0) ;;0 BULK COMPOUND ITEMS * "RTN","PSSDDUT2",99,0) ;;1 VA SERVICING SUPPLY DEPOT "RTN","PSSDDUT2",100,0) ;;2 OPEN MARKET "RTN","PSSDDUT2",101,0) ;;3 GSA STORES DEPOT "RTN","PSSDDUT2",102,0) ;;4 VA DECENTRALIZED CONTRACTS "RTN","PSSDDUT2",103,0) ;;5 FEDERAL PRISON INDUSTRIES, INC. "RTN","PSSDDUT2",104,0) ;;6 FEDERAL SUPPLY SCHEDULES "RTN","PSSDDUT2",105,0) ;;7 VA SUPPLY DEPOT, HINES "RTN","PSSDDUT2",106,0) ;;8 VA SUPPLY DEPOT, SOMERVILLE "RTN","PSSDDUT2",107,0) ;;9 APPROPRIATE MARKETING DIVISION "RTN","PSSDDUT2",108,0) ;;10 VA SUPPLY DEPOT, BELL "RTN","PSSDDUT2",109,0) EDIT ;INPUT XFORM FOR DEA FIELD IN DRUG FILE (Replaces EDIT^PSODEA) "RTN","PSSDDUT2",110,0) I X["F",X["B" D EN^DDIOL("Inappropriate F designation!","","$C(7),!") K X Q "RTN","PSSDDUT2",111,0) ;;DEA CHANGE PSS*1*126 "RTN","PSSDDUT2",112,0) I X["B",(+X<3) D EN^DDIOL("The B designation is only valid for schedule 3, 4, 5 !","","$C(7),!") K X Q "RTN","PSSDDUT2",113,0) I X["A"&(X["C"),+X=2!(+X=3) D EN^DDIOL("The A & C designation is not valid for schedule 2 or 3 narcotics !","","$C(7),!") K X Q "RTN","PSSDDUT2",114,0) I $E(X)=1,X[2!(X[3)!(X[4)!(X[5) D EN^DDIOL("It contains other inappropriate schedule 2-5 narcotics!","","$C(7),!") K X Q "RTN","PSSDDUT2",115,0) I $E(X)=2,X[1!(X[3)!(X[4)!(X[5) D EN^DDIOL("It contains other inappropriate schedule 1,3-5 narcotics!","","$C(7),!") K X Q "RTN","PSSDDUT2",116,0) I $E(X)=3,X[1!(X[2)!(X[4)!(X[5) D EN^DDIOL("It contains other inappropriate schedule 1-2,4-5 narcotics!","","$C(7),!") K X Q "RTN","PSSDDUT2",117,0) I $E(X)=4,X[1!(X[2)!(X[3)!(X[5) D EN^DDIOL("It contains other inappropriate schedule 1-3,5 narcotics!","","$C(7),!") K X Q "RTN","PSSDDUT2",118,0) I $E(X)=5,X[1!(X[2)!(X[3)!(X[4) D EN^DDIOL("It contains other inappropriate schedule 1-4 narcotics!","","$C(7),!") K X Q "RTN","PSSDDUT2",119,0) I $E(X)="E" D EN^DDIOL("Inappropriate E designation! Can only modify other codes.","","$C(7),!") K X Q "RTN","PSSDDUT2",120,0) Q "RTN","PSSDDUT2",121,0) ; "RTN","PSSDDUT2",122,0) WRITE ;Calls EN^DDIOL to write text "RTN","PSSDDUT2",123,0) D EN^DDIOL(.PSSHLP) K PSSHLP Q "RTN","PSSDDUT2",124,0) Q "RTN","PSSDDUT2",125,0) ; "RTN","PSSDDUT2",126,0) PKIND I +$P($G(^PSDRUG(DA,"ND")),"^",3) S PSSK=$P(^("ND"),"^",3) D "RTN","PSSDDUT2",127,0) .S PSSK=$$GET1^DIQ(50.68,PSSK,19,"I") I PSSK S PSSK=$$CSDEA^PSSDDUT2(PSSK) D "RTN","PSSDDUT2",128,0) ..I $L(PSSK)=1,$P(^PSDRUG(DA,0),"^",3)[PSSK Q "RTN","PSSDDUT2",129,0) ..I $P(^PSDRUG(DA,0),"^",3)[$E(PSSK),$P(^PSDRUG(DA,0),"^",3)[$E(PSSK,2) Q "RTN","PSSDDUT2",130,0) ..W !!,"The CS Federal Schedule associated with this drug in the VA Product file" "RTN","PSSDDUT2",131,0) ..W !,"represents a DEA, Special Handling code of "_PSSK "RTN","PSSDDUT2",132,0) Q "RTN","PSSDDUT2",133,0) ; "RTN","PSSDDUT2",134,0) CSDEA(CS) ; "RTN","PSSDDUT2",135,0) Q:'CS "" "RTN","PSSDDUT2",136,0) Q $S(CS?1(1"2n",1"3n"):+CS_"C",+CS=2!(+CS=3)&(CS'["C"):+CS_"A",1:CS) "RTN","PSSDDUT2",137,0) ; "RTN","PSSDDUT2",138,0) CLOZ ;DEL node of DRUG file 50, fields 17.2, 17.3, 17.4 "RTN","PSSDDUT2",139,0) S PSSHLP(1)="To delete this field use the Unmark Clozapine Drug option in the" "RTN","PSSDDUT2",140,0) S PSSHLP(2)="Clozapine Pharmacy Manager menu." "RTN","PSSDDUT2",141,0) D WRITE "RTN","PSSDDUT2",142,0) Q "RTN","PSSDDUT2",143,0) ; "RTN","PSSDDUT2",144,0) NONF ;Non-Formulary Input Transform DRUG file 50, field 51 "RTN","PSSDDUT2",145,0) S PSSHLP(1)="This drug cannot be marked as a non-formulary item because it is" "RTN","PSSDDUT2",146,0) S PSSHLP(2)="designated as a formulary alternative for the following drugs." "RTN","PSSDDUT2",147,0) S PSSHLP(3)=" ",PSSHLP(1,"F")="!!" "RTN","PSSDDUT2",148,0) D WRITE "RTN","PSSDDUT2",149,0) F MM=0:0 S MM=$O(^PSDRUG("AFA",DA,MM)) Q:'MM S SHEMP=$P(^PSDRUG(MM,0),"^") D EN^DDIOL(SHEMP,"","!?3") "RTN","PSSDDUT2",150,0) S X="" "RTN","PSSDDUT2",151,0) Q "RTN","PSSDDUT2",152,0) ; "RTN","PSSDDUT2",153,0) ATC ;Executable help for field 212.2, DRUG file 50 "RTN","PSSDDUT2",154,0) S PSSHLP(1)="The mnemonic entered here must match the mnemonic entered into the" "RTN","PSSDDUT2",155,0) S PSSHLP(2)="ATC for this drug EXACTLY, and cannot be numbers only." "RTN","PSSDDUT2",156,0) D WRITE "RTN","PSSDDUT2",157,0) Q "RTN","PSSDDUT2",158,0) ; "RTN","PSSDDUT2",159,0) ADTM ;ADMINISTRATION SCHEDULE file 51.1, field 1 Executable Help "RTN","PSSDDUT2",160,0) S PSSHLP(1)="ALL TIMES MUST BE THE SAME LENGTH (2 OR 4 CHARACTERS), MUST BE" "RTN","PSSDDUT2",161,0) S PSSHLP(2)="SEPARATED BY DASHES ('-'), AND BE IN ASCENDING ORDER" "RTN","PSSDDUT2",162,0) D WRITE "RTN","PSSDDUT2",163,0) Q "RTN","PSSDDUT2",164,0) ; "RTN","PSSDDUT2",165,0) LBLS ;PHARMACY SYSTEM file 59.7, field 61.2 Executable Help "RTN","PSSDDUT2",166,0) S PSSHLP(1)="ANY NEW LABELS OLDER THAN THE NUMBER OF DAYS SPECIFIED HERE WILL" "RTN","PSSDDUT2",167,0) S PSSHLP(2)="AUTOMATICALLY BE PURGED." "RTN","PSSDDUT2",168,0) D WRITE "RTN","PSSDDUT2",169,0) Q "RTN","PSSDDUT2",170,0) NFH I '$D(DA(1)) D EN^DDIOL(" (This non-formulary item is "_$P(^PSDRUG($S($D(DA(1)):DA(1),1:DA),0),"^")_".)") "RTN","PSSDDUT2",171,0) Q "RTN","PSSDDUT2",172,0) STRTH S STR=" "_$P(X," ",2),PSSHLP(1)=STR,PSSHLP(1,"F")="" D WRITE K STR "RTN","PSSDDUT2",173,0) Q "RTN","PSSDDUT2",174,0) PSYS1 D EN^DDIOL("(""From"" ward is "_$S('$D(^PS(59.7,D0,22,D1,0)):"UNKNOWN",'$D(^DIC(42,+^(0),0)):"UNKNOWN",$P(^(0),"^")]"":$P(^(0),"^"),1:"UNKNOWN")_")","","!?3") "RTN","PSSDDUT2",175,0) Q "RTN","PSSDDUT2",176,0) PSYS2 ;PSS*1.0*95 "RTN","PSSDDUT2",177,0) D EN^DDIOL("(""From"" service is "_$S('$D(^PS(59.7,D0,23,D1,0)):"UNKNOWN",$P(^(0),"^")]"":$P($P(";"_$P(^DD(59.723,.01,0),"^",3),";"_$P(^PS(59.7,D0,23,D1,0),"^")_":",2),";"),1:"UNKNOWN")_")") "RTN","PSSDDUT2",178,0) Q "RTN","PSSDDUT2",179,0) ; "RTN","PSSDDUT2",180,0) NCINIT ; "RTN","PSSDDUT2",181,0) K PSSNQM,PSSNQM2,PSSNQM3,PSSONDU,PSSONQM "RTN","PSSDDUT2",182,0) NCINIT1 ; "RTN","PSSDDUT2",183,0) I $P($G(^PSDRUG(DA,"EPH")),"^",2)="" S $P(^PSDRUG(DA,"EPH"),"^",2)="EA",$P(^PSDRUG(DA,"EPH"),"^",3)=1 D "RTN","PSSDDUT2",184,0) . S PSSHLP(1)=" Note: Defaulting the NCPDP DISPENSE UNIT to EACH and the" "RTN","PSSDDUT2",185,0) . S PSSHLP(2)=" NCPDP QUANTITY MULTIPLIER to 1 (one)." S PSSHLP(1,"F")="!!" "RTN","PSSDDUT2",186,0) . D WRITE S PSSHLP(2,"F")="!" D WRITE "RTN","PSSDDUT2",187,0) S PSSONDU=$P(^PSDRUG(DA,"EPH"),"^",2),PSSONQM=$P(^PSDRUG(DA,"EPH"),"^",3) "RTN","PSSDDUT2",188,0) Q "RTN","PSSDDUT2",189,0) ; "RTN","PSSDDUT2",190,0) NCPDPDU ;Drug file 50, field 82 "RTN","PSSDDUT2",191,0) S:X="" X="EA" "RTN","PSSDDUT2",192,0) D NCINIT1:'$D(PSSONDU) "RTN","PSSDDUT2",193,0) I $G(PSSONDU)'=X&($G(PSSONQM)'=1) D "RTN","PSSDDUT2",194,0) . S PSSHLP(1)="Defaulting the NCPDP QUANTITY MULTIPLIER to 1 (one)." S PSSHLP(1,"F")="!!" D WRITE "RTN","PSSDDUT2",195,0) . S $P(^PSDRUG(DA,"EPH"),"^",3)=1,PSSONDU=$P(^PSDRUG(DA,"EPH"),"^",2),PSSONQM=$P(^PSDRUG(DA,"EPH"),"^",3) "RTN","PSSDDUT2",196,0) Q "RTN","PSSDDUT2",197,0) ; "RTN","PSSDDUT2",198,0) NCPDPQM ;Drug file 50, field 83 "RTN","PSSDDUT2",199,0) N ZXX S PSSNQM=0,(PSSNQM2,PSSNQM3)="" "RTN","PSSDDUT2",200,0) I $G(X)<.001 K X S PSSNQM3=1 Q "RTN","PSSDDUT2",201,0) S:$G(X)="" X=1 "RTN","PSSDDUT2",202,0) I +$G(X)'=1 D NCPDPWRN D "RTN","PSSDDUT2",203,0) NCPDPQM1 . ; "RTN","PSSDDUT2",204,0) . R !,"Ok to continue? (Y/N) ",ZXX:30 S ZXX=$TR(ZXX,"yn","YN") "RTN","PSSDDUT2",205,0) . I ZXX="^" S X=1 W !!?5,"Warning: Defaulting NCPDP QUANTITY MULTIPLIER to 1 (one).",!! Q "RTN","PSSDDUT2",206,0) . I ZXX'="Y"&(ZXX'="N") W !,"Y or N must be entered." G NCPDPQM1 "RTN","PSSDDUT2",207,0) . I ZXX'="Y"&(ZXX'="y") S PSSNQM=1,PSSNQM2=X K X "RTN","PSSDDUT2",208,0) Q "RTN","PSSDDUT2",209,0) ; "RTN","PSSDDUT2",210,0) NCPDPWRN ; "RTN","PSSDDUT2",211,0) S PSSHLP(2)="WARNING: For most drug products, the value for this field should be 1 (one)." "RTN","PSSDDUT2",212,0) S PSSHLP(3)=" Answering NO for the following prompt will display more information" "RTN","PSSDDUT2",213,0) S PSSHLP(4)=" on how this field is used." "RTN","PSSDDUT2",214,0) S PSSHLP(2,"F")="!!" D WRITE "RTN","PSSDDUT2",215,0) S PSSHLP(5,"F")="!" D WRITE "RTN","PSSDDUT2",216,0) Q "RTN","PSSDDUT2",217,0) ; "VER") 8.0^22.0 "BLD",7709,6) ^126 **END** **END**
Genshi
3
smola/language-dataset
data/github.com/OSEHRA/FOIA_Mirror/1bcf94ce6d6ae5bcf71aab9eaf8ecf05d42340cd/Packages/Pharmacy Data Management/Patches/PSS_1.0_139/pss-1_seq-126_pat-139.kid
[ "MIT" ]
msgid "" msgstr "" "Project-Id-Version: view_tests\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-15 19:15+0200\n" "PO-Revision-Date: 2010-05-12 12:41-0300\n" "Last-Translator: Unknown\n" "Language: pt\n" "Language-Team: Portuguese <pt@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" msgid "{count} plural2" msgid_plural "{count} plural2s" msgstr[0] "{count} plural2" msgstr[1] "{count} plural2s" msgid "{count} plural3" msgid_plural "{count} plural3s" msgstr[0] "{count} plural3" msgstr[1] "{count} plural3s"
Gettext Catalog
3
jpmallarino/django
tests/view_tests/locale/pt/LC_MESSAGES/djangojs.po
[ "BSD-3-Clause", "0BSD" ]
"<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 14"> <link id=Main-File rel=Main-File href="file://localhost/Users/bengotow/Library/Caches/TemporaryItems/msoclip/0/clip.htm"> <link rel=File-List href="file://localhost/Users/bengotow/Library/Caches/TemporaryItems/msoclip/0/clip_filelist.xml"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} x\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;} .font5 {color:black; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Geneva; mso-generic-font-family:auto; mso-font-charset:0;} .font6 {color:black; font-size:10.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:Geneva; mso-generic-font-family:auto; mso-font-charset:0;} td {padding:0px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl63 {vertical-align:middle;} .xl64 {font-size:24.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle;} .xl65 {border-top:none; border-right:none; border-bottom:none; border-left:1.0pt solid windowtext;} .xl66 {border-top:none; border-right:1.0pt solid windowtext; border-bottom:none; border-left:none;} .xl67 {font-size:22.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle;} .xl68 {font-size:36.0pt; font-weight:700; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle;} .xl69 {font-size:14.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; vertical-align:middle;} .xl70 {font-size:14.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; vertical-align:middle; border-top:none; border-right:1.0pt solid windowtext; border-bottom:none; border-left:none;} .xl71 {font-size:14.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:left; vertical-align:middle; border-top:none; border-right:none; border-bottom:none; border-left:1.0pt solid windowtext;} .xl72 {font-size:14.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; vertical-align:middle; border-top:none; border-right:none; border-bottom:none; border-left:1.0pt solid windowtext;} .xl73 {font-size:26.0pt; font-style:italic; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle; border-top:1.0pt solid windowtext; border-right:none; border-bottom:none; border-left:1.0pt solid windowtext;} .xl74 {font-size:26.0pt; font-style:italic; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle; border-top:1.0pt solid windowtext; border-right:1.0pt solid windowtext; border-bottom:none; border-left:none;} --> </style> </head> <body link=blue vlink=purple> <table border=0 cellpadding=0 cellspacing=0 width=471 style='border-collapse: collapse;width:471pt'> <!--StartFragment--> <col width=110 style='mso-width-source:userset;mso-width-alt:4693;width:110pt'> <col width=80 style='mso-width-source:userset;mso-width-alt:3413;width:80pt'> <col width=12 style='mso-width-source:userset;mso-width-alt:512;width:12pt'> <col width=67 style='mso-width-source:userset;mso-width-alt:2858;width:67pt'> <col width=12 style='mso-width-source:userset;mso-width-alt:512;width:12pt'> <col width=110 style='mso-width-source:userset;mso-width-alt:4693;width:110pt'> <col width=80 style='mso-width-source:userset;mso-width-alt:3413;width:80pt'> <tr height=33 style='height:33.0pt'> <td colspan=2 height=33 class=xl73 width=190 style='border-right:1.0pt solid black; height:33.0pt;width:190pt'>+ Pros +</td> <td class=xl64 width=12 style='width:12pt'></td> <td class=xl67 width=67 style='width:67pt'>vs.</td> <td width=12 style='width:12pt'></td> <td colspan=2 class=xl73 width=190 style='border-right:1.0pt solid black; width:190pt'>- Cons -</td> </tr> <tr height=15 style='height:15.0pt'> <td height=15 class=xl65 style='height:15.0pt;font-size:12.0pt;color:white; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Calibri;border-top:none;border-right:none;border-bottom: 1.0pt solid white;border-left:1.0pt solid windowtext;background:black; mso-pattern:black none'>Item</td> <td class=xl66 style='font-size:12.0pt;color:white;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:1.0pt solid white;border-left:none;background:black;mso-pattern: black none'>Importance</td> <td></td> <td></td> <td></td> <td class=xl65 style='font-size:12.0pt;color:white;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:none;border-bottom:1.0pt solid white; border-left:1.0pt solid windowtext;background:black;mso-pattern:black none'>Item</td> <td class=xl66 style='font-size:12.0pt;color:white;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:1.0pt solid white;border-left:none;background:black;mso-pattern: black none'>Importance</td> </tr> <tr height=28 style='mso-height-source:userset;height:28.0pt'> <td height=28 class=xl71 style='height:28.0pt;font-size:14.0pt;color:white; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Calibri;border-top:none;border-right:none;border-bottom: none;border-left:1.0pt solid windowtext;background:#76933C;mso-pattern:#76933C none'>Good</td> <td class=xl69 align=right style='font-size:14.0pt;color:white;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;background:#76933C;mso-pattern:#76933C none'>2</td> <td class=xl63></td> <td class=xl68></td> <td class=xl63></td> <td class=xl72 style='font-size:14.0pt;color:white;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:none;border-bottom:none; border-left:1.0pt solid windowtext;background:#963634;mso-pattern:#963634 none'>Bad</td> <td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:none;border-left:none;background:#963634;mso-pattern:#963634 none'>2</td> </tr> <tr height=28 style='mso-height-source:userset;height:28.0pt'> <td height=28 class=xl71 style='height:28.0pt;font-size:14.0pt;color:white; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Calibri;border-top:none;border-right:none;border-bottom: none;border-left:1.0pt solid windowtext;background:#9BBB59;mso-pattern:#9BBB59 none'>Cheap</td> <td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:none;border-left:none;background:#9BBB59;mso-pattern:#9BBB59 none'>4</td> <td class=xl63></td> <td class=xl63></td> <td class=xl63></td> <td class=xl72 style='font-size:14.0pt;color:white;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:none;border-bottom:none; border-left:1.0pt solid windowtext;background:#C0504D;mso-pattern:#C0504D none'>Expensive</td> <td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:none;border-left:none;background:#C0504D;mso-pattern:#C0504D none'>3</td> </tr> <tr height=28 style='mso-height-source:userset;height:28.0pt'> <td height=28 class=xl71 style='height:28.0pt;font-size:14.0pt;color:white; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Calibri;border-top:none;border-right:none;border-bottom: none;border-left:1.0pt solid windowtext;background:#76933C;mso-pattern:#76933C none'>Fast</td> <td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:none;border-left:none;background:#76933C;mso-pattern:#76933C none'>1</td> <td class=xl63></td> <td class=xl63></td> <td class=xl63></td> <td class=xl72 style='font-size:14.0pt;color:white;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:none;border-bottom:none; border-left:1.0pt solid windowtext;background:#963634;mso-pattern:#963634 none'>Slow</td> <td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext; border-bottom:none;border-left:none;background:#963634;mso-pattern:#963634 none'>1</td> </tr> <!--EndFragment--> </table> </body> </html> "
HTML
2
cnheider/nylas-mail
packages/client-app/spec/fixtures/paste/excel-paste-out.html
[ "MIT" ]
--- title: 'AIFH Vol 3: Deep Learning and Neural Networks' output: pdf_document --- This document is a notebook of calculations for: Artificial Intelligence for Humans Volume 3: Deep Learning and Neural Networks For more information about the series visit: <http://www.heatonresearch.com/aifh>. In the interest of open research, this document contains all of the R code used to create the figures for my book. Some of my calculations are also contained in this file. **This document is most not too useful by itself.** However, if you are wondering how I produced a chart or performed a calculation in my book, it is likely in this file. --Jeff Heaton Introduction ============ ```{r, echo=TRUE} # Normalize weight 2000 - 100 5000 - 100 1900/4900 # MNIST 28 * 28 # Sunspots 3000 - 273.15 4500 - 273.15 ``` Figure: Sunspots ---------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) require(graphics) plot(sunspots, main = NULL, xlab = "Year", ylab = "Monthly sunspot numbers") ``` Chapter 1: Neural Network Basics ================================ Equation 1.1: Neuron Output --------------------------- $$ f(x_i,w_i) = \phi(\sum_i(w_i \cdot x_i)) $$ Equation 1.2: Linear Activation Function ---------------------------------------- $$ \phi(x) = x $$ Equation 1.3: Step Activation Function ---------------------------------------- $$ \phi(x)=\begin{cases} 1, & \text{if $x\geq0.5$}.\\ 0, & \text{otherwise}. \end{cases} $$ Equation 1.4: Sigmoid Activation Function ----------------------------------------- $$ \phi(x) = \frac{1}{1 + e^{-x}} $$ Equation 1.5: Hyperbolic Tangent Activation Function ---------------------------------------------------- $$ \phi(x) = \tanh(x) $$ Figure: Linear Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_linear <- function(x) x plot(act_linear,xlim=c(-5,5),ylim=c(-5,5),xlab="x",ylab="y") ``` Figure: Step Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_step <- function(x) ifelse(x >= 0.5, 1, 0) plot(act_step,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y") ``` Figure: Sigmoid Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_sigmoid <- function(x) 1/(1+exp(-x)) plot(act_sigmoid,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y") ``` Figure: TanH Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_tanh <- function(x) tanh(x) plot(act_tanh,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y") ``` Figure: ReLU Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_tanh <- function(x) (log(1+exp(x))) plot(act_tanh,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y") ``` $$ \phi(x) = \max(0, x) $$ ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_relu <- function(x) ifelse(x<0,0,x) plot(act_relu,xlim=c(-1,5),ylim=c(-1,5),xlab="x",ylab="y") ``` Equation 5.2: Sigmoid Activation Function ----------------------------------------- $$ \phi(x) = \frac{1}{1 + e^{-x}} $$ Equation 1.7: The Softmax Function ---------------------------------- $$ \phi_i = \frac{e^{z_i}}{\sum\limits_{j \in group}e^{z_j}} $$ ```{r, echo=TRUE} # Softmax v <- c(0.9,0.2,0.4) for(o in v){print(exp(o)/sum(exp(v)))} sum( c( 0.47548495534876745 , 0.2361188410001125 , 0.28839620365112 )) ``` Figure: Sigmoid Change Weight ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_sigmoid <- function(x) 1/(1+exp(-x)) sig1 <- function(x) act_sigmoid(0.5*x) sig2 <- function(x) act_sigmoid(1.0*x) sig3 <- function(x) act_sigmoid(1.5*x) sig4 <- function(x) act_sigmoid(2.0*x) plot(act_sigmoid,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y") plot(sig1,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) plot(sig2,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) plot(sig3,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) plot(sig4,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) ``` Figure: Sigmoid Change Bias ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_sigmoid <- function(x) 1/(1+exp(-x)) sig1 <- function(x) act_sigmoid(1*x + 1*1) sig2 <- function(x) act_sigmoid(1*x + 0.5*1) sig3 <- function(x) act_sigmoid(1*x + 1.5*1) sig4 <- function(x) act_sigmoid(1*x + 2*1) plot(act_sigmoid,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y") plot(sig1,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) plot(sig2,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) plot(sig3,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) plot(sig4,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",add=TRUE) ``` Logic Gates ----------- ```{r, echo=TRUE} act_step <- function(x) ifelse(x >= 0.5, 1, 0) neuron1 <- function(x,w1,b1) act_step( (x*w1)+b1 ) neuron2 <- function(x1,x2,w1,w2,b1) act_step((x1*w1) + (x2*w2) + b1) # And neuron2(0,0,1,1,-1.5) neuron2(1,0,1,1,-1.5) neuron2(0,1,1,1,-1.5) neuron2(1,1,1,1,-1.5) # Or neuron2(0,0,1,1,-0.5) neuron2(1,0,1,1,-0.5) neuron2(0,1,1,1,-0.5) neuron2(1,1,1,1,-0.5) # Not neuron1(0,-1,0.5) neuron1(1,-1,0.5) ``` $$ ( NV \land LY) \lor (\neg LY \land PK) $$ $$ p \oplus q = (p \lor q) \land \lnot (p \land q) $$ ```{r, echo=TRUE} (0*1) + (1*1) - 0.5 (0*1) + (1*1) - 1.5 (0*-1)+0.5 (1*1)+(1*1)-1.5 ``` Chapter 2: Self Organizing Maps =============================== Equation 2.1: The Euclidean Distance between Weight and Output Neuron --------------------------------------------------------------------- $$ \mathrm{d}(\mathbf{p},\mathbf{w}) = \sqrt{\sum_{i=1}^n (p_i-w_i)^2} $$ Calculate the Euclidean norm of [2]. $$\|\boldsymbol{2}\| = \sqrt{2^2} = 2$$ Calculate the Euclidean norm of [2,3]. ```{r, echo=TRUE} sqrt(2^2+3^2) ``` $$\|\boldsymbol{[2,3]}\| = \sqrt{2^2+3^2} = 3.605551$$ Equation 2.2: SOM Learning Function ----------------------------------- $$ W_v{(t + 1)} = W_v{(t)} + \theta{(v, t)} \alpha{(t)}{(D{(t)}} - W_v{(t)}) $$ Figure: Gaussian Function ------------------------- ```{r, echo=TRUE} rbfFunct <- function(x) exp( 2*(-x^2) ) plot(rbfFunct,xlim=c(-5,5),ylim=c(0,1)) ``` Equation 2.3: Gaussian Function --------------------------------------------------- $$ f(x,c,w) = e^{-(\frac{\|x-c\|)^2}{2w^2}} $$ Figure: Mexican Hat 2D ---------------------- ```{r, echo=TRUE} rbfFunct<-function(x) { norm <- x*x (1 - norm) * exp(-norm / 2) } plot(rbfFunct,xlim=c(-5,5),ylim=c(-0.5,1)) ``` Figure: Mexican Hat Function 3D ------------------------------- ```{r, echo=TRUE} par(mar=c(2,2,0,2)+0.1) x<-seq(-4,4,0.25) y<-seq(-4,4,0.25) f<-function(x,y) { w <- 3 norm <- (x*x)+(y*y) (1 - (norm/w)) * exp(-norm / (2*w) ) } z<-outer(x,y,f) persp(x,y,z) ``` Equation: Mexican Hat --------------------- $$ f(x,c,w) = \Big(1-\frac{\|x-c\|^2}{w}\Big) e^{-\frac{\|x-c\|^2}{2w}} $$ Figure: Hexagon & Circle ------------------------ ```{r, echo=TRUE} library("plotrix") par(mar=c(2,2,0,2)+0.1) x = c( -1, -0.5, 0.5, 1, 0.5, -0.5, -1) y = c( 0, -sqrt(0.75), -sqrt(0.75), 0, sqrt(0.75), sqrt(0.75), 0) plot( x, y, type="l", asp = 1, xlim = c(-1, 1), ylim = c(-1, 1)) draw.circle(0, 0, 1, nv = 1000, border = NULL, col = NA, lty = 1, lwd = 1) segments(0,0,-1,0) segments(0,0,-0.5,-sqrt(0.75)) segments(0,0, 0.5,-sqrt(0.75)) segments(0,0, 1,0) segments(0,0, 0.5,sqrt(0.75)) segments(0,0, -0.5,sqrt(0.75)) text(-0.5,0.1,"r") text(-0.7,0.4,"s") ``` Figure: Hexagon Units --------------------- ```{r, echo=TRUE} par(mar=c(2,2,0,2)+0.1) x = c( -1, -0.5, 0.5, 1, 0.5, -0.5, -1) y = c( 0, -sqrt(0.75), -sqrt(0.75), 0, sqrt(0.75), sqrt(0.75), 0) plot( x, y, type="l", asp = 1, xlim = c(-1, 1), ylim = c(-1, 1)) draw.circle(0, 0, 1, nv = 1000, border = NULL, col = NA, lty = 1, lwd = 1) segments(-1,0, 1,0) segments(-0.5,-sqrt(0.75), -0.5, sqrt(0.75)) segments(0.5,-sqrt(0.75),0.5,sqrt(0.75)) text(-0.35, 0.4,expression( sqrt(0.75) ) ) text(-0.7, -0.1,expression( 0.5 ) ) text(0.7, -0.1,expression( 0.5 ) ) text(0,-0.1,"1") ``` Chapter 3: Hopfield & Boltzmann Machines ========================================= Hopfield Update --------------- $$ s_i \leftarrow \left\{\begin{array}{ll} +1 & \mbox {if }\sum_{j}{w_{ij}s_j}\geq\theta_i, \\ -1 & \mbox {otherwise.}\end{array}\right.$$ Hopfield Hebbian Learning ------------------------- $$ w_{ij}=\frac{1}{n}\sum_{\mu=1}^{n}\epsilon_{i}^\mu \epsilon_{j}^\mu $$ Hopfield Storkey Local Field ---------------------------- $$ h_{ij} = \sum_{k=1,k\neq i,j} w_{ik}\epsilon_{k} $$ Hopfield Storkey Learning ------------------------- $$ \Delta{w_{ij}} = \frac{1}{n}\epsilon_{i} \epsilon_{j} -\frac{1}{n}\epsilon_{i} h_{ji} -\frac{1}{n}\epsilon_{j} h_{ij} $$ Chapter 4: Feedforward Networks =============================== ```{r, echo=TRUE} par(mar=c(2,2,0,2)+0.1) x <- seq(0,1,0.01) y1 <- dnorm(x,0,0.25)/1.5 y2 <- dnorm(x,1,0.25)/1.5 plot(x,y1,type="l",bty="L",ylab="Output",xlab="P(False)") points(x,y2,type="l",col="red") ``` ```{r, echo=TRUE} par(mar=c(2,2,0,2)+0.1) x <- seq(0,1,0.01) y1 <- dnorm(x,0,0.25)/1.5 y2 <- dnorm(x,1,0.25)/1.5 plot(x,y1,type="l",bty="L",ylab="Output",xlab="P(False)") points(x,y2,type="l") ``` Figure: Normal Distrivution --------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) x <- seq(-4, 4, length=100) hx <- dnorm(x) plot(x, hx, type="l", xlab="Standard Deviations", ylab="Probability") ``` Equation 4.1: Standard Deviation for Xavier Algorithm ----------------------------------------------------- $$ Var(W) = \frac{2}{n_{in}+n_{out}} $$ Normalize --------- $$ norm(x,d_L,d_H,n_L,n_H)=\tfrac{(x-d_L)(n_H-n_L)}{(d_H-d_L)}+{n_L} $$ Denormalize ----------- $$ denorm(x,d_L,d_H,n_L,n_H)=\tfrac{(d_L-d_H)x-(n_H \cdot d_L) + d_H \cdot n_L}{(n_L-n_H)} $$ Mean ---- $$ \mu = \frac{1}{N} \sum_{i=1}^N x_i $$ Standard Deviation ------------------ $$ \sigma = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \mu)^2} $$ Chapter 5: Training & Evaluation ================================ Equation 5.5: Mean Square Error (MSE) ------------------------------------- $$ \text{MSE} = \frac{1}{n} \sum_{i=1}^n \left(\hat{y}_i - y_i\right)^2 $$ Chapter 6: Backpropagation Training =================================== Equation 6.1: Mean Square Error (MSE) ------------------------------------- $$ \text{MSE} = \frac{1}{n} \sum_{i=1}^n \left(\hat{y}_i - y_i\right)^2 $$ Equation 6.2: Node Delta of MSE Output Layer -------------------------------------------- $$ \delta_i = (\hat{y}_i - y_i) \phi'_i $$ Equation 6.3: Cross Entropy Error --------------------------------- $$ CE = - \frac{1}{n} \sum_x [y \ln{a} + (1-y) \ln{(1-a)}] $$ Equation 6.4: Node Delta of Cross Entropy Output Layer ------------------------------------------------------ $$ \delta_i = \hat{y}_i - y_i $$ Equation 6.5: Calculating Interior Node Deltas ---------------------------------------------- $$ \delta_i = f'_i \sum_k w_{ki}\delta_k $$ Misc Equation: Node Deltas for Quadratic (not used in book) ----------------------------------------------------------- $$ \delta_i = \begin{cases}-E f'_i & \mbox{, output nodes}\\ f'_i \sum_k w_{ki}\delta_k & \mbox{, interier nodes}\\ \end{cases} $$ Equation 6.6: Derivative of the Linear Activation Function ---------------------------------------------------------- $$ \phi(x)\prime = 1 $$ Equation 6.7: Softmax Activation Functon ---------------------------------------- $$ \phi_i = \frac{e^{z_i}}{\sum\limits_{j \in group}e^{z_j}} $$ Equation 6.8: Derivative of the Softmax Activation Function ----------------------------------------------------------- $$ \frac{\partial \phi_i}{\partial z_i} = \phi_i (1-\phi_i) $$ Equation 6.9: Derivative of the Sigmoid Activation Function ---------------------------------------------------------- $$ \phi(x)\prime = \phi(x) (1-\phi(x)) $$ Equation 6.10: Derivative of the Hyperbolic Tangent Activation Function ---------------------------------------------------------------------- $$ \phi(x)\prime = 1.0 - \phi(x)^2 $$ Equation 6.11: Derivative of the ReLU Activation Function --------------------------------------------------------- $$ \frac{dy}{dx} \phi(x) = \begin{cases} 1 & x > 0 \\ 0 & x \leq 0 \end{cases} $$ Equation 6.12: Backpropagation Weight Update -------------------------------------------- $$ \Delta{w_{(t)}} = \epsilon \frac{ \partial E}{\partial w_{(t)}} + \alpha \Delta{w_{(t-1)}} $$ Figure 6.3: Tanh Activation Function & Derivative ------------------------------------------------ ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_tanh <- function(x) tanh(x) deriv_tanh <- function(x) 1.0 - act_tanh(x)^2 plot(act_tanh,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y") plot(deriv_tanh,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y",add=TRUE, lty=2, col="red") legend("bottomright", inset=.05, c('Tanh','Deriv. Tanh'), lwd=2, lty=c(1, 2), col=c("black","red")) ``` Figure 6.4: Htan Activation Function & Derivative ------------------------------------------------ ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_tanh <- function(x) tanh(x) deriv_tanh <- function(x) 1.0 - act_tanh(x)^2 plot(act_tanh,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y") plot(deriv_tanh,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y",add=TRUE, lty=2, col="red") legend("bottomright", inset=.05, c('Tanh','Deriv. Tanh'), lwd=2, lty=c(1, 2), col=c("black","red")) ``` Figure 6.5: Sigmoid Activation Function & Derivative ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) act_sigmoid <- function(x) 1/(1+exp(-x)) deriv_sigmoid <- function(x) act_sigmoid(x) * (1-act_sigmoid(x)) plot(act_sigmoid,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y") plot(deriv_sigmoid,xlim=c(-5,5),ylim=c(0,1),xlab="x",ylab="y",lty=2,add=TRUE, col="red") legend("topleft", inset=.05, c('Sigmoid','Deriv. Sigmoid'), lwd=2, lty=c(1, 2), col=c("black","red")) ``` Equation 6.13: Nesterov Momentum -------------------------------- $$ n_0 = 0 \ , \ n_t = \alpha n_{t-1} + \epsilon \frac{ \partial E}{\partial w_{t}} $$ Equation 6.14: Nesterov Update ------------------------------ $$ \Delta w_t = \alpha n_{t-1} - (1+\alpha) n_t $$ Chapter 7: Other Propagation Training =================================== Chapter 8: Chapter 8: NEAT, CPPN and HyperNEAT ============================================== Figure: HyperNEAT Activation Functions -------------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) attach(mtcars) par(mfrow=c(2,2)) plot(wt,mpg, main="Scatterplot of wt vs. mpg") plot(wt,disp, main="Scatterplot of wt vs disp") hist(wt, main="Histogram of wt") boxplot(wt, main="Boxplot of wt") ``` Chapter 9: Deep Learining ========================= Equation: Propagate Up ------------------------------------------------ $$ \bar{h}^+_i = sigmoid(\sum_j w_j v_j + b_i ) $$ Equation: Sample h+ ------------------------------------------------ $$ h^+_i = \begin{cases} 1 & r < \bar{h}^+_i \\ 0 & r \geq \bar{h}^+_i \end{cases} $$ Equation: Propagate Up ------------------------------------------------ $$ \bar{v}^-_i = sigmoid(\sum_j w_j h_j + b_i ) $$ Equation: Sample h- ------------------------------------------------ $$ v^-_i = \begin{cases} 1 & r < \bar{v}^-_i \\ 0 & r \geq \bar{v}^-_i \end{cases} $$ Equation: Update weights ------------------------ $$ \Delta_{ij} = \frac{ \epsilon ( \bar{h}^+_i x_j - \bar{h}^-_i v^-_j ) }{|x|} $$ Equation: Update biases ------------------------ $$ \Delta b_{i} = \frac{ \epsilon ( h^+_i - \bar{h}^-_i ) } {|x|} $$ Chapter 11: Pruning and Model Selection ====================================== Chapter 12: Dropout and Regularization ====================================== Equation 7.1: L1 Error Term Objective ------------------------------------- $$ E_1 = \lambda_1 \sum_w{ |w| } $$ Equation 7.2: L1 Error Term --------------------------- $$ E_1 = \frac{\lambda_1}{n} \sum_w{ |w| } $$ Equation 7.3: L1 Weight Partial Derivative ------------------------------------------ $$ \frac{\partial}{\partial w} E_1 = \frac{\lambda_1}{n} sgn(w) $$ Equation 7.4: L2 Error Term Objective ------------------------------------- $$ E_2 = \lambda_2 \sum_w{ w^2 } $$ Equation 7.5: L2 Error Term --------------------------- $$ E_2 = \frac{\lambda_2}{n} \sum_w{ w^2 } $$ Equation 7.6: L2 Weight Partial Derivative ------------------------------------------ $$ \frac{\partial}{\partial w} E_2 = \frac{\lambda_2}{n}w $$ Figure: Sigmoid Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) dist_laplace <- function(x) 1/(2*1)*exp(-abs(x-0)/1) dist_gaussian <- function(x) dnorm(x) plot(dist_laplace,xlim=c(-5,5),ylim=c(0,0.75),xlab="x",ylab="y") plot(dist_gaussian,xlim=c(-5,5),ylim=c(0,0.75),xlab="x",ylab="y",add=TRUE, lty=2, col="red") legend("topright", inset=.05, title="L1 vs L2", c('L1 (Laplace)','L2 (Gaussian)'), lwd=2, lty=c(1, 1, 1, 1, 2), col=c("black","red")) ``` Chapter 13: Time Series and Recurrent Networks ============================================== Figure: Sine Wave ----------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) plot(sin,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y") ``` Chapter 14: Architecting Neural Networks ======================================== $$ \epsilon = K(1-\alpha) $$ ```{r} f <- function(k,alpha) cat(sprintf("k=%f, alpha=%f -> eta=%f\n", k, alpha,k*(1-alpha))) f(0.5,0.2) f(0.5,0.3) f(0.5,0.4) f(1.0,0.2) f(1.0,0.3) f(1.0,0.4) f(1.5,0.2) f(1.5,0.3) f(1.5,0.4) ``` $$ \Delta{w_{(t)}} = \epsilon \frac{ \partial E}{\partial w_{(t)}} + \alpha \Delta{w_{(t-1)}} $$ Figure: TanH Sigmoid Activation Function ---------------------------------- ```{r, echo=TRUE} par(mar=c(5,4,2,2)+0.1) sigmoid <- function(x) 1/(1+exp(-x)) tanh_shift <- function(x) tanh(x) plot(sigmoid,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y") plot(tanh_shift,xlim=c(-5,5),ylim=c(-1,1),xlab="x",ylab="y",add=TRUE, col="red") ``` Chapter 15: Visualization ========================= Chapter 16: Modeling with Neural Networks =========================================
RMarkdown
5
Sun-Joong/aifh
vol3/aifh_vol3.rmd
[ "Apache-2.0" ]
[Desktop Entry] Name=MeshLab Version=@version@ Name[en_GB]=MeshLab GenericName=Mesh processing GenericName[en_GB]=Mesh processing Comment=View and process meshes Type=Application Exec=@out@/bin/meshlab %U TryExec=@out@/bin/meshlab Icon=@out@/share/icons/hicolor/meshlab.png Terminal=false MimeType=model/mesh;application/x-3ds;image/x-3ds;model/x-ply;application/sla;model/x-quad-object;model/x-geomview-off;application/x-cyclone-ptx;application/x-vmi;application/x-bre;model/vnd.collada+xml;model/openctm;application/x-expe-binary;application/x-expe-ascii;application/x-xyz;application/x-gts;chemical/x-pdb;application/x-tri;application/x-asc;model/x3d+xml;model/x3d+vrml;model/vrml;model/u3d;model/idtf; Categories=Graphics;3DGraphics;Viewer;Qt;
desktop
2
collinwright/nixpkgs
pkgs/applications/graphics/meshlab/meshlab.desktop
[ "MIT" ]
@n: 4; #world { building-height: 2 * 3 * [HEIGHT] + 2 + [NOTHEIGHT] + (@n * 2); }
CartoCSS
2
nimix/carto
test/rendering/building_height.mss
[ "Apache-2.0" ]
exec("swigtest.start", -1); if typeof(CSP_ITERATION_FWD_get()) <> "constant" then swigtesterror(); end if typeof(CSP_ITERATION_BWD_get()) <> "constant" then swigtesterror(); end if typeof(ABCDE_get()) <> "constant" then swigtesterror(); end if typeof(FGHJI_get()) <> "constant" then swigtesterror(); end try bar1(CSP_ITERATION_FWD_get()) bar1(CSP_ITERATION_BWD_get()) bar1(1) bar1(int32(1)) bar2(ABCDE_get()) bar2(FGHJI_get()) bar2(1) bar2(int32(1)) bar3(ABCDE_get()) bar3(FGHJI_get()) bar3(1) bar3(int32(1)) catch swigtesterror() end if typeof(enumInstance_get()) <> "constant" then swigtesterror(); end if enumInstance_get() <> 2 then swigtesterror(); end if typeof(Slap_get()) <> "constant" then swigtesterror(); end if Slap_get() <> 10 then swigtesterror(); end if typeof(Mine_get()) <> "constant" then swigtesterror(); end if Mine_get() <> 11 then swigtesterror(); end if typeof(Thigh_get()) <> "constant" then swigtesterror(); end if Thigh_get() <> 12 then swigtesterror(); end exec("swigtest.quit", -1);
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/enums_runme.sci
[ "BSD-3-Clause" ]
var $g <*ptr> var $h <*ptr> = addrof ptr $g var $g <*ptr> = addrof ptr $h var $h <*ptr> # EXEC: %irbuild Main.mpl # EXEC: %irbuild Main.irb.mpl # EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
Maple
1
harmonyos-mirror/OpenArkCompiler-test
test/testsuite/irbuild_test/I0025-mapleall-irbuild-edge-dupvardecl/Main.mpl
[ "MulanPSL-1.0" ]
[a|b |= "c"]{}
CSS
0
vjpr/swc
css/parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/input.css
[ "Apache-2.0", "MIT" ]
import Debug "mo:base/Debug"; import Float "mo:base/Float"; Debug.print("Float"); do { Debug.print(" abs"); assert(Float.abs(1.1) == 1.1); assert(Float.abs(-1.1) == 1.1); }; do { Debug.print(" ceil"); assert(Float.ceil(1.1) == 2.0); }; do { Debug.print(" floor"); assert(Float.floor(1.1) == 1.0); }; do { Debug.print(" trunc"); assert(Float.trunc(1.0012345789) == 1.0); }; do { Debug.print(" nearest"); assert(Float.nearest(1.00001) == 1.0); assert(Float.nearest(1.99999) == 2.0); }; do { Debug.print(" min"); assert(Float.min(1.1, 2.2) == 1.1); }; do { Debug.print(" max"); assert(Float.max(1.1, 2.2) == 2.2); }; do { Debug.print(" sin"); assert(Float.sin(0.0) == 0.0); }; do { Debug.print(" cos"); assert(Float.cos(0.0) == 1.0); }; do { Debug.print(" toFloat64"); assert(Float.toInt64(1e10) == (10000000000 : Int64)); assert(Float.toInt64(-1e10) == (-10000000000 : Int64)); }; do { Debug.print(" ofFloat64"); assert(Float.fromInt64(10000000000) == 1e10); assert(Float.fromInt64(-10000000000) == -1e10); }; do { Debug.print(" format"); assert(Float.format(#exact, 20.12345678901) == "20.12345678901"); assert(Float.format(#fix 6, 20.12345678901) == "20.123457"); assert(Float.format(#exp 9, 20.12345678901) == "2.012345679e+01"); assert(Float.format(#gen 12, 20.12345678901) == "20.123456789"); assert(Float.format(#hex 10, 20.12345678901) == "0x1.41f9add374p+4"); }; do { Debug.print(" Pi: " # Float.toText(Float.pi)); Debug.print(" arccos(-1.0): " # Float.toText(Float.arccos(-1.))); assert(Float.pi == Float.arccos(-1.)); }; do { Debug.print(" e: " # debug_show(Float.toText(Float.e))); Debug.print(" exp(1): " # debug_show(Float.toText(Float.exp(1)))); assert(Float.e == Float.exp(1)); };
Modelica
4
nomeata/motoko-base
test/floatTest.mo
[ "Apache-2.0" ]
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/lite/delegates/gpu/metal/buffer.h" #include "tensorflow/lite/delegates/gpu/common/types.h" #import <XCTest/XCTest.h> #import <Metal/Metal.h> #include <vector> #include <iostream> @interface BufferTest : XCTestCase @end @implementation BufferTest - (void)setUp { [super setUp]; } using tflite::gpu::half; - (void)testBufferF32 { id<MTLDevice> device = MTLCreateSystemDefaultDevice(); const std::vector<float> data = {1.0f, 2.0f, 3.0f, -4.0f, 5.1f}; tflite::gpu::metal::Buffer buffer; XCTAssertTrue(tflite::gpu::metal::CreateBuffer(sizeof(float) * 5, nullptr, device, &buffer).ok()); XCTAssertTrue(buffer.WriteData(absl::MakeConstSpan(data.data(), data.size())).ok()); std::vector<float> gpu_data; XCTAssertTrue(buffer.ReadData<float>(&gpu_data).ok()); XCTAssertEqual(gpu_data.size(), data.size()); for (int i = 0; i < gpu_data.size(); ++i) { XCTAssertEqual(gpu_data[i], data[i]); } } - (void)testBufferF16 { id<MTLDevice> device = MTLCreateSystemDefaultDevice(); const std::vector<half> data = {half(1.0f), half(2.0f), half(3.0f), half(-4.0f), half(5.1f)}; tflite::gpu::metal::Buffer buffer; XCTAssertTrue(tflite::gpu::metal::CreateBuffer( sizeof(tflite::gpu::half) * 5, nullptr, device, &buffer).ok()); XCTAssertTrue(buffer.WriteData(absl::MakeConstSpan(data.data(), data.size())).ok()); std::vector<half> gpu_data; XCTAssertTrue(buffer.ReadData<half>(&gpu_data).ok()); XCTAssertEqual(gpu_data.size(), data.size()); for (int i = 0; i < gpu_data.size(); ++i) { XCTAssertEqual(gpu_data[i], data[i]); } } @end
Objective-C++
4
EricRemmerswaal/tensorflow
tensorflow/lite/delegates/gpu/metal/buffer_test.mm
[ "Apache-2.0" ]
using Fuse.Internal; using Uno; using Uno.Testing; using FuseTest; namespace Fuse.Test { public class CollisionTest : TestBase { [Test] public void LineLineIntersection() { float2 r; Assert.IsTrue( Collision.LineLineIntersection( float2(1), float2(2,1), float2(4,5), float2(-1,5), out r)); Assert.AreEqual( float2(4.4545f, 2.7272f), r, 1e-4f); Assert.IsTrue( Collision.LineLineIntersection( float2(0), float2(0,1), float2(-2,-1), float2(1,1), out r)); Assert.AreEqual( float2(0,1), r, 1e-4f); Assert.IsFalse( Collision.LineLineIntersection( float2(2,4), float2(2,3), float2(2,5), float2(2,3), out r )); Assert.IsTrue( Collision.LineLineIntersection( float2(0), float2(1,-1), float2(5), float2(1,1), out r )); Assert.AreEqual( float2(0), r, 1e-4f ); } } }
Uno
4
helilabs/fuselibs
Source/Fuse.Common/Tests/Fuse.Common.Test/Collision.Test.uno
[ "MIT" ]
extends Spatial onready var _cube_point_scene: PackedScene = preload("res://assets/cube/cube_point.tscn") onready var _parent = get_parent() var _is_parent_ready := false var _cube_points_math = [] var _cube_math_spatials = [] func _ready(): _parent = get_parent() for i in range(27): # warning-ignore:integer_division var a: int = (i / 9) - 1 # warning-ignore:integer_division var b: int = (i / 3) % 3 - 1 var c: int = (i % 3) - 1 var spatial_position: Vector3 = 5 * (a * Vector3.RIGHT + b * Vector3.UP + c * Vector3.BACK) _cube_math_spatials.append(Spatial.new()) _cube_math_spatials[i].translation = spatial_position _cube_math_spatials[i].name = "CubeMath #" + str(i) + ", " + str(a) + " " + str(b) + " " + str(c) add_child(_cube_math_spatials[i]) func _process(delta): if Input.is_action_pressed("exit"): get_tree().quit() if Input.is_action_just_pressed("view_cube_demo"): # warning-ignore:return_value_discarded get_tree().change_scene("res://assets/demo_scene.tscn") return if _is_parent_ready: if Input.is_action_just_pressed("reset_position"): transform = Transform.IDENTITY else: rotate_x(delta * (Input.get_action_strength("move_back") - Input.get_action_strength("move_forward"))) rotate_y(delta * (Input.get_action_strength("move_right") - Input.get_action_strength("move_left"))) rotate_z(delta * (Input.get_action_strength("move_counterclockwise") - Input.get_action_strength("move_clockwise"))) for i in range(27): _cube_points_math[i].global_transform = _cube_math_spatials[i].global_transform else: # This code block will be run only once. It's not in _ready() because the parent isn't set up there. for i in range(27): var my_cube_point_scene = _cube_point_scene.duplicate(true) var cube_point = my_cube_point_scene.instance() cube_point.name = "CubePoint #" + str(i) _cube_points_math.append(cube_point.get_child(0)) _parent.add_child(cube_point) _is_parent_ready = true
GDScript
5
jonbonazza/godot-demo-projects
misc/2.5d/assets/cube/cube_math.gd
[ "MIT" ]
-- fib_improver = ->(partial : Proc(Int32)) { -- ->(n : Int32) { n < 2 ? n : partial.call(n-1) + partial.call(n-2) } -- } -- y = ->(f : Int32) { -- ->(x) { x.call(x) }.call( -- ->(x) { f.call(->(v) { x.call(x).call(v)}) } -- ) -- } -- fib = fib_improver.call(y.call(fib_improver)) -- p fib.call(1) -- p fib.call(100) -- *TODO* I'm confuzed by above B-) fib_improver = (partial (Int32)->Int32) -> (n Int32) -> n < 2 ? n : partial.call(n-1) + partial.call(n-2) y = (f (Int32)->Int32) -> ((x) -> x.call(x)).call( (x) -> f.call((v) -> x.call(x).call(v)) ) fib = fib_improver.call(y.call(fib_improver)) p fib.call(1) p fib.call(100)
Ox
3
ozra/onyx-lang
spec/onyx-alpha-throwups/example_1877.ox
[ "Apache-2.0" ]
#![allow(dead_code)] #![feature(rustc_attrs)] use std::cell::Cell; // Check that a type parameter which is only used in a trait bound is // not considered bivariant. #[rustc_variance] struct InvariantMut<'a,A:'a,B:'a> { //~ ERROR [-, o, o] t: &'a mut (A,B) } #[rustc_variance] struct InvariantCell<A> { //~ ERROR [o] t: Cell<A> } #[rustc_variance] struct InvariantIndirect<A> { //~ ERROR [o] t: InvariantCell<A> } #[rustc_variance] struct Covariant<A> { //~ ERROR [+] t: A, u: fn() -> A } #[rustc_variance] struct Contravariant<A> { //~ ERROR [-] t: fn(A) } #[rustc_variance] enum Enum<A,B,C> { //~ ERROR [+, -, o] Foo(Covariant<A>), Bar(Contravariant<B>), Zed(Covariant<C>,Contravariant<C>) } pub fn main() { }
Rust
4
Eric-Arellano/rust
src/test/ui/variance/variance-types.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
# Export Ignition environment variables @[if INSTALLSPACE]@ export IGN_LAUNCH_CONFIG_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/launch export IGN_GAZEBO_RESOURCE_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/worlds:${IGN_GAZEBO_RESOURCE_PATH} @[else]@ export IGN_LAUNCH_CONFIG_PATH=@(CMAKE_CURRENT_SOURCE_DIR)/launch export IGN_GAZEBO_RESOURCE_PATH=@(CMAKE_CURRENT_SOURCE_DIR)/worlds:${IGN_GAZEBO_RESOURCE_PATH} @[end if]@
EmberScript
4
jfkeller/subt_explorer_canary1_sensor_config_1
ign_migration_scripts/env-hooks/29.ign_migration_scripts.zsh.em
[ "ECL-2.0", "Apache-2.0" ]
/* DQ (2/3/2011): Bug report from iastate: blocksize_reparse/short_test.upc */ #include<upc.h> shared [5] char buffer[10*THREADS]; shared [8] char bufferA[8*THREADS]; int main() { return 0; }
Unified Parallel C
1
maurizioabba/rose
tests/CompileTests/UPC_tests/test2011_03.upc
[ "BSD-3-Clause" ]
<script type="application/x-typescript"> class Student { fullName: string; constructor(public firstName: string, public middleInitial: string, public lastName: string) { this.fullName = firstName + " " + middleInitial + " " + lastName; } } interface Person { firstName: string; lastName: string; } function greeter(person : Person) { return "Hello, " + person.firstName + " " + person.lastName; } let user = new Student("Jane", "M.", "User"); document.body.innerHTML = greeter(user); </script> <script lang="ts"> class Student { fullName: string; constructor(public firstName: string, public middleInitial: string, public lastName: string) { this.fullName = firstName + " " + middleInitial + " " + lastName; } } interface Person { firstName: string; lastName: string; } function greeter(person : Person) { return "Hello, " + person.firstName + " " + person.lastName; } let user = new Student("Jane", "M.", "User"); document.body.innerHTML = greeter(user); </script> <script lang="tsx"> class CommentBox extends React.Component<{ url: string, pollInterval: number}, CommentData> { constructor(){ super() this.state = { data: [] }; } fetchComments() { $.ajax({ url: this.props.url, dataType: 'json', cache: false, success: (data) => this.setState({ data: data }), error: (xhr, status, err) => console.error(status, err) }) } componentDidMount() { this.fetchComments(); setInterval(this.fetchComments.bind(this), this.props.pollInterval); } render() { let handleCommentSubmit = (comment: { author: string, text: string }) => { console.warn('comment submitted!', comment); const updated = this.state.data.slice(0); updated.push(comment); this.setState({ data: updated }); } return ( <div className="commentBox"> <h1>Comments</h1> <CommentList data={this.state.data}/> <CommentForm onCommentSubmit={handleCommentSubmit} /> </div> ); } } </script>
HTML
4
fuelingtheweb/prettier
tests/html_js/typescript.html
[ "MIT" ]
-- Copyright 2018 Stanford University -- -- 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 "regent" local c = regentlib.c fspace BitField { bit : bool, } task printer(bit_region : region(ispace(int1d), BitField)) where reads(bit_region.bit) do c.printf("The bits are: ") var limits = bit_region.bounds for i = [int](limits.lo), [int](limits.hi) + 1 do if bit_region[i].bit then c.printf("1 ") else c.printf("0 ") end end c.printf("\n") end task blink(bit_region : region(ispace(int1d), BitField)) where reads writes(bit_region.bit) do for b in bit_region do b.bit = not b.bit end end task launcher(br : region(ispace(int1d), BitField), p : partition(disjoint, br, ispace(int1d))) where reads writes(br.bit) do for c in p.colors do blink(p[c]) end end task main() var size = 60 var num_pieces_large = 6 var num_pieces_small = 3 var bit_region = region(ispace(int1d, size), BitField) var bit_region_partition_large = partition(equal, bit_region, ispace(int1d, num_pieces_large)) var bit_region_partition_small = partition(equal, bit_region, ispace(int1d, num_pieces_small)) fill(bit_region.bit, false) for i = 0, 4 do launcher(bit_region, bit_region_partition_small) launcher(bit_region, bit_region_partition_large) end printer(bit_region) end regentlib.start(main)
Rouge
4
elliottslaughter/regent-tutorial
Solutions/x2.rg
[ "Apache-2.0" ]
Strict Rem bbdoc: Math/Random numbers End Rem Module BRL.Random ModuleInfo "Version: 1.05" ModuleInfo "Author: Mark Sibly, Floyd" ModuleInfo "License: zlib/libpng" ModuleInfo "Copyright: Blitz Research Ltd" ModuleInfo "Modserver: BRL" ModuleInfo "History: 1.05 Release" ModuleInfo "History: Fixed Rand() with negative min value bug" Private Global rnd_state=$1234 Const RND_A=48271,RND_M=2147483647,RND_Q=44488,RND_R=3399 Public Rem bbdoc: Generate random float returns: A random float in the range 0 (inclusive) to 1 (exclusive) End Rem Function RndFloat#() rnd_state=RND_A*(rnd_state Mod RND_Q)-RND_R*(rnd_state/RND_Q) If rnd_state<0 rnd_state=rnd_state+RND_M Return (rnd_state & $ffffff0) / 268435456# 'divide by 2^28 End Function Rem bbdoc: Generate random double returns: A random double in the range 0 (inclusive) to 1 (exclusive) End Rem Function RndDouble!() Const TWO27! = 134217728.0 '2 ^ 27 Const TWO29! = 536870912.0 '2 ^ 29 rnd_state=RND_A*(rnd_state Mod RND_Q)-RND_R*(rnd_state/RND_Q) If rnd_state<0 rnd_state=rnd_state+RND_M Local r_hi! = rnd_state & $1ffffffc rnd_state=RND_A*(rnd_state Mod RND_Q)-RND_R*(rnd_state/RND_Q) If rnd_state<0 rnd_state=rnd_state+RND_M Local r_lo! = rnd_state & $1ffffff8 Return (r_hi + r_lo/TWO27)/TWO29 End Function Rem bbdoc: Generate random double returns: A random double in the range min (inclusive) to max (exclusive) about: The optional parameters allow you to use Rnd in 3 ways: [ @Format | @Result * &Rnd() | Random double in the range 0 (inclusive) to 1 (exclusive) * &Rnd(_x_) | Random double in the range 0 (inclusive) to n (exclusive) * &Rnd(_x,y_) | Random double in the range x (inclusive) to y (exclusive) ] End Rem Function Rnd!( min_value!=1,max_value!=0 ) If max_value>min_value Return RndDouble()*(max_value-min_value)+min_value Return RndDouble()*(min_value-max_value)+max_value End Function Rem bbdoc: Generate random integer returns: A random integer in the range min (inclusive) to max (inclusive) about: The optional parameter allows you to use #Rand in 2 ways: [ @Format | @Result * &Rand(x) | Random integer in the range 1 to x (inclusive) * &Rand(x,y) | Random integer in the range x to y (inclusive) ] End Rem Function Rand( min_value,max_value=1 ) Local range=max_value-min_value If range>0 Return Int( RndDouble()*(1+range) )+min_value Return Int( RndDouble()*(1-range) )+max_value End Function Rem bbdoc: Set random number generator seed End Rem Function SeedRnd( seed ) rnd_state=seed & $7fffffff 'enforces rnd_state >= 0 If rnd_state=0 Or rnd_state=RND_M rnd_state=$1234 'disallow 0 and M End Function Rem bbdoc: Get random number generator seed returns: The current random number generator seed about: Use in conjunction with SeedRnd, RndSeed allows you to reproduce sequences of random numbers. End Rem Function RndSeed() Return rnd_state End Function
BlitzMax
5
jabdoa2/blitzmax
mod/brl.mod/random.mod/random.bmx
[ "Zlib" ]
img(src=item.getPortraitURL()) div.item-info if includes.name h4= item.get('name') if includes.stats || (includes.props && props.length) ul.list-unstyled if includes.stats for stat, prop in stats if stat.display == 'true' li= stat.name else li #{stat.name}: #{stat.display} if includes.props && props.length li Grants: for prop in props | code= prop span.status-message span.spl.should-equip-message(data-i18n="inventory.should_equip") span.spl.equipped-message(data-i18n="inventory.equipped") span.spl.locked-message(data-i18n="inventory.locked") span.spl.restricted-message(data-i18n="inventory.restricted") .clearfix
Jade
3
cihatislamdede/codecombat
app/templates/play/menu/item-view.jade
[ "CC-BY-4.0", "MIT" ]
// Copyright (c) 2017 Massachusetts Institute of Technology // // 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. import FShow::*; // performance counter typedefs // query performance counters in each stage/module typedef enum { L1ILdCnt, L1ILdMissCnt, L1ILdMissLat, L1IReconcileCnt } L1IPerfType deriving(Bits, Eq, FShow); typedef enum { L1DLdCnt, L1DLdMissCnt, L1DLdMissLat, L1DStCnt, L1DStMissCnt, L1DStMissLat, L1DAmoCnt, L1DAmoMissCnt, L1DAmoMissLat, L1DSelfInvCnt, // self inv due to max hits L1DReconcileCnt } L1DPerfType deriving(Bits, Eq, FShow); typedef enum { LLCDmaMemLdCnt, LLCDmaMemLdLat, LLCNormalMemLdCnt, LLCNormalMemLdLat, LLCMshrBlockCycles, // full MSHR blocks new cRq LLCDownRespCnt, LLCDownRespDataCnt, LLCDownReqCnt, LLCUpRespCnt, LLCUpRespDataCnt, LLCDmaLdReqCnt, LLCDmaStReqCnt } LLCPerfType deriving(Bits, Eq, FShow); typedef enum { L1TlbAccessCnt, L1TlbMissParentCnt, // miss and send req to parent TLB L1TlbMissParentLat, L1TlbMissPeerCnt, // miss and wait for resp for peer entry L1TlbMissPeerLat, L1TlbHitUnderMissCnt, L1TlbAllMissCycles // all TLB req entries are miss, so TLB is blocked } L1TlbPerfType deriving(Bits, Eq, FShow); typedef enum { L2TlbInstMissCnt, L2TlbInstMissLat, L2TlbInstPageWalks, L2TlbInstSavedPageWalks, L2TlbInstHugePageHits, // hits on huge page (2MB, 1GB) L2TlbInstHugePageMisses, // miss (i.e., page walk) to get huge page (2MB, 1GB) L2TlbDataMissCnt, L2TlbDataMissLat, L2TlbDataPageWalks, L2TlbDataSavedPageWalks, L2TlbDataHugePageHits, L2TlbDataHugePageMisses, L2TlbHitUnderMissCnt, L2TlbAllMissCycles, // all TLB req entries are doing page walk, so TLB is blocked L2TlbPeerSavedMemReqs // mem req saved by re-using peer req's page walk } L2TlbPerfType deriving(Bits, Eq, FShow); typedef enum { DecRedirectBr, DecRedirectJmp, DecRedirectJr, DecRedirectOther } DecStagePerfType deriving(Bits, Eq, FShow); typedef enum { SupRenameCnt, // number of cycles that rename correct path inst cnt > 1 SpecNoneCycles, SpecNonMemCycles, ExeRedirectBr, ExeRedirectJr, ExeRedirectOther, ExeLdStallByLd, ExeLdStallBySt, ExeLdStallBySB, ExeLdForward, ExeLdMemLat, ExeStMemLat, ExeLdToUseLat, ExeLdToUseCnt, ExeTlbExcep, ExeScSuccessCnt, ExeLrScAmoAcqCnt, ExeLrScAmoRelCnt, ExeFenceAcqCnt, ExeFenceRelCnt, ExeFenceCnt, ExeIntMulCnt, ExeIntDivCnt, ExeFpFmaCnt, ExeFpDivCnt, ExeFpSqrtCnt } ExeStagePerfType deriving(Bits, Eq, FShow); typedef enum { LdQFullCycles, StQFullCycles, ROBFullCycles, AluRS0FullCycles, AluRS1FullCycles, FpuMulDivRSFullCycles, MemRSFullCycles, EpochFullCycles, SpecTagFullCycles } CoreSizePerfType deriving(Bits, Eq, FShow); typedef enum { CycleCnt, InstCnt, UserInstCnt, SupComUserCnt, // number of cycles that commit user inst cnt > 1 ComBrCnt, ComJmpCnt, ComJrCnt, ComLdCnt, ComStCnt, ComLrCnt, ComScCnt, ComAmoCnt, ComLdKillByLd, ComLdKillBySt, ComLdKillByCache, ComSysCnt, // system inst count ExcepCnt, InterruptCnt, FlushTlbCnt, FlushSecurityCnt, FlushBPCnt, FlushCacheCnt } ComStagePerfType deriving(Bits, Eq, FShow); // PerfReq = XXPerfType typedef struct { perfType pType; Bit#(64) data; } PerfResp#(type perfType) deriving(Bits, Eq); interface Perf#(type perfType); method Action setStatus(Bool doStats); // change whether we collect data method Action req(perfType r); method ActionValue#(PerfResp#(perfType)) resp; method Bool respValid; endinterface // query performance counters in the whole processor typedef Bit#(5) PerfType; // for all XXPerfType // which stage/module to query typedef enum { ICache, DCache, ITlb, DTlb, L2Tlb, DecStage, ExeStage, ComStage, CoreSize, LLC } PerfLocation deriving(Bits, Eq, FShow); typedef struct { PerfLocation loc; PerfType pType; } ProcPerfReq deriving(Bits, Eq); typedef struct { PerfLocation loc; PerfType pType; Bit#(64) data; } ProcPerfResp deriving(Bits, Eq);
Bluespec
4
faddat/Flute
src_Core/Near_Mem_VM_WB_L1_L2/src_LLCache/procs/lib/Performance.bsv
[ "Apache-2.0" ]
require(httr) params = list( `page` = '1', `available` = c('', '1'), `location` = '0', `city[id]` = '0', `city[locality]` = '', `city[locality_text]` = '', `city[administrative_area_level_2]` = '', `city[administrative_area_level_2_text]` = '', `city[administrative_area_level_1]` = '', `city[administrative_area_level_1_text]` = '', `city[country]` = '', `city[country_text]` = '', `city[latitude]` = '', `city[longitude]` = '', `city[zoom]` = '', `city[name]` = '', `region[id]` = '0', `region[locality]` = '', `region[locality_text]` = '', `region[administrative_area_level_2]` = '', `region[administrative_area_level_2_text]` = '', `region[administrative_area_level_1]` = '', `region[administrative_area_level_1_text]` = '', `region[country]` = '', `region[country_text]` = '', `region[latitude]` = '', `region[longitude]` = '', `region[zoom]` = '', `region[name]` = '', `country` = '', `environment` = '', `population` = '', `period` = '0', `date` = '2017-03-03', `datestart` = '2017-03-03', `dateend` = '2017-06-24', `season` = '', `duration` = '', `isfd` = '', `stopover` = '' ) res <- httr::GET(url = 'https://www.nomador.com/house-sitting/', query = params) #NB. Original query string below. It seems impossible to parse and #reproduce query strings 100% accurately so the one below is given #in case the reproduced version is not "correct". # res <- httr::GET(url = 'https://www.nomador.com/house-sitting/?page=1&available=&available=1&location=0&city%5Bid%5D=0&city%5Blocality%5D=&city%5Blocality_text%5D=&city%5Badministrative_area_level_2%5D=&city%5Badministrative_area_level_2_text%5D=&city%5Badministrative_area_level_1%5D=&city%5Badministrative_area_level_1_text%5D=&city%5Bcountry%5D=&city%5Bcountry_text%5D=&city%5Blatitude%5D=&city%5Blongitude%5D=&city%5Bzoom%5D=&city%5Bname%5D=&region%5Bid%5D=0&region%5Blocality%5D=&region%5Blocality_text%5D=&region%5Badministrative_area_level_2%5D=&region%5Badministrative_area_level_2_text%5D=&region%5Badministrative_area_level_1%5D=&region%5Badministrative_area_level_1_text%5D=&region%5Bcountry%5D=&region%5Bcountry_text%5D=&region%5Blatitude%5D=&region%5Blongitude%5D=&region%5Bzoom%5D=&region%5Bname%5D=&country=&environment=&population=&period=0&date=2017-03-03&datestart=2017-03-03&dateend=2017-06-24&season=&duration=&isfd=&stopover=')
R
4
verhovsky/curlconverter
fixtures/r/get_complex_url_params.r
[ "MIT" ]
"""Tests for the hddtemp component."""
Python
0
domwillcode/home-assistant
tests/components/hddtemp/__init__.py
[ "Apache-2.0" ]
IN: tools.disassembler.tests USING: kernel fry vocabs tools.disassembler tools.test sequences ; "math" vocab-words [ [ { } ] dip '[ _ disassemble ] unit-test ] each
Factor
4
alex-ilin/factor
basis/tools/disassembler/disassembler-tests.factor
[ "BSD-2-Clause" ]
- dashboard: opportunity_history title: Opportunity History layout: tile tile_size: 100 elements: - name: quarterly_pipeline_development_report title: 'Quarterly Pipeline Development Report' type: looker_area model: salesforce explore: historical_snapshot dimensions: [historical_snapshot.snapshot_date, historical_snapshot.probability_tier] pivots: [historical_snapshot.probability_tier] measures: [historical_snapshot.total_amount] filters: historical_snapshot.close_date: 2015/10/01 to 2016/01/01 historical_snapshot.snapshot_date: 2015/04/01 to 2016/01/01 historical_snapshot.stage_name_funnel: Won,Winning,Trial,Prospect sorts: [historical_snapshot.snapshot_date, historical_snapshot.snapshot_month desc, historical_snapshot.close_month, historical_snapshot.stage_name_funnel__sort_, historical_snapshot.probability_tier, historical_snapshot.probability_tier__sort_] limit: 500 column_limit: 50 query_timezone: America/Los_Angeles stacking: normal colors: [black, '#1FD110', '#95d925', '#d0ca0e', '#c77706', '#bf2006', lightgrey, black] show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true show_view_names: true hidden_series: [20 - 39%, 1 - 19%] y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto reference_lines: [{reference_type: line, range_start: max, range_end: min, margin_top: deviation, margin_value: mean, margin_bottom: deviation, line_value: '7200000', label: Goal ($7.2M), color: purple}] point_style: none interpolation: linear - name: historical_pipeline_snapshot title: 'Historical Pipeline Snapshot' type: looker_area model: salesforce explore: historical_snapshot dimensions: [historical_snapshot.snapshot_date, historical_snapshot.stage_name_funnel] pivots: [historical_snapshot.stage_name_funnel] measures: [historical_snapshot.total_amount] filters: historical_snapshot.snapshot_date: 365 days historical_snapshot.stage_name_funnel: -Won,-Lost,-Unknown sorts: [historical_snapshot.snapshot_date desc, historical_snapshot.stage_name_funnel desc, historical_snapshot.stage_name_funnel__sort_] limit: 500 column_limit: 50 query_timezone: America/Los_Angeles stacking: normal colors: ['#7FCDAE', '#85D67C', '#CADF79', '#E7AF75', '#EB9474', '#EE7772'] show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true show_view_names: true y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto point_style: none interpolation: step
LookML
3
rsharma03/blocks_salesforce
submodules/opportunity_snapshot/opportunity_history.dashboard.lookml
[ "MIT" ]
#N canvas 791 132 485 426 12; #X obj 79 323 snapshot~; #X floatatom 79 353 6 0 0 0 - - - 0; #X obj 84 13 sig~; #X obj 79 160 sig~; #X floatatom 79 128 6 0 0 0 - - - 0; #X text 120 15 - convert numbers to audio signal; #X text 51 54 In this example \, the sig~ object converts numbers to an audio signal \, which the snapshot~ converts back again.; #X obj 104 265 metro 200; #X text 275 363 updated for Pd version 0.33; #X text 129 128 <= Scroll to set value; #X obj 104 228 loadbang; #X text 277 168 DSP on/off; #X obj 185 279 sig~ 10; #X obj 185 321 snapshot~; #X floatatom 185 245 6 0 0 0 - - - 0; #X floatatom 185 356 6 0 0 0 - - - 0; #X text 250 267 An argument initializes the signal value., f 15; #X obj 258 169 tgl 17 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1; #X msg 258 196 \; pd dsp \$1; #X connect 0 0 1 0; #X connect 3 0 0 0; #X connect 4 0 3 0; #X connect 7 0 0 0; #X connect 7 0 13 0; #X connect 10 0 7 0; #X connect 12 0 13 0; #X connect 13 0 15 0; #X connect 14 0 12 0; #X connect 17 0 18 0;
Pure Data
4
myQwil/pure-data
doc/5.reference/sig~-help.pd
[ "TCL" ]
--TEST-- Magic methods in overridden stdClass inside namespace --FILE-- <?php namespace test; class foo { public $e = array(); public function __construct() { $this->e[] = $this; } public function __set($a, $b) { var_dump($a, $b); } public function __get($a) { var_dump($a); return $this; } } use test\foo as stdClass; $x = new stdClass; $x->a = 1; $x->b->c = 1; $x->d->e[0]->f = 2; ?> --EXPECT-- string(1) "a" int(1) string(1) "b" string(1) "c" int(1) string(1) "d" string(1) "f" int(2)
PHP
3
thiagooak/php-src
Zend/tests/ns_064.phpt
[ "PHP-3.01" ]
/* Cycript - The Truly Universal Scripting Language * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ /* * Cycript is free software: you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * Cycript is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Cycript. If not, see <http://www.gnu.org/licenses/>. **/ /* }}} */ var NSLog = dlsym(RTLD_DEFAULT, "NSLog"); var slice = [].slice; module.exports = function(format) { var args = slice.call(arguments); new Functor(NSLog, "v" + ["@" for (x in args)].join("")).apply(null, args); };
Cycript
3
pipihi/nx
cycript/Cycript.lib/cycript0.9/org/cycript/NSLog.cy
[ "MIT" ]
(* ** ATS-extsolve: ** For solving ATS-constraints ** with external SMT-solvers *) (* ****** ****** *) (* ** Author: Hongwei Xi ** Authoremail: gmhwxiATgmailDOTcom ** Start time: May, 2015 *) (* ****** ****** *) // extern fun parse_s2exp_node (jsonval): s2exp_node // (* ****** ****** *) implement parse_s2exp (jsnv0) = let // (* val () = println! ( "parse_s2exp: jsnv0 = ", jsnv0 ) (* end of [val] *) *) // val-JSONobject(lxs) = jsnv0 val () = assertloc(length(lxs) >= 2) // val+list_cons(lx, lxs) = lxs val s2t = parse_s2rt (lx.1) // val+list_cons(lx, lxs) = lxs val s2en = parse_s2exp_node (lx.1) // in // s2exp_make_node (s2t, s2en) // end // end of [parse_s2exp] (* ****** ****** *) local fun aux_S2Eint ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x, xs) = xs // in S2Eint(parse_int(x)) end (* end of [aux_S2Eint] *) fun aux_S2Eintinf ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x, xs) = xs // in S2Eintinf(parse_string(x)) end (* end of [aux_S2Eintinf] *) fun aux_S2Ecst ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons(x, xs) = xs // val s2c = parse_s2cst(x) // in s2cst_incby1_nused(s2c); S2Ecst(s2c) end (* end of [aux_S2Ecst] *) fun aux_S2Evar ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x, xs) = xs // in S2Evar(parse_s2var(x)) end (* end of [aux_S2Evar] *) fun aux_S2EVar ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x, xs) = xs // in S2EVar(parse_s2Var(x)) end (* end of [aux_S2EVar] *) fun aux_S2Eeqeq ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x_1, xs) = xs val-list_cons (x_2, xs) = xs // in S2Eeqeq(parse_s2exp(x_1), parse_s2exp(x_2)) end (* end of [aux_S2Eeqeq] *) fun aux_S2Esizeof ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x, xs) = xs // in S2Esizeof(parse_s2exp(x)) end (* end of [aux_S2Esizeof] *) fun aux_S2Eapp ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x_fun, xs) = xs val-list_cons (x_arg, xs) = xs // in S2Eapp(parse_s2exp(x_fun), parse_s2explst(x_arg)) end (* end of [aux_S2Eapp] *) fun aux_S2Emetdec ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x_met, xs) = xs val-list_cons (x_bound, xs) = xs // in S2Emetdec(parse_s2explst(x_met), parse_s2explst(x_bound)) end (* end of [aux_S2Emetdec] *) fun aux_S2Etop ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs val-list_cons (x2, xs) = xs // in S2Etop(parse_int(x1), parse_s2exp(x2)) end (* end of [aux_S2Etop] *) fun aux_S2Einvar ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x, xs) = xs // in S2Einvar(parse_s2exp(x)) end (* end of [aux_S2Einvar] *) fun aux_S2Efun ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs val-list_cons (x2, xs) = xs val-list_cons (x3, xs) = xs // in S2Efun(parse_int(x1), parse_s2explst(x2), parse_s2exp(x3)) end (* end of [aux_S2Efun] *) fun aux_S2Euni ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs val-list_cons (x2, xs) = xs val-list_cons (x3, xs) = xs // in S2Euni(parse_s2varlst(x1), parse_s2explst(x2), parse_s2exp(x3)) end (* end of [aux_S2Euni] *) fun aux_S2Eexi ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs val-list_cons (x2, xs) = xs val-list_cons (x3, xs) = xs // in S2Eexi(parse_s2varlst(x1), parse_s2explst(x2), parse_s2exp(x3)) end (* end of [aux_S2Eexi] *) fun aux_S2Etyrec ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs val-list_cons (x2, xs) = xs val-list_cons (x3, xs) = xs // in S2Etyrec(parse_tyreckind(x1), parse_int(x2), parse_labs2explst(x3)) end (* end of [aux_S2Etyrec] *) fun aux_S2Eextype ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs // in S2Eextype(parse_symbol(x1)) end (* end of [aux_S2Eextype] *) fun aux_S2Eextkind ( x0: jsonval ) : s2exp_node = let // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs // in S2Eextkind(parse_symbol(x1)) end (* end of [aux_S2Eextkind] *) in (* in-of-local *) implement parse_s2exp_node (jsnv0) = let // val-JSONobject(lxs) = jsnv0 // val-list_cons (lx, lxs) = lxs val name = lx.0 and jsnv2 = lx.1 // in // case+ name of // | "S2Eint" => aux_S2Eint(jsnv2) | "S2Eintinf" => aux_S2Eintinf(jsnv2) // | "S2Ecst" => aux_S2Ecst(jsnv2) // | "S2Evar" => aux_S2Evar(jsnv2) // | "S2EVar" => aux_S2EVar(jsnv2) // | "S2Eeqeq" => aux_S2Eeqeq(jsnv2) // | "S2Esizeof" => aux_S2Esizeof(jsnv2) // | "S2Eapp" => aux_S2Eapp(jsnv2) // | "S2Emetdec" => aux_S2Emetdec(jsnv2) // | "S2Etop" => aux_S2Etop(jsnv2) // | "S2Einvar" => aux_S2Einvar(jsnv2) // | "S2Efun" => aux_S2Efun(jsnv2) // | "S2Euni" => aux_S2Euni(jsnv2) | "S2Eexi" => aux_S2Eexi(jsnv2) // | "S2Etyrec" => aux_S2Etyrec(jsnv2) // | "S2Eextype" => aux_S2Eextype(jsnv2) | "S2Eextkind" => aux_S2Eextkind(jsnv2) // | "S2Eignored" => S2Eerror(*void*) // | _(*unrecognized*) => let val () = prerrln! ("parse_s2exp_node: ", name) // end of [val] val ((*exit*)) = assertloc(false) in exit(1) end // end of [unrecognized] // end // end of [parse_s2exp_node] end // end of [local] (* ****** ****** *) local fun aux_SLABELED ( x0: jsonval ) : labs2exp = let // (* val () = println! ( "parse_labs2exp: aux_SLABELED: x0 = ", x0 ) (* end of [val] *) *) // val-JSONarray(xs) = x0 val-list_cons (x1, xs) = xs val-list_cons (x2, xs) = xs val-list_cons (x3, xs) = xs // in SLABELED(parse_label(x1), parse_s2exp(x3)) end (* end of [aux_SLABELED] *) in (* in-of-local *) implement parse_labs2exp (jsnv0) = let // val-JSONobject(lxs) = jsnv0 // val-list_cons (lx, lxs) = lxs val name = lx.0 and jsnv2 = lx.1 // in // case+ name of // | "SL0ABELED" => aux_SLABELED(jsnv2) // | _(*unrecognized*) => let val () = prerrln! ("parse_labs2exp: ", name) // end of [val] val ((*exit*)) = assertloc(false) in exit(1) end // end of [unrecognized] // end // end of [parse_labs2exp] end // end of [local] (* ****** ****** *) (* end of [patsolve_parsing_s2exp.dats] *)
ATS
5
bbarker/ATS-Postiats-contrib
projects/MEDIUM/ATS-extsolve-0.3.2/DATS/PARSING/patsolve_parsing_s2exp.dats
[ "MIT" ]
component { if (!['all'].foo()) { } }
ColdFusion CFC
0
tonym128/CFLint
src/test/resources/com/cflint/tests/Parsing/inlinearray_650.cfc
[ "BSD-3-Clause" ]
/** * */ import Util; import OpenApi; import OpenApiUtil; import EndpointUtil; extends OpenApi; init(config: OpenApi.Config){ super(config); @endpointRule = ''; checkConfig(config); @endpoint = getEndpoint('live-interaction', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint); } function getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: map[string]string, endpoint: string) throws: string{ if (!Util.empty(endpoint)) { return endpoint; } if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) { return endpointMap[regionId]; } return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix); } model ListAppInfosRequest { requestParams?: { type?: string(name='Type', description='关键字类型,包含appName、appId两类'), keyword?: string(name='Keyword', description='关键字'), pageSize?: int32(name='PageSize', description='分页大小,大于0的任意数'), pageNumber?: int32(name='PageNumber', description='页码,从1开始'), }(name='RequestParams'), } model ListAppInfosShrinkRequest { requestParamsShrink?: string(name='RequestParams'), } model ListAppInfosResponseBody = { message?: string(name='Message', description='desc'), requestId?: string(name='RequestId', description='requestId'), httpStatusCode?: int32(name='HttpStatusCode', description='httpStatusCode'), code?: string(name='Code', description='code'), success?: boolean(name='Success', description='success'), result?: { totalCount?: int32(name='TotalCount', description='总数,用于分页'), appInfos?: [ { appId?: string(name='AppId', description='应用Id'), appName?: string(name='AppName', description='应用名'), createTime?: string(name='CreateTime', description='创建时间'), appStatus?: int32(name='AppStatus', description='应用状态'), prodVersion?: string(name='ProdVersion', description='产品版本'), instanceId?: string(name='InstanceId', description='实例Id'), } ](name='AppInfos', description='应用信息列表'), }(name='Result', description='result'), } model ListAppInfosResponse = { headers: map[string]string(name='headers'), body: ListAppInfosResponseBody(name='body'), } async function listAppInfosWithOptions(tmpReq: ListAppInfosRequest, runtime: Util.RuntimeOptions): ListAppInfosResponse { Util.validateModel(tmpReq); var request = new ListAppInfosShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ListAppInfos', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listAppInfos(request: ListAppInfosRequest): ListAppInfosResponse { var runtime = new Util.RuntimeOptions{}; return listAppInfosWithOptions(request, runtime); } model RemoveSingleChatExtensionByKeysRequest { appId?: string(name='AppId'), requestParams?: { appUid?: string(name='AppUid', description='用户id'), appCid?: string(name='AppCid', description='会话id'), keys?: [ string ](name='Keys'), }(name='RequestParams', description='单聊移除拓展字段请求实体'), } model RemoveSingleChatExtensionByKeysShrinkRequest { appId?: string(name='AppId'), requestParamsShrink?: string(name='RequestParams', description='单聊移除拓展字段请求实体'), } model RemoveSingleChatExtensionByKeysResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RemoveSingleChatExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: RemoveSingleChatExtensionByKeysResponseBody(name='body'), } async function removeSingleChatExtensionByKeysWithOptions(tmpReq: RemoveSingleChatExtensionByKeysRequest, runtime: Util.RuntimeOptions): RemoveSingleChatExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new RemoveSingleChatExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveSingleChatExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeSingleChatExtensionByKeys(request: RemoveSingleChatExtensionByKeysRequest): RemoveSingleChatExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return removeSingleChatExtensionByKeysWithOptions(request, runtime); } model ImportMessageRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { messages?: [ { uuid?: string(name='Uuid', description='唯一标识,用于重入'), appCid?: string(name='AppCid', description='会话ID'), conversationType?: long(name='ConversationType', description='会话类型1 单聊 2 群聊'), senderId?: string(name='SenderId', description='发送者ID'), receiverIds?: [ string ](name='ReceiverIds', description='接受者列表, 群聊如果列表为空者全员接收'), contentType?: long(name='ContentType', description='消息类型'), content?: string(name='Content', description='消息内容'), createTime?: long(name='CreateTime', description='消息发送时间戳'), extensions?: map[string]string(name='Extensions', description='自定义信息'), } ](name='Messages'), }(name='RequestParams'), } model ImportMessageShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model ImportMessageResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { importMessageResult?: map[string]ResultImportMessageResultValue(name='ImportMessageResult'), }(name='Result'), } model ImportMessageResponse = { headers: map[string]string(name='headers'), body: ImportMessageResponseBody(name='body'), } async function importMessageWithOptions(tmpReq: ImportMessageRequest, runtime: Util.RuntimeOptions): ImportMessageResponse { Util.validateModel(tmpReq); var request = new ImportMessageShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ImportMessage', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function importMessage(request: ImportMessageRequest): ImportMessageResponse { var runtime = new Util.RuntimeOptions{}; return importMessageWithOptions(request, runtime); } model UnbindInterconnectionUidRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='AIM 用户ID'), dingTalkUid?: string(name='DingTalkUid', description='钉钉 用户ID'), }(name='RequestParams', description='解绑用户请求体'), } model UnbindInterconnectionUidShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='解绑用户请求体'), } model UnbindInterconnectionUidResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model UnbindInterconnectionUidResponse = { headers: map[string]string(name='headers'), body: UnbindInterconnectionUidResponseBody(name='body'), } async function unbindInterconnectionUidWithOptions(tmpReq: UnbindInterconnectionUidRequest, runtime: Util.RuntimeOptions): UnbindInterconnectionUidResponse { Util.validateModel(tmpReq); var request = new UnbindInterconnectionUidShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UnbindInterconnectionUid', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function unbindInterconnectionUid(request: UnbindInterconnectionUidRequest): UnbindInterconnectionUidResponse { var runtime = new Util.RuntimeOptions{}; return unbindInterconnectionUidWithOptions(request, runtime); } model SilenceAllGroupMembersRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), operatorAppUid?: string(name='OperatorAppUid', description='操作者uid'), }(name='RequestParams'), } model SilenceAllGroupMembersShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model SilenceAllGroupMembersResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model SilenceAllGroupMembersResponse = { headers: map[string]string(name='headers'), body: SilenceAllGroupMembersResponseBody(name='body'), } async function silenceAllGroupMembersWithOptions(tmpReq: SilenceAllGroupMembersRequest, runtime: Util.RuntimeOptions): SilenceAllGroupMembersResponse { Util.validateModel(tmpReq); var request = new SilenceAllGroupMembersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SilenceAllGroupMembers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function silenceAllGroupMembers(request: SilenceAllGroupMembersRequest): SilenceAllGroupMembersResponse { var runtime = new Util.RuntimeOptions{}; return silenceAllGroupMembersWithOptions(request, runtime); } model ListRoomMessagesRequest { request?: { domain?: string(name='Domain', description='应用的appKey。'), roomId?: string(name='RoomId', description='房间ID,由调用CreateRoom时返回。'), subType?: int32(name='SubType', description='要查询的消息的类型,请传递100000以上的整数,如果不传,则默认拉取全部类型的消息。'), pageNumber?: int32(name='PageNumber', description='分页查询时的页数,从1开始,每次分页查询时加1。'), pageSize?: int32(name='PageSize', description='分页查询时的请求大小,要求大于0,且最大不得超过100。'), }(name='Request', description='请求参数的结构体。'), } model ListRoomMessagesResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), responseSuccess?: boolean(name='ResponseSuccess', description='请求是否成功。'), errorCode?: string(name='ErrorCode', description='错误码,请求异常时返回。'), errorMessage?: string(name='ErrorMessage', description='错误信息,请求异常时返回。'), result?: { totalCount?: int32(name='TotalCount', description='互动消息的总数。'), roomMessageList?: [ { roomId?: string(name='RoomId', description='房间ID。'), messageId?: string(name='MessageId', description='消息的唯一ID标识。由数字、大小写字母组成,长度不超过20。'), subType?: int32(name='SubType', description='消息的类型。'), senderId?: string(name='SenderId', description='消息的发送者ID。'), sendTimeMillis?: long(name='SendTimeMillis', description='消息的发送时间,毫秒unix时间戳。'), body?: string(name='Body', description='消息体。'), } ](name='RoomMessageList', description='房间的互动消息列表,按照发送时间戳由大到小排序。'), hasMore?: boolean(name='HasMore', description='是否还有下一页查询的数据。'), }(name='Result', description='请求的返回结果。'), } model ListRoomMessagesResponse = { headers: map[string]string(name='headers'), body: ListRoomMessagesResponseBody(name='body'), } async function listRoomMessagesWithOptions(request: ListRoomMessagesRequest, runtime: Util.RuntimeOptions): ListRoomMessagesResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ListRoomMessages', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listRoomMessages(request: ListRoomMessagesRequest): ListRoomMessagesResponse { var runtime = new Util.RuntimeOptions{}; return listRoomMessagesWithOptions(request, runtime); } model SetGroupExtensionByKeysRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid'), extensions?: map[string]string(name='Extensions', description='扩展字段'), }(name='RequestParams', description='群聊设置扩展字段请求实体'), } model SetGroupExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群聊设置扩展字段请求实体'), } model SetGroupExtensionByKeysResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model SetGroupExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: SetGroupExtensionByKeysResponseBody(name='body'), } async function setGroupExtensionByKeysWithOptions(tmpReq: SetGroupExtensionByKeysRequest, runtime: Util.RuntimeOptions): SetGroupExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new SetGroupExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetGroupExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setGroupExtensionByKeys(request: SetGroupExtensionByKeysRequest): SetGroupExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return setGroupExtensionByKeysWithOptions(request, runtime); } model RemoveGroupMemberExtensionByKeysRequest { appId?: string(name='AppId', description='App ID, IMPaaS租户的ID'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), appUid?: string(name='AppUid', description='用户ID'), keys?: [ string ](name='Keys', description='扩展信息中需要删除的key列表'), }(name='RequestParams', description='删除群成员扩展信息的请求体'), } model RemoveGroupMemberExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='App ID, IMPaaS租户的ID'), requestParamsShrink?: string(name='RequestParams', description='删除群成员扩展信息的请求体'), } model RemoveGroupMemberExtensionByKeysResponseBody = { requestId?: string(name='RequestId', description='请求ID'), code?: string(name='Code', description='错误码'), message?: string(name='Message', description='错误信息'), } model RemoveGroupMemberExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: RemoveGroupMemberExtensionByKeysResponseBody(name='body'), } async function removeGroupMemberExtensionByKeysWithOptions(tmpReq: RemoveGroupMemberExtensionByKeysRequest, runtime: Util.RuntimeOptions): RemoveGroupMemberExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new RemoveGroupMemberExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveGroupMemberExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeGroupMemberExtensionByKeys(request: RemoveGroupMemberExtensionByKeysRequest): RemoveGroupMemberExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return removeGroupMemberExtensionByKeysWithOptions(request, runtime); } model AddGroupSilenceBlacklistRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作者'), appCid?: string(name='AppCid', description='群会话id'), members?: [ string ](name='Members', description='禁言用户列表'), silenceDuration?: long(name='SilenceDuration', description='禁言时长'), }(name='RequestParams', description='群禁言添加白名单请求体'), } model AddGroupSilenceBlacklistShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群禁言添加白名单请求体'), } model AddGroupSilenceBlacklistResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model AddGroupSilenceBlacklistResponse = { headers: map[string]string(name='headers'), body: AddGroupSilenceBlacklistResponseBody(name='body'), } async function addGroupSilenceBlacklistWithOptions(tmpReq: AddGroupSilenceBlacklistRequest, runtime: Util.RuntimeOptions): AddGroupSilenceBlacklistResponse { Util.validateModel(tmpReq); var request = new AddGroupSilenceBlacklistShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('AddGroupSilenceBlacklist', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function addGroupSilenceBlacklist(request: AddGroupSilenceBlacklistRequest): AddGroupSilenceBlacklistResponse { var runtime = new Util.RuntimeOptions{}; return addGroupSilenceBlacklistWithOptions(request, runtime); } model RemoveGroupSilenceWhitelistRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作者'), appCid?: string(name='AppCid', description='群会话id'), members?: [ string ](name='Members', description='禁言用户列表'), }(name='RequestParams', description='群禁言添加白名单请求体'), } model RemoveGroupSilenceWhitelistShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群禁言添加白名单请求体'), } model RemoveGroupSilenceWhitelistResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RemoveGroupSilenceWhitelistResponse = { headers: map[string]string(name='headers'), body: RemoveGroupSilenceWhitelistResponseBody(name='body'), } async function removeGroupSilenceWhitelistWithOptions(tmpReq: RemoveGroupSilenceWhitelistRequest, runtime: Util.RuntimeOptions): RemoveGroupSilenceWhitelistResponse { Util.validateModel(tmpReq); var request = new RemoveGroupSilenceWhitelistShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveGroupSilenceWhitelist', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeGroupSilenceWhitelist(request: RemoveGroupSilenceWhitelistRequest): RemoveGroupSilenceWhitelistResponse { var runtime = new Util.RuntimeOptions{}; return removeGroupSilenceWhitelistWithOptions(request, runtime); } model ListDetailReportStatisticsRequest { appId?: string(name='AppId', description='应用Id'), requestParams?: { startTime?: string(name='StartTime', description='开始时间,utc'), endTime?: string(name='EndTime', description='结束时间,utc'), reportStatisticsType?: string(name='ReportStatisticsType', description='报表类型 user、groupChat、message'), }(name='RequestParams', description='请求'), } model ListDetailReportStatisticsShrinkRequest { appId?: string(name='AppId', description='应用Id'), requestParamsShrink?: string(name='RequestParams', description='请求'), } model ListDetailReportStatisticsResponseBody = { message?: string(name='Message', description='desc'), requestId?: string(name='RequestId', description='requestId'), httpStatusCode?: int32(name='HttpStatusCode', description='httpStatusCode'), code?: string(name='Code', description='code'), success?: boolean(name='Success', description='success'), result?: { data?: [ map[string]any ](name='Data', description='数据'), }(name='Result', description='result'), } model ListDetailReportStatisticsResponse = { headers: map[string]string(name='headers'), body: ListDetailReportStatisticsResponseBody(name='body'), } async function listDetailReportStatisticsWithOptions(tmpReq: ListDetailReportStatisticsRequest, runtime: Util.RuntimeOptions): ListDetailReportStatisticsResponse { Util.validateModel(tmpReq); var request = new ListDetailReportStatisticsShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ListDetailReportStatistics', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listDetailReportStatistics(request: ListDetailReportStatisticsRequest): ListDetailReportStatisticsResponse { var runtime = new Util.RuntimeOptions{}; return listDetailReportStatisticsWithOptions(request, runtime); } model SetUserConversationExtensionByKeysRequest { appId?: string(name='AppId'), requestParams?: { appUid?: string(name='AppUid', description='用户id'), appCid?: string(name='AppCid', description='会话id'), extensions?: map[string]string(name='Extensions', description='拓展字段'), }(name='RequestParams', description='设置用户拓展字段请求实体'), } model SetUserConversationExtensionByKeysShrinkRequest { appId?: string(name='AppId'), requestParamsShrink?: string(name='RequestParams', description='设置用户拓展字段请求实体'), } model SetUserConversationExtensionByKeysResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model SetUserConversationExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: SetUserConversationExtensionByKeysResponseBody(name='body'), } async function setUserConversationExtensionByKeysWithOptions(tmpReq: SetUserConversationExtensionByKeysRequest, runtime: Util.RuntimeOptions): SetUserConversationExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new SetUserConversationExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetUserConversationExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setUserConversationExtensionByKeys(request: SetUserConversationExtensionByKeysRequest): SetUserConversationExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return setUserConversationExtensionByKeysWithOptions(request, runtime); } model GetGroupByIdRequest { appId?: string(name='AppId', description='APP ID, IMPaaS租户的ID'), requestParams?: { appCid?: string(name='AppCid', description='群会话ID'), }(name='RequestParams', description='群会话信息获取的请求体'), } model GetGroupByIdShrinkRequest { appId?: string(name='AppId', description='APP ID, IMPaaS租户的ID'), requestParamsShrink?: string(name='RequestParams', description='群会话信息获取的请求体'), } model GetGroupByIdResponseBody = { requestId?: string(name='RequestId', description='请求ID'), code?: string(name='Code', description='错误码'), message?: string(name='Message', description='错误信息'), result?: { appCid?: string(name='AppCid', description='群会话ID'), ownerAppUid?: string(name='OwnerAppUid', description='群主ID'), iconMediaId?: string(name='IconMediaId', description='群图像'), title?: string(name='Title', description='群名称'), memberCount?: int32(name='MemberCount', description='当前群人数'), memberLimit?: int32(name='MemberLimit', description='群人数上限'), extensions?: map[string]string(name='Extensions', description='群扩展信息'), ceateTime?: long(name='CeateTime', description='群创建时间'), }(name='Result', description='群信息获取的返回结果'), } model GetGroupByIdResponse = { headers: map[string]string(name='headers'), body: GetGroupByIdResponseBody(name='body'), } async function getGroupByIdWithOptions(tmpReq: GetGroupByIdRequest, runtime: Util.RuntimeOptions): GetGroupByIdResponse { Util.validateModel(tmpReq); var request = new GetGroupByIdShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetGroupById', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getGroupById(request: GetGroupByIdRequest): GetGroupByIdResponse { var runtime = new Util.RuntimeOptions{}; return getGroupByIdWithOptions(request, runtime); } model UpdateTenantStatusRequest { request?: { domain?: string(name='domain', description='应用appKey'), status?: long(name='status', description='应用状态'), }(name='Request'), } model UpdateTenantStatusResponseBody = { responseSuccess?: boolean(name='ResponseSuccess', description='Id of the request'), errorCode?: string(name='errorCode', description='错误码'), errorMsg?: string(name='errorMsg', description='错误信息'), result?: boolean(name='result', description='是否更新成功'), requestId?: string(name='RequestId'), } model UpdateTenantStatusResponse = { headers: map[string]string(name='headers'), body: UpdateTenantStatusResponseBody(name='body'), } async function updateTenantStatusWithOptions(request: UpdateTenantStatusRequest, runtime: Util.RuntimeOptions): UpdateTenantStatusResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateTenantStatus', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateTenantStatus(request: UpdateTenantStatusRequest): UpdateTenantStatusResponse { var runtime = new Util.RuntimeOptions{}; return updateTenantStatusWithOptions(request, runtime); } model GetCommonConfigRequest { appId?: string(name='AppId', description='应用id'), } model GetCommonConfigResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), success?: boolean(name='Success', description='是否成功'), code?: string(name='Code', description='错误码'), message?: string(name='Message', description='错误信息'), result?: { commonConfig?: { loginConfig?: { loginType?: int32(name='LoginType', description='登录类型'), }(name='LoginConfig', description='登录配置'), appConfigs?: [ { appKey?: string(name='AppKey', description='appKey'), platform?: string(name='Platform', description='平台'), } ](name='AppConfigs', description='app配置'), }(name='CommonConfig', description='通用配置'), }(name='Result', description='返回值'), } model GetCommonConfigResponse = { headers: map[string]string(name='headers'), body: GetCommonConfigResponseBody(name='body'), } async function getCommonConfigWithOptions(request: GetCommonConfigRequest, runtime: Util.RuntimeOptions): GetCommonConfigResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetCommonConfig', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getCommonConfig(request: GetCommonConfigRequest): GetCommonConfigResponse { var runtime = new Util.RuntimeOptions{}; return getCommonConfigWithOptions(request, runtime); } model SendMessageRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { uuid?: string(name='Uuid', description='消息UUID'), appCid?: string(name='AppCid', description='会话ID'), conversationType?: int32(name='ConversationType', description='会话类型'), senderId?: string(name='SenderId', description='发送者UID'), contentType?: int32(name='ContentType', description='消息内容类型'), content?: string(name='Content', description='消息内容Json'), extensions?: map[string]string(name='Extensions', description='消息扩展字段'), options?: { redPointPolicy?: int32(name='RedPointPolicy', description='未读消息小红点控制。0:增加小红点; 1:不增加小红点'), receiveScopeOption?: { receiverIds?: [ string ](name='ReceiverIds', description='接受者列表'), excludeReceiverIds?: [ string ](name='ExcludeReceiverIds', description='不接收者列表'), receiveScope?: int32(name='ReceiveScope', description='消息获取控制。0: 会话内除指定ExcludeReceivers均可获取;1: 会话内仅指定ReceiverIds可获取'), }(name='ReceiveScopeOption', description='接受相关设置'), singleChatCreateRequest?: { appCid?: string(name='AppCid', description='单聊会话ID'), appUids?: [ string ](name='AppUids', description='用户ID列表'), extensions?: map[string]string(name='Extensions', description='扩展信息'), userConversation?: map[string]RequestParamsOptionsSingleChatCreateRequestUserConversationValue(name='UserConversation', description='用户会话视图信息'), }(name='SingleChatCreateRequest', description='单聊会话不存在时新建自定义单聊请求体'), }(name='Options', description='消息设置'), }(name='RequestParams', description='消息发送请求体'), } model SendMessageShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='消息发送请求体'), } model SendMessageResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { msgId?: string(name='MsgId', description='消息ID'), createTime?: long(name='CreateTime', description='消息创建时间戳(毫秒)'), }(name='Result'), } model SendMessageResponse = { headers: map[string]string(name='headers'), body: SendMessageResponseBody(name='body'), } async function sendMessageWithOptions(tmpReq: SendMessageRequest, runtime: Util.RuntimeOptions): SendMessageResponse { Util.validateModel(tmpReq); var request = new SendMessageShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SendMessage', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function sendMessage(request: SendMessageRequest): SendMessageResponse { var runtime = new Util.RuntimeOptions{}; return sendMessageWithOptions(request, runtime); } model UpdateGroupMembersRoleRequest { appId?: string(name='AppId', description='App ID。IMPaaS租户的ID。'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), operatorAppUid?: string(name='OperatorAppUid', description='操作用户ID。'), role?: int32(name='Role', description='更新后的成员角色。取值: 2:管理员。 3:普通。 100~127:自定义。 不能为1。'), appUids?: [ string ](name='AppUids', description='需要更改的uids'), }(name='RequestParams', description='更新群成员角色请求体。'), } model UpdateGroupMembersRoleShrinkRequest { appId?: string(name='AppId', description='App ID。IMPaaS租户的ID。'), requestParamsShrink?: string(name='RequestParams', description='更新群成员角色请求体。'), } model UpdateGroupMembersRoleResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), code?: string(name='Code', description='错误码。'), message?: string(name='Message', description='错误信息。'), } model UpdateGroupMembersRoleResponse = { headers: map[string]string(name='headers'), body: UpdateGroupMembersRoleResponseBody(name='body'), } async function updateGroupMembersRoleWithOptions(tmpReq: UpdateGroupMembersRoleRequest, runtime: Util.RuntimeOptions): UpdateGroupMembersRoleResponse { Util.validateModel(tmpReq); var request = new UpdateGroupMembersRoleShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateGroupMembersRole', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateGroupMembersRole(request: UpdateGroupMembersRoleRequest): UpdateGroupMembersRoleResponse { var runtime = new Util.RuntimeOptions{}; return updateGroupMembersRoleWithOptions(request, runtime); } model CancelSilenceAllGroupMembersRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), operatorAppUid?: string(name='OperatorAppUid', description='操作者uid'), }(name='RequestParams'), } model CancelSilenceAllGroupMembersShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model CancelSilenceAllGroupMembersResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model CancelSilenceAllGroupMembersResponse = { headers: map[string]string(name='headers'), body: CancelSilenceAllGroupMembersResponseBody(name='body'), } async function cancelSilenceAllGroupMembersWithOptions(tmpReq: CancelSilenceAllGroupMembersRequest, runtime: Util.RuntimeOptions): CancelSilenceAllGroupMembersResponse { Util.validateModel(tmpReq); var request = new CancelSilenceAllGroupMembersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('CancelSilenceAllGroupMembers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function cancelSilenceAllGroupMembers(request: CancelSilenceAllGroupMembersRequest): CancelSilenceAllGroupMembersResponse { var runtime = new Util.RuntimeOptions{}; return cancelSilenceAllGroupMembersWithOptions(request, runtime); } model UpdateGroupIconRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), operatorAppUid?: string(name='OperatorAppUid', description='操作者用户ID'), iconMediaId?: string(name='IconMediaId', description='群聊头像文件MediaID'), }(name='RequestParams'), } model UpdateGroupIconShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model UpdateGroupIconResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model UpdateGroupIconResponse = { headers: map[string]string(name='headers'), body: UpdateGroupIconResponseBody(name='body'), } async function updateGroupIconWithOptions(tmpReq: UpdateGroupIconRequest, runtime: Util.RuntimeOptions): UpdateGroupIconResponse { Util.validateModel(tmpReq); var request = new UpdateGroupIconShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateGroupIcon', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateGroupIcon(request: UpdateGroupIconRequest): UpdateGroupIconResponse { var runtime = new Util.RuntimeOptions{}; return updateGroupIconWithOptions(request, runtime); } model RemoveGroupMembersRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid'), appCid?: string(name='AppCid'), appUidsRemoved?: [ string ](name='AppUidsRemoved'), }(name='RequestParams', description='群踢人请求实体'), } model RemoveGroupMembersShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群踢人请求实体'), } model RemoveGroupMembersResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RemoveGroupMembersResponse = { headers: map[string]string(name='headers'), body: RemoveGroupMembersResponseBody(name='body'), } async function removeGroupMembersWithOptions(tmpReq: RemoveGroupMembersRequest, runtime: Util.RuntimeOptions): RemoveGroupMembersResponse { Util.validateModel(tmpReq); var request = new RemoveGroupMembersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveGroupMembers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeGroupMembers(request: RemoveGroupMembersRequest): RemoveGroupMembersResponse { var runtime = new Util.RuntimeOptions{}; return removeGroupMembersWithOptions(request, runtime); } model ListGroupAllMembersRequest { appId?: string(name='AppId', description='App ID, IMPaaS租户的ID'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), }(name='RequestParams', description='拉取群成员列表的请求体'), } model ListGroupAllMembersShrinkRequest { appId?: string(name='AppId', description='App ID, IMPaaS租户的ID'), requestParamsShrink?: string(name='RequestParams', description='拉取群成员列表的请求体'), } model ListGroupAllMembersResponseBody = { requestId?: string(name='RequestId', description='请求ID'), code?: string(name='Code', description='错误码'), message?: string(name='Message', description='错误信息'), result?: { members?: [ { appUid?: string(name='AppUid', description='群成员ID'), role?: int32(name='Role', description='群成员角色'), nick?: string(name='Nick', description='群成员昵称'), joinTime?: long(name='JoinTime', description='群成员入群时间'), extensions?: map[string]string(name='Extensions', description='群成员扩展信息'), } ](name='Members', description='群成员列表'), }(name='Result', description='拉取群成员列表的结果'), } model ListGroupAllMembersResponse = { headers: map[string]string(name='headers'), body: ListGroupAllMembersResponseBody(name='body'), } async function listGroupAllMembersWithOptions(tmpReq: ListGroupAllMembersRequest, runtime: Util.RuntimeOptions): ListGroupAllMembersResponse { Util.validateModel(tmpReq); var request = new ListGroupAllMembersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ListGroupAllMembers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listGroupAllMembers(request: ListGroupAllMembersRequest): ListGroupAllMembersResponse { var runtime = new Util.RuntimeOptions{}; return listGroupAllMembersWithOptions(request, runtime); } model GetUserMuteSettingRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUids?: [ string ](name='AppUids', description='用户列表'), }(name='RequestParams'), } model GetUserMuteSettingShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model GetUserMuteSettingResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), code?: string(name='Code'), message?: string(name='Message'), result?: { userMuteSettings?: map[string]ResultUserMuteSettingsValue(name='UserMuteSettings'), }(name='Result', description='返回值'), } model GetUserMuteSettingResponse = { headers: map[string]string(name='headers'), body: GetUserMuteSettingResponseBody(name='body'), } async function getUserMuteSettingWithOptions(tmpReq: GetUserMuteSettingRequest, runtime: Util.RuntimeOptions): GetUserMuteSettingResponse { Util.validateModel(tmpReq); var request = new GetUserMuteSettingShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetUserMuteSetting', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getUserMuteSetting(request: GetUserMuteSettingRequest): GetUserMuteSettingResponse { var runtime = new Util.RuntimeOptions{}; return getUserMuteSettingWithOptions(request, runtime); } model GetRoomStatisticsRequest { request?: { domain?: string(name='Domain', description='应用的appKey。'), roomId?: string(name='RoomId', description='房间ID,由调用CreateRoom时返回。'), }(name='Request', description='请求参数的结构体。'), } model GetRoomStatisticsResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), responseSuccess?: boolean(name='ResponseSuccess', description='请求是否成功。'), errorCode?: string(name='ErrorCode', description='错误码,请求异常时返回。'), errorMessage?: string(name='ErrorMessage', description='错误信息,请求异常时返回。'), result?: { onlineCount?: int32(name='OnlineCount', description='当前房间的在线观众数。'), UV?: int32(name='UV', description='当前房间的历史用户访问数目(UV)。'), PV?: int32(name='PV', description='当前房间的历史访问数目(PV)。'), }(name='Result', description='请求的返回结果。'), } model GetRoomStatisticsResponse = { headers: map[string]string(name='headers'), body: GetRoomStatisticsResponseBody(name='body'), } async function getRoomStatisticsWithOptions(request: GetRoomStatisticsRequest, runtime: Util.RuntimeOptions): GetRoomStatisticsResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetRoomStatistics', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getRoomStatistics(request: GetRoomStatisticsRequest): GetRoomStatisticsResponse { var runtime = new Util.RuntimeOptions{}; return getRoomStatisticsWithOptions(request, runtime); } model AddGroupMembersRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作者'), appCid?: string(name='AppCid', description='会话id'), initMembers?: [ { appUid?: string(name='AppUid'), role?: int32(name='Role', description='1群主,2管理员,3普通'), nick?: string(name='Nick'), joinTime?: long(name='JoinTime', description='unix毫秒数'), extensions?: map[string]string(name='Extensions'), } ](name='InitMembers', description='初始化成员'), }(name='RequestParams', description='群加人请求实体'), } model AddGroupMembersShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群加人请求实体'), } model AddGroupMembersResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model AddGroupMembersResponse = { headers: map[string]string(name='headers'), body: AddGroupMembersResponseBody(name='body'), } async function addGroupMembersWithOptions(tmpReq: AddGroupMembersRequest, runtime: Util.RuntimeOptions): AddGroupMembersResponse { Util.validateModel(tmpReq); var request = new AddGroupMembersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('AddGroupMembers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function addGroupMembers(request: AddGroupMembersRequest): AddGroupMembersResponse { var runtime = new Util.RuntimeOptions{}; return addGroupMembersWithOptions(request, runtime); } model GetGroupMemberByIdsRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话id'), appUids?: [ string ](name='AppUids', description='appUid'), }(name='RequestParams', description='群聊设置扩展字段请求实体'), } model GetGroupMemberByIdsShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群聊设置扩展字段请求实体'), } model GetGroupMemberByIdsResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { members?: [ { appUid?: string(name='AppUid'), role?: int32(name='Role'), nick?: string(name='Nick'), joinTime?: long(name='JoinTime'), extensions?: map[string]string(name='Extensions'), } ](name='Members', description='群成员'), }(name='Result'), } model GetGroupMemberByIdsResponse = { headers: map[string]string(name='headers'), body: GetGroupMemberByIdsResponseBody(name='body'), } async function getGroupMemberByIdsWithOptions(tmpReq: GetGroupMemberByIdsRequest, runtime: Util.RuntimeOptions): GetGroupMemberByIdsResponse { Util.validateModel(tmpReq); var request = new GetGroupMemberByIdsShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetGroupMemberByIds', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getGroupMemberByIds(request: GetGroupMemberByIdsRequest): GetGroupMemberByIdsResponse { var runtime = new Util.RuntimeOptions{}; return getGroupMemberByIdsWithOptions(request, runtime); } model SendCustomMessageRequest { request?: { domain?: string(name='Domain', description='应用的appKey。'), roomId?: string(name='RoomId', description='房间ID,由调用CreateRoom时返回。'), senderId?: string(name='SenderId', description='消息的发送者ID。'), subType?: int32(name='SubType', description='消息的类型,由业务自定义,请传递100000以上。'), body?: string(name='Body', description='消息体。'), }(name='Request', description='请求参数的结构体。'), } model SendCustomMessageResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), responseSuccess?: boolean(name='ResponseSuccess', description='请求是否成功。'), errorCode?: string(name='ErrorCode', description='错误码,请求异常时返回。'), errorMessage?: string(name='ErrorMessage', description='错误信息,请求异常时返回。'), result?: { messageId?: string(name='MessageId', description='消息的唯一ID标识。由数字、大小写字母组成,长度不超过20。'), }(name='Result', description='请求的返回结果。'), } model SendCustomMessageResponse = { headers: map[string]string(name='headers'), body: SendCustomMessageResponseBody(name='body'), } async function sendCustomMessageWithOptions(request: SendCustomMessageRequest, runtime: Util.RuntimeOptions): SendCustomMessageResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SendCustomMessage', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function sendCustomMessage(request: SendCustomMessageRequest): SendCustomMessageResponse { var runtime = new Util.RuntimeOptions{}; return sendCustomMessageWithOptions(request, runtime); } model UpdateAppNameRequest { appId?: string(name='AppId', description='应用Id'), requestParams?: { appName?: string(name='AppName', description='应用名'), }(name='RequestParams', description='请求'), } model UpdateAppNameShrinkRequest { appId?: string(name='AppId', description='应用Id'), requestParamsShrink?: string(name='RequestParams', description='请求'), } model UpdateAppNameResponseBody = { message?: string(name='Message', description='desc'), requestId?: string(name='RequestId', description='requestId'), httpStatusCode?: int32(name='HttpStatusCode', description='httpStatusCode'), code?: string(name='Code', description='code'), success?: boolean(name='Success', description='success'), } model UpdateAppNameResponse = { headers: map[string]string(name='headers'), body: UpdateAppNameResponseBody(name='body'), } async function updateAppNameWithOptions(tmpReq: UpdateAppNameRequest, runtime: Util.RuntimeOptions): UpdateAppNameResponse { Util.validateModel(tmpReq); var request = new UpdateAppNameShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateAppName', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateAppName(request: UpdateAppNameRequest): UpdateAppNameResponse { var runtime = new Util.RuntimeOptions{}; return updateAppNameWithOptions(request, runtime); } model GetIMConfigRequest { appId?: string(name='AppId', description='应用名'), } model GetIMConfigResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), success?: boolean(name='Success'), code?: string(name='Code', description='错误码'), httpStatusCode?: int32(name='HttpStatusCode', description='网络错误码'), messaage?: string(name='Messaage', description='错误信息'), result?: { imConfig?: { msgConfig?: { clientMsgRecallTimeIntervalMinute?: long(name='ClientMsgRecallTimeIntervalMinute', description='消息撤回时间,分钟'), }(name='MsgConfig', description='消息配置'), callbackConfig?: { callbackUrl?: string(name='CallbackUrl', description='回调url,支持外部url'), signatureKey?: string(name='SignatureKey', description='加签密钥-key'), signatureValue?: string(name='SignatureValue', description='加签密钥-value'), apis?: map[string]boolean(name='Apis', description='已开通的回调方法Id列表'), spis?: map[string]boolean(name='Spis', description='已开通的回调方法Id列表'), events?: map[string]boolean(name='Events', description='已开通的事件输出列表'), }(name='CallbackConfig', description='回调配置'), }(name='ImConfig', description='im相关配置'), }(name='Result', description='返回结果'), } model GetIMConfigResponse = { headers: map[string]string(name='headers'), body: GetIMConfigResponseBody(name='body'), } async function getIMConfigWithOptions(request: GetIMConfigRequest, runtime: Util.RuntimeOptions): GetIMConfigResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetIMConfig', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getIMConfig(request: GetIMConfigRequest): GetIMConfigResponse { var runtime = new Util.RuntimeOptions{}; return getIMConfigWithOptions(request, runtime); } model SetSingleChatExtensionByKeysRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='用户id'), appCid?: string(name='AppCid', description='会话id'), extensions?: map[string]string(name='Extensions', description='拓展字段'), }(name='RequestParams', description='创建群聊请求实体'), } model SetSingleChatExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='创建群聊请求实体'), } model SetSingleChatExtensionByKeysResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model SetSingleChatExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: SetSingleChatExtensionByKeysResponseBody(name='body'), } async function setSingleChatExtensionByKeysWithOptions(tmpReq: SetSingleChatExtensionByKeysRequest, runtime: Util.RuntimeOptions): SetSingleChatExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new SetSingleChatExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetSingleChatExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setSingleChatExtensionByKeys(request: SetSingleChatExtensionByKeysRequest): SetSingleChatExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return setSingleChatExtensionByKeysWithOptions(request, runtime); } model UpdateAppStatusRequest { appId?: string(name='AppId', description='应用Id'), requestParams?: { enable?: boolean(name='Enable', description='是否开启'), }(name='RequestParams', description='请求'), } model UpdateAppStatusShrinkRequest { appId?: string(name='AppId', description='应用Id'), requestParamsShrink?: string(name='RequestParams', description='请求'), } model UpdateAppStatusResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), success?: boolean(name='Success', description='是否成功'), message?: string(name='Message', description='错误信息'), code?: string(name='Code', description='错误码'), } model UpdateAppStatusResponse = { headers: map[string]string(name='headers'), body: UpdateAppStatusResponseBody(name='body'), } async function updateAppStatusWithOptions(tmpReq: UpdateAppStatusRequest, runtime: Util.RuntimeOptions): UpdateAppStatusResponse { Util.validateModel(tmpReq); var request = new UpdateAppStatusShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateAppStatus', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateAppStatus(request: UpdateAppStatusRequest): UpdateAppStatusResponse { var runtime = new Util.RuntimeOptions{}; return updateAppStatusWithOptions(request, runtime); } model MuteUsersRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUids?: [ string ](name='AppUids', description='需要禁言的用户'), muteDuration?: long(name='MuteDuration', description='单位秒'), mute?: boolean(name='Mute', description='true: 禁言, false: 解除禁言'), }(name='RequestParams'), } model MuteUsersShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model MuteUsersResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), code?: string(name='Code'), message?: string(name='Message'), } model MuteUsersResponse = { headers: map[string]string(name='headers'), body: MuteUsersResponseBody(name='body'), } async function muteUsersWithOptions(tmpReq: MuteUsersRequest, runtime: Util.RuntimeOptions): MuteUsersResponse { Util.validateModel(tmpReq); var request = new MuteUsersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('MuteUsers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function muteUsers(request: MuteUsersRequest): MuteUsersResponse { var runtime = new Util.RuntimeOptions{}; return muteUsersWithOptions(request, runtime); } model RecallMessageRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='操作者ID'), appCid?: string(name='AppCid', description='会话ID'), msgId?: string(name='MsgId', description='消息ID'), type?: int32(name='Type', description='撤回显示类型(默认为0)。0:静默撤回,不显示撤回信息,1:普通撤回,显示撤回信息;'), operatorType?: int32(name='OperatorType', description='操作者类型(默认为0)。0: 发送者; 1: 群主; 2: 系统; 3: 安全合规; 101: 业务自定义类型'), extensions?: map[string]string(name='Extensions', description='业务自定义扩展字段'), }(name='RequestParams'), } model RecallMessageShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model RecallMessageResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RecallMessageResponse = { headers: map[string]string(name='headers'), body: RecallMessageResponseBody(name='body'), } async function recallMessageWithOptions(tmpReq: RecallMessageRequest, runtime: Util.RuntimeOptions): RecallMessageResponse { Util.validateModel(tmpReq); var request = new RecallMessageShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RecallMessage', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function recallMessage(request: RecallMessageRequest): RecallMessageResponse { var runtime = new Util.RuntimeOptions{}; return recallMessageWithOptions(request, runtime); } model AddGroupSilenceWhitelistRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作者'), appCid?: string(name='AppCid', description='群会话id'), members?: [ string ](name='Members', description='禁言用户列表'), }(name='RequestParams', description='群禁言添加白名单请求体'), } model AddGroupSilenceWhitelistShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群禁言添加白名单请求体'), } model AddGroupSilenceWhitelistResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model AddGroupSilenceWhitelistResponse = { headers: map[string]string(name='headers'), body: AddGroupSilenceWhitelistResponseBody(name='body'), } async function addGroupSilenceWhitelistWithOptions(tmpReq: AddGroupSilenceWhitelistRequest, runtime: Util.RuntimeOptions): AddGroupSilenceWhitelistResponse { Util.validateModel(tmpReq); var request = new AddGroupSilenceWhitelistShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('AddGroupSilenceWhitelist', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function addGroupSilenceWhitelist(request: AddGroupSilenceWhitelistRequest): AddGroupSilenceWhitelistResponse { var runtime = new Util.RuntimeOptions{}; return addGroupSilenceWhitelistWithOptions(request, runtime); } model SetGroupOwnerRequest { appId?: string(name='AppId', description='App ID,IMPaaS租户的ID'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), newOwnerAppUid?: string(name='NewOwnerAppUid', description='新群主'), }(name='RequestParams', description='群主转让的请求体'), } model SetGroupOwnerShrinkRequest { appId?: string(name='AppId', description='App ID,IMPaaS租户的ID'), requestParamsShrink?: string(name='RequestParams', description='群主转让的请求体'), } model SetGroupOwnerResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), code?: string(name='Code', description='错误码。'), message?: string(name='Message', description='错误信息。'), } model SetGroupOwnerResponse = { headers: map[string]string(name='headers'), body: SetGroupOwnerResponseBody(name='body'), } async function setGroupOwnerWithOptions(tmpReq: SetGroupOwnerRequest, runtime: Util.RuntimeOptions): SetGroupOwnerResponse { Util.validateModel(tmpReq); var request = new SetGroupOwnerShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetGroupOwner', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setGroupOwner(request: SetGroupOwnerRequest): SetGroupOwnerResponse { var runtime = new Util.RuntimeOptions{}; return setGroupOwnerWithOptions(request, runtime); } model ListRoomUsersRequest { request?: { domain?: string(name='Domain', description='应用的appKey。'), roomId?: string(name='RoomId', description='房间ID,由调用CreateRoom时返回。'), pageNumber?: int32(name='PageNumber', description='分页查询时的页数,从1开始,每次分页查询时加1。'), pageSize?: int32(name='PageSize', description='分页查询时的请求大小,要求大于0,最大不得超过100。'), }(name='Request', description='请求参数的结构体。'), } model ListRoomUsersResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), responseSuccess?: boolean(name='ResponseSuccess', description='请求是否成功。'), errorCode?: string(name='ErrorCode', description='错误码,请求异常时返回。'), errorMessage?: string(name='ErrorMessage', description='错误信息,请求异常时返回。'), result?: { totalCount?: int32(name='TotalCount', description='房间的历史观看成员总数。'), roomUserVOList?: [ { roomId?: string(name='RoomId', description='房间ID。'), userId?: string(name='UserId', description='用户ID。'), nick?: string(name='Nick', description='用户的昵称。'), } ](name='RoomUserVOList', description='返回的观众列表。'), hasMore?: boolean(name='HasMore', description='是否还有下一页查询的数据。'), }(name='Result', description='请求的返回结果。'), } model ListRoomUsersResponse = { headers: map[string]string(name='headers'), body: ListRoomUsersResponseBody(name='body'), } async function listRoomUsersWithOptions(request: ListRoomUsersRequest, runtime: Util.RuntimeOptions): ListRoomUsersResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ListRoomUsers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listRoomUsers(request: ListRoomUsersRequest): ListRoomUsersResponse { var runtime = new Util.RuntimeOptions{}; return listRoomUsersWithOptions(request, runtime); } model DeleteAppRequest { appId?: string(name='AppId', description='应用id'), } model DeleteAppResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), success?: boolean(name='Success', description='是否成功'), message?: string(name='Message', description='错误信息'), code?: string(name='Code', description='错误码'), } model DeleteAppResponse = { headers: map[string]string(name='headers'), body: DeleteAppResponseBody(name='body'), } async function deleteAppWithOptions(request: DeleteAppRequest, runtime: Util.RuntimeOptions): DeleteAppResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DeleteApp', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function deleteApp(request: DeleteAppRequest): DeleteAppResponse { var runtime = new Util.RuntimeOptions{}; return deleteAppWithOptions(request, runtime); } model RemoveGroupSilenceBlacklistRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作者'), appCid?: string(name='AppCid', description='群会话id'), members?: [ string ](name='Members', description='禁言用户列表'), }(name='RequestParams', description='群禁言删除黑名单请求体'), } model RemoveGroupSilenceBlacklistShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群禁言删除黑名单请求体'), } model RemoveGroupSilenceBlacklistResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RemoveGroupSilenceBlacklistResponse = { headers: map[string]string(name='headers'), body: RemoveGroupSilenceBlacklistResponseBody(name='body'), } async function removeGroupSilenceBlacklistWithOptions(tmpReq: RemoveGroupSilenceBlacklistRequest, runtime: Util.RuntimeOptions): RemoveGroupSilenceBlacklistResponse { Util.validateModel(tmpReq); var request = new RemoveGroupSilenceBlacklistShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveGroupSilenceBlacklist', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeGroupSilenceBlacklist(request: RemoveGroupSilenceBlacklistRequest): RemoveGroupSilenceBlacklistResponse { var runtime = new Util.RuntimeOptions{}; return removeGroupSilenceBlacklistWithOptions(request, runtime); } model RemoveMessageExtensionByKeysRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), msgId?: string(name='MsgId', description='消息ID'), keys?: [ string ](name='Keys', description='需删除的Key'), }(name='RequestParams'), } model RemoveMessageExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model RemoveMessageExtensionByKeysResponseBody = { requestId?: string(name='RequestId', description='请求ID'), code?: string(name='Code', description='错误码,成功时为0'), message?: string(name='Message', description='错误信息,成功时为0 空'), } model RemoveMessageExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: RemoveMessageExtensionByKeysResponseBody(name='body'), } async function removeMessageExtensionByKeysWithOptions(tmpReq: RemoveMessageExtensionByKeysRequest, runtime: Util.RuntimeOptions): RemoveMessageExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new RemoveMessageExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveMessageExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeMessageExtensionByKeys(request: RemoveMessageExtensionByKeysRequest): RemoveMessageExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return removeMessageExtensionByKeysWithOptions(request, runtime); } model GetMediaUploadUrlRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { mimeType?: string(name='MimeType', description='多媒体资源类型(文件后缀名)'), }(name='RequestParams'), } model GetMediaUploadUrlShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model GetMediaUploadUrlResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { uploadUrl?: string(name='UploadUrl', description='上传Url'), mediaId?: string(name='MediaId', description='多媒体文件ID'), }(name='Result', description='调用返回值'), } model GetMediaUploadUrlResponse = { headers: map[string]string(name='headers'), body: GetMediaUploadUrlResponseBody(name='body'), } async function getMediaUploadUrlWithOptions(tmpReq: GetMediaUploadUrlRequest, runtime: Util.RuntimeOptions): GetMediaUploadUrlResponse { Util.validateModel(tmpReq); var request = new GetMediaUploadUrlShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetMediaUploadUrl', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getMediaUploadUrl(request: GetMediaUploadUrlRequest): GetMediaUploadUrlResponse { var runtime = new Util.RuntimeOptions{}; return getMediaUploadUrlWithOptions(request, runtime); } model BindInterconnectionUidRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='AIM用户ID'), dingTalkUid?: string(name='DingTalkUid', description='钉钉用户ID'), }(name='RequestParams', description='绑定用户请求体'), } model BindInterconnectionUidShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='绑定用户请求体'), } model BindInterconnectionUidResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model BindInterconnectionUidResponse = { headers: map[string]string(name='headers'), body: BindInterconnectionUidResponseBody(name='body'), } async function bindInterconnectionUidWithOptions(tmpReq: BindInterconnectionUidRequest, runtime: Util.RuntimeOptions): BindInterconnectionUidResponse { Util.validateModel(tmpReq); var request = new BindInterconnectionUidShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('BindInterconnectionUid', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function bindInterconnectionUid(request: BindInterconnectionUidRequest): BindInterconnectionUidResponse { var runtime = new Util.RuntimeOptions{}; return bindInterconnectionUidWithOptions(request, runtime); } model GetMediaUrlRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { mediaId?: string(name='MediaId', description='多媒体资源ID'), urlExpireTime?: long(name='UrlExpireTime', description='URL过期时间(秒,最大86400)'), }(name='RequestParams'), } model GetMediaUrlShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model GetMediaUrlResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { url?: string(name='Url', description='文件Url'), }(name='Result'), } model GetMediaUrlResponse = { headers: map[string]string(name='headers'), body: GetMediaUrlResponseBody(name='body'), } async function getMediaUrlWithOptions(tmpReq: GetMediaUrlRequest, runtime: Util.RuntimeOptions): GetMediaUrlResponse { Util.validateModel(tmpReq); var request = new GetMediaUrlShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetMediaUrl', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getMediaUrl(request: GetMediaUrlRequest): GetMediaUrlResponse { var runtime = new Util.RuntimeOptions{}; return getMediaUrlWithOptions(request, runtime); } model ImportSingleConversationRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { conversation?: { appCid?: string(name='AppCid', description='会话ID'), appUids?: [ string ](name='AppUids', description='用户ID列表'), extensions?: map[string]string(name='Extensions', description='扩展字段'), createTime?: long(name='CreateTime'), }(name='Conversation', description='会话基础信息'), userConversations?: map[string]RequestParamsUserConversationsValue(name='UserConversations', description='用户会话视图'), }(name='RequestParams'), } model ImportSingleConversationShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model ImportSingleConversationResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model ImportSingleConversationResponse = { headers: map[string]string(name='headers'), body: ImportSingleConversationResponseBody(name='body'), } async function importSingleConversationWithOptions(tmpReq: ImportSingleConversationRequest, runtime: Util.RuntimeOptions): ImportSingleConversationResponse { Util.validateModel(tmpReq); var request = new ImportSingleConversationShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ImportSingleConversation', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function importSingleConversation(request: ImportSingleConversationRequest): ImportSingleConversationResponse { var runtime = new Util.RuntimeOptions{}; return importSingleConversationWithOptions(request, runtime); } model UpdateCallbackConfigRequest { appId?: string(name='AppId', description='应用Id'), requestParams?: { callbackUrl?: string(name='CallbackUrl', description='回调url'), signatureKey?: string(name='SignatureKey', description='加签密钥-key'), signatureValue?: string(name='SignatureValue', description='加签密钥-value'), apis?: map[string]boolean(name='Apis', description='回调api列表'), spis?: map[string]boolean(name='Spis', description='回调列表'), events?: map[string]boolean(name='Events', description='事件输出列表'), }(name='RequestParams'), } model UpdateCallbackConfigShrinkRequest { appId?: string(name='AppId', description='应用Id'), requestParamsShrink?: string(name='RequestParams'), } model UpdateCallbackConfigResponseBody = { message?: string(name='Message', description='desc'), requestId?: string(name='RequestId', description='requestId'), httpStatusCode?: int32(name='HttpStatusCode', description='httpStatusCode'), code?: string(name='Code', description='code'), success?: boolean(name='Success', description='success'), result?: { imConfig?: { msgConfig?: { msgRecallTimeInterval?: long(name='MsgRecallTimeInterval', description='消息撤回时间间隔,毫秒'), }(name='MsgConfig', description='消息配置'), callbackConfig?: { backendUrl?: string(name='BackendUrl', description='回调url'), signatureKey?: string(name='SignatureKey', description='加签密钥-key'), signatureValue?: string(name='SignatureValue', description='加签密钥-value'), apiIds?: [ string ](name='ApiIds', description='回调方法列表'), }(name='CallbackConfig', description='回调配置'), }(name='ImConfig', description='im相关配置'), }(name='Result', description='result'), } model UpdateCallbackConfigResponse = { headers: map[string]string(name='headers'), body: UpdateCallbackConfigResponseBody(name='body'), } async function updateCallbackConfigWithOptions(tmpReq: UpdateCallbackConfigRequest, runtime: Util.RuntimeOptions): UpdateCallbackConfigResponse { Util.validateModel(tmpReq); var request = new UpdateCallbackConfigShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateCallbackConfig', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateCallbackConfig(request: UpdateCallbackConfigRequest): UpdateCallbackConfigResponse { var runtime = new Util.RuntimeOptions{}; return updateCallbackConfigWithOptions(request, runtime); } model BindInterconnectionCidRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { aimAppCid?: string(name='AimAppCid', description='AIM 群会话ID'), dingTalkCid?: string(name='DingTalkCid', description='钉钉 群会话ID'), }(name='RequestParams', description='绑定会话ID请求体'), } model BindInterconnectionCidShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='绑定会话ID请求体'), } model BindInterconnectionCidResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model BindInterconnectionCidResponse = { headers: map[string]string(name='headers'), body: BindInterconnectionCidResponseBody(name='body'), } async function bindInterconnectionCidWithOptions(tmpReq: BindInterconnectionCidRequest, runtime: Util.RuntimeOptions): BindInterconnectionCidResponse { Util.validateModel(tmpReq); var request = new BindInterconnectionCidShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('BindInterconnectionCid', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function bindInterconnectionCid(request: BindInterconnectionCidRequest): BindInterconnectionCidResponse { var runtime = new Util.RuntimeOptions{}; return bindInterconnectionCidWithOptions(request, runtime); } model InitTenantRequest { request?: { domain?: string(name='domain', description='应用appKey'), }(name='Request'), } model InitTenantResponseBody = { responseSuccess?: boolean(name='ResponseSuccess'), errorCode?: string(name='errorCode', description='错误码'), errorMsg?: string(name='errorMsg', description='错误信息'), result?: boolean(name='result', description='是否初始化成功'), requestId?: string(name='RequestId'), } model InitTenantResponse = { headers: map[string]string(name='headers'), body: InitTenantResponseBody(name='body'), } async function initTenantWithOptions(request: InitTenantRequest, runtime: Util.RuntimeOptions): InitTenantResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('InitTenant', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function initTenant(request: InitTenantRequest): InitTenantResponse { var runtime = new Util.RuntimeOptions{}; return initTenantWithOptions(request, runtime); } model ImportGroupChatMemberRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='群ID'), groupChatMembers?: [ { appUid?: string(name='AppUid', description='用户ID'), role?: long(name='Role', description='成员权限'), nick?: string(name='Nick', description='昵称'), top?: boolean(name='Top', description='是否置顶'), redPoint?: long(name='RedPoint', description='未读数'), mute?: boolean(name='Mute', description='是否免打扰'), visible?: boolean(name='Visible', description='是否可见'), joinTime?: long(name='JoinTime', description='入群时间戳'), modifyTime?: long(name='ModifyTime', description='最后修改时间'), extensions?: map[string]string(name='Extensions', description='自定义信息'), } ](name='GroupChatMembers'), }(name='RequestParams'), } model ImportGroupChatMemberShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model ImportGroupChatMemberResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model ImportGroupChatMemberResponse = { headers: map[string]string(name='headers'), body: ImportGroupChatMemberResponseBody(name='body'), } async function importGroupChatMemberWithOptions(tmpReq: ImportGroupChatMemberRequest, runtime: Util.RuntimeOptions): ImportGroupChatMemberResponse { Util.validateModel(tmpReq); var request = new ImportGroupChatMemberShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ImportGroupChatMember', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function importGroupChatMember(request: ImportGroupChatMemberRequest): ImportGroupChatMemberResponse { var runtime = new Util.RuntimeOptions{}; return importGroupChatMemberWithOptions(request, runtime); } model ListGroupSilenceMembersRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作者'), appCid?: string(name='AppCid', description='群会话id'), }(name='RequestParams', description='群禁言添加白名单请求体'), } model ListGroupSilenceMembersShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='群禁言添加白名单请求体'), } model ListGroupSilenceMembersResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), code?: string(name='Code'), message?: string(name='Message'), result?: { appCid?: string(name='AppCid', description='群会话id'), whitelist?: [ string ](name='Whitelist', description='禁言白名单'), blacklist?: map[string]long(name='Blacklist', description='禁言黑名单用户及对应禁言时长'), }(name='Result'), } model ListGroupSilenceMembersResponse = { headers: map[string]string(name='headers'), body: ListGroupSilenceMembersResponseBody(name='body'), } async function listGroupSilenceMembersWithOptions(tmpReq: ListGroupSilenceMembersRequest, runtime: Util.RuntimeOptions): ListGroupSilenceMembersResponse { Util.validateModel(tmpReq); var request = new ListGroupSilenceMembersShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ListGroupSilenceMembers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listGroupSilenceMembers(request: ListGroupSilenceMembersRequest): ListGroupSilenceMembersResponse { var runtime = new Util.RuntimeOptions{}; return listGroupSilenceMembersWithOptions(request, runtime); } model RemoveGroupExtensionByKeysRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话id'), keys?: [ string ](name='Keys', description='拓展字段的key'), }(name='RequestParams', description='移除群聊拓展字段请求实体'), } model RemoveGroupExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='移除群聊拓展字段请求实体'), } model RemoveGroupExtensionByKeysResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RemoveGroupExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: RemoveGroupExtensionByKeysResponseBody(name='body'), } async function removeGroupExtensionByKeysWithOptions(tmpReq: RemoveGroupExtensionByKeysRequest, runtime: Util.RuntimeOptions): RemoveGroupExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new RemoveGroupExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveGroupExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeGroupExtensionByKeys(request: RemoveGroupExtensionByKeysRequest): RemoveGroupExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return removeGroupExtensionByKeysWithOptions(request, runtime); } model SetGroupMemberExtensionByKeysRequest { appId?: string(name='AppId', description='App ID, IMPaaS租户的ID'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), appUid?: string(name='AppUid', description='用户ID'), extensions?: map[string]string(name='Extensions', description='扩展信息'), }(name='RequestParams', description='设置群成员扩展信息的请求体'), } model SetGroupMemberExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='App ID, IMPaaS租户的ID'), requestParamsShrink?: string(name='RequestParams', description='设置群成员扩展信息的请求体'), } model SetGroupMemberExtensionByKeysResponseBody = { requestId?: string(name='RequestId', description='请求ID'), code?: string(name='Code', description='错误码'), message?: string(name='Message', description='错误信息'), } model SetGroupMemberExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: SetGroupMemberExtensionByKeysResponseBody(name='body'), } async function setGroupMemberExtensionByKeysWithOptions(tmpReq: SetGroupMemberExtensionByKeysRequest, runtime: Util.RuntimeOptions): SetGroupMemberExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new SetGroupMemberExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetGroupMemberExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setGroupMemberExtensionByKeys(request: SetGroupMemberExtensionByKeysRequest): SetGroupMemberExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return setGroupMemberExtensionByKeysWithOptions(request, runtime); } model CreateGroupRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { uuid?: string(name='Uuid', description='UUID(不可重复)'), creatorAppUid?: string(name='CreatorAppUid', description='创建者'), title?: string(name='Title', description='群标题'), iconMediaId?: string(name='IconMediaId', description='图标的id'), extensions?: map[string]string(name='Extensions', description='拓展字段'), initMembers?: [ { appUid?: string(name='AppUid'), role?: int32(name='Role', description='1群主,2管理员,3普通'), nick?: string(name='Nick'), joinTime?: long(name='JoinTime', description='unix时间毫秒数'), extensions?: map[string]string(name='Extensions'), } ](name='InitMembers', description='初始化成员'), }(name='RequestParams', description='创建群聊请求实体'), } model CreateGroupShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='创建群聊请求实体'), } model CreateGroupResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { appCid?: string(name='AppCid'), }(name='Result'), } model CreateGroupResponse = { headers: map[string]string(name='headers'), body: CreateGroupResponseBody(name='body'), } async function createGroupWithOptions(tmpReq: CreateGroupRequest, runtime: Util.RuntimeOptions): CreateGroupResponse { Util.validateModel(tmpReq); var request = new CreateGroupShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('CreateGroup', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function createGroup(request: CreateGroupRequest): CreateGroupResponse { var runtime = new Util.RuntimeOptions{}; return createGroupWithOptions(request, runtime); } model GetMessageByIdRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { msgId?: string(name='MsgId', description='消息Id'), }(name='RequestParams', description='请求实体'), } model GetMessageByIdShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='请求实体'), } model GetMessageByIdResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { msgId?: string(name='MsgId', description='消息Id'), appCid?: string(name='AppCid', description='会话Id'), conversationType?: int32(name='ConversationType', description='会话类型'), createTime?: long(name='CreateTime', description='创建时间'), senderId?: string(name='SenderId', description='发送者的用户Id'), contentType?: int32(name='ContentType', description='消息类型'), content?: string(name='Content', description='消息体'), extensions?: map[string]string(name='Extensions'), }(name='Result'), } model GetMessageByIdResponse = { headers: map[string]string(name='headers'), body: GetMessageByIdResponseBody(name='body'), } async function getMessageByIdWithOptions(tmpReq: GetMessageByIdRequest, runtime: Util.RuntimeOptions): GetMessageByIdResponse { Util.validateModel(tmpReq); var request = new GetMessageByIdShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetMessageById', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getMessageById(request: GetMessageByIdRequest): GetMessageByIdResponse { var runtime = new Util.RuntimeOptions{}; return getMessageByIdWithOptions(request, runtime); } model DestroyRoomRequest { request?: { domain?: string(name='domain', description='应用appKey'), roomId?: string(name='roomId', description='房间id'), openId?: string(name='openId', description='操作人id'), }(name='Request'), } model DestroyRoomResponseBody = { errorCode?: string(name='errorCode', description='错误码'), errorMsg?: string(name='errorMsg', description='错误信息'), requestId?: string(name='RequestId'), result?: boolean(name='result', description='是否销毁成功'), responseSuccess?: boolean(name='ResponseSuccess'), } model DestroyRoomResponse = { headers: map[string]string(name='headers'), body: DestroyRoomResponseBody(name='body'), } async function destroyRoomWithOptions(request: DestroyRoomRequest, runtime: Util.RuntimeOptions): DestroyRoomResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DestroyRoom', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function destroyRoom(request: DestroyRoomRequest): DestroyRoomResponse { var runtime = new Util.RuntimeOptions{}; return destroyRoomWithOptions(request, runtime); } model KickOffRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='用户ID'), appKeys?: [ string ](name='AppKeys', description='被踢下线的App的AppKey列表,为空时全部踢下线'), information?: string(name='Information', description='下线文案'), }(name='RequestParams'), } model KickOffShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model KickOffResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model KickOffResponse = { headers: map[string]string(name='headers'), body: KickOffResponseBody(name='body'), } async function kickOffWithOptions(tmpReq: KickOffRequest, runtime: Util.RuntimeOptions): KickOffResponse { Util.validateModel(tmpReq); var request = new KickOffShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('KickOff', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function kickOff(request: KickOffRequest): KickOffResponse { var runtime = new Util.RuntimeOptions{}; return kickOffWithOptions(request, runtime); } model ListCallbackApiIdsResponseBody = { requestId?: string(name='RequestId', description='Id of the request'), success?: boolean(name='Success', description='业务是否成功'), code?: string(name='Code', description='业务错误码'), httpStatusCode?: int32(name='HttpStatusCode', description='网络错误码'), message?: string(name='Message', description='错误信息'), result?: { spis?: map[string]boolean(name='Spis', description='回调列表'), events?: map[string]boolean(name='Events', description='事件输出列表'), }(name='Result', description='返回结果'), } model ListCallbackApiIdsResponse = { headers: map[string]string(name='headers'), body: ListCallbackApiIdsResponseBody(name='body'), } async function listCallbackApiIdsWithOptions(runtime: Util.RuntimeOptions): ListCallbackApiIdsResponse { var req = new OpenApi.OpenApiRequest{}; return doRPCRequest('ListCallbackApiIds', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function listCallbackApiIds(): ListCallbackApiIdsResponse { var runtime = new Util.RuntimeOptions{}; return listCallbackApiIdsWithOptions(runtime); } model SetMessageReadRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='操作者ID'), msgId?: string(name='MsgId', description='消息ID'), }(name='RequestParams'), } model SetMessageReadShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model SetMessageReadResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model SetMessageReadResponse = { headers: map[string]string(name='headers'), body: SetMessageReadResponseBody(name='body'), } async function setMessageReadWithOptions(tmpReq: SetMessageReadRequest, runtime: Util.RuntimeOptions): SetMessageReadResponse { Util.validateModel(tmpReq); var request = new SetMessageReadShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetMessageRead', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setMessageRead(request: SetMessageReadRequest): SetMessageReadResponse { var runtime = new Util.RuntimeOptions{}; return setMessageReadWithOptions(request, runtime); } model UpdateMsgRecallIntervalRequest { requestParams?: { clientMsgRecallIntervalMinute?: long(name='ClientMsgRecallIntervalMinute', description='消息撤回时间间隔'), }(name='RequestParams', description='请求'), appId?: string(name='AppId', description='应用Id'), } model UpdateMsgRecallIntervalShrinkRequest { requestParamsShrink?: string(name='RequestParams', description='请求'), appId?: string(name='AppId', description='应用Id'), } model UpdateMsgRecallIntervalResponseBody = { message?: string(name='Message', description='desc'), requestId?: string(name='RequestId', description='requestId'), httpStatusCode?: int32(name='HttpStatusCode', description='httpStatusCode'), code?: string(name='Code', description='code'), success?: boolean(name='Success', description='success'), result?: string(name='Result', description='result'), } model UpdateMsgRecallIntervalResponse = { headers: map[string]string(name='headers'), body: UpdateMsgRecallIntervalResponseBody(name='body'), } async function updateMsgRecallIntervalWithOptions(tmpReq: UpdateMsgRecallIntervalRequest, runtime: Util.RuntimeOptions): UpdateMsgRecallIntervalResponse { Util.validateModel(tmpReq); var request = new UpdateMsgRecallIntervalShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateMsgRecallInterval', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateMsgRecallInterval(request: UpdateMsgRecallIntervalRequest): UpdateMsgRecallIntervalResponse { var runtime = new Util.RuntimeOptions{}; return updateMsgRecallIntervalWithOptions(request, runtime); } model SendCustomMessageToRoomUsersRequest { request?: { domain?: string(name='Domain', description='应用的appKey。'), roomId?: string(name='RoomId', description='房间ID,由调用CreateRoom时返回。'), senderId?: string(name='SenderId', description='消息的发送者ID。'), subType?: int32(name='SubType', description='消息的类型,由业务自定义,请传递100000以上。'), body?: string(name='Body', description='消息体。'), }(name='Request', description='请求参数的结构体。'), receivers?: [ string ](name='Receivers', description='指定的消息接受者的用户ID列表,大小不得超过100。'), } model SendCustomMessageToRoomUsersResponseBody = { requestId?: string(name='RequestId', description='请求ID。'), responseSuccess?: boolean(name='ResponseSuccess', description='请求是否成功。'), errorCode?: string(name='ErrorCode', description='错误码,请求异常时返回。'), errorMessage?: string(name='ErrorMessage', description='错误信息,请求异常时返回。'), result?: { messageId?: string(name='MessageId', description='消息的唯一ID标识。由数字、大小写字母组成,长度不超过20。'), }(name='Result', description='请求的返回结果。'), } model SendCustomMessageToRoomUsersResponse = { headers: map[string]string(name='headers'), body: SendCustomMessageToRoomUsersResponseBody(name='body'), } async function sendCustomMessageToRoomUsersWithOptions(request: SendCustomMessageToRoomUsersRequest, runtime: Util.RuntimeOptions): SendCustomMessageToRoomUsersResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SendCustomMessageToRoomUsers', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function sendCustomMessageToRoomUsers(request: SendCustomMessageToRoomUsersRequest): SendCustomMessageToRoomUsersResponse { var runtime = new Util.RuntimeOptions{}; return sendCustomMessageToRoomUsersWithOptions(request, runtime); } model UpdateGroupTitleRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), operatorAppUid?: string(name='OperatorAppUid', description='操作者用户ID'), title?: string(name='Title', description='群聊标题'), }(name='RequestParams'), } model UpdateGroupTitleShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model UpdateGroupTitleResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model UpdateGroupTitleResponse = { headers: map[string]string(name='headers'), body: UpdateGroupTitleResponseBody(name='body'), } async function updateGroupTitleWithOptions(tmpReq: UpdateGroupTitleRequest, runtime: Util.RuntimeOptions): UpdateGroupTitleResponse { Util.validateModel(tmpReq); var request = new UpdateGroupTitleShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateGroupTitle', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateGroupTitle(request: UpdateGroupTitleRequest): UpdateGroupTitleResponse { var runtime = new Util.RuntimeOptions{}; return updateGroupTitleWithOptions(request, runtime); } model GetLoginTokenRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appUid?: string(name='AppUid', description='用户ID'), appKey?: string(name='AppKey', description='AppKey'), deviceId?: string(name='DeviceId', description='设备ID'), }(name='RequestParams'), } model GetLoginTokenShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model GetLoginTokenResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { accessToken?: string(name='AccessToken', description='登录Tokon'), refreshToken?: string(name='RefreshToken', description='更新Token'), accessTokenExpiredTime?: long(name='AccessTokenExpiredTime', description='登录Token过期时间'), }(name='Result'), } model GetLoginTokenResponse = { headers: map[string]string(name='headers'), body: GetLoginTokenResponseBody(name='body'), } async function getLoginTokenWithOptions(tmpReq: GetLoginTokenRequest, runtime: Util.RuntimeOptions): GetLoginTokenResponse { Util.validateModel(tmpReq); var request = new GetLoginTokenShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('GetLoginToken', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function getLoginToken(request: GetLoginTokenRequest): GetLoginTokenResponse { var runtime = new Util.RuntimeOptions{}; return getLoginTokenWithOptions(request, runtime); } model QueryInterconnectionCidMappingRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { srcCid?: string(name='SrcCid', description='会话ID'), type?: long(name='Type', description='会话ID类型; 1: AIM会话ID 2: 钉钉会话ID'), }(name='RequestParams', description='查询请求体'), } model QueryInterconnectionCidMappingShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams', description='查询请求体'), } model QueryInterconnectionCidMappingResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { dstCid?: string(name='DstCid'), }(name='Result'), } model QueryInterconnectionCidMappingResponse = { headers: map[string]string(name='headers'), body: QueryInterconnectionCidMappingResponseBody(name='body'), } async function queryInterconnectionCidMappingWithOptions(tmpReq: QueryInterconnectionCidMappingRequest, runtime: Util.RuntimeOptions): QueryInterconnectionCidMappingResponse { Util.validateModel(tmpReq); var request = new QueryInterconnectionCidMappingShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('QueryInterconnectionCidMapping', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function queryInterconnectionCidMapping(request: QueryInterconnectionCidMappingRequest): QueryInterconnectionCidMappingResponse { var runtime = new Util.RuntimeOptions{}; return queryInterconnectionCidMappingWithOptions(request, runtime); } model DismissGroupRequest { appId?: string(name='AppId'), requestParams?: { operatorAppUid?: string(name='OperatorAppUid', description='操作用户'), appCid?: string(name='AppCid', description='会话id'), }(name='RequestParams', description='解散群聊请求实体'), } model DismissGroupShrinkRequest { appId?: string(name='AppId'), requestParamsShrink?: string(name='RequestParams', description='解散群聊请求实体'), } model DismissGroupResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model DismissGroupResponse = { headers: map[string]string(name='headers'), body: DismissGroupResponseBody(name='body'), } async function dismissGroupWithOptions(tmpReq: DismissGroupRequest, runtime: Util.RuntimeOptions): DismissGroupResponse { Util.validateModel(tmpReq); var request = new DismissGroupShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DismissGroup', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function dismissGroup(request: DismissGroupRequest): DismissGroupResponse { var runtime = new Util.RuntimeOptions{}; return dismissGroupWithOptions(request, runtime); } model ImportGroupChatConversationRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { uuid?: string(name='Uuid', description='唯一标识,用于重入'), ownerAppUid?: string(name='OwnerAppUid', description='群主uid'), title?: string(name='Title', description='群标题'), iconMediaId?: string(name='IconMediaId', description='群头像'), memberLimit?: long(name='MemberLimit', description='群上限'), extensions?: map[string]string(name='Extensions', description='扩展字段'), createTime?: long(name='CreateTime', description='创建时间'), silenceAll?: boolean(name='SilenceAll', description='是否全员禁言'), }(name='RequestParams'), } model ImportGroupChatConversationShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model ImportGroupChatConversationResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), result?: { appCid?: string(name='AppCid', description='群ID'), }(name='Result'), } model ImportGroupChatConversationResponse = { headers: map[string]string(name='headers'), body: ImportGroupChatConversationResponseBody(name='body'), } async function importGroupChatConversationWithOptions(tmpReq: ImportGroupChatConversationRequest, runtime: Util.RuntimeOptions): ImportGroupChatConversationResponse { Util.validateModel(tmpReq); var request = new ImportGroupChatConversationShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ImportGroupChatConversation', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function importGroupChatConversation(request: ImportGroupChatConversationRequest): ImportGroupChatConversationResponse { var runtime = new Util.RuntimeOptions{}; return importGroupChatConversationWithOptions(request, runtime); } model CreateRoomRequest { request?: { domain?: string(name='domain', description='应用appKey'), ownerId?: string(name='ownerId', description='创建者id'), ownerNick?: string(name='ownerNick', description='创建者昵称'), title?: string(name='title', description='创建房间的标题'), }(name='Request'), } model CreateRoomResponseBody = { responseSuccess?: boolean(name='ResponseSuccess'), errorCode?: string(name='errorCode', description='错误码'), errorMsg?: string(name='errorMsg', description='错误信息'), result?: { roomId?: string(name='roomId', description='房间id'), }(name='Result'), requestId?: string(name='RequestId'), } model CreateRoomResponse = { headers: map[string]string(name='headers'), body: CreateRoomResponseBody(name='body'), } async function createRoomWithOptions(request: CreateRoomRequest, runtime: Util.RuntimeOptions): CreateRoomResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('CreateRoom', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function createRoom(request: CreateRoomRequest): CreateRoomResponse { var runtime = new Util.RuntimeOptions{}; return createRoomWithOptions(request, runtime); } model RemoveUserConversationExtensionByKeysRequest { appId?: string(name='AppId'), requestParams?: { appUid?: string(name='AppUid', description='用户id'), appCid?: string(name='AppCid', description='会话id'), keys?: [ string ](name='Keys'), }(name='RequestParams', description='移除用户拓展字段请求实体'), } model RemoveUserConversationExtensionByKeysShrinkRequest { appId?: string(name='AppId'), requestParamsShrink?: string(name='RequestParams', description='移除用户拓展字段请求实体'), } model RemoveUserConversationExtensionByKeysResponseBody = { requestId?: string(name='RequestId'), code?: string(name='Code'), message?: string(name='Message'), } model RemoveUserConversationExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: RemoveUserConversationExtensionByKeysResponseBody(name='body'), } async function removeUserConversationExtensionByKeysWithOptions(tmpReq: RemoveUserConversationExtensionByKeysRequest, runtime: Util.RuntimeOptions): RemoveUserConversationExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new RemoveUserConversationExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('RemoveUserConversationExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function removeUserConversationExtensionByKeys(request: RemoveUserConversationExtensionByKeysRequest): RemoveUserConversationExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return removeUserConversationExtensionByKeysWithOptions(request, runtime); } model SetMessageExtensionByKeysRequest { appId?: string(name='AppId', description='AppId'), requestParams?: { appCid?: string(name='AppCid', description='会话ID'), msgId?: string(name='MsgId', description='消息ID'), extensions?: map[string]string(name='Extensions', description='需设置的K-V对'), }(name='RequestParams'), } model SetMessageExtensionByKeysShrinkRequest { appId?: string(name='AppId', description='AppId'), requestParamsShrink?: string(name='RequestParams'), } model SetMessageExtensionByKeysResponseBody = { requestId?: string(name='RequestId', description='请求ID'), code?: string(name='Code', description='错误码,成功时为0'), message?: string(name='Message', description='错误信息,成功时为空'), } model SetMessageExtensionByKeysResponse = { headers: map[string]string(name='headers'), body: SetMessageExtensionByKeysResponseBody(name='body'), } async function setMessageExtensionByKeysWithOptions(tmpReq: SetMessageExtensionByKeysRequest, runtime: Util.RuntimeOptions): SetMessageExtensionByKeysResponse { Util.validateModel(tmpReq); var request = new SetMessageExtensionByKeysShrinkRequest{}; OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.requestParams)) { request.requestParamsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.requestParams, 'RequestParams', 'json'); } var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetMessageExtensionByKeys', '2020-12-14', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setMessageExtensionByKeys(request: SetMessageExtensionByKeysRequest): SetMessageExtensionByKeysResponse { var runtime = new Util.RuntimeOptions{}; return setMessageExtensionByKeysWithOptions(request, runtime); } model ResultImportMessageResultValue = { result?: long(name='result', description='0 成功'), msgId?: string(name='msgId', description='消息ID'), } model RequestParamsOptionsSingleChatCreateRequestUserConversationValue = { userExtensions?: map[string]string(name='UserExtensions', description='扩展信息'), } model ResultUserMuteSettingsValue = { mute?: boolean(name='Mute'), expireTime?: long(name='ExpireTime'), } model RequestParamsUserConversationsValue = { top?: boolean(name='Top', description='是否置顶'), redPoint?: long(name='RedPoint', description='未读数'), mute?: boolean(name='Mute', description='是否免打扰'), visible?: boolean(name='Visible', description='是否可见'), createTime?: long(name='CreateTime', description='创建时间戳'), modifyTime?: long(name='ModifyTime', description='修改时间戳'), userExtensions?: map[string]string(name='UserExtensions', description='自定义信息'), }
Tea
5
aliyun/alibabacloud-sdk
live-interaction-20201214/main.tea
[ "Apache-2.0" ]
default { state_entry() { llOwnerSay("The absolute value of -4 is: "+(string)llAbs(-4) ); } }
LSL
4
MandarinkaTasty/OpenSim
bin/assets/ScriptsAssetSet/llAbs.lsl
[ "BSD-3-Clause" ]
// Daniel Shiffman // http://youtube.com/thecodingtrain // http://codingtra.in // Coding Challenge #112: 3D Rendering with Rotation and Projection // https://youtu.be/p4Iz0XJY-Qk float angle = 0; PVector[] points = new PVector[8]; float[][] projection = { {1, 0, 0}, {0, 1, 0} }; void setup() { size(600, 400); points[0] = new PVector(-0.5, -0.5, -0.5); points[1] = new PVector(0.5, -0.5, -0.5); points[2] = new PVector(0.5, 0.5, -0.5); points[3] = new PVector(-0.5, 0.5, -0.5); points[4] = new PVector(-0.5, -0.5, 0.5); points[5] = new PVector(0.5, -0.5, 0.5); points[6] = new PVector(0.5, 0.5, 0.5); points[7] = new PVector(-0.5, 0.5, 0.5); } void draw() { background(0); translate(width/2, height/2); float[][] rotationZ = { { cos(angle), -sin(angle), 0}, { sin(angle), cos(angle), 0}, { 0, 0, 1} }; float[][] rotationX = { { 1, 0, 0}, { 0, cos(angle), -sin(angle)}, { 0, sin(angle), cos(angle)} }; float[][] rotationY = { { cos(angle), 0, sin(angle)}, { 0, 1, 0}, { -sin(angle), 0, cos(angle)} }; PVector[] projected = new PVector[8]; int index = 0; for (PVector v : points) { PVector rotated = matmul(rotationY, v); rotated = matmul(rotationX, rotated); rotated = matmul(rotationZ, rotated); PVector projected2d = matmul(projection, rotated); projected2d.mult(200); projected[index] = projected2d; //point(projected2d.x, projected2d.y); index++; } for (PVector v : projected) { stroke(255); strokeWeight(16); noFill(); point(v.x, v.y); } // Connecting for (int i = 0; i < 4; i++) { connect(i, (i+1) % 4, projected); connect(i+4, ((i+1) % 4)+4, projected); connect(i, i+4, projected); } angle += 0.03; } void connect(int i, int j, PVector[] points) { PVector a = points[i]; PVector b = points[j]; strokeWeight(1); stroke(255); line(a.x, a.y, b.x, b.y); }
Processing
5
aerinkayne/website
CodingChallenges/CC_112_3D_Rendering/Processing/CC_112_3D_Rendering/CC_112_3D_Rendering.pde
[ "MIT" ]
--- simple-sidebar: true social-image: social-logo-universe.png layout: layouts/base.liquid no-sidebar: true body-class: inc force-light --- <div id="inc-color-scheme"> {% include color-scheme-switcher %} </div> <div class="inc-bg"></div> <div class="inc-bg-padding" aria-hidden="true"> <a href="/">Rome</a> </div> <div class="hero hero-inc"> <h1>Announcing Rome Tools, Inc.</h1> </div> <main id="main-content" class="content single inc"> {{ content | safe }} </main> <script> (function() { const bg = document.querySelector(".inc-bg"); let lastTop = undefined; let disabled; document.addEventListener("scroll", (e) => { if (disabled === undefined) { disabled = matchMedia("(max-width: 768px)").matches || matchMedia("(prefers-reduced-motion)").matches; } if (disabled) { return; } if (document.scrollingElement.scrollTop > 450) { return; } const top = document.scrollingElement.scrollTop / 2; if (lastTop === top) { return; } lastTop = top; bg.style.transform = `translateY(${top}px)`; }); })(); </script>
Liquid
4
JoostKersjes/tools
website/src/_includes/layouts/inc.liquid
[ "MIT" ]
^XA^FO0,0^GFA,120000,120000,100,,::::::::::::J0G3oRFGCH0J0G7oRFGEH0::J0G7G8hO0G3GClY0G1GEH0:::::::::::::::::::::::::::J0G7G8Q0G1gIFGCS0G3GClY0G1GEH0J0G7G8Q0G7gIFGES0G3GClY0G1GEH0::J0G7G8Q0G7gIFGES0G3GCkS0G1GCgJ0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0G3GEgJ0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0G7GFgJ0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0HFG8gI0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0HFGCgI0G1GEH0J0G7G8Q0G7gIFGES0G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G0G9G8K0G8G0G8G0G1G8H0G8L0G7G3J0G8H1L0G8G0G1M0G1GEH0J0G7G8hP0G7LFH0G3GCU0G3G8I0G7G8iG0G8O0G1G0G6I0G2J0G3G1L0G1L0G8G0G1M0G1GEH0J0G7G8hP0G3KFGEH0G3GCj0G1GCG0HFG0G3G8G0G3GCJ0G7GCH0G3GEJ0G1GFGEH0G3G8M0HFN0G1GEH0J0G7G8hP0G1KFGCH0GFG8lO0G1GEH0J0G7G8hP0G1KFGCH0GFlP0G1GEH0J0G7G8hQ0G7JFG8G0G3GElP0G1GEH0J0G7G8hQ0G3JFH0G7GClP0G1GEH0J0G7G8hQ0G1JFG0G3GFlQ0G1GEH0J0G7G8hR0JFG0GFGElQ0G1GEH0J0G7G8hR0G1KFG8lQ0G1GEH0J0G7G8hS0JFGElR0G1GEH0J0G7G8hT0HFGElS0G1GEH0J0G7G8oP0G1GEH0:::::::::::J0G7G8oP0G3GEH0J0G7oRFGEH0:::J0G3oRFGCH0,::::::::::^FS^XZ
Zimpl
1
nelsontkq/zplify
Zplify.Tests/Data/USPS-label.zpl
[ "MIT" ]
-module(complex3). -export([foo/1, bar/1]). foo(X) -> call_cnode({foo, X}). bar(Y) -> call_cnode({bar, Y}). call_cnode(Msg) -> {any, c1@idril} ! {call, self(), Msg}, receive {cnode, Result} -> Result end.
Erlang
4
jjhoo/otp
system/doc/tutorial/complex3.erl
[ "Apache-2.0" ]
#![allow(unused_variables)] #![allow(unused_assignments)] #![allow(dead_code)] #![deny(unreachable_code)] fn a() { loop { return; } println!("I am dead."); //~^ ERROR unreachable statement } fn b() { loop { break; } println!("I am not dead."); } fn c() { loop { return; } println!("I am dead."); //~^ ERROR unreachable statement } fn d() { 'outer: loop { loop { break 'outer; } } println!("I am not dead."); } fn e() { loop { 'middle: loop { loop { break 'middle; } } } println!("I am dead."); //~^ ERROR unreachable statement } fn main() { }
Rust
3
Eric-Arellano/rust
src/test/ui/reachable/expr_loop.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
CREATE TABLE `q_report_summary` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(11) unsigned NOT NULL DEFAULT '0', `host_count` int(11) unsigned NOT NULL DEFAULT '0', `circular_count` int(11) unsigned NOT NULL DEFAULT '0', `active_count` int(11) unsigned NOT NULL DEFAULT '0', `security_num` int(11) unsigned NOT NULL DEFAULT '0', `hole_num` int(11) unsigned NOT NULL DEFAULT '0', `day` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `group_id` (`group_id`) USING BTREE, KEY `day` (`day`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SQL
3
imtbkcat/tidb-lightning
tests/tool_241/data/qyjc.q_report_summary-schema.sql
[ "Apache-2.0" ]
MandarinDefaultBehavior = Reflector other:mimic(DefaultBehavior) MandarinDefaultBehavior 细胞 = cell(:cell) MandarinDefaultBehavior 摹拟 = cell(:mimic) MandarinDefaultBehavior 除非 = cell(:if) MandarinDefaultBehavior 法 = cell(:method) MandarinDefaultBehavior 函数 = cell(:fn) MandarinDefaultBehavior 本 = Origin MandarinDefaultBehavior 做 = cell(:do) MandarinDefaultBehavior 带有 = cell(:with) MandarinDefaultBehavior 自我 = method(self) MandarinDefaultBehavior 打印 = Origin cell(:print) MandarinDefaultBehavior 打印行 = Origin cell(:println) DefaultBehavior mimic!(MandarinDefaultBehavior)
Ioke
2
olabini/ioke
examples/multilang/chinese/mandarin.ik
[ "ICU", "MIT" ]
// @declaration: true // @filename: root.ts export function getSomething(): Something { return null as any } export default class Something {} // @filename: main.ts import Thing, { getSomething } from "./root"; export const instance = getSomething();
TypeScript
4
nilamjadhav/TypeScript
tests/cases/compiler/defaultDeclarationEmitDefaultImport.ts
[ "Apache-2.0" ]
module appendixA/closure pred transCover [R, r: univ->univ] { // You have to fill in the appropriate formula here } pred transClosure [R, r: univ->univ] { transCover [R, r] // You have to fill in the appropriate formula here } assert Equivalence { all R, r: univ->univ | transClosure [R,r] iff R = ^r } check Equivalence for 3
Alloy
3
Kaixi26/org.alloytools.alloy
org.alloytools.alloy.extra/extra/models/book/appendixA/closure.als
[ "Apache-2.0" ]
.style { grid-template-columns: repeat(4, minmax(min-content, 300px)); }
CSS
2
mengxy/swc
crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/input.css
[ "Apache-2.0" ]
--TEST-- Bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF) --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 --EXTENSIONS-- opcache --FILE-- <?php $a = array(true); if($a[0] && false) { echo 'test'; } echo "ok\n"; ?> --EXPECT-- ok
PHP
2
NathanFreeman/php-src
ext/opcache/tests/bug69549.phpt
[ "PHP-3.01" ]
// Need to deal with non powers of base for the length of the hash #include <Dip.h> module DipSummaryP { provides interface DipDecision; uses interface DipSend as SummarySend; uses interface DipReceive as SummaryReceive; uses interface DipHelp; uses interface DipEstimates; uses interface Random; } implementation { void findRangeShadow(dip_index_t* left, dip_index_t *right); uint32_t buildRange(dip_index_t left, dip_index_t right); uint32_t computeHash(dip_index_t left, dip_index_t right, dip_version_t* basedata, uint32_t salt); uint32_t computeBloomHash(dip_index_t left, dip_index_t right, dip_version_t* basedata, uint32_t salt); void splitRange(uint32_t info, dip_index_t* left, dip_index_t* right); void adjustEstimatesSame(dip_index_t left, dip_index_t right); void adjustEstimatesDiff(dip_index_t left, dip_index_t rightt, dip_version_t* data, uint32_t salt, uint32_t bHash); uint8_t commRate; // this can be combined with pairs_t in DIPVectorP maybe? dip_estimate_t shadowEstimates[UQCOUNT_DIP]; command uint8_t DipDecision.getCommRate() { return commRate; } command void DipDecision.resetCommRate() { commRate = 0; } command error_t DipDecision.send() { dip_index_t i, j, left, right; dip_version_t* allVers; dip_estimate_t* allEsts; uint32_t salt; dip_msg_t* dmsg; dip_summary_msg_t* dsmsg; dmsg = (dip_msg_t*) call SummarySend.getPayloadPtr(); if(dmsg == NULL) { return FAIL; } dmsg->type = ID_DIP_SUMMARY; dsmsg = (dip_summary_msg_t*) dmsg->content; allVers = call DipHelp.getAllVersions(); allEsts = call DipEstimates.getEstimates(); salt = call Random.rand32(); for(i = 0; i < UQCOUNT_DIP; i++) { shadowEstimates[i] = allEsts[i]; } for(i = 0; i < DIP_SUMMARY_ENTRIES_PER_PACKET; i += 3) { findRangeShadow(&left, &right); dbg("DipSummaryP", "Found range %u, %u\n", left, right); dsmsg->info[i] = buildRange(left, right); dsmsg->info[i+1] = computeHash(left, right, allVers, salt); dsmsg->info[i+2] = computeBloomHash(left, right, allVers, salt); for(j = left; j < right; j++) { shadowEstimates[j] = 0; } dbg("DipSummaryP", "Hash Entry: %08x %08x %08x\n", dsmsg->info[i], dsmsg->info[i+1], dsmsg->info[i+2]); } dsmsg->unitLen = DIP_SUMMARY_ENTRIES_PER_PACKET; dsmsg->salt = salt; for(i = 0; i < DIP_SUMMARY_ENTRIES_PER_PACKET; i += 3) { splitRange(dsmsg->info[i], &left, &right); adjustEstimatesSame(left, right); } return call SummarySend.send(sizeof(dip_msg_t) + sizeof(dip_summary_msg_t) + (sizeof(uint32_t) * DIP_SUMMARY_ENTRIES_PER_PACKET)); } event void SummaryReceive.receive(void* payload, uint8_t len) { dip_summary_msg_t* dsmsg; uint8_t unitlen; uint32_t salt, myHash; uint8_t i; dip_index_t left, right; dip_version_t* allVers; commRate = commRate + 1; dsmsg = (dip_summary_msg_t*) payload; unitlen = dsmsg->unitLen; salt = dsmsg->salt; allVers = call DipHelp.getAllVersions(); for(i = 0; i < unitlen; i += 3) { splitRange(dsmsg->info[i], &left, &right); myHash = computeHash(left, right, allVers, salt); //dbg("DipSummaryP", "Received Range: %u, %u\n", left, right); //dbg("DipSummaryP", "Received Hash: %08x\n", dsmsg->info[i+1]); //dbg("DipSummaryP", "My Hash: %08x\n", myHash); if(myHash != dsmsg->info[i+1]) { // hashes don't match adjustEstimatesDiff(left, right, allVers, salt, dsmsg->info[i+2]); } else { // hashes match adjustEstimatesSame(left, right); } } } void findRangeShadow(dip_index_t* left, dip_index_t *right) { dip_estimate_t est1; dip_estimate_t est2; dip_hashlen_t len; dip_index_t highIndex; dip_index_t i; dip_index_t LBound; dip_index_t RBound; uint16_t runEstSum; uint16_t highEstSum; // find highest estimate // initialize test highIndex = 0; est1 = shadowEstimates[0]; // Get the highest estimate key for(i = 0; i < UQCOUNT_DIP; i++) { est2 = shadowEstimates[i]; if(est2 > est1) { highIndex = i; est1 = est2; } } len = call DipEstimates.estimateToHashlength(est1); dbg("DipSummaryP","Highest key at %u with estimate %u and thus len %u\n", highIndex, est1, len); // initialize bounds on range if(highIndex < len - 1) { LBound = 0; } else { LBound = highIndex - len + 1; } if(highIndex + len > UQCOUNT_DIP) { RBound = UQCOUNT_DIP; } else { RBound = highIndex + len; } // adjust length if necessary if(RBound - LBound < len) { len = RBound - LBound; } // initialize first range highEstSum = 0; highIndex = LBound; for(i = LBound; i < LBound + len; i++) { est1 = shadowEstimates[i]; highEstSum += est1; } dbg("DipSummaryP", "First range: %u, %u = %u\n", LBound, LBound + len, highEstSum); // iterate through the range runEstSum = highEstSum; dbg("DipSummaryP", "Iterating from %u to %u with len %u\n", LBound, RBound, len); for(i = LBound ; i + len < RBound; i++) { est1 = shadowEstimates[i]; est2 = shadowEstimates[i + len]; //dbg("DipSummaryP", "i: %u\n", i); //dbg("DipSummaryP", "i+len: %u\n", i+len); runEstSum = runEstSum - est1 + est2; // dbg("Dissemination","Next sum: %u\n", runEstSum); if(runEstSum > highEstSum) { highEstSum = runEstSum; highIndex = i + 1; dbg("DipSummaryP", "Next range: %u, %u = %u\n", highIndex, highIndex + len, highEstSum); } } // and finish *left = highIndex; *right = highIndex + len; dbg("DipSummaryP","Final Range: %u, %u\n", *left, *right); } uint32_t buildRange(dip_index_t left, dip_index_t right) { uint32_t range; range = ((uint32_t) left << 16) | right; return range; } uint32_t computeHash(dip_index_t left, dip_index_t right, dip_version_t* basedata, uint32_t salt) { dip_index_t i; uint32_t hashValue = salt; //uint8_t *sequence; dip_version_t* sequence; uint32_t iterations; if(right <= left) return 0; //sequence = ((uint8_t*) (basedata + left)); sequence = (basedata + left); //iterations = (right - left - 1)*sizeof(dip_version_t); iterations = (right - left - 1); //dbg("DipSummaryP","Computing hash for %u, %u for %u iters\n", left, right, iterations); for(i = 0; i <= iterations; i++) { hashValue += sequence[i]; hashValue += (hashValue << 10); hashValue ^= (hashValue >> 6); } hashValue += (hashValue << 3); hashValue ^= (hashValue >> 11); hashValue += (hashValue << 15); return hashValue; } uint32_t computeBloomHash(dip_index_t left, dip_index_t right, dip_version_t* basedata, uint32_t salt) { dip_index_t i; uint32_t bit; uint32_t returnHash; uint32_t indexSeqPair[2]; returnHash = 0; for(i = left; i < right; i++) { indexSeqPair[0] = i; indexSeqPair[1] = basedata[i]; bit = computeHash(0, 2, indexSeqPair, salt) % 32; //dbg("DipSummaryP", "Bloom Hash: %u, %u, %u\n", indexSeqPair[0], indexSeqPair[1], bit); returnHash |= (1 << bit); } return returnHash; } void splitRange(uint32_t info, dip_index_t* left, dip_index_t* right) { *right = info & 0xFFFF; *left = (info >> 16) & 0xFFFF; } void adjustEstimatesSame(dip_index_t left, dip_index_t right) { dip_index_t i; for(i = left; i < right; i++) { call DipEstimates.decEstimateByIndex(i); } } void adjustEstimatesDiff(dip_index_t left, dip_index_t right, dip_version_t* data, uint32_t salt, uint32_t bHash) { dip_index_t i; dip_estimate_t est; dip_key_t key; uint32_t indexSeqPair[2]; uint32_t bit; est = call DipEstimates.hashlengthToEstimate(right - left) + 1; // + 1 to improve search for(i = left; i < right; i++) { indexSeqPair[0] = i; indexSeqPair[1] = data[i]; bit = computeHash(0, 2, indexSeqPair, salt) % 32; key = call DipHelp.indexToKey(i); if(bHash & (1 << bit)) { //set estimate only if better call DipEstimates.setSummaryEstimateByIndex(i, est); } else { dbg("DisseminationDebug", "Key %x definitely different\n", key); call DipEstimates.setVectorEstimate(key); } } } }
nesC
4
mtaghiza/tinyos-main-1
tos/lib/net/dip/DipSummaryP.nc
[ "BSD-3-Clause" ]
module gate(w, x, y, z); function automatic integer bar( integer a ); bar = 2 ** a; endfunction output integer w = bar(4); function automatic integer foo( input integer a, /* implicitly input */ integer b, output integer c, /* implicitly output */ integer d ); c = 42; d = 51; foo = a + b + 1; endfunction output integer x, y, z; initial x = foo(1, 2, y, z); endmodule module gold(w, x, y, z); output integer w = 16, x = 4, y = 42, z = 51; endmodule
SystemVerilog
4
gudeh/yosys
tests/various/func_port_implied_dir.sv
[ "ISC" ]
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><g><rect fill="none" height="20" width="20"/><path d="M15,3H5C4.45,3,4,3.45,4,4v13h12V4C16,3.45,15.55,3,15,3z M13,11c-0.55,0-1-0.45-1-1c0-0.55,0.45-1,1-1s1,0.45,1,1 C14,10.55,13.55,11,13,11z"/></g></svg>
SVG
1
elisoncrum/piipan
query-tool/src/Piipan.QueryTool/wwwroot/images/usa-icons-unused/sensor_door.svg
[ "CC0-1.0" ]
module Favorites exposing (Model, handleDelivery, isFavorited, isInstanceGroupFavorited, isPipelineFavorited, update) import Concourse exposing (PipelineGrouping(..)) import EffectTransformer exposing (ET) import Message.Callback exposing (Callback(..)) import Message.Effects as Effects import Message.Message exposing (DomID(..), Message(..)) import Message.Subscription exposing (Delivery(..)) import Set exposing (Set) type alias Model m = { m | favoritedPipelines : Set Concourse.DatabaseID , favoritedInstanceGroups : Set ( Concourse.TeamName, Concourse.PipelineName ) } update : Message -> ET (Model m) update message ( model, effects ) = let toggle element set = if Set.member element set then Set.remove element set else Set.insert element set toggleFavoritePipeline pipelineID = let favoritedPipelines = toggle pipelineID model.favoritedPipelines in ( { model | favoritedPipelines = favoritedPipelines } , [ Effects.SaveFavoritedPipelines favoritedPipelines ] ) toggleFavoriteInstanceGroup ig = let favoritedInstanceGroups = toggle (instanceGroupKey ig) model.favoritedInstanceGroups in ( { model | favoritedInstanceGroups = favoritedInstanceGroups } , [ Effects.SaveFavoritedInstanceGroups favoritedInstanceGroups ] ) in case message of Click (SideBarPipelineFavoritedIcon pipelineID) -> toggleFavoritePipeline pipelineID Click (PipelineCardFavoritedIcon _ pipelineID) -> toggleFavoritePipeline pipelineID Click (TopBarFavoritedIcon pipelineID) -> toggleFavoritePipeline pipelineID Click (SideBarInstanceGroupFavoritedIcon groupID) -> toggleFavoriteInstanceGroup groupID Click (InstanceGroupCardFavoritedIcon _ groupID) -> toggleFavoriteInstanceGroup groupID _ -> ( model, effects ) handleDelivery : Delivery -> ET (Model m) handleDelivery delivery ( model, effects ) = case delivery of FavoritedPipelinesReceived (Ok pipelines) -> ( { model | favoritedPipelines = pipelines }, effects ) FavoritedInstanceGroupsReceived (Ok groups) -> ( { model | favoritedInstanceGroups = groups }, effects ) _ -> ( model, effects ) isFavorited : Model m -> PipelineGrouping { r | name : Concourse.PipelineName , teamName : Concourse.TeamName , id : Concourse.DatabaseID } -> Bool isFavorited model group = case group of RegularPipeline p -> isPipelineFavorited model p InstanceGroup p _ -> isInstanceGroupFavorited model (Concourse.toInstanceGroupId p) isPipelineFavorited : { m | favoritedPipelines : Set Concourse.DatabaseID } -> { r | id : Concourse.DatabaseID } -> Bool isPipelineFavorited { favoritedPipelines } { id } = Set.member id favoritedPipelines isInstanceGroupFavorited : { m | favoritedInstanceGroups : Set ( Concourse.TeamName, Concourse.PipelineName ) } -> Concourse.InstanceGroupIdentifier -> Bool isInstanceGroupFavorited { favoritedInstanceGroups } ig = Set.member (instanceGroupKey ig) favoritedInstanceGroups instanceGroupKey : Concourse.InstanceGroupIdentifier -> ( Concourse.TeamName, Concourse.PipelineName ) instanceGroupKey { teamName, name } = ( teamName, name )
Elm
5
Caprowni/concourse
web/elm/src/Favorites.elm
[ "Apache-2.0" ]
QT += core CONFIG += c++11 INCLUDEPATH += $$PWD/src DEFINES += ELPP_QT_LOGGING \ ELPP_STL_LOGGING \ ELPP_STRICT_SIZE_CHECK ELPP_UNICODE \ ELPP_MULTI_LOGGER_SUPPORT \ ELPP_THREAD_SAFE \ ELPP_UNICODE \ ELPP_NO_DEFAULT_LOG_FILE SOURCES += $$PWD/src/easylogging++.cc HEADERS += $$PWD/src/easylogging++.h
QMake
3
VolodymyrKuksa/easyloggingpp
easyloggingpp.pri
[ "MIT" ]
within ; package DocuModels model Filter Modelica.Electrical.Analog.Basic.Resistor R(R=0.5) annotation (Placement(transformation(extent={{-50,40},{-30,60}}))); Modelica.Electrical.Analog.Basic.Capacitor C(C=2.0) annotation (Placement( transformation( extent={{-10,-10},{10,10}}, rotation=-90, origin={-10,30}))); Modelica.Electrical.Analog.Sources.ConstantVoltage V(V=10) annotation ( Placement(transformation( extent={{-10,-10},{10,10}}, rotation=-90, origin={-70,30}))); equation connect(V.p, R.p) annotation (Line(points={{-70,40},{-70,50},{-50,50}}, color={0,0,255})); connect(R.n, C.p) annotation (Line(points={{-30,50},{-10,50},{-10,40}}, color={0,0,255})); connect(C.n, V.n) annotation (Line(points={{-10,20},{-10,8},{-70,8},{-70,20}}, color={0,0,255})); annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( coordinateSystem(preserveAspectRatio=false))); end Filter; annotation (uses(Modelica(version="3.2.3"))); end DocuModels;
Modelica
3
vishalbelsare/Modia.jl
docs/resources/models/DocuModels.mo
[ "MIT" ]
package com.baeldung.nullmethodparameter; public class NullParameterExample { public void processSomethingNotNull(Object myParameter) { if (myParameter == null) { throw new IllegalArgumentException("Parameter 'myParameter' cannot be null"); } //Do something with the parameter } public void processSomethingElseNotNull(Object myParameter) { if (myParameter == null) { throw new NullPointerException("Parameter 'myParameter' cannot be null"); } //Do something with the parameter } }
Java
4
DBatOWL/tutorials
core-java-modules/core-java-exceptions-3/src/main/java/com/baeldung/nullmethodparameter/NullParameterExample.java
[ "MIT" ]
//ascript #useLSLAPI public void state_entry() { //First get the IScenePresence from the Scene. IScenePresence SP = Scene.GetScenePresence(UUID.Parse(llGetOwner())); llSay(0, SP.Name); //Say their name, then teleport them SP.Teleport(new Vector3((float)llGetPos().x,(float)llGetPos().y,(float)llGetPos().z)); }
LSL
3
BillyWarrhol/Aurora-Sim
AuroraDocs/AScript/UserTeleport.lsl
[ "BSD-3-Clause" ]
package com.baeldung; import java.util.Date; import org.apache.camel.Exchange; import org.apache.camel.Processor; public class MyPayloadClonePrepare implements Processor { public void process(Exchange exchange) throws Exception { MyPayload myPayload = exchange.getIn().getBody(MyPayload.class); exchange.getIn().setBody(myPayload.deepClone()); exchange.getIn().setHeader("date", new Date()); } }
Java
3
DBatOWL/tutorials
patterns/enterprise-patterns/wire-tap/src/main/java/com/baeldung/MyPayloadClonePrepare.java
[ "MIT" ]
Module: sample-OLE-server Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: See License.txt in this distribution for details. Warranty: Distributed WITHOUT WARRANTY OF ANY KIND //********************************************************************** // // CExternalConnection::AddConnection // // Purpose: // // Called when another connection is made to the object. // // Parameters: // // DWORD extconn - Type of connection // // DWORD reserved - Reserved // // Return Value: // // Strong connection count // // Function Calls: // Function Location // // OutputDebugString Windows API // // Comments: // // //******************************************************************** define method IExternalConnection/AddConnection(this :: <CExternalConnection>, extconn :: <integer>, reserved :: <integer>) => count :: <integer>; OutputDebugString("In CExternalConnection::AddConnection\r\n"); if ( logand(extconn, $EXTCONN-STRONG) ~= 0 ) this.m-dwStrong := this.m-dwStrong + 1 else 0 end if end method IExternalConnection/AddConnection; //********************************************************************** // // CExternalConnection::ReleaseConnection // // Purpose: // // Called when a connection to the object is released. // // Parameters: // // DWORD extconn - Type of Connection // // DWORD reserved - Reserved // // BOOL fLastReleaseCloses - Close flag // // Return Value: // // The new reference count // // Function Calls: // Function Location // // OutputDebugString Windows API // COleObject::Close IOO.CPP // // Comments: // // //******************************************************************** define method IExternalConnection/ReleaseConnection (this :: <CExternalConnection>, extconn :: <integer>, reserved :: <integer>, fLastReleaseCloses :: <boolean>) => count :: <integer>; OutputDebugString("In CExternalConnection::ReleaseConnection\r\n"); if ( logand(extconn,$EXTCONN-STRONG) ~= 0 ) let dwSave :: <integer> = (this.m-dwStrong := this.m-dwStrong - 1); if ( zero?(dwSave) & fLastReleaseCloses ) IOleObject/Close(this.m-lpObj.m-OleObject, $OLECLOSE-SAVEIFDIRTY); end if; dwSave else 0 end if end method IExternalConnection/ReleaseConnection;
Dylan
5
kryptine/opendylan
sources/ole/examples/sample-ole-server/iec.dylan
[ "BSD-2-Clause" ]
--TEST-- Bug #76737: Unserialized reflection objects are broken, they shouldn't be serializable --FILE-- <?php try { $r = new ReflectionClass('stdClass'); var_dump(serialize($r)); } catch (Exception $e) { echo $e->getMessage(), "\n"; } try { $s = 'C:15:"ReflectionClass":0:{}'; var_dump(unserialize($s)); } catch (Exception $e) { echo $e->getMessage(), "\n"; } try { $s = 'O:15:"ReflectionClass":0:{}'; var_dump(unserialize($s)); } catch (Exception $e) { echo $e->getMessage(), "\n"; } ?> --EXPECTF-- Serialization of 'ReflectionClass' is not allowed Unserialization of 'ReflectionClass' is not allowed Unserialization of 'ReflectionClass' is not allowed
PHP
4
NathanFreeman/php-src
ext/reflection/tests/bug76737.phpt
[ "PHP-3.01" ]
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.mapred; import java.io.IOException; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.jobhistory.JobHistory; import org.apache.hadoop.mapreduce.test.system.JobInfo; /** * Aspect to add a utility method in the JobInProgress for easing up the * construction of the JobInfo object. */ privileged aspect JobInProgressAspect { /** * Returns a read only view of the JobInProgress object which is used by the * client. * * @return JobInfo of the current JobInProgress object */ public JobInfo JobInProgress.getJobInfo() { String historyLoc = getHistoryPath(); boolean isHistoryFileCopied = this.status.getHistoryFile() == null ? false : true; if (tasksInited.get()) { return new JobInfoImpl( this.getJobID(), this.isSetupLaunched(), this.isSetupFinished(), this .isCleanupLaunched(), this.runningMaps(), this.runningReduces(), this.pendingMaps(), this.pendingReduces(), this.finishedMaps(), this .finishedReduces(), this.getStatus(), historyLoc, this .getBlackListedTrackers(), false, this.numMapTasks, this.numReduceTasks, isHistoryFileCopied); } else { return new JobInfoImpl( this.getJobID(), false, false, false, 0, 0, this.pendingMaps(), this .pendingReduces(), this.finishedMaps(), this.finishedReduces(), this.getStatus(), historyLoc, this.getBlackListedTrackers(), this .isComplete(), this.numMapTasks, this.numReduceTasks, false); } } private String JobInProgress.getHistoryPath() { String historyLoc = ""; if (this.isComplete()) { historyLoc = this.getStatus().getHistoryFile(); } else { Path jobHistoryDirectory = this.jobHistory.getJobHistoryLocation(); Path historypath = JobHistory.getJobHistoryFile( jobHistoryDirectory, this.getJobID(), this.profile.getUser()); historyLoc = historypath.toString(); } return historyLoc; } }
AspectJ
4
dm20/hadoop-mapreduce
src/test/system/aop/org/apache/hadoop/mapred/JobInProgressAspect.aj
[ "Apache-2.0" ]
values = ["woo", 3, false, 7] fn2(n Int) -> say "{n}" fn2(..._ *) -> raise "I wasn't prepared for that type!" fn2 values.1 fn2 values.3 fn2 values.0
Ox
3
ozra/onyx-lang
spec/onyx-alpha-throwups/mixed-type-list-test.ox
[ "Apache-2.0" ]
#version 3.1; // By Jonathan Hunt <jonathan@xlcus.com> #declare TulipHeadTexture = texture { pigment { bumps color_map { [0.0 colour rgb<0.9, 0.0, 0.0>] [1.0 colour rgb<0.8, 0.0, 0.2>] } scale <0.005, 0.02, 0.005> } normal { bumps 0.25 scale <0.025, 1, 0.025> } finish { phong 0.5 phong_size 25 } } #declare TulipStemTexture = texture { pigment { bumps color_map { [0.0 colour rgb<0.5, 0.5, 0.4>] [1.0 colour rgb<0.3, 0.4, 0.1>] } scale <0.005, 0.08, 0.005> } normal { bumps 0.25 scale <0.025, 1, 0.025> } finish { ambient 0.0 } } #declare GrassTexture = texture { pigment { bumps color_map { [0.0 colour rgb<0.6, 0.6, 0.6>] [1.0 colour rgb<0.3, 0.7, 0.2>] } scale <0.005, 0.5, 0.005> } normal { bumps 0.25 scale <0.03, 2, 0.03> } finish { ambient 0.0 diffuse 0.5 } } #declare WindmillBladesTexture = texture { pigment { colour rgb<0.2, 0.2, 0.0> } } #declare WindmillBaseTexture = texture { pigment { bumps color_map { [0.0 colour rgb<0.5, 0.5, 0.4>] [1.0 colour rgb<0.8, 0.8, 0.8>] } scale 2 } } #declare PetalBlob = blob { threshold 0.5 sphere{<0.00, 0, 0> 1.0, 1} sphere{<0.03, 0, 0> 0.6, -1} bounded_by{box{<-0.55,-0.4,-0.4>, <-0.3, 0.4, 0.4>}} } #declare Petal = union { difference { object { PetalBlob scale <1, 2, 1> } plane { <0, 1, 0>, 0 } } difference { object { PetalBlob scale <1, 1, 1> } plane { <0, -1, 0>, 0 } } rotate <0, 0, 10> translate <0.05, 0, 0> } #declare TulipHead = union { #declare PetalLayerLoop = 0; #while (PetalLayerLoop < 4) #declare PetalScale = 1-PetalLayerLoop / 5; #declare PetalLoop = 0; #while (PetalLoop < 3) object { Petal rotate <0, PetalLoop * 120 + PetalLayerLoop * 59, 0> scale <PetalScale, 1, PetalScale> } #declare PetalLoop = PetalLoop + 1; #end #declare PetalLayerLoop = PetalLayerLoop + 1; #end texture { TulipHeadTexture } } #declare TulipStem = intersection { torus { 10, 0.06 rotate <90, 0, 0> translate <10, 0, 0> } box { <-2, -5, -2> <2, 0, 2> } texture { TulipStemTexture } } #macro Tulip(HeadAngle) union { object {TulipStem} object {TulipHead rotate <0, HeadAngle, 0>} //object{sphere {<0, 0, 0>, 0.5 texture{TulipHeadTexture}}} } #end #declare Grass = difference { torus { 0.8, 0.1 } torus { 0.8, 0.11 translate <0.02, 0, 0> } plane { < 0, 0, -1>, 0 } plane { <-1, 0, 0>, 0 } rotate <90, 0, 0> translate <0.9, 0, 0> scale <1, 2, 1> texture { GrassTexture } bounded_by{box{<-0.08, 0, -0.1>, <0.13, 1.7, 0.1>} rotate <0, 0, -12>} } #declare WindmillBlades = union { box {< 2.0, -2.5, 0>, < 16.0, 0.5, 0.2>} box {< 2.5, 2.0, 0>, < -0.5, 16.0, 0.2>} box {<-2.0, 2.5, 0>, <-16.0, -0.5, 0.2>} box {<-2.5, -2.0, 0>, < 0.5, -16.0, 0.2>} box {<-8.0, -0.5, 0>, <8.0, 0.5, 0.2>} box {<-0.5, -8.0, 0>, <0.5, 8.0, 0.2>} cylinder {<0, 0, 0>, <0, 0, 2>, 1} texture { WindmillBladesTexture } } #declare WindmillBase = union { cone { <0, 0, 0>, 8, <0, 20, 0>, 2 texture { WindmillBaseTexture } } cylinder {< 0, -2, 0>, < 0, 0.0, 0>, 12.0} cylinder {< 0, -2, 0>, < 0, -8.0, 0>, 8.0} cylinder {< 11, -2, 0>, < 11, 3.5, 0>, 0.2} cylinder {<-11, -2, 0>, <-11, 3.5, 0>, 0.2} cylinder {< 0, -2, -11>, < 0, 3.0, -11>, 0.2} texture { WindmillBladesTexture } } #declare Windmill = union { object { WindmillBase } object { WindmillBlades rotate < 0, 0, -15> rotate <15, 0, 0> translate <0, 18, -6> rotate <0, 20, 0> } } #declare Sky = sky_sphere { pigment { bozo turbulence 0.65 octaves 6 omega 0.7 lambda 2 color_map { [0.0 color rgb<0.5, 0.5, 0.5>] [1.0 color rgb<0.5, 0.7, 1.0>] } rotate <0, 30, 0> rotate <73, 0, 0> scale <0.2, 0.1, 0.1> } pigment { bozo turbulence 0.65 octaves 6 omega 0.7 lambda 2 color_map { [0.0 color rgbt<1.0, 1.00, 1, 0>] [1.0 color rgbt<0.5, 0.66, 1, 0.2>] } rotate <0, 30, 0> rotate <70, 0, 0> scale <0.2, 0.1, 0.1> } } camera { right x up 4/3*y location <0, 0, -3.0> look_at <0, 0, 0> aperture 0.25 blur_samples 256 focal_point<0,0,0> confidence 0.9999 variance 0 } #declare R1 = seed(123); #declare LightLoop = 0; #while (LightLoop < 100) light_source { <800-rand(R1)*1600, 400, 800-rand(R1)*1600> color rgb<0.037, 0.037, 0.037> } #declare LightLoop = LightLoop + 1; #end sky_sphere {Sky} union { plane { <0, 1, 0>, -4 pigment {colour rgb <0, 0.5, 0>} finish {ambient 1.0 diffuse 0.0} } object {Tulip(65) rotate <0, 0, -25> rotate <0, -25, 0> translate <-0.7, -0.1, 0.0>} object {Tulip(30) rotate <0, 0, -40> rotate <0, -10, 0> translate <-0.2, -1.2, 0.0>} object {Tulip(70) rotate <0, 0, -15> rotate <0, 0, 0> translate < 1.8, -2.8, 3.8>} object {Tulip(20) rotate <0, 0, 0> rotate <0, 0, 0> translate < 3.0, 1.2, 20.0>} object {Tulip( 0) rotate <0, 0, 0> rotate <0, 0, 0> translate < 4.2, -2.0, 7.0>} #declare R1 = seed(129); #declare TulipLoop = 0; #while (TulipLoop < 640) object { Tulip(60+rand(R1)*360) rotate <0, 0, -25-rand(R1)*10> // Lean rotate <0, -rand(R1)*10, 0> // Rotate translate <rand(R1)*20, -rand(R1)*1, rand(R1)*40> rotate <0, -45, 0> rotate <-5, 0, 0> translate <2, -0.7, 3> } #declare TulipLoop = TulipLoop + 1; #end #declare TulipLoop = 0; #while (TulipLoop < 64) object { Tulip(60+rand(R1)*360) rotate <0, 0, -30-rand(R1)*10> // Lean rotate <0, -rand(R1)*10, 0> // Rotate translate <-rand(R1)*20, -rand(R1)*1, rand(R1)*10> rotate <0, -45, 0> rotate <-5, 0, 0> translate <-0.5, -1.5, 5> } #declare TulipLoop = TulipLoop + 1; #end #declare R1 = seed(696); #declare GrassLoop = 0; #while (GrassLoop < 4096) object { Grass rotate <-30 + 60*rand(R1), 0, -30 + 60*rand(R1)> rotate <0, 360*rand(R1), 0> scale <1 + rand(R1), 0.5 + rand(R1), 1 + rand(R1)> translate <-10 + 20*rand(R1), -4, rand(R1)*20> } #declare GrassLoop = GrassLoop + 1; #end object { Windmill translate <18, 9, 80> } #declare R1 = seed(60); #declare GrassLoop = 0; #while (GrassLoop < 48) object { Grass rotate <0, -140+100*rand(R1), 0> scale <20, 1+1.5*rand(R1), 8> translate <GrassLoop - 22, (48-GrassLoop)/24, 40> } #declare GrassLoop = GrassLoop + 1; #end #declare R1 = seed(19); #declare GrassLoop = 0; #while (GrassLoop < 128) object { Grass scale <2, (64 - abs(GrassLoop - 64))/64+1, 2> rotate <0, -90, -90 + GrassLoop * 2> translate <-20+GrassLoop/24+4*rand(R1), 2+6*rand(R1), 36> } #declare GrassLoop = GrassLoop + 1; #end }
POV-Ray SDL
5
SDRausty/TermuxPovray
tulips/tulips.pov
[ "Apache-2.0" ]
/** * extension point * * @author caikang * @date 2017/06/19 */ package com.alibaba.p3c.idea.ep;
Java
0
zyling10/p3c
idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/ep/package-info.java
[ "Apache-2.0" ]
# GoCD Server Docker image An ${distro.name()} based docker image for [GoCD server](https://www.gocd.org). # Issues, feedback? Please make sure to log them at https://github.com/gocd/gocd. # Usage Start the container with this: ```shell docker run -d -p8153:8153 gocd/${imageName}:v${goVersion} ``` This will expose container ports 8153(http) onto your server. You can now open `http://localhost:8153` # Available configuration options ## Mounting volumes The GoCD server will store all configuration, pipeline history database, artifacts, plugins, and logs into `/godata`. If you'd like to provide secure credentials like SSH private keys among other things, you can mount `/home/go` ```shell docker run -v /path/to/godata:/godata -v /path/to/home-dir:/home/go gocd/${imageName}:v${goVersion} ``` > **Note:** Ensure that `/path/to/home-dir` and `/path/to/godata` is accessible by the `go` user in container (`go` user - uid `1000`). ## Installing plugins All plugins can be installed under `/godata`. ### Installing plugins using an environment configuration To install plugins, just add an ENV variable with the prefix `GOCD_PLUGIN_INSTALL_` and your name as `suffix` and the value being the download URL. The plugin will only be downloaded if not yet present. An example example would be `GOCD_PLUGIN_INSTALL_docker-elastic-agents=https://github.com/gocd-contrib/docker-elastic-agents/releases/download/v0.8.0/docker-elastic-agents-0.8.0.jar`: ```shell docker run \ -e GOCD_PLUGIN_INSTALL_docker-elastic-agents=https://github.com/gocd-contrib/docker-elastic-agents/releases/download/v0.8.0/docker-elastic-agents-0.8.0.jar \ gocd/${imageName}:v${goVersion} ``` To install multiple plugins, add several `-e` arguments as such: ```shell docker run \ -e GOCD_PLUGIN_INSTALL_a-plugin=https://example.com/a-plugin.jar \ -e GOCD_PLUGIN_INSTALL_b-plugin=https://example.com/b-plugin.jar \ gocd/${imageName}:v${goVersion} ``` ### Installing plugins using a custom entry-point script (see below) ```shell mkdir -p /godata/plugins/external curl --location --fail https://example.com/plugin.jar > /path/to/godata/plugins/external/plugin.jar chown -R 1000 /godata/plugins/external ``` ## Loading configuration from existing git repo To load existing configuration from git repo, just add an ENV variable `CONFIG_GIT_REPO`. Auth token may be used to access private repo. Branch `master` would be cloned by default. To load another branch, define an ENV variable `CONFIG_GIT_BRANCH`. If `/godata/config` already is git repo then CONFIG_GIT_REPO will be ignored. Cloned repo **must** contain all files from `/godata/config` dir. ```shell docker run \ -e CONFIG_GIT_REPO=https://gocd_user:<password_or_auth_token>/config.git \ -e CONFIG_GIT_BRANCH=branch_with_config \ gocd/${imageName}:v${goVersion} ``` *Checkouted content would overwrite files in `/godata/config/`*. ## Running custom entrypoint scripts To execute custom script(s) during the container boostrap, but **before** the GoCD server starts just add `-v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh` like so: ```shell docker run -v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh ... gocd/${imageName}:v${goVersion} ``` If you have several scripts in a directory that you'd like to execute: ```shell docker run -v /path/to/script-dir:/docker-entrypoint.d ... gocd/${imageName}:v${goVersion} ``` > **Note:** Ensure that your scripts are executable `chmod a+x` — you can add as many scripts as you like, `bash` is available on the container. If your script uses other scripting language (perl, python), please ensure that the scripting language is installed in the container. ## Installing addons All addons can be installed under `/godata`. ``` mkdir -p /path/to/godata/addons curl --location --fail https://example.com/addon.jar > /path/to/godata/addons/plugin.jar chown -R 1000 /path/to/godata/addons ``` ## Tweaking JVM options (memory, heap etc) JVM options can be tweaked using the environment variable `GOCD_SERVER_JVM_OPTS`. ```shell docker run -e GOCD_SERVER_JVM_OPTS="-Xmx4096mb -Dfoo=bar" gocd/${imageName}:v${goVersion} ``` # Under the hood The GoCD server runs as the `go` user, the location of the various directories is: | Directory | Description | |---------------------|----------------------------------------------------------------------------------| | `/godata/addons` | the directory where GoCD addons are stored | | `/godata/artifacts` | the directory where GoCD artifacts are stored | | `/godata/config` | the directory where the GoCD configuration is store | | `/godata/db` | the directory where the GoCD database and configuration change history is stored | | `/godata/logs` | the directory where GoCD logs will be written out to | | `/godata/plugins` | the directory containing GoCD plugins | | `/home/go` | the home directory for the GoCD server | # Determine Server IP and Ports on Host Once the GoCD server is up, we should be able to determine its ip address and the ports mapped onto the host by doing the following: The IP address and ports of the GoCD server in a docker container are important to know as they will be used by the GoCD agents to connect to it. If you have started the container with ```shell docker run --name server -it -p8153:8153 gocd/${imageName}:v${goVersion} ``` Then, the below commands will determine to GoCD server IP, server port and ssl port ```shell docker inspect --format='{{(index (index .NetworkSettings.IPAddress))}}' server docker inspect --format='{{(index (index .NetworkSettings.Ports "8153/tcp") 0).HostPort}}' server ``` # Running GoCD Containers as Non Root With release `v19.6.0`, GoCD containers will run as non-root user, by default. The Dockerized GoCD application will run with user `go` (uid: `1000`) and group `root` (gid: `0`) instead of running as user `root` (uid: `0`) and group `root` (gid: `0`). For more information, checkout [Running Dockerized GoCD Containers as Non Root](https://www.gocd.org/2019/06/25/GoCD-non-root-containers/) blog post. # Troubleshooting ## The GoCD server does not come up - Check if the docker container is running `docker ps -a` - Check the STDOUT to see if there is any output that indicates failures `docker logs CONTAINER_ID` - Check the server logs `docker exec -it CONTAINER_ID tail -f /godata/logs/go-server.log` (or check the log file in the volume mount, if you're using one) # License ```plain Copyright ${copyrightYear} ThoughtWorks, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` [0]: https://www.gocd.org/download/
FreeMarker
4
JeroenOortwijn/gocd
buildSrc/src/main/resources/gocd-docker-server/README.md.ftl
[ "Apache-2.0" ]
# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v3 # @ECLASS: invalid-license-header1.eclass # @MAINTAINER: # Random Dev <random.dev@gentoo.org> # @AUTHOR: # Random Dev <random.dev@gentoo.org> # @BLURB: Stub eclass.
Gentoo Eclass
1
floppym/pkgcheck
testdata/repos/gentoo/eclass/invalid-license-header.eclass
[ "BSD-3-Clause" ]
@interface NSManagedObject +alloc; -init; @end
C
0
lwhsu/swift
test/ClangImporter/Inputs/custom-modules/NSManagedObject.h
[ "Apache-2.0" ]
import Trie "mo:base/Trie"; import List "mo:base/List"; import Iter "mo:base/Iter"; import Hash "mo:base/Hash"; import Text "mo:base/Text"; import Prelude "mo:base/Prelude"; import Rel "Rel"; /// OO-based binary relation representation. /// /// See also: Rel module. module { public class RelObj<X, Y>( hash : Rel.HashPair<X, Y>, equal : Rel.EqualPair<X, Y>) { var rel = Rel.empty<X,Y>(hash, equal); public func put(x : X, y : Y) { rel := Rel.put(rel, (x, y)) }; public func delete(x : X, y : Y) { rel := Rel.delete(rel, (x, y)) }; public func isMember(x : X, y : Y) : Bool { Rel.isMember(rel, x, y) }; public func get0(x : X) : [Y] { Iter.toArray(Rel.getRelated0(rel, x)) }; public func get1(y : Y) : [X] { Iter.toArray(Rel.getRelated1(rel, y)) }; public func get0Size(x : X) : Nat { Iter.size(Rel.getRelated0(rel, x)) }; public func get1Size(y : Y) : Nat { Iter.size(Rel.getRelated1(rel, y)) }; public func getMap0<Z>(x : X, f : Y -> Z) : [Z] { Iter.toArray(Iter.map(Rel.getRelated0(rel, x), f)) }; public func getMap1<Z>(y : Y, f : X -> Z) : [Z] { Iter.toArray(Iter.map(Rel.getRelated1(rel, y), f)) }; }; }
Modelica
4
gajendraks/cancan
backend/RelObj.mo
[ "Apache-2.0" ]
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.spark.internal.io import org.apache.spark.SparkFunSuite /** * Unit tests for instantiation of FileCommitProtocol implementations. */ class FileCommitProtocolInstantiationSuite extends SparkFunSuite { test("Dynamic partitions require appropriate constructor") { // you cannot instantiate a two-arg client with dynamic partitions // enabled. val ex = intercept[IllegalArgumentException] { instantiateClassic(true) } // check the contents of the message and rethrow if unexpected. // this preserves the stack trace of the unexpected // exception. if (!ex.toString.contains("Dynamic Partition Overwrite")) { fail(s"Wrong text in caught exception $ex", ex) } } test("Standard partitions work with classic constructor") { instantiateClassic(false) } test("Three arg constructors have priority") { assert(3 == instantiateNew(false).argCount, "Wrong constructor argument count") } test("Three arg constructors have priority when dynamic") { assert(3 == instantiateNew(true).argCount, "Wrong constructor argument count") } test("The protocol must be of the correct class") { intercept[ClassCastException] { FileCommitProtocol.instantiate( classOf[Other].getCanonicalName, "job", "path", false) } } test("If there is no matching constructor, class hierarchy is irrelevant") { intercept[NoSuchMethodException] { FileCommitProtocol.instantiate( classOf[NoMatchingArgs].getCanonicalName, "job", "path", false) } } /** * Create a classic two-arg protocol instance. * @param dynamic dynamic partitioning mode * @return the instance */ private def instantiateClassic(dynamic: Boolean): ClassicConstructorCommitProtocol = { FileCommitProtocol.instantiate( classOf[ClassicConstructorCommitProtocol].getCanonicalName, "job", "path", dynamic).asInstanceOf[ClassicConstructorCommitProtocol] } /** * Create a three-arg protocol instance. * @param dynamic dynamic partitioning mode * @return the instance */ private def instantiateNew( dynamic: Boolean): FullConstructorCommitProtocol = { FileCommitProtocol.instantiate( classOf[FullConstructorCommitProtocol].getCanonicalName, "job", "path", dynamic).asInstanceOf[FullConstructorCommitProtocol] } } /** * This protocol implementation does not have the new three-arg * constructor. */ private class ClassicConstructorCommitProtocol(arg1: String, arg2: String) extends HadoopMapReduceCommitProtocol(arg1, arg2) { } /** * This protocol implementation does have the new three-arg constructor * alongside the original, and a 4 arg one for completeness. * The final value of the real constructor is the number of arguments * used in the 2- and 3- constructor, for test assertions. */ private class FullConstructorCommitProtocol( arg1: String, arg2: String, b: Boolean, val argCount: Int) extends HadoopMapReduceCommitProtocol(arg1, arg2, b) { def this(arg1: String, arg2: String) = { this(arg1, arg2, false, 2) } def this(arg1: String, arg2: String, b: Boolean) = { this(arg1, arg2, false, 3) } } /** * This has the 2-arity constructor, but isn't the right class. */ private class Other(arg1: String, arg2: String) { } /** * This has no matching arguments as well as being the wrong class. */ private class NoMatchingArgs() { }
Scala
4
kesavanvt/spark
core/src/test/scala/org/apache/spark/internal/io/FileCommitProtocolInstantiationSuite.scala
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
i 00001 17 24 02000 00 042 0017 i 00002 00 012 2003 00 040 0016 i 00003 00 010 2004 00 003 2005 i 00004 00 003 2006 00 003 0000 i 00005 16 045 0017 17 25 77776 i 00006 17 35 00014 00 010 2000 i 00007 00 012 2004 00 27 00014 i 00010 00 010 2001 00 012 2005 i 00011 00 27 00014 00 010 2002 i 00012 00 012 2006 00 27 00014 i 00013 06 33 12345 00 22 00000 i 00014 02 33 76543 00 22 00000 d 02003 0000 0000 0007 7777 d 02004 0000 0000 0000 0011 d 02005 0000 0000 0000 0022 d 02006 0000 0000 0000 0033
Octave
1
besm6/mesm6
test/xts/xts.oct
[ "MIT" ]
import { useEffect, useState } from 'react' const foo = (query) => query export const FOO = foo('query') const MyPage = () => { const [isMounted, setMounted] = useState(false) useEffect(() => { setMounted(true) }, []) if (isMounted) { return <p>client loaded</p> } return <p>server</p> } const getServerSideProps = async () => { return { props: {} } } export default MyPage export { getServerSideProps }
JavaScript
4
blomqma/next.js
test/integration/getserversideprops/pages/refresh.js
[ "MIT" ]
--TEST-- SPL: ArrayObject::exchangeArray() and copy-on-write references --FILE-- <?php $ao = new ArrayObject(); $swapIn = array(); $cowRef = $swapIn; // create a copy-on-write ref to $swapIn $ao->exchangeArray($swapIn); $ao['a'] = 'adding element to $ao'; $swapIn['b'] = 'adding element to $swapIn'; $ao['c'] = 'adding another element to $ao'; echo "\n--> swapIn: "; var_dump($swapIn); echo "\n--> cowRef: "; var_dump($cowRef); echo "\n--> ao: "; var_dump($ao); ?> --EXPECTF-- --> swapIn: array(1) { ["b"]=> string(25) "adding element to $swapIn" } --> cowRef: array(0) { } --> ao: object(ArrayObject)#%d (1) { ["storage":"ArrayObject":private]=> array(2) { ["a"]=> string(21) "adding element to $ao" ["c"]=> string(29) "adding another element to $ao" } }
PHP
3
guomoumou123/php5.5.10
ext/spl/tests/arrayObject_exchangeArray_basic1.phpt
[ "PHP-3.01" ]
such foo much bar baz shh 1 wow
Dogescript
0
joeratt/dogescript
test/spec/such/such-args/source.djs
[ "MIT" ]
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_COMPILER_JIT_CLUSTER_SCOPING_PASS_H_ #define TENSORFLOW_COMPILER_JIT_CLUSTER_SCOPING_PASS_H_ #include "tensorflow/core/common_runtime/optimization_registry.h" namespace tensorflow { // This pass adds scopes to nodes in the _XlaInternalScope attribute to guide // the later clustering passes. A major reason to do this is to prevent the // clustering from losing critical parallelism in the Tensorflow graph, which // can incur great performance degradation. // // This pass must be run before MarkForCompilationPass, as it stores the // scoping information that MarkForCompilationPass will need to respect for // clustering decision. class ClusterScopingPass : public GraphOptimizationPass { public: Status Run(const GraphOptimizationPassOptions& options) override; }; } // namespace tensorflow #endif // TENSORFLOW_COMPILER_JIT_CLUSTER_SCOPING_PASS_H_
C
5
abhaikollara/tensorflow
tensorflow/compiler/jit/cluster_scoping_pass.h
[ "Apache-2.0" ]
exec("swigtest.start", -1); smallnum = -127; checkequal(CharValFunction(smallnum), smallnum, "CharValFunction(smallnum)"); checkequal(CCharValFunction(smallnum), smallnum, "CCharValFunction(smallnum)"); checkequal(CCharRefFunction(smallnum), smallnum, "CCharRefFunction(smallnum)"); try globalchar_set(smallnum); catch swigtesterror(); end checkequal(globalchar_get(), smallnum, "globalchar_get()"); checkequal(globalconstchar_get(), -110, "globalconstchar_get()"); try dirTest = new_DirTest(); catch swigtesterror(); end checkequal(DirTest_CharValFunction(dirTest, smallnum), smallnum, "DirTest_CharValFunction(dirTest, smallnum)"); checkequal(DirTest_CCharValFunction(dirTest, smallnum), smallnum, "DirTest_CCharValFunction(dirTest, smallnum)"); checkequal(DirTest_CCharRefFunction(dirTest, smallnum), smallnum, "DirTest_CCharRefFunction(dirTest, smallnum)"); // TODO Too long identifiers //if dirTest_memberchar_get(dirTest) <> -111 then swigtesterror(); end //try // dirTest_memberchar_set(dirTest, smallnum) //catch // swigtesterror(); //end //if dirTest_memberchar_get(dirTest) <> smallnum then swigtesterror(); end //if dirTest_memberconstchar_get(dirTest) <> -112 then swigtesterror(); end try delete_DirTest(dirTest); catch swigtesterror(); end exec("swigtest.quit", -1);
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/apply_signed_char_runme.sci
[ "BSD-3-Clause" ]