hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
2cc1ae789c19adcaa54e111f2e61620f144ba6b6 | 1,040 | package io.quarkus.hibernate.orm.sql_load_script;
import org.hamcrest.Matchers;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.hibernate.orm.MyEntity;
import io... | 38.518519 | 110 | 0.727885 |
9213754ab1b812b453033bae0c967eb7dcf8b992 | 5,178 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 30.821429 | 233 | 0.693511 |
9461051526ba8d11a44e5c094df4789cd4ff0aa3 | 588 | package march;
import java.util.*;
public class Offer48 {
public int lengthOfLongestSubstring(String s) {
char[] ch = new char[26];
int res = 0;
int len = 0;
for (int i = 0; i < s.length(); i++) {
for (int j = 0; j < len; j++) {
if(ch[j] == s.charAt(i)) ... | 24.5 | 59 | 0.389456 |
14efa40b3d8cafafbe1e6d0015ac0848da4a08a7 | 486 | package tue.shop4cf.integration.ngsild.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import java.util.Map;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkPa... | 21.130435 | 53 | 0.783951 |
437fc76967e77a06ad6ed5d8ead47911474d1241 | 2,445 | /*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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 requ... | 45.277778 | 94 | 0.622086 |
b676c7d1a5ffba9f29706159290cb7844caf348a | 5,994 | package deltix.qsrv.hf.tickdb.comm.server.aeron.download.multicast;
import deltix.qsrv.hf.pub.ChannelPerformance;
import deltix.qsrv.hf.pub.RawMessage;
import deltix.qsrv.hf.tickdb.comm.TDBProtocol;
import deltix.qsrv.hf.tickdb.comm.server.DownloadHandler;
import deltix.qsrv.hf.tickdb.comm.server.aeron.AeronThreadTrac... | 47.952 | 328 | 0.697531 |
cc895a3139ccf5b7c7c67075a2c679fc7cc5d464 | 9,068 | /*
* COPYLEFT by 'Open Commons' & Park Jun-Hong All Rights Reserved.
*
* This file is generated under this project, "SystemPropertiesView".
*
* Date : 2012. 10. 2. 오후 6:04:19
*
* Author: Park_Jun_Hong_(jhpark_at_ymtech_dot_co_dot_kr)
*
*/
package open.eclipse.plugins.apps.command.shell;
import java.util.M... | 35.700787 | 119 | 0.625386 |
26d13ca253f503236b01ccdc541689ea3c9fd328 | 319 | package cn.stylefeng.roses.system.modular.service;
import cn.stylefeng.roses.system.modular.entity.BizMailInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 站内信 服务类
* </p>
*
* @author Hyer
* @since 2019-11-26
*/
public interface BizMailInfoService extends IService<BizMailInfo> {
}
| 18.764706 | 67 | 0.742947 |
01bce573a9080c04001a86f5823ae2c90e287115 | 560 | package creational.builder.meal.after.director;
import creational.builder.meal.after.builders.entities.FastFoodMealBuilder;
import creational.builder.meal.after.entities.FastFoodMeal;
public class MealDirector {
private FastFoodMealBuilder builder;
public MealDirector(FastFoodMealBuilder builder) {
this.builder... | 21.538462 | 75 | 0.771429 |
b0f32fa7342fe80feca87cbdf7e4097ee8b4a850 | 1,124 | package com.mysiteforme.admin.service;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.mysiteforme.admin.entity.BlogTags;
import java.util.List;
import java.util.Map;
/**
* <p>
* 博客标签 服务类
* </p>
*
* @author wangl
* @since 2018-01-17
*/
public interfac... | 17.5625 | 80 | 0.61032 |
d5071c6ce15e0d93e4159351c93307bea07dc182 | 415 | package onethreeseven.trajsuite.osm.model.tag;
/**
* For Shops that offer repair of goods (e.g. computers).
* @author Luke Bermingham
*/
public class Repair extends OsmTag {
public Repair(String value) {
super(value);
}
@Override
Specificity getSpecificityImpl() {
return Specificity... | 18.863636 | 57 | 0.638554 |
e388499fba90daf5426340af888c9b80b78641e4 | 6,208 | package com.github.fmjsjx.libnetty.http.server.middleware;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Type;
import java.util.Objects;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurren... | 33.021277 | 134 | 0.613563 |
6aa2b134d347d7bc4bfe6c8f06db1999ff2cc22a | 75 | package com.slang.backend.vm.core;
public class MemoryDedicated {
}
| 12.5 | 35 | 0.72 |
134dc31ed605a59deb36cb827fba09e7a9f4cac3 | 1,727 | /*
* 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 ... | 39.25 | 87 | 0.726694 |
5b13df76e7c0ceb8c853e40eb91a04eb61f32a9c | 2,519 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 44.192982 | 124 | 0.779277 |
4c60a682276bcfd3f89694d210d3f1b5bed11d04 | 1,722 | package org.cucina.engine.definition;
import org.cucina.engine.ExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Collection;
/**
* <code>Decision</code>s are states that exit through one of the configured
* list of {@link Transition Transitions} based on the
* {@link Che... | 24.253521 | 94 | 0.723577 |
03b00652aa2572a241c9e1db7a37f858fea7e20a | 3,141 | package com.wxb.mall.product.app;
import com.wxb.common.utils.PageUtils;
import com.wxb.common.utils.R;
import com.wxb.common.valid.AddGroup;
import com.wxb.common.valid.UpdateGroup;
import com.wxb.common.valid.UpdateStatusGroup;
import com.wxb.mall.product.entity.BrandEntity;
import com.wxb.mall.product.service.Brand... | 25.330645 | 105 | 0.618911 |
02f543b86197f36afdb08da88e1e6e2d7a84b88c | 2,321 | package org.iguanatool.search.evolve.mutation;
import org.iguanatool.search.randomnumbergenerator.RandomNumberGenerator;
import org.iguanatool.search.solution.NumericalSolution;
import org.iguanatool.search.solution.NumericalSolutionType;
/**
* User: phil
* Date: 14-Feb-2006
* Time: 10:55:09
*/
public ... | 35.166667 | 93 | 0.64972 |
9e0dd55a73345059945d773e7e906accfcd8bc6b | 7,871 | package com.lyhome.ETNews.fragment;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import an... | 33.926724 | 192 | 0.588616 |
d739f841a86ef5da17d1ff72c52cc39f826e8869 | 764 | /**
*/
package org.sculptor.sculptormetamodel.impl;
import org.eclipse.emf.ecore.EClass;
import org.sculptor.sculptormetamodel.Parameter;
import org.sculptor.sculptormetamodel.SculptormetamodelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Parameter</b></em>'.
* <!-- end-u... | 20.105263 | 86 | 0.667539 |
4c2562e27b10bd82ecdea3016eb030e35750a375 | 472 | package org.apache.http.client;
import org.apache.http.HttpHost;
import org.apache.http.auth.AuthScheme;
public interface AuthCache {
void put(HttpHost paramHttpHost, AuthScheme paramAuthScheme);
AuthScheme get(HttpHost paramHttpHost);
void remove(HttpHost paramHttpHost);
void clear();
}
/* Locatio... | 23.6 | 91 | 0.716102 |
83632d0571b441897198b90ad3e1f528ba0172a4 | 633 | package fred.angel.com.mgank.component;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
/**
* @author chenqiang
*/
public class ContactDataSource impleme... | 16.230769 | 81 | 0.725118 |
7b3880f88e94e615fafc08d48d27d1927833ad59 | 1,116 | package me.zhujiajie.exam;
public class updataInfo {
int versionCode;
float versionName;
String updateContent;
String apkURL;
public int getVersionCode() {
return versionCode;
}
public void setVersionCode(int versionCode) {
this.versionCode = versionCode;
}
publi... | 21.461538 | 60 | 0.577061 |
962d92a27d66e857f7b0377d915996f5b6f63cc6 | 9,063 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 51.788571 | 147 | 0.718305 |
f72f27e447383e65620c4a2e54a1f5ffe51df66d | 1,731 | package com.winson.spring.utils;
import com.winson.spring.overview.domain.User;
import org.springframework.util.ReflectionUtils;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
* @author winson
* @date 2021/10/9
**/
public class ReflectionMethodUtilsDemo {
public static void main(String[... | 33.941176 | 103 | 0.618718 |
54f33fec0019dca3cac45d3af4635535df16ecb8 | 1,198 | package com.dev.crm.core.dto;
import java.io.Serializable;
public class DatosOnuInstalacionResultViewModel implements Serializable {
/**
*
*/
private static final long serialVersionUID = -192569864502908955L;
private String macDescripcion;
private String snDescripcion;
private String winUser;
pri... | 18.151515 | 73 | 0.758765 |
577b3eee0685f0be155e9d2436a96728d8d886c7 | 900 | package me.hvkcoder.spring_security.controller;
import me.hvkcoder.spring_security.business.UserInfoService;
import me.hvkcoder.spring_security.domain.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web... | 22.5 | 64 | 0.742222 |
dc60e1a23822fa733e6ccbda64f730ded9617238 | 1,776 | /*
* Copyright 2018 ThoughtWorks, 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 agr... | 35.52 | 125 | 0.731982 |
fbdc8bd82ce62d80a6a2f389e3769e81cb5d376c | 1,306 | package potionstudios.aloneandtogether;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
... | 54.416667 | 218 | 0.804747 |
01eb1cfd5fd2f05505f7ef4ae7dd0870401c154e | 2,040 | package com.company;
/*
* Dit programma is geschreven als oeventoets in week 4 voor het vak "Programming"
* het doel is om het "Plof" spel te simuleeren dat door kinderen vaak gespeeld wordt.
* @Author Dylan Piera
*/
import java.util.InputMismatchException;
import java.util.Scanner;
public class Main {
priv... | 30.909091 | 116 | 0.563235 |
14aa2edc4d2bc507d84b4647d56ec4f383c4a82c | 1,767 | package randomizers.gameplay.filters.rules;
import java.util.Random;
import org.jdom2.Element;
import com.google.common.collect.ImmutableSet;
/*
* Randomly breaks a repairable object.
*
* Original state --> New State
* Broken --> Broken = OK
* Not Broken --> Not Broken = OK
* Broken --> Not Broken = OK
* No... | 38.413043 | 131 | 0.757782 |
a1019d18ce5e1d78fe53f5899fbb8c4001b56240 | 303 | package com.qdw.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author qdw
* @since 2020-05-30
*/
@RestController
@RequestMapping("/tag")
public class TagController {
}
| 13.772727 | 62 | 0.716172 |
ee43fbb982d50b24340be7059e50c01c3a475e49 | 1,134 | package com.szczygiel.bibtex;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.List;
import static org.testng.Assert.assertEquals;
/**
* Tests for {@link Strings}.
*/
public class StringsTest {
/**
* {@link SingletonParser} instance.
*/
private Sing... | 23.625 | 80 | 0.57672 |
835d64835c4116974fd62623446388ba5ea6b31e | 2,685 | package com.exercise.mysys.web;
import com.exercise.mysys.dao.GoodRepository;
import com.exercise.mysys.dao.ManufacturePlanRepository;
import com.exercise.mysys.domain.Good;
import com.exercise.mysys.domain.ManufacturePlan;
import com.exercise.mysys.domain.SysUser;
import org.springframework.beans.factory.annotation.A... | 33.5625 | 96 | 0.667784 |
dd7e2bb5ddba02ff9e89ef91c0f534ad540d5072 | 608 | package com.databaseproj.caltracker.view;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;
import com.databaseproj.caltracker.R;
public class HelpActivity extends Activity {
private TextView textView;
public void onCreate(Bundle savedInstan... | 26.434783 | 67 | 0.753289 |
491be15f72c4740b0861be6bcea23ecdfa2199e5 | 1,686 | package com.example.reservation.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.sprin... | 41.121951 | 101 | 0.734282 |
3c033adb0ccc404f2f827ead1e9dab4d64956fed | 1,996 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.blob.models;
import com.azure.core.implementation.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fa... | 38.384615 | 79 | 0.730461 |
36d551884a787fea1320fbd550125f53d9dc0bc5 | 877 | package examples.hibernate.domainmodel.identifiers.idgenerator.rowid;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.hibernate.annotations.RowId;
@Entity(name = "Product")
@RowId("ROWID")
public class Product {
@Id
private Long id;
@Column(name = "`nam... | 15.12069 | 69 | 0.688712 |
0b6485e3b087c6e08ec88d652501300b21b946f7 | 4,861 | package com.taobao.api.request;
import java.util.Date;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import com.taobao.api.TaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.response.RefundsReceiveGetResponse;
import com.taobao.api.ApiRuleEx... | 24.064356 | 205 | 0.709319 |
01cadb467dfc6edc957d9cac8faa7f3876e08614 | 1,862 | package com.enderio.core.common.util;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import net.minecraft.block.state.IBlockState;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAc... | 26.6 | 98 | 0.712675 |
9270c185896e3a0e2a0fedfcc05622c50ff45419 | 1,262 | package com.wxmp.backstage.common;
import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;
import com.wxmp.backstage.util.ExcptUtil;
/**
* @author : hermit
*/
public class I18n
{
public static final String FILED_RPEAT = getMessage("core.field.rpeat");
public static final String... | 31.55 | 112 | 0.716323 |
8150e921627d7da4d5740b7c21be481694d0a53c | 509 | package com.warner.factory.presenter.account;
import com.warner.factory.presenter.BaseContract;
/**
* Created by warner on 2018/1/15.
*/
public interface RegisterContract {
interface View extends BaseContract.View<Presenter> {
// 注册成功
void registerSuccess();
}
interface Presenter ex... | 19.576923 | 66 | 0.671906 |
1a7b06c51dc2787b2027d6a780c52c36e602c3f9 | 9,612 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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/LICE... | 53.4 | 149 | 0.616625 |
a3e3cd6397390bb2c446be84a11990d6fd6ab341 | 336 | package tr.edu.iztech.teamstech.user;
import tr.edu.iztech.teamstech.entity.EntityDirector;
public class Instructor extends Academician {
public Instructor(EntityDirector director, int id, String username, String email, String password, String[] teamIds) {
super(director, id, username, email, password, te... | 33.6 | 122 | 0.755952 |
65c7a4c374d74b8dfb7685f2748ea8e97eade0ba | 4,047 | /**
* Copyright (C) FuseSource, Inc.
* http://fusesource.com
*
* 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... | 41.295918 | 129 | 0.704225 |
7d2c5907d3afd735a18aaab6b55a3d8696216396 | 2,137 | package gui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import ij.IJ;
public class k_means {
private String K;
boolean cancelled;
public k_means()... | 30.528571 | 168 | 0.620028 |
21b8678ed1386c23084cd076bd8afcddca35977b | 1,692 | package io.snice.networking.netty;
import io.netty.channel.Channel;
import io.snice.buffer.Buffer;
import io.snice.buffer.Buffers;
import io.snice.networking.common.ConnectionId;
import io.snice.networking.common.Transport;
import java.net.InetSocketAddress;
import java.net.URI;
import java.util.Optional;
/**
* Enc... | 23.5 | 128 | 0.65721 |
cee43aad8385fe80c7219ca2d2d50c75113970ed | 205 | //
// Generated from archetype; please customize.
//
package org.sonar;
/**
* Example Java class.
*/
public class Helper
{
public void help(final Example example) {
example.show();
}
}
| 12.8125 | 46 | 0.629268 |
94b54c454e8b92e98b02a62ff9559583e96dbe4e | 4,055 | package com.redhat.uxl.webapp.web.rest;
import com.codahale.metrics.annotation.Timed;
import com.redhat.uxl.services.utils.SSLUtils;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
impor... | 34.956897 | 151 | 0.674229 |
fb15d9c1b862937cd23e882b80a79c0498508328 | 3,994 | package com.situjunjie.gulimall.member.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.situjunjie.common.constant.AuthServerConst;
import com.situjunjie.common.exception.BizCodeEnum;
import com.situjunjie.gulimall.member.exception.U... | 26.104575 | 148 | 0.670005 |
6da2c2d080537c71599c70014fb00b079cc36bd2 | 404 | package com.sunnysuperman.repository.db;
public class DBFunction {
private String function;
private Object[] params;
public DBFunction(String function, Object[] params) {
super();
this.function = function;
this.params = params;
}
public String getFunction() {
retur... | 19.238095 | 57 | 0.616337 |
deb34d90814c22080b0fce92954c8ce6a028ac22 | 1,793 | package com.intuit.quickfabric.schedulers.mappers;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;
import com.intuit.quickfabric.commons.vo.ClusterStatus;
import com.intuit.quickfabric.commons.vo.EMRClusterMetricsVO;
import java.sql.ResultSet;
import java.... | 34.480769 | 95 | 0.767987 |
2f512a7e2064016636f031ee9a8f2c3a5ad8d221 | 2,918 | import java.util.Scanner;
import java.io.*;
public class SimpleStateAwards {
private static String[] allStates = new String[]{"AK", "AL", "AR", "AS", "AZ", "CA",
"CO", "CT", "DC", "DE", "FL", "GA",
"GU", "HI", "IA... | 37.410256 | 103 | 0.43523 |
218caf1be3c50729070839fb2422de2be1b998f2 | 557 | package org.ray.cli;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
/**
* Arguments for command start.
*/
@Parameters(separators = "= ", commandDescription = "start ray daemons")
public class CommandStart {
@Parameter(names = "--head", description = "start the head node")
public... | 25.318182 | 82 | 0.70377 |
f8e7b9f47fc1f3a443dd8210058b42c2cebb445f | 250 | package io.webapp.generator.mapper;
import io.webapp.generator.entity.GeneratorConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author ADMIN
*/
public interface GeneratorConfigMapper extends BaseMapper<GeneratorConfig> {
}
| 20.833333 | 76 | 0.804 |
a2deb623674d110e537711cd33e6104c5b7b61a2 | 5,397 | /*
* Copyright (C) 2010-2020 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.gui.api.component;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QN... | 39.108696 | 120 | 0.7204 |
82ba8fa35386e5c43a70f9cab3ac0909230463d7 | 27,130 | /* ###
* IP: GHIDRA
*
* 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 writin... | 37.215364 | 94 | 0.756027 |
6716450abb668e7bd119f302c65c92b2548482e1 | 2,022 | /**
* Copyright 2021 Tianmian Tech. 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 ... | 28.083333 | 75 | 0.681503 |
9f6812119dbdcd0c63ff28aec81586dd8586635a | 1,032 | package xmilcode.mclib.util;
import xmilcode.gianttreemod.mob.stickman.StickManEntity;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.world.biome.BiomeGenBase;
public class EntityUtil
{
public static... | 29.485714 | 72 | 0.564922 |
61f34e4e3fc45f493c39e5d3549f04feb6e8dced | 91,198 | // 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... | 46.152834 | 209 | 0.656067 |
63f72f359e8983b035d790d0cb6419342bc0c80d | 668 | package springbootmvc.helloworld.controller;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; ... | 31.809524 | 73 | 0.676647 |
e6d3730636cc33e2edfead5e6f61268d98060d39 | 737 | package uk.gov.di.ipv.atp.dcs.controllers;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.function.server.Serv... | 33.5 | 71 | 0.772049 |
d6368c3d4afc1967057cf794ced63bce71e11b91 | 10,387 | //========================================================================
//Copyright 2004-2008 Mort Bay Consulting Pty. Ltd.
//------------------------------------------------------------------------
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance wit... | 29.095238 | 85 | 0.405507 |
553ed17e2128247b380083aa8e4b246c96d2a1a8 | 705 | package uk.gov.dvsa.mot.trade.api.response;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VehicleV2Response extends VehicleResponse {
private String motTestExpiryDate;
private List<MotTestV2Response> motTests;
public S... | 25.178571 | 64 | 0.737589 |
4320f9f06804b5076eefee8501b5bd5c34fba9fd | 7,617 | package org.superboot.global.wrapper;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xiaoleilu.hutool.crypto.asymmetric.KeyType;
import com.xiaoleilu.hutool.crypto.asymmetric.RSA;
import com.xiaoleilu.hutool.lang.Base64;
import com.xiaoleilu.... | 30.22619 | 101 | 0.567546 |
c2f0b64326ffda9550106aa4b3f043a03d1ff6c8 | 2,564 | /* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any la... | 32.05 | 90 | 0.699298 |
52683b2ee4f4f931c0ba758f2d576d5a4d179c64 | 996 | package org.smartrplace.logging.fendodb.impl;
import java.util.List;
import org.ogema.core.channelmanager.measurements.SampledValue;
interface FendoCache {
FendoInstanceCache getCache(String encodedRecordedData, String filename);
void clearCache();
/**
* One instance per FileObject
*/
static interface Fen... | 17.785714 | 84 | 0.699799 |
ebf7fdb0879e00462b8c3e9648dae845d7a898a5 | 1,051 | package indi.w4xj.juc.aqs.code;
import java.util.concurrent.Exchanger;
/**
* @Author lemon joker
* @Project java_upstream
* @Package indi.w4xj.juc.aqs.code
* @Classname ExchangerTest
* @Description TODO
* @Date 2021/3/28 19:45
* @Created by IntelliJ IDEA
*/
public class ExchangerTest {
static Exchanger<St... | 23.886364 | 75 | 0.525214 |
c4def15dee0fc3ab2b666ccf7cce54037ff98d70 | 4,789 | package com.mathiastechera.topic5;
import java.util.List;
import java.util.Optional;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springfra... | 33.48951 | 245 | 0.718939 |
7e7cbc871d3f77141f91086ef3356474260f1292 | 1,959 | package xyz.deszaras.grounds.command;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import com.google.common.collect.ImmutableMap;
import com.google.common.net.InetAddresses;
import java.net.InetAddress;
import java.time.Instant;
import java.t... | 30.609375 | 71 | 0.730985 |
98b03c99b2269eae799686cdc809a3970531be23 | 3,040 | package edu.washington.escience.myria.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.SequenceInputStream;
import java.io.Serializable;
import java.net.URI;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;... | 35.348837 | 120 | 0.725987 |
bc6845a5f47d346197640637931070d6f86c0b92 | 1,411 | package me.rina.turok.math;
import net.minecraft.client.Minecraft;
import net.minecraft.util.math.Vec3d;
import java.math.BigDecimal;
import java.math.RoundingMode;
/**
* @author SrRina
* @since 21/10/2020
*/
public class TurokMath {
public static int intClamp(int value, int minimum, int maximum) {
if... | 23.915254 | 84 | 0.564848 |
e20466fceae4c4818b1e064598802ffe178e05c7 | 858 | package com.example.android.camera2basic.util;
import com.example.android.camera2basic.interfaces.ISessionStateCallback;
import java.util.List;
public class ComboCaptureSessionStateCallback implements ISessionStateCallback {
private final List<ISessionStateCallback> mCaptureSessionStateCallbacks;
public Com... | 30.642857 | 103 | 0.750583 |
3f5d62aed648fc79bcc7c012b7b494408332686f | 1,086 | package com.lailatan.Portfolio.service;
import com.lailatan.Portfolio.model.Experiencia;
import com.lailatan.Portfolio.repository.ExperienciaRepository;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class Experienci... | 30.166667 | 91 | 0.767035 |
0e4573fee899e05dc1aed509738893f62d5e7efd | 102 | /**
* Marshalling for various Java specific types.
*/
package org.infinispan.protostream.types.java; | 25.5 | 47 | 0.764706 |
431d287458ae63039637439b74552c659938940c | 7,545 | package org.apache.manifoldcf.agents.output.mongodb;
import com.mongodb.MongoClient;
import org.apache.manifoldcf.agents.output.BaseOutputConnector;
import org.apache.manifoldcf.core.interfaces.*;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.List;
import... | 34.610092 | 136 | 0.649304 |
f8d9fff5156e769516ee011183212f3a943b2017 | 1,485 | package dynks.http;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static java.lang.String.valueOf;
import static dynks.Strings.recycle;
import static java.lang.System.currentTimeMillis;
/**
* Created by jszczepankiewicz on 2015-04-06.
*/
public class ETag {
... | 27.5 | 120 | 0.689562 |
0632a10fac8114cef00b3ab58b5d7f2a745a2dd0 | 1,794 | package com.ncoding.backend.enrollment.controller;
import com.ncoding.backend.enrollment.controller.response.EnrollmentResponse;
import com.ncoding.backend.enrollment.domain.Enrollment;
import com.ncoding.backend.enrollment.service.EnrollmentService;
import io.swagger.v3.oas.annotations.Operation;
import lombok.AllArg... | 43.756098 | 108 | 0.737458 |
19c3fae3bf068d597e56d3117fd0e3247cfbdb74 | 1,924 | package com.builtbroken.builder.mapper.builder;
import com.builtbroken.builder.converter.ConversionHandler;
import com.builtbroken.builder.mapper.anno.JsonMapping;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import javax.annotation.Nonnull;
import java.lang.reflect.Constructor;
import java.... | 35.62963 | 173 | 0.68763 |
a7926d1d0d3b2295d8acced83fdcb9e1324c95a9 | 617 | package com.jzg.demo.test1.controller;
import com.jzg.demo.test1.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @description: UserController
* @author: JZG
* @date: 2018/... | 20.566667 | 62 | 0.701783 |
6f4e174b47853a090e44ed5e8bc16be30ed48cb5 | 1,682 | /**
* @author Virtusa
*/
package org.bian.service;
import java.util.List;
import org.bian.dto.*;
public interface CustomerBehaviorModelsApiService {
RecordCustomerBehaviorModelSpecificationResponsePayload record(String crReferenceId, RecordCustomerBehaviorModelSpecificationRequestPayload request);
CustomerBeh... | 41.02439 | 163 | 0.874554 |
ce1031baea6ab5115d88398e8ac4853ddc896f53 | 755 | /**
* springBootDemo
* @author changle
* Create Time: 2019年4月8日
* Modified Time:
* Modified by:
* Version: 1.0
*/
package cn.springBootDemo.readConfig.configurationProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component... | 20.405405 | 76 | 0.709934 |
180e1a71dd464917c5f81144d37aff26685fa012 | 3,711 | package com.kubrick.jsbt.rpc.grpc.server.config;
import lombok.extern.slf4j.Slf4j;
import net.devh.boot.grpc.server.security.authentication.BasicGrpcAuthenticationReader;
import net.devh.boot.grpc.server.security.authentication.CompositeGrpcAuthenticationReader;
import net.devh.boot.grpc.server.security.authenticatio... | 36.742574 | 120 | 0.728106 |
9ab9b681898fabe055955f4edee654b50376aea9 | 657 | package org.edmcouncil.spec.ontoviewer.toolkit.handlers;
import openllet.owlapi.OpenlletReasonerFactory;
import org.edmcouncil.spec.ontoviewer.core.ontology.DetailsManager;
import org.springframework.stereotype.Service;
@Service
public class OntologyConsistencyChecker {
private final DetailsManager detailsManager;... | 31.285714 | 82 | 0.812785 |
829334a2694741bab3618a6e6bf5c7093e7c448c | 2,153 | package com.abdulkarimalbaik.dev.photogram.Fragments;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.BottomSheetDialogFragment;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.w... | 29.493151 | 107 | 0.744078 |
e1c0d20aa7d0152d885fd495321e14056a2edf22 | 4,959 | package indi.chen.hellojava.basic;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ConverEncoding {
public static void main(String[] args) throws Exception {
String srcDir = "D:\\WORKSPACE\\zjkjtS... | 38.44186 | 103 | 0.446663 |
884f544ff9aa375b8621cb3c5517d42ee2f25cb3 | 3,751 | /**
* 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... | 31.788136 | 111 | 0.600906 |
17933c0fb316375cfb83f35d2b30a17371490082 | 1,372 | package com.zhonghua.dileber.tools;
import android.app.Activity;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.NetworkInfo.State;
import com.zhonghua.dileber.app.SApplication;
public class HNetwork {
private ConnectivityManager con;
private static volatile HNetwork in... | 22.129032 | 105 | 0.672012 |
081c15cd8bede243261b648cdb944f62c59d5ec7 | 15,174 | package org.sunbird.portal.department.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;... | 52.14433 | 136 | 0.775801 |
859f98f3db1c769e4f6d8be3fd0bce10fe741417 | 10,640 | package org.rabix.engine.store.postgres.jdbi.impl;
import com.fasterxml.jackson.core.type.TypeReference;
import org.postgresql.util.PGobject;
import org.rabix.common.helper.JSONHelper;
import org.rabix.engine.store.model.JobRecord;
import org.rabix.engine.store.model.JobRecord.JobIdRootIdPair;
import org.rabix.engine.... | 56.595745 | 523 | 0.747932 |
24b47238408f136789f1912a6e8aacc0c0994184 | 3,429 | package com.lion.materialshowcaseview;
import android.graphics.Point;
import android.view.View;
public class ViewTarget implements Target {
public enum CentreArea {
LEFT_EDGE, LEFT, CENTER, RIGHT, RIGHT_EDGE
}
public enum RadiusCalcCategory {
DEFAULT, HALF_OF_WIDTH
}
private final View mView;
private f... | 23.648276 | 96 | 0.595509 |
9dc55414ceea2f07d425dffa4406becb10169bdc | 3,882 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2021 Evan Debenham
*
* 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 vers... | 32.621849 | 94 | 0.647347 |
c9aa8cf042a433e3abad3605f0dd14bb132bbdcf | 4,217 | /*
* 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 und... | 49.611765 | 192 | 0.766422 |
db3eb4b65264116d9dd18a5451f9bb03897ca892 | 297 | package org.yxs.devtool.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class DevtoolController {
@GetMapping("/")
String index() {
return "hello spring boot";
}
}
| 19.8 | 62 | 0.740741 |
30b9eef169f58fda4abee84cc1b09c3e672e0ff9 | 3,512 | package com.vtence.molecule.http;
import org.junit.Test;
import static java.util.Locale.CANADA_FRENCH;
import static java.util.Locale.ENGLISH;
import static java.util.Locale.FRENCH;
import static java.util.Locale.ITALY;
import static java.util.Locale.UK;
import static java.util.Locale.US;
import static org.hamcrest.M... | 38.593407 | 109 | 0.72779 |
0965e43ffe54d02acfeec2c94d7e79c226931246 | 528 | package daksh.userevents.storage.admins.constants;
/**
* Created by daksh on 22-May-16.
*/
public final class AdminDataConstants {
public static final String MODELS_PACKAGE = "daksh.userevents.storage.admins.model";
public static final String DB_NAME = "admins";
/**
* A random-but-valid ObjectId t... | 29.333333 | 88 | 0.731061 |
c52fe3090e0c1b7dc61bbde284152dbfa239fd3e | 4,243 | /**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created: Dec 01, 2007
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: VHAISWBUCKD
Description:
;; +-------------------------------------------------------------... | 31.902256 | 110 | 0.698798 |
059c3f421a60fd135ffe1bcb63e3d0c18daec9d8 | 1,012 | package net.mgsx.game.examples.openworld.components;
import com.badlogic.ashley.core.Component;
import com.badlogic.ashley.core.ComponentMapper;
import net.mgsx.game.examples.openworld.model.OpenWorldElement;
import net.mgsx.game.examples.openworld.systems.OpenWorldSpawnAnimalSystem.SpawnAnimalChunk;
public class Sp... | 25.948718 | 123 | 0.790514 |
6b96bd072dea5e380cd5b33f481487511d4ff482 | 2,834 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
// Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.0... | 35.873418 | 100 | 0.739944 |
a5763b36535ca620f8b9f45920a762b1f8e6bc29 | 6,517 | /*
* 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 ... | 28.964444 | 114 | 0.719963 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.