repo_name stringlengths 2 55 | dataset stringclasses 1 value | owner stringlengths 3 31 | lang stringclasses 10 values | func_name stringlengths 1 104 | code stringlengths 20 96.7k | docstring stringlengths 1 4.92k | url stringlengths 94 241 | sha stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
java-interview | github_2023 | Top4IkRu | java | SortList.getMid | public ListNode getMid(ListNode head) {
ListNode slow = head, fast = head.next;
while (fast != null && fast.next != null) {
fast = fast.next.next;
slow = slow.next;
}
return slow;
} | /**
* Find middle with usage slow and fast pointers
*/ | https://github.com/Top4IkRu/java-interview/blob/a26c8fdc50157108e12cc1239195b89234e4bfb4/algorithms/src/main/java/solution/linked_list/medium/SortList.java#L35-L42 | a26c8fdc50157108e12cc1239195b89234e4bfb4 |
langhaiblogs | github_2023 | Allenkuzma | java | SystemController.index | @GetMapping(value = "/index")
public String index(HttpServletRequest httpRequest, HttpSession session, Model model) {
return "system/index";
} | /**
* 跳转到浪海博客后台管理首页
*
* @return 后台管理首页页面 system/index.html
*/ | https://github.com/Allenkuzma/langhaiblogs/blob/a77bd2103800a65f11812b04afb506aeea9c9eae/src/main/java/cc/langhai/controller/system/SystemController.java#L36-L39 | a77bd2103800a65f11812b04afb506aeea9c9eae |
cloudclient | github_2023 | cloudclientdev | java | SettingManager.getSettingList | public ArrayList<Setting> getSettingList() {
return settingList;
} | /**
* @return Returns an Arraylist of all settings
*/ | https://github.com/cloudclientdev/cloudclient/blob/4e2752fdcb45f6f45468aee1eb247c1da41bcd8b/1.8.9/cloudclient/src/main/java/dev/cloudmc/feature/setting/SettingManager.java#L33-L35 | 4e2752fdcb45f6f45468aee1eb247c1da41bcd8b |
MoonBox | github_2023 | vivo | java | BurlapOutput.writeBytes | public void writeBytes(byte []buffer, int offset, int length)
throws IOException
{
if (buffer == null) {
print("<null></null>");
}
else {
print("<base64>");
int i = 0;
for (; i + 2 < length; i += 3) {
if (i != 0 && (i & 0x3f) == 0)
print('\n');
int v = (((buffer[offset + i] & 0xff) << 16) +
((buffer[offset + i + 1] & 0xff) << 8) +
(buffer[offset + i + 2] & 0xff));
print(encode(v >> 18));
print(encode(v >> 12));
print(encode(v >> 6));
print(encode(v));
}
if (i + 1 < length) {
int v = (((buffer[offset + i] & 0xff) << 8) +
(buffer[offset + i + 1] & 0xff));
print(encode(v >> 10));
print(encode(v >> 4));
print(encode(v << 2));
print('=');
}
else if (i < length) {
int v = buffer[offset + i] & 0xff;
print(encode(v >> 2));
print(encode(v << 4));
print('=');
print('=');
}
print("</base64>");
}
} | /**
* Writes a byte array to the stream.
* The array will be written with the following syntax:
*
* <code><pre>
* <base64>bytes</base64>
* </pre></code>
*
* If the value is null, it will be written as
*
* <code><pre>
* <null></null>
* </pre></code>
*
* @param value the string value to write.
*/ | https://github.com/vivo/MoonBox/blob/5a462f16a21eb8515a3b2387a355e34c5fabd9de/moonbox-common/moonbox-hessian-lite/src/main/java/com/caucho/burlap/io/BurlapOutput.java#L610-L654 | 5a462f16a21eb8515a3b2387a355e34c5fabd9de |
MoonBox | github_2023 | vivo | java | Hessian2Output.reset | public void reset()
{
if (_refs != null) {
_refs.clear();
_refCount = 0;
}
_classRefs.clear();
_typeRefs = null;
_offset = 0;
_isPacket = false;
_isUnshared = false;
} | /**
* Resets all counters and references
*/ | https://github.com/vivo/MoonBox/blob/5a462f16a21eb8515a3b2387a355e34c5fabd9de/moonbox-common/moonbox-hessian-lite/src/main/java/com/caucho/hessian/io/Hessian2Output.java#L1688-L1700 | 5a462f16a21eb8515a3b2387a355e34c5fabd9de |
MoonBox | github_2023 | vivo | java | HessianOutput.writeInt | public void writeInt(int value)
throws IOException
{
os.write('I');
os.write(value >> 24);
os.write(value >> 16);
os.write(value >> 8);
os.write(value);
} | /**
* Writes an integer value to the stream. The integer will be written
* with the following syntax:
*
* <code><pre>
* I b32 b24 b16 b8
* </pre></code>
*
* @param value the integer value to write.
*/ | https://github.com/vivo/MoonBox/blob/5a462f16a21eb8515a3b2387a355e34c5fabd9de/moonbox-common/moonbox-hessian-lite/src/main/java/com/caucho/hessian/io/HessianOutput.java#L442-L450 | 5a462f16a21eb8515a3b2387a355e34c5fabd9de |
amethyst | github_2023 | vitorpamplona | java | Hash.getAlgorithm | public byte getAlgorithm() {
return algorithm;
} | /**
* Get Algorithm tag.
*
* @return algorithm - The algorithm tag of crypto operation.
*/ | https://github.com/vitorpamplona/amethyst/blob/f0116ad06eac2210fe9dd4ced035f78c969ad504/quartz/src/main/java/com/vitorpamplona/quartz/nip03Timestamp/ots/Hash.java#L65-L67 | f0116ad06eac2210fe9dd4ced035f78c969ad504 |
live-room-watcher | github_2023 | scx567888 | java | Room.Builder.clearLiveId | public Builder clearLiveId() {
bitField0_ = (bitField0_ & ~0x00000080);
liveId_ = 0L;
onChanged();
return this;
} | /**
* <code>int64 live_id = 14;</code>
* @return This builder for chaining.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/douyin_hack/proto_entity/webcast/data/Room.java#L990-L995 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | GiftMessage.Builder.getGiftOrBuilder | public cool.scx.live_room_watcher.impl.douyin_hack.proto_entity.webcast.data.GiftStructOrBuilder getGiftOrBuilder() {
if (giftBuilder_ != null) {
return giftBuilder_.getMessageOrBuilder();
} else {
return gift_ == null ?
cool.scx.live_room_watcher.impl.douyin_hack.proto_entity.webcast.data.GiftStruct.getDefaultInstance() : gift_;
}
} | /**
* <code>.GiftStruct gift = 15;</code>
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/douyin_hack/proto_entity/webcast/im/GiftMessage.java#L1164-L1171 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | Response.Builder.addAllMessages | public Builder addAllMessages(
java.lang.Iterable<? extends cool.scx.live_room_watcher.impl.douyin_hack.proto_entity.webcast.im.Message> values) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, messages_);
onChanged();
} else {
messagesBuilder_.addAllMessages(values);
}
return this;
} | /**
* <code>repeated .Message messages = 1;</code>
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/douyin_hack/proto_entity/webcast/im/Response.java#L1103-L1114 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | RoomRankMessage.RoomRank.hasUser | @java.lang.Override
public boolean hasUser() {
return ((bitField0_ & 0x00000001) != 0);
} | /**
* <code>.User user = 1;</code>
* @return Whether the user field is set.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/douyin_hack/proto_entity/webcast/im/RoomRankMessage.java#L132-L135 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | RoomRankMessage.Builder.getScoreStrBytes | public com.google.protobuf.ByteString
getScoreStrBytes() {
java.lang.Object ref = scoreStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scoreStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | /**
* <code>string score_str = 2;</code>
* @return The bytes for scoreStr.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/douyin_hack/proto_entity/webcast/im/RoomRankMessage.java#L707-L719 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | GiftStruct.getName | @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
} | /**
* <code>string name = 16;</code>
* @return The name.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/data/GiftStruct.java#L57-L69 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | ChatMessage.getEmotesList | @java.lang.Override
public cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.im.ChatMessage.EmoteWithIndex getEmotesList(int index) {
return emotesList_.get(index);
} | /**
* <code>repeated .tiktok_hack.ChatMessage.EmoteWithIndex emotesList = 13;</code>
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/im/ChatMessage.java#L723-L726 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | Common.getDependId | @java.lang.Override
public cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.data.LiveMessageID getDependId() {
return dependId_ == null ? cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.data.LiveMessageID.getDefaultInstance() : dependId_;
} | /**
* <code>.tiktok_hack.LiveMessageID dependId = 20;</code>
* @return The dependId.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/im/Common.java#L542-L545 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | Common.Builder.setRoomMessageHeatLevel | public Builder setRoomMessageHeatLevel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
roomMessageHeatLevel_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
} | /**
* <code>string roomMessageHeatLevel = 22;</code>
* @param value The roomMessageHeatLevel to set.
* @return This builder for chaining.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/im/Common.java#L3261-L3268 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | LikeMessage.getEffectCnt | @java.lang.Override
public java.lang.String getEffectCnt() {
java.lang.Object ref = effectCnt_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
effectCnt_ = s;
return s;
}
} | /**
* <code>string effectCnt = 9;</code>
* @return The effectCnt.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/im/LikeMessage.java#L310-L322 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | LikeMessage.getPublicAreaMessageCommonOrBuilder | @java.lang.Override
public cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.im.PublicAreaMessageCommonOrBuilder getPublicAreaMessageCommonOrBuilder() {
return publicAreaMessageCommon_ == null ? cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.im.PublicAreaMessageCommon.getDefaultInstance() : publicAreaMessageCommon_;
} | /**
* <code>.tiktok_hack.PublicAreaMessageCommon publicAreaMessageCommon = 11;</code>
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/im/LikeMessage.java#L404-L407 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
live-room-watcher | github_2023 | scx567888 | java | Response.Builder.getIsFirstBytes | public com.google.protobuf.ByteString
getIsFirstBytes() {
java.lang.Object ref = isFirst_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
isFirst_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | /**
* <code>string isFirst = 11;</code>
* @return The bytes for isFirst.
*/ | https://github.com/scx567888/live-room-watcher/blob/eda31ba1f69d13e132f428e797ca0479d47afff7/src/main/java/cool/scx/live_room_watcher/impl/tiktok_hack/proto_entity/webcast/im/Response.java#L1882-L1894 | eda31ba1f69d13e132f428e797ca0479d47afff7 |
ruoyi-mall | github_2023 | zccbbg | java | SysRoleController.getInfo | @PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping(value = "/{roleId}")
public AjaxResult getInfo(@PathVariable Long roleId)
{
roleService.checkRoleDataScope(roleId);
return AjaxResult.success(roleService.selectRoleById(roleId));
} | /**
* 根据角色编号获取详细信息
*/ | https://github.com/zccbbg/ruoyi-mall/blob/aef63aa6fd830fb92b01189b3ea5b6ee49662ef8/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java#L75-L81 | aef63aa6fd830fb92b01189b3ea5b6ee49662ef8 |
ruoyi-mall | github_2023 | zccbbg | java | GenTableServiceImpl.validateEdit | @Override
public void validateEdit(GenTable genTable) {
if (GenConstants.TPL_TREE.equals(genTable.getTplCategory())) {
String options = JSON.toJSONString(genTable.getParams());
JSONObject paramsObj = JSONObject.parseObject(options);
if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_CODE))) {
throw new ServiceException("树编码字段不能为空");
} else if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_PARENT_CODE))) {
throw new ServiceException("树父编码字段不能为空");
} else if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_NAME))) {
throw new ServiceException("树名称字段不能为空");
} else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) {
if (StringUtils.isEmpty(genTable.getSubTableName())) {
throw new ServiceException("关联子表的表名不能为空");
} else if (StringUtils.isEmpty(genTable.getSubTableFkName())) {
throw new ServiceException("子表关联的外键名不能为空");
}
}
}
} | /**
* 修改保存参数校验
*
* @param genTable 业务信息
*/ | https://github.com/zccbbg/ruoyi-mall/blob/aef63aa6fd830fb92b01189b3ea5b6ee49662ef8/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableServiceImpl.java#L427-L446 | aef63aa6fd830fb92b01189b3ea5b6ee49662ef8 |
cel-java | github_2023 | google | java | Env.sanitizeFunction | private static CelFunctionDecl sanitizeFunction(CelFunctionDecl func) {
boolean needsSanitizing = false;
for (CelOverloadDecl o : func.overloads()) {
if (isWellKnownType(o.resultType())) {
needsSanitizing = true;
break;
}
for (CelType p : o.parameterTypes()) {
if (isWellKnownType(p)) {
needsSanitizing = true;
break;
}
}
}
if (!needsSanitizing) {
return func;
}
CelFunctionDecl.Builder funcBuilder = func.toBuilder();
ImmutableSet.Builder<CelOverloadDecl> overloadsBuilder = new ImmutableSet.Builder<>();
for (CelOverloadDecl overloadDecl : funcBuilder.overloads()) {
CelOverloadDecl.Builder overloadBuilder = overloadDecl.toBuilder();
CelType resultType = overloadBuilder.build().resultType();
if (isWellKnownType(resultType)) {
overloadBuilder.setResultType(getWellKnownType(resultType));
}
ImmutableList.Builder<CelType> parameterTypeBuilder = ImmutableList.builder();
for (CelType paramType : overloadBuilder.parameterTypes()) {
if (isWellKnownType(paramType)) {
parameterTypeBuilder.add(getWellKnownType(paramType));
} else {
parameterTypeBuilder.add(paramType);
}
}
overloadBuilder.setParameterTypes(parameterTypeBuilder.build());
overloadsBuilder.add(overloadBuilder.build());
}
return funcBuilder.setOverloads(overloadsBuilder.build()).build();
} | /**
* Sanitize the function declaration type making sure that proto-based message names appearing in
* the result or parameter types are mapped to the appropriate CEL types.
*/ | https://github.com/google/cel-java/blob/3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9/checker/src/main/java/dev/cel/checker/Env.java#L943-L982 | 3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9 |
cel-java | github_2023 | google | java | Exercise2.eval | @SuppressWarnings("DoNotCallSuggester")
Object eval(CelAbstractSyntaxTree ast, Map<String, ?> parameterValues) {
throw new UnsupportedOperationException("To be implemented");
} | /**
* Evaluates the compiled AST with the user provided parameter values.
*
* @throws IllegalArgumentException If the compiled expression in AST fails to evaluate.
*/ | https://github.com/google/cel-java/blob/3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9/codelab/src/main/codelab/Exercise2.java#L48-L51 | 3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9 |
cel-java | github_2023 | google | java | CelSource.getLocationOffsetImpl | private static Optional<Integer> getLocationOffsetImpl(
List<Integer> lineOffsets, int line, int column) {
if (line <= 0 || column < 0) {
return Optional.empty();
}
int offset = CelSourceHelper.findLineOffset(lineOffsets, line);
if (offset == -1) {
return Optional.empty();
}
return Optional.of(offset + column);
} | /**
* Get the code point offset within the source expression text that corresponds with the {@code
* line} and {@code column}.
*
* @param line the line number starting from 1
* @param column the column number starting from 0
*/ | https://github.com/google/cel-java/blob/3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9/common/src/main/java/dev/cel/common/CelSource.java#L123-L133 | 3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9 |
cel-java | github_2023 | google | java | CelComprehension.Builder.getEntries | public ImmutableList<CelMap.Entry> getEntries() {
return ImmutableList.copyOf(mutableEntries);
} | /** Returns an immutable copy of the current mutable entries present in the builder. */ | https://github.com/google/cel-java/blob/3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9/common/src/main/java/dev/cel/common/ast/CelExpr.java#L800-L802 | 3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9 |
cel-java | github_2023 | google | java | CelExprFactory.fold | public final CelExpr fold(
String iterVar,
CelExpr.Builder iterRange,
String accuVar,
CelExpr accuInit,
CelExpr.Builder condition,
CelExpr step,
CelExpr result) {
return fold(iterVar, iterRange.build(), accuVar, accuInit, condition.build(), step, result);
} | /** Fold creates a fold comprehension instruction. */ | https://github.com/google/cel-java/blob/3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9/common/src/main/java/dev/cel/common/ast/CelExprFactory.java#L245-L254 | 3819aef4d7d5e09ec59bcdfe3ff39b9bd70523e9 |
dataService | github_2023 | zhugezifang | java | DemoDialogController.frame1 | @GetMapping("/frame1")
public String frame1()
{
return prefix + "/table/frame1";
} | /**
* 多层窗口frame1
*/ | https://github.com/zhugezifang/dataService/blob/a25f1c85f05d39b693e44f0981b791c09481a784/admin/src/main/java/com/vince/xq/web/controller/demo/controller/DemoDialogController.java#L84-L88 | a25f1c85f05d39b693e44f0981b791c09481a784 |
dataService | github_2023 | zhugezifang | java | RuoYiConfig.getUploadPath | public static String getUploadPath()
{
return getProfile() + "/upload";
} | /**
* 获取上传路径
*/ | https://github.com/zhugezifang/dataService/blob/a25f1c85f05d39b693e44f0981b791c09481a784/common/src/main/java/com/vince/xq/common/config/RuoYiConfig.java#L120-L123 | a25f1c85f05d39b693e44f0981b791c09481a784 |
dataService | github_2023 | zhugezifang | java | IpUtils.getIpAddr | public static String getIpAddr(HttpServletRequest request)
{
if (request == null)
{
return "unknown";
}
String ip = request.getHeader("x-forwarded-for");
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip))
{
ip = request.getHeader("Proxy-Client-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip))
{
ip = request.getHeader("X-Forwarded-For");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip))
{
ip = request.getHeader("WL-Proxy-Client-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip))
{
ip = request.getHeader("X-Real-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip))
{
ip = request.getRemoteAddr();
}
return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip);
} | /**
* 获取客户端IP
*
* @param request 请求对象
* @return IP地址
*/ | https://github.com/zhugezifang/dataService/blob/a25f1c85f05d39b693e44f0981b791c09481a784/common/src/main/java/com/vince/xq/common/utils/IpUtils.java#L20-L50 | a25f1c85f05d39b693e44f0981b791c09481a784 |
SLT | github_2023 | Enerccio | java | LispLexer.ZZ_CMAP | public static int ZZ_CMAP(int ch) {
return ZZ_CMAP_A[ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>13]|((ch>>7)&0x3f)]|(ch&0x7f)];
} | /**
* Translates characters to character classes
* Chosen bits are [8, 6, 7]
* Total runtime size is 1040 bytes
*/ | https://github.com/Enerccio/SLT/blob/177139b3f9d81aa108641340679b65af78073d93/src/main/gen/com/en_circle/slt/plugin/lisp/LispLexer.java#L62-L64 | 177139b3f9d81aa108641340679b65af78073d93 |
lwjgl3ify | github_2023 | GTNewHorizons | java | Keyboard.populateKeyLookupTables | public static void populateKeyLookupTables() {
for (int key = 0; key <= 255; key++) {
getKeyName(key);
}
} | /** Populates the key name->index lookup table with the current keyboard layout based names. */ | https://github.com/GTNewHorizons/lwjgl3ify/blob/6df8300fd129ba3d1bd4c75115f79cdd43b14d69/src/main/java/org/lwjglx/input/Keyboard.java#L223-L227 | 6df8300fd129ba3d1bd4c75115f79cdd43b14d69 |
lwjgl3ify | github_2023 | GTNewHorizons | java | WaveData.create | public static WaveData create(ByteBuffer buffer) {
try {
byte[] bytes = null;
if (buffer.hasArray()) {
bytes = buffer.array();
} else {
bytes = new byte[buffer.capacity()];
buffer.get(bytes);
}
return create(bytes);
} catch (Exception e) {
org.lwjglx.LWJGLUtil.log("Unable to create from ByteBuffer, " + e.getMessage());
return null;
}
} | /**
* Creates a WaveData container from the specified ByetBuffer. If the buffer is backed by an array, it will be used
* directly, else the contents of the buffer will be copied using get(byte[]).
*
* @param buffer ByteBuffer containing sound file
* @return WaveData containing data, or null if a failure occured
*/ | https://github.com/GTNewHorizons/lwjgl3ify/blob/6df8300fd129ba3d1bd4c75115f79cdd43b14d69/src/main/java/org/lwjglx/util/WaveData.java#L143-L158 | 6df8300fd129ba3d1bd4c75115f79cdd43b14d69 |
lwjgl3ify | github_2023 | GTNewHorizons | java | Matrix4f.invert | public Matrix invert() {
return invert(this, this);
} | /**
* Invert this matrix
*
* @return this if successful, null otherwise
*/ | https://github.com/GTNewHorizons/lwjgl3ify/blob/6df8300fd129ba3d1bd4c75115f79cdd43b14d69/src/main/java/org/lwjglx/util/vector/Matrix4f.java#L747-L749 | 6df8300fd129ba3d1bd4c75115f79cdd43b14d69 |
QuranApp | github_2023 | AlfaazPlus | java | FileUtils.viewImage | public void viewImage(@NonNull Uri imageUri) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(imageUri, "image/*");
intent.setFlags(FLAG_GRANT_READ_URI_PERMISSION);
try {
getContext().startActivity(intent);
} catch (ActivityNotFoundException e) {
e.printStackTrace();
}
} | /**
* Instantiates view intent to view an image in default image viewer
*
* @param imageUri The image {@link URI}, which is to be viewed
*/ | https://github.com/AlfaazPlus/QuranApp/blob/cfd95575d4ba66a5cf2313f13d03293d679d5d09/app/src/main/java/com/quranapp/android/utils/univ/FileUtils.java#L225-L235 | cfd95575d4ba66a5cf2313f13d03293d679d5d09 |
crane4j | github_2023 | opengoofy | java | ManyToManyAssembleOperationHandler.getSourcesFromContainer | @SuppressWarnings("unchecked")
@Override
protected Map<Object, Object> getSourcesFromContainer(Container<?> container, Collection<Target> targets) {
Set<Object> keys = targets.stream()
.map(Target::getKey)
.map(k -> (Collection<?>)k)
.flatMap(Collection::stream)
.collect(Collectors.toSet());
return (Map<Object, Object>)((Container<Object>)container).get(keys);
} | /**
* Obtain the corresponding data source object from the data source container based on the entity's key value.
*
* @param container container
* @param targets targets
* @return source objects
*/ | https://github.com/opengoofy/crane4j/blob/bfc292cbcb272bc40f8c2fc6295ba9b8ac3efdc1/crane4j-core/src/main/java/cn/crane4j/core/executor/handler/ManyToManyAssembleOperationHandler.java#L49-L58 | bfc292cbcb272bc40f8c2fc6295ba9b8ac3efdc1 |
crane4j | github_2023 | opengoofy | java | ClassScanner.scan | public Set<Class<?>> scan(String... basePackages) {
return scan(Objects::nonNull, basePackages);
} | /**
* <p>Scan all classes under the specified package.
*
* @param basePackages the specified package
* @return a set of classes
*/ | https://github.com/opengoofy/crane4j/blob/bfc292cbcb272bc40f8c2fc6295ba9b8ac3efdc1/crane4j-extension/crane4j-extension-spring/src/main/java/cn/crane4j/extension/spring/scanner/ClassScanner.java#L60-L62 | bfc292cbcb272bc40f8c2fc6295ba9b8ac3efdc1 |
YAGSL | github_2023 | BroncBotz3481 | java | SwerveModule.getState | public SwerveModuleState getState()
{
double velocity;
Rotation2d azimuth;
if (!SwerveDriveTelemetry.isSimulation)
{
velocity = driveVelocityCache.getValue();
azimuth = Rotation2d.fromDegrees(getAbsolutePosition());
} else
{
return simModule.getState();
}
return new SwerveModuleState(velocity, azimuth);
} | /**
* Get the Swerve Module state.
*
* @return Current SwerveModule state.
*/ | https://github.com/BroncBotz3481/YAGSL/blob/62f8236678090186dbda41719c1cc2e8e6b38448/swervelib/SwerveModule.java#L537-L550 | 62f8236678090186dbda41719c1cc2e8e6b38448 |
YAGSL | github_2023 | BroncBotz3481 | java | CANCoderSwerve.getAbsoluteEncoder | @Override
public Object getAbsoluteEncoder()
{
return encoder;
} | /**
* Get the instantiated absolute encoder Object.
*
* @return Absolute encoder object.
*/ | https://github.com/BroncBotz3481/YAGSL/blob/62f8236678090186dbda41719c1cc2e8e6b38448/swervelib/encoders/CANCoderSwerve.java#L202-L206 | 62f8236678090186dbda41719c1cc2e8e6b38448 |
YAGSL | github_2023 | BroncBotz3481 | java | CanandgyroSwerve.factoryDefault | @Override
public void factoryDefault()
{
imu.resetFactoryDefaults(STATUS_TIMEOUT_SECONDS);
} | /**
* Reset {@link Canandgyro} to factory default.
*/ | https://github.com/BroncBotz3481/YAGSL/blob/62f8236678090186dbda41719c1cc2e8e6b38448/swervelib/imu/CanandgyroSwerve.java#L52-L56 | 62f8236678090186dbda41719c1cc2e8e6b38448 |
chatgpt-java | github_2023 | Grt1228 | java | TikTokensTest.chatCompletionTokensTest | @Test
public void chatCompletionTokensTest() {
ChatCompletion completion = ChatCompletion.builder().messages(messages).build();
long tokens = completion.tokens();
log.info("Message集合文本:【{}】", messages, tokens);
log.info("总tokens数{}", tokens);
} | /**
* gpt-3.5和gpt4.0聊天模型接口计算推荐这种方法
*/ | https://github.com/Grt1228/chatgpt-java/blob/ae761b89450812fab4cd7bba6626f9874705ca40/src/test/java/com/unfbx/chatgpt/TikTokensTest.java#L40-L46 | ae761b89450812fab4cd7bba6626f9874705ca40 |
cffu | github_2023 | foldright | java | Cffu.get | @Blocking
@Nullable
@Override
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
checkMinimalStage();
return cf.get(timeout, unit);
} | /**
* Waits if necessary for at most the given time for the computation to complete,
* and then retrieves its result, if available.
*
* @param timeout the maximum time to wait
* @param unit the time unit of the timeout argument
* @return the computed result
* @throws CancellationException if the computation was cancelled
* @throws ExecutionException if the computation threw an exception
* @throws InterruptedException if the current thread was interrupted while waiting
* @throws TimeoutException if the wait timed out
*/ | https://github.com/foldright/cffu/blob/c4e2d4d6dae280e06a7267b9793e6d3e66c9dcee/cffu-core/src/main/java/io/foldright/cffu/Cffu.java#L2204-L2210 | c4e2d4d6dae280e06a7267b9793e6d3e66c9dcee |
plantuml-core | github_2023 | plantuml | java | ST_subtree_t.isSameThan | @Override
public boolean isSameThan(__ptr__ other) {
ST_subtree_t other2 = (ST_subtree_t) other;
return this == other2;
} | /* union find */ | https://github.com/plantuml/plantuml-core/blob/237443772415621f188204ee61201e0d6017015f/plantuml-core/src/main/java/h/ST_subtree_t.java#L15-L19 | 237443772415621f188204ee61201e0d6017015f |
plantuml-core | github_2023 | plantuml | java | UmlSource.getDiagramType | public DiagramType getDiagramType() {
return DiagramType.getTypeFromArobaseStart(source.get(0).getString());
} | /**
* Retrieve the type of the diagram. This is based on the first line
* <code>@startfoo</code>.
*
* @return the type of the diagram.
*/ | https://github.com/plantuml/plantuml-core/blob/237443772415621f188204ee61201e0d6017015f/plantuml-core/src/main/java/net/sourceforge/plantuml/core/UmlSource.java#L111-L113 | 237443772415621f188204ee61201e0d6017015f |
plantuml-core | github_2023 | plantuml | java | JsonObject.set | public JsonObject set(String name, double value) {
set(name, Json.value(value));
return this;
} | /**
* Sets the value of the member with the specified name to the JSON
* representation of the specified <code>double</code> value. If this object
* does not contain a member with this name, a new member is added at the end of
* the object. If this object contains multiple members with this name, only the
* last one is changed.
* <p>
* This method should <strong>only be used to modify existing objects</strong>.
* To fill a new object with members, the method <code>add(name, value)</code>
* should be preferred which is much faster (as it does not need to search for
* existing members).
* </p>
*
* @param name the name of the member to add
* @param value the value of the member to add
* @return the object itself, to enable method chaining
*/ | https://github.com/plantuml/plantuml-core/blob/237443772415621f188204ee61201e0d6017015f/plantuml-core/src/main/java/net/sourceforge/plantuml/json/JsonObject.java#L399-L402 | 237443772415621f188204ee61201e0d6017015f |
nammayatri | github_2023 | nammayatri | java | CropImageView.isShowProgressBar | public boolean isShowProgressBar() {
return mShowProgressBar;
} | /**
* if to show progress bar when image async loading/cropping is in progress.<br>
* default: true, disable to provide custom progress bar UI.
*/ | https://github.com/nammayatri/nammayatri/blob/aa2f5492eaf4a0ab14f3333444ffb78c89ad63c8/Frontend/android-native/mobility-common/src/main/java/in/juspay/mobility/common/cropImage/CropImageView.java#L541-L543 | aa2f5492eaf4a0ab14f3333444ffb78c89ad63c8 |
CodeGPT | github_2023 | carlrobertoh | java | IdentifyTraitsPersistence.getLines | protected Stream<String> getLines(Path file) throws IOException {
return Files.lines(file);
} | /* for testing purposes */ | https://github.com/carlrobertoh/CodeGPT/blob/93c711d5da8edb409e0da641a8bb6438fbda26d4/codegpt-telemetry/src/main/java/ee/carlrobert/codegpt/telemetry/core/service/segment/IdentifyTraitsPersistence.java#L75-L77 | 93c711d5da8edb409e0da641a8bb6438fbda26d4 |
Cleanroom | github_2023 | CleanroomMC | java | Capability.getName | public String getName() { return name; } | /**
* @return The unique name of this capability, typically this is
* the fully qualified class name for the target interface.
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/net/minecraftforge/common/capabilities/Capability.java#L89-L89 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
Cleanroom | github_2023 | CleanroomMC | java | Property.isBooleanValue | public boolean isBooleanValue()
{
return ("true".equals(value.toLowerCase()) || "false".equals(value.toLowerCase()));
} | /**
* Checks if the current value held by this property is a valid boolean value.
*
* @return True if it is a boolean value
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/net/minecraftforge/common/config/Property.java#L884-L887 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
Cleanroom | github_2023 | CleanroomMC | java | AnimationStateMachine.load | @SideOnly(Side.CLIENT)
public static IAnimationStateMachine load(IResourceManager manager, ResourceLocation location, ImmutableMap<String, ITimeValue> customParameters)
{
try (IResource resource = manager.getResource(location))
{
ClipResolver clipResolver = new ClipResolver();
ParameterResolver parameterResolver = new ParameterResolver(customParameters);
Clips.CommonClipTypeAdapterFactory.INSTANCE.setClipResolver(clipResolver);
TimeValues.CommonTimeValueTypeAdapterFactory.INSTANCE.setValueResolver(parameterResolver);
AnimationStateMachine asm = asmGson.fromJson(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8), AnimationStateMachine.class);
clipResolver.asm = asm;
parameterResolver.asm = asm;
asm.initialize();
//String json = asmGson.toJson(asm);
//System.out.println(location + ": " + json);
return asm;
}
catch(IOException | JsonParseException e)
{
FMLLog.log.error("Exception loading Animation State Machine {}, skipping", location, e);
return missing;
}
finally
{
Clips.CommonClipTypeAdapterFactory.INSTANCE.setClipResolver(null);
TimeValues.CommonTimeValueTypeAdapterFactory.INSTANCE.setValueResolver(null);
}
} | /**
* Load a new instance if AnimationStateMachine at specified location, with specified custom parameters.
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/net/minecraftforge/common/model/animation/AnimationStateMachine.java#L216-L243 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
Cleanroom | github_2023 | CleanroomMC | java | GameRegistry.getFuelValue | @Deprecated
public static int getFuelValue(@Nonnull ItemStack itemStack)
{
return ForgeEventFactory.getItemBurnTime(itemStack);
} | /**
* @deprecated use {@link ForgeEventFactory#getItemBurnTime(ItemStack)}
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/net/minecraftforge/fml/common/registry/GameRegistry.java#L254-L258 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
Cleanroom | github_2023 | CleanroomMC | java | TextureLoader.get2Fold | private static int get2Fold(int fold) {
int ret = 2;
while (ret < fold) {
ret *= 2;
}
return ret;
} | /**
* Get the closest greater power of 2 to the fold number
*
* @param fold The target number
* @return The power of 2
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/org/lwjgl/test/spaceinvaders/TextureLoader.java#L186-L192 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
Cleanroom | github_2023 | CleanroomMC | java | Matrix4f.transpose | public Matrix transpose() {
return transpose(this);
} | /**
* Transpose this matrix
*
* @return this
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/org/lwjgl/util/vector/Matrix4f.java#L431-L433 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
Cleanroom | github_2023 | CleanroomMC | java | Vector2f.getY | public final float getY() {
return y;
} | /**
* @return y
*/ | https://github.com/CleanroomMC/Cleanroom/blob/fa5a17bf6c3620f4cb30932efb916349d8a96715/src/main/java/org/lwjgl/util/vector/Vector2f.java#L253-L255 | fa5a17bf6c3620f4cb30932efb916349d8a96715 |
campus | github_2023 | oddfar | java | SwaggerConfig.createRestApi | @Bean
public Docket createRestApi() {
return new Docket(DocumentationType.OAS_30)
// 是否启用Swagger
.enable(enabled)
// 用来创建该API的基本信息,展示在文档的页面中(自定义展示的信息)
.apiInfo(apiInfo())
// 设置哪些接口暴露给Swagger展示
.select()
// 扫描所有有注解的api,用这种方式更灵活
.apis(RequestHandlerSelectors.withMethodAnnotation(Operation.class))
// 扫描指定包中的swagger注解
// .apis(RequestHandlerSelectors.basePackage("com.ruoyi.project.tool.swagger"))
// 扫描所有 .apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build()
/* 设置安全模式,swagger可以设置访问token */
.securitySchemes(securitySchemes())
.securityContexts(securityContexts());
} | /**
* 创建API
*/ | https://github.com/oddfar/campus/blob/b1ef73868f9003f932087957cd4ef6cd4b63c1e8/campus-admin/src/main/java/com/oddfar/campus/admin/config/SwaggerConfig.java#L43-L62 | b1ef73868f9003f932087957cd4ef6cd4b63c1e8 |
campus | github_2023 | oddfar | java | Convert.toDouble | public static Double toDouble(Object value) {
return toDouble(value, null);
} | /**
* 转换为double<br>
* 如果给定的值为空,或者转换失败,返回默认值<code>null</code><br>
* 转换失败不会报错
*
* @param value 被转换的值
* @return 结果
*/ | https://github.com/oddfar/campus/blob/b1ef73868f9003f932087957cd4ef6cd4b63c1e8/campus-common/src/main/java/com/oddfar/campus/common/core/text/Convert.java#L411-L413 | b1ef73868f9003f932087957cd4ef6cd4b63c1e8 |
campus | github_2023 | oddfar | java | StringUtils.ishttp | public static boolean ishttp(String link) {
return StringUtils.startsWithAny(link, Constants.HTTP, Constants.HTTPS);
} | /**
* 是否为http(s)://开头
*
* @param link 链接
* @return 结果
*/ | https://github.com/oddfar/campus/blob/b1ef73868f9003f932087957cd4ef6cd4b63c1e8/campus-common/src/main/java/com/oddfar/campus/common/utils/StringUtils.java#L242-L244 | b1ef73868f9003f932087957cd4ef6cd4b63c1e8 |
campus | github_2023 | oddfar | java | MyWebMvcConfig.addResourceHandlers | @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
/** 本地文件上传路径 */
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**")
.addResourceLocations("file:" + ConfigExpander.getFileProfile() + "/");
/** swagger配置 */
registry.addResourceHandler("/swagger-ui/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
} | /**
* 映射到访问本地的资源文件
*
* @param registry
*/ | https://github.com/oddfar/campus/blob/b1ef73868f9003f932087957cd4ef6cd4b63c1e8/campus-framework/src/main/java/com/oddfar/campus/framework/config/MyWebMvcConfig.java#L32-L42 | b1ef73868f9003f932087957cd4ef6cd4b63c1e8 |
cool-request | github_2023 | houxinlin | java | JavaCodeEngine.execRequest | public boolean execRequest(Request request, String code) throws Exception {
if (StringUtils.isEmpty(code)) {
return true;
}
InMemoryJavaCompiler memoryJavaCompiler = javac(prependPublicToCoolRequestScript(REQUEST_REGEX, code), REQUEST_CLASS);
Class<?> requestClass = memoryJavaCompiler.getClassloader().loadClass(REQUEST_CLASS);
return invokeRequest(requestClass, request);
} | /**
* 执行前置脚本
*
* @return 如果返回false,则表示被脚本拒绝执行
*/ | https://github.com/houxinlin/cool-request/blob/177c5f7de26291eacc0b28c5ade7e470886b0348/src/main/java/com/cool/request/components/http/script/JavaCodeEngine.java#L71-L78 | 177c5f7de26291eacc0b28c5ade7e470886b0348 |
cool-request | github_2023 | houxinlin | java | Schema.set$vocabulary | public void set$vocabulary(String $vocabulary) {
this.$vocabulary = $vocabulary;
} | /**
*
* @since 2.2.8 (OpenAPI 3.1.0)
*/ | https://github.com/houxinlin/cool-request/blob/177c5f7de26291eacc0b28c5ade7e470886b0348/src/main/java/com/cool/request/lib/openapi/media/Schema.java#L521-L523 | 177c5f7de26291eacc0b28c5ade7e470886b0348 |
cool-request | github_2023 | houxinlin | java | Schema.getXml | public XML getXml() {
return xml;
} | /**
* returns the xml property from a Schema instance.
*
* @return XML xml
**/ | https://github.com/houxinlin/cool-request/blob/177c5f7de26291eacc0b28c5ade7e470886b0348/src/main/java/com/cool/request/lib/openapi/media/Schema.java#L1466-L1468 | 177c5f7de26291eacc0b28c5ade7e470886b0348 |
cool-request | github_2023 | houxinlin | java | Assert.isNull | public static void isNull( Object object, String message) {
if (object != null) {
throw new IllegalArgumentException(message);
}
} | /**
* Assert that an object is {@code null}.
* <pre class="code">Assert.isNull(value, "The value must be null");</pre>
* @param object the object to check
* @param message the exception message to use if the assertion fails
* @throws IllegalArgumentException if the object is not {@code null}
*/ | https://github.com/houxinlin/cool-request/blob/177c5f7de26291eacc0b28c5ade7e470886b0348/src/main/java/com/cool/request/utils/Assert.java#L163-L167 | 177c5f7de26291eacc0b28c5ade7e470886b0348 |
Gshine-Server | github_2023 | AngelicPretty | java | AttackResultOuterClass.AttackResult.getUnk3300BALCPHMFIBC | @java.lang.Override
public int getUnk3300BALCPHMFIBC() {
return unk3300BALCPHMFIBC_;
} | /**
* <code>uint32 Unk3300_BALCPHMFIBC = 1940;</code>
* @return The unk3300BALCPHMFIBC.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/AttackResultOuterClass.java#L521-L524 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | AttackResultOuterClass.AttackResult.getTargetType | @java.lang.Override
public int getTargetType() {
return targetType_;
} | /**
* <code>uint32 targetType = 346;</code>
* @return The targetType.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/AttackResultOuterClass.java#L624-L627 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ModifierPropertyOuterClass.ModifierProperty.getKey | @java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getKey() {
return key_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : key_;
} | /**
* <code>.AbilityString key = 7;</code>
* @return The key.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ModifierPropertyOuterClass.java#L151-L154 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ModifierProperty.Builder.getKey | public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getKey() {
if (keyBuilder_ == null) {
return key_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
} | /**
* <code>.AbilityString key = 7;</code>
* @return The key.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ModifierPropertyOuterClass.java#L522-L528 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | RoutePoint.Builder.setPosition | public Builder setPosition(
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
if (positionBuilder_ == null) {
position_ = builderForValue.build();
onChanged();
} else {
positionBuilder_.setMessage(builderForValue.build());
}
return this;
} | /**
* <code>.Vector position = 1;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/RoutePointOuterClass.java#L1124-L1134 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | EvtCombatSteerMotionInfo.Builder.clearFaceDir | public Builder clearFaceDir() {
if (faceDirBuilder_ == null) {
faceDir_ = null;
onChanged();
} else {
faceDir_ = null;
faceDirBuilder_ = null;
}
return this;
} | /**
* <code>.Vector face_dir = 5;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/EvtCombatSteerMotionInfoOuterClass.java#L746-L756 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | TreasureMapRegionInfo.Builder.getRegionCenterPosOrBuilder | public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRegionCenterPosOrBuilder() {
if (regionCenterPosBuilder_ != null) {
return regionCenterPosBuilder_.getMessageOrBuilder();
} else {
return regionCenterPos_ == null ?
emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : regionCenterPos_;
}
} | /**
* <code>.Vector regionCenterPos = 13;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/TreasureMapRegionInfoOuterClass.java#L1123-L1130 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | DoGachaRspOuterClass.DoGachaRsp.getWishProgress | @java.lang.Override
public int getWishProgress() {
return wishProgress_;
} | /**
* <code>uint32 wishProgress = 12;</code>
* @return The wishProgress.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/DoGachaRspOuterClass.java#L566-L569 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.hasIntVal | @java.lang.Override
public boolean hasIntVal() {
return mMJOJNNFGCNCase_ == 2;
} | /**
* <code>int32 int_val = 2;</code>
* @return Whether the intVal field is set.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoOuterClass.java#L218-L221 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | DungeonSettleExhibitionInfo.Builder.getCardList | public emu.grasscutter.net.proto.ExhibitionDisplayInfoOuterClass.ExhibitionDisplayInfo getCardList(int index) {
if (cardListBuilder_ == null) {
return cardList_.get(index);
} else {
return cardListBuilder_.getMessage(index);
}
} | /**
* <code>repeated .ExhibitionDisplayInfo cardList = 2;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/DungeonSettleExhibitionInfoOuterClass.java#L637-L643 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ResinChangeNotifyOuterClass.ResinChangeNotify.getNextAddTimestamp | @java.lang.Override
public int getNextAddTimestamp() {
return nextAddTimestamp_;
} | /**
* <code>uint32 nextAddTimestamp = 4;</code>
* @return The nextAddTimestamp.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ResinChangeNotifyOuterClass.java#L279-L282 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ShowEquip.Builder.getWeaponBuilder | public emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder getWeaponBuilder() {
return getWeaponFieldBuilder().getBuilder();
} | /**
* <code>.Weapon weapon = 3;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ShowEquipOuterClass.java#L943-L945 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | SceneTeamAvatar.Builder.getWeaponAbilityInfo | public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo() {
if (weaponAbilityInfoBuilder_ == null) {
return weaponAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_;
} else {
return weaponAbilityInfoBuilder_.getMessage();
}
} | /**
* <code>.AbilitySyncStateInfo weaponAbilityInfo = 6;</code>
* @return The weaponAbilityInfo.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/SceneTeamAvatarOuterClass.java#L1906-L1912 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | DetectorData.Builder.clearMaterialId | public Builder clearMaterialId() {
materialId_ = 0;
onChanged();
return this;
} | /**
* <code>uint32 materialId = 10;</code>
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/DetectorDataOuterClass.java#L908-L913 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | RoguelikeDungeonActivityDetailInfoOuterClass.RoguelikeDungeonActivityDetailInfo.getRuneListList | @java.lang.Override
public java.util.List<java.lang.Integer>
getRuneListList() {
return runeList_;
} | /**
* <code>repeated uint32 rune_list = 3;</code>
* @return A list containing the runeList.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/RoguelikeDungeonActivityDetailInfoOuterClass.java#L364-L368 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | RoguelikeDungeonActivityDetailInfo.Builder.setContentCloseTime | public Builder setContentCloseTime(int value) {
contentCloseTime_ = value;
onChanged();
return this;
} | /**
* <code>uint32 content_close_time = 11;</code>
* @param value The contentCloseTime to set.
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/RoguelikeDungeonActivityDetailInfoOuterClass.java#L1291-L1296 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | TreasureSeelieActivityDetailInfo.Builder.getRegionDataListBuilder | public emu.grasscutter.net.proto.TreasureSeelieRegionDataOuterClass.TreasureSeelieRegionData.Builder getRegionDataListBuilder(
int index) {
return getRegionDataListFieldBuilder().getBuilder(index);
} | /**
* <code>repeated .TreasureSeelieRegionData region_data_list = 6;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/TreasureSeelieActivityDetailInfoOuterClass.java#L837-L840 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | BounceConjuringActivityDetailInfo.Builder.addChapterInfoListBuilder | public emu.grasscutter.net.proto.BounceConjuringChapterInfoOuterClass.BounceConjuringChapterInfo.Builder addChapterInfoListBuilder(
int index) {
return getChapterInfoListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.BounceConjuringChapterInfoOuterClass.BounceConjuringChapterInfo.getDefaultInstance());
} | /**
* <code>repeated .BounceConjuringChapterInfo chapter_info_list = 15;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/BounceConjuringActivityDetailInfoOuterClass.java#L841-L845 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | MEIDIANHEDD.Builder.addStageInfoList | public Builder addStageInfoList(
int index, emu.grasscutter.net.proto.OMNAAMAIBOHOuterClass.OMNAAMAIBOH.Builder builderForValue) {
if (stageInfoListBuilder_ == null) {
ensureStageInfoListIsMutable();
stageInfoList_.add(index, builderForValue.build());
onChanged();
} else {
stageInfoListBuilder_.addMessage(index, builderForValue.build());
}
return this;
} | /**
* <code>repeated .OMNAAMAIBOH stageInfoList = 12;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/MEIDIANHEDDOuterClass.java#L641-L651 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | SamLampInfoOuterClass.SamLampInfo.getProgress | @java.lang.Override
public int getProgress() {
return progress_;
} | /**
* <code>uint32 progress = 3;</code>
* @return The progress.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/SamLampInfoOuterClass.java#L255-L258 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | SumoStageData.Builder.setTeamList | public Builder setTeamList(
int index, emu.grasscutter.net.proto.SumoTeamDataOuterClass.SumoTeamData value) {
if (teamListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTeamListIsMutable();
teamList_.set(index, value);
onChanged();
} else {
teamListBuilder_.setMessage(index, value);
}
return this;
} | /**
* <code>repeated .SumoTeamData team_list = 1;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/SumoStageDataOuterClass.java#L782-L795 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | WinterCampInfo.Builder.setRaceInfoList | public Builder setRaceInfoList(
int index, emu.grasscutter.net.proto.WinterCampRaceStageInfoOuterClass.WinterCampRaceStageInfo.Builder builderForValue) {
if (raceInfoListBuilder_ == null) {
ensureRaceInfoListIsMutable();
raceInfoList_.set(index, builderForValue.build());
onChanged();
} else {
raceInfoListBuilder_.setMessage(index, builderForValue.build());
}
return this;
} | /**
* <code>repeated .WinterCampRaceStageInfo raceInfoList = 5;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/WinterCampInfoOuterClass.java#L1263-L1273 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | WinterCampInfo.Builder.getExploreInfo | public emu.grasscutter.net.proto.WinterCampStageInfoOuterClass.WinterCampStageInfo getExploreInfo() {
if (exploreInfoBuilder_ == null) {
return exploreInfo_ == null ? emu.grasscutter.net.proto.WinterCampStageInfoOuterClass.WinterCampStageInfo.getDefaultInstance() : exploreInfo_;
} else {
return exploreInfoBuilder_.getMessage();
}
} | /**
* <code>.WinterCampStageInfo exploreInfo = 1;</code>
* @return The exploreInfo.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/WinterCampInfoOuterClass.java#L1853-L1859 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | AsterActivityDetailInfoOuterClass.AsterActivityDetailInfo.getUnk3300KFDGFFPJGJC | @java.lang.Override
public int getUnk3300KFDGFFPJGJC() {
return unk3300KFDGFFPJGJC_;
} | /**
* <code>uint32 Unk3300_KFDGFFPJGJC = 4;</code>
* @return The unk3300KFDGFFPJGJC.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/AsterActivityDetailInfoOuterClass.java#L356-L359 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ItemAddHintNotify.Builder.setUnk3300KIOMJNHFMDE | public Builder setUnk3300KIOMJNHFMDE(boolean value) {
unk3300KIOMJNHFMDE_ = value;
onChanged();
return this;
} | /**
* <code>bool Unk3300_KIOMJNHFMDE = 11;</code>
* @param value The unk3300KIOMJNHFMDE to set.
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ItemAddHintNotifyOuterClass.java#L1800-L1805 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | OpActivityInfo.Builder.setIsHasChange | public Builder setIsHasChange(boolean value) {
isHasChange_ = value;
onChanged();
return this;
} | /**
* <code>bool isHasChange = 3;</code>
* @param value The isHasChange to set.
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/OpActivityInfoOuterClass.java#L845-L850 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | OpActivityInfo.Builder.getBonusInfoOrBuilder | @java.lang.Override
public emu.grasscutter.net.proto.BonusInfoOuterClass.BonusInfoOrBuilder getBonusInfoOrBuilder() {
if ((detailCase_ == 11) && (bonusInfoBuilder_ != null)) {
return bonusInfoBuilder_.getMessageOrBuilder();
} else {
if (detailCase_ == 11) {
return (emu.grasscutter.net.proto.BonusInfoOuterClass.BonusInfo) detail_;
}
return emu.grasscutter.net.proto.BonusInfoOuterClass.BonusInfo.getDefaultInstance();
}
} | /**
* <code>.BonusInfo bonus_info = 11;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/OpActivityInfoOuterClass.java#L970-L980 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | PlantFlowerInfo.Builder.setDayIndex | public Builder setDayIndex(int value) {
dayIndex_ = value;
onChanged();
return this;
} | /**
* <code>uint32 dayIndex = 8;</code>
* @param value The dayIndex to set.
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/PlantFlowerInfoOuterClass.java#L1036-L1041 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | WinterCampRecvItemNotify.Builder.getRecvItemData | public emu.grasscutter.net.proto.WinterCampRecvItemDataOuterClass.WinterCampRecvItemData getRecvItemData() {
if (recvItemDataBuilder_ == null) {
return recvItemData_ == null ? emu.grasscutter.net.proto.WinterCampRecvItemDataOuterClass.WinterCampRecvItemData.getDefaultInstance() : recvItemData_;
} else {
return recvItemDataBuilder_.getMessage();
}
} | /**
* <code>.WinterCampRecvItemData recvItemData = 5;</code>
* @return The recvItemData.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/WinterCampRecvItemNotifyOuterClass.java#L612-L618 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | GetAllMailRsp.Builder.setIsTruncated | public Builder setIsTruncated(boolean value) {
isTruncated_ = value;
onChanged();
return this;
} | /**
* <code>bool isTruncated = 8;</code>
* @param value The isTruncated to set.
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/GetAllMailRspOuterClass.java#L1084-L1089 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | HomeBlockArrangementInfo.Builder.addDeployFurniureListBuilder | public emu.grasscutter.net.proto.HomeFurnitureDataOuterClass.HomeFurnitureData.Builder addDeployFurniureListBuilder(
int index) {
return getDeployFurniureListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.HomeFurnitureDataOuterClass.HomeFurnitureData.getDefaultInstance());
} | /**
* <code>repeated .HomeFurnitureData deployFurniureList = 15;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/HomeBlockArrangementInfoOuterClass.java#L3508-L3512 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | PlayerWidgetInfoOuterClass.PlayerWidgetInfo.getUid | @java.lang.Override
public int getUid() {
return uid_;
} | /**
* <code>uint32 uid = 10;</code>
* @return The uid.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/PlayerWidgetInfoOuterClass.java#L193-L196 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | VintageBoothUsedItemData.Builder.clearIsOpen | public Builder clearIsOpen() {
isOpen_ = false;
onChanged();
return this;
} | /**
* <code>bool isOpen = 2;</code>
* @return This builder for chaining.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/VintageBoothUsedItemDataOuterClass.java#L517-L522 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ActivityInfoOuterClass.ActivityInfo.getLuminanceStoneChallengeInfoOrBuilder | @java.lang.Override
public emu.grasscutter.net.proto.LuminanceStoneChallengeInfoOuterClass.LuminanceStoneChallengeInfoOrBuilder getLuminanceStoneChallengeInfoOrBuilder() {
if (iKJIPGGMNBKCase_ == 142) {
return (emu.grasscutter.net.proto.LuminanceStoneChallengeInfoOuterClass.LuminanceStoneChallengeInfo) iKJIPGGMNBK_;
}
return emu.grasscutter.net.proto.LuminanceStoneChallengeInfoOuterClass.LuminanceStoneChallengeInfo.getDefaultInstance();
} | /**
* <code>.LuminanceStoneChallengeInfo luminance_stone_challenge_info = 142;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ActivityInfoOuterClass.java#L4751-L4757 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | ActivityInfo.Builder.mergeIrodoriInfo | public Builder mergeIrodoriInfo(emu.grasscutter.net.proto.IrodoriInfoOuterClass.IrodoriInfo value) {
if (irodoriInfoBuilder_ == null) {
if (iKJIPGGMNBKCase_ == 1014 &&
iKJIPGGMNBK_ != emu.grasscutter.net.proto.IrodoriInfoOuterClass.IrodoriInfo.getDefaultInstance()) {
iKJIPGGMNBK_ = emu.grasscutter.net.proto.IrodoriInfoOuterClass.IrodoriInfo.newBuilder((emu.grasscutter.net.proto.IrodoriInfoOuterClass.IrodoriInfo) iKJIPGGMNBK_)
.mergeFrom(value).buildPartial();
} else {
iKJIPGGMNBK_ = value;
}
onChanged();
} else {
if (iKJIPGGMNBKCase_ == 1014) {
irodoriInfoBuilder_.mergeFrom(value);
}
irodoriInfoBuilder_.setMessage(value);
}
iKJIPGGMNBKCase_ = 1014;
return this;
} | /**
* <code>.IrodoriInfo irodori_info = 1014;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/ActivityInfoOuterClass.java#L15674-L15692 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | FungusTrainingProgressDetailOuterClass.FungusTrainingProgressDetail.getMonsterPoolPreviewList | @java.lang.Override
public emu.grasscutter.net.proto.FungusTrainingPoolPreviewDetailOuterClass.FungusTrainingPoolPreviewDetail getMonsterPoolPreviewList(int index) {
return monsterPoolPreviewList_.get(index);
} | /**
* <code>repeated .FungusTrainingPoolPreviewDetail monsterPoolPreviewList = 9;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/FungusTrainingProgressDetailOuterClass.java#L384-L387 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | EffigyActivityDetailInfo.Builder.addDailyInfoList | public Builder addDailyInfoList(
int index, emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo value) {
if (dailyInfoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDailyInfoListIsMutable();
dailyInfoList_.add(index, value);
onChanged();
} else {
dailyInfoListBuilder_.addMessage(index, value);
}
return this;
} | /**
* <code>repeated .EffigyDailyInfo daily_info_list = 4;</code>
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/EffigyActivityDetailInfoOuterClass.java#L944-L957 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | HomeLimitedShopBuyGoodsRspOuterClass.HomeLimitedShopBuyGoodsRsp.getBuyCount | @java.lang.Override
public int getBuyCount() {
return buyCount_;
} | /**
* <code>uint32 buyCount = 11;</code>
* @return The buyCount.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/HomeLimitedShopBuyGoodsRspOuterClass.java#L389-L392 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Gshine-Server | github_2023 | AngelicPretty | java | CrystalLinkDungeonSettleInfoOuterClass.CrystalLinkDungeonSettleInfo.getDifficultyId | @java.lang.Override
public int getDifficultyId() {
return difficultyId_;
} | /**
* <code>uint32 difficulty_id = 3;</code>
* @return The difficultyId.
*/ | https://github.com/AngelicPretty/Gshine-Server/blob/bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755/src/generated/main/java/emu/grasscutter/net/proto/CrystalLinkDungeonSettleInfoOuterClass.java#L203-L206 | bd9801c5e1d4f0d3a0d6cade7cad5f97eb71d755 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.