, 100%, 60%);
    --md-code-hl-name-color:           hsl(210, 80%, 70%);
    --md-code-hl-operator-color:       hsl(250, 100%, 90%);
    --md-code-hl-punctuation-color:    hsl(320, 100%, 70%);
    --md-code-hl-comment-color:        hsl(0, 0%, 50%);
    --md-code-hl-generic-color:        hsl(150, 100%, 50%);
    --md-code-hl-variable-color:       hsl(200, 100%, 70%);

    /* typeset color shades */
    /*
    --md-typeset-color:                hsl(0, 0%, 90%);
    --md-typeset-a-color:              hsl(0, 0%, 50%);
    */

    /* typeset `kbd` color shades */
    --md-typeset-kbd-color:            hsl(200, 15%, 70%);
    --md-typeset-kbd-accent-color:     hsl(200, 15%, 80%);
    --md-typeset-kbd-border-color:     hsl(200, 15%, 90%);

    /* typeset `mark` color shades */
    --md-typeset-mark-color:           hsl(200, 18%, 34%);

    /* typeset `table` color shades */
    --md-typeset-table-color:          hsl(200, 15%, 95%);
    --md-typeset-table-color--light:   hsl(200, 15%, 75%);

    /* admonition color shades */
    --md-admonition-fg-color:          hsl(0, 0%, 80%);
    --md-admonition-bg-color:          hsl(0, 0%, 06%);

    /* footer */
    --md-footer-fg-color:              hsla(0, 0%, 100%, 1);
    --md-footer-bg-color:              #ff008a;
    /* --md-footer-bg-color--dark:       hsl(328, 100%, 30%); */
}
/* extra.css
see: https://github.com/squidfunk/mkdocs-material/blob/master/src/templates/assets/stylesheets/palette/_scheme.scss
*/

.center {
    display: block;
    margin: 0 auto;
}

/*
Nervosys tripartite color scheme:
    violet: #5000cd
    magenta: #ff008a
    seafoam: #00ffcd
*/

/* Template

    // Indicate that the site is rendered with a dark color scheme
    color-scheme: dark;

    // Default color shades
    --md-default-fg-color:             hsla(var(--md-hue), 15%, 90%, 0.82);
    --md-default-fg-color--light:      hsla(var(--md-hue), 15%, 90%, 0.56);
    --md-default-fg-color--lighter:    hsla(var(--md-hue), 15%, 90%, 0.32);
    --md-default-fg-color--lightest:   hsla(var(--md-hue), 15%, 90%, 0.12);
    --md-default-bg-color:             hsla(var(--md-hue), 15%, 14%, 1);
    --md-default-bg-color--light:      hsla(var(--md-hue), 15%, 14%, 0.54);
    --md-default-bg-color--lighter:    hsla(var(--md-hue), 15%, 14%, 0.26);
    --md-default-bg-color--lightest:   hsla(var(--md-hue), 15%, 14%, 0.07);

    // Code color shades
    --md-code-fg-color:                hsla(var(--md-hue), 18%, 86%, 0.82);
    --md-code-bg-color:                hsla(var(--md-hue), 15%, 18%, 1);

    // Code highlighting color shades


# -*- coding: utf-8 -*-

import subprocess

def get_conll05_results_with_official_script(gold_path, pred_path, script_path):
    # 'data/conll05-original-style/eval.sh'
    _SRL_CONLL_EVAL_SCRIPT = script_path
    child = subprocess.Popen('sh {} {} {}'.format(
        _SRL_CONLL_EVAL_SCRIPT, gold_path, pred_path), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    eval_info = child.communicate()[0]
    child2 = subprocess.Popen('sh {} {} {}'.format(
        _SRL_CONLL_EVAL_SCRIPT, pred_path, gold_path), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    eval_info2 = child2.communicate()[0]
    # os.remove(tgt_temp_file)
    conll_recall = float(str(eval_info).strip().split("Overall")[1].strip().split('\\n')[0].split()[4])
    conll_precision = float(str(eval_info2).strip().split("Overall")[1].strip().split('\\n')[0].split()[4])
    conll_f1 = 2 * conll_recall * conll_precision / (conll_recall + conll_precision + 1e-12)

    return conll_precision/100, conll_recall/100, conll_f1/100


plate-favorites.qam-body-fixed,
	[class^="qa-template-user-"].qam-body-fixed, [class*="qa-template-user-"].qam-body-fixed {
		padding-top: 142px;
	}

	.qam-body-fixed {
		padding-top: 70px;
	}
	.qa-template-messages.qam-body-fixed {
		padding-top: 95px;
	}
	.qa-template-admin.qam-body-fixed {
		padding-top: 240px;
	}
}
@media (min-width: 980px) {
	.qam-body-fixed {
		padding-top: 80px;
	}
	.qa-template-admin.qam-body-fixed {
		padding-top: 105px;
	}
}

#qam-topbar {
	font-size: 0.875em;
}
#qam-topbar.fixed {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: auto;
	z-index: 99990;
}

.qam-main-nav-wrapper {
	background: #2c3e50;
	color: #bdc3c7;
	padding: 10px;
}

.qam-main-nav-wrapper a {
	color: #fff;
}

.qam-menu-toggle {
	display: none;
}

@media (max-width: 979px) {
	.qam-main-nav-wrapper {
		position: relative;
	}

	.qam-menu-toggle {
		display: block; /* turn on menu icon */
		float: left;
		margin: 0 10px 0 0;
		font-size: 34px;
	}
	.qam-menu-toggle.current {
		color: #fff;
		text-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
	}
	.qam-menu-toggle .icon-th-list {
		display: block;
		margin-top: 7px;
	}
}

.qa-logo {
	display: inline-block;
	vertical-align: top;
	font-size: 24px;
	margin: 0 1px 0 0;
}
.qa-logo img {
	max-height: 49px;
	width: auto;
}

.qa-logo-link {
	line-height: 49px;
	display: block;
}

.qa-logo-link:hover {
	text-decoration: none;
}

@media (max-width: 767px) {
	.qa-nav-main {
		width: 100% !important;
	}
}
@media (max-width: 979px) {
	.qa-nav-main {
		width: 30%;
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		z-index: 1090;
		box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.15);
	}
}
@media (min-width: 980px) {
	.qa-logo-link {
		background: #34495e;
		padding: 5px 15px;
	}
	.qa-logo-link:hover {
		background: #445f7a;
	}

	.qa-nav-main {
		vertical-align: top;
		display: inline-block;
	}

	.qa-nav-main-item {
		float: left;
		margin: 0 1px;
	}
	.qa-nav-main-item-opp {
		float: right;
		margin: 0 1px;
	}
	.qa-nav-main-item-opp:last-child {
		margin: 0 0 0 50px;
	}
}

.qa-nav-main-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.qa-nav-main-activity .qa-nav-main-link:before {
	content: '\e804';
}

.qa-nav-main-questions .qa-nav-main-link:before {
	content: '\e80b';
}

.qa-nav-main


defined(USE_CROSS) || defined(USE_DASH) ||     defined(USE_DOT) || defined(USE_X) || defined(USE_Y)\n  // No fill.\n  #define LINE_ONLY\n#endif\n\n#if defined(LINE_ONLY) || defined(APPEND_CROSS) || defined(APPEND_CROSS_2) ||     defined(APPEND_X) || defined(APPEND_Y)\nfloat end_cap_distance(in vec2 p, in vec2 end_point, in vec2 unit_direction, in int line_cap)\n{\n  vec2 offset = p - end_point;\n  if (line_cap == butt_cap)\n    return dot(offset, unit_direction) + 0.5*v_linewidth;\n  else if (line_cap == square_cap)\n    return dot(offset, unit_direction);\n  else if (line_cap == round_cap && dot(offset, unit_direction) > 0.0)\n    return length(offset);\n  else\n    // Default is outside of line and should be -0.5*(v_linewidth+u_antialias) or less,\n    // so here avoid the multiplication.\n    return -v_linewidth-u_antialias;\n}\n#endif\n\n#if !(defined(LINE_ONLY) || defined(USE_SQUARE_PIN) || defined(USE_TRIANGLE_PIN))\n// For line join at a vec2 corner where 2 line segments meet, consider bevel points which are the 2\n// points obtained by moving half a linewidth away from the corner point in the directions normal to\n// the line segments.  The line through these points is the bevel line, characterised by a vec2\n// unit_normal and offset distance from the corner point.  Edge of bevel join straddles this line,\n// round join occurs outside of this line centred on the corner point.  In general\n//   offset = (linewidth/2)*sin(alpha/2)\n// where alpha is the angle between the 2 line segments at the corner.\nfloat line_join_distance_no_miter(\n  in vec2 p, in vec2 corner, in vec2 unit_normal, in float offset, in int line_join)\n{\n  // Simplified version of line_join_distance ignoring miter which most markers do implicitly\n  // as they are composed of straight line segments.\n  float dist_outside = dot((p - corner), unit_normal) - offset;\n\n  if (line_join == bevel_join && dist_outside > -0.5*u_antialias)\n    return dist_outside + 0.5*v_linewidth;\n  else if (dist_outside > 0.0)  // round_join\n    return distance(p, corner);\n  else\n    // Default is outside of line and should be -0.5*(v_linewidth+u_antialias) or less,\n    // so here avoid the multiplication.\n    return -v_linewidth-u_antialias;\n}\n#endif\n\n#if defined(USE_SQUARE_PIN) || defined(USE_TRIANGLE_PIN)\n// Line join distance including miter but only one-sided check as assuming use of symmetry in\n// calling function.\nfloat line_join_distance_incl_miter(\n  in vec2 p, in vec2 corner, in vec2 unit_normal, in float offset, in int line_join,\n  vec2 miter_unit_normal)\n{\n  float dist_outside = dot((p - corner), unit_normal) - offset;\n\n  if (line_join == miter_join && dist_outside > 0.0)\n    r


cVariableCache.put(name, cycVariable);
            }
            return cycVariable;
        }

        public static void add(CycVariable var) {
            cycVariableCache.put(var.name, var);
        }

        public static void remove(CycVariable var) {
            cycVariableCache.remove(var.name);
        }

        public static int size() {
            return cycVariableCache.size();
        }
        static void reset() {
                cycVariableCache = new LRUCache(VARIABLE_CACHE_SIZE, VARIABLE_CACHE_SIZE, true);
        }
    }
}
/* $Id: InferenceWorker.java 138070 2012-01-10 19:46:08Z sbrown $
 *
 * Copyright (c) 2004 - 2006 Cycorp, Inc.  All rights reserved.
 * This software is the proprietary information of Cycorp, Inc.
 * Use is subject to license terms.
 */

package org.opencyc.inference;

//// External Imports
import java.util.List;

//// Internal Imports
import org.opencyc.api.CycApiException;
import org.opencyc.api.SubLWorker;
import org.opencyc.cycobject.CycList;

/**
 *
InferenceWorker is designed to...
 *
 *
Copyright 2005 Cycorp, Inc., license is open source GNU LGPL.
 *
the license
 *
www.opencyc.org
 *
OpenCyc at SourceForge
 *

 * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND
 * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 * PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OPENCYC
 * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE
 * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * @author tbrussea, zelal
 * @date July 27, 2005, 11:40 AM
 * @version $Id: InferenceWorker.java 138070 2012-01-10 19:46:08Z sbrown $
 */
public interface InferenceWorker extends SubLWorker {

  void setSubLCommand(CycList cycList);

  int getInferenceId();

  int getProblemStoreId();

  void releaseInferenceResources(long timeoutMsecs) throws java.io.IOException,
    org.opencyc.util.TimeOutException, CycApiException;

  int getAnswersCount();

  Object getAnswerAt(int index);

  List getAnswers();

  List getAnswers(int startIndex, int endIndex);

  void interruptInference(); // with infinite patience

  void interruptInference(int patience); // with some amount of patience

  void continueInference(InferenceParameters queryProperties);

  InferenceStatus getInferenceStatus();

  InferenceWorkerSuspendReason getSuspendReason();

  public Object[] getInferenceListeners();

  void addInferenceListener(InferenceWorkerListener inferenceListener);

  void removeInferenceListener(InferenceWorkerListener inferenceListener);

  void removeAllInferenceListeners();

