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 |
|---|---|---|---|---|---|
a9c0077e2f413c703226497b1152e87d9192a57a | 2,707 | package com.omgren.apps.smsgcm.server;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import java.util.LinkedList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@SuppressWarnings("serial")
public cla... | 31.476744 | 105 | 0.665312 |
7c273405fdb35a801b5c7adbfa4ddf78a13a93f4 | 177 | package com.eshare.dto;
import lombok.Data;
/**
* 产品额度强制解冻命令
* @Author Evan Leung
**/
@Data
public class ProductQuotaForcedUnfreezeCmd extends BaseQuotaStatusChangeCmd {
}
| 14.75 | 77 | 0.762712 |
3c087e7f31e82297c6ab436fa5d4537e3db12ff3 | 3,194 | /*
* 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 ... | 30.711538 | 117 | 0.666562 |
edde141c5de7884a5cc4e8c1000c20a4e1baabb4 | 361 | package com.jeradmeisner.audioserver.dto;
import com.jeradmeisner.audioserver.interfaces.StateObject;
import com.jeradmeisner.audioserver.state.Client;
import java.util.List;
public class ClientStateObject implements StateObject {
public List<Client> clients;
public ClientStateObject(List<Client> clients) {... | 24.066667 | 59 | 0.775623 |
ecb83bdd9647f0fdfb10c2e30f97190c06c4d859 | 1,899 | /*
* Copyright (c) 2017. All rights reserved
*/
package fr.techad.edc.client.util;
import fr.techad.edc.client.model.InvalidUrlException;
/**
* This class generate the url according to the context.
*/
public interface UrlUtil {
/**
* Return the home url for the help client
*
* @return the hom... | 33.910714 | 144 | 0.695629 |
b0005eab565e20ef408e63d0569c052bb1c4f37e | 9,177 | /*
* Copyright (c) 2010-2012 LinkedIn, 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 ... | 31.644828 | 125 | 0.583524 |
8060e8154c097457943f754f61efc6048b1f785e | 1,193 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import co... | 21.303571 | 60 | 0.629505 |
f6bc83d3a8c8a6d02ed03780f85f1a37ed37afdd | 764 | package nilm;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.*;
public class NormalizationMapper extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
private ... | 38.2 | 129 | 0.774869 |
28abb332cf213f0c8f481c55da686618dce1b799 | 1,563 | package com.mrthomas20121.libs;
import c4.conarm.lib.materials.ArmorMaterials;
import c4.conarm.lib.materials.CoreMaterialStats;
import c4.conarm.lib.materials.PlatesMaterialStats;
import c4.conarm.lib.materials.TrimMaterialStats;
import slimeknights.tconstruct.library.TinkerRegistry;
import slimeknights.tconstruct.li... | 34.733333 | 105 | 0.760717 |
a4604ba31253f7f5b3d9ac7355c4d288ad541617 | 676 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.achartengine.model;
import java.io.Serializable;
public final class Point
implements Serializable
{
private float a;
p... | 14.695652 | 62 | 0.56213 |
fe6b2f8019d2e152b0ec04faedc016d7bd7269b5 | 2,036 | /*
* Copyright 2018 OmniFaces
*
* 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 wr... | 26.102564 | 118 | 0.750982 |
757f56d98eb3dcf12028a7d1f8e2c0e5000aecbe | 912 | package de.protubero.beanstore.api;
import java.util.function.Consumer;
import de.protubero.beanstore.base.tx.TransactionEvent;
/**
* An executable transaction is explicitly executed by client code,
* in contrast to e.g. migration transactions.
*/
public interface ExecutableBeanStoreTransaction extends BeanStore... | 25.333333 | 82 | 0.747807 |
2db2d11a16473d3c8f74661104100aa88fc710ea | 4,744 | package net.mahdilamb.colormap.tests;
import net.mahdilamb.colormap.Colors;
import org.junit.jupiter.api.Test;
import java.awt.*;
import static org.junit.jupiter.api.Assertions.*;
public class ColorTests {
/**
* Compare the results to EasyRGB.com for primary and secondary colors
*/
@Test
publ... | 46.970297 | 103 | 0.621627 |
4e8ef0692dce8fc2da2f285041e86893f79f25a3 | 808 | package com.patika.service;
import com.patika.model.Student;
import com.patika.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Qualifier;
import org.... | 26.933333 | 66 | 0.77104 |
0923d4de62e1931729c1a63200f3bd2f57767632 | 1,977 | /*
* Copyright 2015 Akyruu (akyruu@hotmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 29.073529 | 107 | 0.564997 |
663147d30dd266ada43a92bdf9be63bbbb5d81a8 | 1,086 | package com.robin.basis.model;
import com.robin.core.base.annotation.MappingField;
import com.robin.core.base.model.BaseObject;
import java.time.LocalDateTime;
public abstract class AbstractModel extends BaseObject {
@MappingField
private LocalDateTime createTm;
@MappingField
private LocalDateTime m... | 20.884615 | 56 | 0.6814 |
1f7a072922bef8281c97e689daa0464f8f44da7b | 132 | package everyos.browser.webicity.webribbon.gui.box;
public interface MutableInlineLevelBox extends InlineLevelBox, MutableBox {
}
| 22 | 75 | 0.840909 |
0756002463802174064bb7646512df4070c2bbd9 | 3,514 | /*
* 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 co.edu.uniandes.csw.mascotas.ejb;
import co.edu.uniandes.csw.mascotas.entities.EventoEntity;
import co.edu.uniandes.cs... | 31.097345 | 104 | 0.617814 |
0e7b6651503cf373a5f4399ea27490cf624fc3b1 | 2,238 | // automatically generated by the FlatBuffers compiler, do not modify
package edu.ucsc.soe.sys;
import java.nio.*;
import java.lang.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class Extent extends Table {
public static Extent getRootAsExtent(ByteBuffer _bb) { return getRootAsExten... | 49.733333 | 222 | 0.713584 |
72b28543515f80a965c2f54859f4196107b3e83e | 445 | package org.liwang.dao.manager;
import org.liwang.entity.Operate;
import org.liwang.manager.DefaultDaoManager;
import org.springframework.stereotype.Component;
/**
* 操作明细daomanager
* @author liwang
*
*/
@Component
public class OperateDaoManager extends DefaultDaoManager<Operate>{
/**
* 加权限因为在新增时数据的权限默认与操作对象的权... | 18.541667 | 66 | 0.770787 |
46bd1fcf7d0704a6e51e68cce7a824b6f6db1773 | 1,187 | package com.myproject.imageprocessing;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
public class splash extends AppCompatActivity {
@Override
protected void onCreate(Bundle s... | 29.675 | 84 | 0.562763 |
5acb5cfe12d2c37dac8b6a5c5a9c794ed08b216c | 3,263 | /**
* Copyright (c) 2014 Technische Universitat Wien (TUW), Distributed Systems Group E184 (http://dsg.tuwien.ac.at)
*
* This work was partially supported by the EU FP7 FET SmartSociety (http://www.smart-society-project.eu/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 38.388235 | 129 | 0.715599 |
023a5c982b3582f3b06b1be04a90260be2f79e4b | 9,346 | package info.u_team.music_player.gui.controls;
import static info.u_team.music_player.init.MusicPlayerLocalization.GUI_CONTROLS_VOLUME;
import static info.u_team.music_player.init.MusicPlayerLocalization.getTranslation;
import java.util.ArrayList;
import java.util.List;
import com.mojang.blaze3d.matrix.MatrixStack;
... | 39.104603 | 258 | 0.760111 |
216dd204f7a46b0fcdac8a7929181727cc97b679 | 1,698 | package solution;
import java.util.Iterator;
import java.util.LinkedList;
/**
* Author:Berlin
* Problem 6:从尾到头打印链表。
* 题目描述:输入一个链表的头结点,从尾到头反过来打印出每个结点的值。
*/
public class PrintLinkedList {
private static class ListNode {
int value;
ListNode next;
public ListNode(int value) {
... | 23.260274 | 101 | 0.583628 |
6ce4cd7946898ad80dd2be7b34bfe3472e56232a | 1,536 | package cn.edu.hust.dao;
import cn.edu.hust.domain.Users;
import cn.edu.hust.mapper.UsersMapper;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.HashMap;
@Repository
public class User... | 25.180328 | 78 | 0.707682 |
690cf97ac2438b28aff892124d6779d3322233ff | 2,179 | package org.rowinson.healthcheck.application;
import io.vertx.core.Future;
import org.rowinson.healthcheck.application.interfaces.ServiceRepository;
import org.rowinson.healthcheck.domain.Service;
import java.util.ArrayList;
/**
* Manages all the logic related to the service handling
*/
public class ServiceApplica... | 22.936842 | 126 | 0.680128 |
d137d0df7082b3256a97f3107f246194bdc14c40 | 23,214 | package ui.view;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.... | 29.534351 | 111 | 0.685362 |
ea1ffd775b48e96e8da8a68a8dec9fcc544610db | 213 | package de.uxnr.tsoexpert.game.communication.vo;
import de.uxnr.amf.v3.AMF3_Object;
public class NumberVO extends AMF3_Object {
private double value;
public double getValue() {
return this.value;
}
}
| 17.75 | 48 | 0.746479 |
a0be869e075390ee4fd40a576c88cefb6cdb2eee | 175 | package cn.shijinshi.redis.common.registry;
/**
* 用于监听节点下的数据
*
* @author Gui Jiahai
*/
public interface DataListener {
void dataChanged(String path, byte[] data);
}
| 14.583333 | 47 | 0.697143 |
249279943c94e9d3f0251cfe06b177b8409b088b | 1,612 | package ru.stqa.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.Contacts;
import ru.stqa.pft.addressbook.model.GroupData;
import java.util.List;
impo... | 35.822222 | 116 | 0.658189 |
d64f44bf36dff572a7be167ea684179d6b4a9e50 | 8,094 | /*
* Copyright (c) 2021 dzikoysk
*
* 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... | 50.273292 | 197 | 0.707314 |
e8dd154a7cfd2c0128aac1f0509756b43840cb7f | 45,865 | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Aug 20 10:18:19 GMT 2019
*/
package de.komoot.photon.nominatim;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.... | 54.086085 | 183 | 0.749766 |
d49b0714908be3c0601ac9838f83c9369e24a624 | 162 | package com.devin12422.tweaks.item.weapon.onehanded.plancon;
public class PlanconItem {
public PlanconItem() {
// TODO Auto-generated constructor stub
}
}
| 16.2 | 60 | 0.759259 |
4c3e37bbf8e410ac0fabf7e883a18053bdda67f0 | 2,863 | /*
* Copyright (C) 2020 The zfoo Authors
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 33.682353 | 160 | 0.698219 |
0c1451e114bcc11da222a67ce47046e9b72529bc | 677 | /*
Copyright © 2019 Pasqual K. | All rights reserved
*/
package systems.reformcloud.network.packets.in;
import systems.reformcloud.ReformCloudClient;
import systems.reformcloud.configurations.Configuration;
import systems.reformcloud.network.interfaces.NetworkInboundHandler;
import java.io.Serializable;
/**
* @... | 27.08 | 96 | 0.769572 |
69d08ab2e23a9dcff384e7310bdf232800884465 | 834 | package CodeChef.Practice;
import java.util.HashSet;
import java.util.Scanner;
public class StudyingAlphabet {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s = scanner.nextLine();
HashSet<Character> jeffKnows = new HashSet<>();
for (int ... | 30.888889 | 59 | 0.51199 |
678dca9328d5e3d9ef6bd998f0ed97014506e71b | 21,945 | /*
* Copyright 2003 - 2017 The eFaps Team
*
* 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 ... | 32.272059 | 118 | 0.575849 |
98b578baf9b66def752bcccaa735050a1a0c4f87 | 5,287 | package com.kuang.kuangshenesjd.service;
import com.alibaba.fastjson.JSON;
import com.kuang.kuangshenesjd.pojo.Content;
import com.kuang.kuangshenesjd.utils.HtmlParseUtil;
import org.apache.lucene.util.QueryBuilder;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
im... | 36.462069 | 125 | 0.69529 |
aa63ba9291731429d0c50731485db751a7ed46f3 | 5,903 | /*
* Copyright 2019 Baidu, Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 25.777293 | 118 | 0.631204 |
2dec4043ec7d2bcb357fcf1aff9c89c9f8fecfd7 | 5,364 | /*
* Copyright 2004,2005 The Apache Software Foundation.
*
* 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... | 35.523179 | 116 | 0.771999 |
74ac08f90364b2a6eb26f4faad5609862725d8cd | 7,865 | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2011, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | 31.210317 | 79 | 0.59733 |
ef98b1f00c1b5727b74f73c5021c1dbe391aa9c4 | 5,782 | // Copyright 2017 Archos SA
//
// 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 w... | 37.79085 | 171 | 0.667243 |
f4e1a660c42a0852750a2922e275ab7f396b9555 | 3,845 | package VoiceMenuTest.constraints;
/*Generated by MPS */
import jetbrains.mps.smodel.runtime.base.BaseConstraintsDescriptor;
import java.util.Map;
import org.jetbrains.mps.openapi.language.SReferenceLink;
import jetbrains.mps.smodel.runtime.ReferenceConstraintsDescriptor;
import jetbrains.mps.smodel.runtime.base.Base... | 53.402778 | 290 | 0.79844 |
4ee502d0719d91d7890e2b05800cc79a98df752d | 887 | package com.linfaxin.transitionplayer.demo;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.o... | 26.878788 | 64 | 0.729425 |
ab9d6e64c521805b71f3b76d4c103d809ecbaf10 | 51 | package mytest;
public class DemoThread {
}
| 8.5 | 26 | 0.666667 |
447ab4f8da90cb020852a8c4c33068b98b4ab997 | 51 | /**
* バッチ起動クラスを提供する。
*/
package jp.dcworks.batch; | 12.75 | 25 | 0.666667 |
cf85fe08b0dd17bd8f6ce0957c1895d86940beee | 2,467 | /**
* 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... | 32.893333 | 76 | 0.658695 |
b32104866ca30d7c0d8805d3ce4ffff8cfa56696 | 1,076 | package smithsonian.merlin.util;
import org.ini4j.Wini;
import java.io.File;
/**
* Created by albesmn on 8/24/2016.
*/
public class Options {
public static String currentLayout;
public static String shared_folder_path;
public static String museum;
public static void loadOptions() {
try {
... | 27.589744 | 76 | 0.585502 |
48b4a55bb946ff65b67923f5b4ad5eb71741af55 | 1,828 | /*
* Copyright (C) 2011 The Best Company in the World
*
* 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://github.com/fmarslan/notifyman/blob/master/LICENSE
*
* Unless requ... | 38.893617 | 98 | 0.786105 |
aa5934fadbdf86a05e0600f5427e172ab9234d1e | 686 | package com.frank.framework.validator;
import java.util.regex.Pattern;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.lang3.StringUtils;
import com.frank.framework.annotation.Phone;
/**
* 手机号码校验
* @author Frank
*
*/
p... | 24.5 | 101 | 0.720117 |
e5b806646c0940e9e78543ca9c5ede4d848cf5c8 | 749 | package cn.jpush.android.a;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
public final class i
{
private static Queue<Integer> a = new ConcurrentLinkedQueue();
public static int a()
{
if (a.size() > 0) {
return ((Integer)a.poll()).intValue();
}
return 0;
}
... | 19.710526 | 102 | 0.639519 |
caefc479cb7a48182e786bd85d309090ae070b6e | 2,684 | package blusunrize.discordstreamcompanion.config;
import blusunrize.discordstreamcompanion.util.Utils;
import javax.swing.*;
import java.awt.*;
/**
* @author BluSunrize
* @since 26.08.2017
*/
public class GuiConfig
{
private Config config;
private JFrame frame;
private JPanel window;
private JButton button_... | 28.252632 | 101 | 0.767511 |
986bbe9e0a1dedf8f6641792dfe4c7b112d21ca9 | 2,961 | package com.elementary.tasks.core.calendar;
import android.os.Environment;
import java.io.File;
/**
* Copyright 2016 Nazar Suhovich
* <p/>
* 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 a... | 27.416667 | 91 | 0.559608 |
7811ceb915bb1d64fef0c61ff6450d791844a820 | 24,762 | /**
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 not use this ... | 35.577586 | 164 | 0.668969 |
3c14c4e34eb036e50ec7e6c95072ed0836939a7c | 1,880 | package com.github.blutorange.translune.ic;
import java.io.IOException;
import javax.inject.Singleton;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.slf4j.Logger;
import com.github.blutorange.common.Suppliers;
import com.github.blutorange.common.ThrowingSupplier;
im... | 29.84127 | 111 | 0.792553 |
d4ccbbb3e2c4d09107eed5cc6e54826b9a554688 | 6,752 | /*
* Copyright (c) 2017, WSO2 Inc. (http://wso2.com) 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 requi... | 40.674699 | 112 | 0.601896 |
17ab5203c36d13599190d4a193d053e59c361a46 | 1,111 | package com.it.ymk.bubble.component.codetools.controller;
import org.durcframework.core.controller.CrudController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.it.ymk.bubble.comp... | 34.71875 | 107 | 0.783078 |
c2faf1c0a311a1841ac38494bf10d474b7a802ad | 604 | package com.yourtion.leetcode.medium.c0024;
import com.yourtion.leetcode.utils.ListNode;
/**
* 24. 两两交换链表中的节点
*
* @author Yourtion
* @link https://leetcode-cn.com/problems/swap-nodes-in-pairs/
*/
public class Solution {
public ListNode swapPairs(ListNode head) {
ListNode node = head;
while (n... | 23.230769 | 62 | 0.534768 |
f40eb774d154b53b76b86f7b5963584c1d94cae4 | 10,150 | package org.yarnandtail.andhow;
import java.util.List;
import static org.junit.Assert.*;
import org.junit.*;
import org.yarnandtail.andhow.api.*;
import org.yarnandtail.andhow.export.SysPropExporter;
import org.yarnandtail.andhow.util.AndHowUtil;
import org.yarnandtail.andhow.internal.ConstructionProblem;
import or... | 36.642599 | 112 | 0.767783 |
f8d822f940228618969bd88abac88e90157c2d12 | 891 | package org.shapelogic.imageutil;
import ij.ImagePlus;
import ij.plugin.filter.PlugInFilter;
import ij.process.ImageProcessor;
/** Adapter from SLImageFilter to PlugInFilter.
*
* @author Sami Badawi
*
*/
public class PlugInFilterAdapter implements PlugInFilter {
protected ImageOperation _imageOperation;
pu... | 23.447368 | 73 | 0.747475 |
e14ad0c73574b14b4dbccf50439f11523b8d4bc1 | 446 | package de.qaware.qav.test.generics;
import java.util.List;
/**
* @author QAware GmbH
*/
public class MyGenericsMethods {
public List<String> filterList(List<A> list) {
return null;
}
public List<String> f(List<List<B>> doubleList) {
return null;
}
public <V> V getX(List<V> l... | 16.518519 | 53 | 0.585202 |
db8bd93c70bf272d4280ced53ed7b6f38527eaca | 2,149 | package it.sephiroth.android.library.floatingmenu;
/**
* Created by alessandro on 24/05/14.
*/
public class FloatingActionItem {
int id;
int resId;
int delay = 0;
int paddingTop = 0;
int paddingBottom = 0;
int paddingLeft = 0;
int paddingRight = 0;
int backgroundResId;
static public class Builder {
int i... | 21.068627 | 103 | 0.65705 |
30cdc1f7998e9928a8a50ade0b7ab6ea433a01c1 | 345 | package org.reasm.testhelpers;
import org.reasm.source.ParseError;
/**
* A dummy implementation of {@link ParseError}.
*
* @author Francis Gagné
*/
public final class DummyParseError extends ParseError {
/**
* Initializes a new DummyParseError.
*/
public DummyParseError() {
super("Dummy... | 17.25 | 55 | 0.663768 |
806cf3127e5722ae8985c7fe59475c72eb2578fc | 2,290 | /*
* 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.935484 | 94 | 0.69476 |
10185747d538de54181f663de6976d19de28d8b7 | 2,177 | /*
* This file is part of the L2JServer project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pr... | 27.2125 | 86 | 0.740928 |
36c52c125b585b21863b47985aba82d3e9688f39 | 154 | import java.awt.Graphics;
public interface Drawable {
//einheitliche methode zum zeichnen eines objektes
public void drawObjects(Graphics g);
}
| 19.25 | 54 | 0.75974 |
476499ae45d9631052aee665c133c2a1ae5fac2b | 280 | package com.example.sproject.dao.sample;
import java.util.List;
import com.example.sproject.model.sample.Sample;
public interface SampleDao {
List<Sample> selectSample();
int insertSample(Sample sample);
void insertFinalTest(String name, String password, String message);
}
| 23.333333 | 68 | 0.792857 |
0fc3711cf5d9df2f530561f66470ec28ebb63c60 | 7,134 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.puntodeventa.global.printservice;
import com.puntodeventa.global.Entity.Venta;
import com.puntodeventa.global.Enum.PrintType;
import com.puntodeventa.global.Util.LogHelper;
import com.puntodeventa.global.rep... | 39.633333 | 121 | 0.629521 |
c6c84e1b606e0999600e0022bcc8e00fa87aa438 | 1,047 | package com.c8y.ms.templates.agent.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation... | 38.777778 | 100 | 0.82426 |
124943c3a3bd5a0d15a05de9615724b3c373e5a9 | 268 | package com.pispower.video.sdk.advertising.request;
public class AdvertisingGetRequest {
private String id;
public AdvertisingGetRequest(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
} | 15.764706 | 51 | 0.708955 |
c5185f38cf67b0d26ac0420acb87e4bbcd4e4f4b | 2,256 | /*
* Copyright (C) 2015 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... | 38.237288 | 82 | 0.698582 |
9895d78579892a84653bc3bbc62a3ed45628b78f | 15,082 | /*
Copyright 2011-2013 Frederic Langlet
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 ... | 34.512586 | 129 | 0.449675 |
9e618d7b89eb6f2b1bd4b47c47c8908f56795fb2 | 7,003 | package com.example.asus.tastenews.news.adapter;
import android.content.Context;
import android.content.res.Resources;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.v... | 34.668317 | 134 | 0.646723 |
2b2e38b4890d514271f471058aa2c0eafacdfabf | 2,479 | /*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003-2005 University of Maryland
*
* This library 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; either
* version 2.1 of the License, o... | 38.734375 | 128 | 0.668415 |
91eed46dbc28a0cb600a38efbcc1c7cd195f63ac | 5,028 | /* Copyright (c) 2011 Peter Troshin
*
* JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0
*
* This library is free software; you can redistribute it and/or modify it under the terms of the
* Apache License version 2 as published by the Apache Software Foundation
*
* This librar... | 31.622642 | 102 | 0.725338 |
ee08a24cfdf8af0a1ae55251edf8f64acd5daede | 7,467 | package edu.kit.uneig.atisprint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem... | 35.727273 | 116 | 0.614973 |
763029870f38bb3ab72b4f583eab2c05d94919c8 | 26,907 | package com.eklanku.otuChat.ui.activities.payment.transaksi;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import andr... | 39.862222 | 165 | 0.573382 |
9d2b6a38a1632ff9862b1a325b7d533b3789dcd8 | 844 | package com.fos.fosmvp.ui.login.contract;
import com.fos.fosmvp.base.BaseModel;
import com.fos.fosmvp.base.BasePresenter;
import com.fos.fosmvp.base.BaseResponse;
import com.fos.fosmvp.base.BaseView;
import com.fos.fosmvp.entity.login.UserEntity;
import java.util.Map;
import rx.Observable;
public interface LoginCo... | 26.375 | 78 | 0.726303 |
4c325014c84040151ca3f130187e1ba642babdea | 1,380 | package org.spongycastle.crypto.tls;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class HeartbeatExtension
{
protected short mode;
public HeartbeatExtension(short mode)
{
if (!HeartbeatMode.isValid(mode))
{
throw new IllegalArgume... | 24.210526 | 92 | 0.615942 |
c3b14b5d392f64b45a52f8d91c6c427d7ea2e2b6 | 1,969 | package com.logginghub.logging.api.patterns;
import com.logginghub.utils.sof.SerialisableObject;
import com.logginghub.utils.sof.SofException;
import com.logginghub.utils.sof.SofReader;
import com.logginghub.utils.sof.SofWriter;
public class InstanceDetails implements SerialisableObject {
private String... | 25.907895 | 137 | 0.616557 |
fd90ec27f8f41aab07eca69cd93b7098059ce550 | 4,133 | /**
* Copyright (c) 2010 Perforce Software. All rights reserved.
*/
package com.perforce.team.ui.charts.diff;
import org.eclipse.osgi.util.NLS;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
public class Messages extends NLS {
private static final String BUNDLE_NAME = "com.perforce.team.ui.charts.di... | 23.219101 | 104 | 0.706267 |
eb41b667e7cacd7641687dcd02e363895731af51 | 757 |
// Demonstration of both constructor
// and ordinary method overloading.
import java.util.*;
class Tree {
int height;
Tree() {
prt("Planting a seedling");
height = 0;
}
Tree(int i) {
prt("Creating new Tree that is "
+ i + " feet tall");
height = i;
}
void info() {
prt("Tree is ... | 18.925 | 42 | 0.536328 |
1466bc459b68c02d2726f546256199f9b929f3ff | 13,453 | package org.embulk.jruby;
import com.google.inject.Injector;
import com.google.inject.ProvisionException;
import java.nio.file.InvalidPathException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.embulk.config.ModelMana... | 46.389655 | 195 | 0.610347 |
6c93cc68f4cf923b8821bb172630c2afdfebe097 | 2,727 | package com.jg.wx.admin.web;
import com.alibaba.fastjson.JSONObject;
import com.jg.wx.core.util.RegexUtil;
import com.jg.wx.core.util.ResponseUtil;
import com.jg.wx.domain.DtsFeedback;
import com.jg.wx.domain.DtsUser;
import com.jg.wx.service.DtsFeedbackService;
import com.jg.wx.service.DtsUserService;
import com.jg.w... | 26.735294 | 96 | 0.740007 |
613eb98e1856bad810aa314f446613295615e9c4 | 3,243 | package org.ovirt.engine.ui.common;
import com.google.gwt.i18n.client.Constants;
public interface CommonApplicationConstants extends Constants {
@DefaultStringValue("Oops!")
String errorPopupCaption();
@DefaultStringValue("Close")
String closeButtonLabel();
@DefaultStringValue("[N/A]")
Stri... | 27.252101 | 128 | 0.748381 |
9961140272fdaa4c8015d67191035d0d4c2e87c5 | 15,543 | package com.github.ddth.queue.impl.universal;
import java.sql.Connection;
import java.text.MessageFormat;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import com.github.ddth.commons.utils.MapUtils;
import com.github.ddth.dao.jdbc.IJdbcHelper;
... | 43.295265 | 195 | 0.629158 |
47347cfcb2e3a1bb050743d9f1a3b3629864f233 | 615 | package com.yeungeek.basicjava.data.list;
import java.util.LinkedList;
import java.util.List;
public class LinkedListTest {
public static void main(String[] args) {
LinkedList<Integer> list = new LinkedList<>();
list.add(1);
list.add(2);
list.add(3);
list.add(4);
li... | 22.777778 | 54 | 0.565854 |
5e69e2bc9d552ef9dd774e46dc4e453311f3fdc4 | 1,901 | package com.example.asus.androiddrinkshopserver.Utils;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.Nullable;
import com.example.asus.androiddrinkshopserver.Interface.UploadCallBack;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import okh... | 23.182927 | 72 | 0.678064 |
7ac6f9ea7ee21973b9e7582305217601221f72fb | 1,354 | package top.jasonkayzk.ezshare.system.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fasterxml.jackson.core.JsonProcessingException;
import top.jasonkayzk.ezshare.common.entity.QueryRequest;
import top.jasonkayzk.ezshare.common.exception.CacheException;
import top.jasonkayzk.ezshare.system.en... | 19.911765 | 86 | 0.636632 |
beb1042b5b51e7b403ff6aff73d0865f02ab7271 | 223 | package cn.chenzw.excel.magic.core.support.converter;
/**
* 字段值转换器
* @param <A>
* @param <T>
*/
public interface AbstractExcelColumnConverter<A, T> {
void initialize(A annotation);
T convert(String value);
}
| 15.928571 | 53 | 0.681614 |
6cf36daee096fc85cc397e87390b42baeab72172 | 1,602 | package org.jruby.ir.instructions.defined;
import org.jruby.ir.IRVisitor;
import org.jruby.ir.Operation;
import org.jruby.ir.instructions.FixedArityInstr;
import org.jruby.ir.instructions.Instr;
import org.jruby.ir.operands.Operand;
import org.jruby.ir.persistence.IRReaderDecoder;
import org.jruby.ir.persistence.IRWri... | 30.807692 | 135 | 0.735955 |
8cdf4537329cce1cc96efe2cd696e430d1e7cd4e | 6,085 | /* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* 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... | 38.03125 | 110 | 0.679704 |
021be15676d3e95abbb90d5ebd54d464c87f9af9 | 2,494 | package rocks.cleanstone.storage.engine.rocksdb;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.rocksdb.*;
import rocks.cleanstone.data.KeyValueDataRepository;
import javax.annotation.Nullable;
import java.nio.file.Path;
/**
... | 28.022472 | 99 | 0.630313 |
a3dbc2bd79a3c1ae6dc76aa30e95965bceb01ef1 | 27,772 | /*
* Copyright 2019 EIS Ltd and/or one of 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 ... | 36.020752 | 124 | 0.635712 |
1fe839e5ef5e7562d2be36d5178597ccf7a35910 | 7,866 | package com.ssafy.nnd.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotatio... | 31.717742 | 106 | 0.719553 |
9fffb9a0c4eb568fb0cda027e99c22041d740339 | 305 | package tech.aistar.day02.homework.entity;
import lombok.Data;
import java.util.List;
/**
* @Description: java类作用描述:
* @Author: tyg
* @CreateDate: 2019/05/05
* @Version: 1.0
*/
@Data
public class Customer {
private Integer cid;
private String cname;
private List<Order> orderList;
}
| 14.52381 | 42 | 0.685246 |
ffbaadcffa974d119b8e68c23246f09065d0eeb8 | 3,520 | package it.linksmt.cts2.plugin.sti.db.commands.search;
import it.linksmt.cts2.plugin.sti.db.hibernate.HibernateCommand;
import it.linksmt.cts2.plugin.sti.service.exception.StiAuthorizationException;
import it.linksmt.cts2.plugin.sti.service.exception.StiHibernateException;
import java.util.List;
import org.h... | 40.45977 | 150 | 0.752841 |
2418c09866625c4f73e8f65f2864294ac89235ce | 15,408 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation 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 a... | 34.392857 | 95 | 0.711319 |
d18db8238d9fe404ed46a9abd1274c8fb38cd2f3 | 2,634 | package speedith.core.reasoning.rules.transformers.copTrans;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.TreeMap;
import java.util.TreeSet;
import speedith.core.lang.CompoundSpiderDiagram;
import speedith.core.lang.IdTransformer;
import speedith.core.lang.PrimarySpider... | 31.73494 | 112 | 0.676538 |
1f16314b42a358c7569c17ecccf1a2c1ffd5d850 | 889 | package models.hmcore.setting;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import models.BaseModel;
@Entity
@Table(name="system_setting")
@org.hibernate.annotations.Table(comment="系统设置", appliesTo = "system_setting")
public class SystemSetting extends BaseModel{
... | 21.682927 | 80 | 0.75703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.