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 |
|---|---|---|---|---|---|
69d4d85dab608c6dcc595d400e18054274671901 | 980 | /*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.workflow.core.app;
import com.haulmont.workflow.core.entity.SendingSms;
import java.util.List;
/**
* @author novikov
* @versi... | 24.5 | 90 | 0.726531 |
dca493112da40cab740b70735144147f022de611 | 5,905 | /*
* Copyright 2012 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 a... | 30.595855 | 146 | 0.679763 |
ada20e99d87d175fef71e0a98126e7c3b553baf1 | 26 | public class Version55 {
} | 13 | 24 | 0.769231 |
45674e825530ae82a473c24f42bab023df645de5 | 2,405 | package net.powermatcher.api;
import net.powermatcher.api.data.Bid;
import net.powermatcher.api.data.Price;
import net.powermatcher.api.messages.PriceUpdate;
/**
* {@link AgentEndpoint} defines the interface for classes that can receive a {@link PriceUpdate} and send a {@link Bid}
* , based on the {@link Price} of ... | 34.855072 | 120 | 0.640333 |
9c200fd7c07c3c450e026d34572bfea66bbeaf2f | 338 | package annotations.ex1;
/**
* Simple test of a Car.
*/
public class CarTest {
public static void main(String... args) throws Exception {
Car car = new Car("1234");
if (car.initEngine())
System.out.println(">>> COOL! It started!");
else
System.out.println(">>> "... | 17.789474 | 62 | 0.54142 |
dd52fb3a2a95d8c6e380c330768592f3f9f418af | 4,098 | /*
* Copyright (C) 2014 The Dagger 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 ag... | 36.589286 | 100 | 0.719863 |
c2a4badff3a998fcd18c0d547de60bd133f76709 | 2,694 | package us.ihmc.robotics.stateMachine.old.conditionBasedStateMachine;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import us.ihmc.continuousIntegration.ContinuousIntegrationAnnotations.ContinuousIntegrationTest;
import us.ihmc.yoVariables.registry.YoVariableRegistry;
import us.ihmc.robotics.st... | 29.282609 | 150 | 0.679287 |
faab8e9d9e44a74598629014ee334bd895f2f71e | 7,137 | package com.rest;
/*
* #%L
* Gateway
* %%
* Copyright (C) 2015 Powered by Sergey
* %%
* 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... | 41.736842 | 213 | 0.71949 |
c393b66a8c2eec89e1246c6022806422ac4e7a34 | 1,875 | /*
* Copyright 2019 Ivan Pekov (MrIvanPlays)
* 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, ... | 43.604651 | 114 | 0.733333 |
464aff5dc35b7339bc6a40b98f0017df323636ad | 1,228 | package com.example.ZMTCSD.entity;
import java.io.Serializable;
import java.util.List;
/**
* 中信保的投保详情 和 中信保的限额详情 一样
*/
public class CompanyInsureEntity implements Serializable {
@Override
public String toString() {
return "CompanyInsureEntity{" +
"lcId=" + lcId +
"... | 21.928571 | 86 | 0.625407 |
b092c341cc697455bebf8ef5b714090d45290157 | 575 | package com.kuxhausen.huemore.net.dev;
import android.support.v4.util.Pair;
import com.kuxhausen.huemore.net.NetworkBulb;
import java.util.ArrayList;
/**
* For encapsulating connectivity data associated with devices
*/
public class ConnectivityMessage {
ArrayList<Pair<Long, NetworkBulb.ConnectivityState>> mDat... | 23.958333 | 81 | 0.761739 |
462c3179cdc7fb5b6ee6da4d508faa5c2f743d2e | 20,107 | /*
* Copyright (C) 2014 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... | 36.098743 | 102 | 0.61128 |
ad09bf890778fe54786ec28d885c335af4eba867 | 2,648 | package remotefndload;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class DialogSshKeys extends JDialog {
private JToolBar toolBar = new JToolBar();
private BorderLayout borderLayout1 = new BorderLayout();
private JScr... | 34.38961 | 85 | 0.615181 |
8fafe006c7ff11053c74d44b71ace674ea260d4e | 1,046 | package com.example.demo.entities;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import java.util.List;
impo... | 24.325581 | 64 | 0.711281 |
6435d3792ea7c56bd9cbb78292f4e14898b2da95 | 7,024 | /*
* 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.368664 | 120 | 0.557802 |
89ca672eb871e6aaaf1d13277681922598cf0d7f | 7,890 | // Screen.java
// Represents the screen of the ATM
import java.awt.Button;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.util.Random;
import javax.swing.JFrame;
import javax.swing.JTextField;
... | 33.717949 | 100 | 0.669962 |
992915051788e0de1e87e60fcf7ffacf9925e900 | 641 | package org.ovirt.engine.core.common.action;
import org.ovirt.engine.core.compat.Guid;
public class DetachUserFromVmFromPoolParameters extends VmPoolUserParameters {
private static final long serialVersionUID = 2255305819152411560L;
private boolean restoreStateless;
public DetachUserFromVmFromPoolParame... | 27.869565 | 112 | 0.74571 |
2261665535fa055e417eca7fbdecd9cf1e831cfa | 2,772 | package com.github.eirslett.maven.plugins.frontend.mojo;
import com.github.eirslett.maven.plugins.frontend.lib.FrontendException;
import com.github.eirslett.maven.plugins.frontend.lib.FrontendPluginFactory;
import com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException;
import org.apache.maven.plugin.Abstra... | 32.232558 | 105 | 0.728355 |
4900fd5f58264a5bc4d0768bb545a2e705ff0fdb | 13,132 | package jesse843.simplecalculator;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;... | 34.832891 | 142 | 0.574398 |
a03bba6631af4617f79d048c3cb408fb7596232c | 2,467 | package io.choerodon.test.manager.api.controller.v1;
import java.util.Optional;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;... | 46.54717 | 125 | 0.689096 |
4d379ed7b2bcd51997976b9c07fbb50e02548c2c | 349 | /**
* @author Almas Baimagambetov (almaslvl@gmail.com)
*/
module com.almasb.fxgl.media {
requires com.almasb.fxgl.core;
requires javafx.media;
exports com.almasb.fxgl.audio;
exports com.almasb.fxgl.texture;
exports com.almasb.fxgl.audio.impl to com.almasb.fxgl.all;
opens com.almasb.fxgl.aud... | 24.928571 | 62 | 0.713467 |
a7aec1dc80dd7d3ff4ea080b5d144bfa6a87f8cc | 2,359 | package com.ruoyi.web.controller.fc;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.base.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.module.domain.Prize;
import com.ruoyi.module.service.IPrizeService;
import com.ruoyi.web.... | 21.445455 | 66 | 0.714286 |
ff1d3fde130f45a65f71f05de097b49dd50586bd | 2,905 | /*
* 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 org.springframework.samples.petclinic.owner;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap... | 35 | 81 | 0.683993 |
2779cbb1f44c8f4450a758ee8615afaea0dda5a7 | 7,344 | package pt.fccn.sobre.arquivo.pages;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.ope... | 33.381818 | 173 | 0.618192 |
4cbfff5c8cc2a5f88ed652928cfece1a5cc791fe | 1,371 | package com.microsoft.bingads.v11.api.test.entities.budget.write;
import com.microsoft.bingads.v11.api.test.entities.budget.BulkBudgetTest;
import com.microsoft.bingads.v11.bulk.entities.BulkBudget;
import com.microsoft.bingads.v11.campaignmanagement.BudgetLimitType;
import com.microsoft.bingads.internal.function... | 36.078947 | 143 | 0.702407 |
c2370951cbd7ae904f44e69b2dd3b3dae1370857 | 1,684 | package com.github.pmoerenhout.atcommander.module.v250.exceptions;
public class RegistrationFailedException extends EquipmentException {
private static final long serialVersionUID = -2075761022117894075L;
/**
* Default constructor.
*/
public RegistrationFailedException() {
super();
}
/**
* Co... | 25.515152 | 106 | 0.670428 |
896bed871d09ce2d84cd4d8d321fe7afb2cd472e | 690 | package com.ray.study.smaple.cas.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* CAS的配置参数
* @author ChengLi
*/
@Component
@Data
public class CasProperties {
@Value("${cas.server.url}")
private String casServerUrl... | 20.909091 | 58 | 0.708696 |
546adfc27a0c6e2f32a12f66fcbe5324eecd291c | 623 | package com.tencent.mm.sdk.b;
import android.os.Handler;
import android.os.Looper;
import com.tencent.mm.sdk.b.b.a;
final class c implements a {
private Handler handler;
c() {
this.handler = new Handler(Looper.getMainLooper());
}
public final void f(String str, String str2) {
b.level... | 18.323529 | 59 | 0.601926 |
802253e9b6682859068dc6fad5fd847a8c0290e2 | 2,361 | package org.innovateuk.ifs.commons.service;
import org.innovateuk.ifs.commons.error.ErrorHolder;
import org.innovateuk.ifs.util.ExceptionThrowingConsumer;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Supplier;
/**
* An interface that represents a result of some process th... | 46.294118 | 213 | 0.811097 |
31b72685717aad5cf0ad34a7970ae2fa08a58eec | 4,943 | package org.mozilla.javascript.commonjs.module.provider;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import org.mozilla.javascript.Scriptable;
/**
* Implemented by objects that can provide the source text for the script. The
* design of the interface supports cache revalida... | 56.816092 | 90 | 0.724054 |
2a37829d8dd2efbe09b881f165daa5cff72caa45 | 749 | package util;
/**
*
* desc:需求订单状态的枚举。
* 若需求订单状态有改变时,需要修改该枚举类。
* 修改时先行全局搜索类名
* @author L
* time:2018年5月15日
*/
public enum RequirementOrderStatus {
UNCONFIRM("待确认", 0),
DOING("进行中", 1),
CPMPLETE("已完成", 2),
PICKING_UP_GOODS("取货中", 3),
UN_CHECK_GOODS("待验货", 4),
DELIVERY_GOODS("送货中", 5),... | 17.022727 | 57 | 0.578104 |
960da05dfb1afde9dd34ab7d55a1e886e934c6a1 | 2,841 | package org.springframework.samples.petclinic.service;
import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import javax.validation.ConstraintViolationException;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import... | 27.317308 | 84 | 0.750088 |
2276e69601f3b6ba3bf1dd05beef37d259a82d24 | 926 | package com.concurnas.compiler.visitors.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class PermutorWithCache {
private static HashMap<Integer, List<Boolean[]>> cache = new HashMap<Integer, List<Boolean[]>>();
/**
* Provide permutations whilst ignoring skipping null... | 22.047619 | 98 | 0.614471 |
9007fb6cf68f32782316adde3b8ff3c018144114 | 4,649 | package com.ofg.infrastructure.web.resttemplate.fluent;
import java.util.concurrent.Callable;
import org.springframework.web.client.RestOperations;
import com.nurkiewicz.asyncretry.AsyncRetryExecutor;
import com.nurkiewicz.asyncretry.RetryExecutor;
import com.nurkiewicz.asyncretry.SyncRetryExecutor;
import com.ofg.i... | 39.067227 | 115 | 0.736287 |
ee82224256c9e59524bec268c7e1efe7dfad914e | 732 | package com.ubalube.scifiaddon.util.Player.util;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTPrimitive;
import net.minecraft.nbt.NBTTagInt;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.Capability.IStorage... | 30.5 | 103 | 0.797814 |
d87e86186fb681c973bbc52fb251d2ceaee0b484 | 3,395 | /*
* #%L
* de.metas.manufacturing
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any la... | 34.642857 | 82 | 0.805596 |
92df4feb475b04382a093118c88a3c3b59c7b154 | 314 | package com.helospark.tactview.core.timeline.effect.interpolation;
public class ValueProviderError {
private String errorMessage;
public ValueProviderError(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getErrorMessage() {
return errorMessage;
}
}
| 20.933333 | 66 | 0.72293 |
5cc9592c28fc5f5a3deea60c58ecb54ddd4b5035 | 309 | package com.jdc.book.root.dto;
import lombok.Data;
@Data
public class Category {
private int id;
private String name;
public Category() {
}
public Category(String name) {
super();
this.name = name;
}
public Category(int id, String name) {
super();
this.id = id;
this.name = name;
}
}
| 11.884615 | 39 | 0.650485 |
5ebac6f174852b8f401fb232f7f0addc9f50476f | 326 | package es.ipo.app;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class bibliotecaController {
@GetMapping(value= {"/biblioteca"})
public String serveBiblio(Model model) {
return "biblioteca";
... | 20.375 | 58 | 0.785276 |
fc8c69bb1891bf4e4c57f693fea495df5aeb60a9 | 6,238 | package cc.eguid.cv.videoRecorder.manager;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Queue;
import java.util.Stack;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ConcurrentLinkedQue... | 21.290102 | 103 | 0.67185 |
af526d3d3263ecb54d2f5a2ec42dabcd08f36f57 | 925 | package com.aliyun.openservices.log.response;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.aliyun.openservices.log.common.Machine;
public class ListMachinesResponse extends Response {
/**
*
*/
private static final long serialVersionUID = 4626637425501553843L... | 22.02381 | 106 | 0.699459 |
3955eae72f7fcfa4055300b651c2f79382c392f6 | 597 | import java.util.Random;
import com.allmycode.dummiesframe.DummiesFrame;
public class GuessingGameFrame {
public static void main(String args[]) {
DummiesFrame frame = new DummiesFrame("Guess the number game");
frame.addRow("Input number 1 to 10");
frame.setButtonText("Click this button");
frame.go();
}
pu... | 27.136364 | 73 | 0.703518 |
ca6bbbd883626f176d606c14cb857d5d41a801c4 | 8,062 | package com.ntk.ehcrawler.activities;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.LoaderManager;
import android.support.v4.conten... | 41.556701 | 117 | 0.655172 |
db70cfb560673060caef9c20b13195785e6a8594 | 763 | package com.taobao.tddl.optimizer.costbased.after;
import java.util.Map;
import com.taobao.tddl.common.jdbc.ParameterContext;
import com.taobao.tddl.optimizer.core.plan.IDataNodeExecutor;
import com.taobao.tddl.optimizer.exceptions.QueryException;
/**
* <pre>
* 对执行计划树的优化,包含以下几个步骤:
* s8.为执行计划的每个节点选择执行的GroupNode
... | 29.346154 | 103 | 0.756225 |
ffc9d53906ef5bbe9150963df9fa578471a01d29 | 439 | package fr.openwide.maven.artifact.notifier.core.business.search.service;
import fr.openwide.maven.artifact.notifier.core.business.artifact.model.ArtifactVersion;
public interface IMavenCentralSearchUrlService {
String getGroupUrl(String groupId);
String getArtifactUrl(String groupId, String artifactId);
Strin... | 29.266667 | 88 | 0.831435 |
0d0b15f354e27e28d30669db048c01888a8601f7 | 4,156 | /*
* 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 ... | 33.788618 | 111 | 0.652069 |
ed6fd94ebca701437c735c842ffd67876806c407 | 164 | package com.designpattern.creational.factorymethod;
public class CombustionCar implements Car {
public String getEnergy() {
return "Gasoline";
}
}
| 20.5 | 51 | 0.719512 |
3a7dc1534ad5961bebc1eb3c146ac3fa919c6b01 | 343 | package com.knyaz.testtask.base.mvp;
public class State {
public static final int CREATE = 0;
public static final int START = 1;
public static final int RESUME = 2;
public static final int PAUSE = 3;
public static final int STOP = 4;
public static final int DESTROY_VIEW = 5;
public static f... | 31.181818 | 45 | 0.693878 |
5e9b774a380c71fb2c4c5b8cbcef5cf707d1171a | 1,186 | package com.swak.swing.support;
import java.util.concurrent.CompletableFuture;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 基础的页面
*
* @author lifeng
* @date 2020年5月21日 上午10:35:04
*/
public abstract class AbstractPage {
protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractP... | 15.813333 | 84 | 0.666105 |
ce6432135c0c3dd903a75cc16e1c52dae1e5ce92 | 33,166 | /*
* Copyright 2015 Goldman Sachs.
*
* 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 ... | 28.814944 | 125 | 0.619038 |
9e54b16806ead2a24408427adcf220fe310db681 | 1,503 |
package org.springframework.core.type;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
/**
* Abstract base class for testing implementations of
* {@link ClassMetadata#getMemberClassNames()}.
* @since 3.1
*/
public abstract class AbstractClassMetadataMemberCl... | 24.241935 | 76 | 0.751164 |
4f52061caf7cd934ac7ff4da9a16c9d594d8e2ea | 7,392 | package com.firedome.ravello.model;
import com.firedome.ravello.Resource;
import com.firedome.ravello.model.common.vm.RavelloMemorySize;
import com.firedome.ravello.model.common.vm.harddrive.RavelloHardDrive;
import com.firedome.ravello.model.common.vm.networkconnection.RavelloNetworkConnection;
import java.util.Arra... | 23.768489 | 90 | 0.672484 |
a740bb16d9acf037aeb02f979d2a2b49e58a3a6e | 826 | package com.github.theniles.archery.mixin;
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
import net.minecraft.entity.Entity;
import net.minecraft.entity.projectile.PersistentProjectileEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import java.util.List;
@Mixin(... | 27.533333 | 66 | 0.788136 |
c2b5d88c1dd49a7ffea52227ca5facceb2a1ed99 | 5,131 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 25.655 | 129 | 0.613526 |
0ddc4203eeaf78e780b5b828e1b29c31d4383549 | 17,343 | package us.ihmc.footstepPlanning.ui.components;
import us.ihmc.footstepPlanning.graphSearch.parameters.FootstepPlannerParameters;
public class SettableFootstepPlannerParameters implements FootstepPlannerParameters
{
private double idealFootstepWidth;
private double idealFootstepLength;
private double wiggle... | 26.805255 | 117 | 0.759327 |
01b677f25b9d6d156436ca61e55fa850c1c8a842 | 3,205 | package com.gpc.meinvxiupro.utils;
import android.content.Context;
import android.support.design.widget.Snackbar;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.gpc.meinvxiupro.MeinvxiuApplication;
import com.gpc.meinv... | 38.154762 | 133 | 0.697036 |
514c53334344773139c0ca1ad65bab4e0318ce74 | 4,493 | package com.qinyou.apiserver.sys.service.impl;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qinyou.apiserver.co... | 34.29771 | 101 | 0.648787 |
db281bd51e32aa8d7fe1fc3d769d22eeebde6784 | 1,352 | package marubinotto.piggydb.model.filters;
import static org.junit.Assert.*;
import marubinotto.piggydb.model.Filter;
import marubinotto.piggydb.model.FilterRepository;
import marubinotto.piggydb.model.auth.User;
import marubinotto.util.time.DateTime;
import org.junit.Test;
public class DefaultTest extends... | 29.391304 | 74 | 0.741124 |
81447b04afceee61e6c439cac299c97f9e8f0b57 | 521 | /*
* Copyright (c) 2017, GoMint, BlackyPaw and geNAZt
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint.world;
/**
* @author BlackyPaw
* @version 1.0
*/
public enum WeatherType {
/**
* Specifies entirely clear ... | 16.28125 | 59 | 0.614203 |
e4e319fbdf68140af3135d4032aa3ec8cc3de8b8 | 10,621 | /**
* Copyright © 2016-2019 The Thingsboard 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 applicab... | 47.627803 | 155 | 0.727992 |
d48fe0564a782edc241093b00904b46fa6879344 | 636 | /**
* This package contains case matching functionality where the object/value to match on is
* known on definition time of the cases. To start matching, use on of the static methods
* defined in class {@link de.boereck.matcher.eager.EagerMatcher EagerMatcher}. The implementation
* is optimized to create as few obj... | 57.818182 | 108 | 0.773585 |
4e9fbe8b21b31be7d67e93bd73ab2cb92da22dc3 | 5,333 | /*
* Copyright 2013 Robert von Burg <eitch@eitchnet.ch>
*
* 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 appl... | 31.187135 | 105 | 0.68723 |
3404c59e4d720b47bd58f5f0df35e00647a3390f | 1,200 | package com.example.vendingmachine.model;
import java.util.HashMap;
import java.util.Map;
public class Inventory<T> {
private Map<T, Integer> inventory = new HashMap<>();
public int getQuantity(T item) {
Integer value = inventory.get(item);
return value == null ? 0 : value;
}
public... | 23.076923 | 66 | 0.563333 |
4a95396a1d6830d292aa5985b40e07b2910d7fb3 | 1,982 | /**
* NOTE: This class is auto generated by the swagger code generator program (3.0.32).
* https://github.com/swagger-api/swagger-codegen Do not edit the class manually.
*/
package de.skuld.web.api;
import de.skuld.web.model.RandomnessQuery;
import de.skuld.web.model.Result;
import io.swagger.v3.oas.annotations.Ope... | 49.55 | 220 | 0.783047 |
021fb9284dedcb89fd56a1a028d1e5badc5a94c4 | 1,471 | package de.feli490.feliutils.items;
import org.bukkit.inventory.ItemStack;
public enum DefaultSkulls {
RED_CROSS("5ecfabf0-5253-47b0-a44d-9a0c924081b9", "RED_CROSS",
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmViNTg4YjIxYTZmOThhZDFmZjRlMDg1YzU1MmRjYjA1MG... | 56.576923 | 196 | 0.831407 |
c62c5dd7e891844eb41fd0a66344b02124539f02 | 11,944 | package com.pichs.filechooser;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
imp... | 29.27451 | 151 | 0.557351 |
4d7443fc8af64fc033beda55729ba047587fdc18 | 24,639 | /*
* Copyright 2018 Red Hat, 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 t... | 42.481034 | 192 | 0.61841 |
9586da5e024ac5cde2e8a1b5740728b31d7d604d | 1,002 | package com.aman.log4j2;
/* ################### */
/* Author : AMAN VERMA */
/* ################### */
public class CircleRect {
private int rectangleLength;
private int rectangleBreadth;
private float circleRadius;
public CircleRect(int rectangleLength, int rectangleBreadth) {
this.rectangleLength = rectangl... | 23.857143 | 63 | 0.721557 |
ac69382b930298837d1a0b35494a1b1148acf77a | 6,523 | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: Kiyingi Simon Peter
* License Type: P... | 52.604839 | 100 | 0.791814 |
6fca9fc00d6345bb804ba5a7df4eb3747459a17d | 2,519 | package pl.polsl.workflow.manager.server.mapper;
import org.springframework.stereotype.Component;
import pl.polsl.workflow.manager.server.model.Task;
import pl.polsl.workflow.manager.server.view.TaskPost;
import pl.polsl.workflow.manager.server.view.TaskView;
import pl.polsl.workflow.manager.server.view.TaskWorkerRepo... | 42.694915 | 123 | 0.734418 |
b2201b1ae891a9d30ebabcae63605a21f8134717 | 1,779 | package com.davidbracewell.apollo.ml.clustering.topic;
import com.davidbracewell.apollo.Optimum;
import com.davidbracewell.apollo.linear.NDArray;
import com.davidbracewell.apollo.ml.Instance;
import com.davidbracewell.apollo.ml.clustering.Clusterer;
import com.davidbracewell.apollo.ml.clustering.flat.FlatClustering;
i... | 26.161765 | 75 | 0.711636 |
2a13ac34f71653d3d6683b51ac889a569d718850 | 1,485 | package de.shiirroo.islands.command.subcommands.islandscommands;
import de.shiirroo.islands.IslandsPlugin;
import de.shiirroo.islands.command.CommandBuilder;
import de.shiirroo.islands.command.SubCommand;
import org.bukkit.*;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.entit... | 29.7 | 113 | 0.688215 |
6412105321c6bb65dd882f1747cf347cc2cd14fc | 5,388 | /*-
* #%L
* anchor-io-input
* %%
* Copyright (C) 2010 - 2021 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software with... | 37.678322 | 100 | 0.70026 |
708fa46eb43d39ae5c41c50c236e2b94c364b8a5 | 131 | package lab6.organizaton;
public class Doctor extends OperationsStaff
{
public String[] specialty;
public String[] locations;
}
| 16.375 | 43 | 0.78626 |
acf6adf402bf5619c211bdbfc6d2818cf5569a2e | 319 | package com.sflpro.notifier.externalclients.push.firebase;
/**
* Created by Hayk Mkrtchyan.
* Date: 7/5/19
* Time: 3:43 PM
*/
final class MessageSendingFaildException extends RuntimeException {
MessageSendingFaildException(final String message, final Throwable cause) {
super(message, cause);
}
}
| 22.785714 | 79 | 0.730408 |
abd141656a310fbb944258ab01978247a63f60fc | 8,601 | package com.young.mall.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.github.binarywang.wxpay.bean.request.WxPayRefundRequest;
import com.github.pagehelper.PageHelper;
import com.young.db... | 37.395652 | 126 | 0.67155 |
33dd8511cb72ff123a3cce1e23b22280a45fdff2 | 653 | package io.quarkus.it.artemis;
import java.util.Random;
import javax.jms.Connection;
import javax.jms.JMSException;
import javax.jms.Session;
import org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory;
public interface ArtemisHelper {
default String createBody() {
return Integer.toStrin... | 28.391304 | 109 | 0.750383 |
dcddaacbc42ef3f166486cb4a66098295d7229ec | 6,786 | /**
* Copyright 2019 Association for the promotion of open-source insurance software and for the establishment of open interface standards in the insurance industry (Verein zur Förderung quelloffener Versicherungssoftware und Etablierung offener Schnittstellenstandards in der Versicherungsbranche)
*
* Licensed under... | 49.173913 | 295 | 0.749926 |
44dc603b2a5b4b8b7a144eea3bfcb0b1a2425264 | 4,929 | /*
* MIT License
*
* Copyright (c) 2020 TerraForged
*
* 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, modi... | 36.242647 | 104 | 0.663421 |
2ff183443cf10fdaf60e16767a2d2800d541938a | 1,781 | import com.launchdarkly.sdk.LDUser;
import com.launchdarkly.sdk.LDValue;
import com.launchdarkly.sdk.server.LDClient;
import java.io.IOException;
public class Hello {
// Set SDK_KEY to your LaunchDarkly SDK key before compiling
static final String SDK_KEY = "sdk-dd6dc077-97f0-4aa5-a366-81855423818e";
// Set F... | 41.418605 | 103 | 0.679394 |
1e37a424ccd1de4e3a41cfddcf1fc4619c75666e | 13,359 | /*
* 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 ... | 34.879896 | 140 | 0.642189 |
8c24a950b62adc4a8915bc83dc6693f8ceefefec | 3,791 | /**
* Copyright 2012-2020 Solace Corporation. All rights reserved.
*
* http://www.solace.com
*
* This source is distributed under the terms and conditions
* of any contract or contracts between Solace and you or
* your company. If there are no contracts in place use of
* this source is not authori... | 42.595506 | 140 | 0.691902 |
94f7e897421b238a58da7e38bbc7fc63733eae96 | 634 | /*
* Copyright (c) 2019 Gili Tzabari
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package org.bitbucket.cowwoc.requirements.java.internal.secrets;
import org.bitbucket.cowwoc.requirements.java.JavaRequirements;
import org.bitbucket.cowwoc.requirements.java.i... | 27.565217 | 94 | 0.733438 |
c157e837007fad5a14e0e165a5917367b3f5c375 | 795 | package container;
/**
* An interface of table that provides ordering the keys in ascending order.
*
*/
public interface SortedTable <K extends Comparable<K>, V> extends Table<K, V> {
/**
* Get the minimal key in the table.
* @return The minimal key in the table.
*/
abstract public K minKey... | 20.921053 | 79 | 0.597484 |
a2c9a6e3190fd9b093b0d909156bbc11549587e8 | 451 | package com.github.elic0de.spigotcommandlib.invocation;
public class CommandInvocationException extends Exception {
public CommandInvocationException() {
}
public CommandInvocationException(String message) {
super(message);
}
public CommandInvocationException(String message, Throwable cau... | 23.736842 | 72 | 0.716186 |
ca7effb4bbd78d7a11e8133fe72cf2533b9c729c | 8,531 | package com.example.bluetooth.le;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import java.util.UUID;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.conte... | 25.773414 | 78 | 0.716446 |
e30b4faa04b70fbbc602a407b1ae302c69ba333f | 1,300 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 27.659574 | 75 | 0.686154 |
5912336073877aec6c103edce3b6a9a96fbc7998 | 369 | package com.shangguan.product.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.shangguan.product.entity.ProductCategory;
public interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer>{
List<ProductCategory> findByCat... | 28.384615 | 92 | 0.818428 |
9e61cea4b1d8fffbff526cb18786b317428ceec1 | 441 | package com.atlassian.clover.recorder;
/**
* Helper class which keeps result of the per-test recording.
*/
public final class RecordingResult {
public final LivePerTestRecording recording;
public final ActivePerTestRecorderAny recorders;
public RecordingResult(LivePerTestRecording recording, Ac... | 29.4 | 97 | 0.732426 |
ef1554a521897fc5fcbf2ea7b9f97ea11dc921fc | 6,155 | package org.elastos.hive;
import org.elastos.hive.exception.HiveException;
import org.elastos.hive.network.response.VaultInfoResponseBody;
import org.elastos.hive.payment.Order;
import org.elastos.hive.payment.PricingPlan;
import org.elastos.hive.payment.Receipt;
import org.elastos.hive.service.PaymentService;
import ... | 25.753138 | 157 | 0.747035 |
e21a8d11c23f644772c7e5e8b3b4f4af834d526c | 10,637 | package us.myles.ViaVersion.protocols.protocol1_16to1_15_2.packets;
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
import com.github.steveice10.opennbt.tag.builtin.IntArrayTag;
import com.github.steveice10.opennbt.tag.builtin.StringTag;
import com.github.steveice10.opennbt.tag.builtin.Tag;
import us.myl... | 45.457265 | 124 | 0.531917 |
9f50c9dc69c22290ff0d80dd2c6e1b77ea664aff | 1,086 | /**
* Brute force solution
*/
public class LPS {
public int findLPSLength(String input){
if(input == null || input.length() == 0) return 0;
return findLPSLengthRecursive(input, 0, input.length() - 1);
}
private int findLPSLengthRecursive(String input, int startIndex, int endI... | 29.351351 | 84 | 0.61418 |
51f5e5f355516a02dccddf14a265e1eb31bbd389 | 2,730 | package cn.yescallop.googletrans4j;
import cn.yescallop.googletrans4j.internal.TransRequestBuilderImpl;
import java.util.Set;
/**
* A <i>Google Translate</i> request.
*
* @author Scallop Ye
*/
public interface TransRequest {
/**
* Creates a new {@code TransRequest} builder.
*
* @return a new ... | 22.016129 | 87 | 0.531868 |
a3b6c638f065d2f39e30c66f77e3900e7269ae45 | 1,507 | /*
* Copyright (c) 2017 by Gerrit Grunwald
*
* 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... | 38.641026 | 75 | 0.681486 |
762689bdf21c5adda8bd6bd8bed31dbb6a165e1f | 2,199 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.preferences.datareduction;
import android.content.Context;
import android.text.format.Formatter;
/**
* Stores the d... | 30.123288 | 97 | 0.673943 |
59be29452c0ffd8d3216bfbfbbace39e26afbee2 | 4,112 | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | 35.756522 | 75 | 0.652967 |
4a220daa364e7a934b1556a2c14cefa160fa46c1 | 541 | // Generated by esidl 0.4.0.
package org.w3c.dom.typedarray;
import org.w3c.dom.LongArray;
public interface Int32Array_Constructor
{
// Constructor
public Int32Array createInstance(int length);
public Int32Array createInstance(ArrayBufferView array);
public Int32Array createInstance(LongArray array);... | 31.823529 | 85 | 0.787431 |
5eb87acd478c9b9511895b46b2cc71b40c58bfe2 | 3,521 | package com.checkout.hybris.facades.payment.converters.populators;
import com.checkout.hybris.core.merchant.services.CheckoutComMerchantConfigurationService;
import com.checkout.hybris.core.model.CheckoutComCreditCardPaymentInfoModel;
import com.checkout.hybris.core.payment.resolvers.CheckoutComPaymentTypeResolver;
im... | 35.565657 | 103 | 0.756035 |
6cb14f66d1c804f97bfd3ea59edcbc213adaea4d | 1,169 | package au.com.manthey.devtest;
import spark.Spark;
import static au.com.manthey.devtest.PANValidator.validate;
import static spark.Spark.get;
import static spark.Spark.port;
public class RestApp {
public static final String SERVER = "localhost";
public static final int PORT = 8080;
public static final S... | 29.225 | 148 | 0.560308 |
e6d90de403c7a01661758b3483870ff0bdeadc72 | 4,019 | package com.github.NervousOrange.dao;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.sql.*;
public class H2JdbcDAO implements CrawlerDAO {
Connection connection;
static final String databaseURL = "jdbc:h2:file:C:/Users/zch69/recipes/Multi-Threaded-Crawler/CrawlerDatabase";
public... | 35.254386 | 179 | 0.602389 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.