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 |
|---|---|---|---|---|---|
6d35346f4d6addc1d095cfb657892e70142f7eef | 3,355 | package chav1961.ksmgr.dialogs;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Enumeration;
import chav1961.ksmgr.in... | 39.011628 | 198 | 0.763636 |
4c75cd3f6d275a39b569aefd444c63986c661cf1 | 16,430 | package com._4point.aem.docservices.rest_services.server.forms;
import static com._4point.aem.docservices.rest_services.server.FormParameters.getMandatoryParameter;
import static com._4point.aem.docservices.rest_services.server.FormParameters.getOptionalParameter;
import static com._4point.aem.docservices.rest_ser... | 42.236504 | 190 | 0.750152 |
cf9f061a51a7f3ec29bb8ac8dc2ae6076a662ab5 | 1,359 | /*
*
* Copyright [2019~2025] [zhanshifeng]
*
* 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... | 30.886364 | 118 | 0.746873 |
1880211566ee1bb2343cbbf977e146cc7bb76fe9 | 851 | package cn.exrick.manager.pojo;
import java.io.Serializable;
public class TbRole implements Serializable{
private Integer id;
private String name;
private String description;
private Integer[] roles;
public Integer[] getRoles() {
return roles;
}
public void setRoles(Integer[] ... | 18.911111 | 75 | 0.606345 |
eaebc5e0a9d74a8dd67b07a13a22bf5d7557d12f | 4,146 | /*
* Copyright (c) 2019 Robert Sauter
* SPDX-License-Identifier: Apache-2.0
*/
package io.github.isotes.net.tun.io.example;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@SuppressWarnings("unused")
public enum IpProtocol {
HOPOPT(0, "HOPOPT"),
ICMP(1, "ICMP"),
IGMP(2, "IGMP"),
... | 22.290323 | 65 | 0.610468 |
a68332c6c04d8a406e7aa1bd1274f12fb6120899 | 1,775 | package com.ajlopez.blockchain.state;
import com.ajlopez.blockchain.core.types.Hash;
import com.ajlopez.blockchain.utils.ByteUtils;
import com.ajlopez.blockchain.utils.HashUtils;
/**
* Created by ajlopez on 25/07/2019.
*/
public class MerkleMountainRange {
private static final int NBITS = 64;
private final... | 30.603448 | 98 | 0.609577 |
842ab545d7241b525911f581b5ae435837472d38 | 1,734 | package com.example.aelaf.listtorecyclerview;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.T... | 34.68 | 99 | 0.747982 |
ae5e3f97782f2186e7461b23d026dcbb236ca16b | 3,651 | /*
* 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 com.upgrade.persistence.model.extcs;
import com.upgrade.persistence.model.Moneda;
import com.upgrade.persistence.model.emprs.E... | 20.283333 | 79 | 0.628047 |
56c025eae50b5b3ef9fcb4f7f2c6485865ab7da4 | 1,532 | package com.xjx.mydns.constant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.xml.transform.Result;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj implements Serializable {
private String code;
private Str... | 29.461538 | 117 | 0.677546 |
7e13e5a5e5923a5df927b58d7a6d841fe74b8ae0 | 5,346 | package seedu.address.model.friend;
import java.time.DayOfWeek;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import seedu.address.model.friend.exceptions.InvalidDayTimeException;
import seedu.address.m... | 35.64 | 119 | 0.631126 |
ee0f5ac6b15e707bf221d9474a1e530cf593b5ce | 2,412 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.tcmj.pm.conflicts.jfreechart;
import java.text.MessageFormat;
import java.text.NumberFormat;
import org.jfree.chart.labels.XYItemLabelGenerator;
import org.jfree.data.gantt.Task;
import org.jfree.data.gantt.... | 30.923077 | 81 | 0.626036 |
71f0b801358fe6f13ded9492ab0090fafe774140 | 10,827 | // ***************************************************************************************************************************
// * 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 regar... | 42.458824 | 133 | 0.55574 |
d6d965cc75e6d47f9617c863d3fd3d68afd2122e | 3,052 | package com.joymain.jecs.mi.webapp.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframe... | 34.292135 | 219 | 0.771298 |
5dbafca616832aab65c063b737c0e1e664b370f6 | 2,898 | package com.intuit.graphql.orchestrator.testhelpers;
import static com.intuit.graphql.orchestrator.testhelpers.TestFileLoader.loadJsonAsMap;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.... | 34.915663 | 98 | 0.76225 |
f16a9d4cef2bbad29fe22b3c3e6a78a23b541170 | 1,346 | package com.ketayao.ketacustom.spring;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author <a href="mailto:ketayao@gmail.com">ketayao</a>
* @since 2014年1月17... | 18.189189 | 60 | 0.675334 |
ccc77b5bcc869def6eabfef38ece98ccc1bedb2d | 416 | package eu.greyson.parser;
public class ParserException extends RuntimeException {
static final long serialVersionUID = 43L;
public ParserException(String msg) {
super(msg);
}
public ParserException(String msg, String input) {
super(msg);
}
static ParserException forInputStri... | 23.111111 | 72 | 0.658654 |
bf55dce253579b4eaca96e03a30e15ff562751e1 | 3,250 | package uk.co.ribot.androidboilerplate.ui.main;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.Collec... | 31.25 | 95 | 0.701538 |
78f3f022dab6d4e3918a1e3691712fe66364f26a | 656 | package de.chrthms.hmation.logic.devices.shutter;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import static de.chrthms.hmation.logic.ProcessConstants.VAR_FEEDBACK_REQUESTED;
/**
* Created by christian on 15.10.16.
*/
public class DefaultFeedbackReq... | 29.818182 | 81 | 0.762195 |
64d7ec59355bc0500b83427f5c1e8363b2ed2303 | 968 | package com.github.zeroxfelix.obd2fun.service;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import com.github.zeroxfelix.obd2fun.obd.ObdConnectionState;
import timber.log.Timber;
public class MockObdService extends AbstractObdService {
@Override
protected ObdConnectionState _st... | 30.25 | 113 | 0.739669 |
1bd292351d0f2735a4ea18c6bc4d52d545ff4c61 | 323 | package com.trading.forex.common.model;
import lombok.Getter;
/**
* Created by hsouidi on 05/08/2017.
*/
@Getter
public enum Way {
PUT(-1), CALL(1),NEUTRE(0);
int value;
Way(int value) {
this.value = value;
}
public Way inverse() {
return this.equals(PUT) ? CALL : PUT;
}... | 13.458333 | 45 | 0.578947 |
f8601381d481dc21430fd1149bb2f6ef0290553b | 5,662 | package eu.socialsensor.documentpivot.LSH;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import java.util.Map.Entry;
import eu.socialsensor.documentpivot.model.VectorSpace;
import org.apache.commons.io.IOUtils;
import org.jbl... | 30.771739 | 132 | 0.667079 |
0baa34102cd00f5e71598160251406eb9ae75f0a | 7,182 | package it.mdc.tool.core.platformComposer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* This class merges t... | 25.927798 | 83 | 0.662072 |
41e3d532f177575246a53879a96af5857af51d37 | 93 | package gg.wzleagues.wzleagues;
enum Rank {
BRONZE,
SILVER,
GOLD,
DIAMOND
}
| 10.333333 | 31 | 0.623656 |
6d01a814ca5854e73ad5f1ac60d6245ccb3bf427 | 10,660 | package com.fredhonorio.neu.query;
import com.fredhonorio.neu.query.param.Fragment;
import com.fredhonorio.neu.query.param.Fragments;
import com.fredhonorio.neu.type.NParamList;
import com.fredhonorio.neu.type.Parameter;
import com.fredhonorio.neu.util.Strings;
import javaslang.collection.List;
import java.util.funct... | 23.688889 | 92 | 0.55075 |
e9988ccc9e2740146a60a25ef6e462b8e895359e | 7,877 | package com.digiquest.core.digimon;
import com.digiquest.core.util.ByteSequenceMatcher;
import com.digiquest.core.util.RingBuffer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.StreamReadFeature;
import com.fasterxml.jackson.core.StreamWriteFeature;
import com.fasterxml.jack... | 43.043716 | 212 | 0.615082 |
8904ee97424f5c2c8aedba0db26c98d2706316d5 | 2,538 | package org.opencb.opencga.storage.hadoop.variant.search;
import org.apache.hadoop.hbase.client.Put;
import org.apache.phoenix.schema.types.PBoolean;
import org.opencb.opencga.storage.core.variant.VariantStorageEngine;
import org.opencb.opencga.storage.hadoop.variant.adaptors.phoenix.VariantPhoenixHelper;
import java... | 39.046154 | 136 | 0.666273 |
4a7c55f4dc1b98700a93ed487b140dcbdb8c5fb1 | 2,513 | package eg.bazinga.sfgpetclinic.services.map;
import eg.bazinga.sfgpetclinic.exceptions.IExceptionMessage;
import eg.bazinga.sfgpetclinic.models.Owner;
import eg.bazinga.sfgpetclinic.models.Pet;
import eg.bazinga.sfgpetclinic.services.OwnerService;
import eg.bazinga.sfgpetclinic.services.PetService;
import eg.bazinga.... | 30.646341 | 94 | 0.606446 |
f26e17fac00abbe74a1152beba0de4d37dd95872 | 803 | package com.arui.mall.web.controller;
import com.arui.mall.common.result.R;
import com.arui.mall.feign.client.OrderFeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
... | 25.903226 | 58 | 0.744707 |
03e87102c451bf09d1cb5887da32839fa41be734 | 1,712 | package org.vivi.httplog.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.propert... | 29.517241 | 128 | 0.760514 |
17e701660d9f1d61eef6f0ce2b714ba86e5b99ec | 835 | package org.helium.data.sharding.configuration;
import com.feinno.superpojo.SuperPojo;
import com.feinno.superpojo.annotation.Field;
import com.feinno.superpojo.annotation.NodeType;
/**
* Created by Coral on 7/15/16.
*/
public class DataSourceNode extends SuperPojo {
@Field(id = 1, name = "id", type = NodeType.ATT... | 17.765957 | 53 | 0.681437 |
2f0955b81be4b5c60450282929bc0f644fc0c753 | 3,503 | /*
* Copyright (c) 2019 LabKey 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... | 34.009709 | 148 | 0.652869 |
764992504f7cea13be902946981d3a8944d5863c | 671 | package org.contentmine.graphics.svg.layout;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.contentmine.graphics.svg.SVGElement;
/** table that spans the whole page
*
* @author pm286
*
*/
public class SVGPubstyleWideTable extends AbstractPubstyle {
private static final Logger LOG = Lo... | 20.333333 | 80 | 0.757079 |
af4cfd5613b48e2cc3574a0d7f5b824379a3ac0e | 2,346 | package dk.statsbiblioteket.scape.govdocs1;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* Created by IntelliJ IDEA.
* User: abr
* Date: 1/4/12
* Time: 2:25 PM
* To change this template use File | Settings | File Templates.
*/
public class GroundTruthBean {
private Stri... | 20.224138 | 98 | 0.588662 |
4972189dd2298236babd0e09ecda45efa758946e | 782 | package com.netwebx.hackerrank.generics;
/**
* Created by apple on 2017/2/26.
*/
public class Test2<T> {
private T a, b, c;
public Test2(T a, T b, T c) {
this.a = a;
this.b = b;
this.c = c;
}
public void setA(T a) {
this.a = a;
}
public void setB(T b) {
... | 17.377778 | 61 | 0.482097 |
c76804e8106bcae04788b203f57f6bcaf2406d41 | 533 |
public class TestInterruptingThread4 extends Thread {
public void run() {
for (int i = 1; i <= 2; i++) {
if (Thread.interrupted()) {
System.out.println("Code for interrupted thread");
}
else {
System.out.println("Code for normal thread");
}
}
}
public static void main(Str... | 19.035714 | 62 | 0.611632 |
b407e93bec310a130ae300c21c5e9613de8c082e | 4,934 | package onethreeseven.stopmove.algorithm;
import onethreeseven.common.util.Maths;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Optional;
/**
* Lloyd's K-Means clustering.
* See: https://en.wikipedia.org/wiki/K-means_clustering#Standard_algorithm
* @author Luke Bermingham
*/
public clas... | 32.460526 | 96 | 0.553709 |
5895b20288a1ad341b2fc80cc213265400c4a3b0 | 2,149 | package org.openntf.conference.graph;
import java.util.Calendar;
import org.openntf.conference.graph.Event.HappeningOn;
import org.openntf.domino.graph2.annotations.AdjacencyUnique;
import org.openntf.domino.graph2.annotations.IncidenceUnique;
import org.openntf.domino.graph2.annotations.TypedProperty;
import... | 32.560606 | 77 | 0.757562 |
4a44c12eab623b1af823c61b9d62a17adf199a19 | 81,345 | /*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or p... | 36.674932 | 218 | 0.638847 |
7c60753a865a138a94f9ed763d44ddfccef0aca4 | 708 | package fr.vernoux.rentabike.doubles;
import fr.vernoux.rentabike.domain.IdGenerator;
import reactor.core.publisher.Mono;
import java.util.LinkedList;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Queue;
public class IdGeneratorDouble implements IdGenerator {
private Queue<Str... | 25.285714 | 72 | 0.696328 |
5d2cc9267868e7aa2b4d466f1f65a7d6b79b96b1 | 2,001 | package org.embulk.input.google_ads;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.embulk.config.ConfigSource;
import org.embulk.spi.InputPlugin;
import org.embulk.test.TestingEmbulk;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;... | 42.574468 | 270 | 0.50025 |
4fa3a7622ee9871bd5193d5e309a72f592007515 | 2,261 | package vip.incolor.entity;
import java.util.Date;
public class ProductStyle {
private Integer product_style_id;
private String product_style_name;
private Boolean is_parent;
private Boolean is_on_line;
private Integer parent_id;
private Integer version;
private String product_style_... | 23.309278 | 96 | 0.703229 |
f4f32ffda2656b4b52ac0ccc24c84b67c339b513 | 1,054 | package lf.com.android.blackfishdemo.util;
import android.content.Context;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import java.util.Timer;
import java.util.TimerTask;
public class KeyBoardUtil {
public static void showKeyBoard(final EditText editText) {
new Tim... | 35.133333 | 131 | 0.681214 |
3a2e35edb0d1ca9f0357adb20cff2073e1d0d0d7 | 242 | package com.example.retrofitrxjava;
import retrofit2.Call;
/**
* Created by Administrator on 2017/12/8.
*/
public class NetContent implements GetHubService {
@Override
public Call respServiers() {
return null;
}
}
| 13.444444 | 50 | 0.681818 |
3a3a11e2b6919c7f681f8f51c97912973397439b | 1,877 | package com.greatorator.tolkienmobs.world;
import com.greatorator.tolkienmobs.world.biome.TTMBiomeProvider;
import com.mojang.serialization.Lifecycle;
import net.minecraft.util.registry.DynamicRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.SimpleRegistry;
import net.minecra... | 52.138889 | 178 | 0.780501 |
5db68c131b7ae8f42b5c3186d3b0981a2b168ffb | 513 | public static void connection() throws Exception {
try {
String userName = "<db_user>";
String password = "<password>";
String url = "jdbc:mysql://<hostname>/<databasename>";
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = (Connection)... | 39.461538 | 85 | 0.567251 |
6bfa3f653aaa33a1d06d90be0afe0ca33e50913a | 3,483 | /*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 34.147059 | 189 | 0.767155 |
7c8f3bfba999ae09381476252e41a32bdfe09f36 | 1,890 | package com.example.opensorcerer.holders;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import com.example.opensorcerer.adapters.MessagesAdapter;
import com.example.opensorcerer.databinding.ItemMessageIncommingBinding;
import com.example.opensorcerer.databinding.ItemMessageOutgoingBindi... | 32.033898 | 103 | 0.724339 |
b89b03de46289e581b4b9d717cf555c5a32ec7dc | 2,301 | package com.kayyagari;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.beanutils.B... | 35.953125 | 123 | 0.662321 |
56bb74f6ccf905fdf183ef567588bcd96cc4354b | 13,173 | package tk.dcmmc.sorting.Algorithms;
//debug
import tk.dcmmc.fundamentals.Algorithms.DoubleLinkedList;
/**
* 归并排序法
* Create on 2017/8/8
* @author DCMMC
* @since 1.5
*/
public class MergeSort extends Sort {
/**
* 内部类
* 为了那该死的判断a[mid] <= a[mid + 1]的情况, 为了把auxLocal的成果转移到a去, 可是这Java所有方法参数都是passed by value的,
* 不得不创建一个... | 23.994536 | 140 | 0.595233 |
229f0cb6aa283d6566d4835afb94ae91e257e40c | 4,195 | package com.blakebr0.extendedcrafting.container;
import com.blakebr0.cucumber.inventory.BaseItemStackHandler;
import com.blakebr0.extendedcrafting.api.crafting.ITableRecipe;
import com.blakebr0.extendedcrafting.api.crafting.RecipeTypes;
import com.blakebr0.extendedcrafting.container.inventory.ExtendedCraftingInventory... | 33.56 | 179 | 0.739452 |
df8b38634c034e97652fafa40efc267e9c92bea0 | 3,246 | /*
* 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... | 41.088608 | 104 | 0.759088 |
2fedfd486590a46991ddd827295e241da031071a | 154 | package cn.edu.nju.software.sda.app.dto;
import lombok.Data;
@Data
public class BaseQueryListDto {
Integer page = 1;
Integer pageSize = 10;
}
| 12.833333 | 40 | 0.701299 |
cf59f45c5ce2ffeaf6f825a9d9ab50a2e62ab066 | 1,600 | package quimufu.custom_text_colors;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import me.sargunvohra.mcmods.autoconfig1u.serializer.GsonConfigSerializer;
import net.fabr... | 37.209302 | 99 | 0.7775 |
ee72d3db1b668e0f57aee2e4b81f04cc44bc598e | 3,821 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.datasets;
import org.threeten.bp.LocalDate;
import com.opengamma.financial.convention.calendar.MondayToFridayCalendar;
/**
*
*/
public... | 45.488095 | 139 | 0.676524 |
e9c02a9cd106f656940a62f99f4df8d05e0a8f2b | 95 | package com.mit.community.entity.com.mit.community.entity.hik;
public class DeviceInfoHik {
}
| 19 | 62 | 0.8 |
034c749e05ff78f3cd14e8fe492f3edfadabadfe | 1,421 | package ch.ergon.adam.core.prepost;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import static com.google.common.collect.Lists.newArrayList;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class GitVersionTreeTest extends PrePos... | 44.40625 | 151 | 0.785362 |
80da55ae8da8a2e290c7e50104edbc2ec4a373d5 | 450 | package com.kgc.oop.reflect_proxy.proxy.dynamic_proxy_jdk;
/**
* @author:杨涛
* 动态代理 JDK
* 测试类
*/
public class Test {
public static void main(String[] args) {
//System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles","true");
RealStar realStar = new RealStar();
... | 25 | 90 | 0.617778 |
b06b4f3fc1ab651fc5ee3f50c9edd555f2515ba7 | 1,036 | package parser.ast.stmt.compound.flowcontrol;
import parser.SQLType;
import parser.ast.expression.Expression;
import parser.ast.stmt.SQLStatement;
import parser.util.Pair;
import parser.visitor.Visitor;
import java.util.List;
/**
* @author Dagon0577
* @date 2020/7/17
*/
public class IfStatement implements SQLStat... | 24.666667 | 116 | 0.709459 |
660c97d095d26b9d075d205841feff40d587a4c6 | 475 | package org.androidpn.client;
import android.os.Bundle;
import android.preference.PreferenceFragment;
/**
* Created by daktak on 2/19/16.
*/
public class PrefsFragment extends PreferenceFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
... | 19.791667 | 55 | 0.713684 |
476587f1a26329c9ed89d325c5e2f402cc2a02fd | 541 | package temp.core.commands;
import temp.core.BaseCommand;
import cresla.io.ConsoleWriter;
import java.lang.reflect.InvocationTargetException;
public class ReportCommand extends BaseCommand {
protected ReportCommand(ConsoleWriter consoleWriter) {
super(consoleWriter);
}
@Override
public void ... | 30.055556 | 131 | 0.780037 |
dbbad85825ae93d8f12367ffb2b35d6bfac4689f | 3,502 | package com.zy.upload.service;
import com.github.tobato.fastdfs.domain.StorePath;
import com.github.tobato.fastdfs.service.FastFileStorageClient;
import com.sun.org.apache.xpath.internal.functions.FuncSubstringAfter;
import com.zy.common.enums.ExceptionEnum;
import com.zy.common.exception.LyException;
import com.zy.up... | 44.897436 | 162 | 0.683324 |
4106607fb97a6abadd2473dda80b1054bcd0dd10 | 2,477 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 43.45614 | 152 | 0.766653 |
72730b4a34e6099282ac2b1762501264eb06aacd | 9,760 | package safeforhall.logic.parser.edit;
import static safeforhall.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static safeforhall.logic.commands.CommandTestUtil.CAPACITY_DESC_FOOTBALL_TRAINING;
import static safeforhall.logic.commands.CommandTestUtil.CAPACITY_DESC_SWIM_TRAINING;
import static safeforhal... | 50.833333 | 117 | 0.770287 |
528241f4caea23c5ce583140dc0014f04195aaf7 | 2,204 | /*
* Copyright 2012-2016 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 ... | 37.355932 | 108 | 0.681488 |
5e3028c9d6cd3912039feb6d4a00b8067f94e0c8 | 451 | package br.com.jarvis.ifoody.dao;
public abstract class DaoFactory {
public static ParceiroIfoodyDAO getParceiroIfoodyDAO(){
return new ParceiroIfoodyDAOImpl();
}
public static EnderecoLojaDAO getEnderecoLojaDAO(){
return new EnderecoLojaDAOImpl();
}
public static RestauranteDAO getRestaurante... | 18.791667 | 57 | 0.731707 |
f5c6db3fee77bb06a4d4c997879a8b5db69a3c74 | 114 | package excecoes;
public class CpfInvalido extends Exception{
public CpfInvalido(){super("CPF invalido");}
}
| 19 | 48 | 0.754386 |
717babbca7ea4909bd2f8ac9069647ac41a2f2fa | 709 | package mml4j.main.evaluator.build_ins;
import mml4j.main.evaluator.Evaluator;
import mml4j.main.evaluator.values.FunctionalValue;
import mml4j.main.evaluator.values.RefValue;
import mml4j.main.evaluator.values.abstracts.Value;
import mml4j.main.exceptions.EvaluationException;
import java.util.Map;
/**
* This class... | 29.541667 | 111 | 0.763047 |
010f4c67901da50060ebafeb7fe06af2c82c52a4 | 3,421 | /*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in th... | 24.091549 | 71 | 0.673487 |
78d5a28ebe394cb63fa3eef9ec21704c51007693 | 8,063 | package graziani.andrea.pacspace.activities;
import android.app.AlertDialog;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import andr... | 41.777202 | 160 | 0.714622 |
b923282dc44d16c19a5f5d4fb775205c5a39991f | 756 | package com.ozcanmuhammet.polling.entity;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import lombok.G... | 19.384615 | 81 | 0.757937 |
284841e1ea882abda65ff754e435732f87894d18 | 778 | package com.gxl.kratos.jdbc.shard;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.gxl.kratos.jdbc.core.KratosJdbcTemplate;
/**
* 解析分库规则后计算分库索引
*
* @author gaoxianglong
*/
@Component
public class DbRule extends ShardResolverImpl {
@Resource
private KratosJdbcTempla... | 25.096774 | 83 | 0.724936 |
c04bf18293aaaadd42630a407f60659bc2819075 | 1,106 | package org.progress.web.util;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.sql.SQLException;
import java.util.concurrent.ExecutionException;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.progress.web.exceptions.CustomException;
public fina... | 33.515152 | 79 | 0.651899 |
3d838cb7a1446cddbeca61aad127a0222c0a9362 | 1,141 | package com.softwareverde.bitcoin.server.module.node.rpc.handler;
import com.softwareverde.bitcoin.server.module.node.rpc.NodeRpcHandler;
import com.softwareverde.concurrent.service.SleepyService;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class ServiceInqui... | 42.259259 | 148 | 0.764242 |
8f830e865dc78b9934282878e0528a821b9349cf | 1,662 | import java.util.ArrayList;
public class ReadyQueue {
private ArrayList<process> queue;
public ReadyQueue()
{
queue = new ArrayList<>();
}
//Function to get process from the queue by remove it.
public process dequeue()
{
process p = null;
if (!isEmpty())
... | 25.96875 | 128 | 0.521661 |
3c8598f0c825369b8099375273be685e337f991f | 1,125 | import java.math.BigInteger;
import org.apache.commons.math4.util.FastMath;
class BigFraction extends Number implements FieldElement<BigFraction>, Comparable<BigFraction>, Serializable {
/**
* <p>
* Gets the fraction as a {@code float}. This calculates the fraction as
* the numerat... | 33.088235 | 122 | 0.682667 |
9dda3c0bb49a63511ae294cadb6f1b72d180e614 | 76 | package com.imooc.enums;
public interface CodeEnum<T> {
T getCode();
}
| 12.666667 | 30 | 0.684211 |
f639a6b638fb983c4604147067f26f85a77c025b | 3,174 | /*
* This file is generated by jOOQ.
*/
package com.cas.easycas.dao.tables;
import com.cas.easycas.dao.Public;
import com.cas.easycas.dao.tables.records.OauthCodeRecord;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.j... | 23.686567 | 142 | 0.63075 |
91080ef84b0ebfc31b100ba48f3413aa341010f8 | 540 | package Assignments;
import java.util.Scanner;
public class CheckNumberSequence {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int prev=s.nextInt();
int current;
int count=2;
boolean isdec=true;
while(count<=n) {
current=s.nextInt();
... | 16.875 | 42 | 0.566667 |
01f83becb0d9c85a3ebf47fcc92b768aceb75f76 | 374 | package sample.ble.sensortag.sensor.ti;
import sample.ble.sensortag.sensor.BaseSensor;
public abstract class TiRangeSensors<T, R> extends BaseSensor<T> implements TiPeriodicalSensor {
/**
* Constructor.
*
* @param data - instance of data.
*/
protected TiRangeSensors(T data) {
super... | 22 | 96 | 0.671123 |
9136dd0c78ae1019022a58ecd1a2ae79c52e5abd | 2,104 | package arknights.actions;
import com.megacrit.cardcrawl.actions.common.DamageAllEnemiesAction;
import com.megacrit.cardcrawl.cards.DamageInfo.DamageType;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;... | 41.254902 | 169 | 0.655894 |
f675cce9fdd9bf139f0201aa263ce99c7ba93936 | 10,314 | package ma.wafa.cream.web.rest;
import ma.wafa.cream.Application;
import ma.wafa.cream.domain.RefStatutCompagne;
import ma.wafa.cream.repository.RefStatutCompagneRepository;
import ma.wafa.cream.repository.search.RefStatutCompagneSearchRepository;
import ma.wafa.cream.web.rest.dto.RefStatutCompagneDTO;
import ma.wafa.... | 44.649351 | 136 | 0.751891 |
98ece5bdc39d74beb951b16d8e4d64cba2db296e | 3,763 | /**
* Copyright 2015-2016 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 ... | 34.842593 | 100 | 0.658251 |
bb4f54ab6808d24ddad94768e9f5c743648fb62a | 159 | package com.example.alexeyglushkov.uimodulesandclasses.activitymodule;
/**
* Created by alexeyglushkov on 02.04.17.
*/
public interface ActivityModule {
}
| 17.666667 | 70 | 0.779874 |
5f52fc34fa1b4be07915784f3fcd6182b5492644 | 2,321 | package org.essencemc.essence.modules.warps;
import org.bukkit.Location;
import org.essencemc.essence.Essence;
import org.essencemc.essencecore.modules.Module;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class WarpModule extends Module {
private WarpsCfg config;
public W... | 24.956989 | 84 | 0.592417 |
ac5cdf4e0878a2d54f31ad55a06906c56e646d48 | 2,617 | /*
* Copyright 2000-2020 Vaadin 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... | 31.53012 | 127 | 0.669851 |
3c78e82acff488e91c456e0ad5ae104bf4f2a2e2 | 1,836 | package de.andrew.demoZITF.dummy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import de.andrew.demoZITF.R;
/**
* Just dummy content. Nothing special.
*
* Created by Andreas Schrade on 14.12.2015.
*/
public class DummyContent {
/**
* An array of sam... | 32.785714 | 137 | 0.637255 |
bd5f42c126c4aa8bda4b1bf250570a3b534fb196 | 697 | package lsieun.bytecode.core.visitor;
import lsieun.bytecode.core.CompilerVersion;
import lsieun.bytecode.core.MagicNumber;
import lsieun.bytecode.core.Visitor;
public class CoreStandardVisitor implements Visitor {
@Override
public void visitMagicNumber(MagicNumber obj) {
String line = String.format("... | 31.681818 | 98 | 0.703013 |
9457085148185073314361099b117feff0f10b56 | 1,134 | package com.homw.robot;
import java.io.IOException;
import java.util.Arrays;
import org.junit.Test;
import com.homw.robot.handler.RobotChannelInitialer;
import com.homw.robot.struct.MsgFactory;
import com.homw.robot.struct.MsgPacket;
import com.homw.robot.struct.packet.Cmd;
import com.homw.transport.netty.TcpClient;... | 22.68 | 106 | 0.688713 |
d574ae1329b5e47a0c51da3a771706a0b694b5c7 | 628 | package fii.practic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
/**
* Util class for accessing the Spring {@code ApplicationContext} .
*/
@Component
public class ApplicationContextHolder {
... | 27.304348 | 68 | 0.765924 |
403267f775cf455e91461c60aca32f8794e67bb9 | 168 | package com.github.thedeadone.unchecker;
@FunctionalInterface
public interface ThrowingDoubleConsumer<E extends Exception> {
void accept(double value) throws E;
}
| 24 | 62 | 0.809524 |
e9cbe393956d32588f893ffea620b36da53ec524 | 5,563 | package com.storm.posh.plan.reader.lap;
import com.storm.posh.plan.Plan;
import com.storm.posh.plan.planelements.competence.Competence;
import com.storm.posh.plan.planelements.competence.CompetenceElement;
import com.storm.posh.plan.reader.PlanReader;
import com.storm.posh.plan.reader.lap.builders.CompetencesBuilder;
... | 38.365517 | 183 | 0.655582 |
dc6236b7aecce1d53fdb60f545061266ff3750e6 | 817 | package com.nagraj.base;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
public abstract class BaseActivity extends AppCompatActivity implements BaseView {
@Override
protected void onCreate(Bundle savedInstanceState) {
i... | 24.757576 | 82 | 0.694002 |
81cb9c05eb314353cb1411df4b390fe4533d27b9 | 131 | package br.com.gomes.daniel.ufabc.alertadematricula.domain.dominio;
public enum Periodo {
MATUTINO, VESPERTINO, NOTURNO;
}
| 14.555556 | 67 | 0.763359 |
ee752c584c86420b53fea6b21ccfef36c7755a5f | 9,061 | package com.develdio.remotesearch.shared.helper;
import org.fusesource.jansi.AnsiConsole;
import com.develdio.remotesearch.i18n.Message;
import com.develdio.remotesearch.i18n.MessageTranslate;
/**
* This class wrappers and abstract all patterns used by
* streams of output and input.
*
* @author Diogo Pinto <dio... | 20.926097 | 65 | 0.607549 |
e5f45994015134ecc209c7c20a9e96e95d689afc | 1,077 | package me.johnnywoof.entity;
import me.johnnywoof.InvadersGame;
import java.awt.*;
public abstract class BaseEntity extends Rectangle {
public int x, y, width, height;
public boolean canCollide = true;
protected final InvadersGame invadersGame;
public BaseEntity(InvadersGame invadersGame, int x, int y, int wi... | 25.046512 | 93 | 0.69545 |
a0322d721dc5febafce10f70c40f312c8b0effe2 | 1,745 | /*
* Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0
*... | 37.934783 | 144 | 0.679083 |
af06ea041c41f5514b840b730e9b6ac2a91e6809 | 5,513 | /*
* Copyright 2006 Marc Wick, geonames.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-2.0
*
* Unless required by applicable law o... | 39.378571 | 134 | 0.674043 |
6de99bb2653721ef1004b1f3bf64bfcc42d3e2dd | 2,041 | package com.rainbowpunch.jetedge.core.limiters.special;
import com.rainbowpunch.jetedge.core.limiters.Limiter;
import com.rainbowpunch.jetedge.core.limiters.SimpleAbstractLimiter;
import java.util.Random;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* There are times when its easier t... | 40.019608 | 140 | 0.707496 |
2a341cde22f26e6a8c0c74c2a6d263de0a1c2859 | 3,217 | /*
* Copyright (c) 2010-2013 Evolveum
*
* 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... | 39.716049 | 120 | 0.779919 |
2455f249f32c057da3fbd60efd54575754b40a95 | 3,497 | package us.ihmc.humanoidRobotics.communication.controllerAPI.command;
import java.util.Random;
import controller_msgs.msg.dds.FootTrajectoryMessage;
import us.ihmc.communication.controllerAPI.command.Command;
import us.ihmc.euclid.interfaces.EpsilonComparable;
import us.ihmc.humanoidRobotics.communication.controllerA... | 25.158273 | 183 | 0.731198 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.