text stringlengths 2 99k | meta dict |
|---|---|
/*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* For further information about Alkacon Software GmbH & Co. KG, please see the
* company website: http://www.alkacon.com
*
* For further information about OpenCms, please see the
* project website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.opencms.xml.types;
import org.opencms.file.CmsObject;
import org.opencms.main.CmsIllegalArgumentException;
import org.opencms.main.CmsRuntimeException;
import org.opencms.util.CmsStringUtil;
import org.opencms.xml.I_CmsXmlDocument;
import java.util.Locale;
import org.dom4j.Element;
/**
* Base class for XML content value implementations that require only a simple XML cdata text node.<p>
*
* @since 6.0.0
*/
public abstract class A_CmsXmlValueCdataBase extends A_CmsXmlContentValue {
/** The String value of the element node. */
protected String m_stringValue;
/**
* Default constructor for a xml content type
* that initializes some internal values.<p>
*/
protected A_CmsXmlValueCdataBase() {
super();
}
/**
* Initializes the required members for this XML content value.<p>
*
* @param document the XML content instance this value belongs to
* @param element the XML element that contains this value
* @param locale the locale this value is created for
* @param type the type instance to create the value for
*/
protected A_CmsXmlValueCdataBase(
I_CmsXmlDocument document,
Element element,
Locale locale,
I_CmsXmlSchemaType type) {
super(document, element, locale, type);
m_stringValue = element.getText();
}
/**
* Initializes the schema type descriptor values for this type descriptor.<p>
*
* @param name the name of the XML node containing the value according to the XML schema
* @param minOccurs minimum number of occurrences of this type according to the XML schema
* @param maxOccurs maximum number of occurrences of this type according to the XML schema
*/
protected A_CmsXmlValueCdataBase(String name, String minOccurs, String maxOccurs) {
super(name, minOccurs, maxOccurs);
}
/**
* @see org.opencms.xml.types.I_CmsXmlContentValue#getPlainText(org.opencms.file.CmsObject)
*/
@Override
public String getPlainText(CmsObject cms) {
return getStringValue(cms);
}
/**
* @see org.opencms.xml.types.I_CmsXmlContentValue#getStringValue(CmsObject)
*/
public String getStringValue(CmsObject cms) throws CmsRuntimeException {
return m_stringValue;
}
/**
* @see org.opencms.xml.types.I_CmsXmlContentValue#setStringValue(org.opencms.file.CmsObject, java.lang.String)
*/
public void setStringValue(CmsObject cms, String value) throws CmsIllegalArgumentException {
m_element.clearContent();
if (CmsStringUtil.isNotEmpty(value)) {
m_element.addCDATA(value);
}
m_stringValue = value;
}
} | {
"pile_set_name": "Github"
} |
package org.yyx.netty.study.time.demo2;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <p>
* create by 叶云轩 at 2018/4/12-上午10:16
* contact by tdg_yyx@foxmail.com
*/
public class TimeClientHandler extends ChannelHandlerAdapter {
/**
* TimeClientHandler 日志控制器
* Create by 叶云轩 at 2018/4/12 上午10:16
* Concat at tdg_yyx@foxmail.com
*/
private static final Logger LOGGER = LoggerFactory.getLogger(TimeClientHandler.class);
/**
* 模拟粘包/拆包问题计数器
*/
private int counter;
/**
*
*/
private byte[] req;
public TimeClientHandler() {
// region 模拟粘包/拆包问题相关代码
req = ("QUERY TIME ORDER" + System.getProperty("line.separator")).getBytes();
// endregion
}
/**
* 捕捉异常
*
* @param ctx
* @param cause
* @throws Exception
*/
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
LOGGER.warn("--- [异常,释放资源] {}", cause.getMessage());
ctx.close();
}
/**
* 当客户端和服务端TCP链路建立成功之后调用此方法
* 发送指令给服务端,调用ChannelHandlerContext.writeAndFlush方法将请求消息发送给服务端
*
* @param ctx
* @throws Exception
*/
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
// region 模拟粘包/拆包问题相关代码
ByteBuf message;
for (int i = 0; i < 100; i++) {
message = Unpooled.buffer(req.length);
message.writeBytes(req);
ctx.writeAndFlush(message);
}
// endregion
}
/**
* 服务端返回应答消息时,调用此方法
*
* @param ctx
* @param msg
* @throws Exception
*/
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
ByteBuf byteBuf = (ByteBuf) msg;
byte[] request = new byte[byteBuf.readableBytes()];
byteBuf.readBytes(request);
String body = new String(request, "utf-8");
LOGGER.info("--- [Now is] {} | [counter] {}", body, ++counter);
}
}
| {
"pile_set_name": "Github"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.ozone.insight.scm;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.hadoop.hdds.protocol.proto.ScmBlockLocationProtocolProtos;
import org.apache.hadoop.hdds.scm.server.SCMBlockProtocolServer;
import org.apache.hadoop.ozone.insight.BaseInsightPoint;
import org.apache.hadoop.ozone.insight.Component.Type;
import org.apache.hadoop.ozone.insight.LoggerSource;
import org.apache.hadoop.ozone.insight.MetricGroupDisplay;
import org.apache.hadoop.hdds.scm.protocol.ScmBlockLocationProtocolServerSideTranslatorPB;
/**
* Insight metric to check the SCM block location protocol behaviour.
*/
public class ScmProtocolBlockLocationInsight extends BaseInsightPoint {
@Override
public List<LoggerSource> getRelatedLoggers(boolean verbose,
Map<String, String> filters) {
List<LoggerSource> loggers = new ArrayList<>();
loggers.add(
new LoggerSource(Type.SCM,
ScmBlockLocationProtocolServerSideTranslatorPB.class,
defaultLevel(verbose)));
loggers.add(new LoggerSource(Type.SCM,
SCMBlockProtocolServer.class,
defaultLevel(verbose)));
return loggers;
}
@Override
public List<MetricGroupDisplay> getMetrics(Map<String, String> filters) {
List<MetricGroupDisplay> metrics = new ArrayList<>();
Map<String, String> filter = new HashMap<>();
filter.put("servername", "StorageContainerLocationProtocolService");
addRpcMetrics(metrics, Type.SCM, filter);
addProtocolMessageMetrics(metrics, "scm_block_location_protocol",
Type.SCM, ScmBlockLocationProtocolProtos.Type.values());
return metrics;
}
@Override
public String getDescription() {
return "SCM Block location protocol endpoint";
}
}
| {
"pile_set_name": "Github"
} |
// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__arch64__ linux/usr/include/asm/unistd.h
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
// +build sparc64,linux
package unix
const (
SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1
SYS_FORK = 2
SYS_READ = 3
SYS_WRITE = 4
SYS_OPEN = 5
SYS_CLOSE = 6
SYS_WAIT4 = 7
SYS_CREAT = 8
SYS_LINK = 9
SYS_UNLINK = 10
SYS_EXECV = 11
SYS_CHDIR = 12
SYS_CHOWN = 13
SYS_MKNOD = 14
SYS_CHMOD = 15
SYS_LCHOWN = 16
SYS_BRK = 17
SYS_PERFCTR = 18
SYS_LSEEK = 19
SYS_GETPID = 20
SYS_CAPGET = 21
SYS_CAPSET = 22
SYS_SETUID = 23
SYS_GETUID = 24
SYS_VMSPLICE = 25
SYS_PTRACE = 26
SYS_ALARM = 27
SYS_SIGALTSTACK = 28
SYS_PAUSE = 29
SYS_UTIME = 30
SYS_ACCESS = 33
SYS_NICE = 34
SYS_SYNC = 36
SYS_KILL = 37
SYS_STAT = 38
SYS_SENDFILE = 39
SYS_LSTAT = 40
SYS_DUP = 41
SYS_PIPE = 42
SYS_TIMES = 43
SYS_UMOUNT2 = 45
SYS_SETGID = 46
SYS_GETGID = 47
SYS_SIGNAL = 48
SYS_GETEUID = 49
SYS_GETEGID = 50
SYS_ACCT = 51
SYS_MEMORY_ORDERING = 52
SYS_IOCTL = 54
SYS_REBOOT = 55
SYS_SYMLINK = 57
SYS_READLINK = 58
SYS_EXECVE = 59
SYS_UMASK = 60
SYS_CHROOT = 61
SYS_FSTAT = 62
SYS_FSTAT64 = 63
SYS_GETPAGESIZE = 64
SYS_MSYNC = 65
SYS_VFORK = 66
SYS_PREAD64 = 67
SYS_PWRITE64 = 68
SYS_MMAP = 71
SYS_MUNMAP = 73
SYS_MPROTECT = 74
SYS_MADVISE = 75
SYS_VHANGUP = 76
SYS_MINCORE = 78
SYS_GETGROUPS = 79
SYS_SETGROUPS = 80
SYS_GETPGRP = 81
SYS_SETITIMER = 83
SYS_SWAPON = 85
SYS_GETITIMER = 86
SYS_SETHOSTNAME = 88
SYS_DUP2 = 90
SYS_FCNTL = 92
SYS_SELECT = 93
SYS_FSYNC = 95
SYS_SETPRIORITY = 96
SYS_SOCKET = 97
SYS_CONNECT = 98
SYS_ACCEPT = 99
SYS_GETPRIORITY = 100
SYS_RT_SIGRETURN = 101
SYS_RT_SIGACTION = 102
SYS_RT_SIGPROCMASK = 103
SYS_RT_SIGPENDING = 104
SYS_RT_SIGTIMEDWAIT = 105
SYS_RT_SIGQUEUEINFO = 106
SYS_RT_SIGSUSPEND = 107
SYS_SETRESUID = 108
SYS_GETRESUID = 109
SYS_SETRESGID = 110
SYS_GETRESGID = 111
SYS_RECVMSG = 113
SYS_SENDMSG = 114
SYS_GETTIMEOFDAY = 116
SYS_GETRUSAGE = 117
SYS_GETSOCKOPT = 118
SYS_GETCWD = 119
SYS_READV = 120
SYS_WRITEV = 121
SYS_SETTIMEOFDAY = 122
SYS_FCHOWN = 123
SYS_FCHMOD = 124
SYS_RECVFROM = 125
SYS_SETREUID = 126
SYS_SETREGID = 127
SYS_RENAME = 128
SYS_TRUNCATE = 129
SYS_FTRUNCATE = 130
SYS_FLOCK = 131
SYS_LSTAT64 = 132
SYS_SENDTO = 133
SYS_SHUTDOWN = 134
SYS_SOCKETPAIR = 135
SYS_MKDIR = 136
SYS_RMDIR = 137
SYS_UTIMES = 138
SYS_STAT64 = 139
SYS_SENDFILE64 = 140
SYS_GETPEERNAME = 141
SYS_FUTEX = 142
SYS_GETTID = 143
SYS_GETRLIMIT = 144
SYS_SETRLIMIT = 145
SYS_PIVOT_ROOT = 146
SYS_PRCTL = 147
SYS_PCICONFIG_READ = 148
SYS_PCICONFIG_WRITE = 149
SYS_GETSOCKNAME = 150
SYS_INOTIFY_INIT = 151
SYS_INOTIFY_ADD_WATCH = 152
SYS_POLL = 153
SYS_GETDENTS64 = 154
SYS_INOTIFY_RM_WATCH = 156
SYS_STATFS = 157
SYS_FSTATFS = 158
SYS_UMOUNT = 159
SYS_SCHED_SET_AFFINITY = 160
SYS_SCHED_GET_AFFINITY = 161
SYS_GETDOMAINNAME = 162
SYS_SETDOMAINNAME = 163
SYS_UTRAP_INSTALL = 164
SYS_QUOTACTL = 165
SYS_SET_TID_ADDRESS = 166
SYS_MOUNT = 167
SYS_USTAT = 168
SYS_SETXATTR = 169
SYS_LSETXATTR = 170
SYS_FSETXATTR = 171
SYS_GETXATTR = 172
SYS_LGETXATTR = 173
SYS_GETDENTS = 174
SYS_SETSID = 175
SYS_FCHDIR = 176
SYS_FGETXATTR = 177
SYS_LISTXATTR = 178
SYS_LLISTXATTR = 179
SYS_FLISTXATTR = 180
SYS_REMOVEXATTR = 181
SYS_LREMOVEXATTR = 182
SYS_SIGPENDING = 183
SYS_QUERY_MODULE = 184
SYS_SETPGID = 185
SYS_FREMOVEXATTR = 186
SYS_TKILL = 187
SYS_EXIT_GROUP = 188
SYS_UNAME = 189
SYS_INIT_MODULE = 190
SYS_PERSONALITY = 191
SYS_REMAP_FILE_PAGES = 192
SYS_EPOLL_CREATE = 193
SYS_EPOLL_CTL = 194
SYS_EPOLL_WAIT = 195
SYS_IOPRIO_SET = 196
SYS_GETPPID = 197
SYS_SIGACTION = 198
SYS_SGETMASK = 199
SYS_SSETMASK = 200
SYS_SIGSUSPEND = 201
SYS_OLDLSTAT = 202
SYS_USELIB = 203
SYS_READDIR = 204
SYS_READAHEAD = 205
SYS_SOCKETCALL = 206
SYS_SYSLOG = 207
SYS_LOOKUP_DCOOKIE = 208
SYS_FADVISE64 = 209
SYS_FADVISE64_64 = 210
SYS_TGKILL = 211
SYS_WAITPID = 212
SYS_SWAPOFF = 213
SYS_SYSINFO = 214
SYS_IPC = 215
SYS_SIGRETURN = 216
SYS_CLONE = 217
SYS_IOPRIO_GET = 218
SYS_ADJTIMEX = 219
SYS_SIGPROCMASK = 220
SYS_CREATE_MODULE = 221
SYS_DELETE_MODULE = 222
SYS_GET_KERNEL_SYMS = 223
SYS_GETPGID = 224
SYS_BDFLUSH = 225
SYS_SYSFS = 226
SYS_AFS_SYSCALL = 227
SYS_SETFSUID = 228
SYS_SETFSGID = 229
SYS__NEWSELECT = 230
SYS_SPLICE = 232
SYS_STIME = 233
SYS_STATFS64 = 234
SYS_FSTATFS64 = 235
SYS__LLSEEK = 236
SYS_MLOCK = 237
SYS_MUNLOCK = 238
SYS_MLOCKALL = 239
SYS_MUNLOCKALL = 240
SYS_SCHED_SETPARAM = 241
SYS_SCHED_GETPARAM = 242
SYS_SCHED_SETSCHEDULER = 243
SYS_SCHED_GETSCHEDULER = 244
SYS_SCHED_YIELD = 245
SYS_SCHED_GET_PRIORITY_MAX = 246
SYS_SCHED_GET_PRIORITY_MIN = 247
SYS_SCHED_RR_GET_INTERVAL = 248
SYS_NANOSLEEP = 249
SYS_MREMAP = 250
SYS__SYSCTL = 251
SYS_GETSID = 252
SYS_FDATASYNC = 253
SYS_NFSSERVCTL = 254
SYS_SYNC_FILE_RANGE = 255
SYS_CLOCK_SETTIME = 256
SYS_CLOCK_GETTIME = 257
SYS_CLOCK_GETRES = 258
SYS_CLOCK_NANOSLEEP = 259
SYS_SCHED_GETAFFINITY = 260
SYS_SCHED_SETAFFINITY = 261
SYS_TIMER_SETTIME = 262
SYS_TIMER_GETTIME = 263
SYS_TIMER_GETOVERRUN = 264
SYS_TIMER_DELETE = 265
SYS_TIMER_CREATE = 266
SYS_IO_SETUP = 268
SYS_IO_DESTROY = 269
SYS_IO_SUBMIT = 270
SYS_IO_CANCEL = 271
SYS_IO_GETEVENTS = 272
SYS_MQ_OPEN = 273
SYS_MQ_UNLINK = 274
SYS_MQ_TIMEDSEND = 275
SYS_MQ_TIMEDRECEIVE = 276
SYS_MQ_NOTIFY = 277
SYS_MQ_GETSETATTR = 278
SYS_WAITID = 279
SYS_TEE = 280
SYS_ADD_KEY = 281
SYS_REQUEST_KEY = 282
SYS_KEYCTL = 283
SYS_OPENAT = 284
SYS_MKDIRAT = 285
SYS_MKNODAT = 286
SYS_FCHOWNAT = 287
SYS_FUTIMESAT = 288
SYS_FSTATAT64 = 289
SYS_UNLINKAT = 290
SYS_RENAMEAT = 291
SYS_LINKAT = 292
SYS_SYMLINKAT = 293
SYS_READLINKAT = 294
SYS_FCHMODAT = 295
SYS_FACCESSAT = 296
SYS_PSELECT6 = 297
SYS_PPOLL = 298
SYS_UNSHARE = 299
SYS_SET_ROBUST_LIST = 300
SYS_GET_ROBUST_LIST = 301
SYS_MIGRATE_PAGES = 302
SYS_MBIND = 303
SYS_GET_MEMPOLICY = 304
SYS_SET_MEMPOLICY = 305
SYS_KEXEC_LOAD = 306
SYS_MOVE_PAGES = 307
SYS_GETCPU = 308
SYS_EPOLL_PWAIT = 309
SYS_UTIMENSAT = 310
SYS_SIGNALFD = 311
SYS_TIMERFD_CREATE = 312
SYS_EVENTFD = 313
SYS_FALLOCATE = 314
SYS_TIMERFD_SETTIME = 315
SYS_TIMERFD_GETTIME = 316
SYS_SIGNALFD4 = 317
SYS_EVENTFD2 = 318
SYS_EPOLL_CREATE1 = 319
SYS_DUP3 = 320
SYS_PIPE2 = 321
SYS_INOTIFY_INIT1 = 322
SYS_ACCEPT4 = 323
SYS_PREADV = 324
SYS_PWRITEV = 325
SYS_RT_TGSIGQUEUEINFO = 326
SYS_PERF_EVENT_OPEN = 327
SYS_RECVMMSG = 328
SYS_FANOTIFY_INIT = 329
SYS_FANOTIFY_MARK = 330
SYS_PRLIMIT64 = 331
SYS_NAME_TO_HANDLE_AT = 332
SYS_OPEN_BY_HANDLE_AT = 333
SYS_CLOCK_ADJTIME = 334
SYS_SYNCFS = 335
SYS_SENDMMSG = 336
SYS_SETNS = 337
SYS_PROCESS_VM_READV = 338
SYS_PROCESS_VM_WRITEV = 339
SYS_KERN_FEATURES = 340
SYS_KCMP = 341
SYS_FINIT_MODULE = 342
SYS_SCHED_SETATTR = 343
SYS_SCHED_GETATTR = 344
SYS_RENAMEAT2 = 345
SYS_SECCOMP = 346
SYS_GETRANDOM = 347
SYS_MEMFD_CREATE = 348
SYS_BPF = 349
SYS_EXECVEAT = 350
SYS_MEMBARRIER = 351
SYS_USERFAULTFD = 352
SYS_BIND = 353
SYS_LISTEN = 354
SYS_SETSOCKOPT = 355
SYS_MLOCK2 = 356
SYS_COPY_FILE_RANGE = 357
SYS_PREADV2 = 358
SYS_PWRITEV2 = 359
)
| {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 25 2017 03:49:04).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "IAirDropProgressViewController.h"
#import "TDraggingSource-Protocol.h"
@class NSString;
@interface TAirDropReceiverProgressViewController : IAirDropProgressViewController <TDraggingSource>
{
struct shared_ptr<TAirDropReceiverOperationController> _receiverOpController;
struct TNSRef<NSMutableArray, void> _downloads;
}
+ (void)startReceivingWithOperation:(struct __SFOperation *)arg1;
- (id).cxx_construct;
- (void).cxx_destruct;
- (BOOL)ignoreModifierKeysForDraggingSession:(id)arg1;
- (id)namesOfPromisedFilesDroppedAtDestination:(id)arg1;
- (void)draggingSession:(id)arg1 endedAtPoint:(struct CGPoint)arg2 operation:(unsigned long long)arg3;
- (unsigned long long)draggingSession:(id)arg1 sourceOperationMaskForDraggingContext:(long long)arg2;
- (void)startDragInView:(id)arg1 withEvent:(id)arg2;
- (void)showOrUpdateStatusView;
- (void)showOrUpdateAskUserView;
- (_Bool)shouldShowFlyOverAnimation;
- (void)nwOperationEventBlocked:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventConnecting:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventErrorOccurred:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventFinished:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventPostprocess:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventConverting:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventProgress:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventPreprocess:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventConflict:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventStarted:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventCanceled:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)nwOperationEventAskUser:(id)arg1 opController:(struct INWOperationController *)arg2;
- (void)preflightNWOperationEvent:(long long)arg1 results:(id)arg2 opController:(struct INWOperationController *)arg3;
- (void)browserViewWillBeRemovedFromWindow;
- (void)openButtonPressed:(id)arg1;
- (void)okButtonPressed:(id)arg1;
- (void)superOKButtonPressed:(id)arg1;
- (id)createProgressForURL:(id)arg1;
- (void)resume;
- (long long)currentNWOperationEvent;
- (shared_ptr_466d67c7)operationController;
- (void)aboutToTearDown;
- (id)initWithReceiverOperation:(struct __SFOperation *)arg1;
// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;
@end
| {
"pile_set_name": "Github"
} |
/*
Copyright The Kubernetes 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.
*/
// Code generated by client-gen. DO NOT EDIT.
package v1alpha1
type PodPresetExpansion interface{}
| {
"pile_set_name": "Github"
} |
package routers
import (
"context"
"testing"
"github.com/gorilla/mux"
corev2 "github.com/sensu/sensu-go/api/core/v2"
"github.com/sensu/sensu-go/backend/store"
"github.com/sensu/sensu-go/backend/store/v2/storetest"
"github.com/sensu/sensu-go/testing/mockstore"
"github.com/stretchr/testify/mock"
)
type mockEntitiesController struct {
mock.Mock
}
func (m *mockEntitiesController) Find(ctx context.Context, id string) (*corev2.Entity, error) {
args := m.Called(ctx, id)
return args.Get(0).(*corev2.Entity), args.Error(1)
}
func (m *mockEntitiesController) List(ctx context.Context, pred *store.SelectionPredicate) ([]corev2.Resource, error) {
args := m.Called(ctx, pred)
return args.Get(0).([]corev2.Resource), args.Error(1)
}
func (m *mockEntitiesController) Create(ctx context.Context, entity corev2.Entity) error {
args := m.Called(ctx, entity)
return args.Error(0)
}
func (m *mockEntitiesController) CreateOrReplace(ctx context.Context, entity corev2.Entity) error {
args := m.Called(ctx, entity)
return args.Error(0)
}
func TestEntitiesRouter(t *testing.T) {
// Setup the router
controller := new(mockEntitiesController)
controller.On("Find", mock.Anything, mock.Anything).Return(corev2.FixtureEntity("foo"), nil)
controller.On("List", mock.Anything, mock.Anything).Return([]corev2.Resource{corev2.FixtureEntity("foo")}, nil)
controller.On("Create", mock.Anything, mock.Anything).Return(nil)
controller.On("CreateOrReplace", mock.Anything, mock.Anything).Return(nil)
s := new(mockstore.MockStore)
s.On("GetEventsByEntity", mock.Anything, "foo", mock.Anything).Return([]*corev2.Event{corev2.FixtureEvent("foo", "bar")}, nil)
s.On("DeleteEventByEntityCheck", mock.Anything, "foo", "bar").Return(nil)
s.On("DeleteEntityByName", mock.Anything, "foo").Return(nil)
s.On("GetEntityByName", mock.Anything, "foo").Return(corev2.FixtureEntity("foo"), nil)
s2 := new(storetest.Store)
router := NewEntitiesRouter(s, s2, s)
router.controller = controller
parentRouter := mux.NewRouter().PathPrefix(corev2.URLPrefix).Subrouter()
router.Mount(parentRouter)
//empty := &corev2.Entity{}
fixture := corev2.FixtureEntity("foo")
tests := []routerTestCase{}
//TODO(eric): replace these test cases so they work without handlers
//tests = append(tests, getTestCases(fixture)...)
//tests = append(tests, listTestCases(empty)...)
//tests = append(tests, createTestCases(empty)...)
//tests = append(tests, updateTestCases(fixture)...)
// NB: we avoid some of the generic deletion tests here since they
// are incompatible with the specialized deletion logic of the entity
// controller.
tests = append(tests, deleteResourceInvalidPathTestCase(fixture))
tests = append(tests, deleteResourceSuccessTestCase(fixture))
for _, tt := range tests {
run(t, tt, parentRouter, s)
}
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<org.chromium.chrome.browser.history.HistoryManagerToolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="0dp"
android:paddingEnd="0dp"
style="@style/ModernToolbar"/> | {
"pile_set_name": "Github"
} |
/* @migen@ */
/*
**==============================================================================
**
** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.
**
**==============================================================================
*/
#include <ctype.h>
#include <MI.h>
#include "Perf_Embedded.h"
#include "Perf_WithPsSemantics.h"
#include "Perf_NoPsSemantics.h"
#include "Perf_Indication.h"
#include "PerfAssocClass.h"
/*
**==============================================================================
**
** Schema Declaration
**
**==============================================================================
*/
extern MI_SchemaDecl schemaDecl;
/*
**==============================================================================
**
** _Match()
**
**==============================================================================
*/
static int _Match(const MI_Char* p, const MI_Char* q)
{
if (!p || !q)
return 0;
while (*p && *q)
if (toupper((MI_Uint16)*p++) - toupper((MI_Uint16)*q++))
return 0;
return *p == '\0' && *q == '\0';
}
/*
**==============================================================================
**
** Qualifier declarations
**
**==============================================================================
*/
static MI_CONST MI_Boolean Abstract_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Abstract_qual_decl =
{
MI_T("Abstract"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_RESTRICTED, /* flavor */
0, /* subscript */
&Abstract_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Aggregate_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Aggregate_qual_decl =
{
MI_T("Aggregate"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_REFERENCE, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Aggregate_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Aggregation_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Aggregation_qual_decl =
{
MI_T("Aggregation"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Aggregation_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Alias_qual_decl =
{
MI_T("Alias"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Char* ArrayType_qual_decl_value = MI_T("Bag");
static MI_CONST MI_QualifierDecl ArrayType_qual_decl =
{
MI_T("ArrayType"), /* name */
MI_STRING, /* type */
MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&ArrayType_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Association_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Association_qual_decl =
{
MI_T("Association"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Association_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl BitMap_qual_decl =
{
MI_T("BitMap"), /* name */
MI_STRINGA, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl BitValues_qual_decl =
{
MI_T("BitValues"), /* name */
MI_STRINGA, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl ClassConstraint_qual_decl =
{
MI_T("ClassConstraint"), /* name */
MI_STRINGA, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Composition_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Composition_qual_decl =
{
MI_T("Composition"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Composition_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Correlatable_qual_decl =
{
MI_T("Correlatable"), /* name */
MI_STRINGA, /* type */
MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Counter_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Counter_qual_decl =
{
MI_T("Counter"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&Counter_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Delete_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Delete_qual_decl =
{
MI_T("Delete"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
&Delete_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Deprecated_qual_decl =
{
MI_T("Deprecated"), /* name */
MI_STRINGA, /* type */
MI_FLAG_ANY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_RESTRICTED, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Description_qual_decl =
{
MI_T("Description"), /* name */
MI_STRING, /* type */
MI_FLAG_ANY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl DisplayDescription_qual_decl =
{
MI_T("DisplayDescription"), /* name */
MI_STRING, /* type */
MI_FLAG_ANY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl DisplayName_qual_decl =
{
MI_T("DisplayName"), /* name */
MI_STRING, /* type */
MI_FLAG_ANY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean DN_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl DN_qual_decl =
{
MI_T("DN"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&DN_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl EmbeddedInstance_qual_decl =
{
MI_T("EmbeddedInstance"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean EmbeddedObject_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl EmbeddedObject_qual_decl =
{
MI_T("EmbeddedObject"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&EmbeddedObject_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Exception_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Exception_qual_decl =
{
MI_T("Exception"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Exception_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Expensive_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Expensive_qual_decl =
{
MI_T("Expensive"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ANY, /* scope */
0, /* flavor */
0, /* subscript */
&Expensive_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Experimental_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Experimental_qual_decl =
{
MI_T("Experimental"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ANY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_RESTRICTED, /* flavor */
0, /* subscript */
&Experimental_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Gauge_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Gauge_qual_decl =
{
MI_T("Gauge"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&Gauge_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Ifdeleted_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Ifdeleted_qual_decl =
{
MI_T("Ifdeleted"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
&Ifdeleted_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean In_qual_decl_value = 1;
static MI_CONST MI_QualifierDecl In_qual_decl =
{
MI_T("In"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_PARAMETER, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&In_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Indication_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Indication_qual_decl =
{
MI_T("Indication"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Indication_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Invisible_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Invisible_qual_decl =
{
MI_T("Invisible"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_METHOD|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
&Invisible_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean IsPUnit_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl IsPUnit_qual_decl =
{
MI_T("IsPUnit"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&IsPUnit_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Key_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Key_qual_decl =
{
MI_T("Key"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Key_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Large_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Large_qual_decl =
{
MI_T("Large"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_CLASS|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&Large_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl MappingStrings_qual_decl =
{
MI_T("MappingStrings"), /* name */
MI_STRINGA, /* type */
MI_FLAG_ANY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Max_qual_decl =
{
MI_T("Max"), /* name */
MI_UINT32, /* type */
MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl MaxLen_qual_decl =
{
MI_T("MaxLen"), /* name */
MI_UINT32, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl MaxValue_qual_decl =
{
MI_T("MaxValue"), /* name */
MI_SINT64, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl MethodConstraint_qual_decl =
{
MI_T("MethodConstraint"), /* name */
MI_STRINGA, /* type */
MI_FLAG_METHOD, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Uint32 Min_qual_decl_value = 0U;
static MI_CONST MI_QualifierDecl Min_qual_decl =
{
MI_T("Min"), /* name */
MI_UINT32, /* type */
MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
&Min_qual_decl_value, /* value */
};
static MI_CONST MI_Uint32 MinLen_qual_decl_value = 0U;
static MI_CONST MI_QualifierDecl MinLen_qual_decl =
{
MI_T("MinLen"), /* name */
MI_UINT32, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&MinLen_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl MinValue_qual_decl =
{
MI_T("MinValue"), /* name */
MI_SINT64, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl ModelCorrespondence_qual_decl =
{
MI_T("ModelCorrespondence"), /* name */
MI_STRINGA, /* type */
MI_FLAG_ANY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Nonlocal_qual_decl =
{
MI_T("Nonlocal"), /* name */
MI_STRING, /* type */
MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl NonlocalType_qual_decl =
{
MI_T("NonlocalType"), /* name */
MI_STRING, /* type */
MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl NullValue_qual_decl =
{
MI_T("NullValue"), /* name */
MI_STRING, /* type */
MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Octetstring_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Octetstring_qual_decl =
{
MI_T("Octetstring"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Octetstring_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Out_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Out_qual_decl =
{
MI_T("Out"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_PARAMETER, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Out_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Override_qual_decl =
{
MI_T("Override"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_RESTRICTED, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Propagated_qual_decl =
{
MI_T("Propagated"), /* name */
MI_STRING, /* type */
MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl PropertyConstraint_qual_decl =
{
MI_T("PropertyConstraint"), /* name */
MI_STRINGA, /* type */
MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Char* PropertyUsage_qual_decl_value = MI_T("CurrentContext");
static MI_CONST MI_QualifierDecl PropertyUsage_qual_decl =
{
MI_T("PropertyUsage"), /* name */
MI_STRING, /* type */
MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&PropertyUsage_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Provider_qual_decl =
{
MI_T("Provider"), /* name */
MI_STRING, /* type */
MI_FLAG_ANY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl PUnit_qual_decl =
{
MI_T("PUnit"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Read_qual_decl_value = 1;
static MI_CONST MI_QualifierDecl Read_qual_decl =
{
MI_T("Read"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&Read_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Required_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Required_qual_decl =
{
MI_T("Required"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Required_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Revision_qual_decl =
{
MI_T("Revision"), /* name */
MI_STRING, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Schema_qual_decl =
{
MI_T("Schema"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Source_qual_decl =
{
MI_T("Source"), /* name */
MI_STRING, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl SourceType_qual_decl =
{
MI_T("SourceType"), /* name */
MI_STRING, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Static_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Static_qual_decl =
{
MI_T("Static"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Static_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Stream_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Stream_qual_decl =
{
MI_T("Stream"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Stream_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl Syntax_qual_decl =
{
MI_T("Syntax"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl SyntaxType_qual_decl =
{
MI_T("SyntaxType"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Terminal_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Terminal_qual_decl =
{
MI_T("Terminal"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
0, /* flavor */
0, /* subscript */
&Terminal_qual_decl_value, /* value */
};
static MI_CONST MI_QualifierDecl TriggerType_qual_decl =
{
MI_T("TriggerType"), /* name */
MI_STRING, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION|MI_FLAG_METHOD|MI_FLAG_PROPERTY|MI_FLAG_REFERENCE, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl UMLPackagePath_qual_decl =
{
MI_T("UMLPackagePath"), /* name */
MI_STRING, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Units_qual_decl =
{
MI_T("Units"), /* name */
MI_STRING, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl UnknownValues_qual_decl =
{
MI_T("UnknownValues"), /* name */
MI_STRINGA, /* type */
MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl UnsupportedValues_qual_decl =
{
MI_T("UnsupportedValues"), /* name */
MI_STRINGA, /* type */
MI_FLAG_PROPERTY, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl ValueMap_qual_decl =
{
MI_T("ValueMap"), /* name */
MI_STRINGA, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Values_qual_decl =
{
MI_T("Values"), /* name */
MI_STRINGA, /* type */
MI_FLAG_METHOD|MI_FLAG_PARAMETER|MI_FLAG_PROPERTY, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_QualifierDecl Version_qual_decl =
{
MI_T("Version"), /* name */
MI_STRING, /* type */
MI_FLAG_ASSOCIATION|MI_FLAG_CLASS|MI_FLAG_INDICATION, /* scope */
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TRANSLATABLE|MI_FLAG_RESTRICTED, /* flavor */
0, /* subscript */
NULL, /* value */
};
static MI_CONST MI_Boolean Weak_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Weak_qual_decl =
{
MI_T("Weak"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_REFERENCE, /* scope */
MI_FLAG_DISABLEOVERRIDE|MI_FLAG_TOSUBCLASS, /* flavor */
0, /* subscript */
&Weak_qual_decl_value, /* value */
};
static MI_CONST MI_Boolean Write_qual_decl_value = 0;
static MI_CONST MI_QualifierDecl Write_qual_decl =
{
MI_T("Write"), /* name */
MI_BOOLEAN, /* type */
MI_FLAG_PROPERTY, /* scope */
0, /* flavor */
0, /* subscript */
&Write_qual_decl_value, /* value */
};
static MI_QualifierDecl MI_CONST* MI_CONST qualifierDecls[] =
{
&Abstract_qual_decl,
&Aggregate_qual_decl,
&Aggregation_qual_decl,
&Alias_qual_decl,
&ArrayType_qual_decl,
&Association_qual_decl,
&BitMap_qual_decl,
&BitValues_qual_decl,
&ClassConstraint_qual_decl,
&Composition_qual_decl,
&Correlatable_qual_decl,
&Counter_qual_decl,
&Delete_qual_decl,
&Deprecated_qual_decl,
&Description_qual_decl,
&DisplayDescription_qual_decl,
&DisplayName_qual_decl,
&DN_qual_decl,
&EmbeddedInstance_qual_decl,
&EmbeddedObject_qual_decl,
&Exception_qual_decl,
&Expensive_qual_decl,
&Experimental_qual_decl,
&Gauge_qual_decl,
&Ifdeleted_qual_decl,
&In_qual_decl,
&Indication_qual_decl,
&Invisible_qual_decl,
&IsPUnit_qual_decl,
&Key_qual_decl,
&Large_qual_decl,
&MappingStrings_qual_decl,
&Max_qual_decl,
&MaxLen_qual_decl,
&MaxValue_qual_decl,
&MethodConstraint_qual_decl,
&Min_qual_decl,
&MinLen_qual_decl,
&MinValue_qual_decl,
&ModelCorrespondence_qual_decl,
&Nonlocal_qual_decl,
&NonlocalType_qual_decl,
&NullValue_qual_decl,
&Octetstring_qual_decl,
&Out_qual_decl,
&Override_qual_decl,
&Propagated_qual_decl,
&PropertyConstraint_qual_decl,
&PropertyUsage_qual_decl,
&Provider_qual_decl,
&PUnit_qual_decl,
&Read_qual_decl,
&Required_qual_decl,
&Revision_qual_decl,
&Schema_qual_decl,
&Source_qual_decl,
&SourceType_qual_decl,
&Static_qual_decl,
&Stream_qual_decl,
&Syntax_qual_decl,
&SyntaxType_qual_decl,
&Terminal_qual_decl,
&TriggerType_qual_decl,
&UMLPackagePath_qual_decl,
&Units_qual_decl,
&UnknownValues_qual_decl,
&UnsupportedValues_qual_decl,
&ValueMap_qual_decl,
&Values_qual_decl,
&Version_qual_decl,
&Weak_qual_decl,
&Write_qual_decl,
};
/*
**==============================================================================
**
** Perf_Embedded
**
**==============================================================================
*/
/* property Perf_Embedded.v_embeddedKey */
static MI_CONST MI_PropertyDecl Perf_Embedded_v_embeddedKey_prop =
{
MI_FLAG_PROPERTY|MI_FLAG_KEY, /* flags */
0x0076790D, /* code */
MI_T("v_embeddedKey"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Embedded, v_embeddedKey), /* offset */
MI_T("Perf_Embedded"), /* origin */
MI_T("Perf_Embedded"), /* propagator */
NULL,
};
/* property Perf_Embedded.v_string */
static MI_CONST MI_PropertyDecl Perf_Embedded_v_string_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766708, /* code */
MI_T("v_string"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_STRING, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Embedded, v_string), /* offset */
MI_T("Perf_Embedded"), /* origin */
MI_T("Perf_Embedded"), /* propagator */
NULL,
};
static MI_PropertyDecl MI_CONST* MI_CONST Perf_Embedded_props[] =
{
&Perf_Embedded_v_embeddedKey_prop,
&Perf_Embedded_v_string_prop,
};
static MI_CONST MI_ProviderFT Perf_Embedded_funcs =
{
(MI_ProviderFT_Load)Perf_Embedded_Load,
(MI_ProviderFT_Unload)Perf_Embedded_Unload,
(MI_ProviderFT_GetInstance)Perf_Embedded_GetInstance,
(MI_ProviderFT_EnumerateInstances)Perf_Embedded_EnumerateInstances,
(MI_ProviderFT_CreateInstance)Perf_Embedded_CreateInstance,
(MI_ProviderFT_ModifyInstance)Perf_Embedded_ModifyInstance,
(MI_ProviderFT_DeleteInstance)Perf_Embedded_DeleteInstance,
(MI_ProviderFT_AssociatorInstances)NULL,
(MI_ProviderFT_ReferenceInstances)NULL,
(MI_ProviderFT_EnableIndications)NULL,
(MI_ProviderFT_DisableIndications)NULL,
(MI_ProviderFT_Subscribe)NULL,
(MI_ProviderFT_Unsubscribe)NULL,
(MI_ProviderFT_Invoke)NULL,
};
/* class Perf_Embedded */
MI_CONST MI_ClassDecl Perf_Embedded_rtti =
{
MI_FLAG_CLASS, /* flags */
0x0070640D, /* code */
MI_T("Perf_Embedded"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_Embedded_props, /* properties */
MI_COUNT(Perf_Embedded_props), /* numProperties */
sizeof(Perf_Embedded), /* size */
NULL, /* superClass */
NULL, /* superClassDecl */
NULL, /* methods */
0, /* numMethods */
&schemaDecl, /* schema */
&Perf_Embedded_funcs, /* functions */
};
/*
**==============================================================================
**
** Perf_WithPsSemantics
**
**==============================================================================
*/
/* property Perf_WithPsSemantics.v_sint8 */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_sint8_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763807, /* code */
MI_T("v_sint8"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_SINT8A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_sint8), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_uint16 */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_uint16_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763608, /* code */
MI_T("v_uint16"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_uint16), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_sint32 */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_sint32_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763208, /* code */
MI_T("v_sint32"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_SINT32A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_sint32), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_uint64_key */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_uint64_key_prop =
{
MI_FLAG_PROPERTY|MI_FLAG_KEY, /* flags */
0x0076790C, /* code */
MI_T("v_uint64_key"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_uint64_key), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_string */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_string_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766708, /* code */
MI_T("v_string"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_STRINGA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_string), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_boolean */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_boolean_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766E09, /* code */
MI_T("v_boolean"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_BOOLEAN, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_boolean), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_real32 */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_real32_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763208, /* code */
MI_T("v_real32"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REAL32A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_real32), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_real64 */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_real64_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763408, /* code */
MI_T("v_real64"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REAL64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_real64), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_datetime */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_datetime_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0076650A, /* code */
MI_T("v_datetime"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_DATETIMEA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_datetime), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
/* property Perf_WithPsSemantics.v_char16 */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_char16_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763608, /* code */
MI_T("v_char16"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_CHAR16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_char16), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
static MI_CONST MI_Char* Perf_WithPsSemantics_v_embedded_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_WithPsSemantics_v_embedded_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_WithPsSemantics_v_embedded_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_WithPsSemantics_v_embedded_quals[] =
{
&Perf_WithPsSemantics_v_embedded_EmbeddedInstance_qual,
};
/* property Perf_WithPsSemantics.v_embedded */
static MI_CONST MI_PropertyDecl Perf_WithPsSemantics_v_embedded_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0076640A, /* code */
MI_T("v_embedded"), /* name */
Perf_WithPsSemantics_v_embedded_quals, /* qualifiers */
MI_COUNT(Perf_WithPsSemantics_v_embedded_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics, v_embedded), /* offset */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
NULL,
};
static MI_PropertyDecl MI_CONST* MI_CONST Perf_WithPsSemantics_props[] =
{
&Perf_WithPsSemantics_v_sint8_prop,
&Perf_WithPsSemantics_v_uint16_prop,
&Perf_WithPsSemantics_v_sint32_prop,
&Perf_WithPsSemantics_v_uint64_key_prop,
&Perf_WithPsSemantics_v_string_prop,
&Perf_WithPsSemantics_v_boolean_prop,
&Perf_WithPsSemantics_v_real32_prop,
&Perf_WithPsSemantics_v_real64_prop,
&Perf_WithPsSemantics_v_datetime_prop,
&Perf_WithPsSemantics_v_char16_prop,
&Perf_WithPsSemantics_v_embedded_prop,
};
/* parameter Perf_WithPsSemantics.SetBehaviour(): maxInstances */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_SetBehaviour_maxInstances_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x006D730C, /* code */
MI_T("maxInstances"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_SetBehaviour, maxInstances), /* offset */
};
/* parameter Perf_WithPsSemantics.SetBehaviour(): streamInstances */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_SetBehaviour_streamInstances_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x0073730F, /* code */
MI_T("streamInstances"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_SetBehaviour, streamInstances), /* offset */
};
/* parameter Perf_WithPsSemantics.SetBehaviour(): psSemanticsFlags */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_SetBehaviour_psSemanticsFlags_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x00707310, /* code */
MI_T("psSemanticsFlags"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_SetBehaviour, psSemanticsFlags), /* offset */
};
/* parameter Perf_WithPsSemantics.SetBehaviour(): psSemanticsCount */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_SetBehaviour_psSemanticsCount_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x00707410, /* code */
MI_T("psSemanticsCount"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_SetBehaviour, psSemanticsCount), /* offset */
};
/* parameter Perf_WithPsSemantics.SetBehaviour(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_SetBehaviour_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_SetBehaviour, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_WithPsSemantics_SetBehaviour_params[] =
{
&Perf_WithPsSemantics_SetBehaviour_MIReturn_param,
&Perf_WithPsSemantics_SetBehaviour_maxInstances_param,
&Perf_WithPsSemantics_SetBehaviour_streamInstances_param,
&Perf_WithPsSemantics_SetBehaviour_psSemanticsFlags_param,
&Perf_WithPsSemantics_SetBehaviour_psSemanticsCount_param,
};
/* method Perf_WithPsSemantics.SetBehaviour() */
MI_CONST MI_MethodDecl Perf_WithPsSemantics_SetBehaviour_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x0073720C, /* code */
MI_T("SetBehaviour"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_WithPsSemantics_SetBehaviour_params, /* parameters */
MI_COUNT(Perf_WithPsSemantics_SetBehaviour_params), /* numParameters */
sizeof(Perf_WithPsSemantics_SetBehaviour), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_WithPsSemantics_Invoke_SetBehaviour, /* method */
};
static MI_CONST MI_Char* Perf_WithPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_WithPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_WithPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_WithPsSemantics_PingBackParameters_inbound_quals[] =
{
&Perf_WithPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual,
};
/* parameter Perf_WithPsSemantics.PingBackParameters(): inbound */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_PingBackParameters_inbound_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x00696407, /* code */
MI_T("inbound"), /* name */
Perf_WithPsSemantics_PingBackParameters_inbound_quals, /* qualifiers */
MI_COUNT(Perf_WithPsSemantics_PingBackParameters_inbound_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_PingBackParameters, inbound), /* offset */
};
static MI_CONST MI_Char* Perf_WithPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_WithPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_WithPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_WithPsSemantics_PingBackParameters_outbound_quals[] =
{
&Perf_WithPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual,
};
/* parameter Perf_WithPsSemantics.PingBackParameters(): outbound */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_PingBackParameters_outbound_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006F6408, /* code */
MI_T("outbound"), /* name */
Perf_WithPsSemantics_PingBackParameters_outbound_quals, /* qualifiers */
MI_COUNT(Perf_WithPsSemantics_PingBackParameters_outbound_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_PingBackParameters, outbound), /* offset */
};
/* parameter Perf_WithPsSemantics.PingBackParameters(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_PingBackParameters_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_PingBackParameters, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_WithPsSemantics_PingBackParameters_params[] =
{
&Perf_WithPsSemantics_PingBackParameters_MIReturn_param,
&Perf_WithPsSemantics_PingBackParameters_inbound_param,
&Perf_WithPsSemantics_PingBackParameters_outbound_param,
};
/* method Perf_WithPsSemantics.PingBackParameters() */
MI_CONST MI_MethodDecl Perf_WithPsSemantics_PingBackParameters_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x00707312, /* code */
MI_T("PingBackParameters"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_WithPsSemantics_PingBackParameters_params, /* parameters */
MI_COUNT(Perf_WithPsSemantics_PingBackParameters_params), /* numParameters */
sizeof(Perf_WithPsSemantics_PingBackParameters), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_WithPsSemantics_Invoke_PingBackParameters, /* method */
};
static MI_CONST MI_Char* Perf_WithPsSemantics_streamingInstances_instances_EmbeddedInstance_qual_value = MI_T("Perf_WithPsSemantics");
static MI_CONST MI_Qualifier Perf_WithPsSemantics_streamingInstances_instances_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_WithPsSemantics_streamingInstances_instances_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_WithPsSemantics_streamingInstances_instances_quals[] =
{
&Perf_WithPsSemantics_streamingInstances_instances_EmbeddedInstance_qual,
};
/* parameter Perf_WithPsSemantics.streamingInstances(): instances */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_streamingInstances_instances_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT|MI_FLAG_STREAM, /* flags */
0x00697309, /* code */
MI_T("instances"), /* name */
Perf_WithPsSemantics_streamingInstances_instances_quals, /* qualifiers */
MI_COUNT(Perf_WithPsSemantics_streamingInstances_instances_quals), /* numQualifiers */
MI_INSTANCEA, /* type */
MI_T("Perf_WithPsSemantics"), /* className */
0, /* subscript */
0xFFFFFFFF, /* offset */
};
/* parameter Perf_WithPsSemantics.streamingInstances(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_streamingInstances_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_streamingInstances, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_WithPsSemantics_streamingInstances_params[] =
{
&Perf_WithPsSemantics_streamingInstances_MIReturn_param,
&Perf_WithPsSemantics_streamingInstances_instances_param,
};
/* method Perf_WithPsSemantics.streamingInstances() */
MI_CONST MI_MethodDecl Perf_WithPsSemantics_streamingInstances_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x00737312, /* code */
MI_T("streamingInstances"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_WithPsSemantics_streamingInstances_params, /* parameters */
MI_COUNT(Perf_WithPsSemantics_streamingInstances_params), /* numParameters */
sizeof(Perf_WithPsSemantics_streamingInstances), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_WithPsSemantics_Invoke_streamingInstances, /* method */
};
/* parameter Perf_WithPsSemantics.streamingPrimitive(): numbers */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_streamingPrimitive_numbers_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT|MI_FLAG_STREAM, /* flags */
0x006E7307, /* code */
MI_T("numbers"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32A, /* type */
NULL, /* className */
0, /* subscript */
0xFFFFFFFF, /* offset */
};
/* parameter Perf_WithPsSemantics.streamingPrimitive(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_WithPsSemantics_streamingPrimitive_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_WithPsSemantics_streamingPrimitive, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_WithPsSemantics_streamingPrimitive_params[] =
{
&Perf_WithPsSemantics_streamingPrimitive_MIReturn_param,
&Perf_WithPsSemantics_streamingPrimitive_numbers_param,
};
/* method Perf_WithPsSemantics.streamingPrimitive() */
MI_CONST MI_MethodDecl Perf_WithPsSemantics_streamingPrimitive_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x00736512, /* code */
MI_T("streamingPrimitive"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_WithPsSemantics_streamingPrimitive_params, /* parameters */
MI_COUNT(Perf_WithPsSemantics_streamingPrimitive_params), /* numParameters */
sizeof(Perf_WithPsSemantics_streamingPrimitive), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_WithPsSemantics"), /* origin */
MI_T("Perf_WithPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_WithPsSemantics_Invoke_streamingPrimitive, /* method */
};
static MI_MethodDecl MI_CONST* MI_CONST Perf_WithPsSemantics_meths[] =
{
&Perf_WithPsSemantics_SetBehaviour_rtti,
&Perf_WithPsSemantics_PingBackParameters_rtti,
&Perf_WithPsSemantics_streamingInstances_rtti,
&Perf_WithPsSemantics_streamingPrimitive_rtti,
};
static MI_CONST MI_ProviderFT Perf_WithPsSemantics_funcs =
{
(MI_ProviderFT_Load)Perf_WithPsSemantics_Load,
(MI_ProviderFT_Unload)Perf_WithPsSemantics_Unload,
(MI_ProviderFT_GetInstance)Perf_WithPsSemantics_GetInstance,
(MI_ProviderFT_EnumerateInstances)Perf_WithPsSemantics_EnumerateInstances,
(MI_ProviderFT_CreateInstance)Perf_WithPsSemantics_CreateInstance,
(MI_ProviderFT_ModifyInstance)Perf_WithPsSemantics_ModifyInstance,
(MI_ProviderFT_DeleteInstance)Perf_WithPsSemantics_DeleteInstance,
(MI_ProviderFT_AssociatorInstances)NULL,
(MI_ProviderFT_ReferenceInstances)NULL,
(MI_ProviderFT_EnableIndications)NULL,
(MI_ProviderFT_DisableIndications)NULL,
(MI_ProviderFT_Subscribe)NULL,
(MI_ProviderFT_Unsubscribe)NULL,
(MI_ProviderFT_Invoke)NULL,
};
/* class Perf_WithPsSemantics */
MI_CONST MI_ClassDecl Perf_WithPsSemantics_rtti =
{
MI_FLAG_CLASS, /* flags */
0x00707314, /* code */
MI_T("Perf_WithPsSemantics"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_WithPsSemantics_props, /* properties */
MI_COUNT(Perf_WithPsSemantics_props), /* numProperties */
sizeof(Perf_WithPsSemantics), /* size */
NULL, /* superClass */
NULL, /* superClassDecl */
Perf_WithPsSemantics_meths, /* methods */
MI_COUNT(Perf_WithPsSemantics_meths), /* numMethods */
&schemaDecl, /* schema */
&Perf_WithPsSemantics_funcs, /* functions */
};
/*
**==============================================================================
**
** Perf_NoPsSemantics
**
**==============================================================================
*/
/* property Perf_NoPsSemantics.v_sint8 */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_sint8_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763807, /* code */
MI_T("v_sint8"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_SINT8A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_sint8), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_uint16 */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_uint16_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763608, /* code */
MI_T("v_uint16"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_uint16), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_sint32 */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_sint32_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763208, /* code */
MI_T("v_sint32"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_SINT32A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_sint32), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_uint64_key */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_uint64_key_prop =
{
MI_FLAG_PROPERTY|MI_FLAG_KEY, /* flags */
0x0076790C, /* code */
MI_T("v_uint64_key"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_uint64_key), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_string */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_string_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766708, /* code */
MI_T("v_string"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_STRINGA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_string), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_boolean */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_boolean_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766E09, /* code */
MI_T("v_boolean"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_BOOLEAN, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_boolean), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_real32 */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_real32_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763208, /* code */
MI_T("v_real32"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REAL32A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_real32), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_real64 */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_real64_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763408, /* code */
MI_T("v_real64"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REAL64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_real64), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_datetime */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_datetime_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0076650A, /* code */
MI_T("v_datetime"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_DATETIMEA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_datetime), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
/* property Perf_NoPsSemantics.v_char16 */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_char16_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763608, /* code */
MI_T("v_char16"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_CHAR16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_char16), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
static MI_CONST MI_Char* Perf_NoPsSemantics_v_embedded_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_NoPsSemantics_v_embedded_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_NoPsSemantics_v_embedded_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_NoPsSemantics_v_embedded_quals[] =
{
&Perf_NoPsSemantics_v_embedded_EmbeddedInstance_qual,
};
/* property Perf_NoPsSemantics.v_embedded */
static MI_CONST MI_PropertyDecl Perf_NoPsSemantics_v_embedded_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0076640A, /* code */
MI_T("v_embedded"), /* name */
Perf_NoPsSemantics_v_embedded_quals, /* qualifiers */
MI_COUNT(Perf_NoPsSemantics_v_embedded_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics, v_embedded), /* offset */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
NULL,
};
static MI_PropertyDecl MI_CONST* MI_CONST Perf_NoPsSemantics_props[] =
{
&Perf_NoPsSemantics_v_sint8_prop,
&Perf_NoPsSemantics_v_uint16_prop,
&Perf_NoPsSemantics_v_sint32_prop,
&Perf_NoPsSemantics_v_uint64_key_prop,
&Perf_NoPsSemantics_v_string_prop,
&Perf_NoPsSemantics_v_boolean_prop,
&Perf_NoPsSemantics_v_real32_prop,
&Perf_NoPsSemantics_v_real64_prop,
&Perf_NoPsSemantics_v_datetime_prop,
&Perf_NoPsSemantics_v_char16_prop,
&Perf_NoPsSemantics_v_embedded_prop,
};
/* parameter Perf_NoPsSemantics.SetBehaviour(): maxInstances */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_SetBehaviour_maxInstances_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x006D730C, /* code */
MI_T("maxInstances"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_SetBehaviour, maxInstances), /* offset */
};
/* parameter Perf_NoPsSemantics.SetBehaviour(): streamInstances */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_SetBehaviour_streamInstances_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x0073730F, /* code */
MI_T("streamInstances"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_SetBehaviour, streamInstances), /* offset */
};
/* parameter Perf_NoPsSemantics.SetBehaviour(): psSemanticsFlags */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_SetBehaviour_psSemanticsFlags_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x00707310, /* code */
MI_T("psSemanticsFlags"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_SetBehaviour, psSemanticsFlags), /* offset */
};
/* parameter Perf_NoPsSemantics.SetBehaviour(): psSemanticsCount */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_SetBehaviour_psSemanticsCount_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x00707410, /* code */
MI_T("psSemanticsCount"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_SetBehaviour, psSemanticsCount), /* offset */
};
/* parameter Perf_NoPsSemantics.SetBehaviour(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_SetBehaviour_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_SetBehaviour, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_NoPsSemantics_SetBehaviour_params[] =
{
&Perf_NoPsSemantics_SetBehaviour_MIReturn_param,
&Perf_NoPsSemantics_SetBehaviour_maxInstances_param,
&Perf_NoPsSemantics_SetBehaviour_streamInstances_param,
&Perf_NoPsSemantics_SetBehaviour_psSemanticsFlags_param,
&Perf_NoPsSemantics_SetBehaviour_psSemanticsCount_param,
};
/* method Perf_NoPsSemantics.SetBehaviour() */
MI_CONST MI_MethodDecl Perf_NoPsSemantics_SetBehaviour_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x0073720C, /* code */
MI_T("SetBehaviour"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_NoPsSemantics_SetBehaviour_params, /* parameters */
MI_COUNT(Perf_NoPsSemantics_SetBehaviour_params), /* numParameters */
sizeof(Perf_NoPsSemantics_SetBehaviour), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_NoPsSemantics_Invoke_SetBehaviour, /* method */
};
static MI_CONST MI_Char* Perf_NoPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_NoPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_NoPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_NoPsSemantics_PingBackParameters_inbound_quals[] =
{
&Perf_NoPsSemantics_PingBackParameters_inbound_EmbeddedInstance_qual,
};
/* parameter Perf_NoPsSemantics.PingBackParameters(): inbound */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_PingBackParameters_inbound_param =
{
MI_FLAG_PARAMETER|MI_FLAG_IN, /* flags */
0x00696407, /* code */
MI_T("inbound"), /* name */
Perf_NoPsSemantics_PingBackParameters_inbound_quals, /* qualifiers */
MI_COUNT(Perf_NoPsSemantics_PingBackParameters_inbound_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_PingBackParameters, inbound), /* offset */
};
static MI_CONST MI_Char* Perf_NoPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_NoPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_NoPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_NoPsSemantics_PingBackParameters_outbound_quals[] =
{
&Perf_NoPsSemantics_PingBackParameters_outbound_EmbeddedInstance_qual,
};
/* parameter Perf_NoPsSemantics.PingBackParameters(): outbound */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_PingBackParameters_outbound_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006F6408, /* code */
MI_T("outbound"), /* name */
Perf_NoPsSemantics_PingBackParameters_outbound_quals, /* qualifiers */
MI_COUNT(Perf_NoPsSemantics_PingBackParameters_outbound_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_PingBackParameters, outbound), /* offset */
};
/* parameter Perf_NoPsSemantics.PingBackParameters(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_PingBackParameters_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_PingBackParameters, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_NoPsSemantics_PingBackParameters_params[] =
{
&Perf_NoPsSemantics_PingBackParameters_MIReturn_param,
&Perf_NoPsSemantics_PingBackParameters_inbound_param,
&Perf_NoPsSemantics_PingBackParameters_outbound_param,
};
/* method Perf_NoPsSemantics.PingBackParameters() */
MI_CONST MI_MethodDecl Perf_NoPsSemantics_PingBackParameters_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x00707312, /* code */
MI_T("PingBackParameters"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_NoPsSemantics_PingBackParameters_params, /* parameters */
MI_COUNT(Perf_NoPsSemantics_PingBackParameters_params), /* numParameters */
sizeof(Perf_NoPsSemantics_PingBackParameters), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_NoPsSemantics_Invoke_PingBackParameters, /* method */
};
static MI_CONST MI_Char* Perf_NoPsSemantics_streamingInstances_instances_EmbeddedInstance_qual_value = MI_T("Perf_WithPsSemantics");
static MI_CONST MI_Qualifier Perf_NoPsSemantics_streamingInstances_instances_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_NoPsSemantics_streamingInstances_instances_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_NoPsSemantics_streamingInstances_instances_quals[] =
{
&Perf_NoPsSemantics_streamingInstances_instances_EmbeddedInstance_qual,
};
/* parameter Perf_NoPsSemantics.streamingInstances(): instances */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_streamingInstances_instances_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT|MI_FLAG_STREAM, /* flags */
0x00697309, /* code */
MI_T("instances"), /* name */
Perf_NoPsSemantics_streamingInstances_instances_quals, /* qualifiers */
MI_COUNT(Perf_NoPsSemantics_streamingInstances_instances_quals), /* numQualifiers */
MI_INSTANCEA, /* type */
MI_T("Perf_WithPsSemantics"), /* className */
0, /* subscript */
0xFFFFFFFF, /* offset */
};
/* parameter Perf_NoPsSemantics.streamingInstances(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_streamingInstances_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_streamingInstances, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_NoPsSemantics_streamingInstances_params[] =
{
&Perf_NoPsSemantics_streamingInstances_MIReturn_param,
&Perf_NoPsSemantics_streamingInstances_instances_param,
};
/* method Perf_NoPsSemantics.streamingInstances() */
MI_CONST MI_MethodDecl Perf_NoPsSemantics_streamingInstances_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x00737312, /* code */
MI_T("streamingInstances"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_NoPsSemantics_streamingInstances_params, /* parameters */
MI_COUNT(Perf_NoPsSemantics_streamingInstances_params), /* numParameters */
sizeof(Perf_NoPsSemantics_streamingInstances), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_NoPsSemantics_Invoke_streamingInstances, /* method */
};
/* parameter Perf_NoPsSemantics.streamingPrimitive(): numbers */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_streamingPrimitive_numbers_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT|MI_FLAG_STREAM, /* flags */
0x006E7307, /* code */
MI_T("numbers"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32A, /* type */
NULL, /* className */
0, /* subscript */
0xFFFFFFFF, /* offset */
};
/* parameter Perf_NoPsSemantics.streamingPrimitive(): MIReturn */
static MI_CONST MI_ParameterDecl Perf_NoPsSemantics_streamingPrimitive_MIReturn_param =
{
MI_FLAG_PARAMETER|MI_FLAG_OUT, /* flags */
0x006D6E08, /* code */
MI_T("MIReturn"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT32, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_NoPsSemantics_streamingPrimitive, MIReturn), /* offset */
};
static MI_ParameterDecl MI_CONST* MI_CONST Perf_NoPsSemantics_streamingPrimitive_params[] =
{
&Perf_NoPsSemantics_streamingPrimitive_MIReturn_param,
&Perf_NoPsSemantics_streamingPrimitive_numbers_param,
};
/* method Perf_NoPsSemantics.streamingPrimitive() */
MI_CONST MI_MethodDecl Perf_NoPsSemantics_streamingPrimitive_rtti =
{
MI_FLAG_METHOD|MI_FLAG_STATIC, /* flags */
0x00736512, /* code */
MI_T("streamingPrimitive"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_NoPsSemantics_streamingPrimitive_params, /* parameters */
MI_COUNT(Perf_NoPsSemantics_streamingPrimitive_params), /* numParameters */
sizeof(Perf_NoPsSemantics_streamingPrimitive), /* size */
MI_UINT32, /* returnType */
MI_T("Perf_NoPsSemantics"), /* origin */
MI_T("Perf_NoPsSemantics"), /* propagator */
&schemaDecl, /* schema */
(MI_ProviderFT_Invoke)Perf_NoPsSemantics_Invoke_streamingPrimitive, /* method */
};
static MI_MethodDecl MI_CONST* MI_CONST Perf_NoPsSemantics_meths[] =
{
&Perf_NoPsSemantics_SetBehaviour_rtti,
&Perf_NoPsSemantics_PingBackParameters_rtti,
&Perf_NoPsSemantics_streamingInstances_rtti,
&Perf_NoPsSemantics_streamingPrimitive_rtti,
};
static MI_CONST MI_ProviderFT Perf_NoPsSemantics_funcs =
{
(MI_ProviderFT_Load)Perf_NoPsSemantics_Load,
(MI_ProviderFT_Unload)Perf_NoPsSemantics_Unload,
(MI_ProviderFT_GetInstance)Perf_NoPsSemantics_GetInstance,
(MI_ProviderFT_EnumerateInstances)Perf_NoPsSemantics_EnumerateInstances,
(MI_ProviderFT_CreateInstance)Perf_NoPsSemantics_CreateInstance,
(MI_ProviderFT_ModifyInstance)Perf_NoPsSemantics_ModifyInstance,
(MI_ProviderFT_DeleteInstance)Perf_NoPsSemantics_DeleteInstance,
(MI_ProviderFT_AssociatorInstances)NULL,
(MI_ProviderFT_ReferenceInstances)NULL,
(MI_ProviderFT_EnableIndications)NULL,
(MI_ProviderFT_DisableIndications)NULL,
(MI_ProviderFT_Subscribe)NULL,
(MI_ProviderFT_Unsubscribe)NULL,
(MI_ProviderFT_Invoke)NULL,
};
/* class Perf_NoPsSemantics */
MI_CONST MI_ClassDecl Perf_NoPsSemantics_rtti =
{
MI_FLAG_CLASS, /* flags */
0x00707312, /* code */
MI_T("Perf_NoPsSemantics"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
Perf_NoPsSemantics_props, /* properties */
MI_COUNT(Perf_NoPsSemantics_props), /* numProperties */
sizeof(Perf_NoPsSemantics), /* size */
NULL, /* superClass */
NULL, /* superClassDecl */
Perf_NoPsSemantics_meths, /* methods */
MI_COUNT(Perf_NoPsSemantics_meths), /* numMethods */
&schemaDecl, /* schema */
&Perf_NoPsSemantics_funcs, /* functions */
};
/*
**==============================================================================
**
** CIM_Indication
**
**==============================================================================
*/
/* property CIM_Indication.IndicationIdentifier */
static MI_CONST MI_PropertyDecl CIM_Indication_IndicationIdentifier_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00697214, /* code */
MI_T("IndicationIdentifier"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_STRING, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, IndicationIdentifier), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual_data_value[] =
{
MI_T("CIM_Indication.IndicationIdentifier"),
};
static MI_CONST MI_ConstStringA CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual_value =
{
CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual_data_value,
MI_COUNT(CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual =
{
MI_T("ModelCorrespondence"),
MI_STRINGA,
0,
&CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_CorrelatedIndications_quals[] =
{
&CIM_Indication_CorrelatedIndications_ModelCorrespondence_qual,
};
/* property CIM_Indication.CorrelatedIndications */
static MI_CONST MI_PropertyDecl CIM_Indication_CorrelatedIndications_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00637315, /* code */
MI_T("CorrelatedIndications"), /* name */
CIM_Indication_CorrelatedIndications_quals, /* qualifiers */
MI_COUNT(CIM_Indication_CorrelatedIndications_quals), /* numQualifiers */
MI_STRINGA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, CorrelatedIndications), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
/* property CIM_Indication.IndicationTime */
static MI_CONST MI_PropertyDecl CIM_Indication_IndicationTime_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0069650E, /* code */
MI_T("IndicationTime"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_DATETIME, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, IndicationTime), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* CIM_Indication_PerceivedSeverity_ValueMap_qual_data_value[] =
{
MI_T("0"),
MI_T("1"),
MI_T("2"),
MI_T("3"),
MI_T("4"),
MI_T("5"),
MI_T("6"),
MI_T("7"),
MI_T(".."),
};
static MI_CONST MI_ConstStringA CIM_Indication_PerceivedSeverity_ValueMap_qual_value =
{
CIM_Indication_PerceivedSeverity_ValueMap_qual_data_value,
MI_COUNT(CIM_Indication_PerceivedSeverity_ValueMap_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_PerceivedSeverity_ValueMap_qual =
{
MI_T("ValueMap"),
MI_STRINGA,
0,
&CIM_Indication_PerceivedSeverity_ValueMap_qual_value
};
static MI_CONST MI_Char* CIM_Indication_PerceivedSeverity_Values_qual_data_value[] =
{
MI_T("1"),
MI_T("2"),
MI_T("3"),
MI_T("4"),
MI_T("5"),
MI_T("6"),
MI_T("7"),
MI_T("8"),
MI_T("9"),
};
static MI_CONST MI_ConstStringA CIM_Indication_PerceivedSeverity_Values_qual_value =
{
CIM_Indication_PerceivedSeverity_Values_qual_data_value,
MI_COUNT(CIM_Indication_PerceivedSeverity_Values_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_PerceivedSeverity_Values_qual =
{
MI_T("Values"),
MI_STRINGA,
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TOSUBCLASS|MI_FLAG_TRANSLATABLE,
&CIM_Indication_PerceivedSeverity_Values_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_PerceivedSeverity_quals[] =
{
&CIM_Indication_PerceivedSeverity_ValueMap_qual,
&CIM_Indication_PerceivedSeverity_Values_qual,
};
/* property CIM_Indication.PerceivedSeverity */
static MI_CONST MI_PropertyDecl CIM_Indication_PerceivedSeverity_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00707911, /* code */
MI_T("PerceivedSeverity"), /* name */
CIM_Indication_PerceivedSeverity_quals, /* qualifiers */
MI_COUNT(CIM_Indication_PerceivedSeverity_quals), /* numQualifiers */
MI_UINT16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, PerceivedSeverity), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* CIM_Indication_OtherSeverity_ModelCorrespondence_qual_data_value[] =
{
MI_T("CIM_AlertIndication.PerceivedSeverity"),
};
static MI_CONST MI_ConstStringA CIM_Indication_OtherSeverity_ModelCorrespondence_qual_value =
{
CIM_Indication_OtherSeverity_ModelCorrespondence_qual_data_value,
MI_COUNT(CIM_Indication_OtherSeverity_ModelCorrespondence_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_OtherSeverity_ModelCorrespondence_qual =
{
MI_T("ModelCorrespondence"),
MI_STRINGA,
0,
&CIM_Indication_OtherSeverity_ModelCorrespondence_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_OtherSeverity_quals[] =
{
&CIM_Indication_OtherSeverity_ModelCorrespondence_qual,
};
/* property CIM_Indication.OtherSeverity */
static MI_CONST MI_PropertyDecl CIM_Indication_OtherSeverity_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x006F790D, /* code */
MI_T("OtherSeverity"), /* name */
CIM_Indication_OtherSeverity_quals, /* qualifiers */
MI_COUNT(CIM_Indication_OtherSeverity_quals), /* numQualifiers */
MI_STRING, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, OtherSeverity), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* CIM_Indication_IndicationFilterName_ModelCorrespondence_qual_data_value[] =
{
MI_T("CIM_IndicationFilter.Name"),
};
static MI_CONST MI_ConstStringA CIM_Indication_IndicationFilterName_ModelCorrespondence_qual_value =
{
CIM_Indication_IndicationFilterName_ModelCorrespondence_qual_data_value,
MI_COUNT(CIM_Indication_IndicationFilterName_ModelCorrespondence_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_IndicationFilterName_ModelCorrespondence_qual =
{
MI_T("ModelCorrespondence"),
MI_STRINGA,
0,
&CIM_Indication_IndicationFilterName_ModelCorrespondence_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_IndicationFilterName_quals[] =
{
&CIM_Indication_IndicationFilterName_ModelCorrespondence_qual,
};
/* property CIM_Indication.IndicationFilterName */
static MI_CONST MI_PropertyDecl CIM_Indication_IndicationFilterName_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00696514, /* code */
MI_T("IndicationFilterName"), /* name */
CIM_Indication_IndicationFilterName_quals, /* qualifiers */
MI_COUNT(CIM_Indication_IndicationFilterName_quals), /* numQualifiers */
MI_STRING, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, IndicationFilterName), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* CIM_Indication_SequenceContext_ModelCorrespondence_qual_data_value[] =
{
MI_T("CIM_Indication.SequenceNumber"),
};
static MI_CONST MI_ConstStringA CIM_Indication_SequenceContext_ModelCorrespondence_qual_value =
{
CIM_Indication_SequenceContext_ModelCorrespondence_qual_data_value,
MI_COUNT(CIM_Indication_SequenceContext_ModelCorrespondence_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_SequenceContext_ModelCorrespondence_qual =
{
MI_T("ModelCorrespondence"),
MI_STRINGA,
0,
&CIM_Indication_SequenceContext_ModelCorrespondence_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_SequenceContext_quals[] =
{
&CIM_Indication_SequenceContext_ModelCorrespondence_qual,
};
/* property CIM_Indication.SequenceContext */
static MI_CONST MI_PropertyDecl CIM_Indication_SequenceContext_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0073740F, /* code */
MI_T("SequenceContext"), /* name */
CIM_Indication_SequenceContext_quals, /* qualifiers */
MI_COUNT(CIM_Indication_SequenceContext_quals), /* numQualifiers */
MI_STRING, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, SequenceContext), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* CIM_Indication_SequenceNumber_ModelCorrespondence_qual_data_value[] =
{
MI_T("CIM_Indication.SequenceContext"),
};
static MI_CONST MI_ConstStringA CIM_Indication_SequenceNumber_ModelCorrespondence_qual_value =
{
CIM_Indication_SequenceNumber_ModelCorrespondence_qual_data_value,
MI_COUNT(CIM_Indication_SequenceNumber_ModelCorrespondence_qual_data_value),
};
static MI_CONST MI_Qualifier CIM_Indication_SequenceNumber_ModelCorrespondence_qual =
{
MI_T("ModelCorrespondence"),
MI_STRINGA,
0,
&CIM_Indication_SequenceNumber_ModelCorrespondence_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_SequenceNumber_quals[] =
{
&CIM_Indication_SequenceNumber_ModelCorrespondence_qual,
};
/* property CIM_Indication.SequenceNumber */
static MI_CONST MI_PropertyDecl CIM_Indication_SequenceNumber_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0073720E, /* code */
MI_T("SequenceNumber"), /* name */
CIM_Indication_SequenceNumber_quals, /* qualifiers */
MI_COUNT(CIM_Indication_SequenceNumber_quals), /* numQualifiers */
MI_SINT64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(CIM_Indication, SequenceNumber), /* offset */
MI_T("CIM_Indication"), /* origin */
MI_T("CIM_Indication"), /* propagator */
NULL,
};
static MI_PropertyDecl MI_CONST* MI_CONST CIM_Indication_props[] =
{
&CIM_Indication_IndicationIdentifier_prop,
&CIM_Indication_CorrelatedIndications_prop,
&CIM_Indication_IndicationTime_prop,
&CIM_Indication_PerceivedSeverity_prop,
&CIM_Indication_OtherSeverity_prop,
&CIM_Indication_IndicationFilterName_prop,
&CIM_Indication_SequenceContext_prop,
&CIM_Indication_SequenceNumber_prop,
};
static MI_CONST MI_Char* CIM_Indication_Version_qual_value = MI_T("10");
static MI_CONST MI_Qualifier CIM_Indication_Version_qual =
{
MI_T("Version"),
MI_STRING,
MI_FLAG_ENABLEOVERRIDE|MI_FLAG_TRANSLATABLE|MI_FLAG_RESTRICTED,
&CIM_Indication_Version_qual_value
};
static MI_CONST MI_Char* CIM_Indication_UMLPackagePath_qual_value = MI_T("CIM::Event");
static MI_CONST MI_Qualifier CIM_Indication_UMLPackagePath_qual =
{
MI_T("UMLPackagePath"),
MI_STRING,
0,
&CIM_Indication_UMLPackagePath_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST CIM_Indication_quals[] =
{
&CIM_Indication_Version_qual,
&CIM_Indication_UMLPackagePath_qual,
};
/* class CIM_Indication */
MI_CONST MI_ClassDecl CIM_Indication_rtti =
{
MI_FLAG_CLASS|MI_FLAG_INDICATION|MI_FLAG_ABSTRACT, /* flags */
0x00636E0E, /* code */
MI_T("CIM_Indication"), /* name */
CIM_Indication_quals, /* qualifiers */
MI_COUNT(CIM_Indication_quals), /* numQualifiers */
CIM_Indication_props, /* properties */
MI_COUNT(CIM_Indication_props), /* numProperties */
sizeof(CIM_Indication), /* size */
NULL, /* superClass */
NULL, /* superClassDecl */
NULL, /* methods */
0, /* numMethods */
&schemaDecl, /* schema */
NULL, /* functions */
};
/*
**==============================================================================
**
** Perf_Indication
**
**==============================================================================
*/
/* property Perf_Indication.v_sint8 */
static MI_CONST MI_PropertyDecl Perf_Indication_v_sint8_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763807, /* code */
MI_T("v_sint8"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_SINT8A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_sint8), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_uint16 */
static MI_CONST MI_PropertyDecl Perf_Indication_v_uint16_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763608, /* code */
MI_T("v_uint16"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_uint16), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_sint32 */
static MI_CONST MI_PropertyDecl Perf_Indication_v_sint32_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763208, /* code */
MI_T("v_sint32"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_SINT32A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_sint32), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_uint64_key */
static MI_CONST MI_PropertyDecl Perf_Indication_v_uint64_key_prop =
{
MI_FLAG_PROPERTY|MI_FLAG_KEY, /* flags */
0x0076790C, /* code */
MI_T("v_uint64_key"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_UINT64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_uint64_key), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_string */
static MI_CONST MI_PropertyDecl Perf_Indication_v_string_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766708, /* code */
MI_T("v_string"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_STRINGA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_string), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_boolean */
static MI_CONST MI_PropertyDecl Perf_Indication_v_boolean_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00766E09, /* code */
MI_T("v_boolean"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_BOOLEAN, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_boolean), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_real32 */
static MI_CONST MI_PropertyDecl Perf_Indication_v_real32_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763208, /* code */
MI_T("v_real32"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REAL32A, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_real32), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_real64 */
static MI_CONST MI_PropertyDecl Perf_Indication_v_real64_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763408, /* code */
MI_T("v_real64"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REAL64, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_real64), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_datetime */
static MI_CONST MI_PropertyDecl Perf_Indication_v_datetime_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0076650A, /* code */
MI_T("v_datetime"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_DATETIMEA, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_datetime), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
/* property Perf_Indication.v_char16 */
static MI_CONST MI_PropertyDecl Perf_Indication_v_char16_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x00763608, /* code */
MI_T("v_char16"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_CHAR16, /* type */
NULL, /* className */
0, /* subscript */
offsetof(Perf_Indication, v_char16), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
static MI_CONST MI_Char* Perf_Indication_v_embedded_EmbeddedInstance_qual_value = MI_T("Perf_Embedded");
static MI_CONST MI_Qualifier Perf_Indication_v_embedded_EmbeddedInstance_qual =
{
MI_T("EmbeddedInstance"),
MI_STRING,
0,
&Perf_Indication_v_embedded_EmbeddedInstance_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_Indication_v_embedded_quals[] =
{
&Perf_Indication_v_embedded_EmbeddedInstance_qual,
};
/* property Perf_Indication.v_embedded */
static MI_CONST MI_PropertyDecl Perf_Indication_v_embedded_prop =
{
MI_FLAG_PROPERTY, /* flags */
0x0076640A, /* code */
MI_T("v_embedded"), /* name */
Perf_Indication_v_embedded_quals, /* qualifiers */
MI_COUNT(Perf_Indication_v_embedded_quals), /* numQualifiers */
MI_INSTANCE, /* type */
MI_T("Perf_Embedded"), /* className */
0, /* subscript */
offsetof(Perf_Indication, v_embedded), /* offset */
MI_T("Perf_Indication"), /* origin */
MI_T("Perf_Indication"), /* propagator */
NULL,
};
static MI_PropertyDecl MI_CONST* MI_CONST Perf_Indication_props[] =
{
&CIM_Indication_IndicationIdentifier_prop,
&CIM_Indication_CorrelatedIndications_prop,
&CIM_Indication_IndicationTime_prop,
&CIM_Indication_PerceivedSeverity_prop,
&CIM_Indication_OtherSeverity_prop,
&CIM_Indication_IndicationFilterName_prop,
&CIM_Indication_SequenceContext_prop,
&CIM_Indication_SequenceNumber_prop,
&Perf_Indication_v_sint8_prop,
&Perf_Indication_v_uint16_prop,
&Perf_Indication_v_sint32_prop,
&Perf_Indication_v_uint64_key_prop,
&Perf_Indication_v_string_prop,
&Perf_Indication_v_boolean_prop,
&Perf_Indication_v_real32_prop,
&Perf_Indication_v_real64_prop,
&Perf_Indication_v_datetime_prop,
&Perf_Indication_v_char16_prop,
&Perf_Indication_v_embedded_prop,
};
static MI_CONST MI_ProviderFT Perf_Indication_funcs =
{
(MI_ProviderFT_Load)Perf_Indication_Load,
(MI_ProviderFT_Unload)Perf_Indication_Unload,
(MI_ProviderFT_GetInstance)NULL,
(MI_ProviderFT_EnumerateInstances)NULL,
(MI_ProviderFT_CreateInstance)NULL,
(MI_ProviderFT_ModifyInstance)NULL,
(MI_ProviderFT_DeleteInstance)NULL,
(MI_ProviderFT_AssociatorInstances)NULL,
(MI_ProviderFT_ReferenceInstances)NULL,
(MI_ProviderFT_EnableIndications)Perf_Indication_EnableIndications,
(MI_ProviderFT_DisableIndications)Perf_Indication_DisableIndications,
(MI_ProviderFT_Subscribe)Perf_Indication_Subscribe,
(MI_ProviderFT_Unsubscribe)Perf_Indication_Unsubscribe,
(MI_ProviderFT_Invoke)NULL,
};
static MI_CONST MI_Char* Perf_Indication_UMLPackagePath_qual_value = MI_T("CIM::Event");
static MI_CONST MI_Qualifier Perf_Indication_UMLPackagePath_qual =
{
MI_T("UMLPackagePath"),
MI_STRING,
0,
&Perf_Indication_UMLPackagePath_qual_value
};
static MI_Qualifier MI_CONST* MI_CONST Perf_Indication_quals[] =
{
&Perf_Indication_UMLPackagePath_qual,
};
/* class Perf_Indication */
MI_CONST MI_ClassDecl Perf_Indication_rtti =
{
MI_FLAG_CLASS|MI_FLAG_INDICATION, /* flags */
0x00706E0F, /* code */
MI_T("Perf_Indication"), /* name */
Perf_Indication_quals, /* qualifiers */
MI_COUNT(Perf_Indication_quals), /* numQualifiers */
Perf_Indication_props, /* properties */
MI_COUNT(Perf_Indication_props), /* numProperties */
sizeof(Perf_Indication), /* size */
MI_T("CIM_Indication"), /* superClass */
&CIM_Indication_rtti, /* superClassDecl */
NULL, /* methods */
0, /* numMethods */
&schemaDecl, /* schema */
&Perf_Indication_funcs, /* functions */
};
/*
**==============================================================================
**
** PerfAssocClass
**
**==============================================================================
*/
/* property PerfAssocClass.antecedent */
static MI_CONST MI_PropertyDecl PerfAssocClass_antecedent_prop =
{
MI_FLAG_PROPERTY|MI_FLAG_KEY, /* flags */
0x0061740A, /* code */
MI_T("antecedent"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REFERENCE, /* type */
MI_T("Perf_WithPsSemantics"), /* className */
0, /* subscript */
offsetof(PerfAssocClass, antecedent), /* offset */
MI_T("PerfAssocClass"), /* origin */
MI_T("PerfAssocClass"), /* propagator */
NULL,
};
/* property PerfAssocClass.dependent */
static MI_CONST MI_PropertyDecl PerfAssocClass_dependent_prop =
{
MI_FLAG_PROPERTY|MI_FLAG_KEY, /* flags */
0x00647409, /* code */
MI_T("dependent"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
MI_REFERENCE, /* type */
MI_T("Perf_NoPsSemantics"), /* className */
0, /* subscript */
offsetof(PerfAssocClass, dependent), /* offset */
MI_T("PerfAssocClass"), /* origin */
MI_T("PerfAssocClass"), /* propagator */
NULL,
};
static MI_PropertyDecl MI_CONST* MI_CONST PerfAssocClass_props[] =
{
&PerfAssocClass_antecedent_prop,
&PerfAssocClass_dependent_prop,
};
static void MI_CALL PerfAssocClass_AssociatorInstances(
_In_opt_ PerfAssocClass_Self* self,
_In_ MI_Context* context,
_In_opt_z_ const MI_Char* nameSpace,
_In_opt_z_ const MI_Char* className,
_In_ const MI_Instance* instanceName,
_In_z_ const MI_Char* resultClass,
_In_z_ const MI_Char* role,
_In_z_ const MI_Char* resultRole,
_In_opt_ const MI_PropertySet* propertySet,
_In_ MI_Boolean keysOnly,
_In_opt_ const MI_Filter* filter)
{
if (Perf_WithPsSemantics_IsA(instanceName))
{
if (_Match(role, MI_T("antecedent")) &&
_Match(resultRole, MI_T("dependent")))
{
PerfAssocClass_AssociatorInstancesantecedent(
self,
context,
nameSpace,
className,
(Perf_WithPsSemantics*)instanceName,
resultClass,
propertySet,
keysOnly,
filter);
return;
}
}
if (Perf_NoPsSemantics_IsA(instanceName))
{
if (_Match(role, MI_T("dependent")) &&
_Match(resultRole, MI_T("antecedent")))
{
PerfAssocClass_AssociatorInstancesdependent(
self,
context,
nameSpace,
className,
(Perf_NoPsSemantics*)instanceName,
resultClass,
propertySet,
keysOnly,
filter);
return;
}
}
MI_PostResult(context, MI_RESULT_OK);
}
static void MI_CALL PerfAssocClass_ReferenceInstances(
_In_opt_ PerfAssocClass_Self* self,
_In_ MI_Context* context,
_In_opt_z_ const MI_Char* nameSpace,
_In_opt_z_ const MI_Char* className,
_In_ const MI_Instance* instanceName,
_In_z_ const MI_Char* role,
_In_opt_ const MI_PropertySet* propertySet,
_In_ MI_Boolean keysOnly,
_In_opt_ const MI_Filter* filter)
{
if (Perf_WithPsSemantics_IsA(instanceName))
{
if (_Match(role, MI_T("antecedent")))
{
PerfAssocClass_ReferenceInstancesantecedent(
self,
context,
nameSpace,
className,
(Perf_WithPsSemantics*)instanceName,
propertySet,
keysOnly,
filter);
return;
}
}
if (Perf_NoPsSemantics_IsA(instanceName))
{
if (_Match(role, MI_T("dependent")))
{
PerfAssocClass_ReferenceInstancesdependent(
self,
context,
nameSpace,
className,
(Perf_NoPsSemantics*)instanceName,
propertySet,
keysOnly,
filter);
return;
}
}
MI_PostResult(context, MI_RESULT_OK);
}
static MI_CONST MI_ProviderFT PerfAssocClass_funcs =
{
(MI_ProviderFT_Load)PerfAssocClass_Load,
(MI_ProviderFT_Unload)PerfAssocClass_Unload,
(MI_ProviderFT_GetInstance)PerfAssocClass_GetInstance,
(MI_ProviderFT_EnumerateInstances)PerfAssocClass_EnumerateInstances,
(MI_ProviderFT_CreateInstance)PerfAssocClass_CreateInstance,
(MI_ProviderFT_ModifyInstance)PerfAssocClass_ModifyInstance,
(MI_ProviderFT_DeleteInstance)PerfAssocClass_DeleteInstance,
(MI_ProviderFT_AssociatorInstances)PerfAssocClass_AssociatorInstances,
(MI_ProviderFT_ReferenceInstances)PerfAssocClass_ReferenceInstances,
(MI_ProviderFT_EnableIndications)NULL,
(MI_ProviderFT_DisableIndications)NULL,
(MI_ProviderFT_Subscribe)NULL,
(MI_ProviderFT_Unsubscribe)NULL,
(MI_ProviderFT_Invoke)NULL,
};
/* class PerfAssocClass */
MI_CONST MI_ClassDecl PerfAssocClass_rtti =
{
MI_FLAG_CLASS|MI_FLAG_ASSOCIATION, /* flags */
0x0070730E, /* code */
MI_T("PerfAssocClass"), /* name */
NULL, /* qualifiers */
0, /* numQualifiers */
PerfAssocClass_props, /* properties */
MI_COUNT(PerfAssocClass_props), /* numProperties */
sizeof(PerfAssocClass), /* size */
NULL, /* superClass */
NULL, /* superClassDecl */
NULL, /* methods */
0, /* numMethods */
&schemaDecl, /* schema */
&PerfAssocClass_funcs, /* functions */
};
/*
**==============================================================================
**
** __mi_server
**
**==============================================================================
*/
MI_Server* __mi_server;
/*
**==============================================================================
**
** Schema
**
**==============================================================================
*/
static MI_ClassDecl MI_CONST* MI_CONST classes[] =
{
&CIM_Indication_rtti,
&PerfAssocClass_rtti,
&Perf_Embedded_rtti,
&Perf_Indication_rtti,
&Perf_NoPsSemantics_rtti,
&Perf_WithPsSemantics_rtti,
};
MI_SchemaDecl schemaDecl =
{
qualifierDecls, /* qualifierDecls */
MI_COUNT(qualifierDecls), /* numQualifierDecls */
classes, /* classDecls */
MI_COUNT(classes), /* classDecls */
};
/*
**==============================================================================
**
** MI_Server Methods
**
**==============================================================================
*/
MI_Result MI_CALL MI_Server_GetVersion(
MI_Uint32* version){
return __mi_server->serverFT->GetVersion(version);
}
MI_Result MI_CALL MI_Server_GetSystemName(
const MI_Char** systemName)
{
return __mi_server->serverFT->GetSystemName(systemName);
}
| {
"pile_set_name": "Github"
} |
{
"homepage": "https://aerogear.github.io/aerogear-unifiedpush-server/",
"getting-started#running": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/running",
"create-app": "https://aerogear.org/docs/unifiedpush/ups_userguide/index/#_create_and_manage_pushapplication",
"add-variant": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/introduction/ups-overview",
"step-by-step-android": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/variants/android",
"step-by-step-ios": "https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/",
"register-device-android": "https://aerogear.org/docs/unifiedpush/aerogear-push-android/guides/#_registration_with_the_unifiedpush_server",
"register-device-ios": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/variants/ios",
"build-and-deploy-android": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/android-client",
"build-and-deploy-ios": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/ios-client",
"build-and-deploy-ios_token": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/ios-client",
"build-and-deploy-web_push": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/webpush-client",
"sender-api": "https://aerogear.org/docs/specs/#push",
"sender-api-java": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/server_sdk/javasender",
"sender-api-nodejs": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/server_sdk/nodesender",
"sender-api-rest": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/server_sdk/restfulsender",
"sender-downloads-java": "https://aerogear.org/getstarted/downloads/#push",
"sender-downloads-nodejs": "https://aerogear.org/getstarted/downloads/#push",
"sender-step-by-step-java": "http://localhost:3001/aerogear-unifiedpush-server/docs/server_sdk/javasender",
"docs-push-getting-started": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/introduction/ups-overview",
"docs-push-ios": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/ios-client",
"docs-push-cordova": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/cordova-client",
"docs-push-android": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/android-client",
"docs-push-chrome": "https://aerogear.github.io/aerogear-unifiedpush-server/docs/clients/webpush-client"
}
| {
"pile_set_name": "Github"
} |
# https-browserify
https module compatability for browserify
# example
``` js
var https = require('https-browserify')
var r = https.request('https://github.com')
r.on('request', function (res) {
console.log(res)
})
```
# methods
The API is the same as the client portion of the
[node core https module](http://nodejs.org/docs/latest/api/https.html).
# license
MIT
| {
"pile_set_name": "Github"
} |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: dota_gcmessages_client_watch.proto
package dota
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type CMsgSpectateFriendGameResponse_EWatchLiveResult int32
const (
CMsgSpectateFriendGameResponse_SUCCESS CMsgSpectateFriendGameResponse_EWatchLiveResult = 0
CMsgSpectateFriendGameResponse_ERROR_GENERIC CMsgSpectateFriendGameResponse_EWatchLiveResult = 1
CMsgSpectateFriendGameResponse_ERROR_NO_PLUS CMsgSpectateFriendGameResponse_EWatchLiveResult = 2
CMsgSpectateFriendGameResponse_ERROR_NOT_FRIENDS CMsgSpectateFriendGameResponse_EWatchLiveResult = 3
CMsgSpectateFriendGameResponse_ERROR_LOBBY_NOT_FOUND CMsgSpectateFriendGameResponse_EWatchLiveResult = 4
CMsgSpectateFriendGameResponse_ERROR_SPECTATOR_IN_A_LOBBY CMsgSpectateFriendGameResponse_EWatchLiveResult = 5
CMsgSpectateFriendGameResponse_ERROR_LOBBY_IS_LAN CMsgSpectateFriendGameResponse_EWatchLiveResult = 6
CMsgSpectateFriendGameResponse_ERROR_WRONG_LOBBY_TYPE CMsgSpectateFriendGameResponse_EWatchLiveResult = 7
CMsgSpectateFriendGameResponse_ERROR_WRONG_LOBBY_STATE CMsgSpectateFriendGameResponse_EWatchLiveResult = 8
CMsgSpectateFriendGameResponse_ERROR_PLAYER_NOT_PLAYER CMsgSpectateFriendGameResponse_EWatchLiveResult = 9
CMsgSpectateFriendGameResponse_ERROR_TOO_MANY_SPECTATORS CMsgSpectateFriendGameResponse_EWatchLiveResult = 10
CMsgSpectateFriendGameResponse_ERROR_SPECTATOR_SWITCHED_TEAMS CMsgSpectateFriendGameResponse_EWatchLiveResult = 11
CMsgSpectateFriendGameResponse_ERROR_FRIENDS_ON_BOTH_SIDES CMsgSpectateFriendGameResponse_EWatchLiveResult = 12
CMsgSpectateFriendGameResponse_ERROR_SPECTATOR_IN_THIS_LOBBY CMsgSpectateFriendGameResponse_EWatchLiveResult = 13
)
var CMsgSpectateFriendGameResponse_EWatchLiveResult_name = map[int32]string{
0: "SUCCESS",
1: "ERROR_GENERIC",
2: "ERROR_NO_PLUS",
3: "ERROR_NOT_FRIENDS",
4: "ERROR_LOBBY_NOT_FOUND",
5: "ERROR_SPECTATOR_IN_A_LOBBY",
6: "ERROR_LOBBY_IS_LAN",
7: "ERROR_WRONG_LOBBY_TYPE",
8: "ERROR_WRONG_LOBBY_STATE",
9: "ERROR_PLAYER_NOT_PLAYER",
10: "ERROR_TOO_MANY_SPECTATORS",
11: "ERROR_SPECTATOR_SWITCHED_TEAMS",
12: "ERROR_FRIENDS_ON_BOTH_SIDES",
13: "ERROR_SPECTATOR_IN_THIS_LOBBY",
}
var CMsgSpectateFriendGameResponse_EWatchLiveResult_value = map[string]int32{
"SUCCESS": 0,
"ERROR_GENERIC": 1,
"ERROR_NO_PLUS": 2,
"ERROR_NOT_FRIENDS": 3,
"ERROR_LOBBY_NOT_FOUND": 4,
"ERROR_SPECTATOR_IN_A_LOBBY": 5,
"ERROR_LOBBY_IS_LAN": 6,
"ERROR_WRONG_LOBBY_TYPE": 7,
"ERROR_WRONG_LOBBY_STATE": 8,
"ERROR_PLAYER_NOT_PLAYER": 9,
"ERROR_TOO_MANY_SPECTATORS": 10,
"ERROR_SPECTATOR_SWITCHED_TEAMS": 11,
"ERROR_FRIENDS_ON_BOTH_SIDES": 12,
"ERROR_SPECTATOR_IN_THIS_LOBBY": 13,
}
func (x CMsgSpectateFriendGameResponse_EWatchLiveResult) Enum() *CMsgSpectateFriendGameResponse_EWatchLiveResult {
p := new(CMsgSpectateFriendGameResponse_EWatchLiveResult)
*p = x
return p
}
func (x CMsgSpectateFriendGameResponse_EWatchLiveResult) String() string {
return proto.EnumName(CMsgSpectateFriendGameResponse_EWatchLiveResult_name, int32(x))
}
func (x *CMsgSpectateFriendGameResponse_EWatchLiveResult) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(CMsgSpectateFriendGameResponse_EWatchLiveResult_value, data, "CMsgSpectateFriendGameResponse_EWatchLiveResult")
if err != nil {
return err
}
*x = CMsgSpectateFriendGameResponse_EWatchLiveResult(value)
return nil
}
func (CMsgSpectateFriendGameResponse_EWatchLiveResult) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{14, 0}
}
type CMsgWatchGameResponse_WatchGameResult int32
const (
CMsgWatchGameResponse_PENDING CMsgWatchGameResponse_WatchGameResult = 0
CMsgWatchGameResponse_READY CMsgWatchGameResponse_WatchGameResult = 1
CMsgWatchGameResponse_GAMESERVERNOTFOUND CMsgWatchGameResponse_WatchGameResult = 2
CMsgWatchGameResponse_UNAVAILABLE CMsgWatchGameResponse_WatchGameResult = 3
CMsgWatchGameResponse_CANCELLED CMsgWatchGameResponse_WatchGameResult = 4
CMsgWatchGameResponse_INCOMPATIBLEVERSION CMsgWatchGameResponse_WatchGameResult = 5
CMsgWatchGameResponse_MISSINGLEAGUESUBSCRIPTION CMsgWatchGameResponse_WatchGameResult = 6
CMsgWatchGameResponse_LOBBYNOTFOUND CMsgWatchGameResponse_WatchGameResult = 7
)
var CMsgWatchGameResponse_WatchGameResult_name = map[int32]string{
0: "PENDING",
1: "READY",
2: "GAMESERVERNOTFOUND",
3: "UNAVAILABLE",
4: "CANCELLED",
5: "INCOMPATIBLEVERSION",
6: "MISSINGLEAGUESUBSCRIPTION",
7: "LOBBYNOTFOUND",
}
var CMsgWatchGameResponse_WatchGameResult_value = map[string]int32{
"PENDING": 0,
"READY": 1,
"GAMESERVERNOTFOUND": 2,
"UNAVAILABLE": 3,
"CANCELLED": 4,
"INCOMPATIBLEVERSION": 5,
"MISSINGLEAGUESUBSCRIPTION": 6,
"LOBBYNOTFOUND": 7,
}
func (x CMsgWatchGameResponse_WatchGameResult) Enum() *CMsgWatchGameResponse_WatchGameResult {
p := new(CMsgWatchGameResponse_WatchGameResult)
*p = x
return p
}
func (x CMsgWatchGameResponse_WatchGameResult) String() string {
return proto.EnumName(CMsgWatchGameResponse_WatchGameResult_name, int32(x))
}
func (x *CMsgWatchGameResponse_WatchGameResult) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(CMsgWatchGameResponse_WatchGameResult_value, data, "CMsgWatchGameResponse_WatchGameResult")
if err != nil {
return err
}
*x = CMsgWatchGameResponse_WatchGameResult(value)
return nil
}
func (CMsgWatchGameResponse_WatchGameResult) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{18, 0}
}
type CSourceTVGameSmall struct {
ActivateTime *uint32 `protobuf:"varint,1,opt,name=activate_time,json=activateTime" json:"activate_time,omitempty"`
DeactivateTime *uint32 `protobuf:"varint,2,opt,name=deactivate_time,json=deactivateTime" json:"deactivate_time,omitempty"`
ServerSteamId *uint64 `protobuf:"varint,3,opt,name=server_steam_id,json=serverSteamId" json:"server_steam_id,omitempty"`
LobbyId *uint64 `protobuf:"varint,4,opt,name=lobby_id,json=lobbyId" json:"lobby_id,omitempty"`
LeagueId *uint32 `protobuf:"varint,5,opt,name=league_id,json=leagueId" json:"league_id,omitempty"`
LobbyType *uint32 `protobuf:"varint,6,opt,name=lobby_type,json=lobbyType" json:"lobby_type,omitempty"`
GameTime *int32 `protobuf:"varint,7,opt,name=game_time,json=gameTime" json:"game_time,omitempty"`
Delay *uint32 `protobuf:"varint,8,opt,name=delay" json:"delay,omitempty"`
Spectators *uint32 `protobuf:"varint,9,opt,name=spectators" json:"spectators,omitempty"`
GameMode *uint32 `protobuf:"varint,10,opt,name=game_mode,json=gameMode" json:"game_mode,omitempty"`
AverageMmr *uint32 `protobuf:"varint,11,opt,name=average_mmr,json=averageMmr" json:"average_mmr,omitempty"`
MatchId *uint64 `protobuf:"varint,12,opt,name=match_id,json=matchId" json:"match_id,omitempty"`
SeriesId *uint32 `protobuf:"varint,13,opt,name=series_id,json=seriesId" json:"series_id,omitempty"`
TeamNameRadiant *string `protobuf:"bytes,15,opt,name=team_name_radiant,json=teamNameRadiant" json:"team_name_radiant,omitempty"`
TeamNameDire *string `protobuf:"bytes,16,opt,name=team_name_dire,json=teamNameDire" json:"team_name_dire,omitempty"`
TeamLogoRadiant *uint64 `protobuf:"fixed64,24,opt,name=team_logo_radiant,json=teamLogoRadiant" json:"team_logo_radiant,omitempty"`
TeamLogoDire *uint64 `protobuf:"fixed64,25,opt,name=team_logo_dire,json=teamLogoDire" json:"team_logo_dire,omitempty"`
TeamIdRadiant *uint32 `protobuf:"varint,30,opt,name=team_id_radiant,json=teamIdRadiant" json:"team_id_radiant,omitempty"`
TeamIdDire *uint32 `protobuf:"varint,31,opt,name=team_id_dire,json=teamIdDire" json:"team_id_dire,omitempty"`
SortScore *uint32 `protobuf:"varint,17,opt,name=sort_score,json=sortScore" json:"sort_score,omitempty"`
LastUpdateTime *float32 `protobuf:"fixed32,18,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
RadiantLead *int32 `protobuf:"varint,19,opt,name=radiant_lead,json=radiantLead" json:"radiant_lead,omitempty"`
RadiantScore *uint32 `protobuf:"varint,20,opt,name=radiant_score,json=radiantScore" json:"radiant_score,omitempty"`
DireScore *uint32 `protobuf:"varint,21,opt,name=dire_score,json=direScore" json:"dire_score,omitempty"`
Players []*CSourceTVGameSmall_Player `protobuf:"bytes,22,rep,name=players" json:"players,omitempty"`
BuildingState *uint32 `protobuf:"fixed32,23,opt,name=building_state,json=buildingState" json:"building_state,omitempty"`
WeekendTourneyTournamentId *uint32 `protobuf:"varint,26,opt,name=weekend_tourney_tournament_id,json=weekendTourneyTournamentId" json:"weekend_tourney_tournament_id,omitempty"`
WeekendTourneyDivision *uint32 `protobuf:"varint,27,opt,name=weekend_tourney_division,json=weekendTourneyDivision" json:"weekend_tourney_division,omitempty"`
WeekendTourneySkillLevel *uint32 `protobuf:"varint,28,opt,name=weekend_tourney_skill_level,json=weekendTourneySkillLevel" json:"weekend_tourney_skill_level,omitempty"`
WeekendTourneyBracketRound *uint32 `protobuf:"varint,29,opt,name=weekend_tourney_bracket_round,json=weekendTourneyBracketRound" json:"weekend_tourney_bracket_round,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CSourceTVGameSmall) Reset() { *m = CSourceTVGameSmall{} }
func (m *CSourceTVGameSmall) String() string { return proto.CompactTextString(m) }
func (*CSourceTVGameSmall) ProtoMessage() {}
func (*CSourceTVGameSmall) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{0}
}
func (m *CSourceTVGameSmall) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CSourceTVGameSmall.Unmarshal(m, b)
}
func (m *CSourceTVGameSmall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CSourceTVGameSmall.Marshal(b, m, deterministic)
}
func (m *CSourceTVGameSmall) XXX_Merge(src proto.Message) {
xxx_messageInfo_CSourceTVGameSmall.Merge(m, src)
}
func (m *CSourceTVGameSmall) XXX_Size() int {
return xxx_messageInfo_CSourceTVGameSmall.Size(m)
}
func (m *CSourceTVGameSmall) XXX_DiscardUnknown() {
xxx_messageInfo_CSourceTVGameSmall.DiscardUnknown(m)
}
var xxx_messageInfo_CSourceTVGameSmall proto.InternalMessageInfo
func (m *CSourceTVGameSmall) GetActivateTime() uint32 {
if m != nil && m.ActivateTime != nil {
return *m.ActivateTime
}
return 0
}
func (m *CSourceTVGameSmall) GetDeactivateTime() uint32 {
if m != nil && m.DeactivateTime != nil {
return *m.DeactivateTime
}
return 0
}
func (m *CSourceTVGameSmall) GetServerSteamId() uint64 {
if m != nil && m.ServerSteamId != nil {
return *m.ServerSteamId
}
return 0
}
func (m *CSourceTVGameSmall) GetLobbyId() uint64 {
if m != nil && m.LobbyId != nil {
return *m.LobbyId
}
return 0
}
func (m *CSourceTVGameSmall) GetLeagueId() uint32 {
if m != nil && m.LeagueId != nil {
return *m.LeagueId
}
return 0
}
func (m *CSourceTVGameSmall) GetLobbyType() uint32 {
if m != nil && m.LobbyType != nil {
return *m.LobbyType
}
return 0
}
func (m *CSourceTVGameSmall) GetGameTime() int32 {
if m != nil && m.GameTime != nil {
return *m.GameTime
}
return 0
}
func (m *CSourceTVGameSmall) GetDelay() uint32 {
if m != nil && m.Delay != nil {
return *m.Delay
}
return 0
}
func (m *CSourceTVGameSmall) GetSpectators() uint32 {
if m != nil && m.Spectators != nil {
return *m.Spectators
}
return 0
}
func (m *CSourceTVGameSmall) GetGameMode() uint32 {
if m != nil && m.GameMode != nil {
return *m.GameMode
}
return 0
}
func (m *CSourceTVGameSmall) GetAverageMmr() uint32 {
if m != nil && m.AverageMmr != nil {
return *m.AverageMmr
}
return 0
}
func (m *CSourceTVGameSmall) GetMatchId() uint64 {
if m != nil && m.MatchId != nil {
return *m.MatchId
}
return 0
}
func (m *CSourceTVGameSmall) GetSeriesId() uint32 {
if m != nil && m.SeriesId != nil {
return *m.SeriesId
}
return 0
}
func (m *CSourceTVGameSmall) GetTeamNameRadiant() string {
if m != nil && m.TeamNameRadiant != nil {
return *m.TeamNameRadiant
}
return ""
}
func (m *CSourceTVGameSmall) GetTeamNameDire() string {
if m != nil && m.TeamNameDire != nil {
return *m.TeamNameDire
}
return ""
}
func (m *CSourceTVGameSmall) GetTeamLogoRadiant() uint64 {
if m != nil && m.TeamLogoRadiant != nil {
return *m.TeamLogoRadiant
}
return 0
}
func (m *CSourceTVGameSmall) GetTeamLogoDire() uint64 {
if m != nil && m.TeamLogoDire != nil {
return *m.TeamLogoDire
}
return 0
}
func (m *CSourceTVGameSmall) GetTeamIdRadiant() uint32 {
if m != nil && m.TeamIdRadiant != nil {
return *m.TeamIdRadiant
}
return 0
}
func (m *CSourceTVGameSmall) GetTeamIdDire() uint32 {
if m != nil && m.TeamIdDire != nil {
return *m.TeamIdDire
}
return 0
}
func (m *CSourceTVGameSmall) GetSortScore() uint32 {
if m != nil && m.SortScore != nil {
return *m.SortScore
}
return 0
}
func (m *CSourceTVGameSmall) GetLastUpdateTime() float32 {
if m != nil && m.LastUpdateTime != nil {
return *m.LastUpdateTime
}
return 0
}
func (m *CSourceTVGameSmall) GetRadiantLead() int32 {
if m != nil && m.RadiantLead != nil {
return *m.RadiantLead
}
return 0
}
func (m *CSourceTVGameSmall) GetRadiantScore() uint32 {
if m != nil && m.RadiantScore != nil {
return *m.RadiantScore
}
return 0
}
func (m *CSourceTVGameSmall) GetDireScore() uint32 {
if m != nil && m.DireScore != nil {
return *m.DireScore
}
return 0
}
func (m *CSourceTVGameSmall) GetPlayers() []*CSourceTVGameSmall_Player {
if m != nil {
return m.Players
}
return nil
}
func (m *CSourceTVGameSmall) GetBuildingState() uint32 {
if m != nil && m.BuildingState != nil {
return *m.BuildingState
}
return 0
}
func (m *CSourceTVGameSmall) GetWeekendTourneyTournamentId() uint32 {
if m != nil && m.WeekendTourneyTournamentId != nil {
return *m.WeekendTourneyTournamentId
}
return 0
}
func (m *CSourceTVGameSmall) GetWeekendTourneyDivision() uint32 {
if m != nil && m.WeekendTourneyDivision != nil {
return *m.WeekendTourneyDivision
}
return 0
}
func (m *CSourceTVGameSmall) GetWeekendTourneySkillLevel() uint32 {
if m != nil && m.WeekendTourneySkillLevel != nil {
return *m.WeekendTourneySkillLevel
}
return 0
}
func (m *CSourceTVGameSmall) GetWeekendTourneyBracketRound() uint32 {
if m != nil && m.WeekendTourneyBracketRound != nil {
return *m.WeekendTourneyBracketRound
}
return 0
}
type CSourceTVGameSmall_Player struct {
AccountId *uint32 `protobuf:"varint,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
HeroId *uint32 `protobuf:"varint,2,opt,name=hero_id,json=heroId" json:"hero_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CSourceTVGameSmall_Player) Reset() { *m = CSourceTVGameSmall_Player{} }
func (m *CSourceTVGameSmall_Player) String() string { return proto.CompactTextString(m) }
func (*CSourceTVGameSmall_Player) ProtoMessage() {}
func (*CSourceTVGameSmall_Player) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{0, 0}
}
func (m *CSourceTVGameSmall_Player) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CSourceTVGameSmall_Player.Unmarshal(m, b)
}
func (m *CSourceTVGameSmall_Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CSourceTVGameSmall_Player.Marshal(b, m, deterministic)
}
func (m *CSourceTVGameSmall_Player) XXX_Merge(src proto.Message) {
xxx_messageInfo_CSourceTVGameSmall_Player.Merge(m, src)
}
func (m *CSourceTVGameSmall_Player) XXX_Size() int {
return xxx_messageInfo_CSourceTVGameSmall_Player.Size(m)
}
func (m *CSourceTVGameSmall_Player) XXX_DiscardUnknown() {
xxx_messageInfo_CSourceTVGameSmall_Player.DiscardUnknown(m)
}
var xxx_messageInfo_CSourceTVGameSmall_Player proto.InternalMessageInfo
func (m *CSourceTVGameSmall_Player) GetAccountId() uint32 {
if m != nil && m.AccountId != nil {
return *m.AccountId
}
return 0
}
func (m *CSourceTVGameSmall_Player) GetHeroId() uint32 {
if m != nil && m.HeroId != nil {
return *m.HeroId
}
return 0
}
type CMsgClientToGCFindTopSourceTVGames struct {
SearchKey *string `protobuf:"bytes,1,opt,name=search_key,json=searchKey" json:"search_key,omitempty"`
LeagueId *uint32 `protobuf:"varint,2,opt,name=league_id,json=leagueId" json:"league_id,omitempty"`
HeroId *uint32 `protobuf:"varint,3,opt,name=hero_id,json=heroId" json:"hero_id,omitempty"`
StartGame *uint32 `protobuf:"varint,4,opt,name=start_game,json=startGame" json:"start_game,omitempty"`
GameListIndex *uint32 `protobuf:"varint,5,opt,name=game_list_index,json=gameListIndex" json:"game_list_index,omitempty"`
LobbyIds []uint64 `protobuf:"varint,6,rep,name=lobby_ids,json=lobbyIds" json:"lobby_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCFindTopSourceTVGames) Reset() { *m = CMsgClientToGCFindTopSourceTVGames{} }
func (m *CMsgClientToGCFindTopSourceTVGames) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCFindTopSourceTVGames) ProtoMessage() {}
func (*CMsgClientToGCFindTopSourceTVGames) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{1}
}
func (m *CMsgClientToGCFindTopSourceTVGames) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCFindTopSourceTVGames.Unmarshal(m, b)
}
func (m *CMsgClientToGCFindTopSourceTVGames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCFindTopSourceTVGames.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCFindTopSourceTVGames) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCFindTopSourceTVGames.Merge(m, src)
}
func (m *CMsgClientToGCFindTopSourceTVGames) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCFindTopSourceTVGames.Size(m)
}
func (m *CMsgClientToGCFindTopSourceTVGames) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCFindTopSourceTVGames.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCFindTopSourceTVGames proto.InternalMessageInfo
func (m *CMsgClientToGCFindTopSourceTVGames) GetSearchKey() string {
if m != nil && m.SearchKey != nil {
return *m.SearchKey
}
return ""
}
func (m *CMsgClientToGCFindTopSourceTVGames) GetLeagueId() uint32 {
if m != nil && m.LeagueId != nil {
return *m.LeagueId
}
return 0
}
func (m *CMsgClientToGCFindTopSourceTVGames) GetHeroId() uint32 {
if m != nil && m.HeroId != nil {
return *m.HeroId
}
return 0
}
func (m *CMsgClientToGCFindTopSourceTVGames) GetStartGame() uint32 {
if m != nil && m.StartGame != nil {
return *m.StartGame
}
return 0
}
func (m *CMsgClientToGCFindTopSourceTVGames) GetGameListIndex() uint32 {
if m != nil && m.GameListIndex != nil {
return *m.GameListIndex
}
return 0
}
func (m *CMsgClientToGCFindTopSourceTVGames) GetLobbyIds() []uint64 {
if m != nil {
return m.LobbyIds
}
return nil
}
type CMsgGCToClientFindTopSourceTVGamesResponse struct {
SearchKey *string `protobuf:"bytes,1,opt,name=search_key,json=searchKey" json:"search_key,omitempty"`
LeagueId *uint32 `protobuf:"varint,2,opt,name=league_id,json=leagueId" json:"league_id,omitempty"`
HeroId *uint32 `protobuf:"varint,3,opt,name=hero_id,json=heroId" json:"hero_id,omitempty"`
StartGame *uint32 `protobuf:"varint,4,opt,name=start_game,json=startGame" json:"start_game,omitempty"`
NumGames *uint32 `protobuf:"varint,5,opt,name=num_games,json=numGames" json:"num_games,omitempty"`
GameListIndex *uint32 `protobuf:"varint,6,opt,name=game_list_index,json=gameListIndex" json:"game_list_index,omitempty"`
GameList []*CSourceTVGameSmall `protobuf:"bytes,7,rep,name=game_list,json=gameList" json:"game_list,omitempty"`
SpecificGames *bool `protobuf:"varint,8,opt,name=specific_games,json=specificGames" json:"specific_games,omitempty"`
BotGame *CSourceTVGameSmall `protobuf:"bytes,9,opt,name=bot_game,json=botGame" json:"bot_game,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) Reset() {
*m = CMsgGCToClientFindTopSourceTVGamesResponse{}
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) String() string {
return proto.CompactTextString(m)
}
func (*CMsgGCToClientFindTopSourceTVGamesResponse) ProtoMessage() {}
func (*CMsgGCToClientFindTopSourceTVGamesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{2}
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgGCToClientFindTopSourceTVGamesResponse.Unmarshal(m, b)
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgGCToClientFindTopSourceTVGamesResponse.Marshal(b, m, deterministic)
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgGCToClientFindTopSourceTVGamesResponse.Merge(m, src)
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) XXX_Size() int {
return xxx_messageInfo_CMsgGCToClientFindTopSourceTVGamesResponse.Size(m)
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgGCToClientFindTopSourceTVGamesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgGCToClientFindTopSourceTVGamesResponse proto.InternalMessageInfo
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetSearchKey() string {
if m != nil && m.SearchKey != nil {
return *m.SearchKey
}
return ""
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetLeagueId() uint32 {
if m != nil && m.LeagueId != nil {
return *m.LeagueId
}
return 0
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetHeroId() uint32 {
if m != nil && m.HeroId != nil {
return *m.HeroId
}
return 0
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetStartGame() uint32 {
if m != nil && m.StartGame != nil {
return *m.StartGame
}
return 0
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetNumGames() uint32 {
if m != nil && m.NumGames != nil {
return *m.NumGames
}
return 0
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetGameListIndex() uint32 {
if m != nil && m.GameListIndex != nil {
return *m.GameListIndex
}
return 0
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetGameList() []*CSourceTVGameSmall {
if m != nil {
return m.GameList
}
return nil
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetSpecificGames() bool {
if m != nil && m.SpecificGames != nil {
return *m.SpecificGames
}
return false
}
func (m *CMsgGCToClientFindTopSourceTVGamesResponse) GetBotGame() *CSourceTVGameSmall {
if m != nil {
return m.BotGame
}
return nil
}
type CMsgGCToClientTopWeekendTourneyGames struct {
LiveGames []*CSourceTVGameSmall `protobuf:"bytes,1,rep,name=live_games,json=liveGames" json:"live_games,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgGCToClientTopWeekendTourneyGames) Reset() { *m = CMsgGCToClientTopWeekendTourneyGames{} }
func (m *CMsgGCToClientTopWeekendTourneyGames) String() string { return proto.CompactTextString(m) }
func (*CMsgGCToClientTopWeekendTourneyGames) ProtoMessage() {}
func (*CMsgGCToClientTopWeekendTourneyGames) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{3}
}
func (m *CMsgGCToClientTopWeekendTourneyGames) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgGCToClientTopWeekendTourneyGames.Unmarshal(m, b)
}
func (m *CMsgGCToClientTopWeekendTourneyGames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgGCToClientTopWeekendTourneyGames.Marshal(b, m, deterministic)
}
func (m *CMsgGCToClientTopWeekendTourneyGames) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgGCToClientTopWeekendTourneyGames.Merge(m, src)
}
func (m *CMsgGCToClientTopWeekendTourneyGames) XXX_Size() int {
return xxx_messageInfo_CMsgGCToClientTopWeekendTourneyGames.Size(m)
}
func (m *CMsgGCToClientTopWeekendTourneyGames) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgGCToClientTopWeekendTourneyGames.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgGCToClientTopWeekendTourneyGames proto.InternalMessageInfo
func (m *CMsgGCToClientTopWeekendTourneyGames) GetLiveGames() []*CSourceTVGameSmall {
if m != nil {
return m.LiveGames
}
return nil
}
type CMsgClientToGCTopMatchesRequest struct {
HeroId *uint32 `protobuf:"varint,1,opt,name=hero_id,json=heroId" json:"hero_id,omitempty"`
PlayerAccountId *uint32 `protobuf:"varint,2,opt,name=player_account_id,json=playerAccountId" json:"player_account_id,omitempty"`
TeamId *uint32 `protobuf:"varint,3,opt,name=team_id,json=teamId" json:"team_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCTopMatchesRequest) Reset() { *m = CMsgClientToGCTopMatchesRequest{} }
func (m *CMsgClientToGCTopMatchesRequest) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCTopMatchesRequest) ProtoMessage() {}
func (*CMsgClientToGCTopMatchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{4}
}
func (m *CMsgClientToGCTopMatchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCTopMatchesRequest.Unmarshal(m, b)
}
func (m *CMsgClientToGCTopMatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCTopMatchesRequest.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCTopMatchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCTopMatchesRequest.Merge(m, src)
}
func (m *CMsgClientToGCTopMatchesRequest) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCTopMatchesRequest.Size(m)
}
func (m *CMsgClientToGCTopMatchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCTopMatchesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCTopMatchesRequest proto.InternalMessageInfo
func (m *CMsgClientToGCTopMatchesRequest) GetHeroId() uint32 {
if m != nil && m.HeroId != nil {
return *m.HeroId
}
return 0
}
func (m *CMsgClientToGCTopMatchesRequest) GetPlayerAccountId() uint32 {
if m != nil && m.PlayerAccountId != nil {
return *m.PlayerAccountId
}
return 0
}
func (m *CMsgClientToGCTopMatchesRequest) GetTeamId() uint32 {
if m != nil && m.TeamId != nil {
return *m.TeamId
}
return 0
}
type CMsgClientToGCTopLeagueMatchesRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCTopLeagueMatchesRequest) Reset() { *m = CMsgClientToGCTopLeagueMatchesRequest{} }
func (m *CMsgClientToGCTopLeagueMatchesRequest) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCTopLeagueMatchesRequest) ProtoMessage() {}
func (*CMsgClientToGCTopLeagueMatchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{5}
}
func (m *CMsgClientToGCTopLeagueMatchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCTopLeagueMatchesRequest.Unmarshal(m, b)
}
func (m *CMsgClientToGCTopLeagueMatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCTopLeagueMatchesRequest.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCTopLeagueMatchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCTopLeagueMatchesRequest.Merge(m, src)
}
func (m *CMsgClientToGCTopLeagueMatchesRequest) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCTopLeagueMatchesRequest.Size(m)
}
func (m *CMsgClientToGCTopLeagueMatchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCTopLeagueMatchesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCTopLeagueMatchesRequest proto.InternalMessageInfo
type CMsgClientToGCTopFriendMatchesRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCTopFriendMatchesRequest) Reset() { *m = CMsgClientToGCTopFriendMatchesRequest{} }
func (m *CMsgClientToGCTopFriendMatchesRequest) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCTopFriendMatchesRequest) ProtoMessage() {}
func (*CMsgClientToGCTopFriendMatchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{6}
}
func (m *CMsgClientToGCTopFriendMatchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCTopFriendMatchesRequest.Unmarshal(m, b)
}
func (m *CMsgClientToGCTopFriendMatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCTopFriendMatchesRequest.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCTopFriendMatchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCTopFriendMatchesRequest.Merge(m, src)
}
func (m *CMsgClientToGCTopFriendMatchesRequest) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCTopFriendMatchesRequest.Size(m)
}
func (m *CMsgClientToGCTopFriendMatchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCTopFriendMatchesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCTopFriendMatchesRequest proto.InternalMessageInfo
type CMsgClientToGCMatchesMinimalRequest struct {
MatchIds []uint64 `protobuf:"varint,1,rep,name=match_ids,json=matchIds" json:"match_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCMatchesMinimalRequest) Reset() { *m = CMsgClientToGCMatchesMinimalRequest{} }
func (m *CMsgClientToGCMatchesMinimalRequest) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCMatchesMinimalRequest) ProtoMessage() {}
func (*CMsgClientToGCMatchesMinimalRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{7}
}
func (m *CMsgClientToGCMatchesMinimalRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCMatchesMinimalRequest.Unmarshal(m, b)
}
func (m *CMsgClientToGCMatchesMinimalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCMatchesMinimalRequest.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCMatchesMinimalRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCMatchesMinimalRequest.Merge(m, src)
}
func (m *CMsgClientToGCMatchesMinimalRequest) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCMatchesMinimalRequest.Size(m)
}
func (m *CMsgClientToGCMatchesMinimalRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCMatchesMinimalRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCMatchesMinimalRequest proto.InternalMessageInfo
func (m *CMsgClientToGCMatchesMinimalRequest) GetMatchIds() []uint64 {
if m != nil {
return m.MatchIds
}
return nil
}
type CMsgClientToGCMatchesMinimalResponse struct {
Matches []*CMsgDOTAMatchMinimal `protobuf:"bytes,1,rep,name=matches" json:"matches,omitempty"`
LastMatch *bool `protobuf:"varint,2,opt,name=last_match,json=lastMatch" json:"last_match,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCMatchesMinimalResponse) Reset() { *m = CMsgClientToGCMatchesMinimalResponse{} }
func (m *CMsgClientToGCMatchesMinimalResponse) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCMatchesMinimalResponse) ProtoMessage() {}
func (*CMsgClientToGCMatchesMinimalResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{8}
}
func (m *CMsgClientToGCMatchesMinimalResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCMatchesMinimalResponse.Unmarshal(m, b)
}
func (m *CMsgClientToGCMatchesMinimalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCMatchesMinimalResponse.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCMatchesMinimalResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCMatchesMinimalResponse.Merge(m, src)
}
func (m *CMsgClientToGCMatchesMinimalResponse) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCMatchesMinimalResponse.Size(m)
}
func (m *CMsgClientToGCMatchesMinimalResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCMatchesMinimalResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCMatchesMinimalResponse proto.InternalMessageInfo
func (m *CMsgClientToGCMatchesMinimalResponse) GetMatches() []*CMsgDOTAMatchMinimal {
if m != nil {
return m.Matches
}
return nil
}
func (m *CMsgClientToGCMatchesMinimalResponse) GetLastMatch() bool {
if m != nil && m.LastMatch != nil {
return *m.LastMatch
}
return false
}
type CMsgGCToClientTopLeagueMatchesResponse struct {
Matches []*CMsgDOTAMatchMinimal `protobuf:"bytes,2,rep,name=matches" json:"matches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) Reset() {
*m = CMsgGCToClientTopLeagueMatchesResponse{}
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) String() string { return proto.CompactTextString(m) }
func (*CMsgGCToClientTopLeagueMatchesResponse) ProtoMessage() {}
func (*CMsgGCToClientTopLeagueMatchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{9}
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgGCToClientTopLeagueMatchesResponse.Unmarshal(m, b)
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgGCToClientTopLeagueMatchesResponse.Marshal(b, m, deterministic)
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgGCToClientTopLeagueMatchesResponse.Merge(m, src)
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) XXX_Size() int {
return xxx_messageInfo_CMsgGCToClientTopLeagueMatchesResponse.Size(m)
}
func (m *CMsgGCToClientTopLeagueMatchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgGCToClientTopLeagueMatchesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgGCToClientTopLeagueMatchesResponse proto.InternalMessageInfo
func (m *CMsgGCToClientTopLeagueMatchesResponse) GetMatches() []*CMsgDOTAMatchMinimal {
if m != nil {
return m.Matches
}
return nil
}
type CMsgGCToClientTopFriendMatchesResponse struct {
Matches []*CMsgDOTAMatchMinimal `protobuf:"bytes,1,rep,name=matches" json:"matches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgGCToClientTopFriendMatchesResponse) Reset() {
*m = CMsgGCToClientTopFriendMatchesResponse{}
}
func (m *CMsgGCToClientTopFriendMatchesResponse) String() string { return proto.CompactTextString(m) }
func (*CMsgGCToClientTopFriendMatchesResponse) ProtoMessage() {}
func (*CMsgGCToClientTopFriendMatchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{10}
}
func (m *CMsgGCToClientTopFriendMatchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgGCToClientTopFriendMatchesResponse.Unmarshal(m, b)
}
func (m *CMsgGCToClientTopFriendMatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgGCToClientTopFriendMatchesResponse.Marshal(b, m, deterministic)
}
func (m *CMsgGCToClientTopFriendMatchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgGCToClientTopFriendMatchesResponse.Merge(m, src)
}
func (m *CMsgGCToClientTopFriendMatchesResponse) XXX_Size() int {
return xxx_messageInfo_CMsgGCToClientTopFriendMatchesResponse.Size(m)
}
func (m *CMsgGCToClientTopFriendMatchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgGCToClientTopFriendMatchesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgGCToClientTopFriendMatchesResponse proto.InternalMessageInfo
func (m *CMsgGCToClientTopFriendMatchesResponse) GetMatches() []*CMsgDOTAMatchMinimal {
if m != nil {
return m.Matches
}
return nil
}
type CMsgClientToGCFindTopMatches struct {
StartGame *uint32 `protobuf:"varint,1,opt,name=start_game,json=startGame" json:"start_game,omitempty"`
LeagueId *uint32 `protobuf:"varint,2,opt,name=league_id,json=leagueId" json:"league_id,omitempty"`
HeroId *uint32 `protobuf:"varint,3,opt,name=hero_id,json=heroId" json:"hero_id,omitempty"`
FriendId *uint32 `protobuf:"varint,4,opt,name=friend_id,json=friendId" json:"friend_id,omitempty"`
FriendList *bool `protobuf:"varint,5,opt,name=friend_list,json=friendList" json:"friend_list,omitempty"`
LeagueList *bool `protobuf:"varint,6,opt,name=league_list,json=leagueList" json:"league_list,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgClientToGCFindTopMatches) Reset() { *m = CMsgClientToGCFindTopMatches{} }
func (m *CMsgClientToGCFindTopMatches) String() string { return proto.CompactTextString(m) }
func (*CMsgClientToGCFindTopMatches) ProtoMessage() {}
func (*CMsgClientToGCFindTopMatches) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{11}
}
func (m *CMsgClientToGCFindTopMatches) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgClientToGCFindTopMatches.Unmarshal(m, b)
}
func (m *CMsgClientToGCFindTopMatches) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgClientToGCFindTopMatches.Marshal(b, m, deterministic)
}
func (m *CMsgClientToGCFindTopMatches) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgClientToGCFindTopMatches.Merge(m, src)
}
func (m *CMsgClientToGCFindTopMatches) XXX_Size() int {
return xxx_messageInfo_CMsgClientToGCFindTopMatches.Size(m)
}
func (m *CMsgClientToGCFindTopMatches) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgClientToGCFindTopMatches.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgClientToGCFindTopMatches proto.InternalMessageInfo
func (m *CMsgClientToGCFindTopMatches) GetStartGame() uint32 {
if m != nil && m.StartGame != nil {
return *m.StartGame
}
return 0
}
func (m *CMsgClientToGCFindTopMatches) GetLeagueId() uint32 {
if m != nil && m.LeagueId != nil {
return *m.LeagueId
}
return 0
}
func (m *CMsgClientToGCFindTopMatches) GetHeroId() uint32 {
if m != nil && m.HeroId != nil {
return *m.HeroId
}
return 0
}
func (m *CMsgClientToGCFindTopMatches) GetFriendId() uint32 {
if m != nil && m.FriendId != nil {
return *m.FriendId
}
return 0
}
func (m *CMsgClientToGCFindTopMatches) GetFriendList() bool {
if m != nil && m.FriendList != nil {
return *m.FriendList
}
return false
}
func (m *CMsgClientToGCFindTopMatches) GetLeagueList() bool {
if m != nil && m.LeagueList != nil {
return *m.LeagueList
}
return false
}
type CMsgGCToClientFindTopLeagueMatchesResponse struct {
StartGame *uint32 `protobuf:"varint,1,opt,name=start_game,json=startGame" json:"start_game,omitempty"`
LeagueId *uint32 `protobuf:"varint,2,opt,name=league_id,json=leagueId" json:"league_id,omitempty"`
HeroId *uint32 `protobuf:"varint,3,opt,name=hero_id,json=heroId" json:"hero_id,omitempty"`
MatchIds []uint32 `protobuf:"varint,4,rep,name=match_ids,json=matchIds" json:"match_ids,omitempty"`
Matches []*CMsgDOTAMatch `protobuf:"bytes,5,rep,name=matches" json:"matches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) Reset() {
*m = CMsgGCToClientFindTopLeagueMatchesResponse{}
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) String() string {
return proto.CompactTextString(m)
}
func (*CMsgGCToClientFindTopLeagueMatchesResponse) ProtoMessage() {}
func (*CMsgGCToClientFindTopLeagueMatchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{12}
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgGCToClientFindTopLeagueMatchesResponse.Unmarshal(m, b)
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgGCToClientFindTopLeagueMatchesResponse.Marshal(b, m, deterministic)
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgGCToClientFindTopLeagueMatchesResponse.Merge(m, src)
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) XXX_Size() int {
return xxx_messageInfo_CMsgGCToClientFindTopLeagueMatchesResponse.Size(m)
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgGCToClientFindTopLeagueMatchesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgGCToClientFindTopLeagueMatchesResponse proto.InternalMessageInfo
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) GetStartGame() uint32 {
if m != nil && m.StartGame != nil {
return *m.StartGame
}
return 0
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) GetLeagueId() uint32 {
if m != nil && m.LeagueId != nil {
return *m.LeagueId
}
return 0
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) GetHeroId() uint32 {
if m != nil && m.HeroId != nil {
return *m.HeroId
}
return 0
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) GetMatchIds() []uint32 {
if m != nil {
return m.MatchIds
}
return nil
}
func (m *CMsgGCToClientFindTopLeagueMatchesResponse) GetMatches() []*CMsgDOTAMatch {
if m != nil {
return m.Matches
}
return nil
}
type CMsgSpectateFriendGame struct {
SteamId *uint64 `protobuf:"fixed64,1,opt,name=steam_id,json=steamId" json:"steam_id,omitempty"`
Live *bool `protobuf:"varint,2,opt,name=live" json:"live,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgSpectateFriendGame) Reset() { *m = CMsgSpectateFriendGame{} }
func (m *CMsgSpectateFriendGame) String() string { return proto.CompactTextString(m) }
func (*CMsgSpectateFriendGame) ProtoMessage() {}
func (*CMsgSpectateFriendGame) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{13}
}
func (m *CMsgSpectateFriendGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgSpectateFriendGame.Unmarshal(m, b)
}
func (m *CMsgSpectateFriendGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgSpectateFriendGame.Marshal(b, m, deterministic)
}
func (m *CMsgSpectateFriendGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgSpectateFriendGame.Merge(m, src)
}
func (m *CMsgSpectateFriendGame) XXX_Size() int {
return xxx_messageInfo_CMsgSpectateFriendGame.Size(m)
}
func (m *CMsgSpectateFriendGame) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgSpectateFriendGame.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgSpectateFriendGame proto.InternalMessageInfo
func (m *CMsgSpectateFriendGame) GetSteamId() uint64 {
if m != nil && m.SteamId != nil {
return *m.SteamId
}
return 0
}
func (m *CMsgSpectateFriendGame) GetLive() bool {
if m != nil && m.Live != nil {
return *m.Live
}
return false
}
type CMsgSpectateFriendGameResponse struct {
ServerSteamid *uint64 `protobuf:"fixed64,4,opt,name=server_steamid,json=serverSteamid" json:"server_steamid,omitempty"`
WatchLiveResult *CMsgSpectateFriendGameResponse_EWatchLiveResult `protobuf:"varint,5,opt,name=watch_live_result,json=watchLiveResult,enum=dota.CMsgSpectateFriendGameResponse_EWatchLiveResult,def=0" json:"watch_live_result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgSpectateFriendGameResponse) Reset() { *m = CMsgSpectateFriendGameResponse{} }
func (m *CMsgSpectateFriendGameResponse) String() string { return proto.CompactTextString(m) }
func (*CMsgSpectateFriendGameResponse) ProtoMessage() {}
func (*CMsgSpectateFriendGameResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{14}
}
func (m *CMsgSpectateFriendGameResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgSpectateFriendGameResponse.Unmarshal(m, b)
}
func (m *CMsgSpectateFriendGameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgSpectateFriendGameResponse.Marshal(b, m, deterministic)
}
func (m *CMsgSpectateFriendGameResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgSpectateFriendGameResponse.Merge(m, src)
}
func (m *CMsgSpectateFriendGameResponse) XXX_Size() int {
return xxx_messageInfo_CMsgSpectateFriendGameResponse.Size(m)
}
func (m *CMsgSpectateFriendGameResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgSpectateFriendGameResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgSpectateFriendGameResponse proto.InternalMessageInfo
const Default_CMsgSpectateFriendGameResponse_WatchLiveResult CMsgSpectateFriendGameResponse_EWatchLiveResult = CMsgSpectateFriendGameResponse_SUCCESS
func (m *CMsgSpectateFriendGameResponse) GetServerSteamid() uint64 {
if m != nil && m.ServerSteamid != nil {
return *m.ServerSteamid
}
return 0
}
func (m *CMsgSpectateFriendGameResponse) GetWatchLiveResult() CMsgSpectateFriendGameResponse_EWatchLiveResult {
if m != nil && m.WatchLiveResult != nil {
return *m.WatchLiveResult
}
return Default_CMsgSpectateFriendGameResponse_WatchLiveResult
}
type CDOTAReplayDownloadInfo struct {
Match *CMsgDOTAMatchMinimal `protobuf:"bytes,1,opt,name=match" json:"match,omitempty"`
Title *string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"`
Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
Size *uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"`
ExistsOnDisk *bool `protobuf:"varint,6,opt,name=exists_on_disk,json=existsOnDisk" json:"exists_on_disk,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CDOTAReplayDownloadInfo) Reset() { *m = CDOTAReplayDownloadInfo{} }
func (m *CDOTAReplayDownloadInfo) String() string { return proto.CompactTextString(m) }
func (*CDOTAReplayDownloadInfo) ProtoMessage() {}
func (*CDOTAReplayDownloadInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{15}
}
func (m *CDOTAReplayDownloadInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CDOTAReplayDownloadInfo.Unmarshal(m, b)
}
func (m *CDOTAReplayDownloadInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CDOTAReplayDownloadInfo.Marshal(b, m, deterministic)
}
func (m *CDOTAReplayDownloadInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_CDOTAReplayDownloadInfo.Merge(m, src)
}
func (m *CDOTAReplayDownloadInfo) XXX_Size() int {
return xxx_messageInfo_CDOTAReplayDownloadInfo.Size(m)
}
func (m *CDOTAReplayDownloadInfo) XXX_DiscardUnknown() {
xxx_messageInfo_CDOTAReplayDownloadInfo.DiscardUnknown(m)
}
var xxx_messageInfo_CDOTAReplayDownloadInfo proto.InternalMessageInfo
func (m *CDOTAReplayDownloadInfo) GetMatch() *CMsgDOTAMatchMinimal {
if m != nil {
return m.Match
}
return nil
}
func (m *CDOTAReplayDownloadInfo) GetTitle() string {
if m != nil && m.Title != nil {
return *m.Title
}
return ""
}
func (m *CDOTAReplayDownloadInfo) GetDescription() string {
if m != nil && m.Description != nil {
return *m.Description
}
return ""
}
func (m *CDOTAReplayDownloadInfo) GetSize() uint32 {
if m != nil && m.Size != nil {
return *m.Size
}
return 0
}
func (m *CDOTAReplayDownloadInfo) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *CDOTAReplayDownloadInfo) GetExistsOnDisk() bool {
if m != nil && m.ExistsOnDisk != nil {
return *m.ExistsOnDisk
}
return false
}
type CDOTAReplayDownloadInfo_Highlight struct {
Timestamp *uint32 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CDOTAReplayDownloadInfo_Highlight) Reset() { *m = CDOTAReplayDownloadInfo_Highlight{} }
func (m *CDOTAReplayDownloadInfo_Highlight) String() string { return proto.CompactTextString(m) }
func (*CDOTAReplayDownloadInfo_Highlight) ProtoMessage() {}
func (*CDOTAReplayDownloadInfo_Highlight) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{15, 0}
}
func (m *CDOTAReplayDownloadInfo_Highlight) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CDOTAReplayDownloadInfo_Highlight.Unmarshal(m, b)
}
func (m *CDOTAReplayDownloadInfo_Highlight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CDOTAReplayDownloadInfo_Highlight.Marshal(b, m, deterministic)
}
func (m *CDOTAReplayDownloadInfo_Highlight) XXX_Merge(src proto.Message) {
xxx_messageInfo_CDOTAReplayDownloadInfo_Highlight.Merge(m, src)
}
func (m *CDOTAReplayDownloadInfo_Highlight) XXX_Size() int {
return xxx_messageInfo_CDOTAReplayDownloadInfo_Highlight.Size(m)
}
func (m *CDOTAReplayDownloadInfo_Highlight) XXX_DiscardUnknown() {
xxx_messageInfo_CDOTAReplayDownloadInfo_Highlight.DiscardUnknown(m)
}
var xxx_messageInfo_CDOTAReplayDownloadInfo_Highlight proto.InternalMessageInfo
func (m *CDOTAReplayDownloadInfo_Highlight) GetTimestamp() uint32 {
if m != nil && m.Timestamp != nil {
return *m.Timestamp
}
return 0
}
func (m *CDOTAReplayDownloadInfo_Highlight) GetDescription() string {
if m != nil && m.Description != nil {
return *m.Description
}
return ""
}
type CMsgWatchGame struct {
ServerSteamid *uint64 `protobuf:"fixed64,1,opt,name=server_steamid,json=serverSteamid" json:"server_steamid,omitempty"`
ClientVersion *uint32 `protobuf:"varint,2,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"`
WatchServerSteamid *uint64 `protobuf:"fixed64,3,opt,name=watch_server_steamid,json=watchServerSteamid" json:"watch_server_steamid,omitempty"`
LobbyId *uint64 `protobuf:"varint,4,opt,name=lobby_id,json=lobbyId" json:"lobby_id,omitempty"`
Regions []uint32 `protobuf:"varint,5,rep,name=regions" json:"regions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgWatchGame) Reset() { *m = CMsgWatchGame{} }
func (m *CMsgWatchGame) String() string { return proto.CompactTextString(m) }
func (*CMsgWatchGame) ProtoMessage() {}
func (*CMsgWatchGame) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{16}
}
func (m *CMsgWatchGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgWatchGame.Unmarshal(m, b)
}
func (m *CMsgWatchGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgWatchGame.Marshal(b, m, deterministic)
}
func (m *CMsgWatchGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgWatchGame.Merge(m, src)
}
func (m *CMsgWatchGame) XXX_Size() int {
return xxx_messageInfo_CMsgWatchGame.Size(m)
}
func (m *CMsgWatchGame) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgWatchGame.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgWatchGame proto.InternalMessageInfo
func (m *CMsgWatchGame) GetServerSteamid() uint64 {
if m != nil && m.ServerSteamid != nil {
return *m.ServerSteamid
}
return 0
}
func (m *CMsgWatchGame) GetClientVersion() uint32 {
if m != nil && m.ClientVersion != nil {
return *m.ClientVersion
}
return 0
}
func (m *CMsgWatchGame) GetWatchServerSteamid() uint64 {
if m != nil && m.WatchServerSteamid != nil {
return *m.WatchServerSteamid
}
return 0
}
func (m *CMsgWatchGame) GetLobbyId() uint64 {
if m != nil && m.LobbyId != nil {
return *m.LobbyId
}
return 0
}
func (m *CMsgWatchGame) GetRegions() []uint32 {
if m != nil {
return m.Regions
}
return nil
}
type CMsgCancelWatchGame struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgCancelWatchGame) Reset() { *m = CMsgCancelWatchGame{} }
func (m *CMsgCancelWatchGame) String() string { return proto.CompactTextString(m) }
func (*CMsgCancelWatchGame) ProtoMessage() {}
func (*CMsgCancelWatchGame) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{17}
}
func (m *CMsgCancelWatchGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgCancelWatchGame.Unmarshal(m, b)
}
func (m *CMsgCancelWatchGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgCancelWatchGame.Marshal(b, m, deterministic)
}
func (m *CMsgCancelWatchGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgCancelWatchGame.Merge(m, src)
}
func (m *CMsgCancelWatchGame) XXX_Size() int {
return xxx_messageInfo_CMsgCancelWatchGame.Size(m)
}
func (m *CMsgCancelWatchGame) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgCancelWatchGame.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgCancelWatchGame proto.InternalMessageInfo
type CMsgWatchGameResponse struct {
WatchGameResult *CMsgWatchGameResponse_WatchGameResult `protobuf:"varint,1,opt,name=watch_game_result,json=watchGameResult,enum=dota.CMsgWatchGameResponse_WatchGameResult,def=0" json:"watch_game_result,omitempty"`
SourceTvPublicAddr *uint32 `protobuf:"varint,2,opt,name=source_tv_public_addr,json=sourceTvPublicAddr" json:"source_tv_public_addr,omitempty"`
SourceTvPrivateAddr *uint32 `protobuf:"varint,3,opt,name=source_tv_private_addr,json=sourceTvPrivateAddr" json:"source_tv_private_addr,omitempty"`
SourceTvPort *uint32 `protobuf:"varint,4,opt,name=source_tv_port,json=sourceTvPort" json:"source_tv_port,omitempty"`
GameServerSteamid *uint64 `protobuf:"fixed64,5,opt,name=game_server_steamid,json=gameServerSteamid" json:"game_server_steamid,omitempty"`
WatchServerSteamid *uint64 `protobuf:"fixed64,6,opt,name=watch_server_steamid,json=watchServerSteamid" json:"watch_server_steamid,omitempty"`
WatchTvUniqueSecretCode *uint64 `protobuf:"fixed64,7,opt,name=watch_tv_unique_secret_code,json=watchTvUniqueSecretCode" json:"watch_tv_unique_secret_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgWatchGameResponse) Reset() { *m = CMsgWatchGameResponse{} }
func (m *CMsgWatchGameResponse) String() string { return proto.CompactTextString(m) }
func (*CMsgWatchGameResponse) ProtoMessage() {}
func (*CMsgWatchGameResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{18}
}
func (m *CMsgWatchGameResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgWatchGameResponse.Unmarshal(m, b)
}
func (m *CMsgWatchGameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgWatchGameResponse.Marshal(b, m, deterministic)
}
func (m *CMsgWatchGameResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgWatchGameResponse.Merge(m, src)
}
func (m *CMsgWatchGameResponse) XXX_Size() int {
return xxx_messageInfo_CMsgWatchGameResponse.Size(m)
}
func (m *CMsgWatchGameResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgWatchGameResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgWatchGameResponse proto.InternalMessageInfo
const Default_CMsgWatchGameResponse_WatchGameResult CMsgWatchGameResponse_WatchGameResult = CMsgWatchGameResponse_PENDING
func (m *CMsgWatchGameResponse) GetWatchGameResult() CMsgWatchGameResponse_WatchGameResult {
if m != nil && m.WatchGameResult != nil {
return *m.WatchGameResult
}
return Default_CMsgWatchGameResponse_WatchGameResult
}
func (m *CMsgWatchGameResponse) GetSourceTvPublicAddr() uint32 {
if m != nil && m.SourceTvPublicAddr != nil {
return *m.SourceTvPublicAddr
}
return 0
}
func (m *CMsgWatchGameResponse) GetSourceTvPrivateAddr() uint32 {
if m != nil && m.SourceTvPrivateAddr != nil {
return *m.SourceTvPrivateAddr
}
return 0
}
func (m *CMsgWatchGameResponse) GetSourceTvPort() uint32 {
if m != nil && m.SourceTvPort != nil {
return *m.SourceTvPort
}
return 0
}
func (m *CMsgWatchGameResponse) GetGameServerSteamid() uint64 {
if m != nil && m.GameServerSteamid != nil {
return *m.GameServerSteamid
}
return 0
}
func (m *CMsgWatchGameResponse) GetWatchServerSteamid() uint64 {
if m != nil && m.WatchServerSteamid != nil {
return *m.WatchServerSteamid
}
return 0
}
func (m *CMsgWatchGameResponse) GetWatchTvUniqueSecretCode() uint64 {
if m != nil && m.WatchTvUniqueSecretCode != nil {
return *m.WatchTvUniqueSecretCode
}
return 0
}
type CMsgPartyLeaderWatchGamePrompt struct {
GameServerSteamid *uint64 `protobuf:"fixed64,5,opt,name=game_server_steamid,json=gameServerSteamid" json:"game_server_steamid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgPartyLeaderWatchGamePrompt) Reset() { *m = CMsgPartyLeaderWatchGamePrompt{} }
func (m *CMsgPartyLeaderWatchGamePrompt) String() string { return proto.CompactTextString(m) }
func (*CMsgPartyLeaderWatchGamePrompt) ProtoMessage() {}
func (*CMsgPartyLeaderWatchGamePrompt) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{19}
}
func (m *CMsgPartyLeaderWatchGamePrompt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgPartyLeaderWatchGamePrompt.Unmarshal(m, b)
}
func (m *CMsgPartyLeaderWatchGamePrompt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgPartyLeaderWatchGamePrompt.Marshal(b, m, deterministic)
}
func (m *CMsgPartyLeaderWatchGamePrompt) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgPartyLeaderWatchGamePrompt.Merge(m, src)
}
func (m *CMsgPartyLeaderWatchGamePrompt) XXX_Size() int {
return xxx_messageInfo_CMsgPartyLeaderWatchGamePrompt.Size(m)
}
func (m *CMsgPartyLeaderWatchGamePrompt) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgPartyLeaderWatchGamePrompt.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgPartyLeaderWatchGamePrompt proto.InternalMessageInfo
func (m *CMsgPartyLeaderWatchGamePrompt) GetGameServerSteamid() uint64 {
if m != nil && m.GameServerSteamid != nil {
return *m.GameServerSteamid
}
return 0
}
type CDOTABroadcasterInfo struct {
AccountId *uint32 `protobuf:"varint,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
ServerSteamId *uint64 `protobuf:"fixed64,2,opt,name=server_steam_id,json=serverSteamId" json:"server_steam_id,omitempty"`
Live *bool `protobuf:"varint,3,opt,name=live" json:"live,omitempty"`
TeamNameRadiant *string `protobuf:"bytes,4,opt,name=team_name_radiant,json=teamNameRadiant" json:"team_name_radiant,omitempty"`
TeamNameDire *string `protobuf:"bytes,5,opt,name=team_name_dire,json=teamNameDire" json:"team_name_dire,omitempty"`
SeriesGame *uint32 `protobuf:"varint,7,opt,name=series_game,json=seriesGame" json:"series_game,omitempty"`
UpcomingBroadcastTimestamp *uint32 `protobuf:"varint,9,opt,name=upcoming_broadcast_timestamp,json=upcomingBroadcastTimestamp" json:"upcoming_broadcast_timestamp,omitempty"`
AllowLiveVideo *bool `protobuf:"varint,10,opt,name=allow_live_video,json=allowLiveVideo" json:"allow_live_video,omitempty"`
NodeType *uint32 `protobuf:"varint,11,opt,name=node_type,json=nodeType" json:"node_type,omitempty"`
NodeName *string `protobuf:"bytes,12,opt,name=node_name,json=nodeName" json:"node_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CDOTABroadcasterInfo) Reset() { *m = CDOTABroadcasterInfo{} }
func (m *CDOTABroadcasterInfo) String() string { return proto.CompactTextString(m) }
func (*CDOTABroadcasterInfo) ProtoMessage() {}
func (*CDOTABroadcasterInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{20}
}
func (m *CDOTABroadcasterInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CDOTABroadcasterInfo.Unmarshal(m, b)
}
func (m *CDOTABroadcasterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CDOTABroadcasterInfo.Marshal(b, m, deterministic)
}
func (m *CDOTABroadcasterInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_CDOTABroadcasterInfo.Merge(m, src)
}
func (m *CDOTABroadcasterInfo) XXX_Size() int {
return xxx_messageInfo_CDOTABroadcasterInfo.Size(m)
}
func (m *CDOTABroadcasterInfo) XXX_DiscardUnknown() {
xxx_messageInfo_CDOTABroadcasterInfo.DiscardUnknown(m)
}
var xxx_messageInfo_CDOTABroadcasterInfo proto.InternalMessageInfo
func (m *CDOTABroadcasterInfo) GetAccountId() uint32 {
if m != nil && m.AccountId != nil {
return *m.AccountId
}
return 0
}
func (m *CDOTABroadcasterInfo) GetServerSteamId() uint64 {
if m != nil && m.ServerSteamId != nil {
return *m.ServerSteamId
}
return 0
}
func (m *CDOTABroadcasterInfo) GetLive() bool {
if m != nil && m.Live != nil {
return *m.Live
}
return false
}
func (m *CDOTABroadcasterInfo) GetTeamNameRadiant() string {
if m != nil && m.TeamNameRadiant != nil {
return *m.TeamNameRadiant
}
return ""
}
func (m *CDOTABroadcasterInfo) GetTeamNameDire() string {
if m != nil && m.TeamNameDire != nil {
return *m.TeamNameDire
}
return ""
}
func (m *CDOTABroadcasterInfo) GetSeriesGame() uint32 {
if m != nil && m.SeriesGame != nil {
return *m.SeriesGame
}
return 0
}
func (m *CDOTABroadcasterInfo) GetUpcomingBroadcastTimestamp() uint32 {
if m != nil && m.UpcomingBroadcastTimestamp != nil {
return *m.UpcomingBroadcastTimestamp
}
return 0
}
func (m *CDOTABroadcasterInfo) GetAllowLiveVideo() bool {
if m != nil && m.AllowLiveVideo != nil {
return *m.AllowLiveVideo
}
return false
}
func (m *CDOTABroadcasterInfo) GetNodeType() uint32 {
if m != nil && m.NodeType != nil {
return *m.NodeType
}
return 0
}
func (m *CDOTABroadcasterInfo) GetNodeName() string {
if m != nil && m.NodeName != nil {
return *m.NodeName
}
return ""
}
type CMsgDOTASeries struct {
SeriesId *uint32 `protobuf:"varint,1,opt,name=series_id,json=seriesId" json:"series_id,omitempty"`
SeriesType *uint32 `protobuf:"varint,2,opt,name=series_type,json=seriesType" json:"series_type,omitempty"`
Team_1 *CMsgDOTASeries_TeamInfo `protobuf:"bytes,3,opt,name=team_1,json=team1" json:"team_1,omitempty"`
Team_2 *CMsgDOTASeries_TeamInfo `protobuf:"bytes,4,opt,name=team_2,json=team2" json:"team_2,omitempty"`
MatchMinimal []*CMsgDOTAMatchMinimal `protobuf:"bytes,5,rep,name=match_minimal,json=matchMinimal" json:"match_minimal,omitempty"`
LiveGame *CMsgDOTASeries_LiveGame `protobuf:"bytes,6,opt,name=live_game,json=liveGame" json:"live_game,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgDOTASeries) Reset() { *m = CMsgDOTASeries{} }
func (m *CMsgDOTASeries) String() string { return proto.CompactTextString(m) }
func (*CMsgDOTASeries) ProtoMessage() {}
func (*CMsgDOTASeries) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{21}
}
func (m *CMsgDOTASeries) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgDOTASeries.Unmarshal(m, b)
}
func (m *CMsgDOTASeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgDOTASeries.Marshal(b, m, deterministic)
}
func (m *CMsgDOTASeries) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgDOTASeries.Merge(m, src)
}
func (m *CMsgDOTASeries) XXX_Size() int {
return xxx_messageInfo_CMsgDOTASeries.Size(m)
}
func (m *CMsgDOTASeries) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgDOTASeries.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgDOTASeries proto.InternalMessageInfo
func (m *CMsgDOTASeries) GetSeriesId() uint32 {
if m != nil && m.SeriesId != nil {
return *m.SeriesId
}
return 0
}
func (m *CMsgDOTASeries) GetSeriesType() uint32 {
if m != nil && m.SeriesType != nil {
return *m.SeriesType
}
return 0
}
func (m *CMsgDOTASeries) GetTeam_1() *CMsgDOTASeries_TeamInfo {
if m != nil {
return m.Team_1
}
return nil
}
func (m *CMsgDOTASeries) GetTeam_2() *CMsgDOTASeries_TeamInfo {
if m != nil {
return m.Team_2
}
return nil
}
func (m *CMsgDOTASeries) GetMatchMinimal() []*CMsgDOTAMatchMinimal {
if m != nil {
return m.MatchMinimal
}
return nil
}
func (m *CMsgDOTASeries) GetLiveGame() *CMsgDOTASeries_LiveGame {
if m != nil {
return m.LiveGame
}
return nil
}
type CMsgDOTASeries_TeamInfo struct {
TeamId *uint32 `protobuf:"varint,1,opt,name=team_id,json=teamId" json:"team_id,omitempty"`
TeamName *string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
TeamLogoUrl *string `protobuf:"bytes,3,opt,name=team_logo_url,json=teamLogoUrl" json:"team_logo_url,omitempty"`
WagerCount *uint32 `protobuf:"varint,4,opt,name=wager_count,json=wagerCount" json:"wager_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgDOTASeries_TeamInfo) Reset() { *m = CMsgDOTASeries_TeamInfo{} }
func (m *CMsgDOTASeries_TeamInfo) String() string { return proto.CompactTextString(m) }
func (*CMsgDOTASeries_TeamInfo) ProtoMessage() {}
func (*CMsgDOTASeries_TeamInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{21, 0}
}
func (m *CMsgDOTASeries_TeamInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgDOTASeries_TeamInfo.Unmarshal(m, b)
}
func (m *CMsgDOTASeries_TeamInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgDOTASeries_TeamInfo.Marshal(b, m, deterministic)
}
func (m *CMsgDOTASeries_TeamInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgDOTASeries_TeamInfo.Merge(m, src)
}
func (m *CMsgDOTASeries_TeamInfo) XXX_Size() int {
return xxx_messageInfo_CMsgDOTASeries_TeamInfo.Size(m)
}
func (m *CMsgDOTASeries_TeamInfo) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgDOTASeries_TeamInfo.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgDOTASeries_TeamInfo proto.InternalMessageInfo
func (m *CMsgDOTASeries_TeamInfo) GetTeamId() uint32 {
if m != nil && m.TeamId != nil {
return *m.TeamId
}
return 0
}
func (m *CMsgDOTASeries_TeamInfo) GetTeamName() string {
if m != nil && m.TeamName != nil {
return *m.TeamName
}
return ""
}
func (m *CMsgDOTASeries_TeamInfo) GetTeamLogoUrl() string {
if m != nil && m.TeamLogoUrl != nil {
return *m.TeamLogoUrl
}
return ""
}
func (m *CMsgDOTASeries_TeamInfo) GetWagerCount() uint32 {
if m != nil && m.WagerCount != nil {
return *m.WagerCount
}
return 0
}
type CMsgDOTASeries_LiveGame struct {
ServerSteamId *uint64 `protobuf:"fixed64,1,opt,name=server_steam_id,json=serverSteamId" json:"server_steam_id,omitempty"`
TeamRadiant *CMsgDOTASeries_TeamInfo `protobuf:"bytes,2,opt,name=team_radiant,json=teamRadiant" json:"team_radiant,omitempty"`
TeamDire *CMsgDOTASeries_TeamInfo `protobuf:"bytes,3,opt,name=team_dire,json=teamDire" json:"team_dire,omitempty"`
TeamRadiantScore *uint32 `protobuf:"varint,4,opt,name=team_radiant_score,json=teamRadiantScore" json:"team_radiant_score,omitempty"`
TeamDireScore *uint32 `protobuf:"varint,5,opt,name=team_dire_score,json=teamDireScore" json:"team_dire_score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CMsgDOTASeries_LiveGame) Reset() { *m = CMsgDOTASeries_LiveGame{} }
func (m *CMsgDOTASeries_LiveGame) String() string { return proto.CompactTextString(m) }
func (*CMsgDOTASeries_LiveGame) ProtoMessage() {}
func (*CMsgDOTASeries_LiveGame) Descriptor() ([]byte, []int) {
return fileDescriptor_b094add08ee70dca, []int{21, 1}
}
func (m *CMsgDOTASeries_LiveGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CMsgDOTASeries_LiveGame.Unmarshal(m, b)
}
func (m *CMsgDOTASeries_LiveGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CMsgDOTASeries_LiveGame.Marshal(b, m, deterministic)
}
func (m *CMsgDOTASeries_LiveGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_CMsgDOTASeries_LiveGame.Merge(m, src)
}
func (m *CMsgDOTASeries_LiveGame) XXX_Size() int {
return xxx_messageInfo_CMsgDOTASeries_LiveGame.Size(m)
}
func (m *CMsgDOTASeries_LiveGame) XXX_DiscardUnknown() {
xxx_messageInfo_CMsgDOTASeries_LiveGame.DiscardUnknown(m)
}
var xxx_messageInfo_CMsgDOTASeries_LiveGame proto.InternalMessageInfo
func (m *CMsgDOTASeries_LiveGame) GetServerSteamId() uint64 {
if m != nil && m.ServerSteamId != nil {
return *m.ServerSteamId
}
return 0
}
func (m *CMsgDOTASeries_LiveGame) GetTeamRadiant() *CMsgDOTASeries_TeamInfo {
if m != nil {
return m.TeamRadiant
}
return nil
}
func (m *CMsgDOTASeries_LiveGame) GetTeamDire() *CMsgDOTASeries_TeamInfo {
if m != nil {
return m.TeamDire
}
return nil
}
func (m *CMsgDOTASeries_LiveGame) GetTeamRadiantScore() uint32 {
if m != nil && m.TeamRadiantScore != nil {
return *m.TeamRadiantScore
}
return 0
}
func (m *CMsgDOTASeries_LiveGame) GetTeamDireScore() uint32 {
if m != nil && m.TeamDireScore != nil {
return *m.TeamDireScore
}
return 0
}
func init() {
proto.RegisterEnum("dota.CMsgSpectateFriendGameResponse_EWatchLiveResult", CMsgSpectateFriendGameResponse_EWatchLiveResult_name, CMsgSpectateFriendGameResponse_EWatchLiveResult_value)
proto.RegisterEnum("dota.CMsgWatchGameResponse_WatchGameResult", CMsgWatchGameResponse_WatchGameResult_name, CMsgWatchGameResponse_WatchGameResult_value)
proto.RegisterType((*CSourceTVGameSmall)(nil), "dota.CSourceTVGameSmall")
proto.RegisterType((*CSourceTVGameSmall_Player)(nil), "dota.CSourceTVGameSmall.Player")
proto.RegisterType((*CMsgClientToGCFindTopSourceTVGames)(nil), "dota.CMsgClientToGCFindTopSourceTVGames")
proto.RegisterType((*CMsgGCToClientFindTopSourceTVGamesResponse)(nil), "dota.CMsgGCToClientFindTopSourceTVGamesResponse")
proto.RegisterType((*CMsgGCToClientTopWeekendTourneyGames)(nil), "dota.CMsgGCToClientTopWeekendTourneyGames")
proto.RegisterType((*CMsgClientToGCTopMatchesRequest)(nil), "dota.CMsgClientToGCTopMatchesRequest")
proto.RegisterType((*CMsgClientToGCTopLeagueMatchesRequest)(nil), "dota.CMsgClientToGCTopLeagueMatchesRequest")
proto.RegisterType((*CMsgClientToGCTopFriendMatchesRequest)(nil), "dota.CMsgClientToGCTopFriendMatchesRequest")
proto.RegisterType((*CMsgClientToGCMatchesMinimalRequest)(nil), "dota.CMsgClientToGCMatchesMinimalRequest")
proto.RegisterType((*CMsgClientToGCMatchesMinimalResponse)(nil), "dota.CMsgClientToGCMatchesMinimalResponse")
proto.RegisterType((*CMsgGCToClientTopLeagueMatchesResponse)(nil), "dota.CMsgGCToClientTopLeagueMatchesResponse")
proto.RegisterType((*CMsgGCToClientTopFriendMatchesResponse)(nil), "dota.CMsgGCToClientTopFriendMatchesResponse")
proto.RegisterType((*CMsgClientToGCFindTopMatches)(nil), "dota.CMsgClientToGCFindTopMatches")
proto.RegisterType((*CMsgGCToClientFindTopLeagueMatchesResponse)(nil), "dota.CMsgGCToClientFindTopLeagueMatchesResponse")
proto.RegisterType((*CMsgSpectateFriendGame)(nil), "dota.CMsgSpectateFriendGame")
proto.RegisterType((*CMsgSpectateFriendGameResponse)(nil), "dota.CMsgSpectateFriendGameResponse")
proto.RegisterType((*CDOTAReplayDownloadInfo)(nil), "dota.CDOTAReplayDownloadInfo")
proto.RegisterType((*CDOTAReplayDownloadInfo_Highlight)(nil), "dota.CDOTAReplayDownloadInfo.Highlight")
proto.RegisterType((*CMsgWatchGame)(nil), "dota.CMsgWatchGame")
proto.RegisterType((*CMsgCancelWatchGame)(nil), "dota.CMsgCancelWatchGame")
proto.RegisterType((*CMsgWatchGameResponse)(nil), "dota.CMsgWatchGameResponse")
proto.RegisterType((*CMsgPartyLeaderWatchGamePrompt)(nil), "dota.CMsgPartyLeaderWatchGamePrompt")
proto.RegisterType((*CDOTABroadcasterInfo)(nil), "dota.CDOTABroadcasterInfo")
proto.RegisterType((*CMsgDOTASeries)(nil), "dota.CMsgDOTASeries")
proto.RegisterType((*CMsgDOTASeries_TeamInfo)(nil), "dota.CMsgDOTASeries.TeamInfo")
proto.RegisterType((*CMsgDOTASeries_LiveGame)(nil), "dota.CMsgDOTASeries.LiveGame")
}
func init() {
proto.RegisterFile("dota_gcmessages_client_watch.proto", fileDescriptor_b094add08ee70dca)
}
var fileDescriptor_b094add08ee70dca = []byte{
// 2386 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcb, 0x72, 0xdb, 0xc8,
0xd5, 0x1e, 0x90, 0xe2, 0xed, 0x50, 0x94, 0xa8, 0x96, 0x25, 0xc1, 0x92, 0x65, 0x71, 0x30, 0x33,
0x1e, 0x95, 0xff, 0x3f, 0xaa, 0xb1, 0x67, 0xa6, 0x92, 0xb8, 0x92, 0x8a, 0x29, 0x12, 0x96, 0x51,
0xc3, 0x5b, 0x01, 0x90, 0x5c, 0xde, 0x04, 0x81, 0x88, 0x36, 0x8d, 0x08, 0x17, 0x0e, 0x00, 0x52,
0xa3, 0x64, 0x91, 0x6c, 0x92, 0x45, 0x2a, 0xcf, 0x90, 0x27, 0xc8, 0x53, 0xa4, 0xb2, 0xc8, 0x26,
0x9b, 0x2c, 0xb2, 0xcb, 0x13, 0xe4, 0x05, 0xb2, 0x4c, 0xf5, 0xe9, 0x06, 0x09, 0x52, 0x94, 0xc7,
0x49, 0x2a, 0x95, 0x15, 0x89, 0xef, 0x9c, 0xd3, 0x7d, 0x2e, 0x7d, 0xbe, 0xbe, 0x80, 0xe2, 0x84,
0x89, 0x6d, 0x8d, 0x86, 0x3e, 0x8d, 0x63, 0x7b, 0x44, 0x63, 0x6b, 0xe8, 0xb9, 0x34, 0x48, 0xac,
0x6b, 0x3b, 0x19, 0xbe, 0x3d, 0x19, 0x47, 0x61, 0x12, 0x92, 0x35, 0xa6, 0xb3, 0xff, 0xe0, 0x96,
0x66, 0xe8, 0xfb, 0x61, 0xc0, 0x75, 0x94, 0xbf, 0x57, 0x80, 0xb4, 0x8c, 0x70, 0x12, 0x0d, 0xa9,
0x79, 0x71, 0x66, 0xfb, 0xd4, 0xf0, 0x6d, 0xcf, 0x23, 0x1f, 0x41, 0xcd, 0x1e, 0x26, 0xee, 0xd4,
0x4e, 0xa8, 0x95, 0xb8, 0x3e, 0x95, 0xa5, 0x86, 0x74, 0x5c, 0xd3, 0xd7, 0x53, 0xd0, 0x74, 0x7d,
0x4a, 0x3e, 0x85, 0x4d, 0x87, 0x2e, 0xaa, 0xe5, 0x50, 0x6d, 0x63, 0x0e, 0xa3, 0xe2, 0x23, 0xd8,
0x8c, 0x69, 0x34, 0xa5, 0x91, 0x15, 0x27, 0xd4, 0xf6, 0x2d, 0xd7, 0x91, 0xf3, 0x0d, 0xe9, 0x78,
0x4d, 0xaf, 0x71, 0xd8, 0x60, 0xa8, 0xe6, 0x90, 0xfb, 0x50, 0xf6, 0xc2, 0xcb, 0xcb, 0x1b, 0xa6,
0xb0, 0x86, 0x0a, 0x25, 0xfc, 0xd6, 0x1c, 0x72, 0x00, 0x15, 0x8f, 0xda, 0xa3, 0x09, 0x65, 0xb2,
0x02, 0xce, 0x52, 0xe6, 0x80, 0xe6, 0x90, 0x43, 0x00, 0x6e, 0x97, 0xdc, 0x8c, 0xa9, 0x5c, 0x44,
0x69, 0x05, 0x11, 0xf3, 0x66, 0x4c, 0x99, 0xed, 0xc8, 0xf6, 0x85, 0x87, 0xa5, 0x86, 0x74, 0x5c,
0xd0, 0xcb, 0x0c, 0x40, 0xdf, 0xee, 0x41, 0xc1, 0xa1, 0x9e, 0x7d, 0x23, 0x97, 0xd1, 0x8c, 0x7f,
0x90, 0x87, 0x00, 0xf1, 0x98, 0x0e, 0x13, 0x3b, 0x09, 0xa3, 0x58, 0xae, 0xa0, 0x28, 0x83, 0xcc,
0x86, 0xf4, 0x43, 0x87, 0xca, 0xc0, 0xdd, 0x61, 0x40, 0x37, 0x74, 0x28, 0x39, 0x82, 0xaa, 0x3d,
0xa5, 0x91, 0x3d, 0xa2, 0x96, 0xef, 0x47, 0x72, 0x95, 0x5b, 0x0b, 0xa8, 0xeb, 0x47, 0x2c, 0x4e,
0x9f, 0xd5, 0x89, 0xc5, 0xb2, 0xce, 0xe3, 0xc4, 0x6f, 0x1e, 0x67, 0x4c, 0x23, 0x97, 0xc6, 0x4c,
0x56, 0xe3, 0x03, 0x73, 0x40, 0x73, 0xc8, 0x63, 0xd8, 0xc2, 0xfc, 0x05, 0x6c, 0xea, 0xc8, 0x76,
0x5c, 0x3b, 0x48, 0xe4, 0xcd, 0x86, 0x74, 0x5c, 0xd1, 0x37, 0x99, 0xa0, 0x67, 0xfb, 0x54, 0xe7,
0x30, 0xf9, 0x18, 0x36, 0xe6, 0xba, 0x8e, 0x1b, 0x51, 0xb9, 0x8e, 0x8a, 0xeb, 0xa9, 0x62, 0xdb,
0x8d, 0xe8, 0x6c, 0x44, 0x2f, 0x1c, 0x85, 0xb3, 0x11, 0xe5, 0x86, 0x74, 0x5c, 0xe4, 0x23, 0x76,
0xc2, 0x51, 0xb8, 0x3c, 0x22, 0xea, 0xe2, 0x88, 0xf7, 0x51, 0x71, 0x3d, 0x55, 0xc4, 0x11, 0x1f,
0xc1, 0xa6, 0xa8, 0xf1, 0x6c, 0xbc, 0x87, 0x18, 0x46, 0x8d, 0x17, 0x39, 0x1d, 0xad, 0x01, 0xeb,
0xa9, 0x1e, 0x8e, 0x75, 0xc4, 0xb3, 0xc4, 0x95, 0x70, 0xa4, 0x43, 0x80, 0x38, 0x8c, 0x12, 0x2b,
0x1e, 0x86, 0x11, 0x95, 0xb7, 0x78, 0x55, 0x19, 0x62, 0x30, 0x80, 0x1c, 0x43, 0xdd, 0xb3, 0xe3,
0xc4, 0x9a, 0x8c, 0x9d, 0xd9, 0xf2, 0x23, 0x0d, 0xe9, 0x38, 0xa7, 0x6f, 0x30, 0xfc, 0x1c, 0x61,
0x2c, 0xf1, 0x87, 0xb0, 0x2e, 0x5c, 0xb1, 0x3c, 0x6a, 0x3b, 0xf2, 0x36, 0x2e, 0x81, 0xaa, 0xc0,
0x3a, 0xd4, 0x76, 0xd8, 0x7a, 0x4f, 0x55, 0xf8, 0x74, 0xf7, 0xf8, 0x7a, 0x17, 0x20, 0x9f, 0xf1,
0x10, 0x80, 0xb9, 0x2a, 0x34, 0x76, 0xb8, 0x43, 0x0c, 0xe1, 0xe2, 0xef, 0x43, 0x69, 0xec, 0xd9,
0x37, 0x34, 0x8a, 0xe5, 0xdd, 0x46, 0xfe, 0xb8, 0xfa, 0xf4, 0xe8, 0x84, 0xb5, 0xde, 0xc9, 0xed,
0xf6, 0x3a, 0x19, 0xa0, 0x9e, 0x9e, 0xea, 0x93, 0x4f, 0x60, 0xe3, 0x72, 0xe2, 0x7a, 0x8e, 0x1b,
0x8c, 0xac, 0x38, 0xb1, 0x13, 0x2a, 0xef, 0x35, 0xa4, 0xe3, 0x92, 0x5e, 0x4b, 0x51, 0x83, 0x81,
0xa4, 0x09, 0x87, 0xd7, 0x94, 0x5e, 0xd1, 0xc0, 0xb1, 0x92, 0x70, 0x12, 0x05, 0xf4, 0x86, 0xff,
0xda, 0x3e, 0x6b, 0x7d, 0xd7, 0x91, 0xf7, 0xd1, 0xa7, 0x7d, 0xa1, 0x64, 0x72, 0x1d, 0x73, 0xa6,
0xa2, 0x39, 0xe4, 0x7b, 0x20, 0x2f, 0x0f, 0xe1, 0xb8, 0x53, 0x37, 0x76, 0xc3, 0x40, 0x3e, 0x40,
0xeb, 0xdd, 0x45, 0xeb, 0xb6, 0x90, 0x92, 0x1f, 0xc2, 0xc1, 0xb2, 0x65, 0x7c, 0xe5, 0x7a, 0x9e,
0xe5, 0xd1, 0x29, 0xf5, 0xe4, 0x07, 0x68, 0x2c, 0x2f, 0x1a, 0x1b, 0x4c, 0xa1, 0xc3, 0xe4, 0xab,
0x7c, 0xbf, 0x8c, 0xec, 0xe1, 0x15, 0x4d, 0xac, 0x28, 0x9c, 0x04, 0x8e, 0x7c, 0xb8, 0xca, 0xf7,
0x53, 0xae, 0xa2, 0x33, 0x8d, 0xfd, 0xe7, 0x50, 0xe4, 0x89, 0x63, 0x95, 0xb0, 0x87, 0xc3, 0x70,
0xc2, 0xa3, 0xe6, 0xdc, 0x54, 0x11, 0x88, 0xe6, 0x90, 0x3d, 0x28, 0xbd, 0xa5, 0x51, 0xc8, 0x64,
0x9c, 0x90, 0x8a, 0xec, 0x53, 0x73, 0x94, 0xbf, 0x49, 0xa0, 0xb4, 0xba, 0xf1, 0xa8, 0x85, 0x64,
0x69, 0x86, 0x67, 0xad, 0x17, 0x2e, 0x9b, 0x6b, 0x9c, 0x2d, 0x51, 0x8c, 0x2b, 0x8f, 0xda, 0xd1,
0xf0, 0xad, 0x75, 0x45, 0x6f, 0x70, 0xf8, 0x8a, 0x5e, 0xe1, 0xc8, 0x57, 0xf4, 0x66, 0x91, 0x8b,
0x72, 0x4b, 0x5c, 0x94, 0x99, 0x3b, 0x9f, 0x9d, 0x1b, 0x07, 0x4d, 0xec, 0x28, 0xb1, 0x18, 0x4f,
0x20, 0xbd, 0xb1, 0xe5, 0xcc, 0x10, 0x36, 0x29, 0xeb, 0x1b, 0x64, 0x14, 0xcf, 0x8d, 0x13, 0xcb,
0x0d, 0x1c, 0xfa, 0x8d, 0xa0, 0xb9, 0x1a, 0x83, 0x3b, 0x6e, 0x9c, 0x68, 0x0c, 0xc4, 0xc9, 0x05,
0x47, 0xc6, 0x72, 0xb1, 0x91, 0x3f, 0x5e, 0xd3, 0xcb, 0x82, 0x24, 0x63, 0xe5, 0x1f, 0x39, 0x78,
0xcc, 0xe2, 0x3b, 0x6b, 0x99, 0x21, 0x8f, 0x71, 0x55, 0x7c, 0x3a, 0x8d, 0xc7, 0x61, 0x10, 0xd3,
0xff, 0x49, 0x9c, 0x07, 0x50, 0x09, 0x26, 0x3e, 0x0a, 0xe3, 0x94, 0xc8, 0x83, 0x89, 0xcf, 0x13,
0xbf, 0x22, 0x09, 0xc5, 0x55, 0x49, 0xf8, 0x52, 0xd0, 0x2f, 0xd3, 0x93, 0x4b, 0xd8, 0x6c, 0xf2,
0x5d, 0xcd, 0xc6, 0x89, 0x99, 0xd9, 0xb2, 0x36, 0x63, 0x1c, 0xee, 0xbe, 0x71, 0x87, 0xc2, 0x01,
0x46, 0xfa, 0x65, 0xbd, 0x96, 0xa2, 0xdc, 0x8b, 0xcf, 0xa1, 0x7c, 0x19, 0x0a, 0xff, 0x19, 0xf5,
0xbf, 0x6b, 0xf0, 0xd2, 0x65, 0x88, 0x71, 0x29, 0x16, 0x7c, 0xbc, 0x98, 0x79, 0x33, 0x1c, 0xbf,
0x5a, 0x58, 0xcb, 0x7c, 0xf0, 0xef, 0x02, 0x78, 0xee, 0x94, 0x8a, 0xf9, 0xa5, 0x6f, 0xf1, 0xbd,
0xc2, 0x74, 0xd1, 0x50, 0xf9, 0x05, 0x1c, 0x2d, 0x2e, 0x5d, 0x33, 0x1c, 0x77, 0xd9, 0xae, 0xc1,
0x0a, 0xfa, 0xf5, 0x84, 0xc6, 0x49, 0xb6, 0x26, 0xd2, 0x42, 0x4d, 0x1e, 0xc3, 0x16, 0xa7, 0x1a,
0x2b, 0xd3, 0x36, 0xbc, 0xa2, 0x9b, 0x5c, 0xd0, 0xcc, 0x36, 0x4f, 0x76, 0x93, 0xae, 0xe9, 0x45,
0xce, 0xc9, 0xca, 0xa7, 0xf0, 0xc9, 0x2d, 0x07, 0x3a, 0xb8, 0x1c, 0x16, 0xdd, 0x58, 0xa9, 0xf8,
0x22, 0x72, 0x69, 0xe0, 0x2c, 0x29, 0x9e, 0xc2, 0x47, 0x8b, 0x8a, 0x42, 0xde, 0x75, 0x03, 0xd7,
0xb7, 0xbd, 0x34, 0xac, 0x03, 0xa8, 0xa4, 0xdb, 0x25, 0xcf, 0xd8, 0x9a, 0x5e, 0x16, 0xfb, 0x65,
0xac, 0xfc, 0x9c, 0xe7, 0xfd, 0xee, 0x31, 0xc4, 0x5a, 0xff, 0x02, 0xf8, 0x1e, 0x3b, 0x4b, 0xfa,
0xbe, 0x48, 0x7a, 0x37, 0x1e, 0xb5, 0xfb, 0x66, 0x13, 0xcd, 0x52, 0xa3, 0x54, 0x15, 0x4f, 0x16,
0x6c, 0x93, 0xc1, 0x6f, 0xcc, 0x58, 0x59, 0xaf, 0x30, 0x04, 0xd5, 0x95, 0x1f, 0xc3, 0xa3, 0x5b,
0x45, 0x5f, 0x4a, 0xc9, 0xed, 0xe9, 0x73, 0xef, 0x3d, 0xfd, 0xca, 0xf1, 0x97, 0x32, 0xf9, 0x9f,
0x84, 0xa7, 0xfc, 0x45, 0x82, 0x07, 0x2b, 0xf9, 0xb0, 0x3b, 0x8f, 0x3f, 0xd3, 0xcc, 0xd2, 0x8a,
0x66, 0xfe, 0x37, 0x18, 0xe2, 0x00, 0x2a, 0x6f, 0x30, 0x88, 0xf4, 0x9c, 0x57, 0xd3, 0xcb, 0x1c,
0xd0, 0x1c, 0x76, 0x78, 0x12, 0x42, 0x6c, 0xee, 0x02, 0xa6, 0x1c, 0x38, 0x84, 0x4d, 0x7c, 0x04,
0x55, 0x31, 0x27, 0x2a, 0x14, 0xb9, 0x02, 0x87, 0x98, 0x82, 0xf2, 0x67, 0xe9, 0x0e, 0x12, 0x5c,
0x5d, 0x99, 0xff, 0x56, 0x88, 0xf3, 0x25, 0xbb, 0xd6, 0xc8, 0x33, 0xab, 0x74, 0xc9, 0x92, 0xef,
0xcc, 0x6b, 0x55, 0xc0, 0x5a, 0x6d, 0xaf, 0xa8, 0xd5, 0xbc, 0x48, 0x67, 0xb0, 0xcb, 0x24, 0x06,
0x3f, 0x7d, 0x52, 0x5e, 0x7f, 0xf4, 0xed, 0x3e, 0x94, 0x67, 0x07, 0x6a, 0x09, 0xcf, 0x62, 0xa5,
0x58, 0x1c, 0xa5, 0x09, 0xac, 0x31, 0xea, 0x10, 0x4b, 0x16, 0xff, 0x2b, 0x7f, 0x58, 0x83, 0x87,
0xab, 0x47, 0x9a, 0x25, 0x83, 0x31, 0x64, 0xe6, 0xa4, 0x2e, 0xea, 0x53, 0x5c, 0x38, 0xa8, 0xbb,
0x0e, 0xf9, 0x29, 0x6c, 0xe1, 0x45, 0xc3, 0x42, 0x2a, 0x8b, 0x68, 0x3c, 0xf1, 0x78, 0xa9, 0x36,
0x9e, 0x7e, 0x39, 0x8f, 0xe5, 0xee, 0x79, 0x4e, 0xd4, 0x57, 0xcc, 0xbc, 0xe3, 0x4e, 0x19, 0x34,
0xf1, 0x92, 0x67, 0x25, 0xe3, 0xbc, 0xd5, 0x52, 0x0d, 0x43, 0xdf, 0xbc, 0x5e, 0x94, 0x28, 0xbf,
0xcd, 0x43, 0x7d, 0x59, 0x9d, 0x54, 0x21, 0x35, 0xa8, 0x7f, 0x40, 0xb6, 0xa0, 0xa6, 0xea, 0x7a,
0x5f, 0xb7, 0xce, 0xd4, 0x9e, 0xaa, 0x6b, 0xad, 0xba, 0x34, 0x87, 0x7a, 0x7d, 0x6b, 0xd0, 0x39,
0x37, 0xea, 0x39, 0xb2, 0x03, 0x5b, 0x29, 0x64, 0x5a, 0x2f, 0x74, 0x4d, 0xed, 0xb5, 0x8d, 0x7a,
0x9e, 0xdc, 0x87, 0x1d, 0x0e, 0x77, 0xfa, 0xa7, 0xa7, 0xaf, 0xb9, 0xb0, 0x7f, 0xde, 0x6b, 0xd7,
0xd7, 0xc8, 0x43, 0xd8, 0xe7, 0x22, 0x63, 0xa0, 0xb6, 0xcc, 0xa6, 0xd9, 0xd7, 0x2d, 0xad, 0x67,
0x35, 0xb9, 0x66, 0xbd, 0x40, 0x76, 0x81, 0x64, 0x4d, 0x35, 0xc3, 0xea, 0x34, 0x7b, 0xf5, 0x22,
0xd9, 0x87, 0x5d, 0x8e, 0xbf, 0xd2, 0xfb, 0xbd, 0x33, 0x21, 0x35, 0x5f, 0x0f, 0xd4, 0x7a, 0x89,
0x1c, 0xc0, 0xde, 0x6d, 0x99, 0x61, 0x36, 0x4d, 0xb5, 0x5e, 0x9e, 0x0b, 0x07, 0x9d, 0xe6, 0x6b,
0x95, 0x7b, 0xca, 0xff, 0xd6, 0x2b, 0xe4, 0x10, 0xee, 0x73, 0xa1, 0xd9, 0xef, 0x5b, 0xdd, 0x66,
0xef, 0xf5, 0xdc, 0x2d, 0xa3, 0x0e, 0x44, 0x81, 0x87, 0xcb, 0xce, 0x1a, 0xaf, 0x34, 0xb3, 0xf5,
0x52, 0x6d, 0x5b, 0xa6, 0xda, 0xec, 0x1a, 0xf5, 0x2a, 0x39, 0x82, 0x03, 0xae, 0x23, 0xc2, 0xb7,
0xfa, 0x3d, 0xeb, 0xb4, 0x6f, 0xbe, 0xb4, 0x0c, 0xad, 0xad, 0x1a, 0xf5, 0x75, 0xf2, 0x21, 0x1c,
0xae, 0x88, 0xd8, 0x7c, 0xc9, 0x42, 0xc3, 0xa0, 0x6b, 0xca, 0xef, 0x72, 0xb0, 0xd7, 0x62, 0xab,
0x54, 0xa7, 0x6c, 0xe7, 0x68, 0x87, 0xd7, 0x81, 0x17, 0xda, 0x8e, 0x16, 0xbc, 0x09, 0xc9, 0x67,
0x50, 0xe0, 0x44, 0x29, 0xe1, 0xae, 0xf9, 0x2e, 0x0a, 0xe2, 0x8a, 0xec, 0xf6, 0x95, 0xb8, 0x89,
0xc7, 0xd7, 0x69, 0x45, 0xe7, 0x1f, 0xa4, 0x01, 0x55, 0x87, 0xc6, 0xc3, 0xc8, 0x1d, 0x27, 0xec,
0x5c, 0x9a, 0x47, 0x59, 0x16, 0x62, 0xcb, 0x3b, 0x76, 0x7f, 0x96, 0x1e, 0x2f, 0xf0, 0x3f, 0xc3,
0x12, 0x7b, 0xc4, 0x7b, 0xaa, 0xa2, 0xe3, 0x7f, 0x76, 0x67, 0xa1, 0xdf, 0xb8, 0x71, 0x12, 0x5b,
0x61, 0x60, 0x39, 0x6e, 0x7c, 0x25, 0xf8, 0x62, 0x9d, 0xa3, 0xfd, 0xa0, 0xed, 0xc6, 0x57, 0xfb,
0x5f, 0x41, 0xe5, 0xa5, 0x3b, 0x7a, 0xeb, 0xb9, 0xa3, 0xb7, 0x09, 0x79, 0x00, 0x15, 0x76, 0x97,
0x88, 0x13, 0xdb, 0x1f, 0xa7, 0x74, 0x30, 0x03, 0x96, 0x5d, 0xcb, 0xdd, 0x72, 0x4d, 0xf9, 0xa3,
0x04, 0x35, 0x16, 0x32, 0x2e, 0x59, 0x6c, 0xd3, 0xdb, 0x4d, 0x25, 0xad, 0x6a, 0xaa, 0x4f, 0x60,
0x43, 0x5c, 0xe2, 0xa7, 0x34, 0x8a, 0xd3, 0xd1, 0x6b, 0x7a, 0x8d, 0xa3, 0x17, 0x1c, 0x24, 0x9f,
0xc1, 0x3d, 0xde, 0x7b, 0x4b, 0x63, 0xe6, 0x71, 0x4c, 0x82, 0x32, 0x63, 0x61, 0xe0, 0x77, 0x5c,
0xab, 0x65, 0x28, 0x45, 0x74, 0xe4, 0x86, 0x01, 0x4f, 0x5b, 0x4d, 0x4f, 0x3f, 0x95, 0x1d, 0xd8,
0xc6, 0x9d, 0xc1, 0x0e, 0x86, 0xd4, 0x9b, 0xc5, 0xa2, 0xfc, 0x75, 0x0d, 0x76, 0x16, 0xa2, 0x9b,
0x51, 0xc7, 0x4f, 0x52, 0x4e, 0xc0, 0x93, 0x99, 0xe0, 0x04, 0x09, 0x39, 0xe1, 0xff, 0xe6, 0x0b,
0xe1, 0x96, 0xdd, 0x49, 0x16, 0x41, 0x26, 0x18, 0xa8, 0xbd, 0xb6, 0xd6, 0x3b, 0x13, 0x4c, 0x30,
0x97, 0x90, 0x27, 0xb0, 0x13, 0xe3, 0x09, 0xc9, 0x4a, 0xa6, 0xd6, 0x78, 0x72, 0xe9, 0xb9, 0x43,
0xcb, 0x76, 0x9c, 0x48, 0xe4, 0x89, 0x70, 0xa1, 0x39, 0x1d, 0xa0, 0xa8, 0xe9, 0x38, 0x11, 0xf9,
0x1c, 0x76, 0x33, 0x26, 0x11, 0x7f, 0xa9, 0x40, 0x1b, 0xce, 0xd7, 0xdb, 0x33, 0x1b, 0x2e, 0x43,
0xa3, 0x8f, 0x61, 0x23, 0x63, 0x14, 0x46, 0x89, 0x58, 0x66, 0xeb, 0x33, 0xe5, 0x30, 0x4a, 0xc8,
0x09, 0x6c, 0x63, 0xa4, 0x4b, 0x65, 0x28, 0x60, 0x19, 0xb6, 0x98, 0x68, 0xb1, 0x0a, 0x77, 0xd5,
0xad, 0x78, 0x67, 0xdd, 0x7e, 0x00, 0x07, 0xdc, 0x22, 0x99, 0x5a, 0x93, 0xc0, 0xfd, 0x7a, 0xc2,
0x26, 0x1b, 0x46, 0x34, 0xb1, 0x86, 0xa1, 0xc3, 0x5f, 0x32, 0x8a, 0xfa, 0x1e, 0xaa, 0x98, 0xd3,
0x73, 0x54, 0x30, 0x50, 0xde, 0x0a, 0x1d, 0xaa, 0xfc, 0x5e, 0x82, 0xcd, 0xa5, 0xdc, 0x32, 0xda,
0x14, 0xd9, 0xad, 0x7f, 0x40, 0x2a, 0x50, 0xd0, 0xd5, 0x66, 0xfb, 0x75, 0x5d, 0x62, 0x4c, 0x76,
0xd6, 0xec, 0xaa, 0x86, 0xaa, 0x5f, 0xa8, 0x7a, 0xaf, 0x6f, 0x72, 0x06, 0xcc, 0x91, 0x4d, 0xa8,
0x9e, 0xf7, 0x9a, 0x17, 0x4d, 0xad, 0xd3, 0x3c, 0xed, 0xa8, 0xf5, 0x3c, 0xa9, 0x41, 0xa5, 0xd5,
0xec, 0xb5, 0xd4, 0x4e, 0x47, 0x65, 0x0c, 0xb9, 0x07, 0xdb, 0x5a, 0xaf, 0xd5, 0xef, 0x0e, 0x9a,
0xa6, 0x76, 0xda, 0x51, 0x2f, 0x54, 0xdd, 0xd0, 0xfa, 0xbd, 0x7a, 0x81, 0x91, 0x55, 0x57, 0x33,
0x0c, 0xad, 0x77, 0xd6, 0x51, 0x9b, 0x67, 0xe7, 0xaa, 0x71, 0x7e, 0x6a, 0xb4, 0x74, 0x6d, 0x60,
0x32, 0x71, 0x91, 0xd1, 0x33, 0xf2, 0xc9, 0x6c, 0xaa, 0x92, 0x32, 0xe0, 0x7b, 0xd3, 0xc0, 0x8e,
0x92, 0x1b, 0x76, 0x25, 0xa7, 0xd1, 0xcc, 0xf9, 0x41, 0x14, 0xfa, 0xe3, 0x7f, 0x39, 0xe1, 0xca,
0x6f, 0xf2, 0x70, 0x0f, 0x99, 0xea, 0x34, 0x0a, 0x6d, 0x67, 0x68, 0xc7, 0x09, 0x8d, 0x90, 0xa6,
0xbe, 0xe5, 0xf6, 0xb8, 0xe2, 0xb5, 0x2a, 0x77, 0xab, 0x5f, 0x33, 0x5b, 0x6c, 0x7e, 0xbe, 0xc5,
0xae, 0x7e, 0xa1, 0x59, 0x7b, 0xdf, 0x17, 0x9a, 0xc2, 0x8a, 0x17, 0x9a, 0x23, 0xa8, 0x8a, 0x07,
0x21, 0x3c, 0x9f, 0x94, 0xc4, 0x53, 0x14, 0x42, 0xc8, 0x2e, 0xcf, 0xe1, 0xc1, 0x64, 0x3c, 0x0c,
0x7d, 0x37, 0x18, 0x59, 0x97, 0x69, 0xa4, 0xd6, 0x9c, 0xc2, 0xf8, 0xe3, 0xd5, 0x7e, 0xaa, 0x33,
0x4b, 0x86, 0x39, 0xe3, 0xb4, 0x63, 0xa8, 0xdb, 0x9e, 0x17, 0x5e, 0xf3, 0xdd, 0x7c, 0xea, 0x3a,
0x34, 0xc4, 0x37, 0xad, 0xb2, 0xbe, 0x81, 0x38, 0xdb, 0x77, 0x2f, 0x18, 0x8a, 0x97, 0xb7, 0xd0,
0xa1, 0xfc, 0x9d, 0xad, 0x2a, 0x2e, 0x6f, 0xa1, 0x43, 0xd3, 0x67, 0x36, 0x14, 0xb2, 0x78, 0xf0,
0x59, 0xab, 0xc2, 0x85, 0x2c, 0x14, 0xe5, 0x4f, 0x05, 0xd8, 0x48, 0x37, 0x02, 0x03, 0x9d, 0x5f,
0x7c, 0xea, 0x92, 0x96, 0x9e, 0xba, 0xe6, 0x61, 0xe3, 0x5c, 0xb9, 0x6c, 0xd8, 0x38, 0xdb, 0x17,
0x80, 0xf7, 0x12, 0xeb, 0x09, 0xe6, 0xbf, 0xfa, 0xf4, 0x70, 0x71, 0xb3, 0xe1, 0x73, 0x9c, 0x98,
0xac, 0x54, 0xc1, 0x9b, 0x50, 0x2f, 0x30, 0xe5, 0x27, 0x33, 0xab, 0xa7, 0x58, 0x94, 0xf7, 0xb3,
0x7a, 0x4a, 0x7e, 0x04, 0x35, 0x7e, 0x9a, 0xf3, 0xf9, 0xee, 0x25, 0x8e, 0x6d, 0xef, 0xda, 0xdf,
0xd6, 0xfd, 0xcc, 0x17, 0x79, 0x06, 0x95, 0xd9, 0xa5, 0x0f, 0x1b, 0xfe, 0xae, 0x99, 0x3b, 0xe2,
0xba, 0xa7, 0x97, 0xd3, 0x8b, 0xdf, 0xfe, 0xaf, 0x24, 0x28, 0xa7, 0x0e, 0x65, 0x2f, 0x67, 0x52,
0xf6, 0x72, 0xc6, 0x92, 0x39, 0x5b, 0x4c, 0x62, 0x57, 0x2a, 0xa7, 0xeb, 0x88, 0x28, 0x50, 0x9b,
0xbf, 0xdc, 0x4d, 0x22, 0x2f, 0xdd, 0x51, 0xd3, 0x87, 0xbb, 0xf3, 0xc8, 0x63, 0x09, 0xbf, 0xb6,
0x47, 0x34, 0xb2, 0xb0, 0x0d, 0x04, 0xe3, 0x01, 0x42, 0x2d, 0x86, 0xec, 0xff, 0x3a, 0x07, 0xe5,
0xd4, 0xbd, 0x55, 0x3d, 0x22, 0xad, 0xea, 0x91, 0xe7, 0xe2, 0x95, 0x2f, 0x6d, 0x85, 0xdc, 0xfb,
0x64, 0x1d, 0xfd, 0x4a, 0xbb, 0xe4, 0x99, 0x08, 0x0c, 0x1b, 0xe4, 0xbd, 0x4a, 0x8d, 0x71, 0x63,
0xef, 0xfc, 0x3f, 0x90, 0xec, 0xec, 0xe2, 0xe1, 0x8e, 0x87, 0x56, 0xcf, 0x4c, 0xc2, 0xdf, 0xef,
0xd2, 0x97, 0xcb, 0xcc, 0x1b, 0x5f, 0x61, 0xfe, 0x72, 0xd9, 0x4e, 0xdf, 0xf9, 0x4e, 0x0b, 0x2f,
0xa5, 0x5f, 0x4a, 0x1f, 0xfc, 0x33, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x67, 0x4a, 0xa0, 0x82, 0x17,
0x00, 0x00,
}
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html class="no-js css-menubar" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="description" content="bootstrap material admin template">
<meta name="author" content="">
<title>Morris Charts | Remark Material Admin Template</title>
<link rel="apple-touch-icon" href="../assets/images/apple-touch-icon.png">
<link rel="shortcut icon" href="../assets/images/favicon.ico">
<!-- Stylesheets -->
<link rel="stylesheet" href="../../global/css/bootstrap.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/css/bootstrap-extend.min.css?v2.1.0">
<link rel="stylesheet" href="../assets/css/site.min.css?v2.1.0">
<!-- Skin tools (demo site only) -->
<link rel="stylesheet" href="../../global/css/skintools.min.css?v2.1.0">
<script src="../assets/js/sections/skintools.min.js"></script>
<!-- Plugins -->
<link rel="stylesheet" href="../../global/vendor/animsition/animsition.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/vendor/asscrollable/asScrollable.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/vendor/switchery/switchery.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/vendor/intro-js/introjs.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/vendor/slidepanel/slidePanel.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/vendor/flag-icon-css/flag-icon.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/vendor/waves/waves.min.css?v2.1.0">
<!-- Plugins For This Page -->
<link rel="stylesheet" href="../../global/vendor/morris-js/morris.min.css?v2.1.0">
<!-- Fonts -->
<link rel="stylesheet" href="../../global/fonts/material-design/material-design.min.css?v2.1.0">
<link rel="stylesheet" href="../../global/fonts/brand-icons/brand-icons.min.css?v2.1.0">
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,700'>
<!--[if lt IE 9]>
<script src="../../global/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="../../global/vendor/media-match/media.match.min.js"></script>
<script src="../../global/vendor/respond/respond.min.js"></script>
<![endif]-->
<!-- Scripts -->
<script src="../../global/vendor/modernizr/modernizr.min.js"></script>
<script src="../../global/vendor/breakpoints/breakpoints.min.js"></script>
<script>
Breakpoints();
</script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle hamburger hamburger-close navbar-toggle-left hided"
data-toggle="menubar">
<span class="sr-only">Toggle navigation</span>
<span class="hamburger-bar"></span>
</button>
<button type="button" class="navbar-toggle collapsed" data-target="#site-navbar-collapse"
data-toggle="collapse">
<i class="icon md-more" aria-hidden="true"></i>
</button>
<div class="navbar-brand navbar-brand-center site-gridmenu-toggle" data-toggle="gridmenu">
<img class="navbar-brand-logo" src="../assets/images/logo.png" title="Remark">
<span class="navbar-brand-text"> Remark</span>
</div>
<button type="button" class="navbar-toggle collapsed" data-target="#site-navbar-search"
data-toggle="collapse">
<span class="sr-only">Toggle Search</span>
<i class="icon md-search" aria-hidden="true"></i>
</button>
</div>
<div class="navbar-container container-fluid">
<!-- Navbar Collapse -->
<div class="collapse navbar-collapse navbar-collapse-toolbar" id="site-navbar-collapse">
<!-- Navbar Toolbar -->
<ul class="nav navbar-toolbar">
<li class="hidden-float" id="toggleMenubar">
<a data-toggle="menubar" href="#" role="button">
<i class="icon hamburger hamburger-arrow-left">
<span class="sr-only">Toggle menubar</span>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
<li class="hidden-xs" id="toggleFullscreen">
<a class="icon icon-fullscreen" data-toggle="fullscreen" href="#" role="button">
<span class="sr-only">Toggle fullscreen</span>
</a>
</li>
<li class="hidden-float">
<a class="icon md-search" data-toggle="collapse" href="#" data-target="#site-navbar-search"
role="button">
<span class="sr-only">Toggle Search</span>
</a>
</li>
<li class="dropdown dropdown-fw dropdown-mega">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false"
data-animation="fade" role="button">Mega <i class="icon md-chevron-down" aria-hidden="true"></i></a>
<ul class="dropdown-menu" role="menu">
<li role="presentation">
<div class="mega-content">
<div class="row">
<div class="col-sm-4">
<h5>UI Kit</h5>
<ul class="blocks-2">
<li class="mega-menu margin-0">
<ul class="list-icons">
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../advanced/animation.html">Animation</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/buttons.html">Buttons</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/colors.html">Colors</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/dropdowns.html">Dropdowns</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/icons.html">Icons</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../advanced/lightbox.html">Lightbox</a>
</li>
</ul>
</li>
<li class="mega-menu margin-0">
<ul class="list-icons">
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/modals.html">Modals</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/panel-structure.html">Panels</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../structure/overlay.html">Overlay</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/tooltip-popover.html ">Tooltips</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../advanced/scrollable.html">Scrollable</a>
</li>
<li><i class="md-chevron-right" aria-hidden="true"></i>
<a
href="../uikit/typography.html">Typography</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="col-sm-4">
<h5>Media
<span class="badge badge-success">4</span>
</h5>
<ul class="blocks-3">
<li>
<a class="thumbnail margin-0" href="javascript:void(0)">
<img class="width-full" src="../../global/photos/view-1-150x100.jpg" alt="..."
/>
</a>
</li>
<li>
<a class="thumbnail margin-0" href="javascript:void(0)">
<img class="width-full" src="../../global/photos/view-2-150x100.jpg" alt="..."
/>
</a>
</li>
<li>
<a class="thumbnail margin-0" href="javascript:void(0)">
<img class="width-full" src="../../global/photos/view-3-150x100.jpg" alt="..."
/>
</a>
</li>
<li>
<a class="thumbnail margin-0" href="javascript:void(0)">
<img class="width-full" src="../../global/photos/view-4-150x100.jpg" alt="..."
/>
</a>
</li>
<li>
<a class="thumbnail margin-0" href="javascript:void(0)">
<img class="width-full" src="../../global/photos/view-5-150x100.jpg" alt="..."
/>
</a>
</li>
<li>
<a class="thumbnail margin-0" href="javascript:void(0)">
<img class="width-full" src="../../global/photos/view-6-150x100.jpg" alt="..."
/>
</a>
</li>
</ul>
</div>
<div class="col-sm-4">
<h5 class="margin-bottom-0">Accordion</h5>
<!-- Accordion -->
<div class="panel-group panel-group-simple" id="siteMegaAccordion" aria-multiselectable="true"
role="tablist">
<div class="panel">
<div class="panel-heading" id="siteMegaAccordionHeadingOne" role="tab">
<a class="panel-title" data-toggle="collapse" href="#siteMegaCollapseOne" data-parent="#siteMegaAccordion"
aria-expanded="false" aria-controls="siteMegaCollapseOne">
Collapsible Group Item #1
</a>
</div>
<div class="panel-collapse collapse" id="siteMegaCollapseOne" aria-labelledby="siteMegaAccordionHeadingOne"
role="tabpanel">
<div class="panel-body">
De moveat laudatur vestra parum doloribus labitur sentire partes, eripuit praesenti
congressus ostendit alienae, voluptati ornateque
accusamus clamat reperietur convicia albucius.
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="siteMegaAccordionHeadingTwo" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#siteMegaCollapseTwo"
data-parent="#siteMegaAccordion" aria-expanded="false"
aria-controls="siteMegaCollapseTwo">
Collapsible Group Item #2
</a>
</div>
<div class="panel-collapse collapse" id="siteMegaCollapseTwo" aria-labelledby="siteMegaAccordionHeadingTwo"
role="tabpanel">
<div class="panel-body">
Praestabiliorem. Pellat excruciant legantur ullum leniter vacare foris voluptate
loco ignavi, credo videretur multoque choro fatemur
mortis animus adoptionem, bello statuat expediunt
naturales.
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading" id="siteMegaAccordionHeadingThree" role="tab">
<a class="panel-title collapsed" data-toggle="collapse" href="#siteMegaCollapseThree"
data-parent="#siteMegaAccordion" aria-expanded="false"
aria-controls="siteMegaCollapseThree">
Collapsible Group Item #3
</a>
</div>
<div class="panel-collapse collapse" id="siteMegaCollapseThree" aria-labelledby="siteMegaAccordionHeadingThree"
role="tabpanel">
<div class="panel-body">
Horum, antiquitate perciperet d conspectum locus obruamus animumque perspici probabis
suscipere. Desiderat magnum, contenta poena desiderant
concederetur menandri damna disputandum corporum.
</div>
</div>
</div>
</div>
<!-- End Accordion -->
</div>
</div>
</div>
</li>
</ul>
</li>
</ul>
<!-- End Navbar Toolbar -->
<!-- Navbar Toolbar Right -->
<ul class="nav navbar-toolbar navbar-right navbar-toolbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)" data-animation="scale-up"
aria-expanded="false" role="button">
<span class="flag-icon flag-icon-us"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li role="presentation">
<a href="javascript:void(0)" role="menuitem">
<span class="flag-icon flag-icon-gb"></span> English</a>
</li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem">
<span class="flag-icon flag-icon-fr"></span> French</a>
</li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem">
<span class="flag-icon flag-icon-cn"></span> Chinese</a>
</li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem">
<span class="flag-icon flag-icon-de"></span> German</a>
</li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem">
<span class="flag-icon flag-icon-nl"></span> Dutch</a>
</li>
</ul>
</li>
<li class="dropdown">
<a class="navbar-avatar dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false"
data-animation="scale-up" role="button">
<span class="avatar avatar-online">
<img src="../../global/portraits/5.jpg" alt="...">
<i></i>
</span>
</a>
<ul class="dropdown-menu" role="menu">
<li role="presentation">
<a href="javascript:void(0)" role="menuitem"><i class="icon md-account" aria-hidden="true"></i> Profile</a>
</li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem"><i class="icon md-card" aria-hidden="true"></i> Billing</a>
</li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem"><i class="icon md-settings" aria-hidden="true"></i> Settings</a>
</li>
<li class="divider" role="presentation"></li>
<li role="presentation">
<a href="javascript:void(0)" role="menuitem"><i class="icon md-power" aria-hidden="true"></i> Logout</a>
</li>
</ul>
</li>
<li class="dropdown">
<a data-toggle="dropdown" href="javascript:void(0)" title="Notifications" aria-expanded="false"
data-animation="scale-up" role="button">
<i class="icon md-notifications" aria-hidden="true"></i>
<span class="badge badge-danger up">5</span>
</a>
<ul class="dropdown-menu dropdown-menu-right dropdown-menu-media" role="menu">
<li class="dropdown-menu-header" role="presentation">
<h5>NOTIFICATIONS</h5>
<span class="label label-round label-danger">New 5</span>
</li>
<li class="list-group" role="presentation">
<div data-role="container">
<div data-role="content">
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<i class="icon md-receipt bg-red-600 white icon-circle" aria-hidden="true"></i>
</div>
<div class="media-body">
<h6 class="media-heading">A new order has been placed</h6>
<time class="media-meta" datetime="2015-06-12T20:50:48+08:00">5 hours ago</time>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<i class="icon md-account bg-green-600 white icon-circle" aria-hidden="true"></i>
</div>
<div class="media-body">
<h6 class="media-heading">Completed the task</h6>
<time class="media-meta" datetime="2015-06-11T18:29:20+08:00">2 days ago</time>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<i class="icon md-settings bg-red-600 white icon-circle" aria-hidden="true"></i>
</div>
<div class="media-body">
<h6 class="media-heading">Settings updated</h6>
<time class="media-meta" datetime="2015-06-11T14:05:00+08:00">2 days ago</time>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<i class="icon md-calendar bg-blue-600 white icon-circle" aria-hidden="true"></i>
</div>
<div class="media-body">
<h6 class="media-heading">Event started</h6>
<time class="media-meta" datetime="2015-06-10T13:50:18+08:00">3 days ago</time>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<i class="icon md-comment bg-orange-600 white icon-circle" aria-hidden="true"></i>
</div>
<div class="media-body">
<h6 class="media-heading">Message received</h6>
<time class="media-meta" datetime="2015-06-10T12:34:48+08:00">3 days ago</time>
</div>
</div>
</a>
</div>
</div>
</li>
<li class="dropdown-menu-footer" role="presentation">
<a class="dropdown-menu-footer-btn" href="javascript:void(0)" role="button">
<i class="icon md-settings" aria-hidden="true"></i>
</a>
<a href="javascript:void(0)" role="menuitem">
All notifications
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a data-toggle="dropdown" href="javascript:void(0)" title="Messages" aria-expanded="false"
data-animation="scale-up" role="button">
<i class="icon md-email" aria-hidden="true"></i>
<span class="badge badge-info up">3</span>
</a>
<ul class="dropdown-menu dropdown-menu-right dropdown-menu-media" role="menu">
<li class="dropdown-menu-header" role="presentation">
<h5>MESSAGES</h5>
<span class="label label-round label-info">New 3</span>
</li>
<li class="list-group" role="presentation">
<div data-role="container">
<div data-role="content">
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<span class="avatar avatar-sm avatar-online">
<img src="../../global/portraits/2.jpg" alt="..." />
<i></i>
</span>
</div>
<div class="media-body">
<h6 class="media-heading">Mary Adams</h6>
<div class="media-meta">
<time datetime="2015-06-17T20:22:05+08:00">30 minutes ago</time>
</div>
<div class="media-detail">Anyways, i would like just do it</div>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<span class="avatar avatar-sm avatar-off">
<img src="../../global/portraits/3.jpg" alt="..." />
<i></i>
</span>
</div>
<div class="media-body">
<h6 class="media-heading">Caleb Richards</h6>
<div class="media-meta">
<time datetime="2015-06-17T12:30:30+08:00">12 hours ago</time>
</div>
<div class="media-detail">I checheck the document. But there seems</div>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<span class="avatar avatar-sm avatar-busy">
<img src="../../global/portraits/4.jpg" alt="..." />
<i></i>
</span>
</div>
<div class="media-body">
<h6 class="media-heading">June Lane</h6>
<div class="media-meta">
<time datetime="2015-06-16T18:38:40+08:00">2 days ago</time>
</div>
<div class="media-detail">Lorem ipsum Id consectetur et minim</div>
</div>
</div>
</a>
<a class="list-group-item" href="javascript:void(0)" role="menuitem">
<div class="media">
<div class="media-left padding-right-10">
<span class="avatar avatar-sm avatar-away">
<img src="../../global/portraits/5.jpg" alt="..." />
<i></i>
</span>
</div>
<div class="media-body">
<h6 class="media-heading">Edward Fletcher</h6>
<div class="media-meta">
<time datetime="2015-06-15T20:34:48+08:00">3 days ago</time>
</div>
<div class="media-detail">Dolor et irure cupidatat commodo nostrud nostrud.</div>
</div>
</div>
</a>
</div>
</div>
</li>
<li class="dropdown-menu-footer" role="presentation">
<a class="dropdown-menu-footer-btn" href="javascript:void(0)" role="button">
<i class="icon md-settings" aria-hidden="true"></i>
</a>
<a href="javascript:void(0)" role="menuitem">
See all messages
</a>
</li>
</ul>
</li>
<li id="toggleChat">
<a data-toggle="site-sidebar" href="javascript:void(0)" title="Chat" data-url="../site-sidebar.tpl">
<i class="icon md-comment" aria-hidden="true"></i>
</a>
</li>
</ul>
<!-- End Navbar Toolbar Right -->
</div>
<!-- End Navbar Collapse -->
<!-- Site Navbar Seach -->
<div class="collapse navbar-search-overlap" id="site-navbar-search">
<form role="search">
<div class="form-group">
<div class="input-search">
<i class="input-search-icon md-search" aria-hidden="true"></i>
<input type="text" class="form-control" name="site-search" placeholder="Search...">
<button type="button" class="input-search-close icon md-close" data-target="#site-navbar-search"
data-toggle="collapse" aria-label="Close"></button>
</div>
</div>
</form>
</div>
<!-- End Site Navbar Seach -->
</div>
</nav>
<div class="site-menubar">
<div class="site-menubar-body">
<div>
<div>
<ul class="site-menu">
<li class="site-menu-category">General</li>
<li class="site-menu-item">
<a class="animsition-link" href="../index.html">
<i class="site-menu-icon md-view-dashboard" aria-hidden="true"></i>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-view-compact" aria-hidden="true"></i>
<span class="site-menu-title">Layouts</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/menu-collapsed.html">
<span class="site-menu-title">Menu Collapsed</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/menu-expended.html">
<span class="site-menu-title">Menu Expended</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/grids.html">
<span class="site-menu-title">Grid Scaffolding</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/layout-grid.html">
<span class="site-menu-title">Layout Grid</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/headers.html">
<span class="site-menu-title">Different Headers</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/panel-transition.html">
<span class="site-menu-title">Panel Transition</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/boxed.html">
<span class="site-menu-title">Boxed Layout</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/two-columns.html">
<span class="site-menu-title">Two Columns</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/menubar-flipped.html">
<span class="site-menu-title">Menubar Flipped</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/menubar-native-scrolling.html">
<span class="site-menu-title">Menubar Native Scrolling</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../layouts/page-aside-fixed.html">
<span class="site-menu-title">Page Aside Fixed</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-google-pages" aria-hidden="true"></i>
<span class="site-menu-title">Pages</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<span class="site-menu-title">Errors</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../pages/error-400.html">
<span class="site-menu-title">400</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/error-403.html">
<span class="site-menu-title">403</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/error-404.html">
<span class="site-menu-title">404</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/error-500.html">
<span class="site-menu-title">500</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/error-503.html">
<span class="site-menu-title">503</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/faq.html">
<span class="site-menu-title">FAQ</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/gallery.html">
<span class="site-menu-title">Gallery</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/gallery-grid.html">
<span class="site-menu-title">Gallery Grid</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/search-result.html">
<span class="site-menu-title">Search Result</span>
</a>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<span class="site-menu-title">Maps</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../pages/map-google.html">
<span class="site-menu-title">Google Maps</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/map-vector.html">
<span class="site-menu-title">Vector Maps</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/maintenance.html">
<span class="site-menu-title">Maintenance</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/forgot-password.html">
<span class="site-menu-title">Forgot Password</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/lockscreen.html">
<span class="site-menu-title">Lockscreen</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/login.html">
<span class="site-menu-title">Login</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/register.html">
<span class="site-menu-title">Register</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/login-v2.html">
<span class="site-menu-title">Login V2</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/register-v2.html">
<span class="site-menu-title">Register V2</span>
<div class="site-menu-label">
<span class="label label-info label-round">new</span>
</div>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/login-v3.html">
<span class="site-menu-title">Login V3</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/register-v3.html">
<span class="site-menu-title">Register V3</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/user.html">
<span class="site-menu-title">User List</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/invoice.html">
<span class="site-menu-title">Invoice</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/blank.html">
<span class="site-menu-title">Blank Page</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/email.html">
<span class="site-menu-title">Email</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/code-editor.html">
<span class="site-menu-title">Code Editor</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/profile.html">
<span class="site-menu-title">Profile</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../pages/site-map.html">
<span class="site-menu-title">Sitemap</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-category">Elements</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-palette" aria-hidden="true"></i>
<span class="site-menu-title">Basic UI</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<span class="site-menu-title">Panel</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/panel-structure.html">
<span class="site-menu-title">Panel Structure</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/panel-actions.html">
<span class="site-menu-title">Panel Actions</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/panel-portlets.html">
<span class="site-menu-title">Panel Portlets</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/buttons.html">
<span class="site-menu-title">Buttons</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/dropdowns.html">
<span class="site-menu-title">Dropdowns</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/icons.html">
<span class="site-menu-title">Icons</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/list.html">
<span class="site-menu-title">List</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/tooltip-popover.html">
<span class="site-menu-title">Tooltip & Popover</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/modals.html">
<span class="site-menu-title">Modals</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/tabs-accordions.html">
<span class="site-menu-title">Tabs & Accordions</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/images.html">
<span class="site-menu-title">Images</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/badges-labels.html">
<span class="site-menu-title">Badges & Labels</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/progress-bars.html">
<span class="site-menu-title">Progress Bars</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/carousel.html">
<span class="site-menu-title">Carousel</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/typography.html">
<span class="site-menu-title">Typography</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/colors.html">
<span class="site-menu-title">Colors</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../uikit/utilities.html">
<span class="site-menu-title">Utilties</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-format-color-fill" aria-hidden="true"></i>
<span class="site-menu-title">Advanced UI</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item hidden-xs site-tour-trigger">
<a href="javascript:void(0)">
<span class="site-menu-title">Tour</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/animation.html">
<span class="site-menu-title">Animation</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/highlight.html">
<span class="site-menu-title">Highlight</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/lightbox.html">
<span class="site-menu-title">Lightbox</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/scrollable.html">
<span class="site-menu-title">Scrollable</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/rating.html">
<span class="site-menu-title">Rating</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/context-menu.html">
<span class="site-menu-title">Context Menu</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/alertify.html">
<span class="site-menu-title">Alertify</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/masonry.html">
<span class="site-menu-title">Masonry</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/treeview.html">
<span class="site-menu-title">Treeview</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/toastr.html">
<span class="site-menu-title">Toastr</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/maps-vector.html">
<span class="site-menu-title">Vector Maps</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/maps-google.html">
<span class="site-menu-title">Google Maps</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/sortable-nestable.html">
<span class="site-menu-title">Sortable & Nestable</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../advanced/bootbox-sweetalert.html">
<span class="site-menu-title">Bootbox & Sweetalert</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-puzzle-piece" aria-hidden="true"></i>
<span class="site-menu-title">Structure</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../structure/alerts.html">
<span class="site-menu-title">Alerts</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/ribbon.html">
<span class="site-menu-title">Ribbon</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/pricing-tables.html">
<span class="site-menu-title">Pricing Tables</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/overlay.html">
<span class="site-menu-title">Overlay</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/cover.html">
<span class="site-menu-title">Cover</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/timeline-simple.html">
<span class="site-menu-title">Simple Timeline</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/timeline.html">
<span class="site-menu-title">Timeline</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/step.html">
<span class="site-menu-title">Step</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/comments.html">
<span class="site-menu-title">Comments</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/media.html">
<span class="site-menu-title">Media</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/chat.html">
<span class="site-menu-title">Chat</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/testimonials.html">
<span class="site-menu-title">Testimonials</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/nav.html">
<span class="site-menu-title">Nav</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/navbars.html">
<span class="site-menu-title">Navbars</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/blockquotes.html">
<span class="site-menu-title">Blockquotes</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/pagination.html">
<span class="site-menu-title">Pagination</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../structure/breadcrumbs.html">
<span class="site-menu-title">Breadcrumbs</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-widgets" aria-hidden="true"></i>
<span class="site-menu-title">Widgets</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../widgets/statistics.html">
<span class="site-menu-title">Statistics Widgets</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../widgets/data.html">
<span class="site-menu-title">Data Widgets</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../widgets/blog.html">
<span class="site-menu-title">Blog Widgets</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../widgets/chart.html">
<span class="site-menu-title">Chart Widgets</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../widgets/social.html">
<span class="site-menu-title">Social Widgets</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../widgets/weather.html">
<span class="site-menu-title">Weather Widgets</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-comment-alt-text" aria-hidden="true"></i>
<span class="site-menu-title">Forms</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../forms/general.html">
<span class="site-menu-title">General Elements</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/material.html">
<span class="site-menu-title">Material Elements</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/advanced.html">
<span class="site-menu-title">Advanced Elements</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/layouts.html">
<span class="site-menu-title">Form Layouts</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/wizard.html">
<span class="site-menu-title">Form Wizard</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/validation.html">
<span class="site-menu-title">Form Validation</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/masks.html">
<span class="site-menu-title">Form Masks</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/editable.html">
<span class="site-menu-title">Form Editable</span>
</a>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<span class="site-menu-title">Editors</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../forms/editor-summernote.html">
<span class="site-menu-title">Summernote</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/editor-markdown.html">
<span class="site-menu-title">Markdown</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/editor-ace.html">
<span class="site-menu-title">Ace Editor</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/image-cropping.html">
<span class="site-menu-title">Image Cropping</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../forms/file-uploads.html">
<span class="site-menu-title">File Uploads</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-border-all" aria-hidden="true"></i>
<span class="site-menu-title">Tables</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../tables/basic.html">
<span class="site-menu-title">Basic Tables</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/bootstrap.html">
<span class="site-menu-title">Bootstrap Tables</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/floatthead.html">
<span class="site-menu-title">floatThead</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/responsive.html">
<span class="site-menu-title">Responsive Tables</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/editable.html">
<span class="site-menu-title">Editable Tables</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/jsgrid.html">
<span class="site-menu-title">jsGrid</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/footable.html">
<span class="site-menu-title">FooTable</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../tables/datatable.html">
<span class="site-menu-title">DataTables</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item has-sub active open">
<a href="javascript:void(0)">
<i class="site-menu-icon md-chart" aria-hidden="true"></i>
<span class="site-menu-title">Chart</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="chartjs.html">
<span class="site-menu-title">Chart.js</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="gauges.html">
<span class="site-menu-title">Gauges</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="flot.html">
<span class="site-menu-title">Flot</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="peity.html">
<span class="site-menu-title">Peity</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="sparkline.html">
<span class="site-menu-title">Sparkline</span>
</a>
</li>
<li class="site-menu-item active">
<a class="animsition-link" href="morris.html">
<span class="site-menu-title">Morris</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="chartist.html">
<span class="site-menu-title">Chartist.js</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="rickshaw.html">
<span class="site-menu-title">Rickshaw</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="pie-progress.html">
<span class="site-menu-title">Pie Progress</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="c3.html">
<span class="site-menu-title">C3</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-category">Apps</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<i class="site-menu-icon md-apps" aria-hidden="true"></i>
<span class="site-menu-title">Apps</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../apps/contacts/contacts.html">
<span class="site-menu-title">Contacts</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/calendar/calendar.html">
<span class="site-menu-title">Calendar</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/notebook/notebook.html">
<span class="site-menu-title">Notebook</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/taskboard/taskboard.html">
<span class="site-menu-title">Taskboard</span>
</a>
</li>
<li class="site-menu-item has-sub">
<a href="javascript:void(0)">
<span class="site-menu-title">Documents</span>
<span class="site-menu-arrow"></span>
</a>
<ul class="site-menu-sub">
<li class="site-menu-item">
<a class="animsition-link" href="../apps/documents/articles.html">
<span class="site-menu-title">Articles</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/documents/categories.html">
<span class="site-menu-title">Categories</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/documents/article.html">
<span class="site-menu-title">Article</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/forum/forum.html">
<span class="site-menu-title">Forum</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/message/message.html">
<span class="site-menu-title">Message</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/projects/projects.html">
<span class="site-menu-title">Projects</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/mailbox/mailbox.html">
<span class="site-menu-title">Mailbox</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/media/overview.html">
<span class="site-menu-title">Media</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/work/work.html">
<span class="site-menu-title">Work</span>
</a>
</li>
<li class="site-menu-item">
<a class="animsition-link" href="../apps/location/location.html">
<span class="site-menu-title">Location</span>
</a>
</li>
</ul>
</li>
<li class="site-menu-category">Angular UI</li>
<li class="site-menu-item">
<a class="animsition-link" href="../angular/index.html">
<i class="site-menu-icon bd-angular" aria-hidden="true"></i>
<span class="site-menu-title">Angular UI</span>
<div class="site-menu-label">
<span class="label label-danger label-round">new</span>
</div>
</a>
</li>
</ul>
<div class="site-menubar-section">
<h5>
Milestone
<span class="pull-right">30%</span>
</h5>
<div class="progress progress-xs">
<div class="progress-bar active" style="width: 30%;" role="progressbar"></div>
</div>
<h5>
Release
<span class="pull-right">60%</span>
</h5>
<div class="progress progress-xs">
<div class="progress-bar progress-bar-warning" style="width: 60%;" role="progressbar"></div>
</div>
</div>
</div>
</div>
</div>
<div class="site-menubar-footer">
<a href="javascript: void(0);" class="fold-show" data-placement="top" data-toggle="tooltip"
data-original-title="Settings">
<span class="icon md-settings" aria-hidden="true"></span>
</a>
<a href="javascript: void(0);" data-placement="top" data-toggle="tooltip" data-original-title="Lock">
<span class="icon md-eye-off" aria-hidden="true"></span>
</a>
<a href="javascript: void(0);" data-placement="top" data-toggle="tooltip" data-original-title="Logout">
<span class="icon md-power" aria-hidden="true"></span>
</a>
</div>
</div>
<div class="site-gridmenu">
<div>
<div>
<ul>
<li>
<a href="../apps/mailbox/mailbox.html">
<i class="icon md-email"></i>
<span>Mailbox</span>
</a>
</li>
<li>
<a href="../apps/calendar/calendar.html">
<i class="icon md-calendar"></i>
<span>Calendar</span>
</a>
</li>
<li>
<a href="../apps/contacts/contacts.html">
<i class="icon md-account"></i>
<span>Contacts</span>
</a>
</li>
<li>
<a href="../apps/media/overview.html">
<i class="icon md-videocam"></i>
<span>Media</span>
</a>
</li>
<li>
<a href="../apps/documents/categories.html">
<i class="icon md-receipt"></i>
<span>Documents</span>
</a>
</li>
<li>
<a href="../apps/projects/projects.html">
<i class="icon md-image"></i>
<span>Project</span>
</a>
</li>
<li>
<a href="../apps/forum/forum.html">
<i class="icon md-comments"></i>
<span>Forum</span>
</a>
</li>
<li>
<a href="../index.html">
<i class="icon md-view-dashboard"></i>
<span>Dashboard</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<!-- Page -->
<div class="page animsition">
<div class="page-header">
<h1 class="page-title">Morris Charts</h1>
<ol class="breadcrumb">
<li><a href="../index.html">Home</a></li>
<li><a href="javascript:void(0)">Charts</a></li>
<li class="active">Morris</li>
</ol>
<div class="page-header-actions">
<a class="btn btn-sm btn-primary btn-round" href="http://morrisjs.github.com/morris.js"
target="_blank">
<i class="icon md-link" aria-hidden="true"></i>
<span class="hidden-xs">Official Website</span>
</a>
</div>
</div>
<div class="page-content container-fluid">
<!-- Panel -->
<div class="panel">
<div class="panel-body">
<div class="row row-lg">
<div class="col-md-6">
<!-- Example Line -->
<div class="example-wrap margin-md-0">
<h4 class="example-title">Line</h4>
<p>Use function: <code>Morris.Line(options)</code> to generate chart.</p>
<div class="example">
<div id="exampleMorrisLine"></div>
</div>
</div>
<!-- End Example Line -->
</div>
<div class="col-md-6">
<!-- Example Area -->
<div class="example-wrap">
<h4 class="example-title">Area</h4>
<p>Create an area chart using: <code>Morris.Area(options)</code>.</p>
<div class="example">
<div id="exampleMorrisArea"></div>
</div>
</div>
<!-- End Example Area -->
</div>
</div>
</div>
</div>
<!-- End Panel -->
<!-- Panel -->
<div class="panel">
<div class="panel-body">
<div class="row row-lg">
<div class="col-md-6">
<!-- Example Bar -->
<div class="example-wrap margin-md-0">
<h4 class="example-title">Bar</h4>
<p>Create bar charts using <code>Morris.Bar(options)</code>.</p>
<div class="example">
<div id="exampleMorrisBar"></div>
</div>
</div>
<!-- End Example Bar -->
</div>
<div class="col-md-6">
<!-- Example Donut -->
<div class="example-wrap">
<h4 class="example-title">Donut</h4>
<p>Create a Donut chart using <code>Morris.Donut(options)</code>.</p>
<div class="example">
<div id="exampleMorrisDonut"></div>
</div>
</div>
<!-- End Example Donut -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Page -->
<!-- Footer -->
<footer class="site-footer">
<div class="site-footer-legal">© 2015 <a href="http://themeforest.net/item/remark-responsive-bootstrap-admin-template/11989202">Remark</a></div>
<div class="site-footer-right">
Crafted with <i class="red-600 icon md-favorite"></i> by <a href="http://themeforest.net/user/amazingSurge">amazingSurge</a>
</div>
</footer>
<!-- Core -->
<script src="../../global/vendor/jquery/jquery.min.js"></script>
<script src="../../global/vendor/bootstrap/bootstrap.min.js"></script>
<script src="../../global/vendor/animsition/animsition.min.js"></script>
<script src="../../global/vendor/asscroll/jquery-asScroll.min.js"></script>
<script src="../../global/vendor/mousewheel/jquery.mousewheel.min.js"></script>
<script src="../../global/vendor/asscrollable/jquery.asScrollable.all.min.js"></script>
<script src="../../global/vendor/ashoverscroll/jquery-asHoverScroll.min.js"></script>
<script src="../../global/vendor/waves/waves.min.js"></script>
<!-- Plugins -->
<script src="../../global/vendor/switchery/switchery.min.js"></script>
<script src="../../global/vendor/intro-js/intro.min.js"></script>
<script src="../../global/vendor/screenfull/screenfull.min.js"></script>
<script src="../../global/vendor/slidepanel/jquery-slidePanel.min.js"></script>
<!-- Plugins For This Page -->
<script src="../../global/vendor/raphael/raphael-min.js"></script>
<script src="../../global/vendor/morris-js/morris.min.js"></script>
<!-- Scripts -->
<script src="../../global/js/core.min.js"></script>
<script src="../assets/js/site.min.js"></script>
<script src="../assets/js/sections/menu.min.js"></script>
<script src="../assets/js/sections/menubar.min.js"></script>
<script src="../assets/js/sections/gridmenu.min.js"></script>
<script src="../assets/js/sections/sidebar.min.js"></script>
<script src="../../global/js/configs/config-colors.min.js"></script>
<script src="../assets/js/configs/config-tour.min.js"></script>
<script src="../../global/js/components/asscrollable.min.js"></script>
<script src="../../global/js/components/animsition.min.js"></script>
<script src="../../global/js/components/slidepanel.min.js"></script>
<script src="../../global/js/components/switchery.min.js"></script>
<script src="../../global/js/components/tabs.min.js"></script>
<script src="../assets/examples/js/charts/morris.min.js"></script>
<!-- Google Analytics -->
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js',
'ga');
ga('create', 'UA-65522665-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html> | {
"pile_set_name": "Github"
} |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package at.yawk.javap.model
import at.yawk.javap.SdkLanguage
import at.yawk.javap.jsonConfiguration
import kotlinx.serialization.json.Json
import org.testng.Assert
import org.testng.annotations.Test
import java.util.concurrent.ThreadLocalRandom
class CompilerConfigurationSerializerTest {
private val properties = ConfigProperties.properties.getValue(SdkLanguage.JAVA)
private fun withoutDefaults(configuration: CompilerConfiguration): Map<String, Any?> {
return configuration.filter { (k, v) ->
properties.single { it.id == k }.default != v
}
}
@Test
fun test() {
val config = mutableMapOf<String, Any?>()
for (property in properties) {
if (property is ConfigProperty.Flag) {
config[property.id] = ThreadLocalRandom.current().nextBoolean()
}
}
config[ConfigProperties.lint.id] = setOf("a", "b")
val serializer = ConfigProperties.serializers.getValue(SdkLanguage.JAVA)
val json = Json(jsonConfiguration)
Assert.assertEquals(
withoutDefaults(json.parse(serializer, json.stringify(serializer, config))),
withoutDefaults(config)
)
}
} | {
"pile_set_name": "Github"
} |
#ifndef EQEMU_LUA_ENCOUNTER_H
#define EQEMU_LUA_ENCOUNTER_H
#ifdef LUA_EQEMU
#include "lua_ptr.h"
class Encounter;
namespace luabind {
struct scope;
namespace adl {
class object;
}
}
luabind::scope lua_register_encounter();
class Lua_Encounter : public Lua_Ptr<Encounter>
{
typedef Encounter NativeType;
public:
Lua_Encounter() { SetLuaPtrData(nullptr); }
Lua_Encounter(Encounter *d) { SetLuaPtrData(reinterpret_cast<Encounter*>(d)); }
virtual ~Lua_Encounter() { }
operator Encounter*() {
return reinterpret_cast<Encounter*>(GetLuaPtrData());
}
};
#endif
#endif
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package name="readerLogin" extends="struts-default" >
<action name="readerLoginAction_*" method="{1}" class="readerLoginAction">
<result name="logout" type="redirect">reader.jsp</result>
</action>
</package>
</struts> | {
"pile_set_name": "Github"
} |
'use strict';
const createRoute = require('./create');
const listRoute = require('./list');
const getRoute = require('./get');
const updateRoute = require('./update');
const removeRoute = require('./remove');
/**
* Banner API Plugin
* @method register
* @param {Hapi} server Hapi Server
* @param {Object} options Configuration
* @param {Function} next Function to call when done
*/
const bannerPlugin = {
name: 'banners',
async register(server, options) {
/**
* Identifies userDisplayName and Screwdriver admin status of user
* @method screwdriverAdminDetails
* @param {String} username Username of the person
* @param {String} scmDisplayName Scm display name of the person
* @return {Object} Details including the display name and admin status of user
*/
server.expose('screwdriverAdminDetails', (username, scmDisplayName) => {
// construct object with defaults to store details
const adminDetails = {
isAdmin: false
};
if (scmDisplayName) {
const adminsList = options.admins;
// construct displayable username string
adminDetails.userDisplayName = `${scmDisplayName}:${username}`;
// Check system configuration for list of system admins
// set admin status true if current user is identified to be a system admin
if (adminsList.length > 0 && adminsList.includes(adminDetails.userDisplayName)) {
adminDetails.isAdmin = true;
}
}
// return details
return adminDetails;
});
server.route([createRoute(), listRoute(), getRoute(), updateRoute(), removeRoute()]);
}
};
module.exports = bannerPlugin;
| {
"pile_set_name": "Github"
} |
# for tensorboard visualization; run via 'tensorboard --logdir <path/to/base/xnmt/log/dir>'
tensorflow
| {
"pile_set_name": "Github"
} |
<component name="libraryTable">
<library name="Maven: org.springframework.cloud:spring-cloud-netflix-eureka-server:1.3.0.RELEASE">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/springframework/cloud/spring-cloud-netflix-eureka-server/1.3.0.RELEASE/spring-cloud-netflix-eureka-server-1.3.0.RELEASE.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/springframework/cloud/spring-cloud-netflix-eureka-server/1.3.0.RELEASE/spring-cloud-netflix-eureka-server-1.3.0.RELEASE-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/springframework/cloud/spring-cloud-netflix-eureka-server/1.3.0.RELEASE/spring-cloud-netflix-eureka-server-1.3.0.RELEASE-sources.jar!/" />
</SOURCES>
</library>
</component> | {
"pile_set_name": "Github"
} |
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright (c) 2012-2013 Oracle and/or its affiliates. All rights reserved.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common Development
# and Distribution License("CDDL") (collectively, the "License"). You
# may not use this file except in compliance with the License. You can
# obtain a copy of the License at
# https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
# or packager/legal/LICENSE.txt. See the License for the specific
# language governing permissions and limitations under the License.
#
# When distributing the software, include this License Header Notice in each
# file and include the License file at packager/legal/LICENSE.txt.
#
# GPL Classpath Exception:
# Oracle designates this particular file as subject to the "Classpath"
# exception as provided by Oracle in the GPL Version 2 section of the License
# file that accompanied this code.
#
# Modifications:
# If applicable, add the following below the License Header, with the fields
# enclosed by brackets [] replaced by your own identifying information:
# "Portions Copyright [year] [name of copyright owner]"
#
# Contributor(s):
# If you wish your version of this file to be governed by only the CDDL or
# only the GPL Version 2, indicate your decision by adding "[Contributor]
# elects to include this software in this distribution under the [CDDL or GPL
# Version 2] license." If you don't indicate a single choice of license, a
# recipient has the option to distribute your version of this file under
# either the CDDL, the GPL Version 2 or to extend the choice of license to
# its licensees as provided above. However, if you add GPL Version 2 code
# and therefore, elected the GPL Version 2 license, then the option applies
# only if the new code is made subject to such option by the copyright
# holder.
#
jms.service.portNumber.title=JMS-Serviceportnummer
jms.service.portNumber.title=JMS-Serviceportnummer
jms.service.portNumber.description=Portnummer, auf der der JMS-Service auf Remote-Clientverbindungen horcht.
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.samples.plugins
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.Copy
import org.gradle.samples.tasks.*
class IOSApplicationPlugin implements Plugin<Project> {
@Override
void apply(Project project) {
project.with {
plugins.withId('swift-application') {
def compileStoryboardTask = tasks.register("compileStoryboard", StoryboardCompile) {
module = application.module
outputDirectory = layout.buildDirectory.dir("ios/storyboards/compiled")
partialPropertyListOutputDirectory = layout.buildDirectory.dir("ios/partial-plist/storyboards")
}
def linkStoryboardTask = tasks.register("linkStoryboard", StoryboardLink) {
module = application.module
sources.from compileStoryboardTask.flatMap { it.outputDirectory }
outputDirectory = layout.buildDirectory.dir("ios/storyboards/linked")
}
def compileAssetCatalogTask = tasks.register("compileAssetCatalog", AssetCatalogCompile) {
identifier = provider { "${project.group}.${application.module.get()}".toString() }
partialPropertyListOutputDirectory = layout.buildDirectory.dir("ios/partial-plist/asset-catalogs")
outputDirectory = layout.buildDirectory.dir("ios/assert-catalogs")
}
def mergePropertyListTask = tasks.register("mergePropertyList", MergePropertyList) {
sources.from compileStoryboardTask.map { it.partialPropertyListOutputDirectory.asFileTree }
sources.from compileAssetCatalogTask.map { it.partialPropertyListOutputDirectory.asFileTree }
outputFile = layout.buildDirectory.file("ios/Info.plist")
module = application.module
identifier = provider { "${project.group}.${application.module.get()}".toString() }
}
def createPackageInformationTask = tasks.register("createPackageInformation", CreatePackageInformation) {
outputFile = layout.buildDirectory.file("ios/PkgInfo")
}
def createEntitlementTask = tasks.register("createEntitlement", CreateEntitlement) {
identifier = provider { "${project.group}.${application.module.get()}".toString() }
outputFile = layout.buildDirectory.file(provider { "ios/entitlements/${application.module.get()}.app.xcent" })
}
application.binaries.configureEach { binary ->
compileTask.get().compilerArgs.addAll provider {
["-target", "x86_64-apple-ios11.2", "-sdk", "xcrun --sdk iphonesimulator --show-sdk-path".execute().text.trim()/*, "-enforce-exclusivity=checked"*/]
}
linkTask.get().inputs.file createEntitlementTask.flatMap { it.outputFile }
linkTask.get().linkerArgs.addAll provider {
["-target", "x86_64-apple-ios11.2", "-sdk", "xcrun --sdk iphonesimulator --show-sdk-path".execute().text.trim(), "-Xlinker", "-rpath", "-Xlinker", "@executable_path/Frameworks", "-Xlinker", "-export_dynamic", "-Xlinker", "-no_deduplicate", "-Xlinker", "-objc_abi_version", "-Xlinker", "2", "-Xlinker", "-sectcreate", "-Xlinker", "__TEXT", "-Xlinker", "__entitlements", "-Xlinker", createEntitlementTask.get().outputFile.get().asFile.absolutePath]
}
}
def installApplicationBundleDebugTask = tasks.register("installApplicationBundleDebug", InstallApplicationBundle) {
applicationBundle = layout.buildDirectory.file(provider { "ios/products/debug/${application.module.get()}.app" })
sources.from(mergePropertyListTask.flatMap { it.outputFile })
sources.from(createPackageInformationTask.flatMap { it.outputFile })
sources.from(compileAssetCatalogTask.flatMap { it.outputDirectory })
sources.from(linkStoryboardTask.flatMap { it.outputDirectory })
}
tasks.matching({ it.name == 'linkDebug' }).all { linkTask ->
installApplicationBundleDebugTask.configure { it.executableFile = linkTask.linkedFile }
}
tasks.matching({ it.name == "installDebug" }).all {
dependsOn installApplicationBundleDebugTask
enabled = false
}
def installApplicationBundleReleaseTask = tasks.register("installApplicationBundleRelease", InstallApplicationBundle) {
applicationBundle = layout.buildDirectory.file(provider { "ios/products/release/${application.module.get()}.app" })
sources.from(mergePropertyListTask.flatMap { it.outputFile })
sources.from(createPackageInformationTask.flatMap { it.outputFile })
sources.from(compileAssetCatalogTask.flatMap { it.outputDirectory })
sources.from(linkStoryboardTask.flatMap { it.outputDirectory })
}
tasks.matching({ it.name == 'linkRelease' }).all { linkTask ->
installApplicationBundleReleaseTask.configure { it.executableFile = linkTask.linkedFile }
}
tasks.matching({ it.name == "installRelease" }).all {
dependsOn installApplicationBundleReleaseTask
enabled = false
}
// Configure iOS specific task source location convention
mergePropertyListTask.configure { sources.from layout.projectDirectory.file("src/main/resources/Info.plist") }
compileStoryboardTask.configure { sources.from fileTree(dir: 'src/main/resources', includes: ['*.lproj/*.storyboard']) }
compileAssetCatalogTask.configure { source = layout.projectDirectory.file("src/main/resources/Assets.xcassets") }
}
}
}
}
| {
"pile_set_name": "Github"
} |
/**
* @author Toru Nagashima
* @copyright 2017 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const utils = require('../utils')
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
module.exports = {
meta: {
type: 'problem',
docs: {
description: 'enforce valid `v-text` directives',
categories: ['vue3-essential', 'essential'],
url: 'https://eslint.vuejs.org/rules/valid-v-text.html'
},
fixable: null,
schema: []
},
/** @param {RuleContext} context */
create(context) {
return utils.defineTemplateBodyVisitor(context, {
/** @param {VDirective} node */
"VAttribute[directive=true][key.name.name='text']"(node) {
if (node.key.argument) {
context.report({
node,
loc: node.loc,
message: "'v-text' directives require no argument."
})
}
if (node.key.modifiers.length > 0) {
context.report({
node,
loc: node.loc,
message: "'v-text' directives require no modifier."
})
}
if (!node.value || utils.isEmptyValueDirective(node, context)) {
context.report({
node,
loc: node.loc,
message: "'v-text' directives require that attribute value."
})
}
}
})
}
}
| {
"pile_set_name": "Github"
} |
<?php
/*
* 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.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
namespace Doctrine\DBAL;
use PDO;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Driver\Statement as DriverStatement;
/**
* A thin wrapper around a Doctrine\DBAL\Driver\Statement that adds support
* for logging, DBAL mapping types, etc.
*
* @author Roman Borschel <roman@code-factory.org>
* @since 2.0
*/
class Statement implements \IteratorAggregate, DriverStatement
{
/**
* The SQL statement.
*
* @var string
*/
protected $sql;
/**
* The bound parameters.
*
* @var array
*/
protected $params = array();
/**
* The parameter types.
*
* @var array
*/
protected $types = array();
/**
* The underlying driver statement.
*
* @var \Doctrine\DBAL\Driver\Statement
*/
protected $stmt;
/**
* The underlying database platform.
*
* @var \Doctrine\DBAL\Platforms\AbstractPlatform
*/
protected $platform;
/**
* The connection this statement is bound to and executed on.
*
* @var \Doctrine\DBAL\Connection
*/
protected $conn;
/**
* Creates a new <tt>Statement</tt> for the given SQL and <tt>Connection</tt>.
*
* @param string $sql The SQL of the statement.
* @param \Doctrine\DBAL\Connection $conn The connection on which the statement should be executed.
*/
public function __construct($sql, Connection $conn)
{
$this->sql = $sql;
$this->stmt = $conn->getWrappedConnection()->prepare($sql);
$this->conn = $conn;
$this->platform = $conn->getDatabasePlatform();
}
/**
* Binds a parameter value to the statement.
*
* The value can optionally be bound with a PDO binding type or a DBAL mapping type.
* If bound with a DBAL mapping type, the binding type is derived from the mapping
* type and the value undergoes the conversion routines of the mapping type before
* being bound.
*
* @param string $name The name or position of the parameter.
* @param mixed $value The value of the parameter.
* @param mixed $type Either a PDO binding type or a DBAL mapping type name or instance.
*
* @return boolean TRUE on success, FALSE on failure.
*/
public function bindValue($name, $value, $type = null)
{
$this->params[$name] = $value;
$this->types[$name] = $type;
if ($type !== null) {
if (is_string($type)) {
$type = Type::getType($type);
}
if ($type instanceof Type) {
$value = $type->convertToDatabaseValue($value, $this->platform);
$bindingType = $type->getBindingType();
} else {
$bindingType = $type; // PDO::PARAM_* constants
}
return $this->stmt->bindValue($name, $value, $bindingType);
} else {
return $this->stmt->bindValue($name, $value);
}
}
/**
* Binds a parameter to a value by reference.
*
* Binding a parameter by reference does not support DBAL mapping types.
*
* @param string $name The name or position of the parameter.
* @param mixed $var The reference to the variable to bind.
* @param integer $type The PDO binding type.
* @param integer|null $length Must be specified when using an OUT bind
* so that PHP allocates enough memory to hold the returned value.
*
* @return boolean TRUE on success, FALSE on failure.
*/
public function bindParam($name, &$var, $type = PDO::PARAM_STR, $length = null)
{
$this->params[$name] = $var;
$this->types[$name] = $type;
return $this->stmt->bindParam($name, $var, $type, $length);
}
/**
* Executes the statement with the currently bound parameters.
*
* @param array|null $params
*
* @return boolean TRUE on success, FALSE on failure.
*
* @throws \Doctrine\DBAL\DBALException
*/
public function execute($params = null)
{
if (is_array($params)) {
$this->params = $params;
}
$logger = $this->conn->getConfiguration()->getSQLLogger();
if ($logger) {
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
$stmt = $this->stmt->execute($params);
} catch (\Exception $ex) {
if ($logger) {
$logger->stopQuery();
}
throw DBALException::driverExceptionDuringQuery(
$this->conn->getDriver(),
$ex,
$this->sql,
$this->conn->resolveParams($this->params, $this->types)
);
}
if ($logger) {
$logger->stopQuery();
}
$this->params = array();
$this->types = array();
return $stmt;
}
/**
* Closes the cursor, freeing the database resources used by this statement.
*
* @return boolean TRUE on success, FALSE on failure.
*/
public function closeCursor()
{
return $this->stmt->closeCursor();
}
/**
* Returns the number of columns in the result set.
*
* @return integer
*/
public function columnCount()
{
return $this->stmt->columnCount();
}
/**
* Fetches the SQLSTATE associated with the last operation on the statement.
*
* @return string
*/
public function errorCode()
{
return $this->stmt->errorCode();
}
/**
* Fetches extended error information associated with the last operation on the statement.
*
* @return array
*/
public function errorInfo()
{
return $this->stmt->errorInfo();
}
/**
* {@inheritdoc}
*/
public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)
{
if ($arg2 === null) {
return $this->stmt->setFetchMode($fetchMode);
} elseif ($arg3 === null) {
return $this->stmt->setFetchMode($fetchMode, $arg2);
}
return $this->stmt->setFetchMode($fetchMode, $arg2, $arg3);
}
/**
* Required by interface IteratorAggregate.
*
* {@inheritdoc}
*/
public function getIterator()
{
return $this->stmt;
}
/**
* Fetches the next row from a result set.
*
* @param integer|null $fetchMode
*
* @return mixed The return value of this function on success depends on the fetch type.
* In all cases, FALSE is returned on failure.
*/
public function fetch($fetchMode = null)
{
return $this->stmt->fetch($fetchMode);
}
/**
* Returns an array containing all of the result set rows.
*
* @param integer|null $fetchMode
* @param mixed $fetchArgument
*
* @return array An array containing all of the remaining rows in the result set.
*/
public function fetchAll($fetchMode = null, $fetchArgument = 0)
{
if ($fetchArgument !== 0) {
return $this->stmt->fetchAll($fetchMode, $fetchArgument);
}
return $this->stmt->fetchAll($fetchMode);
}
/**
* Returns a single column from the next row of a result set.
*
* @param integer $columnIndex
*
* @return mixed A single column from the next row of a result set or FALSE if there are no more rows.
*/
public function fetchColumn($columnIndex = 0)
{
return $this->stmt->fetchColumn($columnIndex);
}
/**
* Returns the number of rows affected by the last execution of this statement.
*
* @return integer The number of affected rows.
*/
public function rowCount()
{
return $this->stmt->rowCount();
}
/**
* Gets the wrapped driver statement.
*
* @return \Doctrine\DBAL\Driver\Statement
*/
public function getWrappedStatement()
{
return $this->stmt;
}
}
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html>
<head>
<title>TRIM Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
</head>
<body>
<div class="mainpart">
<h1>TRIM Function</h1>
<p>The <b>TRIM</b> function is one of the text and data functions. Is used to remove the leading and trailing spaces from a string.</p>
<p>The <b>TRIM</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>TRIM(string)</em></b></p>
<p>where <b><em>string</em></b> is a text value entered manually or included into the cell you make reference to.</p>
<p>To apply the <b>TRIM</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>
<li>click the <b>Insert Function</b> <img alt="Insert Function icon" src="../images/insertfunction.png" /> icon situated at the top toolbar,
<br />or right-click within a selected cell and select the <b>Insert Function</b> option from the menu,
<br />or click the <img alt="Function icon" src="../images/function.png" /> icon situated at the formula bar,
</li>
<li>select the <b>Text and data</b> function group from the list,</li>
<li>click the <b>TRIM</b> function,</li>
<li>enter the required argument,
</li>
<li>press the <b>Enter</b> button.</li>
</ol>
<p>The result will be displayed in the selected cell.</p>
<p style="text-indent: 150px;"><img alt="TRIM Function" src="../images/trim.png" /></p>
</div>
</body>
</html> | {
"pile_set_name": "Github"
} |
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="PurpleTheme">
<item name="colorPrimary">@color/material_deep_purple_500</item>
<item name="colorPrimaryDark">@color/material_deep_purple_700</item>
<item name="colorAccent">@color/material_lime_a700</item>
<item name="android:windowBackground">@color/material_deep_purple_50</item>
</style>
<style name="GreenTheme">
<item name="colorPrimary">@color/material_green_500</item>
<item name="colorPrimaryDark">@color/material_green_700</item>
<item name="colorAccent">@color/material_purple_a700</item>
<item name="android:windowBackground">@color/material_green_50</item>
</style>
<style name="WarnButton" parent="Widget.AppCompat.Button.Colored">
<item name="colorButtonNormal">@color/material_red_a200</item>
<item name="android:textColor">@android:color/white</item>
</style>
<!-- Theme used in custom layout example -->
<style name="CustomTheme" parent="ThemeOverlay.AppCompat.Light">
<item name="colorPrimary">#7c4dff</item>
<item name="colorPrimaryDark">#4527a0</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="CustomWingInner">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:background">#FFFFFF</item>
</style>
<style name="CustomWingOuter">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">0dp</item>
<item name="android:layout_marginLeft">16dp</item>
<item name="android:layout_marginRight">16dp</item>
</style>
</resources>
| {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0+ OR X11
/*
* Copyright 2013 Freescale Semiconductor, Inc.
*/
/include/ "skeleton.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
gpio4 = &gpio4;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
serial3 = &uart3;
serial4 = &uart4;
serial5 = &uart5;
spi0 = &dspi0;
spi1 = &dspi1;
ehci0 = &ehci0;
ehci1 = &ehci1;
};
soc {
#address-cells = <1>;
#size-cells = <1>;
compatible = "simple-bus";
ranges;
aips0: aips-bus@40000000 {
compatible = "fsl,aips-bus", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x40000000 0x00070000>;
ranges;
uart0: serial@40027000 {
compatible = "fsl,vf610-lpuart";
reg = <0x40027000 0x1000>;
status = "disabled";
};
uart1: serial@40028000 {
compatible = "fsl,vf610-lpuart";
reg = <0x40028000 0x1000>;
status = "disabled";
};
uart2: serial@40029000 {
compatible = "fsl,vf610-lpuart";
reg = <0x40029000 0x1000>;
status = "disabled";
};
uart3: serial@4002a000 {
compatible = "fsl,vf610-lpuart";
reg = <0x4002a000 0x1000>;
status = "disabled";
};
dspi0: dspi0@4002c000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,vf610-dspi";
reg = <0x4002c000 0x1000>;
num-cs = <5>;
status = "disabled";
};
dspi1: dspi1@4002d000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,vf610-dspi";
reg = <0x4002d000 0x1000>;
num-cs = <5>;
status = "disabled";
};
qspi0: quadspi@40044000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,vf610-qspi";
reg = <0x40044000 0x1000>,
<0x20000000 0x10000000>;
reg-names = "QuadSPI", "QuadSPI-memory";
status = "disabled";
};
gpio0: gpio@40049000 {
compatible = "fsl,vf610-gpio";
reg = <0x400ff000 0x40>;
#gpio-cells = <2>;
};
gpio1: gpio@4004a000 {
compatible = "fsl,vf610-gpio";
reg = <0x400ff040 0x40>;
#gpio-cells = <2>;
};
gpio2: gpio@4004b000 {
compatible = "fsl,vf610-gpio";
reg = <0x400ff080 0x40>;
#gpio-cells = <2>;
};
gpio3: gpio@4004c000 {
compatible = "fsl,vf610-gpio";
reg = <0x400ff0c0 0x40>;
#gpio-cells = <2>;
};
gpio4: gpio@4004d000 {
compatible = "fsl,vf610-gpio";
reg = <0x400ff100 0x40>;
#gpio-cells = <2>;
};
ehci0: ehci@40034000 {
compatible = "fsl,vf610-usb";
reg = <0x40034000 0x800>;
status = "disabled";
};
};
aips1: aips-bus@40080000 {
compatible = "fsl,aips-bus", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x40080000 0x0007f000>;
ranges;
uart4: serial@400a9000 {
compatible = "fsl,vf610-lpuart";
reg = <0x400a9000 0x1000>;
status = "disabled";
};
uart5: serial@400aa000 {
compatible = "fsl,vf610-lpuart";
reg = <0x400aa000 0x1000>;
status = "disabled";
};
ehci1: ehci@400b4000 {
compatible = "fsl,vf610-usb";
reg = <0x400b4000 0x800>;
status = "disabled";
};
};
};
};
| {
"pile_set_name": "Github"
} |
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
var isObject = require('isobject');
function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
}
module.exports = function isPlainObject(o) {
var ctor,prot;
if (isObjectObject(o) === false) return false;
// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;
// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}
// Most likely a plain Object
return true;
};
| {
"pile_set_name": "Github"
} |
const passport = require('passport')
const { ExtractJwt, Strategy } = require('passport-jwt')
/**
* middleware to check the if auth vaid
*/
module.exports = ({ config, repository: { userRepository } }) => {
const params = {
secretOrKey: config.authSecret,
jwtFromRequest: ExtractJwt.fromAuthHeaderWithScheme('jwt')
}
const strategy = new Strategy(params, (payload, done) => {
userRepository.findById(payload.id)
.then((user) => {
done(null, user)
})
.catch((error) => done(error, null))
})
passport.use(strategy)
passport.serializeUser(function (user, done) {
done(null, user)
})
passport.deserializeUser(function (user, done) {
done(null, user)
})
return {
initialize: () => {
return passport.initialize()
},
authenticate: () => {
return passport.authenticate('jwt')
}
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2010-2018 Osman Shoukry
*
* 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.openpojo.reflection.java.bytecode.asm;
/**
* @author oshoukry
*/
public class ASMNotLoadedException extends RuntimeException {
private ASMNotLoadedException() {
this("ASM v5.0+ library required, please see http://asm.ow2.org/");
}
private ASMNotLoadedException(String message) {
super(message);
}
public static ASMNotLoadedException getInstance() {
return new ASMNotLoadedException();
}
public static ASMNotLoadedException getInstance(String message) {
return new ASMNotLoadedException(message);
}
}
| {
"pile_set_name": "Github"
} |
# dorothy [](http://travis-ci.org/#!/daveray/dorothy/builds)
[Hiccup-style](https://github.com/weavejester/hiccup) generation of
[Graphviz](http://www.graphviz.org/) graphs in Clojure and ClojureScript.
*Dorothy is extremely alpha and subject to radical change. [Release Notes Here](https://github.com/daveray/dorothy/wiki)*
## Usage
*Dorothy assumes you have an understanding of Graphviz and DOT. The text below describes the mechanics of Dorothy's DSL, but you'll need to refer to the Graphviz documentation for specifics on node shapes, valid attributes, etc.*
*The Graphviz dot tool executable must be on the system path to render*
Dorothy is on Clojars. In Leiningen:
[dorothy "x.y.z"]
A graph consists of a vector of *statements*. The following sections describe the format for all the types of statements. If you're bored, skip ahead to the "Defining Graphs" section below.
### Node Statement
A *node statement* defines a node in the graph. It can take two forms:
node-id
[node-id]
[node-id { attr map }]
where `node-id` is a string, number or keyword with optional trailing *port* and *compass-point*. Here are some node statement examples:
:node0 ; Define a node called "node0"
:node0:port0 ; Define a node called "node0" with port "port0"
:node0:port0:sw ; Similarly a node with southwest compass point
the node's attr map is a map of attributes for the node. For example,
[:start {:shape :Mdiamond}]
; => start [shape=Mdiamond];
Dorothy will correctly escape and quote node-ids as required by dot.
A node id can also be auto-generated with `(gen-id object)`. For example,
[(gen-id some-object) {:label (.getText some-object)}]
It allows you to use arbitrary objects as nodes.
### Edge Statement
An *edge statement* defines an edge in the graph. It is expressed as a vector with two or more node-ids followed optional attribute map:
[node-id0 node-id1 ... node-idN { attr map }]
; => "node-id0" -> "node-id1" -> ... -> "node-idN" [attrs ...];
In addition to node ids, an edge statement may also contain subgraphs:
[:start (subgraph [... subgraph statements ...])]
For readability, `:>` delimiters may be optionally included in an edge statement:
[:start :> :middle :> :end]
### Graph Attribute Statement
A *graph attribute* statement sets graph-wide attributes. It is expressed as a single map:
{:label "process #1", :style :filled, :color :lightgrey}
; => graph [label="process #1",style=filled,color=lightgrey];
alternatively, this can be expressed with the `(graph-attrs)` function like this:
(graph-attrs {:label "process #1", :style :filled, :color :lightgrey})
; => graph [label="process #1",style=filled,color=lightgrey];
### Node and Edge Attribute Statement
A *node attribute* or *edge attribute* statement sets node or edge attributes respectively for all nodes and edge statements that follow. It is expressed with `(node-attrs)` and `(edge-attrs)` statements:
(node-attrs {:style :filled, :color :white})
; => node [style=filled,color=white];
or:
(edge-attrs {:color :black})
; => edge [color=black];
## Defining Graphs
As mentioned above, a graph consists of a series of statements. These statements are passed to the `graph`, `digraph`, or `subgraph` functions. Each takes an optional set of attributes followed by a vector of statements:
<img src="https://github.com/downloads/daveray/dorothy/dorothy-show2.png" align="right"/>
; From http://www.graphviz.org/content/cluster
(digraph [
(subgraph :cluster_0 [
{:style :filled, :color :lightgrey, :label "process #1"}
(node-attrs {:style :filled, :color :white})
[:a0 :> :a1 :> :a2 :> :a3]])
(subgraph :cluster_1 [
{:color :blue, :label "process #2"}
(node-attrs {:style :filled})
[:b0 :> :b1 :> :b2 :> :b3]])
[:start :a0]
[:start :b0]
[:a1 :b3]
[:b2 :a3]
[:a3 :a0]
[:a3 :end]
[:b3 :end]
[:start {:shape :Mdiamond}]
[:end {:shape :Msquare}]])
Similarly for `(graph)` (undirected graph) and `(subgraph)`. A second form of these functions takes an initial option map, or a string or keyword id for the graph:
(graph :graph-id ...)
; => graph "graph-id" { ... }
(digraph { :id :G :strict? true } ...)
; => strict graph G { ... }
## Generate Graphviz dot format
Given a graph built with the functions described above, use the `(dot)` function to generate Graphviz DOT output.
(require '[dorothy.core :as dot])
(def g (dot/graph [ ... ]))
(dot/dot g)
"graph { ... }"
## Rendering images (ClojureScript)
Dorothy currently doesn't include any facilities for rendering dot-format output to images. However,
you can pull in [viz.cljc](https://github.com/jebberjeb/viz.cljc) or
[viz.js](https://github.com/mdaines/viz.js), both of which will allow you to produce
png, svg, and other image formats from your dorothy-generated dot-formatted graph content.
Wanted: pull requests to implement node equivalents to the rendering functions available for Clojure/JVM
in the `dorothy.jvm` namespace. **link to github issue here**
## Render images via `graphviz` (Clojure/JVM)
Once you have DOT language output, you can render it as an image using the `(render)` function:
(require '[dorothy.jvm :refer (render save! show!)])
; This produces a png as an array of bytes
(render graph {:format :png})
; This produces an SVG string
(render graph {:format :svg})
; A one-liner with a very simple 4 node digraph.
(-> (dot/digraph [ [:a :b :c] [:b :d] ])
dot/dot
(render {:format :svg}))
*The dot tool executable must be on the system path*
other formats include `:pdf`, `:gif`, etc. The result will be either a java byte array, or String depending on whether the format is binary or not. `(render)` returns a string or a byte array depending on whether the output format is binary or not.
Alternatively, use the `(save!)` function to write to a file or output stream.
; A one-liner with a very simple 4 node digraph
(-> (dot/digraph [ [:a :b :c] [:b :d] ])
dot/dot
(save! "out.png" {:format :png}))
Finally, for simple tests, use the `(show!)` function to view the result in a simple Swing viewer:
; This opens a simple Swing viewer with the graph
(show! graph)
; A one-liner with a very simple 4 node digraph
(-> (dot/digraph [ [:a :b :c] [:b :d] ])
dot/dot
show!)
which shows:
<img src="sample.png"/>
## License
Copyright (C) 2011-2017 Dave Ray and contributors
Distributed under the Eclipse Public License, the same as Clojure.
| {
"pile_set_name": "Github"
} |
/*
Copyright The Kubernetes 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.
*/
// Code generated by client-gen. DO NOT EDIT.
package v1beta1
import (
"context"
"time"
v1beta1 "k8s.io/api/discovery/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
scheme "k8s.io/client-go/kubernetes/scheme"
rest "k8s.io/client-go/rest"
)
// EndpointSlicesGetter has a method to return a EndpointSliceInterface.
// A group's client should implement this interface.
type EndpointSlicesGetter interface {
EndpointSlices(namespace string) EndpointSliceInterface
}
// EndpointSliceInterface has methods to work with EndpointSlice resources.
type EndpointSliceInterface interface {
Create(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.CreateOptions) (*v1beta1.EndpointSlice, error)
Update(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.UpdateOptions) (*v1beta1.EndpointSlice, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.EndpointSlice, error)
List(ctx context.Context, opts v1.ListOptions) (*v1beta1.EndpointSliceList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.EndpointSlice, err error)
EndpointSliceExpansion
}
// endpointSlices implements EndpointSliceInterface
type endpointSlices struct {
client rest.Interface
ns string
}
// newEndpointSlices returns a EndpointSlices
func newEndpointSlices(c *DiscoveryV1beta1Client, namespace string) *endpointSlices {
return &endpointSlices{
client: c.RESTClient(),
ns: namespace,
}
}
// Get takes name of the endpointSlice, and returns the corresponding endpointSlice object, and an error if there is any.
func (c *endpointSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.EndpointSlice, err error) {
result = &v1beta1.EndpointSlice{}
err = c.client.Get().
Namespace(c.ns).
Resource("endpointslices").
Name(name).
VersionedParams(&options, scheme.ParameterCodec).
Do(ctx).
Into(result)
return
}
// List takes label and field selectors, and returns the list of EndpointSlices that match those selectors.
func (c *endpointSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EndpointSliceList, err error) {
var timeout time.Duration
if opts.TimeoutSeconds != nil {
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
}
result = &v1beta1.EndpointSliceList{}
err = c.client.Get().
Namespace(c.ns).
Resource("endpointslices").
VersionedParams(&opts, scheme.ParameterCodec).
Timeout(timeout).
Do(ctx).
Into(result)
return
}
// Watch returns a watch.Interface that watches the requested endpointSlices.
func (c *endpointSlices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
var timeout time.Duration
if opts.TimeoutSeconds != nil {
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
}
opts.Watch = true
return c.client.Get().
Namespace(c.ns).
Resource("endpointslices").
VersionedParams(&opts, scheme.ParameterCodec).
Timeout(timeout).
Watch(ctx)
}
// Create takes the representation of a endpointSlice and creates it. Returns the server's representation of the endpointSlice, and an error, if there is any.
func (c *endpointSlices) Create(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.CreateOptions) (result *v1beta1.EndpointSlice, err error) {
result = &v1beta1.EndpointSlice{}
err = c.client.Post().
Namespace(c.ns).
Resource("endpointslices").
VersionedParams(&opts, scheme.ParameterCodec).
Body(endpointSlice).
Do(ctx).
Into(result)
return
}
// Update takes the representation of a endpointSlice and updates it. Returns the server's representation of the endpointSlice, and an error, if there is any.
func (c *endpointSlices) Update(ctx context.Context, endpointSlice *v1beta1.EndpointSlice, opts v1.UpdateOptions) (result *v1beta1.EndpointSlice, err error) {
result = &v1beta1.EndpointSlice{}
err = c.client.Put().
Namespace(c.ns).
Resource("endpointslices").
Name(endpointSlice.Name).
VersionedParams(&opts, scheme.ParameterCodec).
Body(endpointSlice).
Do(ctx).
Into(result)
return
}
// Delete takes name of the endpointSlice and deletes it. Returns an error if one occurs.
func (c *endpointSlices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
return c.client.Delete().
Namespace(c.ns).
Resource("endpointslices").
Name(name).
Body(&opts).
Do(ctx).
Error()
}
// DeleteCollection deletes a collection of objects.
func (c *endpointSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
var timeout time.Duration
if listOpts.TimeoutSeconds != nil {
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
}
return c.client.Delete().
Namespace(c.ns).
Resource("endpointslices").
VersionedParams(&listOpts, scheme.ParameterCodec).
Timeout(timeout).
Body(&opts).
Do(ctx).
Error()
}
// Patch applies the patch and returns the patched endpointSlice.
func (c *endpointSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.EndpointSlice, err error) {
result = &v1beta1.EndpointSlice{}
err = c.client.Patch(pt).
Namespace(c.ns).
Resource("endpointslices").
Name(name).
SubResource(subresources...).
VersionedParams(&opts, scheme.ParameterCodec).
Body(data).
Do(ctx).
Into(result)
return
}
| {
"pile_set_name": "Github"
} |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.add("docprops",{requires:"wysiwygarea,dialog,colordialog",lang:"af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn",icons:"docprops,docprops-rtl",hidpi:!0,init:function(a){var b=new CKEDITOR.dialogCommand("docProps");b.modes={wysiwyg:a.config.fullPage};b.allowedContent={body:{styles:"*",attributes:"dir"},html:{attributes:"lang,xml:lang"}};
b.requiredContent="body";a.addCommand("docProps",b);CKEDITOR.dialog.add("docProps",this.path+"dialogs/docprops.js");a.ui.addButton&&a.ui.addButton("DocProps",{label:a.lang.docprops.label,command:"docProps",toolbar:"document,30"})}}); | {
"pile_set_name": "Github"
} |
package cs
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
//
// Code generated by Alibaba Cloud SDK Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// Addon_name is a nested struct in cs response
type Addon_name struct {
Name string `json:"name" xml:"name"`
Config string `json:"config" xml:"config"`
Required string `json:"required" xml:"required"`
Disabled bool `json:"disabled" xml:"disabled"`
Version string `json:"version" xml:"version"`
}
| {
"pile_set_name": "Github"
} |
<?php
/**
* PHP表单生成器
*
* @package FormBuilder
* @author xaboy <xaboy2005@qq.com>
* @version 2.0
* @license MIT
* @link https://github.com/xaboy/form-builder
* @document http://php.form-create.com
*/
namespace FormBuilder\UI\Iview\Components;
use FormBuilder\Driver\FormOptionsComponent;
use FormBuilder\Factory\Iview;
/**
* 选择器组件
* Class Select
*
* @method $this multiple(bool $bool) 是否支持多选, 默认为false
* @method $this disabled(bool $bool) 是否禁用, 默认为false
* @method $this clearable(bool $bool) 是否可以清空选项,只在单选时有效, 默认为false
* @method $this filterable(bool $bool) 是否支持搜索, 默认为false
* @method $this size(string $size) 选择框大小,可选值为large、small、default或者不填
* @method $this placeholder(string $placeholder) 选择框默认文字
* @method $this transfer(string $transfer) 是否将弹层放置于 body 内,在 Tabs、带有 fixed 的 Table 列内使用时,建议添加此属性,它将不受父级样式影响,从而达到更好的效果, 默认为false
* @method $this placement(string $placement) 弹窗的展开方向,可选值为 bottom 和 top, 默认为bottom
* @method $this notFoundText(string $text) 当下拉列表为空时显示的内容, 默认为 无匹配数据
*
*/
class Select extends FormOptionsComponent
{
protected $selectComponent = true;
protected $defaultProps = [
'multiple' => false
];
protected static $propsRule = [
'multiple' => 'bool',
'disabled' => 'bool',
'clearable' => 'bool',
'filterable' => 'bool',
'size' => 'string',
'placeholder' => 'string',
'transfer' => 'string',
'placement' => 'string',
'notFoundText' => 'string',
];
public function createValidate()
{
if ($this->props['multiple'] == true)
return Iview::validateArr();
else
return Iview::validateStr();
}
public function createValidateNum()
{
return Iview::validateNum();
}
public function requiredNum($message = null)
{
if (is_null($message)) $message = $this->getPlaceHolder();
return $this->appendValidate($this->createValidateNum()->message($message)->required());
}
} | {
"pile_set_name": "Github"
} |
/*
* File : board.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Develop Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Date Author Notes
* 2011-01-13 weety add board.h to this bsp
*/
#ifndef __BOARD_H__
#define __BOARD_H__
unsigned long gkosGetTicks(void);
void rt_hw_board_init(void);
int rt_board_driver_init(void);
#endif
| {
"pile_set_name": "Github"
} |
module ActivityNotification
# Manages to add all required configurations to target models of notification.
module ActsAsTarget
extend ActiveSupport::Concern
class_methods do
# Adds required configurations to notifiable models.
#
# == Parameters:
# * :email
# * Email address to send notification email.
# This is a necessary option when you enables email notification.
# @example Simply use :email field
# # app/models/user.rb
# class User < ActiveRecord::Base
# validates :email, presence: true
# acts_as_target email: :email
# end
#
# * :email_allowed
# * Whether activity_notification sends notification email to this target.
# Specified method or symbol is expected to return true (not nil) or false (nil).
# This parameter is a optional since default value is false.
# To use notification email, email_allowed option must return true (not nil) in both of notifiable and target model.
# This can be also configured default option in initializer.
# @example Always enable email notification for this target
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target email: :email, email_allowed: true
# end
# @example Use confirmed_at of devise field to decide whether activity_notification sends notification email to this user
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target email: :email, email_allowed: :confirmed_at
# end
#
# * :batch_email_allowed
# * Whether activity_notification sends batch notification email to this target.
# Specified method or symbol is expected to return true (not nil) or false (nil).
# This parameter is a optional since default value is false.
# To use batch notification email, both of batch_email_allowed and subscription_allowed options must return true (not nil) in target model.
# This can be also configured default option in initializer.
# @example Always enable batch email notification for this target
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target email: :email, batch_email_allowed: true
# end
# @example Use confirmed_at of devise field to decide whether activity_notification sends batch notification email to this user
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target email: :email, batch_email_allowed: :confirmed_at
# end
#
# * :subscription_allowed
# * Whether activity_notification manages subscriptions of this target.
# Specified method or symbol is expected to return true (not nil) or false (nil).
# This parameter is a optional since default value is false.
# This can be also configured default option in initializer.
# @example Subscribe notifications for this target
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target subscription_allowed: true
# end
#
# * :action_cable_allowed
# * Whether activity_notification publishes WebSocket notifications using ActionCable to this target.
# Specified method or symbol is expected to return true (not nil) or false (nil).
# This parameter is a optional since default value is false.
# To use ActionCable for notifications, action_cable_enabled option must return true (not nil) in both of notifiable and target model.
# This can be also configured default option in initializer.
# @example Enable notification ActionCable for this target
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target action_cable_allowed: true
# end
#
# * :action_cable_with_devise
# * Whether activity_notification publishes WebSocket notifications using ActionCable only to authenticated target with Devise.
# Specified method or symbol is expected to return true (not nil) or false (nil).
# This parameter is a optional since default value is false.
# To use ActionCable for notifications, also action_cable_enabled option must return true (not nil) in the target model.
# @example Enable notification ActionCable for this target
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target action_cable_allowed: true, action_cable_with_devise* true
# end
#
# * :devise_resource
# * Integrated resource with devise authentication.
# This parameter is a optional since `self` is used as default value.
# You also have to configure routing for devise in routes.rb
# @example No :devise_resource is needed when notification target is the same as authenticated resource
# # config/routes.rb
# devise_for :users
# notify_to :users
#
# # app/models/user.rb
# class User < ActiveRecord::Base
# devise :database_authenticatable, :registerable, :confirmable
# acts_as_target email: :email, email_allowed: :confirmed_at
# end
#
# @example Send Admin model and use associated User model with devise authentication
# # config/routes.rb
# devise_for :users
# notify_to :admins, with_devise: :users
#
# # app/models/user.rb
# class User < ActiveRecord::Base
# devise :database_authenticatable, :registerable, :confirmable
# end
#
# # app/models/admin.rb
# class Admin < ActiveRecord::Base
# belongs_to :user
# validates :user, presence: true
# acts_as_notification_target email: :email,
# email_allowed: ->(admin, key) { admin.user.confirmed_at.present? },
# devise_resource: :user
# end
#
# * :current_devise_target
# * Current authenticated target by devise authentication.
# This parameter is a optional since `current_<devise_resource_name>` is used as default value.
# In addition, this parameter is only needed when :devise_default_route in your route.rb is enabled.
# You also have to configure routing for devise in routes.rb
# @example No :current_devise_target is needed when notification target is the same as authenticated resource
# # config/routes.rb
# devise_for :users
# notify_to :users
#
# # app/models/user.rb
# class User < ActiveRecord::Base
# devise :database_authenticatable, :registerable, :confirmable
# acts_as_target email: :email, email_allowed: :confirmed_at
# end
#
# @example Send Admin model and use associated User model with devise authentication
# # config/routes.rb
# devise_for :users
# notify_to :admins, with_devise: :users
#
# # app/models/user.rb
# class User < ActiveRecord::Base
# devise :database_authenticatable, :registerable, :confirmable
# end
#
# # app/models/admin.rb
# class Admin < ActiveRecord::Base
# belongs_to :user
# validates :user, presence: true
# acts_as_notification_target email: :email,
# email_allowed: ->(admin, key) { admin.user.confirmed_at.present? },
# devise_resource: :user,
# current_devise_target: ->(current_user) { current_user.admin }
# end
#
# * :printable_name or :printable_notification_target_name
# * Printable notification target name.
# This parameter is a optional since `ActivityNotification::Common.printable_name` is used as default value.
# :printable_name is the same option as :printable_notification_target_name
# @example Define printable name with user name of name field
# # app/models/user.rb
# class User < ActiveRecord::Base
# acts_as_target printable_name: :name
# end
#
# @example Define printable name with associated user name
# # app/models/admin.rb
# class Admin < ActiveRecord::Base
# acts_as_target printable_notification_target_name: ->(admin) { "admin (#{admin.user.name})" }
# end
#
# @param [Hash] options Options for notifiable model configuration
# @option options [Symbol, Proc, String] :email (nil) Email address to send notification email
# @option options [Symbol, Proc, Boolean] :email_allowed (ActivityNotification.config.email_enabled) Whether activity_notification sends notification email to this target
# @option options [Symbol, Proc, Boolean] :batch_email_allowed (ActivityNotification.config.email_enabled) Whether activity_notification sends batch notification email to this target
# @option options [Symbol, Proc, Boolean] :subscription_allowed (ActivityNotification.config.subscription_enabled) Whether activity_notification manages subscriptions of this target
# @option options [Symbol, Proc, Boolean] :action_cable_allowed (ActivityNotification.config.action_cable_enabled) Whether activity_notification publishes WebSocket notifications using ActionCable to this target
# @option options [Symbol, Proc, Boolean] :action_cable_with_devise (false) Whether activity_notification publishes WebSocket notifications using ActionCable only to authenticated target with Devise
# @option options [Symbol, Proc, Object] :devise_resource (->(model) { model }) Integrated resource with devise authentication
# @option options [Symbol, Proc, Object] :current_devise_target (->(current_resource) { current_resource }) Current authenticated target by devise authentication
# @option options [Symbol, Proc, String] :printable_name (ActivityNotification::Common.printable_name) Printable notification target name
# @return [Hash] Configured parameters as target model
def acts_as_target(options = {})
include Target
options[:printable_notification_target_name] ||= options.delete(:printable_name)
options[:batch_notification_email_allowed] ||= options.delete(:batch_email_allowed)
acts_as_params = set_acts_as_parameters([:email, :email_allowed, :subscription_allowed, :action_cable_allowed, :action_cable_with_devise, :devise_resource, :current_devise_target], options, "notification_")
.merge set_acts_as_parameters([:batch_notification_email_allowed, :printable_notification_target_name], options)
include Subscriber if subscription_enabled?
acts_as_params
end
alias_method :acts_as_notification_target, :acts_as_target
# Returns array of available target options in acts_as_target.
# @return [Array<Symbol>] Array of available target options
def available_target_options
[:email, :email_allowed, :batch_email_allowed, :subscription_allowed, :action_cable_enabled, :action_cable_with_devise, :devise_resource, :printable_notification_target_name, :printable_name].freeze
end
end
end
end
| {
"pile_set_name": "Github"
} |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (C) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Nicola Baldo <nbaldo@cttc.es>
* Michele Polese <michele.polese@gmail.com> for the OutdoorPositionAllocator class
*/
#ifndef BUILDING_POSITION_ALLOCATOR_H
#define BUILDING_POSITION_ALLOCATOR_H
#include <ns3/ptr.h>
#include <ns3/position-allocator.h>
#include <ns3/node-container.h>
#include "ns3/random-variable-stream.h"
namespace ns3 {
class Building;
class UniformRandomVariable;
/**
* Allocate each position by randomly choosing a building from the list
* of all buildings, and then randomly choosing a position inside the building.
*
*/
class RandomBuildingPositionAllocator : public PositionAllocator
{
public:
RandomBuildingPositionAllocator ();
// inherited from Object
static TypeId GetTypeId (void);
// inherited from PositionAllocator
virtual Vector GetNext (void) const;
/**
* Assign a fixed random variable stream number to the random variables
* used by this model. Return the number of streams (possibly zero) that
* have been assigned.
*
* \param stream first stream index to use
* \return the number of stream indices assigned by this model
*/
int64_t AssignStreams (int64_t stream);
private:
bool m_withReplacement;
mutable std::vector< Ptr<Building> > m_buildingListWithoutReplacement;
/// Provides uniform random variables.
Ptr<UniformRandomVariable> m_rand;
};
/**
* \ingroup buildings
* \brief allocate outdoor positions
*
* Allocate positions outside of existing buildings using rejection sampling.
* This class extracts a random position in a box defined by the three
* RandomVariableStreams for the X, Y and Z dimensions (similarly to
* RandomBoxPositionAllocator), until a position is found that is outdoors
* with respect to all of the buildings in the scenario, or a maximum number
* of attempts is reached. The RandomVariableStream and the maximum number
* of attempts can be set using attributes. If the maximum number of
* attempts is reached, then the simulation aborts due to failure of properly
* positioning the node.
*/
class OutdoorPositionAllocator : public PositionAllocator
{
public:
OutdoorPositionAllocator ();
// inherited from Object
static TypeId GetTypeId (void);
// inherited from PositionAllocator
virtual Vector GetNext (void) const;
/**
* \brief Set the random variable stream object that generates x-positions
* \param x pointer to a RandomVariableStream object
*/
void SetX (Ptr<RandomVariableStream> x);
/**
* \brief Set the random variable stream object that generates y-positions
* \param y pointer to a RandomVariableStream object
*/
void SetY (Ptr<RandomVariableStream> y);
/**
* \brief Set the random variable stream object that generates z-positions
* \param z pointer to a RandomVariableStream object
*/
void SetZ (Ptr<RandomVariableStream> z);
/**
* Assign a fixed random variable stream number to the random variables
* used by this model. Return the number of streams (possibly zero) that
* have been assigned.
*
* \param stream first stream index to use
* \return the number of stream indices assigned by this model
*/
int64_t AssignStreams (int64_t stream);
private:
Ptr<RandomVariableStream> m_x; //!< pointer to x's random variable stream
Ptr<RandomVariableStream> m_y; //!< pointer to y's random variable stream
Ptr<RandomVariableStream> m_z; //!< pointer to z's random variable stream
uint32_t m_maxAttempts; //!< maximum number of attempts before giving up
};
/**
* Allocate each position by randomly choosing a room from the list
* of all buildings, and then randomly choosing a position inside the room.
* The selection of the room is always done without replacement.
*
*/
class RandomRoomPositionAllocator : public PositionAllocator
{
public:
RandomRoomPositionAllocator ();
// inherited from Object
static TypeId GetTypeId (void);
// inherited from PositionAllocator
virtual Vector GetNext (void) const;
/**
* Assign a fixed random variable stream number to the random variables
* used by this model. Return the number of streams (possibly zero) that
* have been assigned.
*
* \param stream first stream index to use
* \return the number of stream indices assigned by this model
*/
int64_t AssignStreams (int64_t stream);
private:
struct RoomInfo
{
Ptr<Building> b;
uint32_t roomx;
uint32_t roomy;
uint32_t floor;
};
mutable std::vector<RoomInfo> m_roomListWithoutReplacement;
/// Provides uniform random variables.
Ptr<UniformRandomVariable> m_rand;
};
/**
* Walks a given NodeContainer sequentially, and for each node allocate a new
* position randomly in the same room of that node
*
*/
class SameRoomPositionAllocator : public PositionAllocator
{
public:
SameRoomPositionAllocator ();
SameRoomPositionAllocator (NodeContainer c);
// inherited from Object
static TypeId GetTypeId (void);
// inherited from PositionAllocator
virtual Vector GetNext (void) const;
/**
* Assign a fixed random variable stream number to the random variables
* used by this model. Return the number of streams (possibly zero) that
* have been assigned.
*
* \param stream first stream index to use
* \return the number of stream indices assigned by this model
*/
int64_t AssignStreams (int64_t);
private:
NodeContainer m_nodes;
mutable NodeContainer::Iterator m_nodeIt;
/// Provides uniform random variables.
Ptr<UniformRandomVariable> m_rand;
};
/**
* Generate a random position uniformly distributed in the volume of a
* chosen room inside a chosen building.
*/
class FixedRoomPositionAllocator : public PositionAllocator
{
public:
/**
*
*
* \param x index of the room on the x-axis
* \param y index of the room on the y-axis
* \param z index of the room on the z-axis (i.e., floor number)
* \param b pointer to the chosen building
*
*/
FixedRoomPositionAllocator (uint32_t x,
uint32_t y,
uint32_t z,
Ptr<Building> b);
// inherited from Object
static TypeId GetTypeId (void);
// inherited from PositionAllocator
virtual Vector GetNext (void) const;
/**
* Assign a fixed random variable stream number to the random variables
* used by this model. Return the number of streams (possibly zero) that
* have been assigned.
*
* \param stream first stream index to use
* \return the number of stream indices assigned by this model
*/
int64_t AssignStreams (int64_t);
private:
uint32_t roomx;
uint32_t roomy;
uint32_t floor;
Ptr<Building> bptr;
/// Provides uniform random variables.
Ptr<UniformRandomVariable> m_rand;
};
} // namespace ns3
#endif /* BUILDING_POSITION_ALLOCATOR_H */
| {
"pile_set_name": "Github"
} |
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access Layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include <stdint.h>
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0, psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp, r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the current value of the MSP (main stack pointer)
* Cortex processor register
*/
__ASM uint32_t __get_MSP(void)
{
mrs r0, msp
bx lr
}
/**
* @brief Set the Main Stack Pointer
*
* @param topOfMainStack Main Stack Pointer
*
* Assign the value mainStackPointer to the MSP
* (main stack pointer) Cortex processor register
*/
__ASM void __set_MSP(uint32_t mainStackPointer)
{
msr msp, r0
bx lr
}
/**
* @brief Reverse byte order in unsigned short value
*
* @param value value to reverse
* @return reversed value
*
* Reverse byte order in unsigned short value
*/
__ASM uint32_t __REV16(uint16_t value)
{
rev16 r0, r0
bx lr
}
/**
* @brief Reverse byte order in signed short value with sign extension to integer
*
* @param value value to reverse
* @return reversed value
*
* Reverse byte order in signed short value with sign extension to integer
*/
__ASM int32_t __REVSH(int16_t value)
{
revsh r0, r0
bx lr
}
#if (__ARMCC_VERSION < 400000)
/**
* @brief Remove the exclusive lock created by ldrex
*
* Removes the exclusive lock which is created by ldrex.
*/
__ASM void __CLREX(void)
{
clrex
}
/**
* @brief Return the Base Priority value
*
* @return BasePriority
*
* Return the content of the base priority register
*/
__ASM uint32_t __get_BASEPRI(void)
{
mrs r0, basepri
bx lr
}
/**
* @brief Set the Base Priority value
*
* @param basePri BasePriority
*
* Set the base priority register
*/
__ASM void __set_BASEPRI(uint32_t basePri)
{
msr basepri, r0
bx lr
}
/**
* @brief Return the Priority Mask value
*
* @return PriMask
*
* Return state of the priority mask bit from the priority mask register
*/
__ASM uint32_t __get_PRIMASK(void)
{
mrs r0, primask
bx lr
}
/**
* @brief Set the Priority Mask value
*
* @param priMask PriMask
*
* Set the priority mask bit in the priority mask register
*/
__ASM void __set_PRIMASK(uint32_t priMask)
{
msr primask, r0
bx lr
}
/**
* @brief Return the Fault Mask value
*
* @return FaultMask
*
* Return the content of the fault mask register
*/
__ASM uint32_t __get_FAULTMASK(void)
{
mrs r0, faultmask
bx lr
}
/**
* @brief Set the Fault Mask value
*
* @param faultMask faultMask value
*
* Set the fault mask register
*/
__ASM void __set_FAULTMASK(uint32_t faultMask)
{
msr faultmask, r0
bx lr
}
/**
* @brief Return the Control Register value
*
* @return Control value
*
* Return the content of the control register
*/
__ASM uint32_t __get_CONTROL(void)
{
mrs r0, control
bx lr
}
/**
* @brief Set the Control Register value
*
* @param control Control value
*
* Set the control register
*/
__ASM void __set_CONTROL(uint32_t control)
{
msr control, r0
bx lr
}
#endif /* __ARMCC_VERSION */
#elif (defined (__ICCARM__)) /*------------------ ICC Compiler -------------------*/
/* IAR iccarm specific functions */
#pragma diag_suppress=Pe940
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
uint32_t __get_PSP(void)
{
__ASM("mrs r0, psp");
__ASM("bx lr");
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
void __set_PSP(uint32_t topOfProcStack)
{
__ASM("msr psp, r0");
__ASM("bx lr");
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the current value of the MSP (main stack pointer)
* Cortex processor register
*/
uint32_t __get_MSP(void)
{
__ASM("mrs r0, msp");
__ASM("bx lr");
}
/**
* @brief Set the Main Stack Pointer
*
* @param topOfMainStack Main Stack Pointer
*
* Assign the value mainStackPointer to the MSP
* (main stack pointer) Cortex processor register
*/
void __set_MSP(uint32_t topOfMainStack)
{
__ASM("msr msp, r0");
__ASM("bx lr");
}
/**
* @brief Reverse byte order in unsigned short value
*
* @param value value to reverse
* @return reversed value
*
* Reverse byte order in unsigned short value
*/
uint32_t __REV16(uint16_t value)
{
__ASM("rev16 r0, r0");
__ASM("bx lr");
}
/**
* @brief Reverse bit order of value
*
* @param value value to reverse
* @return reversed value
*
* Reverse bit order of value
*/
uint32_t __RBIT(uint32_t value)
{
__ASM("rbit r0, r0");
__ASM("bx lr");
}
/**
* @brief LDR Exclusive (8 bit)
*
* @param *addr address pointer
* @return value of (*address)
*
* Exclusive LDR command for 8 bit values)
*/
uint8_t __LDREXB(uint8_t *addr)
{
__ASM("ldrexb r0, [r0]");
__ASM("bx lr");
}
/**
* @brief LDR Exclusive (16 bit)
*
* @param *addr address pointer
* @return value of (*address)
*
* Exclusive LDR command for 16 bit values
*/
uint16_t __LDREXH(uint16_t *addr)
{
__ASM("ldrexh r0, [r0]");
__ASM("bx lr");
}
/**
* @brief LDR Exclusive (32 bit)
*
* @param *addr address pointer
* @return value of (*address)
*
* Exclusive LDR command for 32 bit values
*/
uint32_t __LDREXW(uint32_t *addr)
{
__ASM("ldrex r0, [r0]");
__ASM("bx lr");
}
/**
* @brief STR Exclusive (8 bit)
*
* @param value value to store
* @param *addr address pointer
* @return successful / failed
*
* Exclusive STR command for 8 bit values
*/
uint32_t __STREXB(uint8_t value, uint8_t *addr)
{
__ASM("strexb r0, r0, [r1]");
__ASM("bx lr");
}
/**
* @brief STR Exclusive (16 bit)
*
* @param value value to store
* @param *addr address pointer
* @return successful / failed
*
* Exclusive STR command for 16 bit values
*/
uint32_t __STREXH(uint16_t value, uint16_t *addr)
{
__ASM("strexh r0, r0, [r1]");
__ASM("bx lr");
}
/**
* @brief STR Exclusive (32 bit)
*
* @param value value to store
* @param *addr address pointer
* @return successful / failed
*
* Exclusive STR command for 32 bit values
*/
uint32_t __STREXW(uint32_t value, uint32_t *addr)
{
__ASM("strex r0, r0, [r1]");
__ASM("bx lr");
}
#pragma diag_default=Pe940
#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/
/* GNU gcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
uint32_t __get_PSP(void) __attribute__( ( naked ) );
uint32_t __get_PSP(void)
{
uint32_t result=0;
__ASM volatile ("MRS %0, psp\n\t"
"MOV r0, %0 \n\t"
"BX lr \n\t" : "=&r" (result) );
return(result);
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) );
void __set_PSP(uint32_t topOfProcStack)
{
__ASM volatile ("MSR psp, %0\n\t"
"BX lr \n\t" : : "r" (topOfProcStack) );
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the current value of the MSP (main stack pointer)
* Cortex processor register
*/
uint32_t __get_MSP(void) __attribute__( ( naked ) );
uint32_t __get_MSP(void)
{
uint32_t result=0;
__ASM volatile ("MRS %0, msp\n\t"
"MOV r0, %0 \n\t"
"BX lr \n\t" : "=&r" (result) );
return(result);
}
/**
* @brief Set the Main Stack Pointer
*
* @param topOfMainStack Main Stack Pointer
*
* Assign the value mainStackPointer to the MSP
* (main stack pointer) Cortex processor register
*/
void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) );
void __set_MSP(uint32_t topOfMainStack)
{
__ASM volatile ("MSR msp, %0\n\t"
"BX lr \n\t" : : "r" (topOfMainStack) );
}
/**
* @brief Return the Base Priority value
*
* @return BasePriority
*
* Return the content of the base priority register
*/
uint32_t __get_BASEPRI(void)
{
uint32_t result=0;
__ASM volatile ("MRS %0, basepri_max" : "=&r" (result) );
return(result);
}
/**
* @brief Set the Base Priority value
*
* @param basePri BasePriority
*
* Set the base priority register
*/
void __set_BASEPRI(uint32_t value)
{
__ASM volatile ("MSR basepri, %0" : : "r" (value) );
}
/**
* @brief Return the Priority Mask value
*
* @return PriMask
*
* Return state of the priority mask bit from the priority mask register
*/
uint32_t __get_PRIMASK(void)
{
uint32_t result=0;
__ASM volatile ("MRS %0, primask" : "=&r" (result) );
return(result);
}
/**
* @brief Set the Priority Mask value
*
* @param priMask PriMask
*
* Set the priority mask bit in the priority mask register
*/
void __set_PRIMASK(uint32_t priMask)
{
__ASM volatile ("MSR primask, %0" : : "r" (priMask) );
}
/**
* @brief Return the Fault Mask value
*
* @return FaultMask
*
* Return the content of the fault mask register
*/
uint32_t __get_FAULTMASK(void)
{
uint32_t result=0;
__ASM volatile ("MRS %0, faultmask" : "=&r" (result) );
return(result);
}
/**
* @brief Set the Fault Mask value
*
* @param faultMask faultMask value
*
* Set the fault mask register
*/
void __set_FAULTMASK(uint32_t faultMask)
{
__ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) );
}
/**
* @brief Return the Control Register value
*
* @return Control value
*
* Return the content of the control register
*/
uint32_t __get_CONTROL(void)
{
uint32_t result=0;
__ASM volatile ("MRS %0, control" : "=&r" (result) );
return(result);
}
/**
* @brief Set the Control Register value
*
* @param control Control value
*
* Set the control register
*/
void __set_CONTROL(uint32_t control)
{
__ASM volatile ("MSR control, %0" : : "r" (control) );
}
/**
* @brief Reverse byte order in integer value
*
* @param value value to reverse
* @return reversed value
*
* Reverse byte order in integer value
*/
uint32_t __REV(uint32_t value)
{
uint32_t result=0;
__ASM volatile ("rev %0, %1" : "=&r" (result) : "r" (value) );
return(result);
}
/**
* @brief Reverse byte order in unsigned short value
*
* @param value value to reverse
* @return reversed value
*
* Reverse byte order in unsigned short value
*/
uint32_t __REV16(uint16_t value)
{
uint32_t result=0;
__ASM volatile ("rev16 %0, %1" : "=&r" (result) : "r" (value) );
return(result);
}
/**
* @brief Reverse byte order in signed short value with sign extension to integer
*
* @param value value to reverse
* @return reversed value
*
* Reverse byte order in signed short value with sign extension to integer
*/
int32_t __REVSH(int16_t value)
{
uint32_t result=0;
__ASM volatile ("revsh %0, %1" : "=&r" (result) : "r" (value) );
return(result);
}
/**
* @brief Reverse bit order of value
*
* @param value value to reverse
* @return reversed value
*
* Reverse bit order of value
*/
uint32_t __RBIT(uint32_t value)
{
uint32_t result=0;
__ASM volatile ("rbit %0, %1" : "=&r" (result) : "r" (value) );
return(result);
}
/**
* @brief LDR Exclusive (8 bit)
*
* @param *addr address pointer
* @return value of (*address)
*
* Exclusive LDR command for 8 bit value
*/
uint8_t __LDREXB(uint8_t *addr)
{
uint8_t result=0;
__ASM volatile ("ldrexb %0, [%1]" : "=&r" (result) : "r" (addr) );
return(result);
}
/**
* @brief LDR Exclusive (16 bit)
*
* @param *addr address pointer
* @return value of (*address)
*
* Exclusive LDR command for 16 bit values
*/
uint16_t __LDREXH(uint16_t *addr)
{
uint16_t result=0;
__ASM volatile ("ldrexh %0, [%1]" : "=&r" (result) : "r" (addr) );
return(result);
}
/**
* @brief LDR Exclusive (32 bit)
*
* @param *addr address pointer
* @return value of (*address)
*
* Exclusive LDR command for 32 bit values
*/
uint32_t __LDREXW(uint32_t *addr)
{
uint32_t result=0;
__ASM volatile ("ldrex %0, [%1]" : "=&r" (result) : "r" (addr) );
return(result);
}
/**
* @brief STR Exclusive (8 bit)
*
* @param value value to store
* @param *addr address pointer
* @return successful / failed
*
* Exclusive STR command for 8 bit values
*/
uint32_t __STREXB(uint8_t value, uint8_t *addr)
{
uint32_t result=0;
__ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
return(result);
}
/**
* @brief STR Exclusive (16 bit)
*
* @param value value to store
* @param *addr address pointer
* @return successful / failed
*
* Exclusive STR command for 16 bit values
*/
uint32_t __STREXH(uint16_t value, uint16_t *addr)
{
uint32_t result=0;
__ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
return(result);
}
/**
* @brief STR Exclusive (32 bit)
*
* @param value value to store
* @param *addr address pointer
* @return successful / failed
*
* Exclusive STR command for 32 bit values
*/
uint32_t __STREXW(uint32_t value, uint32_t *addr)
{
uint32_t result=0;
__ASM volatile ("strex %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
return(result);
}
#elif (defined (__TASKING__)) /*------------------ TASKING Compiler ---------------------*/
/* TASKING carm specific functions */
/*
* The CMSIS functions have been implemented as intrinsics in the compiler.
* Please use "carm -?i" to get an up to date list of all instrinsics,
* Including the CMSIS ones.
*/
#endif
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<WeaponExtensionDef>
<weapon>saki</weapon>
<attackAngleOffset IsNull="True" />
<weaponPositionOffset>
<x>0.03773585</x>
<y>0</y>
<z>0.01257862</z>
</weaponPositionOffset>
<aimedWeaponPositionOffset>
<x>-0.006289308</x>
<y>0</y>
<z>0</z>
</aimedWeaponPositionOffset>
<firstHandPosition>
<x>0.01257862</x>
<y>0.005</y>
<z>0.2641509</z>
</firstHandPosition>
<secondHandPosition>
<x>0</x>
<y>0</y>
<z>0</z>
</secondHandPosition>
<defName>WeaponExtensionDef_saki</defName>
<label>WeaponExtensionDef_saki</label>
</WeaponExtensionDef>
</Defs> | {
"pile_set_name": "Github"
} |
//>>built
define(
//begin v1.x content
({
insertImageTitle: "Vložit obrázek",
url: "Obrázek",
browse: "Procházet...",
text: "Popis",
set: "Vložit",
invalidMessage: "Neplatný typ souboru obrázku",
prePopuTextUrl: "Zadejte adresu URL obrázku",
prePopuTextBrowse: " nebo vyhledejte lokální soubor."
})
//end v1.x content
);
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. 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.
*
* 3. Neither the name of the copyright holder 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 HOLDER 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.
*/
struct test {
union field {
int b;
long c;
} a;
char chars[4];
};
int main() {
struct test t = {.a.c = -1 };
return 1 + t.a.b + t.chars[0] + t.chars[1] + t.chars[2] + t.chars[3];
}
| {
"pile_set_name": "Github"
} |
<div>
Valores associados a variáveis. Valores múltiplos estão separados por espaço em branco ou nova linha.
</div> | {
"pile_set_name": "Github"
} |
/*
Copyright 2018 Makoto Consulting Group, 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.
*/
const {describe, it} = require('mocha');
const {expect} = require('chai');
const sinon = require('sinon');
describe('When spying on console.log()', function() {
it('console.log() should still be called', function() {
let consoleLogSpy = sinon.spy(console, 'log');
let message = 'You will see this line of output in the test report';
console.log(message);
expect(consoleLogSpy.calledWith(message)).to.be.true;
consoleLogSpy.restore();
});
});
| {
"pile_set_name": "Github"
} |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/simple_tensor_allocator.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/testing/test_utils.h"
namespace tflite {
namespace testing {
namespace {
void TestLogicalOp(tflite::BuiltinOperator op,
std::initializer_list<int> input1_dims_data,
std::initializer_list<bool> input1_data,
std::initializer_list<int> input2_dims_data,
std::initializer_list<bool> input2_data,
std::initializer_list<int> output_dims_data,
std::initializer_list<bool> expected_output_data,
bool* output_data) {
TfLiteIntArray* input1_dims = IntArrayFromInitializer(input1_dims_data);
TfLiteIntArray* input2_dims = IntArrayFromInitializer(input2_dims_data);
TfLiteIntArray* output_dims = IntArrayFromInitializer(output_dims_data);
const int output_dims_count = ElementCount(*output_dims);
constexpr int inputs_size = 2;
constexpr int outputs_size = 1;
constexpr int tensors_size = inputs_size + outputs_size;
TfLiteTensor tensors[tensors_size] = {
CreateBoolTensor(input1_data, input1_dims, "input1_tensor"),
CreateBoolTensor(input2_data, input2_dims, "input2_tensor"),
CreateBoolTensor(output_data, output_dims, "output_tensor"),
};
TfLiteContext context;
PopulateContext(tensors, tensors_size, &context);
::tflite::ops::micro::AllOpsResolver resolver;
const TfLiteRegistration* registration = resolver.FindOp(op, 1);
TF_LITE_MICRO_EXPECT_NE(nullptr, registration);
TfLiteIntArray* inputs_array = IntArrayFromInitializer({2, 0, 1});
TfLiteIntArray* outputs_array = IntArrayFromInitializer({1, 2});
TfLiteIntArray* temporaries_array = IntArrayFromInitializer({0});
TfLiteNode node;
node.inputs = inputs_array;
node.outputs = outputs_array;
node.temporaries = temporaries_array;
node.user_data = nullptr;
node.builtin_data = nullptr;
node.custom_initial_data = nullptr;
node.custom_initial_data_size = 0;
node.delegate = nullptr;
if (registration->prepare) {
TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(&context, &node));
}
TF_LITE_MICRO_EXPECT_NE(nullptr, registration->invoke);
TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(&context, &node));
TF_LITE_MICRO_EXPECT_EQ(output_dims_count, 4);
for (int i = 0; i < output_dims_count; ++i) {
TF_LITE_MICRO_EXPECT_EQ(expected_output_data.begin()[i], output_data[i]);
}
}
} // namespace
} // namespace testing
} // namespace tflite
TF_LITE_MICRO_TESTS_BEGIN
TF_LITE_MICRO_TEST(LogicalOr) {
bool output_data[4];
tflite::testing::TestLogicalOp(
tflite::BuiltinOperator_LOGICAL_OR, // operator
{4, 1, 1, 1, 4}, {true, false, false, true}, // input1
{4, 1, 1, 1, 4}, {true, false, true, false}, // input2
{4, 1, 1, 1, 4}, {true, false, true, true}, // expected output
output_data);
}
TF_LITE_MICRO_TEST(BroadcastLogicalOr) {
bool output_data[4];
tflite::testing::TestLogicalOp(
tflite::BuiltinOperator_LOGICAL_OR, // operator
{4, 1, 1, 1, 4}, {true, false, false, true}, // input1
{4, 1, 1, 1, 1}, {false}, // input2
{4, 1, 1, 1, 4}, {true, false, false, true}, // expected output
output_data);
}
TF_LITE_MICRO_TEST(LogicalAnd) {
bool output_data[4];
tflite::testing::TestLogicalOp(
tflite::BuiltinOperator_LOGICAL_AND, // operator
{4, 1, 1, 1, 4}, {true, false, false, true}, // input1
{4, 1, 1, 1, 4}, {true, false, true, false}, // input2
{4, 1, 1, 1, 4}, {true, false, false, false}, // expected output
output_data);
}
TF_LITE_MICRO_TEST(BroadcastLogicalAnd) {
bool output_data[4];
tflite::testing::TestLogicalOp(
tflite::BuiltinOperator_LOGICAL_AND, // operator
{4, 1, 1, 1, 4}, {true, false, false, true}, // input1
{4, 1, 1, 1, 1}, {true}, // input2
{4, 1, 1, 1, 4}, {true, false, false, true}, // expected output
output_data);
}
TF_LITE_MICRO_TESTS_END
| {
"pile_set_name": "Github"
} |
rule m2318_61b4b408d9bb0912
{
meta:
copyright="Copyright (c) 2014-2018 Support Intelligence Inc, All Rights Reserved."
engine="saphire/1.3.1 divinorum/0.998 icewater/0.4"
viz_url="http://icewater.io/en/cluster/query?h64=m2318.61b4b408d9bb0912"
cluster="m2318.61b4b408d9bb0912"
cluster_size="87"
filetype = "text/html"
tlp = "amber"
version = "icewater snowflake"
author = "Rick Wesson (@wessorh) rick@support-intelligence.com"
date = "20171118"
license = "RIL-1.0 [Rick's Internet License] "
family="ramnit html script"
md5_hashes="['0d8fbeddab9615b757a0a0f6c7641336','11d51af847b16de446f4d4b53bca415c','3b4c2bafcaa17fa6b01266d913d7742d']"
strings:
$hex_string = { 687228434c6e6728222648222026204d6964285772697465446174612c692c322929290d0a4e6578740d0a46696c654f626a2e436c6f73650d0a456e64204966 }
condition:
filesize > 65536 and filesize < 262144
and $hex_string
}
| {
"pile_set_name": "Github"
} |
'use strict';
var SchemaType = require('./schematype');
var Types = require('./types');
var Promise = require('bluebird');
var util = require('./util');
var PopulationError = require('./error/population');
var isPlainObject = require('is-plain-object');
var getProp = util.getProp;
var setProp = util.setProp;
var delProp = util.delProp;
var isArray = Array.isArray;
var builtinTypes = {
String: true,
Number: true,
Boolean: true,
Array: true,
Object: true,
Date: true,
Buffer: true
};
/**
* Schema constructor.
*
* @class
* @param {Object} schema
*/
function Schema(schema) {
this.paths = {};
this.statics = {};
this.methods = {};
this.hooks = {
pre: {
save: [],
remove: []
},
post: {
save: [],
remove: []
}
};
this.stacks = {
getter: [],
setter: [],
import: [],
export: []
};
if (schema) {
this.add(schema);
}
}
/**
* Adds paths.
*
* @param {Object} schema
* @param {String} prefix
*/
Schema.prototype.add = function(schema, prefix_) {
var prefix = prefix_ || '';
var keys = Object.keys(schema);
var len = keys.length;
var key, value;
if (!len) return;
for (var i = 0; i < len; i++) {
key = keys[i];
value = schema[key];
this.path(prefix + key, value);
}
};
function getSchemaType(name, options) {
var Type = options.type || options;
var typeName = Type.name;
if (builtinTypes[typeName]) {
return new Types[typeName](name, options);
}
return new Type(name, options);
}
/**
* Gets/Sets a path.
*
* @param {String} name
* @param {*} obj
* @return {SchemaType}
*/
Schema.prototype.path = function(name, obj) {
if (obj == null) {
return this.paths[name];
}
var type;
var nested = false;
if (obj instanceof SchemaType) {
type = obj;
} else {
switch (typeof obj){
case 'function':
type = getSchemaType(name, {type: obj});
break;
case 'object':
if (obj.type) {
type = getSchemaType(name, obj);
} else if (isArray(obj)) {
type = new Types.Array(name, {
child: obj.length ? getSchemaType(name, obj[0]) : new SchemaType(name)
});
} else {
type = new Types.Object();
nested = Object.keys(obj).length > 0;
}
break;
default:
throw new TypeError('Invalid value for schema path `' + name + '`');
}
}
this.paths[name] = type;
this._updateStack(name, type);
if (nested) this.add(obj, name + '.');
};
/**
* Updates cache stacks.
*
* @param {String} name
* @param {SchemaType} type
* @private
*/
Schema.prototype._updateStack = function(name, type) {
var stacks = this.stacks;
stacks.getter.push(function(data) {
var value = getProp(data, name);
var result = type.cast(value, data);
if (result !== undefined) {
setProp(data, name, result);
}
});
stacks.setter.push(function(data) {
var value = getProp(data, name);
var result = type.validate(value, data);
if (result !== undefined) {
setProp(data, name, result);
} else {
delProp(data, name);
}
});
stacks.import.push(function(data) {
var value = getProp(data, name);
var result = type.parse(value, data);
if (result !== undefined) {
setProp(data, name, result);
}
});
stacks.export.push(function(data) {
var value = getProp(data, name);
var result = type.value(value, data);
if (result !== undefined) {
setProp(data, name, result);
} else {
delProp(data, name);
}
});
};
/**
* Adds a virtual path.
*
* @param {String} name
* @param {Function} [getter]
* @return {SchemaType.Virtual}
*/
Schema.prototype.virtual = function(name, getter) {
var virtual = new Types.Virtual(name, {});
if (getter) virtual.get(getter);
this.path(name, virtual);
return virtual;
};
function checkHookType(type) {
if (type !== 'save' && type !== 'remove') {
throw new TypeError('Hook type must be `save` or `remove`!');
}
}
function hookWrapper(fn) {
if (fn.length > 1) {
return Promise.promisify(fn);
}
return Promise.method(fn);
}
/**
* Adds a pre-hook.
*
* @param {String} type Hook type. One of `save` or `remove`.
* @param {Function} fn
*/
Schema.prototype.pre = function(type, fn) {
checkHookType(type);
if (typeof fn !== 'function') throw new TypeError('Hook must be a function!');
this.hooks.pre[type].push(hookWrapper(fn));
};
/**
* Adds a post-hook.
*
* @param {String} type Hook type. One of `save` or `remove`.
* @param {Function} fn
*/
Schema.prototype.post = function(type, fn) {
checkHookType(type);
if (typeof fn !== 'function') throw new TypeError('Hook must be a function!');
this.hooks.post[type].push(hookWrapper(fn));
};
/**
* Adds a instance method.
*
* @param {String} name
* @param {Function} fn
*/
Schema.prototype.method = function(name, fn) {
if (!name) throw new TypeError('Method name is required!');
if (typeof fn !== 'function') {
throw new TypeError('Instance method must be a function!');
}
this.methods[name] = fn;
};
/**
* Adds a static method.
*
* @param {String} name
* @param {Function} fn
*/
Schema.prototype.static = function(name, fn) {
if (!name) throw new TypeError('Method name is required!');
if (typeof fn !== 'function') {
throw new TypeError('Static method must be a function!');
}
this.statics[name] = fn;
};
/**
* Apply getters.
*
* @param {Object} data
* @return {*}
* @private
*/
Schema.prototype._applyGetters = function(data) {
var stack = this.stacks.getter;
for (var i = 0, len = stack.length; i < len; i++) {
stack[i](data);
}
};
/**
* Apply setters.
*
* @param {Object} data
* @return {*}
* @private
*/
Schema.prototype._applySetters = function(data) {
var stack = this.stacks.setter;
for (var i = 0, len = stack.length; i < len; i++) {
stack[i](data);
}
};
/**
* Parses database.
*
* @param {Object} data
* @return {Object}
* @private
*/
Schema.prototype._parseDatabase = function(data) {
var stack = this.stacks.import;
for (var i = 0, len = stack.length; i < len; i++) {
stack[i](data);
}
return data;
};
/**
* Exports database.
*
* @param {Object} data
* @return {Object}
* @private
*/
Schema.prototype._exportDatabase = function(data) {
var stack = this.stacks.export;
for (var i = 0, len = stack.length; i < len; i++) {
stack[i](data);
}
return data;
};
function updateStackNormal(key, update) {
return function(data) {
setProp(data, key, update);
};
}
function updateStackOperator(path_, ukey, key, update) {
var path = path_ || new SchemaType(key);
return function(data) {
var result = path[ukey](getProp(data, key), update, data);
setProp(data, key, result);
};
}
/**
* Parses updating expressions and returns a stack.
*
* @param {Object} updates
* @param {String} [prefix]
* @return {Array}
* @private
*/
Schema.prototype._parseUpdate = function(updates, prefix_) {
var prefix = prefix_ || '';
var paths = this.paths;
var stack = [];
var keys = Object.keys(updates);
var key, update, ukey, name, path, fields, field, j, fieldLen, prefixNoDot;
if (prefix) {
prefixNoDot = prefix.substring(0, prefix.length - 1);
path = paths[prefixNoDot];
}
for (var i = 0, len = keys.length; i < len; i++) {
key = keys[i];
update = updates[key];
name = prefix + key;
// Update operators
if (key[0] === '$') {
ukey = 'u' + key;
// First-class update operators
if (prefix) {
stack.push(updateStackOperator(path, ukey, prefixNoDot, update));
} else { // Inline update operators
fields = Object.keys(update);
fieldLen = fields.length;
for (j = 0; j < fieldLen; j++) {
field = fields[i];
stack.push(
updateStackOperator(paths[field], ukey, field, update[field]));
}
}
} else if (isPlainObject(update)) {
stack = stack.concat(this._parseUpdate(update, name + '.'));
} else {
stack.push(updateStackNormal(name, update));
}
}
return stack;
};
function queryStackNormal(path_, key, query) {
var path = path_ || new SchemaType(key);
return function(data) {
return path.match(getProp(data, key), query, data);
};
}
function queryStackOperator(path_, qkey, key, query) {
var path = path_ || new SchemaType(key);
return function(data) {
return path[qkey](getProp(data, key), query, data);
};
}
function execQueryStack(stack) {
var len = stack.length;
var i;
return function(data) {
for (i = 0; i < len; i++) {
if (!stack[i](data)) return false;
}
return true;
};
}
function $or(stack) {
var len = stack.length;
var i;
return function(data) {
for (i = 0; i < len; i++) {
if (stack[i](data)) return true;
}
return false;
};
}
function $nor(stack) {
var len = stack.length;
var i;
return function(data) {
for (i = 0; i < len; i++) {
if (stack[i](data)) return false;
}
return true;
};
}
function $not(stack) {
var fn = execQueryStack(stack);
return function(data) {
return !fn(data);
};
}
function $where(fn) {
return function(data) {
return fn.call(data);
};
}
/**
* Parses array of query expressions and returns a stack.
*
* @param {Array} arr
* @return {Array}
* @private
*/
Schema.prototype._parseQueryArray = function(arr) {
var stack = [];
for (var i = 0, len = arr.length; i < len; i++) {
stack.push(execQueryStack(this._parseQuery(arr[i])));
}
return stack;
};
/**
* Parses normal query expressions and returns a stack.
*
* @param {Array} queries
* @param {String} [prefix]
* @return {Array}
* @private
*/
Schema.prototype._parseNormalQuery = function(queries, prefix_) {
var prefix = prefix_ || '';
var paths = this.paths;
var stack = [];
var keys = Object.keys(queries);
var key, query, name, path, prefixNoDot;
if (prefix) {
prefixNoDot = prefix.substring(0, prefix.length - 1);
path = paths[prefixNoDot];
}
for (var i = 0, len = keys.length; i < len; i++) {
key = keys[i];
query = queries[key];
name = prefix + key;
if (key[0] === '$') {
stack.push(queryStackOperator(path, 'q' + key, prefixNoDot, query));
} else if (isPlainObject(query)) {
stack = stack.concat(this._parseNormalQuery(query, name + '.'));
} else {
stack.push(queryStackNormal(paths[name], name, query));
}
}
return stack;
};
/**
* Parses query expressions and returns a stack.
*
* @param {Array} queries
* @return {Array}
* @private
*/
Schema.prototype._parseQuery = function(queries) {
var stack = [];
var paths = this.paths;
var keys = Object.keys(queries);
var key, query;
for (var i = 0, len = keys.length; i < len; i++) {
key = keys[i];
query = queries[key];
switch (key){
case '$and':
stack = stack.concat(this._parseQueryArray(query));
break;
case '$or':
stack.push($or(this._parseQueryArray(query)));
break;
case '$nor':
stack.push($nor(this._parseQueryArray(query)));
break;
case '$not':
stack.push($not(this._parseQuery(query)));
break;
case '$where':
stack.push($where(query));
break;
default:
if (isPlainObject(query)) {
stack = stack.concat(this._parseNormalQuery(query, key + '.'));
} else {
stack.push(queryStackNormal(paths[key], key, query));
}
}
}
return stack;
};
/**
* Returns a function for querying.
*
* @param {Object} query
* @return {Function}
* @private
*/
Schema.prototype._execQuery = function(query) {
var stack = this._parseQuery(query);
return execQueryStack(stack);
};
function execSortStack(stack) {
var len = stack.length;
var i;
return function(a, b) {
var result;
for (i = 0; i < len; i++) {
result = stack[i](a, b);
if (result) break;
}
return result;
};
}
function sortStack(path_, key, sort) {
var path = path_ || new SchemaType(key);
var descending = sort === 'desc' || sort === -1;
return function(a, b) {
var result = path.compare(getProp(a, key), getProp(b, key));
return descending && result ? result * -1 : result;
};
}
/**
* Parses sorting expressions and returns a stack.
*
* @param {Object} sorts
* @param {String} [prefix]
* @return {Array}
* @private
*/
Schema.prototype._parseSort = function(sorts, prefix_) {
var prefix = prefix_ || '';
var paths = this.paths;
var stack = [];
var keys = Object.keys(sorts);
var key, sort, name;
for (var i = 0, len = keys.length; i < len; i++) {
key = keys[i];
sort = sorts[key];
name = prefix + key;
if (typeof sort === 'object') {
stack = stack.concat(this._parseSort(sort, name + '.'));
} else {
stack.push(sortStack(paths[name], name, sort));
}
}
return stack;
};
/**
* Returns a function for sorting.
*
* @param {Object} sorts
* @return {Function}
* @private
*/
Schema.prototype._execSort = function(sorts) {
var stack = this._parseSort(sorts);
return execSortStack(stack);
};
/**
* Parses population expression and returns a stack.
*
* @param {String|Object} expr
* @return {Array}
* @private
*/
Schema.prototype._parsePopulate = function(expr) {
var paths = this.paths;
var arr, i, len, item, path, key, ref;
if (typeof expr === 'string') {
var split = expr.split(' ');
arr = [];
for (i = 0, len = split.length; i < len; i++) {
arr.push({
path: split[i]
});
}
} else if (isArray(expr)) {
for (i = 0, len = expr.length; i < len; i++) {
item = expr[i];
if (typeof item === 'string') {
arr.push({
path: item
});
} else {
arr.push(item);
}
}
} else {
arr = [expr];
}
for (i = 0, len = arr.length; i < len; i++) {
item = arr[i];
key = item.path;
if (!key) {
throw new PopulationError('path is required');
}
if (!item.model) {
path = paths[key];
ref = path.child ? path.child.options.ref : path.options.ref;
if (ref) {
item.model = ref;
} else {
throw new PopulationError('model is required');
}
}
}
return arr;
};
Schema.Types = Schema.prototype.Types = Types;
module.exports = Schema;
| {
"pile_set_name": "Github"
} |
/* No comment provided by engineer. */
"CFBundleDisplayName" = "MunkiStatus";
/* Localized versions of Info.plist keys */
"CFBundleName" = "MunkiStatus";
| {
"pile_set_name": "Github"
} |
#import <Foundation/Foundation.h>
/**
* Welcome to Cocoa Lumberjack!
*
* The project page has a wealth of documentation if you have any questions.
* https://github.com/robbiehanson/CocoaLumberjack
*
* If you're new to the project you may wish to read the "Getting Started" wiki.
* https://github.com/robbiehanson/CocoaLumberjack/wiki/GettingStarted
*
* Otherwise, here is a quick refresher.
* There are three steps to using the macros:
*
* Step 1:
* Import the header in your implementation file:
*
* #import "DDLog.h"
*
* Step 2:
* Define your logging level in your implementation file:
*
* // Log levels: off, error, warn, info, verbose
* static const int ddLogLevel = LOG_LEVEL_VERBOSE;
*
* Step 3:
* Replace your NSLog statements with DDLog statements according to the severity of the message.
*
* NSLog(@"Fatal error, no dohickey found!"); -> DDLogError(@"Fatal error, no dohickey found!");
*
* DDLog works exactly the same as NSLog.
* This means you can pass it multiple variables just like NSLog.
**/
@class DDLogMessage;
@protocol DDLogger;
@protocol DDLogFormatter;
/**
* This is the single macro that all other macros below compile into.
* This big multiline macro makes all the other macros easier to read.
**/
#define LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
[DDLog log:isAsynchronous \
level:lvl \
flag:flg \
context:ctx \
file:__FILE__ \
function:fnct \
line:__LINE__ \
tag:atag \
format:(frmt), ##__VA_ARGS__]
/**
* Define the Objective-C and C versions of the macro.
* These automatically inject the proper function name for either an objective-c method or c function.
*
* We also define shorthand versions for asynchronous and synchronous logging.
**/
#define LOG_OBJC_MACRO(async, lvl, flg, ctx, frmt, ...) \
LOG_MACRO(async, lvl, flg, ctx, nil, sel_getName(_cmd), frmt, ##__VA_ARGS__)
#define LOG_C_MACRO(async, lvl, flg, ctx, frmt, ...) \
LOG_MACRO(async, lvl, flg, ctx, nil, __FUNCTION__, frmt, ##__VA_ARGS__)
#define SYNC_LOG_OBJC_MACRO(lvl, flg, ctx, frmt, ...) \
LOG_OBJC_MACRO( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
#define ASYNC_LOG_OBJC_MACRO(lvl, flg, ctx, frmt, ...) \
LOG_OBJC_MACRO(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
#define SYNC_LOG_C_MACRO(lvl, flg, ctx, frmt, ...) \
LOG_C_MACRO( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
#define ASYNC_LOG_C_MACRO(lvl, flg, ctx, frmt, ...) \
LOG_C_MACRO(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
/**
* Define version of the macro that only execute if the logLevel is above the threshold.
* The compiled versions essentially look like this:
*
* if (logFlagForThisLogMsg & ddLogLevel) { execute log message }
*
* As shown further below, Lumberjack actually uses a bitmask as opposed to primitive log levels.
* This allows for a great amount of flexibility and some pretty advanced fine grained logging techniques.
*
* Note that when compiler optimizations are enabled (as they are for your release builds),
* the log messages above your logging threshold will automatically be compiled out.
*
* (If the compiler sees ddLogLevel declared as a constant, the compiler simply checks to see if the 'if' statement
* would execute, and if not it strips it from the binary.)
*
* We also define shorthand versions for asynchronous and synchronous logging.
**/
#define LOG_MAYBE(async, lvl, flg, ctx, fnct, frmt, ...) \
do { if(lvl & flg) LOG_MACRO(async, lvl, flg, ctx, nil, fnct, frmt, ##__VA_ARGS__); } while(0)
#define LOG_OBJC_MAYBE(async, lvl, flg, ctx, frmt, ...) \
LOG_MAYBE(async, lvl, flg, ctx, sel_getName(_cmd), frmt, ##__VA_ARGS__)
#define LOG_C_MAYBE(async, lvl, flg, ctx, frmt, ...) \
LOG_MAYBE(async, lvl, flg, ctx, __FUNCTION__, frmt, ##__VA_ARGS__)
#define SYNC_LOG_OBJC_MAYBE(lvl, flg, ctx, frmt, ...) \
LOG_OBJC_MAYBE( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
#define ASYNC_LOG_OBJC_MAYBE(lvl, flg, ctx, frmt, ...) \
LOG_OBJC_MAYBE(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
#define SYNC_LOG_C_MAYBE(lvl, flg, ctx, frmt, ...) \
LOG_C_MAYBE( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
#define ASYNC_LOG_C_MAYBE(lvl, flg, ctx, frmt, ...) \
LOG_C_MAYBE(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
/**
* Define versions of the macros that also accept tags.
*
* The DDLogMessage object includes a 'tag' ivar that may be used for a variety of purposes.
* It may be used to pass custom information to loggers or formatters.
* Or it may be used by 3rd party extensions to the framework.
*
* Thes macros just make it a little easier to extend logging functionality.
**/
#define LOG_OBJC_TAG_MACRO(async, lvl, flg, ctx, tag, frmt, ...) \
LOG_MACRO(async, lvl, flg, ctx, tag, sel_getName(_cmd), frmt, ##__VA_ARGS__)
#define LOG_C_TAG_MACRO(async, lvl, flg, ctx, tag, frmt, ...) \
LOG_MACRO(async, lvl, flg, ctx, tag, __FUNCTION__, frmt, ##__VA_ARGS__)
#define LOG_TAG_MAYBE(async, lvl, flg, ctx, tag, fnct, frmt, ...) \
do { if(lvl & flg) LOG_MACRO(async, lvl, flg, ctx, tag, fnct, frmt, ##__VA_ARGS__); } while(0)
#define LOG_OBJC_TAG_MAYBE(async, lvl, flg, ctx, tag, frmt, ...) \
LOG_TAG_MAYBE(async, lvl, flg, ctx, tag, sel_getName(_cmd), frmt, ##__VA_ARGS__)
#define LOG_C_TAG_MAYBE(async, lvl, flg, ctx, tag, frmt, ...) \
LOG_TAG_MAYBE(async, lvl, flg, ctx, tag, __FUNCTION__, frmt, ##__VA_ARGS__)
/**
* Define the standard options.
*
* We default to only 4 levels because it makes it easier for beginners
* to make the transition to a logging framework.
*
* More advanced users may choose to completely customize the levels (and level names) to suite their needs.
* For more information on this see the "Custom Log Levels" page:
* https://github.com/robbiehanson/CocoaLumberjack/wiki/CustomLogLevels
*
* Advanced users may also notice that we're using a bitmask.
* This is to allow for custom fine grained logging:
* https://github.com/robbiehanson/CocoaLumberjack/wiki/FineGrainedLogging
*
* -- Flags --
*
* Typically you will use the LOG_LEVELS (see below), but the flags may be used directly in certain situations.
* For example, say you have a lot of warning log messages, and you wanted to disable them.
* However, you still needed to see your error and info log messages.
* You could accomplish that with the following:
*
* static const int ddLogLevel = LOG_FLAG_ERROR | LOG_FLAG_INFO;
*
* Flags may also be consulted when writing custom log formatters,
* as the DDLogMessage class captures the individual flag that caused the log message to fire.
*
* -- Levels --
*
* Log levels are simply the proper bitmask of the flags.
*
* -- Booleans --
*
* The booleans may be used when your logging code involves more than one line.
* For example:
*
* if (LOG_VERBOSE) {
* for (id sprocket in sprockets)
* DDLogVerbose(@"sprocket: %@", [sprocket description])
* }
*
* -- Async --
*
* Defines the default asynchronous options.
* The default philosophy for asynchronous logging is very simple:
*
* Log messages with errors should be executed synchronously.
* After all, an error just occurred. The application could be unstable.
*
* All other log messages, such as debug output, are executed asynchronously.
* After all, if it wasn't an error, then it was just informational output,
* or something the application was easily able to recover from.
*
* -- Changes --
*
* You are strongly discouraged from modifying this file.
* If you do, you make it more difficult on yourself to merge future bug fixes and improvements from the project.
* Instead, create your own MyLogging.h or ApplicationNameLogging.h or CompanyLogging.h
*
* For an example of customizing your logging experience, see the "Custom Log Levels" page:
* https://github.com/robbiehanson/CocoaLumberjack/wiki/CustomLogLevels
**/
#define LOG_FLAG_ERROR (1 << 0) // 0...0001
#define LOG_FLAG_WARN (1 << 1) // 0...0010
#define LOG_FLAG_INFO (1 << 2) // 0...0100
#define LOG_FLAG_VERBOSE (1 << 3) // 0...1000
#define LOG_LEVEL_OFF 0
#define LOG_LEVEL_ERROR (LOG_FLAG_ERROR) // 0...0001
#define LOG_LEVEL_WARN (LOG_FLAG_ERROR | LOG_FLAG_WARN) // 0...0011
#define LOG_LEVEL_INFO (LOG_FLAG_ERROR | LOG_FLAG_WARN | LOG_FLAG_INFO) // 0...0111
#define LOG_LEVEL_VERBOSE (LOG_FLAG_ERROR | LOG_FLAG_WARN | LOG_FLAG_INFO | LOG_FLAG_VERBOSE) // 0...1111
#define LOG_ERROR (ddLogLevel & LOG_FLAG_ERROR)
#define LOG_WARN (ddLogLevel & LOG_FLAG_WARN)
#define LOG_INFO (ddLogLevel & LOG_FLAG_INFO)
#define LOG_VERBOSE (ddLogLevel & LOG_FLAG_VERBOSE)
#define LOG_ASYNC_ENABLED YES
#define LOG_ASYNC_ERROR ( NO && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_WARN (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_INFO (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_VERBOSE (YES && LOG_ASYNC_ENABLED)
#define DDLogError(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_ERROR, ddLogLevel, LOG_FLAG_ERROR, 0, frmt, ##__VA_ARGS__)
#define DDLogWarn(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_WARN, ddLogLevel, LOG_FLAG_WARN, 0, frmt, ##__VA_ARGS__)
#define DDLogInfo(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_INFO, ddLogLevel, LOG_FLAG_INFO, 0, frmt, ##__VA_ARGS__)
#define DDLogVerbose(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_VERBOSE, ddLogLevel, LOG_FLAG_VERBOSE, 0, frmt, ##__VA_ARGS__)
#define DDLogCError(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_ERROR, ddLogLevel, LOG_FLAG_ERROR, 0, frmt, ##__VA_ARGS__)
#define DDLogCWarn(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_WARN, ddLogLevel, LOG_FLAG_WARN, 0, frmt, ##__VA_ARGS__)
#define DDLogCInfo(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_INFO, ddLogLevel, LOG_FLAG_INFO, 0, frmt, ##__VA_ARGS__)
#define DDLogCVerbose(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_VERBOSE, ddLogLevel, LOG_FLAG_VERBOSE, 0, frmt, ##__VA_ARGS__)
/**
* The THIS_FILE macro gives you an NSString of the file name.
* For simplicity and clarity, the file name does not include the full path or file extension.
*
* For example: DDLogWarn(@"%@: Unable to find thingy", THIS_FILE) -> @"MyViewController: Unable to find thingy"
**/
NSString *DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
#define THIS_FILE (DDExtractFileNameWithoutExtension(__FILE__, NO))
/**
* The THIS_METHOD macro gives you the name of the current objective-c method.
*
* For example: DDLogWarn(@"%@ - Requires non-nil strings") -> @"setMake:model: requires non-nil strings"
*
* Note: This does NOT work in straight C functions (non objective-c).
* Instead you should use the predefined __FUNCTION__ macro.
**/
#define THIS_METHOD NSStringFromSelector(_cmd)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@interface DDLog : NSObject
/**
* Provides access to the underlying logging queue.
* This may be helpful to Logger classes for things like thread synchronization.
**/
+ (dispatch_queue_t)loggingQueue;
/**
* Logging Primitive.
*
* This method is used by the macros above.
* It is suggested you stick with the macros as they're easier to use.
**/
+ (void)log:(BOOL)synchronous
level:(int)level
flag:(int)flag
context:(int)context
file:(const char *)file
function:(const char *)function
line:(int)line
tag:(id)tag
format:(NSString *)format, ... __attribute__ ((format (__NSString__, 9, 10)));
/**
* Logging Primitive.
*
* This method can be used if you have a prepared va_list.
**/
+ (void)log:(BOOL)asynchronous
level:(int)level
flag:(int)flag
context:(int)context
file:(const char *)file
function:(const char *)function
line:(int)line
tag:(id)tag
format:(NSString *)format
args:(va_list)argList;
/**
* Since logging can be asynchronous, there may be times when you want to flush the logs.
* The framework invokes this automatically when the application quits.
**/
+ (void)flushLog;
/**
* Loggers
*
* If you want your log statements to go somewhere,
* you should create and add a logger.
**/
+ (void)addLogger:(id <DDLogger>)logger;
+ (void)removeLogger:(id <DDLogger>)logger;
+ (void)removeAllLoggers;
/**
* Registered Dynamic Logging
*
* These methods allow you to obtain a list of classes that are using registered dynamic logging,
* and also provides methods to get and set their log level during run time.
**/
+ (NSArray *)registeredClasses;
+ (NSArray *)registeredClassNames;
+ (int)logLevelForClass:(Class)aClass;
+ (int)logLevelForClassWithName:(NSString *)aClassName;
+ (void)setLogLevel:(int)logLevel forClass:(Class)aClass;
+ (void)setLogLevel:(int)logLevel forClassWithName:(NSString *)aClassName;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@protocol DDLogger <NSObject>
@required
- (void)logMessage:(DDLogMessage *)logMessage;
/**
* Formatters may optionally be added to any logger.
*
* If no formatter is set, the logger simply logs the message as it is given in logMessage,
* or it may use its own built in formatting style.
**/
- (id <DDLogFormatter>)logFormatter;
- (void)setLogFormatter:(id <DDLogFormatter>)formatter;
@optional
/**
* Since logging is asynchronous, adding and removing loggers is also asynchronous.
* In other words, the loggers are added and removed at appropriate times with regards to log messages.
*
* - Loggers will not receive log messages that were executed prior to when they were added.
* - Loggers will not receive log messages that were executed after they were removed.
*
* These methods are executed in the logging thread/queue.
* This is the same thread/queue that will execute every logMessage: invocation.
* Loggers may use these methods for thread synchronization or other setup/teardown tasks.
**/
- (void)didAddLogger;
- (void)willRemoveLogger;
/**
* Some loggers may buffer IO for optimization purposes.
* For example, a database logger may only save occasionaly as the disk IO is slow.
* In such loggers, this method should be implemented to flush any pending IO.
*
* This allows invocations of DDLog's flushLog method to be propogated to loggers that need it.
*
* Note that DDLog's flushLog method is invoked automatically when the application quits,
* and it may be also invoked manually by the developer prior to application crashes, or other such reasons.
**/
- (void)flush;
/**
* Each logger is executed concurrently with respect to the other loggers.
* Thus, a dedicated dispatch queue is used for each logger.
* Logger implementations may optionally choose to provide their own dispatch queue.
**/
- (dispatch_queue_t)loggerQueue;
/**
* If the logger implementation does not choose to provide its own queue,
* one will automatically be created for it.
* The created queue will receive its name from this method.
* This may be helpful for debugging or profiling reasons.
**/
- (NSString *)loggerName;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@protocol DDLogFormatter <NSObject>
@required
/**
* Formatters may optionally be added to any logger.
* This allows for increased flexibility in the logging environment.
* For example, log messages for log files may be formatted differently than log messages for the console.
*
* For more information about formatters, see the "Custom Formatters" page:
* https://github.com/robbiehanson/CocoaLumberjack/wiki/CustomFormatters
*
* The formatter may also optionally filter the log message by returning nil,
* in which case the logger will not log the message.
**/
- (NSString *)formatLogMessage:(DDLogMessage *)logMessage;
@optional
/**
* A single formatter instance can be added to multiple loggers.
* These methods provides hooks to notify the formatter of when it's added/removed.
*
* This is primarily for thread-safety.
* If a formatter is explicitly not thread-safe, it may wish to throw an exception if added to multiple loggers.
* Or if a formatter has potentially thread-unsafe code (e.g. NSDateFormatter),
* it could possibly use these hooks to switch to thread-safe versions of the code.
**/
- (void)didAddToLogger:(id <DDLogger>)logger;
- (void)willRemoveFromLogger:(id <DDLogger>)logger;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@protocol DDRegisteredDynamicLogging
/**
* Implement these methods to allow a file's log level to be managed from a central location.
*
* This is useful if you'd like to be able to change log levels for various parts
* of your code from within the running application.
*
* Imagine pulling up the settings for your application,
* and being able to configure the logging level on a per file basis.
*
* The implementation can be very straight-forward:
*
* + (int)ddLogLevel
* {
* return ddLogLevel;
* }
*
* + (void)ddSetLogLevel:(int)logLevel
* {
* ddLogLevel = logLevel;
* }
**/
+ (int)ddLogLevel;
+ (void)ddSetLogLevel:(int)logLevel;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* The DDLogMessage class encapsulates information about the log message.
* If you write custom loggers or formatters, you will be dealing with objects of this class.
**/
enum {
DDLogMessageCopyFile = 1 << 0,
DDLogMessageCopyFunction = 1 << 1,
};
typedef int DDLogMessageOptions;
@interface DDLogMessage : NSObject
{
// The public variables below can be accessed directly (for speed).
// For example: logMessage->logLevel
@public
int logLevel;
int logFlag;
int logContext;
NSString *logMsg;
NSDate *timestamp;
char *file;
char *function;
int lineNumber;
mach_port_t machThreadID;
char *queueLabel;
NSString *threadName;
// For 3rd party extensions to the framework, where flags and contexts aren't enough.
id tag;
// For 3rd party extensions that manually create DDLogMessage instances.
DDLogMessageOptions options;
}
/**
* Standard init method for a log message object.
* Used by the logging primitives. (And the macros use the logging primitives.)
*
* If you find need to manually create logMessage objects, there is one thing you should be aware of:
*
* If no flags are passed, the method expects the file and function parameters to be string literals.
* That is, it expects the given strings to exist for the duration of the object's lifetime,
* and it expects the given strings to be immutable.
* In other words, it does not copy these strings, it simply points to them.
* This is due to the fact that __FILE__ and __FUNCTION__ are usually used to specify these parameters,
* so it makes sense to optimize and skip the unnecessary allocations.
* However, if you need them to be copied you may use the options parameter to specify this.
* Options is a bitmask which supports DDLogMessageCopyFile and DDLogMessageCopyFunction.
**/
- (id)initWithLogMsg:(NSString *)logMsg
level:(int)logLevel
flag:(int)logFlag
context:(int)logContext
file:(const char *)file
function:(const char *)function
line:(int)line
tag:(id)tag
options:(DDLogMessageOptions)optionsMask;
/**
* Returns the threadID as it appears in NSLog.
* That is, it is a hexadecimal value which is calculated from the machThreadID.
**/
- (NSString *)threadID;
/**
* Convenience property to get just the file name, as the file variable is generally the full file path.
* This method does not include the file extension, which is generally unwanted for logging purposes.
**/
- (NSString *)fileName;
/**
* Returns the function variable in NSString form.
**/
- (NSString *)methodName;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* The DDLogger protocol specifies that an optional formatter can be added to a logger.
* Most (but not all) loggers will want to support formatters.
*
* However, writting getters and setters in a thread safe manner,
* while still maintaining maximum speed for the logging process, is a difficult task.
*
* To do it right, the implementation of the getter/setter has strict requiremenets:
* - Must NOT require the logMessage method to acquire a lock.
* - Must NOT require the logMessage method to access an atomic property (also a lock of sorts).
*
* To simplify things, an abstract logger is provided that implements the getter and setter.
*
* Logger implementations may simply extend this class,
* and they can ACCESS THE FORMATTER VARIABLE DIRECTLY from within their logMessage method!
**/
@interface DDAbstractLogger : NSObject <DDLogger>
{
id <DDLogFormatter> formatter;
dispatch_queue_t loggerQueue;
}
- (id <DDLogFormatter>)logFormatter;
- (void)setLogFormatter:(id <DDLogFormatter>)formatter;
@end
| {
"pile_set_name": "Github"
} |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Functions to access/create device major and minor numbers matching the
// encoding used by the Linux kernel and glibc.
//
// The information below is extracted and adapted from bits/sysmacros.h in the
// glibc sources:
//
// dev_t in glibc is 64-bit, with 32-bit major and minor numbers. glibc's
// default encoding is MMMM Mmmm mmmM MMmm, where M is a hex digit of the major
// number and m is a hex digit of the minor number. This is backward compatible
// with legacy systems where dev_t is 16 bits wide, encoded as MMmm. It is also
// backward compatible with the Linux kernel, which for some architectures uses
// 32-bit dev_t, encoded as mmmM MMmm.
package unix
// Major returns the major component of a Linux device number.
func Major(dev uint64) uint32 {
major := uint32((dev & 0x00000000000fff00) >> 8)
major |= uint32((dev & 0xfffff00000000000) >> 32)
return major
}
// Minor returns the minor component of a Linux device number.
func Minor(dev uint64) uint32 {
minor := uint32((dev & 0x00000000000000ff) >> 0)
minor |= uint32((dev & 0x00000ffffff00000) >> 12)
return minor
}
// Mkdev returns a Linux device number generated from the given major and minor
// components.
func Mkdev(major, minor uint32) uint64 {
dev := (uint64(major) & 0x00000fff) << 8
dev |= (uint64(major) & 0xfffff000) << 32
dev |= (uint64(minor) & 0x000000ff) << 0
dev |= (uint64(minor) & 0xffffff00) << 12
return dev
}
| {
"pile_set_name": "Github"
} |
# KeyTable
KeyTable provides enhanced accessibility and navigation options for DataTables enhanced tables, by allowing Excel like cell navigation on any table. Events (focus, blur, action etc) can be assigned to individual cells, columns, rows or all cells to allow advanced interaction options.. Key features include:
* Easy to use spreadsheet like interaction
* Fully integrated with DataTables
* Wide range of supported events
# Installation
To use KeyTable, first download DataTables ( http://datatables.net/download ) and place the unzipped KeyTable package into a `extensions` directory in the DataTables package. This will allow the pages in the examples to operate correctly. To see the examples running, open the `examples` directory in your web-browser.
# Basic usage
KeyTable is initialised using the `C` option that it adds to DataTables' `dom` option. For example:
```js
$(document).ready( function () {
var table = $('#example').DataTable();
new $.fn.dataTable.KeyTable( table );
} );
```
# Documentation / support
* Documentation: http://datatables.net/extensions/keytable/
* DataTables support forums: http://datatables.net/forums
# GitHub
If you fancy getting involved with the development of KeyTable and help make it better, please refer to its GitHub repo: https://github.com/DataTables/KeyTable
| {
"pile_set_name": "Github"
} |
/**
* 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.
*/
'use strict';
angular.module('ambariAdminConsole')
.controller('UserManagementCtrl', ['$scope', '$routeParams', function($scope, $routeParams) {
$scope.activeTab = $routeParams.tab === 'groups' ? 'GROUPS' : 'USERS';
}]);
| {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TextAdventures.Quest;
using TextAdventures.Quest.Functions;
using TextAdventures.Quest.Scripts;
namespace WorldModelTests
{
[TestClass]
public class ExpressionTests
{
const string attributeName = "attribute";
const string attributeValue = "attributevalue";
const string childAttributeValue = "childattributevalue";
const string intAttributeName = "intattribute";
const int intAttributeValue = 42;
private WorldModel m_worldModel;
private Element m_object;
private Element m_child;
[TestInitialize]
public void Setup()
{
m_worldModel = new WorldModel();
m_object = m_worldModel.GetElementFactory(ElementType.Object).Create("object");
m_object.Fields.Set(attributeName, attributeValue);
m_object.Fields.Set(intAttributeName, intAttributeValue);
m_child = m_worldModel.GetElementFactory(ElementType.Object).Create("child");
m_child.Parent = m_object;
m_child.Fields.Set(attributeName, childAttributeValue);
}
private T RunExpression<T>(string expression)
{
Expression<T> expr = new Expression<T>(expression, new ScriptContext(m_worldModel));
Context c = new Context();
return expr.Execute(c);
}
[TestMethod]
public void TestReadStringFields()
{
string result;
result = RunExpression<string>("object.attribute");
Assert.AreEqual(attributeValue, result);
result = RunExpression<string>("child.attribute");
Assert.AreEqual(childAttributeValue, result);
}
[TestMethod]
public void TestReadChildParentField()
{
string result = RunExpression<string>("child.parent.attribute");
Assert.AreEqual(attributeValue, result);
}
[TestMethod]
public void TestStringConcatenate()
{
const string extraString = "testconcat";
string result = RunExpression<string>("object.attribute + \"" + extraString + "\"");
Assert.AreEqual(attributeValue + extraString, result);
}
[TestMethod]
public void TestReadIntField()
{
int result = RunExpression<int>("object.intattribute");
Assert.AreEqual(intAttributeValue, result);
}
[TestMethod]
public void TestAddition()
{
int result = RunExpression<int>("object.intattribute + 3");
Assert.AreEqual(intAttributeValue + 3, result);
}
[TestMethod]
public void TestChangingTypes()
{
ScriptContext scriptContext = new ScriptContext(m_worldModel);
string expression = "a + b";
ExpressionGeneric expr = new ExpressionGeneric(expression, scriptContext);
Context c = new Context();
c.Parameters = new Parameters();
c.Parameters.Add("a", 1);
c.Parameters.Add("b", 2);
Assert.AreEqual(3, (int)expr.Execute(c));
c.Parameters["a"] = "A";
c.Parameters["b"] = "B";
Assert.AreEqual("AB", (string)expr.Execute(c));
}
}
}
| {
"pile_set_name": "Github"
} |
/*
Copyright 2017 The Kubernetes 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 v1beta1
import (
authenticationv1 "k8s.io/api/authentication/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// AdmissionReview describes an admission review request/response.
type AdmissionReview struct {
metav1.TypeMeta `json:",inline"`
// Request describes the attributes for the admission request.
// +optional
Request *AdmissionRequest `json:"request,omitempty" protobuf:"bytes,1,opt,name=request"`
// Response describes the attributes for the admission response.
// +optional
Response *AdmissionResponse `json:"response,omitempty" protobuf:"bytes,2,opt,name=response"`
}
// AdmissionRequest describes the admission.Attributes for the admission request.
type AdmissionRequest struct {
// UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
// otherwise identical (parallel requests, requests when earlier requests did not modify etc)
// The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
// It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
UID types.UID `json:"uid" protobuf:"bytes,1,opt,name=uid"`
// Kind is the type of object being manipulated. For example: Pod
Kind metav1.GroupVersionKind `json:"kind" protobuf:"bytes,2,opt,name=kind"`
// Resource is the name of the resource being requested. This is not the kind. For example: pods
Resource metav1.GroupVersionResource `json:"resource" protobuf:"bytes,3,opt,name=resource"`
// SubResource is the name of the subresource being requested. This is a different resource, scoped to the parent
// resource, but it may have a different kind. For instance, /pods has the resource "pods" and the kind "Pod", while
// /pods/foo/status has the resource "pods", the sub resource "status", and the kind "Pod" (because status operates on
// pods). The binding resource for a pod though may be /pods/foo/binding, which has resource "pods", subresource
// "binding", and kind "Binding".
// +optional
SubResource string `json:"subResource,omitempty" protobuf:"bytes,4,opt,name=subResource"`
// Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and
// rely on the server to generate the name. If that is the case, this method will return the empty string.
// +optional
Name string `json:"name,omitempty" protobuf:"bytes,5,opt,name=name"`
// Namespace is the namespace associated with the request (if any).
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,6,opt,name=namespace"`
// Operation is the operation being performed
Operation Operation `json:"operation" protobuf:"bytes,7,opt,name=operation"`
// UserInfo is information about the requesting user
UserInfo authenticationv1.UserInfo `json:"userInfo" protobuf:"bytes,8,opt,name=userInfo"`
// Object is the object from the incoming request prior to default values being applied
// +optional
Object runtime.RawExtension `json:"object,omitempty" protobuf:"bytes,9,opt,name=object"`
// OldObject is the existing object. Only populated for UPDATE requests.
// +optional
OldObject runtime.RawExtension `json:"oldObject,omitempty" protobuf:"bytes,10,opt,name=oldObject"`
}
// AdmissionResponse describes an admission response.
type AdmissionResponse struct {
// UID is an identifier for the individual request/response.
// This should be copied over from the corresponding AdmissionRequest.
UID types.UID `json:"uid" protobuf:"bytes,1,opt,name=uid"`
// Allowed indicates whether or not the admission request was permitted.
Allowed bool `json:"allowed" protobuf:"varint,2,opt,name=allowed"`
// Result contains extra details into why an admission request was denied.
// This field IS NOT consulted in any way if "Allowed" is "true".
// +optional
Result *metav1.Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
// The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
// +optional
Patch []byte `json:"patch,omitempty" protobuf:"bytes,4,opt,name=patch"`
// The type of Patch. Currently we only allow "JSONPatch".
// +optional
PatchType *PatchType `json:"patchType,omitempty" protobuf:"bytes,5,opt,name=patchType"`
}
// PatchType is the type of patch being used to represent the mutated object
type PatchType string
// PatchType constants.
const (
PatchTypeJSONPatch PatchType = "JSONPatch"
)
// Operation is the type of resource operation being checked for admission control
type Operation string
// Operation constants
const (
Create Operation = "CREATE"
Update Operation = "UPDATE"
Delete Operation = "DELETE"
Connect Operation = "CONNECT"
)
| {
"pile_set_name": "Github"
} |
(ns boot.from.io.aviso.binary
"Utilities for formatting binary data (byte arrays) or binary deltas."
{:boot/from :AvisoNovate/pretty:0.1.34}
(:require [boot.from.io.aviso
[ansi :as ansi]
[columns :as c]
[writer :as w]]))
(defprotocol BinaryData
"Allows various data sources to be treated as a byte-array data type that
supports a length and random access to individual bytes.
BinaryData is extended onto byte arrays, onto `String`, and onto nil."
(data-length [this] "The total number of bytes available.")
(byte-at [this index] "The byte value at a specific offset."))
(extend-type (Class/forName "[B")
BinaryData
(data-length [ary] (alength (bytes ary)))
(byte-at [ary index] (aget (bytes ary) index)))
;;; Extends String as a convenience; assumes that the
;;; String is in utf-8.
(extend-type String
BinaryData
(data-length [s] (.length s))
(byte-at [s index] (-> s (.charAt index) int byte)))
(extend-type StringBuilder
BinaryData
(data-length [sb] (.length sb))
(byte-at [sb index]
(-> sb (.charAt index) int byte)))
(extend-type nil
BinaryData
(data-length [_] 0)
(byte-at [_ index] (throw (IndexOutOfBoundsException. "Can't use byte-at with nil."))))
(def ^:private ^:const bytes-per-diff-line 16)
(def ^:private ^:const bytes-per-ascii-line 16)
(def ^:private ^:const bytes-per-line (* 2 bytes-per-diff-line))
(def ^:private printable-chars
(into #{}
(map byte (str "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789"
" !@#$%^&*()-_=+[]{}\\|'\";:,./<>?`~"))))
(def ^:private nonprintable-placeholder (ansi/bold-magenta-bg " "))
(defn- to-ascii [b]
(if (printable-chars b)
(char b)
nonprintable-placeholder))
(defn- write-line
[writer formatter write-ascii? offset data line-count]
(let [line-bytes (for [i (range line-count)]
(byte-at data (+ offset i)))]
(formatter writer
(format "%04X" offset)
(apply str (interpose " "
(map #(format "%02X" %) line-bytes)))
(if write-ascii?
(apply str (map to-ascii line-bytes))))))
(def ^:private standard-binary-columns
[4
": "
:none])
(defn- ascii-binary-columns [per-line]
[4
": "
(* 3 per-line)
"|"
per-line
"|"
])
(defn write-binary
"Formats a ByteData into a hex-dump string, consisting of multiple lines; each line formatted as:
0000: 43 68 6F 6F 73 65 20 69 6D 6D 75 74 61 62 69 6C 69 74 79 2C 20 61 6E 64 20 73 65 65 20 77 68 65
0020: 72 65 20 74 68 61 74 20 74 61 6B 65 73 20 79 6F 75 2E
The full version specifies:
- [[StringWriter]] to which to write output
- [[BinaryData]] to write
- option keys and values:
:ascii - boolean
: true to enable ASCII mode
:line-bytes - number
: number of bytes per line (defaults to 16 for ASCII, 32 otherwise)
In ASCII mode, the output is 16 bytes per line, but each line includes the ASCII printable characters:
0000: 43 68 6F 6F 73 65 20 69 6D 6D 75 74 61 62 69 6C |Choose immutabil|
0010: 69 74 79 2C 20 61 6E 64 20 73 65 65 20 77 68 65 |ity, and see whe|
0020: 72 65 20 74 68 61 74 20 74 61 6B 65 73 20 79 6F |re that takes yo|
0030: 75 2E |u. |
A placeholder character (a space with magenta background) is used for any non-printable
character."
([data]
(write-binary *out* data nil))
([writer data]
(write-binary writer data nil))
([writer data options]
(let [{show-ascii? :ascii
per-line-option :line-bytes} options
per-line (or per-line-option
(if show-ascii? bytes-per-ascii-line bytes-per-line))
formatter (apply c/format-columns
(if show-ascii?
(ascii-binary-columns per-line)
standard-binary-columns))]
(assert (pos? per-line) "Must be at least one byte per line.")
(loop [offset 0]
(let [remaining (- (data-length data) offset)]
(when (pos? remaining)
(write-line writer formatter show-ascii? offset data (min per-line remaining))
(recur (long (+ per-line offset)))))))))
(defn format-binary
"Formats the data using [[write-binary]] and returns the result as a string."
([data]
(format-binary data nil))
([data options]
(apply w/into-string write-binary data options)))
(defn- match?
[byte-offset data-length data alternate-length alternate]
(and
(< byte-offset data-length)
(< byte-offset alternate-length)
(== (byte-at data byte-offset) (byte-at alternate byte-offset))))
(defn- to-hex
[byte-array byte-offset]
;; This could be made a lot more efficient!
(format "%02X" (byte-at byte-array byte-offset)))
(defn- write-byte-deltas
[writer ansi-color pad? offset data-length data alternate-length alternate]
(doseq [i (range bytes-per-diff-line)]
(let [byte-offset (+ offset i)]
(cond
;; Exact match on both sides is easy, just print it out.
(match? byte-offset data-length data alternate-length alternate) (w/write writer " " (to-hex data byte-offset))
;; Some kind of mismatch, so decorate with this side's color
(< byte-offset data-length) (w/write writer " " (ansi-color (to-hex data byte-offset)))
;; Are we out of data on this side? Print a "--" decorated with the color.
(< byte-offset alternate-length) (w/write writer " " (ansi-color "--"))
;; This side must be longer than the alternate side.
;; On the left/green side, we need to pad with spaces
;; On the right/red side, we need nothing.
pad? (w/write writer " ")))))
(defn- write-delta-line
[writer offset expected-length ^bytes expected actual-length actual]
(w/writef writer "%04X:" offset)
(write-byte-deltas writer ansi/bold-green true offset expected-length expected actual-length actual)
(w/write writer " | ")
(write-byte-deltas writer ansi/bold-red false offset actual-length actual expected-length expected)
(w/writeln writer))
(defn write-binary-delta
"Formats a hex dump of the expected data (on the left) and actual data (on the right). Bytes
that do not match are highlighted in green on the expected side, and red on the actual side.
When one side is shorter than the other, it is padded with `--` placeholders to make this
more clearly visible.
expected and actual are [[BinaryData]].
Display 16 bytes (from each data set) per line."
([expected actual] (write-binary-delta *out* expected actual))
([writer expected actual]
(let [expected-length (data-length expected)
actual-length (data-length actual)
target-length (max actual-length expected-length)]
(loop [offset 0]
(when (pos? (- target-length offset))
(write-delta-line writer offset expected-length expected actual-length actual)
(recur (long (+ bytes-per-diff-line offset))))))))
(defn format-binary-delta
"Formats the delta using [[write-binary-delta]] and returns the result as a string."
[expected actual]
(w/into-string write-binary-delta expected actual))
| {
"pile_set_name": "Github"
} |
/* Copyright (c) 2014, Nordic Semiconductor ASA
*
* 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.
*/
/* Attention!
* To maintain compliance with Nordic Semiconductor ASA's Bluetooth profile
* qualification listings, this section of source code must not be modified.
*/
#include <hal_platform.h>
#include "alert_level_characteristic.h"
#include "services.h"
#include "lib_aci.h"
#include "link_loss.h"
/*link loss Service */
volatile alert_level_t alert_handle_on_link_loss;
void link_loss_init(void)
{
alert_handle_on_link_loss = ALERT_LEVEL_NO_ALERT;
}
void proximity_disconect_evt_rcvd(uint8_t disconnect_reason)
{
if ((DISCONNECT_REASON_CX_CLOSED_BY_PEER_DEVICE != disconnect_reason)&&(DISCONNECT_REASON_CX_CLOSED_BY_LOCAL_DEVICE != disconnect_reason))
{
link_loss_alert_hook(alert_handle_on_link_loss);
}
}
void link_loss_pipes_updated_evt_rcvd(uint8_t pipe_num, uint8_t *buffer)
{
switch (pipe_num)
{
case PIPE_LINK_LOSS_ALERT_ALERT_LEVEL_RX_ACK_AUTO :
alert_handle_on_link_loss = (alert_level_t)buffer[0];
break;
}
}
| {
"pile_set_name": "Github"
} |
package com.yzx.chat.widget.listener;
import com.google.android.material.appbar.AppBarLayout;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import androidx.annotation.IntDef;
/**
* Created by YZX on 2018年06月14日.
* 每一个不曾起舞的日子 都是对生命的辜负
*/
public abstract class AppBarStateChangeListener implements AppBarLayout.OnOffsetChangedListener {
public static final int STATE_EXPANDED = 1;
public static final int STATE_COLLAPSED = 2;
@IntDef({STATE_EXPANDED, STATE_COLLAPSED})
@Retention(RetentionPolicy.SOURCE)
public @interface State {
}
private Method mGetMinimumHeightForVisibleOverlappingContentMethod;
private boolean isFindMethodFinish;
private int mCurrentState;
@Override
public final void onOffsetChanged(AppBarLayout appBarLayout, int i) {
if (!isFindMethodFinish && mGetMinimumHeightForVisibleOverlappingContentMethod == null) {
try {
mGetMinimumHeightForVisibleOverlappingContentMethod = appBarLayout.getClass().getDeclaredMethod("getMinimumHeightForVisibleOverlappingContent");
mGetMinimumHeightForVisibleOverlappingContentMethod.setAccessible(true);
} catch (NoSuchMethodException e) {
e.printStackTrace();
} finally {
isFindMethodFinish = true;
}
}
int minimumHeight = 0;
if (mGetMinimumHeightForVisibleOverlappingContentMethod != null) {
try {
minimumHeight = (int) mGetMinimumHeightForVisibleOverlappingContentMethod.invoke(appBarLayout);
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace();
}
}
if (minimumHeight == 0) {
minimumHeight = appBarLayout.getTotalScrollRange();
}
if (appBarLayout.getHeight()+i <= minimumHeight) {
if (mCurrentState != STATE_COLLAPSED) {
onStateChanged(appBarLayout, STATE_COLLAPSED);
}
mCurrentState = STATE_COLLAPSED;
} else {
if (mCurrentState != STATE_EXPANDED) {
onStateChanged(appBarLayout, STATE_EXPANDED);
}
mCurrentState = STATE_EXPANDED;
}
}
public abstract void onStateChanged(AppBarLayout appBarLayout, @State int state);
}
| {
"pile_set_name": "Github"
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_char_loop_09.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.string.label.xml
Template File: sources-sink-09.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate using new[] and set data pointer to a small buffer
* GoodSource: Allocate using new[] and set data pointer to a large buffer
* Sink: loop
* BadSink : Copy string to data using a loop
* Flow Variant: 09 Control flow: if(GLOBAL_CONST_TRUE) and if(GLOBAL_CONST_FALSE)
*
* */
#include "std_testcase.h"
#include <wchar.h>
namespace CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_char_loop_09
{
#ifndef OMITBAD
void bad()
{
char * data;
data = NULL;
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Allocate using new[] and point data to a small buffer that is smaller than the large buffer used in the sinks */
data = new char[50];
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if source is larger than data */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
delete [] data;
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B1() - use goodsource and badsink by changing the GLOBAL_CONST_TRUE to GLOBAL_CONST_FALSE */
static void goodG2B1()
{
char * data;
data = NULL;
if(GLOBAL_CONST_FALSE)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Allocate using new[] and point data to a large buffer that is at least as large as the large buffer used in the sink */
data = new char[100];
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if source is larger than data */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
delete [] data;
}
}
/* goodG2B2() - use goodsource and badsink by reversing the blocks in the if statement */
static void goodG2B2()
{
char * data;
data = NULL;
if(GLOBAL_CONST_TRUE)
{
/* FIX: Allocate using new[] and point data to a large buffer that is at least as large as the large buffer used in the sink */
data = new char[100];
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if source is larger than data */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
delete [] data;
}
}
void good()
{
goodG2B1();
goodG2B2();
}
#endif /* OMITGOOD */
} /* close namespace */
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
#ifdef INCLUDEMAIN
using namespace CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_char_loop_09; /* so that we can use good and bad easily */
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| {
"pile_set_name": "Github"
} |
// go run mksyscall.go -tags darwin,amd64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
// Code generated by the command above; see README.md. DO NOT EDIT.
// +build darwin,amd64,go1.12
package unix
import (
"syscall"
"unsafe"
)
var _ syscall.Errno
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
r0, _, e1 := syscall_rawSyscall(funcPC(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getgroups_trampoline()
//go:linkname libc_getgroups libc_getgroups
//go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func setgroups(ngid int, gid *_Gid_t) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setgroups_trampoline()
//go:linkname libc_setgroups libc_setgroups
//go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
r0, _, e1 := syscall_syscall6(funcPC(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
wpid = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_wait4_trampoline()
//go:linkname libc_wait4 libc_wait4
//go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_accept_trampoline()
//go:linkname libc_accept libc_accept
//go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_bind_trampoline()
//go:linkname libc_bind libc_bind
//go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_connect_trampoline()
//go:linkname libc_connect libc_connect
//go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func socket(domain int, typ int, proto int) (fd int, err error) {
r0, _, e1 := syscall_rawSyscall(funcPC(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto))
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_socket_trampoline()
//go:linkname libc_socket libc_socket
//go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getsockopt_trampoline()
//go:linkname libc_getsockopt libc_getsockopt
//go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setsockopt_trampoline()
//go:linkname libc_setsockopt libc_setsockopt
//go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getpeername_trampoline()
//go:linkname libc_getpeername libc_getpeername
//go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getsockname_trampoline()
//go:linkname libc_getsockname libc_getsockname
//go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Shutdown(s int, how int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_shutdown_trampoline()
//go:linkname libc_shutdown libc_shutdown
//go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
_, _, e1 := syscall_rawSyscall6(funcPC(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_socketpair_trampoline()
//go:linkname libc_socketpair libc_socketpair
//go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall6(funcPC(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_recvfrom_trampoline()
//go:linkname libc_recvfrom libc_recvfrom
//go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
var _p0 unsafe.Pointer
if len(buf) > 0 {
_p0 = unsafe.Pointer(&buf[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall6(funcPC(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_sendto_trampoline()
//go:linkname libc_sendto libc_sendto
//go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_recvmsg_trampoline()
//go:linkname libc_recvmsg libc_recvmsg
//go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_sendmsg_trampoline()
//go:linkname libc_sendmsg libc_sendmsg
//go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
r0, _, e1 := syscall_syscall6(funcPC(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_kevent_trampoline()
//go:linkname libc_kevent libc_kevent
//go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
var _p0 unsafe.Pointer
if len(mib) > 0 {
_p0 = unsafe.Pointer(&mib[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc___sysctl_trampoline()
//go:linkname libc___sysctl libc___sysctl
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func utimes(path string, timeval *[2]Timeval) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_utimes_trampoline()
//go:linkname libc_utimes libc_utimes
//go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func futimes(fd int, timeval *[2]Timeval) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_futimes_trampoline()
//go:linkname libc_futimes libc_futimes
//go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func fcntl(fd int, cmd int, arg int) (val int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
val = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fcntl_trampoline()
//go:linkname libc_fcntl libc_fcntl
//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_poll_trampoline()
//go:linkname libc_poll libc_poll
//go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Madvise(b []byte, behav int) (err error) {
var _p0 unsafe.Pointer
if len(b) > 0 {
_p0 = unsafe.Pointer(&b[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall(funcPC(libc_madvise_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(behav))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_madvise_trampoline()
//go:linkname libc_madvise libc_madvise
//go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mlock(b []byte) (err error) {
var _p0 unsafe.Pointer
if len(b) > 0 {
_p0 = unsafe.Pointer(&b[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall(funcPC(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mlock_trampoline()
//go:linkname libc_mlock libc_mlock
//go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mlockall(flags int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_mlockall_trampoline), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mlockall_trampoline()
//go:linkname libc_mlockall libc_mlockall
//go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mprotect(b []byte, prot int) (err error) {
var _p0 unsafe.Pointer
if len(b) > 0 {
_p0 = unsafe.Pointer(&b[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall(funcPC(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mprotect_trampoline()
//go:linkname libc_mprotect libc_mprotect
//go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Msync(b []byte, flags int) (err error) {
var _p0 unsafe.Pointer
if len(b) > 0 {
_p0 = unsafe.Pointer(&b[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall(funcPC(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_msync_trampoline()
//go:linkname libc_msync libc_msync
//go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Munlock(b []byte) (err error) {
var _p0 unsafe.Pointer
if len(b) > 0 {
_p0 = unsafe.Pointer(&b[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
_, _, e1 := syscall_syscall(funcPC(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_munlock_trampoline()
//go:linkname libc_munlock libc_munlock
//go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Munlockall() (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_munlockall_trampoline), 0, 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_munlockall_trampoline()
//go:linkname libc_munlockall libc_munlockall
//go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_ptrace_trampoline()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getattrlist_trampoline()
//go:linkname libc_getattrlist libc_getattrlist
//go:cgo_import_dynamic libc_getattrlist getattrlist "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe() (r int, w int, err error) {
r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
r = int(r0)
w = int(r1)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_pipe_trampoline()
//go:linkname libc_pipe libc_pipe
//go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(attr)
if err != nil {
return
}
r0, _, e1 := syscall_syscall6(funcPC(libc_getxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
sz = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getxattr_trampoline()
//go:linkname libc_getxattr libc_getxattr
//go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(attr)
if err != nil {
return
}
r0, _, e1 := syscall_syscall6(funcPC(libc_fgetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
sz = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fgetxattr_trampoline()
//go:linkname libc_fgetxattr libc_fgetxattr
//go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(attr)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_setxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setxattr_trampoline()
//go:linkname libc_setxattr libc_setxattr
//go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(attr)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_fsetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fsetxattr_trampoline()
//go:linkname libc_fsetxattr libc_fsetxattr
//go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func removexattr(path string, attr string, options int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(attr)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_removexattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_removexattr_trampoline()
//go:linkname libc_removexattr libc_removexattr
//go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func fremovexattr(fd int, attr string, options int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(attr)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_fremovexattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fremovexattr_trampoline()
//go:linkname libc_fremovexattr libc_fremovexattr
//go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := syscall_syscall6(funcPC(libc_listxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
sz = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_listxattr_trampoline()
//go:linkname libc_listxattr libc_listxattr
//go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
r0, _, e1 := syscall_syscall6(funcPC(libc_flistxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
sz = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_flistxattr_trampoline()
//go:linkname libc_flistxattr libc_flistxattr
//go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_setattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setattrlist_trampoline()
//go:linkname libc_setattrlist libc_setattrlist
//go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func kill(pid int, signum int, posix int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_kill_trampoline()
//go:linkname libc_kill libc_kill
//go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ioctl(fd int, req uint, arg uintptr) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_ioctl_trampoline()
//go:linkname libc_ioctl libc_ioctl
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_sendfile_trampoline()
//go:linkname libc_sendfile libc_sendfile
//go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Access(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_access_trampoline()
//go:linkname libc_access libc_access
//go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_adjtime_trampoline()
//go:linkname libc_adjtime libc_adjtime
//go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Chdir(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_chdir_trampoline()
//go:linkname libc_chdir libc_chdir
//go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Chflags(path string, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_chflags_trampoline()
//go:linkname libc_chflags libc_chflags
//go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Chmod(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_chmod_trampoline()
//go:linkname libc_chmod libc_chmod
//go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Chown(path string, uid int, gid int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_chown_trampoline()
//go:linkname libc_chown libc_chown
//go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Chroot(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_chroot_trampoline()
//go:linkname libc_chroot libc_chroot
//go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ClockGettime(clockid int32, time *Timespec) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_clock_gettime_trampoline()
//go:linkname libc_clock_gettime libc_clock_gettime
//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Close(fd int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_close_trampoline()
//go:linkname libc_close libc_close
//go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Dup(fd int) (nfd int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_dup_trampoline), uintptr(fd), 0, 0)
nfd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_dup_trampoline()
//go:linkname libc_dup libc_dup
//go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Dup2(from int, to int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_dup2_trampoline), uintptr(from), uintptr(to), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_dup2_trampoline()
//go:linkname libc_dup2 libc_dup2
//go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Exchangedata(path1 string, path2 string, options int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path1)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(path2)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_exchangedata_trampoline()
//go:linkname libc_exchangedata libc_exchangedata
//go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Exit(code int) {
syscall_syscall(funcPC(libc_exit_trampoline), uintptr(code), 0, 0)
return
}
func libc_exit_trampoline()
//go:linkname libc_exit libc_exit
//go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_faccessat_trampoline()
//go:linkname libc_faccessat libc_faccessat
//go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchdir(fd int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fchdir_trampoline), uintptr(fd), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fchdir_trampoline()
//go:linkname libc_fchdir libc_fchdir
//go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchflags(fd int, flags int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fchflags_trampoline()
//go:linkname libc_fchflags libc_fchflags
//go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmod(fd int, mode uint32) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fchmod_trampoline()
//go:linkname libc_fchmod libc_fchmod
//go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_fchmodat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fchmodat_trampoline()
//go:linkname libc_fchmodat libc_fchmodat
//go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fchown_trampoline()
//go:linkname libc_fchown libc_fchown
//go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_fchownat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fchownat_trampoline()
//go:linkname libc_fchownat libc_fchownat
//go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Flock(fd int, how int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_flock_trampoline), uintptr(fd), uintptr(how), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_flock_trampoline()
//go:linkname libc_flock libc_flock
//go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fpathconf(fd int, name int) (val int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0)
val = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fpathconf_trampoline()
//go:linkname libc_fpathconf libc_fpathconf
//go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fsync(fd int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fsync_trampoline), uintptr(fd), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fsync_trampoline()
//go:linkname libc_fsync libc_fsync
//go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ftruncate(fd int, length int64) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_ftruncate_trampoline()
//go:linkname libc_ftruncate libc_ftruncate
//go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getdtablesize() (size int) {
r0, _, _ := syscall_syscall(funcPC(libc_getdtablesize_trampoline), 0, 0, 0)
size = int(r0)
return
}
func libc_getdtablesize_trampoline()
//go:linkname libc_getdtablesize libc_getdtablesize
//go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getegid() (egid int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_getegid_trampoline), 0, 0, 0)
egid = int(r0)
return
}
func libc_getegid_trampoline()
//go:linkname libc_getegid libc_getegid
//go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Geteuid() (uid int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_geteuid_trampoline), 0, 0, 0)
uid = int(r0)
return
}
func libc_geteuid_trampoline()
//go:linkname libc_geteuid libc_geteuid
//go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getgid() (gid int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_getgid_trampoline), 0, 0, 0)
gid = int(r0)
return
}
func libc_getgid_trampoline()
//go:linkname libc_getgid libc_getgid
//go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getpgid(pid int) (pgid int, err error) {
r0, _, e1 := syscall_rawSyscall(funcPC(libc_getpgid_trampoline), uintptr(pid), 0, 0)
pgid = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getpgid_trampoline()
//go:linkname libc_getpgid libc_getpgid
//go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getpgrp() (pgrp int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_getpgrp_trampoline), 0, 0, 0)
pgrp = int(r0)
return
}
func libc_getpgrp_trampoline()
//go:linkname libc_getpgrp libc_getpgrp
//go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getpid() (pid int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_getpid_trampoline), 0, 0, 0)
pid = int(r0)
return
}
func libc_getpid_trampoline()
//go:linkname libc_getpid libc_getpid
//go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getppid() (ppid int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_getppid_trampoline), 0, 0, 0)
ppid = int(r0)
return
}
func libc_getppid_trampoline()
//go:linkname libc_getppid libc_getppid
//go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getpriority(which int, who int) (prio int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0)
prio = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getpriority_trampoline()
//go:linkname libc_getpriority libc_getpriority
//go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getrlimit(which int, lim *Rlimit) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getrlimit_trampoline()
//go:linkname libc_getrlimit libc_getrlimit
//go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getrusage(who int, rusage *Rusage) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getrusage_trampoline()
//go:linkname libc_getrusage libc_getrusage
//go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getsid(pid int) (sid int, err error) {
r0, _, e1 := syscall_rawSyscall(funcPC(libc_getsid_trampoline), uintptr(pid), 0, 0)
sid = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getsid_trampoline()
//go:linkname libc_getsid libc_getsid
//go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getuid() (uid int) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
uid = int(r0)
return
}
func libc_getuid_trampoline()
//go:linkname libc_getuid libc_getuid
//go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Issetugid() (tainted bool) {
r0, _, _ := syscall_rawSyscall(funcPC(libc_issetugid_trampoline), 0, 0, 0)
tainted = bool(r0 != 0)
return
}
func libc_issetugid_trampoline()
//go:linkname libc_issetugid libc_issetugid
//go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Kqueue() (fd int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_kqueue_trampoline), 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_kqueue_trampoline()
//go:linkname libc_kqueue libc_kqueue
//go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Lchown(path string, uid int, gid int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_lchown_trampoline()
//go:linkname libc_lchown libc_lchown
//go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Link(path string, link string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(link)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_link_trampoline()
//go:linkname libc_link libc_link
//go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(link)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_linkat_trampoline), uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_linkat_trampoline()
//go:linkname libc_linkat libc_linkat
//go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Listen(s int, backlog int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_listen_trampoline()
//go:linkname libc_listen libc_listen
//go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mkdir(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mkdir_trampoline()
//go:linkname libc_mkdir libc_mkdir
//go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_mkdirat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mkdirat_trampoline()
//go:linkname libc_mkdirat libc_mkdirat
//go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mkfifo(path string, mode uint32) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mkfifo_trampoline()
//go:linkname libc_mkfifo libc_mkfifo
//go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Mknod(path string, mode uint32, dev int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mknod_trampoline()
//go:linkname libc_mknod libc_mknod
//go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Open(path string, mode int, perm uint32) (fd int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := syscall_syscall(funcPC(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_open_trampoline()
//go:linkname libc_open libc_open
//go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := syscall_syscall6(funcPC(libc_openat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_openat_trampoline()
//go:linkname libc_openat libc_openat
//go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Pathconf(path string, name int) (val int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := syscall_syscall(funcPC(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
val = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_pathconf_trampoline()
//go:linkname libc_pathconf libc_pathconf
//go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Pread(fd int, p []byte, offset int64) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall6(funcPC(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_pread_trampoline()
//go:linkname libc_pread libc_pread
//go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall6(funcPC(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_pwrite_trampoline()
//go:linkname libc_pwrite libc_pwrite
//go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func read(fd int, p []byte) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_read_trampoline()
//go:linkname libc_read libc_read
//go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Readlink(path string, buf []byte) (n int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 unsafe.Pointer
if len(buf) > 0 {
_p1 = unsafe.Pointer(&buf[0])
} else {
_p1 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall(funcPC(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_readlink_trampoline()
//go:linkname libc_readlink libc_readlink
//go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 unsafe.Pointer
if len(buf) > 0 {
_p1 = unsafe.Pointer(&buf[0])
} else {
_p1 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall6(funcPC(libc_readlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_readlinkat_trampoline()
//go:linkname libc_readlinkat libc_readlinkat
//go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Rename(from string, to string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(from)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(to)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_rename_trampoline()
//go:linkname libc_rename libc_rename
//go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Renameat(fromfd int, from string, tofd int, to string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(from)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(to)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_renameat_trampoline), uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_renameat_trampoline()
//go:linkname libc_renameat libc_renameat
//go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Revoke(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_revoke_trampoline()
//go:linkname libc_revoke libc_revoke
//go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Rmdir(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_rmdir_trampoline()
//go:linkname libc_rmdir libc_rmdir
//go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence))
newoffset = int64(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_lseek_trampoline()
//go:linkname libc_lseek libc_lseek
//go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
_, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_select_trampoline()
//go:linkname libc_select libc_select
//go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setegid(egid int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_setegid_trampoline), uintptr(egid), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setegid_trampoline()
//go:linkname libc_setegid libc_setegid
//go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Seteuid(euid int) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_seteuid_trampoline), uintptr(euid), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_seteuid_trampoline()
//go:linkname libc_seteuid libc_seteuid
//go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setgid(gid int) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setgid_trampoline), uintptr(gid), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setgid_trampoline()
//go:linkname libc_setgid libc_setgid
//go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setlogin(name string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(name)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setlogin_trampoline()
//go:linkname libc_setlogin libc_setlogin
//go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setpgid(pid int, pgid int) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setpgid_trampoline()
//go:linkname libc_setpgid libc_setpgid
//go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setpriority(which int, who int, prio int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setpriority_trampoline()
//go:linkname libc_setpriority libc_setpriority
//go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setprivexec(flag int) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_setprivexec_trampoline), uintptr(flag), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setprivexec_trampoline()
//go:linkname libc_setprivexec libc_setprivexec
//go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setregid(rgid int, egid int) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setregid_trampoline()
//go:linkname libc_setregid libc_setregid
//go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setreuid(ruid int, euid int) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setreuid_trampoline()
//go:linkname libc_setreuid libc_setreuid
//go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setrlimit(which int, lim *Rlimit) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setrlimit_trampoline()
//go:linkname libc_setrlimit libc_setrlimit
//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setsid() (pid int, err error) {
r0, _, e1 := syscall_rawSyscall(funcPC(libc_setsid_trampoline), 0, 0, 0)
pid = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setsid_trampoline()
//go:linkname libc_setsid libc_setsid
//go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Settimeofday(tp *Timeval) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_settimeofday_trampoline()
//go:linkname libc_settimeofday libc_settimeofday
//go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setuid(uid int) (err error) {
_, _, e1 := syscall_rawSyscall(funcPC(libc_setuid_trampoline), uintptr(uid), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_setuid_trampoline()
//go:linkname libc_setuid libc_setuid
//go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Symlink(path string, link string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(link)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_symlink_trampoline()
//go:linkname libc_symlink libc_symlink
//go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(oldpath)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(newpath)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_symlinkat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_symlinkat_trampoline()
//go:linkname libc_symlinkat libc_symlinkat
//go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Sync() (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_sync_trampoline), 0, 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_sync_trampoline()
//go:linkname libc_sync libc_sync
//go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Truncate(path string, length int64) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_truncate_trampoline()
//go:linkname libc_truncate libc_truncate
//go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Umask(newmask int) (oldmask int) {
r0, _, _ := syscall_syscall(funcPC(libc_umask_trampoline), uintptr(newmask), 0, 0)
oldmask = int(r0)
return
}
func libc_umask_trampoline()
//go:linkname libc_umask libc_umask
//go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Undelete(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_undelete_trampoline()
//go:linkname libc_undelete libc_undelete
//go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Unlink(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_unlink_trampoline()
//go:linkname libc_unlink libc_unlink
//go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Unlinkat(dirfd int, path string, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_unlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_unlinkat_trampoline()
//go:linkname libc_unlinkat libc_unlinkat
//go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Unmount(path string, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_unmount_trampoline()
//go:linkname libc_unmount libc_unmount
//go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func write(fd int, p []byte) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_write_trampoline()
//go:linkname libc_write libc_write
//go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
r0, _, e1 := syscall_syscall6(funcPC(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
ret = uintptr(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_mmap_trampoline()
//go:linkname libc_mmap libc_mmap
//go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func munmap(addr uintptr, length uintptr) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_munmap_trampoline()
//go:linkname libc_munmap libc_munmap
//go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
sec = int64(r0)
usec = int32(r1)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_gettimeofday_trampoline()
//go:linkname libc_gettimeofday libc_gettimeofday
//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstat(fd int, stat *Stat_t) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fstat64_trampoline()
//go:linkname libc_fstat64 libc_fstat64
//go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall6(funcPC(libc_fstatat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fstatat64_trampoline()
//go:linkname libc_fstatat64 libc_fstatat64
//go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := syscall_syscall(funcPC(libc_fstatfs64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_fstatfs64_trampoline()
//go:linkname libc_fstatfs64 libc_fstatfs64
//go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
var _p0 unsafe.Pointer
if len(buf) > 0 {
_p0 = unsafe.Pointer(&buf[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc___getdirentries64_trampoline()
//go:linkname libc___getdirentries64 libc___getdirentries64
//go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_getfsstat64_trampoline()
//go:linkname libc_getfsstat64 libc_getfsstat64
//go:cgo_import_dynamic libc_getfsstat64 getfsstat64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Lstat(path string, stat *Stat_t) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_lstat64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_lstat64_trampoline()
//go:linkname libc_lstat64 libc_lstat64
//go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Stat(path string, stat *Stat_t) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_stat64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_stat64_trampoline()
//go:linkname libc_stat64 libc_stat64
//go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Statfs(path string, stat *Statfs_t) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := syscall_syscall(funcPC(libc_statfs64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
func libc_statfs64_trampoline()
//go:linkname libc_statfs64 libc_statfs64
//go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib"
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.validation.testing.constraints;
import com.google.gwt.validation.client.constraints.MinValidatorForNumber;
import javax.validation.constraints.Min;
/**
* Tests for {@link MinValidatorForNumber}.
*/
public class MinValidatorForNumberTest extends
ConstraintValidatorTestCase<Min, Number> {
private static long SAME = 123456789L;
private static long SMALLER = SAME - 1L;
private static long BIGGER = SAME + 1L;
@Min(123456789L)
public long defaultField;
public void testIsValid_same() {
assertConstraintValidator(Long.valueOf(SAME), true);
}
public void testIsValid_smaller() {
assertConstraintValidator(Long.valueOf(SMALLER), false);
}
public void testIsValid_bigger() {
assertConstraintValidator(Long.valueOf(BIGGER), true);
}
public void testIsValid_minValue() {
assertConstraintValidator(Long.valueOf(Long.MIN_VALUE), false);
}
public void testIsValid_maxValue() {
assertConstraintValidator(Long.valueOf(Long.MAX_VALUE), true);
}
@Override
protected MinValidatorForNumber createValidator() {
return new MinValidatorForNumber();
}
@Override
protected Class<Min> getAnnotationClass() {
return Min.class;
}
}
| {
"pile_set_name": "Github"
} |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package charset provides common text encodings for HTML documents.
//
// The mapping from encoding labels to encodings is defined at
// https://encoding.spec.whatwg.org/.
package charset // import "golang.org/x/net/html/charset"
import (
"bytes"
"fmt"
"io"
"mime"
"strings"
"unicode/utf8"
"golang.org/x/net/html"
"golang.org/x/text/encoding"
"golang.org/x/text/encoding/charmap"
"golang.org/x/text/encoding/htmlindex"
"golang.org/x/text/transform"
)
// Lookup returns the encoding with the specified label, and its canonical
// name. It returns nil and the empty string if label is not one of the
// standard encodings for HTML. Matching is case-insensitive and ignores
// leading and trailing whitespace. Encoders will use HTML escape sequences for
// runes that are not supported by the character set.
func Lookup(label string) (e encoding.Encoding, name string) {
e, err := htmlindex.Get(label)
if err != nil {
return nil, ""
}
name, _ = htmlindex.Name(e)
return &htmlEncoding{e}, name
}
type htmlEncoding struct{ encoding.Encoding }
func (h *htmlEncoding) NewEncoder() *encoding.Encoder {
// HTML requires a non-terminating legacy encoder. We use HTML escapes to
// substitute unsupported code points.
return encoding.HTMLEscapeUnsupported(h.Encoding.NewEncoder())
}
// DetermineEncoding determines the encoding of an HTML document by examining
// up to the first 1024 bytes of content and the declared Content-Type.
//
// See http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#determining-the-character-encoding
func DetermineEncoding(content []byte, contentType string) (e encoding.Encoding, name string, certain bool) {
if len(content) > 1024 {
content = content[:1024]
}
for _, b := range boms {
if bytes.HasPrefix(content, b.bom) {
e, name = Lookup(b.enc)
return e, name, true
}
}
if _, params, err := mime.ParseMediaType(contentType); err == nil {
if cs, ok := params["charset"]; ok {
if e, name = Lookup(cs); e != nil {
return e, name, true
}
}
}
if len(content) > 0 {
e, name = prescan(content)
if e != nil {
return e, name, false
}
}
// Try to detect UTF-8.
// First eliminate any partial rune at the end.
for i := len(content) - 1; i >= 0 && i > len(content)-4; i-- {
b := content[i]
if b < 0x80 {
break
}
if utf8.RuneStart(b) {
content = content[:i]
break
}
}
hasHighBit := false
for _, c := range content {
if c >= 0x80 {
hasHighBit = true
break
}
}
if hasHighBit && utf8.Valid(content) {
return encoding.Nop, "utf-8", false
}
// TODO: change default depending on user's locale?
return charmap.Windows1252, "windows-1252", false
}
// NewReader returns an io.Reader that converts the content of r to UTF-8.
// It calls DetermineEncoding to find out what r's encoding is.
func NewReader(r io.Reader, contentType string) (io.Reader, error) {
preview := make([]byte, 1024)
n, err := io.ReadFull(r, preview)
switch {
case err == io.ErrUnexpectedEOF:
preview = preview[:n]
r = bytes.NewReader(preview)
case err != nil:
return nil, err
default:
r = io.MultiReader(bytes.NewReader(preview), r)
}
if e, _, _ := DetermineEncoding(preview, contentType); e != encoding.Nop {
r = transform.NewReader(r, e.NewDecoder())
}
return r, nil
}
// NewReaderLabel returns a reader that converts from the specified charset to
// UTF-8. It uses Lookup to find the encoding that corresponds to label, and
// returns an error if Lookup returns nil. It is suitable for use as
// encoding/xml.Decoder's CharsetReader function.
func NewReaderLabel(label string, input io.Reader) (io.Reader, error) {
e, _ := Lookup(label)
if e == nil {
return nil, fmt.Errorf("unsupported charset: %q", label)
}
return transform.NewReader(input, e.NewDecoder()), nil
}
func prescan(content []byte) (e encoding.Encoding, name string) {
z := html.NewTokenizer(bytes.NewReader(content))
for {
switch z.Next() {
case html.ErrorToken:
return nil, ""
case html.StartTagToken, html.SelfClosingTagToken:
tagName, hasAttr := z.TagName()
if !bytes.Equal(tagName, []byte("meta")) {
continue
}
attrList := make(map[string]bool)
gotPragma := false
const (
dontKnow = iota
doNeedPragma
doNotNeedPragma
)
needPragma := dontKnow
name = ""
e = nil
for hasAttr {
var key, val []byte
key, val, hasAttr = z.TagAttr()
ks := string(key)
if attrList[ks] {
continue
}
attrList[ks] = true
for i, c := range val {
if 'A' <= c && c <= 'Z' {
val[i] = c + 0x20
}
}
switch ks {
case "http-equiv":
if bytes.Equal(val, []byte("content-type")) {
gotPragma = true
}
case "content":
if e == nil {
name = fromMetaElement(string(val))
if name != "" {
e, name = Lookup(name)
if e != nil {
needPragma = doNeedPragma
}
}
}
case "charset":
e, name = Lookup(string(val))
needPragma = doNotNeedPragma
}
}
if needPragma == dontKnow || needPragma == doNeedPragma && !gotPragma {
continue
}
if strings.HasPrefix(name, "utf-16") {
name = "utf-8"
e = encoding.Nop
}
if e != nil {
return e, name
}
}
}
}
func fromMetaElement(s string) string {
for s != "" {
csLoc := strings.Index(s, "charset")
if csLoc == -1 {
return ""
}
s = s[csLoc+len("charset"):]
s = strings.TrimLeft(s, " \t\n\f\r")
if !strings.HasPrefix(s, "=") {
continue
}
s = s[1:]
s = strings.TrimLeft(s, " \t\n\f\r")
if s == "" {
return ""
}
if q := s[0]; q == '"' || q == '\'' {
s = s[1:]
closeQuote := strings.IndexRune(s, rune(q))
if closeQuote == -1 {
return ""
}
return s[:closeQuote]
}
end := strings.IndexAny(s, "; \t\n\f\r")
if end == -1 {
end = len(s)
}
return s[:end]
}
return ""
}
var boms = []struct {
bom []byte
enc string
}{
{[]byte{0xfe, 0xff}, "utf-16be"},
{[]byte{0xff, 0xfe}, "utf-16le"},
{[]byte{0xef, 0xbb, 0xbf}, "utf-8"},
}
| {
"pile_set_name": "Github"
} |
# We want to access the "PC" (Program Counter) register from a struct
# ucontext. Every system has its own way of doing that. We try all the
# possibilities we know about. Note REG_PC should come first (REG_RIP
# is also defined on solaris, but does the wrong thing).
# OpenBSD doesn't have ucontext.h, but we can get PC from ucontext_t
# by using signal.h.
# The first argument of AC_PC_FROM_UCONTEXT will be invoked when we
# cannot find a way to obtain PC from ucontext.
AC_DEFUN([AC_PC_FROM_UCONTEXT],
[AC_CHECK_HEADERS(ucontext.h)
AC_CHECK_HEADERS(sys/ucontext.h) # ucontext on OS X 10.6 (at least)
AC_MSG_CHECKING([how to access the program counter from a struct ucontext])
pc_fields=" uc_mcontext.gregs[[REG_PC]]" # Solaris x86 (32 + 64 bit)
pc_fields="$pc_fields uc_mcontext.gregs[[REG_EIP]]" # Linux (i386)
pc_fields="$pc_fields uc_mcontext.gregs[[REG_RIP]]" # Linux (x86_64)
pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[[PT_NIP]]" # Linux (ppc)
pc_fields="$pc_fields uc_mcontext.gregs[[R15]]" # Linux (arm old [untested])
pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_EIP]]" # NetBSD (i386)
pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_RIP]]" # NetBSD (x86_64)
pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
pc_field_found=false
for pc_field in $pc_fields; do
if ! $pc_field_found; then
if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
AC_TRY_COMPILE([#define _GNU_SOURCE 1
#include <sys/ucontext.h>],
[ucontext_t u; return u.$pc_field == 0;],
AC_DEFINE_UNQUOTED(PC_FROM_UCONTEXT, $pc_field,
How to access the PC from a struct ucontext)
AC_MSG_RESULT([$pc_field])
pc_field_found=true)
else
AC_TRY_COMPILE([#define _GNU_SOURCE 1
#include <ucontext.h>],
[ucontext_t u; return u.$pc_field == 0;],
AC_DEFINE_UNQUOTED(PC_FROM_UCONTEXT, $pc_field,
How to access the PC from a struct ucontext)
AC_MSG_RESULT([$pc_field])
pc_field_found=true)
fi
fi
done
if ! $pc_field_found; then
pc_fields=" sc_eip" # OpenBSD (i386)
pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
for pc_field in $pc_fields; do
if ! $pc_field_found; then
AC_TRY_COMPILE([#include <signal.h>],
[ucontext_t u; return u.$pc_field == 0;],
AC_DEFINE_UNQUOTED(PC_FROM_UCONTEXT, $pc_field,
How to access the PC from a struct ucontext)
AC_MSG_RESULT([$pc_field])
pc_field_found=true)
fi
done
fi
if ! $pc_field_found; then
[$1]
fi])
| {
"pile_set_name": "Github"
} |
//
// Blackfriday Markdown Processor
// Available at http://github.com/russross/blackfriday
//
// Copyright © 2011 Russ Ross <russ@russross.com>.
// Distributed under the Simplified BSD License.
// See README.md for details.
//
//
//
// Markdown parsing and processing
//
//
package blackfriday
import (
"bytes"
"fmt"
"strings"
"unicode/utf8"
)
const VERSION = "1.5"
// These are the supported markdown parsing extensions.
// OR these values together to select multiple extensions.
const (
EXTENSION_NO_INTRA_EMPHASIS = 1 << iota // ignore emphasis markers inside words
EXTENSION_TABLES // render tables
EXTENSION_FENCED_CODE // render fenced code blocks
EXTENSION_AUTOLINK // detect embedded URLs that are not explicitly marked
EXTENSION_STRIKETHROUGH // strikethrough text using ~~test~~
EXTENSION_LAX_HTML_BLOCKS // loosen up HTML block parsing rules
EXTENSION_SPACE_HEADERS // be strict about prefix header rules
EXTENSION_HARD_LINE_BREAK // translate newlines into line breaks
EXTENSION_TAB_SIZE_EIGHT // expand tabs to eight spaces instead of four
EXTENSION_FOOTNOTES // Pandoc-style footnotes
EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK // No need to insert an empty line to start a (code, quote, ordered list, unordered list) block
EXTENSION_HEADER_IDS // specify header IDs with {#id}
EXTENSION_TITLEBLOCK // Titleblock ala pandoc
EXTENSION_AUTO_HEADER_IDS // Create the header ID from the text
EXTENSION_BACKSLASH_LINE_BREAK // translate trailing backslashes into line breaks
EXTENSION_DEFINITION_LISTS // render definition lists
EXTENSION_JOIN_LINES // delete newline and join lines
commonHtmlFlags = 0 |
HTML_USE_XHTML |
HTML_USE_SMARTYPANTS |
HTML_SMARTYPANTS_FRACTIONS |
HTML_SMARTYPANTS_DASHES |
HTML_SMARTYPANTS_LATEX_DASHES
commonExtensions = 0 |
EXTENSION_NO_INTRA_EMPHASIS |
EXTENSION_TABLES |
EXTENSION_FENCED_CODE |
EXTENSION_AUTOLINK |
EXTENSION_STRIKETHROUGH |
EXTENSION_SPACE_HEADERS |
EXTENSION_HEADER_IDS |
EXTENSION_BACKSLASH_LINE_BREAK |
EXTENSION_DEFINITION_LISTS
)
// These are the possible flag values for the link renderer.
// Only a single one of these values will be used; they are not ORed together.
// These are mostly of interest if you are writing a new output format.
const (
LINK_TYPE_NOT_AUTOLINK = iota
LINK_TYPE_NORMAL
LINK_TYPE_EMAIL
)
// These are the possible flag values for the ListItem renderer.
// Multiple flag values may be ORed together.
// These are mostly of interest if you are writing a new output format.
const (
LIST_TYPE_ORDERED = 1 << iota
LIST_TYPE_DEFINITION
LIST_TYPE_TERM
LIST_ITEM_CONTAINS_BLOCK
LIST_ITEM_BEGINNING_OF_LIST
LIST_ITEM_END_OF_LIST
)
// These are the possible flag values for the table cell renderer.
// Only a single one of these values will be used; they are not ORed together.
// These are mostly of interest if you are writing a new output format.
const (
TABLE_ALIGNMENT_LEFT = 1 << iota
TABLE_ALIGNMENT_RIGHT
TABLE_ALIGNMENT_CENTER = (TABLE_ALIGNMENT_LEFT | TABLE_ALIGNMENT_RIGHT)
)
// The size of a tab stop.
const (
TAB_SIZE_DEFAULT = 4
TAB_SIZE_EIGHT = 8
)
// blockTags is a set of tags that are recognized as HTML block tags.
// Any of these can be included in markdown text without special escaping.
var blockTags = map[string]struct{}{
"blockquote": {},
"del": {},
"div": {},
"dl": {},
"fieldset": {},
"form": {},
"h1": {},
"h2": {},
"h3": {},
"h4": {},
"h5": {},
"h6": {},
"iframe": {},
"ins": {},
"math": {},
"noscript": {},
"ol": {},
"pre": {},
"p": {},
"script": {},
"style": {},
"table": {},
"ul": {},
// HTML5
"address": {},
"article": {},
"aside": {},
"canvas": {},
"figcaption": {},
"figure": {},
"footer": {},
"header": {},
"hgroup": {},
"main": {},
"nav": {},
"output": {},
"progress": {},
"section": {},
"video": {},
}
// Renderer is the rendering interface.
// This is mostly of interest if you are implementing a new rendering format.
//
// When a byte slice is provided, it contains the (rendered) contents of the
// element.
//
// When a callback is provided instead, it will write the contents of the
// respective element directly to the output buffer and return true on success.
// If the callback returns false, the rendering function should reset the
// output buffer as though it had never been called.
//
// Currently Html and Latex implementations are provided
type Renderer interface {
// block-level callbacks
BlockCode(out *bytes.Buffer, text []byte, infoString string)
BlockQuote(out *bytes.Buffer, text []byte)
BlockHtml(out *bytes.Buffer, text []byte)
Header(out *bytes.Buffer, text func() bool, level int, id string)
HRule(out *bytes.Buffer)
List(out *bytes.Buffer, text func() bool, flags int)
ListItem(out *bytes.Buffer, text []byte, flags int)
Paragraph(out *bytes.Buffer, text func() bool)
Table(out *bytes.Buffer, header []byte, body []byte, columnData []int)
TableRow(out *bytes.Buffer, text []byte)
TableHeaderCell(out *bytes.Buffer, text []byte, flags int)
TableCell(out *bytes.Buffer, text []byte, flags int)
Footnotes(out *bytes.Buffer, text func() bool)
FootnoteItem(out *bytes.Buffer, name, text []byte, flags int)
TitleBlock(out *bytes.Buffer, text []byte)
// Span-level callbacks
AutoLink(out *bytes.Buffer, link []byte, kind int)
CodeSpan(out *bytes.Buffer, text []byte)
DoubleEmphasis(out *bytes.Buffer, text []byte)
Emphasis(out *bytes.Buffer, text []byte)
Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)
LineBreak(out *bytes.Buffer)
Link(out *bytes.Buffer, link []byte, title []byte, content []byte)
RawHtmlTag(out *bytes.Buffer, tag []byte)
TripleEmphasis(out *bytes.Buffer, text []byte)
StrikeThrough(out *bytes.Buffer, text []byte)
FootnoteRef(out *bytes.Buffer, ref []byte, id int)
// Low-level callbacks
Entity(out *bytes.Buffer, entity []byte)
NormalText(out *bytes.Buffer, text []byte)
// Header and footer
DocumentHeader(out *bytes.Buffer)
DocumentFooter(out *bytes.Buffer)
GetFlags() int
}
// Callback functions for inline parsing. One such function is defined
// for each character that triggers a response when parsing inline data.
type inlineParser func(p *parser, out *bytes.Buffer, data []byte, offset int) int
// Parser holds runtime state used by the parser.
// This is constructed by the Markdown function.
type parser struct {
r Renderer
refOverride ReferenceOverrideFunc
refs map[string]*reference
inlineCallback [256]inlineParser
flags int
nesting int
maxNesting int
insideLink bool
// Footnotes need to be ordered as well as available to quickly check for
// presence. If a ref is also a footnote, it's stored both in refs and here
// in notes. Slice is nil if footnotes not enabled.
notes []*reference
notesRecord map[string]struct{}
}
func (p *parser) getRef(refid string) (ref *reference, found bool) {
if p.refOverride != nil {
r, overridden := p.refOverride(refid)
if overridden {
if r == nil {
return nil, false
}
return &reference{
link: []byte(r.Link),
title: []byte(r.Title),
noteId: 0,
hasBlock: false,
text: []byte(r.Text)}, true
}
}
// refs are case insensitive
ref, found = p.refs[strings.ToLower(refid)]
return ref, found
}
func (p *parser) isFootnote(ref *reference) bool {
_, ok := p.notesRecord[string(ref.link)]
return ok
}
//
//
// Public interface
//
//
// Reference represents the details of a link.
// See the documentation in Options for more details on use-case.
type Reference struct {
// Link is usually the URL the reference points to.
Link string
// Title is the alternate text describing the link in more detail.
Title string
// Text is the optional text to override the ref with if the syntax used was
// [refid][]
Text string
}
// ReferenceOverrideFunc is expected to be called with a reference string and
// return either a valid Reference type that the reference string maps to or
// nil. If overridden is false, the default reference logic will be executed.
// See the documentation in Options for more details on use-case.
type ReferenceOverrideFunc func(reference string) (ref *Reference, overridden bool)
// Options represents configurable overrides and callbacks (in addition to the
// extension flag set) for configuring a Markdown parse.
type Options struct {
// Extensions is a flag set of bit-wise ORed extension bits. See the
// EXTENSION_* flags defined in this package.
Extensions int
// ReferenceOverride is an optional function callback that is called every
// time a reference is resolved.
//
// In Markdown, the link reference syntax can be made to resolve a link to
// a reference instead of an inline URL, in one of the following ways:
//
// * [link text][refid]
// * [refid][]
//
// Usually, the refid is defined at the bottom of the Markdown document. If
// this override function is provided, the refid is passed to the override
// function first, before consulting the defined refids at the bottom. If
// the override function indicates an override did not occur, the refids at
// the bottom will be used to fill in the link details.
ReferenceOverride ReferenceOverrideFunc
}
// MarkdownBasic is a convenience function for simple rendering.
// It processes markdown input with no extensions enabled.
func MarkdownBasic(input []byte) []byte {
// set up the HTML renderer
htmlFlags := HTML_USE_XHTML
renderer := HtmlRenderer(htmlFlags, "", "")
// set up the parser
return MarkdownOptions(input, renderer, Options{Extensions: 0})
}
// Call Markdown with most useful extensions enabled
// MarkdownCommon is a convenience function for simple rendering.
// It processes markdown input with common extensions enabled, including:
//
// * Smartypants processing with smart fractions and LaTeX dashes
//
// * Intra-word emphasis suppression
//
// * Tables
//
// * Fenced code blocks
//
// * Autolinking
//
// * Strikethrough support
//
// * Strict header parsing
//
// * Custom Header IDs
func MarkdownCommon(input []byte) []byte {
// set up the HTML renderer
renderer := HtmlRenderer(commonHtmlFlags, "", "")
return MarkdownOptions(input, renderer, Options{
Extensions: commonExtensions})
}
// Markdown is the main rendering function.
// It parses and renders a block of markdown-encoded text.
// The supplied Renderer is used to format the output, and extensions dictates
// which non-standard extensions are enabled.
//
// To use the supplied Html or LaTeX renderers, see HtmlRenderer and
// LatexRenderer, respectively.
func Markdown(input []byte, renderer Renderer, extensions int) []byte {
return MarkdownOptions(input, renderer, Options{
Extensions: extensions})
}
// MarkdownOptions is just like Markdown but takes additional options through
// the Options struct.
func MarkdownOptions(input []byte, renderer Renderer, opts Options) []byte {
// no point in parsing if we can't render
if renderer == nil {
return nil
}
extensions := opts.Extensions
// fill in the render structure
p := new(parser)
p.r = renderer
p.flags = extensions
p.refOverride = opts.ReferenceOverride
p.refs = make(map[string]*reference)
p.maxNesting = 16
p.insideLink = false
// register inline parsers
p.inlineCallback['*'] = emphasis
p.inlineCallback['_'] = emphasis
if extensions&EXTENSION_STRIKETHROUGH != 0 {
p.inlineCallback['~'] = emphasis
}
p.inlineCallback['`'] = codeSpan
p.inlineCallback['\n'] = lineBreak
p.inlineCallback['['] = link
p.inlineCallback['<'] = leftAngle
p.inlineCallback['\\'] = escape
p.inlineCallback['&'] = entity
if extensions&EXTENSION_AUTOLINK != 0 {
p.inlineCallback[':'] = autoLink
}
if extensions&EXTENSION_FOOTNOTES != 0 {
p.notes = make([]*reference, 0)
p.notesRecord = make(map[string]struct{})
}
first := firstPass(p, input)
second := secondPass(p, first)
return second
}
// first pass:
// - normalize newlines
// - extract references (outside of fenced code blocks)
// - expand tabs (outside of fenced code blocks)
// - copy everything else
func firstPass(p *parser, input []byte) []byte {
var out bytes.Buffer
tabSize := TAB_SIZE_DEFAULT
if p.flags&EXTENSION_TAB_SIZE_EIGHT != 0 {
tabSize = TAB_SIZE_EIGHT
}
beg := 0
lastFencedCodeBlockEnd := 0
for beg < len(input) {
// Find end of this line, then process the line.
end := beg
for end < len(input) && input[end] != '\n' && input[end] != '\r' {
end++
}
if p.flags&EXTENSION_FENCED_CODE != 0 {
// track fenced code block boundaries to suppress tab expansion
// and reference extraction inside them:
if beg >= lastFencedCodeBlockEnd {
if i := p.fencedCodeBlock(&out, input[beg:], false); i > 0 {
lastFencedCodeBlockEnd = beg + i
}
}
}
// add the line body if present
if end > beg {
if end < lastFencedCodeBlockEnd { // Do not expand tabs while inside fenced code blocks.
out.Write(input[beg:end])
} else if refEnd := isReference(p, input[beg:], tabSize); refEnd > 0 {
beg += refEnd
continue
} else {
expandTabs(&out, input[beg:end], tabSize)
}
}
if end < len(input) && input[end] == '\r' {
end++
}
if end < len(input) && input[end] == '\n' {
end++
}
out.WriteByte('\n')
beg = end
}
// empty input?
if out.Len() == 0 {
out.WriteByte('\n')
}
return out.Bytes()
}
// second pass: actual rendering
func secondPass(p *parser, input []byte) []byte {
var output bytes.Buffer
p.r.DocumentHeader(&output)
p.block(&output, input)
if p.flags&EXTENSION_FOOTNOTES != 0 && len(p.notes) > 0 {
p.r.Footnotes(&output, func() bool {
flags := LIST_ITEM_BEGINNING_OF_LIST
for i := 0; i < len(p.notes); i += 1 {
ref := p.notes[i]
var buf bytes.Buffer
if ref.hasBlock {
flags |= LIST_ITEM_CONTAINS_BLOCK
p.block(&buf, ref.title)
} else {
p.inline(&buf, ref.title)
}
p.r.FootnoteItem(&output, ref.link, buf.Bytes(), flags)
flags &^= LIST_ITEM_BEGINNING_OF_LIST | LIST_ITEM_CONTAINS_BLOCK
}
return true
})
}
p.r.DocumentFooter(&output)
if p.nesting != 0 {
panic("Nesting level did not end at zero")
}
return output.Bytes()
}
//
// Link references
//
// This section implements support for references that (usually) appear
// as footnotes in a document, and can be referenced anywhere in the document.
// The basic format is:
//
// [1]: http://www.google.com/ "Google"
// [2]: http://www.github.com/ "Github"
//
// Anywhere in the document, the reference can be linked by referring to its
// label, i.e., 1 and 2 in this example, as in:
//
// This library is hosted on [Github][2], a git hosting site.
//
// Actual footnotes as specified in Pandoc and supported by some other Markdown
// libraries such as php-markdown are also taken care of. They look like this:
//
// This sentence needs a bit of further explanation.[^note]
//
// [^note]: This is the explanation.
//
// Footnotes should be placed at the end of the document in an ordered list.
// Inline footnotes such as:
//
// Inline footnotes^[Not supported.] also exist.
//
// are not yet supported.
// References are parsed and stored in this struct.
type reference struct {
link []byte
title []byte
noteId int // 0 if not a footnote ref
hasBlock bool
text []byte
}
func (r *reference) String() string {
return fmt.Sprintf("{link: %q, title: %q, text: %q, noteId: %d, hasBlock: %v}",
r.link, r.title, r.text, r.noteId, r.hasBlock)
}
// Check whether or not data starts with a reference link.
// If so, it is parsed and stored in the list of references
// (in the render struct).
// Returns the number of bytes to skip to move past it,
// or zero if the first line is not a reference.
func isReference(p *parser, data []byte, tabSize int) int {
// up to 3 optional leading spaces
if len(data) < 4 {
return 0
}
i := 0
for i < 3 && data[i] == ' ' {
i++
}
noteId := 0
// id part: anything but a newline between brackets
if data[i] != '[' {
return 0
}
i++
if p.flags&EXTENSION_FOOTNOTES != 0 {
if i < len(data) && data[i] == '^' {
// we can set it to anything here because the proper noteIds will
// be assigned later during the second pass. It just has to be != 0
noteId = 1
i++
}
}
idOffset := i
for i < len(data) && data[i] != '\n' && data[i] != '\r' && data[i] != ']' {
i++
}
if i >= len(data) || data[i] != ']' {
return 0
}
idEnd := i
// spacer: colon (space | tab)* newline? (space | tab)*
i++
if i >= len(data) || data[i] != ':' {
return 0
}
i++
for i < len(data) && (data[i] == ' ' || data[i] == '\t') {
i++
}
if i < len(data) && (data[i] == '\n' || data[i] == '\r') {
i++
if i < len(data) && data[i] == '\n' && data[i-1] == '\r' {
i++
}
}
for i < len(data) && (data[i] == ' ' || data[i] == '\t') {
i++
}
if i >= len(data) {
return 0
}
var (
linkOffset, linkEnd int
titleOffset, titleEnd int
lineEnd int
raw []byte
hasBlock bool
)
if p.flags&EXTENSION_FOOTNOTES != 0 && noteId != 0 {
linkOffset, linkEnd, raw, hasBlock = scanFootnote(p, data, i, tabSize)
lineEnd = linkEnd
} else {
linkOffset, linkEnd, titleOffset, titleEnd, lineEnd = scanLinkRef(p, data, i)
}
if lineEnd == 0 {
return 0
}
// a valid ref has been found
ref := &reference{
noteId: noteId,
hasBlock: hasBlock,
}
if noteId > 0 {
// reusing the link field for the id since footnotes don't have links
ref.link = data[idOffset:idEnd]
// if footnote, it's not really a title, it's the contained text
ref.title = raw
} else {
ref.link = data[linkOffset:linkEnd]
ref.title = data[titleOffset:titleEnd]
}
// id matches are case-insensitive
id := string(bytes.ToLower(data[idOffset:idEnd]))
p.refs[id] = ref
return lineEnd
}
func scanLinkRef(p *parser, data []byte, i int) (linkOffset, linkEnd, titleOffset, titleEnd, lineEnd int) {
// link: whitespace-free sequence, optionally between angle brackets
if data[i] == '<' {
i++
}
linkOffset = i
if i == len(data) {
return
}
for i < len(data) && data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r' {
i++
}
linkEnd = i
if data[linkOffset] == '<' && data[linkEnd-1] == '>' {
linkOffset++
linkEnd--
}
// optional spacer: (space | tab)* (newline | '\'' | '"' | '(' )
for i < len(data) && (data[i] == ' ' || data[i] == '\t') {
i++
}
if i < len(data) && data[i] != '\n' && data[i] != '\r' && data[i] != '\'' && data[i] != '"' && data[i] != '(' {
return
}
// compute end-of-line
if i >= len(data) || data[i] == '\r' || data[i] == '\n' {
lineEnd = i
}
if i+1 < len(data) && data[i] == '\r' && data[i+1] == '\n' {
lineEnd++
}
// optional (space|tab)* spacer after a newline
if lineEnd > 0 {
i = lineEnd + 1
for i < len(data) && (data[i] == ' ' || data[i] == '\t') {
i++
}
}
// optional title: any non-newline sequence enclosed in '"() alone on its line
if i+1 < len(data) && (data[i] == '\'' || data[i] == '"' || data[i] == '(') {
i++
titleOffset = i
// look for EOL
for i < len(data) && data[i] != '\n' && data[i] != '\r' {
i++
}
if i+1 < len(data) && data[i] == '\n' && data[i+1] == '\r' {
titleEnd = i + 1
} else {
titleEnd = i
}
// step back
i--
for i > titleOffset && (data[i] == ' ' || data[i] == '\t') {
i--
}
if i > titleOffset && (data[i] == '\'' || data[i] == '"' || data[i] == ')') {
lineEnd = titleEnd
titleEnd = i
}
}
return
}
// The first bit of this logic is the same as (*parser).listItem, but the rest
// is much simpler. This function simply finds the entire block and shifts it
// over by one tab if it is indeed a block (just returns the line if it's not).
// blockEnd is the end of the section in the input buffer, and contents is the
// extracted text that was shifted over one tab. It will need to be rendered at
// the end of the document.
func scanFootnote(p *parser, data []byte, i, indentSize int) (blockStart, blockEnd int, contents []byte, hasBlock bool) {
if i == 0 || len(data) == 0 {
return
}
// skip leading whitespace on first line
for i < len(data) && data[i] == ' ' {
i++
}
blockStart = i
// find the end of the line
blockEnd = i
for i < len(data) && data[i-1] != '\n' {
i++
}
// get working buffer
var raw bytes.Buffer
// put the first line into the working buffer
raw.Write(data[blockEnd:i])
blockEnd = i
// process the following lines
containsBlankLine := false
gatherLines:
for blockEnd < len(data) {
i++
// find the end of this line
for i < len(data) && data[i-1] != '\n' {
i++
}
// if it is an empty line, guess that it is part of this item
// and move on to the next line
if p.isEmpty(data[blockEnd:i]) > 0 {
containsBlankLine = true
blockEnd = i
continue
}
n := 0
if n = isIndented(data[blockEnd:i], indentSize); n == 0 {
// this is the end of the block.
// we don't want to include this last line in the index.
break gatherLines
}
// if there were blank lines before this one, insert a new one now
if containsBlankLine {
raw.WriteByte('\n')
containsBlankLine = false
}
// get rid of that first tab, write to buffer
raw.Write(data[blockEnd+n : i])
hasBlock = true
blockEnd = i
}
if data[blockEnd-1] != '\n' {
raw.WriteByte('\n')
}
contents = raw.Bytes()
return
}
//
//
// Miscellaneous helper functions
//
//
// Test if a character is a punctuation symbol.
// Taken from a private function in regexp in the stdlib.
func ispunct(c byte) bool {
for _, r := range []byte("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~") {
if c == r {
return true
}
}
return false
}
// Test if a character is a whitespace character.
func isspace(c byte) bool {
return ishorizontalspace(c) || isverticalspace(c)
}
// Test if a character is a horizontal whitespace character.
func ishorizontalspace(c byte) bool {
return c == ' ' || c == '\t'
}
// Test if a character is a vertical whitespace character.
func isverticalspace(c byte) bool {
return c == '\n' || c == '\r' || c == '\f' || c == '\v'
}
// Test if a character is letter.
func isletter(c byte) bool {
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
}
// Test if a character is a letter or a digit.
// TODO: check when this is looking for ASCII alnum and when it should use unicode
func isalnum(c byte) bool {
return (c >= '0' && c <= '9') || isletter(c)
}
// Replace tab characters with spaces, aligning to the next TAB_SIZE column.
// always ends output with a newline
func expandTabs(out *bytes.Buffer, line []byte, tabSize int) {
// first, check for common cases: no tabs, or only tabs at beginning of line
i, prefix := 0, 0
slowcase := false
for i = 0; i < len(line); i++ {
if line[i] == '\t' {
if prefix == i {
prefix++
} else {
slowcase = true
break
}
}
}
// no need to decode runes if all tabs are at the beginning of the line
if !slowcase {
for i = 0; i < prefix*tabSize; i++ {
out.WriteByte(' ')
}
out.Write(line[prefix:])
return
}
// the slow case: we need to count runes to figure out how
// many spaces to insert for each tab
column := 0
i = 0
for i < len(line) {
start := i
for i < len(line) && line[i] != '\t' {
_, size := utf8.DecodeRune(line[i:])
i += size
column++
}
if i > start {
out.Write(line[start:i])
}
if i >= len(line) {
break
}
for {
out.WriteByte(' ')
column++
if column%tabSize == 0 {
break
}
}
i++
}
}
// Find if a line counts as indented or not.
// Returns number of characters the indent is (0 = not indented).
func isIndented(data []byte, indentSize int) int {
if len(data) == 0 {
return 0
}
if data[0] == '\t' {
return 1
}
if len(data) < indentSize {
return 0
}
for i := 0; i < indentSize; i++ {
if data[i] != ' ' {
return 0
}
}
return indentSize
}
// Create a url-safe slug for fragments
func slugify(in []byte) []byte {
if len(in) == 0 {
return in
}
out := make([]byte, 0, len(in))
sym := false
for _, ch := range in {
if isalnum(ch) {
sym = false
out = append(out, ch)
} else if sym {
continue
} else {
out = append(out, '-')
sym = true
}
}
var a, b int
var ch byte
for a, ch = range out {
if ch != '-' {
break
}
}
for b = len(out) - 1; b > 0; b-- {
if out[b] != '-' {
break
}
}
return out[a : b+1]
}
| {
"pile_set_name": "Github"
} |
/*
* rand.h
*
* Pseudo-random number generation, based on OpenBSD arc4random().
*
* Copyright (c) 2000 Dug Song <dugsong@monkey.org>
* Copyright (c) 1996 David Mazieres <dm@lcs.mit.edu>
*
* $Id: rand.h,v 1.4 2002/04/07 19:01:25 dugsong Exp $
*/
#ifndef DNET_RAND_H
#define DNET_RAND_H
typedef struct rand_handle rand_t;
__BEGIN_DECLS
rand_t *rand_open(void);
int rand_get(rand_t *r, void *buf, size_t len);
int rand_set(rand_t *r, const void *seed, size_t len);
int rand_add(rand_t *r, const void *buf, size_t len);
uint8_t rand_uint8(rand_t *r);
uint16_t rand_uint16(rand_t *r);
uint32_t rand_uint32(rand_t *r);
int rand_shuffle(rand_t *r, void *base, size_t nmemb, size_t size);
rand_t *rand_close(rand_t *r);
__END_DECLS
#endif /* DNET_RAND_H */
| {
"pile_set_name": "Github"
} |
# You can only be a GTK owner if your name starts with "e".
erg@chromium.org
estade@chromium.org
| {
"pile_set_name": "Github"
} |
rv64ui-v-add: file format elf64-littleriscv
Disassembly of section .text.init:
0000000080000000 <_start>:
80000000: 00c0006f j 8000000c <handle_reset>
0000000080000004 <nmi_vector>:
80000004: 25c0206f j 80002260 <wtf>
0000000080000008 <trap_vector>:
80000008: 2580206f j 80002260 <wtf>
000000008000000c <handle_reset>:
8000000c: 00000297 auipc t0,0x0
80000010: ffc28293 addi t0,t0,-4 # 80000008 <trap_vector>
80000014: 30529073 csrw mtvec,t0
80000018: 00009117 auipc sp,0x9
8000001c: 6b810113 addi sp,sp,1720 # 800096d0 <_end+0xee0>
80000020: f14022f3 csrr t0,mhartid
80000024: 00c29293 slli t0,t0,0xc
80000028: 00510133 add sp,sp,t0
8000002c: 34011073 csrw mscratch,sp
80000030: 2a9020ef jal ra,80002ad8 <extra_boot>
80000034: 00003517 auipc a0,0x3
80000038: aa850513 addi a0,a0,-1368 # 80002adc <userstart>
8000003c: 0a50206f j 800028e0 <vm_boot>
0000000080000040 <pop_tf>:
80000040: 10853283 ld t0,264(a0)
80000044: 14129073 csrw sepc,t0
80000048: 00853083 ld ra,8(a0)
8000004c: 01053103 ld sp,16(a0)
80000050: 01853183 ld gp,24(a0)
80000054: 02053203 ld tp,32(a0)
80000058: 02853283 ld t0,40(a0)
8000005c: 03053303 ld t1,48(a0)
80000060: 03853383 ld t2,56(a0)
80000064: 04053403 ld s0,64(a0)
80000068: 04853483 ld s1,72(a0)
8000006c: 05853583 ld a1,88(a0)
80000070: 06053603 ld a2,96(a0)
80000074: 06853683 ld a3,104(a0)
80000078: 07053703 ld a4,112(a0)
8000007c: 07853783 ld a5,120(a0)
80000080: 08053803 ld a6,128(a0)
80000084: 08853883 ld a7,136(a0)
80000088: 09053903 ld s2,144(a0)
8000008c: 09853983 ld s3,152(a0)
80000090: 0a053a03 ld s4,160(a0)
80000094: 0a853a83 ld s5,168(a0)
80000098: 0b053b03 ld s6,176(a0)
8000009c: 0b853b83 ld s7,184(a0)
800000a0: 0c053c03 ld s8,192(a0)
800000a4: 0c853c83 ld s9,200(a0)
800000a8: 0d053d03 ld s10,208(a0)
800000ac: 0d853d83 ld s11,216(a0)
800000b0: 0e053e03 ld t3,224(a0)
800000b4: 0e853e83 ld t4,232(a0)
800000b8: 0f053f03 ld t5,240(a0)
800000bc: 0f853f83 ld t6,248(a0)
800000c0: 05053503 ld a0,80(a0)
800000c4: 10200073 sret
00000000800000c8 <trap_entry>:
800000c8: 14011173 csrrw sp,sscratch,sp
800000cc: 00113423 sd ra,8(sp)
800000d0: 00313c23 sd gp,24(sp)
800000d4: 02413023 sd tp,32(sp)
800000d8: 02513423 sd t0,40(sp)
800000dc: 02613823 sd t1,48(sp)
800000e0: 02713c23 sd t2,56(sp)
800000e4: 04813023 sd s0,64(sp)
800000e8: 04913423 sd s1,72(sp)
800000ec: 04a13823 sd a0,80(sp)
800000f0: 04b13c23 sd a1,88(sp)
800000f4: 06c13023 sd a2,96(sp)
800000f8: 06d13423 sd a3,104(sp)
800000fc: 06e13823 sd a4,112(sp)
80000100: 06f13c23 sd a5,120(sp)
80000104: 09013023 sd a6,128(sp)
80000108: 09113423 sd a7,136(sp)
8000010c: 09213823 sd s2,144(sp)
80000110: 09313c23 sd s3,152(sp)
80000114: 0b413023 sd s4,160(sp)
80000118: 0b513423 sd s5,168(sp)
8000011c: 0b613823 sd s6,176(sp)
80000120: 0b713c23 sd s7,184(sp)
80000124: 0d813023 sd s8,192(sp)
80000128: 0d913423 sd s9,200(sp)
8000012c: 0da13823 sd s10,208(sp)
80000130: 0db13c23 sd s11,216(sp)
80000134: 0fc13023 sd t3,224(sp)
80000138: 0fd13423 sd t4,232(sp)
8000013c: 0fe13823 sd t5,240(sp)
80000140: 0ff13c23 sd t6,248(sp)
80000144: 140112f3 csrrw t0,sscratch,sp
80000148: 00513823 sd t0,16(sp)
8000014c: 100022f3 csrr t0,sstatus
80000150: 10513023 sd t0,256(sp)
80000154: 141022f3 csrr t0,sepc
80000158: 10513423 sd t0,264(sp)
8000015c: 143022f3 csrr t0,stval
80000160: 10513823 sd t0,272(sp)
80000164: 142022f3 csrr t0,scause
80000168: 10513c23 sd t0,280(sp)
8000016c: 00010513 mv a0,sp
80000170: 4380206f j 800025a8 <handle_trap>
Disassembly of section .text:
0000000080002000 <memcpy>:
80002000: 00c5e7b3 or a5,a1,a2
80002004: 00f567b3 or a5,a0,a5
80002008: 0077f793 andi a5,a5,7
8000200c: 00c506b3 add a3,a0,a2
80002010: 02078463 beqz a5,80002038 <memcpy+0x38>
80002014: 00c58633 add a2,a1,a2
80002018: 00050793 mv a5,a0
8000201c: 02d57e63 bgeu a0,a3,80002058 <memcpy+0x58>
80002020: 00158593 addi a1,a1,1
80002024: fff5c703 lbu a4,-1(a1)
80002028: 00178793 addi a5,a5,1
8000202c: fee78fa3 sb a4,-1(a5)
80002030: feb618e3 bne a2,a1,80002020 <memcpy+0x20>
80002034: 00008067 ret
80002038: fed57ee3 bgeu a0,a3,80002034 <memcpy+0x34>
8000203c: 00050793 mv a5,a0
80002040: 00858593 addi a1,a1,8
80002044: ff85b703 ld a4,-8(a1)
80002048: 00878793 addi a5,a5,8
8000204c: fee7bc23 sd a4,-8(a5)
80002050: fed7e8e3 bltu a5,a3,80002040 <memcpy+0x40>
80002054: 00008067 ret
80002058: 00008067 ret
000000008000205c <memset>:
8000205c: 00c567b3 or a5,a0,a2
80002060: 0077f793 andi a5,a5,7
80002064: 00c50633 add a2,a0,a2
80002068: 0ff5f593 andi a1,a1,255
8000206c: 00078e63 beqz a5,80002088 <memset+0x2c>
80002070: 00050793 mv a5,a0
80002074: 04c57263 bgeu a0,a2,800020b8 <memset+0x5c>
80002078: 00178793 addi a5,a5,1
8000207c: feb78fa3 sb a1,-1(a5)
80002080: fef61ce3 bne a2,a5,80002078 <memset+0x1c>
80002084: 00008067 ret
80002088: 00859793 slli a5,a1,0x8
8000208c: 00b7e5b3 or a1,a5,a1
80002090: 01059793 slli a5,a1,0x10
80002094: 00b7e7b3 or a5,a5,a1
80002098: 02079593 slli a1,a5,0x20
8000209c: 00f5e5b3 or a1,a1,a5
800020a0: fec572e3 bgeu a0,a2,80002084 <memset+0x28>
800020a4: 00050793 mv a5,a0
800020a8: 00878793 addi a5,a5,8
800020ac: feb7bc23 sd a1,-8(a5)
800020b0: fec7ece3 bltu a5,a2,800020a8 <memset+0x4c>
800020b4: 00008067 ret
800020b8: 00008067 ret
00000000800020bc <strlen>:
800020bc: 00054783 lbu a5,0(a0)
800020c0: 00078e63 beqz a5,800020dc <strlen+0x20>
800020c4: 00050793 mv a5,a0
800020c8: 00178793 addi a5,a5,1
800020cc: 0007c703 lbu a4,0(a5)
800020d0: fe071ce3 bnez a4,800020c8 <strlen+0xc>
800020d4: 40a78533 sub a0,a5,a0
800020d8: 00008067 ret
800020dc: 00000513 li a0,0
800020e0: 00008067 ret
00000000800020e4 <strcmp>:
800020e4: 00150513 addi a0,a0,1
800020e8: fff54783 lbu a5,-1(a0)
800020ec: 00158593 addi a1,a1,1
800020f0: fff5c703 lbu a4,-1(a1)
800020f4: 00078a63 beqz a5,80002108 <strcmp+0x24>
800020f8: fee786e3 beq a5,a4,800020e4 <strcmp>
800020fc: 0007851b sext.w a0,a5
80002100: 40e5053b subw a0,a0,a4
80002104: 00008067 ret
80002108: 00000513 li a0,0
8000210c: ff5ff06f j 80002100 <strcmp+0x1c>
0000000080002110 <memcmp>:
80002110: 00b567b3 or a5,a0,a1
80002114: 0077f793 andi a5,a5,7
80002118: 04079463 bnez a5,80002160 <memcmp+0x50>
8000211c: ff867813 andi a6,a2,-8
80002120: 01050833 add a6,a0,a6
80002124: 03057e63 bgeu a0,a6,80002160 <memcmp+0x50>
80002128: 0005b703 ld a4,0(a1)
8000212c: 00053783 ld a5,0(a0)
80002130: 02f71863 bne a4,a5,80002160 <memcmp+0x50>
80002134: 00050793 mv a5,a0
80002138: 0100006f j 80002148 <memcmp+0x38>
8000213c: 0007b683 ld a3,0(a5)
80002140: 0005b703 ld a4,0(a1)
80002144: 00e69863 bne a3,a4,80002154 <memcmp+0x44>
80002148: 00878793 addi a5,a5,8
8000214c: 00858593 addi a1,a1,8
80002150: ff07e6e3 bltu a5,a6,8000213c <memcmp+0x2c>
80002154: 40a78533 sub a0,a5,a0
80002158: 40a60633 sub a2,a2,a0
8000215c: 00078513 mv a0,a5
80002160: 00c58633 add a2,a1,a2
80002164: 0140006f j 80002178 <memcmp+0x68>
80002168: 00158593 addi a1,a1,1
8000216c: fff54783 lbu a5,-1(a0)
80002170: fff5c703 lbu a4,-1(a1)
80002174: 00e79a63 bne a5,a4,80002188 <memcmp+0x78>
80002178: 00150513 addi a0,a0,1
8000217c: fec596e3 bne a1,a2,80002168 <memcmp+0x58>
80002180: 00000513 li a0,0
80002184: 00008067 ret
80002188: 40e7853b subw a0,a5,a4
8000218c: 00008067 ret
0000000080002190 <strcpy>:
80002190: 00050793 mv a5,a0
80002194: 00158593 addi a1,a1,1
80002198: fff5c703 lbu a4,-1(a1)
8000219c: 00178793 addi a5,a5,1
800021a0: fee78fa3 sb a4,-1(a5)
800021a4: fe0718e3 bnez a4,80002194 <strcpy+0x4>
800021a8: 00008067 ret
00000000800021ac <atol>:
800021ac: 00054783 lbu a5,0(a0)
800021b0: 02000713 li a4,32
800021b4: 00e79863 bne a5,a4,800021c4 <atol+0x18>
800021b8: 00150513 addi a0,a0,1
800021bc: 00054783 lbu a5,0(a0)
800021c0: fee78ce3 beq a5,a4,800021b8 <atol+0xc>
800021c4: fd57871b addiw a4,a5,-43
800021c8: 0fd77713 andi a4,a4,253
800021cc: 04070263 beqz a4,80002210 <atol+0x64>
800021d0: 00054683 lbu a3,0(a0)
800021d4: 00050793 mv a5,a0
800021d8: 00000613 li a2,0
800021dc: 04068863 beqz a3,8000222c <atol+0x80>
800021e0: 00000513 li a0,0
800021e4: 00178793 addi a5,a5,1
800021e8: fd06859b addiw a1,a3,-48
800021ec: 00251713 slli a4,a0,0x2
800021f0: 0007c683 lbu a3,0(a5)
800021f4: 00a70533 add a0,a4,a0
800021f8: 00151513 slli a0,a0,0x1
800021fc: 00a58533 add a0,a1,a0
80002200: fe0692e3 bnez a3,800021e4 <atol+0x38>
80002204: 00060463 beqz a2,8000220c <atol+0x60>
80002208: 40a00533 neg a0,a0
8000220c: 00008067 ret
80002210: 00154683 lbu a3,1(a0)
80002214: fd378793 addi a5,a5,-45
80002218: 0017b613 seqz a2,a5
8000221c: 00150793 addi a5,a0,1
80002220: fc0690e3 bnez a3,800021e0 <atol+0x34>
80002224: 00000513 li a0,0
80002228: fddff06f j 80002204 <atol+0x58>
8000222c: 00000513 li a0,0
80002230: 00008067 ret
0000000080002234 <terminate>:
80002234: fffff797 auipc a5,0xfffff
80002238: dcc78793 addi a5,a5,-564 # 80001000 <tohost>
8000223c: 0007b703 ld a4,0(a5)
80002240: 00070a63 beqz a4,80002254 <terminate+0x20>
80002244: fffff717 auipc a4,0xfffff
80002248: de073e23 sd zero,-516(a4) # 80001040 <fromhost>
8000224c: 0007b703 ld a4,0(a5)
80002250: fe071ae3 bnez a4,80002244 <terminate+0x10>
80002254: fffff797 auipc a5,0xfffff
80002258: daa7b623 sd a0,-596(a5) # 80001000 <tohost>
8000225c: 0000006f j 8000225c <terminate+0x28>
0000000080002260 <wtf>:
80002260: ff010113 addi sp,sp,-16
80002264: 34900513 li a0,841
80002268: 00113423 sd ra,8(sp)
8000226c: fc9ff0ef jal ra,80002234 <terminate>
0000000080002270 <printhex>:
80002270: fe010113 addi sp,sp,-32
80002274: 00810613 addi a2,sp,8
80002278: 01710713 addi a4,sp,23
8000227c: 00900813 li a6,9
80002280: 0080006f j 80002288 <printhex+0x18>
80002284: 00078713 mv a4,a5
80002288: 00f57793 andi a5,a0,15
8000228c: 03000593 li a1,48
80002290: 0ff7f693 andi a3,a5,255
80002294: 00f87463 bgeu a6,a5,8000229c <printhex+0x2c>
80002298: 05700593 li a1,87
8000229c: 00b687bb addw a5,a3,a1
800022a0: 00f70023 sb a5,0(a4)
800022a4: 00455513 srli a0,a0,0x4
800022a8: fff70793 addi a5,a4,-1
800022ac: fce61ce3 bne a2,a4,80002284 <printhex+0x14>
800022b0: 00814783 lbu a5,8(sp)
800022b4: 00010c23 sb zero,24(sp)
800022b8: 04078463 beqz a5,80002300 <printhex+0x90>
800022bc: 10100513 li a0,257
800022c0: 00060693 mv a3,a2
800022c4: fffff717 auipc a4,0xfffff
800022c8: d3c70713 addi a4,a4,-708 # 80001000 <tohost>
800022cc: 03051513 slli a0,a0,0x30
800022d0: 00073583 ld a1,0(a4)
800022d4: 00168693 addi a3,a3,1
800022d8: 00a7e633 or a2,a5,a0
800022dc: 00058a63 beqz a1,800022f0 <printhex+0x80>
800022e0: fffff797 auipc a5,0xfffff
800022e4: d607b023 sd zero,-672(a5) # 80001040 <fromhost>
800022e8: 00073783 ld a5,0(a4)
800022ec: fe079ae3 bnez a5,800022e0 <printhex+0x70>
800022f0: 0006c783 lbu a5,0(a3)
800022f4: fffff597 auipc a1,0xfffff
800022f8: d0c5b623 sd a2,-756(a1) # 80001000 <tohost>
800022fc: fc079ae3 bnez a5,800022d0 <printhex+0x60>
80002300: 02010113 addi sp,sp,32
80002304: 00008067 ret
0000000080002308 <handle_fault>:
80002308: fffff6b7 lui a3,0xfffff
8000230c: 00d50733 add a4,a0,a3
80002310: 0003e7b7 lui a5,0x3e
80002314: 14f77463 bgeu a4,a5,8000245c <handle_fault+0x154>
80002318: 00c55893 srli a7,a0,0xc
8000231c: 60088613 addi a2,a7,1536
80002320: 00002817 auipc a6,0x2
80002324: ce080813 addi a6,a6,-800 # 80004000 <begin_signature>
80002328: 00361793 slli a5,a2,0x3
8000232c: 00f807b3 add a5,a6,a5
80002330: 0007b703 ld a4,0(a5) # 3e000 <_start-0x7ffc2000>
80002334: 00d57533 and a0,a0,a3
80002338: 02070663 beqz a4,80002364 <handle_fault+0x5c>
8000233c: 04077693 andi a3,a4,64
80002340: 10068063 beqz a3,80002440 <handle_fault+0x138>
80002344: 08077693 andi a3,a4,128
80002348: 16069863 bnez a3,800024b8 <handle_fault+0x1b0>
8000234c: 00f00693 li a3,15
80002350: 16d59463 bne a1,a3,800024b8 <handle_fault+0x1b0>
80002354: 08076713 ori a4,a4,128
80002358: 00e7b023 sd a4,0(a5)
8000235c: 12050073 sfence.vma a0
80002360: 00008067 ret
80002364: 00006797 auipc a5,0x6
80002368: 48478793 addi a5,a5,1156 # 800087e8 <freelist_head>
8000236c: 0007b703 ld a4,0(a5)
80002370: 18070c63 beqz a4,80002508 <handle_fault+0x200>
80002374: 00873783 ld a5,8(a4)
80002378: 00006697 auipc a3,0x6
8000237c: 46868693 addi a3,a3,1128 # 800087e0 <freelist_tail>
80002380: 0006b683 ld a3,0(a3)
80002384: 00006597 auipc a1,0x6
80002388: 46f5b223 sd a5,1124(a1) # 800087e8 <freelist_head>
8000238c: 0cd78263 beq a5,a3,80002450 <handle_fault+0x148>
80002390: 00073783 ld a5,0(a4)
80002394: 00361593 slli a1,a2,0x3
80002398: 00b805b3 add a1,a6,a1
8000239c: 00c7d793 srli a5,a5,0xc
800023a0: 00a79793 slli a5,a5,0xa
800023a4: 0df7e313 ori t1,a5,223
800023a8: 01f7e693 ori a3,a5,31
800023ac: 0065b023 sd t1,0(a1)
800023b0: 12050073 sfence.vma a0
800023b4: 00006797 auipc a5,0x6
800023b8: 03c78793 addi a5,a5,60 # 800083f0 <user_mapping>
800023bc: 00489893 slli a7,a7,0x4
800023c0: 011788b3 add a7,a5,a7
800023c4: 0008b783 ld a5,0(a7)
800023c8: 18079863 bnez a5,80002558 <handle_fault+0x250>
800023cc: 00073783 ld a5,0(a4)
800023d0: 00f8b023 sd a5,0(a7)
800023d4: 00873783 ld a5,8(a4)
800023d8: 00f8b423 sd a5,8(a7)
800023dc: 000408b7 lui a7,0x40
800023e0: 1008a8f3 csrrs a7,sstatus,a7
800023e4: ffe007b7 lui a5,0xffe00
800023e8: 00f507b3 add a5,a0,a5
800023ec: 000015b7 lui a1,0x1
800023f0: 00050713 mv a4,a0
800023f4: 00b785b3 add a1,a5,a1
800023f8: 0007bf03 ld t5,0(a5) # ffffffffffe00000 <_end+0xffffffff7fdf7810>
800023fc: 0087be83 ld t4,8(a5)
80002400: 0107be03 ld t3,16(a5)
80002404: 0187b303 ld t1,24(a5)
80002408: 01e73023 sd t5,0(a4)
8000240c: 01d73423 sd t4,8(a4)
80002410: 01c73823 sd t3,16(a4)
80002414: 00673c23 sd t1,24(a4)
80002418: 02078793 addi a5,a5,32
8000241c: 02070713 addi a4,a4,32
80002420: fcb79ce3 bne a5,a1,800023f8 <handle_fault+0xf0>
80002424: 10089073 csrw sstatus,a7
80002428: 00361613 slli a2,a2,0x3
8000242c: 00c807b3 add a5,a6,a2
80002430: 00d7b023 sd a3,0(a5)
80002434: 12050073 sfence.vma a0
80002438: 0000100f fence.i
8000243c: 00008067 ret
80002440: 04076713 ori a4,a4,64
80002444: 00e7b023 sd a4,0(a5)
80002448: 12050073 sfence.vma a0
8000244c: 00008067 ret
80002450: 00006797 auipc a5,0x6
80002454: 3807b823 sd zero,912(a5) # 800087e0 <freelist_tail>
80002458: f39ff06f j 80002390 <handle_fault+0x88>
8000245c: 10100613 li a2,257
80002460: 04100713 li a4,65
80002464: 00001697 auipc a3,0x1
80002468: b8c68693 addi a3,a3,-1140 # 80002ff0 <pass+0x10>
8000246c: fffff797 auipc a5,0xfffff
80002470: b9478793 addi a5,a5,-1132 # 80001000 <tohost>
80002474: 03061613 slli a2,a2,0x30
80002478: 0007b503 ld a0,0(a5)
8000247c: 00168693 addi a3,a3,1
80002480: 00c765b3 or a1,a4,a2
80002484: 00050a63 beqz a0,80002498 <handle_fault+0x190>
80002488: fffff717 auipc a4,0xfffff
8000248c: ba073c23 sd zero,-1096(a4) # 80001040 <fromhost>
80002490: 0007b703 ld a4,0(a5)
80002494: fe071ae3 bnez a4,80002488 <handle_fault+0x180>
80002498: 0006c703 lbu a4,0(a3)
8000249c: fffff517 auipc a0,0xfffff
800024a0: b6b53223 sd a1,-1180(a0) # 80001000 <tohost>
800024a4: fc071ae3 bnez a4,80002478 <handle_fault+0x170>
800024a8: ff010113 addi sp,sp,-16
800024ac: 00300513 li a0,3
800024b0: 00113423 sd ra,8(sp)
800024b4: d81ff0ef jal ra,80002234 <terminate>
800024b8: 10100613 li a2,257
800024bc: 04100713 li a4,65
800024c0: 00001697 auipc a3,0x1
800024c4: b7868693 addi a3,a3,-1160 # 80003038 <pass+0x58>
800024c8: fffff797 auipc a5,0xfffff
800024cc: b3878793 addi a5,a5,-1224 # 80001000 <tohost>
800024d0: 03061613 slli a2,a2,0x30
800024d4: 0007b503 ld a0,0(a5)
800024d8: 00168693 addi a3,a3,1
800024dc: 00c765b3 or a1,a4,a2
800024e0: 00050a63 beqz a0,800024f4 <handle_fault+0x1ec>
800024e4: fffff717 auipc a4,0xfffff
800024e8: b4073e23 sd zero,-1188(a4) # 80001040 <fromhost>
800024ec: 0007b703 ld a4,0(a5)
800024f0: fe071ae3 bnez a4,800024e4 <handle_fault+0x1dc>
800024f4: 0006c703 lbu a4,0(a3)
800024f8: fffff517 auipc a0,0xfffff
800024fc: b0b53423 sd a1,-1272(a0) # 80001000 <tohost>
80002500: fc071ae3 bnez a4,800024d4 <handle_fault+0x1cc>
80002504: fa5ff06f j 800024a8 <handle_fault+0x1a0>
80002508: 10100693 li a3,257
8000250c: 04100713 li a4,65
80002510: 00001617 auipc a2,0x1
80002514: b7060613 addi a2,a2,-1168 # 80003080 <pass+0xa0>
80002518: fffff797 auipc a5,0xfffff
8000251c: ae878793 addi a5,a5,-1304 # 80001000 <tohost>
80002520: 03069693 slli a3,a3,0x30
80002524: 0007b503 ld a0,0(a5)
80002528: 00160613 addi a2,a2,1
8000252c: 00d765b3 or a1,a4,a3
80002530: 00050a63 beqz a0,80002544 <handle_fault+0x23c>
80002534: fffff717 auipc a4,0xfffff
80002538: b0073623 sd zero,-1268(a4) # 80001040 <fromhost>
8000253c: 0007b703 ld a4,0(a5)
80002540: fe071ae3 bnez a4,80002534 <handle_fault+0x22c>
80002544: 00064703 lbu a4,0(a2)
80002548: fffff517 auipc a0,0xfffff
8000254c: aab53c23 sd a1,-1352(a0) # 80001000 <tohost>
80002550: fc071ae3 bnez a4,80002524 <handle_fault+0x21c>
80002554: f55ff06f j 800024a8 <handle_fault+0x1a0>
80002558: 10100693 li a3,257
8000255c: 04100713 li a4,65
80002560: 00001617 auipc a2,0x1
80002564: b3860613 addi a2,a2,-1224 # 80003098 <pass+0xb8>
80002568: fffff797 auipc a5,0xfffff
8000256c: a9878793 addi a5,a5,-1384 # 80001000 <tohost>
80002570: 03069693 slli a3,a3,0x30
80002574: 0007b503 ld a0,0(a5)
80002578: 00160613 addi a2,a2,1
8000257c: 00d765b3 or a1,a4,a3
80002580: 00050a63 beqz a0,80002594 <handle_fault+0x28c>
80002584: fffff717 auipc a4,0xfffff
80002588: aa073e23 sd zero,-1348(a4) # 80001040 <fromhost>
8000258c: 0007b703 ld a4,0(a5)
80002590: fe071ae3 bnez a4,80002584 <handle_fault+0x27c>
80002594: 00064703 lbu a4,0(a2)
80002598: fffff517 auipc a0,0xfffff
8000259c: a6b53423 sd a1,-1432(a0) # 80001000 <tohost>
800025a0: fc071ae3 bnez a4,80002574 <handle_fault+0x26c>
800025a4: f05ff06f j 800024a8 <handle_fault+0x1a0>
00000000800025a8 <handle_trap>:
800025a8: 11853583 ld a1,280(a0)
800025ac: f9010113 addi sp,sp,-112
800025b0: 06813023 sd s0,96(sp)
800025b4: 06113423 sd ra,104(sp)
800025b8: 04913c23 sd s1,88(sp)
800025bc: 05213823 sd s2,80(sp)
800025c0: 05313423 sd s3,72(sp)
800025c4: 05413023 sd s4,64(sp)
800025c8: 03513c23 sd s5,56(sp)
800025cc: 03613823 sd s6,48(sp)
800025d0: 03713423 sd s7,40(sp)
800025d4: 03813023 sd s8,32(sp)
800025d8: 01913c23 sd s9,24(sp)
800025dc: 01a13823 sd s10,16(sp)
800025e0: 01b13423 sd s11,8(sp)
800025e4: 00800793 li a5,8
800025e8: 00050413 mv s0,a0
800025ec: 12f58a63 beq a1,a5,80002720 <handle_trap+0x178>
800025f0: 00200793 li a5,2
800025f4: 06f58063 beq a1,a5,80002654 <handle_trap+0xac>
800025f8: ff458793 addi a5,a1,-12 # ff4 <_start-0x7ffff00c>
800025fc: 00100713 li a4,1
80002600: 00f77663 bgeu a4,a5,8000260c <handle_trap+0x64>
80002604: 00f00793 li a5,15
80002608: 1ef59463 bne a1,a5,800027f0 <handle_trap+0x248>
8000260c: 11043503 ld a0,272(s0)
80002610: cf9ff0ef jal ra,80002308 <handle_fault>
80002614: 00040513 mv a0,s0
80002618: 06013403 ld s0,96(sp)
8000261c: 06813083 ld ra,104(sp)
80002620: 05813483 ld s1,88(sp)
80002624: 05013903 ld s2,80(sp)
80002628: 04813983 ld s3,72(sp)
8000262c: 04013a03 ld s4,64(sp)
80002630: 03813a83 ld s5,56(sp)
80002634: 03013b03 ld s6,48(sp)
80002638: 02813b83 ld s7,40(sp)
8000263c: 02013c03 ld s8,32(sp)
80002640: 01813c83 ld s9,24(sp)
80002644: 01013d03 ld s10,16(sp)
80002648: 00813d83 ld s11,8(sp)
8000264c: 07010113 addi sp,sp,112
80002650: 9f1fd06f j 80000040 <pop_tf>
80002654: 10853703 ld a4,264(a0)
80002658: 00377793 andi a5,a4,3
8000265c: 06079a63 bnez a5,800026d0 <handle_trap+0x128>
80002660: 008007ef jal a5,80002668 <handle_trap+0xc0>
80002664: 00301073 fssr zero
80002668: 00072703 lw a4,0(a4)
8000266c: 0007a783 lw a5,0(a5)
80002670: 04f70c63 beq a4,a5,800026c8 <handle_trap+0x120>
80002674: 10100513 li a0,257
80002678: 04100793 li a5,65
8000267c: 00001697 auipc a3,0x1
80002680: af468693 addi a3,a3,-1292 # 80003170 <pass+0x190>
80002684: fffff717 auipc a4,0xfffff
80002688: 97c70713 addi a4,a4,-1668 # 80001000 <tohost>
8000268c: 03051513 slli a0,a0,0x30
80002690: 00073583 ld a1,0(a4)
80002694: 00168693 addi a3,a3,1
80002698: 00a7e633 or a2,a5,a0
8000269c: 00058a63 beqz a1,800026b0 <handle_trap+0x108>
800026a0: fffff797 auipc a5,0xfffff
800026a4: 9a07b023 sd zero,-1632(a5) # 80001040 <fromhost>
800026a8: 00073783 ld a5,0(a4)
800026ac: fe079ae3 bnez a5,800026a0 <handle_trap+0xf8>
800026b0: 0006c783 lbu a5,0(a3)
800026b4: fffff597 auipc a1,0xfffff
800026b8: 94c5b623 sd a2,-1716(a1) # 80001000 <tohost>
800026bc: fc079ae3 bnez a5,80002690 <handle_trap+0xe8>
800026c0: 00300513 li a0,3
800026c4: b71ff0ef jal ra,80002234 <terminate>
800026c8: 00100513 li a0,1
800026cc: b69ff0ef jal ra,80002234 <terminate>
800026d0: 10100793 li a5,257
800026d4: 00001617 auipc a2,0x1
800026d8: a7460613 addi a2,a2,-1420 # 80003148 <pass+0x168>
800026dc: 04100693 li a3,65
800026e0: fffff717 auipc a4,0xfffff
800026e4: 92070713 addi a4,a4,-1760 # 80001000 <tohost>
800026e8: 03079793 slli a5,a5,0x30
800026ec: 00073503 ld a0,0(a4)
800026f0: 00160613 addi a2,a2,1
800026f4: 00f6e5b3 or a1,a3,a5
800026f8: 00050a63 beqz a0,8000270c <handle_trap+0x164>
800026fc: fffff697 auipc a3,0xfffff
80002700: 9406b223 sd zero,-1724(a3) # 80001040 <fromhost>
80002704: 00073683 ld a3,0(a4)
80002708: fe069ae3 bnez a3,800026fc <handle_trap+0x154>
8000270c: 00064683 lbu a3,0(a2)
80002710: fffff517 auipc a0,0xfffff
80002714: 8eb53823 sd a1,-1808(a0) # 80001000 <tohost>
80002718: fc069ae3 bnez a3,800026ec <handle_trap+0x144>
8000271c: fa5ff06f j 800026c0 <handle_trap+0x118>
80002720: 05052903 lw s2,80(a0)
80002724: 00001c37 lui s8,0x1
80002728: 00006497 auipc s1,0x6
8000272c: cc848493 addi s1,s1,-824 # 800083f0 <user_mapping>
80002730: 00002b97 auipc s7,0x2
80002734: 8d0b8b93 addi s7,s7,-1840 # 80004000 <begin_signature>
80002738: 00040b37 lui s6,0x40
8000273c: ffe00ab7 lui s5,0xffe00
80002740: 00006a17 auipc s4,0x6
80002744: 0a0a0a13 addi s4,s4,160 # 800087e0 <freelist_tail>
80002748: 0003f9b7 lui s3,0x3f
8000274c: 01c0006f j 80002768 <handle_trap+0x1c0>
80002750: 00f73423 sd a5,8(a4)
80002754: 00006717 auipc a4,0x6
80002758: 08f73623 sd a5,140(a4) # 800087e0 <freelist_tail>
8000275c: 000017b7 lui a5,0x1
80002760: 00fc0c33 add s8,s8,a5
80002764: 173c0a63 beq s8,s3,800028d8 <handle_trap+0x330>
80002768: 00cc5793 srli a5,s8,0xc
8000276c: 00479413 slli s0,a5,0x4
80002770: 00848733 add a4,s1,s0
80002774: 00073703 ld a4,0(a4)
80002778: fe0702e3 beqz a4,8000275c <handle_trap+0x1b4>
8000277c: 60078793 addi a5,a5,1536 # 1600 <_start-0x7fffea00>
80002780: 00379793 slli a5,a5,0x3
80002784: 00fb87b3 add a5,s7,a5
80002788: 0007bc83 ld s9,0(a5)
8000278c: 040cf793 andi a5,s9,64
80002790: 0e078e63 beqz a5,8000288c <handle_trap+0x2e4>
80002794: 100b2d73 csrrs s10,sstatus,s6
80002798: 015c0db3 add s11,s8,s5
8000279c: 00001637 lui a2,0x1
800027a0: 000d8593 mv a1,s11
800027a4: 000c0513 mv a0,s8
800027a8: 969ff0ef jal ra,80002110 <memcmp>
800027ac: 00050e63 beqz a0,800027c8 <handle_trap+0x220>
800027b0: 080cfc93 andi s9,s9,128
800027b4: 080c8663 beqz s9,80002840 <handle_trap+0x298>
800027b8: 00001637 lui a2,0x1
800027bc: 000d8593 mv a1,s11
800027c0: 000c0513 mv a0,s8
800027c4: 83dff0ef jal ra,80002000 <memcpy>
800027c8: 008487b3 add a5,s1,s0
800027cc: 100d1073 csrw sstatus,s10
800027d0: 000a3703 ld a4,0(s4)
800027d4: 0007b023 sd zero,0(a5)
800027d8: f6071ce3 bnez a4,80002750 <handle_trap+0x1a8>
800027dc: 00006717 auipc a4,0x6
800027e0: 00f73223 sd a5,4(a4) # 800087e0 <freelist_tail>
800027e4: 00006717 auipc a4,0x6
800027e8: 00f73223 sd a5,4(a4) # 800087e8 <freelist_head>
800027ec: f71ff06f j 8000275c <handle_trap+0x1b4>
800027f0: 10100793 li a5,257
800027f4: 04100613 li a2,65
800027f8: 00001697 auipc a3,0x1
800027fc: 9a868693 addi a3,a3,-1624 # 800031a0 <pass+0x1c0>
80002800: fffff717 auipc a4,0xfffff
80002804: 80070713 addi a4,a4,-2048 # 80001000 <tohost>
80002808: 03079793 slli a5,a5,0x30
8000280c: 00073503 ld a0,0(a4)
80002810: 00168693 addi a3,a3,1
80002814: 00f665b3 or a1,a2,a5
80002818: 00050a63 beqz a0,8000282c <handle_trap+0x284>
8000281c: fffff617 auipc a2,0xfffff
80002820: 82063223 sd zero,-2012(a2) # 80001040 <fromhost>
80002824: 00073603 ld a2,0(a4)
80002828: fe061ae3 bnez a2,8000281c <handle_trap+0x274>
8000282c: 0006c603 lbu a2,0(a3)
80002830: ffffe517 auipc a0,0xffffe
80002834: 7cb53823 sd a1,2000(a0) # 80001000 <tohost>
80002838: fc061ae3 bnez a2,8000280c <handle_trap+0x264>
8000283c: e85ff06f j 800026c0 <handle_trap+0x118>
80002840: 10100793 li a5,257
80002844: 04100613 li a2,65
80002848: 00001697 auipc a3,0x1
8000284c: 8c868693 addi a3,a3,-1848 # 80003110 <pass+0x130>
80002850: ffffe717 auipc a4,0xffffe
80002854: 7b070713 addi a4,a4,1968 # 80001000 <tohost>
80002858: 03079793 slli a5,a5,0x30
8000285c: 00168693 addi a3,a3,1
80002860: 00f665b3 or a1,a2,a5
80002864: 00c0006f j 80002870 <handle_trap+0x2c8>
80002868: ffffe617 auipc a2,0xffffe
8000286c: 7c063c23 sd zero,2008(a2) # 80001040 <fromhost>
80002870: 00073603 ld a2,0(a4)
80002874: fe061ae3 bnez a2,80002868 <handle_trap+0x2c0>
80002878: 0006c603 lbu a2,0(a3)
8000287c: ffffe517 auipc a0,0xffffe
80002880: 78b53223 sd a1,1924(a0) # 80001000 <tohost>
80002884: fc061ce3 bnez a2,8000285c <handle_trap+0x2b4>
80002888: e39ff06f j 800026c0 <handle_trap+0x118>
8000288c: 10100793 li a5,257
80002890: 04100613 li a2,65
80002894: 00001697 auipc a3,0x1
80002898: 84468693 addi a3,a3,-1980 # 800030d8 <pass+0xf8>
8000289c: ffffe717 auipc a4,0xffffe
800028a0: 76470713 addi a4,a4,1892 # 80001000 <tohost>
800028a4: 03079793 slli a5,a5,0x30
800028a8: 00168693 addi a3,a3,1
800028ac: 00f665b3 or a1,a2,a5
800028b0: 00c0006f j 800028bc <handle_trap+0x314>
800028b4: ffffe617 auipc a2,0xffffe
800028b8: 78063623 sd zero,1932(a2) # 80001040 <fromhost>
800028bc: 00073603 ld a2,0(a4)
800028c0: fe061ae3 bnez a2,800028b4 <handle_trap+0x30c>
800028c4: 0006c603 lbu a2,0(a3)
800028c8: ffffe517 auipc a0,0xffffe
800028cc: 72b53c23 sd a1,1848(a0) # 80001000 <tohost>
800028d0: fc061ce3 bnez a2,800028a8 <handle_trap+0x300>
800028d4: dedff06f j 800026c0 <handle_trap+0x118>
800028d8: 00090513 mv a0,s2
800028dc: 959ff0ef jal ra,80002234 <terminate>
00000000800028e0 <vm_boot>:
800028e0: f14027f3 csrr a5,mhartid
800028e4: 18079c63 bnez a5,80002a7c <vm_boot+0x19c>
800028e8: 00002697 auipc a3,0x2
800028ec: 71868693 addi a3,a3,1816 # 80005000 <begin_signature+0x1000>
800028f0: 00003717 auipc a4,0x3
800028f4: 71070713 addi a4,a4,1808 # 80006000 <begin_signature+0x2000>
800028f8: 00c6d693 srli a3,a3,0xc
800028fc: 00c75713 srli a4,a4,0xc
80002900: 00004797 auipc a5,0x4
80002904: 70078793 addi a5,a5,1792 # 80007000 <begin_signature+0x3000>
80002908: 00a69693 slli a3,a3,0xa
8000290c: 00a71713 slli a4,a4,0xa
80002910: 0016e693 ori a3,a3,1
80002914: 00176713 ori a4,a4,1
80002918: 00c7d793 srli a5,a5,0xc
8000291c: 00001897 auipc a7,0x1
80002920: 6ed8b223 sd a3,1764(a7) # 80004000 <begin_signature>
80002924: 00a79793 slli a5,a5,0xa
80002928: 00002697 auipc a3,0x2
8000292c: 6ce6b823 sd a4,1744(a3) # 80004ff8 <begin_signature+0xff8>
80002930: 20000737 lui a4,0x20000
80002934: 0cf70713 addi a4,a4,207 # 200000cf <_start-0x5fffff31>
80002938: fff00593 li a1,-1
8000293c: 0017e793 ori a5,a5,1
80002940: 00001617 auipc a2,0x1
80002944: 6c060613 addi a2,a2,1728 # 80004000 <begin_signature>
80002948: ed010113 addi sp,sp,-304
8000294c: 03f59813 slli a6,a1,0x3f
80002950: 00004697 auipc a3,0x4
80002954: 6ae6b423 sd a4,1704(a3) # 80006ff8 <begin_signature+0x2ff8>
80002958: 00002717 auipc a4,0x2
8000295c: 6af73423 sd a5,1704(a4) # 80005000 <begin_signature+0x1000>
80002960: 00c65793 srli a5,a2,0xc
80002964: 12113423 sd ra,296(sp)
80002968: 12813023 sd s0,288(sp)
8000296c: 0107e7b3 or a5,a5,a6
80002970: 18079073 csrw satp,a5
80002974: 01f00793 li a5,31
80002978: 00b5d593 srli a1,a1,0xb
8000297c: 00000297 auipc t0,0x0
80002980: 01428293 addi t0,t0,20 # 80002990 <vm_boot+0xb0>
80002984: 305292f3 csrrw t0,mtvec,t0
80002988: 3b059073 csrw pmpaddr0,a1
8000298c: 3a079073 csrw pmpcfg0,a5
80002990: bff00813 li a6,-1025
80002994: 01581813 slli a6,a6,0x15
80002998: ffffd797 auipc a5,0xffffd
8000299c: 73078793 addi a5,a5,1840 # 800000c8 <trap_entry>
800029a0: 010787b3 add a5,a5,a6
800029a4: 10579073 csrw stvec,a5
800029a8: 340027f3 csrr a5,mscratch
800029ac: 010787b3 add a5,a5,a6
800029b0: 14079073 csrw sscratch,a5
800029b4: 0000b7b7 lui a5,0xb
800029b8: 1007879b addiw a5,a5,256
800029bc: 30279073 csrw medeleg,a5
800029c0: 0001e7b7 lui a5,0x1e
800029c4: 30079073 csrw mstatus,a5
800029c8: 30405073 csrwi mie,0
800029cc: 00005697 auipc a3,0x5
800029d0: 63468693 addi a3,a3,1588 # 80008000 <freelist_nodes>
800029d4: 010687b3 add a5,a3,a6
800029d8: 3e078713 addi a4,a5,992 # 1e3e0 <_start-0x7ffe1c20>
800029dc: 00006617 auipc a2,0x6
800029e0: e0f63623 sd a5,-500(a2) # 800087e8 <freelist_head>
800029e4: 00006797 auipc a5,0x6
800029e8: dee7be23 sd a4,-516(a5) # 800087e0 <freelist_tail>
800029ec: 00006317 auipc t1,0x6
800029f0: a0430313 addi t1,t1,-1532 # 800083f0 <user_mapping>
800029f4: 02100793 li a5,33
800029f8: 000808b7 lui a7,0x80
800029fc: 01080813 addi a6,a6,16
80002a00: 03f7871b addiw a4,a5,63
80002a04: 02071713 slli a4,a4,0x20
80002a08: 0017d61b srliw a2,a5,0x1
80002a0c: 02075713 srli a4,a4,0x20
80002a10: 00c7c7b3 xor a5,a5,a2
80002a14: 01170733 add a4,a4,a7
80002a18: 010685b3 add a1,a3,a6
80002a1c: 00c71713 slli a4,a4,0xc
80002a20: 0057979b slliw a5,a5,0x5
80002a24: 00e6b023 sd a4,0(a3)
80002a28: 00b6b423 sd a1,8(a3)
80002a2c: 0207f793 andi a5,a5,32
80002a30: 01068693 addi a3,a3,16
80002a34: 00c7e7b3 or a5,a5,a2
80002a38: fcd314e3 bne t1,a3,80002a00 <vm_boot+0x120>
80002a3c: 00050413 mv s0,a0
80002a40: 12000613 li a2,288
80002a44: 00000593 li a1,0
80002a48: 00010513 mv a0,sp
80002a4c: 00006797 auipc a5,0x6
80002a50: 9807be23 sd zero,-1636(a5) # 800083e8 <freelist_nodes+0x3e8>
80002a54: e08ff0ef jal ra,8000205c <memset>
80002a58: 800007b7 lui a5,0x80000
80002a5c: 00f40433 add s0,s0,a5
80002a60: 00010513 mv a0,sp
80002a64: 10813423 sd s0,264(sp)
80002a68: dd8fd0ef jal ra,80000040 <pop_tf>
80002a6c: 12813083 ld ra,296(sp)
80002a70: 12013403 ld s0,288(sp)
80002a74: 13010113 addi sp,sp,304
80002a78: 00008067 ret
80002a7c: 0f1557b7 lui a5,0xf155
80002a80: 000805b7 lui a1,0x80
80002a84: 1b078793 addi a5,a5,432 # f1551b0 <_start-0x70eaae50>
80002a88: ffc58593 addi a1,a1,-4 # 7fffc <_start-0x7ff80004>
80002a8c: 00100613 li a2,1
80002a90: 00b7f733 and a4,a5,a1
80002a94: 01f61613 slli a2,a2,0x1f
80002a98: 0017f693 andi a3,a5,1
80002a9c: 02079793 slli a5,a5,0x20
80002aa0: 0207d793 srli a5,a5,0x20
80002aa4: 00c70733 add a4,a4,a2
80002aa8: 02068263 beqz a3,80002acc <vm_boot+0x1ec>
80002aac: 0007202f amoadd.w zero,zero,(a4)
80002ab0: 0017d793 srli a5,a5,0x1
80002ab4: 00b7f733 and a4,a5,a1
80002ab8: 0017f693 andi a3,a5,1
80002abc: 02079793 slli a5,a5,0x20
80002ac0: 0207d793 srli a5,a5,0x20
80002ac4: 00c70733 add a4,a4,a2
80002ac8: fe0692e3 bnez a3,80002aac <vm_boot+0x1cc>
80002acc: 00072003 lw zero,0(a4)
80002ad0: 0017d793 srli a5,a5,0x1
80002ad4: fe1ff06f j 80002ab4 <vm_boot+0x1d4>
0000000080002ad8 <extra_boot>:
80002ad8: 00008067 ret
0000000080002adc <userstart>:
80002adc: 00000093 li ra,0
80002ae0: 00000113 li sp,0
80002ae4: 00208f33 add t5,ra,sp
80002ae8: 00000e93 li t4,0
80002aec: 00200193 li gp,2
80002af0: 4fdf1063 bne t5,t4,80002fd0 <fail>
0000000080002af4 <test_3>:
80002af4: 00100093 li ra,1
80002af8: 00100113 li sp,1
80002afc: 00208f33 add t5,ra,sp
80002b00: 00200e93 li t4,2
80002b04: 00300193 li gp,3
80002b08: 4ddf1463 bne t5,t4,80002fd0 <fail>
0000000080002b0c <test_4>:
80002b0c: 00300093 li ra,3
80002b10: 00700113 li sp,7
80002b14: 00208f33 add t5,ra,sp
80002b18: 00a00e93 li t4,10
80002b1c: 00400193 li gp,4
80002b20: 4bdf1863 bne t5,t4,80002fd0 <fail>
0000000080002b24 <test_5>:
80002b24: 00000093 li ra,0
80002b28: ffff8137 lui sp,0xffff8
80002b2c: 00208f33 add t5,ra,sp
80002b30: ffff8eb7 lui t4,0xffff8
80002b34: 00500193 li gp,5
80002b38: 49df1c63 bne t5,t4,80002fd0 <fail>
0000000080002b3c <test_6>:
80002b3c: 800000b7 lui ra,0x80000
80002b40: 00000113 li sp,0
80002b44: 00208f33 add t5,ra,sp
80002b48: 80000eb7 lui t4,0x80000
80002b4c: 00600193 li gp,6
80002b50: 49df1063 bne t5,t4,80002fd0 <fail>
0000000080002b54 <test_7>:
80002b54: 800000b7 lui ra,0x80000
80002b58: ffff8137 lui sp,0xffff8
80002b5c: 00208f33 add t5,ra,sp
80002b60: ffff0eb7 lui t4,0xffff0
80002b64: fffe8e9b addiw t4,t4,-1
80002b68: 00fe9e93 slli t4,t4,0xf
80002b6c: 00700193 li gp,7
80002b70: 47df1063 bne t5,t4,80002fd0 <fail>
0000000080002b74 <test_8>:
80002b74: 00000093 li ra,0
80002b78: 00008137 lui sp,0x8
80002b7c: fff1011b addiw sp,sp,-1
80002b80: 00208f33 add t5,ra,sp
80002b84: 00008eb7 lui t4,0x8
80002b88: fffe8e9b addiw t4,t4,-1
80002b8c: 00800193 li gp,8
80002b90: 45df1063 bne t5,t4,80002fd0 <fail>
0000000080002b94 <test_9>:
80002b94: 800000b7 lui ra,0x80000
80002b98: fff0809b addiw ra,ra,-1
80002b9c: 00000113 li sp,0
80002ba0: 00208f33 add t5,ra,sp
80002ba4: 80000eb7 lui t4,0x80000
80002ba8: fffe8e9b addiw t4,t4,-1
80002bac: 00900193 li gp,9
80002bb0: 43df1063 bne t5,t4,80002fd0 <fail>
0000000080002bb4 <test_10>:
80002bb4: 800000b7 lui ra,0x80000
80002bb8: fff0809b addiw ra,ra,-1
80002bbc: 00008137 lui sp,0x8
80002bc0: fff1011b addiw sp,sp,-1
80002bc4: 00208f33 add t5,ra,sp
80002bc8: 00010eb7 lui t4,0x10
80002bcc: 001e8e9b addiw t4,t4,1
80002bd0: 00fe9e93 slli t4,t4,0xf
80002bd4: ffee8e93 addi t4,t4,-2 # fffe <_start-0x7fff0002>
80002bd8: 00a00193 li gp,10
80002bdc: 3fdf1a63 bne t5,t4,80002fd0 <fail>
0000000080002be0 <test_11>:
80002be0: 800000b7 lui ra,0x80000
80002be4: 00008137 lui sp,0x8
80002be8: fff1011b addiw sp,sp,-1
80002bec: 00208f33 add t5,ra,sp
80002bf0: 80008eb7 lui t4,0x80008
80002bf4: fffe8e9b addiw t4,t4,-1
80002bf8: 00b00193 li gp,11
80002bfc: 3ddf1a63 bne t5,t4,80002fd0 <fail>
0000000080002c00 <test_12>:
80002c00: 800000b7 lui ra,0x80000
80002c04: fff0809b addiw ra,ra,-1
80002c08: ffff8137 lui sp,0xffff8
80002c0c: 00208f33 add t5,ra,sp
80002c10: 7fff8eb7 lui t4,0x7fff8
80002c14: fffe8e9b addiw t4,t4,-1
80002c18: 00c00193 li gp,12
80002c1c: 3bdf1a63 bne t5,t4,80002fd0 <fail>
0000000080002c20 <test_13>:
80002c20: 00000093 li ra,0
80002c24: fff00113 li sp,-1
80002c28: 00208f33 add t5,ra,sp
80002c2c: fff00e93 li t4,-1
80002c30: 00d00193 li gp,13
80002c34: 39df1e63 bne t5,t4,80002fd0 <fail>
0000000080002c38 <test_14>:
80002c38: fff00093 li ra,-1
80002c3c: 00100113 li sp,1
80002c40: 00208f33 add t5,ra,sp
80002c44: 00000e93 li t4,0
80002c48: 00e00193 li gp,14
80002c4c: 39df1263 bne t5,t4,80002fd0 <fail>
0000000080002c50 <test_15>:
80002c50: fff00093 li ra,-1
80002c54: fff00113 li sp,-1
80002c58: 00208f33 add t5,ra,sp
80002c5c: ffe00e93 li t4,-2
80002c60: 00f00193 li gp,15
80002c64: 37df1663 bne t5,t4,80002fd0 <fail>
0000000080002c68 <test_16>:
80002c68: 00100093 li ra,1
80002c6c: 80000137 lui sp,0x80000
80002c70: fff1011b addiw sp,sp,-1
80002c74: 00208f33 add t5,ra,sp
80002c78: 00100e9b addiw t4,zero,1
80002c7c: 01fe9e93 slli t4,t4,0x1f
80002c80: 01000193 li gp,16
80002c84: 35df1663 bne t5,t4,80002fd0 <fail>
0000000080002c88 <test_17>:
80002c88: 00d00093 li ra,13
80002c8c: 00b00113 li sp,11
80002c90: 002080b3 add ra,ra,sp
80002c94: 01800e93 li t4,24
80002c98: 01100193 li gp,17
80002c9c: 33d09a63 bne ra,t4,80002fd0 <fail>
0000000080002ca0 <test_18>:
80002ca0: 00e00093 li ra,14
80002ca4: 00b00113 li sp,11
80002ca8: 00208133 add sp,ra,sp
80002cac: 01900e93 li t4,25
80002cb0: 01200193 li gp,18
80002cb4: 31d11e63 bne sp,t4,80002fd0 <fail>
0000000080002cb8 <test_19>:
80002cb8: 00d00093 li ra,13
80002cbc: 001080b3 add ra,ra,ra
80002cc0: 01a00e93 li t4,26
80002cc4: 01300193 li gp,19
80002cc8: 31d09463 bne ra,t4,80002fd0 <fail>
0000000080002ccc <test_20>:
80002ccc: 00000213 li tp,0
80002cd0: 00d00093 li ra,13
80002cd4: 00b00113 li sp,11
80002cd8: 00208f33 add t5,ra,sp
80002cdc: 000f0313 mv t1,t5
80002ce0: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002ce4: 00200293 li t0,2
80002ce8: fe5214e3 bne tp,t0,80002cd0 <test_20+0x4>
80002cec: 01800e93 li t4,24
80002cf0: 01400193 li gp,20
80002cf4: 2dd31e63 bne t1,t4,80002fd0 <fail>
0000000080002cf8 <test_21>:
80002cf8: 00000213 li tp,0
80002cfc: 00e00093 li ra,14
80002d00: 00b00113 li sp,11
80002d04: 00208f33 add t5,ra,sp
80002d08: 00000013 nop
80002d0c: 000f0313 mv t1,t5
80002d10: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002d14: 00200293 li t0,2
80002d18: fe5212e3 bne tp,t0,80002cfc <test_21+0x4>
80002d1c: 01900e93 li t4,25
80002d20: 01500193 li gp,21
80002d24: 2bd31663 bne t1,t4,80002fd0 <fail>
0000000080002d28 <test_22>:
80002d28: 00000213 li tp,0
80002d2c: 00f00093 li ra,15
80002d30: 00b00113 li sp,11
80002d34: 00208f33 add t5,ra,sp
80002d38: 00000013 nop
80002d3c: 00000013 nop
80002d40: 000f0313 mv t1,t5
80002d44: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002d48: 00200293 li t0,2
80002d4c: fe5210e3 bne tp,t0,80002d2c <test_22+0x4>
80002d50: 01a00e93 li t4,26
80002d54: 01600193 li gp,22
80002d58: 27d31c63 bne t1,t4,80002fd0 <fail>
0000000080002d5c <test_23>:
80002d5c: 00000213 li tp,0
80002d60: 00d00093 li ra,13
80002d64: 00b00113 li sp,11
80002d68: 00208f33 add t5,ra,sp
80002d6c: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002d70: 00200293 li t0,2
80002d74: fe5216e3 bne tp,t0,80002d60 <test_23+0x4>
80002d78: 01800e93 li t4,24
80002d7c: 01700193 li gp,23
80002d80: 25df1863 bne t5,t4,80002fd0 <fail>
0000000080002d84 <test_24>:
80002d84: 00000213 li tp,0
80002d88: 00e00093 li ra,14
80002d8c: 00b00113 li sp,11
80002d90: 00000013 nop
80002d94: 00208f33 add t5,ra,sp
80002d98: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002d9c: 00200293 li t0,2
80002da0: fe5214e3 bne tp,t0,80002d88 <test_24+0x4>
80002da4: 01900e93 li t4,25
80002da8: 01800193 li gp,24
80002dac: 23df1263 bne t5,t4,80002fd0 <fail>
0000000080002db0 <test_25>:
80002db0: 00000213 li tp,0
80002db4: 00f00093 li ra,15
80002db8: 00b00113 li sp,11
80002dbc: 00000013 nop
80002dc0: 00000013 nop
80002dc4: 00208f33 add t5,ra,sp
80002dc8: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002dcc: 00200293 li t0,2
80002dd0: fe5212e3 bne tp,t0,80002db4 <test_25+0x4>
80002dd4: 01a00e93 li t4,26
80002dd8: 01900193 li gp,25
80002ddc: 1fdf1a63 bne t5,t4,80002fd0 <fail>
0000000080002de0 <test_26>:
80002de0: 00000213 li tp,0
80002de4: 00d00093 li ra,13
80002de8: 00000013 nop
80002dec: 00b00113 li sp,11
80002df0: 00208f33 add t5,ra,sp
80002df4: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002df8: 00200293 li t0,2
80002dfc: fe5214e3 bne tp,t0,80002de4 <test_26+0x4>
80002e00: 01800e93 li t4,24
80002e04: 01a00193 li gp,26
80002e08: 1ddf1463 bne t5,t4,80002fd0 <fail>
0000000080002e0c <test_27>:
80002e0c: 00000213 li tp,0
80002e10: 00e00093 li ra,14
80002e14: 00000013 nop
80002e18: 00b00113 li sp,11
80002e1c: 00000013 nop
80002e20: 00208f33 add t5,ra,sp
80002e24: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002e28: 00200293 li t0,2
80002e2c: fe5212e3 bne tp,t0,80002e10 <test_27+0x4>
80002e30: 01900e93 li t4,25
80002e34: 01b00193 li gp,27
80002e38: 19df1c63 bne t5,t4,80002fd0 <fail>
0000000080002e3c <test_28>:
80002e3c: 00000213 li tp,0
80002e40: 00f00093 li ra,15
80002e44: 00000013 nop
80002e48: 00000013 nop
80002e4c: 00b00113 li sp,11
80002e50: 00208f33 add t5,ra,sp
80002e54: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002e58: 00200293 li t0,2
80002e5c: fe5212e3 bne tp,t0,80002e40 <test_28+0x4>
80002e60: 01a00e93 li t4,26
80002e64: 01c00193 li gp,28
80002e68: 17df1463 bne t5,t4,80002fd0 <fail>
0000000080002e6c <test_29>:
80002e6c: 00000213 li tp,0
80002e70: 00b00113 li sp,11
80002e74: 00d00093 li ra,13
80002e78: 00208f33 add t5,ra,sp
80002e7c: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002e80: 00200293 li t0,2
80002e84: fe5216e3 bne tp,t0,80002e70 <test_29+0x4>
80002e88: 01800e93 li t4,24
80002e8c: 01d00193 li gp,29
80002e90: 15df1063 bne t5,t4,80002fd0 <fail>
0000000080002e94 <test_30>:
80002e94: 00000213 li tp,0
80002e98: 00b00113 li sp,11
80002e9c: 00e00093 li ra,14
80002ea0: 00000013 nop
80002ea4: 00208f33 add t5,ra,sp
80002ea8: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002eac: 00200293 li t0,2
80002eb0: fe5214e3 bne tp,t0,80002e98 <test_30+0x4>
80002eb4: 01900e93 li t4,25
80002eb8: 01e00193 li gp,30
80002ebc: 11df1a63 bne t5,t4,80002fd0 <fail>
0000000080002ec0 <test_31>:
80002ec0: 00000213 li tp,0
80002ec4: 00b00113 li sp,11
80002ec8: 00f00093 li ra,15
80002ecc: 00000013 nop
80002ed0: 00000013 nop
80002ed4: 00208f33 add t5,ra,sp
80002ed8: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002edc: 00200293 li t0,2
80002ee0: fe5212e3 bne tp,t0,80002ec4 <test_31+0x4>
80002ee4: 01a00e93 li t4,26
80002ee8: 01f00193 li gp,31
80002eec: 0fdf1263 bne t5,t4,80002fd0 <fail>
0000000080002ef0 <test_32>:
80002ef0: 00000213 li tp,0
80002ef4: 00b00113 li sp,11
80002ef8: 00000013 nop
80002efc: 00d00093 li ra,13
80002f00: 00208f33 add t5,ra,sp
80002f04: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002f08: 00200293 li t0,2
80002f0c: fe5214e3 bne tp,t0,80002ef4 <test_32+0x4>
80002f10: 01800e93 li t4,24
80002f14: 02000193 li gp,32
80002f18: 0bdf1c63 bne t5,t4,80002fd0 <fail>
0000000080002f1c <test_33>:
80002f1c: 00000213 li tp,0
80002f20: 00b00113 li sp,11
80002f24: 00000013 nop
80002f28: 00e00093 li ra,14
80002f2c: 00000013 nop
80002f30: 00208f33 add t5,ra,sp
80002f34: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002f38: 00200293 li t0,2
80002f3c: fe5212e3 bne tp,t0,80002f20 <test_33+0x4>
80002f40: 01900e93 li t4,25
80002f44: 02100193 li gp,33
80002f48: 09df1463 bne t5,t4,80002fd0 <fail>
0000000080002f4c <test_34>:
80002f4c: 00000213 li tp,0
80002f50: 00b00113 li sp,11
80002f54: 00000013 nop
80002f58: 00000013 nop
80002f5c: 00f00093 li ra,15
80002f60: 00208f33 add t5,ra,sp
80002f64: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80002f68: 00200293 li t0,2
80002f6c: fe5212e3 bne tp,t0,80002f50 <test_34+0x4>
80002f70: 01a00e93 li t4,26
80002f74: 02200193 li gp,34
80002f78: 05df1c63 bne t5,t4,80002fd0 <fail>
0000000080002f7c <test_35>:
80002f7c: 00f00093 li ra,15
80002f80: 00100133 add sp,zero,ra
80002f84: 00f00e93 li t4,15
80002f88: 02300193 li gp,35
80002f8c: 05d11263 bne sp,t4,80002fd0 <fail>
0000000080002f90 <test_36>:
80002f90: 02000093 li ra,32
80002f94: 00008133 add sp,ra,zero
80002f98: 02000e93 li t4,32
80002f9c: 02400193 li gp,36
80002fa0: 03d11863 bne sp,t4,80002fd0 <fail>
0000000080002fa4 <test_37>:
80002fa4: 000000b3 add ra,zero,zero
80002fa8: 00000e93 li t4,0
80002fac: 02500193 li gp,37
80002fb0: 03d09063 bne ra,t4,80002fd0 <fail>
0000000080002fb4 <test_38>:
80002fb4: 01000093 li ra,16
80002fb8: 01e00113 li sp,30
80002fbc: 00208033 add zero,ra,sp
80002fc0: 00000e93 li t4,0
80002fc4: 02600193 li gp,38
80002fc8: 01d01463 bne zero,t4,80002fd0 <fail>
80002fcc: 00301a63 bne zero,gp,80002fe0 <pass>
0000000080002fd0 <fail>:
80002fd0: 00119513 slli a0,gp,0x1
80002fd4: 00050063 beqz a0,80002fd4 <fail+0x4>
80002fd8: 00156513 ori a0,a0,1
80002fdc: 00000073 ecall
0000000080002fe0 <pass>:
80002fe0: 00100513 li a0,1
80002fe4: 00000073 ecall
80002fe8: c0001073 unimp
| {
"pile_set_name": "Github"
} |
// ReSharper disable ObjectCreationAsStatement
namespace UglyToad.PdfPig.Tests.Tokens
{
using System;
using System.Collections.Generic;
using PdfPig.Core;
using PdfPig.Tokens;
using Xunit;
public class DictionaryTokenTests
{
[Fact]
public void NullDictionaryThrows()
{
Action action = () => new DictionaryToken(null);
Assert.Throws<ArgumentNullException>(action);
}
[Fact]
public void EmptyDictionaryValid()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>());
Assert.Empty(dictionary.Data);
}
[Fact]
public void TryGetByName_EmptyDictionary()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>());
var result = dictionary.TryGet(NameToken.ActualText, out var token);
Assert.False(result);
Assert.Null(token);
}
[Fact]
public void TryGetByName_NullName_Throws()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>());
Action action = () => dictionary.TryGet(null, out var _);
Assert.Throws<ArgumentNullException>(action);
}
[Fact]
public void TryGetByName_NonEmptyDictionaryNotContainingKey()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>
{
{ NameToken.Create("Registry"), new StringToken("None") }
});
var result = dictionary.TryGet(NameToken.ActualText, out var token);
Assert.False(result);
Assert.Null(token);
}
[Fact]
public void TryGetByName_ContainingKey()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>
{
{ NameToken.Create("Fish"), new NumericToken(420) },
{ NameToken.Create("Registry"), new StringToken("None") }
});
var result = dictionary.TryGet(NameToken.Registry, out var token);
Assert.True(result);
Assert.Equal("None", Assert.IsType<StringToken>(token).Data);
}
[Fact]
public void GetWithObjectNotOfTypeOrReferenceThrows()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>
{
{ NameToken.Count, new StringToken("twelve") }
});
Action action = () => dictionary.Get<NumericToken>(NameToken.Count, new TestPdfTokenScanner());
Assert.Throws<PdfDocumentFormatException>(action);
}
[Fact]
public void WithCorrectlyAddsKey()
{
var dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>
{
{ NameToken.Count, new StringToken("12") }
});
var newDictionary = dictionary.With(NameToken.ActualText, new StringToken("The text"));
Assert.True(newDictionary.ContainsKey(NameToken.ActualText));
Assert.Equal("The text", newDictionary.Get<StringToken>(NameToken.ActualText, new TestPdfTokenScanner()).Data);
}
}
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="viewModel"
type="com.skydoves.mvvm_coroutines.ui.main.MainActivityViewModel" />
<variable
name="adapter"
type="com.skydoves.common_ui.adapters.TvListAdapter" />
</data>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
app:adapter="@{adapter}"
app:adapterTvList="@{viewModel.tvListLiveData}"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="2"
tools:listitem="@layout/item_tv" />
</RelativeLayout>
</layout> | {
"pile_set_name": "Github"
} |
MAPv2-SM-DataTypes {
ccitt identified-organization (4) etsi (0) mobileDomain (0)
gsm-Network (1) modules (3) map-SM-DataTypes (16) version2 (2)}
DEFINITIONS
IMPLICIT TAGS
::=
BEGIN
EXPORTS
RoutingInfoForSM-Arg,
RoutingInfoForSM-Res,
ForwardSM-Arg,
ReportSM-DeliveryStatusArg,
AlertServiceCentreArg,
InformServiceCentreArg,
ReadyForSM-Arg,
SM-DeliveryOutcome,
AlertReason
;
IMPORTS
AddressString,
ISDN-AddressString,
SignalInfo,
IMSI,
LocationInfo,
LMSI
FROM MAPv2-CommonDataTypes {
ccitt identified-organization (4) etsi (0) mobileDomain (0)
gsm-Network (1) modules (3) map-CommonDataTypes (18) version2 (2)}
TeleserviceCode
FROM MAPv2-TS-Code {
ccitt identified-organization (4) etsi (0) mobileDomain (0)
gsm-Network (1) modules (3) map-TS-Code (19) version2 (2)}
;
RoutingInfoForSM-Arg ::= SEQUENCE {
msisdn [0] ISDN-AddressString,
sm-RP-PRI [1] BOOLEAN,
serviceCentreAddress [2] AddressString,
teleservice [5] TeleserviceCode OPTIONAL,
-- OA>1 teleservice must be absent in version greater 1
...}
RoutingInfoForSM-Res::= SEQUENCE {
imsi IMSI,
locationInfoWithLMSI [0] LocationInfoWithLMSI,
mwd-Set [2] BOOLEAN OPTIONAL,
-- OA>1 mwd-Set must be absent in version greater 1
...}
LocationInfoWithLMSI ::= SEQUENCE {
locationInfo LocationInfo,
lmsi LMSI OPTIONAL,
...}
ForwardSM-Arg ::= SEQUENCE {
sm-RP-DA SM-RP-DA,
sm-RP-OA SM-RP-OA,
sm-RP-UI SignalInfo,
moreMessagesToSend NULL OPTIONAL,
-- OA1 moreMessagesToSend must be absent in version 1
...}
SM-RP-DA ::= CHOICE {
imsi [0] IMSI,
lmsi [1] LMSI,
roamingNumber [3] ISDN-AddressString,
-- NU>1 roaming number must not be used in version greater 1
serviceCentreAddressDA [4] AddressString,
noSM-RP-DA [5] NULL}
-- NU1 noSM-RP-DA must not be used in version 1
SM-RP-OA ::= CHOICE {
msisdn [2] ISDN-AddressString,
serviceCentreAddressOA [4] AddressString,
noSM-RP-OA [5] NULL}
-- NU1 noSM-RP-OA must not be used in version 1
ReportSM-DeliveryStatusArg ::= SEQUENCE {
msisdn ISDN-AddressString,
serviceCentreAddress AddressString,
sm-DeliveryOutcome SM-DeliveryOutcome OPTIONAL,
-- OA1 sm-DeliveryOutcome must be absent in version 1
-- OP>1 sm-DeliveryOutcome must be present in version greater 1
...}
SM-DeliveryOutcome ::= ENUMERATED {
memoryCapacityExceeded (0),
absentSubscriber (1),
successfulTransfer (2)}
AlertServiceCentreArg ::= SEQUENCE {
msisdn ISDN-AddressString,
serviceCentreAddress AddressString,
...}
InformServiceCentreArg ::= SEQUENCE {
storedMSISDN ISDN-AddressString OPTIONAL,
mw-Status MW-Status OPTIONAL,
...}
MW-Status ::= BIT STRING {
sc-AddressNotIncluded (0),
mnrf-Set (1),
mcef-Set (2)} (SIZE (6))
ReadyForSM-Arg ::= SEQUENCE {
imsi [0] IMSI,
alertReason AlertReason,
...}
AlertReason ::= ENUMERATED {
ms-Present (0),
memoryAvailable (1)}
END
| {
"pile_set_name": "Github"
} |
<?php
/**
* Pi Engine (http://piengine.org)
*
* @link http://code.piengine.org for the Pi Engine source repository
* @copyright Copyright (c) Pi Engine http://piengine.org
* @license http://piengine.org/license.txt BSD 3-Clause License
*/
namespace Module\Article\Installer\Action;
use Module\Article\Installer\Schema;
use Pi\Application\Installer\Action\Update as BasicUpdate;
use Laminas\EventManager\Event;
/**
* Schema update class
*
* @author Zongshu Lin <lin40553024@163.com>
*/
class Update extends BasicUpdate
{
/**
* {@inheritDoc}
*/
protected function attachDefaultListeners()
{
$events = $this->events;
$events->attach('update.pre', [$this, 'updateSchema']);
parent::attachDefaultListeners();
return $this;
}
/**
* Update module table schema
*
* @param Event $e
*
* @return bool
*/
public function updateSchema(Event $e)
{
$moduleVersion = $e->getParam('version');
$updator = new Schema\Updator110($this);
$result = $updator->upgrade($moduleVersion);
return $result;
}
}
| {
"pile_set_name": "Github"
} |
An **rvalue reference** is a reference that must be bounded to an rvalue. It refers to an object's **value**. Rvalues are ephemeral.
An **lvalue reference** (regular reference) is a reference that must be bounded to an lvalue or `const` rvalue. It refers to an object's **identity**. Lvalues are pesistent.
| {
"pile_set_name": "Github"
} |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: google/cloud/automl/v1beta1/regression.proto
package automl
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Metrics for regression problems.
type RegressionEvaluationMetrics struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. Root Mean Squared Error (RMSE).
RootMeanSquaredError float32 `protobuf:"fixed32,1,opt,name=root_mean_squared_error,json=rootMeanSquaredError,proto3" json:"root_mean_squared_error,omitempty"`
// Output only. Mean Absolute Error (MAE).
MeanAbsoluteError float32 `protobuf:"fixed32,2,opt,name=mean_absolute_error,json=meanAbsoluteError,proto3" json:"mean_absolute_error,omitempty"`
// Output only. Mean absolute percentage error. Only set if all ground truth
// values are are positive.
MeanAbsolutePercentageError float32 `protobuf:"fixed32,3,opt,name=mean_absolute_percentage_error,json=meanAbsolutePercentageError,proto3" json:"mean_absolute_percentage_error,omitempty"`
// Output only. R squared.
RSquared float32 `protobuf:"fixed32,4,opt,name=r_squared,json=rSquared,proto3" json:"r_squared,omitempty"`
// Output only. Root mean squared log error.
RootMeanSquaredLogError float32 `protobuf:"fixed32,5,opt,name=root_mean_squared_log_error,json=rootMeanSquaredLogError,proto3" json:"root_mean_squared_log_error,omitempty"`
}
func (x *RegressionEvaluationMetrics) Reset() {
*x = RegressionEvaluationMetrics{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_automl_v1beta1_regression_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegressionEvaluationMetrics) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegressionEvaluationMetrics) ProtoMessage() {}
func (x *RegressionEvaluationMetrics) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_automl_v1beta1_regression_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegressionEvaluationMetrics.ProtoReflect.Descriptor instead.
func (*RegressionEvaluationMetrics) Descriptor() ([]byte, []int) {
return file_google_cloud_automl_v1beta1_regression_proto_rawDescGZIP(), []int{0}
}
func (x *RegressionEvaluationMetrics) GetRootMeanSquaredError() float32 {
if x != nil {
return x.RootMeanSquaredError
}
return 0
}
func (x *RegressionEvaluationMetrics) GetMeanAbsoluteError() float32 {
if x != nil {
return x.MeanAbsoluteError
}
return 0
}
func (x *RegressionEvaluationMetrics) GetMeanAbsolutePercentageError() float32 {
if x != nil {
return x.MeanAbsolutePercentageError
}
return 0
}
func (x *RegressionEvaluationMetrics) GetRSquared() float32 {
if x != nil {
return x.RSquared
}
return 0
}
func (x *RegressionEvaluationMetrics) GetRootMeanSquaredLogError() float32 {
if x != nil {
return x.RootMeanSquaredLogError
}
return 0
}
var File_google_cloud_automl_v1beta1_regression_proto protoreflect.FileDescriptor
var file_google_cloud_automl_v1beta1_regression_proto_rawDesc = []byte{
0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65,
0x67, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74,
0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x02, 0x0a, 0x1b, 0x52, 0x65,
0x67, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x72, 0x6f, 0x6f,
0x74, 0x5f, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x73, 0x71, 0x75, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x14, 0x72, 0x6f, 0x6f, 0x74,
0x4d, 0x65, 0x61, 0x6e, 0x53, 0x71, 0x75, 0x61, 0x72, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72,
0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x61, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74,
0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x11, 0x6d,
0x65, 0x61, 0x6e, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72,
0x12, 0x43, 0x0a, 0x1e, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x61, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74,
0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x72, 0x72,
0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x1b, 0x6d, 0x65, 0x61, 0x6e, 0x41, 0x62,
0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65,
0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x5f, 0x73, 0x71, 0x75, 0x61, 0x72,
0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x72, 0x53, 0x71, 0x75, 0x61, 0x72,
0x65, 0x64, 0x12, 0x3c, 0x0a, 0x1b, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x6d, 0x65, 0x61, 0x6e, 0x5f,
0x73, 0x71, 0x75, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x72, 0x72, 0x6f,
0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x17, 0x72, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x61,
0x6e, 0x53, 0x71, 0x75, 0x61, 0x72, 0x65, 0x64, 0x4c, 0x6f, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72,
0x42, 0xb4, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x52, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a,
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_google_cloud_automl_v1beta1_regression_proto_rawDescOnce sync.Once
file_google_cloud_automl_v1beta1_regression_proto_rawDescData = file_google_cloud_automl_v1beta1_regression_proto_rawDesc
)
func file_google_cloud_automl_v1beta1_regression_proto_rawDescGZIP() []byte {
file_google_cloud_automl_v1beta1_regression_proto_rawDescOnce.Do(func() {
file_google_cloud_automl_v1beta1_regression_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1beta1_regression_proto_rawDescData)
})
return file_google_cloud_automl_v1beta1_regression_proto_rawDescData
}
var file_google_cloud_automl_v1beta1_regression_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_google_cloud_automl_v1beta1_regression_proto_goTypes = []interface{}{
(*RegressionEvaluationMetrics)(nil), // 0: google.cloud.automl.v1beta1.RegressionEvaluationMetrics
}
var file_google_cloud_automl_v1beta1_regression_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_google_cloud_automl_v1beta1_regression_proto_init() }
func file_google_cloud_automl_v1beta1_regression_proto_init() {
if File_google_cloud_automl_v1beta1_regression_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_google_cloud_automl_v1beta1_regression_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegressionEvaluationMetrics); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_google_cloud_automl_v1beta1_regression_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_google_cloud_automl_v1beta1_regression_proto_goTypes,
DependencyIndexes: file_google_cloud_automl_v1beta1_regression_proto_depIdxs,
MessageInfos: file_google_cloud_automl_v1beta1_regression_proto_msgTypes,
}.Build()
File_google_cloud_automl_v1beta1_regression_proto = out.File
file_google_cloud_automl_v1beta1_regression_proto_rawDesc = nil
file_google_cloud_automl_v1beta1_regression_proto_goTypes = nil
file_google_cloud_automl_v1beta1_regression_proto_depIdxs = nil
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.7.0_65" class="java.beans.XMLDecoder">
<!-- Note that this XML is specific to the neuroConstruct Java cell object model and not any part of the NeuroML framework -->
<object class="ucl.physiol.neuroconstruct.cell.Cell">
<void property="allSegments">
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment0">
<void property="endPointPositionX">
<float>-7.75</float>
</void>
<void property="endPointPositionY">
<float>-260.9</float>
</void>
<void property="endPointPositionZ">
<float>39.0</float>
</void>
<void property="radius">
<float>1.3086252</float>
</void>
<void property="section">
<object class="ucl.physiol.neuroconstruct.cell.Section">
<void property="groups">
<void method="add">
<string>soma_group</string>
</void>
</void>
<void property="sectionName">
<string>Soma</string>
</void>
<void property="startPointPositionX">
<float>-7.75</float>
</void>
<void property="startPointPositionY">
<float>-260.9</float>
</void>
<void property="startPointPositionZ">
<float>39.0</float>
</void>
<void property="startRadius">
<float>1.3086252</float>
</void>
</object>
</void>
<void property="segmentId">
<int>0</int>
</void>
<void property="segmentName">
<string>Seg0_soma_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment1">
<void property="endPointPositionX">
<float>-7.6499996</float>
</void>
<void property="endPointPositionY">
<float>-260.9</float>
</void>
<void property="endPointPositionZ">
<float>39.0</float>
</void>
<void property="parentSegment">
<object idref="Segment0"/>
</void>
<void property="radius">
<float>0.25</float>
</void>
<void property="section">
<object class="ucl.physiol.neuroconstruct.cell.Section" id="Section0">
<void property="groups">
<void method="add">
<string>axon_group</string>
</void>
</void>
<void property="sectionName">
<string>Axon</string>
</void>
<void property="startPointPositionX">
<float>-7.75</float>
</void>
<void property="startPointPositionY">
<float>-260.9</float>
</void>
<void property="startPointPositionZ">
<float>39.0</float>
</void>
<void property="startRadius">
<float>0.25</float>
</void>
</object>
</void>
<void property="segmentId">
<int>1</int>
</void>
<void property="segmentName">
<string>Seg0_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment2">
<void property="endPointPositionX">
<float>-7.6499996</float>
</void>
<void property="endPointPositionY">
<float>-260.5</float>
</void>
<void property="endPointPositionZ">
<float>38.800003</float>
</void>
<void property="parentSegment">
<object idref="Segment1"/>
</void>
<void property="radius">
<float>0.20615529</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>2</int>
</void>
<void property="segmentName">
<string>Seg2_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment3">
<void property="endPointPositionX">
<float>-7.6499996</float>
</void>
<void property="endPointPositionY">
<float>-260.25</float>
</void>
<void property="endPointPositionZ">
<float>38.3</float>
</void>
<void property="parentSegment">
<object idref="Segment2"/>
</void>
<void property="radius">
<float>0.21213202</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>3</int>
</void>
<void property="segmentName">
<string>Seg3_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment4">
<void property="endPointPositionX">
<float>-7.75</float>
</void>
<void property="endPointPositionY">
<float>-261.45</float>
</void>
<void property="endPointPositionZ">
<float>36.199997</float>
</void>
<void property="parentSegment">
<object idref="Segment3"/>
</void>
<void property="radius">
<float>0.23452078</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>4</int>
</void>
<void property="segmentName">
<string>Seg4_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment5">
<void property="endPointPositionX">
<float>-8.0</float>
</void>
<void property="endPointPositionY">
<float>-265.525</float>
</void>
<void property="endPointPositionZ">
<float>29.9</float>
</void>
<void property="parentSegment">
<object idref="Segment4"/>
</void>
<void property="radius">
<float>0.16007811</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>5</int>
</void>
<void property="segmentName">
<string>Seg5_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment6">
<void property="endPointPositionX">
<float>-7.5000005</float>
</void>
<void property="endPointPositionY">
<float>-265.75</float>
</void>
<void property="endPointPositionZ">
<float>29.499998</float>
</void>
<void property="parentSegment">
<object idref="Segment5"/>
</void>
<void property="radius">
<float>0.20615529</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>6</int>
</void>
<void property="segmentName">
<string>Seg6_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment7">
<void property="endPointPositionX">
<float>-3.7</float>
</void>
<void property="endPointPositionY">
<float>-267.45</float>
</void>
<void property="endPointPositionZ">
<float>26.425001</float>
</void>
<void property="parentSegment">
<object idref="Segment6"/>
</void>
<void property="radius">
<float>0.2193741</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>7</int>
</void>
<void property="segmentName">
<string>Seg7_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment8">
<void property="endPointPositionX">
<float>-2.6000001</float>
</void>
<void property="endPointPositionY">
<float>-268.25</float>
</void>
<void property="endPointPositionZ">
<float>26.449999</float>
</void>
<void property="parentSegment">
<object idref="Segment7"/>
</void>
<void property="radius">
<float>0.18708287</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>8</int>
</void>
<void property="segmentName">
<string>Seg8_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment9">
<void property="endPointPositionX">
<float>-2.35</float>
</void>
<void property="endPointPositionY">
<float>-269.19998</float>
</void>
<void property="endPointPositionZ">
<float>27.8</float>
</void>
<void property="parentSegment">
<object idref="Segment8"/>
</void>
<void property="radius">
<float>0.20615529</float>
</void>
<void property="section">
<object idref="Section0"/>
</void>
<void property="segmentId">
<int>9</int>
</void>
<void property="segmentName">
<string>Seg9_axon_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment10">
<void property="endPointPositionX">
<float>-2.35</float>
</void>
<void property="endPointPositionY">
<float>-269.42502</float>
</void>
<void property="endPointPositionZ">
<float>27.849998</float>
</void>
<void property="parentSegment">
<object idref="Segment9"/>
</void>
<void property="radius">
<float>0.24622145</float>
</void>
<void property="section">
<object class="ucl.physiol.neuroconstruct.cell.Section" id="Section1">
<void property="groups">
<void method="add">
<string>dendrite_group</string>
</void>
</void>
<void property="sectionName">
<string>Neurite2</string>
</void>
<void property="startPointPositionX">
<float>-2.35</float>
</void>
<void property="startPointPositionY">
<float>-269.19998</float>
</void>
<void property="startPointPositionZ">
<float>27.8</float>
</void>
<void property="startRadius">
<float>0.20615529</float>
</void>
</object>
</void>
<void property="segmentId">
<int>10</int>
</void>
<void property="segmentName">
<string>Seg10_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment11">
<void property="endPointPositionX">
<float>-2.4</float>
</void>
<void property="endPointPositionY">
<float>-269.55</float>
</void>
<void property="endPointPositionZ">
<float>27.599998</float>
</void>
<void property="parentSegment">
<object idref="Segment10"/>
</void>
<void property="radius">
<float>0.20615529</float>
</void>
<void property="section">
<object idref="Section1"/>
</void>
<void property="segmentId">
<int>11</int>
</void>
<void property="segmentName">
<string>Seg11_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment12">
<void property="endPointPositionX">
<float>-2.4</float>
</void>
<void property="endPointPositionY">
<float>-269.5</float>
</void>
<void property="endPointPositionZ">
<float>27.25</float>
</void>
<void property="parentSegment">
<object idref="Segment11"/>
</void>
<void property="radius">
<float>0.15</float>
</void>
<void property="section">
<object idref="Section1"/>
</void>
<void property="segmentId">
<int>12</int>
</void>
<void property="segmentName">
<string>Seg12_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment">
<void property="endPointPositionX">
<float>-2.4</float>
</void>
<void property="endPointPositionY">
<float>-269.0</float>
</void>
<void property="endPointPositionZ">
<float>26.699999</float>
</void>
<void property="parentSegment">
<object idref="Segment12"/>
</void>
<void property="radius">
<float>0.17320508</float>
</void>
<void property="section">
<object idref="Section1"/>
</void>
<void property="segmentId">
<int>13</int>
</void>
<void property="segmentName">
<string>Seg13_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment13">
<void property="endPointPositionX">
<float>-2.35</float>
</void>
<void property="endPointPositionY">
<float>-269.45</float>
</void>
<void property="endPointPositionZ">
<float>28.099998</float>
</void>
<void property="parentSegment">
<object idref="Segment9"/>
</void>
<void property="radius">
<float>0.18708287</float>
</void>
<void property="section">
<object class="ucl.physiol.neuroconstruct.cell.Section" id="Section2">
<void property="groups">
<void method="add">
<string>dendrite_group</string>
</void>
</void>
<void property="sectionName">
<string>Neurite3</string>
</void>
<void property="startPointPositionX">
<float>-2.35</float>
</void>
<void property="startPointPositionY">
<float>-269.19998</float>
</void>
<void property="startPointPositionZ">
<float>27.8</float>
</void>
<void property="startRadius">
<float>0.20615529</float>
</void>
</object>
</void>
<void property="segmentId">
<int>14</int>
</void>
<void property="segmentName">
<string>Seg14_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment14">
<void property="endPointPositionX">
<float>-2.35</float>
</void>
<void property="endPointPositionY">
<float>-270.90002</float>
</void>
<void property="endPointPositionZ">
<float>29.949999</float>
</void>
<void property="parentSegment">
<object idref="Segment13"/>
</void>
<void property="radius">
<float>0.18708287</float>
</void>
<void property="section">
<object idref="Section2"/>
</void>
<void property="segmentId">
<int>15</int>
</void>
<void property="segmentName">
<string>Seg15_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment15">
<void property="endPointPositionX">
<float>-2.35</float>
</void>
<void property="endPointPositionY">
<float>-271.15</float>
</void>
<void property="endPointPositionZ">
<float>30.1</float>
</void>
<void property="parentSegment">
<object idref="Segment14"/>
</void>
<void property="radius">
<float>0.2915476</float>
</void>
<void property="section">
<object class="ucl.physiol.neuroconstruct.cell.Section" id="Section3">
<void property="groups">
<void method="add">
<string>dendrite_group</string>
</void>
</void>
<void property="sectionName">
<string>Neurite4</string>
</void>
<void property="startPointPositionX">
<float>-2.35</float>
</void>
<void property="startPointPositionY">
<float>-270.90002</float>
</void>
<void property="startPointPositionZ">
<float>29.949999</float>
</void>
<void property="startRadius">
<float>0.18708287</float>
</void>
</object>
</void>
<void property="segmentId">
<int>16</int>
</void>
<void property="segmentName">
<string>Seg16_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment16">
<void property="endPointPositionX">
<float>-2.4</float>
</void>
<void property="endPointPositionY">
<float>-271.25</float>
</void>
<void property="endPointPositionZ">
<float>29.750002</float>
</void>
<void property="parentSegment">
<object idref="Segment15"/>
</void>
<void property="radius">
<float>0.122474484</float>
</void>
<void property="section">
<object idref="Section3"/>
</void>
<void property="segmentId">
<int>17</int>
</void>
<void property="segmentName">
<string>Seg17_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment17">
<void property="endPointPositionX">
<float>-2.4</float>
</void>
<void property="endPointPositionY">
<float>-271.55002</float>
</void>
<void property="endPointPositionZ">
<float>29.675001</float>
</void>
<void property="parentSegment">
<object idref="Segment16"/>
</void>
<void property="radius">
<float>0.16770509</float>
</void>
<void property="section">
<object idref="Section3"/>
</void>
<void property="segmentId">
<int>18</int>
</void>
<void property="segmentName">
<string>Seg18_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment">
<void property="endPointPositionX">
<float>-2.45</float>
</void>
<void property="endPointPositionY">
<float>-272.05</float>
</void>
<void property="endPointPositionZ">
<float>30.25</float>
</void>
<void property="parentSegment">
<object idref="Segment17"/>
</void>
<void property="radius">
<float>0.16583124</float>
</void>
<void property="section">
<object idref="Section3"/>
</void>
<void property="segmentId">
<int>19</int>
</void>
<void property="segmentName">
<string>Seg19_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment18">
<void property="endPointPositionX">
<float>-2.35</float>
</void>
<void property="endPointPositionY">
<float>-271.175</float>
</void>
<void property="endPointPositionZ">
<float>30.35</float>
</void>
<void property="parentSegment">
<object idref="Segment14"/>
</void>
<void property="radius">
<float>0.23584953</float>
</void>
<void property="section">
<object class="ucl.physiol.neuroconstruct.cell.Section" id="Section4">
<void property="groups">
<void method="add">
<string>dendrite_group</string>
</void>
</void>
<void property="sectionName">
<string>Neurite5</string>
</void>
<void property="startPointPositionX">
<float>-2.35</float>
</void>
<void property="startPointPositionY">
<float>-270.90002</float>
</void>
<void property="startPointPositionZ">
<float>29.949999</float>
</void>
<void property="startRadius">
<float>0.18708287</float>
</void>
</object>
</void>
<void property="segmentId">
<int>20</int>
</void>
<void property="segmentName">
<string>Seg20_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment19">
<void property="endPointPositionX">
<float>-2.625</float>
</void>
<void property="endPointPositionY">
<float>-272.44998</float>
</void>
<void property="endPointPositionZ">
<float>35.4</float>
</void>
<void property="parentSegment">
<object idref="Segment18"/>
</void>
<void property="radius">
<float>0.19525623</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>21</int>
</void>
<void property="segmentName">
<string>Seg21_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment20">
<void property="endPointPositionX">
<float>-4.8250003</float>
</void>
<void property="endPointPositionY">
<float>-273.15</float>
</void>
<void property="endPointPositionZ">
<float>38.125</float>
</void>
<void property="parentSegment">
<object idref="Segment19"/>
</void>
<void property="radius">
<float>0.19685021</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>22</int>
</void>
<void property="segmentName">
<string>Seg22_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment21">
<void property="endPointPositionX">
<float>-7.1000004</float>
</void>
<void property="endPointPositionY">
<float>-273.42502</float>
</void>
<void property="endPointPositionZ">
<float>39.825</float>
</void>
<void property="parentSegment">
<object idref="Segment20"/>
</void>
<void property="radius">
<float>0.21505812</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>23</int>
</void>
<void property="segmentName">
<string>Seg23_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment22">
<void property="endPointPositionX">
<float>-8.675</float>
</void>
<void property="endPointPositionY">
<float>-273.775</float>
</void>
<void property="endPointPositionZ">
<float>42.449997</float>
</void>
<void property="parentSegment">
<object idref="Segment21"/>
</void>
<void property="radius">
<float>0.22079402</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>24</int>
</void>
<void property="segmentName">
<string>Seg24_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment23">
<void property="endPointPositionX">
<float>-9.15</float>
</void>
<void property="endPointPositionY">
<float>-274.2</float>
</void>
<void property="endPointPositionZ">
<float>45.5</float>
</void>
<void property="parentSegment">
<object idref="Segment22"/>
</void>
<void property="radius">
<float>0.25</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>25</int>
</void>
<void property="segmentName">
<string>Seg25_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment24">
<void property="endPointPositionX">
<float>-8.625</float>
</void>
<void property="endPointPositionY">
<float>-274.65</float>
</void>
<void property="endPointPositionZ">
<float>48.525</float>
</void>
<void property="parentSegment">
<object idref="Segment23"/>
</void>
<void property="radius">
<float>0.23184046</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>26</int>
</void>
<void property="segmentName">
<string>Seg26_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment25">
<void property="endPointPositionX">
<float>-7.1000004</float>
</void>
<void property="endPointPositionY">
<float>-275.0</float>
</void>
<void property="endPointPositionZ">
<float>51.1</float>
</void>
<void property="parentSegment">
<object idref="Segment24"/>
</void>
<void property="radius">
<float>0.24494897</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>27</int>
</void>
<void property="segmentName">
<string>Seg27_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment26">
<void property="endPointPositionX">
<float>-4.75</float>
</void>
<void property="endPointPositionY">
<float>-275.3</float>
</void>
<void property="endPointPositionZ">
<float>52.824997</float>
</void>
<void property="parentSegment">
<object idref="Segment25"/>
</void>
<void property="radius">
<float>0.24109127</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>28</int>
</void>
<void property="segmentName">
<string>Seg28_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment27">
<void property="endPointPositionX">
<float>-2.1</float>
</void>
<void property="endPointPositionY">
<float>-275.35</float>
</void>
<void property="endPointPositionZ">
<float>53.399998</float>
</void>
<void property="parentSegment">
<object idref="Segment26"/>
</void>
<void property="radius">
<float>0.25</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>29</int>
</void>
<void property="segmentName">
<string>Seg29_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment28">
<void property="endPointPositionX">
<float>0.65000004</float>
</void>
<void property="endPointPositionY">
<float>-275.3</float>
</void>
<void property="endPointPositionZ">
<float>52.824997</float>
</void>
<void property="parentSegment">
<object idref="Segment27"/>
</void>
<void property="radius">
<float>0.16770509</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>30</int>
</void>
<void property="segmentName">
<string>Seg30_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment29">
<void property="endPointPositionX">
<float>2.8999999</float>
</void>
<void property="endPointPositionY">
<float>-275.0</float>
</void>
<void property="endPointPositionZ">
<float>51.1</float>
</void>
<void property="parentSegment">
<object idref="Segment28"/>
</void>
<void property="radius">
<float>0.17320508</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>31</int>
</void>
<void property="segmentName">
<string>Seg31_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment30">
<void property="endPointPositionX">
<float>4.4500003</float>
</void>
<void property="endPointPositionY">
<float>-274.65</float>
</void>
<void property="endPointPositionZ">
<float>48.525</float>
</void>
<void property="parentSegment">
<object idref="Segment29"/>
</void>
<void property="radius">
<float>0.21360008</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>32</int>
</void>
<void property="segmentName">
<string>Seg32_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment31">
<void property="endPointPositionX">
<float>5.025</float>
</void>
<void property="endPointPositionY">
<float>-274.2</float>
</void>
<void property="endPointPositionZ">
<float>45.5</float>
</void>
<void property="parentSegment">
<object idref="Segment30"/>
</void>
<void property="radius">
<float>0.16007811</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>33</int>
</void>
<void property="segmentName">
<string>Seg33_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment32">
<void property="endPointPositionX">
<float>4.5</float>
</void>
<void property="endPointPositionY">
<float>-273.775</float>
</void>
<void property="endPointPositionZ">
<float>42.449997</float>
</void>
<void property="parentSegment">
<object idref="Segment31"/>
</void>
<void property="radius">
<float>0.16770509</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>34</int>
</void>
<void property="segmentName">
<string>Seg34_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment33">
<void property="endPointPositionX">
<float>2.925</float>
</void>
<void property="endPointPositionY">
<float>-273.42502</float>
</void>
<void property="endPointPositionZ">
<float>39.825</float>
</void>
<void property="parentSegment">
<object idref="Segment32"/>
</void>
<void property="radius">
<float>0.21650635</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>35</int>
</void>
<void property="segmentName">
<string>Seg35_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment" id="Segment34">
<void property="endPointPositionX">
<float>0.65000004</float>
</void>
<void property="endPointPositionY">
<float>-273.15</float>
</void>
<void property="endPointPositionZ">
<float>38.125</float>
</void>
<void property="parentSegment">
<object idref="Segment33"/>
</void>
<void property="radius">
<float>0.23584953</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>36</int>
</void>
<void property="segmentName">
<string>Seg36_neurite_0</string>
</void>
</object>
</void>
<void method="add">
<object class="ucl.physiol.neuroconstruct.cell.Segment">
<void property="endPointPositionX">
<float>-1.525</float>
</void>
<void property="endPointPositionY">
<float>-273.15</float>
</void>
<void property="endPointPositionZ">
<float>37.725</float>
</void>
<void property="parentSegment">
<object idref="Segment34"/>
</void>
<void property="radius">
<float>0.23184046</float>
</void>
<void property="section">
<object idref="Section4"/>
</void>
<void property="segmentId">
<int>37</int>
</void>
<void property="segmentName">
<string>Seg37_neurite_0</string>
</void>
</object>
</void>
</void>
<void property="cellDescription">
<string>
Motor Neuron
</string>
</void>
<void property="chanMechsVsGroups">
<void method="put">
<object class="ucl.physiol.neuroconstruct.cell.ChannelMechanism">
<void property="density">
<float>2.5E-10</float>
</void>
<void property="name">
<string>LeakConductance</string>
</void>
</object>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
</void>
<void property="instanceName">
<string>RIMR</string>
</void>
<void property="synapsesVsGroups">
<void method="put">
<string>Acetylcholine_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>FMRFamide</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>FMRFamide_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>GABA_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Glutamate_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Acetylcholine_Tyramine_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Acetylcholine_Tyramine</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Acetylcholine</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Tyramine_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Glutamate</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Tyramine</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Generic_GJ</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>GABA</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
<void method="put">
<string>Octapamine</string>
<object class="java.util.Vector">
<void method="add">
<string>all</string>
</void>
</object>
</void>
</void>
</object>
</java>
| {
"pile_set_name": "Github"
} |
package serf
import (
"fmt"
"math"
"math/rand"
"net"
"regexp"
"sync"
"time"
)
// QueryParam is provided to Query() to configure the parameters of the
// query. If not provided, sane defaults will be used.
type QueryParam struct {
// If provided, we restrict the nodes that should respond to those
// with names in this list
FilterNodes []string
// FilterTags maps a tag name to a regular expression that is applied
// to restrict the nodes that should respond
FilterTags map[string]string
// If true, we are requesting an delivery acknowledgement from
// every node that meets the filter requirement. This means nodes
// the receive the message but do not pass the filters, will not
// send an ack.
RequestAck bool
// RelayFactor controls the number of duplicate responses to relay
// back to the sender through other nodes for redundancy.
RelayFactor uint8
// The timeout limits how long the query is left open. If not provided,
// then a default timeout is used based on the configuration of Serf
Timeout time.Duration
}
// DefaultQueryTimeout returns the default timeout value for a query
// Computed as GossipInterval * QueryTimeoutMult * log(N+1)
func (s *Serf) DefaultQueryTimeout() time.Duration {
n := s.memberlist.NumMembers()
timeout := s.config.MemberlistConfig.GossipInterval
timeout *= time.Duration(s.config.QueryTimeoutMult)
timeout *= time.Duration(math.Ceil(math.Log10(float64(n + 1))))
return timeout
}
// DefaultQueryParam is used to return the default query parameters
func (s *Serf) DefaultQueryParams() *QueryParam {
return &QueryParam{
FilterNodes: nil,
FilterTags: nil,
RequestAck: false,
Timeout: s.DefaultQueryTimeout(),
}
}
// encodeFilters is used to convert the filters into the wire format
func (q *QueryParam) encodeFilters() ([][]byte, error) {
var filters [][]byte
// Add the node filter
if len(q.FilterNodes) > 0 {
if buf, err := encodeFilter(filterNodeType, q.FilterNodes); err != nil {
return nil, err
} else {
filters = append(filters, buf)
}
}
// Add the tag filters
for tag, expr := range q.FilterTags {
filt := filterTag{tag, expr}
if buf, err := encodeFilter(filterTagType, &filt); err != nil {
return nil, err
} else {
filters = append(filters, buf)
}
}
return filters, nil
}
// QueryResponse is returned for each new Query. It is used to collect
// Ack's as well as responses and to provide those back to a client.
type QueryResponse struct {
// ackCh is used to send the name of a node for which we've received an ack
ackCh chan string
// deadline is the query end time (start + query timeout)
deadline time.Time
// Query ID
id uint32
// Stores the LTime of the query
lTime LamportTime
// respCh is used to send a response from a node
respCh chan NodeResponse
// acks/responses are used to track the nodes that have sent an ack/response
acks map[string]struct{}
responses map[string]struct{}
closed bool
closeLock sync.Mutex
}
// newQueryResponse is used to construct a new query response
func newQueryResponse(n int, q *messageQuery) *QueryResponse {
resp := &QueryResponse{
deadline: time.Now().Add(q.Timeout),
id: q.ID,
lTime: q.LTime,
respCh: make(chan NodeResponse, n),
responses: make(map[string]struct{}),
}
if q.Ack() {
resp.ackCh = make(chan string, n)
resp.acks = make(map[string]struct{})
}
return resp
}
// Close is used to close the query, which will close the underlying
// channels and prevent further deliveries
func (r *QueryResponse) Close() {
r.closeLock.Lock()
defer r.closeLock.Unlock()
if r.closed {
return
}
r.closed = true
if r.ackCh != nil {
close(r.ackCh)
}
if r.respCh != nil {
close(r.respCh)
}
}
// Deadline returns the ending deadline of the query
func (r *QueryResponse) Deadline() time.Time {
return r.deadline
}
// Finished returns if the query is finished running
func (r *QueryResponse) Finished() bool {
return r.closed || time.Now().After(r.deadline)
}
// AckCh returns a channel that can be used to listen for acks
// Channel will be closed when the query is finished. This is nil,
// if the query did not specify RequestAck.
func (r *QueryResponse) AckCh() <-chan string {
return r.ackCh
}
// ResponseCh returns a channel that can be used to listen for responses.
// Channel will be closed when the query is finished.
func (r *QueryResponse) ResponseCh() <-chan NodeResponse {
return r.respCh
}
// NodeResponse is used to represent a single response from a node
type NodeResponse struct {
From string
Payload []byte
}
// shouldProcessQuery checks if a query should be proceeded given
// a set of filers.
func (s *Serf) shouldProcessQuery(filters [][]byte) bool {
for _, filter := range filters {
switch filterType(filter[0]) {
case filterNodeType:
// Decode the filter
var nodes filterNode
if err := decodeMessage(filter[1:], &nodes); err != nil {
s.logger.Printf("[WARN] serf: failed to decode filterNodeType: %v", err)
return false
}
// Check if we are being targeted
found := false
for _, n := range nodes {
if n == s.config.NodeName {
found = true
break
}
}
if !found {
return false
}
case filterTagType:
// Decode the filter
var filt filterTag
if err := decodeMessage(filter[1:], &filt); err != nil {
s.logger.Printf("[WARN] serf: failed to decode filterTagType: %v", err)
return false
}
// Check if we match this regex
tags := s.config.Tags
matched, err := regexp.MatchString(filt.Expr, tags[filt.Tag])
if err != nil {
s.logger.Printf("[WARN] serf: failed to compile filter regex (%s): %v", filt.Expr, err)
return false
}
if !matched {
return false
}
default:
s.logger.Printf("[WARN] serf: query has unrecognized filter type: %d", filter[0])
return false
}
}
return true
}
// relayResponse will relay a copy of the given response to up to relayFactor
// other members.
func (s *Serf) relayResponse(relayFactor uint8, addr net.UDPAddr, resp *messageQueryResponse) error {
if relayFactor == 0 {
return nil
}
// Needs to be worth it; we need to have at least relayFactor *other*
// nodes. If you have a tiny cluster then the relayFactor shouldn't
// be needed.
members := s.Members()
if len(members) < int(relayFactor)+1 {
return nil
}
// Prep the relay message, which is a wrapped version of the original.
raw, err := encodeRelayMessage(messageQueryResponseType, addr, &resp)
if err != nil {
return fmt.Errorf("failed to format relayed response: %v", err)
}
if len(raw) > s.config.QueryResponseSizeLimit {
return fmt.Errorf("relayed response exceeds limit of %d bytes", s.config.QueryResponseSizeLimit)
}
// Relay to a random set of peers.
localName := s.LocalMember().Name
relayMembers := kRandomMembers(int(relayFactor), members, func(m Member) bool {
return m.Status != StatusAlive || m.ProtocolMax < 5 || m.Name == localName
})
for _, m := range relayMembers {
relayAddr := net.UDPAddr{IP: m.Addr, Port: int(m.Port)}
if err := s.memberlist.SendTo(&relayAddr, raw); err != nil {
return fmt.Errorf("failed to send relay response: %v", err)
}
}
return nil
}
// kRandomMembers selects up to k members from a given list, optionally
// filtering by the given filterFunc
func kRandomMembers(k int, members []Member, filterFunc func(Member) bool) []Member {
n := len(members)
kMembers := make([]Member, 0, k)
OUTER:
// Probe up to 3*n times, with large n this is not necessary
// since k << n, but with small n we want search to be
// exhaustive
for i := 0; i < 3*n && len(kMembers) < k; i++ {
// Get random member
idx := rand.Intn(n)
member := members[idx]
// Give the filter a shot at it.
if filterFunc != nil && filterFunc(member) {
continue OUTER
}
// Check if we have this member already
for j := 0; j < len(kMembers); j++ {
if member.Name == kMembers[j].Name {
continue OUTER
}
}
// Append the member
kMembers = append(kMembers, member)
}
return kMembers
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="iffscan"
ProjectGUID="{4cefbc94-c215-11db-8314-0800200c9a66}"
RootNamespace="iffscan"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
IntermediateDirectory="$(ConfigurationName)_iffscan"
ConfigurationType="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".;..\..\include"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;FLAC__HAS_OGG;FLAC__NO_DLL;DEBUG"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
CompileAs="0"
DisableSpecificWarnings="4267;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="$(SolutionDir)objs\$(ConfigurationName)\lib\libogg_static.lib"
LinkIncremental="2"
IgnoreDefaultLibraryNames="uuid.lib"
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
IntermediateDirectory="$(ConfigurationName)_iffscan"
ConfigurationType="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
OmitFramePointers="true"
WholeProgramOptimization="true"
AdditionalIncludeDirectories=".;..\..\include"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;FLAC__HAS_OGG;FLAC__NO_DLL"
RuntimeLibrary="0"
BufferSecurityCheck="false"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
CompileAs="0"
DisableSpecificWarnings="4267;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="$(SolutionDir)objs\$(ConfigurationName)\lib\libogg_static.lib"
LinkIncremental="1"
IgnoreDefaultLibraryNames="uuid.lib"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
LinkTimeCodeGeneration="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-6E5FBE522BFB}"
>
<File
RelativePath=".\foreign_metadata.h"
>
</File>
</Filter>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2D32A752A2FF}"
>
<File
RelativePath=".\foreign_metadata.c"
>
</File>
<File
RelativePath=".\iffscan.c"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
| {
"pile_set_name": "Github"
} |
import { ParserState, Context, Flags } from '../common';
import { Chars } from '../chars';
import { Token } from '../token';
import { report, Errors } from '../errors';
import { fromCodePoint, toHex, Escape, scanNext, advanceOne } from './common';
/**
* Scan a string literal
*
* @see [Link](https://tc39.github.io/ecma262/#sec-literals-string-literals)
*
* @param state Parser instance
* @param context Context masks
*/
export function scanStringLiteral(state: ParserState, context: Context, quote: number): Token {
const { index: start, lastChar } = state;
let ret: string | void = '';
let ch = scanNext(state, Errors.UnterminatedString);
while (ch !== quote) {
if (ch === Chars.Backslash) {
ch = scanNext(state, Errors.UnterminatedString);
if (ch >= 128) {
ret += fromCodePoint(ch);
} else {
state.lastChar = ch;
const code = table[ch](state, context, ch);
if (code >= 0) ret += fromCodePoint(code);
else reportInvalidEscapeError(state, code as Escape, /* isTemplate */ false);
ch = state.lastChar;
}
} else if (((ch - 0xe) & 0x2000 && ch === Chars.CarriageReturn) || ch === Chars.LineFeed) {
report(state, Errors.Unexpected);
} else ret += fromCodePoint(ch);
ch = scanNext(state, Errors.UnterminatedString);
}
advanceOne(state); // Consume the quote
if (context & Context.OptionsRaw) state.tokenRaw = state.source.slice(start, state.index);
state.tokenValue = ret;
state.lastChar = lastChar;
return Token.StringLiteral;
}
export const table = new Array<(state: ParserState, context: Context, first: number) => number>(128).fill(
(state: ParserState) => state.source.charCodeAt(state.index)
);
table[Chars.LowerB] = () => Chars.Backspace;
table[Chars.LowerF] = () => Chars.FormFeed;
table[Chars.LowerR] = () => Chars.CarriageReturn;
table[Chars.LowerN] = () => Chars.LineFeed;
table[Chars.LowerT] = () => Chars.Tab;
table[Chars.LowerV] = () => Chars.VerticalTab;
// Line continuations
table[Chars.CarriageReturn] = state => {
state.column = -1;
state.line++;
const { index } = state;
if (index < state.source.length) {
const ch = state.source.charCodeAt(index);
if (ch === Chars.LineFeed) {
state.lastChar = ch;
state.index = index + 1;
}
}
return Escape.Empty;
};
table[Chars.LineFeed] = table[Chars.LineSeparator] = table[Chars.ParagraphSeparator] = state => {
state.column = -1;
state.line++;
return Escape.Empty;
};
// Null character, octals specification.
table[Chars.Zero] = table[Chars.One] = table[Chars.Two] = table[Chars.Three] = (state, context, first) => {
let code = first - Chars.Zero;
let index = state.index + 1;
let column = state.column + 1;
if (index < state.source.length) {
const next = state.source.charCodeAt(index);
if (next < Chars.Zero || next > Chars.Seven) {
// Strict mode code allows only \0, then a non-digit.
if (code !== 0 || next === Chars.Eight || next === Chars.Nine) {
if (context & Context.Strict) return Escape.StrictOctal;
// If not in strict mode, set the 'Octal' bitmask so we later on
// can use it to throw an error when parsing out a literal node
state.flags = state.flags | Flags.Octal;
}
} else if (context & Context.Strict) {
return Escape.StrictOctal;
} else {
state.flags = state.flags | Flags.Octal;
state.lastChar = next;
code = code * 8 + (next - Chars.Zero);
index++;
column++;
if (index < state.source.length) {
const next = state.source.charCodeAt(index);
if (next >= Chars.Zero && next <= Chars.Seven) {
state.lastChar = next;
code = code * 8 + (next - Chars.Zero);
index++;
column++;
}
}
state.index = index - 1;
state.column = column - 1;
}
}
return code;
};
// Octal character specification.
table[Chars.Four] = table[Chars.Five] = table[Chars.Six] = table[Chars.Seven] = (state, context, first) => {
if (context & Context.Strict) return Escape.StrictOctal;
let code = first - Chars.Zero;
const index = state.index + 1;
const column = state.column + 1;
if (index < state.source.length) {
const next = state.source.charCodeAt(index);
if (next >= Chars.Zero && next <= Chars.Seven) {
code = code * 8 + (next - Chars.Zero);
state.lastChar = next;
state.index = index;
state.column = column;
}
}
return code;
};
// `8`, `9` (invalid escapes)
table[Chars.Eight] = table[Chars.Nine] = () => Escape.EightOrNine;
// Hexadecimal character specification
table[Chars.LowerX] = state => {
const ch1 = (state.lastChar = scanNext(state, Errors.InvalidHexEscapeSequence));
const hi = toHex(ch1);
if (hi < 0) return Escape.InvalidHex;
const ch2 = (state.lastChar = scanNext(state, Errors.InvalidHexEscapeSequence));
const lo = toHex(ch2);
if (lo < 0) return Escape.InvalidHex;
return hi * 16 + lo;
};
// Unicode character specification.
table[Chars.LowerU] = state => {
let ch = (state.lastChar = scanNext(state, Errors.InvalidUnicodeEscape));
if (ch === Chars.LeftBrace) {
// \u{N}
ch = state.lastChar = scanNext(state, Errors.InvalidUnicodeEscape);
let code = toHex(ch);
if (code < 0) return Escape.InvalidHex;
ch = state.lastChar = scanNext(state, Errors.InvalidUnicodeEscape);
while (ch !== Chars.RightBrace) {
const digit = toHex(ch);
if (digit < 0) return Escape.InvalidHex;
code = code * 16 + digit;
if (code > 0x10fff) return Escape.OutOfRange;
ch = state.lastChar = scanNext(state, Errors.InvalidUnicodeEscape);
}
return code;
} else {
// \uNNNN
let code = toHex(ch);
if (code < 0) return Escape.InvalidHex;
for (let i = 0; i < 3; i++) {
ch = state.lastChar = scanNext(state, Errors.InvalidUnicodeEscape);
const digit = toHex(ch);
if (digit < 0) return Escape.InvalidHex;
code = code * 16 + digit;
}
return code;
}
};
/**
* Throws a string error for either string or template literal
*
* @param state state object
* @param context Context masks
*/
export function reportInvalidEscapeError(state: ParserState, code: Escape, isTemplate: boolean): void {
switch (code) {
case Escape.StrictOctal:
report(state, isTemplate ? Errors.TemplateOctalLiteral : Errors.StrictOctalEscape);
case Escape.EightOrNine:
report(state, Errors.InvalidEightAndNine);
case Escape.InvalidHex:
report(state, Errors.InvalidHexEscapeSequence);
case Escape.OutOfRange:
report(state, Errors.UnicodeOverflow);
default:
return;
}
}
| {
"pile_set_name": "Github"
} |
:orphan:
==============================================================
Text Search with Basis Technology Rosette Linguistics Platform
==============================================================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. admonition:: Removal of Support for RLP
:class: admonition-example
MongoDB Enterprise no longer supports Text Search with Basis
Technology Rosette Linguistics Platform.
| {
"pile_set_name": "Github"
} |
$(PYTHON) | $(PYTHON_TOOLCHAIN)
| {
"pile_set_name": "Github"
} |
{% extends "main.html" %}
{% block content %}
{% include "header.html" %}
<div class="row divider green">
<div class="col-md-12"></div>
</div>
<div class="row banner menu">
<div class="col-md-11 col-md-offset-1 padding-none">
<h1>{{ restaurant.name }}
<figure class="creator">
<img src="{{ url_for('static', filename='blank_user.gif') }}">
<figcaption>Menu creator's name goes here</figcaption>
</figure>
</h1>
</div>
</div>
<div class = 'flash'>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
{% for message in messages %}
<li> <strong> {{ message }} </strong> </li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
</div>
<div class="row padding-top padding-bottom">
<div class="col-md-1"></div>
<div class="col-md-11 padding-none">
<a href="{{url_for('editRestaurant', restaurant_id = restaurant.id )}}">
<button class="btn btn-default" id="new-menu-item">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>Edit Restaurant
</button>
</a>
<a href="{{url_for('newMenuItem', restaurant_id = restaurant.id )}}">
<button class="btn btn-default" id="new-menu-item">
<span class="glyphicon glyphicon-glass" aria-hidden="true"></span>Add Menu Item
</button>
</a>
<a href="{{url_for('deleteRestaurant', restaurant_id = restaurant.id )}}">
<button class="btn btn-default delete" id="delete-restaurant">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>Delete Restaurant
</button>
</a>
</div>
<div class="col-md-7"></div>
</div>
{% if items !=[] %}
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-3">
<h2>Appetizers</h2>
{% for i in items %}
{% if i.course == 'Appetizer' %}
<div class="menu-item">
<h3>{{i.name}}</h3>
<p>{{i.description}}</p>
<p class="menu-price">{{i.price}}</p>
<a href='{{url_for('editMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Edit</a> |
<a href='{{url_for('deleteMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Delete</a>
</div>
{% endif %}
{% endfor %}
</div>
<div class="col-md-4">
<h2>Entrees</h2>
{% for i in items %}
{% if i.course == 'Entree' %}
<div class="menu-item">
<h3>{{i.name}}</h3>
<p>{{i.description}}</p>
<p class="menu-price">{{i.price}}</p>
<a href='{{url_for('editMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Edit</a> |
<a href='{{url_for('deleteMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Delete</a>
</div>
{% endif %}
{% endfor %}
</div>
<div class="col-md-3">
<h2>Desserts</h2>
{% for i in items %}
{% if i.course == 'Dessert' %}
<div class="menu-item">
<h3>{{i.name}}</h3>
<p>{{i.description}}</p>
<p class="menu-price">{{i.price}}</p>
<a href='{{url_for('editMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Edit</a> |
<a href='{{url_for('deleteMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Delete</a>
</div>
{% endif %}
{% endfor %}
<h2>Beverages</h2>
{% for i in items %}
{% if i.course == 'Beverage' %}
<div class="menu-item">
<h3>{{i.name}}</h3>
<p>{{i.description}}</p>
<p class="menu-price">{{i.price}}</p>
<a href='{{url_for('editMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Edit</a> |
<a href='{{url_for('deleteMenuItem', restaurant_id = restaurant.id, menu_id=i.id ) }}'>Delete</a>
</div>
{% endif %}
{% endfor %}
</div>
<div class="col-md-1"></div>
</div>
{% endif %}
{% endblock %}
| {
"pile_set_name": "Github"
} |
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera 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.
*****************************************************************************/
/*****************************************************************************
biquad.h --
Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
*****************************************************************************/
/*****************************************************************************
MODIFICATION LOG - modifiers, enter your name, affiliation, date and
changes you are making here.
Name, Affiliation, Date:
Description of Modification:
*****************************************************************************/
/* Filename biquad.h */
/* This is the interface file for synchronous process `biquad' */
#include "systemc.h"
SC_MODULE( biquad )
{
SC_HAS_PROCESS( biquad );
sc_in_clk clk;
sc_in<float> in;
sc_in<bool> reset;
sc_out<float> out;
int num_taps; //internal variable
float Del[4]; //internal variable
float Cte[5]; //internal variable
// Constructor
biquad( sc_module_name NAME,
sc_clock& CLK,
sc_signal<float>& IN1,
sc_signal<bool>& RESET,
sc_signal<float>& OUT1 )
{
clk(CLK);
in(IN1); reset(RESET); out(OUT1);
SC_CTHREAD( entry, clk.pos() );
reset_signal_is(reset,true);
// initialize the coefficient matrix
Cte[0] = 1.0;
Cte[1] = 2.0;
Cte[2] = 1.0;
Cte[3] = 0.75;
Cte[4] = -0.125;
Del[0] = Del[1] = Del[2] = Del[3] = 0.0;
}
// Process functionality in member function below
void entry();
};
| {
"pile_set_name": "Github"
} |
<snippet>
<content><![CDATA[
wx.openLocation({
latitude: ${1:'Float类型,纬度,范围为-90~90,负数表示南纬'}, // 必需
longitude: ${2:'Float,经度,范围为-180~180,负数表示西经'}, // 必需
scale: ${3:'INT类型,缩放比例,范围5~18,默认为18'},
name: ${4:'位置名'},
address: ${5:'地址的详细说明'},
success: (res) => {
${6}
},
fail: (res) => {
${7}
},
complete: (res) => {
${8}
}
})
]]></content>
<tabTrigger>wx.openLocation</tabTrigger>
<description>(使用微信内置地图查看位置)</description>
<scope>source.js</scope>
</snippet>
| {
"pile_set_name": "Github"
} |
/*
* IRIS Localization and Mapping (LaMa)
*
* Copyright (c) 2019-today, Eurico Pedrosa, University of Aveiro - Portugal
* All rights reserved.
* License: New BSD
*
* 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 University of Aveiro 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.
*
*/
#pragma once
#include "occupancy_map.h"
namespace lama {
class SimpleOccupancyMap : public OccupancyMap {
public:
SimpleOccupancyMap(double resolution, uint32_t patch_size = 32, bool is3d = false);
SimpleOccupancyMap(const SimpleOccupancyMap& other);
virtual ~SimpleOccupancyMap();
bool setFree(const Vector3d& coordinates);
bool setFree(const Vector3ui& coordinates);
bool setOccupied(const Vector3d& coordinates);
bool setOccupied(const Vector3ui& coordinates);
bool setUnknown(const Vector3d& coordinates);
bool setUnknown(const Vector3ui& coordinates);
bool isFree(const Vector3d& coordinates) const;
bool isFree(const Vector3ui& coordinates) const;
bool isOccupied(const Vector3d& coordinates) const;
bool isOccupied(const Vector3ui& coordinates) const;
bool isUnknown(const Vector3d& coordinates) const;
bool isUnknown(const Vector3ui& coordinates) const;
double getProbability(const Vector3d& coordinates) const;
double getProbability(const Vector3ui& coordinates) const;
protected:
/**
* Write internal parameters of the map.
*/
void writeParameters(std::ofstream& stream) const
{}
/**
* Read internal parameters of the map.
*/
void readParameters(std::ifstream& stream)
{}
private:
SimpleOccupancyMap& operator=(const SimpleOccupancyMap& other);
};
} /* lama */
| {
"pile_set_name": "Github"
} |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Runtime.Versioning;
namespace System.Threading
{
public sealed partial class Semaphore : WaitHandle
{
// creates a nameless semaphore object
// Win32 only takes maximum count of int.MaxValue
public Semaphore(int initialCount, int maximumCount) : this(initialCount, maximumCount, null) { }
public Semaphore(int initialCount, int maximumCount, string? name) :
this(initialCount, maximumCount, name, out _)
{
}
public Semaphore(int initialCount, int maximumCount, string? name, out bool createdNew)
{
if (initialCount < 0)
throw new ArgumentOutOfRangeException(nameof(initialCount), SR.ArgumentOutOfRange_NeedNonNegNum);
if (maximumCount < 1)
throw new ArgumentOutOfRangeException(nameof(maximumCount), SR.ArgumentOutOfRange_NeedPosNum);
if (initialCount > maximumCount)
throw new ArgumentException(SR.Argument_SemaphoreInitialMaximum);
CreateSemaphoreCore(initialCount, maximumCount, name, out createdNew);
}
[SupportedOSPlatform("windows")]
public static Semaphore OpenExisting(string name)
{
switch (OpenExistingWorker(name, out Semaphore? result))
{
case OpenExistingResult.NameNotFound:
throw new WaitHandleCannotBeOpenedException();
case OpenExistingResult.NameInvalid:
throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name));
case OpenExistingResult.PathNotFound:
throw new IOException(SR.Format(SR.IO_PathNotFound_Path, name));
default:
Debug.Assert(result != null, "result should be non-null on success");
return result;
}
}
[SupportedOSPlatform("windows")]
public static bool TryOpenExisting(string name, [NotNullWhen(true)] out Semaphore? result) =>
OpenExistingWorker(name, out result!) == OpenExistingResult.Success;
public int Release() => ReleaseCore(1);
// increase the count on a semaphore, returns previous count
public int Release(int releaseCount)
{
if (releaseCount < 1)
throw new ArgumentOutOfRangeException(nameof(releaseCount), SR.ArgumentOutOfRange_NeedNonNegNum);
return ReleaseCore(releaseCount);
}
}
}
| {
"pile_set_name": "Github"
} |
/**************************************************************************
* Copyright (c) 2007-2011, Intel Corporation.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*
**************************************************************************/
#ifndef _PSB_DRV_H_
#define _PSB_DRV_H_
#include <linux/kref.h>
#include <linux/mm_types.h>
#include <drm/drmP.h>
#include <drm/drm_global.h>
#include <drm/gma_drm.h>
#include "psb_reg.h"
#include "psb_intel_drv.h"
#include "gma_display.h"
#include "intel_bios.h"
#include "gtt.h"
#include "power.h"
#include "opregion.h"
#include "oaktrail.h"
#include "mmu.h"
#define DRIVER_AUTHOR "Alan Cox <alan@linux.intel.com> and others"
#define DRIVER_NAME "gma500"
#define DRIVER_DESC "DRM driver for the Intel GMA500, GMA600, GMA3600, GMA3650"
#define DRIVER_DATE "20140314"
#define DRIVER_MAJOR 1
#define DRIVER_MINOR 0
#define DRIVER_PATCHLEVEL 0
/* Append new drm mode definition here, align with libdrm definition */
#define DRM_MODE_SCALE_NO_SCALE 2
enum {
CHIP_PSB_8108 = 0, /* Poulsbo */
CHIP_PSB_8109 = 1, /* Poulsbo */
CHIP_MRST_4100 = 2, /* Moorestown/Oaktrail */
CHIP_MFLD_0130 = 3, /* Medfield */
};
#define IS_PSB(dev) (((dev)->pdev->device & 0xfffe) == 0x8108)
#define IS_MRST(dev) (((dev)->pdev->device & 0xfff0) == 0x4100)
#define IS_MFLD(dev) (((dev)->pdev->device & 0xfff8) == 0x0130)
#define IS_CDV(dev) (((dev)->pdev->device & 0xfff0) == 0x0be0)
/* Hardware offsets */
#define PSB_VDC_OFFSET 0x00000000
#define PSB_VDC_SIZE 0x000080000
#define MRST_MMIO_SIZE 0x0000C0000
#define MDFLD_MMIO_SIZE 0x000100000
#define PSB_SGX_SIZE 0x8000
#define PSB_SGX_OFFSET 0x00040000
#define MRST_SGX_OFFSET 0x00080000
/* PCI resource identifiers */
#define PSB_MMIO_RESOURCE 0
#define PSB_AUX_RESOURCE 0
#define PSB_GATT_RESOURCE 2
#define PSB_GTT_RESOURCE 3
/* PCI configuration */
#define PSB_GMCH_CTRL 0x52
#define PSB_BSM 0x5C
#define _PSB_GMCH_ENABLED 0x4
#define PSB_PGETBL_CTL 0x2020
#define _PSB_PGETBL_ENABLED 0x00000001
#define PSB_SGX_2D_SLAVE_PORT 0x4000
#define PSB_LPC_GBA 0x44
/* TODO: To get rid of */
#define PSB_TT_PRIV0_LIMIT (256*1024*1024)
#define PSB_TT_PRIV0_PLIMIT (PSB_TT_PRIV0_LIMIT >> PAGE_SHIFT)
/* SGX side MMU definitions (these can probably go) */
/* Flags for external memory type field */
#define PSB_MMU_CACHED_MEMORY 0x0001 /* Bind to MMU only */
#define PSB_MMU_RO_MEMORY 0x0002 /* MMU RO memory */
#define PSB_MMU_WO_MEMORY 0x0004 /* MMU WO memory */
/* PTE's and PDE's */
#define PSB_PDE_MASK 0x003FFFFF
#define PSB_PDE_SHIFT 22
#define PSB_PTE_SHIFT 12
/* Cache control */
#define PSB_PTE_VALID 0x0001 /* PTE / PDE valid */
#define PSB_PTE_WO 0x0002 /* Write only */
#define PSB_PTE_RO 0x0004 /* Read only */
#define PSB_PTE_CACHED 0x0008 /* CPU cache coherent */
/* VDC registers and bits */
#define PSB_MSVDX_CLOCKGATING 0x2064
#define PSB_TOPAZ_CLOCKGATING 0x2068
#define PSB_HWSTAM 0x2098
#define PSB_INSTPM 0x20C0
#define PSB_INT_IDENTITY_R 0x20A4
#define _PSB_IRQ_ASLE (1<<0)
#define _MDFLD_PIPEC_EVENT_FLAG (1<<2)
#define _MDFLD_PIPEC_VBLANK_FLAG (1<<3)
#define _PSB_DPST_PIPEB_FLAG (1<<4)
#define _MDFLD_PIPEB_EVENT_FLAG (1<<4)
#define _PSB_VSYNC_PIPEB_FLAG (1<<5)
#define _PSB_DPST_PIPEA_FLAG (1<<6)
#define _PSB_PIPEA_EVENT_FLAG (1<<6)
#define _PSB_VSYNC_PIPEA_FLAG (1<<7)
#define _MDFLD_MIPIA_FLAG (1<<16)
#define _MDFLD_MIPIC_FLAG (1<<17)
#define _PSB_IRQ_DISP_HOTSYNC (1<<17)
#define _PSB_IRQ_SGX_FLAG (1<<18)
#define _PSB_IRQ_MSVDX_FLAG (1<<19)
#define _LNC_IRQ_TOPAZ_FLAG (1<<20)
#define _PSB_PIPE_EVENT_FLAG (_PSB_VSYNC_PIPEA_FLAG | \
_PSB_VSYNC_PIPEB_FLAG)
/* This flag includes all the display IRQ bits excepts the vblank irqs. */
#define _MDFLD_DISP_ALL_IRQ_FLAG (_MDFLD_PIPEC_EVENT_FLAG | \
_MDFLD_PIPEB_EVENT_FLAG | \
_PSB_PIPEA_EVENT_FLAG | \
_PSB_VSYNC_PIPEA_FLAG | \
_MDFLD_MIPIA_FLAG | \
_MDFLD_MIPIC_FLAG)
#define PSB_INT_IDENTITY_R 0x20A4
#define PSB_INT_MASK_R 0x20A8
#define PSB_INT_ENABLE_R 0x20A0
#define _PSB_MMU_ER_MASK 0x0001FF00
#define _PSB_MMU_ER_HOST (1 << 16)
#define GPIOA 0x5010
#define GPIOB 0x5014
#define GPIOC 0x5018
#define GPIOD 0x501c
#define GPIOE 0x5020
#define GPIOF 0x5024
#define GPIOG 0x5028
#define GPIOH 0x502c
#define GPIO_CLOCK_DIR_MASK (1 << 0)
#define GPIO_CLOCK_DIR_IN (0 << 1)
#define GPIO_CLOCK_DIR_OUT (1 << 1)
#define GPIO_CLOCK_VAL_MASK (1 << 2)
#define GPIO_CLOCK_VAL_OUT (1 << 3)
#define GPIO_CLOCK_VAL_IN (1 << 4)
#define GPIO_CLOCK_PULLUP_DISABLE (1 << 5)
#define GPIO_DATA_DIR_MASK (1 << 8)
#define GPIO_DATA_DIR_IN (0 << 9)
#define GPIO_DATA_DIR_OUT (1 << 9)
#define GPIO_DATA_VAL_MASK (1 << 10)
#define GPIO_DATA_VAL_OUT (1 << 11)
#define GPIO_DATA_VAL_IN (1 << 12)
#define GPIO_DATA_PULLUP_DISABLE (1 << 13)
#define VCLK_DIVISOR_VGA0 0x6000
#define VCLK_DIVISOR_VGA1 0x6004
#define VCLK_POST_DIV 0x6010
#define PSB_COMM_2D (PSB_ENGINE_2D << 4)
#define PSB_COMM_3D (PSB_ENGINE_3D << 4)
#define PSB_COMM_TA (PSB_ENGINE_TA << 4)
#define PSB_COMM_HP (PSB_ENGINE_HP << 4)
#define PSB_COMM_USER_IRQ (1024 >> 2)
#define PSB_COMM_USER_IRQ_LOST (PSB_COMM_USER_IRQ + 1)
#define PSB_COMM_FW (2048 >> 2)
#define PSB_UIRQ_VISTEST 1
#define PSB_UIRQ_OOM_REPLY 2
#define PSB_UIRQ_FIRE_TA_REPLY 3
#define PSB_UIRQ_FIRE_RASTER_REPLY 4
#define PSB_2D_SIZE (256*1024*1024)
#define PSB_MAX_RELOC_PAGES 1024
#define PSB_LOW_REG_OFFS 0x0204
#define PSB_HIGH_REG_OFFS 0x0600
#define PSB_NUM_VBLANKS 2
#define PSB_2D_SIZE (256*1024*1024)
#define PSB_MAX_RELOC_PAGES 1024
#define PSB_LOW_REG_OFFS 0x0204
#define PSB_HIGH_REG_OFFS 0x0600
#define PSB_NUM_VBLANKS 2
#define PSB_WATCHDOG_DELAY (HZ * 2)
#define PSB_LID_DELAY (HZ / 10)
#define MDFLD_PNW_B0 0x04
#define MDFLD_PNW_C0 0x08
#define MDFLD_DSR_2D_3D_0 (1 << 0)
#define MDFLD_DSR_2D_3D_2 (1 << 1)
#define MDFLD_DSR_CURSOR_0 (1 << 2)
#define MDFLD_DSR_CURSOR_2 (1 << 3)
#define MDFLD_DSR_OVERLAY_0 (1 << 4)
#define MDFLD_DSR_OVERLAY_2 (1 << 5)
#define MDFLD_DSR_MIPI_CONTROL (1 << 6)
#define MDFLD_DSR_DAMAGE_MASK_0 ((1 << 0) | (1 << 2) | (1 << 4))
#define MDFLD_DSR_DAMAGE_MASK_2 ((1 << 1) | (1 << 3) | (1 << 5))
#define MDFLD_DSR_2D_3D (MDFLD_DSR_2D_3D_0 | MDFLD_DSR_2D_3D_2)
#define MDFLD_DSR_RR 45
#define MDFLD_DPU_ENABLE (1 << 31)
#define MDFLD_DSR_FULLSCREEN (1 << 30)
#define MDFLD_DSR_DELAY (HZ / MDFLD_DSR_RR)
#define PSB_PWR_STATE_ON 1
#define PSB_PWR_STATE_OFF 2
#define PSB_PMPOLICY_NOPM 0
#define PSB_PMPOLICY_CLOCKGATING 1
#define PSB_PMPOLICY_POWERDOWN 2
#define PSB_PMSTATE_POWERUP 0
#define PSB_PMSTATE_CLOCKGATED 1
#define PSB_PMSTATE_POWERDOWN 2
#define PSB_PCIx_MSI_ADDR_LOC 0x94
#define PSB_PCIx_MSI_DATA_LOC 0x98
/* Medfield crystal settings */
#define KSEL_CRYSTAL_19 1
#define KSEL_BYPASS_19 5
#define KSEL_BYPASS_25 6
#define KSEL_BYPASS_83_100 7
struct opregion_header;
struct opregion_acpi;
struct opregion_swsci;
struct opregion_asle;
struct psb_intel_opregion {
struct opregion_header *header;
struct opregion_acpi *acpi;
struct opregion_swsci *swsci;
struct opregion_asle *asle;
void *vbt;
u32 __iomem *lid_state;
struct work_struct asle_work;
};
struct sdvo_device_mapping {
u8 initialized;
u8 dvo_port;
u8 slave_addr;
u8 dvo_wiring;
u8 i2c_pin;
u8 i2c_speed;
u8 ddc_pin;
};
struct intel_gmbus {
struct i2c_adapter adapter;
struct i2c_adapter *force_bit;
u32 reg0;
};
/* Register offset maps */
struct psb_offset {
u32 fp0;
u32 fp1;
u32 cntr;
u32 conf;
u32 src;
u32 dpll;
u32 dpll_md;
u32 htotal;
u32 hblank;
u32 hsync;
u32 vtotal;
u32 vblank;
u32 vsync;
u32 stride;
u32 size;
u32 pos;
u32 surf;
u32 addr;
u32 base;
u32 status;
u32 linoff;
u32 tileoff;
u32 palette;
};
/*
* Register save state. This is used to hold the context when the
* device is powered off. In the case of Oaktrail this can (but does not
* yet) include screen blank. Operations occuring during the save
* update the register cache instead.
*/
/* Common status for pipes */
struct psb_pipe {
u32 fp0;
u32 fp1;
u32 cntr;
u32 conf;
u32 src;
u32 dpll;
u32 dpll_md;
u32 htotal;
u32 hblank;
u32 hsync;
u32 vtotal;
u32 vblank;
u32 vsync;
u32 stride;
u32 size;
u32 pos;
u32 base;
u32 surf;
u32 addr;
u32 status;
u32 linoff;
u32 tileoff;
u32 palette[256];
};
struct psb_state {
uint32_t saveVCLK_DIVISOR_VGA0;
uint32_t saveVCLK_DIVISOR_VGA1;
uint32_t saveVCLK_POST_DIV;
uint32_t saveVGACNTRL;
uint32_t saveADPA;
uint32_t saveLVDS;
uint32_t saveDVOA;
uint32_t saveDVOB;
uint32_t saveDVOC;
uint32_t savePP_ON;
uint32_t savePP_OFF;
uint32_t savePP_CONTROL;
uint32_t savePP_CYCLE;
uint32_t savePFIT_CONTROL;
uint32_t saveCLOCKGATING;
uint32_t saveDSPARB;
uint32_t savePFIT_AUTO_RATIOS;
uint32_t savePFIT_PGM_RATIOS;
uint32_t savePP_ON_DELAYS;
uint32_t savePP_OFF_DELAYS;
uint32_t savePP_DIVISOR;
uint32_t saveBCLRPAT_A;
uint32_t saveBCLRPAT_B;
uint32_t savePERF_MODE;
uint32_t saveDSPFW1;
uint32_t saveDSPFW2;
uint32_t saveDSPFW3;
uint32_t saveDSPFW4;
uint32_t saveDSPFW5;
uint32_t saveDSPFW6;
uint32_t saveCHICKENBIT;
uint32_t saveDSPACURSOR_CTRL;
uint32_t saveDSPBCURSOR_CTRL;
uint32_t saveDSPACURSOR_BASE;
uint32_t saveDSPBCURSOR_BASE;
uint32_t saveDSPACURSOR_POS;
uint32_t saveDSPBCURSOR_POS;
uint32_t saveOV_OVADD;
uint32_t saveOV_OGAMC0;
uint32_t saveOV_OGAMC1;
uint32_t saveOV_OGAMC2;
uint32_t saveOV_OGAMC3;
uint32_t saveOV_OGAMC4;
uint32_t saveOV_OGAMC5;
uint32_t saveOVC_OVADD;
uint32_t saveOVC_OGAMC0;
uint32_t saveOVC_OGAMC1;
uint32_t saveOVC_OGAMC2;
uint32_t saveOVC_OGAMC3;
uint32_t saveOVC_OGAMC4;
uint32_t saveOVC_OGAMC5;
/* DPST register save */
uint32_t saveHISTOGRAM_INT_CONTROL_REG;
uint32_t saveHISTOGRAM_LOGIC_CONTROL_REG;
uint32_t savePWM_CONTROL_LOGIC;
};
struct medfield_state {
uint32_t saveMIPI;
uint32_t saveMIPI_C;
uint32_t savePFIT_CONTROL;
uint32_t savePFIT_PGM_RATIOS;
uint32_t saveHDMIPHYMISCCTL;
uint32_t saveHDMIB_CONTROL;
};
struct cdv_state {
uint32_t saveDSPCLK_GATE_D;
uint32_t saveRAMCLK_GATE_D;
uint32_t saveDSPARB;
uint32_t saveDSPFW[6];
uint32_t saveADPA;
uint32_t savePP_CONTROL;
uint32_t savePFIT_PGM_RATIOS;
uint32_t saveLVDS;
uint32_t savePFIT_CONTROL;
uint32_t savePP_ON_DELAYS;
uint32_t savePP_OFF_DELAYS;
uint32_t savePP_CYCLE;
uint32_t saveVGACNTRL;
uint32_t saveIER;
uint32_t saveIMR;
u8 saveLBB;
};
struct psb_save_area {
struct psb_pipe pipe[3];
uint32_t saveBSM;
uint32_t saveVBT;
union {
struct psb_state psb;
struct medfield_state mdfld;
struct cdv_state cdv;
};
uint32_t saveBLC_PWM_CTL2;
uint32_t saveBLC_PWM_CTL;
};
struct psb_ops;
#define PSB_NUM_PIPE 3
struct drm_psb_private {
struct drm_device *dev;
struct pci_dev *aux_pdev; /* Currently only used by mrst */
struct pci_dev *lpc_pdev; /* Currently only used by mrst */
const struct psb_ops *ops;
const struct psb_offset *regmap;
struct child_device_config *child_dev;
int child_dev_num;
struct psb_gtt gtt;
/* GTT Memory manager */
struct psb_gtt_mm *gtt_mm;
struct page *scratch_page;
u32 __iomem *gtt_map;
uint32_t stolen_base;
u8 __iomem *vram_addr;
unsigned long vram_stolen_size;
int gtt_initialized;
u16 gmch_ctrl; /* Saved GTT setup */
u32 pge_ctl;
struct mutex gtt_mutex;
struct resource *gtt_mem; /* Our PCI resource */
struct mutex mmap_mutex;
struct psb_mmu_driver *mmu;
struct psb_mmu_pd *pf_pd;
/* Register base */
uint8_t __iomem *sgx_reg;
uint8_t __iomem *vdc_reg;
uint8_t __iomem *aux_reg; /* Auxillary vdc pipe regs */
uint16_t lpc_gpio_base;
uint32_t gatt_free_offset;
/* Fencing / irq */
uint32_t vdc_irq_mask;
uint32_t pipestat[PSB_NUM_PIPE];
spinlock_t irqmask_lock;
/* Power */
bool suspended;
bool display_power;
int display_count;
/* Modesetting */
struct psb_intel_mode_device mode_dev;
bool modeset; /* true if we have done the mode_device setup */
struct drm_crtc *plane_to_crtc_mapping[PSB_NUM_PIPE];
struct drm_crtc *pipe_to_crtc_mapping[PSB_NUM_PIPE];
uint32_t num_pipe;
/* OSPM info (Power management base) (TODO: can go ?) */
uint32_t ospm_base;
/* Sizes info */
u32 fuse_reg_value;
u32 video_device_fuse;
/* PCI revision ID for B0:D2:F0 */
uint8_t platform_rev_id;
/* gmbus */
struct intel_gmbus *gmbus;
uint8_t __iomem *gmbus_reg;
/* Used by SDVO */
int crt_ddc_pin;
/* FIXME: The mappings should be parsed from bios but for now we can
pretend there are no mappings available */
struct sdvo_device_mapping sdvo_mappings[2];
u32 hotplug_supported_mask;
struct drm_property *broadcast_rgb_property;
struct drm_property *force_audio_property;
/* LVDS info */
int backlight_duty_cycle; /* restore backlight to this value */
bool panel_wants_dither;
struct drm_display_mode *panel_fixed_mode;
struct drm_display_mode *lfp_lvds_vbt_mode;
struct drm_display_mode *sdvo_lvds_vbt_mode;
struct bdb_lvds_backlight *lvds_bl; /* LVDS backlight info from VBT */
struct psb_intel_i2c_chan *lvds_i2c_bus; /* FIXME: Remove this? */
/* Feature bits from the VBIOS */
unsigned int int_tv_support:1;
unsigned int lvds_dither:1;
unsigned int lvds_vbt:1;
unsigned int int_crt_support:1;
unsigned int lvds_use_ssc:1;
int lvds_ssc_freq;
bool is_lvds_on;
bool is_mipi_on;
bool lvds_enabled_in_vbt;
u32 mipi_ctrl_display;
unsigned int core_freq;
uint32_t iLVDS_enable;
/* Runtime PM state */
int rpm_enabled;
/* MID specific */
bool has_gct;
struct oaktrail_gct_data gct_data;
/* Oaktrail HDMI state */
struct oaktrail_hdmi_dev *hdmi_priv;
/* Register state */
struct psb_save_area regs;
/* MSI reg save */
uint32_t msi_addr;
uint32_t msi_data;
/* Hotplug handling */
struct work_struct hotplug_work;
/* LID-Switch */
spinlock_t lid_lock;
struct timer_list lid_timer;
struct psb_intel_opregion opregion;
u32 lid_last_state;
/* Watchdog */
uint32_t apm_reg;
uint16_t apm_base;
/*
* Used for modifying backlight from
* xrandr -- consider removing and using HAL instead
*/
struct backlight_device *backlight_device;
struct drm_property *backlight_property;
bool backlight_enabled;
int backlight_level;
uint32_t blc_adj1;
uint32_t blc_adj2;
void *fbdev;
/* 2D acceleration */
spinlock_t lock_2d;
/* Panel brightness */
int brightness;
int brightness_adjusted;
bool dsr_enable;
u32 dsr_fb_update;
bool dpi_panel_on[3];
void *dsi_configs[2];
u32 bpp;
u32 bpp2;
u32 pipeconf[3];
u32 dspcntr[3];
int mdfld_panel_id;
bool dplla_96mhz; /* DPLL data from the VBT */
struct {
int rate;
int lanes;
int preemphasis;
int vswing;
bool initialized;
bool support;
int bpp;
struct edp_power_seq pps;
} edp;
uint8_t panel_type;
};
/* Operations for each board type */
struct psb_ops {
const char *name;
unsigned int accel_2d:1;
int pipes; /* Number of output pipes */
int crtcs; /* Number of CRTCs */
int sgx_offset; /* Base offset of SGX device */
int hdmi_mask; /* Mask of HDMI CRTCs */
int lvds_mask; /* Mask of LVDS CRTCs */
int sdvo_mask; /* Mask of SDVO CRTCs */
int cursor_needs_phys; /* If cursor base reg need physical address */
/* Sub functions */
struct drm_crtc_helper_funcs const *crtc_helper;
struct drm_crtc_funcs const *crtc_funcs;
const struct gma_clock_funcs *clock_funcs;
/* Setup hooks */
int (*chip_setup)(struct drm_device *dev);
void (*chip_teardown)(struct drm_device *dev);
/* Optional helper caller after modeset */
void (*errata)(struct drm_device *dev);
/* Display management hooks */
int (*output_init)(struct drm_device *dev);
int (*hotplug)(struct drm_device *dev);
void (*hotplug_enable)(struct drm_device *dev, bool on);
/* Power management hooks */
void (*init_pm)(struct drm_device *dev);
int (*save_regs)(struct drm_device *dev);
int (*restore_regs)(struct drm_device *dev);
void (*save_crtc)(struct drm_crtc *crtc);
void (*restore_crtc)(struct drm_crtc *crtc);
int (*power_up)(struct drm_device *dev);
int (*power_down)(struct drm_device *dev);
void (*update_wm)(struct drm_device *dev, struct drm_crtc *crtc);
void (*disable_sr)(struct drm_device *dev);
void (*lvds_bl_power)(struct drm_device *dev, bool on);
#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
/* Backlight */
int (*backlight_init)(struct drm_device *dev);
#endif
int i2c_bus; /* I2C bus identifier for Moorestown */
};
extern int drm_crtc_probe_output_modes(struct drm_device *dev, int, int);
extern int drm_pick_crtcs(struct drm_device *dev);
static inline struct drm_psb_private *psb_priv(struct drm_device *dev)
{
return (struct drm_psb_private *) dev->dev_private;
}
/* psb_irq.c */
extern irqreturn_t psb_irq_handler(int irq, void *arg);
extern int psb_irq_enable_dpst(struct drm_device *dev);
extern int psb_irq_disable_dpst(struct drm_device *dev);
extern void psb_irq_preinstall(struct drm_device *dev);
extern int psb_irq_postinstall(struct drm_device *dev);
extern void psb_irq_uninstall(struct drm_device *dev);
extern void psb_irq_turn_on_dpst(struct drm_device *dev);
extern void psb_irq_turn_off_dpst(struct drm_device *dev);
extern void psb_irq_uninstall_islands(struct drm_device *dev, int hw_islands);
extern int psb_vblank_wait2(struct drm_device *dev, unsigned int *sequence);
extern int psb_vblank_wait(struct drm_device *dev, unsigned int *sequence);
extern int psb_enable_vblank(struct drm_device *dev, unsigned int pipe);
extern void psb_disable_vblank(struct drm_device *dev, unsigned int pipe);
void
psb_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
void
psb_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
extern u32 psb_get_vblank_counter(struct drm_device *dev, unsigned int pipe);
/* framebuffer.c */
extern int psbfb_probed(struct drm_device *dev);
extern int psbfb_remove(struct drm_device *dev,
struct drm_framebuffer *fb);
/* accel_2d.c */
extern void psbfb_copyarea(struct fb_info *info,
const struct fb_copyarea *region);
extern int psbfb_sync(struct fb_info *info);
extern void psb_spank(struct drm_psb_private *dev_priv);
/* psb_reset.c */
extern void psb_lid_timer_init(struct drm_psb_private *dev_priv);
extern void psb_lid_timer_takedown(struct drm_psb_private *dev_priv);
extern void psb_print_pagefault(struct drm_psb_private *dev_priv);
/* modesetting */
extern void psb_modeset_init(struct drm_device *dev);
extern void psb_modeset_cleanup(struct drm_device *dev);
extern int psb_fbdev_init(struct drm_device *dev);
/* backlight.c */
int gma_backlight_init(struct drm_device *dev);
void gma_backlight_exit(struct drm_device *dev);
void gma_backlight_disable(struct drm_device *dev);
void gma_backlight_enable(struct drm_device *dev);
void gma_backlight_set(struct drm_device *dev, int v);
/* oaktrail_crtc.c */
extern const struct drm_crtc_helper_funcs oaktrail_helper_funcs;
/* oaktrail_lvds.c */
extern void oaktrail_lvds_init(struct drm_device *dev,
struct psb_intel_mode_device *mode_dev);
/* psb_intel_display.c */
extern const struct drm_crtc_helper_funcs psb_intel_helper_funcs;
extern const struct drm_crtc_funcs psb_intel_crtc_funcs;
/* psb_intel_lvds.c */
extern const struct drm_connector_helper_funcs
psb_intel_lvds_connector_helper_funcs;
extern const struct drm_connector_funcs psb_intel_lvds_connector_funcs;
/* gem.c */
extern void psb_gem_free_object(struct drm_gem_object *obj);
extern int psb_gem_get_aperture(struct drm_device *dev, void *data,
struct drm_file *file);
extern int psb_gem_dumb_create(struct drm_file *file, struct drm_device *dev,
struct drm_mode_create_dumb *args);
extern vm_fault_t psb_gem_fault(struct vm_fault *vmf);
/* psb_device.c */
extern const struct psb_ops psb_chip_ops;
/* oaktrail_device.c */
extern const struct psb_ops oaktrail_chip_ops;
/* mdlfd_device.c */
extern const struct psb_ops mdfld_chip_ops;
/* cdv_device.c */
extern const struct psb_ops cdv_chip_ops;
/* Debug print bits setting */
#define PSB_D_GENERAL (1 << 0)
#define PSB_D_INIT (1 << 1)
#define PSB_D_IRQ (1 << 2)
#define PSB_D_ENTRY (1 << 3)
/* debug the get H/V BP/FP count */
#define PSB_D_HV (1 << 4)
#define PSB_D_DBI_BF (1 << 5)
#define PSB_D_PM (1 << 6)
#define PSB_D_RENDER (1 << 7)
#define PSB_D_REG (1 << 8)
#define PSB_D_MSVDX (1 << 9)
#define PSB_D_TOPAZ (1 << 10)
extern int drm_idle_check_interval;
/* Utilities */
static inline u32 MRST_MSG_READ32(int domain, uint port, uint offset)
{
int mcr = (0xD0<<24) | (port << 16) | (offset << 8);
uint32_t ret_val = 0;
struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0);
pci_write_config_dword(pci_root, 0xD0, mcr);
pci_read_config_dword(pci_root, 0xD4, &ret_val);
pci_dev_put(pci_root);
return ret_val;
}
static inline void MRST_MSG_WRITE32(int domain, uint port, uint offset,
u32 value)
{
int mcr = (0xE0<<24) | (port << 16) | (offset << 8) | 0xF0;
struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0);
pci_write_config_dword(pci_root, 0xD4, value);
pci_write_config_dword(pci_root, 0xD0, mcr);
pci_dev_put(pci_root);
}
static inline u32 MDFLD_MSG_READ32(int domain, uint port, uint offset)
{
int mcr = (0x10<<24) | (port << 16) | (offset << 8);
uint32_t ret_val = 0;
struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0);
pci_write_config_dword(pci_root, 0xD0, mcr);
pci_read_config_dword(pci_root, 0xD4, &ret_val);
pci_dev_put(pci_root);
return ret_val;
}
static inline void MDFLD_MSG_WRITE32(int domain, uint port, uint offset,
u32 value)
{
int mcr = (0x11<<24) | (port << 16) | (offset << 8) | 0xF0;
struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0);
pci_write_config_dword(pci_root, 0xD4, value);
pci_write_config_dword(pci_root, 0xD0, mcr);
pci_dev_put(pci_root);
}
static inline uint32_t REGISTER_READ(struct drm_device *dev, uint32_t reg)
{
struct drm_psb_private *dev_priv = dev->dev_private;
return ioread32(dev_priv->vdc_reg + reg);
}
static inline uint32_t REGISTER_READ_AUX(struct drm_device *dev, uint32_t reg)
{
struct drm_psb_private *dev_priv = dev->dev_private;
return ioread32(dev_priv->aux_reg + reg);
}
#define REG_READ(reg) REGISTER_READ(dev, (reg))
#define REG_READ_AUX(reg) REGISTER_READ_AUX(dev, (reg))
/* Useful for post reads */
static inline uint32_t REGISTER_READ_WITH_AUX(struct drm_device *dev,
uint32_t reg, int aux)
{
uint32_t val;
if (aux)
val = REG_READ_AUX(reg);
else
val = REG_READ(reg);
return val;
}
#define REG_READ_WITH_AUX(reg, aux) REGISTER_READ_WITH_AUX(dev, (reg), (aux))
static inline void REGISTER_WRITE(struct drm_device *dev, uint32_t reg,
uint32_t val)
{
struct drm_psb_private *dev_priv = dev->dev_private;
iowrite32((val), dev_priv->vdc_reg + (reg));
}
static inline void REGISTER_WRITE_AUX(struct drm_device *dev, uint32_t reg,
uint32_t val)
{
struct drm_psb_private *dev_priv = dev->dev_private;
iowrite32((val), dev_priv->aux_reg + (reg));
}
#define REG_WRITE(reg, val) REGISTER_WRITE(dev, (reg), (val))
#define REG_WRITE_AUX(reg, val) REGISTER_WRITE_AUX(dev, (reg), (val))
static inline void REGISTER_WRITE_WITH_AUX(struct drm_device *dev, uint32_t reg,
uint32_t val, int aux)
{
if (aux)
REG_WRITE_AUX(reg, val);
else
REG_WRITE(reg, val);
}
#define REG_WRITE_WITH_AUX(reg, val, aux) REGISTER_WRITE_WITH_AUX(dev, (reg), (val), (aux))
static inline void REGISTER_WRITE16(struct drm_device *dev,
uint32_t reg, uint32_t val)
{
struct drm_psb_private *dev_priv = dev->dev_private;
iowrite16((val), dev_priv->vdc_reg + (reg));
}
#define REG_WRITE16(reg, val) REGISTER_WRITE16(dev, (reg), (val))
static inline void REGISTER_WRITE8(struct drm_device *dev,
uint32_t reg, uint32_t val)
{
struct drm_psb_private *dev_priv = dev->dev_private;
iowrite8((val), dev_priv->vdc_reg + (reg));
}
#define REG_WRITE8(reg, val) REGISTER_WRITE8(dev, (reg), (val))
#define PSB_WVDC32(_val, _offs) iowrite32(_val, dev_priv->vdc_reg + (_offs))
#define PSB_RVDC32(_offs) ioread32(dev_priv->vdc_reg + (_offs))
/* #define TRAP_SGX_PM_FAULT 1 */
#ifdef TRAP_SGX_PM_FAULT
#define PSB_RSGX32(_offs) \
({ \
if (inl(dev_priv->apm_base + PSB_APM_STS) & 0x3) { \
pr_err("access sgx when it's off!! (READ) %s, %d\n", \
__FILE__, __LINE__); \
melay(1000); \
} \
ioread32(dev_priv->sgx_reg + (_offs)); \
})
#else
#define PSB_RSGX32(_offs) ioread32(dev_priv->sgx_reg + (_offs))
#endif
#define PSB_WSGX32(_val, _offs) iowrite32(_val, dev_priv->sgx_reg + (_offs))
#define MSVDX_REG_DUMP 0
#define PSB_WMSVDX32(_val, _offs) iowrite32(_val, dev_priv->msvdx_reg + (_offs))
#define PSB_RMSVDX32(_offs) ioread32(dev_priv->msvdx_reg + (_offs))
#endif
| {
"pile_set_name": "Github"
} |
/**
* Copyright James Dempsey, 2010
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
*/
package pcgen.core;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import pcgen.cdom.enumeration.Type;
import pcgen.core.character.EquipSlot;
/**
* The Class {@code BodyStructure} represents a part of a character's
* body that may hold equipment.
*
*
*/
public class BodyStructure
{
private String name;
private List<EquipSlot> slots;
private boolean holdsAnyType;
private Set<Type> forbiddenTypes;
/**
* Create a new BodyStructure instance.
* @param name The name of the body structure.
*/
public BodyStructure(String name)
{
this(name, false);
}
/**
* Create a new BodyStructure instance noting if it can hold any type
* of equipment item. BodyStructures such as equipped, carried or not
* carried may hold items of any type.
*
* @param name The name of the body structure.
* @param holdsAnyType Can this item hold anything at all
*/
public BodyStructure(String name, boolean holdsAnyType)
{
this(name, holdsAnyType, null);
}
/**
* Create a new BodyStructure instance noting if it can hold any type
* of equipment item. BodyStructures such as equipped, carried or not
* carried may hold items of any type.
*
* @param name The name of the body structure.
* @param holdsAnyType Can this item hold anything at all
* @param forbiddenTypes The exceptions to the 'holds any type' rule.
*/
public BodyStructure(String name, boolean holdsAnyType, Set<Type> forbiddenTypes)
{
this.name = name;
this.forbiddenTypes = new HashSet<>();
if (forbiddenTypes != null)
{
this.forbiddenTypes.addAll(forbiddenTypes);
}
slots = new ArrayList<>();
this.holdsAnyType = holdsAnyType;
}
/**
* @return the name
*/
String getName()
{
return name;
}
/**
* Add an EquipSlot to the list of those contained by the body structure.
* @param slot The EquipSlot to be added
*/
public void addEquipSlot(EquipSlot slot)
{
if (!slots.contains(slot))
{
slots.add(slot);
}
}
/**
* @return A read-only list of EquipSlots that are contained by this BodyStructure.
*/
public List<EquipSlot> getEquipSlots()
{
return Collections.unmodifiableList(slots);
}
@Override
public String toString()
{
return name;
}
/**
* @return the holdsAnyType
*/
public boolean isHoldsAnyType()
{
return holdsAnyType;
}
/**
* Identify if the set of types contains any forbidden ones.
*
* @param types the types to be checked
* @return true if any type is not allowed, false otherwise
*/
public boolean isForbidden(Collection<Type> types)
{
for (Type type : types)
{
if (forbiddenTypes.contains(type))
{
return true;
}
}
return false;
}
}
| {
"pile_set_name": "Github"
} |
<?php if (!defined('SITE')) exit('No direct script access allowed');
// mod_rewrite is being used?
// in case the server does not have mod_rewrite
define('MODREWRITE', false);
// image quality
$default['img_quality'] = 100;
$default['systhumb'] = 150;
// images max size kilobytes
// be careful with shared hosting
$default['maxsize'] = 500;
// things you don't want stats to track
$default['ignore_ip'] = array();
// language default in case of error
define('LANGUAGE', 'en-us');
// for paths to files/images
define('BASEFILES', '/files');
define('GIMGS', BASEFILES . '/gimgs');
// use an editor, i guess...
$default['tinymce'] = false; // not yet
$default['parsing'] = false;
// cache time
$default['caching'] = false;
$default['cache_time'] = 15; // minutes
// first year
$default['first_year'] = 2004;
// define the default encoding
$default['encoding'] = 'UTF-8';
// basic sizes for images and thumbnails uploading
$default['thumbsize'] = array(200 => 200, 250 => 250, 300 => 300, 350 => 350);
$default['imagesize'] = array(700 => 700, 800 => 800, 900 => 900, 'full' => 9999);
// max exhibit images upload
$default['exhibit_imgs'] = 6;
// subsections within urls /more/more/more...
// not sure if this is 100% yet
$default['subdir'] = true;
$default['timer'] = false;
// media players defaults
$default['screencolor'] = 'f3f3f3';
$default['autoplay'] = false;
// default module
$default['module'] = 'exhibits'; | {
"pile_set_name": "Github"
} |
{
"name": "table",
"doc_namespace": "xmlns.http://moyaproject.com/admin",
"doc_class": "tag",
"references": [
"doc.index",
"tags.index"
],
"data": {
"name": "table",
"lib": null,
"namespace_slug": "moyaproject_dot_com_admin",
"defined": "/home/will/projects/moya/moya/libs/admin/logic/tags.xml (line 26)",
"doc": "An admin table",
"namespace": "http://moyaproject.com/admin",
"synopsis": "define a table view in the admin interface",
"tag_name": "table",
"params": {
"search": {
"default_display": null,
"name": "search",
"missing": true,
"default": null,
"doc": "",
"required": false,
"type": "database expression",
"metavar": null,
"empty": true,
"choices": null
},
"description": {
"default_display": null,
"name": "description",
"missing": true,
"default": null,
"doc": "",
"required": false,
"type": "text",
"metavar": null,
"empty": true,
"choices": null
},
"title": {
"default_display": null,
"name": "title",
"missing": true,
"default": null,
"doc": "",
"required": false,
"type": "text",
"metavar": null,
"empty": true,
"choices": null
},
"order": {
"default_display": null,
"name": "order",
"missing": true,
"default": null,
"doc": "",
"required": false,
"type": "text",
"metavar": null,
"empty": true,
"choices": null
},
"filter": {
"default_display": null,
"name": "filter",
"missing": true,
"default": null,
"doc": "",
"required": false,
"type": "text",
"metavar": null,
"empty": true,
"choices": null
},
"template": {
"default_display": "widgets/table.html",
"name": "template",
"missing": true,
"default": "widgets/table.html",
"doc": "",
"required": false,
"type": "template path",
"metavar": null,
"empty": true,
"choices": null
},
"model": {
"default_display": "",
"name": "model",
"missing": true,
"default": "",
"doc": "",
"required": true,
"type": "text",
"metavar": null,
"empty": true,
"choices": null
},
"slug": {
"default_display": null,
"name": "slug",
"missing": true,
"default": null,
"doc": "",
"required": true,
"type": "text",
"metavar": null,
"empty": true,
"choices": null
}
},
"example": null,
"inherited_params": {
"if": {
"default_display": "yes",
"name": "if",
"missing": true,
"default": true,
"doc": "Conditional expression",
"required": false,
"type": "expression",
"metavar": null,
"empty": true,
"choices": null
}
}
},
"id": "xmlns.http://moyaproject.com/admin.table"
} | {
"pile_set_name": "Github"
} |
display_extenders: { }
skip_cache: false
sql_signature: false
ui:
show:
additional_queries: false
advanced_column: false
master_display: false
performance_statistics: false
preview_information: true
sql_query:
enabled: false
where: above
display_embed: false
always_live_preview: true
exposed_filter_any_label: old_any
field_rewrite_elements:
div: DIV
span: SPAN
h1: H1
h2: H2
h3: H3
h4: H4
h5: H5
h6: H6
p: P
header: HEADER
footer: FOOTER
article: ARTICLE
section: SECTION
aside: ASIDE
details: DETAILS
blockquote: BLOCKQUOTE
figure: FIGURE
address: ADDRESS
code: CODE
pre: PRE
var: VAR
samp: SAMP
kbd: KBD
strong: STRONG
em: EM
del: DEL
ins: INS
q: Q
s: S
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!--
This is an XSL stylesheet which converts mscript XML files into HTML.
Use the XSLT command to perform the conversion.
Copyright 1984-2006 The MathWorks, Inc.
$Revision: 1.1.6.14 $ $Date: 2006/11/29 21:50:11 $
-->
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY reg "®"> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd">
<xsl:output method="html"
indent="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
<xsl:strip-space elements="mwsh:code"/>
<xsl:variable name="title">
<xsl:variable name="dTitle" select="//steptitle[@style='document']"/>
<xsl:choose>
<xsl:when test="$dTitle"><xsl:value-of select="$dTitle"/></xsl:when>
<xsl:otherwise><xsl:value-of select="mscript/m-file"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:template match="mscript">
<html>
<!-- head -->
<head>
<xsl:comment>
This HTML is auto-generated from an M-file.
To make changes, update the M-file and republish this document.
</xsl:comment>
<title><xsl:value-of select="$title"/></title>
<meta name="generator">
<xsl:attribute name="content">MATLAB <xsl:value-of select="version"/></xsl:attribute>
</meta>
<meta name="date">
<xsl:attribute name="content"><xsl:value-of select="date"/></xsl:attribute>
</meta>
<meta name="m-file">
<xsl:attribute name="content"><xsl:value-of select="m-file"/></xsl:attribute>
</meta>
<LINK REL="stylesheet" HREF="style.css" TYPE="text/css"/>
<xsl:call-template name="stylesheet"/>
</head>
<body>
<xsl:call-template name="header"/>
<div class="content">
<!-- Determine if the there should be an introduction section. -->
<xsl:variable name="hasIntro" select="count(cell[@style = 'overview'])"/>
<!-- If there is an introduction, display it. -->
<xsl:if test = "$hasIntro">
<h1><xsl:value-of select="cell[1]/steptitle"/></h1>
<introduction><xsl:apply-templates select="cell[1]/text"/></introduction>
</xsl:if>
<xsl:variable name="body-cells" select="cell[not(@style = 'overview')]"/>
<!-- Include contents if there are titles for any subsections. -->
<xsl:if test="count(cell/steptitle[not(@style = 'document')])">
<xsl:call-template name="contents">
<xsl:with-param name="body-cells" select="$body-cells"/>
</xsl:call-template>
</xsl:if>
<!-- Loop over each cell -->
<xsl:for-each select="$body-cells">
<!-- Title of cell -->
<xsl:if test="steptitle">
<xsl:variable name="headinglevel">
<xsl:choose>
<xsl:when test="steptitle[@style = 'document']">h1</xsl:when>
<xsl:otherwise>h2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="{$headinglevel}">
<xsl:value-of select="steptitle"/>
<xsl:if test="not(steptitle[@style = 'document'])">
<a>
<xsl:attribute name="name">
<xsl:value-of select="position()"/>
</xsl:attribute>
</a>
</xsl:if>
</xsl:element>
</xsl:if>
<!-- Contents of each cell -->
<xsl:apply-templates select="text"/>
<xsl:apply-templates select="mcode-xmlized"/>
<xsl:apply-templates select="mcodeoutput|img"/>
</xsl:for-each>
<p class="footer">
<br/>
Copyright ® 2008 Gabriel Peyre<br/>
</p>
</div>
<xsl:apply-templates select="originalCode"/>
</body>
</html>
</xsl:template>
<xsl:template name="stylesheet">
</xsl:template>
<xsl:template name="header">
</xsl:template>
<xsl:template name="contents">
<xsl:param name="body-cells"/>
<h2>Contents</h2>
<div><ul>
<xsl:for-each select="$body-cells">
<xsl:if test="./steptitle">
<li><a><xsl:attribute name="href">#<xsl:value-of select="position()"/></xsl:attribute><xsl:value-of select="steptitle"/></a></li>
</xsl:if>
</xsl:for-each>
</ul></div>
</xsl:template>
<!-- HTML Tags in text sections -->
<xsl:template match="p">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="ul">
<div><ul><xsl:apply-templates/></ul></div>
</xsl:template>
<xsl:template match="li">
<li><xsl:apply-templates/></li>
</xsl:template>
<xsl:template match="pre">
<xsl:choose>
<xsl:when test="@class='error'">
<pre class="error"><xsl:apply-templates/></pre>
</xsl:when>
<xsl:otherwise>
<pre><xsl:apply-templates/></pre>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="b">
<b><xsl:apply-templates/></b>
</xsl:template>
<xsl:template match="i">
<i><xsl:apply-templates/></i>
</xsl:template>
<xsl:template match="tt">
<tt><xsl:apply-templates/></tt>
</xsl:template>
<xsl:template match="a">
<a>
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="html">
<xsl:value-of select="@text" disable-output-escaping="yes"/>
</xsl:template>
<!-- Code input and output -->
<xsl:template match="mcode-xmlized">
<pre class="codeinput"><xsl:apply-templates/><xsl:text><!-- g162495 -->
</xsl:text></pre>
</xsl:template>
<xsl:template match="mcodeoutput">
<xsl:choose>
<xsl:when test="substring(.,0,7)='<html>'">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:when>
<xsl:otherwise>
<pre class="codeoutput"><xsl:apply-templates/></pre>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Figure and model snapshots -->
<xsl:template match="img">
<img vspace="5" hspace="5">
<xsl:attribute name="src"><xsl:value-of select="@src"/></xsl:attribute><xsl:text> </xsl:text>
</img>
</xsl:template>
<!-- Stash original code in HTML for easy slurping later. -->
<xsl:template match="originalCode">
<xsl:variable name="xcomment">
<xsl:call-template name="globalReplace">
<xsl:with-param name="outputString" select="."/>
<xsl:with-param name="target" select="'--'"/>
<xsl:with-param name="replacement" select="'REPLACE_WITH_DASH_DASH'"/>
</xsl:call-template>
</xsl:variable>
<xsl:comment>
##### SOURCE BEGIN #####
<xsl:value-of select="$xcomment"/>
##### SOURCE END #####
</xsl:comment>
</xsl:template>
<!-- Colors for syntax-highlighted input code -->
<xsl:template match="mwsh:code">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="mwsh:keywords">
<span class="keyword"><xsl:value-of select="."/></span>
</xsl:template>
<xsl:template match="mwsh:strings">
<span class="string"><xsl:value-of select="."/></span>
</xsl:template>
<xsl:template match="mwsh:comments">
<span class="comment"><xsl:value-of select="."/></span>
</xsl:template>
<xsl:template match="mwsh:unterminated_strings">
<span class="untermstring"><xsl:value-of select="."/></span>
</xsl:template>
<xsl:template match="mwsh:system_commands">
<span class="syscmd"><xsl:value-of select="."/></span>
</xsl:template>
<!-- Footer information -->
<xsl:template match="copyright">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="revision">
<xsl:value-of select="."/>
</xsl:template>
<!-- Search and replace -->
<!-- From http://www.xml.com/lpt/a/2002/06/05/transforming.html -->
<xsl:template name="globalReplace">
<xsl:param name="outputString"/>
<xsl:param name="target"/>
<xsl:param name="replacement"/>
<xsl:choose>
<xsl:when test="contains($outputString,$target)">
<xsl:value-of select=
"concat(substring-before($outputString,$target),$replacement)"/>
<xsl:call-template name="globalReplace">
<xsl:with-param name="outputString"
select="substring-after($outputString,$target)"/>
<xsl:with-param name="target" select="$target"/>
<xsl:with-param name="replacement"
select="$replacement"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$outputString"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
| {
"pile_set_name": "Github"
} |
#include <stdio.h>
int main(){
char ch;
int count = 0;
while( (ch = getchar()) != EOF ){
count++;
if(ch == ' ' || ch == '\n'){
printf("%d ", count - 1);
count = 0;
}
}
return 0;
} | {
"pile_set_name": "Github"
} |
1.3.6.1.2.1.1.1.0|4|Brocade-11, BR-VDX6710-54, Network Operating System Software Version 4.1.3b.
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.1588.2.2.1.1.1.5
| {
"pile_set_name": "Github"
} |
using Microsoft.Windows.Design.Metadata;
namespace Xamarin.Forms.Xaml.Design
{
class RegisterMetadata : IProvideAttributeTable
{
public AttributeTable AttributeTable => new AttributeTableBuilder().CreateTable();
}
} | {
"pile_set_name": "Github"
} |
import * as _window from './window'
import document from './document'
const global = GameGlobal
GameGlobal.global = GameGlobal.global || global
function inject() {
_window.document = document;
_window.addEventListener = (type, listener) => {
_window.document.addEventListener(type, listener)
}
_window.removeEventListener = (type, listener) => {
_window.document.removeEventListener(type, listener)
}
_window.dispatchEvent = function(event = {}) {
console.log('window.dispatchEvent', event.type, event);
// nothing to do
}
const { platform } = wx.getSystemInfoSync()
// 开发者工具无法重定义 window
if (typeof __devtoolssubcontext === 'undefined' && platform === 'devtools') {
for (const key in _window) {
const descriptor = Object.getOwnPropertyDescriptor(global, key)
if (!descriptor || descriptor.configurable === true) {
Object.defineProperty(window, key, {
value: _window[key]
})
}
}
for (const key in _window.document) {
const descriptor = Object.getOwnPropertyDescriptor(global.document, key)
if (!descriptor || descriptor.configurable === true) {
Object.defineProperty(global.document, key, {
value: _window.document[key]
})
}
}
window.parent = window
} else {
for (const key in _window) {
global[key] = _window[key]
}
global.window = _window
window = global
window.top = window.parent = window
}
}
if (!GameGlobal.__isAdapterInjected) {
GameGlobal.__isAdapterInjected = true
inject()
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2012-2020 CypherCore <http://github.com/CypherCore>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Framework.Constants
{
public struct BlackMarketConst
{
public const ulong MaxBid = 1000000UL* MoneyConstants.Gold;
}
public enum BlackMarketError
{
Ok = 0,
ItemNotFound = 1,
AlreadyBid = 2,
HigherBid = 4,
DatabaseError = 6,
NotEnoughMoney = 7,
RestrictedAccountTrial = 9
}
public enum BMAHMailAuctionAnswers
{
Outbid = 0,
Won = 1,
}
}
| {
"pile_set_name": "Github"
} |
/**
* This file is copyright 2017 State of the Netherlands (Ministry of Interior Affairs and Kingdom Relations).
* It is made available under the terms of the GNU Affero General Public License, version 3 as published by the Free Software Foundation.
* The project of which this file is part, may be found at https://github.com/MinBZK/operatieBRP.
*/
package nl.bzk.brp.model.web;
import nl.bzk.brp.model.data.autaut.HisAuthenticatiemiddel;
import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@RequestMapping("/hisauthenticatiemiddels")
@Controller
@RooWebScaffold(path = "hisauthenticatiemiddels", formBackingObject = HisAuthenticatiemiddel.class)
public class HisAuthenticatiemiddelController {
}
| {
"pile_set_name": "Github"
} |
Fix USB bus path; /proc/bus/usb is deprecated.
--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -73,7 +73,7 @@
#define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon"
#define USB_TEXT_DIR "/sys/kernel/debug/usb/usbmon"
#define SYS_USB_BUS_DIR "/sys/bus/usb/devices"
-#define PROC_USB_BUS_DIR "/proc/bus/usb"
+#define PROC_USB_BUS_DIR "/dev/bus/usb"
#define USB_LINE_LEN 4096
#if __BYTE_ORDER == __LITTLE_ENDIAN
| {
"pile_set_name": "Github"
} |
<?php
/**
* Created by IntelliJ IDEA.
* User: luwei
* Date: 2018/2/24
* Time: 16:06
*/
namespace app\modules\mch\models\fxhb;
use app\models\FxhbHongbao;
use app\models\User;
use app\modules\mch\models\MchModel;
use yii\data\Pagination;
class FxhbListForm extends MchModel
{
public $store_id;
public $page;
public $limit;
public $keyword;
public function rules()
{
return [
[['page', 'limit'], 'integer',],
[['page',], 'default', 'value' => 1],
[['limit',], 'default', 'value' => 10],
['keyword', 'trim'],
];
}
public function search()
{
if (!$this->validate()) {
return $this->errorResponse;
}
$query = FxhbHongbao::find()
->alias('hb')
->leftJoin(['u' => User::tableName()], 'hb.user_id=u.id')
->where([
'hb.store_id' => $this->store_id,
'hb.parent_id' => 0,
]);
if ($this->keyword) {
$query->andWhere(['LIKE', 'u.nickname', $this->keyword,]);
}
$count = $query->count();
$pagination = new Pagination(['totalCount' => $count, 'page' => $this->page - 1, 'pageSize' => $this->limit]);
$list = $query->select('u.nickname,u.platform,u.avatar_url,hb.*')
->limit($pagination->limit)->offset($pagination->offset)->orderBy('hb.addtime DESC')
->asArray()->all();
if (!$list) {
return [
'code' => 0,
'data' => [
'list' => $list,
'count' => $pagination->totalCount,
'pagination' => $pagination,
],
];
}
foreach ($list as $i => $item) {
$sub_list = FxhbHongbao::find()
->alias('hb')
->leftJoin(['u' => User::tableName()], 'hb.user_id=u.id')
->where([
'hb.parent_id' => $item['id'],
])->select('u.nickname,u.platform,u.avatar_url,hb.*')->asArray()->all();
$sub_list = $sub_list ? $sub_list : [];
$list[$i]['sub_list'] = array_merge([$item], $sub_list);
}
return [
'code' => 0,
'data' => [
'list' => $list,
'count' => $pagination->totalCount,
'pagination' => $pagination,
],
];
}
}
| {
"pile_set_name": "Github"
} |
package org.webbitserver.helpers;
public class XssCharacterEscaper {
/**
* Replaces characters in input which may open up cross-site scripting (XSS) attacks with XSS-safe equivalents.
*
* Follows escaping rules from
* <a href="https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content">the OWASP</a>.
*
* @param input String to sanitize.
* @return XSS-safe version of input.
*/
public static String escape(String input) {
StringBuilder builder = new StringBuilder(input.length());
for (int i = 0; i < input.length(); ++i) {
char original = input.charAt(i);
switch (original) {
case '&':
builder.append("&");
break;
case '<':
builder.append("<");
break;
case '>':
builder.append(">");
break;
case '"':
builder.append(""");
break;
case '\'':
builder.append("'");
break;
case '/':
builder.append("/");
break;
default:
builder.append(original);
break;
}
}
return builder.toString();
}
} | {
"pile_set_name": "Github"
} |
/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.common.client.context;
/**
* Context partition state event.
*/
public abstract class ContextStateEventContextPartition extends ContextStateEvent {
private final int id;
/**
* Ctor.
*
* @param runtimeURI runtime URI
* @param contextDeploymentId deployment id of create-context statement
* @param contextName context name
* @param id context partition id
*/
public ContextStateEventContextPartition(String runtimeURI, String contextDeploymentId, String contextName, int id) {
super(runtimeURI, contextDeploymentId, contextName);
this.id = id;
}
/**
* Returns the context partition id
*
* @return id
*/
public int getId() {
return id;
}
}
| {
"pile_set_name": "Github"
} |
(ns cmr.system-int-test.search.facets.facets-util
"Helper vars and functions for testing collection facet responses."
(:require
[clj-http.client :as client]
[cmr.common.util :as util]
[cmr.search.services.query-execution.facets.facets-v2-helper :as v2h]
[cmr.system-int-test.data2.collection :as dc]
[cmr.system-int-test.data2.core :as d]
[cmr.system-int-test.data2.umm-spec-collection :as data-umm-spec]
[cmr.system-int-test.data2.umm-spec-common :as umm-spec-common]))
(defn make-coll
"Helper for creating and ingesting an ECHO10 collection"
[n prov & attribs]
(d/ingest-umm-spec-collection
prov
(data-umm-spec/collection-without-minimal-attribs
n (apply merge {:EntryTitle (str "coll" n)} attribs))))
(defn projects
[& project-names]
{:Projects (apply data-umm-spec/projects project-names)})
(def platform-short-names
"List of platform short names that exist in the test KMS hierarchy. Note we are testing case
insensivity of the short name. DIADEM-1D is the actual short-name value in KMS, but we expect
diadem-1D to match."
["diadem-1D" "DMSP 5B/F3" "A340-600" "SMAP"])
(def instrument-short-names
"List of instrument short names that exist in the test KMS hierarchy. Note we are testing case
insensivity of the short name. LVIS is the actual short-name value in KMS, but we expect
lVIs to match."
["ATM" "lVIs" "ADS" "SMAP L-BAND RADIOMETER"])
(def FROM_KMS
"Constant indicating that the short name for the field should be a short name found in KMS."
"FROM_KMS")
(defn platforms
"Creates a specified number of platforms each with a certain number of instruments and sensors"
([prefix num-platforms]
(platforms prefix num-platforms 0 0))
([prefix num-platforms num-instruments]
(platforms prefix num-platforms num-instruments 0))
([prefix num-platforms num-instruments num-sensors]
{:Platforms
(for [pn (range 0 num-platforms)
:let [platform-name (str prefix "-p" pn)]]
(data-umm-spec/platform
{:ShortName (if (= FROM_KMS prefix)
(or (get platform-short-names pn) platform-name)
platform-name)
:LongName platform-name
:Instruments
(for [instrument (range 0 num-instruments)
:let [instrument-name (str platform-name "-i" instrument)]]
(apply data-umm-spec/instrument-with-childinstruments
(if (= FROM_KMS prefix)
(or (get instrument-short-names instrument) instrument-name)
instrument-name)
(for [sn (range 0 num-sensors)
:let [sensor-name (str instrument-name "-s" sn)]]
sensor-name)))}))}))
(defn twod-coords
[& names]
{:TilingIdentificationSystems (apply data-umm-spec/tiling-identification-systems names)})
(defn science-keywords
[& sks]
{:ScienceKeywords sks})
(defn processing-level-id
[id]
{:ProcessingLevel {:Id id}})
(defn generate-science-keywords
"Generate science keywords based on a unique number."
[n]
(dc/science-keyword {:Category (str "Cat-" n)
:Topic (str "Topic-" n)
:Term (str "Term-" n)
:VariableLevel1 "Level1-1"
:VariableLevel2 "Level1-2"
:VariableLevel3 "Level1-3"
:DetailedVariable (str "Detail-" n)}))
(defn prune-facet-response
"Recursively limit the facet response to only the keys provided to make it easier to test
different parts of the response in different tests."
[facet-response keys]
(if (:children facet-response)
(assoc (select-keys facet-response keys)
:children
(for [child-facet (:children facet-response)]
(prune-facet-response child-facet keys)))
(select-keys facet-response keys)))
(defn facet-group
"Returns the facet group for the given field."
[facet-response field]
(let [child-facets (:children facet-response)
field-title (v2h/fields->human-readable-label field)]
(first (filter #(= (:title %) field-title) child-facets))))
(defn applied?
"Returns whether the provided facet field is marked as applied in the facet response."
[facet-response field]
(:applied (facet-group facet-response field)))
(defn facet-values
"Returns the values of the facet for the given field"
[facet-response field]
(map :title (:children (facet-group facet-response field))))
(defn facet-index
"Returns the (first) index of the facet value in the list"
[facet-response field value]
(first (keep-indexed #(when (= value %2) %1)
(facet-values facet-response field))))
(defn facet-included?
"Returns whether the provided facet value is included in the list"
[facet-response field value]
(some #(= value %) (facet-values facet-response field)))
(defn in-alphabetical-order?
"Returns true if the values in the collection are sorted in alphabetical order."
[coll]
;; Note that compare-natural-strings is thoroughly unit tested so we can use it to verify
;; alphabetical order
(= coll (sort-by first util/compare-natural-strings coll)))
(defn get-lowest-hierarchical-depth
"Returns the lowest hierachical depth within the facet response for any hierarchical fields."
([facet]
(get-lowest-hierarchical-depth facet -1))
([facet current-depth]
(apply max
current-depth
(map #(get-lowest-hierarchical-depth % (inc current-depth)) (:children facet)))))
(defn- find-first-apply-link
"Takes a facet response and recursively finds the first apply link starting at the top node."
[facet-response]
(or (get-in facet-response [:links :apply])
(some find-first-apply-link (:children facet-response))))
(defn traverse-hierarchical-links-in-order
"Takes a facet response and recursively clicks on the first apply link in the hierarchy until
every link has been applied."
[facet-response]
(if-let [apply-link (find-first-apply-link facet-response)]
(let [response (get-in (client/get apply-link {:as :json}) [:body :feed :facets])]
(traverse-hierarchical-links-in-order response))
;; All links have been applied
facet-response))
(defn get-science-keyword-indexes-in-link
"Returns a sequence of all of the science keyword indexes in link or nil if no science keywords
are in the link."
[link]
(let [index-regex #"science_keywords_h%5B(\d+)%5D"
matcher (re-matcher index-regex link)]
(loop [matches (re-find matcher)
all-indexes nil]
(if-not matches
all-indexes
(recur (re-find matcher) (conj all-indexes (Integer/parseInt (second matches))))))))
(defn get-all-links
"Returns all of the links in a facet response."
([facet-response]
(get-all-links facet-response nil))
([facet-response links]
(let [link (first (vals (:links facet-response)))
sublinks (mapcat #(get-all-links % links) (:children facet-response))]
(if link
(conj sublinks link)
sublinks))))
(defn traverse-links
"Takes a collection of title strings and follows the apply links for each title in order. Returns
the final facet response after clicking the apply links.
Example: [\"Keywords\" \"Agriculture\" \"Agricultural Aquatic Sciences\" \"Aquaculture\"]"
[facet-response titles]
(loop [child-facet (first (filter #(= (first titles) (:title %)) (:children facet-response)))
remaining-titles titles]
(if (seq remaining-titles)
;; Check to see if any links need to be applied
(if-let [link (get-in child-facet [:links :apply])]
;; Need to apply the link and start again
(let [facet-response (get-in (client/get link {:as :json}) [:body :feed :facets])]
(traverse-links facet-response titles))
;; Else check if the next title in the hierarchy has an apply link
(let [remaining-titles (rest remaining-titles)]
(recur (first (filter #(= (first remaining-titles) (:title %)) (:children child-facet)))
remaining-titles)))
;; We are done return the facet response
facet-response)))
(defn click-link
"Navigates through the hierarchical titles and clicks the link at the last level. Returns the
facet response returned by that link. Works for either an apply or remove link"
[facet-response titles]
(if-let [first-title (first titles)]
(let [child-facet (first (filter #(= first-title (:title %)) (:children facet-response)))]
(recur child-facet (rest titles)))
(let [link (-> (get facet-response :links) vals first)]
(get-in (client/get link {:as :json}) [:body :feed :facets]))))
| {
"pile_set_name": "Github"
} |
[
{
"domain": "homeassistant",
"services": {
"check_config": {
"description": "Check the Home Assistant configuration files for errors. Errors will be displayed in the Home Assistant log.",
"fields": {}
},
"reload_core_config": {
"description": "Reload the core configuration.",
"fields": {}
},
"restart": {
"description": "Restart the Home Assistant service.",
"fields": {}
},
"stop": {
"description": "Stop the Home Assistant service.",
"fields": {}
},
"toggle": {
"description": "Generic service to toggle devices on/off under any domain. Same usage as the light.turn_on, switch.turn_on, etc. services.",
"fields": {
"entity_id": {
"description": "The entity_id of the device to toggle on/off.",
"example": "light.living_room"
}
}
}
}
},
{
"domain": "group",
"services": {
"reload": {
"description": "Reload group configuration.",
"fields": {}
},
"remove": {
"description": "Remove a user group.",
"fields": {
"object_id": {
"description": "Group id and part of entity id.",
"example": "test_group"
}
}
},
"set": {
"description": "Create/Update a user group.",
"fields": {
"add_entities": {
"description": "List of members they will change on group listening.",
"example": "domain.entity_id1, domain.entity_id2"
},
"all": {
"description": "Enable this option if the group should only turn on when all entities are on.",
"example": true
},
"control": {
"description": "Value for control the group control.",
"example": "hidden"
},
"entities": {
"description": "List of all members in the group. Not compatible with 'delta'.",
"example": "domain.entity_id1, domain.entity_id2"
},
"icon": {
"description": "Name of icon for the group.",
"example": "mdi:camera"
},
"name": {
"description": "Name of group",
"example": "My test group"
},
"object_id": {
"description": "Group id and part of entity id.",
"example": "test_group"
},
"view": {
"description": "Boolean for if the group is a view.",
"example": true
},
"visible": {
"description": "If the group is visible on UI.",
"example": true
}
}
},
"set_visibility": {
"description": "Hide or show a group.",
"fields": {
"entity_id": {
"description": "Name(s) of entities to set value.",
"example": "group.travel"
},
"visible": {
"description": "True if group should be shown or False if it should be hidden.",
"example": true
}
}
}
}
},
{
"domain": "light",
"services": {
"toggle": {
"description": "Toggles a light.",
"fields": {
"entity_id": {
"description": "Name(s) of entities to toggle.",
"example": "light.kitchen"
},
"transition": {
"description": "Duration in seconds it takes to get to next state.",
"example": 60
}
}
},
"turn_off": {
"description": "Turn a light off.",
"fields": {
"entity_id": {
"description": "Name(s) of entities to turn off.",
"example": "light.kitchen"
},
"flash": {
"description": "If the light should flash.",
"values": [
"short",
"long"
]
},
"transition": {
"description": "Duration in seconds it takes to get to next state.",
"example": 60
}
}
},
"turn_on": {
"description": "Turn a light on.",
"fields": {
"brightness": {
"description": "Number between 0..255 indicating brightness.",
"example": 120
},
"brightness_pct": {
"description": "Number between 0..100 indicating percentage of full brightness.",
"example": 47
},
"color_name": {
"description": "A human readable color name.",
"example": "red"
},
"color_temp": {
"description": "Color temperature for the light in mireds.",
"example": 250
},
"effect": {
"description": "Light effect.",
"values": [
"colorloop",
"random"
]
},
"entity_id": {
"description": "Name(s) of entities to turn on",
"example": "light.kitchen"
},
"flash": {
"description": "If the light should flash.",
"values": [
"short",
"long"
]
},
"hs_color": {
"description": "Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.",
"example": "[300, 70]"
},
"kelvin": {
"description": "Color temperature for the light in Kelvin.",
"example": 4000
},
"profile": {
"description": "Name of a light profile to use.",
"example": "relax"
},
"rgb_color": {
"description": "Color for the light in RGB-format.",
"example": "[255, 100, 100]"
},
"transition": {
"description": "Duration in seconds it takes to get to next state",
"example": 60
},
"white_value": {
"description": "Number between 0..255 indicating level of white.",
"example": "250"
},
"xy_color": {
"description": "Color for the light in XY-format.",
"example": "[0.52, 0.43]"
}
}
}
}
}
]
| {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.