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 |
|---|---|---|---|---|---|
8cee6709b5d66cd4d389babac9c6b7c662002ddb | 93 | package com.xcode.onboarding;
public interface OnFinishLastPage {
void onNext();
}
| 15.5 | 36 | 0.709677 |
22a497f22f419742e86a586075fddb69447987e9 | 2,655 | /*
* Copyright 2017 University of Ulm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 35.878378 | 87 | 0.755556 |
bd97e13398ffb03b0f4de641100816740be7488b | 1,001 |
import java.util.Arrays;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.UnaryOperator;
class MySample {
<T> MySample bar(Function<String, T> f) {return null;}
<T> MySample bar(BiFunction<String, String, T> f) {return null;}
pri... | 37.074074 | 68 | 0.566434 |
4f7f7e85bc50fecae636f441f335051ea0b6f674 | 1,212 | package engine.nutritionists;
import engine.cake.AbstractCake;
import engine.Entity;
import log.IGLog;
import java.awt.*;
import java.util.List;
public class CakeChaserNutritionist extends AbstractNutritionist {
public CakeChaserNutritionist(int nbLifes) {
super(nbLifes);
}
public CakeChaserNutr... | 24.24 | 115 | 0.623762 |
44acdad3094d0dbb7dca6594399d6844d2abf5e3 | 598 |
package no.priv.garshol.duke.genetic;
/**
* Represents a pair of records.
*/
public class Pair {
public String id1;
public String id2;
public int counter;
public boolean[] believers; // which configurations think this pair is correct
public Pair(String id1, String id2) {
this.id1 = id1;
this.id2 ... | 19.933333 | 80 | 0.655518 |
3e2ae012f4357324b92f447f4bc73db3d11c30e4 | 375 | package org.javamaster.b2c.mail;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author yudong
* @date 2020/8/14
*/
@SpringBootApplication
public class B2cMailApplication {
public static void main(String[] args) {
SpringApp... | 20.833333 | 68 | 0.757333 |
934c3db5e3e609e462e156263f3042b9dccc57c5 | 1,837 | /*******************************************************************************
* Copyright 2021 Konexios, 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.apa... | 29.15873 | 120 | 0.649973 |
d38c01bd1fb649653eeaa4e9fef69e275222dbcc | 5,270 | package net.minecraft.world.storage;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.AnvilConverterException;
import net.minecraft.nbt.CompressedStreamTools;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.IProgressUpdate;
import org.apache.l... | 24.858491 | 107 | 0.698292 |
ace2379abfa44ba4ddcfebf04558179bdce8b616 | 13,506 | package com.iographica.core;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.SystemTray;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import... | 35.448819 | 167 | 0.767733 |
508bb9a70db26e0791ad5cdc7ed5ef17a88ec277 | 572 | package wannabit.io.bitcv.network.res;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import wannabit.io.bitcv.model.type.Coin;
public class ResKavaHarvestDeposit {
@SerializedName("height")
public String height;
@SerializedName("result")
public ArrayList<HarvestDepo... | 19.724138 | 50 | 0.694056 |
6ee3d3b240cf7986c02f713776d586bb9de3335d | 5,591 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | 34.091463 | 131 | 0.716866 |
6a015d624c6c3fc08b98c02ae935118a090cd2c5 | 20,015 | package com.psddev.dari.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.DigestInputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import ... | 43.796499 | 149 | 0.443018 |
05740faa383a6f5fa12efc9020e95f900e31c010 | 961 | /*
* Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
*/
package msf.ecmm.emctrl.pojo.parts;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Tracking IF Information Class
*/
@XmlAccessorType(XmlAc... | 16.568966 | 63 | 0.627471 |
9ac400ce5ebaf6a044720f1fe3e618aa4b321958 | 8,381 | package com.ikerleon.birdwmod.client.render.europe;
import com.ikerleon.birdwmod.client.render.BirdBaseRenderer;
import com.ikerleon.birdwmod.entity.europe.EurasianBullfinchEntity;
import com.ikerleon.birdwmod.entity.europe.StellersEiderEntity;
import net.minecraft.block.Material;
import net.minecraft.client.render.en... | 57.40411 | 168 | 0.653144 |
7e3e041d279305e8407932d94963f4ea4f3766ab | 160 | package com.tmsl.vmart.dao;
import com.tmsl.vmart.model.Logistics;
public interface LogisticsDAO {
public Logistics getLogisticalInfo(Double distance);
}
| 16 | 53 | 0.79375 |
605d1321e8dc4713c64d44d6ee55cb71f1609156 | 1,463 | /* gnu.classpath.tools.gjdoc.SourcePositionImpl
Copyright (C) 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either versi... | 23.983607 | 70 | 0.714286 |
766d1d52446ed5d2c97e314732a4fa27b7f479fb | 972 | package com.example.hackathon.myapplication.models;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class WeatherDetails implements Serializable{
int id;
@SerializedName("main")
String shotDescription;
@SerializedName("description")
String longDescription;
... | 20.680851 | 60 | 0.664609 |
a01fd8550ef5faca2761e5dcf57631f83a1595f8 | 2,914 | /*
GanttProject is an opensource project management tool.
Copyright (C) 2011 GanttProject team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any... | 32.021978 | 111 | 0.743651 |
d522077f1e575ef2652fa60026d60ca425661d3d | 317 | package com.eziozhao.leafblog.common;
/**
* @author eziozhao
* @date 2020/7/20
*/
public class ExceptionCast {
public static void cast(ResultCode resultCode){
throw new CustomException(resultCode);
}
public static void cast(String message){
throw new CustomException(message);
}
}
| 21.133333 | 51 | 0.684543 |
b0037bad51f2d844259c86c948bffd2a72b89065 | 4,852 | package uk.ac.liv.mzidlib.converters;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import uk.ac.liv.unimod.CompositionT;
import uk.ac.liv.un... | 33.006803 | 158 | 0.559151 |
78c972dc2bc220c89c81bf89288b8a7592a97c59 | 524 | package com.steven.seata.business.feign;
import com.steven.seata.util.Result;
import com.steven.seata.vo.MallStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
* @author steven
*... | 24.952381 | 59 | 0.782443 |
0144531377041a5465244d0f899ababc238929fa | 2,740 | package io.github.bmhm.twitter.metricbot.web.twitter;
import io.github.bmhm.twitter.metricbot.common.TwitterConfig;
import io.github.bmhm.twitter.metricbot.web.events.MentionEvent;
import java.io.Serializable;
import java.time.Instant;
import java.util.Map;
import java.util.Set;
import java.util.StringJoiner;
import j... | 32.619048 | 100 | 0.737226 |
3ed1b6ccc76bbc8019a61cad3aff90ea2862ad32 | 3,536 | package universalelectricity.core.electricity;
public class ElectricityDisplay {
public static String getDisplay(double value, ElectricityDisplay.ElectricUnit unit, int decimalPlaces, boolean isShort) {
String unitName = unit.name;
if (isShort) {
unitName = unit.symbol;
} else if (value > 1.0D) {
unitNam... | 34.330097 | 282 | 0.710407 |
42f85ece73c9c77ea9bb6cab050203cde510eb96 | 4,437 | package study.daydayup.wolf.business.pay.biz.domain.service;
import org.springframework.beans.BeanUtils;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import study.daydayup.wolf.business.pay.api.domain.... | 29.778523 | 109 | 0.657877 |
ba0f3c625e52182e9668c7acfaea176f6fa63f7a | 1,566 | /*
* 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 ... | 25.258065 | 75 | 0.710089 |
c2b45c0777ec775272eab965afb14f59c8c91f7d | 1,021 | package no.nav.foreldrepenger.regler.uttak.fastsetteperiode.betingelser;
import static no.nav.foreldrepenger.regler.uttak.fastsetteperiode.betingelser.SjekkOmErUtsettelseFørSøknadMottattdato.mottattFørSisteDag;
import no.nav.foreldrepenger.regler.uttak.fastsetteperiode.FastsettePeriodeGrunnlag;
import no.nav.fpsak.na... | 36.464286 | 137 | 0.778648 |
9b1c5be0da2d7e0879230aa5b1e46fde3658be1c | 851 | package ru.job4j.chess;
import org.junit.Ignore;
import org.junit.Test;
import ru.job4j.chess.firuges.Cell;
import ru.job4j.chess.firuges.black.BishopBlack;
import ru.job4j.chess.firuges.black.PawnBlack;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
public class LogicTest {
//@Ig... | 26.59375 | 51 | 0.654524 |
9f6e3651380ea1e905fab6e5806bca1b2f204610 | 4,254 | /*
* Copyright (c) Facebook, 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 applic... | 29.957746 | 100 | 0.719558 |
f58abcc4d5c09c5bf7a701dd05336a50c31cc1df | 1,175 | /**
* Copyright (c) 2018 Jerome Mrozak All Rights Reserved.
*
* Copyright is per the open MIT license (https://opensource.org/licenses/MIT), whose text
* is also provided in the file com.logicaltiger.exchangeboard.ExchangeBoardApplication.java.
*/
package com.logicaltiger.exchangeboard.dao;
import java.util.List... | 31.756757 | 93 | 0.715745 |
a488e4a56693b02a1e4a007b900609bf7acd731b | 1,192 | package com.tam.converter;
import com.tam.model.ApplicableStateResource;
import com.tam.model.AppliedThreatResource;
import com.tam.model.ThreatPriorityResource;
import com.tam.model.ThreatResource;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
public c... | 39.733333 | 124 | 0.745805 |
4cf2b0e2170b893b3978b50743309592e29483ee | 2,486 | package com.neu.bloodbankmanagement.pojo;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
i... | 19.730159 | 117 | 0.72325 |
9df881f369f93b9ba76a6cd6ec0505ea30b1df8b | 28,740 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 14.663265 | 813 | 0.793841 |
f171a4455f2c9c993e8a4a1cf7b105c449b3d99e | 1,930 | /*
* The MIT License
*
* Copyright 2017 Y.K. Chan
*
* 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... | 34.464286 | 81 | 0.688601 |
e6c87b3ec1ec72595eedb48cad65811fbf30581a | 347 | package com.nacho;
public class Microondas extends Electrodomestico {
public Microondas(String marca, String modelo, int ancho, int largo, int profundidad, double consumo) {
super(marca, modelo, ancho, largo, profundidad, consumo);
}
public void calentar(){
System.out.println("Ca... | 26.692308 | 108 | 0.659942 |
2b21f70ce2c62dc6dbcc47351b3c7a64036c1592 | 800 | package zyz.algorithm.type.DynamicProgramming;
/**
* @author zyz
* @title: 不同路径
* @seq: 12
* @address: https://leetcode-cn.com/problems/unique-paths/$
* @idea:
* 动态规划练习 该题用dfs也可以做
*/
public class UniquePaths_13 {
public static void main(String[] args) {
int m=3,n=2;
// System.out.printl... | 20.512821 | 60 | 0.4625 |
838d6cc583f460cc15c957230b1622c2abcb8785 | 1,088 | package gms.shared.utilities.geotess.util.colormap;
import java.awt.Color;
/**
* Represents a range of floating point numbers of [minVal, maxVal] and corresponding
* Colors on each end. Double values are placed into an appropriate range to be interpolated
* between the two Colors of an instance of this class.
* ... | 22.204082 | 93 | 0.70864 |
d82030633de01c3f9cc679c3b1f16538b9017044 | 502 | package com.cyecize.summer.areas.validation.services;
import com.cyecize.summer.areas.validation.interfaces.DataAdapter;
import java.util.List;
public interface DataAdapterStorageService {
boolean hasDataAdapter(String genericType);
<T extends DataAdapter<?>> DataAdapter<?> getDataAdapter(Class<T> dataAdap... | 29.529412 | 112 | 0.784861 |
a9f9df77ef88ff2a9061e5cb6dce7d0f49302a43 | 3,570 | package com.tower.countmanager.bean;
import java.util.List;
public class LoginBean {
private String token;
private String roleId;
private String roleName;
private String empId;
private String empImg;
private String empAccount;
private String empName;
private String dutyName;
private ... | 19.723757 | 69 | 0.637535 |
2ea73f399a46881bc13f68ebf68f33816e700f47 | 1,639 | /*
* Author: illuz <iilluzen[at]gmail.com>
* File: AC_dfs_2^n.java
* Create Date: 2015-02-08 11:18:01
* Descripton:
*/
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Solution {
public List<List<Integer>> subsetsWithDup(int[] S... | 27.779661 | 84 | 0.485662 |
c9e6ca4a1924653a5204d12bca88e6a1938db773 | 1,320 | package com.gh4a.loader;
import android.content.Context;
import com.gh4a.Gh4Application;
import org.eclipse.egit.github.core.CommitFile;
import org.eclipse.egit.github.core.RepositoryId;
import org.eclipse.egit.github.core.service.PullRequestService;
import java.io.IOException;
import java.util.List;
public class ... | 33 | 110 | 0.743939 |
ab7a74f4d79cfc6352ea7d9fb61d049017676912 | 1,272 | package ceng.ceng351.musicdb;
import java.sql.Timestamp;
public class Listen {
private int userID;
private int songID;
private Timestamp lastListenTime;
private int listenCount;
public Listen(int userID, int songID, Timestamp lastListenTime, int listenCount) {
this.userID... | 22.714286 | 87 | 0.600629 |
35699bfe0b29ac20930ea9b7d8a830bd0b186d20 | 1,899 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 29.671875 | 80 | 0.711427 |
e49a16e0712fe35494d14b9f00be327daf766af8 | 612 | package urv.emulator.topology.parser;
import urv.emulator.topology.graph.GraphInformation;
/**
* This interface must be implemented in order to create
* file parser classes.
*
* @author Marcel Arrufat
*
*/
public interface Parser {
/**
* This method must load network file and create a new NetworkGraph.
* ... | 27.818182 | 76 | 0.746732 |
4d06bc05e8247be6c023aa470bbe028a6d628f03 | 2,755 | package com.skelly.mywesst.messages;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.vi... | 37.739726 | 115 | 0.727768 |
1b9df3cfccf8d5d4ebcab866bec0208bffb174fe | 3,409 | package com.novoda.dungeoncrawler;
import android.content.Context;
import android.graphics.Color;
import android.os.Handler;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import java.util.ArrayList;
import java.util.List;
class AndroidDeviceDisplay implements Display {
... | 33.752475 | 148 | 0.63919 |
00c35b35de40b5b770c16cb7b3d1ec185960bac1 | 1,556 | /*
* Copyright 2010 Aalto University, ComNet
* Released under GPLv3. See LICENSE.txt for details.
*/
package routing.util;
import java.util.ArrayList;
import java.util.List;
/**
* Class for storing routing related information in a tree form for
* user interface(s).
*/
public class RoutingInfo {
priv... | 23.223881 | 68 | 0.651028 |
c7c249dc4d3ec76393b675e738014a7d2fd1ef0d | 879 | package fr.catcore.translatedlegacy.mixin;
import net.minecraft.client.resource.language.I18n;
import net.minecraft.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;
@Mixin(Level.class)
public class LevelMixi... | 38.217391 | 169 | 0.74289 |
e3c01724683dec24373fc219208f0c6a8450ce66 | 4,579 | /*
* 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.
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import javax.servlet.ServletException;
import javax.ser... | 32.942446 | 189 | 0.519983 |
cbea8ffb341d55cc87c9c95273973f63b6faf4c3 | 522 | package com.example.demo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
public class MultipleCoreImplemSampleApplicationTest
{
public static void main(final String[] args) {
SpringApplication.run... | 26.1 | 94 | 0.791188 |
af7b5ad4b79751796cb7258678aa05b2b9d2390b | 1,559 | package solutions.leetcode;
import static org.junit.Assert.assertEquals;
import base.Solution;
import base.TestCases;
import structures.TwoComposite;
import testcases.leetcode.ImplStrStrTestCases;
/*
*
https://leetcode.com/problems/implement-strstr/#/description
Implement strStr().
Returns the index of the firs... | 25.557377 | 105 | 0.632457 |
24d440d0fc8c3083b0032edae12d237396288946 | 626 | package co.edu.sena.operadores;
public class OperadoresLogicos {
public static void main(String [] a) {
if(5 <8 ^ 7<9) {
System.out.println("verdadero");
}else {
System.out.println("falso");
}
if(5 <8 && 7<9) {
System.out.println("verdadero");
}else {
System.out.println("falso");... | 14.55814 | 39 | 0.555911 |
2e0841232fdc872c0b4bd5a00b91b9d809f18256 | 1,222 | package br.com.zup.estrelas.maven.pojo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Carro {
@Id
private String placa;
@Column(nullable = false)
private String nome;
private String cor;
private String fabricante;
@Column(name = "ano_fabri... | 16.972222 | 92 | 0.715221 |
3d141ac8ad2d7e2712d0f6f1bc8aaa13f262c41c | 5,013 | package org.edx.mobile.view;
import android.annotation.TargetApi;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.We... | 33.644295 | 116 | 0.645522 |
a90dfa741a71883143364c9c8719898e94fcd4e2 | 3,687 | /*-
* #%L
* anchor-image
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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... | 41.426966 | 100 | 0.703824 |
f85c3b1bb8c273c79a64f5614ccf9b6fc7962aeb | 1,673 | /*
* [The "BSD licence"] Copyright (c) 2013-2015 Dandelion All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this... | 50.69697 | 79 | 0.767484 |
dd36f07722f499a35876a9956ff133fe4e210e83 | 1,687 | package tools;
import java.io.File;
import java.util.LinkedList;
import java.util.List;
import model.Coord;
import model.Couleur;
import model.Pieces;
/**
* @author francoise.perrin
* Inspiration Jacques SARAYDARYAN, Adrien GUENARD
*
* Classe qui fabrique une liste de pieces de jeu d'echec
* de ... | 26.359375 | 132 | 0.605809 |
87e122a91bfa9a818e250ad78a838ea42d825bad | 20,585 | package org.truenewx.tnxjee.repo.jpa.codegen;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
import java.sql.*;
import java.time.Instant;
import java.time.LocalDateTime;
import java.util.ArrayL... | 45.441501 | 120 | 0.608841 |
cc4e14467f5f6a8952565336b2faf0213a050e37 | 208 | import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void sample() {
assertEquals(4.0, Multiply.multiply(2.0, 2.0), 0.1);
}
}
| 18.909091 | 60 | 0.706731 |
426ce4adb6baefa9130a6fbcf4ef639ccb823e9d | 2,744 | /*
* Copyright 2014 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 applica... | 48.140351 | 206 | 0.748542 |
39590f8f771db26cef8ba17567822ec4d940f798 | 1,313 | package me.batizhao.cloud.service;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import me.batizhao.cloud.domain.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import o... | 30.534884 | 108 | 0.709063 |
cb6f6fed369d4696ba161c92d0d5ef96908a808c | 3,173 | package ir.sharifi.spring.view.main.component.test.leaveTime;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.icon.VaadinIcon;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.Ver... | 39.6625 | 168 | 0.739679 |
0b30cab6a779a06f7183b203f9c78eba4a3186d7 | 316 | package com.myapp.bootstrap;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
public class ExampleServerBootstrapBean implements ApplicationListener<ApplicationEvent> {
@Override
public void onApplicationEvent(ApplicationEvent event) {
}
}
| 24.307692 | 90 | 0.822785 |
e295c4d0dfc11a5dbcef950300879db769731de2 | 876 | package mirrg.minecraft.regioneditor.gui.guis;
import java.awt.Dialog.ModalityType;
import mirrg.boron.util.i18n.I18n;
import mirrg.minecraft.regioneditor.util.gui.WindowWrapper;
public abstract class GuiBase
{
protected WindowWrapper windowWrapper;
protected I18n i18n;
public GuiBase(WindowWrapper owner, I18n ... | 23.052632 | 88 | 0.775114 |
cc117f0160e5c8c836ca6d5a19841252d5be805f | 4,909 | package org.jabref.model.study;
import java.time.LocalDate;
import java.util.List;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* This class represents a scientific study.
*
* This class defines all aspects of a scie... | 30.490683 | 148 | 0.598696 |
82c92f44ba5ddcf66fc35585734635c0aecd1cc7 | 111 | // "f "abcd"" "true"
public class Test {
void foo(){
Syste.out.print("abcd");
}
void bar1(){foo();}
} | 15.857143 | 28 | 0.531532 |
86d38783d888690fc7f3cb1e567aae0939d68082 | 5,487 | package net.minecraft.entity.passive.horse;
import java.util.EnumSet;
import javax.annotation.Nullable;
import net.minecraft.entity.AgeableEntity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityPredicate;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.ILivingEntityData;
impo... | 33.87037 | 185 | 0.688172 |
8ba4105af09cdcc56ba88ca777f8c6299eab9f13 | 3,882 | package mcjty.intwheel.playerdata;
import mcjty.intwheel.network.PacketHandler;
import mcjty.intwheel.network.PacketSyncConfigToServer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import net.minecraftforge.common.util.Constants;
import java.util... | 31.306452 | 85 | 0.626224 |
562ea58caf454667c25ee6e796609f50e5936e0d | 183 | package org.diplomatiq.diplomatiqbackend.filters;
public enum DiplomatiqAuthenticationScheme {
AuthenticationSessionSignatureV1,
DeviceSignatureV1,
SessionSignatureV1,
}
| 22.875 | 49 | 0.825137 |
8e0f3c55ac983b9f62d4901a28f50c72d0f3c60b | 6,466 | /*
* MIT License
*
* Copyright (c) 2017-2019 nuls.io
*
* 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, mod... | 36.325843 | 140 | 0.691772 |
6ff945bf3fbc8e99adf72c6ebd13b55d79866d69 | 2,230 | package org.plugins.rpghorses.horseinfo;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Horse;
import org.bukkit.entity.Llama;
import org.plugins.rpghorses.RPGHorsesMain;
public abstract class AbstractHorseInfo {
private EntityType entityType;
private Horse.Style st... | 27.530864 | 134 | 0.708969 |
f7054b7d4762f8fb5937d5b745224ef9dd376a33 | 195,427 | /*
* 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 ... | 28.990803 | 125 | 0.548517 |
834bf1949911e480063191229eeb106157d9fceb | 490 | package kerio.connect.admin.common.enums;
public enum ItemName {
Name, ///< Entity Name
Description, ///< Entity Description
Email, ///< Entity Email Address
FullName, ///< Entity Full Name
TimeItem, ///< Entity Time - it cannot be simply Time because of C++ conflict - see bug 3468... | 35 | 111 | 0.653061 |
d00ff28d19599e53580f7f3441b46a2b5b96b0ec | 2,853 | package controle.telas;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAdjusters;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionAd... | 30.351064 | 91 | 0.761654 |
d079b6c6084657d99a69c0f52e4f3a0cecf30ed5 | 3,143 | package com.citraining.core.report.impl;
import org.apache.sling.api.resource.ResourceResolverFactory;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.citraining.core.report.... | 55.140351 | 148 | 0.751829 |
cfbeb011cc498e87ab7c83f9949759c9377f479f | 2,673 | package com.agoni.my.shop.web.admin.service.impl;
import com.agoni.my.shop.commons.dto.BaseResult;
import com.agoni.my.shop.commons.validator.BeanValidator;
import com.agoni.my.shop.domain.TbContentCategory;
import com.agoni.my.shop.web.admin.abstracts.AbstractBaseTreeServiceImpl;
import com.agoni.my.shop.web.admin.da... | 31.447059 | 156 | 0.600823 |
47e27fba7041fb37c0d73a35b9480b4742539dfe | 1,613 | package com.thenatekirby.compote.integration.jei;
import com.thenatekirby.compote.Compote;
import mezz.jei.api.IModPlugin;
import mezz.jei.api.JeiPlugin;
import mezz.jei.api.helpers.IGuiHelper;
import mezz.jei.api.registration.IRecipeCatalystRegistration;
import mezz.jei.api.registration.IRecipeCategoryRegistration;
i... | 34.319149 | 107 | 0.745195 |
6e9d000c0d66e1c41242a9d5129d42565bcdfba1 | 1,015 | /*
* Copyright 2006-2008 Web Cohesion
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 29 | 75 | 0.764532 |
1183f2c1ccd677a5f17ae4c951358ad472b60aed | 236 | package ch.itenengineering.timer.ejb;
import javax.ejb.Stateless;
@Stateless
public class TimerBean implements TimerRemote {
public void start(String name, long interval) {
}
public void stop(String name) {
}
} // end of class
| 15.733333 | 48 | 0.745763 |
a83ca62e111c0b7cfa99a45325c6b15e2c6e1321 | 348 | package com.nerdynarwhal.hello.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class Saying {
@JsonProperty
@Getter private Long id;
@JsonProperty
@Getter... | 18.315789 | 53 | 0.79023 |
be2ad936200b78fde79b95112816042e2933d672 | 841 | package edu.gemini.spModel.target.offset;
/**
* A data object that describes an offset position and includes methods
* for extracting positions.
*/
public final class OffsetPos extends OffsetPosBase {
public static final Factory<OffsetPos> FACTORY = new Factory<OffsetPos>() {
public OffsetPos create(St... | 25.484848 | 79 | 0.626635 |
590432542aedaffeca5d751e07fc543ec74aae38 | 1,723 | /*
* Copyright 2014 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 applica... | 38.288889 | 118 | 0.778874 |
834ee45e1a92bb3a87d363f372304cfd6ce81606 | 11,557 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.network.implementation;
import com.azure.core.management.SubResource;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.logging.ClientLogger;
import... | 35.021212 | 120 | 0.652245 |
aeb02aaa1c6acf19630c1cfaa3efa09b61a01401 | 8,835 | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.simpleinstrument;
import java.util.Collections;
import java.util.Set;
import javax.time.calendar.Clock;
import javax.time.calendar.Z... | 55.917722 | 190 | 0.810413 |
90936f120dc77928f97619e50255f4f5b98a897c | 2,410 | package ch.itenengineering.jpa.relation.many2many.ejb;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import ch.itenengineering.jpa.relation.many2many.domain.Course;
import ch.itenengineering.jpa.relation.many2many.domain.Student;
@Stateless
public cl... | 25.913978 | 89 | 0.727386 |
a5067c5721f36ceaf871b0b4a286eebcd5de0c68 | 319 | package slogo.compiler.math;
import slogo.compiler.parser.Command;
public class SineCommand extends Command {
public SineCommand(String declaration) {
super(declaration);
desiredArgs = 1;
}
@Override
public double executeCommand() {
return Math.sin(Math.toRadians(args.get(0).execute()));
}
}
| 18.764706 | 59 | 0.717868 |
36a24eac0e2802695af117979a386fd93046e7af | 474 | class L3_21{
public static void main(String[] args){
int n = 10;//linha
valor (n);
}
static void valor(int n){
for (int N = 0; N < n; N = N+1){
if (N*n == Math.pow(N,2))
System.out.print(":");
else System.out.print("*");
for (int M = 1; M < n; M = M+1){
... | 15.290323 | 41 | 0.438819 |
7e690354d539919a5f7fb78fdf51b237044a19f3 | 867 | package com.github.jiangxch.courselearningmanagement.provider.entity;
import com.github.jiangxch.courselearningmanagement.provider.entity.common.BaseAliasEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annota... | 28.9 | 91 | 0.756632 |
dd86afcf290cf7d7d1d2e65324ab5e0a90351b37 | 21,853 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014-2020 Groupon, Inc
* Copyright 2020-2020 Equinix, Inc
* Copyright 2014-2020 The Billing Project, LLC
*
* The Billing 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 t... | 81.846442 | 152 | 0.543724 |
c73cee7dc470d42e82e906792397821bdf0e0493 | 1,743 | /*
*************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* 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, and is available a... | 39.613636 | 98 | 0.667814 |
3ad2382c215834d84de331eb6322e720fd03f406 | 17,088 | package com.github.martonr.picalc.gui.controller;
import com.github.martonr.picalc.engine.calculators.CalculatorParameters;
import com.github.martonr.picalc.engine.service.ServiceCalculation;
import com.github.martonr.picalc.engine.service.ServiceCalculationTask.Results;
import javafx.application.Platform;
import java... | 31.239488 | 99 | 0.589185 |
65a4c0dbd6d15b3cc4cd45b508ff23f7e1795be7 | 3,173 | package gui;
/**
* GameView for DroidBall. Responsible for displaying the grid
* in a GUI interface.
* @version 1.0
* @author Chris Curreri
*/
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
impor... | 26.889831 | 102 | 0.645131 |
5bfbd7d6c25ec183ee459020e07b29241cf2532c | 1,346 | package com.shiyq.wuye.entity.DO;
import java.io.Serializable;
import lombok.Data;
/**
* 物业收费记录信息表
*/
@Data
public class PropertyChargeVisit implements Serializable {
/**
* 自增主键
*/
private Integer id;
/**
* 收费项信息
*/
private PropertyChargeItem propertyChargeItem;
/**
* 住... | 12.348624 | 58 | 0.514116 |
7943ab1c3cbdc2c97ad9b3bd6d0da18e41a0a261 | 3,825 | /*
* 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 controller;
import model.Circuit;
import model.DeliveryRequest;
import model.CityMap;
import model.Delivery;
/**
... | 32.415254 | 81 | 0.639216 |
06ee752316679be9aea3e6afac183e77634ba833 | 2,689 | package kz.ncanode.kalkan;
import kz.gov.pki.kalkan.jce.provider.KalkanProvider;
import kz.gov.pki.kalkan.jce.provider.cms.CMSException;
import kz.gov.pki.kalkan.jce.provider.cms.CMSSignedData;
import kz.gov.pki.kalkan.jce.provider.cms.SignerInformation;
import kz.gov.pki.kalkan.jce.provider.cms.SignerInformationStore... | 34.922078 | 110 | 0.714764 |
ba80d3d47a2a9fb7171e360aad9bf14a6ed71fb9 | 10,932 | package com.yugabyte.yw.commissioner;
import akka.actor.ActorSystem;
import com.amazonaws.SDKGlobalConfiguration;
import com.cronutils.utils.VisibleForTesting;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.collect.ImmutableList;
import com.google.inject.Inject;
import com.google.inject.Singl... | 37.31058 | 99 | 0.661727 |
e29c15a37fa8110b3fa42135aef96638531485ec | 2,834 | package com.elezeta.roguecave.data;
public enum SpriteID {
naught,
humanbody1,
humanbody2,
humanbody3,
humanbody4,
humanbody5,
humanbody6,
humanbody7,
humanbody8,
humanbody9,
humanshortsfemale,
humanshortsmale,
humantopfemale,
humanbeardlong1,
humanbeardlong2,
humanbeardlong3,
humanbeardshort1... | 13.690821 | 35 | 0.790049 |
c2981623d3888b5891e131bba70b17c49e65d606 | 473 | package voidpointer.spigot.voidwhitelist.event;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public final class WhitelistDisabledEvent extends Event {
private static final HandlerList handlers = new HandlerList();
public static HandlerList getHandlerList() {
return handlers;
... | 22.52381 | 66 | 0.712474 |
bc9ecb24a92ef926be468ef8610c54afdd9ec816 | 12,288 | /*
* Kodkod -- Copyright (c) 2005-present, Emina Torlak
* Pardinus -- Copyright (c) 2013-present, Nuno Macedo, INESC TEC
*
* 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 restr... | 27.863946 | 104 | 0.632731 |
553a5d06ff59c3038c9636a85543c74126374fc3 | 12,250 | package com.mygdx.game.mario.game.screens;
import java.io.IOException;
import java.util.ArrayList;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.gra... | 34.122563 | 313 | 0.70098 |
36ad8d739623f75d56140c6cbe0cda0e23447a60 | 249 |
public class YeInterger {
public String num;
public YeInterger(String n) {
this.num = n;
}
public YeInterger plus(YeInterger n) {
// 实现加法
System.out.println("n1:" + this.num + " + n2:" + n.num);
return new YeInterger("3333");
}
}
| 16.6 | 58 | 0.626506 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.