  public InferenceIdentifier getInferenceIdentifier();

}
/* $Id: DefaultBooleanInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $
 *
 * Copyright (c) 2004 - 2006


 ","}, pos)
	case scanner.NOT:
		e, err := p.ParseExpr()
		if err != nil {
			return nil, err
		}
		return expr.Not(e), nil
	default:
		return nil, newParseError(scanner.Tokstr(tok, lit), nil, pos)
	}
}

// parseInteger parses an integer.
func (p *Parser) parseInteger() (int64, error) {
	tok, pos, lit := p.ScanIgnoreWhitespace()

	if tok == scanner.ADD || tok == scanner.SUB {
		sign := tok
		tok, pos, lit = p.Scan()
		if sign == scanner.SUB {
			lit = "-" + lit
		}
	}

	if tok != scanner.INTEGER {
		return 0, newParseError(scanner.Tokstr(tok, lit), []string{"integer"}, pos)
	}

	v, err := strconv.ParseInt(lit, 10, 64)
	if err != nil {
		return 0, newParseError(scanner.Tokstr(tok, lit), []string{"INT"}, pos)
	}

	return v, nil
}

// parseIdent parses an identifier.
func (p *Parser) parseIdent() (string, error) {
	tok, pos, lit := p.ScanIgnoreWhitespace()
	if tok != scanner.IDENT {
		return "", newParseError(scanner.Tokstr(tok, lit), []string{"identifier"}, pos)
	}

	return lit, nil
}

// parseIdentList parses a comma delimited list of identifiers.
func (p *Parser) parseIdentList() ([]string, error) {
	// Parse first (required) identifier.
	ident, err := p.parseIdent()
	if err != nil {
		return nil, err
	}
	idents := []string{ident}

	// Parse remaining (optional) identifiers.
	for {
		if tok, _, _ := p.ScanIgnoreWhitespace(); tok != scanner.COMMA {
			p.Unscan()
			return idents, nil
		}

		if ident, err = p.parseIdent(); err != nil {
			return nil, err
		}

		idents = append(idents, ident)
	}
}

func (p *Parser) parseType() (types.Type, error) {
	tok, pos, lit := p.ScanIgnoreWhitespace()
	switch tok {
	case scanner.TYPEBYTEA, scanner.TYPEBYTES:
		return types.TypeBytea, nil
	case scanner.TYPEBOOL, scanner.TYPEBOOLEAN:
		return types.TypeBoolean, nil
	case scanner.TYPEREAL:
		return types.TypeDoublePrecision, nil
	case scanner.TYPEDOUBLE:
		tok, _, _ := p.ScanIgnoreWhitespace()
		if tok == scanner.PRECISION {
			return types.TypeDoublePrecision, nil
		}
		return 0, newParseError(scanner.Tokstr(tok, lit), []string{"PRECISION"}, pos)
	case scanner.TYPEINTEGER, scanner.TYPEINT, scanner.TYPEINT2, scanner.TYPETINYINT,
		scanner.TYPEMEDIUMINT, scanner.TYPESMALLINT:
		return types.TypeInteger, nil
	case scanner.TYPEINT8, scanner.TYPEBIGINT:
		return types.TypeBigint, nil
	case scanner.TYPETEXT:
		return types.TypeText, nil
	case scanner.TYPETIMESTAMP:
		return types.TypeTimestamp, nil
	case scanner.TYPEVARCHAR, scanner.TYPECHARACTER:
		if tok, pos, lit := p.ScanIgnoreWhitespace(); tok != scanner.LPAREN {
			return 0, newParseError(scanner.Tokstr(tok, lit), []string{"("}, pos)
		}

		// The value between parentheses is not used.
		if tok, pos, lit := p.ScanIgnoreWhitespace(); tok != scanner.INTEGER {
			return 0, newParseError(scanner.Tokstr(tok, lit), []string{"integer"}, pos)
		}

		if tok, pos, lit := p.ScanIgnoreWhitespace(); tok !=


//
//  iTermStatusBarBaseLayoutAlgorithm.h
//  iTerm2SharedARC
//
//  Created by George Nachman on 1/20/19.
//

#import "iTermStatusBarLayoutAlgorithm.h"

NS_ASSUME_NONNULL_BEGIN

@protocol iTermStatusBarComponent;

@interface iTermStatusBarBaseLayoutAlgorithm : iTermStatusBarLayoutAlgorithm {
@protected
    CGFloat _statusBarWidth;
    NSArray<iTermStatusBarContainerView *> *_containerViews;
}

- (NSArray<iTermStatusBarContainerView *> *)unhiddenContainerViews;
- (NSArray<iTermStatusBarContainerView *> *)fittingSubsetOfContainerViewsFrom:(NSArray<iTermStatusBarContainerView *> *)views;
- (void)updateMargins:(NSArray<iTermStatusBarContainerView *> *)views;
- (CGFloat)totalMarginWidthForViews:(NSArray<iTermStatusBarContainerView *> *)views;
- (CGFloat)minimumWidthOfContainerViews:(NSArray<iTermStatusBarContainerView *> *)views;
- (NSArray<iTermStatusBarContainerView *> *)containerViewsSortedByPriority:(NSArray<iTermStatusBarContainerView *> *)eligibleContainerViews;
- (void)makeWidthsAndOriginsIntegers:(NSArray<iTermStatusBarContainerView *> *)views;
- (CGFloat)minimumWidthForComponent:(id<iTermStatusBarComponent>)component;
- (CGFloat)maximumWidthForComponent:(id<iTermStatusBarComponent>)component;

@end

NS_ASSUME_NONNULL_END


red memory
**   prot -- How the shared memory is mapped. See prio.h
**
** Outputs:
**   PRFileMap *
**
** Returns:
**   Pointer to PRFileMap or NULL on error.
**
*/
NSPR_API( PRFileMap *)
PR_OpenAnonFileMap(
    const char *dirName,
    PRSize      size,
    PRFileMapProtect prot
);

/*
** PR_ProcessAttrSetInheritableFileMap() -- Prepare FileMap for export
**   to my children processes via PR_CreateProcess()
**
** Description:
** PR_ProcessAttrSetInheritableFileMap() connects the PRFileMap to
** PRProcessAttr with shmname. A subsequent call to PR_CreateProcess()
** makes the PRFileMap importable by the child process.
**
** Inputs:
**   attr -- PRProcessAttr, used to pass data to PR_CreateProcess()
**   fm -- PRFileMap structure to be passed to the child process
**   shmname -- The name for the PRFileMap; used by child.
**
** Outputs:
**   PRFileMap *
**
** Returns:
**   PRStatus
**
*/
NSPR_API(PRStatus)
PR_ProcessAttrSetInheritableFileMap(
    PRProcessAttr   *attr,
    PRFileMap       *fm,
    const char      *shmname
);

/*
** PR_GetInheritedFileMap() -- Import a PRFileMap previously exported
**   by my parent process via PR_CreateProcess()
**
** Description:
** PR_GetInheritedFileMap() retrieves a PRFileMap object exported from
** its parent process via PR_CreateProcess().
**
** Inputs:
**    shmname -- The name provided to PR_ProcessAttrSetInheritableFileMap()
**
** Outputs:
**   PRFileMap *
**
** Returns:
**   PRFileMap pointer or NULL.
**
*/
NSPR_API( PRFileMap *)
PR_GetInheritedFileMap(
    const char *shmname
);

/*
** PR_ExportFileMapAsString() -- Creates a string identifying a PRFileMap
**
** Description:
** Creates an identifier, as a string, from a PRFileMap object
** previously created with PR_OpenAnonFileMap().
**
** Inputs:
**   fm -- PRFileMap pointer to be represented as a string.
**   bufsize -- sizeof(buf)
**   buf -- a buffer of length PR_FILEMAP_STRING_BUFSIZE
**
** Outputs:
**   buf contains the stringized PRFileMap identifier
**
** Returns:
**   PRStatus
**
*/
NSPR_API( PRStatus )
PR_ExportFileMapAsString(
    PRFileMap *fm,
    PRSize    bufsize,
    char      *buf
);
#define PR_FILEMAP_STRING_BUFSIZE 128

/*
** PR_ImportFileMapFromString() -- Creates a PRFileMap from the identifying string
**
** Description:
** PR_ImportFileMapFromString() creates a PRFileMap object from a
** string previously created by PR_ExportFileMapAsString().
**
** Inputs:
**   fmstring -- string created by PR_ExportFileMapAsString()
**
** Returns:
**   PRFileMap pointer or NULL.
**
*/
NSPR_API( PRFileMap * )
PR_ImportFileMapFromString(
    const char *fmstring
);

PR_END_EXTERN_C
#endif /* prshma_h___ */


astore_logging_v1_log_streams_proto_goTypes,
		DependencyIndexes: file_google_cloud_metastore_logging_v1_log_streams_proto_depIdxs,
		MessageInfos:      file_google_cloud_metastore_logging_v1_log_streams_proto_msgTypes,
	}.Build()
	File_google_cloud_metastore_logging_v1_log_streams_proto = out.File
	file_google_cloud_metastore_logging_v1_log_streams_proto_rawDesc = nil
	file_google_cloud_metastore_logging_v1_log_streams_proto_goTypes = nil
	file_google_cloud_metastore_logging_v1_log_streams_proto_depIdxs = nil
}
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
// 	protoc        v3.12.2
// source: google/cloud/bigquery/v2/table_reference.proto

package bigquery

