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 |
|---|---|---|---|---|---|
ce2328560e2c021f8291d35fbf1aa77dbf9cc83c | 245 | import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class Npe {
void bar() {
final @Nullable Object o = foo();
o.hashCode(); // NPE
}
@Nullable Object foo() {
return null;
}
}
| 17.5 | 42 | 0.636735 |
c20e22742ea8a41a3a1382bf83e5ebb4fb803dff | 999 | package com.github.jayield.rapper.unitofwork;
import com.github.jayield.rapper.DomainObject;
import java.util.Queue;
public class CreateHelper extends AbstractCommitHelper {
public CreateHelper(UnitOfWork unit, Queue<DomainObject> list) {
super(unit, list);
}
@Override
public Object identity... | 29.382353 | 84 | 0.641642 |
3cfe1f613c5de442342b1bd8bf89378ee2f8c39d | 890 | import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Movie implements Serializable {
private static final long serialVersionUID = 1L;
String movieImdbLink = "";
String movieTitle = "";
String titleYear = "";
String imdbScore = "";
String directorName = "";
String actor... | 24.054054 | 59 | 0.693258 |
f7b34a42d68a798314c994e229519f8d6678c098 | 1,590 | /*
* 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 control;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.logging... | 25.645161 | 93 | 0.595597 |
1e5175d5c9118d225e8a3c2dbfb53a9877f09c64 | 526 | package lab8;
import java.io.*;
public class CopyDataThread extends Thread {
public CopyDataThread(FileWriter f1, File f2) throws IOException, InterruptedException {
FileReader fr=new FileReader("f1");
int x=fr.read( );
FileWriter f = new FileWriter(f2);
int i = 0;
while( x... | 21.916667 | 92 | 0.534221 |
a9f1e95aa3fd95be7406fd9aa7472c6c1cc14981 | 11,347 | /*
* (c) Tyler Hostager, 2018.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish... | 36.252396 | 139 | 0.525778 |
ad7ea36ee1404c4d56036c7a1c557d732576da65 | 585 | package edu.pse.beast.highlevel;
/**
* The ResultInterface provides the necessary methods to present the result of a
* check.
* @author Jonas
*/
public interface ResultInterface {
/**
*
* @return if the result is in a state where it can be presented
*/
boolean readyToPresent();
... | 26.590909 | 80 | 0.673504 |
2f86b46c57faf20247d32655edbe6fa5899b7ea1 | 1,193 | package tokyo.peya.plugins.peyangplayerreporter.util;
import tokyo.peya.lib.SQLModifier;
import tokyo.peya.plugins.peyangplayerreporter.Variables;
import java.sql.Connection;
import java.util.Date;
import java.util.UUID;
public class ChatLogger
{
public static void onChat(UUID senderUUID, String content)
{
... | 26.511111 | 92 | 0.562448 |
4e1fe50e33f74c029b2e43452d015c19abee7648 | 1,094 | package com.hjqjl.whlibrary.utils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.hjqjl.whlibrary.R... | 29.567568 | 104 | 0.664534 |
821bbbae443b826d30315d4d7f6d915a59cf2118 | 1,532 | /*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | 29.461538 | 77 | 0.686684 |
911829856ad16da0bab59b736327458bc0d302a3 | 4,193 | package it.jira.permission;
import com.atlassian.jira.config.properties.APKeys;
import com.atlassian.plugin.connect.modules.beans.ProjectPermissionCategory;
import com.atlassian.plugin.connect.modules.beans.ProjectPermissionModuleBean;
import com.atlassian.plugin.connect.modules.beans.nested.I18nProperty;
import com.a... | 44.606383 | 111 | 0.714524 |
ad8be487b45903d7cf1e50e32a90d6bd457e9f6f | 1,291 | /**
* Copyright 2012 XnnYygn
*
* 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 w... | 23.907407 | 80 | 0.695585 |
85292e6c54aa229ad3d70b6fe599211e70bc90a6 | 827 | package top.niunaijun.obfuscator;
import com.googlecode.dex2jar.ir.stmt.LabelStmt;
import com.googlecode.dex2jar.ir.stmt.Stmt;
import com.googlecode.dex2jar.ir.stmt.Stmts;
import org.objectweb.asm.Label;
import java.util.ArrayList;
import java.util.List;
public class LBlock {
private LabelStmt labelStmt;
private L... | 20.170732 | 55 | 0.73156 |
3d3eb7dff0fdf2c0194b6aafd8343fe6935a51fa | 2,342 | package org.jenkinsci.plugins.webhookstep;
import hudson.FilePath;
import hudson.model.Result;
import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
import org.jenkinsci.plugins.workflow.test.steps.Sema... | 35.484848 | 85 | 0.611016 |
927ab94d43c46fa65c818f869c746a24c8775e88 | 4,530 | package gui_elements.combo_boxes;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import game_object.PropertyNotF... | 39.051724 | 109 | 0.772406 |
ac5fb97887c93859afd9471f2525ea7a4d6232c0 | 7,593 | /*
* Copyright 2013-2020 consulo.io
*
* 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 ... | 35.647887 | 173 | 0.727512 |
aa09de2a6f52fe6291e87e3e01ac2d587b7b0585 | 1,816 | /*
* (c) Copyright 2015 Micro Focus or one of its affiliates.
*
* Licensed under the MIT License (the "License"); you may not use this file
* except in compliance with the License.
*
* The only warranties for products and services of Micro Focus and its affiliates
* and licensors ("Micro Focus") are as may be se... | 39.478261 | 128 | 0.715859 |
b05246a4bb7dce578b50976fa64c139e9eec9ac9 | 1,122 | package org.mockserver.client.serialization.model;
import org.junit.Test;
import org.mockserver.model.Body;
import org.mockserver.model.RegexBody;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockserver.model.RegexBody.regex;
/**
* @author jamesdbloom... | 27.365854 | 89 | 0.688948 |
597b61bb1b3a9326e86a100d4ee1615d540a4a74 | 254 | package com.qintess.clinicaVeterinaria.repositorios;
import org.springframework.data.repository.CrudRepository;
import com.qintess.clinicaVeterinaria.entidades.Especie;
public interface EspecieRepositorio extends CrudRepository<Especie, Integer> {
}
| 25.4 | 78 | 0.854331 |
7daf72092c11da2a158e4eaec5aa9228dfb9e575 | 1,060 | package com.snc.zero.handler;
import android.annotation.SuppressLint;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
/**
* Handler
*
* @author mcharima5@gmail.com
* @since 2018
*/
public class EventHandler {
@SuppressLint("HandlerLeak")
private final Handler mHandler = n... | 23.043478 | 74 | 0.616038 |
03f12de3d34480ea0bc5e42ab8e5506c344f8c69 | 7,433 | package visualization_msgs.msg.dds;
import us.ihmc.communication.packets.Packet;
import us.ihmc.euclid.interfaces.Settable;
import us.ihmc.euclid.interfaces.EpsilonComparable;
import java.util.function.Supplier;
import us.ihmc.pubsub.TopicDataType;
/**
* MenuEntry message.
*
* Each InteractiveMa... | 27.838951 | 119 | 0.609713 |
bff6d62e811b221ce78136225778fe3ceaeac00b | 1,555 | public class Person {
// Instance variables: every person has a first name and last name
private String firstName;
private String lastName;
// Constructor: creates a Person with the given first name and last name
public Person(String firstName, String lastName) {
this.firstName = firstName;... | 29.903846 | 79 | 0.613505 |
620eed0f8375a621d63f353c9ea5bfd0563e7992 | 745 | package leetcode300;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
/**
* @date 2021/12/17
*/
public class N386 {
public List<Integer> lexicalOrder(int n) {
List<Integer> res = new ArrayList<>();
dfs(0, 1, n, res);
return res;
}
// tod... | 17.738095 | 68 | 0.484564 |
2ae668db19f604d2235c136ef2fb07f03ae0822f | 1,108 | package org.danekja.discussment.core.dao;
import org.danekja.discussment.core.domain.Category;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
class CategoryDaoIT extends GenericDaoIT<Long, Category> {
protected final CategoryDao categoryD... | 22.612245 | 67 | 0.681408 |
ea5ca233c09f442d06b12d74a54aedfb9781d3b6 | 1,281 | import com.geekcattle.Application;
import com.geekcattle.service.console.LogService;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframe... | 32.846154 | 93 | 0.779859 |
ca61a2cdb06cf497d50e75a29d11154eb300ed37 | 712 | package com.daimabaike.springboot.mybatis.sys.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.daimabaike.springboot.mybatis.core.mapper.BaseMapper;
import com.daimabaike.springboot.mybatis.sys.entity.User;
@Mapper
public ... | 26.37037 | 65 | 0.728933 |
77aef902f8008539f47b3ea211885609b5f9de2d | 269 | package Modelo;
import Auxiliar.Posicao;
// Classe auxiliar para instanciar uma esteira com direcao para esquerda
public class EsteiraEsquerda extends Esteira {
public EsteiraEsquerda(Posicao umaPosicao) {
super(3, "esteiraLeft.png", umaPosicao);
}
}
| 24.454545 | 72 | 0.750929 |
f1381f4c26fc7b5dd3ed1a975345871a41271fac | 790 | public class Node implements Comparable<Node>
{
Node next;
Integer value;
/*
this is a very straight forward class, simply makes a node
to store data in
*/
public Node(Integer value1)
{
next = null;
value = value1;
}
public Node(Integer value1, Node nex... | 16.808511 | 68 | 0.534177 |
c360c62bcd09c0521b86ae5e0a7901ee51795dac | 1,445 | package com.example.android.miwok;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
public class ColorsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState... | 42.5 | 117 | 0.728028 |
8c963504c5d14bfab9a42d8a596a9674b3eb0a4a | 1,324 | package keyboardwarrior;
import java.util.HashMap;
public final class ShortcutMap {
private static ShortcutMap instance = null;
public HashMap<String, String> shortcut_map;
private ShortcutMap() {
shortcut_map = SerFileReader.serFileIn(shortcut_map, SerFileDir.SF1);
}
/**
*
*... | 21.354839 | 80 | 0.586858 |
7e5f3d2f4e7e2d8fb25d49fa4db91ed78faadbf0 | 728 | package com.example;
import java.util.concurrent.atomic.AtomicInteger;
public class ProcessMemoryModel {
public static void main(String[] args) throws InterruptedException {
MyTask task= new MyTask();
Thread t1= new Thread(task);
Thread t2= new Thread(task);
t1.start();
t2.s... | 22.75 | 72 | 0.598901 |
86b57749bf97b8bafed2dffbe2ba84ee9bc29096 | 2,146 | package com.diguits.domainmodeldefinition.serialization.mappers;
import com.diguits.domainmodeldefinition.definitions.RelationshipPartDef;
import com.diguits.domainmodeldefinition.definitions.ValueObjectDef;
import com.diguits.domainmodeldefinition.serialization.dtomodel.RelationshipPartDefDTO;
import com.diguits.comm... | 39.018182 | 143 | 0.819199 |
3c431a6d8fd099af2b020bfddce4cf17d21671ee | 1,570 | package com.teambition.talk.entity;
import org.parceler.Parcel;
/**
* Created by wlanjie on 15/9/14.
*/
@Parcel(Parcel.Serialization.BEAN)
public class UserVoip {
private String _id;
private String user;
private String voipAccount;
private String voipPwd;
private String subToken;
private Str... | 18.915663 | 56 | 0.61465 |
6539ba4e815711bcb11a0cc3a2beec14b530f654 | 664 | package solution;
import java.util.List;
public abstract class Replyer {
public String company;
public int bonusPoints;
public List<String> skills;
int id;
public Replyer(int id, String company, int bonusPoints, List<String> skills) {
this.id = id;
this.skills = skills;
this.company = company... | 17.025641 | 80 | 0.620482 |
b15ab428ba73f739561bdff7fcb9ffb00aad4a97 | 145 | package com.gorden5566.aop.simple.service;
/**
* @author gorden5566
* @date 2019-03-18
*/
public interface TestService {
void test();
}
| 13.181818 | 42 | 0.675862 |
6f70f51673d98d28bd30c7a307206f20a1ba7698 | 1,829 | package info.seleniumcucumber;
//import com.epam.reportportal.testng.ReportPortalTestNGListener;
import org.testng.annotations.*;
import io.cucumber.testng.AbstractTestNGCucumberTests;
import io.cucumber.testng.CucumberOptions;
@CucumberOptions(
plugin = {
"pretty"
// ,"com.aventstack.extentreports.cu... | 33.254545 | 79 | 0.655549 |
d7b31ce79d0102aa1bda12ab9de7866a81f487e3 | 716 | package me.kevinwalker.ui.controller;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import me.kevinwalker.main.ImageResourc;
import java.net.URL;
import java.util.ResourceBundle;
public class PopupController implements In... | 25.571429 | 68 | 0.744413 |
557ba8c18fdd6970f26a9ebcebcc24faacef5447 | 249 | /**上午10:02:36
* @author zhangyh2
* VitamioListener.java
* TODO
*/
package io.vov.vitamio;
/** @author zhangyh2
* VitamioListener
* 上午10:02:36
* TODO 这里面进行设置一些动作接口。方便主项目进行调取
*/
public interface VitamioListener {
public void startTime();
}
| 14.647059 | 34 | 0.706827 |
d7e1427e2498a0c51e081b1b0b4ae2deb699c154 | 2,665 | package me.lefted.leashes.mixins;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import ... | 39.191176 | 150 | 0.616886 |
ade0b9255c53c1990c7c2a4cb977d7db34a97c21 | 682 | package pta;
import config.SootConfig;
import soot.PackManager;
import soot.Scene;
import soot.Transform;
/**
* @program: MySootScript
* @description:
* @author: 0range
* @create: 2021-06-17 17:21
**/
public class Starter {
public static final String className = "pta.ptademo.Hello";
public static voi... | 21.3125 | 96 | 0.667155 |
2e70feda00c35b78112d39306f472836ba7a8e71 | 2,140 | /* */ package org.apache.pdfbox.contentstream.operator.color;
/* */
/* */ import java.io.IOException;
/* */ import java.util.List;
/* */ import org.apache.pdfbox.contentstream.operator.MissingOperandException;
/* */ import org.apache.pdfbox.contentstream.operator.Operator;
/* */ import org.apache.... | 30.571429 | 114 | 0.543925 |
a93f072c915350db662c008437247939cc95b5cd | 291 | package com.gl.roadaccidents.repository;
import com.gl.roadaccidents.model.WeatherCondition;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* Created by gavin on 16-5-22.
*/
public interface WeatherConditionRepository extends JpaRepository<WeatherCondition, Long> {
}
| 26.454545 | 91 | 0.810997 |
7661a41bdaced4c45092af16b168f9681e1bd180 | 1,288 | package uk.gov.hmcts.reform.em.hrs.service;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import uk.gov.hmcts.reform.em.hrs.domain.HearingRecordingSegment;
import uk.gov.h... | 33.025641 | 104 | 0.799689 |
742e95cac53bfe3046378c38d654cee9ffb93940 | 2,690 | package ru.fizteh.fivt.students.SibgatullinDamir.Shell;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
/**
* Created by Lenovo on 01.10.2014.
*/
public class RmCommand implements Commands {
void removeNonrecursive(String path) throws MyException {
... | 32.02381 | 108 | 0.533829 |
bef5e38c7a24ebd891e9062ba91f91fe11208fad | 23,181 | package edu.purdue.cuttlefish.crypto;
import edu.purdue.cuttlefish.utils.ArrayUtils;
import edu.purdue.cuttlefish.utils.EncodeUtils;
import edu.purdue.cuttlefish.utils.FileUtils;
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.nio.ByteBuffer;
import... | 34.444279 | 106 | 0.587766 |
9a6941a56c97f6fc0669ba9739400c49710cccad | 1,036 | package stellarapi.impl.celestial;
import stellarapi.api.lib.math.SpCoord;
import stellarapi.api.optics.Wavelength;
import stellarapi.api.view.IAtmosphereEffect;
/**
* Default implementation of sky.
*/
public class DefaultSkyVanilla implements IAtmosphereEffect {
@Override
public void applyAtmRefraction(SpCoord ... | 17.862069 | 82 | 0.757722 |
923de92eb30b6405ab93580f668d6686b5b957c5 | 795 | package org.apsarasmc.spigot.command;
import net.kyori.adventure.audience.MessageType;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.bungeecord.BungeeComponentSerializer;
import org.apsarasmc.spigot.util.TextComponentUtil;
import org... | 34.565217 | 108 | 0.811321 |
813046695716f338ec412153766ed0f9789cd7c7 | 195 | package Factory_File;
public class ConcreteCreator extends AbstractCreator {
@Override
IFile getRecord(String fileName) {
return new GenericFile(fileName);
}
} | 19.5 | 55 | 0.671795 |
a4f71ab11fd4bc7e1b7d98104ad3ddd9379a5b7f | 2,786 | package org.ningning.codefu.crossword_gen;
import static com.google.common.base.Preconditions.checkArgument;
public class Util {
public static void printAWord(String word, char mode,
int beginRow, int beginCol, Board board) {
checkArgument(word.length() <= board.getLonge... | 30.955556 | 76 | 0.488873 |
d581a991a58e0820cd3c370d63d7237e8f84c738 | 3,329 | /*
* 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 helpers;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddre... | 35.042105 | 98 | 0.58486 |
fb9af0f8e4d58bcb73b0c59b5f74d1772abc2849 | 2,591 | /*
*
*/
package components;
import java.util.Arrays;
import java.util.List;
import junit.framework.Assert;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
... | 25.91 | 91 | 0.716712 |
d683bdd0e11e61aba5e2a1c6d7683a4b354966fc | 3,828 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.search.documents.implementation.converters;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.serializer.ObjectSerializer;
import com.azure.core.util.serializer.SerializerEncodin... | 39.875 | 116 | 0.670063 |
398c99560e2b7c9cf153b76e90ac1b97431d0bb6 | 525 | package com.libbytian.pan.system.exception;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* Created with IntelliJ IDEA.
* Description:
* @author QiSun
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ImageCodeException extends RuntimeException{
protected final String message;
public... | 19.444444 | 59 | 0.710476 |
41160dce4fe8053d0b672ef1f7077d4a89868f55 | 4,000 | package wy.addons.zcgl.cpn_room.model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
/**
* 房间Model
*
* @author wyframe
* @Date 2018-01-03 15:02:19
*/
public class Xgt_cpn_room {
private static final long serialVersionUID = 1L;
@... | 23.529412 | 110 | 0.73875 |
a116b6ea3bfe6bd7352441eee7ec4bbcdd948b99 | 2,971 | package dev.satyrn.wolfarmor.common.network.packets;
import dev.satyrn.wolfarmor.common.network.MessageBase;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.PacketBuffer;
import net.minecraft.potion.Potion;
... | 37.607595 | 147 | 0.692696 |
e5dfc96426de447d920b1053f9dc6d28490b8e03 | 336 | package spins.promela.compiler.ltsmin.matrix;
import spins.promela.compiler.expression.Expression;
/**
*
* @author FIB
*/
public interface LTSminGuardContainer extends Iterable<LTSminGuardBase> {
abstract public void addGuard(LTSminGuardBase guard);
abstract public void addGuard(Expression guard);
abstract int ... | 24 | 73 | 0.794643 |
2c17761fc4792ab39b734a990ce13c875e84fb93 | 2,004 | package cc.mrbird.febs.yb.dao;
import cc.mrbird.febs.yb.entity.YbReconsiderVerifyView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java... | 45.545455 | 196 | 0.826846 |
ca826ccfd0bdb02c50a89a06f0c6ee509b9248f4 | 2,259 | package com.xiaoke1256.bizliconchain.common.service;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction... | 31.375 | 130 | 0.764498 |
5ae5fe015e495f0b2310be43dec04f5ce127caf8 | 1,485 | package io.redskap.swagger.brake.core.util;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class PathNormalizerTest {
@Test(expected = IllegalArgumentException.class)
public void testNormalizePathSlashesThrowsExceptionWhenNullGiven() {
// given
// whe... | 29.117647 | 82 | 0.664646 |
40d5e0c20b16676c6852cbc5b83e7ecba355fd2e | 833 | package rs.ac.uns.pmf.footballteamfinder.framework.networkmodel.team;
import com.google.gson.annotations.SerializedName;
public class VenueNetworkEntity {
@SerializedName("image")
private String image;
@SerializedName("address")
private String address;
@SerializedName("surface")
private String surface;
@Se... | 15.145455 | 69 | 0.726291 |
fb96372152e5cae107108658a21bc5517aaaa32e | 13,050 | package rocks.metaldetector.service.summary;
import org.assertj.core.api.WithAssertions;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
impor... | 38.382353 | 134 | 0.73387 |
e5d25506b07429736f99dd693c9a5ea14d989405 | 6,459 | /**
*
* Copyright (c) Microsoft and contributors. 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 r... | 28.082609 | 79 | 0.65041 |
286aa02f0f38b031362d220912aede3a13c0a198 | 2,202 | package de.uniwue.informatik.praline.pseudocircuitplans.properties;
import de.uniwue.informatik.praline.datastructure.graphs.Graph;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
/**
* Object for gathering {@link PropertyValue}s for one graph
*/
public class PropertySheet ... | 30.164384 | 116 | 0.638056 |
75d7e020450cf445119af784b313dd27cf877840 | 1,280 | /*
* 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 io.github.faimoh.todowebapp.actions;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.Sim... | 30.47619 | 99 | 0.617969 |
5f3b3e4a9dd405f572803527d8b523f0a22bc8ec | 4,648 | package cn.org.rapid_framework.generator.ext.ant;
import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.apache.tools.ant.AntClassLoader;
import ... | 32.503497 | 90 | 0.652324 |
792133ee5ae5e03ef9cc05038d4cbca5aae785c9 | 1,246 | package ampcontrol.model.training.model.validation.listen;
import org.nd4j.evaluation.classification.Evaluation;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.function.Consumer;
/**
* Check point for {@link Evaluation Evaluations}. Stores the result in a text fi... | 28.318182 | 96 | 0.666132 |
08c104a72268e2329d76a3a55cba7b3257f1ce4f | 742 | package ru.job4j.bomberman.threads;
import ru.job4j.bomberman.Board;
import ru.job4j.bomberman.Cell;
import ru.job4j.bomberman.units.Unit;
/**
* @author shaplov
* @since 24.05.2019
*/
public abstract class Job implements Runnable {
protected final Unit unit;
protected final Board board;
public Job(B... | 23.935484 | 97 | 0.645553 |
25c0a110cc1528443512a08d8bd9f885d7f25d23 | 553 | package q11291;
public class StaticFieldDemo {
public static void main(String[] args) {
A.aStaticField = 5;
A a1 = new A(3);
A a2 = new A(4);
System.out.println("a1 = " + a1);
System.out.println("a2 = " + a2);
System.out.println("A.aStaticField = " + A.aStaticField);
}
}
class A {
public static int aStat... | 25.136364 | 90 | 0.663653 |
6af12a548bff1651ab195cd31b01513851da0371 | 1,562 | package com.augur.tacacs;
/**
* Used in authorization REQUEST and RESPONSE packets.
*
* @author Chris.Janicki@augur.com
* Copyright 2016 Augur Systems, Inc. All rights reserved.
*/
public class Argument
{
final String attribute;
final String value;
final boolean isOptional;
/**
* Create an attribute-va... | 22.637681 | 108 | 0.683739 |
215f1f2199efca54011d76a6373737ecc0642cc4 | 886 | package DP_entity_linking.geneticAlgorithm.similarity;
import DP_entity_linking.geneticAlgorithm.GenSequence;
import DP_entity_linking.geneticAlgorithm.Interval;
import org.apache.lucene.search.similarities.LMJelinekMercerSimilarity;
import org.apache.lucene.search.similarities.Similarity;
import java.util.Random;
/... | 25.314286 | 75 | 0.716704 |
754a24475cccfebd43e4f28593222e805537d1ba | 4,917 | package br.com.gbvbahia.maker.works;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import junit.framework.Te... | 37.534351 | 100 | 0.690665 |
ef3374b6b521a446dbd5c3e002270770b3ff41d5 | 8,511 | /*
* Copyright 2020 The Error Prone 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 ... | 39.957746 | 100 | 0.720949 |
d9bae7cf012492fb230c67a2e54da34fba0993ed | 645 | package com.skytala.eCommerce.domain.product.relations.product.event.promoCodeEmail;
import java.util.List;
import com.skytala.eCommerce.framework.pubsub.Event;
import com.skytala.eCommerce.domain.product.relations.product.model.promoCodeEmail.ProductPromoCodeEmail;
public class ProductPromoCodeEmailFound implements... | 30.714286 | 105 | 0.849612 |
230bef8aec7192b8afd2b602bace8fb79b833ae5 | 964 | package org.yamikaze.unit.test.mock.proxy;
/**
* @author qinluo
* @version 1.0.0
* @date 2019-11-12 10:22
*/
public class ProxyWrapper {
private Class<?> mockType;
private Object mockObject;
public ProxyWrapper(Class<?> mockType, Object mockObject) {
this.mockType = mockType;
this.mo... | 19.673469 | 66 | 0.609959 |
8ad52f4b9f3542c2210fb21797922c2a3416d659 | 145 | public class SynonymGame {
public static void main(String[] args) {
Synonym synonym = new Synonym();
synonym.play();
}
}
| 20.714286 | 44 | 0.6 |
9433f85011eb528b5485a454c0ae9ed5f9acc34f | 39,769 | /*
*
* This file is generated under this project, "DocVersionManager".
*
* Date : 2014. 11. 21. 오후 5:28:28
*
* Author: Park_Jun_Hong_(fafanmama_at_naver_com)
*
*/
package open.commons.tool.dvm.ui;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStre... | 37.27179 | 160 | 0.576504 |
5fc2b0a11b6896f66ca923c4f04744d20ce49215 | 6,864 | package br.com.orange.mercadolivre.Usuario;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import or... | 38.133333 | 105 | 0.618444 |
53e36c18c2092eeb2d22f987d43383d18d2639d9 | 1,266 | package utils.dto;
import utils.entity.Error;
import utils.entity.Errors;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Pavel Dudin
* on 04.10.2017
* padudin@dasreda.ru
*/
public class ErrorsDto {
private List<ErrorDto> errors;
public ErrorsDto() {
errors = new ArrayList<>... | 21.827586 | 65 | 0.600316 |
1fb839f4d3801493e3800d0b17646866f5f7aba2 | 2,416 | package ca.on.oicr.gsi.shesmu.compiler;
import static ca.on.oicr.gsi.shesmu.compiler.TypeUtils.TO_ASM;
import ca.on.oicr.gsi.shesmu.plugin.types.Imyhat;
import java.util.Iterator;
import java.util.Set;
import java.util.function.Consumer;
import org.objectweb.asm.Type;
import org.objectweb.asm.commons.GeneratorAdapter... | 35.529412 | 98 | 0.70654 |
e30c177864d771c37a0b0e231bc87bad0b852770 | 1,433 | package com.intellij.tasks.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.ui.Messages;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import jav... | 39.805556 | 129 | 0.704815 |
82a5162eb3e14b48bf15a7f83c522c6c78603e09 | 2,384 | package net.commotionwireless.olsrinfo.datatypes;
import java.util.Collection;
/**
* A network interface from the list of interfaces that <tt>olsrd</tt> is aware
* of at runtime.
*
* Written as part of the Commotion Wireless project
*
* @author Hans-Christoph Steiner <hans@eds.org>
* @see <a
* href="ht... | 27.402299 | 112 | 0.799916 |
714eb57a3afa0d918b47914ab72b33db5cc696ee | 734 | package io.github.jupiterio.necessaries;
import net.fabricmc.api.ModInitializer;
import io.github.jupiterio.necessaries.claim.ClaimManager;
import io.github.jupiterio.necessaries.tp.TeleportCommands;
import io.github.jupiterio.necessaries.portal.PortalManager;
public class NecessariesMod implements ModInitializer {
... | 33.363636 | 76 | 0.735695 |
00c8775a20d7ceb3a7d1f68c4fd42bd4db8de539 | 7,713 | /*
* 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") + yo... | 28.566667 | 149 | 0.719046 |
a6a1ee6a21f8b5140e6592dac3b9eae5a9365774 | 5,845 | /*
* 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 ... | 40.034247 | 109 | 0.723867 |
f652ab634544a3e3def5d6cfb8134b3d062b3b2d | 799 | package com.example.mybrower;
import android.os.Bundle;
import android.os.PersistableBundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.example.adapter.TestAdapter;
import com.example.bean.UserInfoBean;
import java.util.ArrayList;
import java.util.List;
public ... | 27.551724 | 108 | 0.777222 |
e34676c6564e763965f5cb93888455c3f3df2ccf | 278 | package com.holtak.holidays4j.exception;
public class Holiday4jException extends Exception {
public Holiday4jException(String message) {
super(message);
}
public Holiday4jException(String message, Throwable cause) {
super(message, cause);
}
}
| 21.384615 | 64 | 0.708633 |
8dafac62480157f26283b36c4754b0a0509856bc | 2,700 | /**
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
* the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
* <p>
* http://ec.europa.eu/idabc/eupl
* <... | 30.681818 | 131 | 0.74 |
e669e0db03591366216e71fc24e624b2de3e5869 | 921 | package array;
/**
* https://oj.leetcode.com/problems/search-insert-position/
* Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
* You may assume no duplicates in the array.
* Here are few examples.
* <pre>
... | 28.78125 | 157 | 0.508143 |
9f3b40ea81a4018a5b93bcf3265ef5f7da296be2 | 997 | package ru.job4j.tracker;
import java.util.List;
import java.util.Scanner;
/**
* Class ConsoleInput.
*
* @author Ayder Khayredinov (emage.haf@gmail.com).
* @version 1.
* @since 3.01.2019.
*/
public class ConsoleInput implements Input {
/**
* Поле создаем экземпляр сканера.
*/
private Scanner... | 21.212766 | 60 | 0.553661 |
bf4b4e388f0f58bf41994cd369d091b90e232a47 | 2,888 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 26.990654 | 99 | 0.67036 |
9276479b75e8ee34d156aeac0408d5b0241c9220 | 1,186 | /*
* Copyright (C) 2015 fuwjax.org (info@fuwjax.org)
*
* 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 app... | 26.954545 | 75 | 0.725126 |
87d5e652b8088650170091797ee40e2a9d0dfef1 | 638 | /*
* 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 codegenius;
/**
*
* @author codegeni.us
*/
public class EagerInitialization {
// define private instance.... | 24.538462 | 83 | 0.680251 |
0035e42185ec4889110047a2097dd9a36764ed6b | 1,700 | package com.yhy.common.beans.net.model.tm;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
/**
* Created with Android Studio.
* Title:ItemParamForOrderContext
* Description:
* Copyright:Copyright (c) 2016
* Company:quanyan
* Author:鲍杰
* Date:2016-12-21
* Time:15:08
* ... | 22.368421 | 94 | 0.612353 |
7e107cc22b5cbe916a349592c369c8b48b868051 | 1,024 | package guerbai.f851_900;
import java.util.HashMap;
import java.util.Map;
public class LemonadeChange {
private static boolean lemonadeChange(int[] bills) {
Map<Integer, Integer> m = new HashMap<>();
m.put(5, 0);
m.put(10, 0);
for (int bill: bills) {
if (bill == 5)... | 27.675676 | 56 | 0.351563 |
93e9e73c0c9f2e41525af67057b67cf457d8f1bc | 565 |
class MultipleInheritance {
interface A {
int X = 1;
String FOO = "foo";
}
interface B extends A {
int X = 2;
String FOO = "foo";
}
interface C extends A, B {
int Y = C.<error descr="Reference to 'X' is ambiguous, both 'A.X' and 'B.X' match">X</error>;
String BAR = C.<error descr="R... | 18.225806 | 123 | 0.573451 |
79e81187e675474eaf9041ae77c8e6402fd3dc95 | 10,158 | /*
* (C) Copyright 2015-2018 Nuxeo (http://nuxeo.com/) 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/LICENSE-2.0
*
* Unless requi... | 37.483395 | 111 | 0.687537 |
c5884260c4a68eeaad0ea5b7125a52d10a3cc1b5 | 4,094 | /*
* Copyright 2014-2018 Rudy De Busscher (https://www.atbash.be)
*
* 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 requir... | 30.781955 | 141 | 0.676844 |
1cc6edfc87e442f71dac8501feb3756497559d6e | 1,639 | package com.dyh.string;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/**
* Remove All Adjacent Duplicates In String:给出由小写字母组成的字符串 S,重复项删除操作会选择两个相邻且相同的字母,并删除它们。
* 在 S 上反复执行重复项删除操作,直到无法继续删除。
* 在完成所有重复项删除操作后返回最终的字符串。答案保证唯一。
* input: "abbaca"
* output: "ca"
* @author dyh
... | 21.012821 | 88 | 0.578401 |
c82f2bdd523fc5bb048288497a279e751e06b33f | 10,299 | /*
* @(#)CharcoalEffect.java
*
* Copyright (c) 2009 by Jeremy Wood.
* All rights reserved.
*
* The copyright of this software is owned by Jeremy Wood.
* You may not use, copy or modify this software, except in
* accordance with the license agreement you entered into with
* Jeremy Wood. For details see acc... | 46.183857 | 130 | 0.514904 |
7f60d5fcafda2f77107184f75213c44a11eca520 | 1,056 | package com.cadnunsdev.direccionescongespanhol;
import com.google.android.gms.maps.model.LatLng;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* Created by Tiago Silva on 17/01/2017.
*/
public class GeoCodeJsonService {
String urlService = "https://maps.goog... | 32 | 124 | 0.696023 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.