max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
831
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.android.database; import com.intellij.openapi.project.Project; import com.intellij.openapi.startup.StartupActivity; import org.jetbrains.annotations.NotNull; final class AndroidDataSourceStorageCleaner implements StartupActivity.Background { @Override public void runActivity(@NotNull Project project) { AndroidRemoteDataBaseManager.getInstance().processRemovedProjects(); } }
156
373
/** @file Whiskey Lake U RVP Board Initialization Pre-Memory library Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/IoLib.h> #include <Library/BoardInitLib.h> #include <Library/PcdLib.h> #include <Library/DebugLib.h> EFI_STATUS EFIAPI WhiskeylakeURvpBoardDetect ( VOID ); EFI_BOOT_MODE EFIAPI WhiskeylakeURvpBoardBootModeDetect ( VOID ); EFI_STATUS EFIAPI WhiskeylakeURvpBoardDebugInit ( VOID ); EFI_STATUS EFIAPI WhiskeylakeURvpBoardInitBeforeMemoryInit ( VOID ); EFI_STATUS EFIAPI BoardDetect ( VOID ) { WhiskeylakeURvpBoardDetect (); return EFI_SUCCESS; } EFI_STATUS EFIAPI BoardDebugInit ( VOID ) { WhiskeylakeURvpBoardDebugInit (); return EFI_SUCCESS; } EFI_BOOT_MODE EFIAPI BoardBootModeDetect ( VOID ) { return WhiskeylakeURvpBoardBootModeDetect (); } EFI_STATUS EFIAPI BoardInitBeforeMemoryInit ( VOID ) { WhiskeylakeURvpBoardInitBeforeMemoryInit (); return EFI_SUCCESS; } EFI_STATUS EFIAPI BoardInitAfterMemoryInit ( VOID ) { return EFI_SUCCESS; } EFI_STATUS EFIAPI BoardInitBeforeTempRamExit ( VOID ) { return EFI_SUCCESS; } EFI_STATUS EFIAPI BoardInitAfterTempRamExit ( VOID ) { return EFI_SUCCESS; }
666
1,742
<reponame>fchapoton/sage """ TESTS:: sage: from sage.combinat.lyndon_word import * """ from sage.misc.lazy_import import lazy_import lazy_import('sage.combinat.words.lyndon_word', '*', deprecation=19150)
87
571
<filename>ContactsSearch/app/src/main/java/com/handsomezhou/contactssearch/view/T9TelephoneDialpadView.java package com.handsomezhou.contactssearch.view; import android.annotation.SuppressLint; import android.content.Context; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import com.handsomezhou.contactssearch.R; import com.handsomezhou.contactssearch.util.ViewUtil; public class T9TelephoneDialpadView extends LinearLayout implements OnClickListener, OnLongClickListener { private static final char DIAL_X_SECOND_MEANING = '+'; private static final char DIAL_0_SECOND_MEANING = ' '; private static final char DIAL_J_SECOND_MEANING = '-'; /** * Interface definition for a callback to be invoked when a * T9TelephoneDialpadView is operated. */ public interface OnT9TelephoneDialpadView { void onAddDialCharacter(String addCharacter); void onDeleteDialCharacter(String deleteCharacter); void onDialInputTextChanged(String curCharacter); void onHideT9TelephoneDialpadView(); } private Context mContext; /** * Inflate Custom T9 phone dialpad View hierarchy from the specified xml * resource. */ private View mDialpadView; // this Custom View As the T9TelephoneDialpadView // of children private Button mTelephoneDialCloseBtn; private Button mDialDeleteBtn; private EditText mT9InputEt; private OnT9TelephoneDialpadView mOnT9TelephoneDialpadView = null; public T9TelephoneDialpadView(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; initView(); initData(); initListener(); } public void show() { ViewUtil.showView(this); } public void hide() { ViewUtil.hideView(this); } private void initData() { } private void initView() { LayoutInflater inflater = (LayoutInflater) mContext .getSystemService(Context.LAYOUT_INFLATER_SERVICE); mDialpadView = inflater.inflate(R.layout.t9_telephone_dialpad_layout, this); mTelephoneDialCloseBtn = (Button) mDialpadView .findViewById(R.id.telephone_dial_close_btn); mDialDeleteBtn = (Button) mDialpadView .findViewById(R.id.dial_delete_btn); mT9InputEt = (EditText) mDialpadView .findViewById(R.id.dial_input_edit_text); mT9InputEt.setCursorVisible(false); } private void initListener() { mTelephoneDialCloseBtn.setOnClickListener(this); mDialDeleteBtn.setOnClickListener(this); mDialDeleteBtn.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { deleteAllDialCharacter(); return true; } }); /** * set click listener for button("0-9",'*','#') */ for (int i = 0; i < 12; i++) { View v = mDialpadView.findViewById(R.id.dialNum1 + i); v.setOnClickListener(this); } /** * set long click listener for button('*','0','#') * */ View viewX = mDialpadView.findViewById(R.id.dialx); viewX.setOnLongClickListener(this); View viewO = mDialpadView.findViewById(R.id.dialNum0); viewO.setOnLongClickListener(this); View viewJ = mDialpadView.findViewById(R.id.dialj); viewJ.setOnLongClickListener(this); mT9InputEt.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { // TODO Auto-generated method stub } @Override public void afterTextChanged(Editable s) { if (null != mOnT9TelephoneDialpadView) { String inputStr=s.toString(); mOnT9TelephoneDialpadView.onDialInputTextChanged(inputStr); mT9InputEt.setSelection(inputStr.length()); // Toast.makeText(mContext, // "onDialInputTextChanged[" + s.toString() + "]", // Toast.LENGTH_SHORT).show(); } } }); mT9InputEt.setOnTouchListener(new OnTouchListener() { @SuppressLint("ClickableViewAccessibility") @Override public boolean onTouch(View v, MotionEvent event) { // In order to prevent the soft keyboard pops up,but also can // not make EditText get focus. return true; // the listener has consumed the event } }); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.telephone_dial_close_btn: hideT9TelephoneDialpadView(); if (null != mOnT9TelephoneDialpadView) { mOnT9TelephoneDialpadView.onHideT9TelephoneDialpadView(); } break; case R.id.dial_delete_btn: deleteSingleDialCharacter(); break; case R.id.dial_input_edit_text: break; case R.id.dialNum0: case R.id.dialNum1: case R.id.dialNum2: case R.id.dialNum3: case R.id.dialNum4: case R.id.dialNum5: case R.id.dialNum6: case R.id.dialNum7: case R.id.dialNum8: case R.id.dialNum9: case R.id.dialx: case R.id.dialj: addSingleDialCharacter(v.getTag().toString()); break; default: break; } } @Override public boolean onLongClick(View v) { switch (v.getId()) { case R.id.dialx: addSingleDialCharacter(String.valueOf(DIAL_X_SECOND_MEANING)); break; case R.id.dialNum0: addSingleDialCharacter(String.valueOf(DIAL_0_SECOND_MEANING)); break; case R.id.dialj: addSingleDialCharacter(String.valueOf(DIAL_J_SECOND_MEANING)); break; default: break; } return true; } public OnT9TelephoneDialpadView getOnT9TelephoneDialpadView() { return mOnT9TelephoneDialpadView; } public void setOnT9TelephoneDialpadView( OnT9TelephoneDialpadView onT9TelephoneDialpadView) { mOnT9TelephoneDialpadView = onT9TelephoneDialpadView; } public EditText getT9InputEt() { return mT9InputEt; } public void setT9InputEt(EditText t9InputEt) { mT9InputEt = t9InputEt; } public void deleteSingleDialCharacter() { String curInputStr = mT9InputEt.getText().toString(); if (curInputStr.length() > 0) { String deleteCharacter = curInputStr.substring( curInputStr.length() - 1, curInputStr.length()); if (null != mOnT9TelephoneDialpadView) { mOnT9TelephoneDialpadView .onDeleteDialCharacter(deleteCharacter); } String newCurInputStr=curInputStr.substring(0,curInputStr.length() - 1); mT9InputEt.setText(newCurInputStr); mT9InputEt.setSelection(newCurInputStr.length()); if(TextUtils.isEmpty(newCurInputStr)){ ViewUtil.hideView(mDialDeleteBtn); }else{ ViewUtil.showView(mDialDeleteBtn); } } } public void deleteAllDialCharacter() { String curInputStr = mT9InputEt.getText().toString(); if (curInputStr.length() > 0) { String deleteCharacter = curInputStr.substring(0, curInputStr.length()); if (null != mOnT9TelephoneDialpadView) { mOnT9TelephoneDialpadView .onDeleteDialCharacter(deleteCharacter); } mT9InputEt.setText(""); ViewUtil.hideView(mDialDeleteBtn); } } private void addSingleDialCharacter(String addCharacter) { String preInputStr = mT9InputEt.getText().toString(); if (!TextUtils.isEmpty(addCharacter)) { mT9InputEt.setText(preInputStr + addCharacter); mT9InputEt.setSelection(mT9InputEt.getText().length()); if (null != mOnT9TelephoneDialpadView) { mOnT9TelephoneDialpadView.onAddDialCharacter(addCharacter); } ViewUtil.showView(mDialDeleteBtn); } // Toast.makeText(mContext, "addSingleDialCharacter[" + addCharacter + // "]", // Toast.LENGTH_SHORT).show(); } public void showT9TelephoneDialpadView() { if (this.getVisibility() != View.VISIBLE) { this.setVisibility(View.VISIBLE); } } public void hideT9TelephoneDialpadView() { if (this.getVisibility() != View.GONE) { this.setVisibility(View.GONE); } } public int getT9TelephoneDialpadViewVisibility() { return this.getVisibility(); } public String getT9Input() { return mT9InputEt.getText().toString(); } public void clearT9Input() { mT9InputEt.setText(""); } }
3,204
1,883
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2012 The MITRE Corporation * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <openbr/plugins/openbr_internal.h> #include <openbr/core/qtutils.h> #include <openbr/core/common.h> namespace br { struct CSVHeader { QList<int> indices; CSVHeader() {} CSVHeader(const QString &key) : key(key) {} QString key; QStringList subKeys; }; class CSVHeaderList : public QList<CSVHeader> { public: CSVHeaderList() {} CSVHeaderList(const QList<CSVHeader> &headers) { foreach (const CSVHeader &header, headers) append(header); } CSVHeaderList(const QStringList &keys) { foreach (const QString &key, keys) append(CSVHeader(key)); } void sort() { typedef QPair<QString, int> IndexPair; QList<IndexPair> sortedKeys = Common::Sort(keys()); CSVHeaderList sortedList; foreach (const IndexPair sortedKey, sortedKeys) sortedList.append((*this)[sortedKey.second]); *this = sortedList; } QStringList keys() const { QStringList keys; for (int i=0; i<this->size(); i++) keys.append((*this)[i].key); return keys; } static CSVHeaderList fromHeaders(const QStringList &headers) { CSVHeaderList csvHeaders; QStringList processedKeys; for (int i=0; i<headers.size(); i++) { CSVHeader header; if (headers[i].contains("_")) { const QStringList subKeys = headers[i].split("_"); header.key = subKeys.first(); if (processedKeys.contains(header.key)) continue; else processedKeys.append(header.key); header.subKeys.append(subKeys.last()); header.indices.append(i); // Look for other subheaders with the same key for (int j=i+1; j<headers.size(); j++) if (headers[j].contains("_")) { const QStringList subKeys = headers[j].split("_"); if (subKeys.first() == header.key && !header.subKeys.contains(subKeys.last()) /* Check for ill-formed csvs */) { header.indices.append(j); header.subKeys.append(subKeys.last()); } } } else { header.key = headers[i]; header.indices.append(i); } csvHeaders.append(header); } return csvHeaders; } }; /*! * \ingroup galleries * \brief Treats each line as a file. * \author <NAME> \cite jklontz * \br_format Columns should be comma separated with first row containing headers. * The first column in the file should be the path to the file to enroll. * Other columns will be treated as file metadata. * * \br_related_plugin txtGallery */ class csvGallery : public FileGallery { Q_OBJECT Q_PROPERTY(bool inPlace READ get_inPlace WRITE set_inPlace RESET reset_inPlace STORED false) BR_PROPERTY(bool, inPlace, false) Q_PROPERTY(bool combineFiles READ get_combineFiles WRITE set_combineFiles RESET reset_combineFiles STORED false) BR_PROPERTY(bool, combineFiles, false) FileList files; CSVHeaderList headers; ~csvGallery() { f.close(); if (files.isEmpty()) return; QSet<QString> samples; foreach (const File &file, files) foreach (const QString &key, file.localKeys()) samples.insert(key); QStringList lines; lines.reserve(files.size()+1); // Make header headers = CSVHeaderList(samples.values()); headers.sort(); lines.append(QStringList(QStringList("File") + headers.keys()).join(",")); // Make table foreach (const File &file, files) lines.append(lineFromFile(file)); QtUtils::writeFile(file, lines); } void setValuesFromHeaders(File &f, const CSVHeaderList &headers, const QVariantList &values) { foreach (const CSVHeader &header, headers) { if (header.indices.size() == 1) { if (header.key == "Rects") foreach(const QVariant &rect, values[header.indices.first()].toList()) f.appendRect(rect.toRectF()); else if (header.key == "Points") foreach(const QVariant &point, values[header.indices.first()].toList()) f.appendPoint(point.toPointF()); else { const QVariant value = values[header.indices.first()]; if (!value.canConvert<QString>() || !value.toString().isEmpty()) f.set(header.key, values[header.indices.first()]); } } else if (header.indices.size() == 2) { // QPointF const QPointF point(values[header.indices[header.subKeys.indexOf("X")]].toFloat(), values[header.indices[header.subKeys.indexOf("Y")]].toFloat()); f.set(header.key, point); f.appendPoint(point); } else if (header.indices.size() == 4) { // QRectF const QRectF rect(values[header.indices[header.subKeys.indexOf("X")]].toFloat(), values[header.indices[header.subKeys.indexOf("Y")]].toFloat(), values[header.indices[header.subKeys.indexOf("Width")]].toFloat(), values[header.indices[header.subKeys.indexOf("Height")]].toFloat()); f.set(header.key, rect); f.appendRect(rect); } } } TemplateList readBlock(bool *done) { readOpen(); *done = false; TemplateList templates; if (!file.exists()) { *done = true; return templates; } if (f.pos() == 0) { // read header QByteArray lineBytes = f.readLine(); QString line = QString::fromLocal8Bit(lineBytes).trimmed(); QRegExp regexp("\\s*,\\s*"); headers = CSVHeaderList::fromHeaders(line.split(regexp).mid(1)); } if (combineFiles) { *done = true; QMap<QString, File> combinedFiles; while (!f.atEnd()) { QVariantList values; foreach (const QString &value, QtUtils::parse(f.readLine(), ',')) values.append(QtUtils::fromString(value)); const QString name = values.first().toString(); File &in = combinedFiles[name]; in.name = name; setValuesFromHeaders(in, headers, values.mid(1)); } foreach (const File &in, combinedFiles.values()) templates.append(in); } else { for (qint64 i = 0; i < this->readBlockSize && !f.atEnd(); i++) { QVariantList values; foreach (const QString &value, QtUtils::parse(f.readLine(), ',')) values.append(QtUtils::fromString(value)); File in; in.name = values.first().toString(); setValuesFromHeaders(in, headers, values.mid(1)); in.set("progress", f.pos()); templates.append(in); } *done = f.atEnd(); } return templates; } void write(const Template &t) { if (inPlace) { writeOpen(); if (headers.isEmpty()) { foreach (const QString &key, t.file.localKeys()) headers.append(CSVHeader(key)); headers.sort(); const QString header = QString(QStringList(QStringList("File") + headers.keys()).join(",") + "\n"); f.write(header.toLocal8Bit()); } f.write(QString(lineFromFile(t.file) + "\n").toLocal8Bit()); } else files.append(t.file); } QString lineFromFile(const br::File file) { QStringList words; words.append(file.name); foreach (const QString &key, headers.keys()) { QString value = QtUtils::toString(file.value(key)); if (value.contains(",")) value = '"' + value + '"'; words.append(value); } return words.join(","); } }; BR_REGISTER(Gallery, csvGallery) } // namespace br #include "gallery/csv.moc"
4,329
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication */ #import <Symbolication/Symbolication-Structs.h> @protocol VMUMemory <NSObject> - (VMURange)addressRange; - (id)architecture; - (BOOL)isContiguous; - (id)memoryAtAddress:(unsigned long long)address maxSize:(unsigned long long)size; - (id)memoryFromSubRange:(VMURange)subRange mapToAddress:(unsigned long long)address architecture:(id)architecture; - (id)view; - (id)swappedView; @end
179
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ #import <iTunesStoreUI/SUScriptObject.h> @class NSArray; @interface SUScriptABMultiValue : SUScriptObject { void *_multiValue; // 36 = 0x24 } @property(readonly, assign) NSArray *values; // G=0xd2db5; @property(readonly, assign) unsigned propertyType; // G=0xd2d7d; @property(readonly, assign) long length; // G=0xd2d45; @property(readonly, assign) void *multiValue; // G=0xd2b71; + (void)initialize; // 0xd3029 + (id)webScriptNameForSelector:(SEL)selector; // 0xd2f71 + (id)webScriptNameForKey:(const char *)key; // 0xd2ecd - (id)scriptAttributeKeys; // 0xd2fc9 - (id)attributeKeys; // 0xd2fb9 // declared property getter: - (id)values; // 0xd2db5 // declared property getter: - (unsigned)propertyType; // 0xd2d7d // declared property getter: - (long)length; // 0xd2d45 - (id)_className; // 0xd2d39 - (id)valueAtIndex:(long)index; // 0xd2c99 - (id)labelAtIndex:(long)index; // 0xd2c41 - (long)indexForIdentifier:(int)identifier; // 0xd2c01 - (int)identifierAtIndex:(long)index; // 0xd2bc1 - (long)firstIndexOfValue:(id)value; // 0xd2b81 // declared property getter: - (void *)multiValue; // 0xd2b71 - (id)initWithMultiValue:(void *)multiValue; // 0xd2aa9 @end
533
336
#ifndef _SYSTEM_DNET_H #define _SYSTEM_DNET_H #ifdef _WIN32 #include <windows.h> #include <pthread.h> #define inline __inline #define __attribute__(x) typedef long ssize_t; #define fcntl(a,b,c) 0 #define close closesocket #define strtok_r strtok_s #define localtime_r(a,b) localtime_s(b,a) #define usleep(x) 0 static pthread_t pthread_invalid; #define strdup(x) _strdup(x) #if defined(_MSC_VER) #define SHUT_RDWR SD_BOTH #endif #else #define pthread_invalid -1 #define INVALID_SOCKET -1 #endif #endif
225
310
{ "name": "iF-281DPB", "description": "A 28 inch TFT display.", "url": "http://www.i-inc-usa.com/Product/iF281HPB.htm" }
57
3,799
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package androidx.wear.ongoing; import android.content.Context; import android.text.SpannableStringBuilder; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; /** * Base class to represent the status of an Ongoing Activity and render it. * <p> * A status is composed of Parts, and they are joined together with a template. * <p> * Note that for backwards compatibility reasons the code rendering this status message may not * have all of the [Part] classes that are available in later versions of the library. * Templates that do not have values for all of the named parts will not be used. * The template list will be iterated through looking for the first template with all matching named * parts available, this will be selected for rendering the status. * <p> * To provide for backwards compatibility, you should provide one (or more) fallback templates which * use status parts from earlier versions of the API. e.g. TextPart, TimerPart & StopwatchPart * <p> * The status and part classes here use timestamps for updating the displayed representation of the * status, in cases when this is needed (chronometers), as returned by * {@link android.os.SystemClock#elapsedRealtime()} */ public final class Status implements TimeDependentText { @NonNull final List<CharSequence> mTemplates; @NonNull private final Map<String, StatusPart> mParts; /** * Abstract class to represent An Ongoing activity status or part of it. * <p> * Parts are used to create complex statuses, that may contain several timers, placeholders for * text, etc. They may also be used to convey information to the system about this Ongoing * Activity. */ public abstract static class Part implements TimeDependentText { // Hide constructor. Part() { } @Nullable StatusPart toVersionedParcelable() { return null; } @Nullable static Part fromVersionedParcelable(@Nullable StatusPart vp) { if (vp == null) { return null; } if (vp instanceof TextStatusPart) { return new TextPart((TextStatusPart) vp); } else if (vp instanceof TimerStatusPart) { TimerStatusPart tsp = (TimerStatusPart) vp; return tsp.mCountDown ? new TimerPart(tsp) : new StopwatchPart(tsp); } else { return null; } } } /** * An Ongoing activity status (or part of it) representing a plain, static text. * <p> * Available since wear-ongoing:1.0.0 */ public static final class TextPart extends Part { @NonNull private final TextStatusPart mPart; TextPart(@NonNull TextStatusPart part) { mPart = part; } /** * Create a Part representing a static text. */ public TextPart(@NonNull String str) { mPart = new TextStatusPart(str); } @Override @NonNull StatusPart toVersionedParcelable() { return mPart; } /** * See {@link TimeDependentText#getText(Context, long)} */ @NonNull @Override public CharSequence getText(@NonNull Context context, long timeNowMillis) { return mPart.getText(context, timeNowMillis); } /** * See {@link TimeDependentText#getNextChangeTimeMillis(long)} */ @Override public long getNextChangeTimeMillis(long fromTimeMillis) { return mPart.getNextChangeTimeMillis(fromTimeMillis); } @Override public int hashCode() { return mPart.hashCode(); } @Override public boolean equals(@Nullable Object obj) { if (!(obj instanceof TextPart)) return false; return mPart.equals(((TextPart) obj).mPart); } } /** * Base class for {@link TimerPart} and {@link StopwatchPart}, defines the getters but can't * be created directly, create one of those instead. */ public abstract static class TimerOrStopwatchPart extends Part { @NonNull private final TimerStatusPart mPart; TimerOrStopwatchPart(@NonNull TimerStatusPart part) { mPart = part; } /** * @return the time at which this Timer or Stopwatch will display 0, will usually be in the * past for a stopwatch and in the future for timers. */ public long getTimeZeroMillis() { return mPart.mTimeZeroMillis; } /** * @return {@code false} if this is a stopwatch or {@code true} if this is a timer. */ public boolean isCountDown() { return mPart.mCountDown; } /** * Determines if this Timer or Stopwatch is paused. i.e. the display representation will * not change over time. * * @return {@code true} if this is paused, {@code false} if it's running. */ public boolean isPaused() { return mPart.isPaused(); } /** * @return the timestamp of the time when this was paused. Use * {@link #isPaused()} to determine if this is paused or not. */ public long getPausedAtMillis() { return mPart.mPausedAtMillis; } /** * Determines if this has a total duration set. * * @return {@code true} if this the total duration was set, {@code false} if not. */ public boolean hasTotalDuration() { return mPart.mTotalDurationMillis >= 0L; } /** * @return the total duration of this timer/stopwatch, if set. Use * {@link #hasTotalDuration()} to determine if this has a duration set. */ public long getTotalDurationMillis() { return mPart.mTotalDurationMillis; } @Override @NonNull StatusPart toVersionedParcelable() { return mPart; } @Override public int hashCode() { return mPart.hashCode(); } @Override public boolean equals(@Nullable Object obj) { if (!(obj instanceof TimerOrStopwatchPart)) return false; return mPart.equals(((TimerOrStopwatchPart) obj).mPart); } /** * See {@link TimeDependentText#getText(Context, long)} */ @NonNull @Override public CharSequence getText(@NonNull Context context, long timeNowMillis) { return mPart.getText(context, timeNowMillis); } /** * See {@link TimeDependentText#getNextChangeTimeMillis(long)} */ @Override public long getNextChangeTimeMillis(long fromTimeMillis) { return mPart.getNextChangeTimeMillis(fromTimeMillis); } } /** * An Ongoing activity status (or part of it) representing a timer. * <p> * Available since wear-ongoing:1.0.0 */ public static final class TimerPart extends TimerOrStopwatchPart { TimerPart(@NonNull TimerStatusPart part) { super(part); } /** * Create a Part representing a timer. * * @param timeZeroMillis timestamp of the time at the future in which this Timer * should display 0. * @param pausedAtMillis timestamp of the time when this timer was paused. Or * {@code -1L} if this timer is running. * @param totalDurationMillis total duration of this timer, useful to display as a * progress bar or similar. */ public TimerPart(long timeZeroMillis, long pausedAtMillis, long totalDurationMillis) { super(new TimerStatusPart( timeZeroMillis, /* countDown = */ true, pausedAtMillis, totalDurationMillis )); } /** * Create a Part representing a timer. * * @param timeZeroMillis timestamp of the time at the future in which this Timer * should display 0. * @param pausedAtMillis timestamp of the time when this timer was paused. Or * {@code -1L} if this timer is running. */ public TimerPart(long timeZeroMillis, long pausedAtMillis) { this(timeZeroMillis, pausedAtMillis, TimerStatusPart.LONG_DEFAULT); } /** * Create a Part representing a timer. * * @param timeZeroMillis timestamp of the time at the future in which this Timer * should display 0. */ public TimerPart(long timeZeroMillis) { this(timeZeroMillis, TimerStatusPart.LONG_DEFAULT); } } /** * An Ongoing activity status (or part of it) representing a stopwatch * <p> * Available since wear-ongoing:1.0.0 */ public static final class StopwatchPart extends TimerOrStopwatchPart { StopwatchPart(@NonNull TimerStatusPart part) { super(part); } /** * Create a Part representing a stopwatch. * * @param timeZeroMillis timestamp of the time at which this stopwatch started * running. * @param pausedAtMillis timestamp of the time when this stopwatch was paused. Or * {@code -1L} if this stopwatch is running. * @param totalDurationMillis total duration of this stopwatch, useful to display as a * progress bar or similar. */ public StopwatchPart(long timeZeroMillis, long pausedAtMillis, long totalDurationMillis) { super(new TimerStatusPart( timeZeroMillis, /* countDown = */ false, pausedAtMillis, totalDurationMillis )); } /** * Create a Part representing a stopwatch. * * @param timeZeroMillis timestamp of the time at which this stopwatch started * running. * @param pausedAtMillis timestamp of the time when this stopwatch was paused. Or * {@code -1L} if this stopwatch is running. */ public StopwatchPart(long timeZeroMillis, long pausedAtMillis) { this(timeZeroMillis, pausedAtMillis, TimerStatusPart.LONG_DEFAULT); } /** * Create a Part representing a stopwatch. * * @param timeZeroMillis timestamp of the time at which this stopwatch started * running. */ public StopwatchPart(long timeZeroMillis) { this(timeZeroMillis, TimerStatusPart.LONG_DEFAULT); } } // Name of the {@link StatusPart} created when using {@link OngoingActivityStatus.forPart()} private static final String DEFAULT_STATUS_PART_NAME = "defaultStatusPartName"; // Basic constructor used by the Builder @VisibleForTesting Status( @Nullable List<CharSequence> templates, @NonNull Map<String, StatusPart> parts ) { mTemplates = templates; mParts = parts; } OngoingActivityStatus toVersionedParcelable() { return new OngoingActivityStatus(mTemplates, mParts); } static Status fromVersionedParcelable(OngoingActivityStatus vp) { return new Status(vp.mTemplates, vp.mParts); } /** * Convenience method for creating a Status with no template and a single Part. * * @param part The only Part that composes this status. * @return A new {@link Status} with just one Part. */ @NonNull public static Status forPart(@NonNull Part part) { // Create an OngoingActivityStatus using only this part and the default template. return new Status.Builder().addPart(DEFAULT_STATUS_PART_NAME, part).build(); } /** * Helper to Build OngoingActivityStatus instances. * * Templates can be specified, to specify how to render the parts and any surrounding * text/format. * If no template is specified, a default template that concatenates all parts separated * by space is used. */ public static final class Builder { private List<CharSequence> mTemplates = new ArrayList<>(); private CharSequence mDefaultTemplate = ""; private Map<String, StatusPart> mParts = new HashMap<>(); public Builder() { } /** * Add a template to use for this status. Placeholders can be defined with #name# * To produce a '#', use '##' in the template. * If multiple templates are specified, the first one (in the order they where added by * calling this method) that has all required fields is used. * If no template is specified, a default template that concatenates all parts separated * by space is used. * * @param template the template to be added * @return this builder, to chain calls. */ @NonNull public Builder addTemplate(@NonNull CharSequence template) { mTemplates.add(template); return this; } /** * Add a part to be inserted in the placeholders. * * @param name the name of this part. In the template, use this name surrounded by '#' * to reference it, e.g. here "track" and in the template "#track#" * @param part The part that will be rendered in the specified position/s in the template. * @return this builder, to chain calls. */ @NonNull @SuppressWarnings("MissingGetterMatchingBuilder") // We don't want a getter getParts() public Builder addPart(@NonNull String name, @NonNull Part part) { mParts.put(name, part.toVersionedParcelable()); mDefaultTemplate += (mDefaultTemplate.length() > 0 ? " " : "") + "#" + name + "#"; return this; } /** * Build an OngoingActivityStatus with the given parameters. * * @return the built OngoingActivityStatus */ @NonNull public Status build() { List<CharSequence> templates = mTemplates.isEmpty() ? Arrays.asList(mDefaultTemplate) : mTemplates; // Verify that the last template can be rendered by every SysUI. // Verify that all templates have all required parts. Map<String, CharSequence> base = new HashMap<>(); Map<String, CharSequence> all = new HashMap<>(); for (Map.Entry<String, StatusPart> me : mParts.entrySet()) { if (me.getValue() instanceof TextStatusPart || me.getValue() instanceof TimerStatusPart) { base.put(me.getKey(), ""); } all.put(me.getKey(), ""); } if (processTemplate(templates.get(templates.size() - 1), base) == null) { throw new IllegalStateException("For backwards compatibility reasons the last " + "templateThe should only use TextStatusPart & TimerStatusPart"); } for (CharSequence template : templates) { if (processTemplate(template, all) == null) { throw new IllegalStateException("The template \"" + template + "\" is missing" + " some parts for rendering."); } } return new Status(templates, mParts); } } /** * @return the list of templates that this status has. */ @NonNull public List<CharSequence> getTemplates() { return mTemplates; } /** * @return the names of the parts provide to this status. */ @NonNull public Set<String> getPartNames() { return Collections.unmodifiableSet(mParts.keySet()); } /** * Returns the value of the part with the given name. * * @param name the name to lookup. * @return the part with the given name, can be null. */ @Nullable public Part getPart(@NonNull String name) { return Part.fromVersionedParcelable(mParts.get(name)); } /** * Process a template and replace placeholders with the provided values. * Placeholders are named, delimited by '#'. For example: '#name#' * To produce a '#' in the output, use '##' in the template. * * @param template The template to use as base. * @param values The values to replace the placeholders in the template with. * @return The template with the placeholders replaced, or null if the template references a * value that it's not present (or null). */ @Nullable static CharSequence processTemplate(@NonNull CharSequence template, @NonNull Map<String, CharSequence> values) { SpannableStringBuilder ssb = new SpannableStringBuilder(template); int opening = -1; for (int i = 0; i < ssb.length(); i++) { if (ssb.charAt(i) == '#') { if (opening >= 0) { // Replace '##' with '#' // Replace '#varName#' with the value from the map. CharSequence replaceWith = opening == i - 1 ? "#" : values.get(ssb.subSequence(opening + 1, i).toString()); if (replaceWith == null) { return null; } ssb.replace(opening, i + 1, replaceWith); i = opening + replaceWith.length() - 1; opening = -1; } else { opening = i; } } } return ssb; } /** * Returns a textual representation of this status at the given time. The first template that * has all required information will be used, and each part will be used in their respective * placeholder/s. * * @param context may be used for internationalization. Only used while this method * executed. * @param timeNowMillis the timestamp of the time we want to display, usually now, as * @return the rendered text, for best compatibility, display using a TextView. */ @NonNull @Override public CharSequence getText(@NonNull Context context, long timeNowMillis) { Map<String, CharSequence> texts = new HashMap<>(); for (Map.Entry<String, StatusPart> me : mParts.entrySet()) { CharSequence text = me.getValue().getText(context, timeNowMillis); texts.put(me.getKey(), text); } for (CharSequence template : mTemplates) { CharSequence ret = processTemplate(template, texts); if (ret != null) { return ret; } } return ""; } /** * Returns the next time this status could have a different rendering. * There is no guarantee that the rendering will change at the returned time (for example, if * some information in the status is not rendered). * * @param fromTimeMillis current time, usually now as returned by * {@link android.os.SystemClock#elapsedRealtime()}. In most cases * {@code getText} and {@code getNextChangeTimeMillis} should be called * with the exact same timestamp, so changes are not missed. * @return the next time (counting from fromTimeMillis) that this status may produce a * different result when calling getText(). */ @Override public long getNextChangeTimeMillis(long fromTimeMillis) { long ret = Long.MAX_VALUE; for (StatusPart part : mParts.values()) { ret = Math.min(ret, part.getNextChangeTimeMillis(fromTimeMillis)); } return ret; } }
9,020
763
package org.batfish.datamodel.bgp.community; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertFalse; import com.google.common.testing.EqualsTester; import java.math.BigInteger; import org.apache.commons.lang3.SerializationUtils; import org.batfish.common.util.BatfishObjectMapper; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; /** Tests of {@link StandardCommunity} */ public class StandardCommunityTest { @Rule public ExpectedException _thrown = ExpectedException.none(); @Test public void testEquals() { StandardCommunity sc = StandardCommunity.of(1L); new EqualsTester() .addEqualityGroup(sc, sc, StandardCommunity.of(1L), StandardCommunity.of(0, 1)) .addEqualityGroup(StandardCommunity.of(2)) .addEqualityGroup(new Object()) .testEquals(); } @Test public void testBoundaryConditions() { assertThat(StandardCommunity.of(65535, 65535), equalTo(StandardCommunity.of(4294967295L))); } @Test public void testOfNegative() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.of(-1); } @Test public void testOfTooLarge() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.of(1L << 32); } @Test public void testOfTwoFirstNegative() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.of(-1, 2); } @Test public void testOfTwoSecondNegative() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.of(23, -1); } @Test public void testOfTwoFirstTooLarge() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.of(1 << 16, 1); } @Test public void testOfTwoSecondTooLarge() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.of(1, 1 << 16); } @Test public void testJavaSerialization() { assertThat(SerializationUtils.clone(StandardCommunity.of(1)), equalTo(StandardCommunity.of(1))); } @Test public void testJsonSerialization() { assertThat( BatfishObjectMapper.clone(StandardCommunity.of(1), StandardCommunity.class), equalTo(StandardCommunity.of(1))); } @Test public void testParse() { assertThat(StandardCommunity.parse("0:1"), equalTo(StandardCommunity.of(1))); assertThat(StandardCommunity.parse("1:1"), equalTo(StandardCommunity.of(65537))); } @Test public void testParseGarbage() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.parse("0:x"); } @Test public void testParseToMany() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.parse("1:1:1"); } @Test public void testParseFirstNegative() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.parse("-1:1"); } @Test public void testParseSecondNegative() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.parse("1:-1"); } @Test public void testParseFirstTooLarge() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.parse("65555:1"); } @Test public void testParseSecondTooLarge() { _thrown.expect(IllegalArgumentException.class); StandardCommunity.parse("1:65555"); } @Test public void testToString() { assertThat(StandardCommunity.of(1, 1).toString(), equalTo("1:1")); } @Test public void testMatchString() { StandardCommunity sc = StandardCommunity.parse("2:3"); assertThat(sc.toString(), equalTo("2:3")); assertThat(sc.matchString(), equalTo(sc.toString())); } @Test public void testNotTransitive() { assertFalse(StandardCommunity.of(1, 1).isTransitive()); } @Test public void testToBigInt() { assertThat(StandardCommunity.of(0).asBigInt(), equalTo(BigInteger.ZERO)); assertThat( StandardCommunity.of(65535, 65535).asBigInt(), equalTo(BigInteger.valueOf(4294967295L))); } @Test public void testAsLong() { StandardCommunity c = StandardCommunity.of(65535, 65534); assertThat(c.asLong(), equalTo((long) 65535 << 16 | 65534)); } @Test public void testHighAndLow() { StandardCommunity c = StandardCommunity.of(65535, 65534); assertThat(c.high(), equalTo(65535)); assertThat(c.low(), equalTo(65534)); } }
1,553
348
<gh_stars>100-1000 {"nom":"Fontaine-le-Comte","circ":"2ème circonscription","dpt":"Vienne","inscrits":3012,"abs":1621,"votants":1391,"blancs":100,"nuls":39,"exp":1252,"res":[{"nuance":"REM","nom":"<NAME>","voix":933},{"nuance":"LR","nom":"M. <NAME>","voix":319}]}
108
1,433
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #ifndef COMMON_RESPONSESTATEMENT_H #define COMMON_RESPONSESTATEMENT_H #include <string> #include <vector> #include <RCSResourceAttributes.h> namespace OC { class OCRepresentation; } namespace OIC { namespace Service { class RCSResourceAttributes; class ResponseStatement { public: static ResponseStatement create(const OC::OCRepresentation&); static ResponseStatement create(RCSResourceAttributes&&); explicit ResponseStatement(const RCSResourceAttributes&); explicit ResponseStatement(RCSResourceAttributes&&); ResponseStatement(RCSResourceAttributes&&, std::string&& uri, std::vector< std::string >&& resourceTypes, std::vector< std::string >&& resourceInterfaces); ResponseStatement(ResponseStatement&&) = default; ResponseStatement& operator=(ResponseStatement&&) = default; std::string getUri() const; std::vector< std::string > getResourceTypes() const; std::vector< std::string > getResourceInterfaces() const; const RCSResourceAttributes& getAttributes() const; private: RCSResourceAttributes m_attrs; std::string m_uri; std::vector< std::string > m_resourceTypes; std::vector< std::string > m_resourceInterfaces; }; } } #endif // COMMON_RESPONSESTATEMENT_H
783
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Villers-les-Pots","circ":"2ème circonscription","dpt":"Côte-d'Or","inscrits":784,"abs":441,"votants":343,"blancs":19,"nuls":14,"exp":310,"res":[{"nuance":"LR","nom":"<NAME>","voix":175},{"nuance":"REM","nom":"<NAME>","voix":135}]}
124
314
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" @class NSString; @interface IDEEntityIdentifier : NSObject <NSCopying> { unsigned long long _hashValue; int _sharedState; int _entityType; NSString *_entityName; NSString *_containerName; NSString *_entityGUID; } + (id)entityIdentifierFromEntityName:(id)arg1 entityType:(int)arg2 containerName:(id)arg3; + (id)entityIdentifierFromEntityName:(id)arg1 entityType:(int)arg2 containerName:(id)arg3 isShared:(BOOL)arg4; + (id)entityIdentifierFromGUID:(id)arg1 entityName:(id)arg2 entityType:(int)arg3 containerName:(id)arg4; + (id)entityIdentifierFromGUID:(id)arg1 entityName:(id)arg2 entityType:(int)arg3 containerName:(id)arg4 isShared:(BOOL)arg5; @property(readonly, copy) NSString *entityGUID; // @synthesize entityGUID=_entityGUID; @property(readonly) int entityType; // @synthesize entityType=_entityType; @property(readonly, copy) NSString *containerName; // @synthesize containerName=_containerName; @property(readonly, copy) NSString *entityName; // @synthesize entityName=_entityName; @property(readonly) int sharedState; // @synthesize sharedState=_sharedState; - (id)copyWithZone:(struct _NSZone *)arg1; - (BOOL)isSimilarToEntityIdentifier:(id)arg1; - (unsigned long long)hash; - (id)description; - (BOOL)isEqual:(id)arg1; - (id)initWithGUID:(id)arg1 entityName:(id)arg2 entityType:(int)arg3 containerName:(id)arg4 shared:(int)arg5; @end
562
933
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <emscripten/emscripten.h> #include "perfetto/base/logging.h" #include "perfetto/trace_processor/trace_processor.h" #include "src/trace_processor/rpc/rpc.h" namespace perfetto { namespace trace_processor { namespace { Rpc* g_trace_processor_rpc; // The buffer used to pass the request arguments. The caller (JS) decides how // big this buffer should be in the Initialize() call. uint8_t* g_req_buf; } // namespace // +---------------------------------------------------------------------------+ // | Exported functions called by the JS/TS running in the worker. | // +---------------------------------------------------------------------------+ extern "C" { // Returns the address of the allocated request buffer. uint8_t* EMSCRIPTEN_KEEPALIVE trace_processor_rpc_init(Rpc::RpcResponseFunction, uint32_t); uint8_t* trace_processor_rpc_init(Rpc::RpcResponseFunction resp_function, uint32_t req_buffer_size) { g_trace_processor_rpc = new Rpc(); // |resp_function| is a JS-bound function passed by wasm_bridge.ts. It will // call back into JavaScript. There the JS code will copy the passed // buffer with the response (a proto-encoded TraceProcessorRpc message) and // postMessage() it to the controller. See the comment in wasm_bridge.ts for // an overview of the JS<>Wasm callstack. g_trace_processor_rpc->SetRpcResponseFunction(resp_function); g_req_buf = new uint8_t[req_buffer_size]; return g_req_buf; } void EMSCRIPTEN_KEEPALIVE trace_processor_on_rpc_request(uint32_t); void trace_processor_on_rpc_request(uint32_t size) { g_trace_processor_rpc->OnRpcRequest(g_req_buf, size); } } // extern "C" } // namespace trace_processor } // namespace perfetto int main(int, char**) { // This is unused but is needed for the following reasons: // - We need the callMain() Emscripten JS helper function for traceconv (but // not for trace_processor). // - Newer versions of emscripten require that callMain is explicitly exported // via EXTRA_EXPORTED_RUNTIME_METHODS = ['callMain']. // - We have one set of EXTRA_EXPORTED_RUNTIME_METHODS for both // trace_processor.wasm (which does not need a main()) and traceconv (which // does). // - Without this main(), the Wasm bootstrap code will cause a JS error at // runtime when trying to load trace_processor.js. return 0; }
999
3,084
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: batclass_prepublish.h Abstract: This module defines pre-publish definations to be made available in DDK/SDK. N.B. This file must not be included when batclass.h defines BATTERY_MINIPORT_INFO_V1_1 type and BATTERY_CLASS_MINOR_VERSION_1. N.B. This code is provided "AS IS" without any expressed or implied warranty. --*/ //---------------------------------------------------------------------- Pragmas #pragma once //--------------------------------------------------------------------- Includes #include <batclass.h> //-------------------------------------------------- Would be Public Definitions #ifndef BATTERY_CLASS_MINOR_VERSION_1 typedef struct { USHORT MajorVersion; USHORT MinorVersion; PVOID Context; // Miniport context BCLASS_QUERY_TAG QueryTag; BCLASS_QUERY_INFORMATION QueryInformation; BCLASS_SET_INFORMATION SetInformation; BCLASS_QUERY_STATUS QueryStatus; BCLASS_SET_STATUS_NOTIFY SetStatusNotify; BCLASS_DISABLE_STATUS_NOTIFY DisableStatusNotify; PDEVICE_OBJECT Pdo; PUNICODE_STRING DeviceName; PDEVICE_OBJECT Fdo; } BATTERY_MINIPORT_INFO_V1_1, *PBATTERY_MINIPORT_INFO_V1_1; #define BATTERY_CLASS_MINOR_VERSION_1 0x0001 #endif // BATTERY_CLASS_MINOR_VERSION_1
700
303
<gh_stars>100-1000 {"id":8013,"line-1":"New Mexico","line-2":"United States","attribution":"©2016 DigitalGlobe, Landsat, NMRGIS, USDA Farm Service Agency","url":"https://www.google.com/maps/@33.773154,-106.895428,13z/data=!3m1!1e3"}
89
811
<reponame>mitsuhiko/lol-html<filename>tests/data/selector_matching/css3-modsel-78b-info.json { "description": "Selectors - NEGATED :last-child pseudo-class (css3-modsel-78b)", "selectors": { ".green": "css3-modsel-78b.expected0.html", ".t1 td:not(:last-child)": "css3-modsel-78b.expected1.html", "p > *:not(:last-child)": "css3-modsel-78b.expected2.html", "table.t1 td": "css3-modsel-78b.expected3.html" }, "src": "css3-modsel-78b.src.html" }
211
536
<filename>src/main/java/freemarker/core/BuiltInsWithLazyConditionals.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package freemarker.core; import java.util.ArrayList; import java.util.List; import freemarker.template.TemplateException; import freemarker.template.TemplateModel; final class BuiltInsWithLazyConditionals { /** * Behaves similarly to the ternary operator of Java. */ static class then_BI extends BuiltInWithParseTimeParameters { private Expression whenTrueExp; private Expression whenFalseExp; @Override TemplateModel _eval(Environment env) throws TemplateException { boolean lho = target.evalToBoolean(env); return (lho ? whenTrueExp : whenFalseExp).evalToNonMissing(env); } @Override void bindToParameters(List<Expression> parameters, Token openParen, Token closeParen) throws ParseException { if (parameters.size() != 2) { throw newArgumentCountException("requires exactly 2", openParen, closeParen); } whenTrueExp = parameters.get(0); whenFalseExp = parameters.get(1); } @Override protected Expression getArgumentParameterValue(final int argIdx) { switch (argIdx) { case 0: return whenTrueExp; case 1: return whenFalseExp; default: throw new IndexOutOfBoundsException(); } } @Override protected int getArgumentsCount() { return 2; } @Override protected List<Expression> getArgumentsAsList() { ArrayList<Expression> args = new ArrayList<>(2); args.add(whenTrueExp); args.add(whenFalseExp); return args; } @Override protected void cloneArguments(Expression cloneExp, String replacedIdentifier, Expression replacement, ReplacemenetState replacementState) { then_BI clone = (then_BI) cloneExp; clone.whenTrueExp = whenTrueExp.deepCloneWithIdentifierReplaced(replacedIdentifier, replacement, replacementState); clone.whenFalseExp = whenFalseExp.deepCloneWithIdentifierReplaced(replacedIdentifier, replacement, replacementState); } } private BuiltInsWithLazyConditionals() { // Not to be instantiated } static class switch_BI extends BuiltInWithParseTimeParameters { private List<Expression> parameters; @Override void bindToParameters(List<Expression> parameters, Token openParen, Token closeParen) throws ParseException { if (parameters.size() < 2) { throw newArgumentCountException("must have at least 2", openParen, closeParen); } this.parameters = parameters; } @Override protected List<Expression> getArgumentsAsList() { return parameters; } @Override protected int getArgumentsCount() { return parameters.size(); } @Override protected Expression getArgumentParameterValue(int argIdx) { return parameters.get(argIdx); } @Override protected void cloneArguments(Expression clone, String replacedIdentifier, Expression replacement, ReplacemenetState replacementState) { List<Expression> parametersClone = new ArrayList<>(parameters.size()); for (Expression parameter : parameters) { parametersClone.add(parameter .deepCloneWithIdentifierReplaced(replacedIdentifier, replacement, replacementState)); } ((switch_BI) clone).parameters = parametersClone; } @Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel targetValue = target.evalToNonMissing(env); List<Expression> parameters = this.parameters; int paramCnt = parameters.size(); for (int i = 0; i + 1 < paramCnt; i += 2) { Expression caseExp = parameters.get(i); TemplateModel caseValue = caseExp.evalToNonMissing(env); if (EvalUtil.compare( targetValue, target, EvalUtil.CMP_OP_EQUALS, "==", caseValue, caseExp, this, true, false, false, false, env)) { return parameters.get(i + 1).evalToNonMissing(env); } } if (paramCnt % 2 == 0) { throw new _MiscTemplateException(target, "The value before ?", key, "(case1, value1, case2, value2, ...) didn't match any of the " + "case parameters, and there was no default value parameter (an additional last parameter) " + "eithter. "); } return parameters.get(paramCnt - 1).evalToNonMissing(env); } } }
2,532
335
{ "word": "Genu", "definitions": [ "The knee.", "A part of certain structures resembling a knee, in particular a bend in the corpus callosum of mammals." ], "parts-of-speech": "Noun" }
86
1,968
<filename>include/mpg123/src/libmpg123/dct64_i486.c /* dct64_i486.c: DCT64, a plain C variant for i486 copyright 1998-2006 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.org initially written by <NAME> */ /* Discrete Cosine Tansform (DCT) for subband synthesis. * * This code is optimized for 80486. It should be compiled with gcc * 2.7.2 or higher. * * Note: This code does not give the necessary accuracy. Moreover, no * overflow test are done. * * (c) 1998 <NAME>. */ #include "mpg123lib_intern.h" #define COS_0_0 16403 #define COS_0_1 16563 #define COS_0_2 16890 #define COS_0_3 17401 #define COS_0_4 18124 #define COS_0_5 19101 #define COS_0_6 20398 #define COS_0_7 22112 #define COS_0_8 24396 #define COS_0_9 27503 #define COS_0_10 31869 #define COS_0_11 38320 #define COS_0_12 48633 #define COS_0_13 67429 #define COS_0_14 111660 #define COS_0_15 333906 #define COS_1_0 16463 #define COS_1_1 17121 #define COS_1_2 18577 #define COS_1_3 21195 #define COS_1_4 25826 #define COS_1_5 34756 #define COS_1_6 56441 #define COS_1_7 167154 #define COS_2_0 16704 #define COS_2_1 19704 #define COS_2_2 29490 #define COS_2_3 83981 #define COS_3_0 17733 #define COS_3_1 42813 #define COS_4_0 23170 #define SETOUT(out,n,expr) out[FIR_BUFFER_SIZE*(n)]=(expr) #define MULL(a,b) (((long long)(a)*(long long)(b)) >> 15) #define MUL(a,b) \ (\ ((!(b & 0x3F)) ? (((a)*(b >> 6)) >> 9) :\ ((!(b & 0x1F)) ? (((a)*(b >> 5)) >> 10) :\ ((!(b & 0x0F)) ? (((a)*(b >> 4)) >> 11) :\ ((!(b & 0x07)) ? (((a)*(b >> 3)) >> 12) :\ ((!(b & 0x03)) ? (((a)*(b >> 2)) >> 13) :\ ((!(b & 0x01)) ? (((a)*(b >> 1)) >> 14) :\ (((a)*(b )) >> 15)))))))) void dct64_1_486(int *out0,int *out1,int *b1,int *b2) { b1[0x00] = b2[0x00] + b2[0x1F]; b1[0x1F] = MUL((b2[0x00] - b2[0x1F]),COS_0_0); b1[0x01] = b2[0x01] + b2[0x1E]; b1[0x1E] = MUL((b2[0x01] - b2[0x1E]),COS_0_1); b1[0x02] = b2[0x02] + b2[0x1D]; b1[0x1D] = MUL((b2[0x02] - b2[0x1D]),COS_0_2); b1[0x03] = b2[0x03] + b2[0x1C]; b1[0x1C] = MUL((b2[0x03] - b2[0x1C]),COS_0_3); b1[0x04] = b2[0x04] + b2[0x1B]; b1[0x1B] = MUL((b2[0x04] - b2[0x1B]),COS_0_4); b1[0x05] = b2[0x05] + b2[0x1A]; b1[0x1A] = MUL((b2[0x05] - b2[0x1A]),COS_0_5); b1[0x06] = b2[0x06] + b2[0x19]; b1[0x19] = MUL((b2[0x06] - b2[0x19]),COS_0_6); b1[0x07] = b2[0x07] + b2[0x18]; b1[0x18] = MUL((b2[0x07] - b2[0x18]),COS_0_7); b1[0x08] = b2[0x08] + b2[0x17]; b1[0x17] = MUL((b2[0x08] - b2[0x17]),COS_0_8); b1[0x09] = b2[0x09] + b2[0x16]; b1[0x16] = MUL((b2[0x09] - b2[0x16]),COS_0_9); b1[0x0A] = b2[0x0A] + b2[0x15]; b1[0x15] = MUL((b2[0x0A] - b2[0x15]),COS_0_10); b1[0x0B] = b2[0x0B] + b2[0x14]; b1[0x14] = MUL((b2[0x0B] - b2[0x14]),COS_0_11); b1[0x0C] = b2[0x0C] + b2[0x13]; b1[0x13] = MUL((b2[0x0C] - b2[0x13]),COS_0_12); b1[0x0D] = b2[0x0D] + b2[0x12]; b1[0x12] = MULL((b2[0x0D] - b2[0x12]),COS_0_13); b1[0x0E] = b2[0x0E] + b2[0x11]; b1[0x11] = MULL((b2[0x0E] - b2[0x11]),COS_0_14); b1[0x0F] = b2[0x0F] + b2[0x10]; b1[0x10] = MULL((b2[0x0F] - b2[0x10]),COS_0_15); b2[0x00] = b1[0x00] + b1[0x0F]; b2[0x0F] = MUL((b1[0x00] - b1[0x0F]),COS_1_0); b2[0x01] = b1[0x01] + b1[0x0E]; b2[0x0E] = MUL((b1[0x01] - b1[0x0E]),COS_1_1); b2[0x02] = b1[0x02] + b1[0x0D]; b2[0x0D] = MUL((b1[0x02] - b1[0x0D]),COS_1_2); b2[0x03] = b1[0x03] + b1[0x0C]; b2[0x0C] = MUL((b1[0x03] - b1[0x0C]),COS_1_3); b2[0x04] = b1[0x04] + b1[0x0B]; b2[0x0B] = MUL((b1[0x04] - b1[0x0B]),COS_1_4); b2[0x05] = b1[0x05] + b1[0x0A]; b2[0x0A] = MUL((b1[0x05] - b1[0x0A]),COS_1_5); b2[0x06] = b1[0x06] + b1[0x09]; b2[0x09] = MUL((b1[0x06] - b1[0x09]),COS_1_6); b2[0x07] = b1[0x07] + b1[0x08]; b2[0x08] = MULL((b1[0x07] - b1[0x08]),COS_1_7); b2[0x10] = b1[0x10] + b1[0x1F]; b2[0x1F] = MUL((b1[0x1F] - b1[0x10]),COS_1_0); b2[0x11] = b1[0x11] + b1[0x1E]; b2[0x1E] = MUL((b1[0x1E] - b1[0x11]),COS_1_1); b2[0x12] = b1[0x12] + b1[0x1D]; b2[0x1D] = MUL((b1[0x1D] - b1[0x12]),COS_1_2); b2[0x13] = b1[0x13] + b1[0x1C]; b2[0x1C] = MUL((b1[0x1C] - b1[0x13]),COS_1_3); b2[0x14] = b1[0x14] + b1[0x1B]; b2[0x1B] = MUL((b1[0x1B] - b1[0x14]),COS_1_4); b2[0x15] = b1[0x15] + b1[0x1A]; b2[0x1A] = MUL((b1[0x1A] - b1[0x15]),COS_1_5); b2[0x16] = b1[0x16] + b1[0x19]; b2[0x19] = MUL((b1[0x19] - b1[0x16]),COS_1_6); b2[0x17] = b1[0x17] + b1[0x18]; b2[0x18] = MULL((b1[0x18] - b1[0x17]),COS_1_7); b1[0x00] = b2[0x00] + b2[0x07]; b1[0x07] = MUL((b2[0x00] - b2[0x07]),COS_2_0); b1[0x01] = b2[0x01] + b2[0x06]; b1[0x06] = MUL((b2[0x01] - b2[0x06]),COS_2_1); b1[0x02] = b2[0x02] + b2[0x05]; b1[0x05] = MUL((b2[0x02] - b2[0x05]),COS_2_2); b1[0x03] = b2[0x03] + b2[0x04]; b1[0x04] = MULL((b2[0x03] - b2[0x04]),COS_2_3); b1[0x08] = b2[0x08] + b2[0x0F]; b1[0x0F] = MUL((b2[0x0F] - b2[0x08]),COS_2_0); b1[0x09] = b2[0x09] + b2[0x0E]; b1[0x0E] = MUL((b2[0x0E] - b2[0x09]),COS_2_1); b1[0x0A] = b2[0x0A] + b2[0x0D]; b1[0x0D] = MUL((b2[0x0D] - b2[0x0A]),COS_2_2); b1[0x0B] = b2[0x0B] + b2[0x0C]; b1[0x0C] = MULL((b2[0x0C] - b2[0x0B]),COS_2_3); b1[0x10] = b2[0x10] + b2[0x17]; b1[0x17] = MUL((b2[0x10] - b2[0x17]),COS_2_0); b1[0x11] = b2[0x11] + b2[0x16]; b1[0x16] = MUL((b2[0x11] - b2[0x16]),COS_2_1); b1[0x12] = b2[0x12] + b2[0x15]; b1[0x15] = MUL((b2[0x12] - b2[0x15]),COS_2_2); b1[0x13] = b2[0x13] + b2[0x14]; b1[0x14] = MULL((b2[0x13] - b2[0x14]),COS_2_3); b1[0x18] = b2[0x18] + b2[0x1F]; b1[0x1F] = MUL((b2[0x1F] - b2[0x18]),COS_2_0); b1[0x19] = b2[0x19] + b2[0x1E]; b1[0x1E] = MUL((b2[0x1E] - b2[0x19]),COS_2_1); b1[0x1A] = b2[0x1A] + b2[0x1D]; b1[0x1D] = MUL((b2[0x1D] - b2[0x1A]),COS_2_2); b1[0x1B] = b2[0x1B] + b2[0x1C]; b1[0x1C] = MULL((b2[0x1C] - b2[0x1B]),COS_2_3); b2[0x00] = b1[0x00] + b1[0x03]; b2[0x03] = MUL((b1[0x00] - b1[0x03]),COS_3_0); b2[0x01] = b1[0x01] + b1[0x02]; b2[0x02] = MUL((b1[0x01] - b1[0x02]),COS_3_1); b2[0x04] = b1[0x04] + b1[0x07]; b2[0x07] = MUL((b1[0x07] - b1[0x04]),COS_3_0); b2[0x05] = b1[0x05] + b1[0x06]; b2[0x06] = MUL((b1[0x06] - b1[0x05]),COS_3_1); b2[0x08] = b1[0x08] + b1[0x0B]; b2[0x0B] = MUL((b1[0x08] - b1[0x0B]),COS_3_0); b2[0x09] = b1[0x09] + b1[0x0A]; b2[0x0A] = MUL((b1[0x09] - b1[0x0A]),COS_3_1); b2[0x0C] = b1[0x0C] + b1[0x0F]; b2[0x0F] = MUL((b1[0x0F] - b1[0x0C]),COS_3_0); b2[0x0D] = b1[0x0D] + b1[0x0E]; b2[0x0E] = MUL((b1[0x0E] - b1[0x0D]),COS_3_1); b2[0x10] = b1[0x10] + b1[0x13]; b2[0x13] = MUL((b1[0x10] - b1[0x13]),COS_3_0); b2[0x11] = b1[0x11] + b1[0x12]; b2[0x12] = MUL((b1[0x11] - b1[0x12]),COS_3_1); b2[0x14] = b1[0x14] + b1[0x17]; b2[0x17] = MUL((b1[0x17] - b1[0x14]),COS_3_0); b2[0x15] = b1[0x15] + b1[0x16]; b2[0x16] = MUL((b1[0x16] - b1[0x15]),COS_3_1); b2[0x18] = b1[0x18] + b1[0x1B]; b2[0x1B] = MUL((b1[0x18] - b1[0x1B]),COS_3_0); b2[0x19] = b1[0x19] + b1[0x1A]; b2[0x1A] = MUL((b1[0x19] - b1[0x1A]),COS_3_1); b2[0x1C] = b1[0x1C] + b1[0x1F]; b2[0x1F] = MUL((b1[0x1F] - b1[0x1C]),COS_3_0); b2[0x1D] = b1[0x1D] + b1[0x1E]; b2[0x1E] = MUL((b1[0x1E] - b1[0x1D]),COS_3_1); { int i; for(i=0;i<32;i+=4) { b1[i+0x00] = b2[i+0x00] + b2[i+0x01]; b1[i+0x01] = MUL((b2[i+0x00] - b2[i+0x01]),COS_4_0); b1[i+0x02] = b2[i+0x02] + b2[i+0x03]; b1[i+0x03] = MUL((b2[i+0x03] - b2[i+0x02]),COS_4_0); } } b1[0x02] += b1[0x03]; b1[0x06] += b1[0x07]; b1[0x04] += b1[0x06]; b1[0x06] += b1[0x05]; b1[0x05] += b1[0x07]; b1[0x0A] += b1[0x0B]; b1[0x0E] += b1[0x0F]; b1[0x0C] += b1[0x0E]; b1[0x0E] += b1[0x0D]; b1[0x0D] += b1[0x0F]; b1[0x12] += b1[0x13]; b1[0x16] += b1[0x17]; b1[0x14] += b1[0x16]; b1[0x16] += b1[0x15]; b1[0x15] += b1[0x17]; b1[0x1A] += b1[0x1B]; b1[0x1E] += b1[0x1F]; b1[0x1C] += b1[0x1E]; b1[0x1E] += b1[0x1D]; b1[0x1D] += b1[0x1F]; SETOUT(out0,16,b1[0x00]); SETOUT(out0,12,b1[0x04]); SETOUT(out0, 8,b1[0x02]); SETOUT(out0, 4,b1[0x06]); SETOUT(out0, 0,b1[0x01]); SETOUT(out1, 0,b1[0x01]); SETOUT(out1, 4,b1[0x05]); SETOUT(out1, 8,b1[0x03]); SETOUT(out1,12,b1[0x07]); b1[0x08] += b1[0x0C]; SETOUT(out0,14,b1[0x08]); b1[0x0C] += b1[0x0a]; SETOUT(out0,10,b1[0x0C]); b1[0x0A] += b1[0x0E]; SETOUT(out0, 6,b1[0x0A]); b1[0x0E] += b1[0x09]; SETOUT(out0, 2,b1[0x0E]); b1[0x09] += b1[0x0D]; SETOUT(out1, 2,b1[0x09]); b1[0x0D] += b1[0x0B]; SETOUT(out1, 6,b1[0x0D]); b1[0x0B] += b1[0x0F]; SETOUT(out1,10,b1[0x0B]); SETOUT(out1,14,b1[0x0F]); b1[0x18] += b1[0x1C]; SETOUT(out0,15,b1[0x10] + b1[0x18]); SETOUT(out0,13,b1[0x18] + b1[0x14]); b1[0x1C] += b1[0x1a]; SETOUT(out0,11,b1[0x14] + b1[0x1C]); SETOUT(out0, 9,b1[0x1C] + b1[0x12]); b1[0x1A] += b1[0x1E]; SETOUT(out0, 7,b1[0x12] + b1[0x1A]); SETOUT(out0, 5,b1[0x1A] + b1[0x16]); b1[0x1E] += b1[0x19]; SETOUT(out0, 3,b1[0x16] + b1[0x1E]); SETOUT(out0, 1,b1[0x1E] + b1[0x11]); b1[0x19] += b1[0x1D]; SETOUT(out1, 1,b1[0x11] + b1[0x19]); SETOUT(out1, 3,b1[0x19] + b1[0x15]); b1[0x1D] += b1[0x1B]; SETOUT(out1, 5,b1[0x15] + b1[0x1D]); SETOUT(out1, 7,b1[0x1D] + b1[0x13]); b1[0x1B] += b1[0x1F]; SETOUT(out1, 9,b1[0x13] + b1[0x1B]); SETOUT(out1,11,b1[0x1B] + b1[0x17]); SETOUT(out1,13,b1[0x17] + b1[0x1F]); SETOUT(out1,15,b1[0x1F]); } /* * the call via dct64 is a trick to force GCC to use * (new) registers for the b1,b2 pointer to the bufs[xx] field */ void dct64_i486(int *a,int *b,real *samples) { int bufs[64]; int i; #ifdef REAL_IS_FIXED #define TOINT(a) ((a) * 32768 / (int)REAL_FACTOR) for(i=0;i<32;i++) { bufs[i]=TOINT(samples[i]); } #else int *p = bufs; register double const scale = ((65536.0 * 32) + 1) * 65536.0; for(i=0;i<32;i++) { *((double *) (p++)) = scale + *samples++; /* beware on bufs overrun: 8B store from x87 */ } #endif dct64_1_486(a,b,bufs+32,bufs); }
6,636
5,169
{ "name": "FaceDetectSDK", "version": "0.0.3", "summary": "A face detect SDK to detect face acts, poses, landmarks.", "homepage": "https://g.hz.netease.com/MultiMediaiOS/FaceDetectSDK", "license": "MIT", "authors": { "shenqianqian": "<EMAIL>" }, "source": { "git": "https://g.hz.netease.com/MultiMediaiOS/FaceDetectSDK.git", "tag": "v0.0.3" }, "resources": "libFaceDetectSDK/face.model", "platforms": { "ios": "8.0" }, "requires_arc": true, "dependencies": { "OpenCV": [ "~> 3.1.0.1" ], "eigen": [ "~> 3.2.10" ] }, "public_header_files": "libFaceDetectSDK/**/*.h", "source_files": "libFaceDetectSDK/**/*.h", "vendored_libraries": "libFaceDetectSDK/*.a" }
337
460
#include "../../../src/network/socket/qabstractsocket_p.h"
23
1,916
<reponame>e-schumann/simbody<filename>SimTKcommon/Random/src/SFMT-params216091.h #ifndef SFMT_PARAMS216091_H #define SFMT_PARAMS216091_H #define POS1 627 #define SL1 11 #define SL2 3 #define SR1 10 #define SR2 1 #define MSK1 0xbff7bff7U #define MSK2 0xbfffffffU #define MSK3 0xbffffa7fU #define MSK4 0xffddfbfbU #define PARITY1 0xf8000001U #define PARITY2 0x89e80709U #define PARITY3 0x3bd2b64bU #define PARITY4 0x0c64b1e4U /* PARAMETERS FOR ALTIVEC */ #if defined(__APPLE__) /* For OSX */ #define ALTI_SL1 (vector unsigned int)(SL1, SL1, SL1, SL1) #define ALTI_SR1 (vector unsigned int)(SR1, SR1, SR1, SR1) #define ALTI_MSK (vector unsigned int)(MSK1, MSK2, MSK3, MSK4) #define ALTI_MSK64 \ (vector unsigned int)(MSK2, MSK1, MSK4, MSK3) #define ALTI_SL2_PERM \ (vector unsigned char)(3,21,21,21,7,0,1,2,11,4,5,6,15,8,9,10) #define ALTI_SL2_PERM64 \ (vector unsigned char)(3,4,5,6,7,29,29,29,11,12,13,14,15,0,1,2) #define ALTI_SR2_PERM \ (vector unsigned char)(7,0,1,2,11,4,5,6,15,8,9,10,17,12,13,14) #define ALTI_SR2_PERM64 \ (vector unsigned char)(15,0,1,2,3,4,5,6,17,8,9,10,11,12,13,14) #else /* For OTHER OSs(Linux?) */ #define ALTI_SL1 {SL1, SL1, SL1, SL1} #define ALTI_SR1 {SR1, SR1, SR1, SR1} #define ALTI_MSK {MSK1, MSK2, MSK3, MSK4} #define ALTI_MSK64 {MSK2, MSK1, MSK4, MSK3} #define ALTI_SL2_PERM {3,21,21,21,7,0,1,2,11,4,5,6,15,8,9,10} #define ALTI_SL2_PERM64 {3,4,5,6,7,29,29,29,11,12,13,14,15,0,1,2} #define ALTI_SR2_PERM {7,0,1,2,11,4,5,6,15,8,9,10,17,12,13,14} #define ALTI_SR2_PERM64 {15,0,1,2,3,4,5,6,17,8,9,10,11,12,13,14} #endif /* For OSX */ #define IDSTR "SFMT-216091:627-11-3-10-1:bff7bff7-bfffffff-bffffa7f-ffddfbfb" #endif /* SFMT_PARAMS216091_H */
1,042
15,577
#pragma once #include <Parsers/IParserBase.h> namespace DB { class ParserExplainQuery : public IParserBase { protected: const char * end; const char * getName() const override { return "EXPLAIN"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override; public: ParserExplainQuery(const char* end_) : end(end_) {} }; }
130
1,093
/* * Copyright 2015-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.integration.stomp.config; import static org.assertj.core.api.Assertions.assertThat; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.SmartLifecycle; import org.springframework.integration.endpoint.AbstractEndpoint; import org.springframework.integration.mapping.HeaderMapper; import org.springframework.integration.stomp.StompSessionManager; import org.springframework.integration.stomp.inbound.StompInboundChannelAdapter; import org.springframework.integration.support.SmartLifecycleRoleController; import org.springframework.integration.test.util.TestUtils; import org.springframework.messaging.MessageChannel; import org.springframework.messaging.MessageHandler; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; import org.springframework.util.MultiValueMap; /** * @author <NAME> * * @since 4.2 */ @SpringJUnitConfig @DirtiesContext public class StompAdaptersParserTests { @Autowired private StompSessionManager stompSessionManager; @Autowired private HeaderMapper<?> headerMapper; @Autowired @Qualifier("defaultInboundAdapter") private MessageChannel defaultInboundAdapterChannel; @Autowired private MessageChannel errorChannel; @Autowired private MessageChannel inboundChannel; @Autowired @Qualifier("defaultInboundAdapter.adapter") private StompInboundChannelAdapter defaultInboundAdapter; @Autowired private StompInboundChannelAdapter customInboundAdapter; @Autowired @Qualifier("defaultOutboundAdapter") private MessageChannel defaultOutboundAdapterChannel; @Autowired @Qualifier("defaultOutboundAdapter.handler") private MessageHandler defaultOutboundAdapterHandler; @Autowired @Qualifier("defaultOutboundAdapter.adapter") private AbstractEndpoint defaultOutboundAdapter; @Autowired private MessageChannel outboundChannel; @Autowired @Qualifier("customOutboundAdapter.handler") private MessageHandler customOutboundAdapterHandler; @Autowired @Qualifier("customOutboundAdapter") private AbstractEndpoint customOutboundAdapter; @Autowired private SmartLifecycleRoleController roleController; @Test public void testParsers() { assertThat(TestUtils.getPropertyValue(this.defaultInboundAdapter, "outputChannel")) .isSameAs(this.defaultInboundAdapterChannel); assertThat(TestUtils.getPropertyValue(this.defaultInboundAdapter, "stompSessionManager")) .isSameAs(this.stompSessionManager); assertThat(TestUtils.getPropertyValue(this.defaultInboundAdapter, "errorChannel")).isNull(); Object headerMapper = TestUtils.getPropertyValue(this.defaultInboundAdapter, "headerMapper"); assertThat(headerMapper).isNotNull(); assertThat(headerMapper).isNotSameAs(this.headerMapper); assertThat(TestUtils.getPropertyValue(this.defaultInboundAdapter, "payloadType", Class.class)) .isEqualTo(String.class); assertThat(TestUtils.getPropertyValue(this.defaultInboundAdapter, "autoStartup", Boolean.class)).isTrue(); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "outputChannel")) .isSameAs(this.inboundChannel); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "stompSessionManager")) .isSameAs(this.stompSessionManager); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "errorChannel")).isSameAs(this.errorChannel); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "destinations")) .isEqualTo(Collections.singleton("foo")); headerMapper = TestUtils.getPropertyValue(this.customInboundAdapter, "headerMapper"); assertThat(headerMapper).isNotNull(); assertThat(headerMapper).isNotSameAs(this.headerMapper); assertThat(TestUtils.getPropertyValue(headerMapper, "inboundHeaderNames", String[].class)) .isEqualTo(new String[]{"bar", "foo"}); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "payloadType", Class.class)) .isEqualTo(Integer.class); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "autoStartup", Boolean.class)).isFalse(); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "phase")).isEqualTo(200); assertThat(TestUtils.getPropertyValue(this.customInboundAdapter, "messagingTemplate.sendTimeout")) .isEqualTo(2000L); assertThat(TestUtils.getPropertyValue(this.defaultOutboundAdapterHandler, "stompSessionManager")) .isSameAs(this.stompSessionManager); headerMapper = TestUtils.getPropertyValue(this.defaultOutboundAdapterHandler, "headerMapper"); assertThat(headerMapper).isNotNull(); assertThat(headerMapper).isNotSameAs(this.headerMapper); assertThat(TestUtils.getPropertyValue(this.defaultOutboundAdapterHandler, "destinationExpression")).isNull(); assertThat(TestUtils.getPropertyValue(this.defaultOutboundAdapter, "handler")) .isSameAs(this.defaultOutboundAdapterHandler); assertThat(TestUtils.getPropertyValue(this.defaultOutboundAdapter, "inputChannel")) .isSameAs(this.defaultOutboundAdapterChannel); assertThat(TestUtils.getPropertyValue(this.defaultOutboundAdapter, "autoStartup", Boolean.class)).isTrue(); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapterHandler, "stompSessionManager")) .isSameAs(this.stompSessionManager); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapterHandler, "headerMapper")) .isSameAs(this.headerMapper); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapterHandler, "destinationExpression.literalValue")) .isEqualTo("baz"); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapter, "handler")) .isSameAs(this.customOutboundAdapterHandler); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapter, "inputChannel")) .isSameAs(this.outboundChannel); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapter, "autoStartup", Boolean.class)).isFalse(); assertThat(TestUtils.getPropertyValue(this.customOutboundAdapter, "phase")).isEqualTo(100); @SuppressWarnings("unchecked") MultiValueMap<String, SmartLifecycle> lifecycles = (MultiValueMap<String, SmartLifecycle>) TestUtils.getPropertyValue(this.roleController, "lifecycles", MultiValueMap.class); assertThat(lifecycles.containsKey("bar")).isTrue(); List<SmartLifecycle> bars = lifecycles.get("bar"); bars.contains(this.customInboundAdapter); assertThat(lifecycles.containsKey("foo")).isTrue(); bars.contains(this.customOutboundAdapter); } }
2,254
488
<reponame>ouankou/rose<filename>projects/RTC2/tests/c/pointer_example9.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define PTR_SIZE 100 #define PTR2_SIZE 10 unsigned int* fn1(unsigned int* input) { printf("input: %u\n", *input); printf("input: %u\n", *(input++)); return (unsigned int*)malloc(PTR_SIZE*sizeof(unsigned int)); } int main() { unsigned int *ptr = (unsigned int*)malloc(PTR_SIZE*sizeof(int)); unsigned int *ptr2 = (unsigned int*)malloc(PTR2_SIZE*sizeof(int)); unsigned int *ptr3 = (unsigned int*)malloc(PTR_SIZE*sizeof(unsigned int)); unsigned int *ptr5 = fn1(ptr3); for (unsigned int* temp = ptr5; temp < ptr5 + PTR_SIZE; temp++) { printf("%u\n", *temp); } free(ptr5); free(ptr3); free(ptr2); free(ptr); return 0; }
323
800
{ "navigationBarTitleText": "掘金", "enablePullDownRefresh": true, "usingComponents": { "postItemOne": "/components/postItemOne/postItemOne", "postItemTwo": "/components/postItemTwo/postItemTwo" } }
83
1,848
<filename>tests/headers/objc_interface_type.h // bindgen-flags: --objc-extern-crate -- -x objective-c // bindgen-osx-only @interface Foo @end struct FooStruct { Foo *foo; }; void fooFunc(Foo *foo); static const Foo *kFoo;
91
612
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from PIL import Image from PIL import ImageDraw from PIL import ImageFont import os, torch from pathlib import Path import torch.nn.functional as F import numpy as np def pil_loader(path, use_gray=False): # open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835) with open(str(path), 'rb') as f: with Image.open(f) as img: if use_gray: return img.convert('L') else : return img.convert('RGB') def get_font(): font_path = (Path(__file__).parent / '..' / '..' / '.fonts' / 'freefont' / 'FreeMono.ttf').resolve() assert font_path.exists(), 'Can not find : {:}'.format(font_path) return str( font_path ) def draw_image_by_points_major(_image, pts_A, pts_B, radius, color_A, color_B, crop, base_texts): if isinstance(_image, str): image = pil_loader(_image, False) else: image = _image assert isinstance(image, Image.Image), 'image type is not PIL.Image.Image' for pts in [pts_A, pts_B]: assert isinstance(pts, torch.Tensor) and (pts.shape[0] == 2 or pts.shape[0] == 3), 'input points are not correct : {:}'.format(pts) pts_A, pts_B = pts_A.clone(), pts_B.clone() num_points = pts_A.shape[1] visiable_points = [] for idx in range(num_points): if (pts_A.shape[0] == 2 or bool(pts_A[2,idx]>0.5)) and \ (pts_B.shape[0] == 2 or bool(pts_A[2,idx]>0.5)): visiable_points.append( True ) else: visiable_points.append( False ) visiable_points = torch.BoolTensor( visiable_points ) if crop: assert isinstance(crop, list) x1, y1, x2, y2 = int(crop[0]), int(crop[1]), int(crop[2]), int(crop[3]) image = image.crop((x1, y1, x2, y2)) pts_A[0, visiable_points] = pts_A[0, visiable_points] - x1 pts_A[1, visiable_points] = pts_A[1, visiable_points] - y1 pts_B[0, visiable_points] = pts_B[0, visiable_points] - x1 pts_B[1, visiable_points] = pts_B[1, visiable_points] - y1 image_A = image image_B = image_A.copy() draw_A = ImageDraw.Draw(image_A) draw_B = ImageDraw.Draw(image_B) #texts = ['baseline', 'SRT'] texts = base_texts for idx in range(num_points): if visiable_points[ idx ]: # draw hollow circle for pts, draw, color in zip([pts_A,pts_B], [draw_A, draw_B], [color_A,color_B]): px = (pts[0,idx]-radius, pts[1,idx]-radius, pts[0,idx]+radius, pts[1,idx]+radius) px = [float(x) for x in px] if radius > 0: draw.ellipse(px, fill=color, outline=color) if isinstance(texts, (list, tuple)) and len(texts) == 2: fontScale = int(min(image_A.size)/10.0) font = ImageFont.truetype(get_font(), fontScale) draw_A.text((10, 10), texts[0], fill=color_A, font=font) draw_B.text((10, 10), texts[1], fill=color_B, font=font) return image_A, image_B def draw_dualimage_by_points(image, pts_A, pts_B, radius, color_A, color_B, base_texts): if isinstance(image, str): # In this case, image is an image path. image = pil_loader(image, False) assert isinstance(image, Image.Image), 'image type is not PIL.Image.Image' for pts in [pts_A, pts_B]: assert isinstance(pts, torch.Tensor) and (pts.shape[0] == 2 or pts.shape[0] == 3), 'input points are not correct : {:}'.format(pts) pts_A, pts_B = pts_A.clone(), pts_B.clone() num_points = pts_A.shape[1] visiable_points = [] for idx in range(num_points): if (pts_A.shape[0] == 2 or bool(pts_A[2,idx]>0.5)) and \ (pts_B.shape[0] == 2 or bool(pts_A[2,idx]>0.5)): visiable_points.append( True ) else: visiable_points.append( False ) visiable_points = torch.BoolTensor( visiable_points ) finegrain = True if finegrain: owidth, oheight = image.size image = image.resize((owidth*8,oheight*8), Image.BICUBIC) pts_A[:2, visiable_points] = pts_A[:2, visiable_points] * 8.0 pts_B[:2, visiable_points] = pts_B[:2, visiable_points] * 8.0 radius = radius * 8 image_A = image image_B = image_A.copy() draw_A = ImageDraw.Draw(image_A) draw_B = ImageDraw.Draw(image_B) #texts = ['baseline', 'SRT'] texts = base_texts for idx in range(num_points): if visiable_points[ idx ]: # draw hollow circle for pts, draw, color in zip([pts_A,pts_B], [draw_A, draw_B], [color_A,color_B]): px = (pts[0,idx]-radius, pts[1,idx]-radius, pts[0,idx]+radius, pts[1,idx]+radius) px = [float(x) for x in px] if radius > 0: draw.ellipse(px, fill=color, outline=color) fontScale = int(min(image_A.size)/10.0) font = ImageFont.truetype(get_font(), fontScale) if texts is not None and isinstance(texts, (list,tuple)) and len(texts) == 2: draw_A.text((10, 10), texts[0], fill=color_A, font=font) draw_B.text((10, 10), texts[1], fill=color_B, font=font) if finegrain: image_A = image_A.resize((owidth,oheight), Image.BICUBIC) image_B = image_B.resize((owidth,oheight), Image.BICUBIC) return image_A, image_B def draw_image_by_points_minor(_image, pts_A, pts_B, radius, color_A, color_B, resz): image = pil_loader(_image, False) assert isinstance(image, Image.Image), 'image type is not PIL.Image.Image' for pts in [pts_A, pts_B]: assert isinstance(pts, np.ndarray) and (pts.shape[0] == 2 or pts.shape[0] == 3), 'input points are not correct : {:}'.format(pts) pts_A, pts_B = pts_A.copy(), pts_B.copy() num_points = pts_A.shape[1] visiable_points, ctr_xs, ctr_ys = [], [], [] for idx in range(num_points): if (pts_A.shape[0] == 2 or bool(pts_A[2,idx]>0.5)) and \ (pts_B.shape[0] == 2 or bool(pts_A[2,idx]>0.5)): visiable_points.append( True ) ctr_xs.append(pts_B[0,idx]) ctr_ys.append(pts_B[0,idx]) else: visiable_points.append( False ) visiable_points = torch.BoolTensor( visiable_points ) ctr_x, ctr_y = float(np.mean(ctr_xs)), float(np.mean(ctr_ys)) H, W = pts_B[1,:].max() - pts_B[1,:].min(), pts_B[0,:].max() - pts_B[0,:].min() H, W = float(H) * 1.1, float(W) * 1.1 x1, y1, x2, y2 = int(ctr_x-W/2), int(ctr_y-H/2), int(ctr_x+W/2), int(ctr_y+H/2) image = image.crop((x1, y1, x2, y2)) pts_A[0, visiable_points] = pts_A[0, visiable_points] - x1 pts_A[1, visiable_points] = pts_A[1, visiable_points] - y1 pts_B[0, visiable_points] = pts_B[0, visiable_points] - x1 pts_B[1, visiable_points] = pts_B[1, visiable_points] - y1 width, height = image.size image = image.resize((resz,resz), Image.BICUBIC) pts_A[0, visiable_points] = pts_A[0, visiable_points] * 1.0 / width * resz pts_A[1, visiable_points] = pts_A[1, visiable_points] * 1.0 / height * resz pts_B[0, visiable_points] = pts_B[0, visiable_points] * 1.0 / width * resz pts_B[1, visiable_points] = pts_B[1, visiable_points] * 1.0 / height * resz draw = ImageDraw.Draw(image) for idx in range(num_points): if visiable_points[ idx ]: # draw hollow circle for pts, draw, color in zip([pts_A,pts_B], [draw, draw], [color_A,color_B]): px = (pts[0,idx]-radius, pts[1,idx]-radius, pts[0,idx]+radius, pts[1,idx]+radius) px = [float(x) for x in px] if radius > 0: draw.ellipse(px, fill=color, outline=color) return image
3,194
32,544
<reponame>DBatOWL/tutorials package com.baeldung.streamcollectors; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import org.junit.Assert; import org.junit.Test; public class StreamGroupingByCollectorUnitTest { @Test public void givenListOfStrings_whenGroupingEqualStrings_thenUseCollectorsGroupingByToGroupEqualStringsAndCountOfOccurrences() { List<String> list = new ArrayList<>(Arrays.asList("Foo", "Bar", "Bar", "Foo", "Bar")); Map<String, Long> result = list.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting())); Assert.assertEquals(new Long(2), result.get("Foo")); Assert.assertEquals(new Long(3), result.get("Bar")); } @Test public void givenListOfStrings_whenGroupingEqualLengthStrings_thenUseCollectorsGroupingByConcurrentToGroupEqualLengthStringsAndCountOfOccurrences() { List<String> list = new ArrayList<>(Arrays.asList("Adam", "Bill", "Jack", "Joe", "Ian")); Map<Integer, Long> result = list.stream().collect(Collectors.groupingByConcurrent(String::length, Collectors.counting())); Assert.assertEquals(new Long(2), result.get(3)); Assert.assertEquals(new Long(3), result.get(4)); } @Test public void givenListOfEmployees_whenGroupingDepartmentId_thenUseCollectorsGroupingByDepartmentIdAndCountNumberOfEmployeesWithinEveryDepartment() { List<Employee> list = new ArrayList<>(Arrays.asList(new Employee(1, "Joe", 1), new Employee(2, "Josh", 1), new Employee(3, "Jamie", 2), new Employee(4, "Jim", 2), new Employee(5, "Jack", 2))); Map<Integer, Long> result = list.stream().collect(Collectors.groupingBy(Employee::getDepartmentId, Collectors.counting())); Assert.assertEquals(new Long(2), result.get(1)); Assert.assertEquals(new Long(3), result.get(2)); } static class Employee { Integer employeeId; String employeeName; Integer departmentId; Employee(Integer employeeId, String employeeName, Integer departmentId) { this.employeeId = employeeId; this.employeeName = employeeName; this.departmentId = departmentId; } public Integer getEmployeeId() { return employeeId; } public void setEmployeeId(Integer employeeId) { this.employeeId = employeeId; } public String getEmployeeName() { return employeeName; } public void setEmployeeName(String employeeName) { this.employeeName = employeeName; } public Integer getDepartmentId() { return departmentId; } public void setDepartmentId(Integer departmentId) { this.departmentId = departmentId; } } }
1,135
1,358
import builtins import io import sys import psutil import pytest from distributed.system import memory_limit def test_memory_limit(): limit = memory_limit() assert isinstance(limit, int) assert limit <= psutil.virtual_memory().total assert limit >= 1 def test_memory_limit_cgroups(monkeypatch): builtin_open = builtins.open def myopen(path, *args, **kwargs): if path == "/sys/fs/cgroup/memory/memory.limit_in_bytes": # Absurdly low, unlikely to match real value return io.StringIO("20") return builtin_open(path, *args, **kwargs) monkeypatch.setattr(builtins, "open", myopen) monkeypatch.setattr(sys, "platform", "linux") limit = memory_limit() assert limit == 20 def test_rlimit(): resource = pytest.importorskip("resource") # decrease memory limit by one byte new_limit = memory_limit() - 1 try: resource.setrlimit(resource.RLIMIT_RSS, (new_limit, new_limit)) assert memory_limit() == new_limit except OSError: pytest.skip("resource could not set the RSS limit")
413
8,092
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # import unittest from tempfile import NamedTemporaryFile from unittest import mock import pandas as pd import pytest pytestmark = pytest.mark.filterwarnings("ignore::DeprecationWarning") class TestMySqlToS3Operator(unittest.TestCase): @mock.patch("airflow.providers.amazon.aws.transfers.sql_to_s3.NamedTemporaryFile") @mock.patch("airflow.providers.amazon.aws.transfers.sql_to_s3.S3Hook") def test_execute_csv(self, mock_s3_hook, temp_mock): from airflow.providers.amazon.aws.transfers.mysql_to_s3 import MySQLToS3Operator query = "query" s3_bucket = "bucket" s3_key = "key" mock_dbapi_hook = mock.Mock() test_df = pd.DataFrame({'a': '1', 'b': '2'}, index=[0, 1]) get_pandas_df_mock = mock_dbapi_hook.return_value.get_pandas_df get_pandas_df_mock.return_value = test_df with NamedTemporaryFile() as f: temp_mock.return_value.__enter__.return_value.name = f.name op = MySQLToS3Operator( query=query, s3_bucket=s3_bucket, s3_key=s3_key, mysql_conn_id="mysql_conn_id", aws_conn_id="aws_conn_id", task_id="task_id", index=True, replace=True, header=True, pd_csv_kwargs={'index': False, 'header': False}, dag=None, ) op._get_hook = mock_dbapi_hook op.execute(None) mock_s3_hook.assert_called_once_with(aws_conn_id="aws_conn_id", verify=None) get_pandas_df_mock.assert_called_once_with(sql=query, parameters=None) temp_mock.assert_called_once_with(mode='r+', suffix=".csv") mock_s3_hook.return_value.load_file.assert_called_once_with( filename=f.name, key=s3_key, bucket_name=s3_bucket, replace=True, ) @mock.patch("airflow.providers.amazon.aws.transfers.sql_to_s3.NamedTemporaryFile") @mock.patch("airflow.providers.amazon.aws.transfers.sql_to_s3.S3Hook") def test_execute_parquet(self, mock_s3_hook, temp_mock): from airflow.providers.amazon.aws.transfers.mysql_to_s3 import MySQLToS3Operator query = "query" s3_bucket = "bucket" s3_key = "key" mock_dbapi_hook = mock.Mock() test_df = pd.DataFrame({'a': '1', 'b': '2'}, index=[0, 1]) get_pandas_df_mock = mock_dbapi_hook.return_value.get_pandas_df get_pandas_df_mock.return_value = test_df with NamedTemporaryFile() as f: temp_mock.return_value.__enter__.return_value.name = f.name op = MySQLToS3Operator( query=query, s3_bucket=s3_bucket, s3_key=s3_key, mysql_conn_id="mysql_conn_id", aws_conn_id="aws_conn_id", task_id="task_id", file_format="parquet", replace=False, dag=None, ) op._get_hook = mock_dbapi_hook op.execute(None) mock_s3_hook.assert_called_once_with(aws_conn_id="aws_conn_id", verify=None) get_pandas_df_mock.assert_called_once_with(sql=query, parameters=None) temp_mock.assert_called_once_with(mode='rb+', suffix=".parquet") mock_s3_hook.return_value.load_file.assert_called_once_with( filename=f.name, key=s3_key, bucket_name=s3_bucket, replace=False ) def test_fix_int_dtypes(self): from airflow.providers.amazon.aws.transfers.mysql_to_s3 import MySQLToS3Operator op = MySQLToS3Operator(query="query", s3_bucket="s3_bucket", s3_key="s3_key", task_id="task_id") dirty_df = pd.DataFrame({"strings": ["a", "b", "c"], "ints": [1, 2, None]}) op._fix_int_dtypes(df=dirty_df) assert dirty_df["ints"].dtype.kind == "i"
2,272
1,609
<reponame>kazuyaujihara/rdkit // // Copyright (c) 2018, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following // disclaimer in the documentation and/or other materials provided // with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Modified by <NAME>, March 2020 // #include <GraphMol/RDKitBase.h> #include <cmath> #include "CoulombMat.h" namespace RDKit { namespace Descriptors { void CoulombMat(const ROMol &mol, std::vector<std::vector<double>> &res, int confId) { PRECONDITION(mol.getNumConformers() >= 1, "molecule has no conformers"); unsigned int numAtoms = mol.getNumAtoms(); const auto conf = mol.getConformer(confId); res.resize(numAtoms); for (unsigned int i = 0; i < numAtoms; ++i) { res[i].resize(numAtoms); const auto at = mol.getAtomWithIdx(i); double Zi = at->getAtomicNum(); res[i][i] = 0.5 * pow(Zi, 2.4); const auto Pi = conf.getAtomPos(i); for (unsigned int j = 0; j < i; ++j) { const auto Pj = conf.getAtomPos(j); double Zj = mol.getAtomWithIdx(j)->getAtomicNum(); res[i][j] = res[j][i] = Zi * Zj / (Pi - Pj).length(); } } } } // namespace Descriptors } // namespace RDKit
838
389
# # The MIT License (MIT) # # Copyright (c) 2016 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # def leastsquares(x, y): ''' Example implementation of the Least Squares method for calculating a best-fit line through a set of points. Linear least squares Args: x: array of floats representing x values for each point y: array of floats representing y values for each point Returns: (float, float): representing the y-intercept and slope of the best-fit line Raises: ValueError: if the two arrays are not the same length ''' if len(x) != len(y): raise ValueError('Point arrays must be equal length') numberOfPoints = len(x) sumX = sum(x) sumY = sum(y) sumXYProduct = sum(x[i] * y[i] for i in range(numberOfPoints)) sumXSquared = sum(map(lambda a: a ** 2, x)) xBar = sumX / numberOfPoints yBar = sumY / numberOfPoints a1 = (numberOfPoints * sumXYProduct - sumX * sumY) / (numberOfPoints * sumXSquared - sumX ** 2) a0 = yBar - a1 * xBar return a0, a1 # example data x = (1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0) y = (0.5, 2.5, 2.0, 4.0, 3.5, 6.0, 5.5) print ("least squares fit ==> y = %.10f + %.10fx" % leastsquares(x, y))
770
2,698
<filename>app/src/main/java/io/pslab/communication/sensors/AD7718.java package io.pslab.communication.sensors; import android.util.Log; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; import io.pslab.communication.peripherals.SPI; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; /** * Created by Padmal on 5/3/17. */ public class AD7718 { private double VREF = 3.3; private int STATUS = 0; private int MODE = 1; private int ADCCON = 2; private int FILTER = 3; private int ADCDATA = 4; private int ADCOFFSET = 5; private int ADCGAIN = 6; private int IOCON = 7; private int TEST1 = 12; private int TEST2 = 13; private int ID = 15; // Bit definitions private int MODE_PD = 0; private int MODE_IDLE = 1; private int MODE_SINGLE = 2; private int MODE_CONT = 3; private int MODE_INT_ZEROCAL = 4; private int MODE_INT_FULLCAL = 5; private int MODE_SYST_ZEROCAL = 6; private int MODE_SYST_FULLCAL = 7; private int MODE_OSCPD = bitShift(1, 3); private int MODE_CHCON = bitShift(1, 4); private int MODE_REFSEL = bitShift(1, 5); private int MODE_NEGBUF = bitShift(1, 6); private int MODE_NOCHOP = bitShift(1, 7); private int CON_AIN1AINCOM = bitShift(0, 4); private int CON_AIN2AINCOM = bitShift(1, 4); private int CON_AIN3AINCOM = bitShift(2, 4); private int CON_AIN4AINCOM = bitShift(3, 4); private int CON_AIN5AINCOM = bitShift(4, 4); private int CON_AIN6AINCOM = bitShift(5, 4); private int CON_AIN7AINCOM = bitShift(6, 4); private int CON_AIN8AINCOM = bitShift(7, 4); private int CON_AIN1AIN2 = bitShift(8, 4); private int CON_AIN3AIN4 = bitShift(9, 4); private int CON_AIN5AIN6 = bitShift(10, 4); private int CON_AIN7AIN8 = bitShift(11, 4); private int CON_AIN2AIN2 = bitShift(12, 4); private int CON_AINCOMAINCOM = bitShift(13, 4); private int CON_REFINREFIN = bitShift(14, 4); private int CON_OPEN = bitShift(15, 4); private int CON_UNIPOLAR = bitShift(1, 3); private int CON_RANGE0 = 0; // +-20mV private int CON_RANGE1 = 1; // +-40mV private int CON_RANGE2 = 2; // +-80mV private int CON_RANGE3 = 3; // +-160mV private int CON_RANGE4 = 4; // +-320mV private int CON_RANGE5 = 5; // +-640mV private int CON_RANGE6 = 6; // +-1280mV private int CON_RANGE7 = 7; // +-2560mV private int gain = 1; private String[] CHAN_NAMES = { "AIN1AINCOM", "AIN2AINCOM", "AIN3AINCOM", "AIN4AINCOM", "AIN5AINCOM", "AIN6AINCOM", "AIN7AINCOM", "AIN8AINCOM" }; private SPI spi; private boolean caldone; private String cs; private final String TAG = "AD7718"; private HashMap<String, double[]> calibs = new HashMap<>(); private HashMap<String, double[]> caldata = new HashMap<>(); public AD7718(SPI spi) throws IOException { this.spi = spi; this.cs = "CS1"; // Populate Calibrations populateCalibrationMap(); // Set SPI Parameters spi.setParameters(2, 1, 0, 1, 1); writeRegister(FILTER, 20); writeRegister(MODE, MODE_SINGLE | MODE_CHCON | MODE_REFSEL); for (String key : calibs.keySet()) { double[] convertedList = new PolynomialFunction(calibs.get(key)).getCoefficients(); ArrayUtils.reverse(convertedList); caldata.put(key, convertedList); } } public void setCalibrationMap(HashMap<String, double[]> calibrationMap) { this.calibs = calibrationMap; } /** * Initiates calibration HashMap with default values */ private void populateCalibrationMap() { calibs.put("AIN1AINCOM", new double[]{ 8.220199e-05, -4.587100e-04, 1.001015e+00, -1.684517e-04}); calibs.put("AIN2AINCOM", new double[]{ 5.459186e-06, -1.749624e-05, 1.000268e+00, 1.907896e-04}); calibs.put("AIN3AINCOM", new double[]{ -3.455831e-06, 2.861689e-05, 1.000195e+00, 3.802349e-04}); calibs.put("AIN4AINCOM", new double[]{ 4.135213e-06, -1.973478e-05, 1.000277e+00, 2.115374e-04}); calibs.put("AIN5AINCOM", new double[]{ -1.250787e-07, -9.203838e-07, 1.000299e+00, -1.262684e-03}); calibs.put("AIN6AINCOM", new double[]{ 6.993123e-07, -1.563294e-06, 9.994211e-01, -4.596018e-03}); calibs.put("AIN7AINCOM", new double[]{ 3.911521e-07, -1.706405e-06, 1.002294e+00, -1.286302e-02}); calibs.put("AIN8AINCOM", new double[]{ 8.290843e-07, -7.129532e-07, 9.993159e-01, 3.307947e-03}); calibs.put("AIN9AINCOM", new double[]{ 7.652808e+00, 1.479229e+00, 2.832601e-01, 4.495232e-02}); } public void start() throws IOException { spi.setCS(cs, 0); } public void stop() throws IOException { spi.setCS(cs, 1); } public int send8(int val) throws IOException { return spi.send8(val); } private int send16(int val) throws IOException { return spi.send16(val); } private int readRegister(int reg) throws IOException { start(); int val = send16(0x4000 | (reg << 8)); stop(); val &= 0x00FF; return val; } private int readData() throws IOException { start(); int val = send16(0x4000 | (ADCDATA << 8)); val &= 0xFF; val <<= 16; val |= send16(0x0000); stop(); return val; } private int writeRegister(int reg, int value) throws IOException { start(); int val = send16((reg << 8) | value); stop(); return val; } public void internalCalibration(int chan) throws IOException, InterruptedException { start(); int val = send16((ADCCON << 8) | (chan << 4) | 7); // range=7 long start_time = System.currentTimeMillis(); caldone = false; val = send16((MODE << 8) | 4); while (!caldone) { Thread.sleep(500); caldone = (send16(0x4000 | (MODE << 8)) & 7) == 1; Log.d(TAG, String.format("Waiting for zero scale calibration... %.2f S, %s", (float) (System.currentTimeMillis() - start_time), caldone) ); } caldone = false; val = send16((MODE << 8) | 5); while (!caldone) { Thread.sleep(500); caldone = (send16(0x4000 | (MODE << 8)) & 7) == 1; Log.d(TAG, String.format("Waiting for full scale calibration... %.2f S, %s", (float) (System.currentTimeMillis() - start_time), caldone) ); } stop(); } public List readCalibration() throws IOException { start(); int off = send16(0x4000 | (ADCOFFSET << 8)); off &= 0xFF; off <<= 16; off |= send16(0x0000); int gn = send16(0x4000 | (ADCGAIN << 8)); gn &= 0xFF; gn <<= 16; gn |= send16(0x0000); stop(); return Arrays.asList(new int[]{off, gn}); } private void configADC(int adccon) throws IOException { writeRegister(ADCCON, adccon); // unipolar channels, range gain = 2 ^ (7 - adccon & 3); } public void printstat() throws IOException { int stat = readRegister(STATUS); String[] P = {"PLL LOCKED", "RES", "RES", "ADC ERROR", "RES", "CAL DONE", "RES", "READY"}; String[] N = {"PLL ERROR", "RES", "RES", "ADC OKAY", "RES", "CAL LOW", "RES", "NOT READY"}; StringBuilder sb = new StringBuilder(); for (int a = 0; a < 8; a++) { if ((stat & (1 << a)) == 1) { sb.append(P[a]); } else { sb.append(N[a]); } } Log.d(TAG, stat + ", " + sb.toString()); } private float convertUniPolar(float x) { return (float) (1.024 * VREF * x) / (gain * 2 ^ 24); } public float convertBipolar(float x) { return (float) (((x / (2 ^ 24)) - 1) * (1.024 * VREF) / (gain)); } private boolean startRead(String chan) throws IOException { List channels = Arrays.asList(CHAN_NAMES); if (channels.contains(chan)) { int channelID = channels.indexOf(chan); configADC(CON_RANGE7 | CON_UNIPOLAR | channelID << 4); writeRegister(MODE, MODE_SINGLE | MODE_CHCON | MODE_REFSEL); return true; } else { Log.d(TAG, "Invalid Channel Name. try AIN1AINCOM"); return false; } } private boolean fetchData(String chan) throws IOException, InterruptedException { while (true) { int stat = readRegister(STATUS); if ((stat & 0x80) == 1) { float data = readData(); data = convertUniPolar(data); List channelList = Collections.singletonList(chan); if ((int) channelList.get(3) > 4) { data = (data - 3.3f / 2) * 4; } PolynomialFunction function = new PolynomialFunction(caldata.get(chan)); return function.value(data) == 0; } else { Thread.sleep(100); Log.d(TAG, "Increase Delay"); } } } public boolean readVoltage(String channel) throws IOException, InterruptedException { if (startRead(channel)) { return false; } Thread.sleep(150); return fetchData(channel); } private boolean fetchRawData(String chan) throws IOException, InterruptedException { while (true) { int stat = readRegister(STATUS); if ((stat & 0x80) == 1) { float data = readData(); return convertUniPolar(data) == 1; } else { Thread.sleep(100); Log.d(TAG, "Increase Delay"); } } } public boolean readRawVoltage(String channel) throws IOException, InterruptedException { if (startRead(channel)) { return false; } Thread.sleep(150); return fetchRawData(channel); } private int bitShift(int y, int x) { return y << x; } }
5,091
3,200
<reponame>GuoSuiming/mindspore<gh_stars>1000+ /** * Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MINDSPORE_CCSRC_BACKEND_OPTIMIZER_ASCEND_IR_FISSION_TRANSDATA_SPLIT_H_ #define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_ASCEND_IR_FISSION_TRANSDATA_SPLIT_H_ #include <vector> #include <string> #include <utility> #include <memory> #include "backend/optimizer/common/pass.h" #include "ir/func_graph.h" #include "ir/anf.h" #include "backend/optimizer/common/helper.h" #include "backend/optimizer/common/optimizer.h" #include "backend/optimizer/ascend/ascend_helper.h" namespace mindspore { namespace opt { class TransDataSplit : public PatternProcessPass { public: explicit TransDataSplit(bool multigraph = true, const string &name = "trans_data_split") : PatternProcessPass(name, multigraph), kernel_select_(std::make_shared<KernelSelect>()) {} ~TransDataSplit() override = default; const BaseRef DefinePattern() const override; const AnfNodePtr Process(const FuncGraphPtr &func_graph, const AnfNodePtr &node, const EquivPtr &) const override; protected: CNodePtr DoSplit(const FuncGraphPtr &func_graph, const AnfNodePtr &node) const; bool IsFormatInvaild(const AnfNodePtr &node) const; KernelSelectPtr kernel_select_; }; } // namespace opt } // namespace mindspore #endif // MINDSPORE_CCSRC_BACKEND_OPTIMIZER_ASCEND_IR_FISSION_TRANSDATA_SPLIT_H_
684
49,076
<gh_stars>1000+ /** * Annotations denoting the roles of types or methods in the overall architecture * (at a conceptual, rather than implementation, level). * * <p>Intended for use by tools and aspects (making an ideal target for pointcuts). */ @NonNullApi @NonNullFields package org.springframework.stereotype; import org.springframework.lang.NonNullApi; import org.springframework.lang.NonNullFields;
116
389
<filename>gosu-core-api/src/main/java/gw/lang/ir/IRAbstractLoopStatement.java /* * Copyright 2014 Guide<NAME>, Inc. */ package gw.lang.ir; import gw.lang.UnstableAPI; import gw.lang.ir.statement.IRLoopStatement; import gw.lang.ir.statement.IRReturnStatement; @UnstableAPI public abstract class IRAbstractLoopStatement extends IRStatement implements IRLoopStatement { }
126
532
package ai.yue.library.test.webflux.aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.Signature; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import ai.yue.library.data.redis.client.Redis; import lombok.extern.slf4j.Slf4j; /** * @author ylyue * @version 创建时间:2017年10月14日 */ @Slf4j @Aspect @Component public class HttpAspect { @Autowired Redis redis; /** * HttpAspect请求切入点 */ public static final String POINTCUT = "@annotation(org.springframework.web.bind.annotation.RequestMapping)" + " || @annotation(org.springframework.web.bind.annotation.GetMapping)" + " || @annotation(org.springframework.web.bind.annotation.PostMapping)" + " || @annotation(org.springframework.web.bind.annotation.PutMapping)" + " || @annotation(org.springframework.web.bind.annotation.PatchMapping)" + " || @annotation(org.springframework.web.bind.annotation.DeleteMapping)"; @Pointcut(POINTCUT) public void pointcut() {} @Before("pointcut()") public void doVerifyBefore(JoinPoint joinPoint) { // 1. 参数校验 Signature signature = joinPoint.getSignature(); // 2. 开发环境-打印日志 // String ip = ServletUtils.getClientIP(); // String uri = request.getRequestURI(); // UserDTO user_info = null; // if (!uri.startsWith("/open")) { // user_info = UserUtils.getUser(request, redis, UserDTO.class); // } // log.info("ip={}", ip); // log.info("uri={}", uri); // log.info("user_info={}", user_info); // log.info("method={}", request.getMethod()); log.info("class_method={}", signature.getDeclaringTypeName() + "." + signature.getName() + "()"); } }
828
1,475
<filename>geode-core/src/main/java/org/apache/geode/management/internal/util/JsonUtil.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.geode.management.internal.util; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.fasterxml.jackson.databind.JsonNode; /** * This class contains utility methods for JSON (http://www.json.org/) which is used by classes used * for the Command Line Interface (CLI). * * @since GemFire 7.0 */ public class JsonUtil { public static boolean isPrimitiveOrWrapper(Class<?> klass) { return klass.isAssignableFrom(Byte.class) || klass.isAssignableFrom(byte.class) || klass.isAssignableFrom(Short.class) || klass.isAssignableFrom(short.class) || klass.isAssignableFrom(Integer.class) || klass.isAssignableFrom(int.class) || klass.isAssignableFrom(Long.class) || klass.isAssignableFrom(long.class) || klass.isAssignableFrom(Float.class) || klass.isAssignableFrom(float.class) || klass.isAssignableFrom(Double.class) || klass.isAssignableFrom(double.class) || klass.isAssignableFrom(Boolean.class) || klass.isAssignableFrom(boolean.class) || klass.isAssignableFrom(Character.class) || klass.isAssignableFrom(char.class) || klass.isAssignableFrom(String.class); } public static List<String> toStringList(JsonNode jsonArray) { if (!jsonArray.isArray()) { return Collections.emptyList(); } List<String> result = new ArrayList<>(); for (JsonNode node : jsonArray) { result.add(node.asText()); } return result; } }
783
579
#include "transport.h" #include "util/huge_alloc.h" namespace erpc { Transport::Transport(TransportType transport_type, uint8_t rpc_id, uint8_t phy_port, size_t numa_node, FILE *trace_file) : transport_type_(transport_type), rpc_id_(rpc_id), phy_port_(phy_port), numa_node_(numa_node), trace_file_(trace_file) {} Transport::~Transport() {} } // namespace erpc
190
1,682
/* Copyright (c) 2012 LinkedIn Corp. 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. */ /* $Id$ */ package test.r2.message; import com.linkedin.common.callback.Callback; import com.linkedin.data.ByteString; import com.linkedin.r2.message.Messages; import com.linkedin.r2.message.rest.RestMethod; import com.linkedin.r2.message.rest.RestRequest; import com.linkedin.r2.message.rest.RestRequestBuilder; import com.linkedin.r2.message.rest.RestResponse; import com.linkedin.r2.message.rest.RestResponseBuilder; import com.linkedin.r2.message.stream.StreamRequest; import com.linkedin.r2.message.stream.StreamRequestBuilder; import com.linkedin.r2.message.stream.StreamResponse; import com.linkedin.r2.message.stream.StreamResponseBuilder; import com.linkedin.r2.message.stream.entitystream.ByteStringWriter; import com.linkedin.r2.message.stream.entitystream.EntityStreams; import org.testng.Assert; import org.testng.annotations.Test; import java.net.URI; /** * @author <NAME> * @version $Revision$ */ public class TestBuilders { @Test public void testChainBuildRestRequestFromRestRequestBuilder() { final RestRequest req = new RestRequestBuilder(URI.create("test")) .setEntity(new byte[] {1,2,3,4}) .setHeader("k1", "v1") .setMethod(RestMethod.PUT) .build() .builder() .setEntity(new byte[] {5,6,7,8}) .setHeader("k2", "v2") .setMethod(RestMethod.POST) .setURI(URI.create("anotherURI")) .build(); Assert.assertEquals(new byte[] {5,6,7,8}, req.getEntity().copyBytes()); Assert.assertEquals("v1", req.getHeader("k1")); Assert.assertEquals("v2", req.getHeader("k2")); Assert.assertEquals(RestMethod.POST, req.getMethod()); Assert.assertEquals(URI.create("anotherURI"), req.getURI()); } @Test public void testChainBuildRestResponseFromRestResponseBuilder() { final RestResponse res = new RestResponseBuilder() .setEntity(new byte[] {1,2,3,4}) .setHeader("k1", "v1") .setStatus(300) .build() .builder() .setEntity(new byte[] {5,6,7,8}) .setHeader("k2", "v2") .setStatus(400) .build(); Assert.assertEquals(new byte[] {5,6,7,8}, res.getEntity().copyBytes()); Assert.assertEquals("v1", res.getHeader("k1")); Assert.assertEquals("v2", res.getHeader("k2")); Assert.assertEquals(400, res.getStatus()); } @Test public void testChainBuildStreamRequestFromStreamRequestBuilder() { final StreamRequest req = new StreamRequestBuilder(URI.create("test")) .setHeader("k1", "v1") .setMethod(RestMethod.PUT) .build(EntityStreams.newEntityStream(new ByteStringWriter(ByteString.copy(new byte[] {1,2,3,4})))) .builder() .setHeader("k2", "v2") .setMethod(RestMethod.POST) .setURI(URI.create("anotherURI")) .build(EntityStreams.newEntityStream(new ByteStringWriter(ByteString.copy(new byte[] {5,6,7,8})))); Messages.toRestRequest(req, new Callback<RestRequest>() { @Override public void onError(Throwable e) { Assert.fail(); } @Override public void onSuccess(RestRequest result) { Assert.assertEquals(new byte[] {5,6,7,8}, result.getEntity().copyBytes()); Assert.assertEquals("v1", req.getHeader("k1")); Assert.assertEquals("v2", req.getHeader("k2")); Assert.assertEquals(RestMethod.POST, req.getMethod()); Assert.assertEquals(URI.create("anotherURI"), req.getURI()); } }); } @Test public void testChainBuildStreamResponseFromStreamResponseBuilder() { final StreamResponse res = new StreamResponseBuilder() .setHeader("k1", "v1") .setStatus(300) .build(EntityStreams.newEntityStream(new ByteStringWriter(ByteString.copy(new byte[] {1,2,3,4})))) .builder() .setHeader("k2", "v2") .setStatus(400) .build(EntityStreams.newEntityStream(new ByteStringWriter(ByteString.copy(new byte[] {5,6,7,8})))); Messages.toRestResponse(res, new Callback<RestResponse>() { @Override public void onError(Throwable e) { Assert.fail(); } @Override public void onSuccess(RestResponse result) { Assert.assertEquals(new byte[] {5,6,7,8}, result.getEntity().copyBytes()); Assert.assertEquals("v1", res.getHeader("k1")); Assert.assertEquals("v2", res.getHeader("k2")); Assert.assertEquals(400, res.getStatus()); } }); } }
1,980
1,338
/* * Copyright 2006, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef NET_STAT_H #define NET_STAT_H #include <OS.h> #include <sys/socket.h> #define NET_STAT_SOCKET 1 #define NET_STAT_PROTOCOL 2 typedef struct net_stat { int family; int type; int protocol; char state[B_OS_NAME_LENGTH]; team_id owner; struct sockaddr_storage address; struct sockaddr_storage peer; size_t receive_queue_size; size_t send_queue_size; } net_stat; #endif // NET_STAT_H
214
3,139
package com.jme3.shadow; /* * Copyright (c) 2009-2021 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'jMonkeyEngine' nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ import com.jme3.asset.AssetManager; import com.jme3.export.InputCapsule; import com.jme3.export.JmeExporter; import com.jme3.export.JmeImporter; import com.jme3.export.OutputCapsule; import com.jme3.light.DirectionalLight; import com.jme3.material.Material; import com.jme3.math.ColorRGBA; import com.jme3.math.Vector2f; import com.jme3.math.Vector3f; import com.jme3.renderer.Camera; import com.jme3.renderer.queue.GeometryList; import com.jme3.renderer.queue.RenderQueue; import com.jme3.scene.Node; import com.jme3.scene.Spatial; import java.io.IOException; /** * DirectionalLightShadowRenderer renderer use Parallel Split Shadow Mapping * technique (pssm)<br> It splits the view frustum in several parts and compute * a shadow map for each one.<br> splits are distributed so that the closer they * are from the camera, the smaller they are to maximize the resolution used of * the shadow map.<br> This results in a better quality shadow than standard * shadow mapping.<br> for more information on this read <a * href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html">http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html</a><br> * * @author <NAME> aka Nehon * @author reden - phr00t - https://github.com/phr00t * @author <NAME> - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a> */ public class DirectionalLightShadowRendererVR extends AbstractShadowRendererVR { protected float lambda = 0.65f; protected Camera shadowCam; protected ColorRGBA splits; protected float[] splitsArray; protected DirectionalLight light; protected Vector3f[] points = new Vector3f[8]; //Holding the info for fading shadows in the far distance private boolean stabilize = true; /** * Used for serialization use * DirectionalLightShadowRenderer#DirectionalLightShadowRenderer(AssetManager * assetManager, int shadowMapSize, int nbSplits) */ public DirectionalLightShadowRendererVR() { super(); } /** * Create a DirectionalLightShadowRenderer More info on the technique at <a * href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html">http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html</a> * * @param assetManager the application asset manager * @param shadowMapSize the size of the rendered shadowmaps (512,1024,2048, * etc...) * @param nbSplits the number of shadow maps rendered (the more shadow maps * the more quality, the less fps). */ public DirectionalLightShadowRendererVR(AssetManager assetManager, int shadowMapSize, int nbSplits) { super(assetManager, shadowMapSize, nbSplits); init(nbSplits, shadowMapSize); } private void init(int nbSplits, int shadowMapSize) { nbShadowMaps = Math.max(Math.min(nbSplits, 4), 1); if (nbShadowMaps != nbSplits) { throw new IllegalArgumentException("Number of splits must be between 1 and 4. Given value : " + nbSplits); } splits = new ColorRGBA(); splitsArray = new float[nbSplits + 1]; shadowCam = new Camera(shadowMapSize, shadowMapSize); shadowCam.setParallelProjection(true); for (int i = 0; i < points.length; i++) { points[i] = new Vector3f(); } } @Override protected void initFrustumCam() { //nothing to do } /** * return the light used to cast shadows * @return the DirectionalLight */ public DirectionalLight getLight() { return light; } /** * Sets the light to use to cast shadows * @param light a DirectionalLight */ public void setLight(DirectionalLight light) { this.light = light; } @Override protected void updateShadowCams(Camera viewCam) { float zFar = zFarOverride; if (zFar == 0) { zFar = viewCam.getFrustumFar(); } //We prevent computing the frustum points and splits with zeroed or negative near clip value float frustumNear = Math.max(viewCam.getFrustumNear(), 0.001f); ShadowUtil.updateFrustumPoints(viewCam, frustumNear, zFar, 1.0f, points); //shadowCam.setDirection(direction); shadowCam.getRotation().lookAt(light.getDirection(), shadowCam.getUp()); shadowCam.update(); shadowCam.updateViewProjection(); PssmShadowUtil.updateFrustumSplits(splitsArray, frustumNear, zFar, lambda); // in parallel projection shadow position goe from 0 to 1 if(viewCam.isParallelProjection()){ for (int i = 0; i < nbShadowMaps; i++) { splitsArray[i] = splitsArray[i]/(zFar- frustumNear); } } switch (splitsArray.length) { case 5: splits.a = splitsArray[4]; case 4: splits.b = splitsArray[3]; case 3: splits.g = splitsArray[2]; case 2: case 1: splits.r = splitsArray[1]; break; } } @Override protected GeometryList getOccludersToRender(int shadowMapIndex, GeometryList shadowMapOccluders) { // update frustum points based on current camera and split ShadowUtil.updateFrustumPoints(viewPort.getCamera(), splitsArray[shadowMapIndex], splitsArray[shadowMapIndex + 1], 1.0f, points); //Updating shadow cam with current split frusta if (lightReceivers.size()==0) { for (Spatial scene : viewPort.getScenes()) { ShadowUtil.getGeometriesInCamFrustum(scene, viewPort.getCamera(), RenderQueue.ShadowMode.Receive, lightReceivers); } } ShadowUtil.updateShadowCamera(viewPort, lightReceivers, shadowCam, points, shadowMapOccluders, stabilize?shadowMapSize:0); return shadowMapOccluders; } @Override protected void getReceivers(GeometryList lightReceivers) { if (lightReceivers.size()==0) { for (Spatial scene : viewPort.getScenes()) { ShadowUtil.getGeometriesInCamFrustum(scene, viewPort.getCamera(), RenderQueue.ShadowMode.Receive, lightReceivers); } } } @Override protected Camera getShadowCam(int shadowMapIndex) { return shadowCam; } @Override protected void doDisplayFrustumDebug(int shadowMapIndex) { ((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex)); ShadowUtil.updateFrustumPoints2(shadowCam, points); ((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex)); } @Override protected void setMaterialParameters(Material material) { material.setColor("Splits", splits); material.setVector3("LightDir", light.getDirection()); if (fadeInfo != null) { material.setVector2("FadeInfo", fadeInfo); } } @Override protected void clearMaterialParameters(Material material) { material.clearParam("Splits"); material.clearParam("FadeInfo"); material.clearParam("LightDir"); } /** * returns the lambda parameter see #setLambda(float lambda) * * @return lambda */ public float getLambda() { return lambda; } /** * Adjust the repartition of the different shadow maps in the shadow extend * usually goes from 0.0 to 1.0 * a low value give a more linear repartition resulting in a constant quality in the shadow over the extends, but near shadows could look very jagged * a high value give a more logarithmic repartition resulting in a high quality for near shadows, but the quality quickly decrease over the extend. * the default value is set to 0.65f (theoretic optimal value). * @param lambda the lambda value. */ public void setLambda(float lambda) { this.lambda = lambda; } /** * Check if the stabilization is enabled. * @return <code>true</code> if stabilization is enabled and <code>false</code> otherwise. */ public boolean isEnabledStabilization() { return stabilize; } /** * Enables the stabilization of the shadow's edges. (default is true) * This prevents shadow edges from flickering when the camera moves. * However it can lead to some shadow quality loss in some particular scenes. * @param stabilize <code>true</code> if stabilization has to be enabled and <code>false</code> otherwise. */ public void setEnabledStabilization(boolean stabilize) { this.stabilize = stabilize; } @Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); lambda = ic.readFloat("lambda", 0.65f); zFarOverride = ic.readInt("zFarOverride", 0); light = (DirectionalLight) ic.readSavable("light", null); fadeInfo = (Vector2f) ic.readSavable("fadeInfo", null); fadeLength = ic.readFloat("fadeLength", 0f); init(nbShadowMaps, (int) shadowMapSize); } @Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule oc = ex.getCapsule(this); oc.write(lambda, "lambda", 0.65f); oc.write(zFarOverride, "zFarOverride", 0); oc.write(light, "light", null); oc.write(fadeInfo, "fadeInfo", null); oc.write(fadeLength, "fadeLength", 0f); } /** * Directional light is always in the view frustum * @param viewCam * @return true */ @Override protected boolean checkCulling(Camera viewCam) { return true; } }
4,595
9,516
<gh_stars>1000+ import copy import torch.nn as nn import dgl from modules import MemoryModule, MemoryOperation, MsgLinkPredictor, TemporalTransformerConv, TimeEncode class TGN(nn.Module): def __init__(self, edge_feat_dim, memory_dim, temporal_dim, embedding_dim, num_heads, num_nodes, n_neighbors=10, memory_updater_type='gru', layers=1): super(TGN, self).__init__() self.memory_dim = memory_dim self.edge_feat_dim = edge_feat_dim self.temporal_dim = temporal_dim self.embedding_dim = embedding_dim self.num_heads = num_heads self.n_neighbors = n_neighbors self.memory_updater_type = memory_updater_type self.num_nodes = num_nodes self.layers = layers self.temporal_encoder = TimeEncode(self.temporal_dim) self.memory = MemoryModule(self.num_nodes, self.memory_dim) self.memory_ops = MemoryOperation(self.memory_updater_type, self.memory, self.edge_feat_dim, self.temporal_encoder) self.embedding_attn = TemporalTransformerConv(self.edge_feat_dim, self.memory_dim, self.temporal_encoder, self.embedding_dim, self.num_heads, layers=self.layers, allow_zero_in_degree=True) self.msg_linkpredictor = MsgLinkPredictor(embedding_dim) def embed(self, postive_graph, negative_graph, blocks): emb_graph = blocks[0] emb_memory = self.memory.memory[emb_graph.ndata[dgl.NID], :] emb_t = emb_graph.ndata['timestamp'] embedding = self.embedding_attn(emb_graph, emb_memory, emb_t) emb2pred = dict( zip(emb_graph.ndata[dgl.NID].tolist(), emb_graph.nodes().tolist())) # Since postive graph and negative graph has same is mapping feat_id = [emb2pred[int(n)] for n in postive_graph.ndata[dgl.NID]] feat = embedding[feat_id] pred_pos, pred_neg = self.msg_linkpredictor( feat, postive_graph, negative_graph) return pred_pos, pred_neg def update_memory(self, subg): new_g = self.memory_ops(subg) self.memory.set_memory(new_g.ndata[dgl.NID], new_g.ndata['memory']) self.memory.set_last_update_t( new_g.ndata[dgl.NID], new_g.ndata['timestamp']) # Some memory operation wrappers def detach_memory(self): self.memory.detach_memory() def reset_memory(self): self.memory.reset_memory() def store_memory(self): memory_checkpoint = {} memory_checkpoint['memory'] = copy.deepcopy(self.memory.memory) memory_checkpoint['last_t'] = copy.deepcopy(self.memory.last_update_t) return memory_checkpoint def restore_memory(self, memory_checkpoint): self.memory.memory = memory_checkpoint['memory'] self.memory.last_update_time = memory_checkpoint['last_t']
1,830
350
package com.github.penfeizhou.animation.webp.decode; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import com.github.penfeizhou.animation.decode.Frame; import com.github.penfeizhou.animation.io.Reader; import com.github.penfeizhou.animation.io.Writer; import java.io.IOException; /** * @Description: StillFrame * @Author: pengfei.zhou * @CreateDate: 2019-05-13 */ public class StillFrame extends Frame { public StillFrame(Reader reader, int width, int height) { super(reader); this.frameWidth = width; this.frameHeight = height; } @Override public Bitmap draw(Canvas canvas, Paint paint, int sampleSize, Bitmap reusedBitmap, Writer writer) { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = false; options.inSampleSize = sampleSize; options.inMutable = true; options.inBitmap = reusedBitmap; Bitmap bitmap = null; try { try { bitmap = BitmapFactory.decodeStream(reader.toInputStream(), null, options); } catch (IllegalArgumentException e) { e.printStackTrace(); // Problem decoding into existing bitmap when on Android 4.2.2 & 4.3 BitmapFactory.Options optionsFixed = new BitmapFactory.Options(); optionsFixed.inJustDecodeBounds = false; optionsFixed.inSampleSize = sampleSize; optionsFixed.inMutable = true; bitmap = BitmapFactory.decodeStream(reader.toInputStream(), null, optionsFixed); } assert bitmap != null; paint.setXfermode(null); canvas.drawBitmap(bitmap, 0, 0, paint); } catch (IOException e) { e.printStackTrace(); } return bitmap; } }
810
27,296
<reponame>frank-dspeed/nw.js<gh_stars>1000+ #!/usr/bin/env python import BaseHTTPServer, SimpleHTTPServer import ssl import sys PORT = int(sys.argv[1]) class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): def _set_headers(s): s.send_response(200) s.send_header('Content-type', 'text/html') s.send_header('Set-Cookie', 'same-site-cookie=foo; path=/test_cookie; SameSite=Lax; Secure') s.send_header('Set-Cookie', 'cross-site-cookie=bar; path=/test_cookie; SameSite=None; Secure') s.send_header('Set-Cookie', 'no-samesite-cookie=nee; path=/test_cookie; Secure') s.end_headers() def do_GET(s): """Respond to a GET request.""" if s.path == '/test_cookie/index.html': cookiestring = s.headers.get('Cookie') log = "Cookie sent by client on " + s.path + ": " + (cookiestring or '') print log s._set_headers() s.wfile.write("<script type='text/javascript'> document.write('<h1 id=\\'result\\'>' + \ document.cookie + '</h1>'); </script> \ <img src='1.svg'></img> \ <p id='svr'>" + log + "</p>") with open("svrlog.txt", "a") as myfile: myfile.write(log + "\n") return if s.path == '/test_cookie/1.svg': cookiestring = s.headers.get('Cookie') log = "Cookie sent by client on " + s.path + ": " + (cookiestring or '') print log with open("svrlog.txt", "a") as myfile: myfile.write(log + "\n") s.send_response(200) s.send_header('Content-type', 'image/svg+xml') s.end_headers() s.wfile.write('<svg version="1.1" baseProfile="full" height="100" width="100" xmlns="http://www.w3.org/2000/svg"> \ <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /></svg>') httpd = BaseHTTPServer.HTTPServer(('localhost', PORT), MyHandler) httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./cert.pem', keyfile='./key.pem', server_side=True) print "serving at port", PORT httpd.serve_forever()
1,046
1,125
// Copyright 2020-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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EXPORTGLTF_H #define EXPORTGLTF_H #include <image/image.h> #include <tiny_gltf.h> #include <Eigen/Core> #include <string> namespace exportgltf { typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> MatrixXfR; typedef Eigen::Matrix<unsigned short, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> MatrixXusR; class ExportGltf { public: void exportStart(const MatrixXfR &V, const MatrixXfR &N, const MatrixXusR &F, const MatrixXfR &TC, const int nFrames, bool mtHasNormals, const int FPS, const Imguc &textureImg); void exportStop(const std::string &outFn, bool writeBinary); void exportFullModel(const MatrixXfR &V, const MatrixXfR &N, const MatrixXusR &F, const MatrixXfR &TC); void exportMorphTarget(const MatrixXfR &V, const MatrixXfR &N, const int frame); private: size_t nBytesF = 0; size_t nBytesV = 0; size_t nBytesN = 0; size_t nBytesTC = 0; size_t nBytesBase = 0; int nWeights = 0; size_t nBytesWeights = 0; size_t nBytesTime = 0; size_t nBytesAnim = 0; size_t nBytesImage = 0; size_t nBytesMTTotal = 0; size_t nBytesMTCum = 0; bool mtHasNormals = false; int nFrames = 0; int FPS = 0; bool hasTexture = false; tinygltf::Model m; }; } // namespace exportgltf #endif // EXPORTGLTF_H
766
695
<reponame>arock121/pocketnet.core<gh_stars>100-1000 /* This file was generated automatically by the Snowball to ANSI C compiler */ #ifdef __cplusplus extern "C" { #endif extern struct SN_env* german_UTF_8_create_env(void); extern void german_UTF_8_close_env(struct SN_env* z); extern int german_UTF_8_stem(struct SN_env* z); #ifdef __cplusplus } #endif
138
698
<gh_stars>100-1000 // // MSWKCustomProtocol.h // JXBWebKit // // Created by jinxiubo on 2018/5/9. // Copyright © 2018年 jinxiubo. All rights reserved. // #import <Foundation/Foundation.h> __attribute__((objc_subclassing_restricted)) @interface JXBWKCustomProtocol : NSURLProtocol @end
116
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.cosmos.implementation; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import java.io.IOException; import java.time.Instant; /** * Provides a serialization for instant using ISO-8601 representation. * e.g., such as '2011-12-03T10:15:30Z'. * * https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#ISO_INSTANT */ public class DiagnosticsInstantSerializer extends StdSerializer<Instant> { private static final long serialVersionUID = 1477047422582342157L; public DiagnosticsInstantSerializer() { super(Instant.class); } @Override public void serialize(Instant instant, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeObject(fromInstant(instant)); } public static String fromInstant(Instant instant) { if (instant == null) { return null; } return instant.toString(); } }
464
4,054
<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/storage/persistence/filestorage/has_mask_remapper.h> #include <gtest/gtest.h> namespace storage { using NodeList = std::vector<api::MergeBucketCommand::Node>; const NodeList merge_operation_nodes{{0, true}, {1, true}, {2, false}, {3, false}, {4, false}}; TEST(HasMaskRemapperTest, test_remap_none) { HasMaskRemapper remap_mask(merge_operation_nodes, merge_operation_nodes); for (uint32_t i = 0; i < (1u << merge_operation_nodes.size()); ++i) { EXPECT_EQ(i, remap_mask(i)); } EXPECT_EQ(31u, remap_mask(255u)); } TEST(HasMaskRemapperTest, test_remap_subset) { NodeList reply_nodes{{0, true}, {1, true}, {3, false}}; HasMaskRemapper remap_mask(merge_operation_nodes, reply_nodes); std::vector<uint16_t> remapped; for (uint32_t i = 0; i < (1u << reply_nodes.size()); ++i) { remapped.push_back(remap_mask(i)); } EXPECT_EQ((std::vector<uint16_t>{0u, 1u, 2u, 3u, 8u, 9u, 10u, 11u}), remapped); } TEST(HasMaskRemapperTest, test_remap_swapped_subset) { NodeList reply_nodes{{1, true}, {0, true}}; HasMaskRemapper remap_mask(merge_operation_nodes, reply_nodes); std::vector<uint16_t> remapped; for (uint32_t i = 0; i < (1u << reply_nodes.size()); ++i) { remapped.push_back(remap_mask(i)); } EXPECT_EQ((std::vector<uint16_t>{0u, 2u, 1u, 3u}), remapped); } TEST(HasMaskRemapperTest, test_keep_unremapped_bits) { NodeList reply_nodes{{0, true}, {1, true}, {3, false}}; HasMaskRemapper remap_mask(merge_operation_nodes, reply_nodes); EXPECT_EQ(20u, remap_mask(0u, (1u << 5) - 1)); EXPECT_EQ(11u, remap_mask((1u << 3) - 1, 0u)); EXPECT_EQ(31u, remap_mask((1u << 3) - 1, (1u << 5) - 1)); EXPECT_EQ(24u, remap_mask(4u, 16u)); HasMaskRemapper same_nodes_remap_mask(merge_operation_nodes, merge_operation_nodes); EXPECT_EQ(31u, same_nodes_remap_mask(255u, 0u)); EXPECT_EQ(224u, same_nodes_remap_mask(0u, 255u)); EXPECT_EQ(255u, same_nodes_remap_mask(255u, 255u)); } }
965
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/006/00602131.json {"nom":"Sallagriffon","circ":"2ème circonscription","dpt":"Alpes-Maritimes","inscrits":58,"abs":25,"votants":33,"blancs":4,"nuls":1,"exp":28,"res":[{"nuance":"FN","nom":"<NAME>","voix":15},{"nuance":"REM","nom":"<NAME>","voix":13}]}
133
764
package io.eventuate.javaclient.commonimpl.common.schema; import com.fasterxml.jackson.databind.JsonNode; public interface EventUpcaster { JsonNode upcast(JsonNode json); }
63
746
<reponame>tomassatka/OpenLineage<filename>client/python/tests/test_events.py # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import json import os from typing import Optional, List import attr import pytest from openlineage.client.serde import Serde from openlineage.client import run, facet, set_producer @pytest.fixture(scope='session', autouse=True) def setup_producer(): set_producer('https://github.com/OpenLineage/OpenLineage/tree/0.0.1/client/python') def get_sorted_json(file_name: str) -> str: dirpath = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(dirpath, file_name), 'r') as f: loaded = json.load(f) return json.dumps(loaded, sort_keys=True) def test_full_core_event_serializes_properly(): runEvent = run.RunEvent( eventType=run.RunState.START, eventTime='2020-02-01', run=run.Run( runId='69f4acab-b87d-4fc0-b27b-8ea950370ff3', facets={ "nominalTime": facet.NominalTimeRunFacet( nominalStartTime='2020-01-01', nominalEndTime='2020-01-02' ) } ), job=run.Job( namespace="openlineage", name="name", facets={} ), inputs=[], outputs=[], producer="https://github.com/OpenLineage/OpenLineage/tree/0.0.1/client/python" ) assert Serde.to_json(runEvent) == get_sorted_json('serde_example.json') def test_run_id_uuid_check(): # does not throw when passed uuid run.Run(runId='69f4acab-b87d-4fc0-b27b-8ea950370ff3') with pytest.raises(ValueError): run.Run( runId='1500100900', facets={} ) def test_run_event_type_validated(): with pytest.raises(ValueError): run.RunEvent( "asdf", "2020-02-01", run.Run("69f4acab-b87d-4fc0-b27b-8ea950370ff3", {}), run.Job("default", "name"), "producer" ) # TODO: validate dates # with pytest.raises(ValueError): # events.RunEvent(events.RunState.START, 1500, events.Run("1500", {})) def test_nominal_time_facet_does_not_require_end_time(): assert Serde.to_json(facet.NominalTimeRunFacet( nominalStartTime='2020-01-01', )) == get_sorted_json("nominal_time_without_end.json") def test_schema_field_default(): assert Serde.to_json(facet.SchemaField(name='asdf', type='int4')) == \ '{"name": "asdf", "type": "int4"}' assert Serde.to_json(facet.SchemaField( name='asdf', type='int4', description='primary key') ) == '{"description": "primary key", "name": "asdf", "type": "int4"}' @attr.s class NestedObject: value: Optional[int] = attr.ib(default=None) @attr.s class NestingObject: nested: List[NestedObject] = attr.ib() optional: Optional[int] = attr.ib(default=None) def test_serde_nested_nulls(): assert Serde.to_json(NestingObject( nested=[ NestedObject(), NestedObject(41) ], optional=3 )) == '{"nested": [{"value": 41}], "optional": 3}' assert Serde.to_json(NestingObject( nested=[ NestedObject() ] )) == '{"nested": []}'
1,682
2,542
<reponame>gridgentoo/ServiceFabricAzure<filename>src/test/current/source/NativeReplicatorStack/TpccService/StockValue.cpp<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using namespace std; using namespace Common; using namespace TXRStatefulServiceBase; using namespace TpccService; using namespace TxnReplicator; using namespace Data::Utilities; static const ULONG STOCK_VAL_TAG = 'stvt'; NTSTATUS StockValue::Create( __in KAllocator& allocator, __out SPtr& result) { NTSTATUS status; SPtr output = _new(STOCK_VAL_TAG, allocator) StockValue(); if (output == nullptr) { return STATUS_INSUFFICIENT_RESOURCES; } status = output->Status(); if (!NT_SUCCESS(status)) { return status; } result = Ktl::Move(output); return STATUS_SUCCESS; } StockValue::StockValue() : quantity_(0) , district1_(nullptr) , district2_(nullptr) , district3_(nullptr) , district4_(nullptr) , district5_(nullptr) , district6_(nullptr) , district7_(nullptr) , district8_(nullptr) , district9_(nullptr) , district10_(nullptr) , ytd_(0) , orderCount_(0) , remoteCount_(0) , data_(nullptr) { KString::Create(district1_, this->GetThisAllocator(), L"default"); KString::Create(district2_, this->GetThisAllocator(), L"default"); KString::Create(district3_, this->GetThisAllocator(), L"default"); KString::Create(district4_, this->GetThisAllocator(), L"default"); KString::Create(district5_, this->GetThisAllocator(), L"default"); KString::Create(district6_, this->GetThisAllocator(), L"default"); KString::Create(district7_, this->GetThisAllocator(), L"default"); KString::Create(district8_, this->GetThisAllocator(), L"default"); KString::Create(district9_, this->GetThisAllocator(), L"default"); KString::Create(district10_, this->GetThisAllocator(), L"default"); KString::Create(data_, this->GetThisAllocator(), L"default"); } StockValue::~StockValue() { }
820
1,682
<gh_stars>1000+ /* Copyright (c) 2018 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package com.linkedin.data.codec.entitystream; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.json.async.NonBlockingJsonParser; import com.linkedin.data.DataComplex; import com.linkedin.data.codec.AbstractJacksonDataCodec; import com.linkedin.data.parser.NonBlockingDataParser; import java.util.EnumSet; /** * A JSON decoder for a {@link DataComplex} object implemented as a {@link com.linkedin.entitystream.Reader} reading * from an {@link com.linkedin.entitystream.EntityStream} of ByteString. The implementation is backed by Jackson's * {@link NonBlockingJsonParser}. Because the raw bytes are pushed to the decoder, it keeps the partially built data * structure in a stack. */ public class JacksonJsonDataDecoder<T extends DataComplex> extends AbstractJacksonDataDecoder<T> implements JsonDataDecoder<T> { /** * Deprecated, use {@link #JacksonJsonDataDecoder(EnumSet)} instead */ @Deprecated protected JacksonJsonDataDecoder(byte expectedFirstToken) { super(AbstractJacksonDataCodec.JSON_FACTORY, expectedFirstToken); } protected JacksonJsonDataDecoder(EnumSet<NonBlockingDataParser.Token> expectedFirstToken) { super(AbstractJacksonDataCodec.JSON_FACTORY, expectedFirstToken); } protected JacksonJsonDataDecoder(JsonFactory jsonFactory, EnumSet<NonBlockingDataParser.Token> expectedFirstToken) { super(jsonFactory, expectedFirstToken); } public JacksonJsonDataDecoder() { super(AbstractJacksonDataCodec.JSON_FACTORY); } }
644
622
<reponame>Jackque/flashback /* * Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ package com.linkedin.flashback.serializable; import org.testng.Assert; import org.testng.annotations.Test; /** * @author shfeng */ public class RecordedStringHttpBodyTest { @Test public void testGetByteArray() throws Exception { String str = "Hello world"; byte[] content = str.getBytes(); RecordedStringHttpBody recordedStringHttpBody = new RecordedStringHttpBody(str); Assert.assertEquals(content, recordedStringHttpBody.getContent("UTF-8")); } @Test(expectedExceptions = RuntimeException.class) public void testGetByteArrayUnsupportEncoding() throws Exception { String str = "Hello world"; RecordedStringHttpBody recordedStringHttpBody = new RecordedStringHttpBody(str); recordedStringHttpBody.getContent("UNKNOWN"); } }
293
335
{ "word": "Manifestation", "definitions": [ "An event, action, or object that clearly shows or embodies something abstract or theoretical.", "The action or fact of showing something.", "A symptom of an ailment.", "A version or incarnation of something or someone.", "An appearance of a ghost or spirit." ], "parts-of-speech": "Noun" }
138
333
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 模版主核销区信息 * * @author auto create * @since 1.0, 2020-09-03 15:40:07 */ public class TemplateOperationDTO extends AlipayObject { private static final long serialVersionUID = 7374473481382291763L; /** * 核销区行动点提示文案。支持以 $动态参数$ 形式的自定义动态参数传值。 */ @ApiField("alt_text") private String altText; /** * 核销操作类型,支持:qrcode(二维码方式)、barcode(条形码)、text(文本文案)、url(网页链接)、自定义核销(exchange)。支持以 $动态参数$ 形式的自定义动态参数传值。 */ @ApiField("format_type") private String formatType; /** * 核销区具体行动,当核销操作类型为:qrcode(二维码方式)、barcode(条形码)、自定义核销(exchange)时为具体核销操作值;当核销操作类型为:url(网页链接)时为对应跳转服务地址,需带上http、https、alipays等协议头。支持以 $动态参数$ 形式的自定义动态参数传值。 */ @ApiField("message") private String message; /** * 核销区提示信息标准编码格式,如gbk、utf-8(默认)等。支持以 $动态参数$ 形式的自定义动态参数传值。 */ @ApiField("message_encoding") private String messageEncoding; /** * 核销区文本信息描述,当核销操作类型为:text(文本文案)时必填,用于描述具体文本文案内容。 */ @ApiListField("text_messages") @ApiField("template_text_message_d_t_o") private List<TemplateTextMessageDTO> textMessages; public String getAltText() { return this.altText; } public void setAltText(String altText) { this.altText = altText; } public String getFormatType() { return this.formatType; } public void setFormatType(String formatType) { this.formatType = formatType; } public String getMessage() { return this.message; } public void setMessage(String message) { this.message = message; } public String getMessageEncoding() { return this.messageEncoding; } public void setMessageEncoding(String messageEncoding) { this.messageEncoding = messageEncoding; } public List<TemplateTextMessageDTO> getTextMessages() { return this.textMessages; } public void setTextMessages(List<TemplateTextMessageDTO> textMessages) { this.textMessages = textMessages; } }
1,385
1,982
<filename>libs/utils.py<gh_stars>1000+ #!/usr/bin/env python # -*- coding: utf-8 -*- """The package that contains groups all the functions needed by other scripts.""" import logging import os import bs4 import requests import pymongo from telegram import TelegramError DATABASE = "" USERS = { 'telegramID': [], 'disim': [], 'univaq': [], 'discab_general': [], 'discab_biotechnology': [], 'discab_medical':[], 'discab_motor_science': [], 'discab_psychology': [], 'mesva_general': [], 'mesva_medical': [], 'mesva_environmental_science': [], 'mesva_biological_science': [] } NEWS = {} def db_connection(): """Get MongoDB connection""" try: conn = pymongo.MongoClient(os.environ['MONGODB_URI']) print("Connected successfully!") except (pymongo.errors.ConnectionFailure) as err: print("Could not connect to MongoDB: %s" % err) global DATABASE DATABASE = conn.get_default_database() def get_users(): """Get from DB all the subscribers""" for user in DATABASE.users.find({}, {'_id': False}): for section in user: USERS[section].append(user[section]) def add_user(telegram_id): """Add subscriber to the DB""" USERS['telegramID'].append(telegram_id) DATABASE.users.insert({"telegramID": telegram_id}) def subscribe_user(telegram_id, section): """Add subscriber to the DB""" USERS[section].append(telegram_id) DATABASE.users.update_one({"telegramID": telegram_id}, {"$set": {section: telegram_id}}) def unsubscribe_user(telegram_id, section): """Remove subscriber from DB""" USERS[section].remove(telegram_id) DATABASE.users.update_one({"telegramID": telegram_id}, {"$unset": {section: ""}}) def get_news(): """Get all the news""" global NEWS NEWS = DATABASE['news'].find_one({}, {'_id': False}) def store_news(data): # TODO do we need store_news(data, section)? """Store all the news""" DATABASE['news'].remove({}) DATABASE['news'].insert(data) def botupdated_message(bot, job): """ Defining a command to notify the user and tell them what updates have been released It is called at every execution ONLY if there are documents in a specific db collection """ messages = list(DATABASE.messages.find()) DATABASE.messages.remove() invalid_chatid = [] for message in messages: for chat_id in USERS['telegramID']: try: bot.sendMessage(chat_id, parse_mode='HTML', text=message['text']) except TelegramError: invalid_chatid.append(chat_id) for chat_id in invalid_chatid: USERS['telegramID'].remove(chat_id) unsubscribe_user(chat_id, 'telegramID') def get_soup_from_url(url): """Download a webpage and return its BeautifulSoup""" headers = { 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5)', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'accept-encoding': 'gzip,deflate,sdch', 'accept-language': 'it-IT', } request = requests.get(url, headers=headers) if request.status_code == 200: return bs4.BeautifulSoup(request.text, 'html.parser') fmt = 'Error! get_soup_from_url({}) --> Status: {}' print(fmt.format(url, request.status_code)) return None def get_logger(debug): """Get logger object""" logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO ) logger = logging.getLogger(__name__) if debug is False: logging.disable(logging.CRITICAL) return logger
1,569
2,391
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import itertools from collections import OrderedDict from typing import List, Union import networkx as nx from pytorchvideo.neural_engine import HookBase class NeuralEngine: """ NeuralEngine takes a list of hooks and executes them in their topological order. The topological order of the hooks is determined by their required inputs and outputs. """ def __init__(self, hooks: List[HookBase]) -> None: self.hooks = hooks self.execution_order_func = NeuralEngine.topological_sort def get_execution_order(self, status): self.execution_order_func(status, self.hooks) def set_execution_order_func(self, func): self.execution_order_func = func @staticmethod def topological_sort(status, hooks): # Get DAG graph = nx.DiGraph() edges = [] pending_outputs = [] output_to_hook = {} for hook in hooks: for pair in itertools.product(hook.get_inputs(), hook.get_outputs()): edges.append(pair) for output in hook.get_outputs(): assert output not in pending_outputs output_to_hook[output] = hook pending_outputs.append(output) graph.add_edges_from(edges) for _current in nx.topological_sort(graph): if _current in pending_outputs: _hook = output_to_hook[_current] yield _hook for _hook_out in _hook.get_outputs(): pending_outputs.remove(_hook_out) else: assert _current in status assert len(pending_outputs) == 0 def run(self, status: OrderedDict): for hook in self.get_execution_order(status): status.update(hook.run(status)) return status def __enter__( self, ): return self def __exit__( self, type, value, traceback, ): pass def __call__( self, status: Union[OrderedDict, str], ): # If not specified, the default input should be the path to video. if type(status) == str: status = {"path": status} return self.run(status)
1,018
30,023
"""The NEW_NAME integration.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client, config_entry_oauth2_flow from . import api from .const import DOMAIN # TODO List the platforms that you want to support. # For your initial PR, limit it to 1 platform. PLATFORMS: list[Platform] = [Platform.LIGHT] async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up NEW_NAME from a config entry.""" implementation = ( await config_entry_oauth2_flow.async_get_config_entry_implementation( hass, entry ) ) session = config_entry_oauth2_flow.OAuth2Session(hass, entry, implementation) # If using a requests-based API lib hass.data[DOMAIN][entry.entry_id] = api.ConfigEntryAuth(hass, session) # If using an aiohttp-based API lib hass.data[DOMAIN][entry.entry_id] = api.AsyncConfigEntryAuth( aiohttp_client.async_get_clientsession(hass), session ) hass.config_entries.async_setup_platforms(entry, PLATFORMS) return True async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Unload a config entry.""" if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS): hass.data[DOMAIN].pop(entry.entry_id) return unload_ok
522
354
<reponame>iabernikhin/VK-GL-CTS /*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *//*! * \file * \brief Shader switch statement tests. * * Variables: * + Selection expression type: static, uniform, dynamic * + Switch layout - fall-through or use of default label * + Switch nested in loop/conditional statement * + Loop/conditional statement nested in switch *//*--------------------------------------------------------------------*/ #include "es3fShaderSwitchTests.hpp" #include "glsShaderRenderCase.hpp" #include "glsShaderLibrary.hpp" #include "tcuStringTemplate.hpp" #include "deMath.h" namespace deqp { namespace gles3 { namespace Functional { using namespace deqp::gls; using std::string; using std::map; using std::vector; class ShaderSwitchCase : public ShaderRenderCase { public: ShaderSwitchCase (Context& context, const char* name, const char* description, bool isVertexCase, const char* vtxSource, const char* fragSource, ShaderEvalFunc evalFunc); virtual ~ShaderSwitchCase (void); }; ShaderSwitchCase::ShaderSwitchCase (Context& context, const char* name, const char* description, bool isVertexCase, const char* vtxSource, const char* fragSource, ShaderEvalFunc evalFunc) : ShaderRenderCase(context.getTestContext(), context.getRenderContext(), context.getContextInfo(), name, description, isVertexCase, evalFunc) { m_vertShaderSource = vtxSource; m_fragShaderSource = fragSource; } ShaderSwitchCase::~ShaderSwitchCase (void) { } enum SwitchType { SWITCHTYPE_STATIC = 0, SWITCHTYPE_UNIFORM, SWITCHTYPE_DYNAMIC, SWITCHTYPE_LAST }; static void evalSwitchStatic (ShaderEvalContext& evalCtx) { evalCtx.color.xyz() = evalCtx.coords.swizzle(1,2,3); } static void evalSwitchUniform (ShaderEvalContext& evalCtx) { evalCtx.color.xyz() = evalCtx.coords.swizzle(1,2,3); } static void evalSwitchDynamic (ShaderEvalContext& evalCtx) { switch (int(deFloatFloor(evalCtx.coords.z()*1.5f + 2.0f))) { case 0: evalCtx.color.xyz() = evalCtx.coords.swizzle(0,1,2); break; case 1: evalCtx.color.xyz() = evalCtx.coords.swizzle(3,2,1); break; case 2: evalCtx.color.xyz() = evalCtx.coords.swizzle(1,2,3); break; case 3: evalCtx.color.xyz() = evalCtx.coords.swizzle(2,1,0); break; default: evalCtx.color.xyz() = evalCtx.coords.swizzle(0,0,0); break; } } static tcu::TestCase* makeSwitchCase (Context& context, const char* name, const char* desc, SwitchType type, bool isVertex, const LineStream& switchBody) { std::ostringstream vtx; std::ostringstream frag; std::ostringstream& op = isVertex ? vtx : frag; vtx << "#version 300 es\n" << "in highp vec4 a_position;\n" << "in highp vec4 a_coords;\n"; frag << "#version 300 es\n" << "layout(location = 0) out mediump vec4 o_color;\n"; if (isVertex) { vtx << "out mediump vec4 v_color;\n"; frag << "in mediump vec4 v_color;\n"; } else { vtx << "out highp vec4 v_coords;\n"; frag << "in highp vec4 v_coords;\n"; } if (type == SWITCHTYPE_UNIFORM) op << "uniform highp int ui_two;\n"; vtx << "\n" << "void main (void)\n" << "{\n" << " gl_Position = a_position;\n"; frag << "\n" << "void main (void)\n" << "{\n"; // Setup. op << " highp vec4 coords = " << (isVertex ? "a_coords" : "v_coords") << ";\n"; op << " mediump vec3 res = vec3(0.0);\n\n"; // Switch body. map<string, string> params; params["CONDITION"] = type == SWITCHTYPE_STATIC ? "2" : type == SWITCHTYPE_UNIFORM ? "ui_two" : type == SWITCHTYPE_DYNAMIC ? "int(floor(coords.z*1.5 + 2.0))" : "???"; op << tcu::StringTemplate(switchBody.str()).specialize(params).c_str(); op << "\n"; if (isVertex) { vtx << " v_color = vec4(res, 1.0);\n"; frag << " o_color = v_color;\n"; } else { vtx << " v_coords = a_coords;\n"; frag << " o_color = vec4(res, 1.0);\n"; } vtx << "}\n"; frag << "}\n"; return new ShaderSwitchCase(context, name, desc, isVertex, vtx.str().c_str(), frag.str().c_str(), type == SWITCHTYPE_STATIC ? evalSwitchStatic : type == SWITCHTYPE_UNIFORM ? evalSwitchUniform : type == SWITCHTYPE_DYNAMIC ? evalSwitchDynamic : (ShaderEvalFunc)DE_NULL); } static void makeSwitchCases (TestCaseGroup* group, const char* name, const char* desc, const LineStream& switchBody) { static const char* switchTypeNames[] = { "static", "uniform", "dynamic" }; DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(switchTypeNames) == SWITCHTYPE_LAST); for (int type = 0; type < SWITCHTYPE_LAST; type++) { group->addChild(makeSwitchCase(group->getContext(), (string(name) + "_" + switchTypeNames[type] + "_vertex").c_str(), desc, (SwitchType)type, true, switchBody)); group->addChild(makeSwitchCase(group->getContext(), (string(name) + "_" + switchTypeNames[type] + "_fragment").c_str(), desc, (SwitchType)type, false, switchBody)); } } ShaderSwitchTests::ShaderSwitchTests (Context& context) : TestCaseGroup(context, "switch", "Switch statement tests") { } ShaderSwitchTests::~ShaderSwitchTests (void) { } void ShaderSwitchTests::init (void) { // Expected swizzles: // 0: xyz // 1: wzy // 2: yzw // 3: zyx makeSwitchCases(this, "basic", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2: res = coords.yzw; break;" << " case 3: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "const_expr_in_label", "Constant expression in label", LineStream(1) << "const int t = 2;" << "switch (${CONDITION})" << "{" << " case int(0.0): res = coords.xyz; break;" << " case 2-1: res = coords.wzy; break;" << " case 3&(1<<1): res = coords.yzw; break;" << " case t+1: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "default_label", "Default label usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 3: res = coords.zyx; break;" << " default: res = coords.yzw;" << "}"); makeSwitchCases(this, "default_not_last", "Default label usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " default: res = coords.yzw; break;" << " case 1: res = coords.wzy; break;" << " case 3: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "no_default_label", "No match in switch without default label", LineStream(1) << "res = coords.yzw;\n" << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 3: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "fall_through", "Fall-through", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2: coords = coords.yzwx;" << " case 4: res = vec3(coords); break;" << " case 3: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "fall_through_default", "Fall-through", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 3: res = coords.zyx; break;" << " case 2: coords = coords.yzwx;" << " default: res = vec3(coords);" << "}"); makeSwitchCases(this, "conditional_fall_through", "Fall-through", LineStream(1) << "highp vec4 tmp = coords;" << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2:" << " tmp = coords.yzwx;" << " case 3:" << " res = vec3(tmp);" << " if (${CONDITION} != 3)" << " break;" << " default: res = tmp.zyx; break;" << "}"); makeSwitchCases(this, "conditional_fall_through_2", "Fall-through", LineStream(1) << "highp vec4 tmp = coords;" << "mediump int c = ${CONDITION};" << "switch (c)" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2:" << " c += ${CONDITION};" << " tmp = coords.yzwx;" << " case 3:" << " res = vec3(tmp);" << " if (c == 4)" << " break;" << " default: res = tmp.zyx; break;" << "}"); makeSwitchCases(this, "scope", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2:" << " {" << " mediump vec3 t = coords.yzw;" << " res = t;" << " break;" << " }" << " case 3: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "switch_in_if", "Switch in for loop", LineStream(1) << "if (${CONDITION} >= 0)" << "{" << " switch (${CONDITION})" << " {" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2: res = coords.yzw; break;" << " case 3: res = coords.zyx; break;" << " }" << "}"); makeSwitchCases(this, "switch_in_for_loop", "Switch in for loop", LineStream(1) << "for (int i = 0; i <= ${CONDITION}; i++)" << "{" << " switch (i)" << " {" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2: res = coords.yzw; break;" << " case 3: res = coords.zyx; break;" << " }" << "}"); makeSwitchCases(this, "switch_in_while_loop", "Switch in while loop", LineStream(1) << "int i = 0;" << "while (i <= ${CONDITION})" << "{" << " switch (i)" << " {" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2: res = coords.yzw; break;" << " case 3: res = coords.zyx; break;" << " }" << " i += 1;" << "}"); makeSwitchCases(this, "switch_in_do_while_loop", "Switch in do-while loop", LineStream(1) << "int i = 0;" << "do" << "{" << " switch (i)" << " {" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " case 2: res = coords.yzw; break;" << " case 3: res = coords.zyx; break;" << " }" << " i += 1;" << "} while (i <= ${CONDITION});"); makeSwitchCases(this, "if_in_switch", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1: res = coords.wzy; break;" << " default:" << " if (${CONDITION} == 2)" << " res = coords.yzw;" << " else" << " res = coords.zyx;" << " break;" << "}"); makeSwitchCases(this, "for_loop_in_switch", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1:" << " case 2:" << " {" << " highp vec3 t = coords.yzw;" << " for (int i = 0; i < ${CONDITION}; i++)" << " t = t.zyx;" << " res = t;" << " break;" << " }" << " default: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "while_loop_in_switch", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1:" << " case 2:" << " {" << " highp vec3 t = coords.yzw;" << " int i = 0;" << " while (i < ${CONDITION})" << " {" << " t = t.zyx;" << " i += 1;" << " }" << " res = t;" << " break;" << " }" << " default: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "do_while_loop_in_switch", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1:" << " case 2:" << " {" << " highp vec3 t = coords.yzw;" << " int i = 0;" << " do" << " {" << " t = t.zyx;" << " i += 1;" << " } while (i < ${CONDITION});" << " res = t;" << " break;" << " }" << " default: res = coords.zyx; break;" << "}"); makeSwitchCases(this, "switch_in_switch", "Basic switch statement usage", LineStream(1) << "switch (${CONDITION})" << "{" << " case 0: res = coords.xyz; break;" << " case 1:" << " case 2:" << " switch (${CONDITION} - 1)" << " {" << " case 0: res = coords.wzy; break;" << " case 1: res = coords.yzw; break;" << " }" << " break;" << " default: res = coords.zyx; break;" << "}"); // Negative cases. ShaderLibrary library(m_testCtx, m_context.getRenderContext(), m_context.getContextInfo()); vector<tcu::TestNode*> negativeCases = library.loadShaderFile("shaders/switch.test"); for (vector<tcu::TestNode*>::iterator i = negativeCases.begin(); i != negativeCases.end(); i++) addChild(*i); } } // Functional } // gles3 } // deqp
5,868
1,244
<reponame>caiohamamura/libcxx<gh_stars>1000+ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <system_error> // class error_category // const error_category& generic_category(); #include <system_error> #include <cassert> #include <string> int main() { const std::error_category& e_cat1 = std::generic_category(); std::string m1 = e_cat1.name(); assert(m1 == "generic"); }
209
435
<gh_stars>100-1000 { "copyright_text": "Standard YouTube License", "description": "Understanding bubble dynamics is an important component in understanding a variety of physical systems. Numerical simulations of these systems is appealing given the limited number of analytic cases and the expense and constraints of experiments. Bubble dynamics present unique numerical challenges. Interfacial forces, large deformations, and large density ratios all require that numerical stability, flexibility and efficiency be considered. Smooth particle hydrodynamics (SPH) offers a unique tool that inherently accommodates large geometric deformations and multiphase interfaces. In this work we use and extend PySPH, an open source SPH code that has been designed for easy extension in Python, to model isolated bubble oscillations and shape deformations. Our research is focused on identifying a system of compatible operators and adjustments that can accommodate the necessary parameter gradients while also maintaining stability and convergence within the SPH framework.", "duration": 1214, "language": "eng", "recorded": "2017-07-17", "related_urls": [ { "label": "schedule", "url": "https://scipy2017.scipy.org/ehome/220975/493422/" } ], "speakers": [ "<NAME>" ], "tags": [], "thumbnail_url": "https://i.ytimg.com/vi/QkN6d3Nh74A/maxresdefault.jpg", "title": "Systematic Application of PySPH to Bubble Dynamics", "videos": [ { "type": "youtube", "url": "https://www.youtube.com/watch?v=QkN6d3Nh74A" } ] }
440
2,151
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_C_SIGNATURE_H_ #define V8_COMPILER_C_SIGNATURE_H_ #include "src/machine-type.h" namespace v8 { namespace internal { namespace compiler { #define FOREACH_CTYPE_MACHINE_TYPE_MAPPING(V) \ V(void, MachineType::None()) \ V(bool, MachineType::Uint8()) \ V(int8_t, MachineType::Int8()) \ V(uint8_t, MachineType::Uint8()) \ V(int16_t, MachineType::Int16()) \ V(uint16_t, MachineType::Uint16()) \ V(int32_t, MachineType::Int32()) \ V(uint32_t, MachineType::Uint32()) \ V(int64_t, MachineType::Int64()) \ V(uint64_t, MachineType::Uint64()) \ V(float, MachineType::Float32()) \ V(double, MachineType::Float64()) \ V(void*, MachineType::Pointer()) \ V(int*, MachineType::Pointer()) template <typename T> inline constexpr MachineType MachineTypeForC() { static_assert(std::is_convertible<T, Object*>::value, "all non-specialized types must be convertible to Object*"); return MachineType::AnyTagged(); } #define DECLARE_TEMPLATE_SPECIALIZATION(ctype, mtype) \ template <> \ inline MachineType constexpr MachineTypeForC<ctype>() { \ return mtype; \ } FOREACH_CTYPE_MACHINE_TYPE_MAPPING(DECLARE_TEMPLATE_SPECIALIZATION) #undef DECLARE_TEMPLATE_SPECIALIZATION // Helper for building machine signatures from C types. class CSignature : public MachineSignature { protected: CSignature(size_t return_count, size_t parameter_count, MachineType* reps) : MachineSignature(return_count, parameter_count, reps) {} public: template <typename... Params> static void VerifyParams(MachineSignature* sig) { // Verifies the C signature against the machine types. std::array<MachineType, sizeof...(Params)> params{ {MachineTypeForC<Params>()...}}; for (size_t p = 0; p < params.size(); ++p) { CHECK_EQ(sig->GetParam(p), params[p]); } } static CSignature* FromMachine(Zone* zone, MachineSignature* msig) { return reinterpret_cast<CSignature*>(msig); } template <typename... ParamMachineTypes> static CSignature* New(Zone* zone, MachineType ret, ParamMachineTypes... params) { constexpr size_t param_count = sizeof...(params); std::array<MachineType, param_count> param_arr{{params...}}; const size_t buffer_size = param_count + (ret == MachineType::None() ? 0 : 1); MachineType* buffer = zone->NewArray<MachineType>(buffer_size); size_t pos = 0; size_t return_count = 0; if (ret != MachineType::None()) { buffer[pos++] = ret; return_count++; } for (MachineType p : param_arr) { // Check that there are no MachineType::None()'s in the parameters. CHECK_NE(MachineType::None(), p); buffer[pos++] = p; } DCHECK_EQ(buffer_size, pos); return new (zone) CSignature(return_count, param_count, buffer); } }; // Helper classes for instantiating Signature objects to be callable from C. template <typename Ret, typename... Params> class CSignatureOf : public CSignature { public: CSignatureOf() : CSignature(kReturnCount, kParamCount, storage_) { constexpr std::array<MachineType, kParamCount> param_types{ MachineTypeForC<Params>()...}; if (kReturnCount == 1) storage_[0] = MachineTypeForC<Ret>(); static_assert( std::is_same<decltype(*reps_), decltype(*param_types.data())>::value, "type mismatch, cannot memcpy"); memcpy(storage_ + kReturnCount, param_types.data(), sizeof(*storage_) * kParamCount); } private: static constexpr size_t kReturnCount = MachineTypeForC<Ret>() == MachineType::None() ? 0 : 1; static constexpr size_t kParamCount = sizeof...(Params); MachineType storage_[kReturnCount + kParamCount]; }; typedef CSignatureOf<int32_t, int32_t, int32_t> CSignature_i_ii; typedef CSignatureOf<uint32_t, uint32_t, uint32_t> CSignature_u_uu; typedef CSignatureOf<float, float, float> CSignature_f_ff; typedef CSignatureOf<double, double, double> CSignature_d_dd; typedef CSignatureOf<Object*, Object*, Object*> CSignature_o_oo; } // namespace compiler } // namespace internal } // namespace v8 #endif // V8_COMPILER_C_SIGNATURE_H_
1,868
17,481
<filename>javatests/dagger/functional/producers/cancellation/CancellationPolicyTest.java /* * Copyright (C) 2018 The Dagger Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package dagger.functional.producers.cancellation; import static com.google.common.truth.Truth.assertThat; import static java.util.concurrent.TimeUnit.MILLISECONDS; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.MoreExecutors; import dagger.BindsInstance; import dagger.producers.CancellationPolicy; import dagger.producers.CancellationPolicy.Propagation; import dagger.producers.ProducerModule; import dagger.producers.Produces; import dagger.producers.Production; import dagger.producers.ProductionComponent; import dagger.producers.ProductionSubcomponent; import java.util.concurrent.Executor; import javax.inject.Named; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** * Tests for parent production components with a {@code CancellationPolicy} that allows subcomponent * cancellation to propagate to them */ @RunWith(JUnit4.class) public final class CancellationPolicyTest { @ProducerModule(subcomponents = Child.class) static class ParentModule { private final ProducerTester tester; ParentModule(ProducerTester tester) { this.tester = tester; } @Produces @Named("a") ListenableFuture<String> produceA() { return tester.start("a"); } } interface Parent { @Named("a") ListenableFuture<String> a(); Child.Builder childBuilder(); interface Builder<P extends Parent, B extends Builder<P, B>> { B module(ParentModule module); @BindsInstance B executor(@Production Executor executor); P build(); } } @CancellationPolicy(fromSubcomponents = Propagation.PROPAGATE) @ProductionComponent(modules = ParentModule.class) interface PropagatingParent extends Parent { @ProductionComponent.Builder interface Builder extends Parent.Builder<PropagatingParent, Builder> {} } @CancellationPolicy(fromSubcomponents = Propagation.IGNORE) @ProductionComponent(modules = ParentModule.class) interface NonPropagatingParent extends Parent { @ProductionComponent.Builder interface Builder extends Parent.Builder<NonPropagatingParent, Builder> {} } @ProducerModule static class ChildModule { private final ProducerTester tester; ChildModule(ProducerTester tester) { this.tester = tester; } @Produces @Named("b") ListenableFuture<String> b(@Named("a") String a) { return tester.start("b"); } } @ProductionSubcomponent(modules = ChildModule.class) interface Child { @Named("b") ListenableFuture<String> b(); @ProductionSubcomponent.Builder interface Builder { Builder module(ChildModule module); Child build(); } } private final ProducerTester tester = new ProducerTester(); @Test public void propagatingParent_childCancellationPropagatesToParent() { PropagatingParent parent = DaggerCancellationPolicyTest_PropagatingParent.builder() .module(new ParentModule(tester)) .executor(MoreExecutors.directExecutor()) .build(); ListenableFuture<String> a = parent.a(); Child child = parent.childBuilder().module(new ChildModule(tester)).build(); ListenableFuture<String> b = child.b(); tester.assertStarted("a").only(); assertThat(a.isDone()).isFalse(); assertThat(b.isDone()).isFalse(); assertThat(b.cancel(true)).isTrue(); assertThat(b.isCancelled()).isTrue(); tester.assertCancelled("a"); assertThat(a.isCancelled()).isTrue(); } @Test public void nonPropagatingParent_childCancellationDoesNotPropagateToParent() throws Exception { // This test is basically just checking that when the parent has fromSubcomponents = IGNORE, it // behaves the same as having no @CancellationPolicy at all (as tested in // ProducerSubcomponentCancellationTester) NonPropagatingParent parent = DaggerCancellationPolicyTest_NonPropagatingParent.builder() .module(new ParentModule(tester)) .executor(MoreExecutors.directExecutor()) .build(); ListenableFuture<String> a = parent.a(); Child child = parent.childBuilder().module(new ChildModule(tester)).build(); ListenableFuture<String> b = child.b(); tester.assertStarted("a").only(); assertThat(a.isDone()).isFalse(); assertThat(b.isDone()).isFalse(); assertThat(b.cancel(true)).isTrue(); assertThat(b.isCancelled()).isTrue(); tester.assertNotCancelled("a"); assertThat(a.isDone()).isFalse(); tester.complete("a"); assertThat(a.isDone()).isTrue(); assertThat(a.get(1, MILLISECONDS)).isEqualTo("completed"); tester.assertNotStarted("b"); } }
1,805
479
<reponame>jeremyvdw/aurora # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from abc import abstractmethod from twitter.common import log from twitter.common.lang import Interface from gen.apache.aurora.api.ttypes import ScheduleStatus class HealthCheck(Interface): @abstractmethod def health(self, task): """Checks health of the task and returns a True or False.""" class HealthStatus(object): @classmethod def alive(cls): return cls(True).health() @classmethod def dead(cls): return cls(False).health() def __init__(self, health): self._health = health def health(self): return self._health class StatusHealthCheck(HealthCheck): """Verifies the health of a task based on the task status. A task is healthy iff, 1. A task is in state RUNNING 2. A task that satisfies (1) and is already known has the same task id. """ def __init__(self): self._task_ids = {} def health(self, task): task_id = task.assignedTask.taskId instance_id = task.assignedTask.instanceId status = task.status if status == ScheduleStatus.RUNNING: if instance_id in self._task_ids: if task_id == self._task_ids.get(instance_id): return HealthStatus.alive() else: return HealthStatus.dead() else: log.info('Detected RUNNING instance %s' % instance_id) self._task_ids[instance_id] = task_id return HealthStatus.alive() else: return HealthStatus.dead()
664
1,056
<reponame>arusinha/incubator-netbeans /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.netbeans.modules.visual.apichanges; import org.netbeans.modules.visual.framework.VisualTestCase; import org.netbeans.api.visual.widget.ConnectionWidget; import org.netbeans.api.visual.widget.Scene; import org.netbeans.api.visual.anchor.AnchorFactory; import org.netbeans.api.visual.router.RouterFactory; import org.netbeans.api.visual.router.CollisionsCollector; import org.netbeans.api.visual.router.ConnectionWidgetCollisionsCollector; import javax.swing.*; import java.awt.*; import java.util.List; import junit.framework.Test; import junit.framework.TestSuite; /** * Test for #99054 - CollisionsCollector context * @author <NAME> */ public class ConnectionWidgetCollisionsCollectorTest extends VisualTestCase { public static Test suite() { return GraphicsEnvironment.isHeadless() ? new TestSuite() : new TestSuite(ConnectionWidgetCollisionsCollectorTest.class); } public ConnectionWidgetCollisionsCollectorTest (String name) { super (name); } public void testCollisionsCollector () { Scene scene = new Scene (); ConnectionWidget widget = new ConnectionWidget (scene); widget.setSourceAnchor (AnchorFactory.createFixedAnchor (new Point (100, 100))); widget.setTargetAnchor (AnchorFactory.createFixedAnchor (new Point (300, 200))); widget.setRouter (RouterFactory.createOrthogonalSearchRouter (new CollisionsCollector() { public void collectCollisions (List<Rectangle> verticalCollisions, List<Rectangle> horizontalCollisions) { getRef ().println ("CollisionsCollector invoked"); } })); scene.addChild (widget); JFrame frame = showFrame (scene); frame.setVisible(false); frame.dispose (); compareReferenceFiles (); } public void testConnectionWidgetCollisionsCollector () { Scene scene = new Scene (); final ConnectionWidget widget = new ConnectionWidget (scene); widget.setSourceAnchor (AnchorFactory.createFixedAnchor (new Point (100, 100))); widget.setTargetAnchor (AnchorFactory.createFixedAnchor (new Point (300, 200))); widget.setRouter (RouterFactory.createOrthogonalSearchRouter (new ConnectionWidgetCollisionsCollector () { public void collectCollisions (ConnectionWidget connectionWidget, List<Rectangle> verticalCollisions, List<Rectangle> horizontalCollisions) { getRef ().println ("ConnectionWidgetCollisionsCollector invoked - is widget valid: " + (connectionWidget == widget)); } })); scene.addChild (widget); JFrame frame = showFrame (scene); frame.setVisible(false); frame.dispose (); compareReferenceFiles (); } }
1,191
918
/* * Copyright (c) 2018 <NAME> * * Distributed under the MIT License. See LICENSE.md at * https://github.com/LiquidPlayer/LiquidCore for terms and conditions. */ #include "HeapObjects.h" #include "Isolate.h" #include "Context.h" using namespace V82JSC; using namespace v8; HeapObject * HeapAllocator::Alloc(IsolateImpl *isolate, const BaseMap *map, uint32_t size) { internal::Heap *heap = reinterpret_cast<internal::Isolate*>(isolate)->heap(); HeapImpl *heapimpl = reinterpret_cast<HeapImpl*>(heap); HeapAllocator *chunk = static_cast<HeapAllocator*>(heapimpl->m_heap_top); void *alloc = nullptr; int index = 0; int pos = 0; assert(map || size > 0); if (size == 0) { size = map->size; } assert(size <= ReserveSize(size)); uint32_t slots = (size <= (HEAP_SLOT_SIZE>>1)) ? 1 : 1 << (LogReserveSize(size) - HEAP_SLOT_SIZE_LOG); assert(slots > 0); uint32_t actual_used_slots = ((size - 1) / HEAP_SLOT_SIZE) + 1; while (!alloc) { if (chunk) { pos = 0; int log = LogReserveSize(size) - HEAP_SLOT_SIZE_LOG; if (log < HEAP_SMALL_SPACE_LOG) { Transform xform = transform(slots); for (index=chunk->info.m_small_indicies[log]; index>=HEAP_RESERVED_SLOTS/64 && (pos = xform(chunk->alloc_map[index])) == 0; --index); if (pos == 0) { for (index=HEAP_BLOCKS-1; index>chunk->info.m_small_indicies[log] && (pos = xform(chunk->alloc_map[index])) == 0; --index); } if (pos) { int slot = (index * 64) + (pos-1); assert(slot >= HEAP_RESERVED_SLOTS && slot < HEAP_SLOTS); alloc = reinterpret_cast<void*>(reinterpret_cast<intptr_t>(chunk) + slot * HEAP_SLOT_SIZE); assert(alloc > chunk && alloc < (void*)(reinterpret_cast<intptr_t>(chunk) + HEAP_ALIGNMENT)); uint64_t mask = (((uint64_t)1<<actual_used_slots)-1) << (pos-1); assert((chunk->alloc_map[index] & mask) == 0); chunk->alloc_map[index] |= mask; chunk->info.m_small_indicies[log] = index; } } else { int blocks_needed = (((int)size-1) / HEAP_BLOCK_SIZE) + 1; int count = 0; for (index = chunk->info.m_large_index; count < blocks_needed && index < HEAP_BLOCKS; ++index) { if (chunk->alloc_map[index] == 0) count++; else count = 0; } if (count < blocks_needed) { count = 0; for (index = 0; count < blocks_needed && index < chunk->info.m_large_index; ++index) { if (chunk->alloc_map[index] == 0) count++; else count = 0; } } if (count == blocks_needed) { int slot = (index * 64); alloc = reinterpret_cast<void*>(reinterpret_cast<intptr_t>(chunk) + (slot * HEAP_SLOT_SIZE)); for (int i=0; i<blocks_needed; i++) { uint64_t mask = ~0; if (actual_used_slots < 64) { mask = (((uint64_t)1<<actual_used_slots)-1) << (pos-1); actual_used_slots = 0; } else { actual_used_slots -= 64; } chunk->alloc_map[index-i-1] = mask; } chunk->info.m_large_index = index; } } if (!alloc) chunk = static_cast<HeapAllocator*>(chunk->next_chunk()); } if (!alloc && !chunk) { void *ptr; posix_memalign(&ptr, kAlignment, kAlignment); chunk = (HeapAllocator *)ptr; // Reserve first HEAP_RESERVED_SLOTS slots memset(chunk->alloc_map, 0xff, HEAP_RESERVED_SLOTS / 8); // Clear the rest of reserved space memset(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(chunk->alloc_map) + (HEAP_RESERVED_SLOTS / 8)), 0, HEAP_ALLOC_MAP_SIZE * 2 - (HEAP_RESERVED_SLOTS / 8)); for (int i=0; i<HEAP_SMALL_SPACE_LOG; i++) chunk->info.m_small_indicies[i] = HEAP_BLOCKS-1; chunk->info.m_large_index = 0; chunk->Initialize(heap, reinterpret_cast<internal::Address>(chunk), kAlignment, reinterpret_cast<internal::Address>(chunk), reinterpret_cast<internal::Address>(chunk) - 1, internal::Executability::NOT_EXECUTABLE, nullptr, nullptr); } else { if (!alloc) { // Reset indicies for (int i=0; i<HEAP_SMALL_SPACE_LOG; i++) chunk->info.m_small_indicies[i] = HEAP_BLOCKS-1; chunk->info.m_large_index = 0; } } assert(alloc || chunk); } memset(alloc, 0, size); HeapObject * o = reinterpret_cast<HeapObject*>(alloc); if (!map) { // We are a map. Point to ourselves map = reinterpret_cast<BaseMap*>(o); } o->m_map = reinterpret_cast<internal::Map*>(reinterpret_cast<intptr_t>(map) + internal::kHeapObjectTag); heapimpl->m_allocated += actual_used_slots * HEAP_SLOT_SIZE; return o; } int HeapAllocator::Deallocate(HeapContext& context, HeapObject *obj) { if (context.deallocated_.count(obj)) { // This has already been deallocated in this GC session, don't do it again return 0; } intptr_t addr = reinterpret_cast<intptr_t>(obj); intptr_t chunk_addr = addr & ~(HEAP_ALIGNMENT - 1); HeapAllocator *chunk = reinterpret_cast<HeapAllocator*>(chunk_addr); IsolateImpl* iso = obj->GetIsolate(); internal::Heap *heap = reinterpret_cast<internal::Isolate*>(iso)->heap(); HeapImpl *heapimpl = reinterpret_cast<HeapImpl*>(heap); // If there are any primitive weak handles, perform callbacks now before we blow them away internal::Object *h = ToHeapPointer(obj); if (context.weak_.count(h)) { for (auto i=context.weak_[h].begin(); i != context.weak_[h].end(); ++i) { iso->weakObjectNearDeath(*i, context.callbacks_, 0); } } int freed = ((BaseMap*)FromHeapPointer(obj->m_map))->dtor(context, obj); int slot = (int) (addr - chunk_addr) / HEAP_SLOT_SIZE; int index = slot / 64; int pos = slot % 64; int size = 0; BaseMap* map = (BaseMap*) FromHeapPointer(obj->m_map); if (map == iso->m_fixed_array_map) { FixedArray *fa = static_cast<FixedArray*>(obj); size = sizeof(FixedArray) + fa->m_size * sizeof(internal::Object*); } else { size = map->size; } assert((void*)map != (void*)obj); uint32_t actual_used_slots = ((size - 1) / HEAP_SLOT_SIZE) + 1; freed += actual_used_slots * HEAP_SLOT_SIZE; memset(obj,0xee,actual_used_slots*HEAP_SLOT_SIZE); while(actual_used_slots >= 64) { assert(pos == 0); chunk->alloc_map[index++] = 0; actual_used_slots -= 64; } uint64_t mask = (((uint64_t)1 << actual_used_slots) - 1) << pos; assert((chunk->alloc_map[index] & mask) == mask); chunk->alloc_map[index] &= ~mask; // SmartReset may cause objects to get deallocated before the collector gets to them. // Keep track of deallocated objects to ensure we don't deallocate them again. // Ideally, we would just remove this object from the context.allocated_ set, but // C++ iterators make this tough. So we will keep a separate list. context.deallocated_.insert(obj); heapimpl->m_allocated -= freed; return freed; } bool HeapAllocator::CollectGarbage(v8::internal::IsolateImpl *iso) { HandleScope scope(reinterpret_cast<Isolate*>(iso)); // References to heap objects are stored in the following places: // 1. The current HandleScope // 2. The global handle table // 3. Elements in a FixedArray // // The first pointer in each HeapObject is the map, which is also a heap object pointer. However, // maps are forever, so they will be skipped by the garbage collector. We need to keep track of this // if we happen to decide to implement HeapObject relocation. // // There shouldn't be any other non-transient references. iso->m_pending_garbage_collection = false; HeapContext context; // 1. Walk through local handles and add to our canonical list iso->GetActiveLocalHandles(context); // 2. Walk through global handles (separating out weak references) iso->getGlobalHandles(context); // 3. Walk through the heap and capture all non-map references. If we happen along a FixedArray, also // add its elements to the canonical handle list internal::Heap *heap = reinterpret_cast<internal::Isolate*>(iso)->heap(); HeapImpl *heapimpl = reinterpret_cast<HeapImpl*>(heap); HeapAllocator *chunk = static_cast<HeapAllocator*>(heapimpl->m_heap_top); while (chunk) { int slot = HEAP_RESERVED_SLOTS; while (slot < HEAP_SLOTS) { int index = slot / 64; int pos = slot % 64; uint64_t mask = (uint64_t)1 << pos; if (chunk->alloc_map[index] & mask) { intptr_t addr = reinterpret_cast<intptr_t>(chunk) + (index*64 + pos)*HEAP_SLOT_SIZE; HeapObject *obj = reinterpret_cast<HeapObject*>(addr); // Ignore maps int size = 0; if (obj->m_map != ToHeapPointer(obj)) { BaseMap* map = (BaseMap*) FromHeapPointer(obj->m_map); if (map == iso->m_fixed_array_map) { FixedArray *fa = static_cast<FixedArray*>(obj); size = sizeof(FixedArray) + fa->m_size * sizeof(internal::Object*); for (int j=0; j<fa->m_size; j++) { if (fa->m_elements[j]->IsHeapObject()) { int count = context.handles_.count(fa->m_elements[j]) ? context.handles_[fa->m_elements[j]] + 1 : 1; context.handles_[fa->m_elements[j]] = count; } } } else { size = map->size; } context.allocated_.insert(obj); } else { size = sizeof(BaseMap); } uint32_t actual_used_slots = ((size - 1) / HEAP_SLOT_SIZE) + 1; slot += actual_used_slots; } else { slot++; } } chunk = static_cast<HeapAllocator*>(chunk->next_chunk()); } // Now we have a list of all the allocated memory locations ('context.allocated_') and a map // of those locations that are actually in use ('context.handles_'). // We will walk through the 'context.allocated_' list, and if it is not referenced in 'context.handles_', // we will call its destructor and deallocate its memory. // The destructors may then trigger further deallocations. We keep track of those deallocations // in 'context.deallocated_' to ensure they aren't deallocated twice. int freed = 0; int freed_chunks = 0; int used_chunks = 0; for (auto it = context.allocated_.begin(); it != context.allocated_.end(); ++it) { if (context.handles_.count(ToHeapPointer(*it)) == 0) { freed += Deallocate(context, *it); } } // Finally, deallocate any chunks that are completely free and reset the indicies if (freed > 0) { chunk = static_cast<HeapAllocator*>(heapimpl->m_heap_top); assert(chunk); while (chunk) { bool used = false; for (int i=HEAP_RESERVED_SLOTS/64; i< HEAP_SLOTS/64; i++) { if (chunk->alloc_map[i] != 0) { used = true; break; } } HeapAllocator *next = static_cast<HeapAllocator*>(chunk->next_chunk()); if (used) { // Reset all indicies for (int i=0; i<HEAP_SMALL_SPACE_LOG; i++) chunk->info.m_small_indicies[i] = HEAP_BLOCKS-1; chunk->info.m_large_index = 0; used_chunks ++; } else { if (chunk->prev_chunk()) { chunk->prev_chunk()->set_next_chunk(chunk->next_chunk()); } else { heapimpl->m_heap_top = chunk->next_chunk(); } if (chunk->next_chunk()) { chunk->next_chunk()->set_prev_chunk(chunk->prev_chunk()); } free(chunk); freed_chunks ++; } chunk = next; } } // Make any second pass phantom callbacks for primtive values for (auto i=context.callbacks_.begin(); i!= context.callbacks_.end(); ) { iso->weakHeapObjectFinalized(reinterpret_cast<v8::Isolate*>(iso), *i); context.callbacks_.erase(i); } // And second pass phantom calls for object values that are ready for (auto i=iso->m_second_pass_callbacks.begin(); i!= iso->m_second_pass_callbacks.end(); ) { if ((*i).ready_to_call) { iso->weakHeapObjectFinalized(reinterpret_cast<v8::Isolate*>(iso), *i); iso->m_second_pass_callbacks.erase(i); } else { ++i; } } assert(context.callbacks_.empty()); /* if (freed > 0) { printf ("V82JSC Garbage Collector: Freed %d bytes; Deallocated %d / %d kB chunks; %d kB in use\n", freed, freed_chunks * 512, (freed_chunks+used_chunks) * 512, used_chunks * 512); } */ return true; } void HeapAllocator::TearDown(IsolateImpl *isolate) { internal::Heap *heap = reinterpret_cast<internal::Isolate*>(isolate)->heap(); HeapImpl *heapimpl = reinterpret_cast<HeapImpl*>(heap); HeapAllocator *chunk = static_cast<HeapAllocator*>(heapimpl->m_heap_top); auto iso = reinterpret_cast<internal::IsolateImpl*>(isolate); HeapContext context; context.force_ = true; while (chunk) { int slot = HEAP_RESERVED_SLOTS; while (slot < HEAP_SLOTS) { int index = slot / 64; int pos = slot % 64; uint64_t mask = (uint64_t)1 << pos; if (chunk->alloc_map[index] & mask) { intptr_t addr = reinterpret_cast<intptr_t>(chunk) + (index*64 + pos)*HEAP_SLOT_SIZE; HeapObject *obj = reinterpret_cast<HeapObject*>(addr); // Ignore maps int size = 0; if (obj->m_map != ToHeapPointer(obj)) { BaseMap* map = (BaseMap*) FromHeapPointer(obj->m_map); if (map == iso->m_fixed_array_map) { FixedArray *fa = static_cast<FixedArray*>(obj); size = sizeof(FixedArray) + fa->m_size * sizeof(internal::Object*); } else { size = map->size; } ((BaseMap*)FromHeapPointer(obj->m_map))->dtor(context, obj); } else { size = sizeof(BaseMap); } uint32_t actual_used_slots = ((size - 1) / HEAP_SLOT_SIZE) + 1; slot += actual_used_slots; } else { slot++; } } auto done = chunk; chunk = static_cast<HeapAllocator*>(chunk->next_chunk()); free(done); } } internal::MemoryChunk* internal::MemoryChunk::Initialize(internal::Heap* heap, internal::Address base, size_t size, internal::Address area_start, internal::Address area_end, internal::Executability executable, internal::Space* owner, VirtualMemory* reservation) { HeapImpl *heapimpl = reinterpret_cast<HeapImpl*>(heap); MemoryChunk *chunk = reinterpret_cast<MemoryChunk*>(base); memset(chunk, 0, sizeof(MemoryChunk)); if (heapimpl->m_heap_top) static_cast<MemoryChunk*>(heapimpl->m_heap_top)->set_prev_chunk(chunk); chunk->set_prev_chunk(nullptr); chunk->set_next_chunk(heapimpl->m_heap_top); heapimpl->m_heap_top = chunk; chunk->heap_ = heap; return chunk; }
8,737
2,111
<gh_stars>1000+ /* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the NVIDIA CORPORATION nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once #include <nvbio/basic/types.h> #include <nvbio/basic/numbers.h> #include <thrust/device_vector.h> namespace nvbio { namespace cuda { ///\page work_queue_page Work-Queues /// ///\par /// This module contains a series of classes that implement a variety of CUDA work-queues. /// A work-queue is an object which allows to execute (or consume) a stream of work items /// according to different schedulers. /// Notably, there's two distinguishing features: /// - <em><b>continuations:</b></em> /// work items can produce <i>continuations</i>: breaking up long computations in shorter /// pieces and using smart schedulers might allow to get better utilization when the execution /// time of individual work items is highly non-uniform; /// - <em><b>capacity constraints:</b></em> /// queues can be assigned a <i>maximum capacity</i>, which can be used to control the amount /// of resources consumed to execute the work items in parallel (e.g. if each work item needs /// 1MB of temporary storage, on a 4GB GPU one might only execute 4k items in parallel) /// ///\section Work-Streams ///\par /// The user of these classes have to specify a WorkStream class responsible for feeding work /// to the queue in the shape of a subclass WorkStream::WorkUnit. /// The latter is responsible for specifying the data and execution of each unit. /// WorkStream has to implement the following interface: /// /// \code /// interface WorkStream /// { /// uint32 size() const /// void get(const uint32 i, WorkUnit* unit, const uint2 queue_slot) /// } /// \endcode ///\par /// queue_slot specifies a (queue position, queue id) pair, assuming there can be one /// input and one output continuation queue which are swapped among iterations. /// Knowing the queue slot can be useful to bind external data to a work-unit. ///\par /// When the method WorkQueue::consume( stream ) is called, the queue will launch a kernel /// to consume all WorkUnit's in the stream. /// WorkUnit has to implement a single method: /// /// \code /// bool WorkUnit::run(const WorkStream& context) /// \endcode ///\par /// which should run the associated work and indicate whether the unit has finished execution, /// or whether it has produced a continuation (stored in the WorkUnit itself), that has to be /// run further. The WorkQueue will automatically queue the continuation for later execution. ///\par /// Optionally, the class can also be passed a WorkMover which is responsible for moving /// external data attached to any WorkUnit when its continuation gets assigned a new execution /// slot. This must implement a method: /// /// \code /// void move( /// const WorkStream& stream, /// const uint2 src_slot, WorkUnit* src_unit, /// const uint2 dst_slot, WorkUnit* dst_unit) const; /// \endcode /// ///\section WorkQueueExampleSection Example /// /// \code /// struct MyWorkStream; /// /// // A work unit returning a continuation for odd indices. /// // /// struct MyWorkUnit /// { /// // construct this work unit /// __device__ MyWorkUnit(const uint32 _i) : i(_i) {} /// /// // run this work unit /// __device__ bool run(MyWorkStream&); /// /// private: /// uint32 i; /// } /// /// // A stream of work units /// // /// struct MyWorkStream /// { /// // construct this work stream /// MyWorkStream(const _size) : m_size(_size) {} /// /// // return the size of the stream /// __host__ __device__ uint32 size() const { return m_size; } /// /// // get a work unit, assigned to a given execution slot /// __device__ void get(const uint32 i, MyWorkUnit* unit, const uint2 execution_slot) const; /// /// private: /// uint32 m_size; /// } /// /// // get a work unit /// __device__ void MyWorkStream::get(const uint32 i, MyWorkUnit* unit, const uint2 execution_slot) const { *unit = MyWorkUnit(i); } /// /// // run the work unit /// __device__ bool MyWorkUnit::run(MyWorkStream&) { if (i&1) { i/=2; return true; return false; } /// /// void test() /// { /// // instantiate a work stream /// MyWorkStream work_stream( 1024*1024 ); /// /// // instantiated a work queue /// cuda::WorkQueue<cuda::InplaceQueueTag,MyWorkUnit> work_queue; /// /// // consume all work in the work stream /// work_queue.consume( work_stream ); /// } /// \endcode /// ///\section WorkQueueSchedulersSection Work-Queue Schedulers /// /// The WorkQueue class is parameterized by a template tag parameter specifying the scheduler. /// The available schedulers are: /// /// - InplaceQueueTag (see WorkQueue) /// - MultiPassQueueTag (see WorkQueue<MultiPassQueueTag,WorkUnitT,BLOCKDIM>) /// - PersistentWarpsQueueTag (see WorkQueue<PersistentWarpsQueueTag,WorkUnitT,BLOCKDIM>) /// - PersistentThreadsQueueTag (see WorkQueue<PersistentThreadsQueueTag,WorkUnitT,BLOCKDIM>) /// - OrderedQueueTag (see WorkQueue<OrderedQueueTag,WorkUnitT,BLOCKDIM>) /// /// ///@defgroup WorkQueue Work-Queues /// /// This module contains a series of classes that implement a variety of CUDA work-queues. /// A work-queue is an object which allows to execute (or consume) a stream of work items /// according to different schedulers. /// See \ref work_queue_page for more details. ///@{ /// // default tag struct InplaceQueueTag {}; // a simple class to keep track of utilization stats struct WorkQueueStats; struct WorkQueueStatsView; // return a device-side view of a stats object inline WorkQueueStatsView view(WorkQueueStats* stats); /// /// a work-queue stats event /// enum WorkQueueStatsEvent { STREAM_EVENT = 0, RUN_EVENT = 1, }; /// /// a device-side view /// struct WorkQueueStatsView { /// default constructor /// NVBIO_FORCEINLINE NVBIO_HOST_DEVICE WorkQueueStatsView() : active_lanes(NULL), issued_warps(NULL), iterations(NULL) {} /// constructor /// NVBIO_FORCEINLINE NVBIO_HOST_DEVICE WorkQueueStatsView(uint64* _active_lanes, uint64* _issued_warps, uint64* _iterations) : active_lanes(_active_lanes), issued_warps(_issued_warps), iterations(_iterations) {} /// sample utilization /// NVBIO_FORCEINLINE NVBIO_DEVICE void sample(const WorkQueueStatsEvent type); /// sample avg/max iterations /// NVBIO_FORCEINLINE NVBIO_DEVICE void sample_iterations(const uint32 i); /// is the view valid /// NVBIO_FORCEINLINE NVBIO_DEVICE bool valid() const { return active_lanes != NULL; } uint64* active_lanes; uint64* issued_warps; uint64* iterations; }; /// /// generic implementation of a move function for WorkUnit's /// /// This class is responsible for moving any external payload bound to a work-unit, /// and gets invoked when the work-queue changes the execution slot of a continuation /// relative to its parent. /// struct DefaultMover { template <typename WorkStreamT, typename WorkUnitT> NVBIO_FORCEINLINE NVBIO_HOST_DEVICE void move( const WorkStreamT& stream, const uint2 src_slot, WorkUnitT* src_unit, const uint2 dst_slot, WorkUnitT* dst_unit) const { // call WorkUnitT's copy operator and call it a day *dst_unit = *src_unit; } }; /// Implements a parallel work queue interface (see \ref work_queue_page). /// This default implementation employs a single kernel launch with static thread assignment /// and in-place execution of a work-unit and all its continuations. /// It has very low continuation overhead, but it might suffer from poor SIMT utilization /// when work-units have wildly varying number of continuations. /// template < typename PolicyTag, typename WorkUnitT, uint32 BLOCKDIM> struct WorkQueue { typedef WorkUnitT WorkUnit; /// constructor /// WorkQueue() {} /// set queue capacity. /// /// In this context, the queue capacity is the maximum amount of persistent threads /// used to run the stream. /// Limiting it might be useful when the work-units reference some limited external /// temporary storage. /// void set_capacity(const uint32 capacity) {} /// consume a stream of work units /// template <typename WorkStream> void consume(const WorkStream stream, WorkQueueStats* stats = NULL) { consume( stream, DefaultMover(), stats ); } /// consume a stream of work units /// template <typename WorkStream, typename WorkMover> void consume(const WorkStream stream, const WorkMover mover, WorkQueueStats* stats = NULL); }; /// /// a simple class to keep track of utilization stats /// struct WorkQueueStats { typedef WorkQueueStatsView View; /// default constructor /// WorkQueueStats() : counters(7,0) {} /// clear all stats /// void clear() { thrust::fill( counters.begin(), counters.end(), uint64(0u) ); } /// return a device-side view /// View view() { return View( thrust::raw_pointer_cast( &counters.front() ), thrust::raw_pointer_cast( &counters.front() ) + 2u, thrust::raw_pointer_cast( &counters.front() ) + 4u ); } /// return measured utilization /// float utilization(const WorkQueueStatsEvent type) const { return counters[2 + type] ? float(counters[0 + type])/float(counters[2 + type]*cuda::Arch::WARP_SIZE) : 1.0f; } /// return measured iterations /// float avg_iterations() const { return counters[6] ? float(counters[4])/float(counters[6]) : 0.0f; } /// return measured iterations /// float max_iterations() const { return float(counters[5]); } private: thrust::device_vector<uint64> counters; }; /// return a device-side view /// inline WorkQueueStatsView view(WorkQueueStats* stats) { return stats ? stats->view() : WorkQueueStatsView(); } ///@} // WorkQueue } // namespace cuda } // namespace nvbio #include <nvbio/basic/cuda/work_queue_inl.h> #include <nvbio/basic/cuda/work_queue_persistent.h> #include <nvbio/basic/cuda/work_queue_ordered.h> #include <nvbio/basic/cuda/work_queue_multipass.h>
3,836
1,664
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ambari.server.utils; import java.util.List; import java.util.ListIterator; public class CustomStringUtils { /** * <code>CustomStringUtils</code> instances should NOT be constructed in * standard programming. Instead, the class should be used as * <code>CustomStringUtils.containsCaseInsensitive("foo", arrayList)</code> */ public CustomStringUtils(){ super(); } /** * Returns <tt>true</tt> if this list contains the specified string element, ignoring case considerations. * @param s element whose presence in this list is to be tested * @param l list of strings, where presence of string element would be checked * @return <tt>true</tt> if this list contains the specified element */ public static boolean containsCaseInsensitive(String s, List<String> l){ for (String listItem : l){ if (listItem.equalsIgnoreCase(s)){ return true; } } return false; } /** * Make list of string lowercase * @param l list of strings, which need to be in lowercase */ public static void toLowerCase(List<String> l) { ListIterator<String> iterator = l.listIterator(); while (iterator.hasNext()) { iterator.set(iterator.next().toLowerCase()); } } /** * Make list of string lowercase * @param l list of strings, which need to be in lowercase */ public static void toUpperCase(List<String> l) { ListIterator<String> iterator = l.listIterator(); while (iterator.hasNext()) { iterator.set(iterator.next().toUpperCase()); } } }
706
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #if ! defined INCLUDED_SLIDESHOW_CLIPPINGFUNCTOR_HXX #define INCLUDED_SLIDESHOW_CLIPPINGFUNCTOR_HXX #include <basegfx/numeric/ftools.hxx> #include <basegfx/vector/b2dsize.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> #include <transitioninfo.hxx> #include <parametricpolypolygon.hxx> namespace slideshow { namespace internal { /** Generates the final clipping polygon. This class serves as the functor, which generates the final clipping polygon from a given ParametricPolyPolygon and a TransitionInfo. The ParametricPolyPolygon can be obtained from the ParametricPolyPolygonFactory, see there. The TransitionInfo further parameterizes the polygon generated by the ParametricPolyPolygon, with common modifications such as rotation, flipping, or change of direction. This allows the ParametricPolyPolygonFactory to provide only prototypical shapes, with the ClippingFunctor further customizing the output. */ class ClippingFunctor { public: ClippingFunctor( const ParametricPolyPolygonSharedPtr& rPolygon, const TransitionInfo& rTransitionInfo, bool bDirectionForward, bool bModeIn ); /** Generate clip polygon. @param nValue Value to generate the polygon for. Must be in the range [0,1]. @param rTargetSize Size the clip polygon should cover. This is typically the size of the object the effect is applied on. */ ::basegfx::B2DPolyPolygon operator()( double nValue, const ::basegfx::B2DSize& rTargetSize ); private: ParametricPolyPolygonSharedPtr mpParametricPoly; ::basegfx::B2DHomMatrix maStaticTransformation; // AW: Not needed // ::basegfx::B2DPolyPolygon maBackgroundRect; bool mbForwardParameterSweep; bool mbSubtractPolygon; const bool mbScaleIsotrophically; bool mbFlip; }; } } #endif /* INCLUDED_SLIDESHOW_CLIPPINGFUNCTOR_HXX */
1,542
377
<gh_stars>100-1000 from typing import Callable, Optional, Tuple import equinox as eqx import jax import jax.flatten_util as fu import jax.lax as lax import jax.numpy as jnp import jax.scipy as jsp from ..custom_types import Bool, Int, PyTree, Scalar from ..misc import rms_norm from ..solution import RESULTS from .base import AbstractNonlinearSolver, LU_Jacobian, NonlinearSolution def _small(diffsize: Scalar) -> Bool: # TODO: make a more careful choice here -- the existence of this function is # pretty ad-hoc. resolution = 10 ** (2 - jnp.finfo(diffsize.dtype).precision) return diffsize < resolution def _diverged(rate: Scalar) -> Bool: return ~jnp.isfinite(rate) | (rate > 2) def _converged(factor: Scalar, tol: Scalar) -> Bool: return (factor > 0) & (factor < tol) # TODO: different implementations do slightly different things. Not clear which is # optimal, so both of the following should be considered up-for-debate. # # (1) The value `scale`. # - SciPy uses a vector-valued `scale` for each element of `x`, computed on the # initial value. # - OrdinaryDiffEq.jl uses a scalar-valued `scale`, recomputed on every # iteration. # Just to keep life interesting, we're using a scalar-valued `scale` computed on # the initial value. # # (2) The divergence criteria. # - SciPy uses the very strict criteria of checking whether `rate >= 1` for # divergence (plus an additional criterion comparing against tolerance.) # - OrdinaryDiffEq.jl just checks whether `rate > 2`. # We follow OrdinaryDiffEq.jl's more permissive approach here. # TODO: there's some of tricks for improving Newton's method, specifically when # solving implicit ODEs. Several have already been implemented. Some remaing ones: # - The minimum number of iterations: it's possible to use only a single iteration. # - Choice of initial guess. # - Transform Jacobians into W, in particular when treating FIRKs. # - (+The entire space of quasi-Newton methods.) class NewtonNonlinearSolver(AbstractNonlinearSolver): """Newton's method for root-finding. (Also known as Newton--Raphson.) Also supports the quasi-Newton chord method. !!! info If using this as part of a implicit ODE solver, then: - An adaptive step size controller should be used (e.g. `diffrax.PIDController`). This will allow smaller steps to be made if the nonlinear solver fails to converge. - As a general rule, the values for `rtol` and `atol` should be set to the same values as used for the adaptive step size controller. (And this will happen automatically by default.) - The value for `kappa` should usually be left alone. !!! warning Note that backpropagation through `__call__` may not produce accurate values if `tolerate_nonconvergence=True`, as the backpropagation calculation implicitly assumes that the forward pass converged. """ max_steps: Optional[Int] = 10 kappa: Scalar = 1e-2 norm: Callable = rms_norm tolerate_nonconvergence: bool = False def __post_init__(self): if self.max_steps is not None and self.max_steps < 2: raise ValueError("max_steps must be at least 2.") def _solve( self, fn: callable, x: PyTree, jac: Optional[LU_Jacobian], nondiff_args: PyTree, diff_args: PyTree, ) -> Tuple[PyTree, RESULTS]: args = eqx.combine(nondiff_args, diff_args) rtol = 1e-3 if self.rtol is None else self.rtol atol = 1e-6 if self.atol is None else self.atol scale = atol + rtol * self.norm(x) flat, unflatten = fu.ravel_pytree(x) if flat.size == 0: return NonlinearSolution(root=x, num_steps=0, result=RESULTS.successful) curried = lambda z: fu.ravel_pytree(fn(unflatten(z), args))[0] def cond_fn(val): _, step, diffsize, diffsize_prev = val rate = diffsize / diffsize_prev factor = diffsize * rate / (1 - rate) if self.max_steps is None: step_okay = True else: step_okay = step < self.max_steps not_small = ~_small(diffsize) not_diverged = ~_diverged(rate) not_converged = ~_converged(factor, self.kappa) return step_okay & not_small & not_diverged & not_converged def body_fn(val): flat, step, diffsize, _ = val fx = curried(flat) if jac is None: _jac = jax.jacfwd(curried)(flat) diff = jsp.linalg.solve(_jac, fx) else: diff = jsp.linalg.lu_solve(jac, fx) flat = flat - diff diffsize_prev = diffsize diffsize = self.norm(diff / scale) val = (flat, step + 1, diffsize, diffsize_prev) return val # Unconditionally execute two loops to fill in diffsize and diffsize_prev. val = (flat, 0, None, None) val = body_fn(val) val = body_fn(val) val = lax.while_loop(cond_fn, body_fn, val) flat, num_steps, diffsize, diffsize_prev = val if self.tolerate_nonconvergence: result = RESULTS.successful else: rate = diffsize / diffsize_prev factor = diffsize * rate / (1 - rate) converged = _converged(factor, self.kappa) diverged = _diverged(rate) small = _small(diffsize) result = jnp.where( converged, RESULTS.successful, RESULTS.implicit_nonconvergence ) result = jnp.where(diverged, RESULTS.implicit_divergence, result) result = jnp.where(small, RESULTS.successful, result) root = unflatten(flat) return NonlinearSolution(root=root, num_steps=num_steps, result=result) NewtonNonlinearSolver.__init__.__doc__ = """ **Arguments:** - `max_steps`: The maximum number of steps allowed. If more than this are required then the iteration fails. Set to `None` to allow an arbitrary number of steps. - `rtol`: The relative tolerance for determining convergence. If using an adaptive step size controller, will default to the same `rtol`. Else defaults to `1e-3`. - `atol`: The absolute tolerance for determining convergence. If using an adaptive step size controller, will default to the same `atol`. Else defaults to `1e-6`. - `kappa`: The kappa value for determining convergence. - `norm`: A function `PyTree -> Scalar`, which is called to determine the size of the current value. (Used in determining convergence.) - `tolerate_nonconvergence`: Whether to return an error code if the iteration fails to converge (or to silently pretend it was successful). """
2,654
1,425
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tinkerpop.gremlin.driver; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.Channel; import io.netty.channel.ChannelInitializer; import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioServerSocketChannel; import io.netty.handler.logging.LogLevel; import io.netty.handler.logging.LoggingHandler; /** * Simple Netty Server */ public class SimpleSocketServer { public static final int PORT = 45940; private EventLoopGroup bossGroup; private EventLoopGroup workerGroup; public Channel start(final ChannelInitializer<SocketChannel> channelInitializer) throws InterruptedException { bossGroup = new NioEventLoopGroup(1); workerGroup = new NioEventLoopGroup(); final ServerBootstrap b = new ServerBootstrap(); b.group(bossGroup, workerGroup) .channel(NioServerSocketChannel.class) .handler(new LoggingHandler(LogLevel.INFO)) .childHandler(channelInitializer); return b.bind(PORT).sync().channel(); } public void stop() { bossGroup.shutdownGracefully(); workerGroup.shutdownGracefully(); } }
653
52,316
import os import unittest from test import support from test.support import import_helper # skip tests if _ctypes was not built ctypes = import_helper.import_module('ctypes') ctypes_symbols = dir(ctypes) def need_symbol(name): return unittest.skipUnless(name in ctypes_symbols, '{!r} is required'.format(name)) def load_tests(*args): return support.load_package_tests(os.path.dirname(__file__), *args)
174
2,661
/* include/graphics/SkOSSound.h ** ** Copyright 2006, Google Inc. ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. */ #ifndef SkOSSound_DEFINED #define SkOSSound_DEFINED #include "SkTypes.h" class SkOSSound { public: static void Play(const char path[]); static void Pause(); static void Resume(); static bool TogglePause(); // returns true if we are now playing, or false if we're now paused static void Stop(); // volume runs from 0 (silent) to 0xFF (max-volume) static uint8_t GetVolume(); static void SetVolume(U8CPU volume); }; #endif
337
490
from sys import argv from os.path import expanduser as expu, expandvars as expv from os.path import basename, dirname, abspath, exists from builtins import input from rm_protection.config import Config c = Config() def pprint(msg): global c print(c.protect_prefix + msg) def protect(protect_args=None): global c flags = '' option_end = False if not protect_args: protect_args = argv[1:] for arg in protect_args: if arg == '--': option_end = True elif (arg.startswith("-") and not option_end): flags = flags + arg[arg.rfind('-') + 1:] elif arg in c.invalid: pprint('"." and ".." may not be protected') else: path = abspath(expv(expu(arg))) evalpath = dirname(path) + "/." + basename(path) + c.suffix if not exists(path): pprint("Warning: " + path + " does not exist") with open(evalpath, "w") as f: question = input("Question for " + path + ": ") answer = input("Answer: ") f.write(question + "\n" + answer + "\n" + flags.upper()) if __name__ == "__main__": protect()
536
32,544
package com.baeldung.patterns.es.events; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; @Data @AllArgsConstructor @EqualsAndHashCode(callSuper = false) public class UserCreatedEvent extends Event { private String userId; private String firstName; private String lastName; }
110
438
<reponame>StuntsPT/toyplot # Copyright 2014, Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain # rights in this software. """Generate MPEG-4 videos.""" import logging import os import subprocess import toyplot.png log = logging.getLogger(__name__) # Verify that ffmpeg is installed, and check the version _ffmpeg_command = None _ffmpeg_version = None for command in ["ffmpeg"]: try: _ffmpeg_version = subprocess.check_output([command, "-version"]).decode(encoding="utf-8").strip() _ffmpeg_command = command log.info("Using %s.", _ffmpeg_version) except: # pragma: no cover pass def render( canvas, filename, width=None, height=None, scale=None, progress=None): """Render a canvas as an MPEG-4 video. By default, the canvas dimensions in CSS pixels are mapped directly to pixels in the output MPEG-4 video. Use one of `width`, `height`, or `scale` to override this behavior. Parameters ---------- canvas: :class:`toyplot.canvas.Canvas` Canvas to be rendered. filename: string Output video filename. width: number, optional Specify the width of the output video in pixels. height: number, optional Specify the height of the output video in pixels. scale: number, optional Ratio of output video pixels to `canvas` drawing units. progress: callback function taking a single `frame` argument, optional Callback function that will receive the number of each frame as it's written; useful to provide an indication of progress to end-users. Notes ----- The individual video frames are rendered using PNG representations of the canvas generated with :func:`toyplot.png.render_frames()`. Examples -------- >>> def callback(frame): ... print "Writing frame %s" % frame ... toyplot.mp4.render(canvas, "test.mp4", progress=callback) """ if _ffmpeg_command is None: raise RuntimeError("An ffmpeg executable is required.") # pragma: no cover command = [ _ffmpeg_command, "-f", "image2pipe", "-c", "png", "-i", "-", "-pix_fmt", "yuv420p", "-vcodec", "h264", "-preset", "slow", "-tune", "animation", "-crf", "17", "-y", filename, ] try: log.info("Running command: %s", " ".join(command)) ffmpeg = subprocess.Popen( command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) for frame, png in enumerate( toyplot.png.render_frames( canvas=canvas, width=width, height=height, scale=scale)): if progress is not None: progress(frame) ffmpeg.stdin.write(png) ffmpeg.stdin.close() ffmpeg.wait() except Exception as e: # pragma: no cover log.error(ffmpeg.stdout.read()) log.error(ffmpeg.stderr.read()) raise e
1,272
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vpu/middleend/pass_manager.hpp> #include <precision_utils.h> #include <utility> #include <memory> #include <set> #include <vpu/compile_env.hpp> #include <vpu/stages/stub_stage.hpp> #include <vpu/stages/mx_stage.hpp> #include <vpu/middleend/hw/tiling.hpp> #include <vpu/middleend/hw/utility.hpp> #include <vpu/middleend/hw/conv_tiling/hw_convolution_tiler.hpp> #include <vpu/middleend/hw/conv_tiling/hw_stage_tiler.hpp> namespace vpu { namespace { class PassImpl final : public Pass { public: explicit PassImpl(StageBuilder::Ptr stageBuilder) : _stageBuilder(std::move(stageBuilder)) {} void run(const Model& model) override; private: StageBuilder::Ptr _stageBuilder; }; void PassImpl::run(const Model& model) { VPU_PROFILE(hwConvTiling); for (const auto& origStage : model->getStages()) { if (origStage->type() != StageType::StubConv) { continue; } const auto tryHW = origStage->attrs().getOrDefault<bool>("tryHW", false); if (!tryHW) { continue; } const HWConvStageOptions stageOptions(origStage); const HWConvStageIO stageIO(origStage, origStage->output(0)); // // Unsupported paddings // // // Try to find "best" tiling // const size_t tilingsCount = 1; const HWTilingNS::Direction direction = HWTilingNS::Direction::INPUT_TO_OUTPUT; // HWTilingNS::Direction::OUTPUT_TO_INPUT; const auto convolutionOptions = HWTilingNS::ConvolutionOptions{ origStage->name(), stageIO.origInput->desc().dims(), stageIO.origOutput->desc().dims(), stageIO.origOutputDesc.dims(), stageOptions.kernelSizeX, stageOptions.kernelSizeY, stageOptions.kernelStride, stageOptions.padLeft, stageOptions.padRight, stageOptions.padTop, stageOptions.padBottom, stageOptions.withPool }; const HWTilingNS::HWConvolutionTiler tiler1stAttempt(convolutionOptions, direction, tilingsCount); const HWTilingNS::HWConvolutionTiler& tiler = [&] { if (!tiler1stAttempt.isTilingPossible() && tiler1stAttempt.withPool()) { const auto optionsWithoutPool = HWTilingNS::ConvolutionOptions{ origStage->name(), stageIO.origInput->desc().dims(), stageIO.origOutputDesc.dims(), stageIO.origOutputDesc.dims(), stageOptions.kernelSizeX, stageOptions.kernelSizeY, stageOptions.kernelStride, stageOptions.padLeft, stageOptions.padRight, stageOptions.padTop, stageOptions.padBottom, false }; return HWTilingNS::HWConvolutionTiler{optionsWithoutPool, direction, tilingsCount}; } else { return tiler1stAttempt; } }(); // // Use SW stage if tiling optimization failed // if (!tiler.isTilingPossible()) { origStage->attrs().set<bool>("tryHW", false); auto swConvOutput = stageIO.origOutput; if (stageOptions.withReLU || stageOptions.withPool || stageOptions.withClamp) { swConvOutput = model->addNewData(origStage->name(), stageIO.origOutputDesc); swConvOutput->attrs().copyFrom(stageIO.origOutput->attrs()); model->replaceStageOutput(origStage->outputEdge(0), swConvOutput); } auto hwPoolInput = swConvOutput; if (stageOptions.withReLU) { auto swReluOutput = stageIO.origOutput; if (stageOptions.withPool) { swReluOutput = model->addNewData(origStage->name() + "@ReLU", stageIO.origOutputDesc); swReluOutput->attrs().copyFrom(stageIO.origOutput->attrs()); } _stageBuilder->addReLUStage( model, origStage->name() + "@ReLU", origStage->origLayer(), stageOptions.negativeSlope, swConvOutput, swReluOutput); hwPoolInput = swReluOutput; } if (stageOptions.withClamp) { auto swClampOutput = stageIO.origOutput; if (stageOptions.withPool) { swClampOutput = model->addNewData(origStage->name() + "@Clamp", stageIO.origOutputDesc); swClampOutput->attrs().copyFrom(stageIO.origOutput->attrs()); } _stageBuilder->addClampStage( model, origStage->name() + "@Clamp", origStage->origLayer(), 0.0, stageOptions.clampMax, swConvOutput, swClampOutput); hwPoolInput = swClampOutput; } if (stageOptions.withPool) { auto hwPoolStage = model->addNewStage<StubStage>( origStage->name() + "@Pool", StageType::StubMaxPool, origStage->origLayer(), {hwPoolInput}, {stageIO.origOutput}); hwPoolStage->attrs().set<int>("kernelSizeX", stageOptions.poolKernelSizeX); hwPoolStage->attrs().set<int>("kernelSizeY", stageOptions.poolKernelSizeY); hwPoolStage->attrs().set<int>("kernelStrideX", stageOptions.poolKernelStride); hwPoolStage->attrs().set<int>("kernelStrideY", stageOptions.poolKernelStride); hwPoolStage->attrs().set<int>("padLeft", stageOptions.poolPadLeft); hwPoolStage->attrs().set<int>("padRight", stageOptions.poolPadRight); hwPoolStage->attrs().set<int>("padTop", stageOptions.poolPadTop); hwPoolStage->attrs().set<int>("padBottom", stageOptions.poolPadBottom); hwPoolStage->attrs().set<bool>("excludePad", false); hwPoolStage->attrs().set<bool>("tryHW", true); } continue; } model->disconnectStage(origStage); for (const auto &tiling : tiler.getHwTilings()) { HWConvStageTiler hwStageTiler( stageOptions, stageIO, model, origStage, _stageBuilder, tiling, stageOptions.withPool && !tiler.withPool()); // // Split/concat input/output tiles // if (!hwStageTiler.hwInputTiles.empty()) { _stageBuilder->addSplitStage( model, origStage->name() + "@split-input", origStage->origLayer(), std::move(hwStageTiler.hwInputTilesOffsets), hwStageTiler.hwInput, hwStageTiler.hwInputTiles); } if (!hwStageTiler.hwWeightsTiles.empty()) { _stageBuilder->addSplitStage( model, origStage->name() + "@split-input2", origStage->origLayer(), std::move(hwStageTiler.hwWeightsTilesOffsets), stageIO.origWeights, hwStageTiler.hwWeightsTiles); } if (!hwStageTiler.hwOutputTiles.empty()) { _stageBuilder->addConcatStage( model, origStage->name() + "@concat-output", origStage->origLayer(), std::move(hwStageTiler.hwOutputTilesOffsets), hwStageTiler.hwOutputTiles, hwStageTiler.hwOutput); } } // // Remove original stage // model->removeStage(origStage); } } } // namespace Pass::Ptr PassManager::hwConvTiling() { return std::make_shared<PassImpl>(_stageBuilder); } } // namespace vpu
4,361
329
// // DMSearchFieldCell.h // DotMail // // Created by <NAME> on 11/12/13. // Copyright (c) 2013 CodaFi Inc. All rights reserved. // #import <Cocoa/Cocoa.h> @interface DMSearchFieldCell : NSTextFieldCell <NSTextViewDelegate, NSLayoutManagerDelegate> - (id)_fieldEditor; @end
113
413
<reponame>developersancho/FolderResideMenu package com.dk.sample.folder.residemenu; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import com.squareup.picasso.Picasso; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * <NAME> */ public class GalleryFragment extends Fragment { static final String BASE = "http://i.imgur.com/"; static final String EXT = ".jpg"; static final String[] URLS = { BASE + "CqmBjo5" + EXT, BASE + "zkaAooq" + EXT, BASE + "0gqnEaY" + EXT, BASE + "9gbQ7YR" + EXT, BASE + "aFhEEby" + EXT, BASE + "0E2tgV7" + EXT, BASE + "P5JLfjk" + EXT, BASE + "nz67a4F" + EXT, BASE + "dFH34N5" + EXT, BASE + "FI49ftb" + EXT, BASE + "DvpvklR" + EXT, BASE + "DNKnbG8" + EXT, BASE + "yAdbrLp" + EXT, BASE + "55w5Km7" + EXT, BASE + "NIwNTMR" + EXT, BASE + "DAl0KB8" + EXT, BASE + "xZLIYFV" + EXT, BASE + "HvTyeh3" + EXT, BASE + "Ig9oHCM" + EXT, BASE + "7GUv9qa" + EXT, BASE + "i5vXmXp" + EXT, BASE + "glyvuXg" + EXT, BASE + "u6JF6JZ" + EXT, BASE + "ExwR7ap" + EXT, BASE + "Q54zMKT" + EXT, BASE + "9t6hLbm" + EXT, BASE + "F8n3Ic6" + EXT, BASE + "P5ZRSvT" + EXT, BASE + "jbemFzr" + EXT, BASE + "8B7haIK" + EXT, BASE + "aSeTYQr" + EXT, BASE + "OKvWoTh" + EXT, BASE + "zD3gT4Z" + EXT, BASE + "z77CaIt" + EXT, }; private GridView mGrid; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.gallery, container, false); mGrid = (GridView) view.findViewById(R.id.grid); mGrid.setAdapter(new SampleGridViewAdapter(getActivity())); mGrid.setFocusable(false); view.setFocusable(false); return view; } final class SampleGridViewAdapter extends BaseAdapter { private final Context context; private final List<String> urls = new ArrayList<String>(); public SampleGridViewAdapter(Context context) { this.context = context; // Ensure we get a different ordering of images on each run. Collections.addAll(urls, URLS); Collections.shuffle(urls); // Triple up the list. ArrayList<String> copy = new ArrayList<String>(urls); urls.addAll(copy); urls.addAll(copy); } @Override public View getView(int position, View convertView, ViewGroup parent) { SquaredImageView view = (SquaredImageView) convertView; if (view == null) { view = new SquaredImageView(context); view.setScaleType(ImageView.ScaleType.CENTER_CROP); } // Get the image URL for the current position. String url = getItem(position); // Trigger the download of the URL asynchronously into the image view. Picasso.with(context) // .load(url) // .placeholder(R.drawable.placeholder) // .fit() // .tag(context) // .into(view); return view; } @Override public int getCount() { return urls.size(); } @Override public String getItem(int position) { return urls.get(position); } @Override public long getItemId(int position) { return position; } } final class SquaredImageView extends ImageView { public SquaredImageView(Context context) { super(context); } public SquaredImageView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth()); } } }
2,002
573
<gh_stars>100-1000 // Copyright 2015, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // * Neither the name of ARM Limited nor the names of its contributors may be // used to endorse or promote products derived from this software without // specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // --------------------------------------------------------------------- // This file is auto generated using tools/generate_simulator_traces.py. // // PLEASE DO NOT EDIT. // --------------------------------------------------------------------- #ifndef VIXL_SIM_SQSHLU_2S_2OPIMM_TRACE_AARCH64_H_ #define VIXL_SIM_SQSHLU_2S_2OPIMM_TRACE_AARCH64_H_ const uint32_t kExpected_NEON_sqshlu_2S_2OPIMM[] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000008, 0x00000000, 0x00000010, 0x00000000, 0x00000020, 0x00000000, 0x00000040, 0x00000000, 0x00000080, 0x00000000, 0x00000100, 0x00000000, 0x00000200, 0x00000000, 0x00000400, 0x00000000, 0x00000800, 0x00000000, 0x00001000, 0x00000000, 0x00002000, 0x00000000, 0x00004000, 0x00000000, 0x00008000, 0x00000000, 0x00010000, 0x00000000, 0x00020000, 0x00000000, 0x00040000, 0x00000000, 0x00080000, 0x00000000, 0x00100000, 0x00000000, 0x00200000, 0x00000000, 0x00400000, 0x00000000, 0x00800000, 0x00000000, 0x01000000, 0x00000000, 0x02000000, 0x00000000, 0x04000000, 0x00000000, 0x08000000, 0x00000000, 0x10000000, 0x00000000, 0x20000000, 0x00000000, 0x40000000, 0x00000000, 0x80000000, 0x00000001, 0x00000002, 0x00000002, 0x00000004, 0x00000004, 0x00000008, 0x00000008, 0x00000010, 0x00000010, 0x00000020, 0x00000020, 0x00000040, 0x00000040, 0x00000080, 0x00000080, 0x00000100, 0x00000100, 0x00000200, 0x00000200, 0x00000400, 0x00000400, 0x00000800, 0x00000800, 0x00001000, 0x00001000, 0x00002000, 0x00002000, 0x00004000, 0x00004000, 0x00008000, 0x00008000, 0x00010000, 0x00010000, 0x00020000, 0x00020000, 0x00040000, 0x00040000, 0x00080000, 0x00080000, 0x00100000, 0x00100000, 0x00200000, 0x00200000, 0x00400000, 0x00400000, 0x00800000, 0x00800000, 0x01000000, 0x01000000, 0x02000000, 0x02000000, 0x04000000, 0x04000000, 0x08000000, 0x08000000, 0x10000000, 0x10000000, 0x20000000, 0x20000000, 0x40000000, 0x40000000, 0x80000000, 0x80000000, 0xffffffff, 0x00000002, 0x00000020, 0x00000004, 0x00000040, 0x00000008, 0x00000080, 0x00000010, 0x00000100, 0x00000020, 0x00000200, 0x00000040, 0x00000400, 0x00000080, 0x00000800, 0x00000100, 0x00001000, 0x00000200, 0x00002000, 0x00000400, 0x00004000, 0x00000800, 0x00008000, 0x00001000, 0x00010000, 0x00002000, 0x00020000, 0x00004000, 0x00040000, 0x00008000, 0x00080000, 0x00010000, 0x00100000, 0x00020000, 0x00200000, 0x00040000, 0x00400000, 0x00080000, 0x00800000, 0x00100000, 0x01000000, 0x00200000, 0x02000000, 0x00400000, 0x04000000, 0x00800000, 0x08000000, 0x01000000, 0x10000000, 0x02000000, 0x20000000, 0x04000000, 0x40000000, 0x08000000, 0x80000000, 0x10000000, 0xffffffff, 0x20000000, 0xffffffff, 0x40000000, 0xffffffff, 0x80000000, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000020, 0x0000007d, 0x00000040, 0x000000fa, 0x00000080, 0x000001f4, 0x00000100, 0x000003e8, 0x00000200, 0x000007d0, 0x00000400, 0x00000fa0, 0x00000800, 0x00001f40, 0x00001000, 0x00003e80, 0x00002000, 0x00007d00, 0x00004000, 0x0000fa00, 0x00008000, 0x0001f400, 0x00010000, 0x0003e800, 0x00020000, 0x0007d000, 0x00040000, 0x000fa000, 0x00080000, 0x001f4000, 0x00100000, 0x003e8000, 0x00200000, 0x007d0000, 0x00400000, 0x00fa0000, 0x00800000, 0x01f40000, 0x01000000, 0x03e80000, 0x02000000, 0x07d00000, 0x04000000, 0x0fa00000, 0x08000000, 0x1f400000, 0x10000000, 0x3e800000, 0x20000000, 0x7d000000, 0x40000000, 0xfa000000, 0x80000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x0000007d, 0x0000007e, 0x000000fa, 0x000000fc, 0x000001f4, 0x000001f8, 0x000003e8, 0x000003f0, 0x000007d0, 0x000007e0, 0x00000fa0, 0x00000fc0, 0x00001f40, 0x00001f80, 0x00003e80, 0x00003f00, 0x00007d00, 0x00007e00, 0x0000fa00, 0x0000fc00, 0x0001f400, 0x0001f800, 0x0003e800, 0x0003f000, 0x0007d000, 0x0007e000, 0x000fa000, 0x000fc000, 0x001f4000, 0x001f8000, 0x003e8000, 0x003f0000, 0x007d0000, 0x007e0000, 0x00fa0000, 0x00fc0000, 0x01f40000, 0x01f80000, 0x03e80000, 0x03f00000, 0x07d00000, 0x07e00000, 0x0fa00000, 0x0fc00000, 0x1f400000, 0x1f800000, 0x3e800000, 0x3f000000, 0x7d000000, 0x7e000000, 0xfa000000, 0xfc000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x0000007e, 0x0000007f, 0x000000fc, 0x000000fe, 0x000001f8, 0x000001fc, 0x000003f0, 0x000003f8, 0x000007e0, 0x000007f0, 0x00000fc0, 0x00000fe0, 0x00001f80, 0x00001fc0, 0x00003f00, 0x00003f80, 0x00007e00, 0x00007f00, 0x0000fc00, 0x0000fe00, 0x0001f800, 0x0001fc00, 0x0003f000, 0x0003f800, 0x0007e000, 0x0007f000, 0x000fc000, 0x000fe000, 0x001f8000, 0x001fc000, 0x003f0000, 0x003f8000, 0x007e0000, 0x007f0000, 0x00fc0000, 0x00fe0000, 0x01f80000, 0x01fc0000, 0x03f00000, 0x03f80000, 0x07e00000, 0x07f00000, 0x0fc00000, 0x0fe00000, 0x1f800000, 0x1fc00000, 0x3f000000, 0x3f800000, 0x7e000000, 0x7f000000, 0xfc000000, 0xfe000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x0000007f, 0x00007ffd, 0x000000fe, 0x0000fffa, 0x000001fc, 0x0001fff4, 0x000003f8, 0x0003ffe8, 0x000007f0, 0x0007ffd0, 0x00000fe0, 0x000fffa0, 0x00001fc0, 0x001fff40, 0x00003f80, 0x003ffe80, 0x00007f00, 0x007ffd00, 0x0000fe00, 0x00fffa00, 0x0001fc00, 0x01fff400, 0x0003f800, 0x03ffe800, 0x0007f000, 0x07ffd000, 0x000fe000, 0x0fffa000, 0x001fc000, 0x1fff4000, 0x003f8000, 0x3ffe8000, 0x007f0000, 0x7ffd0000, 0x00fe0000, 0xfffa0000, 0x01fc0000, 0xffffffff, 0x03f80000, 0xffffffff, 0x07f00000, 0xffffffff, 0x0fe00000, 0xffffffff, 0x1fc00000, 0xffffffff, 0x3f800000, 0xffffffff, 0x7f000000, 0xffffffff, 0xfe000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00007ffd, 0x00007ffe, 0x0000fffa, 0x0000fffc, 0x0001fff4, 0x0001fff8, 0x0003ffe8, 0x0003fff0, 0x0007ffd0, 0x0007ffe0, 0x000fffa0, 0x000fffc0, 0x001fff40, 0x001fff80, 0x003ffe80, 0x003fff00, 0x007ffd00, 0x007ffe00, 0x00fffa00, 0x00fffc00, 0x01fff400, 0x01fff800, 0x03ffe800, 0x03fff000, 0x07ffd000, 0x07ffe000, 0x0fffa000, 0x0fffc000, 0x1fff4000, 0x1fff8000, 0x3ffe8000, 0x3fff0000, 0x7ffd0000, 0x7ffe0000, 0xfffa0000, 0xfffc0000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00007ffe, 0x00007fff, 0x0000fffc, 0x0000fffe, 0x0001fff8, 0x0001fffc, 0x0003fff0, 0x0003fff8, 0x0007ffe0, 0x0007fff0, 0x000fffc0, 0x000fffe0, 0x001fff80, 0x001fffc0, 0x003fff00, 0x003fff80, 0x007ffe00, 0x007fff00, 0x00fffc00, 0x00fffe00, 0x01fff800, 0x01fffc00, 0x03fff000, 0x03fff800, 0x07ffe000, 0x07fff000, 0x0fffc000, 0x0fffe000, 0x1fff8000, 0x1fffc000, 0x3fff0000, 0x3fff8000, 0x7ffe0000, 0x7fff0000, 0xfffc0000, 0xfffe0000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00007fff, 0x33333333, 0x0000fffe, 0x66666666, 0x0001fffc, 0xcccccccc, 0x0003fff8, 0xffffffff, 0x0007fff0, 0xffffffff, 0x000fffe0, 0xffffffff, 0x001fffc0, 0xffffffff, 0x003fff80, 0xffffffff, 0x007fff00, 0xffffffff, 0x00fffe00, 0xffffffff, 0x01fffc00, 0xffffffff, 0x03fff800, 0xffffffff, 0x07fff000, 0xffffffff, 0x0fffe000, 0xffffffff, 0x1fffc000, 0xffffffff, 0x3fff8000, 0xffffffff, 0x7fff0000, 0xffffffff, 0xfffe0000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x33333333, 0x55555555, 0x66666666, 0xaaaaaaaa, 0xcccccccc, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x55555555, 0x7ffffffd, 0xaaaaaaaa, 0xfffffffa, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x7ffffffd, 0x7ffffffe, 0xfffffffa, 0xfffffffc, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x7ffffffe, 0x7fffffff, 0xfffffffc, 0xfffffffe, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x7fffffff, 0x00000000, 0xfffffffe, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, }; const unsigned kExpectedCount_NEON_sqshlu_2S_2OPIMM = 992; #endif // VIXL_SIM_SQSHLU_2S_2OPIMM_TRACE_AARCH64_H_
11,846
12,278
<filename>ReactNativeFrontend/ios/Pods/boost/boost/gil/dynamic_step.hpp<gh_stars>1000+ // // Copyright 2005-2007 Adobe Systems Incorporated // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #ifndef BOOST_GIL_DYNAMIC_STEP_HPP #define BOOST_GIL_DYNAMIC_STEP_HPP #include <boost/gil/concepts/dynamic_step.hpp> namespace boost { namespace gil { /// Base template for types that model HasDynamicXStepTypeConcept. template <typename IteratorOrLocatorOrView> struct dynamic_x_step_type; /// Base template for types that model HasDynamicYStepTypeConcept. template <typename LocatorOrView> struct dynamic_y_step_type; /// Base template for types that model both, HasDynamicXStepTypeConcept and HasDynamicYStepTypeConcept. /// /// \todo TODO: Is Locator allowed or practical to occur? template <typename View> struct dynamic_xy_step_type; }} // namespace boost::gil #endif
326
389
package gw.specification.temp.generics; public interface AssertEvaluator<T, A extends BaseAssert<T,A>> { A evaluate( A assertion ); }
48
550
package play.mvc.results; import play.exceptions.UnexpectedException; import play.mvc.Http.Request; import play.mvc.Http.Response; /** * 200 OK with a text/plain */ public class RenderHtml extends Result { String text; public RenderHtml(CharSequence text) { this.text = text.toString(); } public void apply(Request request, Response response) { try { setContentTypeIfNotSet(response, "text/html"); response.out.write(text.getBytes(getEncoding())); } catch(Exception e) { throw new UnexpectedException(e); } } }
251
573
<reponame>capablevms/VIXL<gh_stars>100-1000 // Copyright 2015, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // * Neither the name of ARM Limited nor the names of its contributors may be // used to endorse or promote products derived from this software without // specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // --------------------------------------------------------------------- // This file is auto generated using tools/generate_simulator_traces.py. // // PLEASE DO NOT EDIT. // --------------------------------------------------------------------- #ifndef VIXL_SIM_FDIV_8H_TRACE_AARCH64_H_ #define VIXL_SIM_FDIV_8H_TRACE_AARCH64_H_ const uint16_t kExpected_NEON_fdiv_8H[] = { 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0x7c00, 0x0000, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0x7c00, 0x1400, 0x0000, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x8000, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x8000, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x8000, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x8000, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x3c00, 0xff23, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x0000, 0x0801, 0xfe01, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x0000, 0x0800, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x0000, 0x07fe, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x0000, 0x0401, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x0000, 0x0400, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x0000, 0x03ff, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x0000, 0x02ab, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x0000, 0x0066, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x0000, 0x0000, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x0000, 0x0000, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x531c, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x3c01, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x0000, 0x6400, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x0000, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xbc00, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x8000, 0x8801, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x8000, 0x8800, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x8000, 0x87fe, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x8000, 0x8401, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x8000, 0x8400, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x8000, 0x83ff, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x8000, 0x82ab, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x8000, 0x8066, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x8000, 0x8000, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x8000, 0x8000, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0x8000, 0xff23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xd31c, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x8000, 0xbc01, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x8000, 0xe400, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x8000, 0xe400, 0x7c00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x8000, 0x7c00, 0x6fff, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x3c00, 0x3c00, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x0000, 0x0801, 0x3bff, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x0000, 0x0800, 0x3bfd, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x0000, 0x07fe, 0x3800, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x0000, 0x0401, 0x37ff, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x0000, 0x0400, 0x37fd, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x0000, 0x03ff, 0x3555, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x0000, 0x02ab, 0x2a66, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x0000, 0x0066, 0x0080, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x531c, 0x7001, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x3c01, 0x7c00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x0000, 0x6400, 0xfc00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x0000, 0xfc00, 0xefff, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xbc00, 0xbc00, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x8000, 0x8801, 0xbbff, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x8000, 0x8800, 0xbbfd, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x8000, 0x87fe, 0xb800, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x8000, 0x8401, 0xb7ff, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x8000, 0x8400, 0xb7fd, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x8000, 0x83ff, 0xb555, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x8000, 0x82ab, 0xaa66, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x8000, 0x8066, 0x8080, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x8000, 0x8000, 0xff23, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0x8000, 0xff23, 0xfe00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xd31c, 0xf001, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x8000, 0xbc01, 0xfc00, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x0000, 0x0066, 0x0080, 0x0000, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7e01, 0x000c, 0x0066, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7001, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x531c, 0x7001, 0x7c00, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x8000, 0x87fe, 0xb800, 0xb800, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x8000, 0x8066, 0x8080, 0x8000, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x8000, 0x8000, 0x8000, 0xff23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0x7e01, 0x800c, 0x8066, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf001, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xd31c, 0xf001, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0xff23, 0xfe01, 0xab1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0xfe01, 0xd31b, 0x9401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0xa481, 0xe3fe, 0x7c00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0xcc80, 0x7c00, 0x1400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x7c00, 0x3bfe, 0x0002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x2480, 0x07ff, 0x0002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x0024, 0x07fe, 0x0002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0024, 0x07fc, 0x0001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0024, 0x03ff, 0x0001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0x0012, 0x03ff, 0x0001, 0x0000, 0x0066, 0x0080, 0x0000, 0x7f23, 0x0012, 0x03fe, 0x0001, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x0012, 0x02aa, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x000c, 0x0066, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7001, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0x7f23, 0x7e01, 0x2b1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0x7e01, 0x531b, 0x1401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x2481, 0x63fe, 0xfc00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0x4c80, 0xfc00, 0x9400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xfc00, 0xbbfe, 0x8002, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xa480, 0x87ff, 0x8002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0x8024, 0x87fe, 0x8002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8024, 0x87fc, 0x8001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8024, 0x83ff, 0x8001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0x8012, 0x83ff, 0x8001, 0x8000, 0x8066, 0x8080, 0x8000, 0xff23, 0x8012, 0x83fe, 0x8001, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0x8012, 0x82aa, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x800c, 0x8066, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf002, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf001, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0xff23, 0xfe01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0xfe01, 0xab1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0xd31b, 0x9401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0xbc00, 0xbc00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0xe3fe, 0x7c00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x7c00, 0x1400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3bfe, 0x0002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x07ff, 0x0002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x07fe, 0x0002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x07fc, 0x0001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0x03ff, 0x0001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x03ff, 0x0001, 0x0000, 0x0066, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x03fe, 0x0001, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x02aa, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0066, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7002, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0x7f23, 0x7e01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0x7e01, 0x2b1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0x531b, 0x1401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0x3c00, 0x3c00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x63fe, 0xfc00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xfc00, 0x9400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xbbfe, 0x8002, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0x87ff, 0x8002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x87fe, 0x8002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x87fc, 0x8001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0x83ff, 0x8001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0xff23, 0x83ff, 0x8001, 0x8000, 0x8066, 0x8080, 0x8000, 0xff23, 0xfe00, 0x83fe, 0x8001, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x82aa, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8066, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf002, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0xff23, 0xfe01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0xfe01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0xab1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x9401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0xbc00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7c00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x1400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x0002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0x0001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x0001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x0001, 0x0000, 0x0066, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x0001, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0x7f23, 0x7e01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0x7e01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0x2b1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0x1401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0x3c00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xfc00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0x9400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0x8002, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0x8001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0xff23, 0x8001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0x8001, 0x8000, 0x8066, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0x8001, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0xff23, 0xfe01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0xfe01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0x7f23, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x0000, 0x0066, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7402, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0x7f23, 0x7e01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0x7e01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0xff23, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0x8000, 0x8066, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf402, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0xff23, 0xfe01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0xfe01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x02ab, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0066, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7602, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7402, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0x7f23, 0x7e01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0x7e01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0xff23, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0xff23, 0xfe00, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0x82ab, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8066, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf602, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf402, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0xfe01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x3555, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7602, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0x7e01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0xff23, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xb555, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf602, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0x7f23, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x3555, 0x2a68, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2a66, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0xff23, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xb555, 0xaa68, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xaa66, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0xfe01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0x7f23, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0x7f23, 0x7e00, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x3557, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2a68, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x0080, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0x7e01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0xff23, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0xff23, 0xfe00, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xb557, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xaa68, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x8080, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7f23, 0xff23, 0xfe01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0xfe01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0x7f23, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0x7f23, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0x7f23, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7f23, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0x7f23, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0x7f23, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0x7f23, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0x7f23, 0x7f23, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x3955, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7f23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0x7f23, 0x7f23, 0x7e01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0x7f23, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0x7f23, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0x7f23, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0x7f23, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0x7f23, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0x7f23, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0x7f23, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x7f23, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0xff23, 0x7f23, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0xff23, 0xfe00, 0xff23, 0xb955, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x7f23, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7f23, 0x7e00, 0xfe01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7f23, 0x7e00, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0x7f23, 0x7e00, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0x7f23, 0x7e00, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0x7f23, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7e00, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0x7f23, 0x7f23, 0x7f23, 0x3955, 0x2e68, 0x0180, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2e66, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0x7f23, 0x7e00, 0x7e01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0x7f23, 0x7e00, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0x7f23, 0x7e00, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0x7f23, 0x7e00, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0x7f23, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x7f23, 0x7e00, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0xff23, 0x7f23, 0xff23, 0xb955, 0xae68, 0x8180, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xae66, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x3957, 0x30cd, 0x0901, 0x0000, 0x7f23, 0x7f23, 0x7f23, 0x7f23, 0x2e68, 0x0180, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x0100, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0xb957, 0xb0cd, 0x8901, 0x8000, 0xff23, 0x7f23, 0xff23, 0x7f23, 0xae68, 0x8180, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x8100, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x30cd, 0x0901, 0x0000, 0x7f23, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x0180, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xc200, 0xccff, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xb0cd, 0x8901, 0x8000, 0xff23, 0x7f23, 0xff23, 0x7f23, 0x7e01, 0x8180, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0xfe01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0xfc00, 0xfc00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x4d01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x4d00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x4cff, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x4901, 0x7bff, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x4900, 0x7bfd, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x48ff, 0x7955, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x46ab, 0x6e66, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x0901, 0x0000, 0x7f23, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x7e01, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x7c00, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x7c00, 0x7c00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x7c00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0xcd01, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0xcd00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xccff, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xc901, 0xfbff, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xc900, 0xfbfd, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xc8ff, 0xf955, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xc6ab, 0xee66, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xbc00, 0xbc00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0x8901, 0x8000, 0xff23, 0x7f23, 0xff23, 0x7f23, 0x7e01, 0xa481, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xcc80, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0xfe01, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0xfc00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7bff, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7bfd, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7955, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x6e66, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x3c00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x0000, 0x7f23, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x7e01, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x7c00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x7c00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0x8066, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfbff, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xfbfd, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xf955, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xee66, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0xbc00, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0x8000, 0xff23, 0x7f23, 0xff23, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0xff23, 0x7f23, 0xff23, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7f23, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x7c00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0x7f23, 0xff23, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x8000, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x8000, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x7f23, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x0000, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x0000, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x0000, 0x7e00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x0000, 0xfc00, 0x7e00, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xbc00, 0xff23, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x8000, 0x8801, 0xfe01, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x8000, 0x8800, 0x7e00, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x8000, 0x87fe, 0x7e00, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x8000, 0x8401, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x8000, 0x8400, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x8000, 0x83ff, 0x7e00, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x8000, 0x82ab, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x8000, 0x8066, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x8000, 0x8000, 0x7e00, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x8000, 0x8000, 0x7e00, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xd31c, 0x7e00, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xbc01, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x8000, 0xe400, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x8000, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x3c00, 0x7f23, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x0000, 0x0801, 0x7e01, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x0000, 0x0800, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x0000, 0x07fe, 0x7e00, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x0000, 0x0401, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x0000, 0x0400, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x0000, 0x03ff, 0x7e00, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x0000, 0x02ab, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x0000, 0x0066, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x0000, 0x0000, 0x7e00, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x0000, 0x0000, 0x7e00, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0x0000, 0xff23, 0x7e00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x531c, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x3c01, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x0000, 0x6400, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x0000, 0x6400, 0xfc00, 0x7f23, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x0000, 0xfc00, 0xefff, 0x7f23, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xbc00, 0xbc00, 0x7f23, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x8000, 0x8801, 0xbbff, 0x7f23, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x8000, 0x8800, 0xbbfd, 0x7f23, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x8000, 0x87fe, 0xb800, 0x7f23, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x8000, 0x8401, 0xb7ff, 0x7f23, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x8000, 0x8400, 0xb7fd, 0x7f23, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x8000, 0x83ff, 0xb555, 0x7f23, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x8000, 0x82ab, 0xaa66, 0x7f23, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x8000, 0x8066, 0x8080, 0x7f23, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x8000, 0x8000, 0x7f23, 0x7f23, 0x7e01, 0x000c, 0x0066, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7f23, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x7f23, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xd31c, 0xf001, 0x7f23, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xbc01, 0xfc00, 0x7f23, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x8000, 0xe400, 0x7c00, 0x7f23, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x8000, 0x7c00, 0x6fff, 0x7f23, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x3c00, 0x3c00, 0x7f23, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x0000, 0x0801, 0x3bff, 0x7f23, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x0000, 0x0800, 0x3bfd, 0x7f23, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x0000, 0x07fe, 0x3800, 0x7f23, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x0000, 0x0401, 0x37ff, 0x7f23, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x0000, 0x0400, 0x37fd, 0x7f23, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x0000, 0x03ff, 0x3555, 0x7f23, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x0000, 0x02ab, 0x2a66, 0x7f23, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x0000, 0x0066, 0x0080, 0x7f23, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x0000, 0x0000, 0x0000, 0x7f23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x0000, 0x0000, 0xff23, 0x7f23, 0x7e01, 0x800c, 0x8066, 0x8000, 0x0000, 0xff23, 0xfe00, 0x7f23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0x7f23, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x531c, 0x7001, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x3c01, 0x7c00, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0x7e01, 0xff23, 0xfe01, 0xab1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0x7e01, 0xfe01, 0xd31b, 0x9401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0x7e01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0x7e01, 0xa481, 0xe3fe, 0x7c00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0x7e01, 0xcc80, 0x7c00, 0x1400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0x7e01, 0x7c00, 0x3bfe, 0x0002, 0x8000, 0x87fe, 0xb800, 0xb800, 0x7e01, 0x2480, 0x07ff, 0x0002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0x7e01, 0x0024, 0x07fe, 0x0002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0x7e01, 0x0024, 0x07fc, 0x0001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x7e01, 0x0024, 0x03ff, 0x0001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x7e01, 0x0012, 0x03ff, 0x0001, 0x8000, 0x8066, 0x8080, 0x8000, 0x7e01, 0x0012, 0x03fe, 0x0001, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e01, 0x0012, 0x02aa, 0x0000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7e01, 0x000c, 0x0066, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x7e01, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x7e01, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf001, 0x7e01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xd31c, 0xf001, 0xfc00, 0x7e01, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7e01, 0x7f23, 0x7e01, 0x2b1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x7e01, 0x7e01, 0x531b, 0x1401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x7e01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x7e01, 0x2481, 0x63fe, 0xfc00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x7e01, 0x4c80, 0xfc00, 0x9400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x7e01, 0xfc00, 0xbbfe, 0x8002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x7e01, 0xa480, 0x87ff, 0x8002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x7e01, 0x8024, 0x87fe, 0x8002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x7e01, 0x8024, 0x87fc, 0x8001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x7e01, 0x8024, 0x83ff, 0x8001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x7e01, 0x8012, 0x83ff, 0x8001, 0x0000, 0x0066, 0x0080, 0x0000, 0x7e01, 0x8012, 0x83fe, 0x8001, 0x0000, 0x0000, 0x0000, 0xff23, 0x7e01, 0x8012, 0x82aa, 0x8000, 0x0000, 0x0000, 0xff23, 0xfe00, 0x7e01, 0x800c, 0x8066, 0x8000, 0x0000, 0xff23, 0xfe00, 0xff23, 0x7e01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e01, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7e01, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7001, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x531c, 0x7001, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xff23, 0xfe01, 0xab1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xfe01, 0xd31b, 0x9401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xa481, 0xe3fe, 0x7c00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xcc80, 0x7c00, 0x1400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0x7c00, 0x3bfe, 0x0002, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0x2480, 0x07ff, 0x0002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0x0024, 0x07fe, 0x0002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x0024, 0x07fc, 0x0001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x0024, 0x03ff, 0x0001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0x0012, 0x03ff, 0x0001, 0x8000, 0x8066, 0x8080, 0x8000, 0x7f23, 0x0012, 0x03fe, 0x0001, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x0012, 0x02aa, 0x0000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x000c, 0x0066, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0002, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf002, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf001, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x7f23, 0x7e01, 0x2b1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x7e01, 0x531b, 0x1401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x2481, 0x63fe, 0xfc00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x4c80, 0xfc00, 0x9400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0xfc00, 0xbbfe, 0x8002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0xa480, 0x87ff, 0x8002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x8024, 0x87fe, 0x8002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x8024, 0x87fc, 0x8001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x8024, 0x83ff, 0x8001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0x8012, 0x83ff, 0x8001, 0x0000, 0x0066, 0x0080, 0x0000, 0xff23, 0x8012, 0x83fe, 0x8001, 0x0000, 0x0000, 0x0000, 0xff23, 0xfe00, 0x8012, 0x82aa, 0x8000, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0x800c, 0x8066, 0x8000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8002, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7002, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7001, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xff23, 0xfe01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xfe01, 0xab1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xd31b, 0x9401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc00, 0xbc00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xe3fe, 0x7c00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0x7c00, 0x1400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0x3bfe, 0x0002, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0x07ff, 0x0002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x07fe, 0x0002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x07fc, 0x0001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0x03ff, 0x0001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x03ff, 0x0001, 0x8000, 0x8066, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x03fe, 0x0001, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x02aa, 0x0000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0066, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x0000, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf002, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x7f23, 0x7e01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x7e01, 0x2b1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x531b, 0x1401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c00, 0x3c00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x63fe, 0xfc00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0xfc00, 0x9400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0xbbfe, 0x8002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x87ff, 0x8002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x87fe, 0x8002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x87fc, 0x8001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0x83ff, 0x8001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0xff23, 0x83ff, 0x8001, 0x0000, 0x0066, 0x0080, 0x0000, 0xff23, 0xfe00, 0x83fe, 0x8001, 0x0000, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0x82aa, 0x8000, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8066, 0x8000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x8000, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7002, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xff23, 0xfe01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xfe01, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xab1c, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0x9401, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc00, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7c00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0x1400, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0x0002, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x0002, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x0002, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0x0001, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x0001, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x0001, 0x8000, 0x8066, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x0001, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x0000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x0000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0x0000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x7f23, 0x7e01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x7e01, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x2b1c, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x1401, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c00, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0xfc00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x9400, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x8002, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x8002, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x8002, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0x8001, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0xff23, 0x8001, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0x8001, 0x0000, 0x0066, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0x8001, 0x0000, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x8000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x8000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xff23, 0xfe01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xfe01, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0x0000, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0x0000, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0x0000, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0x7e00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x8000, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0x8000, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8000, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0x8000, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0x7f23, 0x8000, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x8000, 0x82ab, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x8000, 0x8066, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8000, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf402, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x7f23, 0x7e01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x7e01, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x8000, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x8000, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x8000, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x7e00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x0000, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x0000, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0000, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0x0000, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0xff23, 0x0000, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0x0000, 0x02ab, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0x0000, 0x0066, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7402, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xff23, 0xfe01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xfe01, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0x531c, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0x3c01, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0x6400, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xfc00, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x8801, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8800, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x87fe, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x8401, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0x7f23, 0x8400, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x83ff, 0xb555, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x82ab, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0x8066, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x8000, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf602, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf402, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x7f23, 0x7e01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x7e01, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0xd31c, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0xbc01, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0xe400, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x7c00, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x0801, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0800, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x07fe, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0x0401, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0xff23, 0x0400, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0xff23, 0xfe00, 0x03ff, 0x3555, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0x02ab, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0066, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x0000, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7602, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7402, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfe01, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0x7c00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0x7001, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0x7c00, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfc00, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xefff, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbbff, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0xbbfd, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0xb800, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x7f23, 0xb7ff, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0xb7fd, 0xb555, 0xaa68, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0xb555, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf602, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7e01, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0xfc00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0xf001, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0xfc00, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7c00, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x6fff, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3bff, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x3bfd, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0x3800, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0xff23, 0x37ff, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0x37fd, 0x3555, 0x2a68, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0x3555, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7602, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0x7c00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0x7001, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0x7c00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xf000, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xbc01, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbbfe, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0xb801, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0x7f23, 0xb800, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0xb7fe, 0xb557, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0xb555, 0xaa68, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xaa66, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0xfc00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0xf001, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0xfc00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7000, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x3c01, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3bfe, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0x3801, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0xff23, 0x3800, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0x37fe, 0x3557, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0x3555, 0x2a68, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2a66, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfe01, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0x7002, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0x7c00, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0xfc00, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xf001, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0xbc02, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0xbc01, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xb802, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0x7f23, 0xb801, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0x7f23, 0x7e00, 0xb800, 0xb955, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0xb557, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xaa68, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0x8080, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0x7f23, 0x7e01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7e01, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0xf002, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0xfc00, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0x7c00, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0x7001, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0x3c02, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0x3c01, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0x3802, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0xff23, 0x3801, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0xff23, 0xfe00, 0x3800, 0x3955, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0x3557, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2a68, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x0080, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xff23, 0xff23, 0xfe01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe01, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0x7c00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0x7401, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0xff23, 0x7c00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0xff23, 0xfc00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0xff23, 0xf3ff, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xff23, 0xc000, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0xff23, 0xbfff, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0xff23, 0xbffd, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0xff23, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xff23, 0xbbff, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0x7f23, 0xff23, 0xbbfd, 0xb955, 0xae68, 0x8180, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0xb955, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xff23, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xff23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0xff23, 0x7f23, 0x7e01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0x7e01, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfc00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xf401, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0xff23, 0xfc00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0xff23, 0x7c00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0xff23, 0x73ff, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0xff23, 0x4000, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0xff23, 0x3fff, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0xff23, 0x3ffd, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0xff23, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xff23, 0x3bff, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0xff23, 0xff23, 0x3bfd, 0x3955, 0x2e68, 0x0180, 0x0000, 0xff23, 0xfe00, 0xff23, 0x3955, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0xff23, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0xff23, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xff23, 0xfe00, 0xfe01, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0x7c00, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0x7401, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0x7c00, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xfc00, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xf400, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xc001, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xff23, 0xfe00, 0xc000, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0xff23, 0xfe00, 0xbffe, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0xff23, 0xfe00, 0xbc01, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0xff23, 0xfe00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xff23, 0xfe00, 0xbbfe, 0xb957, 0xb0cd, 0x8901, 0x8000, 0x7f23, 0xff23, 0x7f23, 0xb955, 0xae68, 0x8180, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xae66, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xff23, 0xfe00, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0xff23, 0xfe00, 0x7e01, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xfc00, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xf401, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xfc00, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0x7c00, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0x7400, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0x4001, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0xff23, 0xfe00, 0x4000, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0xff23, 0xfe00, 0x3ffe, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0xff23, 0xfe00, 0x3c01, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0xff23, 0xfe00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xff23, 0xfe00, 0x3bfe, 0x3957, 0x30cd, 0x0901, 0x0000, 0xff23, 0xff23, 0xff23, 0x3955, 0x2e68, 0x0180, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2e66, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0x7c00, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0x7402, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfc00, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xf401, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xc002, 0xc200, 0xccff, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xc001, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xc000, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xbc02, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xbc01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xbc00, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xb957, 0xb0cd, 0x8901, 0x8000, 0x7f23, 0xff23, 0x7f23, 0xff23, 0xae68, 0x8180, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0x8100, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xff23, 0xfe00, 0xff23, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfc00, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xf402, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x7c00, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x7401, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x4002, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x4001, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x4000, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x3c02, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x3c01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0xff23, 0xfe00, 0xff23, 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0x3957, 0x30cd, 0x0901, 0x0000, 0xff23, 0xff23, 0xff23, 0xff23, 0x2e68, 0x0180, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0x0100, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0xff23, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7602, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xf600, 0xcd01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xc201, 0xcd00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xc200, 0xccff, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xc1ff, 0xc901, 0xfbff, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbe01, 0xc900, 0xfbfd, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbe00, 0xc8ff, 0xf955, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbdff, 0xc6ab, 0xee66, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbc00, 0xbc00, 0xbc00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xb0cd, 0x8901, 0x8000, 0x7f23, 0xff23, 0x7f23, 0xff23, 0xfe01, 0x8180, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e01, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfc00, 0xfc00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xf602, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7600, 0x4d01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x4201, 0x4d00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x4200, 0x4cff, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x41ff, 0x4901, 0x7bff, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3e01, 0x4900, 0x7bfd, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3e00, 0x48ff, 0x7955, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3dff, 0x46ab, 0x6e66, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3c00, 0x3c00, 0x3c00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x30cd, 0x0901, 0x0000, 0xff23, 0xff23, 0xff23, 0xff23, 0xfe01, 0x0180, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xa480, 0xff23, 0xfe01, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0xfe01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x7c00, 0x7c00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x7c00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x800c, 0xcd01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8002, 0xcd00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0xccff, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0xc901, 0xfbff, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0xc900, 0xfbfd, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0xc8ff, 0xf955, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0xc6ab, 0xee66, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e01, 0xbc00, 0xbc00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbc00, 0x8901, 0x8000, 0x7f23, 0xff23, 0x7f23, 0xff23, 0xfe01, 0xa481, 0x8000, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xcc80, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2480, 0x7f23, 0x7e01, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x7e01, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0xfc00, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0xfc00, 0xfc00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0xfc00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x7c00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x000c, 0x4d01, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0002, 0x4d00, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x4cff, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x4901, 0x7bff, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0x4900, 0x7bfd, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0x48ff, 0x7955, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0x46ab, 0x6e66, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe01, 0x3c00, 0x3c00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3c00, 0x0901, 0x0000, 0xff23, 0xff23, 0xff23, 0xff23, 0xfe01, 0x2481, 0x0000, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x4c80, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x4c80, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xbbfe, 0xff23, 0xfe01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xa480, 0x87ff, 0xfe01, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x87fe, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x87fc, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x83ff, 0x7c00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x83ff, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x83fe, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x82aa, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x800c, 0x8066, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8002, 0x8000, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x8000, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x7f23, 0xfbff, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0xfbfd, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0xf955, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xee66, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e01, 0xd31b, 0xbc00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbc00, 0xbc00, 0x8000, 0x7f23, 0xff23, 0x7f23, 0xff23, 0xfe01, 0xa481, 0xe3fe, 0x7f23, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xcc80, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x3bfe, 0x7f23, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2480, 0x07ff, 0x7e01, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x07fe, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x07fc, 0xfc00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x03ff, 0xfc00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x03ff, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x03fe, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x02aa, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x000c, 0x0066, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0002, 0x0000, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x0000, 0x7c00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0xff23, 0x7bff, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0x7bfd, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0x7955, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x6e66, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe01, 0x531b, 0x3c00, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3c00, 0x3c00, 0x0000, 0xff23, 0xff23, 0xff23, 0xff23, 0xfe01, 0x2481, 0x63fe, 0xff23, 0xff23, 0xff23, 0xff23, 0xfe01, 0x2481, 0x63fe, 0xfc00, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x4c80, 0xfc00, 0x9400, 0xff23, 0xfe01, 0xfe00, 0xff23, 0xfe01, 0xfc00, 0xbbfe, 0x8002, 0xfe01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xa480, 0x87ff, 0x8002, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x87fe, 0x8002, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x87fc, 0x8001, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8024, 0x83ff, 0x8001, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x83ff, 0x8001, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x83fe, 0x8001, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8012, 0x82aa, 0x8000, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x800c, 0x8066, 0x8000, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8002, 0x8000, 0x8000, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x8000, 0x7f23, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x8000, 0x7f23, 0x7e00, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e00, 0x7f23, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e00, 0x7f23, 0x7e01, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7f23, 0x7e01, 0xab1c, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x7e01, 0xd31b, 0x9401, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xbc00, 0xbc00, 0xbc00, 0x7f23, 0xff23, 0x7f23, 0xff23, 0xfe01, 0xa481, 0xe3fe, 0x7c00, 0x7e00, 0x7f23, 0x7e01, 0xff23, 0xfe01, 0xcc80, 0x7c00, 0x1400, 0x7f23, 0x7e01, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0x3bfe, 0x0002, 0x7e01, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x2480, 0x07ff, 0x0002, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x07fe, 0x0002, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x07fc, 0x0001, 0xfc00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0024, 0x03ff, 0x0001, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x03ff, 0x0001, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x03fe, 0x0001, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0012, 0x02aa, 0x0000, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x000c, 0x0066, 0x0000, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0002, 0x0000, 0x0000, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0x0000, 0xff23, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x0000, 0xff23, 0xfe00, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe00, 0xff23, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe00, 0xff23, 0xfe01, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xff23, 0xfe01, 0x2b1c, 0x7c00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0xfe01, 0x531b, 0x1401, 0x7e00, 0xff23, 0xfe00, 0xff23, 0xfe01, 0x3c00, 0x3c00, 0x3c00, }; const unsigned kExpectedCount_NEON_fdiv_8H = 1444; #endif // VIXL_SIM_FDIV_8H_TRACE_AARCH64_H_
62,750
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.io; import java.nio.channels.WritableByteChannel; import java.nio.ByteBuffer; import java.io.IOException; import com.yahoo.io.GrowableBufferOutputStream; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; /** * Tests the GrowableBufferOutputStream * * @author <NAME> */ public class GrowableBufferOutputStreamTestCase { private byte[] testData; static class DummyWritableByteChannel implements WritableByteChannel { private ByteBuffer buffer; public DummyWritableByteChannel(ByteBuffer buffer) { this.buffer = buffer; } public int write(ByteBuffer src) { int written = Math.min(src.remaining(), buffer.remaining()); if (buffer.remaining() < src.remaining()) { ByteBuffer tmp = src.slice(); tmp.limit(written); src.position(src.position() + written); } else { buffer.put(src); } return written; } public boolean isOpen() { return true; } public void close() {} } @Before public void setUp() { testData = new byte[100]; for (int i = 0; i < 100; ++i) { testData[i] = (byte) i; } } @Test public void testSimple() throws IOException { GrowableBufferOutputStream g = new GrowableBufferOutputStream(10, 5); g.write(testData, 0, 100); g.flush(); assertEquals(10, g.numWritableBuffers()); assertEquals(100, g.writableSize()); ByteBuffer sink = ByteBuffer.allocate(60); DummyWritableByteChannel channel = new DummyWritableByteChannel(sink); int written = g.channelWrite(channel); assertEquals(60, written); assertEquals(60, sink.position()); assertEquals(40, g.writableSize()); // there should be 4 buffers left now assertEquals(4, g.numWritableBuffers()); // ensure that we got what we expected for (int i = 0; i < 60; ++i) { if (((int) sink.get(i)) != i) { fail(); } } // then we write more data g.write(testData, 0, 100); g.flush(); assertEquals(140, g.writableSize()); // ...which implies that we should now have 14 writable buffers assertEquals(14, g.numWritableBuffers()); // reset the sink so it can consume more data sink.clear(); // then write more to the DummyWritableByteChannel written = g.channelWrite(channel); assertEquals(60, written); assertEquals(60, sink.position()); assertEquals(80, g.writableSize()); // now there should be 8 buffers assertEquals(8, g.numWritableBuffers()); // ensure that we got what we expected for (int i = 0; i < 60; ++i) { int val = (int) sink.get(i); int expected = (i + 60) % 100; if (val != expected) { fail("Value was " + val + " and not " + i); } } // when we clear there should be no buffers g.clear(); assertEquals(0, g.numWritableBuffers()); assertEquals(0, g.writableSize()); // ditto after flush after clear g.flush(); assertEquals(0, g.numWritableBuffers()); // flush the cache too g.clearAll(); assertEquals(0, g.numWritableBuffers()); } }
1,601
809
/* * @file * * @date Apr 12, 2013 * @author: <NAME> */ #ifndef NO_PAGE_H_ #define NO_PAGE_H_ #define PAGE_SIZE() OPTION_MODULE_GET(embox__mem__NoPage,NUMBER,page_size) #ifndef __LDS__ static inline struct page_allocator *page_allocator_init(char *start, size_t len, size_t page_size) { return NULL; } static inline int page_belong(struct page_allocator *allocator, void *page) { return 0; } static inline void *page_alloc(struct page_allocator *allocator, size_t page_q) { return NULL; } static inline void *page_alloc_zero(struct page_allocator *allocator, size_t page_q) { return NULL; } static inline void page_free(struct page_allocator *allocator, void *page, size_t page_q) { } #endif /* __LDS__ */ #endif /* NO_PAGE_H_ */
288
6,304
/* * Copyright 2019 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SKSL_EXTERNALFUNCTIONCALL #define SKSL_EXTERNALFUNCTIONCALL #include "include/private/SkTArray.h" #include "src/sksl/ir/SkSLExpression.h" #include "src/sksl/ir/SkSLExternalFunction.h" #include "src/sksl/ir/SkSLFunctionDeclaration.h" namespace SkSL { /** * An external function invocation. */ class ExternalFunctionCall final : public Expression { public: inline static constexpr Kind kExpressionKind = Kind::kExternalFunctionCall; ExternalFunctionCall(int line, const ExternalFunction* function, ExpressionArray arguments) : INHERITED(line, kExpressionKind, &function->type()) , fFunction(*function) , fArguments(std::move(arguments)) {} ExpressionArray& arguments() { return fArguments; } const ExpressionArray& arguments() const { return fArguments; } const ExternalFunction& function() const { return fFunction; } bool hasProperty(Property property) const override { if (property == Property::kSideEffects) { return true; } for (const auto& arg : this->arguments()) { if (arg->hasProperty(property)) { return true; } } return false; } std::unique_ptr<Expression> clone() const override { ExpressionArray cloned; cloned.reserve_back(this->arguments().size()); for (const auto& arg : this->arguments()) { cloned.push_back(arg->clone()); } return std::make_unique<ExternalFunctionCall>(fLine, &this->function(), std::move(cloned)); } String description() const override { String result = String(this->function().name()) + "("; String separator; for (const std::unique_ptr<Expression>& arg : this->arguments()) { result += separator; result += arg->description(); separator = ", "; } result += ")"; return result; } private: const ExternalFunction& fFunction; ExpressionArray fArguments; using INHERITED = Expression; }; } // namespace SkSL #endif
940
821
<gh_stars>100-1000 import sys sys.path.append("./CommonTestScripts") import System import Test import CircuitEditorUtil CircuitEditorUtil.SetGlobals(schemaLoader, Schema) doc = atfDocService.OpenNewDocument(editor) #Add a button and verify btn1 = editingContext.Insert[Module](CircuitEditorUtil.CreateModuleNode("buttonType", "button 1"), 50, 75) Test.Equal(1, circuitContainer.Elements.Count, "verify 1 button added") #Copy/paste the button and verify atfEdit.Copy() atfEdit.Paste() Test.Equal(2, circuitContainer.Elements.Count, "verify 1st button copy/pasted") #Rename/replace/relabel new button btn2 = circuitContainer.Elements[1] editingContext.SetProperty(btn2.DomNode, Schema.moduleType.xAttribute, 65) editingContext.SetProperty(btn2.DomNode, Schema.moduleType.yAttribute, 150) editingContext.SetProperty(btn2.DomNode, Schema.moduleType.labelAttribute, "button 2") #Add a third button and verify btn3 = editingContext.Insert[Module](CircuitEditorUtil.CreateModuleNode("buttonType", "button 3"), 50, 215) Test.Equal(3, circuitContainer.Elements.Count, "verify 3rd button") #Copy/Paste button and verify atfEdit.Copy() atfEdit.Paste() Test.Equal(4, circuitContainer.Elements.Count, "verify 3rd button copy/pasted") #Rename/replace/relabel new button btn4 = circuitContainer.Elements[3] editingContext.SetProperty(btn4.DomNode, Schema.moduleType.xAttribute, 65) editingContext.SetProperty(btn4.DomNode, Schema.moduleType.yAttribute, 300) editingContext.SetProperty(btn4.DomNode, Schema.moduleType.labelAttribute, "button 4") #Add an OR module and verify orMod1 = editingContext.Insert[Module](CircuitEditorUtil.CreateModuleNode("orType", "or 1"), 150, 125) Test.Equal(5, circuitContainer.Elements.Count, "verify OR module added") #Copy/paste OR module, rename, replace, verify atfEdit.Copy() atfEdit.Paste() orMod2 = circuitContainer.Elements[5] editingContext.SetProperty(orMod2.DomNode, Schema.moduleType.labelAttribute, "or 2") editingContext.SetProperty(orMod2.DomNode, Schema.moduleType.xAttribute, 160) editingContext.SetProperty(orMod2.DomNode, Schema.moduleType.yAttribute, 215) Test.Equal(6, circuitContainer.Elements.Count, "verify OR module copy/pasted") #Add an AND module and verify andMod = editingContext.Insert[Module](CircuitEditorUtil.CreateModuleNode("andType", "and"), 250, 170) Test.Equal(7, circuitContainer.Elements.Count, "verify 7 modules") #Add a light and verify light = editingContext.Insert[Module](CircuitEditorUtil.CreateModuleNode("lightType", "amarlight"), 350, 170) Test.Equal(8, circuitContainer.Elements.Count, "verify new light") #Add connections (and verify)! btn1Or1 = editingContext.Connect(btn1, btn1.Type.Outputs[0], orMod1, orMod1.Type.Inputs[0], None) btn2Or1 = editingContext.Connect(btn2, btn2.Type.Outputs[0], orMod1, orMod1.Type.Inputs[1], None) btn3Or2 = editingContext.Connect(btn3, btn3.Type.Outputs[0], orMod2, orMod2.Type.Inputs[0], None) btn4Or2 = editingContext.Connect(btn4, btn4.Type.Outputs[0], orMod2, orMod2.Type.Inputs[1], None) or1And = editingContext.Connect(orMod1, orMod1.Type.Outputs[0], andMod, andMod.Type.Inputs[0], None) or2And = editingContext.Connect(orMod2, orMod2.Type.Outputs[0], andMod, andMod.Type.Inputs[1], None) andLight = editingContext.Connect(andMod, andMod.Type.Outputs[0], light, light.Type.Inputs[0], None) Test.Equal(7, circuitContainer.Wires.Count, "verify 7 new connections") #Select all, copy atfSelect.SelectAll() atfEdit.Copy() #Paste, verify atfEdit.Paste() Test.Equal(16, circuitContainer.Elements.Count, "verify 16 modules") Test.Equal(14, circuitContainer.Wires.Count, "verify 14 connections") print Test.SUCCESS
1,323
3,102
// RUN: %clang_cc1 -fsyntax-only %s template<unsigned I> struct FibonacciEval; template<unsigned I> struct Fibonacci { enum { value = FibonacciEval<I-1>::value + FibonacciEval<I-2>::value }; }; template<unsigned I> struct FibonacciEval { enum { value = Fibonacci<I>::value }; }; template<> struct Fibonacci<0> { enum { value = 0 }; }; template<> struct Fibonacci<1> { enum { value = 1 }; }; int array5[Fibonacci<5>::value == 5? 1 : -1]; int array10[Fibonacci<10>::value == 55? 1 : -1]; template<unsigned I> struct FibonacciEval2; template<unsigned I> struct Fibonacci2 { static const unsigned value = FibonacciEval2<I-1>::value + FibonacciEval2<I-2>::value; }; template<unsigned I> struct FibonacciEval2 { static const unsigned value = Fibonacci2<I>::value; }; template<> struct Fibonacci2<0> { static const unsigned value = 0; }; template<> struct Fibonacci2<1> { static const unsigned value = 1; }; int array5_2[Fibonacci2<5>::value == 5? 1 : -1]; int array10_2[Fibonacci2<10>::value == 55? 1 : -1]; template<unsigned I> struct Fibonacci3 { static const unsigned value = Fibonacci3<I-1>::value + Fibonacci3<I-2>::value; }; template<> struct Fibonacci3<0> { static const unsigned value = 0; }; template<> struct Fibonacci3<1> { static const unsigned value = 1; }; int array5_3[Fibonacci3<5>::value == 5? 1 : -1]; int array10_3[Fibonacci3<10>::value == 55? 1 : -1];
559
351
__doc__ = ''' Logger for testing. ''' __author__ = "<NAME> <<EMAIL>>" __version__ = "0.1-1.45" import sys def print_newline(): print("") def print_title(s): fmt = "=========={0:^30}==========" print(fmt.format(s)) def print_section(s): fmt = "----------{0:^30}----------" print(fmt.format(s)) def print_module_title(s): print_section("Module: " + s) def print_module_done(s): print_section("Done: " + s) def print_result(result): print('Tests run: {0:2d}'.format(result.testsRun)) print('Skipped: {0:2d}'.format(len(result.skipped))) print('Failures: {0:2d}'.format(len(result.failures))) print('Errors: {0:2d}'.format(len(result.errors))) def print_verbose(s,v): if v: print(s)
334
343
from django.utils.translation import ugettext_lazy as _ from mayan.apps.rest_api import serializers from mayan.apps.rest_api.relations import MultiKwargHyperlinkedIdentityField from ..literals import DOCUMENT_FILE_ACTION_PAGE_CHOICES from ..models.document_file_models import DocumentFile from ..models.document_file_page_models import DocumentFilePage class DocumentFilePageSerializer(serializers.HyperlinkedModelSerializer): document_file_url = MultiKwargHyperlinkedIdentityField( view_kwargs=( { 'lookup_field': 'document_file.document.pk', 'lookup_url_kwarg': 'document_id', }, { 'lookup_field': 'document_file_id', 'lookup_url_kwarg': 'document_file_id', } ), view_name='rest_api:documentfile-detail' ) image_url = MultiKwargHyperlinkedIdentityField( view_kwargs=( { 'lookup_field': 'document_file.document.pk', 'lookup_url_kwarg': 'document_id', }, { 'lookup_field': 'document_file_id', 'lookup_url_kwarg': 'document_file_id', }, { 'lookup_field': 'pk', 'lookup_url_kwarg': 'document_file_page_id', } ), view_name='rest_api:documentfilepage-image' ) url = MultiKwargHyperlinkedIdentityField( view_kwargs=( { 'lookup_field': 'document_file.document.pk', 'lookup_url_kwarg': 'document_id', }, { 'lookup_field': 'document_file_id', 'lookup_url_kwarg': 'document_file_id', }, { 'lookup_field': 'pk', 'lookup_url_kwarg': 'document_file_page_id', } ), view_name='rest_api:documentfilepage-detail' ) class Meta: fields = ( 'document_file_id', 'document_file_url', 'id', 'image_url', 'page_number', 'url' ) model = DocumentFilePage read_only_fields = ( 'document_file_id', 'document_file_url', 'id', 'image_url', 'url' ) class DocumentFileSerializer(serializers.HyperlinkedModelSerializer): action = serializers.ChoiceField( choices=DOCUMENT_FILE_ACTION_PAGE_CHOICES, write_only=True ) document_url = serializers.HyperlinkedIdentityField( lookup_field='document_id', lookup_url_kwarg='document_id', view_name='rest_api:document-detail' ) download_url = MultiKwargHyperlinkedIdentityField( view_kwargs=( { 'lookup_field': 'document_id', 'lookup_url_kwarg': 'document_id', }, { 'lookup_field': 'pk', 'lookup_url_kwarg': 'document_file_id', }, ), view_name='rest_api:documentfile-download' ) file_new = serializers.FileField( help_text=_('Binary content for the new file.'), use_url=False, write_only=True ) page_list_url = MultiKwargHyperlinkedIdentityField( view_kwargs=( { 'lookup_field': 'document_id', 'lookup_url_kwarg': 'document_id', }, { 'lookup_field': 'pk', 'lookup_url_kwarg': 'document_file_id', }, ), view_name='rest_api:documentfilepage-list' ) pages_first = DocumentFilePageSerializer(many=False, read_only=True) size = serializers.SerializerMethodField() url = MultiKwargHyperlinkedIdentityField( view_kwargs=( { 'lookup_field': 'document_id', 'lookup_url_kwarg': 'document_id', }, { 'lookup_field': 'pk', 'lookup_url_kwarg': 'document_file_id', }, ), view_name='rest_api:documentfile-detail' ) class Meta: create_only_fields = ('action', 'file_new',) extra_kwargs = { 'file': {'use_url': False}, } fields = ( 'action', 'checksum', 'comment', 'document_id', 'document_url', 'download_url', 'encoding', 'file', 'file_new', 'filename', 'id', 'mimetype', 'page_list_url', 'pages_first', 'size', 'timestamp', 'url' ) model = DocumentFile read_only_fields = ( 'checksum', 'document_id', 'document_url', 'download_url', 'encoding', 'file', 'id', 'mimetype', 'page_list_url', 'pages_first', 'size', 'timestamp', 'url' ) def get_size(self, instance): return instance.size
2,480
784
<reponame>hejiang123/jboot<gh_stars>100-1000 /** * Copyright (c) 2015-2021, <NAME> 杨福海 (<EMAIL>). * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.jboot.support.metric.request; import java.util.HashMap; import java.util.Map; public class JbootRequestMetricHandler extends AbstractInstrumentedFilter { private static final String NAME_PREFIX = "responseCodes."; private static final int OK = 200; private static final int CREATED = 201; private static final int NO_CONTENT = 204; private static final int BAD_REQUEST = 400; private static final int NOT_FOUND = 404; private static final int SERVER_ERROR = 500; /** * Creates a new instance of the request filter. */ public JbootRequestMetricHandler() { super(createMeterNamesByStatusCode(), NAME_PREFIX + "other"); } private static Map<Integer, String> createMeterNamesByStatusCode() { final Map<Integer, String> meterNamesByStatusCode = new HashMap<>(6); meterNamesByStatusCode.put(OK, NAME_PREFIX + "ok"); meterNamesByStatusCode.put(CREATED, NAME_PREFIX + "created"); meterNamesByStatusCode.put(NO_CONTENT, NAME_PREFIX + "noContent"); meterNamesByStatusCode.put(BAD_REQUEST, NAME_PREFIX + "badRequest"); meterNamesByStatusCode.put(NOT_FOUND, NAME_PREFIX + "notFound"); meterNamesByStatusCode.put(SERVER_ERROR, NAME_PREFIX + "serverError"); return meterNamesByStatusCode; } }
674
939
<reponame>srihari-humbarwadi/neural-structured-learning # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Implementation of DynamicNormalization. DynamicNormalization differs from BatchNormalization in the following aspects: 1) It assumes each input activation belongs to one of many clusters and the number of clusters can grow dynamically in mode dm_ops.LOOKUP_WITH_GROW. 2) The normalization equation is derived based on the assumption that a layer computes a Gaussian distribution, and it is shown that the resulting models often outperform BatchNormalization. 3) Compared to BatchNormalization, DynamicNormalization works well in any batch size. """ import typing from research.carls import dynamic_embedding_config_pb2 as de_config_pb2 from research.carls import dynamic_memory_ops as dm_ops import tensorflow as tf class DynamicNormalization(tf.keras.layers.Layer): r"""Keras' layer implementation for DynamicNormalization. Similar to Batch Normalization, DynamicNormalization normalizes the activations of the previous layer for each input. The normalization formula: ((|mean|^2 + p(mean)) / |x|^2 - 2 * g(mean)) / sqrt(variance) where p(mean) = prior_scale * mean + prior_offset g(mean) = mean_scale * mean + mean_offset. Here (prior_scale, prior_offset, mean_scale, mean_offset) are learnable parameters. """ def __init__(self, dm_config: de_config_pb2.DynamicEmbeddingConfig, mode: int, axis: int = -1, epsilon: float = 1e-3, scale_initializer='ones', offset_initializer='zeros', scale_regularizer=None, offset_regularizer=None, scale_constraint=None, offset_constraint=None, use_batch_normalization: bool = False, trainable=True, service_address: typing.Text = '', name=None, **kwargs): r"""Constructor of DynamicNormalization. Args: dm_config: An instance of DynamicEmbeddingConfig. mode: An int or a `Tensor` whose value must be one of {LOOKUP_WITHOUT_UPDATE, LOOKUP_WITH_UPDATE, LOOKUP_WITH_GROW} as defined in dynamic_memory_ops.py. axis: Integer, the axis along which to compute mean and variance. epsilon: Small float added to variance to avoid dividing by zero. scale_initializer: Initializer for the scale weight. offset_initializer: Initializer for the offset weight. scale_regularizer: Optional regularizer for the scale weight. offset_regularizer: Optional regularizer for the offset weight. scale_constraint: Optional constraint for the scale weight. offset_constraint: Optional constraint for the offset weight. use_batch_normalization: Boolean, if `True`, use BatchNormalization's formula instead of DynamicNormalization's own one when computing the output. trainable: Boolean, if `True` the variables will be marked as trainable. service_address: The address of a knowledge bank service. If empty, the value passed from --kbs_address flag will be used instead. name: A string indicating the op's name. **kwargs: Addition inputs. """ super(DynamicNormalization, self).__init__(name=name, **kwargs) if mode is None: raise ValueError('Must specify model mode.') self.axis = axis self.dm_config = dm_config self.mode = mode self.epsilon = epsilon self.scale_initializer = tf.keras.initializers.get(scale_initializer) self.offset_initializer = tf.keras.initializers.get(offset_initializer) self.scale_regularizer = tf.keras.regularizers.get(scale_regularizer) self.offset_regularizer = tf.keras.regularizers.get(offset_regularizer) self.scale_constraint = tf.keras.constraints.get(scale_constraint) self.offset_constraint = tf.keras.constraints.get(offset_constraint) self.use_batch_normalization = use_batch_normalization self.trainable = trainable self.service_address = service_address @property def trainable(self): return self._trainable @trainable.setter def trainable(self, value): self._trainable = value @property def _param_dtype(self): # Raise parameters of fp16 batch norm to fp32 if self.dtype == tf.dtypes.float16 or self.dtype == tf.dtypes.bfloat16: return tf.dtypes.float32 else: return self.dtype or tf.dtypes.float32 def _add_offset(self, name: typing.Text, shape): return self.add_weight( name=name, shape=shape, dtype=self._param_dtype, initializer=self.offset_initializer, regularizer=self.offset_regularizer, constraint=self.offset_constraint, trainable=True, experimental_autocast=False) def _add_scale(self, name: typing.Text, shape): return self.add_weight( name=name, shape=shape, dtype=self._param_dtype, initializer=self.scale_initializer, regularizer=self.scale_regularizer, constraint=self.scale_constraint, trainable=True, experimental_autocast=False) def build(self, input_shape): input_shape = tf.TensorShape(input_shape) if not input_shape.ndims: raise ValueError('Input has undefined rank:', input_shape) ndims = len(input_shape) # Convert axis to list and resolve negatives if isinstance(self.axis, int): self.axis = [self.axis] for idx, x in enumerate(self.axis): if x < 0: self.axis[idx] = ndims + x # Validate axes for x in self.axis: if x < 0 or x >= ndims: raise ValueError('Invalid axis: %d' % x) if len(self.axis) != len(set(self.axis)): raise ValueError('Duplicate axis: %s' % self.axis) axis_to_dim = {x: input_shape.dims[x].value for x in self.axis} for x in axis_to_dim: if axis_to_dim[x] is None: raise ValueError('Input has undefined `axis` dimension. Input shape: ', input_shape) self.input_spec = tf.keras.layers.InputSpec(ndim=ndims, axes=axis_to_dim) if len(axis_to_dim) == 1: # Single axis batch norm (most common/default use-case) param_shape = (list(axis_to_dim.values())[0],) else: # Parameter shape is the original shape but with 1 in all non-axis dims param_shape = [ axis_to_dim[i] if i in axis_to_dim else 1 for i in range(ndims) ] self.mean_offset = self._add_offset('mean_offset', param_shape) self.mean_scale = self._add_scale('mean_scale', param_shape) if not self.use_batch_normalization: self.prior_offset = self._add_offset('prior_offset', param_shape) self.prior_scale = self._add_scale('prior_scale', param_shape) self.built = True def _get_training_value(self, training=None): if training is None: training = tf.keras.backend.learning_phase() return training def call(self, inputs, training=None): training = self._get_training_value(training) inputs_dtype = inputs.dtype.base_dtype if inputs_dtype in (tf.float16, tf.bfloat16): # Do all math in float32 if given 16-bit inputs for numeric stability. # In particular, it's very easy for variance to overflow in float16 and # for safety we also choose to cast bfloat16 to float32. inputs = tf.cast(inputs, tf.float32) # Compute the axes along which to reduce the mean / variance input_shape = inputs.shape ndims = len(input_shape) reduction_axes = [i for i in range(ndims) if i not in self.axis] # Stops gradient update for the layers below in grow mode. # Intuitively when a new cluster is created, the gradients sent down to the # lower layers can disrupt the original weight, so it makes more sense to # freeze the other part when growing. inputs = tf.cond( tf.equal(self.mode, dm_ops.LOOKUP_WITH_GROW), lambda: tf.stop_gradient(inputs), lambda: inputs) # Broadcasting only necessary for single-axis batch norm where the axis is # not the last dimension broadcast_shape = [1] * ndims broadcast_shape[self.axis[0]] = input_shape.dims[self.axis[0]].value def _broadcast(v): if (v is not None and len(v.shape) != ndims and reduction_axes != list(range(ndims - 1))): return tf.reshape(v, broadcast_shape) return v mean_scale, mean_offset = _broadcast(self.mean_scale), _broadcast( self.mean_offset) if not self.use_batch_normalization: prior_scale, prior_offset = _broadcast(self.prior_scale), _broadcast( self.prior_offset) # Looks up mean and variances of from dynamic Gaussian memory. self.mean, self.variance, self.distance, self.cluster_id = ( dm_ops.dynamic_gaussian_memory_lookup( inputs, self.mode, self.dm_config, 'dm_lookup', service_address=self.service_address)) if self.use_batch_normalization: outputs = tf.nn.batch_normalization(inputs, self.mean, self.variance, mean_offset, mean_scale, self.epsilon) else: outputs = dynamic_normalization(inputs, self.mean, self.variance, prior_offset, mean_offset, prior_scale, mean_scale, self.epsilon) # If some components of the shape got lost due to adjustments, fix that. outputs.set_shape(input_shape) return outputs def dynamic_normalization(x: tf.Tensor, mean: tf.Tensor, variance: tf.Tensor, prior_offset: tf.Tensor, mean_offset: tf.Tensor, prior_scale: tf.Tensor, mean_scale: tf.Tensor, variance_epsilon: float): r"""Normalizes a tensor `x` based on the DyanmicNormalization formula. The normalization formula: ((|mean|^2 + p(mean)) / |x|^2 - 2 * g(mean)) / sqrt(variance) where p(mean) = prior_scale * mean + prior_offset g(mean) = mean_scale * mean + mean_offset. Here (prior_scale, prior_offset, mean_scale, mean_offset) are learnable parameters. Args: x: Input `Tensor` of arbitrary dimensionality. mean: A mean `Tensor`. variance: A variance `Tensor`. prior_offset: An offset `Tensor` for the prior term. mean_offset: An offset `Tensor` for estimating the mean value. prior_scale: A scale `Tensor` for the prior term. mean_scale: A scale `Tensor` for estimating the mean value. variance_epsilon: A small float number to avoid dividing by 0. Returns: The normalized, scaled, offset tensor. """ with tf.name_scope('dynamic_normalization'): inv = tf.math.rsqrt(variance + variance_epsilon) # Computes (|mean|^2 + (scale * mean + offset)) / (|x|^2 + epsilon) dividend = tf.reduce_sum(tf.math.square(mean), -1, keepdims=True) dividend += prior_scale * mean + prior_offset divisor = tf.reduce_sum( tf.math.square(x), -1, keepdims=True) + variance_epsilon scale = dividend / divisor # Computes the dynamic normalization. return ((1 + scale) * x - 2 * (mean * mean_scale + mean_offset)) * inv
4,520