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 |
|---|---|---|---|---|---|
94b9ca6298e8f7ebeb7e71854d3cecb752bbc16f | 508 | package com.thinkgem.jeesite.modules.report.dao;
import java.util.List;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.report.entity.MsgList;
/**
* 下游发送明细DAO接口
* @author apple
* @version 2019-05-17
... | 26.736842 | 69 | 0.801181 |
23810ff8a2f2ceea2d09e0050676ce08913dd425 | 1,132 | package com.rocketchat.core.model;
import com.rocketchat.common.data.model.User;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by sachin on 27/7/17.
*/
public class RoomRole {
private String id;
private String roomId;
priv... | 22.64 | 69 | 0.577739 |
0946424c543fb79bf6e7ca7082a7b7e3d71d7f31 | 2,117 |
package org.springframework.boot.web.servlet.context;
import javax.servlet.Servlet;
import org.junit.Test;
import org.springframework.boot.web.servlet.server.MockServletWebServerFactory;
import org.springframework.core.io.ClassPathResource;
import static org.mockito.Mockito.verify;
/**
* Tests for {@link XmlSer... | 26.797468 | 85 | 0.775154 |
d4ed7269e92c75cd7ff2696dae9e948402df8e0e | 2,149 | package uk.gov.di.ipv.atp.dcs.services;
import com.nimbusds.jose.*;
import com.nimbusds.jose.crypto.RSADecrypter;
import com.nimbusds.jose.crypto.RSAEncrypter;
import reactor.core.publisher.Mono;
import java.security.Key;
import java.security.PrivateKey;
import java.security.cert.Certificate;
import java.security.int... | 32.560606 | 97 | 0.651466 |
0c944d514ae114eff542d5598766162b12d4a086 | 5,669 | /*
* The MIT License
*
* Copyright 2013 Cameron Garnham.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... | 30.643243 | 96 | 0.696419 |
e0461f2db44e000c666c2dfada9cd1961469bbb5 | 503 | package com.mb.fhl.net;
/**
* Created by Administrator on 2016/10/11 0011.
* api 异常码
*/
public class ApiErrorCode {
/** 客户端错误*/
public static int ERROR_CLIENT_AUTHORIZED = 1;
/** 用户授权失败*/
public static int ERROR_USER_AUTHORIZED = 2;
/** 请求参数错误*/
public static int ERROR_REQUEST_PARAM = 3;
... | 21.869565 | 50 | 0.642147 |
3253cc6287d8fbbdd97543dc3a7369e7b13c46d9 | 4,637 | package com.artemzin.android.bytes.ui;
import android.content.Context;
import android.content.res.Resources;
/**
* Contains methods to convert dp to px, px to dp, sp to px and so on
* Awesome!
*
* @see <a href="http://stackoverflow.com/questions/4605527/converting-pixels-to-dp">Converting pixels to dp on stackove... | 37.096 | 133 | 0.662282 |
e69c0c3d06a88159539b7bf98b7c36a1a004b005 | 547 | package cn.leetechweb.summer.mvc.support;
/**
* Project Name: summer
* Create Time: 2020/11/18 14:28
*
* @author junyu lee
**/
public enum HttpStatus {
/**
* 响应成功
*/
OK(200),
/**
* 资源未找到
*/
NOT_FOUND(404),
/**
* 服务器发生内部错误
*/
INTERNAL_SERVER_ERROR(500),
... | 12.431818 | 41 | 0.491773 |
41d9e14071aa9f9fcb9a4794a9ca24db75db92bf | 219 | package example.service;
import example.repo.Customer43Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer43Service {
public Customer43Service(Customer43Repository repo) {
}
}
| 18.25 | 54 | 0.826484 |
69666edf4cde7a9b08fee60efecab1f3aaf6f7da | 1,275 | /*
* Copyright (c) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 25.5 | 100 | 0.724706 |
f7479b9757f454d437d5641274c566acc7bdf932 | 2,254 | import java.sql.*;
public class projectdb {
public static String project = "test127";
public static void main(String[] args) throws ClassNotFoundException
{
// load the sqlite-JDBC driver using the current class loader
Class.forName("org.sqlite.JDBC");
Connection connection = nul... | 35.21875 | 101 | 0.550133 |
83cde6ae75daca4c9d69ee0a57c065b291e5ac8c | 4,411 | /*
* Copyright 2017 Steve McDuff
*
* 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 ... | 29.019737 | 121 | 0.641805 |
fae46d5f9acf9211c6d8758bebf36660de8b34c3 | 11,475 | // Copyright 2014 takahashikzn
//
// 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 wri... | 27 | 104 | 0.505185 |
1cc3b6730234dd16f3b513768512a6e651694928 | 10,545 | package a05_graphs_trees_heaps;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.NavigableSet;
import java.util.TreeSet;
import util.Interval;
import util.ListNode;
import util.TreeNode;
public class BinarySearchTreeBootCamp {
/**
* Given a ... | 28.96978 | 147 | 0.655097 |
4da6bf308a5c368256fd34efed5b6aff1b2502a3 | 7,310 | package com.ms.silverking.net.test;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.GatheringByteChannel;
import java.util.Random;
import com.ms.silverking.time.SimpleStopwatch;
import com.ms.silverking.time.Stopwatch;
public clas... | 37.487179 | 117 | 0.487688 |
ce9426df3f439c1cd02dd2fe2a700ce6e5654eca | 2,581 | package org.eastars.javasourcer.gui.controller.impl;
import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.util.Arrays;
import java.util.Locale;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionMode... | 29.329545 | 133 | 0.782642 |
b015db7c2a23e14863f1645b0800d451fe28ddcd | 348 | package error998.ple;
import error998.ple.init.ModItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class PLECreativeTab extends CreativeTabs{
public PLECreativeTab()
{
super("creativeTab");
}
// Creative Tab Icon
@Override
public Item getTabIconItem()
{
return ... | 15.818182 | 49 | 0.761494 |
52363cbfa66d74e74bb988234ba17ff428f56340 | 5,730 | package com.symphony.bdk.core.auth.impl;
import static com.symphony.bdk.core.auth.JwtHelperTest.JWT;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import s... | 35.590062 | 99 | 0.760558 |
12575b0f9d50b27505d0145c3d2cd279894958be | 3,731 | package usi.dbdp.uic.base.dao;
import java.util.List;
import usi.dbdp.uic.dto.PageObj;
import usi.dbdp.uic.dto.RoleInfo;
import usi.dbdp.uic.dto.RoleUser;
import usi.dbdp.uic.dto.UserInfo;
import usi.dbdp.uic.dto.UserInfo4Session;
import usi.dbdp.uic.entity.Menu;
import usi.dbdp.uic.entity.Role;
import usi.dbdp.uic.e... | 19.534031 | 87 | 0.694184 |
6859148032f8f20fe7f761d155ced810fc227eea | 15,671 | /*
* Copyright (C) 2010-2014 The MPDroid 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 applicable ... | 37.94431 | 125 | 0.544892 |
78a17c0e88f7eba8923cb0e94ac0e0c1bbb52860 | 1,353 | package com.vson.hybrid.process.webchromeclient;
import android.util.Log;
import android.webkit.ConsoleMessage;
import android.webkit.WebView;
import com.vson.hybrid.WebViewCallBack;
/**
* @author vson
*/
public class WebChromeClient extends android.webkit.WebChromeClient {
private WebViewCallBack mWebViewCal... | 30.066667 | 84 | 0.700665 |
ffce27d166023aa574271f7f1e0c30b301f385a4 | 7,846 | /* (c) https://github.com/MontiCore/monticore */
package de.monticore.codegen.cd2java._symboltable.scopesgenitor;
import com.github.javaparser.JavaParser;
import com.github.javaparser.ParseResult;
import com.github.javaparser.ParserConfiguration;
import de.monticore.cdbasis._ast.*;
import de.monticore.cd4codebasis._as... | 40.443299 | 142 | 0.787153 |
ac693b5cba18752fad2c061e2a9a1c0bc8972199 | 4,358 | package pokecube.mobs.moves.world;
import java.util.List;
import net.minecraft.block.BlockState;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.item.ItemEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
i... | 38.910714 | 119 | 0.614961 |
1ed53c200bbe4deeb1afd954d1881d9ee39a375e | 1,603 | /*
* Copyright 2014 AgentTroll
*
* 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 i... | 33.395833 | 117 | 0.689333 |
d2ef46993e2edf5790766bf6f0b983548d8475ed | 2,556 | package dao;
import models.News;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.sql2o.Sql2o;
import java.sql.Connection;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class Sql2oNewsDaoTest {
private Connection con;
private Sql2oNewsDao newsDa... | 29.045455 | 111 | 0.638106 |
ee57c7d50b44a11a2de08c01e985257736986452 | 1,726 | // Template Source: BaseEntityCollectionPage.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -----------------------------... | 42.097561 | 152 | 0.688876 |
abfda9b91c7bc7b3862ce1864f3d7d13b1938d1b | 860 | package com.cyecize.summer.areas.startup.models;
import com.cyecize.summer.areas.routing.models.ActionMethod;
import com.cyecize.summer.areas.startup.services.DependencyContainer;
import java.util.Map;
import java.util.Set;
public class SummerAppContext {
private final DependencyContainer dependencyCo... | 30.714286 | 119 | 0.744186 |
551127c263ff1f7c15d5abc5b1a989cc780ccabc | 3,817 | package uk.ac.ebi.tsc.portal.clouddeployment.image;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import uk.ac.ebi.tsc.portal.clouddeployment.utils.InputStreamLogger;
import java.io.File;
import java.io.IOException;
import java.util.Map;
/**
* @author Jos... | 28.485075 | 113 | 0.615667 |
7e84372f1b8dd6695970e7f3005bbb7f59429a29 | 1,561 | /**
* Copyright (c) 2013 Martin Geisse
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.guiserver.template.basic.form;
import javax.xml.stream.XMLStreamException;
import name.martingeisse.guiserver.template.AbstractSingleComponentConfiguration;
import name.martingeiss... | 30.607843 | 165 | 0.806534 |
7b92f9806e9ac8f86d656469f874b7c22d71e8b8 | 1,614 | package ru.job4j.comparable;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
public class SortUserTest {
@Test
public void whenListUserThenTreeSetUser() {
... | 29.888889 | 55 | 0.592317 |
1c7eea83e6b3f2caa487b0cb2184087ac082fa42 | 961 | package xdean.stackoverflow.rx;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
import io.reactivex.MaybeSource;
import io.reactivex.Observable;
import io.reactivex.schedulers.Schedulers;
public class Q44234633 {
public static void main(String[] args) throws Interrupt... | 32.033333 | 75 | 0.663892 |
62e1978eba48159bf0fc2d24e6eef0d0ccf14cce | 5,092 | package ca.bc.gov.tno.services.models;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import ca.bc.gov.tno.services.converters.Settings;
import ca.bc.gov.tno.servi... | 21.668085 | 82 | 0.668303 |
f4092b8a7b19110a6b33e896d8410d1e85de3cea | 2,638 | package project2.gintonics.Entities;
import project2.gintonics.Utils.Utils;
public class Combination extends Primitive {
private String gin;
private String tonic;
private String garnish;
private float avgRating;
private int numRatings;
public Combination(){
super();
}... | 26.38 | 92 | 0.568234 |
54a0f61b56813f5d1cd270d9e50c94a35da9bcaa | 718 | package com.github.badoualy.telegram.tl.api.help;
import static com.github.badoualy.telegram.tl.StreamUtils.*;
import static com.github.badoualy.telegram.tl.TLObjectUtils.*;
import com.github.badoualy.telegram.tl.core.TLObject;
/**
* Abstraction level for the following constructors:
* <ul>
* <li>{@link TLPassport... | 32.636364 | 95 | 0.756267 |
b23c17aa3bb32a41886511db92f24e0773466747 | 1,047 | package com.gusfot.service;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.gusfot.pray.model.Pray;
import com.gusfot.pray.service.PrayService;
public class PrayServiceTest {
@Autowired
private Pra... | 17.163934 | 62 | 0.69914 |
056c35d25b624b14be8b6ba398ca18cf6de2a554 | 265 | package net.thevpc.nuts.toolbox.ndiff.jar;
public interface DiffItemCreateContext {
DiffEvalContext getEvalContext();
DiffCommand getDiff();
DiffKey getKey();
DiffStatus getStatus();
String getSourceValue();
String getTargetValue();
}
| 16.5625 | 42 | 0.716981 |
23987012fff839a8321016b7afb84cc82aba5a8b | 115 | package com.sq.resume.dao;
import com.sq.resume.bean.Award;
public interface AwardDao extends BaseDao<Award> {
}
| 16.428571 | 50 | 0.773913 |
1910e9b7483de0d79913f7a82b36f93a7562c6ee | 695 | // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8;
import com.android.tools.r8.utils.AndroidApp;
import com.android.tools.r8.ut... | 30.217391 | 77 | 0.74964 |
faf631705c842760597d87bc1d32d3e4cf1be930 | 2,927 | package org.robobinding.viewattribute.event;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.M... | 30.810526 | 115 | 0.815169 |
cbbf055bb0478a3bb3f2e9c247d0eff9325e23fe | 4,042 | //
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/leg... | 30.164179 | 118 | 0.637061 |
2c427dc9ccee0139cfc41d95f0730d277058c5a6 | 2,096 | package com.lukedeighton.wheelsample;
/**
* Created by Akash Wangalwar on 20-12-2016.
*/
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.graphics.Point;
impo... | 24.952381 | 61 | 0.567748 |
4970656f20b4c7cae55043dcec21ed76c0c6dd91 | 3,775 | package l2f.gameserver.skills.skillclasses;
import java.util.ArrayList;
import java.util.List;
import l2f.gameserver.model.Creature;
import l2f.gameserver.model.Player;
import l2f.gameserver.model.Skill;
import l2f.gameserver.model.instances.MonsterInstance;
import l2f.gameserver.model.items.ItemInstance;
import l2f.... | 26.215278 | 119 | 0.708874 |
02fe871eb9610e264eb6f0b58468df1bc825640a | 502 | package com.github.ztgreat.leetcode.problem_121;
/**
* 思路:找最低点到最高点的差
*/
public class Solution {
public int maxProfit(int[] prices) {
int minPrices = Integer.MAX_VALUE;
int maxProfit = 0;
for(int i=0;i<prices.length;i++){
if(prices[i]<minPrices){
minPrices=... | 18.592593 | 48 | 0.525896 |
6674691bf14b87a6919928d351f8ba11f80798e4 | 21,873 | /*******************************************************************************
* Copyright 2018 Niranjan Khare
*
* 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://w... | 40.505556 | 190 | 0.693092 |
cb01612d7686d4fae88572b4d5dc4bcae285ca11 | 952 | /**
* Copyright 2015 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28.848485 | 75 | 0.733193 |
01a94f39742bcaa0b61849e00f9810835d36df37 | 2,737 | package it.denv.supsi.i3b.advalg.algorithms.TSP.ra.intermediate.genetic.eax;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Optional;
public class ABCycle {
private List<ABEdge> path;
public ABCycle(){
path = new ArrayList<>();
}
public ABCycle(List<ABEdge> edgeL... | 22.252033 | 76 | 0.655828 |
6d5727eda793bfa1eb4fb6d61dd6e556d2a626cb | 426 | package hello;
/**
* @author: liangcan
* @version: 1.0
* @date: 2018/12/7 10:35
* @describtion: Greeting
*/
public class Greeting {
private final long id;
private final String content;
public Greeting(long id, String content) {
this.id = id;
this.content = content;
}
public l... | 15.777778 | 46 | 0.58216 |
dca79b997703a545fe97adbb45aea45e90a82b3a | 1,056 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: IGDBProtoFile.proto
package proto;
public interface PlatformWebsiteResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto.PlatformWebsiteResult)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .proto.... | 31.058824 | 78 | 0.729167 |
2e69b79c43dd656b0cbc127bbd71f7bbc43c4d5d | 3,681 | package com.alipay.android.phone.mrpc.core;
import android.text.format.Time;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class k {
private static final Pattern a = Pattern.compile("([0-9]{1,2})[- ]([A-Za-z]{3,9})[- ]([0-9]{2,4})[ ]([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])");
private ... | 30.421488 | 279 | 0.41755 |
6044e7be94dd2e5e1b73c943df99766b9f218c21 | 2,353 | package no.fint.consumer.models.korrespondanseparttype;
import no.fint.model.resource.Link;
import no.fint.model.resource.administrasjon.arkiv.KorrespondansepartTypeResource;
import no.fint.model.resource.administrasjon.arkiv.KorrespondansepartTypeResources;
import no.fint.relations.FintLinker;
import org.springframew... | 38.57377 | 134 | 0.756906 |
515ff77f9d9569adfcbb683c698c870d67c21efe | 3,122 | package kaptainwutax.playback.replay.capture;
import kaptainwutax.playback.gui.WindowSize;
import kaptainwutax.playback.replay.action.PacketAction;
import kaptainwutax.playback.replay.action.WindowFocusAction;
import kaptainwutax.playback.replay.action.WindowSizeAction;
import kaptainwutax.playback.util.PlaybackSerial... | 30.31068 | 88 | 0.783152 |
6c78c812431c2b59a3392bd251788f65a5100058 | 2,604 | package org.inferred.freebuilder.processor;
import static org.inferred.freebuilder.processor.util.ModelUtils.findAnnotationMirror;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableSet;
import org.inferred.freebuilder.processor.Metadata.Property;
import org.inferred.freebuilder.proces... | 40.6875 | 94 | 0.766897 |
10747cde160824a6d8dc0c78e0d40a8c347a1569 | 1,048 | package xyz.arkarhein.news.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import xyz.arkarhein.news.R;
import xyz.arkarhein.news.viewholders.ItemSportsNewsViewHolder;
/**
* Created ... | 29.111111 | 105 | 0.753817 |
59bfe60b8f792acdd7ad2f64f04eb7364b6bf093 | 1,859 | package sarf.verb.quadriliteral.unaugmented.passive;
import java.util.*;
import com.google.inject.Inject;
import sarf.*;
import sarf.verb.quadriliteral.unaugmented.*;
/**
* <p>Title: Sarf</p>
*
* <p>Description: تصريف الأفعال الرباعية المجردة في صيغة الماضي المبني للمجهول </p>
*
* <p>Copyright... | 31.508475 | 111 | 0.663798 |
0b6d9d883248d550a57267edfa28ce316368fd21 | 1,100 | /*
* TestMap.java
* chap16
*
* .''
* ._.-.___.' (`\
* //( ( `'
* '/ )\ ).__. )
* ' <' `\ ._/'\
* ` \ \
*
* Created by Chyi Yaqing on 06/05/19 10:27.
* Copyright (C) 2019. Chyi Yaqing.
* All rights reserved.
*
* Distributed under terms of the MIT license.
*/
import java.ut... | 26.829268 | 92 | 0.559091 |
413255aa501f1218c9973c62534354ea8c58da3a | 892 | package us.kbase.common.service;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
public class Tuple1 <T1> {
private T1 e1;
private Map<String, Object> additionalProperties = new HashMap<String, Object... | 22.3 | 85 | 0.649103 |
978be53b4e712fbf64e423a820cabd972f4a0877 | 93 | package statListeners;
public interface DefenseListener
{
public int getDefenseBonus();
}
| 13.285714 | 33 | 0.795699 |
d5a4fd8685dcc38e291b77d3346ff7b1d053f077 | 2,627 | import vtk.vtkActor;
import vtk.vtkCellArray;
import vtk.vtkNamedColors;
import vtk.vtkNativeLibrary;
import vtk.vtkPoints;
import vtk.vtkPolyData;
import vtk.vtkPolyDataMapper;
import vtk.vtkPolygon;
import vtk.vtkRenderWindow;
import vtk.vtkRenderWindowInteractor;
import vtk.vtkRenderer;
public class Polygon
{
/... | 26.27 | 71 | 0.644461 |
da9e249e514f77cbab4beb2e98bbc3306b3db3ff | 71 | package com.examplehub.basics.io;
public class StringReaderExample {}
| 17.75 | 35 | 0.816901 |
fff68ecd2398f2c768953a3e0456de59dbcbea4d | 651 | package com.kirago.chapter16;
import com.kirago.chapter16.config.TaskSchedulerConfig;
import com.kirago.chapter16.service.SchedulerdTaskService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Annotati... | 34.263158 | 119 | 0.831029 |
b3d3a1bcb584fd1c8e27313b2169d4b64bd1e7ba | 13,679 | /*
* Copyright 2014-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 24.961679 | 99 | 0.586154 |
291244cc2c5748150d859f2072bc8b4091066812 | 3,619 | /*
* 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... | 29.909091 | 93 | 0.612048 |
40efeab3a87c0f9071e6b9ddc9d0f4c10b0db6dd | 9,017 | /*
* Copyright (c) 2021, 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.apac... | 32.789091 | 142 | 0.765332 |
290d756086af7b2031001b3cf4193f1071a46040 | 390 | package org.apache.catalina.authenticator.jaspic;
import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.TargetClass;
import org.springframework.graalvm.substitutions.OnlyIfPresent;
@Delete
@TargetClass(className = "org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl", onlyWith = ... | 32.5 | 126 | 0.830769 |
71f556c8f26f49ce29fd39c7b40311ad09fb20df | 1,560 | package com.appspot.dmutti.calculator.support;
import java.math.*;
import java.text.*;
import javax.persistence.*;
import javax.servlet.http.*;
import org.joda.time.format.*;
public class Helper {
public static final DateTimeFormatter dateFormat = DateTimeFormat.forPattern("dd/MM/yyyy");
... | 37.142857 | 110 | 0.691667 |
8766164160479ede928be40447b9e33e3e8febe3 | 962 | package scrumweb.security;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import scrumweb.security.domain.Authority;
import scrumweb.user.account.domain.UserAccount;
import java.util.List;
import java.util.stream.Collectors;
publi... | 29.151515 | 96 | 0.673597 |
a40f79ae3ff974a01e6f0f01a3892d92f033fde8 | 8,157 | /*
* [New BSD License]
* Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org>
* 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 ... | 31.015209 | 115 | 0.569572 |
ea3ea64291ece65cf88e7d3171f4786f0b06d2bd | 190 | package com.github.beansoft.reatnative.idea.actions;
// Just a delegate class with icon support
public class JumpToLastEditAction extends com.intellij.ide.actions.JumpToLastEditAction {
}
| 27.142857 | 89 | 0.826316 |
3bc3c926a3f86672f8dac3a7d819d6ca5ad28886 | 799 | package com.mobwal.home.models.db;
import androidx.annotation.Nullable;
import com.google.android.gms.maps.model.LatLng;
import java.io.Serializable;
import java.util.Date;
import java.util.UUID;
public class Attachment implements Serializable {
public Attachment() {
id = UUID.randomUUID().toString();
... | 17.755556 | 49 | 0.665832 |
638e3c9cb6702e0c299e4797bde7aa2a7231b3d4 | 412 | package com.alpha5.autoaid.repository;
import com.alpha5.autoaid.model.Appointment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.Date;
import java.util.List;
public interface AppointmentRepository extends JpaRepository<Appointmen... | 27.466667 | 81 | 0.82767 |
76e18f7b0d0fd93f28bc7dfc976b15ff4105e355 | 10,598 | /*******************************************************************************
* Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 43.975104 | 170 | 0.64616 |
8c763651e2a0210f40057d514317273361d8faae | 64 | package org.andot.data.j2cube.dto;
public class OutCubeDTO {
}
| 12.8 | 34 | 0.765625 |
711a7816d4b5302e94f310f6e7b0ff807d7a69e1 | 20,859 | /**
* 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.
/**
* Copyright © 2015 EMBL - European Bioinformatics Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
... | 37.925455 | 124 | 0.602474 |
de13ce45045a1300f39d24772b7630d70b3572a1 | 1,521 | package ee.telekom.workflow.graph;
import java.util.Set;
/**
* The {@link GraphRepository} is a container of {@link Graph} definitions.
*/
public interface GraphRepository{
/**
* Returns the {@link Graph} with the given name and the given version,
* or the latest graph with the given name if no vers... | 29.25 | 83 | 0.608153 |
640b3ffe613a109b0ba1f4602765c7c9e69e2382 | 408 | package com.paxport.cloudaudit.model;
import javax.annotation.Nullable;
public interface ItemMetadata {
AuditItemType getType();
String getGuid();
long getTimestamp();
String getLevel();
String getModule();
String getLabel();
String getHostname();
@Nullable
String getUrl();... | 13.6 | 37 | 0.661765 |
a0a273e6cc5d4c092c2adaa4b821ec97ad7bf6af | 1,314 | package com.solace.demos.cargen;
import java.util.regex.Pattern;
public class SolaceMessagingInfo {
public static SolaceMessagingInfo getInstance() {
return new SolaceMessagingInfo();
}
private String msgVpnName = "default";
private String clientUsername = "default";
private String clientPassword = "default"... | 19.61194 | 60 | 0.634703 |
5cde1c11495eaa16aabbf799a1a01a31a81ae499 | 3,074 | package com.example.multiDatasourceDemo.config;
import com.example.multiDatasourceDemo.anothermapper.AnotherMapper;
import org.apache.ibatis.io.VFS;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.s... | 51.233333 | 116 | 0.802537 |
9e2edb99a635b7089baa723093bbbc58825b5099 | 2,422 | /* Programa para crear fichero (si no existe) y escribir en el, y (si existe) preguntar a el usuario a ingresar un nuevo
numero y este numero sumarlo con el ultimo que existe en el archivo y que solo se guarde la respuesta.
*/
import java.io.*;
public class Main {
public static void main(String args... | 35.617647 | 121 | 0.574732 |
70e407ee9033b306940fa59ecca24073015b3396 | 376 | package com.kqp.ezpas.block.entity.pullerpipe;
import com.kqp.ezpas.Ezpas;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
public class EnderPullerPipeBlockEntity extends PullerPipeBlockEntity {
public EnderPullerPipeBlockEntity(BlockPos pos, BlockState state) {
super(Ezpas... | 31.333333 | 71 | 0.784574 |
1ab6440c80863548e35f843b5ad62aa7ffc16db0 | 6,670 | package com.ruoyi.survey.service.impl;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.exception.CustomException;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.survey.domain.QfCreateModel;
import com.ruoyi.survey.domai... | 34.381443 | 139 | 0.706897 |
3affb92817fed2b2183f207de7f920be77aaf513 | 1,999 | package uk.co.mruoc.cronparser.domain;
import java.util.Arrays;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static java.lang.System.lineSeparator;
public class CronResultFormatter {
public String format(CronResult result) {
return toLine... | 30.287879 | 77 | 0.656328 |
8c0f80dbca48bfd36664a139374b08e56d383f59 | 635 | package com.br.rodrigo.pereira.sensorlogger.model.domain.data;
import com.br.rodrigo.pereira.sensorlogger.model.domain.enums.UserStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.EnumType;
import javax.persistence.En... | 26.458333 | 74 | 0.784252 |
e2e70b38dc6092c9c6c6db7069e085f24d4b15c5 | 707 | package io.renren.modules.generator.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 我的挂号
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2019-12-05 23:57:17... | 15.711111 | 56 | 0.701556 |
11c33ba6f364ff1983ebb1e29113d019fab5bce0 | 260 | package com.javabasico;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Quality {
enum Level { BAD, INDIFFERENT, GOOD }
Level value() default Level.INDIFFERENT;
}
| 20 | 44 | 0.788462 |
260506594edad5312d3032706168d2158c1f3913 | 2,293 | package com.st.libsec;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.WindowManager.LayoutParams;
/**
*... | 37.590164 | 146 | 0.664195 |
19183736c2f2a826b12a65a820275c3f91158027 | 896 | package io.github.elitedev.spigot.event.test;
import io.github.elitedev.spigot.entity.SpigotNPC;
import io.github.elitedev.spigot.entity.impl.SpigotNPCImpl_v1_8_R3;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.eve... | 28.903226 | 86 | 0.734375 |
eba252f9515df3cf53a5c086f571fc615b7a9597 | 1,080 | package com.ibm.streamsx.rest;
import java.io.IOException;
import java.math.BigInteger;
import com.ibm.streamsx.topology.internal.streams.InvokeCancel;
class StreamsConnectionImpl extends AbstractStreamsConnection {
private final String userName;
StreamsConnectionImpl(String userName, String authorization,... | 29.189189 | 76 | 0.656481 |
ff0bf0a3f84cd086a3afda265336945c4c7175f1 | 2,123 | /*
* Copyright 2016-2020 DiffPlug
*
* 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 t... | 33.171875 | 109 | 0.769666 |
58337e7082918c8fe840ba7e754b1b91283ff52a | 2,036 | package me.kkuai.kuailian.adapter;
import java.util.LinkedList;
import java.util.List;
import me.kkuai.kuailian.R;
import me.kkuai.kuailian.log.Log;
import me.kkuai.kuailian.log.LogFactory;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.view.LayoutInflater;
import android.view.V... | 26.441558 | 104 | 0.761297 |
621a066b1ec43bf1fb759fae800df70beff75eaa | 272 | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
System.out.print("> ");
String s = ConvertingValues.clearSpaces(new Scanner(System.in).nextLine());
Parsing.Calculate(s);
}
}
| 27.2 | 84 | 0.632353 |
33607ec1a0609b9e5b3560741cdfaa2d97817b07 | 99 | /**
* The package contains the classes for the perfect work of the program.
*/
package sample; | 24.75 | 73 | 0.707071 |
86df645875cf9fc261f272d79e0b54f282aa90fd | 7,863 | package com.protonail.leveldb.jna;
import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
public class LevelDB implements AutoCloseable {
protected LevelDBNative.LevelDB levelDB;
public LevelDB(String levelDBDirectory, LevelDBOptions optio... | 38.925743 | 133 | 0.651024 |
2b1ee8d1c43dbd3dff8adf673028da6edba465d4 | 7,183 | /* Generated SBE (Simple Binary Encoding) message codec */
package sbe.msg;
import uk.co.real_logic.sbe.codec.java.CodecUtil;
import uk.co.real_logic.agrona.DirectBuffer;
@SuppressWarnings("all")
public class OrderViewDecoder
{
public static final int BLOCK_LENGTH = 49;
public static final int TEMPLATE_ID = 9... | 20.760116 | 106 | 0.590839 |
f28cd5e17b481c750c629b6190431164c7885225 | 138 | package pl.wojcik.taskwithmongo.model.request;
import lombok.Data;
@Data
public class SendRequest {
private Integer magic_number;
}
| 15.333333 | 46 | 0.782609 |
e03dc426dc9780880dcb7ccfa077c7e18e7f5e9d | 8,364 | package com.mgu.jogo.parser;
import org.apache.commons.lang3.CharUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.List;
/**
* Breaks up a given <code>String</code> of characters into named
* tokens.
*
* @author Markus Günther <markus.guenther@gmail.com>
*/
public cla... | 28.352542 | 153 | 0.579507 |
229d8cc320e722c0cfd6b65e9477c36d18280830 | 5,785 | package com.crazicrafter1.crutils.refl;
import com.crazicrafter1.crutils.ReflectionUtil;
import org.bukkit.inventory.ItemStack;
import java.lang.reflect.Method;
public class Mirror {
static Class<?> CLASS_CraftItemStack;
static Class<?> CLASS_ItemStack;
static Class<?> CLASS_NBTTagCompound;
static C... | 43.496241 | 144 | 0.694036 |
5cd21448ed16acb3da14f45cf8a5bdec3ec3e195 | 6,826 | /**
* Copyright (C) 2016 Cambridge Systematics, 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 app... | 23.138983 | 85 | 0.701143 |
a23a5f666dcfb7bb91dfa8bc4eeee4572f16f5a0 | 1,304 | package com.asiainfo.designpattern.architecture.servicelocator;
/**
* TODO
*
* @author zq
* @date 2018年4月19日 下午5:13:12
* Copyright: 北京亚信智慧数据科技有限公司
*/
public class ServiceLocatorTest {
public static void main(String[] args) {
// app init
AppContext co... | 25.076923 | 80 | 0.558282 |
9266e65a42e3ce73be0e48b8e9eee42837844a70 | 971 | package com.movies.moviesapp.mapper;
import com.movies.moviesapp.controller.response.WrappedActorListResponse;
import com.movies.moviesapp.entity.Actor;
import com.movies.moviesapp.util.mapper.CreateMapper;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | 28.558824 | 123 | 0.787848 |
35e7e7990449cca79007f1c7e5ca33d370a22efa | 573 | /*
* Copyright 2020, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.async.models;
/**
* ENUM of supported result types.
*/
public enum ResultType {
JSON(FileExtensionType.JSON),
CSV(FileExtensionType.CSV);
private ... | 22.92 | 54 | 0.720768 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.