import (
	reflect "reflect"
	sync "sync"

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type TableReference struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Required. The ID of the project containing this table.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Required. The ID of the dataset containing this table.
	DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
	// Required. The ID of the table. The ID must contain only
	// letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
	// length is 1,024 characters.  Certain operations allow
	// suffixing of the table ID with a partition decorator, such as
	// `sample_table$20190123`.
	TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
	// The alternative field that will be used when ESF is not able to translate
	// the received data to the project_id field.
	ProjectIdAlternative []string `protobuf:"bytes,4,rep


mat_trilinear.GetInt(), mat_antialias.GetInt(), mat_aaquality.GetInt(),
										mat_vsync.GetInt(), r_rootlod.GetInt(), mat_reducefillrate.GetInt(),
										r_shadowrendertotexture.GetInt(), r_flashlightdepthtexture.GetInt(),
										r_waterforcereflectentities.GetInt(),
										mat_motion_blur_enabled.GetInt() );
#else
		Q_snprintf( videoinfo, sizeof(videoinfo), "picmip: %i forceansio: %i trilinear: %i antialias: %i vsync: %i rootlod: %i reducefillrate: %i\n"\
			"shadowrendertotexture: %i r_flashlightdepthtexture %i waterforceexpensive: %i waterforcereflectentities: %i mat_motion_blur_enabled: %i mat_queue_mode %i",
											mat_picmip.GetInt(), mat_forceaniso.GetInt(), mat_trilinear.GetInt(), mat_antialias.GetInt(),
											mat_vsync.GetInt(), r_rootlod.GetInt(), mat_reducefillrate.GetInt(),
											r_shadowrendertotexture.GetInt(), r_flashlightdepthtexture.GetInt(),
											r_waterforceexpensive.GetInt(), r_waterforcereflectentities.GetInt(),
											mat_motion_blur_enabled.GetInt(), mat_queue_mode.GetInt() );
#endif
	int latency = 0;
	if ( cl.m_NetChannel )
	{
		latency = (int)( 1000.0f * cl.m_NetChannel->GetAvgLatency( FLOW_OUTGOING ) );
	}

	Q_snprintf( misc, sizeof( misc ), "skill:%i rate %i update %i cmd %i latency %i msec",
		skill.GetInt(),
		cl_rate->GetInt(),
		(int)cl_updaterate->GetFloat(),
		(int)cl_cmdrate->GetFloat(),
		latency
	);

	const char *pNetChannel = "Not Connected";
	if ( cl.m_NetChannel )
	{
		pNetChannel = cl.m_NetChannel->GetRemoteAddress().ToString();
	}

		CL_SetPagedPoolInfo();

		Q_snprintf( g_minidumpinfo, sizeof(g_minidumpinfo),
				"Map: %s\n"\
				"Game: %s\n"\
				"Build: %i\n"\
				"Misc: %s\n"\
				"Net: %s\n"\
				"cmdline:%s\n"\
				"driver: %s\n"\
				"video: %s\n"\
				"OS: %s\n",
				map, com_gamedir, build_number(), misc, pNetChannel, CommandLine()->GetCmdLine(), driverinfo, videoinfo, osversion );

		char full[ 4096 ];
		Q_snprintf( full, sizeof( full ), "%sPP PAGES: used: %d, free %d\n", g_minidumpinfo, (int)g_pagedpoolinfo.numPagesUsed, (int)g_pagedpoolinfo.numPagesFree );

#ifndef NO_STEAM
	SteamAPI_SetMiniDumpComment( full );
#endif
}

//
// register commands
//
static ConCommand startupmenu( "startupmenu", &CL_CheckToDisplayStartupMenus, "Opens initial menu screen and loads the background bsp, but only if no other level is being loaded, and we're not in developer mode." );

ConVar cl_language( "cl_language", "english", FCVAR_USERINFO, "Language (from HKCU\\Software\\Valve\\Steam\\Language)" );
void CL_InitLanguageCvar()
{
	Msg("CL_InitLanguageCvar\n");
	if ( Steam3Client().SteamApps() )
	{
		cl_language.SetValue( Steam3Client().SteamApps()->Get


	--logical inputs
	R.slowdx = 0;
	R.slowdy = 0;
	R.fastdx = 0;
	R.fastdy = 0;
	R.slowA=0;
	R.fastA=0;
	R.slowB=0;
	R.fastB=0;
	R.slowJ=0;
	R.fastJ=0;
	R.tx = 0;
	R.ty = 0;
	R.dx = 0;
	R.dy = 0;
	return R
end

function vsoClipPositive( v )
	if v < 0 then return 0; else return v; end
end

function clipNonzero( v )
	if v ~= 0 then return 1; end
	return 0;
end

function vsoInputComputeLogical( input, dt )

	local dir = 1;
	if vsoShouldFlipAnimator() then dir = -1; end
	--Logical inputs (pleasentness) -> +x is FORWARD
	input.slowdx = dir * ( vsoClipPositive(input.Rs) - vsoClipPositive(input.Ls))
	input.slowdy = (vsoClipPositive(input.Us) - vsoClipPositive(input.Ds))
	input.fastdx = dir * (input.Rf - input.Lf)
	input.fastdy = (input.Uf - input.Df)

	input.slowA = input.As;
	input.slowB = input.Bs;
	input.slowJ = input.Js;
	input.fastA = input.Af;
	input.fastB = input.Bf;
	input.fastJ = input.Jf;

	input.tx = dir * ( clipNonzero(input.Rt) - clipNonzero(input.Lt) )
	input.ty = clipNonzero(input.Ut) - clipNonzero(input.Dt)
	input.dx = dir * ( clipNonzero(input.R) - clipNonzero(input.L) )
	input.dy = clipNonzero(input.U) - clipNonzero(input.D)

	if input["Etap"] == nil then
		input["Etap"] = 0;
	end

	if input["Etap"] > 0 then
		input["Etap"] = 0;

		if input["Etaps"] ~= nil then
			input["Etaps"] = input["Etaps"] + 1;	--Input "Etaps" "decays" but will be +1 for each tap (decays after 1 second...)
		else
			input["Etaps"] = 1;
		end

		if input["E"] ~= nil then
			input["E"] = input["E"] + 1;
		else
			input["E"] = 1
		end

		--sb.logInfo( "ETAP: "..tostring( input["E"] ).." "..tostring( input["Etaps"] ) )
	else

		input["E"] = 0;

		if input["Etaps"] ~= nil then
			input["Etaps"] = input["Etaps"] - dt;	--Input "Etaps" "decays" but will be +1 for each tap (decays after 1 second...)
			if input["Etaps"] < 0 then
				input["Etaps"] = 0;
			end
		else
			input["Etaps"] = 0;
		end

	end

end

function vsoInputUpdate( seatname, input, dt, overrides )

	--Low level inputs (directness)
	for k,vstarboundinputname in pairs( vsoInputsKnown ) do

		local names = input.names[ k ]	--avoid doing string updates each frame!!!
		local ktap = names[1];
		local krelease = names[2];
		local kfast = names[3];
		local kslow = names[4];

		input[ktap] = 0;
		input[kslow] = 0;
		input[kfast] = 0;

		local over = false;
		if overrides ~= nil then
			if overrides[k] ~= nil then
				if overrides[k] > 0 then
					over = true;
				end
			end
		end

		if vehicle.controlHeld( seatname, vstarboundinputname ) or over then
			if input[k] <= 0 then
				input[ktap] = 1	--we TAPPED


using JetBrains.Annotations;
using Remora.Rest.Core;

namespace Remora.Discord.API.Abstractions.Objects;

/// <summary>
/// Represents application information for a Discord integration.
/// </summary>
[PublicAPI]
public interface IIntegrationApplication
{
    /// <summary>
    /// Gets the ID of the application.
    /// </summary>
    Snowflake ID { get; }

    /// <summary>
    /// Gets the name of the application.
    /// </summary>
    string Name { get; }

    /// <summary>
    /// Gets the application's icon.
    /// </summary>
    IImageHash? Icon { get; }

    /// <summary>
    /// Gets the description of the application.
    /// </summary>
    string Description { get; }

    /// <summary>
    /// Gets the bot associated with this application.
    /// </summary>
    Optional<IUser> Bot { get; }
}


Ch:
				if wJob.init != nil {
					wJob.init()
				}

				err := wJob.job.Execute()
				if err != nil {
					wJob.job.OnFailure(err)
				}

				if wJob.cleanup != nil {
					wJob.cleanup()
				}
			}
		}
	}()
}

// dispatcher represents a worker pool
type dispatcher struct {
	name       string
	numWorkers int
	workers    []worker
	jobCh      chan wrappedJob
	onceStart  sync.Once
	onceStop   sync.Once
	quit       chan struct{}
	logger     log.Logger
	wg         *sync.WaitGroup
}

// newDispatcher generates a new worker dispatcher and populates it with workers
func newDispatcher(name string, numWorkers int, l log.Logger) *dispatcher {
	d := createDispatcher(name, numWorkers, l)

	d.init()
	return d
}

// dispatch dispatches a job to the worker pool, with optional initialization
// and cleanup functions (useful for tracking job progress)
func (d *dispatcher) dispatch(job Job, init initFn, cleanup cleanupFn) {
	wJob := wrappedJob{
		init:    init,
		job:     job,
		cleanup: cleanup,
	}

	select {
	case d.jobCh <- wJob:
	case <-d.quit:
		d.logger.Info("shutting down during dispatch")
	}
}

// start starts all the workers listening on the job channel
// this will only start the workers for this dispatch once
func (d *dispatcher) start() {
	d.onceStart.Do(func() {
		d.logger.Trace("starting dispatcher")
		for _, w := range d.workers {
			worker := w
			worker.start()
		}
	})
}

// stop stops the worker pool asynchronously
func (d *dispatcher) stop() {
	d.onceStop.Do(func() {
		d.logger.Trace("terminating dispatcher")
		close(d.quit)
	})
}

// createDispatcher generates a new Dispatcher object, but does not initialize the
// worker pool
func createDispatcher(name string, numWorkers int, l log.Logger) *dispatcher {
	if l == nil {
		l = logging.NewVaultLoggerWithWriter(ioutil.Discard, log.NoLevel)
	}
	if numWorkers <= 0 {
		numWorkers = 1
		l.Warn("must have 1 or more workers. setting number of workers to 1")
	}

	if name == "" {
		guid, err := uuid.GenerateUUID()
		if err != nil {
			l.Warn("uuid generator failed, using 'no-uuid'", "err", err)
			guid = "no-uuid"
		}

		name = fmt.Sprintf("dispatcher-%s", guid)
	}

	var wg sync.WaitGroup
	d := dispatcher{
		name:       name,
		numWorkers: numWorkers,
		workers:    make([]worker, 0),
		jobCh:      make(chan wrappedJob),
		quit:       make(chan struct{}),
		logger:     l,
		wg:         &wg,
	}

	d.logger.Trace("created dispatcher", "name", d.name, "num_workers", d.numWorkers)
	return &d
}

func (d *dispatcher) init() {
	for len(d.workers) < d.numWorkers {
		d.initializeWorker()
	}

	d.logger.Trace("initialized dispatcher", "num_workers", d.numWorkers)
}

// initializeWorker initializes and adds a new worker, with an optional name
func (d *dispatcher) initializeWorker() {
	w := wo


r 'apply to current selection'
		SetEquateDialog d = showSetEquateDialog();
		String name = "Bob";
		pickEquate(d, name);

		// verify all scalars in selection were changed and those not in selection were not changed
		assertEquateAt(name, scalarAddresses);
		assertNoEquateAt("1005128", "0xb7");
		assertNoEquateAt("1005a01", "EAX,0xb7");

		// run again on selection including all the named scalars and one non-named scalars run
		// without overwrite
		putCursorOnOperand(0x1005128, 0);
		AddressSet newScalarAddresses =
			selectSetAndInvalidAddress(scalarAddresses, addr("1005128"));

		d = showSetEquateDialog();

		pressButtonByText(d, "Current selection");

		String newEquateText = "Cat";
		pickEquate(d, newEquateText);

		// only the one originally not a named scalar should be named "Cat"
		AddressSet newSet = new AddressSet();
		newSet.add(addr("1005128"));

		assertEquateAt(name, scalarAddresses); // these should be Bob
		assertEquateAt(newEquateText, newSet); // this should be Cat
		assertNoEquateAt("1005a01", "EAX,0xb7"); // this was not in selection; should be no equate

		undo(program);

		//
		// Test overwrite
		//
		putCursorOnOperand(0x1005128, 0);

		newScalarAddresses = selectSetAndInvalidAddress(scalarAddresses, addr("1005128"));

		d = showSetEquateDialog();

		pressButtonByText(d, "Current selection");
		pressButtonByText(d, "Overwrite existing equates");

		newEquateText = "Cat";
		pickEquate(d, newEquateText);

		// verify all scalars in selection were changed and those not in selection were not changed
		assertEquateAt(newEquateText, newScalarAddresses);
		assertNoEquateAt("1005a01", "EAX,0xb7");
	}

	@Test
	public void testSetEquate_ApplyToCurrentSelectionContainingScalarInStackAdd_NewName()
			throws Exception {

		putCursorOnOperand(0x01004bbd, 0);

		// make a selection containing the scalar above
		makeSelection(tool, program, toAddressSet(addr("1004bbd"), addr("1004bc5")));

		SetEquateDialog d = showSetEquateDialog();
		String name = "Bob";
		pickEquate(d, name);

		Address addr = addr(0x1004bc1);
		EquateTable equateTable = program.getEquateTable();
		List<Equate> equates = equateTable.getEquates(addr);
		assertEquals(1, equates.size());
		assertEquals("Bob", equates.get(0).getName());
	}

	@Test
	public void testSetEquate_ApplyToWholeProgram() throws Exception {

		putCursorOnOperand(0x010018d6, 0);

		SetEquateDialog d = showSetEquateDialog();
		pressButtonByText(d, "Entire program");
		String name = "bob";
		pickEquate(d, name);

		AddressSet scalarAddresses = new AddressSet();
		scalarAddresses.add(addr("10035be"));
		scalarAddresses.add(addr("100364c"));
		scalarAddresses.add(addr("1004ad6"));
		assertEquateAt(name, scalarAddresses);
	}

	@Test
	public void testSetEquate_BlankEquateNameRemove() throws Exception {

		int equateAddr = 0x010018d6;
		createEquate(equateAddr, 0, "bob", 0x2);
		EquateTable equateTable = program.getEquateTable();
		assertNotNull(equateTable.getEquate(addr(equateAddr), 0, 0x2));

		putCursorOnOperand(equateAddr, 0);
		SetEquateDialog d = showRenameEquatesDialog();
		String name = "";
		pickEquate(d, name);

		assertNull(equateTable.getEquate(addr(equateAddr), 0, 0x2));
	}

	@Test


port { GameConstants } from "../global/GameConstants";
import { MessageEmbed } from "discord.js";
import { PackManager } from "../packs/PackManager";
import { AsciiTableWrapper } from "./AsciiTableWrapper";
import { CardManager } from "../cards/CardManager";
import { Arrayf } from "../utils/Arrayf";
import { Card } from "../cards/Card";

export class PackEmbeds{
    public static packEmbedsMap=new Map<number,Array<MessageEmbed>>();

    static getPackEmbedPages(pack:Pack){
        if(PackEmbeds.packEmbedsMap.size===0){
            PackEmbeds.fillMaps();
        }
        return PackEmbeds.packEmbedsMap.get(pack.id);
    }

    public static fillMaps(){
        PackManager.getInstance().packs.forEach((pack:Pack)=>{
            this.packEmbedsMap.set(pack.id,PackEmbeds.getPackEmbedMessages(pack));
        });
    }

    public static getPackEmbedMessages(pack:Pack){
        const cards:Array<Card>=pack.possibleItemsIds.map((cardId:number)=>CardManager.getInstance().getItemById(cardId));
        let rows=new Array();
        for(const card of cards){
            rows.push([card.id,card.name,card.stars]);
        }
        const rowPages=Arrayf.slitArrayInChunks(rows,GameConstants.CARDS_PER_TABLE);
        return rowPages.map((rowPage:any)=>{
            let table=new AsciiTableWrapper();
            table.setHeading("Id","Name","Rarity");
            table.__maxCells=3;
            table.__rows=rowPage;
            return new MessageEmbed().setDescription(table.toMarkDownString());
        });
    }

    static getPackListEmbed() : MessageEmbed{
        const embed=new MessageEmbed().setTitle("Available Packs")
        .setThumbnail("https://media.discordapp.net/attachments/643766430801592330/724404894873813112/1e06c0d354669e2ef3666f129eeb6d7a6b0f6a45_hq.png?width=349&height=465");
        PackManager.getInstance().packs.forEach((pack:Pack)=>embed.addField(pack.name,pack.rarity.toString));
        return embed;
    }
}/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.
 * Apache-2.0 */

import {
  request,
  IRequestOptions,
  IParams,
  warn
} from "@esri/arcgis-rest-request";
// import { IAuthenticatedRequestOptions } from "@esri/arcgis-rest-auth";

import {
  IExtent,
  ISpatialReference,
  IPoint
} from "@esri/arcgis-rest-common-types";

// https always
const worldGeocoder =
  "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/";

// it'd be better if doc didnt display these properties in alphabetical order
export interface IAddressBulk {
  /**
   * A unique id must be passed along for each individual address.
   */
  OBJECTID: number;
  address?: string;
  address2?: string;
  address3?: string;
  neighborhood?: string;
  city?: string;
  subregion?: string;
  /**
   * The World Geocoding Service considers US states regions.
   */
  region?: string;
  postal?: number;
  postalExt?: number;
  countryCode?: string;
}

export interface ILocation {
  latitude?: number;
  longitude?: number;
  lat?: number;
  long?: number;
}

function isLocationArray(
  coords: ILocation | IPoint | [number, number]
): coord


       if position.is_simulated:
                manager.remove_simulated_device(name=position.name)
                time.sleep(0.05)
                print(f"Removed device {position.name}.")
        print("Finished removing devices.")
        sys.exit(0)

    positions = [pos for pos in manager.flow_cell_positions() if pos.is_simulated]
    print(f"Connected simulated positions on MinKNOW at {args.host}:")
    for position in positions:
        print(
            f"\t{position.name}: {position.device_type}{' (integrated)' if position.is_integrated else ''}"
        )
    sys.exit(0)

if __name__ == "__main__":
    main()


  );
          break;
      }
      break;
    case "gene":
      switch (
        $(
          "#" + genome + '-tab-content input[name="comparedWith"]:checked',
        ).val()
      ) {
        case "refseq":
          numLinesComparedWith = numGenes[genome] - numLinesUserData;
          var seconds = getSeconds(
            numLinesUserData,
            numLinesComparedWith,
            numRef,
            "bed",
          );
          break;
        case "userlist":
          var seconds = getSeconds(
            numLinesUserData,
            numLinesComparedWith,
            numRef,
            "bed",
          );
          break;
      }
      break;
    case "count":
      // For count type, use a simple estimation since no dataset B comparison
      var seconds = getSeconds(
        numLinesUserData,
        0, // no dataset B for count type
        numRef,
        "bed",
      );
      break;
  }
  var minutes = Math.round(seconds / 60);
  if (minutes < 60) {
    var est = minutes + " mins";
  } else {
    var est = (minutes / 60).toFixed(1) + " hr";
  }
  return est;
}

function getSeconds(numLinesA, numLinesB, numRef, type) {
  switch (type) {
    case "bed":
      var a = numRef * 8.23e-11 + 1.47e-2;
      var b = numRef * 4.72e-11 + 7.24e-3;
      var c = (numLinesA + numLinesB) * 6.75e-11 + 1.02e-6;
      var k = 60;
      var seconds = (k + a * numLinesA + b * numLinesB + c * numRef) * (5 / 7);
      return seconds;
    default:
      var a = numRef * 3.02e-12 + 1.13e-4;
      var c = (numLinesA + numLinesA * numLinesB) * 3.02e-12 + 2.06e-6;
      var k = 20;
      var seconds =
        1.8 *
        Math.pow(
          k +
            a * (Math.pow(0.8 * numLinesA, 1.52) + numLinesA * numLinesB) +
            c * numRef,
          0.85,
        );
      return seconds;
  }
}

function setInputDefaultValue(id, dvalue) {
  var genome = genomeSelected();
  $("input#" + genome + id).val(dvalue);
}

function putFile2Textarea(fileId, event, callback) {
  var genome = genomeSelected();
  var file = event.target.files;
  var reader = new FileReader();
  reader.readAsText(file[0]);
  reader.onload = function (ev) {
    if (fileId == genome + "UserDataFile") {
      $("textarea#" + genome + "UserData").val(reader.result);
    } else if (fileId == genome + "ComparedWithFile") {
      $("textarea#" + genome + "ComparedWith").val(reader.result);
    }
    callback();
  };
}

const generateQvalOptions = async () => {
  const genome = genomeSelected();

  const select = document.getElementById(genome + "qval");
  document
    .querySelectorAll("#" + genome + "qval option")
    .forEach((option) => option.remove());

  const agSelected = $("select#" + genome + "agClass option:selected").val();
  switch (agSelected) {
    case "Bisulfite-Seq":
      const opt = document.createElement("option");
      opt.setAttribute("value", 999);
      opt.setAttribute("selected", "true");

      const val = document.createTextNode("NA");
      opt.appendChild(val);
      select.appendChild(opt);
      break;
    default:
      let response = await fetch("/qvalue_range");
      let qvList = await response.json();
      qv


-box{padding:10px;border-radius:4px;background:rgba(0,0,0,.1)}.swagger-ui .model-box .model-jump-to-path{position:relative;top:4px}.swagger-ui .model-title{font-size:16px;font-family:Titillium Web,sans-serif;color:#555}.swagger-ui span>span.model,.swagger-ui span>span.model .brace-close{padding:0 0 0 10px}.swagger-ui .prop-type{color:#55a}.swagger-ui .prop-enum{display:block}.swagger-ui .prop-format{color:#999}.swagger-ui table{width:100%;padding:0 10px;border-collapse:collapse}.swagger-ui table.model tbody tr td{padding:0;vertical-align:top}.swagger-ui table.model tbody tr td:first-of-type{width:100px;padding:0}.swagger-ui table.headers td{font-size:12px;font-weight:300;vertical-align:middle;font-family:Source Code Pro,monospace;font-weight:600;color:#3b4151}.swagger-ui table tbody tr td{padding:10px 0 0;vertical-align:top}.swagger-ui table tbody tr td:first-of-type{width:20%;padding:10px 0}.swagger-ui table thead tr td,.swagger-ui table thead tr th{font-size:12px;font-weight:700;padding:12px 0;text-align:left;border-bottom:1px solid rgba(59,65,81,.2);font-family:Open Sans,sans-serif;color:#3b4151}.swagger-ui .parameters-col_description p{font-size:14px;margin:0;font-family:Open Sans,sans-serif;color:#3b4151}.swagger-ui .parameters-col_description input[type=text]{width:100%;max-width:340px}.swagger-ui .parameter__name{font-size:16px;font-weight:400;font-family:Titillium Web,sans-serif;color:#3b4151}.swagger-ui .parameter__name.required{font-weight:700}.swagger-ui .parameter__name.required:after{font-size:10px;position:relative;top:-6px;padding:5px;content:\"required\";color:rgba(255,0,0,.6)}.swagger-ui .parameter__in{font-size:12px;font-style:italic;font-family:Source Code Pro,monospace;font-weight:600;color:#888}.swagger-ui .table-container{padding:20px}.swagger-ui .topbar{padding:8px 30px;background-color:#89bf04}.swagger-ui .topbar .topbar-wrapper{-ms-flex-align:center}.swagger-ui .topbar .topbar-wrapper,.swagger-ui .topbar a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;align-items:center}.swagger-ui .topbar a{font-size:1.5em;font-weight:700;max-width:300px;text-decoration:none;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center;font-family:Titillium Web,sans-serif;color:#fff}.swagger-ui .topbar a span{margin:0;padding:0 10px}.swagger-ui .topbar .download-url-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:3;-ms-flex:3;flex:3}.swagger-ui .topbar .download-url-wrapper input[type=text]{width:100%;min-width:350px;margin:0;border:2px solid #547f00;border-radius:4px 0 0 4px;outline:none}.swagger-ui .topbar .download-url-wrapper .down


 ceux dont Allah n'a point voulu purifier les cœurs. A eux, seront réservés, une ignominie ici-bas et un énorme châtiment dans l'au-delà."
  },
  {
    "surah_number": 5,
    "verse_number": 42,
    "content":
        "Ils sont attentifs au mensonge et voraces de gains illicites. S'ils viennent à toi, sois juge entre eux ou détourne toi d'eux. Et si tu te détournes d'eux, jamais ils ne pourront te faire aucun mal. Et si tu juges, alors juge entre eux en équité. Car Allah aime ceux qui jugent équitablement."
  },
  {
    "surah_number": 5,
    "verse_number": 43,
    "content":
        "Mais comment te demanderaient-ils d'être leur juge quand ils ont avec eux la Thora dans laquelle se trouve le jugement d'Allah? Et puis, après cela, ils rejettent ton jugement. Ces gens-là ne sont nullement les croyants."
  },
  {
    "surah_number": 5,
    "verse_number": 44,
    "content":
        "Nous avons fait descendre la Thora dans laquelle il y a guide et lumière. C'est sur sa base que les prophètes qui se sont soumis à Allah, ainsi que les rabbins et les docteurs jugent les affaires des Juifs. Car on leur a confié la garde du Livre d'Allah, et ils en sont les témoins. Ne craignez donc pas les gens, mais craignez Moi. Et ne vendez pas Mes enseignements à vil prix. Et ceux qui ne jugent pas d'après ce qu'Allah a fait descendre, les voilà les mécréants."
  },
  {
    "surah_number": 5,
    "verse_number": 45,
    "content":
        "Et Nous y avons prescrit pour eux vie pour vie, œil pour œil, nez pour nez, oreille pour oreille, dent pour dent. Les blessures tombent sous la loi du talion. Après, quiconque y renonce par charité, cela lui vaudra une expiation. Et ceux qui ne jugent pas d'après ce qu'Allah a fait descendre, ceux-là sont des injustes."
  },
  {
    "surah_number": 5,
    "verse_number": 46,
    "content":
        "Et Nous avons envoyé après eux Jésus, fils de Marie, pour confirmer ce qu'il y avait dans la Thora avant lui. Et Nous lui avons donné l'Evangile, où il y a guide et lumière, pour confirmer ce qu'il y avait dans la Thora avant lui, et un guide et une exhortation pour les pieux."
  },
  {
    "surah_number": 5,
    "verse_number": 47,
    "content":
        "Que les gens de l'Evangile jugent d'après ce qu'Allah y a fait descendre. Ceux qui ne jugent pas d'après ce qu'Allah a fait descendre, ceux-là sont les pervers."
  },
  {
    "surah_number": 5,
    "verse_number": 48,
    "content":
        "Et sur toi (Muhammad) Nous avons fait descendre le Livre avec la vérité, pour confirmer le Livre qui était là avant lui et pour prévaloir sur lui. Juge donc parmi eux d'après ce qu'Allah a fait descendre. Ne suis pas leurs passions, loin de la vérité qui t'est venue. A chacun de vous Nous avons assigné une législation et un plan à suivre. Si Allah avait voulu, certes Il aurait fait de vous tous une seule communauté


param name="other">The other identifier to check against.</param>
        /// <returns>True if both are equal, otherwise false.</returns>
        public Boolean Equals(CssIdentifierValue other) => Value.Is(other.Value);

        /// <summary>
        /// Checks for equality against the given object, if
        /// the provided object is no identifier the result is
        /// false.
        /// </summary>
        /// <param name="obj">The object to check against.</param>
        /// <returns>True if both are equal, otherwise false.</returns>
        public override Boolean Equals(Object obj) =>
            obj is CssIdentifierValue ident && Equals(ident);

        Boolean IEquatable<ICssValue>.Equals(ICssValue other) => other is CssIdentifierValue value && Equals(value);

        /// <summary>
        /// Gets the hash code of the object.
        /// </summary>
        /// <returns>The computed hash code.</returns>
        public override Int32 GetHashCode() => _text.GetHashCode();

        ICssValue ICssValue.Compute(ICssComputeContext context)
        {
            return this;
        }

        #endregion
    }
}


12)
/* 800802E0 0007D220  7D 89 03 A6 */	mtctr r12
/* 800802E4 0007D224  4E 80 04 21 */	bctrl
/* 800802E8 0007D228  80 03 00 00 */	lwz r0, 0(r3)
/* 800802EC 0007D22C  90 1E 00 18 */	stw r0, 0x18(r30)
/* 800802F0 0007D230  80 01 00 14 */	lwz r0, 0x14(r1)
/* 800802F4 0007D234  83 E1 00 0C */	lwz r31, 0xc(r1)
/* 800802F8 0007D238  83 C1 00 08 */	lwz r30, 8(r1)
/* 800802FC 0007D23C  7C 08 03 A6 */	mtlr r0
/* 80080300 0007D240  38 21 00 10 */	addi r1, r1, 0x10
/* 80080304 0007D244  4E 80 00 20 */	blr
.endfn reset__12J3DTevBlock1FP11J3DTevBlock

.fn reset__12J3DTevBlock2FP11J3DTevBlock, global
/* 80080308 0007D248  94 21 FF E0 */	stwu r1, -0x20(r1)
/* 8008030C 0007D24C  7C 08 02 A6 */	mflr r0
/* 80080310 0007D250  90 01 00 24 */	stw r0, 0x24(r1)
/* 80080314 0007D254  93 E1 00 1C */	stw r31, 0x1c(r1)
/* 80080318 0007D258  7C 9F 23 78 */	mr r31, r4
/* 8008031C 0007D25C  93 C1 00 18 */	stw r30, 0x18(r1)
/* 80080320 0007D260  7C 7E 1B 78 */	mr r30, r3
/* 80080324 0007D264  7F E3 FB 78 */	mr r3, r31
/* 80080328 0007D268  93 A1 00 14 */	stw r29, 0x14(r1)
/* 8008032C 0007D26C  93 81 00 10 */	stw r28, 0x10(r1)
/* 80080330 0007D270  81 9F 00 00 */	lwz r12, 0(r31)
/* 80080334 0007D274  81 8C 00 98 */	lwz r12, 0x98(r12)
/* 80080338 0007D278  7D 89 03 A6 */	mtctr r12
/* 8008033C 0007D27C  4E 80 04 21 */	bctrl
/* 80080340 0007D280  98 7E 00 34 */	stb r3, 0x34(r30)
/* 80080344 0007D284  7F E3 FB 78 */	mr r3, r31
/* 80080348 0007D288  38 80 00 00 */	li r4, 0
/* 8008034C 0007D28C  81 9F 00 00 */	lwz r12, 0(r31)
/* 80080350 0007D290  81 8C 00 50 */	lwz r12, 0x50(r12)
/* 80080354 0007D294  7D 89 03 A6 */	mtctr r12
/* 80080358 0007D298  4E 80 04 21 */	bctrl
/* 8008035C 0007D29C  B0 7E 00 08 */	sth r3, 8(r30)
/* 80080360 0007D2A0  7F E3 FB 78 */	mr r3, r31
/* 80080364 0007D2A4  38 80 00 01 */	li r4, 1
/* 80080368 0007D2A8  81 9F 00 00 */	lwz r12, 0(r31)
/* 800


and make an
	| assumption
	movl	d2, d1
	cmpl	#0, d1
	bne	Lstart1

	movl	#unkmemend, sp@-
	movl	#unkmem, sp@-
	trap	#15
	.short	MVMEPROM_OUTSTRCRLF
	addql	#8,sp

	movl	#4*1024*1024, d1	| XXX assume 4M of ram
	bra	Lstart1

	.data
unkmem:	.ascii	"could not figure out how much memory; assuming 4M."
unkmemend:
	.even
	.text

#endif

Lstart1:
/* initialize source/destination control registers for movs */
	moveq	#FC_USERD,d0		| user space
	movc	d0,sfc			|   as source
	movc	d0,dfc			|   and destination of transfers
	moveq	#PGSHIFT,d2
	lsrl	d2,d1			| convert to page (click) number
	RELOC(_maxmem, a0)
	movl	d1,a0@			| save as maxmem
	movl	a5,d0			| lowram value from ROM via boot
	lsrl	d2,d0			| convert to page number
	subl	d0,d1			| compute amount of RAM present
	RELOC(_physmem, a0)
	movl	d1,a0@			| and physmem
/* configure kernel and proc0 VA space so we can get going */
	.globl	_Sysseg, _pmap_bootstrap, _avail_start
#if defined(DDB) || NKSYMS > 0
	RELOC(_esym,a0)			| end of static kernel test/data/syms
	movl	a0@,d2
	jne	Lstart2
#endif
	movl	#_end,d2		| end of static kernel text/data
Lstart2:
	addl	#NBPG-1,d2
	andl	#PG_FRAME,d2		| round to a page
	movl	d2,a4
	addl	a5,a4			| convert to PA
#if 0
	| XXX clear from end-of-kernel to 1M, as a workaround for an
	| inane pmap_bootstrap bug I cannot find (68040-specific)
	movl	a4,a0
	movl	#1024*1024,d0
	cmpl	a0,d0			| end of kernel is beyond 1M?
	jlt	2f
	subl	a0,d0
1:	clrb	a0@+
	subql	#1,d0
	bne	1b
2:
#endif
	pea	a5@			| firstpa
	pea	a4@			| nextpa
	RELOC(_pmap_bootstrap,a0)
	jbsr	a0@			| pmap_bootstrap(firstpa, nextpa)
	addql	#8,sp

/*
 * Enable the MMU.
 * Since the kernel is mapped logical == physical, we just turn it on.
 */
	RELOC(_Sysseg, a0)		| system segment table addr
	movl	a0@,d1			| read value (a KVA)
	addl	a5,d1			| convert to PA
	RELOC(_mmutype, a0)
	cmpl	#MMU_68040,a0@		| 68040?
	jne	Lmotommu1		| no, skip
	.long	0x4e7b1807		| movc d1,srp
	jra	Lstploaddone
Lmotommu1:
	RELOC(_protorp, a0)
	movl	#0x80000202,a0@		| nolimit + share global + 4 byte PTEs
	movl	d


가게>>>F<<</가게>>>에서, 피해자가 영업장에서 나가라는 말에 화가 나, 머리로 피해자의 가슴부위를 약 10회 때려 폭행하였다.
2. 피고인은 2020. 9. 13. 15:20경 위 <<<가게>>>F<<</가게>>> 앞길에서, 피해자 <<<내국인이름>>>C<<</내국인이름>>>(남, 44세)의 폭행에 대항하여, 머리로 피해자의 가슴 부위를 약 10회 때리는 등 폭행하였다.피고인은 2020. 5. 16. 17:30경 양산시 <<<시아래주소>>>B<<</시아래주소>>>에 있는 '<<<약국>>>C<<</약국>>> 약국' 앞 도로에서, 버스기사인 피해자 <<<내국인이름>>>D<<</내국인이름>>>(57세)가 승객인 피고인에게 마스크를 쓰고 버스를 타라고 말한 것에 불만을 품고 피해자 <<<내국인이름>>>D<<</내국인이름>>>에게 "마스크 안 끼면 안 태워주나, 마스크 낄게, 개새끼야"라고 욕설을 하여 피해자 <<<내국인이름>>>D<<</내국인이름>>>가 버스에서 내려 112에 신고를 하고, 도망치려는 피고인의 옷을 잡고 있던 중 피고인의 옷이 찢어지자 화가 나 "이 씨발놈이 내 옷 쨌나"라고 말하면서 양손으로 피해자 <<<내국인이름>>>D<<</내국인이름>>>의 얼굴과 머리를 수회 때리고, 그 옆에서 싸움을 말리던 승객인 피해자 <<<내국인이름>>>E<<</내국인이름>>>(46세)의 얼굴을 주먹으로 1회 때려 피해자들을 폭행하였다.피고인은 피해자 <<<내국인이름>>>C<<</내국인이름>>>(여, 39세)의 오빠로서 피고인과 동거하고 있었던 사람이다.
1. 피고인은 2013. 11. 17. 03:09경 경남 양산시 <<<시아래주�


rMessage);
    }

    private string GetFullUserInput(string issueDescription, string stepInstructions)
    {
        return $"{GetMessageTop(issueDescription)}\n" +
               $"\n" +
               $"{stepInstructions}";
    }

    private string GetSystemMessage()
    {
        return "You are an AI system that does programming tasks by reading the issue specification and modifying the existing code by " +
               "changing it or adding new code to resolve the user request. You minimize changes to the code and make sure not to modify " +
               "anything that the user has not requested. Do not remove classes, methods, or fields - only add or modify existing ones. " +
               "You will be doing the work in steps. The results of your work will be automatically put on Github. Always print " +
               "the whole source, never the 'The rest of the class remains unchanged' comment";
    }

    private string GetMessageTop(string issueDescription)
    {
        return $"The user request: \n" +
               $"{issueDescription}\n" +
               $"\n" +
               $"---\n" +
               $"\n" +
               $"{GetStepsDescription()}";
    }

    private string GetStepsDescription()
    {
        IReadOnlyList<ISolverStep> steps = _currentStepsHolder.GetCurrentSteps().Steps;

        StringBuilder stepsDescriptionBuilder = new();
        stepsDescriptionBuilder.AppendLine("Do this in steps:\n");

        int stepNumber = 1;

        for (int i = 0; i < steps.Count; i++)
        {
            ISolverStep step = steps[i];

            if (step.ShowInStepsListForModel == false)
            {
                continue;
            }

            stepsDescriptionBuilder.AppendLine($"{stepNumber++}. {step.DescriptionForModel}");
        }

        if (stepNumber == 1)
        {
            throw new Exception("No steps to tell the model");
        }

        return stepsDescriptionBuilder.ToString();
    }
}


], "ATTRSEP", "=")
	validateselterm(t, valq.GetChildren()[1], "attrchoice", "term")
	if v := qsel.GetValue(); v != ref {
		t.Errorf("expected %q, got %q", ref, v)
	}

	// test parsing `[attribute~=value]`
	selast.Reset()
	ref = "[class~=on]" // containing er
	qsel, _ = selast.Parsewith(sely, NewScanner([]byte(ref)))
	cs = qsel.GetChildren()
	if len(cs) != 1 {
		t.Errorf("unexpected %v", len(cs))
	} else if cs = cs[0].GetChildren(); len(cs) != 1 {
		t.Errorf("unexpected %v", len(cs))
	}
	attrq = cs[0].GetChildren()[3]
	validateselterm(t, attrq.GetChildren()[0], "OPENSQR", "[")
	validateselterm(t, attrq.GetChildren()[1], "ATTRNAME", "class")
	validateselterm(t, attrq.GetChildren()[3], "CLOSESQR", "]")
	valq = attrq.GetChildren()[2]
	validateselterm(t, valq.GetChildren()[0], "ATTRSEP", "~=")
	validateselterm(t, valq.GetChildren()[1], "attrchoice", "on")
	if v := qsel.GetValue(); v != ref {
		t.Errorf("expected %q, got %q", ref, v)
	}

	// test parsing `[attribute^=value]`
	selast.Reset()
	ref = "[class^=ter]"
	qsel, _ = selast.Parsewith(sely, NewScanner([]byte(ref)))
	cs = qsel.GetChildren()
	if len(cs) != 1 {
		t.Errorf("unexpected %v", len(cs))
	} else if cs = cs[0].GetChildren(); len(cs) != 1 {
		t.Errorf("unexpected %v", len(cs))
	}
	attrq = cs[0].GetChildren()[3]
	validateselterm(t, attrq.GetChildren()[0], "OPENSQR", "[")
	validateselterm(t, attrq.GetChildren()[1], "ATTRNAME", "class")
	validateselterm(t, attrq.GetChildren()[3], "CLOSESQR", "]")
	valq = attrq.GetChildren()[2]
	validateselterm(t, valq.GetChildren()[0], "ATTRSEP", "^=")
	validateselterm(t, valq.GetChildren()[1], "attrchoice", "ter")
	if v := qsel.GetValue(); v != ref {
		t.Errorf("expected %q, got %q", ref, v)
	}

	// test parsing `[attribute$=value]`
	selast.Reset()
	ref = "[class$=term]"
	qsel, _ = selast.Parsewith(sely, NewScanner([]byte(ref)))
	cs = qsel.GetChildren()
	if len(cs) != 1 {
		t.Errorf("unexpected %v", len(cs))
	} else if cs = cs[0].GetChildren(); len(cs) != 1 {
		t.Errorf("unexpected %v", len(cs))
	}
	attrq = cs[0].GetChildren()[3]
	validateselterm(t, attrq.GetChildren()[0], "OPENSQR", "[")
	validateselterm(t, attrq.GetChildren()[1], "ATTRNAME", "class")
	validateselterm(t, attrq.GetChildren()[3], "CLOSESQR", "]")
	valq = attrq.GetChildren()[2]
	validateselterm(t, valq.GetChildren()[0], "ATTRSEP", "$=")
	validateselterm(t, valq.GetChildren()[1], "attrchoice", "term")
	if v := qsel.GetValue(); v != ref {
		t.Err


some() {
            let i = self.index(vm)?;
            let value = int::try_to_float(i.as_bigint(), vm)?;
            Ok(Some(vm.ctx.new_float(value)))
        } else if let Some(value) = self.obj.downcast_ref::<PyFloat>() {
            Ok(Some(vm.ctx.new_float(value.to_f64())))
        } else {
            Ok(None)
        }
    }

    pub fn float(&self, vm: &VirtualMachine) -> PyResult<PyRef<PyFloat>> {
        self.float_opt(vm)?.ok_or_else(|| {
            vm.new_type_error(format!("must be real number, not {}", self.obj.class()))
        })
    }
}
pub trait Window {
    fn hide_cursor(&self);
    fn grap_pointer(&self);
    fn window_event_loop(&self);
    fn warp_pointer(&self, x: i16, y: i16);
}
<filename>garnet/bin/sl4f/src/light/types.rs
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

use fidl_fuchsia_hardware_light::{Capability, GroupInfo, Info, Rgb};
use serde::{Deserialize, Serialize};

pub enum LightMethod {
    GetNumLights,
    GetNumLightGroups,
    GetInfo,
    GetCurrentSimpleValue,
    SetSimpleValue,
    GetCurrentBrightnessValue,
    SetBrightnessValue,
    GetCurrentRgbValue,
    SetRgbValue,
    GetGroupInfo,
    GetGroupCurrentSimpleValue,
    SetGroupSimpleValue,
    GetGroupCurrentBrightnessValue,
    SetGroupBrightnessValue,
    GetGroupCurrentRgbValue,
    SetGroupRgbValue,
    UndefinedFunc,
}

impl LightMethod {
    pub fn from_str(method: &String) -> LightMethod {
        match method.as_ref() {
            "GetNumLights" => LightMethod::GetNumLights,
            "GetNumLightGroups" => LightMethod::GetNumLightGroups,
            "GetInfo" => LightMethod::GetInfo,
            "GetCurrentSimpleValue" => LightMethod::GetCurrentSimpleValue,
            "SetSimpleValue" => LightMethod::SetSimpleValue,
            "GetCurrentBrightnessValue" => LightMethod::GetCurrentBrightnessValue,
            "SetBrightnessValue" => LightMethod::SetBrightnessValue,
            "GetCurrentRgbValue" => LightMethod::GetCurrentRgbValue,
            "SetRgbValue" => LightMethod::SetRgbValue,
            "GetGroupInfo" => LightMethod::GetGroupInfo,
            "GetGroupCurrentSimpleValue" => LightMethod::GetGroupCurrentSimpleValue,
            "SetGroupSimpleValue" => LightMethod::SetGroupSimpleValue,
            "GetGroupCurrentBrightnessValue" => LightMethod::GetGroupCurrentBrightnessValue,
            "SetGroupBrightnessValue" => LightMethod::SetGroupBrightnessValue,
            "GetGroupCurrentRgbValue" => LightMethod::GetGroupCurrentRgbValue,
            "SetGroupRgbValue" => LightMethod::SetGroupRgbValue,
            _ => LightMethod::UndefinedFunc,
        }
    }
}

#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
pub enum SerializableCapability {
    Brightness,
    Rgb,
    Simple,
}

impl From<Capability> for SerializableCapability {
    fn from(x: Capability) -> Self {
        match x {
            Capability::Brightness => SerializableCapability::Brightness,
            Capability::Rgb => SerializableCapability::Rgb,
            Capability::Simple => SerializableCapability::Simple,
        }
    }
}

impl From<SerializableCapability> for Capability {
    fn from(x: SerializableCapability) -> Self {
        ma


(%rsp), %rdi
	testq	%rdi, %rdi
	je	.L3856
	call	_ZN5boost6detail15sp_counted_base7releaseEv
.L3856:
	movq	%rbx, %rdi
.LEHB607:
	call	_Unwind_Resume
.LEHE607:
.L3859:
	movq	40(%rsp), %rdi
	movq	%rax, %rbx
	testq	%rdi, %rdi
	je	.L3855
	call	_ZN5boost6detail15sp_counted_base7releaseEv
	jmp	.L3855
	.cfi_endproc
.LFE13888:
	.section	.gcc_except_table
.LLSDA13888:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE13888-.LLSDACSB13888
.LLSDACSB13888:
	.uleb128 .LEHB604-.LFB13888
	.uleb128 .LEHE604-.LEHB604
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB605-.LFB13888
	.uleb128 .LEHE605-.LEHB605
	.uleb128 .L3859-.LFB13888
	.uleb128 0
	.uleb128 .LEHB606-.LFB13888
	.uleb128 .LEHE606-.LEHB606
	.uleb128 .L3858-.LFB13888
	.uleb128 0
	.uleb128 .LEHB607-.LFB13888
	.uleb128 .LEHE607-.LEHB607
	.uleb128 0
	.uleb128 0
.LLSDACSE13888:
	.section	.text._ZN5boost16exception_detail11set_info_rvINS_10error_infoINS_27tag_original_exception_typeEPKSt9type_infoEEE3setINS0_39current_exception_std_exception_wrapperISt11range_errorEEEERKT_SF_OS7_,"axG",@progbits,_ZN5boost16exception_detail11set_info_rvINS_10error_infoINS_27tag_original_exception_typeEPKSt9type_infoEEE3setINS0_39current_exception_std_exception_wrapperISt11range_errorEEEERKT_SF_OS7_,comdat
	.size	_ZN5boost16exception_detail11set_info_rvINS_10error_infoINS_27tag_original_exception_typeEPKSt9type_infoEEE3setINS0_39current_exception_std_exception_wrapperISt11range_errorEEEERKT_SF_OS7_, .-_ZN5boost16exception_detail11set_info_rvINS_10error_infoINS_27tag_original_exception_typeEPKSt9type_infoEEE3setINS0_39current_exception_std_exception_wrapperISt11range_errorEEEERKT_SF_OS7_
	.section	.text._ZN5boost16exception_detail11set_info_rvINS_10error_infoINS_27tag_original_exception_typeEPKSt9type_infoEEE3setINS0_39current_exception_std_exception_wrapperISt14overflow_errorEEEERKT_SF_OS7_,"axG",@progbits,_ZN5boost16exception_detail11set_info_rvINS_10error_infoINS_27tag_original_exception_typeEPKSt9type_infoEEE3setINS0_39current_exception_std_exception_wrapperISt14overflow_errorEEEERKT_SF_OS7_,comdat
	.p2align 4,,15
	.weak	_ZN5boost16exception_detail11set_i


                                  | Avatar                                                          | Name                                   | Avatar                                                                                | Name                                      | Avatar                                                                                | Name                               | Avatar                                                                                |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------- | --------------------------------------------------------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [好爸爸](https://github.com/good-father) | ![](https://avatars0.githubusercontent.com/u/18495604?s=40&u=9c52375b23eb3eb0402922cabb1cb90e910fc943&v=4) | [嘻老师](https://github.com/aa978563552) | ![](https://avatars0.githubusercontent.com/u/61268325?s=40&v=4) | [姚泽源](https://github.com/YaoZeyuan) | ![](https://avatars3.githubusercontent.com/u/7150325?s=40&u=8fb766237479748224c4425c4badd436872fcc12&v=4) | [liaoqixin](https://github.com/liaoqixin) | ![](https://avatars1.githubusercontent.com/u/39083857?s=40&u=bdc30ac0690d258bff8053d91e7ee114891de6fe&v=4) | [般若超](https://github.com/WISZC) | ![](https://avatars2.githubusercontent.com/u/37796897?s=40&u=fe779bfa82b95da9bbc39eb33bfa3ab239969e07&v=4) |

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright(c) 2020 Lianjia, Inc. All Rights Reserved

---
order: 5
title: 保存数据格式
---

- 不管是单选还是多选，保存的格式都为object[]
- optionsSourceType为async时，利用异步加载特性可以支持保存节点路径
```
[
  {
    "title": "大区2",
    "value": "110000>>>shiyebu1>>>daqu2"
  }
]
```

```jsx
import Hetu from 'hetu'
const


/****************************************************************************
* Copyright (C) 2019 Eric Mor
*
* This file is part of Spore ModAPI.
*
* Spore ModAPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

#pragma once

#include <Spore\ArgScript\ASDeclarations.h>
#include <Spore\ArgScript\Line.h>
#include <Spore\Internal.h>

#define IParserPtr eastl::intrusive_ptr<ArgScript::IParser>

namespace ArgScript
{
	class FormatParser;

	///
	/// This interface represents a command or block that can be parsed in ArgScript. Parsers are mapped to keywords using the
	/// FormatParser::AddParser() method.
	///
	class IParser
	{
	public:
		IParser();

		/* 00h */	virtual void ParseLine(const Line& line) = 0;

		///
		/// Returns a basic or complete description of what this parser does. This usually includes information about
		/// how to use it, i.e. the arguments required, possible options, etc
		/// @param mode Whether the basic or complete description must be returned, in the DescriptionMode enum.
		///
		/* 04h */	virtual const char* GetDescription(DescriptionMode mode = DescriptionMode::Basic) const;

		///
		/// Sets the data and FormatParser of this parser. This method is called when FormatParser::AddParser() or IBlock::AddParser()
		/// are used.
		///
		/* 08h */	virtual void SetData(FormatParser* pFormatParser, void* pData) = 0;

		/* 0Ch */	virtual int AddRef();
		/* 10h */	virtual int Release();

	protected:
		/* 04h */	FormatParser* mpFormatParser;
		/* 08h */	int mnRefCount;
		/* 0Ch */	void* mpData;

	};
}


