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 |
|---|---|---|---|---|---|
c753ef27d5f3afe82064151441c6a87eb15583c2 | 332 | package com.opuscapita.peppol.commons.queue.consume;
import com.opuscapita.peppol.commons.container.ContainerMessage;
import org.jetbrains.annotations.NotNull;
public interface ContainerMessageProcessor {
void process(@NotNull ContainerMessage cm);
void setContainerMessageConsumer(ContainerMessageConsumer c... | 27.666667 | 72 | 0.834337 |
07217a5d104070bb81ee6d97fbf1852e93740b92 | 5,726 | package com.jskillcloud.authsvc.it.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jskillcloud.authsvc.dto.*;
import com.jskillcloud.authsvc.mapper.UserMapper;
import com.jskillcloud.authsvc.model.RoleName;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.ju... | 36.012579 | 122 | 0.670276 |
d9941cd09be48ef4fa52297dae863c9d9892697c | 145 | package org.delusion.elgame.utils;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public interface SimpleRenderable {
void render();
}
| 16.111111 | 49 | 0.772414 |
c4b0f80f4f891d42dcfab19fddf5180e410c6fa3 | 306 | package pattern.structural.composite;
/**
* Componente principal
*/
public class Window extends Component {
private String name;
public Window(String name) {
this.name = name;
}
@Override
public void draw() {
System.out.println(name);
super.draw();
}
}
| 16.105263 | 39 | 0.611111 |
feca27894aa011ae621d29721872e566d56095db | 157 | package com.wakaleo.myflix.movies.model;
/**
* Created by john on 11/06/2015.
*/
public enum Genre {
Drama, Comedy, Action, ScienceFiction, Fantasy
}
| 17.444444 | 50 | 0.700637 |
cfcc2c35c5fb7b7bf4741265de19ad147f0d913b | 190 | package com.databasir.core.domain.group.event;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class GroupDeleted {
private Integer groupId;
}
| 14.615385 | 46 | 0.794737 |
1466e063230be5489a775aadb116c348d8c397d5 | 1,627 | package com.restfiddle.util.apicreator;
import com.restfiddle.controller.rest.ConversationController;
import com.restfiddle.controller.rest.NodeController;
import com.restfiddle.dto.NodeDTO;
import com.restfiddle.dto.RfRequestDTO;
import com.restfiddle.dto.ConversationDTO;
import com.restfiddle.entity.BaseNode;
import... | 38.738095 | 141 | 0.778734 |
ead8d9e1a0faec081e1c09508c521f6df584e916 | 829 | /*
* ResponseType.java
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar.
* See http://sam.zoy.org... | 23.685714 | 77 | 0.693607 |
6ef03dd97e2f44dd8728133e8fbf887dec6a9773 | 1,928 | /*
* Copyright (C) 2014 Indeed Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 33.824561 | 109 | 0.727178 |
0a2641ca082b3fd58cf552b694d12ebb6ef6dbf0 | 504 |
public class TokenCatalogBean {
private int termId;
private long startOffset;
private long endOffset;
public int getTermId() {
return termId;
}
public void setTermId(int termId) {
this.termId = termId;
}
public long getStartOffset() {
return startOffset;
}
public void setStartOffset(long startO... | 15.272727 | 47 | 0.712302 |
b27347b7d2ae170a08889d37ff9ac0312a2ed41f | 989 | package net.lizistired.animationoverhaul.mixin;
import net.lizistired.animationoverhaul.AnimationOverhaulMain;
import gg.moonflower.pollen.pinwheel.api.client.geometry.GeometryModel;
import gg.moonflower.pollen.pinwheel.api.client.geometry.GeometryModelManager;
import org.spongepowered.asm.mixin.Final;
import org.spon... | 39.56 | 93 | 0.812942 |
f83bd7b721eccc61659c62c15374008d7d30bff3 | 448 | package com.thinkgem.jeesite.modules.sign.dao;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sign.entity.Client;
import org.springframework.stereotype.Component;
/**
* DAO 接口类
* Created by bb on 2017... | 23.578947 | 69 | 0.776786 |
79a6ae5868542280055fea9057d10c2b92734d0d | 988 | package LeetCodePractice;
import java.util.Stack;
public class _143ReorderList {
public static class ListNode {
int val;
ListNode next;
ListNode(int x) { val = x; }
}
public static void main(String[] args) {
ListNode ln=new ListNode(1);
ln.next=new ListNode(2);
ln.next.next=new ListNode(3);
ln.next.... | 17.034483 | 46 | 0.635628 |
a4e4385f7ec0c888116c9b5a62b2f2a3da004f23 | 4,708 | package nl.weeaboo.vn.impl.sound;
import java.io.IOException;
import java.util.Collection;
import javax.annotation.Nullable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.ImmutableSet;
import nl.weeaboo.filesystem.FilePath;
import nl.weeaboo.prefsstore.IPreferenceStore;
... | 30.179487 | 109 | 0.695624 |
e39df1620ea7504667cf17b1ff1ec4e3893c8bde | 5,413 | package com.sourcey.materiallogindemo;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;
import com.... | 40.096296 | 105 | 0.55533 |
322f4448238e8e68b63670218fbf3839a6b1113c | 1,799 | package com.hrym.wechat.mapper;
import com.hrym.wechat.entity.MeditationRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
/**
* Cr... | 29.016129 | 157 | 0.691495 |
0326ed15bd83272bd0f7a45ccbbd204e65855b76 | 1,384 | package org.thoughtcrime.securesms.glide.cache;
import androidx.annotation.NonNull;
import org.thoughtcrime.securesms.logging.Log;
import com.bumptech.glide.load.EncodeStrategy;
import com.bumptech.glide.load.Options;
import com.bumptech.glide.load.ResourceEncoder;
import com.bumptech.glide.load.engine.Resource;
imp... | 30.086957 | 113 | 0.775289 |
f387013b4351fbcb93f4ef8ee51c36069af34cfa | 996 | package me.hvkcoder.java_basic.juc.aqs;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* CyclicBarrier 指定线程数执行完成,再执行后续操作,它的计数器可通过 reset() 方法重置
*
... | 25.538462 | 89 | 0.693775 |
8ec73a169008136736d713a2565f86108d848a22 | 6,632 | /*
* Copyright © 2015-2019 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 37.468927 | 117 | 0.691345 |
4cd7573d25e380d686b6b4b906614e8959a30255 | 4,074 | package eu.spitfire_project.ld4s.resource.actuator_decision;
import java.io.Serializable;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import eu.spitfire_project.ld4s.lod_cloud.Context;
import eu.spitfire_project.ld4s.resource.LD4SDataResource;
import eu.spitfire_project.ld4s... | 23.549133 | 79 | 0.746441 |
52aa22ad4beb8cee6486c97e7c105ef62d382af9 | 2,987 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.... | 29.574257 | 130 | 0.677938 |
38ecc8c41fdfd7b699c7edd898e2aeab605e001b | 2,954 | package libs;
import java.util.Random;
public final class RandomNumGen {
/** Generate a random integers in the range 1 to 4. */
public static int d4(int numberOfDice){
Random randomGenerator = new Random();
int randomInt = 0;
int calculatedInt = 0;
for (int i = 0; i < numberOf... | 23.444444 | 58 | 0.555518 |
214901232fe3276360e176d98b29fc36d957fcdd | 110 |
package com.pigeon.sundermusic.queue;
public interface Queueable {
public long getIdentifier();
}
| 12.222222 | 37 | 0.718182 |
0459f07fd98454e2a83abfcaf7ca6a407efc82d3 | 3,779 | /**
*/
package aadl2.impl;
import aadl2.Aadl2Package;
import aadl2.DataClassifier;
import aadl2.EventDataSource;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- be... | 24.070064 | 148 | 0.679545 |
4d2c9a7be640c04778f3843ea02f6188b22c023d | 2,967 | package com.xsw.neo.service.controller;
import com.google.common.collect.Lists;
import com.xsw.neo.service.common.annotation.ExportAnnotation;
import com.xsw.neo.service.common.annotation.I18nAnnotation;
import com.xsw.neo.service.common.annotation.LogAnnotation;
import com.xsw.neo.service.common.result.ResultBody;
im... | 34.103448 | 117 | 0.674419 |
d8ca87127503ae3a82ff29e4f55e2b81e30aca28 | 1,823 | package net.blay09.mods.cookingforblockheads.client.model;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.model.Model;
import net.minecraft.client.renderer.model.ModelRenderer;
public ... | 37.979167 | 165 | 0.642896 |
653921be46f675932b3390fef9947b1091bb3518 | 7,294 | package io.github.batizhao.service.iml;
import cn.hutool.core.io.IoUtil;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com... | 33.004525 | 155 | 0.665204 |
c1a4e601ee0a38d3fff14eee687f3403973f8c74 | 157 | package redradishes.encoder;
public interface EncoderBase<E extends EncoderBase<E>> {
E prepend(ConstExpr c);
E append(ConstExpr c);
E compact();
}
| 15.7 | 56 | 0.726115 |
265145b6ac47fef3e5723f1dde49066742390834 | 419 | package com.xinyu.hashMapDemo;
import java.util.HashMap;
import java.util.Map;
/**
* @Description
* @Author xinyu4
* @Date 2021/4/6/0006 15:35
*/
public class Demo {
public static void main(String[] args) {
Map<PObject, String> hashMap = new HashMap<>();
PObject a = new PObject("A");
PObject b = new PObje... | 16.115385 | 49 | 0.649165 |
3c7be929702c87489640693a521cf04719263268 | 3,703 | package com.html5parser.classes.token;
import java.util.ArrayList;
import java.util.List;
import com.html5parser.classes.Token;
public class TagToken extends Token {
boolean flagSelfClosingTag = false;
boolean flagAcknowledgeSelfClosingTag = false;
List<Attribute> attributes = new ArrayList<TagToken.Attribute>(... | 22.442424 | 76 | 0.745612 |
c4e74d5e31551dbacecce18943eaf640c54c135c | 1,777 | /*
* Copyright 2014 - 2017 Cognizant Technology Solutions
*
* 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 ap... | 27.338462 | 75 | 0.661227 |
69fc92db52bd1995eb90236f2d3aa31cc3d6c0f9 | 1,424 | import java.util.*;
public class Q_1 {
public static void main(String args[]) {
System.out.println("Please enter 3 numbers to find greatest among them");
Scanner sc = new Scanner(System.in);
System.out.print("Enter first number : ");
int a = sc.nextInt();
System.out.print("Ente... | 23.344262 | 79 | 0.410815 |
74c162b77bc4aa6492b115e5140bafbed54150c2 | 1,877 |
package src;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.SQLException;
/*
* https://github.com/xerial/sqlite-jdbc/blob/master/Usage.md
*
* DB tables on a per-ticker bases
* historical data for a ticker
* date,
*... | 22.890244 | 75 | 0.536494 |
a6f38113ff0f0c2040bef91fcbfbe2afdd031202 | 662 | package ru.job4j.search;
import java.util.LinkedList;
/**
*
* Class Класс очереди задач с приоритетом
* @athor Buryachenko
* @since 09.02.19
* @version 1
*/
public class PriorityQueue {
private LinkedList<Task> tasks = new LinkedList<>();
public void put(Task task) {
var size = tasks.size();
... | 21.354839 | 67 | 0.522659 |
185eff03d74cab0c4e57af16e5ef25af973c87cf | 1,984 | package io.hashimati.repository;
import io.hashimati.domains.Fruit;
import io.hashimati.microstream.Data;
import io.micronaut.microstream.RootProvider;
import io.micronaut.microstream.annotations.StoreParams;
import io.micronaut.microstream.annotations.StoreReturn;
import jakarta.inject.Inject;
import jakarta.inject.S... | 25.113924 | 76 | 0.66381 |
5635885d128fef3c6dd04582fb7adf59b239c72d | 1,161 | package phone.validation.server.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.springframework.lang.Nullable;
@Entity
@Table(name = "Customer")
pub... | 19.677966 | 112 | 0.6882 |
64bade4d5f798ddb07c461658e077bda1413853c | 1,396 | /*
Copyright 2017 Stratumn SAS. 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 applicable law or agreed to... | 19.942857 | 72 | 0.737106 |
3bcf167e698a6b3aa9b48f59cc41e667b615f093 | 306 | package com.ps.services;
import com.ps.base.ReviewGrade;
import com.ps.ents.Review;
import com.ps.ents.User;
import java.util.Set;
public interface ReviewService extends AbstractService<Review>{
Review createReview(ReviewGrade grade, String details);
Set<Review> findAllByUser(User user);
}
| 19.125 | 64 | 0.771242 |
58a9160e7e72ba9e53b6e91010340659ea4070e7 | 2,864 | package com.onarandombox.multiverseinventories;
import com.dumptruckman.minecraft.util.Logging;
import com.onarandombox.multiverseinventories.profile.ProfileType;
import com.onarandombox.multiverseinventories.profile.ProfileTypes;
import com.onarandombox.multiverseinventories.profile.container.ProfileContainer;
... | 48.542373 | 121 | 0.69588 |
54aceabb84986fb0e6cc182c8290af786614262d | 6,956 | package com.pcy.movierecommendation.controller;
import com.github.pagehelper.PageInfo;
import com.pcy.movierecommendation.core.constants.ErrorMessages;
import com.pcy.movierecommendation.core.model.ApiResponse;
import com.pcy.movierecommendation.entity.movieDetail.MovieDetail;
import com.pcy.movierecommendation.entity... | 41.652695 | 182 | 0.679988 |
53fddc4f60a66d34b3d0fc1e40cc4b410afe46e6 | 6,572 | package seedu.address.model.lesson;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.VALID_LESSON_TAG_EASY;
import static seedu.a... | 38.887574 | 114 | 0.750609 |
2f54adef3d3339b1a4356408d8be394e303483b8 | 5,972 | /*
* Copyright (c) 2010-2017, sikuli.org, sikulix.com - MIT license
*/
package org.sikuli.syntaxhighlight.style;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
i... | 24.780083 | 111 | 0.655894 |
6af5932c36000e4a2be5e58d137704b9e5a3d460 | 670 | package com.shekhargulati.java8_tutorial.ch09;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executors;
public class CompletableFutureExample {
public static void main(String[] args) {
CompletableFuture.completedFuture("hello");
CompletableFutur... | 39.411765 | 111 | 0.732836 |
f4c4e11842cb64ceb47296458a0f122de15da2f4 | 8,201 | /*******************************************************************************
* Copyright (c) 2015-2016, WSO2.Telco Inc. (http://www.wso2telco.com) All Rights Reserved.
*
* WSO2.Telco Inc. licences this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 34.75 | 108 | 0.730277 |
90598f8ea8524bdcd1f37942a67b70b04fbf7fa9 | 1,081 | package mybase;
import myLinkedList.Iterator;
import myLinkedList.LinkedList;
/**
* Created by thoma on 11-Mar-17.
*/
public class MoveBehavior implements Movable {
private Entity entity;
private Game game;
public MoveBehavior(Entity entity, Game game) {
this.entity = entity;
this.game ... | 27.025 | 79 | 0.635523 |
2b9b6fda3e9d0ef36cdeeeefecbda1e879947755 | 786 | package io.fastjson.bnsf.holders.basic;
import io.fastjson.bnsf.WireValueType;
import io.fastjson.bnsf.holders.WireValueHolder;
/**
* Created by Richard on 9/25/14.
*/
public class UintHolder extends Number implements WireValueHolder {
private char value;
public char getValue() {
return value;
... | 17.086957 | 68 | 0.618321 |
9a0a7835f9ee15c33828e1fb4689fedd3b4cd881 | 660 | package slide1Ex03;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.swing.JLabel;
public class Song {
private String title;
private String artist;
public void setTitle(String title) {
this.title = title;
}
public void setArtist(String artist) {
this.artist = ... | 20.625 | 65 | 0.631818 |
5f02c629c358048b17e56e9879c866cefe311301 | 320 | package security.ex1.screen.customerdetail;
import io.jmix.ui.screen.*;
import security.ex1.entity.CustomerDetail;
@UiController("sample_CustomerDetail.edit")
@UiDescriptor("customer-detail-edit.xml")
@EditedEntityContainer("customerDetailDc")
public class CustomerDetailEdit extends StandardEditor<CustomerDetail> {
} | 32 | 72 | 0.83125 |
c2d9f85d68fc06dee882588437fb5b821eb83496 | 455 | package betterquesting.api2.utils;
import net.minecraft.util.Tuple;
// Purely so I don't have to do casting every damn time I want to use a Tuple
public class Tuple2<T, K> extends Tuple
{
public Tuple2(T first, K second)
{
super(first, second);
}
@Override
public T getFirst()
{
... | 18.2 | 77 | 0.602198 |
b91b20ce021c9beb81e432a7ff4198f7ebd32f1b | 3,376 | /*
* Copyright 2018 iserge.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 37.098901 | 98 | 0.703199 |
22626d64cce606b687af33a6ffe8980190c0aa1e | 1,402 | package com.miu360.taxi_check.ui;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.miu360.inspect.FaZhiBanQueayActivity;
import com.miu360.inspect.R;
import com.miu360.inspect.ZhiFaJianChaJiLutableActivity;
import com.miu360.legworkwrit.mvp.data.CacheManager;
import... | 27.490196 | 76 | 0.789586 |
865f46627f25631aedd4496b9e305c30dd9cb3d9 | 3,719 | package cn.xfyun.service.lfasr;
import cn.xfyun.model.response.lfasr.LfasrMessage;
import cn.xfyun.service.lfasr.task.Task;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnor... | 39.989247 | 122 | 0.743748 |
af67f9908f51a7d679318c4ed3479621c26fea6a | 4,676 | /*
* 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 ... | 32.699301 | 109 | 0.6713 |
6f7698f39e001978140dd868f7ebf5ee598a8135 | 729 | package ru.job4j.lock;
/**
* testing of the class UserLock.
*/
public class UserLockTest {
/**
* method main.
* @param arRgs - String[]
* @throws InterruptedException - exception
*/
public static void main(String[] arRgs) throws InterruptedException {
UserLock userLock = new User... | 21.441176 | 73 | 0.604938 |
58ae948ad08be1563fbc2ddf4521d02d25d60442 | 261 | package ru.job4j.auto.repository;
import org.springframework.stereotype.Repository;
import ru.job4j.auto.model.Body;
@Repository
public class BodyRepository extends BaseEntityRepository<Body> {
public BodyRepository() {
super(Body.class);
}
}
| 21.75 | 64 | 0.758621 |
22bbeacfe300c208d77659e148c418f147162ee7 | 1,528 | package com.raizlabs.android.dbflow.config;
import com.raizlabs.android.dbflow.converter.BigDecimalConverter;
import com.raizlabs.android.dbflow.converter.BooleanConverter;
import com.raizlabs.android.dbflow.converter.CalendarConverter;
import com.raizlabs.android.dbflow.converter.CharConverter;
import com.raizlabs.an... | 43.657143 | 73 | 0.808246 |
b3decade223488aebfa211c2808aa3c26a006020 | 1,992 | package ch.fhnw.wodss.tippspiel.builder;
import ch.fhnw.wodss.tippspiel.domain.Role;
import ch.fhnw.wodss.tippspiel.dto.BetDTO;
import ch.fhnw.wodss.tippspiel.dto.BetGroupDTO;
import ch.fhnw.wodss.tippspiel.dto.UserDTO;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;... | 24.592593 | 65 | 0.643072 |
d46683046b17a36275b91d638089383cd3b8de63 | 3,789 | /**
* Copyright 2008-2010 Digital Enterprise Research Institute (DERI)
*
* 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
*
* Unl... | 45.650602 | 114 | 0.731328 |
31a38b4b87a402e0e23903cc15ec75e0213733fd | 23,916 | /*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.gluu.oxauth.session.ws.rs;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import org.apache.commons.lang.StringUtils;
import org.g... | 46.529183 | 232 | 0.677454 |
56908ec41b06ad2f53e3111fa58692ba06c08b5f | 930 | package net.viralpatel.jsp.custom.taglib;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
public class SubstrTagHandler extends TagSupport {
private String input;
private int start;
private int end;
@Override
pu... | 19.375 | 50 | 0.709677 |
9d150691cc1926fd6320ed6120f17aa7fc1488a6 | 6,932 | package controllers;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import displayScholarship.*;
import objects.*;
import myJStuff.MyController;
public class S... | 28.644628 | 114 | 0.75202 |
886fd5f771f282bc7df4dc0830f5742392bb235f | 980 | package com.umutburdur.urlshortener.core;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import org.springframework.http.HttpStatus;
@Getter
@Setter
public class UrlShortenerResponseHolder<T> {
@JsonInclude(JsonInclude.Include.NON_NULL)
private T responseData... | 28 | 78 | 0.728571 |
48dba380ef314e35a59c58aa343b6bfa4c4f2c5e | 616 | package io.simplesource.saga.model.specs;
import io.simplesource.saga.model.serdes.SagaClientSerdes;
import lombok.Value;
/**
* Represents the details required to create a saga client instance
*
* @param <A> a representation of an action command that is shared across all actions in the saga. This is typically a ge... | 34.222222 | 210 | 0.751623 |
8834cbcb22745a388ebe886ebcddae032140128a | 2,458 | package io.github.cweijan.mock.jupiter.inject;
import io.github.cweijan.mock.jupiter.MockInstanceContext;
import io.github.cweijan.mock.jupiter.environment.BootEnvironmentReader;
import org.springframework.beans.TypeConverter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.... | 42.37931 | 124 | 0.780309 |
89443ea7d487a84b4e71e22138f2c87f7d8cfdaf | 913 | package com.cwjcsu.projecteuler.p1_50;
import java.util.ArrayList;
public class Problem23 {
public static boolean isAbundant(int n) {
int sum = 0;
for (int i = 1; i < n; i++) {
if (n % i == 0) {
sum += i;
}
}
if (sum > n) {
return true;
}
return false;
}
public static void main(String[... | 17.557692 | 47 | 0.557503 |
a81b39b06ed936198959b87340b0f972ff5e4761 | 409 | // automatically generated by the FlatBuffers compiler, do not modify
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
public class TableAT {
private MyGame.OtherNameSpace.TableBT b;
public MyGame.OtherNameSpace.TableBT getB() { return b; }
public void setB(MyGame.Ot... | 19.47619 | 69 | 0.711491 |
1c5a159175f5a640680b4e5d3b7e562dcd66ad21 | 2,500 | /**
* 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... | 32.467532 | 87 | 0.666 |
11ef08ca270219edc9dcecf0f44a675523decd5e | 2,882 | package LeetCode;
/*
给定一个经过编码的字符串,返回它解码后的字符串。
编码规则为: k[encoded_string],表示其中方括号内部的 encoded_string 正好重复 k 次。注意 k 保证为正整数。
你可以认为输入字符串总是有效的;输入字符串中没有额外的空格,且输入的方括号总是符合格式要求的。
此外,你可以认为原始数据不包含数字,所有的数字只表示重复的次数 k ,例如不会出现像 3a 或 2[4] 的输入。
示例:
s = "3[a]2[bc]", 返回 "aaabcbc".
s = "3[a2[c]]", 返回 "accaccacc".
s = "2[ab... | 33.126437 | 73 | 0.482651 |
5e8f8ce349984adc62d07520b7fc7e9ecd14f4c2 | 7,262 | package jhaturanga.model.match.online;
import java.util.Optional;
import java.util.Set;
import org.eclipse.paho.client.mqttv3.MqttException;
import jhaturanga.model.board.Board;
import jhaturanga.model.board.BoardPosition;
import jhaturanga.model.game.Game;
import jhaturanga.model.game.type.GameType;
import jhaturan... | 26.896296 | 116 | 0.655467 |
0197453d21e8cc0021d998b460a8d617dfbd6dba | 230 | package com.nazmul.ftp.common.exception;
public class InvalidArgException extends DatagramException {
private static final long serialVersionUID = 1L;
public InvalidArgException(String message) {
super(message);
}
}
| 19.166667 | 60 | 0.773913 |
b7142b42369b28a7561f06646dd4ec0570e2b540 | 2,975 | package userinterface;
import java.util.List;
import java.util.Arrays;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.XYChart;
import javafx.scene.chart.XYChart.Series;
import algorithm.Measurement;
import algorithm.ToolMeasure;
@SuppressWarnings("unused")
public class Coordinatesystem {
// @Supr... | 23.242188 | 102 | 0.588908 |
518dd5b9f4177fdf6619f2fbaf59c2090744f758 | 348 | package mage.interfaces.plugin;
import mage.interfaces.PluginException;
import net.xeoh.plugins.base.Plugin;
/**
* Interface for counter plugins
*
* @version 0.1 14.112010
* @author nantuko
*/
public interface CounterPlugin extends Plugin {
void addGamePlayed() throws PluginException;
int getGamePlayed(... | 21.75 | 48 | 0.758621 |
f7eb9b62c48c0e55c642279800c68a9f481cc95d | 883 | package de.hpi.datastreams.messages;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import de.hpi.datastreams.serialization.JSONSerdeCompatible;
import lombok.Getter;
import lombok.Setter;
import java.util.HashMap;
import java.util.Map;
public class Labeled... | 25.228571 | 120 | 0.713477 |
c8f01642b6aa8cfd1467f9f0642ae5594a341e43 | 315 | package pl.dicedev.kakebo.security.exceptions;
import static pl.dicedev.kakebo.security.exceptions.ExceptionMessages.INCORRECT_USER_OR_PASSWORD;
public class BadKakeboCredentialsException extends RuntimeException {
public BadKakeboCredentialsException() {
super(INCORRECT_USER_OR_PASSWORD);
}
}
| 26.25 | 97 | 0.815873 |
1c6946d328d065eeba7b179aee1d602bc3ff044b | 2,878 | package org.jesperancinha.std.flash19.transactional.services;
import org.jesperancinha.std.flash19.transactional.converters.AlbumConverter;
import org.jesperancinha.std.flash19.transactional.domain.Album;
import org.jesperancinha.std.flash19.transactional.dto.AlbumDto;
import org.jesperancinha.std.flash19.transactiona... | 30.294737 | 111 | 0.694927 |
6c1ac98d2b5f0636a4b4571aa38ba62fb54f5d86 | 410 | package org.researchsuite.omhclient.Exception;
import org.json.JSONObject;
/**
* Created by jameskizer on 2/5/17.
*/
public class OMHClientMalformedResponse extends OMHClientException {
private String responseBody;
public OMHClientMalformedResponse(String responseBody) {
this.responseBody = respon... | 20.5 | 68 | 0.729268 |
760f3efefa76cd1f6beee9b3adc9d389c3a13adf | 10,852 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.irobot.home.model;
import android.os.Parcel;
import android.os.Parcelable;
// Referenced classes of package com.irobot.home.model:
// y
pu... | 27.197995 | 98 | 0.464707 |
9f2158e26fee45a0ad632736554d42946a92adf9 | 10,965 | package org.jivesoftware.spark.ui.login;
import org.jivesoftware.resource.Default;
import org.jivesoftware.resource.Res;
import org.jivesoftware.spark.util.ModelUtil;
import org.jivesoftware.spark.util.ResourceUtils;
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
import org.jivesoftware.sparkimpl.s... | 34.699367 | 122 | 0.578842 |
bd7e0ad27a13686ead22f210e136741cc6b4c666 | 6,215 | package com.samirkhan.apps.citymenu;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import androi... | 35.112994 | 121 | 0.651006 |
e5154a43c3c7211f1094aee4daca315a801c9e3a | 448 | package net.dblsaiko.qcommon.cfg.keys;
import net.dblsaiko.qcommon.cfg.core.api.ConfigApi;
import net.dblsaiko.qcommon.cfg.keys.binding.BindManager;
import net.fabricmc.api.ModInitializer;
public class Main implements ModInitializer {
@Override
public void onInitialize() {
ConfigApi.Mutable api = Con... | 26.352941 | 59 | 0.747768 |
c20b638fadc95daea754066555b4c37ee15312cf | 3,933 | /*-------------------------------------------------------------------------+
| |
| Copyright 2005-2011 The ConQAT Project |
| |
| Licensed u... | 44.191011 | 180 | 0.640224 |
76960bbacda39b09f320d8d868062c124ffaecde | 14,323 | /*
* Copyright 2019 Arcus 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 law or agreed to ... | 47.270627 | 169 | 0.736927 |
95238f4db10da547b5e5ccd5590bb62eab298c39 | 8,401 | package com.syncano.android.test.modules.collections;
import android.test.AndroidTestCase;
import com.syncano.android.lib.Syncano;
import com.syncano.android.lib.modules.Response;
import com.syncano.android.lib.modules.apikeys.ParamsApiKeyDelete;
import com.syncano.android.lib.modules.apikeys.ParamsApiKeyNew;
import ... | 60.007143 | 167 | 0.790501 |
b179fe04f612e00d1444b5e4852069801145aca4 | 3,083 | package com.akshatjain.codepath.tweeter.data;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
/**
* Created by akshatjain on 8/4/16.
*/
@Parcel
public class Tweet{
@SerializedName("id")
public long id;
@SerializedName("created_at")
public String created_at;
@Se... | 24.664 | 174 | 0.598119 |
8fb3b4b1166452ea4d4aa08577e9037c39688e92 | 2,392 | package com.example.robot;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.ClipboardManager;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.A... | 26.876404 | 93 | 0.736622 |
b7dd24460caa42ed1271a366d432bc3be2f60893 | 816 | package com.mps.deepviolet.api.samples;
import java.net.URL;
import com.mps.deepviolet.api.DVFactory;
import com.mps.deepviolet.api.IDVEng;
import com.mps.deepviolet.api.IDVSession;
import com.mps.deepviolet.api.IDVX509Certificate;
public class PrintRawX509Certificate {
public PrintRawX509Certificate() throws Exce... | 24.727273 | 56 | 0.747549 |
70034b6984a31403917d4e8b60ee8162e1bcc1ea | 279 | package application.entities;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Person {
private int id;
private String firstName;
private String lastName;
}
| 15.5 | 34 | 0.759857 |
872324e98d0ed49b711d6a705c76bf505771b610 | 1,737 | package com.mishinyura.university.services.impl;
import com.mishinyura.university.dao.GroupDAO;
import com.mishinyura.university.domain.Group;
import com.mishinyura.university.services.GroupService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import ... | 21.182927 | 64 | 0.6327 |
35348897547abff32733b1e4a985937c0dffb16e | 894 | package com.gobatis.demo;
import java.util.HashMap;
import java.util.Map;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import com.gobatis.plugins.ExamplePlug... | 25.542857 | 120 | 0.713647 |
8b2b1e638720bf9f55ca2e1ef3a4fa24089b910a | 1,582 | package com.shangbaishuyao.connectors.rabbitmq;
import com.shangbaishuyao.common.model.MetricEvent;
import com.shangbaishuyao.common.schemas.MetricSchema;
import com.shangbaishuyao.common.utils.ExecutionEnvUtil;
import com.shangbaishuyao.common.utils.KafkaConfigUtil;
import org.apache.flink.api.java.utils.ParameterToo... | 40.564103 | 99 | 0.731985 |
d8f6e8059081f5a580a5e445ebbc04e16f276243 | 882 | package startsharp.task.Login;
import net.serenitybdd.core.steps.Instrumented;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.actions.Click;
import net.serenitybdd.screenplay.actions.Enter;
import static startsharp.navigation.StartSharp.*;
public c... | 23.837838 | 84 | 0.774376 |
37fcfc3177ed6080a039eecc0fbf60b2b975cbc0 | 567 | package programaidade;
import java.util.Scanner;
/**
*
* @author Yasmin
*/
public class ProgramaIdade {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.print("Digite o ano que você nasceu: ");
int nasc = teclado.nextInt();
int idade ... | 23.625 | 59 | 0.567901 |
6dda6c838c84cba37c81ec126b070e1efad124aa | 712 | package com.ruoyi.common.utils;
import com.ruoyi.common.constant.UserConstants;
/**
* 校验工具类
* @author lsy
*
*/
public class ValidateUtil {
/**
* 字符串是否是email格式
* @param value
* @return true 是email格式,反之false
*/
public static boolean maybeEmail(String value)
{
if (!value.matches(U... | 18.25641 | 70 | 0.592697 |
523406b256e3d2e0066f02135c7e68476ac2c381 | 1,564 | package com.tiscon.dto;
public class PriceRefernceDto {
private Integer priceInt;
private double distance;
private Integer pricePerDistance;
private Integer priceForDistance;
private Integer pricePerTruck;
private Integer priceForOptionalService;
private double N;
public Integer ... | 21.135135 | 77 | 0.674552 |
0caf8a33ad40b3916eb524659e82b9fedc4ce4c3 | 15,821 | /*
* 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 ... | 46.807692 | 119 | 0.681436 |
31b12f49d3ac7354be65f85e40750cbbcf5d6f91 | 190 | package team.gif.friendscheduler.exception;
public class IncorrectCredentialsException extends RuntimeException {
public IncorrectCredentialsException(String msg) {
super(msg);
}
}
| 19 | 69 | 0.805263 |
e1380bb802262e78a34670ed3950816b5a15b24c | 1,566 | package JavaFramework.SnapdealTests;
import java.io.IOException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;... | 31.32 | 81 | 0.777139 |
57194f6710948ffe22211cedcf20c080cf453d61 | 12,962 | /*
* Copyright 2019 Ortis (ortis@ortis.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 required by applicable law o... | 39.160121 | 145 | 0.764157 |
3c5759fab9465e125c7d609913975070ff6cb152 | 272 | package com.jab.streams.sources;
import java.util.Arrays;
public class Example2 {
public static void main(String[] args) {
Arrays.asList("a1", "a2", "a3")
.stream()
.findFirst()
.ifPresent(System.out::println);
}
}
| 17 | 44 | 0.566176 |
6d8846ca630094e8f67a8fa45631b2d0ca58402b | 2,975 | /**
* Copyright 2015 IBM Corp. All Rights Reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by app... | 39.144737 | 117 | 0.738824 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.