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 |
|---|---|---|---|---|---|
f9a846c994595fa79e65ec83c95edc32a73c18b6 | 559 | package ru.dpopkov.knownics.repository.jpa;
import org.springframework.context.annotation.Profile;
import org.springframework.data.repository.CrudRepository;
import ru.dpopkov.knownics.domain.question.Category;
import ru.dpopkov.knownics.domain.question.CategoryRepository;
import java.util.Optional;
@Profile(Profile... | 29.421053 | 100 | 0.808587 |
6c15678434593fb824aaf6376724bbbe8a6062d1 | 401 | package com.polyak.iconswitch;
public enum ThumbTypeEnum {
CIRCLE {
@Override
public ThumbTypeEnum thumbType() {
return CIRCLE;
}
},
SQUARE {
@Override
public ThumbTypeEnum thumbType() {
return SQUARE;
... | 22.277778 | 50 | 0.481297 |
c2d74ae452d7d513ec403a702a459a7a5adf8344 | 1,528 | package com.boshanlu.mobile.widget;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* Created by free2 on 16-7-17.
* grid layout 分割线
*/
public class MyGridDivider extends RecyclerView.ItemDecor... | 32.510638 | 128 | 0.657068 |
693f81ccfe9edcefac614c17e4ffa796f8d04735 | 1,084 | package com.trifork.hotruby.ast;
import com.trifork.hotruby.interp.CompileContext;
public class SymbolExpression extends Expression {
private Expression string;
public SymbolExpression(int line, String string) {
this (line, new ConstantStringExpression(string,
ConstantStringExpression.NONE));
}
public S... | 22.583333 | 69 | 0.723247 |
ed28540176aed5d16e184400862d967ef3a5a95f | 2,309 | package com.raccoonberus.chatbot.connector.telegram.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.raccoonberus.chatbot.connector.ChatMessage;
import java.util.Date;
import java.util.List;
/**
* @link https://core.telegram.org/bots/api#mes... | 19.905172 | 58 | 0.62408 |
3484335510a19f30e4bffdc211875455d3f40bf3 | 87 | /**
* @author zurun
* @date 2019/7/19 17:27:34
*/
package cn.zull.netty.mock.server; | 17.4 | 34 | 0.643678 |
229d00baca7fb61b7a59b72f9e42ff34ce2c4a95 | 2,109 | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package com.google.cloud.healthcare.fdamystudies.dao;
import com.google.cloud.healthcare.fdamystudies.model.ParticipantStudyEntit... | 35.745763 | 100 | 0.786155 |
47ab87efed844d7947db897f8745d20be8bcb6bb | 4,544 | package com.sajed.controller;
import com.sajed.constants.IConstants;
import com.sajed.models.Adult;
import com.sajed.models.Child;
import com.sajed.models.ResponseModel;
import com.sajed.service.AdultService;
import com.sajed.service.ChildService;
import lombok.extern.log4j.Log4j2;
import org.apache.logging.log4j.Leve... | 31.337931 | 104 | 0.633803 |
587d211b92046aaa9346945c51a885e202b327d5 | 216 | package com.yunsign.server;
/**
* @Auther: wei.yang.nj
* @Date: 2019-8-22 19:53
* @Description:
*/
public class Calculator {
public static String cal(String expression) {
return expression;
}
}
| 15.428571 | 49 | 0.638889 |
cf62f58c5d0f86a03c96f0c52c9e783d62ce7d7c | 1,120 | package com.rockwell.ramon.service;
import java.util.Collection;
import com.rockwell.ramon.entity.PageBean;
import com.rockwell.ramon.entity.SearchBean;
/**
* TODO Please enter the description of this type. This is mandatory!
* <p>
* @author Brian, 2018年10月26日 下午4:27:46
*/
public interface BaseService<T>
{
/*... | 14.358974 | 74 | 0.629464 |
7405c79915c5bbaf1b1dcb4f59af4e5986912bff | 4,621 | package com.yoonshop.shop.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.crypto.bcrypt.BCrypt;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org... | 28.006061 | 140 | 0.726899 |
fb348481d362d2fb50bfaa4630876f9bf37378b5 | 12,310 | /*
* 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 ... | 43.34507 | 104 | 0.728026 |
eaf219bb642707c7aa701b844e0ad3ae050ff0ad | 1,214 | package cn.xlr.erp.dao.impl;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Restrictions;
import cn.xlr.erp.dao.IOrderdetailDao;
import cn.xlr.erp.entity.Orderdetail;
/**
* 订单明细数据访问类
* @author Administrator
*
*/
public class OrderdetailDao ... | 28.904762 | 109 | 0.726524 |
48a0a030ff0bc9896c097e0878323d7afbc1cf66 | 1,247 | package com.wanari.infinitemarker.data;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.LatLngBounds;
import java.util.ArrayList;
import java.util.List;
public class PreparationData {
private List<LatLngWrapper> filteredLatLngs = new ArrayList<>();
private double so... | 25.44898 | 88 | 0.635124 |
f1aec5d98f51043a269e3da38168dffc718803b3 | 6,444 | /*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 31.90099 | 103 | 0.585506 |
fddb8d0d6037dd9cabf5a3c4f4fbf407bd1c478d | 247 | package com.youran.generate.pojo.vo;
import io.swagger.annotations.ApiModel;
/**
* 【代码模板】详情展示对象
*
* @author cbb
* @date 2019/10/24
*/
@ApiModel(description = "【代码模板】详情展示对象")
public class CodeTemplateShowVO extends CodeTemplateListVO {
}
| 14.529412 | 60 | 0.720648 |
9d6577e6a539ddc4cc32307aeae8b8e7c79f00b4 | 3,749 | package net.sourceforge.cardme.vcard.errors;
import net.sourceforge.cardme.vcard.ProblemSeverity;
import java.util.List;
/*
* Copyright 2011 George El-Haddad. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following cond... | 29.992 | 95 | 0.698586 |
2cf8154e2da67b752fd106a3ba60eda524f8a4ce | 3,862 |
/*
* Copyright (C) 2018 Archie L. Cobbs. All rights reserved.
*/
package org.dellroad.querystream.jpa;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Function;
import javax.persistence.EntityManager;
import javax.persistence.Fl... | 31.917355 | 112 | 0.698343 |
ca0426339a394378badaac3ed331652a0041af2d | 7,082 | /*
* This file was automatically generated by EvoSuite
* Mon Nov 14 13:47:41 GMT 2016
*/
package org.openecomp.camunda.bpmn.plugin.urnmap.resources;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAs... | 42.662651 | 149 | 0.693589 |
49ac9fb708c02028b0f025eed2150c924a596a7e | 65 | package sqlancer.tidb.ast;
public interface TiDBExpression {
}
| 10.833333 | 33 | 0.784615 |
f87f4ed5b3c95ba63d0147863f7d779f6d52c008 | 1,473 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 传递给金融网络业务扩展信息
*
* @author auto create
* @since 1.0, 2021-03-18 15:52:47
*/
public class FinExtParams extends AlipayObject {
private static final long serialVersionUID = 4693821... | 17.963415 | 68 | 0.667346 |
b410e0089ad9482c2962d55e99cbeb66ea323127 | 3,347 | package fr.univrouen.umlreverse.model.io.parser.util.clazz;
import fr.univrouen.umlreverse.model.diagram.clazz.view.IViewEntity;
import fr.univrouen.umlreverse.model.diagram.clazz.view.IViewRelation;
import fr.univrouen.umlreverse.model.diagram.clazz.view.ViewRelation;
import fr.univrouen.umlreverse.model.io.parser.ut... | 41.320988 | 106 | 0.571557 |
274995cb5c3623bb14ce6c63c9ce80d66b99aca1 | 1,205 | package grintsys.com.vanshop.entities.payment;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/**
* Created by alienware on 4/5/2017.
*/
public class InvoiceItem implements Serializable {
@SerializedName("doc_entry")
public int docEntry;
@SerializedName("document_numb... | 21.517857 | 58 | 0.681328 |
1d455a76337c3257d6f39dac90f24b68e2764c7c | 1,499 | package com.huijimuhe.luban_circle_demo.adapter;
import android.annotation.TargetApi;
import android.view.ViewGroup;
import com.huijimuhe.luban_circle_demo.adapter.base.AbstractRender;
import com.huijimuhe.luban_circle_demo.adapter.base.AbstractRenderAdapter;
import com.huijimuhe.luban_circle_demo.adapter.base.Abstr... | 33.311111 | 111 | 0.752502 |
f6edabab71699221fa3be432f5f366801bb14be9 | 2,888 | package net.minecraft.network.protocol.game;
import java.io.IOException;
import net.minecraft.core.IRegistry;
import net.minecraft.core.particles.Particle;
import net.minecraft.core.particles.ParticleParam;
import net.minecraft.core.particles.Particles;
import net.minecraft.network.PacketDataSerializer;
import net.min... | 35.219512 | 165 | 0.689751 |
80e65b9ab4252ffe2feefb8b0c92e2d9a9c6c607 | 4,578 | package com.maxsix.bingo.view.activity;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.maxsix.bingo.R;
import com.maxsix... | 33.416058 | 127 | 0.626038 |
1e313a07c16c481da17fee9908da0811b45e0a37 | 2,311 | package net.minecraft.advancements.criterion;
import com.google.gson.JsonObject;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.ConditionArrayParser;
import net.minecraft.loot.ConditionArraySerializer;
import net.minecraft.util.ResourceLocation;
p... | 39.169492 | 162 | 0.731718 |
516ea92dcd6cf5e8749fcf648ea10cda2187b80e | 1,131 | /*
* Copyright (c) 2020, Mulesoft, LLC. All rights reserved.
* Use of this source code is governed by a BSD 3-Clause License
* license that can be found in the LICENSE.txt file.
*/
package com.mulesoft.tools.migration.library.gateway.steps.policy.basicstructure;
import static com.mulesoft.tools.migration.library.g... | 33.264706 | 107 | 0.795756 |
3e5d702f311119520e35e34214bf5b496d3705e7 | 5,607 | package db.tables;
/**
*
* @author david
*/
public class Lineorder {
private int lo_orderkey;
private int lo_linenumber;
private int lo_custkey;
private int lo_partkey;
private int lo_suppkey;
private int lo_orderdate;
private String lo_orderpriority;
private String lo_shipprioriry;
... | 25.60274 | 87 | 0.600143 |
5cc078ed6edde0ea62e2b67ad47cd4f17f642080 | 7,293 | package com.bx.erp.action.config;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
imp... | 38.183246 | 214 | 0.765391 |
4b6e67f0987b88f0790ba5987c1d041151bd688a | 511 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg8inaction.sort;
import java.util.Arrays;
/**
*
* @author abani_000
*/
public class SortExample {
public static void... | 24.333333 | 79 | 0.643836 |
56e45465f355ee5b859219932dee6b17153d304f | 2,163 | package stonering.entity.job.action;
import stonering.entity.job.action.target.GenericBuildingAction;
import stonering.entity.job.designation.BuildingDesignation;
import stonering.entity.item.Item;
import stonering.entity.item.selectors.ItemSelector;
import stonering.enums.blocks.BlockTypesEnum;
import stonering.game.... | 41.596154 | 112 | 0.744337 |
3c63779090345ec6866cb1f3d1f4d9e0f7b45320 | 9,998 | /* ***********************************************************************
* _ _ _
* ( _ _ |
* _ _ _ _ | |
* ... | 30.574924 | 84 | 0.564313 |
26f0eb6db59677a7ebb56defcc806205da423323 | 22,511 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 37.208264 | 123 | 0.666252 |
6b9ac1d31160a7490446861c5197bdda502fb9e1 | 18,274 | /////////////////////////////////////////////////////////////
// CustomFieldRepositoryHibernate.java
// gooru-api
// Created by Gooru on 2014
// Copyright (c) 2014 Gooru. All rights reserved.
// http://www.goorulearning.org/
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this soft... | 36.694779 | 198 | 0.724144 |
34ba4da92ca4893b9bfac5c3769545ca522ca84c | 13,958 | /**
* 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... | 43.755486 | 161 | 0.649018 |
adc5a97ad9ca95267735d717c6216aeac509841d | 2,831 | package me.m1dnightninja.midnightessentials.fabric;
import me.m1dnightninja.midnightcore.api.MidnightCoreAPI;
import me.m1dnightninja.midnightcore.api.config.ConfigProvider;
import me.m1dnightninja.midnightcore.api.config.ConfigSection;
import me.m1dnightninja.midnightcore.api.module.IModule;
import me.m1dnightninja.m... | 44.936508 | 127 | 0.793712 |
abe9df494eedfd849d276c5ead4da56477c0a712 | 590 | package ch.heig.gamification.entities;
import lombok.Data;
import lombok.Generated;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Data
public class RuleEntity implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private String name;
... | 19.666667 | 55 | 0.754237 |
2b686c7d3244f84a9708703a0cf82638d5112362 | 1,524 | package com.github.mangelion;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import static com.github.mangelion.ClientMessage.writeStringBinary;
import static com.github.mangelion.ClientMessage.... | 29.882353 | 84 | 0.677165 |
2bd76362b8643de7981dbb68f9fcfd5e89121a86 | 7,022 | package sql.fredy.metadata;
import java.sql.*;
import sql.fredy.share.t_connect;
/**
This is to figure out, if a column is auto-increment.
You instantiate this class once and then you have
to set the column and have the possiblity to set the table
to use only one connection to run it.
* Admin is a Tool ... | 25.078571 | 80 | 0.565081 |
5dda512e87a7105677aac07eea160d6acf70222d | 549 | package edu.stanford.nlp.coref.statistical;
import java.io.Serializable;
import java.util.List;
/**
* A low-memory representation of a {@link Counter} created by a {@link Compressor}.
* @author Kevin Clark
*/
public class CompressedFeatureVector implements Serializable {
private static final long serialVersionUI... | 27.45 | 84 | 0.750455 |
9224ec043fe759e4aca06351a8dd509535fb5b5c | 1,916 | /*
* Copyright 2016 Liam Williams <liam.williams@zoho.com>.
*
* This file is part of fluent-bdd.
*
* 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/L... | 36.846154 | 107 | 0.716075 |
27ccc4301f8de9978b62f0f6cca1ee22a5bb067c | 211 | package com.drool.engine.service;
import com.drool.engine.entity.QueryParam;
public interface RuleEngineService {
void executeAddRule (QueryParam param) ;
void executeRemoveRule (QueryParam param) ;
}
| 23.444444 | 47 | 0.781991 |
2851ee92d8fec466bf913172d31dc2a897f173eb | 426 | package com.github.ayltai.hknews.media;
import javax.annotation.Nonnull;
import javax.inject.Singleton;
import androidx.annotation.NonNull;
import com.github.piasy.biv.loader.ImageLoader;
import dagger.Component;
@Singleton
@Component(modules = { MediaModule.class })
public interface MediaComponent {
@Nonnull
... | 18.521739 | 47 | 0.758216 |
fbe8142ab98956712be88ff0cea5c5b52f66c1eb | 4,548 | package net.haesleinhuepf.clijx.stardist;
import de.csbdresden.stardist.Opt;
import de.csbdresden.stardist.StarDist2D;
import ij.IJ;
import ij.ImagePlus;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
import net.haesleinhuepf.clij.macro.CLIJMacroPlugin;
import net.haesleinhuepf.clij.macro.CLIJOpenCLProcessor;
i... | 32.719424 | 161 | 0.671064 |
cc0944daf61820f34e791f801cacbf30411dfac5 | 1,889 | /* See LICENSE for licensing and NOTICE for copyright. */
package org.ldaptive;
import java.util.Arrays;
/**
* Contains the data required to perform an ldap compare operation.
*
* @author Middleware Services
*/
public class CompareRequest extends AbstractRequest
{
/** DN to compare. */
private String compar... | 19.080808 | 118 | 0.63261 |
7f3f5a8b83b2eb89cf912f5ee73c30c9603200de | 4,237 | package com.example.reservationservice;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.rsocket.AbstractRSocket;
import io.rsocket.Payload;
import io.rsocket.RSocketFactory;
import io.rsocket.SocketAcceptor;
import io.rsocket.transport.netty.serv... | 28.436242 | 87 | 0.784045 |
69de9c5570eca341bef7abdac3ccea87af656f3c | 13,016 | package com.woshidaniu.io.utils;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.i... | 28.669604 | 129 | 0.63276 |
1c30fb02c62bb27cc3a26ec7be1a4e444c2bd6d0 | 10,623 | /**
* CustomerChangeData.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201605.ch;
/**
* Holds information about changes to a customer
*/
public class CustomerChangeData implements java.io.Ser... | 39.490706 | 136 | 0.634472 |
f0974bad4310c2ba1d60f751439c2ebbead5ee70 | 470 |
public abstract class Carnivore extends Animal {
public Carnivore(String carName, Integer carAge) {
super(carName, carAge);
}
@Override
/**
* Throws an error if a carnivore attempts to eat a plant.
*/
public void eat(Food foodConsumed) throws Exception {
if (foodConsumed instanceof Plant) {
throw n... | 20.434783 | 79 | 0.691489 |
634e9913bfbb7b94cee5be2e656cd67135672409 | 827 | package com.mahogano.core.presta.mapper;
import com.mahogano.core.presta.entity.AdminFilter;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class AdminFilterMapper implements RowMapper<AdminFilter> {
@Override
public AdminFilter mapRow(ResultSe... | 33.08 | 72 | 0.720677 |
dc6ebd462f06d8f4635692c8cbff704249e7ec69 | 753 | /**
* All rights Reserved, Designed By Suixingpay.
*
* @author: 程志祥<cheng_zx @ suixingpay.com>
* @date: 2018/4/10
* @Copyright: ©2018 Suixingpay. All rights reserved.
* 注意:本内容仅限于随行付支付有限公司内部传阅,禁止外泄以及用于其他的商业用途。
*/
package co.bbs.start;
import co.bbs.Application;
import org.springframework.boot.builder.SpringAppli... | 26.892857 | 84 | 0.75166 |
46ad12ca224d5421695b144e2532e26e1988bc6f | 4,199 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 28.958621 | 82 | 0.71136 |
f9bfabdd845ec8bfdfaf302f362c8b1e632ef4b7 | 1,600 | package com.bogliaccino.canzoni.presentation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
imp... | 26.666667 | 81 | 0.774375 |
986d47bc814ce331520b5b87132353b0fedb2d5a | 10,064 | package com.capitalone.dashboard.collector;
import com.capitalone.dashboard.client.RestClient;
import com.capitalone.dashboard.client.RestOperationsSupplier;
import com.capitalone.dashboard.config.CollectorTestConfig;
import com.capitalone.dashboard.config.TestConstants;
import com.capitalone.dashboard.config.TestMong... | 44.928571 | 177 | 0.774742 |
528922c31e05a77bf98fb6f59d29ac2f1cb0d3cd | 218 | package com.example;
import android.app.Activity;
import shortbread.Shortcut;
@Shortcut(id = "ID", longLabel = "LONG_LABEL", longLabelRes = R.string.long_label)
public class MultipleLongLabels extends Activity {
}
| 19.818182 | 82 | 0.775229 |
b5825815fa867ffa5256053e4b4e96e93520ac15 | 671 | package ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.request.impl;
import ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.request.Request;
import ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.request.RequestFinalStatus;
public class RequestFinalStatusBase extends RequestStatusBase implements RequestFinalSta... | 25.807692 | 94 | 0.76304 |
f5382c98e6f22194e4a0dd398a3d34d2e6626d57 | 2,821 | package moze_intel.projecte.gameObjs.blocks;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import net.minecraft.block.BlockState;
import net.minecraft.block.DispenserBlock;
import net.minecraft.block.TNTBlock;
import net.minecraft.dispenser.DefaultDispenseItemBehavior;
import net.minecraft.dispens... | 36.636364 | 154 | 0.77313 |
081c2e3a8cadf31b2d969f1b68a9536fe0b55a2d | 7,539 | /*
Copyright 2017 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 43.08 | 128 | 0.742274 |
d917d87466fb0057662e5a9705aafe63045a4e0b | 3,406 | package py.com.volpe.cotizacion.gatherer;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.springframework.http.HttpHeaders;
import org.springframework.stereoty... | 29.617391 | 133 | 0.635056 |
faccf9f453d711ae922e2840a6f444988e5f1558 | 255 | package com.starjobs.service;
import java.util.List;
import com.starjobs.dto.BalanceHistoryDto;
public interface BalanceHistoryService {
/**
* 余额历史记录
* @param phone
* @return
*/
List<BalanceHistoryDto> getBalanceHistoryList(String phone);
}
| 15.9375 | 61 | 0.74902 |
376f976dd13e086768ddd90c88d9a00fd2776262 | 333 | package com.team1699.objects;
import java.awt.Graphics;
public interface DrawableObject {
//render is used for code relating to drawing the object to the screen
//tick is used for all other actions that should occur each time the screen loops
public abstract void tick();
public abstract void render(Gr... | 30.272727 | 85 | 0.753754 |
1437cb200fe696b775858417fa1c53df34eac7d9 | 1,341 | package com.hedera.test.factories.keys;
/*-
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 26.294118 | 78 | 0.739001 |
fcd12c912a15ee92efbde3582a71d333598b23aa | 1,050 | package calemiutils.util;
import net.minecraft.util.text.TextFormatting;
public enum CoinColor {
BRONZE(TextFormatting.GOLD, 0xECA747),
GRAY(TextFormatting.DARK_GRAY, 0xA7A7A7),
SILVER(TextFormatting.GRAY, 0xFFFFFF),
GOLD(TextFormatting.YELLOW, 0x11FFD800),
ORANGE(TextFormatting.GOLD, 16351261),... | 29.166667 | 51 | 0.735238 |
f8cdd363699e6ba6058145dce24d98b271ed12c6 | 697 | /*
* Copyright (c) 2019-2021. Ivan Vakhrushev and others.
* https://github.com/mfvanek/pg-index-health
*
* This file is a part of "pg-index-health" - a Java library for
* analyzing and maintaining indexes health in PostgreSQL databases.
*
* Licensed under the Apache License 2.0
*/
package io.github.mfvanek.pg.... | 27.88 | 77 | 0.714491 |
725e4fe921084e9e6b0b3974d347164c823603fa | 1,267 | /*******************************************************************************
* Copyright (c) 2015 Pawel Zalejko(p.zalejko@gmail.com).
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License Version 2.0
* which accompanies this distrib... | 32.487179 | 138 | 0.615627 |
e3c74fe632513e9e73d10e9efe1350ef7dd0c255 | 391 | package com.zs.tools;
public class FileUtils {
/**
* 得到项目根路径
* 比如:E:/Workspaces/eclipse/mybatis-zs-tool/
* @return
*/
public static String getRootPath(){
String str=FileUtils.class.getResource("/").getFile().toString().substring(1);
String rootPath=str.replaceAll("target/classes/", "");
System.out.pri... | 19.55 | 80 | 0.685422 |
bef1e5dafcd2d276f49b3d7e0ba2e5b33a8fdabd | 3,255 | package net.minecraft.commands.arguments;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
... | 46.5 | 153 | 0.77235 |
a5f6b6781bf7759af0ae6c709d03ddb680d1282c | 3,237 | package com.wwish.ganalytics.okhttp.request;
import java.io.File;
import java.util.List;
import com.wwish.ganalytics.okhttp.model.HttpParams;
import com.wwish.ganalytics.okhttp.utils.HttpUtils;
import okhttp3.MediaType;
import okhttp3.RequestBody;
/**
* ================================================
* 描 述:带... | 29.972222 | 111 | 0.620636 |
8d4014b3ae9ebc122085927f909795c075a377fe | 5,907 | package com.github.trang.copiers.test.coveralls;
import static com.github.trang.copiers.test.util.MockUtils.newTeacher;
import static com.github.trang.copiers.test.util.MockUtils.newTeacherEntity;
import static com.google.common.collect.Lists.newArrayList;
import static org.assertj.core.api.Assertions.assertThat;
imp... | 42.496403 | 117 | 0.659556 |
806cf971a31dde1be19cc92e8610f1fe4ffb096c | 15,240 | package com.github.ompc.greys.core.server;
import com.github.ompc.greys.core.ClassDataSource;
import com.github.ompc.greys.core.Configure;
import com.github.ompc.greys.core.manager.ReflectManager;
import com.github.ompc.greys.core.manager.TimeFragmentManager;
import com.github.ompc.greys.core.util.GaCheckUtils;
import... | 32.564103 | 147 | 0.561549 |
8596d8d9ac31d832303ee8617f2d830da4f9e9d2 | 2,792 | /*
* Copyright 2014 The original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 39.323944 | 122 | 0.767192 |
c56244ea984794fe06fdc10478ac31656087b248 | 10,981 | package ihm;
import java.awt.*;
import java.awt.Dimension;
import javax.swing.*;
import java.util.*;
import datas.*;
/**
*Classe pour l'interface graphique
*/
public class Wintel extends JFrame {
//Attributs
//Afin d'eviter le Warning du serialVersionUID
private static final long serialVersionUID = 42L;
//Une inst... | 25.656542 | 94 | 0.747473 |
dad620694920caf2f62eab3c85fbabf1e1888267 | 176 | package net.capybara.items;
import net.minecraft.item.Item;
public class OakBark extends Item {
public OakBark(Settings settings)
{
super(settings);
}
}
| 14.666667 | 37 | 0.681818 |
307e91474eb692728c8cb437282b49f824ac19d3 | 3,972 | /*
* Copyright (c) 2017 Tran Le Duy
*
* 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 agree... | 36.109091 | 126 | 0.731621 |
3bce44865522b0be12a438cf284c10305cb20a99 | 672 | package com.intuso.housemate.client.api.internal.plugin;
import com.intuso.housemate.client.api.internal.driver.ConditionDriver;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation to list t... | 29.217391 | 71 | 0.77381 |
99a9bb29513d9c9cb6705f1c0d3829f828d74b69 | 477 | package com.newoneplus.dresshub.Domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.newoneplus.dresshub.Domain.Product.Product;
import lombok.Data;
import javax.persistence.*;
@Data
@Entity
public class ThumbUp{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;... | 21.681818 | 65 | 0.750524 |
0df321019098f8a60ff8f5ac40d30bf84f5d56ee | 2,652 | package com.kts.nvt.serbioneer.jwt;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.kts.nvt.serbioneer.dto.UserLoginDTO;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springfram... | 43.47541 | 137 | 0.736425 |
1a3f80853714989db2106128ccc21df9a2c26f71 | 2,620 | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates.
*
* 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 applica... | 39.104478 | 101 | 0.737405 |
2fd973410a09e2af4809c0993ca133aceeebac1d | 37,756 | /*
* 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 ... | 37.718282 | 171 | 0.583563 |
67fab63d7a2cfaf0b2b4d5819b6e8547f26f1468 | 228 | package net;
import cc.novoline.modules.combat.Reach;
public class z3 {
public static boolean a(Reach var0) {
return var0.isEnabled();
}
public static float b(Reach var0) {
return var0.getRange();
}
}
| 16.285714 | 40 | 0.657895 |
f44c629e8ac548a2f41358256b82366f916f3077 | 1,380 | package br.com.wellingtoncosta.githubusers.ui.searchuser;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import br.com.wellingtoncosta.githubusers.R;
import br.com.wellingtoncosta.githubusers.databinding.ListUsersItemBinding;
import br.com.wellingtonc... | 35.384615 | 91 | 0.760145 |
e6bf5be0d9718e4d5c497a5b9ac821e11867198b | 397 | package com.siyeh.ig.encapsulation;
import com.siyeh.ig.IGInspectionTestCase;
public class PublicInnerClassInspectionTest extends IGInspectionTestCase {
public void test() {
final PublicInnerClassInspection tool = new PublicInnerClassInspection();
tool.ignoreEnums = true;
tool.ignoreInterfaces = true;
... | 28.357143 | 77 | 0.780856 |
4e32b12e09c66dd65cf99a5beb67b0ce20c01006 | 18,815 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2013 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | 14.562693 | 83 | 0.812649 |
cf700fac9c51388e513af2155e7856b80c08f921 | 788 | package me.pagar.model;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
public class PagarMeError {
private String parameterName;
private String type;
private String message;
private static String safeValue(JsonElement value) {
return (null == value || value.isJsonNu... | 21.888889 | 82 | 0.652284 |
958a89e626155113bc37d48e9d57985aee6b1739 | 206 | package it.istc.cnr.stlab.clodg.app;
import org.codehaus.jettison.json.JSONObject;
import org.apache.jena.rdf.model.Model;
public interface Aligner {
Model align(JSONObject jsonObject, Model model);
}
| 18.727273 | 49 | 0.786408 |
988bd7b519bd39a45cf50ae731b6a7b6aa775533 | 1,460 | /*
* Copyright 2020 by OLTPBenchmark Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 25.614035 | 102 | 0.668493 |
bc5fe78cc17dcefd6d63ad1f161446e6fd652e1e | 3,490 | package io.ably.lib.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* An interface exposing the ability to register listeners for a class of events
* @author paddy
*
* @param <Event> an Enum containing the event names that lis... | 28.145161 | 122 | 0.70745 |
feec8224995b87245103b9e6fecb3a4fc33f6ce5 | 722 | package hashTable;
public class RansomNote {
/**
* @Author JaneRoad
* @Description 383. 赎金信
* @Date 01:18 2021/12/4
* @Param
* @param ransomNote
* @param magazine
* @return
* @return boolean
**/
public boolean canConstruct(String ransomNote, String magazine) {
... | 22.5625 | 69 | 0.473684 |
d224c195cf1c26a2cf4d3121a6b03b68225bde3e | 1,125 | package data_structures;
import java.util.NoSuchElementException;
/**
* A collection that stores its items in a simple java java array.
*/
public class SimpleArrayCollection<T extends Comparable<T>> implements SimpleCollection<T> {
T[] dataSource = null;
private int numberOfKeyComparisonsWhenSearchingForItem =... | 24.456522 | 92 | 0.712 |
94bf40359fd382105baeec4f9352246d371ef9ce | 1,056 | package cz.afrosoft.whattoeat.cookbook.cookbook.logic.service.impl;
import cz.afrosoft.whattoeat.cookbook.cookbook.logic.model.Cookbook;
import cz.afrosoft.whattoeat.cookbook.cookbook.logic.model.CookbookRef;
import cz.afrosoft.whattoeat.core.gui.I18n;
import org.apache.commons.lang3.StringUtils;
import java.util.Com... | 33 | 106 | 0.711174 |
e7e39e4e91a4a4a682bb765b96e872c0c95368dc | 5,881 | /*******************************************************************************
* Copyright (c) 2016 eBay Software Foundation.
*
* 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
*
* htt... | 35.215569 | 94 | 0.732869 |
8373d8f79519addee5a026dd701d77c4627129e3 | 8,054 |
/* ====================================================================
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 ... | 32.216 | 118 | 0.567544 |
41d5b3f93a65f7420eb76683e1dca0b963e36e15 | 2,548 | package com.carbonrider.keycloak.vault;
import org.jboss.security.vault.SecurityVault;
import org.jboss.security.vault.SecurityVaultException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.Properties;
public class CustomKeycloakVault implements Securi... | 30.698795 | 117 | 0.687598 |
3b4189cf398bd97efbf6d53e928ac929f0c9aaf5 | 6,673 | package com.voximplant.apiclient.response;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;
import java.math.BigDecimal;
import com.voximplant.apiclient.util.MultiArgument;
import com.voximplant.apiclient.util.Error;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.voxi... | 30.610092 | 89 | 0.605725 |
74cceedd3953a413a50b9847f10de483a4c84cd5 | 3,132 | /*
* Copyright 2019-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 35.191011 | 90 | 0.676884 |
c7f60499d113b6f2b404ec5fed1a6961c6b11f89 | 9,847 | package com.seancarroll.chess;
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document;
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.documentationConfiguration;
import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.post;
import s... | 60.042683 | 138 | 0.633899 |
78ad6c8ed71dc618ca8f0d74ba2580aae39ffc26 | 238 | package vdsMain.transaction;
//bjg
public final class VConsensus {
//f11731a
public static final double[] weightArr = {100.0d, 61.8d, 38.192d, 23.6029d, 14.5865d, 9.0148d, 5.5707d, 3.4423d, 2.1276d, 1.3142d, 0.8124d, 0.5021d};
}
| 29.75 | 153 | 0.689076 |
76eb12c9b338973f393758c16ca78c9360f38ccf | 122 | package com.java.learning.java8.optional;
public class Main {
public static void main(String[] args)
{
}
}
| 12.2 | 42 | 0.655738 |
b7b3839e345e92f98a5b8ba6b99a4aca655d5ded | 6,168 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.masterdb;
import com.opengamma.core.convention.ConventionSource;
import com.opengamma.core.exchange.ExchangeSource;
import com.opengamma.core.holid... | 30.84 | 101 | 0.633431 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.