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 |
|---|---|---|---|---|---|
14233329c7030aefff9cbd2b4ae80cdaa7843cbc | 12,024 | package net.minecraft.item;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Iterables;
import com.google.common.collect.Multisets;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirt;
import net.minecraft.block.BlockStone;
import net.minecraft.b... | 40.08 | 180 | 0.406936 |
c9913ec450425f845047588f4bb23571acb28b87 | 1,142 | package com.injahow.goodsManager.service.impl;
import com.injahow.goodsManager.bean.User;
import com.injahow.goodsManager.bean.UserAuth;
import com.injahow.goodsManager.dao.UserAuthDAO;
import com.injahow.goodsManager.dao.UserDAO;
import com.injahow.goodsManager.service.UserAuthService;
import com.injahow.goodsManager... | 30.052632 | 90 | 0.717163 |
af879e44e3eca326062246f111bce0654581aae2 | 2,920 | package edu.fiuba.algo3.vista;
import edu.fiuba.algo3.controlador.BotonConsumirBoosterExclusividadEventHandler;
import edu.fiuba.algo3.controlador.BotonConsumirBoosterX2EventHandler;
import edu.fiuba.algo3.controlador.BotonConsumirBoosterX3EventHandler;
import edu.fiuba.algo3.modelo.Partida;
import javafx.geometry.Ori... | 46.349206 | 131 | 0.687671 |
cd2e55bb12d32088e8f0bfffa445a8d4386c80ab | 3,571 | package de.metas.common.ordercandidates.v2.response;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotati... | 34.669903 | 159 | 0.758051 |
5e6f338aeb80630cb858f1fbf871c8c13dc8c334 | 1,035 |
package edu.byu.edge.ypay.v1.domain.payments;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CreditCardTypeType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="C... | 23 | 95 | 0.667633 |
fcc5e889eb509d00aaec058c1742cdb33b3c0535 | 14,946 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | 37.27182 | 191 | 0.700455 |
669805ac9cb63bb7b5d53cf2ee2d84e411f25ec6 | 1,765 | package kr.pe.kwonnam.underscore.stringbuilder.transformers.trim;
import kr.pe.kwonnam.underscore.stringbuilder.transformers.UnderscoreTrimTransformer;
import java.util.Arrays;
import java.util.List;
/**
* Options for {@link UnderscoreTrimTransformer}.
*/
public class TrimOpts {
private String prefix;
priv... | 22.922078 | 85 | 0.638527 |
d711ceb6ec956296c75fb8c568075360304c4f2d | 2,078 | package pt.up.fc.dcc.mooshak.shared.commands;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* The outcome of executing a Mooshak method/operation,
* including type GUI update and message to display
*
* This class must be also Serializable (instead of just IsSerializable)
* since it is used both by R... | 20.989899 | 72 | 0.691049 |
53af4059cdaed4979f533d097a59a35dc262df6c | 3,399 | package org.innovateuk.ifs.application.builder;
import org.innovateuk.ifs.application.resource.AssessorCountSummaryResource;
import org.junit.Test;
import java.util.List;
import static org.innovateuk.ifs.application.builder.AssessorCountSummaryResourceBuilder.newAssessorCountSummaryResource;
import static org.junit.... | 46.561644 | 121 | 0.699912 |
7a50b8913f4606e0cf3b1c9dba353f32cd0bd32c | 1,192 | package vos;
import java.util.Date;
import org.codehaus.jackson.annotate.JsonProperty;
public class ParametrosGetFunciones {
@JsonProperty(value="ID")
private int date1;
@JsonProperty(value="FECHA")
private Date categoria;
@JsonProperty(value="TEATRO")
private String idioma;
@JsonProperty(value="OBRA")... | 16.108108 | 67 | 0.701342 |
b4edf15d0272587685bed7005279aca275884673 | 1,628 | package com.pzp.manage.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
impo... | 29.6 | 132 | 0.718059 |
f5c7be55f237de049de51a727d9995ed987c9e9b | 66,370 |
package com.mentor.nucleus.bp.core ;
//====================================================================
//
// File: com.mentor.nucleus.bp.core.ReferringClassInAssoc_c.java
//
// WARNING: Do not edit this generated file
// Generated by ../MC-Java/java.arc, $Revision: 1.111 $
//
// (c) Copyright ... | 33.793279 | 182 | 0.68091 |
7ba293002f37a27312b7302eed0290d24d02dc73 | 1,088 | /*
* ParameterGenericApplyingVisitor.java
* ---------------------------------
* Copyright (c) 2020
* RESOLVE Software Research Group
* School of Computing
* Clemson University
* All rights reserved.
* ---------------------------------
* This file is subject to the terms and conditions defined in
* file 'LICEN... | 24.177778 | 74 | 0.619485 |
0417c80aec4b61af091d0cc761a0499824f5f4eb | 3,834 | /*
* Copyright [2019] [Alexander Reelsen]
*
* 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 ... | 40.787234 | 144 | 0.648931 |
218b3308c4e504fde6845b07ac35cea8307e2014 | 188 | package com.wubinet.parser;
import com.wubinet.model.MeasureType;
import java.math.BigDecimal;
import java.util.Map;
public interface Parser {
Map<MeasureType, BigDecimal> parse();
} | 15.666667 | 38 | 0.776596 |
6bfe58f6ec58553368989ebf2e559642f84cbff4 | 2,799 | /*
* Copyright 2016 Red Hat, Inc. and/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 ap... | 35.43038 | 104 | 0.693819 |
ffe441c3f94c6dcfd5318a2b6335bf93980a03d5 | 1,244 | package com.miu360.legworkwrit.di.module;
import android.app.Activity;
import com.jess.arms.di.scope.ActivityScope;
import com.miu360.legworkwrit.mvp.contract.TalkNoticeContract;
import com.miu360.legworkwrit.mvp.model.TalkNoticeModel;
import com.miu360.legworkwrit.mvp.ui.widget.HeaderHolder;
import com.mobsandgeeks.... | 23.471698 | 78 | 0.717042 |
2416d1fbeb50a011d40faf90c6752d05ae57ae80 | 1,004 | package ru.arrays.level.middle;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* @author Sir-Hedgehog (mailto:quaresma_08@mail.ru)
* @version 1.0
* @since 03.10.2020
*/
public class RotateArrayTest {
@Test
public void whenRotateOfZeroNumbers()... | 26.421053 | 60 | 0.608566 |
f442e6093bbf62246e8a49d5737403262fe24edc | 1,653 | package au.com.ericliu.spring_helloworld.landom.web.application;
import au.com.ericliu.spring_helloworld.landom.business.domain.RoomReservation;
import au.com.ericliu.spring_helloworld.landom.business.service.ReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | 32.411765 | 115 | 0.727768 |
430ab6e769038e9b1a4d9ee5d13c0562b5e2946d | 1,705 | package com.redescooter.ses.service.foundation.dao;
import com.redescooter.ses.api.foundation.vo.login.AccountsDto;
import com.redescooter.ses.api.foundation.vo.login.LoginEnter;
import com.redescooter.ses.api.foundation.vo.user.GetUserEnter;
import com.redescooter.ses.api.foundation.vo.user.QueryAccountNodeDetailResu... | 22.434211 | 156 | 0.66217 |
60be5cc96a264cc2dea8d4262124bd8b33a64e90 | 3,324 | /*
* Copyright (c) 2009-2014, Peter Abeles. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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
*
* ... | 31.065421 | 86 | 0.569795 |
aa0fc94eae0cd6d7ddfa54d6b9cf1a9de90aa1f7 | 3,486 | package org.apereo.cas.ticket;
import org.apereo.cas.CipherExecutor;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.ticket.proxy.ProxyGrantingTicket;
import org.apereo.cas.ticket.proxy.ProxyTicket;
import org.apereo.cas.tick... | 38.733333 | 134 | 0.72031 |
6c6bcbbaa3c1c67ff48a9289b3c9bbd6daaa8471 | 5,723 | package uk.co.brggs.dynamicflink;
import lombok.var;
import org.apache.flink.util.OutputTag;
import uk.co.brggs.dynamicflink.blocks.BlockProcessor;
import uk.co.brggs.dynamicflink.blocks.MatchedBlock;
import uk.co.brggs.dynamicflink.control.ControlOutput;
import uk.co.brggs.dynamicflink.outputevents.OutputEvent;
impor... | 45.420635 | 117 | 0.654552 |
23ac3987d19eaa694fb287d309e4f2da5537dd6a | 1,135 | package de.golfgl.lightblocks.scene2d;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import de.golfgl.lightblocks.LightBlocksGame;
/**
* Created by Benjamin Schulte on 20.02.2018.
... | 25.222222 | 91 | 0.668722 |
da99f0304e5dd157723526de4d853fef2a095c4e | 970 | import java.io.*;
import java.net.*;
class UDPServer
{
public static DatagramSocket serversocket;
public static DatagramPacket dp;
public static BufferedReader dis;
public static InetAddress ia;
public static byte buf[] = new byte[1024];
public static int cport = 789,sport=790;
public static void main(String[]... | 24.25 | 55 | 0.691753 |
7e22ba1f540bc5827d800b87f48ef4bc36276ee7 | 614 | package com.ms.library.dao;
import java.util.List;
import com.ms.library.entity.Book;
import com.ms.library.exception.DaoExceprion;
public interface BookDao {
int addBook(Book book) throws DaoExceprion;
int updateBook(Book book)throws DaoExceprion;
List<Book> findBookAll()throws DaoExceprion;
List<Book> findBookA... | 34.111111 | 60 | 0.812704 |
0f8c24af29a5f32eee7f859d77e75ec642514205 | 6,633 | package com.cekrlic.jdbc.ssh.tunnel;
import java.io.*;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author boky
* @created 11/02/2017 17:50
*/
public class SshN... | 26.426295 | 129 | 0.625509 |
e9227bc68b971575c736fa5cf459c75fd48fe944 | 7,888 | /*
* Copyright 2012-2013 inBloom, Inc. and 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 appli... | 29.878788 | 159 | 0.650355 |
082715f54c9af2d63f616ebf8529cff0f584a434 | 3,119 | /**
*
* @author Yoshio Terada
*
* Copyright (c) 2017 Yoshio Terada
*
* 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
... | 29.424528 | 176 | 0.650208 |
020c6b2bf643c1d344de36b935c4e62a1f1a87a6 | 768 | /*
* Copyright (c) 2021-2021. Ivan Vakhrushev.
* https://github.com/mfvanek/pg-index-health-test-starter
*
* This file is a part of "pg-index-health-test-starter".
*
* Licensed under the Apache License 2.0
*/
package io.github.mfvanek.pg.spring;
import org.springframework.boot.context.properties.ConfigurationP... | 23.272727 | 81 | 0.716146 |
94ffbc7bdaf5305f9a7a7dbc1379e148c9e263ca | 42 | /**
* Created by ${USER} on ${DATE}
*/ | 14 | 33 | 0.452381 |
1f9b669094d07051d9dc216ca7e1af816e77c4d4 | 221 | package com.movingmachines.entities.exceptions;
@SuppressWarnings("serial")
public class positionNotAvaliableException extends Exception {
public positionNotAvaliableException(String message) {
super(message);
}
}
| 20.090909 | 62 | 0.81448 |
af40058044eb3fe1ceae2f5f0b69909a28abbc4b | 1,745 | /*
* Copyright 2014 IMS Global Learning Consortium.
*
* 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... | 27.265625 | 109 | 0.708309 |
3fc33f483a0d71643c0add9e6ff6b5258bad251b | 493 | // PART OF THE MACHINE SIMULATION. DO NOT CHANGE.
package nachos.machine.lib;
public class NachosReflectiveOperationException extends RuntimeException {
NachosReflectiveOperationException() {
}
NachosReflectiveOperationException(String message) {
super(message);
}
NachosReflectiveOperati... | 23.47619 | 74 | 0.724138 |
d622e29c30c6fb6b40d8538bd3b52fb1136e0aeb | 4,961 | package net.es.nsi.pce.server;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.Logger;
import net.es.nsi.pce.config.ConfigurationManager;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.GnuParser;
im... | 35.949275 | 123 | 0.655916 |
fc1d540f6eb354aebb4477698587aac74ef90c93 | 760 | package com.github.mibo.jaxrsdoc.analysis.classes.testclasses.resource.response;
import com.github.mibo.jaxrsdoc.model.elements.HttpResponse;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
import java.util.Collections;
import java.util.Set;
public class TestClass52 {
public static final TestCla... | 25.333333 | 80 | 0.710526 |
2592a06df842a1997b7ed077fb1ee9c956bbc6ba | 2,158 | package io.jenkins.plugins.sample;
import hudson.Extension;
import jenkins.scm.api.SCMHeadEvent;
import jenkins.scm.api.SCMNavigatorEvent;
import jenkins.scm.api.SCMSourceEvent;
import jenkins.scm.impl.SCMTriggerListener;
import org.kohsuke.github.GHEventPayload;
import java.util.logging.Level;
import java.util.loggi... | 46.913043 | 173 | 0.701576 |
cae87da57fb60fd58bade0f3ff1df0dd7f752304 | 2,001 | package org.tinylcy.controller;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
... | 36.381818 | 131 | 0.729135 |
4f5f6772d5b8e3d8bb396b82f7020dfa4d3992bb | 1,614 | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | 30.45283 | 96 | 0.70632 |
cd501cc3821c123c143b866ca78682a5cc861236 | 1,980 | package com.osomapps.pt.reportweight;
import com.osomapps.pt.token.InUserLogin;
import com.osomapps.pt.user.UserService;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;... | 40.408163 | 97 | 0.655051 |
0283d7ad23948ee17748783ba47c7d1fdaa68cbc | 4,247 | package me.hsgamer.bettergui.modifier;
import com.cryptomorin.xseries.SkullUtils;
import com.cryptomorin.xseries.XMaterial;
import me.hsgamer.hscore.bukkit.item.ItemMetaModifier;
import me.hsgamer.hscore.bukkit.utils.BukkitUtils;
import me.hsgamer.hscore.common.Validate;
import me.hsgamer.hscore.common.interfaces.Stri... | 32.419847 | 111 | 0.709913 |
f4184e3229b5110b1799ce90fef90f31cb7c8b49 | 152 | package com.xzg.ratelimiter.rule.datasource;
import com.xzg.ratelimiter.rule.RuleConfig;
public interface RuleConfigSource {
RuleConfig load();
}
| 19 | 44 | 0.789474 |
8019ee02c8e84b2226bba77983569fe4330a2244 | 5,055 | package datawave.microservice.audit.log;
import datawave.webservice.common.audit.AuditParameters;
import datawave.webservice.common.audit.Auditor;
import org.apache.accumulo.core.security.ColumnVisibility;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4... | 36.89781 | 149 | 0.70821 |
a83682f67f14123826ec4a447d15b531be512651 | 1,839 | /**
* 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.12766 | 118 | 0.763458 |
384108f834dba9508876e56ae3d320b29a0eb349 | 4,490 | package com.tenable.io.api.plugins.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Copyright (c) 2017 Tenable Network Security, Inc.
*/
public class PluginAttributes {
private String solution;
private String fName;
private String synopsis;
private String ... | 17.677165 | 77 | 0.557016 |
a1f188417bfac99b5ed82bc98ab39c7f76294337 | 315 | package com.solitardj9.msa.serviceInterface.messageManagerInterface.commentManagerInterface.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RequestComment {
private Long postId;
private String content;
} | 21 | 98 | 0.844444 |
f1579e9e672d9cc6767496a6a4439c0cbed30145 | 2,440 | package io.keen.client.java;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.HashMap;
import java.util.Map;
/**
*... | 29.756098 | 101 | 0.679098 |
e65d3e59388e67d7a15344b9d41cb02d498c16d4 | 216 | package br.com.casadocodigo.repository;
import br.com.casadocodigo.model.State;
import org.springframework.data.jpa.repository.JpaRepository;
public interface StateRepository extends JpaRepository<State, Long> {
}
| 27 | 69 | 0.833333 |
35a6270a9cb992cb4fbd93994ae3a1e02b6f394a | 2,188 | package io.khasang.freefly.controller;
import io.khasang.freefly.entity.Cat;
import io.khasang.freefly.entity.CatWoman;
import org.junit.Test;
import org.springframework.http.*;
import org.springframework.web.client.RestTemplate;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
... | 27.696203 | 69 | 0.610603 |
6ddd14c8e82102aceeaf0ae39f24a57c74c49308 | 7,360 | package org.schoellerfamily.gedbrowser.reader.test;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
... | 35.215311 | 76 | 0.625136 |
85a10bafd4f64bab01086c82495a339ef1041ba3 | 198 | package com.github.casperjs.casperjsrunner.cmd;
import org.apache.commons.exec.CommandLine;
public interface CommandLineAppender {
void append(CommandLine cmdLine, Parameters parameters);
}
| 19.8 | 60 | 0.808081 |
709d2a62d48a9f37c3a82ee081b90cd206a4c4c2 | 368 | package com.noobian.scalarcreator;
import java.util.LinkedHashMap;
import java.util.Map;
public class EditorModel {
public String id, name, author, version;
Map<String, Skin> skins = new LinkedHashMap<String, Skin>();
public Skin getSkinByModelName(ModelName mn) {
if (mn.skin == null)
return skins.get("defau... | 21.647059 | 61 | 0.725543 |
24afc1e8476f235d6e60ecbd57b4a8c1e1793954 | 4,453 | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php
*
* Unless r... | 40.853211 | 100 | 0.715697 |
4c96df1444ac0cc8da29a3138c680eecb8be8210 | 7,911 | /**
* 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.517928 | 122 | 0.683226 |
6bc5c9272c9e874ef9b6c450b43020eddedf5b05 | 387 | package com.inepex.translatorapp.client.page;
import com.google.inject.Inject;
import com.inepex.ineFrame.client.page.defaults.DummyPage;
import com.inepex.translatorapp.client.i18n.translatorappI18n;
public class PageNotFoundPage extends DummyPage {
@Inject
public PageNotFoundPage() {
supe... | 27.642857 | 68 | 0.723514 |
94520e051f63b4191fd6634a6804b9610e8f0363 | 2,600 | package org.patientview.importer.manager;
import generated.Patientview;
import generated.Survey;
import generated.SurveyResponse;
import org.patientview.config.exception.ImportResourceException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transaction... | 41.935484 | 117 | 0.757308 |
f2a5a5f164ca08286b2f91058ad3720c7b3d8680 | 87 | package cyou.mrd.io;
public interface Identity {
int getId();
String getName();
} | 17.4 | 28 | 0.689655 |
319f065b008dad50950c00c092fca00b9d6892df | 2,028 | package no.nav.tps.forvalteren.provider.rs.security.logging;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.M... | 27.405405 | 84 | 0.724359 |
65d63ed7614b628acb343e6b069b61808e11ec6d | 2,947 | /**
*
* @Title: DemoThread09.java
* @Prject: DemoThread
* @Package: com.liang.demo
* @author: yin.hl
* @date: 2017年3月20日 下午10:55:51
* @version: V1.0
*/
package com.morley.demo.middle;
import java.util.concurrent.DelayQueue;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
/... | 22.496183 | 107 | 0.652189 |
e1b322e624d37d9abf2bd93cee5f01a75f10334a | 1,390 | /*
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco Activiti Client.
*
* 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.apa... | 25.740741 | 77 | 0.678417 |
1da7067d33dab161df772ed132f8f5390aae083c | 397 | package com.hbird.base.mvc.base;
/**
* Created by Liul on 2018/06/28.
*/
public interface UiInterface {
/**
* 设置布局id
*
* @return
*/
int setContentId();
/**
* 初始化控件
*/
void initView();
/**
* 初始化数据
*/
void initData();
/**
* 初始化监听器
*/
... | 10.447368 | 33 | 0.438287 |
9e29553565b0b93341cdd37bbad6fd804ce100ae | 4,288 | /*
* Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved.
*
* 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 Y... | 31.072464 | 117 | 0.651819 |
1a03215a513a5e875104818c5a5d722acc24caa4 | 27,561 | /**
* 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... | 34.843236 | 86 | 0.637023 |
65b89a8ce39bab1e9d623df9b049a537a7eed818 | 349 | package name.valery1707.core.db.filter;
import name.valery1707.core.db.SingularExpressionGetter;
import java.util.function.Function;
public class EqualsFilter<D, F, X> extends BaseSimpleFilter<D, F, X> {
public EqualsFilter(SingularExpressionGetter<D, X> fieldGetter, Function<F, X> getter) {
super(fieldGetter, ge... | 29.083333 | 89 | 0.765043 |
bb85324681d2348379b30f039e2cf5b309b0a343 | 590 | package cn.eyeblue.blog.rest.tag;
import cn.eyeblue.blog.rest.base.BaseEntity;
import cn.eyeblue.blog.rest.tank.Tank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.Transient;
@EqualsAndHashCode(callSuper = true)
@Data
@... | 15.945946 | 44 | 0.740678 |
b97059bc6307332e7f413807dbf4cd912fd4e6aa | 801 | package com.appengine.task.service;
import com.appengine.task.dao.ToutiaoDao;
import com.appengine.task.domain.Toutiao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* Authors: fuy... | 24.272727 | 57 | 0.735331 |
425e4d618c621a454f469214477d7b568bec89ec | 1,416 | package com.revature.files;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
import com.revature.beans.CustomerBean;... | 28.32 | 94 | 0.740819 |
99f8e22ae8548d3ce6858e91cd32de3de90e7c8c | 837 |
package com.techjar.ledcm.hardware.animation.sequence;
import com.techjar.ledcm.LEDCubeManager;
import com.techjar.ledcm.hardware.animation.Animation;
import com.techjar.ledcm.hardware.animation.AnimationOption;
import com.techjar.ledcm.util.Util;
/**
* Args: [(option value) sets]
*
* @author Techjar
*/
public c... | 25.363636 | 85 | 0.72282 |
c9477d190cc0e42640ebd9dc03e4bb434861c961 | 343 | package com.atguigu.gmall.product.mapper;
import com.atguigu.gmall.model.product.BaseCategory2;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @author Administrator
* @create 2020-05-12 18:39
*/
@Mapper
public interface BaseCategory2Mapper extends BaseMap... | 24.5 | 72 | 0.798834 |
579b045c5ebbeeaa8641b022a83455d37d2574a2 | 6,050 | /**
* Copyright 2016-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 47.637795 | 104 | 0.77405 |
a8840f114be966d5537eec831339209c2e40a905 | 1,344 | package com.csye6225.noteapp.models;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "user")
public class User {
@Id
@Column(name = "user_id")
@GeneratedValue(strategy= GenerationType.AUTO)
private Integer id;
@Column(name = "email")
priva... | 20.059701 | 66 | 0.612351 |
6296a437b81dfe6b3440f003f817311d1db1907a | 7,445 |
package com.yunnex.ops.erp.modules.store.basic.service;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transac... | 35.28436 | 144 | 0.642579 |
7144196ba32f0b700d2511be1964a5e7d7d1db1d | 5,650 | package org.statemachine;
import junit.framework.TestCase;
import org.junit.Test;
import org.leaguemodel.HeadCoach;
import org.leaguemodel.Injuries;
import org.leaguemodel.Players;
import org.leaguemodel.Team;
import org.leaguemodel.interfaces.IHeadCoach;
import org.leaguemodel.interfaces.IInjuries;
import org.leaguem... | 37.919463 | 85 | 0.659292 |
31abafa5f3ef74c0f2651514d2758d522a61803d | 2,182 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2018 GwtMaterialDesign
* %%
* 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
* ... | 23.978022 | 75 | 0.732356 |
d6098f56c17d9d375a81ff1b87d30fb6805ae36c | 642 | package com.rnl.synchronization;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Vibrator;
import android.widget.Toast;
public class MusicReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent inte... | 33.789474 | 74 | 0.724299 |
f6997e7c149f70ce2977dc7273d99e6b903381b6 | 208 | package com.example.demo.repositories;
import org.springframework.data.repository.CrudRepository;
import com.example.demo.model.Book;
public interface BookRepository extends CrudRepository<Book, Long> {
}
| 23.111111 | 68 | 0.826923 |
fac6c83a54cfa73643e4684d8bea904395c96a7c | 599 | import org.apache.thrift.TException;
import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
// Generated code
import loadbalancer.*;
public class LoadBalancerHandler implements LoadBalan... | 19.966667 | 62 | 0.772955 |
cb4365a5a26de183f2ab62f4c183ca3e826453c5 | 422 | package covid19.backend.Repository.Covid19;
import covid19.backend.Models.MongoDB.MongoCasesDistrictWise;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
public interface DistrictWiseMongoRepository extends MongoRepository<MongoCasesDistrictWise,String> {
List<MongoCases... | 42.2 | 101 | 0.85545 |
fef106536b8040080282d882b42edba67d1c0e6f | 1,209 | package zigzagsoft.agile.privviewer;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeCellRenderer;
import java.awt.*;
/**
* Created by jijichen on 7/4/2014.
*/
public class OneNodeRender extends Object implements TreeCellRenderer {
JLabel label;
OneNodeRend... | 28.785714 | 87 | 0.589744 |
742868e021aea93b504313d0b79f2a6c9ae12ec5 | 446 | package gunging.ootilities.gunging_ootilities_plugin.misc.chunks;
import org.bukkit.Location;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Executes an operation on every entry of a chunk map, including null entries
*/
@FunctionalInterface
public interface ChunkForEach... | 22.3 | 78 | 0.748879 |
cb8cf6ceee479542e6f14faad514015f237da517 | 1,139 | /*
* Copyright (c) 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... | 26.488372 | 79 | 0.712906 |
152f8ceb4ee0b273e7531a4330f81178fac1a49a | 638 | package com.fastFoodStoresSystem.dto;
public class StoreFoodDTO {
private long id;
private FoodDTO foodDTO;
private double price;
public StoreFoodDTO() {
}
public StoreFoodDTO(long id, FoodDTO foodDTO, double price) {
super();
this.id = id;
this.foodDTO = foodDTO;
this.price = price;
}
public lo... | 15.190476 | 62 | 0.680251 |
9756baced0013249645a0c214619488f80f684a4 | 605 | import java.util.Scanner;
public class ProbabilityRandomNum {
public static void main(String args[] ) throws Exception {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
if(c>= a+b)System.out.prin... | 22.407407 | 60 | 0.452893 |
5bfd44a363c9348fa03cb29b5d0ad4b23b7f7d51 | 513 | /*
* Copyright (c) 2020 sthlike.com.
*/
package com.sthlike.algorithm.sort;
public class Utils {
public static void insert(int[] ints, int srcIndex, int destIndex) {
int temp = ints[srcIndex];
for (int i = srcIndex; i > destIndex; i--) {
swap(ints, i - 1, i);
}
ints[... | 22.304348 | 72 | 0.555556 |
83f679be8a2667320800e0c6fb04bb0420124a92 | 1,691 | /*
* Licensed to Think Big Analytics, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Think Big Analytics, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"... | 40.261905 | 123 | 0.74453 |
15e3ecc95596b9ad19fcf4d5dd935c8545067240 | 2,426 | package com.mycode.xml.pure2048;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by xia_m on 2017/11/5/0005.
*/
public class Config {
public static int... | 26.369565 | 65 | 0.516076 |
7083e39ebc80b812491523fc680d3d98e7c79435 | 372 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge;
/*
* Listener for receiving window focus events.
*/
public interface WindowFocusChangeListene... | 23.25 | 66 | 0.747312 |
141dfb13afea5aafdd991ab4bf6fb3ffb071db4e | 412 | import java.util.Scanner;
public class JavaLoops1 {
private static final Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int N = scanner.nextInt();
scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
int i=1;
while(i<11) {
System.ou... | 22.888889 | 66 | 0.526699 |
1d1aae8a73b12fbf3e55b5edfd9f8587ebb5bf39 | 604 | import java.util.Scanner;
public class EulerTotientFunction {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter the nth value to find : ");
int n = scan.nextInt();
System.out.println("Phi value for " + n + " is : " + phi(n));
... | 25.166667 | 69 | 0.496689 |
31eba6387938b1e1a5b7393ec2d1bedcc6452a68 | 1,402 | /*
* 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 AQSaga;
import java.text.MessageFormat;
import java.util.ResourceBundle;
import javax.jms.JMSException;
/**
*
* @author pna... | 26.961538 | 80 | 0.634094 |
a2fc6f8fd57aaabec99c4ecce5d07813ac94756f | 200 | package com.lx.demo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lx.demo.domain.User;
/**
* @author zhaoz
*/
public interface UserMapper extends BaseMapper<User> {
}
| 18.181818 | 55 | 0.76 |
752cbf985028f803576881141bf55346f095e344 | 3,301 | package gui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.util.Properties;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swin... | 31.141509 | 116 | 0.756135 |
893f2beaf169a32d156e57cf4c9f7b4430bf6d2b | 3,766 | package com.smlnskgmail.jaman.ormlitedatabackup.ui;
import androidx.test.espresso.contrib.RecyclerViewActions;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import com.smlnskgmail.jaman.ormlitedatabackup.MainActivity;
import com.smlnskgmail.jaman.ormlitedatabackup.R;
import co... | 29.421875 | 104 | 0.644716 |
7891d0506de239aa88b763d4d097fe4b789b1521 | 892 | package org.elasticsearch.index.analysis;
import org.apache.lucene.analysis.Analyzer;
import org.elasticsearch.env.Environment;
import org.ngram.config.Configuration;
/**
* @author yanxin
* @date 2021/2/20
*/
public class NGramAnalyzer extends Analyzer {
private Configuration configuration;
public NGra... | 24.108108 | 81 | 0.679372 |
85b8cf5d851ed656825ef92861355cbd59ef7934 | 3,899 | package com.stockingd.cinedex.movie_details.trailer;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.view.LayoutInflater;
import android.view.View;
... | 34.201754 | 123 | 0.659656 |
22dc4e441240193e1c999f064cade25b1f93474a | 146 | package com.dotterbear.jobad.reader.data.model;
public enum WebSiteEnum {
JOBSDB;
public String getName() {
return this.name();
}
}
| 12.166667 | 47 | 0.684932 |
81f07542caff3d17914677894212f46da9a03fe9 | 191 | package com.commitstrip.commitstripreader.common;
public interface JobListener {
void onPreExecute();
void onProgressUpdate(int percent);
void onCancelled();
void onPostExecute();
}
| 21.222222 | 49 | 0.774869 |
e284ee33a176656de9294913b7b18661114ca397 | 1,971 | /*
* 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 org.sleuthkit.autopsy.actions;
import org.openide.DialogDescriptor;
import org.openide.DialogDisplayer;
import org.openide.Not... | 36.5 | 100 | 0.661593 |
de31d4fd5567c6b9ab6bb4a171b6e946a9612c90 | 770 | package ru.DmN.tech.external.TRE.block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Material;
import net.minecraft.util.math.BlockPos;
import org.jetbrains.annotations.Nullable;
import ru.DmN.core.block.Machine;
import ru.DmN.core.block.entity.MachineBE;
import ru.DmN.tech.external.TRE.block.enti... | 32.083333 | 82 | 0.774026 |
4b8de34651da6ee1b2a8e963df8aa17f34576b19 | 2,595 | /*
* 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 ... | 26.752577 | 75 | 0.613487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.