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 |
|---|---|---|---|---|---|
b3e9aa9751253d2d922ddb502ad149339c1ac8ed | 1,006 | package fi.aalto.cs.apluscourses.intellij.utils;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* A class that makes it easy to use projects as keys in maps. The equals and hashCode methods are
* based on the project base path. N... | 25.15 | 98 | 0.696819 |
fd34a61639dd9d71603784a8d65c90f384341d25 | 428 | package net.pladema.establishment.controller.dto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
@Getter
@Setter
@ToString
public class InstitutionDto implements Serializable {
private static final long serialVersionUID = -6806500543924261426L;
private Integer id;... | 17.833333 | 68 | 0.817757 |
a762d12b5dfc9b8403b62aec310b9618fbcbe4e5 | 1,107 | package mylab.puzzles;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.*;
/**
* Created with IntelliJ IDEA.
* User: iguana
* Date: 21/9/14
* Time: 11:28 PM
*
* Rules :
* 1. Each unique account + security identifier combination creates one aggregated position.
* 2. The position quant... | 31.628571 | 92 | 0.70551 |
1906f04ca3f3bd76938216d28737a7f56e573474 | 2,885 | package edu.yctc.face.function;
import java.io.IOException;
import edu.yctc.project.system.infost.domain.Infost;
/**
* 人脸识别相关功能接口
*
* @author xiaotao
*/
public interface FaceFunction {
/**
* 功能:填写数据库tb_user表的face_token<br>
* 1)通过UserDO得到picture<br>
* 2)识别picture(通过face++)得到face_token<br>
... | 26.46789 | 112 | 0.651646 |
c74e8ab84f28565441221103516a25bef4daa250 | 4,229 | package com.smartdevicelink.test.streaming;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import junit.framework.TestCase;
import com.smartdevicelink.SdlConnec... | 45.473118 | 153 | 0.784819 |
758c8e797b3dd5f03853a411a1586e99df5df9a3 | 4,047 | /*
* Copyright 2014 Phil Burk, Mobileer Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 30.89313 | 99 | 0.656536 |
b340e4ef554c79b5dd90c211e171a0251cd6f2b4 | 2,788 | package com.revature.mikeworks.drivers;
import com.revature.mikeworks.components.BankData;
import com.revature.mikeworks.components.Customer;
import com.revature.mikeworks.controllers.CentralMenuController;
import com.revature.mikeworks.enums.BankSecurity;
import com.revature.mikeworks.handlers.BankAccountHandler;
pu... | 34.419753 | 100 | 0.678623 |
78862ba6d75fca09085be9ea46699d46088aa70f | 1,493 | package be.intecbrussel.dakplusplus.model.project;
import be.intecbrussel.dakplusplus.model.invoice.Invoice;
import javax.persistence.*;
@Entity
public class Equipment {
@Id
@GeneratedValue
private long id;
private String designation;
private float cost;
private int quantity;
@ManyToOne(... | 19.141026 | 68 | 0.61353 |
c78236e4a4bc776d5d7254538810efa660c44f3e | 10,000 | /*
* Copyright (C) 2020 The zfoo 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 applicable law or agreed t... | 52.356021 | 137 | 0.6052 |
f86c7727de3cf267578c2cdb689d07b361609ba2 | 3,570 | 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.888889 | 810 | 0.806443 |
6a7c302c99efcac0322f6985c21056d7f7e8ff42 | 359 | package com.brayden.example;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemSword;
public class CustomSword extends ItemSword {
public CustomSword() {
super(ExampleMod.myToolMaterial);
this.setRegistryName("my_sword");
this.setUnlocalizedName("my_sword");
this.setCre... | 23.933333 | 47 | 0.760446 |
c6847615e85cb35405789d44b71083b5cfb34bb1 | 232 | package ilusr.textadventurecreator.error;
public interface IEmailService {
/**
* Sends an email.
*
* @param parameters The @see EmailParameters to use to send this email.
*/
void sendEmail(EmailParameters parameters);
}
| 21.090909 | 73 | 0.737069 |
4cbe0faf768445b95fd884ab3b8f77640fef5d1f | 2,057 | package net.haesleinhuepf.clij2.plugins;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
import net.haesleinhuepf.clij.coremem.enums.NativeTypeEnum;
import net.haesleinhuepf.clij.macro.CLIJMacroPlugin;
import net.haesleinhuepf.clij.macro.CLIJOpenCLProcessor;
import net.haesleinhuepf.clij.macro.documentation.Offer... | 35.465517 | 177 | 0.753038 |
ae18208bafbcf767eb6176117fb6cf9ba510cbe1 | 140 | package com.anteoy.coreJava.nk;
/**
* Created by zhoudazhuang on 17-12-7.
*/
class Pub {//default and public allow
}
// class Pub1 {
//}
| 14 | 38 | 0.657143 |
a4523991d18558195172a2af03b4e41e78a29519 | 1,977 | /*
* Copyright (c) 2018 superblaubeere27
*
* 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, publish, di... | 41.1875 | 463 | 0.725341 |
ff9cd1795049330a5146e0705a46e3ed4d7f13ef | 2,079 | package tracing.backend;
import tracing.backend.trace.TraceEvent;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.Semaphore;
/**
* Queue of trace events that allows a blocking peek operation.
*/
public class TraceQueue {
private final Sem... | 31.5 | 131 | 0.634921 |
18d2005d9a1d336b3a4cf11da8d16ec68c138f2d | 450 | package tictactoe;
import java.util.ArrayList;
import java.util.Random;
public class AI {
public int pickSpot(TicTacToe game) {
ArrayList<Integer> choices = new ArrayList<Integer>();
for (int i = 0; i < 9; i++) {
// if slot isn't taken add it as choice
if (game.board[i] == '-') {
choices.add(i + 1);
... | 22.5 | 70 | 0.635556 |
b0b4ba0e3eac8206f893c48edd67c3b9ebf978b1 | 2,260 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | 31.388889 | 76 | 0.733186 |
94817a8c94a8bf999d6ff1c0c70a166659e8fa81 | 696 | package zadanie1;
public class Solutions {
static int[] solve(int a0, int a1, int a2, int b0, int b1, int b2) {
int[] result = new int[2];
int[] a = {a0, a1, a2};
int[] b = {b0, b1, b2};
for (int i = 0; i < a.length; i++) {
if (a[i] != b[i]) {
if (a[i] > ... | 24.857143 | 72 | 0.387931 |
fa6e21ee4a90350bce98b233ec2eedf054b28d5c | 2,552 | /*
* Copyright 2016 Intuit
*
* 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 wr... | 43.254237 | 102 | 0.746865 |
6f6a6e384b043e574df40e3e1a9fbb86c7d3fbad | 3,487 | package com.java110.common.listener.file;
import com.alibaba.fastjson.JSONObject;
import com.java110.common.dao.IFileRelServiceDao;
import com.java110.entity.center.Business;
import com.java110.event.service.AbstractBusinessServiceDataFlowListener;
import com.java110.utils.constant.ResponseConstant;
import com.java110... | 40.546512 | 121 | 0.736736 |
ad5edee6f4c72bdd302a1fbebe986f02bbc082e5 | 2,602 | package org.shirdrn.storm.analytics.calculators;
import net.sf.json.JSONObject;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.shirdrn.storm.analytics.common.GenericIndicatorCalculator;
import org.shirdrn.storm.analytics.common.KeyedResult;
import org.shirdrn.s... | 37.171429 | 119 | 0.73136 |
2950d0a70a8f0769ac060a443990549afd1fc94d | 2,648 | /*
* 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 ... | 31.903614 | 89 | 0.689199 |
a3cf49d7e2d7c82d7c22b47c7aececa91b076098 | 1,520 | package net.minidev.json.writer;
/*
* Copyright 2011-2014 JSON-SMART 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
*
* Un... | 23.75 | 75 | 0.728947 |
18ddccf05b7a9ae72b284f25a03890a34b575014 | 2,245 | /*
* 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 ma... | 42.358491 | 96 | 0.703786 |
576f9cd29c0c1126961850922d18f167f67a7815 | 3,142 | /*
* Copyright 2015 John "LuaMilkshake" Marion
*
* 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 la... | 30.504854 | 96 | 0.734246 |
f311cb5a64e68f6d32e2966843fdd921a08a95fc | 216 | package com.zzq.util;
public class ArrayUtils {
public static boolean isNotEmpty(byte[] data) {
if (data == null || data.length == 0) {
return false;
}
return true;
}
}
| 16.615385 | 51 | 0.541667 |
a50d2a6b689b7759f7d88a7379cb68ce54661d4b | 2,593 | package com.webimapp.android.sdk.impl.items.delta;
import com.google.gson.annotations.SerializedName;
import com.webimapp.android.sdk.impl.items.ChatItem;
import com.webimapp.android.sdk.impl.items.DepartmentItem;
import com.webimapp.android.sdk.impl.items.SurveyItem;
import java.util.List;
public class DeltaFullUpd... | 24.009259 | 67 | 0.683378 |
330fc527c1d7f09890164ff92f1b653252d51ce0 | 323 | package com.baoliang.spring.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface CompoentScan {
String value();... | 23.071429 | 44 | 0.80805 |
a69f71f2d1d8886103df4fb2cb1852d3e21c3ffd | 304 | package com.example.cli.domain.search;
import lombok.Data;
/**
* @author wjw
*/
@Data
public class UserSearch extends BaseSearch {
private String name;
private String email;
private String roleId;
private Integer status;
private String userName;
private String phone;
}
| 13.217391 | 44 | 0.697368 |
c63a896740a2074b58ec53e76ab2cba8735390eb | 1,103 | /**
*
*/
public class Cake extends BakedItem {
protected int layers;
/**
*
*/
public static final double BASE_RATE = 8.0;
/**
* @param nameIn creates the name of the object
* @param flavorIn creates the flavor of the object
* @param quantityIn creates the qunatity of the ... | 26.902439 | 66 | 0.599275 |
b4569c3a08aaee0b9f9c3c6a7946a5e9d0ffe66b | 1,308 | package top.wayneshen.slk.controller;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.*;
import top.wayneshen.slk.serivce.ShortLinkService;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
/**
* 短链接controll... | 26.16 | 101 | 0.666667 |
bd83c7da86001352c892f9691140088ad2ae0655 | 3,071 | /*
* 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 co.edu.uniandes.theexceptions.nboletas.resources;
import co.edu.uniandes.theexceptions.nboletas.dtos.ComentarioDetailDT... | 42.068493 | 224 | 0.756757 |
d582c7d0361d9ec7c1dab69f7d375641357595af | 6,164 | /*
* Copyright 2008 Alin Dreghiciu.
*
* 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 ... | 35.222857 | 100 | 0.631246 |
2dfe7fe46dc72fbcbe361e1b812b4dbe5e3b0f7a | 676 | package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* class FindLoopTest - решение задачи "5.2. Перевернуть массив [#4441]"
* @author Густинович Антон (anton14024@yandex.ru)
*/
public class TurnTest {
@Test
public void whenLengthIs... | 27.04 | 72 | 0.636095 |
e03d3d6fa827affec96badf80320383a97bfc5a7 | 582 | package com.sd.swipemenu;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Administrator on 2018/3/19.
*/
public class DataModel
{
public String name;
public static List<DataModel> get(int count)
{
final List<DataModel> list = new ArrayList<>();
for (int i = 0; i < co... | 18.774194 | 55 | 0.563574 |
2b47326b35e0cac753e7792433c479223a436523 | 1,730 | package cn.enncy.scs.swing.component.panel;
import cn.enncy.scs.swing.constant.NiceColors;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.util.Objects;
/**
* //TODO
* <br/>Created in 14:07 2021/4/25
*
* @author: enncy
*/
public class StatisticsCard extends AdaptiveP... | 27.460317 | 129 | 0.656647 |
04bdeb2d4cd772ca814969976349e632c09aef3d | 2,915 | package com.osfglobal.hybris.emarsys.resolvers;
import com.osfglobal.hybris.emarsys.core.model.EmarsysPredictAvailabilityZoneModel;
import com.osfglobal.hybris.emarsys.utils.EmarsysFormatterUtils;
import com.osfglobal.hybris.emarsys.utils.EmarsysObjectUtils;
import com.osfglobal.hybris.emarsys.utils.EmarsysString... | 33.895349 | 98 | 0.679931 |
cceb2d2761fe4a1915a19925a1646251c90dc3f4 | 5,181 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.023952 | 90 | 0.618027 |
b3852d6e846568cad8e41f7211249cd0a02b9387 | 83 | package com.dummy.bookmyshow.enums;
public enum TheaterType {
IMAX, PVR, LOCAL
}
| 13.833333 | 35 | 0.759036 |
869a0528e07671421ba8f516dcce8fbca19ec338 | 8,434 | package org.apache.xmlgraphics.image.loader.impl;
import java.awt.color.ColorSpace;
import java.awt.color.ICC_Profile;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.util.Map;
import javax.imageio.stream.ImageInputStream;
import javax.xml.transform.Source;
... | 38.688073 | 205 | 0.509485 |
226034bbcc00559b78994d092ffede5fa1e44080 | 856 | package com.ikouz.algorithm.leetcode;
import java.util.List;
/**
* The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
* <p>
* Given an integer n, return all distinct solutions to the n-queens puzzle.
* <p>
* Each solution contains a distinct boa... | 23.777778 | 121 | 0.619159 |
060398da1ad1cb186a8e96812447f80452179121 | 3,051 | package springproject.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import springproject.dao.BookDAO;
import springproject.exeptions.BookNotFoundException;
import springproject.mod... | 24.214286 | 95 | 0.619469 |
8da8e6a5f67b4df2d0bdd54b7889155324564551 | 556 | package unluac.parse;
import java.util.Objects;
public class LUpvalue extends BObject {
public int instack;
public int idx;
public String name;
public LString bname;
public int kind;
public boolean equals(Object obj) {
if(obj instanceof LUpvalue) {
LUpvalue upvalue = (LUpva... | 20.592593 | 88 | 0.602518 |
17ef7a43f0d8f1fb6b68eae676af95cfd11d84bc | 211 | package com.nel.filmes.model;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class Filme {
private Long codigo;
private String titulo;
private String descricao;
}
| 14.066667 | 33 | 0.78673 |
30467ff63ce9a1934ea0f6049c75f01f23af50ec | 4,322 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | 32.742424 | 124 | 0.705923 |
b97a7eab24c45ad20dbbfbb69947d800c0b3e58d | 1,456 | package com.mobgen.halo.android.auth.login;
import android.support.annotation.NonNull;
import com.mobgen.halo.android.auth.authenticator.AccountManagerHelper;
import com.mobgen.halo.android.framework.toolbox.data.HaloResultV2;
import com.mobgen.halo.android.framework.toolbox.data.HaloStatus;
import com.mobgen.halo.an... | 34.666667 | 125 | 0.736951 |
c937aed558ab3d2d41b9de2176da4a90c43ec438 | 3,261 | // Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 34.691489 | 99 | 0.735051 |
7104fc3454fe3599bd50869dda77b6f1bedcfddc | 1,854 | package com.manulaiko.shinshinjiru.presenter;
import com.manulaiko.shinshinjiru.ShinshinjiruApplication;
import com.manulaiko.shinshinjiru.view.SceneManager;
import com.manulaiko.shinshinjiru.view.event.ShowLoadingLabelEvent;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.geometry.Point2D;
... | 25.054054 | 73 | 0.658037 |
6c94d343397f183ef36e6b796d1ece78defafe43 | 1,901 | package com.baeldung.hibernate.oneToMany.config;
import com.baeldung.hibernate.oneToMany.model.Cart;
import com.baeldung.hibernate.oneToMany.model.CartOIO;
import com.baeldung.hibernate.oneToMany.model.Item;
import com.baeldung.hibernate.oneToMany.model.ItemOIO;
import org.hibernate.SessionFactory;
import org.hibernat... | 36.557692 | 96 | 0.716465 |
ebc32c5d86324782cf4b37179982e6b03a90d2ed | 2,776 | package io.phoos.api;
import io.javalin.apibuilder.ApiBuilder;
import io.javalin.http.Context;
import org.jetbrains.annotations.NotNull;
import java.util.function.Function;
/**
* @author evanwht1@gmail.com
*/
public class JsonApiBuilder extends ApiBuilder {
/**** GET *****/
public static <T> void getJSON(@NotN... | 32.27907 | 124 | 0.694524 |
c8ea4cdb3ef5431191c317fb4f125de4c24f09e4 | 2,860 | package com.edu.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.edu.domain.dto.SysMenuDto;
import com.edu.domain.dto.user.UserDto;
import com.edu.domain.entity.SysMenu;
import com.edu.mapper.SysMenuMapper;
import com.e... | 41.449275 | 119 | 0.712587 |
1a933365b383c03673c38ceed001467bfdc6c20a | 4,373 | /*
* 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 ahorcadoclient;
import GUI.Espera;
import GUI.VistaJuego;
import java.io.BufferedReader;
import java.io.IOException;... | 21.974874 | 82 | 0.651727 |
25b5b8eb5ac67af0d6080bfdcbc20578bdd5ed1b | 315 | package vip.huhailong.foodmenu.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
/**
* @program: food-menu
* @description: 响应实体类
**/
@Data
@Builder
public class Rs {
private Boolean status;
private Integer code;
private String message;
private Object data;
}
| 16.578947 | 38 | 0.72381 |
39f83834c770d08716939af2ac65a5ef3198699c | 948 | package cn.offer2020.pbj.javabasis.java.basis1.string_4_5;
public class StringDemo {
public static void main(String[] args) {
String stra = "hello";
String strb = new String("hello");
String strc = strb;//引用传递
// == 是属于数值相等比较,在String类型中比较的是内存地址
System.out.println(stra==strb);//false
System.out.println(st... | 28.727273 | 68 | 0.690928 |
4a4a77dd64b5775be2cbdc1b00d17a568c02e2ef | 189 | /**
* Contains all the code needed to process and render chunks
* <p>There's a good chance this won't have a lot. All well</p>
*
* @author ddubois
*/
package com.continuum.nova.chunks; | 27 | 63 | 0.698413 |
535534b72a6b4ec49bad9a69e918067bca8ddf43 | 2,787 | package com.intuit.cg.backendtechassessment.dto;
import java.time.OffsetDateTime;
import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
i... | 26.542857 | 91 | 0.700036 |
dff46377c309d4aaa858def5f33dc8d93874e965 | 3,791 | package pl.kskowronski.security;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowi... | 36.104762 | 121 | 0.659984 |
2e24ac997a501990c594dafa61489e5256b6ec6a | 3,864 | /**********************************************************************************
* Copyright 2008-2009 Sakai Foundation
*
* Licensed under the Educational Community 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
... | 34.5 | 86 | 0.755435 |
ed2dd6c77064700d39caf0d314fab0823cca1193 | 666 | package Lev04;
/*
Гадание на долларовый счет
Вывести на экран квадрат из 10х10 букв S используя цикл while.
Буквы в каждой строке не разделять.
Пример вывода на экран:
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
SSSSSSSSSS
Требования:
1. Программа не должна счит... | 18.5 | 62 | 0.749249 |
a984a3aa5a5e2c5f20d17be4ed78402e136c1302 | 231 | package sirshadow.adventurebags.client.inventory.ender;
import net.minecraft.entity.player.EntityPlayer;
/**
* Created by sirshadow on 6/26/17.
*/
public interface IBagContainer {
void saveInventory(EntityPlayer player);
}
| 21 | 55 | 0.774892 |
473eda6e8e9bb2401b11442ef84b1da8bd182136 | 2,500 | package jp.android.test.recycleviewtest;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
im... | 30.120482 | 101 | 0.6668 |
a4ee3d7016b7c6fa131d1aa0de143108c9ed1e57 | 6,222 | /*
* Copyright 2018-2022 adorsys GmbH & Co KG
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. This progra... | 41.758389 | 169 | 0.743973 |
4911f914759929fff4b472e4eb14b87b3d16af5d | 3,478 | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.act.entity.engine;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem... | 22.584416 | 108 | 0.736918 |
8a4ae0acc99d2305052b12c088f893008f0afa0c | 221 | package com.epgpbot.epgpbot.schema;
//IMPORTANT: DO NOT RE-ORDER (stored in DB).
public enum PermissionType {
VIEW_EPGP,
MODIFY_EPGP,
MODIFY_PERMISSIONS,
IMPORT_EPGP,
ARMORY_SYNC,
AUDIT_EPGP,
DECAY_EPGP,
}
| 17 | 44 | 0.746606 |
6fa5b2c6b5816dadd0a98ea06e868c5dbd9c17a4 | 817 | package com.marckregio.providers.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by eCopy on 10/6/2017.
*/
public class SQLHelper extends SQLiteOpenHelper{
static String DATABASE = "Beehive.db";... | 25.53125 | 81 | 0.686659 |
0c3777741172e551cff8e224ace7f666df11f67f | 12,884 | /*
* 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 imrcp;
import imrcp.store.FileWrapper;
import imrcp.system.Scheduling;
import java.io.File;
import java.util.ArrayList;
import... | 28.887892 | 145 | 0.675722 |
713bd182e3cc97015af50e948f076ad57de3c0af | 2,437 | /*
* 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 ... | 42.754386 | 139 | 0.760771 |
b45780edcef367b254794939901bac159b3b1ecd | 2,604 | /*
* Copyright 2015-2021 Micro Focus or one of 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... | 24.111111 | 78 | 0.636329 |
e2f5b38d37e6c921d3c55d7fb30c33ccf97865f3 | 1,315 | package de.uni_stuttgart.informatik.sopra.sopraapp.feature.map.bottomsheet;
import android.content.Context;
import android.support.design.widget.BottomSheetBehavior;
import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
impo... | 31.309524 | 112 | 0.747529 |
9c5489b8a4012f1f7da2edba24f1d4caa089dc09 | 10,556 | package com.hedera.hashgraph.sdk;
import com.hedera.hashgraph.sdk.account.CryptoTransferTransaction;
import com.hederahashgraph.api.proto.java.Query;
import com.hederahashgraph.api.proto.java.QueryHeader;
import com.hederahashgraph.api.proto.java.Response;
import com.hederahashgraph.api.proto.java.ResponseCodeEnum;
im... | 34.953642 | 120 | 0.625047 |
217a693c40349abc17f34ecc949e2f2abc8785a9 | 3,017 | package com.dengjintian.maven;
import org.fusesource.jansi.Ansi;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* Before content are sent to ansi, we do some extra filtering here. <br />
* User: jintian, Date: 31/12/12
*/
public class FilterMavenOutputStream extend... | 37.246914 | 123 | 0.552204 |
0767951babd837f82e490398dcca883ea89c3b49 | 7,628 | package io.cresco.agent.controller.globalscheduler;
import io.cresco.agent.controller.core.ControllerEngine;
import io.cresco.library.app.gNode;
import io.cresco.library.app.gPayload;
import io.cresco.library.messaging.MsgEvent;
import io.cresco.library.plugin.PluginBuilder;
import io.cresco.library.utilities.CLogge... | 48.278481 | 178 | 0.480205 |
5ae33d798dcab79a481578c3daf987fb9f9b9df7 | 288 | package com.bloomhousemc.terrafabricraft.common.registry;
import com.bloomhousemc.terrafabricraft.common.config.ModuleConfig;
public final class TfcBiomes {
public static void init() {
//Not empty anymore ;))
if (ModuleConfig.getValue("world")) {
}
}
}
| 22.153846 | 67 | 0.6875 |
9e0a8ca5dd4b8b03f13998a379cb9eb16bb6a5fd | 6,174 | package fr.guddy.androidstarteralt.mvp.repoList;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import com.birbit.android.jobqueue.JobManager;
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter;
import com.novoda.merlin.MerlinsBeard;
import com.orh... | 33.372973 | 109 | 0.588921 |
5ae150fd65ae5608caaee45cd4b423e8aca8bed2 | 125 | package io.github.shirohoo.racing.app.domain;
@FunctionalInterface
public interface ForwardCondition {
boolean get();
}
| 17.857143 | 45 | 0.784 |
926b576e38b3d2d6bb8879e8e7774cc5a8e9650d | 4,487 | /*
* Copyright 2016-present Open Networking Foundation
*
* 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... | 38.681034 | 104 | 0.691108 |
26a90f3a975e9644ce63f9655136938a9e61686f | 741 | package com.atlassian.plugin.connect.modules.beans.builder;
import com.atlassian.plugin.connect.modules.beans.nested.VendorBean;
/**
* @since 1.0
*/
@SuppressWarnings("unchecked")
public class VendorBeanBuilder {
private String name;
private String url;
public VendorBeanBuilder() {
}
public V... | 20.583333 | 68 | 0.65587 |
aabfa6e6df57433afc8ecad015eee5da35964c21 | 639 | package com.menros.echoplus.services.mongodbService.repository;
import com.menros.echoplus.services.mongodbService.collection.DBProject;
import com.menros.echoplus.services.mongodbService.repositoryCustom.DBProjectRepositoryCustom;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.Mong... | 42.6 | 110 | 0.832551 |
55e31b62030b6027b24a279dd602f82fc19ab9f9 | 1,475 | package io.ebean.xtest.base;
import io.ebean.OrderBy;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class PropertyTest {
@Test
public void equals() throws Exception {
Assertions.assertEquals(prop("foo", true), prop("foo", true));
}
@Test
public void diff_basic() t... | 33.522727 | 102 | 0.669831 |
55cf93a5f39069f14b42fbea5d73be1231e4772d | 1,254 | package me.loveshare;
import lombok.extern.slf4j.Slf4j;
import me.loveshare.gateway.gateway.AccessFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.... | 36.882353 | 141 | 0.712121 |
74eea765dc3244f88613554839edebf4529bfb8f | 1,127 | package cn.ffcs.external.share.entity;
import java.io.Serializable;
import android.graphics.Bitmap;
/**
* <p>Title: 分享实体 </p>
* <p>Description:
*
* </p>
* <p>@author: Leo </p>
* <p>Copyright: Copyright (c) 2013 </p>
* <p>Company: FFCS Co., Ltd. </p>
* <p>Create Time: 2013-... | 29.657895 | 62 | 0.647737 |
f2e237dc11798954254c08e759332852826f413f | 444 | package be.degreyt.libra.rules;
import be.degreyt.libra.parsers.BankAccountNumber;
import be.degreyt.libra.time.Day;
import java.math.BigDecimal;
import java.util.Currency;
public interface BankTransactionData {
String transactionNumber();
Day executionDay();
Day currencyDay();
BigDecimal amount(... | 16.444444 | 50 | 0.72973 |
3716943a8e36afb99e08b357130084fbe104618b | 2,564 | package game_objects.territories;
/*
* csc413-tankgame-Belmeurrr
* Created by Daniel
* Created on 7/13/2019 2019 @ 9:52 PM
*/
import game_objects.Constants;
import game_objects.continents.Asia;
import java.awt.*;
import java.util.ArrayList;
public class Mongolia extends Territory {
@Override
publ... | 30.164706 | 87 | 0.640796 |
fff992923d6d4f69bf8ddc5c55e9f15597f4d960 | 1,509 | package com.bn.Sample7_6;
import javax.vecmath.Vector3f;
import com.bulletphysics.collision.shapes.CollisionShape;
import com.bulletphysics.dynamics.DiscreteDynamicsWorld;
import com.bulletphysics.dynamics.RigidBody;
import com.bulletphysics.dynamics.RigidBodyConstructionInfo;
import com.bulletphysics.linearmath.Defau... | 32.106383 | 110 | 0.770046 |
4381308e8c3474a108dc44d6c0ce2da4d3b52775 | 7,516 | package com.fasterxml.jackson.databind.jsontype;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonP... | 31.847458 | 120 | 0.581293 |
365212d9b265844c66bb3873c8ba9e92f3cbbbe9 | 815 | /*
* Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
*/
package play.db;
import javax.inject.Inject;
import javax.inject.Singleton;
import javax.sql.DataSource;
import play.Configuration;
/**
* Default delegating implementation of the connection pool API.
*/
@Singleton
public class DefaultConnect... | 23.970588 | 97 | 0.733742 |
4652420323473ae3481224fe8a67722492c02a81 | 4,710 | package alien4cloud.paas.wf.util;
import java.util.Map;
import alien4cloud.model.components.Interface;
import alien4cloud.paas.model.PaaSNodeTemplate;
import alien4cloud.paas.wf.AbstractStep;
import alien4cloud.paas.wf.NodeActivityStep;
import alien4cloud.paas.wf.SetStateActivity;
import alien4cloud.paas.wf.Workflow;... | 45.288462 | 154 | 0.634395 |
67bec4652b7ca0db32a08ef010e41b878a5bb434 | 1,021 | package ru.stqa.pft.test.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.Wait;
import org.openqa.s... | 27.594595 | 74 | 0.680705 |
3852ec38a36785d85a9a371f968fa864e8b53b17 | 1,118 | /*
* configuration
*
* Copyright (c) 2021 Synopsys, Inc.
*
* Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
*/
package com.synopsys.integration.configuration.config.resolution;
import org.jetbrains.annotations.NotNull;
i... | 24.844444 | 142 | 0.669946 |
9c668a9f7efcea6402db381abedd6126f8926b25 | 11,816 | package com.github.groupon.monsoon.tcp;
import com.groupon.lex.metrics.GroupName;
import com.groupon.lex.metrics.MetricGroup;
import com.groupon.lex.metrics.MetricName;
import com.groupon.lex.metrics.MetricValue;
import com.groupon.lex.metrics.SimpleGroupPath;
import com.groupon.lex.metrics.Tags;
import java.io.IOExce... | 45.621622 | 162 | 0.663676 |
072cdd63f767cbdfdedd04019fbbe7b2c6c61f2c | 130 | package net.qldarch.hibernate;
import org.hibernate.Session;
public interface HVoidWork {
public void run(Session session);
}
| 16.25 | 35 | 0.784615 |
35a0cd7a85a41be6ec03e81bc71d659b365d89ed | 2,085 | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazon.dataprepper.plugins.source.compression;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import software.amazon.awssdk.core.ResponseInputStream;
import software.amazon.awssdk.services.s3.mo... | 35.948276 | 101 | 0.772182 |
3646426df5cc983571c3203636968220e734a91a | 1,657 | package org.infinispan.server.functional;
import static org.infinispan.commons.test.Eventually.eventually;
import static org.infinispan.server.functional.ShutdownRestIT.isServerShutdown;
import static org.infinispan.server.test.core.Common.sync;
import java.util.concurrent.CompletionStage;
import org.infinispan.clie... | 35.255319 | 98 | 0.727218 |
5a7b82981f3b39ba54f752e0564756dcf9109255 | 1,004 | package com.test.assignment.model;
import javax.persistence.*;
@Entity
@Table(name = "car")
public class Car {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "model")
private String model;
@Column(name = "license_plate")
private String licensePla... | 18.943396 | 55 | 0.629482 |
f4ee94e86496941fabb97aa19699abbabb10b70f | 6,393 | package eco.ui;
import eco.game.Main;
import eco.game.SaveTask;
import eco.game.ThreadManager;
import eco.game.World;
import eco.render.Camera;
import eco.render.Render;
import eco.render.RenderUtil;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
/**
* A collection of... | 32.125628 | 91 | 0.461286 |
89cea05851ea332dd8d72541ba0a66c8299984cb | 395 | package com.example.exception;
public class AppBusinessException extends RuntimeException {
private static final long serialVersionUID = 5686002958837120448L;
public AppBusinessException(String errorMessage) {
super(errorMessage);
}
public AppBusinessException(String errorMessage, String mes... | 23.235294 | 70 | 0.739241 |
5ab05aa04d77df919f971e8da2237778990ae143 | 778 | package com.paulek.core.common;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class PermissionsUtil {
public static boolean checkPermission(String string, Player player) {
return player.hasPermission("cloudcore." + string);
}
public static boolean checkCommandP... | 31.12 | 94 | 0.74036 |
da10d65e0a0f778d3f58fff2b69347b60acc0ea3 | 518 | /**
*
*/
package com.thinkgem.jeesite.modules.wlpt.dao.base;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import java.util.List;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.wlpt.entity.base.BscMessage;
/**
* 消息通知DAO接口
* @author fjc
* @vers... | 20.72 | 69 | 0.72973 |
9956f655e664cae7422c13a6fcdf35ef52ad05fe | 4,932 | package ca.uwaterloo.jrefactoring.node;
import ca.uwaterloo.jrefactoring.template.RFTemplate;
import ca.uwaterloo.jrefactoring.utility.FileLogger;
import ca.uwaterloo.jrefactoring.visitor.RFVisitor;
import gr.uom.java.ast.decomposition.StatementType;
import org.eclipse.jdt.core.dom.Statement;
import org.slf4j.Logger;
... | 28.022727 | 103 | 0.615166 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.