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 |
|---|---|---|---|---|---|
645cb0aa0700ca8685ea611c9a8233405f0b1dc7 | 605 | package com.hribol.bromium.common.replay;
import com.hribol.bromium.replay.ReplayingState;
import com.hribol.bromium.replay.filters.StateConditionsUpdater;
/**
* Updates a condition by setting it to satisfied and signalizes if the current
* synchronization event that we are waiting for is satisfied
*/
public class... | 35.588235 | 82 | 0.798347 |
7b4aad10bb168edab88979f609ffee8669ea0060 | 3,594 | /*
* Copyright (C) 2006-2020 Talend Inc. - www.talend.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 37.4375 | 126 | 0.685031 |
0e72e1e6d8819a4d282baa28e6c0c9515b5fe9a7 | 2,171 | package net.obvj.confectory;
import java.util.Optional;
/**
* A base interface for objects that retrieve configuration data.
*
* @param <T> the source type which configuration data is to be retrieved
*
* @author oswaldo.bapvic.jr (Oswaldo Junior)
* @since 0.1.0
*/
public interface ConfigurationDataRetriever<T>... | 31.926471 | 88 | 0.662828 |
1a18ad2b256ea082f3b49e2ce7add48bbf15e0ec | 626 | package com.atguigu.gmall.item.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.*;
/**
* @author saberlin
* @create 2021/12/16 11:17
*/
@Configuration
public class ThreadPoolConfig {
@Bean
public ExecutorSe... | 27.217391 | 81 | 0.683706 |
830b3078a5d8bf03424cf37f0feb74e6470c4220 | 451 | package fwcd.whiteboard.protocol.request;
import fwcd.whiteboard.protocol.dispatch.WhiteboardServer;
public class GetAllItemsRequest extends Request {
protected GetAllItemsRequest() {}
public GetAllItemsRequest(long senderId) {
super(senderId, RequestName.GET_ALL_ITEMS);
}
@Override
public void sendTo(Whit... | 20.5 | 58 | 0.776053 |
114c5291d9cde2334da9525e85123a036dd9c1fe | 1,287 | /*
* 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 uk.ac.sanger.phenodigm2.model;
/**
*
* @author Jules Jacobsen <jules.jacobsen@sanger.ac.uk>
*/
public class Dis... | 28.6 | 101 | 0.626263 |
5290deab0c75037d12ccc84458030406c66bd12e | 1,335 | package com.musicallcommunity.musicallback.repository.impl;
import com.musicallcommunity.musicallback.model.Conversation;
import com.musicallcommunity.musicallback.repository.ConversationRepository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
im... | 29.021739 | 92 | 0.669663 |
65f2fc1355c1eeb8da5b4b4fea7aab734daa380a | 618 | package de.chrissx.fixe4j;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
public class Fixe {
public static byte[] keyFromStr(String str)
{
return str.getBytes(StandardCharsets.US_ASCII);
}
public static byte[] keyFromInt(int i)
{
return ByteBuffer.allocate(4).putInt(i).array();
}
... | 19.3125 | 59 | 0.669903 |
26f8c15f27c077b9f81effa3634e6e3302aa5caa | 3,396 | /**
* Copyright © 2006-2016 Web Cohesion (info@webcohesion.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 37.318681 | 181 | 0.739988 |
a0eb410db7405bf1430649d601606350c1c9e460 | 5,422 | /*
* Copyright 2005 David M Johnson (For RSS and Atom In Action)
*
* 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 require... | 39.289855 | 115 | 0.620804 |
ffb9fcd6801516267d4142663bf38cc66c91304d | 2,078 | /*
* Copyright Ningbo Qishan Technology 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 applicable ... | 28.465753 | 100 | 0.664581 |
8f2a31e884cb7da1866cdd3b4f239d5e5cd91e8b | 216 | package com.pushcart.repository;
import com.pushcart.model.Basket;
import org.springframework.data.jpa.repository.JpaRepository;
public interface BasketRepository extends JpaRepository<Basket, Long> {
}
| 21.6 | 72 | 0.791667 |
063a5dfa06bbe0491bb927086bdeedf386c5d1b1 | 3,850 | package com.g13.pdt.servicios;
import java.util.Date;
import java.util.List;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceException;
import javax.persistence.TypedQuery;
import javax.validat... | 28.947368 | 126 | 0.756623 |
ce5eb81540e2b8943ae8ee1454f6e08631e148c8 | 169 | package com.intellij.execution;
import java.util.concurrent.Future;
/**
* @author traff
*/
public interface TaskExecutor {
Future<?> executeTask(Runnable task);
}
| 15.363636 | 39 | 0.733728 |
6ff8cb469fef1736cdfd8fa18d7df6ed5156c093 | 1,247 | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2015 wcm.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 ap... | 30.414634 | 105 | 0.727346 |
3fe7a54fbf6b4b26b5b3346280230dbd3d5401ca | 355 | package org.springframework.autobuilds.jpetstore.dao;
import java.util.List;
import org.springframework.dao.DataAccessException;
import org.springframework.autobuilds.jpetstore.domain.Category;
public interface CategoryDao {
List getCategoryList() throws DataAccessException;
Category getCategory(String category... | 23.666667 | 69 | 0.839437 |
9d94a455a4c08f9cef9e113a83fa14584ee12f37 | 4,393 | /**
* Copyright (c) 2000-2018 Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later... | 23.875 | 92 | 0.757796 |
785e4a879d11d48f7a940ddf474476ea77912715 | 921 | package com.inputstick.apps.kp2aplugin.remote;
import android.content.SharedPreferences;
import com.inputstick.api.layout.KeyboardLayout;
import com.inputstick.api.utils.remote.RemotePreferences;
import com.inputstick.apps.kp2aplugin.PreferencesHelper;
public class KP2ARemotePreferences extends RemotePreferences {
... | 31.758621 | 79 | 0.813246 |
3d1f6c3aca0da039e250c786e0c3135d5f60824c | 116 | package ro.lau.app.assetresizer.business;
/**
* Created by lau on 15.02.2017.
*/
public class ImageProcessor {
}
| 14.5 | 41 | 0.706897 |
20bdcc53833072470418f4affdae2653d67022e7 | 2,375 | package ca.bc.gov.hlth.hnsecure.message;
import java.util.HashMap;
import java.util.Map;
public class MessageUtil {
public static final Map<String, String> mTypeCollection = new HashMap<String, String>();
static {
mTypeCollection.put("R15", "RAICHK-BNF-CVST");
mTypeCollection.put("R33", "RAICMPL-PR-INFO");
... | 35.447761 | 89 | 0.690105 |
b8f891594ba16c09881d899e4a49e7badf001b0b | 2,298 | package com.wayne.algo.sort;
public class ShellSort {
private int length;
private int max;
private int array[];
public ShellSort() {
}
public ShellSort(int length, int max) {
init(length, max);
}
private void init(int length, int max) {
this.length = length;
... | 27.686747 | 141 | 0.54047 |
ab2233deb5fd2e6448e465eb4147d526c3add0bc | 1,400 | package com.gabia.internproject.util.ObjectMaping.MapStruct;
import com.gabia.internproject.data.entity.PlaceType;
import com.gabia.internproject.data.entity.Role;
import com.gabia.internproject.dto.response.PlaceTypeResponseDTO;
import com.gabia.internproject.dto.response.RoleResponseDTO;
import org.mapstruct.Mapper... | 30.434783 | 91 | 0.755714 |
d0a95a8f92d347dcc4fdb5f8964a0068f746e60f | 956 | package org.nanotek.beans.entity;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.validation.Valid;
import org.nanotek.entities.AreaBeginDateEntity;
import org.nanotek.entities.MutableBeginDayEntity;
import org.nanotek.entities.MutableBeginMonthEntity;
import org.nanotek.ent... | 23.9 | 92 | 0.805439 |
89eec02dc735a5078dfe57ab533352ac4ffb4eec | 866 | package frc.robot.utils;
import edu.wpi.first.wpilibj.Compressor;
import org.montclairrobotics.sprocket.loop.Priority;
import org.montclairrobotics.sprocket.loop.Updatable;
import org.montclairrobotics.sprocket.loop.Updater;
import org.montclairrobotics.sprocket.utils.Togglable;
public class PressureRegulator impleme... | 24.742857 | 64 | 0.669746 |
2d344c0d6da19318b6c7850887acf9458887225e | 6,709 | package net.exploitables.slashlib.context;
import discord4j.core.event.domain.interaction.MessageInteractionEvent;
import discord4j.core.object.entity.Guild;
import discord4j.core.object.entity.Member;
import discord4j.core.object.entity.Message;
import discord4j.core.object.entity.User;
import discord4j.core.object.e... | 36.661202 | 104 | 0.661201 |
292567339dcea42cc569b1528af9b141f052b3bf | 2,716 | /*
* Copyright (c) 2021 Raffael Herzog
*
* 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,... | 46.827586 | 150 | 0.730118 |
9924905bd23c18bf1fe585151f81a42400823a22 | 5,860 | package com.suncreate.pressuresensor.fragment.me;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.google.gson.reflect.TypeToken;
import com.suncreate.pressuresensor.AppContext;
import com.suncreate.pressuresensor.R;
import com.suncreate.pressuresensor.base.BaseDetailFrag... | 30.051282 | 109 | 0.594881 |
28d02fddcc2d19d8c0c09f790867d5cae55318f5 | 11,930 | package opencrypto.test;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.Security;
import java.util.Arrays;
import java.util.Random;
import javacard.framework.ISO7816;
import javax.smartcardio.... | 34.183381 | 165 | 0.549288 |
c5c9bbdd30f0b152ece56f13a086c5468c695ae3 | 289 | package scratch.UCERF3.logicTree;
import java.util.List;
public class LogicalOrTrimmer extends LogicalAndOrTrimmer {
public LogicalOrTrimmer(List<TreeTrimmer> trimmers) {
super(false, trimmers);
}
public LogicalOrTrimmer(TreeTrimmer... trimmers) {
super(false, trimmers);
}
}
| 18.0625 | 59 | 0.768166 |
164f62b2a652e40e720005e2c56ce1d50178a344 | 2,990 | package idv.const_x.tools.coder.generator.view.field;
import java.util.HashMap;
import java.util.Map;
import idv.const_x.file.PlaceHodler;
import idv.const_x.tools.coder.generator.Field;
import idv.const_x.tools.coder.generator.view.ViewContext;
public class RichTextFieldGenerator extends AbsFieldGenerator{... | 48.225806 | 240 | 0.66388 |
054e2ca6d7d95eebc1320be92f5d0401ac01c397 | 359 | package com.milchstrabe.rainbow.tcp.service;
import com.milchstrabe.rainbow.exception.AuthException;
import com.milchstrabe.rainbow.server.domain.ClientType;
import com.milchstrabe.rainbow.tcp.typ3.netty.session.Session;
public interface ISignInService {
void signIn(String token, String cid, ClientType cType, Se... | 32.636364 | 98 | 0.824513 |
5afbf4f3bb7a6731a933db38e2d1a5f8a7c4cc5c | 454 | package cn.gson.oasys.mapper;
import cn.gson.oasys.mappers.DiscussListPOMapper;
import lombok.extern.slf4j.Slf4j;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
@SpringBootTes... | 21.619048 | 60 | 0.819383 |
02df542b52bed52bcfa858e69d072afeae7ac3f1 | 8,571 | package com.storycraft.core.player.home;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import com.storycraft.StoryPlugin;
import com.storycraft.command.ICommand;
import com.storycraft.config.json.JsonConfigEntry;
import com.storycraft.config.json.JsonConfigFile;
import com.storycraft.StoryMin... | 34.011905 | 307 | 0.601447 |
56a7d005ec62aa0ce04b3e86aa357aab1468eecc | 4,905 | package net.minecraft.util;
import java.io.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.security.spec.*;
import java.security.*;
import org.apache.logging.log4j.*;
public class CryptManager
{
private static final Logger LOGGER;
public static SecretKey createNewSharedKey() {
t... | 36.604478 | 142 | 0.641998 |
caa80005b5d66239c6ac040f7be9ae251415ecff | 1,845 | /*
* Copyright 2019 ConsenSys AG.
*
* 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 wr... | 39.255319 | 118 | 0.757182 |
44394df01a229f18ea2aa6ae21fd03ce15ba877b | 216 | package com.rpa.rpaplatform;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class RpaplatformApplicationTests {
@Test
void contextLoads() {
}
}
| 15.428571 | 60 | 0.791667 |
7e381de61cea6d93721e8271f407f30d46fe5ef0 | 5,627 | /*
* 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
* dist... | 27.052885 | 102 | 0.54203 |
2459cea5257e0a3c45c1abbbdd5adf546ca19ec6 | 8,245 | /*
Copyright (c) 2000-2015 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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 limitat... | 41.432161 | 121 | 0.69812 |
8ecf03ed48fdf648f1b69b84f6c7eec480f427ce | 164 | import java.util.List;
public class SingleCommand {
String cmd;
List<String> args;
public SingleCommand(String c, List<String> ar){
cmd = c;
args = ar;
}
} | 16.4 | 49 | 0.689024 |
073f2f41e8081f92c622f4419cc5bc3023519796 | 1,130 | /*
* Copyright 2015-16, Yahoo! Inc.
* Licensed under the terms of the Apache License 2.0. See LICENSE file at the project root for terms.
*/
package com.yahoo.sketches;
import com.yahoo.memory.Memory;
/**
* Base class for serializing and deserializing custom types.
* @param <T> Type of item
*
* @author Alexan... | 28.974359 | 102 | 0.716814 |
b632213f487015b2298ea28e8acae8e17381fe12 | 1,083 | package controller;
import dao.getTableNamesDAO;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.List;
/**
* Controller for tableHandler
* this class generates a JSON Array of all tables in the targetdatabase
*/
public class TableJsonCreator {
/**
* de... | 22.102041 | 93 | 0.626039 |
759f19e84ab62383ba90c9b5dc78e59145c383bf | 871 | package ru.job4j.dao;
import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
/**
* @author Hincu Andrei (andreih1981@gmail.com)on 16.03.2018.
* @version $Id$.
* @since 0.1.
*/
public class HibernateService {
//
// private static final SessionFactor... | 28.096774 | 82 | 0.647532 |
25b6f9d4e2e334fddbfef9d93cb3cf68c7d20726 | 1,628 | package com.github.polyang.istudy.framework.starter.session.manager.impl;
import com.github.polyang.istudy.framework.starter.session.generator.MicroSessionIdGenerator;
import com.github.polyang.istudy.framework.starter.session.generator.impl.GeneralMicroSessionIdGenerator;
import com.github.polyang.istudy.framework.st... | 36.177778 | 105 | 0.801597 |
61797b832707a10e15624d236f30c7ba5fefb575 | 221 | package com.longluo.android.wxapi;
import com.umeng.socialize.weixin.view.WXCallbackActivity;
/**
微信登录回调(请注意这个 Activity 放置的包名要和当前项目的包名保持一致,否则将不能正常回调)
*/
public final class WXEntryActivity extends WXCallbackActivity {} | 27.625 | 64 | 0.823529 |
cc74950c531294c6a8032546929ed39eed159428 | 2,229 | package comp1110.ass2;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
import static org.junit.Assert.assertTrue;
public class IsPiecePlacementWellFormedTest {
@Rule
public Timeout globalTimeout = Timeout.millis(1000);
private void test(String piecePlacement... | 29.72 | 88 | 0.548677 |
54a0fd57467d3f92bbe6a471447829df5ae13c26 | 379 | package dev.vality.hooker.dao;
import dev.vality.hooker.model.EventType;
import lombok.*;
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WebhookAdditionalFilter {
private EventType eventType;
private String shopId;
private String invoiceStatus;
private String invoicePayme... | 21.055556 | 46 | 0.796834 |
594da03456fd32ad8b2002d03be17d83e4a01269 | 1,673 | package me.zhengjie.modules.business.creditCard.domain;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
/**
* @author leo
* @date 2019-12-25
*/
@Entity
@... | 20.9125 | 92 | 0.661686 |
76d3def1c6c58ed8a2b719505c312a220f6611fd | 9,758 | /*
* 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 ... | 36.546816 | 99 | 0.668477 |
1028620fdbf316a0619e0ff3ba0dbebfc35bdabf | 1,621 | package net.codejava.Controller;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.text.ParseException;
import java.util.Properties;
import org.json.JS... | 28.946429 | 102 | 0.775447 |
71e83785125a34a7b6acc200fb7bacbbe4ece120 | 7,153 | package org.nem.core.node;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.*;
import org.junit.*;
import org.nem.core.serialization.*;
import org.nem.core.test.*;
import java.util.*;
public class NodeTest {
private static final NodeIdentity DEFAULT_IDENTITY = new WeakNodeIdentity("bob");
private stati... | 35.410891 | 121 | 0.752691 |
ed065b4ad1e91980b324cad23428c0ad5bef1aba | 11,330 | /*
* ============LICENSE_START==========================================
* ONAP Portal SDK
* ===================================================================
* Copyright © 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================
*
* Unless oth... | 35.29595 | 110 | 0.645984 |
01160dc41260ba9e5f613a84b76d27ebb65aff75 | 4,432 | package com.neconico.neconico.config.security.oauth;
import com.neconico.neconico.dto.users.UserJoinDto;
import lombok.Builder;
import lombok.Getter;
import java.time.LocalDateTime;
import java.util.Map;
import java.util.UUID;
@Getter
public class OAuthAttributes {
private Map<String, Object> attributes;
pr... | 34.092308 | 129 | 0.633123 |
1526c9fc1be3ed86eaa18d7ebc716a2138c13eee | 3,679 | package com.lrk.xk.xk.model;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author lrk
* @date 2019/4/27 上午9:14
*/
@Entity
public class Teacher {
private int id;
private String tno;
private String password;
priva... | 22.02994 | 95 | 0.525686 |
24df967fdf2c3c4859d5451e33a1b96370c940f8 | 5,935 | package com.github.simondan.svl.app.communication;
import android.content.Context;
import com.github.simondan.svl.app.communication.config.*;
import com.github.simondan.svl.app.communication.exceptions.*;
import de.adito.ojcms.rest.auth.api.AuthenticationRequest;
import okhttp3.*;
import javax.net.ssl.*;
import java.... | 28.95122 | 116 | 0.683235 |
35a267acbd4c24d3b916e2944536724c711b4e58 | 1,100 | /*
* 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 launcher;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JPanel;
import jav... | 26.829268 | 114 | 0.673636 |
59b0a662664b92823fd3db29bdbd51578fefd665 | 508 | package Inter_threadCommunication.pipeStream.pipeReaderWrite;
import java.io.PipedWriter;
/**
* Created by xianpeng.xia
* on 2019-06-09 21:32
*/
public class ThreadWrite extends Thread {
private WriteData writeData;
private PipedWriter pipedWriter;
public ThreadWrite(WriteData writeData, PipedWriter ... | 21.166667 | 70 | 0.708661 |
718522f874ecdb36184cd559113f07dd8366617e | 5,228 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 28.107527 | 117 | 0.686878 |
99a3ccbfdc672a626b2cdaea98957dfe5c040f43 | 277 | package com.taller2dam.taller.repository;
import com.taller2dam.taller.dao.Servicio;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ServicioRepository extends JpaRepository<Servicio, Long> {
//Optional<Servicio> findByName(String name);
}
| 30.777778 | 75 | 0.819495 |
a4230c103a4398fdb426e1e22e7044a21c16f606 | 347 | package org.dbhaskaran.studentdal.service;
import java.util.List;
import org.dbhaskaran.studentdal.entities.Student;
public interface IStudentService {
Student saveStudent(Student student);
Student updateStudent(Student student);
void deleteStudent(Student student);
Student getStudentbyId(long id);
List<St... | 18.263158 | 50 | 0.801153 |
5a4868ce3397226769941300fce6be6540c4f36d | 1,516 | class Solution {
public List<Integer> countSmaller(int[] nums) {
int n = nums.length;
Pair[] pairs = new Pair[n];
for(int i=0; i<n; i++) {
pairs[i] = new Pair(nums[i], i);
}
int[] count = new int[n];
mergeSort(count, pairs, 0, n-1);
List<Integer> ... | 27.563636 | 81 | 0.455805 |
1b0f039e47ad67e6b534d05a16b447cb3d435083 | 1,219 | import org.junit.Test;
/**
* @author Politeness Chen
* @create 2019--05--13 22:28
*/
public class _07_Reverse {
public int reverse(int x) {
char[] chars = Long.toString(x).toCharArray();
if (chars[0] != '-') {
int i = 0;
int j = chars.length - 1;
while (i < j... | 22.574074 | 63 | 0.42904 |
4e51f4be95152ee1c6845b430e178b6843f044aa | 314 | package qowyn.ark.tools.data;
import qowyn.ark.ArkSavegame;
import qowyn.ark.GameObjectContainer;
import qowyn.ark.tools.LatLonCalculator;
public interface DataContext {
public LatLonCalculator getLatLonCalculator();
public GameObjectContainer getObjectContainer();
public ArkSavegame getSavegame();
}
| 19.625 | 50 | 0.812102 |
136c4f862a7c57a34b2ccd0b0493afe44e4ddbe5 | 3,986 | /*
// <editor-fold desc="The MIT License" defaultstate="collapsed">
* The MIT License
*
* Copyright 2022 Studio 42 GmbH (https://www.s42m.de).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | 22.647727 | 81 | 0.666332 |
7aab3190ff8354dbd8121345d1b63d1476fbff54 | 1,979 | /*
* Copyright 2016 Heng Yuan
*
* 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 ag... | 25.050633 | 77 | 0.725114 |
366c0e3cdcc4f18410244f8b31b89b51e0eb95a7 | 119 | package swarm.shared.json;
public interface I_ReadsJson
{
void readJson(I_JsonObject json, A_JsonFactory factory);
}
| 17 | 57 | 0.806723 |
7248d05a5920468df1ee150f44cd1346ecb95db2 | 2,439 | package org.pro.ygcms.core.domain.channel;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.pro.ygcms.core.domain.CmsAbstractEntity;
/**
* 栏目实体类
* 作者:郭凯
* 时间:2015年7月1日
*/
@Entity
@Table(name = "cms_channel")
public class CmsChannel extend... | 17.297872 | 68 | 0.664207 |
bf5af3829e270c93f02f69689c3779e78f2ba2e3 | 391 | package com.training.core.mybatis;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by ZhenWeiLai on 2016/11/22.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @in... | 24.4375 | 44 | 0.790281 |
40851dc898b91e03b0742a0ba729c368dd21cb67 | 1,146 | package mx.volcanolabs.urmovie.entities;
import java.util.List;
public class MovieDetail {
private Movie movie;
private List<MovieVideo> movieVideos;
private List<MovieReview> movieReviews;
private MovieFavorite movieFavorite;
public MovieDetail() {}
public MovieDetail(Movie movie, MovieFavo... | 22.92 | 66 | 0.67452 |
f956e413dd7f382e29a9c055a80de53de3770e33 | 19,724 | /*
* Copyright (c) 2009 - 2020 CaspersBox Web Services
*
* 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 appl... | 25.783007 | 135 | 0.569256 |
6f7f345a8622a94b39cfbd9d4bf8e2cc878502f8 | 2,135 | /*
* (C) Copyright IBM Corp. 2020.
*
* 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... | 45.425532 | 118 | 0.798595 |
0877011f70d20e738b4c808c58a30bf5a34affc6 | 2,470 | package dev.cheerfun.pixivic.biz.web.admin.po;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.f... | 33.378378 | 155 | 0.733603 |
38d68d7a8ec760f9a3e0df9132e386d07e1eefa2 | 3,876 | package org.lyj.ext.html.web.grabber.html;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.lyj.commons.util.StringUtils;
import org.lyj.ext.html.utils.HtmlParserUtil;
import org.lyj.ext.html.web.grabber.CrawlerSettings;
import org.ly... | 34 | 111 | 0.449948 |
e302d676bd2d3111f2900903bb51683ad0104adc | 323 | package xyz.erupt.mybatis.annotation;
import com.baomidou.mybatisplus.core.mapper.Mapper;
import java.lang.annotation.*;
/**
* @author YuePeng
* date 2021/3/12 16:38
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
public @interface BindMapper {
Class<? extends Mapper<?>> value();... | 17.944444 | 51 | 0.736842 |
aff604845367fe8f332b5538895a4e60806ff128 | 896 | package com.woowle.eggwithtomato.common.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 集群定时任务配置注解
* @author yuanlong.huang.o
*
*/
@Target({Ele... | 20.363636 | 57 | 0.728795 |
5cac499f1ececca21f79a27ae627d767d48c31c2 | 11,830 | package org.mobeho.calendar;
import java.time.LocalDate;
/// <Description>
/// Author: Michael Maimon
/// Copyright (C) Mobeho. All rights reserved.
/// </Description>
public class Christian
{
private int dayOfWeak;
private int dayInMonth;
private int month;
private int dayInYear;
private int yea... | 27.835294 | 138 | 0.52071 |
718d640d7095c72a87181a83b4a15d6dcf75e177 | 7,715 | package bluetooth.servidor;
import java.io.DataInputStream;
import java.io.IOException;
import java.util.Vector;
import javax.bluetooth.RemoteDevice;
import javax.microedition.io.Connector;
import javax.microedition.io.StreamConnection;
import javax.microedition.io.StreamConnectionNotifier;
import org.bouncycastle.uti... | 34.596413 | 136 | 0.560207 |
13a219921deb11cc572cad2a726eb8ccd3768fa9 | 8,511 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 57.897959 | 114 | 0.513453 |
f9e875d4d646bbe288a636c9a2337939d5f608a9 | 3,792 | package com.google.android.gms.games.achievement;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import com.google.android.gms.common.data.C0705d;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.games.Player;
import com.google.android.gms.... | 26.333333 | 138 | 0.632648 |
58eb4357610274c4b0d16a511536d4c67d608cf6 | 892 | package LabExercise11;
import java.util.ArrayList;
import java.util.Scanner;
public class RemoveDuplicate {
public static void removeDuplicate(ArrayList list) {
for (int i = 0; i < list.size(); i++) {
for (int j = i + 1; j < list.size(); j++) {
if (list.get(i).equals(list.get(j... | 28.774194 | 56 | 0.503363 |
8d4faad9ebf6ebcd3c8b8dd800a997c1f43acd08 | 214 | package org.streetjava.lesson.helloworld;
/**
*
* @author dungld
*/
public class Teacher implements Test{
@Override
public void testLanguage(Sayable sayable) {
sayable.sayHello();
}
}
| 14.266667 | 47 | 0.649533 |
c9209ee54571f600dc14668dcdb91f13a63a1e8f | 17,903 | // $Id: SHA1.java,v 1.1 2002/09/05 19:27:06 baford Exp $
//
// $Log: SHA1.java,v $
// Revision 1.1 2002/09/05 19:27:06 baford
// Put together the on-line source code and examples page for the thesis.
//
// Revision 1.1 2002/09/02 20:14:03 baford
// Copied test suite from ICFP paper directory
//
// Revision 1.1 200... | 37.611345 | 120 | 0.417695 |
3bcc2db39b74ba54292c7cf35066c3b3dbcc767d | 801 | package ru.job4j.list.linkedlist.stack;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
public class SimpleStackTest {
@Test
public void pushSomeElementToOurStack() {
SimpleStack<Integer> simpleStack = new SimpleStack<>();
sim... | 29.666667 | 63 | 0.665418 |
174766ac210e0e4c51303b3193ed00e0f9b6b59c | 2,563 | package it.polimi.ingsw.client.view.cli.middle;
import it.polimi.ingsw.client.view.cli.CLIBuilder;
import it.polimi.ingsw.client.view.cli.CLIelem.body.PersonalBoardBody;
import it.polimi.ingsw.client.view.cli.layout.ResChoiceRowCLI;
import it.polimi.ingsw.client.view.cli.layout.SizedBox;
import it.polimi.ingsw.client.... | 45.767857 | 144 | 0.753024 |
059c3496bb64a07dc3beb3abd37d727a1fc48383 | 1,494 | package org.togglz.core.util;
import java.util.Set;
import org.togglz.core.Feature;
import org.togglz.core.context.FeatureContext;
import org.togglz.core.manager.FeatureManager;
/**
* An untyped feature can be used if the name of a feature is known but not the correct type of the feature enum. The real type
* of t... | 29.294118 | 127 | 0.64257 |
802c11fa998cd7ed5d3903a46ce2f873abedaa52 | 997 | package selim.rifts.items;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net... | 31.15625 | 99 | 0.796389 |
4785f4957ef42d3dfb043259285d8879c9a9b0db | 168 | package lmr.randomizer.randomization;
/**
* Created by thezerothcat on 8/19/2017.
*/
public enum ShopRandomizationEnum {
NONE,
CATEGORIZED,
EVERYTHING
}
| 15.272727 | 40 | 0.708333 |
131fed53c6b5d52b60253ba3ce8f8f127069d460 | 555 | package com.liuhuan.study.springcloud.alibaba.service;
import com.liuhuan.study.springcloud.entities.CommonResult;
import com.liuhuan.study.springcloud.entities.Payment;
import org.springframework.stereotype.Component;
/**
* @author LiuHuan
* @create 2020-02-25 18:30
*/
@Component
public class PaymentFa... | 30.833333 | 110 | 0.742342 |
7766aec5e0c13563308945dd526eff0ca7b51924 | 3,220 | package com.lakeel.altla.sample.weather.viewhelper;
import android.support.annotation.IdRes;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.NavUtils;
import android.support.v7.app.ActionBar;
import android... | 37.882353 | 117 | 0.692857 |
83284558ea3cb6117f8bf4092bb0a3979f55fe6a | 1,485 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest.model;
import java.io.Serializable;
import com.fasterxml.jackson.annotati... | 19.539474 | 69 | 0.734007 |
d2115df35b6b47e5d64cbeb3d38f5d1d2cdf990b | 789 | package com.frost_fox.jenkins.job_addon.description;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class BuildStatusTest {
@Test
public void returnsRunningStatusIfIsBuildingIsTrue() {
BuildStatus status = BuildStatus.from(true, true);
assertThat(sta... | 24.65625 | 75 | 0.730038 |
2e9863f87b83daa399f08ed931991404f9807451 | 78,592 | /*
* BytecodeTypeAnalysis.java
* Copyright 2008, 2009, 2010, 2011, 2012, 2013 Fiji Systems Inc.
* This file is part of the FIJI VM Software licensed under the FIJI PUBLIC
* LICENSE Version 3 or any later version. A copy of the FIJI PUBLIC LICENSE is
* available at fivm/LEGAL and can also be found at
* http://www... | 37.001883 | 184 | 0.399379 |
6c0163f435e01c5ba90d1362b1365c84903e3e2f | 5,061 | /*
* Copyright 2013-present Facebook, 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... | 37.488889 | 99 | 0.721597 |
4a86c757ae84a5dad07526101bde7f4585cc5e7e | 1,860 | package mcjty.meecreeps.api;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import org.apache.commons.lang3.tuple.Pair;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Collections;
import java.util.List;
/**
* A fa... | 34.444444 | 138 | 0.714516 |
80b25f4e726a7b2f455847de4d3b88cfbc9c67e6 | 419 | package com.groupdocs.ui.viewer.cache.mixin;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.groupdocs.viewer.FileType;
import com.groupdocs.viewer.results.Page;
import java.util.List;
public abstract class OutlookViewInfoMixIn {
OutlookViewInfoMixIn(@JsonProperty("fileType") FileType fileType, ... | 29.928571 | 159 | 0.787589 |
0ac6d05d6bf5cca428ed9f69f53b0f51c1abf748 | 4,731 | /*
* Copyright 2018 Google 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 ... | 39.425 | 98 | 0.760727 |
d6a9fb7be216147b83cc4b977c129ce611057b7a | 2,559 | package net.blay09.mods.hardcorerevival.network;
import net.blay09.mods.hardcorerevival.HardcoreRevival;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.network.NetworkDirection;
import net... | 60.928571 | 211 | 0.785854 |
646e3fc874a5a91a320b816af2b5c3a15dedd965 | 627 | /**
* @author David Manouchehri
* Created on 7/17/15 at 4:53 PM.
* All content is under the MIT License unless otherwise specified.
* See LICENSE.txt for details.
*
* Page 307, Question P6.6
*/
public class AlternatingSum {
public static void main(String[] args) {
int[... | 27.26087 | 75 | 0.545455 |
4b56182dbdbf61266e8763b4a79097a770226126 | 365 | import org.junit.Test;
import static org.junit.Assert.*;
public class KataIsquaTest {
private double precision = 0.0000000000001;
@Test
public void sampleTestCases() {
// assertEquals(0.0, KataIsqua.findUniq(new double[]{0, 1, 0,}), precision);
assertEquals(2.0, KataIsqua.findUniq(new doub... | 26.071429 | 89 | 0.657534 |
440c2628dca82af49e566f04d596f50771cced60 | 209 | package de.novatec.hawtio;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class HawtioApplicationTests {
@Test
void contextLoads() {
}
}
| 14.928571 | 60 | 0.784689 |
d24e554fc0a02b1827df96653b4b9b92dc1b1878 | 237 | package edu.mit.mitmobile2;
import android.content.Context;
public class LibraryLoanActionRow extends TwoLineActionRow {
public LibraryLoanActionRow(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
}
| 19.75 | 60 | 0.793249 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.