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 |
|---|---|---|---|---|---|
6d285d7b7bdde8450fdc9a2ea44a119c33680091 | 4,822 | /*
* Copyright (c) 2021 Daimler TSS GmbH
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Daimler T... | 41.568966 | 122 | 0.7163 |
4cd9aaa6c4755f4fc148bd211307e37292e43651 | 1,657 | /*
* $Id: JMadModelDescription.java,v 1.1 2008-12-19 13:55:27 kfuchsbe Exp $
*
* $Date: 2008-12-19 13:55:27 $
* $Revision: 1.1 $
* $Author: kfuchsbe $
*
* Copyright CERN, All Rights Reserved.
*/
package cern.accsoft.steering.aloha.proj.data.jmad;
import org.simpleframework.xml.Element;
import org.simplefra... | 19.72619 | 74 | 0.672903 |
fc01394ce68053ac90d66bbb421fb8f633301ba8 | 1,414 | package de.kid2407.bannermod.gui;
import de.kid2407.bannermod.BannerMod;
import mcp.MethodsReturnNonnullByDefault;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
import net.minecraft.ut... | 28.857143 | 139 | 0.721358 |
ce215ca669f24d74280c151d0b7e7addc76f54d1 | 12,748 | /*
* Copyright (C) 2016 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 ... | 38.865854 | 99 | 0.603546 |
84e93d5de8fc7cef98fda5a776d7e015743d0c15 | 861 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query;
/**
* Ordered NearItem.
* <p>
* Matches as a near operator, but also demands that the operands have the
* same order in the document as in the query.
*
* @autho... | 23.27027 | 118 | 0.651568 |
7f200c21568dda7cf0e4c288c24200ea8702c16f | 1,408 | package com.example.ooprojectblocks;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
import java.util.Map;
public class B... | 27.607843 | 78 | 0.679688 |
0849f0201bb9b6a9a6ff781f30ed95f2a8be116a | 1,591 | /**
* Copyright (C) 2016 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... | 35.355556 | 118 | 0.737901 |
4337799ad5260cf99512a32eab7d41a850593321 | 1,609 | package com.qjuzi.tools.net.status;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.NetworkRequest;
import android.util.Log;
public class NetworkInfoManager {
public static class Holder {
public... | 28.732143 | 110 | 0.660037 |
609f3e0afbcaa64a3f5a0e918215ef5b4bf677ae | 1,898 | package com.appnext.ads.fullscreen;
import java.io.Serializable;
import java.util.HashMap;
public class RewardedServerSidePostback implements Serializable {
private static final long serialVersionUID = 1;
private String bo = "";
private String bp = "";
private String bq = "";
private String br = "... | 24.973684 | 103 | 0.631191 |
5fa3eee5ddd5a3ef1a956b1a2547a690c5629cac | 4,516 | package com.github.chen0040.spark.sga.services;
import com.github.chen0040.data.commons.consts.SparkGraphMinerCommand;
import com.github.chen0040.data.commons.models.MyWorkerCompleted;
import com.github.chen0040.data.commons.models.MyWorkerProgress;
import com.github.chen0040.data.sga.models.JobInsight;
import com.gi... | 34.473282 | 128 | 0.644818 |
b60c8e5d40080acaa193a06419b5a10afe11e520 | 4,337 | /* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.*/
/*
DESCRIPTION
The code sample shows how to use the DataSource API to establish a
SSL connection to the Database using Java Key Store (JKS) files.
You can specify JKS related properties as connection properties.
Fully manag... | 43.808081 | 106 | 0.730689 |
d2a0e3c1c95add6b441a41207ba6c39646fd3c25 | 3,661 | // Chapter 16 Example 1 - FindCustomer GUI
// Modified from Chapter 11 Example
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Vector;
public class FindCustomer extends JFrame implements ActionListener
{
// variables needing class scope
Vector customers, c... | 32.39823 | 67 | 0.684512 |
bf5bb9a3ebf7d7eda9e613f88f05dbff391c5e7d | 1,072 | import java.util.*; // util 패키지 임포트
//public class exam011 {
// public static void main(String[] args){
// System.out.println("Hello World!");
//
// }
//}
class FormatSample{
public static void main(String[] args){
int a =10;
double b =3.4;
System.out.printf("%10d\n",a);
... | 22.808511 | 50 | 0.500933 |
1e77da5d4f9b05062abc6f23c35710dadfa60512 | 17,593 | import org.junit.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
PLEASE NOTE:
THESE TESTS GUARA... | 41.788599 | 113 | 0.655431 |
935057532a42375f621a9f8156087e61c34b3ad1 | 2,339 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 37.126984 | 113 | 0.652416 |
9c6495b0fc9f4ea6cff904428195d8eb1c6a79f5 | 191 | package com.hkamran.ai;
/**
* Interface for the fitness function in a NEAT network.
* @author hkamran
*
*/
public interface NeatFitness {
public double calculate(Network network);
}
| 14.692308 | 56 | 0.717277 |
8ef13feb7c2f94e79fa35e8ac8b6f96422de291d | 1,576 | package DFAsimulation;
import java.util.Scanner;
public class Application {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String startingState = null;
int acceptStatesCount = 0;
String[] acceptStates;
String word = null;
String check = "";
//String[][] transa... | 25.419355 | 87 | 0.674492 |
9c7ec98dcf449e80afad672c16722ad449e2161c | 10,031 | /*
* Thrifty
*
* Copyright (c) Microsoft Corporation
*
* 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
*
*... | 34.35274 | 116 | 0.663144 |
cdf9599b1813f94c6ecc5ca069915de6185d5abf | 1,612 | /**
* ************************************************************************
* * The contents of this file are subject to the MRPL 1.2
* * (the "License"), being the Mozilla Public License
* * Version 1.1 with a permitted attribution clause; you may not use this
* * file except in compliance with ... | 35.043478 | 77 | 0.629032 |
5e3013ebfcca73944006f4dc0b44389a56560b0d | 119 | import me.redteapot.junitathome.annot.Test;
public class EmptyTest {
@Test
public void testEmpty() {
}
}
| 13.222222 | 43 | 0.672269 |
52312e765d7771986e35dd6e50a61713ae75bd43 | 6,696 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 34.694301 | 187 | 0.678465 |
af17292f1f1ee4652462c02f3652324f6bccf27d | 1,503 | package io.quantumdb.cli.xml;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.base.Strings;
import io.quantumdb.core.schema.operations.CreateView;
import io.quantumdb.core.schema.operations.SchemaOperations;
import lombok.Data;
@Data
public class XmlCreateView implements Xm... | 28.903846 | 99 | 0.75183 |
6e5d1fc0b9e74581093cfe114cf8ed41a55e0f50 | 263 | package com.roharon.huformationi.wrapper.component;
import com.roharon.huformationi.wrapper.component.componentType.SimpleText;
import lombok.*;
@Getter
@Builder
@ToString
public class SimpleTextView implements Component {
private SimpleText simpleText;
}
| 20.230769 | 75 | 0.821293 |
a9375f2c32965fe066bf775bc8ee1ff6e99a48e8 | 1,969 | package com.liferay.support.tools.display.context;
import com.liferay.frontend.taglib.clay.servlet.taglib.util.NavigationItem;
import com.liferay.frontend.taglib.clay.servlet.taglib.util.NavigationItemList;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.portlet.LiferayPortletR... | 29.833333 | 79 | 0.790249 |
cb1f19731545c998f5420d32c5f1e44a089f8796 | 1,949 | package com.chatapp.message.entity;
import com.chatapp.message.dto.MessageDto;
import com.chatapp.message.exceptions.CustomException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpSer... | 43.311111 | 137 | 0.753207 |
366448b87d491f4183109d5b547f0d672202cb17 | 1,361 | package com.dcits.dcwlt.pay.api.fun;
import com.dcits.dcwlt.common.core.utils.StringUtils;
import com.dcits.dcwlt.common.core.utils.SpringUtils;
import com.dcits.dcwlt.pay.api.domain.dcep.eventBatch.EventDealReqMsg;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 方法调用工厂类
* @author
*/
public class Fu... | 34.897436 | 129 | 0.673769 |
52dfc5dae8329d6a78267eb661e969e24e97507f | 987 | package com.gochinatv.cdn.api.shardingjdbc;
import io.shardingjdbc.core.api.algorithm.sharding.PreciseShardingValue;
import io.shardingjdbc.core.api.algorithm.sharding.standard.PreciseShardingAlgorithm;
import java.util.Collection;
/**
* ${DESCRIPTION}
*
* https://github.com/sharding-sphere/sharding-sphere-exampl... | 35.25 | 231 | 0.736575 |
2ef6ce3b713aff1d7e5fb35ee29222c167623750 | 3,918 | /*
* (c) Copyright 2016 Palantir Technologies 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 ... | 32.92437 | 114 | 0.647014 |
26d32f1b2f41abdc951436bd4be41e135c3cf34f | 2,808 | package de.lsem.word;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import de.lsem.matrix.MaximumObjectComparer;
import de.lsem.matrix.ObjectComparer;
import de.lsem.matrix.StoreObjectComparer;
import de.lsem.word.similarity.LevenshteinComparer;
import de.lsem.word.similarity.LinW... | 28.653061 | 128 | 0.766382 |
228c0a7740be71dfd2a9366414da561fbb15b577 | 314 | package torukobyte.hrms.emailValidator;
import org.springframework.stereotype.Service;
import torukobyte.hrms.entities.concretes.User;
@Service
public class EmailValidatorManager {
public String emailValidator(User user) {
return "Doğrulama kodu " + user.getEmail() + " adresine gönderildi";
}
}
| 26.166667 | 76 | 0.761146 |
47dd3513c88461d39c9416c977434471660671d2 | 3,076 | import java.io.*;
import java.util.Arrays;
import java.util.*;
class Solution{
// to sort the strings in lexicographically non-decreasing order.
public void sortLexo(String[] arr){
// CASE_INSENSITIVE_ORDER: would do case insensitive sort
Arrays.sort(arr, String.CASE_INSENSITIVE_ORDER);
... | 29.864078 | 130 | 0.602081 |
063b3146122401c4153c5981db659bfaa200d445 | 1,840 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 29.677419 | 124 | 0.68587 |
950f047a8d0c3bad0444a87188a22d45e6b79e72 | 9,263 | /*******************************************************************************
* Copyright (c) 2015 by dennis Corporation all right reserved.
* 2015年7月7日
*
*******************************************************************************/
package com.lelts.fragment.classroom;
import java.util.ArrayList;
import ... | 33.930403 | 114 | 0.67354 |
0fcf651186932ad7c983ce0f36dc879aad883215 | 4,875 | package io.weblith.core.scopes;
import static javax.ws.rs.core.Cookie.DEFAULT_VERSION;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
... | 32.718121 | 129 | 0.610667 |
881acee0ac8e887cd554b3ae83b7cb70c3b0d238 | 2,646 | /*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID licenses this file to You under the Apache
... | 37.8 | 125 | 0.707105 |
32c5dcbf50c0ed60c8f165ba83605dd5a1d55db9 | 417 | package com.appnerds.hrishikesh.firechat.global.database;
import com.appnerds.hrishikesh.firechat.global.data_model.Chat;
import com.appnerds.hrishikesh.firechat.global.data_model.Message;
import rx.Observable;
/**
* Created by marco on 08/08/16.
*/
public interface GlobalDatabase {
Observable<Message> obser... | 18.954545 | 66 | 0.767386 |
187be0eddc69fb76a36574cd50b521e09a157b53 | 17,072 | package br.com.letscode.web.rest;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.hasItem;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import br.com... | 40.551069 | 205 | 0.68586 |
46393b2bcc02a660e5e632a3a41fcf39dff0d44c | 1,202 | /*
* Copyright (c) 2014-2018 T-Systems Multimedia Solutions GmbH
*
* 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.388889 | 96 | 0.741265 |
ff5c167e77fa29f87871d1cfa346c7c8a10118c4 | 35,723 | /*
The MIT License (MIT)
Copyright (c) 2015, Hans-Georg Becker, http://orcid.org/0000-0003-0432-294X
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 limitat... | 48.801913 | 201 | 0.559332 |
4e3215fa003a94de59571180b7879671a5305eaf | 503 | package com.github.rod1andrade.entities;
import com.github.rod1andrade.assets.Sprite;
import com.github.rod1andrade.util.Loader;
/**
* @author Rodrigo Andrade
*/
public final class Mat extends RenderEntity {
private static final Sprite matSprite = new Sprite(32, 0, 48, 32, Loader.spriteSheet);
public Mat(... | 22.863636 | 90 | 0.701789 |
7d812bbb2a4dcaa4fee40d9b867cf8f5d85f4fa4 | 2,794 | /*
* MIT License
*
* Copyright (c) 2020 Ben Davies
*
* 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, modif... | 28.804124 | 89 | 0.671797 |
cd2ec37da8be8b4a6948fb042ad6ecfa35c01c98 | 1,206 | package APL.types.functions.builtins.fns;
import APL.*;
import APL.errors.DomainError;
import APL.types.*;
import APL.types.functions.*;
public class EvalBuiltin extends Builtin {
@Override public String repr() {
return "⍎";
}
public EvalBuiltin(Scope sc) {
super(sc);
}
public Value call(Value... | 30.15 | 113 | 0.636816 |
3130e36234509934744053844f45bad749d26f97 | 3,439 | /**
* 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... | 36.978495 | 91 | 0.647281 |
e27d3f2f48d1ec1602c93b1a6970a131379b1b26 | 2,871 | package main.java.tas.controller.tower.factory;
/**
*
* Enumeration with all default towers present in the game
*
*/
public enum DefaultTowers {
/**
* {@link main.java.tas.controller.tower.factory.ArcherFactory#basicArcher(main.java.tas.utils.Position, java.util.List)}
*/
BASICARCHER,
/**
* {@link main.j... | 33.383721 | 122 | 0.727273 |
61ad91ff0c679d40560bc60b245170944d687f07 | 1,708 | package com.sweetmanor.demo.gui.swing.tree;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.File;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.... | 25.878788 | 67 | 0.699063 |
5a8fd9fdf174937b6bbf9f00c2beff71c20d6039 | 2,176 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license... | 26.536585 | 814 | 0.782169 |
4fefd2d69ae0af61a3edf040725d739dc62cd9ac | 972 | package com.newxton.nxtframework.service;
import com.newxton.nxtframework.entity.NxtOrderFormPay;
import java.util.List;
/**
* (NxtOrderFormPay)表服务接口
*
* @author makejava
* @since 2020-11-14 21:41:53
*/
public interface NxtOrderFormPayService {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @retur... | 17.357143 | 65 | 0.59465 |
e8ba74c18c465fce53317d695d3515daebeeb9a0 | 29,415 | /* Generated By:JavaCC: Do not edit this line. LanguageDispatcher.java */
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License... | 30.015306 | 320 | 0.56325 |
56d512c0955b8286f30008419b75f9f45617bd61 | 1,048 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import com.revrobotics.CANSparkMax;
... | 27.578947 | 78 | 0.73187 |
f8c63b6ca9b87f15df3fbf3582897b574011d694 | 4,599 | /*
* Copyright 2009-2020 Tilmann Zaeschke
*
* 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... | 26.583815 | 92 | 0.686236 |
b274db20b3b9de8fe26858e9c11f851955d9e676 | 3,000 | /*
* Copyright 2015 Open LVC Project.
*
* This file is part of Open LVC Disco.
*
* 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/LICE... | 36.144578 | 110 | 0.543 |
4acaab62de76d7d45e9538fc4aae29a203c62029 | 10,932 | package com.gmail.mooman219;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
/**
* @author Joseph Cumbo (mooman219)
*/
public class Keyboard {
private final Robot robot;
public Keyboard() throws AWTException {
this.robot = new Robot();
... | 29.950685 | 84 | 0.416118 |
59bc23706212779becd164cd451ee75c7f8b52ae | 135 | package com.istudio.tkg.server.model.response;
import lombok.Data;
@Data
public class EnterGameResponse {
private int status;
}
| 13.5 | 46 | 0.762963 |
1a0166caebe66791a2fea528c2d76df9e20ee09e | 7,189 | /* */ package org.gdstash.ui.select;
/* */
/* */ import java.awt.Component;
/* */ import java.awt.Container;
/* */ import java.awt.Font;
/* */ import java.util.LinkedList;
/* */ import java.util.List;
/* */ import javax.swing.BorderFactory;
/* */ import javax.swing.GroupLayout;
/* ... | 43.047904 | 143 | 0.576993 |
744cff0f9b058389798eb77441e264dfaeebeb94 | 357 | package com.javacourse.examples;
import java.math.BigDecimal;
public class VarExample {
@SuppressWarnings("unused")
public static void main(String[] args) {
var a = new BigDecimal("10.2");
int t = 20;
var b = (t > 10)?"t è maggiore di 10":30;
b = 40;
System.out.println(b);
b = "prova";... | 17.85 | 44 | 0.607843 |
227e679616c4bba5708c2624b702f30473c7653b | 1,332 | package ghissues;
import act.controller.annotation.UrlContext;
import act.db.DbBind;
import act.db.jpa.JPADao;
import act.db.sql.tx.Transactional;
import act.util.PropertySpec;
import ghissues.gh823.Gh823User;
import org.osgl.$;
import org.osgl.mvc.annotation.*;
import javax.inject.Inject;
@UrlContext("823")
public ... | 23.368421 | 92 | 0.671922 |
ba179e9e4d4d3f17ac723642ef1fb4a32f737b6d | 1,590 | //| Copyright - The University of Edinburgh 2015 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in compliance with the License. |
//| You ... | 38.780488 | 133 | 0.548428 |
09fa90e8ba5578a50ee0092abe36d3978043c564 | 2,139 | package com.baomidou.plugin.idea.mybatisx.smartjpa.component.mapping;
import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.PsiField;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
/**
* The type Mybatis plus 2 mapping resolver.
*/
public class MybatisPlus2MappingRe... | 30.126761 | 103 | 0.673679 |
54252546a64383d9ce995eba098e9614f7b70efd | 2,091 | package org.plugin.loreSystem;
import java.util.ArrayList;
import java.util.List;
import org.caveandcliff.Implemenation;
import org.api.CustomEnchantment;
import org.api.ResponseManager;
import org.api.TagWrapper;
import org.bukkit.ChatColor;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.Ite... | 28.643836 | 112 | 0.693926 |
b19081ed585e23628af3dd7c4756a2b3651e8562 | 1,344 | package com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.items.artifacts;
import com.zipcode.justcode.clamfortress.ClamFortress.models.game.interfaces.*;
import com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.*;
import com.zipcode.justcode.clamfortress.ClamFortress.models.game.model... | 39.529412 | 114 | 0.688988 |
c77c096da7978746f5a69adef7daf0334147a64d | 349 | package cn.admin.service;
import cn.admin.entity.SystemMenu;
import cn.commons.common.PublicResultJosn;
public interface MenuService {
public PublicResultJosn add(SystemMenu menu);
public PublicResultJosn delete(Long id);
public PublicResultJosn update(SystemMenu menu);
public PublicResultJosn se... | 20.529412 | 50 | 0.773639 |
3b84c6a8b65ea9babf4beb7fe28976fa7bb0f549 | 4,794 | package hu.elte.animaltracker.model.tracking;
import hu.elte.animaltracker.model.zones.ZoneUnit;
import ij.IJ;
import ij.ImagePlus;
import ij.io.FileInfo;
import ij.io.TiffDecoder;
import ij.plugin.AVI_Reader;
import ij.plugin.FileInfoVirtualStack;
import ij.plugin.FolderOpener;
import ij.process.ColorProcessor;
impo... | 23.048077 | 79 | 0.690029 |
11efbac57732bd818844b21e6d6ca280b5800a22 | 846 | package nablarch.test.core.db;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
/**
* BigDecimal型をPKに持つテーブル。
*/
@Entity
@Table(name = "BIG_DECIMAL_TABLE")
public class BigDecimalTable {
public BigDecimalT... | 24.171429 | 82 | 0.713948 |
2f8a26e05477461eb60cf9476c86a7d6cc5e81ad | 4,852 | package org.horrgs.twitterbot.commands;
import com.rosaloves.bitlyj.Bitly;
import com.rosaloves.bitlyj.Url;
import org.horrgs.twitterbot.HorrgsTwitter;
import org.horrgs.twitterbot.api.FileManager;
import org.horrgs.twitterbot.api.Site;
import org.horrgs.twitterbot.io.NewsJSON;
import org.json.JSONException;
import or... | 35.940741 | 215 | 0.552762 |
03ec602bb00756a3bf9af0588b7d661fc6e1914d | 1,311 | package usedclass;
/*StringBuffer类的初使用*/
public class Example27 {
public static void main(String[] args) {
System.out.println("1.添加--------------------");
add();
System.out.println("2.修改--------------------");
update();
System.out.println("3.删除--------------------");
... | 28.5 | 55 | 0.527079 |
fbedaa0ebb49a0fde802d99215eed8876f8bf89d | 366 | package ru.mydesignstudio.spring.core.injection.with.proxy;
public class ParentBean {
private ChildBean childBean;
public void setChildBean(ChildBean childBean) {
this.childBean = childBean;
}
public ChildBean getChildBean() {
return childBean;
}
public int doSomething() {
... | 20.333333 | 59 | 0.674863 |
bc7ac6f0fc4be4099c79e79ee258c2a9da6ec3e4 | 2,173 | /**
* Copyright 2005-2019 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless requ... | 40.240741 | 113 | 0.746434 |
e7f9e3b1f40729328a8b59b44b14dcd956f0f1c3 | 558 | package cloud.unionj.model;
import lombok.Data;
/**
* @author created by wubin
* @version v0.0.1
* description: cloud.unionj.model
* date:2021/6/30
*/
@Data
public class Doc {
private String api;
private String createAt;
private String service;
private String version;
private Git git;
@Data
public... | 18.6 | 34 | 0.709677 |
d26dfe68526742579d51f3ba0a8c809d43127ea0 | 20,573 | package engine;
import java.io.IOException;
import java.util.List;
import java.util.Set;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.s... | 32.969551 | 129 | 0.678268 |
0fb7decd850b7969266a3c4ddd4c32b58d3379b7 | 107 | /**
* Classes which implement modules of the gui.
*/
package org.optimizationBenchmarking.gui.modules; | 26.75 | 49 | 0.747664 |
950e112b3ae4149c292399cd540fa76480343b9e | 1,480 | package iudx.ingestion.pipeline.redis;
import static iudx.ingestion.pipeline.common.Constants.REDIS_SERVICE_ADDRESS;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.eventbus.MessageConsumer;
import io.vertx.core.json.Json... | 26.909091 | 81 | 0.706081 |
520a63b1cc6be3dfebe288ad907cf44ea3e35cfb | 4,119 |
package gtm;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* reference to a list of stations included in the fare
... | 30.286765 | 265 | 0.574654 |
6ac47aa26fa10ab99bd07b1dfc89c4a0b8b8fcb1 | 2,546 | /*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... | 41.064516 | 137 | 0.778476 |
7727b70ba0062cbb9db6d3d446fdeeba33b007ea | 2,060 | package org.infobip.prometheus.prtgexporter.prtg;
// special thanks to 'rees' from https://stackoverflow.com/a/52244937
// since this is from Stack Overflow in its entirety, this specific library
// shall be licensed under the CC-BY-SA, separate from the Apache2 license
// used for the rest of the project
import java... | 27.837838 | 87 | 0.585922 |
36f48ac697cd8bfd805b53e7b56454a2752aa067 | 975 | package com.espressif.iot.action.device.espbutton;
import com.espressif.iot.command.device.espbutton.EspCommandEspButtonGroupCreate;
import com.espressif.iot.command.device.espbutton.IEspCommandEspButtonGroupCreate;
import com.espressif.iot.device.IEspDevice;
import com.espressif.iot.espbutton.BEspButton;
import com.e... | 34.821429 | 96 | 0.747692 |
98e04f3091642c7c1ff2a7b44fcbe4148efc22b1 | 5,738 | package configgen.genjava.code;
import configgen.gen.LangSwitch;
import configgen.genjava.*;
import configgen.util.CachedIndentPrinter;
import configgen.value.AllValue;
import java.util.Map;
final class GenConfigCodeSchema {
static void generate(AllValue vdb, LangSwitch ls, CachedIndentPrinter ps) {
ps.... | 34.359281 | 161 | 0.511851 |
4c2d6d67947760b51f007a402783088f6b83ee18 | 3,000 | package alien4cloud.tosca.parser.impl.advanced;
import javax.annotation.Resource;
import alien4cloud.utils.VersionUtil;
import alien4cloud.utils.version.InvalidVersionException;
import org.alien4cloud.tosca.model.CSARDependency;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Compon... | 48.387097 | 159 | 0.656667 |
b10dcaf0532f2152e8901dbf91576bbc27ee60dc | 4,188 | package com.xthena.sckf.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import com.xthena.api.user.UserConnector;
import com.xthena.core.hibernate.PropertyFilter;
import com.xthena.core.mapper.BeanMapper;
import com.xthena.core.pa... | 30.129496 | 79 | 0.667383 |
6296ad7e9a64dd138f28157961d634932f380580 | 371 | package com.zype.android.webapi.events.search;
import com.zype.android.webapi.RequestTicket;
import com.zype.android.webapi.events.DataEvent;
import com.zype.android.webapi.model.search.SearchResponse;
public class SearchEvent extends DataEvent<SearchResponse> {
public SearchEvent(RequestTicket ticket, SearchRes... | 28.538462 | 67 | 0.784367 |
695131c6eb88dc33310d4a56b29d07fed35752ee | 771 | package javacore.introducaoClasses.teste;
import javacore.introducaoClasses.dominio.Carro;
public class CarroTeste01 {
public static void main(String[] args) {
Carro carro1 = new Carro();
Carro carro2 = new Carro();
carro1.nome = "Fusca azul";
carro1.modelo = "Sport";
car... | 24.09375 | 48 | 0.610895 |
aa16981686fd2f2c04e32300c1a4506caf852318 | 2,760 | package com.github.mittyrobotics.autonomous;
import com.github.mittyrobotics.autonomous.pathfollowing.PurePursuitPath;
import com.github.mittyrobotics.autonomous.pathfollowing.Point2D;
public class BallPositionConstants {
//All balls labeled clockwise, starting from the blue ball at the acute corner of red allian... | 40.588235 | 129 | 0.763043 |
070c4e30b1bdb87cb9548c4f04bf047b722ab509 | 624 | package seedu.address.logic.commands;
//import static org.junit.Assert.assertEquals;
import org.junit.Test;
//import seedu.address.model.statistics.PlayerStatistics;
//import seedu.address.storage.JsonSerializableStatistics;
public class StatsStorageTest {
@Test
public void statsStorage_toModelType_succes... | 28.363636 | 105 | 0.735577 |
d21db72707659bc08f45fca5920e5ba06a16b80e | 4,147 | package algo.leetcode;
import java.util.*;
public class StickersSpellWord {
public int[] getStringFinger(String s){
int[] res = new int[26];
for(int i = 0; i < s.length(); i ++){
res[s.charAt(i)-'a'] ++;
}
return res;
}
public int minStickers(String[] stickers,... | 30.947761 | 87 | 0.479865 |
b3c8b6d402869aa600232f062ee11712d85a25e1 | 6,873 | package com.axeac.app.sdk.ui.container;
import android.app.Activity;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
import android.os.Handler;
import android.view.Gravity;
import android.view.LayoutInflater;
impor... | 24.723022 | 142 | 0.669722 |
3f4343ed412b6062672cd65335f940c4a147ec65 | 3,519 | package datawave.iterators;
import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.accumulo.core.data.ByteSequence;
import org.apache.accumulo.core.data.Key;
import org.ap... | 28.379032 | 136 | 0.616937 |
6f9520a25078d93b7e1ca988812dc876734c7c01 | 1,730 | /**
* Copyright (C) 2011 Smithsonian Astrophysical Observatory
*
* 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... | 30.892857 | 86 | 0.697688 |
4db29adf9b0559547c3539919b0ac7ac81ef523b | 465 | package com.maaxap.composite;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Word extends CompositeUnit {
private static final Logger LOGGER = LoggerFactory.getLogger(Word.class);
private String wordText;
public Word(String wordText) {
this.wordText = wordText;
}
... | 19.375 | 77 | 0.677419 |
4eb093185e7fcfccc32744d1ae4d44e3264b2c94 | 1,065 | package com.github.glomadrian.sample;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.github.glomadrian.sample.fragment.DragonBall;
import com.github.glomadrian.sample.fragment.Pager;
import com.github.glomadrian.sam... | 25.357143 | 56 | 0.646948 |
61bf647fb164777d77986063a2704510f6afa9c7 | 2,981 | package net.glowstone.entity;
import com.google.common.collect.Sets;
import java.util.EnumSet;
import java.util.Set;
import net.glowstone.entity.ai.EntityDirector;
import net.glowstone.entity.ai.MobState;
import net.glowstone.net.message.play.player.InteractEntityMessage;
import net.glowstone.util.InventoryUtil;
impor... | 33.122222 | 92 | 0.650453 |
1ff3ea6219d7a80e5e5e2e9f6a6ab139e772e56d | 5,980 | /**
* Copyright 2010 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 required by applicable ... | 37.375 | 144 | 0.628428 |
e377460bc8d3cef62a3809f697877d38597758d6 | 153 | package state.blurayplayer;
public interface BluRayPlayerState {
void insertBluRay();
void pressPlay();
void pressStop();
void ejectBluRay();
}
| 11.769231 | 36 | 0.738562 |
b1687c218e8688480f73bb0f4ab81b9fe675db47 | 2,464 | /*
* $Id$
*
* Copyright 2006-2008 Alex Lin. 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 requ... | 32.853333 | 100 | 0.633117 |
7bc6a7c74c4ad23cd31867b0499f421f0798a7f9 | 213 |
/**
* Enumeration class Estado - write a description of the enum class here
*
* @author (your name here)
* @version (version number or date here)
*/
public enum Estado
{
NOPRESTADO,
PRESTADO;
}
| 14.2 | 72 | 0.652582 |
1944866a5879510f0d4778ed57584d7f41784927 | 1,178 | package ${package}.components.content.accordion;
import com.citytechinc.cq.component.annotations.Component;
import com.citytechinc.cq.component.annotations.editconfig.ActionConfig;
import com.citytechinc.cq.component.annotations.editconfig.ActionConfigProperty;
import com.icfolson.aem.harbor.core.components.content.ac... | 42.071429 | 144 | 0.642615 |
9f5f514eb3b252d30dd7dea1f3707be11f6e41d7 | 1,574 | package com.elastisys.scale.commons.net.host;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.net.InetAddress;
import java.net.SocketException;
import j... | 30.269231 | 105 | 0.709022 |
fc68b64443001e98c4a25de8fff15c56da841530 | 4,834 | package com.superrtc.b;
import android.content.Context;
import android.os.Build;
import android.os.Build.VERSION;
import android.os.Process;
import com.superrtc.call.Logging;
import java.util.Arrays;
import java.util.List;
public final class b
{
private static final String[] a = new String[0];
private static fina... | 22.276498 | 324 | 0.631568 |
a24ab01085685c31808a0ec64f69be07c6b49e95 | 1,953 | package com.ronja.crm.ronjaclient.desktop.controller;
import com.ronja.crm.ronjaclient.desktop.component.customer.CustomerTableView;
import com.ronja.crm.ronjaclient.desktop.component.dialog.Dialogs;
import com.ronja.crm.ronjaclient.desktop.component.representative.RepresentativeTableView;
import javafx.application.Pl... | 36.166667 | 91 | 0.785458 |
15b626d10200cf2ceef353056b80e00b4664f1c2 | 1,166 | package com.dynatrace.profilediff.ui;
import java.util.List;
import com.dynatrace.profilediff.XmlElement;
import com.dynatrace.profilediff.XmlStruct;
import com.dynatrace.profilediff.XmlUtil;
class CommonModel {
static interface ChangeItemInterface {
boolean containsAttributeChanges();
boolean cont... | 34.294118 | 166 | 0.730703 |
9b5c4bd363674957f42e31a6b8778a116ddaf13b | 1,656 | /**
*
* Class ParameterDirectionKind$Class.java
*
* Generated by KMFStudio at 14 April 2004 22:36:44
* Visit http://www.cs.ukc.ac.uk/kmf
*
*/
package uk.ac.ukc.cs.kmf.kmfstudio.uml.Foundation.Data_Types;
public class ParameterDirectionKind$Class
implements
ParameterDirectionKind,
uk.ac.ukc.cs.kmf.km... | 25.875 | 88 | 0.684783 |
aea78c9e25bbae7d5b6c688ab68975be9de6beca | 228 | package mx.sam.apiEjemplo.service;
import mx.sam.apiEjemplo.dto.UsuarioDTO;
import mx.sam.apiEjemplo.service.utils.Crud;
/*
* @author Samuel
* @version 1.0
* */
public interface IUsuarioService extends Crud<UsuarioDTO>{
}
| 17.538462 | 58 | 0.754386 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.