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 |
|---|---|---|---|---|---|
6b2e29f989abd10dae3ac6983dc474dcad6b59ce | 844 | import java.util.Collection;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
public class Squad {
public final String name;
private List<Solider> members;
public Squad(List<Solider> s, String name) {
if(s == null) throw new IllegalArgumentException("Lista di soldati nulla.");
if... | 24.114286 | 84 | 0.680095 |
59c41d17838abe47d3b52a26193faf12db2a93e9 | 335 | package com.grandhyatt.commonlib;
import java.io.Closeable;
/**
* 语法简化器
*
* @author
* @email
* @create_date 2017-07-04
* */
public class CoderHelper {
public static void close(Closeable closable) {
if (closable != null) {
try {
closable.close();
} catch (Throwable e) {
e.printStackTrace();
... | 13.4 | 47 | 0.614925 |
8363c1cb91ba1bb15415deca5659989ccd6b0a52 | 11,068 | /* NullnessAssumptionAnalysis
* Copyright (C) 2006 Richard L. Halpert
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... | 30.744444 | 119 | 0.682237 |
f6f8f5e7187758271b52c1a0b311e382ef18c9c6 | 11,691 | /*
The MIT License (MIT)
Copyright (c) Terry Evans Vaughn "VCSCode"
All rights reserved.
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 limitatio... | 41.604982 | 164 | 0.594047 |
8a428eddb400a446cf8e0644aeaca3a4cced7cb1 | 2,757 | package com.w3engineers.unicef.telemesh.data.helper.inappupdate;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
/*
* ============================================================================
* Copyright (... | 39.385714 | 106 | 0.547334 |
12a7a9263baceae831178a9f2f9a0fd734694ca6 | 9,432 | package slimeknights.tconstruct.tables.tileentity.table.tinkerstation;
import net.fabricmc.fabric.api.screenhandler.v1.ExtendedScreenHandlerFactory;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.item.Item... | 36.276923 | 197 | 0.733036 |
16524bad07ee7965d56e8d378137a9119853c267 | 1,590 | package locadora;
import java.io.Serializable;
public class Veiculo implements Serializable{
private static final long serialVersionUID = 1667921221556233086L;
private String placa;
private String categoria;
private int ano;
private String marca;
private String modelo;
private String cor;
private boolean disp... | 18.068182 | 104 | 0.68239 |
e22328fd15344732d408c13286c7ee305cf0bb28 | 2,140 | /*
* This source file is part of the snoicd-crawler open source project.
*
* Copyright (c) 2019 willy and the snoicd-crawler project authors.
* Licensed under GNU General Public License v3.0.
*
* See /LICENSE for license information.
*
*/
package org.weso.snoicd.crawler;
import java.io.BufferedWriter;
import ... | 25.783133 | 98 | 0.718224 |
a52d103ff5a5fa6dc7117ea2c5e86ebbf7979c0d | 1,302 | package pokecube.core.items;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.TooltipFlag;
imp... | 29.590909 | 96 | 0.731951 |
342730217032059f02f876f07ebc911253aada7b | 584 | package java.android.quanlybanhang.Sonclass;
public class Mon {
String tensanpham;
String soluong;
public Mon(String tensanpham, String soluong) {
this.tensanpham = tensanpham;
this.soluong = soluong;
}
public Mon()
{
}
public String getTensanpham() {
return te... | 17.69697 | 51 | 0.618151 |
8eff03203f983fc59e81b7b50e376efcfc72f635 | 1,635 | package io.github.satxm.modsetting;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.PauseScreen;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraftforge.client.ev... | 38.023256 | 154 | 0.757187 |
9b9c06e8d18eb70454f0bfb2e342426d7b1451c8 | 7,331 | package com.purbon.kafka.topology;
import static com.purbon.kafka.topology.BuilderCLI.ADMIN_CLIENT_CONFIG_OPTION;
import static com.purbon.kafka.topology.BuilderCLI.BROKERS_OPTION;
import static com.purbon.kafka.topology.BuilderCLI.QUITE_OPTION;
import static com.purbon.kafka.topology.KafkaTopologyBuilder.SCHEMA_REGIS... | 36.292079 | 99 | 0.75474 |
19b9a934299560ccb790ebec9ca68d8172454d65 | 1,500 | package com.woshidaniu.globalweb.action;
import javax.annotation.Resource;
import com.opensymphony.xwork2.ModelDriven;
import com.woshidaniu.entities.ValidationModel;
import com.woshidaniu.service.common.ICommonValidationService;
/**
*
*@类名称:CommonValidationAction.java
*@类描述:公共的验证action
*@创建人:kangzhidong
*@创建时... | 17.857143 | 103 | 0.691333 |
bc71547dd6b58aa0d8aca3409d7b50b6aa4c7e3b | 2,037 | /*
* Copyright 2015 Karl Dahlgren
*
* 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 ... | 38.433962 | 112 | 0.763868 |
d5c3c06113f8892e443400345df53d0959010a87 | 2,306 | import java.util.InputMismatchException;
import java.util.Scanner;
public class Quiz {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int totalCorrectAnswers = 0;
String[] q1answers = { "Melbourne", "Anchorage", "Juneau" };
Question q1 = new Question("What is the capital ... | 29.564103 | 108 | 0.693408 |
680ea082ae9b3c22b1254a0dcc4e8ef99d19db34 | 2,812 | package com.opensymphony.xwork2.validator.validators;
import com.opensymphony.xwork2.XWorkTestCase;
import com.opensymphony.xwork2.util.ValueStack;
import com.opensymphony.xwork2.util.ValueStackFactory;
import com.opensymphony.xwork2.validator.GenericValidatorContext;
import com.opensymphony.xwork2.validator.Validator... | 36.519481 | 112 | 0.700213 |
bcd8604d95ca8bcabc32f99edbe2f74a0ec0b65c | 422 | package com.iwillfailyou.cactoos;
import com.iwillfailyou.IwfyException;
import org.cactoos.Func;
public final class IwfyFunc<X, Y> implements Func<X, Y> {
private final Func<X, Y> func;
public IwfyFunc(final Func<X, Y> fnc) {
this.func = fnc;
}
@Override
public Y apply(final X input) t... | 21.1 | 70 | 0.658768 |
9961c4bc748c09867d01db5aaaf2236b55b7bd5c | 1,303 | package Leetcode437;
import java.util.HashMap;
import java.util.Map;
// 路径总和Ⅲ
// 双递归 外层的递归遍历每一个结点
// 内层的递归计算以每一个结点为根的路径的条数
// 回溯和递归
public class Solution {
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {}
TreeNode(int val) { this.val = val; }
TreeNode(int... | 22.859649 | 93 | 0.497314 |
190b037ee92030e1eae632bd9091845ff552ec27 | 459 | package Everest.Framework.Mvc.Filter;
public class FilterInvocationResult {
Object result;
boolean responseSended;
public Object getResult() {
return result;
}
public void setResult(Object result) {
this.result = result;
}
public boolean isResponseSended() {
retur... | 19.956522 | 59 | 0.668845 |
60cff324c59c2bc39b3ef7f70f0cd76a1e24f1f2 | 664 | package cn.org.autumn.modules.job.site;
import cn.org.autumn.annotation.PageAware;
import cn.org.autumn.site.SiteFactory;
import org.springframework.stereotype.Component;
@Component
public class JobSite implements SiteFactory.Site {
public final static String siteId = "job";
public final static String pack =... | 22.896552 | 69 | 0.700301 |
17dec8d1db8c031ac8c261a0c6c8672702edb9aa | 186 | package com.fdmgroup.toystore.DAOToJDBC;
public interface DAO<T> {
public void create(T object);
public T read(int id);
public void update(T object);
public void delete(T object);
} | 23.25 | 40 | 0.747312 |
b8e6ba60410e17d1f79a204027ee33e3b7f2146e | 1,987 | /*
* Copyright 2005-2020 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... | 39.74 | 194 | 0.781077 |
f62e4314f53a139f008245bb6407b6c1d7eafc81 | 5,622 | /*
* Licensed to the jNode FTN Platform Develpoment Team (jNode Team)
* under one or more contributor license agreements.
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
* The jNode Team licenses this file to you under the
* Apache License, Version ... | 28.251256 | 74 | 0.62042 |
081d8ce220cb0918ae731360325b1bdfb86cdf2c | 509 | package es.upm.miw.apaw_practice.adapters.mongodb.vet_clinic.daos;
import es.upm.miw.apaw_practice.adapters.mongodb.vet_clinic.entities.PetEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.Optional;
public interface PetRepository extends MongoRepository<PetEntity, String> {... | 33.933333 | 79 | 0.819253 |
8910f94d1a23b57cd369dd2e555e766d91d2d836 | 1,628 | package com.smatechnologies.msazure.vm.interfaces;
import java.util.List;
import com.microsoft.azure.credentials.ApplicationTokenCredentials;
import com.microsoft.azure.management.Azure;
import com.microsoft.azure.management.compute.Disk;
import com.microsoft.azure.management.compute.VirtualMachine;
import com.smatec... | 50.875 | 155 | 0.842138 |
0d415a430a64dac7c1d679ce8168fb0af1a9eac0 | 831 | package com.melody.pojo.news;
public class SpecificFXNewsProvider extends FXNewsProvider{
private IFXNewsListener newsListener;
private IFXNewsPersistener newsPersistener;
// public SpecificFXNewsProvider() {
// }
public SpecificFXNewsProvider(IFXNewsListener newsListener, IFXNewsPersistener newsPe... | 25.96875 | 101 | 0.731649 |
12517dae4a432a96d0aa020a9e4207bc318ee9ae | 5,762 | /*
* #%L
* de.metas.cucumber
* %%
* Copyright (C) 2021 metas GmbH
* %%
* 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 2 of the
* License, or (at your option) any later v... | 44.666667 | 152 | 0.825061 |
6df9dd7843990eab084d9b3f2d600014ce8c26eb | 33,935 | /*
* 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 ... | 48.134752 | 155 | 0.761574 |
6d18d455e44d3d90f32b9d9496a87d07c9ac0841 | 2,809 | package collection.anew.multiutilapp;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
/**
* Created b... | 31.561798 | 138 | 0.661445 |
27a593fd42384df8b0522e9528af4eb92d8248b3 | 152 | @API(owner = "Baubles", apiVersion = "baubles.common.Baubles.VERSION", provides = "Baubles|API")
package baubles.api;
import cpw.mods.fml.common.API;
| 25.333333 | 96 | 0.736842 |
bd13e136759a9c0768b2e645ca5afa3c36928908 | 1,149 | package com.serenity.cucumber.stepdefs;
import static com.serenity.screenplay.ui.DashboardScreen.ADD_BUTTON;
import static net.serenitybdd.screenplay.GivenWhenThen.givenThat;
import static net.serenitybdd.screenplay.actors.OnStage.theActorInTheSpotlight;
import static net.serenitybdd.screenplay.actors.OnStage.theActor... | 31.916667 | 86 | 0.771105 |
097880eb875a7f636d78acb2349a9455f2fc8c18 | 2,859 | package com.roddyaj.invest.html;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class Table implements HtmlObject
{
private final List<Column> columns;
private final List<List<Object>> rows;
private boolean showHeader = true;
public Table(List<Column> columns, List<List<Object>... | 20.421429 | 107 | 0.650227 |
7392d73cdb83a41a3e86fde6ce974dae23b657a6 | 901 | package com.jhb.baseadapter.recyclerview;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.util.SparseArray;
import android.view.View;
import android.widget.TextView;
/**
* Created by jhb on 2018/1/29.
*/
public class BaseRecyclerViewHolder extends ViewHolder {
private SparseArray<View>... | 23.710526 | 71 | 0.628191 |
f0fe1061ecad34ba3b702691696492f9df2380c4 | 1,020 | /*
* framework: org.nrg.framework.io.RenameFileMapperTest
* XNAT http://www.xnat.org
* Copyright (c) 2017, Washington University School of Medicine
* All Rights Reserved
*
* Released under the Simplified BSD.
*/
package org.nrg.framework.io;
import org.junit.Test;
import java.io.File;
import static org.junit... | 27.567568 | 93 | 0.678431 |
7a0525af80ed3848ecbe7d8f003c16c585443040 | 4,255 | /*
* Copyright 2017-2022 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 "licen... | 53.860759 | 159 | 0.762867 |
3ec1cced017b2232f2c2d412a81b91f89292932b | 1,171 | package il.org.spartan;
/**
* Pun intended: <code>tide.WHITES</code>, <code>tide.clean(s)</code>, cleans
* all <code>tide.WHITES</code>
*/
public interface tide {
String WHITES = "(?m)\\s+";
/**
* Remove all non-essential spaces from a string that represents Java code.
*
* @param javaCodeFragment JD
... | 33.457143 | 115 | 0.520922 |
d5f0fef2c780e3a9750b2b80641f2a90465bdc31 | 145 | package org.sever.group.testingtaskrest.domain.util;
/**
* @author Orlov Diga
*/
public enum LevelNumber {
FIRST,
SECOND,
THIRD
}
| 13.181818 | 52 | 0.668966 |
9d70a322fe7444067fcf5f5ada09c25a8b9f938f | 387 | package com.cjy.flb.activity;
import android.app.Activity;
import android.os.Bundle;
import com.cjy.flb.R;
/**
* Created by Administrator on 2015/12/18 0018.
*/
public class LoadingActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanc... | 20.368421 | 56 | 0.728682 |
de1654befb0c01b73cc1c9c25d7fba2be14e6947 | 1,879 | package com.wind.ws.service.impl;
import com.baidu.unbiz.fluentvalidator.annotation.FluentValid;
import com.wind.ws.common.persistence.base.BaseServiceImpl;
import com.wind.ws.dao.UserInfoDao;
import com.wind.ws.entity.po.UserInfo;
import com.wind.ws.entity.query.UserSaveQ;
import com.wind.ws.service.UserInfoService;
... | 28.469697 | 101 | 0.732837 |
24410af7f9999d951cd1497e19a8d934dfbc70c1 | 5,693 | /**
* PermissionsEx
* Copyright (C) zml and PermissionsEx contributors
*
* 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 r... | 34.08982 | 150 | 0.626383 |
17c6560ed6bb325d323651121671af65a3dbffc7 | 292 | package com.softicar.platform.common.ui.wiki.token.matcher;
import com.softicar.platform.common.ui.wiki.token.WikiResourceToken;
public class WikiResourceTokenMatcher extends AbstractUrlTokenMatcher {
public WikiResourceTokenMatcher() {
super("{{", "}}", WikiResourceToken::new);
}
}
| 24.333333 | 71 | 0.784247 |
80f37145ffad8baaac1437ce9791f36c86a274e7 | 659 | package xyz.lius.andy.expression.operator;
import xyz.lius.andy.core.OperatorSingleton;
import xyz.lius.andy.expression.*;
import xyz.lius.andy.util.AbstractContainer;
import xyz.lius.andy.util.Pair;
/**
* e.g. left = "hello"
*/
public class AssignExpression extends AbstractContainer implements Operator {
publ... | 24.407407 | 86 | 0.698027 |
abb3de5b4f7018f6883480eabe9d1e0ed71d461c | 944 | /**
* FileName: XofaKindinaDeckofCards
* Description:卡牌分组
* 给定一副牌,每张牌上都写着一个整数。
* <p>
* 此时,你需要选定一个数字 X,使我们可以将整副牌按下述规则分成 1 组或更多组:
* <p>
* 每组都有 X 张牌。
* 组内所有的牌上都写着相同的整数。
* 仅当你可选的 X >= 2 时返回 true
* Author: @VirtualChen
* Date: 2020/3/27 20:42
*/
package src;
import java.util.Arrays;
import java.util.HashM... | 21.953488 | 47 | 0.475636 |
982d8fe9a31c33db30efcd1f33d6a76307c6d4f4 | 2,913 | package io.github.ingmargoudt.veritas;
import io.github.ingmargoudt.veritas.assertions.*;
import io.github.ingmargoudt.veritas.assertions.collections.CollectionAssertion;
import io.github.ingmargoudt.veritas.assertions.collections.IterableAssertion;
import io.github.ingmargoudt.veritas.assertions.collections.IteratorA... | 34.270588 | 98 | 0.757295 |
59020162d0c0ed14948f32f89f2ac222bf96bf4c | 8,331 | package eu.fasten.core.data;
import static it.unimi.dsi.fastutil.longs.LongLongPair.of;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agre... | 44.31383 | 126 | 0.745649 |
9963c6a48dcb9ad8aea031fabeb8ed6e4ebbbb63 | 5,743 | package org.apache.ws.java2wsdl.utils;
import org.apache.axiom.om.OMElement;
import org.apache.ws.java2wsdl.Java2WSDLConstants;
import javax.xml.namespace.QName;
import java.util.*;
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
... | 43.839695 | 90 | 0.63782 |
6d3927c6f0e7a3d75eca984ff059e567f21539ea | 2,914 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems.LEDPanel.Letters;
import java.util.*;
import edu.wpi.first.wpilibj.util.Color;
/** Add y... | 28.851485 | 86 | 0.509266 |
a18c277dc44bbbc1d5680a3f907dfb0a269052c9 | 2,109 | package epicsquid.mysticalworld.item;
import epicsquid.mysticallib.item.ItemBase;
import epicsquid.mysticalworld.init.ModBlocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockNewLog;
import net.minecraft.block.BlockOldLog;
import net.minecraft.block.BlockPlanks;
import net.minecraft.block.state.IBl... | 33.47619 | 209 | 0.725936 |
023c9de6fc5db0597258bd05bb0af02c933906f3 | 591 | package com.qiangdong.reader.request.novel;
import com.qiangdong.reader.enums.user.UserSexEnum;
import com.qiangdong.reader.request.BaseRequest;
public class ListNovelByManageTypeRequest extends BaseRequest {
private String levelName = "";
private UserSexEnum sex = UserSexEnum.NONE;
public String getLev... | 21.888889 | 63 | 0.690355 |
df4eb15558d3ceab0d2ca235e26955c38e51ace2 | 944 | package com.anaadar.akaltakhatsahibpro.activities.guru_sahiban;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import com.anaadar.akaltakhatsahibpro.R;
import com.anaadar.akaltakhatsahibpro.activities.guru_sahiban.pageAdapter.CustomPagerAdapter;
i... | 36.307692 | 95 | 0.784958 |
d7ebd40cc06aa569003aa27ba3e285c8108509a3 | 4,433 | /*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with the License. You may obtain a
* c... | 33.330827 | 101 | 0.674487 |
483d75dd724e864a0cfeb46107dfb08b038a4fb6 | 19,274 | /*******************************************************************************
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.... | 29.381098 | 85 | 0.607087 |
036d683a63c0a4c3757306d3c02730e55281bea1 | 699 | package com.minorityhobbies.util.bus;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class BusClient {
public static void main(String[] args) throws IOException,
URISyntaxException, InterruptedException {
URI discoveryUri = new URI("multicast://239.1.1.100:50100");
... | 25.888889 | 66 | 0.738197 |
7a1a52e64fbf1306cda93ad691cd3945a10e5eea | 4,004 | /*
* Copyright 2012 Google 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 23.976048 | 92 | 0.657592 |
dcea81602c438a1f2d34daeb26f8bae57bc37337 | 3,304 | package com.hartwig.pipeline.alignment;
import static com.hartwig.pipeline.testsupport.TestInputs.BUCKET;
import static com.hartwig.pipeline.testsupport.TestInputs.SET;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.Optional;
import com.hartwig.pipeline.Arguments;
import com.hartwig.pipe... | 45.260274 | 137 | 0.734262 |
624bb0263b8830d57a911a146136fac7044e5ba6 | 9,688 | package ru.taximaxim.codekeeper.ui.handlers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
i... | 39.064516 | 119 | 0.610033 |
a8485692c44602a8cee3ce205ee78d3f41fff116 | 5,991 | package org.uma.jmetal.example.multitask.matde;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.uma.jmetal.algorithm.Algorithm;
import org.uma.jmetal.algorithm.multitask.matde.MATDE;
import org.uma.jmetal.example.Algori... | 46.804688 | 153 | 0.635286 |
021d8fd68d25e5fa3c6671b4560bab2ac5d16f09 | 2,317 | package com.lewisallen.rtdptiCache.tests;
import com.lewisallen.rtdptiCache.caches.BusCodesCache;
import com.lewisallen.rtdptiCache.models.Bus;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import java.util.HashMap;
import java.util.Map;
import ... | 30.486842 | 125 | 0.640483 |
4ed9004618d3e88476fd7138f37ed80219837961 | 4,660 | package com.codepath.apps.restclienttemplate.fragments;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
imp... | 33.285714 | 123 | 0.727682 |
946ba3eb97bd32c6203741e16006d37cfded3fac | 562 | package uk.nhs.digital.nhsconnect.nhais.mesh.token;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import uk.nhs.digital.nhsconnect.nhais.utils.TimestampService;
@RequiredArgsConstructor
class TokenTimestamp {
private static fina... | 28.1 | 112 | 0.798932 |
22695420d16a7dd0532cea2707ca2a158d48a9ed | 13,578 | /*
* 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 ... | 36.796748 | 119 | 0.686404 |
eb7e5e455dc61172be806017ebe559c396577c27 | 3,566 | /*
* 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 com.aniuska.jflow.managedbean;
import com.aniuska.jflow.auth.AuthenticationBean;
import com.aniuska.jflow.ejb.TicketFacade;
im... | 36.020202 | 108 | 0.685923 |
c17961da21d2901532467bbd598df70e228b0692 | 460 | package org.jfpc.beans.platform.MS0A2;
import org.jfpc.framework.support.MyServiceSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
/** 机能模块定义*/
@Service
public class MS0A2Service extends MyServiceSupport {
protected static final Logger logger = Logge... | 27.058824 | 87 | 0.778261 |
6455b4f49702ea231dadf9f5a2df5f1efa0defde | 397 | package com.company.revise.luan.demo17;
public class demo1 {
public static void main(String[] args) {
// System.out.println(System.currentTimeMillis());
long start = System.currentTimeMillis();
for (int i = 0; i < 10000; i++) {
System.out.println(i);
}
long end =... | 26.466667 | 58 | 0.594458 |
ac0bb24b698a6db5f7a0d603de085b4ee134c697 | 1,151 | package br.com.redesocial.controle;
import br.com.redesocial.modelo.dto.Usuario;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... | 32.885714 | 82 | 0.745439 |
6645f40cde4ed0db250584f4abe8976aae5f12ac | 1,809 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import com.microsoft.sqlserver.jdbc.*;
public class Database_Class {
private static Connection c... | 25.478873 | 156 | 0.628524 |
4cb0a1d08f8826e623b0a86544c7fc527a73dcba | 6,351 | package com.texasgamer.zephyr.view;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.I... | 34.895604 | 123 | 0.658322 |
1b4cbc5c1defeaaf5978445093ddbda2aa3689a2 | 314 | package it.polimi.ingsw.server.model.dice;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class testSackSize_Test {
@Test
void sacksize() {
Sack s = new Sack();
System.out.println(s.getsize());
Assertions.assertEquals(90, s.getsize());
}
}
| 22.428571 | 49 | 0.665605 |
5a52444a39e04adf7833807633e3ad8bb75e47a3 | 468 | package com.badugi.game.logic.model.vo.config;
import java.util.List;
/**
* 签到宝箱配置
*
* @author amin
*/
public class SignBoxConfigVo {
private int count;// 签到需要的次数
private List<TaskRewardVo> reward;//奖品分配方案
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
... | 14.625 | 51 | 0.690171 |
898eef08b2f3cbc91cff595407ca6459119f6002 | 6,815 | package org.testah.driver.http.poller;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.http.Header;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import org.testa... | 33.082524 | 117 | 0.620396 |
833d501dcb7dfb75d3c02d3251ea4a6a424fa6cd | 162 | package com.spring.useXml;
public class AccountException extends RuntimeException{
public AccountException(String message) {
super(message);
}
}
| 20.25 | 55 | 0.734568 |
bf34e07550ce449eb3f5425437bc0396cb2e3a48 | 6,794 | /*
* 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... | 21.034056 | 80 | 0.647777 |
431139da44910a2c9babd514c25bb09d81133ffa | 1,511 | package doTest.stream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
public class TestCreateLocalStream {
static String defaultFileName = "/home/winter/temp/test.dat";
public static void main(String[] args) throws IOException {
new TestCreateLo... | 26.051724 | 79 | 0.618795 |
6aad20696f20a39e92075040043fb0942ee49164 | 4,384 | /*******************************************************************************
* Copyright 2019 Mountain Fog, 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.a... | 36.231405 | 119 | 0.667883 |
a4de916c0c57f4c477d769a4df8b50df6955dea9 | 505 | package com.base.structure.graph.weight;
/**
* 图中权重的管理
*
* @param <E>
*/
public interface WeightManager<E> {
/**
* 比较两个权重
*
* @param w1 待比较的第一个权重
* @param w2 待比较的第二个权重
* @return true表示第一个权重大于第二个权重,false表示第一个权重小于第二个权重
*/
int compare(E w1, E w2);
/**
* 两个权重相加
*
... | 14.852941 | 53 | 0.514851 |
94c30395bf499f0833680b596f9ef9606e4a62b1 | 2,403 |
package eu.kedev.training.akka.j3;
import akka.actor.Props;
import akka.actor.UntypedActor;
import akka.event.Logging;
import akka.event.LoggingAdapter;
/**
* @author Joachim Klein, joachim.klein@secure.avono.de
* @since 17.07.15
*/
public class WordsCounter extends UntypedActor {
LoggingAdapter log = Loggin... | 25.56383 | 86 | 0.54099 |
f8173d102df6397538ee2157a7579a784834a5bf | 3,580 | package bayu.anas.com.popularmovie.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
/**
* Created by AnasBayu on 04/07/2017.
*/
public class Movie implements Parcelable{
@SerializedName("vote_count")
private String voiteCount;
@Serialize... | 24.520548 | 93 | 0.633799 |
c57229cebe8abf18fe707d4ad5724a7f28439532 | 8,702 | /**
* Copyright 2010-2012 by PHP-maven.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 25.669617 | 119 | 0.56803 |
076049f73d53f9814baf124fdc6ce18a180a5bb0 | 1,063 | package com.gklijs.adventofcode.day23;
enum Mutator {
ONE(1, 0, 0),
TWO(-1, 0, 0),
THREE(0, 1, 0),
FOUR(0, -1, 0),
FIVE(0, 0, 1),
SIX(0, 0, -1),
SEVEN(1, 1, 0),
EIGHT(1, -1, 0),
NINE(1, 0, 1),
TEN(1, 0, -1),
ELEVEN(-1, 1, 0),
TWELVE(-1, -1, 0),
THIRTEEN(-1, 0, 1),
... | 21.693878 | 52 | 0.464722 |
a58fa6e9b1d52e34423bc914e761adcbe0793a8e | 920 | package ooga.model.util;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import ooga.model.exceptions.NotADirectoryException;
public class FileReader {
public static String readFile(File toConvert) throws FileNotFoundExce... | 26.285714 | 92 | 0.71087 |
24b9cd91339e90d755d7c961dc97d5f4d890254d | 5,681 | /*
* Copyright 2014 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... | 38.385135 | 95 | 0.564337 |
dd4d9463bcb65d7370704f652a5dca9ea3e144d0 | 2,029 | /**
* 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.838235 | 99 | 0.702809 |
74e4dd4a0acf46ad2c0ddf5aaddd6aa58b01493c | 3,395 | 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 ... | 18.451087 | 810 | 0.790574 |
0601032778d401c7bd7f435b5aba76d8586b5bed | 4,635 | package org.pes.onecemulator.ui.view.payeradmin.dialog.edit;
import com.vaadin.server.CompositeErrorMessage;
import com.vaadin.ui.FormLayout;
import org.pes.onecemulator.model.internal.PayerModel;
import java.util.ArrayList;
import java.util.List;
class PayerEditForm extends FormLayout {
private final PayerIdRe... | 38.305785 | 150 | 0.662783 |
fd433fbae54146a4320b7822162308f43e2c629e | 2,885 | package com.example.scrapebeauty;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Point;
import android.support.v7.app.AppCompatActivity;... | 40.069444 | 124 | 0.5026 |
a4098c03bc13b01c577a20513e322379ee78baad | 4,771 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.envers.test.integration.modifiedflags.entities;
import java.... | 24.09596 | 94 | 0.747432 |
034e888ce111552286e9f03b20639fd0875a08f2 | 1,835 | //Alumnos:
//
package tp.p1;
public class Zombie {
private Position pos;
private int life;
private int cyclesToAdvance;
private int cyclesToAttack;
private Game game;
public static final int LIFE = 5;
public static final int CYCLESADVANCE = 2;
public static final int SQU... | 20.852273 | 54 | 0.642507 |
71ab204d268738dbae840bdca857d3e3f23c435e | 713 | package me.mlnn.raif.util;
import me.mlnn.raif.model.SocksModel;
public class SocksValidatorUtil {
public static Boolean validateColor(String color) {
return color != null;
}
public static Boolean validateCottonPart(Integer cottonPart) {
return cottonPart != null && cottonPart >= 0 &&... | 29.708333 | 74 | 0.653576 |
76a13fece71f4d16b7e06b0b9e16b15202c90b91 | 1,544 | package com.connectin.exceptions.auth;
public class NonRegistereduserException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
*
*/
public NonRegistereduserException() {
super();
// TODO Auto-generated constructor stub
}
... | 20.586667 | 96 | 0.580311 |
76be9ebb792e69bc6d4fc4a8c4413b5859762655 | 7,871 | /**
*
*/
package com.safframework.tony.common.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import org.joda.time.DateTime;
/**
* 使用Joda封装的日期帮助类
* @author Tony Shen
*
*/
public class JodaUtils {
/**
* 得到当前的年份
* 返回格式:yyyy
* @return S... | 21.215633 | 115 | 0.644391 |
dab5631674d3275c8ba6d599ad6a7ea40b8d14e0 | 349 | package com.sss.stdprt.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.sss.stdprt.domain.Contract;
public interface ContractRepository extends JpaRepository<Contract, Integer> {
List<Contract> findByStdId(Integer stdId);
Contract findByStdIdAndYear(Int... | 23.266667 | 78 | 0.816619 |
e922583029fb988dc7d5d139580b785478c7a2a4 | 332 | package co.edu.uninorte.sb.template;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class StackUninorteApplication {
public static void main(String[] args) {
SpringApplication.run(StackUninorteApplication.class,... | 27.666667 | 68 | 0.831325 |
c114a497483f9baa4995a8f102fc9c7bc5f31f0a | 15,507 | package org.basex.io.random;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Arrays;
import org.basex.data.MetaData;
import org.basex.io.IO;
import org.basex.io.in.DataInput;
import org.basex.io.out.DataOutput;
import org.basex.util.Array;
import org.basex.util.BitArray;
import org.basex... | 29.480989 | 80 | 0.589798 |
7b7219783765712fb5db0fb70652aa4589529613 | 230,805 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 41.699187 | 854 | 0.785711 |
9c4a09b403581574bd47f1395f4ce0212e5b03b2 | 5,495 | package com.mcoding.base.generator;
import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generato... | 38.159722 | 147 | 0.662238 |
1b8143e1e8c4b28d298813a77599145836268a3a | 4,726 | /*
* 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 ... | 42.963636 | 119 | 0.717732 |
21edaad7e0656c9f825df6197cb66f5989cc2a3f | 424 | package com.beinet.carsmanagement.carsTemp.cars.repository;
import com.beinet.carsmanagement.carsTemp.cars.model.CarsTemp;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface CarsTempRepository extends JpaRepository<CarsTemp, Integer> {
List<CarsTemp> fin... | 32.615385 | 79 | 0.806604 |
300bd6027ea1e245e78e3956d1c0e161281f8ceb | 121 | package com.baeldung.spring.statemachine.applicationreview;
public enum ApplicationReviewEvents {
APPROVE, REJECT
}
| 20.166667 | 59 | 0.818182 |
8525e88e2a9a8d2fccc8076622b66f3391f14550 | 10,715 | /*
* 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 not ... | 34.342949 | 100 | 0.744284 |
269a6a95ebc86b9ebb71eb3cd5df6c4a80d0057e | 5,321 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020-2030 The XdagJ Developers
*
* 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 righ... | 31.3 | 102 | 0.643864 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.