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 |
|---|---|---|---|---|---|
79c7a680bc09814b62b49a90365018facedce9ad | 1,724 | /*
* Copyright (c) 2010-2013 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.web.page.admin.server.dto;
import com.evolveum.midpoint.prism.query.builder.S_AtomicFilterEntry;
i... | 41.047619 | 138 | 0.74652 |
8fe0c6cdb52365ca1ada77affdda71a5f4293837 | 8,587 | package phantom.mvc.swagger.pluggin;
import static springfox.documentation.schema.Collections.collectionElementType;
import static springfox.documentation.schema.Collections.isContainerType;
import static springfox.documentation.swagger.common.SwaggerPluginSupport.SWAGGER_PLUGIN_ORDER;
import com.fasterxml.classmate.... | 39.210046 | 105 | 0.787819 |
87b30962dcbf046956247ad46ac70d182565b082 | 1,171 | /*
* Copyright (C) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 24.395833 | 80 | 0.681469 |
2cd476fecba15e8da940267f1647743e21d50e96 | 4,959 | package com.microsoft.azure.kusto.data;
import com.microsoft.azure.kusto.data.exceptions.DataClientException;
import com.microsoft.azure.kusto.data.exceptions.DataServiceException;
import com.microsoft.azure.kusto.data.exceptions.DataWebException;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.Htt... | 43.121739 | 144 | 0.607582 |
0d0be43c6e1b34840be908b4dac75261113328b2 | 3,331 | package org.Jcing.controls;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import org.Jcing.main.Main;
/**
* InputManager manages Mouse / -motion and KeyEvents. It holds public stati... | 25.427481 | 92 | 0.651756 |
e80970e8e4c6381c49ab8905d5018be8ee37617c | 4,570 | package com.codepath.apps.restclienttemplate;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.format.DateUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.... | 29.675325 | 114 | 0.683151 |
3746e3b62a7102156369a8702f522aa6d32acf7b | 503 | package com.laytonsmith.abstraction.enums;
import com.laytonsmith.annotations.MEnum;
/**
*
* @author jb_aero
*/
@MEnum("SpawnReason")
public enum MCSpawnReason {
BED,
BREEDING,
BUILD_IRONGOLEM,
BUILD_SNOWMAN,
BUILD_WITHER,
CHUNK_GEN,
/**
* Spawned by plugins
*/
CUSTOM,
/**
* Missing spawn reason
... | 12.897436 | 42 | 0.697813 |
705ace3f772358013145463f60f0643b02426fe5 | 25,216 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 agre... | 33.178947 | 135 | 0.688016 |
c8343245165bc9cfefdffe9ffd7e20ff00ecec64 | 629 | package com.github.hotreload.config;
import static com.github.hotreload.utils.ReloadUtil.joinKeywords;
import static org.apache.commons.collections4.CollectionUtils.isEmpty;
import java.util.List;
import com.github.hotreload.model.JvmProcess;
import lombok.Data;
/**
* @author liuzhengyang
*/
@Data
public class A... | 21.689655 | 70 | 0.720191 |
3238d2b54099426084ff7b4e8becd050270b83d2 | 1,548 | /******************************************************************************
*
* Copyright (c) 1999-2011 Cryptzone Group AB. All Rights Reserved.
*
* This file contains Original Code and/or Modifications of Original Code as
* defined in and that are subject to the MindTerm Public Source License,
* Version 2.0... | 36.857143 | 83 | 0.665375 |
4ac1a3035842f7f50e8dd05a13e605df952b9113 | 652 | package main.boot;
public class Preference {
public String service;
public static class User{
public String name;
public String pass;
public int last;
}
public User[] users=new User[0];
public boolean store=false;
public boolean showMainWindowAtStartup=true;
publ... | 22.482759 | 72 | 0.720859 |
7bd9d703c15ace26ec70fc8d177fcc4588a8646e | 1,774 | package com.mehmetpekdemir.lion.service.impl;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.data.domain.Pageable;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import com.mehmetpekdemir.lion.dto.UserCreateDT... | 30.586207 | 104 | 0.801015 |
bf7a8f020891cd9ce4e80fd06a2e67d377af34ba | 2,107 | // Copyright 2016 The Sawdust Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 32.921875 | 124 | 0.651637 |
f6142113ed6d845a68520d1282e6633fc7244425 | 1,650 | package org.smoothbuild.exec.base;
import static com.google.common.collect.Streams.stream;
import static org.smoothbuild.cli.console.Level.ERROR;
import static org.smoothbuild.cli.console.Level.INFO;
import static org.smoothbuild.cli.console.Level.WARNING;
import java.util.Set;
import org.smoothbuild.cli.console.Lev... | 30.555556 | 98 | 0.752121 |
78d7d1f24002fd820cda51a25dcedf9d2f016884 | 1,889 | package net.hogelab.android.androidui.mediacontrolandnotification;
/**
* Created by hirohisa on 2015/01/28.
*/
public class PlayerAction {
public static final String SYSTEM_METACHANGED = "com.android.music.metachanged";
public static final String SYSTEM_PLAYSTATECHANGED = "com.android.music.playstatechanged"... | 60.935484 | 101 | 0.785601 |
c91453704867da60c4f71affbc7516c5a83d0ab9 | 8,464 | package RenderEngine;
import Models.RawModel;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
/*
An Object file parser to prevent hard coding of Models in the game. These object files have certain
characteristi... | 48.090909 | 134 | 0.603379 |
c8efdd2480316f12661b15456bd99d2b42388d27 | 416 | package com.groupproject.repository;
import com.groupproject.entities.OrderDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface OrderDetailsRepository extends JpaRepository<OrderDetails , Long> {
... | 27.733333 | 84 | 0.824519 |
170a7249af68a974454573b66e8ebfdb33a3a81c | 636 | package de.vinado.wicket.participate.components.panels;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
/**
* @author Vincent Nadoll (vincent.nadoll@gmail.com)
*/
public class CheckboxPanel<T> extends Panel {
private I... | 21.931034 | 66 | 0.666667 |
73c737185307e83fbc2855f2a8ddd533444fb71d | 4,942 | /*
* Copyright 2018-2019 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
*
* Unle... | 47.066667 | 206 | 0.75435 |
0cb5925c459385ada9cb1771244760663c0d181e | 381 | package arrays;
import java.util.Arrays;
public class ArraysBinarySearch2 {
public static void main(String[] args) {
int arr[] = {29, 3, 50, 9, 12, 73, 5, 89, 5, 34, 8, 97};
int key = 12;
Arrays.sort(arr);
System.out.println("Arrays after sort: "+Arrays.toString(arr));
System.out.println(key + " foun... | 21.166667 | 86 | 0.643045 |
5160404f690cbd4af7db5360323c1fb8df95006f | 585 | package uk.gov.hmcts.reform.sscs.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "No appeal for given id")
public class AppealNotFoundException extends RuntimeException {
public AppealNotF... | 32.5 | 86 | 0.752137 |
16e990c4efadc69d4e22fcd167a249e76169fb6e | 2,437 | import java.io.*;
import java.util.*;
public class Main {
static FastReader fastReader = new FastReader();
static StringBuilder sb = new StringBuilder();
static void input() {
N = fastReader.nextInt();
column = new int[N + 1];
}
static int N, ans;
static int[] column;
sta... | 25.123711 | 82 | 0.472302 |
290693d320bc960ae9ae4dcc955b09f591299738 | 476 | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Of Fire Twins Wesp 2015. /
// Alise Wesp & Yuuki Wesp /
/////////////////////////////////////////////////////////////////////////////... | 36.615385 | 80 | 0.342437 |
2f2fa661e431f01ba881b94824f5920e5bd04fd9 | 131 | package oocl.ita.keyboardman.parkinglotmanagerhelperbackend.exception;
public class NoFeezeException extends RuntimeException {
}
| 26.2 | 70 | 0.870229 |
a018777ebffe224ed7c96d09301e0fc05cc6b6da | 1,178 | package com.divide2.product.vo;
import com.divide2.product.dto.UnitDTO;
import com.divide2.product.model.Product;
import com.divide2.product.model.ProductSpec;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.L... | 20.310345 | 49 | 0.664686 |
0ce8b5e2c9cada3c155e8f39d41854679937ee65 | 1,333 | package com.destiny.squirrel.utils;
import com.destiny.squirrel.entity.User;
import lombok.extern.slf4j.Slf4j;
import ognl.Ognl;
import ognl.OgnlException;
import java.util.HashMap;
import java.util.Map;
/**
* @Description ognl 数据
* @Author liangwenchao
* @Date 2021-11-18 10:10 AM
*/
@Slf4j
public class OgnlTest... | 24.685185 | 98 | 0.645161 |
a4bf28a3794e7e61864e7a88a081a440b0e1320a | 7,282 | package org.ovirt.engine.ui.userportal.section.main.presenter.tab.basic;
import java.util.Arrays;
import org.ovirt.engine.core.compat.Event;
import org.ovirt.engine.core.compat.EventArgs;
import org.ovirt.engine.core.compat.IEventListener;
import org.ovirt.engine.ui.common.widget.HasEditorDriver;
import org.ovirt.eng... | 34.511848 | 198 | 0.700494 |
472610f11047860d522163218b82333855eefe92 | 1,880 | package com.gu.test.Common;
import com.gu.test.helpers.PageHelper;
import com.gu.test.pages.FrontPage;
import com.gu.test.pages.SectionFront;
import com.gu.test.shared.NavigationBar;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
... | 30.819672 | 142 | 0.713298 |
346e2b66beb97dd05ea4a05caf003268b8b8a8ea | 1,098 | package org.eck;
import java.util.HashMap;
import java.util.Map;
import org.eck.exceptions.NoCollectorRegistredException;
import org.sql2o.Sql2o;
public class Yno {
private Sql2o sql2o;
@SuppressWarnings("rawtypes")
private Map<Class, Collector> collectors = new HashMap<Class, Collector>();
public ... | 27.45 | 79 | 0.661202 |
c41aecc93a99a07065046e65f5294f6005412683 | 1,967 | package de.uni_hildesheim.sse.vil.templatelang.ui.resources;
public class Images {
// VIL build language (also includes images for VIL template language)
public static final String NAME_ADVICE = "advice.jpg";
public static final String NAME_IMPORT = "import.jpg";
public static final String NAME_PARAML... | 54.638889 | 85 | 0.751398 |
d9b5b78112e8cd5065e5ea024a86c93c2ebaaba9 | 2,429 | /*
* Copyright 2018 Matt Liotta
*
* 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 i... | 28.244186 | 150 | 0.738576 |
58ce953306d0d92bc0b7126f1d211f870f5a60dd | 66 | package com.lu.test.beantest.service;
public class LuServie {
}
| 11 | 37 | 0.757576 |
1b66c2e22796c35b4d71f2d8cf85b93fc27803c7 | 8,401 | /*
The MIT License
Copyright 2016, 2017, 2018 Rudy Alex Kohn.
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... | 39.441315 | 211 | 0.637781 |
97400b47fee5cdcc55153c04b171a05a7de845ba | 309 | package bashir1.fueltrack;
/**
* Created by bashir1 on 1/28/16.
*/
/* https://github.com/b26/FillerCreepForAndroid/blob/master/app/src/main/java/es/softwareprocess/fillercreep/FView.java */
public interface LogView<Model> {
/* gets called by the model in notifyViews*/
void update(Model model);
}
| 25.75 | 122 | 0.728155 |
118eeaaf5dbc854710b30d5219dae9ce8af33de5 | 356 | package com.testwithspring.starter.testdata.javabean;
/**
* Declares the methods used to delete {@code Task} objects.
*/
public interface TaskRepository {
/**
* Deletes task whose id is given as a method parameter.
* @param id The id of the requested task.
* @return The deleted task.
... | 23.733333 | 60 | 0.657303 |
62826af7a20bb25b597c358df7bbe7407036e3f6 | 1,935 | package cn.yiya.shiji.entity;
import java.util.List;
/** 店铺单个订单佣金明细
* Created by Amy on 2016/10/20.
*/
public class OrderCashInfo {
/**
* cash_amount : 200 //佣金总计
* goods_list : [{"id":"1324jj23h11","num":2,"title":"nike","price":22,"goods_cash":100}]
*/
private int cash_amo... | 21.263736 | 94 | 0.513178 |
b1b6ee8f675adf3910f521958a49d9a4f1b22c88 | 2,834 | package xyz.kkt.burpplefoodplaces.mvp.presenters;
import android.content.Context;
import android.database.Cursor;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import xyz.kkt.burpplefoodplaces.BurppleApp;
import xyz.kkt.burpplefoodplaces.data.model.BurppleModel;
import xyz.kkt.burpp... | 28.059406 | 94 | 0.6235 |
ff1be40d1c73d90f2668c90a5f823849ab3f7db9 | 1,713 | @Override
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
XMPPService xmpp = XMPPServiceFactory.getXMPPService();
Message msg = xmpp.parseMessage(req);
JID jid = msg.getFromJid();
String body = msg.getBody();
LOG.info(jid.getId() ... | 40.785714 | 93 | 0.575015 |
9d37be681dcbc9aacb8c3efe9ab07363aa294df7 | 12,252 | package top.nowandfuture.gamebrowser.gui;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.util.ResourceLocation;
import net.montoyo.mcef.api.*;
import org.jline.utils.Log;
import top.nowandfuture.gamebrowser.InGameBrowser;
import top.nowandfuture.gamebr... | 33.384196 | 169 | 0.561296 |
e4a8eb59a88efae004defe0fa9a4045d585cbeb3 | 1,307 | package metrics;
import org.junit.Assert;
import org.junit.Test;
public class LinesOfCodeTest {
LinesOfCode loc = new LinesOfCode();
@Test
public void testStrcompLineCheckerDoubleSlash() {
String doubleSlashLine = "// line starting with double slash";
Assert.assertTrue(loc.strcompLineChecker(doubleSlashLine)... | 25.627451 | 68 | 0.762816 |
8b63229ac7e5d6658d359c81ffeb9f17cc1be8f7 | 1,499 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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/li... | 46.84375 | 90 | 0.763843 |
b26c64ea6b8f2fcbc85f0f6ca8b13d6e793233c4 | 16,371 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license... | 38.793839 | 128 | 0.663551 |
fbb48fbc2bb65a0d68844e59185a96fb9732454c | 8,131 | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFacto... | 59.350365 | 138 | 0.489731 |
02544a4ec08cebef79f8b90810e91837685aa81c | 6,491 | package java_course;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
public class A410877027_11_1 {
static int numsCount;
static String nums = "not Null";
static int size = 1;
static List<String>... | 43.563758 | 113 | 0.450778 |
628f2d33b100ab8e73739a891bf1d3884f0faea7 | 454 | package com.mimacom.shapeservice.services;
import com.mimacom.shapeservice.model.Shape;
import org.assertj.core.api.BDDAssertions;
import org.junit.Test;
public class ShapeServiceTest {
ShapeService shapeService = new ShapeService();
@Test
public void should_return_correct_triangle_calculation() {
... | 26.705882 | 65 | 0.751101 |
2de55ce074595ef4e74faafa094614a67374e25d | 83 | package com.codefellows.admintools.anotherpackage;
public class SomethingElse {
}
| 16.6 | 50 | 0.831325 |
ccdb2c172ce306e2fef84181e6ac408a3a0f9fd6 | 2,240 | /*
* 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 lab4_davidariel;
/**
*
* @author ariel
*/
public class pilotos {
private String nombre;
private int edad;
priva... | 22.626263 | 219 | 0.617857 |
2862c9e4a51af498b58ba2a278fcee61c0719586 | 690 | package lk.ijse.dep.fcms.bo.custom;
import lk.ijse.dep.fcms.bo.SuperBO;
import lk.ijse.dep.fcms.dto.MembershipDTO;
import lk.ijse.dep.fcms.dto.MembershipDetailDTO;
import lk.ijse.dep.fcms.dto.PaymentDTO;
import java.util.List;
public interface PaymentBO extends SuperBO {
boolean savePayment(PaymentDTO payment)t... | 26.538462 | 62 | 0.789855 |
f38b8ca0a497763798a5b829823c66279ee5fa24 | 977 | package edu.salesianos.triana.realstatev2_2022.dto.inmobiliariaDto;
import edu.salesianos.triana.realstatev2_2022.model.Inmobiliaria;
import org.springframework.stereotype.Component;
@Component
public class InmobiliariaDtoConverter {
public Inmobiliaria createInmobiliariaDtoToInmobiliaria(CreateInmobiliariaDto ... | 31.516129 | 105 | 0.67349 |
22ff0b9b6d4b470e12de6bdb4b6b941151f2cef5 | 1,959 | package com.wang.basic.levenshtein;
import lombok.extern.slf4j.Slf4j;
/**
* @description: 编辑距离算法——判断字符串相似度
* @author: wei·man cui
* @date: 2020/11/20 17:19
*/
@Slf4j
public class LevenshteinUtil {
public static Double levenshtein(String str1, String str2) {
//计算两个字符串的长度。
int len... | 27.208333 | 99 | 0.436958 |
8bfe0afe932f3ab3018c40a0326f90a29cea800d | 2,021 | package com.luo.jobx.core.rpc;
import com.luo.jobx.core.exception.ExceptionX;
import com.luo.jobx.core.rpc.encoder.RpcRequest;
import com.luo.jobx.core.rpc.encoder.RpcResponse;
import com.luo.jobx.core.util.RpcUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.sprin... | 28.464789 | 108 | 0.591786 |
949bf712f28d803853850ef3c32aebc2d5957ae5 | 7,868 | package com.vliolios.eventposter;
public class RepositorySettings {
interface Keys {
String WEBHOOK = "webhook";
String PULL_REQUEST_COMMIT_COMMENT_ADDED_ON = "pullRequestCommitCommentAddedOn";
String PULL_REQUEST_COMMENT_REPLIED_ON = "pullRequestCommentRepliedOn";
String PULL_REQUEST_COMMENT_EDITED_ON = "pu... | 32.783333 | 103 | 0.818124 |
f74523f0ef9b1d6899ae6a77aeab2436a4a00e84 | 978 | package edu.emory.bmi.tcia.client.exceptions;
/**
* The TCIA Client Exception
*/
public class TCIAClientException extends Exception {
private static final long serialVersionUID = -2548423882689490254L;
private String requestUrl;
public TCIAClientException(String requestUrl) {
super();
this.requestUrl = r... | 21.26087 | 86 | 0.729039 |
ed3d865b1b6a0fd76b6fdc9f3329235e6306abb1 | 1,651 | /*
* 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... | 38.395349 | 107 | 0.750454 |
56630b60b7bff830941c3a995783ace1ad59133f | 446 | package me.egg82.ae.api.enchantments;
import java.util.UUID;
import me.egg82.ae.api.AdvancedEnchantment;
import me.egg82.ae.api.AdvancedEnchantmentTarget;
public class PoisonousEnchantment extends AdvancedEnchantment {
public PoisonousEnchantment() {
super(UUID.randomUUID(), "poisonous", "Poisonous", fals... | 31.857143 | 72 | 0.753363 |
0563bfde555db693ff738c9d5bdd42cd9e77d8cf | 15,994 | /**
HostNotificationProfile.java
Copyright (c) 2014 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package com.nttdocomo.android.dconnect.deviceplugin.host.profile;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.List;
im... | 37.023148 | 117 | 0.572277 |
7823bdc78a1998fc279f6a25a18b97590e4f2156 | 732 | import java.util.List;
import java.util.Map;
import java.util.HashMap;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Select;
@Mapper
@Repository
public interface SqlInjectionMapper {
List... | 21.529412 | 54 | 0.739071 |
9b7105f91c59a9a76ab6734772427fdb6c86cf18 | 958 | package io.perfeccionista.framework.exceptions;
import io.perfeccionista.framework.exceptions.base.PerfeccionistaRuntimeException;
import io.perfeccionista.framework.exceptions.base.Reason;
import org.jetbrains.annotations.NotNull;
public interface MethodInvocationFailed extends Reason {
static MethodInvocationF... | 31.933333 | 108 | 0.76618 |
6816df3b4373a57692e9ac6b164235c623e00822 | 2,368 | /*
* 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 concessionaria;
import java.util.ArrayList;
import java.util.List;
/**
* A classe estoque possui a relação de carros da conc... | 32.888889 | 119 | 0.629223 |
0d659e81cdecbc461db06dfe221ab890acf1d3fc | 366 | package LinkedDB.UI;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.TreeItem;
/**
* This class defines the Abstract class for the new TreeView and its ContextMenu that shows on the Main Window
*
* @author Roger Valderrama
*/
public abstract class TreeAbstractNode extends TreeItem<String> {
... | 22.875 | 111 | 0.773224 |
8b2aab29bfa21e8db0ecb91af0c8d9c7ac40f88f | 939 | package com.github.shaigem.linkgem.ui.listeners;
import com.github.shaigem.linkgem.model.item.BookmarkItem;
import com.github.shaigem.linkgem.model.item.FolderItem;
import com.github.shaigem.linkgem.ui.dialog.bookmark.BookmarkEditorDialog;
import com.github.shaigem.linkgem.ui.dialog.folder.FolderEditorDialog;
import c... | 36.115385 | 82 | 0.763578 |
8b0e17c236b8a5174d44a4387ec1d1dc5b1379e2 | 976 | package io.cloudreactor.javaquickstart;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
/** JUnit5 example test adopted from... | 28.705882 | 145 | 0.663934 |
613434223b698fe1d5fb9b8b2d52da697e25af2f | 7,573 | /*
* 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 Library.Management.System;
import net.proteanit.sql.DbUtils;
import java.awt.*;
import java.awt.event.MouseAdapter;
import ja... | 44.02907 | 312 | 0.664994 |
a95c817c70712543152c756fcd0632f37ac44771 | 870 | package org.seasar.doma.internal.jdbc.command;
import static org.seasar.doma.internal.util.AssertionUtil.assertNotNull;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Stream;
import org.seasar.doma.internal.jdbc.scalar.Scalar;
import org.seasar.doma.jdbc.query.SelectQu... | 31.071429 | 96 | 0.77931 |
4d42925ee6ec561df15a55bca7e94c081084792d | 13,840 | package mathtools;
import hashtools.Key;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
public class Order_old<V> {
/* * * * * * * *
* FIELDS *
* * * * * * * */
protected HashSet<V> elements;
protected HashSet<Key<V, V>> trans = null; // The transitive closure of order... | 24.758497 | 103 | 0.614884 |
e36c5875bbc4df30189dcf2c205b1b6c1f3f594b | 1,438 | package com.example;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.config.annotation.CorsRegist... | 27.132075 | 74 | 0.757302 |
c1f43c5d1c705206cc1b2edd4502be1bb352ecb7 | 3,431 | package seedu.address.model.person;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Objects;
public class Duration {
public static final String MESSA... | 35.371134 | 118 | 0.688429 |
871607da1e0d7f63a0f47ac744ed76d946658a7e | 6,245 | import javax.swing.*;
import java.awt.*;
import java.awt.Color;
import java.awt.event.*;
import java.awt.image.BufferedImage;
/**
* Created by Rak Alexey on 4/3/17.
*/
public class Application extends JFrame{
private ImagePanel panel;
private double textAngle;
private int textDeep;
private String t... | 34.502762 | 128 | 0.582546 |
113b84145847f2598e25b1d48e0cc8b8d8b33d73 | 2,060 | package com.springessentialsbook.chapter5.service.impl;
import com.springessentialsbook.chapter5.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.core.Authentication;
import org.s... | 33.770492 | 96 | 0.739806 |
3c69dc20c98db1be9b7840937dd027f424b628b3 | 1,071 | /**
* @fileName: BinarySearch.java
* @author: Akhash Ramamurthy
* @CreatedOn: Jun 23, 2019
*
*/
package com.akh.algorithms.leetcode.easy.lc704;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* @fileName: BinarySearch.java
* @author: Akhash Ramamurthy
* @Created on: Jun 23, 2019
*
... | 19.472727 | 72 | 0.637722 |
6320afbba8a47049ad9b668573e2fca0a3639698 | 161 | package controller.util;
public interface IPSeekerMessage {
String bad_ip_file = "IP库文件错误";
String unknown_country = "未知国家";
String unknown_area = "未知地区";
}
| 20.125 | 34 | 0.757764 |
12594b21e4b1f39de77cac0e606fa87f169821d9 | 2,952 | package com.bytezone.dm3270.replyfield;
// -----------------------------------------------------------------------------------//
public class Highlight extends QueryReplyField
// -----------------------------------------------------------------------------------//
{
private static final String[] values =
{ "No... | 32.086957 | 88 | 0.469512 |
c3cbf42fffd49c28f7d74d44d4fdcdcbc0032873 | 122 | @Presentation
package fr.ubordeaux.ddd.examples.presentation;
import fr.ubordeaux.ddd.annotations.packages.Presentation;
| 24.4 | 58 | 0.852459 |
f8d2cb6deef995289fbec1fe7b67024238ab6dec | 3,398 | /*
* Seldon -- open source prediction engine
* =======================================
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
**********************************************************************************************
*
* Licensed under the Apache License, Vers... | 26.341085 | 105 | 0.581813 |
648755107ecb205431be7d194434ada82dc49b8a | 1,158 | package com.qiuzhongrun.classloader.initial.first.active.use.test3A;
import com.qiuzhongrun.classloader.initial.first.active.use.Test;
/**
* 3. static access
* A field get(getstatic)
*/
public class Tester implements Test {
/**
* only test one line at the same time for different cases
* @param ... | 28.95 | 120 | 0.626079 |
3fbf9a6ee85b39d5288812fa467e1e2a1966e65f | 8,234 | package org.firstinspires.ftc.team11047.custommodules;
import com.acmerobotics.dashboard.config.Config;
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cGyro;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.... | 43.109948 | 145 | 0.628735 |
f4f03e01d53b1fd5c577e5b9c22a7475c76ea9b3 | 8,833 | /*
* Copyright 2010 Hippo.
*
* 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... | 37.427966 | 140 | 0.518284 |
44f7b5eb6690c42a8122afd29a8a0188a9ee110b | 13,405 | package com.yilian.mall.ui;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
import android.text.TextWatcher;
import ... | 38.631124 | 171 | 0.589109 |
5d14e17d83ed27a30d2e9cd497fc3fade1ac3f98 | 1,377 | /*
* Copyright 2009-2014 Jose Luis Martin.
*
* 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... | 21.515625 | 85 | 0.67756 |
c3d8c2bccce602da772fb82cf58aba25df2b65e6 | 1,338 | package com.midi_automator.utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.log4j.Logger;
/**
* Runs a command in the OS shell
*
* @author aguelle
*
*/
public class ShellRunner extends Thread {
static Logger log = Logger.get... | 19.391304 | 77 | 0.621824 |
73271fb69d0713366a0aab3f7ab8000901eee0ea | 19,190 | package ru.nanolive.draconicplus.common.fusioncrafting.client.render.tile;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.rende... | 39.243354 | 212 | 0.556071 |
824eee3b4ae5c16701cf2db42d3cc58dc80cee15 | 566 | package com.example.demo.tomcat;
/**
* @author admin
* @date 2018-9-21 10:00
*/
public abstract class MyServlet {
public abstract void doGet(MyRequest myRequest,MyResponse myResponse);
public abstract void doPost(MyRequest myRequest,MyResponse myResponse);
public void service(MyRequest myRequest,MyRe... | 28.3 | 75 | 0.690813 |
92d7fd421591f84fbd9fec4282102278b9c2e6fd | 6,367 | package com.webank.weevent.jms;
import java.nio.charset.StandardCharsets;
import javax.jms.BytesMessage;
import javax.jms.JMSException;
import javax.jms.Session;
import javax.jms.TopicConnection;
import javax.jms.TopicConnectionFactory;
import com.webank.weevent.client.ErrorCode;
import com.webank.weevent.client.WeE... | 34.231183 | 122 | 0.6485 |
4958cdb36f7a2f2bd05226c903cba61da821f0d0 | 6,982 | /*
* Copyright 2018 Information and Computational Sciences,
* The James Hutton Institute.
*
* 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/... | 29.710638 | 175 | 0.721283 |
97b1c53e0c7f697aea946ddefe9a7f37dd4e8e1f | 900 | package com.wso2.choreo.integrationtests.contractrunner.respository;
import org.apache.commons.io.IOUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ch... | 33.333333 | 88 | 0.732222 |
c2d27f77dfd75218f9b7e2457a8eb7cd4ad04ae4 | 717 | package edu.neu.cs5200.repository;
import edu.neu.cs5200.models.Customer;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
public interface CustomerRepository extends CrudRepository<Customer, Intege... | 37.736842 | 90 | 0.767085 |
3bbc2fe926766d0ea2b85d728e3c3c289563c632 | 2,375 | package org.forten.demo.bo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.forten.demo.dao.JDBCDao;
import org.forten.demo.dto.BookForList;
import org.fort... | 26.685393 | 140 | 0.682526 |
12c89227e5d45271f4b330a498535a9fbbbabe6b | 4,743 | package automation.library.common;
import com.google.gson.Gson;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONTokener;
import java.io.*;
import java.util.*;
public class JsonHelper {
static Logger lo... | 34.620438 | 117 | 0.563567 |
536498c6a9704ea5392d79529e6637d624f329fe | 660 | package com.mmall.concurrency.immutable;
import com.mmall.concurrency.annotations.NotThreadSafe;
import lombok.extern.slf4j.Slf4j;
import com.google.common.collect.Maps;
import java.util.Map;
@Slf4j
@NotThreadSafe //非线程安全
public class ImmutableExample1 {
private final static Integer a = 1;
private final st... | 20.625 | 71 | 0.640909 |
fd01012a2faa030ea7b87d6dbb237feb6060011a | 11,047 | /*
Technology Exponent Common Utilities For Java (TECUJ)
Copyright (C) 2003,2004 Abdul Habra
www.tek271.com
This file is part of TECUJ.
TECUJ is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; version 2.
T... | 35.866883 | 100 | 0.64995 |
65ed167140bc12a1180c55bb5f4edc13c76e2cdf | 2,437 | package io.github.kavahub.learnjava.lambda;
import static io.github.kavahub.learnjava.lambda.LambdaExceptionRethrow.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.fail;
import java.util.List;
i... | 30.08642 | 105 | 0.635207 |
39365c79424157915e262eeef20ad419cd19e106 | 898 | package com.nitrous.iosched.client.component;
import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.user.client.Window;
/**
* Batch up and ignore intermediate window resize events to prevent layout thrashing.
*
* @author nitrousdigi... | 23.631579 | 85 | 0.758352 |
d75401ecb18d626a0b5b69c4d11eab38adb23fd3 | 13,318 | package com.iogogogo.supervisord.core.parser;
import com.iogogogo.supervisord.exception.SupervisordException;
import com.iogogogo.supervisord.exception.XMLRPCException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import javax.xml.parsers.DocumentBuild... | 33.888041 | 107 | 0.574561 |
b0878bdaff86f974206544f851b2646d9d05e1ad | 1,151 | package info.smartkit.eip.thirdParty;
import java.lang.reflect.Array;
public class BaiduLoc {
private Object location;
public Object getLocation() {
return location;
}
public void setLocation(Object location) {
this.location = location;
}
private String formatted_address;
public String getFormatted_addre... | 23.02 | 61 | 0.76629 |
8753f007bd3201ebe19070748ea93b0ca4557450 | 1,496 | package com.sequenceiq.datalake.flow.dr.backup;
import com.sequenceiq.datalake.flow.dr.backup.event.DatalakeDatabaseBackupCouldNotStartEvent;
import com.sequenceiq.datalake.flow.dr.backup.event.DatalakeDatabaseBackupFailedEvent;
import com.sequenceiq.datalake.flow.dr.backup.event.DatalakeDatabaseBackupStartEvent;
impo... | 49.866667 | 127 | 0.848262 |
e3032a8369013edc3946ebb2e2fcf71370613ee7 | 300 | package com.graphSearch.domain.Relation;
import com.graphSearch.domain.RelationShip;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.neo4j.ogm.annotation.RelationshipEntity;
@Data
@NoArgsConstructor
@RelationshipEntity(type = "NotSuit")
public class NotSuit extends RelationShip{
}
| 23.076923 | 51 | 0.833333 |
9da2bc8f6fa1376153a9f3def240a2cd81d8f5ec | 1,757 | /*
* Copyright 2014 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 38.195652 | 134 | 0.759249 |
c2f828ba1ddca8a9aba2f4938a025fd38528c162 | 1,902 | package com.zhigu.model;
/**
* 商品附属
*
* @author zhouqibing 2014年9月28日下午2:35:07
*/
public class GoodsAux {
private int id;
// 商品Id
private int goodsId;
// 数量
private int amount;
// 下载次数
private int downloadCount;
// 评价次数
private int evaluateCount;
// 销售数量
private int purchaseCount;
// 收藏次数
private int... | 16.25641 | 52 | 0.704522 |
17fa145a0d795fc3181db59011e8d56cbc68b53b | 3,998 | /*
* The MIT License
*
* Copyright 2017 Neel Patel.
*
* 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,... | 24.832298 | 93 | 0.621061 |
efb6fefe3a5a85551099abe31792e0aa4032c32e | 7,007 | package ru.job4j.sqlite;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.Closeable;
import java.io.IOException;
import java.sql.*;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* Class StoreSQL - work with SQLite.
*
* @author... | 31.85 | 110 | 0.552162 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.