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 |
|---|---|---|---|---|---|
52b31b4e4f93863e508d93c2e4aa2ecfe1e11b9d | 6,491 | package com.github.dynamo.backlog.tasks.core;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import com.github.dynam... | 29.775229 | 147 | 0.663072 |
3839e03a82ce36aafc44b1387623f0f950ed2cf2 | 792 | package io.bmuskalla.system.properties;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class IsolatedSystemPropertiesMethodIntegrationTest {
static {
System.setProperty("key", "... | 22.628571 | 60 | 0.738636 |
669a2351f3c4c9843b9ce614822189c0bec77002 | 10,591 | /**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning 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 ver... | 39.371747 | 117 | 0.564914 |
ace4f93d3d7c15ff2369096e35de56ee5fef845c | 903 | package su.svn.href.configs;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Properties;
@Data
@ConfigurationProperties(prefix = "application.services")
public class ServicesProperties
{
private Properties locations;
private Properties departm... | 18.8125 | 75 | 0.688815 |
92b092c5d1e4b6e2a8eeb10a732bd21a03979565 | 640 | package com.tangwhdev.room;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.RawQuery;
import androidx.room.Update;
import java.util.List;
@Dao
public interface StudentDao {
@Insert
void in... | 21.333333 | 50 | 0.732813 |
115efabde08bac06d18abc38fb92a482c321806e | 2,243 | package simplejdbc.tools;
/**
* USER_TABLESエンティティ作成ツールのプロパティ
* @author yasu
*
*/
public class ToolsProperties {
private String dbHost;
private String dbPort;
private String dbUser;
private String dbPassword;
private String dbName;
private boolean genEntity;
private boolean genDao... | 17.122137 | 60 | 0.691485 |
13a28dc1fb74804dfe06bf9b775d68c1aecc3742 | 4,161 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | 46.752809 | 120 | 0.724826 |
b8ee6be486797dc9c1d3decfbb03f81743df6ca3 | 1,883 | /*
* 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 br.com.faneli.restclient;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.i... | 31.383333 | 130 | 0.658524 |
26eb0e9621544e0bbeebd296a2d71e1bcb5c7041 | 17,228 | /*
* Copyright 2015 Google LLC
*
* 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... | 41.215311 | 100 | 0.74791 |
72524c8de4ffce577a7cbe425e427a4cdfd64519 | 82,952 | package org.jhaws.common.lang;
import java.io.IOException;
import java.io.Serializable;
import java.io.UncheckedIOException;
import java.lang.reflect.Array;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collecti... | 34.883095 | 150 | 0.607303 |
375cb18d140867ea30c06d7ada77bb4ddb618325 | 478 | package cn.ltysyn.inmusic;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
@SpringBootApplication
@EnableJpaAu... | 26.555556 | 72 | 0.838912 |
2f504337b6297af219679a165cdec7128d543d11 | 4,449 | /*
* Copyright 2007-present Evernote Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... | 36.170732 | 138 | 0.663969 |
1a591553d214fd7cf90fe0603c187edde80c200a | 1,231 | package com.aidanwhiteley.books.controller.config;
import com.aidanwhiteley.books.util.IntegrationTest;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.http.HttpMethod;
import ... | 32.394737 | 103 | 0.770918 |
2796aa73235a59f35a101a4333f53a9dbe50d780 | 1,432 | package com.yz.tc.util;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
public class CodeGenerator {
private static Random random = new Random();
// private final static String NUMBERS_LETTER = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
private final static String NUM... | 23.096774 | 113 | 0.701816 |
76772187300ee1d388b72b0ad6db4cceb4dc20e7 | 24,194 | /*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publ... | 36.491704 | 174 | 0.734066 |
85b33e6f990c231006b82361ff759ca765089ad5 | 5,220 | /*
* 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 distributed under t... | 44.615385 | 182 | 0.739464 |
83c34d4ab89dfd9b3efef561bdaeb74f7b027cec | 395 | package com.redsoft.idea.plugin.yapiv2.res;
import com.intellij.psi.PsiType;
import com.redsoft.idea.plugin.yapiv2.model.YApiParam;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* <b>接口响应数据解析</b>
* @author aqiu 2020/7/23 3:58 下午
**/
public interface ResponseResolver {
... | 24.6875 | 74 | 0.767089 |
7807e99d0026c5e71a4df19c3e21240b7024a8d3 | 1,684 |
import static java.lang.Thread.sleep;
import java.rmi.RemoteException;
import java.util.logging.Level;
import java.util.logging.Logger;
/*
* 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.
... | 30.618182 | 103 | 0.527316 |
b5b1a5cd8cc113bda81dce597037355bdb9c740b | 10,249 | package bank_loans;
import java.util.ArrayList;
import java.util.Scanner;
import bank_loans.Customer;
import bank_loans.Loan;
public class Main {
public static void main(String[] args) {
System.out.println("Welcome to bank!");
System.out.println("Please enter your details.");
System.out.println("------------... | 40.192157 | 183 | 0.661918 |
d6e1667b67b18041b676f003e8beaae565ca0073 | 1,318 | package com.store.pojo;
public class Item {
private int itemId;
private String itemName;
private int Quantity;
private float cost;
private float discount;
public int getItemId() {
return itemId;
}
public void setItemId(int itemId) {
this.itemId = itemId;
}
public String getItemName() {
... | 16.897436 | 106 | 0.676024 |
4c51a041d135686c473aab17b55cae742520b9cf | 1,044 | package com.chuck.test;
import com.chuck.multicolorbar.MulticolorBarAdapter;
import com.chuck.multicolorbar.MulticolorBarItem;
import java.util.List;
/**
* Created by Steven Reyes (sreyes@stratpoint.com) on 13/07/2017
*/
public class FileSizeAdapter extends MulticolorBarAdapter<FileCategory> {
public FileSiz... | 24.27907 | 78 | 0.59387 |
5386162a58fe4e2702a0b43b98443bf1f421a09d | 1,540 | package com.linkedpipes.lpa.backend.sparql.queries;
import org.apache.jena.arq.querybuilder.ConstructBuilder;
import org.apache.jena.query.Query;
/**
* This class uses two template methods, {@link #get()} and {@link #getForNamed(String)}.
* Its mandatory sub-procedures are {@link #addConstructs(ConstructBuilder)} a... | 30.8 | 118 | 0.718182 |
2b4504692f31c3f667bf228ddaa3f7575b97381a | 19,933 | /*******************************************************************************
* Copyright 2015 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... | 31.94391 | 137 | 0.758541 |
a5dd7029a243d5dd140233893045467f9e10e2a2 | 1,558 | package blaunch.bladmin.dto;
import blaunch.bladmin.entity.business.Business;
import blaunch.bladmin.entity.business.VerifyBusiness;
import blaunch.bladmin.entity.business.status.VerifyYn;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import... | 29.396226 | 94 | 0.666239 |
d32e34df3259291d5607096fa665b80fbaa07bf2 | 650 | package cn.xxt.recyclerviewexercise.recyclerviewexercise;
/**
* Created by zhq on 2017/12/15.
* @author zhq
*/
public class Person {
private int ImageId;
private String name;
private String signatuer;
public int getImageId() {
return ImageId;
}
public void setImageId(int imageI... | 16.25 | 57 | 0.612308 |
378348ceb45bfcf8c131e75ee8b9ab2a2db042dd | 267 | package com.ita.edu.teachua.api.models.challenge.response;
import lombok.Data;
@Data
public class AddChallengeResponse {
private String name;
private String title;
private String description;
private String picture;
private String sortNumber;
}
| 20.538462 | 58 | 0.756554 |
cabf05ffa4dff11712360cb44e6f262307b47aa8 | 3,937 | /*
* Copyright 2018 Caspar Nonclercq 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 by applicable... | 39.37 | 139 | 0.734823 |
d44c5cfb0be59add6ee7d480738fe3497651ec85 | 3,962 | package com.zaig100.dg.screen.extensions;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.zaig100.dg.Main;
import com.zaig100.... | 29.348148 | 182 | 0.559818 |
0309858fa765e40e7c78e5ee37c7cb417df399ac | 8,294 | package enumerated.exercises;
import java.util.*;
import net.mindview.util.*;
import static net.mindview.util.Print.*;
enum Input10 {
NICKEL(5), DIME(10), QUARTER(25), DOLLAR(100),
TOOTHPASTE(200), CHIPS(75), SODA(100), SOAP(50),
ABORT_TRANSACTION {
public int amount() { // Disallow
... | 28.698962 | 112 | 0.556909 |
db15e0124e7987d952775a54f867ea2d6d62df11 | 948 | package com.geektcp.alpha.console.auth.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Data
@Component
@ConfigurationProperties
public class RedisConfig ... | 23.121951 | 75 | 0.706751 |
ebef087084c21fea7c732136930090ce709ff66b | 2,490 | package io.github.md2conf.model.util;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import ... | 40.16129 | 126 | 0.704418 |
13ceed44130314c59ce9bbc5d0b82e2f4761e998 | 852 | package com.chilitech.base.utils;
import android.content.Intent;
import android.os.Build;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.app.ActivityOptionsCompat;
import androidx.core.util.Pair;
public class ActivityUtil {
... | 26.625 | 119 | 0.697183 |
103361d46d8a3e83dea931778a3c69ff817f4b90 | 15,497 | /**
* Copyright (C) 2018 Nordstrom, 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 a... | 37.252404 | 100 | 0.687294 |
c9c84d86417caa5b5058bbee5b356fb7d321b2eb | 8,812 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 36.870293 | 131 | 0.777349 |
f5756bcc58af7de9c1c93a9b036519b40bc2f6c4 | 2,408 | package bamboo.task;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Date;
public class Document {
private String url;
private Date date;
private int statusCode;
private long contentLength;
private String contentType;
private String title;
private String text;
/... | 19.577236 | 96 | 0.619186 |
e3cc5717d525f3226e56b6d6c014d4fc202b5459 | 3,070 | package java_loops_methods_classes_homework_solutions;
public class _03_FullHouse {
private static int counter = 0;
private static class Card {
private String face;
private char suit;
public Card(String face, char suit) {
this.face = face;
this.suit = suit;
}
public String getFace() {
return ... | 19.308176 | 108 | 0.556026 |
6b9798003ca87cd5dfbd2707119711be87eae30b | 709 | package org.nico.java8.test;
import java.util.ArrayList;
import java.util.List;
import java.util.Spliterator;
import org.junit.Test;
public class SpliteratorTest {
@Test
public void testListSpliterator() {
List<Integer> list = new ArrayList<Integer>();
for(int index = 0; index < 100; in... | 22.870968 | 60 | 0.538787 |
58cf1d02c95877076e2ad28ee353f89423a3f860 | 4,696 | package com.github.edgar615.gateway.verticle;
import com.github.edgar615.gateway.core.cmd.CmdRegister;
import com.github.edgar615.gateway.core.utils.Consts;
import com.github.edgar615.gateway.dispatch.BaseHandler;
import com.github.edgar615.gateway.dispatch.DispatchHandler;
import com.github.edgar615.gateway.dispatch.... | 41.192982 | 93 | 0.614353 |
c94aa51d8131c293697a3012050cfcb8cbcd6250 | 1,077 | /** Bottone per Modificare il Profilo Utente*/
package it.EightBB.Client.Pclient.Button;
import it.EightBB.Client.Interface.Template.Button;
import it.EightBB.Client.Pclient.ConcreteHandlerTwo;
import it.EightBB.Client.Pclient.Form.ModifyProfile;
import javax.swing.*;
/**
* implementazione del tasto di Modifica Profi... | 30.771429 | 89 | 0.724234 |
c5e01d73c41731b1c04e858cd057851639531236 | 135 | package invocconstructor.b;
import invocconstructor.a.*;
public class OtherPackageB {
private TheType theType = new TheType();
}
| 13.5 | 41 | 0.755556 |
0a24a48b41e0cf41d7d2acf984afc96eff2ebddb | 3,269 | /*
Copyright 2017 Ericsson AB.
For a full list of individual contributors, please see the commit history.
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/l... | 39.865854 | 122 | 0.761395 |
07f7f5a26c819bde31ca7e60889ed9a713bd4f7e | 1,086 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
package com.microsoft.azure.toolkit.lib.compute.vm;
import com.azure.resourcemanager.compute.models.VirtualMachinePublisher;
import com.microsoft.azure.to... | 31.941176 | 140 | 0.755985 |
107aa200247ddd3b741574027c5fd4d7099e6119 | 794 | package eu.daproject.evl.util;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Class defining a bounded linked hash map used to create default bounded caches. It is the extension of the {@link LinkedHashMap}.
*
* @param <K> the key type
* @param <V> the value type
*/
public class BoundedLinkedHashMap... | 24.060606 | 132 | 0.685139 |
0ae9825be2c0af36a891c2eaf0fd0ddbc0542eec | 6,590 | package io.opensphere.mantle.plugin.selection;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ItemEvent;
import java.awt.event.MouseWheelEvent;
import java.util.function.Consumer;
import javax.swing.JComboBox;
import javax.swin... | 36.611111 | 126 | 0.678149 |
bac8931767c1b9a7a82e6d02137f393bc81b769b | 1,228 | package com.orangeclk.model.entity;
import org.hibernate.annotations.Immutable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.validation.constraints.NotNull;
import java.util.Set;
/**
* Created by orangeclk on ... | 19.806452 | 58 | 0.668567 |
00989ffb7c90c710344f3400e3750bde4910d00d | 17,174 | package com.communote.server.persistence.user;
/**
* <p>
* Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
* <code>com.communote.server.persistence.user.KenmeiUserProfile</code>.
* </p>
*
* @see com.communote.server.model.user.UserProfile
* @author Communote GmbH - <a hr... | 42.935 | 152 | 0.632701 |
4efe6a6a64b07ada7b004b36144290a5c1f0ab57 | 3,082 | package org.leech4j.announce;
import static org.leech4j.announce.AnnounceRequest.Event.STARTED;
/**
* @author Oleg Marchenko
*/
public class AnnounceRequest {
public static final int DEFAULT_NUM_WANT = 50;
protected byte[] infoHash;
protected byte[] clientId;
protected int port;
protected long... | 22.014286 | 65 | 0.570733 |
cf61fa63e97b7dc56e33b2063b26b42bef7e7da7 | 10,080 | /*
* 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 ... | 45.61086 | 168 | 0.669643 |
131a22194399524cf51f1d1c5ae1407dca4f25c2 | 1,669 | package ichikawa.assistant.emis;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by manabu on 2016/07/26.
*/
public class DownloadEMIS {
public static void main(String args[]) {
if(args.length==2... | 29.803571 | 106 | 0.566207 |
00891b85bf28c1a0dfd0478d0fa87912b12b4f49 | 3,241 | /*
* Copyright 2021-2021 Alfresco Software, 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 ... | 43.213333 | 133 | 0.792965 |
37333aff1ce8553b55c89a17ad1ec356b5c3906a | 19,394 | /*
* 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 janelas;
import compilador.C;
import compilador.Cpp;
import compilador.Judge;
import java.io.File;
import java.io.FileInputStr... | 47.302439 | 172 | 0.606476 |
eed3e25052e4218d53779e296900b8bf754b6c6c | 871 | package com.jpattern.cache.simple;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.jpattern.cache.ICache;
import com.jpattern.cache.ICacheManager;
import com.jpattern.cache.NullCache;
/**
*
* @author Francesco Cina'
*
* 24/set/2011
*/
public class ... | 20.255814 | 77 | 0.731343 |
c58cfdd2c4496d71559476352402cf15fc8a219d | 3,715 | /*
* 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 ... | 34.082569 | 159 | 0.674024 |
08e4e102eb51166bb7f0c01b8dce46501c3f558e | 13,834 | /*
* TestAcentric.java
*
* Created on 23. januar 2001, 22:08
*/
package neqsim.thermo.util.parameterFitting.binaryInteractionParameterFitting.HuronVidalParameterFitting;
import neqsim.util.database.NeqSimDataBase;
import java.sql.*;
import java.util.*;
import neqsim.statistics.parameterFitting.SampleSet;
import ne... | 46.113333 | 114 | 0.595634 |
3ee9ceae8ca4e7abef9c944314d431e020d102af | 88 | package com.experts.core.biller.statemachine.api.madfooatcom;
public class Inquiry {
}
| 17.6 | 61 | 0.806818 |
0b41b9c6955288df9c5769e6a35d074abe7a6b9a | 18,629 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.healthcareapis;
import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpClient;
import com.azure.core.h... | 43.525701 | 115 | 0.68447 |
b18e72c8d40ba77d04152728a03a36afd016a435 | 785 | package test.subclasses;
import main.subclasses.Address;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
public class AddressTest {
private Address address;
@Before
public void setUp() {
address = new Address("Stalowa", 12, 67, "Opole");
}
@Test
... | 21.805556 | 66 | 0.66242 |
86f9ef573699164c9ec1641b3e658ca198d0a9e5 | 237 | package com.li.knowledge.common.constant;
/**
* @program: knowledge
* @description: 系统常量
* @author: lifh
* @create: 2020-08-14 17:24
**/
public class SysConstant {
public static final String DEFAULT_PASSWORD = "li@123456";
}
| 16.928571 | 62 | 0.687764 |
ac2f8acc6ddd126a489650d686bb6c04884d9d39 | 2,076 | import io.netty.channel.Channel;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.http2.Http2SecurityUtil;
import io.netty.handler.ssl.*;
import io.netty.handler.ssl.util.SelfSignedCertificate;
import reactor.core.publisher.Mono;
import reactor.netty.ChannelPipelineConfigurer;
import... | 33.483871 | 136 | 0.741811 |
08a693b81f29e6773a694d3f099dbbd298e73f2b | 10,803 | package org.eclipse.aether.internal.test.util;
/*
* 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 Apac... | 27.280303 | 118 | 0.516338 |
33df45cfd3f9166ea6676389034f8e5eb5fe5950 | 12,630 | package com.Hospital.SearchingAndModiciation;
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
* Contains Necessary functions to manipulate Patients,Doctors,DoctorPatientAssociation and Credentials (List)
* according to the Program's... | 55.394737 | 282 | 0.591686 |
830d9c3816ab57d6c2b07135a8705fab6e3e8528 | 5,060 | package com.fc.test.controller.gen;
import com.fc.test.mapper.auto.TSysRoleUserMapper;
import com.fc.test.model.auto.*;
import com.fc.test.service.SysCustomerService;
import com.fc.test.service.SysUserService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annota... | 29.248555 | 168 | 0.710277 |
310bb4bff1dc22172237d3309374ca50255bacae | 1,613 | package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 查询还款流水明细
*
* @author auto create
* @since 1.0, 2018-11-14 14:26:39
*/
public class AlipayPcreditLoanRepayDetailQueryModel extends AlipayObject {
priva... | 19.202381 | 75 | 0.689399 |
b333f30d11a46c1739dcb8bbcdb3d6febb5eab29 | 170 | package factory.abstractFactory.bean;
public class DellMouse implements Mouse{
@Override
public void brand() {
System.out.println("dell mouse");
}
}
| 18.888889 | 41 | 0.682353 |
1508774ff22a10145224d277e6aef225ced64d65 | 790 | /*package com.gator.service;
import org.apache.log4j.Logger;
*//**
* The Log class wraps log4j to log all desired test results.
* Log file location defined in log4j properties.
* @author joeyi
*
*//*
public final class Log {
// .class gets an instance of the Log class at run time
public final static Logger ... | 17.954545 | 62 | 0.682278 |
4fd6513df2780d839b8a09aa6870d2176a77e6c8 | 639 | package com.wolf.test.upload;
import com.wolf.utils.UploadUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
/**
* <p> Description:
* <p/>
* Date: 2016/7/27
* Time: 15:19
*
* @author 李超
* @version 1.0
* @since 1.0
*/
pub... | 20.612903 | 59 | 0.693271 |
f80bde86f442bbea84571a373832993120779527 | 14,917 | /*
* Copyright 2013 Google 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 i... | 35.432304 | 110 | 0.608769 |
574bef9f70206e1c4d6968cd72dedac2d3a2c113 | 534 | package com.zhang.nong.doctor.utils;
import android.content.Context;
/**
* Created by zhangyunzhen on 2016/5/24.
*/
public class DensityUtil {
/*根据手机的分辨率从dp的单位转化为px(像素)*/
public static int dip2px(Context context,float dpValue){
final float scale=context.getResources().getDisplayMetrics().density;
return (int)(dpV... | 24.272727 | 70 | 0.762172 |
93d83ae2317ce2b0857b8cd8b170016e86a77154 | 744 | package ca.gc.agr.mbb.seqdb.ws;
import java.io.PrintWriter;
import java.io.StringWriter;
public class Util{
public static final boolean okId(long id, long max){
return (id >= 0 && id < max);
}
// From stackoverflow: http://stackoverflow.com/a/18546861/459050
public static String exceptionStrin... | 21.882353 | 71 | 0.655914 |
258c15ff248f71ce49502c0ece0c3f2ca78e4cf9 | 11,198 | package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.Assert.assertThr... | 34.884735 | 118 | 0.67012 |
1df82a58e53fe39cc208b40eaebf58f149b15c36 | 12,567 | package e.a.a.a.y0.b.d1.a;
import e.a.a.a.y0.b.d1.b.b;
import e.a.a.a.y0.d.b.a;
import e.a.a.a.y0.d.b.b;
import e.a.a.a.y0.d.b.l;
import e.a.a.a.y0.d.b.w.a;
import e.a.a.a.y0.f.d;
import e.c0.h;
import e.x.c.i;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field... | 37.070796 | 133 | 0.467972 |
75fc98181eaf9d1e1ccbcec699d8f7e389902a4f | 240 | package com.mint.ximalaya.base;
public interface IBasePresenter<T> {
/**
* 注册UI的回调接口
* @param t
*/
void registerViewCallback(T t);
/**
* 取消注册
* @param t
*/
void unRegisterViewCallback(T t);
}
| 15 | 37 | 0.5625 |
74110e1a277f35277695e54f07e4a62fd2c95059 | 2,402 | package org.cyclops.integratedterminals.network.packet;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
imp... | 33.830986 | 105 | 0.80433 |
68a1ca7b2a1c197a3a8c3a48e1132640b7892b95 | 7,389 | /*******************************************************************************
*
* This file is part of iBioSim. Please visit <http://www.async.ece.utah.edu/ibiosim>
* for the latest version of iBioSim.
*
* Copyright (C) 2017 University of Utah
*
* This library is free software; you can redistribute it and/o... | 32.126087 | 116 | 0.648126 |
7b100e9e6f69356ef219afbba6f22564e858c2a8 | 57,567 | package view;
import business.GerarSchema;
import business.GerarScriptSql;
import business.GerenciarDimensoes;
import business.GerenciarMetricas;
import business.Util;
import com.google.gson.Gson;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import view.percorrerAbas.PercorrerAbasFormAssist... | 55.299712 | 193 | 0.688936 |
89c9d9e67b810429bf910f3e5098b727e6c426a7 | 3,759 | package jp.openstandia.keycloak.integration.midpoint;
import io.grpc.ManagedChannel;
import io.grpc.Metadata;
import io.grpc.StatusRuntimeException;
import io.grpc.protobuf.ProtoUtils;
import io.grpc.stub.MetadataUtils;
import jp.openstandia.midpoint.grpc.*;
import org.keycloak.models.utils.FormMessage;
import java.n... | 36.495146 | 133 | 0.645118 |
8c7e44a0dbed023873477e4cfb70b968048245ed | 2,368 | package me.tsb.backdoor.commands;
import me.tsb.backdoor.Command;
import me.tsb.backdoor.RegisterCommand;
import me.tsb.backdoor.filler.FillTask;
import me.tsb.backdoor.filler.PlayerRegion;
import me.tsb.plugin.Main;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.event.player.PlayerChatEven... | 40.827586 | 137 | 0.567145 |
3fede5a95f277105ee721c4d03a51de9090f630f | 127 | package com.onpositive.text.analysis.rules;
public abstract class RuleCallback<T> {
abstract public void execute(T arg);
}
| 18.142857 | 43 | 0.771654 |
2cedacc7d7e69114f0d06e899f60c1d03d598f3b | 14,175 | package main;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
impo... | 29.53125 | 157 | 0.630123 |
541d565cd4ee3e8d6dd5f2b764a982ba445d2acd | 232 | package com.wave.user.dto.vo;
import com.wave.user.api.dto.UserInfoDto;
import lombok.Data;
import java.util.List;
@Data
public class MyConcernUserVo {
private Long userId;
private List<UserInfoDto> concernUserList;
}
| 14.5 | 46 | 0.75431 |
20075ea838e7667233b84ca5eb4178d200136dda | 1,114 | package cn.tomsnail.snail.ext.security.authority.filter.auth;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
*
* @author yangsong
* @version 0.0.1
* @status 正常
* @date 2017年9月27日 下午1:53:53
* @see
*/
public interface Authority {
/**... | 23.702128 | 149 | 0.652603 |
1994549d3c070ea71497b6c8df873fab010482a8 | 15,137 | package androidx.paging;
import androidx.annotation.AnyThread;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.Scope;
import androidx.annotation.WorkerThread;
import jav... | 37.283251 | 229 | 0.570192 |
9c22f9fb66eba53e518aff50a8c50482e2b0126c | 1,404 | package ru.geracimov.otus.java.thread;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class NumberLogger {
private static final Logger LOGGER = LoggerFactory.getLogger(NumberLogger.class);
private final Object monitor = new Object();
private final int firstStep;
private final int last... | 30.521739 | 85 | 0.581909 |
ecd768e556b001f6a963757f8f2d636eae32b806 | 407 | package com.wxjfkg.sdk.request;
import com.wxjfkg.sdk.http.HttpApiRequestWrapper;
import com.wxjfkg.sdk.http.HttpMethod;
public class InternalHttpApiRequest<T> extends HttpApiRequestWrapper {
private T entity;
public InternalHttpApiRequest(String url) {
super(url, HttpMethod.POST);
}
public T getEntity() {
... | 17.695652 | 70 | 0.751843 |
6387e3d2bfd5fe61fa33d95796dca8c1e42ec8ed | 567 |
package org.neogroup.warp.data.query;
import org.neogroup.warp.data.query.builders.DefaultQueryBuilder;
import org.neogroup.warp.data.query.builders.QueryBuilder;
public abstract class Query {
private final static QueryBuilder defaultQueryBuilder = new DefaultQueryBuilder();
public static SelectQuery selec... | 27 | 86 | 0.731922 |
566de5998e96fbcb4201737035988b457c4e5bfc | 1,301 | package gl8080;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
public class FileUploadProcessor {
private InputStream in;
private FileLineProcessor lineProcessor;
private FileDecoder dec... | 28.282609 | 103 | 0.541891 |
a26215b8a7d546e8e3d4d06d23aed13007bc4852 | 6,802 | package de.mpg.mpdl.service.demo.neuronProfiler.view;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Serializable;
... | 27.99177 | 78 | 0.72611 |
96889888a858e8abd560d851b3bd81529cd0b211 | 2,197 | package com.ablanco.teemo.model.teams;
import com.ablanco.teemo.model.BaseObject;
/**
* Created by Álvaro Blanco Cabrero on 24/3/16
* Teemo
*/
public class MatchHistorySummary extends BaseObject {
private Integer assists;
private Integer deaths;
private Integer kills;
private Integer mapId;
pr... | 19.792793 | 65 | 0.626764 |
6d1ea54087939fddfa57607f8048d7cfe11ff2d1 | 902 | package com.slmdev.jsonapi.simple.response;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@AllArgsConstructor
@Accessors(chain = true)
@JsonInclude(JsonInclude.Inclu... | 29.096774 | 80 | 0.722838 |
a3cc0cc02daad701e5d77f445a67e6262683bafb | 1,800 | package xjsnark.constraints;
/*Generated by MPS */
import jetbrains.mps.smodel.runtime.base.BaseConstraintsDescriptor;
import jetbrains.mps.smodel.adapter.ids.MetaIdFactory;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.smodel.IOperationContext;
import j... | 47.368421 | 200 | 0.818333 |
c8c6d63c2e14cffea2044763810a9b017ccf58e1 | 426 | package net.hockeyapp.android.objects;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class FeedbackTest {
private Feedback sut;
@Before
public void setUp() throws Exception {
this.sut = new Feedback();
}
@Test
public void setNameWorks() {
th... | 19.363636 | 67 | 0.657277 |
7c33555f12403c05832779a96dc910f66155ff5e | 4,093 | package com.duofei.distributed.lock.redis;
import com.duofei.distributed.lock.ThreadControl;
import com.duofei.distributed.lock.redis.DistributeLock;
import com.duofei.distributed.lock.redis.JedisUtils;
import org.junit.Test;
import redis.clients.jedis.Jedis;
import java.util.Iterator;
import java.util.Map;
import ja... | 35.903509 | 129 | 0.537014 |
54f1c2ab3505b95296ff6cf5dee1641cd5169f4b | 531 | class UrlEncodedFormEntity
{
@STAMP(flows = {@Flow(from="parameters",to="this")})
public UrlEncodedFormEntity(java.util.List<? extends org.apache.http.NameValuePair> parameters) throws java.io.UnsupportedEncodingException {
super((java.lang.String)null);
}
@STAMP(flows = {@Flow(from="parameters",to="this")})
... | 40.846154 | 172 | 0.758945 |
14b11e1360eed81a2796d863e92b99089e15f91d | 11,255 | package com.medusa.gruul.payment.api.util;
import cn.hutool.crypto.SecureUtil;
import com.google.common.collect.Maps;
import lombok.extern.java.Log;
import org.apache.commons.lang3.StringUtils;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpe... | 34.52454 | 121 | 0.586584 |
0167656195088ac9416fc45547f19093a5ac4ed8 | 367 | package net.hyper_pigeon.teleportation_potions.status_effect;
import net.minecraft.entity.effect.InstantStatusEffect;
import net.minecraft.entity.effect.StatusEffectType;
public class WormholeStatusEffect extends InstantStatusEffect {
public WormholeStatusEffect(StatusEffectType statusEffectType, int i) {
... | 33.363636 | 76 | 0.79564 |
aca8a5d652b0cddec7087fc00c022ffb341b0e2a | 7,044 | /*
* Copyright 2000-2009 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... | 40.953488 | 146 | 0.684696 |
e71b9cd500166738de968c4a59445b1646bae1cf | 2,491 | package com.ss.rlib.common.network.client;
import static com.ss.rlib.common.util.ObjectUtils.notNull;
import com.ss.rlib.common.network.client.server.Server;
import com.ss.rlib.common.network.client.server.ServerConnection;
import com.ss.rlib.common.network.client.server.impl.DefaultServer;
import com.ss.rlib.co... | 31.935897 | 111 | 0.672019 |
fadc04e33728c58073f24929e78c3b4fbe87bffb | 1,919 | package com.tvt11.timemanagingapp.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.tvt11.timemanagingapp.activity.MainActivity;
import com.tvt11.timemanagingapp.repo.TimerRepository;
import com.tvt11.timemanagingapp.util.AlarmControl;
import... | 34.267857 | 95 | 0.705576 |
b1c6d3b3715535a305b86d0d0aff4ba8e0436b9c | 1,063 | package dishcloth.api.util.logger;
import dishcloth.api.abstractionlayer.debug.IDebugLogger;
/**
* <b>APIDebug</b>
* <p>
* Hides debug logger implementation via abstraction.
* <p>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br>
* Created by ASDSausage on 6.8.2015 at 14:08
*/
public class A... | 23.622222 | 68 | 0.682973 |
735bf7eb6c57873ec2f36dc36be2ff8a9b3184cd | 4,614 | package edu.brandeis.cs12b.pa3;
import static org.junit.Assert.assertEquals;
import java.io.FileNotFoundException;
import org.junit.Before;
import org.junit.Test;
//Expected outputs generated at https://planetcalc.com/1434/
public class CaesarCipherTest {
private CaesarCipher cipher;
@Before
public void set... | 34.954545 | 278 | 0.704595 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.