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 |
|---|---|---|---|---|---|
2f7a6062f0a8e73deaa9cb0b894fdcd8600348bb | 1,071 | package bean;
public class AddressDealBean {
private int userId;
private int addressId;
private boolean flag;
private String address1;
private String address2;
private String contact;
private String phone;
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
... | 13.909091 | 43 | 0.699346 |
a6d8eb36b64ecae386b888ae6cc7b1e2c65151d9 | 823 | package jts;
import io.dropwizard.Application;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import io.dropwizard.forms.MultiPartBundle;
public class JTSApplication extends Application<JTSConfiguration> {
public static void main(final String[] args) throws Exception {
new... | 23.514286 | 73 | 0.696233 |
ba700d4f0f2a86d5d2fa6b0d0c025e33b2b8ebd6 | 21,993 | package ai.elimu.launcher.ui;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.... | 42.955078 | 163 | 0.623926 |
fa7356bdf234a536c4d71f7ab2dc74ed4887e64d | 8,712 | package org.firstinspires.ftc.teamcode.match;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
im... | 28.470588 | 102 | 0.613522 |
20772ff739864bf478569aee368a9c14ae3c8820 | 5,448 | package de.tud.nhd.petimo.view.fragments;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andr... | 36.07947 | 92 | 0.691446 |
80ed740f624a9a5b01c9dac8334b4eb0b2ce1d8d | 3,518 | package de.andrews.digsitevisualization.calculation;
import de.andrews.digsitevisualization.data.Triangle;
import de.andrews.digsitevisualization.data.Vertex;
import io.github.jdiemke.triangulation.DelaunayTriangulator;
import io.github.jdiemke.triangulation.NotEnoughPointsException;
import io.github.jdiemke.triangula... | 35.18 | 152 | 0.636441 |
597ab2b6222fbab862a503ef76ceae257a5ba8eb | 1,571 | package gl.servlet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDat... | 34.152174 | 119 | 0.728199 |
21caaf5a3637b6096063e82b38088483f3ed8929 | 1,414 | import de.craften.plugins.mobjar.persistence.serialization.SerializedWolf;
import org.bukkit.Bukkit;
import org.bukkit.DyeColor;
import org.bukkit.entity.Wolf;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.Po... | 32.136364 | 74 | 0.72843 |
4ce540a60ec88e81b08b16edeaed8e42f521a22a | 460 | package com.fields.weather.fieldsweather.repository;
import com.fields.weather.fieldsweather.Model.WeatherPolygon;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
public interface WeatherRepository extends MongoRepository<WeatherPolygon, S... | 41.818182 | 84 | 0.8 |
e4d2fcc65289f92f9b6ab3c74f1e094eb7deaad5 | 2,635 | package com.example.john.simulatesms.dialog;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.john.simulatesms.R;
import com.example.john.simulatesms.interfaces.OnConfirmListener;
/**
* Created by John on 2016/11/27.
*/
publ... | 26.089109 | 122 | 0.63833 |
f84fee6d92e031c6c0e59bd1fc05d4a873956365 | 2,745 | /*
* Copyright 2019 Australian e-Health Research Centre, CSIRO
*
* 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 b... | 40.970149 | 100 | 0.746084 |
24a0e9eb0c22a092c17704b84a4be0ef4f0c1634 | 658 | package me.prester.remindmail.main;
import android.content.Context;
import androidx.lifecycle.ViewModel;
import me.prester.remindmail.backend.Repository;
public class MainViewModel extends ViewModel {
private Repository repository;
MainViewModel(Repository repository) {
this.repository = repository... | 23.5 | 57 | 0.735562 |
2e3e002688721ca36caa684ee0f819d53edcd896 | 1,798 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 41.813953 | 83 | 0.764182 |
868b72d4f86a24e4d74236bab242178a845b7716 | 3,699 | /*
* Copyright (c) 2013, Timothy Stack
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditi... | 36.623762 | 94 | 0.735604 |
53ca7036dfc3c3c409f8d80e21b68bb1664d4c5c | 46,377 | package util;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Scanner;
import java.ut... | 42.547706 | 271 | 0.662807 |
4fb125b0fe0a00c454d1e6f8388d3c0777815a76 | 73 | package Nouyau ;
public class Commandeheurexception extends Exception{
}
| 18.25 | 53 | 0.835616 |
2a50d56d6d4d88d672f41e27f8c92e37b632ae2f | 738 | // https://leetcode.com/problems/merge-strings-alternately/
class Solution {
public String mergeAlternately(String word1, String word2) {
StringBuilder merged = new StringBuilder();
int loopEndIndex = Math.min(word1.length(), word2.length()) - 1;
for (int i = 0; i <= loopEndIndex;... | 29.52 | 72 | 0.550136 |
f02303a86eb7efe754fac208409dde1317ccab94 | 645 | /*
* @author : Jagepard <jagepard@yandex.ru>
* @license https://mit-license.org/ MIT
*/
package Behavioral.Iterator;
import java.util.List;
public class Iterator implements IteratorInterface{
private final List<ItemInterface> bucket;
public Iterator(List<ItemInterface> bucket) {
this.bucket = b... | 22.241379 | 111 | 0.646512 |
05767d8781067dc3c8acf66c5f0afcd3b0c9e64b | 903 | package org.kie.remote.services.ws.sei.process;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation... | 25.8 | 66 | 0.756368 |
47bb7b3b9fa47003e9c62073d268c573aa28cfd6 | 1,408 | package quark_ffi_signatures_md;
public class classes_test_substring extends quark.reflect.Class implements io.datawire.quark.runtime.QObject {
public static quark.reflect.Class singleton = new classes_test_substring();
public classes_test_substring() {
super("classes.test_substring");
(this).n... | 52.148148 | 228 | 0.700994 |
88daa1add255e1c422cbf17fdebc0be869aee280 | 292 | package ru.vetclinic.clinic.Streams;
import java.io.IOException;
/**
* Входящий поток данных
* Created by Djony on 10.07.2016.
*/
public interface InputStream {
/**
* Возвращает введенную строку
* @return Введенная строка
*/
String getNext() throws IOException;
}
| 18.25 | 40 | 0.681507 |
8dd4599f8c55bfb3739c679b92686336c8844d69 | 2,056 | /*
* Copyright 2018-2019 Karakun AG.
* Copyright 2015-2018 Canoo Engineering AG.
*
* 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
*
... | 30.235294 | 125 | 0.698444 |
9177588f48b08b0a93610987af382710de88e1ee | 12,280 | package breakout;
import brick.BlockCreator;
import brick.Brick;
import brick.RegularBrick;
import displayImage.Scorebar;
import gameObjects.Ball;
import gameObjects.Paddle;
import gameObjects.Pinball;
import gameObjects.ScoreMultiplier;
import javafx.scene.Group;
import javafx.scene.input.KeyCode;
import powerup.*;
i... | 38.984127 | 189 | 0.57215 |
82c0dc6cc23ec01d191387076dc4eab0dfeb527a | 17,277 | package controllers;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jack... | 45.109661 | 115 | 0.554205 |
71423f0550eefaaf7275d72c6f78c88f9ceca688 | 2,534 | package org.joverseer.engine.orders;
import org.joverseer.domain.NationRelations;
import org.joverseer.domain.NationRelationsEnum;
import org.joverseer.domain.Order;
import org.joverseer.engine.ErrorException;
import org.joverseer.engine.ExecutingOrder;
import org.joverseer.engine.Randomizer;
import org.jovers... | 34.712329 | 139 | 0.703236 |
9c96861aeee899b74fc121f56be849d6703f36d3 | 2,401 | /**
* Copyright 2016 Yurii Rashkovskii
*
* 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 ... | 33.347222 | 118 | 0.55935 |
d7dd9ca46bfdd9f56649229a706df4f2f12cf1c9 | 1,915 | package com.game.gairun.interfaces;
import com.game.gairun.Game;
import java.awt.*;
public class Blocks {
private final Texture tex;
private BlockType blockType;
private float x;
private float y;
private final Game game;
// public Blocks(BlockType blockType) {
// this.blockType = block... | 26.971831 | 237 | 0.566057 |
5e5753251ca5cc7641538a2eac2692a33fe54c17 | 3,465 | package ru.stqa.pft.addressbook.appmanager;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.BrowserType;
import org.openqa.selenium.remote.DesiredCapab... | 32.083333 | 112 | 0.719192 |
f97bf73fa178e0137f406c7b6519b779a1e56df8 | 10,210 | /*
* Copyright (c) 2017, University of Oslo
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of condition... | 41.844262 | 106 | 0.714496 |
75d2b502a875725f1e8654d6df2a36b87f257782 | 1,085 | package de.hackathondd.dvblive.application;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import de.hackathondd.dvblive.domain.Haltestelle;
import de.hackathondd.dvblive.domain.Journey;
public class HaltestelleTo {
private String triasCode;
private String latitude;
p... | 26.463415 | 104 | 0.682949 |
22ceb2e0177abcc730123bb2f7d804e78b1b21ab | 2,022 | package com.yummynoodlebar.web.controller;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springfr... | 38.150943 | 129 | 0.816024 |
0789a53cbd498656e05018819e73a4713aa1ea71 | 410 | package com.iliev.peter.kata.utils;
public class ArrayComparer {
private ArrayComparer() {
}
public static <T extends Comparable<T>> boolean areEqualArrays(T[] a, T[] b) {
if (a == null || b == null) {
return false;
}
if (a.length != b.length) {
return false;
}
for(int i = 0; i < a.length; ... | 16.4 | 79 | 0.568293 |
2b2bf757c760e6d3fc6e0c590cdb81636b62fe5c | 3,242 | package com.zkyyo.www.web.controller;
import com.zkyyo.www.service.UserService;
import com.zkyyo.www.web.Access;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServlet... | 42.103896 | 122 | 0.610734 |
694d4ee1938b02dba99d507e94d7126edabf70a4 | 2,105 | package csparksfly;
import csparksfly.gradle.Dependency;
import csparksfly.gradle.MavenModule;
import org.jgrapht.Graph;
import org.jgrapht.graph.DefaultEdge;
import org.jgrapht.io.ComponentNameProvider;
import org.jgrapht.io.DOTExporter;
import org.jgrapht.io.ExportException;
import org.jgrapht.io.GraphExporter;
imp... | 32.384615 | 120 | 0.678385 |
d36d4892ebd220941e4fae7a106171fa08e763df | 1,293 | package com.github.soap2jms.test;
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;
import org.apache.commons.lang3.StringUtils;... | 28.733333 | 97 | 0.763341 |
344c9bf6d01655c7bfd50eddcafecf4cdbda60c1 | 6,639 | /*
* 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... | 32.544118 | 116 | 0.546468 |
b3b71acbef36031ef3e0182f3d550c6d8986b24e | 487 | package com.uncos.wechatboot.feedback.message;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
/**
* 包含视频消息媒体id的消息
* Created by xuwen on 2016/1/16.
*/
public class MediaMessage extends IdMessage {
protected String mediaId; // 视频消息媒体id,可以调用多媒体文件下载接口拉取数据
@JacksonXmlProperty(local... | 22.136364 | 74 | 0.714579 |
cfc289aa0438f25789da5d5bc0a2784a7b582600 | 2,220 | /*
* Copyright 2017 jiajunhui<junhui_jia@163.com>
*
* 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 require... | 33.134328 | 120 | 0.686937 |
7499aaa7c28aca7fdd5dc127a8157ce82d0c16a5 | 374 | package net.wolftail.api;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
public interface SubPlayContextManager {
RootPlayContextManager rootManager();
UniversalPlayerType type();
ServerPlayContext contextFor(UUID playId);
int currentLoad();
Map<UUID, ServerPlayConte... | 17.809524 | 44 | 0.721925 |
c7e3f3f06556b4c838aa1ee8747d5f8790f2a612 | 434 | package org.springframework.samples.petclinic.navershorturl;
public interface ShortUrlDAO {
ShortUrlEntity saveShortUrl(ShortUrlEntity shortUrlEntity);
ShortUrlEntity getShortUrl(String originalUrl);
ShortUrlEntity getOriginalUrl(String shortUrl);
ShortUrlEntity updateShortUrl(ShortUrlEntity newSh... | 22.842105 | 68 | 0.808756 |
27db013e22c24c6f511339c1fe3816999c701b39 | 16,743 | package com.logginghub.logging.messaging;
import com.logginghub.logging.DefaultLogEvent;
import com.logginghub.logging.LogEvent;
import com.logginghub.logging.messages.PartialMessageException;
import com.logginghub.utils.ExpandingByteBuffer;
import com.logginghub.utils.FormattedRuntimeException;
import com.logg... | 41.649254 | 127 | 0.543093 |
5249d9883b5dbf2bc1f3cb0543724ac3b44e5354 | 34,715 | package com.topjohnwu.signing;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.security.DigestException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.... | 44.909444 | 100 | 0.617543 |
0fc15adb73c73aca6c0b86e51d8aa0b3d7784839 | 912 | package com.paulfang.java.multithread;
/**
* Example for 1.7.5
*
* stop() 方法已经被废止,如果强制线程停止则可能使一些清理性工作得不到完成,另外就是对锁定的对象进行了解锁,
* 导致数据得不到同步的处理,出现数据不一致的问题
*/
public class ViolenceStopThreadTest {
public static void main(String[] args) {
try{
counterWorker counterThread = new counterWorker();
... | 19.404255 | 60 | 0.633772 |
88468b0dbaef3deea7230cf09817aa9ffb69f3ba | 2,463 | package htsjdk.samtools.cram.build;
import htsjdk.samtools.cram.common.Version;
import htsjdk.samtools.cram.io.CountingInputStream;
import htsjdk.samtools.cram.structure.Container;
import htsjdk.samtools.cram.structure.ContainerIO;
import htsjdk.samtools.cram.structure.CramHeader;
import java.io.InputStream;
import j... | 29.321429 | 114 | 0.680471 |
73a423f590947173477e78aaa7312561a17ef22f | 1,113 | package com.maxpowa.helper;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.maxpowa.WikiUtil.ArticleParser;
@Deprecated
public class MCWikiParser extends ArticleParser {
@Override
public String parse(String title, String input) {
int i = 0;
while (i < input.length(... | 33.727273 | 209 | 0.527403 |
f640d1e66077ed9a736c0cb98bc0325d935204fe | 3,228 | package controller;
import forwarder.Salesperson;
import controller.Parser;
import controller.Cycle;
import java.util.ArrayDeque;
public class GrrProgrammer extends controller.Parser {
private static final boolean synX82boolean = false;
private static final int synX81int = 0;
private static final boolean synX80... | 31.038462 | 95 | 0.714064 |
b7612889a931a8c546d54a03813f7bc3c3a31c60 | 1,247 | package com.packtpub.springsecurity.repository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager;
im... | 29.690476 | 77 | 0.734563 |
adb3b897abd9d0b980403f19a4549cc0351222ce | 731 | package io.geovaneshimizu.starwiki.character.swapi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import io.geovaneshimizu.starwiki.character.Resourc... | 24.366667 | 60 | 0.655267 |
d3e624b6a6083b2263000d6dd2f305b5393d7415 | 1,571 | package com.gildedrose;
/**
* Common functions used by all items (inside the package com.gildedrose.items)
*/
public abstract class BaseItem {
public Item item;
public static final int MAX_QUAILITY_FOR_AN_ITEM = 50;
public BaseItem() {}
public BaseItem(Item item) {
this.item=item;
}
... | 21.819444 | 79 | 0.576703 |
351d25ba9eb9ff3640d07ff764bd84942e51cdfb | 2,430 | package stargatetech2.api.bus;
import java.util.LinkedList;
public abstract class BusPacket<R>{
private LinkedList<R> responses;
private final short sender;
private final short target;
private final boolean hasLIP;
/**
* @param sender The address of the Device that is sending this packet.
* @param target T... | 25.851064 | 99 | 0.70535 |
2fbe98a56102d8f66a674b1b86c5ed738aa2ec28 | 8,705 | /*
* 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 ... | 41.255924 | 121 | 0.728891 |
5101c3cbe3a642b882d66aff88ef46088ad15382 | 161 | package ru.job4j.inheritance;
public class Predator extends Animal {
public Predator() {
super();
System.out.println("Predators");
}
}
| 16.1 | 40 | 0.627329 |
3633250a701d9dae8391c77f1cad42e77427116f | 3,886 | package view.event;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.event.ActionEvent;
import javafx.fxml.Initializable;
import javafx.scene.control.*;
import javafx.stage.Stage;
import org.controlsfx.dialog.ExceptionDialog;
import schedule.Schedule;
import util.AlarmQueue;
import util... | 32.932203 | 130 | 0.702007 |
82137516f64c8cf28662f070361b3aa08ded55c6 | 3,810 | package org.indiarose.lib.model.xml;
/*
* This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
*/
import org.indiarose.lib.PathData;
import org.indiarose.lib.model... | 30.238095 | 116 | 0.750394 |
9e1912bda521a9e8a68d1cfbc83b9d10e62fa3de | 669 | package com.mrpc.core.serializer;
import com.mrpc.core.message.IMessage;
import java.io.IOException;
/**
* 序列化器
*
* @author mark.z
*/
public interface ISerializer {
/**
* 反序列化
*
* @param bytes 序列化数据
* @param messageClass 序列化对象类型
* @return 序列化对象
* @throws IOException ... | 19.676471 | 115 | 0.61435 |
92ba52c16341e62ca2b66d65c7007e330754a54b | 606 | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.integrationbackoffice.widgets.providers;
import de.hybris.platform.catalog.model.classification.ClassAttributeAssignmentModel;
/**
* Provides full qualifier for classification attribute.
*/
public inter... | 27.545455 | 85 | 0.792079 |
2c841eb37b368ba704b0616d6e106a63196d4a66 | 1,664 | package pattern.other.strategyAndTemplate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.Objects;
/**
* 活动抽象类,抽取公共方法,
* 把订单是否符合奖励的判断之后发送奖励的公共逻辑在此处实现,
* 订单具体条件的判断延迟由子类去实现.
* 策略和模板模式组合使用
*
* @author Sam
* @date 2020/11/26
* @since 1.7.3
*/
@Slf4j
@Componen... | 25.212121 | 110 | 0.667067 |
24903f22bb0685362198a190b51293dcaa2bcf1a | 875 | package br.edu.ifsc.mello.dummyuafclient.fidouaflib;
public enum TCDEnum {
TRANSACTION_CONFIRMATION_DISPLAY_ANY((short) 0x01),
TRANSACTION_CONFIRMATION_DISPLAY_PRIVILEGED_SOFTWARE((short) 0x02),
TRANSACTION_CONFIRMATION_DISPLAY_TEE((short) 0x04),
TRANSACTION_CONFIRMATION_DISPLAY_HARDWARE((short) 0x08)... | 27.34375 | 119 | 0.68 |
d3c0d66746f69369accd1f7981182adf2a97276f | 781 | package cn.glogs.activeauth.iamcore.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class AuthorizationPolicyGrantRow {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY... | 22.314286 | 58 | 0.77977 |
96b8aa3e5801e47454730d73aa74ae24b3d3f74c | 1,678 | package msifeed.mc.more.commands;
import msifeed.mc.commons.logs.ExternalLogs;
import msifeed.mc.extensions.chat.SpeechatRpc;
import msifeed.mc.extensions.chat.formatter.MiscFormatter;
import msifeed.mc.more.More;
import msifeed.mc.more.crabs.rolls.Dices;
import msifeed.mc.sys.cmd.PlayerExtCommand;
import msifeed.mc.s... | 31.660377 | 81 | 0.668057 |
d0e830dc2d2402e72449b7c11f2a67657e386e63 | 1,537 | /**
* 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"); yo... | 38.425 | 117 | 0.76838 |
a5d1dc5bb1bec7729dfede9cdfd686a0394d6787 | 686 | package io.github.fatihbozik.ch3.searchandsorting;
import java.util.Set;
import java.util.TreeSet;
class Duck {
private String name;
public Duck(String name) {
this.name = name;
}
}
class UseTreeSet {
static class Rabbit {
int id;
public int getId() {
return id;
... | 19.6 | 71 | 0.568513 |
b1b4c5cbe8aaf94429f5ff2d75856b1ac37dbbe2 | 6,172 | package utils;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import objects.JSONParsingObject;
import objects.Jury;
import objects... | 27.801802 | 88 | 0.670933 |
e20be70f0d8bde8bf22c21c5e957c12fb1e7f362 | 313 | package com.trainingserver.soap.operations;
public class GetFilmsActors extends OperationsTemplate {
public GetFilmsActors() {
this.setLink("getFilmsActors");
this.setup();
}
public void setFilmId(String filmId) {
setRequestNodeValueByXPath("/Envelope/Body/getFilmsActorsRequest/film_id", filmId);
}
} | 26.083333 | 85 | 0.782748 |
01a2a6c43e90c456018f69b6adda123ee59ba730 | 3,622 | /*******************************************************************************
* Copyright (c) 2001, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... | 38.126316 | 154 | 0.728879 |
bc818b3a05621e2328c84b5de71ccb7e055093b0 | 1,467 | import com.ll.entity.User;
import com.ll.mapper.UserMapper;
import com.ll.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
/**
* @ClassName: DemoTest
* @Description: TODO 类描述
* @Author: LQH
* @Date: 2020/07/11
* @Version: 1.0
**/
public class DemoTest {
@Test
publi... | 26.196429 | 69 | 0.623722 |
be8cd1d46cb4c0193f452d308df88d344a3d0869 | 11,907 | package vn.edu.vtc.pl;
import vn.edu.vtc.bl.OrderBL;
import vn.edu.vtc.bl.ProductBL;
import vn.edu.vtc.persistance.Account;
import vn.edu.vtc.persistance.Order;
import vn.edu.vtc.persistance.Product;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
import... | 43.775735 | 220 | 0.420845 |
5bab2f17e7f5c5af217ead026fe2ca30115d2dd0 | 7,925 | package seedu.address.logic.parser.expenseparsers;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_REPEATED_PREFIX_COMMAND;
import static seedu.address.logic.commands.CommandTestUtil.AMOUNT_DESC_EXPENSE;
import static seedu.add... | 50.477707 | 118 | 0.766309 |
d971ee3c0a574830bc7e10d429b3f508e2e2debe | 685 | package ru.job4j.set;
/**
* @author vsokolov
* @version $Id$
* @since 0.1
*/
public class HashTableSet<E> {
private MyHashTable<E> data;
public HashTableSet(MyHashTable data) {
this.data = data;
}
/**
* Method adds an entry to the beginning of list.
* @param e
*/
publi... | 17.125 | 63 | 0.544526 |
9974b9c74d592ea8769a9a7ecd2e82c534b0d4ec | 4,186 | package uk.gov.hmcts.reform.finrem.caseorchestration.controllers;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Before;
import org.junit.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springf... | 44.531915 | 118 | 0.737936 |
3e68e3227fecf323b74af246a4b0d14700b07700 | 3,358 | /*
*
* 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"); y... | 37.311111 | 168 | 0.736152 |
a7bedc48620906e096dff8e3accf0d43fc835b0d | 968 | /*
* Copyright 2017 The Depan Project 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... | 31.225806 | 75 | 0.754132 |
634a8024fade20cfb916912b3fb0ae8af63d9f10 | 410 | package com.ramon.pereira.hermes;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.TimeZone;
@SpringBootApplication
public class HermesApplication {
public static void main(String[] args) {
TimeZone.setDefault(TimeZone.getTime... | 25.625 | 68 | 0.817073 |
a7eb438489f9ce6018c1345f22efb8d214f94a65 | 45,941 | /*
* 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 ... | 38.34808 | 337 | 0.638515 |
47e68ad1f47e14957d59b1446fc21c9fc3af2aff | 370,809 | /*
* Copyright (c) 2020. MobilityData 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 or ... | 39.799184 | 419 | 0.511797 |
1fff35af48680a25818bc8cf53e689a284e7788d | 1,081 | package com.daesys.maven.training;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
public class Application {
public int countWord(String words){
int nbWords = 0;
String[] wordSeparated = StringUtils.split(words,' ');
nbWords = (wor... | 25.139535 | 69 | 0.592044 |
6dd51f5f3c417919101966760fbaadb6657d8ac9 | 2,442 | package de.metas.document;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 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... | 34.885714 | 195 | 0.733825 |
676519c9eab07166cf1eeaa808b5de0928e1e5b0 | 24,569 | package com.contrachequeUI.controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import org.apac... | 30.257389 | 151 | 0.683259 |
ebca94818aa6da9247693f0ffc1069c23fc5e8f3 | 1,873 | package com.philpot.camera.util;
import android.graphics.Bitmap;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
public class CameraStorage {
private static final String TAG = CameraStorage.class.getSimpleName();
priva... | 29.265625 | 107 | 0.624132 |
08c97378fa2217c40979bb416c4d98a63e1aa227 | 20,200 | class rR2m8BsUmg {
public static void D (String[] IRfqW) throws _MHNtoHTTE {
return -!---new qrX().TjAb();
;
if ( --new boolean[ new eAC().d3NAmCp9].w1ceH2lgWU) return;
boolean[][][][] wgUGs;
}
public static void X37 (String[] tsc6RabA) {
null[ this[ new yhCY().ZKUfE... | 41.14053 | 270 | 0.500792 |
4f107007f8e3f8dee018115f3e165ddec11476f8 | 619 | package com.ym.gulimall.seckill.scheduled;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Schedule... | 23.807692 | 66 | 0.768982 |
40931ba6d9bed8ea5021f1d72db3233433fe74bb | 749 | package it.gualtierotesta.vertx.reactive;
import io.reactivex.Completable;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Launcher;
import io.vertx.reactivex.core.AbstractVerticle;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class MainVerticle extends AbstractVerticle {
public static void main(... | 26.75 | 93 | 0.687583 |
af88818980f1f7881232101bdf803bfcd61f5788 | 19,446 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | 45.647887 | 199 | 0.650314 |
2caa893f7018f2108c856e00f52ed4ec76003072 | 3,105 | /*
* Copyright (c) 2013 Intellectual Reserve, 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
*... | 32.684211 | 117 | 0.753623 |
72d0023938af82f4245e9f466c021b9cfcc24efc | 4,265 | package uk.co.quidos.gdsap.evaluation.calculate.input;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class CalFuelBillData {
private Collection<CalFuelPrice> communityFuelPriceList;
private Collection<CalFuelPrice> mainGasFuelPriceList;
private Collection<CalFuelPri... | 36.144068 | 102 | 0.765299 |
6775e4faee68fec8eb02fba99ed8358fe7eba635 | 5,152 | package br.com.addr.repository;
import br.com.addr.adapters.AddressRepository;
import br.com.addr.exceptions.AddressException;
import br.com.addr.model.Address;
import br.com.addr.model.UpdateAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
imp... | 39.630769 | 130 | 0.537849 |
1428554284d65fb348836a13283fb05f28a05377 | 9,243 | /*
* Copyright 2002-2018 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 requi... | 39.5 | 99 | 0.749216 |
ed15c2cf7ca9682c8f719407b9433c561184e8d9 | 833 | /*
* Copyright (c) 2019, Salesforce.com, Inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
package com.salesforce.reactivegrpc.common;
import org.reactivestreams.Subscriptio... | 33.32 | 113 | 0.761104 |
b164ef73d0fc6ac217d00f9506a3a19240fbdd71 | 902 | package it.algos.vaad23.ui.dialog;
import com.vaadin.flow.component.notification.*;
import it.algos.vaad23.backend.enumeration.*;
/**
* Project vaadin23
* Created by Algos
* User: gac
* Date: mer, 30-mar-2022
* Time: 08:24
*/
public class Avviso {
public static Notification show(String text) {
int ... | 27.333333 | 103 | 0.707317 |
c0fa30a7d2e9a180079e1429853eb16cc707922a | 446 | /*
* Copyright © 2010 www.myctu.cn. All rights reserved.
*/
package com.sirius.upns.server.node.queue;
import com.sirius.upns.server.node.domain.model.Message;
/**
* User: pippo
* Date: 13-11-28-13:49
*/
public class APNSBroadcastTask extends TimelineUpdateTask {
private static final long serialVersionUID = ... | 17.153846 | 66 | 0.733184 |
042a29310182513fa28c434843d51f5c73b209a6 | 465 | package ashley.tests;
import ashley.signals.Listener;
import ashley.signals.Signal;
public class SignalTest {
public static void main(String[] args){
Signal<String> signal = new Signal<String>();
Listener<String> listener = new Listener<String>() {
@Override
public void receive(Signal<String> signal, St... | 22.142857 | 62 | 0.696774 |
041a97c224320fe64bf223552b02e1dc4a592801 | 589 | package android.support.v4.view;
import android.graphics.Paint;
import android.view.View;
import android.view.ViewParent;
interface bc {
int a(View view);
void a(View view, int i, int i2, int i3, int i4);
void a(View view, int i, Paint paint);
void a(View view, Paint paint);
void a(View view, ... | 16.361111 | 53 | 0.634975 |
9469262471b1e833c718f40ca8fe61dbdf23084d | 512 | package assignment2.model;
import java.util.HashSet;
import java.util.Set;
/**
* A collection of events that can be used as the root of the JSON data.
*
* @author alessandro.adamou
*
*/
public class EventContainer {
/**
* Event sorting is taken care of by the Timeline, so I'm better off with a
* faster Ha... | 17.655172 | 76 | 0.683594 |
7478d8aedcccea50540ca38c4fd85c28d2fcea24 | 5,542 | package com.softicar.platform.db.core.transaction;
import com.softicar.platform.common.container.map.instance.ClassInstanceMap;
import com.softicar.platform.common.core.exceptions.SofticarDeveloperException;
import com.softicar.platform.common.date.DayTime;
import com.softicar.platform.db.core.connection.IDbConnection... | 24.414097 | 107 | 0.699026 |
b213bed42fbb94c367eedd7f414c3575b35715b9 | 1,123 | /*
* Copyright 2021 Justin Kreikemeyer
*
* 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... | 28.794872 | 99 | 0.695459 |
d638a5dfe13ef2d759ee7b7894aa703c987d8463 | 7,088 |
package com.compositesw.services.system.admin.resource;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for portOperationProperty complex type.
*
* <p>The ... | 25.405018 | 114 | 0.587049 |
08cac58ff897157f278e7ab04f1c0c8c0fc4eeb5 | 2,703 | /*
* Part of the HexLands mod.
* Licensed under MIT. See the project LICENSE.txt for details.
*/
package com.alcatrazescapee.hexlands;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.minecraft.core.Registry;
import net.minecraft.data.worldgen.Features;
import net.mine... | 39.173913 | 198 | 0.758417 |
dbd7c7d3fe24885dff8247239af05df8a1f572dc | 718 |
package com.vu2rmk.fleetapp.services;
import com.vu2rmk.fleetapp.models.State;
import com.vu2rmk.fleetapp.repositories.StateRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class StateService {
@Auto... | 21.757576 | 62 | 0.724234 |
54e69233a8cd393ddf677c55cb8ca843adbc41b3 | 566 | package i5.las2peer.services.codeGenerationService.traces.segments;
/**
* A special {@link i5.las2peer.services.codeGenerationService.traces.segments.CompositeSegment}
* used for variable names holding multiple templates
*
* @author Thomas Winkler
*
*/
public class AppendableVariableSegment extends CompositeSe... | 22.64 | 96 | 0.770318 |
3df9292e14d4029f97151d9e3618fc176cd6804b | 1,234 | package app.xml;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import java.util.List;
import java.util.ArrayList;
/**
* Implementation of the SAX DefaultHandler
* interface which is used to parse
* the config.xml file for configuration
* node instances. For each instance,
* the handler will a... | 24.68 | 117 | 0.65154 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.