repo_name
stringlengths 4
116
| path
stringlengths 4
379
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
---|---|---|---|---|
spring-projects/spring-framework
|
spring-core/src/main/java/org/springframework/core/StandardReflectionParameterNameDiscoverer.java
|
1831
|
/*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.core;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import org.springframework.lang.Nullable;
/**
* {@link ParameterNameDiscoverer} implementation which uses JDK 8's reflection facilities
* for introspecting parameter names (based on the "-parameters" compiler flag).
*
* @author Juergen Hoeller
* @since 4.0
* @see java.lang.reflect.Method#getParameters()
* @see java.lang.reflect.Parameter#getName()
*/
public class StandardReflectionParameterNameDiscoverer implements ParameterNameDiscoverer {
@Override
@Nullable
public String[] getParameterNames(Method method) {
return getParameterNames(method.getParameters());
}
@Override
@Nullable
public String[] getParameterNames(Constructor<?> ctor) {
return getParameterNames(ctor.getParameters());
}
@Nullable
private String[] getParameterNames(Parameter[] parameters) {
String[] parameterNames = new String[parameters.length];
for (int i = 0; i < parameters.length; i++) {
Parameter param = parameters[i];
if (!param.isNamePresent()) {
return null;
}
parameterNames[i] = param.getName();
}
return parameterNames;
}
}
|
apache-2.0
|
jacarrichan/eoffice
|
src/main/java/com/palmelf/eoffice/action/flow/ProcessDetailAction.java
|
782
|
package com.palmelf.eoffice.action.flow;
import com.palmelf.core.web.action.BaseAction;
import com.palmelf.eoffice.model.flow.ProDefinition;
import com.palmelf.eoffice.service.flow.ProDefinitionService;
import javax.annotation.Resource;
public class ProcessDetailAction extends BaseAction {
@Resource
private ProDefinitionService proDefinitionService;
private ProDefinition proDefinition;
public ProDefinition getProDefinition() {
return this.proDefinition;
}
public void setProDefinition(ProDefinition proDefinition) {
this.proDefinition = proDefinition;
}
@Override
public String execute() throws Exception {
String defId = getRequest().getParameter("defId");
this.proDefinition = (this.proDefinitionService.get(new Long(defId)));
return "success";
}
}
|
apache-2.0
|
jpallas/beakerx
|
kernel/base/src/main/java/com/twosigma/beakerx/kernel/magic/command/functionality/LoadMagicMagicCommand.java
|
2874
|
/*
* Copyright 2017 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twosigma.beakerx.kernel.magic.command.functionality;
import com.twosigma.beakerx.kernel.KernelFunctionality;
import com.twosigma.beakerx.kernel.magic.command.MagicCommandExecutionParam;
import com.twosigma.beakerx.kernel.magic.command.MagicCommandFunctionality;
import com.twosigma.beakerx.kernel.magic.command.outcome.MagicCommandOutcomeItem;
import com.twosigma.beakerx.kernel.magic.command.outcome.MagicCommandOutput;
import com.twosigma.beakerx.kernel.magic.command.MagicCommandType;
import static com.twosigma.beakerx.kernel.magic.command.functionality.MagicCommandUtils.splitPath;
import static com.twosigma.beakerx.kernel.magic.command.outcome.MagicCommandOutcomeItem.Status.ERROR;
import static com.twosigma.beakerx.kernel.magic.command.outcome.MagicCommandOutcomeItem.Status.OK;
public class LoadMagicMagicCommand implements MagicCommandFunctionality {
public static final String LOAD_MAGIC = "%load_magic";
private KernelFunctionality kernel;
public LoadMagicMagicCommand(KernelFunctionality kernel) {
this.kernel = kernel;
}
@Override
public String getMagicCommandName() {
return LOAD_MAGIC;
}
@Override
public MagicCommandOutcomeItem execute(MagicCommandExecutionParam param) {
String command = param.getCommand();
String[] split = splitPath(command);
if (split.length != 2) {
return new MagicCommandOutput(ERROR, WRONG_FORMAT_MSG + LOAD_MAGIC);
}
String clazzName = split[1];
try {
Class<?> aClass = this.kernel.loadClass(clazzName);
Object instance = aClass.newInstance();
if (instance instanceof MagicCommandFunctionality) {
MagicCommandFunctionality commandFunctionality = (MagicCommandFunctionality) instance;
kernel.registerMagicCommandType(new MagicCommandType(commandFunctionality.getMagicCommandName(), "", commandFunctionality));
return new MagicCommandOutput(OK, "Magic command " + commandFunctionality.getMagicCommandName() + " was successfully added.");
} else {
return new MagicCommandOutput(ERROR, "Magic command have to implement " + MagicCommandFunctionality.class + " interface.");
}
} catch (Exception e) {
return new MagicCommandOutput(ERROR, e.toString());
}
}
}
|
apache-2.0
|
samdauwe/BabylonCpp
|
src/Samples/src/samples/materials/shadermaterial/shader_material_carved_trees_scene.cpp
|
5781
|
#include <babylon/cameras/free_camera.h>
#include <babylon/engines/engine.h>
#include <babylon/engines/scene.h>
#include <babylon/interfaces/irenderable_scene.h>
#include <babylon/lights/hemispheric_light.h>
#include <babylon/materials/effect.h>
#include <babylon/materials/effect_shaders_store.h>
#include <babylon/materials/shader_material.h>
#include <babylon/meshes/builders/mesh_builder_options.h>
#include <babylon/meshes/mesh.h>
#include <babylon/meshes/mesh_builder.h>
#include <babylon/samples/babylon_register_sample.h>
namespace BABYLON {
namespace Samples {
class ShaderMaterialCarvedTreesScene : public IRenderableScene {
public:
/** Vertex Shader **/
static constexpr const char* customVertexShader
= R"ShaderCode(
#ifdef GL_ES
precision highp float;
#endif
// Attributes
attribute vec3 position;
attribute vec2 uv;
// Uniforms
uniform mat4 worldViewProjection;
// Varying
varying vec2 vUV;
void main(void) {
gl_Position = worldViewProjection * vec4(position, 1.0);
vUV = uv;
}
)ShaderCode";
/** Pixel (Fragment) Shader **/
// Carved Trees ( https://www.shadertoy.com/view/MlBGWG )
static constexpr const char* customFragmentShader
= R"ShaderCode(
#ifdef GL_ES
precision highp float;
#endif
// Varying
varying vec3 vPosition;
varying vec3 vNormal;
varying vec2 vUV;
// Uniforms
uniform mat4 worldViewProjection;
uniform float iTime;
uniform float iAspectRatio;
uniform vec2 iResolution;
//(if mousex+y>0...)
#define time iTime * .5
#define resolution iResolution.xy
vec3 ldir;
float ot;
float tree(vec2 p) {
p = p * .72 + vec2(0., 1.32);
ot = 1000.;
for (int i = 0; i < 28; i++) {
float l = dot(p, p);
ot = min(ot, abs(l - .6));
p.x = abs(p.x);
p = p / l * 2. - vec2(.38, .2);
}
return dot(p, p) * .02;
}
float light(vec2 p) {
vec2 d = vec2(0., .003);
float d1 = tree(p - d.xy) - tree(p + d.xy);
float d2 = tree(p - d.yx) - tree(p + d.yx);
vec3 n1 = vec3(0., d.y, d1);
vec3 n2 = vec3(d.y, 0., d2);
vec3 n = normalize(cross(n1, n2));
float diff = max(0., dot(ldir, n)) * .6;
vec3 r = reflect(vec3(0., 0., 1.), ldir);
float spec = pow(max(0., dot(r, n)), 25.) * .4;
return (diff + spec + .15) * max(0.4, 1. - tree(p));
}
void main(void) {
vec2 p = gl_FragCoord.xy / resolution.xy - .5;
vec2 aspect = vec2(resolution.x / resolution.y, 1.);
vec3 iMouse = vec3(0.0, 0.0, 0.0);
p *= aspect;
if (iMouse.z > 0.)
p += 3. * (iMouse.xy / iResolution.xy - .5);
p *= 1. + sin(time) * .2;
float a = 2. + cos(time * .3) * .5;
mat2 rot = mat2(sin(a), cos(a), -cos(a), sin(a));
p *= rot;
p += vec2(sin(time), cos(time)) * .2;
vec3 lightpos = vec3(sin(time * 3.) * .8, cos(time) * .9, -1.);
lightpos.xy *= aspect * .5;
ldir = normalize(vec3(p, -tree(p)) + lightpos);
float l = light(p);
ot = max(1. - ot * .7, 0.);
vec3 col = l * vec3(ot * ot * 1.45, ot * .9, ot * ot * .55);
col +=
pow(max(0., .2 - length(p + lightpos.xy)) / .2, 3.) *
vec3(1.2, 1.1, 1.);
col *= pow(max(0., 1. - length(p + lightpos.xy) * .3), 2.5);
gl_FragColor = vec4(col + .03, 1.0);
}
)ShaderCode";
public:
ShaderMaterialCarvedTreesScene(ICanvas* iCanvas)
: IRenderableScene(iCanvas), _time{0.f}, _shaderMaterial{nullptr}
{
// Vertex shader
Effect::ShadersStore()["customVertexShader"] = customVertexShader;
// Fragment shader
Effect::ShadersStore()["customFragmentShader"] = customFragmentShader;
}
~ShaderMaterialCarvedTreesScene() override = default;
const char* getName() override
{
return "Shader Material Carved Trees Scene";
}
void initializeScene(ICanvas* canvas, Scene* scene) override
{
// Create a FreeCamera, and set its position to (x:0, y:0, z:-8)
auto camera = FreeCamera::New("camera1", Vector3(0.f, 0.f, -8.f), scene);
// Target the camera to scene origin
camera->setTarget(Vector3::Zero());
// Attach the camera to the canvas
camera->attachControl(canvas, true);
// Create a basic light, aiming 0,1,0 - meaning, to the sky
HemisphericLight::New("light1", Vector3(0.f, 1.f, 0.f), scene);
// Create a built-in "box" shape
const float ratio = static_cast<float>(getEngine()->getRenderWidth())
/ static_cast<float>(getEngine()->getRenderHeight());
BoxOptions options;
options.size = 5.f;
options.sideOrientation = Mesh::DEFAULTSIDE;
options.updatable = false;
options.width = *options.size * ratio;
auto skybox = MeshBuilder::CreateBox("skybox", options, scene);
// Create shader material
IShaderMaterialOptions shaderMaterialOptions;
shaderMaterialOptions.attributes = {"position", "uv"};
shaderMaterialOptions.uniforms
= {"iTime", "worldViewProjection", "iAspectRatio", "iResolution"};
_shaderMaterial = ShaderMaterial::New("boxShader", scene, "custom", shaderMaterialOptions);
// box + sky = skybox !
skybox->material = _shaderMaterial;
// Animation
scene->onAfterCameraRenderObservable.add([this](Camera*, EventState&) {
const Vector2 resolution{static_cast<float>(_engine->getRenderWidth()),
static_cast<float>(_engine->getRenderHeight())};
const float aspectRatio = resolution.x / resolution.y;
_shaderMaterial->setFloat("iTime", _time);
_shaderMaterial->setFloat("iAspectRatio", aspectRatio);
_shaderMaterial->setVector2("iResolution", resolution);
_time += 0.01f * getScene()->getAnimationRatio();
});
}
private:
float _time;
ShaderMaterialPtr _shaderMaterial;
}; // end of class ShaderMaterialCarvedTreesScene
BABYLON_REGISTER_SAMPLE("Shader Material", ShaderMaterialCarvedTreesScene)
} // end of namespace Samples
} // end of namespace BABYLON
|
apache-2.0
|
amagdy/a1php
|
model/domain.php
|
3217
|
<?
require_once(PHP_ROOT . "lib/parent_model.php");
require_once(PHP_ROOT . "model/link.php");
class domain extends parent_model
{
//----------------------------------------------------------------------------------
function domain($arg_id=0) {
$this->parent_model();
$this->array_to_this($this->get_one_by_id($arg_id));
}
//----------------------------------------------------------------------------------
function add ($arg_domain_name) {
$arg_domain_name = strtolower($arg_domain_name);
if (!ereg("^[a-z0-9_\.-]+$", $arg_domain_name)) {
add_error("please_write_a_valid_domain_name", array(), "domain_name");
return false;
}
if ($this->db_get_one_value("SELECT id FROM domains WHERE domain_name='%s'", array($arg_domain_name))) {
add_error("domain_already_exists", array(), "domain_name");
return false;
}
$insert_id = $this->auto_insert(array("domain_name" => $arg_domain_name), "domains");
if (!$insert_id) {
add_error("could_not_add");
return false;
} else {
return $insert_id;
}
} // end function add
//----------------------------------------------------------------------------------
function edit ($arg_domain_name) {
$arg_domain_name = strtolower($arg_domain_name);
if (!$this->is_id($this->id)) {
add_error("could_not_find_entry");
return false;
}
if (!ereg("^[a-z0-9_\.-]+$", $arg_domain_name)) {
add_error("please_write_a_valid_domain_name", array(), "domain_name");
return false;
}
if ($this->db_get_one_value("SELECT id FROM domains WHERE id!=%d AND domain_name='%s'", array($this->id, $arg_domain_name))) {
add_error("domain_already_exists", array(), "domain_name");
return false;
}
$this->db_update("UPDATE domains SET domain_name='%s' WHERE id=%d", array($arg_domain_name, $this->id));
//delete all links file
$link = new link();
$link->save_links_to_file();
return true;
}
//----------------------------------------------------------------------------------
function delete() {
if (!$this->is_id($this->id)) {
add_error("could_not_find_entry");
return false;
}
if (!$this->db_delete("DELETE FROM domains WHERE id=%d", array($this->id))) {
add_error("could_not_delete");
return false;
} else {
//delete all domain links
$link = new link();
$link->delete_domain_links($this->id);
return true;
}
}
//----------------------------------------------------------------------------------
function delete_many($arg_arr_ids) {
if (is_array($arg_arr_ids)) {
while (list(,$id) = each($arg_arr_ids)) {
$obj = new domain($id);
$obj->delete();
}
}
}
//----------------------------------------------------------------------------------
function get_one_by_id ($arg_id) {
if (!$this->is_id($arg_id)) return array();
return $this->db_select_one_row("SELECT * FROM domains WHERE id=%d", array($arg_id));
}
//----------------------------------------------------------------------------------
function getall () {
return $this->db_select("SELECT * FROM domains");
}
//----------------------------------------------------------------------------------
} // end class
|
apache-2.0
|
iSergio/gwt-cs
|
cesiumjs4gwt-main/src/test/java/org/cesiumjs/cs/BaseTestCase.java
|
2218
|
/*
* Copyright 2018 iserge.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cesiumjs.cs;
import com.google.gwt.core.client.Callback;
import com.google.gwt.core.client.ScriptInjector;
import com.google.gwt.junit.client.GWTTestCase;
/**
* Base abstract test.
*
* @author Serge Silaev aka iSergio
*/
public abstract class BaseTestCase extends GWTTestCase {
private static boolean loaded = false;
@Override
public String getModuleName() {
return "org.cesiumjs.CesiumTest";
}
protected void beginTest(final Test test) {
if (loaded) {
test.execute();
} else {
ScriptInjector.fromString(
"Number.parseFloat = Number.parseFloat || function(v) {return window.parseFloat(v);};"
+ "Number.parseInt = Number.parseInt || function(v) {return window.parseInt(v);};")
.setWindow(ScriptInjector.TOP_WINDOW).inject();
ScriptInjector.fromUrl("cs/CesiumUnminified/Cesium.js").setWindow(ScriptInjector.TOP_WINDOW)
.setCallback(new Callback<Void, Exception>() {
@Override
public void onFailure(Exception reason) {
assertNotNull(reason);
fail("Injection failed: " + reason.toString());
}
@Override
public void onSuccess(Void result) {
loaded = true;
test.execute();
}
}).inject();
}
}
public interface Test {
void execute();
}
}
|
apache-2.0
|
win120a/ACClassRoomUtil
|
CSharp-Programs/RandomMCrypt-GUI/Properties/Settings.Designer.cs
|
1085
|
๏ปฟ//------------------------------------------------------------------------------
// <auto-generated>
// ๆญคไปฃ็ ็ฑๅทฅๅ
ท็ๆใ
// ่ฟ่กๆถ็ๆฌ:4.0.30319.18444
//
// ๅฏนๆญคๆไปถ็ๆดๆนๅฏ่ฝไผๅฏผ่ดไธๆญฃ็กฎ็่กไธบ๏ผๅนถไธๅฆๆ
// ้ๆฐ็ๆไปฃ็ ๏ผ่ฟไบๆดๆนๅฐไผไธขๅคฑใ
// </auto-generated>
//------------------------------------------------------------------------------
namespace RMCrypt_GUI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
|
apache-2.0
|
zimmermatt/flink
|
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSink.java
|
11601
|
/*
* 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.flink.streaming.runtime.operators;
import org.apache.flink.api.common.state.ListState;
import org.apache.flink.api.common.typeutils.TypeSerializer;
import org.apache.flink.core.fs.FSDataInputStream;
import org.apache.flink.core.memory.DataInputViewStreamWrapper;
import org.apache.flink.core.memory.DataOutputViewStreamWrapper;
import org.apache.flink.runtime.io.disk.InputViewIterator;
import org.apache.flink.runtime.state.CheckpointStreamFactory;
import org.apache.flink.runtime.state.StateInitializationContext;
import org.apache.flink.runtime.state.StateSnapshotContext;
import org.apache.flink.runtime.state.StreamStateHandle;
import org.apache.flink.runtime.util.ReusingMutableToRegularIteratorWrapper;
import org.apache.flink.streaming.api.operators.AbstractStreamOperator;
import org.apache.flink.streaming.api.operators.OneInputStreamOperator;
import org.apache.flink.streaming.runtime.streamrecord.StreamRecord;
import org.apache.flink.util.Preconditions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
import java.util.UUID;
/**
* Generic Sink that emits its input elements into an arbitrary backend. This sink is integrated with Flink's checkpointing
* mechanism and can provide exactly-once guarantees; depending on the storage backend and sink/committer implementation.
* <p/>
* Incoming records are stored within a {@link org.apache.flink.runtime.state.AbstractStateBackend}, and only committed if a
* checkpoint is completed.
*
* @param <IN> Type of the elements emitted by this sink
*/
public abstract class GenericWriteAheadSink<IN> extends AbstractStreamOperator<IN>
implements OneInputStreamOperator<IN, IN> {
private static final long serialVersionUID = 1L;
protected static final Logger LOG = LoggerFactory.getLogger(GenericWriteAheadSink.class);
private final String id;
private final CheckpointCommitter committer;
protected final TypeSerializer<IN> serializer;
private transient CheckpointStreamFactory.CheckpointStateOutputStream out;
private transient CheckpointStreamFactory checkpointStreamFactory;
private transient ListState<PendingCheckpoint> checkpointedState;
private final Set<PendingCheckpoint> pendingCheckpoints = new TreeSet<>();
public GenericWriteAheadSink(
CheckpointCommitter committer,
TypeSerializer<IN> serializer,
String jobID) throws Exception {
this.committer = Preconditions.checkNotNull(committer);
this.serializer = Preconditions.checkNotNull(serializer);
this.id = UUID.randomUUID().toString();
this.committer.setJobId(jobID);
this.committer.createResource();
}
@Override
public void initializeState(StateInitializationContext context) throws Exception {
super.initializeState(context);
Preconditions.checkState(this.checkpointedState == null,
"The reader state has already been initialized.");
checkpointedState = context.getOperatorStateStore()
.getSerializableListState("pending-checkpoints");
int subtaskIdx = getRuntimeContext().getIndexOfThisSubtask();
if (context.isRestored()) {
LOG.info("Restoring state for the GenericWriteAheadSink (taskIdx={}).", subtaskIdx);
for (PendingCheckpoint pendingCheckpoint : checkpointedState.get()) {
this.pendingCheckpoints.add(pendingCheckpoint);
}
if (LOG.isDebugEnabled()) {
LOG.debug("GenericWriteAheadSink idx {} restored {}.", subtaskIdx, this.pendingCheckpoints);
}
} else {
LOG.info("No state to restore for the GenericWriteAheadSink (taskIdx={}).", subtaskIdx);
}
}
@Override
public void open() throws Exception {
super.open();
committer.setOperatorId(id);
committer.open();
checkpointStreamFactory = getContainingTask()
.createCheckpointStreamFactory(this);
cleanRestoredHandles();
}
public void close() throws Exception {
committer.close();
}
/**
* Called when a checkpoint barrier arrives. It closes any open streams to the backend
* and marks them as pending for committing to the external, third-party storage system.
*
* @param checkpointId the id of the latest received checkpoint.
* @throws IOException in case something went wrong when handling the stream to the backend.
*/
private void saveHandleInState(final long checkpointId, final long timestamp) throws Exception {
//only add handle if a new OperatorState was created since the last snapshot
if (out != null) {
int subtaskIdx = getRuntimeContext().getIndexOfThisSubtask();
StreamStateHandle handle = out.closeAndGetHandle();
PendingCheckpoint pendingCheckpoint = new PendingCheckpoint(
checkpointId, subtaskIdx, timestamp, handle);
if (pendingCheckpoints.contains(pendingCheckpoint)) {
//we already have a checkpoint stored for that ID that may have been partially written,
//so we discard this "alternate version" and use the stored checkpoint
handle.discardState();
} else {
pendingCheckpoints.add(pendingCheckpoint);
}
out = null;
}
}
@Override
public void snapshotState(StateSnapshotContext context) throws Exception {
super.snapshotState(context);
Preconditions.checkState(this.checkpointedState != null,
"The operator state has not been properly initialized.");
saveHandleInState(context.getCheckpointId(), context.getCheckpointTimestamp());
this.checkpointedState.clear();
try {
for (PendingCheckpoint pendingCheckpoint : pendingCheckpoints) {
// create a new partition for each entry.
this.checkpointedState.add(pendingCheckpoint);
}
} catch (Exception e) {
checkpointedState.clear();
throw new Exception("Could not add panding checkpoints to operator state " +
"backend of operator " + getOperatorName() + '.', e);
}
int subtaskIdx = getRuntimeContext().getIndexOfThisSubtask();
if (LOG.isDebugEnabled()) {
LOG.debug("{} (taskIdx= {}) checkpointed {}.", getClass().getSimpleName(), subtaskIdx, this.pendingCheckpoints);
}
}
/**
* Called at {@link #open()} to clean-up the pending handle list.
* It iterates over all restored pending handles, checks which ones are already
* committed to the outside storage system and removes them from the list.
*/
private void cleanRestoredHandles() throws Exception {
synchronized (pendingCheckpoints) {
Iterator<PendingCheckpoint> pendingCheckpointIt = pendingCheckpoints.iterator();
while (pendingCheckpointIt.hasNext()) {
PendingCheckpoint pendingCheckpoint = pendingCheckpointIt.next();
if (committer.isCheckpointCommitted(pendingCheckpoint.subtaskId, pendingCheckpoint.checkpointId)) {
pendingCheckpoint.stateHandle.discardState();
pendingCheckpointIt.remove();
}
}
}
}
@Override
public void notifyOfCompletedCheckpoint(long checkpointId) throws Exception {
super.notifyOfCompletedCheckpoint(checkpointId);
synchronized (pendingCheckpoints) {
Iterator<PendingCheckpoint> pendingCheckpointIt = pendingCheckpoints.iterator();
while (pendingCheckpointIt.hasNext()) {
PendingCheckpoint pendingCheckpoint = pendingCheckpointIt.next();
long pastCheckpointId = pendingCheckpoint.checkpointId;
int subtaskId = pendingCheckpoint.subtaskId;
long timestamp = pendingCheckpoint.timestamp;
StreamStateHandle streamHandle = pendingCheckpoint.stateHandle;
if (pastCheckpointId <= checkpointId) {
try {
if (!committer.isCheckpointCommitted(subtaskId, pastCheckpointId)) {
try (FSDataInputStream in = streamHandle.openInputStream()) {
boolean success = sendValues(
new ReusingMutableToRegularIteratorWrapper<>(
new InputViewIterator<>(
new DataInputViewStreamWrapper(
in),
serializer),
serializer),
pastCheckpointId,
timestamp);
if (success) {
// in case the checkpoint was successfully committed,
// discard its state from the backend and mark it for removal
// in case it failed, we retry on the next checkpoint
committer.commitCheckpoint(subtaskId, pastCheckpointId);
streamHandle.discardState();
pendingCheckpointIt.remove();
}
}
} else {
streamHandle.discardState();
pendingCheckpointIt.remove();
}
} catch (Exception e) {
// we have to break here to prevent a new (later) checkpoint
// from being committed before this one
LOG.error("Could not commit checkpoint.", e);
break;
}
}
}
}
}
/**
* Write the given element into the backend.
*
* @param values The values to be written
* @param checkpointId The checkpoint ID of the checkpoint to be written
* @param timestamp The wall-clock timestamp of the checkpoint
*
* @return true, if the sending was successful, false otherwise
*
* @throws Exception
*/
protected abstract boolean sendValues(Iterable<IN> values, long checkpointId, long timestamp) throws Exception;
@Override
public void processElement(StreamRecord<IN> element) throws Exception {
IN value = element.getValue();
// generate initial operator state
if (out == null) {
out = checkpointStreamFactory.createCheckpointStateOutputStream(0, 0);
}
serializer.serialize(value, new DataOutputViewStreamWrapper(out));
}
private static final class PendingCheckpoint implements Comparable<PendingCheckpoint>, Serializable {
private static final long serialVersionUID = -3571036395734603443L;
private final long checkpointId;
private final int subtaskId;
private final long timestamp;
private final StreamStateHandle stateHandle;
PendingCheckpoint(long checkpointId, int subtaskId, long timestamp, StreamStateHandle handle) {
this.checkpointId = checkpointId;
this.subtaskId = subtaskId;
this.timestamp = timestamp;
this.stateHandle = handle;
}
@Override
public int compareTo(PendingCheckpoint o) {
int res = Long.compare(this.checkpointId, o.checkpointId);
return res != 0 ? res : this.subtaskId - o.subtaskId;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof GenericWriteAheadSink.PendingCheckpoint)) {
return false;
}
PendingCheckpoint other = (PendingCheckpoint) o;
return this.checkpointId == other.checkpointId &&
this.subtaskId == other.subtaskId &&
this.timestamp == other.timestamp;
}
@Override
public int hashCode() {
int hash = 17;
hash = 31 * hash + (int) (checkpointId ^ (checkpointId >>> 32));
hash = 31 * hash + subtaskId;
hash = 31 * hash + (int) (timestamp ^ (timestamp >>> 32));
return hash;
}
@Override
public String toString() {
return "Pending Checkpoint: id=" + checkpointId + "/" + subtaskId + "@" + timestamp;
}
}
}
|
apache-2.0
|
aws/aws-sdk-cpp
|
aws-cpp-sdk-elasticache/source/model/UserGroup.cpp
|
7530
|
๏ปฟ/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticache/model/UserGroup.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace ElastiCache
{
namespace Model
{
UserGroup::UserGroup() :
m_userGroupIdHasBeenSet(false),
m_statusHasBeenSet(false),
m_engineHasBeenSet(false),
m_userIdsHasBeenSet(false),
m_minimumEngineVersionHasBeenSet(false),
m_pendingChangesHasBeenSet(false),
m_replicationGroupsHasBeenSet(false),
m_aRNHasBeenSet(false),
m_responseMetadataHasBeenSet(false)
{
}
UserGroup::UserGroup(const XmlNode& xmlNode) :
m_userGroupIdHasBeenSet(false),
m_statusHasBeenSet(false),
m_engineHasBeenSet(false),
m_userIdsHasBeenSet(false),
m_minimumEngineVersionHasBeenSet(false),
m_pendingChangesHasBeenSet(false),
m_replicationGroupsHasBeenSet(false),
m_aRNHasBeenSet(false),
m_responseMetadataHasBeenSet(false)
{
*this = xmlNode;
}
UserGroup& UserGroup::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode userGroupIdNode = resultNode.FirstChild("UserGroupId");
if(!userGroupIdNode.IsNull())
{
m_userGroupId = Aws::Utils::Xml::DecodeEscapedXmlText(userGroupIdNode.GetText());
m_userGroupIdHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText());
m_statusHasBeenSet = true;
}
XmlNode engineNode = resultNode.FirstChild("Engine");
if(!engineNode.IsNull())
{
m_engine = Aws::Utils::Xml::DecodeEscapedXmlText(engineNode.GetText());
m_engineHasBeenSet = true;
}
XmlNode userIdsNode = resultNode.FirstChild("UserIds");
if(!userIdsNode.IsNull())
{
XmlNode userIdsMember = userIdsNode.FirstChild("member");
while(!userIdsMember.IsNull())
{
m_userIds.push_back(userIdsMember.GetText());
userIdsMember = userIdsMember.NextNode("member");
}
m_userIdsHasBeenSet = true;
}
XmlNode minimumEngineVersionNode = resultNode.FirstChild("MinimumEngineVersion");
if(!minimumEngineVersionNode.IsNull())
{
m_minimumEngineVersion = Aws::Utils::Xml::DecodeEscapedXmlText(minimumEngineVersionNode.GetText());
m_minimumEngineVersionHasBeenSet = true;
}
XmlNode pendingChangesNode = resultNode.FirstChild("PendingChanges");
if(!pendingChangesNode.IsNull())
{
m_pendingChanges = pendingChangesNode;
m_pendingChangesHasBeenSet = true;
}
XmlNode replicationGroupsNode = resultNode.FirstChild("ReplicationGroups");
if(!replicationGroupsNode.IsNull())
{
XmlNode replicationGroupsMember = replicationGroupsNode.FirstChild("member");
while(!replicationGroupsMember.IsNull())
{
m_replicationGroups.push_back(replicationGroupsMember.GetText());
replicationGroupsMember = replicationGroupsMember.NextNode("member");
}
m_replicationGroupsHasBeenSet = true;
}
XmlNode aRNNode = resultNode.FirstChild("ARN");
if(!aRNNode.IsNull())
{
m_aRN = Aws::Utils::Xml::DecodeEscapedXmlText(aRNNode.GetText());
m_aRNHasBeenSet = true;
}
}
return *this;
}
void UserGroup::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_userGroupIdHasBeenSet)
{
oStream << location << index << locationValue << ".UserGroupId=" << StringUtils::URLEncode(m_userGroupId.c_str()) << "&";
}
if(m_statusHasBeenSet)
{
oStream << location << index << locationValue << ".Status=" << StringUtils::URLEncode(m_status.c_str()) << "&";
}
if(m_engineHasBeenSet)
{
oStream << location << index << locationValue << ".Engine=" << StringUtils::URLEncode(m_engine.c_str()) << "&";
}
if(m_userIdsHasBeenSet)
{
unsigned userIdsIdx = 1;
for(auto& item : m_userIds)
{
oStream << location << index << locationValue << ".UserIds.member." << userIdsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&";
}
}
if(m_minimumEngineVersionHasBeenSet)
{
oStream << location << index << locationValue << ".MinimumEngineVersion=" << StringUtils::URLEncode(m_minimumEngineVersion.c_str()) << "&";
}
if(m_pendingChangesHasBeenSet)
{
Aws::StringStream pendingChangesLocationAndMemberSs;
pendingChangesLocationAndMemberSs << location << index << locationValue << ".PendingChanges";
m_pendingChanges.OutputToStream(oStream, pendingChangesLocationAndMemberSs.str().c_str());
}
if(m_replicationGroupsHasBeenSet)
{
unsigned replicationGroupsIdx = 1;
for(auto& item : m_replicationGroups)
{
oStream << location << index << locationValue << ".ReplicationGroups.member." << replicationGroupsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&";
}
}
if(m_aRNHasBeenSet)
{
oStream << location << index << locationValue << ".ARN=" << StringUtils::URLEncode(m_aRN.c_str()) << "&";
}
if(m_responseMetadataHasBeenSet)
{
Aws::StringStream responseMetadataLocationAndMemberSs;
responseMetadataLocationAndMemberSs << location << index << locationValue << ".ResponseMetadata";
m_responseMetadata.OutputToStream(oStream, responseMetadataLocationAndMemberSs.str().c_str());
}
}
void UserGroup::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_userGroupIdHasBeenSet)
{
oStream << location << ".UserGroupId=" << StringUtils::URLEncode(m_userGroupId.c_str()) << "&";
}
if(m_statusHasBeenSet)
{
oStream << location << ".Status=" << StringUtils::URLEncode(m_status.c_str()) << "&";
}
if(m_engineHasBeenSet)
{
oStream << location << ".Engine=" << StringUtils::URLEncode(m_engine.c_str()) << "&";
}
if(m_userIdsHasBeenSet)
{
unsigned userIdsIdx = 1;
for(auto& item : m_userIds)
{
oStream << location << ".UserIds.member." << userIdsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&";
}
}
if(m_minimumEngineVersionHasBeenSet)
{
oStream << location << ".MinimumEngineVersion=" << StringUtils::URLEncode(m_minimumEngineVersion.c_str()) << "&";
}
if(m_pendingChangesHasBeenSet)
{
Aws::String pendingChangesLocationAndMember(location);
pendingChangesLocationAndMember += ".PendingChanges";
m_pendingChanges.OutputToStream(oStream, pendingChangesLocationAndMember.c_str());
}
if(m_replicationGroupsHasBeenSet)
{
unsigned replicationGroupsIdx = 1;
for(auto& item : m_replicationGroups)
{
oStream << location << ".ReplicationGroups.member." << replicationGroupsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&";
}
}
if(m_aRNHasBeenSet)
{
oStream << location << ".ARN=" << StringUtils::URLEncode(m_aRN.c_str()) << "&";
}
if(m_responseMetadataHasBeenSet)
{
Aws::String responseMetadataLocationAndMember(location);
responseMetadataLocationAndMember += ".ResponseMetadata";
m_responseMetadata.OutputToStream(oStream, responseMetadataLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace ElastiCache
} // namespace Aws
|
apache-2.0
|
emullaraj/ebay-sdk-php
|
test/DTS/eBaySDK/ReturnManagement/Types/ReturnUserTypeTest.php
|
1298
|
<?php
/**
* THE CODE IN THIS FILE WAS GENERATED FROM THE EBAY WSDL USING THE PROJECT:
*
* https://github.com/davidtsadler/ebay-api-sdk-php
*
* Copyright 2014 David T. Sadler
*
* 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.
*/
namespace DTS\eBaySDK\ReturnManagement\Types\Test;
use DTS\eBaySDK\ReturnManagement\Types\ReturnUserType;
class ReturnUserTypeTest extends \PHPUnit_Framework_TestCase
{
private $obj;
protected function setUp()
{
$this->obj = new ReturnUserType();
}
public function testCanBeCreated()
{
$this->assertInstanceOf('\DTS\eBaySDK\ReturnManagement\Types\ReturnUserType', $this->obj);
}
public function testExtendsBaseType()
{
$this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj);
}
}
|
apache-2.0
|
cloudfoundry/php-buildpack
|
fixtures/symfony_5_local_deps/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorValueHolder/MethodGenerator/MagicGet.php
|
2411
|
<?php
declare(strict_types=1);
namespace ProxyManager\ProxyGenerator\AccessInterceptorValueHolder\MethodGenerator;
use ProxyManager\Generator\MagicMethodGenerator;
use ProxyManager\ProxyGenerator\Util\GetMethodIfExists;
use Zend\Code\Generator\ParameterGenerator;
use ProxyManager\ProxyGenerator\AccessInterceptorValueHolder\MethodGenerator\Util\InterceptorGenerator;
use ProxyManager\ProxyGenerator\PropertyGenerator\PublicPropertiesMap;
use ProxyManager\ProxyGenerator\Util\PublicScopeSimulator;
use ReflectionClass;
use Zend\Code\Generator\PropertyGenerator;
/**
* Magic `__get` for method interceptor value holder objects
*
* @author Marco Pivetta <ocramius@gmail.com>
* @license MIT
*/
class MagicGet extends MagicMethodGenerator
{
/**
* Constructor
*
* @param ReflectionClass $originalClass
* @param PropertyGenerator $valueHolder
* @param PropertyGenerator $prefixInterceptors
* @param PropertyGenerator $suffixInterceptors
* @param PublicPropertiesMap $publicProperties
*
* @throws \Zend\Code\Generator\Exception\InvalidArgumentException
* @throws \InvalidArgumentException
*/
public function __construct(
ReflectionClass $originalClass,
PropertyGenerator $valueHolder,
PropertyGenerator $prefixInterceptors,
PropertyGenerator $suffixInterceptors,
PublicPropertiesMap $publicProperties
) {
parent::__construct($originalClass, '__get', [new ParameterGenerator('name')]);
$parent = GetMethodIfExists::get($originalClass, '__get');
$valueHolderName = $valueHolder->getName();
$callParent = PublicScopeSimulator::getPublicAccessSimulationCode(
PublicScopeSimulator::OPERATION_GET,
'name',
'value',
$valueHolder,
'returnValue'
);
if (! $publicProperties->isEmpty()) {
$callParent = 'if (isset(self::$' . $publicProperties->getName() . "[\$name])) {\n"
. ' $returnValue = & $this->' . $valueHolderName . '->$name;'
. "\n} else {\n $callParent\n}\n\n";
}
$this->setBody(InterceptorGenerator::createInterceptedMethodBody(
$callParent,
$this,
$valueHolder,
$prefixInterceptors,
$suffixInterceptors,
$parent
));
}
}
|
apache-2.0
|
brainicorn/skelp
|
main.go
|
157
|
package main
import (
"os"
"github.com/brainicorn/skelp/cmd"
)
func main() {
code := cmd.Execute(os.Args[1:], nil)
if code != 0 {
panic(code)
}
}
|
apache-2.0
|
Strilanc/Quirk
|
test/webgl/ShaderCoders.test.js
|
5561
|
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {Suite, assertThat} from "../TestUtil.js"
import {combinedShaderPartsWithCode, shaderWithOutputPartAndArgs} from "../../src/webgl/ShaderCoders.js"
import {currentShaderCoder} from "../../src/webgl/ShaderCoders.js"
import {Shaders} from "../../src/webgl/Shaders.js"
let suite = new Suite("ShaderCoders");
/**
* @param {!int} length
* @returns {!Float32Array}
*/
function randomFloat32Array(length) {
let floats = new Float32Array(length);
for (let i = 0; i < floats.length; i++) {
floats[i] = (Math.random() - 0.5)*Math.pow(2, 16) +
(Math.random() - 0.5) +
(Math.random() - 0.5) / Math.pow(2, 16);
}
return floats;
}
suite.testUsingWebGLFloatTextures("packUnpack", () => {
let data = randomFloat32Array(64);
for (let coder of [currentShaderCoder().float, currentShaderCoder().vec2, currentShaderCoder().vec4]) {
let packed = coder.dataToPixels(data);
let unpacked = coder.pixelsToData(packed);
assertThat(unpacked).isEqualTo(data);
}
});
suite.testUsingWebGLFloatTextures("floatInput", () => {
let param = currentShaderCoder().float.inputPartGetter('fancy');
let shader = combinedShaderPartsWithCode([param], `
void main() {
vec2 xy = gl_FragCoord.xy - vec2(0.5, 0.5);
float k = xy.y * 4.0 + xy.x;
gl_FragColor = vec4(
read_fancy(k * 4.0),
read_fancy(k * 4.0 + 1.0),
read_fancy(k * 4.0 + 2.0),
read_fancy(k * 4.0 + 3.0));
}`);
let floats = randomFloat32Array(64);
let spread = currentShaderCoder().float.dataToPixels(floats);
let texSquare = Shaders.data(spread).toVecFloatTexture(6);
assertThat(shader.withArgs(...param.argsFor(texSquare)).readRawFloatOutputs(4)).isEqualTo(floats);
texSquare.deallocByDepositingInPool();
});
suite.testUsingWebGLFloatTextures("vec2Input", () => {
let param = currentShaderCoder().vec2.inputPartGetter('fancy');
let shader = combinedShaderPartsWithCode([param], `
void main() {
vec2 xy = gl_FragCoord.xy - vec2(0.5, 0.5);
float k = xy.y * 4.0 + xy.x;
vec2 a1 = read_fancy(k * 2.0);
vec2 a2 = read_fancy(k * 2.0 + 1.0);
gl_FragColor = vec4(a1, a2);
}`);
let floats = randomFloat32Array(64);
let spread = currentShaderCoder().vec2.dataToPixels(floats);
let texSquare = Shaders.data(spread).toVec2Texture(5);
assertThat(shader.withArgs(...param.argsFor(texSquare)).readRawFloatOutputs(4)).isEqualTo(floats);
texSquare.deallocByDepositingInPool();
});
suite.testUsingWebGLFloatTextures("vec4Input", () => {
let param = currentShaderCoder().vec4.inputPartGetter('test_input');
let shader = combinedShaderPartsWithCode([param], `
void main() {
vec2 xy = gl_FragCoord.xy - vec2(0.5, 0.5);
float k = xy.y * 4.0 + xy.x;
gl_FragColor = read_test_input(k);
}`);
let floats = randomFloat32Array(64);
let spread = currentShaderCoder().vec4.dataToPixels(floats);
let texSquare = Shaders.data(spread).toVec4Texture(4);
assertThat(shader.withArgs(...param.argsFor(texSquare)).readRawFloatOutputs(4)).isEqualTo(floats);
texSquare.deallocByDepositingInPool();
});
suite.testUsingWebGL("floatOutput", () => {
let output = currentShaderCoder().float.outputPart;
let shader = combinedShaderPartsWithCode([output], `
float outputFor(float k) {
return k + 0.75;
}`);
assertThat(shaderWithOutputPartAndArgs(shader, output, []).readVecFloatOutputs(2)).isEqualTo(new Float32Array([
0.75, 1.75, 2.75, 3.75
]));
});
suite.testUsingWebGL("vec2Output", () => {
let output = currentShaderCoder().vec2.outputPart;
let shader = combinedShaderPartsWithCode([output], `
vec2 outputFor(float k) {
return vec2(k, k + 0.5);
}`);
assertThat(shaderWithOutputPartAndArgs(shader, output, []).readVec2Outputs(1)).isEqualTo(new Float32Array([
0, 0.5,
1, 1.5
]));
assertThat(shaderWithOutputPartAndArgs(shader, output, []).readVec2Outputs(2)).isEqualTo(new Float32Array([
0, 0.5,
1, 1.5,
2, 2.5,
3, 3.5
]));
});
suite.testUsingWebGL("vec4Output", () => {
let output = currentShaderCoder().vec4.outputPart;
let shader = combinedShaderPartsWithCode([output], `
vec4 outputFor(float k) {
return vec4(k, k + 0.25, k + 0.5, k + 0.75);
}`);
assertThat(shaderWithOutputPartAndArgs(shader, output, []).readVec4Outputs(1)).isEqualTo(new Float32Array([
0, 0.25, 0.5, 0.75,
1, 1.25, 1.5, 1.75
]));
assertThat(shaderWithOutputPartAndArgs(shader, output, []).readVec4Outputs(2)).isEqualTo(new Float32Array([
0, 0.25, 0.5, 0.75,
1, 1.25, 1.5, 1.75,
2, 2.25, 2.5, 2.75,
3, 3.25, 3.5, 3.75
]));
});
|
apache-2.0
|
enketo/enketo-transformer
|
test/language.spec.js
|
5031
|
const chai = require( 'chai' );
const expect = chai.expect;
const language = require( '../src/language' );
describe( 'language', () => {
describe( 'parser', () => {
let test;
test = t => {
const name = t[ 0 ];
const sample = t[ 1 ];
const expected = t[ 2 ];
it( `parses "${name}" with sample "${sample}" correctly`, () => {
expect( language.parse( name, sample ) ).to.deep.equal( expected );
} );
};
[
// no lanuage (only inline XForm text)
[ '', 'a', {
tag: '',
desc: '',
dir: 'ltr',
src: ''
} ],
[ '', 'ุฑุจ', {
tag: '',
desc: '',
dir: 'rtl',
src: ''
} ],
// non-recommended ways, some half-hearted attempt to determine at least dir correctly
[ 'Arabic', 'ุฑุจ', {
tag: 'ar',
desc: 'Arabic',
dir: 'rtl',
src: 'Arabic'
} ],
[ 'arabic', 'ุฑุจ', {
tag: 'ar',
desc: 'arabic',
dir: 'rtl',
src: 'arabic'
} ],
[ 'ุงูุนุฑุจูุฉ', 'ุฑุจ', {
tag: 'ุงูุนุฑุจูุฉ',
desc: 'ุงูุนุฑุจูุฉ',
dir: 'rtl',
src: 'ุงูุนุฑุจูุฉ'
} ],
[ 'English', 'hi', {
tag: 'en',
desc: 'English',
dir: 'ltr',
src: 'English'
} ],
[ 'Dari', 'ฺฉู', {
tag: 'prs',
desc: 'Dari',
dir: 'rtl',
src: 'Dari'
} ],
// spaces
[ ' fantasy lang ', 'bl', {
tag: 'fantasy lang',
desc: 'fantasy lang',
dir: 'ltr',
src: ' fantasy lang '
} ],
[ 'fantasy lang', 'ฺฉ', {
tag: 'fantasy lang',
desc: 'fantasy lang',
dir: 'rtl',
src: 'fantasy lang'
} ],
// better way, which works well in Enketo (not in ODK Collect),
// description is automatically set to English description if tag is found
[ 'ar', 'ุฑุจ', {
tag: 'ar',
desc: 'Arabic',
dir: 'rtl',
src: 'ar'
} ],
[ 'ar-IR', 'ุฑุจ', {
tag: 'ar-IR',
desc: 'Arabic',
dir: 'rtl',
src: 'ar-IR'
} ],
[ 'nl', 'he', {
tag: 'nl',
desc: 'Dutch',
dir: 'ltr',
src: 'nl'
} ],
// the recommended future-proof way
[ 'ArabicDialect (ar)', 'ุฑุจ', {
tag: 'ar',
desc: 'ArabicDialect',
dir: 'rtl',
src: 'ArabicDialect (ar)'
} ],
// sample contains markdown tag
[ 'Dari (prs)', '# ูุงู
ููุฑู
', {
tag: 'prs',
desc: 'Dari',
dir: 'rtl',
src: 'Dari (prs)'
} ],
// sample returns 'bidi' directionality -> rtl
[ 'Sorani (ckb)', 'ุฑฺูฏูุฒ', {
tag: 'ckb',
desc: 'Sorani', // or Central Kurdish?
dir: 'rtl',
src: 'Sorani (ckb)'
} ],
// no space before paren open
[ 'ArabicDialect(ar)', 'ุฑุจ', {
tag: 'ar',
desc: 'ArabicDialect',
dir: 'rtl',
src: 'ArabicDialect(ar)'
} ],
[ 'Nederlands (nl)', 'heej', {
tag: 'nl',
desc: 'Nederlands',
dir: 'ltr',
src: 'Nederlands (nl)'
} ],
// recommended way, spaces in name
[ 'Arabic Dialect (ar)', 'ุฑุจ', {
tag: 'ar',
desc: 'Arabic Dialect',
dir: 'rtl',
src: 'Arabic Dialect (ar)'
} ],
// unmatchable tag
[ '0a', 'd', {
tag: '0a',
desc: '0a',
dir: 'ltr',
src: '0a'
} ],
// unmatchable description
[ 'nonexisting', 'd', {
tag: 'nonexisting',
desc: 'nonexisting',
dir: 'ltr',
src: 'nonexisting'
} ],
// unmatchable tag and unmatchable description
[ 'nonexisting (0a)', 'd', {
tag: '0a',
desc: 'nonexisting',
dir: 'ltr',
src: 'nonexisting (0a)'
} ],
].forEach( test );
} );
} );
|
apache-2.0
|
madhawa-gunasekara/carbon-business-messaging
|
components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/internal/util/Utils.java
|
23002
|
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.wso2.carbon.andes.core.internal.util;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.impl.builder.StAXOMBuilder;
import org.apache.commons.lang.StringEscapeUtils;
import org.wso2.andes.configuration.AndesConfigurationManager;
import org.wso2.andes.configuration.enums.AndesConfiguration;
import org.wso2.andes.kernel.AndesException;
import org.wso2.carbon.andes.core.QueueManagerException;
import org.wso2.carbon.andes.core.internal.ds.QueueManagerServiceValueHolder;
import org.wso2.carbon.andes.core.types.Subscription;
import org.wso2.carbon.base.ServerConfiguration;
import org.wso2.carbon.context.CarbonContext;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.registry.core.session.UserRegistry;
import org.wso2.carbon.user.api.UserRealm;
import org.wso2.carbon.user.api.UserStoreException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import org.wso2.carbon.andes.core.types.Queue;
import org.wso2.carbon.utils.ServerConstants;
import javax.jms.*;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamException;
public class Utils {
public static final String DIRECT_EXCHANGE = "amq.direct";
public static final String TOPIC_EXCHANGE = "amq.topic";
private static final String QPID_CONF_DIR = "/repository/conf/advanced/";
private static final String QPID_CONF_FILE = "qpid-config.xml";
private static final String QPID_CONF_CONNECTOR_NODE = "connector";
private static final String QPID_CONF_SSL_NODE = "ssl";
private static final String QPID_CONF_SSL_ONLY_NODE = "sslOnly";
private static final String QPID_CONF_SSL_KEYSTORE_PATH = "keystorePath";
private static final String QPID_CONF_SSL_KEYSTORE_PASSWORD = "keystorePassword";
private static final String QPID_CONF_SSL_TRUSTSTORE_PATH = "truststorePath";
private static final String QPID_CONF_SSL_TRUSTSTORE_PASSWORD = "truststorePassword";
/**
* Maximum size a message will be displayed on UI
*/
public static final int MESSAGE_DISPLAY_LENGTH_MAX = 4000;
/**
* Shown to user has a indication that the particular message has more content than shown in UI
*/
public static final String DISPLAY_CONTINUATION = "...";
/**
* Message shown in UI if message content exceed the limit - Further enhancement,
* these needs to read from a resource bundle
*/
public static final String DISPLAY_LENGTH_EXCEEDED = "Message Content is too large to display.";
public static String getTenantAwareCurrentUserName() {
String username = CarbonContext.getThreadLocalCarbonContext().getUsername();
if (CarbonContext.getThreadLocalCarbonContext().getTenantId() > 0) {
return username + "@" + CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
}
return username;
}
public static UserRegistry getUserRegistry() throws RegistryException {
RegistryService registryService =
QueueManagerServiceValueHolder.getInstance().getRegistryService();
return registryService.getGovernanceSystemRegistry(
CarbonContext.getThreadLocalCarbonContext().getTenantId());
}
public static org.wso2.carbon.user.api.UserRealm getUserRelam() throws UserStoreException {
return QueueManagerServiceValueHolder.getInstance().getRealmService().
getTenantUserRealm(CarbonContext.getThreadLocalCarbonContext().getTenantId());
}
public static String getTenantBasedQueueName(String queueName) {
String tenantDomain = CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
if (tenantDomain != null && (!queueName.contains(tenantDomain)) &&
(!tenantDomain.equals(org.wso2.carbon.base.MultitenantConstants.
SUPER_TENANT_DOMAIN_NAME))) {
queueName = tenantDomain + "/" + queueName;
}
return queueName;
}
/**
* Checks if a given user has admin privileges
*
* @param username Name of the user
* @return true if the user has admin rights or false otherwise
* @throws org.wso2.carbon.andes.core.QueueManagerException
* if getting roles for the user fails
*/
public static boolean isAdmin(String username) throws QueueManagerException {
boolean isAdmin = false;
try {
UserRealm userRealm = QueueManagerServiceValueHolder.getInstance().getRealmService()
.getTenantUserRealm(CarbonContext.getThreadLocalCarbonContext().getTenantId());
String[] userRoles = userRealm.getUserStoreManager().getRoleListOfUser(username);
String adminRole = userRealm.getRealmConfiguration().getAdminRoleName();
for (String userRole : userRoles) {
if (userRole.equals(adminRole)) {
isAdmin = true;
break;
}
}
} catch (UserStoreException e) {
throw new QueueManagerException("Failed to get list of user roles", e);
}
return isAdmin;
}
/**
* filter queues to suit the tenant domain
*
* @param fullList Full queue list
* @return List<Queue>
*/
public static List<Queue> filterDomainSpecificQueues(List<Queue> fullList) {
String domainName = CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
ArrayList<Queue> tenantFilteredQueues = new ArrayList<Queue>();
if (domainName != null && !CarbonContext.getThreadLocalCarbonContext().getTenantDomain().
equals(org.wso2.carbon.base.MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
for (Queue aQueue : fullList) {
if (aQueue.getQueueName().startsWith(domainName)) {
tenantFilteredQueues.add(aQueue);
}
}
}
//for super tenant load all queues not specific to a domain. That means queues created by external
//JMS clients are visible, and those names should not have "/" in their queue names
else if (domainName != null && CarbonContext.getThreadLocalCarbonContext().getTenantDomain().
equals(org.wso2.carbon.base.MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
for (Queue aQueue : fullList) {
if (!aQueue.getQueueName().contains("/")) {
tenantFilteredQueues.add(aQueue);
}
}
}
return tenantFilteredQueues;
}
public static List<Subscription> filterDomainSpecificSubscribers(List<Subscription> allSubscriptions) {
String domainName = CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
ArrayList<Subscription> tenantFilteredSubscriptions = new ArrayList<Subscription>();
//filter subscriptions belonging to the tenant domain
if (domainName != null && !CarbonContext.getThreadLocalCarbonContext().getTenantDomain().
equals(org.wso2.carbon.base.MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
for (Subscription subscription : allSubscriptions) {
//for temp queues filter by queue name queueName=<tenantDomain>/queueName
if (!subscription.isDurable() && subscription.getSubscriberQueueBoundExchange().equals("amq.direct")) {
if (subscription.getSubscribedQueueOrTopicName().startsWith(domainName + "/")) {
tenantFilteredSubscriptions.add(subscription);
}
}
//for temp topics filter by topic name topicName=<tenantDomain>/topicName
else if (!subscription.isDurable() && subscription.getSubscriberQueueBoundExchange().equals("amq" +
".topic")) {
if (subscription.getSubscribedQueueOrTopicName().startsWith(domainName + "/")) {
tenantFilteredSubscriptions.add(subscription);
}
}
//if a queue subscription queueName = <tenantDomain>/queueName
else if (subscription.isDurable() && subscription.getSubscriberQueueBoundExchange().equals("amq" +
".direct")) {
if (subscription.getSubscriberQueueName().startsWith(domainName + "/")) {
tenantFilteredSubscriptions.add(subscription);
}
}
//if a durable topic subscription queueName = carbon:<tenantdomain>/subID
else if (subscription.isDurable() && subscription.getSubscriberQueueBoundExchange().equals("amq" +
".topic")) {
String durableTopicQueueName = subscription.getSubscriberQueueName();
String subscriptionID = durableTopicQueueName.split(":")[1];
if (subscriptionID.startsWith(domainName + "/")) {
tenantFilteredSubscriptions.add(subscription);
}
}
}
//super tenant domain queue should not have '/'
} else if (domainName != null && CarbonContext.getThreadLocalCarbonContext().getTenantDomain().
equals(org.wso2.carbon.base.MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
for (Subscription subscription : allSubscriptions) {
if (subscription.isDurable()) {
if (!subscription.getSubscriberQueueName().contains("/")) {
tenantFilteredSubscriptions.add(subscription);
}
} else {
if (!subscription.getSubscribedQueueOrTopicName().contains("/")) {
tenantFilteredSubscriptions.add(subscription);
}
}
}
}
return tenantFilteredSubscriptions;
}
public static Subscription parseStringToASubscription(String subscriptionInfo) {
// subscriptionInfo = subscriptionIdentifier | subscribedQueueOrTopicName | subscriberQueueBoundExchange |
// subscriberQueueName | isDurable | isActive | numberOfMessagesRemainingForSubscriber | subscriberNodeAddress
String[] subInfo = subscriptionInfo.split("\\|");
Subscription subscription = new Subscription();
subscription.setSubscriptionIdentifier(subInfo[0]);
subscription.setSubscribedQueueOrTopicName(subInfo[1]);
subscription.setSubscriberQueueBoundExchange(subInfo[2]);
subscription.setSubscriberQueueName(subInfo[3]);
subscription.setDurable(Boolean.parseBoolean(subInfo[4]));
subscription.setActive(Boolean.parseBoolean(subInfo[5]));
subscription.setNumberOfMessagesRemainingForSubscriber(Integer.parseInt(subInfo[6]));
subscription.setSubscriberNodeAddress(subInfo[7]);
return subscription;
}
/**
* filter the whole message list to fit for the page range
*
* @param msgArrayList - total message list
* @param startingIndex - index of the first message of given page
* @param maxMsgCount - max messages count per a page
* @return filtered message object array for the given page
*/
public static Object[] getFilteredMsgsList(ArrayList msgArrayList, int startingIndex, int maxMsgCount) {
Object[] messageArray;
int resultSetSize = maxMsgCount;
ArrayList<Object> resultList = new ArrayList<Object>();
for (Object aMsg : msgArrayList) {
resultList.add(aMsg);
}
if ((resultList.size() - startingIndex) < maxMsgCount) {
resultSetSize = (resultList.size() - startingIndex);
}
messageArray = new Object[resultSetSize];
int index = 0;
int msgDetailsIndex = 0;
for (Object msgDetailOb : resultList) {
if (startingIndex == index || startingIndex < index) {
messageArray[msgDetailsIndex] = msgDetailOb;
msgDetailsIndex++;
if (msgDetailsIndex == maxMsgCount) {
break;
}
}
index++;
}
return messageArray;
}
/**
* Gets the TCP connection url to reach the broker by using the currently logged in user and the
* access key for the user, generated by andes Authentication Service
*
* @param userName - currently logged in user
* @param accessKey - the key (uuid) generated by authentication service
* @return connection url
*/
public static String getTCPConnectionURL(String userName, String accessKey) throws FileNotFoundException,
XMLStreamException, AndesException {
// amqp://{username}:{accesskey}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
String CARBON_CLIENT_ID = "carbon";
String CARBON_VIRTUAL_HOST_NAME = "carbon";
String CARBON_DEFAULT_HOSTNAME = "localhost";
Integer carbonPort = AndesConfigurationManager.getInstance().readConfigurationValue(AndesConfiguration
.TRANSPORTS_AMQP_PORT);
String CARBON_PORT = String.valueOf(carbonPort);
// these are the properties which needs to be passed when ssl is enabled
String CARBON_SSL_PORT = String.valueOf(AndesConfigurationManager.getInstance().readConfigurationValue
(AndesConfiguration.TRANSPORTS_AMQP_SSL_PORT));
File confFile = new File(System.getProperty(ServerConstants.CARBON_HOME) + QPID_CONF_DIR + QPID_CONF_FILE);
OMElement docRootNode = new StAXOMBuilder(new FileInputStream(confFile)).
getDocumentElement();
OMElement connectorNode = docRootNode.getFirstChildWithName(
new QName(QPID_CONF_CONNECTOR_NODE));
OMElement sslNode = connectorNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_NODE));
OMElement sslKeyStorePath = sslNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_KEYSTORE_PATH));
OMElement sslKeyStorePwd = sslNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_KEYSTORE_PASSWORD));
OMElement sslTrustStorePath = sslNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_TRUSTSTORE_PATH));
OMElement sslTrustStorePwd = sslNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_TRUSTSTORE_PASSWORD));
String KEY_STORE_PATH = sslKeyStorePath.getText();
String TRUST_STORE_PATH = sslTrustStorePath.getText();
String SSL_KEYSTORE_PASSWORD = sslKeyStorePwd.getText();
String SSL_TRUSTSTORE_PASSWORD = sslTrustStorePwd.getText();
// as it is nt possible to obtain the password of for the given user, we use service generated access key
// to authenticate the user
if (isSSLOnly()) {
//"amqp://admin:admin@carbon/carbon?brokerlist='tcp://{hostname}:{port}?ssl='true'&trust_store
// ='{trust_store_path}'&trust_store_password='{trust_store_pwd}'&key_store='{keystore_path
// }'&key_store_password='{key_store_pwd}''";
return "amqp://" + userName + ":" + accessKey + "@" + CARBON_CLIENT_ID + "/" +
CARBON_VIRTUAL_HOST_NAME + "?brokerlist='tcp://" + CARBON_DEFAULT_HOSTNAME +
":" + CARBON_SSL_PORT + "?ssl='true'&trust_store='" + TRUST_STORE_PATH +
"'&trust_store_password='" + SSL_TRUSTSTORE_PASSWORD + "'&key_store='" +
KEY_STORE_PATH + "'&key_store_password='" + SSL_KEYSTORE_PASSWORD + "''";
} else {
return "amqp://" + userName + ":" + accessKey + "@" + CARBON_CLIENT_ID + "/" +
CARBON_VIRTUAL_HOST_NAME + "?brokerlist='tcp://" +
CARBON_DEFAULT_HOSTNAME + ":" + CARBON_PORT + "'";
}
}
public static String getMsgProperties(Message queueMessage) throws JMSException {
Enumeration propertiesEnu = queueMessage.getPropertyNames();
StringBuilder sb = new StringBuilder("");
if (propertiesEnu != null) {
while (propertiesEnu.hasMoreElements()) {
String propName = (String) propertiesEnu.nextElement();
sb.append(propName).append(" = ").append(queueMessage.getStringProperty(propName));
sb.append(", ");
}
}
return sb.toString();
}
/**
* Determines the type of the JMS message
*
* @param queueMessage - input message
* @return type of the message as a string
*/
public static String getMsgContentType(Message queueMessage) {
String contentType = "";
if (queueMessage instanceof TextMessage) {
contentType = "Text";
} else if (queueMessage instanceof ObjectMessage) {
contentType = "Object";
} else if (queueMessage instanceof MapMessage) {
contentType = "Map";
} else if (queueMessage instanceof StreamMessage) {
contentType = "Stream";
} else if (queueMessage instanceof BytesMessage) {
contentType = "Byte";
}
return contentType;
}
/**
* Gets the message content as a string, after verifying its type
*
* @param queueMessage - JMS Message
* @return a string array of message content; a summary and the whole message
* @throws JMSException
*/
public static String[] getMessageContentAsString(Message queueMessage) throws JMSException {
String messageContent[] = new String[2];
String summaryMsg = "";
String wholeMsg = "";
StringBuilder sb = new StringBuilder();
if (queueMessage instanceof TextMessage) {
wholeMsg = StringEscapeUtils.escapeHtml(((TextMessage) queueMessage).getText()).trim();
if (wholeMsg.length() >= 15) {
summaryMsg = wholeMsg.substring(0, 15);
} else {
summaryMsg = wholeMsg;
}
if (wholeMsg.length() > MESSAGE_DISPLAY_LENGTH_MAX) {
wholeMsg = wholeMsg.substring(0, MESSAGE_DISPLAY_LENGTH_MAX - 3) + DISPLAY_CONTINUATION +
DISPLAY_LENGTH_EXCEEDED;
}
} else if (queueMessage instanceof ObjectMessage) {
wholeMsg = "This Operation is Not Supported!";
summaryMsg = "Not Supported";
} else if (queueMessage instanceof MapMessage) {
MapMessage mapMessage = ((MapMessage) queueMessage);
Enumeration mapEnu = mapMessage.getMapNames();
while (mapEnu.hasMoreElements()) {
String mapName = (String) mapEnu.nextElement();
String mapVal = mapMessage.getObject(mapName).toString();
wholeMsg = StringEscapeUtils.escapeHtml(sb.append(mapName).append(": ")
.append(mapVal).append(", ").toString()).trim();
}
if (wholeMsg.length() >= 15) {
summaryMsg = wholeMsg.substring(0, 15);
} else {
summaryMsg = wholeMsg;
}
} else if (queueMessage instanceof StreamMessage) {
((StreamMessage) queueMessage).reset();
wholeMsg = getContentFromStreamMessage((StreamMessage) queueMessage, sb).trim();
if (wholeMsg.length() >= 15) {
summaryMsg = wholeMsg.substring(0, 15);
} else {
summaryMsg = wholeMsg;
}
} else if (queueMessage instanceof BytesMessage) {
((BytesMessage) queueMessage).reset();
long msglength = ((BytesMessage) queueMessage).getBodyLength();
byte[] byteMsgArr = new byte[(int) msglength];
int index = ((BytesMessage) queueMessage).readBytes(byteMsgArr);
for (int i = 0; i < index; i++) {
wholeMsg = sb.append(byteMsgArr[i]).append(" ").toString().trim();
}
if (wholeMsg.length() >= 15) {
summaryMsg = wholeMsg.substring(0, 15);
} else {
summaryMsg = wholeMsg;
}
}
messageContent[0] = summaryMsg;
messageContent[1] = wholeMsg;
return messageContent;
}
/**
* A stream message can have java primitives plus objects, as its content. This message it used to retrieve the
*
* @param queueMessage - input message
* @param sb - a string builder to build the whole message content
* @return - complete message content inside the stream message
* @throws JMSException
*/
private static String getContentFromStreamMessage(StreamMessage queueMessage,
StringBuilder sb) throws JMSException {
boolean eofReached = false;
while (!eofReached) {
try {
Object obj = queueMessage.readObject();
// obj could be null if the wire type is AbstractBytesTypedMessage.NULL_STRING_TYPE
if (null != obj) {
sb.append(obj.toString()).append(", ");
}
} catch (MessageEOFException ex) {
eofReached = true;
}
}
return StringEscapeUtils.escapeHtml(sb.toString());
}
public static boolean isSSLOnly() throws FileNotFoundException, XMLStreamException {
File confFile = new File(System.getProperty(ServerConstants.CARBON_HOME) + QPID_CONF_DIR + QPID_CONF_FILE);
OMElement docRootNode = new StAXOMBuilder(new FileInputStream(confFile)).
getDocumentElement();
OMElement connectorNode = docRootNode.getFirstChildWithName(
new QName(QPID_CONF_CONNECTOR_NODE));
OMElement sslNode = connectorNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_NODE));
OMElement sslOnlyNode = sslNode.getFirstChildWithName(
new QName(QPID_CONF_SSL_ONLY_NODE));
return Boolean.parseBoolean(sslOnlyNode.getText());
}
}
|
apache-2.0
|
cisco-open-source/selenium
|
java/client/test/org/openqa/selenium/qtwebkit/hybridtests/ProxySettingTest.java
|
5411
|
/****************************************************************************
**
** Copyright ยฉ 1992-2014 Cisco and/or its affiliates. All rights reserved.
** All rights reserved.
**
** $CISCO_BEGIN_LICENSE:APACHE$
**
** 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.
**
** $CISCO_END_LICENSE$
**
****************************************************************************/
package org.openqa.selenium.qtwebkit.hybridtests;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.qtwebkit.QtWebDriverService;
import org.openqa.selenium.qtwebkit.QtWebKitDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.ProxyServer;
import org.openqa.selenium.testing.TestUtilities;
import org.openqa.selenium.testing.drivers.WebDriverBuilder;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;
import static org.openqa.selenium.remote.CapabilityType.PROXY;
public class ProxySettingTest extends JUnit4TestBase {
private ProxyServer proxyServer;
@AfterClass
public static void cleanUpExistingDriver() {
JUnit4TestBase.removeDriver();
}
@Before
public void newProxyInstance() {
proxyServer = new ProxyServer();
}
@Before
public void avoidRemote() {
// TODO: Resolve why these tests don't work on the remote server
assumeTrue(TestUtilities.isLocal());
}
@Before
public void createDriver() throws Exception { }
@Before
public void setUp() throws Exception {
JUnit4TestBase.removeDriver();
}
@After
public void deleteProxyInstance() {
if (proxyServer != null) {
proxyServer.destroy();
}
}
@Test
public void canConfigureProxyWithRequiredCapability() throws InterruptedException {
Proxy proxyToUse = proxyServer.asProxy();
DesiredCapabilities requiredCaps = new DesiredCapabilities();
requiredCaps.setCapability(PROXY, proxyToUse);
WebDriver driver = new WebDriverBuilder().setRequiredCapabilities(requiredCaps).get();
driver.get("http://www.diveintopython.net/toc/index.html");
driver.quit();
assertTrue("Proxy should have been called", proxyServer.hasBeenCalled("index.html"));
}
@Test
public void requiredProxyCapabilityShouldHavePriority() {
ProxyServer desiredProxyServer = new ProxyServer();
Proxy desiredProxy = desiredProxyServer.asProxy();
Proxy requiredProxy = proxyServer.asProxy();
DesiredCapabilities desiredCaps = new DesiredCapabilities();
desiredCaps.setCapability(PROXY, desiredProxy);
DesiredCapabilities requiredCaps = new DesiredCapabilities();
requiredCaps.setCapability(PROXY, requiredProxy);
WebDriver driver = new WebDriverBuilder().setDesiredCapabilities(desiredCaps).
setRequiredCapabilities(requiredCaps).get();
driver.get("http://www.diveintopython.net/toc/index.html");
driver.quit();
assertFalse("Desired proxy should not have been called.",
desiredProxyServer.hasBeenCalled("index.html"));
assertTrue("Required proxy should have been called.",
proxyServer.hasBeenCalled("index.html"));
desiredProxyServer.destroy();
}
@Test
public void canConfigureProxyWithDesiredCapability() {
Proxy proxyToUse = proxyServer.asProxy();
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(PROXY, proxyToUse);
WebDriver driver = new WebDriverBuilder().setDesiredCapabilities(caps).get();
driver.get("http://www.diveintopython.net/toc/index.html");
driver.quit();
assertTrue("Proxy should have been called", proxyServer.hasBeenCalled("index.html"));
}
@Test
public void testSystemProxy() {
Proxy proxyToUse = new Proxy();
proxyToUse.setProxyType(Proxy.ProxyType.SYSTEM);
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(PROXY, proxyToUse);
Map<String, String> environment = new HashMap<String, String>();
environment.put("http_proxy", "localhost:8080");
String libraryPath = System.getenv("LD_LIBRARY_PATH");
if (libraryPath != null) {
environment.put("LD_LIBRARY_PATH", libraryPath);
}
try {
QtWebKitDriver driver = new QtWebKitDriver(QtWebKitDriver.createExecutor(environment), caps);
driver.get("http://www.diveintopython.net/toc/index.html");
driver.quit();
} catch (RuntimeException e) {
fail("You should not be here...");
}
}
}
|
apache-2.0
|
michael-emmi/c2s-ocaml
|
bin/dbseq.rb
|
1457
|
#!/usr/bin/env ruby
require_relative 'prelude'
require_relative 'verify'
module DelayBounding
attr_accessor :rounds, :delays
def options(opts)
@rounds = nil
@delays = 0
opts.separator ""
opts.separator "Sequentialization options:"
opts.on("-r", "--rounds MAX", Integer, "The rounds bound (default 1)") do |r|
@rounds = r
end
opts.on("-d", "--delays MAX", Integer, "The delay bound (default 0)") do |d|
@delays = d
end
end
def c2s
err "cannot find c2s in executable path." if `which c2s`.empty?
return "c2s"
end
def sequentialize(src)
@rounds ||= @delays + 1
seq = "#{File.basename(src,'.bpl')}.EQR.#{@rounds}.#{@delays}.bpl"
puts "* c2s: #{src} => #{seq.blue}" unless @quiet
cmd = "#{c2s} load #{src} seq-framework " \
"delay-bounding #{@rounds} #{@delays} " \
"async-to-seq-dfs " \
"prepare #{@verifier} " \
"strip-internal-markers " \
"print #{seq}"
puts cmd.bold if @verbose
err "could not translate." unless system(cmd)
return seq
end
end
if __FILE__ == $0 then
include Tool
include DelayBounding
include Verifier
include BoogieTraceParser
version 1.0
run do
err "Must specify a single Boogie source file." unless ARGV.size == 1
src = ARGV[0]
err "Source file '#{src}' does not exist." unless File.exists?(src)
tempfile( seq = sequentialize(src) )
verify(seq)
end
end
|
apache-2.0
|
AdaptiveMe/adaptive-arp-javascript
|
adaptive-arp-js/src_units/MagnetometerBridge.d.ts
|
2030
|
/// <reference path="APIRequest.d.ts" />
/// <reference path="APIResponse.d.ts" />
/// <reference path="BaseSensorBridge.d.ts" />
/// <reference path="CommonUtil.d.ts" />
/// <reference path="IAdaptiveRPGroup.d.ts" />
/// <reference path="IBaseSensor.d.ts" />
/// <reference path="IMagnetometer.d.ts" />
/**
--| ADAPTIVE RUNTIME PLATFORM |----------------------------------------------------------------------------------------
(C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
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 appli-
-cable 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.
Original author:
* Carlos Lozano Diez
<http://github.com/carloslozano>
<http://twitter.com/adaptivecoder>
<mailto:carlos@adaptive.me>
Contributors:
* Ferran Vila Conesa
<http://github.com/fnva>
<http://twitter.com/ferran_vila>
<mailto:ferran.vila.conesa@gmail.com>
* See source code files for contributors.
Release:
* @version v2.2.15
-------------------------------------------| aut inveniam viam aut faciam |--------------------------------------------
*/
declare module Adaptive {
/**
@class Adaptive.MagnetometerBridge
@extends Adaptive.BaseSensorBridge
Interface for Managing the Magnetometer operations
@author Carlos Lozano Diez
@since v2.0
*/
class MagnetometerBridge extends BaseSensorBridge implements IMagnetometer {
/**
@method constructor
Default constructor.
*/
constructor();
}
}
|
apache-2.0
|
android-jian/topnews
|
app/src/main/java/com/topnews/android/adapter/ShareIconAdapter.java
|
2588
|
package com.topnews.android.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import com.topnews.android.R;
import com.topnews.android.gson.ShareIconInfo;
import java.util.ArrayList;
/**
* Created by dell on 2017/3/14.
*/
public class ShareIconAdapter extends RecyclerView.Adapter<ShareIconAdapter.ViewHolder>{
private ArrayList<ShareIconInfo> mDatas;
private ImageView mImage;
private EditText et_input;
static class ViewHolder extends RecyclerView.ViewHolder{
ImageView iv_cutoon;
ImageView iv_select;
View itemView;
public ViewHolder(View itemView) {
super(itemView);
this.itemView=itemView;
iv_cutoon= (ImageView) itemView.findViewById(R.id.iv_cutoon);
iv_select= (ImageView) itemView.findViewById(R.id.iv_select);
}
}
public ShareIconAdapter(ArrayList<ShareIconInfo> mDatas, ImageView imageView , EditText editText){
this.mDatas=mDatas;
this.mImage=imageView;
this.et_input=editText;
}
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view= LayoutInflater.from(parent.getContext()).inflate(R.layout.share_recycler_item,parent,false);
final ViewHolder holder=new ViewHolder(view);
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
for (ShareIconInfo iconBean:mDatas) {
iconBean.isSelected=false;
}
int position=holder.getAdapterPosition();
mDatas.get(position).isSelected=true;
notifyDataSetChanged();
mImage.setImageResource(mDatas.get(position).mIconId);
et_input.setText(mDatas.get(position).des);
}
});
return holder;
}
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
ShareIconInfo mIcon=mDatas.get(position);
holder.iv_cutoon.setImageResource(mIcon.mIconId);
holder.iv_select.setImageResource(R.drawable.select);
if(mIcon.isSelected){
holder.iv_select.setVisibility(View.VISIBLE);
}else{
holder.iv_select.setVisibility(View.INVISIBLE);
}
}
@Override
public int getItemCount() {
return mDatas.size();
}
}
|
apache-2.0
|
atVoidYX/heweather
|
app/src/main/java/android/heweather/com/heweather/gson/AQI.java
|
224
|
package android.heweather.com.heweather.gson;
/**
* Created by atVoid on 2017/2/9.
*/
public class AQI {
public AQICity city;
public class AQICity{
public String aqi;
public String pm25;
}
}
|
apache-2.0
|
gurbuzali/hazelcast-jet
|
hazelcast-jet-core/src/test/java/com/hazelcast/jet/impl/connector/StreamSocketPTest.java
|
5724
|
/*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.jet.impl.connector;
import com.hazelcast.jet.core.JetTestSupport;
import com.hazelcast.jet.core.Processor;
import com.hazelcast.jet.core.test.TestOutbox;
import com.hazelcast.jet.core.test.TestProcessorContext;
import com.hazelcast.test.HazelcastSerialParametersRunnerFactory;
import com.hazelcast.test.annotation.ParallelJVMTest;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Collection;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.CountDownLatch;
import static com.hazelcast.jet.core.processor.SourceProcessors.streamSocketP;
import static com.hazelcast.jet.core.test.TestSupport.supplierFrom;
import static com.hazelcast.jet.impl.util.Util.uncheckRun;
import static java.nio.charset.StandardCharsets.UTF_16;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@RunWith(Parameterized.class)
@Category(ParallelJVMTest.class)
@Parameterized.UseParametersRunnerFactory(HazelcastSerialParametersRunnerFactory.class)
public class StreamSocketPTest extends JetTestSupport {
@Parameter
public String input;
@Parameter(1)
public List<String> output;
private Queue<Object> bucket;
private TestOutbox outbox;
private TestProcessorContext context;
@Parameters(name = "input={0}, output={1}")
public static Collection<Object[]> parameters() {
List<String> onaAndTwo = asList("1", "2");
return asList(
// use %n and %r instead of \n and \r due to https://issues.apache.org/jira/browse/SUREFIRE-1662
new Object[]{"1%n2%n", onaAndTwo},
new Object[]{"1%r%n2%r%n", onaAndTwo},
new Object[]{"1%n2%r%n", onaAndTwo},
new Object[]{"1%r%n2%n", onaAndTwo},
new Object[]{"1%r2%n", onaAndTwo}, // mixed line terminators
new Object[]{"", emptyList()},
new Object[]{"%n", singletonList("")},
new Object[]{"1", emptyList()}, // no line terminator after the only line
new Object[]{"1%n2", singletonList("1")}, // no line terminator after the last line
new Object[]{"1%n%n2%n", asList("1", "", "2")}
);
}
@Before
public void before() {
outbox = new TestOutbox(10);
context = new TestProcessorContext();
bucket = outbox.queue(0);
input = input.replaceAll("%n", "\n").replaceAll("%r", "\r");
}
@Test
public void smokeTest() throws Exception {
// we'll test the input as if it is split at every possible position. This is to test the logic that input can be
// split at any place: between \r\n, between the bytes of utf-16 sequence etc
byte[] inputBytes = input.getBytes(UTF_16);
for (int splitIndex = 0; splitIndex < inputBytes.length; splitIndex++) {
logger.info("--------- runTest(" + splitIndex + ") ---------");
runTest(inputBytes, splitIndex);
}
}
private void runTest(byte[] inputBytes, int inputSplitAfter) throws Exception {
try (ServerSocket serverSocket = new ServerSocket(0)) {
CountDownLatch firstPartWritten = new CountDownLatch(1);
CountDownLatch readyForSecondPart = new CountDownLatch(1);
Thread thread = new Thread(() -> uncheckRun(() -> {
Socket socket = serverSocket.accept();
OutputStream outputStream = socket.getOutputStream();
outputStream.write(inputBytes, 0, inputSplitAfter);
firstPartWritten.countDown();
readyForSecondPart.await();
outputStream.write(inputBytes, inputSplitAfter, inputBytes.length - inputSplitAfter);
outputStream.close();
socket.close();
}));
thread.start();
Processor processor = supplierFrom(streamSocketP("localhost", serverSocket.getLocalPort(), UTF_16)).get();
processor.init(outbox, context);
firstPartWritten.await();
for (int i = 0; i < 10; i++) {
processor.complete();
// sleep a little so that the processor has a chance to read the part of the data
sleepMillis(1);
}
readyForSecondPart.countDown();
while (!processor.complete()) {
sleepMillis(1);
}
for (String s : output) {
assertEquals(s, bucket.poll());
}
assertEquals(null, bucket.poll());
assertTrueEventually(() -> assertFalse(thread.isAlive()));
}
}
}
|
apache-2.0
|
zhouyumei1122/android_reader
|
app/src/main/java/com/myreader/ui/activity/BookReviewDetailActivity.java
|
8116
|
package com.myreader.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.myreader.R;
import com.myreader.base.BaseRVActivity;
import com.myreader.common.OnRvItemClickListener;
import com.myreader.component.AppComponent;
import com.myreader.component.DaggerCommunityComponent;
import com.myreader.entity.BookReview;
import com.myreader.entity.CommentList;
import com.myreader.ui.adapter.BestCommentListAdapter;
import com.myreader.ui.contract.BookReviewDetailContract;
import com.myreader.ui.easyadapter.CommentListAdapter;
import com.myreader.ui.presenter.BookReviewDetailPresenter;
import com.myreader.util.Constant;
import com.myreader.util.FormatUtils;
import com.myreader.view.BookContentTextView;
import com.myreader.view.SupportDividerItemDecoration;
import com.myreader.view.XLHRatingBar;
import com.myreader.view.recyclerview.adapter.RecyclerArrayAdapter;
import com.yuyh.easyadapter.glide.GlideCircleTransform;
import com.yuyh.easyadapter.glide.GlideRoundTransform;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import butterknife.Bind;
import butterknife.ButterKnife;
/**
* ไนฆ่ฏๅบ่ฏฆๆ
*/
public class BookReviewDetailActivity extends BaseRVActivity<CommentList.CommentsBean> implements BookReviewDetailContract.View, OnRvItemClickListener<CommentList.CommentsBean> {
private static final String INTENT_ID = "id";
public static void startActivity(Context context, String id) {
context.startActivity(new Intent(context, BookReviewDetailActivity.class)
.putExtra(INTENT_ID, id));
}
private String id;
private List<CommentList.CommentsBean> mBestCommentList = new ArrayList<>();
private BestCommentListAdapter mBestCommentListAdapter;
private HeaderViewHolder headerViewHolder;
@Inject
BookReviewDetailPresenter mPresenter;
@Override
public void showError() {
}
@Override
public void complete() {
}
static class HeaderViewHolder {
@Bind(R.id.ivAuthorAvatar)
ImageView ivAuthorAvatar;
@Bind(R.id.tvBookAuthor)
TextView tvBookAuthor;
@Bind(R.id.tvTime)
TextView tvTime;
@Bind(R.id.tvTitle)
TextView tvTitle;
@Bind(R.id.tvContent)
BookContentTextView tvContent;
@Bind(R.id.rlBookInfo)
RelativeLayout rlBookInfo;
@Bind(R.id.ivBookCover)
ImageView ivBookCover;
@Bind(R.id.tvBookTitle)
TextView tvBookTitle;
@Bind(R.id.tvHelpfullYesCount)
TextView tvHelpfullYesCount;
@Bind(R.id.tvHelpfullNoCount)
TextView tvHelpfullNoCount;
@Bind(R.id.tvBestComments)
TextView tvBestComments;
@Bind(R.id.rvBestComments)
RecyclerView rvBestComments;
@Bind(R.id.tvCommentCount)
TextView tvCommentCount;
@Bind(R.id.rating)
XLHRatingBar ratingBar;
public HeaderViewHolder(View view) {
ButterKnife.bind(this, view); //view็ปๅฎ
}
}
@Override
public int getLayoutId() {
return R.layout.activity_community_book_discussion_detail;
}
@Override
protected void setupActivityComponent(AppComponent appComponent) {
DaggerCommunityComponent.builder()
.appComponent(appComponent)
.build()
.inject(this);
}
@Override
public void initToolBar() {
mCommonToolbar.setTitle("ไนฆ่ฏ่ฏฆๆ
");
mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}
@Override
public void initDatas() {
id = getIntent().getStringExtra(INTENT_ID);
mPresenter.attachView(this);
mPresenter.getBookReviewDetail(id);
mPresenter.getBestComments(id);
mPresenter.getBookReviewComments(id,start, limit);
}
@Override
public void configViews() {
initAdapter(CommentListAdapter.class, false, true);
mAdapter.addHeader(new RecyclerArrayAdapter.ItemView() {
@Override
public View onCreateView(ViewGroup parent) {
View headerView = LayoutInflater.from(BookReviewDetailActivity.this).inflate(R.layout.header_view_book_review_detail, parent, false);
return headerView;
}
@Override
public void onBindView(View headerView) {
headerViewHolder = new HeaderViewHolder(headerView);
}
});
}
@Override
public void showBookReviewDetail(final BookReview data) {
Glide.with(mContext)
.load(Constant.IMG_BASE_URL + data.review.author.avatar)
.placeholder(R.drawable.avatar_default)
.transform(new GlideCircleTransform(mContext))
.into(headerViewHolder.ivAuthorAvatar);
headerViewHolder.tvBookAuthor.setText(data.review.author.nickname);
headerViewHolder.tvTime.setText(FormatUtils.getDescriptionTimeFromDateString(data.review.created));
headerViewHolder.tvTitle.setText(data.review.title);
headerViewHolder.tvContent.setText(data.review.content);
Glide.with(mContext)
.load(Constant.IMG_BASE_URL + data.review.book.cover)
.placeholder(R.drawable.cover_default)
.transform(new GlideRoundTransform(mContext))
.into(headerViewHolder.ivBookCover);
headerViewHolder.tvBookTitle.setText(data.review.book.title);
headerViewHolder.tvHelpfullYesCount.setText(String.valueOf(data.review.helpful.yes));
headerViewHolder.tvHelpfullNoCount.setText(String.valueOf(data.review.helpful.no));
headerViewHolder.tvCommentCount.setText(String.format(mContext.getString(R.string.comment_comment_count), data.review.commentCount));
headerViewHolder.rlBookInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
BookDetailActivity.startActivity(BookReviewDetailActivity.this, data.review.book._id);
}
});
headerViewHolder.ratingBar.setCountSelected(data.review.rating);
}
@Override
public void showBestComments(CommentList list) {
if(list.comments.isEmpty()){
gone(headerViewHolder.tvBestComments, headerViewHolder.rvBestComments);
}else{
mBestCommentList.addAll(list.comments);
headerViewHolder.rvBestComments.setHasFixedSize(true);
headerViewHolder.rvBestComments.setLayoutManager(new LinearLayoutManager(this));
headerViewHolder.rvBestComments.addItemDecoration(new SupportDividerItemDecoration(mContext, LinearLayoutManager.VERTICAL, true));
mBestCommentListAdapter = new BestCommentListAdapter(mContext, mBestCommentList);
mBestCommentListAdapter.setOnItemClickListener(this);
headerViewHolder.rvBestComments.setAdapter(mBestCommentListAdapter);
visible(headerViewHolder.tvBestComments, headerViewHolder.rvBestComments);
}
}
@Override
public void showBookReviewComments(CommentList list) {
mAdapter.addAll(list.comments);
start=start+list.comments.size();
}
@Override
public void onLoadMore() {
super.onLoadMore();
mPresenter.getBookReviewComments(id,start, limit);
}
@Override
public void onItemClick(View view, int position, CommentList.CommentsBean data) {
}
@Override
public void onItemClick(int position) {
CommentList.CommentsBean data = mAdapter.getItem(position);
}
@Override
protected void onDestroy() {
super.onDestroy();
if (mPresenter != null) {
mPresenter.detachView();
}
}
}
|
apache-2.0
|
junhen/XxWeather
|
app/src/androidTest/java/com/duohen/xxweather/ExampleInstrumentedTest.java
|
744
|
package com.duohen.xxweather;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.duohen.xxweather", appContext.getPackageName());
}
}
|
apache-2.0
|
HyperSprite/starterproject_todolist_react_redux_firebase_ts_md
|
web/.eslintrc.js
|
338
|
// Copy this file, and add rule overrides as needed.
module.exports = {
env: {
browser: true,
node: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
}
},
plugins: [
'react',
'flowtype',
],
"extends": [
'airbnb',
'plugin:react/recommended',
'plugin:flowtype/recommended',
]
}
|
apache-2.0
|
grusso14/eprot
|
src/it/finsiel/siged/dao/jdbc/SoggettoDAOjdbc.java
|
46295
|
package it.finsiel.siged.dao.jdbc;
import it.finsiel.siged.constant.ReturnValues;
import it.finsiel.siged.exception.DataException;
import it.finsiel.siged.mvc.integration.SoggettoDAO;
import it.finsiel.siged.mvc.vo.IdentityVO;
import it.finsiel.siged.mvc.vo.ListaDistribuzioneVO;
import it.finsiel.siged.mvc.vo.RubricaListaVO;
import it.finsiel.siged.mvc.vo.lookup.SoggettoVO;
import it.finsiel.siged.mvc.vo.lookup.SoggettoVO.Indirizzo;
import it.finsiel.siged.rdb.JDBCManager;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import org.apache.log4j.Logger;
public class SoggettoDAOjdbc implements SoggettoDAO {
static Logger logger = Logger.getLogger(SoggettoDAOjdbc.class.getName());
private JDBCManager jdbcMan = new JDBCManager();
public int deleteSoggetto(Connection connection, long id)
throws DataException {
PreparedStatement pstmt = null;
int recDel = 0;
try {
if (connection == null) {
connection = jdbcMan.getConnection();
connection.setAutoCommit(false);
}
pstmt = connection.prepareStatement(DELETE_SOGGETTO);
pstmt.setLong(1, id);
recDel = pstmt.executeUpdate();
logger.info("Numero Soggetti eliminati dalla rubrica:" + recDel);
} catch (Exception e) {
logger.error("deleteSoggetto ", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
return recDel;
}
public SoggettoVO newPersonaFisica(Connection connection,
SoggettoVO personaFisica) throws DataException {
SoggettoVO newPF = new SoggettoVO('F');
PreparedStatement pstmt = null;
try {
if (connection == null) {
logger.warn("newPersonaFisica() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(INSERT_PERSONA_FISICA);
pstmt.setInt(1, personaFisica.getId().intValue());
pstmt.setString(2, personaFisica.getCognome());
pstmt.setString(3, personaFisica.getNome());
pstmt.setString(4, personaFisica.getNote());
pstmt.setString(5, personaFisica.getTelefono());
pstmt.setString(6, personaFisica.getTeleFax());
pstmt.setString(7, personaFisica.getIndirizzoWeb());
pstmt.setString(8, personaFisica.getIndirizzoEMail());
pstmt.setString(9, personaFisica.getIndirizzo().getCap());
pstmt.setString(10, personaFisica.getIndirizzo().getComune());
pstmt.setString(11, personaFisica.getCodMatricola());
pstmt.setInt(12, personaFisica.getAoo());
pstmt.setString(13, personaFisica.getQualifica());
pstmt.setString(14, personaFisica.getIndirizzo().getToponimo());
pstmt.setString(15, personaFisica.getIndirizzo().getCivico());
if (personaFisica.getDataNascita() != null) {
pstmt.setDate(16, new Date(personaFisica.getDataNascita()
.getTime()));
} else {
pstmt.setDate(16, null);
}
pstmt.setString(17, personaFisica.getSesso());
pstmt.setString(18, personaFisica.getComuneNascita());
pstmt.setString(19, personaFisica.getCodiceFiscale());
pstmt.setString(20, personaFisica.getStatoCivile());
pstmt.setInt(21, personaFisica.getProvinciaNascitaId());
pstmt.setInt(22, personaFisica.getIndirizzo().getProvinciaId());
pstmt.setString(23, "F");
pstmt.setString(24, personaFisica.getRowCreatedUser());
if (personaFisica.getRowCreatedTime() != null) {
pstmt.setDate(25, new Date(personaFisica.getRowCreatedTime()
.getTime()));
} else {
pstmt.setDate(25, null);
}
pstmt.setString(26, personaFisica.getRowUpdatedUser());
if (personaFisica.getRowUpdatedTime() != null) {
pstmt.setDate(27, new Date(personaFisica.getRowUpdatedTime()
.getTime()));
} else {
pstmt.setDate(27, null);
}
pstmt.executeUpdate();
} catch (Exception e) {
logger.error("Save Rubrica", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
// TODO: newPF = getPersonaFisica(id); //id da prendere!!
newPF.setReturnValue(ReturnValues.SAVED);
return newPF;
}
public SoggettoVO newPersonaGiuridica(Connection connection,
SoggettoVO personaGiuridica) throws DataException {
SoggettoVO newPG = new SoggettoVO('G');
PreparedStatement pstmt = null;
int recIns;
try {
if (connection == null) {
logger.warn("newPersonaFisica() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(INSERT_PERSONA_GIURIDICA);
pstmt.setInt(1, personaGiuridica.getId().intValue());
pstmt.setString(2, personaGiuridica.getDescrizioneDitta());
pstmt.setString(3, personaGiuridica.getNote());
pstmt.setString(4, personaGiuridica.getTelefono());
pstmt.setString(5, personaGiuridica.getTeleFax());
pstmt.setString(6, personaGiuridica.getIndirizzoWeb());
pstmt.setString(7, personaGiuridica.getEmailReferente());
pstmt.setString(8, personaGiuridica.getIndirizzo().getCap());
pstmt.setString(9, personaGiuridica.getIndirizzo().getComune());
pstmt.setInt(10, personaGiuridica.getAoo());
pstmt.setLong(11, personaGiuridica.getFlagSettoreAppartenenza());
pstmt.setString(12, personaGiuridica.getDug());
pstmt.setString(13, personaGiuridica.getIndirizzo().getToponimo());
pstmt.setString(14, personaGiuridica.getIndirizzo().getCivico());
pstmt.setString(15, personaGiuridica.getPartitaIva());
pstmt.setString(16, personaGiuridica.getReferente());
pstmt.setString(17, personaGiuridica.getTelefonoReferente());
pstmt.setInt(18, personaGiuridica.getIndirizzo().getProvinciaId());
pstmt.setString(19, "G");
if (personaGiuridica.getRowCreatedTime() != null) {
pstmt.setDate(21, new Date(personaGiuridica.getRowCreatedTime()
.getTime()));
} else {
pstmt.setDate(21, null);
}
if (personaGiuridica.getRowUpdatedTime() != null) {
pstmt.setDate(23, new Date(personaGiuridica.getRowUpdatedTime()
.getTime()));
} else {
pstmt.setDate(23, null);
}
pstmt.setString(20, personaGiuridica.getRowCreatedUser());
pstmt.setString(22, personaGiuridica.getRowUpdatedUser());
recIns = pstmt.executeUpdate();
logger.info("Numero Persone Giuridiche inserite:" + recIns);
} catch (Exception e) {
logger.error("Save Rubrica", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
// TODO: newPF = getPersonaFisica(id); //id da prendere!!
newPG.setReturnValue(ReturnValues.SAVED);
return newPG;
}
public SoggettoVO getPersonaGiuridica(int id) throws DataException {
Connection connection = null;
SoggettoVO s = new SoggettoVO('G');
try {
connection = jdbcMan.getConnection();
s = getPersonaGiuridica(connection, id);
} catch (Exception e) {
logger.error("getPersonaGiuridica:", e);
throw new DataException("error.database.missing");
} finally {
jdbcMan.close(connection);
}
return s;
}
public SoggettoVO getPersonaGiuridica(Connection connection, int id)
throws DataException {
PreparedStatement pstmt = null;
SoggettoVO pg = new SoggettoVO('G');
pg.setReturnValue(ReturnValues.UNKNOWN);
ResultSet rs = null;
try {
if (connection == null) {
logger.warn("getPersonaFisica() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(SELECT_SOGGETTO_BY_ID);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
Indirizzo indirizzo = pg.getIndirizzo();
if (rs.next()) {
pg.setId(id);
if (rs.getString("DESC_DITTA") == null) {
pg.setDescrizioneDitta("");
} else {
pg.setDescrizioneDitta(rs.getString("DESC_DITTA"));
}
pg.setPartitaIva(rs.getString("CODI_PARTITA_IVA"));
pg.setFlagSettoreAppartenenza(rs.getLong("FLAG_SETTORE"));
pg.setEmailReferente(rs.getString("INDI_EMAIL"));
pg.setIndirizzoWeb(rs.getString("INDI_WEB"));
if (rs.getString("TEXT_NOTE") == null) {
pg.setNote("");
} else {
pg.setNote(rs.getString("TEXT_NOTE"));
}
pg.setReferente(rs.getString("PERS_REFERENTE"));
pg.setTelefonoReferente(rs.getString("TELE_REFERENTE"));
pg.setTeleFax(rs.getString("TELE_FAX"));
pg.setTelefono(rs.getString("TELE_TELEFONO"));
pg.setDug(rs.getString("INDI_DUG"));
if (rs.getString("INDI_COMUNE") == null) {
indirizzo.setComune("");
} else {
indirizzo.setComune(rs.getString("INDI_COMUNE"));
}
if (rs.getString("INDI_CAP") == null) {
indirizzo.setCap("");
} else {
indirizzo.setCap(rs.getString("INDI_CAP"));
}
if (rs.getString("INDI_CIVICO") == null) {
indirizzo.setCivico("");
} else {
indirizzo.setCivico(rs.getString("INDI_CIVICO"));
}
indirizzo.setProvinciaId(rs.getInt("provincia_id"));
indirizzo.setToponimo(rs.getString("INDI_TOPONIMO"));
pg.setIndirizzo(indirizzo);
pg.setReturnValue(ReturnValues.FOUND);
}
} catch (Exception e) {
logger.error("get Lista Persona Fisica", e);
throw new DataException("Cannot load Lista Persona Fisica");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
}
return pg;
}
public SoggettoVO getPersonaFisica(int id) throws DataException {
Connection connection = null;
SoggettoVO s = new SoggettoVO('F');
try {
connection = jdbcMan.getConnection();
s = getPersonaFisica(connection, id);
} catch (Exception e) {
logger.error("getPersonaFisica:", e);
throw new DataException("error.database.missing");
} finally {
jdbcMan.close(connection);
}
return s;
}
public SoggettoVO getPersonaFisica(Connection connection, int id)
throws DataException {
PreparedStatement pstmt = null;
SoggettoVO pf = new SoggettoVO('F');
pf.setReturnValue(ReturnValues.UNKNOWN);
ResultSet rs = null;
try {
if (connection == null) {
logger.warn("getPersonaFisica() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(SELECT_SOGGETTO_BY_ID);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
if (rs.next()) {
pf.setId(id);
pf.setCodiceFiscale(rs.getString("CODI_FISCALE"));
if (rs.getString("PERS_COGNOME") == null) {
pf.setCognome("");
} else {
pf.setCognome(rs.getString("PERS_COGNOME"));
}
if (rs.getString("PERS_NOME") == null) {
pf.setNome("");
} else {
pf.setNome(rs.getString("PERS_NOME"));
}
pf.setCodiceStatoCivile(rs.getString("CODI_STATO_CIVILE"));
pf.setComuneNascita(rs.getString("DESC_COMUNE_NASCITA"));
pf.setCodMatricola(rs.getString("CODI_CODICE"));
pf.setSesso(rs.getString("SESSO"));
pf.setQualifica(rs.getString("DESC_QUALIFICA"));
pf.setDataNascita(rs.getDate("DATA_NASCITA"));
pf.setComuneNascita(rs.getString("DESC_COMUNE_NASCITA"));
pf.setCodiceStatoCivile(rs.getString("CODI_STATO_CIVILE"));
pf.setProvinciaNascitaId(rs.getInt("provincia_nascita_id"));
pf.setIndirizzoEMail(rs.getString("INDI_EMAIL"));
pf.setIndirizzoWeb(rs.getString("INDI_WEB"));
if (rs.getString("TEXT_NOTE") == null) {
pf.setNote("");
} else {
pf.setNote(rs.getString("TEXT_NOTE"));
}
pf.setTeleFax(rs.getString("TELE_FAX"));
pf.setTelefono(rs.getString("TELE_TELEFONO"));
Indirizzo indirizzo = pf.getIndirizzo();
if (rs.getString("INDI_COMUNE") == null) {
indirizzo.setComune("");
} else {
indirizzo.setComune(rs.getString("INDI_COMUNE"));
}
if (rs.getString("INDI_CAP") == null) {
indirizzo.setCap("");
} else {
indirizzo.setCap(rs.getString("INDI_CAP"));
}
if (rs.getString("INDI_CIVICO") == null) {
indirizzo.setCivico("");
} else {
indirizzo.setCivico(rs.getString("INDI_CIVICO"));
}
indirizzo.setProvinciaId(rs.getInt("provincia_id"));
if (rs.getString("INDI_TOPONIMO") == null) {
indirizzo.setToponimo("");
} else {
indirizzo.setToponimo(rs.getString("INDI_TOPONIMO"));
}
pf.setIndirizzo(indirizzo);
pf.setReturnValue(ReturnValues.FOUND);
}
} catch (Exception e) {
logger.error("get Lista Persona Fisica", e);
throw new DataException("Cannot load Lista Persona Fisica");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
}
return pf;
}
public ArrayList getListaPersonaFisica(int aooId, String cognome,
String nome, String codiceFiscale) throws DataException {
Connection connection = null;
PreparedStatement pstmt = null;
SoggettoVO pf;
ResultSet rs = null;
ArrayList lista = new ArrayList();
try {
connection = jdbcMan.getConnection();
String SqlPersoneFisiche = "SELECT RUBRICA_ID, PERS_COGNOME, PERS_NOME, CODI_FISCALE, indi_comune, indi_cap, indi_civico, indi_toponimo, provincia_id FROM RUBRICA "
+ " WHERE FLAG_TIPO_RUBRICA='F' and AOO_ID=" + aooId;
if (cognome != null && !"".equals(cognome.trim()))
SqlPersoneFisiche += " AND lower(PERS_COGNOME) LIKE ?";
if (nome != null && !"".equals(nome.trim()))
SqlPersoneFisiche += " AND lower(PERS_NOME) LIKE ?";
if (codiceFiscale != null && !"".equals(codiceFiscale.trim()))
SqlPersoneFisiche += " AND lower(CODI_FISCALE) LIKE ?";
SqlPersoneFisiche += " ORDER BY PERS_COGNOME, PERS_NOME";
int i = 1;
pstmt = connection.prepareStatement(SqlPersoneFisiche);
if (cognome != null && !"".equals(cognome.trim())) {
pstmt.setString(i++, cognome.toLowerCase() + "%");
}
if (nome != null && !"".equals(nome.trim())) {
pstmt.setString(i++, nome.toLowerCase() + "%");
}
if (codiceFiscale != null && !"".equals(codiceFiscale.trim())) {
pstmt.setString(i++, codiceFiscale.toLowerCase() + "%");
}
rs = pstmt.executeQuery();
while (rs.next()) {
pf = new SoggettoVO('F');
pf.setId(rs.getInt("RUBRICA_ID"));
pf.setCognome(rs.getString("PERS_COGNOME"));
pf.setNome(rs.getString("PERS_NOME"));
pf.setCodiceFiscale(rs.getString("CODI_FISCALE"));
pf.getIndirizzo().setComune(rs.getString("indi_comune"));
pf.getIndirizzo().setCap(rs.getString("indi_cap"));
pf.getIndirizzo().setCivico(rs.getString("indi_civico"));
pf.getIndirizzo().setToponimo(rs.getString("indi_toponimo"));
pf.getIndirizzo().setProvinciaId(rs.getInt("provincia_id"));
lista.add(pf);
}
} catch (Exception e) {
logger.error("get Lista Persona Fisica", e);
throw new DataException("Cannot load Lista Persona Fisica");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
jdbcMan.close(connection);
}
return lista;
}
public ArrayList getListaPersonaGiuridica(int aooId, String denominazione,
String pIva) throws DataException {
Connection connection = null;
PreparedStatement pstmt = null;
SoggettoVO pg;
ResultSet rs = null;
ArrayList lista = new ArrayList();
try {
connection = jdbcMan.getConnection();
String SqlPersoneGiuridiche = "SELECT RUBRICA_ID, DESC_DITTA, CODI_PARTITA_IVA, indi_comune, indi_cap, indi_civico, indi_toponimo, provincia_id FROM RUBRICA "
+ " WHERE FLAG_TIPO_RUBRICA='G' and AOO_ID=" + aooId;
if (denominazione != null && !"".equals(denominazione.trim()))
SqlPersoneGiuridiche += " AND lower(DESC_DITTA) LIKE ?";
if (pIva != null && !"".equals(pIva.trim()))
SqlPersoneGiuridiche += " AND lower(CODI_PARTITA_IVA) LIKE ?";
SqlPersoneGiuridiche += " ORDER BY DESC_DITTA";
pstmt = connection.prepareStatement(SqlPersoneGiuridiche);
int i = 1;
if (denominazione != null && !"".equals(denominazione.trim())) {
pstmt.setString(i++, denominazione.toLowerCase() + "%");
}
if (pIva != null && !"".equals(pIva.trim())) {
pstmt.setString(i++, pIva.toLowerCase() + "%");
}
rs = pstmt.executeQuery();
while (rs.next()) {
pg = new SoggettoVO('G');
pg.setId(rs.getInt("RUBRICA_ID"));
pg.setDescrizioneDitta(rs.getString("DESC_DITTA"));
pg.setPartitaIva(rs.getString("CODI_PARTITA_IVA"));
// mod angedras
pg.getIndirizzo().setComune(rs.getString("indi_comune"));
pg.getIndirizzo().setCap(rs.getString("indi_cap"));
pg.getIndirizzo().setCivico(rs.getString("indi_civico"));
pg.getIndirizzo().setToponimo(rs.getString("indi_toponimo"));
pg.getIndirizzo().setProvinciaId(rs.getInt("provincia_id"));
lista.add(pg);
}
} catch (Exception e) {
logger.error("get getListaPersonaGiuridica", e);
throw new DataException("Cannot load getListaPersonaGiuridica");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
jdbcMan.close(connection);
}
return lista;
}
public SoggettoVO editPersonaFisica(Connection connection,
SoggettoVO personaFisica) throws DataException {
SoggettoVO newPF = new SoggettoVO('F');
PreparedStatement pstmt = null;
int recIns;
try {
if (connection == null) {
connection = jdbcMan.getConnection();
connection.setAutoCommit(false);
}
pstmt = connection.prepareStatement(UPDATE_PERSONA_FISICA);
pstmt.setString(1, personaFisica.getCognome());
pstmt.setString(2, personaFisica.getNome());
pstmt.setString(3, personaFisica.getNote());
pstmt.setString(4, personaFisica.getTelefono());
pstmt.setString(5, personaFisica.getTeleFax());
pstmt.setString(6, personaFisica.getIndirizzoWeb());
pstmt.setString(7, personaFisica.getIndirizzoEMail());
pstmt.setString(8, personaFisica.getIndirizzo().getCap());
pstmt.setString(9, personaFisica.getIndirizzo().getComune());
pstmt.setString(10, personaFisica.getCodMatricola());
pstmt.setInt(11, personaFisica.getAoo());
pstmt.setString(12, personaFisica.getQualifica());
pstmt.setString(13, personaFisica.getIndirizzo().getToponimo());
pstmt.setString(14, personaFisica.getIndirizzo().getCivico());
if (personaFisica.getDataNascita() != null) {
pstmt.setDate(15, new Date(personaFisica.getDataNascita()
.getTime()));
} else {
pstmt.setDate(15, null);
}
pstmt.setString(16, personaFisica.getSesso());
pstmt.setString(17, personaFisica.getComuneNascita());
pstmt.setString(18, personaFisica.getCodiceFiscale());
pstmt.setString(19, personaFisica.getStatoCivile());
pstmt.setInt(20, personaFisica.getProvinciaNascitaId());
pstmt.setInt(21, personaFisica.getIndirizzo().getProvinciaId());
pstmt.setString(22, "F");
pstmt.setString(23, personaFisica.getRowUpdatedUser());
pstmt.setDate(24, new Date(personaFisica.getRowUpdatedTime()
.getTime()));
pstmt.setInt(25, personaFisica.getId().intValue());
recIns = pstmt.executeUpdate();
logger.info("Numero Persone Fisiche modificate:" + recIns);
} catch (Exception e) {
logger.error("Update Rubrica", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
newPF.setReturnValue(ReturnValues.SAVED);
return newPF;
}
public SoggettoVO editPersonaGiuridica(Connection connection,
SoggettoVO personaGiuridica) throws DataException {
SoggettoVO newPG = new SoggettoVO('G');
PreparedStatement pstmt = null;
int recUpd;
try {
if (connection == null) {
connection = jdbcMan.getConnection();
connection.setAutoCommit(false);
}
pstmt = connection.prepareStatement(UPDATE_PERSONA_GIURIDICA);
pstmt.setString(1, personaGiuridica.getDescrizioneDitta());
pstmt.setString(2, personaGiuridica.getNote());
pstmt.setString(3, personaGiuridica.getTelefono());
pstmt.setString(4, personaGiuridica.getTeleFax());
pstmt.setString(5, personaGiuridica.getIndirizzoWeb());
pstmt.setString(6, personaGiuridica.getEmailReferente());
pstmt.setString(7, personaGiuridica.getIndirizzo().getCap());
pstmt.setString(8, personaGiuridica.getIndirizzo().getComune());
pstmt.setInt(9, personaGiuridica.getAoo());
pstmt.setLong(10, personaGiuridica.getFlagSettoreAppartenenza());
pstmt.setString(11, personaGiuridica.getDug());
pstmt.setString(12, personaGiuridica.getIndirizzo().getToponimo());
pstmt.setString(13, personaGiuridica.getIndirizzo().getCivico());
pstmt.setString(14, personaGiuridica.getPartitaIva());
pstmt.setString(15, personaGiuridica.getReferente());
pstmt.setString(16, personaGiuridica.getTelefonoReferente());
pstmt.setInt(17, personaGiuridica.getIndirizzo().getProvinciaId());
pstmt.setString(18, "G");
pstmt.setString(19, personaGiuridica.getRowUpdatedUser());
pstmt.setDate(20, new Date(personaGiuridica.getRowUpdatedTime()
.getTime()));
pstmt.setInt(21, personaGiuridica.getId().intValue());
recUpd = pstmt.executeUpdate();
logger.info("Numero Persone Giuridiche modificate:" + recUpd);
} catch (Exception e) {
logger.error("Edit Rubrica", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
newPG.setReturnValue(ReturnValues.SAVED);
return newPG;
}
// TODO: lista distribuzione
public boolean isDescriptionUsed(Connection connection, String descrizione,
int id) throws DataException {
PreparedStatement pstmt = null;
ResultSet rs = null;
boolean used = true;
try {
if (connection == null) {
logger.warn("isUsernameUsed - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(CHECK_DESCRIZIONE);
pstmt.setString(1, descrizione.trim().toUpperCase());
pstmt.setInt(2, id);
rs = pstmt.executeQuery();
rs.next();
used = rs.getInt(1) > 0;
} catch (Exception e) {
logger.error("isUsernameUsed:" + descrizione, e);
throw new DataException("error.database.missing");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
}
return used;
}
public ListaDistribuzioneVO newListaDistribuzione(Connection connection,
ListaDistribuzioneVO listaDistribuzione) throws DataException {
PreparedStatement pstmt = null;
try {
if (connection == null) {
logger.warn("newListaDistribuzione() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
if (!isDescriptionUsed(connection, listaDistribuzione
.getDescription(), 0)) {
pstmt = connection.prepareStatement(INSERT_LISTA_DISTRIBUZIONE);
pstmt.setInt(1, listaDistribuzione.getId().intValue());
pstmt.setString(2, listaDistribuzione.getDescription());
pstmt.setString(3, listaDistribuzione.getRowCreatedUser());
if (listaDistribuzione.getRowCreatedTime() != null) {
pstmt.setDate(4, new Date(listaDistribuzione
.getRowCreatedTime().getTime()));
} else {
pstmt.setDate(4, null);
}
pstmt.setString(5, listaDistribuzione.getRowUpdatedUser());
if (listaDistribuzione.getRowUpdatedTime() != null) {
pstmt.setDate(6, new Date(listaDistribuzione
.getRowUpdatedTime().getTime()));
} else {
pstmt.setDate(6, null);
}
pstmt.setInt(7, listaDistribuzione.getAooId());
pstmt.executeUpdate();
listaDistribuzione.setReturnValue(ReturnValues.SAVED);
}
} catch (Exception e) {
logger.error("Save Rubrica", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
return listaDistribuzione;
}
public void inserisciSoggettoLista(Connection connection,
RubricaListaVO rubricaLista) throws DataException {
PreparedStatement pstmt = null;
try {
if (connection == null) {
logger.warn("inserisciSoggettoLista() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(INSERT_RUBRICA_LISTA_2);
pstmt.setInt(1, rubricaLista.getIdLista());
pstmt.setInt(2, rubricaLista.getIdRubrica());
pstmt.setString(3, rubricaLista.getRowCreatedUser());
pstmt.setString(4, rubricaLista.getRowUpdatedUser());
pstmt.setString(5, rubricaLista.getTipoSoggetto());
if (rubricaLista.getRowCreatedTime() != null) {
pstmt.setDate(6, new Date(rubricaLista.getRowCreatedTime()
.getTime()));
} else {
pstmt.setDate(6, null);
}
if (rubricaLista.getRowUpdatedTime() != null) {
pstmt.setDate(7, new Date(rubricaLista.getRowUpdatedTime()
.getTime()));
} else {
pstmt.setDate(7, null);
}
pstmt.executeUpdate();
} catch (Exception e) {
logger.error("Save Rubrica Lista", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
}
public void inserisciSoggettoLista(Connection connection, int listaId,
int soggettoId, String tipoSoggetto, String utente)
throws DataException {
PreparedStatement pstmt = null;
try {
if (connection == null) {
logger.warn("inserisciSoggettoLista() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(INSERT_RUBRICA_LISTA);
pstmt.setInt(1, listaId);
pstmt.setInt(2, soggettoId);
pstmt.setString(3, utente);
pstmt.setString(4, utente);
pstmt.setString(5, tipoSoggetto);
pstmt.executeUpdate();
} catch (Exception e) {
logger.error("Save Rubrica Lista", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
}
public boolean isDescriptionModifica(Connection connection,
String descrizione) throws DataException {
PreparedStatement pstmt = null;
ResultSet rs = null;
boolean modifica = true;
try {
if (connection == null) {
logger.warn("isUsernameUsed - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection.prepareStatement(CHECK_DESCRIZIONE_MODIFICA);
pstmt.setString(1, descrizione.trim().toUpperCase());
rs = pstmt.executeQuery();
rs.next();
modifica = rs.getInt(1) > 0;
} catch (Exception e) {
logger.error("isUsernameUsed:" + descrizione, e);
throw new DataException("error.database.missing");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
}
return modifica;
}
public ListaDistribuzioneVO editListaDistribuzione(Connection connection,
ListaDistribuzioneVO listaDistribuzione) throws DataException {
PreparedStatement pstmt = null;
try {
if (connection == null) {
connection = jdbcMan.getConnection();
connection.setAutoCommit(false);
}
if (!isDescriptionModifica(connection, listaDistribuzione
.getDescription())) {
pstmt = connection.prepareStatement(UPDATE_LISTA_DISTRIBUZIONE);
pstmt.setString(1, listaDistribuzione.getDescription());
pstmt.setString(2, listaDistribuzione.getRowUpdatedUser());
pstmt.setInt(3, listaDistribuzione.getId().intValue());
pstmt.executeUpdate();
listaDistribuzione.setReturnValue(ReturnValues.SAVED);
} else {
listaDistribuzione
.setReturnValue(ReturnValues.EXIST_DESCRIPTION);
}
} catch (Exception e) {
logger.error("Edit Rubrica", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
return listaDistribuzione;
}
public ListaDistribuzioneVO getListaDistribuzione(int id)
throws DataException {
Connection connection = null;
ListaDistribuzioneVO l = new ListaDistribuzioneVO();
try {
connection = jdbcMan.getConnection();
l = getListaDistribuzione(connection, id);
} catch (Exception e) {
logger.error("getListaDistribuzione:", e);
throw new DataException("error.database.missing");
} finally {
jdbcMan.close(connection);
}
return l;
}
public ListaDistribuzioneVO getListaDistribuzione(Connection connection,
int id) throws DataException {
PreparedStatement pstmt = null;
ListaDistribuzioneVO ld = new ListaDistribuzioneVO();
ld.setReturnValue(ReturnValues.UNKNOWN);
ResultSet rs = null;
try {
if (connection == null) {
logger.warn("getListaDistribuzione() - Invalid Connection :"
+ connection);
throw new DataException(
"Connessione alla base dati non valida.");
}
pstmt = connection
.prepareStatement(SELECT_LISTADISTRIBUZIONE_BY_ID);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
if (rs.next()) {
ld.setId(id);
ld.setDescription(rs.getString("DESCRIZIONE"));
ld.setReturnValue(ReturnValues.FOUND);
}
} catch (Exception e) {
logger.error("get elenco Lista Distribuzione", e);
throw new DataException("Cannot load elenco Lista Distribuzione");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
}
return ld;
}
public ArrayList getElencoListaDistribuzione(String descrizione, int aooId)
throws DataException {
try {
Connection connection = null;
PreparedStatement pstmt = null;
IdentityVO ld;
ResultSet rs = null;
ArrayList lista = new ArrayList();
try {
connection = jdbcMan.getConnection();
String query = "SELECT * FROM LISTA_DISTRIBUZIONE WHERE AOO_ID=?";
if (descrizione != null && !"".equals(descrizione.trim())) {
query += " AND upper(DESCRIZIONE) LIKE ?";
}
pstmt = connection.prepareStatement(query);
pstmt.setInt(1, aooId);
if (descrizione != null && !"".equals(descrizione.trim())) {
pstmt.setString(2, descrizione.toUpperCase() + "%");
}
rs = pstmt.executeQuery();
while (rs.next()) {
ld = new IdentityVO();
ld.setId(rs.getInt("ID"));
ld.setDescription(rs.getString("DESCRIZIONE"));
lista.add(ld);
}
} catch (Exception e) {
logger.error("get Elenco Lista Distribuzione", e);
throw new DataException(
"Cannot load Elenco Lista Distribuzione");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
jdbcMan.close(connection);
}
return lista;
} catch (DataException de) {
logger
.error("SoggettoDAOjdbc: failed getting getElencoListaDistribuzione: ");
return null;
}
}
public ArrayList getDestinatariListaDistribuzione(int lista_id)
throws DataException {
try {
Connection connection = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
ArrayList lista = new ArrayList();
try {
connection = jdbcMan.getConnection();
String query = "SELECT * FROM RUBRICA_LISTA_DISTRIBUZIONE WHERE ID_LISTA=?";
pstmt = connection.prepareStatement(query);
pstmt.setInt(1, lista_id);
rs = pstmt.executeQuery();
while (rs.next()) {
int sogId = rs.getInt("id_rubrica");
if ("F".equalsIgnoreCase(rs.getString("tipo_soggetto"))) {
lista.add(getPersonaFisica(connection, sogId));
} else {
lista.add(getPersonaGiuridica(connection, sogId));
}
}
} catch (Exception e) {
logger.error("get getDestinatariListaDistribuzione", e);
throw new DataException(
"Cannot load getDestinatariListaDistribuzione");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
jdbcMan.close(connection);
}
return lista;
} catch (DataException de) {
logger
.error("SoggettoDAOjdbc: failed getting getDestinatariListaDistribuzione: ");
return null;
}
}
public ArrayList getElencoListeDistribuzione() throws DataException {
try {
Connection connection = null;
PreparedStatement pstmt = null;
IdentityVO ld;
ResultSet rs = null;
ArrayList lista = new ArrayList();
try {
connection = jdbcMan.getConnection();
String query = "SELECT * FROM LISTA_DISTRIBUZIONE";
pstmt = connection.prepareStatement(query);
rs = pstmt.executeQuery();
while (rs.next()) {
ld = new IdentityVO();
ld.setId(rs.getInt("ID"));
ld.setDescription(rs.getString("DESCRIZIONE"));
lista.add(ld);
}
} catch (Exception e) {
logger.error("get Elenco Liste Distribuzione", e);
throw new DataException(
"Cannot load Elenco Liste Distribuzione");
} finally {
jdbcMan.close(rs);
jdbcMan.close(pstmt);
jdbcMan.close(connection);
}
return lista;
} catch (DataException de) {
logger
.error("SoggettoDAOjdbc: failed getting getElencoListeDistribuzione: ");
return null;
}
}
public int deleteListaDistribuzione(Connection connection, long id)
throws DataException {
PreparedStatement pstmt = null;
int recDel = 0;
try {
if (connection == null) {
connection = jdbcMan.getConnection();
connection.setAutoCommit(false);
}
pstmt = connection
.prepareStatement(DELETE_LISTADISTRIBUZIONE_RUBRICA);
pstmt.setLong(1, id);
recDel = pstmt.executeUpdate();
pstmt = connection.prepareStatement(DELETE_LISTADISTRIBUZIONE);
pstmt.setLong(1, id);
recDel = pstmt.executeUpdate();
logger.info("Numero Liste distribuzione eliminate:" + recDel);
} catch (Exception e) {
logger.error("deleteListaDistribuzione ", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
return recDel;
}
public int deleteRubricaListaDistribuzione(Connection connection, long id)
throws DataException {
PreparedStatement pstmt = null;
int recDel = 0;
try {
if (connection == null) {
connection = jdbcMan.getConnection();
connection.setAutoCommit(false);
}
pstmt = connection
.prepareStatement(DELETE_LISTADISTRIBUZIONE_RUBRICA);
pstmt.setLong(1, id);
recDel = pstmt.executeUpdate();
logger.info("Numero Liste distribuzione eliminate:" + recDel);
} catch (Exception e) {
logger.error("deleteListaDistribuzione ", e);
throw new DataException("error.database.cannotsave");
} finally {
jdbcMan.close(pstmt);
}
return recDel;
}
public final static String UPDATE_PERSONA_FISICA = "UPDATE RUBRICA SET "
+ "PERS_COGNOME=?, PERS_NOME=?, TEXT_NOTE=?, TELE_TELEFONO=?, TELE_FAX=?, INDI_WEB=?, INDI_EMAIL=?, INDI_CAP=?,"
+ "INDI_COMUNE=?, CODI_CODICE=?, aoo_id=?, DESC_QUALIFICA=?, INDI_TOPONIMO=?, INDI_CIVICO=?, "
+ "DATA_NASCITA=?, SESSO=?, DESC_COMUNE_NASCITA=?, CODI_FISCALE=?, CODI_STATO_CIVILE=?, provincia_nascita_id=?, "
+ "provincia_id=?,FLAG_TIPO_RUBRICA=?, ROW_UPDATED_USER=?, ROW_UPDATED_TIME=? WHERE RUBRICA_ID=? ";
public final static String INSERT_PERSONA_FISICA = "INSERT INTO RUBRICA ("
+ "RUBRICA_ID, PERS_COGNOME, PERS_NOME, TEXT_NOTE, TELE_TELEFONO, TELE_FAX, INDI_WEB, INDI_EMAIL, INDI_CAP,"
+ "INDI_COMUNE, CODI_CODICE, aoo_id, DESC_QUALIFICA, INDI_TOPONIMO, INDI_CIVICO, "
+ "DATA_NASCITA, SESSO, DESC_COMUNE_NASCITA, CODI_FISCALE, CODI_STATO_CIVILE, provincia_nascita_id, "
+ "provincia_id,FLAG_TIPO_RUBRICA, ROW_CREATED_USER,ROW_CREATED_TIME,ROW_UPDATED_USER,ROW_UPDATED_TIME) "
+ "VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
public final static String UPDATE_PERSONA_GIURIDICA = "UPDATE RUBRICA SET "
+ "DESC_DITTA=?, TEXT_NOTE=?, TELE_TELEFONO=?, TELE_FAX=?, INDI_WEB=?, INDI_EMAIL=?, INDI_CAP=?,"
+ "INDI_COMUNE=?, aoo_id=?, FLAG_SETTORE=?, INDI_DUG=?, INDI_TOPONIMO=?, INDI_CIVICO=?, "
+ "CODI_PARTITA_IVA=?, PERS_REFERENTE=?, TELE_REFERENTE=?, provincia_id=?,"
+ "FLAG_TIPO_RUBRICA=?,ROW_UPDATED_USER=?, ROW_UPDATED_TIME=? WHERE RUBRICA_ID=? ";
public final static String INSERT_PERSONA_GIURIDICA = "INSERT INTO RUBRICA ("
+ "RUBRICA_ID, DESC_DITTA, TEXT_NOTE, TELE_TELEFONO, TELE_FAX, INDI_WEB, INDI_EMAIL, INDI_CAP,"
+ "INDI_COMUNE, aoo_id, FLAG_SETTORE, INDI_DUG, INDI_TOPONIMO, INDI_CIVICO, "
+ "CODI_PARTITA_IVA, PERS_REFERENTE, TELE_REFERENTE, provincia_id,"
+ "FLAG_TIPO_RUBRICA,ROW_CREATED_USER,ROW_CREATED_TIME,ROW_UPDATED_USER,ROW_UPDATED_TIME) "
+ "VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
public final static String SELECT_SOGGETTO_BY_ID = "SELECT * FROM rubrica "
+ " WHERE RUBRICA_ID=?";
public final static String DELETE_SOGGETTO = "DELETE FROM RUBRICA "
+ " WHERE RUBRICA_ID=?";
public final static String INSERT_LISTA_DISTRIBUZIONE = "INSERT INTO LISTA_DISTRIBUZIONE ("
+ "ID, DESCRIZIONE,ROW_CREATED_USER,ROW_CREATED_TIME,ROW_UPDATED_USER,ROW_UPDATED_TIME, AOO_ID) "
+ " VALUES(?,?,?,?,?,?,?)";
public final static String INSERT_RUBRICA_LISTA = "INSERT INTO rubrica_lista_distribuzione ("
+ " id_lista ,id_rubrica ,row_created_user ,row_updated_user ,tipo_soggetto) VALUES(?,?,?,?,?)";
public final static String INSERT_RUBRICA_LISTA_2 = "INSERT INTO rubrica_lista_distribuzione ("
+ " id_lista ,id_rubrica ,row_created_user ,row_updated_user ,tipo_soggetto,row_created_time,row_updated_time) VALUES(?,?,?,?,?,?,?)";
public final static String UPDATE_LISTA_DISTRIBUZIONE = "UPDATE LISTA_DISTRIBUZIONE SET "
+ "DESCRIZIONE=?, ROW_UPDATED_USER=? WHERE ID=?";
public final static String SELECT_LISTADISTRIBUZIONE_BY_ID = "SELECT * FROM LISTA_DISTRIBUZIONE "
+ " WHERE ID=?";
public final static String DELETE_LISTADISTRIBUZIONE = "DELETE FROM LISTA_DISTRIBUZIONE "
+ " WHERE ID=?";
public final static String DELETE_LISTADISTRIBUZIONE_RUBRICA = "DELETE FROM rubrica_lista_distribuzione "
+ " WHERE id_lista=?";
public final static String SELECT_ELENCO_SOGGETTILD = "SELECT * FROM RUBRICA ";
protected final static String CHECK_DESCRIZIONE = "SELECT count(id) FROM lista_distribuzione "
+ "WHERE upper(descrizione) =? and id !=?";
protected final static String CHECK_DESCRIZIONE_MODIFICA = "SELECT count(id) FROM lista_distribuzione "
+ "WHERE upper(descrizione) =?";
}
|
apache-2.0
|
RivetDB/Rivet
|
Source/Test/Operations/AddCheckConstraintOperationTestFixture.cs
|
2913
|
๏ปฟusing System.Diagnostics;
using NUnit.Framework;
using Rivet.Operations;
namespace Rivet.Test.Operations
{
[TestFixture]
public sealed class AddCheckConstraintOperationTestFixture
{
[Test]
public void ShouldSetPropertiesForAddDefaultConstraint()
{
var schemaName = "schemaName";
var tableName = "tableName";
var name = "constraintName";
var expression = "expression";
bool notForReplication = true;
bool withNoCheck = true;
var op = new AddCheckConstraintOperation(schemaName, tableName, name, expression, notForReplication, withNoCheck);
Assert.AreEqual(schemaName, op.SchemaName);
Assert.AreEqual(tableName, op.TableName);
Assert.AreEqual(name, op.Name);
Assert.AreEqual(expression, op.Expression);
Assert.AreEqual(notForReplication, op.NotForReplication);
Assert.AreEqual(withNoCheck, op.WithNoCheck);
Assert.That(op.ObjectName, Is.EqualTo($"{schemaName}.{name}"));
Assert.That(op.TableObjectName, Is.EqualTo($"{schemaName}.{tableName}"));
Assert.That(op.ConstraintType, Is.EqualTo(ConstraintType.Check));
}
[Test]
public void ShouldWriteQueryForAddCheckConstraint()
{
var schemaName = "schemaName";
var tableName = "tableName";
var name = "constraintName";
var expression = "expression";
bool notForReplication = true;
bool withNoCheck = true;
var op = new AddCheckConstraintOperation(schemaName, tableName, name, expression, notForReplication, withNoCheck);
var expectedQuery = @"alter table [schemaName].[tableName] with nocheck add constraint [constraintName] check not for replication (expression)";
Assert.AreEqual(expectedQuery, op.ToQuery());
}
[Test]
public void ShouldWriteQueryWithDBOSchemaAndWithValuesFalseForAddCheckConstrait()
{
var schemaName = "schemaName";
var tableName = "tableName";
var name = "constraintName";
var expression = "expression";
bool notForReplication = false;
var op = new AddCheckConstraintOperation(schemaName, tableName, name, expression, notForReplication, false);
Trace.WriteLine(op.ToQuery());
var expectedQuery = @"alter table [schemaName].[tableName] add constraint [constraintName] check (expression)";
Assert.AreEqual(expectedQuery, op.ToQuery());
}
[Test]
public void ShouldAllowChangingConstraintName()
{
var op = new AddCheckConstraintOperation("schema", "table", "name", "1", true, true);
op.Name = "new name";
Assert.That(op.Name, Is.EqualTo("new name"));
}
[Test]
public void ShouldDisableWhenMergedWithRemoveCheckConstraint()
{
var op = new AddCheckConstraintOperation("schema", "table", "name", "1", true, true);
var removeOp = new RemoveCheckConstraintOperation("SCHEMA", "TABLE", "NAME");
op.Merge(removeOp);
Assert.That(op.Disabled, Is.True);
Assert.That(removeOp.Disabled, Is.True);
}
}
}
|
apache-2.0
|
desruisseaux/sis
|
core/sis-utility/src/test/java/org/apache/sis/math/MathFunctionsTest.java
|
15729
|
/*
* 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.sis.math;
import org.junit.Test;
import org.apache.sis.test.TestCase;
import org.apache.sis.test.DependsOn;
import org.apache.sis.test.DependsOnMethod;
import static org.junit.Assert.*;
import static java.lang.Double.*;
import static org.apache.sis.math.MathFunctions.*;
import static org.apache.sis.util.ArraysExt.isSorted;
import static org.apache.sis.internal.util.Numerics.SIGNIFICAND_SIZE;
/**
* Tests the {@link MathFunctions} static methods.
*
* @author Martin Desruisseaux (IRD, Geomatys)
* @author Johann Sorel (Geomatys)
* @since 0.3
* @version 0.7
* @module
*/
@DependsOn({
org.apache.sis.util.ArraysExtTest.class,
org.apache.sis.internal.util.NumericsTest.class
})
public final strictfp class MathFunctionsTest extends TestCase {
/**
* Small number for floating point comparisons.
*/
private static final double EPS = 1E-12;
/**
* Highest prime number representable as a signed {@code short}.
*/
private static final int HIGHEST_SHORT_PRIME = 32749;
/**
* The lowest prime number for which unsigned {@code short} is necessary.
*/
private static final int LOWEST_USHORT_PRIME = 32771;
/**
* Verifies the values of {@link MathFunctions#SQRT_2} and {@link MathFunctions#LOG10_2}.
*/
@Test
public void testConstants() {
assertEquals(StrictMath.sqrt (2), SQRT_2, STRICT);
assertEquals(StrictMath.log10(2), LOG10_2, STRICT);
}
/**
* Tests {@link MathFunctions#truncate(double)}.
*/
@Test
@DependsOnMethod({"testIsPositiveZero", "testIsNegativeZero"})
public void testTruncate() {
assertEquals(+4.0, truncate(+4.9), STRICT);
assertEquals(-4.0, truncate(-4.9), STRICT);
assertEquals(+0.0, truncate(+0.1), STRICT);
assertEquals(-0.0, truncate(-0.1), STRICT);
assertTrue("Positive zero", isPositiveZero(truncate(+0.5)));
assertTrue("Negative zero", isNegativeZero(truncate(-0.5)));
assertTrue("Positive zero", isPositiveZero(truncate(+0.0)));
assertTrue("Negative zero", isNegativeZero(truncate(-0.0)));
}
/**
* Tests the {@link MathFunctions#magnitude(double[])} method.
*/
@Test
public void testMagnitude() {
assertEquals(0, magnitude(), EPS);
assertEquals(4, magnitude(0, -4, 0), EPS);
assertEquals(5, magnitude(0, -4, 0, 3, 0), EPS);
assertEquals(5, magnitude(3, 1, -2, 1, -3, -1), EPS);
}
/**
* Tests the {@link MathFunctions#getExponent(double)} method.
* This method performs two tests:
*
* <ul>
* <li>First, tests with a few normal (non-subnormal) numbers.
* The result shall be identical to {@link StrictMath#getExponent(double)}.</li>
* <li>Then, test with a few sub-normal numbers.</li>
* </ul>
*/
@Test
public void testGetExponent() {
final double[] normalValues = {
1E+300, 1E+200, 1E+100, 1E+10, 50, 20, 1, 1E-10, 1E-100, 1E-200, 1E-300,
POSITIVE_INFINITY,
NEGATIVE_INFINITY,
NaN,
MAX_VALUE,
MIN_NORMAL
};
for (final double value : normalValues) {
assertEquals(StrictMath.getExponent(value), getExponent(value));
}
/*
* Tests sub-normal values. We expect:
*
* getExponent(MIN_NORMAL ) == MIN_EXPONENT
* getExponent(MIN_NORMAL / 2) == MIN_EXPONENT - 1
* getExponent(MIN_NORMAL / 4) == MIN_EXPONENT - 2
* getExponent(MIN_NORMAL / 8) == MIN_EXPONENT - 3
* etc.
*/
for (int i=0; i<=SIGNIFICAND_SIZE; i++) {
assertEquals(MIN_EXPONENT - i, getExponent(MIN_NORMAL / (1L << i)));
}
assertEquals(MIN_EXPONENT - 1, getExponent(StrictMath.nextDown(MIN_NORMAL)));
assertEquals(MIN_EXPONENT - SIGNIFICAND_SIZE, getExponent(MIN_VALUE));
assertEquals(MIN_EXPONENT - SIGNIFICAND_SIZE - 1, getExponent(0));
/*
* Tests consistency with scalb, as documented in MathFunctions.getExponent(double) javadoc.
*/
for (int i = MIN_EXPONENT - SIGNIFICAND_SIZE - 1; i <= MAX_EXPONENT + 1; i++) {
assertEquals(i, getExponent(StrictMath.scalb(1.0, i)));
}
/*
* Tests consistency with log10, as documented in MathFunctions.getExponent(double) javadoc.
*/
for (int i = MIN_EXPONENT - SIGNIFICAND_SIZE; i <= MAX_EXPONENT; i++) {
assertEquals(StrictMath.floor(StrictMath.log10(StrictMath.scalb(1.0, i))),
StrictMath.floor(LOG10_2 * i /* i = getExponent(value) */), STRICT);
}
}
/**
* Tests the {@link MathFunctions#asinh(double)} method in the [-10 โฆ +10] range.
*/
@Test
public void testAsinh() {
for (int i=-100; i<=100; i++) {
final double x = 0.1 * i;
final double y = asinh(x);
assertEquals(x, StrictMath.sinh(y), EPS);
}
}
/**
* Tests the {@link MathFunctions#acosh(double)} method in the [1 โฆ +10] range.
*/
@Test
public void testAcosh() {
for (int i=10; i<=100; i++) {
final double x = 0.1 * i;
final double y = acosh(x);
assertEquals(x, StrictMath.cosh(y), EPS);
}
}
/**
* Tests the {@link MathFunctions#atanh(double)} method in the [-1 โฆ +1] range.
*/
@Test
public void testAtanh() {
for (int i=-10; i<=10; i++) {
final double x = 0.1 * i;
final double y = atanh(x);
switch (i) {
case -10: assertEquals(NEGATIVE_INFINITY, y, EPS); break;
default: assertEquals(x, StrictMath.tanh(y), EPS); break;
case +10: assertEquals(POSITIVE_INFINITY, y, EPS); break;
}
}
}
/**
* Tests {@link MathFunctions#isPositiveZero(double)}.
*/
@Test
public void testIsPositiveZero() {
assertTrue (isPositiveZero(+0.0));
assertFalse(isPositiveZero(-0.0));
assertFalse(isPositiveZero( NaN));
}
/**
* Tests {@link MathFunctions#isNegativeZero(double)}.
*/
@Test
public void testIsNegativeZero() {
assertTrue (isNegativeZero(-0.0));
assertFalse(isNegativeZero(+0.0));
assertFalse(isNegativeZero( NaN));
}
/**
* Tests the {@link MathFunctions#xorSign(double, double)} method.
*/
@Test
public void testXorSign() {
assertEquals( 10, xorSign( 10, 0.5), STRICT);
assertEquals(-10, xorSign(-10, 0.5), STRICT);
assertEquals( 10, xorSign(-10, -0.5), STRICT);
assertEquals(-10, xorSign( 10, -0.5), STRICT);
}
/**
* Tests the {@link MathFunctions#epsilonEqual(float, float, float)} and
* {@link MathFunctions#epsilonEqual(double, double, double)} methods.
*/
@Test
public void testEpsilonEqual() {
assertTrue (epsilonEqual(10.0, 12.0, 2.0));
assertFalse(epsilonEqual(10.0, 12.0, 1.0));
assertTrue (epsilonEqual(Double.NaN, Double.NaN, 1.0));
assertTrue (epsilonEqual(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, 1.0));
assertTrue (epsilonEqual(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, 1.0));
assertFalse(epsilonEqual(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, 1.0));
// Same tests using the 'float' version.
assertTrue (epsilonEqual(10f, 12f, 2f));
assertFalse(epsilonEqual(10f, 12f, 1f));
assertTrue (epsilonEqual(Float.NaN, Float.NaN, 1f));
assertTrue (epsilonEqual(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, 1f));
assertTrue (epsilonEqual(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY, 1f));
assertFalse(epsilonEqual(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, 1f));
}
/**
* Tests the {@link MathFunctions#toNanFloat(int)} method. This will indirectly test the
* converse {@link MathFunctions#toNanOrdinal(float)} method through Java assertions.
*/
public void testToNanFloat() {
final int standardNaN = Float.floatToRawIntBits(Float.NaN);
for (int ordinal = 0; ordinal < MathFunctions.MAX_NAN_ORDINAL; ordinal += 256) {
final float vp = toNanFloat(+ordinal);
final float vn = toNanFloat(-ordinal);
final int bp = Float.floatToRawIntBits(vp);
final int bn = Float.floatToRawIntBits(vn);
assertEquals(ordinal == 0, standardNaN == bp);
assertEquals(ordinal == 0, standardNaN == bn);
assertEquals(ordinal == 0, bp == bn);
}
}
/**
* Tests the {@link MathFunctions#quadrupleToDouble(long, long)} method. Values used in this test are taken from
* <a href="https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format">Quadruple-precision
* floating-point format</a> on Wikipedia.
*/
@Test
public void testQuadrupleToDouble(){
long l0, l1;
// 1.0
l0 = 0x3FFF000000000000L;
l1 = 0x0000000000000000L;
assertEquals(doubleToLongBits(1.0),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// -2.0
l0 = 0xC000000000000000L;
l1 = 0x0000000000000000L;
assertEquals(doubleToLongBits(-2.0),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// 3.1415926535897932384626433832795028
l0 = 0x4000921FB54442D1L;
l1 = 0x8469898CC51701B8L;
assertEquals(doubleToLongBits(3.1415926535897932384626433832795028),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// ~1/3
l0 = 0x3FFD555555555555L;
l1 = 0x5555555555555555L;
assertEquals(doubleToLongBits(1.0/3.0),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// positive zero
l0 = 0x0000000000000000L;
l1 = 0x0000000000000000L;
assertEquals(doubleToLongBits(+0.0),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// negative zero
l0 = 0x8000000000000000L;
l1 = 0x0000000000000000L;
assertEquals(doubleToLongBits(-0.0),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// positive infinite
l0 = 0x7FFF000000000000L;
l1 = 0x0000000000000000L;
assertEquals(doubleToLongBits(Double.POSITIVE_INFINITY),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// negative infinite
l0 = 0xFFFF000000000000L;
l1 = 0x0000000000000000L;
assertEquals(doubleToLongBits(Double.NEGATIVE_INFINITY),
doubleToLongBits(quadrupleToDouble(l0, l1)));
// a random NaN
l0 = 0x7FFF000100040000L;
l1 = 0x0001005000080000L;
assertEquals(doubleToLongBits(Double.NaN),
doubleToLongBits(quadrupleToDouble(l0, l1)));
}
/**
* Tests the {@link MathFunctions#primeNumberAt(int)} method.
*/
@Test
public void testPrimeNumberAt() {
final int[] primes = {
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53 , 59,
61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139,
149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233,
239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337,
347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439,
443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557,
563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653,
659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769,
773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883,
887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997
};
for (int i=0; i<primes.length; i++) {
assertEquals(primes[i], primeNumberAt(i));
}
assertEquals(HIGHEST_SHORT_PRIME, primeNumberAt(PRIMES_LENGTH_15_BITS - 1));
assertEquals(HIGHEST_SUPPORTED_PRIME_NUMBER, primeNumberAt(PRIMES_LENGTH_16_BITS - 1));
}
/**
* Tests the {@link MathFunctions#nextPrimeNumber(int)} method.
*/
@Test
@DependsOnMethod("testPrimeNumberAt")
public void testNextPrimeNumber() {
assertEquals(151, nextPrimeNumber(151));
assertEquals(157, nextPrimeNumber(152));
assertEquals(997, nextPrimeNumber(996));
assertEquals(HIGHEST_SHORT_PRIME, nextPrimeNumber(HIGHEST_SHORT_PRIME - 1));
assertEquals(HIGHEST_SHORT_PRIME, nextPrimeNumber(HIGHEST_SHORT_PRIME));
assertEquals(LOWEST_USHORT_PRIME, nextPrimeNumber(HIGHEST_SHORT_PRIME + 1));
assertEquals(32779, nextPrimeNumber(LOWEST_USHORT_PRIME + 1));
assertEquals(HIGHEST_SUPPORTED_PRIME_NUMBER, nextPrimeNumber(HIGHEST_SUPPORTED_PRIME_NUMBER - 1));
assertEquals(HIGHEST_SUPPORTED_PRIME_NUMBER, nextPrimeNumber(HIGHEST_SUPPORTED_PRIME_NUMBER));
}
/**
* Tests the {@link MathFunctions#divisors(int)} method.
*/
@Test
@DependsOnMethod("testPrimeNumberAt")
public void testDivisors() {
for (int i=0; i<10000; i++) {
final int[] divisors = divisors(i);
assertTrue(isSorted(divisors, true));
for (int j=0; j<divisors.length; j++) {
assertEquals(0, i % divisors[j]);
}
if (i == 0){
assertEquals(0, divisors.length);
} else {
assertEquals(1, divisors[0]);
assertEquals(i, divisors[divisors.length - 1]);
}
}
assertArrayEquals(new int[] {
1, 2, 4, 5, 8, 10, 16, 20, 25, 40, 50, 80, 100, 125, 200, 250, 400, 500, 1000, 2000
}, divisors(2000));
assertArrayEquals(new int[] {
1, 61, 71, 4331
}, divisors(4331));
assertArrayEquals(new int[] {
1, 2, 3, 4, 5, 6, 8, 10, 12, 13, 15, 20, 24, 25, 26, 30, 39, 40, 50, 52, 60, 65, 75,
78, 100, 104, 120, 130, 150, 156, 195, 200, 260, 300, 312, 325, 390, 520, 600, 650,
780, 975, 1300, 1560, 1950, 2600, 3900, 7800
}, divisors(7800));
}
/**
* Tests the {@link MathFunctions#commonDivisors(int[])} method.
*/
@Test
@DependsOnMethod("testDivisors")
public void testCommonDivisors() {
assertArrayEquals(new int[] {
1, 5
}, commonDivisors(2000, 15));
}
}
|
apache-2.0
|
jhrcek/kie-wb-common
|
kie-wb-common-dmn/kie-wb-common-dmn-client/src/test/java/org/kie/workbench/common/dmn/client/canvas/controls/resize/DecisionServiceMoveDividerControlTest.java
|
8032
|
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.workbench.common.dmn.client.canvas.controls.resize;
import java.util.Optional;
import com.ait.lienzo.test.LienzoMockitoTestRunner;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.kie.workbench.common.dmn.api.definition.v1_1.Decision;
import org.kie.workbench.common.dmn.api.definition.v1_1.DecisionService;
import org.kie.workbench.common.dmn.api.property.dmn.DecisionServiceDividerLineY;
import org.kie.workbench.common.dmn.client.commands.factory.DefaultCanvasCommandFactory;
import org.kie.workbench.common.dmn.client.shape.view.decisionservice.DecisionServiceSVGShapeView;
import org.kie.workbench.common.stunner.core.api.DefinitionManager;
import org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvasHandler;
import org.kie.workbench.common.stunner.core.client.canvas.Canvas;
import org.kie.workbench.common.stunner.core.client.canvas.command.UpdateElementPropertyCommand;
import org.kie.workbench.common.stunner.core.client.command.CanvasCommandManager;
import org.kie.workbench.common.stunner.core.client.command.RequiresCommandManager;
import org.kie.workbench.common.stunner.core.client.shape.Shape;
import org.kie.workbench.common.stunner.core.client.shape.view.event.DragEvent;
import org.kie.workbench.common.stunner.core.client.shape.view.event.DragHandler;
import org.kie.workbench.common.stunner.core.client.shape.view.event.ViewHandler;
import org.kie.workbench.common.stunner.core.definition.adapter.AdapterManager;
import org.kie.workbench.common.stunner.core.definition.adapter.DefinitionAdapter;
import org.kie.workbench.common.stunner.core.definition.adapter.PropertyAdapter;
import org.kie.workbench.common.stunner.core.graph.Element;
import org.kie.workbench.common.stunner.core.graph.content.definition.Definition;
import org.kie.workbench.common.stunner.core.registry.definition.AdapterRegistry;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import static org.assertj.core.api.Assertions.assertThat;
import static org.kie.workbench.common.dmn.client.canvas.controls.resize.DecisionServiceMoveDividerControl.DIVIDER_Y_PROPERTY_ID;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@RunWith(LienzoMockitoTestRunner.class)
public class DecisionServiceMoveDividerControlTest {
private static final String ELEMENT_UUID = "uuid";
private static final double DIVIDER_Y = 25.0;
@Mock
private AbstractCanvasHandler canvasHandler;
@Mock
private Canvas canvas;
@Mock
private Shape shape;
@Mock
private DefaultCanvasCommandFactory canvasCommandFactory;
@Mock
private RequiresCommandManager.CommandManagerProvider<AbstractCanvasHandler> commandManagerProvider;
@Mock
private CanvasCommandManager<AbstractCanvasHandler> commandManager;
@Mock
private Element element;
@Mock
private Definition definition;
@Captor
private ArgumentCaptor<DragHandler> dragHandlerCaptor;
private DecisionServiceMoveDividerControl control;
@Before
public void setup() {
when(commandManagerProvider.getCommandManager()).thenReturn(commandManager);
when(element.getUUID()).thenReturn(ELEMENT_UUID);
when(element.getContent()).thenReturn(definition);
when(canvasHandler.getCanvas()).thenReturn(canvas);
when(canvas.getShape(ELEMENT_UUID)).thenReturn(shape);
this.control = spy(new DecisionServiceMoveDividerControl(canvasCommandFactory));
this.control.setCommandManagerProvider(commandManagerProvider);
this.control.init(canvasHandler);
}
@Test
public void testCommandManager() {
assertThat(control.getCommandManager()).isEqualTo(commandManager);
}
@Test
@SuppressWarnings("unchecked")
public void testRegisterDecisionServiceElement() {
final DecisionService decisionService = mock(DecisionService.class);
final DecisionServiceSVGShapeView decisionServiceShapeView = mock(DecisionServiceSVGShapeView.class);
when(definition.getDefinition()).thenReturn(decisionService);
when(shape.getShapeView()).thenReturn(decisionServiceShapeView);
control.register(element);
verify(control).registerHandler(anyString(), any(ViewHandler.class));
}
@Test
@SuppressWarnings("unchecked")
public void testRegisterDecisionServiceElementDragEnd() {
final DefinitionManager definitionManager = mock(DefinitionManager.class);
final AdapterManager adapterManager = mock(AdapterManager.class);
final AdapterRegistry adapterRegistry = mock(AdapterRegistry.class);
final PropertyAdapter<Object, Object> propertyAdapter = mock(PropertyAdapter.class);
final DefinitionAdapter<Object> definitionAdapter = mock(DefinitionAdapter.class);
final DecisionServiceDividerLineY dividerLineY = new DecisionServiceDividerLineY();
final Optional dividerYProperty = Optional.of(dividerLineY);
final UpdateElementPropertyCommand updateElementPropertyCommand = mock(UpdateElementPropertyCommand.class);
final DecisionService decisionService = mock(DecisionService.class);
final DecisionServiceSVGShapeView decisionServiceShapeView = mock(DecisionServiceSVGShapeView.class);
final DragEvent dragEvent = mock(DragEvent.class);
when(canvasHandler.getDefinitionManager()).thenReturn(definitionManager);
when(definitionManager.adapters()).thenReturn(adapterManager);
when(adapterManager.registry()).thenReturn(adapterRegistry);
when(adapterManager.forProperty()).thenReturn(propertyAdapter);
when(adapterRegistry.getDefinitionAdapter(any(Class.class))).thenReturn(definitionAdapter);
when(definitionAdapter.getProperty(decisionService, DIVIDER_Y_PROPERTY_ID)).thenReturn(dividerYProperty);
when(propertyAdapter.getId(dividerLineY)).thenReturn(DIVIDER_Y_PROPERTY_ID);
when(canvasCommandFactory.updatePropertyValue(eq(element), eq(DIVIDER_Y_PROPERTY_ID), anyObject())).thenReturn(updateElementPropertyCommand);
when(definition.getDefinition()).thenReturn(decisionService);
when(shape.getShapeView()).thenReturn(decisionServiceShapeView);
control.register(element);
verify(decisionServiceShapeView).addDividerDragHandler(dragHandlerCaptor.capture());
when(decisionServiceShapeView.getDividerLineY()).thenReturn(DIVIDER_Y);
final DragHandler dragHandler = dragHandlerCaptor.getValue();
dragHandler.end(dragEvent);
verify(canvasCommandFactory).updatePropertyValue(eq(element), eq(DIVIDER_Y_PROPERTY_ID), eq(DIVIDER_Y));
verify(commandManager).execute(eq(canvasHandler), eq(updateElementPropertyCommand));
}
@Test
public void testRegisterNonDecisionServiceElement() {
final Decision decision = mock(Decision.class);
when(definition.getDefinition()).thenReturn(decision);
control.register(element);
verify(control, never()).registerHandler(anyString(), any(ViewHandler.class));
}
}
|
apache-2.0
|
rule50moves/java
|
teamo/tests/acceptance/autorisation/01LoginToSiteCept.php
|
580
|
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('Login');
$I->amOnPage('/signin');
$I->waitForText('ะั
ะพะด ะดะปั ััะฐััะฝะธะบะพะฒ ะฟัะพะตะบัะฐ');
$I->fillField('input[id="user_email"]', 'rge@ya.ru');
$I->fillField('input[id="user_password"]', '1');
$I->click('input.submit');
$I->seeCurrentUrlEquals('/me');
$I->click('#statistic_block div.main-menu__item_best');
$I->waitForText('ะัััะธะต ะผัะถัะธะฝั');
$elms = $I->getElements('.superpremium-item__info');
$I->testTrue(count($elms) == 10, 'ะะตัะตะผะตะฝะฝะฐั ะดะพะปะถะฝะฐ ะฑััั ัะฐะฒะฝะฐ 10-ัะธ');
|
apache-2.0
|
mydearxym/mastani
|
src/containers/unit/ArticleFooter/tests/store.test.ts
|
152
|
/*
* ArticleFooter store test
*
*/
// import ArticleFooter from '../index'
it('TODO: store test ArticleFooter', () => {
expect(1 + 1).toBe(2)
})
|
apache-2.0
|
HewlettPackard/oneview-redfish-toolkit
|
oneview_redfish_toolkit/api/processor.py
|
2778
|
# -*- coding: utf-8 -*-
# Copyright (2018) Hewlett Packard Enterprise Development LP
#
# 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.
from oneview_redfish_toolkit.api.redfish_json_validator \
import RedfishJsonValidator
from oneview_redfish_toolkit.api.resource_block_collection \
import ResourceBlockCollection
import oneview_redfish_toolkit.api.status_mapping as status_mapping
class Processor(RedfishJsonValidator):
"""Creates a Processor Redfish dict
Populates self.redfish with some hardcoded Processor
values and data retrieved from Oneview.
"""
SCHEMA_NAME = 'Processor'
def __init__(self, server_hardware, processor_id):
"""Processor constructor
Populates self.redfish with the some common contents
and data from OneView server hardware.
Args:
server_hardware: server hardware dict from OneView
processor_id: processor identifier
"""
super().__init__(self.SCHEMA_NAME)
self.redfish["@odata.type"] = self.get_odata_type()
self.redfish["Id"] = processor_id
self.redfish["Name"] = "Processor " + processor_id
self.redfish["Status"] = dict()
state, health = status_mapping.\
get_redfish_server_hardware_status_struct(server_hardware)
self.redfish["Status"]["State"] = state
self.redfish["Status"]["Health"] = health
self.redfish["ProcessorType"] = "CPU"
self.redfish["Model"] = server_hardware["processorType"]
self.redfish["MaxSpeedMHz"] = server_hardware["processorSpeedMhz"]
self.redfish["TotalCores"] = server_hardware["processorCoreCount"]
self._fill_links(server_hardware)
self.redfish["@odata.context"] = \
"/redfish/v1/$metadata#Processor.Processor"
self.redfish["@odata.id"] = \
ResourceBlockCollection.BASE_URI + "/" \
+ server_hardware["uuid"] + "/Systems/1/Processors/" + processor_id
self._validate()
def _fill_links(self, server_hardware):
self.redfish["Links"] = dict()
self.redfish["Links"]["Chassis"] = dict()
self.redfish["Links"]["Chassis"]["@odata.id"] = \
"/redfish/v1/Chassis/" + server_hardware["uuid"]
|
apache-2.0
|
sanditiffin/chef
|
lib/chef/version.rb
|
1436
|
# Copyright:: Copyright 2010-2016, Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# 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.
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# NOTE: This file is generated by running `rake version` in the top level of
# this repo. Do not edit this manually. Edit the VERSION file and run the rake
# task instead.
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
require "chef/version_string"
class Chef
CHEF_ROOT = File.expand_path("../..", __FILE__)
VERSION = Chef::VersionString.new("13.6.34")
end
#
# NOTE: the Chef::Version class is defined in version_class.rb
#
# NOTE: DO NOT Use the Chef::Version class on Chef::VERSIONs. The
# Chef::Version class is for _cookbooks_ only, and cannot handle
# pre-release versions like "10.14.0.rc.2". Please use Rubygem's
# Gem::Version class instead.
#
|
apache-2.0
|
twilightgod/twilight-poj-solution
|
3435/4409745_WA.cc
|
1638
|
/**********************************************************************
* Online Judge : POJ
* Problem Title : Sudoku Checker
* ID : 3435
* Date : 11/22/2008
* Time : 22:26:15
* Computer Name : EVERLASTING-PC
***********************************************************************/
#include<iostream>
using namespace std;
#define MAXN 11
int map[MAXN*MAXN][MAXN*MAXN];
bool hash[MAXN*MAXN];
int i,j,n;
bool ans;
bool Check1(int i)
{
memset(hash,false,sizeof(hash));
for(int j=0;j<n*n;++j)
{
if(map[i][j])
{
if(hash[map[i][j]])
{
return false;
}
else
{
hash[map[i][j]]=true;
}
}
}
return true;
}
bool Check2(int j)
{
memset(hash,false,sizeof(hash));
for(int i=0;i<n*n;++i)
{
if(map[i][j])
{
if(hash[map[i][j]])
{
return false;
}
else
{
hash[map[i][j]]=true;
}
}
}
return true;
}
bool Check3(int x0,int y0)
{
memset(hash,false,sizeof(hash));
for(i=x0;i<x0+n;++i)
{
for(j=y0;j<y0+n;++j)
{
if(map[i][j])
{
if(hash[map[i][j]])
{
return false;
}
else
{
hash[map[i][j]]=true;
}
}
}
}
return true;
}
int main()
{
//freopen("in_3435.txt","r",stdin);
while(cin>>n)
{
for(i=0;i<n*n;++i)
{
for(j=0;j<n*n;++j)
{
cin>>map[i][j];
}
}
for(i=0;i<n&&ans;++i)
{
for(j=0;j<n&&ans;++j)
{
ans=Check3(i*n,j*n);
}
}
for(i=0;i<n*n&&ans;++i)
{
ans=Check1(i);
}
for(j=0;j<n*n&&ans;++j)
{
ans=Check2(j);
}
if(ans)
{
cout<<"CORRECT\n";
}
else
{
cout<<"INCORRECT\n";
}
}
return 0;
}
|
apache-2.0
|
citlab/vs.msc.ws14
|
flink-0-7-custom/flink-java/src/test/java/org/apache/flink/api/java/record/CoGroupWrappingFunctionTest.java
|
7657
|
/*
* 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.flink.api.java.record;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.lang3.SerializationUtils;
import org.apache.flink.api.common.functions.RichFunction;
import org.apache.flink.api.common.operators.DualInputSemanticProperties;
import org.apache.flink.api.common.operators.util.FieldSet;
import org.apache.flink.api.common.operators.util.UserCodeWrapper;
import org.apache.flink.api.java.record.functions.CoGroupFunction;
import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFieldsFirst;
import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFieldsSecond;
import org.apache.flink.api.java.record.operators.CoGroupOperator;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.types.IntValue;
import org.apache.flink.types.LongValue;
import org.apache.flink.types.Record;
import org.apache.flink.util.Collector;
import org.junit.Test;
@SuppressWarnings("serial")
public class CoGroupWrappingFunctionTest {
@SuppressWarnings("unchecked")
@Test
public void testWrappedCoGroupObject() {
try {
AtomicInteger methodCounter = new AtomicInteger();
CoGroupOperator coGroupOp = CoGroupOperator.builder(new TestCoGroupFunction(methodCounter), LongValue.class, 1, 2).build();
RichFunction cogrouper = (RichFunction) coGroupOp.getUserCodeWrapper().getUserCodeObject();
// test the method invocations
cogrouper.close();
cogrouper.open(new Configuration());
assertEquals(2, methodCounter.get());
// prepare the coGroup
final List<Record> target = new ArrayList<Record>();
Collector<Record> collector = new Collector<Record>() {
@Override
public void collect(Record record) {
target.add(record);
}
@Override
public void close() {}
};
List<Record> source1 = new ArrayList<Record>();
source1.add(new Record(new IntValue(42)));
source1.add(new Record(new IntValue(13)));
List<Record> source2 = new ArrayList<Record>();
source2.add(new Record(new LongValue(11)));
source2.add(new Record(new LongValue(17)));
// test coGroup
((org.apache.flink.api.common.functions.CoGroupFunction<Record, Record, Record>) cogrouper).coGroup(source1, source2, collector);
assertEquals(4, target.size());
assertEquals(new IntValue(42), target.get(0).getField(0, IntValue.class));
assertEquals(new IntValue(13), target.get(1).getField(0, IntValue.class));
assertEquals(new LongValue(11), target.get(2).getField(0, LongValue.class));
assertEquals(new LongValue(17), target.get(3).getField(0, LongValue.class));
target.clear();
// test the serialization
SerializationUtils.clone((java.io.Serializable) cogrouper);
}
catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
}
}
@Test
public void testWrappedCoGroupClass() {
try {
CoGroupOperator coGroupOp = CoGroupOperator.builder(TestCoGroupFunction.class, LongValue.class, 1, 2).build();
UserCodeWrapper<org.apache.flink.api.common.functions.CoGroupFunction<Record, Record, Record>> udf = coGroupOp.getUserCodeWrapper();
UserCodeWrapper<org.apache.flink.api.common.functions.CoGroupFunction<Record, Record, Record>> copy = SerializationUtils.clone(udf);
org.apache.flink.api.common.functions.CoGroupFunction<Record, Record, Record> cogrouper = copy.getUserCodeObject();
// prepare the coGpuรผ
final List<Record> target = new ArrayList<Record>();
Collector<Record> collector = new Collector<Record>() {
@Override
public void collect(Record record) {
target.add(record);
}
@Override
public void close() {}
};
List<Record> source1 = new ArrayList<Record>();
source1.add(new Record(new IntValue(42)));
source1.add(new Record(new IntValue(13)));
List<Record> source2 = new ArrayList<Record>();
source2.add(new Record(new LongValue(11)));
source2.add(new Record(new LongValue(17)));
// test coGroup
cogrouper.coGroup(source1, source2, collector);
assertEquals(4, target.size());
assertEquals(new IntValue(42), target.get(0).getField(0, IntValue.class));
assertEquals(new IntValue(13), target.get(1).getField(0, IntValue.class));
assertEquals(new LongValue(11), target.get(2).getField(0, LongValue.class));
assertEquals(new LongValue(17), target.get(3).getField(0, LongValue.class));
target.clear();
}
catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
}
}
@Test
public void testExtractSemantics() {
try {
{
CoGroupOperator coGroupOp = CoGroupOperator.builder(new TestCoGroupFunction(), LongValue.class, 1, 2).build();
DualInputSemanticProperties props = coGroupOp.getSemanticProperties();
FieldSet fw2 = props.getForwardedField1(2);
FieldSet fw4 = props.getForwardedField2(4);
assertNotNull(fw2);
assertNotNull(fw4);
assertEquals(1, fw2.size());
assertEquals(1, fw4.size());
assertTrue(fw2.contains(2));
assertTrue(fw4.contains(4));
}
{
CoGroupOperator coGroupOp = CoGroupOperator.builder(TestCoGroupFunction.class, LongValue.class, 1, 2).build();
DualInputSemanticProperties props = coGroupOp.getSemanticProperties();
FieldSet fw2 = props.getForwardedField1(2);
FieldSet fw4 = props.getForwardedField2(4);
assertNotNull(fw2);
assertNotNull(fw4);
assertEquals(1, fw2.size());
assertEquals(1, fw4.size());
assertTrue(fw2.contains(2));
assertTrue(fw4.contains(4));
}
}
catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
}
}
// --------------------------------------------------------------------------------------------
@ConstantFieldsFirst(2)
@ConstantFieldsSecond(4)
public static class TestCoGroupFunction extends CoGroupFunction {
private final AtomicInteger methodCounter;
private TestCoGroupFunction(AtomicInteger methodCounter) {
this.methodCounter= methodCounter;
}
public TestCoGroupFunction() {
methodCounter = new AtomicInteger();
}
@Override
public void coGroup(Iterator<Record> records1, Iterator<Record> records2, Collector<Record> out) throws Exception {
while (records1.hasNext()) {
out.collect(records1.next());
}
while (records2.hasNext()) {
out.collect(records2.next());
}
}
@Override
public void close() throws Exception {
methodCounter.incrementAndGet();
super.close();
}
@Override
public void open(Configuration parameters) throws Exception {
methodCounter.incrementAndGet();
super.open(parameters);
}
};
}
|
apache-2.0
|
onosfw/apis
|
onos/apis/dir_2919304e770adbb97e672d64eea27854.js
|
348
|
var dir_2919304e770adbb97e672d64eea27854 =
[
[ "cli", "dir_7f8db958b19368855b72d2da5f4d64d2.html", "dir_7f8db958b19368855b72d2da5f4d64d2" ],
[ "impl", "dir_b145cc4ba1264e669ac0c4e745e9725b.html", "dir_b145cc4ba1264e669ac0c4e745e9725b" ],
[ "rest", "dir_73e5b11bd79819ab83f712ea5bf805df.html", "dir_73e5b11bd79819ab83f712ea5bf805df" ]
];
|
apache-2.0
|
adligo/i_smtp.adligo.org
|
src/org/adligo/i/smtp/authenticators/SmtpUserPassword.java
|
570
|
package org.adligo.i.smtp.authenticators;
import org.adligo.i.smtp.I_SmtpCredentials;
public class SmtpUserPassword implements I_SmtpCredentials {
private String user;
private String password;
public SmtpUserPassword() {}
public SmtpUserPassword(String user, String pass) {
this.user = user;
this.password = pass;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
|
apache-2.0
|
endfalse/EzFramework7
|
Tmpl/BDGF.Tmpl.Web/Content/js/plugins/fastclick/fastclick.js
|
25965
|
;(function () {
'use strict';
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
/*jslint browser:true, node:true*/
/*global define, Event, Node*/
/**
* Instantiate fast-clicking listeners on the specified layer.
*
* @constructor
* @param {Element} layer The layer to listen on
* @param {Object} [options={}] The options to override the defaults
*/
function FastClick(layer, options) {
var oldOnClick;
options = options || {};
/**
* Whether a click is currently being tracked.
*
* @type boolean
*/
this.trackingClick = false;
/**
* Timestamp for when click tracking started.
*
* @type number
*/
this.trackingClickStart = 0;
/**
* The element being tracked for a click.
*
* @type EventTarget
*/
this.targetElement = null;
/**
* X-coordinate of touch start event.
*
* @type number
*/
this.touchStartX = 0;
/**
* Y-coordinate of touch start event.
*
* @type number
*/
this.touchStartY = 0;
/**
* ID of the last touch, retrieved from Touch.identifier.
*
* @type number
*/
this.lastTouchIdentifier = 0;
/**
* Touchmove boundary, beyond which a click will be cancelled.
*
* @type number
*/
this.touchBoundary = options.touchBoundary || 10;
/**
* The FastClick layer.
*
* @type Element
*/
this.layer = layer;
/**
* The minimum time between tap(touchstart and touchend) events
*
* @type number
*/
this.tapDelay = options.tapDelay || 200;
/**
* The maximum time for a tap
*
* @type number
*/
this.tapTimeout = options.tapTimeout || 700;
if (FastClick.notNeeded(layer)) {
return;
}
// Some old versions of Android don't have Function.prototype.bind
function bind(method, context) {
return function() { return method.apply(context, arguments); };
}
var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
var context = this;
for (var i = 0, l = methods.length; i < l; i++) {
context[methods[i]] = bind(context[methods[i]], context);
}
// Set up event handlers as required
if (deviceIsAndroid) {
layer.addEventListener('mouseover', this.onMouse, true);
layer.addEventListener('mousedown', this.onMouse, true);
layer.addEventListener('mouseup', this.onMouse, true);
}
layer.addEventListener('click', this.onClick, true);
layer.addEventListener('touchstart', this.onTouchStart, false);
layer.addEventListener('touchmove', this.onTouchMove, false);
layer.addEventListener('touchend', this.onTouchEnd, false);
layer.addEventListener('touchcancel', this.onTouchCancel, false);
// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
// layer when they are cancelled.
if (!Event.prototype.stopImmediatePropagation) {
layer.removeEventListener = function(type, callback, capture) {
var rmv = Node.prototype.removeEventListener;
if (type === 'click') {
rmv.call(layer, type, callback.hijacked || callback, capture);
} else {
rmv.call(layer, type, callback, capture);
}
};
layer.addEventListener = function(type, callback, capture) {
var adv = Node.prototype.addEventListener;
if (type === 'click') {
adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
if (!event.propagationStopped) {
callback(event);
}
}), capture);
} else {
adv.call(layer, type, callback, capture);
}
};
}
// If a handler is already declared in the element's onclick attribute, it will be fired before
// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
// adding it as listener.
if (typeof layer.onclick === 'function') {
// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
// - the old one won't work if passed to addEventListener directly.
oldOnClick = layer.onclick;
layer.addEventListener('click', function(event) {
oldOnClick(event);
}, false);
layer.onclick = null;
}
}
/**
* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
*
* @type boolean
*/
var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
/**
* Android requires exceptions.
*
* @type boolean
*/
var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
/**
* iOS requires exceptions.
*
* @type boolean
*/
var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
/**
* iOS 4 requires an exception for select elements.
*
* @type boolean
*/
var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
/**
* iOS 6.0-7.* requires the target element to be manually derived
*
* @type boolean
*/
var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
/**
* BlackBerry requires exceptions.
*
* @type boolean
*/
var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
/**
* Determine whether a given element requires a native click.
*
* @param {EventTarget|Element} target Target DOM element
* @returns {boolean} Returns true if the element needs a native click
*/
FastClick.prototype.needsClick = function(target) {
switch (target.nodeName.toLowerCase()) {
// Don't send a synthetic click to disabled inputs (issue #62)
case 'button':
case 'select':
case 'textarea':
if (target.disabled) {
return true;
}
break;
case 'input':
// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
if ((deviceIsIOS && target.type === 'file') || target.disabled) {
return true;
}
break;
case 'label':
case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
case 'video':
return true;
}
return (/\bneedsclick\b/).test(target.className);
};
/**
* Determine whether a given element requires a call to focus to simulate click into element.
*
* @param {EventTarget|Element} target Target DOM element
* @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
*/
FastClick.prototype.needsFocus = function(target) {
switch (target.nodeName.toLowerCase()) {
case 'textarea':
return true;
case 'select':
return !deviceIsAndroid;
case 'input':
switch (target.type) {
case 'button':
case 'checkbox':
case 'file':
case 'image':
case 'radio':
case 'submit':
return false;
}
// No point in attempting to focus disabled inputs
return !target.disabled && !target.readOnly;
default:
return (/\bneedsfocus\b/).test(target.className);
}
};
/**
* Send a click event to the specified element.
*
* @param {EventTarget|Element} targetElement
* @param {Event} event
*/
FastClick.prototype.sendClick = function(targetElement, event) {
var clickEvent, touch;
// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
if (document.activeElement && document.activeElement !== targetElement) {
document.activeElement.blur();
}
touch = event.changedTouches[0];
// Synthesise a click event, with an extra attribute so it can be tracked
clickEvent = document.createEvent('MouseEvents');
clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
clickEvent.forwardedTouchEvent = true;
targetElement.dispatchEvent(clickEvent);
};
FastClick.prototype.determineEventType = function(targetElement) {
//Issue #159: Android Chrome Select Box does not open with a synthetic click event
if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
return 'mousedown';
}
return 'click';
};
/**
* @param {EventTarget|Element} targetElement
*/
FastClick.prototype.focus = function(targetElement) {
var length;
// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
length = targetElement.value.length;
targetElement.setSelectionRange(length, length);
} else {
targetElement.focus();
}
};
/**
* Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
*
* @param {EventTarget|Element} targetElement
*/
FastClick.prototype.updateScrollParent = function(targetElement) {
var scrollParent, parentElement;
scrollParent = targetElement.fastClickScrollParent;
// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
// target element was moved to another parent.
if (!scrollParent || !scrollParent.contains(targetElement)) {
parentElement = targetElement;
do {
if (parentElement.scrollHeight > parentElement.offsetHeight) {
scrollParent = parentElement;
targetElement.fastClickScrollParent = parentElement;
break;
}
parentElement = parentElement.parentElement;
} while (parentElement);
}
// Always update the scroll top tracker if possible.
if (scrollParent) {
scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
}
};
/**
* @param {EventTarget} targetElement
* @returns {Element|EventTarget}
*/
FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
if (eventTarget.nodeType === Node.TEXT_NODE) {
return eventTarget.parentNode;
}
return eventTarget;
};
/**
* On touch start, record the position and scroll offset.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchStart = function(event) {
var targetElement, touch, selection;
// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
if (event.targetTouches.length > 1) {
return true;
}
targetElement = this.getTargetElementFromEventTarget(event.target);
touch = event.targetTouches[0];
if (deviceIsIOS) {
// Only trusted events will deselect text on iOS (issue #49)
selection = window.getSelection();
if (selection.rangeCount && !selection.isCollapsed) {
return true;
}
if (!deviceIsIOS4) {
// Weird things happen on iOS when an alert or confirm diaLog is opened from a click event callback (issue #23):
// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
// with the same identifier as the touch event that previously triggered the click that triggered the alert.
// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
// random integers, it's safe to to continue if the identifier is 0 here.
if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
event.preventDefault();
return false;
}
this.lastTouchIdentifier = touch.identifier;
// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
// 1) the user does a fling scroll on the scrollable layer
// 2) the user stops the fling scroll with another tap
// then the event.target of the last 'touchend' event will be the element that was under the user's finger
// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
this.updateScrollParent(targetElement);
}
}
this.trackingClick = true;
this.trackingClickStart = event.timeStamp;
this.targetElement = targetElement;
this.touchStartX = touch.pageX;
this.touchStartY = touch.pageY;
// Prevent phantom clicks on fast double-tap (issue #36)
if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
event.preventDefault();
}
return true;
};
/**
* Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.touchHasMoved = function(event) {
var touch = event.changedTouches[0], boundary = this.touchBoundary;
if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
return true;
}
return false;
};
/**
* Update the last position.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchMove = function(event) {
if (!this.trackingClick) {
return true;
}
// If the touch has moved, cancel the click tracking
if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
this.trackingClick = false;
this.targetElement = null;
}
return true;
};
/**
* Attempt to find the labelled control for the given label element.
*
* @param {EventTarget|HTMLLabelElement} labelElement
* @returns {Element|null}
*/
FastClick.prototype.findControl = function(labelElement) {
// Fast path for newer browsers supporting the HTML5 control attribute
if (labelElement.control !== undefined) {
return labelElement.control;
}
// All browsers under test that support touch events also support the HTML5 htmlFor attribute
if (labelElement.htmlFor) {
return document.getElementById(labelElement.htmlFor);
}
// If no for attribute exists, attempt to retrieve the first labellable descendant element
// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
};
/**
* On touch end, determine whether to send a click event at once.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchEnd = function(event) {
var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
if (!this.trackingClick) {
return true;
}
// Prevent phantom clicks on fast double-tap (issue #36)
if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
this.cancelNextClick = true;
return true;
}
if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
return true;
}
// Reset to prevent wrong click cancel on input (issue #156).
this.cancelNextClick = false;
this.lastClickTime = event.timeStamp;
trackingClickStart = this.trackingClickStart;
this.trackingClick = false;
this.trackingClickStart = 0;
// On some iOS devices, the targetElement supplied with the event is invalid if the layer
// is performing a transition or scroll, and has to be re-detected manually. Note that
// for this to function correctly, it must be called *after* the event target is checked!
// See issue #57; also filed as rdar://13048589 .
if (deviceIsIOSWithBadTarget) {
touch = event.changedTouches[0];
// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
}
targetTagName = targetElement.tagName.toLowerCase();
if (targetTagName === 'label') {
forElement = this.findControl(targetElement);
if (forElement) {
this.focus(targetElement);
if (deviceIsAndroid) {
return false;
}
targetElement = forElement;
}
} else if (this.needsFocus(targetElement)) {
// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
this.targetElement = null;
return false;
}
this.focus(targetElement);
this.sendClick(targetElement, event);
// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
if (!deviceIsIOS || targetTagName !== 'select') {
this.targetElement = null;
event.preventDefault();
}
return false;
}
if (deviceIsIOS && !deviceIsIOS4) {
// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
scrollParent = targetElement.fastClickScrollParent;
if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
return true;
}
}
// Prevent the actual click from going though - unless the target node is marked as requiring
// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
if (!this.needsClick(targetElement)) {
event.preventDefault();
this.sendClick(targetElement, event);
}
return false;
};
/**
* On touch cancel, stop tracking the click.
*
* @returns {void}
*/
FastClick.prototype.onTouchCancel = function() {
this.trackingClick = false;
this.targetElement = null;
};
/**
* Determine mouse events which should be permitted.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onMouse = function(event) {
// If a target element was never set (because a touch event was never fired) allow the event
if (!this.targetElement) {
return true;
}
if (event.forwardedTouchEvent) {
return true;
}
// Programmatically generated events targeting a specific element should be permitted
if (!event.cancelable) {
return true;
}
// Derive and check the target element to see whether the mouse event needs to be permitted;
// unless explicitly enabled, prevent non-touch click events from triggering actions,
// to prevent ghost/doubleclicks.
if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
// Prevent any user-added listeners declared on FastClick element from being fired.
if (event.stopImmediatePropagation) {
event.stopImmediatePropagation();
} else {
// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
event.propagationStopped = true;
}
// Cancel the event
event.stopPropagation();
event.preventDefault();
return false;
}
// If the mouse event is permitted, return true for the action to go through.
return true;
};
/**
* On actual clicks, determine whether this is a touch-generated click, a click action occurring
* naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
* an actual click which should be permitted.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onClick = function(event) {
var permitted;
// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
if (this.trackingClick) {
this.targetElement = null;
this.trackingClick = false;
return true;
}
// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
if (event.target.type === 'submit' && event.detail === 0) {
return true;
}
permitted = this.onMouse(event);
// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
if (!permitted) {
this.targetElement = null;
}
// If clicks are permitted, return true for the action to go through.
return permitted;
};
/**
* Remove all FastClick's event listeners.
*
* @returns {void}
*/
FastClick.prototype.destroy = function() {
var layer = this.layer;
if (deviceIsAndroid) {
layer.removeEventListener('mouseover', this.onMouse, true);
layer.removeEventListener('mousedown', this.onMouse, true);
layer.removeEventListener('mouseup', this.onMouse, true);
}
layer.removeEventListener('click', this.onClick, true);
layer.removeEventListener('touchstart', this.onTouchStart, false);
layer.removeEventListener('touchmove', this.onTouchMove, false);
layer.removeEventListener('touchend', this.onTouchEnd, false);
layer.removeEventListener('touchcancel', this.onTouchCancel, false);
};
/**
* Check whether FastClick is needed.
*
* @param {Element} layer The layer to listen on
*/
FastClick.notNeeded = function(layer) {
var metaViewport;
var chromeVersion;
var blackberryVersion;
var firefoxVersion;
// Devices that don't support touch don't need FastClick
if (typeof window.ontouchstart === 'undefined') {
return true;
}
// Chrome version - zero for other browsers
chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
if (chromeVersion) {
if (deviceIsAndroid) {
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport) {
// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
return true;
}
// Chrome 32 and above with width=device-width or less don't need FastClick
if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
return true;
}
}
// Chrome desktop doesn't need FastClick (issue #15)
} else {
return true;
}
}
if (deviceIsBlackBerry10) {
blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
// BlackBerry 10.3+ does not require Fastclick library.
// https://github.com/ftlabs/fastclick/issues/251
if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport) {
// user-scalable=no eliminates click delay.
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
return true;
}
// width=device-width (or less than device-width) eliminates click delay.
if (document.documentElement.scrollWidth <= window.outerWidth) {
return true;
}
}
}
}
// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
return true;
}
// Firefox version - zero for other browsers
firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
if (firefoxVersion >= 27) {
// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
return true;
}
}
// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
return true;
}
return false;
};
/**
* Factory method for creating a FastClick object
*
* @param {Element} layer The layer to listen on
* @param {Object} [options={}] The options to override the defaults
*/
FastClick.attach = function(layer, options) {
return new FastClick(layer, options);
};
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
// AMD. Register as an anonymous module.
define(function() {
return FastClick;
});
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = FastClick.attach;
module.exports.FastClick = FastClick;
} else {
window.FastClick = FastClick;
}
}());
|
apache-2.0
|
shlomimatichin/inaugurator
|
inaugurator/tests/test_partitiontable.py
|
8454
|
import unittest
from inaugurator.partitiontable import PartitionTable
from inaugurator import sh
class Test(unittest.TestCase):
def setUp(self):
self.expectedCommands = []
sh.run = self.runShell
def runShell(self, command):
foundList = [x for x in self.expectedCommands if x[0] == command]
if len(foundList) == 0:
raise Exception("Command '%s' is not in expected commands" % command)
found = foundList[0]
self.expectedCommands.remove(found)
output = found[1]
print "Expected command run:", found
return output
def test_ParsePartitionTable(self):
example = "\n".join([
"# partition table of /dev/sda",
"unit: sectors",
"",
"/dev/sda1 : start= 2048, size= 16023552, Id=82",
"/dev/sda2 : start= 16025600, size=484091904, Id=83, bootable",
"/dev/sda3 : start= 0, size= 0, Id= 0",
"/dev/sda4 : start= 0, size= 0, Id= 0",
""])
self.expectedCommands.append(('sfdisk --dump /dev/sda', example))
tested = PartitionTable("/dev/sda")
parsed = tested.parsePartitionTable()
self.assertEquals(len(parsed), 2)
self.assertEquals(parsed[0]['device'], '/dev/sda1')
self.assertEquals(parsed[0]['sizeMB'], 16023552 / 2 / 1024)
self.assertEquals(parsed[0]['id'], 0x82)
self.assertEquals(parsed[1]['device'], '/dev/sda2')
self.assertEquals(parsed[1]['sizeMB'], 484091904 / 2 / 1024)
self.assertEquals(parsed[1]['id'], 0x83)
self.assertEquals(len(self.expectedCommands), 0)
def test_ParseLVM(self):
example = "\n".join([
" PV VG Fmt Attr PSize PFree ",
" /dev/sda2 dummy lvm2 a-- 60.00m 60.00m"
""])
self.expectedCommands.append(('lvm pvscan --cache /dev/sda2', ""))
self.expectedCommands.append(('lvm pvdisplay --units m --columns /dev/sda2', example))
parsed = PartitionTable.parseLVMPhysicalVolume("/dev/sda2")
self.assertEquals(parsed['name'], 'dummy')
self.assertEquals(parsed['sizeMB'], 60)
example = "\n".join([
" LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert",
" crap dummy -wi-a---- 20.00m",
""])
self.expectedCommands.append(('lvm lvdisplay --units m --columns /dev/inaugurator/crap', example))
parsed = PartitionTable.parseLVMLogicalVolume("crap")
self.assertEquals(parsed['volumeGroup'], 'dummy')
self.assertEquals(parsed['sizeMB'], 20)
def test_CreatePartitionTable_OnA16GBDisk(self):
self.expectedCommands.append(('sfdisk --dump /dev/sda', ""))
self.expectedCommands.append(('''busybox dd if=/dev/zero of=/dev/sda bs=1M count=512''', ""))
self.expectedCommands.append((
'''echo -ne '8,256,83\\n,,8e\\n' | sfdisk --unit M /dev/sda --in-order --force''', ""))
self.expectedCommands.append(('''busybox mdev -s''', ""))
self.expectedCommands.append(('''sfdisk -s /dev/sda''', '%d\n' % (16 * 1024 * 1024)))
self.expectedCommands.append(('''mkfs.ext4 /dev/sda1 -L BOOT''', ""))
self.expectedCommands.append(('''lvm pvcreate /dev/sda2''', ""))
self.expectedCommands.append(('''lvm vgcreate inaugurator /dev/sda2''', ""))
self.expectedCommands.append(('''lvm lvcreate --zero n --name swap --size 1G inaugurator''', ""))
self.expectedCommands.append((
'''lvm lvcreate --zero n --name root --extents 100%FREE inaugurator''', ""))
self.expectedCommands.append(('''lvm vgscan --mknodes''', ""))
self.expectedCommands.append(('''mkswap /dev/inaugurator/swap -L SWAP''', ""))
self.expectedCommands.append(('''mkfs.ext4 /dev/inaugurator/root -L ROOT''', ""))
goodPartitionTable = "\n".join([
"# partition table of /dev/sda",
"unit: sectors",
"",
"/dev/sda1 : start= 2048, size= 512000, Id=83",
"/dev/sda2 : start= 516000, size= 31000000, Id=8e",
"/dev/sda3 : start= 0, size= 0, Id= 0",
"/dev/sda4 : start= 0, size= 0, Id= 0",
""])
self.expectedCommands.append(('sfdisk --dump /dev/sda', goodPartitionTable))
self.expectedCommands.append(('lvm pvscan --cache /dev/sda2', ""))
goodPhysicalVolume = "\n".join([
" PV VG Fmt Attr PSize PFree ",
" /dev/sda2 inaugurator lvm2 a-- 16128.00m 16128.00m"
""])
self.expectedCommands.append(('lvm pvdisplay --units m --columns /dev/sda2', goodPhysicalVolume))
correctSwap = "\n".join([
" LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert",
" swap inaugurator -wi-a---- 1024.00m",
""])
self.expectedCommands.append((
'lvm lvdisplay --units m --columns /dev/inaugurator/swap', correctSwap))
correctRoot = "\n".join([
" LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert",
" root inaugurator -wi-a---- 15104.00m",
""])
self.expectedCommands.append((
'lvm lvdisplay --units m --columns /dev/inaugurator/root', correctRoot))
tested = PartitionTable("/dev/sda")
tested.verify()
self.assertEquals(len(self.expectedCommands), 0)
def test_CreatePartitionTable_OnA128GBDisk(self):
self.expectedCommands.append(('sfdisk --dump /dev/sda', ""))
self.expectedCommands.append(('''busybox dd if=/dev/zero of=/dev/sda bs=1M count=512''', ""))
self.expectedCommands.append((
'''echo -ne '8,256,83\\n,,8e\\n' | sfdisk --unit M /dev/sda --in-order --force''', ""))
self.expectedCommands.append(('''busybox mdev -s''', ""))
self.expectedCommands.append(('''sfdisk -s /dev/sda''', '%d\n' % (128 * 1024 * 1024)))
self.expectedCommands.append(('''mkfs.ext4 /dev/sda1 -L BOOT''', ""))
self.expectedCommands.append(('''lvm pvcreate /dev/sda2''', ""))
self.expectedCommands.append(('''lvm vgcreate inaugurator /dev/sda2''', ""))
self.expectedCommands.append(('''lvm lvcreate --zero n --name swap --size 8G inaugurator''', ""))
self.expectedCommands.append(('''lvm lvcreate --zero n --name root --size 30G inaugurator''', ""))
self.expectedCommands.append(('''lvm vgscan --mknodes''', ""))
self.expectedCommands.append(('''mkswap /dev/inaugurator/swap -L SWAP''', ""))
self.expectedCommands.append(('''mkfs.ext4 /dev/inaugurator/root -L ROOT''', ""))
goodPartitionTable = "\n".join([
"# partition table of /dev/sda",
"unit: sectors",
"",
"/dev/sda1 : start= 2048, size= 512000, Id=83",
"/dev/sda2 : start= 516000, size=267911168, Id=8e",
"/dev/sda3 : start= 0, size= 0, Id= 0",
"/dev/sda4 : start= 0, size= 0, Id= 0",
""])
self.expectedCommands.append(('sfdisk --dump /dev/sda', goodPartitionTable))
self.expectedCommands.append(('lvm pvscan --cache /dev/sda2', ""))
goodPhysicalVolume = "\n".join([
" PV VG Fmt Attr PSize PFree ",
" /dev/sda2 inaugurator lvm2 a-- 130816.00m 130816.00m"
""])
self.expectedCommands.append(('lvm pvdisplay --units m --columns /dev/sda2', goodPhysicalVolume))
correctSwap = "\n".join([
" LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert",
" swap inaugurator -wi-a---- 8192.00m",
""])
self.expectedCommands.append((
'lvm lvdisplay --units m --columns /dev/inaugurator/swap', correctSwap))
correctRoot = "\n".join([
" LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert",
" root inaugurator -wi-a---- 30720.00m",
""])
self.expectedCommands.append((
'lvm lvdisplay --units m --columns /dev/inaugurator/root', correctRoot))
tested = PartitionTable("/dev/sda")
tested.verify()
self.assertEquals(len(self.expectedCommands), 0)
if __name__ == '__main__':
unittest.main()
|
apache-2.0
|
weld/core
|
tests-arquillian/src/test/java/org/jboss/weld/tests/beanDeployment/producers/singleProducerMethod/BootstrapTest.java
|
2588
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.weld.tests.beanDeployment.producers.singleProducerMethod;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.bean.ManagedBean;
import org.jboss.weld.bean.ProducerMethod;
import org.jboss.weld.bean.RIBean;
import org.jboss.weld.manager.BeanManagerImpl;
import org.jboss.weld.test.util.Utils;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import jakarta.enterprise.inject.spi.Bean;
import jakarta.inject.Inject;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RunWith(Arquillian.class)
public class BootstrapTest {
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class, Utils.getDeploymentNameAsHash(BootstrapTest.class))
.addPackage(BootstrapTest.class.getPackage());
}
@Inject
private BeanManagerImpl beanManager;
@Test
public void testProducerMethodBean() {
//deployBeans(TarantulaProducer.class);
List<Bean<?>> beans = beanManager.getBeans();
Map<Class<?>, Bean<?>> classes = new HashMap<Class<?>, Bean<?>>();
for (Bean<?> bean : beans) {
if (bean instanceof RIBean<?>) {
classes.put(((RIBean<?>) bean).getType(), bean);
}
}
Assert.assertTrue(classes.containsKey(TarantulaProducer.class));
Assert.assertTrue(classes.containsKey(Tarantula.class));
Assert.assertTrue(classes.get(TarantulaProducer.class) instanceof ManagedBean<?>);
Assert.assertTrue(classes.get(Tarantula.class) instanceof ProducerMethod<?, ?>);
}
}
|
apache-2.0
|
rchillyard/INFO6205
|
src/main/java/edu/neu/coe/info6205/graphs/BFS_and_prims/StdRandom.java
|
20920
|
package edu.neu.coe.info6205.graphs.BFS_and_prims;
import java.util.Random;
/**
* The {@code StdRandom} class provides static methods for generating
* random number from various discrete and continuous distributions,
* including uniform, Bernoulli, geometric, Gaussian, exponential, Pareto,
* Poisson, and Cauchy. It also provides method for shuffling an
* array or subarray and generating random permutations.
* <p>
* By convention, all intervals are half open. For example,
* <code>uniform(-1.0, 1.0)</code> returns a random number between
* <code>-1.0</code> (inclusive) and <code>1.0</code> (exclusive).
* Similarly, <code>shuffle(a, lo, hi)</code> shuffles the <code>hi - lo</code>
* elements in the array <code>a[]</code>, starting at index <code>lo</code>
* (inclusive) and ending at index <code>hi</code> (exclusive).
* <p>
* For additional documentation,
* see <a href="https://introcs.cs.princeton.edu/22library">Section 2.2</a> of
* <i>Computer Science: An Interdisciplinary Approach</i>
* by Robert Sedgewick and Kevin Wayne.
*
* @author Robert Sedgewick
* @author Kevin Wayne
*/
public final class StdRandom {
private static Random random; // pseudo-random number generator
private static long seed; // pseudo-random number generator seed
// static initializer
static {
// this is how the seed was set in Java 1.4
seed = System.currentTimeMillis();
random = new Random(seed);
}
// don't instantiate
private StdRandom() { }
/**
* Sets the seed of the pseudo-random number generator.
* This method enables you to produce the same sequence of "random"
* number for each execution of the program.
* Ordinarily, you should call this method at most once per program.
*
* @param s the seed
*/
public static void setSeed(long s) {
seed = s;
random = new Random(seed);
}
/**
* Returns the seed of the pseudo-random number generator.
*
* @return the seed
*/
public static long getSeed() {
return seed;
}
/**
* Returns a random real number uniformly in [0, 1).
*
* @return a random real number uniformly in [0, 1)
*/
public static double uniform() {
return random.nextDouble();
}
/**
* Returns a random integer uniformly in [0, n).
*
* @param n number of possible integers
* @return a random integer uniformly between 0 (inclusive) and {@code n} (exclusive)
* @throws IllegalArgumentException if {@code n <= 0}
*/
public static int uniform(int n) {
if (n <= 0) throw new IllegalArgumentException("argument must be positive: " + n);
return random.nextInt(n);
}
/**
* Returns a random long integer uniformly in [0, n).
*
* @param n number of possible {@code long} integers
* @return a random long integer uniformly between 0 (inclusive) and {@code n} (exclusive)
* @throws IllegalArgumentException if {@code n <= 0}
*/
public static long uniform(long n) {
if (n <= 0L) throw new IllegalArgumentException("argument must be positive: " + n);
// https://docs.oracle.com/javase/8/docs/api/java/util/Random.html#longs-long-long-long-
long r = random.nextLong();
long m = n - 1;
// power of two
if ((n & m) == 0L) {
return r & m;
}
// reject over-represented candidates
long u = r >>> 1;
while (u + m - (r = u % n) < 0L) {
u = random.nextLong() >>> 1;
}
return r;
}
///////////////////////////////////////////////////////////////////////////
// STATIC METHODS BELOW RELY ON JAVA.UTIL.RANDOM ONLY INDIRECTLY VIA
// THE STATIC METHODS ABOVE.
///////////////////////////////////////////////////////////////////////////
/**
* Returns a random real number uniformly in [0, 1).
*
* @return a random real number uniformly in [0, 1)
* @deprecated Replaced by {@link #uniform()}.
*/
@Deprecated
public static double random() {
return uniform();
}
/**
* Returns a random integer uniformly in [a, b).
*
* @param a the left endpoint
* @param b the right endpoint
* @return a random integer uniformly in [a, b)
* @throws IllegalArgumentException if {@code b <= a}
* @throws IllegalArgumentException if {@code b - a >= Integer.MAX_VALUE}
*/
public static int uniform(int a, int b) {
if ((b <= a) || ((long) b - a >= Integer.MAX_VALUE)) {
throw new IllegalArgumentException("invalid range: [" + a + ", " + b + ")");
}
return a + uniform(b - a);
}
/**
* Returns a random real number uniformly in [a, b).
*
* @param a the left endpoint
* @param b the right endpoint
* @return a random real number uniformly in [a, b)
* @throws IllegalArgumentException unless {@code a < b}
*/
public static double uniform(double a, double b) {
if (!(a < b)) {
throw new IllegalArgumentException("invalid range: [" + a + ", " + b + ")");
}
return a + uniform() * (b-a);
}
/**
* Returns a random boolean from a Bernoulli distribution with success
* probability <em>p</em>.
*
* @param p the probability of returning {@code true}
* @return {@code true} with probability {@code p} and
* {@code false} with probability {@code 1 - p}
* @throws IllegalArgumentException unless {@code 0} ≤ {@code p} ≤ {@code 1.0}
*/
public static boolean bernoulli(double p) {
if (!(p >= 0.0 && p <= 1.0))
throw new IllegalArgumentException("probability p must be between 0.0 and 1.0: " + p);
return uniform() < p;
}
/**
* Returns a random boolean from a Bernoulli distribution with success
* probability 1/2.
*
* @return {@code true} with probability 1/2 and
* {@code false} with probability 1/2
*/
public static boolean bernoulli() {
return bernoulli(0.5);
}
/**
* Returns a random real number from a standard Gaussian distribution.
*
* @return a random real number from a standard Gaussian distribution
* (mean 0 and standard deviation 1).
*/
public static double gaussian() {
// use the polar form of the Box-Muller transform
double r, x, y;
do {
x = uniform(-1.0, 1.0);
y = uniform(-1.0, 1.0);
r = x*x + y*y;
} while (r >= 1 || r == 0);
return x * Math.sqrt(-2 * Math.log(r) / r);
// Remark: y * Math.sqrt(-2 * Math.log(r) / r)
// is an independent random gaussian
}
/**
* Returns a random real number from a Gaussian distribution with mean μ
* and standard deviation σ.
*
* @param mu the mean
* @param sigma the standard deviation
* @return a real number distributed according to the Gaussian distribution
* with mean {@code mu} and standard deviation {@code sigma}
*/
public static double gaussian(double mu, double sigma) {
return mu + sigma * gaussian();
}
/**
* Returns a random integer from a geometric distribution with success
* probability <em>p</em>.
* The integer represents the number of independent trials
* before the first success.
*
* @param p the parameter of the geometric distribution
* @return a random integer from a geometric distribution with success
* probability {@code p}; or {@code Integer.MAX_VALUE} if
* {@code p} is (nearly) equal to {@code 1.0}.
* @throws IllegalArgumentException unless {@code p >= 0.0} and {@code p <= 1.0}
*/
public static int geometric(double p) {
if (!(p >= 0)) {
throw new IllegalArgumentException("probability p must be greater than 0: " + p);
}
if (!(p <= 1.0)) {
throw new IllegalArgumentException("probability p must not be larger than 1: " + p);
}
// using algorithm given by Knuth
return (int) Math.ceil(Math.log(uniform()) / Math.log(1.0 - p));
}
/**
* Returns a random integer from a Poisson distribution with mean λ.
*
* @param lambda the mean of the Poisson distribution
* @return a random integer from a Poisson distribution with mean {@code lambda}
* @throws IllegalArgumentException unless {@code lambda > 0.0} and not infinite
*/
public static int poisson(double lambda) {
if (!(lambda > 0.0))
throw new IllegalArgumentException("lambda must be positive: " + lambda);
if (Double.isInfinite(lambda))
throw new IllegalArgumentException("lambda must not be infinite: " + lambda);
// using algorithm given by Knuth
// see http://en.wikipedia.org/wiki/Poisson_distribution
int k = 0;
double p = 1.0;
double expLambda = Math.exp(-lambda);
do {
k++;
p *= uniform();
} while (p >= expLambda);
return k-1;
}
/**
* Returns a random real number from the standard Pareto distribution.
*
* @return a random real number from the standard Pareto distribution
*/
public static double pareto() {
return pareto(1.0);
}
/**
* Returns a random real number from a Pareto distribution with
* shape parameter α.
*
* @param alpha shape parameter
* @return a random real number from a Pareto distribution with shape
* parameter {@code alpha}
* @throws IllegalArgumentException unless {@code alpha > 0.0}
*/
public static double pareto(double alpha) {
if (!(alpha > 0.0))
throw new IllegalArgumentException("alpha must be positive: " + alpha);
return Math.pow(1 - uniform(), -1.0/alpha) - 1.0;
}
/**
* Returns a random real number from the Cauchy distribution.
*
* @return a random real number from the Cauchy distribution.
*/
public static double cauchy() {
return Math.tan(Math.PI * (uniform() - 0.5));
}
/**
* Returns a random integer from the specified discrete distribution.
*
* @param probabilities the probability of occurrence of each integer
* @return a random integer from a discrete distribution:
* {@code i} with probability {@code probabilities[i]}
* @throws IllegalArgumentException if {@code probabilities} is {@code null}
* @throws IllegalArgumentException if sum of array entries is not (very nearly) equal to {@code 1.0}
* @throws IllegalArgumentException unless {@code probabilities[i] >= 0.0} for each index {@code i}
*/
public static int discrete(double[] probabilities) {
if (probabilities == null) throw new IllegalArgumentException("argument array must not be null");
double EPSILON = 1.0E-14;
double sum = 0.0;
for (int i = 0; i < probabilities.length; i++) {
if (!(probabilities[i] >= 0.0))
throw new IllegalArgumentException("array entry " + i + " must be non-negative: " + probabilities[i]);
sum += probabilities[i];
}
if (sum > 1.0 + EPSILON || sum < 1.0 - EPSILON)
throw new IllegalArgumentException("sum of array entries does not approximately equal 1.0: " + sum);
// the for loop may not return a value when both r is (nearly) 1.0 and when the
// cumulative sum is less than 1.0 (as a result of floating-point roundoff error)
while (true) {
double r = uniform();
sum = 0.0;
for (int i = 0; i < probabilities.length; i++) {
sum = sum + probabilities[i];
if (sum > r) return i;
}
}
}
/**
* Returns a random integer from the specified discrete distribution.
*
* @param frequencies the frequency of occurrence of each integer
* @return a random integer from a discrete distribution:
* {@code i} with probability proportional to {@code frequencies[i]}
* @throws IllegalArgumentException if {@code frequencies} is {@code null}
* @throws IllegalArgumentException if all array entries are {@code 0}
* @throws IllegalArgumentException if {@code frequencies[i]} is negative for any index {@code i}
* @throws IllegalArgumentException if sum of frequencies exceeds {@code Integer.MAX_VALUE} (2<sup>31</sup> - 1)
*/
public static int discrete(int[] frequencies) {
if (frequencies == null) throw new IllegalArgumentException("argument array must not be null");
long sum = 0;
for (int i = 0; i < frequencies.length; i++) {
if (frequencies[i] < 0)
throw new IllegalArgumentException("array entry " + i + " must be non-negative: " + frequencies[i]);
sum += frequencies[i];
}
if (sum == 0)
throw new IllegalArgumentException("at least one array entry must be positive");
if (sum >= Integer.MAX_VALUE)
throw new IllegalArgumentException("sum of frequencies overflows an int");
// pick index i with probabilitity proportional to frequency
double r = uniform((int) sum);
sum = 0;
for (int i = 0; i < frequencies.length; i++) {
sum += frequencies[i];
if (sum > r) return i;
}
// can't reach here
assert false;
return -1;
}
/**
* Returns a random real number from an exponential distribution
* with rate λ.
*
* @param lambda the rate of the exponential distribution
* @return a random real number from an exponential distribution with
* rate {@code lambda}
* @throws IllegalArgumentException unless {@code lambda > 0.0}
*/
public static double exp(double lambda) {
if (!(lambda > 0.0))
throw new IllegalArgumentException("lambda must be positive: " + lambda);
return -Math.log(1 - uniform()) / lambda;
}
/**
* Rearranges the elements of the specified array in uniformly random order.
*
* @param a the array to shuffle
* @throws IllegalArgumentException if {@code a} is {@code null}
*/
public static void shuffle(Object[] a) {
validateNotNull(a);
int n = a.length;
for (int i = 0; i < n; i++) {
int r = i + uniform(n-i); // between i and n-1
Object temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Rearranges the elements of the specified array in uniformly random order.
*
* @param a the array to shuffle
* @throws IllegalArgumentException if {@code a} is {@code null}
*/
public static void shuffle(double[] a) {
validateNotNull(a);
int n = a.length;
for (int i = 0; i < n; i++) {
int r = i + uniform(n-i); // between i and n-1
double temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Rearranges the elements of the specified array in uniformly random order.
*
* @param a the array to shuffle
* @throws IllegalArgumentException if {@code a} is {@code null}
*/
public static void shuffle(int[] a) {
validateNotNull(a);
int n = a.length;
for (int i = 0; i < n; i++) {
int r = i + uniform(n-i); // between i and n-1
int temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Rearranges the elements of the specified array in uniformly random order.
*
* @param a the array to shuffle
* @throws IllegalArgumentException if {@code a} is {@code null}
*/
public static void shuffle(char[] a) {
validateNotNull(a);
int n = a.length;
for (int i = 0; i < n; i++) {
int r = i + uniform(n-i); // between i and n-1
char temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Rearranges the elements of the specified subarray in uniformly random order.
*
* @param a the array to shuffle
* @param lo the left endpoint (inclusive)
* @param hi the right endpoint (exclusive)
* @throws IllegalArgumentException if {@code a} is {@code null}
* @throws IllegalArgumentException unless {@code (0 <= lo) && (lo < hi) && (hi <= a.length)}
*
*/
public static void shuffle(Object[] a, int lo, int hi) {
validateNotNull(a);
validateSubarrayIndices(lo, hi, a.length);
for (int i = lo; i < hi; i++) {
int r = i + uniform(hi-i); // between i and hi-1
Object temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Rearranges the elements of the specified subarray in uniformly random order.
*
* @param a the array to shuffle
* @param lo the left endpoint (inclusive)
* @param hi the right endpoint (exclusive)
* @throws IllegalArgumentException if {@code a} is {@code null}
* @throws IllegalArgumentException unless {@code (0 <= lo) && (lo < hi) && (hi <= a.length)}
*/
public static void shuffle(double[] a, int lo, int hi) {
validateNotNull(a);
validateSubarrayIndices(lo, hi, a.length);
for (int i = lo; i < hi; i++) {
int r = i + uniform(hi-i); // between i and hi-1
double temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Rearranges the elements of the specified subarray in uniformly random order.
*
* @param a the array to shuffle
* @param lo the left endpoint (inclusive)
* @param hi the right endpoint (exclusive)
* @throws IllegalArgumentException if {@code a} is {@code null}
* @throws IllegalArgumentException unless {@code (0 <= lo) && (lo < hi) && (hi <= a.length)}
*/
public static void shuffle(int[] a, int lo, int hi) {
validateNotNull(a);
validateSubarrayIndices(lo, hi, a.length);
for (int i = lo; i < hi; i++) {
int r = i + uniform(hi-i); // between i and hi-1
int temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
/**
* Returns a uniformly random permutation of <em>n</em> elements.
*
* @param n number of elements
* @throws IllegalArgumentException if {@code n} is negative
* @return an array of length {@code n} that is a uniformly random permutation
* of {@code 0}, {@code 1}, ..., {@code n-1}
*/
public static int[] permutation(int n) {
if (n < 0) throw new IllegalArgumentException("n must be non-negative: " + n);
int[] perm = new int[n];
for (int i = 0; i < n; i++)
perm[i] = i;
shuffle(perm);
return perm;
}
/**
* Returns a uniformly random permutation of <em>k</em> of <em>n</em> elements.
*
* @param n number of elements
* @param k number of elements to select
* @throws IllegalArgumentException if {@code n} is negative
* @throws IllegalArgumentException unless {@code 0 <= k <= n}
* @return an array of length {@code k} that is a uniformly random permutation
* of {@code k} of the elements from {@code 0}, {@code 1}, ..., {@code n-1}
*/
public static int[] permutation(int n, int k) {
if (n < 0) throw new IllegalArgumentException("n must be non-negative: " + n);
if (k < 0 || k > n) throw new IllegalArgumentException("k must be between 0 and n: " + k);
int[] perm = new int[k];
for (int i = 0; i < k; i++) {
int r = uniform(i+1); // between 0 and i
perm[i] = perm[r];
perm[r] = i;
}
for (int i = k; i < n; i++) {
int r = uniform(i+1); // between 0 and i
if (r < k) perm[r] = i;
}
return perm;
}
// throw an IllegalArgumentException if x is null
// (x can be of type Object[], double[], int[], ...)
private static void validateNotNull(Object x) {
if (x == null) {
throw new IllegalArgumentException("argument must not be null");
}
}
// throw an exception unless 0 <= lo <= hi <= length
private static void validateSubarrayIndices(int lo, int hi, int length) {
if (lo < 0 || hi > length || lo > hi) {
throw new IllegalArgumentException("subarray indices out of bounds: [" + lo + ", " + hi + ")");
}
}
}
/*
Copyright ยฉ 2000โ2019, Robert Sedgewick and Kevin Wayne.*/
|
apache-2.0
|
MarcoModder/Dungeons
|
dungeons/FactionsUUID/DungeonCMDD.java
|
15245
|
package it.skyhash.git.dungeons.FactionsUUID;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.RegisteredServiceProvider;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.FPlayers;
import com.massivecraft.factions.Faction;
import it.skyhash.git.dungeons.Dungeon;
import it.skyhash.git.dungeons.Main;
import it.skyhash.git.dungeons.Utils;
import net.milkbowl.vault.economy.Economy;
public class DungeonCMDD implements CommandExecutor {
public static Inventory inv;
public static Economy economy = null;
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if(!(sender instanceof Player))
{
return true;
}
Player p = (Player) sender;
//Get the f player
FPlayer fPlayer = FPlayers.getInstance().getByPlayer(p);
//Get faction object
Faction faction = fPlayer.getFaction();
if(args.length == 0)
{
try
{
if(!faction.getFPlayerAdmin().equals(fPlayer))
{
p.sendMessage(Utils.logo + "ยงcYou must be the admin in order to do this command!");
return true;
}
// GUI
inv = Bukkit.createInventory(p, 27, "ยงbDungeons List / " + p.getWorld().getName());
ItemStack buffer = new ItemStack(Material.STAINED_GLASS_PANE,1,(short) 15);
ItemMeta bufferMeta = buffer.getItemMeta();
bufferMeta.setDisplayName("ยง8Buffer");
buffer.setItemMeta(bufferMeta);
ItemStack em = new ItemStack(Material.EMERALD);
ItemMeta emeta = em.getItemMeta();
if(setupEconomy())
{
double balance = economy.getBalance(p);
emeta.setDisplayName("ยงaBalance: " + balance);
em.setItemMeta(emeta);
}
inv.setItem(22, em);
ItemStack arrow = new ItemStack(Material.ARROW);
inv.setItem(26, arrow);
inv.setItem(18, arrow);
inv.setItem(25, buffer);
inv.setItem(24, buffer);
inv.setItem(23, buffer);
inv.setItem(21, buffer);
inv.setItem(20, buffer);
inv.setItem(19, buffer);
ItemStack red = new ItemStack(Material.STAINED_GLASS_PANE,1,(short) 14);
ItemMeta redMeta = red.getItemMeta();
redMeta.setDisplayName("ยงcWork in Progress!");
red.setItemMeta(redMeta);
int count = 0;
for(int i=0;i<Main.getDungeons().size();i++)
{
ItemStack is = Main.getDungeons().get(i).getGuiItem();
if(Main.getDungeons().get(i).getLocation().getWorld().equals(p.getWorld()))
{
is = Main.getDungeons().get(i).getGuiItem();
List<String> lores = new ArrayList<>();
String ingame = "ยงfStatus: ยงcIn-Game";
String free = "ยง7Status: ยงaFree";
String cost = "ยง7Cost: ยง6" + Main.getDungeons().get(i).getCost();
if(Main.getDungeons().get(i).getGameStatus())
{
lores.add(ingame);
}
else
{
lores.add(free);
}
lores.add(cost);
ItemMeta im = is.getItemMeta();
im.setLore(lores);
is.setItemMeta(im);
is = Utils.addGlow(is);
inv.setItem(count, is);
count++;
}
}
for(int i=0;i<27;i++)
{
if(inv.getItem(i) == null)
{
inv.setItem(i, red);
}
}
p.openInventory(inv);
return true;
}catch(java.lang.NullPointerException ex)
{
p.sendMessage(Utils.logo + "ยงcYou must be in a faction in order to do this command!");
return true;
}
}
if(args[0].equalsIgnoreCase("create"))
{
if(!p.hasPermission("dungeon.create"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 4)
{
String name = args[1];
if(Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo + "ยงcThis dungeon already exists");
return true;
}
int cost = 0;
try
{
cost = Integer.parseInt(args[2]);
}catch(java.lang.NumberFormatException x)
{
p.sendMessage(Utils.logo + "ยงcCost must be a number!");
return true;
}
ItemStack item = p.getItemInHand();
if(item.getType() == Material.AIR)
{
p.sendMessage(Utils.logo + "ยงcYou have no item in your hand! Icon can't be air!");
return true;
}
int costz = 0;
try
{
costz = Integer.parseInt(args[3]);
}catch(java.lang.NumberFormatException x)
{
p.sendMessage(Utils.logo + "ยงcTime must be a number!");
return true;
}
Dungeon d = new Dungeon(p.getLocation(), name, cost, item, p.getLocation().getWorld(),costz);
Main.getMap().put(name, d);
Main.getDungeons().add(d);
Main.getDungeonStorage().add(d);
p.sendMessage(Utils.logo+"ยงaSuccesfully created " + name + " dungeon!");
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon create <NAME> <COST> <TIME>");
return true;
}
}
else if(args[0].equalsIgnoreCase("delete"))
{
if(!p.hasPermission("dungeon.delete"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length==2)
{
String name = args[1];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
Main.getDungeons().remove(d);
Main.getMap().remove(name);
p.sendMessage(Utils.logo+"ยงaSuccesfully deleted " + name + " dungeon!");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon delete <NAME>");
return true;
}
}
else if(args[0].equalsIgnoreCase("add"))
{
if(!p.hasPermission("dungeon.add"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 3)
{
String name = args[1];
String mob = args[2];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
d.getMobs().add(mob);
p.sendMessage(Utils.logo+"ยงaSuccesfully added " + mob + " mob to your dungeon!");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon add <ARENA NAME> <MOB NAME>");
return true;
}
}
else if(args[0].equalsIgnoreCase("prizeadd"))
{
if(!p.hasPermission("dungeon.prizeadd"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 3)
{
String name = args[1];
String option = args[2];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
if(option.equalsIgnoreCase("item"))
{
ItemStack i = p.getItemInHand();
if(i.getType() == Material.AIR)
{
p.sendMessage(Utils.logo+"ยงcYou can't set air item as prize!");
return true;
}
d.getPrizes().add(i);
p.sendMessage(Utils.logo+"ยงaSuccesfully set ยงb" + i.getType().toString() + "ยงa as item prize in ยงb" + d.getName() + "ยงa!");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizeadd <ARENA NAME> <item/money>");
return true;
}
}
else if(args.length == 4)
{
String name = args[1];
String option = args[2];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
if(option.equalsIgnoreCase("money"))
{
try
{
int money = Integer.parseInt(args[3]);
d.setMoneyPrize(d.getMoneyPrize() + money);
p.sendMessage(Utils.logo+"ยงaSuccesfully added ยงb" + money + " as money prize of ยงb" + d.getName() + "ยงa!");
return true;
}catch(java.lang.NumberFormatException x)
{
p.sendMessage(Utils.logo+"ยงcMoney Prize must be a number!");
return true;
}
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizeadd <ARENA NAME> <item/money> <Number>");
return true;
}
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizeadd <ARENA NAME> <item/money> <number or item>");
return true;
}
}
else if(args[0].equalsIgnoreCase("remove"))
{
if(!p.hasPermission("dungeon.remove"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 3)
{
String name = args[1];
String mob = args[2];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
if(!d.getMobs().contains(mob))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not contain this mob!");
return true;
}
d.getMobs().remove(mob);
p.sendMessage(Utils.logo+"ยงaSuccesfully removed " + mob + " mob to your dungeon!");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon remove <ARENA NAME> <MOB NAME>");
return true;
}
}
else if(args[0].equalsIgnoreCase("help"))
{
if(!p.hasPermission("dungeon.help"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงbDungeon Commands:");
p.sendMessage("ยง7ยงm-------------------------------");
p.sendMessage("ยง9/dungeon create ยง7<ยง3NAMEยง7> ยง7<ยง3COSTยง7> ยง7<ยง3TIMEยง7>"); //DONE
p.sendMessage("ยง9/dungeon delete ยง7<ยง3NAMEยง7>"); // DONE
p.sendMessage("ยง9/dungeon add ยง7<ยง3ARENA NAMEยง7> ยง7<ยง3MOB NAMEยง7>"); // DONE
p.sendMessage("ยง9/dungeon remove ยง7<ยง3ARENA NAMEยง7ยง7> ยง7<ยง3MOB NAMEยง7>"); // DONE
p.sendMessage("ยง9/dungeon list ยง7<ยง3ARENA NAMEยง7>"); // DONE
p.sendMessage("ยง9/dungeon prizeadd ยง3ยง7<ยง3ARENA NAMEยง7> ยง3ยง7<ยง3ITEM/MONEYยง7>"); // DONE
p.sendMessage("ยง9/dungeon prizeremove ยง3ยง7<ยง3ARENA NAMEยง7> ยง3ยง7<ยง3PRIZE/ITEMยง7>"); // TO FINISH
p.sendMessage("ยง9/dungeon prizelist ยง3ยง7<ยง3ARENA NAMEยง7>"); // DONE
p.sendMessage("ยง7ยงm-------------------------------");
return true;
}
}
else if(args[0].equalsIgnoreCase("prizeremove"))
{
if(!p.hasPermission("dungeon.prizeremove"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 3)
{
String name = args[1];
String option = args[2];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
if(option.equalsIgnoreCase("item"))
{
ItemStack i = p.getItemInHand();
if(i.getType() == Material.AIR)
{
p.sendMessage(Utils.logo+"ยงcYou can't remove air item as prize!");
return true;
}
d.getPrizes().remove(i);
p.sendMessage(Utils.logo+"ยงaSuccesfully remove ยงb" + i.getType().toString() + " ยงaas item prize in ยงb" + d.getName() + "ยงa!");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizeremove <ARENA NAME> <item/money>");
return true;
}
}
else if(args.length == 4)
{
String name = args[1];
String option = args[2];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
if(option.equalsIgnoreCase("money"))
{
try
{
int money = Integer.parseInt(args[3]);
d.setMoneyPrize(d.getMoneyPrize() - money);
p.sendMessage(Utils.logo+"ยงaSuccesfully remove ยงb" + money + " as money prize of ยงb" + d.getName() + "ยงa!");
return true;
}catch(java.lang.NumberFormatException x)
{
p.sendMessage(Utils.logo+"ยงcMoney Prize must be a number!");
return true;
}
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizeremove <ARENA NAME> <item/money> <Number>");
return true;
}
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizeremove <ARENA NAME> <item/money> <number or item>");
return true;
}
}
else if(args[0].equalsIgnoreCase("prizelist"))
{
if(!p.hasPermission("dungeon.prizelist"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 2)
{
String name = args[1];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
p.sendMessage(Utils.logo+"ยงbCurrent prizes in " + d.getName() +":");
p.sendMessage("ยง7ยงm-------------------------------");
int count = 0;
for(ItemStack s : d.getPrizes())
{
count++;
p.sendMessage("ยง3" + count + "ยง7: ยงb" + s.getType().toString());
}
if(count == 0)
{
p.sendMessage("ยงcThere are no item prizes!");
}
p.sendMessage("");
p.sendMessage("ยง6Current money prize: ยงa" + d.getMoneyPrize());
p.sendMessage("");
p.sendMessage("ยง7ยงm-------------------------------");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon prizelist <ARENA NAME>");
return true;
}
}
else if(args[0].equalsIgnoreCase("list"))
{
if(!p.hasPermission("dungeon.list"))
{
p.sendMessage(Utils.logo + "ยงcNo permissions!");
return true;
}
if(args.length == 2)
{
String name = args[1];
if(!Main.getMap().containsKey(name))
{
p.sendMessage(Utils.logo+"ยงcThis arena does not exist!");
return true;
}
Dungeon d = Main.getMap().get(name);
p.sendMessage(Utils.logo+"ยงbCurrent mobs in " + d.getName() +":");
p.sendMessage("ยง7ยงm-------------------------------");
int count = 0;
for(String s : d.getMobs())
{
count++;
p.sendMessage("ยง3" + count + "ยง7: ยงb" + s);
}
if(count == 0)
{
p.sendMessage("ยงcThere are no mobs!");
}
p.sendMessage("ยง7ยงm-------------------------------");
return true;
}
else
{
p.sendMessage(Utils.logo+"ยงcCorrect usage: /dungeon list <ARENA NAME>");
return true;
}
}
else
{
p.sendMessage(Utils.logo + "ยงcWrong syntax!");
return true;
}
return true;
}
private boolean setupEconomy() {
RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
if (economyProvider != null) {
economy = economyProvider.getProvider();
}
return (economy != null);
}
}
|
apache-2.0
|
synyx/urlaubsverwaltung
|
src/main/javascript/components/tooltip/index.js
|
158
|
import $ from "jquery";
import "bootstrap/js/tooltip";
export default function tooltip() {
$("[data-title]").attr("data-placement", "bottom").tooltip();
}
|
apache-2.0
|
sshcherbakov/incubator-geode
|
gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/control/MemoryThresholds.java
|
11038
|
/*
* 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 com.gemstone.gemfire.internal.cache.control;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import com.gemstone.gemfire.DataSerializer;
import com.gemstone.gemfire.cache.LowMemoryException;
import com.gemstone.gemfire.cache.control.ResourceManager;
import com.gemstone.gemfire.internal.i18n.LocalizedStrings;
/**
* Stores eviction and critical thresholds for memory as well as the logic for
* determining how memory transitions between states.
*
* @author David Hoots
* @since 9.0
*/
public class MemoryThresholds {
public enum MemoryState {
DISABLED, // Both eviction and critical disabled
EVICTION_DISABLED, // Eviction disabled, critical enabled, critical threshold not exceeded
EVICTION_DISABLED_CRITICAL, // Eviction disabled, critical enabled, critical threshold exceeded
CRITICAL_DISABLED, // Critical disabled, eviction enabled, eviction threshold not exceeded
EVICTION_CRITICAL_DISABLED, // Critical disabled, eviction enabled, eviction threshold exceeded
NORMAL, // Both eviction and critical enabled, neither threshold exceeded
EVICTION, // Both eviction and critical enabled, eviction threshold exceeded
CRITICAL, // Both eviction and critical enabled, critical threshold exceeded
EVICTION_CRITICAL; // Both eviction and critical enabled, both thresholds exceeded
public static MemoryState fromData(DataInput in) throws IOException {
return MemoryState.values()[in.readInt()];
}
public void toData(DataOutput out) throws IOException {
DataSerializer.writeInteger(this.ordinal(), out);
}
public boolean isEvictionDisabled() {
return (this == DISABLED || this == EVICTION_DISABLED_CRITICAL || this == EVICTION_DISABLED);
}
public boolean isCriticalDisabled() {
return (this == DISABLED || this == EVICTION_CRITICAL_DISABLED || this == CRITICAL_DISABLED);
}
public boolean isNormal() {
return (this == NORMAL || this == EVICTION_DISABLED || this == CRITICAL_DISABLED);
}
public boolean isEviction() {
return (this == EVICTION || this == EVICTION_CRITICAL_DISABLED || this == EVICTION_CRITICAL);
}
public boolean isCritical() {
return (this == CRITICAL || this == EVICTION_DISABLED_CRITICAL || this == EVICTION_CRITICAL);
}
}
/**
* When this property is set to true, a {@link LowMemoryException} is not
* thrown, even when usage crosses the critical threshold.
*/
private static final boolean DISABLE_LOW_MEM_EXCEPTION = Boolean.getBoolean("gemfire.disableLowMemoryException");
/**
* The default percent of memory at which the VM is considered in a
* critical state.
*/
public static final float DEFAULT_CRITICAL_PERCENTAGE = ResourceManager.DEFAULT_CRITICAL_PERCENTAGE;
/**
* The default percent of memory at which the VM should begin evicting
* data. Note that if a LRU is created and the eviction percentage
* has not been set then it will default to <code>80.0</code> unless the
* critical percentage has been set in which case it will default to a
* value <code>5.0</code> less than the critical percentage.
*/
public static final float DEFAULT_EVICTION_PERCENTAGE = ResourceManager.DEFAULT_EVICTION_PERCENTAGE;
/**
* Memory usage must fall below THRESHOLD-THRESHOLD_THICKNESS before we deliver
* a down event
*/
private static final double THRESHOLD_THICKNESS = Double.parseDouble(System.getProperty("gemfire.thresholdThickness",
"2.00"));
/**
* Memory usage must fall below THRESHOLD-THRESHOLD_THICKNESS_EVICT before we
* deliver an eviction down event
*/
private static final double THRESHOLD_THICKNESS_EVICT = Double.parseDouble(System.getProperty(
"gemfire.eviction-thresholdThickness", Double.toString(THRESHOLD_THICKNESS)));
private final long maxMemoryBytes;
// Percent of available memory at which point a critical state is entered
private final float criticalThreshold;
// Number of bytes used at which point memory will enter the critical state
private final long criticalThresholdBytes;
// Percent of available memory at which point an eviction state is entered
private final float evictionThreshold;
// Number of bytes used at which point memory will enter the eviction state
private final long evictionThresholdBytes;
// Number of bytes used below which memory will leave the critical state
private final long criticalThresholdClearBytes;
// Number of bytes used below which memory will leave the eviction state
private final long evictionThresholdClearBytes;
MemoryThresholds(long maxMemoryBytes) {
this(maxMemoryBytes, DEFAULT_CRITICAL_PERCENTAGE, DEFAULT_EVICTION_PERCENTAGE);
}
/**
* Public for testing.
*/
public MemoryThresholds(long maxMemoryBytes, float criticalThreshold, float evictionThreshold) {
if (criticalThreshold > 100.0f || criticalThreshold < 0.0f) {
throw new IllegalArgumentException(LocalizedStrings.MemoryThresholds_CRITICAL_PERCENTAGE_GT_ZERO_AND_LTE_100
.toLocalizedString());
}
if (evictionThreshold > 100.0f || evictionThreshold < 0.0f) {
throw new IllegalArgumentException(LocalizedStrings.MemoryThresholds_EVICTION_PERCENTAGE_GT_ZERO_AND_LTE_100
.toLocalizedString());
}
if (evictionThreshold != 0 && criticalThreshold != 0 && evictionThreshold >= criticalThreshold) {
throw new IllegalArgumentException(LocalizedStrings.MemoryThresholds_CRITICAL_PERCENTAGE_GTE_EVICTION_PERCENTAGE
.toLocalizedString());
}
this.maxMemoryBytes = maxMemoryBytes;
this.criticalThreshold = criticalThreshold;
this.criticalThresholdBytes = (long) (criticalThreshold * 0.01 * maxMemoryBytes);
this.criticalThresholdClearBytes = (long) (this.criticalThresholdBytes - (0.01 * THRESHOLD_THICKNESS * this.maxMemoryBytes));
this.evictionThreshold = evictionThreshold;
this.evictionThresholdBytes = (long) (evictionThreshold * 0.01 * maxMemoryBytes);
this.evictionThresholdClearBytes = (long) (this.evictionThresholdBytes - (0.01 * THRESHOLD_THICKNESS_EVICT * this.maxMemoryBytes));
}
public static final boolean isLowMemoryExceptionDisabled() {
return DISABLE_LOW_MEM_EXCEPTION;
}
public MemoryState computeNextState(final MemoryState oldState, final long bytesUsed) {
assert oldState != null;
assert bytesUsed >= 0;
// Are both eviction and critical thresholds enabled?
if (this.evictionThreshold != 0 && this.criticalThreshold != 0) {
if (bytesUsed < this.evictionThresholdClearBytes || (!oldState.isEviction() && bytesUsed < this.evictionThresholdBytes)) {
return MemoryState.NORMAL;
}
if (bytesUsed < this.criticalThresholdClearBytes || (!oldState.isCritical() && bytesUsed < this.criticalThresholdBytes)) {
return MemoryState.EVICTION;
}
return MemoryState.EVICTION_CRITICAL;
}
// Are both eviction and critical thresholds disabled?
if (this.evictionThreshold == 0 && this.criticalThreshold == 0) {
return MemoryState.DISABLED;
}
// Is just critical threshold enabled?
if (this.evictionThreshold == 0) {
if (bytesUsed < this.criticalThresholdClearBytes || (!oldState.isCritical() && bytesUsed < this.criticalThresholdBytes)) {
return MemoryState.EVICTION_DISABLED;
}
return MemoryState.EVICTION_DISABLED_CRITICAL;
}
// Just the eviction threshold is enabled
if (bytesUsed < this.evictionThresholdClearBytes || (!oldState.isEviction() && bytesUsed < this.evictionThresholdBytes)) {
return MemoryState.CRITICAL_DISABLED;
}
return MemoryState.EVICTION_CRITICAL_DISABLED;
}
@Override
public String toString() {
return new StringBuilder().append("MemoryThresholds@[").append(System.identityHashCode(this))
.append(" maxMemoryBytes:" + this.maxMemoryBytes)
.append(", criticalThreshold:" + this.criticalThreshold)
.append(", criticalThresholdBytes:" + this.criticalThresholdBytes)
.append(", criticalThresholdClearBytes:" + this.criticalThresholdClearBytes)
.append(", evictionThreshold:" + this.evictionThreshold)
.append(", evictionThresholdBytes:" + this.evictionThresholdBytes)
.append(", evictionThresholdClearBytes:" + this.evictionThresholdClearBytes)
.append("]").toString();
}
public long getMaxMemoryBytes() {
return this.maxMemoryBytes;
}
public float getCriticalThreshold() {
return this.criticalThreshold;
}
public long getCriticalThresholdBytes() {
return this.criticalThresholdBytes;
}
public long getCriticalThresholdClearBytes() {
return this.criticalThresholdClearBytes;
}
public boolean isCriticalThresholdEnabled() {
return this.criticalThreshold > 0.0f;
}
public float getEvictionThreshold() {
return this.evictionThreshold;
}
public long getEvictionThresholdBytes() {
return this.evictionThresholdBytes;
}
public long getEvictionThresholdClearBytes() {
return this.evictionThresholdClearBytes;
}
public boolean isEvictionThresholdEnabled() {
return this.evictionThreshold > 0.0f;
}
/**
* Generate a Thresholds object from data available from the DataInput
*
* @param in
* DataInput from which to read the data
* @return a new instance of Thresholds
* @throws IOException
*/
public static MemoryThresholds fromData(DataInput in) throws IOException {
long maxMemoryBytes = in.readLong();
float criticalThreshold = in.readFloat();
float evictionThreshold = in.readFloat();
return new MemoryThresholds(maxMemoryBytes, criticalThreshold, evictionThreshold);
}
/**
* Write the state of this to the DataOutput
*
* @param out
* DataOutput on which to write internal state
* @throws IOException
*/
public void toData(DataOutput out) throws IOException {
out.writeLong(this.maxMemoryBytes);
out.writeFloat(this.criticalThreshold);
out.writeFloat(this.evictionThreshold);
}
}
|
apache-2.0
|
t1b1c/lwas
|
LWAS/Workflow/ConditionsCollection.cs
|
1730
|
/*
* Copyright 2006-2015 TIBIC SOLUTIONS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using LWAS.Extensible.Interfaces.WorkFlow;
namespace LWAS.WorkFlow
{
public class ConditionsCollection : LinkedList<ICondition>, IConditionsCollection, ICollection<ICondition>, IEnumerable<ICondition>, IEnumerable
{
private ConditionsCollectionType _type = ConditionsCollectionType.And;
public ConditionsCollectionType Type
{
get
{
return this._type;
}
set
{
this._type = value;
}
}
public virtual bool Check()
{
LinkedListNode<ICondition> conditionNode = base.First;
bool result;
while (null != conditionNode)
{
bool test = conditionNode.Value.Check();
if (this._type == ConditionsCollectionType.And && !test)
{
result = false;
}
else
{
if (this._type != ConditionsCollectionType.Or || !test)
{
conditionNode = conditionNode.Next;
continue;
}
result = true;
}
return result;
}
result = (this._type == ConditionsCollectionType.And);
return result;
}
}
}
|
apache-2.0
|
gksrivas/BatteryExperiment
|
BatteryExperiment/app/src/androidTest/java/com/battery/experiment/ExampleInstrumentedTest.java
|
748
|
package com.battery.experiment;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.battery.experiment", appContext.getPackageName());
}
}
|
apache-2.0
|
smothiki/minio
|
boot.go
|
4277
|
package main
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"strconv"
"strings"
"text/template"
"github.com/deis/minio/src/healthsrv"
"github.com/deis/pkg/aboutme"
"github.com/deis/pkg/utils"
minio "github.com/minio/minio-go"
)
const (
localMinioInsecure = true
defaultMinioHost = "localhost"
defaultMinioPort = "9000"
)
var (
errHealthSrvExited = errors.New("healthcheck server exited with unknown status")
errMinioExited = errors.New("Minio server exited with unknown status")
)
// Secret is a secret for the remote object storage
type Secret struct {
Host string
KeyID string
AccessKey string
}
const configdir = "/home/minio/.minio/"
const templv3 = `{
"version": "3",
"alias": {
"dl": "https://dl.minio.io:9000",
"localhost": "http://localhost:9000",
"play": "https://play.minio.io:9000",
"s3": "https://s3.amazonaws.com"
},
"hosts": {
{{range .}}
"{{.Host}}": {
"access-key-id": "{{.KeyID}}" ,
"secret-access-key": "{{.AccessKey}}"
},
{{end}}
"127.0.0.1:*": {
"access-key-id": "",
"secret-access-key": ""
}
}
}
`
const templv2 = `{
"version": "2",
"credentials": {
{{range .}}
"accessKeyId": "{{.KeyID}}",
"secretAccessKey": "{{.AccessKey}}"
{{end}}
},
"mongoLogger": {
"addr": "",
"db": "",
"collection": ""
},
"syslogLogger": {
"network": "",
"addr": ""
},
"fileLogger": {
"filename": ""
}
}`
func run(cmd string) error {
var cmdBuf bytes.Buffer
tmpl := template.Must(template.New("cmd").Parse(cmd))
if err := tmpl.Execute(&cmdBuf, nil); err != nil {
log.Fatal(err)
}
cmdString := cmdBuf.String()
fmt.Println(cmdString)
var cmdl *exec.Cmd
cmdl = exec.Command("sh", "-c", cmdString)
if _, _, err := utils.RunCommandWithStdoutStderr(cmdl); err != nil {
return err
}
return nil
}
func readSecrets() (string, string) {
keyID, err := ioutil.ReadFile("/var/run/secrets/deis/minio/user/access-key-id")
checkError(err)
accessKey, err := ioutil.ReadFile("/var/run/secrets/deis/minio/user/access-secret-key")
checkError(err)
return strings.TrimSpace(string(keyID)), strings.TrimSpace(string(accessKey))
}
func newMinioClient(host, port, accessKey, accessSecret string, insecure bool) (minio.CloudStorageClient, error) {
return minio.New(
fmt.Sprintf("%s:%s", host, port),
accessKey,
accessSecret,
insecure,
)
}
func main() {
pod, err := aboutme.FromEnv()
checkError(err)
key, access := readSecrets()
minioHost := os.Getenv("MINIO_HOST")
if minioHost == "" {
minioHost = defaultMinioHost
}
minioPort := os.Getenv("MINIO_PORT")
if minioPort == "" {
minioPort = defaultMinioPort
}
minioClient, err := newMinioClient(minioHost, minioPort, key, access, localMinioInsecure)
if err != nil {
log.Printf("Error creating minio client (%s)", err)
os.Exit(1)
}
secrets := []Secret{
{
Host: pod.IP,
KeyID: key,
AccessKey: access,
},
}
t := template.New("MinioTpl")
t, err = t.Parse(templv2)
checkError(err)
err = os.MkdirAll(configdir, 0755)
checkError(err)
output, err := os.Create(configdir + "config.json")
checkError(err)
err = t.Execute(output, secrets)
checkError(err)
os.Args[0] = "minio"
mc := strings.Join(os.Args, " ")
runErrCh := make(chan error)
log.Printf("starting Minio server")
go func() {
if err := run(mc); err != nil {
runErrCh <- err
} else {
runErrCh <- errMinioExited
}
}()
healthSrvHost := os.Getenv("HEALTH_SERVER_HOST")
if healthSrvHost == "" {
healthSrvHost = healthsrv.DefaultHost
}
healthSrvPort, err := strconv.Atoi(os.Getenv("HEALTH_SERVER_PORT"))
if err != nil {
healthSrvPort = healthsrv.DefaultPort
}
log.Printf("starting health check server on %s:%d", healthSrvHost, healthSrvPort)
healthSrvErrCh := make(chan error)
go func() {
if err := healthsrv.Start(healthSrvHost, healthSrvPort, minioClient); err != nil {
healthSrvErrCh <- err
} else {
healthSrvErrCh <- errHealthSrvExited
}
}()
select {
case err := <-runErrCh:
log.Printf("Minio server error (%s)", err)
os.Exit(1)
case err := <-healthSrvErrCh:
log.Printf("Healthcheck server error (%s)", err)
os.Exit(1)
}
}
func checkError(err error) {
if err != nil {
fmt.Println("Fatal error ", err.Error())
os.Exit(1)
}
}
|
apache-2.0
|
KEOpenSource/CAExplorer
|
cellularAutomata/util/files/CARuleDescriptionLoader.java
|
7087
|
/*
CARuleDescriptionLoader -- a class within the Cellular Automaton Explorer.
Copyright (C) 2007 David B. Bahr (http://academic.regis.edu/dbahr/)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package cellularAutomata.util.files;
import java.io.FileReader;
import java.io.BufferedReader;
import java.net.URL;
import cellularAutomata.CAConstants;
import cellularAutomata.reflection.ReflectionTool;
import cellularAutomata.reflection.RuleHash;
import cellularAutomata.reflection.URLResource;
import cellularAutomata.rules.Rule;
/**
* Loads html files stored in the CA Explorer's "ruleDescriptions" folder.
*
* @author David Bahr
*/
public class CARuleDescriptionLoader
{
/**
* Using the file name, this adds the correct folder.
*
* @return the path with the folder attached.
*/
private static String getPathWithFolder(String name)
{
if(name != null)
{
// start with the more likely option (doesn't begin with a "/")
if(!name.startsWith("/"))
{
// add the "ruleDescriptions" folder name
name = CAConstants.RULE_DESCRIPTION_FOLDER_NAME + "/" + name;
}
else
{
// add the "ruleDescriptions" folder name
name = CAConstants.RULE_DESCRIPTION_FOLDER_NAME + name;
}
}
return name;
}
/**
* Gets the url to the specified file which lives in the "ruleDescriptions"
* folder.
*
* @param name
* The name of the html file (if the html file is in a subfolder
* of the "ruleDescriptions" folder, then include the subfolder
* (for example, "subfolder/filename.html").
* @return The URL, or null if the path does not work.
*/
public static URL getURL(String name)
{
URL url = null;
try
{
if(name != null)
{
// start with the more likely option (doesn't begin with a "/")
if(!name.startsWith("/"))
{
// add the "ruleDescriptions" folder name
name = "/" + CAConstants.RULE_DESCRIPTION_FOLDER_NAME + "/"
+ name;
}
else
{
// add the "ruleDescriptions" folder name
name = "/" + CAConstants.RULE_DESCRIPTION_FOLDER_NAME
+ name;
}
}
// get the URL (searches the classpath to find the
// file).
url = URLResource.getResource(name);
}
catch(Exception e)
{
// will return null
url = null;
}
return url;
}
/**
* Gets the URL of the html description using the supplied class name for
* the rule.
*
* @param ruleClassName
* The name of the class of the rule.
* @return The URL to the html description of the rule, or null if the path
* does not work.
*/
public static URL getURLFromRuleClassName(String ruleClassName)
{
// the URL that will be returned
URL fileURL = null;
if(ruleClassName != null && !ruleClassName.equals(""))
{
Rule rule = ReflectionTool
.instantiateMinimalRuleFromClassName(ruleClassName);
if(rule != null)
{
// get the path to the html file describing the rule
String filePath = rule.getHTMLFilePath();
fileURL = getURL(filePath);
}
}
return fileURL;
}
/**
* Gets the URL of the html description using the supplied descriptive rule
* name (for example, "Life", or "Rule 102", etc).
*
* @param ruleDisplayName
* The descriptive name of the rule which is used for display
* purposes (like "Life" or "Rule 102").
* @return The URL to the html description of the rule, or null if the path
* does not work.
*/
public static URL getURLFromRuleName(String ruleDisplayName)
{
// the URL that will be returned
URL fileURL = null;
if(ruleDisplayName != null && !ruleDisplayName.equals(""))
{
RuleHash ruleHash = new RuleHash();
String ruleClassName = ruleHash.get(ruleDisplayName);
fileURL = getURLFromRuleClassName(ruleClassName);
}
return fileURL;
}
/**
* Gets the specified html file associated with the specified rule.
*
* @param ruleDisplayName
* The descriptive name of the rule which is used for display
* purposes (like "Life" or "Rule 102").
* @return The html description associated with the given rule. Null if not
* available.
*/
public static String getHTMLFromRuleDisplayName(String ruleDisplayName)
{
// NOTE: THIS METHOD IS A WORKAROUND BECAUSE I CAN'T GET JEDITORPANE TO
// WORK WITH A URL AS CONSTRUCTED ABOVE.
String html = "";
if(ruleDisplayName != null && !ruleDisplayName.equals(""))
{
RuleHash ruleHash = new RuleHash();
String ruleClassName = ruleHash.get(ruleDisplayName);
Rule rule = ReflectionTool
.instantiateMinimalRuleFromClassName(ruleClassName);
if(rule != null)
{
// get the path to the html file describing the rule
String filePath = rule.getHTMLFilePath();
// add on the folder
filePath = getPathWithFolder(filePath);
try
{
// add each line one at a time
FileReader inputStream = new FileReader(filePath);
BufferedReader fileReader = new BufferedReader(inputStream);
String lineOfFile = fileReader.readLine();
while(lineOfFile != null)
{
html += lineOfFile;
lineOfFile = fileReader.readLine();
}
fileReader.close();
}
catch(Exception bummer)
{
}
}
}
// just in case
if(html != null && html.length() == 0)
{
html = null;
}
return html;
}
/**
* Gets the specified html file associated with the specified rule, and it
* adds break line tags after every paragraph tag. This allows JLabels (like
* tool tips) and JButtons to display html properly.
*
* @param ruleDisplayName
* The descriptive name of the rule which is used for display
* purposes (like "Life" or "Rule 102").
* @return The html description associated with the given rule, with extra
* line breaks for proper display on JLabels (like tool tips). Null
* if not available.
*/
public static String getHTMLWithExtraLineBreaksFromRuleDisplayName(
String ruleDisplayName)
{
String html = getHTMLFromRuleDisplayName(ruleDisplayName);
// add the extra line breaks
if(html != null)
{
html = html.replace("<p", "<br><p");
}
return html;
}
}
|
apache-2.0
|
coinspark/sparkbit-bitcoinj
|
core/src/main/java/org/coinspark/wallet/CSMessage.java
|
49567
|
/*
* SparkBit's Bitcoinj
*
* Copyright 2014 Coin Sciences Ltd.
*
* 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.
*/
package org.coinspark.wallet;
import com.google.bitcoin.core.Address;
import com.google.bitcoin.core.AddressFormatException;
import com.google.bitcoin.core.ECKey;
import com.google.bitcoin.core.Sha256Hash;
import com.google.bitcoin.core.Transaction;
import com.google.bitcoin.core.Utils;
import com.google.bitcoin.core.Wallet;
import com.google.bitcoin.crypto.KeyCrypterException;
import com.google.bitcoin.crypto.TransactionSignature;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.JsonSyntaxException;
import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.beanutils.BeanUtils;
import org.coinspark.core.CSExceptions;
import org.coinspark.core.CSUtils;
import org.coinspark.protocol.CoinSparkMessage;
import org.coinspark.protocol.CoinSparkMessagePart;
import org.coinspark.protocol.CoinSparkPaymentRef;
import org.h2.mvstore.MVMap;
import org.slf4j.LoggerFactory;
import org.spongycastle.crypto.params.KeyParameter;
import org.apache.commons.lang3.tuple.*;
import org.apache.commons.codec.binary.Base64;
/**
* CSMessage is persisted via ORMLite to a database.
*/
@DatabaseTable(tableName = "messages")
public class CSMessage {
private static final org.slf4j.Logger log = LoggerFactory.getLogger(CSMessage.class);
// Store password here when trying to retrieve, Txid->Password
// TODO: Use expiring hashmap in future
private static ConcurrentHashMap<String, KeyParameter> txidWalletPasswordMap = new ConcurrentHashMap<String, KeyParameter>();
public static void addTxidWalletPassword(String txid, KeyParameter aesKey) {
txidWalletPasswordMap.put(txid, aesKey);
}
/**
* Message state. Instead of an enumerated type, we use int which can be persisted to database.
*/
public class CSMessageState {
public static final int PAYMENTREF_ONLY = 15; // Message contain only payment reference
public static final int NEVERCHECKED = 0; // Message is just created, not retrieved yet
public static final int NOT_FOUND = 2; // Message is not found on delivery server
public static final int PENDING = 3; // Message is found on delivery server, but its validity is not confirmed yet
public static final int EXPIRED = 4; // Message is expired and cannot be retrieved
public static final int INVALID = 5; // Invalid for some reason, not downloaded completely, for example
public static final int HASH_MISMATCH = 6; // Hash of retrieved message down't match encoded in metadata
public static final int REFRESH = 7; // We should try to retrieve this message again
public static final int VALID = 1; // Message is fully retrieved and hash is verified
public static final int SELF = 8; // Message was creted by us
public static final int SERVER_NOT_RESPONDING = 9; // Message server not found
public static final int SERVER_ERROR = 10; // HTTPError on message server
public static final int ENCRYPTED_KEY = 11; // The keys in this wallet is encrypted, message cannot be retrieved without aesKey
public static final int ADDRESSES_NOT_ACCEPTED = 12; // All addresses are not accepted
public static final int ADDRESSES_SUSPENDED = 13; // All addresses are either not accepted or suspended
public static final int DELETED = 14; // Message should be deleted from the database
}
/**
* Java bean containing parameters used to send message and attachments to the delivery servers.
* These parameters are copied to CSMessageMeta for persisting to a per-wallet txid->meta map.
*/
public class CSMessageParams {
// public boolean isTestnet() {
// return testnet;
// }
//
// public void setTestnet(boolean testnet) {
// this.testnet = testnet;
// }
public String getSender() {
return sender;
}
public void setSender(String sender) {
this.sender = sender;
}
public String getSalt() {
return salt;
}
public void setSalt(String salt) {
this.salt = salt;
}
public boolean isIsPublic() {
return isPublic;
}
public void setIsPublic(boolean isPublic) {
this.isPublic = isPublic;
}
public String[] getRecipients() {
return recipients;
}
public void setRecipients(String[] recipients) {
this.recipients = recipients;
}
public int getKeepseconds() {
return keepseconds;
}
public void setKeepseconds(int keepseconds) {
this.keepseconds = keepseconds;
}
public boolean isIsSent() {
return isSent;
}
public void setIsSent(boolean isSent) {
this.isSent = isSent;
}
// FIXME: testnet is temporary fudge
// public boolean testnet = true;
public String sender = null;
public String salt = null;
public boolean isPublic = false;
public String[] recipients = null;
public int keepseconds = 0;
public boolean isSent = false;
}
/**
* Metadata concerning this message, from the perspective of a wallet.
* Subclass of CSMessageParams so you can copy/set parameters here.
* Metadata is stored in a txid->metadata map.
*/
public class CSMessageMetadata extends CSMessageParams {
public String getHash() {
return this.hash;
}
public void setHash(String hash) {
this.hash = hash;
}
public int getHashLen() {
return hashLen;
}
public void setHashLen(int hashLen) {
this.hashLen = hashLen;
}
public String getEncoded() {
return encoded;
}
public void setEncoded(String encoded) {
this.encoded = encoded;
}
public String getServerURL() {
return serverURL;
}
public void setServerURL(String serverURL) {
this.serverURL = serverURL;
}
public int getCountOutputs() {
return countOutputs;
}
public void setCountOutputs(int countOutputs) {
this.countOutputs = countOutputs;
}
public String[] getAddresses() {
return addresses;
}
public void setAddresses(String[] addresses) {
this.addresses = addresses;
}
public String hash; // lowercase hex string
public int hashLen;
public String encoded;
public String serverURL;
public int countOutputs;
public String[] addresses;
}
//
// ORMLITE
//
// Ormlite column names
public static final String TXID_FIELD_NAME = "txid";
public static final String MESSAGE_STATE_FIELD_NAME = "state";
public static final String PAYMENT_REFERENCE_FIELD_NAME = "paymentRef";
public static final String LAST_CHECKED_FIELD_NAME = "lastChecked";
public static final String FAILURES_FIELD_NAME = "failures";
@DatabaseField(id = true, columnName = TXID_FIELD_NAME, canBeNull = false)
private String txID;
@DatabaseField(columnName = PAYMENT_REFERENCE_FIELD_NAME, canBeNull = true)
private long paymentRefValue;
@DatabaseField(columnName = LAST_CHECKED_FIELD_NAME, canBeNull = true, dataType = DataType.DATE_LONG)
private Date lastChecked;
// If lastChecked is null, then failures is 0.
@DatabaseField(columnName = FAILURES_FIELD_NAME, canBeNull = false)
private int failures;
// To persist a collection, you must first get a Dao for the class and then create each of the objects using the Dao
// ForeignCollection is abstract and cannot be instantiated.
// When a successful query to the database returns, this collection will be available for populating.
@ForeignCollectionField(eager = false)
ForeignCollection<CSMessagePart> messageParts;
@DatabaseField(columnName = MESSAGE_STATE_FIELD_NAME)
private int messageState;
private CSMessageDatabase db;
private int messageRetrievalState;
// Convenience function to hide that hash byte[] is stored as string.
public byte[] getHashBytes() {
return CSUtils.hex2Byte(meta.hash);
}
public void setHashBytes(byte[] bytes) {
meta.setHash(CSUtils.byte2Hex(bytes));
}
private int numParts;
private boolean corrupted = false;
private KeyParameter aesKey = null;
private CoinSparkPaymentRef paymentRef = null;
private CSMessageMetadata meta = null;
// The actual server URL we will use to connect to delivery servers.
// If we converted hostname to IP successfully, this will be the IPv4 address.
private String actualServerURL = null;
public String getActualServerURL() {
return actualServerURL;
}
// Set isRetrieving to true when actually making JSON queries etc.
private boolean isRetrieving = false;
public boolean getIsRetrieving() {
return isRetrieving;
}
public String getTxID() {
return txID;
}
public Date getLastChecked() {
return lastChecked;
}
public int getFailures() {
return failures;
}
public boolean isPublic() {
return (this.meta == null) ? false : this.meta.isPublic;
}
public int getMessageState() {
return this.messageState;
}
public boolean isCorrupted() {
return this.corrupted;
}
public ForeignCollection<CSMessagePart> getMessagePartsForeignCollection() {
return this.messageParts;
}
public List<CSMessagePart> getMessageParts() {
if (this.messageParts != null) {
return new ArrayList(this.messageParts);
}
return null;
}
public List<CSMessagePart> getMessagePartsSortedByPartID() {
if (this.messageParts != null) {
List sorted = new ArrayList(this.messageParts);
Collections.sort(sorted);
return sorted;
}
return null;
}
public String getServerURL() {
return meta.getServerURL();
}
public long getPaymentRefValue() {
return paymentRefValue;
}
/**
* Return payment reference object, creating it if necessary in the case of
* CSMessage being instantiated from database with value in paymentRefValue.
*
* @return
*/
public CoinSparkPaymentRef getPaymentRef() {
if (paymentRef == null && paymentRefValue > 0) {
paymentRef = new CoinSparkPaymentRef(paymentRefValue);
}
return paymentRef;
}
/**
* Set the CoinSpark payment reference instance variable and also set the
* reference value (long) which is to be persisted to database.
*/
public void setPaymentRef(CoinSparkPaymentRef paymentRef) {
this.paymentRef = paymentRef;
if (paymentRef != null) {
this.paymentRefValue = paymentRef.getRef();
}
}
public boolean hasAesKey(String txid) {
return (txidWalletPasswordMap.get(txid) != null);
}
public void setAesKey(KeyParameter AesKey) {
aesKey = AesKey;
}
/**
* ORMLite
* all persisted classes must define a no-arg constructor with at least package visibility
*/
CSMessage() {
}
/**
* Create a new CSMessage manually
* @param db
*/
public CSMessage(CSMessageDatabase db) {
init(db);
clear(); // not instantiated by ORMLite, could use isORMLite boolean.
}
/**
* Manually initialize CSMessage when created by ORMLite
*/
public void init(CSMessageDatabase db) {
if (this.db==null) this.db = db;
if (this.meta==null) this.meta = new CSMessageMetadata();
}
/**
* Create a subset of the message metadata, populating a CSMessageParams bean
* @return CSMessageParams
*/
public CSMessageParams getMessageParams() {
CSMessageParams mp = new CSMessageParams();
try {
BeanUtils.copyProperties(mp, meta);
} catch (Exception e) {
e.printStackTrace();
}
return mp;
}
/**
* Set message parameters by copying them into the metadata bean
* @param mp
*/
public void setMessageParams(CSMessage.CSMessageParams mp) {
try {
BeanUtils.copyProperties(meta, mp);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Set the server URL (by copying straight into metadata)
* @param ServerURL
*/
public void setServerURL(String ServerURL) {
meta.setServerURL(ServerURL);
}
public void setTxID(String TxID) {
txID = TxID;
}
/**
* Insert message that we sent...
* @param TxID
* @param countOutputs
* @param paymentRef
* @param Message
* @param MessageParts
* @param MessageParams
* @return
*/
protected boolean set(String TxID, int countOutputs, CoinSparkPaymentRef paymentRef, CoinSparkMessage Message, CoinSparkMessagePart[] MessageParts, CSMessage.CSMessageParams MessageParams) {
txID = TxID;
setPaymentRef(paymentRef);
if (Message == null) {
messageState = CSMessageState.PAYMENTREF_ONLY;
return true;
}
setMessageParams(MessageParams);
if (meta.isSent) {
messageState = CSMessageState.SELF;
}
// Set state and perform any required operations
setState(messageState);
// When sent to self, we don't retrive messagaes so we must store our data in DB.
// Message parts are not persisted in DB unless the DAO is updated.
if (!saveMessageParts(MessageParts)) {
return false;
}
return saveMetadata(TxID, countOutputs, Message);
}
/**
* Set up a message that we received...
* @param TxID
* @param countOutputs
* @param paymentRef
* @param Message
* @param Addresses
* @return
*/
protected boolean set(String TxID, int countOutputs, CoinSparkPaymentRef paymentRef, CoinSparkMessage Message, String[] Addresses)
{
txID = TxID;
meta.addresses = Addresses;
setPaymentRef(paymentRef);
if (Message == null) {
messageState = CSMessageState.PAYMENTREF_ONLY;
return true;
}
setState(CSMessageState.NEVERCHECKED);
// Since never checked, no message parts have been saved yet.
return saveMetadata(TxID, countOutputs, Message);
}
/**
* Set state and perform associated operations.
* @param State
*/
private void setState(int State) {
messageState = State;
switch (State) {
case CSMessageState.NEVERCHECKED:
lastChecked = new Date();
failures = 0;
break;
case CSMessageState.NOT_FOUND:
case CSMessageState.PENDING:
case CSMessageState.EXPIRED:
case CSMessageState.INVALID:
case CSMessageState.HASH_MISMATCH:
case CSMessageState.SERVER_NOT_RESPONDING:
case CSMessageState.SERVER_ERROR:
case CSMessageState.ENCRYPTED_KEY:
lastChecked = new Date();
failures++;
break;
case CSMessageState.SELF:
case CSMessageState.VALID:
case CSMessageState.PAYMENTREF_ONLY:
lastChecked = new Date();
failures = 0;
break;
case CSMessageState.REFRESH:
case CSMessageState.DELETED:
lastChecked = null;
failures = 0;
break;
}
}
/**
* Clear instance variables, reset state of message.
* Default values of new CSMessageMetadata should be 0, null, etc.
*/
private void clear() {
lastChecked = null;
failures = 0;
messageState = CSMessageState.NEVERCHECKED;
txID = "";
meta = new CSMessageMetadata();
meta.isSent = false;
}
/**
* @return
*/
public String metadataToString() {
// Update with load
loadMetadata();
StringBuilder sb = new StringBuilder();
sb.append("TxID=").append(this.txID).append("\n");
sb.append("HashLen=").append(meta.hashLen).append("\n");
sb.append("Hash=").append(meta.hash).append("\n");
sb.append("SentByThisWallet=").append(meta.isSent ? "1" : "0").append("\n");
sb.append("Public=").append(meta.isPublic ? "1" : "0").append("\n");
if (meta.salt != null) {
sb.append("Salt=").append(meta.salt).append("\n");
}
sb.append("KeepSeconds=").append(meta.keepseconds).append("\n");
if (meta.sender != null) {
sb.append("Sender=").append(meta.sender).append("\n");
}
sb.append("Server=").append(meta.serverURL).append("\n");
sb.append("Outputs=").append(meta.countOutputs).append("\n");
sb.append("Encoded=").append(meta.encoded).append("\n");
if (this.messageParts != null) {
sb.append("Parts=").append(numParts).append("\n");
for (CSMessagePart part : this.messageParts) {
sb.append("Part=").append(part.partID).append("\n");
sb.append("MimeType=").append(part.mimeType).append("\n");
if (part.fileName != null) {
sb.append("FileName=").append(part.fileName).append("\n");
}
sb.append("Size=").append(part.contentSize).append("\n");
sb.append("Content=").append("attachment " + part.partID).append("\n");
}
}
if (meta.addresses != null) {
sb.append("Addresses=").append(meta.addresses.length).append("\n");
int count = 0;
for (String address : meta.addresses) {
sb.append("AddressID=").append(count).append("\n");
sb.append("Address=").append(address).append("\n");
count++;
}
}
if (meta.recipients != null) {
sb.append("Recipients=").append(meta.recipients.length).append("\n");
int count = 0;
for (String recipient : meta.recipients) {
sb.append("RecipientID=").append(count).append("\n");
sb.append("Recipient=").append(recipient).append("\n");
count++;
}
}
sb.append("\n");
// if(message != null)
// {
// sb.append(message.toString()).append("\n");
// }
return sb.toString();
}
/**
* Store metadata about this message in a map
* @param txid
* @param countOutputs
* @param message
* @return
*/
private boolean saveMetadata(String txid, int countOutputs, CoinSparkMessage message) {
// Map txid -> metadata
MVMap<String, Object> map = this.db.getDefMap();
if (map == null) {
return false;
}
if (message != null) {
meta.hashLen = message.getHashLen();
this.setHashBytes(message.getHash());
meta.serverURL = message.getFullURL();
meta.encoded = message.encodeToHex(countOutputs, 65536);
// When retrieving, message is null and countOutputs is zero, which overwrites
// previous countOutputs value obtained when message was inserted when received.
// We want to retain that figure.
meta.countOutputs = countOutputs;
}
try {
Map<String, String> m = BeanUtils.describe(meta);
map.put(txid, m);
log.debug(">>>> saveDef() inserted = " + Arrays.toString(m.entrySet().toArray()));
for (Map.Entry<String, String> entrySet : m.entrySet()) {
String key = entrySet.getKey();
String value = entrySet.getValue();
log.debug(">>>> " + key + " : " + value);
}
} catch (Exception e) {
e.printStackTrace();
}
return true;
}
/**
* Load metadata about this message from map
* @return
*/
private boolean loadMetadata() {
MVMap<String, Object> map = this.db.getDefMap();
if (map == null) {
return false;
}
Map<String, String> m = (Map) map.get(this.txID);
if (m == null) {
return false;
}
try {
BeanUtils.populate(meta, m);
Map<String, String> m2 = BeanUtils.describe(meta);
log.debug(">>>> loaddef = " + Arrays.toString(m2.entrySet().toArray()));
// if (key.equals("hash")) {
// meta.by=CSUtils.hex2Byte(meta.hash);
//
// }
for (Map.Entry<String, String> entrySet : m.entrySet()) {
String key = entrySet.getKey();
String value = entrySet.getValue();
log.debug(">>>> " + key + " : " + value);
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
protected CSMessage load() {
if (messageState == CSMessageState.PAYMENTREF_ONLY) {
return this;
}
if (!loadMetadata()) {
corrupted = true;
}
return this;
}
/**
* Save retrieved message parts from servers to our database.
* DAO will persist to database.
*
* @param MessageParts Have already passed messaging hash test so they are good.
* @return
*/
private boolean saveMessageParts(CoinSparkMessagePart[] MessageParts) {
log.debug(">>>> saveMessageParts() invoked with []MessageParts of length " + MessageParts.length);
if (MessageParts == null) {
numParts = 0;
return true;
}
numParts = MessageParts.length;
List<CSMessagePart> parts = new ArrayList<CSMessagePart>();
for (int i = 0; i < numParts; i++) {
CoinSparkMessagePart c = MessageParts[i];
log.debug(">>>> MESSAGE PART: " + c.mimeType + " , " + c.content.length + " , name=" + c.fileName);
CSMessagePart p = new CSMessagePart(i + 1, c.mimeType, c.fileName, c.content.length);
p.message = this; // set foreign reference
parts.add(p);
// Insert BLOB into blob store. It has already passed the hash test.
CSMessageDatabase.putIfAbsentBlobForMessagePart(txID, i+1, c.content);
}
try {
this.db.persistMessageParts(parts);
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
public long nextRetrievalInterval() {
long interval = 0;
long never = 864000000;
if (lastChecked == null) {
return 0;
}
switch (messageRetrievalState) {
case CSMessageState.VALID:
case CSMessageState.SELF:
case CSMessageState.EXPIRED:
case CSMessageState.PAYMENTREF_ONLY:
interval = never;
break;
case CSMessageState.ENCRYPTED_KEY:
if (aesKey == null) {
interval = never;
}
break;
case CSMessageState.NEVERCHECKED:
case CSMessageState.INVALID:
case CSMessageState.REFRESH:
break;
default:
if (failures < 60) {
interval = 0;
} else {
if (failures < 120) {
interval = 60;
} else {
if (failures < 180) {
interval = 3600;
} else {
interval = 86400;
}
}
}
interval -= (new Date().getTime() - lastChecked.getTime()) / 1000;
break;
}
if (interval < 0) {
interval = 0;
}
return interval;
}
private class JResponse {
public CSUtils.CSServerError error = CSUtils.CSServerError.UNKNOWN;
public String errorMessage = "";
public JsonObject result = null;
public JsonElement resultAsElement = null;
}
private JResponse jsonQuery(JRequest request) {
JResponse response = new JResponse();
try {
// Use Google GSON library for Java Object <--> JSON conversions
Gson gson = new Gson();
// convert java object to JSON format,
String json = gson.toJson(request);
response.error = CSUtils.CSServerError.NOERROR;
try {
JsonElement jelement;
JsonObject jobject = null;
Map<String, String> headers = new HashMap<String, String>();
headers.put("Content-Type", "application/json");
CSUtils.CSDownloadedURL downloaded = CSUtils.postMessagingURL(meta.getServerURL(), 15, null, json, headers);
// Record the urlString we are using for the actual connection
actualServerURL = downloaded.urlString;
String prefix = "MSG # " + this.hashCode() + " : ";
log.debug(prefix + "----------------------BEGIN QUERY------------------------");
log.debug(prefix + "JSON Query posted to " + meta.getServerURL() + " / actual " + actualServerURL);
log.debug(prefix + "Headers = " + headers);
String s1 = json.replaceAll("\\\"content\\\":\\\".*?\\\"", "\\\"content\\\":......");
log.debug(prefix + "JSON Request = " + s1);
log.debug(prefix + "HTTP Response Error = " + downloaded.error);
log.debug(prefix + "HTTP Response Message = " + downloaded.ResponseMessage);
String s2 = downloaded.contents.replaceAll("\\\"content\\\":\\\".*?\\\"", "\\\"content\\\":......");
log.debug(prefix + "JSON Response = " + s2);
log.debug(prefix + "---------------------END QUERY---------------------------");
if (downloaded.error != null) {
response.errorMessage = downloaded.error;
response.error = CSUtils.CSServerError.SERVER_CANNOT_CONNECT;
if (downloaded.responseCode >= 300) {
response.error = CSUtils.CSServerError.SERVER_REDIRECT;
}
if (downloaded.responseCode >= 400) {
response.error = CSUtils.CSServerError.SERVER_HTTP_ERROR;
}
if (downloaded.responseCode >= 500) {
response.error = CSUtils.CSServerError.SERVER_FATAL_ERROR;
}
} else {
jelement = new JsonParser().parse(downloaded.contents);
jobject = jelement.getAsJsonObject();
}
// !!!
if (CSMessageDatabase.debugWithCustomError && request.method.equals(CSMessageDatabase.debugCustomErrorMethod)) {
response.errorMessage = CSUtils.getHumanReadableServerError(CSMessageDatabase.debugCustomErrorCode);
response.error = CSUtils.CSServerError.fromCode(CSMessageDatabase.debugCustomErrorCode);
log.debug(prefix + "DEBUG CUSTOM ERROR SET: " + response.errorMessage + " , code=" + response.error);
}
// !!!
if (response.error == CSUtils.CSServerError.NOERROR) {
if (jobject != null) {
if ((jobject.get("id") == null) || jobject.get("id").getAsInt() != request.id) {
response.errorMessage = "id doesn't match " + request.id;
response.error = CSUtils.CSServerError.RESPONSE_WRONG_ID;
} else {
if ((jobject.get("error") != null)) {
if (jobject.get("error").isJsonObject()) {
JsonObject jerror = jobject.get("error").getAsJsonObject();
if (jerror.get("code") != null) {
response.errorMessage = "Error code: " + jerror.get("code").getAsInt();
response.error = CSUtils.CSServerError.fromCode(jerror.get("code").getAsInt());
}
if (jerror.get("message") != null) {
response.errorMessage = jerror.get("message").getAsString();
}
} else {
response.errorMessage = "Parse error";
response.error = CSUtils.CSServerError.RESPONSE_PARSE_ERROR;
}
} else {
if (jobject.get("result") != null) {
if (!jobject.get("result").isJsonObject()) {
response.errorMessage = "Result object is not array";
response.result = null;
response.error = CSUtils.CSServerError.RESPONSE_RESULT_NOT_OBJECT;
response.resultAsElement = jobject.get("result");
} else {
response.result = jobject.getAsJsonObject("result");
}
} else {
response.error = CSUtils.CSServerError.RESPONSE_RESULT_NOT_FOUND;
}
}
}
} else {
response.error = CSUtils.CSServerError.RESPONSE_NOT_OBJECT;
}
}
} catch (JsonSyntaxException ex) {
response.errorMessage = "JSON syntax " + ex.getClass().getName() + " " + ex.getMessage();
response.error = CSUtils.CSServerError.RESPONSE_PARSE_ERROR;
} catch (Exception ex) {
response.errorMessage = "Exception " + ex.getClass().getName() + " " + ex.getMessage();
response.error = CSUtils.CSServerError.INTERNAL_ERROR;
}
} catch (Exception ex) {
response.errorMessage = "Exception " + ex.getClass().getName() + " " + ex.getMessage();
response.error = CSUtils.CSServerError.INTERNAL_ERROR;
}
return response;
}
private class JRequest {
public int id;
public String jsonrpc;
public String method;
public Object params;
public int timeout;
public JRequest(JRequestPreCreateParams Params) {
id = (int) (new Date().getTime() / 1000);
jsonrpc = "2.0";
method = "coinspark_message_pre_create";
params = Params;
timeout = 15;
}
public JRequest(JRequestCreateParams Params) {
id = (int) (new Date().getTime() / 1000);
jsonrpc = "2.0";
method = "coinspark_message_create";
params = Params;
timeout = 30;
}
public JRequest(JRequestPreRetrieveParams Params) {
id = (int) (new Date().getTime() / 1000);
jsonrpc = "2.0";
method = "coinspark_message_pre_retrieve";
params = Params;
timeout = 15;
}
public JRequest(JRequestRetrieveParams Params) {
id = (int) (new Date().getTime() / 1000);
jsonrpc = "2.0";
method = "coinspark_message_retrieve";
params = Params;
timeout = 30;
}
}
@Deprecated
private String getSignature_old(Wallet wallet, String address, CSNonce Nonce) {
Address pubKeyHashAddress;
try {
pubKeyHashAddress = new Address(wallet.getNetworkParameters(), address);
} catch (AddressFormatException ex) {
Nonce.error = CSUtils.CSServerError.CANNOT_SIGN;
return null;
}
ECKey key = wallet.findKeyFromPubHash(pubKeyHashAddress.getHash160());
if (key == null) {
Nonce.error = CSUtils.CSServerError.CANNOT_SIGN;
return null;
}
Sha256Hash hashForSignature = Sha256Hash.create(Nonce.nonce.getBytes());
TransactionSignature signature = new TransactionSignature(key.sign(hashForSignature, aesKey), Transaction.SigHash.ALL, true);
byte[] encodedSignature = signature.encodeToBitcoin();
byte[] sigScript = new byte[encodedSignature.length + key.getPubKey().length + 2];
sigScript[0] = (byte) encodedSignature.length;
System.arraycopy(encodedSignature, 0, sigScript, 1, encodedSignature.length);
sigScript[encodedSignature.length + 1] = (byte) key.getPubKey().length;
System.arraycopy(key.getPubKey(), 0, sigScript, encodedSignature.length + 2, key.getPubKey().length);
return Base64.encodeBase64String(sigScript);
}
/**
* Return pub key bytes as hexadecimal string
* @param wallet
* @param address
* @param Nonce
* @return hexadecimal string
*/
private String getPubKey(Wallet wallet, String address, CSNonce Nonce) {
Address pubKeyHashAddress;
try {
pubKeyHashAddress = new Address(wallet.getNetworkParameters(), address);
} catch (AddressFormatException ex) {
Nonce.error = CSUtils.CSServerError.CANNOT_SIGN;
return null;
}
ECKey key = wallet.findKeyFromPubHash(pubKeyHashAddress.getHash160());
if (key == null) {
Nonce.error = CSUtils.CSServerError.CANNOT_SIGN;
return null;
}
byte[] bytes = key.getPubKey();
String s = Utils.bytesToHexString(bytes);
return s;
}
private String getSignature(Wallet wallet, String address, CSNonce Nonce) {
Address pubKeyHashAddress;
try {
pubKeyHashAddress = new Address(wallet.getNetworkParameters(), address);
} catch (AddressFormatException ex) {
Nonce.error = CSUtils.CSServerError.CANNOT_SIGN;
return null;
}
ECKey key = wallet.findKeyFromPubHash(pubKeyHashAddress.getHash160());
if (key == null) {
Nonce.error = CSUtils.CSServerError.CANNOT_SIGN;
return null;
}
Sha256Hash hashForSignature = Sha256Hash.create(Nonce.nonce.getBytes());
TransactionSignature signature = new TransactionSignature(key.sign(hashForSignature, aesKey), Transaction.SigHash.ALL, true);
byte[] encodedSignature = signature.encodeToBitcoin();
return Base64.encodeBase64String(encodedSignature);
}
private class JRequestPreCreateMessagePart {
public boolean testnet = CSMessageDatabase.testnet3;
public String mimetype;
public String filename;
public int bytes;
JRequestPreCreateMessagePart(String MimeType, String FileName, int Bytes) {
mimetype = MimeType;
filename = FileName;
bytes = Bytes;
}
}
private class JRequestPreCreateParams {
public boolean testnet = CSMessageDatabase.testnet3;
public String sender;
public boolean ispublic;
public String[] recipients;
public int keepseconds;
public String salt;
public JRequestPreCreateMessagePart[] message;
}
public CSNonce getCreateNonce(CoinSparkMessagePart[] MessageParts) {
CSNonce nonce = new CSNonce();
JRequestPreCreateParams params = new JRequestPreCreateParams();
params.sender = meta.sender;
params.ispublic = meta.isPublic;
params.salt = meta.salt;
params.keepseconds = meta.keepseconds;
params.recipients = meta.recipients;
params.message = new JRequestPreCreateMessagePart[MessageParts.length];
int count = 0;
for (CoinSparkMessagePart part : MessageParts) {
params.message[count] = new JRequestPreCreateMessagePart(part.mimeType, part.fileName, part.content.length);
count++;
}
JResponse response = jsonQuery(new JRequest(params));
nonce.error = response.error;
if (nonce.error != CSUtils.CSServerError.NOERROR) {
nonce.error = response.error;
nonce.errorMessage = response.errorMessage;
}
if (nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("sender") == null)) {
nonce.errorMessage = "Sender not found in pre_create query";
nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
if (!params.sender.equals(response.result.get("sender").getAsString())) {
nonce.errorMessage = "Sender in response doesn't match";
nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
}
}
}
if (nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("nonce") == null)) {
nonce.errorMessage = "Nonce not found in pre_retrieve query";
nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
nonce.nonce = response.result.get("nonce").getAsString();
}
}
if (nonce.error != CSUtils.CSServerError.NOERROR) {
log.error("Delivery: Code: " + nonce.error + ": " + nonce.errorMessage);
}
return nonce;
}
private class JRequestCreateMessagePart {
public boolean testnet = CSMessageDatabase.testnet3;
public String mimetype;
public String filename;
public String content;
JRequestCreateMessagePart(String MimeType, String FileName, byte[] Content) {
mimetype = MimeType;
filename = FileName;
content = Base64.encodeBase64String(Content);
}
}
private class JRequestCreateParams {
public boolean testnet = CSMessageDatabase.testnet3;
public String sender;
public String nonce;
public String signature;
public String pubkey;
public String txid;
public boolean ispublic;
public String[] recipients;
public int keepseconds;
public String salt;
public JRequestCreateMessagePart[] message;
}
public boolean create(Wallet wallet, CoinSparkMessagePart[] MessageParts, CSNonce Nonce) throws CSExceptions.CannotEncode {
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
String s = Nonce.errorMessage;
s = s.replaceAll("^(\\w+\\.)+\\w+\\s", ""); // strip exception class name
throw new CSExceptions.CannotEncode(s + " (Error code " + Nonce.error.getCode() + ")");
// return false;
}
JRequestCreateParams params = new JRequestCreateParams();
params.sender = meta.sender;
params.txid = txID;
params.nonce = Nonce.nonce;
params.signature = getSignature(wallet, meta.sender, Nonce);
params.pubkey = getPubKey(wallet, meta.sender, Nonce);
params.sender = meta.sender;
params.ispublic = meta.isPublic;
params.salt = meta.salt;
params.keepseconds = meta.keepseconds;
params.recipients = meta.recipients;
params.message = new JRequestCreateMessagePart[MessageParts.length];
int count = 0;
for (CoinSparkMessagePart part : MessageParts) {
params.message[count] = new JRequestCreateMessagePart(part.mimeType, part.fileName, part.content);
count++;
}
JResponse response = jsonQuery(new JRequest(params));
Nonce.error = response.error;
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
Nonce.errorMessage = response.errorMessage;
String s = Nonce.errorMessage;
s = s.replaceAll("^(\\w+\\.)+\\w+\\s", ""); // strip exception class name
throw new CSExceptions.CannotEncode(s + " (Error code " + Nonce.error.getCode() + ")");
//return false;
}
if (Nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("txid") == null)) {
Nonce.errorMessage = "TxID not found in create query";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
if (!params.txid.equals(response.result.get("txid").getAsString())) {
Nonce.errorMessage = "TxID in response doesn't match";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
}
}
}
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
String s = Nonce.errorMessage;
s = s.replaceAll("^(\\w+\\.)+\\w+\\s", ""); // strip exception class name
throw new CSExceptions.CannotEncode(s + " (Error code " + Nonce.error.getCode() + ")");
}
return (Nonce.error == CSUtils.CSServerError.NOERROR);
}
private class JRequestPreRetrieveParams {
public boolean testnet = CSMessageDatabase.testnet3;
public String txid;
public String recipient;
}
private CSNonce getRetrieveNonce(String AddressToCheck) {
CSNonce nonce = new CSNonce();
JRequestPreRetrieveParams params = new JRequestPreRetrieveParams();
params.txid = txID;
params.recipient = AddressToCheck;
JResponse response = jsonQuery(new JRequest(params));
nonce.error = response.error;
if (nonce.error != CSUtils.CSServerError.NOERROR) {
nonce.error = response.error;
nonce.errorMessage = response.errorMessage;
switch (nonce.error) {
// case RECIPIENT_IP_IS_SUSPENDED:
// nonce.suspended = true;
// break;
case RECIPIENT_IS_SUSPENDED:
nonce.suspended = true;
nonce.mayBeOtherAddressIsBetter = true;
break;
case RECIPIENT_NOT_ACCEPTED:
nonce.mayBeOtherAddressIsBetter = true;
break;
}
}
if (nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("recipient") == null)) {
nonce.errorMessage = "Recipient not found in pre_retrieve query";
nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
if (!AddressToCheck.equals(response.result.get("recipient").getAsString())) {
nonce.errorMessage = "Recipient in response doesn't match";
nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
}
}
}
if (nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("nonce") == null)) {
nonce.errorMessage = "Nonce not found in pre_retrieve query";
nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
nonce.nonce = response.result.get("nonce").getAsString();
}
}
if (nonce.error != CSUtils.CSServerError.NOERROR) {
log.error("Delivery: Code: " + nonce.error + ": " + nonce.errorMessage);
}
return nonce;
}
private class JRequestRetrieveParams {
public boolean testnet = CSMessageDatabase.testnet3;
public String txid;
public String recipient;
public String nonce;
public String signature;
public String pubkey;
}
/**
* Try to retrieve message
* @param wallet
* @param acceptedAddress
* @param Nonce
* @return Tuple of (boolean update, error code, error msg)
*/
private ImmutableTriple<Boolean, CSUtils.CSServerError, String> retrieve(Wallet wallet, String acceptedAddress, CSNonce Nonce) {
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(false, Nonce.error, "Error retrieving message");
}
JRequestRetrieveParams params = new JRequestRetrieveParams();
params.txid = txID;
params.recipient = acceptedAddress;
params.nonce = Nonce.nonce;
params.signature = getSignature(wallet, acceptedAddress, Nonce);
params.pubkey = getPubKey(wallet, acceptedAddress, Nonce);
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(false, Nonce.error, "Error retrieving message");
}
JResponse response = jsonQuery(new JRequest(params));
Nonce.error = response.error;
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(false, Nonce.error, "Error retrieving message");
}
if (Nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("salt") == null)) {
Nonce.errorMessage = "salt not found in retrieve query";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
meta.setSalt(response.result.get("salt").getAsString());
// messageParams.salt=response.result.get("salt").getAsString();
}
}
CoinSparkMessagePart[] receivedParts = null;
if (Nonce.error == CSUtils.CSServerError.NOERROR) {
if ((response.result.get("message") == null)) {
Nonce.errorMessage = "message not found in retrieve query";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
if (!response.result.get("message").isJsonArray()) {
Nonce.errorMessage = "message is not json array";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
} else {
JsonArray jarray = response.result.getAsJsonArray("message");
numParts = jarray.size();
receivedParts = new CoinSparkMessagePart[numParts];
for (int j = 0; j < jarray.size(); j++) {
JsonObject jentry = jarray.get(j).getAsJsonObject();
CoinSparkMessagePart onePart = new CoinSparkMessagePart();
if (jentry.get("mimetype") != null) {
onePart.mimeType = jentry.get("mimetype").getAsString();
} else {
Nonce.errorMessage = "mimetype not found in one of message parts";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
}
onePart.fileName = null;
if (jentry.get("filename") != null) {
if (!jentry.get("filename").isJsonNull()) {
onePart.fileName = jentry.get("filename").getAsString();
}
}
if (jentry.get("content") != null) {
String jsonData = jentry.get("content").getAsString();
if (jsonData!=null) {
onePart.content = Base64.decodeBase64(jsonData);
}
} else {
Nonce.errorMessage = "content not found in one of message parts";
Nonce.error = CSUtils.CSServerError.RESPONSE_INVALID;
}
if (Nonce.error == CSUtils.CSServerError.NOERROR) {
receivedParts[j] = onePart;
}
}
}
}
}
if (Nonce.error == CSUtils.CSServerError.NOERROR) {
byte[] receivedHash = CoinSparkMessage.calcMessageHash(Base64.decodeBase64(meta.getSalt()), receivedParts);
if (receivedHash==null || !Arrays.equals(Arrays.copyOf(this.getHashBytes(), meta.getHashLen()), Arrays.copyOf(receivedHash, meta.getHashLen()))) {
Nonce.errorMessage = "message hash doesn't match encoded in metadata";
Nonce.error = CSUtils.CSServerError.RESPONSE_HASH_MISMATCH;
}
}
// Message received, so save message parts, and save the metadata
if (Nonce.error == CSUtils.CSServerError.NOERROR) {
if (!saveMessageParts(receivedParts)) {
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, CSUtils.CSServerError.NOERROR, null);
// Internal error - no change in state
}
if (!saveMetadata(txID, 0, null)) // Internal error - no change in state
{
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, CSUtils.CSServerError.NOERROR, null);
}
}
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
log.error("Delivery: Code: " + Nonce.error + ": " + Nonce.errorMessage);
}
switch (Nonce.error) {
case NOERROR:
messageRetrievalState = CSMessageState.VALID;
break;
// case RECIPIENT_IP_IS_SUSPENDED:
case RECIPIENT_IS_SUSPENDED:
messageRetrievalState = CSMessageState.ADDRESSES_SUSPENDED;
break;
// case RECIPIENT_IP_NOT_ACCEPTED:
case RECIPIENT_NOT_ACCEPTED:
messageRetrievalState = CSMessageState.ADDRESSES_NOT_ACCEPTED;
break;
case TX_MESSAGE_UNKNOWN:
messageRetrievalState = CSMessageState.NOT_FOUND;
break; //return true;
case TX_MESSAGE_PENDING:
messageRetrievalState = CSMessageState.PENDING;
break; //return true;
case TX_MESSAGE_EXPIRED:
messageRetrievalState = CSMessageState.EXPIRED;
break; //return true;
case NONCE_NOT_FOUND: // Internal error - no change in state
case SIGNATURE_INCORRECT:
break; //return true;
default:
messageRetrievalState = CSMessageState.SERVER_ERROR;
//return true;
}
if (Nonce.error != CSUtils.CSServerError.NOERROR) {
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, Nonce.error, "Error retrieving message");
}
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, CSUtils.CSServerError.NOERROR, null);
}
private ImmutableTriple<Boolean, CSUtils.CSServerError, String> retrieve(Wallet wallet) {
String acceptedAddress = null;
CSNonce nonce = null;
boolean suspended = false;
// Null exception check.
if (meta.addresses != null) {
for (String address : meta.addresses) {
if (acceptedAddress == null) {
nonce = getRetrieveNonce(address);
suspended |= nonce.suspended;
if (!nonce.mayBeOtherAddressIsBetter) {
acceptedAddress = address;
}
}
}
}
if (acceptedAddress == null) {
for (ECKey key : wallet.getKeys()) {
if (acceptedAddress == null) {
Address pubKeyHash = new Address(wallet.getNetworkParameters(), key.getPubKeyHash());
String address = pubKeyHash.toString();
boolean found = false;
if (meta.addresses != null) {
for (String addressToCheck : meta.addresses) {
if (!found) {
if (addressToCheck.equals(address)) {
found = true;
}
}
}
}
if (!found) {
nonce = getRetrieveNonce(address);
suspended |= nonce.suspended;
if (!nonce.mayBeOtherAddressIsBetter) {
acceptedAddress = address;
}
}
}
}
}
if (acceptedAddress == null) {
if (suspended) {
messageRetrievalState = CSMessageState.ADDRESSES_SUSPENDED;
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, CSUtils.CSServerError.RECIPIENT_IS_SUSPENDED, "Error retrieving message");
} else {
messageRetrievalState = CSMessageState.ADDRESSES_NOT_ACCEPTED;
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, CSUtils.CSServerError.RECIPIENT_NOT_ACCEPTED, "Error retrieving message");
}
}
if (nonce == null) {
messageRetrievalState = CSMessageState.ADDRESSES_NOT_ACCEPTED;
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, CSUtils.CSServerError.NONCE_NOT_FOUND, "Error retrieving message");
}
switch (nonce.error) {
case NOERROR:
break;
case TX_MESSAGE_UNKNOWN:
messageRetrievalState = CSMessageState.NOT_FOUND;
break; //return true;
case TX_MESSAGE_PENDING:
messageRetrievalState = CSMessageState.PENDING;
break; //return true;
case TX_MESSAGE_EXPIRED:
messageRetrievalState = CSMessageState.EXPIRED;
break; //return true;
default:
messageRetrievalState = CSMessageState.SERVER_ERROR;
break; //return true;
}
if (nonce.error != CSUtils.CSServerError.NOERROR) {
return new ImmutableTriple<Boolean, CSUtils.CSServerError, String>(true, nonce.error, "Error retrieving message");
}
return retrieve(wallet, acceptedAddress, nonce);
}
protected boolean mayBeRetrieve(Wallet wallet) {
boolean updateRequired = false;
messageRetrievalState = messageState;
// aeskey must be set, if required, before nextRetrievalInterval() is invoke
// In future, perhaps use expiring map, by time or by count of usage
setAesKey(txidWalletPasswordMap.get(txID));
if (nextRetrievalInterval() == 0) {
try {
this.isRetrieving = true;
CSEventBus.INSTANCE.postAsyncEvent(CSEventType.MESSAGE_RETRIEVAL_STARTED, txID);
load();
ImmutableTriple<Boolean, CSUtils.CSServerError, String> triplet = retrieve(wallet);
this.isRetrieving = false;
this.db.putServerError(txID, triplet.getMiddle());
updateRequired |= triplet.getLeft(); // replaced --> updateRequired |= retrieve(wallet);
} catch (KeyCrypterException e) {
messageRetrievalState = CSMessageState.ENCRYPTED_KEY;
this.isRetrieving = false;
}
}
updateRequired |= (messageState != messageRetrievalState);
if (updateRequired) {
setState(messageRetrievalState);
}
// If set, clear the AESKey when done
if (messageRetrievalState == CSMessageState.VALID) {
setAesKey(null);
txidWalletPasswordMap.remove(txID);
}
return updateRequired;
}
}
|
apache-2.0
|
cb1234/pynet-test
|
pyth_ansibel/class9/exercise1/mytest/world.py
|
1301
|
'''
Python class on writing reusable code
'''
def func1():
'''Simple test function'''
print "Hello world"
if __name__ == "__main__":
print "Main program - world"
class MyClass(object):
'''Simple test class'''
def __init__(self, var1, var2, var3):
self.var1 = var1
self.var2 = var2
self.var3 = var3
def hello(self):
'''Simple test method'''
print "Hello World: {} {} {}".format(self.var1, self.var2, self.var3)
def not_hello(self):
'''Simple test method'''
print "Goodbye: {} {} {}".format(self.var1, self.var2, self.var3)
class MyChildClass(MyClass):
'''Simple test class'''
def hello(self):
'''Simple test method'''
print "Something else: {} {} {}".format(self.var1, self.var2, self.var3)
def __init__(self, var1, var2, var3):
print "Do something more in __init__()"
MyClass.__init__(self, var1, var2, var3)
if __name__ == "__main__":
print "\nMain program - world"
# Some test code
my_obj = MyClass('SF', 'NYC', 'LA')
print
print my_obj.var1, my_obj.var2, my_obj.var3
my_obj.hello()
my_obj.not_hello()
print "\nTesting MyChildClass:"
new_obj = MyChildClass('X', 'Y', 'Z')
new_obj.hello()
new_obj.not_hello()
print
|
apache-2.0
|
OpenSourceConsulting/athena-meerkat
|
console/app/view/TomcatInformationForm.js
|
1261
|
/*
* File: app/view/SSHFormPanel.js
*/
Ext.define('webapp.view.TomcatInformationForm', {
extend: 'Ext.form.Panel',
alias: 'widget.tomcatinformationform',
requires: [
'Ext.form.field.ComboBox',
'Ext.form.field.Hidden'
],
itemId: 'tomcatInfoForm',
bodyPadding: 10,
bodyCls: 'osc-body',
frameHeader: false,
header: false,
manageHeight: false,
fieldDefaults: {
msgTarget: 'side',
labelWidth: 100,
labelAlign: 'right',
width: 250
},
items: [
{
xtype: 'fieldcontainer',
layout: 'hbox',
hideLabel: true,
items: [
{
xtype: 'displayfield',
fieldLabel: 'Health',
value: 'OK'
},
{
xtype: 'displayfield',
fieldLabel: 'Availability',
value: 'OK'
},
{
xtype: 'displayfield',
fieldLabel: 'Today Availability',
value: '100%'
}
]
},
{
xtype: 'fieldcontainer',
layout: 'hbox',
hideLabel: true,
items: [
{
xtype: 'displayfield',
fieldLabel: 'Today\'s Uptime',
value: '12 hrs 10 mins 13 secs'
},
{
xtype: 'displayfield',
fieldLabel: 'Last Downtime',
value: '2016/04/16 15:00:34'
}
]
}
]
});
|
apache-2.0
|
nyxcalamity/classwork
|
tum/patterns-in-software-engineering/arch_ptrn_layers/src/edu/tum/cs/i1/pse/application/ApplicationLayerInterface.java
|
420
|
package edu.tum.cs.i1.pse.application;
import edu.tum.cs.i1.pse.network.NetworkLayerInterface;
import edu.tum.cs.i1.pse.presentation.PresentationLayerInterface;
public interface ApplicationLayerInterface {
void sendMessage(String message);
void receiveMessage(String message);
void setPresentationLayer(PresentationLayerInterface presentationLayer);
void setNetworkLayer(NetworkLayerInterface networkLayer);
}
|
apache-2.0
|
jzthree/GraphBoard
|
node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js
|
16166
|
"use strict";
var
fs = require("fs"),
path = require("path"),
rimraf = require("rimraf"),
os = require("os"),
_ = require("lodash"),
async = require("async"),
https = require("https"),
HttpsProxyAgent = require("https-proxy-agent"),
AdmZip = require("adm-zip"),
spawn = require("child_process").spawn,
exec = require("child_process").exec,
crypto = require("crypto"),
processOptions = require("./process_options"),
scDir = path.normalize(__dirname + "/../sc"),
exists = fs.existsSync || path.existsSync,
currentTunnel,
logger = console.log,
cleanup_registered = false,
sc_version = process.env.SAUCE_CONNECT_VERSION ||
require("../package.json").sauceConnectLauncher.scVersion,
tunnelIdRegExp = /Tunnel ID:\s*([a-z0-9]+)/i,
portRegExp = /port\s*([0-9]+)/i,
tryRun = require("./try_run"),
defaultConnectRetryTimeout = 2000,
defaultDownloadRetryTimeout = 1000;
function setWorkDir(workDir) {
scDir = workDir;
}
function killProcesses(callback) {
callback = callback || function () {};
if (!currentTunnel) {
return callback();
}
currentTunnel.on("close", function () {
currentTunnel = null;
callback();
});
currentTunnel.kill("SIGTERM");
}
function clean(callback) {
async.series([
killProcesses,
function (next) {
rimraf(scDir, next);
}
], callback);
}
function getScFolderName(version) {
return {
darwin: "sc-" + version + "-osx",
win32: "sc-" + version + "-win32"
}[process.platform] || "sc-" + version + "-linux";
}
function getArchiveName(version) {
return getScFolderName(version) + ({
darwin: ".zip",
win32: ".zip"
}[process.platform] || ".tar.gz");
}
function getScBin(version) {
var exe = process.platform === "win32" ? ".exe" : "";
return path.normalize(scDir + "/" + getScFolderName(version) + "/bin/sc" + exe);
}
// Make sure all processes have been closed
// when the script goes down
function closeOnProcessTermination() {
if (cleanup_registered) {
return;
}
cleanup_registered = true;
process.on("exit", function () {
logger("Shutting down");
killProcesses();
});
}
function unpackArchive(archivefile, callback) {
logger("Unzipping " + archivefile);
function done(err) {
if (err) { return callback(new Error("Couldn't unpack archive: " + err.message)); }
// write queued data before closing the stream
logger("Removing " + archivefile);
fs.unlinkSync(archivefile);
logger("Sauce Connect downloaded correctly");
callback();
}
setTimeout(function () {
if (archivefile.match(/\.tar\.gz$/)) {
exec("tar -xzf '" + archivefile + "'", {cwd: scDir}, done);
} else {
try {
var zip = new AdmZip(archivefile);
zip.extractAllTo(scDir, true);
} catch (e) {
return done(new Error("ERROR Unzipping file: " + e.message));
}
done();
}
}, 1000);
}
function setExecutePermissions(bin, callback) {
if (os.type() === "Windows_NT") {
// No need to set permission for the executable on Windows
callback(null, bin);
} else {
// check current permissions
fs.stat(bin, function (err, stat) {
if (err) { return callback(new Error("Couldn't read sc permissions: " + err.message)); }
if (stat.mode.toString(8) !== "100755") {
fs.chmod(bin, 0o755, function (err) {
if (err) { return callback(new Error("Couldn't set permissions: " + err.message)); }
callback(null, bin);
});
} else {
callback(null, bin);
}
});
}
}
function httpsRequest(options) {
// Optional http proxy to route the download through
// (if agent is undefined, https.request will proceed as normal)
var proxy = process.env.https_proxy || process.env.http_proxy;
var agent;
if (proxy) {
agent = new HttpsProxyAgent(proxy);
}
options = options || {};
options.agent = agent;
options.timeout = 30000;
return https.request(options);
}
function verifyChecksum(archivefile, checksum, cb) {
if (!checksum) {
logger("Checksum check for manually overwritten sc version isn't supported.");
return cb();
}
var fd = fs.createReadStream(archivefile);
var hash = crypto.createHash("sha1");
hash.setEncoding("hex");
hash.on("finish", function() {
var sha1 = hash.read();
if (sha1 !== checksum) {
return cb(new Error("Checksum of the downloaded archive (" + sha1 + ") doesn't match (" + checksum + ")."));
}
logger("Archive checksum verified.");
cb();
});
hash.on("error", function (err) {
cb(err);
});
fd.pipe(hash);
}
function fetchArchive(archiveName, archivefile, callback) {
if (!fs.existsSync(scDir)) {
fs.mkdirSync(scDir);
}
var req = httpsRequest({
host: "saucelabs.com",
port: 443,
path: "/downloads/" + archiveName
});
req.on("error", function (err) {
callback(err);
});
function removeArchive() {
try {
logger("Removing " + archivefile);
fs.unlinkSync(archivefile);
} catch (e) {
logger("Error removing archive: " + e);
}
_.defer(process.exit.bind(null, 0));
}
// synchronously makes sure the file exists, so that we don't re-enter
// in this function (which is only called when the file does not exist yet)
fs.writeFileSync(archivefile, "");
logger("Missing Sauce Connect local proxy, downloading dependency");
logger("This will only happen once.");
req.on("response", function (res) {
if (res.statusCode !== 200) {
logger(`Invalid response status: ${res.statusCode}`);
return callback(new Error("Download failed with status code: " + res.statusCode));
}
var len = parseInt(res.headers["content-length"], 10),
prettyLen = (len / (1024 * 1024) + "").substr(0, 4);
logger("Downloading " + prettyLen + "MB");
res.pipe(fs.createWriteStream(archivefile));
// cleanup if the process gets interrupted.
var events = ["exit", "SIGHUP", "SIGINT", "SIGTERM"];
events.forEach(function (event) {
process.on(event, removeArchive);
});
res.on("end", function () {
events.forEach(function (event) {
process.removeListener(event, removeArchive);
});
callback();
});
});
req.end();
}
function fetchAndCheckArchive(archiveName, archivefile, checksum, callback) {
return async.waterfall([
async.apply(fetchArchive, archiveName, archivefile),
async.apply(verifyChecksum, archivefile, checksum)
], callback);
}
function unpackAndFixArchive(archivefile, bin, callback) {
return async.waterfall([
async.apply(unpackArchive, archivefile),
async.apply(setExecutePermissions, bin)
], callback);
}
function fetchAndUnpackArchive(versionDetails, options, callback) {
var bin = getScBin(versionDetails.version);
if (exists(bin)) {
return callback(null, bin);
}
var archiveName = getArchiveName(versionDetails.version);
var archivefile = path.normalize(scDir + "/" + archiveName);
if (exists(archivefile)) {
// the archive is being downloaded, poll for the binary to be ready
async.doUntil(function wait(cb) {
_.delay(cb, 1000);
}, async.apply(exists, bin), function () {
callback(null, bin);
});
}
async.waterfall([
async.apply(fetchAndCheckArchive, archiveName, archivefile, versionDetails.checksum),
async.apply(unpackAndFixArchive, archivefile, bin)
], callback);
}
function scPlatform() {
return {
darwin: "osx",
win32: "win32",
}[process.platform] || "linux";
}
function readVersionsFile(versionsfile, cb) {
var versions = require(versionsfile)["Sauce Connect"];
return cb(null, {
version: versions["version"],
checksum: versions[scPlatform()]["sha1"]
});
}
function getVersion(options, cb) {
if (options.connectVersion) {
return cb(null, {
version: options.connectVersion
});
}
if (sc_version !== "latest") {
logger("Checksum check for manually overwritten sc versions isn't supported.");
return cb(null, {
version: sc_version
});
}
var versionsfile = path.normalize(scDir + "/versions.json");
if (exists(versionsfile)) {
return readVersionsFile(versionsfile, cb);
}
if (!fs.existsSync(scDir)) {
fs.mkdirSync(scDir);
}
var req = httpsRequest({
host: "saucelabs.com",
port: 443,
path: "/versions.json"
});
req.on("error", function (err) {
cb(err);
});
req.on("response", function (res) {
if (res.statusCode !== 200) {
logger(`Invalid response status: ${res.statusCode}`);
return cb(new Error("Fetching https://saucelabs.com/versions.json failed: " + res.statusCode));
}
var file = fs.createWriteStream(versionsfile);
res.pipe(file);
file.on("error", function (err) {
cb(err);
});
file.on("close", function () {
readVersionsFile(versionsfile, cb);
});
});
req.end();
}
function download(options, callback) {
if (arguments.length === 1) {
callback = options;
options = {};
}
if (options.exe) {
return callback(null, options.exe);
}
async.waterfall([
async.apply(getVersion, options),
function (versionDetails, next) {
return fetchAndUnpackArchive(versionDetails, options, next);
}
], callback);
}
function connect(bin, options, callback) {
var child;
var logger = options.logger || function () {};
var starting = true;
var done = function (err, child) {
if (!starting) {
return;
}
starting = false;
callback(err, child);
};
function ready() {
logger("Testing tunnel ready");
if (!options.detached) {
closeOnProcessTermination();
}
done(null, child);
}
logger("Opening local tunnel using Sauce Connect");
var watcher,
readyfile,
readyFileName = "sc-launcher-readyfile",
args = processOptions(options),
error,
handleError = function (data) {
if (data.indexOf("Not authorized") !== -1 && !error) {
logger("Invalid Sauce Connect Credentials");
error = new Error("Invalid Sauce Connect Credentials. " + data);
} else if (data.indexOf("Sauce Connect could not establish a connection") !== -1) {
logger("Sauce Connect API failure");
error = new Error(data);
} else if (data.indexOf("HTTP response code indicated failure") === -1) {
// sc says the above before it says "Not authorized", but the following
// Error: message is more useful
error = new Error(data);
}
// error will be handled in the child.on("exit") handler
},
dataActions = {
"Please wait for 'you may start your tests' to start your tests": function connecting() {
logger("Creating tunnel with Sauce Labs");
},
"Tunnel ID:": function (data) {
var tunnelIdMatch = tunnelIdRegExp.exec(data);
if (tunnelIdMatch) {
child.tunnelId = tunnelIdMatch[1];
}
},
"Selenium listener started on port": function (data) {
var portMatch = portRegExp.exec(data);
if (portMatch) {
child.port = parseInt(portMatch[1], 10);
}
},
//"you may start your tests": ready,
"This version of Sauce Connect is outdated": function outdated() {
},
"Error: ": handleError,
"ERROR: ": handleError,
"Error bringing": handleError,
"Sauce Connect could not establish a connection": handleError,
"{\"error\":": handleError
},
previousData = "",
killProcessTimeout = null,
killProcess = function () {
if (child) {
child.kill("SIGTERM");
}
};
if (options.readyFileId) {
readyFileName = readyFileName + "_" + options.readyFileId;
}
// Node v0.8 uses os.tmpDir(), v0.10 uses os.tmpdir()
readyfile = path.normalize((os.tmpdir ? os.tmpdir() : os.tmpDir()) +
"/" + readyFileName);
args.push("--readyfile", readyfile);
// Watching file as directory watching does not work on
// all File Systems http://nodejs.org/api/fs.html#fs_caveats
watcher = fs.watchFile(readyfile, function () {
fs.exists(readyfile, function (exists) {
if (exists) {
logger("Detected sc ready");
ready();
}
});
});
watcher.on("error", done);
logger("Starting sc with args: " + args
.join(" ")
.replace(/-u\ [^\ ]+\ /, "-u XXXXXXXX ")
.replace(/-k\ [^\ ]+\ /, "-k XXXXXXXX ")
.replace(/[0-9a-f]{8}\-([0-9a-f]{4}\-){3}[0-9a-f]{12}/i,
"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX"));
var spawnOptions = {};
if (options.detached) {
spawnOptions.detached = true;
}
child = spawn(bin, args, spawnOptions);
currentTunnel = child;
child.stdout.on("data", function (data) {
previousData += data.toString();
var lines = previousData.split("\n");
previousData = lines.pop();
// only process full lines
_.each(lines, function (line) {
line = line.trim();
if (line === "") {
return;
}
if (options.verbose) {
logger(line);
}
if (!starting) {
return;
}
_.each(dataActions, function (action, key) {
if (line.indexOf(key) !== -1) {
action(line);
return false;
}
});
});
});
child.stderr.on("data", function (data) {
var line = data.toString().trim();
if (line === "") {
return;
}
if (options.verbose) {
logger(line);
}
});
child.on("error", function (err) {
logger("Sauce connect process errored: " + err);
fs.unwatchFile(readyfile);
return done(err);
});
child.on("exit", function (code, signal) {
currentTunnel = null;
child = null;
if (killProcessTimeout) {
clearTimeout(killProcessTimeout);
killProcessTimeout = null;
}
fs.unwatchFile(readyfile);
if (error) { // from handleError() above
return done(error);
}
var message = "Closing Sauce Connect Tunnel";
if (code > 0) {
message = "Could not start Sauce Connect. Exit code " + code +
" signal: " + signal;
done(new Error(message));
}
logger(message);
});
child.close = function (closeCallback) {
if (closeCallback) {
child.on("exit", function () {
closeCallback();
});
}
var tunnelId = child.tunnelId;
if (tunnelId) {
// rather than killing the process immediately, make a request to close the tunnel,
// and give some time to the process to shutdown by itself
httpsRequest({
method: "DELETE",
host: "saucelabs.com",
port: 443,
auth: options.username + ":" + options.accessKey,
path: "/rest/v1/" + options.username + "/tunnels/" + tunnelId
}).on("response", function (res) {
if (child) {
// give some time to the process to shut down by itself
killProcessTimeout = setTimeout(killProcess, 5000);
}
res.resume(); // read the full response to free resources
}).on("error", killProcess).end();
} else {
killProcess();
}
};
}
function run(version, options, callback) {
tryRun(0, {
logger: options.logger,
retries: options.connectRetries,
timeout: options.connectRetryTimeout || defaultConnectRetryTimeout
}, function (tryCallback) {
return connect(version, options, tryCallback);
}, callback);
}
function downloadWithRety(options, callback) {
tryRun(0, {
logger: options.logger,
retries: options.downloadRetries,
timeout: options.downloadRetryTimeout || defaultDownloadRetryTimeout
}, function (tryCallback) {
return download(options, tryCallback);
}, callback);
}
function downloadAndRun(options, callback) {
if (arguments.length === 1) {
callback = options;
options = {};
}
logger = options.logger || function () {};
async.waterfall([
async.apply(downloadWithRety, options),
function (bin, next) {
return run(bin, options, next);
},
], callback);
}
module.exports = downloadAndRun;
module.exports.download = downloadWithRety;
module.exports.kill = killProcesses;
module.exports.clean = clean;
module.exports.setWorkDir = setWorkDir;
|
apache-2.0
|
stellar/gateway-server
|
gui/src/components/ReceivedTransactions.js
|
3582
|
import React from 'react';
import Panel from 'muicss/lib/react/panel';
import axios from 'axios';
import {Link} from 'react-router-dom';
import moment from 'moment';
import querystring from 'querystring';
import defaults from 'lodash/defaults';
export default class ReceivedTransactions extends React.Component {
constructor(props) {
super(props);
let query = this.parseQuery(props.location);
this.state = {loading: true, query, payments: []};
this.loadPage(query.page);
}
componentWillReceiveProps(nextProps) {
let query = this.parseQuery(nextProps.location);
if (this.state.query && this.state.query.page == query.page) {
return;
}
this.setState({loading: true, query});
this.loadPage(query.page);
}
parseQuery(location) {
let search = location.search.substr(1);
let query = querystring.parse(search);
return defaults(query, {page: 1});
}
loadPage(page) {
axios.get(`/admin/received-payments?page=${page}`)
.then(response => {
let loading = false;
let payments = response.data;
this.setState({loading, payments});
})
.catch(error => this.setState({error: true}));
}
render() {
return <Panel>
{this.state.error ?
<div className="mui--text-center">Error loading payments...</div>
:
this.state.loading ?
<div className="mui--text-center">Loading...</div>
:
<div>
<table className="mui-table">
<thead>
<tr>
<th>ID</th>
<th>Operation ID</th>
<th>Status</th>
<th>Processed At <i className="material-icons">arrow_drop_down</i></th>
<th></th>
</tr>
</thead>
<tbody>
{
this.state.payments.length == 0 ?
<tr><td colSpan="5" className="mui--text-center">
{this.state.query.page == 1 ? "No transactions found..." : "No more transactions found..."}
</td></tr>
:
this.state.payments.map(op => {
let processedAt = moment(op.processed_at);
return <tr key={op.id}>
<td>{op.id}</td>
<td><a href={"https://horizon.stellar.org/operations/"+op.operation_id} target="_blank">{op.operation_id}</a></td>
<td>{op.status}</td>
<td>{processedAt.format()+" ("+processedAt.fromNow()+")"}</td>
<td><Link to={"/received/"+op.id}>Details</Link></td>
</tr>
})
}
</tbody>
</table>
{
this.state.query.page > 1
?
<div className="mui--pull-left">
<Link to={{pathname: "/received", search: `?page=${parseInt(this.state.query.page)-1}`}}>
<button className="mui-btn mui-btn--flat mui-btn--primary">« previous page</button>
</Link>
</div>
:
null
}
{
this.state.payments.length == 10
?
<div className="mui--pull-right">
<Link to={{pathname: "/received", search: `?page=${parseInt(this.state.query.page)+1}`}}>
<button className="mui-btn mui-btn--flat mui-btn--primary">next page »</button>
</Link>
</div>
:
null
}
<div className="mui--clearfix"></div>
</div>
}
</Panel>
}
}
|
apache-2.0
|
GoogleCloudPlatform/golang-samples
|
functions/ocr/app/translate.go
|
2470
|
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// [START functions_ocr_translate]
package ocr
import (
"context"
"encoding/json"
"fmt"
"log"
"cloud.google.com/go/pubsub"
"cloud.google.com/go/translate"
)
// TranslateText is executed when a message is published to the Cloud Pub/Sub
// topic specified by the TRANSLATE_TOPIC environment variable, and translates
// the text using the Google Translate API.
func TranslateText(ctx context.Context, event PubSubMessage) error {
if err := setup(ctx); err != nil {
return fmt.Errorf("setup: %v", err)
}
if event.Data == nil {
return fmt.Errorf("empty data")
}
var message ocrMessage
if err := json.Unmarshal(event.Data, &message); err != nil {
return fmt.Errorf("json.Unmarshal: %v", err)
}
log.Printf("Translating text into %s.", message.Lang.String())
opts := translate.Options{
Source: message.SrcLang,
}
translateResponse, err := translateClient.Translate(ctx, []string{message.Text}, message.Lang, &opts)
if err != nil {
return fmt.Errorf("Translate: %v", err)
}
if len(translateResponse) == 0 {
return fmt.Errorf("Empty Translate response")
}
translatedText := translateResponse[0]
messageData, err := json.Marshal(ocrMessage{
Text: translatedText.Text,
FileName: message.FileName,
Lang: message.Lang,
SrcLang: message.SrcLang,
})
if err != nil {
return fmt.Errorf("json.Marshal: %v", err)
}
topic := pubsubClient.Topic(resultTopic)
ok, err := topic.Exists(ctx)
if err != nil {
return fmt.Errorf("Exists: %v", err)
}
if !ok {
topic, err = pubsubClient.CreateTopic(ctx, resultTopic)
if err != nil {
return fmt.Errorf("CreateTopic: %v", err)
}
}
msg := &pubsub.Message{
Data: messageData,
}
if _, err = topic.Publish(ctx, msg).Get(ctx); err != nil {
return fmt.Errorf("Get: %v", err)
}
log.Printf("Sent translation: %q", translatedText.Text)
return nil
}
// [END functions_ocr_translate]
|
apache-2.0
|
felixb/google-music-cache-cut
|
app/src/main/java/de/ub0r/android/gmcc/MainActivity.java
|
13139
|
package de.ub0r.android.gmcc;
import org.jetbrains.annotations.NotNull;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.os.Environment;
import android.preference.PreferenceManager;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;
import de.ub0r.android.logg0r.Log;
public class MainActivity extends Activity {
private static final String TAG = "MainActivity";
private static final String PREF_TARGET_CACHE_SIZE = "target_cache_size";
private static final String MY_MUSIC_DB = "music.db";
@SuppressLint("SdCardPath")
private static final String[] GOOGLE_MUSIC_DIRS = new String[]{
"/data/data/com.google.android.music/files/music/",
"/storage/sdcard0/Android/data/com.google.android.music/files/music/",
"/storage/sdcard1/Android/data/com.google.android.music/files/music/",
"/storage/sdcard2/Android/data/com.google.android.music/files/music/",
};
@SuppressLint("SdCardPath")
private static final String GOOGLE_MUSIC_DATABASE
= "/data/data/com.google.android.music/databases/music.db";
private static final Pattern DF_PATTERN = Pattern.compile("^[^ ]+ +[^ ]+ +[^ ]+ +([^ ]+)");
@InjectView(R.id.current_cache_size)
EditText mCurrentCacheSizeView;
@InjectView(R.id.target_cache_size)
EditText mTargetCacheSizeView;
@InjectView(R.id.go)
Button mGoButton;
private String mMusicDir;
private boolean mIsInternalMusicDir;
private int mCurrentCacheSize;
public InputStream runAsRoot(final String... cmds) throws IOException {
Process p = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(p.getOutputStream());
for (String cmd : cmds) {
Log.d(TAG, "running command: ", cmd);
os.writeBytes(cmd);
os.writeBytes("\n");
}
os.writeBytes("exit\n");
os.flush();
BufferedReader r = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String l;
while ((l = r.readLine()) != null) {
Log.w(TAG, "error running command: ", l);
}
r.close();
return p.getInputStream();
}
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.inject(this);
mTargetCacheSizeView.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(final CharSequence s, final int start, final int count,
final int after) {
// nothing to do
}
@Override
public void onTextChanged(final CharSequence s, final int start, final int count,
final int after) {
// nothing to do
}
@Override
public void afterTextChanged(final Editable s) {
updateGoButtonState();
}
});
if (savedInstanceState == null) {
int size = PreferenceManager.getDefaultSharedPreferences(this)
.getInt(PREF_TARGET_CACHE_SIZE, -1);
if (size > 0) {
mTargetCacheSizeView.setText(String.valueOf(size));
} else {
mTargetCacheSizeView.requestFocus();
}
mMusicDir = getMusicDir();
Log.i(TAG, "music dir: ", mMusicDir);
updateData();
} else {
mCurrentCacheSize = savedInstanceState.getInt("mCurrentCacheSize");
mMusicDir = savedInstanceState.getString("mMusicDir");
}
updateGoButtonState();
assert mMusicDir != null;
mIsInternalMusicDir = mMusicDir.equals(GOOGLE_MUSIC_DIRS[0]);
}
@Override
public boolean onCreateOptionsMenu(final Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(final MenuItem item) {
switch (item.getItemId()) {
case R.id.item_about:
showAbout();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
private void showAbout() {
AlertDialog.Builder b = new AlertDialog.Builder(this);
b.setTitle(R.string.about);
b.setView(getLayoutInflater().inflate(R.layout.dialog_about, null));
b.setPositiveButton(android.R.string.ok, null);
b.show();
}
private String getMusicDir() {
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
for (int i = 1; i < GOOGLE_MUSIC_DIRS.length; ++i) {
String dir = GOOGLE_MUSIC_DIRS[i];
File f = new File(dir);
if (!f.exists() || !f.isDirectory()) {
continue;
}
if (f.list().length == 0) {
continue;
}
return dir;
}
}
return GOOGLE_MUSIC_DIRS[0];
}
private void updateData() {
String s = null;
try {
// get cache size
BufferedReader r = new BufferedReader(new InputStreamReader(
runAsRoot("du -m " + mMusicDir + " | cut -f 1")));
s = r.readLine();
if (s != null) {
s = s.trim();
mCurrentCacheSize = Integer.parseInt(s);
}
r.close();
mCurrentCacheSizeView.setText(getString(R.string.cache_size, mCurrentCacheSize));
// get free space
r = new BufferedReader(new InputStreamReader(
runAsRoot("df " + mMusicDir + " | grep /")));
String line = r.readLine();
r.close();
if (line != null && line.length() > 0) {
Matcher matcher = DF_PATTERN.matcher(line);
if (matcher.find()) {
int free;
line = matcher.group(1).trim();
Log.d(TAG, "free: ", line);
try {
if (line.endsWith("G")) {
free = (int) (Float.parseFloat(line.substring(0, line.length() - 1))
* 1024);
} else if (line.endsWith("M")) {
free = (int) Float.parseFloat(line.substring(0, line.length() - 1));
} else if (line.endsWith("k")) {
free = (int) (Float.parseFloat(line.substring(0, line.length() - 1))
/ 1024);
} else {
free = 0;
}
mCurrentCacheSizeView
.setText(getString(R.string.cache_size_free, mCurrentCacheSize,
free));
} catch (NumberFormatException e) {
Log.e(TAG, "invalid number: " + line, e);
}
}
}
File cacheDir = getCacheDir();
assert cacheDir != null;
if (!cacheDir.exists()) {
//noinspection ResultOfMethodCallIgnored
cacheDir.mkdirs();
}
// copy music.db
File myMusicFile = getMyMusicFile();
String myMusicDb = myMusicFile.getAbsolutePath();
runAsRoot(new String[]{
"cp " + GOOGLE_MUSIC_DATABASE + " " + myMusicDb,
"chmod 644 " + myMusicDb
}).close();
updateGoButtonState();
} catch (IOException e) {
Log.e(TAG, "IO error", e);
Toast.makeText(this, getString(R.string.error_update, e.getMessage()),
Toast.LENGTH_LONG).show();
mGoButton.setEnabled(false);
} catch (NumberFormatException e) {
Log.e(TAG, "invalid number: ", s, e);
Toast.makeText(this, getString(R.string.error_update, e.getMessage()),
Toast.LENGTH_LONG).show();
mGoButton.setEnabled(false);
}
}
private File getMyMusicFile() {
return new File(getCacheDir(), MY_MUSIC_DB);
}
private SQLiteDatabase openMyMusicFile() {
return SQLiteDatabase
.openDatabase(getMyMusicFile().getAbsolutePath(), null,
SQLiteDatabase.OPEN_READONLY);
}
@Override
protected void onSaveInstanceState(@NotNull final Bundle outState) {
super.onSaveInstanceState(outState);
outState.putInt("mCurrentCacheSize", mCurrentCacheSize);
outState.putString("mMusicDir", mMusicDir);
}
private int getTargetCacheSize() {
//noinspection ConstantConditions
String s = mTargetCacheSizeView.getText().toString().trim();
int targetCacheSize;
// check input
if (TextUtils.isEmpty(s)) {
return -1;
}
// check input
try {
targetCacheSize = Integer.parseInt(s);
} catch (NumberFormatException e) {
mTargetCacheSizeView.setError(getString(R.string.error_invalid_cacheSize));
return -1;
}
return targetCacheSize;
}
private void updateGoButtonState() {
int targetCacheSize = getTargetCacheSize();
mGoButton.setEnabled(targetCacheSize > 0 && targetCacheSize < mCurrentCacheSize);
}
@OnClick(R.id.go)
void onGoClick() {
int targetCacheSize = getTargetCacheSize();
if (targetCacheSize <= 0) {
mGoButton.setEnabled(false);
return;
}
PreferenceManager.getDefaultSharedPreferences(this).edit()
.putInt(PREF_TARGET_CACHE_SIZE, targetCacheSize).apply();
reduceCache(targetCacheSize);
updateData();
Toast.makeText(this, R.string.done, Toast.LENGTH_LONG).show();
}
void reduceCache(final int targetCacheSizeInMB) {
long currentCacheSize = mCurrentCacheSize * 1024L * 1024L;
long targetCacheSize = targetCacheSizeInMB * 1024L * 1024L;
SQLiteDatabase db = openMyMusicFile();
Cursor c = db.query("music",
new String[]{"Id", "LocalCopySize", "LocalCopyPath", "Artist", "Title"},
"LocalCopyPath not null and "
+ "Rating != 5 and not ("
+ "AlbumId in (select AlbumId from keepon where AlbumId not null) or "
+ "ArtistId in (select ArtistId from keepon where ArtistId not null) or "
+ "Id in (select MusicId from listitems where ListId in (select ListId from keepon where ListId not null)))",
null, null, null, "Rating DESC, LastPlayDate ASC"
);
Log.d(TAG, "#files: ", c.getCount());
Log.d(TAG, "current cache size: ", currentCacheSize);
Log.d(TAG, "target cache size: ", targetCacheSize);
if (c.getCount() == 0) {
Toast.makeText(this, R.string.error_0files, Toast.LENGTH_LONG).show();
} else {
while (c.moveToNext() && currentCacheSize > targetCacheSize) {
long id = c.getLong(0);
long size = c.getLong(1);
String name = c.getString(2);
String artist = c.getString(3);
String title = c.getString(4);
Log.i(TAG, "delete file: " +
id + "/" + name + "/ " + artist + " - " + title + " // size: " + (size
/ 1024
/ 1024) + "MB");
deleteCacheFile(name);
currentCacheSize -= size;
}
Log.i(TAG, "final cache size: ", currentCacheSize / 1024 / 1024, "MB");
}
c.close();
db.close();
}
private void deleteCacheFile(final String name) {
String path = mMusicDir + name;
Log.d(TAG, "deleteCacheFile(", path, ")");
if (mIsInternalMusicDir || !new File(path).delete()) {
try {
runAsRoot("rm " + path).close();
} catch (IOException e) {
Log.e(TAG, "could not remove file: ", path, e);
}
}
}
}
|
apache-2.0
|
rocketjob/rocketjob
|
lib/rocket_job/plugins/job/model.rb
|
11597
|
require "active_support/concern"
module RocketJob
module Plugins
module Job
# Prevent more than one instance of this job class from running at a time
module Model
extend ActiveSupport::Concern
included do
# Fields that are end user editable.
# For example are editable in Rocket Job Web Interface.
class_attribute :user_editable_fields, instance_accessor: false
self.user_editable_fields = []
# Attributes to include when copying across the attributes to a new instance on restart.
class_attribute :rocket_job_restart_attributes
self.rocket_job_restart_attributes = []
#
# User definable attributes
#
# The following attributes are set when the job is created
# Description for this job instance
field :description, type: String, class_attribute: true, user_editable: true, copy_on_restart: true
# Priority of this job as it relates to other jobs [1..100]
# 1: Highest Priority
# 50: Default Priority
# 100: Lowest Priority
#
# Example:
# A job with a priority of 40 will execute before a job with priority 50
#
# In RocketJob Pro, if a SlicedJob is running and a higher priority job
# arrives, then the current job will complete the current slices and process
# the new higher priority job
field :priority, type: Integer, default: 50, class_attribute: true, user_editable: true, copy_on_restart: true
validates_inclusion_of :priority, in: 1..100
# When the job completes destroy it from both the database and the UI
field :destroy_on_complete, type: Mongoid::Boolean, default: true, class_attribute: true, copy_on_restart: true
# Run this job no earlier than this time
field :run_at, type: Time, user_editable: true
# If a job has not started by this time, destroy it
field :expires_at, type: Time, copy_on_restart: true
# Raise or lower the log level when calling the job
# Can be used to reduce log noise, especially during high volume calls
# For debugging a single job can be logged at a low level such as :trace
# Levels supported: :trace, :debug, :info, :warn, :error, :fatal
field :log_level, type: Mongoid::StringifiedSymbol, class_attribute: true, user_editable: true, copy_on_restart: true
validates_inclusion_of :log_level, in: SemanticLogger::LEVELS + [nil]
#
# Read-only attributes
#
# Current state, as set by the state machine. Do not modify this value directly.
field :state, type: Mongoid::StringifiedSymbol, default: :queued
# When the job was created
field :created_at, type: Time, default: -> { Time.now }
# When processing started on this job
field :started_at, type: Time
# When the job completed processing
field :completed_at, type: Time
# Number of times that this job has failed to process
field :failure_count, type: Integer, default: 0
# This name of the worker that this job is being processed by, or was processed by
field :worker_name, type: String
#
# Values that jobs can update during processing
#
# Allow a job to updates its estimated progress
# Any integer from 0 to 100
field :percent_complete, type: Integer, default: 0
# Store the last exception for this job
embeds_one :exception, class_name: "RocketJob::JobException"
index({state: 1, priority: 1, _id: 1}, background: true)
validates_presence_of :state, :failure_count, :created_at
end
module ClassMethods
# Returns [String] the singular name for this job class
#
# Example:
# job = DataStudyJob.new
# job.underscore_name
# # => "data_study"
def underscore_name
@underscore_name ||= name.sub(/Job$/, "").underscore
end
# Allow the collective name for this job class to be overridden
def underscore_name=(underscore_name)
@underscore_name = underscore_name
end
# Returns [String] the human readable name for this job class
#
# Example:
# job = DataStudyJob.new
# job.human_name
# # => "Data Study"
def human_name
@human_name ||= name.sub(/Job$/, "").titleize
end
# Allow the human readable job name for this job class to be overridden
def human_name=(human_name)
@human_name = human_name
end
# Returns [String] the collective name for this job class
#
# Example:
# job = DataStudyJob.new
# job.collective_name
# # => "data_studies"
def collective_name
@collective_name ||= name.sub(/Job$/, "").pluralize.underscore
end
# Allow the collective name for this job class to be overridden
def collective_name=(collective_name)
@collective_name = collective_name
end
# Scope for jobs scheduled to run in the future
def scheduled
queued.where(:run_at.gt => Time.now)
end
# Scope for queued jobs that can run now
# I.e. Queued jobs excluding scheduled jobs
def queued_now
queued.and(RocketJob::Job.where(run_at: nil).or(:run_at.lte => Time.now))
end
# Defines all the fields that are accessible on the Document
# For each field that is defined, a getter and setter will be
# added as an instance method to the Document.
#
# @example Define a field.
# field :score, :type => Integer, :default => 0
#
# @param [ Symbol ] name The name of the field.
# @param [ Hash ] options The options to pass to the field.
#
# @option options [ Class ] :type The type of the field.
# @option options [ String ] :label The label for the field.
# @option options [ Object, Proc ] :default The field's default
# @option options [ Boolean ] :class_attribute Keep the fields default in a class_attribute
# @option options [ Boolean ] :user_editable Field can be edited by end users in RJMC
#
# @return [ Field ] The generated field
def field(name, options)
if (options.delete(:user_editable) == true) && !user_editable_fields.include?(name.to_sym)
self.user_editable_fields += [name.to_sym]
end
if options.delete(:class_attribute) == true
class_attribute(name, instance_accessor: false)
public_send("#{name}=", options[:default]) if options.key?(:default)
options[:default] = -> { self.class.public_send(name) }
end
if (options.delete(:copy_on_restart) == true) && !rocket_job_restart_attributes.include?(name.to_sym)
self.rocket_job_restart_attributes += [name.to_sym]
end
super(name, options)
end
# Builds this job instance from the supplied properties hash.
# Overridden by batch to support child objects.
def from_properties(properties)
new(properties)
end
end
# Returns [Float] the number of seconds the job has taken
# - Elapsed seconds to process the job from when a worker first started working on it
# until now if still running, or until it was completed
# - Seconds in the queue if queued
def seconds
if completed_at
completed_at - (started_at || created_at)
elsif started_at
Time.now - started_at
else
Time.now - created_at
end
end
# Returns a human readable duration the job has taken
def duration
RocketJob.seconds_as_duration(seconds)
end
# Returns [true|false] whether the job has expired
def expired?
expires_at && (expires_at < Time.now)
end
# Returns [true|false] whether the job is scheduled to run in the future
def scheduled?
queued? && run_at.present? && (run_at > Time.now)
end
# Return [true|false] whether this job is sleeping.
# I.e. No workers currently working on this job even if it is running.
def sleeping?
running? && worker_count.zero?
end
# Returns [Integer] the number of workers currently working on this job.
def worker_count
running? && worker_name.present? ? 1 : 0
end
# Returns [Array<String>] names of workers currently working this job.
def worker_names
running? && worker_name.present? ? [worker_name] : []
end
# Clear `run_at` so that this job will run now.
def run_now!
update_attributes(run_at: nil) if run_at
end
# Returns [Time] at which this job was intended to run at.
#
# Takes into account any delays that could occur.
# Recommended to use this Time instead of Time.now in the `#perform` since the job could run outside its
# intended window. Especially if a failed job is only retried quite sometime later.
def scheduled_at
run_at || created_at
end
# Returns [Hash] status of this job
def as_json
attrs = serializable_hash(methods: %i[seconds duration])
attrs.delete("failure_count") unless failure_count.positive?
if queued?
attrs.delete("started_at")
attrs.delete("completed_at")
attrs.delete("result")
attrs
elsif running?
attrs.delete("completed_at")
attrs.delete("result")
attrs
elsif completed?
attrs.delete("percent_complete")
attrs
elsif paused?
attrs.delete("completed_at")
attrs.delete("result")
# Ensure 'paused_at' appears first in the hash
{"paused_at" => completed_at}.merge(attrs)
elsif aborted?
attrs.delete("completed_at")
attrs.delete("result")
{"aborted_at" => completed_at}.merge(attrs)
elsif failed?
attrs.delete("completed_at")
attrs.delete("result")
{"failed_at" => completed_at}.merge(attrs)
else
attrs
end
end
# Returns [Hash] the status of this job
def status(time_zone = "Eastern Time (US & Canada)")
h = as_json
h.delete("seconds")
h.dup.each_pair do |k, v|
case v
when Time
h[k] = v.in_time_zone(time_zone).to_s
when BSON::ObjectId
h[k] = v.to_s
end
end
h
end
# Returns [true|false] whether the worker runs on a particular server.
def worker_on_server?(server_name)
return false unless worker_name.present? && server_name.present?
worker_name.start_with?(server_name)
end
end
end
end
end
|
apache-2.0
|
ApplETS/AMCMobile
|
www/lib/ng-cordova-oauth/src/oauth.js
|
4613
|
(function() {
'use strict';
angular.module("oauth.providers", [
"oauth.utils",
"oauth.500px",
"oauth.azuread",
"oauth.adfs",
'oauth.dropbox',
'oauth.digitalOcean',
'oauth.google',
'oauth.github',
'oauth.facebook',
'oauth.linkedin',
'oauth.instagram',
'oauth.box',
'oauth.reddit',
'oauth.slack',
'oauth.twitter',
'oauth.meetup',
'oauth.salesforce',
'oauth.strava',
'oauth.withings',
'oauth.foursquare',
'oauth.magento',
'oauth.vkontakte',
'oauth.odnoklassniki',
'oauth.imgur',
'oauth.spotify',
'oauth.uber',
'oauth.windowslive',
'oauth.yammer',
'oauth.venmo',
'oauth.stripe',
'oauth.rally',
'oauth.familySearch',
'oauth.envato',
'oauth.weibo',
'oauth.jawbone',
'oauth.untappd',
'oauth.dribble',
'oauth.pocket',
'oauth.mercadolibre',
'oauth.xing',
'oauth.netatmo',
'oauth.trakttv'])
.factory("$cordovaOauth", cordovaOauth);
function cordovaOauth(
$q, $http, $cordovaOauthUtility, $ngCordovaAzureAD, $ngCordovaAdfs, $ngCordovaDropbox, $ngCordovaDigitalOcean,
$ngCordovaGoogle, $ngCordovaGithub, $ngCordovaFacebook, $ngCordovaLinkedin, $ngCordovaInstagram, $ngCordovaBox, $ngCordovaReddit, $ngCordovaSlack,
$ngCordovaTwitter, $ngCordovaMeetup, $ngCordovaSalesforce, $ngCordovaStrava, $ngCordovaWithings, $ngCordovaFoursquare, $ngCordovaMagento,
$ngCordovaVkontakte, $ngCordovaOdnoklassniki, $ngCordovaImgur, $ngCordovaSpotify, $ngCordovaUber, $ngCordovaWindowslive, $ngCordovaYammer,
$ngCordovaVenmo, $ngCordovaStripe, $ngCordovaRally, $ngCordovaFamilySearch, $ngCordovaEnvato, $ngCordovaWeibo, $ngCordovaJawbone, $ngCordovaUntappd,
$ngCordovaDribble, $ngCordovaPocket, $ngCordovaMercadolibre, $ngCordovaXing, $ngCordovaNetatmo, $ngCordovaTraktTv) {
return {
azureAD: $ngCordovaAzureAD.signin,
adfs: $ngCordovaAdfs.signin,
dropbox: $ngCordovaDropbox.signin,
digitalOcean: $ngCordovaDigitalOcean.signin,
google: $ngCordovaGoogle.signin,
github: $ngCordovaGithub.signin,
facebook: $ngCordovaFacebook.signin,
linkedin: $ngCordovaLinkedin.signin,
instagram: $ngCordovaInstagram.signin,
box: $ngCordovaBox.signin,
reddit: $ngCordovaReddit.signin,
slack: $ngCordovaSlack.signin,
twitter: $ngCordovaTwitter.signin,
meetup: $ngCordovaMeetup.signin,
salesforce: $ngCordovaSalesforce.signin,
strava: $ngCordovaStrava.signin,
withings: $ngCordovaWithings.signin,
foursquare: $ngCordovaFoursquare.signin,
magento: $ngCordovaMagento.signin,
vkontakte: $ngCordovaVkontakte.signin,
odnoklassniki: $ngCordovaOdnoklassniki.signin,
imgur: $ngCordovaImgur.signin,
spotify: $ngCordovaSpotify.signin,
uber: $ngCordovaUber.signin,
windowsLive: $ngCordovaWindowslive.signin,
yammer: $ngCordovaYammer.signin,
venmo: $ngCordovaVenmo.signin,
stripe: $ngCordovaStripe.signin,
rally: $ngCordovaRally.signin,
familySearch: $ngCordovaFamilySearch.signin,
envato: $ngCordovaEnvato.signin,
weibo: $ngCordovaWeibo.signin,
jawbone: $ngCordovaJawbone.signin,
untappd: $ngCordovaUntappd.signin,
dribble: $ngCordovaDribble.signin,
pocket: $ngCordovaPocket.signin,
mercadolibre: $ngCordovaMercadolibre.signin,
xing: $ngCordovaXing.signin,
netatmo: $ngCordovaNetatmo.signin,
trakttv: $ngCordovaTraktTv.signin
};
}
cordovaOauth.$inject = [
"$q", '$http', "$cordovaOauthUtility",
"$ngCordovaAzureAD",
"$ngCordovaAdfs",
'$ngCordovaDropbox',
'$ngCordovaDigitalOcean',
'$ngCordovaGoogle',
'$ngCordovaGithub',
'$ngCordovaFacebook',
'$ngCordovaLinkedin',
'$ngCordovaInstagram',
'$ngCordovaBox',
'$ngCordovaReddit',
'$ngCordovaSlack',
'$ngCordovaTwitter',
'$ngCordovaMeetup',
'$ngCordovaSalesforce',
'$ngCordovaStrava',
'$ngCordovaWithings',
'$ngCordovaFoursquare',
'$ngCordovaMagento',
'$ngCordovaVkontakte',
'$ngCordovaOdnoklassniki',
'$ngCordovaImgur',
'$ngCordovaSpotify',
'$ngCordovaUber',
'$ngCordovaWindowslive',
'$ngCordovaYammer',
'$ngCordovaVenmo',
'$ngCordovaStripe',
'$ngCordovaRally',
'$ngCordovaFamilySearch',
'$ngCordovaEnvato',
'$ngCordovaWeibo',
'$ngCordovaJawbone',
'$ngCordovaUntappd',
'$ngCordovaDribble',
'$ngCordovaPocket',
'$ngCordovaMercadolibre',
'$ngCordovaXing',
'$ngCordovaNetatmo',
'$ngCordovaTraktTv'
];
})();
|
apache-2.0
|
P7h/ScalaPlayground
|
Atomic Scala/atomic-scala-examples/examples/32_Brevity/Alias.scala
|
171
|
// Alias.scala
import com.atomicscala.AtomicTest._
case class LongUnrulyNameFromSomeone()
type Short = LongUnrulyNameFromSomeone
new Short is LongUnrulyNameFromSomeone()
|
apache-2.0
|
gtison/kf
|
src/main/java/com/ukefu/webim/web/handler/admin/channel/SNSAccountIMController.java
|
6856
|
package com.ukefu.webim.web.handler.admin.channel;
import java.security.NoSuchAlgorithmException;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.ukefu.core.UKDataContext;
import com.ukefu.util.Base62;
import com.ukefu.util.Menu;
import com.ukefu.util.UKTools;
import com.ukefu.webim.service.repository.ConsultInviteRepository;
import com.ukefu.webim.service.repository.SNSAccountRepository;
import com.ukefu.webim.service.repository.SecretRepository;
import com.ukefu.webim.web.handler.Handler;
import com.ukefu.webim.web.model.CousultInvite;
import com.ukefu.webim.web.model.SNSAccount;
import com.ukefu.webim.web.model.Secret;
/**
*
*
*/
@Controller
@RequestMapping("/admin/im")
public class SNSAccountIMController extends Handler{
@Autowired
private SNSAccountRepository snsAccountRes;
@Autowired
private ConsultInviteRepository invite;
@Autowired
private SecretRepository secRes ;
@RequestMapping("/index")
@Menu(type = "admin" , subtype = "im" , access = false ,admin = true)
public ModelAndView index(ModelMap map , HttpServletRequest request , @Valid String execute) {
map.addAttribute("snsAccountList", snsAccountRes.findBySnstype( UKDataContext.ChannelTypeEnum.WEBIM.toString(), new PageRequest(super.getP(request), super.getPs(request)))) ;
List<Secret> secretConfig = secRes.findByOrgi(super.getOrgi(request)) ;
if(secretConfig!=null && secretConfig.size() > 0){
map.addAttribute("secret", secretConfig.get(0)) ;
}
if(!StringUtils.isBlank(execute) && execute.equals("false")){
map.addAttribute("execute", execute) ;
}
return request(super.createAdminTempletResponse("/admin/channel/im/index"));
}
@RequestMapping("/add")
@Menu(type = "admin" , subtype = "im" , access = false ,admin = true)
public ModelAndView add(ModelMap map , HttpServletRequest request) {
return request(super.createRequestPageTempletResponse("/admin/channel/im/add"));
}
@RequestMapping("/save")
@Menu(type = "admin" , subtype = "weixin")
public ModelAndView save(HttpServletRequest request ,@Valid SNSAccount snsAccount) throws NoSuchAlgorithmException {
if(!StringUtils.isBlank(snsAccount.getBaseURL())){
snsAccount.setSnsid(Base62.encode(snsAccount.getBaseURL()));
int count = snsAccountRes.countBySnsidAndOrgi(snsAccount.getSnsid() , super.getOrgi(request)) ;
if(count == 0){
snsAccount.setOrgi(super.getOrgi(request));
snsAccount.setSnstype(UKDataContext.ChannelTypeEnum.WEBIM.toString());
snsAccount.setCreatetime(new Date());
snsAccountRes.save(snsAccount) ;
/**
* ๅๆถๅๅปบCousultInvite ่ฎฐๅฝ
*/
CousultInvite coultInvite = invite.findBySnsaccountidAndOrgi(snsAccount.getSnsid(), super.getOrgi(request)) ;
if(coultInvite ==null){
coultInvite = new CousultInvite() ;
coultInvite.setSnsaccountid(snsAccount.getSnsid());
coultInvite.setCreate_time(new Date());
coultInvite.setOrgi(super.getOrgi(request));
coultInvite.setName(snsAccount.getName());
invite.save(coultInvite) ;
}
}
}
return request(super.createRequestPageTempletResponse("redirect:/admin/im/index.html"));
}
@RequestMapping("/delete")
@Menu(type = "weixin" , subtype = "delete")
public ModelAndView delete(ModelMap map , HttpServletRequest request , @Valid String id , @Valid String confirm) {
boolean execute = false ;
if(execute = UKTools.secConfirm(secRes, super.getOrgi(request), confirm)){
SNSAccount snsAccount = snsAccountRes.findByIdAndOrgi(id , super.getOrgi(request)) ;
if(snsAccountRes!=null){
snsAccountRes.delete(snsAccount);
CousultInvite coultInvite = invite.findBySnsaccountidAndOrgi(snsAccount.getSnsid(), super.getOrgi(request)) ;
if(coultInvite != null){
invite.delete(coultInvite);
}
}
}
return request(super.createRequestPageTempletResponse("redirect:/admin/im/index.html?execute="+execute));
}
@RequestMapping("/edit")
@Menu(type = "admin" , subtype = "im" , access = false ,admin = true)
public ModelAndView edit(ModelMap map , HttpServletRequest request , @Valid String id) {
map.addAttribute("snsAccount", snsAccountRes.findByIdAndOrgi(id , super.getOrgi(request))) ;
return request(super.createRequestPageTempletResponse("/admin/channel/im/edit"));
}
@RequestMapping("/update")
@Menu(type = "admin" , subtype = "im" , access = false ,admin = true)
public ModelAndView update(HttpServletRequest request ,@Valid SNSAccount snsAccount) throws NoSuchAlgorithmException {
SNSAccount oldSnsAccount = snsAccountRes.findByIdAndOrgi(snsAccount.getId() , super.getOrgi(request));
if(oldSnsAccount!=null){
oldSnsAccount.setName(snsAccount.getName());
oldSnsAccount.setBaseURL(snsAccount.getBaseURL());
oldSnsAccount.setUpdatetime(new Date());
String snsid = Base62.encode(snsAccount.getBaseURL()) ;
/**
* SNSIDๅฆๆๆๅๆด๏ผ้่ฆๅๆถๅๆด CoultInvite ่กจ็ ่ฎฐๅฝ
*/
if(!snsid.equals(oldSnsAccount.getSnsid())){
CousultInvite coultInvite = invite.findBySnsaccountidAndOrgi(oldSnsAccount.getSnsid(), super.getOrgi(request)) ;
if(coultInvite !=null){
coultInvite.setSnsaccountid(snsid);
invite.save(coultInvite) ;
}else{
/**
* ๅๆถๅๅปบCousultInvite ่ฎฐๅฝ
*/
coultInvite = invite.findBySnsaccountidAndOrgi(snsAccount.getSnsid(), super.getOrgi(request)) ;
if(coultInvite ==null){
coultInvite = new CousultInvite() ;
coultInvite.setSnsaccountid(snsAccount.getSnsid());
coultInvite.setCreate_time(new Date());
coultInvite.setOrgi(super.getOrgi(request));
coultInvite.setName(snsAccount.getName());
invite.save(coultInvite) ;
}
}
}
oldSnsAccount.setSnstype(UKDataContext.ChannelTypeEnum.WEBIM.toString());
snsAccountRes.save(oldSnsAccount) ;
}
return request(super.createRequestPageTempletResponse("redirect:/admin/im/index.html"));
}
}
|
apache-2.0
|
TuanAnh207/feed-wolf-va
|
tracnghiemdaihocvatly/gen/com/example/tracnghiemdaihocvatly/BuildConfig.java
|
175
|
/** Automatically generated file. DO NOT MODIFY */
package com.example.tracnghiemdaihocvatly;
public final class BuildConfig {
public final static boolean DEBUG = true;
}
|
apache-2.0
|
JetBrains/resharper-unity
|
resharper/resharper-unity/test/data/Unity/CSharp/Daemon/Stages/BurstCodeAnalysis/BugRider68095.cs
|
2538
|
using Unity.Burst;
using Unity.Jobs;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using Unity.Jobs.LowLevel.Unsafe;
using Unity.UnityEngine;
using Unity.Entities;
namespace Unity
{
namespace Entities
{
public interface IComponentData
{
}
}
namespace Jobs
{
[JobProducerType]
public interface IJob
{
void Execute();
}
namespace LowLevel
{
namespace Unsafe
{
public class JobProducerTypeAttribute : Attribute
{
}
}
}
}
namespace Burst
{
public class BurstCompileAttribute : Attribute
{
}
public class BurstDiscardAttribute : Attribute
{
}
}
namespace UnityEngine
{
public class Debug
{
public static void Log(object message)
{
}
}
}
namespace Collections
{
public struct NativeArray<T> : IDisposable, IEnumerable<T>, IEnumerable, IEquatable<NativeArray<T>>
where T : struct
{
public void Dispose()
{
throw new NotImplementedException();
}
public IEnumerator<T> GetEnumerator()
{
throw new NotImplementedException();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
public bool Equals(NativeArray<T> other)
{
throw new NotImplementedException();
}
}
}
}
public struct ComponentDataType : IComponentData
{
}
public interface IFoo
{
public abstract ComponentDataFromEntity<ComponentDataType> GetAbstractProperty { get; set; }
}
public struct FooImpl : IFoo
{
public ComponentDataFromEntity<ComponentDataType> GetAbstractProperty { get; set; }
}
[BurstCompile(CompileSynchronously = true)]
internal struct OneMoreJob : IJob
{
public void Execute()
{
var foo = new FooImpl();
var abstr = foo.GetAbstractProperty;
Foo(foo);
}
[BurstCompile()]
public static void Foo<T>(in T bar) where T : struct, IFoo
{
ComponentDataFromEntity<ComponentDataType> res = bar.GetAbstractProperty;
}
}
|
apache-2.0
|
stuckless/sagetv-phoenix-core
|
src/main/java/sagex/phoenix/metadata/search/HasFindByIMDBID.java
|
177
|
package sagex.phoenix.metadata.search;
import sagex.phoenix.metadata.IMetadata;
public interface HasFindByIMDBID {
public IMetadata getMetadataForIMDBId(String imdbid);
}
|
apache-2.0
|
nextreports/nextreports-server
|
src/ro/nextreports/server/report/jasper/JasperEngine.java
|
18724
|
/*
* 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 ro.nextreports.server.report.jasper;
import java.io.File;
import java.io.Serializable;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.LinkedHashMap;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.JRException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.jcrom.JcrFile;
import ro.nextreports.server.domain.JasperContent;
import ro.nextreports.server.domain.Report;
import ro.nextreports.server.domain.Settings;
import ro.nextreports.server.exception.FormatNotSupportedException;
import ro.nextreports.server.exception.ReportEngineException;
import ro.nextreports.server.report.ExportContext;
import ro.nextreports.server.report.ExternalParameter;
import ro.nextreports.server.report.ReportEngineAdapter;
import ro.nextreports.server.report.jasper.util.JasperUtil;
import ro.nextreports.server.report.util.ReportUtil;
import ro.nextreports.server.service.StorageService;
import ro.nextreports.server.util.ConnectionUtil;
import ro.nextreports.server.util.ReplacedString;
import ro.nextreports.server.util.StringUtil;
import ro.nextreports.engine.queryexec.IdName;
/**
* Created by IntelliJ IDEA.
* User: mihai.panaitescu
* Date: Feb 14, 2008
* Time: 11:05:51 AM
*/
public class JasperEngine extends ReportEngineAdapter {
private static final Logger LOG = LoggerFactory.getLogger(JasperEngine.class);
private StorageService storageService;
@Override
public boolean supportPdfOutput() {
return true;
}
@Override
public boolean supportExcelOutput() {
return true;
}
@Override
public boolean supportHtmlOutput() {
return true;
}
@Override
public boolean supportCsvOutput() {
return true;
}
@Override
public boolean supportTxtOutput() {
return true;
}
@Override
public boolean supportRtfOutput() {
return true;
}
@Override
public boolean supportXmlOutput() {
return true;
}
private JasperReport getJasperReport(ExportContext exportContext) throws Exception {
JasperContent reportContent = (JasperContent) exportContext.getReportContent();
String name = reportContent.getMaster().getName();
Settings settings = storageService.getSettings();
name = settings.getJasper().getHome() + ReportUtil.FILE_SEPARATOR +
JasperUtil.getUnique(name, exportContext.getId()) +
"." + JasperUtil.JASPER_COMPILED_EXT;
File jasperFile = new File(name);
if (!jasperFile.exists()) {
JasperReportsUtil.compileReport(storageService, reportContent, exportContext.getId());
}
if (LOG.isDebugEnabled()) {
LOG.debug("jasperFile = " + jasperFile);
}
JasperReportsUtil.copyImages(settings.getJasper().getHome(), reportContent.getImageFiles());
return JasperReportsUtil.getJasper(name);
}
@Override
public byte[] exportReportToPdf(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
if (LOG.isDebugEnabled()) {
LOG.debug("parameterValues = " + exportContext.getReportParameterValues());
}
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
return JasperReportsUtil.getPdf(jp);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
@Override
public byte[] exportReportToRtf(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
return JasperReportsUtil.getRtf(jp);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
@Override
public byte[] exportReportToExcel(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
Map<String, Boolean> xlsParameters = new HashMap<String, Boolean>();
Settings settings = storageService.getSettings();
System.out.println(settings.getJasper());
xlsParameters.put(JasperUtil.IS_DETECT_CELL_TYPE, settings.getJasper().isDetectCellType());
xlsParameters.put(JasperUtil.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, settings.getJasper().isRemoveEmptySpaceBetweenRows());
xlsParameters.put(JasperUtil.IS_WHITE_PAGE_BACKGROUND, settings.getJasper().isWhitePageBackground());
return JasperReportsUtil.getExcel(jp, xlsParameters);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
@Override
public byte[] exportReportToHtml(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
return JasperReportsUtil.getHTML(storageService, jp);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
@Override
public byte[] exportReportToCsv(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
return JasperReportsUtil.getCSV(jp);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
@Override
public byte[] exportReportToTxt(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
return JasperReportsUtil.getTxt(jp);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
@Override
public byte[] exportReportToXml(ExportContext exportContext)
throws FormatNotSupportedException, ReportEngineException, InterruptedException {
Connection conn = null;
try {
conn = ConnectionUtil.createConnection(storageService, exportContext.getReportDataSource());
JasperReport jr = getJasperReport(exportContext);
JasperPrint jp = JasperReportsUtil.fillReport(storageService, exportContext.getKey(), jr, exportContext.getReportParameterValues(), conn);
return JasperReportsUtil.getXml(jp);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new ReportEngineException(e);
} finally {
ConnectionUtil.closeConnection(conn);
}
}
public StorageService getStorageService() {
return storageService;
}
public void setStorageService(StorageService storageService) {
this.storageService = storageService;
}
public Serializable getParameter(ExternalParameter parameter) {
JasperParameter jp = new JasperParameter();
jp.setName(parameter.getName());
jp.setDescription(parameter.getDescription());
jp.setValueClassName(parameter.getValueClassName());
jp.setValues(parameter.getValues());
jp.setMandatory(true);
if (ExternalParameter.COMBO_TYPE.equals(parameter.getType())) {
jp.setType(JasperParameterSource.COMBO);
} else {
jp.setType(JasperParameterSource.LIST);
}
return jp;
}
public Map<String, Serializable> getReportUserParameters(Report report,
List<ExternalParameter> externalParameters) throws Exception {
Connection con = null;
try {
JasperReport jr = getJasperReport(report);
Map<String, Serializable> map = JasperReportsUtil.getJasperReportUserParameters(jr);
if (report.getDataSource() == null) {
throw new Exception("Report has no data source!");
}
con = ConnectionUtil.createConnection(storageService, report.getDataSource());
for (String key : map.keySet()) {
JasperParameter jp = (JasperParameter) map.get(key);
//System.out.println(">>> name=" +jp.getName() + " jp.dep=" + jp.isDependent());
JasperParameterSource sp = getParameterSources(report, jp);
//System.out.println(">> " + sp);
//System.out.println(" jp type = " + jp.getValueClassName());
ArrayList<IdName> values = new ArrayList<IdName>();
if (sp != null) {
if (!sp.getType().equals(JasperParameterSource.SINGLE)) {
String select = sp.getSelect();
jp.setSelect(select);
jp.setMandatory(sp.isMandatory());
// see if values can be loaded
if (!jp.isDependent()) {
//System.out.println("--- select=" + select);
// external parameters may be used in select source for Jasper parameters
// for now test only for those with a single rawValue (and replace the parameter name
// with parameter rawValue)
for (ExternalParameter ep : externalParameters) {
List<IdName> list = ep.getValues();
if (list.size() == 1) {
ReplacedString rs = StringUtil.replaceString(select, ep.getName(),
"'" + list.get(0).getName() + "'");
if (rs.isReplaced()) {
select = rs.getS();
}
}
}
if ((select != null) && !select.trim().equals("")) {
values.addAll(ConnectionUtil.getValues(select, con));
}
jp.setValues(values);
} else {
jp.setValues(new ArrayList<IdName>());
}
jp.setType(sp.getType());
} else {
jp.setType(JasperParameterSource.SINGLE);
jp.setMandatory(sp.isMandatory());
}
} else {
jp.setType(JasperParameterSource.SINGLE);
jp.setMandatory(true);
}
}
// overwite with external parameters
for (ExternalParameter ep : externalParameters) {
for (String name : map.keySet()) {
if (name.equals(ep.getName())) {
map.put(name, getParameter(ep));
break;
}
}
}
return map;
} finally {
ConnectionUtil.closeConnection(con);
}
}
private JasperReport getJasperReport(Report report) throws Exception {
JasperContent reportContent = (JasperContent) report.getContent();
String name = reportContent.getMaster().getName();
Settings settings = storageService.getSettings();
name = settings.getJasper().getHome() + File.separator + JasperUtil.getUnique(name, report.getId()) +
"." + JasperUtil.JASPER_COMPILED_EXT;
//System.out.println("name="+name);
File f = new File(name);
JasperReport jr;
if (!f.exists()) {
// byte[] xml = reportContent.getMaster().getXml();
JasperReportsUtil.compileReport(storageService, reportContent, report.getId());
}
jr = JasperReportsUtil.getJasper(name);
JasperReportsUtil.copyImages(settings.getJasper().getHome(), reportContent.getImageFiles());
return jr;
}
// useful for edit jasper parameters : do not need here the values as in getReportUserParameters
public Map<String, Serializable> getReportUserParametersForEdit(Report report) throws Exception {
Map<String, Serializable> result = new LinkedHashMap<String, Serializable>();
JasperReport jr = getJasperReport(report);
Map<String, Serializable> map = JasperReportsUtil.getJasperReportUserParameters(jr);
for (String key : map.keySet()) {
JasperParameter jp = (JasperParameter) map.get(key);
JasperParameterSource sp = getParameterSources(report, jp);
// this parameter is not defined inside the file
if (sp == null) {
sp = new JasperParameterSource(jp.getName());
sp.setValueClassName(JasperReportsUtil.getValueClassName(storageService, report.getDataSource(), jp));
}
result.put(sp.getName(), sp);
}
return result;
}
private JasperParameterSource getParameterSources(Report report, JasperParameter parameter) throws Exception {
JasperContent reportContent = (JasperContent) report.getContent();
List<JasperParameterSource> list = JasperUtil.getParameterSources(reportContent);
if (list == null) {
return null;
}
for (JasperParameterSource parameterSource : list) {
if (parameterSource.getName().equals(parameter.getName())) {
return parameterSource;
}
}
return null;
}
public void clearReportFiles(Report report) throws Exception {
JasperReportsUtil.deleteJasperCompiledFiles(storageService, report);
}
public void stopExport(String key) {
JasperAsynchronousFillHandle currentRunner = JasperRunnerFactory.getRunner(key);
System.out.println(">>> stop key==" + key);
System.out.println(">>> runner=" + currentRunner);
if (currentRunner != null) {
System.out.println(">>> JasperReporterEngine : stop");
try {
currentRunner.cancellFill();
} catch (JRException e) {
e.printStackTrace();
}
} else {
// stop before the runner is created, but after the "running query" process
// was started
JasperRunnerFactory.addRunner(key, null);
}
}
public List<String> getImages(Report report) {
List<String> images = new ArrayList<String>();
JasperContent reportContent = (JasperContent) report.getContent();
for (JcrFile file : reportContent.getImageFiles()) {
images.add(file.getName());
}
return images;
}
}
|
apache-2.0
|
KentShikama/vector-web
|
src/components/structures/RightPanel.js
|
6322
|
/*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
'use strict';
var React = require('react');
var sdk = require('matrix-react-sdk')
var dis = require('matrix-react-sdk/lib/dispatcher');
var MatrixClientPeg = require("matrix-react-sdk/lib/MatrixClientPeg");
var rate_limited_func = require('matrix-react-sdk/lib/ratelimitedfunc');
module.exports = React.createClass({
displayName: 'RightPanel',
Phase : {
MemberList: 'MemberList',
FileList: 'FileList',
MemberInfo: 'MemberInfo',
},
componentWillMount: function() {
this.dispatcherRef = dis.register(this.onAction);
var cli = MatrixClientPeg.get();
cli.on("RoomState.members", this.onRoomStateMember);
},
componentWillUnmount: function() {
dis.unregister(this.dispatcherRef);
if (MatrixClientPeg.get()) {
MatrixClientPeg.get().removeListener("RoomState.members", this.onRoomStateMember);
}
},
getInitialState: function() {
return {
phase : this.Phase.MemberList
}
},
onMemberListButtonClick: function() {
if (this.props.collapsed) {
this.setState({ phase: this.Phase.MemberList });
dis.dispatch({
action: 'show_right_panel',
});
}
else {
dis.dispatch({
action: 'hide_right_panel',
});
}
},
onRoomStateMember: function(ev, state, member) {
// redraw the badge on the membership list
if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) {
this._delayedUpdate();
}
else if (this.state.phase === this.Phase.MemberInfo && member.roomId === this.props.roomId &&
member.userId === this.state.member.userId) {
// refresh the member info (e.g. new power level)
this._delayedUpdate();
}
},
_delayedUpdate: new rate_limited_func(function() {
this.forceUpdate();
}, 500),
onAction: function(payload) {
if (payload.action === "view_user") {
dis.dispatch({
action: 'show_right_panel',
});
if (payload.member) {
this.setState({
phase: this.Phase.MemberInfo,
member: payload.member,
});
}
else {
this.setState({
phase: this.Phase.MemberList
});
}
}
if (payload.action === "view_room") {
if (this.state.phase === this.Phase.MemberInfo) {
this.setState({
phase: this.Phase.MemberList
});
}
}
},
render: function() {
var MemberList = sdk.getComponent('rooms.MemberList');
var TintableSvg = sdk.getComponent("elements.TintableSvg");
var buttonGroup;
var panel;
var filesHighlight;
var membersHighlight;
if (!this.props.collapsed) {
if (this.state.phase == this.Phase.MemberList || this.state.phase === this.Phase.MemberInfo) {
membersHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>;
}
else if (this.state.phase == this.Phase.FileList) {
filesHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>;
}
}
var membersBadge;
if ((this.state.phase == this.Phase.MemberList || this.state.phase === this.Phase.MemberInfo) && this.props.roomId) {
var cli = MatrixClientPeg.get();
var room = cli.getRoom(this.props.roomId);
if (room) {
membersBadge = <div className="mx_RightPanel_headerButton_badge">{ room.getJoinedMembers().length }</div>;
}
}
if (this.props.roomId) {
buttonGroup =
<div className="mx_RightPanel_headerButtonGroup">
<div className="mx_RightPanel_headerButton" title="Members" onClick={ this.onMemberListButtonClick }>
{ membersBadge }
<TintableSvg src="img/icons-people.svg" width="25" height="25"/>
{ membersHighlight }
</div>
<div className="mx_RightPanel_headerButton mx_RightPanel_filebutton" title="Files">
<TintableSvg src="img/files.svg" width="17" height="22"/>
{ filesHighlight }
</div>
</div>;
if (!this.props.collapsed) {
if(this.state.phase == this.Phase.MemberList) {
panel = <MemberList roomId={this.props.roomId} key={this.props.roomId} />
}
else if(this.state.phase == this.Phase.MemberInfo) {
var MemberInfo = sdk.getComponent('rooms.MemberInfo');
panel = <MemberInfo roomId={this.props.roomId} member={this.state.member} key={this.props.roomId} />
}
}
}
if (!panel) {
panel = <div className="mx_RightPanel_blank"></div>;
}
var classes = "mx_RightPanel mx_fadable";
if (this.props.collapsed) {
classes += " collapsed";
}
return (
<aside className={classes} style={{ opacity: this.props.opacity }}>
<div className="mx_RightPanel_header">
{ buttonGroup }
</div>
{ panel }
<div className="mx_RightPanel_footer">
</div>
</aside>
);
}
});
|
apache-2.0
|
Sheila29/ejercicios-ud4-estructuras
|
ejemplosEstructurasDatos/src/com/company/Main.java
|
1692
|
package com.company;
import java.util.*;
public class Main {
public static void main(String[] args) {
List lista1 = new LinkedList();
lista1.add("elemento1");
lista1.add("elemento2");
lista1.add("elemento3");
mostrar_elementos(lista1);
List lista2 = new ArrayList();
lista2.add("elemento1");
lista2.add("elemento2");
lista2.add("elemento3");
mostrar_elementos(lista2);
Set conjunto1 = new HashSet();
conjunto1.add("elemento1");
conjunto1.add("elemento2");
conjunto1.add("elemento3");
mostrar_elementos(conjunto1);
Set conjunto2 = new TreeSet();
conjunto2.add("elemento1");
conjunto2.add("elemento2");
conjunto2.add("elemento3");
mostrar_elementos(conjunto2);
Map mapa1 = new HashMap();
mapa1.put("clave1", "elemento1");
mapa1.put("clave2", "elemento2");
mapa1.put("clave3", "elemento3");
mostrar_elementos(mapa1.keySet());
mostrar_elementos(mapa1.values());
Map mapa2 = new TreeMap();
mapa2.put("clave1", "elemento1");
mapa2.put("clave2", "elemento2");
mapa2.put("clave3", "elemento3");
mostrar_elementos(mapa2.keySet());
mostrar_elementos(mapa2.values());
}
static void mostrar_elementos(Collection coleccion) {
Iterator iterador = coleccion.iterator();
while (iterador.hasNext()) {
String elemento = (String) iterador.next();
System.out.print(elemento + " ");
}
System.out.println();
}
}
|
apache-2.0
|
helloShen/thinkinginjava
|
chapter20/Exercise1.java
|
4431
|
/**
* ๆณจ่งฃๅค็ๅจ
* ๅฉ็จๆณจ่งฃ๏ผไปjava็ฑปไธญ็ดๆฅ็ๆSQL่ฏญๅฅ๏ผๅๅปบTableใ
*/
package com.ciaoshen.thinkinjava.chapter20;
import java.util.*;
import java.lang.reflect.*;
import java.lang.annotation.*;
import com.ciaoshen.thinkinjava.chapter20.db.*;
public class Exercise1 {
public static void main(String[] args) throws Exception {
if(args.length < 1) {
System.out.println("arguments: annotated classes");
System.exit(0);
}
for(String className : args) {
Class<?> cl = Class.forName(className);
/**
* Table Name
*/
DBTable dbTable = cl.getAnnotation(DBTable.class);
if(dbTable == null) {
System.out.println("No DBTable annotations in class " + className);
continue;
}
String tableName = dbTable.name();
// If the name is empty, use the Class name:
if(tableName.length() < 1){
tableName = cl.getName().toUpperCase();
}
/**
* SQL
*/
List<String> columnDefs = new ArrayList<String>();
for(Field field : cl.getDeclaredFields()) {
String columnName = null;
Annotation[] anns = field.getDeclaredAnnotations();
if(anns.length < 1){
continue; // Not a db table column
}
if(anns[0] instanceof SQLInteger) {
SQLInteger sInt = (SQLInteger) anns[0];
// Use field name if name not specified
if(sInt.name().length() < 1){
columnName = field.getName().toUpperCase();
}else{
columnName = sInt.name();
}
columnDefs.add(columnName + " INT" + getConstraints(sInt.constraints()));
}
if(anns[0] instanceof SQLString) {
SQLString sString = (SQLString) anns[0];
// Use field name if name not specified.
if(sString.name().length() < 1){
columnName = field.getName().toUpperCase();
}else{
columnName = sString.name();
}
columnDefs.add(columnName + " VARCHAR(" + sString.value() + ")" + getConstraints(sString.constraints()));
}
if(anns[0] instanceof SQLDecimal) {
SQLDecimal sd = (SQLDecimal) anns[0];
// Use field name if name not specified.
if(sd.name().length() < 1){
columnName = field.getName().toUpperCase();
}else{
columnName = sd.name();
}
columnDefs.add(columnName + " DECIMAL(" + sd.value() + ")" + getConstraints(sd.constraints()));
}
if(anns[0] instanceof SQLDate) {
SQLDate sd = (SQLDate) anns[0];
// Use field name if name not specified.
if(sd.name().length() < 1){
columnName = field.getName().toUpperCase();
}else{
columnName = sd.name();
}
columnDefs.add(columnName + " DATE(" + sd.value() + ")" + getConstraints(sd.constraints()));
}
StringBuilder createCommand = new StringBuilder("CREATE TABLE " + tableName + "(");
for(String columnDef : columnDefs){
createCommand.append("\n " + columnDef + ",");
}
// Remove trailing comma
String tableCreate = createCommand.substring(0, createCommand.length() - 1) + ");";
System.out.println("Table Creation SQL for " + className + " is :\n" + tableCreate);
}
}
}
private static String getConstraints(Constraints con) {
String constraints = "";
if(!con.allowNull()){
constraints += " NOT NULL";
}
if(con.primaryKey()){
constraints += " PRIMARY KEY";
}
if(con.unique()){
constraints += " UNIQUE";
}
return constraints;
}
}
|
apache-2.0
|
coxthepilot/vitasa
|
vitasa_apps/vitavol/C_CVHelper.cs
|
11275
|
๏ปฟusing Foundation;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Linq;
using UIKit;
using System.Drawing;
using CoreGraphics;
using zsquared;
namespace vitavol
{
public class C_CVHelper : UICollectionViewDelegateFlowLayout
{
public event EventHandler<C_DateTouchedEventArgs> DateTouched;
public event EventHandler<C_DayOfWeekTouchedEventArgs> DayOfWeekTouched;
static NSString gridCellId;
CGRect ViewSize;
C_DateState[] DateState;
C_DayState[] DayState;
int FirstDayInMonthOffset;
C_CVSource cvsource;
readonly bool AllowPastDates;
UIColor BackgroundColor;
public C_CVHelper(UIColor bgcolor, UICollectionView collectionView, C_DateState[] dateState, C_DayState[] dayState, bool allowPastDates)
{
BackgroundColor = bgcolor;
DateState = dateState;
AllowPastDates = allowPastDates;
try
{
FirstDayInMonthOffset = (int)dateState[0].Date.DayOfWeek;
DayState = dayState;
gridCellId = new NSString("GridCell");
collectionView.RegisterClassForCell(typeof(C_GridCell), gridCellId);
cvsource = new C_CVSource(DateState, DayState, allowPastDates)
{
BackgroundColor = BackgroundColor
};
collectionView.DataSource = cvsource;
collectionView.Delegate = this;
collectionView.BackgroundColor = BackgroundColor;
ViewSize = collectionView.Bounds;
//#if DEBUG
// Console.WriteLine("[C_CVHelper] ViewSize.Width: " + ViewSize.Width.ToString());
//#endif
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
public void SetDayState(C_DateState[] dateState, C_DayState[] dayState)
{
try
{
DateState = dateState;
DayState = dayState;
FirstDayInMonthOffset = (int)dateState[0].Date.DayOfWeek;
cvsource.SetDayState(dateState, dayState);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
public override CGSize GetSizeForItem(UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath indexPath)
{
// 60 is 6 intervals of 10 each
// 20 is the gap to the edges of the screen to our control
// 10 is the margin at the edge of the control
// works (6 columns) on iPhones: 7, 7+, 6, 6+, 5s
float xs = (float)(ViewSize.Width - 60 - 20 - 15) / 7;
return new SizeF(xs, xs);
}
public override bool ShouldSelectItem(UICollectionView collectionView, NSIndexPath indexPath)
{
return true;
}
public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
{
try
{
int ix = indexPath.Row;
if ((ix >= 0) && (ix < 7))
{
C_DayOfWeekTouchedEventArgs dte = new C_DayOfWeekTouchedEventArgs(ix);
DayOfWeekTouched?.Invoke(this, dte);
}
else
{
int dayOfMonth = ix - 7 - FirstDayInMonthOffset;
if ((dayOfMonth >= 0) && (dayOfMonth < DateState.Length))
{
C_DateState dayState = DateState[dayOfMonth];
if (dayState.CanClick && ((dayState.Date >= C_YMD.Now) || AllowPastDates))
DateTouched?.Invoke(this, new C_DateTouchedEventArgs(dayState.Date));
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
public class C_CVSource : UICollectionViewDataSource
{
C_DateState[] DateState;
C_DayState[] DayState;
int FirstDayInMonthOffset;
readonly string[] AbrevDayOfWeek = { "Su", "M", "Tu", "W", "Th", "F", "Sa" };
public UIColor BackgroundColor;
readonly bool AllowPastDates;
public C_CVSource(C_DateState[] dateState, C_DayState[] dayState, bool allowPastDates)
{
DateState = dateState;
DayState = dayState;
FirstDayInMonthOffset = (int)dateState[0].Date.DayOfWeek;
AllowPastDates = allowPastDates;
}
public void SetDayState(C_DateState[] dateState, C_DayState[] dayState)
{
DateState = dateState;
DayState = dayState;
FirstDayInMonthOffset = (int)dateState[0].Date.DayOfWeek;
}
public override nint GetItemsCount(UICollectionView collectionView, nint section)
{
// 7 days in a week, 7 rows: 1 for the header and 6 for weeks
return 7 * 7;
}
public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
{
C_GridCell cell = null;
C_YMD now = C_YMD.Now;
try
{
cell = (C_GridCell)collectionView.DequeueReusableCell(gridCellId, indexPath);
int ix = indexPath.Row;
if (ix < 7)
{
// 0..6 get the name of the day of the week
cell.Label.Text = AbrevDayOfWeek[ix];
if (DayState == null)
{
cell.DayState = null;
cell.ContentView.BackgroundColor = BackgroundColor;
cell.ContentView.Layer.BorderColor = BackgroundColor.CGColor;
cell.Label.TextColor = UIColor.White;
}
else
{
cell.DayState = DayState[ix];
cell.ContentView.BackgroundColor = DayState[ix].NormalColor;
cell.ContentView.Layer.BorderColor = DayState[ix].NormalColor.CGColor;
cell.Label.TextColor = UIColor.White;
}
}
else
{
// 7..<end> get the day of the month number
int dayOfMonth = ix - 7 - FirstDayInMonthOffset;
bool validDay = (dayOfMonth >= 0) && (dayOfMonth < DateState.Length);
if (validDay)
{
C_DateState dateState = DateState[dayOfMonth];
cell.DateState = dateState;
cell.Label.Text = dateState.Date.Day.ToString();
UIColor normColor = dateState.NormalColor;
UIColor textColor = dateState.TextColor;
if (!AllowPastDates && (dateState.Date < now))
{
normColor = BackgroundColor;
textColor = UIColor.White;
}
cell.ContentView.BackgroundColor = normColor;
cell.ContentView.Layer.BorderColor = normColor.CGColor;
cell.Label.TextColor = textColor;
if ((dateState.ShowBox) && ((dateState.Date >= now) || AllowPastDates))
cell.ContentView.Layer.BorderColor = dateState.BoxColor.CGColor;
}
else
{
// non-date; make this blank and disappear
cell.DateState = null;
cell.Label.Text = "";
cell.ContentView.BackgroundColor = BackgroundColor;
cell.ContentView.Layer.BorderColor = BackgroundColor.CGColor;
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
return cell;
}
}
public class C_GridCell : UICollectionViewCell
{
public UILabel Label;
public C_DateState DateState;
public C_DayState DayState;
[Export("initWithFrame:")]
public C_GridCell(CGRect frame) : base(frame)
{
try
{
BackgroundView = new UIView { BackgroundColor = UIColor.LightGray };
//SelectedBackgroundView = new UIView { BackgroundColor = UIColor.Green };
ContentView.Layer.BorderColor = UIColor.Black.CGColor;
ContentView.Layer.BorderWidth = 3.0f;
ContentView.BackgroundColor = UIColor.LightGray;
if (ContentView.Bounds.Width < 28f)
{
Label = new UILabel()
{
Center = ContentView.Center,
TextColor = UIColor.White,
Frame = new CGRect(5, 5, 30, 20),
AdjustsFontSizeToFitWidth = true
};
Label.Font = UIFont.FromName(Label.Font.Name, 9);
}
else
{
Label = new UILabel()
{
Center = ContentView.Center,
TextColor = UIColor.White,
Frame = new CGRect(5, 5, 30, 20),
//AdjustsFontSizeToFitWidth = true
};
}
ContentView.AddSubview(Label);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
public class C_DateState
{
/// <summary>
/// The normal color for the item when populated.
/// </summary>
public UIColor NormalColor;
/// <summary>
/// The color when highlighted (not implemented).
/// </summary>
public UIColor HighlightedColor;
/// <summary>
/// The color for the text in the box.
/// </summary>
public UIColor TextColor;
/// <summary>
/// The color of the surrounding box.
/// </summary>
public UIColor BoxColor;
/// <summary>
/// true if the box should be shown
/// </summary>
public bool ShowBox;
/// <summary>
/// true if a user touch on this button is considered an activiation
/// </summary>
public bool CanClick;
public C_YMD Date;
public C_DateState(C_YMD date)
{
Date = date;
CanClick = true;
}
}
public class C_DateTouchedEventArgs : EventArgs
{
public C_YMD Date;
public C_DateTouchedEventArgs(C_YMD ymd)
{
Date = ymd;
}
}
public class C_DayState
{
public UIColor NormalColor;
public UIColor HighlightedColor;
public UIColor TextColor;
public UIColor BoxColor;
public bool ShowBox;
public int DayOfWeek;
public C_DayState(int dayOfWeek)
{
DayOfWeek = dayOfWeek;
}
}
public class C_DayOfWeekTouchedEventArgs : EventArgs
{
public int DayOfWeek;
public C_DayOfWeekTouchedEventArgs(int dow)
{
DayOfWeek = dow;
}
}
}
|
apache-2.0
|
clalancette/condor-dcloud
|
src/classad/instantiations.cpp
|
6689
|
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* 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 <fstream>
#include <iostream>
#include "classad/common.h"
#include "classad/lexer.h"
#include "classad/exprTree.h"
#include "classad/collection.h"
#include "classad/collectionBase.h"
#include "classad/classad.h"
using namespace std;
#if (__GNUC__<3)
#define CLASS
#else
#define CLASS class
#endif
#if ((__GNUC__==3) && (__GNUC_MINOR__ >= 4)) || (__GNUC__>3)
#define DEREF_TYPEDEFS
#endif
BEGIN_NAMESPACE( classad )
//-------------classad templates --------------
template CLASS map<string, bool>;
#ifdef DEREF_TYPEDEFS
template CLASS _Rb_tree_iterator<pair<string, bool> >;
#else
template CLASS map<string, bool, CaseIgnLTStr>::iterator;
#endif
// function table
template CLASS map<string, void*, CaseIgnLTStr>;
#ifdef DEREF_TYPEDEFS
template CLASS _Rb_tree_iterator<pair<string, void *> >;
#else
template CLASS map<string, void*, CaseIgnLTStr>::iterator;
#endif
// XML attributes
template CLASS map<string, string>;
#ifdef DEREF_TYPEDEFS
template CLASS _Rb_tree_iterator<pair<string, string> >;
#else
template CLASS map<string, string>::iterator;
#endif
// attribute list
template CLASS hash_map<string, ExprTree*, StringCaseIgnHash, CaseIgnEqStr>;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair< string, ExprTree*>, string, StringCaseIgnHash,
_Select1st<pair<string, ExprTree*> >, CaseIgnEqStr,
allocator<ExprTree*> >;
template CLASS __gnu_cxx::_Hashtable_iterator<pair< string const, ExprTree*>, string const, StringCaseIgnHash,
_Select1st<pair<string const, ExprTree*> >, CaseIgnEqStr,
allocator<ExprTree*> >;
#else
template CLASS hash_map<string, ExprTree*, StringCaseIgnHash, CaseIgnEqStr>::iterator;
template CLASS hash_map<string, ExprTree*, StringCaseIgnHash, CaseIgnEqStr>::const_iterator;
#endif
template CLASS set<string, CaseIgnLTStr>;
#ifdef DEREF_TYPEDEFS
template CLASS _Rb_tree_iterator<string>;
#else
template CLASS set<string, CaseIgnLTStr>::iterator;
#endif
// expr evaluation cache
template CLASS hash_map<const ExprTree*, Value, ExprHash >;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair<const ExprTree *, Value>, const ExprTree *, ExprHash,
_Select1st<pair<const ExprTree *, Value> >, ExprHash,
allocator<Value> >;
#else
template CLASS hash_map<const ExprTree*, Value, ExprHash >::iterator;
#endif
// component stuff
template CLASS vector< pair<string, ExprTree*> >;
template CLASS vector<ExprTree*>;
template CLASS map<const ClassAd*, References>;
END_NAMESPACE
template CLASS vector<string>;
#include "classad/transaction.h"
#include "classad/view.h"
BEGIN_NAMESPACE(classad)
// view content
template CLASS multiset<ViewMember, ViewMemberLT>;
#ifdef DEREF_TYPEDEFS
template CLASS _Rb_tree_iterator<ViewMember>;
#else
template CLASS multiset<ViewMember, ViewMemberLT>::iterator;
#endif
// list of sub-views
template CLASS slist<View*>;
// view registry
template CLASS hash_map<string,View*,StringHash>;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair<string, View*>, string, StringHash,
_Select1st<pair<string, View*> >, equal_to<string>,
allocator<View *> >;
#else
template CLASS hash_map<string,View*,StringHash>::iterator;
#endif
// index
template CLASS hash_map<string,multiset<ViewMember,ViewMemberLT>::iterator,
StringHash>;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair< string, _Rb_tree_iterator<ViewMember> >, string, StringHash,
_Select1st<pair<string, _Rb_tree_iterator<ViewMember> > >, equal_to<string>,
allocator<_Rb_tree_iterator<ViewMember> > >;
#else
template CLASS hash_map<string,multiset<ViewMember,ViewMemberLT>::iterator,
StringHash>::iterator;
#endif
// main classad table
template CLASS hash_map<string, ClassAdProxy, StringHash>;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair< string, ClassAdProxy>, string, StringHash,
_Select1st<pair<string, ClassAdProxy> >, equal_to<string>,
allocator<ClassAdProxy> >;
#else
template CLASS hash_map<string, ClassAdProxy, StringHash>::iterator;
#endif
// index file
template CLASS map<string, int>;
template CLASS hash_map<string,int,StringHash>;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair< string, int>, string, StringHash,
_Select1st<pair<string, int> >, equal_to<string>,
allocator<int> >;
#else
template CLASS hash_map<string,int,StringHash>::iterator;
#endif
// transaction registry
template CLASS hash_map<string, ServerTransaction*, StringHash>;
#ifdef DEREF_TYPEDEFS
template CLASS __gnu_cxx::_Hashtable_iterator<pair< string, ServerTransaction*>, string, StringHash,
_Select1st<pair<string, ServerTransaction*> >, equal_to<string>,
allocator<ServerTransaction*> >;
#else
template CLASS hash_map<string, ServerTransaction*, StringHash>::iterator;
#endif
// operations in transaction
template CLASS list<XactionRecord>;
class _ClassAdInit
{
public:
_ClassAdInit( ) { tzset( ); }
} __ClassAdInit;
END_NAMESPACE
#if (__GNUC__>=3) && USING_STLPORT
template string std::operator+<char, std::char_traits<char>, std::allocator<char> >(const string&, const string&);
#endif
/*Some STL implementations (e.g. stlport) need instantiation of all
sorts of messy templates, requiring deep knowledge of the internal
implementation in the STL library, so below in a dummy function, we
simply use the various functions and operators that we need.
*/
void classad_instantiations_dummy() {
string std_string;
char ch = ' ';
ifstream input_stream;
ofstream output_stream;
cout << std_string;
getline(cin,std_string,'\n');
cout << std_string.find('\n',0);
cout << 1;
cout << std_string[0];
std_string.insert(1,"");
cin.get(ch);
std_string.replace(1,1,std_string);
std_string.find(std_string,1);
input_stream >> std_string;
output_stream << std_string;
}
|
apache-2.0
|
gandola/creg
|
src/main/java/com/pg/creg/AbstractVisitor.java
|
6250
|
/*
* Copyright 2014 gandola.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.pg.creg;
import com.pg.creg.exception.CregException;
import com.pg.creg.expr.CompositeExpression;
import com.pg.creg.expr.Expression;
import com.pg.creg.expr.Join;
import com.pg.creg.expr.FinalExpression;
import com.pg.creg.expr.Group;
import com.pg.creg.expr.LookAhead;
import com.pg.creg.expr.LookBehind;
import com.pg.creg.expr.Or;
import com.pg.creg.expr.Visitor;
import com.pg.creg.expr.boundary.InputEndsWith;
import com.pg.creg.expr.boundary.InputStartsWith;
import com.pg.creg.expr.boundary.LastMatchEndsWith;
import com.pg.creg.expr.boundary.LineEndsWith;
import com.pg.creg.expr.boundary.LineStartsWith;
import com.pg.creg.expr.boundary.NonWordBoundary;
import com.pg.creg.expr.boundary.WordBoundary;
import com.pg.creg.expr.character.Any;
import com.pg.creg.expr.character.CharClass;
import com.pg.creg.expr.character.CharList;
import com.pg.creg.expr.character.CharRange;
import com.pg.creg.expr.character.Digit;
import com.pg.creg.expr.character.Intersection;
import com.pg.creg.expr.character.Literal;
import com.pg.creg.expr.character.Negation;
import com.pg.creg.expr.character.NonDigit;
import com.pg.creg.expr.character.NonSpace;
import com.pg.creg.expr.character.NonWord;
import com.pg.creg.expr.character.Space;
import com.pg.creg.expr.character.Subtraction;
import com.pg.creg.expr.character.Union;
import com.pg.creg.expr.quantifier.AtLeast;
import com.pg.creg.expr.quantifier.AtMost;
import com.pg.creg.expr.quantifier.Exactly;
import com.pg.creg.expr.quantifier.OnceOrNot;
import com.pg.creg.expr.quantifier.OneOrMore;
import com.pg.creg.expr.quantifier.Possessive;
import com.pg.creg.expr.quantifier.Reluctant;
import com.pg.creg.expr.quantifier.Within;
import com.pg.creg.expr.quantifier.ZeroOrMore;
/**
* Abstract visitor with a default behavior.
*
* @author Pedro Gandola <pedro.gandola@gmail.com>
*/
public abstract class AbstractVisitor implements Visitor {
private final StringBuilder builder;
public AbstractVisitor() {
this.builder = new StringBuilder();
}
public void visit(FinalExpression expr) throws CregException {
eval(expr);
}
public void visit(CompositeExpression expr) throws CregException {
eval(expr);
}
public void visit(Join expr) throws CregException {
eval(expr);
}
public void visit(CharClass expr) throws CregException {
eval(expr);
}
public void visit(Group expr) throws CregException {
eval(expr);
}
public void visit(LookAhead expr) throws CregException {
eval(expr);
}
public void visit(LookBehind expr) throws CregException {
eval(expr);
}
public void visit(Or expr) throws CregException {
eval(expr);
}
public void visit(InputEndsWith expr) throws CregException {
eval(expr);
}
public void visit(InputStartsWith expr) throws CregException {
eval(expr);
}
public void visit(LineEndsWith expr) throws CregException {
eval(expr);
}
public void visit(LineStartsWith expr) throws CregException {
eval(expr);
}
public void visit(LastMatchEndsWith expr) throws CregException {
eval(expr);
}
public void visit(WordBoundary expr) throws CregException {
eval(expr);
}
public void visit(NonWordBoundary expr) throws CregException {
eval(expr);
}
public void visit(AtLeast expr) throws CregException {
eval(expr);
}
public void visit(AtMost expr) throws CregException {
eval(expr);
}
public void visit(Exactly expr) throws CregException {
eval(expr);
}
public void visit(OnceOrNot expr) throws CregException {
eval(expr);
}
public void visit(OneOrMore expr) throws CregException {
eval(expr);
}
public void visit(Possessive expr) throws CregException {
eval(expr);
}
public void visit(Reluctant expr) throws CregException {
eval(expr);
}
public void visit(Within expr) throws CregException {
eval(expr);
}
public void visit(ZeroOrMore expr) throws CregException {
eval(expr);
}
public void visit(Any expr) throws CregException {
eval(expr);
}
public void visit(CharList expr) throws CregException {
eval(expr);
}
public void visit(CharRange expr) throws CregException {
eval(expr);
}
public void visit(Digit expr) throws CregException {
eval(expr);
}
public void visit(Intersection expr) throws CregException {
eval(expr);
}
public void visit(Literal expr) throws CregException {
eval(expr);
}
public void visit(Negation expr) throws CregException {
eval(expr);
}
public void visit(NonDigit expr) throws CregException {
eval(expr);
}
public void visit(NonWord expr) throws CregException {
eval(expr);
}
public void visit(NonSpace expr) throws CregException {
eval(expr);
}
public void visit(Space expr) throws CregException {
eval(expr);
}
public void visit(Subtraction expr) throws CregException {
eval(expr);
}
public void visit(Union expr) throws CregException {
eval(expr);
}
public StringBuilder getBuilder() {
return builder;
}
protected void eval(CompositeExpression expr) throws CregException {
for (Expression childExpr : expr.getExpressions()) {
childExpr.accept(this);
}
}
protected void eval(FinalExpression expr) throws CregException {
expr.eval(builder);
}
}
|
apache-2.0
|
sunhai1988/nutz-book-project
|
src/main/java/net/wendal/nutzbook/service/sysinfo/impl/NgrokInfoProvider.java
|
2317
|
package net.wendal.nutzbook.service.sysinfo.impl;
import static net.wendal.nutzbook.util.RedisInterceptor.jedis;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.nutz.ioc.aop.Aop;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.json.Json;
import org.nutz.lang.util.NutMap;
import net.wendal.nutzbook.util.RedisKey;
@IocBean
public class NgrokInfoProvider extends AbstractSysInfoProvider implements RedisKey {
public String name() {
return "Ngrokๅ
็ฝ็ฉฟ้ๆๅก";
}
@Override
public String description() {
return "Ngrokๅ
็ฝ็ฉฟ้ๆๅก็็ธๅ
ณ็ป่ฎก";
}
@Override
@Aop("redis")
public List<NutMap> fetch() {
List<NutMap> re = new ArrayList<>();
NutMap map;
map = new NutMap();
map.put("name", "ๆปๆ ๅฐๆฐ");
map.put("value", jedis().hlen("ngrok"));
re.add(map);
Set<String> reports = jedis().zrevrangeByScore("ngrok:report", System.currentTimeMillis(), System.currentTimeMillis()/1000 - 5*60);
if (reports.size() > 0) {
String report = reports.iterator().next();
NutMap tmp = Json.fromJson(NutMap.class, report);
map = new NutMap();
map.put("name", "Http้้ๆฐ");
map.put("value", tmp.get("httpTunnelMeter.count"));
re.add(map);
map = new NutMap();
map.put("name", "windowsๅฎขๆท็ซฏๆฐ");
map.put("value", tmp.get("windows"));
re.add(map);
map = new NutMap();
map.put("name", "linuxๅฎขๆท็ซฏๆฐ");
map.put("value", tmp.get("linux"));
re.add(map);
map = new NutMap();
map.put("name", "osxๅฎขๆท็ซฏๆฐ");
map.put("value", tmp.get("osx"));
re.add(map);
map = new NutMap();
map.put("name", "ๅ
ถไปๅฎขๆท็ซฏๆฐ");
map.put("value", tmp.get("other"));
re.add(map);
} else {
map = new NutMap();
map.put("name", "ๆๅก็ถๆ");
map.put("value", "ๆชๅฏๅจ");
re.add(map);
}
return re;
}
}
|
apache-2.0
|
freiny/notes
|
go/trylib/string/lib_fn_Count_test.go
|
1445
|
package fStrings
import (
"strings"
"testing"
)
func Count(s, sep string) int {
if s == "" && sep == "" {
return 1
}
if sep == "" {
return len(s) + 1
}
count := 0
sepLen := len(sep)
slc := s[0:len(s)]
for {
switch {
case len(slc) == sepLen:
if slc == sep {
count++
}
return count
case len(slc) < sepLen:
return count
case len(slc) > sepLen:
if slc[0:sepLen] == sep {
count++
slc = slc[sepLen:len(slc)]
} else {
slc = slc[1:len(slc)]
}
}
}
}
var countTests = []struct {
s, sep string
out int
}{
{"", "", 1},
{"a", "", 2},
{"ab", "", 3},
{"", "a", 0},
{"a", "a", 1},
{"a", "b", 0},
{"a", "aaa", 0},
{"abcde", "a", 1},
{"abcde", "c", 1},
{"abcde", "e", 1},
{"abcde", "ab", 1},
{"abcde", "bc", 1},
{"abcde", "de", 1},
{"aaa aaaa aaa", "aa", 4},
{"aaa aaaa aaa", "aaaaa", 0},
}
func TestLibCount(t *testing.T) {
for _, test := range countTests {
actual := Count(test.s, test.sep)
libout := strings.Count(test.s, test.sep)
if actual != libout {
t.Errorf("Count(%q, %q) = %d ; %d wanted", test.s, test.sep, actual, libout)
}
}
}
func TestCount(t *testing.T) {
for _, test := range countTests {
actual := Count(test.s, test.sep)
if actual != test.out {
t.Errorf("Count(%q, %q) = %d ; %d wanted", test.s, test.sep, actual, test.out)
}
}
}
func BenchmarkCount(b *testing.B) {
for i := 0; i < b.N; i++ {
Count("aaba aaabab aaaa", "aa")
}
}
|
apache-2.0
|
tensorflow/runtime
|
backends/common/lib/ops/tf/dnn_ops_util.cc
|
4866
|
// Copyright 2020 The TensorFlow Runtime Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Helpers for DNN ops.
#include "tfrt/common/ops/tf/dnn_ops_util.h"
#include "llvm/ADT/ArrayRef.h"
#include "tfrt/common/compat/eigen/kernels/shape_functions.h"
#include "tfrt/core_runtime/op_attrs.h"
#include "tfrt/support/error_util.h"
namespace tfrt {
llvm::SmallVector<Index, 4> GetDimensions(const TensorShape& shape) {
llvm::SmallVector<Index, 4> dimensions(shape.GetRank());
shape.GetDimensions(&dimensions);
return dimensions;
}
void RotateRight(llvm::MutableArrayRef<Index> array, size_t k) {
std::rotate(array.rbegin(), array.rbegin() + k, array.rend());
}
llvm::raw_ostream& operator<<(llvm::raw_ostream& os,
ChannelOrder channel_order) {
switch (channel_order) {
case ChannelOrder::ChannelFirst:
os << "channel_first";
return os;
case ChannelOrder::ChannelLast:
os << "channel_last";
return os;
}
}
ChannelOrder GetTfChannelOrder(Optional<string_view> data_format) {
if (!data_format.hasValue() || !data_format->startswith_insensitive("nc"))
return ChannelOrder::ChannelLast;
return ChannelOrder::ChannelFirst;
}
llvm::Expected<WindowedOutputData> GetTfWindowedOutputData(
llvm::ArrayRef<Index> input_dims, // NCHW
llvm::ArrayRef<Index> filter_dims, // OIHW
ChannelOrder channel_order, string_view padding_string,
ArrayRef<int> explicit_paddings, ArrayRef<Index> strides,
ArrayRef<Index> dilations) {
auto rank = input_dims.size();
if (filter_dims.size() != rank)
return MakeStringError("Input and filter must have same rank.");
TFRT_ASSIGN_OR_RETURN(auto padding_type,
compat::ParsePaddingType(padding_string));
if (padding_type == compat::PaddingType::kExplicit) {
if (explicit_paddings.empty())
return MakeStringError("Missing 'explicit_paddings' attribute");
if (explicit_paddings.size() != 2 * (rank - 2))
return MakeStringError("Wrong 'explicit_paddings' attribute length");
}
auto strides_expanded =
MaybeExpandFilterSizes(strides, filter_dims.size(), channel_order);
auto dilations_expanded =
MaybeExpandFilterSizes(dilations, filter_dims.size(), channel_order);
WindowedOutputData result;
result.output_dims.push_back(input_dims[0]);
result.output_dims.push_back(filter_dims[0]);
result.strides.assign(strides_expanded.begin() + 2, strides_expanded.end());
result.dilations.assign(dilations_expanded.begin() + 2,
dilations_expanded.end());
llvm::Optional<compat::Padding> paddings;
for (int i = 2; i < filter_dims.size(); ++i) {
if (padding_type == compat::PaddingType::kExplicit) {
paddings = compat::Padding{explicit_paddings[0], explicit_paddings[1]};
explicit_paddings = explicit_paddings.drop_front(2);
}
TFRT_ASSIGN_OR_RETURN(
auto output_dim, compat::ComputeWindowedOutputDimension(
input_dims[i], filter_dims[i], strides_expanded[i],
dilations_expanded[i], padding_type, paddings));
result.output_dims.push_back(output_dim.output_size);
result.paddings_before.push_back(output_dim.padding.padding_before);
result.paddings_after.push_back(output_dim.padding.padding_after);
}
return result;
}
llvm::SmallVector<Index, 4> MaybeExpandFilterSizes(llvm::ArrayRef<Index> sizes,
int rank,
ChannelOrder channel_order) {
llvm::SmallVector<Index, 4> result(sizes.begin(), sizes.end());
if (result.empty()) result.push_back(1);
if (result.size() == 1) result.resize(rank - 2, result.front());
if (result.size() == rank - 2) {
result.resize(rank, 1); // Add NC.
RotateRight(result, 2); // HWNC to NCHW.
} else if (channel_order == ChannelOrder::ChannelLast) {
// NHWC to NCHW.
RotateRight(llvm::MutableArrayRef<Index>(result).drop_front());
}
return result;
}
llvm::Optional<ChannelOrder> GuessChannelOrder(const TensorShape& shape) {
auto dims = GetDimensions(shape);
if (dims.size() != 4) return {};
if (dims[2] == dims[3]) return ChannelOrder::ChannelFirst;
if (dims[1] == dims[2]) return ChannelOrder::ChannelLast;
return {};
}
} // namespace tfrt
|
apache-2.0
|
jumisz/led-server
|
src/main/java/org/led/http/protocol/MimeTypes.java
|
368
|
package org.led.http.protocol;
public enum MimeTypes {
PLAINTEXT("text/plain"), HTML("text/html"), DEFAULT_BINARY(
"application/octet-stream"), XML("text/xml"), JSON(
"application/json");
private String mime;
private MimeTypes(String type) {
mime = type;
}
public String getMime() {
return mime;
}
}
|
apache-2.0
|
scribble/scribble.github.io
|
src/main/jbake/assets/docs/scribble/modules/linmp-scala/src/main/java/ast/binary/ops/Merge.java
|
1166
|
/**
*
*/
package ast.binary.ops;
import ast.binary.Type;
import ast.util.BiFunctionWithCE;
import org.scribble.main.ScribbleException;
/** Static methods for merging binary session types.
*
* @author Alceste Scalas <alceste.scalas@imperial.ac.uk>
*/
public class Merge
{
/** Type of all merge operators.
*/
public interface Operator extends BiFunctionWithCE<Type, Type, Type, ScribbleException>
{
}
/** Merge two binary types iif they are equal.
*
* @param t First type to merge
* @param u Second type to merge
* @return One of the two arguments
* @throws ScribbleException if the arguments are not equal
*/
public static Type id(Type t, Type u) throws ScribbleException
{
if (t.equals(u)) {
return t;
}
throw new ScribbleException("Cannot merge non-equal types: "+t+" and "+u);
}
/** Merge two binary types using the full algorithm.
*
* @param t First type to merge
* @param u Second type to merge
* @return One of the two arguments
* @throws ScribbleException if the arguments cannot be merged
*/
public static Type full(Type t, Type u) throws ScribbleException
{
return FullMerger.apply(t, u);
}
}
|
apache-2.0
|
shockay/br2zz
|
api/java/demo/MyIODemo.java
|
1355
|
package demo;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* JavaๆไพไบFileInputStreamไปฅๅFileOutputStream็ฑปๆฅ่ฟ่กๆไปถ็่ฏปๅๆไฝใ
* FileInputStream็ๆ้ ๆนๆณไผๆฅๆถ่พๅ
ฅๆไปถ็่ทฏๅพไฝไธบๅ
ฅๅ็ถๅๅๅปบๅบไธไธชๆไปถ็่พๅ
ฅๆตใ
* ๅๆ ท็๏ผFileOutputStream็ๆ้ ๆนๆณไนไผๆฅๆถไธไธชๆไปถ่ทฏๅพไฝไธบๅ
ฅๅ็ถๅๅๅปบๅบๆไปถ็่พๅบๆตใ
* ๅจๅค็ๅฎๆไปถไนๅ๏ผไธไธชๅพ้่ฆ็ๆไฝๅฐฑๆฏ่ฆ่ฎฐๅพโcloseโๆ่ฟไบๆตใ
* @author ่ฃๆง็
* 2015ๅนด10ๆ16ๆฅ
* ไธๅ4:42:41
*/
public class MyIODemo {
public static void main(String args[]) throws IOException {
FileInputStream in = null;
FileOutputStream out = null;
try {
in = new FileInputStream("E:\\GitHub\\eclipse\\br2zz\\api\\java\\demo\\json\\jsonDemoFile.json"); //่ฏป็ๆไปถ
out = new FileOutputStream("E:\\GitHub\\eclipse\\br2zz\\api\\java\\demo\\json\\OutputFile.txt"); //ๅๅ
ฅ็ๆไปถ
int c;
while((c = in.read()) != -1) {
out.write(c);
}
} finally {
if(in != null) {
in.close();
}
if(out != null) {
out.close();
}
}
}
}
|
apache-2.0
|
suninformation/ymate-platform-v2
|
ymate-platform-validation/src/main/java/net/ymate/platform/validation/validate/NumericValidator.java
|
4297
|
/*
* Copyright 2007-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.ymate.platform.validation.validate;
import net.ymate.platform.core.beans.annotation.CleanProxy;
import net.ymate.platform.core.lang.BlurObject;
import net.ymate.platform.validation.AbstractValidator;
import net.ymate.platform.validation.ValidateContext;
import net.ymate.platform.validation.ValidateResult;
import net.ymate.platform.validation.annotation.Validator;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
/**
* ๆฐๅผ็ฑปๅๅๆฐ้ช่ฏ
*
* @author ๅ้ (suninformation@163.com) on 2013-4-17 ไธๅ8:36:16
* @version 1.0
*/
@Validator(VNumeric.class)
@CleanProxy
public class NumericValidator extends AbstractValidator {
@Override
public ValidateResult validate(ValidateContext context) {
Object _paramValue = context.getParamValue();
if (_paramValue != null) {
VNumeric _vNumeric = (VNumeric) context.getAnnotation();
int _result = 0;
if (_paramValue.getClass().isArray()) {
Object[] _values = (Object[]) _paramValue;
for (Object _pValue : _values) {
_result = checkNumeric(_pValue, _vNumeric);
if (_result > 0) {
break;
}
}
} else {
_result = checkNumeric(_paramValue, _vNumeric);
}
if (_result > 0) {
String _pName = StringUtils.defaultIfBlank(context.getParamLabel(), context.getParamName());
_pName = __doGetI18nFormatMessage(context, _pName, _pName);
String _msg = StringUtils.trimToNull(_vNumeric.msg());
if (_msg != null) {
_msg = __doGetI18nFormatMessage(context, _msg, _msg, _pName);
} else {
if (_result > 1) {
_msg = __doGetI18nFormatMessage(context, "ymp.validation.numeric", "{0} not a valid numeric.", _pName);
} else {
if (_vNumeric.max() > 0 && _vNumeric.min() > 0) {
_msg = __doGetI18nFormatMessage(context, "ymp.validation.numeric_between", "{0} numeric must be between {1} and {2}.", _pName, _vNumeric.min(), _vNumeric.max());
} else if (_vNumeric.max() > 0) {
_msg = __doGetI18nFormatMessage(context, "ymp.validation.numeric_max", "{0} numeric must be lt {1}.", _pName, _vNumeric.max());
} else {
_msg = __doGetI18nFormatMessage(context, "ymp.validation.numeric_min", "{0} numeric must be gt {1}.", _pName, _vNumeric.min());
}
}
}
return new ValidateResult(context.getParamName(), _msg);
}
}
return null;
}
private int checkNumeric(Object paramValue, VNumeric vNumeric) {
boolean _matched = false;
boolean _flag = false;
try {
Number _number = NumberUtils.createNumber(BlurObject.bind(paramValue).toStringValue());
if (_number == null) {
_matched = true;
_flag = true;
} else {
if (vNumeric.min() > 0 && _number.doubleValue() < vNumeric.min()) {
_matched = true;
} else if (vNumeric.max() > 0 && _number.doubleValue() > vNumeric.max()) {
_matched = true;
}
}
} catch (Exception e) {
_matched = true;
_flag = true;
}
return _matched ? (_flag ? 2 : 1) : 0;
}
}
|
apache-2.0
|
RobAltena/deeplearning4j
|
libnd4j/include/ops/declarable/generic/bitwise/toggle_bits.cpp
|
1862
|
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
******************************************************************************/
//
// Created by raver119 on 23.11.17.
//
#include <op_boilerplate.h>
#if NOT_EXCLUDED(OP_toggle_bits)
#include <ops/declarable/CustomOperations.h>
#include <ops/declarable/helpers/helpers.h>
#include <ops/declarable/helpers/toggle_bits.h>
namespace nd4j {
namespace ops {
OP_IMPL(toggle_bits, -1, -1, true) {
for (int i = 0; i < block.width(); i++) {
auto x = INPUT_VARIABLE(i);
auto z = OUTPUT_VARIABLE(i);
REQUIRE_TRUE(x->dataType() == z->dataType(), 0, "Toggle bits requires input and output to have same type");
REQUIRE_TRUE(x->isZ(),0, "Toggle bits requires input and output to be integer type (int8, int16, int32, int64)");
helpers::__toggle_bits(block.launchContext(), *x, *z);
}
return Status::OK();
}
DECLARE_TYPES(toggle_bits) {
getOpDescriptor()
->setAllowedInputTypes({ALL_INTS})
->setAllowedOutputTypes({ALL_INTS})
->setSameMode(false);
}
}
}
#endif
|
apache-2.0
|
cqse/test-analyzer
|
test-analyzer-sdist/src/main/java/de/tum/in/niedermr/ta/extensions/threads/IModifiedThreadClass.java
|
254
|
package de.tum.in.niedermr.ta.extensions.threads;
/**
* Interface to check if the modified <code>java.lang.Thread</code> class is loaded.
*
* @see "thread-class-modification-java_1.8.0_60.patch"
*/
public interface IModifiedThreadClass {
// NOP
}
|
apache-2.0
|
jentfoo/aws-sdk-java
|
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/transform/TcpRouteMarshaller.java
|
1893
|
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.appmesh.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.appmesh.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* TcpRouteMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class TcpRouteMarshaller {
private static final MarshallingInfo<StructuredPojo> ACTION_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("action").build();
private static final TcpRouteMarshaller instance = new TcpRouteMarshaller();
public static TcpRouteMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(TcpRoute tcpRoute, ProtocolMarshaller protocolMarshaller) {
if (tcpRoute == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tcpRoute.getAction(), ACTION_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
|
apache-2.0
|
SteamShon/incubator-s2graph
|
s2core/src/main/scala/org/apache/s2graph/core/utils/SafeUpdateCache.scala
|
3006
|
/*
* 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.s2graph.core.utils
import java.util.concurrent.atomic.AtomicBoolean
import com.google.common.cache.CacheBuilder
import scala.collection.JavaConversions._
import scala.concurrent.{ExecutionContext, Future}
import scala.util.{Failure, Success}
object SafeUpdateCache {
case class CacheKey(key: String)
}
class SafeUpdateCache[T](prefix: String, maxSize: Int, ttl: Int)(implicit executionContext: ExecutionContext) {
import SafeUpdateCache._
implicit class StringOps(key: String) {
def toCacheKey = new CacheKey(prefix + ":" + key)
}
def toTs() = (System.currentTimeMillis() / 1000).toInt
private val cache = CacheBuilder.newBuilder().maximumSize(maxSize).build[CacheKey, (T, Int, AtomicBoolean)]()
def put(key: String, value: T) = cache.put(key.toCacheKey, (value, toTs, new AtomicBoolean(false)))
def invalidate(key: String) = cache.invalidate(key.toCacheKey)
def withCache(key: String)(op: => T): T = {
val cacheKey = key.toCacheKey
val cachedValWithTs = cache.getIfPresent(cacheKey)
if (cachedValWithTs == null) {
// fetch and update cache.
val newValue = op
cache.put(cacheKey, (newValue, toTs(), new AtomicBoolean(false)))
newValue
} else {
val (cachedVal, updatedAt, isUpdating) = cachedValWithTs
if (toTs() < updatedAt + ttl) cachedVal // in cache TTL
else {
val running = isUpdating.getAndSet(true)
if (running) cachedVal
else {
Future(op)(executionContext) onComplete {
case Failure(ex) =>
cache.put(cacheKey, (cachedVal, toTs(), new AtomicBoolean(false))) // keep old value
logger.error(s"withCache update failed: $cacheKey")
case Success(newValue) =>
cache.put(cacheKey, (newValue, toTs(), new AtomicBoolean(false))) // update new value
logger.info(s"withCache update success: $cacheKey")
}
cachedVal
}
}
}
}
def invalidateAll() = cache.invalidateAll()
def getAllData() : List[(String, T)] = {
cache.asMap().map { case (key, value) =>
(key.key.substring(prefix.size + 1), value._1)
}.toList
}
}
|
apache-2.0
|
advantageous/ddp-client-java
|
examples/java-fx/src/main/java/io/advantageous/ddp/example/MainViewController.java
|
3112
|
/*
* Copyright (C) 2014. Geoffrey Chandler.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.advantageous.ddp.example;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import io.advantageous.ddp.repository.MeteorCollectionRepository;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
@Singleton
@Presents("MainView.fxml")
public class MainViewController implements Initializable {
private static final Logger LOGGER = LoggerFactory.getLogger(MainViewController.class);
@FXML
private VBox scrollingVBox;
@FXML
private AnchorPane root;
@Inject
private EventBus eventBus;
@Inject
private MeteorCollectionRepository meteorCollectionRepository;
private Map<String, TabView> itemMap = new HashMap<>();
@Subscribe
public void handleAdded(final TabAddedEvent event) {
Platform.runLater(() -> {
final TabView view = new TabView(event.getTab(), mouseEvent -> {
try {
this.meteorCollectionRepository.delete(
WebApplicationConstants.TABS_COLLECTION_NAME, event.getKey(),
result -> LOGGER.info("successfully deleted item: " + result),
message -> LOGGER.error("failed to delete item: " + message));
} catch (final IOException e) {
LOGGER.error(e.getMessage());
}
});
this.itemMap.put(event.getKey(), view);
this.scrollingVBox.getChildren().add(view);
});
}
@Subscribe
public void handleRemoved(final TabRemovedEvent event) {
Platform.runLater(() -> {
final TabView node = itemMap.get(event.getKey());
scrollingVBox.getChildren().remove(node);
itemMap.remove(event.getKey());
});
}
@Subscribe
public void handleModified(final TabUpdatedEvent event) {
Platform.runLater(() -> itemMap.get(event.getKey()).setTab(event.getTab()));
}
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
eventBus.register(this);
}
public AnchorPane getRoot() {
return root;
}
}
|
apache-2.0
|
triniti/schemas
|
build/php/src/Triniti/Schemas/Notify/Mixin/SlackNotification/SlackNotificationV1Mixin.php
|
469
|
<?php
declare(strict_types=1);
// @link http://schemas.triniti.io/json-schema/triniti/notify/mixin/slack-notification/1-0-0.json#
namespace Triniti\Schemas\Notify\Mixin\SlackNotification;
use Gdbots\Pbj\Schema;
/**
* @method static Schema schema
* @method mixed fget($fieldName, $default = null)
*/
trait SlackNotificationV1Mixin
{
public function getUriTemplateVars(): array
{
return [
'_id' => $this->fget('_id'),
];
}
}
|
apache-2.0
|
GoogleCloudPlatform/dataflow-opinion-analysis
|
src/main/java/com/google/cloud/dataflow/examples/opinionanalysis/ControlPipeline.java
|
17753
|
/*******************************************************************************
* Copyright 2017 Google 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.
*******************************************************************************/
package com.google.cloud.dataflow.examples.opinionanalysis;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.joda.time.Duration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.cloud.dataflow.examples.opinionanalysis.io.RecordFileSource;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.coders.AvroCoder;
import org.apache.beam.sdk.coders.StringUtf8Coder;
import org.apache.beam.sdk.io.FileSystems;
import org.apache.beam.sdk.io.Read.Bounded;
import org.apache.beam.sdk.io.gcp.pubsub.PubsubIO;
import org.apache.beam.runners.dataflow.DataflowRunner;
import org.apache.beam.runners.dataflow.options.DataflowPipelineOptions;
import org.apache.beam.sdk.options.Description;
import org.apache.beam.sdk.options.PipelineOptionsFactory;
import org.apache.beam.sdk.options.ValueProvider;
import org.apache.beam.sdk.transforms.Create;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.transforms.windowing.Window;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.transforms.windowing.AfterPane;
import org.apache.beam.sdk.transforms.windowing.FixedWindows;
import org.apache.beam.sdk.transforms.windowing.GlobalWindows;
//import org.apache.beam.sdk.io.gcp.pubsub.PubsubClient;
//import org.apache.beam.sdk.io.gcp.pubsub.PubsubJsonClient;
/*
import com.google.cloud.pubsub.spi.v1.TopicAdminClient;
import com.google.pubsub.v1.SubscriptionName;
import com.google.pubsub.v1.TopicName;
import com.google.pubsub.v1.PushConfig;
import com.google.pubsub.v1.Subscription;
import com.google.cloud.pubsub.spi.v1.SubscriptionAdminClient;
*/
import org.apache.beam.runners.dataflow.options.DataflowPipelineWorkerPoolOptions;
public class ControlPipeline {
private static final Logger LOG = LoggerFactory.getLogger(ControlPipeline.class);
public static void main(String[] args) throws IOException {
ControlPipelineOptions options = PipelineOptionsFactory.fromArgs(args).withValidation().as(ControlPipelineOptions.class);
PipelineOptionsFactory.register(ControlPipelineOptions.class);
Pipeline pipeline = Pipeline.create(options);
if (options.isControlGCS()) {
// Read commands from GCS file(s)
final Bounded<String> read = org.apache.beam.sdk.io.Read.from(
new RecordFileSource<String>(ValueProvider.StaticValueProvider.of(options.getControlGCSPath()),
StringUtf8Coder.of(), RecordFileSource.DEFAULT_RECORD_SEPARATOR));
pipeline
.apply("Read", read)
.apply("Process Commands",ParDo.of(new ProcessCommand()));
} else if (options.isControlPubsub()){
options.setStreaming(true);
// Accept commands from a Control Pub/Sub topic
pipeline
.apply("Read from control topic",
PubsubIO.readStrings().fromTopic(options.getControlPubsubTopic()))
.apply("Process Commands",ParDo.of(new ProcessCommand()));
/* This section will eventually work with the 0.19.0-alpha
* and later versions of the ideomatic Java client google-cloud
* But for now remove this check.
String subscriptionId = "indexercommands_controller";
String topicId = options.getControlPubsubTopic();
String projectId = options.getProject();
String subscriptionPath = "projects/"+projectId+"/subscriptions/"+subscriptionId;
// Support legacy way of passing the Control Topic that included the whole path
if (topicId.startsWith("projects/")) {
String[] tokens = topicId.split("/");
topicId = tokens[tokens.length-1];
}
SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create();
SubscriptionName subscriptionName = SubscriptionName.create(projectId, subscriptionId);
TopicName topicName = TopicName.create(projectId, topicId);
Subscription subscription;
try {
subscription = subscriptionAdminClient.getSubscription(subscriptionName);
} catch (Exception e) {
subscription = null;
}
if (subscription == null) {
try {
// create a pull subscription
subscription = subscriptionAdminClient.createSubscription(
subscriptionName, topicName, PushConfig.getDefaultInstance(), 60);
} catch (Exception e) {
LOG.error(e.getMessage());
System.exit(1);
}
}
*/
/*
PubsubClient pubsubClient = PubsubJsonClient.FACTORY.newClient(null, null, options.as(DataflowPipelineOptions.class));
PubsubClient.ProjectPath pp = PubsubClient.projectPathFromPath("projects/"+options.getProject());
PubsubClient.TopicPath tp = PubsubClient.topicPathFromPath(options.getControlPubsubTopic());
PubsubClient.SubscriptionPath sp = PubsubClient.subscriptionPathFromPath(subscriptionPath);
List<PubsubClient.SubscriptionPath> l = pubsubClient.listSubscriptions(pp, tp);
if (!l.contains(sp))
pubsubClient.createSubscription(tp, sp, 60);
*/
}
pipeline.run();
}
/**
*
*/
static class ProcessCommand extends DoFn<String, Void> {
@ProcessElement
public void processElement(ProcessContext c) {
LOG.info("ProcessCommand.processElement entered.");
String commandEnvelope = null;
try {
commandEnvelope = c.element();
if (commandEnvelope == null || commandEnvelope.isEmpty())
throw new Exception("ProcessCommand.processElement: null or empty command envelope");
ControlPipelineOptions options = c.getPipelineOptions().as(ControlPipelineOptions.class);
PipelineCommand command = PipelineCommand.createPipelineCommand(commandEnvelope);
// Triage the various commands to their processors
if (Arrays.asList(PipelineCommand.documentImportCommands).contains(command.command))
startDocumentImportPipeline(command, options);
else if (Arrays.asList(PipelineCommand.socialImportCommands).contains(command.command))
startSocialImportPipeline(command, options);
else if (Arrays.asList(PipelineCommand.statsCalcCommands).contains(command.command))
startStatsCalcPipeline(command, options);
else
throw new Exception ("Unsupported command "+command.command);
} catch (Exception e) {
LOG.warn(e.getMessage());
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
LOG.info(sw.toString());
}
}
/**
*
*
*/
public void startDocumentImportPipeline(PipelineCommand command, ControlPipelineOptions options) throws Exception {
LOG.info("ProcessCommand.startDocumentImportPipeline entered with command "+command.command);
IndexerPipelineOptions copiedOptions = createJobOptions(options, command);
// do some common option transfer and setting
transferOptions(options, copiedOptions);
if (command.historyWindowSec != null)
copiedOptions.setProcessedUrlHistorySec(command.historyWindowSec);
if (command.writeTruncate != null)
copiedOptions.setWriteTruncate(command.writeTruncate);
// do command-dependent options transfers
if (command.command.equals(PipelineCommand.START_GCS_IMPORT)) {
copiedOptions.setSourceRecordFile(true);
copiedOptions.setJobName(options.getJobName() + "-gcsdocimport");
if (command.gcsPath != null)
copiedOptions.setInputFile(command.gcsPath);
} else if (command.command.equals(PipelineCommand.START_GDELTBUCKET_IMPORT)) {
copiedOptions.setStreaming(false);
copiedOptions.setSourceGDELTbucket(true);
copiedOptions.setJobName(options.getJobName() + "-gdeltbucketimport");
if (command.gcsPath != null)
copiedOptions.setInputFile(command.gcsPath);
} else if (command.command.equals(PipelineCommand.START_JDBC_IMPORT)) {
copiedOptions.setSourceJDBC(true);
copiedOptions.setJobName(options.getJobName() + "-jdbcdocimport");
if (command.timeWindowSec != null)
copiedOptions.setJdbcSourceTimeWindowSec(command.timeWindowSec);
if (command.fromDate != null)
copiedOptions.setJdbcSourceFromDate(command.fromDate);
if (command.toDate != null)
copiedOptions.setJdbcSourceToDate(command.toDate);
} else if (command.command.equals(PipelineCommand.START_PUBSUB_IMPORT)) {
copiedOptions.setSourcePubsub(true);
copiedOptions.setJobName(options.getJobName() + "-pubsubdocimport");
} else if (command.command.equals(PipelineCommand.START_REDDIT_IMPORT)) {
copiedOptions.setSourceRedditBQ(true);
if (command.postsTable != null)
copiedOptions.setRedditPostsTableName(command.postsTable);
if (command.postsQuery != null)
copiedOptions.setRedditPostsQuery(command.postsQuery);
if (command.commentsTable != null)
copiedOptions.setRedditCommentsTableName(command.commentsTable);
if (command.commentsQuery != null)
copiedOptions.setRedditCommentsQuery(command.commentsQuery);
copiedOptions.setJobName(options.getJobName() + "-redditimport");
}
Pipeline pipeline = IndexerPipeline.createIndexerPipeline(copiedOptions);
LOG.info("Starting Job " + copiedOptions.getJobName());
pipeline.run();
}
/**
*
*
*/
public void startSocialImportPipeline(PipelineCommand command, ControlPipelineOptions options) throws Exception {
LOG.info("ProcessCommand.startSocialImportPipeline entered with command "+command.command);
if (!command.command.equals(PipelineCommand.START_SOCIAL_IMPORT))
return;
IndexerPipelineOptions copiedOptions = createJobOptions(options, command);
transferOptions(options, copiedOptions);
if (command.historyWindowSec != null)
copiedOptions.setWrSocialCountHistoryWindowSec(command.historyWindowSec);
if (command.writeTruncate != null)
copiedOptions.setWriteTruncate(command.writeTruncate);
// These 3 options are more applicable to document import, since social import is
// via jdbc only anyway, but still, set them, in case we support social import
// from elsewhere in the future
copiedOptions.setSourceRecordFile(false);
copiedOptions.setSourcePubsub(false);
copiedOptions.setSourceJDBC(true);
copiedOptions.setJobName(options.getJobName() + "-jdbcsocialimport");
if (command.timeWindowSec != null)
copiedOptions.setJdbcSourceTimeWindowSec(command.timeWindowSec);
if (command.fromDate != null)
copiedOptions.setJdbcSourceFromDate(command.fromDate);
if (command.toDate != null)
copiedOptions.setJdbcSourceToDate(command.toDate);
Pipeline pipeline = SocialStatsPipeline.createSocialStatsPipeline(copiedOptions);
LOG.info("Starting Job "+copiedOptions.getJobName());
pipeline.run();
}
/**
*
*
*/
public void startStatsCalcPipeline(PipelineCommand command, ControlPipelineOptions options) throws Exception {
LOG.info("ProcessCommand.startStatsCalcPipeline entered with command "+command.command);
if (!command.command.equals(PipelineCommand.START_STATS_CALC))
return;
IndexerPipelineOptions copiedOptions = createJobOptions(options, command);
transferOptions(options, copiedOptions);
copiedOptions.setJobName(options.getJobName() + "-statscalc");
if (command.fromDate != null)
copiedOptions.setStatsCalcFromDate(command.fromDate);
if (command.toDate != null)
copiedOptions.setStatsCalcToDate(command.toDate);
if (command.days != null)
copiedOptions.setStatsCalcDays(command.days);
Pipeline pipeline = StatsCalcPipeline.createStatsCalcPipeline(copiedOptions);
LOG.info("Starting Job "+copiedOptions.getJobName());
pipeline.run();
}
/**
* @param controlOptions
* @param jobOptions
*/
private void transferOptions(ControlPipelineOptions controlOptions, IndexerPipelineOptions jobOptions) {
if (controlOptions.getJobMaxNumWorkers() != null)
jobOptions.setMaxNumWorkers(controlOptions.getJobMaxNumWorkers());
if (controlOptions.getJobAutoscalingAlgorithm() != null)
jobOptions.setAutoscalingAlgorithm(DataflowPipelineWorkerPoolOptions.AutoscalingAlgorithmType.valueOf(
controlOptions.getJobAutoscalingAlgorithm()));
if (controlOptions.getJobWorkerMachineType() != null)
jobOptions.setWorkerMachineType(controlOptions.getJobWorkerMachineType());
if (controlOptions.getJobDiskSizeGb() != null)
jobOptions.setDiskSizeGb(controlOptions.getJobDiskSizeGb());
if (controlOptions.getJobStagingLocation() != null)
jobOptions.setStagingLocation(controlOptions.getJobStagingLocation());
else
jobOptions.setStagingLocation(controlOptions.getStagingLocation());
}
private IndexerPipelineOptions createJobOptions(ControlPipelineOptions options, PipelineCommand command) throws Exception {
IndexerPipelineOptions result = PipelineOptionsFactory.as(IndexerPipelineOptions.class);
/* CloneAs kept failing with error
* java.lang.IllegalStateException: Failed to serialize the pipeline options to JSON.
* at org.apache.beam.sdk.options.ProxyInvocationHandler.cloneAs(ProxyInvocationHandler.java:272)
* To fix, implemented a manual shallow copy of options
*/
//IndexerPipelineOptions copiedOptions = options.cloneAs(IndexerPipelineOptions.class);
// TODO: Is this still necessary? This will be overwritten anyways
if (options.isSourcePubsub() != null)
result.setSourcePubsub(options.isSourcePubsub());
if (options.isSourceJDBC() != null)
result.setSourceJDBC(options.isSourceJDBC());
if (options.isSourceRecordFile() != null)
result.setSourceRecordFile(options.isSourceRecordFile());
// copy the default options of the IndexerPipelineOptions interface
if (options.getInputFile() != null)
result.setInputFile(options.getInputFile());
if (options.getPubsubTopic() != null)
result.setPubsubTopic(options.getPubsubTopic());
if (options.getJdbcDriverClassName() != null)
result.setJdbcDriverClassName(options.getJdbcDriverClassName());
if (options.getJdbcSourceUrl() != null)
result.setJdbcSourceUrl(options.getJdbcSourceUrl());
if (options.getJdbcSourceUsername() != null)
result.setJdbcSourceUsername(options.getJdbcSourceUsername());
if (options.getJdbcSourcePassword() != null)
result.setJdbcSourcePassword(options.getJdbcSourcePassword());
if (options.getJdbcSourceTimeWindowSec() != null)
result.setJdbcSourceTimeWindowSec(options.getJdbcSourceTimeWindowSec());
if (options.getJdbcSourceFromDate() != null)
result.setJdbcSourceFromDate(options.getJdbcSourceFromDate());
if (options.getJdbcSourceToDate() != null)
result.setJdbcSourceToDate(options.getJdbcSourceToDate());
if (options.getBigQueryDataset() != null)
result.setBigQueryDataset(options.getBigQueryDataset());
if (options.getWriteTruncate() != null)
result.setWriteTruncate(options.getWriteTruncate());
if (options.getProcessedUrlHistorySec() != null)
result.setProcessedUrlHistorySec(options.getProcessedUrlHistorySec());
if (options.getWrSocialCountHistoryWindowSec() != null)
result.setWrSocialCountHistoryWindowSec(options.getWrSocialCountHistoryWindowSec());
if (options.getStatsCalcFromDate() != null)
result.setStatsCalcFromDate(options.getStatsCalcFromDate());
if (options.getStatsCalcToDate() != null)
result.setStatsCalcToDate(options.getStatsCalcToDate());
if (options.getStatsCalcDays() != null)
result.setStatsCalcDays(options.getStatsCalcDays());
if (options.getStatsCalcTables() != null)
result.setStatsCalcTables(options.getStatsCalcTables());
if (options.getRedditPostsTableName() != null)
result.setRedditPostsTableName(options.getRedditPostsTableName());
if (options.getRedditCommentsTableName() != null)
result.setRedditCommentsTableName(options.getRedditCommentsTableName());
if (options.getRedditPostsQuery() != null)
result.setRedditPostsQuery(options.getRedditPostsQuery());
if (options.getRedditCommentsQuery() != null)
result.setRedditCommentsQuery(options.getRedditCommentsQuery());
// Other options
if (options.getProject() != null)
result.setProject(options.getProject());
/*
* Staging location will be set in transferOptions
*/
if (options.getTempLocation() != null)
result.setTempLocation(options.getTempLocation());
if (options.getFilesToStage() != null)
result.setFilesToStage(options.getFilesToStage());
result.setRunner(options.getRunner());
result.setJobName(options.getJobName());
if (options.getCredentialFactoryClass() != null)
result.setCredentialFactoryClass(options.getCredentialFactoryClass());
if (options.getGcpCredential()!=null)
result.setGcpCredential(options.getGcpCredential());
if (options.getPubsubRootUrl()!=null)
result.setPubsubRootUrl(options.getPubsubRootUrl());
return result;
}
}
}
|
apache-2.0
|
joan38/Learn-Programming-Scala
|
course/solutions/14. Practice Project - 94%/Game.scala
|
1310
|
import scala.io.StdIn
object Game {
def displayGame(subject: String, words: Map[String, Int], found: Array[String]) = {
// Use ANSI escape codes:
// print("\033[H\033[2J");
// * 'H' means move to top of the screen
// * '2J' means "clear entire screen"
print("\033[H\033[2J")
println("=====================================")
println("================ 94% ================")
println("=====================================")
println
println("Subject: " + subject)
for (wordAndPercentage: (String, Int) <- words) {
val word = wordAndPercentage._1
val percentage = wordAndPercentage._2
val display =
if (found.contains(word)) "[" + word + " " + percentage + "%]"
else "[ " + percentage + "% ]"
println(display)
}
}
def main(args: Array[String]): Unit = {
val words = Map(
"Mercedes" -> 30,
"BMW" -> 30,
"Renault" -> 20,
"Citroen" -> 20
)
var found = Array.empty[String]
while (found.size != words.size) {
displayGame("Car brands", words, found)
println("Suggest a word: ")
val suggestedWord = StdIn.readLine()
found =
if (words.contains(suggestedWord)) found :+ suggestedWord
else found
}
println
println("You win!")
}
}
|
apache-2.0
|
wojons/scalr
|
app/src/LibWebta/library/System/Windows/Shell/tests.php
|
1609
|
<?php
/**
* This file is a part of LibWebta, PHP class library.
*
* LICENSE
*
* This source file is subject to version 2 of the GPL license,
* that is bundled with this package in the file license.txt and is
* available through the world-wide-web at the following url:
* http://www.gnu.org/copyleft/gpl.html
*
* @category LibWebta
* @package System_Windows
* @subpackage Shell
* @copyright Copyright (c) 2003-2007 Webta Inc, http://www.gnu.org/licenses/gpl.html
* @license http://www.gnu.org/licenses/gpl.html
* @filesource
*/
/**
* @category LibWebta
* @package System_Windows
* @subpackage Shell
* @name System_Windows_Shell_Test
*
*/
class System_Windows_Shell_Test extends UnitTestCase
{
function __construct()
{
load("System/Windows/Shell/Shell");
$this->UnitTestCase('System/Windows/Shell test');
}
function testShell()
{
$Shell = new WinShell();
//
// Delete tmp file
//
$tmpfile = ini_get("session.save_path")."/shelltest";
@unlink($tmpfile);
$this->assertFalse(file_exists($tmpfile), "$tmpfile does not exists");
//
// dir
//
$result = $Shell->Query("dir");
$this->assertTrue(!empty($result), "dir command result is not empty");
// Query raw
$result = $Shell->QueryRaw("dir C:\\", false);
$this->assertTrue(is_array($result), "dir C:\\ command result is array");
}
}
?>
|
apache-2.0
|
pilhuhn/hawkular-inventory
|
rest-servlet/src/main/java/org/hawkular/inventory/rest/exception/mappers/RelationNotFoundExceptionMapper.java
|
1458
|
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hawkular.inventory.rest.exception.mappers;
import static javax.ws.rs.core.Response.Status.NOT_FOUND;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import org.hawkular.inventory.api.RelationNotFoundException;
import org.hawkular.inventory.rest.json.ApiError;
/**
* @author Jirka Kremser
* @since 0.1.0
*/
@Provider
public class RelationNotFoundExceptionMapper implements ExceptionMapper<RelationNotFoundException> {
@Override
public Response toResponse(RelationNotFoundException exception) {
return Response.status(NOT_FOUND).entity(new ApiError(exception.getMessage(), ExceptionMapperUtils
.RelationshipNameAndPath.fromException(exception))).build();
}
}
|
apache-2.0
|
CastanCarvalho/navierwebsite
|
boletao/layout_bb.php
|
17285
|
<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><?php echo $dadosboleto["identificacao"]; ?></title>
<META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
<meta name="Generator" content="Navier Boletos - navier.ml" />
<style type="text/css">
<!--
.ti {font: 9px Arial, Helvetica, sans-serif}
-->
</style>
</HEAD>
<BODY>
<STYLE>
@media screen,print {
/* *** TIPOGRAFIA BASICA *** */
* {
font-family: Arial;
font-size: 12px;
margin: 0;
padding: 0;
}
.notice {
color: red;
}
/* *** LINHAS GERAIS *** */
#container {
width: 666px;
margin: 0px auto;
padding-bottom: 30px;
}
#instructions {
margin: 0;
padding: 0 0 20px 0;
}
#boleto {
width: 666px;
margin: 0;
padding: 0;
}
/* *** CABECALHO *** */
#instr_header {
background: url('boletao/logobb.jpg') no-repeat top left;
padding-left: 160px;
height: 65px;
}
#instr_header h1 {
font-size: 16px;
margin: 5px 0px;
}
#instr_header address {
font-style: normal;
}
#instr_content {
}
#instr_content h2 {
font-size: 10px;
font-weight: bold;
}
#instr_content p {
font-size: 10px;
margin: 4px 0px;
}
#instr_content ol {
font-size: 10px;
margin: 5px 0;
}
#instr_content ol li {
font-size: 10px;
text-indent: 10px;
margin: 2px 0px;
list-style-position: inside;
}
#instr_content ol li p {
font-size: 10px;
padding-bottom: 4px;
}
/* *** BOLETO *** */
#boleto .cut {
width: 666px;
margin: 0px auto;
border-bottom: 1px navy dashed;
}
#boleto .cut p {
margin: 0 0 5px 0;
padding: 0px;
font-family: 'Arial Narrow';
font-size: 9px;
color: navy;
}
table.header {
width: 666px;
height: 38px;
margin-top: 20px;
margin-bottom: 10px;
border-bottom: 2px navy solid;
}
table.header div.field_cod_banco {
width: 46px;
height: 19px;
margin-left: 5px;
padding-top: 3px;
text-align: center;
font-size: 14px;
font-weight: bold;
color: navy;
border-right: 2px solid navy;
border-left: 2px solid navy;
}
table.header td.linha_digitavel {
width: 464px;
text-align: right;
font: bold 15px Arial;
color: navy
}
table.line {
margin-bottom: 3px;
padding-bottom: 1px;
border-bottom: 1px black solid;
}
table.line tr.titulos td {
height: 13px;
font-family: 'Arial Narrow';
font-size: 9px;
color: navy;
border-left: 5px #ffe000 solid;
padding-left: 2px;
}
table.line tr.campos td {
height: 12px;
font-size: 10px;
color: black;
border-left: 5px #ffe000 solid;
padding-left: 2px;
}
table.line td p {
font-size: 10px;
}
table.line tr.campos td.ag_cod_cedente,
table.line tr.campos td.nosso_numero,
table.line tr.campos td.valor_doc,
table.line tr.campos td.vencimento2,
table.line tr.campos td.ag_cod_cedente2,
table.line tr.campos td.nosso_numero2,
table.line tr.campos td.xvalor,
table.line tr.campos td.valor_doc2
{
text-align: right;
}
table.line tr.campos td.especie,
table.line tr.campos td.qtd,
table.line tr.campos td.vencimento,
table.line tr.campos td.especie_doc,
table.line tr.campos td.aceite,
table.line tr.campos td.carteira,
table.line tr.campos td.especie2,
table.line tr.campos td.qtd2
{
text-align: center;
}
table.line td.last_line {
vertical-align: top;
height: 25px;
}
table.line td.last_line table.line {
margin-bottom: -5px;
border: 0 white none;
}
td.last_line table.line td.instrucoes {
border-left: 0 white none;
padding-left: 5px;
padding-bottom: 0;
margin-bottom: 0;
height: 20px;
vertical-align: top;
}
table.line td.cedente {
width: 298px;
}
table.line td.valor_cobrado2 {
padding-bottom: 0;
margin-bottom: 0;
}
table.line td.ag_cod_cedente {
width: 126px;
}
table.line td.especie {
width: 35px;
}
table.line td.qtd {
width: 53px;
}
table.line td.nosso_numero {
/* width: 120px; */
width: 115px;
padding-right: 5px;
}
table.line td.num_doc {
width: 113px;
}
table.line td.contrato {
width: 72px;
}
table.line td.cpf_cei_cnpj {
width: 132px;
}
table.line td.vencimento {
width: 134px;
}
table.line td.valor_doc {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.desconto {
width: 113px;
}
table.line td.outras_deducoes {
width: 112px;
}
table.line td.mora_multa {
width: 113px;
}
table.line td.outros_acrescimos {
width: 113px;
}
table.line td.valor_cobrado {
/* width: 180px; */
width: 175px;
padding-right: 5px;
background-color: #ffc ;
}
table.line td.sacado {
width: 659px;
}
table.line td.local_pagto {
width: 472px;
}
table.line td.vencimento2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
background-color: #ffc;
}
table.line td.cedente2 {
width: 472px;
}
table.line td.ag_cod_cedente2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.data_doc {
width: 93px;
}
table.line td.num_doc2 {
width: 173px;
}
table.line td.especie_doc {
width: 72px;
}
table.line td.aceite {
width: 34px;
}
table.line td.data_process {
width: 72px;
}
table.line td.nosso_numero2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.reservado {
width: 93px;
background-color: #ffc;
}
table.line td.carteira {
width: 93px;
}
table.line td.especie2 {
width: 53px;
}
table.line td.qtd2 {
width: 133px;
}
table.line td.xvalor {
/* width: 72px; */
width: 67px;
padding-right: 5px;
}
table.line td.valor_doc2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.instrucoes {
width: 475px;
}
table.line td.desconto2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.outras_deducoes2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.mora_multa2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.outros_acrescimos2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.valor_cobrado2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
background-color: #ffc ;
}
table.line td.sacado2 {
width: 659px;
}
table.line td.sacador_avalista {
width: 659px;
}
table.line tr.campos td.sacador_avalista {
width: 472px;
}
table.line td.cod_baixa {
color: navy;
width: 180px;
}
div.footer {
margin-bottom: 30px;
}
div.footer p {
width: 88px;
margin: 0;
padding: 0;
padding-left: 525px;
font-family: 'Arial Narro';
font-size: 9px;
color: navy;
}
div.barcode {
width: 666px;
margin-bottom: 20px;
}
}
@media print {
#instructions {
height: 1px;
visibility: hidden;
overflow: hidden;
}
}
</STYLE>
</head>
<body>
<div id="container">
<div id="instr_header">
<h1><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? $dadosboleto["cpf_cnpj"] : '' ?></h1>
<address><?php echo $dadosboleto["endereco"]; ?><br></address>
<address><?php echo $dadosboleto["cidade_uf"]; ?></address>
</div> <!-- id="instr_header" -->
<div id="">
<!--
Use no lugar do <div id=""> caso queira imprimir sem o logotipo e instruรงรตes
<div id="instructions">
-->
<div id="instr_content">
<p>
O pagamento deste boleto também poderá ser efetuado
nos terminais de Auto-Atendimento BB.
</p>
<h2>Instruções</h2>
<ol>
<li>
Imprima em impressora jato de tinta (ink jet) ou laser, em
qualidade normal ou alta. Não use modo econômico.
<p class="notice">Por favor, configure margens esquerda e direita
para 17mm.</p>
</li>
<li>
Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) e margens
mínimas à esquerda e à direita do
formulário.
</li>
<li>
Corte na linha indicada. Não rasure, risque, fure ou dobre
a região onde se encontra o código de barras
</li>
</ol>
</div> <!-- id="instr_content" -->
</div> <!-- id="instructions" -->
<div id="boleto">
<div class="cut">
<p>Corte na linha pontilhada</p>
</div>
<table cellspacing=0 cellpadding=0 width=666 border=0><TBODY><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
do Sacado</b></div></TD></tr></tbody></table>
<table class="header" border=0 cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width=150><IMG SRC="boletao/logobb.jpg"></td>
<td width=50>
<div class="field_cod_banco"><?php echo $dadosboleto["codigo_banco_com_dv"]?></div>
</td>
<td class="linha_digitavel"><?php echo $dadosboleto["linha_digitavel"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="cedente">Cedente</TD>
<td class="ag_cod_cedente">Agência / Código do Cedente</td>
<td class="especie">Espécie</TD>
<td class="qtd">Quantidade</TD>
<td class="nosso_numero">Nosso número</td>
</tr>
<tr class="campos">
<td class="cedente"><?php echo $dadosboleto["cedente"]; ?> </td>
<td class="ag_cod_cedente"><?php echo $dadosboleto["agencia_codigo"]?> </td>
<td class="especie"><?php echo $dadosboleto["especie"]?> </td>
<TD class="qtd"><?php echo $dadosboleto["quantidade"]?> </td>
<TD class="nosso_numero"><?php echo $dadosboleto["nosso_numero"]?> </td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="num_doc">Número do documento</td>
<td class="contrato">Contrato</TD>
<td class="cpf_cei_cnpj">CPF/CEI/CNPJ</TD>
<td class="vencmento">Vencimento</TD>
<td class="valor_doc">Valor documento</TD>
</tr>
<tr class="campos">
<td class="num_doc"><?php echo $dadosboleto["numero_documento"]?></td>
<td class="contrato"><?php echo $dadosboleto["contrato"]?></td>
<td class="cpf_cei_cnpj"><?php echo $dadosboleto["cpf_cnpj"]?></td>
<td class="vencimento"><?php echo $dadosboleto["data_vencimento"]?></td>
<td class="valor_doc"><?php echo $dadosboleto["valor_boleto"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="desconto">(-) Desconto / Abatimento</td>
<td class="outras_deducoes">(-) Outras deduções</td>
<td class="mora_multa">(+) Mora / Multa</td>
<td class="outros_acrescimos">(+) Outros acréscimos</td>
<td class="valor_cobrado">(=) Valor cobrado</td>
</tr>
<tr class="campos">
<td class="desconto"> </td>
<td class="outras_deducoes"> </td>
<td class="mora_multa"> </td>
<td class="outros_acrescimos"> </td>
<td class="valor_cobrado"> </td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="sacado">Sacado</td>
</tr>
<tr class="campos">
<td class="sacado"><?php echo $dadosboleto["sacado"]?></td>
</tr>
</tbody>
</table>
<div class="footer">
<p>Autenticação mecânica</p>
</div>
<div class="cut">
<p>Corte na linha pontilhada</p>
</div>
<table class="header" border=0 cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width=150><IMG SRC="imagens/logobb.jpg"></td>
<td width=50>
<div class="field_cod_banco"><?php echo $dadosboleto["codigo_banco_com_dv"]?></div>
</td>
<td class="linha_digitavel"><?php echo $dadosboleto["linha_digitavel"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="local_pagto">Local de pagamento</td>
<td class="vencimento2">Vencimento</td>
</tr>
<tr class="campos">
<td class="local_pagto">QUALQUER BANCO ATÉ O VENCIMENTO</td>
<td class="vencimento2"><?php echo $dadosboleto["data_vencimento"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="cedente2">Cedente</td>
<td class="ag_cod_cedente2">Agência/Código cedente</td>
</tr>
<tr class="campos">
<td class="cedente2"><?php echo $dadosboleto["cedente"]?></td>
<td class="ag_cod_cedente2"><?php echo $dadosboleto["agencia_codigo"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="data_doc">Data do documento</td>
<td class="num_doc2">No. documento</td>
<td class="especie_doc">Espécie doc.</td>
<td class="aceite">Aceite</td>
<td class="data_process">Data process.</td>
<td class="nosso_numero2">Nosso número</td>
</tr>
<tr class="campos">
<td class="data_doc"><?php echo $dadosboleto["data_documento"]?></td>
<td class="num_doc2"><?php echo $dadosboleto["numero_documento"]?></td>
<td class="especie_doc"><?php echo $dadosboleto["especie_doc"]?></td>
<td class="aceite"><?php echo $dadosboleto["aceite"]?></td>
<td class="data_process"><?php echo $dadosboleto["data_processamento"]?></td>
<td class="nosso_numero2"><?php echo $dadosboleto["nosso_numero"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="reservado">Uso do banco</td>
<td class="carteira">Carteira</td>
<td class="especie2">Espรฉcie</td>
<td class="qtd2">Quantidade</td>
<td class="xvalor">x Valor</td>
<td class="valor_doc2">(=) Valor documento</td>
</tr>
<tr class="campos">
<td class="reservado"> </td>
<td class="carteira"><?php echo $dadosboleto["carteira"]?> <?php echo isset($dadosboleto["variacao_carteira"]) ? $dadosboleto["variacao_carteira"] : ' ' ?></td>
<td class="especie2"><?php echo $dadosboleto["especie"]?></td>
<td class="qtd2"><?php echo $dadosboleto["quantidade"]?></td>
<td class="xvalor"><?php echo $dadosboleto["valor_unitario"]?></td>
<td class="valor_doc2"><?php echo $dadosboleto["valor_boleto"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr><td class="last_line" rowspan="6">
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="instrucoes">
Instruções (Texto de responsabilidade do cedente)
</td>
</tr>
<tr class="campos">
<td class="instrucoes" rowspan="5">
<p><?php echo $dadosboleto["demonstrativo1"]; ?></p>
<p><?php echo $dadosboleto["demonstrativo2"]; ?></p>
<p><?php echo $dadosboleto["demonstrativo3"]; ?></p>
<p><?php echo $dadosboleto["instrucoes1"]; ?></p>
<p><?php echo $dadosboleto["instrucoes2"]; ?></p>
<p><?php echo $dadosboleto["instrucoes3"]; ?></p>
<p><?php echo $dadosboleto["instrucoes4"]; ?></p>
</td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="desconto2">(-) Desconto / Abatimento</td>
</tr>
<tr class="campos">
<td class="desconto2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="outras_deducoes2">(-) Outras deduções</td>
</tr>
<tr class="campos">
<td class="outras_deducoes2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="mora_multa2">(+) Mora / Multa</td>
</tr>
<tr class="campos">
<td class="mora_multa2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="outros_acrescimos2">(+) Outros Acréscimos</td>
</tr>
<tr class="campos">
<td class="outros_acrescimos2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td class="last_line">
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="valor_cobrado2">(=) Valor cobrado</td>
</tr>
<tr class="campos">
<td class="valor_cobrado2"> </td>
</tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="sacado2">Sacado</td>
</tr>
<tr class="campos">
<td class="sacado2">
<p><?php echo $dadosboleto["sacado"]?></p>
<p><?php echo $dadosboleto["endereco1"]?></p>
<p><?php echo $dadosboleto["endereco2"]?></p>
</td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="sacador_avalista" colspan="2">Sacador/Avalista</td>
</tr>
<tr class="campos">
<td class="sacador_avalista"> </td>
<td class="cod_baixa">Cód. baixa</td>
</tr>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width=666 border=0><TBODY><TR><TD width=666 align=right ><font style="font-size: 10px;">Autenticação mecânica - Ficha de Compensaรงรฃo</font></TD></tr></tbody></table>
<div class="barcode">
<p><?php fbarcode($dadosboleto["codigo_barras"]); ?></p>
</div>
<div class="cut">
<p>Corte na linha pontilhada</p>
</div>
</div>
</div>
</body>
</html>
|
apache-2.0
|
liamw9534/mopidy-evtdev
|
mopidy_evtdev/frontend.py
|
1385
|
from __future__ import unicode_literals
import logging
import pykka
from agent import EvtDevAgent
logger = logging.getLogger(__name__)
class EvtDevFrontend(pykka.ThreadingActor):
def __init__(self, config, core):
super(EvtDevFrontend, self).__init__()
dev_dir = config['evtdev']['dev_dir']
devices = config['evtdev']['devices']
vol_step_size = config['evtdev']['vol_step_size']
refresh = config['evtdev']['refresh']
# EvtDevAgent performs all the handling of device
# key presses on our behalf
self.agent = EvtDevAgent(core, dev_dir, devices,
vol_step_size, refresh)
logger.info('EvtDevAgent started')
def on_stop(self):
"""
Hook for doing any cleanup that should be done *after* the actor has
processed the last message, and *before* the actor stops.
This hook is *not* called when the actor stops because of an unhandled
exception. In that case, the :meth:`on_failure` hook is called instead.
For :class:`ThreadingActor` this method is executed in the actor's own
thread, immediately before the thread exits.
If an exception is raised by this method the stack trace will be
logged, and the actor will stop.
"""
self.agent.stop()
logger.info('EvtDevAgent stopped')
|
apache-2.0
|
Casimodo72/Casimodo.Lib
|
src/Casimodo.Lib.Database/DbRepositoryCore.cs
|
28458
|
๏ปฟusing Casimodo.Lib.ComponentModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Casimodo.Lib.Data
{
public class DbRepositoryCoreProvider
{
public DbRepositoryCoreProvider()
{
Items = new Dictionary<Type, DbRepositoryCore>();
}
Dictionary<Type, DbRepositoryCore> Items { get; set; }
public void Add<TContext>(DbRepositoryCore core)
where TContext : DbContext
{
Items.Add(typeof(TContext), core);
}
public DbRepositoryCore GetCoreFor<TContext>()
where TContext : DbContext
{
return Items[typeof(TContext)];
}
}
/// <summary>
/// Used by Mojen Generators.
/// </summary>
public class DbRepoContainer
{
protected readonly DbContext _db;
public DbRepoContainer(DbContext db)
{
_db = db;
}
}
[Flags]
public enum DbRepoOp
{
None = 0,
Add = 1 << 0,
Update = 1 << 1,
Delete = 1 << 2,
MoveToRecycleBin = 1 << 3,
RestoreSelfDeleted = 1 << 4,
UpdateMoveToRecycleBin = Update | MoveToRecycleBin
}
public abstract class DbRepoOperationContext<TDb, TRepoAggregate> : DbRepoOperationContext
where TDb : DbContext
where TRepoAggregate : DbRepoContainer
{
public TDb Db { get; set; }
public TRepoAggregate Repos { get; set; }
public sealed override DbContext GetDb()
{
return Db;
}
public sealed override DbRepoContainer GetRepos()
{
return Repos;
}
}
public class OperationOriginInfo
{
public Guid Id { get; set; }
public Guid TypeId { get; set; }
}
public class DbRepoCurrentUserInfo
{
public Guid UserId { get; set; }
public string UserName { get; set; }
}
public abstract class DbRepositoryCore
{
public DateTimeOffset GetTime()
{
return DateTimeOffset.UtcNow;
}
public virtual object Create<TEntity>(DbContext db)
where TEntity : class, new()
{
Guard.ArgNotNull(db, nameof(db));
return new TEntity();
}
public abstract DbRepoOperationContext CreateOperationContext(object item, DbRepoOp op, DbContext db, MojDataGraphMask mask = null);
public virtual DbRepoCurrentUserInfo GetCurrentUserInfo()
{
throw new NotImplementedException();
}
void ProcessPropertyModified(DbRepoOperationContext ctx, object target, PropertyInfo prop, object oldValue, object newValue)
{
try
{
ctx.TargetItem = target;
ctx.Prop = prop;
ctx.OldPropValue = oldValue;
ctx.NewPropValue = newValue;
OnPropertyModified(ctx);
}
finally
{
ctx.TargetItem = null;
ctx.Prop = null;
ctx.OldPropValue = null;
ctx.NewPropValue = null;
}
}
public object UpdateUsingMask(DbRepoOperationContext ctx)
{
Guard.ArgNotNull(ctx, nameof(ctx));
var db = ctx.GetDb();
var source = ctx.Item;
var mask = ctx.UpdateMask;
if (mask == null) throw new ArgumentException("The mask must be assigned.", nameof(ctx));
var type = source.GetType();
var key = ((IKeyAccessor)source).GetKeyObject();
if (key == null)
throw new DbRepositoryException($"Update error: Item has no key assigned (type: '{type.Name}').");
var target = db.Find(type, key);
if (target == null)
throw new DbRepositoryException($"Update error: Previous item not found (type: '{type.Name}', ID: '{key}').");
bool same = target == source;
var entry = db.Entry(target);
PropertyInfo prop;
object newValue;
// Leaf properties
foreach (var propName in mask.Properties)
{
if (same)
{
throw new DbRepositoryException("Unexpected update of same object.");
// KABU TODO: IMPORTANT: CLARIFY what this case is about.
// Why and when do we expect the source and target to be the same object.
// Why do we mark properties as modified in this case.
// And why do we process equal objects at all?
//entry.Property(propName).IsModified = true;
}
else
{
prop = type.GetProperty(propName);
newValue = prop.GetValue(source);
// Mark as modified and assign if changed.
var oldValue = prop.GetValue(target);
if (!Equals(oldValue, newValue))
{
prop.SetValue(target, newValue);
entry.Property(propName).IsModified = true;
ProcessPropertyModified(ctx, target, prop, oldValue, newValue);
}
}
}
// Reference properties to entity or complex type.
foreach (var referenceNode in mask.References)
{
// KABU TODO: How to differentiate references to entities from references to complex types?
if (referenceNode.Multiplicity.HasFlag(MojMultiplicity.Many))
{
// Collections
if (referenceNode.Binding.HasFlag(MojReferenceBinding.Independent))
{
UpdateIndependentCollection(db, type, entry, source, target, referenceNode);
}
else
{
throw new DbRepositoryException("Update error: Update of non-independent collections is " +
$"not supported yet (Property: '{referenceNode.Name}').");
}
}
else
{
// Singles
if (referenceNode.Binding.HasFlag(MojReferenceBinding.Loose))
{
prop = type.GetProperty(referenceNode.ForeignKey);
newValue = prop.GetValue(source);
// Loose navigation properties: Update the foreign key value only.
// Mark as modified and assign if changed.
if (!Equals(prop.GetValue(target), newValue))
{
prop.SetValue(target, newValue);
entry.Property(referenceNode.ForeignKey).IsModified = true;
}
continue;
}
// Nested reference
prop = type.GetProperty(referenceNode.Name);
newValue = prop.GetValue(source);
var foreignKeyProp = type.GetProperty(referenceNode.ForeignKey);
var oldValue = foreignKeyProp.GetValue(target);
if (newValue == null)
{
// NULL values are only acceptable if the value was also NULL beforehand.
if (oldValue != null)
throw new DbRepositoryException("Update error: The nested reference " +
$"property '{referenceNode.Name}' must not be set to NULL.");
}
else if (newValue != null)
{
if (oldValue == null)
{
// The referenced entity was not added yet.
// Add the new entity.
newValue = db.Add(newValue).Entity;
// TODO: REMOVE: db.Set(prop.PropertyType).Add(newValue);
ApplyTenantKey(newValue);
SetIsNested(newValue);
OnAdded(ctx.CreateSubContext(newValue, op: DbRepoOp.Add));
// Set the reference entitity.
prop.SetValue(target, newValue);
// Set the foreign key to the referenced entity.
foreignKeyProp.SetValue(target, ((IKeyAccessor)newValue).GetKeyObject());
entry.Property(referenceNode.ForeignKey).IsModified = true;
}
else
{
var newForeignKey = foreignKeyProp.GetValue(source);
if (!object.Equals(oldValue, newForeignKey))
throw new DbRepositoryException("Update error: Nested reference " +
$"property '{referenceNode.Name}': The referenced entity must not be changed once the reference is established.");
// Process the nested object.
newValue = UpdateUsingMask(ctx.CreateSubContext(newValue, op: DbRepoOp.Update, mask: referenceNode.To));
// Assign to target object.
// NOTE: Do *not* mark nested navigation properties as modified.
prop.SetValue(target, newValue);
}
}
}
}
ctx = ctx.CreateSubContext(target, mask: mask);
OnUpdated(ctx);
return target;
}
static void UpdateIndependentCollection(DbContext db, Type type, EntityEntry entry, object source, object target, MojReferenceDataGraphMask referenceNode)
{
var prop = type.GetProperty(referenceNode.Name);
dynamic newItems = prop.GetValue(source);
dynamic addedItems = Enumerable.ToList(newItems);
// Load current items from DB.
entry.Collection(referenceNode.Name).Load();
dynamic curItems = prop.GetValue(target);
bool found;
foreach (var curItem in Enumerable.ToArray(curItems))
{
var curKey = GetEntityKey(curItem);
// Search this current item in the list of new items.
found = false;
foreach (var newItem in newItems)
{
var newKey = GetEntityKey(newItem);
if (Equals(newKey, curKey))
{
found = true;
addedItems.Remove(newItem);
break;
}
}
if (!found)
{
// No current item was found that matches the previous item.
// Remove item
curItems.Remove(curItem);
}
}
// Add newly added items.
if (addedItems.Count != 0)
{
var itemType = prop.PropertyType.GetGenericArguments()[0];
foreach (var newItem in addedItems)
{
var dbItem = db.Find(itemType, GetEntityKey(newItem));
if (dbItem != null)
curItems.Add(dbItem);
}
}
}
static object GetEntityKey(object entity)
{
return ((IKeyAccessor)entity).GetKeyObject();
}
// KABU TODO: REMOVE? Tenant mechanism has changed.
protected void ApplyTenantKey(object entity)
{
if (entity is not IMultitenant multitenant)
return;
var tenantId = ServiceLocator.Current.GetInstance<ICurrentTenantProvider>().GetTenantId(required: false);
if (tenantId == null)
throw new InvalidOperationException("The CurrentTenantGuid is not assigned.");
multitenant.SetTenantKey(tenantId.Value);
}
protected void SetIsNested(object entity)
{
SetProp(entity, CommonDataNames.IsNested, true);
}
public virtual void OnLoaded(object item)
{
// NOP
}
public virtual void OnLoaded(object item, DbContext db)
{
OnLoaded(item);
}
public virtual void OnAdded(DbRepoOperationContext ctx)
{
OnSaving(ctx);
}
public virtual void OnUpdated(DbRepoOperationContext ctx)
{
OnSaving(ctx);
}
public virtual void OnSaving(DbRepoOperationContext ctx)
{
// NOP
}
/// <summary>
/// NOTE: Called only when updating using data mask.
/// </summary>
public virtual void OnPropertyModified(DbRepoOperationContext ctx)
{
// NOP
}
public virtual void OnDeleting(DbRepoOperationContext ctx)
{
// NOP
}
public virtual void RestoreSelfDeleted(DbRepoOperationContext ctx)
{
// NOP
}
public virtual void RestoreCascadeDeleted(DbRepoOperationContext ctx)
{
// NOP
}
public virtual void SetAdded(object item, DateTimeOffset? now)
{
SetAddedCore(item, now, null, null);
}
public void SetAddedCore(object item, DateTimeOffset? now, Guid? userId, string userName)
{
Guard.ArgNotNull(item, nameof(item));
now ??= GetTime();
if (HasProp(item, CommonDataNames.CreatedOn))
{
SetProp(item, CommonDataNames.CreatedOn, now);
SetProp(item, CommonDataNames.CreatedBy, userName);
SetProp(item, CommonDataNames.CreatedByUserId, userId);
}
if (HasProp(item, CommonDataNames.ModifiedOn))
{
SetProp(item, CommonDataNames.ModifiedOn, now);
SetProp(item, CommonDataNames.ModifiedBy, userName);
SetProp(item, CommonDataNames.ModifiedByUserId, userId);
}
}
public virtual void SetModified(object item, DateTimeOffset? now)
{
SetModifiedCore(item, now, null, null);
}
public void SetModifiedCore(object item, DateTimeOffset? now, Guid? userId, string userName)
{
Guard.ArgNotNull(item, nameof(item));
if (!HasProp(item, CommonDataNames.ModifiedOn))
return;
now ??= GetTime();
SetProp(item, CommonDataNames.ModifiedOn, now);
SetProp(item, CommonDataNames.ModifiedBy, userName);
SetProp(item, CommonDataNames.ModifiedByUserId, userId);
}
public virtual void SetDeleted(object item, DateTimeOffset? now)
{
SetDeletedCore(item, now, null, null);
}
public void SetDeletedCore(object item, DateTimeOffset? now, Guid? userId, string userName)
{
Guard.ArgNotNull(item, nameof(item));
if (!HasProp(item, CommonDataNames.IsDeleted))
return;
now ??= GetTime();
SetProp(item, CommonDataNames.IsDeleted, true);
if (GetProp<DateTimeOffset?>(item, CommonDataNames.DeletedOn) == null)
{
SetProp(item, CommonDataNames.DeletedOn, now);
SetProp(item, CommonDataNames.DeletedBy, userName);
SetProp(item, CommonDataNames.DeletedByUserId, userId);
}
//SetProp(item, CommonDataNames.DeletedByDeviceId, ?);
if (GetProp(item, CommonDataNames.IsSelfDeleted, false) == true &&
GetProp<DateTimeOffset?>(item, CommonDataNames.SelfDeletedOn) == null)
{
SetProp(item, CommonDataNames.SelfDeletedOn, now);
SetProp(item, CommonDataNames.SelfDeletedBy, userName);
SetProp(item, CommonDataNames.SelfDeletedByUserId, userId);
//SetProp(item, CommonDataNames.SelfDeletedByDeviceId, ?);
}
if (GetProp(item, CommonDataNames.IsRecyclableDeleted, false) == true &&
GetProp<DateTimeOffset?>(item, CommonDataNames.RecyclableDeletedOn) == null)
{
SetProp(item, CommonDataNames.RecyclableDeletedOn, now);
SetProp(item, CommonDataNames.RecyclableDeletedBy, userName);
SetProp(item, CommonDataNames.RecyclableDeletedByUserId, userId);
//SetProp(item, CommonDataNames.RecyclableDeletedByDeviceId, ?);
}
}
protected void CompleteDeleteInfo(object item, DateTimeOffset? now)
{
if (GetProp<DateTimeOffset?>(item, CommonDataNames.DeletedOn, null) == null &&
(GetProp(item, CommonDataNames.IsDeleted, defaultValue: false) ||
GetProp(item, CommonDataNames.IsSelfDeleted, defaultValue: false) ||
GetProp(item, CommonDataNames.IsCascadeDeleted, defaultValue: false) ||
GetProp(item, CommonDataNames.IsRecyclableDeleted, defaultValue: false)))
{
SetDeleted(item, now ?? GetTime());
}
}
protected bool IsCascadeDeletedByOrigin(object item, DbRepoOperationContext ctx)
{
if (GetProp(item, CommonDataNames.IsCascadeDeleted, false) == false)
return false;
if (GetProp<Guid?>(item, CommonDataNames.CascadeDeletedByOriginId) != ctx.OriginInfo.Id)
return false;
return true;
}
/// <summary>
/// Returns true if the item was changed.
/// </summary>
protected bool ProcessCascadeItem(object item, DbRepoOperationContext ctx)
{
if (ctx.OriginOperation == DbRepoOp.None)
throw new DbRepositoryException("Cascade error: The repository operation was not specified.");
if (item == null)
return false;
if (ctx.Origin == item)
return false;
if (GetProp(item, CommonDataNames.IsDeleted, false) == true)
return false;
if (ctx.OriginOperation == DbRepoOp.UpdateMoveToRecycleBin)
{
return InheritRecyclableDeleted(item, ctx);
}
else if (ctx.OriginOperation == DbRepoOp.Update)
{
return SetCascadeDeleted(item, ctx);
}
else throw new DbRepositoryException($"Cascade error: Unexpected repository operation '{ctx.OriginOperation}'.");
}
protected bool SetCascadeDeleted(object item, DbRepoOperationContext ctx)
{
// KABU TODO: Do not create this for every call.
var setters = new Func<bool>[]
{
() => SetChangedProp(item, CommonDataNames.IsCascadeDeleted, true),
() => SetChangedProp<DateTimeOffset?>(item, CommonDataNames.CascadeDeletedOn, GetProp<DateTimeOffset?>(ctx.Origin, CommonDataNames.DeletedOn, ctx.Time)),
() => SetChangedProp<Guid?>(item, CommonDataNames.CascadeDeletedByOriginTypeId, ctx.OriginInfo.TypeId),
() => SetChangedProp<Guid?>(item, CommonDataNames.CascadeDeletedByOriginId, ctx.OriginInfo.Id),
() => SetChangedProp(item, CommonDataNames.CascadeDeletedBy, GetProp<string>(ctx.Origin, CommonDataNames.DeletedBy, null)),
() => SetChangedProp<Guid?>(item, CommonDataNames.CascadeDeletedByUserId, GetProp<Guid?>(ctx.Origin, CommonDataNames.DeletedByUserId, null)),
() => SetChangedProp<Guid?>(item, CommonDataNames.CascadeDeletedByDeviceId, GetProp<Guid?>(ctx.Origin, CommonDataNames.DeletedByDeviceId, null)),
};
bool changed = false;
foreach (var setter in setters)
changed = setter() || changed;
return changed;
}
protected bool InheritRecyclableDeleted(object item, DbRepoOperationContext ctx)
{
if (ctx.Origin == item)
return false;
if (!GetProp(ctx.Origin, CommonDataNames.IsRecyclableDeleted, false))
return false;
// KABU TODO: Do not create this for every call.
var setters = new Func<bool>[]
{
() => SetChangedProp<bool>(item, CommonDataNames.IsRecyclableDeleted, true),
() => MapChangedProp<DateTimeOffset?>(ctx.Origin, item, CommonDataNames.RecyclableDeletedOn, ctx.Time),
() => MapChangedProp<string>(ctx.Origin, item, CommonDataNames.RecyclableDeletedBy),
() => MapChangedProp<Guid?>(ctx.Origin, item, CommonDataNames.RecyclableDeletedByUserId),
() => MapChangedProp<Guid?>(ctx.Origin, item, CommonDataNames.RecyclableDeletedByDeviceId)
};
bool changed = false;
foreach (var setter in setters)
changed = setter() || changed;
return changed;
}
protected void ClearDeleted(object item, DbRepoOperationContext ctx)
{
SetProp(item, CommonDataNames.IsDeleted, false);
SetProp(item, CommonDataNames.DeletedOn, null);
SetProp(item, CommonDataNames.DeletedBy, null);
SetProp(item, CommonDataNames.DeletedByUserId, null);
SetProp(item, CommonDataNames.DeletedByDeviceId, null);
SetProp(item, CommonDataNames.IsSelfDeleted, false);
SetProp(item, CommonDataNames.SelfDeletedOn, null);
SetProp(item, CommonDataNames.SelfDeletedBy, null);
SetProp(item, CommonDataNames.SelfDeletedByUserId, null);
SetProp(item, CommonDataNames.SelfDeletedByDeviceId, null);
SetProp(item, CommonDataNames.IsCascadeDeleted, false);
SetProp(item, CommonDataNames.CascadeDeletedOn, null);
SetProp(item, CommonDataNames.CascadeDeletedBy, null);
SetProp(item, CommonDataNames.CascadeDeletedByUserId, null);
SetProp(item, CommonDataNames.CascadeDeletedByDeviceId, null);
SetProp(item, CommonDataNames.CascadeDeletedByOriginTypeId, null);
SetProp(item, CommonDataNames.CascadeDeletedByOriginId, null);
SetProp(item, CommonDataNames.IsRecyclableDeleted, false);
SetProp(item, CommonDataNames.RecyclableDeletedOn, null);
SetProp(item, CommonDataNames.RecyclableDeletedBy, null);
SetProp(item, CommonDataNames.RecyclableDeletedByUserId, null);
SetProp(item, CommonDataNames.RecyclableDeletedByDeviceId, null);
}
/// <summary>
/// Updates the set of DB entities specified by the given @predicate
/// using the specified collection of entities.
/// Newly added entities in the collection are added to the DB.
/// Existing entities in the collection and the DB are updated and saved to DB.
/// WARNING: Removed entities are deleted physically from the DB.
/// </summary>
public void UpdateNestedCollection<T, TKey>(
IEnumerable<T> collection,
Expression<Func<T, bool>> predicate,
Expression<Func<T, TKey>> keySelector,
IDbRepository db,
DbRepoOperationContext ctx)
where T : class
{
var keySel = keySelector.Compile();
var items = new List<T>(collection);
var entitySet = db.Context.Set<T>();
// Get keys of existing entities from DB.
var existingIds = entitySet.Where(predicate).Select(keySelector).Cast<TKey>();
foreach (var id in existingIds)
{
var update = items.FirstOrDefault(x => keySel(x).Equals(id));
if (update != null)
{
// Modified. This entity exists in the collection and in the DB.
// Update the modified nested entity and save to DB.
// Check for local duplicate.
var local = entitySet.Local.FirstOrDefault(x => keySel(x).Equals(id));
if (local != update)
throw new DbRepositoryException("An other instance of this entity already exists in the DbContext.");
db.UpdateEntity(ctx.CreateSubContext(update, op: DbRepoOp.Update));
items.Remove(update);
}
else
{
// This DB entity does not exist anymore in the collection.
// Delete **physically** from DB.
db.DeleteEntityByKey(id, ctx.CreateSubDeleteOperation());
}
}
foreach (var item in items)
{
// This entity was added to the collection.
// I.e. it did not exist before in the DB.
// Add to DB.
db.AddEntity(ctx.CreateSubContext(item, op: DbRepoOp.Add));
}
}
// Helpers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public bool HasProp(object item, string name)
{
return HProp.HasProp(item, name);
}
public void SetProp(object item, string name, object value)
{
HProp.SetProp(item, name, value);
}
public bool SetChangedProp<T>(object item, string name, T value)
{
return HProp.SetChangedProp<T>(item, name, value);
}
public void MapProp<T>(object source, object target, string name, T defaultValue = default)
{
HProp.MapProp<T>(source, target, name, defaultValue);
}
public bool MapChangedProp<T>(object source, object target, string name, T defaultValue = default)
{
return HProp.MapChangedProp<T>(source, target, name, defaultValue);
}
public T GetProp<T>(object item, string name, T defaultValue = default)
{
return HProp.GetProp(item, name, defaultValue);
}
// Error helpers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public void ThrowUniquePropValueExists<T>(string prop, object value)
{
var display = HProp.Display(typeof(T), prop).Text;
throw new DbRepositoryException($"Der Wert '{value}' fรผr '{display}' ist bereits vergeben.");
}
public void ThrowUniquePropValueExistsCustom<T>(string prop, object value, string errorMessage)
{
var display = HProp.Display(typeof(T), prop).Text;
throw new DbRepositoryException(string.Format(errorMessage, value, display));
}
public void ThrowUniquePropValueMustNotBeNull<T>(string prop)
{
var display = HProp.Display(typeof(T), prop).Text;
throw new DbRepositoryException($"Ein Wert fรผr '{display}' wird benรถtigt.");
}
public void ThrowUniquePropValueMustNotBeLessThan<T>(string prop, object value)
{
var display = HProp.Display(typeof(T), prop).Text;
throw new DbRepositoryException($"Der Wert fรผr '{display}' darf nicht kleiner als {value} sein.");
}
public void ThrowUniquePropValueMustNotBeGreaterThan<T>(string prop, object value)
{
var display = HProp.Display(typeof(T), prop).Text;
throw new DbRepositoryException($"Der Wert fรผr '{display}' darf nicht grรถรer als {value} sein.");
}
public void ThrowStaticUserIdPropMustNotBeModified<T>(string prop)
{
var display = HProp.Display(typeof(T), prop).Text;
throw new DbRepositoryException($"Die User-Identifikations-Eigenschaft '{display}' darf nicht mehr verรคndert werden.");
}
}
}
|
apache-2.0
|
eris-ltd/eris-db
|
execution/wasm/wasm_test.go
|
5919
|
package wasm
import (
"encoding/hex"
"fmt"
"math/big"
"testing"
"github.com/hyperledger/burrow/execution/native"
"github.com/hyperledger/burrow/execution/exec"
"github.com/hyperledger/burrow/acm/acmstate"
"github.com/hyperledger/burrow/binary"
"github.com/hyperledger/burrow/execution/engine"
"github.com/hyperledger/burrow/execution/evm/abi"
"github.com/hyperledger/burrow/crypto"
"github.com/stretchr/testify/require"
)
func TestStaticCallWithValue(t *testing.T) {
cache := acmstate.NewMemoryState()
params := engine.CallParams{
Origin: crypto.ZeroAddress,
Caller: crypto.ZeroAddress,
Callee: crypto.ZeroAddress,
Input: []byte{},
Value: *big.NewInt(0),
Gas: big.NewInt(1000),
}
vm := Default()
blockchain := new(engine.TestBlockchain)
eventSink := exec.NewNoopEventSink()
// run constructor
runtime, cerr := vm.Execute(cache, blockchain, eventSink, params, Bytecode_storage_test)
require.NoError(t, cerr)
// run getFooPlus2
spec, err := abi.ReadSpec(Abi_storage_test)
require.NoError(t, err)
calldata, _, err := spec.Pack("getFooPlus2")
params.Input = calldata
returndata, cerr := vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, cerr)
data := abi.GetPackingTypes(spec.Functions["getFooPlus2"].Outputs)
err = spec.Unpack(returndata, "getFooPlus2", data...)
require.NoError(t, err)
returnValue := *data[0].(*uint64)
var expected uint64
expected = 104
require.Equal(t, expected, returnValue)
// call incFoo
calldata, _, err = spec.Pack("incFoo")
params.Input = calldata
returndata, cerr = vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, cerr)
require.Equal(t, returndata, []byte{})
// run getFooPlus2
calldata, _, err = spec.Pack("getFooPlus2")
require.NoError(t, err)
params.Input = calldata
returndata, cerr = vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, cerr)
spec.Unpack(returndata, "getFooPlus2", data...)
expected = 105
returnValue = *data[0].(*uint64)
require.Equal(t, expected, returnValue)
}
func TestCREATE(t *testing.T) {
cache := acmstate.NewMemoryState()
params := engine.CallParams{
Origin: crypto.ZeroAddress,
Caller: crypto.ZeroAddress,
Callee: crypto.ZeroAddress,
Input: []byte{},
Value: *big.NewInt(0),
Gas: big.NewInt(1000),
}
vm := New(engine.Options{Natives: native.MustDefaultNatives()})
blockchain := new(engine.TestBlockchain)
eventSink := exec.NewNoopEventSink()
// run constructor
runtime, cerr := vm.Execute(cache, blockchain, eventSink, params, CREATETest)
require.NoError(t, cerr)
// run createChild
spec, err := abi.ReadSpec(Abi_CREATETest)
require.NoError(t, err)
calldata, _, err := spec.Pack("createChild")
params.Input = calldata
_, rerr := vm.Execute(cache, blockchain, eventSink, params, runtime)
vm.options.Nonce = []byte{0xff}
_, rerr = vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, rerr)
// get created child
calldata, _, err = spec.Pack("getChild", "0")
require.NoError(t, err)
params.Input = calldata
res, rerr := vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, rerr)
require.Equal(t, "000000000000000000000000ef2fb521372225b89169ba60500142f68ebd82d3", hex.EncodeToString(res))
calldata, _, err = spec.Pack("getChild", "1")
require.NoError(t, err)
params.Input = calldata
res, rerr = vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, rerr)
require.Equal(t, "00000000000000000000000089686394a7cf94be0aa48ae593fe3cad5cbdbace", hex.EncodeToString(res))
}
func TestSelfDestruct(t *testing.T) {
cache := acmstate.NewMemoryState()
params := engine.CallParams{
Origin: crypto.ZeroAddress,
Caller: crypto.ZeroAddress,
Callee: crypto.ZeroAddress,
Input: []byte{},
Value: *big.NewInt(0),
Gas: big.NewInt(1000),
}
vm := New(engine.Options{Natives: native.MustDefaultNatives()})
blockchain := new(engine.TestBlockchain)
eventSink := exec.NewNoopEventSink()
// run constructor
runtime, cerr := vm.Execute(cache, blockchain, eventSink, params, CREATETest)
require.NoError(t, cerr)
require.Equal(t, 1, len(cache.Accounts))
// run selfdestruct
spec, err := abi.ReadSpec(Abi_CREATETest)
require.NoError(t, err)
calldata, _, err := spec.Pack("close")
params.Input = calldata
_, rerr := vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, rerr)
require.Equal(t, 0, len(cache.Accounts))
}
func TestMisc(t *testing.T) {
cache := acmstate.NewMemoryState()
params := engine.CallParams{
Origin: crypto.ZeroAddress,
Caller: crypto.ZeroAddress,
Callee: crypto.ZeroAddress,
Input: []byte{},
Value: *big.NewInt(0),
Gas: big.NewInt(1000),
}
vm := New(engine.Options{Natives: native.MustDefaultNatives()})
blockchain := new(engine.TestBlockchain)
eventSink := exec.NewNoopEventSink()
// run constructor
runtime, cerr := vm.Execute(cache, blockchain, eventSink, params, CREATETest)
require.NoError(t, cerr)
// run txGasPrice
spec, err := abi.ReadSpec(Abi_CREATETest)
require.NoError(t, err)
calldata, _, err := spec.Pack("txPrice")
params.Input = calldata
res, rerr := vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, rerr)
require.Equal(t, "0000000000000000000000000000000000000000000000000000000000000001", hex.EncodeToString(res))
// run blockDifficulty
spec, err = abi.ReadSpec(Abi_CREATETest)
require.NoError(t, err)
calldata, _, err = spec.Pack("blockDifficulty")
params.Input = calldata
res, rerr = vm.Execute(cache, blockchain, eventSink, params, runtime)
require.NoError(t, rerr)
require.Equal(t, "0000000000000000000000000000000000000000000000000000000000000001", hex.EncodeToString(res))
}
func blockHashGetter(height uint64) []byte {
return binary.LeftPadWord256([]byte(fmt.Sprintf("block_hash_%d", height))).Bytes()
}
|
apache-2.0
|
polats/gvr-unity-sdk
|
Samples/CastleDefense/Assets/SampleScenes/UI/Pointers - Gaze Click/Scripts/GazeInteractionInputModule.cs
|
5613
|
๏ปฟ/************************************************************************************
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which is provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
You may obtain a copy of the License at
http://www.oculusvr.com/licenses/LICENSE-3.2
Unless required by applicable law or agreed to in writing, the Oculus VR SDK
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
************************************************************************************/
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
namespace UnityEngine.EventSystems
{
public class GazeInteractionInputModule : OVRInputModule
{
private GameObject currentlyGazedObject;
private float lastTimeGazedObjectChanged;
[Tooltip("How long to wait until a gazed control is activated")]
public float activationDwellTime = 1.0f;
private bool isDragging;
override public void Process()
{
base.Process();
// Handle selection
if (!currentlyGazedObject || lastTimeGazedObjectChanged > Time.time)
{
OVRGazePointer.instance.SelectionProgress = 0f;
}
else
{
float currentDwellTime = Time.time - lastTimeGazedObjectChanged;
OVRGazePointer.instance.SelectionProgress = currentDwellTime / activationDwellTime;
}
}
/// <summary>
/// overwritten from the base version so we can use our custom
/// </summary>
/// <returns></returns>
override protected MouseState GetGazePointerData()
{
MouseState state = base.GetGazePointerData();
var raycast = state.GetButtonState(PointerEventData.InputButton.Left).eventData.buttonData.pointerCurrentRaycast;
//get custom press state
PointerEventData.FramePressState pressState = GetGazeButtonState(raycast.gameObject);
//set it
state.SetButtonState(PointerEventData.InputButton.Left, pressState, state.GetButtonState(PointerEventData.InputButton.Left).eventData.buttonData);
return state;
}
/// <summary>
/// Modfied version of the base class that takes into account when which object got hit
/// </summary>
/// <returns></returns>
protected PointerEventData.FramePressState GetGazeButtonState(GameObject rayCastHit)
{
var pressed = Input.GetKeyDown(gazeClickKey) || OVRInput.GetDown(joyPadClickButton);
var released = Input.GetKeyUp(gazeClickKey) || OVRInput.GetUp(joyPadClickButton);
bool shouldImmediatelyRelease;
GameObject newGazedObject = GetCurrentlyGazedGameObject(rayCastHit, out shouldImmediatelyRelease);
if (currentlyGazedObject != newGazedObject)
{
released |= true;
currentlyGazedObject = newGazedObject;
lastTimeGazedObjectChanged = Time.time;
}
float currentDwellTime = Time.time - lastTimeGazedObjectChanged;
if (currentlyGazedObject && currentDwellTime >= activationDwellTime)
{
pressed |= true;
if (shouldImmediatelyRelease)
{
//reset the time so this doesn't get activated again
lastTimeGazedObjectChanged = float.MaxValue;
released |= true; //simulate click
}
}
if (pressed && released)
return PointerEventData.FramePressState.PressedAndReleased;
if (pressed)
return PointerEventData.FramePressState.Pressed;
if (released)
return PointerEventData.FramePressState.Released;
return PointerEventData.FramePressState.NotChanged;
}
private GameObject GetCurrentlyGazedGameObject(GameObject go, out bool shouldImmediatelyRelease)
{
shouldImmediatelyRelease = true;
if (!go)
{
return null;
}
Slider slider = go.GetComponentInParent<Slider>();
if (slider)
{
shouldImmediatelyRelease = false;
return slider.gameObject;
}
Button button = go.GetComponentInParent<Button>();
if (button)
{
return button.gameObject;
}
Toggle toggle = go.GetComponentInParent<Toggle>();
if (toggle)
{
return toggle.gameObject;
}
//special thing to make everything actionable with gaze controls
GazeInteractionReceiver gazeInteractionReceiver = go.GetComponentInParent<GazeInteractionReceiver>();
if (gazeInteractionReceiver)
{
return gazeInteractionReceiver.gameObject;
}
return null;
}
public void SetActivationDwellTime(float v)
{
activationDwellTime = v;
}
}
}
|
apache-2.0
|
googleapis/gapic-generator-csharp
|
Google.Api.Generator.Tests/ProtoTests/Showcase/Echo.g.cs
|
134311
|
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtoTests/Showcase/google/showcase/v1beta1/echo.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Showcase.V1Beta1 {
/// <summary>Holder for reflection information generated from ProtoTests/Showcase/google/showcase/v1beta1/echo.proto</summary>
public static partial class EchoReflection {
#region Descriptor
/// <summary>File descriptor for ProtoTests/Showcase/google/showcase/v1beta1/echo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static EchoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjZQcm90b1Rlc3RzL1Nob3djYXNlL2dvb2dsZS9zaG93Y2FzZS92MWJldGEx",
"L2VjaG8ucHJvdG8SF2dvb2dsZS5zaG93Y2FzZS52MWJldGExGhxnb29nbGUv",
"YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90",
"bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoYZ29vZ2xlL2Fw",
"aS9yb3V0aW5nLnByb3RvGiNnb29nbGUvbG9uZ3J1bm5pbmcvb3BlcmF0aW9u",
"cy5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvGh9nb29n",
"bGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1",
"cy5wcm90byKsAQoLRWNob1JlcXVlc3QSEQoHY29udGVudBgBIAEoCUgAEiMK",
"BWVycm9yGAIgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXNIABIzCghzZXZlcml0",
"eRgDIAEoDjIhLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLlNldmVyaXR5Eg4K",
"BmhlYWRlchgEIAEoCRIUCgxvdGhlcl9oZWFkZXIYBSABKAlCCgoIcmVzcG9u",
"c2UiVAoMRWNob1Jlc3BvbnNlEg8KB2NvbnRlbnQYASABKAkSMwoIc2V2ZXJp",
"dHkYAiABKA4yIS5nb29nbGUuc2hvd2Nhc2UudjFiZXRhMS5TZXZlcml0eSJD",
"Cg1FeHBhbmRSZXF1ZXN0Eg8KB2NvbnRlbnQYASABKAkSIQoFZXJyb3IYAiAB",
"KAsyEi5nb29nbGUucnBjLlN0YXR1cyJRChJQYWdlZEV4cGFuZFJlcXVlc3QS",
"FAoHY29udGVudBgBIAEoCUID4EECEhEKCXBhZ2Vfc2l6ZRgCIAEoBRISCgpw",
"YWdlX3Rva2VuGAMgASgJIlkKGFBhZ2VkRXhwYW5kTGVnYWN5UmVxdWVzdBIU",
"Cgdjb250ZW50GAEgASgJQgPgQQISEwoLbWF4X3Jlc3VsdHMYAiABKAUSEgoK",
"cGFnZV90b2tlbhgDIAEoCSJoChNQYWdlZEV4cGFuZFJlc3BvbnNlEjgKCXJl",
"c3BvbnNlcxgBIAMoCzIlLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLkVjaG9S",
"ZXNwb25zZRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiKAoXUGFnZWRFeHBh",
"bmRSZXNwb25zZUxpc3QSDQoFd29yZHMYASADKAkigwIKH1BhZ2VkRXhwYW5k",
"TGVnYWN5TWFwcGVkUmVzcG9uc2USYAoMYWxwaGFiZXRpemVkGAEgAygLMkou",
"Z29vZ2xlLnNob3djYXNlLnYxYmV0YTEuUGFnZWRFeHBhbmRMZWdhY3lNYXBw",
"ZWRSZXNwb25zZS5BbHBoYWJldGl6ZWRFbnRyeRIXCg9uZXh0X3BhZ2VfdG9r",
"ZW4YAiABKAkaZQoRQWxwaGFiZXRpemVkRW50cnkSCwoDa2V5GAEgASgJEj8K",
"BXZhbHVlGAIgASgLMjAuZ29vZ2xlLnNob3djYXNlLnYxYmV0YTEuUGFnZWRF",
"eHBhbmRSZXNwb25zZUxpc3Q6AjgBItkBCgtXYWl0UmVxdWVzdBIuCghlbmRf",
"dGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIABIoCgN0",
"dGwYBCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25IABIjCgVlcnJv",
"chgCIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzSAESOAoHc3VjY2VzcxgDIAEo",
"CzIlLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLldhaXRSZXNwb25zZUgBQgUK",
"A2VuZEIKCghyZXNwb25zZSIfCgxXYWl0UmVzcG9uc2USDwoHY29udGVudBgB",
"IAEoCSI8CgxXYWl0TWV0YWRhdGESLAoIZW5kX3RpbWUYASABKAsyGi5nb29n",
"bGUucHJvdG9idWYuVGltZXN0YW1wIq0BCgxCbG9ja1JlcXVlc3QSMQoOcmVz",
"cG9uc2VfZGVsYXkYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24S",
"IwoFZXJyb3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1c0gAEjkKB3N1Y2Nl",
"c3MYAyABKAsyJi5nb29nbGUuc2hvd2Nhc2UudjFiZXRhMS5CbG9ja1Jlc3Bv",
"bnNlSABCCgoIcmVzcG9uc2UiIAoNQmxvY2tSZXNwb25zZRIPCgdjb250ZW50",
"GAEgASgJKkQKCFNldmVyaXR5Eg8KC1VOTkVDRVNTQVJZEAASDQoJTkVDRVNT",
"QVJZEAESCgoGVVJHRU5UEAISDAoIQ1JJVElDQUwQAzKDDAoERWNobxKYAwoI",
"RWNob0NhbGwSJC5nb29nbGUuc2hvd2Nhc2UudjFiZXRhMS5FY2hvUmVxdWVz",
"dBolLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLkVjaG9SZXNwb25zZSK+AoLT",
"5JMCFyISL3YxYmV0YTEvZWNobzplY2hvOgEqitPkkwKaAhIICgZoZWFkZXIS",
"GQoGaGVhZGVyEg97cm91dGluZ19pZD0qKn0SKwoGaGVhZGVyEiF7dGFibGVf",
"bmFtZT1yZWdpb25zLyovem9uZXMvKi8qKn0SIgoGaGVhZGVyEhh7c3VwZXJf",
"aWQ9cHJvamVjdHMvKn0vKioSMAoGaGVhZGVyEiZ7dGFibGVfbmFtZT1wcm9q",
"ZWN0cy8qL2luc3RhbmNlcy8qLyoqfRIxCgZoZWFkZXISJ3Byb2plY3RzLyov",
"e2luc3RhbmNlX2lkPWluc3RhbmNlcy8qfS8qKhIYCgxvdGhlcl9oZWFkZXIS",
"CHtiYXo9Kip9EiMKDG90aGVyX2hlYWRlchITe3F1eD1wcm9qZWN0cy8qfS8q",
"KhKKAQoGRXhwYW5kEiYuZ29vZ2xlLnNob3djYXNlLnYxYmV0YTEuRXhwYW5k",
"UmVxdWVzdBolLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLkVjaG9SZXNwb25z",
"ZSIvgtPkkwIZIhQvdjFiZXRhMS9lY2hvOmV4cGFuZDoBKtpBDWNvbnRlbnQs",
"ZXJyb3IwARJ6CgdDb2xsZWN0EiQuZ29vZ2xlLnNob3djYXNlLnYxYmV0YTEu",
"RWNob1JlcXVlc3QaJS5nb29nbGUuc2hvd2Nhc2UudjFiZXRhMS5FY2hvUmVz",
"cG9uc2UiIILT5JMCGiIVL3YxYmV0YTEvZWNobzpjb2xsZWN0OgEqKAESVwoE",
"Q2hhdBIkLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLkVjaG9SZXF1ZXN0GiUu",
"Z29vZ2xlLnNob3djYXNlLnYxYmV0YTEuRWNob1Jlc3BvbnNlKAEwARKOAQoL",
"UGFnZWRFeHBhbmQSKy5nb29nbGUuc2hvd2Nhc2UudjFiZXRhMS5QYWdlZEV4",
"cGFuZFJlcXVlc3QaLC5nb29nbGUuc2hvd2Nhc2UudjFiZXRhMS5QYWdlZEV4",
"cGFuZFJlc3BvbnNlIiSC0+STAh4iGS92MWJldGExL2VjaG86cGFnZWRFeHBh",
"bmQ6ASoSoAEKEVBhZ2VkRXhwYW5kTGVnYWN5EjEuZ29vZ2xlLnNob3djYXNl",
"LnYxYmV0YTEuUGFnZWRFeHBhbmRMZWdhY3lSZXF1ZXN0GiwuZ29vZ2xlLnNo",
"b3djYXNlLnYxYmV0YTEuUGFnZWRFeHBhbmRSZXNwb25zZSIqgtPkkwIkIh8v",
"djFiZXRhMS9lY2hvOnBhZ2VkRXhwYW5kTGVnYWN5OgEqErIBChdQYWdlZEV4",
"cGFuZExlZ2FjeU1hcHBlZBIrLmdvb2dsZS5zaG93Y2FzZS52MWJldGExLlBh",
"Z2VkRXhwYW5kUmVxdWVzdBo4Lmdvb2dsZS5zaG93Y2FzZS52MWJldGExLlBh",
"Z2VkRXhwYW5kTGVnYWN5TWFwcGVkUmVzcG9uc2UiMILT5JMCKiIlL3YxYmV0",
"YTEvZWNobzpwYWdlZEV4cGFuZExlZ2FjeU1hcHBlZDoBKhKJAQoEV2FpdBIk",
"Lmdvb2dsZS5zaG93Y2FzZS52MWJldGExLldhaXRSZXF1ZXN0Gh0uZ29vZ2xl",
"LmxvbmdydW5uaW5nLk9wZXJhdGlvbiI8gtPkkwIXIhIvdjFiZXRhMS9lY2hv",
"OndhaXQ6ASrKQRwKDFdhaXRSZXNwb25zZRIMV2FpdE1ldGFkYXRhEnYKBUJs",
"b2NrEiUuZ29vZ2xlLnNob3djYXNlLnYxYmV0YTEuQmxvY2tSZXF1ZXN0GiYu",
"Z29vZ2xlLnNob3djYXNlLnYxYmV0YTEuQmxvY2tSZXNwb25zZSIegtPkkwIY",
"IhMvdjFiZXRhMS9lY2hvOmJsb2NrOgEqGhHKQQ5sb2NhbGhvc3Q6NzQ2OUJx",
"Chtjb20uZ29vZ2xlLnNob3djYXNlLnYxYmV0YTFQAVo0Z2l0aHViLmNvbS9n",
"b29nbGVhcGlzL2dhcGljLXNob3djYXNlL3NlcnZlci9nZW5wcm90b+oCGUdv",
"b2dsZTo6U2hvd2Nhc2U6OlYxQmV0YTFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.RoutingReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Showcase.V1Beta1.Severity), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.EchoRequest), global::Google.Showcase.V1Beta1.EchoRequest.Parser, new[]{ "Content", "Error", "Severity", "Header", "OtherHeader" }, new[]{ "Response" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.EchoResponse), global::Google.Showcase.V1Beta1.EchoResponse.Parser, new[]{ "Content", "Severity" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.ExpandRequest), global::Google.Showcase.V1Beta1.ExpandRequest.Parser, new[]{ "Content", "Error" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.PagedExpandRequest), global::Google.Showcase.V1Beta1.PagedExpandRequest.Parser, new[]{ "Content", "PageSize", "PageToken" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.PagedExpandLegacyRequest), global::Google.Showcase.V1Beta1.PagedExpandLegacyRequest.Parser, new[]{ "Content", "MaxResults", "PageToken" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.PagedExpandResponse), global::Google.Showcase.V1Beta1.PagedExpandResponse.Parser, new[]{ "Responses", "NextPageToken" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.PagedExpandResponseList), global::Google.Showcase.V1Beta1.PagedExpandResponseList.Parser, new[]{ "Words" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.PagedExpandLegacyMappedResponse), global::Google.Showcase.V1Beta1.PagedExpandLegacyMappedResponse.Parser, new[]{ "Alphabetized", "NextPageToken" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.WaitRequest), global::Google.Showcase.V1Beta1.WaitRequest.Parser, new[]{ "EndTime", "Ttl", "Error", "Success" }, new[]{ "End", "Response" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.WaitResponse), global::Google.Showcase.V1Beta1.WaitResponse.Parser, new[]{ "Content" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.WaitMetadata), global::Google.Showcase.V1Beta1.WaitMetadata.Parser, new[]{ "EndTime" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.BlockRequest), global::Google.Showcase.V1Beta1.BlockRequest.Parser, new[]{ "ResponseDelay", "Error", "Success" }, new[]{ "Response" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Showcase.V1Beta1.BlockResponse), global::Google.Showcase.V1Beta1.BlockResponse.Parser, new[]{ "Content" }, null, null, null, null)
}));
}
#endregion
}
#region Enums
/// <summary>
/// A severity enum used to test enum capabilities in GAPIC surfaces.
/// </summary>
public enum Severity {
[pbr::OriginalName("UNNECESSARY")] Unnecessary = 0,
[pbr::OriginalName("NECESSARY")] Necessary = 1,
[pbr::OriginalName("URGENT")] Urgent = 2,
[pbr::OriginalName("CRITICAL")] Critical = 3,
}
#endregion
#region Messages
/// <summary>
/// The request message used for the Echo, Collect and Chat methods.
/// If content or opt are set in this message then the request will succeed.
/// If status is set in this message then the status will be returned as an
/// error.
/// </summary>
public sealed partial class EchoRequest : pb::IMessage<EchoRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<EchoRequest> _parser = new pb::MessageParser<EchoRequest>(() => new EchoRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<EchoRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EchoRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EchoRequest(EchoRequest other) : this() {
severity_ = other.severity_;
header_ = other.header_;
otherHeader_ = other.otherHeader_;
switch (other.ResponseCase) {
case ResponseOneofCase.Content:
Content = other.Content;
break;
case ResponseOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EchoRequest Clone() {
return new EchoRequest(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
/// <summary>
/// The content to be echoed by the server.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return responseCase_ == ResponseOneofCase.Content ? (string) response_ : ""; }
set {
response_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
responseCase_ = ResponseOneofCase.Content;
}
}
/// <summary>Field number for the "error" field.</summary>
public const int ErrorFieldNumber = 2;
/// <summary>
/// The error to be thrown by the server.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Rpc.Status Error {
get { return responseCase_ == ResponseOneofCase.Error ? (global::Google.Rpc.Status) response_ : null; }
set {
response_ = value;
responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.Error;
}
}
/// <summary>Field number for the "severity" field.</summary>
public const int SeverityFieldNumber = 3;
private global::Google.Showcase.V1Beta1.Severity severity_ = global::Google.Showcase.V1Beta1.Severity.Unnecessary;
/// <summary>
/// The severity to be echoed by the server.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Showcase.V1Beta1.Severity Severity {
get { return severity_; }
set {
severity_ = value;
}
}
/// <summary>Field number for the "header" field.</summary>
public const int HeaderFieldNumber = 4;
private string header_ = "";
/// <summary>
/// Optional. This field can be set to test the routing annotation on the Echo method.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Header {
get { return header_; }
set {
header_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "other_header" field.</summary>
public const int OtherHeaderFieldNumber = 5;
private string otherHeader_ = "";
/// <summary>
/// Optional. This field can be set to test the routing annotation on the Echo method.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string OtherHeader {
get { return otherHeader_; }
set {
otherHeader_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
private object response_;
/// <summary>Enum of possible cases for the "response" oneof.</summary>
public enum ResponseOneofCase {
None = 0,
Content = 1,
Error = 2,
}
private ResponseOneofCase responseCase_ = ResponseOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResponseOneofCase ResponseCase {
get { return responseCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearResponse() {
responseCase_ = ResponseOneofCase.None;
response_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EchoRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EchoRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
if (!object.Equals(Error, other.Error)) return false;
if (Severity != other.Severity) return false;
if (Header != other.Header) return false;
if (OtherHeader != other.OtherHeader) return false;
if (ResponseCase != other.ResponseCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (responseCase_ == ResponseOneofCase.Content) hash ^= Content.GetHashCode();
if (responseCase_ == ResponseOneofCase.Error) hash ^= Error.GetHashCode();
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) hash ^= Severity.GetHashCode();
if (Header.Length != 0) hash ^= Header.GetHashCode();
if (OtherHeader.Length != 0) hash ^= OtherHeader.GetHashCode();
hash ^= (int) responseCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (responseCase_ == ResponseOneofCase.Content) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (responseCase_ == ResponseOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
output.WriteRawTag(24);
output.WriteEnum((int) Severity);
}
if (Header.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Header);
}
if (OtherHeader.Length != 0) {
output.WriteRawTag(42);
output.WriteString(OtherHeader);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (responseCase_ == ResponseOneofCase.Content) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (responseCase_ == ResponseOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
output.WriteRawTag(24);
output.WriteEnum((int) Severity);
}
if (Header.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Header);
}
if (OtherHeader.Length != 0) {
output.WriteRawTag(42);
output.WriteString(OtherHeader);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (responseCase_ == ResponseOneofCase.Content) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (responseCase_ == ResponseOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Severity);
}
if (Header.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Header);
}
if (OtherHeader.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherHeader);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EchoRequest other) {
if (other == null) {
return;
}
if (other.Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
Severity = other.Severity;
}
if (other.Header.Length != 0) {
Header = other.Header;
}
if (other.OtherHeader.Length != 0) {
OtherHeader = other.OtherHeader;
}
switch (other.ResponseCase) {
case ResponseOneofCase.Content:
Content = other.Content;
break;
case ResponseOneofCase.Error:
if (Error == null) {
Error = new global::Google.Rpc.Status();
}
Error.MergeFrom(other.Error);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 18: {
global::Google.Rpc.Status subBuilder = new global::Google.Rpc.Status();
if (responseCase_ == ResponseOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 24: {
Severity = (global::Google.Showcase.V1Beta1.Severity) input.ReadEnum();
break;
}
case 34: {
Header = input.ReadString();
break;
}
case 42: {
OtherHeader = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 18: {
global::Google.Rpc.Status subBuilder = new global::Google.Rpc.Status();
if (responseCase_ == ResponseOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 24: {
Severity = (global::Google.Showcase.V1Beta1.Severity) input.ReadEnum();
break;
}
case 34: {
Header = input.ReadString();
break;
}
case 42: {
OtherHeader = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// The response message for the Echo methods.
/// </summary>
public sealed partial class EchoResponse : pb::IMessage<EchoResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<EchoResponse> _parser = new pb::MessageParser<EchoResponse>(() => new EchoResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<EchoResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EchoResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EchoResponse(EchoResponse other) : this() {
content_ = other.content_;
severity_ = other.severity_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EchoResponse Clone() {
return new EchoResponse(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private string content_ = "";
/// <summary>
/// The content specified in the request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return content_; }
set {
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "severity" field.</summary>
public const int SeverityFieldNumber = 2;
private global::Google.Showcase.V1Beta1.Severity severity_ = global::Google.Showcase.V1Beta1.Severity.Unnecessary;
/// <summary>
/// The severity specified in the request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Showcase.V1Beta1.Severity Severity {
get { return severity_; }
set {
severity_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EchoResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EchoResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
if (Severity != other.Severity) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.GetHashCode();
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) hash ^= Severity.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
output.WriteRawTag(16);
output.WriteEnum((int) Severity);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
output.WriteRawTag(16);
output.WriteEnum((int) Severity);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Severity);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EchoResponse other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
if (other.Severity != global::Google.Showcase.V1Beta1.Severity.Unnecessary) {
Severity = other.Severity;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 16: {
Severity = (global::Google.Showcase.V1Beta1.Severity) input.ReadEnum();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 16: {
Severity = (global::Google.Showcase.V1Beta1.Severity) input.ReadEnum();
break;
}
}
}
}
#endif
}
/// <summary>
/// The request message for the Expand method.
/// </summary>
public sealed partial class ExpandRequest : pb::IMessage<ExpandRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ExpandRequest> _parser = new pb::MessageParser<ExpandRequest>(() => new ExpandRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ExpandRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ExpandRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ExpandRequest(ExpandRequest other) : this() {
content_ = other.content_;
error_ = other.error_ != null ? other.error_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ExpandRequest Clone() {
return new ExpandRequest(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private string content_ = "";
/// <summary>
/// The content that will be split into words and returned on the stream.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return content_; }
set {
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "error" field.</summary>
public const int ErrorFieldNumber = 2;
private global::Google.Rpc.Status error_;
/// <summary>
/// The error that is thrown after all words are sent on the stream.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Rpc.Status Error {
get { return error_; }
set {
error_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ExpandRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ExpandRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
if (!object.Equals(Error, other.Error)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.GetHashCode();
if (error_ != null) hash ^= Error.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (error_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (error_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (error_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ExpandRequest other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
if (other.error_ != null) {
if (error_ == null) {
Error = new global::Google.Rpc.Status();
}
Error.MergeFrom(other.Error);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 18: {
if (error_ == null) {
Error = new global::Google.Rpc.Status();
}
input.ReadMessage(Error);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 18: {
if (error_ == null) {
Error = new global::Google.Rpc.Status();
}
input.ReadMessage(Error);
break;
}
}
}
}
#endif
}
/// <summary>
/// The request for the PagedExpand method.
/// </summary>
public sealed partial class PagedExpandRequest : pb::IMessage<PagedExpandRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PagedExpandRequest> _parser = new pb::MessageParser<PagedExpandRequest>(() => new PagedExpandRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PagedExpandRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandRequest(PagedExpandRequest other) : this() {
content_ = other.content_;
pageSize_ = other.pageSize_;
pageToken_ = other.pageToken_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandRequest Clone() {
return new PagedExpandRequest(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private string content_ = "";
/// <summary>
/// The string to expand.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return content_; }
set {
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "page_size" field.</summary>
public const int PageSizeFieldNumber = 2;
private int pageSize_;
/// <summary>
/// The number of words to returned in each page.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PageSize {
get { return pageSize_; }
set {
pageSize_ = value;
}
}
/// <summary>Field number for the "page_token" field.</summary>
public const int PageTokenFieldNumber = 3;
private string pageToken_ = "";
/// <summary>
/// The position of the page to be returned.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PageToken {
get { return pageToken_; }
set {
pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PagedExpandRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PagedExpandRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
if (PageSize != other.PageSize) return false;
if (PageToken != other.PageToken) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.GetHashCode();
if (PageSize != 0) hash ^= PageSize.GetHashCode();
if (PageToken.Length != 0) hash ^= PageToken.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (PageSize != 0) {
output.WriteRawTag(16);
output.WriteInt32(PageSize);
}
if (PageToken.Length != 0) {
output.WriteRawTag(26);
output.WriteString(PageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (PageSize != 0) {
output.WriteRawTag(16);
output.WriteInt32(PageSize);
}
if (PageToken.Length != 0) {
output.WriteRawTag(26);
output.WriteString(PageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (PageSize != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize);
}
if (PageToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PagedExpandRequest other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
if (other.PageSize != 0) {
PageSize = other.PageSize;
}
if (other.PageToken.Length != 0) {
PageToken = other.PageToken;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 16: {
PageSize = input.ReadInt32();
break;
}
case 26: {
PageToken = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 16: {
PageSize = input.ReadInt32();
break;
}
case 26: {
PageToken = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// The request for the PagedExpandLegacy method. This is a pattern used by some legacy APIs. New
/// APIs should NOT use this pattern, but rather something like PagedExpandRequest which conforms to
/// aip.dev/158.
/// </summary>
public sealed partial class PagedExpandLegacyRequest : pb::IMessage<PagedExpandLegacyRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PagedExpandLegacyRequest> _parser = new pb::MessageParser<PagedExpandLegacyRequest>(() => new PagedExpandLegacyRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PagedExpandLegacyRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandLegacyRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandLegacyRequest(PagedExpandLegacyRequest other) : this() {
content_ = other.content_;
maxResults_ = other.maxResults_;
pageToken_ = other.pageToken_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandLegacyRequest Clone() {
return new PagedExpandLegacyRequest(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private string content_ = "";
/// <summary>
/// The string to expand.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return content_; }
set {
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "max_results" field.</summary>
public const int MaxResultsFieldNumber = 2;
private int maxResults_;
/// <summary>
/// The number of words to returned in each page.
/// (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
/// violates aip.dev/158. Ordinarily, this should be page_size. --)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int MaxResults {
get { return maxResults_; }
set {
maxResults_ = value;
}
}
/// <summary>Field number for the "page_token" field.</summary>
public const int PageTokenFieldNumber = 3;
private string pageToken_ = "";
/// <summary>
/// The position of the page to be returned.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PageToken {
get { return pageToken_; }
set {
pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PagedExpandLegacyRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PagedExpandLegacyRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
if (MaxResults != other.MaxResults) return false;
if (PageToken != other.PageToken) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.GetHashCode();
if (MaxResults != 0) hash ^= MaxResults.GetHashCode();
if (PageToken.Length != 0) hash ^= PageToken.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (MaxResults != 0) {
output.WriteRawTag(16);
output.WriteInt32(MaxResults);
}
if (PageToken.Length != 0) {
output.WriteRawTag(26);
output.WriteString(PageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (MaxResults != 0) {
output.WriteRawTag(16);
output.WriteInt32(MaxResults);
}
if (PageToken.Length != 0) {
output.WriteRawTag(26);
output.WriteString(PageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (MaxResults != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxResults);
}
if (PageToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PagedExpandLegacyRequest other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
if (other.MaxResults != 0) {
MaxResults = other.MaxResults;
}
if (other.PageToken.Length != 0) {
PageToken = other.PageToken;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 16: {
MaxResults = input.ReadInt32();
break;
}
case 26: {
PageToken = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
case 16: {
MaxResults = input.ReadInt32();
break;
}
case 26: {
PageToken = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// The response for the PagedExpand method.
/// </summary>
public sealed partial class PagedExpandResponse : pb::IMessage<PagedExpandResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PagedExpandResponse> _parser = new pb::MessageParser<PagedExpandResponse>(() => new PagedExpandResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PagedExpandResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandResponse(PagedExpandResponse other) : this() {
responses_ = other.responses_.Clone();
nextPageToken_ = other.nextPageToken_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandResponse Clone() {
return new PagedExpandResponse(this);
}
/// <summary>Field number for the "responses" field.</summary>
public const int ResponsesFieldNumber = 1;
private static readonly pb::FieldCodec<global::Google.Showcase.V1Beta1.EchoResponse> _repeated_responses_codec
= pb::FieldCodec.ForMessage(10, global::Google.Showcase.V1Beta1.EchoResponse.Parser);
private readonly pbc::RepeatedField<global::Google.Showcase.V1Beta1.EchoResponse> responses_ = new pbc::RepeatedField<global::Google.Showcase.V1Beta1.EchoResponse>();
/// <summary>
/// The words that were expanded.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Google.Showcase.V1Beta1.EchoResponse> Responses {
get { return responses_; }
}
/// <summary>Field number for the "next_page_token" field.</summary>
public const int NextPageTokenFieldNumber = 2;
private string nextPageToken_ = "";
/// <summary>
/// The next page token.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string NextPageToken {
get { return nextPageToken_; }
set {
nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PagedExpandResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PagedExpandResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!responses_.Equals(other.responses_)) return false;
if (NextPageToken != other.NextPageToken) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= responses_.GetHashCode();
if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
responses_.WriteTo(output, _repeated_responses_codec);
if (NextPageToken.Length != 0) {
output.WriteRawTag(18);
output.WriteString(NextPageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
responses_.WriteTo(ref output, _repeated_responses_codec);
if (NextPageToken.Length != 0) {
output.WriteRawTag(18);
output.WriteString(NextPageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += responses_.CalculateSize(_repeated_responses_codec);
if (NextPageToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PagedExpandResponse other) {
if (other == null) {
return;
}
responses_.Add(other.responses_);
if (other.NextPageToken.Length != 0) {
NextPageToken = other.NextPageToken;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
responses_.AddEntriesFrom(input, _repeated_responses_codec);
break;
}
case 18: {
NextPageToken = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
responses_.AddEntriesFrom(ref input, _repeated_responses_codec);
break;
}
case 18: {
NextPageToken = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// A list of words.
/// </summary>
public sealed partial class PagedExpandResponseList : pb::IMessage<PagedExpandResponseList>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PagedExpandResponseList> _parser = new pb::MessageParser<PagedExpandResponseList>(() => new PagedExpandResponseList());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PagedExpandResponseList> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandResponseList() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandResponseList(PagedExpandResponseList other) : this() {
words_ = other.words_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandResponseList Clone() {
return new PagedExpandResponseList(this);
}
/// <summary>Field number for the "words" field.</summary>
public const int WordsFieldNumber = 1;
private static readonly pb::FieldCodec<string> _repeated_words_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField<string> words_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> Words {
get { return words_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PagedExpandResponseList);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PagedExpandResponseList other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!words_.Equals(other.words_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= words_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
words_.WriteTo(output, _repeated_words_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
words_.WriteTo(ref output, _repeated_words_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += words_.CalculateSize(_repeated_words_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PagedExpandResponseList other) {
if (other == null) {
return;
}
words_.Add(other.words_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
words_.AddEntriesFrom(input, _repeated_words_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
words_.AddEntriesFrom(ref input, _repeated_words_codec);
break;
}
}
}
}
#endif
}
public sealed partial class PagedExpandLegacyMappedResponse : pb::IMessage<PagedExpandLegacyMappedResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PagedExpandLegacyMappedResponse> _parser = new pb::MessageParser<PagedExpandLegacyMappedResponse>(() => new PagedExpandLegacyMappedResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PagedExpandLegacyMappedResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandLegacyMappedResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandLegacyMappedResponse(PagedExpandLegacyMappedResponse other) : this() {
alphabetized_ = other.alphabetized_.Clone();
nextPageToken_ = other.nextPageToken_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PagedExpandLegacyMappedResponse Clone() {
return new PagedExpandLegacyMappedResponse(this);
}
/// <summary>Field number for the "alphabetized" field.</summary>
public const int AlphabetizedFieldNumber = 1;
private static readonly pbc::MapField<string, global::Google.Showcase.V1Beta1.PagedExpandResponseList>.Codec _map_alphabetized_codec
= new pbc::MapField<string, global::Google.Showcase.V1Beta1.PagedExpandResponseList>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Showcase.V1Beta1.PagedExpandResponseList.Parser), 10);
private readonly pbc::MapField<string, global::Google.Showcase.V1Beta1.PagedExpandResponseList> alphabetized_ = new pbc::MapField<string, global::Google.Showcase.V1Beta1.PagedExpandResponseList>();
/// <summary>
/// The words that were expanded, indexed by their initial character.
/// (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
/// aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<string, global::Google.Showcase.V1Beta1.PagedExpandResponseList> Alphabetized {
get { return alphabetized_; }
}
/// <summary>Field number for the "next_page_token" field.</summary>
public const int NextPageTokenFieldNumber = 2;
private string nextPageToken_ = "";
/// <summary>
/// The next page token.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string NextPageToken {
get { return nextPageToken_; }
set {
nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PagedExpandLegacyMappedResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PagedExpandLegacyMappedResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Alphabetized.Equals(other.Alphabetized)) return false;
if (NextPageToken != other.NextPageToken) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= Alphabetized.GetHashCode();
if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
alphabetized_.WriteTo(output, _map_alphabetized_codec);
if (NextPageToken.Length != 0) {
output.WriteRawTag(18);
output.WriteString(NextPageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
alphabetized_.WriteTo(ref output, _map_alphabetized_codec);
if (NextPageToken.Length != 0) {
output.WriteRawTag(18);
output.WriteString(NextPageToken);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += alphabetized_.CalculateSize(_map_alphabetized_codec);
if (NextPageToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PagedExpandLegacyMappedResponse other) {
if (other == null) {
return;
}
alphabetized_.Add(other.alphabetized_);
if (other.NextPageToken.Length != 0) {
NextPageToken = other.NextPageToken;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
alphabetized_.AddEntriesFrom(input, _map_alphabetized_codec);
break;
}
case 18: {
NextPageToken = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
alphabetized_.AddEntriesFrom(ref input, _map_alphabetized_codec);
break;
}
case 18: {
NextPageToken = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// The request for Wait method.
/// </summary>
public sealed partial class WaitRequest : pb::IMessage<WaitRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<WaitRequest> _parser = new pb::MessageParser<WaitRequest>(() => new WaitRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<WaitRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitRequest(WaitRequest other) : this() {
switch (other.EndCase) {
case EndOneofCase.EndTime:
EndTime = other.EndTime.Clone();
break;
case EndOneofCase.Ttl:
Ttl = other.Ttl.Clone();
break;
}
switch (other.ResponseCase) {
case ResponseOneofCase.Error:
Error = other.Error.Clone();
break;
case ResponseOneofCase.Success:
Success = other.Success.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitRequest Clone() {
return new WaitRequest(this);
}
/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 1;
/// <summary>
/// The time that this operation will complete.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime {
get { return endCase_ == EndOneofCase.EndTime ? (global::Google.Protobuf.WellKnownTypes.Timestamp) end_ : null; }
set {
end_ = value;
endCase_ = value == null ? EndOneofCase.None : EndOneofCase.EndTime;
}
}
/// <summary>Field number for the "ttl" field.</summary>
public const int TtlFieldNumber = 4;
/// <summary>
/// The duration of this operation.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Duration Ttl {
get { return endCase_ == EndOneofCase.Ttl ? (global::Google.Protobuf.WellKnownTypes.Duration) end_ : null; }
set {
end_ = value;
endCase_ = value == null ? EndOneofCase.None : EndOneofCase.Ttl;
}
}
/// <summary>Field number for the "error" field.</summary>
public const int ErrorFieldNumber = 2;
/// <summary>
/// The error that will be returned by the server. If this code is specified
/// to be the OK rpc code, an empty response will be returned.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Rpc.Status Error {
get { return responseCase_ == ResponseOneofCase.Error ? (global::Google.Rpc.Status) response_ : null; }
set {
response_ = value;
responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.Error;
}
}
/// <summary>Field number for the "success" field.</summary>
public const int SuccessFieldNumber = 3;
/// <summary>
/// The response to be returned on operation completion.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Showcase.V1Beta1.WaitResponse Success {
get { return responseCase_ == ResponseOneofCase.Success ? (global::Google.Showcase.V1Beta1.WaitResponse) response_ : null; }
set {
response_ = value;
responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.Success;
}
}
private object end_;
/// <summary>Enum of possible cases for the "end" oneof.</summary>
public enum EndOneofCase {
None = 0,
EndTime = 1,
Ttl = 4,
}
private EndOneofCase endCase_ = EndOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EndOneofCase EndCase {
get { return endCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearEnd() {
endCase_ = EndOneofCase.None;
end_ = null;
}
private object response_;
/// <summary>Enum of possible cases for the "response" oneof.</summary>
public enum ResponseOneofCase {
None = 0,
Error = 2,
Success = 3,
}
private ResponseOneofCase responseCase_ = ResponseOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResponseOneofCase ResponseCase {
get { return responseCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearResponse() {
responseCase_ = ResponseOneofCase.None;
response_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WaitRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WaitRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(EndTime, other.EndTime)) return false;
if (!object.Equals(Ttl, other.Ttl)) return false;
if (!object.Equals(Error, other.Error)) return false;
if (!object.Equals(Success, other.Success)) return false;
if (EndCase != other.EndCase) return false;
if (ResponseCase != other.ResponseCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (endCase_ == EndOneofCase.EndTime) hash ^= EndTime.GetHashCode();
if (endCase_ == EndOneofCase.Ttl) hash ^= Ttl.GetHashCode();
if (responseCase_ == ResponseOneofCase.Error) hash ^= Error.GetHashCode();
if (responseCase_ == ResponseOneofCase.Success) hash ^= Success.GetHashCode();
hash ^= (int) endCase_;
hash ^= (int) responseCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (endCase_ == EndOneofCase.EndTime) {
output.WriteRawTag(10);
output.WriteMessage(EndTime);
}
if (responseCase_ == ResponseOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (responseCase_ == ResponseOneofCase.Success) {
output.WriteRawTag(26);
output.WriteMessage(Success);
}
if (endCase_ == EndOneofCase.Ttl) {
output.WriteRawTag(34);
output.WriteMessage(Ttl);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (endCase_ == EndOneofCase.EndTime) {
output.WriteRawTag(10);
output.WriteMessage(EndTime);
}
if (responseCase_ == ResponseOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (responseCase_ == ResponseOneofCase.Success) {
output.WriteRawTag(26);
output.WriteMessage(Success);
}
if (endCase_ == EndOneofCase.Ttl) {
output.WriteRawTag(34);
output.WriteMessage(Ttl);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (endCase_ == EndOneofCase.EndTime) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime);
}
if (endCase_ == EndOneofCase.Ttl) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ttl);
}
if (responseCase_ == ResponseOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (responseCase_ == ResponseOneofCase.Success) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Success);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WaitRequest other) {
if (other == null) {
return;
}
switch (other.EndCase) {
case EndOneofCase.EndTime:
if (EndTime == null) {
EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
EndTime.MergeFrom(other.EndTime);
break;
case EndOneofCase.Ttl:
if (Ttl == null) {
Ttl = new global::Google.Protobuf.WellKnownTypes.Duration();
}
Ttl.MergeFrom(other.Ttl);
break;
}
switch (other.ResponseCase) {
case ResponseOneofCase.Error:
if (Error == null) {
Error = new global::Google.Rpc.Status();
}
Error.MergeFrom(other.Error);
break;
case ResponseOneofCase.Success:
if (Success == null) {
Success = new global::Google.Showcase.V1Beta1.WaitResponse();
}
Success.MergeFrom(other.Success);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
if (endCase_ == EndOneofCase.EndTime) {
subBuilder.MergeFrom(EndTime);
}
input.ReadMessage(subBuilder);
EndTime = subBuilder;
break;
}
case 18: {
global::Google.Rpc.Status subBuilder = new global::Google.Rpc.Status();
if (responseCase_ == ResponseOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 26: {
global::Google.Showcase.V1Beta1.WaitResponse subBuilder = new global::Google.Showcase.V1Beta1.WaitResponse();
if (responseCase_ == ResponseOneofCase.Success) {
subBuilder.MergeFrom(Success);
}
input.ReadMessage(subBuilder);
Success = subBuilder;
break;
}
case 34: {
global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
if (endCase_ == EndOneofCase.Ttl) {
subBuilder.MergeFrom(Ttl);
}
input.ReadMessage(subBuilder);
Ttl = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
if (endCase_ == EndOneofCase.EndTime) {
subBuilder.MergeFrom(EndTime);
}
input.ReadMessage(subBuilder);
EndTime = subBuilder;
break;
}
case 18: {
global::Google.Rpc.Status subBuilder = new global::Google.Rpc.Status();
if (responseCase_ == ResponseOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 26: {
global::Google.Showcase.V1Beta1.WaitResponse subBuilder = new global::Google.Showcase.V1Beta1.WaitResponse();
if (responseCase_ == ResponseOneofCase.Success) {
subBuilder.MergeFrom(Success);
}
input.ReadMessage(subBuilder);
Success = subBuilder;
break;
}
case 34: {
global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
if (endCase_ == EndOneofCase.Ttl) {
subBuilder.MergeFrom(Ttl);
}
input.ReadMessage(subBuilder);
Ttl = subBuilder;
break;
}
}
}
}
#endif
}
/// <summary>
/// The result of the Wait operation.
/// </summary>
public sealed partial class WaitResponse : pb::IMessage<WaitResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<WaitResponse> _parser = new pb::MessageParser<WaitResponse>(() => new WaitResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<WaitResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[9]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitResponse(WaitResponse other) : this() {
content_ = other.content_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitResponse Clone() {
return new WaitResponse(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private string content_ = "";
/// <summary>
/// This content of the result.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return content_; }
set {
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WaitResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WaitResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WaitResponse other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// The metadata for Wait operation.
/// </summary>
public sealed partial class WaitMetadata : pb::IMessage<WaitMetadata>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<WaitMetadata> _parser = new pb::MessageParser<WaitMetadata>(() => new WaitMetadata());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<WaitMetadata> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[10]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitMetadata() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitMetadata(WaitMetadata other) : this() {
endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WaitMetadata Clone() {
return new WaitMetadata(this);
}
/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 1;
private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_;
/// <summary>
/// The time that this operation will complete.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime {
get { return endTime_; }
set {
endTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WaitMetadata);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WaitMetadata other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(EndTime, other.EndTime)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (endTime_ != null) hash ^= EndTime.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (endTime_ != null) {
output.WriteRawTag(10);
output.WriteMessage(EndTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (endTime_ != null) {
output.WriteRawTag(10);
output.WriteMessage(EndTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (endTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WaitMetadata other) {
if (other == null) {
return;
}
if (other.endTime_ != null) {
if (endTime_ == null) {
EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
EndTime.MergeFrom(other.EndTime);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (endTime_ == null) {
EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndTime);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (endTime_ == null) {
EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndTime);
break;
}
}
}
}
#endif
}
/// <summary>
/// The request for Block method.
/// </summary>
public sealed partial class BlockRequest : pb::IMessage<BlockRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BlockRequest> _parser = new pb::MessageParser<BlockRequest>(() => new BlockRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BlockRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[11]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockRequest(BlockRequest other) : this() {
responseDelay_ = other.responseDelay_ != null ? other.responseDelay_.Clone() : null;
switch (other.ResponseCase) {
case ResponseOneofCase.Error:
Error = other.Error.Clone();
break;
case ResponseOneofCase.Success:
Success = other.Success.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockRequest Clone() {
return new BlockRequest(this);
}
/// <summary>Field number for the "response_delay" field.</summary>
public const int ResponseDelayFieldNumber = 1;
private global::Google.Protobuf.WellKnownTypes.Duration responseDelay_;
/// <summary>
/// The amount of time to block before returning a response.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Duration ResponseDelay {
get { return responseDelay_; }
set {
responseDelay_ = value;
}
}
/// <summary>Field number for the "error" field.</summary>
public const int ErrorFieldNumber = 2;
/// <summary>
/// The error that will be returned by the server. If this code is specified
/// to be the OK rpc code, an empty response will be returned.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Rpc.Status Error {
get { return responseCase_ == ResponseOneofCase.Error ? (global::Google.Rpc.Status) response_ : null; }
set {
response_ = value;
responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.Error;
}
}
/// <summary>Field number for the "success" field.</summary>
public const int SuccessFieldNumber = 3;
/// <summary>
/// The response to be returned that will signify successful method call.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Showcase.V1Beta1.BlockResponse Success {
get { return responseCase_ == ResponseOneofCase.Success ? (global::Google.Showcase.V1Beta1.BlockResponse) response_ : null; }
set {
response_ = value;
responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.Success;
}
}
private object response_;
/// <summary>Enum of possible cases for the "response" oneof.</summary>
public enum ResponseOneofCase {
None = 0,
Error = 2,
Success = 3,
}
private ResponseOneofCase responseCase_ = ResponseOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResponseOneofCase ResponseCase {
get { return responseCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearResponse() {
responseCase_ = ResponseOneofCase.None;
response_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BlockRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BlockRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(ResponseDelay, other.ResponseDelay)) return false;
if (!object.Equals(Error, other.Error)) return false;
if (!object.Equals(Success, other.Success)) return false;
if (ResponseCase != other.ResponseCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (responseDelay_ != null) hash ^= ResponseDelay.GetHashCode();
if (responseCase_ == ResponseOneofCase.Error) hash ^= Error.GetHashCode();
if (responseCase_ == ResponseOneofCase.Success) hash ^= Success.GetHashCode();
hash ^= (int) responseCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (responseDelay_ != null) {
output.WriteRawTag(10);
output.WriteMessage(ResponseDelay);
}
if (responseCase_ == ResponseOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (responseCase_ == ResponseOneofCase.Success) {
output.WriteRawTag(26);
output.WriteMessage(Success);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (responseDelay_ != null) {
output.WriteRawTag(10);
output.WriteMessage(ResponseDelay);
}
if (responseCase_ == ResponseOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (responseCase_ == ResponseOneofCase.Success) {
output.WriteRawTag(26);
output.WriteMessage(Success);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (responseDelay_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseDelay);
}
if (responseCase_ == ResponseOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (responseCase_ == ResponseOneofCase.Success) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Success);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BlockRequest other) {
if (other == null) {
return;
}
if (other.responseDelay_ != null) {
if (responseDelay_ == null) {
ResponseDelay = new global::Google.Protobuf.WellKnownTypes.Duration();
}
ResponseDelay.MergeFrom(other.ResponseDelay);
}
switch (other.ResponseCase) {
case ResponseOneofCase.Error:
if (Error == null) {
Error = new global::Google.Rpc.Status();
}
Error.MergeFrom(other.Error);
break;
case ResponseOneofCase.Success:
if (Success == null) {
Success = new global::Google.Showcase.V1Beta1.BlockResponse();
}
Success.MergeFrom(other.Success);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (responseDelay_ == null) {
ResponseDelay = new global::Google.Protobuf.WellKnownTypes.Duration();
}
input.ReadMessage(ResponseDelay);
break;
}
case 18: {
global::Google.Rpc.Status subBuilder = new global::Google.Rpc.Status();
if (responseCase_ == ResponseOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 26: {
global::Google.Showcase.V1Beta1.BlockResponse subBuilder = new global::Google.Showcase.V1Beta1.BlockResponse();
if (responseCase_ == ResponseOneofCase.Success) {
subBuilder.MergeFrom(Success);
}
input.ReadMessage(subBuilder);
Success = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (responseDelay_ == null) {
ResponseDelay = new global::Google.Protobuf.WellKnownTypes.Duration();
}
input.ReadMessage(ResponseDelay);
break;
}
case 18: {
global::Google.Rpc.Status subBuilder = new global::Google.Rpc.Status();
if (responseCase_ == ResponseOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 26: {
global::Google.Showcase.V1Beta1.BlockResponse subBuilder = new global::Google.Showcase.V1Beta1.BlockResponse();
if (responseCase_ == ResponseOneofCase.Success) {
subBuilder.MergeFrom(Success);
}
input.ReadMessage(subBuilder);
Success = subBuilder;
break;
}
}
}
}
#endif
}
/// <summary>
/// The response for Block method.
/// </summary>
public sealed partial class BlockResponse : pb::IMessage<BlockResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BlockResponse> _parser = new pb::MessageParser<BlockResponse>(() => new BlockResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BlockResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Showcase.V1Beta1.EchoReflection.Descriptor.MessageTypes[12]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockResponse(BlockResponse other) : this() {
content_ = other.content_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockResponse Clone() {
return new BlockResponse(this);
}
/// <summary>Field number for the "content" field.</summary>
public const int ContentFieldNumber = 1;
private string content_ = "";
/// <summary>
/// This content can contain anything, the server will not depend on a value
/// here.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Content {
get { return content_; }
set {
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BlockResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BlockResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Content != other.Content) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Content.Length != 0) hash ^= Content.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Content.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Content);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Content.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BlockResponse other) {
if (other == null) {
return;
}
if (other.Content.Length != 0) {
Content = other.Content;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Content = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Content = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code
|
apache-2.0
|
Codestellation/Galaxy
|
src/Galaxy/WebEnd/Controllers/FeedManagement/DeleteFeedRequest.cs
|
305
|
using MediatR;
using Nejdb.Bson;
namespace Codestellation.Galaxy.WebEnd.Controllers.FeedManagement
{
public class DeleteFeedRequest : IRequest<DeleteFeedResponse>
{
public ObjectId Id { get; }
public DeleteFeedRequest(ObjectId id)
{
Id = id;
}
}
}
|
apache-2.0
|
pwd/minidev
|
src/main/java/com/jedou/framework/mini/web/binding/types/FileBinder.java
|
512
|
package com.jedou.framework.mini.web.binding.types;
import java.io.File;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import com.jedou.framework.mini.web.binding.TypeBinder;
/**
* Bind file form multipart/form-data request.
*/
public class FileBinder implements TypeBinder<File> {
@SuppressWarnings("unchecked")
public File bind(String name, Annotation[] annotations, String value, Class actualClass, Type genericType) {
//TODO: not impl
return null;
}
}
|
apache-2.0
|
Sanne/JGroups
|
tests/junit-functional/org/jgroups/tests/ForkChannelTest.java
|
18037
|
package org.jgroups.tests;
import org.jgroups.*;
import org.jgroups.blocks.ReplicatedHashMap;
import org.jgroups.blocks.atomic.Counter;
import org.jgroups.blocks.atomic.CounterService;
import org.jgroups.fork.ForkChannel;
import org.jgroups.fork.ForkProtocolStack;
import org.jgroups.fork.UnknownForkHandler;
import org.jgroups.protocols.COUNTER;
import org.jgroups.protocols.FORK;
import org.jgroups.protocols.FRAG2;
import org.jgroups.protocols.UNICAST3;
import org.jgroups.protocols.pbcast.STATE;
import org.jgroups.stack.Protocol;
import org.jgroups.stack.ProtocolStack;
import org.jgroups.util.MyReceiver;
import org.jgroups.util.Util;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* Tests {@link org.jgroups.fork.ForkChannel}
* @author Bela Ban
* @since 3.4
*/
@Test(groups=Global.FUNCTIONAL,singleThreaded=true)
public class ForkChannelTest {
protected JChannel a, b;
protected ForkChannel fc1, fc2, fc3, fc4;
protected static final String CLUSTER="ForkChannelTest";
protected static Protocol[] protocols() {return Util.getTestStack(new STATE(), new FORK());}
@BeforeMethod protected void setup() throws Exception {
a=new JChannel(protocols()).name("A");
}
@AfterMethod protected void destroy() {
Util.close(fc4, fc3, fc2, fc1, a, b);
}
@Test
public void testCreateForkIfAbsent() throws Exception {
JChannel c = new JChannel(Util.getTestStack(new STATE())).name("C");
ForkChannel fc = new ForkChannel(c,
"hijack-stack",
"lead-hijacker",
true,
ProtocolStack.Position.ABOVE,
FRAG2.class);
assert fc.isOpen() && !fc.isConnected() && !fc.isClosed() : "state=" + fc.getState();
Util.close(fc, c);
}
public void testSimpleSend() throws Exception {
a.connect(CLUSTER);
fc1=new ForkChannel(a, "stack", "fc1").connect("bla");
fc2=new ForkChannel(a, "stack", "fc2").connect("bla");
b=new JChannel(protocols()).name("B").connect(CLUSTER);
fc3=new ForkChannel(b, "stack", "fc1").connect("bla");
fc4=new ForkChannel(b, "stack", "fc2").connect("bla");
MyReceiver r3=new MyReceiver().rawMsgs(true), r4=new MyReceiver().rawMsgs(true);
fc3.setReceiver(r3);
fc4.setReceiver(r4);
fc1.send(null, "hello");
List l3=r3.list(), l4=r4.list();
for(int i=0; i < 10; i++) {
if(!l3.isEmpty() || !l4.isEmpty())
break;
Util.sleep(1000);
}
assert !l3.isEmpty();
assert l4.isEmpty();
l3.clear();
Address dest=fc3.getAddress();
fc1.send(dest, "hello2");
for(int i=0; i < 10; i++) {
if(!l3.isEmpty() || !l4.isEmpty())
break;
Util.sleep(1000);
}
assert !l3.isEmpty();
assert l4.isEmpty();
l3.clear();
// send to non-existing member:
UNICAST3 ucast=a.getProtocolStack().findProtocol(UNICAST3.class);
ucast.setValue("conn_close_timeout", 10000);
Util.close(fc3,fc4,b);
Util.sleep(1000);
System.out.printf("---- sending message to non-existing member %s\n", dest);
fc1.send(dest, "hello3");
for(int i=0; i < 10; i++) {
if(!l3.isEmpty() || !l4.isEmpty())
break;
Util.sleep(500);
}
assert l3.isEmpty();
assert l4.isEmpty();
}
public void testLifecycle() throws Exception {
fc1=new ForkChannel(a, "stack", "fc1");
assert fc1.isOpen() && !fc1.isConnected() && !fc1.isClosed() : "state=" + fc1.getState();
a.connect(CLUSTER);
assert fc1.isOpen() && !fc1.isConnected() && !fc1.isClosed() : "state=" + fc1.getState();
fc1.connect("bla");
assert fc1.isOpen() && fc1.isConnected() && !fc1.isClosed() : "state=" + fc1.getState();
assert a.getAddress().equals(fc1.getAddress());
assert a.getClusterName().equals(fc1.getClusterName());
assert a.getView().equals(fc1.getView());
fc1.disconnect();
assert fc1.isOpen() && !fc1.isConnected() && !fc1.isClosed() : "state=" + fc1.getState();
fc1.connect("foobar");
assert fc1.isOpen() && fc1.isConnected() && !fc1.isClosed() : "state=" + fc1.getState();
Util.close(fc1);
assert !fc1.isOpen() && !fc1.isConnected() && fc1.isClosed() : "state=" + fc1.getState();
try {
fc1.connect("whocares");
assert false : "a closed fork channel cannot be reconnected";
}
catch(Exception ex) {
assert ex instanceof IllegalStateException;
}
assert !fc1.isOpen() && !fc1.isConnected() && fc1.isClosed() : "state=" + fc1.getState();
Util.close(a);
assert !fc1.isOpen() && !fc1.isConnected() && fc1.isClosed() : "state=" + fc1.getState();
try {
fc1.send(null, "hello");
assert false: "sending on a fork-channel with a disconnected main-channel should throw an exception";
}
catch(Throwable t) {
System.out.println("got an exception (as expected) sending on a fork-channel where the main-channel is disconnected: " + t);
}
}
public void testIncorrectConnectSequence() throws Exception {
fc1=new ForkChannel(a, "stack", "fc1");
try {
fc1.connect(CLUSTER);
assert false : "Connecting a fork channel before the main channel should have thrown an exception";
}
catch(Exception ex) {
assert ex instanceof IllegalStateException : "expected IllegalStateException but got " + ex;
}
}
public void testRefcount() throws Exception {
FORK fork=a.getProtocolStack().findProtocol(FORK.class);
Protocol prot=fork.get("stack");
assert prot == null;
fc1=new ForkChannel(a, "stack", "fc1");
prot=fork.get("stack");
assert prot != null;
ForkProtocolStack fork_stack=(ForkProtocolStack)getProtStack(prot);
int inits=fork_stack.getInits();
assert inits == 1 : "inits is " + inits + "(expected 1)";
fc2=new ForkChannel(a, "stack", "fc2"); // uses the same fork stack "stack"
inits=fork_stack.getInits();
assert inits == 2 : "inits is " + inits + "(expected 2)";
a.connect(CLUSTER);
fc1.connect(CLUSTER);
int connects=fork_stack.getConnects();
assert connects == 1 : "connects is " + connects + "(expected 1)";
fc1.connect(CLUSTER); // duplicate connect()
connects=fork_stack.getConnects();
assert connects == 1 : "connects is " + connects + "(expected 1)";
fc2.connect(CLUSTER);
connects=fork_stack.getConnects();
assert connects == 2 : "connects is " + connects + "(expected 2)";
fc2.disconnect();
fc2.disconnect(); // duplicate disconnect() !
connects=fork_stack.getConnects();
assert connects == 1 : "connects is " + connects + "(expected 1)";
Util.close(fc2);
inits=fork_stack.getInits();
assert inits == 1 : "inits is " + inits + "(expected 1)";
Util.close(fc2); // duplicate close()
inits=fork_stack.getInits();
assert inits == 1 : "inits is " + inits + "(expected 1)";
Util.close(fc1);
connects=fork_stack.getConnects();
assert connects == 0 : "connects is " + connects + "(expected 0)";
inits=fork_stack.getInits();
assert inits == 0 : "inits is " + inits + "(expected 0)";
prot=fork.get("stack");
assert prot == null;
}
public void testRefcount2() throws Exception {
Prot p1=new Prot("P1"), p2=new Prot("P2");
fc1=new ForkChannel(a, "stack", "fc1", p1, p2);
fc2=new ForkChannel(a, "stack", "fc2"); // uses p1 and p2 from fc1
fc3=new ForkChannel(a, "stack", "fc3"); // uses p1 and p2 from fc1
assert p1.inits == 1 && p2.inits == 1;
FORK fork=a.getProtocolStack().findProtocol(FORK.class);
Protocol prot=fork.get("stack");
ForkProtocolStack fork_stack=(ForkProtocolStack)getProtStack(prot);
int inits=fork_stack.getInits();
assert inits == 3;
a.connect(CLUSTER);
fc1.connect(CLUSTER);
int connects=fork_stack.getConnects();
assert connects == 1;
assert p1.starts == 1 && p2.starts == 1;
fc2.connect(CLUSTER);
fc3.connect(CLUSTER);
connects=fork_stack.getConnects();
assert connects == 3;
assert p1.starts == 1 && p2.starts == 1;
fc3.disconnect();
fc2.disconnect();
assert p1.starts == 1 && p2.starts == 1;
assert p1.stops == 0 && p2.stops == 0;
fc1.disconnect();
assert p1.starts == 1 && p2.starts == 1;
assert p1.stops == 1 && p2.stops == 1;
Util.close(fc3,fc2);
assert p1.destroys == 0 && p2.destroys == 0;
Util.close(fc1);
assert p1.destroys == 1 && p2.destroys == 1;
}
public void testIncorrectLifecycle() throws Exception {
fc1=new ForkChannel(a, "stack", "fc1");
a.connect(CLUSTER);
fc1.connect(CLUSTER);
Util.close(fc1);
try {
fc1.connect(CLUSTER);
assert false : "reconnecting a closed fork channel must throw an exception";
}
catch(Exception ex) {
assert ex instanceof IllegalStateException;
System.out.println("got exception as expected: " + ex);
}
}
/** Tests the case where we don't add any fork-stack specific protocols */
public void testNullForkStack() throws Exception {
fc1=new ForkChannel(a, "stack", "fc1");
fc2=new ForkChannel(a, "stack", "fc2");
MyReceiver<Integer> r1=new MyReceiver<>(), r2=new MyReceiver<>();
fc1.setReceiver(r1); fc2.setReceiver(r2);
a.connect(CLUSTER);
fc1.connect("foo");
fc2.connect("bar");
for(int i=1; i <= 5; i++) {
fc1.send(null, i);
fc2.send(null, i+5);
}
List<Integer> l1=r1.list(), l2=r2.list();
for(int i=0; i < 20; i++) {
if(l1.size() == 5 && l2.size() == 5)
break;
Util.sleep(500);
}
System.out.println("r1: " + r1.list() + ", r2: " + r2.list());
assert r1.size() == 5 && r2.size() == 5;
for(int i=1; i <= 5; i++)
assert r1.list().contains(i) && r2.list().contains(i+5);
}
public void testUnknownForkStack() throws Exception {
a.connect(CLUSTER);
fc1=new ForkChannel(a, "stack", "fc1").connect("bla");
fc2=new ForkChannel(a, "stack", "fc2").connect("bla");
b=new JChannel(protocols()).name("B").connect(CLUSTER);
Util.waitUntilAllChannelsHaveSameView(10000, 1000, a,b);
FORK f=b.getProtocolStack().findProtocol(FORK.class);
MyUnknownForkHandler ufh=new MyUnknownForkHandler();
f.setUnknownForkHandler(ufh);
fc1.send(new Message(null, "hello"));
fc2.send(new Message(null, "world"));
List<String> l=ufh.getUnknownForkStacks();
Util.waitUntil(10000, 500, () -> l.size() == 2);
assert l.size() == 2 && l.containsAll(Arrays.asList("stack", "stack"));
}
public void testUnknownForkChannel() throws Exception {
a.connect(CLUSTER);
fc1=new ForkChannel(a, "stack", "fc1").connect("bla");
fc2=new ForkChannel(a, "stack", "fc2").connect("bla");
b=new JChannel(protocols()).name("B").connect(CLUSTER);
Util.waitUntilAllChannelsHaveSameView(10000, 1000, a,b);
fc3=new ForkChannel(b, "stack", "fc1").connect("bla");
// "stack"/"fc2" is missing on B
FORK f=b.getProtocolStack().findProtocol(FORK.class);
MyUnknownForkHandler ufh=new MyUnknownForkHandler();
f.setUnknownForkHandler(ufh);
fc2.send(new Message(null, "hello"));
fc2.send(new Message(null, "world"));
List<String> l=ufh.getUnknownForkChannels();
Util.waitUntil(10000, 500, () -> l.size() == 2);
assert l.size() == 2 && l.containsAll(Arrays.asList("fc2", "fc2"));
}
/**
* Tests CounterService on 2 different fork-channels, using the *same* fork-stack. This means the 2 counter
* services will 'see' each other and the counters must have the same value
* @throws Exception
*/
public void testCounterService() throws Exception {
a.connect(CLUSTER);
fc1=new ForkChannel(a, "stack", "fc1", false,ProtocolStack.Position.ABOVE, FORK.class, new COUNTER());
fc2=new ForkChannel(a, "stack", "fc2", false,ProtocolStack.Position.ABOVE, FORK.class, new COUNTER());
fc1.connect("foo");
fc2.connect("bar");
CounterService cs1=new CounterService(fc1), cs2=new CounterService(fc2);
Counter c1=cs1.getOrCreateCounter("counter", 1), c2=cs2.getOrCreateCounter("counter", 1);
System.out.println("counter1=" + c1 + ", counter2=" + c2);
assert c1.get() == 1 && c2.get() == 1;
c1.addAndGet(5);
System.out.println("counter1=" + c1 + ", counter2=" + c2);
assert c1.get() == 6 && c2.get() == 6;
c2.compareAndSet(6, 10);
System.out.println("counter1=" + c1 + ", counter2=" + c2);
assert c1.get() == 10 && c2.get() == 10;
}
public void testStateTransfer() throws Exception {
ReplicatedHashMap<String,Integer> rhm_a=new ReplicatedHashMap<>(a),
rhm_b, rhm_fc1, rhm_fc2, rhm_fc3, rhm_fc4;
a.connect("state-transfer");
fc1=createForkChannel(a, "stack1", "fc1");
rhm_fc1=new ReplicatedHashMap<>(fc1);
fc2=createForkChannel(a, "stack2", "fc2");
rhm_fc2=new ReplicatedHashMap<>(fc2);
addData(rhm_a, rhm_fc1, rhm_fc2);
b=new JChannel(protocols()).name("B");
rhm_b=new ReplicatedHashMap<>(b);
b.connect("state-transfer");
fc3=createForkChannel(b, "stack1", "fc1");
rhm_fc3=new ReplicatedHashMap<>(fc3);
fc4=createForkChannel(b, "stack2", "fc2");
rhm_fc4=new ReplicatedHashMap<>(fc4);
Util.waitUntilAllChannelsHaveSameView(10000, 500, a, b);
b.getState(null, 10000);
for(int i=0; i < 10; i++) {
if(rhm_b.size() == rhm_a.size() && rhm_fc1.size() == rhm_fc3.size() && rhm_fc2.size() == rhm_fc4.size())
break;
Util.sleep(1000);
}
System.out.printf("rhm_a: %s, rhm_b: %s\nrhm_fc1: %s, rhm_fc3: %s\nrhm_fc2: %s, rhm_fc4: %s\n",
rhm_a, rhm_b, rhm_fc1, rhm_fc3, rhm_fc2, rhm_fc4);
assert rhm_a.equals(rhm_b);
assert rhm_fc1.equals(rhm_fc3);
assert rhm_fc2.equals(rhm_fc4);
}
protected static ForkChannel createForkChannel(JChannel main, String stack_name, String ch_name) throws Exception {
ForkChannel fork_ch=new ForkChannel(main, stack_name, ch_name);
fork_ch.connect(ch_name);
return fork_ch;
}
protected static void addData(Map<String,Integer> a, Map<String,Integer> b, Map<String,Integer> c) {
if(a != null) {
a.put("id", 322649);
a.put("version", 45);
}
if(b != null) {
b.put("major", 3);
b.put("minor", 6);
b.put("patch", 5);
}
if(c != null) {
c.put("hobbies", 3);
c.put("kids", 2);
}
}
protected static ProtocolStack getProtStack(Protocol prot) {
while(prot != null && !(prot instanceof ProtocolStack)) {
prot=prot.getUpProtocol();
}
return prot instanceof ProtocolStack? (ProtocolStack)prot : null;
}
protected static class Prot extends Protocol {
protected final String myname;
protected int inits, starts, stops, destroys;
public Prot(String name) {
this.myname=name;
}
public void init() throws Exception {
super.init();
System.out.println(myname + ".init()");
inits++;
}
public void start() throws Exception {
super.start();
System.out.println(myname + ".start()");
starts++;
}
public void stop() {
super.stop();
System.out.println(myname + ".stop()");
stops++;
}
public void destroy() {
super.destroy();
System.out.println(myname + ".destroy()");
destroys++;
}
public Object down(Event evt) {
System.out.println(myname + ": down(): " + evt);
return down_prot.down(evt);
}
public Object down(Message msg) {
System.out.println(myname + ": down(): " + msg);
return down_prot.down(msg);
}
public String toString() {
return myname;
}
}
protected static class MyUnknownForkHandler implements UnknownForkHandler {
protected final List<String> unknown_fork_stacks=new ArrayList<>();
protected final List<String> unknown_fork_channels=new ArrayList<>();
public List<String> getUnknownForkStacks() {return unknown_fork_stacks;}
public List<String> getUnknownForkChannels() {return unknown_fork_channels;}
public Object handleUnknownForkStack(Message message, String forkStackId) {
unknown_fork_stacks.add(forkStackId);
return null;
}
public Object handleUnknownForkChannel(Message message, String forkChannelId) {
unknown_fork_channels.add(forkChannelId);
return null;
}
}
}
|
apache-2.0
|
AlexKolonitsky/lucidworks-view
|
FUSION_CONFIG.js
|
8145
|
appConfig = { //eslint-disable-line
// If you don't know what you want for some configuration items,
// leave them as-is and see what happens in UI.
// You may need to clear browser history/cache before your changes take affect.
/**
* Styles and colors
*
* In addition to the functional settings in this file,
* you can edit the settings file in client/assets/scss/_settings.scss
*
* There you can edit settings to change look and feel such as colors, and other
* basic style parameters.
*/
/**
* localhost is used here for same computer use only.
* You will need to put a hostname or ip address here if you want to go to
* view this app from another machine.
*
* To use https set the https server key and certificate. And set use_https to true.
*/
version: 'v2.8',
host: 'http://localhost',
port:'8764',
proxy_allow_self_signed_cert: false, // Only turn on if you have a self signed proxy in front of fusion.
// Serve View via https.
// use_https: true,
// https: {
// key: 'path/to/your/server.key',
// cert: 'path/to/your/server.crt'
// },
/**
* The name of the realm to connect with
* default: 'native'
*/
connection_realm: 'native',
/**
* Anonymous access
*
* To allow anonymous access add a valid username and password here.
*
* SECURITY WARNING
* It is recommended you use an account with the 'search' role
* to use anonymous access.
*/
anonymous_access: {
username: 'search-user',
// password: 'search-user-password-here'
},
// The name of your collection
collection: 'BestBuy',
// Please specify a pipeline or profile that you want to leverage with this UI.
query_pipeline_id: 'BestBuy-rules',
query_profile_id: 'default',
use_query_profile: false, // Force use of query-profile
// Search UI Title
// This title appears in a number of places in the app, including page title.
// In the header it is replaced by the logo if one is provided.
search_app_title: 'Lucidworks View',
// Specify the path to your logo relative to the root app folder.
// Or use an empty string if you don't want to use a logo.
// This file is relative to the client folder of your app.
logo_location: 'assets/img/logo/lucidworks-white.svg',
/**
* Document display
* Fusion seed app is set up to get you started with the following field types.
* web, local file, jira, slack, and twitter.
*
* Customizing document display.
* You can add your own document displays with Fusion Seed App. You will have to
* write an html template and add a new directive for your document type.
* @see https://github.com/lucidworks/lucidworks-view/blob/master/docs/Customizing_Documents.md
*
* If you want to edit an existing template for a datasource you can edit the html for that document type in the
* client/assets/components/document folder.
*/
/**
* Default Document display
*
* This applies only to document displays that are not handled by the handful of
* document templates used above.
*
* These parameters change the fields that are displayed in the fallback document display.
* You can also add additional fields by editing the document template.
* Default Document template is located at:
* your_project_directory/client/assets/components/document/document_default/document_default.html
*/
//In search results, for each doc, display this field as the head field
head_field: 'name',
subhead_field: 'department',
description_field: 'longDescription',
//In search results, for each doc, use this field to generate link value when a user clicks on head_field
head_url_field: 'url',
//In search results, display a image in each doc page (leave empty for no image).
image_field: 'image',
// ADDING ADDITIONAL FIELDS TO DEFAULT DOCUMENTS
//
// There are 2 ways to add additional fields to the ui.
// You can either use settings to create a simple list of values with field
// names or you can edit the html/css, which is far more robust and allows
// for more customization.
//
// SIMPLE CONFIG BASED FIELD DISPLAY
//
// This is the simpler option, but wont look as good.
// It creates a list of field names next to field results
// in the format of:
// field label: field result
//
// In order to add items to the list you must add the fields to
// fields_to_display. You can change the label of any field by adding a
// field mapping in field_display_labels. You can optionally use a wildcard '*'
// to display all fields.
//
// FLEXIBLE HTML FIELD DISPLAY
//
// For more advanced layouts edit the document template this provides a great
// deal of flexibility and allows you to add more complex logic to your results.
// You are able to use basic javascript to show hide, or alter the display of
// any or multiple results.
//
// The HTML/Angular template is located in the following directory:
// your_project_directory/client/assets/components/document/document.html
fields_to_display:['name','department','longDescription'],
field_display_labels: {
'name': 'Name',
'department': 'Department',
'longDescription': 'Description'
//'id': 'Identification Number'
// you can add as many lines of labels as you want
},
/**
* Number of documents shown per page, if not defined will default to 10.
*/
// docs_per_page: 10,
/**
* Landing pages
*
* Fusion allows mapping of specific queries links (or other data) with its
* landing pages QueryPipeline stage.
*
* Default: Do not redirect but show a list of urls that a user can go to.
*/
// If enabled and a landing page is triggered via a query, the app will redirect
// the user to the url provided.
landing_page_redirect: false,
/**
* Sorts
*
* A list of field names to make available for users to sort their results.
*
* NOTE: Only non multi-valued fields are able to be sortable.
*
* In order to sort on a multi-valued field you will have to fix the schema
* for that field and recrawl the data
*/
//sort_fields: ['title'],
/**
* Signals
*
* Allow the collection of data regarding search results. The most typical use
* case is to track click signals for a collection.
*/
// Signal type for title click.
signal_type: 'click',
// This specifies the index pipeline that will be used to submit signals.
signals_pipeline: '_signals_ingest', // '_signals_ingest' is the fusion default.
// Should be a unique field per document in your collection.
// used by signals as a reference to the main collection.
signals_document_id: 'id',
/**
* Typeahead
*
* Typeahead or autocomplete shows you a number of suggested queries as you
* type in the search box.
*/
typeahead_use_query_profile: true,
typeahead_query_pipeline_id: 'default',
typeahead_query_profile_id: 'default',
typeahead_fields: ['id'],
// The request handler defines how typeahead gets its results.
// It is recommended to use suggest as it is more performant.
// It will require some additional configuration.
// @see https://lucidworks.com/blog/2016/02/04/fusion-plus-solr-suggesters-search-less-typing/
//typeahead_requesthandler: 'suggest', // recommended (requires configuration)
typeahead_requesthandler: 'select',
rules: {
debug: true,
collection: 'BestBuy_rules',
tags: [
"PROD", "TEST", "DESKTOP", "MOBILE"
],
types: {
"Filter List": "filter_list",
"Block List": "block_list",
"Boost List": "boost_list",
"Redirect": "response_value",
"Banner": "response_value",
"Set Params": "set_params"
},
searchTermsMatching: {
text: "Text",
keywords: "Keywords",
contains: "Contains"
},
set_params: {
policies : {
"append": "Append",
"replace": "Replace"
}
},
documentFields: {
"type": "Type",
"id": "Product Id",
"department": "Department",
"categoryIds": "Category Id"
}
}
};
|
apache-2.0
|
bxf12315/drools
|
drools-compiler/src/test/java/org/drools/compiler/integrationtests/DynamicRulesChangesTest.java
|
11937
|
package org.drools.compiler.integrationtests;
import static org.junit.Assert.assertEquals;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.drools.compiler.CommonTestMethodBase;
import org.drools.core.definitions.rule.impl.RuleImpl;
import org.drools.core.impl.InternalKnowledgeBase;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.kie.api.io.ResourceType;
import org.kie.api.runtime.KieSession;
import org.kie.internal.KnowledgeBase;
import org.kie.internal.KnowledgeBaseFactory;
import org.kie.api.command.Command;
import org.kie.internal.builder.KnowledgeBuilder;
import org.kie.internal.builder.KnowledgeBuilderFactory;
import org.kie.internal.command.CommandFactory;
import org.kie.internal.io.ResourceFactory;
import org.kie.internal.runtime.StatefulKnowledgeSession;
import org.kie.api.runtime.rule.FactHandle;
public class DynamicRulesChangesTest extends CommonTestMethodBase {
private static final int PARALLEL_THREADS = 1;
private static final ExecutorService executor = Executors.newFixedThreadPool(PARALLEL_THREADS);
private static InternalKnowledgeBase kbase;
@Before
public void setUp() throws Exception {
kbase = (InternalKnowledgeBase)KnowledgeBaseFactory.newKnowledgeBase();
addRule("raiseAlarm");
}
@Test(timeout=10000)
public void testConcurrentRuleAdditions() throws Exception {
parallelExecute(RulesExecutor.getSolvers());
}
@Test(timeout=10000)
public void testBatchRuleAdditions() throws Exception {
parallelExecute(BatchRulesExecutor.getSolvers());
}
private void parallelExecute(Collection<Callable<List<String>>> solvers) throws Exception {
CompletionService<List<String>> ecs = new ExecutorCompletionService<List<String>>(executor);
for (Callable<List<String>> s : solvers) {
ecs.submit(s);
}
for (int i = 0; i < PARALLEL_THREADS; ++i) {
List<String> events = ecs.take().get();
assertEquals(5, events.size());
}
}
public static class RulesExecutor implements Callable<List<String>> {
public List<String> call() throws Exception {
final List<String> events = new ArrayList<String>();
try {
KieSession ksession = kbase.newKieSession();
ksession.setGlobal("events", events);
// phase 1
Room room1 = new Room("Room 1");
ksession.insert(room1);
FactHandle fireFact1 = ksession.insert(new Fire(room1));
ksession.fireAllRules();
assertEquals(1, events.size());
// phase 2
Sprinkler sprinkler1 = new Sprinkler(room1);
ksession.insert(sprinkler1);
ksession.fireAllRules();
assertEquals(2, events.size());
// phase 3
ksession.retract(fireFact1);
ksession.fireAllRules();
} catch (Exception e) {
System.err.println("Exception in thread " + Thread.currentThread().getName() + ": " + e.getLocalizedMessage());
throw e;
}
return events;
}
public static Collection<Callable<List<String>>> getSolvers() {
Collection<Callable<List<String>>> solvers = new ArrayList<Callable<List<String>>>();
for (int i = 0; i < PARALLEL_THREADS; ++i) {
solvers.add(new RulesExecutor());
}
return solvers;
}
}
public static class BatchRulesExecutor extends CommonTestMethodBase implements Callable<List<String>> {
public List<String> call() throws Exception {
final List<String> events = new ArrayList<String>();
try {
StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
ksession.setGlobal("events", events);
Room room1 = new Room("Room 1");
Fire fire1 = new Fire(room1);
// phase 1
List<Command> cmds = new ArrayList<Command>();
cmds.add(CommandFactory.newInsert(room1, "room1"));
cmds.add(CommandFactory.newInsert(fire1, "fire1"));
cmds.add(CommandFactory.newFireAllRules());
ksession.execute(CommandFactory.newBatchExecution(cmds));
assertEquals(1, events.size());
// phase 2
cmds = new ArrayList<Command>();
cmds.add(CommandFactory.newInsert(new Sprinkler(room1), "sprinkler1"));
cmds.add(CommandFactory.newFireAllRules());
ksession.execute(CommandFactory.newBatchExecution(cmds));
assertEquals(2, events.size());
// phase 3
cmds = new ArrayList<Command>();
cmds.add(CommandFactory.newDelete(ksession.getFactHandle(fire1)));
cmds.add(CommandFactory.newFireAllRules());
ksession.execute(CommandFactory.newBatchExecution(cmds));
} catch (Exception e) {
System.err.println("Exception in thread " + Thread.currentThread().getName() + ": " + e.getLocalizedMessage());
throw e;
}
return events;
}
public static Collection<Callable<List<String>>> getSolvers() {
Collection<Callable<List<String>>> solvers = new ArrayList<Callable<List<String>>>();
for (int i = 0; i < PARALLEL_THREADS; ++i) {
solvers.add(new BatchRulesExecutor());
}
return solvers;
}
}
public static void addRule(String ruleName) throws Exception {
addRule(ruleName, null);
}
public static void addRule(String ruleName, RuleImpl firingRule) throws Exception {
String rule = rules.get(ruleName);
CommonTestMethodBase testBaseMethod = new CommonTestMethodBase();
kbase.addKnowledgePackages(testBaseMethod.loadKnowledgePackagesFromString( rule ));
if (firingRule != null) {
kbase.removeRule("defaultpkg", firingRule.getName());
}
}
// Rules
private static Map<String, String> rules = new HashMap<String, String>() {{
put("raiseAlarm",
"import " + DynamicRulesChangesTest.class.getCanonicalName() + "\n " +
"global java.util.List events\n" +
"rule \"Raise the alarm when we have one or more fires\"\n" +
"when\n" +
" exists DynamicRulesChangesTest.Fire()\n" +
"then\n" +
" insert( new DynamicRulesChangesTest.Alarm() );\n" +
" events.add( \"Raise the alarm\" );\n" +
" DynamicRulesChangesTest.addRule(\"onFire\", drools.getRule());\n" +
"end");
put("onFire",
"import " + DynamicRulesChangesTest.class.getCanonicalName() + "\n " +
"global java.util.List events\n" +
"rule \"When there is a fire turn on the sprinkler\"\n" +
"when\n" +
" $fire: DynamicRulesChangesTest.Fire($room : room)\n" +
" $sprinkler : DynamicRulesChangesTest.Sprinkler( room == $room, on == false )\n" +
"then\n" +
" modify( $sprinkler ) { setOn( true ) };\n" +
" events.add( \"Turn on the sprinkler for room \" + $room.getName() );\n" +
" DynamicRulesChangesTest.addRule(\"fireGone\", drools.getRule());\n" +
"end");
put("fireGone",
"import " + DynamicRulesChangesTest.class.getCanonicalName() + "\n " +
"global java.util.List events\n" +
"rule \"When the fire is gone turn off the sprinkler\"\n" +
"when\n" +
" $room : DynamicRulesChangesTest.Room( )\n" +
" $sprinkler : DynamicRulesChangesTest.Sprinkler( room == $room, on == true )\n" +
" not DynamicRulesChangesTest.Fire( room == $room )\n" +
"then\n" +
" modify( $sprinkler ) { setOn( false ) };\n" +
" events.add( \"Turn off the sprinkler for room \" + $room.getName() );\n" +
" DynamicRulesChangesTest.addRule(\"cancelAlarm\", drools.getRule());\n" +
"end");
put("cancelAlarm",
"import " + DynamicRulesChangesTest.class.getCanonicalName() + "\n " +
"global java.util.List events\n" +
"rule \"Cancel the alarm when all the fires have gone\"\n" +
"when\n" +
" not DynamicRulesChangesTest.Fire()\n" +
" $alarm : DynamicRulesChangesTest.Alarm()\n" +
"then\n" +
" retract( $alarm );\n" +
" events.add( \"Cancel the alarm\" );\n" +
" DynamicRulesChangesTest.addRule(\"status\", drools.getRule());\n" +
"end");
put("status",
"import " + DynamicRulesChangesTest.class.getCanonicalName() + "\n " +
"global java.util.List events\n" +
"rule \"Status output when things are ok\"\n" +
"when\n" +
" not DynamicRulesChangesTest.Alarm()\n" +
" not DynamicRulesChangesTest.Sprinkler( on == true )\n" +
"then\n" +
" events.add( \"Everything is ok\" );\n" +
"end");
}};
// Model
public static class Alarm { }
public static class Fire {
private Room room;
public Fire() { }
public Fire(Room room) {
this.room = room;
}
public Room getRoom() {
return room;
}
public void setRoom(Room room) {
this.room = room;
}
}
public static class Room {
private String name;
public Room() { }
public Room(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public int hashCode() {
return name.hashCode();
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof Room)) return false;
return name.equals(((Room)obj).getName());
}
@Override
public String toString() {
return name;
}
}
public static class Sprinkler {
private Room room;
private boolean on = false;
public Sprinkler() { }
public Sprinkler(Room room) {
this.room = room;
}
public Room getRoom() {
return room;
}
public void setRoom(Room room) {
this.room = room;
}
public boolean isOn() {
return on;
}
public void setOn(boolean on) {
this.on = on;
}
@Override
public int hashCode() {
return room.hashCode();
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof Sprinkler)) return false;
return room.equals(((Sprinkler)obj).getRoom());
}
@Override
public String toString() {
return "Sprinkler for " + room;
}
}
}
|
apache-2.0
|
GoogleCloudPlatform/iap-desktop
|
sources/Google.Solutions.IapDesktop.Extensions.Shell.Test/Views/Options/TestSshOptionsViewModel.cs
|
11207
|
๏ปฟ//
// Copyright 2020 Google LLC
//
// 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.
//
using Google.Solutions.Common.Util;
using Google.Solutions.IapDesktop.Application.Test;
using Google.Solutions.IapDesktop.Extensions.Shell.Services.Settings;
using Google.Solutions.IapDesktop.Extensions.Shell.Views.Options;
using Google.Solutions.Ssh.Auth;
using Microsoft.Win32;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Google.Solutions.IapDesktop.Extensions.Shell.Test.Views.Options
{
[TestFixture]
public class TestSshOptionsViewModel : ApplicationFixtureBase
{
private const string TestKeyPath = @"Software\Google\__Test";
private const string TestMachinePolicyKeyPath = @"Software\Google\__TestMachinePolicy";
private readonly RegistryKey hkcu = RegistryKey
.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Default);
private SshSettingsRepository CreateSettingsRepository(
IDictionary<string, object> policies = null)
{
this.hkcu.DeleteSubKeyTree(TestKeyPath, false);
this.hkcu.DeleteSubKeyTree(TestMachinePolicyKeyPath, false);
var baseKey = this.hkcu.CreateSubKey(TestKeyPath);
var policyKey = this.hkcu.CreateSubKey(TestMachinePolicyKeyPath);
foreach (var policy in policies.EnsureNotNull())
{
policyKey.SetValue(policy.Key, policy.Value);
}
return new SshSettingsRepository(baseKey, policyKey, null);
}
//---------------------------------------------------------------------
// IsPropagateLocaleEnabled.
//---------------------------------------------------------------------
[Test]
public void WhenSettingEnabled_ThenIsPropagateLocaleEnabledIsTrue()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.IsPropagateLocaleEnabled.BoolValue = true;
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.IsTrue(viewModel.IsPropagateLocaleEnabled);
}
[Test]
public void WhenSettingDisabled_ThenIsPropagateLocaleEnabledIsTrue()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.IsPropagateLocaleEnabled.BoolValue = false;
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.IsFalse(viewModel.IsPropagateLocaleEnabled);
}
[Test]
public void WhenDisablingIsPropagateLocaleEnabled_ThenChangeIsApplied()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.IsPropagateLocaleEnabled.BoolValue = true;
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository)
{
IsPropagateLocaleEnabled = false
};
viewModel.ApplyChanges();
settings = settingsRepository.GetSettings();
Assert.IsFalse(settings.IsPropagateLocaleEnabled.BoolValue);
}
[Test]
public void WhenIsPropagateLocaleEnabledChanged_ThenIsDirtyIsTrueUntilApplied()
{
var settingsRepository = CreateSettingsRepository();
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.IsFalse(viewModel.IsDirty);
viewModel.IsPropagateLocaleEnabled = !viewModel.IsPropagateLocaleEnabled;
Assert.IsTrue(viewModel.IsDirty);
}
//---------------------------------------------------------------------
// PublicKeyValidityInDays.
//---------------------------------------------------------------------
[Test]
public void WhenSettingPopulated_ThenPublicKeyValidityInDaysHasCorrectValue()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.PublicKeyValidity.IntValue = 60 * 60 * 26; // 1.5 days
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.AreEqual(1, viewModel.PublicKeyValidityInDays);
Assert.IsTrue(viewModel.IsPublicKeyValidityInDaysEditable);
}
[Test]
public void WhenSettingPopulatedByPolicy_ThenIsPublicKeyValidityInDaysEditableIsFalse()
{
var settingsRepository = CreateSettingsRepository(
new Dictionary<string, object>
{
{ "PublicKeyValidity", 60 * 60 * 24 * 2 }
});
var settings = settingsRepository.GetSettings();
settings.PublicKeyValidity.IntValue = 60 * 60 * 26; // 1.5 days
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.AreEqual(2, viewModel.PublicKeyValidityInDays);
Assert.IsFalse(viewModel.IsPublicKeyValidityInDaysEditable);
}
[Test]
public void WhenChangingPublicKeyValidityInDays_ThenChangeIsApplied()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.PublicKeyValidity.IntValue = 60 * 60 * 26; // 1.5 days
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository)
{
PublicKeyValidityInDays = 365 * 2
};
viewModel.ApplyChanges();
settings = settingsRepository.GetSettings();
Assert.AreEqual(365 * 2 * 24 * 60 * 60, settings.PublicKeyValidity.IntValue);
}
[Test]
public void WhenPublicKeyValidityInDaysChanged_ThenIsDirtyIsTrueUntilApplied()
{
var settingsRepository = CreateSettingsRepository();
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.IsFalse(viewModel.IsDirty);
viewModel.PublicKeyValidityInDays++;
Assert.IsTrue(viewModel.IsDirty);
}
//---------------------------------------------------------------------
// PublicKeyType.
//---------------------------------------------------------------------
[Test]
public void WhenSettingPopulated_ThenPublicKeyTypeHasCorrectValue()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.PublicKeyType.EnumValue = SshKeyType.EcdsaNistp256;
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.AreEqual(SshKeyType.EcdsaNistp256, viewModel.PublicKeyType);
Assert.IsTrue(viewModel.IsPublicKeyTypeEditable);
}
[Test]
public void WhenSettingPopulatedByPolicy_ThenIsPublicKeyTypeEditableIsFalse()
{
var settingsRepository = CreateSettingsRepository(
new Dictionary<string, object>
{
{ "PublicKeyType", (int)SshKeyType.EcdsaNistp384 }
});
var settings = settingsRepository.GetSettings();
settings.PublicKeyType.EnumValue = SshKeyType.EcdsaNistp256;
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.AreEqual(SshKeyType.EcdsaNistp384, viewModel.PublicKeyType);
Assert.IsFalse(viewModel.IsPublicKeyTypeEditable);
}
[Test]
public void WhenChangingPublicKeyType_ThenChangeIsApplied()
{
var settingsRepository = CreateSettingsRepository();
var settings = settingsRepository.GetSettings();
settings.PublicKeyType.EnumValue = SshKeyType.EcdsaNistp256;
settingsRepository.SetSettings(settings);
var viewModel = new SshOptionsViewModel(settingsRepository)
{
PublicKeyType = SshKeyType.EcdsaNistp384
};
viewModel.ApplyChanges();
settings = settingsRepository.GetSettings();
Assert.AreEqual(SshKeyType.EcdsaNistp384, settings.PublicKeyType.EnumValue);
}
[Test]
public void WhenPublicKeyTypeChanged_ThenIsDirtyIsTrueUntilApplied()
{
var settingsRepository = CreateSettingsRepository();
var viewModel = new SshOptionsViewModel(settingsRepository);
Assert.IsFalse(viewModel.IsDirty);
viewModel.PublicKeyType++;
Assert.IsTrue(viewModel.IsDirty);
}
//---------------------------------------------------------------------
// PublicKeyTypeIndex.
//---------------------------------------------------------------------
[Test]
public void WhenIndexSet_ThenPublicKeyTypeIsUpdated()
{
var settingsRepository = CreateSettingsRepository();
var viewModel = new SshOptionsViewModel(settingsRepository);
viewModel.PublicKeyType = viewModel.AllPublicKeyTypes[0];
viewModel.PublicKeyTypeIndex++;
Assert.AreEqual(1, viewModel.PublicKeyTypeIndex);
Assert.AreEqual(viewModel.AllPublicKeyTypes[1], viewModel.PublicKeyType);
}
//---------------------------------------------------------------------
// AllPublicKeyTypes.
//---------------------------------------------------------------------
[Test]
public void AllPublicKeyTypesReturnsList()
{
var settingsRepository = CreateSettingsRepository();
var viewModel = new SshOptionsViewModel(settingsRepository);
var keyTypes = viewModel.AllPublicKeyTypes.ToList();
Assert.Greater(keyTypes.Count, 1);
Assert.AreEqual(keyTypes.Count, Enum.GetValues(typeof(SshKeyType)).Length);
}
}
}
|
apache-2.0
|
jangmoonchul/entryjs
|
extern/lang/code.js
|
309928
|
var Lang = {};
Lang.category = {
"name": "ko"
};
Lang.type = "ko";
Lang.en = "English";
Lang.Blocks = {
"download_guide": "์ฐ๊ฒฐ ์๋ด ๋ค์ด๋ก๋",
"ARDUINO": "ํ๋์จ์ด",
"ARDUINO_download_connector": "Download Arduino Connector",
"ARDUINO_open_connector": "Open Arduino Connector",
"ARDUINO_download_source": "Entry Arduino code",
"ARDUINO_reconnect": "Connect Hardware",
"ARDUINO_program": "ํ๋ก๊ทธ๋จ ์คํํ๊ธฐ",
"ARDUINO_cloud_pc_connector": "ํด๋ผ์ฐ๋ PC ์ฐ๊ฒฐํ๊ธฐ",
"ARDUINO_connected": "Hardware connected",
"ARDUINO_arduino_get_number_1": "์ ํธ",
"ARDUINO_arduino_get_number_2": "์ ์ซ์ ๊ฒฐ๊ณผ๊ฐ",
"ARDUINO_arduino_get_sensor_number_0": "0",
"ARDUINO_arduino_get_sensor_number_1": "1",
"ARDUINO_arduino_get_sensor_number_2": "2",
"ARDUINO_arduino_get_sensor_number_3": "3",
"ARDUINO_arduino_get_sensor_number_4": "4",
"ARDUINO_arduino_get_sensor_number_5": "5",
"BITBRICK_light": "light",
"BITBRICK_IR": "IR",
"BITBRICK_touch": "touch",
"BITBRICK_potentiometer": "potentiometer",
"BITBRICK_MIC": "MIC",
"BITBRICK_UserSensor": "UserSensor",
"BITBRICK_UserInput": "UserInput",
"BITBRICK_dc_direction_ccw": "CCW",
"BITBRICK_dc_direction_cw": "CW",
/* BYROBOT DroneFighter Start */
/* input */
"byrobot_dronefighter_drone_state_mode_system" : "์์คํ
๋ชจ๋",
"byrobot_dronefighter_drone_state_mode_vehicle" : "๋๋ก ํ์ดํฐ ๋ชจ๋",
"byrobot_dronefighter_drone_state_mode_flight" : "๋นํ ๋ชจ๋",
"byrobot_dronefighter_drone_state_mode_drive" : "์๋์ฐจ ๋ชจ๋",
"byrobot_dronefighter_drone_state_mode_coordinate" : "๊ธฐ๋ณธ ์ขํ๊ณ",
"byrobot_dronefighter_drone_state_battery" : "๋ฐฐํฐ๋ฆฌ",
"byrobot_dronefighter_drone_attitude_roll" : "์์ธ Roll",
"byrobot_dronefighter_drone_attitude_pitch" : "์์ธ Pitch",
"byrobot_dronefighter_drone_attitude_yaw" : "์์ธ Yaw",
"byrobot_dronefighter_drone_irmessage" : "์ ์ธ์ ์์ ๊ฐ",
"byrobot_dronefighter_controller_joystick_left_x" : "์ผ์ชฝ ์กฐ์ด์คํฑ ๊ฐ๋ก์ถ",
"byrobot_dronefighter_controller_joystick_left_y" : "์ผ์ชฝ ์กฐ์ด์คํฑ ์ธ๋ก์ถ",
"byrobot_dronefighter_controller_joystick_left_direction" : "์ผ์ชฝ ์กฐ์ด์คํฑ ๋ฐฉํฅ",
"byrobot_dronefighter_controller_joystick_left_event" : "์ผ์ชฝ ์กฐ์ด์คํฑ ์ด๋ฒคํธ",
"byrobot_dronefighter_controller_joystick_left_command" : "์ผ์ชฝ ์กฐ์ด์คํฑ ๋ช
๋ น",
"byrobot_dronefighter_controller_joystick_right_x" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ ๊ฐ๋ก์ถ",
"byrobot_dronefighter_controller_joystick_right_y" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ ์ธ๋ก์ถ",
"byrobot_dronefighter_controller_joystick_right_direction" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ ๋ฐฉํฅ",
"byrobot_dronefighter_controller_joystick_right_event" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ ์ด๋ฒคํธ",
"byrobot_dronefighter_controller_joystick_right_command" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ ๋ช
๋ น",
"byrobot_dronefighter_controller_joystick_direction_left_up" : "์ผ์ชฝ ์",
"byrobot_dronefighter_controller_joystick_direction_up" : "์",
"byrobot_dronefighter_controller_joystick_direction_right_up" : "์ค๋ฅธ์ชฝ ์",
"byrobot_dronefighter_controller_joystick_direction_left" : "์ผ์ชฝ",
"byrobot_dronefighter_controller_joystick_direction_center" : "์ค์",
"byrobot_dronefighter_controller_joystick_direction_right" : "์ค๋ฅธ์ชฝ",
"byrobot_dronefighter_controller_joystick_direction_left_down" : "์ผ์ชฝ ์๋",
"byrobot_dronefighter_controller_joystick_direction_down" : "์๋",
"byrobot_dronefighter_controller_joystick_direction_right_down" : "์ค๋ฅธ์ชฝ ์๋",
"byrobot_dronefighter_controller_button_button" : "๋ฒํผ",
"byrobot_dronefighter_controller_button_event" : "๋ฒํผ ์ด๋ฒคํธ",
"byrobot_dronefighter_controller_button_front_left" : "์ผ์ชฝ ๋นจ๊ฐ ๋ฒํผ",
"byrobot_dronefighter_controller_button_front_right" : "์ค๋ฅธ์ชฝ ๋นจ๊ฐ ๋ฒํผ",
"byrobot_dronefighter_controller_button_front_left_right" : "์์ชฝ ๋นจ๊ฐ ๋ฒํผ",
"byrobot_dronefighter_controller_button_center_up_left" : "ํธ๋ฆผ ์ขํ์ ๋ฒํผ",
"byrobot_dronefighter_controller_button_center_up_right" : "ํธ๋ฆผ ์ฐํ์ ๋ฒํผ",
"byrobot_dronefighter_controller_button_center_up" : "ํธ๋ฆผ ์ ๋ฒํผ",
"byrobot_dronefighter_controller_button_center_left" : "ํธ๋ฆผ ์ผ์ชฝ ๋ฒํผ",
"byrobot_dronefighter_controller_button_center_right" : "ํธ๋ฆผ ์ค๋ฅธ์ชฝ ๋ฒํผ",
"byrobot_dronefighter_controller_button_center_down" : "ํธ๋ฆผ ๋ค ๋ฒํผ",
"byrobot_dronefighter_controller_button_bottom_left" : "์ผ์ชฝ ๋ฅ๊ทผ ๋ฒํผ",
"byrobot_dronefighter_controller_button_bottom_right" : "์ค๋ฅธ์ชฝ ๋ฅ๊ทผ ๋ฒํผ",
"byrobot_dronefighter_controller_button_bottom_left_right" : "์์ชฝ ๋ฅ๊ทผ ๋ฒํผ",
"byrobot_dronefighter_entryhw_count_transfer_reserved" : "์ ์ก ์์ฝ๋ ๋ฐ์ดํฐ ์",
/* output */
"byrobot_dronefighter_common_roll" : "Roll",
"byrobot_dronefighter_common_pitch" : "Pitch",
"byrobot_dronefighter_common_yaw" : "Yaw",
"byrobot_dronefighter_common_throttle" : "Throttle",
"byrobot_dronefighter_common_left" : "์ผ์ชฝ",
"byrobot_dronefighter_common_right" : "์ค๋ฅธ์ชฝ",
"byrobot_dronefighter_common_light_manual_on" : "์ผ๊ธฐ",
"byrobot_dronefighter_common_light_manual_off" : "๋๊ธฐ",
"byrobot_dronefighter_common_light_manual_b25" : "๋ฐ๊ธฐ 25%",
"byrobot_dronefighter_common_light_manual_b50" : "๋ฐ๊ธฐ 50%",
"byrobot_dronefighter_common_light_manual_b75" : "๋ฐ๊ธฐ 75%",
"byrobot_dronefighter_common_light_manual_b100" : "๋ฐ๊ธฐ 100%",
"byrobot_dronefighter_common_light_manual_all" : "์ ์ฒด",
"byrobot_dronefighter_common_light_manual_red" : "๋นจ๊ฐ",
"byrobot_dronefighter_common_light_manual_blue" : "ํ๋",
"byrobot_dronefighter_common_light_manual_1" : "1",
"byrobot_dronefighter_common_light_manual_2" : "2",
"byrobot_dronefighter_common_light_manual_3" : "3",
"byrobot_dronefighter_common_light_manual_4" : "4",
"byrobot_dronefighter_common_light_manual_5" : "5",
"byrobot_dronefighter_common_light_manual_6" : "6",
"byrobot_dronefighter_controller_buzzer" : "๋ฒ์ ",
"byrobot_dronefighter_controller_buzzer_mute" : "์ผ",
"byrobot_dronefighter_controller_buzzer_c" : "๋",
"byrobot_dronefighter_controller_buzzer_cs" : "๋#",
"byrobot_dronefighter_controller_buzzer_d" : "๋ ",
"byrobot_dronefighter_controller_buzzer_ds" : "๋ #",
"byrobot_dronefighter_controller_buzzer_e" : "๋ฏธ",
"byrobot_dronefighter_controller_buzzer_f" : "ํ",
"byrobot_dronefighter_controller_buzzer_fs" : "ํ#",
"byrobot_dronefighter_controller_buzzer_g" : "์",
"byrobot_dronefighter_controller_buzzer_gs" : "์#",
"byrobot_dronefighter_controller_buzzer_a" : "๋ผ",
"byrobot_dronefighter_controller_buzzer_as" : "๋ผ#",
"byrobot_dronefighter_controller_buzzer_b" : "์",
"byrobot_dronefighter_controller_userinterface_preset_clear" : "๋ชจ๋ ์ง์ฐ๊ธฐ",
"byrobot_dronefighter_controller_userinterface_preset_dronefighter2017" : "๊ธฐ๋ณธ",
"byrobot_dronefighter_controller_userinterface_preset_education" : "๊ต์ก์ฉ",
"byrobot_dronefighter_controller_userinterface_command_setup_button_frontleft_down" : "์ผ์ชฝ ๋นจ๊ฐ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_frontright_down" : "์ค๋ฅธ์ชฝ ๋นจ๊ฐ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_midturnleft_down" : "ํธ๋ฆผ ์ขํ์ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_midturnright_down" : "ํธ๋ฆผ ์ฐํ์ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_midup_down" : "ํธ๋ฆผ ์ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_midleft_down" : "ํธ๋ฆผ ์ผ์ชฝ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_midright_down" : "ํธ๋ฆผ ์ค๋ฅธ์ชฝ ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_button_middown_down" : "ํธ๋ฆผ ๋ค ๋ฒํผ์ ๋๋ ์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_left_up_in" : "์ผ์ชฝ ์กฐ์ด์คํฑ์ ์๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_left_left_in" : "์ผ์ชฝ ์กฐ์ด์คํฑ์ ์ผ์ชฝ์ผ๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_left_right_in" : "์ผ์ชฝ ์กฐ์ด์คํฑ์ ์ค๋ฅธ์ชฝ์ผ๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_left_down_in" : "์ผ์ชฝ ์กฐ์ด์คํฑ์ ์๋๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_right_up_in" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ์ ์๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_right_left_in" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ์ ์ผ์ชฝ์ผ๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_right_right_in" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ์ ์ค๋ฅธ์ชฝ์ผ๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_command_setup_joystick_right_down_in" : "์ค๋ฅธ์ชฝ ์กฐ์ด์คํฑ์ ์๋๋ก ์์ง์์ ๋",
"byrobot_dronefighter_controller_userinterface_function_joystickcalibration_reset" : "์กฐ์ด์คํฑ ๋ณด์ ์ด๊ธฐํ",
"byrobot_dronefighter_controller_userinterface_function_change_team_red" : "ํ - ๋ ๋",
"byrobot_dronefighter_controller_userinterface_function_change_team_blue" : "ํ - ๋ธ๋ฃจ",
"byrobot_dronefighter_controller_userinterface_function_change_mode_vehicle_flight" : "๋๋ก ",
"byrobot_dronefighter_controller_userinterface_function_change_mode_vehicle_flightnoguard" : "๋๋ก - ๊ฐ๋ ์์",
"byrobot_dronefighter_controller_userinterface_function_change_mode_vehicle_drive" : "์๋์ฐจ",
"byrobot_dronefighter_controller_userinterface_function_change_coordinate_local" : "๋ฐฉ์ - ์ผ๋ฐ",
"byrobot_dronefighter_controller_userinterface_function_change_coordinate_world" : "๋ฐฉ์ - ์ฑ์๋ฃจํธ",
"byrobot_dronefighter_controller_userinterface_function_change_mode_control_mode1" : "์กฐ์ข
- MODE 1",
"byrobot_dronefighter_controller_userinterface_function_change_mode_control_mode2" : "์กฐ์ข
- MODE 2",
"byrobot_dronefighter_controller_userinterface_function_change_mode_control_mode3" : "์กฐ์ข
- MODE 3",
"byrobot_dronefighter_controller_userinterface_function_change_mode_control_mode4" : "์กฐ์ข
- MODE 4",
"byrobot_dronefighter_controller_userinterface_function_gyrobias_reset" : "์์ด๋ก ๋ฐ์ด์ด์ค ๋ฆฌ์
",
"byrobot_dronefighter_controller_userinterface_function_change_mode_usb_cdc" : "USB ์๋ฆฌ์ผ ํต์ ์ฅ์น",
"byrobot_dronefighter_controller_userinterface_function_change_mode_usb_hid" : "USB ๊ฒ์ ์ปจํธ๋กค๋ฌ",
"byrobot_dronefighter_drone_team" : "ํ ",
"byrobot_dronefighter_drone_team_red" : "๋ ๋",
"byrobot_dronefighter_drone_team_blue" : "๋ธ๋ฃจ",
"byrobot_dronefighter_drone_coordinate_world" : "์ฑ์๋ฃจํธ",
"byrobot_dronefighter_drone_coordinate_local" : "์ผ๋ฐ",
"byrobot_dronefighter_drone_mode_vehicle_flight" : "๋๋ก ",
"byrobot_dronefighter_drone_mode_vehicle_drive" : "์๋์ฐจ",
"byrobot_dronefighter_drone_control_double_wheel" : "๋ฐฉํฅ",
"byrobot_dronefighter_drone_control_double_wheel_left" : "์ผ์ชฝ ํ์ ",
"byrobot_dronefighter_drone_control_double_wheel_right" : "์ค๋ฅธ์ชฝ ํ์ ",
"byrobot_dronefighter_drone_control_double_accel_forward" : "์ ์ง",
"byrobot_dronefighter_drone_control_double_accel_backward" : "ํ์ง",
"byrobot_dronefighter_drone_control_quad_roll" : "Roll",
"byrobot_dronefighter_drone_control_quad_pitch" : "Pitch",
"byrobot_dronefighter_drone_control_quad_yaw" : "Yaw",
"byrobot_dronefighter_drone_control_quad_throttle" : "Throttle",
"byrobot_dronefighter_drone_control_quad_roll_left" : "์ผ์ชฝ",
"byrobot_dronefighter_drone_control_quad_roll_right" : "์ค๋ฅธ์ชฝ",
"byrobot_dronefighter_drone_control_quad_pitch_forward" : "์์ผ๋ก",
"byrobot_dronefighter_drone_control_quad_pitch_backward" : "๋ค๋ก",
"byrobot_dronefighter_drone_control_quad_yaw_left" : "์ผ์ชฝ ํ์ ",
"byrobot_dronefighter_drone_control_quad_yaw_right" : "์ค๋ฅธ์ชฝ ํ์ ",
"byrobot_dronefighter_drone_control_quad_throttle_up" : "์",
"byrobot_dronefighter_drone_control_quad_throttle_down" : "์๋",
/* BYROBOT DroneFighter End */
"CODEino_get_sensor_number_0": "0",
"CODEino_get_sensor_number_1": "1",
"CODEino_get_sensor_number_2": "2",
"CODEino_get_sensor_number_3": "3",
"CODEino_get_sensor_number_4": "4",
"CODEino_get_sensor_number_5": "5",
"CODEino_get_sensor_number_6": "6",
"CODEino_sensor_name_0": "Sound",
"CODEino_sensor_name_1": "Light",
"CODEino_sensor_name_2": "Slider",
"CODEino_sensor_name_3": "resistance-A",
"CODEino_sensor_name_4": "resistance-B",
"CODEino_sensor_name_5": "resistance-C",
"CODEino_sensor_name_6": "resistance-D",
"CODEino_string_1": " Sensor value ",
"CODEino_string_2": " Operation ",
"CODEino_string_3": "Push button",
"CODEino_string_4": "Connected A",
"CODEino_string_5": "Connected B",
"CODEino_string_6": "Connected C",
"CODEino_string_7": "Connected D",
"CODEino_string_8": " 3-AXIS Accelerometer ",
"CODEino_string_9": "-axis value ",
"CODEino_string_10": "Sound is ",
"CODEino_string_11": "Great",
"CODEino_string_12": "Small",
"CODEino_string_13": "Light is ",
"CODEino_string_14": "Bright",
"CODEino_string_15": "Dark",
"CODEino_string_16": "Left tilt",
"CODEino_string_17": "Right tilt",
"CODEino_string_18": "Front tilt",
"CODEino_string_19": "Rear tilt",
"CODEino_string_20": "Reverse",
"CODEino_accelerometer_X": "X",
"CODEino_accelerometer_Y": "Y",
"CODEino_accelerometer_Z": "Z",
"dplay_switch": "์ค์์น ",
"dplay_light": "๋น์ผ์๊ฐ ",
"dplay_tilt": "๊ธฐ์ธ๊ธฐ์ผ์ ์ํ๊ฐ",
"dplay_string_1": "์ผ์ง",
"dplay_string_2": "๊บผ์ง",
"dplay_string_3": "๋ฐ์",
"dplay_string_4": "์ด๋์",
"dplay_string_5": "๋๋ฆผ",
"dplay_string_6": "์ด๋ฆผ",
"dplay_num_pin_1": "LED ์ํ๋ฅผ",
"dplay_num_pin_2": "๋ฒ ์ค์์น๊ฐ",
"dplay_num_pin_3": "์๋ ๋ก๊ทธ",
"dplay_num_pin_4": "๋ฒ ",
"dplay_num_pin_5": "์ผ์๊ฐ",
"dplay_analog_number_0": "A0",
"dplay_analog_number_1": "A1",
"dplay_analog_number_2": "A2",
"dplay_analog_number_3": "A3",
"dplay_analog_number_4": "A4",
"dplay_analog_number_5": "A5",
"ARDUINO_arduino_get_string_1": "์ ํธ",
"ARDUINO_arduino_get_string_2": "์ ๊ธ์ ๊ฒฐ๊ณผ๊ฐ",
"ARDUINO_arduino_send_1": "์ ํธ",
"ARDUINO_arduino_send_2": "๋ณด๋ด๊ธฐ",
"ARDUINO_num_sensor_value_1": "์๋ ๋ก๊ทธ",
"ARDUINO_num_sensor_value_2": "๋ฒ ์ผ์๊ฐ",
"ARDUINO_get_digital_value_1": "๋์งํธ",
"ARDUINO_num_pin_1": "Digital",
"ARDUINO_num_pin_2": "Pin",
"ARDUINO_toggle_pwm_1": "Digital",
"ARDUINO_toggle_pwm_2": "Pin",
"ARDUINO_toggle_pwm_3": "",
"ARDUINO_on": "On",
"ARDUINO_convert_scale_1": "Map Value",
"ARDUINO_convert_scale_2": "",
"ARDUINO_convert_scale_3": "~",
"ARDUINO_convert_scale_4": "to",
"ARDUINO_convert_scale_5": "~",
"ARDUINO_convert_scale_6": "",
"ARDUINO_off": "Off",
"brightness": "๋ฐ๊ธฐ",
"BRUSH": "๋ถ",
"BRUSH_brush_erase_all": "this.brush.removeAll()",
"BRUSH_change_opacity_1": "this.brush.opacity +=",
"BRUSH_change_opacity_2": "",
"BRUSH_change_thickness_1": "this.brush.thickness +=",
"BRUSH_change_thickness_2": "",
"BRUSH_set_color_1": "this.brush.color =",
"BRUSH_set_color_2": "",
"BRUSH_set_opacity_1": "this.brush.opacity =",
"BRUSH_set_opacity_2": "",
"BRUSH_set_random_color": "this.brush.color = Entry.getRandomColor()",
"BRUSH_set_thickness_1": "this.brush.thickness =",
"BRUSH_set_thickness_2": "",
"BRUSH_stamp": "Stamp",
"BRUSH_start_drawing": "this.startDraw()",
"BRUSH_stop_drawing": "this.stopDraw()",
"CALC": "๊ณ์ฐ",
"CALC_calc_mod_1": "Entry.getMod(",
"CALC_calc_mod_2": ",",
"CALC_calc_mod_3": ")",
"CALC_calc_operation_of_1": "Entry.calculate(",
"CALC_calc_operation_of_2": ",",
"CALC_calc_operation_root": "๋ฃจํธ",
"CALC_calc_operation_square": "์ ๊ณฑ",
"CALC_calc_rand_1": "Entry.getRandomNumber(",
"CALC_calc_rand_2": ",",
"CALC_calc_rand_3": ")",
"CALC_calc_share_1": "Entry.getShare(",
"CALC_calc_share_2": ",",
"CALC_calc_share_3": ")",
"CALC_coordinate_mouse_1": "Entry.getMousePosition(",
"CALC_coordinate_mouse_2": ")",
"CALC_coordinate_object_1": "Entry.getPosition(",
"CALC_coordinate_object_2": ",",
"CALC_coordinate_object_3": ")",
"CALC_distance_something_1": "Entry.getDistance(this,",
"CALC_distance_something_2": ")",
"CALC_get_angle": "๊ฐ๋๊ฐ",
"CALC_get_date_1": "Entry.getDate(",
"CALC_get_date_2": ")",
"CALC_get_date_day": "์ผ",
"CALC_get_date_hour": "์๊ฐ(์)",
"CALC_get_date_minute": "์๊ฐ(๋ถ)",
"CALC_get_date_month": "์",
"CALC_get_date_second": "์๊ฐ(์ด)",
"CALC_get_date_year": "์ฐ๋",
"CALC_get_sound_duration_1": "Entry.getSoundDuration(",
"CALC_get_sound_duration_2": ")",
"CALC_get_timer_value": "Entry.getTimerValue()",
"CALC_get_x_coordinate": "this.x",
"CALC_get_y_coordinate": "this.y",
"CALC_timer_reset": "Entry.resetTimer()",
"CALC_timer_visible_1": "Entry.timerVisible(",
"CALC_timer_visible_2": ")",
"CALC_timer_visible_show": "Show",
"CALC_timer_visible_hide": "Hide",
"color": "์๊น",
"FLOW": "ํ๋ฆ",
"FLOW__if_1": "if (",
"FLOW__if_2": ")",
"FLOW_create_clone_1": "Entry.createClone(",
"FLOW_create_clone_2": ")",
"FLOW_delete_clone": "Entry.removeClone(this)",
"FLOW_delete_clone_all": "Entry.removeAllClone()",
"FLOW_if_else_1": "if (",
"FLOW_if_else_2": ")",
"FLOW_if_else_3": "else",
"FLOW_repeat_basic_1": "for ( i = 0",
"FLOW_repeat_basic_2": ")",
"FLOW_repeat_basic_errorMsg": "",
"FLOW_repeat_inf": "while(true)",
"FLOW_restart": "Entry.restart()",
"FLOW_stop_object_1": "Entry.stop(",
"FLOW_stop_object_2": ")",
"FLOW_stop_object_all": "๋ชจ๋",
"FLOW_stop_object_this_object": "this.",
"FLOW_stop_object_this_thread": "์ด",
"FLOW_stop_object_other_thread": "์์ ์ ๋ค๋ฅธ",
"FLOW_stop_repeat": "break",
"FLOW_stop_run": "ํ๋ก๊ทธ๋จ ๋๋ด๊ธฐ",
"FLOW_wait_second_1": "Entry.wait(",
"FLOW_wait_second_2": ")",
"FLOW_wait_until_true_1": "while (",
"FLOW_wait_until_true_2": "!= true) { }",
"FLOW_when_clone_start": "Entry.addEventListener('clone_created')",
"FUNC": "ํจ์",
"JUDGEMENT": "ํ๋จ",
"JUDGEMENT_boolean_and": "&&",
"JUDGEMENT_boolean_not_1": "if (!",
"JUDGEMENT_boolean_not_2": ")",
"JUDGEMENT_boolean_or": "||",
"JUDGEMENT_false": "false",
"JUDGEMENT_is_clicked": "Entry.addEventListener('mouse_clicked')",
"JUDGEMENT_is_press_some_key_1": "Entry.isKeyPressed(",
"JUDGEMENT_is_press_some_key_2": ")",
"JUDGEMENT_reach_something_1": "Entry.isCollide(this,",
"JUDGEMENT_reach_something_2": ")",
"JUDGEMENT_true": "true",
"LOOKS": "์๊น์",
"LOOKS_change_scale_percent_1": "this.scale +=",
"LOOKS_change_scale_percent_2": "",
"LOOKS_change_to_next_shape": "this.setToNextShape()",
"LOOKS_change_to_nth_shape_1": "this.setShape(",
"LOOKS_change_to_nth_shape_2": ")",
"LOOKS_change_shape_prev": "Prev",
"LOOKS_change_shape_next": "Next",
"LOOKS_change_to_near_shape_1": "this.setTo",
"LOOKS_change_to_near_shape_2": "Shape()",
"LOOKS_dialog_1": "this.setDialog(",
"LOOKS_dialog_2": ",",
"LOOKS_dialog_3": ")",
"LOOKS_dialog_time_1": "this.setDialogByTime(",
"LOOKS_dialog_time_2": ",",
"LOOKS_dialog_time_3": ",",
"LOOKS_dialog_time_4": ")",
"LOOKS_erase_all_effects": "this.removeAllEffects()",
"LOOKS_flip_x": "this.flip('vertical')",
"LOOKS_flip_y": "this.flip('horizontal')",
"LOOKS_hide": "this.hide()",
"LOOKS_remove_dialog": "this.removeDialog()",
"LOOKS_set_effect_1": "this.setEffect(",
"LOOKS_set_effect_2": ",",
"LOOKS_set_effect_3": ")",
"LOOKS_set_effect_volume_1": "this.addEffect(",
"LOOKS_set_effect_volume_2": ",",
"LOOKS_set_effect_volume_3": ")",
"LOOKS_set_object_order_1": "Entry.setLayerOrder(this,",
"LOOKS_set_object_order_2": ")",
"LOOKS_set_scale_percent_1": "this.scale =",
"LOOKS_set_scale_percent_2": "",
"LOOKS_show": "this.show()",
"mouse_pointer": "๋ง์ฐ์คํฌ์ธํฐ",
"MOVING": "์์ง์",
"MOVING_bounce_wall": "Entry.bounceWall(this)",
"MOVING_bounce_when_1": "",
"MOVING_bounce_when_2": "์ ๋ฟ์ผ๋ฉด ํ๊ธฐ๊ธฐ",
"MOVING_flip_arrow_horizontal": "ํ์ดํ ๋ฐฉํฅ ์ข์ฐ ๋ค์ง๊ธฐ",
"MOVING_flip_arrow_vertical": "ํ์ดํ ๋ฐฉํฅ ์ํ ๋ค์ง๊ธฐ",
"MOVING_locate_1": "this.locateAt(",
"MOVING_locate_2": ")",
"MOVING_locate_time_1": "",
"MOVING_locate_time_2": "์ด ๋์",
"MOVING_locate_time_3": "์์น๋ก ์ด๋ํ๊ธฐ",
"MOVING_locate_x_1": "this.x =",
"MOVING_locate_x_2": "",
"MOVING_locate_xy_1": "this.setXY(",
"MOVING_locate_xy_2": ",",
"MOVING_locate_xy_3": ")",
"MOVING_locate_xy_time_1": "this.setXYbyTime(",
"MOVING_locate_xy_time_2": ",",
"MOVING_locate_xy_time_3": ",",
"MOVING_locate_xy_time_4": ")",
"MOVING_locate_y_1": "this.y =",
"MOVING_locate_y_2": "",
"MOVING_move_direction_1": "Entry.moveToDirection(",
"MOVING_move_direction_2": ")",
"MOVING_move_direction_angle_1": "Entry.moveToDirection(",
"MOVING_move_direction_angle_2": ",",
"MOVING_move_direction_angle_3": ")",
"MOVING_move_x_1": "this.x +=",
"MOVING_move_x_2": "",
"MOVING_move_xy_time_1": "this.moveXYbyTime(",
"MOVING_move_xy_time_2": ",",
"MOVING_move_xy_time_3": ",",
"MOVING_move_xy_time_4": ")",
"MOVING_move_y_1": "this.y +=",
"MOVING_move_y_2": "",
"MOVING_rotate_by_angle_1": "this.rotation +=",
"MOVING_rotate_by_angle_2": "",
"MOVING_rotate_by_angle_dropdown_1": "",
"MOVING_rotate_by_angle_dropdown_2": "๋งํผ ํ์ ํ๊ธฐ",
"MOVING_rotate_by_angle_time_1": "this.rotateByTime(",
"MOVING_rotate_by_angle_time_2": ",",
"MOVING_rotate_by_angle_time_3": ")",
"MOVING_rotate_direction_1": "this.direction +=",
"MOVING_rotate_direction_2": "",
"MOVING_see_angle_1": "this.direction =",
"MOVING_see_angle_2": "",
"MOVING_see_angle_direction_1": "this.rotation =",
"MOVING_see_angle_direction_2": "",
"MOVING_see_angle_object_1": "this.setDirectionTo(",
"MOVING_see_angle_object_2": ")",
"MOVING_see_direction_1": "",
"MOVING_see_direction_2": "์ชฝ ๋ณด๊ธฐ",
"MOVING_set_direction_by_angle_1": "this.rotation =",
"MOVING_set_direction_by_angle_2": "",
"MOVING_add_direction_by_angle_1": "this.rotation =",
"MOVING_add_direction_by_angle_2": "",
"MOVING_add_direction_by_angle_time_1": "this.rotate(",
"MOVING_add_direction_by_angle_time_2": ",",
"MOVING_add_direction_by_angle_time_3": ")",
"no_target": "๋์์์",
"oneself": "์์ ",
"opacity": "ํฌ๋ช
๋",
"SCENE": "์ฅ๋ฉด",
"SOUND": "์๋ฆฌ",
"SOUND_sound_silent_all": "Entry.silentAll()",
"SOUND_sound_something_1": "Entry.playSound(",
"SOUND_sound_something_2": ")",
"SOUND_sound_something_second_1": "Entry.playSoundByTime(",
"SOUND_sound_something_second_2": ",",
"SOUND_sound_something_second_3": ")",
"SOUND_sound_something_second_wait_1": "Entry.playSoundAndWaitByTime(",
"SOUND_sound_something_second_wait_2": ",",
"SOUND_sound_something_second_wait_3": ")",
"SOUND_sound_something_wait_1": "Entry.playSoundAndWait(",
"SOUND_sound_something_wait_2": ")",
"SOUND_sound_volume_change_1": "Entry.volume +=",
"SOUND_sound_volume_change_2": "",
"SOUND_sound_volume_set_1": "Entry.volume =",
"SOUND_sound_volume_set_2": "",
"speak": "๋งํ๊ธฐ",
"START": "์์",
"START_add_message": "์ ํธ ์ถ๊ฐํ๊ธฐ",
"START_delete_message": "์ ํธ ์ญ์ ํ๊ธฐ",
"START_message_cast": "์ ํธ ๋ณด๋ด๊ธฐ",
"START_message_cast_1": "Entry.dispatchEvent(",
"START_message_cast_2": ")",
"START_message_cast_wait": ")",
"START_message_send_wait_1": "Entry.dispatchEventAndWait(",
"START_message_send_wait_2": ")",
"START_mouse_click_cancled": "Entry.addEventListener('mouseup')",
"START_mouse_clicked": "Entry.addEventListener('mousedown')",
"START_press_some_key_1": "Entry.addEventListener('keydown', key==",
"START_press_some_key_2": ")",
"START_press_some_key_down": "์๋์ชฝ ํ์ดํ",
"START_press_some_key_enter": "์ํฐ",
"START_press_some_key_left": "์ผ์ชฝ ํ์ดํ",
"START_press_some_key_right": "์ค๋ฅธ์ชฝ ํ์ดํ",
"START_press_some_key_space": "์คํ์ด์ค",
"START_press_some_key_up": "์์ชฝ ํ์ดํ",
"START_when_message_cast": "์ ํธ๋ฅผ ๋ฐ์์ ๋",
"START_when_message_cast_1": "Entry.addEventListener(",
"START_when_message_cast_2": ")",
"START_when_object_click": "this.addEventListener('mousedown')",
"START_when_object_click_canceled": "this.addEventListener('mouseup')",
"START_when_run_button_click": "Entry.addEventListener('run')",
"START_when_scene_start": "์ฅ๋ฉด์ด ์์ํ์๋",
"START_when_some_key_click": "ํค๋ฅผ ๋๋ ์ ๋",
"TEXT": "๊ธ์์",
"TEXT_text": "Entry",
"TEXT_text_append_1": "Entry.appendText(",
"TEXT_text_append_2": ")",
"TEXT_text_flush": "Entry.clearText()",
"TEXT_text_prepend_1": "Entry.insertText(",
"TEXT_text_prepend_2": ")",
"TEXT_text_write_1": "Entry.writeText(",
"TEXT_text_write_2": ")",
"VARIABLE": "์๋ฃ",
"VARIABLE_add_value_to_list": "ํญ๋ชฉ์ ๋ฆฌ์คํธ์ ์ถ๊ฐํ๊ธฐ",
"VARIABLE_add_value_to_list_1": "Entry.pushValueToList(",
"VARIABLE_add_value_to_list_2": ",",
"VARIABLE_add_value_to_list_3": ")",
"VARIABLE_ask_and_wait_1": "Entry.askAndWait(",
"VARIABLE_ask_and_wait_2": ")",
"VARIABLE_change_value_list_index": "ํญ๋ชฉ์ ๋ฐ๊พธ๊ธฐ",
"VARIABLE_change_value_list_index_1": "Entry.changeValueListAt(",
"VARIABLE_change_value_list_index_3": ",",
"VARIABLE_change_value_list_index_2": ",",
"VARIABLE_change_value_list_index_4": ")",
"VARIABLE_change_variable": "๋ณ์ ๋ํ๊ธฐ",
"VARIABLE_change_variable_1": "Entry.addValueToVariable(",
"VARIABLE_change_variable_2": ",",
"VARIABLE_change_variable_3": ")",
"VARIABLE_change_variable_name": "๋ณ์ ์ด๋ฆ ๋ฐ๊พธ๊ธฐ",
"VARIABLE_combine_something_1": "Entry.concat(",
"VARIABLE_combine_something_2": ",",
"VARIABLE_combine_something_3": ")",
"VARIABLE_get_canvas_input_value": "Entry.getAnswer()",
"VARIABLE_get_variable": "๋ณ์๊ฐ",
"VARIABLE_get_variable_1": "Entry.getVariableValue(",
"VARIABLE_get_variable_2": ")",
"VARIABLE_get_y": "Y ์ขํฏ๊ฐ",
"VARIABLE_hide_list": "๋ฆฌ์คํธ ์จ๊ธฐ๊ธฐ",
"VARIABLE_hide_list_1": "Entry.hideList(",
"VARIABLE_hide_list_2": ")",
"VARIABLE_hide_variable": "๋ณ์๊ฐ ์จ๊ธฐ๊ธฐ",
"VARIABLE_hide_variable_1": "Entry.hideVariable(",
"VARIABLE_hide_variable_2": ")",
"VARIABLE_insert_value_to_list": "ํญ๋ชฉ์ ๋ฃ๊ธฐ",
"VARIABLE_insert_value_to_list_1": "Entry.pushValueToListAt(",
"VARIABLE_insert_value_to_list_2": ",",
"VARIABLE_insert_value_to_list_3": ",",
"VARIABLE_insert_value_to_list_4": ")",
"VARIABLE_length_of_list": "๋ฆฌ์คํธ์ ๊ธธ์ด",
"VARIABLE_length_of_list_1": "Entry.getLength(",
"VARIABLE_length_of_list_2": ")",
"VARIABLE_list": "๋ฆฌ์คํธ",
"VARIABLE_make_variable": "๋ณ์ ๋ง๋ค๊ธฐ",
"VARIABLE_list_option_first": "FIRST",
"VARIABLE_list_option_last": "LAST",
"VARIABLE_list_option_random": "RANDOM",
"VARIABLE_remove_value_from_list": "ํญ๋ชฉ์ ์ญ์ ํ๊ธฐ",
"VARIABLE_remove_value_from_list_1": "Entry.removeValueListAt(",
"VARIABLE_remove_value_from_list_2": ",",
"VARIABLE_remove_value_from_list_3": ")",
"VARIABLE_remove_variable": "๋ณ์ ์ญ์ ",
"VARIABLE_set_variable": "๋ณ์ ์ ํ๊ธฐ",
"VARIABLE_set_variable_1": "Entry.setValueVariable(",
"VARIABLE_set_variable_2": ",",
"VARIABLE_set_variable_3": ")",
"VARIABLE_show_list": "๋ฆฌ์คํธ ๋ณด์ด๊ธฐ",
"VARIABLE_show_list_1": "Entry.showList(",
"VARIABLE_show_list_2": ")",
"VARIABLE_show_variable": "๋ณ์๊ฐ ๋ณด์ด๊ธฐ",
"VARIABLE_show_variable_1": "Entry.showVariable(",
"VARIABLE_show_variable_2": ")",
"VARIABLE_value_of_index_from_list": "๋ฆฌ์คํธ ํญ๋ชฉ์ ๊ฐ",
"VARIABLE_value_of_index_from_list_1": "Entry.getListValueAt(",
"VARIABLE_value_of_index_from_list_2": ",",
"VARIABLE_value_of_index_from_list_3": ")",
"HAMSTER_hand_found": "Entry.Hamster.isHandFound()",
"HAMSTER_sensor_left_proximity": "Entry.Hamster.getLeftProximity()",
"HAMSTER_sensor_right_proximity": "Entry.Hamster.getRightProximity()",
"HAMSTER_sensor_left_floor": "Entry.Hamster.getLeftFloor()",
"HAMSTER_sensor_right_floor": "Entry.Hamster.getRightFloor()",
"HAMSTER_sensor_acceleration_x": "Entry.Hamster.getAccelerationX()",
"HAMSTER_sensor_acceleration_y": "Entry.Hamster.getAccelerationY()",
"HAMSTER_sensor_acceleration_z": "Entry.Hamster..getAccelerationZ()",
"HAMSTER_sensor_light": "Entry.Hamster.getLight()",
"HAMSTER_sensor_temperature": "Entry.Hamster.getTemperature()",
"HAMSTER_sensor_signal_strength": "Entry.Hamster.getSignalStrength()",
"HAMSTER_sensor_input_a": "Entry.Hamster.getInputA()",
"HAMSTER_sensor_input_b": "Entry.Hamster.getInputB()",
"HAMSTER_move_forward_once": "Entry.Hamster.moveForwardOnceOnBoard()",
"HAMSTER_turn_once_1": "Entry.Hamster.turnOnceOnBoard('",
"HAMSTER_turn_once_2": "')",
"HAMSTER_turn_once_left": "left",
"HAMSTER_turn_right": "right",
"HAMSTER_move_forward": "move forward",
"HAMSTER_move_backward": "move backward",
"HAMSTER_turn_around_1": "turn",
"HAMSTER_turn_around_2": "",
"HAMSTER_move_forward_for_secs_1": "move forward for",
"HAMSTER_move_forward_for_secs_2": "secs",
"HAMSTER_move_backward_for_secs_1": "move backward",
"HAMSTER_move_backward_for_secs_2": "secs",
"HAMSTER_turn_for_secs_1": "turn",
"HAMSTER_turn_for_secs_2": "for",
"HAMSTER_turn_for_secs_3": "secs",
"HAMSTER_change_both_wheels_by_1": "change wheel by left:",
"HAMSTER_change_both_wheels_by_2": "right:",
"HAMSTER_change_both_wheels_by_3": "",
"HAMSTER_set_both_wheels_to_1": "set wheel to left:",
"HAMSTER_set_both_wheels_to_2": "right:",
"HAMSTER_set_both_wheels_to_3": ")",
"HAMSTER_change_wheel_by_1": "Entry.Hamster.changeWheelsBy('",
"HAMSTER_change_wheel_by_2": "',",
"HAMSTER_change_wheel_by_3": ")",
"HAMSTER_left_wheel": "left",
"HAMSTER_right_wheel": "right",
"HAMSTER_both_wheels": "both",
"HAMSTER_set_wheel_to_1": "Entry.Hamster.setWheelsTo('",
"HAMSTER_set_wheel_to_2": "',",
"HAMSTER_set_wheel_to_3": ")",
"HAMSTER_follow_line_using_1": "Entry.Hamster.followLineUsingFloorSensor('",
"HAMSTER_follow_line_using_2": "','",
"HAMSTER_follow_line_using_3": "')",
"HAMSTER_left_floor_sensor": "left",
"HAMSTER_right_floor_sensor": "right",
"HAMSTER_both_floor_sensors": "both",
"HAMSTER_follow_line_until_1": "Entry.Hamster.followLineUntilIntersection('",
"HAMSTER_follow_line_until_2": "','",
"HAMSTER_follow_line_until_3": "')",
"HAMSTER_left_intersection": "left",
"HAMSTER_right_intersection": "right",
"HAMSTER_front_intersection": "front",
"HAMSTER_rear_intersection": "rear",
"HAMSTER_set_following_speed_to_1": "Entry.Hamster.setFollowingSpeedTo(",
"HAMSTER_set_following_speed_to_2": ")",
"HAMSTER_front": "front",
"HAMSTER_rear": "rear",
"HAMSTER_stop": "stop",
"HAMSTER_set_led_to_1": "Entry.Hamster.setLedTo('",
"HAMSTER_set_led_to_2": "','",
"HAMSTER_set_led_to_3": "')",
"HAMSTER_left_led": "left",
"HAMSTER_right_led": "right",
"HAMSTER_both_leds": "both",
"HAMSTER_clear_led_1": "Entry.Hamster.clearLed('",
"HAMSTER_clear_led_2": "')",
"HAMSTER_color_cyan": "cyan",
"HAMSTER_color_magenta": "magenta",
"HAMSTER_color_black": "black",
"HAMSTER_color_white": "white",
"HAMSTER_color_red": "red",
"HAMSTER_color_yellow": "yellow",
"HAMSTER_color_green": "green",
"HAMSTER_color_blue": "blue",
"HAMSTER_beep": "Entry.Hamster.beep()",
"HAMSTER_change_buzzer_by_1": "change buzzer by",
"HAMSTER_change_buzzer_by_2": "",
"HAMSTER_set_buzzer_to_1": "set buzzer to",
"HAMSTER_set_buzzer_to_2": "",
"HAMSTER_clear_buzzer": "clear buzzer",
"HAMSTER_play_note_for_1": "Entry.Hamster.playNoteForBeats('",
"HAMSTER_play_note_for_2": "',",
"HAMSTER_play_note_for_3": ",",
"HAMSTER_play_note_for_4": ")",
"HAMSTER_rest_for_1": "Entry.Hamster.restForBeats(",
"HAMSTER_rest_for_2": ")",
"HAMSTER_change_tempo_by_1": "Entry.Hamster.changeTempoBy(",
"HAMSTER_change_tempo_by_2": ")",
"HAMSTER_set_tempo_to_1": "Entry.Hamster.setTempoTo(",
"HAMSTER_set_tempo_to_2": ")",
"HAMSTER_set_port_to_1": "Entry.Hamster.setPortTo('",
"HAMSTER_set_port_to_2": "','",
"HAMSTER_set_port_to_3": "')",
"HAMSTER_change_output_by_1": "Entry.Hamster.changeOutputBy('",
"HAMSTER_change_output_by_2": "',",
"HAMSTER_change_output_by_3": ")",
"HAMSTER_set_output_to_1": "Entry.Hamster.setOutputTo('",
"HAMSTER_set_output_to_2": "',",
"HAMSTER_set_output_to_3": ")",
"HAMSTER_port_a": "A",
"HAMSTER_port_b": "B",
"HAMSTER_port_ab": "AB",
"HAMSTER_analog_input": "AnalogInput",
"HAMSTER_digital_input": "DigitalInput",
"HAMSTER_servo_output": "ServoOutput",
"HAMSTER_pwm_output": "PwmOutput",
"HAMSTER_digital_output": "DigitalOutput",
"ALBERT_hand_found": "Entry.Albert.isHandFound()",
"ALBERT_is_oid_1": "Entry.Albert.isOidValue('",
"ALBERT_is_oid_2": "',",
"ALBERT_is_oid_3": ")",
"ALBERT_front_oid": "front",
"ALBERT_back_oid": "back",
"ALBERT_sensor_left_proximity": "Entry.Albert.getLeftProximity()",
"ALBERT_sensor_right_proximity": "Entry.Albert.getRightProximity()",
"ALBERT_sensor_acceleration_x": "Entry.Albert.getAccelerationX()",
"ALBERT_sensor_acceleration_y": "Entry.Albert.getAccelerationY()",
"ALBERT_sensor_acceleration_z": "Entry.Albert.getAccelerationZ()",
"ALBERT_sensor_light": "Entry.Albert.getLight()",
"ALBERT_sensor_temperature": "Entry.Albert.getTemperature()",
"ALBERT_sensor_battery": "Entry.Albert.getBattery()",
"ALBERT_sensor_signal_strength": "Entry.Albert.getSignalStrength()",
"ALBERT_sensor_front_oid": "Entry.Albert.getFrontOid()",
"ALBERT_sensor_back_oid": "Entry.Albert.getBackOid()",
"ALBERT_sensor_position_x": "Entry.Albert.getPositionX()",
"ALBERT_sensor_position_y": "Entry.Albert.getPositionY()",
"ALBERT_sensor_orientation": "Entry.Albert.getOrientation()",
"ALBERT_move_forward": "Entry.Albert.moveForward()",
"ALBERT_move_backward": "Entry.Albert.moveBackward()",
"ALBERT_turn_around_1": "Entry.Albert.turn('",
"ALBERT_turn_around_2": "')",
"ALBERT_move_forward_for_secs_1": "Entry.Albert.moveForwardForSecs(",
"ALBERT_move_forward_for_secs_2": ")",
"ALBERT_move_backward_for_secs_1": "Entry.Albert.moveBackwardForSecs(",
"ALBERT_move_backward_for_secs_2": ")",
"ALBERT_turn_for_secs_1": "Entry.Albert.turnForSecs('",
"ALBERT_turn_for_secs_2": "',",
"ALBERT_turn_for_secs_3": ")",
"ALBERT_turn_left": "left",
"ALBERT_turn_right": "right",
"ALBERT_change_both_wheels_by_1": "Entry.Albert.changeWheelsBy(",
"ALBERT_change_both_wheels_by_2": ",",
"ALBERT_change_both_wheels_by_3": ")",
"ALBERT_left_wheel": "left",
"ALBERT_right_wheel": "right",
"ALBERT_both_wheels": "both",
"ALBERT_set_both_wheels_to_1": "Entry.Albert.setWheelsTo(",
"ALBERT_set_both_wheels_to_2": ",",
"ALBERT_set_both_wheels_to_3": ")",
"ALBERT_change_wheel_by_1": "Entry.Albert.changeWheelsBy('",
"ALBERT_change_wheel_by_2": "',",
"ALBERT_change_wheel_by_3": ")",
"ALBERT_set_wheel_to_1": "Entry.Albert.setWheelsTo('",
"ALBERT_set_wheel_to_2": "',",
"ALBERT_set_wheel_to_3": ")",
"ALBERT_stop": "Entry.Albert.stop()",
"ALBERT_set_board_size_to_1": "Entry.Albert.setBoardSizeTo(",
"ALBERT_set_board_size_to_2": ",",
"ALBERT_set_board_size_to_3": ")",
"ALBERT_move_to_x_y_1": "Entry.Albert.moveToOnBoard(",
"ALBERT_move_to_x_y_2": ",",
"ALBERT_move_to_x_y_3": ")",
"ALBERT_set_orientation_to_1": "Entry.Albert.setOrientationToOnBoard(",
"ALBERT_set_orientation_to_2": ")",
"ALBERT_set_eye_to_1": "Entry.Albert.setEyeTo('",
"ALBERT_set_eye_to_2": "','",
"ALBERT_set_eye_to_3": "')",
"ALBERT_left_eye": "left",
"ALBERT_right_eye": "right",
"ALBERT_both_eyes": "both",
"ALBERT_clear_eye_1": "Entry.Albert.clearEye('",
"ALBERT_clear_eye_2": "')",
"ALBERT_body_led_1": "",
"ALBERT_body_led_2": "body led",
"ALBERT_front_led_1": "",
"ALBERT_front_led_2": "front led",
"ALBERT_color_cyan": "cyan",
"ALBERT_color_magenta": "magenta",
"ALBERT_color_white": "white",
"ALBERT_color_red": "red",
"ALBERT_color_yellow": "yellow",
"ALBERT_color_green": "green",
"ALBERT_color_blue": "blue",
"ALBERT_note_c": "C",
"ALBERT_note_d": "D",
"ALBERT_note_e": "E",
"ALBERT_note_f": "F",
"ALBERT_note_g": "G",
"ALBERT_note_a": "A",
"ALBERT_note_b": "B",
"ALBERT_turn_body_led_1": "Entry.Albert.turnBodyLed('",
"ALBERT_turn_body_led_2": "')",
"ALBERT_turn_front_led_1": "Entry.Albert.turnFrontLed('",
"ALBERT_turn_front_led_2": "')'",
"ALBERT_turn_on": "on",
"ALBERT_turn_off": "off",
"ALBERT_beep": "Entry.Albert.beep()",
"ALBERT_change_buzzer_by_1": "Entry.Albert.changeBuzzerBy(",
"ALBERT_change_buzzer_by_2": ")",
"ALBERT_set_buzzer_to_1": "Entry.Albert.setBuzzerTo(",
"ALBERT_set_buzzer_to_2": ")",
"ALBERT_clear_buzzer": "Entry.Albert.clearBuzzer()",
"ALBERT_play_note_for_1": "Entry.Albert.playNoteForBeats('",
"ALBERT_play_note_for_2": "',",
"ALBERT_play_note_for_3": ",",
"ALBERT_play_note_for_4": ")",
"ALBERT_rest_for_1": "Entry.Albert.restForBeats(",
"ALBERT_rest_for_2": ")",
"ALBERT_change_tempo_by_1": "Entry.Albert.changeTempoBy(",
"ALBERT_change_tempo_by_2": ")",
"ALBERT_set_tempo_to_1": "Entry.Albert.setTempoTo(",
"ALBERT_set_tempo_to_2": ")",
"VARIABLE_variable": "๋ณ์",
"wall": "๋ฒฝ",
"robotis_common_case_01": "(์)๋ฅผ",
"robotis_common_set": "(์ผ)๋ก ์ ํ๊ธฐ",
"robotis_common_value": "๊ฐ",
"robotis_common_clockwhise": "์๊ณ๋ฐฉํฅ",
"robotis_common_counter_clockwhise": "๋ฐ์๊ณ๋ฐฉํฅ",
"robotis_common_wheel_mode": "ํ์ ๋ชจ๋",
"robotis_common_joint_mode": "๊ด์ ๋ชจ๋",
"robotis_common_red_color": "๋นจ๊ฐ์",
"robotis_common_green_color": "๋
น์",
"robotis_common_blue_color": "ํ๋์",
"robotis_common_on": "์ผ๊ธฐ",
"robotis_common_off": "๋๊ธฐ",
"robotis_common_cm": "์ ์ด๊ธฐ",
"robotis_common_port_1": "ํฌํธ 1",
"robotis_common_port_2": "ํฌํธ 2",
"robotis_common_port_3": "ํฌํธ 3",
"robotis_common_port_4": "ํฌํธ 4",
"robotis_common_port_5": "ํฌํธ 5",
"robotis_common_port_6": "ํฌํธ 6",
"robotis_common_play_buzzer": "์ฐ์ฃผ",
"robotis_common_play_motion": "์คํ",
"robotis_common_motion": "๋ชจ์
",
"robotis_common_index_number": "๋ฒ",
"robotis_cm_custom": "์ง์ ์
๋ ฅ ์ฃผ์",
"robotis_cm_spring_left": "์ผ์ชฝ ์ ์ด ์ผ์",
"robotis_cm_spring_right": "์ค๋ฅธ์ชฝ ์ ์ด ์ผ์",
"robotis_cm_led_left": "์ผ์ชฝ LED",
"robotis_cm_led_right": "์ค๋ฅธ์ชฝ LED",
"robotis_cm_led_both": "์ ์ชฝ LED",
"robotis_cm_switch": "์ ํ ๋ฒํผ ์ํ",
"robotis_cm_user_button": "์ฌ์ฉ์ ๋ฒํผ ์ํ",
"robotis_cm_sound_detected": "์ต์ข
์๋ฆฌ ๊ฐ์ง ํ์",
"robotis_cm_sound_detecting": "์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์",
"robotis_cm_ir_left": "์ผ์ชฝ ์ ์ธ์ ์ผ์",
"robotis_cm_ir_right": "์ค๋ฅธ์ชฝ ์ ์ธ์ ์ผ์",
"robotis_cm_calibration_left": "์ผ์ชฝ ์ ์ธ์ ์ผ์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ",
"robotis_cm_calibration_right": "์ค๋ฅธ์ชฝ ์ ์ธ์ ์ผ์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ",
"robotis_cm_clear_sound_detected": "์ต์ข
์๋ฆฌ๊ฐ์งํ์ ์ด๊ธฐํ",
"robotis_cm_buzzer_index": "์๊ณ๊ฐ",
"robotis_cm_buzzer_melody": "๋ฉ๋ก๋",
"robotis_cm_led_1": "1๋ฒ LED",
"robotis_cm_led_4": "4๋ฒ LED",
"robotis_aux_servo_position": "์๋ณด๋ชจํฐ ์์น",
"robotis_aux_ir": "์ ์ธ์ ์ผ์",
"robotis_aux_touch": "์ ์ด์ผ์",
"robotis_aux_brightness": "์กฐ๋์ผ์(CDS)",
"robotis_aux_hydro_themo_humidity": "์จ์ต๋์ผ์(์ต๋)",
"robotis_aux_hydro_themo_temper": "์จ์ต๋์ผ์(์จ๋)",
"robotis_aux_temperature": "์จ๋์ผ์",
"robotis_aux_ultrasonic": "์ด์ํ์ผ์",
"robotis_aux_magnetic": "์์์ผ์",
"robotis_aux_motion_detection": "๋์๊ฐ์ง์ผ์",
"robotis_aux_color": "์ปฌ๋ฌ์ผ์",
"robotis_aux_custom": "์ฌ์ฉ์ ์ฅ์น",
"robotis_carCont_aux_motor_speed_1": "๊ฐ์๋ชจํฐ ์๋๋ฅผ",
"robotis_carCont_aux_motor_speed_2": ", ์ถ๋ ฅ๊ฐ์",
"robotis_carCont_calibration_1": "์ ์ธ์ ์ผ์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ์",
"robotis_openCM70_aux_motor_speed_1": "๊ฐ์๋ชจํฐ ์๋๋ฅผ",
"robotis_openCM70_aux_motor_speed_2": ", ์ถ๋ ฅ๊ฐ์",
"robotis_openCM70_aux_servo_mode_1": "์๋ณด๋ชจํฐ ๋ชจ๋๋ฅผ",
"robotis_openCM70_aux_servo_speed_1": "์๋ณด๋ชจํฐ ์๋๋ฅผ",
"robotis_openCM70_aux_servo_speed_2": ", ์ถ๋ ฅ๊ฐ์",
"robotis_openCM70_aux_servo_position_1": "์๋ณด๋ชจํฐ ์์น๋ฅผ",
"robotis_openCM70_aux_led_module_1": "LED ๋ชจ๋์",
"robotis_openCM70_aux_custom_1": "์ฌ์ฉ์ ์ฅ์น๋ฅผ",
"XBOT_digital": "๋์งํธ",
"XBOT_D2_digitalInput": "D2 ๋์งํธ ์
๋ ฅ",
"XBOT_D3_digitalInput": "D3 ๋์งํธ ์
๋ ฅ",
"XBOT_D11_digitalInput": "D11 ๋์งํธ ์
๋ ฅ",
"XBOT_analog": "์๋ ๋ก๊ทธ",
"XBOT_CDS": "๊ด ์ผ์ ๊ฐ",
"XBOT_MIC": "๋ง์ดํฌ ์ผ์ ๊ฐ",
"XBOT_analog0": "์๋ ๋ก๊ทธ 0๋ฒ ํ ๊ฐ",
"XBOT_analog1": "์๋ ๋ก๊ทธ 1๋ฒ ํ ๊ฐ",
"XBOT_analog2": "์๋ ๋ก๊ทธ 2๋ฒ ํ ๊ฐ",
"XBOT_analog3": "์๋ ๋ก๊ทธ 3๋ฒ ํ ๊ฐ",
"XBOT_Value": "์ถ๋ ฅ ๊ฐ",
"XBOT_pin_OutputValue": "ํ, ์ถ๋ ฅ ๊ฐ",
"XBOT_High": "๋์",
"XBOT_Low": "๋ฎ์",
"XBOT_Servo": "์๋ณด ๋ชจํฐ",
"XBOT_Head": "๋จธ๋ฆฌ(D8)",
"XBOT_ArmR": "์ค๋ฅธ ํ(D9)",
"XBOT_ArmL": "์ผ ํ(D10)",
"XBOT_angle": ", ๊ฐ๋",
"XBOT_DC": "๋ฐํด(DC) ๋ชจํฐ",
"XBOT_rightWheel": "์ค๋ฅธ์ชฝ",
"XBOT_leftWheel": "์ผ์ชฝ",
"XBOT_bothWheel": "์์ชฝ",
"XBOT_speed": ", ์๋",
"XBOT_rightSpeed": "๋ฐํด(DC) ๋ชจํฐ ์ค๋ฅธ์ชฝ(2) ์๋:",
"XBOT_leftSpeed": "์ผ์ชฝ(1) ์๋:",
"XBOT_RGBLED_R": "RGB LED ์ผ๊ธฐ R ๊ฐ",
"XBOT_RGBLED_G": "G ๊ฐ",
"XBOT_RGBLED_B": "B ๊ฐ",
"XBOT_RGBLED_color": "RGB LED ์",
"XBOT_set": "๋ก ์ ํ๊ธฐ",
"XBOT_c": "๋",
"XBOT_d": "๋ ",
"XBOT_e": "๋ฏธ",
"XBOT_f": "ํ",
"XBOT_g": "์",
"XBOT_a": "๋ผ",
"XBOT_b": "์",
"XBOT_melody_ms": "์ด ์ฐ์ฃผํ๊ธฐ",
"XBOT_Line": "๋ฒ์งธ ์ค",
"XBOT_outputValue": "์ถ๋ ฅ ๊ฐ",
"roborobo_num_analog_value_1": "์๋ ๋ก๊ทธ",
"roborobo_num_analog_value_2": "๋ฒ ์ผ์๊ฐ",
"roborobo_get_digital_value_1": "๋์งํธ",
"roborobo_num_pin_1": "๋์งํธ",
"roborobo_num_pin_2": "๋ฒ ํ",
"roborobo_on": "์ผ๊ธฐ",
"roborobo_off": "๋๊ธฐ",
"roborobo_motor1": "๋ชจํฐ1",
"roborobo_motor2": "๋ชจํฐ2",
"roborobo_motor_CW": "์ ํ์ ",
"roborobo_motor_CCW": "์ญํ์ ",
"roborobo_motor_stop": "์ ์ง",
"roborobo_input_mode": "์
๋ ฅ",
"roborobo_output_mode": "์ถ๋ ฅ",
"roborobo_pwm_mode": "์ ๋ฅ์กฐ์ (pwm)",
"roborobo_servo_mode": "์๋ณด๋ชจํฐ",
"roborobo_color": "์ปฌ๋ฌ์ผ์",
"roborobo_color_red": " ๋นจ๊ฐ์ ",
"roborobo_color_green": " ๋
น์ ",
"roborobo_color_blue": " ํ๋์ ",
"roborobo_color_yellow": "๋
ธ๋์ ",
"roborobo_color_detected": " ๊ฐ์ง ",
"roborobo_degree": " ห",
"robotori_D2_Input": "๋์งํธ 2๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_D3_Input": "๋์งํธ 3๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_A0_Input": "์๋ ๋ก๊ทธ 0๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_A1_Input": "์๋ ๋ก๊ทธ 1๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_A2_Input": "์๋ ๋ก๊ทธ 2๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_A3_Input": "์๋ ๋ก๊ทธ 3๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_A4_Input": "์๋ ๋ก๊ทธ 4๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_A5_Input": "์๋ ๋ก๊ทธ 5๋ฒ ํ ์
๋ ฅ ๊ฐ",
"robotori_digital": "๋์งํธ",
"robotori_D10_Output": "10๋ฒ",
"robotori_D11_Output": "11๋ฒ",
"robotori_D12_Output": "12๋ฒ",
"robotori_D13_Output": "13๋ฒ",
"robotori_pin_OutputValue": "ํ, ์ถ๋ ฅ ๊ฐ",
"robotori_On": "์ผ์ง",
"robotori_Off": "๊บผ์ง",
"robotori_analog": "์๋ ๋ก๊ทธ",
"robotori_analog5": "5๋ฒ ํ ์ถ๋ ฅ ๊ฐ",
"robotori_analog6": "6๋ฒ ํ ์ถ๋ ฅ ๊ฐ",
"robotori_analog9": "9๋ฒ ํ ์ถ๋ ฅ ๊ฐ",
"robotori_Servo": "์๋ณด๋ชจํฐ",
"robotori_DC": "DC๋ชจํฐ",
"robotori_DC_rightmotor": "์ค๋ฅธ์ชฝ",
"robotori_DC_leftmotor": "์ผ์ชฝ",
"robotori_DC_STOP": "์ ์ง",
"robotori_DC_CW": "์๊ณ๋ฐฉํฅ",
"robotori_DC_CCW": "๋ฐ์๊ณ๋ฐฉํฅ",
"robotori_DC_select": "ํ์ ",
"CALC_rotation_value": "this.getRotation()",
"CALC_direction_value": "this.getDirection()",
"VARIABLE_is_included_in_list": "๋ฆฌ์คํธ์ ํฌํจ๋์ด ์๋๊ฐ?",
"VARIABLE_is_included_in_list_1": "Entry.isExistValueInList(",
"VARIABLE_is_included_in_list_2": ",",
"VARIABLE_is_included_in_list_3": ")",
"SCENE_when_scene_start": "this.addEventListener('sceneStart')",
"SCENE_start_scene_1": "Scene.changeScene(",
"SCENE_start_scene_2": ")",
"SCENE_start_neighbor_scene_1": "Scene.changeScene(",
"SCENE_start_neighbor_scene_2": ")",
"SCENE_start_scene_pre": "Scene.getPrevious()",
"SCENE_start_scene_next": "Scene.getNext()",
"FUNCTION_explanation_1": "์ด๋ฆ",
"FUNCTION_character_variable": "๋ฌธ์/์ซ์๊ฐ",
"FUNCTION_logical_variable": "ํ๋จ๊ฐ",
"FUNCTION_function": "ํจ์",
"FUNCTION_define": "ํจ์ ์ ์ํ๊ธฐ",
"CALC_calc_operation_sin": "Math.sin(value)",
"CALC_calc_operation_cos": "Math.cos(value)",
"CALC_calc_operation_tan": "Math.tan(value)",
"CALC_calc_operation_floor": "Math.floor(value)",
"CALC_calc_operation_ceil": "Math.ceil(value)",
"CALC_calc_operation_round": "Math.round(value)",
"CALC_calc_operation_factorial": "ํํ ๋ฆฌ์ผ๊ฐ",
"CALC_calc_operation_asin": "Math.asin(value)",
"CALC_calc_operation_acos": "Math.acos(value)",
"CALC_calc_operation_atan": "Math.atan(value)",
"CALC_calc_operation_log": "๋ก๊ทธ๊ฐ",
"CALC_calc_operation_ln": "์์ฐ๋ก๊ทธ๊ฐ",
"CALC_calc_operation_natural": "integer value",
"CALC_calc_operation_unnatural": "์์์ ๋ถ๋ถ",
"MOVING_locate_object_time_1": "",
"MOVING_locate_object_time_2": "์ด ๋์",
"MOVING_locate_object_time_3": "์์น๋ก ์ด๋ํ๊ธฐ",
"wall_up": "์์ชฝ ๋ฒฝ",
"wall_down": "์๋์ชฝ ๋ฒฝ",
"wall_right": "์ค๋ฅธ์ชฝ ๋ฒฝ",
"wall_left": "์ผ์ชฝ ๋ฒฝ",
"CALC_coordinate_x_value": "x ์ขํฏ๊ฐ",
"CALC_coordinate_y_value": "y ์ขํฏ๊ฐ",
"CALC_coordinate_rotation_value": "๋ฐฉํฅ",
"CALC_coordinate_direction_value": "์ด๋๋ฐฉํฅ",
"CALC_picture_index": "๋ชจ์ ๋ฒํธ",
"CALC_picture_name": "๋ชจ์ ์ด๋ฆ",
"FLOW_repeat_while_true_1": "Repeat",
"FLOW_repeat_while_true_2": "",
"TUT_when_start": "Entry.addEventListener('run_button_clicked')",
"TUT_move_once": "Entry.moveOnce()",
"TUT_rotate_left": "Entry.rotateLeft()",
"TUT_rotate_right": "Entry.rotateRight()",
"TUT_jump_barrier": "Entry.jumpBarrier()",
"TUT_repeat_tutorial_1": "Entry.repeat(",
"TUT_repeat_tutorial_2": ")",
"TUT_if_barrier_1": "if (",
"TUT_if_barrier_2": ")",
"TUT_if_conical_1": "if (",
"TUT_if_conical_2": ")",
"TUT_repeat_until": "while (Entry.reachToPart()) {}",
"TUT_repeat_until_gold": "while (Entry.reachToPart()) {}",
"TUT_declare_function": "new function()",
"TUT_call_function": "call function()",
"CALC_calc_operation_abs": "์ ๋๊ฐ",
"CONTEXT_COPY_option": "์ฝ๋ ๋ณต์ฌ",
"Delete_Blocks": "์ฝ๋ ์ญ์ ",
"Duplication_option": "์ฝ๋ ๋ณต์ฌ & ๋ถ์ฌ๋ฃ๊ธฐ",
"Paste_blocks": "๋ถ์ฌ๋ฃ๊ธฐ",
"Clear_all_blocks": "๋ชจ๋ ์ฝ๋ ์ญ์ ํ๊ธฐ",
"transparency": "ํฌ๋ช
๋",
"BRUSH_change_brush_transparency_1": "this.brush.opacity -=",
"BRUSH_change_brush_transparency_2": "",
"BRUSH_set_brush_transparency_1": "this.brush.opacity -=",
"BRUSH_set_brush_transparency_2": "",
"CALC_char_at_1": "",
"CALC_char_at_2": ".charAt(",
"CALC_char_at_3": ")",
"CALC_length_of_string_1": "",
"CALC_length_of_string_2": ".length()",
"CALC_substring_1": "",
"CALC_substring_2": ".subString(",
"CALC_substring_3": ",",
"length_of_string": "",
"CALC_substring_4": ")",
"CALC_replace_string_1": "",
"CALC_replace_string_2": ".replace(",
"CALC_replace_string_3": ",",
"CALC_replace_string_4": ")",
"CALC_change_string_case_1": "",
"CALC_change_string_case_2": "",
"CALC_change_string_case_3": " ",
"CALC_change_string_case_sub_1": ".uppercase()",
"CALC_change_string_case_sub_2": ".lowercase()",
"CALC_index_of_string_1": "",
"CALC_index_of_string_2": ".indexOf(",
"CALC_index_of_string_3": ")",
"MOVING_add_direction_by_angle_time_explain_1": "",
"MOVING_direction_relative_duration_1": "",
"MOVING_direction_relative_duration_2": "",
"MOVING_direction_relative_duration_3": "",
"CALC_get_sound_volume": "Volume",
"SOUND_sound_from_to_1": "",
"SOUND_sound_from_to_2": "",
"SOUND_sound_from_to_3": "",
"SOUND_sound_from_to_4": "",
"SOUND_sound_from_to_and_wait_1": "",
"SOUND_sound_from_to_and_wait_2": "",
"SOUND_sound_from_to_and_wait_3": "",
"SOUND_sound_from_to_and_wait_4": "",
"CALC_quotient_and_mod_1": "",
"CALC_quotient_and_mod_2": "/",
"CALC_quotient_and_mod_3": "",
"CALC_quotient_and_mod_4": " ",
"CALC_quotient_and_mod_sub_1": "๋ชซ",
"CALC_quotient_and_mod_sub_2": "๋๋จธ์ง",
"self": "์์ ",
"CALC_coordinate_size_value": "ํฌ๊ธฐ",
"CALC_choose_project_timer_action_1": "Entry.setTimer(",
"CALC_choose_project_timer_action_2": ")",
"CALC_choose_project_timer_action_sub_1": "์์ํ๊ธฐ",
"CALC_choose_project_timer_action_sub_2": "์ ์งํ๊ธฐ",
"CALC_choose_project_timer_action_sub_3": "์ด๊ธฐํํ๊ธฐ",
"LOOKS_change_object_index_1": "Entry.setLayerOrder(this,",
"LOOKS_change_object_index_2": ")",
"LOOKS_change_object_index_sub_1": "๋งจ ์์ผ๋ก",
"LOOKS_change_object_index_sub_2": "์์ผ๋ก",
"LOOKS_change_object_index_sub_3": "๋ค๋ก",
"LOOKS_change_object_index_sub_4": "๋งจ ๋ค๋ก",
"FLOW_repeat_while_true_until": "until",
"FLOW_repeat_while_true_while": "while",
"copy_block": "๋ธ๋ก ๋ณต์ฌ",
"delete_block": "๋ธ๋ก ์ญ์ ",
"tidy_up_block": "์ฝ๋ ์ ๋ฆฌํ๊ธฐ",
"block_hi": "์๋
!",
"entry_bot_name": "",
"hi_entry": "์๋
์ํธ๋ฆฌ!",
"hi_entry_en": "Hello Entry!",
"bark_dog": "๊ฐ์์ง ์ง๋ ์๋ฆฌ",
"walking_entryBot": "",
"entry": "์ํธ๋ฆฌ",
"hello": "์๋
",
"nice": "๋ฐ๊ฐ์",
"silent": "๋ฌด์",
"do_name": "๋",
"do_sharp_name": "๋#(๋ โญ)",
"re_name": "๋ ",
"re_sharp_name": "๋ #(๋ฏธโญ)",
"mi_name": "๋ฏธ",
"fa_name": "ํ",
"fa_sharp_name": "ํ#(์โญ)",
"sol_name": "์",
"sol_sharp_name": "์#(๋ผโญ)",
"la_name": "๋ผ",
"la_sharp_name": "๋ผ#(์โญ)",
"si_name": "์"
};
Lang.Buttons = {
"apply": "์ ์ฉํ๊ธฐ",
"cancel": "์ทจ์",
"save": "ํ์ธ",
"start": "์์",
"confirm": "ํ์ธ",
"delete": "์ญ์ ",
"create": "ํ๊ธ ๋ง๋ค๊ธฐ",
"done": "์๋ฃ",
"accept": "์๋ฝ",
"refuse": "๊ฑฐ์ ",
"yes": "์",
"button_no": "์๋์ค"
};
Lang.ko = "ํ๊ตญ์ด";
Lang.vn = "tiแบฟng Viแปt";
Lang.Menus = {
"duplicate_username": "์ด๋ฏธ ์
๋ ฅํ ์์ด๋ ์
๋๋ค.",
"share_your_project": "๋ด๊ฐ ๋ง๋ ์ํ์ ๊ณต์ ํด ๋ณด์ธ์",
"not_available_student": "ํ๊ธ์์ ๋ฐ๊ธ๋ 'ํ๊ธ ์์ด๋'์
๋๋ค.\n'์ํธ๋ฆฌ ํ์ ์์ด๋'๋ฅผ ์
๋ ฅํด์ฃผ์ธ์.",
"login_instruction": "๋ก๊ทธ์ธ ์๋ด",
"login_needed": "๋ก๊ทธ์ธ ํ ์ด์ฉํ ์ ์์ต๋๋ค.",
"login_as_teacher": "์ ์๋ ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธ ํ ์ด์ฉํ ์ ์์ต๋๋ค.",
"submit_hw": "๊ณผ์ ์ ์ถํ๊ธฐ",
"success_goal": "๋ชฉํ์ฑ๊ณต",
"choseok_final_result": "์ข์ , ๋๋ง์ ์ํ์ ์์ฑํ์ด!",
"choseok_fail_msg_timeout": "์๊ฐ์ด ๋๋ฌด ๋ง์ด ์ง๋๋ฒ๋ ธ์ด. ๋ชฉํ๋ฅผ ์ ๋ณด๊ณ ๋ค์ ํ๋ฒ ๋์ ํด๋ด!",
"choseok_fail_msg_die": "์๋ช
์ด 0์ดํ์ธ๋ฐ ๊ฒ์์ด ๋๋์ง ์์์ด.\n์๋์ ๋ธ๋ก์ ์ฌ์ฉํด์ ๋ค์ ๋์ ํด ๋ณด๋ ๊ฑด ์ด๋?",
"grade_1": "์ด๊ธ",
"grade_2": "์ค๊ธ",
"grade_3": "๊ณ ๊ธ",
"find_sally_title": "์๋ฆฌ๋ฅผ ์ฐพ์์",
"save_sally_title": "์๋ฆฌ ๊ตฌํ๊ธฐ",
"exit_sally_title": "์๋ฆฌ์ ํ์ถํ๊ธฐ",
"find_sally": "๋ผ์ธ ๋ ์ธ์ ์ค์ ํ์ ๋ชจ์ \n๊ฐ๋ ฅํ ์
๋น ๋ฉํผ์คํ ๋ฅผ ๋ฌผ๋ฆฌ์น๊ณ ์๋ฆฌ๋ฅผ ๊ตฌํด์ฃผ์ธ์!",
"save_sally": "๋ฉํผ์คํ ๊ธฐ์ง์ ๊ฐํ ์๋ฆฌ. \n๋ผ์ธ ๋ ์ธ์ ์ค๊ฐ ์ฅ์ ๋ฌผ์ ํผํด ์๋ฆฌ๋ฅผ ์ฐพ์๊ฐ ์ ์๋๋ก\n๋์์ฃผ์ธ์!",
"exit_sally": "ํญํ๋๊ณ ์๋ ๋ฉํผ์คํ ๊ธฐ์ง์์ \n์๋ฆฌ์ ๋ผ์ธ ๋ ์ธ์ ์ค๊ฐ ๋ฌด์ฌํ ํ์ถํ ์ ์๋๋ก\n๋์์ฃผ์ธ์!",
"go_next_mission": "๋ค๋ฅธ ๋ฏธ์
๋์ ํ๊ธฐ",
"share_my_project": "๋ด๊ฐ ๋ง๋ ์ํ ๊ณต์ ํ๊ธฐ",
"share_certification": "์ธ์ฆ์ ๊ณต์ ํ๊ธฐ",
"print_certification": "์ธ์ฆ์๋ฅผ ๋ฝ๋ด๋ด",
"get_cparty_events": "๋ด๊ฐ ๋ฐ์ ์ธ์ฆ์๋ฅผ ์ถ๋ ฅํด ๋ฝ๋ด๋ฉด ํธ์งํ ์ํ์ ๋ฐ์ ์ ์์ด์!",
"go_cparty_events": "์ด๋ฒคํธ ์ฐธ์ฌํ๋ฌ ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_1_title": "์์ผ๋ก ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_1_contents": "์์ผ๋ก ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_2_title": "์์ผ๋ก ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_2_contents": "ํ์ ํ๊ธฐ",
"codingparty2016_blockHelper_3_title": "์์ผ๋ก ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_3_contents": "๋ ๋ถ์๊ธฐ",
"codingparty2016_blockHelper_4_title": "์์ผ๋ก ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_4_contents": "ํ์ ๋ฐ๋ณตํ๊ธฐ",
"codingparty2016_blockHelper_5_title": "์์ผ๋ก ๊ฐ๊ธฐ",
"codingparty2016_blockHelper_5_contents": "๊ฝ ๋์ง๊ธฐ",
"codingparty2016_goalHint_1": "์๋ฆฌ๋ฅผ ๊ตฌํ๊ธฐ ์ํด์๋ ๋ฏธ๋ค๋์ด ํ์ํด! ๋ฏธ๋ค๋์ ์ป์ผ๋ฉฐ ๋ชฉ์ ์ง๊น์ง ๊ฐ๋ณด์!",
"codingparty2016_goalHint_2": "๊ตฌ๋ถ๊ตฌ๋ถํ ๊ธธ์ด ์๋ค. ํ์ ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์ด๋ ต์ง ์์ ๊ฑฐ์ผ!",
"codingparty2016_goalHint_3": "์์ด ๋๋ก ๋งํ์์์? ๋์ ๋ถ์๋ฉฐ ๋ชฉ์ ์ง๊น์ง ๊ฐ๋ณด์!",
"codingparty2016_goalHint_4": "๋ณต์กํ ๊ธธ์ด์ง๋ง ์ง๊ธ๊น์ง ๋ฐฐ์ด ๊ฒ๋ค๋ก ํด๊ฒฐํ ์ ์์ด!",
"codingparty2016_goalHint_5": "์์ผ๋ก ์ญ ๊ฐ๋ ๊ธธ์ด์์? ๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ์ฌ ๊ฐ๋จํ๊ฒ ํด๊ฒฐํด ๋ณด์!",
"codingparty2016_goalHint_6": "๋ฏธ๋ค๋์ ๋ชจ๋ ๋ชจ์์ค์. ๋ฐ๋ณต๋ธ๋ก์ ์ฐ๋ฉด ์ฝ๊ฒ ๋ค๋
์ฌ ์ ์๊ฒ ์ด!",
"codingparty2016_goalHint_7": "์น๊ตฌ๋ค์ด ๋ค์น์ง ์๋๋ก ๊ฝ์ ๋์ ธ ๊ฑฐ๋ฏธ์ง์ ์ ๊ฑฐํด์ผ ํด. ์ ๋ฉ๋ฆฌ ์๋ ๊ฑฐ๋ฏธ์ง์ ์ ๊ฑฐํ๊ณ ๋ชฉ์ ์ง๊น์ง ๊ฐ ๋ณด์.",
"codingparty2016_goalHint_8": "๊ฐ๋ ๊ธธ์ ๊ฑฐ๋ฏธ์ง์ด ๋ง์์? ๊ฑฐ๋ฏธ์ง์ ๋ชจ๋ ์ ๊ฑฐํ๊ณ ๋ชฉ์ ์ง๊น์ง ๊ฐ ๋ณด์.",
"codingparty2016_goalHint_9": "๊ฑฐ๋ฏธ์ง ๋ค์ชฝ์ ์๋ ๋ฏธ๋ค๋์ ๋ชจ๋ ๋ชจ์์ค์!",
"codingparty2016_guide_1_1_contents": "๋ผ์ธ ๋ ์ธ์ ์ค ์ ์ฌ๋ค์ด ์๋ฆฌ๋ฅผ ๊ตฌํ ์ ์๋๋ก ๋์์ค! ์ ์ฌ๋ค์ ์์ง์ด๊ธฐ ์ํด์๋ ๋ธ๋ก ๋ช
๋ น์ด๋ฅผ ์กฐ๋ฆฝํด์ผ ํด.\n\nโ ๋จผ์ ๋ฏธ์
ํ๋ฉด๊ณผ ๋ชฉํ๋ฅผ ํ์ธํ๊ณ ,\nโก ๋ธ๋ก ๊พธ๋ฌ๋ฏธ์์ ํ์ํ ๋ธ๋ก์ ๊ฐ์ ธ์ โ์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋โ ๋ธ๋ก๊ณผ ์ฐ๊ฒฐํด.\nโข ๋ค ์กฐ๋ฆฝ๋๋ฉด โ์์ํ๊ธฐโ ๋ฒํผ์ ๋๋ฌ ๋ด! ๋ธ๋ก์ด ์์์๋ถํฐ ์์๋๋ก ์คํ๋๋ฉฐ ์์ง์ผ ๊ฑฐ์ผ.",
"codingparty2016_guide_1_1_title": "๋ผ์ธ ๋ ์ธ์ ์ค ์ ์ฌ๋ค์ ์์ง์ด๋ ค๋ฉด?",
"codingparty2016_guide_1_2_title": "๋ชฉํ ๋ธ๋ก์ ๊ฐ์",
"codingparty2016_guide_1_2_contents": "โ [์ ์น ํด์ง ๋ณ]์ ๊ฐ์๋งํผ ๋ธ๋ก์ ์กฐ๋ฆฝํด ๋ฏธ์
์ ํด๊ฒฐํด๋ณด์. ๋ชฉํ ๋ธ๋ก๋ณด๋ค ๋ ๋ง์ ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ๋ณ์ด ๋นจ๊ฐ์์ผ๋ก ๋ฐ๋๋ ์ ํด์ง ๊ฐ์ ์์์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด ๋ด!\nโก ํ์ํ์ง ์์ ๋ธ๋ก์ ํด์งํต ๋๋ ๋ธ๋ก๊พธ๋ฌ๋ฏธ์ ๋ฃ์ด์ค.",
"codingparty2016_guide_1_3_title": "'์์ผ๋ก ๊ฐ๊ธฐ' ๋ธ๋ก์ ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_1_3_contents": "< ์์ผ๋ก ๊ฐ๊ธฐ > ๋ ์์ผ๋ก ํ ์นธ ์ด๋ํ๋ ๋ธ๋ก์ด์ผ. \n\n์ฌ๋ฌ ์นธ์ ์ด๋ํ๊ธฐ ์ํด์๋ ์ด ๋ธ๋ก์ ์ฌ๋ฌ ๋ฒ ์ฐ๊ฒฐํด์ผ ํด.",
"codingparty2016_guide_1_4_title": "๋ฏธ๋ค๋ ํ๋ํ๊ธฐ",
"codingparty2016_guide_1_4_contents": "[ ๋ฏธ๋ค๋ ]์ด ์๋ ๊ณณ์ ์ง๋๊ฐ๋ฉด ๋ฏธ๋ค๋์ ํ๋ํ ์ ์์ด\n\nํ๋ฉด์ ์๋ ๋ฏธ๋ค๋์ ๋ชจ๋ ํ๋ํ๊ณ ๋ชฉ์ ์ง์ ๋์ฐฉํด์ผ๋ง ๋ค์ ๋จ๊ณ๋ก ๋์ด๊ฐ ์ ์์ด.",
"codingparty2016_guide_1_5_title": "์ด๋ ค์ธ ๋ ๋์์ ๋ฐ์ผ๋ ค๋ฉด?",
"codingparty2016_guide_1_5_contents": "๋ฏธ์
์ ์ํํ๋ค๊ฐ ์ด๋ ค์ธ ๋ 3๊ฐ์ง ์ข
๋ฅ์ ๋์๋ง ๋ฒํผ์ ๋๋ฌ ๋ด.\n\n\n<์๋ด> ์ง๊ธ ์ด ์๋ด๋ฅผ ๋ค์ ๋ณด๊ณ ์ถ์ ๋!\n<๋ธ๋ก ๋์๋ง> ๋ธ๋ก ํ๋ํ๋๊ฐ ์ด๋ป๊ฒ ๋์ํ๋์ง ๊ถ๊ธํ ๋!\n<๋งต ํํธ> ์ด ๋จ๊ณ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํ ํํธ๊ฐ ํ์ํ ๋!",
"codingparty2016_guide_2_1_title": "ํ์ ๋ธ๋ก ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_2_1_contents": "<์ค๋ฅธ์ชฝ์ผ๋ก ๋๊ธฐ>์ <์ผ์ชฝ์ผ๋ก ๋๊ธฐ>๋ \n์ ์๋ฆฌ์์ 90๋ ํ์ ํ๋ ๋ธ๋ก์ด์ผ. ๋ฐฉํฅ๋ง ํ์ ํ๋ ๋ธ๋ก์ด์ผ. \n์บ๋ฆญํฐ๊ฐ ๋ฐ๋ผ๋ณด๊ณ ์๋ ๋ฐฉํฅ์ ๊ธฐ์ค์ผ๋ก ์ค๋ฅธ์ชฝ์ธ์ง ์ผ์ชฝ์ธ์ง ์ ์๊ฐํด ๋ด!\n",
"codingparty2016_guide_3_1_title": "(๋ฌธ) ๋ฅ๋ ฅ ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_3_1_contents": "๋ผ์ธ ๋ ์ธ์ ์ค ์ ์ฌ๋ค์ ๊ฐ์์ ๋ฅ๋ ฅ์ ๊ฐ์ง๊ณ ์์ด.\n๋ [๋ฌธ] ์ <๋ฐ์ฐจ๊ธฐํ๊ธฐ> ๋ก ๋ฐ๋ก ์์ ์๋ [๋]์ ๋ถ์ ์ ์์ด.\n[๋์] ๋ถ์๊ณ ๋๋ฉด ๋งํ ๊ธธ์ ์ง๋๊ฐ ์ ์๊ฒ ์ง?\nํ๋ฉด์ ์๋ [๋]์ ๋ชจ๋ ์ ๊ฑฐํด์ผ๋ง ๋ค์ ๋จ๊ณ๋ก ๋์ด๊ฐ ์ ์์ด.\n๊ทธ๋ ์ง๋ง ๋ช
์ฌํด! ์๋ฌด ๊ฒ๋ ์๋ ๊ณณ์ ๋ฅ๋ ฅ์ ๋ญ๋นํด์๋ ์ ๋ผ!",
"codingparty2016_guide_5_1_title": "'~๋ฒ ๋ฐ๋ณตํ๊ธฐ' ๋ธ๋ก ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_5_1_contents": "๋๊ฐ์ ์ผ์ ๋ฐ๋ณตํด์ ๋ช
๋ นํ๋ ๊ฑด ๋งค์ฐ ๊ท์ฐฎ์ ์ผ์ด์ผ.\n์ด๋ด ๋ ๋ช
๋ น์ ์ฌ์ฉํ๋ฉด ํจ์ฌ ์ฝ๊ฒ ๋ช
๋ น์ ๋ด๋ฆด ์ ์์ด. \n< [ ? ] ๋ฒ ๋ฐ๋ณตํ๊ธฐ> ๋ธ๋ก ์์ ๋ฐ๋ณต๋๋ ๋ช
๋ น ๋ธ๋ก์ ๋ฃ๊ณ \n[ ? ] ๋ถ๋ถ์ ํ์๋ฅผ ์
๋ ฅํ๋ฉด ์
๋ ฅํ ํ์๋งํผ ๊ฐ์ ๋ช
๋ น์ ๋ฐ๋ณตํ๊ฒ ๋ผ.",
"codingparty2016_guide_5_2_title": "'~๋ฒ ๋ฐ๋ณตํ๊ธฐ' ๋ธ๋ก ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_5_2_contents": "'< [ ? ] ๋ฒ ๋ฐ๋ณตํ๊ธฐ> ๋ธ๋ก ์์๋ ์ฌ๋ฌ ๊ฐ์ ๋ช
๋ น์ด๋ฅผ ๋ฃ์ ์๋ ์์ผ๋ ์ ํ์ฉํด๋ด! \n๋์ฐฉ์ง์ ๋์ฐฉํ๋๋ผ๋ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก ์์ ์๋ ๋ธ๋ก์ด ๋ชจ๋ ์คํ๋ผ.\n ์ฆ, ์ ์ํฉ์์ ๋ชฉ์ ์ง์ ๋์ฐฉํ ํ์๋ ์ผ์ชฝ์ผ๋ก ๋ ๋ค์์์ผ ๋๋๋ ๊ฑฐ์ผ!",
"codingparty2016_guide_7_1_title": "(์ฝ๋) ๋ฅ๋ ฅ ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_7_1_contents": "๋ โ์ฝ๋โ๋ <๊ฝ ๋์ง๊ธฐ>๋ก ๋จผ ๊ฑฐ๋ฆฌ์์๋ ์์ ์๋ [๊ฑฐ๋ฏธ์ง]์ ์์จ ์ ์์ด.\n[๊ฑฐ๋ฏธ์ง]์ ์์ ๊ณ ๋๋ฉด ๋งํ ๊ธธ์ ์ง๋๊ฐ ์ ์๊ฒ ์ง?\nํ๋ฉด์ ์๋ [๊ฑฐ๋ฏธ์ง]์ ๋ชจ๋ ์ ๊ฑฐํด์ผ๋ง ๋ค์ ๋จ๊ณ๋ก ๋์ด๊ฐ ์ ์์ด.\n๊ทธ๋ ์ง๋ง ๋ช
์ฌํด! ์๋ฌด๊ฒ๋ ์๋ ๊ณณ์ ๋ฅ๋ ฅ์ ๋ญ๋นํด์๋ ์ ๋ผ!",
"codingparty2016_guide_9_1_title": "์กฐ๊ฑด ๋ฐ๋ณต ๋ธ๋ก ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_9_1_contents": "๋ฐ๋ณตํ๋ ํ์๋ฅผ ์ธ์ง ์์๋, ์ด๋ค ์กฐ๊ฑด์ ๋ง์กฑํ ๋๊น์ง ํ๋์ ๋ฐ๋ณตํ ์ ์์ด.\n< [๋ชฉ์ ์ง]์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ > ๋ธ๋ก ์์ ๋ฐ๋ณต๋๋ ๋ช
๋ น ๋ธ๋ก์ ๋ฃ์ผ๋ฉด [๋ชฉ์ ์ง]์ ๋์ฐฉํ ๋๊น์ง ๋ช
๋ น์ ๋ฐ๋ณตํด.",
"codingparty2016_guide_9_2_title": "์กฐ๊ฑด ๋ฐ๋ณต ๋ธ๋ก ์ฌ์ฉํ๊ธฐ",
"codingparty2016_guide_9_2_contents": "<[๋ชฉ์ ์ง]์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ> ๋ธ๋ก ์์๋ ์ฌ๋ฌ ๊ฐ์ ๋ช
๋ น์ด๋ฅผ ๋ฃ์ ์๋ ์์ผ๋ ์ ํ์ฉํด๋ด!\n ๋์ฐฉ์ง์ ๋์ฐฉํ๋๋ผ๋ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก ์์ ์๋ ๋ธ๋ก์ด ๋ชจ๋ ์คํ ๋ผ. ์ฆ, ์ ์ํฉ์์ ๋ชฉ์ ์ง์ ๋์ฐฉํ ํ์๋ ์ผ์ชฝ์ผ๋ก ๋ ๋ค์์์ผ ๋๋๋ ๊ฑฐ์ผ!",
"find_interesting_lesson": "'์ฐ๋ฆฌ ๋ฐ ๊ฐ์'์์ ๋ค์ํ ๊ฐ์๋ฅผ ๋ง๋๋ณด์ธ์!",
"find_interesting_course": "'์ฐ๋ฆฌ ๋ฐ ๊ฐ์ ๋ชจ์'์์ ๋ค์ํ ๊ฐ์๋ฅผ ๋ง๋๋ณด์ธ์!",
"select_share_settings": "๊ณต์ ๊ณต๊ฐ์ ์ ํํด์ฃผ์ธ์.",
"major_updates": "์ฃผ์ ์
๋ฐ์ดํธ ์๋ด",
"check_new_update": "์ํธ๋ฆฌ์ ๋ณํ๋ฅผ ํ์ธํ์ธ์.",
"major_updates_notification": "์ํธ๋ฆฌ์ ์ฃผ์ ๋ณ๊ฒฝ์ฌํญ์ ๊ณต์ง๋ฅผ ํตํด ์๋ดํด ๋๋ฆฌ๊ณ ์์ต๋๋ค.",
"find_out_now": "์ง๊ธ ๋ฐ๋ก ํ์ธํ์ธ์!",
"offline_hw_program": "์คํ๋ผ์ธ & ํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ",
"read_more": "์์ธํ ๋ณด๊ธฐ",
"not_supported_function": "์ด ๊ธฐ๊ธฐ์์๋ ์ง์ํ์ง ์๋ ๊ธฐ๋ฅ์
๋๋ค.",
"offline_download_confirm": "์ํธ๋ฆฌ ์คํ๋ผ์ธ ๋ฒ์ ์ PC์์๋ง ์ด์ฉ๊ฐ๋ฅํฉ๋๋ค. ๋ค์ด๋ก๋ ํ์๊ฒ ์ต๋๊น?",
"copy_text": "ํ
์คํธ๋ฅผ ๋ณต์ฌํ์ธ์.",
"select_openArea_space": "์ํ ๊ณต์ ๊ณต๊ฐ์ ์ ํํด ์ฃผ์ธ์",
"mission_guide": "๋ฏธ์
ํด๊ฒฐํ๊ธฐ ์๋ด",
"of": " ์",
"no_results_found": "๊ฒ์ ๊ฒฐ๊ณผ๊ฐ ์์ต๋๋ค.",
"upload_pdf": "PDF ์๋ฃ ์
๋ก๋",
"select_basic_project": "์ํ ์ ํํ๊ธฐ",
"try_it_out": "๋ง๋ค์ด ๋ณด๊ธฐ",
"go_boardgame": "์ํธ๋ฆฌ๋ด ๋ณด๋๊ฒ์ ๋ฐ๋ก๊ฐ๊ธฐ",
"go_cardgame": "์ํธ๋ฆฌ๋ด ์นด๋๊ฒ์ ๋ฐ๋ก๊ฐ๊ธฐ",
"go_solve": "๋ฏธ์
์ผ๋ก ํ์ตํ๊ธฐ",
"go_ws": "์ํธ๋ฆฌ ๋ง๋ค๊ธฐ ๋ฐ๋ก๊ฐ๊ธฐ",
"go_arts": "์ํธ๋ฆฌ ๊ณต์ ํ๊ธฐ ๋ฐ๋ก๊ฐ๊ธฐ",
"group_delete_alert": "ํ๊ธ์ ์ญ์ ํ๋ฉด, ํด๋น ํ๊ธ์์ ๋ฐ๊ธํ ํ์์์๊ณ์ ์ ํฌํจํ์ฌ ๊ด๋ จํ ๋ชจ๋ ์๋ฃ๊ฐ ์ญ์ ๋ฉ๋๋ค.\n์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"view_arts_list": "๋ค๋ฅธ ์ํ ๋ณด๊ธฐ",
"hw_submit_confirm_alert": "๊ณผ์ ๊ฐ ์ ์ถ ๋์์ต๋๋ค.",
"hw_submit_alert": "๊ณผ์ ๋ฅผ ํ๋ฒ ์ ์ถํ๋ฉด ์์ ์ด ๋ถ๊ฐ๋ฅํฉ๋๋ค. \n ์ ์ถ ํ์๊ฒ ์ต๋๊น? ",
"see_other_missions": "๋ค๋ฅธ ๋ฏธ์
๋ณด๊ธฐ",
"project": " ์ํ",
"marked": " ๊ด์ฌ",
"group": "ํ๊ธ",
"lecture": "๊ฐ์",
"curriculum": "๊ฐ์ ๋ชจ์",
"studying": "ํ์ต ์ค์ธ",
"open_only_shared_lecture": "<b>์คํ ๊ฐ์</b> ํ์ด์ง์ <b><๊ณต๊ฐ></b> ํ ๊ฐ์๋ง ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค. ๋ถ๋ฌ์ค๊ณ ์ ํ๋ <b>๊ฐ์</b>์ <b>๊ณต๊ฐ์ฌ๋ถ</b>๋ฅผ ํ์ธํด ์ฃผ์ธ์.",
"already_exist_group": "์ด๋ฏธ ์กด์ฌํ๋ ํ๊ธ ์
๋๋ค.",
"cannot_invite_you": "์๊ธฐ ์์ ์ ์ด๋ํ ์ ์์ต๋๋ค.",
"apply_original_image": "์๋ณธ ์ด๋ฏธ์ง ๊ทธ๋๋ก ์ ์ฉํ๊ธฐ",
"draw_new_ques": "์๋ก ๊ทธ๋ฆฌ๊ธฐ ํ์ด์ง๋ก\n์ด๋ํ์๊ฒ ์ต๋๊น?",
"draw_new_go": "์ด๋ํ๊ธฐ",
"draw_new_stay": "์ด๋ํ์ง ์๊ธฐ",
"file_upload_desc_1": "์ด๋ฐ ๊ทธ๋ฆผ์ \n ์๋ผ์!",
"file_upload_desc_2": "ํผ๊ฐ ๋ณด์ด๊ณ ์์ธํ ๊ทธ๋ฆผ",
"file_upload_desc_3": "์ ์ ์ ์ธ ์ ์ฒด๋
ธ์ถ์ ๊ทธ๋ฆผ",
"file_upload_desc_4": "์์ด๋ ์ ์ฃผ ๋ฑ์ ๋ถ์พ๊ฐ์ ์ฃผ๊ฑฐ๋ ํ์ค๊ฐ์ ์ผ์ผํค๋ ๊ทธ๋ฆผ",
"file_upload_desc_5": "* ์์ ๊ฐ์ ๋ด์ฉ์ ์ด์ฉ์ฝ๊ด ๋ฐ ๊ด๋ จ ๋ฒ๋ฅ ์ ์ํด ์ ์ฌ๋ฅผ ๋ฐ์ผ์ค ์ ์์ต๋๋ค.",
"lesson_by_teacher": "์ ์๋๋ค์ด ์ง์ ๋ง๋๋ ๊ฐ์์
๋๋ค.",
"delete_group_art": "ํ๊ธ ๊ณต์ ํ๊ธฐ ๋ชฉ๋ก์์ ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"elementary_short": "์ด๋ฑ",
"middle_short": "์ค๋ฑ",
"edit_share_set_course": "๊ฐ์ ๋ชจ์ ๊ณต๊ฐ๋ฒ์ ์์ ",
"share_lesson": "๊ฐ์ ๊ณต์ ํ๊ธฐ",
"share_course": "๊ฐ์ ๋ชจ์ ๊ณต์ ํ๊ธฐ",
"from_list_ko": "์(๋ฅผ)",
"edit_share_set_lesson": "๊ฐ์ ๊ณต๊ฐ๋ฒ์ ์์ ",
"comming_soon": "์ค๋น์ค์
๋๋ค.",
"no_class_alert": "์ ํ๋ ํ๊ธ์ด ์์ต๋๋ค. ํ๊ธ์ด ์๋๊ฒฝ์ฐ '๋์ ํ๊ธ' ๋ฉ๋ด์์ ํ๊ธ์ ๋ง๋ค์ด ์ฃผ์ธ์.",
"students_cnt": "๋ช
",
"defult_class_alert_1": "",
"defult_class_alert_2": "์(๋ฅผ) \n ๊ธฐ๋ณธํ๊ธ์ผ๋ก ์ค์ ํ์๊ฒ ์ต๋๊น?",
"default_class": "๊ธฐ๋ณธํ๊ธ์
๋๋ค.",
"enter_hw_name": "๊ณผ์ ์ ์ ๋ชฉ์ ์
๋ ฅํด ์ฃผ์ธ์.",
"hw_limit_20": "๊ณผ์ ๋ 20๊ฐ ๊น์ง๋ง ๋ง๋ค์ ์์ต๋๋ค.",
"stu_example": "์)\n ํ๊ธธ๋\n ํ๊ธธ๋\n ํ๊ธธ๋",
"hw_description_limit_200": "์์ฑ ๊ณผ์ ์ ๋ํ ์๋ด ์ฌํญ์ ์
๋ ฅํด ์ฃผ์ธ์. (200์ ์ด๋ด)",
"hw_title_limit_50": "๊ณผ์ ๋ช
์ ์
๋ ฅํด ์ฃผ์ธ์. (50์ ์ด๋ด)",
"create_project_class_1": "'๋ง๋ค๊ธฐ > ์ํ ๋ง๋ค๊ธฐ' ์์",
"create_project_class_2": "ํ๊ธ์ ๊ณต์ ํ๊ณ ์ถ์ ์ํ์ ๋ง๋ค์ด ์ฃผ์ธ์.",
"create_lesson_assignment_1": "'๋ง๋ค๊ธฐ> ์คํ ๊ฐ์ ๋ง๋ค๊ธฐ'์์ ",
"create_lesson_assignment_2": "์ฐ๋ฆฌ ๋ฐ ๊ณผ์ ์ ์ถ๊ฐํ๊ณ ์ถ์ ๊ฐ์๋ฅผ ๋ง๋ค์ด ์ฃผ์ธ์.",
"i_make_lesson": "๋ด๊ฐ ๋ง๋๋ ๊ฐ์",
"lesson_to_class_1": "'ํ์ตํ๊ธฐ>์คํ ๊ฐ์'์์ ์ฐ๋ฆฌ๋ฐ",
"lesson_to_class_2": "๊ณผ์ ์ ์ถ๊ฐํ๊ณ ์ถ์ ๊ฐ์๋ฅผ ๊ด์ฌ๊ฐ์๋ก ๋ฑ๋กํด ์ฃผ์ธ์.",
"studying_students": "ํ์ต์",
"lessons_count": "๊ฐ์์",
"group_out": "๋๊ฐ๊ธฐ",
"enter_group_code": "ํ๊ธ์ฝ๋ ์
๋ ฅํ๊ธฐ",
"no_group_invite": "ํ๊ธ ์ด๋๊ฐ ์์ต๋๋ค.",
"done_create_group": "๊ฐ์ค์ด ์๋ฃ๋์์ต๋๋ค.",
"set_default_group": "๊ธฐ๋ณธํ๊ธ ์ค์ ",
"edit_group_info": "ํ๊ธ ์ ๋ณด ๊ด๋ฆฌ",
"edit_done": "์์ ์๋ฃ๋์์ต๋๋ค.",
"alert_group_out": "ํ๊ธ์ ์ ๋ง ๋๊ฐ์๊ฒ ์ต๋๊น?",
"lesson_share_cancel": "๊ฐ์ ๊ณต์ ์ทจ์",
"project_share_cancel": "์ํ ๊ณต์ ์ทจ์",
"lesson_share_cancel_alert": "์ด(๊ฐ) ๊ณต์ ๋ ๋ชจ๋ ๊ณต๊ฐ์์ ๊ณต์ ๋ฅผ ์ทจ์ํ๊ณ <๋๋ง๋ณด๊ธฐ>๋ก ๋ณ๊ฒฝํ์๊ฒ ์ต๋๊น? ",
"lesson_share_cancel_alert_en": "",
"course_share_cancel": "๊ฐ์ ๋ชจ์ ๊ณต์ ์ทจ์",
"select_lesson_share": "๊ฐ์ ๊ณต์ ๊ณต๊ฐ ์ ํ",
"select_project_share": "์ํ ๊ณต์ ์ ํ",
"select_lesson_share_policy_1": "๊ฐ์๋ฅผ ๊ณต์ ํ ",
"select_lesson_share_policyAdd": "๊ณต๊ฐ์ ์ ํํด ์ฃผ์ธ์",
"select_lesson_share_project_1": "์ํ์ ๊ณต์ ํ ๊ณต๊ฐ๊ณผ",
"select_lesson_share_policy_2": "์ ์๊ถ ์ ์ฑ
์ ํ์ธํด ์ฃผ์ธ์.",
"select_lesson_share_area": "๊ฐ์ ๊ณต์ ๊ณต๊ฐ์ ์ ํํด ์ฃผ์ธ์",
"select_project_share_area": "์ํ ๊ณต์ ๊ณต๊ฐ์ ์ ํํด ์ฃผ์ธ์",
"lesson_share_policy": "๊ฐ์ ๊ณต์ ์ ๋ฐ๋ฅธ ์ํธ๋ฆฌ ์ ์๊ถ ์ ์ฑ
๋์",
"project_share_policy": "์ํ ๊ณต์ ์ ๋ฐ๋ฅธ ์ํธ๋ฆฌ ์ ์๊ถ ์ ์ฑ
๋์",
"alert_agree_share": "๊ณต๊ฐํ๋ ค๋ฉด ์ํธ๋ฆฌ ์ ์๋ฌผ ์ ์ฑ
์ ๋์ํ์ฌ์ผ ํฉ๋๋ค.",
"alert_agree_all": "๋ชจ๋ ํญ๋ชฉ์ ๋์ํด ์ฃผ์ธ์.",
"select_course_share": "๊ฐ์ ๋ชจ์ ๊ณต์ ๊ณต๊ฐ ์ ํ",
"select_course_share_policy_1": "๊ฐ์ ๋ชจ์์ ๊ณต์ ํ ",
"select_course_share_policy_2": "์ ์๊ถ ์ ์ฑ
์ ํ์ธํด ์ฃผ์ธ์.",
"select_course_share_area": "๊ฐ์ ๋ชจ์ ๊ณต์ ๊ณต๊ฐ์ ์ ํํด ์ฃผ์ธ์",
"course_share_policy": "๊ฐ์ ๋ชจ์ ๊ณต์ ์ ๋ฐ๋ฅธ ์ํธ๋ฆฌ ์ ์๊ถ ์ ์ฑ
๋์",
"issued": "๋ฐ๊ธ",
"code_expired": "์ฝ๋๊ฐ ๋ง๋ฃ๋์์ต๋๋ค. '์ฝ๋์ฌ๋ฐ๊ธ' ๋ฒํผ๋ฅผ ๋๋ฅด์ธ์.",
"accept_class_invite": "ํ๊ธ์ด๋ ์๋ฝํ๊ธฐ",
"welcome_class": "ํ๊ธ์ ์ค์ ๊ฒ์ ํ์ํฉ๋๋ค.",
"enter_info": "์์ ์ ์ ๋ณด๋ฅผ ์
๋ ฅํด์ฃผ์ธ์.",
"done_group_signup": "ํ๊ธ ๊ฐ์
์ด ์๋ฃ๋์์ต๋๋ค.",
"enter_group_code_stu": "์ ์๋๊ป ๋ฐ์ ์ฝ๋๋ฅผ ์
๋ ฅํด์ฃผ์ธ์.",
"text_limit_50": "50๊ธ์ ์ดํ๋ก ์์ฑํด ์ฃผ์ธ์.",
"enter_class_name": "ํ๊ธ ์ด๋ฆ์ ์
๋ ฅํด ์ฃผ์ธ์.",
"enter_grade": "ํ๋
์ ์
๋ ฅํด ์ฃผ์ธ์.",
"enter_class_info": "ํ๊ธ์๊ฐ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์.",
"student_dup": "์(๋) ์ด๋ฏธ ํ๊ธ์ ์กด์ฌํฉ๋๋ค.",
"select_stu_print": "์ถ๋ ฅํ ํ์์ ์ ํํ์ธ์.",
"class_id_not_exist": "ํ๊ธ ID๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค.",
"error_try_again": "์ค๋ฅ ๋ฐ์. ๋ค์ ํ ๋ฒ ์๋ํด ์ฃผ์ธ์.",
"code_not_available": "์ ํจํ์ง ์์ ์ฝ๋์
๋๋ค.",
"gnb_create_lessons": "์คํ ๊ฐ์ ๋ง๋ค๊ธฐ",
"study_lessons": "๊ฐ์ ํ์ตํ๊ธฐ",
"lecture_help_1": "ํ์ต์ ์์ํ ๋, ์ฌ์ฉํ ์ํ์ ์ ํํด ์ฃผ์ธ์.<br>์ ํํ ์ํ์ผ๋ก ํ์ต์๊ฐ ํ์ต์ ์์ํ๊ฒ ๋ฉ๋๋ค.",
"lecture_help_2": "์ด๋์๋ง์ ๋ค์ ๋ณด์๋ ค๋ฉด<br>์ ๋ฒํผ์ ํด๋ฆญํด ์ฃผ์ธ์.",
"lecture_help_3": "์ค๋ธ์ ํธ ์ถ๊ฐํ๊ธฐ๊ฐ ์์ผ๋ฉด<br>์๋ก์ด ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํ๊ฑฐ๋ ์ญ์ ํ ์ ์์ต๋๋ค.",
"lecture_help_4": "ํ์ต๋์ค์ PDF์๋ฃ๋ณด๊ธฐ๋ฅผ ํตํด<br>ํ์ต์ ๋์์ ๋ฐ์ ์ ์์ต๋๋ค.",
"lecture_help_5": "ํ์ต์ ํ์ํ ๋ธ๋ก๋ค๋ง ์ ํํด์ฃผ์ธ์.<br>์ ํํ์ง ์์ ๋ธ๋ก์ ์จ๊ฒจ์ง๋๋ค.",
"only_pdf": ".pdfํ์์ ํ์ผ๋ง ์
๋ ฅ ๊ฐ๋ฅํฉ๋๋ค.",
"enter_project_video": "์ ์ด๋ ํ๋์ ์ํ์ด๋ ์์์ ์
๋ ฅํ์ธ์.",
"enter_title": "์ ๋ชฉ์ ์
๋ ฅํ์ธ์.",
"enter_recommanded_grade": "์ถ์ฒ ํ๋
์ ์
๋ ฅํ์ธ์.",
"enter_level_diff": "๋์ด๋๋ฅผ ์
๋ ฅํ์ธ์.",
"enter_time_spent": "์์์๊ฐ์ ์
๋ ฅํ์ธ์.",
"enter_shared_area": "์ ์ด๋ ํ๋์ ๊ณต์ ๊ณต๊ฐ์ ์ ํํ์ธ์.",
"enter_goals": "ํ์ต๋ชฉํ๋ฅผ ์
๋ ฅํ์ธ์.",
"enter_lecture_description": "๊ฐ์ ์ค๋ช
์ ์
๋ ฅํ์ธ์.",
"enter_curriculum_description": "๊ฐ์ ๋ชจ์ ์ค๋ช
์ ์
๋ ฅํ์ธ์.",
"first_page": "์ฒ์ ์
๋๋ค.",
"last_page": "๋ง์ง๋ง ์
๋๋ค.",
"alert_duplicate_lecture": "์ด๋ฏธ ๋ฑ๋ก๋ ๊ฐ์๋ ๋ค์ ๋ฑ๋กํ ์ ์์ต๋๋ค.",
"enter_lesson_alert": "ํ๋ ์ด์์ ๊ฐ์๋ฅผ ๋ฑ๋กํด์ฃผ์ธ์.",
"open_edit_lessons": "ํธ์งํ ๊ฐ์๋ฅผ ๋ถ๋ฌ์ค์ธ์.",
"saved_alert": "์ด(๊ฐ) ์ ์ฅ๋์์ต๋๋ค.",
"select_lesson_type": "์ด๋ค ํ์ต๊ณผ์ ์ ๋ง๋ค์ง ์ ํํด ์ฃผ์ธ์ ",
"create_lesson": "๊ฐ์ ๋ง๋ค๊ธฐ",
"create_lesson_desc_1": "์ํ๋ ํ์ต ๋ชฉํ์ ๋ง์ถฐ",
"create_lesson_desc_2": "๋จ์ผ ๊ฐ์๋ฅผ ๋ง๋ค์ด",
"create_lesson_desc_3": "ํ์ต์ ํ์ฉํฉ๋๋ค.",
"create_courseware": "๊ฐ์ ๋ชจ์ ๋ง๋ค๊ธฐ",
"create_courseware_desc_1": "ํ์ต ๊ณผ์ ์ ๋ง์ถฐ ์ฌ๋ฌ๊ฐ์ ๊ฐ์๋ฅผ",
"create_courseware_desc_2": "ํ๋์ ์ฝ์ค๋ก ๋ง๋ค์ด",
"create_courseware_desc_3": "ํ์ต์ ํ์ฉํฉ๋๋ค.",
"create_open_lesson": "์คํ ๊ฐ์ ๋ง๋ค๊ธฐ ",
"enter_lesson_info": "๊ฐ์ ์ ๋ณด ์
๋ ฅ ",
"select_lesson_feature": "ํ์ต ๊ธฐ๋ฅ ์ ํ ",
"check_info_entered": "์
๋ ฅ ์ ๋ณด ํ์ธ ",
"enter_lefo_lesson_long": "๊ฐ์๋ฅผ ๊ตฌ์ฑํ๋ ์ ๋ณด๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์.",
"lesson_info_desc": "ํ์ต์๊ฐ ํ์ตํ๊ธฐ ํ๋ฉด์์ ์ฌ์ฉํ ๊ธฐ๋ฅ๊ณผ ์ํ์ ์ ํํจ์ผ๋ก์จ, ํ์ต ๋ชฉํ์ ๋ด์ฉ์ ์ต์ ํ๋ ํ์ตํ๊ฒฝ์ ๊ตฌ์ฑํ ์ ์์ต๋๋ค.",
"provide_only_used": "์์ฑ๋ ์ํ์์ ์ฌ์ฉ๋ ๊ธฐ๋ฅ๋ง ๋ถ๋ฌ์ค๊ธฐ",
"see_help": "๋์๋ง ๋ณด๊ธฐ",
"select_done_project_1": "ํ์ต์๊ฐ ๋ชฉํ๋ก ์ค์ ํ ",
"select_done_project_2": "์์ฑ ์ํ",
"select_done_project_3": "์ ์ ํํด ์ฃผ์ธ์.",
"select_project": "๋์ ์ํ ๋๋ ๊ด์ฌ ์ํ์ ๋ถ๋ฌ์ต๋๋ค. ",
"youtube_desc": "์ ํฌ๋ธ ๊ณต์ ๋งํฌ๋ฅผ ํตํด ์ํ๋ ์์์ ๋ฃ์ ์ ์์ต๋๋ค.",
"lesson_video": "๊ฐ์ ์์",
"lesson_title": "๊ฐ์ ์ ๋ชฉ",
"recommended_grade": "์ถ์ฒํ๋
",
"selection_ko": "์ ํ",
"selection_en": "",
"level_of_diff": "๋์ด๋",
"select_level_of_diff": "๋์ด๋ ์ ํ",
"enter_lesson_title": "๊ฐ์ ์ ๋ชฉ์ ์
๋ ฅํด ์ฃผ์ธ์(30์ ์ด๋ด)",
"select_time_spent": "์์์๊ฐ ์ ํ ",
"time_spent": "์์์๊ฐ",
"lesson_overview": "๊ฐ์์ค๋ช
",
"upload_materials": "ํ์ต ์๋ฃ ์
๋ก๋",
"open": "๋ถ๋ฌ์ค๊ธฐ",
"cancel": "์ทจ์ํ๊ธฐ",
"upload_lesson_video": "๊ฐ์ ์์ ์
๋ก๋",
"youtube_upload_desc": "์ ํฌ๋ธ ๊ณต์ ๋งํฌ๋ฅผ ํตํด ๋ณด์กฐ์์์ ์ฝ์
ํ ์ ์์ต๋๋ค. ",
"cancel_select": "์ ํ ์ทจ์ํ๊ธฐ",
"select_again": "๋ค์ ์ ํํ๊ธฐ",
"goal_project": "์์ฑ์ํ",
"upload_study_data": "ํ์ตํ๊ธฐ ํ๋ฉด์์ ๋ณผ ์ ์๋ ํ์ต์๋ฃ๋ฅผ ์
๋ก๋ํด์ฃผ์ธ์. ํ์ต์๊ฐ ์
๋ก๋๋ ํ์ต์๋ฃ์ ๋ด์ฉ์ ํ์ธํ๋ฉฐ ํ์ตํ ์ ์์ต๋๋ค. ",
"upload_limit_20mb": "20MB ์ดํ์ ํ์ผ์ ์ฌ๋ ค์ฃผ์ธ์.",
"expect_time": "์์ ์์ ์๊ฐ",
"course_videos": "๋ณด์กฐ ์์",
"enter_courseware_info": "๊ฐ์ ๋ชจ์ ์ ๋ณด ์
๋ ฅ ",
"enter_course_info": "๊ฐ์ ๋ชจ์์ ์๊ฐํ๋ ์ ๋ณด๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์ ",
"select_lessons_for_course": "๊ฐ์ ๋ชจ์์ ๊ตฌ์ฑํ๋ ๊ฐ์๋ฅผ ์ ํํด ์ฃผ์ธ์.",
"course_build_desc_1": "๊ฐ์๋",
"course_build_desc_2": "์ต๋30๊ฐ",
"course_build_desc_3": "๋ฑ๋กํ ์ ์์ต๋๋ค.",
"lseeon_list": "๊ฐ์ ๋ชฉ๋ก ๋ณด๊ธฐ",
"open_lessons": "๊ฐ์ ๋ถ๋ฌ์ค๊ธฐ",
"course_title": "๊ฐ์ ๋ชจ์ ์ ๋ชฉ",
"title_limit_30": "๊ฐ์ ๋ชจ์ ์ ๋ชฉ์ ์
๋ ฅํด ์ฃผ์ธ์(30์ ์ด๋ด) ",
"course_overview": "๊ฐ์ ๋ชจ์ ์ค๋ช
",
"charactert_limit_200": "200์ ์ด๋ด๋ก ์์ฑํ ์ ์์ต๋๋ค.",
"edit_lesson": "๊ฐ์ ํธ์ง",
"courseware_by_teacher": "์ ์๋๋ค์ด ์ง์ ๋ง๋๋ ๊ฐ์ ๋ชจ์์
๋๋ค.",
"select_lessons": "๊ตฌ์ฑ ๊ฐ์ ์ ํ",
"check_course_info": "๊ฐ์ ๋ชจ์์ ๊ตฌ์ฑํ๋ ์ ๋ณด๊ฐ ์ฌ๋ฐ๋ฅธ์ง ํ์ธํด ์ฃผ์ธ์.",
"select_share_area": "๊ณต์ ๊ณต๊ฐ ์ ํ",
"upload_sub_project": "๋ณด์กฐ ํ๋ก์ ํธ ์
๋ก๋",
"file_download": "์ฒจ๋ถํ์ผ ๋ค์ด๋ก๋",
"check_lesson_info": "๊ฐ์๋ฅผ ๊ตฌ์ฑํ๋ ์ ๋ณด๊ฐ ์ฌ๋ฐ๋ฅธ์ง ํ์ธํด ์ฃผ์ธ์.",
"share_area": "๊ณต์ ๊ณต๊ฐ",
"enter_sub_project": "์ํธ๋ฆฌ ๋ณด์กฐ ํ๋ก์ ํธ๋ฅผ ๋ฑ๋กํด ์ฃผ์ธ์.",
"lms_hw_title": "๊ณผ์ ์ ๋ชฉ",
"lms_hw_ready": "์ค๋น",
"lms_hw_progress": "์งํ์ค",
"lms_hw_complete": "์๋ฃ",
"lms_hw_not_submit": "๋ฏธ์ ์ถ",
"lms_hw_closed": "์ ์ถ๋ง๊ฐ",
"submission_condition": "์งํ์ค์ธ ๊ณผ์ ๋ง ์ ์ถ์ด ๊ฐ๋ฅํฉ๋๋ค.",
"submit_students_only": "ํ์๋ง ๊ณผ์ ๋ฅผ ์ ์ถํ ์ ์์ต๋๋ค.",
"want_submit_hw": "๊ณผ์ ๋ฅผ ์ ์ถํ์๊ฒ ์ต๋๊น?",
"enter_correct_id": "์ฌ๋ฐ๋ฅธ ์์ด๋๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์.",
"id_not_exist": "์์ด๋๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค. ",
"agree_class_policy": "ํ๊ธ ์๋น์ค ์ด์ฉ์ฝ๊ด์ ๋์ํด ์ฃผ์ธ์.",
"delete_class": "ํ๊ธ ์ญ์ ",
"type_stu_name": "ํ์ ์ด๋ฆ์ ์
๋ ฅํด์ฃผ์ธ์. ",
"invite_from_1": "์์",
"invite_from_2": "๋์ ์ด๋ํ์์ต๋๋ค. ",
"lms_pw_alert_1": "ํ๊ธ์ ์์๋๋ฉด, ์ ์๋ ๊ถํ์ผ๋ก",
"lms_pw_alert_2": "๋น๋ฐ๋ฒํธ ์ฌ๋ฐ๊ธ์ด ๊ฐ๋ฅํฉ๋๋ค.",
"lms_pw_alert_3": "์ ์๋์ ์ด๋๊ฐ ๋ง๋์ง ํ๋ฒ ๋ ํ์ธํด์ฃผ์ธ์.",
"invitation_accepted": "์ด๋ ์๋ฝ์ด ์๋ฃ๋์์ต๋๋ค!",
"cannot_issue_pw": "์ด๋๋ฅผ ์๋ฝํ์ง ์์์ผ๋ฏ๋ก ๋น๋ฐ๋ฒํธ๋ฅผ ๋ฐ๊ธํ ์ ์์ต๋๋ค.",
"start_me": "<์๊ฐ ์ํธ๋ฆฌ>์ ํจ๊ป SW๊ต์ก์ ์์ํด๋ณด์ธ์!",
"monthly_desc_1": "<์๊ฐ ์ํธ๋ฆฌ>๋ ์ํํธ์จ์ด ๊ต์ก์ ์ต์ํ์ง ์์ ์ ์๋๋ค๋ ์ฝ๊ณ ์ฌ๋ฏธ์๊ฒ",
"monthly_desc_2": "์ํํธ์จ์ด ๊ต์ก์ ํ์ค ์ ์๋๋ก ๋ง๋ค์ด์ง SW๊ต์ก ์ก์ง์
๋๋ค.",
"monthly_desc_3": "๋งค์ ์ฌ๋ฏธ์๋ ํ์ต๋งํ์ ํจ๊ป ํ๋ SW ๊ต์ก ์ปจํ
์ธ ๋ฅผ ๋ง๋๋ณด์ธ์!",
"sw_lead_school": "SW ์ ๋?์ฐ๊ตฌํ๊ต๋ผ๋ฉด?",
"me_subscribe": "๊ตฌ๋
์ ์ฒญ",
"pizza_event": "ํผ์ ์ด๋ฒคํธ ์ฐธ์ฌ",
"event_confirm": "์ด๋ฒคํธ ๋น์ฒจ ํ์ธ",
"monthly_entry": "์๊ฐ ์ํธ๋ฆฌ",
"me_desc_1": "๋งค์ ๋ฐ๊ฐ๋๋ ๋ฌด๋ฃ ์ํํธ์จ์ด ๊ต์ก์ก์ง",
"me_desc_2": "์๊ฐ์ํธ๋ฆฌ๋ฅผ ๋ง๋๋ณด์ธ์!",
"solve_desc_1": "๊ฒ์์ ํ๋ฏ ๋ฏธ์
์ ํด๊ฒฐํ๋ฉฐ",
"solve_desc_2": "์ํํธ์จ์ด์ ๊ธฐ๋ณธ ์๋ฆฌ๋ฅผ ๋ฐฐ์๋ณด์ธ์!",
"playSw_desc_1": "EBS ๋ฐฉ์ก์์, ํน๋ณ์์์ ํตํด",
"playSw_desc_2": "์ํํธ์จ์ด๋ฅผ ๋ฐฐ์๋ณด์ธ์!",
"recommended_lessons": "์ถ์ฒ ๊ฐ์ ๋ชจ์",
"recommended_lessons_1": "๊ธฐ์ด๋ถํฐ ๊ณ ๊ธ๊น์ง ๊ต์ฌ์ ํจ๊ป ์ ๊ณต๋๋",
"recommended_lessons_2": "์ถ์ฒ ๊ฐ์ ๋ชจ์์ ๋ง๋๋ณด์ธ์!",
"offline_top_desc_1": "์คํ๋ผ์ธ ๋ฒ์ ์ ์ ์ฅ ๊ธฐ๋ฅ์ด ํฅ์๋๊ณ ๋ณด์์ด ๊ฐํ๋์์ต๋๋ค.",
"offline_top_desc_2": "์ง๊ธ ๋ฐ๋ก ๋ค์ด๋ฐ์ผ์ธ์",
"offline_main_desc": "์ํธ๋ฆฌ ์คํ๋ผ์ธ ์๋ํฐ ์
๋ฐ์ดํธ!!",
"art_description": "์ํธ๋ฆฌ๋ก ๋ง๋ ์ํ์ ๊ณต์ ํ๋ ๊ณต๊ฐ์
๋๋ค. ์ํ์ ๋ง๋ค๊ณ ๊ณต์ ์ ์ฐธ์ฌํด ๋ณด์ธ์.",
"study_index": "์ํธ๋ฆฌ์์ ์ ๊ณตํ๋ ์ฃผ์ ๋ณ, ํ๋
๋ณ ํ์ต๊ณผ์ ์ ํตํด ์ฐจ๊ทผ์ฐจ๊ทผ ์ํํธ์จ์ด๋ฅผ ๋ฐฐ์๋ณด์ธ์!",
"study_for_beginner": "์ฒ์ ์์ํ๋ ์ฌ๋๋ค์ ์ํ ์ํธ๋ฆฌ ํ์ต๊ณผ์ ",
"entrybot_desc_3": "์๋ด์ ๋ฐ๋ผ ๋ธ๋ก ๋ช
๋ น์ด๋ฅผ ์กฐ๋ฆฝํ์ฌ",
"entrybot_desc_4": "์ํธ๋ฆฌ๋ด์ ํ๊ต์ ๋ฐ๋ ค๋ค ์ฃผ์ธ์.",
"move_entrybot": "์ํธ๋ฆฌ๋ด ์์ง์ด๊ธฐ",
"can_change_entrybot_1": "๋ธ๋ก ๋ช
๋ น์ด๋ก ์ํธ๋ฆฌ๋ด์ ์์ ๋ฐ๊พธ๊ฑฐ๋",
"can_change_entrybot_2": "๋ง์ ํ๊ฒ ํ ์๋ ์์ด์.",
"learning_process_by_topics": "์ฃผ์ ๋ณ ํ์ต๊ณผ์ ",
"show_detail": "์์ธํ ๋ณด๊ธฐ",
"solve_mission": "๋ฏธ์
ํด๊ฒฐํ๊ธฐ",
"solve_mission_desc_1": "๊ฒ์์ ํ๋ฏ ๋ฏธ์
์ ํด๊ฒฐํ๋ฉฐ ํ๋ก๊ทธ๋๋ฐ์ ์๋ฆฌ๋ฅผ ์ตํ๋ณด์ธ์!",
"solve_mission_desc_2": "๋ฏธ๋ก ์์ ์ํธ๋ฆฌ๋ด์ ๋ชฉ์ ์ง๊น์ง ์์ง์ด๋ฉฐ ์์ฐจ, ๋ฐ๋ณต, ์ ํ, ๋น๊ต์ฐ์ฐ ๋ฑ์ ๊ฐ๋
์ ์์ฐ์ค๋ฝ๊ฒ ์ตํ ์ ์์ด์.",
"learning_process_by_grades": "ํ๋
๋ณ ์ถ์ฒ ํ์ต๊ณผ์ ",
"e3_to_e4": "์ด๋ฑ 3-4ํ๋
",
"e5_to_e6": "์ด๋ฑ 5-6ํ๋
",
"m1_to_m3": "์ค๋ฑ ์ด์",
"make_using_entry": "์ํธ๋ฆฌ๋ก ๋ง๋ค๊ธฐ",
"make_using_entry_desc_1": "๋ธ๋ก์ ์์ ์ฌ๋ฌ ๊ฐ์ง ์ํํธ์จ์ด๋ฅผ ๋ง๋ค์ด๋ณด์ธ์!",
"make_using_entry_desc_2": "์ ๊ณต๋๋ ๊ต์ฌ๋ฅผ ๋ค์ด๋ฐ์ ์ฐจ๊ทผ์ฐจ๊ทผ ๋ฐ๋ผํ๋ค๋ณด๋ฉด ์ ๋๋ฉ์ด์
, ๋ฏธ๋์ด์ํธ, ๊ฒ์ ๋ฑ ๋ค์ํ ์ํ์ ๋ง๋ค ์ ์์ด์.",
"make_through_ebs_1": "EBS ๋ฐฉ์ก์์์ผ๋ก ์ํํธ์จ์ด๋ฅผ ๋ฐฐ์๋ณด์ธ์.",
"make_through_ebs_2": "๋ฐฉ์ก์์์ ๋ฌผ๋ก , ์ฐจ๊ทผ์ฐจ๊ทผ ๋ฐ๋ผ ํ ์ ์๋ ํน๋ณ์์๊ณผ ํจ๊ป ๋๊ตฌ๋ ์ฝ๊ฒ ๋ค์ํ ์ํํธ์จ์ด๋ฅผ ๋ง๋ค ์ ์์ด์.",
"support_block_js": "๋ธ๋ก ์ฝ๋ฉ๊ณผ ์๋ฐ์คํฌ๋ฆฝํธ ์ธ์ด๋ฅผ ๋ชจ๋ ์ง์ํฉ๋๋ค.",
"study_ebs_title_1": "์์๋๋ก! ์ฐจ๋ก๋๋ก!",
"study_ebs_desc_1": "[์ค์ต] ์ํธ๋ฆฌ๋ด์ ์ฌ๋ถ๋ฆ",
"study_ebs_title_2": "์ฝ๊ณ ๊ฐ๋จํ๊ฒ!",
"study_ebs_desc_2": "[์ค์ต] ๊ฝ์ก์ด ๋ง๋ค๊ธฐ",
"study_ebs_title_3": "์ธ์ ์์ํ ๊น?",
"study_ebs_desc_3": "[์ค์ต] ๋๋ฌผ๊ฐ์กฑ ์๊ฐ",
"study_ebs_title_4": "๋ค๋ฅธ ์ ํ, ๋ค๋ฅธ ๊ฒฐ๊ณผ!",
"study_ebs_desc_4": "[์ค์ต] ํ
๋ ํ์ ๊ฒ์",
"study_ebs_title_5": "์ ๋ณด๋ฅผ ๋ด๋ ๊ทธ๋ฆ",
"study_ebs_desc_5": "[์ค์ต] ๋ง์
๋ก๋ด ๋ง๋ค๊ธฐ",
"study_ebs_title_6": "์๋ชจ์กฐ๋ชจ ๋ฐ์ ธ ๋ด!",
"study_ebs_desc_6": "[์ค์ต] ๋ณต๋ถ๋ณต ๋ฃฐ๋ ",
"study_ebs_title_7": "๋ฒํธ๋ก ๋ถ๋ฅด๋ฉด ํธํด์!",
"study_ebs_desc_7": "[์ค์ต] ๋๋ง์ ๋ฒํท๋ฆฌ์คํธ",
"study_ebs_title_8": "๋ฌด์์ ํ๋ก๊ทธ๋จ์ ๋ง๋ค์ด๋ผ!",
"study_ebs_desc_8": "[์ค์ต] ๋ฌด์์ ์บ๋ฆญํฐ ๋ง๋ค๊ธฐ",
"study_ebs_title_9": "์ด๋ป๊ฒ ์ฐพ์๊น?",
"study_ebs_desc_9": "[์ค์ต] ๋์๊ด ์ฑ
๊ฒ์",
"study_ebs_title_10": "์ค์ ์์์ค!",
"study_ebs_desc_10": "[์ค์ต] ํค ์ ๋ ฌ ํ๋ก๊ทธ๋จ",
"event": "์ด๋ฒคํธ",
"divide": "๋ถ๊ธฐ",
"condition": "์กฐ๊ฑด",
"random_number": "๋ฌด์์์",
"search": "ํ์",
"sorting": "์ ๋ ฌ",
"parallel": "๋ณ๋ ฌ",
"signal": "์ ํธ",
"input_output": "์
์ถ๋ ฅ",
"sequential": "์์ฐจ",
"repeat": "๋ฐ๋ณต",
"choice": "์ ํ",
"repeat_advanced": "๋ฐ๋ณต(ํ์+์กฐ๊ฑด)",
"function": "ํจ์",
"compare_operation": "๋น๊ต์ฐ์ฐ",
"arithmetic": "์ฐ์ ์ฐ์ฐ",
"entrybot_school": "์ํธ๋ฆฌ๋ด ํ๊ต ๊ฐ๋ ๊ธธ",
"entrybot_school_desc_1": "์ํธ๋ฆฌ๋ด์ด ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ฒจ ํ๊ต์",
"entrybot_school_desc_2": "๋์ฐฉํ ์ ์๋๋ก ๋์์ฃผ์ธ์!",
"robot_factory": "๋ก๋ด ๊ณต์ฅ",
"robot_factory_desc_1": "๋ก๋ด๊ณต์ฅ์ ๊ฐํ ์ํธ๋ฆฌ๋ด!",
"robot_factory_desc_2": "ํ์ถํ๊ธฐ ์ํด ๋ถํ์ ๋ชจ๋ ๋ชจ์์ผํด์.",
"electric_car": "์ ๊ธฐ ์๋์ฐจ",
"electric_car_desc_1": "์ํธ๋ฆฌ๋ด ์๋์ฐจ๊ฐ ๊ณ์ ์์ผ๋ก ๋์๊ฐ ์",
"electric_car_desc_2": "์๋๋ก ์ฐ๋ฃ๋ฅผ ์ถฉ์ ํด ์ฃผ์ธ์.",
"forest_adventure": "์ฒ์ ํํ",
"forest_adventure_desc_1": "์ํธ๋ฆฌ๋ด ์น๊ตฌ๊ฐ ์ฒ์์ ๊ฐํ์๋ค์!",
"forest_adventure_desc_2": "์น๊ตฌ๋ฅผ ๋์์ฃผ์ธ์.",
"town_adventure": "๋ง์ ํํ",
"town_adventure_desc_1": "๋ฐฐ๊ณ ํ ์ํธ๋ฆฌ๋ด์ ์ํด ๋ง์์ ์๋",
"town_adventure_desc_2": "์ฐ๋ฃ๋ฅผ ์ฐพ์์ฃผ์ธ์.",
"space_trip": "์ฐ์ฃผ ์ฌํ",
"space_trip_desc_1": "์ฐ์ฃผํ์ฌ๋ฅผ ๋ง์น ์ํธ๋ฆฌ๋ด!",
"space_trip_desc_2": "์ง๊ตฌ๋ก ๋์๊ฐ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"learn_programming_mission": "๋ฏธ์
์ ํด๊ฒฐํ๋ฉฐ ๋ฐฐ์ฐ๋ ํ๋ก๊ทธ๋๋ฐ",
"make_open_lecture": "์คํ ๊ฐ์ ๋ง๋ค๊ธฐ",
"group_created": "๋ง๋ ํ๊ธ",
"group_signup": "๊ฐ์
ํ ํ๊ธ",
"delete_from_list": "์(๋ฅผ) ๋ชฉ๋ก์์ ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"delete_from_list_en": "",
"lecture_collection": "๊ฐ์ ๋ชจ์",
"edit_mypage_profile": "์๊ธฐ์๊ฐ ์ ๋ณด ๊ด๋ฆฌ",
"main_image": "๋ฉ์ธ ์ด๋ฏธ์ง",
"edit_profile_success": "๋ฐ์๋์์ต๋๋ค.",
"no_project_1": "๋ด๊ฐ ๋ง๋ ์ํ์ด ์์ต๋๋ค.",
"no_project_2": "์ง๊ธ ์ํ ๋ง๋ค๊ธฐ๋ฅผ ์์ํด๋ณด์ธ์!",
"no_marked_project_1": "๊ด์ฌ ์ํ์ด ์์ต๋๋ค.",
"no_marked_project_2": "'์ํ ๊ณต์ ํ๊ธฐ'์์ ๋ค์ํ ์ํ์ ๋ง๋๋ณด์ธ์!",
"no_markedGroup_project_2": "'ํ๊ธ ๊ณต์ ํ๊ธฐ'์์ ๋ค์ํ ์ํ์ ๋ง๋๋ณด์ธ์!",
"view_project_all": "์ํ ๊ตฌ๊ฒฝํ๊ธฐ",
"no_lecture_1": "๋ด๊ฐ ๋ง๋ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"no_lecture_2": "'์คํ ๊ฐ์ ๋ง๋ค๊ธฐ'์์ ๊ฐ์๋ฅผ ๋ง๋ค์ด๋ณด์ธ์!",
"no_marked_lecture_1": "๊ด์ฌ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"no_marked_lecture_2": "'์คํ ๊ฐ์'์์ ๋ค์ํ ๊ฐ์๋ฅผ ๋ง๋๋ณด์ธ์!",
"view_lecture": "๊ฐ์ ์ดํด๋ณด๊ธฐ",
"no_studying_lecture_1": "ํ์ต ์ค์ธ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"no_studying_lecture_2": "'์คํ ๊ฐ์'์์ ํ์ต์ ์์ํด๋ณด์ธ์!",
"no_lecture_collect_1": "๋ด๊ฐ ๋ง๋ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"no_lecture_collect_2": "'์คํ ๊ฐ์ ๋ชจ์ ๋ง๋ค๊ธฐ'์์ ๊ฐ์ ๋ชจ์์ ๋ง๋ค์ด๋ณด์ธ์!",
"make_lecture_collection": "๊ฐ์ ๋ชจ์ ๋ง๋ค๊ธฐ",
"no_marked_lecture_collect_1": "๊ด์ฌ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"no_marked_lecture_collect_2": "'์คํ ๊ฐ์'์์ ๋ค์ํ ๊ฐ์๋ฅผ ๋ง๋๋ณด์ธ์!",
"view_lecture_collection": "๊ฐ์ ๋ชจ์ ์ดํด๋ณด๊ธฐ",
"no_studying_lecture_collect_1": "ํ์ต ์ค์ธ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"no_studying_lecture_collect_2": "'์คํ ๊ฐ์'์์ ํ์ต์ ์์ํด๋ณด์ธ์!",
"my_lecture": "๋์ ๊ฐ์",
"markedGroup": "ํ๊ธ ๊ด์ฌ",
"markedGroup_lecture": "ํ๊ธ ๊ด์ฌ ๊ฐ์",
"markedGroup_curriculum": "ํ๊ธ ๊ด์ฌ ๊ฐ์๋ชจ์",
"marked_lecture": "๊ด์ฌ ๊ฐ์",
"marked_lecture_collection": "๋์ ๊ด์ฌ ๊ฐ์ ๋ชจ์",
"marked_marked_curriculum": "๊ด์ฌ ๊ฐ์ ๋ชจ์",
"studying_lecture": "ํ์ต ์ค์ธ ๊ฐ์",
"completed_lecture": "ํ์ต ์๋ฃ ๊ฐ์",
"my_lecture_collection": "๋์ ๊ฐ์ ๋ชจ์",
"my": "๋์",
"studying_lecture_collection": "ํ์ต ์ค์ธ ๊ฐ์ ๋ชจ์",
"completed_lecture_collection": "ํ์ต ์๋ฃํ ๊ฐ์ ๋ชจ์",
"my_curriculum": "๋์ ๊ฐ์ ๋ชจ์",
"studying_curriculum": "ํ์ต ์ค์ธ ๊ฐ์ ๋ชจ์",
"completed_curriculum": "ํ์ต ์๋ฃํ ๊ฐ์ ๋ชจ์",
"materialCC": "์ํธ๋ฆฌ๊ต์ก์ฐ๊ตฌ์์์ ์์ฑ๋ ๋ชจ๋ ๊ต์ก์๋ฃ๋ CC-BY 2.0 ๋ผ์ด์ ์ค์ ๋ฐ๋ผ ์์ ๋กญ๊ฒ ์ด์ฉํ ์ ์์ต๋๋ค.",
"pdf": "PDF",
"helper": "๋์๋ง",
"youtube": "์์",
"tvcast": "์์",
"goal": "๋ชฉํ",
"basicproject": "์์๋จ๊ณ",
"hw": "ํ๋์จ์ด",
"object": "์ค๋ธ์ ํธ",
"console": "์ฝ์",
"download_info": "๋ชจ๋ ๊ต์ก์๋ฃ๋ ๊ฐ๊ฐ์ ์ ๋ชฉ์ ํด๋ฆญ ํ์๋ฉด ๋ค์ด๋ฐ์ผ์ค ์ ์์ต๋๋ค.",
"entry_materials_all": "์ํธ๋ฆฌ ๊ต์ก์๋ฃ ๋ชจ์",
"recommand_grade": "์ถ์ฒํ๋
",
"3_4_grades": "3-4 ํ๋
",
"5_6_grades": "5-6 ํ๋
",
"middle_grades": "์คํ์ ์ด์",
"entry_go_go": "์ํธ๋ฆฌ ๊ณ ๊ณ !",
"entry_go_go_desc": "ํ๋
๋ณ, ๋์ด๋ ๋ณ๋ก ์ค๋น๋ ๊ต์ฌ๋ฅผ ๋ง๋๋ณด์ธ์. ๊ฐ ๊ณผ์ ๋ณ๋ก ๊ต์ก๊ณผ์ , ๊ต์ฌ, ๊ต์ฌ์ฉ ์ง๋์๋ฃ 3์ข
์ธํธ๊ฐ ์ ๊ณต๋ฉ๋๋ค.",
"stage_beginner": "์ด๊ธ",
"stage_middle": "์ค๊ธ",
"stage_high": "๊ณ ๊ธ",
"middle_school_short": "์ค๋ฑ",
"learn_entry_programming": "๋ฐ๋ผํ๋ฉฐ ๋ฐฐ์ฐ๋ ์ํธ๋ฆฌ ํ๋ก๊ทธ๋๋ฐ",
"entry_programming_desc": "์ฐจ๊ทผ์ฐจ๊ทผ ๋ฐ๋ผ ํ๋ค ๋ณด๋ฉด ์ด๋์ ๋๋ ์ํธ๋ฆฌ ๊ณ ์!",
"ebs": "EBS",
"ebs_material_desc": "๋ฐฉ์ก ์์๊ณผ ๊ต์ฌ์ฉ ์ง๋์๋ฅผ ํ์ฉํ์ฌ ์์
์ ํด๋ณด์ธ์!",
"season_1_material": "์์ฆ1 ๊ต์ฌ์ฉ ์ง๋์",
"season_2_material": "์์ฆ2 ๊ต์ฌ์ฉ ์ง๋์",
"compute_think_textbook": "๊ต๊ณผ์๋ก ๋ฐฐ์ฐ๋ ์ปดํจํ
์ฌ๊ณ ๋ ฅ",
"computational_sw": "๊ตญ์ด, ์ํ, ๊ณผํ, ๋ฏธ์ ... ํ๊ต์์ ๋ฐฐ์ฐ๋ ๋ค์ํ ๊ต๊ณผ์ ์ฐ๊ณํ์ฌ sw๋ฅผ ๋ฐฐ์๋ณด์ธ์!",
"entry_x_hardware": "์ํธ๋ฆฌ X ํ๋์จ์ด ๊ต์ก์๋ฃ ๋ชจ์",
"e_sensor": "E ์ผ์๋ณด๋",
"arduino": "์๋์ด๋
ธ",
"arduinoExt": "์๋์ด๋
ธ Uno ํ์ฅ๋ชจ๋",
"orange_board": "์ค๋ ์ง๋ณด๋",
"joystick": "์ค๋ ์ง๋ณด๋(์กฐ์ด์คํฑ)",
"ardublock": "์๋๋ธ๋ญ",
"codingtoolbox": "์ฝ๋ฉํด๋ฐ์ค",
"materials_etc_all": "๊ธฐํ ๊ต์ก์๋ฃ ๋ชจ์",
"materials_teaching": "๊ต์ ์ฐ์ ์๋ฃ",
"materials_etc": "๊ธฐํ ์ฐธ๊ณ ์๋ฃ",
"materials_teaching_1": "SW๊ต์ก์ ํ์์ฑ๊ณผ ๊ต์ก ๋ฐฉ๋ฒ๋ก ",
"materials_teaching_2": "์ํธ๋ฆฌ์ ํจ๊ปํ๋ ์ธํ๋ฌ๊ทธ๋ ํ๋",
"materials_teaching_3": "๊ฒ์์ผ๋ก ๋ฐฐ์ฐ๋ ์ํธ๋ฆฌ ํ์ต๋ชจ๋ ํ๋",
"materials_teaching_4": "์ค์ํ ๋ฌธ์ ํด๊ฒฐ์ ์ํ ์ํธ๋ฆฌ ํ๋ก๊ทธ๋๋ฐ",
"materials_teaching_5": "์ํธ๋ฆฌ๋ก ์์ํ๋ ๊ต๊ณผ์ฐ๊ณsw๊ต์ก1",
"materials_teaching_6": "์ํธ๋ฆฌ๋ก ์์ํ๋ ๊ต๊ณผ์ฐ๊ณsw๊ต์ก2",
"materials_teaching_7": "ํผ์ง์ปฌ ์ปดํจํ
์ค์ต1(E์ผ์๋ณด๋)",
"materials_teaching_8": "ํผ์ง์ปฌ ์ปดํจํ
์ค์ต2(ํ์คํฐ)",
"materials_teaching_9": "์์
์ ํ์ํ ํ๊ธ/๊ฐ์ ๊ธฐ๋ฅ ์์๋ณด๊ธฐ",
"materials_etc_1": "์์
์ ๋ฐ๋ก ํ์ฉํ ์ ์๋ ๋ค์ํ ์ฝํ
์ธ ๋ชจ์์ง",
"materials_etc_2": "์ํธ๋ฆฌ๋ฅผ ์ฒ์ ์ฌ์ฉํ๋ ์ ์๋๋ค์ ์ํ ๊ฐ์ด๋",
"materials_etc_3": "์๊ฐ ์ํธ๋ฆฌ",
"materials_etc_4": "์ํธ๋ฆฌ ์ค๋ช
์",
"materials_etc_5": "์ํธ๋ฆฌ ์๊ฐ ์๋ฃ",
"materials_etc_6": "์ํธ๋ฆฌ ๋ธ๋ก ์ฑ
๋ฐ์นจ",
"jr_if_1": "๋ง์ฝ",
"jr_if_2": "์์ ์๋ค๋ฉด",
"jr_fail_no_pencil": "์ด๋ฐ ๊ทธ๊ณณ์๋ ์ฐํ์ด ์์ด. ์ฐํ์ด ์๋ ๊ณณ์์ ์ฌ์ฉํด๋ณด์~",
"jr_fail_forgot_pencil": "์! ์ฑ
๊ฐ๋ฐฉ์ ๋ฃ์ ์ฐํ์ ๊น๋นกํ์ด. ์ฐํ์ ๋ชจ์์ ๊ฐ์~",
"jr_fail_much_blocks": "๋๋ฌด๋ง์ ๋ธ๋ก์ ์ฌ์ฉํ์ด, ๋ค์ ๋์ ํด๋ณผ๋?",
"cparty_jr_success_1": "์ข์! ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ฒผ์ด!",
"go_right": "์ค๋ฅธ์ชฝ",
"go_down": " ์๋์ชฝ",
"go_up": " ์์ชฝ",
"go_left": " ์ผ์ชฝ",
"go_forward": "์์ผ๋ก ๊ฐ๊ธฐ",
"jr_turn_left": "์ผ์ชฝ์ผ๋ก ๋๊ธฐ",
"jr_turn_right": "์ค๋ฅธ์ชฝ์ผ๋ก ๋๊ธฐ",
"go_slow": "์ฒ์ฒํ ๊ฐ๊ธฐ",
"repeat_until_reach_1": "๋ง๋ ๋ ๊น์ง ๋ฐ๋ณตํ๊ธฐ",
"repeat_until_reach_2": "",
"pick_up_pencil": "์ฐํ ์ค๊ธฐ",
"repeat_0": "",
"repeat_1": "๋ฐ๋ณต",
"when_start_clicked": "์์ ๋ฒํผ์ ๋๋ ์ ๋",
"age_0": "์ํ์ฒดํ",
"create_character": "์บ๋ฆญํฐ ๋ง๋ค๊ธฐ",
"age_7_9": "์ด๋ฑ ์ ํ๋
",
"going_school": "์ํธ๋ฆฌ ํ๊ต๊ฐ๊ธฐ",
"age_10_12_1": "์ด๋ฑ ๊ณ ํ๋
1",
"collect_parts": "๋ก๋ด๊ณต์ฅ ๋ถํ๋ชจ์ผ๊ธฐ",
"age_10_12_2": "์ด๋ฑ ๊ณ ํ๋
2",
"driving_elec_car": "์ ๊ธฐ์๋์ฐจ ์ด์ ํ๊ธฐ",
"age_13": "์ค๋ฑ",
"travel_space": "์ฐ์ฃผ์ฌํํ๊ธฐ",
"people": "์ฌ๋",
"all": "์ ์ฒด",
"life": "์ผ์์ํ",
"nature": "์์ฐ",
"animal_insect": "๋๋ฌผ/๊ณค์ถฉ",
"environment": "์์ฐํ๊ฒฝ",
"things": "์ฌ๋ฌผ",
"vehicles": "์ด๋์๋จ",
"others": "๊ธฐํ",
"fantasy": "ํํ์ง",
"instrument": "์
๊ธฐ",
"piano": "ํผ์๋
ธ",
"marimba": "๋ง๋ฆผ๋ฐ",
"drum": "๋๋ผ",
"janggu": "์ฅ๊ตฌ",
"sound_effect": "ํจ๊ณผ์",
"others_instrument": "๊ธฐํํ์
๊ธฐ",
"aboutEntryDesc_1": "์ํธ๋ฆฌ๋ ๋๊ตฌ๋ ๋ฌด๋ฃ๋ก ์ํํธ์จ์ด ๊ต์ก์ ๋ฐ์ ์ ์๊ฒ ๊ฐ๋ฐ๋ ์ํํธ์จ์ด ๊ต์ก ํ๋ซํผ์
๋๋ค.",
"aboutEntryDesc_2": "ํ์๋ค์ ์ํํธ์จ์ด๋ฅผ ์ฝ๊ณ ์ฌ๋ฏธ์๊ฒ ๋ฐฐ์ธ ์ ์๊ณ ,",
"aboutEntryDesc_3": "์ ์๋์ ํจ๊ณผ์ ์ผ๋ก ํ์๋ค์ ๊ฐ๋ฅด์น๊ณ ๊ด๋ฆฌํ ์ ์์ต๋๋ค.",
"aboutEntryDesc_4": "์ํธ๋ฆฌ๋ ๊ณต๊ณต์ฌ์ ๊ฐ์ด",
"aboutEntryDesc_5": "๋น์๋ฆฌ๋ก ์ด์๋ฉ๋๋ค.",
"viewProjectTerms": "์ด์ฉ์ ์ฑ
๋ณด๊ธฐ",
"openSourceTitle": "์คํ์์ค๋ฅผ ํตํ ์ํ๊ณ ์กฐ์ฑ",
"openSourceDesc_1": "์ํธ๋ฆฌ์ ์์ค์ฝ๋ ๋ฟ ์๋๋ผ",
"openSourceDesc_2": "๋ชจ๋ ๊ต์ก ์๋ฃ๋ CC๋ผ์ด์ผ์ค๋ฅผ ",
"openSourceDesc_3": "์ ์ฉํ์ฌ ๊ณต๊ฐํฉ๋๋ค.",
"viewOpenSource": "์คํ์์ค ๋ณด๊ธฐ",
"eduPlatformTitle": "๊ตญ๋ด๊ต์ก ํ์ฅ์ ๋ง๋ ๊ต์ก ํ๋ซํผ",
"eduPlatformDesc_1": "๊ตญ๋ด ๊ต์ก ํ์ฅ์ ์ ํฉํ ๊ต์ก ๋๊ตฌ๊ฐ",
"eduPlatformDesc_2": "๋ ์ ์๋๋ก ํ๊ต ์ ์๋๋ค๊ณผ ํจ๊ป",
"eduPlatformDesc_3": "๊ฐ๋ฐํ๊ณ ์์ต๋๋ค.",
"madeWith": "์๋ฌธ๋จ",
"researchTitle": "๋ค์ํ ์ฐ๊ตฌ๋ฅผ ํตํ ์ ๋ฌธ์ฑ ๊ฐํ",
"researchDesc_1": "๋ํ/ํํ ๋ฑ๊ณผ ํจ๊ป ๋ค์ํ ์ฐ๊ตฌ๋ฅผ",
"researchDesc_2": "์งํํ์ฌ ์ ๋ฌธ์ฑ์ ๊ฐํํด๋๊ฐ๊ณ ",
"researchDesc_3": "์์ต๋๋ค.",
"viewResearch": "์ฐ๊ตฌ์๋ฃ ๋ณด๊ธฐ",
"atEntry": "์ํธ๋ฆฌ์์๋",
"entryLearnDesc_1": "์ฌ๋ฏธ์๊ฒ ๋ฐฐ์ฐ๋ ํ์ต๊ณต๊ฐ",
"entryLearnDesc_2": "<ํ์ตํ๊ธฐ>์์๋ ์ปดํจํฐ๋ฅผ ํ์ฉํด ๋
ผ๋ฆฌ์ ์ผ๋ก ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์๋ ๋ค์ํ ํ์ต",
"entryLearnDesc_3": "์ฝํ
์ธ ๊ฐ ์ค๋น๋์ด ์์ต๋๋ค. ๊ฒ์์ ํ๋ฏ์ด ์ฃผ์ด์ง ๋ฏธ์
๋ค์ ์ปดํจํฐ ํ๋ก๊ทธ๋๋ฐ์ผ๋ก",
"entryLearnDesc_4": "ํด๊ฒฐํ๊ณ , ๋์์์ ๋ณด๋ฉด์ ์ํํธ์จ์ด์ ์๋ฆฌ๋ฅผ ์ฌ๋ฏธ์๊ฒ ๋ฐฐ์ธ ์ ์์ต๋๋ค.",
"entryMakeDesc_1": "<๋ง๋ค๊ธฐ>์์๋ ๋ฏธ๊ตญ MIT์์ ๊ฐ๋ฐํ Scratch์ ๊ฐ์ ๋ธ๋กํ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ",
"entryMakeDesc_2": "์ฌ์ฉํ์ฌ ์ฒ์ ์ ํ๋ ์ฌ๋๋ค๋ ์ฝ๊ฒ ์์ ๋ง์ ์ฐฝ์๋ฌผ์ ๋ง๋ค ์ ์์ต๋๋ค.",
"entryShareDesc_1": "<๊ณต์ ํ๊ธฐ>์์๋ ์ํธ๋ฆฌ๋ฅผ ํตํด ์ ์ํ ์ํ์ ๋ค๋ฅธ ์ฌ๋๋ค๊ณผ ๊ณต์ ํ ์ ์์ต๋๋ค.",
"entryShareDesc_2": "๊ณต์ ๋ ์ํ์ด ์ด๋ป๊ฒ ๊ตฌ์ฑ๋์๋์ง ์ดํด๋ณผ ์ ์๊ณ , ์ด๋ฅผ ๋ฐ์ ์์ผ ๋ ๋ค๋ฅธ ์ํ์ ๋ง๋ค ์",
"entryShareDesc_3": "์์ต๋๋ค. ๋ํ ์น๊ตฌ๋ค๊ณผ ํ์
ํด ๋ ๋ฉ์ง ์ํ์ ๋ง๋ค ์๋ ์์ต๋๋ค.",
"entryGroup": "ํ๊ธ๊ธฐ๋ฅ",
"entryGroupTitle": "์ฐ๋ฆฌ ๋ฐ ํ์ต ๊ณต๊ฐ",
"entryGroupDesc_1": "<ํ๊ธ๊ธฐ๋ฅ>์ ์ ์๋๊ป์ ํ๊ธ๋ณ๋ก ํ์๋ค์ ๊ด๋ฆฌํ ์ ์๋ ๊ธฐ๋ฅ์
๋๋ค.",
"entryGroupDesc_2": "ํ๊ธ๋ง์ ํ์ตํ๊ธฐ, ๋ง๋ค๊ธฐ, ๊ณต์ ํ๊ธฐ๋ฅผ ๋ง๋ค ์ ์์ผ๋ฉฐ, ๊ณผ์ ๋ฅผ ๋ง๋ค๊ณ ",
"entryGroupDesc_3": "ํ์๋ค์ ๊ฒฐ๊ณผ๋ฌผ์ ํ์ธํ ์ ์์ต๋๋ค.",
"unpluggedToPhysical": "์ธํ๋ฌ๊ทธ๋ ํ๋๋ถํฐ ํผ์ง์ปฌ ์ปดํจํ
๊น์ง",
"algorithmActivity": "๊ธฐ์ด ์๊ณ ๋ฆฌ์ฆ ํ๋",
"programmignLang": "๊ต์ก์ฉ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด",
"unpluggedDesc_1": "์ํธ๋ฆฌ๋ด ๋ณด๋๊ฒ์๊ณผ ์นด๋๊ฒ์์ ํตํด ์ปดํจํฐ ์์ด๋",
"unpluggedDesc_2": "์ํํธ์จ์ด์ ๊ธฐ๋ณธ ๊ฐ๋
๊ณผ ์๋ฆฌ(์์ฐจ, ๋ฐ๋ณต, ์ ํ, ํจ์)๋ฅผ ์ตํ ์ ์์ต๋๋ค.",
"entryMaze": "์ํธ๋ฆฌ๋ด ๋ฏธ๋กํ์ถ",
"entryAI": "์ํธ๋ฆฌ๋ด ์ฐ์ฃผ์ฌํ",
"algorithmDesc_1": "๊ฒ์์ ํ๋ฏ์ด ๋ฏธ์
์ ํด๊ฒฐํ๊ณ ์ธ์ฆ์๋ฅผ ๋ฐ์๋ณด์ธ์.",
"algorithmDesc_2": "์ํํธ์จ์ด์ ๊ธฐ๋ณธ์ ์ธ ์๋ฆฌ๋ฅผ ์ฝ๊ณ ์ฌ๋ฏธ์๊ฒ ๋ฐฐ์ธ ์ ์์ต๋๋ค.",
"programmingLangDesc_1": "์ํธ๋ฆฌ์์๋ ๋ธ๋ก์ ์๋ฏ์ด ํ๋ก๊ทธ๋๋ฐ์ ํ๊ธฐ ๋๋ฌธ์ ๋๊ตฌ๋ ์ฝ๊ฒ",
"programmingLangDesc_2": "์์ ๋ง์ ๊ฒ์, ์ ๋๋ฉ์ด์
, ๋ฏธ๋์ด์ํธ์ ๊ฐ์ ๋ฉ์ง ์ํ์ ๋ง๋ค๊ณ ๊ณต์ ํ ์ ์์ด ๊ต์ก์ฉ์ผ๋ก ์ ํฉํฉ๋๋ค.",
"viewSupporHw": "์ฐ๊ฒฐ๋๋ ํ๋์จ์ด ๋ณด๊ธฐ",
"supportHwDesc_1": "์ํธ๋ฆฌ์ ํผ์ง์ปฌ ์ปดํจํ
๋๊ตฌ๋ฅผ ์ฐ๊ฒฐํ๋ฉด ํ์ค์ธ๊ณ์ ์ํธ์์ฉํ๋ ๋ฉ์ง ์ํ๋ค์ ๋ง๋ค์ด๋ผ ์ ์์ต๋๋ค.",
"supportHwDesc_2": "๊ตญ๋ด, ์ธ ๋ค์ํ ํ๋์จ์ด ์ฐ๊ฒฐ์ ์ง์ํ๋ฉฐ, ๊ณ์์ ์ผ๋ก ์ถ๊ฐ๋ ์์ ์
๋๋ค.",
"entryEduSupport": "์ํธ๋ฆฌ ๊ต์ก ์ง์",
"eduSupportDesc_1": "์ํธ๋ฆฌ๊ต์ก์ฐ๊ตฌ์์์๋ ์ํํธ์จ์ด ๊ต์ก์ ์ํ ๋ค์ํ ๊ต์ก ์๋ฃ๋ฅผ ์ ์ํ์ฌ ๋ฌด์์ผ๋ก ๋ฐฐํฌํ๊ณ ์์ต๋๋ค.",
"eduSupportDesc_2": "๋ชจ๋ ์๋ฃ๋ ๊ต์ก์๋ฃ ํ์ด์ง์์ ๋ค์ด๋ฐ์ผ์ค ์ ์์ต๋๋ค.",
"materials_1_title": "์์ค๋ณ ๊ต์ฌ",
"materials_1_desc_1": "ํ๋
๋ณ ์์ค์ ๋ง๋ ๊ต์ฌ๋ฅผ ํตํด ์ฐจ๊ทผ์ฐจ๊ทผ",
"materials_1_desc_2": "๋ฐ๋ผํ๋ฉฐ ์ฝ๊ฒ ์ํธ๋ฆฌ๋ฅผ ์ตํ๋ณด์ธ์!",
"materials_2_title": "EBS ๋ฐฉ์ก ์ฐ๊ณ ๊ต์",
"materials_2_desc_1": "EBS ์ํํธ์จ์ด์ผ ๋์ ๋ฐฉ์ก๊ณผ ํจ๊ป",
"materials_2_desc_2": "๊ต์ฌ์ฉ ์์
์ง๋์์ ์ ๊ณตํฉ๋๋ค.",
"materials_3_title": "์ด, ์ค๋ฑ ๊ต๊ณผ ์ฐ๊ณ ์์
์๋ฃ",
"materials_3_title_2": "",
"materials_3_desc_1": "๋ค์ํ ๊ณผ๋ชฉ์์ ๋ง๋๋ ์ค์ํ ๋ฌธ์ ๋ฅผ",
"materials_3_desc_2": "์ปดํจํ
์ฌ๊ณ ๋ ฅ์ผ๋ก ํด๊ฒฐํด ๋ณด์ธ์.",
"moreMaterials": "๋ ๋ง์ ๊ต์ก ์๋ฃ ๋ณด๋ฌ๊ฐ๊ธฐ",
"moreInfoAboutEntry_1": "๋ ๋ง์ ์ํธ๋ฆฌ์ ์์๋ค์ ํ์ธํ๊ณ ์ถ๋ค๋ฉด ์๋์ ๋งํฌ๋ค๋ก ์ ์ํด๋ณด์ธ์.",
"moreInfoAboutEntry_2": "๊ต์ก์๋ฃ ์ธ์๋ ๋ค์ํ SW ๊ต์ก๊ณผ ๊ด๋ จํ ์ ๋ณด๋ฅผ ๊ณต์ ํ๊ณ ์์ต๋๋ค.",
"blog": "๋ธ๋ก๊ทธ",
"post": "ํฌ์คํธ",
"tvCast": "TV์บ์คํธ",
"albertSchool": "์๋ฒํธ ์ค์ฟจ๋ฒ์ ",
"arduinoBoard": "์๋์ด๋
ธ ์ ํ๋ณด๋",
"arduinoCompatible": "์๋์ด๋
ธ ํธํ๋ณด๋",
"bitBlock": "๋นํธ๋ธ๋ก",
"bitbrick": "๋นํธ๋ธ๋ฆญ",
"byrobot_dronefighter_controller": "๋ฐ์ด๋ก๋ด ๋๋ก ํ์ดํฐ ์กฐ์ข
๊ธฐ",
"byrobot_dronefighter_drive": "๋ฐ์ด๋ก๋ด ๋๋ก ํ์ดํฐ ์๋์ฐจ",
"byrobot_dronefighter_flight": "๋ฐ์ด๋ก๋ด ๋๋ก ํ์ดํฐ ๋๋ก ",
"codeino": "์ฝ๋์ด๋
ธ",
"e-sensor": "E-์ผ์๋ณด๋",
"e-sensorUsb": "E-์ผ์๋ณด๋(์ ์ ์ฐ๊ฒฐ)",
"e-sensorBT": "E-์ผ์๋ณด๋(๋ฌด์ ์ฐ๊ฒฐ)",
"hamster": "ํ์คํฐ",
"littlebits": "๋ฆฌํ๋น์ธ ",
"orangeBoard": "์ค๋ ์ง ๋ณด๋",
"robotis_carCont": "๋ก๋ณดํฐ์ฆ ๋ก๋ด์๋์ฐจ",
"robotis_IoT": "๋ก๋ณดํฐ์ฆ IoT",
"dplay": "๋ํ๋ ์ด",
"nemoino": "๋ค๋ชจ์ด๋
ธ",
"Xbot": "์์ค๋ด ์ฃ์ง USB",
"XbotBT": "์์ค๋ด ์๋ฝ/์ฃ์ง ๋ธํฌํฌ์ค",
"robotori": "๋ก๋ณดํ ๋ฆฌ",
"Neobot": "๋ค์ค๋ด",
"about": "์์๋ณด๊ธฐ",
"articles": "ํ ๋ก ํ๊ธฐ",
"gallery": "๊ตฌ๊ฒฝํ๊ธฐ",
"learn": "ํ์ตํ๊ธฐ",
"login": "๋ก๊ทธ์ธ",
"logout": "๋ก๊ทธ์์",
"make": "๋ง๋ค๊ธฐ",
"register": "๊ฐ์
ํ๊ธฐ",
"Join": "ํ์๊ฐ์
",
"Edit_info": "๋ด ์ ๋ณด ์์ ",
"Discuss": "๊ธ ๋๋๊ธฐ",
"Explore": "๊ตฌ๊ฒฝํ๊ธฐ",
"Load": "๋ถ๋ฌ์ค๊ธฐ",
"My_lesson": "์คํ ๊ฐ์",
"Resources": "๊ต์ก ์๋ฃ",
"play_software": "์ํํธ์จ์ด์ผ ๋์!",
"problem_solve": "์ํธ๋ฆฌ ํ์ตํ๊ธฐ",
"Learn": "ํ์ตํ๊ธฐ",
"teaching_tools": "์ํธ๋ฆฌ ๊ต๊ตฌ",
"about_entry": "์ํธ๋ฆฌ ์๊ฐ",
"what_entry": "์ํธ๋ฆฌ๋?",
"create": "๋ง๋ค๊ธฐ",
"create_new": "์๋ก ๋ง๋ค๊ธฐ",
"start_programming": "์ํํธ์จ์ด ๊ต์ก์ ์ฒซ๊ฑธ์",
"Entry": "์ํธ๋ฆฌ",
"intro_learning": "๋๊ตฌ๋ ์ฝ๊ณ ์ฌ๋ฐ๊ฒ ์ํํธ์จ์ด๋ฅผ ๋ฐฐ์ธ ์ ์์ด์.?",
"intro_learning_anyone": "์ง๊ธ ๋ฐ๋ก ์์ํด๋ณด์ธ์!?",
"start_now": "For Free, Forever.",
"welcome_entry": "์ํธ๋ฆฌ์ ์ค์ ๊ฑธ ํ์ํฉ๋๋ค.",
"student": "ํ์",
"non_menber": "์ผ๋ฐ์ธ",
"teacher": "์ ์๋",
"terms_conditions": "์ด์ฉ์ฝ๊ด",
"personal_information": "๊ฐ์ธ์ ๋ณด ์์ง ๋ฐ ์ด์ฉ์ ๋ํ ์๋ด",
"limitation_liability": "์ฑ
์์ ํ๊ณ์ ๋ฒ์ ๊ณ ์ง",
"entry_agree": "์ํธ๋ฆฌ์ ์ด์ฉ์ฝ๊ด์ ๋์ ํฉ๋๋ค.",
"info_agree": "๊ฐ์ธ์ ๋ณด ์์ง ๋ฐ ์ด์ฉ์ ๋์ํฉ๋๋ค.",
"next": "๋ค์",
"enter_id": "์์ด๋ ์
๋ ฅ",
"enter_password": "๋น๋ฐ๋ฒํธ ์
๋ ฅ",
"confirm_password": "๋น๋ฐ๋ฒํธ ํ์ธ",
"enter_password_again": "๋น๋ฐ๋ฒํธ๋ฅผ ํ๋ฒ ๋ ์
๋ ฅํ์ธ์.",
"validation_password": "5์ ์ด์์ ์๋ฌธ/์ซ์ ๋ฑ์ ์กฐํฉํ์ธ์.",
"validation_id": "4~20์์ ์๋ฌธ/์ซ์๋ฅผ ์กฐํฉํ์ธ์",
"prev": "์ด์ ",
"born_year": "ํ์ด๋ ์ฐ๋",
"select_born": "ํ์ด๋ ์ฐ๋๋ฅผ ์ ํ ํ์ธ์",
"year": "๋
",
"gender": "์ฑ๋ณ",
"choose_gender": "์ฑ๋ณ์ ์ ํ ํ์ธ์",
"male": "๋จ์ฑ",
"female": "์ฌ์ฑ",
"language": "์ธ์ด",
"best_language": "์ฃผ ์ธ์ด๋ฅผ ์ ํ ํ์ธ์",
"korean": "ํ๊ตญ์ด",
"english": "์์ด",
"viet": "๋ฒ ํธ๋จ",
"option_email": "์ด๋ฉ์ผ(์ ํ)",
"insert_email": "์ด๋ฉ์ผ ์ฃผ์๋ฅผ ์
๋ ฅ ํ์ธ์",
"sign_up_complete": "ํ์ ๊ฐ์
์ด ์๋ฃ ๋์์ต๋๋ค",
"agree_terms_conditions": "์ด์ฉ์ฝ๊ด์ ๋์ํด ์ฃผ์ธ์.",
"agree_personal_information": "๊ฐ์ธ์ ๋ณด ์์ง ๋ฐ ์ด์ฉ์ ๋ํ ์๋ด์ ๋์ํด ์ฃผ์ธ์.",
"insert_studying_stage": "์ํ์ ๊ณต์ ํ๊ณ ์ถ์ ํ๊ธ์ ์ ํํด ์ฃผ์ธ์.",
"insert_born_year": "ํ์ด๋ ์ฐ๋๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์.",
"insert_gender": "์ฑ๋ณ์ ์
๋ ฅํด ์ฃผ์ธ์.",
"select_language": "์ธ์ด๋ฅผ ์ ํํด ์ฃผ์ธ์.",
"check_email": "์ด๋ฉ์ผ ํ์์ ํ์ธํด ์ฃผ์ธ์.",
"already_exist_id": "์ด๋ฏธ ์กด์ฌํ๋ ์์ด๋ ์
๋๋ค.",
"id_validation_id": "์์ด๋๋ 4~20์์ ์๋ฌธ/์ซ์๋ฅผ ์กฐํฉํ์ธ์",
"password_validate_pwd": "ํจ์ค์๋๋ 5์ ์ด์์ ์๋ฌธ/์ซ์ ๋ฑ์ ์กฐํฉํ์ธ์.",
"insert_same_pwd": "๊ฐ์ ๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์.",
"studying_stage_group": "์ํ ๊ณต์ ํ๊ธ",
"studying_stage": "์ํ์ ๊ณต์ ํ๊ณ ์ถ์ ํ๊ธ์ ์ ํํด ์ฃผ์ธ์.",
"password": "๋น๋ฐ๋ฒํธ ์
๋ ฅ",
"save_id": "์์ด๋ ์ ์ฅ",
"auto_login": "์๋ ๋ก๊ทธ์ธ",
"forgot_password": "์์ด๋์ ๋น๋ฐ๋ฒํธ๊ฐ ๊ธฐ์ต๋์ง ์์ผ์ธ์ ?",
"did_not_join": "์์ง ์ํธ๋ฆฌ ํ์์ด ์๋์ธ์?",
"go_join": "ํ์๊ฐ์
ํ๊ธฐ ",
"first_step": "์ํํธ์จ์ด ๊ต์ก์ ์ฒซ๊ฑธ์",
"entry_content_one": "์์ํ๋ ๊ฒ๋ค์ ๋ธ๋ก ๋์ดํ๋ฏ ํ๋์ฉ ์์๋ณด์ธ์.",
"entry_content_two": "๊ฒ์, ์ ๋๋ฉ์ด์
, ๋ฏธ๋์ด์ํธ์ ๊ฐ์ ๋ฉ์ง ์ํ์ด ์์ฑ๋๋ต๋๋ค!",
"entry_content_three": "์ฌ๋ฏธ์๋ ๋์ด๋ก ๋ฐฐ์ฐ๊ณ , ๋๋ง์ ๋ฉ์ง ์ํ์ ๋ง๋ค์ด ์น๊ตฌ๋ค๊ณผ ๊ณต์ ํ ์ ์๋ ๋ฉ์ง ์ํธ๋ฆฌ์ ์ธ์์ผ๋ก ์ฌ๋ฌ๋ถ์ ์ด๋ํฉ๋๋ค!",
"funny_space": "์ฌ๋ฏธ์๊ฒ ๋ฐฐ์ฐ๋ ํ์ต๊ณต๊ฐ",
"in_learn_section": "< ํ์ตํ๊ธฐ > ์์๋",
"learn_problem_solving": "์ปดํจํฐ๋ฅผ ํ์ฉํด ๋
ผ๋ฆฌ์ ์ผ๋ก ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์๋ ๋ค์ํ ํ์ต ์ฝํ
์ธ ๊ฐ ์ค๋น๋์ด ์์ต๋๋ค. ๊ฒ์์ ํ๋ฏ์ด ์ฃผ์ด์ง ๋ฏธ์
๋ค์ ์ปดํจํฐ ํ๋ก๊ทธ๋๋ฐ์ผ๋ก ํด๊ฒฐํด๋ณผ ์๋ ์๊ณ ์ฌ๋ฏธ์๋ ๋์์์ผ๋ก ์ํํธ์จ์ด์ ์๋ฆฌ๋ฅผ ๋ฐฐ์ธ ์๋ ์์ต๋๋ค .",
"joy_create": "์ฐฝ์์ ์ฆ๊ฑฐ์",
"in_make": "< ๋ง๋ค๊ธฐ > ๋",
"make_contents": "๋ฏธ๊ตญ MIT์์ ๊ฐ๋ฐํ Scratch์ ๊ฐ์ ๋น์ฃผ์ผ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ ์ฌ์ฉํ์ฌ ํ๋ก๊ทธ๋๋ฐ์ ์ฒ์ ์ ํ๋ ์ฌ๋๋ค๋ ์ฝ๊ฒ ๋๋ง์ ์ฐฝ์๋ฌผ์ ๋ง๋ค ์ ์์ต๋๋ค. ๋ ์ํธ๋ฆฌ๋ฅผ ํตํด ๋ง๋ค ์ ์๋ ์ปจํ
์ธ ์ ๋ชจ์ต์ ๋ฌด๊ถ๋ฌด์งํฉ๋๋ค. ๊ณผํ ์๊ฐ์ ๋ฐฐ์ด ๋ฌผ๋ฆฌ ๋ฒ์น์ ์คํํด ๋ณผ ์๋ ์๊ณ ์ข์ํ๋ ์บ๋ฆญํฐ๋ก ์ ๋๋ฉ์ด์
์ ๋ง๋ค๊ฑฐ๋ ์ง์ ๊ฒ์์ ๋ง๋ค์ด ๋ณผ ์ ์์ต๋๋ค.",
"and_content": "๋ ์ํธ๋ฆฌ๋ฅผ ํตํด ๋ง๋ค ์ ์๋ ์ฝํ
์ธ ์ ๋ชจ์ต์ ๋ฌด๊ถ๋ฌด์งํฉ๋๋ค. ๊ณผํ ์๊ฐ์ ๋ฐฐ์ด ๋ฌผ๋ฆฌ ๋ฒ์น์ ์คํํด ๋ณผ ์๋ ์๊ณ ์ข์ํ๋ ์บ๋ฆญํฐ๋ก ์ ๋๋ฉ์ด์
์ ๋ง๋ค๊ฑฐ๋ ์ง์ ๊ฒ์์ ๋ง๋ค์ด ๋ณผ ์ ์์ต๋๋ค.",
"share_collaborate": "๊ณต์ ์ ํ์
",
"explore_contents": "< ๊ตฌ๊ฒฝํ๊ธฐ > ์์๋ ์ํธ๋ฆฌ๋ฅผ ํตํด ์ ์ํ ์ํ์ ๋ค๋ฅธ ์ฌ๋๋ค๊ณผ ์ฝ๊ฒ ๊ณต์ ํ ์ ์์ต๋๋ค. ๋ํ ๊ณต์ ๋ ์ํ์ด ์ด๋ป๊ฒ ๊ตฌ์ฑ๋์๋์ง ์ดํด๋ณผ ์ ์๊ณ , ์ด๋ฅผ ๋ฐ์ ์์ผ ์์ ๋ง์ ํ๋ก์ ํธ๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ์ํธ๋ฆฌ์์๋ ๊ณต๋ ์ฐฝ์๋ ๊ฐ๋ฅํฉ๋๋ค. ์น๊ตฌ๋ค๊ณผ ํ์
ํ์ฌ ๋ ๋ฉ์ง ํ๋ก์ ํธ๋ฅผ ๋ง๋ค์ด๋ณผ ์ ์์ต๋๋ค.",
"why_software": "์ ์ํํธ์จ์ด ๊ต์ก์ด ํ์ํ ๊น?",
"speak_obama_contents": "์ปดํจํฐ ๊ณผํ์ ๋ฐฐ์ฐ๋ ๊ฒ์ ๋จ์ง ์ฌ๋ฌ๋ถ์ ๋ฏธ๋์๋ง ์ค์ํ ์ผ์ด ์๋๋๋ค. ์ด๊ฒ์ ์ฐ๋ฆฌ ๋ฏธ๊ตญ์ ๋ฏธ๋๋ฅผ ์ํด ์ค์ํ ์ผ ์
๋๋ค.",
"obama": "๋ฒ๋ฝ ์ค๋ฐ๋ง",
"us_president": "๋ฏธ๊ตญ ๋ํต๋ น",
"billgates_contents": "์ปดํจํฐ ํ๋ก๊ทธ๋๋ฐ์ ์ฌ๊ณ ์ ๋ฒ์๋ฅผ ๋ํ์ฃผ๊ณ ๋ ๋์ ์๊ฐ์ ํ ์ ์๊ฒ ๋ง๋ค๋ฉฐ ๋ถ์ผ์ ์๊ด์์ด ๋ชจ๋ ๋ฌธ์ ์ ๋ํด ์๋ก์ด ํด๊ฒฐ์ฑ
์ ์๊ฐํ ์ ์๋ ํ์ ๊ธธ๋ฌ์ค๋๋ค.",
"billgates": "๋น๊ฒ์ด์ธ ",
"chairman_micro": "Microsoft ํ์ฅ",
"eric_contents": "ํ์ฌ ๋์งํธ ํ๋ช
์ ์ง๊ตฌ์ ๋๋ถ๋ถ์ ์ฌ๋๋ค์๊ฒ ์์ง ์์๋ ์๋ ์์ค์
๋๋ค. ํ๋ก๊ทธ๋๋ฐ์ ํตํด ํฅํ 10๋
๊ฐ ๋ชจ๋ ๊ฒ์ด ๋ณํํ ๊ฒ ์
๋๋ค.",
"eric": "์๋ฆญ ์๋ฏธ์ธ ",
"sandbug_contents": "์ค๋๋ ์ปดํจํฐ ๊ณผํ์ ๋ํ ์ดํด๋ ํ์๊ฐ ๋์์ต๋๋ค. ์ฐ๋ฆฌ์ ๊ตญ๊ฐ ๊ฒฝ์๋ ฅ์ ์ฐ๋ฆฌ๊ฐ ์์ด๋ค์๊ฒ ์ด๊ฒ์ ์ผ๋ง๋ ์ ๊ฐ๋ฅด์น ์ ์๋๋์ ๋ฌ๋ ค์์ต๋๋ค.",
"sandbug": "์๋ฆด ์๋๋ฒ๊ทธ",
"view_entry_tools": "์ํธ๋ฆฌ์ ํจ๊ปํ ์ ์๋ ๊ต๊ตฌ๋ค์ ์ดํด๋ณผ ์ ์์ต๋๋ค.",
"solve_problem": "๋ฏธ์
ํด๊ฒฐํ๊ธฐ",
"solve_problem_content": "๊ฒ์์ ํ๋ฏ ๋ฏธ์
์ ํ๋ ํ๋ ํด๊ฒฐํ๋ฉฐ ์ํํธ์จ์ด์ ๊ธฐ๋ณธ ์๋ฆฌ๋ฅผ ๋ฐฐ์๋ณด์ธ์!",
"find_extra_title": "์ํธ๋ฆฌ๋ด ๋ถํ ์ฐพ๊ธฐ ๋์์ ",
"all_ages": "์ ์ฐ๋ น",
"total": "์ด",
"step": "๋จ๊ณ",
"find_extra_contents": "๋ก๋ด ๊ฐ์์ง๋ฅผ ์์ฐํ๋ ๋ฃจ์ธ ๊ณต์ฅ์ ์ด๋ ๋ ๊ฐ์๊ธฐ ์ผ์ด๋ ์ ์ ์ฌํ๋ก ํ์ด๋ ํน๋ณํ ๊ฐ์์ง ์ํธ๋ฆฌ ๋ด. ์์ง ์กฐ๋ฆฝ์ด ๋ ๋ ๋๋จธ์ง ๋ถํ๋ค์ ์ฐพ์ ๊ณต์ฅ์ ํ์ถ ํ๋๋ก ๋์์ฃผ๋ฉด์ ์ํํธ์จ์ด์ ๋์ ์๋ฆฌ๋ฅผ ์ตํ๋ณด์!",
"software_play_contents": "EBS์์ ๋ฐฉ์ํ '์ํํธ์จ์ด์ผ ๋์' ํ๋ก๊ทธ๋จ์ ์ค์ตํด๋ณผ ์ ์์ต๋๋ค.",
"resources_contents": "์ํธ๋ฆฌ๋ฅผ ํ์ฉํ ๋ค์ํ ๊ต์ก์๋ฃ๋ค์ ๋ฌด๋ฃ๋ก ์ ๊ณตํฉ๋๋ค.",
"from": " ์ถ์ฒ",
"sw_camp": "๋ฏธ๋๋ถ SW ์ฐฝ์์บ ํ",
"elementary": "์ด๋ฑํ๊ต",
"middle": "์คํ๊ต",
"grades": "ํ๋
",
"lesson": "์ฐจ์",
"sw_contents_one": "5์ฐจ์ ๋ถ๋์ผ๋ก ์ด๋ฑํ์์ด ์ํธ๋ฆฌ์ ํผ์ง์ปฌ ์ปดํจํ
์ ๊ฒฝํํ ์ ์๋ ๊ต์ฌ์
๋๋ค. ํ์๋ค์ ์ํธ๋ฆฌ ์ฌ์ฉ๋ฒ์ ํ์ตํ๊ณ , ๊ทธ๋ฆผํ๊ณผ ์ด์ผ๊ธฐ ๋ง๋ค๊ธฐ๋ฅผ ํฉ๋๋ค. ๋ง์ง๋ง์๋ ์๋์ด๋
ธ ๊ต๊ตฌ๋ฅผ ํ์ฉํ์ฌ ํค๋ณด๋๋ฅผ ๋ง๋ค์ด๋ณด๋ ํ๋์ ํฉ๋๋ค.",
"sw_camp_detail": "๋ฏธ๋์ฐฝ์กฐ๊ณผํ๋ถ SW์ฐฝ์์บ ํ",
"sw_contents_two": "5์ฐจ์ ๋ถ๋์ผ๋ก ์คํ์์ด ์ํธ๋ฆฌ์ ํผ์ง์ปฌ ์ปดํจํ
์ ๊ฒฝํํ ์ ์๋ ๊ต์ฌ์
๋๋ค. ํ์๋ค์ ์ํธ๋ฆฌ ์ฌ์ฉ๋ฒ์ ํ์ตํ๊ณ , ๋ฏธ๋ก์ฐพ๊ธฐ ๊ฒ์๊ณผ, ํด์ฆ ํ๋ก๊ทธ๋จ์ ๋ง๋ค์ด ๋ด
๋๋ค. ๋ง์ง๋ง์๋ ์๋์ด๋
ธ ๊ต๊ตฌ๋ฅผ ํ์ฉํ์ฌ ํค๋ณด๋๋ก ์๋์ฐจ๋ฅผ ์กฐ์ข
ํ๋ ํ๋์ ํฉ๋๋ค.",
"sw_contents_three": "์ ์๋๋ค์ด ํ๊ต์์ ์์ํ ์ ์๋ ์ํํธ์จ์ด ์์
์ง๋์์
๋๋ค. ๋ค์ํ ์ธํ๋ฌ๊ทธ๋ ํ๋๊ณผ, '์ํํธ์จ์ด์ผ ๋์' ๋ฐฉ์ก์ ํ์ฉํ ์์
์ง๋์์ด ๋ด๊ฒจ ์์ต๋๋ค.",
"naver_sw": "NAVER ์ํํธ์จ์ด์ผ ๋์",
"teacher_teaching": "๊ต์ฌ์ฉ์ง๋์ (์ด๋ฑํ๊ต 5~6ํ๋
์ด์)",
"funny_sw": "์ฆ๊ฑฐ์ด SW๋์ด ๊ต์ค",
"sw_contents_four": "์ํํธ์จ์ด๋ฅผ ๋์ดํ๋ฏ ์ฌ๋ฏธ์๊ฒ ๋ฐฐ์ธ ์ ์๋ ๊ต์ฌ๋ก ์ํธ๋ฆฌ๋ณด๋๊ฒ์์ ๋น๋กฏํ ๋ค์ํ ์ธํ๋ฌ๊ทธ๋ ํ๋๊ณผ ์ํธ๋ฆฌ ํ์ต๋ชจ๋๋ก ์ํํธ์จ์ด๋ฅผ ๋ง๋๋ ๊ธฐ๋ณธ ์๋ฆฌ๋ฅผ ๋ฐฐ์ฐ๊ฒ ๋ฉ๋๋ค. ๊ธฐ๋ณธ ์๋ฆฌ๋ฅผ ๋ฐฐ์ ๋ค๋ฉด ํ์๋ค์ ์ด์ ์ํธ๋ฆฌ๋ก ์ด์ผ๊ธฐ, ๊ฒ์, ์์ ์ํ, ์์ฉํ๋ก๊ทธ๋จ์ ๋ง๋๋ ๋ฐฉ๋ฒ์ ๋ฐฐ์ฐ๊ณ , ์์ ์ด ์๊ฐํ ์ํํธ์จ์ด๋ฅผ ๋ง๋ค๊ณ ๋ฐํํ ์ ์๋๋ก ๊ต์ฌ๊ฐ ๊ตฌ์ฑ๋์ด ์์ต๋๋ค.",
"ct_text_5": "๊ต๊ณผ์์ ํจ๊ป ํค์ฐ๋ ์ปดํจํ
์ฌ๊ณ ๋ ฅ",
"teacher_grade_5": "๊ต์ (์ด๋ฑํ๊ต 5ํ๋
)",
"ct_text_5_content": "์ค์ํ์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์๋ ํ
๋ง๋ก ์ค๋น๋ ์ด 8๊ฐ์ ํ์ต์ฝํ
์ธ ๊ฐ ๋ด๊ธด ๊ต์ฌ์ฉ ์ง๋์์
๋๋ค. ๊ฐ ์ฝํ
์ธ ๋ ๊ฐ์ ๋ ๊ต์ก๊ณผ์ ์ ๋ฐ์ํ ํ๊ต๊ณผ์์ ์ฐ๊ณ๋ฅผ ํตํด ๋ค์ํ ๋ฌธ์ ๋ฅผ ๋ง๋๊ณ ํด๊ฒฐํด๋ณผ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค. ์์ด๋ค์ด ์ปดํจํ
์ฌ๊ณ ๋ ฅ์ ๊ฐ์ถ ์ตํฉํ ์ธ์ฌ๊ฐ ๋ ์ ์๋๋ก ์ง๊ธ ์ ์ฉํด๋ณด์ธ์!",
"ct_text_6": "๊ต๊ณผ์์ ํจ๊ป ํค์ฐ๋ ์ปดํจํ
์ฌ๊ณ ๋ ฅ",
"teacher_grade_6": "๊ต์ (์ด๋ฑํ๊ต 6ํ๋
)",
"ct_text_6_content": "์ค์ํ์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์๋ ํ
๋ง๋ก ์ค๋น๋ ์ด 8๊ฐ์ ํ์ต์ฝํ
์ธ ๊ฐ ๋ด๊ธด ๊ต์ฌ์ฉ ์ง๋์์
๋๋ค. ๊ฐ ์ฝํ
์ธ ๋ ๊ฐ์ ๋ ๊ต์ก๊ณผ์ ์ ๋ฐ์ํ ํ๊ต๊ณผ์์ ์ฐ๊ณ๋ฅผ ํตํด ๋ค์ํ ๋ฌธ์ ๋ฅผ ๋ง๋๊ณ ํด๊ฒฐํด๋ณผ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค. ์์ด๋ค์ด ์ปดํจํ
์ฌ๊ณ ๋ ฅ์ ๊ฐ์ถ ์ตํฉํ ์ธ์ฌ๊ฐ ๋ ์ ์๋๋ก ์ง๊ธ ์ ์ฉํด๋ณด์ธ์!",
"sw_use": "๋ชจ๋ ๊ต์ฌ๋ค์ ๋น์๋ฆฌ ๋ชฉ์ ์ ํํ์ฌ ์ ์์๋ฅผ ๋ฐํ๊ณ ์์ ๋กญ๊ฒ ์ด์ฉํ ์ ์์ต๋๋ค.",
"title": "์ ๋ชฉ",
"writer": "์์ฑ์",
"view": "๋ณด๊ธฐ",
"date": "๋ฑ๋ก์ผ",
"find_id_pwd": "์์ด๋์ ๋น๋ฐ๋ฒํธ ์ฐพ๊ธฐ",
"send_email": "์ด๋ฉ์ผ๋ก ๋น๋ฐ๋ฒํธ ๋ณ๊ฒฝ์ ์ํ ๋งํฌ๋ฅผ ๋ฐ์กํด๋๋ฆฝ๋๋ค.",
"user_not_exist": "์กด์ฌํ์ง ์๋ ์ด๋ฉ์ผ ์ฃผ์ ์
๋๋ค.",
"not_signup": "์์ง ํ์์ด ์๋์ธ์?",
"send": "๋ฐ์กํ๊ธฐ",
"sensorboard": "์ํธ๋ฆฌ๋ด ์ผ์๋ณด๋",
"physical_computing": "ํผ์ง์ปฌ ์ปดํจํ
",
"sensorboard_contents": "์๋์ด๋
ธ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์ ๋ ์ด์ ๋ง์ ์ผ์ด๋ธ์ ์ฌ์ฉํด ํ๋ก๋ฅผ ๊ตฌ์ฑํ ํ์๊ฐ ์์ต๋๋ค. ์ํธ๋ฆฌ ๋ณด๋๋ ์๋์ด๋
ธ ์์ ๋ผ์ฐ๊ธฐ๋ง ํ๋ฉด ๊ฐ๋จํ๊ฒ LED, ์จ๋์ผ์, ์๋ฆฌ์ผ์, ๋น, ์ฌ๋ผ์ด๋, ์ค์์น๋ฅผ ํ์ฉํ ์ ์์ต๋๋ค. ์ด์ ์ํธ๋ฆฌ ๋ณด๋๋ฅผ ํ์ฉํด ๋๊ตฌ๋ผ๋ ์ฝ๊ฒ ์์ ๋ง์ ํน๋ณํ ์ํ์ ๋ง๋ค์ด๋ณด์ธ์!",
"entrybot_boardgame": "์ํธ๋ฆฌ๋ด ๋ณด๋๊ฒ์",
"unplugged": "์ธํ๋ฌ๊ทธ๋ ํ๋",
"unplugged_contents": "์ฌ๋ฐ๋ ๋ณด๋๊ฒ์์ ํตํด ์ปดํจํฐ์ ์๋ ์๋ฆฌ๋ฅผ ๋ฐฐ์๋ณด์ธ์. ๋ก๋ด๊ฐ์์ง์ธ ์ํธ๋ฆฌ๋ด์ด ์ ์ ๋ ๊ณต์ฅ์์ ํ์ํ ๋ถํ์ ์ฐพ์ ํ์ถํ๋๋ก ๋๋ค๋ณด๋ฉด ์ปดํจํฐ ์ ๋ฌธ๊ฐ์ฒ๋ผ ๋ฌธ์ ๋ฅผ ๋ฐ๋ผ ๋ณผ ์ ์๊ฒ๋ฉ๋๋ค.",
"entrybot_cardgame": "์ํธ๋ฆฌ๋ด ์นด๋๊ฒ์ : ํญํ ๋์๋",
"entrybot_cardgame_contents": "๊ฐ์๊ธฐ ์ํธ๋ฆฌ๋์์ ๋ํ๋ 12์ข
๋ฅ์ ํญํ๋ค! ๊ณผ์ฐ ํญํ๋ค์ ์์ ํ๊ฒ ํด์ฒดํ ์ ์์๊น์? ํญํ๋ค์ ํ๋์ฉ ํด์ฒดํ๋ฉฐ ์ํธ๋ฆฌ ๋ธ๋ก๊ณผ ํจ๊ป ์ํํธ์จ์ด์ ์๋ฆฌ๋ฅผ ๋ฐฐ์๋ด์! ์์ฐจ, ๋ฐ๋ณต, ์กฐ๊ฑด์ ํตํด ํญํ์ ํ๋์ฉ ํด์ฒดํ๋ค ๋ณด๋ฉด ์ํธ๋ฆฌ๋์๋ฅผ ๊ตฌํ ์์
์ด ๋ ์ ์๋ต๋๋ค!",
"basic_learn": "์ํธ๋ฆฌ ๊ธฐ๋ณธ ํ์ต",
"basic_learn_contents": "์ํธ๋ฆฌ๋ฅผ ํ์ฉํ ๋ค์ํ ๊ต์ก ์ฝํ
์ธ ๋ฅผ ์ ๊ณตํฉ๋๋ค.",
"troubleshooting": "๋ฌธ์ ํด๊ฒฐ ํ์ต",
"playsoftware": "์ํํธ์จ์ด์ผ ๋์",
"make_own_lesson": "๋๋ง์ ์์
์ ๋ง๋ค์ด ๋ค๋ฅธ ์ฌ๋๊ณผ ๊ณต์ ํ ์ ์์ต๋๋ค.",
"group_lecture": "์ฐ๋ฆฌ ๋ฐ ๊ฐ์",
"group_curriculum": "์ฐ๋ฆฌ ๋ฐ ๊ฐ์ ๋ชจ์",
"group_homework": "์ฐ๋ฆฌ ๋ฐ ๊ณผ์ ",
"group_noproject": "์ ์๋ ์ํ์ด ์์ต๋๋ค.",
"group_nolecture": "์์ฑ๋ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"group_nocurriculum": "์์ฑ๋ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"lecture_contents": "ํ์ํ ๊ธฐ๋ฅ๋ง ์ ํํ์ฌ ๋๋ง์ ์์
์ ๋ง๋ค์ด ๋ณผ ์ ์์ต๋๋ค.",
"curriculum_contents": "์ฌ๋ฌ๊ฐ์ ๊ฐ์๋ฅผ ํ๋์ ๊ฐ์ ๋ชจ์์ผ๋ก ๋ฌถ์ด ์ฐจ๊ทผ์ฐจ๊ทผ ๋ฐ๋ผํ ์ ์๋ ์์
์ ๋ง๋ค ์ ์์ต๋๋ค.",
"grade_info": "ํ๋
์ ๋ณด",
"difficulty": "๋์ด๋",
"usage": "์ฌ์ฉ์์",
"learning_concept": "ํ์ต๊ฐ๋
",
"related_subject": "์ฐ๊ฐ ๊ต๊ณผ",
"show_more": "๋๋ณด๊ธฐ",
"close": "๋ซ๊ธฐ",
"latest": "์ต์ ์",
"viewer": "์กฐํ์",
"like": "์ข์์์",
"comment": "๋๊ธ์",
"entire_period": "์ ์ฒด๊ธฐ๊ฐ",
"today": "์ค๋",
"latest_week": "์ต๊ทผ 1์ฃผ์ผ",
"latest_month": "์ต๊ทผ 1๊ฐ์",
"latest_three_month": "์ต๊ทผ 3๊ฐ์",
"current_password": "ํ์ฌ ๋น๋ฐ๋ฒํธ",
"incorrect_password": "๋น๋ฐ๋ฒํธ๊ฐ ์ผ์นํ์ง ์์ต๋๋ค.",
"new_password": "์๋ก์ด ๋น๋ฐ๋ฒํธ",
"password_option_1": "์๋ฌธ๊ณผ ์ซ์์ ์กฐํฉ์ผ๋ก 5์ ์ด์์ด ํ์ํฉ๋๋ค.",
"again_new_password": "์๋ก์ด ๋น๋ฐ๋ฒํธ ์ฌ์
๋ ฅ",
"enter_new_pwd": "์๋ก์ด ๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํ์ธ์.",
"enter_new_pwd_again": "์๋ก์ด ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ์
๋ ฅํ์ธ์.",
"password_match": "๋น๋ฐ๋ฒํธ๊ฐ ์ผ์นํ์ง ์์ต๋๋ค.",
"incorrect_email": "์ ํจํ ์ด๋ฉ์ผ์ด ์๋๋๋ค",
"edit_button": "์ ๋ณด์์ ",
"edit_profile": "๊ด๋ฆฌ",
"my_project": "๋์ ์ํ",
"my_group": "๋์ ํ๊ธ",
"mark": "๊ด์ฌ ์ํ",
"prev_state": "์ด์ ",
"profile_image": "์๊ธฐ์๊ฐ ์ด๋ฏธ์ง",
"insert_profile_image": "ํ๋กํ ์ด๋ฏธ์ง๋ฅผ ๋ฑ๋กํด ์ฃผ์ธ์.",
"at_least_180": "180 x 180 ํฝ์
์ ์ด๋ฏธ์ง๋ฅผ ๊ถ์ฅํฉ๋๋ค.",
"upload_image": "์ด๋ฏธ์ง ์
๋ก๋",
"about_me": "์๊ธฐ์๊ฐ",
"save_change": "๋ณ๊ฒฝ์ฌํญ ์ ์ฅ",
"basic_image": "๊ธฐ๋ณธ ์ด๋ฏธ์ง",
"profile_condition": "์๊ธฐ์๊ฐ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์. 50์ ๋ด์ธ",
"profile_back": "๋์๊ฐ๊ธฐ",
"make_project": "์ํ ๋ง๋ค๊ธฐ",
"exhibit_project": "์ํ ์ ์ํ๊ธฐ",
"art_list_shared": "๊ฐ์ธ",
"art_list_group_shared": "ํ๊ธ",
"view_project": "์ฝ๋ ๋ณด๊ธฐ",
"noResult": "๊ฒ์ ๊ฒฐ๊ณผ๊ฐ ์์ต๋๋ค.",
"comment_view": "๋๊ธ",
"upload_project": "์ฌ๋ฆฌ๊ธฐ",
"edit": "์์ ",
"save_complete": "์ ์ฅ",
"just_like": "์ข์์",
"share": "๊ณต์ ",
"who_likes_project": "์ํ์ ์ข์ํ๋ ์ฌ๋",
"people_interest": "์ํ์ ๊ด์ฌ์์ด ํ๋ ์ฌ๋",
"none_person": "์์",
"inserted_date": "๋ฑ๋ก์ผ",
"last_modified": "์ต์ข
์์ ์ผ",
"original_project": "์๋ณธ ์ํ",
"for_someone": "๋์",
"original_project_deleted": "์๋ณธ ์ํ์ด ์ญ์ ๋์์ต๋๋ค.",
"delete_project": "์ญ์ ",
"delete_group_project": "๋ชฉ๋ก์์ ์ญ์ ",
"currnet_month_time": "์",
"current_day_time": "์ผ",
"game": "๊ฒ์",
"animation": "์ ๋๋ฉ์ด์
",
"media_art": "๋ฏธ๋์ด ์ํธ",
"physical": "ํผ์ง์ปฌ",
"etc": "๊ธฐํ",
"connected_contents": "์ฐ๊ณ๋๋ ์ฝํ
์ธ ",
"connected_contents_content": "์ํธ๋ฆฌ์ ํจ๊ป ํ ์ ์๋ ๋ค์ํ ์ฝํ
์ธ ๋ฅผ ๋ง๋๋ณด์ธ์. ์ฒ์ ์ํํธ์จ์ด๋ฅผ ๋ฐฐ์ฐ๋ ์ฌ๋์ด๋ผ๋ฉด ์ฝ๊ฒ ์ฆ๊ธฐ๋ ๋ณด๋๊ฒ์๋ถํฐ ์๋์ด๋
ธ์ ๊ฐ์ ํผ์ง์ปฌ ์ปดํจํ
์ ํ์ฉํ์ฌ ์์ ๋ง์ ๊ณ ๊ธ์ค๋ฌ์ด ์ฐฝ์๋ฌผ์ ๋ง๋ค์ด ๋ณผ ์ ์์ต๋๋ค.",
"basic_mission": "๊ธฐ๋ณธ ๋ฏธ์
: ์ํธ๋ฆฌ๋ด ๋ฏธ๋ก์ฐพ๊ธฐ",
"basic_mission_content": "๊ฐ์์ง ๋ก๋ด์ ๋ง๋๋ ๊ณต์ฅ์์ ์ฐ์ฐํ ์ ์ ์ผ๋ก ํผ์์ ์๊ฐํ ์ ์๊ฒ ๋ ์ํธ๋ฆฌ๋ด! ๊ณต์ฅ์ ํ์ถํ๊ณ ์์ ๋ฅผ ์ฐพ์ ์ ์๋๋ก ์ํธ๋ฆฌ๋ด์ ๋์์ฃผ์ธ์!",
"application_mission": "์์ฉ๋ฏธ์
: ์ํธ๋ฆฌ๋ด ์ฐ์ฃผ์ฌํ",
"write_article": "๊ธ์ฐ๊ธฐ",
"view_all_articles": "๋ชจ๋ ๊ธ ๋ณด๊ธฐ",
"view_own_articles": "๋ด๊ฐ ์ด ๊ธ ๋ณด๊ธฐ",
"learning_materials": "๊ต์ก์๋ฃ",
"ebs_software_first": "<์ํํธ์จ์ด์ผ ๋์>๋ ๋ค์ด๋ฒ ์ EBS ๊ทธ๋ฆฌ๊ณ ์ํธ๋ฆฌ๊ฐ ํจ๊ป ๋ง๋ ๊ต์ก ์ฝํ
์ธ ์
๋๋ค. ์ฌ๊ธฐ์์๋ ์ํธ๋ฆฌ๋ฅผ ํ์ฉํ์ฌ ์ค์ ๋ก ๊ฐ๋จํ ํ๋ก๊ทธ๋จ์ ๋ง๋ค์ด๋ณด๋ฉฐ ์ํํธ์จ์ด์ ๊ธฐ์ด ์๋ฆฌ๋ฅผ ๋ฐฐ์๋๊ฐ ์ ์์ต๋๋ค. ๋ํ ๊ฐ ์ฝํ
์ธ ์์๋ ๋์์์ ํตํด ์ปดํจํฐ๊ณผํ์ ๋ํ ์ ํ์ง์์ด ์๋๋ผ๋ ์ถฉ๋ถํ ์ฌ๋ฏธ์ ํธ๊ธฐ์ฌ์ ๋๋ผ๋ฉฐ ์งํํ ์ ์๋๋ก ์ค๋น๋์ด์์ต๋๋ค.",
"go_software": "์ํํธ์จ์ด์ผ ๋์ ๊ฐ๊ธฐ",
"ebs_context": "EBS ๊ฐ๊ธฐ",
"category": "์นดํ
๊ณ ๋ฆฌ",
"add_picture": "์ฌ์ง์ฒจ๋ถ",
"upload_article": "๊ธ ์ฌ๋ฆฌ๊ธฐ",
"list": "๋ชฉ๋ก",
"report": "์ ๊ณ ํ๊ธฐ",
"upload": "์ฌ๋ฆฌ๊ธฐ",
"staff_picks": "์คํํ ์ ์ ",
"popular_picks": "์ธ๊ธฐ ์ํ",
"lecture_header_more": "๋ ๋ง๋ค์ด ๋ณด๊ธฐ",
"lecture_header_reset": "์ด๊ธฐํ",
"lecture_header_reset_exec": "์ด๊ธฐํ ํ๊ธฐ",
"lecture_header_save": "์ ์ฅ",
"lecture_header_save_content": "ํ์ต๋ด์ฉ ์ ์ฅํ๊ธฐ",
"lecture_header_export_project": "๋ด ์ํ์ผ๋ก ์ ์ฅํ๊ธฐ",
"lecture_header_undo": "์ทจ์",
"lecture_header_redo": "๋ณต์",
"lecture_header_bugs": "๋ฒ๊ทธ์ ๊ณ ",
"lecture_container_tab_object": "์ค๋ธ์ ํธ",
"lecture_container_tab_video": "๊ฐ์ ๋์์",
"lecture_container_tab_project": "์์ฑ๋ ์ํ",
"lecture_container_tab_help": "๋ธ๋ก ๋์๋ง",
"illigal": "๋ถ๋ฒ์ ์ธ ๋ด์ฉ ๋๋ ์ฌํ์ง์๋ฅผ ์๋ฐํ๋ ํ๋",
"verbal": "์ธ์ด ํญ๋ ฅ ๋๋ ๊ฐ์ธ ์ ๋ณด๋ฅผ ์นจํดํ๋ ํ๋",
"commertial": "์์
์ ์ธ ๋ชฉ์ ์ ๊ฐ์ง๊ณ ํ๋",
"explicit": "์๋๋ฌผ",
"other": "๊ธฐํ",
"report_result": "๊ฒฐ๊ณผ ํ์ ์ ์ํ์๋ฉด ๋ฉ์ผ์ ์
๋ ฅํด ์ฃผ์ธ์.",
"report_success": "์ ๊ณ ํ๊ธฐ๊ฐ ์ ์์ ์ผ๋ก ์ฒ๋ฆฌ ๋์์ต๋๋ค.",
"etc_detail": "๊ธฐํ ํญ๋ชฉ ์ ํํ ์
๋ ฅํด์ฃผ์ธ์.",
"lecture_play": "๊ฐ์ ๋ณด๊ธฐ",
"list_view_link": "๋ค๋ฅธ ๊ฐ์ ๋ชจ์ ๋ณด๊ธฐ",
"lecture_intro": "๊ฐ์ ์๊ฐ ๋ณด๊ธฐ",
"study_goal": "ํ์ต๋ชฉํ",
"study_description": "์ค๋ช
",
"study_created": "๋ฑ๋ก์ผ",
"study_last_updated": "์ต์ข
์์ ์ผ",
"study_remove": "์ญ์ ",
"study_group_lecture_remove": "๋ชฉ๋ก์์ ์ญ์ ",
"study_group_curriculum_remove": "๋ชฉ๋ก์์ ์ญ์ ",
"study_edit": "๊ฐ์ ๋ชจ์ ์์ ",
"study_comments": "๋๊ธ",
"study_comment_post": "์ฌ๋ฆฌ๊ธฐ",
"study_comment_remove": "์ญ์ ",
"study_comment_edit": "์์ ",
"study_comment_save": "์ ์ฅ",
"study_guide_video": "์๋ด ์์",
"study_basic_project": "๊ธฐ๋ณธ ์ํ",
"study_done_project": "์์ฑ ์ํ์ ์ ํํ์ธ์.",
"study_usage_element": "์ฌ์ฉ์์",
"study_concept_element": "์ ์ฉ๊ฐ๋
",
"study_subject_element": "์ฐ๊ณ๊ต๊ณผ",
"study_element_none": "์์",
"study_label_like": "์ข์์",
"study_label_interest": "๊ด์ฌ ๊ฐ์",
"study_label_share": "๊ณต์ ",
"study_label_like_people": "๊ฐ์ข๋ฅผ ์ข์ํ๋ ์ฌ๋",
"study_label_interest_people": "๊ฐ์ข๋ฅผ ๊ด์ฌ์์ด ํ๋ ์ฌ๋",
"study_related_lectures": "๊ฐ์ ๋ชฉ๋ก",
"study_expand": "์ ์ฒด๋ณด๊ธฐ",
"study_collapse": "์ค์ด๊ธฐ",
"aftercopy": "์ฃผ์๊ฐ ๋ณต์ฌ๋์์ต๋๋ค.",
"study_remove_curriculum": "๊ฐ์ ๋ชจ์์ ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"content_required": "๋ด์ฉ์ ์
๋ ฅํ์ธ์",
"study_remove_lecture": "๊ฐ์๋ฅผ ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"lecture_build": "๊ฐ์ ๋ง๋ค๊ธฐ",
"lecture_build_step1": "1. ๊ฐ์๋ฅผ ์๊ฐํ๊ธฐ ์ํ ์ ๋ณด๋ฅผ ์
๋ ฅํด์ฃผ์ธ์",
"lecture_build_step2": "2. ํ์ต์ ์ฌ์ฉ๋๋ ๊ธฐ๋ฅ๋ค๋ง ์ ํํด์ฃผ์ธ์",
"lecture_build_step3": "3. ๋ชจ๋ ์ ๋ณด๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์
๋ ฅํ๋์ง ํ์ธํด์ฃผ์ธ์",
"lecture_build_choice": "์ด๋ค ๊ฒ์ ์ฌ๋ฆฌ์๊ฒ ์ต๋๊น?",
"lecture_build_project": "์ํธ๋ฆฌ ์ํ",
"lecture_build_video": "๊ฐ์ ์์",
"lecture_build_grade": "์ถ์ฒํ๋
",
"lecture_build_goals": "ํ์ต๋ชฉํ",
"lecture_build_add_goal": "์ด๊ณณ์ ํด๋ฆญํ์ฌ ๋ชฉํ๋ฅผ ์ถ๊ฐ",
"lecture_build_attach": "ํ์ผ ์ฒจ๋ถ",
"lecture_build_attach_text": "20MB ์ด๋ด์ ํ์ผ์ ์
๋ก๋ํด ์ฃผ์ธ์.",
"lecture_build_assist": "๋ณด์กฐ ์์",
"lecture_build_youtube_url": "Youtube ๊ณต์ ๋งํฌ๋ฅผ ๋ฃ์ด์ฃผ์ธ์.",
"lecture_build_project_done": "์์ฑ ์ํ์ ์ ํํ์ธ์.",
"lecture_build_scene_text1": "์ฅ๋ฉด๊ธฐ๋ฅ์ ๋๋ฉด ์๋ก์ด ์ฅ๋ฉด์ ์ถ๊ฐํ๊ฑฐ๋,",
"lecture_build_scene_text2": "์ญ์ ํ ์ ์์ต๋๋ค.",
"lecture_build_object_text": "์ค๋ธ์ ํธ ์ถ๊ฐํ๊ธฐ๋ฅผ ๋๋ฉด ์๋ก์ด ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํ๊ฑฐ๋ ์ญ์ ํ ์ ์์ต๋๋ค.",
"lecture_build_blocks_text1": "ํ์ต์ ํ์ํ ๋ธ๋ก๋ค๋ง ์ ํํด์ฃผ์ธ์.",
"lecture_build_blocks_text2": "์ ํํ์ง ์์ ๋ธ๋ก์ ์จ๊ฒจ์ง๋๋ค.",
"lecture_build_basic1": "ํ์ต์ ์์ํ ๋ ์ฌ์ฉํ ์ํ์ ์ ํํด ์ฃผ์ธ์.",
"lecture_build_basic2": "ํ์ต์๋ ์ ํํ ์ํ์ ๊ฐ์ง๊ณ ํ์ต์ ํ๊ฒ ๋ฉ๋๋ค.",
"lecture_build_help": "์ด ๋์๋ง์ ๋ค์ ๋ณด์๋ ค๋ฉด ๋๋ฌ์ฃผ์ธ์.",
"lecture_build_help_never": "๋ค์๋ณด์ง ์๊ธฐ",
"lecture_build_close": "๋ซ๊ธฐ",
"lecture_build_scene": "์ฅ๋ฉด 1",
"lecture_build_add_object": "์ค๋ธ์ ํธ ์ถ๊ฐํ๊ธฐ",
"lecture_build_start": "์์ํ๊ธฐ",
"lecture_build_tab_code": "๋ธ๋ก",
"lecture_build_tab_shape": "๋ชจ์",
"lecture_build_tab_sound": "์๋ฆฌ",
"lecture_build_tab_attribute": "์์ฑ",
"lecture_build_block_category": "๋ธ๋ก ์นดํ
๊ณ ๋ฆฌ๋ฅผ ์ ํํ์ธ์.",
"lecture_build_attr_all": "์ ์ฒด",
"lecture_build_attr_var": "๋ณ์",
"lecture_build_attr_signal": "์ ํธ",
"lecture_build_attr_list": "๋ฆฌ์คํธ",
"lecture_build_attr_func": "ํจ์",
"lecture_build_edit": "๊ฐ์ ์์ ",
"lecture_build_remove": "์ญ์ ",
"curriculum_build": "๊ฐ์ ๋ชจ์ ๋ง๋ค๊ธฐ",
"curriculum_step1": "1. ๊ฐ์ ๋ชจ์์ ์๊ฐํ๋ ์ ๋ณด๋ฅผ ์
๋ ฅํด์ฃผ์ธ์.",
"curriculum_step2": "2. ๊ฐ์ ๋ชจ์์ ๊ตฌ์ฑํ๋ ๊ฐ์๋ฅผ ์ ํํด์ฃผ์ธ์.",
"curriculum_step3": "3. ์ฌ๋ฐ๋ฅด๊ฒ ๊ฐ์ ๋ชจ์์ด ๊ตฌ์ฑ๋์๋์ง ํ์ธํด์ฃผ์ธ์.",
"curriculum_lecture_upload": "๊ฐ์ ์ฌ๋ฆฌ๊ธฐ",
"curriculum_lecture_edit": "๊ฐ์ ํธ์ง",
"curriculum_lecture_open": "๋ถ๋ฌ์ค๊ธฐ",
"group_lecture_add": "์ฐ๋ฆฌ ๋ฐ ๊ฐ์ ์ถ๊ฐํ๊ธฐ",
"group_curriculum_add": "์ฐ๋ฆฌ ๋ฐ ๊ฐ์ ๋ชจ์ ์ถ๊ฐํ๊ธฐ",
"group_lecture_delete": "์ญ์ ",
"group_curriculum_delete": "์ญ์ ",
"group_select": "",
"group_studentNo": "ํ๋ฒ",
"group_username": "์ด๋ฆ",
"group_userId": "์์ด๋",
"group_tempPassword": "๋น๋ฐ๋ฒํธ ์์ ",
"group_gender": "์ฑ๋ณ",
"group_studentCode": "์ฝ๋",
"group_viewWorks": "์ํ๋ณด๊ธฐ",
"added_group_lecture": "๊ฐ์๊ฐ ์ญ๋์์ต๋๋ค.",
"added_group_curriculum": "๊ฐ์ ๋ชจ์์ด ์ญ์ ๋์์ต๋๋ค.",
"deleted_group_lecture": "๊ฐ์๊ฐ ์ญ์ ๋์์ต๋๋ค.",
"deleted_group_curriculum": "๊ฐ์ ๋ชจ์์ด ์ญ์ ๋์์ต๋๋ค.",
"modal_my": "๋์",
"modal_interest": "๊ด์ฌ",
"modal_project": "์ํ",
"section": "๋จ์",
"connect_hw": "ํ๋์จ์ด ์ฐ๊ฒฐ",
"connect_message": "%1์ ์ฐ๊ฒฐ๋์์ต๋๋ค.",
"connect_fail": "ํ๋์จ์ด ์ฐ๊ฒฐ์ ์คํจํ์ต๋๋ค. ์ฐ๊ฒฐํ๋ก๊ทธ๋จ์ด ์ผ์ ธ ์๋์ง ํ์ธํด ์ฃผ์ธ์.",
"interest_curriculum": "๊ด์ฌ ๊ฐ์ ๋ชจ์",
"marked_curriculum": "๊ด์ฌ ๊ฐ์ ๋ชจ์",
"searchword_required": "๊ฒ์์ด๋ฅผ ์
๋ ฅํ์ธ์.",
"file_required": "ํ์ผ์ ํ์ ์
๋ ฅ ํญ๋ชฉ์
๋๋ค.",
"file_upload_max_count": "ํ๋ฒ์ 10๊ฐ๊น์ง ์
๋ก๋๊ฐ ๊ฐ๋ฅํฉ๋๋ค.",
"image_file_only": "์ด๋ฏธ์ง ํ์ผ๋ง ๋ฑ๋ก์ด ๊ฐ๋ฅํฉ๋๋ค.",
"file_upload_max_size": "10MB ์ดํ๋ง ์
๋ก๋๊ฐ ๊ฐ๋ฅํฉ๋๋ค.",
"curriculum_modal_lectures": "๋์ ๊ฐ์",
"curriculum_modal_interest": "๊ด์ฌ ๊ฐ์",
"group_curriculum_modal_curriculums": "๋์ ๊ฐ์ ๋ชจ์",
"group_curriculum_modal_interest": "๊ด์ฌ ๊ฐ์ ๋ชจ์",
"picture_import": "๋ชจ์ ๊ฐ์ ธ์ค๊ธฐ",
"picture_select": "๋ชจ์ ์ ํ",
"lecture_list_view": "๋ค๋ฅธ ๊ฐ์๋ณด๊ธฐ",
"play_software_2": "EBS ์ํํธ์จ์ด์ผ ๋์2",
"play_software_2_content": "๋ค์ด๋ฒ์ EBS ๊ทธ๋ฆฌ๊ณ ์ํธ๋ฆฌ๊ฐ ํจ๊ป ๋ง๋ ๋ ๋ฒ์งธ ์ด์ผ๊ธฐ, <์ํํธ์จ์ด์ผ ๋์> ์์ฆ2๋ฅผ ๋ง๋๋ณด์ธ์! ์ฌ๋ฏธ์๋ ๋์์ ๊ฐ์๋ฅผ ํตํด ์ํํธ์จ์ด์ ๊ธฐ๋ณธ ๊ฐ๋
์ ๋ฐฐ์๋ณด๊ณ , ๋ค์ํ๊ณ ํฅ๋ฏธ๋ก์ด ์ฃผ์ ๋ก ์ค์ํ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด ๋ณผ ์ ์์ต๋๋ค. ๋ฐฉ์ก์์๊ณผ ํน๋ณ์์์ ๋ณด๋ฉฐ ์ฌ๋ฏธ์๋ ํ๋ก๊ทธ๋จ๋ค์ ์ง์ ๋ง๋ค์ด๋ณด์ธ์. ์ํํธ์จ์ด ๊ต์ก์ ์ฒ์ ์ ํ๋ ์น๊ตฌ๋ค๋ ์ฝ๊ฒ ์ํํธ์จ์ด์ ์น๊ตฌ๊ฐ ๋ ์ ์๋ต๋๋ค!",
"open_project_to_all": "๊ณต๊ฐ",
"close_project": "๋น๊ณต๊ฐ",
"category_media_art": "๋ฏธ๋์ด ์ํธ",
"go_further": "๋ ๋์๊ฐ๊ธฐ",
"marked_project": "๊ด์ฌ ์ํ",
"marked_group_project": "ํ๊ธ ๊ด์ฌ ์ํ",
"basic": "๊ธฐ๋ณธ",
"application": "์์ฉ",
"the_great_escape": "ํ์ถ ๋ชจํ๊ธฐ",
"escape_guide_1": "๊ฐ์์ง ๋ก๋ด์ ๋ง๋๋ ๊ณต์ฅ์์ ์ฐ์ฐํ ์ ์ ์ผ๋ก ํผ์์ ์๊ฐํ ์ ์๊ฒ ๋ ์ํธ๋ฆฌ๋ด! ",
"escape_guide_1_2": " ๊ณต์ฅ์ ํ์ถํ๊ณ ์์ ๋ฅผ ์ฐพ์ ์ ์๋๋ก ์ํธ๋ฆฌ๋ด์ ๋์์ฃผ์ธ์!",
"escape_guide_2": "์ํธ๋ฆฌ๋ด์ด ๋จผ ๊ธธ์ ๊ฐ๊ธฐ์ ๊ณ ์ณ์ผ ํ ๊ณณ์ด ๋๋ฌด ๋ง์ ๊ณต์ฅ์์ ํ์ถํ๋ฉด์ ๋ชธ์ ์๋ฆฌํ ์ ์๋ ๋ถํ๋ค์ ์ฐพ์๋ณด์! ์์ง ๋ชธ์ด ์์ ํ์ง๋ ์์ง๋ง ๊ฑท๊ฑฐ๋ ๋ฐ๋ฉด์, ๋ฐฉํฅ์ ๋ฐ๊พธ๋ ์ ๋๋ ๊ฐ๋ฅํ ๊ฑฐ์ผ! ",
"escape_guide_2_2": "ํ์ต ๋ชฉํ: ์์ฐจ์ ์คํ",
"escape_guide_3": "๋๋์ด ๊ณต์ฅ์ ํ์ถํ์ด! ํ์ง๋ง ๋ง์๋ก ๊ฐ๊ธฐ ์ํด์๋ ์์ง ๊ฐ์ผ ํ ๊ธธ์ด ๋ฉ์ด. ๊ทธ๋๋ ๋ชธ์ ์ด๋ ์ ๋ ๊ณ ์ณ์ ธ์ ๋๊ฐ์ ์ผ์ ๋ง์ด ํด๋ ๋ฌด๋ฆฌ๋ ์์ ๊ฑฐ์ผ! ์ด? ๊ทผ๋ฐ ์ ๋ก๋ด์ ๋ญ์ง? ",
"escape_guide_3_2": "ํ์ต ๋ชฉํ: ๋ฐ๋ณต๋ฌธ๊ณผ ์กฐ๊ฑด๋ฌธ",
"escape_guide_4": "๋๋์ด ๋ง์ ๊ทผ์ฒ๊น์ง ์์ด! ์๊น๋ถํฐ ๋๊ฐ์ ์ผ์ ๋ง์ด ํ๋๋ ์ด์ ์ธ์ธ ์ง๊ฒฝ์ด์ผ! ์ฐจ๋ผ๋ฆฌ ์ฐ์ผ ๋ธ๋ก์ ์ด์ ๊ธฐ์ตํด๋๋ค๊ฐ ์ฐ๋ฉด ์ข์ ๊ฒ ๊ฐ์. ์ฌ๊ธฐ์ ๋ฐฐํฐ๋ฆฌ๋ง ์ถฉ์ ํด ๋์ผ๋ฉด ์ด์ ํ์ ์์ ๋กญ๊ฒ ์ด ์ ์์ ๊ฑฐ์ผ.",
"escape_guide_4_2": "ํ์ต ๋ชฉํ: ํจ์ ์ ์์ ํธ์ถ",
"space_travel_log": "์ฐ์ฃผ ์ฌํ๊ธฐ",
"space_guide_1": "๋จธ๋๋จผ ์ฐ์ฃผ๋ฅผ ํ์ฌํ๊ธฐ ์ํด ๋ ๋ ์ํธ๋ฆฌ๋ด. ๋๋์ด ํ์ฌ ์๋ฌด๋ฅผ ๋ง์น๊ณ ๊ณ ํฅ๋ณ์ธ ์ง๊ตฌ๋ก ๋์์ค๋ ค ํ๋๋ฐ ์๋ง์ ๋์ด ์ง๊ตฌ๋ก ๊ฐ๋ ๊ธธ์ ๋ง๊ณ ์๋ค! ์ํธ๋ฆฌ๋ด์ด ์์ ํ๊ฒ ์ง๊ตฌ๋ก ๋์์ฌ ์ ์๋๋ก ๋์์ฃผ์ธ์!",
"space_guide_2": "๋๋์ด ์ง๊ตฌ์ ๋์๊ฐ ์๊ฐ์ด์ผ! ์ผ๋ฅธ ์ง๊ตฌ์ ๋์๊ฐ์ ์ฌ๊ณ ์ถ์ด!์์ ๋๋ค์ด ์ด๋ป๊ฒ ๋์ด ์๋์ง ํ์ธํ๊ณ ์ธ์ ์ด๋๋ก ๊ฐ์ผ ํ๋์ง ์๋ ค์ค! ๊ทธ๋ฌ๋ฉด ๋ด๊ฐ ๊ฐ๋ฅด์ณ์ค ๋ฐฉํฅ์ผ๋ก ์์ง์ผ๊ฒ!",
"space_guide_2_2": "ํ์ต ๋ชฉํ: ์กฐ๊ฑด๋ฌธ ์ค์ฒฉ๊ณผ ๋
ผ๋ฆฌ ์ฐ์ฐ",
"cfest_mission": "์ํธ๋ฆฌ ์ฒดํ ๋ฏธ์
",
"maze_1_intro": "์๋
๋๋ ์ํธ๋ฆฌ๋ด์ด๋ผ๊ณ ํด. ์ง๊ธ ๋๋ ๋ค์น ์น๊ตฌ๋ค์ ๊ตฌํ๋ ค๊ณ ํ๋๋ฐ ๋์ ๋์์ด ํ์ํด. ๋๋ฅผ ๋์์ ์น๊ตฌ๋ค์ ๊ตฌํด์ค! ๋จผ์ ์์ผ๋ก ๊ฐ๊ธฐ ๋ธ๋ก์ ์กฐ๋ฆฝํ๊ณ ์์์ ๋๋ฌ๋ด",
"maze_1_title": "์์ ๋ฐฉ๋ฒ",
"maze_1_content": "์ํธ๋ฆฌ๋ด์ ์ด๋ป๊ฒ ์์ง์ด๋์?",
"maze_1_detail": "1. ๋ธ๋ก ๊พธ๋ฌ๋ฏธ์์ ์ํ๋ ๋ธ๋ก์ ๊บผ๋ด์ด โ์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋โ ๋ธ๋ก๊ณผ ์ฐ๊ฒฐํด๋ด <br> 2. ๋ค ์กฐ๋ฆฝํ์ผ๋ฉด, ์์์ ๋๋ฌ๋ด <br> 3. ๋๋ ๋ค๊ฐ ์กฐ๋ฆฝํ ๋ธ๋ก๋๋ก ์์์๋ถํฐ ์์๋๋ก ์์ง์ผ๊ฒ",
"maze_2_intro": "์ข์! ๋๋ถ์ ์ฒซ ๋ฒ์งธ ์น๊ตฌ๋ฅผ ๋ฌด์ฌํ ๊ตฌํ ์ ์์์ด! ๊ทธ๋ผ ๋ค์ ์น๊ตฌ๋ฅผ ๊ตฌํด๋ณผ๊น? ์ด! ๊ทธ๋ฐ๋ฐ ์์ ๋ฒ์ง์ด ์์ด! ๋ฐ์ด๋๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ ๋ฒ์ง์ ํผํ๊ณ ์น๊ตฌ๋ฅผ ๊ตฌํด๋ณด์.",
"maze_2_title_1": "์ฅ์ ๋ฌผ ๋ฐ์ด๋๊ธฐ",
"maze_2_content_1": "์ฅ์ ๋ฌผ์ด ์์ผ๋ฉด ์ด๋ป๊ฒ ํด์ผํ๋์?",
"maze_2_detail_1": "๊ธธ์ ๊ฐ๋ค๋ณด๋ฉด ์ฅ์ ๋ฌผ์ ๋ง๋ ์ ์์ด. <br> ์ฅ์ ๋ฌผ์ด ์์ ์์ ๋์๋ ๋ฐ์ด๋๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ผ ํด.",
"maze_2_title_2": "์์ ๋ฐฉ๋ฒ",
"maze_2_content_2": "์ํธ๋ฆฌ๋ด์ ์ด๋ป๊ฒ ์์ง์ด๋์?",
"maze_2_detail_2": "1. ๋ธ๋ก ๊พธ๋ฌ๋ฏธ์์ ์ํ๋ ๋ธ๋ก์ ๊บผ๋ด์ด โ์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋โ ๋ธ๋ก๊ณผ ์ฐ๊ฒฐํด๋ด <br> 2. ๋ค ์กฐ๋ฆฝํ์ผ๋ฉด, ์์์ ๋๋ฌ๋ด <br> 3. ๋๋ ๋ค๊ฐ ์กฐ๋ฆฝํ ๋ธ๋ก๋๋ก ์์์๋ถํฐ ์์๋๋ก ์์ง์ผ๊ฒ",
"maze_3_intro": "๋ฉ์ก์ด! ์ด์ ๋ ๋ค๋ฅธ ์น๊ตฌ๋ฅผ ๊ตฌํ๋ฌ ๊ฐ์~ ์ด๋ฒ์๋ ์๊น ๊ตฌํ ์น๊ตฌ๊ฐ ์ค ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด์ฉํด๋ณผ๊น? ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ด์ฉํ๋ฉด ๋๊ฐ์ ๋์์ ์ฝ๊ฒ ์ฌ๋ฌ๋ฒ ํ ์ ์์ด! ํ ๋ฒ ๋ฐ๋ณตํ ์ซ์๋ฅผ ๋ฐ๊ฟ๋ณผ๋?",
"maze_3_title": "๋ฐ๋ณต ๋ธ๋ก(1)",
"maze_3_content": "(3)ํ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_3_detail": "๊ฐ์ ํ๋์ ์ฌ๋ฌ๋ฒ ๋ฐ๋ณตํ๋ ค๋ฉด ~๋ฒ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ผ ํด. <br> ๋ฐ๋ณตํ๊ณ ์ถ์ ๋ธ๋ก๋ค์ ~๋ฒ ๋ฐ๋ณตํ๊ธฐ ์์ ๋ฃ๊ณ ๋ฐ๋ณต ํ์๋ฅผ ์
๋ ฅํ๋ฉด ๋ผ",
"maze_4_intro": "ํ๋ฅญํด! ์ด์ ๊ตฌํด์ผ ํ ์น๊ตฌ ๋ก๋ด๋ค๋ ๋ณ๋ก ๋จ์ง ์์์ด. ๋ฒ์ง์ ๋ฟ์ง ์๋๋ก ๋ฐ์ด๋๊ธฐ๋ฅผ ๋ฐ๋ณตํ๋ฉด์ ์น๊ตฌ์๊ฒ ๊ฐ ์ ์๊ฒ ํด์ค!",
"maze_4_title": "๋ฐ๋ณต ๋ธ๋ก(1)",
"maze_4_content": "(3)ํ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_4_detail": "๊ฐ์ ํ๋์ ์ฌ๋ฌ๋ฒ ๋ฐ๋ณตํ๋ ค๋ฉด ~๋ฒ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ผ ํด. <br> ๋ฐ๋ณตํ๊ณ ์ถ์ ๋ธ๋ก๋ค์ ~๋ฒ ๋ฐ๋ณตํ๊ธฐ ์์ ๋ฃ๊ณ ๋ฐ๋ณต ํ์๋ฅผ ์
๋ ฅํ๋ฉด ๋ผ",
"maze_5_intro": "๋๋จํด! ์ด์ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก๊ณผ ๋ง์ฝ ๋ธ๋ก์ ๊ฐ์ด ์ฌ์ฉํด๋ณด์~ ๋ง์ฝ ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์์ ๋ฒฝ์ด ์์ ๋ ๋ฒฝ์ด ์๋ ์ชฝ์ผ๋ก ํ์ ํ ์ ์์ด. ๊ทธ๋ผ ์น๊ตฌ๋ฅผ ๊ตฌํด์ฃผ๋ฌ ์ถ๋ฐํด๋ณผ๊น?",
"maze_5_title_1": "๋ง์ฝ ๋ธ๋ก",
"maze_5_content_1": "๋ง์ฝ ~๋ผ๋ฉด ๋ธ๋ก์ ์ด๋ป๊ฒ ๋์ํ๋์?",
"maze_5_detail_1": "๋ง์ฝ ์์ {์ด๋ฏธ์ง}๊ฐ ์๋ค๋ฉด' ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์์ {์ด๋ฏธ์ง}๊ฐ ์์ ๋ ์ด๋ค ํ๋์ ํ ์ง ์ ํด์ค ์ ์์ด. <br> ์์ {์ด๋ฏธ์ง}๊ฐ ์์ ๋์๋ง ๋ธ๋ก ์์ ๋ธ๋ก๋ค์ ์คํํ๊ณ <br> ๊ทธ๋ ์ง ์์ผ๋ฉด ์คํํ์ง ์๊ฒ ๋๋ ๊ฑฐ์ผ.",
"maze_5_title_2": "๋ฐ๋ณต ๋ธ๋ก(2)",
"maze_5_content_2": "~๋ฅผ ๋ง๋ ๋ ๊น์ง ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_5_detail_2": "~๊น์ง ๋ฐ๋ณตํ๊ธฐ'๋ฅผ ์ฌ์ฉํ๋ฉด ๊ฐ์ ํ๋์ ์ธ์ ๊น์ง ๋ฐ๋ณตํ ์ง๋ฅผ ์ ํด์ค ์ ์์ด. <br> ๋ฐ๋ณตํ๊ณ ์ถ์ ๋ธ๋ก๋ค์ ~๊น์ง ๋ฐ๋ณตํ๊ธฐ์์ ๋ฃ์ผ๋ฉด ๋ผ. <br> ๊ทธ๋ฌ๋ฉด {์ด๋ฏธ์ง}์ ๊ฐ์ ํ์ผ ์์ ์๋ ๊ฒฝ์ฐ ๋ฐ๋ณต์ด ๋ฉ์ถ๊ฒ ๋ ๊ฑฐ์ผ.",
"maze_6_intro": "์ด์ ๋ง์ง๋ง ์น๊ตฌ์ผ! ์๊น ํด๋ณธ ๊ฒ์ฒ๋ผ๋ง ํ๋ฉด ๋ ๊ฑฐ์ผ! ๊ทธ๋ผ ๋ง์ง๋ง ์น๊ตฌ๋ฅผ ๊ตฌํ๋ฌ ๊ฐ๋ณผ๊น?",
"maze_6_title_1": "๋ง์ฝ ๋ธ๋ก",
"maze_6_content_1": "๋ง์ฝ ~๋ผ๋ฉด ๋ธ๋ก์ ์ด๋ป๊ฒ ๋์ํ๋์?",
"maze_6_detail_1": "๋ง์ฝ ์์ {์ด๋ฏธ์ง}๊ฐ ์๋ค๋ฉด' ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์์ {์ด๋ฏธ์ง}๊ฐ ์์ ๋ ์ด๋ค ํ๋์ ํ ์ง ์ ํด์ค ์ ์์ด. <br> ์์ {์ด๋ฏธ์ง}๊ฐ ์์ ๋์๋ง ๋ธ๋ก ์์ ๋ธ๋ก๋ค์ ์คํํ๊ณ <br> ๊ทธ๋ ์ง ์์ผ๋ฉด ์คํํ์ง ์๊ฒ ๋๋ ๊ฑฐ์ผ.",
"maze_6_title_2": "๋ฐ๋ณต ๋ธ๋ก(2)",
"maze_6_content_2": "~๋ฅผ ๋ง๋ ๋ ๊น์ง ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_6_detail_2": "~๊น์ง ๋ฐ๋ณตํ๊ธฐ'๋ฅผ ์ฌ์ฉํ๋ฉด ๊ฐ์ ํ๋์ ์ธ์ ๊น์ง ๋ฐ๋ณตํ ์ง๋ฅผ ์ ํด์ค ์ ์์ด. <br> ๋ฐ๋ณตํ๊ณ ์ถ์ ๋ธ๋ก๋ค์ ~๊น์ง ๋ฐ๋ณตํ๊ธฐ์์ ๋ฃ์ผ๋ฉด ๋ผ. <br> ๊ทธ๋ฌ๋ฉด {์ด๋ฏธ์ง}์ ๊ฐ์ ํ์ผ ์์ ์๋ ๊ฒฝ์ฐ ๋ฐ๋ณต์ด ๋ฉ์ถ๊ฒ ๋ ๊ฑฐ์ผ.",
"maze_programing_mode_0": "๋ธ๋ก ์ฝ๋ฉ",
"maze_programing_mode_1": "์๋ฐ์คํฌ๋ฆฝํธ",
"maze_operation1_title": "1๋จ๊ณ ? ์๋ฐ์คํฌ๋ฆฝํธ๋ชจ๋ ์๋ด",
"maze_operation1_1_desc": "๋๋ ๋ก๋ด๊ฐ์์ง ์ํธ๋ฆฌ๋ด์ด์ผ. ๋์๊ฒ ๋ช
๋ น์ ๋ด๋ ค์ ๋ฏธ์
์ ํด๊ฒฐํ ์ ์๊ฒ ๋์์ค! ๋ฏธ์
์ ์์ํ ๋๋ง๋ค <span class=\"textShadow\">\'๋ชฉํ\'</span>๋ฅผ ํตํด์ ํ์ธํ ์ ์์ด!",
"maze_operation1_2_desc": "๋ฏธ์
์ ํ์ธํ๋ค๋ฉด <b>๋ช
๋ น</b>์ ๋ด๋ ค์ผ ํด <span class=\"textUnderline\">\'๋ช
๋ น์ด ๊พธ๋ฌ๋ฏธ\'</span>๋ <b>๋ช
๋ น์ด</b>๊ฐ ์๋ ๊ณต๊ฐ์ด์ผ. <b>๋ง์ฐ์ค</b>์ <b>ํค๋ณด๋</b>๋ก <b>๋ช
๋ น</b>์ ๋ด๋ฆด ์ ์์ด. <span class=\"textShadow\">๋ง์ฐ์ค</span>๋ก๋ ๋ช
๋ น์ด ๊พธ๋ฌ๋ฏธ์ ์๋ <b>๋ช
๋ น์ด</b>๋ฅผ ํด๋ฆญํ๊ฑฐ๋, <b>๋ช
๋ น์ด</b>๋ฅผ <span class=\"textUnderline\">\'๋ช
๋ น์ด ์กฐ๋ฆฝ์\'</span>๋ก ๋๊ณ ์์ ๋์๊ฒ <b>๋ช
๋ น</b>์ ๋ด๋ฆด ์ ์์ด!",
"maze_operation1_2_textset_1": "๋ง์ฐ์ค๋ก ๋ช
๋ น์ด๋ฅผ ํด๋ฆญํ๋ ๋ฐฉ๋ฒ ",
"maze_operation1_2_textset_2": "๋ง์ฐ์ค๋ก ๋ช
๋ น์ด๋ฅผ ๋๋๊ทธ์ค๋๋ํ๋ ๋ฐฉ๋ฒ ",
"maze_operation1_3_desc": "<span class=\"textShadow\">ํค๋ณด๋</span>๋ก ๋ช
๋ น์ ๋ด๋ฆฌ๋ ค๋ฉด \'๋ช
๋ น์ด ๊พธ๋ฌ๋ฏธ\' ์ ์๋ <b>๋ช
๋ น์ด๋ฅผ ํค๋ณด๋๋ก ์ง์ ์
๋ ฅํ๋ฉด ๋ผ.</b></br> ๋ช
๋ น์ด๋ฅผ ์
๋ ฅํ ๋ ๋ช
๋ น์ด ๋์ ์๋ <span class=\"textShadow\">()์ ;</span> ๋ฅผ ๋นผ๋จน์ง ์๋๋ก ์ฃผ์ํด์ผํด!",
"maze_operation1_4_desc": "๋ฏธ์
์ ํด๊ฒฐํ๊ธฐ ์ํ ๋ช
๋ น์ด๋ฅผ ๋ค ์
๋ ฅํ๋ค๋ฉด <span class=\"textShadow\">[์์ํ๊ธฐ]</span>๋ฅผ ๋๋ฅด๋ฉด ๋ผ.</br> [์์ํ๊ธฐ]๋ฅผ ๋๋ฅด๋ฉด ๋๋ ๋ช
๋ น์ ๋ด๋ฆฐ๋๋ก ์์ง์ผ ๊ฑฐ์ผ!</br> ๊ฐ ๋ช
๋ น์ด๊ฐ ๊ถ๊ธํ๋ค๋ฉด <span class=\"textShadow\">[๋ช
๋ น์ด ๋์๋ง]</span>์ ํ์ธํด๋ด!",
"maze_operation7_title": "7๋จ๊ณ - ๋ฐ๋ณต ๋ช
๋ น ์์๋ณด๊ธฐ(ํ์๋ฐ๋ณต)",
"maze_operation7_1_desc": "<b>๋๊ฐ์ ์ผ</b>์ ๋ฐ๋ณตํด์ ๋ช
๋ นํ๋๊ฑด ๋งค์ฐ ๊ท์ฐฎ์ ์ผ์ด์ผ.</br>์ด๋ด๋ <span class=\"textShadow\">๋ฐ๋ณต</span>๊ณผ ๊ด๋ จ๋ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๋ฉด ํจ์ฌ ์ฝ๊ฒ ๋ช
๋ น์ ๋ด๋ฆด ์ ์์ด.",
"maze_operation7_2_desc": "๊ทธ๋ ๋ค๋ฉด ๋ฐ๋ณต๋๋ ๋ช
๋ น์ ์ฝ๊ฒ ๋ด๋ฆฌ๋ ๋ฐฉ๋ฒ์ ์์๋ณด์.</br>๋จผ์ ๋ฐ๋ณตํ๊ธฐ ๋ช
๋ น์ด๋ฅผ ํด๋ฆญํ ๋ค์, <span class=\"textShadow\">i<1</span> ์ ์ซ์๋ฅผ ๋ฐ๊ฟ์ <span class=\"textShadow\">๋ฐ๋ณตํ์</span>๋ฅผ ์ ํ๊ณ </br><span class=\"textShadow\">๊ดํธ({ })</span> ์ฌ์ด์ ๋ฐ๋ณตํ ๋ช
๋ น์ด๋ฅผ ๋ฃ์ด์ฃผ๋ฉด ๋ผ!",
"maze_operation7_3_desc": "์๋ฅผ ๋ค์ด ์ด ๋ช
๋ น์ด<span class=\"textBadge number1\"></span>์ move(); ๋ฅผ 10๋ฒ ๋ฐ๋ณตํด์ ์คํํด.</br><span class=\"textBadge number2\"></span>๋ช
๋ น์ด์ ๋์ผํ ๋ช
๋ น์ด์ง.",
"maze_operation7_4_desc": "์ด ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ ๋๋ <span class=\"textShadow\">{ } ์์ ๋ฐ๋ณตํ ๋ช
๋ น์ด</span>๋ฅผ ์ ์
๋ ฅํ๋์ง,</br><span class=\"textShadow\">`;`</span>๋ ๋น ์ง์ง ์์๋์ง ์ ์ดํด๋ด!</br>์ด ๋ช
๋ น์ด์ ๋ํ ์์ธํ ์ค๋ช
์ [๋ช
๋ น์ด ๋์๋ง]์์ ๋ณผ ์ ์์ด.",
"maze_operation7_1_textset_1": "๋๊ฐ์ ๋ช
๋ น์ด๋ฅผ ๋ฐ๋ณตํด์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ",
"maze_operation7_1_textset_2": "๋ฐ๋ณต ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ",
"maze_operation7_2_textset_1": "๋ฐ๋ณต ํ์",
"maze_operation7_2_textset_2": "๋ฐ๋ณตํ ๋ช
๋ น",
"maze_operation7_4_textset_1": "๊ดํธ({})๊ฐ ๋น ์ง ๊ฒฝ์ฐ",
"maze_operation7_4_textset_2": "์ธ๋ฏธ์ฝ๋ก (;)์ด ๋น ์ง ๊ฒฝ์ฐ",
"study_maze_operation8_title": "8๋จ๊ณ - ๋ฐ๋ณต ๋ช
๋ น ์์๋ณด๊ธฐ(ํ์๋ฐ๋ณต)",
"study_maze_operation16_title": "4๋จ๊ณ - ๋ฐ๋ณต ๋ช
๋ น ์์๋ณด๊ธฐ(์กฐ๊ฑด๋ฐ๋ณต)",
"study_maze_operation1_title": "1๋จ๊ณ - ๋ฐ๋ณต ๋ช
๋ น ์์๋ณด๊ธฐ(ํ์๋ฐ๋ณต)",
"maze_operation9_title": "9๋จ๊ณ - ๋ฐ๋ณต ๋ช
๋ น ์์๋ณด๊ธฐ(์กฐ๊ฑด๋ฐ๋ณต)",
"maze_operation9_1_desc": "์์์๋ ๋ช ๋ฒ์ ๋ฐ๋ณตํ๋ ํ์๋ฐ๋ณต ๋ช
๋ น์ด์ ๋ํด ๋ฐฐ์ ์ด.</br>์ด๋ฒ์๋ <span class=\"textShadow\">๊ณ์ํด์ ๋ฐ๋ณตํ๋ ๋ช
๋ น์ด</span>๋ฅผ ์ดํด๋ณด์.</br>์ด ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๋ฉด ๋ฏธ์
์ด ๋๋ ๋๊น์ง <b>๋์ผํ ํ๋</b>์ ๊ณ์ ๋ฐ๋ณตํ๊ฒ ๋ผ.</br>์ด ๋ช
๋ น์ด ์ญ์ ๊ดํธ({ }) ์ฌ์ด์ ๋ฐ๋ณตํ ๋ช
๋ น์ด๋ฅผ ๋ฃ์ด ์ฌ์ฉํ ์ ์์ด!",
"maze_operation9_2_desc": "์๋ฅผ ๋ค์ด ์ด ๋ช
๋ น์ด <span class=\"textBadge number1\"></span>์ ๋ฏธ์
์ ์๋ฃํ ๋๊น์ง ๋ฐ๋ณตํด์ move(); right()๋ฅผ ์คํํด.</br><span class=\"textBadge number2\"></span>๋ช
๋ น์ด์ ๋์ผํ ๋ช
๋ น์ด์ง.",
"maze_operation9_3_desc": "์ด ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ ๋๋ <span class=\"textShadow\">{ } ์์ ๋ฐ๋ณตํ ๋ช
๋ น์ด</span>๋ฅผ ์ ์
๋ ฅํ๋์ง,</br><span class=\"textShadow\">`true`</span>๊ฐ ๋น ์ง์ง ์์๋์ง ์ ์ดํด๋ด!</br>์ด ๋ช
๋ น์ด์ ๋ํ ์์ธํ ์ค๋ช
์ [๋ช
๋ น์ด ๋์๋ง]์์ ๋ณผ ์ ์์ด.",
"maze_operation9_1_textset_1": "๋ฐ๋ณตํ ๋ช
๋ น",
"maze_operation9_3_textset_1": "๊ดํธ({})๊ฐ ๋น ์ง ๊ฒฝ์ฐ",
"maze_operation9_3_textset_2": "์ธ๋ฏธ์ฝ๋ก (;)์ด ๋น ์ง ๊ฒฝ์ฐ",
"maze_operation9_3_textset_3": "true๊ฐ ๋น ์ง ๊ฒฝ์ฐ",
"study_maze_operation3_title": "3๋จ๊ณ - ๋ฐ๋ณต ๋ช
๋ น ์์๋ณด๊ธฐ(์กฐ๊ฑด๋ฐ๋ณต)",
"study_maze_operation4_title": "4๋จ๊ณ - ์กฐ๊ฑด ๋ช
๋ น ์์๋ณด๊ธฐ",
"study_ai_operation4_title": "4๋จ๊ณ - ์กฐ๊ฑด ๋ช
๋ น๊ณผ ๋ ์ด๋ ์์๋ณด๊ธฐ",
"study_ai_operation6_title": "6๋จ๊ณ - ์ค์ฒฉ์กฐ๊ฑด๋ฌธ ์์๋ณด๊ธฐ",
"study_ai_operation7_title": "7๋จ๊ณ - ๋ค์ํ ๋น๊ต์ฐ์ฐ ์์๋ณด๊ธฐ",
"study_ai_operation8_title": "8๋จ๊ณ - ๋ฌผ์ฒด ๋ ์ด๋ ์์๋ณด๊ธฐ",
"study_ai_operation9_title": "9๋จ๊ณ - ์์ดํ
์ฌ์ฉํ๊ธฐ",
"maze_operation10_title": "10๋จ๊ณ - ์กฐ๊ฑด ๋ช
๋ น ์์๋ณด๊ธฐ",
"maze_operation10_1_desc": "์์์๋ ๋ฏธ์
์ด ๋๋ ๋๊น์ง ๊ณ์ ๋ฐ๋ณตํ๋ ๋ฐ๋ณต ๋ช
๋ น์ด์ ๋ํด ๋ฐฐ์ ์ด.</br>์ด๋ฒ์๋ ํน์ ํ ์กฐ๊ฑด์์๋ง ํ๋์ ํ๋ <span class=\"textShadow\">์กฐ๊ฑด ๋ช
๋ น์ด</span>๋ฅผ ์ดํด๋ณด์.</br><span class=\"textBadge number2\"></span>์์ ๋ณด๋๊ฒ์ฒ๋ผ ์กฐ๊ฑด ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๋ฉด <b>๋ช
๋ น์ ๋ณด๋ค ํจ์จ์ ์ผ๋ก ์ ๋ด๋ฆด ์ ์์ด.</b>",
"maze_operation10_2_desc": "์กฐ๊ฑด ๋ช
๋ น์ด๋ ํฌ๊ฒ <span class=\"textShadow\">`์กฐ๊ฑด`</span> ๊ณผ <span class=\"textShadow\">`์กฐ๊ฑด์ด ๋ฐ์ํ์๋ ์คํ๋๋ ๋ช
๋ น`</span>์ผ๋ก ๋๋์ ์์ด.</br>๋จผ์ <span class=\"textUnderline\">์กฐ๊ฑด</span> ๋ถ๋ถ์ ์ดํด๋ณด์. If ๋ค์์ ๋์ค๋ <span class=\"textUnderline\">( ) ๋ถ๋ถ</span>์ด ์กฐ๊ฑด์ ์
๋ ฅํ๋ ๋ถ๋ถ์ด์ผ.</br><span class=\"textBadge number1\"></span>๊ณผ ๊ฐ์ ๋ช
๋ น์ด๋ฅผ ์๋ก ์ดํด๋ณด์. <span class=\"textUnderline\">if(front == \โwall\โ)</span> ๋ ๋ง์ฝ ๋ด ์์(front) \"wall(๋ฒฝ)\"์ด ์๋ค๋ฉด์ ๋ปํด",
"maze_operation10_3_desc": "์ด์ <span class=\"textUnderline\">`์กฐ๊ฑด์ด ๋ฐ์ํ์ ๋ ์คํ๋๋ ๋ช
๋ น`</span>์ ์ดํด๋ณด์.</br>์ด ๋ถ๋ถ์ <span class=\"textShadow\">๊ดํธ{}</span>๋ก ๋ฌถ์ฌ ์๊ณ , ์กฐ๊ฑด์ด ๋ฐ์ํ์๋ ๊ดํธ์์ ๋ช
๋ น์ ์คํํ๊ฒ ๋ผ!</br>์กฐ๊ฑด์ด ๋ฐ์ํ์ง ์์ผ๋ฉด ์ด ๋ถ๋ถ์ ๋ฌด์ํ๊ณ ๊ทธ๋ฅ ๋์ด๊ฐ๊ฒ ๋์ง.</br><span class=\"textBadge number1\"></span>์ ๋ช
๋ น์ด๋ฅผ ์๋ก ์ดํด๋ณด์. ์กฐ๊ฑด์ ๋ง์ฝ์ `๋ด ์์ ๋ฒฝ์ด ์์ ๋` ์ด๊ณ ,</br><b>์ด ์กฐ๊ฑด์ด ๋ฐ์ํ์ ๋ ๋๋ ๊ดํธ์์ ๋ช
๋ น์ด right(); ์ฒ๋ผ ์ค๋ฅธ์ชฝ์ผ๋ก ํ์ ํ๊ฒ ๋ผ!</b>",
"maze_operation10_4_desc": "<span class=\"textShadow\">์กฐ๊ฑด ๋ช
๋ น์ด</span>๋ <span class=\"textShadow\">๋ฐ๋ณตํ๊ธฐ ๋ช
๋ น์ด</span>์ ํจ๊ป ์ฐ์ด๋ ๊ฒฝ์ฐ๊ฐ ๋ง์.</br>์์ผ๋ก ์ญ ๊ฐ๋ค๊ฐ, ๋ฒฝ์ ๋ง๋ฌ์๋๋ง ํ์ ํ๊ฒ ํ๋ ค๋ฉด</br><span class=\"textUnderline pdb5\"><span class=\"textBadge number1\"></span><span class=\"textBadge number2\"></span><span class=\"textBadge number3\"></span>์์</span>์ ๊ฐ์ด ๋ช
๋ น์ ๋ด๋ฆด ์ ์์ง!",
"maze_operation10_1_textset_1": "<b>[์ผ๋ฐ๋ช
๋ น]</b>",
"maze_operation10_1_textset_2": "<span class=\"textMultiline\">์์ผ๋ก 2์นธ ๊ฐ๊ณ </br>์ค๋ฅธ์ชฝ์ผ๋ก ํ์ ํ๊ณ ,</br>์์ผ๋ก 3์นธ๊ฐ๊ณ ,</br>์ค๋ฅธ์ชฝ์ผ๋ก ํ์ ํ๊ณ , ์์ผ๋ก...</span>",
"maze_operation10_1_textset_3": "<b>[์กฐ๊ฑด๋ช
๋ น]</b>",
"maze_operation10_1_textset_4": "<span class=\"textMultiline\">์์ผ๋ก ๊ณ์ ๊ฐ๋ค๊ฐ</br><span class=\"textEmphasis\">`๋ง์ฝ์ ๋ฒฝ์ ๋ง๋๋ฉด`</span></br>์ค๋ฅธ์ชฝ์ผ๋ก ํ์ ํด~!</span>",
"maze_operation10_2_textset_1": "์กฐ๊ฑด",
"maze_operation10_2_textset_2": "์กฐ๊ฑด์ด ๋ฐ์ํ์ ๋ ์คํ๋๋ ๋ช
๋ น",
"maze_operation10_3_textset_1": "์กฐ๊ฑด",
"maze_operation10_3_textset_2": "์กฐ๊ฑด์ด ๋ฐ์ํ์ ๋ ์คํ๋๋ ๋ช
๋ น",
"maze_operation10_4_textset_1": "<span class=\"textMultiline\">๋ฏธ์
์ด ๋๋ ๋ ๊น์ง</br>๊ณ์ ์์ผ๋ก ๊ฐ๋ค.</span>",
"maze_operation10_4_textset_2": "<span class=\"textMultiline\">๊ณ์ ์์ผ๋ก ๊ฐ๋ค๊ฐ,</br>๋ง์ฝ์ ๋ฒฝ์ ๋ง๋๋ฉด</span>",
"maze_operation10_4_textset_3": "<span class=\"textMultiline\">๊ณ์ ์์ผ๋ก ๊ฐ๋ค๊ฐ,</br>๋ง์ฝ์ ๋ฒฝ์ ๋ง๋๋ฉด</br>์ค๋ฅธ์ชฝ์ผ๋ก ํ์ ํ๋ค.</span>",
"study_maze_operation18_title": "6๋จ๊ณ - ์กฐ๊ฑด ๋ช
๋ น ์์๋ณด๊ธฐ",
"maze_operation15_title": "15๋จ๊ณ - ํจ์ ๋ช
๋ น ์์๋ณด๊ธฐ",
"maze_operation15_1_desc": "์์ฃผ ์ฌ์ฉํ๋ ๋ช
๋ น์ด๋ค์ ๋งค๋ฒ ์
๋ ฅํ๋๊ฑด ๋งค์ฐ ๊ท์ฐฎ์ ์ผ์ด์ผ.</br>์์ฃผ ์ฌ์ฉํ๋ <span class=\"textUnderline\">๋ช
๋ น์ด๋ค์ ๋ฌถ์ด์ ์ด๋ฆ</span>์ ๋ถ์ด๊ณ ,</br><b>ํ์ํ ๋๋ง๋ค ๊ทธ ๋ช
๋ น์ด ๋ฌถ์์ ๋ถ๋ฌ์จ๋ค๋ฉด ํจ์ฌ ํธ๋ฆฌํ๊ฒ ๋ช
๋ น์ ๋ด๋ฆด ์ ์์ด!</b></br>์ด๋ฐ ๋ช
๋ น์ด ๋ฌถ์์ <span class=\"textShadow\">`ํจ์`</span>๋ผ๊ณ ํด. ์ด์ ํจ์ ๋ช
๋ น์ ๋ํด ์์ธํ ์์๋ณด์.",
"maze_operation15_2_desc": "ํจ์ ๋ช
๋ น์ด๋ ๋ช
๋ น์ด๋ฅผ ๋ฌถ๋ <b>`ํจ์๋ง๋ค๊ธฐ` ๊ณผ์ </b>๊ณผ,</br>๋ฌถ์ ๋ช
๋ น์ด๋ฅผ ํ์ํ ๋ ์ฌ์ฉํ๋ <b>`ํจ์ ๋ถ๋ฌ์ค๊ธฐ` ๊ณผ์ </b>์ด ์์ด.</br>๋จผ์ ํจ์๋ง๋ค๊ธฐ ๊ณผ์ ์ ์ดํด๋ณด์.</br>ํจ์๋ฅผ ๋ง๋ค๋ ค๋ฉด ํจ์์ ์ด๋ฆ๊ณผ, ๊ทธ ํจ์์ ๋ค์ด๊ฐ ๋ช
๋ น์ด๋ฅผ ์
๋ ฅํด์ผ ํด.</br><span class=\"textShadow\">function</span>์ ์
๋ ฅํ ๋ค์ <span class=\"textShadow\">ํจ์์ ์ด๋ฆ</span>์ ์ ํ ์ ์์ด. ์ฌ๊ธฐ์๋ <span class=\"textShadow\">promise</span>๋ก ๋ง๋ค๊ฑฐ์ผ.</br>ํจ์ ์ด๋ฆ์ ๋ง๋ค์์ผ๋ฉด <span class=\"textUnderline\">()</span>๋ฅผ ๋ถ์ฌ์ค. ๊ทธ ๋ค์ <span class=\"textUnderline\">๊ดํธ({})</span>๋ฅผ ์
๋ ฅํด.</br>๊ทธ๋ฆฌ๊ณ <span class=\"textUnderline\">์ด ๊ดํธ ์์ ํจ์์ ๋ค์ด๊ฐ ๋ช
๋ น์ด๋ค์ ์
๋ ฅํ๋ฉด</span> ํจ์๊ฐ ๋ง๋ค์ด์ ธ!",
"maze_operation15_3_desc": "์ด ๋ช
๋ น์ด๋ฅผ ์๋ก ์ดํด๋ณด์. ๋๋ <span class=\"textShadow\">promise</span> ๋ผ๋ ํจ์๋ฅผ ๋ง๋ค์์ด.</br>์ด ํจ์๋ฅผ ๋ถ๋ฌ์ ์คํํ๋ฉด <span class=\"textUnderline\">๊ดํธ({})</span>์์ ์๋</br>move();</br>move();</br>left(); ๊ฐ ์คํ๋ผ!",
"maze_operation15_4_desc": "ํจ์๋ฅผ ๋ถ๋ฌ์์ ์คํํ๋ ค๋ฉด ์๊น ๋ง๋ <b>ํจ์์ ์ด๋ฆ์ ์
๋ ฅํ๊ณ ๋ค์ `();`๋ฅผ ๋ถ์ด๋ฉด ๋ผ.</b></br>promise ๋ผ๋ ์ด๋ฆ์ผ๋ก ํจ์๋ฅผ ๋ง๋ค์์ผ๋ <span class=\"textShadow\">promise();</span> ๋ฅผ ์
๋ ฅํ๋ฉด ์์์ ๋ฌถ์ด๋์</br>๋ช
๋ น์ด๋ค์ด ์คํ๋๋๊ฑฐ์ง!</br><span class=\"number1 textBadge\"></span>๊ณผ ๊ฐ์ด ๋ช
๋ น์ ๋ด๋ฆฌ๋ฉด <span class=\"number2 textBadge\"></span>์ฒ๋ผ ๋์ํ๊ฒ ๋ผ!</br>ํจ์ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด <span class=\"number1 textBadge\"></span>๊ณผ ๊ฐ์ด ํจ์๋ฅผ ๋ง๋ค๊ณ ํจ์๋ฅผ ๋ถ๋ฌ์์ผํด!",
"maze_operation15_1_textset_1": "์์ฃผ ์ฌ์ฉํ๋ ๋ช
๋ น์ด ํ์ธํ๊ธฐ",
"maze_operation15_1_textset_2": "๋ช
๋ น์ด๋ค์ ๋ฌถ์ด์ ์ด๋ฆ ๋ถ์ด๊ธฐ",
"maze_operation15_1_textset_3": "๋ช
๋ น์ด ๋ฌถ์ ๋ถ๋ฌ์ค๊ธฐ",
"maze_operation15_2_textset_1": "๋ช
๋ น์ด ๋ฌถ์์ ์ด๋ฆ(ํจ์ ์ด๋ฆ)",
"maze_operation15_2_textset_2": "๋ฌถ์ ๋ช
๋ น์ด๋ค",
"maze_operation15_3_textset_1": "๋ช
๋ น์ด ๋ฌถ์์ ์ด๋ฆ(ํจ์ ์ด๋ฆ)",
"maze_operation15_3_textset_2": "๋ฌถ์ ๋ช
๋ น์ด๋ค",
"maze_operation15_4_textset_1": "ํจ์ ๋ง๋ค๊ธฐ",
"maze_operation15_4_textset_2": "ํจ์ ๋ถ๋ฌ์ค๊ธฐ",
"maze_operation15_4_textset_3": "์ค์ ์ํฉ",
"maze_object_title": "์ค๋ธ์ ํธ ์ ๋ณด",
"maze_object_parts_box": "๋ถํ ์์",
"maze_object_trap": "ํจ์ ",
"maze_object_monster": "๋ชฌ์คํฐ",
"maze_object_obstacle1": "์ฅ์ ๋ฌผ",
"maze_object_obstacle2": "bee",
"maze_object_obstacle3": "banana",
"maze_object_friend": "์น๊ตฌ",
"maze_object_wall1": "wall",
"maze_object_wall2": "wall",
"maze_object_wall3": "wall",
"maze_object_battery": "๋ฒ ํฐ๋ฆฌ",
"maze_command_ex": "์์",
"maze_command_title": "๋ช
๋ น์ด ๋์๋ง",
"maze_command_move_desc": "์ํธ๋ฆฌ๋ด์ ํ ์นธ ์์ผ๋ก ์ด๋์ํต๋๋ค.",
"maze_command_jump_desc": "์๋ ์ด๋ฏธ์ง์ ๊ฐ์ ์ฅ์ ๋ฌผ ์์์ ์ฅ์ ๋ฌผ์ ๋ฐ์ด ๋์ต๋๋ค.</br><div class=\"obstacleSet\"></div>",
"maze_command_jump_desc_elec": "์๋ ์ด๋ฏธ์ง์ ๊ฐ์ ์ฅ์ ๋ฌผ ์์์ ์ฅ์ ๋ฌผ์ ๋ฐ์ด ๋์ต๋๋ค.</br><div class=\"obstacle_elec\"></div>",
"maze_command_right_desc": "์ ์๋ฆฌ์์ ์ค๋ฅธ์ชฝ์ผ๋ก 90๋ ํ์ ํฉ๋๋ค.",
"maze_command_left_desc": "์ ์๋ฆฌ์์ ์ผ์ชฝ์ผ๋ก 90๋ ํ์ ํฉ๋๋ค.",
"maze_command_for_desc": "๊ดํธ<span class=\"textShadow\">{}</span> ์์ ์๋ ๋ช
๋ น์ <span class=\"textShadow\">์
๋ ฅํ ํ์</span> ๋งํผ ๋ฐ๋ณตํด์ ์คํํฉ๋๋ค.",
"maze_command_while_desc": "๋ฏธ์
์ด ๋๋ ๋๊ฐ์ง ๊ดํธ<span class=\"textShadow\">{}</span> ์์ ์๋ ๋ช
๋ น์ ๊ณ์ ๋ฐ๋ณตํด์ ์คํํฉ๋๋ค.",
"maze_command_slow_desc": "์๋ ์ด๋ฏธ์ง์ ๊ฐ์ ๋ฐฉ์งํฑ์ ๋์ต๋๋ค.</br><div class=\"hump\"></div>",
"maze_command_if1_desc": "์กฐ๊ฑด <span class=\"textShadow\">`๋ฐ๋ก ์์ ๋ฒฝ์ด ์์๋`</span>์ด ๋ฐ์ํ์ ๋,</br>๊ดํธ<span class=\"textShadow\">{}</span> ์์ ์๋ ๋ช
๋ น์ ์คํํฉ๋๋ค.",
"maze_command_if2_desc": "์กฐ๊ฑด <span class=\"textShadow\">`๋ฐ๋ก ์์ ๋ฒ์ง์ด ์์๋`</span>์ด ๋ฐ์ํ์ ๋,</br>๊ดํธ<span class=\"textShadow\">{}</span> ์์ ์๋ ๋ช
๋ น์ ์คํํฉ๋๋ค.",
"maze_command_if3_desc": "์กฐ๊ฑด <span class=\"textShadow\">`๋ฐ๋ก ์์ ๋ฐ๋๋๊ฐ ์์๋`</span>์ด ๋ฐ์ํ์ ๋,</br>๊ดํธ<span class=\"textShadow\">{}</span> ์์ ์๋ ๋ช
๋ น์ ์คํํฉ๋๋ค.",
"maze_command_promise_desc": "promise ๋ผ๋ <span class=\"textShadow\">ํจ์</span>๋ฅผ ๋ง๋ค๊ณ ์คํํ๋ฉด ๊ดํธ<span class=\"textShadow\">{}</span> ์์</br>์๋ ๋ช
๋ น์ด๊ฐ ์คํํฉ๋๋ค.",
"perfect": "์์ฃผ ์๋ฒฝํด! ",
"succeeded_using_blocks": " ๊ฐ์ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ฑ๊ณตํ์ด!",
"succeeded_using_commands": " ๊ฐ์ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด์ ์ฑ๊ณตํ์ด!",
"awesome": "๋๋จํ ๊ฑธ!",
"succeeded_go_to_next": "๊ฐ์ ๋ธ๋ก๋ง์ผ๋ก ์ฑ๊ณตํ์ด! <br> ๋ค์ ๋จ๊ณ๋ก ๋์ด๊ฐ์.",
"good": "์ข์! ",
"but": "<br> ํ์ง๋ง, ",
"try_again": " ๊ฐ์ ๋ธ๋ก๋ง์ผ๋ก ์ฑ๊ณตํ๋ ๋ฐฉ๋ฒ๋ ์์ด. <br> ๋ค์ ๋์ ํด ๋ณด๋๊ฑด ์ด๋?",
"try_again_commands": " ๊ฐ์ ๋ช
๋ ์ด๋ง์ผ๋ก ์ฑ๊ณตํ๋ ๋ฐฉ๋ฒ๋ ์์ด. <br> ๋ค์ ๋์ ํด ๋ณด๋๊ฑด ์ด๋?",
"cfest_success": "๋๋จํ๊ฑธ! ๋๋ถ์ ์น๊ตฌ๋ค์ ๊ตฌํ ์ ์์์ด! <br> ์๋ง๋ ๋๋ ํ๊ณ ๋ ํ๋ก๊ทธ๋๋จธ ์ธ๊ฐ๋ด! <br> ๋์ค์ ๋ ๋ง๋์~!",
"succeeded_and_cert": "๊ฐ์ ๋ธ๋ก๋ง์ผ๋ก ์ฑ๊ณตํ์ด! <br>์ธ์ฆ์๋ฅผ ๋ฐ์ผ๋ฌ ๊ฐ์.",
"cause_msgs_1": "์๊ตฌ, ์์ผ๋ก ๊ฐ ์ ์๋ ๊ณณ์ด์์ด. ๋ค์ ํด๋ณด์.",
"cause_msgs_2": "ํ์. ๊ทธ๋ฅ ๊ธธ์์๋ ๋ฐ์ด ๋์ ๊ณณ์ด ์์ด. ๋ค์ ํด๋ณด์.",
"cause_msgs_3": "์๊ณ ๊ณ , ์ํ๋ผ. ๋ฐ์ด ๋์์ด์ผ ํ๋ ๊ณณ์ด์์ด. ๋ค์ ํด๋ณด์.",
"cause_msgs_4": "์์ฝ์ง๋ง, ์ด๋ฒ ๋จ๊ณ์์๋ ๊ผญ ์๋ ๋ธ๋ก์ ์จ์ผ๋ง ํด. <br> ๋ค์ ํด๋ณผ๋?",
"cause_msgs_5": "์ด๋ฐ, ์คํํ ๋ธ๋ก๋ค์ด ๋ค ๋จ์ด์ก์ด. ๋ค์ ํด๋ณด์.",
"cause_msgs_6": "์ด๋ฐ, ์คํํ ๋ช
๋ น์ด๋ค์ด ๋ค ๋จ์ด์ก์ด. ๋ค์ ํด๋ณด์.",
"close_experience": "์ฒดํ<br>์ข
๋ฃ",
"replay": "๋ค์ํ๊ธฐ",
"go_to_next_level": "๋ค์๋จ๊ณ ๊ฐ๊ธฐ",
"move_forward": "์์ผ๋ก ํ ์นธ ์ด๋",
"turn_left": "์ผ์ชฝ",
"turn_right": "์ค๋ฅธ์ชฝ",
"turn_en": "",
"turn_ko": "์ผ๋ก ํ์ ",
"jump_over": "๋ฐ์ด๋๊ธฐ",
"when_start_is_pressed": "์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋",
"repeat_until_ko": "๋ง๋ ๋ ๊น์ง ๋ฐ๋ณต",
"repeat_until_en": "",
"repeat_until": "๋ง๋ ๋ ๊น์ง ๋ฐ๋ณต",
"if_there_is_1": "๋ง์ฝ ์์ ",
"if_there_is_2": "์๋ค๋ฉด",
"used_blocks": "์ฌ์ฉ ๋ธ๋ก",
"maximum": "๋ชฉํ ๋ธ๋ก",
"used_command": "์ฌ์ฉ ๋ช
๋ น์ด ๊ฐฏ์",
"maximum_command": "๋ชฉํ ๋ช
๋ น์ด ๊ฐฏ์",
"block_box": "๋ธ๋ก ๊พธ๋ฌ๋ฏธ",
"block_assembly": "๋ธ๋ก ์กฐ๋ฆฝ์",
"command_box": "๋ช
๋ น์ด ๊พธ๋ฌ๋ฏธ",
"command_assembly": "๋ช
๋ น์ด ์กฐ๋ฆฝ์",
"start": "์์ํ๊ธฐ",
"engine_running": "์คํ์ค",
"engine_replay": "๋์๊ฐ๊ธฐ",
"goto_show": "๋ณด๋ฌ๊ฐ๊ธฐ",
"make_together": "ํจ๊ป ๋ง๋๋ ์ํธ๋ฆฌ",
"make_together_content": "์ํธ๋ฆฌ๋ ํ๊ต์ ๊ณ์ ์ ์๋๋ค๊ณผ ํ์ ์น๊ตฌ๋ค์ด ํจ๊ป ๊ณ ๋ฏผํ๋ฉฐ ๋ง๋ค์ด๊ฐ๋๋ค.",
"project_nobody_like": "์ด ์ํ์ด ๋ง์์ ๋ ๋ค๋ฉด '์ข์์'๋ฅผ ๋๋ฌ ์ฃผ์ธ์.",
"project_nobody_interest": "'๊ด์ฌ ์ํ'์ ๋๋ฅด๋ฉด ๋ง์ด ํ์ด์ง์์ ๋ณผ ์ ์์ด์.",
"lecture_nobody_like": "์ด ๊ฐ์๊ฐ ๋ง์์ ๋ ๋ค๋ฉด '์ข์์'๋ฅผ ๋๋ฌ ์ฃผ์ธ์.",
"lecture_nobody_interest": "'๊ด์ฌ ๊ฐ์'์ ๋๋ฅด๋ฉด ๋ง์ด ํ์ด์ง์์ ๋ณผ ์ ์์ด์.",
"course_nobody_like": "์ด ๊ฐ์ ๋ชจ์์ด ๋ง์์ ๋ ๋ค๋ฉด '์ข์์'๋ฅผ ๋๋ฌ ์ฃผ์ธ์.",
"course_nobody_interest": "'๊ด์ฌ ๊ฐ์ ๋ชจ์'์ ๋๋ฅด๋ฉด ๋ง์ด ํ์ด์ง์์ ๋ณผ ์ ์์ด์.",
"before_changed": "๋ณ๊ฒฝ์ ",
"after_changed": "๋ณ๊ฒฝํ",
"from_changed": "( 2016๋
04์ 17์ผ ๋ถํฐ ) ",
"essential": "ํ์",
"access_term_title": "์๋
ํ์ธ์. ์ํธ๋ฆฌ ๊ต์ก์ฐ๊ตฌ์ ์
๋๋ค.?<br> ์ํธ๋ฆฌ๋ฅผ ์ฌ๋ํด์ฃผ์๋ ์ฌ๋ฌ๋ถ๊ป ๊ฐ์ฌ๋๋ฆฌ๋ฉฐ,? <br> ์ํธ๋ฆฌ ๊ต์ก์ฐ๊ตฌ์ ์น์ฌ์ดํธ ์ด์ฉ์ฝ๊ด์ด<br> 2016๋
4์ 17์ผ ๋ถ๋ก ๋ค์๊ณผ ๊ฐ์ด ๊ฐ์ ๋จ์ ์๋ ค๋๋ฆฝ๋๋ค. ",
"member_info": "ํ์ ์๋ด",
"personal_info": "๊ฐ์ธ์ ๋ณด ์์ง ๋ฐ ์ด์ฉ์ ๋์ ํฉ๋๋ค.",
"option": "์ ํ",
"latest_news": "์ต๊ทผ์์",
"edu_data": "๊ต์ก์๋ฃ",
"training_program": "์ฐ์์ง์",
"footer_phrase": "์ํธ๋ฆฌ๋ ๋๊ตฌ๋ ๋ฌด๋ฃ๋ก ์ํํธ์จ์ด ๊ต์ก์ ๋ฐ์ ์ ์๊ฒ ๊ฐ๋ฐ๋ ๋น์๋ฆฌ ๊ต์ก ํ๋ซํผ์
๋๋ค.",
"footer_use_free": "๋ชจ๋ ์ํธ๋ฆฌ๊ต์ก์ฐ๊ตฌ์์ ์ ์๋ฌผ์ ๊ต์ก์ ๋ชฉ์ ์ ํํ์ฌ ์ถ์ฒ๋ฅผ ๋ฐํ๊ณ ์์ ๋กญ๊ฒ ์ด์ฉํ ์ ์์ต๋๋ค.",
"nonprofit_platform": "๋น์๋ฆฌ ๊ต์ก ํ๋ซํผ",
"this_is": "์
๋๋ค.",
"privacy": "๊ฐ์ธ์ ๋ณด ์ฒ๋ฆฌ๋ฐฉ์นจ",
"entry_addr": "์ฃผ์ : ์์ธํน๋ณ์ ๊ฐ๋จ๊ตฌ ๊ฐ๋จ๋๋ก 382 ๋ฉ๋ฆฌ์ธ ํ์ 7์ธต ์ํธ๋ฆฌ ๊ต์ก์ฐ๊ตฌ์",
"phone": "์ ํ๋ฒํธ",
"alert_agree_term": "์ด์ฉ์ฝ๊ด์ ๋์ํ์ฌ ์ฃผ์ธ์.",
"alert_private_policy": "๊ฐ์ธ์ ๋ณด ์์ง ์ฝ๊ด์ ๋์ํ์ฌ ์ฃผ์ธ์.",
"agree": "๋์",
"optional": "์ ํ",
"start_software": "์ํํธ์จ์ด ๊ต์ก์ ์ฒซ๊ฑธ์",
"analyze_procedure": "์ ์ฐจ",
"analyze_repeat": "๋ฐ๋ณต",
"analyze_condition": "๋ถ๊ธฐ",
"analyze_interaction": "์ํธ์์ฉ",
"analyze_dataRepresentation": "๋ฐ์ดํฐ ํํ",
"analyze_abstraction": "์ถ์ํ",
"analyze_sync": "๋ณ๋ ฌ ๋ฐ ๋๊ธฐํ",
"jr_intro_1": "์๋
! ๋ ์ฅฌ๋๋ผ๊ณ ํด! ๋ด ์น๊ตฌ ์ํธ๋ฆฌ๋ด์ด ์ค๋ฅธ์ชฝ์ ์์ด! ๋ ์น๊ตฌ์๊ฒ ๋ฐ๋ ค๋ค ์ค!",
"jr_intro_2": "์ํธ๋ฆฌ๋ด์ด ๋ด ์ผ์ชฝ์ ์์ด! ์ผ์ชฝ์ผ๋ก ๊ฐ๋ณด์.",
"jr_intro_3": "์ํธ๋ฆฌ๋ด์ด ์์ชฝ์ ์์ด! ์น๊ตฌ๋ฅผ ๋ง๋ ์ ์๋๋ก ๋์์ค!",
"jr_intro_4": "์ด์ ์ํธ๋ฆฌ๋ด์ ๋ง๋๋ฌ ๊ฐ์! ์๋์ชฝ์ผ๋ก ๊ฐ๋ณด๋๊ฑฐ์ผ~ ",
"jr_intro_5": "์ฐ์! ๋ด ์น๊ตฌ๊ฐ ๋ฉ๋ฆฌ ๋จ์ด์ ธ์์ด. ์ํธ๋ฆฌ๋ด์ด ์๋ ๊ณณ๊น์ง ์๋ดํด์ค๋? ",
"jr_intro_6": "์ ๊ธฐ ์ํธ๋ฆฌ๋ด์ด ์์ด~ ์ผ๋ฅธ ๋ง๋๋ฌ ๊ฐ๋ณด์.",
"jr_intro_7": "์์ ๊ฝ์ด ์๋ค. ๊ฝ๋ค์ ๋ชจ์ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ๋ณด์!",
"jr_intro_8": "๊ฐ๋ ๊ธธ์ ๊ฝ์ด ์์ด! ๊ฝ์ ๋ชจ์ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ๋ณด์!",
"jr_intro_9": "์ํธ๋ฆฌ๋ด์ด ๋ฉ๋ฆฌ ๋จ์ด์ ธ ์๋ค? ๊ฐ์ฅ ๋น ๋ฅธ ๊ธธ๋ก ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ๋ณด์.",
"jr_intro_10": "์ํธ๋ฆฌ๋ด์ ๋ง๋๋ฌ ๊ฐ๋ ๊ธธ์ ๊ฝ์ ๋ชจ๋ ๋ชจ์์ ๊ฐ๋ณด์.",
"jr_intro_11": "์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ๋ ค๋ฉด ์ค๋ฅธ์ชฝ์ผ๋ก ๋ค์ฏ๋ฒ์ด๋ ๊ฐ์ผ ํ์์? ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ข ๋ ์ฝ๊ฒ ๊ฐ ๋ณด์.",
"jr_intro_12": "๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ฌ์ฉํด์ ์ํธ๋ฆฌ๋ด์ ๋ง๋๋ฌ ๊ฐ์.",
"jr_intro_13": "์ง๊ธ ๋ธ๋ก์ผ๋ก๋ ์น๊ตฌ์๊ฒ ๊ฐ ์๊ฐ ์์ด. ๋ฐ๋ณต ํ์๋ฅผ ๋ฐ๊ฟ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ์ ์๊ฒ ํด์ค.",
"jr_intro_14": "๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ์ฌ ์ํธ๋ฆฌ๋ด์๊ฒ ๋ฐ๋ ค๋ค ์ค.",
"jr_intro_15": "์ํธ๋ฆฌ๋ด์ด ์ ~๋ง ๋ฉ๋ฆฌ ์์์? ๊ทธ๋๋ ๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์ฝ๊ฒ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ์ ์์ ๊ฑฐ์ผ.",
"jr_whats_ur_name": "๋ด๊ฐ ๋ฐ์ ์ธ์ฆ์์ ์ ํ ์ด๋ฆ์?",
"jr_down_cert": "์ธ์ฆ์ ๋ฐ๊ธฐ",
"jr_popup_prefix_1": "์ข์! ์ํธ๋ฆฌ๋ด์ ๋ง๋ฌ์ด!",
"jr_popup_prefix_2": "์ฐ์! ์ํธ๋ฆฌ๋ด์ ๋ง๋ฌ์ด! <br> ํ์ง๋ง ์ํธ๋ฆฌ๋ด์ ๋ง๋๊ธฐ์๋ ๋ ์ ์ ๋ธ๋ก์ ์ฌ์ฉํด์๋ <br> ๋ง๋ ์ ์๋๋ฐ ๋ค์ ํด๋ณผ๋? ",
"jr_popup_prefix_3": "์ข์! ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ฒผ์ด!",
"jr_popup_prefix_4": "์ฐ์! ์ฑ
๊ฐ๋ฐฉ์ด ์๋ ๊ณณ์ผ๋ก ์์ด! ํ์ง๋ง ๋ ์ ์ ๋ธ๋ก์ ์ฌ์ฉํด๋ ์ฑ
๊ฐ๋ฐฉ ์ชฝ์ผ๋ก ๊ฐ ์ ์๋๋ฐ ๋ค์ ํด๋ณผ๋?",
"jr_popup_suffix_1": "๊ณ ๋ง์~ ๋๋ถ์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ฒจ์ ํ๊ต์ ์ฌ ์ ์์์ด~ ๋ค์ ํ๊ต ๊ฐ๋ ๊ธธ๋ ํจ๊ป ๊ฐ์~",
"jr_popup_suffix": "๊ณ ๋ง์~ ๋๋ถ์ ์ํธ๋ฆฌ๋ด์ด๋ ์ฌ๋ฐ๊ฒ ๋ ์ ์์์ด~ <br>๋ค์์ ๋ ์ํธ๋ฆฌ๋ด์ด๋ ๋์~",
"jr_fail_dont_go": "์๊ถ, ๊ทธ ๊ณณ์ผ๋ก๋ ๊ฐ ์ ์์ด. ๊ฐ์ผํ๋ ๊ธธ์ ๋ค์ ์๋ ค์ค~",
"jr_fail_dont_know": "์ด? ์ด์ ์ด๋๋ก ๊ฐ์ง? ์ด๋๋ก ๊ฐ์ผํ๋ ์ง ๋ ์๋ ค์ค~",
"jr_fail_no_flower": "์ด๋ฐ ๊ทธ๊ณณ์๋ ๊ฝ์ด ์์ด. ๊ฝ์ด ์๋ ๊ณณ์์ ์ฌ์ฉํด๋ณด์~",
"jr_fail_forgot_flower": "์! ์ํธ๋ฆฌ๋ดํํ
์ค ๊ฝ์ ๊น๋นกํ์ด. ๊ฝ์ ๋ชจ์์ ๊ฐ์~",
"jr_fail_need_repeat": "๋ฐ๋ณต ๋ธ๋ก์ด ์์์! ๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํด์ ํด๋ณด์~",
"jr_hint_1": "์๋
! ๋ ์ฅฌ๋๋ผ๊ณ ํด! ๋ด ์น๊ตฌ ์ํธ๋ฆฌ๋ด์ด ์ค๋ฅธ์ชฝ์ ์์ด! ๋ ์น๊ตฌ์๊ฒ ๋ฐ๋ ค๋ค ์ค!",
"jr_hint_2": "์ํธ๋ฆฌ๋ด์ด ๋ด ์ผ์ชฝ์ ์์ด! ์ผ์ชฝ์ผ๋ก ๊ฐ๋ณด์.",
"jr_hint_3": "์ํธ๋ฆฌ๋ด์ด ์์ชฝ์ ์์ด! ์น๊ตฌ๋ฅผ ๋ง๋ ์ ์๋๋ก ๋์์ค!",
"jr_hint_4": "์ด์ ์ํธ๋ฆฌ๋ด์ ๋ง๋๋ฌ ๊ฐ์! ์๋์ชฝ์ผ๋ก ๊ฐ๋ณด๋๊ฑฐ์ผ~",
"jr_hint_5": "์ฐ์! ๋ด ์น๊ตฌ๊ฐ ๋ฉ๋ฆฌ ๋จ์ด์ ธ์์ด. ์ํธ๋ฆฌ๋ด์ด ์๋ ๊ณณ๊น์ง ์๋ดํด์ค๋?",
"jr_hint_6": "์๋ชป๋ ๋ธ๋ก๋ค ๋๋ฌธ์ ์น๊ตฌ์๊ฒ ๊ฐ์ง ๋ชปํ๊ณ ์์ด, ์๋ชป๋ ๋ธ๋ก์ ์ง์ฐ๊ณ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ์ ์๋๋ก ํด์ค!",
"jr_hint_7": "์์ ๊ฝ์ด ์๋ค. ๊ฝ๋ค์ ๋ชจ์ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ๋ณด์!",
"jr_hint_8": "๊ฐ๋ ๊ธธ์ ๊ฝ์ด ์์ด! ๊ฝ์ ๋ชจ์ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ๋ณด์!",
"jr_hint_9": "์ํธ๋ฆฌ๋ด์ด ๋ฉ๋ฆฌ ๋จ์ด์ ธ ์๋ค? ๊ฐ์ฅ ๋น ๋ฅธ ๊ธธ๋ก ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ๋ณด์.",
"jr_hint_10": "์, ๋ธ๋ก์ ์๋ชป ์กฐ๋ฆฝํด์ ์ ๋๋ก ๊ฐ ์๊ฐ ์์ด. ๊ฐ๋ ๊ธธ์ ๊ฝ์ ๋ชจ๋ ๋ชจ์ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ์ ธ๋ค ์ค ์ ์๋๋ก ๊ณ ์ณ ๋ณด์.",
"jr_hint_11": "์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ๋ ค๋ฉด ์ค๋ฅธ์ชฝ์ผ๋ก ๋ค์ฏ๋ฒ์ด๋ ๊ฐ์ผ ํ์์? ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ข ๋ ์ฝ๊ฒ ๊ฐ ๋ณด์.",
"jr_hint_12": "๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ฌ์ฉํด์ ์ํธ๋ฆฌ๋ด์ ๋ง๋๋ฌ ๊ฐ์.",
"jr_hint_13": "์ง๊ธ ๋ธ๋ก์ผ๋ก๋ ์น๊ตฌ์๊ฒ ๊ฐ ์๊ฐ ์์ด. ๋ฐ๋ณต ํ์๋ฅผ ๋ฐ๊ฟ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ์ ์๊ฒ ํด์ค.",
"jr_hint_14": "๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ์ฌ ์ํธ๋ฆฌ๋ด์๊ฒ ๋ฐ๋ ค๋ค ์ค.",
"jr_hint_15": "์ํธ๋ฆฌ๋ด์ด ์ ~๋ง ๋ฉ๋ฆฌ ์์์? ๊ทธ๋๋ ๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์ฝ๊ฒ ์ํธ๋ฆฌ๋ด์๊ฒ ๊ฐ ์ ์์ ๊ฑฐ์ผ.",
"jr_certification": "์ธ์ฆ์",
"jr_congrat": "์ถํ๋๋ฆฝ๋๋ค!",
"jr_congrat_msg": "๋ฌธ์ ํด๊ฒฐ ๊ณผ์ ์ ์ฑ๊ณต์ ์ผ๋ก ๋ง์ณค์ต๋๋ค.",
"jr_share": "๊ณต์ ",
"go_see_friends": "์น๊ตฌ๋ค ๋ง๋๋ฌ ๊ฐ์~!",
"junior_naver": "์ฅฌ๋์ด ๋ค์ด๋ฒ",
"junior_naver_contents_1": "์ ๋ฉ์ง ๊ณฐ '์ฅฌ๋'๊ฐ ์ํธ๋ฆฌ๋ฅผ ์ฐพ์ ์์ด์! ",
"junior_naver_contents_2": "๊ทธ๋ฐ๋ฐ ์ฅฌ๋๋ ๊ธธ์ ์ฐพ๋ ๊ฒ์ด ์์ง ์ด๋ ต๋๋ด์.",
"junior_naver_contents_3": "์ฅฌ๋๊ฐ ์ํธ๋ฆฌ๋ด์ ๋ง๋ ์ ์๋๋ก ๊ฐ์ผํ๋ ๋ฐฉํฅ์ ์๋ ค์ฃผ์ธ์~",
"basic_content": "๊ธฐ์ด",
"jr_help": "๋์๋ง",
"help": "๋์๋ง",
"cparty_robot_intro_1": "์๋
๋๋ ์ํธ๋ฆฌ๋ด์ด์ผ. ๋ ๋ถํ์ ์ป์ด์ ๋ด๋ชธ์ ๊ณ ์ณ์ผํด. ์์ผ๋ก ๊ฐ๊ธฐ ๋ธ๋ก์ผ๋ก ๋ถํ์ ์ป๊ฒ ๋์์ค!",
"cparty_robot_intro_2": "์ข์! ์์๋ ๋ถํ์ด ์๋๋ฐ ์ด๋ฒ์๋ ์๋ชป ๊ฐ๋ค๊ฐ ๊ฐ์ ๋๊ธฐ ์ฌ์ธ ๊ฒ ๊ฐ์. ๋ฐ์ด๋๊ธฐ ๋ธ๋ก์ ์จ์ ๋ถํ๊น์ง ๋ฐ๋ ค๋ค ์ค.",
"cparty_robot_intro_3": "๋ฉ์ง๊ฑธ! ์ ๊ธฐ์๋ ๋ถํ์ด ์์ด! ๊ธธ์ด ์กฐ๊ธ ๊ผฌ์ฌ์์ง๋ง ํ์ ํ๊ธฐ ๋ธ๋ก์ ์ฐ๋ฉด ์ถฉ๋ถํ ๊ฐ ์ ์์ ๊ฒ ๊ฐ์! ",
"cparty_robot_intro_4": "์ข์ ์ด์ ์์ง์ด๋ ๊ฑด ๋ง์ด ํธํด์ก์ด! ์ด๋ฒ์๋ ํ์ ๊ณผ ๋ฐ์ด๋๊ธฐ๋ฅผ ๊ฐ์ด ์จ์ ์ ๋ถํ์ ์ป์ด๋ณด์! ",
"cparty_robot_intro_5": "๋๋ถ์ ๋ชธ์ด ์์ฃผ ์ข์์ก์ด! ์ด๋ฒ์๋ ํ์ ๊ณผ ๋ฐ์ด๋๊ธฐ๋ฅผ ๊ฐ์ด ์จ์ผ ํ ๊ฑฐ์ผ! ์ด์ ๊ฐ๋ณด์!",
"cparty_robot_intro_6": "๋ฉ์ ธ! ์ด์ ๋ชธ์ด ๋ง์ด ์ข์์ ธ์, ๋๊ฐ์ ์ผ์ ์ฌ๋ฌ ๋ฒ ํด๋ ๊ด์ฐฎ์ ๊ฑฐ์ผ! ํ ๋ฒ ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ฌ์ฉํด์ ๊ฐ๋ณด์!",
"cparty_robot_intro_7": "์ด? ์ค๊ฐ์ค๊ฐ์ ๋ฐ์ด๋์ด์ผ ํ ๊ณณ์ด ์์ด! ๊ทธ๋๋ ๋ฐ๋ณตํ๊ธฐ๋ก ์ถฉ๋ถํ ๊ฐ ์ ์์ ๊ฑฐ์ผ!",
"cparty_robot_intro_8": "์ด๋ฐ! ์ด๋ฒ์๋ ๋ถํ์ด ์ ๊ธฐ ๋ฉ๋ฆฌ ๋จ์ด์ ธ ์์ด. ๊ทธ๋๋ ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ฌ์ฉํ๋ฉด ์ฝ๊ฒ ๊ฐ์ ์์ง! ์ผ๋ฅธ ๋์์ค!",
"cparty_robot_intro_9": "์ฐ์~ ์ด์ ๋ด ๋ชธ์ด ๊ฑฐ์ ๋ค ๊ณ ์ณ์ง ๊ฒ ๊ฐ์! ์ด๋ฒ์๋ ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ด์ฉํด์ ๋ถํ์ ๊ตฌํ๋ฌ ๊ฐ๋ณด์!",
"cparty_robot_intro_10": "๋๋จํด! ์ด์ ๋ง์ง๋ง ๋ถํ๋ง ์์ผ๋ฉด ๋ด ๋ชธ์ ์๋ฒฝํ๊ฒ ๊ณ ์น ์ ์์ ๊ฑฐ์ผ! ๋นจ๋ฆฌ ๋ฐ๋ณตํ๊ธฐ๋ก ๋์์ค!",
"cparty_car_intro_1": "์๋
! ๋๋ ์ํธ๋ฆฌ๋ด์ด๋ผ๊ณ ํด, ์๋์ฐจ๋ฅผ ํ๊ณ ๊ณ์ ์ด๋ํ๋ ค๋ฉด ์ฐ๋ฃ๊ฐ ํ์ํด! ์์ ์๋ ์ฐ๋ฃ๋ฅผ ์ป์ ์ ์๊ฒ ๋์์ค๋?",
"cparty_car_intro_2": "์ข์! ๊ทธ๋ฐ๋ฐ ์ด๋ฒ์๋ ๊ธธ์ด ์ง์ ์ด ์๋๋ค! ์ผ์ชฝ/์ค๋ฅธ์ชฝ ๋๊ธฐ ๋ธ๋ก์ผ๋ก ์ ์ด์ ํด์ ํจ๊ป ์ฐ๋ฃ๋ฅผ ์ป์ผ๋ฌ ๊ฐ๋ณผ๊น?",
"cparty_car_intro_3": "์ํ์ด! ์ด๋ฒ ๊ธธ ์์๋ ๊ณผ์๋ฐฉ์งํฑ์ด ์์ด. ๋น ๋ฅด๊ฒ ์ด์ ํ๋ฉด ์ฌ๊ณ ๊ฐ ๋ ์๋ ์์ ๊ฒ ๊ฐ์, ์ฒ์ฒํ ๊ฐ๊ธฐ ๋ธ๋ก์ ์จ์ ์ฐ๋ฃ๋ฅผ ์ป์ผ๋ฌ ๊ฐ๋ณด์!",
"cparty_car_intro_4": "์ผํธ, ์ด์ ์ด์ ์ด ํ๊ฒฐ ํธํด์ก์ด! ์ด ๋๋ก์์๋ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ฐ๋ฃ๋ฅผ ์ฑ์ฐ๋ฌ ๊ฐ๋ณผ๊น?",
"cparty_car_intro_5": "์ ์ด๋ฒ ๋๋ก๋ ์กฐ๊ธ ๋ณต์กํด ๋ณด์ด์ง๋ง, ์์ผ๋ก ๊ฐ๊ธฐ์ ์ผ์ชฝ/์ค๋ฅธ์ชฝ ๋๊ธฐ ๋ธ๋ก์ ๋ฐ๋ณตํ๋ฉด์ ๊ฐ๋ณด๋ฉด ๋ผ! ์ฐจ๋ถํ๊ฒ ์ฐ๋ฃ๊น์ง ๊ฐ๋ณด์",
"cparty_car_intro_6": "์ด๋ฒ์๋ ๋๋ก์ ์ฅ์ ๋ฌผ์ด ์์ด์ ์ ๋์๊ฐ์ผ ๋ ๊ฒ ๊ฐ์, ๋ง์ฝ์ ์ฅ์ ๋ฌผ์ด ์์ ์๋ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์ง ์๋ ค์ค!",
"cparty_car_intro_7": "์ข์ ์ํ์ด! ํ๋ฒ ๋ ๋ง์ฝ์ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ฅ์ ๋ฌผ์ ํผํด ์ฐ๋ฃ๋ฅผ ์ป์ผ๋ฌ ๊ฐ๋ณด์!",
"cparty_car_intro_8": "์ ์๊น ๋ง๋ฌ๋ ๊ณผ์ ๋ฐฉ์งํฑ์ด ๋ ๊ฐ๋ ์๋ค, ์ฒ์ฒํ ๊ฐ๊ธฐ ๋ธ๋ก์ ์ด์ฉํด์ ์์ ํ๊ฒ ์ฐ๋ฃ๋ฅผ ์ฑ์ฐ๋ฌ ๊ฐ๋ณด์!",
"cparty_car_intro_9": "๋ณต์กํด ๋ณด์ด๋ ๊ธธ์ด์ง๋ง, ์์์ ์ฌ์ฉํ ๋ฐ๋ณต ๋ธ๋ก๊ณผ ๋ง์ฝ์ ๋ธ๋ก์ ์ ์ด์ฉํ๋ฉด ์ถฉ๋ถํ ์ด์ ํ ์ ์์ด, ์ฐ๋ฃ๋ฅผ ์ฑ์ธ ์ ์๋๋ก ๋์์ค!",
"cparty_car_intro_10": "์ ๋ง ๋ฉ์ ธ! ๋ธ๋ก์ ์์๋ฅผ ์ ๋์ดํด์ ์ด์ ๋ง์ง๋ง ๋จ์ ์ฐ๋ฃ๋ฅผ ํฅํด ํ์ ๋ด์ด ๊ฐ๋ณด์!",
"cparty_car_popup_prefix_1": "์ข์! ์ฐ๋ฃ๋ฅผ ์ป์์ด!",
"cparty_car_popup_prefix_2": "์ฐ์! ์ฐ๋ฃ๋ฅผ ์ป์์ด! <br> ํ์ง๋ง ์ฐ๋ฃ๋ฅผ ์ป๊ธฐ์๋ ๋ ์ ์ ๋ธ๋ก์ ์ฌ์ฉํด์๋ <br> ์ป์ ์ ์๋๋ฐ ๋ค์ ํด๋ณผ๋? ",
"cparty_car_popup_prefix_2_text": "์ฐ์! ์ฐ๋ฃ๋ฅผ ์ป์์ด! <br> ํ์ง๋ง ์ฐ๋ฃ๋ฅผ ์ป๊ธฐ์๋ ๋ ์ ์ ๋ช
๋ น์ด ์ฌ์ฉํด์๋ <br> ์ป์ ์ ์๋๋ฐ ๋ค์ ํด๋ณผ๋? ",
"cparty_car_popup_suffix": "๊ณ ๋ง์~ ๋๋ถ์ ๋ชจ๋ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ป์ ์ ์์์ด~ <br>๋ค์์ ๋ ๋๋ ๋์~",
"all_grade": "๋ชจ๋ ํ๋
",
"grade_e3_e4": "์ด๋ฑ 3 ~ 4 ํ๋
์ด์",
"grade_e5_e6": "์ด๋ฑ 5 ~ 6 ํ๋
์ด์",
"grade_m1_m3": "์ค๋ฑ 1 ~ 3 ํ๋
์ด์",
"entry_first_step": "์ํธ๋ฆฌ ์ฒซ๊ฑธ์",
"entry_monthly": "์๊ฐ ์ํธ๋ฆฌ",
"play_sw_2": "EBS ์ํํธ์จ์ด์ผ ๋์2",
"entry_programming": "์ค์ , ํ๋ก๊ทธ๋๋ฐ!",
"entry_recommanded_course": "์ํธ๋ฆฌ ์ถ์ฒ ์ฝ์ค",
"introduce_course": "๋๊ตฌ๋ ์ฝ๊ฒ ๋ณด๊ณ ๋ฐ๋ผํ๋ฉด์ ์ฌ๋ฏธ์๊ณ ๋ค์ํ ์ํํธ์จ์ด๋ฅผ ๋ง๋ค ์ ์๋ ๊ฐ์ ์ฝ์ค๋ฅผ ์๊ฐํฉ๋๋ค.",
"all_free": "*๊ฐ์ ๋์์, ๋ง๋ค๊ธฐ, ๊ต์ฌ ๋ฑ์ด ๋ชจ๋ ๋ฌด๋ฃ๋ก ์ ๊ณต๋ฉ๋๋ค.",
"cparty_result_fail_1": "์๊ถ, ๊ทธ ๊ณณ์ผ๋ก๋ ๊ฐ ์ ์์ด. ๊ฐ์ผํ๋ ๊ธธ์ ๋ค์ ์๋ ค์ค~",
"cparty_result_fail_2": "์๊ณ ๊ณ , ์ํ๋ผ. ๋ฐ์ด ๋์์ด์ผ ํ๋ ๊ณณ์ด์์ด. ๋ค์ ํด๋ณด์.",
"cparty_result_fail_3": "์์ด๊ณ ํ๋ค๋ค. ์๋ ๋ธ๋ก๋ค์ ์ ์ผ๋๋ ๋๋ฌด ํ๋ค์ด! ์๋ ๋ธ๋ก๋ค๋ก ๋ค์ ๋ง๋ค์ด์ค.",
"cparty_result_fail_4": "์ด? ์ด์ ์ด๋๋ก ๊ฐ์ง? ์ด๋๋ก ๊ฐ์ผํ๋ ์ง ๋ ์๋ ค์ค~",
"cparty_result_fail_5": "์! ๊ณผ์๋ฐฉ์งํฑ์์๋ ์๋๋ฅผ ์ค์ฌ์ผํด. ์ฒ์ฒํ ๊ฐ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด๋ณด์~",
"cparty_result_success_1": "์ข์! ๋ถํ์ ์ป์์ด!",
"cparty_result_success_2": "์ฐ์! ๋ถํ์ ์ป์์ด! <br>ํ์ง๋ง ๋ถํ์ ์ป๊ธฐ์๋ ๋ ์ ์ ๋ธ๋ก์ ์ฌ์ฉํด์๋ ์ป์ ์ ์๋๋ฐ ๋ค์ ํด๋ณผ๋?",
"cparty_result_success_2_text": "์ฐ์! ๋ถํ์ ์ป์์ด! <br>ํ์ง๋ง ๋ถํ์ ์ป๊ธฐ์๋ ๋ ์ ์ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด์๋ ์ป์ ์ ์๋๋ฐ ๋ค์ ํด๋ณผ๋?",
"cparty_result_success_3": "๊ณ ๋ง์~ ๋๋ถ์ ๋ด๋ชธ์ด ๋ค ๊ณ ์ณ์ก์ด~ ๋ค์์ ๋ ๋๋ ๋์~",
"cparty_insert_name": "์ด๋ฆ์ ์
๋ ฅํ์ธ์.",
"offline_file": "ํ์ผ",
"offline_edit": "ํธ์ง",
"offline_undo": "๋๋๋ฆฌ๊ธฐ",
"offline_redo": "๋ค์์คํ",
"offline_quit": "์ข
๋ฃ",
"select_one": "์ ํํด ์ฃผ์ธ์.",
"evaluate_challenge": "๋์ ํด๋ณธ ๋ฏธ์
์ ๋์ด๋๋ฅผ ํ๊ฐํด ์ฃผ์ธ์.",
"very_easy": "๋งค์ฐ์ฌ์",
"easy": "์ฌ์",
"normal": "๋ณดํต",
"difficult": "์ด๋ ค์",
"very_difficult": "๋งค์ฐ ์ด๋ ค์",
"save_dismiss": "๋ฐ๊พผ ๋ด์ฉ์ ์ ์ฅํ์ง ์์์ต๋๋ค. ๊ณ์ ํ์๊ฒ ์ต๋๊น?",
"entry_info": "์ํธ๋ฆฌ ์ ๋ณด",
"actual_size": "์ค์ ํฌ๊ธฐ",
"zoom_in": "ํ๋",
"zoom_out": "์ถ์",
"cparty_jr_intro_1": "์๋
! ๋ ์ํธ๋ฆฌ๋ด ์ด๋ผ๊ณ ํด! ํ๊ต๊ฐ๋ ๊ธธ์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธธ ์ ์๋๋ก ๋์์ค! ",
"cparty_jr_intro_2": "์ฑ
๊ฐ๋ฐฉ์ด ๋ด ์ผ์ชฝ์ ์์ด! ์ผ์ชฝ์ผ๋ก ๊ฐ๋ณด์.",
"cparty_jr_intro_3": "์ฑ
๊ฐ๋ฐฉ์ด ์์ชฝ์ ์์ด! ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธธ ์ ์๋๋ก ๋์์ค!",
"cparty_jr_intro_4": "์ด์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ์! ์๋์ชฝ์ผ๋ก ๊ฐ๋ณด๋ ๊ฑฐ์ผ~",
"cparty_jr_intro_5": "์ฐ์! ๋ด ์ฑ
๊ฐ๋ฐฉ์ด ๋ฉ๋ฆฌ ๋จ์ด์ ธ ์์ด. ์ฑ
๊ฐ๋ฐฉ์ด ์๋ ๊ณณ๊น์ง ์๋ดํด์ค๋?",
"cparty_jr_intro_6": "์ฑ
๊ฐ๋ฐฉ์ด ์์ด! ์ผ๋ฅธ ๊ฐ์ง๋ฌ ๊ฐ์~",
"cparty_jr_intro_7": "๊ธธ ์์ ๋ด ์ฐํ์ด ์๋ค. ์ฐํ๋ค์ ๋ชจ์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ๋ณด์!",
"cparty_jr_intro_8": "ํ๊ต ๊ฐ๋ ๊ธธ์ ์ฐํ์ด ์์ด! ์ฐํ์ ๋ชจ์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ๋ณด์!",
"cparty_jr_intro_9": "๋ด ์ฑ
๊ฐ๋ฐฉ์ด ๋ฉ๋ฆฌ ๋จ์ด์ ธ ์๋ค? ๊ฐ์ฅ ๋น ๋ฅธ ๊ธธ๋ก ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ ๋ณด์.",
"cparty_jr_intro_10": "๊ฐ๋ ๊ธธ์ ์ฐํ์ ๋ชจ๋ ๋ชจ์ผ๊ณ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ์!",
"cparty_jr_intro_11": "์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ๋ ค๋ฉด ์ค๋ฅธ์ชฝ์ผ๋ก ๋ค์ฏ ๋ฒ์ด๋ ๊ฐ์ผ ํ์์? ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ข ๋ ์ฝ๊ฒ ๊ฐ ๋ณด์.",
"cparty_jr_intro_12": "๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ฌ์ฉํด์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ์.",
"cparty_jr_intro_13": "์ง๊ธ ๋ธ๋ก์ผ๋ก๋ ์ฑ
๊ฐ๋ฐฉ์ด ์๋ ์ชฝ์ผ๋ก ๊ฐ ์๊ฐ ์์ด. ๋ฐ๋ณต ํ์๋ฅผ ๋ฐ๊ฟ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ ์ ์๊ฒ ํด์ค.",
"cparty_jr_intro_14": "๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ์ฌ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ธฐ๋ฌ ๊ฐ์ค.",
"cparty_jr_intro_15": "ํ๊ต๊ฐ ์ ~๋ง ๋ฉ๋ฆฌ ์์์? ๊ทธ๋๋ ๋ฐ๋ณต ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์ฝ๊ฒ ํ๊ต์ ๋์ฐฉ ํ ์ ์์ ๊ฑฐ์ผ.",
"make_new_project": "์๋ก์ด ์ํ ๋ง๋ค๊ธฐ",
"open_old_project": "์ ์ฅ๋ ์ํ ๋ถ๋ฌ์ค๊ธฐ",
"offline_download": "์ํธ๋ฆฌ ๋ค์ด๋ก๋",
"offline_release": "์ํธ๋ฆฌ ์คํ๋ผ์ธ ์๋ํฐ ์ถ์!",
"offline_description_1": "์ํธ๋ฆฌ ์คํ๋ผ์ธ ๋ฒ์ ์",
"offline_description_2": "์ธํฐ๋ท์ด ์ฐ๊ฒฐ๋์ด ์์ง ์์๋ ์ฌ์ฉํ ์ ์์ต๋๋ค. ",
"offline_description_3": "์ง๊ธ ๋ค์ด๋ฐ์์ ์์ํด๋ณด์ธ์!",
"sw_week_2015": "2015 ์ํํธ์จ์ด๊ต์ก ์ฒดํ ์ฃผ๊ฐ",
"cparty_desc": "๋๊ทผ๋๊ทผ ์ํํธ์จ์ด์์ ์ฒซ๋ง๋จ",
"entry_offline_download": "์ํธ๋ฆฌ ์คํ๋ผ์ธ \n๋ค์ด๋ก๋",
"offline_desc_1": "์ํธ๋ฆฌ ์คํ๋ผ์ธ ๋ฒ์ ์ ์ธํฐ๋ท์ด ์ฐ๊ฒฐ๋์ด ์์ง ์์๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.",
"offline_desc_2": "์ง๊ธ ๋ค์ด๋ฐ์์ ์์ํด๋ณด์ธ์!",
"download": "๋ค์ด๋ก๋",
"version": "๋ฒ์ ",
"file_size": "ํฌ๊ธฐ",
"update": "์
๋ฐ์ดํธ",
"use_range": "์ฌ์ฉ๋ฒ์",
"offline_desc_free": "์ํธ๋ฆฌ ์คํ๋ผ์ธ์ ๊ธฐ์
๊ณผ ๊ฐ์ธ ๋ชจ๋ ์ ํ ์์ด ๋ฌด๋ฃ๋ก ์ฌ์ฉํ์ค ์ ์์ต๋๋ค.",
"offline_required": "์ต์ ์๊ตฌ์ฌํญ",
"offline_required_detail": "๋์คํฌ ์ฌ์ ๊ณต๊ฐ 500MB ์ด์, windows7 ํน์ MAC OS 10.8 ์ด์",
"offline_notice": "์ค์น ์ ์ฐธ๊ณ ์ฌํญ",
"offline_notice_1": "1. ๋ฒ์ 1.3.4 ์์๋ ํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ์ด ๋ด์ฅ๋์ด ์์ต๋๋ค.",
"offline_notice_2": "2. ๋ณ๋์ ์น๋ธ๋ผ์ฐ์ ธ๊ฐ ํ์ํ์ง ์์ต๋๋ค.",
"offline_notice_3": "๋ฒ์ ๋ณ ๋ณ๊ฒฝ ์ฌํญ ์๋ด",
"cparty_jr_result_2": "๊ณ ๋ง์~ ๋๋ถ์ ์ฑ
๊ฐ๋ฐฉ์ ์ฑ๊ฒจ์ ํ๊ต์ ์ฌ ์ ์์์ด~ <br>๋ค์ ํ๊ต ๊ฐ๋ ๊ธธ๋ ํจ๊ป ๊ฐ์~ ",
"cparty_jr_result_3": "์ฐ์! ํ๊ต๊น์ง ์์ด! <br>ํ์ง๋ง ๋ ์ ์ ๋ธ๋ก์ ์ฌ์ฉํด๋ ํ๊ต์ ๊ฐ ์ ์๋๋ฐ<br> ๋ค์ ํด๋ณผ๋?",
"cparty_jr_result_4": "์ฐ์! ์ฑ
๊ฐ๋ฐฉ์ ์ป์์ด!<br> ํ์ง๋ง ๋ ์ ์ ๋ธ๋ก์ ์ฌ์ฉํด๋ ์ฑ
๊ฐ๋ฐฉ์ ์ป์ ์ ์๋๋ฐ <br>๋ค์ ํด๋ณผ๋? ",
"lms_no_class": "์์ง ๋ง๋ ํ๊ธ์ด ์์ต๋๋ค.",
"lms_create_class": "ํ๊ธ์ ๋ง๋ค์ด ์ฃผ์ธ์.",
"lms_add_class": "ํ๊ธ ๋ง๋ค๊ธฐ",
"lms_base_class": "๊ธฐ๋ณธ",
"lms_delete_class": "์ญ์ ",
"lms_my_class": "๋์ ํ๊ธ",
"lms_grade_1": "์ด๋ฑ 1",
"lms_grade_2": "์ด๋ฑ 2",
"lms_grade_3": "์ด๋ฑ 3",
"lms_grade_4": "์ด๋ฑ 4",
"lms_grade_5": "์ด๋ฑ 5",
"lms_grade_6": "์ด๋ฑ 6",
"lms_grade_7": "์ค๋ฑ 1",
"lms_grade_8": "์ค๋ฑ 2",
"lms_grade_9": "์ค๋ฑ 3",
"lms_grade_10": "์ผ๋ฐ",
"lms_add_groupId_personal": "์ ์๋๊ป ๋ฐ์ ํ๊ธ ์์ด๋๋ฅผ ์
๋ ฅํ์ฌ, ํ์ ์ ๋ณด์ ์ถ๊ฐํ์ธ์.",
"lms_add_groupId": "ํ๊ธ ์์ด๋ ์ถ๊ฐํ๊ธฐ",
"lms_add_group_account": "ํ๊ธ ๊ณ์ ์ถ๊ฐ",
"lms_enter_group_info": "๋ฐ๊ธ๋ฐ์ ํ๊ธ ์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํ์ธ์.",
"lms_group_id": "ํ๊ธ ์์ด๋",
"lms_group_pw": "๋น๋ฐ๋ฒํธ",
"lms_group_name": "์์ ํ๊ธ๋ช
",
"personal_pwd_alert": "์ฌ๋ฐ๋ฅธ ๋น๋ฐ๋ฒํธ ์์์ ์
๋ ฅํด ์ฃผ์ธ์",
"personal_form_alert": "์์์ ๋ฐ๋ฅด๊ฒ ์
๋ ฅํด ์ฃผ์ธ์",
"personal_form_alert_2": "๋ชจ๋ ์์์ ์์ฑํด ์ฃผ์ธ์",
"personal_no_pwd_alert": "๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์",
"select_gender": "์ฑ๋ณ์ ์ ํํด ์ฃผ์ธ์",
"enter_group_id": "ํ๊ธ ์์ด๋๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์",
"enter_group_pwd": "๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์",
"info_added": "์ถ๊ฐ๋์์ต๋๋ค",
"no_group_id": "ํ๊ธ ์์ด๋๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค",
"no_group_pwd": "๋น๋ฐ๋ฒํธ๊ฐ ์ผ์นํ์ง ์์ต๋๋ค",
"lms_please_choice": "์ ํํด ์ฃผ์ธ์.",
"group_lesson": "๋์ ํ๊ธ ๊ฐ์",
"lms_banner_add_group": "ํ๊ธ ๊ธฐ๋ฅ ๋์
",
"lms_banner_entry_group": "์ํธ๋ฆฌ ํ๊ธ ๋ง๋ค๊ธฐ",
"lms_banner_desc_1": "์ฐ๋ฆฌ ๋ฐ ํ์๋ค์ ์ํธ๋ฆฌ์ ๋ฑ๋กํ์ธ์!",
"lms_banner_desc_2": "์ด์ ๋ณด๋ค ํธ๋ฆฌํ๊ณ ์ฝ๊ฒ ์ฐ๋ฆฌ ๋ฐ ํ์๋ค์ ์ํ์ ์ฐพ๊ณ ,",
"lms_banner_desc_3": "์ฑ์ฅํ๋ ๋ชจ์ต์ ํ์ธํ ์ ์์ต๋๋ค. ",
"lms_banner_download_manual": "๋ฉ๋ด์ผ ๋ค์ด๋ก๋",
"lms_banner_detail": "์์ธํ ๋ณด๊ธฐ",
"already_exist_email": "์ด๋ฏธ ์กด์ฌํ๋ ์ด๋ฉ์ผ ์
๋๋ค.",
"remove_project": "์ํ์ ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"study_lesson": "์ฐ๋ฆฌ ๋ฐ ํ์ตํ๊ธฐ",
"open_project": "์ํ ๋ถ๋ฌ์ค๊ธฐ",
"make_group": "ํ๊ธ ๋ง๋ค๊ธฐ",
"project_share": "์ํ ๊ณต์ ํ๊ธฐ",
"group_project_share": "ํ๊ธ ๊ณต์ ํ๊ธฐ",
"group_discuss": "ํ๊ธ ๊ธ ๋๋๊ธฐ",
"my_profile": "๋ง์ด ํ์ด์ง",
"search_updated": "์ต์ ์ํ",
"search_recent": "์ต๊ทผ ์กฐํ์ ๋์ ์ํ",
"search_complexity": "์ต๊ทผ ์ ์์ ๊ณต๋ค์ธ ์ํ",
"search_staffPicked": "์คํํ์ ์ ์ํ ์ ์ฅ์",
"search_childCnt": "์ฌ๋ณธ์ด ๋ง์ ์ํ",
"search_likeCnt": "์ต๊ทผ ์ข์์๊ฐ ๋ง์ ์ํ",
"search_recentLikeCnt": "์ต๊ทผ ์ข์์๊ฐ ๋ง์ ์ํ",
"gnb_share": "๊ณต์ ํ๊ธฐ",
"gnb_community": "์ปค๋ฎค๋ํฐ",
"lms_add_lectures": "๊ฐ์ ์ฌ๋ฆฌ๊ธฐ",
"lms_add_course": "๊ฐ์ ๋ชจ์ ์ฌ๋ฆฌ๊ธฐ",
"lms_add_homework": "๊ณผ์ ์ฌ๋ฆฌ๊ธฐ",
"remove_lecture_confirm": "๊ฐ์๋ฅผ ์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"popup_delete": "์ญ์ ํ๊ธฐ",
"remove_course_confirm": "๊ฐ์ ๋ชจ์์ ์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"lms_no_lecture_teacher_1": "์ถ๊ฐ๋ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"lms_no_lecture_teacher_2": "์ฐ๋ฆฌ ๋ฐ ๊ฐ์๋ฅผ ์ถ๊ฐํด ์ฃผ์ธ์.",
"gnb_download": "๋ค์ด๋ก๋",
"lms_no_lecture_student_1": "์์ง ์ฌ๋ผ์จ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"lms_no_lecture_student_2": "์ ์๋์ด ๊ฐ์๋ฅผ ์ฌ๋ ค์ฃผ์๋ฉด,",
"lms_no_lecture_student_3": "ํ์ต ๋ด์ฉ์ ํ์ธํ ์ ์์ต๋๋ค.",
"lms_no_class_teacher": "์์ง ๋ง๋ ํ๊ธ์ด ์์ต๋๋ค.",
"lms_no_course_teacher_1": "์ถ๊ฐ๋ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"lms_no_course_teacher_2": "์ฐ๋ฆฌ ๋ฐ ๊ฐ์ ๋ชจ์์ ์ถ๊ฐํด ์ฃผ์ธ์.",
"lms_no_course_student_1": "์์ง ์ฌ๋ผ์จ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"lms_no_course_student_2": "์ ์๋์ด ๊ฐ์ ๋ชจ์์ ์ฌ๋ ค์ฃผ์๋ฉด,",
"lms_no_course_student_3": "ํ์ต ๋ด์ฉ์ ํ์ธํ ์ ์์ต๋๋ค.",
"lms_no_hw_teacher_1": "์ถ๊ฐ๋ ๊ณผ์ ๊ฐ ์์ต๋๋ค.",
"lms_no_hw_teacher_2": "์ฐ๋ฆฌ ๋ฐ ๊ณผ์ ๋ฅผ ์ถ๊ฐํด ์ฃผ์ธ์.",
"lms_no_hw_student_1": "์์ง ์ฌ๋ผ์จ ๊ณผ์ ๊ฐ ์์ต๋๋ค.",
"lms_no_hw_student_2": "์ ์๋์ด ๊ณผ์ ๋ฅผ ์ฌ๋ ค์ฃผ์๋ฉด,",
"lms_no_hw_student_3": "ํ์ต ๋ด์ฉ์ ํ์ธํ ์ ์์ต๋๋ค.",
"modal_edit": "์์ ํ๊ธฐ",
"modal_deadline": "๋ง๊ฐ์ผ ์ค์ ",
"modal_hw_desc": "์์ธ์ค๋ช
(์ ํ)",
"desc_optional": "",
"modal_create_hw": "๊ณผ์ ๋ง๋ค๊ธฐ",
"vol": "ํ์ฐจ",
"hw_title": "๊ณผ์ ๋ช
",
"hw_description": "๋ด์ฉ",
"deadline": "๋ง๊ฐ์ผ",
"do_homework": "๊ณผ์ ํ๊ธฐ",
"hw_progress": "์งํ ์ํ",
"hw_submit": "์ ์ถ",
"view_list": "๋ช
๋จ๋ณด๊ธฐ",
"view_desc": "๋ด์ฉ๋ณด๊ธฐ",
"do_submit": "์ ์ถํ๊ธฐ",
"popup_notice": "์๋ฆผ",
"no_selected_hw": "์ ํ๋ ๊ณผ์ ๊ฐ ์์ต๋๋ค.",
"hw_delete_confirm": "์ ํํ ๊ณผ์ ๋ฅผ ์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"hw_submitter": "๊ณผ์ ์ ์ถ์ ๋ช
๋จ",
"hw_student_desc_1": "* '์ ์ถํ๊ธฐ'๋ฅผ ๋๋ฌ ์ ์ถ์ ์๋ฃํ๊ธฐ ์ ๊น์ง ์ผ๋ง๋ ์ง ์์ ์ด ๊ฐ๋ฅํฉ๋๋ค",
"hw_student_desc_2": "* ์ ์ถ ๊ธฐํ์ด ์ง๋๋ฉด ๊ณผ์ ๋ฅผ ์ ์ถํ ์ ์์ต๋๋ค.",
"popup_create_class": "ํ๊ธ ๋ง๋ค๊ธฐ",
"class_name": "ํ๊ธ ์ด๋ฆ",
"image": "์ด๋ฏธ์ง",
"select_class_image": "ํ๊ธ ์ด๋ฏธ์ง๋ฅผ ์ ํํด ์ฃผ์ธ์.",
"type_class_description": "ํ๊ธ ์๊ฐ ์
๋ ฅ",
"set_as_primary_group": "๊ธฐ๋ณธํ๊ธ์ผ๋ก ์ง์ ",
"set_primary_group": "์ง์ ",
"not_primary_group": "์ง์ ์ํจ",
"type_class_name": "ํ๊ธ ์ด๋ฆ์ ์
๋ ฅํด์ฃผ์ธ์. ",
"type_class_description_long": "ํ๊ธ ์๊ฐ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์. 80์ ๋ด์ธ",
"add_students": "ํ์ ์ถ๊ฐํ๊ธฐ",
"invite_students": "ํ๊ธ์ ํ์ ์ด๋ํ๊ธฐ",
"invite_with_class": "1. ํ๊ธ ์ฝ๋๋ก ์ด๋ํ๊ธฐ",
"invite_code_expiration": "์ฝ๋ ๋ง๋ฃ์๊ฐ",
"generate_code_button": "์ฝ๋์ฌ๋ฐ๊ธ",
"generate_code_desc": "ํ์์ ํ๊ธ ์ฝ๋ ์
๋ ฅ ๋ฐฉ๋ฒ",
"generate_code_desc1": "์ํธ๋ฆฌ ํํ์ด์ง์์ ๋ก๊ทธ์ธ์ ํด์ฃผ์ธ์.",
"generate_code_desc2": "๋ฉ๋ด๋ฐ์์<๋์ ํ๊ธ>์ ์ ํํด์ฃผ์ธ์.",
"generate_code_desc3": "<ํ๊ธ์ฝ๋ ์
๋ ฅํ๊ธฐ>๋ฅผ ๋๋ฌ ํ๊ธ์ฝ๋๋ฅผ ์
๋ ฅํด์ฃผ์ธ์.",
"invite_with_url": "2. ํ๊ธ URL๋ก ์ด๋ํ๊ธฐ",
"copy_invite_url": "๋ณต์ฌํ๊ธฐ",
"download_as_pdf": "ํ๊ธ๊ณ์ PDF๋ก ๋ด๋ ค๋ฐ๊ธฐ",
"download_as_excel": "ํ๊ธ๊ณ์ ์์
๋ก ๋ด๋ ค๋ฐ๊ธฐ",
"temp_password": "์์ ๋น๋ฐ๋ฒํธ ๋ฐ๊ธ",
"step_name": "์ด๋ฆ ์
๋ ฅ",
"step_info": "์ ๋ณด ์ถ๊ฐ/์์ ",
"preview": "๋ฏธ๋ฆฌ๋ณด๊ธฐ",
"type_name_enter": "ํ๊ธ์ ์ถ๊ฐํ ํ์์ ์ด๋ฆ์ ์
๋ ฅํ๊ณ ์ํฐ๋ฅผ ์น์ธ์.",
"multiple_name_possible": "์ฌ๋ฌ๋ช
์ ์ด๋ฆ ์
๋ ฅ์ด ๊ฐ๋ฅํฉ๋๋ค.",
"id_auto_create": "ํ๋ฒ์ ๋ณ๋๋ก ์์ ํ์ง ์์ผ๋ฉด ์๋์ผ๋ก ์์ฑ๋ฉ๋๋ค.",
"student_id_desc_1": "ํ๊ธ ์์ด๋๋ ๋ณ๋์ ์
๋ ฅ์์ด ์๋์ผ๋ก ์์ฑ๋ฉ๋๋ค.",
"student_id_desc_2": "๋จ, ์ํธ๋ฆฌ์ ์ด๋ฏธ ๊ฐ์
๋ ํ์์ ํ๊ธ์ ์ถ๊ฐํ๋ค๋ฉด ํ์์ ์ํธ๋ฆฌ ์์ด๋๋ฅผ",
"student_id_desc_3": "์
๋ ฅํด์ฃผ์ธ์. ํด๋น ํ์์ ๋ก๊ทธ์ธ ํ, ํ๊ธ ์ด๋๋ฅผ ์๋ฝํ๋ฉด ๋ฉ๋๋ค.",
"student_number": "ํ๋ฒ",
"temp_password_desc_1": "์์ ๋น๋ฐ๋ฒํธ๋ก ๋ก๊ทธ์ธ ํ,",
"temp_password_desc_2": "์ ๊ท ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ์ค์ ํ ์ ์๋๋ก ์๋ดํด์ฃผ์ธ์.",
"temp_password_desc_3": "*ํ๋ฒ ๋ฐ๊ธ๋ ์์ ๋น๋ฐ๋ฒํธ๋ ๋ค์ ๋ณผ ์ ์์ต๋๋ค.",
"student_delete_confirm": "ํ์์ ์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"no_student_selected": "์ ํ๋ ํ์์ด ์์ต๋๋ค.",
"class_assignment": "ํ๊ธ ๊ณผ์ ",
"class_list": "ํ๊ธ ๋ชฉ๋ก",
"select_grade": "ํ๋
์ ์ ํ ํ์ธ์.",
"add_project": "์ํ ๊ณต์ ํ๊ธฐ",
"no_project_display": "์์ง ํ์๋ค์ด ์ ์ํ ์ํ์ด ์์ต๋๋ค.",
"plz_display_project": "๋์ ์ํ์ ์ ์ํด ์ฃผ์ธ์.",
"refuse_confirm": "ํ๊ธ ์ด๋๋ฅผ ์ ๋ง ๊ฑฐ์ ํ์๊ฒ ์ต๋๊น?",
"select_class": "ํ๊ธ ์ ํ",
"mon": "์",
"tue": "ํ",
"wed": "์",
"thu": "๋ชฉ",
"fri": "๊ธ",
"sat": "ํ ",
"sun": "์ผ",
"jan": "1์",
"feb": "2์",
"mar": "3์",
"apr": "4์",
"may": "5์",
"jun": "6์",
"jul": "7์",
"aug": "8์",
"sep": "9์",
"oct": "10์",
"nov": "11์",
"dec": "12์",
"plz_select_lecture": "๊ฐ์๋ฅผ ์ ํํด ์ฃผ์ธ์.",
"plz_set_deadline": "๋ง๊ฐ์ผ์ ์ค์ ํด ์ฃผ์ธ์.",
"hide_entry": "์ํธ๋ฆฌ ๊ฐ๋ฆฌ๊ธฐ",
"hide_others": "๊ธฐํ ๊ฐ๋ฆฌ๊ธฐ",
"show_all": "๋ชจ๋ ๋ณด๊ธฐ",
"lecture_description": "์ ์๋๋ค์ด ์ง์ ๋ง๋๋ ์ํธ๋ฆฌ ํ์ต ๊ณต๊ฐ์
๋๋ค. ๊ฐ์์์ ์์์ํ์ ๋ณด๊ณ ์ํ์ ๋ง๋ค๋ฉฐ ๋ฐฐ์ ๋ณด์ธ์.",
"curriculum_description": "ํ์ต ์์์ ์ฃผ์ ์ ๋ฐ๋ผ ์ฌ๋ฌ ๊ฐ์๊ฐ ๋ชจ์์ง ํ์ต ๊ณต๊ฐ์
๋๋ค. ๊ฐ์ ๋ชจ์์ ์์์ ๋ง์ถฐ ์ฐจ๊ทผ์ฐจ๊ทผ ๋ฐฐ์๋ณด์ธ์.",
"linebreak_off_desc_1": "๊ธ์์์ ํฌ๊ธฐ๊ฐ ๊ธ์์ ํฌ๊ธฐ๋ฅผ ๊ฒฐ์ ํฉ๋๋ค.",
"linebreak_off_desc_2": "๋ด์ฉ์ ํ ์ค๋ก๋ง ์์ฑํ ์ ์์ต๋๋ค.",
"linebreak_off_desc_3": "์๋ก์ด ๊ธ์๊ฐ ์ถ๊ฐ๋๋ฉด ๊ธ์์์ ์ข์ฐ ๊ธธ์ด๊ฐ ๊ธธ์ด์ง๋๋ค.",
"linebreak_on_desc_1": "๊ธ์์์ ํฌ๊ธฐ๊ฐ ๊ธ์๊ฐ ์ฐ์ผ ์ ์๋ ์์ญ์ ๊ฒฐ์ ํฉ๋๋ค.",
"linebreak_on_desc_2": "๋ด์ฉ ์์ฑ์ ์ํฐํค๋ก ์ค๋ฐ๊ฟ์ ํ ์ ์์ต๋๋ค.",
"linebreak_on_desc_3": "๋ด์ฉ์ ์์ฑํ์๊ฑฐ๋ ์๋ก์ด ๊ธ์๋ฅผ ์ถ๊ฐ์ ๊ธธ์ด๊ฐ ๊ธ์์์ ๊ฐ๋ก ์์ญ์ ๋์ด์๋ฉด ์๋์ผ๋ก ์ค์ด ๋ฐ๋๋๋ค.",
"entry_with": "ํจ๊ป ๋ง๋๋ ์ํธ๋ฆฌ",
"ebs_season_1": "์์ฆ 1 ๋ณด๋ฌ๊ฐ๊ธฐ",
"ebs_season_2": "์์ฆ 2 ๋ณด๋ฌ๊ฐ๊ธฐ",
"partner": "ํํธ๋",
"project_term_popup_title": "์ํ ๊ณต๊ฐ์ ๋ฐ๋ฅธ ์ํธ๋ฆฌ ์ ์๊ถ ์ ์ฑ
๋์",
"project_term_popup_description_1": "์ํ ๊ณต๊ฐ๋ฅผ ์ํด",
"project_term_popup_description_2": "์๋ ์ ์ฑ
์ ํ์ธํด์ฃผ์ธ์.",
"project_term_popup_description_3": "",
"project_term_popup_description_4": "",
"project_term_agree_1_1": "๋ด๊ฐ ๋ง๋ ์ํ๊ณผ ๊ทธ ์์ค์ฝ๋์ ๊ณต๊ฐ๋ฅผ ๋์ํฉ๋๋ค.",
"project_term_agree_2_1": "๋ค๋ฅธ ์ฌ๋์ด ๋์ ์ํ์ ์ด์ฉํ๋ ๊ฒ์ ํ๋ฝํฉ๋๋ค.",
"project_term_agree_2_2": "( ๋ณต์ , ๋ฐฐํฌ , ๊ณต์ค์ก์ ํฌํจ )",
"project_term_agree_3_1": "๋ค๋ฅธ ์ฌ๋์ด ๋์ ์ํ์ ์์ ํ๋ ๊ฒ์ ํ๋ฝํฉ๋๋ค.",
"project_term_agree_3_2": "( ๋ฆฌ๋ฏน์ค, ๋ณํ, 2์ฐจ ์ ์๋ฌผ ์์ฑ ํฌํจ)",
"agree_all": "์ ์ฒด ๋์",
"select_login": "๋ก๊ทธ์ธ ์ ํ",
"select": "์ ํํ์ธ์",
"with_login": "๋ก๊ทธ์ธ ํ๊ณ ",
"without_login": "๋ก๊ทธ์ธ ์ํ๊ณ ",
"start_challenge": "๋ฏธ์
๋์ ํ๊ธฐ",
"start_challenge_2": "๋ฏธ์
๋์ ํ๊ธฐ",
"if_not_save_not_login": "* ๋ก๊ทธ์ธ์ ์ํ๊ณ ๋ฏธ์
์ ์ฐธ์ฌํ์๋ฉด ์งํ ์ํฉ์ด ์ ์ฅ๋์ง ์์ต๋๋ค.",
"if_not_member_yet": "์ํธ๋ฆฌ ํ์์ด ์๋๋ผ๋ฉด?",
"join_entry": "์ํธ๋ฆฌ ํ์ ๊ฐ์
ํ๊ธฐ",
"learned_computing": "๊ธฐ์กด์ ์ํํธ์จ์ด ๊ต์ก์ ๋ฐ์๋ณด์
จ๋์?",
"cparty_index_description_1": "๋๊ทผ๋๊ทผ ์ํํธ์จ์ด์ ์ฒซ ๋ง๋จ.",
"cparty_index_description_2": "์ํํธ์จ์ด๋ ์ฌ๋ฏธ์๊ฒ ๋๋ค ๋ณด๋ฉด ์ํํธ์จ์ด์ ์๋ฆฌ๋ ๋ฐฐ์ฐ๊ณ , ์๊ฐํ๋ ํ๋ ์ฅ์ฅ!",
"cparty_index_description_3": "์ํธ๋ฆฌ๋ฅผ ํตํด ์ฝ๋ฉ ๋ฏธ์
์ ๋์ ํ๊ณ ์ธ์ฆ์ ๋ฐ์ผ์ธ์.",
"cparty_index_description_4": "2015 Online Coding Party๋",
"cparty_index_description_5": "SW๊ต์ก ์ฒดํ ์ฃผ๊ฐ",
"cparty_index_description_6": "์ ์ผํ์ผ๋ก์จ,",
"cparty_index_description_7": "์ด๋ฑ์ปดํจํ
๊ต์ฌํํ",
"cparty_index_description_8": "์ ํจ๊ป ๋ง๋ค์ด์ก์ต๋๋ค.",
"cparty_index_description_9": "2016 Online Coding Party๋",
"congratulation": "์ถํ ๋๋ฆฝ๋๋ค!",
"warm_up": "์ฒดํ",
"beginner": "์
๋ฌธ",
"intermediate": "๊ธฐ๋ณธ",
"advanced": "๋ฐ์ ",
"applied": "์์ฉ",
"cert_msg_tail": "๊ณผ์ ์ ์ฑ๊ณต์ ์ผ๋ก ๋ง์ณค์ต๋๋ค.",
"cert_msg_head": "",
"maze_text_content_1": "์๋
? ๋๋ ์ํธ๋ฆฌ๋ด์ด์ผ. ์ง๊ธ ๋๋ ๊ณต์ฅ์์ ํ์ถ์ ํด์ผ ํด! ํ์ถํ๊ธฐ ์ํด์ ๋จผ์ ๋ชธ์ ๊ณ ์ณ์ผ ํ ๊ฒ ๊ฐ์. ์์ ์๋ ๋ถํ์ ์ป์ ์ ์๊ฒ ๋์์ค๋? move()",
"maze_text_content_2": "์ข์ ์์ฃผ ์ํ์ด! ๋๋ถ์ ๋ชธ์ด ํ๊ฒฐ ๊ฐ๋ฒผ์์ก์ด! ์ด๋ฒ์๋ ๋ถํ์์๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค. ๊ทธ๋ฐ๋ฐ ๊ฐ๋๊ธธ์ ์ฅ์ ๋ฌผ์ด ์์ด. ์ฅ์ ๋ฌผ ์์์๋ jump()",
"maze_text_content_3": "๋ฉ์ง๊ฑธ! ์ ๊ธฐ์๋ ๋ถํ์ด ์์ด! ๊ธธ์ด ์กฐ๊ธ ๊ผฌ์ฌ์์ง๋ง ์ค๋ฅธ์ชฝ, ์ผ์ชฝ์ผ๋ก ํ์ ํ ์ ์๋ right(); left(); ๋ช
๋ น์ด๋ฅผ ์ฐ๋ฉด ์ถฉ๋ถํ ๊ฐ ์ ์์๊ฒ ๊ฐ์!",
"maze_text_content_4": "์ข์ ์ด์ ์์ง์ด๋ ๊ฑด ๋ง์ด ํธํด์ก์ด! ์ด๋ฒ์๋ ์ง๊ธ๊น์ง ๋ฐฐ์ด ๋ช
๋ น์ด๋ฅผ ๊ฐ์ด ์จ์ ์ ๋ถํ์์๊น์ง ๊ฐ๋ณด์!",
"maze_text_content_5": "์ฐ์ ๋ถํ์ด ๋ ๊ฐ๋ ์์์! ๋ ๊ฐ ๋ค ์ฑ๊ฒจ์ ๊ฐ์! ๊ทธ๋ฌ๋ฉด ๋ชธ์ ๋นจ๋ฆฌ ๊ณ ์น ์ ์์ ๊ฒ ๊ฐ์!",
"maze_text_content_6": "์ด๋ฒ์ด ๋ง์ง๋ง ๋ถํ๋ค์ด์ผ! ์ ๊ฒ๋ค๋ง ์์ผ๋ฉด ๋ด ๋ชธ์ ๋ค ๊ณ ์น ์ ์์ ๊ฑฐ์ผ! ์ด๋ฒ์๋ ๋์์ค ๊ฑฐ์ง?",
"maze_text_content_7": "๋๋ถ์ ๋ชธ์ด ์์ฃผ ์ข์์ก์ด! ์ด์ ๋๊ฐ์ ์ผ์ ์ฌ๋ฌ ๋ฒ ๋ฐ๋ณตํด๋ ๋ฌด๋ฆฌ๋ ์์ ๊ฑฐ์ผ. ์ด? ๊ทธ๋ฐ๋ฐ ์์ ์๋ ์ ๋ก๋ด์ ๋ญ์ง? ๋ญ๊ฐ ๋์์ด ํ์ํ ๊ฒ ๊ฐ์! ๋์์ฃผ์! for ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด์ ์ ์น๊ตฌํํ
๋๋ฅผ ๋ฐ๋ ค๋ค์ค!",
"maze_text_content_8": "์ข์! ๋๋ถ์ ์น๊ตฌ ๋ก๋ด์ ์ด๋ฆด ์ ์์์ด! ํ์ง๋ง ์์๋ ๋์์ด ํ์ํ ์น๊ตฌ๊ฐ ์๋ค, ํ์ง๋ง ์ด๋ฒ์๋ ๋ฒ์ง์ด ์์ผ๋๊น ์กฐ์ฌํด์ ๋ฒ์ง์ ์ ๋ฟ๊ฒ ๋ฐ์ด๋์ด๊ฐ์! ํ ์ ์๊ฒ ์ง? ์ด๋ฒ์๋ for ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด์ ์น๊ตฌ๊ฐ ์๋๊ณณ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_content_9": "์ด๋ฒ์๋ for ๋ช
๋ น์ด ๋์ ๋ฏธ์
์ด ๋๋ ๋๊น์ง ๊ฐ์ ์ผ์ ๋ฐ๋ณตํ๋๋ก ํ๋ while ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด๋ด! ๋๋ฅผ ์น๊ตฌ์๊ฒ ๋ฐ๋ ค๋ค์ฃผ๋ฉด ๋ฏธ์
์ด ๋๋!",
"maze_text_content_10": "์ด๋ฒ์๋ if ๋ช
๋ น์ด๊ฐ ๋์์ด! if์ while ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด์ ๋ด๊ฐ ์ธ์ ์ด๋ ์ชฝ์ผ๋ก ํ์ ํด์ผ ํ๋์ง ์๋ ค์ค!",
"maze_text_content_11": "์ข์ ์๊น ํ๋ ๊ฒ์ฒ๋ผ ํด๋ณผ๊น? ์ธ์ ์ผ์ชฝ์ผ๋ก ๋์์ผ ํ๋์ง ์๋ ค์ค ์ ์๊ฒ ์ด?",
"maze_text_content_12": "์ด๋ฒ์๋ ์ค๊ฐ์ค๊ฐ ๋ฒ์ง(bee)์ด ์๋ค? ์ธ์ ๋ฐ์ด๋์ด๊ฐ์ผ ํ ์ง ์๋ ค์ค๋?",
"maze_text_content_13": "์ฌ๊ธฐ์ ๊ธฐ ๋์์ด ํ์ํ ์น๊ตฌ๋ค์ด ๋ง์ด ์๋ค! ๋ชจ๋ ๊ฐ์ ๋์์ฃผ์!",
"maze_text_content_14": "์ฐ์ ์ด๋ฒ์๋ ๋์์ค์ผ ํ ์น๊ตฌ๋ค์ด ๋ง๋ค. ๋จผ์ ์กฐ๊ทธ๋งํ ์ฌ๊ฐํ์ ๋๋๋ก ๋ช
๋ น์ด๋ฅผ ๋ง๋ค๊ณ ๋ง๋ ๊ฑธ ๋ฐ๋ณตํด์ ๋ชจ๋ ์น๊ตฌ๋ฅผ ๊ตฌํด๋ณด์.",
"maze_text_content_15": "์ค๋ ์์ง์ด๋ค ๋ณด๋ ๋ฒ์จ ์ง์ณ๋ฒ๋ ธ์ด. ์์ฃผ ์ฐ๋ ๋ช
๋ น์ด๋ฅผ function ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํด์ ํจ์๋ก ๋ง๋ค์ด ๋์์ด! ํจ์๋ฅผ ์ฌ์ฉํ์ฌ ๋๋ฅผ ๋ฐฐํฐ๋ฆฌ ๊น์ง ์ด๋์์ผ์ค!",
"maze_text_content_16": "์ข์ ๋ฉ์ง๊ฑธ! ๊ทธ๋ผ ์ด๋ฒ์๋ ํจ์์ ๋ค์ด๊ฐ ๋ช
๋ น์ด๋ค์ ๋ฃ์ด์ ๋๋ฅผ ๋ฐฐํฐ๋ฆฌ๊น์ง ์ด๋์์ผ์ค!",
"maze_text_content_17": "์ข์ ์ด๋ฒ์๋ ํจ์๋ฅผ ๋ง๋ค๊ณ , ํจ์๋ฅผ ์ฌ์ฉํด์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ป์ ์ ์๋๋ก ๋์์ค! ํจ์๋ฅผ ๋ง๋ค๋ jump();๋ฅผ ์ ์์ด๋ด!",
"maze_text_content_18": "์ด๋ฒ์๋ ๊ธธ์ด ์ข ๋ณต์กํ๊ฑธ? ๊ทธ๋๋ ์ธ์ left();๋ฅผ ์ฐ๊ณ , ์ธ์ right();๋ฅผ ์ฐ๋ฉด ๋๋์ง ์๋ ค๋ง ์ฃผ๋ฉด ๋ฐฐํฐ๋ฆฌ ๊น์ง ๊ฐ ์ ์๊ฒ ์ด!.",
"maze_text_content_19": "์ด๋ฒ์๋ ํจ์๊ฐ ๋ฏธ๋ฆฌ ์ ํด์ ธ ์์ด! ๊ทธ๋ฐ๋ฐ ํจ์๋ง ์จ์ ๋ฐฐํฐ๋ฆฌ๊น์ง ๊ฐ๊ธฐ ํ๋ค๊ฒ ๊ฐ์. ํจ์์ ๋ค๋ฅธ ๋ช
๋ น์ด๋ค์ ์์ด ์จ์ ๋ฐฐํฐ๋ฆฌ ๊น์ง ์ด๋์์ผ์ค!",
"maze_text_content_20": "์ข์! ์ง๊ธ๊น์ง ์ ๋ง ๋ฉ์ง๊ฒ ์ ํด์คฌ์ด. ๋๋ถ์ ์ด์ ๋ง์ง๋ง ๋ฐฐํฐ๋ฆฌ๋ง ์ฑ์ฐ๋ฉด ์์ผ๋ก๋ ์ถฉ์ ์ด ํ์ ์์ ๊ฑฐ์ผ. ํจ์๋ฅผ ์ด์ฉํด์ ์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ป๊ณ ๋ด๊ฐ ์์ ๋กญ๊ฒ ์ด ์ ์๋๋ก ๋์์ค!",
"maze_content_1": "์๋
๋๋ ์ํธ๋ฆฌ๋ด์ด๋ผ๊ณ ํด. ์ง๊ธ ๋๋ ๊ณต์ฅ์์ ํ์ถํ๋ ค๋๋ฐ ๋จผ์ ๋ชธ์ ๊ณ ์ณ์ผ ํ ๊ฒ ๊ฐ์. ์์ ์๋ ๋ถํ์ ์ป์ ์ ์๊ฒ ๋์์ค๋? ์์ผ๋ก ๊ฐ๊ธฐ ๋ธ๋ก์ ์กฐ๋ฆฝํ๊ณ ์์์ ๋๋ฌ๋ด.",
"maze_content_2": "์ข์ ์์ฃผ ์ํ์ด! ๋๋ถ์ ๋ชธ์ด ํ๊ฒฐ ๊ฐ๋ฒผ์์ก์ด! ์์๋ ๋ถํ์ด ์๋๋ฐ ์ด๋ฒ์๋ ์๋ชป ๊ฐ๋ค๊ฐ ๊ฐ์ ๋๊ธฐ ์ฌ์ธ ๊ฒ ๊ฐ์. ํ ๋ฒ ์ฅ์ ๋ฌผ ๋ฐ์ด๋๊ธฐ ๋ธ๋ก์ ์จ์ ๋ถํ๊น์ง ๊ฐ๋ณผ๊น?",
"maze_content_3": "๋ฉ์ง๊ฑธ! ์ ๊ธฐ์๋ ๋ถํ์ด ์์ด! ๊ธธ์ด ์กฐ๊ธ ๊ผฌ์ฌ์์ง๋ง ํ์ ํ๊ธฐ ๋ธ๋ก์ ์ฐ๋ฉด ์ถฉ๋ถํ ๊ฐ ์ ์์ ๊ฒ ๊ฐ์! ์ด๋ฒ์๋ ๋์์ค ๊ฑฐ์ง?",
"maze_content_4": "์ข์ ์ด์ ์์ง์ด๋ ๊ฑด ๋ง์ด ํธํด์ก์ด! ์ด๋ฒ์๋ ํ์ ๊ณผ ๋ฐ์ด๋๊ธฐ๋ฅผ ๊ฐ์ด ์จ์ ์ ๋ถํ์ ์ป์ด๋ณด์!",
"maze_content_5": "์ฐ์ ๋ถํ์ด ๋ ๊ฐ๋ ์์์! ๋ ๊ฐ ๋ค ์ฑ๊ฒจ์ ๊ฐ์! ๊ทธ๋ฌ๋ฉด ๋ชธ์ ๋นจ๋ฆฌ ๊ณ ์น ์ ์์ ๊ฒ ๊ฐ์!",
"maze_content_6": "์ด๋ฒ์ด ๋ง์ง๋ง ๋ถํ๋ค์ด์ผ! ์ ๊ฒ๋ค๋ง ์์ผ๋ฉด ๋ด ๋ชธ์ ๋ค ๊ณ ์น ์ ์์ ๊ฑฐ์ผ! ์ด๋ฒ์๋ ๋์์ค ๊ฑฐ์ง?",
"maze_content_7": "๋๋ถ์ ๋ชธ์ด ์์ฃผ ์ข์์ก์ด! ์ด์ ๋๊ฐ์ ์ผ์ ์ฌ๋ฌ ๋ฒ ๋ฐ๋ณตํด๋ ๋ฌด๋ฆฌ๋ ์์ ๊ฑฐ์ผ. ์ด? ๊ทธ๋ฐ๋ฐ ์์ ์๋ ์ ๋ก๋ด์ ๋ญ์ง? ๋ญ๊ฐ ๋์์ด ํ์ํ ๊ฒ ๊ฐ์! ๋์์ฃผ์! ์ผ๋ฅธ ๋ฐ๋ณตํ๊ธฐ์ ์ซ์๋ฅผ ๋ฐ๊ฟ์ ์ ์น๊ตฌํํ
๋๋ฅผ ๋ฐ๋ ค๋ค์ค!",
"maze_content_8": "์ข์! ๋๋ถ์ ์น๊ตฌ ๋ก๋ด์ ์ด๋ฆด ์ ์์์ด! ํ์ง๋ง ์์๋ ๋์์ด ํ์ํ ์น๊ตฌ๊ฐ ์๋ ๊ฒ ๊ฐ์, ํ์ง๋ง ์ด๋ฒ์๋ ๋ฒ์ง์ด ์์ผ๋๊น ์กฐ์ฌํด์ ๋ฒ์ง์ ์ ๋ฟ๊ฒ ๋ฐ์ด๋์ด๊ฐ์! ํ ์ ์๊ฒ ์ง? ๊ทธ๋ผ ์๊น ํ๋ ๊ฒ์ฒ๋ผ ๋ฐ๋ณต์ ์จ์ ์น๊ตฌํํ
๊ฐ ์ ์๊ฒ ํด์ค๋?",
"maze_content_9": "์ด๋ฒ์๋ ์ซ์๋งํผ ๋ฐ๋ณตํ๋ ๊ฒ ์๋๋ผ ์น๊ตฌ ๋ก๋ดํํ
๊ฐ ๋๊น์ง ๋๊ฐ์ ์ผ์ ๋ฐ๋ณตํ ์ ์์ด! ์ด๋ฒ์๋ ์น๊ตฌ๋ฅผ ๊ตฌํ ์ ์๋๋ก ๋์์ค!",
"maze_content_10": "์ด๋ฒ์๋ ๋ง์ฝ ๋ธ๋ก์ด๋ ๊ฒ ์์ด! ๋ง์ฝ ๋ธ๋ก์ ์จ์ ์ธ์ ์ด๋ ์ชฝ์ผ๋ก ๋์์ผ ํ๋์ง ์๋ ค์ค!",
"maze_content_11": "์ข์ ์๊น ํ๋ ๊ฒ์ฒ๋ผ ํด๋ณผ๊น? ์ธ์ ์ผ์ชฝ์ผ๋ก ๋์์ผ ํ๋์ง ์๋ ค์ค ์ ์๊ฒ ์ด?",
"maze_content_12": "์ด๋ฒ์๋ ์ค๊ฐ์ค๊ฐ ๋ฒ์ง์ด ์๋ค? ์ธ์ ๋ฐ์ด๋์ด๊ฐ์ผ ํ ์ง ์๋ ค์ค๋?",
"maze_content_13": "์ฌ๊ธฐ์ ๊ธฐ ๋์์ด ํ์ํ ์น๊ตฌ๋ค์ด ๋ง์ด ์๋ค! ๋ชจ๋ ๋์์ฃผ์!",
"maze_content_14": "์ฐ์ ์ด๋ฒ์๋ ๋์์ค์ผ ํ ์น๊ตฌ๋ค์ด ๋ง๋ค. ๋จผ์ ์กฐ๊ทธ๋งํ ์ฌ๊ฐํ์ ๋๋๋ก ๋ธ๋ก์ ๋ง๋ค๊ณ ๋ง๋ ๊ฑธ ๋ฐ๋ณตํด์ ๋ชจ๋ ์น๊ตฌ๋ฅผ ๊ตฌํด๋ณด์.",
"maze_content_15": "๋ฐ๋ณต์ ํ๋ ๋ง์ด ํ๋๋ ์์ฃผ ์ฐ๋ ๋ธ๋ก์ ์ธ์ธ ์ ์์ ๊ฒ ๊ฐ์! ์ฝ์ ๋ธ๋ก์ ์ง๊ธ ๋ด๊ฐ ์ธ์ด ๋ธ๋ก๋ค์ด์ผ! ์ผ๋จ์ ์ค๋ ์์ง์ฌ์ ์ง์ณค์ผ๋๊น ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ข ์ฑ์ธ ์ ์๊ฒ ์ฝ์ ํธ์ถ ๋ธ๋ก์ ์จ์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ฑ์ธ ์ ์๊ฒ ํด์ค!",
"maze_content_16": "์ข์ ๋ฉ์ง๊ฑธ! ๊ทธ๋ผ ์ด๋ฒ์๋ ๋ค๊ฐ ์์ฃผ ์ฐ์ผ ๋ธ๋ก์ ๋ํํ
๊ฐ๋ฅด์ณ์ค! ์ฝ์ ์ ์ ๋ธ๋ก ์์ ์์ฃผ ์ฐ์ผ ๋ธ๋ก์ ๋ฃ์ด๋ณด๋ฉด ๋ผ!",
"maze_content_17": "์ข์ ์ด๋ฒ์๋ ๊ทธ๋ฌ๋ฉด ์ฝ์์ ์ด์ฉํด์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ป์ ์ ์๋๋ก ๋์์ค ๊ฑฐ์ง? ์ฝ์์ ๋ฐ์ด๋๊ธฐ๋ฅผ ์ ์์ด๋ด!",
"maze_content_18": "์ด๋ฒ์๋ ๊ธธ์ด ์ข ๋ณต์กํ๊ฑธ? ๊ทธ๋๋ ์ธ์ ์ผ์ชฝ์ผ๋ก ๋๊ณ , ์ธ์ ์ค๋ฅธ์ชฝ์ผ๋ก ๋๋ฉด ๋๋์ง ์๋ ค๋ง ์ฃผ๋ฉด ์ถฉ์ ํ ์ ์์ ๊ฒ ๊ฐ์.",
"maze_content_19": "์ด๋ฒ์๋ ์ฝ์์ด ๋ฏธ๋ฆฌ ์ ํด์ ธ ์์ด! ๊ทธ๋ฐ๋ฐ ๋ฐ๋ก ์ฝ์์ ์ฐ๊ธฐ์๋ ์๋ ๊ฒ ๊ฐ์. ๋ด๊ฐ ๊ฐ ๊ธธ์ ๋ณด๊ณ ์ฝ์์ ์ฐ๋ฉด ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ฑ์ธ ์ ์์ ๊ฒ ๊ฐ์๋ฐ ๋์์ค ๊ฑฐ์ง?",
"maze_content_20": "์ข์! ์ง๊ธ๊น์ง ์ ๋ง ๋ฉ์ง๊ฒ ์ ํด์คฌ์ด. ๋๋ถ์ ์ด์ ๋ง์ง๋ง ๋ฐฐํฐ๋ฆฌ๋ง ์ฑ์ฐ๋ฉด ์์ผ๋ก๋ ์ถฉ์ ์ด ํ์ ์์ ๊ฑฐ์ผ. ๊ทธ๋ฌ๋๊น ์ฝ์์ ์ด์ฉํด์ ์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ป๊ณ ๋ด๊ฐ ์์ ๋กญ๊ฒ ์ด ์ ์๋๋ก ๋์์ค๋?",
"maze_content_21": "์๋
? ๋๋ ์ํธ๋ฆฌ ๋ด์ด์ผ. ์ง๊ธ ๋ง์ ์น๊ตฌ๋ค์ด ๋ด ๋์์ ํ์๋ก ํ๊ณ ์์ด. ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ด์ฉํด์ ์น๊ตฌ๋ค์ ๋์ธ์ ์๊ฒ ๋ฐ๋ ค๋ค ์ค!",
"maze_content_22": "๊ณ ๋ง์! ์ด๋ฒ์๋ ๋ฒ์ง์ ๋ฐ์ด๋์ด์ ์น๊ตฌ๋ฅผ ๊ตฌํ๋ฌ ๊ฐ ์ ์๊ฒ ๋์์ค!",
"maze_content_23": "์ข์! ์ด๋ฒ์๋ ์น๊ตฌ ๋ก๋ดํํ
๊ฐ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ด์ฉํด์ ์น๊ตฌ๋ฅผ ๋์ธ ์ ์๊ฒ ๋์์ค!",
"maze_content_24": "์๋
! ๋๋ ์ํธ๋ฆฌ ๋ด์ด์ผ. ์ง๊ธ ๋๋ ๋๋ฌด ์ค๋ ์์ง์ฌ์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ฑ์์ผ ํด. ์ฝ์ ๋ถ๋ฌ์ค๊ธฐ๋ฅผ ์จ์ ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ฑ์ธ ์ ์๋๋ก ๋์์ค!",
"maze_content_25": "๋ฉ์ ธ! ์ด๋ฒ์๋ ์ฌ๋ฌ ์ฝ์์ ๋ถ๋ฌ์์ ๋ฐฐํฐ๋ฆฌ๊ฐ ์๋ ๊ณณ๊น์ง ๊ฐ๋ณด์!",
"maze_content_26": "์ข์! ์ด์ ์ฝ์ํ ๋ธ๋ก์ ๋ํํ
๊ฐ๋ฅด์ณ์ค! ์ฝ์ํ๊ธฐ ๋ธ๋ก ์์ ์์ฃผ ์ฐ์ผ ๋ธ๋ก์ ๋ฃ์ผ๋ฉด ๋ผ!",
"maze_content_27": "์ง๊ธ์ ๋ฏธ๋ฆฌ ์ฝ์์ด ์ ํด์ ธ ์์ด. ๊ทธ๋ฐ๋ฐ, ์ฝ์์ ์ฐ๊ธฐ์ํด์๋ ๋ด๊ฐ ๊ฐ ๋ฐฉํฅ์ ๋ณด๊ณ ์ฝ์์ ์ฌ์ฉํด์ผํด. ๋์์ค๊ฑฐ์ง?",
"maze_content_28": "๋๋์ด ๋ง์ง๋ง์ด์ผ! ์ฝ์์ ์ด์ฉํ์ฌ ๋ง์ง๋ง ๋ฐฐํฐ๋ฆฌ๋ฅผ ์ป์ ์ ์๊ฒ ๋์์ค!",
"ai_content_1": "์๋
? ๋๋ ์ํธ๋ฆฌ๋ด์ด๋ผ๊ณ ํด. ์ฐ์ฃผ ํ์ฌ๋ฅผ ๋ง์น๊ณ ์ง๊ตฌ๋ก ๋์๊ฐ๋ ค๋๋ฐ ์ฐ์ฃผ๋ฅผ ๋ ๋ค๋๋ ๋๋ค ๋๋ฌธ์ ์ฝ์ง ์๋ค. ๋ด๊ฐ ์์ ํ๊ฒ ์ง์ ๊ฐ ์ ์๋๋ก ๋์์ค๋? ๋์ ์ฐ์ฃผ์ ์๋ ๋์ ์๊ณผ ์, ์๋์ ๋ฌด์์ด ์ด๋ ์ ๋์ ๊ฑฐ๋ฆฌ์ ์๋์ง ์๋ ค์ฃผ๋ ๋ ์ด๋๊ฐ ์์ด ๋์ ํ๋จ์ ๋์์ค ๊ฑฐ์ผ!",
"ai_content_2": "๊ณ ๋ง์! ๋๋ถ์ ๋์ ์ฝ๊ฒ ํผํ ์ ์์์ด. ๊ทธ๋ฐ๋ฐ ์ด๋ฒ์ ๋ ๋ง์ ๋์ด ์์์? ๋ธ๋ก๋ค์ ์กฐ๋ฆฝํ์ฌ ๋๋ค์ ์ด๋ฆฌ์ ๋ฆฌ ์ ํผํด ๋ณด์!",
"ai_content_3": "์ข์์ด! ์์ ํ๊ฒ ๋์ ํผํ์ด. ๊ทธ๋ฐ๋ฐ ์์ ๋ด! ์๊น๋ณด๋ค ๋ ๋ง์ ๋์ด ์์ด. ํ์ง๋ง ๊ฑฑ์ ํ์ง ๋ง. ๋์๊ฒ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ด ์๊ฑฐ๋ . ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก ์์ ์์ง์ด๋ ๋ธ๋ก์ ๋ฃ์ผ๋ฉด ๋ชฉ์ ์ง์ ๋์ฐฉํ ๋๊น์ง ๊ณ์ ์์ง์ผ๊ฒ!",
"ai_content_4": "๋๋จํด! ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฐ๋ ๋ง์ ๋์ ํผํ๊ธฐ๊ฐ ํจ์ฌ ์์ํ๊ฑธ! ํ์ง๋ง ์ด๋ ๊ฒ ์ผ์ผ์ด ์กฐ์ข
ํ๊ธฐ๋ ํผ๊ณคํ๋ค. ๋์๊ฒ ๋ ์ด๋๊ฐ ์์ผ๋ ์์ผ๋ก ๋ฌด์์ด ๋์ฌ์ง ์ ์ ์์ด. ์์ผ๋ก ๊ณ์ ๊ฐ๋ค๊ฐ ์์ ๋์ด ์์ผ๋ฉด ํผํ ์ ์๋๋ก ํด์ค๋?",
"ai_content_5": "์ํ์ด! ์ฌ๊ธฐ๊น์ง ์์ ์์ฃผ ๊ธฐ๋ป. ์ด๋ฒ์๋ ๋ ์ด๋๊ฐ ์์ ์๋ ๋ฌผ์ฒด๊น์ง์ ๊ฑฐ๋ฆฌ๋ฅผ ๋งํด์ค ๊ฑฐ์ผ. ์ด ๊ธฐ๋ฅ์ ์ฌ์ฉํ์ฌ ๋์ ํผํด ๋ณด์! ๋๊น์ง์ ๊ฑฐ๋ฆฌ๊ฐ ๋ฉ ๋๋ ์์ผ๋ก ๊ณ์ ๊ฐ๋ค๊ฐ, ๊ฑฐ๋ฆฌ๊ฐ ๊ฐ๊น์์ง๋ฉด ํผํ ์ ์๋๋ก ํด์ค๋?",
"ai_content_6": "์~ ๋ฉ์ง๊ฑธ? ๋ ์ด๋๋ฅผ ํ์ฉํ์ฌ ๋์ ์ ํผํด ๋๊ฐ๊ณ ์์ด! ์ด๋ฒ์๋ ์ฌ๋ฌ ๊ฐ์ ๋ ์ด๋๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฆฌ์ ๋ฆฌ ๋๋ค์ ํผํด ๋๊ฐ ์ ์๊ฒ ๋ง๋ค์ด์ค๋?",
"ai_content_7": "ํด~ ์ง๊ตฌ์ ์ ์ ๊ฐ๊น์์ง๊ณ ์์ด! ๋์ ํผํ ๋ ๊ธฐ์์ด๋ฉด ๋ ์์ ํ ๊ธธ๋ก ๊ฐ๊ณ ์ถ์ด! ์๋ง๋ ๋์ด ๋ ๋ฉ๋ฆฌ ์๋ ์ชฝ์ด ๋ ์์ ํ ๊ธธ์ด๊ฒ ์ง? ์์ชฝ ๋ ์ด๋์ ์๋์ชฝ ๋ ์ด๋๋ฅผ ๋น๊ตํ์ฌ ๋ ์์ ํ ์ชฝ์ผ๋ก ์์ง์ด๋๋ก ํด์ค๋?",
"ai_content_8": "์ข์! ๋๋ถ์ ๋ฌด์ฌํ ๋นํํ๊ณ ์์ด. ์ด? ๊ทธ๋ฐ๋ฐ ์ ๊ฒ ๋ญ์ง? ์ ๊ฑด ๋ด๊ฐ ์์ฃผ ์๊ธํ ์ํฉ์์ ์ฌ์ฉํ ์ ์๋ ํน๋ณํ ์๋์ง์ผ! ์ด๋ฒ์๋ ์ ์์ดํ
๋ค์ ๋ชจ๋ ๋ชจ์ผ๋ฉฐ ์์ง์ด์!",
"ai_content_9": "ํ๋ฅญํด! ์ด์ ์ง๊ตฌ๊น์ง ์ผ๋ง ์ ๋จ์์ด. ๊ทธ๋ฐ๋ฐ ์์ ๋ณด๋ ๋๋ค๋ก ๊ธธ์ด ๊ฝ ๋งํ์ ์ง๋๊ฐ ์๊ฐ ์์์? ํ์ง๋ง ๊ฑฑ์ ํ์ง ๋ง. ์์ดํ
์ ํ๋ํด์ ์ฌ์ฉํ๋ฉด ์์ ์๋ ๊ฝ ๋งํ ๋๋ค์ ์์จ ์ ์๋ค๊ณ !",
"ai_content_10": "์ข์! ๋๋์ด ์ ๊ธฐ ์ง๊ตฌ๊ฐ ๋ณด์ฌ! ์ด๋ด ์๊ฐ! ์ด์ ๋ ๋ ์์ค๋ ๋๋ค์ ๋ฏธ๋ฆฌ ๋ณผ ์๊ฐ ์์์? ๋๋ค์ด ์ด๋ป๊ฒ ๋ ์์ฌ์ง ์์ง ๋ชปํด๋ ์ง๊ธ๊น์ง์ฒ๋ผ๋ง ์์ง์ด๋ฉด ์ ํผํ ์ ์์ ๊ฒ ๊ฐ์! ์ง๊ตฌ๊น์ง ๊ฐ๋ณด๋ ๊ฑฐ์ผ!",
"maze_hints_title_1": "์์ ๋ฐฉ๋ฒ",
"maze_hints_content_1": "์ํธ๋ฆฌ๋ด์ ์ด๋ป๊ฒ ์์ง์ด๋์?",
"maze_hints_detail_1": "1. ๋ธ๋ก ๊พธ๋ฌ๋ฏธ์์ ์ํ๋ ๋ธ๋ก์ ๊บผ๋ด์ด โ์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋โ ๋ธ๋ก๊ณผ ์ฐ๊ฒฐํด๋ด<br>2. ๋ค ์กฐ๋ฆฝํ์ผ๋ฉด, ์์์ ๋๋ฌ๋ด<br>3. ๋๋ ๋ค๊ฐ ์กฐ๋ฆฝํ ๋ธ๋ก๋๋ก ์์์๋ถํฐ ์์๋๋ก ์์ง์ผ๊ฒ",
"maze_hints_title_2": "์ฅ์ ๋ฌผ ๋ฐ์ด๋๊ธฐ",
"maze_hints_content_2": "์ฅ์ ๋ฌผ์ด ์์ผ๋ฉด ์ด๋ป๊ฒ ํด์ผํ๋์?",
"maze_hints_detail_2": "๊ธธ์ ๊ฐ๋ค๋ณด๋ฉด ์ฅ์ ๋ฌผ์ ๋ง๋ ์ ์์ด.<br>์ฅ์ ๋ฌผ์ด ์์ ์์ ๋์๋ ๋ฐ์ด๋๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ผ ํด.",
"maze_hints_title_3": "๋ฐ๋ณต ๋ธ๋ก(1)",
"maze_hints_content_3": "(3)ํ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_hints_detail_3": "๊ฐ์ ํ๋์ ์ฌ๋ฌ๋ฒ ๋ฐ๋ณตํ๋ ค๋ฉด ~๋ฒ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ผ ํด.<br>๋ฐ๋ณตํ๊ณ ์ถ์ ๋ธ๋ก๋ค์ ~๋ฒ ๋ฐ๋ณตํ๊ธฐ ์์ ๋ฃ๊ณ ๋ฐ๋ณต ํ์๋ฅผ ์
๋ ฅํ๋ฉด ๋ผ.",
"maze_hints_title_4": "๋ฐ๋ณต ๋ธ๋ก(2)",
"maze_hints_content_4": "~๋ฅผ ๋ง๋ ๋ ๊น์ง ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_hints_detail_4": "~๊น์ง ๋ฐ๋ณตํ๊ธฐ'๋ฅผ ์ฌ์ฉํ๋ฉด ๊ฐ์ ํ๋์ ์ธ์ ๊น์ง ๋ฐ๋ณตํ ์ง๋ฅผ ์ ํด์ค ์ ์์ด.<br>๋ฐ๋ณตํ๊ณ ์ถ์ ๋ธ๋ก๋ค์ ~๊น์ง ๋ฐ๋ณตํ๊ธฐ์์ ๋ฃ์ผ๋ฉด ๋ผ.<br>๊ทธ๋ฌ๋ฉด {์ด๋ฏธ์ง}์ ๊ฐ์ ํ์ผ ์์ ์๋ ๊ฒฝ์ฐ ๋ฐ๋ณต์ด ๋ฉ์ถ๊ฒ ๋ ๊ฑฐ์ผ.",
"maze_hints_title_5": "๋ง์ฝ ๋ธ๋ก",
"maze_hints_content_5": "๋ง์ฝ ~๋ผ๋ฉด ๋ธ๋ก์ ์ด๋ป๊ฒ ๋์ํ๋์?",
"maze_hints_detail_5": "๋ง์ฝ ์์ {์ด๋ฏธ์ง}๊ฐ ์๋ค๋ฉด' ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ์์ {์ด๋ฏธ์ง}๊ฐ ์์ ๋ ์ด๋ค ํ๋์ ํ ์ง ์ ํด์ค ์ ์์ด.<br>์์ {์ด๋ฏธ์ง}๊ฐ ์์ ๋์๋ง ๋ธ๋ก ์์ ๋ธ๋ก๋ค์ ์คํํ๊ณ <br> ๊ทธ๋ ์ง ์์ผ๋ฉด ์คํํ์ง ์๊ฒ ๋๋ ๊ฑฐ์ผ.",
"maze_hints_title_6": "๋ฐ๋ณต ๋ธ๋ก(3)",
"maze_hints_content_6": "๋ชจ๋ ~๋ฅผ ๋ง๋ ๋ ๊น์ง ๋ธ๋ก์ ์ด๋ป๊ฒ ๋์ํ๋์?",
"maze_hints_detail_6": "๋ชจ๋ {ํ์ผ}์ ํ ๋ฒ์ฉ ๋์ฐฉํ ๋๊น์ง ๊ทธ ์์ ์๋ ๋ธ๋ก์ ๋ฐ๋ณตํด์ ์คํํด.<br>๋ชจ๋ {ํ์ผ}์ ํ ๋ฒ์ฉ ๋์ฐฉํ๋ฉด ๋ฐ๋ณต์ด ๋ฉ์ถ๊ฒ ๋ ๊ฑฐ์ผ.",
"maze_hints_title_7": "ํน๋ณ ํํธ",
"maze_hints_content_7": "๋๋ฌด ์ด๋ ค์์. ๋์์ฃผ์ธ์.",
"maze_hints_detail_7": "๋ด๊ฐ ๊ฐ์ผํ๋ ๊ธธ์ ์์ธํ ๋ด. ์์ ์ฌ๊ฐํ 4๊ฐ๊ฐ ๋ณด์ฌ?<br>์์ ์ฌ๊ฐํ์ ๋๋ ๋ธ๋ก์ ๋ง๋ค๊ณ , ๋ฐ๋ณตํ๊ธฐ๋ฅผ ์ฌ์ฉํด ๋ณด๋๊ฒ์ ์ด๋?",
"maze_hints_title_8": "์ฝ์",
"maze_hints_content_8": "์ฝ์ํ๊ธฐ/์ฝ์ ๋ถ๋ฌ์ค๊ธฐ ๋ฌด์์ธ๊ฐ์? ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"maze_hints_detail_8": "๋๋ฅผ ์์ง์ด๊ธฐ ์ํด ์์ฃผ ์ฐ๋ ๋ธ๋ก๋ค์ ๋ฌถ์์ '์ฝ์ํ๊ธฐ' ๋ธ๋ก ์๋์ ์กฐ๋ฆฝํ์ฌ ์ฝ์์ผ๋ก ๋ง๋ค ์ ์์ด.<br>ํ๋ฒ ๋ง๋ค์ด ๋์ ์ฝ์์ '์ฝ์ ๋ถ๋ฌ์ค๊ธฐ' ๋ธ๋ก์ ์ฌ์ฉํ์ฌ ์ฌ๋ฌ ๋ฒ ๊บผ๋ด ์ธ ์ ์๋ค๊ตฌ.",
"ai_hints_title_1_1": "๊ฒ์์ ๋ชฉํ",
"ai_hints_content_1_1": "๋์ ํผํด ์ค๋ฅธ์ชฝ ํ์ฑ๊น์ง ์์ ํ๊ฒ ์ด๋ํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_detail_1_1": "๋์ ํผํด ์ค๋ฅธ์ชฝ ํ์ฑ๊น์ง ์์ ํ๊ฒ ์ด๋ํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_title_1_2": "์์ ๋ฐฉ๋ฒ",
"ai_hints_content_1_2": "์ด๋ป๊ฒ ์์ํ ์ ์๋์?",
"ai_hints_detail_1_2": "1. ๋ธ๋ก ๊พธ๋ฌ๋ฏธ์์ ์ํ๋ ๋ธ๋ก์ ๊บผ๋ด์ด โ์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋โ ๋ธ๋ก๊ณผ ์ฐ๊ฒฐํด๋ด<br>2. ๋ค ์กฐ๋ฆฝํ์ผ๋ฉด, ์์์ ๋๋ฌ๋ด<br>3. ๋๋ ๋ค๊ฐ ์กฐ๋ฆฝํ ๋ธ๋ก๋๋ก ์์์๋ถํฐ ์์๋๋ก ์์ง์ผ๊ฒ",
"ai_hints_title_1_3": "์์ง์ด๊ฒ ํ๊ธฐ",
"ai_hints_content_1_3": "์ํธ๋ฆฌ๋ด์ ์ด๋ป๊ฒ ์์ง์ด๋์?",
"ai_hints_detail_1_3": "๋๋ ์์ชฝ์ผ๋ก ๊ฐ๊ฑฐ๋ ์์ผ๋ก ๊ฐ๊ฑฐ๋ ์๋์ชฝ์ผ๋ก ๊ฐ ์ ์์ด.<br>๋ฐฉํฅ์ ์ ํ ๋์๋ ๋์ด ์๋ ๋ฐฉํฅ์ผ๋ก ์์ ํ๊ฒ ๊ฐ ์ ์๋๋ก ํด์ค.<br>๋๋ฅผ ํ๋ฉด ๋ฐ์ผ๋ก ๋ด๋ณด๋ด๋ฉด ์ฐ์ฃผ๋ฏธ์๊ฐ ๋์ด๋ฒ๋ฆฌ๋ ์กฐ์ฌํด!",
"ai_hints_title_2_1": "๊ฒ์์ ๋ชฉํ",
"ai_hints_content_2_1": "๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ผ๋ก ๋๋ค์ ํผํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_detail_2_1": "๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ผ๋ก ๋๋ค์ ํผํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_title_2_2": "๋ฐ๋ณต ๋ธ๋ก",
"ai_hints_content_2_2": "๋ฐ๋ณต ๋ธ๋ก์ ๋ฌด์จ ๋ธ๋ก์ธ๊ฐ์?",
"ai_hints_detail_2_2": "ํด~ ์ด๋ฒ์ ๊ฐ์ผ ํ ๊ธธ์ ๋๋ฌด ๋ฉ์ด์ ํ๋์ฉ ์กฐ๋ฆฝํ๊ธฐ๋ ํ๋ค๊ฒ ๋๊ฑธ? ๋ฐ๋ณตํ๊ธฐ๋ธ๋ก์ ์ฌ์ฉํด๋ด.<br>๋๊ฐ์ด ๋ฐ๋ณต๋๋ ๋ธ๋ก๋ค์ ๋ฐ๋ณตํ๊ธฐ ๋ธ๋ก์ผ๋ก ๋ฌถ์ด์ฃผ๋ฉด ์์ฃผ ๊ธด ๋ธ๋ก์ ์งง๊ฒ ์ค์ฌ์ค ์ ์์ด!",
"ai_hints_content_3_1": "๋ง์ฝ ๋ธ๋ก์ผ๋ก ๋์ ํผํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_title_3_2": "๋ง์ฝ ๋ธ๋ก(1)",
"ai_hints_content_3_2": "๋ง์ฝ ~๋ผ๋ฉด ๋ธ๋ก์ ์ด๋ป๊ฒ ๋์ํ๋์?",
"ai_hints_detail_3_2": "๋ง์ฝ ์์ ~๊ฐ ์๋ค๋ฉด / ์๋๋ฉด ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ๋ด ๋ฐ๋ก ์์ ๋์ด ์๋์ง ์๋์ง ํ์ธํด์ ๋ค๋ฅด๊ฒ ์์ง์ผ ์ ์์ด~<br>๋ง์ฝ ๋ด ๋ฐ๋ก ์์ ๋์ด ์๋ค๋ฉด '๋ง์ฝ' ์๋์ ์๋ ๋ธ๋ก๋ค์ ์คํํ๊ณ ๋์ด ์์ผ๋ฉด '์๋๋ฉด' ์์ ์๋ ๋ธ๋ก๋ค์ ์คํํ ๊ฑฐ์ผ.<br>๋ด ๋ฐ๋ก ์์ ๋์ด ์์ ๋์ ์์ ๋, ์ด๋ป๊ฒ ์์ง์ผ์ง ์ ๊ฒฐ์ ํด์ค~",
"ai_hints_content_4_1": "๋ ์ด๋์ ์ฌ์ฉ ๋ฐฉ๋ฒ์ ์ตํ๊ณ ๋์ ํผํด๋ณด์ธ์.",
"ai_hints_detail_4_1": "๋ ์ด๋์ ์ฌ์ฉ ๋ฐฉ๋ฒ์ ์ตํ๊ณ ๋์ ํผํด๋ณด์ธ์.",
"ai_hints_title_4_2": "๋ ์ด๋(1)",
"ai_hints_content_4_2": "๋ ์ด๋๋ ๋ฌด์์ธ๊ฐ์? ์ด๋ป๊ฒ ํ์ฉํ ์ ์๋์?",
"ai_hints_detail_4_2": "๋ ์ด๋๋ ์ง๊ธ ๋ด๊ฐ ๋ฌผ์ฒด์ ์ผ๋ง๋ ๋จ์ด์ ธ ์๋์ง ์๋ ค์ฃผ๋ ๊ธฐ๊ณ์ผ.<br>๋ง์ฝ ๋ฐ๋ก ๋ด ์์ ๋ฌด์์ธ๊ฐ ์๋ค๋ฉด ์์ชฝ ๋ ์ด๋๋ '1'์ ๋ณด์ฌ์ค.<br>๋, ๋ ์ด๋๋ ํผ์ ์์ ๋ ๋ณด๋ค ๋ง์ฝ <์ฌ์ค>์ด๋ผ๋ฉด / ์๋๋ฉด ๋ธ๋ก๊ณผ<br> ๊ฐ์ด ์ฐ์ด๋ฉด ์์ฃผ ๊ฐ๋ ฅํ๊ฒ ์ธ ์ ์์ด.<br>์๋ฅผ ๋ค์ด ๋ด ์์ ๋ฌผ์ฒด์์ ๊ฑฐ๋ฆฌ๊ฐ 1๋ณด๋ค ํฌ๋ค๋ฉด ๋๋ ์์ ํ๊ฒ ์์ผ๋ก ๊ฐ ์ ์๊ฒ ์ง๋ง, ์๋๋ผ๋ฉด ์๋ ์๋์ชฝ์ผ๋ก ํผํ๋๋ก ํ ์ ์์ง.",
"ai_hints_title_4_3": "๋ง์ฝ ๋ธ๋ก(2)",
"ai_hints_content_4_3": "๋ง์ฝ <์ฌ์ค>์ด๋ผ๋ฉด ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"ai_hints_detail_4_3": "๋ง์ฝ <์ฌ์ค>์ด๋ผ๋ฉด / ์๋๋ฉด ๋ธ๋ก์ <์ฌ์ค> ์์ ์๋ ๋ด์ฉ์ด ๋ง์ผ๋ฉด '๋ง์ฝ' ์๋์ ์๋ ๋ธ๋ก์ ์คํํ๊ณ , ์๋๋ฉด '์๋๋ฉด' ์๋์ ์๋ ๋ธ๋ก์ ์คํํด.<br>์ด๋ค ์ํฉ์์ ๋ค๋ฅด๊ฒ ์์ง์ด๊ณ ์ถ์ ์ง๋ฅผ ์ ์๊ฐํด์ <์ฌ์ค> ์์ ์ ์ ํ ํ๋จ ์กฐ๊ฑด์ ๋ง๋ค์ด ๋ฃ์ด๋ด.<br>ํ๋จ ์กฐ๊ฑด์ ๋ง์กฑํด์ '๋ง์ฝ' ์๋์ ์๋ ๋ธ๋ก์ ์คํํ๊ณ ๋๋ฉด '์๋๋ฉด' ์๋์ ์๋ ๋ธ๋ก๋ค์ ์คํ๋์ง ์๋๋ค๋ ๊ฑธ ๊ธฐ์ตํด!",
"ai_hints_content_5_1": "๋ ์ด๋๋ฅผ ํ์ฉํด ๋์ ์ฝ๊ฒ ํผํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_detail_5_1": "๋ ์ด๋๋ฅผ ํ์ฉํด ๋์ ์ฝ๊ฒ ํผํ ์ ์๋๋ก ๋์์ฃผ์ธ์.",
"ai_hints_title_5_2": "๋ง์ฝ ๋ธ๋ก(3)",
"ai_hints_content_5_2": "๋ง์ฝ ๋ธ๋ก์ด ๊ฒน์ณ์ ธ ์์ผ๋ฉด ์ด๋ป๊ฒ ๋์ํ๋์?",
"ai_hints_detail_5_2": "๋ง์ฝ ~ / ์๋๋ฉด ๋ธ๋ก์์๋ ๋ง์ฝ ~ / ์๋๋ฉด ๋ธ๋ก์ ๋ฃ์ ์ ์์ด! ์ด๋ ๊ฒ ๋๋ฉด ๋ค์ํ ์ํฉ์์ ๋ด๊ฐ ์ด๋ป๊ฒ ํ๋ํด์ผ ํ ์ง ์ ํ ์ ์์ด.<br>์๋ฅผ ๋ค์ด ์์ ๋์ด ๊ธธ์ ๋ง๊ณ ์์๋์ ์์๋์ ํ๋์ ์ ํ๋ค์, ๋์ด ์์๋์ ์ํฉ์์๋ ์ํฉ์ ๋ฐ๋ผ ์์ชฝ์ผ๋ก ๊ฐ์ง ์๋์ชฝ์ผ๋ก ๊ฐ์ง ์ ํ ํ ์ ์์ด",
"ai_hints_title_6_1": "๋ ์ด๋(2)",
"ai_hints_content_6_1": "์์ชฝ ๋ ์ด๋์ ์๋์ชฝ ๋ ์ด๋์ ๊ฐ์ ๋น๊ตํ๊ณ ์ถ์ ๋ ์ด๋ป๊ฒ ํ๋์?",
"ai_hints_detail_6_1": "([์์ชฝ]๋ ์ด๋) ๋ธ๋ก์ ์์ชฝ ๋ฌผ์ฒด๊น์ง์ ๊ฑฐ๋ฆฌ๋ฅผ ๋ปํ๋ ๋ธ๋ก์ด์ผ.<br>์๋์ชฝ๊ณผ ์์ชฝ ์ค์์ ์ด๋ ์ชฝ์ ๋์ด ๋ ๋ฉ๋ฆฌ ์๋์ง ํ์ธํ๊ธฐ ์ํด์ ์ธ ์ ์๋ ๋ธ๋ก์ด์ง.<br>๋์ ํผํด๊ฐ๋ ๊ธธ์ ์ ํํ ๋์๋ ๋์ด ๋ฉ๋ฆฌ ๋จ์ด์ ธ ์๋ ์ชฝ์ผ๋ก ํผํ๋๊ฒ ์์ผ๋ก ๋ฉ๋ฆฌ ๊ฐ๋๋ฐ ์ ๋ฆฌํ ๊ฑฐ์ผ~",
"ai_hints_content_7_1": "์์ดํ
์ ํฅํด ์ด๋ํ์ฌ ๋์ ํผํด๋ณด์ธ์.",
"ai_hints_detail_7_1": "์์ดํ
์ ํฅํด ์ด๋ํ์ฌ ๋์ ํผํด๋ณด์ธ์.",
"ai_hints_title_7_2": "๋ฌผ์ฒด ์ด๋ฆ ํ์ธ",
"ai_hints_content_7_2": "์์ผ๋ก ๋ง๋ ๋ฌผ์ฒด์ ์ด๋ฆ์ ํ์ธํด์ ๋ฌด์์ ํ ์ ์๋์?",
"ai_hints_detail_7_2": "์์ดํ
์ ์ป๊ธฐ์ํด์๋ ์์ดํ
์ด ์ด๋์ ์๋์ง ํ์ธํ ํ์๊ฐ ์์ด. <br>๊ทธ๋ด ๋ ์ฌ์ฉํ ์ ์๋ ๋ธ๋ก์ด [์์ชฝ] ๋ฌผ์ฒด๋ [์์ดํ
]์ธ๊ฐ? ๋ธ๋ก์ด์ผ.<br>์ด ๋ธ๋ก์ ํ์ฉํ๋ฉด ์์ดํ
์ด ์ด๋ ์์น์ ์๋์ง ์ ์ ์๊ณ ์์ดํ
์ด ์๋ ๋ฐฉํฅ์ผ๋ก ์์ง์ด๋๋ก ๋ธ๋ก์ ์กฐ๋ฆฝํ ์ ์์ด.",
"ai_hints_content_8_1": "์์ดํ
์ ์ ์ ํ๊ฒ ์ฌ์ฉํด์ ๋์ ํผํด๋ณด์ธ์.",
"ai_hints_detail_8_1": "์์ดํ
์ ์ ์ ํ๊ฒ ์ฌ์ฉํด์ ๋์ ํผํด๋ณด์ธ์.",
"ai_hints_title_8_2": "์์ดํ
",
"ai_hints_content_8_2": "์์ดํ
์ ์ด๋ป๊ฒ ์ป๊ณ ์ฌ์ฉํ๋์?",
"ai_hints_detail_8_2": "๋๋ค์ ์ด๋ฆฌ์ ๋ฆฌ ์ ํผํด ๋๊ฐ๋๋ผ๋ ์์ด ๋ชจ๋ ๋๋ค๋ก ๊ฝ ๋งํ์์ ๋ ๋น ์ ธ๋๊ฐ ๋ฐฉ๋ฒ์ด ์๊ฒ ์ง? ๊ทธ๋ด ๋์๋ ์์ดํ
์ฌ์ฉ ๋ธ๋ญ์ ์ฌ์ฉํด๋ด. <br>์ด ๋ธ๋ก์ ๋ด ์์ ๋๋ค์ ๋ชจ๋ ์์ ๋ ๋ธ๋ก์ด์ผ.<br>๋จ, ์์ดํ
์ด ์์ด์ผ์ง๋ง ๋ธ๋ก์ ์ฌ์ฉํ ์ ์๊ณ , ์์ดํ
์ ์ด๋ฏธ์ง๋ฅผ ์ง๋๋ฉด ์ป์ ์ ์์ด.",
"ai_hints_content_9_1": "์ง๊ธ๊น์ง ๋ฐฐ์ด ๊ฒ๋ค์ ๋ชจ๋ ํ์ฉํด์ ์ต๋ํ ๋ฉ๋ฆฌ ๊ฐ๋ณด์ธ์.",
"ai_hints_detail_9_1": "์ง๊ธ๊น์ง ๋ฐฐ์ด ๊ฒ๋ค์ ๋ชจ๋ ํ์ฉํด์ ์ต๋ํ ๋ฉ๋ฆฌ ๊ฐ๋ณด์ธ์.",
"ai_hints_title_9_2": "๊ทธ๋ฆฌ๊ณ ",
"ai_hints_content_9_2": "๊ทธ๋ฆฌ๊ณ ๋ธ๋ก์ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?",
"ai_hints_detail_9_2": "๊ทธ๋ฆฌ๊ณ ๋ธ๋ก์๋ ์ฌ๋ฌ๊ฐ์ ์กฐ๊ฑด์ ๋ฃ์ ์ ์์ด, ๋ฃ์ ๋ชจ๋ ์กฐ๊ฑด์ด ์ฌ์ค์ผ๋๋ง ์ฌ์ค์ด ๋์ด ๋ง์ฝ ๋ธ๋ก ์์ ์๋ ๋ธ๋ก์ด ์คํ๋๊ณ , ํ๋๋ผ๋ ๊ฑฐ์ง์ด ์์ผ๋ฉด ๊ฑฐ์ง์ผ๋ก ์ธ์ํด์ ๊ทธ ์์ ์๋ ๋ธ๋ก์ ์คํํ์ง ์์",
"maze_text_goal_1": "move(); ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ๋ถํ ์์๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_2": "jump(); ๋ช
๋ น์ด๋ก ์ฅ์ ๋ฌผ์ ํผํด ๋ถํ ์์๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_3": "left(); right(); ๋ช
๋ น์ด๋ก ๋ถํ์์๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_4": "์ฌ๋ฌ๊ฐ์ง ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ๋ถํ์์๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_5": "๋ ๋ถํ์์์ ๋ค ๊ฐ ์ ์๋๋ก ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_6": "๋ ๋ถํ์์์ ๋ค ๊ฐ ์ ์๋๋ก ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_7": "for ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์น๊ตฌ๊ฐ ์๋ ๊ณณ ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_8": "for ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๊ณ , ์ฅ์ ๋ฌผ์ ํผํด ์น๊ตฌ๊ฐ ์๋ ๊ณณ ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_9": "while ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์น๊ตฌ๊ฐ ์๋ ๊ณณ ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_10": "if์ while ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์น๊ตฌ๊ฐ ์๋ ๊ณณ ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_11": "if์ while ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์น๊ตฌ๊ฐ ์๋ ๊ณณ ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_12": "if์ while ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์น๊ตฌ๊ฐ ์๋ ๊ณณ ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_13": "while๊ณผ for ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ๋ชจ๋ ์น๊ตฌ๋ค์ ๋ง๋ ์ ์๋๋ก ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_14": "while๊ณผ for ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ๋ชจ๋ ์น๊ตฌ๋ค์ ๋ง๋ ์ ์๋๋ก ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_15": "ํจ์๋ฅผ ๋ถ๋ฌ์์ ๋ฐฐํฐ๋ฆฌ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_16": "ํจ์์ ๋ช
๋ น์ด๋ฅผ ๋ฃ๊ณ ํจ์๋ฅผ ๋ถ๋ฌ์์ ๋ฐฐํฐ๋ฆฌ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_17": "ํจ์์ ๋ช
๋ น์ด๋ฅผ ๋ฃ๊ณ ํจ์๋ฅผ ๋ถ๋ฌ์์ ๋ฐฐํฐ๋ฆฌ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_18": "ํจ์์ ๋ช
๋ น์ด๋ฅผ ๋ฃ๊ณ ํจ์๋ฅผ ๋ถ๋ฌ์์ ๋ฐฐํฐ๋ฆฌ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_19": "ํจ์์ ๋ช
๋ น์ด๋ฅผ ๋ฃ๊ณ ํจ์๋ฅผ ๋ถ๋ฌ์์ ๋ฐฐํฐ๋ฆฌ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"maze_text_goal_20": "ํจ์์ ๋ค๋ฅธ๋ช
๋ น์ด๋ค์ ์์ด ์ฌ์ฉํ์ฌ ๋ฐฐํฐ๋ฆฌ๊น์ง ๋๋ฅผ ์ด๋์์ผ์ค!",
"above_radar": "์์ชฝ ๋ ์ด๋",
"above_radar_text_mode": "radar_up",
"bottom_radar": "์๋์ชฝ ๋ ์ด๋",
"bottom_radar_text_mode": "radar_down",
"front_radar": "์์ชฝ ๋ ์ด๋",
"front_radar_text_mode": "radar_right",
"above_object": "์์ชฝ ๋ฌผ์ฒด",
"above_object_text_mode": "object_up",
"front_object": "์์ชฝ ๋ฌผ์ฒด",
"front_object_text_mode": "object_right",
"below_object": "์๋์ชฝ ๋ฌผ์ฒด",
"below_object_text_mode": "object_down",
"destination": "๋ชฉ์ ์ง",
"asteroids": "๋",
"item": "์์ดํ
",
"wall": "๋ฒฝ",
"destination_text_mode": "destination",
"asteroids_text_mode": "stone",
"item_text_mode": "item",
"wall_text_mode": "wall",
"buy_now": "๊ตฌ๋งค๋ฐ๋ก๊ฐ๊ธฐ",
"goals": "๋ชฉํ",
"instructions": "์ด์ฉ ์๋ด",
"object_info": "์ค๋ธ์ ํธ ์ ๋ณด",
"entry_basic_mission": "์ํธ๋ฆฌ ๊ธฐ๋ณธ ๋ฏธ์
",
"entry_application_mission": "์ํธ๋ฆฌ ์์ฉ ๋ฏธ์
",
"maze_move_forward": "์์ผ๋ก ํ ์นธ ์ด๋",
"maze_when_run": "์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์๋",
"maze_turn_left": "์ผ์ชฝ์ผ๋ก ํ์ ",
"maze_turn_right": "์ค๋ฅธ์ชฝ์ผ๋ก ํ์ ",
"maze_repeat_times_1": "",
"maze_repeat_times_2": "๋ฒ ๋ฐ๋ณตํ๊ธฐ",
"maze_repeat_until_1": "",
"maze_repeat_until_2": "์ ๋ง๋ ๋๊น์ง ๋ฐ๋ณต",
"maze_call_function": "์ฝ์ ๋ถ๋ฌ์ค๊ธฐ",
"maze_function": "์ฝ์ํ๊ธฐ",
"maze_repeat_until_all_1": "๋ชจ๋ ",
"maze_repeat_until_all_2": "๋ง๋ ๋ ๊น์ง ๋ฐ๋ณต",
"command_guide": "๋ช
๋ น์ด ๋์๋ง",
"ai_success_msg_1": "๋๋ถ์ ๋ฌด์ฌํ ์ง๊ตฌ์ ๋์ฐฉํ ์ ์์์ด! ๊ณ ๋ง์!",
"ai_success_msg_2": "๋คํ์ด์ผ! ๋๋ถ์",
"ai_success_msg_3": "๋ฒ ๋งํผ ์์ชฝ์ผ๋ก ๊ฐ ์ ์์ด์ ์ง๊ตฌ์ ๊ตฌ์กฐ ์ ํธ๋ฅผ ๋ณด๋์ด! ์ด์ ์ง๊ตฌ์์ ๊ตฌ์กฐ๋๊ฐ ์ฌ๊ฑฐ์ผ! ๊ณ ๋ง์!",
"ai_success_msg_4": "์ข์์ด!",
"ai_cause_msg_1": "์ด๋ฐ, ์ด๋ป๊ฒ ์์ง์ฌ์ผ ํ ์ง ๋ ๋งํด์ค๋?",
"ai_cause_msg_2": "์์ด์ฟ ! ์ ๋ง๋ก ์ํํ์ด! ๋ค์ ๋์ ํด๋ณด์",
"ai_cause_msg_3": "์ฐ์์! ๊ฐ์ผํ ๊ธธ์์ ๋ฒ์ด๋๋ฒ๋ฆฌ๋ฉด ์ฐ์ฃผ ๋ฏธ์๊ฐ ๋๋ฒ๋ฆด๊บผ์ผ. ๋ค์ ๋์ ํด๋ณด์",
"ai_cause_msg_4": "๋๋ฌด ๋ณต์กํด, ์ด ๋ธ๋ก์ ์จ์ ์์ง์ฌ๋ณผ๋?",
"ai_move_forward": "์์ผ๋ก ๊ฐ๊ธฐ",
"ai_move_above": "์์ชฝ์ผ๋ก ๊ฐ๊ธฐ",
"ai_move_under": "์๋์ชฝ์ผ๋ก ๊ฐ๊ธฐ",
"ai_repeat_until_dest": "๋ชฉ์ ์ง์ ๋๋ฌ ํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ",
"ai_if_front_1": "๋ง์ฝ ์์",
"ai_if_front_2": "๊ฐ ์๋ค๋ฉด",
"ai_else": "์๋๋ฉด",
"ai_if_1": "๋ง์ฝ",
"ai_if_2": "์ด๋ผ๋ฉด",
"ai_use_item": "์์ดํ
์ฌ์ฉ",
"ai_radar": "๋ ์ด๋",
"ai_above": "์์ชฝ",
"ai_front": "์์ชฝ",
"ai_under": "์๋์ชฝ",
"ai_object_is_1": "",
"ai_object_is_2": "๋ฌผ์ฒด๋",
"challengeMission": "๋ค๋ฅธ ๋ฏธ์
๋์ ํ๊ธฐ",
"withTeacher": "ํจ๊ป ๋ง๋ ์ ์๋๋ค",
"host": "์ฃผ์ต",
"support": "ํ์",
"subjectivity": "์ฃผ๊ด",
"learnMore": " ๋ ๋ฐฐ์ฐ๊ณ ์ถ์ด์",
"ai_object_is_3": "์ธ๊ฐ?",
"stage_is_not_available": "์์ง ์งํํ ์ ์๋ ์คํ
์ด์ง์
๋๋ค. ์์๋๋ก ์คํ
์ด์ง๋ฅผ ์งํํด ์ฃผ์ธ์.",
"progress_not_saved": "์งํ์ํฉ์ด ์ ์ฅ๋์ง ์์ต๋๋ค.",
"want_refresh": "์ด ํ์ด์ง๋ฅผ ์๋ก๊ณ ์นจ ํ์๊ฒ ์ต๋๊น?",
"monthly_entry_grade": "์ด๋ฑํ๊ต 3ํ๋
~ ์คํ๊ต 3ํ๋
",
"monthly_entry_contents": "๋งค์ ๋ฐ๊ฐ๋๋ ์๊ฐ์ํธ๋ฆฌ์ ํจ๊ป ์ํํธ์จ์ด ๊ต์ก์ ์์ํด ๋ณด์ธ์! ์ฐจ๊ทผ์ฐจ๊ทผ ๋ฐ๋ผํ๋ฉฐ ์ฝ๊ฒ ์ตํ ์ ์๋๋ก ๊ฐ๋ณ๊ฒ ๊ตฌ์ฑ๋์ด์์ต๋๋ค. ๊ธฐ๋ณธ, ์์ฉ ์ฝํ
์ธ ์ ๋ ๋์๊ฐ๊ธฐ๊น์ง! ๋งค์ ์
๋ฐ์ดํธ๋๋ 8๊ฐ์ ์ฝํ
์ธ ์ ๊ต์ฌ๋ฅผ ๋ง๋๋ณด์ธ์~",
"monthly_entry_etc1": "*๋ฉ์ธ ํ์ด์ง์ ์๊ฐ ์ํธ๋ฆฌ ์ถ์ฒ์ฝ์ค๋ฅผ ํ์ฉํ๋ฉด ๋์ฑ ์ฝ๊ฒ ์์
์ ํ ์ ์์ต๋๋ค.",
"monthly_entry_etc2": "*์๊ฐ์ํธ๋ฆฌ๋ ํ๊ธฐ ์ค์๋ง ๋ฐ๊ฐ๋ฉ๋๋ค.",
"group_make_lecture_1": "๋ด๊ฐ ๋ง๋ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"group_make_lecture_2": "'๋ง๋ค๊ธฐ>์คํ ๊ฐ์ ๋ง๋ค๊ธฐ'์์",
"group_make_lecture_3": "์ฐ๋ฆฌ๋ฐ ํ์ต๋ด์ฉ์ ์ถ๊ฐํ๊ณ ์ถ์ ๊ฐ์๋ฅผ ๋ง๋ค์ด ์ฃผ์ธ์.",
"group_make_lecture_4": "๊ฐ์ ๋ง๋ค๊ธฐ",
"group_add_lecture_1": "๊ด์ฌ ๊ฐ์๊ฐ ์์ต๋๋ค.",
"group_add_lecture_2": "'ํ์ตํ๊ธฐ>์คํ ๊ฐ์> ๊ฐ์'์์ ์ฐ๋ฆฌ๋ฐ ํ์ต๋ด์ฉ์",
"group_add_lecture_3": "์ถ๊ฐํ๊ณ ์ถ์ ๊ฐ์๋ฅผ ๊ด์ฌ๊ฐ์๋ก ๋ฑ๋กํด ์ฃผ์ธ์.",
"group_add_lecture_4": "๊ฐ์ ๋ณด๊ธฐ",
"group_make_course_1": "๋ด๊ฐ ๋ง๋ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"group_make_course_2": "'๋ง๋ค๊ธฐ > ์คํ ๊ฐ์ ๋ง๋ค๊ธฐ> ๊ฐ์ ๋ชจ์ ๋ง๋ค๊ธฐ'์์",
"group_make_course_3": "ํ์ต๋ด์ฉ์ ์ถ๊ฐํ๊ณ ์ถ์ ๊ฐ์ ๋ชจ์์ ๋ง๋ค์ด ์ฃผ์ธ์.",
"group_make_course_4": "๊ฐ์ ๋ชจ์ ๋ง๋ค๊ธฐ",
"group_add_course_1": "๊ด์ฌ ๊ฐ์ ๋ชจ์์ด ์์ต๋๋ค.",
"group_add_course_2": "'ํ์ตํ๊ธฐ > ์คํ ๊ฐ์ > ๊ฐ์ ๋ชจ์'์์ ์ฐ๋ฆฌ๋ฐ ํ์ต๋ด์ฉ์",
"group_add_course_3": "์ถ๊ฐํ๊ณ ์ถ์ ๊ฐ์ ๋ชจ์์ ๊ด์ฌ ๊ฐ์ ๋ชจ์์ผ๋ก ๋ฑ๋กํด ์ฃผ์ธ์.",
"group_add_course_4": "๊ฐ์ ๋ชจ์ ๋ณด๊ธฐ",
"hw_main_title": "ํ๋ก๊ทธ๋จ ๋ค์ด๋ก๋",
"hw_desc_wrapper": "์ํธ๋ฆฌ ํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ๊ณผ ์คํ๋ผ์ธ ๋ฒ์ ์ด \n์๋น์ค๋ฅผ ํ์ธต ๋ ๊ฐํํด ์
๊ทธ๋ ์ด๋ ๋์์ต๋๋ค.\n์
๋ฐ์ดํธ ๋ ํ๋ก๊ทธ๋จ์ ์ค์นํด์ฃผ์ธ์!",
"hw_downolad_link": "ํ๋์จ์ด ์ฐ๊ฒฐ \nํ๋ก๊ทธ๋จ ๋ค์ด๋ก๋",
"save_as_image_all": "๋ชจ๋ ์ฝ๋ ์ด๋ฏธ์ง๋ก ์ ์ฅํ๊ธฐ",
"save_as_image": "์ด๋ฏธ์ง๋ก ์ ์ฅํ๊ธฐ",
"maze_perfect_success": "๋ฉ์ ธ! ์๋ฒฝํ๊ฒ ์ฑ๊ณตํ์ด~",
"maze_success_many_block_1": "์ข์",
"maze_fail_obstacle_remain": "์น๊ตฌ๋ค์ด ๋ค์น์ง ์๋๋ก ๋ชจ๋ <span class='bitmap_obstacle_spider'></span>์ ์์ ์ค.",
"maze_fail_item_remain": "์๋ฆฌ ๊ณต์ฃผ๋ฅผ ๊ตฌํ๊ธฐ ์ํด ๋ชจ๋ ๋ฏธ๋ค๋์ ๋ชจ์ ์์ค.",
"maze_fail_not_found_destory_object": "์๋ฌด๊ฒ๋ ์๋ ๊ณณ์ ๋ฅ๋ ฅ์ ๋ญ๋นํ๋ฉด ์ ๋ผ!",
"maze_fail_not_found_destory_monster": "๋ชฌ์คํฐ๊ฐ ์๋ ๊ณณ์ ๊ณต๊ฒฉ์ ํ๋ฉด ์ ๋ผ!",
"maze_fail_more_move": "๋ชฉ์ ์ง๊น์ง๋ ์ข ๋ ์์ง์ฌ์ผ ํด!",
"maze_fail_wall_crash": "์ผ์! ๊ฑฐ๊ธด ๊ฐ ์ ์๋ ๊ณณ์ด์ผ!",
"maze_fail_contact_brick": "์๊ตฌ๊ตฌโฆ ๋ถ๋ชํ๋ค!",
"maze_fail_contact_iron1": "์ผ์! ์ฅ์ ๋ฌผ์ ๋ถ๋ชํ๋ฒ๋ ธ์ด",
"maze_fail_contact_iron2": "์ผ์! ์ฅ์ ๋ฌผ์ด ๋จ์ด์ ธ์ ๋ค์ณ๋ฒ๋ ธ์ด. ์ฅ์ ๋ฌผ์ด ๋ด๋ ค์ค๊ธฐ์ ์ ์์ง์ฌ์ค..",
"maze_fail_fall_hole": "์, ํจ์ ์ ๋น ์ ธ ๋ฒ๋ ธ์ด...",
"maze_fail_hit_unit": "๋ชฌ์คํฐ์๊ฒ ๋นํด๋ฒ๋ ธ์ด! ์ํํ ๋ชฌ์คํฐ๋ฅผ ๋ฌผ๋ฆฌ์น๊ธฐ ์ํด ํํธ ๋ ๋ฆฌ๊ธฐ ๋ธ๋ก์ ์ฌ์ฉํด์ค!",
"maze_fail_hit_unit2": "์ฝ, ๋ชฌ์คํฐ์๊ฒ ๊ณต๊ฒฉ๋นํ๋ค! ๋ ์นธ ๋จ์ด์ง ๊ณณ์์ ๊ณต๊ฒฉํด์ค!",
"maze_fail_contact_spider": "๊ฑฐ๋ฏธ์ง์ ๊ฑธ๋ ค ์์ง์ผ ์๊ฐ ์์ด...",
"maze_success_perfect": "๋ฉ์ ธ! ์๋ฒฝํ๊ฒ ์ฑ๊ณตํ์ด~",
"maze_success_block_excess": "์ข์! %1๊ฐ์ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ฑ๊ณตํ์ด! <br> ํ์ง๋ง, %2๊ฐ์ ๋ธ๋ก๋ง์ผ๋ก ์ฑ๊ณตํ๋ ๋ฐฉ๋ฒ๋ ์์ด. ๋ค์ ๋์ ํด ๋ณด๋ ๊ฑด ์ด๋?",
"maze_success_not_essential": "์ข์! %1๊ฐ์ ๋ธ๋ก์ ์ฌ์ฉํด์ ์ฑ๊ณตํ์ด! <br>ํ์ง๋ง ์ด ๋ธ๋ก์ ์ฌ์ฉํ๋ฉด ๋ ์ฝ๊ฒ ํด๊ฒฐํ ์ ์์ด. ๋ค์ ๋์ ํด ๋ณด๋ ๊ฑด ์ด๋?",
"maze_success_final_perfect_basic": "์ข์! ์๋ฆฌ ๊ณต์ฃผ๊ฐ ์ด๋ ์๋์ง ์ฐพ์์ด! ์ด์ ์๋ฆฌ ๊ณต์ฃผ๋ฅผ ๊ตฌํ ์ ์์ ๊ฑฐ์ผ!",
"maze_success_final_block_excess_basic": "์ข์! ์๋ฆฌ ๊ณต์ฃผ๊ฐ ์ด๋ ์๋์ง ์ฐพ์์ด! ์ด์ ์๋ฆฌ ๊ณต์ฃผ๋ฅผ ๊ตฌํ ์ ์์ ๊ฑฐ์ผ!%1๊ฐ์ ๋ธ๋ก์ ์ฌ์ฉํ๋๋ฐ, %2๊ฐ์ ๋ธ๋ก๋ง์ผ๋ก ์ฑ๊ณตํ๋ ๋ฐฉ๋ฒ๋ ์์ด. ๋ค์ ํด๋ณผ๋?",
"maze_success_final_perfect_advanced": "์๋ฆฌ ๊ณต์ฃผ๊ฐ ์๋ ๊ณณ๊น์ง ๋์ฐฉํ์ด! ์ด์ ์
๋น ๋ฉํผ์คํ ๋ฅผ ๋ฌผ๋ฆฌ์น๊ณ ์๋ฆฌ๋ฅผ ๊ตฌํ๋ฉด ๋ผ!",
"maze_success_final_block_excess_advanced": "์๋ฆฌ ๊ณต์ฃผ๊ฐ ์๋ ๊ณณ๊น์ง ๋์ฐฉํ์ด! ์ด์ ์
๋น ๋ฉํผ์คํ ๋ฅผ ๋ฌผ๋ฆฌ์น๊ณ ์๋ฆฌ๋ฅผ ๊ตฌํ๋ฉด ๋ผ!%1๊ฐ์ ๋ธ๋ก์ ์ฌ์ฉํ๋๋ฐ, %2๊ฐ์ ๋ธ๋ก๋ง์ผ๋ก ์ฑ๊ณตํ๋ ๋ฐฉ๋ฒ๋ ์์ด. ๋ค์ ํด๋ณผ๋?",
"maze_success_final_distance": "์ข์! ๋๋์ด ์ฐ๋ฆฌ๊ฐ ์๋ฆฌ ๊ณต์ฃผ๋ฅผ ๋ฌด์ฌํ ๊ตฌํด๋์ด. ๊ตฌํ ์ ์๋๋ก ๋์์ค์ ์ ๋ง ๊ณ ๋ง์!<br>%1์นธ ์์ง์๋๋ฐ ๋ค์ ํ ๋ฒ ๋ค์ํด์ 60์นธ๊น์ง ๊ฐ๋ณผ๋?",
"maze_success_final_perfect_ai": "์ข์์ด! ๋๋์ด ์ฐ๋ฆฌ๊ฐ ์๋ฆฌ ๊ณต์ฃผ๋ฅผ ๋ฌด์ฌํ ๊ตฌํด๋์ด. ๊ตฌํ ์ ์๋๋ก ๋์์ค์ ์ ๋ง ๊ณ ๋ง์!",
"maze_distance1": "๊ฑฐ๋ฆฌ 1",
"maze_distance2": "๊ฑฐ๋ฆฌ 2"
};
Lang.Msgs = {
"usable_object": "์ฌ์ฉ๊ฐ๋ฅ ์ค๋ธ์ ํธ",
"shared_varaible": "๊ณต์ ๋ณ์",
"invalid_url": "์์ ์ฃผ์๋ฅผ ๋ค์ ํ์ธํด ์ฃผ์ธ์.",
"auth_only": "์ธ์ฆ๋ ์ฌ์ฉ์๋ง ์ด์ฉ์ด ๊ฐ๋ฅํฉ๋๋ค.",
"runtime_error": "์คํ ์ค๋ฅ",
"to_be_continue": "์ค๋น ์ค์
๋๋ค.",
"warn": "๊ฒฝ๊ณ ",
"error_occured": "๋ค์ ํ๋ฒ ์๋ํด ์ฃผ์ธ์. ๋ง์ฝ ๊ฐ์ ๋ฌธ์ ๊ฐ ๋ค์ ๋ฐ์ ํ๋ฉด '์ ์ ๋ฐ ๊ฑด์' ๊ฒ์ํ์ ๋ฌธ์ ๋ฐ๋๋๋ค. ",
"list_can_not_space": "๋ฆฌ์คํธ์ ์ด๋ฆ์ ๋น ์นธ์ด ๋ ์ ์์ต๋๋ค.",
"sign_can_not_space": "์ ํธ์ ์ด๋ฆ์ ๋น ์นธ์ด ๋ ์ ์์ต๋๋ค.",
"variable_can_not_space": "๋ณ์์ ์ด๋ฆ์ ๋น ์นธ์ด ๋ ์ ์์ต๋๋ค.",
"training_top_title": "์ฐ์ ํ๋ก๊ทธ๋จ",
"training_top_desc": "์ํธ๋ฆฌ ์ฐ์ ์ง์ ํ๋ก๊ทธ๋จ์ ์๋ดํด ๋๋ฆฝ๋๋ค.",
"training_main_title01": "์ ์๋์ ์ํ ๊ฐ์ฌ ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ",
"training_target01": "๊ต์ก ๋์ l ์ ์๋",
"training_sub_title01": "โ์ฐ๋ฆฌ ๊ต์ค์ SW๋ ๊ฐ๋ฅผ ๋ฌ์โ",
"training_desc01": "์ํํธ์จ์ด(SW)?๊ต์ ์ฐ์๊ฐ ํ์ํ ํ๊ต์ธ๊ฐ์?\nSW ๊ต์ ์ฐ์๊ฐ ํ์ํ ํ๊ต์?SW๊ต์ก ์ ๋ฌธ ์ ์๋(๊ณ ํฌํฐ์ฒ)?๋๋ ์ ๋ฌธ ๊ฐ์ฌ๋ฅผ ์ฐ๊ฒฐํด๋๋ฆฝ๋๋ค.",
"training_etc_ment01": "* ๊ฐ์๋น ๋ฑ ์ฐ์ ๋น์ฉ์ ํ๊ต์์ ์ง์ํด์ฃผ์
์ผํฉ๋๋ค.",
"training_main_title02": "์ํํธ์จ์ด(SW) ์ ๋ํ๊ต๋ก ์ฐพ์๊ฐ๋ ๊ต์์ฐ์",
"training_target02": "๊ต์ก ๋์ l SW ์ ๋, ์ฐ๊ตฌํ๊ต",
"training_sub_title02": "โ์ฐพ์๊ฐ, ๋๋๊ณ , ์ด์ด๊ฐ๋คโ",
"training_desc02": "SW ๊ต์ ์ฐ์๋ฅผ ์ ์ฒญํ ์ ๋ํ๊ต๋ฅผ ๋ฌด์์๋ก ์ถ์ฒจํ์ฌ ์๋ฐ๊ธฐ(4,5,6์)์\nํ๋ฐ๊ธฐ(9,10,11์)์ ๊ฐ ์ง์ญ์ SW๊ต์ก ์ ๋ฌธ ์ ์๋(๊ณ ํฌํฐ์ฒ)๊ป์ ์์ฐจ๊ณ \n์ฌ๋ฏธ์๋ SW ๊ธฐ์ด ์ฐ์ ์งํ ๋ฐ ํ๋ถํ ๊ต์ก์ฌ๋ก๋ฅผ ๊ณต์ ํ๊ธฐ ์ํด ์ฐพ์๊ฐ๋๋ค.",
"training_etc_ment02": "",
"training_main_title03": "ํ๋ถ๋ชจ์ ํ์์ ์ํ ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ",
"training_target03": "๊ต์ก ๋์ l ํ๋ถ๋ชจ, ํ์",
"training_sub_title03": "โSW๋ฅผ ๋ ๊ฐ๊น์ด ๋ง๋๋ ์๊ฐโ",
"training_desc03": "ํ๋ถ๋ชจ์ ํ์๋ค์ ๋์์ผ๋ก ์ํํธ์จ์ด(SW) ์ฐ์๊ฐ ํ์ํ ํ๊ต์ ๊ฐ ์ง์ญ์ SW๊ต์ก ์ ๋ฌธ ์ ์๋(๊ณ ํฌํฐ์ฒ) ๋๋ ์ ๋ฌธ ๊ฐ์ฌ๋ฅผ ์ฐ๊ฒฐํด๋๋ฆฝ๋๋ค.",
"training_etc_ment03": "* ๊ฐ์๋น ๋ฑ ์ฐ์ ๋น์ฉ์ ํ๊ต์์ ์ง์ํด์ฃผ์
์ผํฉ๋๋ค.",
"training_apply": "์ ์ฒญํ๊ธฐ",
"training_ready": "์ค๋น์ค์
๋๋ค.",
"new_version_title": "์ต์ ๋ฒ์ ์ค์น ์๋ด",
"new_version_text1": "ํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ์ด",
"new_version_text2": "<strong>์ต์ ๋ฒ์ </strong>์ด ์๋๋๋ค.",
"new_version_text3": "์๋น์ค๋ฅผ ํ์ธต ๋ ๊ฐํํด ์
๋ฐ์ดํธ ๋",
"new_version_text4": "์ต์ ๋ฒ์ ์ ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ์ ์ค์นํด ์ฃผ์ธ์.",
"new_version_download": "์ต์ ๋ฒ์ ๋ค์ด๋ก๋<span class='download_icon'></span>",
"not_install_title": "๋ฏธ์ค์น ์๋ด",
"hw_download_text1": "ํ๋์จ์ด ์ฐ๊ฒฐ์ ์ํด์",
"hw_download_text2": "<strong>ํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ</strong>์ ์ค์นํด ์ฃผ์ธ์.",
"hw_download_text3": "ํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ์ด ์ค์น๋์ด ์์ง ์์ต๋๋ค.",
"hw_download_text4": "์ต์ ๋ฒ์ ์ ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ์ ์ค์นํด ์ฃผ์ธ์.",
"hw_download_btn": "์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ ๋ค์ด๋ก๋<span class='download_icon'></span>",
"not_support_browser": "์ง์ํ์ง ์๋ ๋ธ๋ผ์ฐ์ ์
๋๋ค."
};
Lang.Users = {
"auth_failed": "์ธ์ฆ์ ์คํจํ์์ต๋๋ค",
"birth_year": "ํ์ด๋ ํด",
"birth_year_before_1990": "1990๋
์ด์ ",
"edit_personal": "์ ๋ณด์์ ",
"email": "์ด๋ฉ์ผ",
"email_desc": "์ ์์์ด๋ ์ ๋ณด๋ฅผ ๋ฐ์ ์ ์ ์ด๋ฉ์ผ ์ฃผ์",
"email_inuse": "์ด๋ฏธ ๋ฑ๋ก๋ ๋ฉ์ผ์ฃผ์ ์
๋๋ค",
"email_match": "์ด๋ฉ์ผ ์ฃผ์๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์
๋ ฅํด ์ฃผ์ธ์",
"forgot_password": "์ํธ๋ฅผ ์์ผ์
จ์ต๋๊น?",
"job": "์ง์
",
"language": "์ธ์ด",
"name": "์ด๋ฆ",
"name_desc": "์ฌ์ดํธ๋ด์์ ํํ๋ ์ด๋ฆ ๋๋ ๋ณ๋ช
",
"name_not_empty": "์ด๋ฆ์ ๋ฐ๋์ ์
๋ ฅํ์ธ์",
"password": "์ํธ",
"password_desc": "์ต์ 4์์ด์ ์๋ฌธ์์ ์ซ์, ํน์๋ฌธ์",
"password_invalid": "์ํธ๊ฐ ํ๋ ธ์ต๋๋ค",
"password_long": "์ํธ๋ 4~20์ ์ฌ์ด์ ์๋ฌธ์์ ์ซ์, ํน์๋ฌธ์๋ก ์
๋ ฅํด ์ฃผ์ธ์",
"password_required": "์ํธ๋ ํ์์
๋ ฅ ํญ๋ชฉ์
๋๋ค",
"project_list": "์ํ ์กฐํ",
"regist": "๊ฐ์
์๋ฃ",
"rememberme": "์๋ ๋ก๊ทธ์ธ",
"repeat_password": "์ํธ ํ์ธ",
"repeat_password_desc": "์ํธ๋ฅผ ํ๋ฒ๋ ์
๋ ฅํด ์ฃผ์ธ์",
"repeat_password_not_match": "์ํธ๊ฐ ์ผ์นํ์ง ์์ต๋๋ค",
"sex": "์ฑ๋ณ",
"signup_required_for_save": "์ ์ฅ์ ํ๋ ค๋ฉด ๋ก๊ทธ์ธ์ด ํ์ํฉ๋๋ค.",
"username": "์์ด๋",
"username_desc": "๋ก๊ทธ์ธ์ ์ฌ์ฉํ ์์ด๋",
"username_inuse": "์ด๋ฏธ ์ฌ์ฉ์ค์ธ ์์ด๋ ์
๋๋ค",
"username_long": "์์ด๋๋ 4~20์ ์ฌ์ด์ ์๋ฌธ์๋ก ์
๋ ฅํด ์ฃผ์ธ์",
"username_unknown": "์กด์ฌํ์ง ์๋ ์ฌ์ฉ์ ์
๋๋ค"
};
Lang.Workspace = {
"SelectShape": "์ด๋",
"SelectCut": "์๋ฅด๊ธฐ",
"Pencil": "ํ",
"Line": "์ง์ ",
"Rectangle": "์ฌ๊ฐํ",
"Ellipse": "์",
"Text": "๊ธ์์",
"Fill": "์ฑ์ฐ๊ธฐ",
"Eraser": "์ง์ฐ๊ธฐ",
"Magnifier": "ํ๋/์ถ์",
"block_helper": "๋ธ๋ก ๋์๋ง",
"new_project": "์ ํ๋ก์ ํธ",
"add_object": "์ค๋ธ์ ํธ ์ถ๊ฐํ๊ธฐ",
"all": "์ ์ฒด",
"animal": "๋๋ฌผ",
"arduino_entry": "์๋์ด๋
ธ ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ",
"arduino_program": "์๋์ด๋
ธ ํ๋ก๊ทธ๋จ",
"arduino_sample": "์ํธ๋ฆฌ ์ฐ๊ฒฐ๋ธ๋ก",
"arduino_driver": "์๋์ด๋
ธ ๋๋ผ์ด๋ฒ",
"cannot_add_object": "์คํ์ค์๋ ์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค.",
"cannot_add_picture": "์คํ์ค์๋ ๋ชจ์์ ์ถ๊ฐํ ์ ์์ต๋๋ค.",
"cannot_add_sound": "์คํ์ค์๋ ์๋ฆฌ๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค.",
"cannot_edit_click_to_stop": "์คํ์ค์๋ ์์ ํ ์ ์์ต๋๋ค.\nํด๋ฆญํ์ฌ ์ ์งํ๊ธฐ.",
"cannot_open_private_project": "๋น๊ณต๊ฐ ์ํ์ ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค. ํ์ผ๋ก ์ด๋ํฉ๋๋ค.",
"cannot_save_running_project": "์คํ ์ค์๋ ์ ์ฅํ ์ ์์ต๋๋ค.",
"character_gen": "์บ๋ฆญํฐ ๋ง๋ค๊ธฐ",
"check_runtime_error": "๋นจ๊ฐ์์ผ๋ก ํ์๋ ๋ธ๋ก์ ํ์ธํด ์ฃผ์ธ์.",
"context_download": "PC์ ์ ์ฅ",
"context_duplicate": "๋ณต์ ",
"context_remove": "์ญ์ ",
"context_rename": "์ด๋ฆ ์์ ",
"coordinate": "์ขํ",
"create_function": "ํจ์ ๋ง๋ค๊ธฐ",
"direction": "์ด๋ ๋ฐฉํฅ",
"drawing": "์ง์ ๊ทธ๋ฆฌ๊ธฐ",
"enter_list_name": "์๋ก์ด ๋ฆฌ์คํธ์ ์ด๋ฆ์ ์
๋ ฅํ์ธ์(10๊ธ์ ์ดํ)",
"enter_name": "์๋ก์ด ์ด๋ฆ์ ์
๋ ฅํ์ธ์",
"enter_new_message": "์๋ก์ด ์ ํธ์ ์ด๋ฆ์ ์
๋ ฅํ์ธ์.",
"enter_variable_name": "์๋ก์ด ๋ณ์์ ์ด๋ฆ์ ์
๋ ฅํ์ธ์(10๊ธ์ ์ดํ)",
"family": "์ํธ๋ฆฌ๋ด ๊ฐ์กฑ",
"fantasy": "ํํ์ง/๊ธฐํ",
"file_new": "์๋ก ๋ง๋ค๊ธฐ",
"file_open": "์จ๋ผ์ธ ์ํ ๋ถ๋ฌ์ค๊ธฐ",
"file_upload": "์คํ๋ผ์ธ ์ํ ๋ถ๋ฌ์ค๊ธฐ",
"file_upload_login_check_msg": "์คํ๋ผ์ธ ์ํ์ ๋ถ๋ฌ์ค๊ธฐ ์ํด์๋ ๋ก๊ทธ์ธ์ ํด์ผ ํฉ๋๋ค.",
"file_save": "์ ์ฅํ๊ธฐ",
"file_save_as": "๋ณต์ฌ๋ณธ์ผ๋ก ์ ์ฅํ๊ธฐ",
"file_save_download": "๋ด ์ปดํจํฐ์ ์ ์ฅํ๊ธฐ",
"func": "ํจ์",
"function_create": "ํจ์ ๋ง๋ค๊ธฐ",
"function_add": "ํจ์ ์ถ๊ฐ",
"interface": "์ธํฐํ์ด์ค",
"landscape": "๋ฐฐ๊ฒฝ",
"list": "๋ฆฌ์คํธ",
"list_add_calcel": "๋ฆฌ์คํธ ์ถ๊ฐ ์ทจ์",
"list_add_calcel_msg": "๋ฆฌ์คํธ ์ถ๊ฐ๋ฅผ ์ทจ์ํ์์ต๋๋ค.",
"list_add_fail": "๋ฆฌ์คํธ ์ถ๊ฐ ์คํจ",
"list_add_fail_msg1": "๊ฐ์ ์ด๋ฆ์ ๋ฆฌ์คํธ๊ฐ ์ด๋ฏธ ์กด์ฌํฉ๋๋ค.",
"list_add_fail_msg2": "๋ฆฌ์คํธ์ ์ด๋ฆ์ด ์ ์ ํ์ง ์์ต๋๋ค.",
"list_add_ok": "๋ฆฌ์คํธ ์ถ๊ฐ ์๋ฃ",
"list_add_ok_msg": "์(๋ฅผ) ์ถ๊ฐํ์์ต๋๋ค.",
"list_create": "๋ฆฌ์คํธ ์ถ๊ฐ",
"list_dup": "๊ฐ์ ์ด๋ฆ์ ๋ฆฌ์คํธ๊ฐ ์ด๋ฏธ ์กด์ฌํฉ๋๋ค.",
"list_newname": "์๋ก์ด ์ด๋ฆ",
"list_remove": "๋ฆฌ์คํธ ์ญ์ ",
"list_rename": "๋ฆฌ์คํธ ์ด๋ฆ ๋ณ๊ฒฝ",
"list_rename_failed": "๋ฆฌ์คํธ ์ด๋ฆ ๋ณ๊ฒฝ ์คํจ",
"list_rename_ok": "๋ฆฌ์คํธ์ ์ด๋ฆ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ณ๊ฒฝ ๋์์ต๋๋ค.",
"list_too_long": "๋ฆฌ์คํธ์ ์ด๋ฆ์ด ๋๋ฌด ๊น๋๋ค.",
"message": "์ ํธ",
"message_add_cancel": "์ ํธ ์ถ๊ฐ ์ทจ์",
"message_add_cancel_msg": "์ ํธ ์ถ๊ฐ๋ฅผ ์ทจ์ํ์์ต๋๋ค.",
"message_add_fail": "์ ํธ ์ถ๊ฐ ์คํจ",
"message_add_fail_msg": "๊ฐ์ ์ด๋ฆ์ ์ ํธ๊ฐ ์ด๋ฏธ ์กด์ฌํฉ๋๋ค.",
"message_add_ok": "์ ํธ ์ถ๊ฐ ์๋ฃ",
"message_add_ok_msg": "์(๋ฅผ) ์ถ๊ฐํ์์ต๋๋ค.",
"message_create": "์ ํธ ์ถ๊ฐ",
"message_dup": "๊ฐ์ ์ด๋ฆ์ ์ ํธ๊ฐ ์ด๋ฏธ ์กด์ฌํฉ๋๋ค.",
"message_remove": "์ ํธ ์ญ์ ",
"message_remove_canceled": "์ ํธ ์ญ์ ๋ฅผ ์ทจ์ํ์์ต๋๋ค.",
"message_rename": "์ ํธ ์ด๋ฆ์ ๋ณ๊ฒฝํ์์ต๋๋ค.",
"message_rename_failed": "์ ํธ ์ด๋ฆ ๋ณ๊ฒฝ์ ์คํจํ์์ต๋๋ค. ",
"message_rename_ok": "์ ํธ์ ์ด๋ฆ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ณ๊ฒฝ ๋์์ต๋๋ค.",
"message_too_long": "์ ํธ์ ์ด๋ฆ์ด ๋๋ฌด ๊น๋๋ค.",
"no_message_to_remove": "์ญ์ ํ ์ ํธ๊ฐ ์์ต๋๋ค",
"no_use": "์ฌ์ฉ๋์ง ์์",
"no_variable_to_remove": "์ญ์ ํ ๋ณ์๊ฐ ์์ต๋๋ค.",
"no_variable_to_rename": "๋ณ๊ฒฝํ ๋ณ์๊ฐ ์์ต๋๋ค.",
"object_not_found": "๋ธ๋ก์์ ์ง์ ํ ์ค๋ธ์ ํธ๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค.",
"object_not_found_for_paste": "๋ถ์ฌ๋ฃ๊ธฐ ํ ์ค๋ธ์ ํธ๊ฐ ์์ต๋๋ค.",
"people": "์ผ๋ฐ ์ฌ๋๋ค",
"picture_add": "๋ชจ์ ์ถ๊ฐ",
"plant": "์๋ฌผ",
"project": "์ํ",
"project_copied": "์ ์ฌ๋ณธ",
"PROJECTDEFAULTNAME": ['๋ฉ์ง', '์ฌ๋ฐ๋', '์ฐฉํ', 'ํฐ', '๋๋จํ', '์์๊ธด', 'ํ์ด์'],
"remove_object": "์ค๋ธ์ ํธ ์ญ์ ",
"remove_object_msg": "(์ด)๊ฐ ์ญ์ ๋์์ต๋๋ค.",
"removed_msg": "(์ด)๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์ญ์ ๋์์ต๋๋ค.",
"rotate_method": "ํ์ ๋ฐฉ์",
"rotation": "๋ฐฉํฅ",
"run": "์์ํ๊ธฐ",
"saved": "์ ์ฅ์๋ฃ",
"saved_msg": "(์ด)๊ฐ ์ ์ฅ๋์์ต๋๋ค.",
"save_failed": "์ ์ฅ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์์ต๋๋ค. ๋ค์ ์๋ํด ์ฃผ์ธ์.",
"select_library": "๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ํ",
"select_sprite": "์ ์ฉํ ์คํ๋ผ์ดํธ๋ฅผ ํ๋ ์ด์ ์ ํํ์ธ์.",
"shape_remove_fail": "๋ชจ์ ์ญ์ ์คํจ",
"shape_remove_fail_msg": "์ ์ด๋ ํ๋ ์ด์์ ๋ชจ์์ด ์กด์ฌํ์ฌ์ผ ํฉ๋๋ค.",
"shape_remove_ok": "๋ชจ์์ด ์ญ์ ๋์์ต๋๋ค. ",
"shape_remove_ok_msg": "์ด(๊ฐ) ์ญ์ ๋์์ต๋๋ค.",
"sound_add": "์๋ฆฌ ์ถ๊ฐ",
"sound_remove_fail": "์๋ฆฌ ์ญ์ ์คํจ",
"sound_remove_ok": "์๋ฆฌ ์ญ์ ์๋ฃ",
"sound_remove_ok_msg": "์ด(๊ฐ) ์ญ์ ๋์์ต๋๋ค.",
"stop": "์ ์งํ๊ธฐ",
"pause": "์ผ์์ ์ง",
"restart": "๋ค์์์",
"speed": "์๋ ์กฐ์ ํ๊ธฐ",
"tab_attribute": "์์ฑ",
"tab_code": "๋ธ๋ก",
"tab_picture": "๋ชจ์",
"tab_sound": "์๋ฆฌ",
"tab_text": "๊ธ์์",
"textbox": "๊ธ์์",
"textbox_edit": "๊ธ์์ ํธ์ง",
"textbox_input": "๊ธ์์์ ๋ด์ฉ์ ์
๋ ฅํด์ฃผ์ธ์.",
"things": "๋ฌผ๊ฑด",
"upload": "ํ์ผ ์
๋ก๋",
"upload_addfile": "ํ์ผ์ถ๊ฐ",
"variable": "๋ณ์",
"variable_add_calcel": "๋ณ์ ์ถ๊ฐ ์ทจ์",
"variable_add_calcel_msg": "๋ณ์ ์ถ๊ฐ๋ฅผ ์ทจ์ํ์์ต๋๋ค.",
"variable_add_fail": "๋ณ์ ์ถ๊ฐ ์คํจ",
"variable_add_fail_msg1": "๊ฐ์ ์ด๋ฆ์ ๋ณ์๊ฐ ์ด๋ฏธ ์กด์ฌํฉ๋๋ค.",
"variable_add_fail_msg2": "๋ณ์์ ์ด๋ฆ์ด ์ ์ ํ์ง ์์ต๋๋ค.",
"variable_add_ok": "๋ณ์ ์ถ๊ฐ ์๋ฃ",
"variable_add_ok_msg": "์(๋ฅผ) ์ถ๊ฐํ์์ต๋๋ค.",
"variable_create": "๋ณ์ ๋ง๋ค๊ธฐ",
"variable_add": "๋ณ์ ์ถ๊ฐ",
"variable_dup": "๊ฐ์ ์ด๋ฆ์ ๋ณ์๊ฐ ์ด๋ฏธ ์กด์ฌํฉ๋๋ค.",
"variable_newname": "์๋ก์ด ์ด๋ฆ",
"variable_remove": "๋ณ์ ์ญ์ ",
"variable_remove_canceled": "๋ณ์ ์ญ์ ๋ฅผ ์ทจ์ํ์์ต๋๋ค.",
"variable_rename": "๋ณ์ ์ด๋ฆ์ ๋ณ๊ฒฝํฉ๋๋ค. ",
"variable_rename_failed": "๋ณ์ ์ด๋ฆ ๋ณ๊ฒฝ์ ์คํจํ์์ต๋๋ค. ",
"variable_rename_msg": "'๋ณ์์ ์ด๋ฆ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ณ๊ฒฝ ๋์์ต๋๋ค.'",
"variable_rename_ok": "๋ณ์์ ์ด๋ฆ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ณ๊ฒฝ ๋์์ต๋๋ค.",
"variable_select": "๋ณ์๋ฅผ ์ ํํ์ธ์",
"variable_too_long": "๋ณ์์ ์ด๋ฆ์ด ๋๋ฌด ๊น๋๋ค.",
"vehicle": "ํ๊ฒ",
"add_object_alert_msg": "์ค๋ธ์ ํธ๋ฅผ ์ถ๊ฐํด์ฃผ์ธ์",
"add_object_alert": "๊ฒฝ๊ณ ",
"create_variable_block": "๋ณ์ ๋ง๋ค๊ธฐ",
"create_list_block": "๋ฆฌ์คํธ ๋ง๋ค๊ธฐ",
"Variable_Timer": "์ด์๊ณ",
"Variable_placeholder_name": "๋ณ์ ์ด๋ฆ",
"Variable_use_all_objects": "๋ชจ๋ ์ค๋ธ์ ํธ์์ ์ฌ์ฉ",
"Variable_use_this_object": "์ด ์ค๋ธ์ ํธ์์ ์ฌ์ฉ",
"Variable_used_at_all_objects": "๋ชจ๋ ์ค๋ธ์ ํธ์์ ์ฌ์ฉ๋๋ ๋ณ์",
"Variable_create_cloud": "๊ณต์ ๋ณ์๋ก ์ฌ์ฉ <br>(์๋ฒ์ ์ ์ฅ๋ฉ๋๋ค)",
"Variable_used_at_special_object": "ํน์ ์ค๋ธ์ ํธ์์๋ง ์ฌ์ฉ๋๋ ๋ณ์ ์
๋๋ค. ",
"draw_new": "์๋ก ๊ทธ๋ฆฌ๊ธฐ",
"painter_file": "ํ์ผ โผ",
"painter_file_save": "์ ์ฅํ๊ธฐ",
"painter_file_saveas": "์ ๋ชจ์์ผ๋ก ์ ์ฅ",
"painter_edit": "ํธ์ง โผ",
"get_file": "๊ฐ์ ธ์ค๊ธฐ",
"copy_file": "๋ณต์ฌํ๊ธฐ",
"cut_picture": "์๋ฅด๊ธฐ",
"paste_picture": "๋ถ์ด๊ธฐ",
"remove_all": "๋ชจ๋ ์ง์ฐ๊ธฐ",
"new_picture": "์๊ทธ๋ฆผ",
"picture_size": "ํฌ๊ธฐ",
"picture_rotation": "ํ์ ",
"thickness": "๊ตต๊ธฐ",
"regular": "๋ณดํต",
"bold": "๊ตต๊ฒ",
"italic": "๊ธฐ์ธ์",
"textStyle": "๊ธ์",
"add_picture": "๋ชจ์ ์ถ๊ฐ",
"select_picture": "๋ชจ์ ์ ํ",
"select_sound": "์๋ฆฌ ์ ํ",
"Size": "ํฌ๊ธฐ",
"show_variable": "๋ณ์ ๋ณด์ด๊ธฐ",
"default_value": "๊ธฐ๋ณธ๊ฐ ",
"slide": "์ฌ๋ผ์ด๋",
"min_value": "์ต์๊ฐ",
"max_value": "์ต๋๊ฐ",
"number_of_list": "๋ฆฌ์คํธ ํญ๋ชฉ ์",
"use_all_objects": "๋ชจ๋ ์ค๋ธ์ ํธ์ ์ฌ์ฉ",
"list_name": "๋ฆฌ์คํธ ์ด๋ฆ",
"list_used_specific_objects": "ํน์ ์ค๋ธ์ ํธ์์๋ง ์ฌ์ฉ๋๋ ๋ฆฌ์คํธ ์
๋๋ค. ",
"List_used_all_objects": "๋ชจ๋ ์ค๋ธ์ ํธ์์ ์ฌ์ฉ๋๋ ๋ฆฌ์คํธ",
"Scene_delete_error": "์ฅ๋ฉด์ ์ต์ ํ๋ ์ด์ ์กด์ฌํด์ผ ํฉ๋๋ค.",
"Scene_add_error": "์ฅ๋ฉด์ ์ต๋ 20๊ฐ๊น์ง ์ถ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.",
"replica_of_object": "์ ๋ณต์ ๋ณธ",
"will_you_delete_scene": "์ฅ๋ฉด์ ํ๋ฒ ์ญ์ ํ๋ฉด ์ทจ์๊ฐ ๋ถ๊ฐ๋ฅ ํฉ๋๋ค. \n์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"will_you_delete_function": "ํจ์๋ ํ๋ฒ ์ญ์ ํ๋ฉด ์ทจ์๊ฐ ๋ถ๊ฐ๋ฅ ํฉ๋๋ค. \n์ ๋ง ์ญ์ ํ์๊ฒ ์ต๋๊น?",
"duplicate_scene": "๋ณต์ ํ๊ธฐ",
"block_explain": "๋ธ๋ก ์ค๋ช
",
"block_intro": "๋ธ๋ก์ ํด๋ฆญํ๋ฉด ๋ธ๋ก์ ๋ํ ์ค๋ช
์ด ๋ํ๋ฉ๋๋ค.",
"blocks_reference": "๋ธ๋ก ์ค๋ช
",
"hardware_guide": "ํ๋์จ์ด ์ฐ๊ฒฐ ์๋ด",
"show_list_workspace": "๋ฆฌ์คํธ ๋ณด์ด๊ธฐ",
"List_create_cloud": "๊ณต์ ๋ฆฌ์คํธ๋ก ์ฌ์ฉ <br>(์๋ฒ์ ์ ์ฅ๋ฉ๋๋ค)",
"confirm_quit": "๋ฐ๊พผ ๋ด์ฉ์ ์ ์ฅํ์ง ์์์ต๋๋ค.",
"confirm_load_temporary": "์ ์ฅ๋์ง ์์ ์ํ์ด ์์ต๋๋ค. ์ฌ์๊ฒ ์ต๋๊น?",
"login_to_save": "๋ก๊ทธ์ธํ์ ์ ์ฅ ๋ฐ๋๋๋ค.",
"cannot_save_in_edit_func": "ํจ์ ํธ์ง์ค์๋ ์ ์ฅํ ์ ์์ต๋๋ค.",
"new_object": "์ ์ค๋ธ์ ํธ",
"arduino_connect": "ํ๋์จ์ด ์ฐ๊ฒฐ",
"arduino_connect_success": "ํ๋์จ์ด๊ฐ ์ฐ๊ฒฐ๋์์ต๋๋ค.",
"confirm_load_header": "์ํ ๋ณต๊ตฌ",
"uploading_msg": "์
๋ก๋ ์ค์
๋๋ค",
"upload_fail_msg": "์
๋ก๋์ ์คํจํ์์ต๋๋ค.</br>๋ค์ ํ๋ฒ ์๋ํด์ฃผ์ธ์.",
"file_converting_msg": "ํ์ผ ๋ณํ ์ค์
๋๋ค.",
"file_converting_fail_msg": "ํ์ผ ๋ณํ์ ์คํจํ์์ต๋๋ค.",
"fail_contact_msg": "๋ฌธ์ ๊ฐ ๊ณ์๋๋ค๋ฉด</br>contact_entry@entrylabs.org๋ก ๋ฌธ์ํด์ฃผ์ธ์.",
"saving_msg": "์ ์ฅ ์ค์
๋๋ค",
"saving_fail_msg": "์ ์ฅ์ ์คํจํ์์ต๋๋ค.</br>๋ค์ ํ๋ฒ ์๋ํด์ฃผ์ธ์.",
"loading_msg": "๋ถ๋ฌ์ค๋ ์ค์
๋๋ค",
"loading_fail_msg": "๋ถ๋ฌ์ค๊ธฐ์ ์คํจํ์์ต๋๋ค.</br>๋ค์ ํ๋ฒ ์๋ํด์ฃผ์ธ์.",
"restore_project_msg": "์ ์์ ์ผ๋ก ์ ์ฅ๋์ง ์์ ์ํ์ด ์์ต๋๋ค. ํด๋น ์ํ์ ๋ณต๊ตฌํ์๊ฒ ์ต๋๊น?",
"quit_stop_msg": "์ ์ฅ ์ค์๋ ์ข
๋ฃํ์ค ์ ์์ต๋๋ค.",
"ent_drag_and_drop": "์
๋ก๋ ํ๋ ค๋ฉด ํ์ผ์ ๋์ผ์ธ์",
"not_supported_file_msg": "์ง์ํ์ง ์์ ํ์์ ํ์ผ์
๋๋ค.",
"broken_file_msg": "ํ์ผ์ด ๊นจ์ก๊ฑฐ๋ ์๋ชป๋ ํ์ผ์ ๋ถ๋ฌ์์ต๋๋ค.",
"check_audio_msg": "MP3, WAV ํ์ผ๋ง ์
๋ก๋๊ฐ ๊ฐ๋ฅํฉ๋๋ค.",
"check_entry_file_msg": "ENT ํ์ผ๋ง ๋ถ๋ฌ์ค๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.",
"hardware_version_alert_text": "5์ 30์ผ ๋ถํฐ ๊ตฌ๋ฒ์ ์ ์ฐ๊ฒฐํ๋ก๊ทธ๋จ์ ์ฌ์ฉ์ด ์ค๋จ ๋ฉ๋๋ค.\nํ๋์จ์ด ์ฐ๊ฒฐ ํ๋ก๊ทธ๋จ์ ์ต์ ๋ฒ์ ์ผ๋ก ์
๋ฐ์ดํธ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.",
"variable_name_auto_edited_title": "๋ณ์ ์ด๋ฆ ์๋ ๋ณ๊ฒฝ",
"variable_name_auto_edited_content": "๋ณ์์ ์ด๋ฆ์ 10๊ธ์๋ฅผ ๋์ ์ ์์ต๋๋ค.",
"list_name_auto_edited_title": "๋ฆฌ์คํธ ์ด๋ฆ ์๋ ๋ณ๊ฒฝ",
"list_name_auto_edited_content": "๋ฆฌ์คํธ์ ์ด๋ฆ์ 10๊ธ์๋ฅผ ๋์ ์ ์์ต๋๋ค."
};
Lang.code = "์ฝ๋๋ณด๊ธฐ";
Lang.EntryStatic = {
"groupProject": "ํ๊ธ ๊ณต์ ํ๊ธฐ",
"privateProject": "๋๋ง๋ณด๊ธฐ",
"privateCurriculum": "๋๋ง๋ณด๊ธฐ",
"publicCurriculum": "๊ฐ์ ๋ชจ์ ๊ณต์ ํ๊ธฐ",
"publicProject": "์ํ ๊ณต์ ํ๊ธฐ",
"group": "ํ๊ธ ๊ณต์ ํ๊ธฐ",
"groupCurriculum": "ํ๊ธ ๊ณต์ ํ๊ธฐ",
"private": "๋๋ง๋ณด๊ธฐ",
"public": "๊ฐ์ ๊ณต์ ํ๊ธฐ",
"lecture_is_open_true": "๊ณต๊ฐ",
"lecture_is_open_false": "๋น๊ณต๊ฐ",
"category_all": "๋ชจ๋ ์ํ",
"category_game": "๊ฒ์",
"category_animation": "์ ๋๋ฉ์ด์
",
"category_media_art": "๋ฏธ๋์ด ์ํธ",
"category_physical": "ํผ์ง์ปฌ",
"category_etc": "๊ธฐํ",
"category_category_game": "๊ฒ์",
"category_category_animation": "์ ๋๋ฉ์ด์
",
"category_category_media_art": "๋ฏธ๋์ด ์ํธ",
"category_category_physical": "ํผ์ง์ปฌ",
"category_category_etc": "๊ธฐํ",
"sort_created": "์ต์ ์",
"sort_updated": "์ต์ ์",
"sort_visit": "์กฐํ์",
"sort_likeCnt": "์ข์์์",
"sort_comment": "๋๊ธ์",
"period_all": "์ ์ฒด๊ธฐ๊ฐ",
"period_1": "์ค๋",
"period_7": "์ต๊ทผ 1์ฃผ์ผ",
"period_30": "์ต๊ทผ 1๊ฐ์",
"period_90": "์ต๊ทผ 3๊ฐ์",
"lecture_required_time_1": " ~ 15๋ถ",
"lecture_required_time_2": "15๋ถ ~ 30๋ถ",
"lecture_required_time_3": "30๋ถ ~ 45๋ถ",
"lecture_required_time_4": "45 ๋ถ ~ 60๋ถ",
"lecture_required_time_5": "1์๊ฐ ์ด์",
"usage_event": "์ด๋ฒคํธ",
"usage_signal": "์ ํธ๋ณด๋ด๊ธฐ",
"usage_scene": "์ฅ๋ฉด",
"usage_repeat": "๋ฐ๋ณต",
"usage_condition_repeat": "์กฐ๊ฑด๋ฐ๋ณต",
"usage_condition": "์กฐ๊ฑด",
"usage_clone": "๋ณต์ ๋ณธ",
"usage_rotation": "ํ์ ",
"usage_coordinate": "์ขํ์ด๋",
"usage_arrow_move": "ํ์ดํ์ด๋",
"usage_shape": "๋ชจ์",
"usage_speak": "๋งํ๊ธฐ",
"usage_picture_effect": "๊ทธ๋ฆผํจ๊ณผ",
"usage_textBox": "๊ธ์์",
"usage_draw": "๊ทธ๋ฆฌ๊ธฐ",
"usage_sound": "์๋ฆฌ",
"usage_confirm": "ํ์ธ",
"usage_comp_operation": "๋น๊ต์ฐ์ฐ",
"usage_logical_operation": "๋
ผ๋ฆฌ์ฐ์ฐ",
"usage_math_operation": "์๋ฆฌ์ฐ์ฐ",
"usage_random": "๋ฌด์์์",
"usage_timer": "์ด์๊ณ",
"usage_variable": "๋ณ์",
"usage_list": "๋ฆฌ์คํธ",
"usage_ask_answer": "๋ฌป๊ณ ๋ตํ๊ธฐ",
"usage_function": "ํจ์",
"usage_arduino": "์๋์ด๋
ธ",
"concept_resource_analytics": "์๋ฃ์์ง/๋ถ์/ํํ",
"concept_procedual": "์๊ณ ๋ฆฌ์ฆ๊ณผ ์ ์ฐจ",
"concept_abstractive": "์ถ์ํ",
"concept_individual": "๋ฌธ์ ๋ถํด",
"concept_automation": "์๋ํ",
"concept_simulation": "์๋ฎฌ๋ ์ด์
",
"concept_parallel": "๋ณ๋ ฌํ",
"subject_korean": "๊ตญ์ด",
"subject_english": "์์ด",
"subject_mathmatics": "์ํ",
"subject_social": "์ฌํ",
"subject_science": "๊ณผํ",
"subject_music": "์์
",
"subject_paint": "๋ฏธ์ ",
"subject_athletic": "์ฒด์ก",
"subject_courtesy": "๋๋",
"subject_progmatic": "์ค๊ณผ",
"lecture_grade_1": "์ด1",
"lecture_grade_2": "์ด2",
"lecture_grade_3": "์ด3",
"lecture_grade_4": "์ด4",
"lecture_grade_5": "์ด5",
"lecture_grade_6": "์ด6",
"lecture_grade_7": "์ค1",
"lecture_grade_8": "์ค2",
"lecture_grade_9": "์ค3",
"lecture_grade_10": "์ผ๋ฐ",
"lecture_level_1": "์ฌ์",
"lecture_level_2": "์ค๊ฐ",
"lecture_level_3": "์ด๋ ค์",
"listEnable": "๋ฆฌ์คํธ",
"functionEnable": "ํจ์",
"messageEnable": "์ ํธ",
"objectEditable": "์ค๋ธ์ ํธ",
"pictureeditable": "๋ชจ์",
"sceneEditable": "์ฅ๋ฉด",
"soundeditable": "์๋ฆฌ",
"variableEnable": "๋ณ์",
"e_1": "์ด๋ฑ 1ํ๋
",
"e_2": "์ด๋ฑ 2ํ๋
",
"e_3": "์ด๋ฑ 3ํ๋
",
"e_4": "์ด๋ฑ 4ํ๋
",
"e_5": "์ด๋ฑ 5ํ๋
",
"e_6": "์ด๋ฑ 6ํ๋
",
"m_1": "์ค๋ฑ 1ํ๋
",
"m_2": "์ค๋ฑ 2ํ๋
",
"m_3": "์ค๋ฑ 3ํ๋
",
"general": "์ผ๋ฐ",
"curriculum_is_open_true": "๊ณต๊ฐ",
"curriculum_open_false": "๋น๊ณต๊ฐ",
"notice": "๊ณต์ง์ฌํญ",
"qna": "๋ฌป๊ณ ๋ตํ๊ธฐ",
"tips": "๋
ธํ์ฐ&ํ",
"free": "์์ ๊ฒ์ํ",
"report": "์ ์ ๋ฐ ๊ฑด์",
"art_category_all": "๋ชจ๋ ์ํ",
"art_category_game": "๊ฒ์",
"art_category_animation": "์ ๋๋ฉ์ด์
",
"art_category_physical": "ํผ์ง์ปฌ",
"art_category_etc": "๊ธฐํ",
"art_category_media": "๋ฏธ๋์ด ์ํธ",
"art_sort_updated": "์ต์ ์",
"art_sort_visit": "์กฐํ์",
"art_sort_likeCnt": "์ข์์์",
"art_sort_comment": "๋๊ธ์",
"art_period_all": "์ ์ฒด๊ธฐ๊ฐ",
"art_period_day": "์ค๋",
"art_period_week": "์ต๊ทผ 1์ฃผ์ผ",
"art_period_month": "์ต๊ทผ 1๊ฐ์",
"art_period_three_month": "์ต๊ทผ 3๊ฐ์",
"level_high": "์",
"level_mid": "์ค",
"level_row": "ํ",
"discuss_sort_created": "์ต์ ์",
"discuss_sort_visit": "์กฐํ์",
"discuss_sort_likesLength": "์ข์์์",
"discuss_sort_commentsLength": "๋๊ธ์",
"discuss_period_all": "์ ์ฒด๊ธฐ๊ฐ",
"discuss_period_day": "์ค๋",
"discuss_period_week": "์ต๊ทผ 1์ฃผ์ผ",
"discuss_period_month": "์ต๊ทผ 1๊ฐ์",
"discuss_period_three_month": "์ต๊ทผ 3๊ฐ์"
};
Lang.Helper = {
"when_run_button_click": "์์ํ๊ธฐ ๋ฒํผ์ ํด๋ฆญํ๋ฉด ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"when_some_key_pressed": "์ง์ ๋ ํค๋ฅผ ๋๋ฅด๋ฉด ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํ ํฉ๋๋ค",
"mouse_clicked": "๋ง์ฐ์ค๋ฅผ ํด๋ฆญ ํ์ ๋ ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํ ํฉ๋๋ค.",
"mouse_click_cancled": "๋ง์ฐ์ค ํด๋ฆญ์ ํด์ ํ์ ๋ ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"when_object_click": "ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํด๋ฆญํ์ ๋ ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"when_object_click_canceled": "ํด๋น ์ค๋ธ์ ํธ ํด๋ฆญ์ ํด์ ํ์๋ ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํ ํฉ๋๋ค.",
"when_message_cast": "ํด๋น ์ ํธ๋ฅผ ๋ฐ์ผ๋ฉด ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"message_cast": "๋ชฉ๋ก์ ์ ํ๋ ์ ํธ๋ฅผ ๋ณด๋
๋๋ค.",
"message_cast_wait": "๋ชฉ๋ก์ ์ ํ๋ ์ ํธ๋ฅผ ๋ณด๋ด๊ณ , ํด๋น ์ ํธ๋ฅผ ๋ฐ๋ ๋ธ๋ก๋ค์ ์คํ์ด ๋๋ ๋ ๊น์ง ๊ธฐ๋ค๋ฆฝ๋๋ค.",
"when_scene_start": "์ฅ๋ฉด์ด ์์๋๋ฉด ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํ ํฉ๋๋ค. ",
"start_scene": "์ ํํ ์ฅ๋ฉด์ ์์ ํฉ๋๋ค.",
"start_neighbor_scene": "์ด์ ์ฅ๋ฉด ๋๋ ๋ค์ ์ฅ๋ฉด์ ์์ํฉ๋๋ค.",
"wait_second": "์ค์ ํ ์๊ฐ๋งํผ ๊ธฐ๋ค๋ฆฐ ํ ๋ค์ ๋ธ๋ก์ ์คํ ํฉ๋๋ค.",
"repeat_basic": "์ค์ ํ ํ์๋งํผ ๊ฐ์ธ๊ณ ์๋ ๋ธ๋ก๋ค์ ๋ฐ๋ณต ์คํํฉ๋๋ค.",
"repeat_inf": "๊ฐ์ธ๊ณ ์๋ ๋ธ๋ก๋ค์ ๊ณ์ํด์ ๋ฐ๋ณต ์คํํฉ๋๋ค.",
"repeat_while_true": "ํ๋จ์ด ์ฐธ์ธ ๋์ ๊ฐ์ธ๊ณ ์๋ ๋ธ๋ก๋ค์ ๋ฐ๋ณต ์คํํฉ๋๋ค.",
"stop_repeat": "์ด ๋ธ๋ก์ ๊ฐ์ธ๋ ๊ฐ์ฅ ๊ฐ๊น์ด ๋ฐ๋ณต ๋ธ๋ก์ ๋ฐ๋ณต์ ์ค๋จ ํฉ๋๋ค.",
"_if": "๋ง์ผ ํ๋จ์ด ์ฐธ์ด๋ฉด, ๊ฐ์ธ๊ณ ์๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"if_else": "๋ง์ผ ํ๋จ์ด ์ฐธ์ด๋ฉด, ์ฒซ ๋ฒ์งธ ๊ฐ์ธ๊ณ ์๋ ๋ธ๋ก๋ค์ ์คํํ๊ณ , ๊ฑฐ์ง์ด๋ฉด ๋ ๋ฒ์งธ ๊ฐ์ธ๊ณ ์๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"restart_project": "๋ชจ๋ ์ค๋ธ์ ํธ๋ฅผ ์ฒ์๋ถํฐ ๋ค์ ์คํํฉ๋๋ค.",
"stop_object": "๋ชจ๋ : ๋ชจ๋ ์ค๋ธ์ ํธ๋ค์ด ์ฆ์ ์คํ์ ๋ฉ์ถฅ๋๋ค. <br> ์์ : ํด๋น ์ค๋ธ์ ํธ์ ๋ชจ๋ ๋ธ๋ก๋ค์ ๋ฉ์ถฅ๋๋ค. <br> ์ด ์ฝ๋ : ์ด ๋ธ๋ก์ด ํฌํจ๋ ์ฝ๋๊ฐ ์ฆ์ ์คํ์ ๋ฉ์ถฅ๋๋ค. <br> ์์ ์ ๋ค๋ฅธ ์ฝ๋ : ํด๋น ์ค๋ธ์ ํธ ์ค ์ด ๋ธ๋ก์ด ํฌํจ๋ ์ฝ๋๋ฅผ ์ ์ธํ ๋ชจ๋ ์ฝ๋๊ฐ ์ฆ์ ์คํ์ ๋ฉ์ถฅ๋๋ค.",
"wait_until_true": "ํ๋จ์ด ์ฐธ์ด ๋ ๋๊น์ง ์คํ์ ๋ฉ์ถ๊ณ ๊ธฐ๋ค๋ฆฝ๋๋ค.",
"when_clone_start": "ํด๋น ์ค๋ธ์ ํธ์ ๋ณต์ ๋ณธ์ด ์๋ก ์์ฑ๋์์ ๋ ์๋์ ์ฐ๊ฒฐ๋ ๋ธ๋ก๋ค์ ์คํํฉ๋๋ค.",
"create_clone": "์ ํํ ์ค๋ธ์ ํธ์ ๋ณต์ ๋ณธ์ ์์ฑํฉ๋๋ค.",
"delete_clone": "โ๋ณต์ ๋ณธ์ด ์ฒ์ ์์ฑ๋์์ ๋โ ๋ธ๋ก๊ณผ ํจ๊ป ์ฌ์ฉํ์ฌ ์์ฑ๋ ๋ณต์ ๋ณธ์ ์ญ์ ํฉ๋๋ค.",
"remove_all_clones": "ํด๋น ์ค๋ธ์ ํธ์ ๋ชจ๋ ๋ณต์ ๋ณธ์ ์ญ์ ํฉ๋๋ค.",
"move_direction": "์ค์ ํ ๊ฐ๋งํผ ์ค๋ธ์ ํธ์ ์ด๋๋ฐฉํฅ ํ์ดํ๊ฐ ๊ฐ๋ฆฌํค๋ ๋ฐฉํฅ์ผ๋ก ์์ง์
๋๋ค.",
"move_x": "์ค๋ธ์ ํธ์ X์ขํ๋ฅผ ์ค์ ํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค. ",
"move_y": "์ค๋ธ์ ํธ์ Y์ขํ๋ฅผ ์ค์ ํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค.",
"move_xy_time": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ ์๊ฐ์ ๊ฑธ์ณ x์ y์ขํ๋ฅผ ์ค์ ํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค",
"locate_object_time": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ ์๊ฐ์ ๊ฑธ์ณ ์ ํํ ์ค๋ธ์ ํธ ๋๋ ๋ง์ฐ์ค ํฌ์ธํฐ์ ์์น๋ก ์ด๋ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค์ด ๋ฉ๋๋ค.)",
"locate_x": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ x์ขํ๋ก ์ด๋ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค์ด ๋ฉ๋๋ค.)",
"locate_y": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ y์ขํ๋ก ์ด๋ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค์ด ๋ฉ๋๋ค.)",
"locate_xy": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ x์ y์ขํ๋ก ์ด๋ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค์ด ๋ฉ๋๋ค.)",
"locate_xy_time": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ ์๊ฐ์ ๊ฑธ์ณ ์ง์ ํ x, y์ขํ๋ก ์ด๋ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค์ด ๋ฉ๋๋ค.)",
"locate": "์ค๋ธ์ ํธ๊ฐ ์ ํํ ์ค๋ธ์ ํธ ๋๋ ๋ง์ฐ์ค ํฌ์ธํฐ์ ์์น๋ก ์ด๋ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค์ด ๋ฉ๋๋ค.)",
"rotate_absolute": "ํด๋น ์ค๋ธ์ ํธ์ ๋ฐฉํฅ์ ์
๋ ฅํ ๊ฐ๋๋ก ์ ํฉ๋๋ค.",
"rotate_by_time": "์ค๋ธ์ ํธ์ ๋ฐฉํฅ์ ์
๋ ฅํ ์๊ฐ์ ๊ฑธ์ณ ์
๋ ฅํ ๊ฐ๋๋งํผ ์๊ณ๋ฐฉํฅ์ผ๋ก ํ์ ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ ๊ธฐ์ค์ผ๋ก ํ์ ํฉ๋๋ค.)",
"rotate_relative": "์ค๋ธ์ ํธ์ ๋ฐฉํฅ์ ์
๋ ฅํ ๊ฐ๋๋งํผ ์๊ณ๋ฐฉํฅ์ผ๋ก ํ์ ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ ๊ธฐ์ค์ผ๋ก ํ์ ํฉ๋๋ค.)",
"direction_absolute": "ํด๋น ์ค๋ธ์ ํธ์ ์ด๋ ๋ฐฉํฅ์ ์
๋ ฅํ ๊ฐ๋๋ก ์ ํฉ๋๋ค.",
"direction_relative": "์ค๋ธ์ ํธ์ ์ด๋ ๋ฐฉํฅ์ ์
๋ ฅํ ๊ฐ๋๋งํผ ํ์ ํฉ๋๋ค.",
"move_to_angle": "์ค์ ํ ๊ฐ๋ ๋ฐฉํฅ์ผ๋ก ์
๋ ฅํ ๊ฐ๋งํผ ์์ง์
๋๋ค. (์คํํ๋ฉด ์์ชฝ์ด 0๋, ์๊ณ๋ฐฉํฅ์ผ๋ก ๊ฐ์๋ก ๊ฐ๋ ์ฆ๊ฐ)",
"see_angle_object": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ๋ค๋ฅธ ์ค๋ธ์ ํธ ๋๋ ๋ง์ฐ์ค ํฌ์ธํฐ ์ชฝ์ ๋ฐ๋ผ๋ด
๋๋ค. ์ค๋ธ์ ํธ์ ์ด๋๋ฐฉํฅ์ด ์ ํ๋ ํญ๋ชฉ์ ํฅํ๋๋ก ์ค๋ธ์ ํธ์ ๋ฐฉํฅ์ ํ์ ํด์ค๋๋ค.",
"bounce_wall": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ํ๋ฉด ๋์ ๋ฟ์ผ๋ฉด ํ๊ฒจ์ ธ ๋์ต๋๋ค. ",
"show": "ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํ๋ฉด์ ๋ํ๋
๋๋ค.",
"hide": "ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํ๋ฉด์์ ๋ณด์ด์ง ์๊ฒ ํฉ๋๋ค.",
"dialog_time": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ ๋ด์ฉ์ ์
๋ ฅํ ์๊ฐ ๋์ ๋งํ์ ์ผ๋ก ๋งํ ํ ๋ค์ ๋ธ๋ก์ด ์คํ๋ฉ๋๋ค.",
"dialog": "์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ ๋ด์ฉ์ ๋งํ์ ์ผ๋ก ๋งํ๋ ๋์์ ๋ค์ ๋ธ๋ก์ด ์คํ๋ฉ๋๋ค.",
"remove_dialog": "์ค๋ธ์ ํธ๊ฐ ๋งํ๊ณ ์๋ ๋งํ์ ์ ์ง์๋๋ค.",
"change_to_some_shape": "์ค๋ธ์ ํธ๋ฅผ ์ ํํ ๋ชจ์์ผ๋ก ๋ฐ๊ฟ๋๋ค. (๋ด๋ถ ๋ธ๋ก์ ๋ถ๋ฆฌํ๋ฉด ๋ชจ์์ ๋ฒํธ๋ฅผ ์ฌ์ฉํ์ฌ ๋ชจ์ ์ ํ ๊ฐ๋ฅ)",
"change_to_next_shape": "์ค๋ธ์ ํธ์ ๋ชจ์์ ๋ค์ ๋ชจ์์ผ๋ก ๋ฐ๊ฟ๋๋ค.",
"set_effect_volume": "ํด๋น ์ค๋ธ์ ํธ์ ์ ํํ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ์ค๋๋ค.",
"set_effect_amount": "์๊น : ์ค๋ธ์ ํธ์ ์๊น ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ์ค๋๋ค. (0~100์ ์ฃผ๊ธฐ๋ก ๋ฐ๋ณต๋จ)<br>๋ฐ๊ธฐ : ์ค๋ธ์ ํธ์ ๋ฐ๊ธฐ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ์ค๋๋ค. (-100~100 ์ฌ์ด์ ๋ฒ์, -100 ์ดํ๋ -100์ผ๋ก 100 ์ด์์ 100์ผ๋ก ์ฒ๋ฆฌ ๋จ) <br> ํฌ๋ช
๋ : ์ค๋ธ์ ํธ์ ํฌ๋ช
๋ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ์ค๋๋ค. (0~100 ์ฌ์ด์ ๋ฒ์, 0์ดํ๋ 0์ผ๋ก, 100 ์ด์์ 100์ผ๋ก ์ฒ๋ฆฌ๋จ)",
"set_effect": "ํด๋น ์ค๋ธ์ ํธ์ ์ ํํ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค.",
"set_entity_effect": "ํด๋น ์ค๋ธ์ ํธ์ ์ ํํ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค.",
"add_effect_amount": "ํด๋น ์ค๋ธ์ ํธ์ ์ ํํ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ์ค๋๋ค.",
"change_effect_amount": "์๊น : ์ค๋ธ์ ํธ์ ์๊น ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค. (0~100์ ์ฃผ๊ธฐ๋ก ๋ฐ๋ณต๋จ) <br> ๋ฐ๊ธฐ : ์ค๋ธ์ ํธ์ ๋ฐ๊ธฐ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค. (-100~100 ์ฌ์ด์ ๋ฒ์, -100 ์ดํ๋ -100์ผ๋ก 100 ์ด์์ 100์ผ๋ก ์ฒ๋ฆฌ ๋จ) <br> ํฌ๋ช
๋ : ์ค๋ธ์ ํธ์ ํฌ๋ช
๋ ํจ๊ณผ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค. (0~100 ์ฌ์ด์ ๋ฒ์, 0์ดํ๋ 0์ผ๋ก, 100 ์ด์์ 100์ผ๋ก ์ฒ๋ฆฌ๋จ)",
"change_scale_percent": "ํด๋น ์ค๋ธ์ ํธ์ ํฌ๊ธฐ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค.",
"set_scale_percent": "ํด๋น ์ค๋ธ์ ํธ์ ํฌ๊ธฐ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค.",
"change_scale_size": "ํด๋น ์ค๋ธ์ ํธ์ ํฌ๊ธฐ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค.",
"set_scale_size": "ํด๋น ์ค๋ธ์ ํธ์ ํฌ๊ธฐ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค.",
"flip_x": "ํด๋น ์ค๋ธ์ ํธ์ ์ํ ๋ชจ์์ ๋ค์ง์ต๋๋ค.",
"flip_y": "ํด๋น ์ค๋ธ์ ํธ์ ์ข์ฐ ๋ชจ์์ ๋ค์ง์ต๋๋ค.",
"change_object_index": "๋งจ ์์ผ๋ก : ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํ๋ฉด์ ๊ฐ์ฅ ์์ชฝ์ผ๋ก ๊ฐ์ ธ์ต๋๋ค. <br> ์์ผ๋ก : ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํ ์ธต ์์ชฝ์ผ๋ก ๊ฐ์ ธ์ต๋๋ค. <br> ๋ค๋ก : ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํ ์ธต ๋ค์ชฝ์ผ๋ก ๋ณด๋
๋๋ค. <br> ๋งจ ๋ค๋ก : ํด๋น ์ค๋ธ์ ํธ๋ฅผ ํ๋ฉด์ ๊ฐ์ฅ ๋ค์ชฝ์ผ๋ก ๋ณด๋
๋๋ค.",
"set_object_order": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ค์ ํ ์์๋ก ์ฌ๋ผ์ต๋๋ค.",
"brush_stamp": "์ค๋ธ์ ํธ์ ๋ชจ์์ ๋์ฅ์ฒ๋ผ ์คํํ๋ฉด ์์ ์ฐ์ต๋๋ค.",
"start_drawing": "์ค๋ธ์ ํธ๊ฐ ์ด๋ํ๋ ๊ฒฝ๋ก๋ฅผ ๋ฐ๋ผ ์ ์ด ๊ทธ๋ ค์ง๊ธฐ ์์ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ด ๊ธฐ์ค)",
"stop_drawing": "์ค๋ธ์ ํธ๊ฐ ์ ์ ๊ทธ๋ฆฌ๋ ๊ฒ์ ๋ฉ์ถฅ๋๋ค.",
"set_color": "์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ์ ์ ์์ ์ ํํ ์์ผ๋ก ์ ํฉ๋๋ค.",
"set_random_color": "์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ์ ์ ์์ ๋ฌด์์๋ก ์ ํฉ๋๋ค. ",
"change_thickness": "์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ์ ์ ๊ตต๊ธฐ๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค. (1~๋ฌดํ์ ๋ฒ์, 1 ์ดํ๋ 1๋ก ์ฒ๋ฆฌ)",
"set_thickness": "์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ์ ์ ๊ตต๊ธฐ๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค. (1~๋ฌดํ์ ๋ฒ์, 1 ์ดํ๋ 1๋ก ์ฒ๋ฆฌ)",
"change_opacity": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ๋ถ์ ํฌ๋ช
๋๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค.",
"change_brush_transparency": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ๋ถ์ ํฌ๋ช
๋๋ฅผ ์
๋ ฅํ ๊ฐ๋งํผ ๋ฐ๊ฟ๋๋ค. (0~100์ ๋ฒ์, 0์ดํ๋ 0, 100 ์ด์์ 100์ผ๋ก ์ฒ๋ฆฌ)",
"set_opacity": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ๋ถ์ ํฌ๋ช
๋๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค.",
"set_brush_tranparency": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฌ๋ ๋ถ์ ํฌ๋ช
๋๋ฅผ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค. (0~100์ ๋ฒ์, 0์ดํ๋ 0, 100 ์ด์์ 100์ผ๋ก ์ฒ๋ฆฌ)",
"brush_erase_all": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ๊ทธ๋ฆฐ ์ ๊ณผ ๋์ฅ์ ๋ชจ๋ ์ง์๋๋ค.",
"sound_something_with_block": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ์๋ฆฌ๋ฅผ ์ฌ์ํ๋ ๋์์ ๋ค์ ๋ธ๋ก์ ์คํํฉ๋๋ค.",
"sound_something_second_with_block": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ์๋ฆฌ๋ฅผ ์
๋ ฅํ ์๊ฐ ๋งํผ๋ง ์ฌ์ํ๋ ๋์์ ๋ค์ ๋ธ๋ก์ ์คํํฉ๋๋ค.",
"sound_something_wait_with_block": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ์๋ฆฌ๋ฅผ ์ฌ์ํ๊ณ , ์๋ฆฌ ์ฌ์์ด ๋๋๋ฉด ๋ค์ ๋ธ๋ก์ ์คํํฉ๋๋ค.",
"sound_something_second_wait_with_block": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ์๋ฆฌ๋ฅผ ์
๋ ฅํ ์๊ฐ ๋งํผ๋ง ์ฌ์ํ๊ณ , ์๋ฆฌ ์ฌ์์ด ๋๋๋ฉด ๋ค์ ๋ธ๋ก์ ์คํํฉ๋๋ค.",
"sound_volume_change": "์ํ์์ ์ฌ์๋๋ ๋ชจ๋ ์๋ฆฌ์ ํฌ๊ธฐ๋ฅผ ์
๋ ฅํ ํผ์ผํธ๋งํผ ๋ฐ๊ฟ๋๋ค.",
"sound_volume_set": "์ํ์์ ์ฌ์๋๋ ๋ชจ๋ ์๋ฆฌ์ ํฌ๊ธฐ๋ฅผ ์
๋ ฅํ ํผ์ผํธ๋ก ์ ํฉ๋๋ค.",
"sound_silent_all": "ํ์ฌ ์ฌ์์ค์ธ ๋ชจ๋ ์๋ฆฌ๋ฅผ ๋ฉ์ถฅ๋๋ค.",
"is_clicked": "๋ง์ฐ์ค๋ฅผ ํด๋ฆญํ ๊ฒฝ์ฐ โ์ฐธโ์ผ๋ก ํ๋จํฉ๋๋ค.",
"is_press_some_key": "์ ํํ ํค๊ฐ ๋๋ ค์ ธ ์๋ ๊ฒฝ์ฐ โ์ฐธโ์ผ๋ก ํ๋จํฉ๋๋ค.",
"reach_something": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ํญ๋ชฉ๊ณผ ๋ฟ์ ๊ฒฝ์ฐ โ์ฐธโ์ผ๋ก ํ๋จํฉ๋๋ค.",
"is_included_in_list": "์ ํํ ๋ฆฌ์คํธ์ ์
๋ ฅํ ๊ฐ์ ๊ฐ์ง ํญ๋ชฉ์ด ํฌํจ๋์ด ์๋์ง ํ์ธํฉ๋๋ค.",
"boolean_basic_operator": "= : ์ผ์ชฝ์ ์์นํ ๊ฐ๊ณผ ์ค๋ฅธ์ชฝ์ ์์นํ ๊ฐ์ด ๊ฐ์ผ๋ฉด '์ฐธ'์ผ๋ก ํ๋จํฉ๋๋ค.<br>> : ์ผ์ชฝ์ ์์นํ ๊ฐ์ด ์ค๋ฅธ์ชฝ์ ์์นํ ๊ฐ๋ณด๋ค ํฌ๋ฉด '์ฐธ'์ผ๋ก ํ๋จํฉ๋๋ค.<br>< : ์ผ์ชฝ์ ์์นํ ๊ฐ์ด ์ค๋ฅธ์ชฝ์ ์์นํ ๊ฐ๋ณด๋ค ์์ผ๋ฉด '์ฐธ'์ผ๋ก ํ๋จํฉ๋๋ค.<br>โฅ : ์ผ์ชฝ์ ์์นํ ๊ฐ์ด ์ค๋ฅธ์ชฝ์ ์์นํ ๊ฐ๋ณด๋ค ํฌ๊ฑฐ๋ ๊ฐ์ผ๋ฉด '์ฐธ'์ผ๋ก ํ๋จํฉ๋๋ค.<br>โค : ์ผ์ชฝ์ ์์นํ ๊ฐ์ด ์ค๋ฅธ์ชฝ์ ์์นํ ๊ฐ๋ณด๋ค ์๊ฑฐ๋ ๊ฐ์ผ๋ฉด '์ฐธ'์ผ๋ก ํ๋จํฉ๋๋ค.",
"function_create": "์์ฃผ ์ฐ๋ ์ฝ๋๋ฅผ ์ด ๋ธ๋ก ์๋์ ์กฐ๋ฆฝํ์ฌ ํจ์๋ก ๋ง๋ญ๋๋ค. [ํจ์ ์ ์ํ๊ธฐ]์ ์ค๋ฅธ์ชฝ ๋น์นธ์ [์ด๋ฆ]์ ์กฐ๋ฆฝํ์ฌ ํจ์์ ์ด๋ฆ์ ์ ํ ์ ์์ต๋๋ค. ํจ์๋ฅผ ์คํํ๋ ๋ฐ ์
๋ ฅ๊ฐ์ด ํ์ํ ๊ฒฝ์ฐ ๋น์นธ์ [๋ฌธ์/์ซ์๊ฐ], [ํ๋จ๊ฐ]์ ์กฐ๋ฆฝํ์ฌ ๋งค๊ฐ๋ณ์๋ก ์ฌ์ฉํฉ๋๋ค.",
"function_field_label": "'ํจ์ ์ ์ํ๊ธฐ'์ ๋น์นธ ์์ ์กฐ๋ฆฝํ๊ณ , ์ด๋ฆ์ ์
๋ ฅํ์ฌ ํจ์์ ์ด๋ฆ์ ์ ํด์ค๋๋ค. ",
"function_field_string": "ํด๋น ํจ์๋ฅผ ์คํํ๋๋ฐ ๋ฌธ์/์ซ์ ๊ฐ์ด ํ์ํ ๊ฒฝ์ฐ ๋น์นธ ์์ ์กฐ๋ฆฝํ์ฌ ๋งค๊ฐ๋ณ์๋ก ์ฌ์ฉํฉ๋๋ค. ์ด ๋ธ๋ก ๋ด๋ถ์[๋ฌธ์/์ซ์๊ฐ]์ ๋ถ๋ฆฌํ์ฌ ํจ์์ ์ฝ๋ ์ค ํ์ํ ๋ถ๋ถ์ ๋ฃ์ด ์ฌ์ฉํฉ๋๋ค.",
"function_field_boolean": "ํด๋น ํจ์๋ฅผ ์คํํ๋ ๋ฐ ์ฐธ ๋๋ ๊ฑฐ์ง์ ํ๋จ์ด ํ์ํ ๊ฒฝ์ฐ ๋น์นธ ์์ ์กฐ๋ฆฝํ์ฌ ๋งค๊ฐ๋ณ์๋ก ์ฌ์ฉํฉ๋๋ค. ์ด ๋ธ๋ก ๋ด๋ถ์ [ํ๋จ๊ฐ]์ ๋ถ๋ฆฌํ์ฌ ํจ์์ ์ฝ๋ ์ค ํ์ํ ๋ถ๋ถ์ ๋ฃ์ด ์ฌ์ฉํฉ๋๋ค.",
"function_general": "ํ์ฌ ๋ง๋ค๊ณ ์๋ ํจ์ ๋ธ๋ก ๋๋ ์ง๊ธ๊น์ง ๋ง๋ค์ด ๋ ํจ์ ๋ธ๋ก์
๋๋ค.",
"boolean_and": "๋ ํ๋จ์ด ๋ชจ๋ ์ฐธ์ธ ๊ฒฝ์ฐ โ์ฐธโ์ผ๋ก ํ๋จํฉ๋๋ค.",
"boolean_or": "๋ ํ๋จ ์ค ํ๋๋ผ๋ ์ฐธ์ด ์๋ ๊ฒฝ์ฐ โ์ฐธโ์ผ๋ก ํ๋จํฉ๋๋ค.",
"boolean_not": "ํด๋น ํ๋จ์ด ์ฐธ์ด๋ฉด ๊ฑฐ์ง, ๊ฑฐ์ง์ด๋ฉด ์ฐธ์ผ๋ก ๋ง๋ญ๋๋ค.",
"calc_basic": "+ : ์
๋ ฅํ ๋ ์๋ฅผ ๋ํ ๊ฐ์
๋๋ค.<br>- : ์
๋ ฅํ ๋ ์๋ฅผ ๋บ ๊ฐ์
๋๋ค.<br>X : ์
๋ ฅํ ๋ ์๋ฅผ ๊ณฑํ ๊ฐ์
๋๋ค.<br>/ : ์
๋ ฅํ ๋ ์๋ฅผ ๋๋ ๊ฐ์
๋๋ค.",
"calc_rand": "์
๋ ฅํ ๋ ์ ์ฌ์ด์์ ์ ํ๋ ๋ฌด์์ ์์ ๊ฐ์
๋๋ค. (๋ ์ ๋ชจ๋ ์ ์๋ฅผ ์
๋ ฅํ ๊ฒฝ์ฐ ์ ์๋ก, ๋ ์ ์ค ํ๋๋ผ๋ ์์๋ฅผ ์
๋ ฅํ ๊ฒฝ์ฐ ์์๋ก ๋ฌด์์ ์๊ฐ ์ ํ๋ฉ๋๋ค.)",
"get_x_coordinate": "ํด๋น ์ค๋ธ์ ํธ์ x ์ขํฏ๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"get_y_coordinate": "ํด๋น ์ค๋ธ์ ํธ์ y ์ขํฏ๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"coordinate_mouse": "๋ง์ฐ์ค ํฌ์ธํฐ์ x ๋๋ y์ ์ขํ ๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"coordinate_object": "์ ํํ ์ค๋ธ์ ํธ ๋๋ ์์ ์ ๊ฐ์ข
์ ๋ณด๊ฐ(x์ขํ, y์ขํ, ๋ฐฉํฅ, ์ด๋๋ฐฉํฅ, ํฌ๊ธฐ, ๋ชจ์๋ฒํธ, ๋ชจ์์ด๋ฆ)์
๋๋ค.",
"quotient_and_mod": "๋ชซ : ์์ ์์์ ๋ค์ ์๋ฅผ ๋๋์ด ์๊ธด ๋ชซ์ ๊ฐ์
๋๋ค. <br> ๋๋จธ์ง : ์์ ์์์ ๋ค์ ์๋ฅผ ๋๋์ด ์๊ธด ๋๋จธ์ง ๊ฐ์
๋๋ค.",
"get_rotation_direction": "ํด๋น ์ค๋ธ์ ํธ์ ๋ฐฉํฅ๊ฐ, ์ด๋ ๋ฐฉํฅ๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"calc_share": "์ ์์์ ๋ค ์๋ฅผ ๋๋์ด ์๊ธด ๋ชซ์ ์๋ฏธํฉ๋๋ค.",
"calc_mod": "์ ์์์ ๋ค ์๋ฅผ ๋๋์ด ์๊ธด ๋๋จธ์ง๋ฅผ ์๋ฏธํฉ๋๋ค.",
"calc_operation": "์
๋ ฅํ ์์ ๋ํ ๋ค์ํ ์ํ์์ ๊ณ์ฐ๊ฐ์
๋๋ค.",
"get_date": "ํ์ฌ ์ฐ๋, ์, ์ผ, ์๊ฐ๊ณผ ๊ฐ์ด ์๊ฐ์ ๋ํ ๊ฐ์
๋๋ค.",
"distance_something": "์์ ๊ณผ ์ ํํ ์ค๋ธ์ ํธ ๋๋ ๋ง์ฐ์ค ํฌ์ธํฐ ๊ฐ์ ๊ฑฐ๋ฆฌ ๊ฐ์
๋๋ค.",
"get_sound_duration": "์ ํํ ์๋ฆฌ์ ๊ธธ์ด(์ด) ๊ฐ์
๋๋ค.",
"get_project_timer_value": "์ด ๋ธ๋ก์ด ์คํ๋๋ ์๊ฐ ์ด์๊ณ์ ์ ์ฅ๋ ๊ฐ์
๋๋ค.",
"choose_project_timer_action": "์์ํ๊ธฐ: ์ด์๊ณ๋ฅผ ์์ํฉ๋๋ค. <br> ์ ์งํ๊ธฐ: ์ด์๊ณ๋ฅผ ์ ์งํฉ๋๋ค. <br> ์ด๊ธฐํํ๊ธฐ: ์ด์๊ณ์ ๊ฐ์ 0์ผ๋ก ์ด๊ธฐํํฉ๋๋ค. <br> (์ด ๋ธ๋ก์ ๋ธ๋ก์กฐ๋ฆฝ์๋ก ๊ฐ์ ธ์ค๋ฉด ์คํํ๋ฉด์ โ์ด์๊ณ ์ฐฝโ์ด ์์ฑ๋ฉ๋๋ค.)",
"reset_project_timer": "์คํ๋๊ณ ์๋ ํ์ด๋จธ๋ฅผ 0์ผ๋ก ์ด๊ธฐํํฉ๋๋ค.",
"set_visible_project_timer": "์ด์๊ณ ์ฐฝ์ ํ๋ฉด์์ ์จ๊ธฐ๊ฑฐ๋ ๋ณด์ด๊ฒ ํฉ๋๋ค.",
"ask_and_wait": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์
๋ ฅํ ๋ฌธ์๋ฅผ ๋งํ์ ์ผ๋ก ๋ฌป๊ณ , ๋๋ต์ ์
๋ ฅ๋ฐ์ต๋๋ค. (์ด ๋ธ๋ก์ ๋ธ๋ก์กฐ๋ฆฝ์๋ก ๊ฐ์ ธ์ค๋ฉด ์คํํ๋ฉด์ โ๋๋ต ์ฐฝโ์ด ์์ฑ๋ฉ๋๋ค.)",
"get_canvas_input_value": "๋ฌป๊ณ ๊ธฐ๋ค๋ฆฌ๊ธฐ์ ์ํด ์
๋ ฅ๋ ๊ฐ์
๋๋ค.",
"set_visible_answer": "์คํํ๋ฉด์ ์๋ โ๋๋ต ์ฐฝโ์ ๋ณด์ด๊ฒ ํ๊ฑฐ๋ ์จ๊ธธ ์ ์์ต๋๋ค.",
"combine_something": "์
๋ ฅํ ๋ ์๋ฃ๋ฅผ ๊ฒฐํฉํ ๊ฐ์
๋๋ค.",
"get_variable": "์ ํ๋ ๋ณ์์ ์ ์ฅ๋ ๊ฐ์
๋๋ค.",
"change_variable": "์ ํํ ๋ณ์์ ์
๋ ฅํ ๊ฐ์ ๋ํฉ๋๋ค.",
"set_variable": "์ ํํ ๋ณ์์ ๊ฐ์ ์
๋ ฅํ ๊ฐ์ผ๋ก ์ ํฉ๋๋ค.",
"robotis_carCont_sensor_value": "์ผ์ชฝ ์ ์ ์ผ์ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.<br/>์ค๋ฅธ์ชฝ ์ ์ด ์ผ์ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.<br/>์ ํ ๋ฒํผ ์ํ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.<br/>์ต์ข
์๋ฆฌ ๊ฐ์ง ํ์ : ๋ง์ง๋ง ์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์ ๊ฐ ์
๋๋ค.<br/>์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์ : ์ฝ 1์ด ์์ ๋ค์ ์๋ฆฌ๊ฐ ๊ฐ์ง๋๋ฉด 1์ฉ ์ฆ๊ฐํฉ๋๋ค.<br/>์ผ์ชฝ ์ ์ธ์ ์ผ์ : ๋ฌผ์ฒด์ ๊ฐ๊น์ธ ์๋ก ํฐ ๊ฐ ์
๋๋ค.<br/>์ค๋ฅธ์ชฝ ์ ์ธ์ ์ผ์ : ๋ฌผ์ฒด์ ๊ฐ๊น์ธ ์๋ก ํฐ ๊ฐ ๊ฐ ์
๋๋ค.<br/>์ผ์ชฝ ์ ์ธ์ ์ผ์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ : ์ ์ธ์ ์ผ์์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ ์
๋๋ค.<br/>์ค๋ฅธ์ชฝ ์ ์ธ์ ์ผ์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ : ์ ์ธ์ ์ผ์์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ ์
๋๋ค.<br/>(*์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ - ์ ์ธ์ ์ผ์ ์กฐ์ ๊ฐ)",
"robotis_carCont_cm_led": "4๊ฐ์ LED ์ค 1๋ฒ ๋๋ 4๋ฒ LED ๋ฅผ ์ผ๊ฑฐ๋ ๋๋๋ค.<br/>LED 2๋ฒ๊ณผ 3๋ฒ์ ๋์ ์ง์ํ์ง ์์ต๋๋ค.",
"robotis_carCont_cm_sound_detected_clear": "์ต์ข
์๋ฆฌ ๊ฐ์งํ ์๋ฅผ 0 ์ผ๋ก ์ด๊ธฐํ ํฉ๋๋ค.",
"robotis_carCont_aux_motor_speed": "๊ฐ์๋ชจํฐ ์๋๋ฅผ 0 ~ 1023 ์ ๊ฐ(์ผ)๋ก ์ ํฉ๋๋ค.",
"robotis_carCont_cm_calibration": "์ ์ธ์ ์ผ์ ์กฐ์ ๊ฐ(http://support.robotis.com/ko/: ์๋์ฐจ๋ก๋ด> 2. B. ์ ์ธ์ ๊ฐ ์กฐ์ )์ ์ง์ ์ ํฉ๋๋ค.",
"robotis_openCM70_sensor_value": "์ต์ข
์๋ฆฌ ๊ฐ์ง ํ์ : ๋ง์ง๋ง ์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์ ๊ฐ ์
๋๋ค.<br/>์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์ : ์ฝ 1์ด ์์ ๋ค์ ์๋ฆฌ๊ฐ ๊ฐ์ง๋๋ฉด 1์ฉ ์ฆ๊ฐํฉ๋๋ค.<br/>์ฌ์ฉ์ ๋ฒํผ ์ํ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.์ต์ข
์๋ฆฌ ๊ฐ์ง ํ์ : ๋ง์ง๋ง ์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์ ๊ฐ ์
๋๋ค.<br/>์ค์๊ฐ ์๋ฆฌ ๊ฐ์ง ํ์ : ์ฝ 1์ด ์์ ๋ค์ ์๋ฆฌ๊ฐ ๊ฐ์ง๋๋ฉด 1์ฉ ์ฆ๊ฐํฉ๋๋ค.<br/>์ฌ์ฉ์ ๋ฒํผ ์ํ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.",
"robotis_openCM70_aux_sensor_value": "์๋ณด๋ชจํฐ ์์น : 0 ~ 1023, ์ค๊ฐ ์์น์ ๊ฐ์ 512 ์
๋๋ค.<br/>์ ์ธ์ ์ผ์ : ๋ฌผ์ฒด์ ๊ฐ๊น์ธ ์๋ก ํฐ ๊ฐ ์
๋๋ค.<br/>์ ์ด์ผ์ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.<br/>์กฐ๋์ผ์(CDS) : 0 ~ 1023, ๋ฐ์ ์๋ก ํฐ ๊ฐ ์
๋๋ค.<br/>์จ์ต๋์ผ์(์ต๋) : 0 ~ 100, ์ตํ ์๋ก ํฐ ๊ฐ ์
๋๋ค.<br/>์จ์ต๋์ผ์(์จ๋) : -20 ~ 100, ์จ๋๊ฐ ๋์ ์๋ก ํฐ ๊ฐ ์
๋๋ค.<br/>์จ๋์ผ์ : -20 ~ 100, ์จ๋๊ฐ ๋์ ์๋ก ํฐ ๊ฐ ์
๋๋ค.<br/>์ด์ํ์ผ์ : -<br/>์์์ผ์ : ์ ์ด(1), ๋น์ ์ด(0) ๊ฐ ์
๋๋ค.<br/>๋์๊ฐ์ง์ผ์ : ๋์ ๊ฐ์ง(1), ๋์ ๋ฏธ๊ฐ์ง(0) ๊ฐ ์
๋๋ค.<br/>์ปฌ๋ฌ์ผ์ : ์์์์(0), ํฐ์(1), ๊ฒ์์(2), ๋นจ๊ฐ์(3), ๋
น์(4), ํ๋์(5), ๋
ธ๋์(6) ๊ฐ ์
๋๋ค.<br/>์ฌ์ฉ์ ์ฅ์น : ์ฌ์ฉ์ ์ผ์ ์ ์์ ๋ํ ์ค๋ช
์ ROBOTIS e-๋งค๋ด์ผ(http://support.robotis.com/ko/)์ ์ฐธ๊ณ ํ์ธ์.",
"robotis_openCM70_cm_buzzer_index": "์๊ณ๋ฅผ 0.1 ~ 5 ์ด ๋์ ์ฐ์ฃผ ํฉ๋๋ค.",
"robotis_openCM70_cm_buzzer_melody": "๋ฉ๋ก๋๋ฅผ ์ฐ์ฃผ ํฉ๋๋ค.<br/>๋ฉ๋ก๋๋ฅผ ์ฐ์์ผ๋ก ์ฌ์ํ๋ ๊ฒฝ์ฐ, ๋ค์ ์๋ฆฌ๊ฐ ์ฌ์๋์ง ์์ผ๋ฉด 'ํ๋ฆ > X ์ด ๊ธฐ๋ค๋ฆฌ๊ธฐ' ๋ธ๋ก์ ์ฌ์ฉํ์ฌ ๊ธฐ๋ค๋ฆฐ ํ ์คํํฉ๋๋ค.",
"robotis_openCM70_cm_sound_detected_clear": "์ต์ข
์๋ฆฌ ๊ฐ์งํ ์๋ฅผ 0 ์ผ๋ก ์ด๊ธฐํ ํฉ๋๋ค.",
"robotis_openCM70_cm_led": "์ ์ด๊ธฐ์ ๋นจ๊ฐ์, ๋
น์, ํ๋์ LED ๋ฅผ ์ผ๊ฑฐ๋ ๋๋๋ค.",
"robotis_openCM70_cm_motion": "์ ์ด๊ธฐ์ ๋ค์ด๋ก๋ ๋์ด์๋ ๋ชจ์
์ ์คํํฉ๋๋ค.",
"robotis_openCM70_aux_motor_speed": "๊ฐ์๋ชจํฐ ์๋๋ฅผ 0 ~ 1023 ์ ๊ฐ(์ผ)๋ก ์ ํฉ๋๋ค.",
"robotis_openCM70_aux_servo_mode": "์๋ณด๋ชจํฐ๋ฅผ ํ์ ๋ชจ๋ ๋๋ ๊ด์ ๋ชจ๋๋ก ์ ํฉ๋๋ค.<br/>ํ๋ฒ ์ค์ ๋ ๋ชจ๋๋ ๊ณ์ ์ ์ฉ๋ฉ๋๋ค.<br/>ํ์ ๋ชจ๋๋ ์๋ณด๋ชจํฐ ์๋๋ฅผ ์ง์ ํ์ฌ ์๋ณด๋ชจํฐ๋ฅผ ํ์ ์ํต๋๋ค.<br/>๊ด์ ๋ชจ๋๋ ์ง์ ํ ์๋ณด๋ชจํฐ ์๋๋ก ์๋ณด๋ชจํฐ ์์น๋ฅผ ์ด๋ ์ํต๋๋ค.",
"robotis_openCM70_aux_servo_speed": "์๋ณด๋ชจํฐ ์๋๋ฅผ 0 ~ 1023 ์ ๊ฐ(์ผ)๋ก ์ ํฉ๋๋ค.",
"robotis_openCM70_aux_servo_position": "์๋ณด๋ชจํฐ ์์น๋ฅผ 0 ~ 1023 ์ ๊ฐ(์ผ)๋ก ์ ํฉ๋๋ค.<br/>์๋ณด๋ชจํฐ ์๋์ ๊ฐ์ด ์ฌ์ฉํด์ผ ํฉ๋๋ค.",
"robotis_openCM70_aux_led_module": "LED ๋ชจ๋์ LED ๋ฅผ ์ผ๊ฑฐ๋ ๋๋๋ค.",
"robotis_openCM70_aux_custom": "์ฌ์ฉ์ ์ผ์ ์ ์์ ๋ํ ์ค๋ช
์ ROBOTIS e-๋งค๋ด์ผ(http://support.robotis.com/ko/)์ ์ฐธ๊ณ ํ์ธ์.",
"robotis_openCM70_cm_custom_value": "์ปจํธ๋กค ํ
์ด๋ธ ์ฃผ์๋ฅผ ์ง์ ์
๋ ฅํ์ฌ ๊ฐ์ ํ์ธ ํฉ๋๋ค.<br/>์ปจํธ๋กค ํ
์ด๋ธ ๋ํ ์ค๋ช
์ ROBOTIS e-๋งค๋ด์ผ(http://support.robotis.com/ko/)์ ์ฐธ๊ณ ํ์ธ์.",
"robotis_openCM70_cm_custom": "์ปจํธ๋กค ํ
์ด๋ธ ์ฃผ์๋ฅผ ์ง์ ์
๋ ฅํ์ฌ ๊ฐ์ ์ ํฉ๋๋ค.<br/>์ปจํธ๋กค ํ
์ด๋ธ ๋ํ ์ค๋ช
์ ROBOTIS e-๋งค๋ด์ผ(http://support.robotis.com/ko/)์ ์ฐธ๊ณ ํ์ธ์.",
"show_variable": "์ ํํ ๋ณ์ ์ฐฝ์ ์คํํ๋ฉด์ ๋ณด์ด๊ฒ ํฉ๋๋ค.",
"hide_variable": "์ ํํ ๋ณ์ ์ฐฝ์ ์คํํ๋ฉด์์ ์จ๊น๋๋ค.",
"value_of_index_from_list": "์ ํํ ๋ฆฌ์คํธ์์ ์ ํํ ๊ฐ์ ์์์ ์๋ ํญ๋ชฉ ๊ฐ์ ์๋ฏธํฉ๋๋ค. (๋ด๋ถ ๋ธ๋ก์ ๋ถ๋ฆฌํ๋ฉด ์์๋ฅผ ์ซ์๋ก ์
๋ ฅ ๊ฐ๋ฅ)",
"add_value_to_list": "์
๋ ฅํ ๊ฐ์ด ์ ํํ ๋ฆฌ์คํธ์ ๋ง์ง๋ง ํญ๋ชฉ์ผ๋ก ์ถ๊ฐ๋ฉ๋๋ค.",
"remove_value_from_list": "์ ํํ ๋ฆฌ์คํธ์ ์
๋ ฅํ ์์์ ์๋ ํญ๋ชฉ์ ์ญ์ ํฉ๋๋ค.",
"insert_value_to_list": "์ ํํ ๋ฆฌ์คํธ์ ์
๋ ฅํ ์์์ ์์น์ ์
๋ ฅํ ํญ๋ชฉ์ ๋ฃ์ต๋๋ค. (์
๋ ฅํ ํญ๋ชฉ์ ๋ค์ ์๋ ํญ๋ชฉ๋ค์ ์์๊ฐ ํ๋์ฉ ๋ฐ๋ ค๋ฉ๋๋ค.)",
"change_value_list_index": "์ ํํ ๋ฆฌ์คํธ์์ ์
๋ ฅํ ์์์ ์๋ ํญ๋ชฉ์ ๊ฐ์ ์
๋ ฅํ ๊ฐ์ผ๋ก ๋ฐ๊ฟ๋๋ค.",
"length_of_list": "์ ํํ ๋ฆฌ์คํธ๊ฐ ๋ณด์ ํ ํญ๋ชฉ ๊ฐ์ ๊ฐ์
๋๋ค.",
"show_list": "์ ํํ ๋ฆฌ์คํธ๋ฅผ ์คํํ๋ฉด์ ๋ณด์ด๊ฒ ํฉ๋๋ค.",
"hide_list": "์ ํํ ๋ฆฌ์คํธ๋ฅผ ์คํํ๋ฉด์์ ์จ๊น๋๋ค.",
"text": "ํด๋น ๊ธ์์๊ฐ ํ์ํ๊ณ ์๋ ๋ฌธ์๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"text_write": "๊ธ์์์ ๋ด์ฉ์ ์
๋ ฅํ ๊ฐ์ผ๋ก ๊ณ ์ณ์๋๋ค.",
"text_append": "๊ธ์์์ ๋ด์ฉ ๋ค์ ์
๋ ฅํ ๊ฐ์ ์ถ๊ฐํฉ๋๋ค.",
"text_prepend": "๊ธ์์์ ๋ด์ฉ ์์ ์
๋ ฅํ ๊ฐ์ ์ถ๊ฐํฉ๋๋ค.",
"text_flush": "๊ธ์์์ ์ ์ฅ๋ ๊ฐ์ ๋ชจ๋ ์ง์๋๋ค.",
"erase_all_effects": "ํด๋น ์ค๋ธ์ ํธ์ ์ ์ฉ๋ ํจ๊ณผ๋ฅผ ๋ชจ๋ ์ง์๋๋ค.",
"char_at": "์
๋ ฅํ ๋ฌธ์/์ซ์๊ฐ ์ค ์
๋ ฅํ ์ซ์ ๋ฒ์งธ์ ๊ธ์ ๊ฐ์
๋๋ค.",
"length_of_string": "์
๋ ฅํ ๋ฌธ์๊ฐ์ ๊ณต๋ฐฑ์ ํฌํจํ ๊ธ์ ์์
๋๋ค.",
"substring": "์
๋ ฅํ ๋ฌธ์/์ซ์ ๊ฐ์์ ์
๋ ฅํ ๋ฒ์ ๋ด์ ๋ฌธ์/์ซ์ ๊ฐ์
๋๋ค.",
"replace_string": "์
๋ ฅํ ๋ฌธ์/์ซ์ ๊ฐ์์ ์ง์ ํ ๋ฌธ์/์ซ์ ๊ฐ์ ์ฐพ์ ์ถ๊ฐ๋ก ์
๋ ฅํ ๋ฌธ์/์ซ์๊ฐ์ผ๋ก ๋ชจ๋ ๋ฐ๊พผ ๊ฐ์
๋๋ค. (์๋ฌธ ์
๋ ฅ์ ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.)",
"index_of_string": "์
๋ ฅํ ๋ฌธ์/์ซ์ ๊ฐ์์ ์ง์ ํ ๋ฌธ์/์ซ์ ๊ฐ์ด ์ฒ์์ผ๋ก ๋ฑ์ฅํ๋ ์์น์ ๊ฐ์
๋๋ค. (์๋
, ์ํธ๋ฆฌ!์์ ์ํธ๋ฆฌ์ ์์ ์์น๋ 5)",
"change_string_case": "์
๋ ฅํ ์๋ฌธ์ ๋ชจ๋ ์ํ๋ฒณ์ ๋๋ฌธ์ ๋๋ ์๋ฌธ์๋ก ๋ฐ๊พผ ๋ฌธ์๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"direction_relative_duration": "ํด๋น ์ค๋ธ์ ํธ์ ์ด๋๋ฐฉํฅ์ ์
๋ ฅํ ์๊ฐ์ ๊ฑธ์ณ ์
๋ ฅํ ๊ฐ๋๋งํผ ์๊ณ๋ฐฉํฅ์ผ๋ก ํ์ ํฉ๋๋ค. ",
"get_sound_volume": "ํ์ฌ ์ํ์ ์ค์ ๋ ์๋ฆฌ์ ํฌ๊ธฐ๊ฐ์ ์๋ฏธํฉ๋๋ค.",
"sound_from_to": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ์๋ฆฌ๋ฅผ ์
๋ ฅํ ์๊ฐ ๋ถ๋ถ๋ง์ ์ฌ์ํ๋ ๋์์ ๋ค์ ๋ธ๋ก์ ์คํํฉ๋๋ค.",
"sound_from_to_and_wait": "ํด๋น ์ค๋ธ์ ํธ๊ฐ ์ ํํ ์๋ฆฌ๋ฅผ ์
๋ ฅํ ์๊ฐ ๋ถ๋ถ๋ง์ ์ฌ์ํ๊ณ , ์๋ฆฌ ์ฌ์์ด ๋๋๋ฉด ๋ค์ ๋ธ๋ก์ ์คํํฉ๋๋ค.",
"Block_info": "๋ธ๋ก ์ค๋ช
",
"Block_click_msg": "๋ธ๋ก์ ํด๋ฆญํ๋ฉด ๋ธ๋ก์ ๋ํ ์ค๋ช
์ด ๋ํ๋ฉ๋๋ค.",
"neobot_sensor_value": "IN1 ~ IN3 ํฌํธ ๋ฐ ๋ฆฌ๋ชจ์ปจ์์ ์
๋ ฅ๋๋ ๊ฐ ๊ทธ๋ฆฌ๊ณ ๋ฐฐํฐ๋ฆฌ ์ ๋ณด๋ฅผ 0๋ถํฐ 255์ ์ซ์๋ก ํ์ํฉ๋๋ค.",
"neobot_sensor_convert_scale": "์ ํํ ํฌํธ ์
๋ ฅ๊ฐ์ ๋ณํ๋ฅผ ํน์ ๋ฒ์์ ๊ฐ์ผ๋ก ํํ๋ฒ์๋ฅผ ์กฐ์ ํ ์ ์์ต๋๋ค.",
"neobot_left_motor": "L๋ชจํฐ ํฌํธ์ ์ฐ๊ฒฐํ ๋ชจํฐ์ ํ์ ๋ฐฉํฅ ๋ฐ ์๋๋ฅผ ์ค์ ํฉ๋๋ค.",
"neobot_stop_left_motor": "L๋ชจํฐ ํฌํธ์ ์ฐ๊ฒฐํ ๋ชจํฐ๋ฅผ ์ ์งํฉ๋๋ค.",
"neobot_right_motor": "R๋ชจํฐ ํฌํธ์ ์ฐ๊ฒฐํ ๋ชจํฐ์ ํ์ ๋ฐฉํฅ ๋ฐ ์๋๋ฅผ ์ค์ ํฉ๋๋ค.",
"neobot_stop_right_motor": "R๋ชจํฐ ํฌํธ์ ์ฐ๊ฒฐํ ๋ชจํฐ๋ฅผ ์ ์งํฉ๋๋ค.",
"neobot_all_motor": "L๋ชจํฐ ๋ฐ R๋ชจํฐ ํฌํธ์ 2๊ฐ ๋ชจํฐ๋ฅผ ์ฐ๊ฒฐํ์ฌ ๋ฐํด๋ก ํ์ฉํ ๋ ์ , ํ, ์ข, ์ฐ ์ด๋ ๋ฐฉํฅ ๋ฐ ์๋, ์๊ฐ์ ์ค์ ํ ์ ์์ต๋๋ค.",
"neobot_stop_all_motor": "L๋ชจํฐ ๋ฐ R๋ชจํฐ์ ์ฐ๊ฒฐํ ๋ชจํฐ๋ฅผ ๋ชจ๋ ์ ์งํฉ๋๋ค.",
"neobot_set_servo": "OUT1 ~ OUT3์ ์๋ณด๋ชจํฐ๋ฅผ ์ฐ๊ฒฐํ์ ๋ 0๋ ~ 180๋ ๋ฒ์ ๋ด์์ ๊ฐ๋๋ฅผ ์กฐ์ ํ ์ ์์ต๋๋ค.",
"neobot_set_output": "OUT1 ~ OUT3์ ๋ผ์ดํ
๋ธ๋ก ๋ฐ ์ ์ํ๋ก๋ฅผ ์ฐ๊ฒฐํ์ ๋ ์ถ๋ ฅ ์ ์์ ์ค์ ํ ์ ์์ต๋๋ค.</br>0์ 0V, 1 ~ 255๋ 2.4 ~ 4.96V์ ์ ์์ ๋ํ๋
๋๋ค.",
"neobot_set_fnd": "FND๋ก 0~99 ๊น์ง์ ์ซ์๋ฅผ ํ์ํ ์ ์์ต๋๋ค.",
"neobot_set_fnd_off": "FND์ ํ์ํ ์ซ์๋ฅผ ๋ ์ ์์ต๋๋ค.",
"neobot_play_note_for": "์ฃผํ์ ๋ฐ์ง ๋ฐฉ๋ฒ์ ์ด์ฉํด ๋ฉ๋ก๋์ ๋ฐ์ ๋จ์์ ๋ฉ๋ก๋ ์์ ๋ฐ์์ํฌ ์ ์์ต๋๋ค.",
"rotate_by_angle_dropdown": "์ค๋ธ์ ํธ์ ๋ฐฉํฅ์ ์
๋ ฅํ ๊ฐ๋๋งํผ ์๊ณ๋ฐฉํฅ์ผ๋ก ํ์ ํฉ๋๋ค. (์ค๋ธ์ ํธ์ ์ค์ฌ์ ์ ๊ธฐ์ค์ผ๋ก ํ์ ํฉ๋๋ค.)"
};
Lang.Category = {
"entrybot_friends": "์ํธ๋ฆฌ๋ด ์น๊ตฌ๋ค",
"people": "์ฌ๋",
"animal": "๋๋ฌผ",
"animal_flying": "ํ๋",
"animal_land": "๋
",
"animal_water": "๋ฌผ",
"animal_others": "๊ธฐํ",
"plant": "์๋ฌผ",
"plant_flower": "๊ฝ",
"plant_grass": "ํ",
"plant_tree": "๋๋ฌด",
"plant_others": "๊ธฐํ",
"vehicles": "ํ๊ฒ",
"vehicles_flying": "ํ๋",
"vehicles_land": "๋
",
"vehicles_water": "๋ฌผ",
"vehicles_others": "๊ธฐํ",
"architect": "๊ฑด๋ฌผ",
"architect_building": "๊ฑด์ถ๋ฌผ",
"architect_monument": "๊ธฐ๋
๋ฌผ",
"architect_others": "๊ธฐํ",
"food": "์์",
"food_vegetables": "๊ณผ์ผ/์ฑ์",
"food_meat": "๊ณ ๊ธฐ",
"food_drink": "์๋ฃ",
"food_others": "๊ธฐํ",
"environment": "ํ๊ฒฝ",
"environment_nature": "์์ฐ",
"environment_space": "์ฐ์ฃผ",
"environment_others": "๊ธฐํ",
"stuff": "๋ฌผ๊ฑด",
"stuff_living": "์ํ",
"stuff_hobby": "์ทจ๋ฏธ",
"stuff_others": "๊ธฐํ",
"fantasy": "ํํ์ง",
"interface": "์ธํฐํ์ด์ค",
"background": "๋ฐฐ๊ฒฝ",
"background_outdoor": "์ค์ธ",
"background_indoor": "์ค๋ด",
"background_nature": "์์ฐ",
"background_others": "๊ธฐํ"
};
Lang.Device = {
"arduino": "์๋์ด๋
ธ",
"byrobot_dronefighter_controller": "๋ฐ์ด๋ก๋ด ๋๋ก ํ์ดํฐ ์ปจํธ๋กค๋ฌ",
"byrobot_dronefighter_drive": "๋ฐ์ด๋ก๋ด ๋๋ก ํ์ดํฐ ์๋์ฐจ",
"byrobot_dronefighter_flight": "๋ฐ์ด๋ก๋ด ๋๋ก ํ์ดํฐ ๋๋ก ",
"hamster": "ํ์คํฐ",
"albert": "์๋ฒํธ",
"robotis_carCont": "๋ก๋ณดํฐ์ฆ ์๋์ฐจ ๋ก๋ด",
"robotis_openCM70": "๋ก๋ณดํฐ์ฆ IoT",
"sensorBoard": "์ํธ๋ฆฌ ์ผ์๋ณด๋",
"CODEino": "์ฝ๋์ด๋
ธ",
"bitbrick": "๋นํธ๋ธ๋ฆญ",
"bitBlock": "๋นํธ๋ธ๋ก",
"xbot_epor_edge": "์์ค๋ด",
"dplay": "๋ํ๋ ์ด",
"nemoino": "๋ค๋ชจ์ด๋
ธ",
"ev3": "EV3",
"robotori": "๋ก๋ณดํ ๋ฆฌ"
};
Lang.General = {
"turn_on": "์ผ๊ธฐ",
"turn_off": "๋๊ธฐ",
"left": "์ผ์ชฝ",
"right": "์ค๋ฅธ์ชฝ",
"param_string": "string",
"both": "์์ชฝ",
"transparent": "ํฌ๋ช
",
"black": "๊ฒ์์",
"brown": "๊ฐ์",
"red": "๋นจ๊ฐ์",
"yellow": "๋
ธ๋์",
"green": "์ด๋ก์",
"skyblue": "ํ๋์",
"blue": "ํ๋์",
"purple": "๋ณด๋ผ์",
"white": "ํ์์",
"note_c": "๋",
"note_d": "๋ ",
"note_e": "๋ฏธ",
"note_f": "ํ",
"note_g": "์",
"note_a": "๋ผ",
"note_b": "์"
};
Lang.Fonts = {
"batang": "๋ฐํ์ฒด",
"myeongjo": "๋ช
์กฐ์ฒด",
"gothic": "๊ณ ๋์ฒด",
"pen_script": "ํ๊ธฐ์ฒด",
"jeju_hallasan": "ํ๋ผ์ฐ์ฒด",
"gothic_coding": "์ฝ๋ฉ๊ณ ๋์ฒด"
};
Lang.Hw = {
"note": "์ํ",
"leftWheel": "์ผ์ชฝ ๋ฐํด",
"rightWheel": "์ค๋ฅธ์ชฝ ๋ฐํด",
"leftEye": "์ผ์ชฝ ๋",
"rightEye": "์ค๋ฅธ์ชฝ ๋",
"led": "๋ถ๋น",
"led_en": "LED",
"body": "๋ชธํต",
"front": "์์ชฝ",
"port_en": "",
"port_ko": "๋ฒ ํฌํธ",
"sensor": "์ผ์",
"light": "๋น",
"temp": "์จ๋",
"switch_": "์ค์์น",
"right_ko": "์ค๋ฅธ์ชฝ",
"right_en": "",
"left_ko": "์ผ์ชฝ",
"left_en": "",
"up_ko": "์์ชฝ",
"up_en": "",
"down_ko": "์๋์ชฝ",
"down_en": "",
"output": "์ถ๋ ฅ",
"left": "์ผ์ชฝ",
"right": "์ค๋ฅธ์ชฝ",
"sub": "์๋ณด",
"motor": "๋ชจํฐ",
"": "",
"buzzer": "๋ฒ์ "
};
Lang.template = {
"albert_hand_found": "Entry.Albert.isHandFound()",
"albert_is_oid_value": "Entry.Albert.isOidValue(' %1 ' , %2 )",
"albert_value": "%1",
"albert_move_forward_for_secs": "Entry.Albert.moveForwardForSecs( %1 ) %2",
"albert_move_backward_for_secs": "Entry.Albert.moveBackwardForSecs( %1 ) %2",
"albert_turn_for_secs": "Entry.Albert.turnForSecs(' %1 ', %2 ) %3",
"albert_change_both_wheels_by": "Entry.Albert.changeWheelsBy( %1 , %2 ) %3",
"albert_set_both_wheels_to": "Entry.Albert.setWheelsTo( %1 , %2 ) %3",
"albert_change_wheel_by": "Entry.Albert.changeWheelsBy(' %1 ', %2 ) %3",
"albert_set_wheel_to": "Entry.Albert.setWheelsTo(' %1 ', %2 ) %3",
"albert_stop": "Entry.Albert.stop() %1",
"albert_set_pad_size_to": "Entry.Albert.setBoardSizeTo( %1 , %2 ) %3",
"albert_move_to_x_y_on_board": "Entry.Albert.moveToOnBoard( %1 , %2 ) %3",
"albert_set_orientation_on_board": "Entry.Albert.setOrientationToOnBoard( %1 )",
"albert_set_eye_to": "Entry.Albert.setEyeTo(' %1 ',' %2 ') %3",
"albert_clear_eye": "Entry.Albert.clearEye(' %1 ') %2",
"albert_body_led": "Entry.Albert.turnBodyLed(' %1 ') %2",
"albert_front_led": "Entry.Albert.turnFrontLed(' %1 ') %2",
"albert_beep": "Entry.Albert.beep() %1",
"albert_change_buzzer_by": "Entry.Albert.changeBuzzerBy( %1 ) %2",
"albert_set_buzzer_to": "Entry.Albert.setBuzzerTo( %1 ) %2",
"albert_clear_buzzer": "Entry.Albert.clearBuzzer() %1",
"albert_play_note_for": "Entry.Albert.playNoteForBeats(' %1 ', %2 , %3 ) %4",
"albert_rest_for": "Entry.Albert.restForBeats( %1 ) %2",
"albert_change_tempo_by": "Entry.Albert.changeTempoBy( %1 ) %2",
"albert_set_tempo_to": "Entry.Albert.setTempoTo( %1 ) %2",
"albert_move_forward": "move forward %1",
"albert_move_backward": "move backward %1",
"albert_turn_around": "turn %1 %2",
"albert_set_led_to": "Entry.Hamster.setLedTo(' %1 %2 ') %3",
"albert_clear_led": "Entry.Hamster.clearLed(' %1 ') %2",
"albert_change_wheels_by": "%1 %2 %3",
"albert_set_wheels_to": "%1 %2 %3",
"arduino_text": "%1",
"arduino_send": "์ ํธ %1 ๋ณด๋ด๊ธฐ",
"arduino_get_number": "์ ํธ %1 ์ ์ซ์ ๊ฒฐ๊ณผ๊ฐ",
"arduino_get_string": "์ ํธ %1 ์ ๊ธ์ ๊ฒฐ๊ณผ๊ฐ",
"arduino_get_sensor_number": "%1 ",
"arduino_get_port_number": "%1 ",
"arduino_get_pwm_port_number": "%1 ",
"arduino_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"arduino_ext_get_analog_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ",
"arduino_ext_get_analog_value_map": "์๋ ๋ก๊ทธ %1๋ฒ ์ผ์๊ฐ์ ๋ฒ์๋ฅผ %2 ~ %3 ์์ %4 ~ %5 (์ผ)๋ก ๋ฐ๊พผ๊ฐ ",
"arduino_ext_get_ultrasonic_value": "์ธํธ๋ผ์๋ Trig %1๋ฒํ Echo %2๋ฒํ ์ผ์๊ฐ",
"arduino_ext_toggle_led": "๋์งํธ %1 ๋ฒ ํ %2 %3",
"arduino_ext_digital_pwm": "๋์งํธ %1 ๋ฒ ํ์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"arduino_ext_set_tone": "๋์งํธ %1 ๋ฒ ํ์ %2 ์์ผ๋ก %3์ ์ฅํ๋ฅด๋ณด %4 ๋งํผ ์ฐ์ฃผํ๊ธฐ %5",
"arduino_ext_set_servo": "์๋ณด๋ชจํฐ %1 ๋ฒ ํ์ %2 ์ ๊ฐ๋๋ก ์ ํ๊ธฐ %3",
"arduino_ext_get_digital": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ",
/* BYROBOT DroneFighter Controller Start */
"byrobot_dronefighter_controller_controller_value_button" : "%1",
"byrobot_dronefighter_controller_controller_value_joystick" : "%1",
"byrobot_dronefighter_controller_controller_if_button_press" : "์กฐ์ข
๊ธฐ %1 ๋๋ ์ ๋",
"byrobot_dronefighter_controller_controller_if_joystick_direction" : "์กฐ์ข
๊ธฐ %1 ์กฐ์ด์คํฑ %2 ์์ง์์ ๋",
"byrobot_dronefighter_controller_controller_light_manual_single_off" : "์กฐ์ข
๊ธฐ LED ๋๊ธฐ %1",
"byrobot_dronefighter_controller_controller_light_manual_single" : "์กฐ์ข
๊ธฐ LED %1 %2 %3", /* ์ ์ฒด ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_controller_controller_light_manual_single_input" : "์กฐ์ข
๊ธฐ LED %1 ๋ฐ๊ธฐ %2 %3", /* ์ ์ฒด TextBox ์ฌ์ฉ */
"byrobot_dronefighter_controller_controller_buzzer_off" : "๋ฒ์ ๋๊ธฐ %1", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_controller_controller_buzzer_scale" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) ์ฐ์ฃผ %3", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_controller_controller_buzzer_scale_delay" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) %3 ์ด ์ฐ์ฃผ %4", /* ๋ธ๋ญ ๋๋ ์ด ์ฌ์ฉ */
"byrobot_dronefighter_controller_controller_buzzer_scale_reserve" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) %3 ์ด ์์ฝ %4", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_controller_controller_buzzer_hz" : "%1 Hz ์๋ฆฌ๋ฅผ ์ฐ์ฃผ %2", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_controller_controller_buzzer_hz_delay" : "%1 Hz ์๋ฆฌ๋ฅผ %2 ์ด ์ฐ์ฃผ %3", /* ๋ธ๋ญ ๋๋ ์ด ์ฌ์ฉ */
"byrobot_dronefighter_controller_controller_buzzer_hz_reserve" : "%1 Hz ์๋ฆฌ๋ฅผ %2 ์ด ์์ฝ %3", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_controller_controller_vibrator_off" : "์ง๋ ๋๊ธฐ %1",
"byrobot_dronefighter_controller_controller_vibrator_on_delay" : "์ง๋ %1 ์ด ์ผ๊ธฐ %2",
"byrobot_dronefighter_controller_controller_vibrator_on_reserve" : "์ง๋ %1 ์ด ์์ฝ %2",
"byrobot_dronefighter_controller_controller_vibrator_delay" : "์ง๋ %1 ์ด ์ผ๊ธฐ, %2 ์ด ๋๊ธฐ๋ฅผ %3 ์ด ์คํ %4",
"byrobot_dronefighter_controller_controller_vibrator_reserve" : "์ง๋ %1 ์ด ์ผ๊ธฐ, %2 ์ด ๋๊ธฐ๋ฅผ %3 ์ด ์์ฝ %4",
"byrobot_dronefighter_controller_controller_userinterface_preset" : "์กฐ์ข
๊ธฐ ์ค์ ๋ชจ๋ ์ฌ์ฉ์ ์ธํฐํ์ด์ค %1 %2",
"byrobot_dronefighter_controller_controller_userinterface" : "์กฐ์ข
๊ธฐ ์ค์ ๋ชจ๋ %1 %2 %3",
/* BYROBOT DroneFighter Controller End */
/* BYROBOT DroneFighter Drive Start */
"byrobot_dronefighter_drive_drone_value_attitude" : "%1",
"byrobot_dronefighter_drive_drone_value_etc" : "%1",
"byrobot_dronefighter_drive_controller_value_button" : "%1",
"byrobot_dronefighter_drive_controller_value_joystick" : "%1",
"byrobot_dronefighter_drive_controller_if_button_press" : "์กฐ์ข
๊ธฐ %1 ๋๋ ์ ๋",
"byrobot_dronefighter_drive_controller_if_joystick_direction" : "์กฐ์ข
๊ธฐ %1 ์กฐ์ด์คํฑ %2 ์์ง์์ ๋",
"byrobot_dronefighter_drive_drone_control_car_stop" : "์๋์ฐจ ์ ์ง %1",
"byrobot_dronefighter_drive_drone_control_double_one" : "์๋์ฐจ๋ฅผ %1 %2% ์ ํ๊ธฐ %3", /* ๋ฐฉํฅ ์ ํ์ ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_drive_drone_control_double_one_delay" : "์๋์ฐจ๋ฅผ %1 %2% %3 ์ด ์คํ %4", /* ๋ฐฉํฅ ์ ํ์ ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_drive_drone_control_double" : "์๋์ฐจ๋ฅผ ๋ฐฉํฅ %1%, ์ ์ง %2% ์ ํ๊ธฐ %3",
"byrobot_dronefighter_drive_drone_motor_stop" : "๋ชจํฐ ์ ์ง %1",
"byrobot_dronefighter_drive_drone_motorsingle" : "%1 ๋ฒ ๋ชจํฐ๋ฅผ %2 (์ผ)๋ก ํ์ %3",
"byrobot_dronefighter_drive_drone_motorsingle_input" : "%1 ๋ฒ ๋ชจํฐ๋ฅผ %2 (์ผ)๋ก ํ์ %3",
"byrobot_dronefighter_drive_drone_irmessage" : "์ ์ธ์ ์ผ๋ก %1 ๊ฐ ๋ณด๋ด๊ธฐ %2",
"byrobot_dronefighter_drive_controller_light_manual_single_off" : "์กฐ์ข
๊ธฐ LED ๋๊ธฐ %1",
"byrobot_dronefighter_drive_controller_light_manual_single" : "์กฐ์ข
๊ธฐ LED %1 %2 %3", /* ์ ์ฒด ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_drive_controller_light_manual_single_input" : "์กฐ์ข
๊ธฐ LED %1 ๋ฐ๊ธฐ %2 %3", /* ์ ์ฒด TextBox ์ฌ์ฉ */
"byrobot_dronefighter_drive_drone_light_manual_single_off" : "์๋์ฐจ LED ๋๊ธฐ %1",
"byrobot_dronefighter_drive_drone_light_manual_single" : "์๋์ฐจ LED %1 %2 %3", /* ์ ์ฒด ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_drive_drone_light_manual_single_input" : "์๋์ฐจ LED %1 ๋ฐ๊ธฐ %2 %3", /* ์ ์ฒด TextBox ์ฌ์ฉ */
"byrobot_dronefighter_drive_controller_buzzer_off" : "๋ฒ์ ๋๊ธฐ %1", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_drive_controller_buzzer_scale" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) ์ฐ์ฃผ %3", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_drive_controller_buzzer_scale_delay" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) %3 ์ด ์ฐ์ฃผ %4", /* ๋ธ๋ญ ๋๋ ์ด ์ฌ์ฉ */
"byrobot_dronefighter_drive_controller_buzzer_scale_reserve" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) %3 ์ด ์์ฝ %4", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_drive_controller_buzzer_hz" : "%1 Hz ์๋ฆฌ๋ฅผ ์ฐ์ฃผ %2", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_drive_controller_buzzer_hz_delay" : "%1 Hz ์๋ฆฌ๋ฅผ %2 ์ด ์ฐ์ฃผ %3", /* ๋ธ๋ญ ๋๋ ์ด ์ฌ์ฉ */
"byrobot_dronefighter_drive_controller_buzzer_hz_reserve" : "%1 Hz ์๋ฆฌ๋ฅผ %2 ์ด ์์ฝ %3", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_drive_controller_vibrator_off" : "์ง๋ ๋๊ธฐ %1",
"byrobot_dronefighter_drive_controller_vibrator_on_delay" : "์ง๋ %1 ์ด ์ผ๊ธฐ %2",
"byrobot_dronefighter_drive_controller_vibrator_on_reserve" : "์ง๋ %1 ์ด ์์ฝ %2",
"byrobot_dronefighter_drive_controller_vibrator_delay" : "์ง๋ %1 ์ด ์ผ๊ธฐ, %2 ์ด ๋๊ธฐ๋ฅผ %3 ์ด ์คํ %4",
"byrobot_dronefighter_drive_controller_vibrator_reserve" : "์ง๋ %1 ์ด ์ผ๊ธฐ, %2 ์ด ๋๊ธฐ๋ฅผ %3 ์ด ์์ฝ %4",
/* BYROBOT DroneFighter Drive End */
/* BYROBOT DroneFighter Flight Start */
"byrobot_dronefighter_flight_drone_value_attitude" : "%1",
"byrobot_dronefighter_flight_drone_value_etc" : "%1",
"byrobot_dronefighter_flight_controller_value_button" : "%1",
"byrobot_dronefighter_flight_controller_value_joystick" : "%1",
"byrobot_dronefighter_flight_controller_if_button_press" : "์กฐ์ข
๊ธฐ %1 ๋๋ ์ ๋",
"byrobot_dronefighter_flight_controller_if_joystick_direction" : "์กฐ์ข
๊ธฐ %1 ์กฐ์ด์คํฑ %2 ์์ง์์ ๋",
"byrobot_dronefighter_flight_drone_control_drone_stop" : "๋๋ก ์ ์ง %1",
"byrobot_dronefighter_flight_drone_control_coordinate" : "๋๋ก ์ขํ ๊ธฐ์ค์ %1๋ก ์ ํ๊ธฐ %2",
"byrobot_dronefighter_flight_drone_control_drone_reset_heading" : "๋๋ก ๋ฐฉํฅ ์ด๊ธฐํ %1",
"byrobot_dronefighter_flight_drone_control_quad_one" : "๋๋ก %1 %2% ์ ํ๊ธฐ %3", /* ๋ฐฉํฅ ์ ํ์ ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_flight_drone_control_quad_one_delay" : "๋๋ก %1 %2% %3 ์ด ์คํ %4", /* ๋ฐฉํฅ ์ ํ์ ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_flight_drone_control_quad" : "๋๋ก Roll %1%, Pitch %2%, Yaw %3%, Throttle %4% ์ ํ๊ธฐ %5",
"byrobot_dronefighter_flight_drone_motor_stop" : "๋ชจํฐ ์ ์ง %1",
"byrobot_dronefighter_flight_drone_motorsingle" : "%1 ๋ฒ ๋ชจํฐ๋ฅผ %2 (์ผ)๋ก ํ์ %3",
"byrobot_dronefighter_flight_drone_motorsingle_input" : "%1 ๋ฒ ๋ชจํฐ๋ฅผ %2 (์ผ)๋ก ํ์ %3",
"byrobot_dronefighter_flight_drone_irmessage" : "์ ์ธ์ ์ผ๋ก %1 ๊ฐ ๋ณด๋ด๊ธฐ %2",
"byrobot_dronefighter_flight_controller_light_manual_single_off" : "์กฐ์ข
๊ธฐ LED ๋๊ธฐ %1",
"byrobot_dronefighter_flight_controller_light_manual_single" : "์กฐ์ข
๊ธฐ LED %1 %2 %3", /* ์ ์ฒด ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_flight_controller_light_manual_single_input" : "์กฐ์ข
๊ธฐ LED %1 ๋ฐ๊ธฐ %2 %3", /* ์ ์ฒด TextBox ์ฌ์ฉ */
"byrobot_dronefighter_flight_drone_light_manual_single_off" : "๋๋ก LED ๋๊ธฐ %1",
"byrobot_dronefighter_flight_drone_light_manual_single" : "๋๋ก LED %1 %2 %3", /* ์ ์ฒด ComboBox ์ฌ์ฉ */
"byrobot_dronefighter_flight_drone_light_manual_single_input" : "๋๋ก LED %1 ๋ฐ๊ธฐ %2 %3", /* ์ ์ฒด TextBox ์ฌ์ฉ */
"byrobot_dronefighter_flight_controller_buzzer_off" : "๋ฒ์ ๋๊ธฐ %1", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_flight_controller_buzzer_scale" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) ์ฐ์ฃผ %3", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_flight_controller_buzzer_scale_delay" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) %3 ์ด ์ฐ์ฃผ %4", /* ๋ธ๋ญ ๋๋ ์ด ์ฌ์ฉ */
"byrobot_dronefighter_flight_controller_buzzer_scale_reserve" : "%1 ์ฅํ๋ธ %2 ์(๋ฅผ) %3 ์ด ์์ฝ %4", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_flight_controller_buzzer_hz" : "%1 Hz ์๋ฆฌ๋ฅผ ์ฐ์ฃผ %2", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_flight_controller_buzzer_hz_delay" : "%1 Hz ์๋ฆฌ๋ฅผ %2 ์ด ์ฐ์ฃผ %3", /* ๋ธ๋ญ ๋๋ ์ด ์ฌ์ฉ */
"byrobot_dronefighter_flight_controller_buzzer_hz_reserve" : "%1 Hz ์๋ฆฌ๋ฅผ %2 ์ด ์์ฝ %3", /* ๋ธ๋ญ ๋๋ ์ด ์์ */
"byrobot_dronefighter_flight_controller_vibrator_off" : "์ง๋ ๋๊ธฐ %1",
"byrobot_dronefighter_flight_controller_vibrator_on_delay" : "์ง๋ %1 ์ด ์ผ๊ธฐ %2",
"byrobot_dronefighter_flight_controller_vibrator_on_reserve" : "์ง๋ %1 ์ด ์์ฝ %2",
"byrobot_dronefighter_flight_controller_vibrator_delay" : "์ง๋ %1 ์ด ์ผ๊ธฐ, %2 ์ด ๋๊ธฐ๋ฅผ %3 ์ด ์คํ %4",
"byrobot_dronefighter_flight_controller_vibrator_reserve" : "์ง๋ %1 ์ด ์ผ๊ธฐ, %2 ์ด ๋๊ธฐ๋ฅผ %3 ์ด ์์ฝ %4",
/* BYROBOT DroneFighter Flight End */
"dplay_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"nemoino_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"sensorBoard_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"CODEino_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"ardublock_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"arduino_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"dplay_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"nemoino_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"sensorBoard_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"CODEino_get_digital_value": "๋์งํธ %1 ํ์ ๊ฐ ",
"CODEino_set_digital_value": "๋์งํธ %1 ํ์ %2 %3",
"CODEino_set_pwm_value": "๋์งํธ %1 ๋ฒ ํ์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"ardublock_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"arduino_toggle_led": "Digital %1 Pin %2 %3",
"dplay_toggle_led": "Digital %1 Pin %2 %3",
"nemoino_toggle_led": "Digital %1 Pin %2 %3",
"sensorBoard_toggle_led": "Digital %1 Pin %2 %3",
"CODEino_toggle_led": "Digital %1 Pin %2 %3",
"ardublock_toggle_led": "๋์งํธ %1 ๋ฒ ํ %2 %3",
"arduino_toggle_pwm": "Digital %1 Pin %2 %3",
"dplay_toggle_pwm": "Digital %1 Pin %2 %3",
"nemoino_toggle_pwm": "Digital %1 Pin %2 %3",
"sensorBoard_toggle_pwm": "Digital %1 Pin %2 %3",
"CODEino_toggle_pwm": "Digital %1 Pin %2 %3",
"ardublock_toggle_pwm": "๋์งํธ %1 ๋ฒ ํ์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"arduino_convert_scale": "Map Value %1 %2 ~ %3 to %4 ~ %5 ",
"dplay_convert_scale": "Map Value %1 %2 ~ %3 to %4 ~ %5 ",
"nemoino_convert_scale": "Map Value %1 %2 ~ %3 to %4 ~ %5 ",
"sensorBoard_convert_scale": "Map Value %1 %2 ~ %3 to %4 ~ %5 ",
"CODEino_convert_scale": "Map Value %1 %2 ~ %3 to %4 ~ %5 ",
"CODEino_set_rgb_value": "์ปฌ๋ฌ LED์ %1 ์์์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"CODEino_set_rgb_add_value": "์ปฌ๋ฌ LED์ %1 ์์์ %2 ๋งํผ ๋ํ๊ธฐ %3",
"CODEino_set_rgb_off": "์ปฌ๋ฌ LED ๋๊ธฐ %1",
"CODEino_set__led_by_rgb": "์ปฌ๋ฌ LED ์์์ ๋นจ๊ฐ %1 ์ด๋ก %2 ํ๋ %3 (์ผ)๋ก ์ ํ๊ธฐ %4",
"CODEino_rgb_set_color": "์ปฌ๋ฌ LED์ ์์์ %1 (์ผ)๋ก ์ ํ๊ธฐ %2",
"CODEino_led_by_value": "์ปฌ๋ฌ LED ์ผ๊ธฐ %1",
"ardublock_convert_scale": "%1 ๊ฐ์ ๋ฒ์๋ฅผ %2 ~ %3 ์์ %4 ~ %5 (์ผ)๋ก ๋ฐ๊พผ๊ฐ ",
"joystick_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"joystick_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"joystick_toggle_led": "Digital %1 Pin %2 %3",
"joystick_toggle_pwm": "Digital %1 Pin %2 %3",
"joystick_convert_scale": "Map Value %1 %2 ~ %3 to %4 ~ %5 ",
"sensorBoard_get_named_sensor_value": "%1 ์ผ์๊ฐ",
"sensorBoard_is_button_pressed": "%1 ๋ฒํผ์ ๋๋ ๋๊ฐ?",
"sensorBoard_led": "%1 LED %2 %3",
"arduino_download_connector": "%1",
"download_guide": "%1",
"arduino_download_source": "%1",
"arduino_connected": "%1",
"arduino_reconnect": "%1",
"CODEino_get_sensor_number": "%1 ",
"CODEino_get_named_sensor_value": " %1 Sensor value ",
"CODEino_get_sound_status": "Sound is %1 ",
"CODEino_get_light_status": "Light is %1 ",
"CODEino_is_button_pressed": " Operation %1 ",
"CODEino_get_accelerometer_direction": " 3-AXIS Accelerometer %1 ",
"CODEino_get_accelerometer_value": " 3-AXIS Accelerometer %1 -axis value ",
"CODEino_get_analog_value": "์๋ ๋ก๊ทธ %1 ์ผ์์ ๊ฐ",
"bitbrick_sensor_value": "%1 ๊ฐ",
"bitbrick_is_touch_pressed": "touch %1 ์ด(๊ฐ) ๋๋ ธ๋๊ฐ?",
"bitbrick_turn_off_color_led": "์ปฌ๋ฌ LED ๋๊ธฐ %1",
"bitbrick_turn_on_color_led_by_rgb": "์ปฌ๋ฌ LED ์ผ๊ธฐ R %1 G %2 B %3 %4",
"bitbrick_turn_on_color_led_by_picker": "์ปฌ๋ฌ LED ์ %1 ๋ก ์ ํ๊ธฐ %2",
"bitbrick_turn_on_color_led_by_value": "์ปฌ๋ฌ LED ์ผ๊ธฐ ์ %1 ๋ก ์ ํ๊ธฐ %2",
"bitbrick_buzzer": "๋ฒ์ ์ %1 ๋ด๊ธฐ %2",
"bitbrick_turn_off_all_motors": "๋ชจ๋ ๋ชจํฐ ๋๊ธฐ %1",
"bitbrick_dc_speed": "DC ๋ชจํฐ %1 ์๋ %2 %3",
"bitbrick_dc_direction_speed": "DC ๋ชจํฐ %1 %2 ๋ฐฉํฅ ์๋ ฅ %3 %4",
"bitbrick_servomotor_angle": "์๋ณด ๋ชจํฐ %1 ๊ฐ๋ %2 %3",
"bitbrick_convert_scale": "๋ณํ %1 ๊ฐ %2 ~ %3 ์์ %4 ~ %5",
"start_drawing": "this.startDraw() %1",
"stop_drawing": "this.stopDraw() %1",
"set_color": "this.brush.color = %1 %2",
"set_random_color": "this.brush.color = Entry.getRandomColor() %1",
"change_thickness": "this.brush.thickness += %1 %2",
"set_thickness": "this.brush.thickness = %1 %2",
"change_opacity": "this.brush.opacity += %1 %2",
"set_opacity": "this.brush.opacity = %1 %2",
"brush_erase_all": "this.brush.removeAll() %1",
"brush_stamp": "Stamp %1",
"change_brush_transparency": "this.brush.opacity -= %1 %2",
"set_brush_tranparency": "this.brush.opacity -= %1 %2",
"number": "%1",
"angle": "%1",
"get_x_coordinate": "%1",
"get_y_coordinate": "%1",
"get_angle": "%1",
"get_rotation_direction": "%1 ",
"distance_something": "%1 %2 %3",
"coordinate_mouse": "%1 %2 %3",
"coordinate_object": "%1 %2 %3 %4",
"calc_basic": "%1 %2 %3",
"calc_plus": "%1 %2 %3",
"calc_minus": "%1 %2 %3",
"calc_times": "%1 %2 %3",
"calc_divide": "%1 %2 %3",
"calc_mod": "%1 %2 %3 %4 %5",
"calc_share": "%1 %2 %3 %4 %5",
"calc_operation": "%1 %2 %3 %4 ",
"calc_rand": "%1 %2 %3 %4 %5",
"get_date": "%1 %2 %3",
"get_sound_duration": "%1 %2 %3",
"reset_project_timer": "%1",
"set_visible_project_timer": "%1 %2 %3 %4",
"timer_variable": "%1 %2",
"get_project_timer_value": "%1 %2",
"char_at": "%1 %2 %3 %4 %5",
"length_of_string": "%1 %2 %3",
"substring": "%1 %2 %3 %4 %5 %6 %7",
"replace_string": "%1 %2 %3 %4 %5 %6 %7",
"change_string_case": "%1 %2 %3 %4 %5",
"index_of_string": "%1 %2 %3 %4 %5",
"combine_something": "%1 %2 %3 %4 %5",
"get_sound_volume": "%1 %2",
"quotient_and_mod": "%1 %2 %3 %4 %5 %6",
"choose_project_timer_action": "%1 %2 %3 %4",
"wait_second": "Entry.wait( %1 ) %2",
"repeat_basic": "for ( i = 0 %1 ) %2",
"repeat_inf": "while(true) %1",
"stop_repeat": "break %1",
"wait_until_true": "while ( %1 != true) { } %2",
"_if": "if ( %1 ) %2",
"if_else": "if ( %1 ) %2 %3 else",
"create_clone": "Entry.createClone( %1 ) %2",
"delete_clone": "Entry.removeClone(this) %1",
"when_clone_start": "%1 Entry.addEventListener('clone_created')",
"stop_run": "ํ๋ก๊ทธ๋จ ๋๋ด๊ธฐ %1",
"repeat_while_true": "Repeat %1 %2 %3",
"stop_object": "Entry.stop( %1 ) %2",
"restart_project": "Entry.restart() %1",
"remove_all_clones": "Entry.removeAllClone() %1",
"functionAddButton": "%1",
"function_field_label": "%1%2",
"function_field_string": "%1%2",
"function_field_boolean": "%1%2",
"function_param_string": "Character/Number",
"function_param_boolean": "Judgement",
"function_create": "define function %1 %2",
"function_general": "function %1",
"hamster_hand_found": "Entry.Hamster.isHandFound()",
"hamster_value": "%1",
"hamster_move_forward_once": "Entry.Hamster.moveForwardOnceOnBoard() %1",
"hamster_turn_once": "Entry.Hamster.turnOnceOnBoard(' %1 ') %2",
"hamster_move_forward_for_secs": "Entry.Hamster.moveForwardForSecs( %1 ) %2",
"hamster_move_backward_for_secs": "Entry.Hamster.moveBackwardForSecs( %1 ) %2",
"hamster_turn_for_secs": "Entry.Hamster.turnForSecs(' %1 ', %2 ) %3",
"hamster_change_both_wheels_by": "Entry.Hamster.changeWheelsBy( %1, %2 ) %3",
"hamster_set_both_wheels_to": "Entry.Hamster.setWheelsTo( %1, %2 ) %3",
"hamster_change_wheel_by": "Entry.Hamster.changeWheelsBy(' %1 ', %2 ) %3",
"hamster_set_wheel_to": "Entry.Hamster.setWheelsTo(' %1 ', %2 ) %3",
"hamster_follow_line_using": "Entry.Hamster.followLineUsingFloorSensor(' %1 ',' %2 ') %3",
"hamster_follow_line_until": "Entry.Hamster.followLineUntilIntersection(' %1 ',' %2 ') %3",
"hamster_set_following_speed_to": "Entry.Hamster.setFollowingSpeedTo( %1 ) %2",
"hamster_stop": "Entry.Hamster.stop() %1",
"hamster_set_led_to": "Entry.Hamster.setLedTo(' %1 ',' %2 ') %3",
"hamster_clear_led": "Entry.Hamster.clearLed(' %1 ') %2",
"hamster_beep": "Entry.Hamster.beep() %1",
"hamster_change_buzzer_by": "Entry.Hamster.changeBuzzerBy( %1 ) %2",
"hamster_set_buzzer_to": "Entry.Hamster.setBuzzerTo( %1 ) %2",
"hamster_clear_buzzer": "Entry.Hamster.clearBuzzer() %1",
"hamster_play_note_for": "Entry.Hamster.playNoteForBeats(' %1 ', %2 , %3 ) %4",
"hamster_rest_for": "Entry.Hamster.restForBeats( %1 ) %2",
"hamster_change_tempo_by": "Entry.Hamster.changeTempoBy( %1 ) %2",
"hamster_set_tempo_to": "Entry.Hamster.setTempoTo( %1 ) %2",
"hamster_set_port_to": "Entry.Hamster.setPortTo(' %1 ',' %2 ') %3",
"hamster_change_output_by": "Entry.Hamster.changeOutputBy(' %1 ', %2 ) %3",
"hamster_set_output_to": "Entry.Hamster.setOutputTo(' %1 ', %2 ) %3",
"is_clicked": "%1",
"is_press_some_key": "%1 %2",
"reach_something": "%1 %2 %3",
"boolean_comparison": "%1 %2 %3",
"boolean_equal": "%1 %2 %3",
"boolean_bigger": "%1 %2 %3",
"boolean_smaller": "%1 %2 %3",
"boolean_and_or": "%1 %2 %3",
"boolean_and": "%1 %2 %3",
"boolean_or": "%1 %2 %3",
"boolean_not": "%1 %2 %3",
"true_or_false": "%1",
"True": "%1 ",
"False": "%1 ",
"boolean_basic_operator": "%1 %2 %3",
"show": "this.show() %1",
"hide": "this.hide() %1",
"dialog_time": "this.setDialogByTime( %1 , %2 , %3 ) %4",
"dialog": "this.setDialog( %1 , %2 ) %3",
"remove_dialog": "this.removeDialog() %1",
"change_to_nth_shape": "this.setShape( %1 ) %2",
"change_to_next_shape": "this.setTo %1 Shape() %2",
"set_effect_volume": "this.addEffect( %1 , %2 ) %3",
"set_effect": "this.setEffect( %1 , %2 ) %3",
"erase_all_effects": "this.removeAllEffects() %1",
"change_scale_percent": "this.scale += %1 %2",
"set_scale_percent": "this.scale = %1 %2",
"change_scale_size": "this.scale += %1 %2",
"set_scale_size": "this.scale = %1 %2",
"flip_y": "this.flip('horizontal') %1",
"flip_x": "this.flip('vertical') %1",
"set_object_order": "Entry.setLayerOrder(this, %1 ) %2",
"get_pictures": "%1 ",
"change_to_some_shape": "this.setShape( %1 ) %2",
"add_effect_amount": "this.addEffect( %1 , %2 ) %3",
"change_effect_amount": "this.setEffect( %1 , %2 ) %3",
"set_effect_amount": "this.addEffect( %1 , %2 ) %3",
"set_entity_effect": "this.setEffect( %1 , %2 ) %3",
"change_object_index": "Entry.setLayerOrder(this, %1 ) %2",
"move_direction": "Entry.moveToDirection( %1 ) %2",
"move_x": "this.x += %1 %2",
"move_y": "this.y += %1 %2",
"locate_xy_time": "this.setXYbyTime( %1 , %2 , %3 ) %4",
"rotate_by_angle": "this.rotation += %1 %2",
"rotate_by_angle_dropdown": "%1 ๋งํผ ํ์ ํ๊ธฐ %2",
"see_angle": "this.direction = %1 %2",
"see_direction": "%1 ์ชฝ ๋ณด๊ธฐ %2",
"locate_xy": "this.setXY( %1 , %2 ) %3",
"locate_x": "this.x = %1 %2",
"locate_y": "this.y = %1 %2",
"locate": "this.locateAt( %1 ) %2",
"move_xy_time": "this.moveXYbyTime( %1 , %2 , %3 ) %4",
"rotate_by_angle_time": "this.rotateByTime( %1 , %2 ) %3",
"bounce_wall": "Entry.bounceWall(this) %1",
"flip_arrow_horizontal": "ํ์ดํ ๋ฐฉํฅ ์ข์ฐ ๋ค์ง๊ธฐ %1",
"flip_arrow_vertical": "ํ์ดํ ๋ฐฉํฅ ์ํ ๋ค์ง๊ธฐ %1",
"see_angle_object": "this.setDirectionTo( %1 ) %2",
"see_angle_direction": "this.rotation = %1 %2",
"rotate_direction": "this.direction += %1 %2",
"locate_object_time": "%1 ์ด ๋์ %2 ์์น๋ก ์ด๋ํ๊ธฐ %3",
"rotate_absolute": "this.rotation = %1 %2",
"rotate_relative": "this.rotation = %1 %2",
"direction_absolute": "this.direction = %1 %2",
"direction_relative": "this.direction += %1 %2",
"move_to_angle": "Entry.moveToDirection( %1 , %2 ) %3",
"rotate_by_time": "%1 , this.rotate( %2 ) %3",
"direction_relative_duration": "%1 %2 %3",
"neobot_sensor_value": "%1 ๊ฐ",
"neobot_turn_left": "์ผ์ชฝ๋ชจํฐ๋ฅผ %1 %2 ํ์ %3",
"neobot_stop_left": "์ผ์ชฝ๋ชจํฐ ์ ์ง %1",
"neobot_turn_right": "์ค๋ฅธ์ชฝ๋ชจํฐ๋ฅผ %1 %2 ํ์ %3",
"neobot_stop_right": "์ค๋ฅธ์ชฝ๋ชจํฐ ์ ์ง %1",
"neobot_run_motor": "%1 ๋ชจํฐ๋ฅผ %2 ์ด๊ฐ %3 %4 %5",
"neobot_servo_1": "SERVO1์ ์ฐ๊ฒฐ๋ ์๋ณด๋ชจํฐ๋ฅผ %1 ์๋๋ก %2 ๋ก ์ด๋ %3",
"neobot_servo_2": "SERVO2์ ์ฐ๊ฒฐ๋ ์๋ณด๋ชจํฐ๋ฅผ %1 ์๋๋ก %2 ๋ก ์ด๋ %3",
"neobot_play_note_for": "๋ฉ๋ก๋ %1 ์(๋ฅผ) %2 ์ฅํ๋ธ๋ก %3 ๊ธธ์ด๋งํผ ์๋ฆฌ๋ด๊ธฐ %4",
"neobot_set_sensor_value": "%1 ๋ฒ ํฌํธ์ ๊ฐ์ %2 %3",
"robotis_openCM70_cm_custom_value": "์ง์ ์
๋ ฅ ์ฃผ์ ( %1 ) %2 ๊ฐ",
"robotis_openCM70_sensor_value": "์ ์ด๊ธฐ %1 ๊ฐ",
"robotis_openCM70_aux_sensor_value": "%1 %2 ๊ฐ",
"robotis_openCM70_cm_buzzer_index": "์ ์ด๊ธฐ ์๊ณ๊ฐ %1 , %2 , ์ฐ์ฃผ %3",
"robotis_openCM70_cm_buzzer_melody": "์ ์ด๊ธฐ ๋ฉ๋ก๋ %1 ๋ฒ ์ฐ์ฃผ %2",
"robotis_openCM70_cm_sound_detected_clear": "์ต์ข
์๋ฆฌ๊ฐ์งํ์ ์ด๊ธฐํ %1",
"robotis_openCM70_cm_led": "์ ์ด๊ธฐ %1 LED %2 %3",
"robotis_openCM70_cm_motion": "๋ชจ์
%1 ๋ฒ ์คํ %2",
"robotis_openCM70_aux_motor_speed": "%1 ๊ฐ์๋ชจํฐ ์๋๋ฅผ %2 , ์ถ๋ ฅ๊ฐ์ %3 (์ผ)๋ก ์ ํ๊ธฐ %4",
"robotis_openCM70_aux_servo_mode": "%1 ์๋ณด๋ชจํฐ ๋ชจ๋๋ฅผ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"robotis_openCM70_aux_servo_speed": "%1 ์๋ณด๋ชจํฐ ์๋๋ฅผ %2 , ์ถ๋ ฅ๊ฐ์ %3 (์ผ)๋ก ์ ํ๊ธฐ %4",
"robotis_openCM70_aux_servo_position": "%1 ์๋ณด๋ชจํฐ ์์น๋ฅผ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"robotis_openCM70_aux_led_module": "%1 LED ๋ชจ๋์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"robotis_openCM70_aux_custom": "%1 ์ฌ์ฉ์ ์ฅ์น๋ฅผ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"robotis_openCM70_cm_custom": "์ง์ ์
๋ ฅ ์ฃผ์ ( %1 ) (์)๋ฅผ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"robotis_carCont_sensor_value": "%1 ๊ฐ",
"robotis_carCont_cm_led": "4๋ฒ LED %1 , 1๋ฒ LED %2 %3",
"robotis_carCont_cm_sound_detected_clear": "์ต์ข
์๋ฆฌ๊ฐ์งํ์ ์ด๊ธฐํ %1",
"robotis_carCont_aux_motor_speed": "%1 ๊ฐ์๋ชจํฐ ์๋๋ฅผ %2 , ์ถ๋ ฅ๊ฐ์ %3 (์ผ)๋ก ์ ํ๊ธฐ %4",
"robotis_carCont_cm_calibration": "%1 ์ ์ธ์ ์ผ์ ์บ๋ฆฌ๋ธ๋ ์ด์
๊ฐ์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"roduino_get_analog_number": "%1 ",
"roduino_get_port_number": "%1 ",
"roduino_get_analog_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"roduino_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"roduino_set_digital": "๋์งํธ %1 ๋ฒ ํ %2 %3",
"roduino_motor": "%1 %2 %3",
"roduino_set_color_pin": "์ปฌ๋ฌ์ผ์ R : %1, G : %2, B : %3 %4",
"roduino_get_color": "์ปฌ๋ฌ์ผ์ %1 ๊ฐ์ง",
"roduino_on_block": " On ",
"roduino_off_block": " Off ",
"schoolkit_get_in_port_number": "%1 ",
"schoolkit_get_out_port_number": "%1 ",
"schoolkit_get_input_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"schoolkit_set_output": "๋์งํธ %1 ๋ฒ ํ %2 %3",
"schoolkit_motor": "%1 ์๋ %2(์ผ)๋ก %3 %4",
"schoolkit_set_servo_value": "์๋ณด๋ชจํฐ %1 ๋ฒ ํ %2ห %3",
"schoolkit_on_block": " On ",
"schoolkit_off_block": " Off ",
"when_scene_start": "%1 this.addEventListener('sceneStart')",
"start_scene": "Scene.changeScene( %1 ) %2",
"start_neighbor_scene": "Scene.changeScene( %1 ) %2",
"sound_something": "Entry.playSound( %1 ) %2",
"sound_something_second": "Entry.playSoundByTime( %1 , %2 ) %3",
"sound_something_wait": "Entry.playSoundAndWait( %1 ) %2",
"sound_something_second_wait": "Entry.playSoundAndWaitByTime( %1 , %2 ) %3",
"sound_volume_change": "Entry.volume += %1 %2",
"sound_volume_set": "Entry.volume = %1 %2",
"sound_silent_all": "Entry.silentAll() %1",
"get_sounds": "%1 ",
"sound_something_with_block": "Entry.playSound( %1 ) %2",
"sound_something_second_with_block": "Entry.playSoundByTime( %1 , %2 ) %3",
"sound_something_wait_with_block": "Entry.playSoundAndWait( %1 ) %2",
"sound_something_second_wait_with_block": "Entry.playSoundAndWaitByTime( %1 , %2 ) %3",
"sound_from_to": "%1 %2 %3 %4",
"sound_from_to_and_wait": "%1 %2 %3 %4",
"when_run_button_click": "%1 Entry.addEventListener('run')",
"press_some_key": "%1 Entry.addEventListener('keydown', key== %2 ) %3",
"when_some_key_pressed": "%1 Entry.addEventListener('keydown', key== %2 )",
"mouse_clicked": "%1 Entry.addEventListener('mousedown')",
"mouse_click_cancled": "%1 Entry.addEventListener('mouseup')",
"when_object_click": "%1 this.addEventListener('mousedown')",
"when_object_click_canceled": "%1 this.addEventListener('mouseup')",
"when_some_key_click": "%1 ํค๋ฅผ ๋๋ ์ ๋",
"when_message_cast": "%1 Entry.addEventListener( %2 )",
"message_cast": "Entry.dispatchEvent( %1 ) %2",
"message_cast_wait": "Entry.dispatchEventAndWait( %1 ) %2",
"text": "%1",
"text_write": "Entry.writeText( %1 ) %2",
"text_append": "Entry.appendText( %1 ) %2",
"text_prepend": "Entry.insertText( %1 ) %2",
"text_flush": "Entry.clearText() %1",
"variableAddButton": "%1",
"listAddButton": "%1",
"change_variable": "Entry.addValueToVariable( %1 , %2 ) %3",
"set_variable": "Entry.setValueVariable( %1 , %2 ) %3",
"show_variable": "Entry.showVariable( %1 ) %2",
"hide_variable": "Entry.hideVariable( %1 ) %2",
"get_variable": "Entry.getVariableValue( %1 )",
"ask_and_wait": "Entry.askAndWait( %1 ) %2",
"get_canvas_input_value": "%1 ",
"add_value_to_list": "Entry.pushValueToList( %1 , %2 ) %3",
"remove_value_from_list": "Entry.removeValueListAt( %1 , %2 ) %3",
"insert_value_to_list": "Entry.pushValueToListAt( %1 , %2 , %3 ) %4",
"change_value_list_index": "Entry.changeValueListAt( %1 , %2 , %3 ) %4",
"value_of_index_from_list": "%1 %2 %3 %4 %5",
"length_of_list": "%1 %2 %3",
"show_list": "Entry.showList( %1 ) %2",
"hide_list": "Entry.hideList( %1 ) %2",
"options_for_list": "%1 ",
"set_visible_answer": "Entry.getAnswer() %1 %2",
"is_included_in_list": "%1 %2 %3 %4 %5",
"xbot_digitalInput": "%1",
"xbot_analogValue": "%1",
"xbot_digitalOutput": "๋์งํธ %1 ํ, ์ถ๋ ฅ ๊ฐ %2 %3",
"xbot_analogOutput": "์๋ ๋ก๊ทธ %1 %2 %3",
"xbot_servo": "์๋ณด ๋ชจํฐ %1 , ๊ฐ๋ %2 %3",
"xbot_oneWheel": "๋ฐํด(DC) ๋ชจํฐ %1 , ์๋ %2 %3",
"xbot_twoWheel": "๋ฐํด(DC) ๋ชจํฐ ์ค๋ฅธ์ชฝ(2) ์๋: %1 ์ผ์ชฝ(1) ์๋: %2 %3",
"xbot_rgb": "RGB LED ์ผ๊ธฐ R ๊ฐ %1 G ๊ฐ %2 B ๊ฐ %3 %4",
"xbot_rgb_picker": "RGB LED ์ %1 ๋ก ์ ํ๊ธฐ %2",
"xbot_buzzer": "Entry.Hamster.playNoteForBeats(' %1 %2 , %3 ์ด ์ฐ์ฃผํ๊ธฐ %4",
"xbot_lcd": "LCD %1 ๋ฒ์งธ ์ค , ์ถ๋ ฅ ๊ฐ %2 %3",
"run": "",
"mutant": "test mutant block",
"jr_start": "%1",
"jr_repeat": "%1 %2 %3",
"jr_item": "๊ฝ ๋ชจ์ผ๊ธฐ %1",
"cparty_jr_item": "%1 %2",
"jr_north": "%1 %2",
"jr_east": "%1 %2",
"jr_south": "%1 %2",
"jr_west": "%1 %2",
"jr_start_basic": "%1 %2",
"jr_go_straight": "%1 %2",
"jr_turn_left": "%1 %2",
"jr_turn_right": "%1 %2",
"jr_go_slow": "%1 %2",
"jr_repeat_until_dest": "%1 %2 %3",
"jr_if_construction": "%1 %2 %3 %4",
"jr_if_speed": "๋ง์ฝ %1 ์์ ์๋ค๋ฉด %2",
"maze_step_start": "%1 ์์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ ๋",
"maze_step_jump": "๋ฐ์ด๋๊ธฐ%1",
"maze_step_for": "%1 ๋ฒ ๋ฐ๋ณตํ๊ธฐ%2",
"test": "%1 this is test block %2",
"maze_repeat_until_1": "%1 ๋ง๋ ๋ ๊น์ง ๋ฐ๋ณต%2",
"maze_repeat_until_2": "๋ชจ๋ %1 ๋ง๋ ๋ ๊น์ง ๋ฐ๋ณต%2",
"maze_step_if_1": "๋ง์ฝ ์์ %1 ์๋ค๋ฉด%2",
"maze_step_if_2": "๋ง์ฝ ์์ %1 ์๋ค๋ฉด%2",
"maze_call_function": "์ฝ์ ๋ถ๋ฌ์ค๊ธฐ%1",
"maze_define_function": "์ฝ์ํ๊ธฐ%1",
"maze_step_if_3": "๋ง์ฝ ์์ %1 ์๋ค๋ฉด%2",
"maze_step_if_4": "๋ง์ฝ ์์ %1 ์๋ค๋ฉด%2",
"maze_step_move_step": "์์ผ๋ก ํ ์นธ ์ด๋%1",
"maze_step_rotate_left": "์ผ์ชฝ์ผ๋ก ํ์ %1",
"maze_step_rotate_right": "์ค๋ฅธ์ชฝ์ผ๋ก ํ์ %1",
"maze_step_forward": "์์ผ๋ก ๊ฐ๊ธฐ%1",
"maze_rotate_left": "์ผ์ชฝ์ผ๋ก ๋๊ธฐ%1",
"maze_rotate_right": "์ค๋ฅธ์ชฝ์ผ๋ก ๋๊ธฐ%1",
"maze_moon_kick": "๋ฐ์ฐจ๊ธฐํ๊ธฐ%1",
"maze_repeat_until_3": "%1์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ%2",
"maze_repeat_until_4": "%1์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ%2",
"maze_repeat_until_5": "%1์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ%2",
"maze_repeat_until_6": "%1์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ%2",
"maze_repeat_until_7": "%1์ ๋์ฐฉํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ%2",
"maze_radar_check": "%1์ %2์ด ์๋ค",
"maze_cony_flower_throw": "๊ฝ ๋์ง๊ธฐ%1",
"maze_brown_punch": "์ฃผ๋จน ๋ ๋ฆฌ๊ธฐ%1",
"maze_iron_switch": "์ฅ์ ๋ฌผ ์กฐ์ข
ํ๊ธฐ%1",
"maze_james_heart": "ํํธ ๋ ๋ฆฌ๊ธฐ%1",
"maze_step_if_5": "๋ง์ฝ ์์ ๊ธธ์ด ์๋ค๋ฉด%2",
"maze_step_if_6": "๋ง์ฝ ์์ %1์ด ์๋ค๋ฉด%2",
"maze_step_if_7": "๋ง์ฝ ์์ %1์ด ์๋ค๋ฉด%2",
"maze_step_if_8": "๋ง์ฝ %1์ด๋ผ๋ฉด%2",
"maze_step_if_else": "๋ง์ฝ %1์ด๋ผ๋ฉด%2 %3 ์๋๋ฉด",
"test_wrapper": "%1 this is test block %2",
"basic_button": "%1",
"ai_move_right": "์์ผ๋ก ๊ฐ๊ธฐ %1",
"ai_move_up": "์์ชฝ์ผ๋ก ๊ฐ๊ธฐ %1",
"ai_move_down": "์๋์ชฝ์ผ๋ก ๊ฐ๊ธฐ %1",
"ai_repeat_until_reach": "๋ชฉ์ ์ง์ ๋๋ฌ ํ ๋๊น์ง ๋ฐ๋ณตํ๊ธฐ %1",
"ai_if_else_1": "๋ง์ฝ ์์ %1๊ฐ ์๋ค๋ฉด %2 %3 ์๋๋ฉด",
"ai_boolean_distance": "%1 ๋ ์ด๋ %2 %3",
"ai_distance_value": "%1 ๋ ์ด๋",
"ai_boolean_object": "%1 ๋ฌผ์ฒด๋ %2 ์ธ๊ฐ?",
"ai_use_item": "์์ดํ
์ฌ์ฉ %1",
"ai_boolean_and": "%1 %2 %3",
"ai_True": "%1",
"ai_if_else": "if ( %1 ) %2 %3 else",
"smartBoard_get_number_sensor_value": "์๋ ๋ก๊ทธ %1 ๋ฒ ์ผ์๊ฐ ",
"smartBoard_get_digital_value": "๋์งํธ %1 ๋ฒ ์ผ์๊ฐ ",
"smartBoard_toggle_led": "๋์งํธ %1 ๋ฒ ํ %2 %3",
"smartBoard_toggle_pwm": "๋์งํธ %1 ๋ฒ ํ์ %2 (์ผ)๋ก ์ ํ๊ธฐ %3",
"smartBoard_convert_scale": "%1 ๊ฐ์ ๋ฒ์๋ฅผ %2 ~ %3 ์์ %4 ~ %5 (์ผ)๋ก ๋ฐ๊พผ๊ฐ ",
"smartBoard_get_named_sensor_value": "%1 ์ผ์๊ฐ",
"smartBoard_is_button_pressed": "%1 ๋ฒํผ์ ๋๋ ๋๊ฐ?",
"smartBoard_set_dc_motor_direction": "%1 DC ๋ชจํฐ๋ฅผ %2 ๋ฐฉํฅ์ผ๋ก ์ ํ๊ธฐ %3 ",
"smartBoard_set_dc_motor_speed": "%1 DC๋ชจํฐ๋ฅผ %2 %3 ",
"smartBoard_set_dc_motor_pwm": "%1 DC๋ชจํฐ๋ฅผ %2 ์๋๋ก ๋๋ฆฌ๊ธฐ %3 ",
"smartBoard_set_servo_port_power": "%1 LED๋ฅผ %2 %3",
"smartBoard_set_servo_port_pwm": "%1 ํ์ %2 ๋ก ์ ํ๊ธฐ %3 ",
"smartBoard_set_servo_speed": "%1 ๋ฒ ์๋ณด๋ชจํฐ์ ์๋๋ฅผ %2 %3",
"smartBoard_set_servo_angle": "%1 ๋ฒ ์๋ณด๋ชจํฐ๋ฅผ %2 ๋ ๋ก ์์ง์ด๊ธฐ %3",
"smartBoard_set_number_eight_pin": "์๋นํฌํธ(๋์งํธ 8๋ฒํ) %1 %2 ",
"robotori_digitalInput": "%1",
"robotori_analogInput": "%1",
"robotori_digitalOutput": "๋์งํธ %1 ํ, ์ถ๋ ฅ ๊ฐ %2 %3",
"robotori_analogOutput": "์๋ ๋ก๊ทธ %1 %2 %3",
"robotori_servo": "์๋ณด๋ชจํฐ ๊ฐ๋ %1 %2",
"robotori_dc_direction": "DC๋ชจํฐ %1 ํ์ %2 %3"
};
if (typeof exports == "object")
exports.Lang = Lang;
|
apache-2.0
|
teamlazerbeez/PHP
|
Log5PHP/src/main/php/Log5PHP/Filter/StringMatch.cls.php
|
2988
|
<?php
/**
* log5php is a PHP port of the log4j java logging package.
*
* <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p>
* <p>Design, strategies and part of the methods documentation are developed by log4j team
* (Ceki G๏ฟฝlc๏ฟฝ as log4j project founder and
* {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).</p>
*
* <p>PHP port, extensions and modifications by VxR. All rights reserved.<br>
* For more information, please see {@link http://www.vxr.it/log4php/}.</p>
*
* <p>This software is published under the terms of the LGPL License
* a copy of which has been included with this distribution in the LICENSE file.</p>
*
* @package external_Log5PHP
* @subpackage src_main_php_Log5PHP_Filter
*/
/**
* @ignore
*/
/**
* This is a very simple filter based on string matching.
*
* <p>The filter admits two options {@link $stringToMatch} and
* {@link $acceptOnMatch}. If there is a match (using {@link PHP_MANUAL#strpos}
* between the value of the {@link $stringToMatch} option and the message
* of the {@link Log5PHP_LogEvent},
* then the {@link decide()} method returns {@link LOG5PHP_LOGGER_FILTER_ACCEPT} if
* the <b>AcceptOnMatch</b> option value is true, if it is false then
* {@link LOG5PHP_LOGGER_FILTER_DENY} is returned. If there is no match, {@link LOG5PHP_LOGGER_FILTER_NEUTRAL}
* is returned.</p>
*
* @version $Revision: 26050 $
* @package external_Log5PHP
* @subpackage src_main_php_Log5PHP_Filter
* @since 0.3
*/
class Log5PHP_Filter_StringMatch extends Log5PHP_Filter {
/**
* @var boolean
*/
private $acceptOnMatch = true;
/**
* @var string
*/
private $stringToMatch = null;
/**
* @return boolean
*/
function getAcceptOnMatch()
{
return $this->acceptOnMatch;
}
/**
* @param mixed $acceptOnMatch a boolean or a string ('true' or 'false')
*/
function setAcceptOnMatch($acceptOnMatch)
{
$this->acceptOnMatch = is_bool($acceptOnMatch) ?
$acceptOnMatch :
(bool)(strtolower($acceptOnMatch) == 'true');
}
/**
* @return string
*/
function getStringToMatch()
{
return $this->stringToMatch;
}
/**
* @param string $s the string to match
*/
function setStringToMatch($s)
{
$this->stringToMatch = $s;
}
/**
* @return integer a {@link LOGGER_FILTER_NEUTRAL} is there is no string match.
*/
function decide($event)
{
$msg = $event->getRenderedMessage();
if($msg === null or $this->stringToMatch === null)
return LOG5PHP_LOGGER_FILTER_NEUTRAL;
if( strpos($msg, $this->stringToMatch) !== false ) {
return ($this->acceptOnMatch) ? LOG5PHP_LOGGER_FILTER_ACCEPT : LOG5PHP_LOGGER_FILTER_DENY ;
}
return LOG5PHP_LOGGER_FILTER_NEUTRAL;
}
}
|
apache-2.0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.