or word in words:
            word = word.strip()
            if word == "":
                continue
            new_words.append(f" {word.strip()}")

        # finish building new list of words
        if end_sentence_token is not None:
            new_words.append(f"{space_before_token}{end_sentence_token}")
        if end_paragraph_token is not None and num_sentence == len(paragraph) - 1:
            new_words.append(f"{space_before_token}{end_paragraph_token}")
        sentence = "".join(new_words).strip()
        new_paragraph.append(sentence)
    return new_paragraph


 (x) => flattenInvolution(x, engine));
}

function flattenIdempotent(
  expr: Expression | null,
  engine: ComputeEngine
): Expression | null {
  const name = getFunctionName(expr);
  const def = engine.getFunctionDefinition(name);
  if (def?.idempotent) return flatten(expr, name);

  return applyArgs(expr, (x) => flattenIdempotent(x, engine));
}

function flattenAssociative(
  expr: Expression | null,
  engine: ComputeEngine
): Expression | null {
  const name = getFunctionName(expr);
  const def = engine.getFunctionDefinition(name);
  if (def?.associative) return flatten(expr, name);

  return applyArgs(expr, (x) => flattenAssociative(x, engine));
}

function canonicalAddForm(
  expr: Expression | null,
  engine: ComputeEngine
): Expression | null {
  const head = getFunctionHead(expr);
  if (!head) return expr;
  if (head !== ADD) {
    return applyArgs(expr, (x) => canonicalAddForm(x, engine));
  }
  expr = flatten(ungroup(expr), ADD);
  let args = getTail(expr);
  args = args
    .map((x) => canonicalAddForm(x, engine))
    .filter((x) => getNumberValue(x) !== 0);
  const argCount = args.length;
  if (argCount === 0) return 0;
  if (argCount === 1) return args[0];
  return [ADD, ...args];
}

