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 |
|---|---|---|---|---|---|
ed542f328ff0e3ed9874628c5543ad217803ae17 | 3,842 | package com.github.loyada.jdollarx;
import org.junit.Test;
import static com.github.loyada.jdollarx.BasicPath.div;
import static com.github.loyada.jdollarx.BasicPath.span;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.*;
import static com.github.loyada.jdollarx.ElementPr... | 42.688889 | 192 | 0.628058 |
bf7fc31fb18572e2b1c5a4f234f8e16f414b3a8c | 6,484 | package org.hawkular.alerts.api.model.paging;
import java.util.Comparator;
import org.hawkular.alerts.api.model.event.Event;
/**
*
* @author Lucas Ponce
*/
public class EventComparator implements Comparator<Event> {
public enum Field {
ID("id"),
CATEGORY("category"),
CTIME("ctime"),
... | 35.23913 | 111 | 0.472394 |
b71c1165a1b2696ee848e10d9afabbd2e77dc456 | 813 | /*
* @(#)FigureSelectionListener.java 1.0 25. November 2003
*
* Copyright (c) 1996-2006 by the original authors of JHotDraw
* and all its contributors.
* All rights reserved.
*
* The copyright of this software is owned by the authors and
* contributors of the JHotDraw project ("the copyright holders").
*... | 30.111111 | 74 | 0.741697 |
8140c3ffb49b36608bf235925f336cf817fb2c05 | 335 | package kr.hs.entrydsm.application.usecase.dto.application.request;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Size;
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class UpdateDocsRequest {
@Size(max = 1600)
private Str... | 19.705882 | 67 | 0.808955 |
399448c8cae4be971d4f72c7c3f0b336ec9507d0 | 881 | package com.bihe0832.android.base.puzzle;
/**
* @author hardyshi code@bihe0832.com Created on 1/6/21.
*/
public enum GameMode {
BAD(0), NORMAL(1), EXCHANGE(2);
private int val = 0;
GameMode(int i) {
val = i;
}
public static GameMode getGameMode(int i) {
GameMode platform = Ga... | 19.577778 | 56 | 0.451759 |
c81545b1d1b216971b841131bd7cb8c4e8a62d7d | 3,873 | /*
* Copyright (c) 2010, Zepheira LLC, Some rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of conditi... | 34.274336 | 80 | 0.763749 |
985f6755f693ad05f334fd5087d2e1f44c9aa8bd | 6,092 | /**
*
*/
package com.aldb.gateway.interceptor;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
imp... | 40.078947 | 116 | 0.643631 |
9233df09458a83ca4b8bd69a715a3e64d72ca364 | 8,029 | package io.github.externschool.planner.service;
import io.github.externschool.planner.entity.Role;
import io.github.externschool.planner.entity.User;
import io.github.externschool.planner.entity.schedule.ScheduleEvent;
import io.github.externschool.planner.entity.schedule.ScheduleEventType;
import io.github.externscho... | 38.78744 | 114 | 0.719517 |
0144d27a8510c5a09466509e335cfee4362aa69b | 1,851 | package com.ambrosoft.exercises;
import java.util.Arrays;
/**
* Created by jacek on 11/5/16.
*/
public class SubarrayGivenSum {
// grow a sum from 'first' until last of array, or found, or too big
// when too big, advance first...
static void find(int[] a, final int val) {
System.out.println("... | 28.476923 | 85 | 0.405727 |
f78453199cec4c535ed5ecdd50d5d1a1eedc0bf4 | 971 | package app.ec.com.apppa;
import android.net.Uri;
import android.os.Environment;
import android.util.Log;
import androidx.databinding.ObservableField;
import java.io.File;
import app.ec.com.apppa.Helpers.FirebaseHelper;
import static app.ec.com.apppa.Helpers.FirebaseHelper.getInstance;
public class FotoViewModel ... | 27.742857 | 123 | 0.726056 |
8caaecb2438495887446de00f9c2f9058e985f2e | 984 | package com.middleware.cache.redis.springcache;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
@... | 25.230769 | 56 | 0.682927 |
70471249ccb87cb80f0672fca179961e215eb502 | 116 | package com.libre.core.copy;
import lombok.Data;
@Data
public class OtherSampleBean {
private String value;
}
| 12.888889 | 30 | 0.75 |
60173569c944cff2a74593337f07cfe0d9841d99 | 1,702 | /*
* Copyright (c) 2017-2018 Daniel Petisme
*
* 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... | 33.372549 | 112 | 0.692714 |
549e337f5063585b706c73ca1181a0977a9a3d38 | 4,036 | /*
* Copyright 2018
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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... | 37.719626 | 96 | 0.731169 |
2ff2d2a582c09a229cca45899bf2b80d7e82a1d6 | 2,452 | package com.rockmq.demo.rockmq_demo.producer;
import com.rockmq.demo.rockmq_demo.message.Demo07Message;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendCallback;
import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.client.producer.TransactionSendResult;
imp... | 35.028571 | 112 | 0.747961 |
bc0f78b3ebe01380183727125f3e81195f6c0a71 | 811 | package io.ashimjk.java.practice.collection.queue;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class CalculatorTest {
private Calculator calculator = new Calculator();
@Test
void shouldEvaluateConstants() {
int result = this.calculator.evaluat... | 22.527778 | 63 | 0.638718 |
04f46716e102cb11280870241614c2c35a452a4a | 251 | package com.kobakei.ratethisapp;
/**
* Created by Sönke Gissel on 25.05.2020.
*/
public class UnableToFindMarketException extends RuntimeException {
public UnableToFindMarketException(String errorMessage) {
super(errorMessage);
}
}
| 22.818182 | 67 | 0.74502 |
6e63f4128363b3a58042d3ac0620ac033fafe8b2 | 1,419 | package com.expensemanager.app.helpers;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.text.format.DateFormat;
public class TimePickerFragment extends DialogFragment {
public static final String HOUR = "hour";
... | 33.785714 | 107 | 0.712474 |
3a044535805fe7f8b661164e765163c0fd6ab963 | 263 | package watershine.itunes.jax2b;
import javax.xml.bind.annotation.*;
/**
* Created by kevin on 23.06.2017.
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class SongLibrary {
private Dict dict;
public Dict getDict() {
return dict;
}
}
| 13.842105 | 37 | 0.673004 |
63308bb873df955ca7e0836599012a55eec46dac | 1,448 | private String File2String(String directory, String filename) {
String line;
InputStream in = null;
try {
File f = new File(filename);
System.out.println("File On:>>>>>>>>>> " + f.getCanonicalPath());
in = new FileInputStream(f);
} catch (FileNotFo... | 37.128205 | 92 | 0.496547 |
6d36d547bf6717d44b8a3870cc7925a14c13659a | 1,957 | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 29.208955 | 84 | 0.69443 |
c334637557e31a19620e2dd30006ca061b5a41c7 | 3,802 | package com.example.routines;
import static android.content.ContentValues.TAG;
import android.app.Activity;
import android.util.Log;
import android.widget.EditText;
import androidx.annotation.NonNull;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.rule.ActivityTestRule;
import com.g... | 36.557692 | 110 | 0.670174 |
86e66e78afc1a6c6947ae5bbd6d58aadd4e6fb82 | 2,802 | /*
* 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 ... | 27.203883 | 76 | 0.614918 |
2105a837e35bb41cd828c5b3b39e8f0f9f9d071c | 11,202 | package xyz.upperlevel.uppercore.config;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import lombok.Getter;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.inventory.ItemFlag;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.T... | 37.34 | 108 | 0.526781 |
df71084700fd7565173b3164982ecfeb6b022eda | 12,524 | package slogo.view;
import com.jfoenix.controls.JFXButton;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import java.util.prefs.BackingStoreException;
import java.util... | 30.771499 | 100 | 0.692191 |
194213487c78e8585d317704e0c7734c567aa62c | 1,991 | package xyz.javablog.logic;
import xyz.javablog.common.cells.Cell;
import xyz.javablog.common.cells.PrimitiveCell;
import xyz.javablog.common.matrixes.Matrix;
import xyz.javablog.common.matrixes.MutableMatrix;
import xyz.javablog.common.points.Point;
import xyz.javablog.common.sizes.Size;
public class GameMutableMatr... | 27.652778 | 91 | 0.60221 |
289b46102a955a4994942f6d331c2642a0c2a130 | 1,551 | /*-
* ============LICENSE_START=======================================================
* Common Logging Library
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* ============================... | 35.25 | 83 | 0.58156 |
b67f8036b6536002d4194950b2afb796c79ca850 | 3,800 | package li.seiji.minichess.player;
import li.seiji.minichess.InvalidMoveException;
import li.seiji.minichess.Player;
import li.seiji.minichess.board.Board;
import li.seiji.minichess.board.GameState;
import li.seiji.minichess.board.State;
import li.seiji.minichess.move.FutureMove;
import li.seiji.minichess.move.Move;
... | 29.6875 | 123 | 0.588421 |
c566b1dcddea90eb966aa52630a1781b5d465c27 | 514 | package com.upp.api.core.recommendation;
import lombok.AllArgsConstructor;
import lombok.Data;
@AllArgsConstructor
@Data
public class Recommendation {
private int productId;
private int recommendationId;
private String author;
private int rate;
private String content;
private String serviceAdd... | 20.56 | 40 | 0.667315 |
a183796cbd87090997f8124f1387d5c94857a66c | 5,066 | /*
* Copyright 2017 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.model.cmd;
import java.util.List;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.rf.ide.core.t... | 44.438596 | 121 | 0.637584 |
2caae0569ea92a9422300bcf11f327059e395581 | 991 | // Copyright 2000-2020 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.intellij.featureStatistics;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.... | 39.64 | 140 | 0.817356 |
cabcd75a5fdb0465d5a8983093d787832a114a5d | 15,620 | /* Copyright (C) 2013 TU Dortmund
* This file is part of AutomataLib, http://www.automatalib.net/.
*
* 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/licen... | 31.491935 | 121 | 0.703969 |
1c489e9770d550b2faaf5b90856978f583cbb00f | 6,176 | package com.github.basdxz.journeymappartyhelper;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
//TODO: class with private constructor.
public enum Util {
;
public static final int SHORT_MASK = 0xFFFF;
pub... | 37.204819 | 109 | 0.625486 |
5d5216473c5165df7501b60fc4ab254c99f9861f | 3,360 | package fr.openwide.maven.artifact.notifier.web.application.administration.page;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;
import org.apache.wicket.model.StringResourceModel;
impor... | 43.636364 | 127 | 0.829167 |
5aa1c08f43336d7e14cad5df64980c670352f5f9 | 4,195 | package app.coronawarn.logupload.controller;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.BDDMockito.given;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import ... | 45.597826 | 148 | 0.758284 |
bd765592a43b5ff199db1b4a0cf68582aa057152 | 1,581 | /*
* 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 madgik.exareme.master.queryProcessor.analyzer.stat;
import java.util.Map;
/**
* @author jim
*/
public class Table {
pr... | 25.095238 | 91 | 0.645161 |
943fe8fbc87d7a1a3363e8f05b5839c7fc710182 | 6,414 | /*******************************************************************************
* Copyright (c) 2008 Actuate Corporation.
* 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 availabl... | 26.83682 | 135 | 0.582632 |
7e01f8530079bec312eb29415069cb8647dee712 | 2,884 | /*
* 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 api.entities;
import com.google.gson.annotations.SerializedName;
/**
*
* @author Y Sa
*/
public class DeviceInfoEnt {
... | 20.898551 | 79 | 0.62656 |
9f68f2613d628e7c2a5ddd6b2b92829e5d0f25fe | 2,686 | /*
* This file has been modified from the original.
*
* 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 Apa... | 31.97619 | 89 | 0.755398 |
e79270b145bc18294215bd93190c2a928d6dd45b | 3,371 | package org.ndexbio.communitydetection.rest.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
/**
*
* @author churas
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class CommunityDetectionResultStatus extends JobStatus {
private ... | 28.091667 | 126 | 0.645506 |
7882e4200e859812245107bb7a3297bcc36e0c7f | 3,814 | /*
* Copyright (c) 2011-2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available ... | 29.114504 | 84 | 0.576298 |
d96e3a3ddcb1e3af6f9c524046f55cd16c371159 | 153 | package com.coinninja.coinkeeper;
public interface ForegroundStatusChangeReceiver {
void onBroughtToForeground();
void onSentToBackground();
}
| 19.125 | 49 | 0.79085 |
04e8e5d2bbc45f71973030314ffeff74208d15d5 | 2,087 | /*
* #%L
* BroadleafCommerce CMS Module
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* 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/licen... | 30.691176 | 129 | 0.71011 |
c98f1e242597cd0c1af6efc5bfb0d9feb7b82b26 | 3,123 | package org.xcsp.common;
import org.xcsp.common.Types.TypeMeasure;
/** The root class used for representing softening. */
public abstract class Softening {
/** A pair (operator,operand) for a cost-integrated soft constraint, or null for a cost function. */
public final Condition cost;
public boolean isCostFuncti... | 27.637168 | 124 | 0.714057 |
0795c0c7564b24df490d3698488be5c7dea6a563 | 121 | package com.king.platform.net.http.netty.sse;
public enum State {
CONNECTED,
DISCONNECTED,
RECONNECTING,
}
| 13.444444 | 45 | 0.702479 |
2df2537b783a67dfbb7b38f430a9a53c0905b578 | 587 | package uk.gov.hmcts.reform.mi.micore.exception;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;
class AccessExceptionTest {
@Test
void givenAccessException_thenRuntimeExceptionIsThrown() {
assertThrows(RuntimeException.class, () -> {
throw... | 23.48 | 62 | 0.630324 |
9d2c88494de817e9cd57e00199bc007c5962ccb3 | 5,197 | package me.coley.puredds.sub;
import me.coley.puredds.core.EntityBase;
import me.coley.puredds.core.event.DataAvailableEventImpl;
import me.coley.puredds.core.status.DataAvailableStatusImpl;
import me.coley.puredds.domain.DomainParticipantImpl;
import me.coley.puredds.util.struct.HashMultiMap;
import me.coley.puredds.... | 28.398907 | 117 | 0.74466 |
2a11929e942da5bd2cee0bcae4160c19dc3908c4 | 517 | package org.gooru.nucleus.converter.processors.command.executor.convert;
import org.gooru.nucleus.converter.processors.command.executor.Executor;
public final class ConvertExecutorFactory {
public static Executor ConvertHtmlToPdfExecutor() {
return ConvertHtmlToPdfExecutor.getInstance();
}
publi... | 25.85 | 72 | 0.752418 |
ed3d539969686b2d353186fda23df2e24990abe7 | 1,296 | package com.rscja.deviceapi;
/**
* @author Wudi
* @date 2021/10/27
*/
public class OTG extends Device {
private static OTG single = null;
private DeviceAPI deviceAPI;
private OTG() {
super();
deviceAPI = new DeviceAPI();
}
public static OTG getInstance() {
if (single... | 22.736842 | 75 | 0.462191 |
d0fa7e2801650efd9d47e100bc7d75ac236e6214 | 1,168 | /**
* xiaolong.mxl @copyRight 2016-2017
*/
package com.cqu.edu.ebmis.domain;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author mxl
* @version $ CategoryDO.java v1.0, 2017年5月5日 上午10:50:06 mxl Exp $
*/
public class CategoryLogDO {
private int logId;
private String user... | 20.137931 | 75 | 0.671233 |
b9c611388f80eea75b197bb94fa9c2c8f1db49f3 | 4,211 | package com.googlecode.assignmentdialog.ui.dialog;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.WindowEvent;
import javax.swing.AbstractAction;
import java... | 30.514493 | 114 | 0.747328 |
3bb8cc51c1f55d3ca70e0a5caff8502937c9ea12 | 2,105 | package budgetbuddy.logic.commands.accountcommands;
import static budgetbuddy.testutil.Assert.assertThrows;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import org.junit.jupiter.api.Test;
import budgetbuddy.logic.commands.CommandResult;
... | 36.293103 | 120 | 0.75677 |
c05b5fef68d406e87d64bab69482207e11ec3ebe | 272 | package com.github.funnyzak.onekey.biz.service.cms;
import org.nutz.plugin.spring.boot.service.BaseService;
import com.github.funnyzak.onekey.bean.cms.City;
import org.springframework.stereotype.Service;
@Service
public class CityService extends BaseService<City> {
}
| 22.666667 | 55 | 0.816176 |
d9f1a95bdbf370c668ff54d7555276ca0bee28d8 | 462 | package test.salemandata;
import java.math.BigDecimal;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import cn.qumiandan.salemandata.api.ISalemanDataService;
import test.BaseTest;
public class SalemanDataTest extends BaseTest{
@Autowired
private ISalemanDataService dataSe... | 21 | 62 | 0.805195 |
f4980a8b61ec0c4a2a9ed48805c113eff0e8ee90 | 2,173 | package com.dantelab.testvkapplication.friends;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.dantelab.testvkapplication.R;
import com.dantelab.testvkapplication.common.utils.Utils;
i... | 28.973333 | 135 | 0.704556 |
89ac6e4c7ee64ddf83a9214a57b3ec7374048a38 | 347 | /*
* Decompiled with CFR 0.150.
*/
package us.myles.viaversion.libs.fastutil.ints;
import us.myles.viaversion.libs.fastutil.ints.IntBidirectionalIterator;
import us.myles.viaversion.libs.fastutil.ints.IntIterable;
public interface IntBidirectionalIterable
extends IntIterable {
@Override
public IntBidirectio... | 23.133333 | 71 | 0.798271 |
7101606c8fd555bcaf96c731fd1fefaadb9b86c7 | 156 | package io.swagger.client.model;
/**
* DealModel SlidePicModel 基类 用于优惠列表
*
* @author 陶声
* @since 2018-01-31
*/
public class DealSlidePicBaseModel {
}
| 14.181818 | 36 | 0.705128 |
3106a034d266396b4955eefbe2220030d2d83fb3 | 141 | package app.eospocket.android.ui.main.action;
import app.eospocket.android.common.mvp.IView;
public interface ActionView extends IView {
}
| 20.142857 | 46 | 0.808511 |
3cd4ce32ca5a09093817b9160a47408749f64ee8 | 3,068 | package com.github.lunodesouza.service;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.apache.http.Ht... | 27.150442 | 134 | 0.706323 |
63441aaf7aeceb390cfd5af0f646b1dfe049c246 | 299 | package com.github.peacetrue.imports.supports;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author xiayx
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClassImportSetting extends ImportsSettingImpl {
private Class modelClass;
}
| 18.6875 | 60 | 0.80602 |
adc3e13701ad3e50ec84d66eaec914c30e869725 | 1,619 | /*
* Copyright 2016 Crown Copyright
*
* 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... | 31.134615 | 106 | 0.704138 |
b7919e8151e389a616b4880de732d51eb275c68d | 3,918 | package com.flys.fragments.behavior;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.flys.R;
import com.flys.architecture.core.AbstractFragment;
import com.flys.architecture.custom.CoreState;
import co... | 31.596774 | 86 | 0.667432 |
0858cfb3605a9eb33d7cdb36a18cd7a10f2bb788 | 10,253 | /*
Copyright 2009 by Sean Luke
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package sim.app.asteroids;
import sim.engine.*;
import sim.field.continuous.*;
import sim.util.*;
import ec.util.*;
import java.awt.geom.*;
import java.awt.*;
import sim.portrayal.*;... | 47.467593 | 155 | 0.577685 |
c5204842391e343f46d5884d85c46ab001b2dafb | 6,315 | /*
* Copyright 2013, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 37.814371 | 135 | 0.610451 |
6e95331ce5c3f29113849fa6b824c0544f08c979 | 895 | package hbase;
public class Centroid {
private String key;
private int sequence;
private String Centroid;
public Centroid(String key, int sequence, String centroid) {
super();
this.key = key;
this.sequence = sequence;
Centroid = centroid;
}
/**
* @return the key
*/
public String getKey() {
ret... | 14.435484 | 61 | 0.607821 |
8297c6b69a1e6236ba9ad535f795d5f270f637c3 | 9,868 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
module com.azure.core {
requires java.xml;
requires transitive com.fasterxml.jackson.core;
requires transitive com.fasterxml.jackson.annotation;
requires transitive com.fasterxml.jackson.databind;
requi... | 73.096296 | 117 | 0.658593 |
cc3ca92cdc2dd6d66c83183cc45158c7e6de5989 | 4,367 | package uk.ac.ebi.ep.literatureservice.dto;
import java.util.EnumSet;
import java.util.Set;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert... | 37.008475 | 126 | 0.717655 |
6aba7917c882652bd9d36f6010f4948e73856d37 | 3,966 | /*
* MIT License
*
* Copyright (c) 2021 Johann N. Löfflmann
*
* 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, co... | 33.897436 | 133 | 0.675744 |
b2f6c8b472a0d779dbe1e0b414c653bfb0b7893e | 4,331 | package simplelinkedlist;
import org.junit.Test;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
/**
* Class SimpleLinkedListTest.
* Tests SimpleLinked... | 28.682119 | 71 | 0.603556 |
d5769caf55b4f1b4471eb4bd843011f1032ebf03 | 4,595 | /*
* 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 ... | 39.273504 | 180 | 0.716431 |
88214bc05099846cde0c9dba504f9dd4bee6d2fc | 2,471 | /*
* Copyright © 2015 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 24.465347 | 98 | 0.713072 |
69d82cb2b61b3a913a77c0fb0f8902bb8a8f2107 | 7,527 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.content;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Co... | 48.876623 | 118 | 0.582569 |
bd3f852d3d62ae19c47ba165d744fad72500b431 | 1,611 | package com.ycsoft.report.test.other;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.ycsoft.commons.exception.ReportException;
import com.ycsoft.report.bean.RepColumn;
import com.ycsoft.report.commons.FileObjectInputStream;
import com.ycsoft.report.commons.FileObjectOutputS... | 22.690141 | 68 | 0.77095 |
8b62540b96ad6bb4ba5df612fe4bcda1cfb61391 | 4,130 | /*
* 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
* distribu... | 34.705882 | 80 | 0.658111 |
066a5019457c154889e1b067b0be5f39731fa9ee | 232 | package vn.com.cyberlogitec.jwat.mybatis.mapper;
import org.apache.ibatis.annotations.Mapper;
import vn.com.cyberlogitec.jwat.repository.ShipmentRepository;
@Mapper
public interface ShipmentMapper extends ShipmentRepository {
}
| 21.090909 | 62 | 0.836207 |
5ccef02f289d4df7e4f97027ef43aaf27c5f2a8f | 1,657 | package krpc.trace;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
public interface Span {
public Span newChild(String type, String action);
public Span newChild(String type, String action,long timeUsedMicros);
public long stop();
public long stop(boo... | 21.24359 | 81 | 0.711527 |
9df476501c91bcd97443e3682c5108bea626e114 | 12,137 | package net.ihiroky.niotty.buffer;
import net.ihiroky.niotty.util.Arguments;
import java.io.IOException;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.DatagramChannel;
import java.nio.channels.GatheringByteChannel;
import java.nio.charset.CharacterCodi... | 27.152125 | 117 | 0.596441 |
acabd4056ba923e87813af1ff5cdd0be57fd337d | 6,438 | /**
* 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... | 40.2375 | 92 | 0.604225 |
c50ac0296675a503fc5f2aa63034147edbe5a839 | 30,966 | /*
* 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 ... | 33.189711 | 134 | 0.593393 |
1d6f60b6aa6069945473c98898e759e4774e3479 | 1,781 | package com.maxqiu.mall.product.entity;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.anno... | 19.150538 | 61 | 0.660303 |
d2cc569d14d9820828f0eff80a729d6a144c2ab2 | 1,571 | /*
Copyright 2019 The Alcor 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... | 28.563636 | 117 | 0.699554 |
1c6f496bb45147ff703f6b0308ba70cb81e3cab0 | 4,321 | package com.shynieke.statues.tiles;
import com.shynieke.statues.blocks.AbstractStatueBase;
import net.minecraft.block.BlockState;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.ListNBT;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.SUpdateTileEntityPacket;
import... | 25.720238 | 119 | 0.755844 |
325cdf07a5b765e7280fe5d993094fefa800a1f6 | 3,662 | /*
* Copyright 2019 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... | 29.063492 | 109 | 0.712998 |
d6dca60b8d4f3899bedcd7abc1f4a155af651a90 | 275 | package com.vaadin.pontus.vizcomponent.client;
@SuppressWarnings("serial")
public class VizComponentState extends com.vaadin.shared.AbstractComponentState {
public ZoomSettings zoomsettings;
public Node graph;
// graph, digraph
public String graphType;
} | 21.153846 | 81 | 0.770909 |
21e6ba676442b0fb488c937c0e6bd335fd12bbd4 | 1,288 | public class Player {
String username;
int score;
boolean isDrawing;
boolean guessed;
/**
* default constructor
*/
public Player() {
isDrawing = false;
}
/**
* Makes a new Player given just a username
*
* @param username
*/
public Player(String username) {
this.username = ... | 17.888889 | 78 | 0.638199 |
cd9e65c3ad7a743d0340cfe290865804fe06533f | 30,690 | /*
* 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 program is distributed in the hope that it w... | 33 | 82 | 0.678755 |
dd66bfa059050ab78de0818c80218a9f8e62591a | 277 | package net.sf.esfinge.querybuilder.jpa1;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
public interface EntityManagerProvider {
public EntityManager getEntityManager();
public EntityManagerFactory getEntityManagerFactory();
}
| 21.307692 | 55 | 0.837545 |
fd944362603be0b70b8cf8b9c6de8bc8d6ccf433 | 19,659 | /*******************************************************************************
* Copyright © 2019 by California Community Colleges Chancellor's Office
*
* 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
* o... | 55.22191 | 187 | 0.763518 |
e32a96cb57beb453419d4e6d4423e8d492aae23a | 4,383 | package de.hpi.bpmn2xpdl;
import org.json.JSONException;
import org.json.JSONObject;
import org.xmappr.Element;
import org.xmappr.RootElement;
@RootElement("Task")
public class XPDLTask extends XMLConvertible {
@Element("TaskManual")
protected XPDLTaskManual taskManual;
@Element("TaskReceive")
protected XPDLTa... | 28.647059 | 86 | 0.754734 |
d633dbb56a6e567824dfd2f2a4a4c96e185cb646 | 96 | public abstract class Movement {
ATM atm;
Session session;
Card card;
int ID;
}
| 13.714286 | 32 | 0.625 |
4d2bf2e4e779652a3217f3a1e98b9efff67b8f06 | 5,372 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 33.575 | 89 | 0.741623 |
f6d897b39263b29bbf2ae1db615008555547a4e7 | 5,497 | package com.lyz.code.infinity.s2shc.verb;
import java.util.ArrayList;
import java.util.List;
import com.lyz.code.infinity.core.Writeable;
import com.lyz.code.infinity.domain.Domain;
import com.lyz.code.infinity.domain.Method;
import com.lyz.code.infinity.domain.Signature;
import com.lyz.code.infinity.domain.... | 38.440559 | 117 | 0.747862 |
c975d1b06269f5755a2393173e18dc7d77310df3 | 4,941 | package ru.ifmo.genetics.io;
import ru.ifmo.genetics.utils.FileUtils;
import ru.ifmo.genetics.dna.DnaQ;
import java.io.*;
public class RandomAccessMultiFile {
RandomAccessFile[] files;
long[] totalSize;
int ind = 0;
public RandomAccessMultiFile(String[] files, String mode) throws IOException {
... | 27.915254 | 104 | 0.558794 |
a9a328047561129f5906811cf303726f30d7c866 | 2,290 | /*
* Copyright (c) 2018 Andrey Fadeev
*
* 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 agr... | 24.891304 | 108 | 0.657205 |
9ddec5a5a233f97a8592c28bd17843a6783197c2 | 448 | package com.marcinwo.todolist.api.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class LoggedInUserDTO extends UserDTO {
private String avatarUrl;
private String email;
priv... | 20.363636 | 46 | 0.794643 |
0ff30994cc0ccf9d3c0c8414c0e2b461b5a092d0 | 1,967 | // --------------------------------------------------------------
/*
webdav_create.java
Sep/12/2013
*/
// --------------------------------------------------------------
import java.util.HashMap;
// --------------------------------------------------------------
public class webdav_create
{
// -------------------... | 27.704225 | 65 | 0.547534 |
0a2649a9c9aafaa91e7463f46a6c8f84996d20cc | 2,106 | /*
Copyright 2004 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 applicable la... | 39 | 77 | 0.679962 |
9b527093417800fcfbb263626ead23b2e2d82455 | 602 | package com.checkmarx.jenkins.web.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by zoharby on 09/01/2017.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Severity {
@JsonProperty("id")
Integer Id;
@Jso... | 18.8125 | 61 | 0.646179 |
633d2890732cdbadf515faab2471f5b768784fa5 | 46,166 | package net.imglib2.algorithms.crack;
import java.io.File;
import java.util.ArrayList;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import edu.jhu.ece.iacl.utility.ArrayUtil;
import ij.IJ;
import ij.ImagePlus;
import net.imglib2.*;
import net.imglib2.img.array.ArrayImgFactory;
import net.imgli... | 28.85375 | 124 | 0.664212 |
ba4467fa67e286a1239066f2bd8bb9709628ad87 | 736 | package designpatterns.observer;
import java.util.List;
import java.util.ArrayList;
public class Britney implements Subject {
private List<Observer> observerList = new ArrayList<>();
private String mentalState = "bad";
public void setMentalState(String mentalState) {
this.mentalState = mentalSt... | 21.028571 | 60 | 0.668478 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.