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 |
|---|---|---|---|---|---|
f7572c16b596f6600534549bceccd7a41dc36bc5 | 345 | package de.bug0r.terminal.controller;
import de.bug0r.terminal.controller.event.Event;
import de.bug0r.terminal.controller.event.listener.EventListener;
public interface Controller {
public void addEventListener(EventListener eventListener);
public void removeEventListener(EventListener eventListener);
public voi... | 26.538462 | 65 | 0.828986 |
73aa09216d2035245fa77b674323235b82cc81a2 | 5,144 | package com.usst.app.system.role.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import com.usst.app.system.role.model.SysRole;
import com.usst.app.system.role.service.SysRoleService;... | 27.216931 | 86 | 0.696345 |
29ab4c878378eac9aaf2f5fcdc16917acef880ba | 619 | package com.huabin.mall.product.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huabin.common.utils.PageUtils;
import com.huabin.mall.product.entity.AttrAttrgroupRelationEntity;
import com.huabin.mall.product.vo.AttrGroupRelationVo;
import java.util.List;
import java.util.Map;
/**
* ... | 24.76 | 93 | 0.786753 |
7276c664cbab08899636f64f8fc92d63b3f32533 | 1,700 | /*
* Copyright (c) 2009-2018, b3log.org & hacpai.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 b... | 30.909091 | 86 | 0.677059 |
8053a358b0ea56dc64cd3e0f75aea07e3dbd3a74 | 267 | // SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.domain.scan.product.config;
import com.mercedesbenz.sechub.sharedkernel.validation.Validation;
public interface ProductExecutorConfigSetupValidation extends Validation<ProductExecutorConfigSetup> {
}
| 29.666667 | 102 | 0.853933 |
06514319a22f0a13dbaa9800edbbba01497150d4 | 2,848 | /*
* Copyright (c) 2009-2010 Clark & Parsia, LLC. <http://www.clarkparsia.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 ... | 29.978947 | 115 | 0.727879 |
fdb219a536ef12a6abdd8bf69940c5af899a8b33 | 895 | import java.io.* ;
class Smooth
{
public static void main ( String[] args ) throws IOException
{
int[] signal = {1, 5, 4, 5, 7, 6, 8, 6, 5, 4, 5, 4};
int[] smooth = new int[ signal.length ];
// compute the smoothed value for each
// slot of the array smooth
smooth[0] = (signal[0]... | 24.189189 | 67 | 0.515084 |
62804ed09eb58ab638973fcb01c15f3b4089f9e8 | 1,570 | package briix.com.data.utils;
import androidx.annotation.NonNull;
import java.io.IOException;
import briix.com.data.preferences.Preferences;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
public class InterceptorApiMovieService implements Interceptor {
priv... | 30.192308 | 100 | 0.667516 |
2c667b03ce093ce0bae04078b22e63a692e5ef12 | 1,781 | /*
* Copyright 2007 Sandy McArthur, Jr.
*
* 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... | 36.346939 | 148 | 0.714206 |
df92cf668ff8b98acfdbe8ed5f0aeb0d95638f38 | 857 | package org.pa.library.model;
import java.util.List;
public class Reader {
private String fName;
private String sName;
private String cardNumber;
private boolean banned;
private List<Borrowing> borrowings;
public String getfName() {
return fName;
}
public void setfName(String fName) {
this.fName = fName... | 18.234043 | 56 | 0.722287 |
1d2eefe310596071f0c3bb57426c50c34decce00 | 5,351 | package org.springframework.security.web.authentication.rememberme;
import static org.junit.Assert.*;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.j... | 39.058394 | 120 | 0.678752 |
9839dcfbe7edcb3b81359bca6fc35d24afbba9fa | 2,427 | package rainbow.db.query;
import static rainbow.core.util.Preconditions.*;
import rainbow.core.util.Utils;
import rainbow.db.dao.Sql;
import rainbow.db.dao.model.Column;
import rainbow.db.dao.model.Entity;
import rainbow.db.dao.model.Link;
public class SelectField {
private String alias;
private Link link;
priv... | 22.266055 | 115 | 0.678204 |
efa1a9b7e2b1b46994ce651c1c28f6c5fdc295a5 | 1,200 | package org.umi.boot.web.rest.manage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.umi.boot.domain.Resource;
import javax.validation.... | 28.571429 | 68 | 0.7375 |
8b1afcef8089bd5a5418d491503818e5fbaa5a6a | 1,241 | package datawave.webservice.query.configuration;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import datawave.query.data.UUIDType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.modules.junit4.PowerMockRunner;
import static org.junit.Assert.assertE... | 35.457143 | 92 | 0.730056 |
d118f255c99a2b550028417ef53644de9563115c | 1,231 | package com.pic_e.ncafeverify2.api;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import com.pic_e.ncafeverify2.event.VerifySuccessEvent;
import com.pic_e.ncafeverify2.utils.Util;
import ch.njol.skript.Skript;
import ch.njol.skript.lang.ExpressionType;
import ch.njol.skript.registrations.EventValues;
im... | 42.448276 | 145 | 0.753046 |
b793d1ba8469e73d147d7c0323c8d9c5706d48c2 | 2,794 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 31.393258 | 94 | 0.608089 |
2bd550cfc151d165ed071189ec6d2486a5a14918 | 4,383 | package com.example.part1;
import android.content.Intent;
import android.speech.RecognizerIntent;
import android.speech.tts.TextToSpeech;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.util.Log;
import android.view.... | 32.954887 | 109 | 0.588638 |
5d7f034a27b96de463e99043579a399e30c55a15 | 978 | package app.inbox;
import app.util.JsonUtil;
import app.util.ServerResponse;
import static app.util.JsonUtil.JSON;
import static app.util.JsonUtil.json;
import static spark.Spark.*;
/**
* Created by winnerawan
* on 5/15/17.
*/
public class InboxController {
public InboxController(final InboxModel inboxModel)... | 27.166667 | 81 | 0.639059 |
25882ea49e585c4d4020ce9b1e1ab0b127270476 | 3,382 | /*
* Copyright 2020 The Knative 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 or ag... | 34.865979 | 101 | 0.747191 |
62315c2fe01078775833e900d1038c23dd5e003e | 384 | package com.msr.better.source;
import com.msr.better.ch1xmlbean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author MaiShuRen
* @site https://www.maishuren.top
* @since 2021-09-19 15:48:28
*/
@Configuration
public class MainConfig ... | 19.2 | 60 | 0.747396 |
425521c226b7d36e5d07601cd51f549f0ccbc51a | 1,975 | /*
* Copyright 2009 Kjetil Valstadsve
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 40.306122 | 112 | 0.701266 |
2a0038da2aee93dc97ccadafc427d5917adbe01e | 955 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
public List<List<Integer>> levelOrderBottom(TreeNode root) {
List<List<Integer>> result = new ArrayList<List<Intege... | 28.088235 | 68 | 0.507853 |
104f7be8534c39cb0f1a0cea7bea97378e886df7 | 6,616 | package com.ceosilvajr.app.onlineshoppingcart;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import androi... | 36.153005 | 109 | 0.628174 |
d2f3008af7abfeb5d82c93a340052faffbc31615 | 3,403 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 38.670455 | 83 | 0.732001 |
3a0567d5485188c89e26f6e1b25f6e18223bdd10 | 7,014 | package com.ayang818.agito.servlet;
import com.ayang818.agito.annotation.responseAnnotation.ResponseBody;
import com.ayang818.agito.annotation.responseAnnotation.ResponseView;
import com.ayang818.agito.helper.BeanHelper;
import com.ayang818.agito.helper.ConfigHelper;
import com.ayang818.agito.helper.ControllerHelper;
... | 43.8375 | 129 | 0.618335 |
c6f74449820c31225e0c30cd75f9c8a8f4ebc26e | 54,502 | /* The following code was generated by JFlex 1.7.0 tweaked for IntelliJ platform */
package com.reason.lang.ocaml;
import com.intellij.psi.tree.IElementType;
import com.reason.lang.core.type.ORTypes;
import com.intellij.lexer.FlexLexer;
import com.reason.lang.ocaml.*;
import static com.intellij.psi.TokenType.*;
@Su... | 32.441667 | 142 | 0.49956 |
ceadfe4f76dc7d46fbde8f5f4b8404b21489c413 | 3,920 | package ru.betterend.blocks.basis;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.jetbrains.annotations.Nullable;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.client.renderer.block.model.Bl... | 35.963303 | 136 | 0.729847 |
a4a241264d0e98024d7e4b586804b9290c7e74e9 | 1,509 | /*===========================================================================
Copyright (C) 2016-2017 by the Okapi Framework contributors
-----------------------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except i... | 35.093023 | 77 | 0.600398 |
9f7c4b3c1819e406ac34bfa44bfca7d0945c01fe | 297 | package com.hrms.hrms.dataAccess.abstracts;
import com.hrms.hrms.entities.concretes.ConfirmEmployer;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ConfirmEmployerDao extends JpaRepository<ConfirmEmployer,Integer> {
ConfirmEmployer getByEmployerId(int id);
}
| 33 | 84 | 0.841751 |
1d4a5f296215f94e770fddfdfee8a71df90c25e0 | 1,397 | package org.myrobotlab.document.transformer;
import java.util.HashMap;
public class StageConfiguration extends Configuration {
// private HashMap<String, Object> config = null;
private String stageName = "defaultStage";
private String stageClass = "org.myrobotlab.document.transformer.AbstractStage";
... | 24.086207 | 83 | 0.646385 |
c5a076cfbf1d5c2d6edd5660f914aadeca1ec044 | 37,210 | /*
*
* 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"); y... | 36.196498 | 127 | 0.51384 |
c46852f64c4cab27a234a1de519d5d2db03dee7c | 2,692 | /*
* Copyright (c) 2010 - 2015 Novus Partners, Inc. (http://www.novus.com)
* Copyright (c) 2015 - 2016 Rose Toomey (https://github.com/rktoomey) and other individual contributors where noted
*
* Module: salat-core
* Class: Bicycle.java
* Last modified: 2016-07-10 23:42:23 EDT
*
* Licensed under t... | 26.653465 | 116 | 0.59844 |
097f66c87b0ab3cefff294fc8e31386dccd9c251 | 1,540 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 15.098039 | 152 | 0.433766 |
0ca6be0d32858602d0e1f6f2507f6d9e89e1edbd | 9,021 | package sarong.discouraged;
import sarong.LightRNG;
import sarong.RandomnessSource;
import sarong.util.CrossHash;
import sarong.util.StringKit;
import java.io.Serializable;
import java.util.Arrays;
/**
* High-quality, high-period, faster than several other high-period generators, and uses int math.
* Effectively a... | 42.551887 | 282 | 0.535639 |
92e6829146d3deb3e0d8711e239f160ae7df304a | 668 | //
// Decompiled by Procyon v0.5.36
//
package com.mks.api.response;
public class InvalidCommandSelectionException extends CommandException
{
public InvalidCommandSelectionException() {
}
public InvalidCommandSelectionException(final String msg) {
super(msg);
}
public InvalidCo... | 22.266667 | 70 | 0.595808 |
5aeb8dcf8613b819905b3aee70702f420d412a65 | 7,652 | /*
* Copyright (c) 2010 - 2014 by Oli B.
*
* 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 agr... | 37.881188 | 117 | 0.681913 |
2266196e1bed0aeb51ae2496fe1a599650984269 | 105 | package com.gangoffour2.monopoly.eccezioni;
public class NoPlayerException extends RuntimeException {
}
| 21 | 57 | 0.847619 |
297077cf8b3043356f0cd880e2a1cd5568bb319e | 848 | package jdbc.pojo;
public class Moment {
private String author;
private String content;
private String time;
private String authorimg;
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getContent() {
return content;
}
public voi... | 18.844444 | 78 | 0.700472 |
8525b7c39ec86c36b9f70f88546f2e735219e958 | 970 | package Array;
public class Sum_of_diagonal_matrix {
public static void main(String[] args) {
int[][] matrix = {
{1,2,3},
{4,5,6},
{7,8,9},
};
int ans = sum(matrix);
System.out.println(ans);
}
... | 24.871795 | 57 | 0.314433 |
57677a0d6128d862549a3522cf6a14f3044c7a59 | 556 | package washington;
import washington.domain.member.LoginId;
import washington.domain.member.Member;
import washington.domain.propose.Date;
import washington.domain.propose.ProposedDate;
import java.time.LocalDate;
public class TestUtil {
public static Member member(String loginId) {
return ... | 25.272727 | 76 | 0.708633 |
fefc0db53d27290ce79ea766cd23a0a83766e147 | 752 | package net.jlxxw.wechat.base;
import org.apache.commons.io.IOUtils;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.core.io.ClassPathResource;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
/**
* @author chunyang.leng
* @da... | 28.923077 | 83 | 0.753989 |
e4a9fa309724d601656ab0932de6bf3c3fa6af0a | 23,685 | package replicant;
import arez.Arez;
import arez.Disposable;
import java.util.concurrent.atomic.AtomicInteger;
import javax.annotation.Nonnull;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import static org.mockito.Mockito.*;
import static org.testng.Assert.*;
public class ReplicantR... | 37.595238 | 120 | 0.669369 |
47b6f0c6857e75c24df5661ddc2b67a7bce35668 | 8,599 | /*
* Copyright 2010-2013 Hippo B.V. (http://www.onehippo.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 ... | 46.481081 | 150 | 0.640888 |
bb4095eac8e3519535b6d97571b59ba24ba93ea2 | 3,811 | /*
* The MIT License (MIT)
*
* Copyright (c) 2021 Lachlan Dowding
*
* 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 u... | 34.963303 | 119 | 0.669641 |
2e6951faf894d66ca3adeee8ea26d669ef03e24e | 960 | package net.tenie.myblog.validate.impl;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import net.tenie.myblog.tools.StringUtils;
import net.tenie.myblog.validate.Phone;
/**
* 执行手机号校验
*... | 22.857143 | 79 | 0.622917 |
25a471034db4ac1391f1e8052663cde7e2c9f544 | 98 | package com.margin.enums;
public enum NameType {
GIVEN_NAME,
SURNAME_NAME,
UNKNOWN
}
| 12.25 | 25 | 0.693878 |
ea7c4653c99aa55fdae30ed44773d52639a328c9 | 10,884 | package com.example.powellparstagram.fragments;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import an... | 39.434783 | 119 | 0.631753 |
b098c397af51606be6f2b80abbdf74ad90565a0a | 437 | package java.net;
import org.checkerframework.checker.javari.qual.*;
import java.io.IOException;
public class MalformedURLException extends IOException {
private static final long serialVersionUID = -182787522200415866L;
public MalformedURLException() {
throw new RuntimeException("skeleton method");
... | 25.705882 | 70 | 0.743707 |
e3936650a7606dd0436d80803c780f0ef71dca95 | 2,253 | package org.knowm.xchange.coinbene.service;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.coinbene.dto.CoinbeneAdapters;
import org.knowm.xchange.coinbene.dto.marketdata.CoinbeneSymbol;
import org.knowm.xchange.currenc... | 30.863014 | 100 | 0.721704 |
224bdf7529706af07d8a3a7f418b521160a878c3 | 3,117 | /**
* @author mchyzer
* $Id$
*/
package edu.internet2.middleware.grouper.app.remedy.digitalMarketplace;
import java.util.LinkedHashMap;
import java.util.Map;
import edu.internet2.middleware.grouper.app.remedy.digitalMarketplace.GrouperDigitalMarketplaceFullRefresh;
import edu.internet2.middleware.grouper... | 32.134021 | 122 | 0.684312 |
7e39ada9f88cddfecec07370aa4bcd6c27a11d09 | 270 | package com.sameal.dd.http.response;
import java.io.Serializable;
/**
* author : Android 轮子哥
* github : https://github.com/getActivity/AndroidProject
* time : 2019/12/07
* desc : 注册返回
*/
public final class RegisterBean implements Serializable {
} | 20.769231 | 60 | 0.685185 |
4007ac67f5e55bfb960e7d107b9fda3eac238486 | 233 | package com.eeeffff.yapidoc.constants;
/**
* 封装HTTP请求方式枚举
*
*
* @version V1.0
* @date 2019-06-05 13:16
*/
public enum RequestMethod {
/**
*
*/
POST,
/**
*
*/
GET,
/**
*
*/
PUT,
/**
*
*/
DELETE,
;
} | 7.516129 | 38 | 0.472103 |
d5da51fed22cb99b4a72ad55b999656a5831d035 | 306 | package pw.brock.mmdn.models;
import java.util.List;
import java.util.Map;
import com.google.api.client.util.Key;
/**
* @author BrockWS
*/
public class HashDatabase {
@Key
public Map<String, Map<String, String>> hashes;
@Key
public Map<String, Map<String, List<String>>> collisions;
}
| 18 | 61 | 0.69281 |
ecd20addb489d3c3d54a36924cfdafa1fa615b0f | 1,451 | package org.parallelme.FaceME;
import org.opencv.imgproc.Imgproc;
/**
* Created by Leandro on 07/12/2015.
*/
public class Parameters {
public static int typeOfTemplateMatching = Imgproc.TM_CCOEFF_NORMED;
//TO DO: PARAMETERIZE TEMPLATE MATCHING METHOD:
// TM_SQDIFF, TM_SQDIFF_NORMED, TM_CCORR, TM_CCORR_N... | 30.87234 | 90 | 0.711234 |
1b9a9abf3d7a7c85b9bb50637cb2d5163205e7df | 1,373 | package sk.freemap.gpxAnimator.ui;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestDurationSpinnerModel {
private static List<Long> edgeCases = new ArrayLi... | 24.517857 | 104 | 0.651857 |
6f372c76889d994fe6ddc15cb07d833281047f67 | 3,646 | package br.cin.ufpe.sensibility.gui;
import br.cin.ufpe.sensibility.gui.data.DataJPanel;
import br.cin.ufpe.sensibility.gui.listener.ContainerRemoveActionListener;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
/**
*
... | 29.403226 | 103 | 0.606418 |
939acfe58f37aaa9aa2ec3ddcd352865608fb763 | 4,273 | //================================================================================
//Copyright (c) 2011, David Yu
//All rights reserved.
//--------------------------------------------------------------------------------
// Redistribution and use in source and binary forms, with or without
// modification, are permitted... | 41.086538 | 88 | 0.589282 |
7727e9f5e7d3c0d04c7f3e436a29f28a33eed729 | 3,645 | package com.fc.test.service.impl;
import com.fc.test.common.conf.V2Config;
import com.fc.test.common.file.FileUploadUtils;
import com.fc.test.common.support.Convert;
import com.fc.test.mapper.auto.TsysDatasMapper;
import com.fc.test.model.auto.TsysDatas;
import com.fc.test.model.auto.TsysDatasExample;
import com.fc.te... | 32.837838 | 85 | 0.720165 |
18ce19eef5999c5e7dcb46fa53ada91f5e0ff6d9 | 8,412 | package ru.quazar.gui;
import com.jtattoo.plaf.smart.SmartLookAndFeel;
import ru.quazar.listeners.RezumeButtonActionListener;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.util.l... | 33.783133 | 167 | 0.654541 |
09a8c1c73dbd1a8ee2a6be01bb78338668f3cf85 | 395 | package cc.mrbird.web.service;
import cc.mrbird.web.domain.CRMSecondHouseStatistics;
import java.util.List;
import java.util.Map;
public interface ImpalaSqlService {
public List<CRMSecondHouseStatistics> customSecondHouseProfile(String startDate, String endDate);
public List<CRMSecondHouseStatistics> custo... | 24.6875 | 117 | 0.820253 |
b14e76de2aa79dcf0322f531abba0e45d9bd6bfc | 5,700 | package de.rfelgent.tus;
import de.rfelgent.tus.service.LocationResolver;
import de.rfelgent.tus.service.LocationResolverAbsolute;
import io.tus.java.client.ProtocolException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impor... | 42.222222 | 183 | 0.719474 |
57215d34b539426db03283a440c679bc2be32d12 | 4,258 | package org.jboss.resteasy.utils.maven;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.eclipse.aether.transfer.AbstractTransferListener;
import org.eclipse.aether.transfer.TransferEvent;
import org.eclipse.aether.transfer.TransferResource;
import java.text.DecimalFormat... | 34.901639 | 118 | 0.652419 |
7300f64a53dd87d294f1dd875ff68e2f023b5f46 | 212 | package fr.epicanard.globalmarketchest.database.querybuilder;
import lombok.Getter;
public class ColumnType {
@Getter
private String value;
public ColumnType(String value) {
this.value = value;
}
} | 17.666667 | 61 | 0.75 |
c573b4c90db6caf73f8a505f82c2d21568405e66 | 4,332 | /*
* Copyright (c) 2011-2017, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | 36.403361 | 117 | 0.746537 |
ad095752a319ce86f8537bd869bf2906bb8722ce | 2,328 | package obscurum.creatures;
import java.awt.Point;
import obscurum.creatures.LootTableEntry;
import obscurum.creatures.ai.CreatureAI;
import obscurum.creatures.ai.IdleAI;
import obscurum.display.Display;
import obscurum.environment.Level;
import obscurum.items.AmuletOfPower;
import obscurum.items.Inventory;
import obs... | 35.815385 | 79 | 0.699313 |
ffe6b255e61a9f26cd0734369e5981cbcc840d19 | 1,959 | package job4j.ru.fragmentTask;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Te... | 29.238806 | 112 | 0.691169 |
ffd6ceca5ba89f07787d57e71879a51711fc7c60 | 3,191 | /*
* 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.311828 | 116 | 0.713883 |
788410793232889aadb0264028e487ef440c0205 | 7,300 | package com.windcloud.windtool;
import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generator.InjectionConfig;
import com.baomidou.mybatisplus.generator.config.*;
import com.baomidou.mybatisplus.generator.config.po.TableInfo;... | 39.673913 | 107 | 0.604658 |
d2326580c49cece03c63dea68616ec24e29e83d6 | 1,717 | package com.biswajitbanik.Diem;
import android.content.Intent;
import android.graphics.Typeface;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.VideoView;
... | 29.603448 | 97 | 0.679091 |
329b4ba5e8cff477c1209ccac7d91a2ea1c1d3e5 | 4,362 | /*
* Copyright (c) 2019, Ashish Bailkeri. All rights reserved.
*
* 1. Redistribution in source and in binary forms is NOT permitted
* in any way shape or form unless given permission by the license holder.
*
* 2. Any person(s) who have access to this code by the license holder need this
* license to be present i... | 36.966102 | 94 | 0.508941 |
a6cff8e3ff1885789877ae7003a920bb34614e60 | 22,811 | /*
* 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 ... | 45.622 | 120 | 0.672483 |
8de9372dc65716c7f06cce05869d4a219dada863 | 337 | package fr.romainmoreau.gsmmodem.client.api;
public class GsmModemResponseException extends GsmModemException {
private static final long serialVersionUID = 1L;
public GsmModemResponseException(String message) {
super(message);
}
public GsmModemResponseException(String message, Exception cause) {
super(messa... | 24.071429 | 68 | 0.79822 |
d2ce246dc95bee8abb7650a64af3ddb86963e024 | 1,010 | package org.python.modules;
import jnr.constants.platform.Fcntl;
import jnr.posix.POSIX;
import org.python.core.ArgParser;
import org.python.core.PyLong;
import org.python.core.PyObject;
import org.python.annotations.ExposedFunction;
import org.python.annotations.ExposedModule;
import org.python.annotations.ModuleInit... | 30.606061 | 82 | 0.69505 |
7d6ace345d679634745d9a15a0765afdda6552e5 | 1,007 | package io.katharsis.cdi.internal;
import java.util.concurrent.Callable;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.transaction.TransactionalException;
import io.katharsis.core.internal.boot.TransactionRunner;
/**
* Runs within CDI/JEE container.
*/
@ApplicationSco... | 23.418605 | 64 | 0.756703 |
408adc0600467cff064369130ab1e2d39792b937 | 684 | #foreach ($component in $components)
#if ($helper.exportsTo("RobotContainer", $component)
&& "#type($component)" != ""
&& ("#type($component)" == "SubsystemBase"
|| "#type($component)" == "PIDSubsystem"))
#foreach ($command in $commands)
#if($command.name == $component.getProperty("Default Command").value)
#if ($... | 36 | 113 | 0.701754 |
52a317c8daa6385a81bf465f9fe8c43100a6bca2 | 1,717 | package teatime.robot.edmund.language;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.Scanner;
import com.teatime.common.util.LogUtil;
public class TrivialCorpu... | 25.25 | 74 | 0.663366 |
09dbcfdb0a50a1d378dc89cde6a838f3996c7102 | 2,634 | package org.llaith.onyx.testkit.docker.junit.ext.pgsql;
import org.llaith.onyx.testkit.docker.junit.DockerConfig;
import static java.util.Objects.requireNonNull;
import static org.llaith.onyx.testkit.docker.junit.GenericWaitingStrategies.waitForPort;
import static org.llaith.onyx.testkit.docker.junit.ext.pgsql.WaitFo... | 27.726316 | 108 | 0.671982 |
3b06df0d8664a3dd03f4b957ec64ac4c5a53d35d | 1,083 | package com.pancm;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
* @Title: ActuatorApp
* @Description:
启动程序之后,在浏览器输入: http://localhost:8284/actuator 加上
1. /autoconfig 可以得到配置生效信息
2. /configprops 可以得到属性的内容和默认值
3. /beans 可 ... | 25.186047 | 68 | 0.686981 |
77b45bb5a2294e688ceb856e2f39a3bb6a7905b7 | 2,005 | package com.bokecc.sample.base;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
import androidx.appcompat.app.ActionB... | 25.705128 | 117 | 0.637406 |
98d397da41d87d49752b9fe6329bba23ea070f20 | 2,075 | package com.crud;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class CreateStatementExample {
private static final String createTableSQL = "create table users (\r\n" + " id int(3) primary key,\r\n" +
" name varchar... | 37.727273 | 112 | 0.577831 |
f6e3f01a5acfd17bb5d68ff6e857a145ae5039c3 | 3,455 | /*
* This file is generated by jOOQ.
*/
package com.hedera.hashgraph.stablecoin.platform.db.tables;
import com.hedera.hashgraph.stablecoin.platform.db.Public;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.j... | 26.782946 | 151 | 0.654993 |
4ca235be003d03a4c0aa4e20653601c6cacb2876 | 4,269 | /*
* Code by:@yinengy
* Time: 10/7/2018
*
* Correspond to the algorithm state in page 138,
* all /* comments are from the book.
*/
import java.io.FileNotFoundException;
import java.util.LinkedList;
import java.util.PriorityQueue;
public class DijkstrasAlgorithm {
/**
* node with distance(to s) as key,... | 31.622222 | 94 | 0.494261 |
af16ef84b23345bf0ff5d6a7ab12b967d19a9724 | 1,137 | package cn.prosayj.blog.manage.book.service;
import cn.prosayj.blog.core.dao.PageUtils;
import cn.prosayj.blog.core.dao.domain.book.BookNote;
import cn.prosayj.blog.core.dao.domain.book.dto.BookNoteDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Map;
/**
* BookNoteService
*
* @au... | 19.603448 | 61 | 0.640281 |
d0a7e259e0a2fffd10d7b7fbfc95be4e7d924a69 | 415 | package abstractfactory.restaurant;
import abstractfactory.product.Beverage;
import abstractfactory.product.Pizza;
import abstractfactory.product.vn.VNBeverage;
import abstractfactory.product.vn.VNPizza;
public class VNPizzaRestaurant extends PizzaRestaurant {
@Override
public Beverage deliverBeverage() {
return... | 19.761905 | 56 | 0.79759 |
8019868ebea59bd901764f9f6840da908d01f1ed | 2,711 | package gov.healthit.chpl.listing.measure;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import ... | 34.316456 | 123 | 0.729989 |
eac7ef78e6833db86d6b3d0c4ae35d1ef20efc2c | 3,264 | package com.avaje.ebeaninternal.server.cache;
import com.avaje.ebean.EbeanServer;
import com.avaje.ebean.cache.ServerCache;
import com.avaje.ebean.cache.ServerCacheFactory;
import com.avaje.ebean.cache.ServerCacheManager;
import com.avaje.ebean.cache.ServerCacheOptions;
import com.avaje.ebeaninternal.api.SpiEbeanServe... | 28.884956 | 147 | 0.767157 |
e56bcf2a9c65d1591740bb349a52a91d844f8aeb | 2,442 | package lazy.exnihiloauto.items;
import com.google.common.collect.Sets;
import lazy.exnihiloauto.Ref;
import lazy.exnihiloauto.block.compressed.CompressedBlock;
import lazy.exnihiloauto.setup.ModToolTypes;
import lazy.exnihiloauto.setup.other.CompressedBlocks;
import lombok.Getter;
import net.minecraft.block.Block;
im... | 38.761905 | 101 | 0.703931 |
a0dc3fc8104f19b1957b6a7858ddd58a9b6a588e | 831 | package seng2200;
public class Legwork {
public double lasted = 0.0;
public synchronized void informPendingTime(double longevity) {
this.additionalLasting -= (this.additionalLasting - longevity);
}
public ProductivityStep podium = null;
public synchronized double haveRestPeriod() {
return this.add... | 23.083333 | 71 | 0.731649 |
4c937e7a0cc7846659e224fc2bfa26fdb87f21f3 | 5,744 | /*
* Copyright 2016 predic8 GmbH, www.predic8.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 applicab... | 42.548148 | 146 | 0.670439 |
92881fa0e4e863649e24842b977312c19dd0bf99 | 2,387 | package com.planet_ink.coffee_mud.WebMacros;
import com.planet_ink.coffee_web.interfaces.*;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet... | 36.166667 | 98 | 0.733976 |
514b42c801471904bdb8c94742aa8bdbe26ab504 | 1,889 | package com.zz.bi.canal;
import com.alibaba.otter.canal.protocol.CanalEntry;
import java.text.MessageFormat;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
public class MySQLParser implements CanalParser {
@Override
public String processDelete(Canal... | 36.326923 | 130 | 0.559026 |
372610183bf943141fcc33fe5720553d2a9318fc | 986 | package com.ravram.nemesis.model;
import com.ravram.nemesis.Json;
import com.ravram.nemesis.JsonT;
import io.lacuna.bifurcan.List;
public final class JArr implements Json {
public final List<Json> value;
public JArr(final List<Json> i) {
this.value = i;
}
@Override
public JType type() {
... | 21.434783 | 60 | 0.56998 |
99653e3f2856f12c9dcb904fc871293a7f716326 | 2,326 | package net.megavex.scoreboardlibrary.internal;
import com.google.common.base.Preconditions;
import net.megavex.scoreboardlibrary.api.ScoreboardManager;
import net.megavex.scoreboardlibrary.api.sidebar.Sidebar;
import net.megavex.scoreboardlibrary.api.team.TeamInfo;
import net.megavex.scoreboardlibrary.internal.nms.ba... | 32.760563 | 99 | 0.789338 |
ccda9c1a844efab1b6e23586be6aa17adec4be39 | 305 |
package org.eclipse.birt.report.engine.api;
public interface IPPTRenderOption extends IRenderOption
{
/**
* The option for PPT emitter when exports to office 2010 and 2013.
*/
public static final String EXPORT_FILE_FOR_MICROSOFT_OFFICE_2010_2013 = "pptRenderOption.exportFileInMht";
}
| 25.416667 | 108 | 0.767213 |
ffc7b41838a3ac39279301fbf89f8a3c4072b517 | 484 | package com.zuoxiaolong.deerlet.redis.client.connection;
import com.zuoxiaolong.deerlet.redis.client.io.MultibulkInputStream;
import com.zuoxiaolong.deerlet.redis.client.io.MultibulkOutputStream;
/**
*
* 该接口的目的是为了封装底层socket通信。
*
* @author zuoxiaolong
* @since 2015 2015年3月6日 下午11:39:37
*
*/
public interface Co... | 19.36 | 69 | 0.778926 |
316cede0f58422828f4648bf1902b962d440ba59 | 6,226 | package gridwatch.plugwatch.gridWatch;
import android.os.Handler;
import android.os.ResultReceiver;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.Schedul... | 39.910256 | 204 | 0.559107 |
632a89b88a0e4a8cc0cd5e345adf3dd9f327ad1e | 1,588 | package org.drools.simulation.fluent.session.impl;
import java.util.Map;
import org.drools.core.command.runtime.process.AbortWorkItemCommand;
import org.drools.core.command.runtime.process.CompleteWorkItemCommand;
import org.drools.core.command.runtime.process.RegisterWorkItemHandlerCommand;
import org.drools.simulat... | 36.090909 | 134 | 0.784635 |
3d6d18e09f0f31739121a0995717366e8055df2c | 2,442 | package com.tramchester.dataimport.nptg;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.netflix.governator.guice.lazy.LazySingleton;
import com.tramchester.config.RemoteDataSourceConfig;
import com.tramchester.config.TramchesterConfig;
import com.tramchester.dataimport.UnzipFetchedData;
import com.t... | 33 | 98 | 0.711302 |
d715c2567409f93497e1541ff94c8703eba308c0 | 1,744 | package com.example.projekt1.Model;
import java.util.Date;
public class Order {
private static int nextNumber;
private final int number;
private final Client client;
private final Device device;
private String problem;
private Maintainer maintainer;
private final Date dateIn;
private ... | 21.268293 | 77 | 0.608945 |
b5691d3eadb74fbfff21dba0dc185144b2cb96d6 | 718 | package com.example.demo.pojo;
/**
* #
* # ┏┓ ┏┓
* # ┏┛┻━━━┛┻┓
* # ┃ ┃
* # ┃ ━ ┃
* # ┃ ┳┛ ┗┳ ┃
* # ┃ ┃
* # ┃ ┻ ┃
* # ┃ ┃
* # ┗━┓ ┏━┛Codes are far away from bugs with the animal protecting
* # ┃ ┃ 神兽保佑,代码无bug
* # ┃ ┃
* # ┃ ┗━━━┓
* ... | 16.697674 | 71 | 0.335655 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.