function canonicalDivideForm(
  expr: Expression | null,
  engine: ComputeEngine
): Expression | null {
  const head = getFunctionHead(expr);
  if (!head) return expr;
  if (head !== DIVIDE) {
    return applyArgs(expr, (x) => canonicalDivideForm(x, engine));
  }

  if (getArgCount(expr) !== 2) return expr;

  const arg1 = canonicalDivideForm(getArg(expr, 1), engine);
  const arg2 = canonicalDivideForm(getArg(expr, 2), engine);
  if (getNumberValue(arg2) === 1) return arg1;
  if (getNumberValue(arg1) === 1) return applyInvert(arg2);
  return [MULTIPLY, arg1, applyInvert(arg2)];
}

function canonicalExpForm(
  expr: Expression | null,
  engine: ComputeEngine
): Expression | null {
  const head = getFunctionHead(expr);
  if (!head) return expr;
  if (head !== EXP) {
    return applyArgs(expr, (x) => canonicalExpForm(x, engine));
  }

  if (getArgCount(expr) !== 1) return expr;

  return [POWER, EXPONENTIAL_E, canonicalExpForm(getArg(expr, 1), engine)];
}

function canonicalListForm(
  expr: Expression | null,
  engine: ComputeEngine
): Expression | null {
  if (isAtomic(expr)) return expr;

  const rootName = getFunctionName(expr);
  if (rootName !== LIST && rootName !== SEQUENCE && rootName !== SEQUENCE2) {
    return applyArgs(expr, (x) => canonicalListForm(x, engine));
  }

  const isList = rootName === LIST;
  const args = getTail(expr);
  const newArgs: Expression[] = [];

  if (isList) {
    for (let arg of args) {
      arg = canonicalListForm(arg, engine);
      const name = getFunctionName(arg);
      if (name === IDENTITY) {
        const newArg = getArg(arg, 1);
        if (newArg !== null && newArg !== undefined) {
          newArgs.push(newArg);
        }
      } else if (name !== NOTHING) {
        newArgs.push(arg);
      }
    }
    return [LIST, ...newArgs];
  }

  const def


ocify-subheader .tocify-item {
  font-size: 0.90em;
}

.tocify .list-group-item {
  border-radius: 0px;
}

.tocify-subheader {
  display: inline;
}
.tocify-subheader .tocify-item {
  font-size: 0.95em;
}

</style>

Marginal Product Discrete Units of Workers

Fan Wang

2020-05-30

1 Marginal Product of Labor

Go to the MLX, M, PDF, or HTML version of this file. Go back to fan’s MEconTools Package, Matlab Code Examples Repository (bookdown site), or Math for Econ with Matlab Repository (bookdown site).

1.1 Marginal Product of Additional Workers (Discrete Workers)

Suppose we can not hire fractions of workers, but have to hire 1, 2, 3, etc.. What is the marginal product of each additional worker?

% fixed capital level
K = 1;
% current labor level
L = [1,2,3,4,5,6,7,8,9,10];

% Cobb Douglas Production Parameters


s;

		public AddFluidTransform(FluidStack output, IIngredient input, FluidStack fluid, int maxLevels, Boolean boiling) {
			super("Cauldron Fluid");
			this.output = output;
			this.input = input;
			this.fluid = fluid;
			this.maxLevels = maxLevels;
			this.boiling = boiling;
		}

		@Override
		public void apply() {
			RecipeMatch input = new RecipeMatchIIngredient(this.input);
			addRecipe(new CauldronFluidTransformRecipe(input, fluid.getFluid(), output.getFluid(), boiling, maxLevels));
		}

		@Override
		protected String getRecipeInfo() {
			return LogHelper.getStackDescription(output);
		}
	}

	private static class AddFluidMix extends BaseAction {
		private ItemStack output;
		private FluidStack input1, input2;

		public AddFluidMix(ItemStack output, FluidStack input1, FluidStack input2) {
			super("Cauldron Mix");
			this.output = output;
			this.input1 = input1;
			this.input2 = input2;
		}

		@Override
		public void apply() {
			addRecipe(new CauldronMixRecipe(input1.getFluid(), input2.getFluid(), output));
		}

		@Override
		protected String getRecipeInfo() {
			return LogHelper.getStackDescription(output);
		}
	}

	private static class RemoveFluid extends BaseAction {
		private IIngredient output;
		private IIngredient input;
		private ILiquidStack fluid;

		public RemoveFluid(IIngredient output, IIngredient input, ILiquidStack fluid) {
			super("Cauldron Fluid");
			this.output = output;
			this.input = input;
			this.fluid = fluid;
		}

		@Override
		public void apply() {
			REMOVED_FLUID.add(Triple.of(output, input, InputHelper.getFluid(fluid)));
		}

		@Override
		protected String getRecipeInfo() {
			return LogHelper.getStackDescription(output);
		}
	}

	private static class RemoveFluidTransform extends BaseAction {
		private IIngredient output;
		private IIngredient input;
		private ILiquidStack fluid;

		public RemoveFluidTransform(IIngredient output, IIngredient input, ILiquidStack fluid) {
			super("Cauldron Fluid");
			this.output = output;
			this.input = input;
			this.fluid = fluid;
		}

		@Override
		public void apply() {
			Fluid output;
			if (this.output instanceof IngredientAny) {
				output = null;
			} else if (this.output instanceof ILiquidStack) {
				output = InputHelper.getFluid((ILiquidStack)this.output);
			} else {
				CraftTweakerAPI.logError("Ignoring Cauldron Fluid recipe removal: Output must be fluid or wildcard");
				return;
			}

			REMOVED_FLUID_TRANSFORM.add(Triple.of(output, input, InputHelper.getFluid(fluid)));
		}

		@Override
		protected String getRecipeInfo() {
			return LogHelper.getStackDescription(output);
		}
	}

	/*
	 * Cauldron filling recipe
	 */

	@ZenMethod
	public static void addFillRecipe(IIngredient input, ILiquidStack fluid) {
		addFillRecipe(input, fluid, 1, null, null);
	}

	@ZenMethod
	public static void addFillRecipe(IIngredient input, ILiquidStack fluid, int amount, @Optional IItemStack container, @Optional Boolean boiling) {
		if (amount < 1 || amount > InspirationsRegistry.getCauldronMax()) {
			CraftTweakerAPI.logError(String.format("Ignoring Cauldron Fill recipe f


 value;

			// parse a key / value pair
			key = token;
			src.ReadTokenOnLine( &token );
			value = token;

			// strip trailing spaces that sometimes get accidentally
			// added in the editor
			value.StripTrailingWhitespace();
			key.StripTrailingWhitespace();

			mapEnt->epairs.Set( key, value );

			if( !idStr::Icmp( key, "origin" ) )
			{
				// scanf into doubles, then assign, so it is idVec size independent
				v1 = v2 = v3 = 0;
				sscanf( value, "%lf %lf %lf", &v1, &v2, &v3 );
				origin.x = v1;
				origin.y = v2;
				origin.z = v3;
			}
			else if( !idStr::Icmp( key, "classname" ) && !idStr::Icmp( value, "worldspawn" ) )
			{
				worldent = true;
			}
		}
	}
	while( 1 );

	mapEnt->CalculateBrushOrigin();

	return mapEnt;
}

/*
============
idMapEntity::Write
============
*/
bool idMapEntity::Write( idFile* fp, int entityNum, bool valve220 ) const
{
	int i;
	idMapPrimitive* mapPrim;
	idVec3 origin;

	fp->WriteFloatString( "// entity %d\n{\n", entityNum );

	// write entity epairs
	for( i = 0; i < epairs.GetNumKeyVals(); i++ )
	{
		fp->WriteFloatString( "\"%s\" \"%s\"\n", epairs.GetKeyVal( i )->GetKey().c_str(), epairs.GetKeyVal( i )->GetValue().c_str() );
	}

	epairs.GetVector( "origin", "0 0 0", origin );

	// write pritimives
	for( i = 0; i < GetNumPrimitives(); i++ )
	{
		mapPrim = GetPrimitive( i );

		switch( mapPrim->GetType() )
		{
			case idMapPrimitive::TYPE_BRUSH:
				if( valve220 )
				{
					static_cast<idMapBrush*>( mapPrim )->WriteValve220( fp, i, origin );
				}
				else
				{
					static_cast<idMapBrush*>( mapPrim )->Write( fp, i, origin );
				}
				break;
			case idMapPrimitive::TYPE_PATCH:
				static_cast<idMapPatch*>( mapPrim )->Write( fp, i, origin );
				break;
			// RB begin
			case idMapPrimitive::TYPE_MESH:
				static_cast<MapPolygonMesh*>( mapPrim )->Write( fp, i, origin );
				break;
				// RB end
		}
	}

	fp->WriteFloatString( "}\n" );

	return true;
}

// RB begin
bool idMapEntity::WriteJSON( idFile* fp, int entityNum, int numEntities ) const
{
	idVec3 origin;

	fp->WriteFloatString( "\t\t{\n\t\t\t\"entity\": \"%d\",\n", entityNum );

	idStr key;
	idStr value;

	for( int i = 0; i < epairs.GetNumKeyVals(); i++ )
	{
		key = epairs.GetKeyVal( i )->GetKey();

		key.ReplaceChar( '\t', ' ' );

		value = epairs.GetKeyVal( i )->GetValue();
		value.BackSlashesToSlashes();

		fp->WriteFloatString( "\t\t\t\"%s\": \"%s\"%s\n", key.c_str(), value.c_str(), ( ( i == ( epairs.GetNumKeyVals() - 1 ) ) && !GetNumPrimitives() ) ? "" : "," );
	}

	epairs.GetVector( "origin", "0 0 0", origin );

	// write pr


g.olat.modules.forms.model.xml.Slider;
import org.springframework.stereotype.Service;

/**
 *
 * Initial date: 25 Jun 2019<br>
 * @author uhensler, urs.hensler@frentix.com, http://www.frentix.com
 *
 */
@Service
class RubricStatisticCalculator {

	SlidersStatistic calculateSlidersStatistic(Rubric rubric, SlidersStepCounts slidersStepCounts) {
		SlidersStatisticImpl slidersStatistic = new SlidersStatisticImpl();
		for (Slider slider: rubric.getSliders()) {
			StepCounts stepCounts = slidersStepCounts.getStepCounts(slider);
			SliderStatistic sliderStatistic;
			if (stepCounts != null) {
				Long count = getCount(stepCounts);
				SumMean sumMean = getSumMean(stepCounts, rubric.getScaleType());
				Double median = getMedian(stepCounts, rubric.getScaleType());
				Double firstQuartile = getPercentile(stepCounts, rubric.getScaleType(), 25d);
				Double thirdQuartile = getPercentile(stepCounts, rubric.getScaleType(), 75d);
				Double variance = getVariance(stepCounts, rubric.getScaleType(), sumMean.getMean());
				Double stdDev = getStdDev(variance);
				RubricRating rating = RubricRatingEvaluator.rate(rubric, sumMean.getMean());
				sliderStatistic = new SliderStatisticImpl(count, sumMean.getSum(),
						median, firstQuartile, thirdQuartile,
						sumMean.getMean(), variance, stdDev, stepCounts, rating);
			} else {
				sliderStatistic = new SliderStatisticImpl(null, null, null, null, null, null, null, null, null, null);
			}
			slidersStatistic.put(slider, sliderStatistic);
		}
		return slidersStatistic;
	}

	RubricStatistic calculateRubricStatistics(Rubric rubric, SlidersStatistic slidersStatistic) {
		SliderStatistic totalStatistic = calculateTotalStatistic(rubric, slidersStatistic);
		return new RubricStatisticImpl(rubric, slidersStatistic, totalStatistic);
	}

	SliderStatistic calculateTotalStatistic(Rubric rubric, SlidersStepCounts slidersStepCounts) {
		StepCountsBuilder stepCountsUnweightedBuilder = getTotalStepCounts(rubric, slidersStepCounts, false);
		Long numOfNoRespones = getCountNoResponses(rubric, slidersStepCounts);
		stepCountsUnweightedBuilder.withCountNoResponses(numOfNoRespones);
		StepCounts stepCountsUnweighted = stepCountsUnweightedBuilder.build();
		Long count = getCount(stepCountsUnweighted);

		StepCounts stepCountsWeighted = getTotalStepCounts(rubric, slidersStepCounts, true).build();
		SumMean sumMean = getSumMean(stepCountsWeighted, rubric.getScaleType());
		Double median = getMedian(stepCountsWeighted, rubric.getScaleType());
		Double firstQuartile = getPercentile(stepCountsWeighted, rubric.getScaleType(), 25d);
		Double thirdQuartile = getPercentile(stepCountsWeighted, rubric.getScaleType(), 75d);

		Double variance = getVariance(stepCountsWeighted, rubric.getScaleType(), sumMean.getMean());
		Double stdDev = getStdDev(variance);
		RubricRating rating = RubricRatingEvaluator.rate(rubric, sumMean.getMean());
		SliderStatistic totalStatistic = new SliderStatisticImpl(count, sumMean.getSum(),
				median, firstQuartile, thirdQuartile, sumMean.getMean(),
				variance, stdDev, stepCountsUnweighted, rating);
		return totalStatistic;
	}

	StepCountsBuilder getTotalStepCounts(Rubric rubric, SlidersStepCounts sliderStepCounts, boolean weighted) {
		StepCounts


{//Toggle vehicle perspective.
                if (!vehicle.IsActive)
                {
                    character.Deactivate();
                    vehicle.Activate();
                }
                else
                    vehicle.Deactivate();
            }
#else
            if (!vehicle.IsActive && Game.WasKeyPressed(Keys.Space))
            {
                //Detonate the bomb
                kapowMaker.Position = kapow.Position;
                kapowMaker.Explode();
            }
            if (Game.WasKeyPressed(Keys.C))
            {
                //Toggle character perspective.
                if (!character.IsActive)
                {
                    vehicle.Deactivate();
                    character.Activate();
                }
                else
                    character.Deactivate();
            }

            if (Game.WasKeyPressed(Keys.V))
            {
                //Toggle vehicle perspective.
                if (!vehicle.IsActive)
                {
                    character.Deactivate();
                    vehicle.Activate(Game.Camera.Position);
                }
                else
                    vehicle.Deactivate();
            }
#endif

            #


o_series()
    }
}

impl<'a, T: AsRef<[Cow<'a, str>]>> NamedFrom<T, [Cow<'a, str>]> for Utf8Chunked {
    fn new(name: &str, v: T) -> Self {
        Utf8Chunked::from_iter_values(name, v.as_ref().iter().map(|value| value.as_ref()))
    }
}

impl<'a, T: AsRef<[Option<Cow<'a, str>>]>> NamedFrom<T, [Option<Cow<'a, str>>]> for Series {
    fn new(name: &str, v: T) -> Self {
        Utf8Chunked::new(name, v).into_series()
    }
}

