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 |
|---|---|---|---|---|---|
f5fe0d78181bb5b02fe20dd8bf2ed9d7fcce64f1 | 2,190 | package com.example.algo1.sort.mergenquick;
import java.util.Comparator;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.example.algo1.sort.Ticket;
public class MergeSortObjectStabilityTest {
MergeSortObject<Ticket> mergeSorttickets;
MergeSortObject<String> mergeString;
... | 38.421053 | 89 | 0.690411 |
371ac338cdb545a94f3100a9619eed541b573872 | 4,814 | package ameba.db.dsl;
import ameba.db.dsl.QueryExprMeta.Val;
import com.google.common.collect.Lists;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ParseTreeProperty;
import java.util.Collections;
import java.util.List;
/**
* <p>QueryExprListener class.</p>
*
* @author icode
*
*... | 34.141844 | 105 | 0.552763 |
a813567efb5b13b0700eff1d6c56f60b6fd4c763 | 1,395 | package com.oneandone.iocunitejb.ejbs;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import javax.annotation.Resource;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.MessageDrivenContext;
import javax.enterprise.context.ApplicationScoped;
impor... | 28.469388 | 109 | 0.729032 |
ff2ff294128430de5e50433294cd4c18f724694a | 388 | public class TimeTester
{
public static void main(String[] args)
{
Time currentTime = new Time(9,45);
Time secondTime = new Time(14, 30);
System.out.println(currentTime.getMilitaryTime());
System.out.println(secondTime.getMilitaryTime());
System.out.println(currentTime.ge... | 29.846154 | 58 | 0.646907 |
fde37e051e060d5fc1fd9d4aeffc6332a42f922f | 2,270 | package farsight.testing.utils.jexl;
import java.util.ArrayList;
import org.apache.commons.jexl3.JexlExpression;
import com.wm.data.IData;
import com.wm.data.IDataFactory;
import farsight.testing.utils.jexl.context.ResourceContext;
import farsight.testing.utils.jexl.context.WmIDataContext;
import farsight.testing.u... | 31.09589 | 121 | 0.740969 |
e0a0e74343d23f98702b9a45a772df5f5356fcaa | 757 | package com.ccy.blog.category;
import java.util.HashSet;
import java.util.Set;
import com.ccy.blog.blog.Blog;
public class Category {
private int id;
private String name;
private String description;
private Set<Blog> blogs = new HashSet<Blog>();
public int getId() {
return id;
}
public v... | 17.604651 | 50 | 0.655218 |
9613189a1baa77720667eba3ac9d43ad8dbe02fe | 2,771 | package com.wolf.gamefix.ui;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.util.Log;
import com.wolf.gamefix.R;
import com.wolf.gam... | 30.788889 | 110 | 0.642367 |
8acc016fc0287db242aaaa79ecc91b46230cf23d | 249 | package io.github.likcoras.asuka.handler.response;
import io.github.likcoras.asuka.AsukaBot;
import io.github.likcoras.asuka.exception.ResponseException;
public interface BotResponse {
public void send(AsukaBot bot) throws ResponseException;
}
| 22.636364 | 60 | 0.823293 |
116df12af4bfd311105fb3901fdac3b49107ab71 | 407 | package com.stephenslatky.logic;
import com.stephenslatky.gui.Board_View;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
Board_View board_view = new Board_View();
Board board = new Board(11,13);
Basic_Rules basic_Rules = new B... | 22.611111 | 63 | 0.683047 |
4c76a6d733375908db7c87c9209370ea2e320fa0 | 47,953 | /*
* Copyright 2011 DTO Solutions, Inc. (http://dtosolutions.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 r... | 46.966699 | 130 | 0.613059 |
e41e41c9b8956148542a6bb2f33c62b40045554b | 1,134 | package gcode.fixer.file;
import java.util.ArrayList;
import java.util.List;
public class TracesFile extends AbstractFile {
public TracesFile(String fileNameAndPath) {
super(fileNameAndPath);
}
@Override
protected List<String> filter(List<String> gcodeToFilter) {
// Copy everything from the ... | 23.142857 | 96 | 0.645503 |
2658c2c31a5fe4ec03c13b07af0495f243b0f544 | 611 | package mkii.mkblock.common;
import org.apache.commons.codec.binary.Base64;
/**
* convert Stirng to base64
*/
public class Base64Util {
/**
* encode String
* @param str
* @return
*/
public static String getEncodeString(String str) {
byte[] bytesEncoded = Base64.encodeBase64(str.... | 20.366667 | 66 | 0.613748 |
143161a5e7aa8f733e1e6452fd5ae9de133e7fa9 | 2,278 | /*
Copyright (c) 2022 Daniel McCoy Stephenson
Apache License 2.0
*/
package dansapps.interakt.factories;
import dansapps.interakt.data.PersistentData;
import dansapps.interakt.objects.Actor;
import java.util.Map;
import java.util.Random;
/**
* @author Daniel McCoy Stephenson
* @since January 15th, 2022
*/
pu... | 27.119048 | 81 | 0.638718 |
daf21ec2bc001d6f5b19a9671df17b3bb3b13f19 | 1,538 | /*
* Copyright (c) 2019 Gili Tzabari
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package org.bitbucket.cowwoc.requirements.java.internal;
import org.bitbucket.cowwoc.requirements.java.PrimitiveBooleanValidator;
import org.bitbucket.cowwoc.requirements.java.... | 24.412698 | 98 | 0.750975 |
4ce1d9fb93e3d14ed64aa49b26cff5d6894f912b | 3,058 | package org.mx.comps.notify.online;
import com.alibaba.fastjson.JSONObject;
/**
* 在线设备对象定义
*
* @author : john.peng created on date : 2018/1/3
*/
public class OnlineDevice {
private String deviceId, state, connectKey;
private long registryTime, lastTime;
private double lastLongitude, lastLatitude;
... | 17.474286 | 96 | 0.533355 |
a7a695042578041f7c8ee74e321b8c7bf33cbac3 | 3,893 | /*
* 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 server.buffs.buffclasses.nova;
import client.MapleBuffStat;
import client.MapleJob;
import client.MonsterStatus;
import serve... | 37.432692 | 104 | 0.562291 |
ff23ba6a71d0b2adb38875aea0edbbb4163d8ff9 | 996 | // Copyright 2000-2019 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.openapi.editor;
import com.intellij.core.CoreBundle;
import com.intellij.openapi.util.text.StringUtil;
import org.jetbrains.annotations.NotNull;
import org.j... | 33.2 | 140 | 0.779116 |
b9b626c1e7feaca3aadda413041a6f8d567cbedf | 19,217 | /*
* Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.engine.table;
import io.deephaven.base.log.LogOutput;
import io.deephaven.base.log.LogOutputAppendable;
import io.deephaven.io.log.impl.LogOutputStringImpl;
import io.deephaven.vector.*;
import io.deephaven.time.DateTime;
im... | 36.60381 | 120 | 0.622105 |
e64f9c8c0d074d01c90966a6e0e1120cc9703a05 | 1,732 | package edu.theinterests.cellsim;
import java.util.ArrayList;
import java.util.List;
public class Cell {
private float gene;
private int energy;
private Coords coords;
private List<Cell> neighbors = new ArrayList<Cell>();
public Cell(float gene, int energy, Coords coords) {
this.gene = ge... | 27.0625 | 80 | 0.584296 |
3538fdb56dfe4000334d362e23472c45ff86b1ca | 507 | package erogenousbeef.bigreactors.common.multiblock.block;
import net.minecraft.util.IStringSerializable;
public enum FuelRodState implements IStringSerializable {
Disassembled,
AssembledUD,
AssembledEW,
AssembledSN;
FuelRodState() {
this._name = this.name().toLowerCase();
}
@O... | 16.354839 | 58 | 0.664694 |
23cfd98c618900bceb8fc3b58c87ee9158a1b909 | 3,311 | package org.lockss.plugin.hindawi;
import org.lockss.config.Configuration;
import org.lockss.daemon.ConfigParamDescr;
import org.lockss.plugin.ArchivalUnit;
import org.lockss.plugin.ajax.AjaxRequestResponse;
import org.lockss.plugin.definable.DefinableArchivalUnit;
import org.lockss.plugin.definable.DefinablePlugin;
i... | 39.416667 | 95 | 0.766234 |
b9f7e27ab3ee6e52a64ebf3fdcde54120c1ed9a5 | 5,875 | /*
* Copyright (C) 2012 onwards University of Deusto
* All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution.
*
* This software consists of contributions made by many individuals,
* listed below:
*
* Author: Pablo Orduña <pabl... | 30.921053 | 102 | 0.71166 |
b29bca0e2a0de0e4d496148439878b6ab1e1bb58 | 1,224 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dimitStore.proto
package dimit.store;
public interface ChannelRecvStatOrBuilder extends
// @@protoc_insertion_point(interface_extends:ChannelRecvStat)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 v = 1;</code>
*/
in... | 16.105263 | 66 | 0.547386 |
922a1ef083d3fa0a5102aa0535f3d3ea0334028b | 7,547 | /*
* 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.246696 | 120 | 0.601431 |
f2f9249b19b626901515a7546f13224bd6b2254f | 15,144 | package com.bergerkiller.mountiplex.reflection.declarations;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Map;
import java.util.logging.... | 40.384 | 159 | 0.538893 |
1271cc4015b0d15e0819bff1e5fcd7799ba8d2d3 | 2,332 | package me.senseiwells.arucas.tokens;
import me.senseiwells.arucas.api.ISyntax;
import me.senseiwells.arucas.utils.Position;
import java.util.Map;
import java.util.Set;
public class Token {
public final Type type;
public final String content;
public final ISyntax syntaxPosition;
public Token(Type type, String ... | 16.194444 | 80 | 0.683962 |
e4f319af625d05cfd1d1d60c043a22aeedc2a39e | 4,757 | package tests;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import org.codehaus.plexus.util.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
import org.ope... | 31.503311 | 104 | 0.600799 |
d4998c91423521c24e3de5fa433469e6df26e53a | 2,054 | /*******************************************************************************
* Copyright (c) 2004, 2012 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, an... | 27.756757 | 146 | 0.652386 |
b0760faa22b86795ee88d440459bc205a666e0ad | 10,361 | /*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener... | 30.119186 | 199 | 0.708136 |
26685469400a51c829aa114210867cf8251117d6 | 6,270 | package com.datafibers.model;
import com.datafibers.util.HelpFunc;
import io.vertx.core.json.JsonObject;
import java.time.LocalTime;
import java.util.HashMap;
/** Meta Objects Response for REST API. */
public class DFModelPOPJ {
/** Id as pk, which is also used as model id. */
private String id;
/** Name ... | 30.735294 | 115 | 0.596172 |
64b0ebfe786fe0b8eaecf96c80fcf15d8450f762 | 1,351 | package space.pxls.data;
import org.jdbi.v3.core.mapper.RowMapper;
import org.jdbi.v3.core.statement.StatementContext;
import space.pxls.App;
import space.pxls.user.User;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DBFactionMembership {
public final int fid;
public final int uid;
... | 26.490196 | 96 | 0.635825 |
ccd4af931dc309fe29e6ba375e12f560c623f896 | 693 | package br.com.zupacademy.saulo.mercadolivre.categoria.entidade;
import br.com.zupacademy.saulo.mercadolivre.categoria.RepositoryCategoriaJPA;
public class CategoriaRequest {
private String nome;
private String nomeCategoriaMae;
public CategoriaResponse cadastrar(final RepositoryCategoriaJPA repository... | 28.875 | 102 | 0.759019 |
6c67dfd64ac59a50723aaf7bb9bb931a5dfe34d1 | 3,116 | /*
* Copyright 2021 Siphalor
*
* 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... | 39.443038 | 118 | 0.758023 |
61701bc8be71c9faa7fc24370248f454362473d4 | 4,410 | package com.dianwoda.usercenter.vera.namer.routeinfo;
import com.dianwoda.usercenter.vera.common.SystemClock;
import com.dianwoda.usercenter.vera.common.protocol.ResponseCode;
import com.dianwoda.usercenter.vera.namer.dto.Action;
import com.dianwoda.usercenter.vera.namer.dto.InterResponse;
import com.dianwoda.usercent... | 33.157895 | 89 | 0.703628 |
5ec99f7e3098038770ed1bf4b5e59276b2dbe51a | 8,286 | /*
* Copyright (c) 2020 eSOL Co.,Ltd.
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
package org.multicore_association.shim.edit.gui.jface;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util... | 28.972028 | 111 | 0.6902 |
bf9396f6e07daf8c0499a61764a4b37224a1ba8f | 9,470 | package edu.stanford.nlp.process;
// Copyright 2010, Stanford University, GPLv2
import junit.framework.TestCase;
import java.io.BufferedReader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import edu.stanford.nlp.... | 46.421569 | 710 | 0.657445 |
0f0c067a98aeb1886603191df873fd69da40373e | 1,279 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.alcatel.as.service.appmbeans.implstandalone;
import java.util.Dictionary;
import org.apache.felix.dm.DependencyManager;
import org.apache.log4j.Logger;
import org.osgi.framework.BundleContex... | 29.744186 | 91 | 0.704457 |
1e0fc9b8dd9a81a7e0c1cdfa75dfab0e6270e971 | 13,274 | /*
* 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.218447 | 127 | 0.628221 |
202abc88fb938c6175bd88bc34621028fd9dcc54 | 1,068 | package datatypes;
import java.util.*;
import services.*;
public class Corescope {
public static Stack<String> scope_variables = new Stack<String>();
public static Stack<Integer> current_scope = new Stack<Integer>();
public static Stack<Integer> scope_stack= new Stack<Integer>();
public void Enterscope(Str... | 24.272727 | 82 | 0.579588 |
4176568fa95527ac88dfec692fed4a22e631f500 | 3,309 | package com.hedgehogsmind.springcouchrest.workers.security;
import com.hedgehogsmind.springcouchrest.annotations.security.CrudSecurity;
import com.hedgehogsmind.springcouchrest.configuration.CouchRestConfiguration;
import com.hedgehogsmind.springcouchrest.workers.mapping.entity.MappedEntityResource;
import org.springf... | 36.766667 | 120 | 0.689332 |
e64cacd44ff1f25bfe4f92db506a5cf43c36c62c | 4,618 | /*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 38.165289 | 170 | 0.66977 |
e3347a557a61b93758b0b5a1f1308303d3c0a55d | 1,319 | package xyz.lamergameryt.allen4j.namesearch;
import org.json.JSONArray;
import org.json.JSONObject;
import xyz.lamergameryt.allen4j.templates.Student;
import java.util.ArrayList;
import java.util.List;
/**
* The response received after searching for a student by his name.
*/
public class NameSearchResponse {
/... | 27.479167 | 86 | 0.638362 |
ac3583285417c9c6223b7d2d2edeb53e3ebc59ba | 17,359 | package com.reedelk.runtime.rest.api;
import com.reedelk.runtime.rest.api.health.v1.HealthGETRes;
import com.reedelk.runtime.rest.api.hotswap.v1.HotSwapPOSTReq;
import com.reedelk.runtime.rest.api.hotswap.v1.HotSwapPOSTRes;
import com.reedelk.runtime.rest.api.hotswap.v1.HotSwapPOSTResNotFound;
import com.reedelk.runti... | 36.392034 | 124 | 0.61242 |
fb0c26ac2640818065030795a89389c4afcb4e2e | 3,454 | package ca.ualberta.cmput301f17t08.habitrabbit;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
/**
* The activity for signup ... | 41.614458 | 109 | 0.498552 |
f46cc683003f4b8b50b17b309686fbd49b36d949 | 688 | package no.gorandalum.fluentresult;
import org.junit.jupiter.api.Test;
import java.util.Optional;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
class BooleanResult_MapToOptional_Test {
@Test
void mapToOptional_success_successfullyMapValue() {
... | 31.272727 | 72 | 0.642442 |
994573d179662453fea14053534332f68d1e7f8c | 4,247 | // 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.066038 | 143 | 0.639746 |
9e49b94c4e9b0fffa912f7a12810473e5f83f51f | 1,706 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2012, 2013, 2014 Zimbra, Inc.
*
* 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,
* version 2 of the ... | 37.911111 | 93 | 0.731536 |
9c6fc4ce0848d3dc8297ce1ed5dbc499ed652222 | 17,431 | package communications;
import entities.BrokerState;
import entities.HorseJockeyState;
import entities.SpectatorState;
import hippodrome.actions.Race;
import java.io.Serializable;
/**
* Definition of the processing of information relative to the Message's exchanges between clients
* (also known as {@code entities}... | 28.622332 | 118 | 0.585566 |
4f1fa15517e8370b7478a4ef846e0100d01ebb56 | 1,447 | package com.example.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.example.R;
import com.example.utility.Preferences;
import org.alfonz.utility.Logcat;
import org.alfonz.utility.VersionUtility;
public class ExampleActivity extends AppCompatActivity {
@Override
publ... | 24.525424 | 70 | 0.731168 |
d3913081143cd7f134e0008b76f9b3ed4403efe5 | 1,386 | package org.qwli.rowspot.model.aggregate;
import org.qwli.rowspot.model.enums.BaseEntity;
import org.qwli.rowspot.model.Collect;
import java.io.Serializable;
import java.util.Date;
public class CollectAggregate extends BaseEntity implements Serializable {
private Long id;
private Long categoryId;
priv... | 20.382353 | 74 | 0.660173 |
a9ab24e240f28c634313471df44396d783bd792a | 370 | package com.example.hades.dagger2._10_subgraphs._subclass._plus;
import dagger.Component;
import javax.inject.Singleton;
@Singleton
@Component(modules = {AppModule.class, DebugAppModule.class})
public interface AppComponent {
void inject(App app);
void inject(DebugApp debugApp);
App app();
// void ... | 21.764706 | 64 | 0.754054 |
7f9cb2d9639cbea1cf44c79763b5545fffbc8096 | 696 | package com.sang.law.controller;
import com.sang.law.pojo.Admin;
import com.sang.law.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | 31.636364 | 75 | 0.800287 |
6ffcf61c0ca51d6e2c106cddfe5063152d56db42 | 377 | package streams.algebras;
import streams.higher.App;
import java.util.function.BinaryOperator;
/**
* Authors:
* Aggelos Biboudis (@biboudis)
* Nick Palladinos (@NickPalladinos)
*/
public interface ExecStreamAlg<E, C> extends StreamAlg<C> {
<T> App<E, Long> count(App<C, T> app);
<T> App<E, T> reduce(T id... | 22.176471 | 83 | 0.69496 |
af974b5accc6642f41d0395612bc82763ac3f914 | 5,974 | package com.hhd2002.universaladapter;
import android.os.Handler;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
/**
... | 28.179245 | 88 | 0.532139 |
da497f1b3b87dcfb970e58aab46ead029025c037 | 6,862 | package org.ksoong.weibo4j.publisher.parser;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import org.ksoong.weibo4j.publisher... | 36.695187 | 153 | 0.55392 |
157e9dd8eeafddef9426e8eceec58b92404fdca4 | 851 | package top.ahdx.utils;
import java.io.Serializable;
/**
* @author YangYe
* @email imissyou5201314@outlook.com
* @date 2021/1/19
*/
public class Res implements Serializable {
private Boolean flag;
private String message;
private Object data;
public Res() {
}
public Res(Boolean flag, St... | 17.367347 | 59 | 0.59342 |
be9951355312d6040f43b4ae163b567b3fbc427c | 2,916 | /*
* Copyright 2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 29.454545 | 101 | 0.643004 |
fad93333430a61ff64a3740b2810fc5556adc0f4 | 1,218 | package com.gmail.antonsyzko.doctoradministrationpanel.utils;
/**
* Created by Admin on 06.08.2016.
*/
/*
demo use
*/
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
//not really used - hardcoded at DB
public class Quic... | 25.375 | 105 | 0.743021 |
73df9b5f5af4db52c837cca42593f0af0a9bf0ee | 1,103 | package com.thieu.setup.services;
import com.thieu.setup.mappers.RoleMapper;
import com.thieu.setup.models.Role;
import com.thieu.tool.shared.CommonStrings;
import com.thieu.tool.shared.ResponseObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowire... | 25.651163 | 84 | 0.690843 |
1870ebae750a43db950041443420c5fc413107d7 | 1,499 | package com.coolweather.app.util;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
public class HttpUtil {
public stat... | 25.844828 | 94 | 0.679119 |
18c884ec3aef3361f46f74b97d1d69c26e31df3d | 465 | public class MalformedCardException extends RuntimeException {
/**
* Create the exception with the default message.
*/
public MalformedCardException() {
super("Invalid card.");
}
/**
* Create the exception and add the entered string to the message.
*
* @param card what ... | 25.833333 | 70 | 0.632258 |
cfe368a7c849e06e71da0b5acd6e5a6f99c0fecc | 3,199 | package com.venky.swf.plugins.collab.util;
import com.venky.geo.GeoCoder;
import com.venky.geo.GeoCoordinate;
import com.venky.geo.GeoDistance;
import com.venky.geo.GeoLocation;
import com.venky.swf.db.model.Model;
import com.venky.swf.db.model.reflection.ModelReflector;
import com.venky.swf.sql.Conjunction;
import co... | 35.544444 | 134 | 0.66302 |
4daa46d4fd1da0857eaad44f8674603012028abd | 2,169 | import org.sql2o.*;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
public class ClientTest {
@Before
public void setUp() {
DB.sql2o = new Sql2o("jdbc:postgresql://localhost:5432/hair_salon_test", null, null);
}
@After
public void tearDown() {
try(Connection con = DB.sql2o... | 29.310811 | 89 | 0.685569 |
3e66a97dd4e981879dea0d86026aaa04c94a07d4 | 829 | import javax.swing.*;
import java.awt.*;
public class GUISetup extends JFrame
{
// window variable
private Container window;
private int screenHeight = (int)(java.awt.Toolkit.getDefaultToolkit().getScreenSize().getHeight());
private int screenWidth = (int)(java.awt.Toolkit.getDefaultToolkit().getScree... | 27.633333 | 103 | 0.651387 |
58124157e1c14f6f9bdbf0d5c9fb82bc1a3f0503 | 323 | package reform.core.procedure.instructions;
public abstract class BaseInstruction implements Instruction
{
private InstructionGroup _parent;
@Override
final public InstructionGroup getParent()
{
return _parent;
}
@Override
final public void setParent(final InstructionGroup parent)
{
_parent = parent;
}
... | 16.15 | 60 | 0.780186 |
9614d1d51d5d652d2f44b17c8f1be12594fcdfd6 | 409 | package com.ttyd.videoplayer.videolib.render.view.listener;
import android.view.Surface;
/**
* Surface 状态变化回调
* Created by guoshuyu on 2018/1/29.
*/
public interface IGSYSurfaceListener {
void onSurfaceAvailable(Surface surface);
void onSurfaceSizeChanged(Surface surface, int width, int height);
boo... | 21.526316 | 70 | 0.762836 |
fb24e9638d27d48fc429b6fa437f1bdbc15479b4 | 799 | package com.bihell.dice.system.convert;
import com.bihell.dice.system.entity.SysDepartment;
import com.bihell.dice.system.vo.SysDepartmentTreeVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* 部门对象属性转换器
*
* @author geekidea
* @date 2019-11-01
**/
@Mapper
public i... | 21.026316 | 82 | 0.720901 |
2d7c021f2e6bf7900a8159681165b59eb5ad3dd1 | 422 | package me.prettyprint.hector.api.beans;
import java.util.List;
/**
* Return type from get_range_slices for simple columns
* @author Ran Tavory
*
* @param <N> column name type
* @param <V> column value type
*/
public interface OrderedRows<K, N, V> extends Rows<K, N, V>{
/**
* Preserves rows order
* @re... | 19.181818 | 60 | 0.654028 |
5c59a98c9cc1b1fcacd6f6b4798e42200efd1d7a | 2,580 | /*
Copyright 2014-2016 Intel Corporation
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, s... | 28.988764 | 83 | 0.73876 |
7d71d809a282cb66bda9512af8c11f1ec83b2a48 | 2,856 | import java.util.Comparator;
public class Merge {
public static void sort (Point[] a, Comparator comparator) {
Point[] aux = new Point[a.length];
sort (a, aux, comparator, 0, a.length - 1);
}
private static void sort (Point[] a, Point[] aux,
Comparator com... | 34.829268 | 96 | 0.507703 |
b9fe8e80707e278dd1479224faa39d5d6d36737f | 761 | public class Solution {
public boolean isScramble(String s1, String s2) {
if (s1.equals(s2)) return true;
int[] letters = new int[26];
for (int i=0; i<s1.length(); i++) {
letters[s1.charAt(i)-'a']++;
letters[s2.charAt(i)-'a']--;
}
for (int i=... | 38.05 | 88 | 0.516426 |
3d024c319de67e8ad7e4afb10902fbfbd7dfd6e2 | 18,824 | package io.metadew.iesi.metadata.configuration.component.trace;
import io.metadew.iesi.common.configuration.metadata.repository.MetadataRepositoryConfiguration;
import io.metadew.iesi.common.configuration.metadata.tables.MetadataTablesConfiguration;
import io.metadew.iesi.connection.tools.SQLTools;
import io.metadew.i... | 67.956679 | 412 | 0.679292 |
d2774007cd4a367c2e96134de7cee96dbb902760 | 1,561 | package problems.leetcode;
import java.util.HashMap;
import java.util.Map;
/**
* https://leetcode.com/problems/copy-list-with-random-pointer/
*/
public class CopyListWithRandomPointer {
private static class Node {
final int val;
Node next;
Node random;
Node(int val, Node next, ... | 24.015385 | 77 | 0.525304 |
e31aed0d25f1fb38f5ff71f59f27636096a91493 | 469 | package com.Thiiamas.SpringCourse.Repository;
import com.Thiiamas.SpringCourse.Models.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface UserRepository extends MongoRepository<User, String... | 26.055556 | 71 | 0.818763 |
cbc2f04de49b2192dac43289cbeb5b481e8035ff | 2,995 | package com.hsiao.security.config;
import com.hsiao.security.service.UserDetailsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.w... | 42.785714 | 109 | 0.666444 |
bd31eea2b384d7dad6fa82be56b0e9d4efcb29d5 | 2,530 | /*! ******************************************************************************
*
* Hop : The Hop Orchestration Platform
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache Lice... | 32.025316 | 96 | 0.644664 |
767696855429fdfd812cf2a00be1a81c5f657b7a | 1,301 | package gov.fda.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CountrySeriousIncidents {
int deathCount;
int congCount;
int disabilityCount;
int hospitalizationCount;
int lifeThreateningCount;
int unclassifiedCount;
public int getD... | 24.54717 | 64 | 0.790161 |
852fd1fcc3738abb3427ff5f752e4a30b3d90560 | 2,960 | package com.dimensiondata.cloud.client.http;
import com.dimensiondata.cloud.client.Filter;
import com.dimensiondata.cloud.client.NodeService;
import com.dimensiondata.cloud.client.OrderBy;
import com.dimensiondata.cloud.client.Param;
import com.dimensiondata.cloud.client.model.*;
import javax.ws.rs.client.Ent... | 34.022989 | 124 | 0.651689 |
8bcceb29a152d4516d4f3945c7dde971aeb5ff52 | 1,600 | package com.iba.iot.datasimulator.session.dao;
import com.iba.iot.datasimulator.common.util.ModelEntityUtil;
import com.iba.iot.datasimulator.session.model.Session;
import org.bson.types.ObjectId;
import org.mongodb.morphia.Datastore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.... | 27.118644 | 123 | 0.725 |
de2f2ab6c766350dc845d87712a8c9686c01c8db | 10,812 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 202... | 24.912442 | 127 | 0.517851 |
3c154fa9468cd87ecd80451203c4f99923445758 | 852 | package me.rayentwickler.flashcard;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class PropertyReader {
private Properties prop = new Properties();
public String getProperty(String key){
return prop.getProperty(key);
}
public PropertyReader() {
InputStream inpu... | 20.780488 | 79 | 0.674883 |
d47760b88c0adaa0f69cd86b4687cbc6c54d4475 | 1,142 | package seawave.day21.chario;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Demo4_Buffered {
/**
* @param args
* 带缓冲区的流中的特殊方法
* readLine()
* newLine();
*
... | 20.392857 | 71 | 0.676007 |
23fd1c688e6f6a569e325839ff860a4211cb8dc1 | 2,868 | package com.poianitibaldizhou.trackme.apigateway.controller;
import com.fasterxml.jackson.annotation.JsonView;
import com.poianitibaldizhou.trackme.apigateway.assembler.UserAssembler;
import com.poianitibaldizhou.trackme.apigateway.entity.User;
import com.poianitibaldizhou.trackme.apigateway.service.UserAuthentication... | 40.394366 | 100 | 0.751743 |
557bace7ea983597e6572399ca4c05f3ef9e3590 | 3,866 | package com.kl.tradingbot.user.infrastructure.common.model;
import com.kl.tradingbot.user.infrastructure.common.annotations.Password;
import com.kl.tradingbot.user.infrastructure.common.annotations.PasswordMatching;
import com.kl.tradingbot.user.infrastructure.common.annotations.UniqueEmail;
import com.kl.tradingbot.u... | 30.203125 | 140 | 0.724521 |
c5206d694220a45200355f97f606005e0f97cd36 | 1,642 | package us.ihmc.robotics.geometry;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Disabled;
import us.ihmc.euclid.geometry.ConvexPolygon2D;
import us.ihmc.euclid.geometry.interfaces.Vert... | 30.407407 | 149 | 0.746041 |
200a1189f835a2f190b16c57449cab7707043165 | 1,665 | package cn.exrick.sso.service.impl;
import cn.exrick.common.exception.XmallException;
import cn.exrick.common.jedis.JedisClient;
import cn.exrick.common.utils.QiniuUtil;
import cn.exrick.manager.dto.front.Member;
import cn.exrick.manager.mapper.TbMemberMapper;
import cn.exrick.manager.pojo.TbMember;
import cn.exrick.s... | 30.833333 | 72 | 0.727327 |
9c775f1eb389732257e450fa1951692af304f2ea | 10,096 | package ga.findparty.findparty.profile;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android... | 33.765886 | 120 | 0.575079 |
522ca7a12702317c56ebbb1bdcbdb4f343526cc8 | 8,898 | package org.apereo.cas.qr.validation;
import org.apereo.cas.authentication.AuthenticationException;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.mock.MockTicketGrantingTicket;
import org.apereo.cas.qr.BaseQRAuthenticationTokenValidatorServiceTests;
import org.apereo.cas.qr.QRAu... | 39.546667 | 118 | 0.67532 |
90672b74c1bebdc04caf7b98831496d27e34c5f5 | 1,527 | package com.ufc.br.model;
import java.math.BigDecimal;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persisten... | 23.136364 | 85 | 0.751801 |
c5862bd125d512509c66e5464dcf9a79e4cace58 | 11,978 | /*
* Copyright (c) 2016 CA. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.ca.mas.identity.group;
import android.net.Uri;
import androidx.annotation.Keep;
import android.text.TextUtils;
import andro... | 41.020548 | 137 | 0.608282 |
395b1c8ca809cd5438ef98cbab924d5b357f7c75 | 1,481 | package uk.ac.ebi.atlas.model.resource;
import org.junit.Test;
import uk.ac.ebi.atlas.solr.bioentities.BioentityProperty;
import java.util.stream.Stream;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class BioentityPropertyFileTest {
private BioentityPropertyFile test... | 31.510638 | 112 | 0.578663 |
e0711509d2ed26d25d88f24511fbd8afb96cbdb7 | 1,704 | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 35.5 | 110 | 0.757629 |
88a06c252412577ac65794e2c02b2a2a291d28fe | 1,625 | package com.lmn.Arbiter_Android.ProjectStructure;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.util.Log;
import com.lmn.Arbiter_Android.R;
public class ProjectAlerts {
private static final String TAG = "ProjectAlerts";
public ProjectAlerts(){... | 28.017241 | 91 | 0.750154 |
d22ac2193a9c670e6a67f5bef5cd5bb973a29ea1 | 592 | package com.example.features.dashboard.view;
import android.view.View;
import com.example.tools.images.ImageLoader;
import com.example.util.other.ViewHolderFactory;
/**
* Assisted injections in dagger via factories.
*/
public class ShotViewHolderFactory implements ViewHolderFactory<ShotViewHolder> {
private fi... | 22.769231 | 81 | 0.758446 |
4ea176081fe29b5c1f59b95b8cbf91beca34a77f | 1,646 | /*
* Copyright 2013-2018 (c) MuleSoft, 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 ... | 35.782609 | 129 | 0.777643 |
f40868e0dc4661b1a45e25382820549138cd41b1 | 446 | package demo.boot.web;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
/**
* 启动类
*
* @author leishiguang
* @since v1.0
*/
@EnableWebMvc
@SpringBootApplication
public clas... | 21.238095 | 70 | 0.784753 |
9b411a4d35a92948acfce00c0330fc1a8170c6b1 | 427 | package com.thebund1st.tiantong.web.webhooks;
import com.thebund1st.tiantong.commands.NotifyOnlinePaymentResultCommand;
/**
* Assembler that converts raw webhook request body to a {@link NotifyOnlinePaymentResultCommand}.
* The signature verification should also be covered here, if any.
*/
public interface NotifyO... | 32.846154 | 98 | 0.824356 |
bcb940fd687083654016907b5ba80563f33432f5 | 6,316 | package com.singularsys.jeptests.system;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import com.singularsys.jep.Jep;
import com.singularsys.jep.Operator;
import com.singularsys.jep.OperatorTable2;
import com.singularsys.jep.ParseException;
import com.singularsys.jep.EmptyOperato... | 34.895028 | 109 | 0.564915 |
e2b8272730013ee4ed63bb134036cb1bffeddbfa | 6,643 | package cellularAutomata.reflection;
/*
* This is a 3rd part open source debugging tool which I have altered
* to suit my needs. This class is not used in the distributed version
* of this program.
*/
import java.io.*;
import java.net.URL;
import java.util.StringTokenizer;
import cellularAutomata.... | 25.949219 | 79 | 0.530784 |
cfb14922670b9b049e73920a1c878875472adfd4 | 2,295 | package com.sjl.bookmark.ui.base.extend;
import android.os.Bundle;
import android.view.View;
import com.sjl.bookmark.R;
import com.sjl.core.mvp.BaseActivity;
import androidx.annotation.Nullable;
import cn.feng.skin.manager.loader.SkinManager;
import cn.feng.skin.manager.statusbar.StatusBarUtil;
import me.imid.swipeb... | 27.321429 | 99 | 0.698039 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.