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 |
|---|---|---|---|---|---|
b59d4b2722ae1885817efa148c34ba6308a6f22f | 3,767 |
/*
* Copyright (C) 2009 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.dellroad.lzma.client;
/**
* Encodes and decodes strings to/from binary using "modified UTF-8 encoding".
* This is the same encoding as is used by Java class files.
*/
public final class UTF8 {
private UTF8() {
}
... | 33.633929 | 88 | 0.440138 |
1f8f4f05fd36018f1b800b4f0f552ba6bf147891 | 2,485 | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2008 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... | 30.304878 | 80 | 0.639839 |
c27b4638d4015efeb670fbd00a4ef1aac2ccc439 | 1,131 | package io.leitstand.inventory.model;
import io.leitstand.inventory.service.BaseElementEnvelope;
import io.leitstand.inventory.service.BaseElementEnvelope.BaseElementEnvelopeBuilder;
/**
* Utility class to simplify creation of element value objects.
*/
final class ElementValueObjects {
public static <T extends... | 41.888889 | 142 | 0.658709 |
ec67f68e200169de09ef291e991219c4370d0651 | 1,469 | package io.machinecode.chainlink.core.jsl.fluent;
import io.machinecode.chainlink.spi.jsl.inherit.InheritableListeners;
import java.util.ArrayList;
import java.util.List;
/**
* @author <a href="mailto:brent.n.douglas@gmail.com">Brent Douglas</a>
* @since 1.0
*/
public class FluentListeners extends FluentMergeabl... | 24.483333 | 140 | 0.688904 |
6b75dbdf3253ecba4f19b3acae367f5d08af8b1d | 1,762 | package com.ssm.common;
/**
* @description: 常量
* @version 1.0
* @author IMANON
* @createDate 2014-1-10;下午10:31:09
*/
public interface SecurityConstants {
/**
* 登录用户
*/
public final static String LOGIN_USER = "login_user";
/**
* 验证码
*/
public final static String CAPTCHA_KEY = "captcha_key";
/... | 28.885246 | 90 | 0.741771 |
1cab336b098ae40ee5323f1171a49a273e1e8a99 | 1,018 | package io.renren.modules.sys.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author wangYan
* @email wangYanJava@gmail.com
* @date 2018-07-11 10:40:49
*/
@TableName("sys_message... | 14.338028 | 54 | 0.637525 |
4b05f499423cee8a985f2735fd69d4935db4bcc5 | 2,812 | /**************************************************************************************
Copyright 2015 Applied Research Associates, 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.ap... | 32.321839 | 96 | 0.732219 |
5045e98b8b99a6d7aa9fa4a1ad1fddb2307f5b33 | 640 | package eigencraft.motionsickness.mixin;
import eigencraft.motionsickness.Settings;
import net.minecraft.block.Block;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.Cal... | 35.555556 | 86 | 0.78125 |
b71f14734109ab2217d628bdf63f7a23d33c8a0a | 809 | package lexan;
public final class Token {
// Character Class Constants
public static final int LETTER = 0;
public static final int DIGIT = 1;
public static final int END_INPUT = 98;
public static final int UNKNOWN = 99;
// Token Code Constants
public static final int INT_LIT = 10;
public static final ... | 28.892857 | 47 | 0.714462 |
800c161dafcb5b1fca23fef01fe087b404267953 | 8,840 | package tk.roaimsapp.centrefinder;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.util.Log;
import android.widget.TextView;
import android.graphics.Color;
impo... | 30.909091 | 118 | 0.624887 |
cd709b2e2f66c6705c66886185d0752897aff085 | 2,264 | package com.mauriciotogneri.mockserver;
import com.mauriciotogneri.javautils.Json;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import okhttp3.mockwebserver.MockResponse;
import okio.Buffer;
public class HttpResponse
{
private final HttpResponseCode code;
... | 21.980583 | 88 | 0.558746 |
221bf3fc37b2149802518855785b456737964cc5 | 9,250 | /*
* Copyright 2009 the original author or authors.
* Copyright 2009 SorcerSoft.org.
*
* 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-... | 33.636364 | 116 | 0.735676 |
09916d08ca55081d54ce467445077b173ce4dd2b | 4,278 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 31.455882 | 110 | 0.705002 |
55f4db757a1cbb927369bb871178921b7c07df70 | 1,868 | package priv.jesse.mall.web.user;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Controller;
import org.springframework.... | 32.77193 | 64 | 0.801927 |
23bfae7bfd8f8eeff7cb1de02b1cc72de32c8176 | 4,018 | package com.company;
import java.awt.*;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int opt = 0;
ArrayList<Shape> shapes = new ArrayList<>();
while (true) {
Syst... | 43.204301 | 187 | 0.486809 |
6baea5ee96cc46d4ade6934dd51b700c6d96e212 | 74 | /**
*
*/
/**
* @author MatthewsLaptop
*
*/
package model_dbo.Ticket; | 9.25 | 25 | 0.567568 |
d682ac4d0114b58d1663a21f94a5c700c1c1be6b | 193 | package com.github.jolice.shop.click;
import java.util.UUID;
public enum NoOpClickHandler implements ClickHandler {
INSTANCE;
@Override
public void onClick(UUID uuid) {
}
} | 14.846154 | 54 | 0.715026 |
b37c3faa6d7d31bb7849c5612f220c15fe16d434 | 1,303 | package org.jim.common;
/**
*
* @author wchao
*
*/
public interface ImConst
{
public static final String AUTH_KEY = "authKey";
public static final int SERVER_PORT = 8888;
public static final String CHARSET = "utf-8";
public static final String TO = "to";
public static final String CHANNEL = "channel... | 22.084746 | 100 | 0.717575 |
dfe893ccc85f7ff068cde24ee2b1fd50f9e9968f | 8,717 | /**
* JHOVE2 - Next-generation architecture for format-aware characterization
* <p>
* Copyright (c) 2009 by The Regents of the University of California, Ithaka
* Harbors, Inc., and The Board of Trustees of the Leland Stanford Junior
* University. All rights reserved.
* </p>
* <p>
* Redistribution and us... | 37.412017 | 106 | 0.666628 |
8ee364a2c3988664fbca79d0a3f1784e7dfbe123 | 9,400 | package org.zackratos.weather.hewind;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Administrator on 2017/6/26.
*/
public class Daily implements Parcelable {
/**
* astro : {"mr":"07:18","ms":"21:19","sr":"05:08","ss":"19:19"}
* cond : {"code_d":"104","code_n":"101","txt_d"... | 21.658986 | 93 | 0.498298 |
be9639586c3c6bfa03c925768aeeeb53c32fb747 | 9,069 | package perl.aaron.TruthTrees;
import java.awt.Color;
import java.awt.FontMetrics;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import ... | 31.380623 | 136 | 0.66391 |
011cc6fb1b9a5c100b746c7ec23c797ae6869445 | 3,473 | /*
* Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.rest.jwt;
import java.security.PrivateKey;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.text.ParseExceptio... | 31.008929 | 106 | 0.757558 |
24a6aec82a6a7bad0e040e8afd8c5fa84132ccc6 | 1,176 | package com.lanking.cloud.job.correctUserDayStat.service.impl;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lanking.cloud.job.correctUserDa... | 28.682927 | 93 | 0.780612 |
47e6f72b313f12e418903ecceba035fe90d40f30 | 9,147 | package ro.doruchidean.inputfields.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.Editable;
import android.text.InputFilter;
import android.text.InputType;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.text.method.PasswordTransformation... | 33.021661 | 106 | 0.646004 |
6a9d754840a33171937206c989ddf731ebfce717 | 60,840 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses... | 14.681467 | 811 | 0.801644 |
76da789ca068cc716fae5deeb3c5cb8da7435e74 | 451 | package eu.monnetproject.stemmer.snowball;
import aQute.bnd.annotation.component.*;
import eu.monnetproject.lang.Language;
import eu.monnetproject.morph.*;
import org.tartarus.snowball.ext.*;
@Component(provide=Stemmer.class,properties="language=es")
public class SpanishSnowballStemmer extends SnowballStemmerWrap {
... | 28.1875 | 65 | 0.798226 |
31311fb7967b723f0672ca6c50862170ece2c662 | 2,759 | /*
* Copyright 2012-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... | 39.414286 | 113 | 0.804639 |
3dc4b82dd7a70e1def592024aed7d8b171960eb3 | 911 | package yalantis.com.sidemenu.foodies.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by Android on 28-04-2015.
*/
public class HotelMenuItem {
@SerializedName("HotelId")
public int HotelId;
@SerializedName("IsActive")
public boolean IsActive;
... | 25.305556 | 57 | 0.725576 |
a360bdb1593b7c6c4dcb1bf1692af65bb6c92c2b | 261 | // "Swap 'filter()' and 'map()'" "false"
import java.util.List;
import java.util.stream.Stream;
class X {
void test(List<Integer> list) {
Stream<Integer> stream = list.stream().filter(i -> i.intValue() > 0).<Integer>map<caret>(i -> i.intValue());
}
}
| 23.727273 | 112 | 0.632184 |
d1df7daf6f711d54ea9f14032d22a0089a1dc463 | 881 | // 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 cn.com.smartdevices.bracelet.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeS... | 26.69697 | 100 | 0.710556 |
b6d6b8bf5a92c8c13010b657e0d8baa9c821bdda | 370 | package com.dvinfosys.widgets.MaterialSearchbar;
public abstract class OnSearchActionListener implements MSearchBar.OnSearchActionListener {
@Override
public void onSearchStateChanged(boolean enabled) {
}
@Override
public void onSearchConfirmed(CharSequence text) {
}
@Override
publ... | 19.473684 | 91 | 0.743243 |
fe968d703e58d674026ca14ad14fcef95d164c2d | 657 | package me.tatarka.redux.rx;
import me.tatarka.redux.Dispatcher;
import rx.Observable;
import rx.Subscription;
import rx.functions.Action1;
public class ObservableDispatcher<A> extends Dispatcher<Observable<A>, Subscription> {
private final Action1<A> dispatchAction;
public ObservableDispatcher(final Dispat... | 25.269231 | 86 | 0.665145 |
d2296ae956d51f4bec04ed454ee6444c4d81e02c | 599 | package com.louis.kitty.admin.sevice;
import java.util.List;
import java.util.Set;
import com.louis.kitty.admin.model.SysUser;
import com.louis.kitty.admin.model.SysUserRole;
import com.louis.kitty.core.service.CurdService;
/**
* 用户管理
* @author Louis
* @date Oct 29, 2018
*/
public interface SysUserService extend... | 17.617647 | 62 | 0.721202 |
5e138cb03eace0b69defbfb9acd0f059d2b34fe8 | 1,705 | /*
*
* Copyright 2020 EMBL - European Bioinformatics Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 24.357143 | 75 | 0.627566 |
ac7a297bbc2dfe33c989d646211d0db0117e2986 | 239 | package com.zzntd.fluidic;
public abstract class LoadsAssets {
public abstract void onLoaded();
protected abstract void declareAssets();
public final void loadAssets() {
declareAssets();
Services.getAssetLoader().add(this);
}
}
| 19.916667 | 41 | 0.748954 |
acd73a1170713c264fa8108953e626bc3e1684ba | 908 | package de.terrestris.shoguncore.service;
import de.terrestris.shoguncore.dao.ApplicationDao;
import de.terrestris.shoguncore.model.Application;
public class ApplicationServiceTest extends
PermissionAwareCrudServiceTest<Application, ApplicationDao<Application>, ApplicationService<Application, ApplicationDao<Appli... | 30.266667 | 140 | 0.743392 |
99daf7c575e7696ed7e325e2447916522e983cdd | 800 | package app.odp.qidu.mvp.model;
import app.odp.qidu.mvp.contract.LoginContract;
import com.app.base.bean.User;
import com.rx2androidnetworking.Rx2AndroidNetworking;
import java.util.HashMap;
import java.util.List;
import io.reactivex.Observable;
public class LoginModelImpl implements LoginContract.Model {
@O... | 27.586207 | 105 | 0.6975 |
4fc30def2f9f830dcc0e3a49f8ff7dff5fad5c34 | 220 | public static int down(int u) {
int sum = 0;
for (int x : adjList[u]) {
if (x != p[u]) {
p[x] = u;
sum += Math.max(down(x), 0);
}
}
return down[u] = sum + clr[u];
} | 22 | 40 | 0.395455 |
aa7ff55b491ecae4283b0d69da96f7ec235268f9 | 1,550 | /*
* Copyright 2013 serso aka se.solovyev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 25.833333 | 83 | 0.750323 |
d851a8e30eb8696af406f28e0ea7e62ff9adfde1 | 3,330 | /* Copyright 2017 Zutubi Pty Ltd
*
* 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... | 27.75 | 97 | 0.65015 |
7e9c8b66307aace7e2f5096d233168c4f4ebf8f3 | 1,678 | /*
* Copyright (C) 2011 bedatadriven
*
* 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.901961 | 99 | 0.702026 |
866197425acab5eb0f2759b02976154b77af4451 | 30,830 |
/*
***************************************************************************
* Mica - the Java(tm) Graphics Toolkit *
***************************************************************************
* NOTICE: Permission to use, copy, and modify this software and its *
* docum... | 22.938988 | 100 | 0.594908 |
a934a6071bad5f3b92a93e34c1c2c3fb1df9c3bb | 327 | package com.isharipov.counterpartyfinder.data.network.model;
public enum Branch {
MAIN("головная организация"),
BRANCH("филиал");
private String description;
Branch(String description) {
this.description = description;
}
public String getDescription() {
return description;
... | 18.166667 | 60 | 0.672783 |
a5ebd92b99de57d1ee7595f47cb7d851ca2f914a | 8,806 | /*
* (c) 2015 CenturyLink. 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 or a... | 36.845188 | 122 | 0.681581 |
0f463e8e04ac9f28132ffdbb40c4da380437514f | 1,972 | package com.kenshine.handler;
import com.kenshine.response.CommonResult;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bi... | 41.083333 | 113 | 0.771805 |
428f979956f71fbdc3677f5ecc18df2e7bf9b692 | 3,379 | package com.hardthing.easysqoop;
import java.util.Arrays;
import com.hardthing.easysqoop.manager.ConnUrl;
/**
* @author taox
*/
public class Configration {
public static final String SUBSTITUTE_TOKEN = "$CONDITIONS";
private String driverClass;
private ConnUrl connUrl;
private String hive... | 24.135714 | 68 | 0.665582 |
fa37620679f936660acc3667746f1fc9e820531a | 943 | // https://leetcode.com/problems/reverse-string-ii/
//
// algorithms
// Easy (46.55%)
// Total Accepted: 70,897
// Total Submissions: 152,493
// beats 100.0% of java submissions
class Solution {
public String reverseStr(String s, int k) {
char[] chs = s.toCharArray();
int len = chs.length;
... | 21.930233 | 58 | 0.458112 |
0603184840db21c8e6bd11c93beeabb001c1f9b8 | 629 | package org.bsim.ode;
/**
* Interface used for defining a system of ODEs.
* Defines the ODEs, the number of equations and the initial conditions.
*/
public interface BSimOdeSystem {
/**
* Define a system of derivatives - </br>
* dy[0] = ..., dy[1] = ..., etc</br>
* then return dy[]
*/
publ... | 22.464286 | 73 | 0.596184 |
28a4790e9e840b90e1484f5ede6e43cc3667f8cc | 3,440 | package com.example.osvaldoairon.app4so.Sqlite;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import android.widget.Toast;
import com.example.osvaldoairon.app4so.Modelo.Coordenadas;
import c... | 29.152542 | 132 | 0.667151 |
d2bd86ed0461e81ef79ef5d9cbba9c4531874244 | 4,149 | /* Copyright 2015-2020 Norconex 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 o... | 37.718182 | 81 | 0.665462 |
0cba5deef60026530e4ce85206ab271ea247ca5a | 2,054 | package cn.lxw.us.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by Lianxw on 2015/7/31.
* Preference工具类
*/
public class PreferenceUtils {
private static final String PREFERENCE_NAME = "default_preference.xml";
public static SharedPreferences getPreference(... | 35.413793 | 106 | 0.685492 |
ed83265041aba773a5692dd90cefe4eca1353c8a | 653 | package me.wavelength.baseclient.event.events;
import me.wavelength.baseclient.event.CancellableEvent;
import net.minecraft.entity.Entity;
public class RenderLivingLabelEvent extends CancellableEvent {
private Entity entity;
private String label;
/**
* This event is fired by the Render class: {@link net.minecr... | 21.064516 | 114 | 0.751914 |
539248d5a1301678a1143e8a584e48957a55276c | 523 | package com.bytestree.restful.service;
import com.bytestree.restful.dto.*;
import java.util.List;
public interface EmployeeService {
AddEmployeeRs save(AddEmployeeRq employee);
List<GetEmployeeRs> getAll();
List<EmployeeByCloseProjectionRs> getAllByCloseProjection();
List<EmployeeByOpenProjectionR... | 23.772727 | 65 | 0.787763 |
6723b64ff80e90ab6b83dbc9ba289f711a42f3ed | 8,480 | package com.example.tirocinio;
import android.Manifest;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.... | 35.932203 | 130 | 0.628656 |
eeb898d4107eb031606f3ab3d14e6bfc509bf527 | 158,745 | /*
* Copyright 2015-2020 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 "licen... | 52.634284 | 159 | 0.703468 |
70de28415ea3d46bd06e2b40efe5afa983e90773 | 835 | package com.codepath.apps.restclienttemplate.models;
import org.json.JSONException;
import org.json.JSONObject;
import org.parceler.Parcel;
@Parcel
public class Tweet {
//List out the attributes
public String body;
public long uid; //tweet database ID
public User user;
public String createdAt;
... | 23.857143 | 78 | 0.665868 |
ed6190311119c2297a3a8564829c1e6508e3b096 | 120 | package com.quantityandconversion.ood;
public interface SetText {
void setText(final CharSequence charSequence);
}
| 20 | 50 | 0.8 |
14839aa719b129fb6f58b740b303ca3fc20236b5 | 867 | package Hausaufgabe01;
/**
*
* Es gab keine konkreten Vorgaben in der Aufgabenstellung, deswegen werden in
* dieser Klasse nur das Datum und der Tagespreis in public-Attributen
* gespeichert.
*
* @version 1.0, Oktober 2016
* @author Alexander E.
*
*/
public class GoldTagespreis {
/**
* Datum des Tagesp... | 16.673077 | 78 | 0.662053 |
9083055e8f9589ac2b2dd66cb8025874d6a8eb6a | 253 | package io.core9.module.auth;
public interface Session {
String getId();
Object getAttribute(Object key);
Session setAttribute(Object key, Object value);
Object removeAttribute(Object key);
void setTimeout(long maxIdleTimeInMillis);
}
| 14.882353 | 48 | 0.750988 |
e1635847c577bcd82fc178965acebb8970e8830f | 567 | package com.ycs.community.sysbo.domain.dto;
import com.ycs.community.basebo.domain.dto.BaseRequestDto;
import lombok.Data;
import org.springframework.util.StringUtils;
@Data
public class QryDictDetailPageRequestDto extends BaseRequestDto {
private Long dictId;
private String label;
private Integer current... | 22.68 | 65 | 0.684303 |
42f4644d9c36f8c4c5735ec3b1db6e05a7b1760d | 653 | package com.cmclinnovations.ontokin.model.parse.status.ctml.phase;
/**
* This class contains the getters and setters to the flags that maintain
* whether or not the transport tag and its attribute have already been parsed.
*
* @author msff2
*
*/
public class TransportParseStatus {
boolean transport = false;
b... | 25.115385 | 79 | 0.759571 |
c651ab8a7869407a160448daebb5a421a8f4a481 | 612 | package starter.search;
import net.thucydides.core.annotations.Step;
import starter.navigation.DepoHomePage;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
public class DepoHomeStep {
DepoHomePage depohomePage;
@Step
public void openDepoWebsite() {
depohomePage... | 20.4 | 56 | 0.769608 |
f1068dd9d59e90636aeb32fa4bf5c2cac39f157d | 398 | package net.minidev.ovh.api.dedicatedcloud;
/**
* All states a Dedicated Cloud Backup can be in
*/
public enum OvhBackupStateEnum {
disabled("disabled"),
disabling("disabling"),
enabled("enabled"),
enabling("enabling"),
error("error"),
removing("removing");
final String value;
OvhBackupStateEnum(String s) ... | 16.583333 | 48 | 0.698492 |
1bcb1512401c983a1b1a3132db88cadd1c9871f9 | 9,935 | /**
* Copyright 2015 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 39.74 | 125 | 0.700352 |
812fb8a22733c3bd94130e90fe8d559ae214fe3c | 3,186 | package com.github.neiplz.entity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraint... | 19.9125 | 78 | 0.710609 |
d2d8857b164684e2dc1cf49eb5e358f88567e1f9 | 3,585 |
package Donante;
import java.io.*;
/**
*
* @author Axel Garcia
*/
public class AccAleatorio{
private static RandomAccessFile flujo;
private static int NumeroD;
private static final int Tam=128;
public static void CrearFileDonante(File archivo) throws IOException{
if(archivo.exists()&& !archi... | 28.68 | 151 | 0.542538 |
2b262fd165ddd3b060e3a80459977d992adf14a2 | 1,255 | package com.tycrowe.games.citybus;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.tycrowe.games.citybus.screens.HighwayLevel;
public class CityBusGame extends Game {
public enum LOG_TAGS {
NORMAL,
LOADIN... | 24.134615 | 81 | 0.705976 |
f6561b26c1917295f175b46c05791622f8f15f0b | 6,940 | /*
* Copyright (c) 2010-2014. Axon Framework
*
* 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 ... | 53.79845 | 104 | 0.803458 |
f4003e4c72a6e8723c1d3c0850656e88b0640e7f | 5,042 | /*******************************************************************************
* Copyright (c) 2019 Georgia Tech Research Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | 25.464646 | 121 | 0.714399 |
2f64c1506777eb296e98c7469657fb6ecb745eae | 1,033 | package io.github.dunwu.autoconfigure.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author <a href="mailto:forbreak@163.com">Zhang Peng</a>
* @since 2020-03-16
*/
@Data
@ToStr... | 23.477273 | 82 | 0.682478 |
903c4dd0aa9dccf014c643057c8fbdee31623819 | 11,797 | package com.jukusoft.erp.lib.database;
import com.jukusoft.erp.lib.utils.FileUtils;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.jdbc.JDBCClient;
im... | 30.017812 | 148 | 0.583114 |
b0c320e50537635f11e60508f53097f9ebc8a163 | 1,402 | package org.openstreetmap.atlas.geography.converters;
import org.openstreetmap.atlas.exception.CoreException;
import org.openstreetmap.atlas.geography.Location;
import org.openstreetmap.atlas.geography.converters.jts.JtsPointConverter;
import org.openstreetmap.atlas.utilities.conversion.TwoWayConverter;
import com.vi... | 31.155556 | 78 | 0.71184 |
16ad0061f5c20cfe098147018a5873d62b529739 | 510 | import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;
public class DaysOnEarth {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
LocalDat... | 26.842105 | 81 | 0.717647 |
c4b975a832e5d318197f62dd2da6c81c969ff0f5 | 1,158 | package test.springboot.base.controller;
import test.springboot.base.service.DemoTransactionService;
import test.springboot.base.service.DemoTransactionServiceBatch;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bi... | 31.297297 | 68 | 0.773748 |
28db4fabf93e5248576c9325420da5614844032c | 390 | package ch.johannes.examples.mapper.product;
import java.util.function.Function;
public class ProductMapper implements Function<Product, ProductTO> {
public ProductTO apply(Product product) {
ProductTO productTO = new ProductTO();
productTO.setId(product.getProductIdentifier());
productTO... | 27.857143 | 68 | 0.725641 |
1e9ef6bf741bae3a329ccdb0835924ea1a7ec4eb | 188 | package wec.persistence;
import org.springframework.data.repository.CrudRepository;
import wec.data.WECCoref;
public interface CorefRepository extends CrudRepository<WECCoref, Long> {
}
| 23.5 | 73 | 0.835106 |
c2cb8131e08a717d9aa54edf5f56219e2313fdbb | 10,389 | /*
* Copyright 2015-2016 USEF 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 law or agree... | 37.778182 | 132 | 0.716527 |
c39f2dfdc94b8a3d469221d21fc3fd5deff1bd5d | 2,034 | package com.adaptris.monitor.agent.multicast;
import java.io.ByteArrayOutputStream;
import java.io.ObjectOutputStream;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
import com.adaptris.monitor.agent.AbstractEventPropagator;
import com.adaptris.monitor.agent.EventMonitor... | 28.647887 | 140 | 0.722714 |
ede8e1715c9f5020992afe9b49486e5effd6047e | 16,867 | package iudx.data.ingestion.server.databroker;
import com.google.common.cache.Cache;
import io.vertx.core.Future;
import io.vertx.core.Promise;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.client.HttpResponse;
import io.vertx.rab... | 41.44226 | 104 | 0.642082 |
1044132e29beff4c981c75b4f2631896a1bf3c7d | 1,422 | /*
* (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 32.318182 | 100 | 0.729958 |
31ee43c7f07fb7720526423d24fd547241cd75af | 285 | package com.cognizant.cognizantits.qcconnection.qcupdation;
public enum tagMAIL_CONDITIONS_TYPE
{
USER_MAIL_CONDITION, FIELD_MAIL_CONDITION;
}
/* Location: D:\Prabu\jars\QC.jar
* Qualified Name: qcupdation.tagMAIL_CONDITIONS_TYPE
* JD-Core Version: 0.7.0.1
*/ | 23.75 | 59 | 0.740351 |
855cd9115f939f1af608e368f2c1b7167ccfaf22 | 4,494 | package it.polimi.ingsw.client.gui.alerts;
import it.polimi.ingsw.client.gui.ClientGUI;
import javafx.application.Platform;
import javafx.geometry.*;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.GridPane;
import javafx.stage.*;
import static it... | 24.966667 | 101 | 0.599243 |
9678f614e678675c48d731527d0203da1f36f911 | 1,424 | //给定一个非负整数数组,你最初位于数组的第一个位置。
//
// 数组中的每个元素代表你在该位置可以跳跃的最大长度。
//
// 判断你是否能够到达最后一个位置。
//
// 示例 1:
//
// 输入: [2,3,1,1,4]
//输出: true
//解释: 我们可以先跳 1 步,从位置 0 到达 位置 1, 然后再从位置 1 跳 3 步到达最后一个位置。
//
//
// 示例 2:
//
// 输入: [3,2,1,0,4]
//输出: false
//解释: 无论怎样,你总会到达索引为 3 的位置。但该位置的最大跳跃长度是 0 , 所以你永远不可能到达最后一个位置。
//
// Related Topic... | 23.344262 | 73 | 0.535815 |
089c3154e5a6b7713fb1fcb2d796fbcce2e4d836 | 6,939 | package com.algorand.starter.demo.controller;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.s... | 41.801205 | 174 | 0.745496 |
836dedcac68df72b1bff78cca34bc68661bf12d8 | 1,257 | package com.brackeen.scared;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class MessageQueue {
private static class Message {
final String text;
int ticksRemaining;
public Message(String text) {
this.text = text;
ticksRemain... | 20.606557 | 50 | 0.524264 |
55f66a0d2bd55641cd933f072531c901167961ff | 484 | //O programa deve apresentar a saída dos dados sobre os produtos
package estrutura_sequencial;
public class aula1_exercicio {
public static void main(String[] args) {
String product1 = "Computer";
String product2 = "Office desk";
double price1 = 2100.0;
double price2 = 650.50;
System.out.println... | 22 | 70 | 0.673554 |
afd148f3bd095d1efc573d4704376bab38fe26b1 | 164 | package org.spincast.plugins.dateformatter;
/**
* Which part(s) of ther date to format and
* output?
*/
public enum DateParts {
BOTH,
DATE,
TIME
}
| 13.666667 | 44 | 0.646341 |
b32382d74317983e0b5759efd40ca574ebfe6305 | 2,565 | package com.gerken.xaa.model.xform;
// Begin imports
import java.util.ArrayList;
import org.w3c.dom.Node;
// End imports
public class NewToken extends ModelElement {
private String name;
private String formula;
private String group;
private String replaces;
private boolean derived;
// Begin custom... | 19.730769 | 88 | 0.669786 |
dadc19f6d9cba76c1c382ab5589406b2e569ea26 | 5,509 | package moe.cnkirito.kiritodb.index;
import moe.cnkirito.directio.DirectIOLib;
import moe.cnkirito.kiritodb.common.Constant;
import moe.cnkirito.kiritodb.common.Util;
import moe.cnkirito.kiritodb.data.CommitLog;
import moe.cnkirito.kiritodb.data.CommitLogAware;
import net.smacke.jaydio.DirectRandomAccessFile;
import o... | 34.647799 | 154 | 0.621165 |
835b16e613b7c11f2cce830d6e27f67faf775ffd | 2,244 | package com.github.whileloop.rest4j;
/**
* http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
*/
public enum HttpStatus {
// 1xx: Informational - Request received, continuing process
CONTINUE(100),
SWITCHING_PROTOCOLS(101),
PROCESSING(102),
// 2xx: Success - The action was... | 26.093023 | 87 | 0.692513 |
efaac775c9cddf7aad43ea4b622f8b2490263eff | 894 | /*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package org.jetbrains.jps.incremental;
import com.intellij.openapi.util.UserDataHolderBase;
import java.io.File;
import java.io.IOException;
/**
* THIS CLASS WAS GENERATED AUTOMATICALLY WITH StubGen BASED ON IDEA BINARIES
* DON'T MODIFY IT MANUALL... | 22.35 | 77 | 0.678971 |
58450e22b936b8ca4d1843e3afa7f3bacc52696c | 7,177 | package lk.ijse.dep.pharmacy.business.custom.impl;
import lk.ijse.dep.pharmacy.business.custom.OrderBO;
import lk.ijse.dep.pharmacy.dao.DAOFactory;
import lk.ijse.dep.pharmacy.dao.DAOTypes;
import lk.ijse.dep.pharmacy.dao.custom.*;
import lk.ijse.dep.pharmacy.db.DBConnection;
import lk.ijse.dep.pharmacy.dto.*;
import ... | 39.651934 | 170 | 0.598439 |
a99e5cc76b8c27fa5b389dd638c5eeb26962815e | 1,395 | package com.sunzn.picker.library.adapter;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import java.util.LinkedList;
import java.util.List;
/**
* 抽象滚轮适配器
*/
abstract class AbstractWheelAdapter implements WheelViewAdapter {
private List<DataSetObserver> mData... | 23.25 | 69 | 0.62509 |
0fba50aa935bd406448713904e23b2dcb5bf9fbc | 105 | package com.ms.silverking.cloud.health;
public interface MonitorListener<T> {
void sendEvent();
}
| 13.125 | 39 | 0.733333 |
4eb4a55ef746fbe6301ea566451a1325d3056387 | 1,502 | package fallenavatar.rp2_redux.lib.block;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.item.BlockItemUseContext;
import net.minecraft.state.StateContainer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Direction;
import net.minecraft.util.Mirror;... | 33.377778 | 182 | 0.786285 |
e18ea1d1841048147379da0f9b66a97a97f703c8 | 25,051 | /******************************************************************************
* Copyright (c) 2015 IBM 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 available at
... | 27.989944 | 153 | 0.679733 |
7089670e5aa1285b927e9e1f79a38506eb5ecb95 | 458 | package com.nuggetsworld.novel.craw;
public class CrawValue {
private String t;
private String n;
private int i;
public String getT() {
return t;
}
public void setT(String t) {
this.t = t;
}
public String getN() {
return n;
}
public void setN(String n... | 14.3125 | 36 | 0.510917 |
6157d3a0e3c83d63f08112939085fa207061d7a8 | 457 | package com.dong.design.factory.factory;
/**
* 通用工厂类
*
* @author dong
*
*/
public class CommonCarFactory implements CarFactory2 {
@Override
public <T extends Car> T creatCar(Class<T> clazz) {
Car car = null;
try {
car = (Car) Class.forName(clazz.getName()).newInstance();
} catch (Insta... | 19.041667 | 61 | 0.643326 |
f6ee7741c7476ed60095a68f6b15b1d9dea2bb67 | 1,205 | package be.pxl.spring;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.Conf... | 30.125 | 71 | 0.792531 |
76fa31f9c3956613d62ed81e6010b1314743f156 | 2,124 | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.4 | 100 | 0.724576 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.