impl<'a, T: AsRef<[Option<Cow<'a, str>>]>> NamedFrom<T, [Option<Cow<'a, str>>]> for Utf8Chunked {
    fn new(name: &str, v: T) -> Self {
        Utf8Chunked::from_iter_options(
            name,
            v.as_ref()
                .iter()
                .map(|opt| opt.as_ref().map(|value| value.as_ref())),
        )
    }
}

#[cfg(feature = "dtype-date")]
impl<T: AsRef<[NaiveDate]>> NamedFrom<T, [NaiveDate]> for DateChunked {
    fn new(name: &str, v: T) -> Self {
        DateChunked::from_naive_date(name, v.as_ref().iter().copied())
    }
}

#[cfg(feature = "dtype-date")]
impl<T: AsRef<[NaiveDate]>> NamedFrom<T, [NaiveDate]> for Series {
    fn new(name: &str, v: T) -> Self {
        DateChunked::new(name, v).into_series()
    }
}

#[cfg(feature = "dtype-date")]
impl<T: AsRef<[Option<NaiveDate>]>> NamedFrom<T, [Option<NaiveDate>]> for DateChunked {
    fn new(name: &str, v: T) -> Self {
        DateChunked::from_naive_date_options(name, v.as_ref().iter().copied())
    }
}

