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 |
|---|---|---|---|---|---|
f7efd6ea5fa1da9c2371439dda8ced9dc088f2b9 | 7,080 | package test.java.net.aimeizi.model;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.... | 30.12766 | 93 | 0.617514 |
dba2c5de722f17d0733ab893ec484a13f2f6ac78 | 827 | package cn.yzz.web.servlet;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.... | 29.535714 | 76 | 0.807739 |
fe01ea6b7963491285cb986592fb246476242d20 | 1,359 | /**
* Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | 26.134615 | 75 | 0.660044 |
85b4085bd1aa7baea2f5f9c555ef9c2f668bfc84 | 1,278 | package test.junit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Date;
import org.apache.log4j.BasicConfigurator;
import org.junit.Test;
import sagex.phoenix.util.DateUtils;
public class TestDateParsers {
@Test
public void testDates() {
... | 25.56 | 74 | 0.64241 |
222362b8d5c1a359b2cb0912baf001b237cc42c1 | 9,977 | /*
* 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 ... | 41.227273 | 100 | 0.591861 |
90bd5a51e6234c6994f3eccbe60ca1cd96243617 | 2,376 | package com.woozooha.adonistrack.util;
import static org.junit.Assert.*;
import java.io.UnsupportedEncodingException;
import org.junit.Test;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class SimpleToStringFormatTest {
SimpleToStringFormat format = new SimpleToStringFormat... | 21.026549 | 71 | 0.582071 |
83c1775d7192956e61adc2540ef821d10f20eae3 | 1,103 | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
package com... | 30.638889 | 79 | 0.738894 |
1c5d7e7cccb918eab2ef29bf9f32a8870eb7f06b | 793 | package com.ons.sml.api.java.methods;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
/**
*This class is a factory to create JavaStandardError instance.
*/
public class JavaStandardErrorFactory {
private static final JavaStandardError$ JAVA_STANDARD_ERROR = JavaStandardError$.MODULE$;
... | 29.37037 | 109 | 0.7314 |
b2967283420af90cef4333cd0b99ec53915bdab4 | 1,223 | /*
*
* * Copyright 2017 Bait Inc
* * Licensed under the Apache License, Version 2.0 Jubilee 2017;
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* * http://www.apache.org/licenses/LICENSE-2.0
* * Unless required by applicable law or agr... | 28.44186 | 80 | 0.66067 |
720bd2bde01f86b82054bd33e1456f0263acdb1e | 3,474 | /*
* 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")... | 36.568421 | 99 | 0.668682 |
ea3ee61ea38fad6ef4ebcbc0aa987d95b79ed96e | 2,540 | /*
Copyright 2003-2012 Dmitry Barashev, GanttProject Team
This file is part of GanttProject, an opensource project management tool.
GanttProject is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | 29.195402 | 120 | 0.770079 |
4f79b407e3540f52725f0de0d12bf391a59489e3 | 4,098 | package org.springside.examples.showcase.demos.utilities.string;
import static org.junit.Assert.*;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import com.google.common.base.CaseFormat;
import com.google.common.base.Joiner;
import com.google.common... | 32.267717 | 97 | 0.714007 |
1cb2b67d200612c7790b2be1fcd5009b3d2fee12 | 3,827 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 artipie.com
*
* 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, ... | 29.898438 | 99 | 0.649072 |
1ce31b4401dad172dfdef1c08d83622c04bd5165 | 1,167 | package com.github.mockito.async.example;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import static com.github.mockito.async.Await.async;
import static com.github.mockito.async.Await.await;
import static org.junit.Assert.assertSame;
import static org.mockito.Mockito.RETURNS_DEFA... | 32.416667 | 102 | 0.746358 |
855a739c2a212d0c28bf594c7a9a7505a7ae75bd | 1,410 | /*
* 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")... | 27.115385 | 64 | 0.685816 |
41cfbd0784c4e4d8b712eb38afe5a4d90d370278 | 264 | package fpl.sdk.model;
public class EventElements {
private long id;
private ElementStats stats;
public EventElements() {
}
public long getId() {
return id;
}
public ElementStats getStats() {
return stats;
}
}
| 13.2 | 36 | 0.598485 |
578620fb51b6635e6193eca74248e53664bb706a | 536 | package com.hr.framework.projections.bugs;
import com.hr.framework.po.bug.tracking.users.*;
import com.hr.framework.po.employee.base.Employee;
import com.hr.framework.po.person.Person;
import org.springframework.data.rest.core.config.Projection;
import java.util.Date;
@Projection(name = "projectTeamProjecti... | 23.304348 | 80 | 0.73694 |
ce6487e24cff4ffb722ce750352da0818562254c | 7,588 | package com.jvfast.common.util;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import java.net.InetAddress;
import java.net.UnknownHostException;
impor... | 34.807339 | 108 | 0.471666 |
bb11d38522fab9bcfe6c1535130de6855947d0db | 1,559 | /*
* Copyright (C) 2020 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... | 30.568627 | 122 | 0.726748 |
bc001a390a69dba644f6d3706fc2d914b87b32a4 | 153 | package org.ripple.power.ui.editor;
public interface ROCFileListener {
public boolean doSave();
public void doLoad();
public void setButtons();
}
| 13.909091 | 35 | 0.745098 |
bda92b20f47bf9d37970293f45766c6f2376bdb9 | 3,787 | package com.github.leeonky.dal.format;
import com.github.leeonky.dal.runtime.IllegalFieldException;
import com.github.leeonky.dal.runtime.RuntimeContextBuilder;
import com.github.leeonky.util.BeanClass;
import java.util.Objects;
//TODO formatter/ type / value refactor
public abstract class Value<T> {
public sta... | 34.743119 | 133 | 0.572749 |
745835b1ab5924a4635f1d6103ab984a36b11575 | 279 | package com.plivo.api.models.node;
public enum NodeType {
MULTI_PARTY_CALL("multi_party_call");
private final String type;
NodeType(final String multipartycall) {
this.type = multipartycall;
}
@Override
public String toString() {
return this.type;
}
}
| 15.5 | 41 | 0.706093 |
247bde89e5e4279db0b3a0d86fbbd3ad6e613a08 | 1,642 | package com.walmartlabs.ollie.model;
/*-
* *****
* Ollie
* -----
* Copyright (C) 2018 Takari
* -----
* 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/l... | 23.457143 | 145 | 0.685749 |
e7595844139a994a43282791fa94662f1a4d279f | 270 | package com.study.mybatis3.dao;
import com.study.mybatis3.entity.User;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @author lenovo
*/
public interface UserMapper {
@Select("select * from user")
public List<User> selectUser();
}
| 18 | 44 | 0.722222 |
246ff71e4d18be688f531fc64fddef6663a16ab9 | 1,203 | package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import java.util.List;
import seedu.address.logic.CommandHistory;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
import seedu.address.model.person.Person;
/**
* Analyse the your... | 29.341463 | 115 | 0.709061 |
424d084980c76dc0e019d351a648bbb444f61e8e | 9,491 | /* OpenRemote, the Home of the Digital Home.
* Copyright 2008-2011, OpenRemote Inc.
*
* See the contributors.txt file in the distribution for a
* full listing of individual contributors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public... | 34.263538 | 124 | 0.656727 |
b70a1927e2b353dd43f5dcd26d65d4ef11857701 | 2,362 | /*
* Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.proleap.cobol.asg.metamodel.environment.specialnames;
import java.util.List;
imp... | 34.735294 | 92 | 0.861558 |
0e82911549c5a9703a6d23ea67826d7a578a58f5 | 3,446 | package io.nosqlbench.activitytype.cmds;
import io.nosqlbench.engine.api.activityconfig.yaml.OpTemplate;
import io.nosqlbench.engine.api.templating.CommandTemplate;
import io.nosqlbench.nb.api.errors.BasicError;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.time.D... | 34.808081 | 192 | 0.613175 |
d9289b8e83ff0b1e419754425d477fd39a1ffa2f | 4,392 | /*
* Copyright 2018 The Exonum Team
*
* 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... | 29.28 | 95 | 0.711749 |
f7a6347503fc88182bb13a569980ff493d727652 | 10,743 | package org.gedcomx.conversion.gedcom.dq55;
import java.io.File;
import java.net.URL;
import java.util.List;
import org.folg.gedcom.model.Family;
import org.folg.gedcom.model.Gedcom;
import org.folg.gedcom.parser.ModelParser;
import org.gedcomx.common.ResourceReference;
import org.gedcomx.conclusion.Fact;
import org.... | 44.392562 | 146 | 0.731825 |
66b9b5c79e0325eeb8dcbddb4c1e8070c6e30b43 | 4,964 | /*
* Copyright (c) 2021, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory
* CODE-743439.
* All rights reserved.
* This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool.
*
* Licensed under the Apache License, Version 2.0 (the “Licensee”)... | 28.365714 | 208 | 0.739726 |
1e0183ca149cc50f42c789768022fd928eb3ba49 | 786 | package com.shansown.game.tests.ashley.components;
import com.badlogic.ashley.core.Component;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.Pool;
public class ShotStoneComponent extends Component implements Pool.Poolable {
private static final String TAG = ShotStoneComponent.class.getSimpleName();
... | 26.2 | 79 | 0.699746 |
0c29fe1b7b76ca6056c0ff8b6ffca507d19145b8 | 537 | package cn.springcloud.gray.server.module.gray.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author saleson
* @date 2020-03-17 12:15
*/
@Data
@ApiM... | 21.48 | 54 | 0.780261 |
ed295fc73f0fc99c58138012437f86b6af6de3bd | 4,030 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit;
import java.io.PrintWriter;
public class dataTracingSocket extends baseTracingSocket {
public BaseAuton theAuton;
dataTracingSocket()
{
}
... | 34.152542 | 91 | 0.518859 |
bff5cf9f1fb8ea2b64d44df2b6d311e9ffe854e5 | 680 | //
// Decompiled by Procyon v0.5.30
//
package com.bdoemu.gameserver.model.creature.npc.worker.works;
import com.bdoemu.commons.utils.BuffReader;
import com.bdoemu.gameserver.model.creature.npc.worker.enums.ENpcWorkingType;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
public class RegionManagingW... | 22.666667 | 77 | 0.719118 |
b8b73c58c402b6f97eb1b02f189bd66402476d76 | 174 | package swarm.server.transaction;
public interface I_TransactionScopeListener
{
void onEnterScope();
void onBatchStart();
void onBatchEnd();
void onExitScope();
}
| 13.384615 | 43 | 0.752874 |
19d36935d35738ee499e474e572ffbc7da9c86d1 | 6,838 | import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import edu.princeton.cs.algs4.Edge;
import javax.swing.JButton;
import javax.swing.JTextArea;
import javax.swing.JList;
import java.awt.event.ActionListener;
import j... | 30.526786 | 101 | 0.711904 |
2695564b21e96721b1f80677220faddd26888ebd | 2,397 | package io.github.prospector.modmenu.util;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawableHelper;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.LiteralText;
import net.minecraft.te... | 43.581818 | 151 | 0.718398 |
7021a180e9680962c86ef526e11f49b338f97cf4 | 1,165 | package cn.binarywang.wx.miniapp.bean.analysis;
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.Map;
/**
* 访问留存
*
* @author <a href="https://github.com/charmingoh">Charming</a>
* @since... | 26.477273 | 73 | 0.697854 |
9968c3720cf4d6a6c3c6a343b5ad240d9c01e0ae | 919 | package cn.tommyyang.demo.lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author TommyYang on 2019-03-21
*/
public class ReentrantLockDemo {
public void newThread(final ReentrantLock lock, final String name){
new Thread(new Runnable() {
public void run() {
lock... | 28.71875 | 71 | 0.475517 |
ba26029ade70932a75cfcec7d096abd83341af87 | 5,054 | package io.georocket.util;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
import org.apache.commons.io.input.BOMInputStream;
/**
* Utility methods for mime types
* @author Andrej ... | 29.555556 | 87 | 0.617333 |
bd7414d871f51f6c4523127028876d67f9f0a7d4 | 11,239 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | 35.566456 | 141 | 0.611264 |
9b2103da0d112604104887f4fdf289764d36e0c0 | 124 | package com.fbt;
import org.json.*;
public interface Callback {
public abstract boolean execute(JSONObject message);
}
| 17.714286 | 56 | 0.758065 |
e449eacfef24f92791b30a1b03f6feb877bd56e4 | 279 | package com.fingerchar.dao;
import com.fingerchar.domain.StaUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description StaUserMapper 接口
* @Author
* @Date 2021-12-12
* @Version 1.0.1
*/
public interface StaUserMapper extends BaseMapper<StaUser> {
}
| 18.6 | 60 | 0.749104 |
ab5ddb8f127e4bc5b7e67ac848788acf7b73854b | 1,085 | package csci4490.uno.game;
import java.util.ArrayList;
public class Hand
{
private ArrayList<Card> cards;
private Deck playDeck;
private int score;
public Hand(Deck playDeck)
{
cards = new ArrayList<Card>();
this.playDeck = playDeck;
score = 0;
}
public void addCard(Card c) throws IllegalMoveExcep... | 12.055556 | 56 | 0.60553 |
fe52a817ad29fd240479e659b8a81a3edb4756e9 | 1,422 | package ondoc.lkp.tests.creation;
import ondoc.lkp.tests.TestBase;
import org.testng.annotations.Test;
public class CreationNote extends TestBase {
@Test
public void testCreationNote() {
app.getNavigationHelper().gotoMedcard();
app.getNavigationHelper().choseType();
app.getNoteHelper(... | 59.25 | 291 | 0.715893 |
2c47744ce45d4e906eca7ef2ead34381d081522c | 4,591 | /* 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
* distribut... | 33.510949 | 133 | 0.731213 |
013fc14c1554f38d93e5d108ce82bf20ac8825e0 | 450 | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.sap.sapcpiorderexchangeb2b.service;
/**
* Sapcpiorderexchangeb2bService
*/
public interface Sapcpiorderexchangeb2bService
{
/**
* getHybrisLogoUrl
* @param logoCode String
* @return String
*/
St... | 18.75 | 78 | 0.726667 |
5ab52a0bd5be8fa87685a2e39dd1f8b5b3bbde49 | 1,347 | package org.jsoup.integration.servlets;
import org.jsoup.integration.TestServer;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class RedirectServlet extends BaseServlet {
public static final String Url = TestServer.map(Redire... | 32.853659 | 84 | 0.685969 |
bd51f423728a26977ddc77ed7e7f1bb46cc91b82 | 1,909 | /*
* Copyright 2016-2018 The Sponge authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 34.089286 | 126 | 0.726035 |
17670e24af42fac96d86af093197b24ce1c18274 | 198 | package Focus.Beta.UTILS.render;
import net.minecraft.client.Minecraft;
import net.minecraft.client.shader.ShaderGroup;
import net.minecraft.util.ResourceLocation;
public class BlurUtils {
}
| 16.5 | 47 | 0.80303 |
a9ca93658b937d8fc95dec9d5385a542e961a634 | 504 | package ir.ac.iust.dml.kg.resource.extractor.client;
import org.junit.Test;
import java.util.List;
/**
* Descriotion of file
*
* @feature [issue_url] description
* @bug [issue_url] description
*/
public class ExtractorClientTest {
@Test
public void match() throws Exception {
ExtractorClient clie... | 24 | 84 | 0.688492 |
40fd0fb354326346080c9abb336cf32934e7686f | 566 | package switchtwentytwenty.project.datamodel.repositoryjpa;
import org.springframework.data.repository.CrudRepository;
import switchtwentytwenty.project.datamodel.domainjpa.CategoryIDJPA;
import switchtwentytwenty.project.datamodel.domainjpa.CategoryJPA;
import switchtwentytwenty.project.datamodel.domainjpa.FamilyIDJP... | 35.375 | 92 | 0.858657 |
c5064f1cece6a839df49cb25be5c319404dff8ca | 7,649 | /*
* Copyright 2017 MongoDB, 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 ... | 37.866337 | 133 | 0.629102 |
556c600e7505af52418e34cd17903e568ca4d4f0 | 10,978 | /*
* 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.30625 | 159 | 0.584715 |
70a847bce862cd4ba7029c071bbfee0897077671 | 1,989 | package io.github.edmm.plugins.azure.model.resource.compute.virtualmachines.extensions;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.edmm.plugins.azure.model.resource.Resource;
import io... | 40.591837 | 122 | 0.69281 |
51dfbac0ddbc1a518352dfcc0e95df34ed116a3d | 667 | public static File chooseFileSave(JFrame frame) {
File retval;
//Create and configure file chooser
JFileChooser fc = new JFileChooser();
fc.setDialogTitle("Select input file.");
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
fc.setMultiSelectionEnabled(false);
//Show dialog and wait for user inp... | 23 | 52 | 0.694153 |
7241ba0eb89dbc3d23a211f5fb1f2d4ab552d51b | 3,956 | package com.bht.saigonparking.service.user.mapper;
import java.util.List;
import java.util.stream.Collectors;
import javax.validation.constraints.NotNull;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Named;
import org.mapstruct.NullValueMappingStrategy;
import org.springframework.s... | 56.514286 | 166 | 0.764156 |
350559579ef47d460b0bfc079ea455a842de395e | 433 | package sample.spring.security.header;
import org.springframework.security.web.header.HeaderWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class MyHeaderWriter implements HeaderWriter {
@Override
public void writeHeaders(HttpServletR... | 28.866667 | 89 | 0.757506 |
d5304121a21fba6e2d5cf0934ae026a7de998ad5 | 937 | package slides.o4_synchronization;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.IntStream;
public class Demo01
{
static class ThreadSafeCounter
{
private Lock lock = new ReentrantLock();
private int value = 0;
int incrementA... | 19.520833 | 92 | 0.597652 |
98624b8633c2d9c81f54a1c462c7bf9900097997 | 4,036 | package mage.cards.o;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
import mage.abilities.common.LandfallAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect;
import mage.a... | 34.793103 | 206 | 0.709861 |
03738947bc29250077cf6d92a999256fd957c519 | 1,071 | package com.uphyca.gradle.android.aspectj;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public abstract class BaseActivity extends AppCompatActivity implements IInitUI{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | 19.833333 | 80 | 0.618114 |
8a54ebb70f6a70b8e86b744ebfebb915a88cf92d | 5,036 | package com.emistoolbox.client.admin.ui.mapping;
import com.emistoolbox.client.EmisToolboxServiceAsync;
import com.emistoolbox.client.Message;
import com.emistoolbox.client.admin.DbMapEditor;
import com.emistoolbox.client.admin.EmisToolbox;
import com.emistoolbox.common.model.mapping.DbContext;
import com.emist... | 43.042735 | 185 | 0.69579 |
482e0f0a6b1da39afb791a0d2a38488824e5c326 | 1,981 | package com.d3t.citybuilder.util;
public enum RealEstateType {
RESIDENTAL_W1,
RESIDENTAL_W2,
RESIDENTAL_W3,
RESIDENTAL_W4,
RESIDENTAL_W5,
RETAIL,
OFFICE,
INDUSTRY_AGRICULTURE,
INDUSTRY_FACTORY,
INDUSTRY_HIGHTECH,
CUSTOM_W_LOW,
CUSTOM_W_MED,
CUSTOM_W_HIGH;
public boolean isResidental() {
return this =... | 27.136986 | 79 | 0.702675 |
c32e205a3ba6a2b0cd19b233317599f5ed8c3841 | 672 | package mcts.tree;
import mcts.game.Game;
/**
* A utility for playing the game following a policy until max depth or a
* terminal node is reached
* TODO: set the maxDepth field via the configuration file
* @author sorinMD
*
*/
public class SimulationPolicy {
private static int maxDepth = 100000;
/**
* Run t... | 21 | 73 | 0.674107 |
136713b2f1cf4c31a1b2fc1ffa3ce134dc74048d | 5,289 | package com.mindsdb.kafka.connect.client;
import com.mindsdb.kafka.connect.MindsDBConnectorConfig;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Collections;
import java.util.Map;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;
cl... | 39.470149 | 128 | 0.636037 |
9cfa346600ea334bee92ec3ddde06a9de94c53c9 | 10,872 | package core.commands.moderation;
import core.Chuu;
import core.commands.Context;
import core.commands.abstracts.ConcurrentCommand;
import core.commands.utils.ChuuEmbedBuilder;
import core.commands.utils.CommandCategory;
import core.commands.utils.CommandUtil;
import core.exceptions.LastFMNoPlaysException;
import core... | 41.655172 | 365 | 0.630427 |
305852a8b7f48a0b7be7896cf33bc83cdf1b710a | 1,944 | package com.datapath.kg.risks.api.service;
import com.datapath.kg.risks.api.DTOEntityMapper;
import com.datapath.kg.risks.api.dao.entity.QuestionEntity;
import com.datapath.kg.risks.api.dao.service.QuestionDAOService;
import com.datapath.kg.risks.api.dto.QuestionDTO;
import com.datapath.kg.risks.api.request.AddQuestio... | 34.714286 | 88 | 0.733025 |
636e55e0c636265c787d4a45568e937f3847bf7a | 10,438 | /*
* This file is generated by jOOQ.
*/
package cn.vertxup.fm.domain.tables.interfaces;
import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import static io.github.jklingsporn.vertx.jooq.shared.internal.Vertx... | 33.88961 | 183 | 0.610941 |
9fa0a0f424c02f62b8d1c078de0e1e071c6178ef | 1,628 | package com.iot.lsy.iot_android;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
/**
* Created by lsy on 1... | 27.133333 | 106 | 0.678133 |
7b07e9fcb66aeaa6317a4426524faca69d5c90b7 | 484 | /*Annonymous Inner Class-A class created for implementing interface
* or extending class. Its name is decided by the java compiler.
* annonymous inner class by interface
*/
package nested_class;
interface Eatable {
void eat();
}
public class TestAnnonymousInner1 {
public static void main(String arg... | 18.615385 | 68 | 0.603306 |
5a9d0011dae4f44e324b6509f2c8795267a1e440 | 1,252 | package com.acme.workflow;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.sprin... | 27.822222 | 85 | 0.722843 |
f5dea1e811da88a8133389c61490729e0d11100e | 4,376 | package com.deep.infra.persistence.sql.mapper;
import com.deep.domain.model.NoticePlan;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface NoticeMapper {
@Select("select count(*) from notice_plan")
Integer queryAllNoticeCount();
@Select("select * from notice_plan li... | 39.071429 | 128 | 0.548903 |
b9832c5fad24e598758b210bc28acad67e5e9dd2 | 873 | package com.kang.novel.entity;
import java.io.Serializable;
public class UpdateInfo implements Serializable{
private static final long serialVersionUID = 8136214121542689902L;
private int newestVersionCode;
private String newestVersionName;
private String downLoadUrl;
public int getNewestVersio... | 23.594595 | 70 | 0.718213 |
fb45b7d2c770f317f74d11829db2da0423fc56e6 | 1,562 | /**
* Copyright (C) 2016 Hurence (support@hurence.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 a... | 37.190476 | 82 | 0.706146 |
433425c0a439988581a6a43e2afdeea6016660a3 | 1,129 | package goodtrailer.adventtic.materials;
import net.minecraft.data.DataGenerator;
import slimeknights.tconstruct.library.client.data.material.AbstractMaterialRenderInfoProvider;
import slimeknights.tconstruct.library.client.data.material.AbstractMaterialSpriteProvider;
import slimeknights.tconstruct.library.materials.... | 32.257143 | 95 | 0.749336 |
84c1b07cd911861a0292df85d3824b97e836a6e9 | 17,198 | /**
* Copyright (C) 2006-2017 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... | 43.539241 | 163 | 0.633678 |
7300e03bbab70d462b76c4998f9953ccbd234e6c | 4,669 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
... | 39.567797 | 111 | 0.727351 |
4f3b6cf6a533cfeab901ec10f2f7607a1458914e | 853 | package br.balladesh.pjcappbackend.utilities;
public class Result<T, U extends Exception> {
private T data;
private U exception;
private Result(T data, U exception) {
this.data = data;
this.exception = exception;
}
private Result(U exception) {
this.exception = exception;
}
public static<T... | 21.325 | 88 | 0.667057 |
2c7d8161ac7b715d82428778dbfaada0c03b0c94 | 1,192 | /*
* Copyright 2020 aurora
*
* 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... | 31.368421 | 75 | 0.75755 |
efb92d01c1bbab6cf2a3358cf2f220fbaed93aec | 1,381 | /*
* 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 mainPackage;
import org.w3c.dom.Element;
import javax.ws.rs.core.*;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
imp... | 30.688889 | 93 | 0.671253 |
3d0b88ce505df6abf39286c69ed19dc46a1173f4 | 2,901 | package com.stackroute.userservice.security;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Compone... | 27.367925 | 137 | 0.655981 |
ce5b315a9fbea98f09142087037a392498081135 | 5,636 | package HxCKDMS.HxCWorldGen.client;
import HxCKDMS.HxCWorldGen.libs.Configurations;
import HxCKDMS.HxCWorldGen.libs.Reference;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tess... | 45.451613 | 437 | 0.670511 |
f6abf2cd3f1dc67f52cb3478891b61603d319d4a | 4,119 | package epizza.order;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.springframework.restdocs.hypermedia.HypermediaDocumentation.linkWithRel;
import static org.springframework.restdocs.hypermedia.HypermediaDocumentation.links;
import static org.springframewo... | 45.263736 | 137 | 0.691187 |
fdc70c51e5b3a62033e0d1563e7d5faab573eea9 | 14,443 | /*
* 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 ... | 42.60472 | 162 | 0.591082 |
5e111d5196fe7cf58b2e3d13ad3f1be59765ad39 | 467 | package com.stylefeng.guns.api.film.vo;
import java.util.List;
import com.stylefeng.guns.api.film.vo.BannerVO;
import com.stylefeng.guns.api.film.vo.FilmInfo;
import com.stylefeng.guns.api.film.vo.FilmVO;
import lombok.Data;
@Data
public class FilmIndexVO {
private List<BannerVO> banners;
private FilmVO hotFilm... | 17.961538 | 47 | 0.775161 |
340d48c14520e9f6026c73690b9d637540aa0bdd | 1,869 | package org.mydotey.caravan.util.defensive;
import java.util.function.Supplier;
import org.mydotey.java.ObjectExtension;
import org.mydotey.java.ThreadExtension;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by Qiang Zhao on 10/05/2016.
*/
public final class Loops {
private static fin... | 28.753846 | 86 | 0.663456 |
6c94b1da648f905b3ddaa46c44a61f36822ffe38 | 5,599 | /**
* 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... | 38.349315 | 108 | 0.671906 |
3f733a441cb853902dca3764c59647883050f1c5 | 1,610 | import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util... | 37.44186 | 127 | 0.689441 |
f68bea08342d40ee337ef09a48637c8b9d84ea71 | 8,258 | package org.firstinspires.ftc.teamcode.teamcode.prometheus.OLD;
import com.acmerobotics.dashboard.FtcDashboard;
import com.qualcomm.hardware.rev.Rev2mDistanceSensor;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.event... | 43.010417 | 174 | 0.372366 |
7359389afeff5dac14cd42346c4e65596febd235 | 5,117 | package com.design;
import java.util.Optional;
/**
* 空对象模式
*/
public class Lesson23 {
public static void main(final String[] args) {
// ------------- 1.空对象模式基础示例 Start -------------
final AbstractObject object1 = ObjectFactory.creator("Java");
final AbstractObject object2 = ObjectFactory... | 21.774468 | 75 | 0.533711 |
09f73aec0dadc9cc71d331131567dccc29127103 | 3,585 | package com.ancda.cat.alarm.util;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jac... | 30.641026 | 95 | 0.622873 |
701411bc74e4f7dd49d9f3bd974d4f2e6ec83107 | 2,080 | package org.freeeed.util;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.io.Files;
public class CsvMetadataParser {
private ... | 29.295775 | 96 | 0.545673 |
17d32cdbaf53d2edc0eb0ca53f6b14db865ccf5e | 308 | package com.jamesmhare.rabbitmqsubscriber.BasicReceiver;
/**
* This serves as a factory for creating a new instance of the
* {@link BasicReceiverImpl}
*
* @author James Hare
*
*/
public class BasicReceiverFactory {
public BasicReceiver createBasicReceiver() {
return new BasicReceiverImpl();
}
}
| 20.533333 | 62 | 0.746753 |
6b49a9170e59106b25568586c6749a9139678a1b | 2,580 | /*
* com.aliakseipilko.signoutsystem.Services.PersistService was created by Aliaksei Pilko as part of SignOutSystem
* Copyright (c) Aliaksei Pilko 2017. All Rights Reserved.
*
* Last modified 16/02/17 09:52
*/
package com.aliakseipilko.signoutsystem.Services;
import android.app.ActivityManager;
import android.a... | 32.25 | 113 | 0.652713 |
11c3c205da0f99711ffdeaaf5f7d0ff2dd0e7e52 | 2,726 | package au.org.noojee.irrigation.views;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.vaadin.server.Responsive;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import au.org.noojee.irrigation.controllers.Timer;
import au.org... | 23.912281 | 79 | 0.728173 |
40002dd0a54d71f6490bac2d82ee2622d07a9dec | 5,392 | package controller;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import model.App;
import model.Logging.Logger;
import model.Tools.SceneSwitcher;
impor... | 37.706294 | 165 | 0.589948 |
f9087d3424ac7d93c615c944f62a534f12448a3e | 762 | package io.github.cnquiz.server;
import io.github.cnquiz.protocol.MessageHandler;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.Socket;
/**
*
*/
public final class TCPSocketHandler extends SocketHandler {
private final Socket clientSocket;
private final MessageHandler message... | 23.8125 | 81 | 0.683727 |
2459ecdc3f18a7f936c537c01dc7cea3b5dd066f | 1,225 | package com.alibaba.datax.plugin.rdbms.util;
import java.sql.*;
import java.util.Properties;
import java.util.logging.Logger;
/**
* @author davidhua
* 2019/8/28
*/
public class DriverWrapper implements Driver {
private Driver driver;
public DriverWrapper(Driver driver){
this.driver = driver;
}... | 23.557692 | 98 | 0.681633 |
438a095518ecf56fc492d7a4473282fe5d245498 | 6,761 | package com.employees.restapi.repositories;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import com.employees.restapi.models.E... | 28.648305 | 117 | 0.536015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.