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 |
|---|---|---|---|---|---|
70bace1da099bd6bbaeab521f56ba4fe31bda40a | 1,172 | import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import static org.junit.Assert.*;
public class AcademyTest {
@Test
// Il ... | 43.407407 | 167 | 0.761092 |
c1c8e0bd08d97ba260e29fec25cc429b6b3b7f42 | 5,935 | package org.apache.fineract.client.services;
import org.apache.fineract.client.ApiClient;
import org.apache.fineract.client.models.DateParam;
import org.apache.fineract.client.models.FormDataContentDisposition;
import org.apache.fineract.client.models.JournalEntryCommand;
import org.apache.fineract.client.models.Journ... | 36.411043 | 678 | 0.690143 |
debc711052cc3e2ed47783148983cffc62826760 | 2,067 | package us.dot.its.jpo.ode.plugin.j2735;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class J2735LaneAttributesTest {
@Test
public void testDirectionalUseGetterSetter() {
J2735LaneAttributes laneAttributes = new J2735LaneAttributes();
J2735BitString di... | 29.112676 | 77 | 0.721819 |
61562fa7d115a85bceb0ee9b089791462e938c21 | 3,432 | package de.bitnoise.sonferenz.web.pages.conference;
import org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable;
import org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider;
import org.apache.wicket.extensions.markup.html.repeater.util.SortParam;
import org.apache... | 32.377358 | 126 | 0.697261 |
9ee45399414575e001758e94a1fbb6cbb031e3cf | 2,668 | package omtteam.openmodularlighting.items;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.relauncher.Side;
import net.minecr... | 35.573333 | 115 | 0.707646 |
4fa8131ffc953d962ad828b0dd1c4be0b0cd7248 | 753 | package com.hcl.appscan.jenkins.plugin.scanners;
/**
* This class is not intended for normal use. It's sole purpose is for compatibility to convert
* older build steps to use the Describable Scanner implementations.
*/
public class ScannerFactory implements ScannerConstants {
/**
* Creates a Scanner given a t... | 21.514286 | 96 | 0.705179 |
163de288eaabe4c623908c57ff32706ac9ff0b37 | 842 |
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Created by Алена on 02.05.2017.
*/
public class TranscriptWriter extends FileWriter {
private HashMap<String, String> MyHashMap;
public TranscriptWriter(String fileName) throws IOException {
... | 24.057143 | 72 | 0.593824 |
f834878c5a94e4ae80dc6b945a3da003c72ffbc7 | 2,433 | /*
* 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 ... | 27.965517 | 103 | 0.677764 |
1dbd3e56c5e4a75da2616fcf8c03e5de4c34f075 | 1,990 | package de.melsicon.kafka.sensors.serialization.avromapper;
import com.google.errorprone.annotations.Immutable;
import de.melsicon.kafka.sensors.avro.SensorState;
import de.melsicon.kafka.sensors.avro.SensorStateWithDuration;
import de.melsicon.kafka.sensors.serde.SensorStateMapper;
import de.melsicon.kafka.sensors.se... | 33.166667 | 98 | 0.762814 |
965cf5934d5c821768b029550f1c8b4dd14cedbe | 1,131 | package gr.uom.java.ast.decomposition.cfg.mapping;
public abstract class IdBasedGap extends NodeMapping {
protected double id1;
protected double id2;
private boolean advancedMatch;
//if an id is equal to zero it means that this id does not exist
public IdBasedGap(double id1, double id2, boolean advancedMatch) {
... | 22.176471 | 67 | 0.656941 |
ba6425d08d0d2c1a2d3410013dedfd75fd0a35b0 | 16,979 | /*
* Password Management Servlets (PWM)
* http://www.pwm-project.org
*
* Copyright (c) 2006-2009 Novell, Inc.
* Copyright (c) 2009-2021 The PWM 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 ... | 39.394432 | 152 | 0.582543 |
eb8961461223278e803676332b9236ba8ea866e1 | 3,777 | package us.ihmc.simulationconstructionset.torqueSpeedCurve;
import static us.ihmc.robotics.Assert.assertEquals;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class TypicalTorqueSpeedCurveTest
{
@BeforeEach
public void setUp() throws E... | 49.697368 | 132 | 0.710617 |
7e04662c7255e1ba3c2b7c4a33307af818418537 | 9,620 | /*
*/
package org.realtors.rets.server;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import j... | 33.172414 | 79 | 0.586279 |
804d53929b111c29c28bf04bcd785843fac31cc8 | 1,393 | package com.themaster.services.impl;
import com.themaster.dto.MainLocalitiesDTO;
import com.themaster.dto.MainMetBusDTO;
import com.themaster.services.SendRequest;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
im... | 33.166667 | 97 | 0.709261 |
a56e6fee82c5ab4c7f603ddae8427a96a8799eb7 | 728 | package ramos.jefferson.boot.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import org.springframework.beans.factory.annotation.Autowired;
public class SportDTO implements Serializable {
@JsonProperty("id")
private long id;
@JsonProperty("name")
priva... | 17.756098 | 62 | 0.615385 |
89b086a540a77556bf45ce41a6dec207dc90aef9 | 318 | package com.pengo.prototype.demo3;
import java.io.Serializable;
/**
* @author pengo
* @description:
* @date: 2021/2/22
*/
public class Student implements Serializable
{
private String name;
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
}
| 13.25 | 44 | 0.663522 |
4c18acd6df106e6de394bc9f746e4f6861576c17 | 4,588 | package org.apache.lucene.search.spans;
/*
* 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,... | 37.300813 | 80 | 0.701613 |
e5304699650912ba8806992113ccd422abcc6e96 | 1,913 | package com.etc.entity;
public class Sales {
private Integer salId;
private String title;
private Double discount;
private int busId;
private String content;
private int state;
private String pubDate;
public String getPubDate() {
return pubDate;
}
public void setPubDate(String pubDat... | 19.323232 | 105 | 0.63931 |
d517069b62c97b69f926d8bfb88df02e0b1313e0 | 11,020 | package com.github.autoftp.config;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasItems;
import static org.mockito.Matchers.anyLong;
import static org.mockito.Matchers.eq;
import st... | 33.495441 | 128 | 0.802632 |
a458cc363a46e6f9777f2d899c7da5c33fcadf9e | 2,571 | /*
* Copyright (C) 2013 Cumulocity GmbH
*
* 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, modify, merge, pub... | 42.85 | 105 | 0.744846 |
817e127717776c5b5bd914ab280383a2652b10eb | 5,247 | package solar.rpg.shoptopia.data;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Item;
import org.bukkit.inventory.ItemStack;
import org.bukkit.util.Vector;
import solar.rpg.shoptopia.Main;
import solar.rpg.shoptopia.player.ShopListener;
/**
* Showcase model. Contains location, icon, a... | 29.8125 | 173 | 0.62531 |
d69911ce9b46e086197341d6cdc6009d437fa216 | 6,600 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 51.968504 | 140 | 0.634242 |
a5592ff9f9738769b45bc8b375e7139e945459ba | 9,899 | /*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package io.github.linuxforhealth.rules.conditions.predicate;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.List;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api... | 32.887043 | 100 | 0.740176 |
7e554959c434b8b17c0c18425b6b54f1bf3af50c | 1,800 | package org.sustudent.cherry.services.user.service;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.sustudent.cherry.common.core.exception.CommonException;
import org.sustudent.cherry.common.core.m... | 28.125 | 73 | 0.724444 |
881e5e1c84a25025b69c9a0ed03a247390b96198 | 244 | package de.tmosebach.slowen.buchhaltung.model;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DepotRepository extends CrudRepository<Depot, Long> {
}
| 24.4 | 70 | 0.844262 |
72a4b24ef9c0fda49d04cdfba6acbb7974c87654 | 5,050 | /*
* Created on Jun 28, 2010
*
* 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 writ... | 42.436975 | 126 | 0.700594 |
d1438b3b2f9c36d5ab556c5457bfba28f015139e | 28,756 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ec.edu.ups.vista;
import ec.edu.ups.controlador.ControladorContrayente;
import ec.edu.ups.controlador.ControladorMatrimonio;
i... | 57.627255 | 199 | 0.658089 |
7e726634fc363d6fa6eb7c301d798fdf4fc05027 | 817 | package de.dfki.asr.compass.business;
import de.dfki.asr.compass.business.exception.EntityNotFoundException;
import de.dfki.asr.compass.business.services.CRUDService;
import de.dfki.asr.compass.model.components.Annotation;
import javax.ejb.Stateless;
import javax.inject.Inject;
import org.jboss.logging.Logger;
@State... | 28.172414 | 77 | 0.780906 |
831781477ce65a6da098d4543991bb37272818f0 | 1,129 | // Copyright 2020 Jacob Glueck
//
// 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 ... | 30.513514 | 75 | 0.668733 |
d88676567ed43b7f2a1e4a3f6a7200e17b80df82 | 535 | package com.yeepay.yop.sdk.utils.json.joda;
import com.fasterxml.jackson.databind.module.SimpleModule;
import org.joda.time.DateTime;
/**
* title: DateTime模块<br>
* description: <br>
* Copyright: Copyright (c) 2020<br>
* Company: 易宝支付(YeePay)<br>
*/
public class DatetimeModule extends SimpleModule {
private ... | 25.47619 | 68 | 0.723364 |
315fc1c183d06f3877bccc29345c415ed4a76006 | 605 | package org.ajexp.excel;
import org.ajexp.AjxLocale;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import java.util.Collection;
/**
* Created by SSh on 19.10.2017.
*/
public class XSSFExporter extends AbstractExcelExporter {
public XSSFExporter(Coll... | 23.269231 | 77 | 0.669421 |
1ae265c1a73965cd514d3947e6dcf80603cb0e4f | 4,346 | package com.github.a5809909.gps_finder.Fragment;
import android.database.Cursor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.Log;
import android.view.LayoutInflater;
import android... | 37.465517 | 157 | 0.699264 |
15fc47e58777f62be066f30ed893c88edd85323c | 13,065 | /*
* 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 ... | 36.596639 | 129 | 0.711137 |
5403e750bd4f4fd3009aa555d3e525599c13222b | 541 | package edu.coldserenity.tij.ch04.ex09;
/**
* Exercise 9: (1)
* <p/>
* Create a class with two (overloaded) constructors.
* Using this, call the second constructor inside the first one.
*/
public class ThisConstructor {
public ThisConstructor() {
System.out.println("In ThisConstructor()");
}
... | 23.521739 | 65 | 0.650647 |
ff8cee0cd2943c51a59d7a40af230d3ff628e0e4 | 3,463 | /*
* Copyright 2004-2007 Gary Bentley
*
* 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... | 17.315 | 102 | 0.610165 |
6637cc34494ca6ed6a841c490c0ad304b6b64470 | 1,192 | /*******************************************************************************
* Copyright (c) 2021 Microsoft 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... | 25.913043 | 81 | 0.620805 |
142e96e3928841a3975a5b467a9742cc87aeb26a | 15,915 | /*
* 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 ... | 57.248201 | 187 | 0.734464 |
0cf72ba8022adbfe16d73c0327ba3c5112ddbbb8 | 9,252 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 42.833333 | 117 | 0.642131 |
8457cd1516c6ed5c698a7aa21d8ae9b2959b7172 | 1,232 | //---------------------------------------------------------------------------------------
// Copyright (c) 2001-2019 by PDFTron Systems Inc. All Rights Reserved.
// Consult legal.txt regarding legal and license information.
//---------------------------------------------------------------------------------------
packa... | 30.8 | 89 | 0.590097 |
5af262b5cd85ef272275dad7cd5184a34aeb0125 | 592 | package org.aksw.gson.utils;
import com.google.gson.JsonElement;
/**
* A Json transformer is a function that maps a JsonElement to some other object of type T.
*
* Standard use case for transformers are either rewriting json elements or converting them to objects comprising standard java classes (maps, lists, nume... | 23.68 | 174 | 0.738176 |
1302a3ec3a2ace0f73200858e41872fc9c1a6904 | 5,817 | package mb.pie.dagger;
import dagger.BindsOptionalOf;
import dagger.Module;
import dagger.Provides;
import dagger.multibindings.ElementsIntoSet;
import mb.log.api.LoggerFactory;
import mb.pie.api.MapTaskDefs;
import mb.pie.api.Pie;
import mb.pie.api.PieBuilder;
import mb.pie.api.PieBuilder.LayerFactory;
import mb.pie.... | 47.292683 | 166 | 0.762592 |
bff3d84c46dce6b5a48311a6505eeac412290977 | 2,340 | package com.nodecollege.cloud.service.job;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.nodecollege.cloud.common.model.QueryVO;
import com.nodecollege.cloud.common.model.po.SyncJob;
import com.nodecollege.cloud.common.model.po.SyncJobLog;
import com.nodecollege.cloud.core.annota... | 37.741935 | 134 | 0.736752 |
c74355f332737f83fae5303226c8509b9b749c7b | 140 | package com.brainmatics.belajar.java;
public class Halo {
public static void main(String[] x){
System.out.println("Halo Java");
}
} | 20 | 38 | 0.7 |
534653c02241116a8dff64befcdb5915ae59ced3 | 2,265 | package br.com.ricardosander.accesscontrolboardservice.config;
import br.com.ricardosander.accesscontrolboardservice.dto.UserIdentifierDTO;
import br.com.ricardosander.accesscontrolboardservice.model.Identifier;
import br.com.ricardosander.accesscontrolboardservice.model.IdentifierType;
import br.com.ricardosander.acc... | 39.051724 | 96 | 0.778808 |
b2a75f6ec6f569e2170070dc4560d72f6936bb7f | 6,861 | /*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* 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 appli... | 39.889535 | 120 | 0.738231 |
c8acc2ec289ce101018e75f12c783cf183a530a1 | 1,495 | package com.tvd12.ezyfox.testing.entity;
import java.util.HashMap;
import java.util.HashSet;
import org.testng.annotations.Test;
import com.tvd12.ezyfox.collect.Sets;
import com.tvd12.ezyfox.entity.EzyEmptyObject;
import com.tvd12.ezyfox.factory.EzyEntityFactory;
public class EzyEmptyObjectTest {
@Test
public vo... | 39.342105 | 118 | 0.734448 |
ede236c5955793b19e01496f01148a81759d272d | 4,663 | package br.edu.AtividadeLab4;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Agenda {
private List<Aluno> alunos = new ArrayList<>();
private List<Professor> professores = new ArrayList<>();
Scanner scanner = new Scanner(System.in);
private int indexA = 0... | 25.762431 | 87 | 0.63071 |
7cc7b1e9ed59d118569fd52cafedf2d13907238a | 6,570 | /*
* Copyright 2016 Huawei Technologies Co., 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... | 27.605042 | 103 | 0.61446 |
2992cafe7660d4a2e0013ea0a8e9dbf4f3c10b48 | 1,904 | package org.tc;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWri... | 35.259259 | 115 | 0.693803 |
5afad4e471f7a50e813c9828cee8f00d4679260f | 9,166 | package chickenados.autocommands;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.CRServo;
import chickenados.robotv1.RobotV1;
import chickenados.robotv1.RobotV1VisionAnalyzer;
import chickenados.robotv2.Rob... | 34.984733 | 104 | 0.499236 |
40d9f1d5c9977a2c08122f3c8fdf62c110cace12 | 141 | package com.ocdsoft.bacta.swg.server.event;
/**
* Created by Kyle on 9/5/2014.
*/
public enum ObservableGameEvent {
POSTURE_CHANGE
}
| 14.1 | 43 | 0.70922 |
df93838a93069b0d5c693c18f5544eafe6abc25d | 3,780 | package pl.luxdev.mbot.listeners;
import java.util.HashMap;
import com.github.theholywaffle.teamspeak3.api.ChannelProperty;
import com.github.theholywaffle.teamspeak3.api.event.ClientJoinEvent;
import com.github.theholywaffle.teamspeak3.api.wrapper.ClientInfo;
import pl.luxdev.mbot.basic.DatabasedClient;
im... | 43.448276 | 147 | 0.724074 |
6b368b47eb92f484d61216cb31082e28e616d49a | 2,391 | package com.artemis.parallel_world.mixin;
import com.google.common.collect.Lists;
import net.minecraft.structure.StructurePiece;
import net.minecraft.structure.StructureStart;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockBox;
import net.minecraft.util.math.BlockPos;
import net.minecraft.ut... | 41.224138 | 193 | 0.740276 |
066f58f98dc6a326f958760f1762d4b11359f0eb | 425 | package fi.iki.murgo.iltasoitto.app;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.WakefulBroadcastReceiver;
public class HarjuLauncher extends WakefulBroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Intent service... | 30.357143 | 71 | 0.774118 |
a3bb8d98b999fffa369c52951f23c15b49654a42 | 1,732 | /*
* Copyright 2020 Wuyi Chen.
*
* 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... | 26.646154 | 75 | 0.699192 |
083ba8eaaa37dba46266e1494b47c52d2d22c13f | 3,992 | package com.simbest.cores.app.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.simbest.cores.model.GenericModel;
import com.simbest.cores.utils.annotations.NotNullColumn;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import javax.persist... | 24.490798 | 92 | 0.682365 |
4a32dba04b7277df1b80b3a93d93072eaad2c2a6 | 3,344 | package cd4017be.automation.jeiPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import cd4017be.lib.Gui.SlotHolo;
import cd4017be.lib.util.OreDictStack;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.PlayerControllerMP;
import net.minecraft.entity.player.EntityPlay... | 36.347826 | 166 | 0.709629 |
af14b1bddb4773d2dac6f68f940584a40af6d3b4 | 1,490 | package ua.lviv.navpil.jeetutorial.jaxrs;
import org.glassfish.jersey.internal.util.Base64;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Request;
import javax.ws.rs.core.Response;
import java.util.StringTokenizer;
@Path("my-res")
pu... | 32.391304 | 99 | 0.608725 |
afd1249722b6b29b16e3df8c4a3af910a487a391 | 911 | import ioc.Book;
import ioc.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author zhigang.xu
* @date 2020/5/12 23:20
*/
public class Ma... | 35.038462 | 100 | 0.781559 |
a2642dbbb28c07cc9780411f501dc1f4c8b864d1 | 9,923 | package it.firegloves.mempoi.integration;
import it.firegloves.mempoi.MemPOI;
import it.firegloves.mempoi.builder.MempoiBuilder;
import it.firegloves.mempoi.builder.MempoiPivotTableBuilder;
import it.firegloves.mempoi.builder.MempoiSheetBuilder;
import it.firegloves.mempoi.domain.MempoiSheet;
import it.firegloves.memp... | 43.90708 | 186 | 0.698881 |
34c7f0cc2d12e39c86d3a24497d290306a0c2aa5 | 782 | package dev.bkelly.phonenumber.dto;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class PhoneNumber {
private final long id;
private final String number;
private final Customer customer;
private boolean active;
public PhoneNumber(long id, String number, Customer customer, boolea... | 19.55 | 83 | 0.622762 |
52246dcb0f779213fb4f1b2433953bae203e9283 | 762 | package PetSitters.auxiliary;
import org.apache.commons.lang3.text.StrSubstitutor;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Map;
public class ReadWebPage {
public String getProcessedText(String pathToFile, Map<String, String> templa... | 33.130435 | 104 | 0.727034 |
3189aa89e9ca94ae89fe36f1f7b8f5f1ea9e64d4 | 4,400 | /*
* copyright 2012, gash
*
* Gash 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 required by applicable l... | 34.375 | 80 | 0.711818 |
966b18cf9e0522e2ec6deeb6cb6a148388fafbc7 | 1,885 | /*
* 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 ... | 29.920635 | 96 | 0.735809 |
71d9581e3e10cdb6bfd4466a759c9a4fd344b83f | 2,869 | package com.botongsoft.rfid.ui.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.PagerAdapter;
import com.botongsoft.rfid.R;
import com.botongsoft.rfid.common.utils.UIUtils;
import com... | 37.75 | 138 | 0.727083 |
580c87bffb5d9d50cc424278b81ba76d9a72f03e | 1,751 | package tracker;
import org.junit.Test;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import org.junit.Test;
public class TrackerTest {
////@Test
public void whenInitThenNoExceptionsAndConnectionIsNotNull() throws
Exception {
... | 25.376812 | 72 | 0.496859 |
e13284e4029ff0f0f7a8434d6e4633cf69bbaecc | 7,885 | // --------------------------------------------------------------------------------
// Copyright 2002-2022 Echo Three, LLC
//
// 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:/... | 53.277027 | 166 | 0.73811 |
ef60846e1091458a1133a8704329c76663cba613 | 5,941 | package yooco.uchain.uchainwallet.utils;
import yooco.uchain.uchainwallet.base.BaseFragment;
import yooco.uchain.uchainwallet.global.Constant;
import yooco.uchain.uchainwallet.view.page.assets.AssetsFragment;
import yooco.uchain.uchainwallet.view.page.excitation.ExcitationFragment;
import yooco.uchain.uchainwallet.vie... | 44.335821 | 87 | 0.641643 |
75985a6413a47fbb027e490e97c26ac5e2d999a6 | 77 | package com.joiller.gulimall.common.valid;
public interface UpdateGroup {
}
| 15.4 | 42 | 0.805195 |
8460da8ae957bf6c013bfaff00c82cce5c5d770e | 4,981 | package com.ruoyi.web.controller.poetry;
import com.alibaba.fastjson.JSONArray;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
im... | 29.826347 | 91 | 0.663321 |
14afcdf24f07933178464d35e1adaf6b119c1d94 | 27,882 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 48.322357 | 231 | 0.741554 |
2924af7ab710a0efdda17db6e2fdecb2b23e7df9 | 5,825 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | 35.95679 | 107 | 0.655966 |
aa12674efe4cfed8c75f570c73683fd68ecbf271 | 2,132 | /*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* 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 appli... | 24.227273 | 94 | 0.625235 |
b39449f5d4bbe4b3aecb2fbaaa2d6aa41f4c1fe9 | 651 | package com.gikk.twirk.types.notice;
import com.gikk.twirk.enums.NOTICE_EVENT;
import com.gikk.twirk.types.TagMap;
import com.gikk.twirk.types.TwitchTags;
import com.gikk.twirk.types.twitchMessage.TwitchMessage;
public class DefaultNoticeBuilder implements NoticeBuilder {
NOTICE_EVENT event;
String message;
Stri... | 24.111111 | 60 | 0.77573 |
96fd649877ddbe0cfba6e32a899969d4fc792497 | 2,770 | package com.jeremy.filter;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.SignatureException;
import io.jsonwebtoken.impl.crypto.MacProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.sp... | 32.209302 | 113 | 0.65704 |
9ce5a9377171bd8e4ddd7e0dc6f979dbb66bf610 | 1,700 | /*******************************************************************************
* Copyright 2018 572682
*
* 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/... | 32.692308 | 98 | 0.662353 |
6437ed92687b42c9a67b8035bca0d009967fec0e | 2,885 | package io.redintro.graphqldemo.adapter.out.persistence;
import org.junit.jupiter.api.Test;
import java.util.UUID;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
public class BookJpaEntityTest {
@Test
public void shouldCreateBookJpaEntityNoParams() {
BookJ... | 50.614035 | 125 | 0.706412 |
e3a6a5498688bc9e539598122343ba6bba351544 | 8,154 | /*
* Copyright 2015-2019 Jeff Hain
*
* 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.079646 | 103 | 0.541329 |
c34d374843111370910d77020ed18f67238c5609 | 2,700 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Model;
import java.io.PrintWriter;
import java.util.Comparator;
import java.util.List;
/**
*
* @author Quick Fix Demons
*/... | 30 | 109 | 0.498148 |
7b9d999f5e221f4b76f73dcb6af652942f89980f | 1,468 | package fi.tiedeseura.robotstories;
import android.app.Activity;
import android.util.Log;
/**
* Created by mikko on 6.8.15.
*/
public class CDUConnection extends Thread {
private boolean running = false;
private CDUEmulator emulator;
private BluetoothConnection bluetooth;
private Activity activity;
... | 24.065574 | 57 | 0.536785 |
629a07506f6b57984aac635bf801ef32160ef065 | 295 | package online.wangxuan.java8.chap9;
import java.util.List;
/**
* @author wangxuan
* @date 2019/1/13 6:31 PM
*/
public class Utils {
public static void paint(List<Resizable> l) {
l.forEach(r -> {
r.setAbsoluteSize(42, 42);
r.draw();
});
}
}
| 16.388889 | 49 | 0.555932 |
69c41373112edab813cd7ec92a7bf36bce93d501 | 1,478 | package io.craft.atom.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
/**
* A Gzip utility class that zip and unzip bytes.
*
* @author mindwind
* @version 1.0, Jun 3, 2012
*/... | 19.972973 | 62 | 0.650203 |
a3c9c6803717b6b3e57a45f7bca69aed5f6a7e16 | 2,209 | /*
* Copyright 2017 Idaho National Laboratory.
*
* 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.515625 | 84 | 0.684925 |
a11a5decf9c4b40f32bc685b71d568cd8074491c | 861 | package com.NowakArtur97.WorldOfManga.feature.user;
import lombok.*;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "role", schema = "world_of_manga")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
class Role {
@Id
@GeneratedValue(strategy = GenerationType.IDENT... | 20.023256 | 58 | 0.636469 |
5690dbe13186c72324a817d98c490b8ad3e0bf7f | 678 | package leetcode;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* @author ytjia created on 2017-09-15 19:26
*/
public class FriendCirclesTest {
FriendCircles.Solution solution;
@Before
public void setUp() throws Exception {
FriendCircles friendCircles = new FriendCircles()... | 21.1875 | 54 | 0.615044 |
684563ad5fe228a0834a1c78e4b455e52e991f10 | 622 | package com.spacetimecat.concurrent.lock.example;
import com.spacetimecat.concurrent.lock.Lock;
final class LoggingLock implements Lock
{
private final Lock delegate;
LoggingLock (Lock delegate)
{
this.delegate = delegate;
}
@Override
public boolean acquire ()
{
System.ou... | 20.733333 | 55 | 0.617363 |
0e96077a77533e15d7ee3a8f118499f02adc7e07 | 1,496 | import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* @author Ketan Mehta
* @date
* @problem_link https://www.codechef.com/problems/HILLS
*/
class HILLS {
public static void main(String args[]) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
in... | 20.493151 | 75 | 0.581551 |
6a97dd03616dd7a89b5fbb4cc2b7f8383de41320 | 2,456 | /************************************************************************************
* PswGenDesktop - Manages your websites and repeatably generates passwords for them
* PswGenDroid - Generates your passwords managed by PswGenDesktop on your mobile
*
* Copyright (C) 2005-2018 Uwe Damken
*
* Licensed under t... | 26.12766 | 86 | 0.708062 |
8b2544d54d2d6b1341ca496e4cfc77ae7c08bc89 | 887 | package org.omg.hw.CosNotifyChannelAdmin;
/**
* Generated from IDL definition of exception "AdminLimitExceeded"
* @author JacORB IDL compiler
*/
public final class AdminLimitExceeded
extends org.omg.CORBA.UserException
{
public AdminLimitExceeded()
{
super(org.omg.hw.CosNotifyChannelAdmin.AdminLimitExceededH... | 31.678571 | 115 | 0.807215 |
fefabb901d875039bffe57d3d9dbf185f224f115 | 445 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.debugs.messaging.parser;
/**
*
* @author van de Bugs <van.de.bugs@gmail.com>
*/
public class ParserException extends Exception {
public ParserException(int index, char value, char expected) {
... | 26.176471 | 123 | 0.638202 |
03570b8c4e6c54bdd8ca7167c2d28da9de4b9312 | 88,323 | /*
* This file was automatically generated by EvoSuite
* Sat Nov 07 23:09:36 GMT 2020
*/
package org.objectweb.asm.jip;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters... | 35.991443 | 344 | 0.63869 |
8bdaf86e9df0f585d587ade6ee41d2dc0f75dd27 | 89 | package com.a6raywa1cher.db_rgr.lib;
public record Pair<L, R>(
L left,
R right
) {
}
| 9.888889 | 36 | 0.674157 |
3ca67477a051d06edc200c73154f62b8d0f0213c | 3,423 | package ru.job4j.find;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Predicate;
/**
* Path filters.
* Хранилище различных фильтров для поиска файла.
*
* @... | 37.615385 | 95 | 0.517382 |
2a844e85bed1d4a7fa64e326ab0c38ee9c1a1059 | 1,952 | package com.example.base.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.graphql.data.method.annotation.Argument;
import org.springframework.graphql.data.method.annotation.MutationMapping;
import org.springframework.graphql.data.method.annotation.QueryMapping;
import org.sprin... | 29.134328 | 100 | 0.801742 |
ee98c0b435e7460cbdc03db95a23f6cc047a2761 | 1,434 | /**
*
*/
package org.minnal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <p>Bootstrap is the entry point to minnal and is the main class. The main method loads the container, initializes and starts the container.
* It also registers a shutdown hook for gracefully shutting down the container. ... | 31.173913 | 144 | 0.700837 |
12ad20092f15f0dab1dc1eca455a3cdad56e5fae | 1,618 | //
// Copyright (c) 2010, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 12 Feb 10 Brian Frank Creation
//
package fan.concurrent;
import java.util.concurrent.atomic.AtomicLong;
public final class AtomicIntPeer
{
public static AtomicIntPeer make(AtomicInt se... | 18.813953 | 78 | 0.692831 |
e446435244e157967f66b96e07c7a12a0adf631a | 1,155 | package paulevs.bnb.item;
import net.minecraft.block.BlockBase;
import net.minecraft.entity.EntityBase;
import net.minecraft.entity.Living;
import net.minecraft.item.ItemBase;
import net.minecraft.item.ItemInstance;
import paulevs.bnb.item.material.NetherToolMaterial;
public class NetherSwordItem extends Net... | 27.5 | 96 | 0.748918 |
cd6b87772d7c0f955f1abf3c99461dfb76633eff | 451 | package com.bugsnag.mazerunner.scenarios;
import com.bugsnag.Bugsnag;
/**
* Sends a handled exception to Bugsnag, which does not include session data.
*/
public class ProjectPackageScenario extends Scenario {
public ProjectPackageScenario(Bugsnag bugsnag) {
super(bugsnag);
}
@Override
publ... | 22.55 | 77 | 0.7051 |
baba650b5786d0e089af66d4172b9907079696f1 | 2,925 | package net.minecraft.world.level.levelgen.synth;
import it.unimi.dsi.fastutil.ints.IntRBTreeSet;
import it.unimi.dsi.fastutil.ints.IntSortedSet;
import java.util.List;
import net.minecraft.world.level.levelgen.LegacyRandomSource;
import net.minecraft.world.level.levelgen.RandomSource;
import net.minecraft.world.level... | 37.025316 | 151 | 0.586325 |
f47bf6247e74c4144cdff46cc6ce0a075fe0be24 | 594 | public class Peninsular {
static String critical = "L1HpBv5EXwvHtQM";
private java.lang.String isletIdentify;
private int numeralFarms;
public Peninsular(String viequesDistinguish, int totalGranger) {
this.isletIdentify = viequesDistinguish;
this.numeralFarms = totalGranger;
}
public synchronized ... | 22 | 94 | 0.599327 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.