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 |
|---|---|---|---|---|---|
f02079bdd4b9270a7eaf9e68c01a3178adc02530 | 149 | package de.servicezombie.thymeleaf;
import org.thymeleaf.context.Context;
public interface ThymeleadContextFactory {
Context createContext();
}
| 14.9 | 42 | 0.812081 |
a8de64fa30934082525be7add58c19c048984b9e | 624 | package com.api.sportyyshoes.service;
import java.util.List;
import com.api.sportyyshoes.exceptionHandler.BusinessException;
import com.api.sportyyshoes.model.User;
public interface UserService {
public User createUser(User user) throws BusinessException;
public User updateUser(User user) ;
public User getUserBy... | 32.842105 | 63 | 0.814103 |
314341d9f467c01ca13ea8a708d04daeb0262303 | 2,917 | package helvidios.cp.ch3.completesearch;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class _00296_Safebreaker {
public static void main(String... args){
String data = "4\r\n" +
"6\r\n" +
"9793 0/1\r\n" +
"2384 0/2\r\n" +
"6264 0/1\r\n" +
"3383 1/0\r\... | 29.464646 | 118 | 0.639013 |
dd877a788fe18f9baef407980dfabfbf4943f24b | 3,891 | package JavaConcurrency.cJDKTool;
import java.util.concurrent.locks.StampedLock;
//14 锁接口和类
public class nLock {
//14.1 synchronized的不足之处
//14.2 锁的几种分类
//可重入锁和非可重入锁
//锁支持一个线程对资源重复加锁。
//synchronized关键字就是使用的重入锁。
//ReentrantLock的中文意思就是可重入锁。
//公平锁和非公平锁
... | 43.233333 | 119 | 0.485479 |
cdc7e2983ea5ce824c128b90d1ea473d7e76a0e5 | 467 | package io.protostuff.compiler.model;
import java.util.List;
import java.util.Map;
import org.immutables.value.Value;
/**
* Module represents a compilation unit - a set of proto files,
* generator name and generation options.
*
* @author Kostiantyn Shchepanovskyi
*/
@Value.Immutable
public interface Module {
... | 17.296296 | 63 | 0.713062 |
894052792ad8c6e3cc476316c4f96d661736f9f8 | 760 | package com.poa.POAvanzados.dao.row_mappers;
import com.poa.POAvanzados.model.item_model.ItemCount;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ItemCountRowMapper implements RowMapper<ItemCount> {
@Override
public ItemCount mapRow(Resu... | 36.190476 | 77 | 0.747368 |
1a48d74beeb144276837f39b0b6a7aa43ea3ef29 | 764 | /**
* author: salimt
*/
package ui;
import model.*;
import static model.TransactionType.*;
public class Main {
public static void main(String[] args) {
TransactionSummary ts = new TransactionSummary("Ada Lovelace");
Transaction t1 = new Transaction("Movie", "May 1st", 10, ENTERTAINME... | 29.384615 | 82 | 0.628272 |
0987e773176e9b66ac29d628c425a4b0cb0cce9e | 2,696 | package com.exasol.projectkeeper.sources;
import static com.exasol.projectkeeper.shared.config.ProjectKeeperConfig.SourceType.MAVEN;
import static com.exasol.projectkeeper.shared.config.ProjectKeeperModule.JAR_ARTIFACT;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import ... | 49.018182 | 112 | 0.72181 |
682d01727d9075e681f8dc7036e25d2c419d056b | 203 | package net.duguying.o.exception;
/**
* Created by duguying on 15/11/25.
*/
public class DBException extends RuntimeException {
public DBException(Exception cause) {
super(cause);
}
}
| 18.454545 | 51 | 0.684729 |
8ef25c94edb0f63e0aa65c0c5622cc1bb1911e4b | 8,563 |
package ro.pub.cs.systems.eim.practicaltest02.network;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.BufferedRead... | 44.832461 | 127 | 0.621511 |
e98c259c7e0db0b616428d85d4173333be7cb7f1 | 2,473 | package ar.edu.itba.paw.webapp.rest.error;
import ar.edu.itba.paw.model.error.ErrorType;
import ar.edu.itba.paw.model.error.GetOutError;
import ar.edu.itba.paw.model.support.GetOutException;
import ar.edu.itba.paw.webapp.support.GetOutMediaType;
import javax.ws.rs.NotAllowedException;
import javax.ws.rs.NotFoundExcept... | 38.640625 | 116 | 0.767489 |
593787cbb1f641ba4b017452d534815ce243989a | 481 | package ru.merkurev.hibernate.training.spring.jdbc.entity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.time.LocalDate;
/**
* Person entity.
*
* @author MerkurevSergei
*/
@Getter
@Setter
@ToString
@NoArgsConstru... | 18.5 | 58 | 0.775468 |
22ca153fe7bc64c2d4fa6fd2f660b33101bf2e67 | 1,923 | package org.infinispan.cdi;
import org.infinispan.cdi.util.defaultbean.DefaultBean;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise... | 40.914894 | 126 | 0.785751 |
d7297b19ed9ea58c56dc5c9515cffbe328810e00 | 216 | package javaf.prelude;
/**
* This is essentially a binary operator, say a function with two arguments where argument types and result type coincide.
*/
public interface BinaryOperator<X> {
X apply(X x1, X x2);
}
| 24 | 122 | 0.740741 |
eccda536794b5e275bfd7266b2c9a98c79c33286 | 2,792 | package dev.axt.fsmw.core;
import dev.axt.fsmw.representation.ActorTrigger;
import dev.axt.fsmw.representation.Trigger;
import org.apache.commons.lang3.ArrayUtils;
/**
* Workflow's state configuration
*
* @author alextremp
* @param <STATE>
* @param <TRIGGER>
* @param <ROLE>
*/
public class WorkflowStateConfig<... | 31.022222 | 164 | 0.726719 |
cf78f3fb9b11044ccca72aa6d469c97c36b81fe3 | 1,722 | /*
* Copyright 2015 Textocat
*
* 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 la... | 26.90625 | 78 | 0.708479 |
96f572df3b3e3a9db0bec39fd18b69edf45811a0 | 99 | package datastructures.tree;
public interface MaxValue {
int getMaxValue(Node currentNode);
}
| 16.5 | 38 | 0.777778 |
cea0e01d0623eebe77b20d793e27fe807ad4a439 | 1,102 | package cc.mrbird.febs.dca.service;
import cc.mrbird.febs.dca.entity.DcaBScientificprize;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;
import cc.mrbird.febs.common.domain.QueryRequest;
import com.baomidou.mybatisplus.core.metad... | 31.485714 | 126 | 0.788566 |
81a4b2ce4ba51bf00a6c869f4a0acdabe551ce58 | 70 | package testPullUpGen.test31d.test;
public class C implements B {
}
| 11.666667 | 35 | 0.771429 |
ece30b61bbeb2396038eeafb9496e2e14dc31b16 | 2,633 | package com.eva.hr.report.conts;
public class EVAConstants {
public static final String COMMA = ",";
public static final String NEW_LINE = "\r\n";
public static final String PUNCH_IN = "Punch In";
public static final String PUNCH_OUT = "Punch Out";
public static final String OVERTIME_IN = "Overtime In";
public... | 38.720588 | 76 | 0.742119 |
714062d5007c11b921a30ebf7616be056389d0ae | 1,415 | /*
* Copyright (C) 2015 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... | 33.690476 | 80 | 0.718021 |
0c4dfc25ba6c019f6fd4a2ee6d88ad9b78014006 | 494 | package com.myprogect.mywarehouse.service;
import com.myprogect.mywarehouse.service.dto.StorekeeperDTO;
import com.myprogect.mywarehouse.service.dto.StorekeeperWithInformationDTO;
import java.util.List;
public interface StorekeeperService {
StorekeeperWithInformationDTO byId(Long id);
void saveOrUpdate(Storek... | 35.285714 | 75 | 0.821862 |
8bdaa4ce725d097d4704cfbd22575c9888639c3f | 2,467 | package com.scen.cache.service.impl;
import com.scen.cache.service.SsoCacheService;
import com.scen.common.utils.JsonUtils;
import com.scen.pojo.User;
import com.scen.vo.ScenResult;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.... | 33.337838 | 109 | 0.690717 |
0119e1ad7e76fbb60a0cdd098a96b70a6fc9221d | 3,297 | /***********************************************************************************************************************
*
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance... | 33.30303 | 121 | 0.673339 |
ce2cc3e0235866c6e88b7c5358ded6aed3592eb6 | 1,492 | package com.example.lab.android.nuc.chat.Base.Message;
public class Msg {
private String questionTitle;
private String questionDetail;
private String questionTime;
public int questionNumber;
public static final int TYPE_RECEVIED = 0;
public static final int TYOE_SEND = 1;
//消息内容
public ... | 19.893333 | 58 | 0.646113 |
2e79007c2638e963647d0b0a8623fa8036e4fd8b | 610 | package com.github.mschroeder.github.jasgl.positioner;
import com.github.mschroeder.github.jasgl.Keyboard;
import com.github.mschroeder.github.jasgl.Mouse;
import com.github.mschroeder.github.jasgl.positioner.Positioner;
/**
* The positioner moves sprites based on input (e.g. key pressed or mouse clicked).
* @autho... | 29.047619 | 83 | 0.739344 |
78d588e49201ace84a0ce83b0402483fe368972f | 287 | package Practice_Question;
public class Integer_To_String {
public static void main(String[] args) {
//int num=56784;
//String str = Integer.toString(num);
//System.out.println(str);
//}
//
int num=34556;
String str = String.valueOf(num);
System.out.println(num);
}
} | 17.9375 | 41 | 0.675958 |
c17b1786bfe3d828b887d628c1d920b6a893dfcb | 2,218 | /**
* This software is released as part of the Pumpernickel project.
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
* More information about the Pumpernickel project is available here:
* h... | 34.123077 | 117 | 0.633904 |
47b6538b50998ef2069783d40dd0530f40a8872b | 4,842 | package net.minecraft.client.gui;
import java.util.List;
import java.util.ListIterator;
import java.util.Optional;
import java.util.function.BooleanSupplier;
import java.util.function.Supplier;
import javax.annotation.Nullable;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.Onl... | 39.365854 | 222 | 0.706733 |
4284c1b9e95be9df8e1821d96f4f3019f07da206 | 8,394 | package edu.stanford.nlp.sempre.interactive.test;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import org.testng.Assert;
import org.testng.annotations.Test;
import edu.stanford.nlp.sempre.ContextValue;
import edu.stanford.nlp.sempre.Executor;
import edu.stanford.nlp.... | 45.868852 | 135 | 0.62092 |
43c54ca47237503dedade1ffb1d2603e7fde7b64 | 13,070 | // VeriBlock NodeCore
// Copyright 2017-2021 Xenios SEZC
// All rights reserved.
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
package nodecore.api.ucp.commands;
import nodecore.api.ucp.arguments.... | 57.577093 | 140 | 0.697552 |
5a34212470fea58ea305b97113a2ad85caab609b | 19,642 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/services/conversion_upload_service.proto
package com.google.ads.googleads.v10.services;
public final class ConversionUploadServiceProto {
private ConversionUploadServiceProto() {}
public static void registerAllExtensio... | 67.731034 | 327 | 0.77823 |
b30951f47299e4318d892b8356bb3cb9bdf3ceeb | 10,206 | /*
* Copyright 2012-2021 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 required by applic... | 37.94052 | 114 | 0.611503 |
c21c2491ef23a80b416669727335999289867d13 | 1,153 | package com.walmartlabs.concord.common;
/*-
* *****
* Concord
* -----
* Copyright (C) 2017 - 2020 Walmart 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:... | 26.204545 | 82 | 0.62706 |
27a242d2ef3d5aecf5fbc43e5c15885ebbe29d57 | 1,483 | package laz.tirphycraft.content.entities.goal.necromancer;
import java.util.EnumSet;
import java.util.Random;
import laz.tirphycraft.content.entities.froz.EntityNecromancer;
import laz.tirphycraft.util.TirphycraftUtils;
import net.minecraft.entity.ai.goal.Goal;
import net.minecraft.util.math.BlockPos;
public class T... | 28.519231 | 99 | 0.706001 |
6f2902c467ea6e2cc659ee01ab10f2104bbad606 | 777 | /*
* Copyright 2018 Dragon-Labs.net
*
* 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
*/
package de.dragonlabs.scaleadapter.library.exceptions;... | 33.782609 | 171 | 0.7426 |
63bf866400cd4ba39d0046f111a2095ca2b6fdf5 | 4,366 | package com.mmall.util.XML;
/**
* Created by IntelliJ IDEA
* User: leroy
* Time: 2017/12/1 10:49
*/
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionExc... | 29.90411 | 114 | 0.514888 |
dce435d97f9b4b66f17d49f96a5ceb38c7b041fe | 367 | package ru.job4j.basepatterns.behavioral.iterator.example2.social_networks;
import ru.job4j.basepatterns.behavioral.iterator.example2.iterators.ProfileIterator;
/**
* Интерфейс социальной сети
*/
public interface SocialNetwork {
ProfileIterator createFriendsIterator(String profileEmail);
ProfileIterator c... | 26.214286 | 84 | 0.825613 |
ef5490e234415c399a9f1293e38ed135a709c776 | 426 | package de.percsi.products.dackelcmdb;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
@SpringBootApplication
public class DackelCMDBTestPersistenceService {
public static ... | 32.769231 | 72 | 0.838028 |
45da7fed0c01a8a842a33e6e58a9fc964bab6827 | 2,941 | /**
*
*/
package com.lanking.uxb.zycon.task.form;
import com.alibaba.fastjson.JSON;
import com.lanking.cloud.domain.yoo.honor.userTask.UserTaskRuleCfg;
import com.lanking.cloud.domain.yoo.honor.userTask.UserTaskStatus;
import com.lanking.cloud.domain.yoo.honor.userTask.UserTaskUserScope;
/**
* @author ... | 19.097403 | 73 | 0.696702 |
4d7a5746b2bdd46f708e6e0cbf3a8fe6a3947436 | 3,552 | package io.kestra.core.services;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import org.junit.jupiter.api.Test;
import io.kestra.core.models.flows.Flow;
import io.kestra.core.tasks.debugs.Return;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import j... | 34.485437 | 129 | 0.595439 |
210fb0cfa851ee694907ed270f7f376c91eb8a88 | 2,067 | package org.cwjweixin.weixin.Json;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Arrays;
import org.cwjweixin.weixin.domain.InMessage;
import org.springframework.data.re... | 28.315068 | 86 | 0.72327 |
7c18431044315da503ca8bbec74bd54a37f595d8 | 547 | package com.ansorgit.plugins.bash.lang.psi.fileInclude;
import org.junit.Test;
public class FunctionResolveFileIncludeTestCase extends AbstractFileIncludeTest {
@Override
protected String getTestDataPath() {
return super.getTestDataPath() + "functionResolve/";
}
@Test
public void testSimp... | 26.047619 | 81 | 0.718464 |
e9b6313d2b9bdc9a26aef21a0d8411207d2a0fca | 2,599 | package bank.acquirer;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
import bank.acquirer.dto.TransactionRequestDTO;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.j... | 32.08642 | 113 | 0.807234 |
332cd68137ef292afdf7c7c3854728488b3e76ff | 5,742 | /* */ package org.netlib.util;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ ... | 25.633929 | 108 | 0.3814 |
f79fd7f3135aae9435bd4b82a1560889b17e577c | 754 | package project.spring.article.vo;
public class Editor_imageVO {
private int ed_idx;
private String img_url;
private String kind;
private String code;
public int getEd_idx() {
return ed_idx;
}
public void setEd_idx(int ed_idx) {
this.ed_idx = ed_idx;
}
public String getImg_url() {
return img_url;
}
pu... | 20.378378 | 113 | 0.676393 |
de68c36c7cb877ebb00b6769ab3fc5188419e736 | 10,342 | /* Copyright (c) 2012-2013, University of Edinburgh.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* li... | 40.398438 | 162 | 0.6842 |
f65726657e47335d1fdbfa26c778ce4b91b3c740 | 1,204 | package com.softicar.platform.emf;
import com.softicar.platform.common.core.user.CurrentBasicUser;
import com.softicar.platform.db.runtime.test.AbstractDbTest;
import com.softicar.platform.dom.elements.testing.engine.IDomTestExecutionEngine;
import com.softicar.platform.dom.elements.testing.engine.document.DomDocument... | 30.871795 | 97 | 0.813123 |
cf21edbdcb3d5d5f9495c2320cf8cb22d622e002 | 8,324 | /*
* K-scope
* Copyright 2012-2013 RIKEN, Japan
*
* 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 ... | 22.619565 | 101 | 0.572802 |
b2d8f2f9ca3be04b557cc6fd18e7fce3e0c605d3 | 1,325 | package sorts.bogo;
import main.ArrayVisualizer;
import sorts.templates.BogoSorting;
/*
PORTED TO ARRAYV BY PCBOYGAMES
------------------------------
- FUNGAMER2'S SCRATCH VISUAL -
------------------------------
*/
public final class WatermelonWavesSort extends BogoSorting {
public WatermelonWavesSort(ArrayVis... | 30.113636 | 83 | 0.578113 |
8f03f9d8c8ad83be276cda4d57264d1a15a4e90d | 6,724 | /*
* Copyright 2020-2021 Steinar Bang
*
* 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... | 50.556391 | 296 | 0.678763 |
7219e6b733ef42756c9015943504c1be88c955b5 | 255 | package uk.gov.ons.ctp.common.event.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UacPayload {
private UacUpdate uacUpdate = new UacUpdate();
}
| 18.214286 | 48 | 0.807843 |
bd678ef036018d1a010c877e8ea71bb55f4ebafc | 510 | package tk.woppo.sunday.widget.jazzylistview.effects;
import android.view.View;
import com.nineoldandroids.view.ViewPropertyAnimator;
import tk.woppo.sunday.widget.jazzylistview.JazzyEffect;
public class StandardEffect implements JazzyEffect {
@Override
public void initView(View item, int position, int scr... | 23.181818 | 109 | 0.741176 |
cbff7d1234a77eb3bad19352be4e5e9d1c7f9f21 | 589 | package com.cefoler.configuration.core.error.reflection.impl.member.impl.executable;
import com.cefoler.configuration.core.error.reflection.impl.member.MemberError;
public abstract class ExecutableError extends MemberError {
private static final long serialVersionUID = 6122762182921381964L;
protected Executable... | 23.56 | 84 | 0.7691 |
ca54dea12cb94f7c9b0951f45e3d104321227254 | 1,942 | package me.icro.leetcodingchallenge2004.maximalsquare;
/**
* @author lin
* @version v 0.1 2020/4/27
**/
public class Solution {
public int maximalSquare(char[][] matrix) {
if (null == matrix || 0 == matrix.length) {
return 0;
}
int[][] dp = new int[matrix.length + 1][matrix[0... | 37.346154 | 100 | 0.393409 |
8b07e67c0f242700bb3096e0e2e0321f767e4d55 | 510 | package com.ssafy.happyhouse.repo;
import java.util.List;
import com.ssafy.happyhouse.dto.HouseDeal;
import com.ssafy.happyhouse.dto.SearchInfo;
public interface HouseDealRepo {
List<HouseDeal> selectAll();
int insert(HouseDeal deal);
int delete(int no);
HouseDeal searchNo(int no);
List<HouseDeal> selectByKewor... | 25.5 | 51 | 0.790196 |
0094407dbcdc88b234a7083e14608554454a7585 | 370 | package designpatterns.builder.improve;
/**
* @author happy
* @since 2021-04-17
*/
public abstract class HouseBuilder {
protected House house = new House();
//将建造流程写好
public abstract void buildBasic();
public abstract void buildWalls();
public abstract void buildProof();
//返回产品
publi... | 16.818182 | 40 | 0.654054 |
e6f8afaaf1f24b71d2917999223a90d264babb85 | 431 | package uo.ri.ui.foreman;
import alb.util.menu.BaseMenu;
/**
* Clase menu de Jefe de taller con todas las clases a las que puede acceder
* este
*
* @author UO250999
*
*/
public class MainMenu extends BaseMenu {
public MainMenu() {
menuOptions = new Object[][] { { "Jefe de Taller", null }, { "Gestión de cli... | 20.52381 | 110 | 0.668213 |
1a00165b09df0d00d8bf89baf75060718944fc82 | 25,408 | /*
* Copyright (c) 2016, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... | 36.558273 | 204 | 0.664948 |
8ac450e850d02be5d435893f269077c715b9deb1 | 1,089 | package Hilos;
/**
*
* @author damian
*/
public class mainClass {
public static void main(String[] args) {
hilo1 hilo1 = new hilo1();
hilo2 hilo2 = new hilo2();
hilo3 hilo3 = new hilo3();
hilo4 hilo4 = new hilo4();
hilo1.start();
... | 23.170213 | 59 | 0.442608 |
0723464d1e00c8d8d9ddeadbc86160be5a9ceea9 | 2,559 | /*
* Copyright 2002-2006 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 required by ap... | 40.619048 | 76 | 0.763189 |
5763cf838681e1edf9475804e55e0d444e4a5389 | 1,747 | package com.xinsite.mybatis.datasource.master.service;
import com.xinsite.mybatis.datasource.master.entity.TbObjectAtt;
import com.xinsite.mybatis.datasource.master.mapper.TbObjectAttMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.... | 24.263889 | 92 | 0.680023 |
72ed07e43cfe77a4a1c1441976534a05c61f5b55 | 339 | package zlogger.logic.dao;
import zlogger.logic.models.Commentary;
import zlogger.logic.models.Post;
import zlogger.logic.models.User;
import java.util.List;
public interface CommentaryDao extends GenericDao<Long, Commentary> {
public List<Commentary> listByPost(Post post);
public List<Commentary> listForU... | 21.1875 | 69 | 0.784661 |
ddfaf394b4785f9597c368d6fc9271da53b4c0fd | 1,036 | import org.checkerframework.checker.initialization.qual.NotOnlyInitialized;
import org.checkerframework.checker.initialization.qual.UnderInitialization;
public class NotOnlyInitializedTest {
@NotOnlyInitialized NotOnlyInitializedTest f;
NotOnlyInitializedTest g;
public NotOnlyInitializedTest() {
f = new No... | 29.6 | 89 | 0.718147 |
b32040fd90123c08bafbb473f198a865e41babe9 | 5,468 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("jp")
@Implements("EnumDefinition")
public class EnumDefinition extends DualNode {
@Obf... | 26.803922 | 73 | 0.584857 |
1791b5d46b2143ae228f6f23703d223e03ce0422 | 3,056 | /*******************************************************************************
* Copyright 2019 The EVL 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.ap... | 32.168421 | 139 | 0.650196 |
b6ae504e67c897721d72d3e5192fc8cc3361dc11 | 2,061 | package com.potato369.find.dynamic.config;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.s... | 42.9375 | 112 | 0.806405 |
e16c2dea7ffcafebd94f7bc6dfcf83035171877d | 2,751 | /*
* This file is part of Hammer, licensed under the MIT License (MIT).
*
* Copyright (c) 2015 Daniel Naylor
* Copyright (c) contributors
*
* 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 Soft... | 36.68 | 87 | 0.688477 |
ac5a3aa684f76ad3732f3029071d48bfb6ab96b9 | 1,495 | package com.webank.wecross.stub.bcos;
import com.webank.wecross.stub.Stub;
import org.fisco.bcos.web3j.crypto.EncryptType;
@Stub("GM_BCOS2.0")
public class BCOSGMStubFactory extends BCOSBaseStubFactory {
public BCOSGMStubFactory() {
super(EncryptType.SM2_TYPE, "sm2p256v1", "GM_BCOS2.0");
}
publi... | 45.30303 | 124 | 0.615385 |
c599a444cca5d9c61b05192023f3a4885e283294 | 443 | /**
* Copyright (C) 2018-2020
* All rights reserved, Designed By www.yixiang.co
* 注意:
* 本软件为www.yixiang.co开发研制
*/
//package co.yixiang.gen.service.mapper;
//
//import co.yixiang.common.mapper.CoreMapper;
//import co.yixiang.gen.domain.GenConfig;
//import org.apache.ibatis.annotations.Mapper;
//import org.springframewor... | 24.611111 | 66 | 0.756208 |
571403d0aa28cb6544407ff69fddf13a84d83d84 | 8,171 | /*
* Copyright (C) 2011 in-somnia
*
* This file is part of JAAD.
*
* JAAD 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 option) any la... | 31.306513 | 72 | 0.620854 |
523f75a466068a5f54234ed45f9ebba27801db53 | 2,673 | package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.constants.SubType;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.const... | 30.033708 | 116 | 0.700711 |
e4d0e4557664314b13cd95c3d838dc074ff0d037 | 4,446 | package com.fdahpstudydesigner.bo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "active_task_lang")
public class ActiveTaskLangBO implements Serializable {
@EmbeddedId privat... | 20.117647 | 70 | 0.715475 |
053e88a28e65de9a6d860fa9925af91914ac725d | 1,604 | package com.labeling.demo.service.impl;
import com.labeling.demo.entity.User;
import com.labeling.demo.repository.UserMapper;
import com.labeling.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transactio... | 24.676923 | 70 | 0.683292 |
8ebda6085a2c1714332d2fcf0902fef18c6f960d | 384 | package com.clockworkcode.pentagonbusinesscomv2.repository;
import com.clockworkcode.pentagonbusinesscomv2.model.product.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ProductCategoryRepository extends JpaRepository<ProductCategory,Long> {
ProductCategory getProdu... | 34.909091 | 88 | 0.875 |
e6b8b886d08d3727b6ccde2b27192dc1153a2311 | 12,564 | /*
* 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 ... | 43.175258 | 177 | 0.619707 |
3988ae5fcc7f73c3037a1db789b6ef16f1f7d3fe | 3,804 | package org.yidu.novel.action;
import java.io.IOException;
import java.util.Date;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.yidu.novel.action.base.AbstractPublicBaseAction;
import org.... | 17.449541 | 97 | 0.642219 |
57f4388b41eeebd83b17a5dd73a3ecf970e7a6d1 | 806 | package com.example.creditwahana.Model.Login;
import com.google.gson.annotations.SerializedName;
public class LoginData {
@SerializedName("jabatan")
private String jabatan;
@SerializedName("name")
private String name;
@SerializedName("id_user")
private String idUser;
@SerializedName("username")
private St... | 16.12 | 50 | 0.729529 |
f7aafb9981e48d91b291e618f37ac00661f49233 | 1,985 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
// Last modified on Mon 30 Apr 2007 at 13:18:35 PST by lamport
// modified on Sat Feb 17 12:07:55 PST 2001 by yuanyu
package tlc2.tool;
public class TLCStateInfo {
publi... | 24.207317 | 75 | 0.684131 |
d3fa7336fc91ac03ef05948ad3d706c7c8ac0527 | 617 | package io.github.jitwxs.easydata.core.mock.mocker.explicit;
import io.github.jitwxs.easydata.common.bean.MockConfig;
import io.github.jitwxs.easydata.core.mock.EasyMock;
import io.github.jitwxs.easydata.core.mock.mocker.IMocker;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* @author jitwxs@foxma... | 28.045455 | 68 | 0.747164 |
4c9d61903eebe793e5323115a95c466376582435 | 3,910 | /*
* Copyright 2018, Oath Inc
* Licensed under the terms of the Apache License 2.0. Please refer to accompanying LICENSE file for terms.
*/
package com.oath.halodb;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testn... | 35.225225 | 146 | 0.66445 |
1cde1aba142c7735ea6e0759c1dce34b15ae96ca | 1,495 | /*
Copyrigh (c) Jasper Reddin 2013
All rights reserved
*/
package mathquizgame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
public final class timerControl implements ActionListener{
Timer timer;
int secondsElapsed = 0;
int overallDelaySeconds = 0;
String t... | 26.696429 | 147 | 0.717726 |
63ee9b13bd7821ff6f9d50a58974a60bf2f846fc | 1,113 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.aegroto.gui;
import com.aegroto.common.Helpers;
import com.jme3.math.Vector2f;
import java.util.ArrayList;
import lombok.Getter;
/**
*
* @author lorenzo
*/
public abstract class GUIInteractiveElement ext... | 22.714286 | 67 | 0.636119 |
396cc891350038de09419d9f6ed4b32607e10968 | 1,447 | package com.stfalcon.imageviewer.viewer.builder;
import android.graphics.Color;
import android.view.View;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import com.stfalcon.imageviewer.listeners.OnDismissListener;
import ... | 30.787234 | 84 | 0.794748 |
c78ebfcd4ed9cadbb35653b32ebadb1c8111f130 | 4,060 | package top.nowandfuture.gamebrowser;
import net.minecraft.client.Minecraft;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.world.IWorld;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.client.event.InputEvent;
import net.mi... | 36.909091 | 111 | 0.739163 |
1ea6942dec91a10638da88960c846664cde554ee | 2,083 | package com.Volod878.volod_telegrambot.command;
import com.Volod878.volod_telegrambot.repository.entity.TelegramUser;
import com.Volod878.volod_telegrambot.service.SendBotMessageService;
import com.Volod878.volod_telegrambot.service.TelegramUserService;
import org.telegram.telegrambots.meta.api.objects.Update;
/**
*... | 42.510204 | 130 | 0.680269 |
ee39900e93e39520349ed6f184f149286450e688 | 1,792 | package com.createchance.imageeditor.shaders;
import android.opengl.GLES20;
/**
* Color balance adjustment fragment shader.
*
* @author createchance
* @date 2018/12/21
*/
public class ColorBalanceFragmentShader extends AbstractShader {
private static final String TAG = "ColorBalanceFragmentSha";
privat... | 33.185185 | 81 | 0.736049 |
5d93406efd9327f3011c5b02a40d21ad6ab84c52 | 2,019 | /**
* <p>给定一个 <strong>正整数</strong> <code>num</code> ,编写一个函数,如果 <code>num</code> 是一个完全平方数,则返回 <code>true</code> ,否则返回 <code>false</code> 。</p>
*
* <p><strong>进阶:不要</strong> 使用任何内置的库函数,如 <code>sqrt</code> 。</p>
*
* <p> </p>
*
* <p><strong>示例 1:</strong></p>
*
* <pre>
* <strong>输入:</strong>num = 16
* <strong>输... | 25.884615 | 138 | 0.460624 |
4e3a13ffbd8034a87b2de28eaea968f1491cc787 | 15,996 | package com.riel_dev.hayaku;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.core.app.NotificationCompat;
import androidx.core.app.Notificat... | 44.557103 | 143 | 0.643223 |
df9d5478cdb36bd4f8334b6d3d58c33dc04d4aad | 1,728 | package org.technbolts.util;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;
import org.testng.annotations.BeforeMethod;
import org.testng.annotation... | 27 | 75 | 0.561921 |
a7f83e4fe886cd0a33130fd2c34cb69d03b632aa | 564 | package org.adridadou.ethereum.propeller.solidity.converters.decoders;
import org.adridadou.ethereum.propeller.values.EthData;
import java.lang.reflect.Type;
/**
* Created by davidroon on 23.04.17.
* This code is released under Apache 2 license
*/
public class EthDataDecoder implements SolidityTypeDecoder {
@... | 25.636364 | 73 | 0.730496 |
c9ecdec92983660efdf582332d5a0c756f6acfe3 | 4,250 | package com.lemon.demo.thread;
/**
* @author lemon
* @return
* @description join方法释放的是被调用join()方法的线程锁,而不是调用方。 join()可以保证让一个线程在另一个线程之前执行结束。
* 如何保证一个工作在另一个工作结束之前完成,就可以使用join()方法。
* @date 2019-11-11 17:07
*/
public class JoinThread {
// 定义锁
private static final Object LOCK = new Object();
public static... | 28.145695 | 82 | 0.444471 |
dab43095dcaca3710f417b8557ed8e92bcd7f2ca | 1,516 | package com.github.ConcordiaSOEN341.Reader;
import com.github.ConcordiaSOEN341.Logger.ILogger;
import com.github.ConcordiaSOEN341.Logger.LoggerFactory;
import com.github.ConcordiaSOEN341.Logger.LoggerType;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOExce... | 27.071429 | 66 | 0.609499 |
85174591e90e625adff7ee09fe95de1a01f2944d | 5,841 | /*
* Copyright (c) 2018 ACINO 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 applicable law or a... | 57.831683 | 120 | 0.707756 |
08b4bf1d70a5a410626f243199c1f19305e26ec0 | 1,961 | package com.itbuzzpress.microprofile.service;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DefaultValue;
import javax... | 26.5 | 138 | 0.721571 |
04d0920e51761b948023a8b5a26bc972e0f9ec24 | 945 | package com.codetaylor.mc.artisanworktables.api.internal.recipe;
import net.minecraft.item.crafting.Ingredient;
import javax.annotation.Nullable;
public class InputReplacementEntry {
private final IArtisanIngredient toReplace;
private final IArtisanIngredient replacement;
public InputReplacementEntry(@Nullab... | 23.625 | 115 | 0.732275 |
11600d6d621fe4937b8d6a2b5d9766ba038bb99f | 2,212 | /*
* Copyright 2012 akquinet
* 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 writi... | 29.493333 | 96 | 0.657776 |
b503f8764e6f6c1aa18c254bf2c5928e54ab52a3 | 7,162 | /**
* Classe base para acceso a base de datos.
* @author Marc Perez Rodriguez
*/
package io.github.marcperez06.java_utilities.database;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement... | 22.59306 | 101 | 0.630829 |
16fe5d35d75195e8622d662bc7506c99ee68ac86 | 712 | package com.springboot.show_web.endpoint;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* 自定义事件端点
* Created by yaosheng on 2019/12/1.
*/
//@Endpoint(id = "datetime")
public class DateTimeEndpoint {
private String format = "yyyy-MM-DD HH:mm:ss";
... | 23.733333 | 77 | 0.643258 |
2a10e6e06d7fb57f996e786d156482613e73b15f | 8,595 | package org.benetech.servicenet.web.rest.external;
import com.codahale.metrics.annotation.Timed;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import... | 49.396552 | 124 | 0.743921 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.