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 |
|---|---|---|---|---|---|
f606089f528a75359bc06b6e76964a580ebc96fa | 2,490 | package fawc.buptroom.services;
import com.alibaba.fastjson.JSONObject;
import org.apache.hc.client5.http.classic.methods.HttpGet;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
import org.apache.hc.client5.http.impl.classic.Htt... | 40.819672 | 140 | 0.657028 |
5bb70ea5c4d570fc8fb934a795656312bceac637 | 1,645 | package com.ferreusveritas.dynamictrees.util.json;
import com.ferreusveritas.dynamictrees.util.CommonVoxelShapes;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.util.math.shapes.V... | 47 | 126 | 0.691185 |
d2c799707aa036907d0568c56305b5f829c12202 | 1,320 | package net.kr9ly.doubler.repository;
import net.kr9ly.doubler.Assisted;
import net.kr9ly.doubler.providers.SampleProviders;
import javax.inject.Inject;
/**
* Copyright 2015 kr9ly
* <br />
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | 30.697674 | 75 | 0.740152 |
a43e3f161d86638f71a8a0d232fb4e22d81a2dd2 | 2,309 | package it.colletta.repository.user;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import it.colletta.model.UserModel;
import it.colletta.repository.config.MongoConfig;
import it.colletta.security.Role;
import java.util.List;
impo... | 28.506173 | 100 | 0.760935 |
a9e4df3140baabcb0ae91780fdf10d4281987ebc | 397 | package com.shopify.model;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ShopifyAccessTokenRoot {
private String accessToken;
@XmlAttribute(name = "access_token")
public String getAccessToken() {
return accessToken;
}
public void... | 19.85 | 49 | 0.788413 |
9108ce14f38d349a3bffc8387d4c0a0ade80a83f | 2,705 | package mams.storage;
import static java.util.Objects.requireNonNull;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import java.util.logging.Logger;
import mams.commons.core.LogsCenter;
import mams.commons.exceptions.DataConversionException;
import mams.commons.exceptions.IllegalV... | 33.395062 | 110 | 0.720518 |
473305c5216ec923f426c308f59106e7449b1d80 | 728 | package com.spring.graphexample.model;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
class JobVacancyTest {
@Test
final void test() {
JobVacancy jobVacancy = new JobVacancy(1, "jobCompany", "jobTitl... | 30.333333 | 106 | 0.770604 |
2968b9264d30a92dceaecd5f387842d1e7b76c8d | 1,891 | package com.xeiam.xchange.cryptotrade.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.xeiam.xchange.cryptotrade.dto.CryptoTradeBaseResponse;
import com.xeiam.xchange.cryptotrade.dto.CryptoTradeTickerDeserializer;
@JsonDeserialize(using = Crypt... | 24.881579 | 140 | 0.735061 |
2fc9454c3923d38cff0da3182c228215a6dda0f8 | 2,962 | package org.newdawn.slick.tests;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.Color;
import org.newdawn.slick.Game;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.ShapeFill;
i... | 30.854167 | 144 | 0.681634 |
a61d7ec2c706d50a1121d6e9f6f2d623d6e0dc00 | 3,295 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Paths;
/**
* This class allow us to load a sudoku from a file and print it
* It's also used to merge the unsolved sudoku with the values from the C... | 33.969072 | 103 | 0.450379 |
fc076e66745ff0b00d3008753a4c9b7de7252f85 | 551 | package se.jocke.nb.http.bp.core.preferences;
import java.util.prefs.Preferences;
import org.openide.util.NbPreferences;
import se.jocke.nb.http.bp.core.config.ProxyConfig;
public class ProxyPreferences {
private static final Preferences PREFERENCES = NbPreferences.forModule(ProxyPreferences.class);
public ... | 27.55 | 99 | 0.747731 |
fc3db93aa3132e4ff6a25c0c33839198b836a77e | 1,371 | /*
* Copyright 2016 The Netty Project
*
* The Netty Project licenses this file to you 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 ... | 24.482143 | 78 | 0.706783 |
bac130d40a74ef0c14771d7a140232dac43d1e92 | 4,266 | /*******************************************************************************
* Copyright 2012 Danny Kunz
*
* 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.a... | 39.137615 | 129 | 0.616503 |
5b3ceac8ebe4df88c26722ada029439fb7803631 | 401 | /**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*/
package com.jeesite.modules.company.dao;
import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.company.entity.XsCompany;
/**
* 单位信息DAO接口
* @author Damon
* @version 2019-12-... | 22.277778 | 65 | 0.755611 |
a31224610d825bac44c01a75fafecc83319325ca | 1,150 | /*
* Copyright (C) 2014 Civilian Framework.
*
* Licensed under the Civilian License (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.civilian-framework.org/license.txt
*
* Unless required by applicable law or agreed to ... | 35.9375 | 89 | 0.77913 |
618762c57972af576b52c0799f3284461985c2ee | 598 | package br.com.zup.proposta.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import br.com.zup.proposta.dto.ResponseConsultaDoSolicitanteDto;
import br.com.zup.proposta.requests... | 37.375 | 76 | 0.829431 |
d166c12fbc5f434262bdbb1e8cf53f24d6a60963 | 701 | package io.primeval.reflex.proxy.handler.helper;
import io.primeval.reflex.arguments.ArgumentsProvider;
import io.primeval.reflex.proxy.CallContext;
import io.primeval.reflex.proxy.handler.CharInterceptionHandler;
public final class CharInterceptionHelper extends InterceptionHelper {
private final CharIntercepti... | 26.961538 | 89 | 0.751783 |
867b5e6a2420ff286cbc7da7d27961ad4083cedc | 3,301 | package ysoserial.payloads;
import com.sun.rowset.JdbcRowSetImpl;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.math.BigInteger;
import java.util.Comparator;
import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.TreeMap;
import org.apache.commons.beanutils.Bean... | 40.753086 | 146 | 0.729476 |
da622f77aee033c18201311171e2fcec332f6a26 | 1,143 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class BSTIterator {
//将BST全部放入一个数组里面
//inorder遍历 由于中序遍历会得到从小到大的有序数组
ArrayList<Integer> sortedNode; // declare an ArrayList
int in... | 24.847826 | 67 | 0.6028 |
2f1c39ffc39501bda8c721cdc308056c1fb0b02c | 2,563 | package seedu.address.logic.commands;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.DESC_ALICE;
import static seedu.address.logic.commands.CommandTestUtil.DESC_BENSON;
import static seedu... | 42.716667 | 120 | 0.761217 |
d753170407201f09cd26a86354ae37593f6c8110 | 1,569 | /*
* Copyright 2014, Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser
*
* Developed for use with the book:
*
* Data Structures and Algorithms in Java, Sixth Edition
* Michael T. Goodrich, Roberto Tamassia, and Michael H. Goldwasser
* John Wiley & Sons, 2014
*
* This program is free softwar... | 30.764706 | 79 | 0.688337 |
14914794e79dde06be4ed5e9ac2ab5b084a54215 | 4,165 | package com.arenas.droidfan.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.arenas.droidfan.AppContext;
import co... | 35.598291 | 126 | 0.702041 |
984118b603a3049897feecdee6f1901d1b143835 | 5,049 | /**
* 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"); yo... | 27.145161 | 105 | 0.547831 |
a863fdd1560f81ba637f72d0adc4c7219d7c2258 | 782 | package me.xemor.superheroes2.events;
import me.xemor.superheroes2.Superhero;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class PlayerLostSuperheroEvent extends Event {
private static final HandlerList HANDLERS = new HandlerList();
private Playe... | 21.135135 | 68 | 0.684143 |
20947b266fec7cbd9d34bc21faf8f653f053830d | 12,535 | package net.dongliu.apk.parser.parser;
import net.dongliu.apk.parser.exception.ParserException;
import net.dongliu.apk.parser.io.CountingInputStream;
import net.dongliu.apk.parser.struct.*;
import net.dongliu.apk.parser.struct.resource.*;
import net.dongliu.apk.parser.utils.ParseUtils;
import java.io.IOException;
imp... | 40.435484 | 113 | 0.587874 |
e4d054a95200fd391c608a95727c931d8ca1d6a9 | 742 | package tests;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.... | 25.586207 | 52 | 0.727763 |
54cd0c4598e74bc64403abae954e9e6379a8cd51 | 3,010 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Christian Schudt
*
* 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 r... | 35.833333 | 305 | 0.684718 |
d3ba7d3a37895b135d4b16b9cfdcd71f24a7e3ba | 630 | package com.sung.hee.help;
/**
* Created by SungHere on 2017-05-10.
*/
//com.sung.hee.help.BoardCheck
public class BoardCheck {
@Override
public String toString() {
return "BoardCheck{" +
"type=" + type +
", seq=" + seq +
'}';
}
public BoardChe... | 16.153846 | 37 | 0.498413 |
a3d66047ff32ade7a9de089bc13ab7e284b411c5 | 2,745 | package com.softb.system.repository.config;
import liquibase.integration.spring.SpringLiquibase;
import org.apache.commons.dbcp2.BasicDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.orm.jpa.EntityScan;
i... | 35.649351 | 111 | 0.725319 |
753d6dae66cec81e9060512af94603a45c43dfa8 | 1,143 | package com.aspose.slides.examples.Slides.Shapes;
import java.awt.geom.Point2D;
import com.aspose.slides.IAutoShape;
import com.aspose.slides.IParagraph;
import com.aspose.slides.IPortion;
import com.aspose.slides.ITextFrame;
import com.aspose.slides.Presentation;
import com.aspose.slides.examples.Utils;
public clas... | 31.75 | 87 | 0.764654 |
996533a7d0423a33f34b169003f66df1d0fd98d7 | 4,066 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 37.302752 | 112 | 0.712002 |
f56300bfb31f620b4932ecd5a2818236e792b057 | 3,195 | /*
* Copyright (c) 2016 Spotify AB.
*
* 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... | 32.938144 | 96 | 0.72144 |
a5f5d043858f8c80d616ee2912927da4f30534df | 7,992 | package mitzi;
import javax.swing.JFrame;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class MitziGUI extends JFrame implements MouseListener,
MouseMotionListener {
private static final long serialVersionUID = -418000626395118246L;
JLayeredPane layeredPane;
JPanel chessBoard;
JL... | 24.743034 | 81 | 0.652277 |
beff0690ef624dba3d30f30eb931506bf7f65b28 | 1,971 | package backtracking;
import java.util.*;
public class TSP1 {
static final int INF = 1000000;
public static void main(String[] args) {
Random rand = new Random(1);
for (int steps = 0; steps < 10000; steps++) {
int n = rand.nextInt(10) + 1;
int[][] edgeCost = new int[n][n];
for (int i = 0; i < n; i++) {... | 22.918605 | 91 | 0.483511 |
52843146490633d5c5477619c7fe367418fa5b21 | 1,573 | package top.kylewang.bos.web.controller.system;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spri... | 25.370968 | 81 | 0.694215 |
e373aab1b2b50d3bf582e057dfee8eb23e755da1 | 2,617 | /*
* Copyright 2013 MovingBlocks
*
* 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... | 24.231481 | 110 | 0.663737 |
6403bf0674399460aeda9e35c57f50f009d27cef | 3,171 | /*
* Copyright 2017-2020 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 39.148148 | 95 | 0.79281 |
89b3682f231df869559ea0b65fc7fba03553cbee | 4,642 | package cn.vertxup.crud.api;
import io.vertx.core.Future;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.crud.cv.Addr;
import io.vertx.tp.crud.cv.em.ApiSpec;
import io.vertx.tp.crud.refine.Ix;
import io.vertx.tp.crud.uca.desk.IxMod;
imp... | 40.365217 | 104 | 0.589186 |
6d238cc0a3132b648db4dc78a839ef9091184402 | 2,945 | package org.infinispan.protostream.annotations.impl;
import static org.junit.Assert.assertEquals;
import org.infinispan.protostream.annotations.ProtoReserved;
import org.infinispan.protostream.annotations.ProtoSchemaBuilderException;
import org.infinispan.protostream.annotations.impl.types.ReflectionClassFactory;
imp... | 32.722222 | 176 | 0.724278 |
96236962b3ad35044c9fe5cee2cd6621549768ea | 2,876 | /**
*
*/
package site.franksite.service.body;
import site.franksite.pojo.ArticleEntity;
/**
* 文章回传体
* @author Frank
*
*/
public class ArticleBody {
private String shortcut; //摘要
private String publishdate; //发表日期
private long readTimes; // 阅读次数
private long commentcount; // 评论数
... | 19.432432 | 116 | 0.614047 |
736e05c4c54f838a1e5e1660bc6cd027df5b91b7 | 618 | /**
*
*/
package ch.hslu.oop.sw6;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* @author silvan
*
*/
public class CalculatorTest {
@Test
public void testAdditionNormal() {
CalculatorService calc1 = new Calculator();
int res = calc1.addition(3, 4);
assertEquals(7,res);
}
@Test
... | 14.714286 | 45 | 0.653722 |
a23b641e6e68c7509a6d6234ed5348fc2a7e25cc | 613 | package com.junhua.algorithm.offer;
public class Nowcoder1 {
static public boolean Find(int target, int[][] array) {
if (array == null || array.length == 0 || array[0].length == 0) return false;
int m = array.length, n = array[0].length;
int i = 0, j = n - 1;
if (target > array[m -... | 29.190476 | 85 | 0.45677 |
f860318ec524d811a93abcd57a32898fa96585c4 | 3,903 | import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
public class GamePanel extends JPanel implements Runnable {
static final int GAME_WIDTH =1000;
static final int GAME_HEIGHT =(int) (GAME_WIDTH*(0.5555));
static final Dimension SCREEN_SIZE = new Dimension(GAME_WIDTH,GAME_HEIGHT)... | 23.371257 | 122 | 0.661542 |
c4dbef6b3ae977b060b2aa3a7ce5e3dac589b516 | 1,358 | /* TableColumnImpl.java
Purpose:
Description:
History:
Dec 9, 2014 7:05:44 PM, Created by henrichen
Copyright (C) 2014 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.zss.model.impl;
import java.io.Serializable;
import org.zkoss.zss.model.SCellStyle;
import org.zkoss.zss.model.STableColumn... | 18.351351 | 68 | 0.751105 |
42d3f69d1dfc45faaa93557443d25f04c5242a9d | 1,840 | // Copyright (C) 2017 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 applicable ... | 34.716981 | 97 | 0.730435 |
3c8ae96197f20570ed22ca42d10c4622faa5dff1 | 4,148 | /*
* Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.nc2.dods;
import ucar.nc2.*;
import ucar.nc2.constants._Coordinate;
import java.util.*;
import java.io.IOException;
/**
* A DODS Grid.
* A Grid has a Variable and associated... | 32.40625 | 116 | 0.655256 |
3b7331d700198c5216b0f0c4cbb2d16c69523e01 | 3,515 | package net.osmand.plus.backup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class BackupListeners {
private final List<OnDeleteFilesListener> deleteFilesListeners = new ArrayList<>();
private final List<On... | 32.546296 | 113 | 0.807397 |
5d4061e56e597f0d543411df75e0b8331542b5a0 | 1,618 | package com.perforce.team.core.mergequest;
import com.perforce.team.core.mergequest.model.registry.BranchRegistry;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class P4BranchGraphCorePlugin extends Plugin {
... | 23.449275 | 93 | 0.642769 |
f2a5e26ca8b035805cfebb9658909f44603fc473 | 2,578 | /*
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 46.872727 | 146 | 0.8045 |
428df80529149c67c58f8af672b0da023c4e8536 | 1,349 | /**
* ADOBE SYSTEMS INCORPORATED
* Copyright 2009-2013 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute
* this file in accordance with the terms of the MIT license,
* a copy of which can be found in the LICENSE.txt file or at
* http://opensource.org/... | 27.530612 | 76 | 0.661972 |
33ef47aae575e67b2d641b9ecd8d31db29bfb402 | 2,658 | /*
* Decompiled with CFR 0.150.
*/
package me.independed.inceptice.modules;
import me.independed.inceptice.modules.Module;
import me.independed.inceptice.modules.ModuleManager;
public enum Module$Category {
MOVEMENT("MOVEMENT"),
COMBAT("COMBAT"),
RENDER("RENDER"),
PLAYER("PLAYER"),
WORLD("MISC")... | 28.891304 | 101 | 0.554176 |
bd213608fb01bc3b898c59348ddebc8e27e956c2 | 11,429 | /*
* Copyright 2017-2019 Ivan Krizsan
*
* 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... | 40.242958 | 96 | 0.681424 |
dde5c56b42cb70d8a41726652b8d8ae68d9cf228 | 800 | package ru.jts.tests.parser;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import ru.jts.data.holder.CursedWeaponDataHolder;
import ru.jts.data.holder.cursedweapondata.CursedWeapon;
import ru.jts.data.parser.CursedWeaponDataParser;
/**
* @author : Camelion
* @date : 26.08.12 21:34
*/
pu... | 25.806452 | 77 | 0.7 |
b6a5487a1f03481b1fca8a97e0342cf5396d02fe | 589 | package sfrerichs.web.rest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* HomeResource controller
*/
@RestControll... | 21.814815 | 75 | 0.736842 |
83deeefb6610424ca60603756ced83ed69f8c71e | 1,830 | package defaultData;
import io.ebean.Finder;
import models.users.Company;
import java.util.Date;
public class DefaultCompanies {
private Long firstCompanyId = 1L;
private Long secondCompanyId = 2L;
private String firstName = "Example1";
private String secondName = "Example2";
private String fi... | 28.59375 | 119 | 0.668306 |
3aaa815e49e5068b1c0f11a2770700e34cee1185 | 1,570 | package io.openex.service;
import io.openex.database.model.Inject;
import io.openex.database.model.InjectDocument;
import io.openex.database.repository.InjectDocumentRepository;
import io.openex.database.repository.InjectRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... | 38.292683 | 105 | 0.761783 |
e89543ef669cb3c75b26e67f6966e2cb565015a1 | 3,340 | package controllers;
import java.util.List;
import javax.persistence.PersistenceException;
import models.BlogPost;
import models.Member;
import models.Subscriber;
import com.avaje.ebean.Ebean;
import com.fasterxml.jackson.databind.node.ObjectNode;
import play.data.DynamicForm;
import play.libs.Json;
import play.mv... | 28.547009 | 73 | 0.620359 |
d529bbe5152e3c52e28ae6e6af39d318cd1d001c | 3,653 | package utils;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import domainmodel.User;
import lombok.Getter;
import lombok.ToString;
import spark.Redirect;
import spark.Spark;
import java.nio.file.Paths;
@Singleton
public class RoutesRegistrar {
@Inject
private TemplateRenderer templat... | 28.76378 | 96 | 0.610183 |
a37a9e2324a1b7af107b5dcd0870eedde4cb2acc | 6,137 | package net.ensode.jasperbook.dbaccess.base;
import java.lang.Comparable;
import java.io.Serializable;
/**
* This is an object that contains data related to the aircraft_engines table.
* Do not modify this class because it will be overwritten if the configuration
* file related to this class is modified.
... | 23.603846 | 125 | 0.636141 |
ed291c77dbe41061c3dfdf88c4cbd934bada5248 | 1,129 | /*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 29.710526 | 76 | 0.725421 |
652ae678790c013164e60f356c3eaa79c33b270b | 1,801 | package com.xuegao.netty_chat_room_server.Netty进阶之路.第五章;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
/**
* <br/> @PackageName:com.xuegao.netty_chat_roo... | 40.931818 | 89 | 0.592449 |
5d8d3a3a3f77ac417c9b5bbfab2fe5521627aa4e | 1,241 | package pl.timsixth.databasesapi.database.async;
import pl.timsixth.databasesapi.database.ISQLDataBase;
import java.sql.ResultSet;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public abstract cl... | 34.472222 | 103 | 0.747784 |
031a40969f8f615b080d585276b9d0d6530a45e3 | 778 | package io.subutai.core.metric.impl.pojo;
import java.util.List;
import io.subutai.core.metric.api.pojo.P2PInfo;
public class P2PInfoPojo implements P2PInfo
{
private String rhId;
private int p2pStatus;
private List<String> state;
@Override
public String getRhId()
{
return rhId;
... | 14.407407 | 52 | 0.602828 |
a6825c03eefb3a6cc2b169c3cd350aa37679e54a | 210 | package org.nakedobjects.example.expenses.employee;
import java.util.List;
public interface EmployeeRepository {
List<Employee> findEmployeeByName(final String name);
Employee me();
}
| 16.153846 | 58 | 0.719048 |
63011705c1d38a1946f56d7b74624a922677e7c1 | 5,671 | /*
* 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.847368 | 121 | 0.663904 |
76933a9de1fbb8b8f4daf6595f674dac38b35a17 | 3,726 | package inesc_id.pt.motivandroid.motviAPIClient.responses.WeatherResponse.response;
import java.io.Serializable;
/**
* Weather
*
* (C) 2017-2020 - The Woorti app is a research (non-commercial) application that was
* developed in the context of the European research project MoTiV (motivproject.eu). The
... | 34.5 | 91 | 0.673913 |
e7d6b54aece15b0cce4521bd235a03a1322cb083 | 356 | package com.chanse.code.text_blocks;
public class TextBlocks {
public static void main(String[] args) {
var str = """
<html>
<body>
<h1>Hello World</h1>
</body>
</html>
""";
... | 22.25 | 48 | 0.384831 |
49c700eb75939fcdc15a420083c1392f56f49a0d | 8,109 | package org.openended.recommender;
import java.util.concurrent.ScheduledExecutorService;
import javax.sql.DataSource;
import org.apache.mahout.cf.taste.impl.model.jdbc.MySQLJDBCDataModel;
import org.apache.mahout.cf.taste.impl.model.jdbc.ReloadFromJDBCDataModel;
import org.apache.mahout.cf.taste.impl.model.jdbc.SQL9... | 39.556098 | 180 | 0.755457 |
fb537c1124a5a8c2d038f515cec0e450a911bd0f | 879 | package org.jpoi.qianjinExcel;
/**
* Created by wangqianjin on 2017/8/4.
*/
public class fncodeuserdevtest {
public String getFunctionCode() {
return functionCode;
}
public void setFunctionCode(String functionCode) {
this.functionCode = functionCode;
}
public String getUsercode(... | 18.702128 | 54 | 0.625711 |
4bb096b6cd3d3f819fa2945a309c916e0a097912 | 2,607 | package de.metanome.input.ind;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toList;
import de.metanome.algorithm_integration.configuration.ConfigurationRequirement;
import de.metanome.algorithm_integration.configuration.ConfigurationRequirementListBox;
import de.metanome.algorithm_... | 34.76 | 93 | 0.784043 |
66910b81ebf1f650f0bed9f3c10415fca6e3ea9a | 4,998 | package graphql.language;
import graphql.PublicApi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import static graphql.Assert.as... | 39.046875 | 145 | 0.665666 |
99d220870bfab20cdf552ff3f544fe15690bc947 | 1,344 | package org.onlab.jdvue;
import org.junit.Test;
import org.onlab.jdvue.Catalog;
import org.onlab.jdvue.JavaPackage;
import org.onlab.jdvue.JavaSource;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Unit test for the source catalog.
*
*... | 30.545455 | 92 | 0.680804 |
215e1d5624207a9183ea1a1862308d9edb3d18d6 | 508 | package com.juc.lock.volatiled;
/**
* @author: @zyz
*/
public class VolatileDemo {
static volatile int conunt=0;
public static void main (String[] args) throws InterruptedException {
Thread thread1 = new Thread (() -> {
for (int i = 0 ; i < 10000 ; i++) {
conunt++;
}
});
Thread thread = new Thre... | 18.814815 | 70 | 0.568898 |
70d5f62b9fe1a2a94bc024e121ff1c2e0e796692 | 1,864 | package org.gbif.nub.lookup;
import org.gbif.api.model.checklistbank.NameUsageMatch;
import org.gbif.api.model.common.LinneanClassification;
import org.gbif.api.service.checklistbank.NameUsageMatchingService;
import org.gbif.checklistbank.service.mybatis.guice.ChecklistBankServiceMyBatisModule;
import org.gbif.utils.f... | 33.285714 | 116 | 0.765021 |
9e286ed77022c925cceb31cae6b6b0e2e46133bc | 470 | /*
* Java
*
* Copyright 2019 Andy Poudret. All rights reserved.
*/
package com.choupom.forgik.rulebook;
import com.choupom.forgik.rule.Rule;
public class Rulebook {
private final String name;
private final Rule[] rules;
public Rulebook(String name, Rule[] rules) {
this.name = name;
this.r... | 16.785714 | 53 | 0.644681 |
42dbdcf60bb521232a8dfc960ac76d64b04180d6 | 786 | package br.com.brazilcode.cb.purchase.exception;
import br.com.brazilcode.cb.purchase.service.PriceQuotationService;
/**
* Classe responsável por configurar uma exceção personalizada para a classe {@link PriceQuotationService}.
*
* @author Brazil Code - Gabriel Guarido
* @since 8 de mar de 2020 17:48:52
* @versi... | 23.818182 | 107 | 0.773537 |
3c4e114d2811bc391bf9e4e1f42f10d5024eba80 | 423 | class Parent {
int a = 0;
public Parent(int a)
{
this.a = a;
}
// public Parent()
// {
// this.a = 0;
// }
}
class Child extends Parent {
public Child()
{
}
public int getA()
{
return this.a;
}
}
public class Test {
public static void m... | 14.1 | 44 | 0.458629 |
2073ea2f072c469150c311d82423b40c8086ae84 | 1,561 | package org.kiwiproject.security;
import lombok.Getter;
/**
* Protocols thar can be used when calling {@link javax.net.ssl.SSLContext#getInstance(String)}.
*
* @implNote These are from the Java 11 documentation, specifically from
* "Java Security Standard Algorithm Names" except protocols that are no longer suppo... | 24.777778 | 116 | 0.63549 |
7fba9928db1e736e61e2f161c850e4fbdaed89d1 | 5,069 | package com.donations.controllers;
import com.donations.model.About;
import com.donations.model.Blog;
import com.donations.model.Donation;
import com.donations.services.AboutService;
import com.donations.services.BlogService;
import com.donations.services.DonationService;
import com.donations.services.LoginService;
im... | 46.081818 | 255 | 0.721444 |
3251aa5845679c429af3c2c48ac70820a31fabd2 | 1,773 | package mono.com.google.android.exoplayer2.drm;
public class ExoMediaDrm_OnKeyStatusChangeListenerImplementor
extends java.lang.Object
implements
mono.android.IGCUserPeer,
com.google.android.exoplayer2.drm.ExoMediaDrm.OnKeyStatusChangeListener
{
/** @hide */
public static final String __md_methods;
static {
... | 36.183673 | 292 | 0.79075 |
7f8f831081f5477be1fc335067710b382b7eb811 | 16,138 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 48.755287 | 157 | 0.673999 |
dae6852db80a3601461b47cad9832170ba998480 | 372 | package pl.Wojtek.util;
/**
*
*/
public class State {
private String name;
public State(String s) {
this.name = s;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
... | 14.88 | 47 | 0.52957 |
8bd4bf97f72aece11c237b8253785eedb4fe97ea | 2,680 | /**
* Copyright 2014 Netflix, 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 ... | 31.904762 | 119 | 0.679851 |
3d89e851a91220f68640ae7bc8199c7d0f31b4e8 | 952 | package com.educational.platform.course.enrollments.course;
import com.educational.platform.common.domain.AggregateRoot;
import com.educational.platform.course.enrollments.course.create.CreateCourseCommand;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Gener... | 23.219512 | 86 | 0.701681 |
854573628f1cc1e1c5d296a009cfe3e573684b4d | 12,813 | package com.cloudmusic.controller.cloudMusic;
import com.cloudmusic.api.CloudMusicApiUrl;
import com.cloudmusic.request.cloudMusic.CreateWebRequest;
import com.cloudmusic.result.Result;
import org.json.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annota... | 34.817935 | 159 | 0.610786 |
639eac24591ce944c851077e183cd0f9a3ea1631 | 418 | package com.ssafy.happyhouse.repo;
import java.sql.SQLException;
import com.ssafy.happyhouse.dto.UserInfo;
public interface UserInfoRepo {
public UserInfo login(String userid, String userpwd) throws SQLException;
public UserInfo getUser(String id);
public int insert(UserInfo user);
public String findPwd(Strin... | 20.9 | 74 | 0.787081 |
fc4f22e48d6cb64e314ec5aa19e1e0ae376c4dd6 | 1,382 | /***************************************************************************
* Copyright (c) 2012-2013 VMware, Inc. 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
*
... | 37.351351 | 101 | 0.659913 |
89351d36c223f6cf009d6ee68bb0f5900aeb7e02 | 1,442 | package com.woshidaniu.shiro.cas;
import org.apache.shiro.authc.AuthenticationException;
import com.woshidaniu.shiro.SubjectUtils;
import com.woshidaniu.shiro.token.ZfSsoToken;
import com.woshidaniu.web.context.WebContext;
import com.woshidaniu.web.utils.WebRequestUtils;
import com.woshidaniu.web.utils.WebUtils;
impo... | 29.428571 | 90 | 0.771151 |
b009f4e4157ae4fb8b2e2762a222be6ca6b0ce50 | 1,846 | import java.io.*;
import java.util.*;
public class Solution {
public static int solution(int[] height) {
int n = height.length;
if(n == 0) return 0;
Stack<Integer> left = new Stack<Integer>();
Stack<Integer> right = new Stack<Integer>();
int[] width = new int[n];// widths of intervals.
... | 27.552239 | 98 | 0.511376 |
5e265aa7db550978400f707d2e21d5b16427c811 | 8,811 | // Copyright (c) 2016, 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 static com.android.tools.r8.TestCondition.R8_COMPILER;
import static ... | 34.826087 | 100 | 0.682783 |
fc3bf86927b897dec911b841f5029036a92d190c | 4,165 | package me.bayang.reader.mobilizer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ResourceBundle;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.Lo... | 35.598291 | 293 | 0.612725 |
83230d2fc8797be67a87870c6d804f85017799b8 | 2,421 | package net.mofancy.security.admin.rest;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import net.mofancy.security.admin.biz.UserBiz;
import net.mofancy.security.common.msg.ObjectRestResponse;
import net.mofancy.security.common.msg.TableResultResponse;
import net.mofancy.security.admin.bi... | 39.048387 | 152 | 0.697646 |
05e8549a930023df4d3822b6695be84986357b81 | 9,161 | package com.web.basePrice.controller;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind... | 42.808411 | 104 | 0.659426 |
4aad896003a064273ae207a78016c5323b136e16 | 247 | package com.alibaba.doris.dataserver.action.data;
import com.alibaba.doris.dataserver.action.ActionType;
/**
* @author ajun Email:jack.yuj@alibaba-inc.com
*/
public interface ActionData {
public ActionType getActionType();
}
| 19 | 55 | 0.720648 |
2a83b7cfacd02703abe2595278cc0fa8dc05822c | 6,017 | package com.jfinalshop.controller.admin;
import net.hasor.core.Inject;
import org.apache.commons.lang3.StringUtils;
import com.jfinal.ext.route.ControllerBind;
import com.jfinalshop.Pageable;
import com.jfinalshop.model.Member;
import com.jfinalshop.model.Message;
import com.jfinalshop.service.MemberService;
import ... | 29.495098 | 221 | 0.705335 |
b1ea1afa6fa7d1ee6da3779aaa21bcbeb6cc8e62 | 825 | package co.aurasphere.facebot.model.threadsettings;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import com.google.gson.annotations.SerializedName;
/**
* Base request for a Thread Setting configuration.
*
* @see <a href=
* "https://developers.facebook.com/docs/messenger-platfo... | 21.710526 | 81 | 0.73697 |
f274c8a7986d8ef00fe8f8cd41e371f0bfd6c082 | 850 | package com.opm.eis.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
public String getDateToday()
{
Date date = Calendar.getInstance().getTime();
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
return ... | 22.972973 | 71 | 0.676471 |
94b4c2f786d2ae4eae728b9d67a2ba9d453f4e8f | 3,583 | /* */ package com.google.gson.internal.bind;
/* */
/* */ import com.google.gson.Gson;
/* */ import com.google.gson.TypeAdapter;
/* */ import com.google.gson.TypeAdapterFactory;
/* */ import com.google.gson.internal.LinkedTreeMap;
/* */ import com.google.gson.reflect.TypeToken;
/* */ imp... | 31.156522 | 143 | 0.455763 |
3e583a700675291172fbfdbcc0a30791b7a2e253 | 4,870 | package cc.mrbird.febs.dca.service.impl;
import cc.mrbird.febs.common.domain.QueryRequest;
import cc.mrbird.febs.common.utils.SortUtil;
import cc.mrbird.febs.dca.entity.DcaBPersonalsummary;
import cc.mrbird.febs.dca.dao.DcaBPersonalsummaryMapper;
import cc.mrbird.febs.dca.service.IDcaBPersonalsummaryService;
import co... | 43.873874 | 167 | 0.701643 |
2136656d4417affbfe9790b4b8bd668e9c3c2b31 | 1,520 | /*
* Copyright (c) 2018 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.item.content;
import android.app.Dialog;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.appcompat.app.AlertDialog;
impo... | 29.230769 | 93 | 0.696053 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.