#[cfg(feature = "dtype-date")]
impl<T: AsRef<[Option<NaiveDate>]>> NamedFrom<T, [Option<NaiveDate>]> for Series {
    fn new(name: &str, v: T) -> Self {
        DateChunked::new(name, v).into_series()
    }
}

#[cfg(feature = "dtype-datetime")]
impl<T: AsRef<[NaiveDateTime]>> NamedFrom<T, [NaiveDateTime]> for DatetimeChunked {
    fn new(name: &str, v: T) -> Self {
        DatetimeChunked::from_naive_datetime(
            name,
            v.as_ref().iter().copied(),
            TimeUnit::Milliseconds,
        )
    }
}

#[cfg(feature = "dtype-datetime")]
impl<T: AsRef<[NaiveDateTime]>> NamedFrom<T, [NaiveDateTime]> for Series {
    fn new(name: &str, v: T) -> Self {
        DatetimeChunked::new(name, v).into_series()
    }
}

#[cfg(feature = "dtype-datetime")]
impl<T: AsRef<[Option<NaiveDateTime>]>> NamedFrom<T, [Option<NaiveDateTime>]> for DatetimeChunked {
    fn new(name: &str, v: T) -> Self {
        DatetimeChunked::from_naive_datetime_options(
            name,
            v.as_ref().iter().copied(),
            TimeUnit::Milliseconds,
        )
    }
}

#[cfg(feature = "dtype-datetime")]
impl<T: AsRef<[Option<NaiveDateTime>]>> NamedFrom<T, [Option<NaiveDateTime>]> for Series {
    fn new(name: &str, v: T) -> Self {


",maxWidth:250}),cR=$(hn)({position:"absolute",zIndex:1,top:4,left:4}),dR=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),pR=$(Go)(({theme:e})=>({fontFamily:e.typography.fonts.base})),fR=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),hR=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),mR=`url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`,zg=({value:e,active:t,onClick:r,style:n,...o})=>{let a=`linear-gradient(${e}, ${e}), ${mR}, linear-gradient(#fff, #fff)`;return y.createElement(hR,{...o,active:t,onClick:r,style:{...n,backgroundImage:a}})},gR=$(Ie.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),yR=$(Re)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Wg=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Wg||{}),vo=Object.values(Wg),AR=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,bR=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,ER=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,ou=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,DR=/^\s*#?([0-9a-f]{3})\s*$/i,vR={hex:gg,rgb:bg,hsl:Ag},Co={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Gg=e=>{let t=e?.match(AR);if(!t)return[0,0,0,1];let[,r,n,o,a=1]=t;return[r,n,o,a].map(Number)},mr=e=>{if(!e)return;let t=!0;if(bR.test(e)){let[i,u,s,p]=Gg(e),[g,b,h]=qe.default.rgb.hsl([i,u,s])||[0,0,0


_desc_structure(spawn_group_desc.spawn, valid_unit_types)

	local unit_categories = tweak_data.group_ai.unit_categories
	local total_wgt = 0
	local i = 1

	while i <= #valid_unit_types do
		local spawn_entry = valid_unit_types[i]
		local cat_data = unit_categories[spawn_entry.unit]

		if not cat_data then
			debug_pause("[GroupAIStateBesiege:_spawn_in_group] unit category doesn't exist:", spawn_entry.unit)

			return
		end

		local spawn_limit = managers.job:current_spawn_limit(cat_data.special_type)

		if cat_data.special_type and not cat_data.is_captain and spawn_limit < self:_get_special_unit_type_count(cat_data.special_type) + (spawn_entry.amount_min or 0) then
			spawn_group.delay_t = self._t + 10

			return
		else
			total_wgt = total_wgt + spawn_entry.freq
			i = i + 1
		end
	end

	for _, sp_data in ipairs(spawn_group.spawn_pts) do
		sp_data.delay_t = self._t + math.rand(0.5)
	end

	local spawn_task = {
		objective = not grp_objective.element and self._create_objective_from_group_objective(grp_objective),
		units_remaining = {},
		spawn_group = spawn_group,
		spawn_group_type = spawn_group_type,
		ai_task = ai_task
	}

	table.insert(self._spawning_groups, spawn_task)

	local function _add_unit_type_to_spawn_task(i, spawn_entry)
		local spawn_amount_mine = 1 + (spawn_task.units_remaining[spawn_entry.unit] and spawn_task.units_remaining[spawn_entry.unit].amount or 0)
		spawn_task.units_remaining[spawn_entry.unit] = {
			amount = spawn_amount_mine,
			spawn_entry = spawn_entry
		}
		wanted_nr_units = wanted_nr_units - 1

		if spawn_entry.amount_min then
			spawn_entry.amount_min = spawn_entry.amount_min - 1
		end

		if spawn_entry.amount_max then
			spawn_entry.amount_max = spawn_entry.amount_max - 1

			if spawn_entry.amount_max == 0 then
				table.remove(valid_unit_types, i)

				total_wgt = total_wgt - spawn_entry.freq

				return true
			end
		end
	end

	local i = 1

	while i <= #valid_unit_types do
		local spawn_entry = valid_unit_types[i]

		if i <= #valid_unit_types and wanted_nr_units > 0 and spawn_entry.amount_min and spawn_entry.amount_min > 0 and (not spawn_entry.amount_max or spawn_entry.amount_max > 0) then
			if not _add_unit_type_to_spawn_task(i, spawn_entry) then
				i = i + 1
			end
		else
			i = i + 1
		end
	end

	while wanted_nr_units > 0 and #valid_unit_types ~= 0 do
		local rand_wght = math.random() * total_wgt
		local rand_i = 1
		local rand_entry = nil

		repeat
			rand_entry = valid_unit_types[rand_i]
			rand_wght = rand_wght - rand_entry.freq

			if rand_wght <= 0 then
				break
			else
				rand_i = rand_i + 1
			end
		until false

		local cat_data = unit_categories[rand_entry.unit]
		local spawn_limit = managers.job:current_spawn_limit(cat_data.special_type)

		if cat_data.special_type and not c


人的工位太小
* 忘记安排清洁阿姨，头几天没人扫地倒垃圾
* 没买垃圾桶，空气清净机，碗盘，清洁剂这些日常必需品
* 老板的办公室太小
* 忘记验收厕所，厕所是坏的
* 忘记提醒同事，电脑要备份。贵重器材外面要包好
* 忘记更改旧办公室的水电网路帐单
* 没有协调值班人员，结果搬家时公司瘫痪了
* 忘记做预算表给老板知道，结果老板因为超支暴怒了
* 留守旧办公室的同事太少，结果缺人打包
* 新办公室的同事做事不仔细，结果去了还是出一堆包

#### 同事可以先做什么「正确的事」达到很好的体验？

* 部门主管主动提出值班计画，并指挥同事打包
* 每个人都预先收拾自己不重要的东西
* 自己个人问题的会先与主管协调

#### 同事可能会做了什么「错误的事」结果收到很糟的体验？

* 忘记要整理，最后一天才打包
* 不知道自己要干嘛，现场一团混乱
* 没有在自己的箱子上写上姓名，结果现场找很久
* 没有细心的包装自己的电脑，后面摔坏了

#### 开始准备搬家时，如何检测同事做了「正确的事」或者是「错误的事」？

* 请主管督军各部门同事
* 指派旧办公室负责人检查 checklist
* 指派新办公室验收负责人检查 checklist
* 准备大日历，确认每一个时间点，哪一些东西要就位
* 发给每个同事 SOP，请同事照著 SOP 打包
* 准备工作值班 calendar，确认每一个时段都有人上班

#### 同事如何联络你修正问题？

* 公布负责任电话以及微信。
* 具体指定负责同事以及如何与负责同事协做细项
* 设立搬家负责人任讨论群组，全公司的搬家群组

#### 你怎么做事后补偿的方案？

* 向老板申请备用预算
* 如果真来不及，先行求援。
* 发给同事补偿津贴。

## 以大脑特性，化阻力为助力，用问题挖出深层细节

问完一轮 Onboarding，就会发现还是有很多细节以及验收清单需要补。但是到这个时段，我们应该已经可以把要做的事情 99% 都抓出来了。

而且在实做过程中，我们也可以陆续抓出轻重缓急，分派出去。

这两个方法为什么这么有效呢？因为人类大脑是不容易处理发散问题的。并且，对于未知的规划远超过一般人类的大脑运算能力。反而还会感到恐慌。再来，人类通常只有办法一次做一件事。并且喜欢以问题导向，去专心解决实做目


._canvasOffset.x += x;
        this._canvasOffset.y += y;
    }

