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 |
|---|---|---|---|---|---|
1de50b3897d4fbaf534875d712efc0adbc02fa53 | 2,025 | /**
* HospitalController.java
* com.wjw.controller
* Function: TODO add descript
*
* ver date author
* ──────────────────────────────────
* 2017年11月13日 lyj
*
* Copyright (c) 2017, TNT All Rights Reserved.
*/
package com.wjw.controller;
import java.util.List;
import org.springframewor... | 23.823529 | 97 | 0.700741 |
6a5bdff6b265f6ad18070346a0e6d11062285922 | 5,122 | package com.ibm.safr.we.data.dao;
/*
* Copyright Contributors to the GenevaERS Project. SPDX-License-Identifier: Apache-2.0 (c) Copyright IBM Corporation 2008.
*
* 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... | 34.608108 | 123 | 0.716712 |
6b51274d8a8ea5ec13cb37e5057632447b7d5fd4 | 721 | package sg.four.serenity.callisto.tasks;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.actions.Open;
import sg.four.serenity.callisto.ui.RateThisSitePage;
import sg.four.serenity.callisto.ui.SitefinityDashboardPage;
import static net.serenitybdd.scr... | 28.84 | 63 | 0.761442 |
b0cf69b0ec5ade21604fa5f4b0066913681d4e86 | 2,887 | /*
* SendinBlue API
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/org... | 37.012821 | 841 | 0.662972 |
c675a3495b7458dca5e14471a0c7ea8e3ba08359 | 2,538 | package controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Hashtable;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servl... | 32.538462 | 119 | 0.720646 |
1d38796f064519493ad24ae4a0aa4b9dd06e8f00 | 1,994 | package ro.cs.pub.ro.practicaltest02;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public c... | 25.564103 | 74 | 0.738215 |
599ac4b41d48433dd644d3ad6fc0716aa2f6c02e | 315 | /*
* Created on Sep 23, 2004
*/
package cyrille.lang.reflect;
/**
* @author <a href="mailto:cleclerc@pobox.com">Cyrille Le Clerc </a>
*/
public interface Foo {
public String doJob(String name);
public String doAnotherJob(String name);
public String doaThirdJob(String name);
} | 19.6875 | 69 | 0.644444 |
55c5d3e1258da93d06c6e84acd4855d988543c80 | 218 | package test.connect.myapplication.api;
import retrofit2.Call;
import retrofit2.http.GET;
import test.connect.myapplication.model.Post;
public interface PostApi{
@GET("posts/1")
Call<Post> getFirstPost();
}
| 18.166667 | 45 | 0.756881 |
82dcd3adb44f8235d3a280c58e32eb099dd6d62b | 2,438 | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | 25.395833 | 75 | 0.731747 |
88c6e8dd4db291e5c368c77183a60917202ab5d5 | 6,332 | package code.ponfee.commons.math;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
/**
* 数学算术
* 取模:Modulo Operation
*
* @author Ponfee
*/
public class Maths {
/**
* 以2为底n的对数
*
* @param n the value
* @return a value of log(n)/log(2)
*/
public sta... | 26.383333 | 103 | 0.472521 |
55c73cdbe2f075a2303994e2046c1f8275016570 | 44,344 | /*
* Copyright 2002-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 37.295206 | 109 | 0.738431 |
4d59f01b6946d7f5d0ae5a52e9536b0efa535355 | 2,586 | package ca.corefacility.bioinformatics.irida.security.permissions.files;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;
import ca.corefacil... | 33.584416 | 109 | 0.772622 |
d5a2f8e0cdb2609722295841e143d2d2e3ca84ce | 77,855 | /**************************************************************************************
* dandelion_tree
* Copyright (c) 2014-2016 National University of Colombia, https://github.com/remixlab
* @author Jean Pierre Charalambos, http://otrolado.info/
*
* All rights reserved. Library that eases the creation of intera... | 29.13735 | 120 | 0.651622 |
dffb5606dc25204b00b135ca7265bcea0114da4d | 1,202 | package org.willemsens.player.persistence.entities;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.ForeignKey;
import android.arch.persistence.room.Index;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;
import java.util.Objects;
@Entity(f... | 25.041667 | 78 | 0.618968 |
764e96bb0fdd42fe695fdaf289ead00f9531e7a6 | 123 | package com.example.designpattern.creationalpattern.builderpattern.makefastfood;
interface Packing {
String pack();
}
| 20.5 | 80 | 0.804878 |
72866fd0f04bb6fae91a9ee93b7ce25b5210c03e | 15,924 | /* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.couchbase;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.Config... | 56.070423 | 173 | 0.702022 |
7642e710b1619037f7cfe3d013ba6f0cbb80b778 | 6,034 | package com.sequenceiq.redbeams.configuration;
import static java.util.concurrent.TimeUnit.MINUTES;
import static java.util.concurrent.TimeUnit.SECONDS;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.sql.SQLException;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistenc... | 40.496644 | 161 | 0.755718 |
fbe461a9bdda414a945b4f7219ec4e88e8d317c9 | 11,137 | package com.alibaba.jstorm.task.execute.spout;
import backtype.storm.task.ICollectorCallback;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.*;
import backtype.storm.utils.DisruptorQueue;
import com.alibaba.jstorm.common.metric.AsmGauge;
import com.alibaba.jstorm.metric.*;
import com.alibaba.... | 42.185606 | 181 | 0.588668 |
8a6f971a19fc67b43c100f1b23d2deee4e8d7969 | 5,620 | /****************************************************************************
* Copyright (c) 2007 Composent, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avai... | 39.577465 | 154 | 0.624911 |
157fbaf6e6ae5ae4eaf254d12af3705605820417 | 11,112 | /*
* This file is generated by jOOQ.
*/
package org.killbill.billing.plugin.mtnmomo.dao.gen.tables;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import... | 41.155556 | 201 | 0.714273 |
d23b1d1d94e27741ac329a2ffd2f9085bb958d7d | 3,857 | package com.ke.schedule.server.core.service.impl;
import com.ke.schedule.server.core.model.db.LogCollect;
import com.ke.schedule.server.core.model.db.LogOpt;
import com.ke.schedule.server.core.model.db.TaskRecord;
import com.ke.schedule.server.core.repository.LogCollectRepository;
import com.ke.schedule.server.core.re... | 37.813725 | 133 | 0.699767 |
6168de74cb4449a4a54b20c53944f740edac900f | 1,255 | package org.folio.rest.impl;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.junit.jupiter.api.Test;
import java.net.MalformedURLException;
import static org.junit.Assert.assertEquals;
public class PoNumberTest extends TestBase {
private final Logger logger = LogMan... | 30.609756 | 79 | 0.732271 |
55e6084c554263b8d89ef7969e9532a58e5e0b55 | 2,365 | package com.obsidiandynamics.indigo;
import static com.obsidiandynamics.indigo.ActorSystemConfig.ExceptionHandlerChoice.*;
import static junit.framework.TestCase.*;
import org.junit.*;
import com.obsidiandynamics.indigo.util.*;
public final class FrameworkErrorTest implements TestSupport {
private static final St... | 27.5 | 121 | 0.64482 |
6c3a1e896305b12103dae7922a055008be21b21d | 4,495 | /*
* Copyright (C) 2009 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... | 34.576923 | 96 | 0.667186 |
e0f4e8de9dd606ee2b5a9ed802eddb017318ead0 | 1,632 | package aiyagirl.nanchen.com.myapplication.presenter;
import com.hyphenate.EMCallBack;
import com.hyphenate.chat.EMClient;
import aiyagirl.nanchen.com.myapplication.entity.User;
import aiyagirl.nanchen.com.myapplication.ui.contract.LoginContract;
import aiyagirl.nanchen.com.myapplication.utils.ThreadUtil;
/... | 31.384615 | 92 | 0.574142 |
3e59fc8795290434a24f9d130da424be893a033b | 1,672 | package ru.job4j.homeworks;
import java.util.Scanner;
// в двумерный массив записали годовые оценки по десяти предметам
// за 9-й класс каждого из 25 учеников класса (в первой строчке - оценки первого ученика,
// во второй - второго и т.д.). В начале нового учебного года в класс пришел новый ученик.
// Изменить масс... | 33.44 | 99 | 0.569976 |
72c665d15c6e63322ce535a790aceddca31b4a5c | 12,409 | package org.blender.dna;
import java.io.IOException;
import org.cakelab.blender.io.block.Block;
import org.cakelab.blender.io.block.BlockTable;
import org.cakelab.blender.nio.CArrayFacade;
import org.cakelab.blender.nio.CFacade;
import org.cakelab.blender.nio.CMetaData;
import org.cakelab.blender.nio.CPointer;
/**
... | 30.265854 | 347 | 0.667338 |
7664b91f9219a2d876773f25d606f35023436511 | 12,483 | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... | 39.378549 | 252 | 0.772811 |
9275bf45bb344cd63f7d93d6b6533cd2c054e43a | 2,740 | package net.humba01.inquiry.blocks.cromatic.glasses;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.sound.BlockSoundGroup;
public class CromaticGlassPainels {
//Primary Glass Painels
public ... | 70.25641 | 148 | 0.833577 |
907d5f1e5123c767ac555e575cbd0edaea8f86a1 | 591 | package org.kyojo.schemaOrg.m3n3.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaOrg.m3n3.core.impl.REQUIRED_MAX_AGE;
import org.kyojo.schemaOrg.m3n3.core.Container.RequiredMaxAge;
@ExternalDomain
public class RequiredMaxAgeConver... | 25.695652 | 87 | 0.817259 |
32a903fb8a871304fa45d037e161de45dfa03015 | 203 | package com.riven_chris.static_and_defalut_method;
@FunctionalInterface
public interface Model2<T> {
T get();
default void function2() {
System.out.println("Model2 function2");
}
}
| 18.454545 | 50 | 0.699507 |
8e48892950ac31aab4ba5b1d94e85eddcd1bc597 | 2,498 | package com.donkingliang.imageselector.adapter;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import com.donkingliang.imageselector.entry.MediaInfo;
import com.donkingliang.imageselector.view.VideoViewAndPhotoView;
import java.util... | 30.096386 | 94 | 0.652922 |
303678865b10f8b581f48e4f976990e4e957616c | 4,167 | package se.claremont.taf.core.gui.teststructure;
import se.claremont.taf.core.gui.guistyle.TafButton;
import se.claremont.taf.core.gui.guistyle.TafCloseButton;
import se.claremont.taf.core.gui.guistyle.TafFrame;
import se.claremont.taf.core.gui.guistyle.TafPanel;
import javax.swing.*;
import java.awt.*;
import java.a... | 38.229358 | 118 | 0.649148 |
4de5d755ac0f1acabb79f0e351a902c2629e0d72 | 811 | package pt.ulisboa.tecnico.socialsoftware.tutor.answer.dto;
import pt.ulisboa.tecnico.socialsoftware.tutor.question.domain.OpenEndedQuestion;
public class OpenEndedCorrectAnswerDto extends CorrectAnswerDetailsDto {
private String defaultCorrectAnswer;
public OpenEndedCorrectAnswerDto(OpenEndedQuestion questi... | 30.037037 | 81 | 0.726264 |
530f1797155b0dca1596b9529e034b8b05507691 | 2,988 | /*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with the License. You may obtain a
* c... | 39.315789 | 101 | 0.717871 |
709db6248ab8eacde7398b41822ce5b33aaf4d01 | 879 | package com.github.afanas10101111.jtb.command;
import com.github.afanas10101111.jtb.service.SendBotMessageService;
import lombok.RequiredArgsConstructor;
import org.telegram.telegrambots.meta.api.objects.Update;
import static com.github.afanas10101111.jtb.bot.util.BotUpdateUtil.extractChatId;
import static com.github... | 38.217391 | 105 | 0.791809 |
9c87b9440baaec9ef2db42829458e7187bc66337 | 7,340 | /*
* The MIT License
*
* Copyright 2017 mhrimaz.
*
* 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,... | 38.429319 | 120 | 0.581744 |
293ee348a7b20f9e251637f3f55e52e8de0d94af | 106 | package com.home4u.hotelmanagement.models;
public enum FoodType {
BREAKFAST,
LUNCH,
DINNER
}
| 13.25 | 42 | 0.707547 |
ac5cd7f457479afdd5f06bd25f6d314db328eff6 | 4,081 | /*-
* <<
* sag
* ==
* Copyright (C) 2019 sia
* ==
* 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 applic... | 32.91129 | 121 | 0.697868 |
b552a4be90807762e629d75de9df3334efe87cff | 2,874 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python;
import com.jetbrains.python.documentation.docstrings.SphinxDocString;
import com.jetbrains.python.fixtures.PyTestCase;
import com.jetbrains.python.t... | 62.478261 | 140 | 0.587335 |
8be008d841039e317188f30026e779e859623cbc | 1,516 | /*
* 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 com.app.sinconWeb.models;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Gene... | 21.055556 | 83 | 0.614116 |
9592ba3b5882164c67effabc383043e70ae2f4df | 6,466 | package org.codepay.common.orm.mybatis;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.codepay.common.orm.GenericDao;
import org.codepay.common.orm.mybatis.paginator.domain.PageBounds;
import org.codepay.common.orm.mybatis.paginator.domain.PageList;
impo... | 30.074419 | 116 | 0.690999 |
80ed2b24180c97e5361d221a3cdd16a7d8377289 | 792 | package com.sempra.sdgesi.services;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@ConfigurationProperties
@Component
public class ApplicationProperties {
String app;
String environment;
String color;
public Application... | 18 | 75 | 0.656566 |
3f84bf5e11c51dedb551e469c551086275d743da | 275 | package com.study.spring.mapper;
import com.study.spring.entity.Student;
import org.springframework.stereotype.Repository;
/**
* Created on 2017-08-10 21:51
*
* @author liuzhaoyuan
*/
@Repository
public interface StudentDao {
Student getStudentById(Integer id);
}
| 17.1875 | 49 | 0.752727 |
e7dc1294ecd4bad93cfd2ef9fb57f1bd97b7d13f | 7,838 | /**
*
*/
package com.org.commons.atomparser.parser;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.StringTokenizer;
import com.org.commons.atomparser.exceptions.CheckedException... | 29.355805 | 148 | 0.673896 |
e9b4e38d835f056f0539c7ef96ae42fb42bf26b5 | 1,115 |
public class EstatisticaDeOrdemR<T extends Comparable<T>> {
public static void main(String[] args) {
Integer[] array = new Integer[] {2,9,4,11,3};
Integer elem = new EstatisticaDeOrdemR<Integer>().getEstatisticaDeOrdem(array, 4);
System.out.println(elem);
}
public T getEstatisticaDeOrdem(T[] arra... | 25.930233 | 93 | 0.595516 |
083b44a9b32aca9466193cc7a9f131ad4ea08021 | 706 | package ViewHolder;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import anucha.techlogn.promotionapp.R;
/**
* Created by anucha on 2/16/2018.
*/
public class ViewHolderSearchBranch extends RecyclerView.ViewHolder {
pu... | 27.153846 | 71 | 0.756374 |
868ce20342e102ee63f58c3c4d206bd8a6655a2a | 1,753 | /*
* Copyright 2017 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 ap... | 37.297872 | 102 | 0.750143 |
089c0b161a566b0bdfa2e306f896f0a2b640cb72 | 1,953 | /**
* Copyright 2010 - 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 29.149254 | 96 | 0.676395 |
b34187ed99af87ce914dbbf871f43707f00af2c1 | 23,016 | package no.nav.foreldrepenger.abakus.iay.tjeneste.dto.iay;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.U... | 59.9375 | 171 | 0.748566 |
b01668e97eb24dd591d7fb4ae57af62399f1e682 | 1,095 | package tech.lancelot.controller.blog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Request... | 29.594595 | 62 | 0.795434 |
d82ec73ff16c0ead848f52bbf7442b78f46bb286 | 1,319 | /**
*
*/
package com.sm.common.libs.codec;
import com.sm.common.libs.exception.MessageException;
/**
* 解码异常
*
* @author <a href="chenxu.xc@alibaba-inc.com">xc</a>
* @version create on 2016年11月11日 下午2:58:16
*/
public class DecodeException extends MessageException {
/**
*
*/
private static final lo... | 16.910256 | 77 | 0.615618 |
ca743a397d4efcb998c474ccc883d96fef5a8532 | 949 | package autodiff.nodes;
import java.util.Arrays;
/**
* @author codistmonk (creation 2016-07-11)
*/
public final class Mapping extends AbstractNode<Mapping> {
private String functionName;
public Mapping() {
super(Arrays.asList((Node<?>) null));
}
public final Mapping setArgument(final Node<?> argument) {... | 19.367347 | 68 | 0.711275 |
37933be1dfe9319951ec152906ba6eb26a387ce1 | 2,594 | package org.consumersunion.stories.server.security.authentication;
import javax.inject.Inject;
import org.apache.commons.validator.routines.EmailValidator;
import org.consumersunion.stories.common.shared.model.CredentialedUser;
import org.consumersunion.stories.server.persistence.CredentialedUserPersister;
import org... | 42.52459 | 103 | 0.771396 |
4c6997d579a197838a67583ad73a6987a3625b9d | 149 | package com.stxia.textlib;
import android.util.Log;
public class textutlis {
public static void log(){
Log.d("测试成功","测试成功");
}
}
| 14.9 | 31 | 0.624161 |
e50e5715176b40befbba4d0dd0e96e53274964a4 | 4,214 | /**
* PermissionsEx
* Copyright (C) zml and PermissionsEx contributors
*
* 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... | 42.565657 | 248 | 0.709065 |
78380c3ed929df63d717aa31158716e1c7acb081 | 3,951 | package de.uniulm.omi.cloudiator.lance.lca.containers.plain;
import java.util.Map;
import org.junit.Test;
import de.uniulm.omi.cloudiator.domain.OperatingSystem;
import de.uniulm.omi.cloudiator.domain.OperatingSystemArchitecture;
import de.uniulm.omi.cloudiator.domain.OperatingSystemFamily;
import de.uniulm.omi.clou... | 42.945652 | 153 | 0.756517 |
deba59e063affa689c7ff98e5469d2ce09db34d3 | 1,981 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.pds.client.models;
import com.aliyun.tea.*;
/**
* 打包下载
*/
public class CCPArchiveFilesRequest extends TeaModel {
@NameInMap("httpheaders")
public java.util.Map<String, String> httpheaders;
// addition_data
@NameInMap("additio... | 26.065789 | 95 | 0.655225 |
387b0628e1ebd424e073f05ec4818483f8a82925 | 686 | package com.tom.java.test.leetcode;
public class Problem409 {
public static void main(String[] args) {
String str = "abccccdd";
int len = longestPalindrome(str);
System.out.println(len);
}
public static int longestPalindrome(String s) {
if (s == null || s.length() == 0) {... | 21.4375 | 51 | 0.453353 |
12c90e202a4661f5e53f86d0f9064d4a68808863 | 5,442 | package org.lasencinas.cotxox.ServiceTest.Driver;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.lasencinas.cotxox.Model.Driver;
import org.lasencinas.cotxox.Service.Driver.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.cont... | 30.233333 | 111 | 0.482359 |
00e54b51315d3e3a795169ddf3045157d7e6fc6a | 5,360 | package de.leihwelt.android.gl;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import javax.microedition.khronos.opengles.GL10;
import de.leihwelt.android.droidkobanpro.Droidkoban;
import android.content.res.AssetManager;
import android.conte... | 24.144144 | 137 | 0.7 |
201b1f5447ec449cf065d13786a710e8ccd89211 | 130 | package cord.common;
public enum NonBaseNodeLabels {
SecurityGroup,
Permission,
canRead,
canEdit,
Active,
Inactive
}
| 11.818182 | 31 | 0.730769 |
898aeca044c2661acdd9c2b91baa72b7944b853f | 7,311 | /**
* Copyright 2012, Board of Regents of the University of
* Wisconsin System. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Board of Regents of the University of Wisconsin
* System licenses this file to you under the Apache License,
* Version 2.0 (t... | 39.518919 | 152 | 0.624949 |
e39e22581b3b18cd3eebee5e43ffd98384f72f76 | 23,193 | /*
The MIT License (MIT)
Copyright (c) 2020 Pierre Lindenbaum
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, me... | 39.37691 | 212 | 0.7244 |
0aad175c87a03ee6641b4454b488002a903edb99 | 1,510 | package org.jboss.resteasy.test;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.jboss.resteasy.plugins.server.netty.NettyUtil;
import org.junit.Assert;
@Path("async-io")
public class AsyncIOResource {
@GET
... | 29.038462 | 85 | 0.713245 |
45e4b1bfa2dca4762b301fec8f3b0b62e53d2f0b | 21,855 | /**
*
*/
package com.zuoxiaolong.deerlet.redis.client;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.zuoxiaolong.deerlet.redis.client.command.BitopOperations;
import com.zuoxiaolong.deerlet.redis.client.command.BooleanResultCommand;
import com.zuoxiaolong.deerlet.redis.clie... | 15.577334 | 135 | 0.638527 |
de8425f65394ca61afb5645ff9654a7703824450 | 770 | package com.ysyx.commons.wx.requests.wxmsg;
import com.ysyx.commons.wx.TextHttpRequest;
import com.ysyx.commons.wx.WXCommonResult;
import com.ysyx.commons.wx.annotations.Post;
import com.ysyx.commons.wx.annotations.QueryString;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* get send status request.
*
* ... | 22 | 76 | 0.753247 |
b2a7d819104a7a1baaea2b95b99c3ba2d9a152ad | 1,935 | package org.firstinspires.ftc.teamcode.code201920;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.teamcode.LcVuforiaOpMode;
import org.firstinspires.ftc.teamco... | 24.807692 | 84 | 0.555556 |
c96e934ae2d54412de2150dad8673c8ded9298ac | 1,023 | /*
* Copyright 2018 Patrik Karlström.
*
* 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... | 31.96875 | 141 | 0.746823 |
4900349251bd64abc40c5c9dbe9a8f787b0d58a7 | 7,343 | package com.eaybars.webstart.service.artifact.control;
import com.eaybars.webstart.service.artifact.entity.Artifact;
import com.eaybars.webstart.service.artifact.entity.ArtifactEvent;
import org.infinispan.manager.CacheContainer;
import org.infinispan.notifications.Listener;
import org.infinispan.notifications.cacheli... | 37.274112 | 122 | 0.667302 |
f1cab56bf8bfcd440c53acb301c18dfeb610515a | 982 | //,temp,sample_3958.java,2,11,temp,sample_827.java,2,17
//,3
public class xxx {
public void dummy_method(){
String pvcName = exchange.getIn().getHeader( KubernetesConstants.KUBERNETES_PERSISTENT_VOLUME_CLAIM_NAME, String.class);
String namespaceName = exchange.getIn().getHeader( KubernetesConstants.KUBERNETES_NAMESPACE... | 46.761905 | 158 | 0.817719 |
be9454e119396fdfe811fa4c8839fddecc15deaf | 84 | package io.flaterlab.jjson;
public interface Callback<T> {
void call(T data);
} | 16.8 | 30 | 0.714286 |
202d2632f43e56138e4f43e3c75829f036a6d828 | 1,110 | package org.fluentlenium.configuration;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.Capabilities;
public class CapabilitiesJsonParsingTest {
private static fi... | 32.647059 | 113 | 0.730631 |
8e2fbd79ac7f62bd7f0282199c52666fdfc6d795 | 2,524 | package com.good.utils;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.ht... | 30.780488 | 94 | 0.660063 |
decf4d0a9caef8413c08620a84389d734c626f7b | 685 | /**
*
*/
package str.govern.data;
public enum Users {
batman(1,"5/1/1939","b4tg1rl","the Caped Crusader", "batman",Status.active),
robin(2, "4/1/1940", "b4tg1rl","the Boy Wonder", "robin", Status.active),
joker(3, "4/25/1940", "h@rl3y","the Villian", "jerome", Status.locked);
public int id;
public Stri... | 27.4 | 95 | 0.662774 |
0532398e65c1ef04fe426314944f0bdc75d51904 | 5,945 | /*
* Copyright 2019-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 40.719178 | 118 | 0.754247 |
bbb524f51c1a28952ce9574bc22de28606699ff8 | 1,710 | /*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 34.2 | 128 | 0.736842 |
11fb7d4c2fabe7e126b08f8ea43cc07696bcde02 | 21,887 | package com.tama.chat.ui.activities.main;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.Pa... | 37.09661 | 133 | 0.66423 |
020400b24964e0333b3d0dd124931a4e69ab83ec | 6,967 | /**
* 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... | 37.659459 | 145 | 0.636716 |
47a11c0cec21c4c400c3cc978d2b24dc8ed610f3 | 531 | package apple.imagecapturecore.enums;
import org.moe.natj.general.ann.Generated;
import org.moe.natj.general.ann.NInt;
@Generated
public final class ICReturnPTPDeviceErrorCode {
@Generated
private ICReturnPTPDeviceErrorCode() {
}
/**
* PTP Command failed to send
*/
@Generated @NInt publ... | 26.55 | 95 | 0.728814 |
f666bc0ed5d8df92f346f8166c73b42aab9f244d | 1,244 | package api;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class UserDao {
static {
String DATABASE_URL = System.getProperty("DATABASE_URL");
}
public User getUserBy(int id) {
Connection connection;
... | 30.341463 | 84 | 0.582797 |
15dcbb12a62be3498b3b636ceadb88c54c8a4301 | 1,090 | package com.itboyst.facedemo.dto;
public class FaceSearchResDto {
private String faceId;
private String name;
private Integer similarValue;
private Integer age;
private String gender;
private String image;
public String getFaceId() {
return faceId;
}
public void setFaceId... | 18.166667 | 55 | 0.600917 |
b5e21b15ac7a0cadd11f0eab280bbd7c3fb69f4a | 11,713 | package Etudiants;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.S... | 32.090411 | 180 | 0.700931 |
5e688fdc672735d50bd73387d50246ace410d117 | 5,137 | /*
* Copyright 2020 momosecurity.
*
* 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... | 48.462264 | 152 | 0.687755 |
891fd553297f9dec5f3c35e6d1c4773a3e3e9ae8 | 6,799 | package cn.wildfire.chat.kit.contact.pick;
import android.graphics.Rect;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.Toast;
import androidx.annotation.NonNull;
... | 34.338384 | 152 | 0.693484 |
e9b25288466a480ba0dca8665d026c6bd4e82d1f | 1,372 | package personenkartei;
import javax.swing.*;
import java.util.Objects;
public final class JFormTextField {
private final PersonField personFieldTitle;
private final JPanel panel;
public JFormTextField(PersonField personFieldTitle, JPanel panel) {
this.personFieldTitle = personFieldTitle;
... | 28.583333 | 78 | 0.641399 |
0ab007e666d765f5be7f065440d3c8ecbf3d84c4 | 9,973 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 27.626039 | 167 | 0.527324 |
4b1d2f2d065fe3482f73ad02664b9c72fb19c8c9 | 2,670 | package xyz.kvantum.bukkit.objects;
import lombok.NonNull;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.entity.Player;
import xyz.kvantum.bukkit.util.PlayerUtil;
import xyz.kvantum.server.api.util.SearchResultProvider;
import java.util.ArrayList;
import java.ut... | 35.131579 | 107 | 0.551311 |
adba73b0b9286e3b79376a627dfa4cb11282fec8 | 515 | package com.ssm.aspectj.annotation;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.ssm.aspectj.UserDao;
public class TestAspectjAnnotation {
public static void main(String[] args) {
// TODO Auto-generated method stub
... | 28.611111 | 115 | 0.8 |
82e6358e14233e61b6463c159f4206a7f9035722 | 8,993 | package com.vaadin.tutorial.crm.ui.view.questionnaire;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.formlayout.FormLayout;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.html.H2;
import com.vaadin.flow.component.listbox.ListBox;
import com.vaadin.flow.c... | 38.930736 | 191 | 0.677082 |
efcd479abf616ff28906e0037e5b3373c395cf13 | 1,710 | /*
* Copyright 2017 LINE Corporation
*
* LINE Corporation 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 39.767442 | 111 | 0.750292 |
43869468cfd1cc8085129b0d4048b29cccd05c17 | 6,305 | /*
* 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 ... | 20.14377 | 122 | 0.478033 |
64468315577e30b21f04427f6fd85cf15ce04eb3 | 2,366 | package strings;
public class detectCapital {
public static void main(String[] args) {
SolutionDC solution = new SolutionDC();
System.out.println(solution.detectCapitalUse("USA"));
System.out.println(solution.detectCapitalUse("FLaG"));
System.out.println(solution.detectCapitalUse("... | 31.546667 | 116 | 0.632291 |
593f3db3292c19607b64ee6a5fad335efa7b5451 | 8,968 | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... | 32.970588 | 108 | 0.696811 |
a8f089275164c0120acc33ffb8deccae3daacc76 | 1,371 | /*
* 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 ... | 29.804348 | 70 | 0.73523 |
04e4216fa6234ce8a03dc4e297f8891d7ca877c6 | 1,012 | package cn.huse.utils;
import java.util.UUID;
/**
* 文件上传的工具类
* @author jt
*
*/
public class UploadUtils {
/**
* 传递一个文件名,返回一个唯一的文件名。
*/
public static String getUuidFilename(String filename){
// 在Java的API中有一个类UUID可以产生随机的字符串。aa.txt
// UUID.randomUUID().toString();
// 获得文件名的扩展名.
int idx = filename.las... | 22 | 71 | 0.660079 |
3f1618ebefcd09a8b9d7d403a1aea4413e2c587b | 30,402 | package annotationInteraction;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
... | 33.22623 | 271 | 0.681205 |
4e5ad148f5bde430a2a66a84e9560a24f92d3711 | 1,840 | package com.fjx.mg.setting.companycer;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.fjx.mg.R;
import com.fjx.mg.ToolBarManager;
import com.library.common.base.BaseMvpActivity;
import com.library.com... | 25.915493 | 117 | 0.730978 |
eb741aaaa11ca7eabe49ad1ff1b62e71bcde1751 | 768 | package io.opentracing.contrib.specialagent.rule.dubbo26;
import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.ReferenceConfig;
import io.opentracing.contrib.specialagent.rule.GreeterService;
public class MockClient {
private ReferenceConfig<GreeterService> client;
public MockCl... | 28.444444 | 70 | 0.678385 |
25a121067c33f5b182e0c7b9cc015b885c815cb1 | 5,466 | package com.mindforger.coachingnotebook.client.ui.social;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import c... | 36.198675 | 115 | 0.726674 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.