    public zoomIn(): void {
        var currentViewCenterWorld = this.getWorldPointFromPixelPoint(this._viewCenterPixel.x, this._viewCenterPixel.y);
        this._scale *= 1.1;
        var newViewCenterWorld = this.getWorldPointFromPixelPoint(this._viewCenterPixel.x, this._viewCenterPixel.y);
        this._canvasOffset.x += (newViewCenterWorld.x - currentViewCenterWorld.x) * this._scale;
        this._canvasOffset.y -= (newViewCenterWorld.y - currentViewCenterWorld.y) * this._scale;
    }

    public zoomOut(): void {
        var currentViewCenterWorld = this.getWorldPointFromPixelPoint(this._viewCenterPixel.x, this._viewCenterPixel.y);
        this._scale /= 1.1;
        var newViewCenterWorld = this.getWorldPointFromPixelPoint(this._viewCenterPixel.x, this._viewCenterPixel.y);
        this._canvasOffset.x += (newViewCenterWorld.x - currentViewCenterWorld.x) * this._scale;
        this._canvasOffset.y -= (newViewCenterWorld.y - currentViewCenterWorld.y) * this._scale;
    }

    /*
    * Properties
    */
    public get Scale() { return this._scale; }
    public set Scale(value: number) { this._scale = value; }

    public get CanvasOffset() { return this._canvasOffset; }
    public set CanvasOffset(value) { this._canvasOffset = value; }

    public get ViewCenterPixel() { return this._viewCenterPixel; }
    public set ViewCenterPixel(value) { this._viewCenterPixel = value; }

    public get Canvas() { return this._canvas; }
    public set Canvas(value: HTMLCanvasElement) { this._canvas = value; }

    public get Ctx() { return this._ctx; }
    public set Ctx(value: CanvasRenderingContext2D) { this._ctx = value; }
}import {
  EMAIL_ADD,
  EMAIL_ADD_SUCCESS,
  EMAIL_ADD_ERROR,
  EMAIL_FETCH_ALL,
  EMAIL_FETCH_ALL_SUCCESS,
  EMAIL_FETCH_ALL_ERROR,
  EMAIL_FETCH_THREAD,
  EMAIL_FETCH_THREAD_SUCCESS,
  EMAIL_FETCH_THREAD_ERROR,
  EMAIL_MARK_READ,
} from "./Types";

interface IEmailState {
  loading: boolean;
  error: any;
  emails: any;
  unreadCount: number;
  thread: any;
}

const initialState = {
  loading: false,
  error: null,
  emails: null,
  unreadCount: 0,
  thread: [],
};

interface IEmailReducerAction {
  type:
    | typeof EMAIL_ADD
    | typeof EMAIL_ADD_SUCCESS
    | typeof EMAIL_ADD_ERROR
    | typeof EMAIL_FETCH_ALL
    | typeof EMAIL_FETCH_ALL_SUCCESS
    | typeof EMAIL_FETCH_ALL_ERROR
    | typeof EMAIL_FETCH_THREAD
    | typeof EMAIL_FETCH_THREAD_SUCCESS
    | typeof EMAIL_FETCH_THREAD_ERROR;
  response?: any;
  error?: any;
}

export default function reducer(
  state: IEmailState = initialState,
  { type, response, error }: IEmailReducerAction
): IEmailState {
  switch (type) {
    case EMAIL_ADD:
      return {
        ...state,
        loading: true,
      };
    case EMAIL_FETCH_ALL:
      return {
        ...state,
        loading: true,
      };
    case EMAIL_ADD_SUCCESS:
      return { ...state };
    case EMAIL_ADD_ERROR:
      return { ...state, error: error };
    case EMAIL_FETCH_ALL_SUCCESS:
      return { ...state, emails: response, unreadCount: response.filter(({is_read}: any) =


opt	c+, at+, e+, n-
	section overlay.text

	xdef s12a_wolf2_800D0CAC
s12a_wolf2_800D0CAC:
	dw 0x27BDFFB8 ; 800D0CAC
	dw 0xAFB20038 ; 800D0CB0
	dw 0x00809021 ; 800D0CB4
	dw 0xAFBF0044 ; 800D0CB8
	dw 0xAFB40040 ; 800D0CBC
	dw 0xAFB3003C ; 800D0CC0
	dw 0xAFB10034 ; 800D0CC4
	dw 0xAFB00030 ; 800D0CC8
	dw 0x8E42099C ; 800D0CCC
	dw 0x00000000 ; 800D0CD0
	dw 0x10400070 ; 800D0CD4
	dw 0x24130064 ; 800D0CD8
	dw 0x00008821 ; 800D0CDC
	dw 0x8A480027 ; 800D0CE0
	dw 0x9A480024 ; 800D0CE4
	dw 0x8A49002B ; 800D0CE8
	dw 0x9A490028 ; 800D0CEC
	dw 0xABA80023 ; 800D0CF0
	dw 0xBBA80020 ; 800D0CF4
	dw 0xABA90027 ; 800D0CF8
	dw 0xBBA90024 ; 800D0CFC
	dw 0x97A40022 ; 800D0D00
	dw 0x87A30020 ; 800D0D04
	dw 0x248403E8 ; 800D0D08
	dw 0xA7A40022 ; 800D0D0C
	dw 0x864209FC ; 800D0D10
	dw 0x00042400 ; 800D0D14
	dw 0x00431021 ; 800D0D18
	dw 0x00021FC2 ; 800D0D1C
	dw 0x00431021 ; 800D0D20
	dw 0x00021043 ; 800D0D24
	dw 0xA7A20028 ; 800D0D28
	dw 0x864209FE ; 800D0D2C
	dw 0x00042403 ; 800D0D30
	dw 0x00441021 ; 800D0D34
	dw 0x00021FC2 ; 800D0D38
	dw 0x00431021 ; 800D0D3C
	dw 0x00021043 ; 800D0D40
	dw 0xA7A2002A ; 800D0D44
	dw 0x86420A00 ; 800D0D48
	dw 0x87A30024 ; 800D0D4C
	dw 0x24100002 ; 800D0D50
	dw 0x00431021 ; 800D0D54
	dw 0x00021FC2 ; 800D0D58
	dw 0x00431021 ; 800D0D5C
	dw 0x00021043 ; 800D0D60
	dw 0xA7A2002C ; 800D0D64
	dw 0x8BA8002B ; 800D0D68
	dw 0x9BA80028 ; 800D0D6C
	dw 0x8BA9002F ; 800D0D70
	dw 0x9BA9002C ; 800D0D74
	dw 0xABA8001B ; 800D0D78
	dw 0xBBA80018 ; 800D0D7C
	dw 0xABA9001F ; 800D0D80
	dw 0xBBA9001C ; 800D0D84
	dw 0x27A50020 ; 800D0D88
	dw 0x8E420050 ; 800D0D8C
	dw 0x27A60018 ; 800D0D90
	dw 0xAFB00010 ; 800D0D94
	dw 0x8C440008 ; 800D0D98
	dw 0x0C00A115 ; 800D0D9C
	dw 0x24070005 ; 800D0DA0
	dw 0x1040000A ; 800D0DA4
	dw 0x00000000 ; 800D0DA8
	dw 0x26310001 ; 8


s[armorType][2]
			armorCheckPenalty = ex_armor_penalties[armorType][3]
			if dexterityBonus > maxDexBonus then
				dexterityAdjust = dexterityBonus - maxDexBonus
			end
		end
		if armorType == 60 or armorType == 61 then
			if armorCheckPenalty > 0 then
				IEex_ApplyEffectToActor(targetID, {
["opcode"] = 59,
["target"] = 2,
["timing"] = 0,
["duration"] = 2,
["parameter1"] = armorCheckPenalty + dexterityAdjust,
["parent_resource"] = "USARMMAS",
["source_id"] = targetID
})
--[[
				IEex_ApplyEffectToActor(targetID, {
["opcode"] = 90,
["target"] = 2,
["timing"] = 0,
["duration"] = 2,
["parameter1"] = armorCheckPenalty + dexterityAdjust,
["parent_resource"] = "USARMMAS",
["source_id"] = targetID
})
				IEex_ApplyEffectToActor(targetID, {
["opcode"] = 91,
["target"] = 2,
["timing"] = 0,
["duration"] = 2,
["parameter1"] = armorCheckPenalty + dexterityAdjust,
["parent_resource"] = "USARMMAS",
["source_id"] = targetID
})
--]]
				IEex_ApplyEffectToActor(targetID, {
["opcode"] = 92,
["target"] = 2,
["timing"] = 0,
["duration"] = 2,
["parameter1"] = armorCheckPenalty + dexterityAdjust,
["parent_resource"] = "USARMMAS",
["source_id"] = targetID
})
				IEex_ApplyEffectToActor(targetID, {
["opcode"] = 297,
["target"] = 2,
["timing"] = 0,
["duration"] = 2,
["parameter1"] = armorCheckPenalty + dexterityAdjust,
["parent_resource"] = "USARMMAS",
["source_id"] = targetID
})
			end
			if dexterityAdjust > 0 then
				IEex_ApplyEffectToActor(targetID, {
["opcode"] = 0,
["target"] = 2,
["timing"] = 0,
["duration"] = 2,
["parameter1"] = dexterityAdjust,
["parent_resource"] = "USARMMAS",
["source_id"] = targetID
})
			end
		end
	end
end

function MEARMMA2(effectData, creatureData)
	if true then return end
	local targetID = IEex_GetActorIDShare(creatureData)
	local armorType = 67
	if IEex_GetActorSpellState(targetID, 241) then
		IEex_IterateActorEffects(targetID, function(eData)
			local theopcode = IEex_ReadDword(eData + 0x10)
			local theparameter1 = IEex_ReadDword(eData + 0x1C)
			local theparameter2 = IEex_ReadDword(eData + 0x20)
			if theopcode == 288 and theparameter2 == 241 then
				if theparameter1 >= 60 and theparameter1 <= 68 then
					armorType = theparameter1
				end
			end
		end)
		local dexterityBonus = math.floor((IEex_GetActorStat(targetID, 40) - 10) / 2)
		local dexterityAdjust = 0
		local maxDexBonus = 99
		local armorCheckPenalty = 0
		if ex_armor_penalties[armorType] ~= nil then
			maxDexBonus = ex_armor_penalties[armorType][2]
			armorCheckPenalty = ex_armor_penalties[armorType][3]
			if dexterityBonus > maxDexBonus then
				dexterityAdjust = dexterityBonus - maxDexBonus


="mlpRegEvidenceDemo.html"> Modified version of netlab's demev1
561

mlpRegHmcDemo
	  Mulitlayer Perceptron HMC Regression Demo
561

regtreeSurfaceDemo
	  The values used in the latex pstricks figure
527

sparseNnetDemo
	  L1 regularization on a deep feedforwrd neural net
557

tanhPlot
	  Visually compare tanh and sigmoid functions
552

<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>dpmSampleDemo</title><meta name="generator" content="MATLAB 7.12"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2012-03-27"><meta name="DC.source" content="dpmSampleDemo.m">

Contents

sample from a DP mixture of 2D gaussians

Sample from CRP prior

Generate random parameters for each mixture component

Generate data from each component
<


#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new n("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new n("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new n("[~RPwxU~ZOp~~",11,15),new n("[~RPrsU~ZOn~~",11,14),new n("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new n("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),p=l.parser.configure({top:"SingleExpression"}),u=s.configure({props:[O({Text:t.content,Is:t.definitionOperator,AttributeName:t.attributeName,VueAttributeName:t.keyword,Identifier:t.variableName,"AttributeValue ScriptAttributeValue":t.attributeValue,Entity:t.character,"{{ }}":t.brace,"@ :":t.punctuation})]}),S={parser:p},m={parser:u.configure({wrap:i(((O,t)=>"InterpolationContent"==O.name?S:null))})},b={parser:u.configure({wrap:i(((O,t)=>"AttributeScript"==O.name?S:null)),top:"Attribute"})},c=o();function Q(O){return O.configure({dialect:"selfClosing",wrap:i(y)},"vue")}const P=Q(c.language);function y(O,t){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(t.read(O.from,O.from+2))?b:null;case"Text":return m}return null}function g(O={}){let t=c;if(O.base){if("html"!=O.base.language.name||!(O.base.language instanceof e))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new r(t.language==c.language?P:Q(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{g as vue,P as vueLanguage};
import{p as t}from"./chunk-TMUBEWPD-BfBk2ke4.js";import{I as r}from"./c