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 |
|---|---|---|---|---|---|
50b025b8bec1574db1484c2001794ffbaa095d60 | 3,398 | package life.calgo.storage;
import static java.util.Objects.requireNonNull;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import java.util.logging.Logger;
import life.calgo.commons.core.LogsCenter;
import life.calgo.commons.exceptions.DataConversionException;
import life.calgo.com... | 34.673469 | 118 | 0.715127 |
97ea49759bd60184b582d59616c9bd4830509b80 | 1,802 | package org.biologer.biologer.model.network;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.biologer.biologer.model.Stage;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({... | 20.712644 | 58 | 0.634295 |
92ba47d265bcce6e0096dfe4eec531b2f688f33a | 2,275 | package ru.job4j.cinema;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* the class for preparing requests from servlets to database and responses from database to servlets.
*/
public class Service {
/**
* the instance of the service class.
*/
private static final Serv... | 28.797468 | 102 | 0.60044 |
c240e7f994d78ad09fcfe2c9d519b56c331e56a8 | 2,889 | package com.lzpeng.minimal.system.service;
import cn.hutool.core.io.FileUtil;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.lzpeng.minimal.common.core.response.QueryResult;
import com.lzpeng.minimal.system.domain.entity.Notice;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test... | 26.027027 | 124 | 0.654898 |
decedaae2709f9228da869577a3ae61582461d17 | 2,616 | package team.fjut.cf.controller.admin;
import org.springframework.web.bind.annotation.*;
import team.fjut.cf.config.interceptor.annotation.PermissionRequired;
import team.fjut.cf.pojo.enums.PermissionType;
import team.fjut.cf.pojo.enums.ResultCode;
import team.fjut.cf.pojo.vo.ResultJson;
import team.fjut.cf.pojo.vo.re... | 31.518072 | 85 | 0.697248 |
ab3857a9ef11b480b4983547f53fe172c7b7fc33 | 639 | package io.github.alphagodzilla.authentication.core.service;
import io.github.alphagodzilla.authentication.core.exception.AuthenticationSubjectNotExistException;
import io.github.alphagodzilla.authentication.core.model.UserInformation;
import java.io.Serializable;
/**
* @author AlphaGodzilla
* @date 2021/10/14 11:... | 30.428571 | 103 | 0.788732 |
e33fd92c20ff17fb8cc0bacb18f133f210039f76 | 481 | /*
* 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 computing;
/**
*
* @author jacek
*/
public abstract class uOperator extends Expression {
private Expressi... | 19.24 | 80 | 0.629938 |
0927a3b42705b69d807c23cdcf3f8830a52f5ef7 | 552 | package com.example.uzvend.OperationRetrofitApi;
import com.google.gson.annotations.SerializedName;
public class Users {
@SerializedName("response")
public String Response;
@SerializedName("user_id")
private String UserId;
@SerializedName("username")
private String... | 19.034483 | 50 | 0.606884 |
22c092917185f5481568594a3098f4789d0245dc | 5,156 | /*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.315068 | 112 | 0.779286 |
61cdb7b1c52f3bf36bce0603aced4af8461b3922 | 2,100 | /*
* Copyright 2011-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 31.818182 | 84 | 0.713333 |
6c7c83ce9d9d83f3d1e495ad31e91b5d166e293c | 22,436 | /*
* This file is part of dependency-check-core.
*
* 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 ... | 42.412098 | 148 | 0.627741 |
7ff50e23481f75d659b2b0315cdaf28e4ce91157 | 3,415 | import javax.swing.*;
import javax.swing.SwingUtilities;
import java.text.*;
/**
* Class to make it easy to do output to the user
* using JOptionPane
* <br>
* Copyright Georgia Institute of Technology 2004
* @author Barb Ericson ericson@cc.gatech.edu
*
* 14 May 2009: Edited by Dorn to ensure all JOptionPane ca... | 29.95614 | 107 | 0.579209 |
6490154453f5e44213fa35898f71f931229076e3 | 2,347 | package org.springframework.samples.petclinic.component;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.c... | 37.854839 | 124 | 0.760545 |
b23beb63b7c856fba8e65493ab0c113afe465db3 | 6,516 | package com.wavemaker.connector.jasper;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfigur... | 40.981132 | 198 | 0.68232 |
b35434ac7d415e1e61ddd5bdf44d1cff98b71516 | 2,393 | import java.util.*;
import org.junit.Test;
import static org.junit.Assert.*;
// LC291: https://leetcode.com/problems/word-pattern-ii/
//
// Given a pattern and a string str, find if str follows the same pattern.
// Here follow means a full match, such that there is a bijection between a letter in pattern and a non-em... | 34.681159 | 127 | 0.581279 |
86824b384d1962822df3ce653014fed0bad81518 | 1,800 | package com.spotinst.sdkjava.model.api.gcp;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEn... | 25 | 66 | 0.69 |
b5463f690f990bc8f763470f2323c3152b16fbed | 889 | package app.roana0229.org.android_screentracker_sample.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import app.roana0229.org.android_screentracker_sample.R;
public class EmptyTabFragment extend... | 26.147059 | 103 | 0.750281 |
95c117cba2e52e6e60242d939f8eed6586c57bdc | 114 | package io.craftgate.model;
public enum SettlementType {
SETTLEMENT,
BOUNCED_SETTLEMENT,
WITHDRAW
}
| 12.666667 | 28 | 0.72807 |
066ba2259db77cb99c6ef09b19e5255ffa8ae94a | 1,917 | package de.yannicklem.shoppinglist.core.user.security.service;
import de.yannicklem.shoppinglist.core.exception.UnauthorizedException;
import de.yannicklem.shoppinglist.core.user.entity.SLUser;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHol... | 25.905405 | 115 | 0.703704 |
93bfc228bcf967fc099397f199333a9232de49da | 3,720 | /*
* 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 u... | 36.470588 | 119 | 0.644624 |
7cea5e6376aec5e15054c22ee3cedc63cab38666 | 494 | package com.cricket.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface TableTextSelector{
public String selector... | 23.52381 | 44 | 0.777328 |
349740c013e9a028be15e1b5e1bdae66a7228d18 | 2,867 | package com.google.android.gms.samples.vision.barcodereader;
import android.content.Intent;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
impo... | 32.579545 | 116 | 0.631671 |
b57798d70c16ab5775219547f36b3e89c601c2f6 | 13,549 | package domainapp.modules.simple.dom.impl.reservaVehiculo;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.datanucleus.query.typesafe.TypesafeQuery;
import org.joda.time.LocalDate;
import org.apache.isis.applib.annotation.DomainService;
import org.apache.isis.applib.annotati... | 30.723356 | 115 | 0.670751 |
6c01da311eefa708520ba9c375482e0a88e495f3 | 2,040 | /*
* 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 ... | 29.565217 | 84 | 0.629412 |
82c925ce3dcb9174a58e521c6830a7c3b333d605 | 2,667 | /*
* Copyright 2017 Apereo
*
* 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 wr... | 30.655172 | 85 | 0.740157 |
692a098cace0578356d21efb648ca99d33821f2f | 776 | package uk.ac.ebi.fg.annotare2.web.gwt.common.shared.update;
import uk.ac.ebi.fg.annotare2.web.gwt.common.shared.exepriment.SingleCellExtractAttributesRow;
public class UpdateSingleCellExtractAttributesRowCommand implements ExperimentUpdateCommand {
private SingleCellExtractAttributesRow row;
@SuppressWarnin... | 28.740741 | 94 | 0.751289 |
beffacc88725321191398cf8a70b96acc74a8946 | 2,905 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 投保基本信息
*
* @author auto create
* @since 1.0, 2021-07-06 10:27:44
*/
public class ApplyBasicInfo extends AlipayObject {
private static final long serialVersionUID = 676235113133... | 19.761905 | 71 | 0.695009 |
cc18ca81eca7bc1fb9b4e04fb211bb5da8c44ab8 | 2,306 | package com.liao.mybatisdemo.jdbc;
import java.sql.*;
public class JdbcDemo {
private static final String SQLITE_DRIVER = "com.mysql.jdbc.Driver";
private static final String URL = "jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&useSSL=false";
private static final String USER_NAME = "... | 25.065217 | 123 | 0.64961 |
e86883526652c3ea3498811f6db9b04474394873 | 481 | package org.oulipo.browser.editor.remote;
import org.oulipo.streams.RemoteFileManager;
import javafx.scene.Node;
public class EmptyRemoteImage<S> implements RemoteImage<S> {
@Override
public Node createNode(RemoteFileManager fileManager) {
throw new AssertionError("Unreachable code");
}
@Override
public Str... | 16.033333 | 60 | 0.735967 |
c9e5049cf72b535c05b2fe700f8559c56ea63844 | 555 | package io.github.riesenpilz.nmsUtilities.packet;
public enum PacketType {
HANDSHAKING_IN("handshaking", "server"), LOGIN_IN("login", "server"), LOGIN_OUT("login", "client"),
PLAY_IN("play", "server"), PLAY_OUT("play", "client"), STATUS_IN("status", "server"),
STATUS_OUT("status", "client");
private final String ... | 24.130435 | 100 | 0.704505 |
50d3c5b187bfa08b8475e1a44b50625b316e28f7 | 7,695 | /*
* Copyright (c) 2020, JavaFamily Technology Corp, All Rights Reserved.
*
* The software and information contained herein are copyrighted and
* proprietary to JavaFamily Technology Corp. This software is furnished
* pursuant to a written license agreement and may be used, copied,
* transmitted, and stored only ... | 27.09507 | 89 | 0.636387 |
bbe899bd28eef56b6d8ca5bb5233f4c55b024140 | 2,127 | /*
* Copyright 2015 Adaptris 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 t... | 27.623377 | 99 | 0.752233 |
cec27cfceaf526e136c918b7d6ed79690e8eb637 | 227 | package com.camnter.gradle.plugin.toytime;
import java.io.Serializable;
/**
* Copy from gradle 4.1
*/
public interface TimeProvider extends Serializable {
long getCurrentTime();
long getCurrentTimeForDuration();
}
| 17.461538 | 52 | 0.744493 |
48a25667dee5340d9f582a21b41c13a887e0b6ce | 2,902 | /*
* Copyright 2020 Krzysztof Slusarski
*
* 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.184211 | 118 | 0.668504 |
cb9f42782ee54ec976209f5fdcc4222fcf4839d5 | 602 | package gsim;
/**http://graphstream-project.org/doc/Tutorials/Storing-retrieving-and-displaying-data-in-graphs_1.0/
* Edge Details Struct for importing of graph
* @author brandon
*
*/
public class ImportEdgeDetails {
public String v1;
public String v2;
public String e;
/**
* Constructor
* @param v1 - Fro... | 17.2 | 101 | 0.639535 |
26401b40c74ec6165d55d5fc5fedc1cff5867fcb | 4,190 | /**
* Copyright (C) 2006-2021 Talend Inc. - www.talend.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 required by appli... | 41.485149 | 117 | 0.575656 |
0352715047e0e2b0e26603891577e2620bf0f135 | 475 | package com.zsun.java.tij.chapter10.innerclasses;
/**
* Created by zsun.
* DateTime: 2019/05/05 13:15
*/
public class Parcel8 {
public Wrapping wrapping(int x) {
return new Wrapping(x) {
public int value() {
return super.value() * 47;
}
};
}
publi... | 21.590909 | 49 | 0.545263 |
71f64814d6216544e61981985084f67c7f443477 | 3,816 | /**
*
*/
package de.fh_dortmund.inf.cw.phaseten.server.entities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
im... | 19.370558 | 111 | 0.684486 |
0a558c2dd07ef02623305aa203b148d673873e95 | 12,634 | package wtf.cattyn.ferret.api.feature.script.lua.utils;
import com.google.common.io.Files;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.gui.DrawableHelper;
import net.minecraft.client.render.*;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.... | 48.592308 | 169 | 0.665743 |
e19abd761d422d574c1592490351eae8a0ce7925 | 4,224 | package on_tool.gui.dialogo;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.util.Arrays;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
i... | 25.756098 | 66 | 0.717803 |
89207f819a08d9a89345a4b5486bb840fa551963 | 2,279 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... | 34.530303 | 119 | 0.756911 |
97a6015af3973616a52f57db5e65658b721e6ae3 | 5,143 | package com.ltdd.calculator;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
import an... | 35.468966 | 119 | 0.550846 |
76ac82f900fe886ecd79d457ee4c0ab3b86afbb6 | 1,731 | /*
* Copyright 2002-2005 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 by... | 35.326531 | 103 | 0.721548 |
d483b101e4d81c48d0444404349efddb6bb82e74 | 12,224 | /*
* 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 ... | 44.289855 | 208 | 0.653796 |
8272a502d25a11652cfc20f931d0895e12419ca1 | 2,611 | package org.eclipse.paho.client.mqttv3;
public interface IMqttAsyncClient {
void close() throws MqttException;
IMqttToken connect() throws MqttException, MqttSecurityException;
IMqttToken connect(Object obj, IMqttActionListener iMqttActionListener) throws MqttException, MqttSecurityException;
IMqttT... | 42.112903 | 174 | 0.808502 |
8c2ed23c64b567d2254c3d82e07afc3b5a352451 | 1,939 | package com.bluecyan.controller;
import com.bluecyan.pojo.ResultJson;
import com.bluecyan.pojo.SearchCondition;
import com.bluecyan.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework... | 32.316667 | 140 | 0.74884 |
255ef90e55394cd7efacf51599e4e7cca9695a77 | 751 | package com.mana_wars.ui.textures;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
public class FixedSizeMirroredTexture extends AdaptiveTe... | 26.821429 | 74 | 0.727031 |
d4a23c117d79d4da7fae0e3527ad152a10bdeae9 | 2,500 | package com.example.foodapp;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recycler... | 30.120482 | 110 | 0.6828 |
c05b4edffc06652b3e933e30d0a0095d8e44481d | 871 | package ru.pinkgoosik.kitsun.command.moderation;
import ru.pinkgoosik.kitsun.command.Command;
import ru.pinkgoosik.kitsun.command.CommandUseContext;
import ru.pinkgoosik.kitsun.permission.Permissions;
import ru.pinkgoosik.kitsun.util.Embeds;
public class PermissionsList extends Command {
@Override
public Str... | 28.096774 | 97 | 0.694604 |
cf091f2a5e90a6fb92f9376ce5f613c52a897189 | 1,028 | /**
* Copyright (c) 2009 Jozef Izso. All Rights Reserved.
*/
package net.izsak.sandcastle.configuration;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
/**
* @author Jozef Izso
*
*/
public class DocletOptions extends Options {
public static final Option OUTPUT_FILE ... | 33.16129 | 119 | 0.715953 |
e5dd0b1646d2299fa3ddd71549cf21741afbccff | 1,555 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/container/v1beta1/cluster_service.proto
package com.google.container.v1beta1;
public interface NodeManagementOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeManagement)
com.google.protobu... | 27.280702 | 90 | 0.686174 |
9e67bd54ec0df4e77bdd5a7dfd24e2748003d314 | 12,285 | package oope2017ht;
import apulaiset.In;
import oope2017ht.omalista.OmaLista;
/**
* Käyttöliittymä vastaa vuorovaikutuksesta käyttäjän kanssa. Käyttäjä antaa käyttöliittymän välityksellä
* ohjelmalle komentoja, jotka käyttöliittymä välittää tulkille toteutettavaksi.
* <p>
* Harjoitustyö, Olio-ohjelmoinnin per... | 46.011236 | 117 | 0.60114 |
a6adbb550ef40bc33a2f5a6a19ceaef36d4105ad | 5,959 | package org.richardinnocent.propertiestoolkit;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.stream.Stream;
/**
* The default settings express the default return value and optional behav... | 36.783951 | 99 | 0.680315 |
527711a80d83eb29eabdb6c981cc3563b0f85ea4 | 5,535 | /**
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
package com.wegas.app.jsf.controllers;
import com.wegas.app.jsf.controllers.utils.HttpParam;
import com.wegas.core.ejb.GameFacade;
import com.wegas.core.ejb.... | 29.758065 | 140 | 0.583921 |
bfbbe8d2966b26cedc43f86c37511db1262b405b | 5,828 | /**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.... | 28.70936 | 177 | 0.69698 |
1b9f0a02842b1c96a081e60f9d750e46ed7e2107 | 2,573 | package and.sample.deckbuilder.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import java.util.ArrayList;
import and.sample.deckbuilder.R;
// ref. reci... | 29.574713 | 109 | 0.638943 |
0f764cf991492735bfe7d709408822a804f48e0f | 5,130 | /*
* 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 ... | 43.109244 | 146 | 0.645029 |
72769dd73195db188d79c38d1a8d9524046da683 | 6,325 | package com.fgonzalez.categorycalendar;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import... | 51.422764 | 120 | 0.658024 |
c66cac596060ff4330aa275168bd653abae93830 | 1,143 | package com.daiwj.invoker.demo.okhttp;
import com.daiwj.invoker.runtime.ISource;
/**
* author: daiwj on 2020/12/3 19:05
*/
public class TestSource implements ISource {
private static final int SUCCESS = 1;
private int status;
private String code;
private Object data;
private String message;
... | 19.05 | 55 | 0.588801 |
127ee24670259fc1d5c965766c6e782812968a48 | 11,101 | package com.botian.yihu.fragment;
import android.Manifest;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android... | 36.636964 | 171 | 0.595172 |
4f77c36b4d65004aab9aadfdc49f3d4b4b3f07ba | 1,699 | package leetcode.zidianshu;
/**
* @description:
* @author: LiYuan
* @version: 1.0
* @create: 2020-06-28
**/
public class Trie {
class TrieNode {
boolean end;
TrieNode []nodes;
TrieNode() {
end = false;
nodes = new TrieNode[26];
}
}
TrieNode root... | 23.929577 | 86 | 0.466745 |
86591c9211eec17c9a009ccec07cfcd6d34e4b06 | 548 | package sharpen.xobotos.api.interop.glue;
public class CastExpression extends Expression {
private final AbstractTypeReference _type;
private final Expression _expr;
public CastExpression(AbstractTypeReference type, Expression expr) {
this._type = type;
this._expr = expr;
}
@Override
protected boolean need... | 17.677419 | 69 | 0.748175 |
e421ec5b76a5bb2bd64b728ce3e6d2a0ada8225d | 2,096 | package com.sxzheng.tasklibrary;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author zheng.
*/
public class TaskManager {
privat... | 26.2 | 72 | 0.609256 |
cba3400775be69271fee2f9c3d783997f5e827df | 15,540 | // Copyright 2016 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.889145 | 100 | 0.717889 |
4fed907c834d0faf6dc3bf1deb589806a707400b | 1,343 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002-2010 Oracle. All rights reserved.
*
* $Id: RefreshException.java,v 1.3 2010/01/04 15:50:55 cwl Exp $
*/
package com.sleepycat.persist.impl;
/**
* Thrown and handled internally when metadata must be refreshed on a Replica.
* See... | 29.195652 | 78 | 0.662695 |
4fada79c6d14fe63b51f263723098c60279f04a1 | 4,950 | package com.pi4j.plugin.mock;
/*-
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: PLUGIN :: Mock Platform & Providers
* FILENAME : Mock.java
*
* This file is part of the Pi4J project. More information about
* this project... | 50.510204 | 112 | 0.673737 |
b08f153b4fd6d30fd0c272ab23490a607e766612 | 1,761 | package seedu.address.logic.commands;
import static seedu.address.logic.parser.CliSyntax.PREFIX_MODULE_CODE;
import seedu.address.logic.CommandHistory;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
import seedu.address.model.module.Module;
import seedu.address.mode... | 38.282609 | 111 | 0.735945 |
95239da1d92528f867b2804af85d98ba23548555 | 894 | package com.coracle.dms.service.impl;
import com.coracle.dms.dao.mybatis.DmsExceptionClaimsMapper;
import com.coracle.dms.po.DmsExceptionClaims;
import com.coracle.dms.service.DmsExceptionClaimsService;
import com.coracle.yk.xdatabase.base.mybatis.intf.IMybatisDao;
import com.coracle.yk.xservice.base.BaseServiceImpl;
... | 38.869565 | 125 | 0.829978 |
cc12c590dd7f9be4a7a48c2cc17332532d0ff206 | 174 | package io.github.ReadyMadeProgrammer.ByteTrigger.Common;
public interface BTVariableStorageFactory {
BTVariableStorage create(String id, ByteTriggerRuntime runtime);
}
| 29 | 68 | 0.83908 |
f4f910d544ccf780d8c7f9b3ac2bdaa144e48a92 | 7,776 | package com.yupaits.msg.controller;
import com.yupaits.msg.entity.Message;
import com.yupaits.msg.entity.MessageUser;
import com.yupaits.msg.entity.Template;
import com.yupaits.msg.service.IMessageService;
import com.yupaits.msg.service.IMessageUserService;
import com.yupaits.msg.service.ITemplateService;
import com.y... | 43.441341 | 138 | 0.673868 |
1c1f0bfff2deb22c972c09122001be69f7ec6371 | 1,918 | package com.navigation.dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.navigation.R;
import com.navigation.androidx.AwesomeFragment;
import com.navigation... | 30.935484 | 139 | 0.714807 |
796fcbe28a02197ddec8c4d12a7c7a9930fb8e05 | 245 | package org.gflogger;
/**
* @author Denis Gburg
*/
public interface FormattingStrategy {
boolean isPlaceholder(String pattern, int position);
boolean isEscape(String pattern, int position);
boolean autocommitEnabled();
}
| 16.333333 | 54 | 0.710204 |
a3bbed6c5f567f09c40ee1990cd3340f08d3cc16 | 2,187 | package org.ethereum.jsonrpc.model;
import org.ethereum.core.Transaction;
import static org.ethereum.jsonrpc.Utils.bytes2Long;
import static org.ethereum.jsonrpc.Utils.toHexStringNullSafe;
public class TransactionData {
private String hash;
private String nonce;
private String value;
private String ... | 26.349398 | 119 | 0.594422 |
e217a4f53e3dc97faf8267028b1f4543bee07a67 | 2,044 | package com.zhongti.huacailauncher.model.entity;
/**
* Create by ShuHeMing on 18/6/8
*/
public class LottiDetailEntity {
/**
* reward : 5000000
* standard : 12
* backImg : http://101.200.52.248/file/15240219831243467.JPEG
* playInfo : 666
* frontImg : http://101.200.52.248/file/152402198... | 18.414414 | 67 | 0.575342 |
2f4e4ae4a4dd92b79b6c7d51afa0be60e5f2bf4e | 1,469 | package com.olerass.pfexample.android.geoquiz.domain.question;
import com.olerass.pfexample.android.geoquiz.domain.event.Event;
import com.olerass.pfexample.android.geoquiz.domain.event.EventListener;
import com.olerass.pfexample.android.geoquiz.domain.state.StateLoader;
import com.olerass.pfexample.android.geoquiz.do... | 31.255319 | 72 | 0.730429 |
040b11c02ec49bec46ebb57d59f614c817361e94 | 1,642 | package com.melotic.api.service;
import com.melotic.api.dto.DealOrder;
import com.melotic.api.dto.DummyMarketMap;
import com.melotic.api.dto.DummyPriceTicker;
import com.melotic.api.dto.MarketDepth;
import com.melotic.api.dto.MarketMap;
import com.melotic.api.dto.PriceTicker;
import java.util.List;
import java.util.co... | 29.321429 | 71 | 0.692448 |
6b84fbf94636f633dd2cbcd7958de70abe02bedd | 343 | package com.github.andreashosbach.chat.cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features = "src/test/resources/feature", glue = "com.github.andreashosbach.chat.cucumber.steps", strict = true)
public c... | 28.583333 | 128 | 0.801749 |
4f5f589bd65dce6ad584b7843f9adaa2e2eb5935 | 3,593 | /*
* Infinitest, a Continuous Test Runner.
*
* Copyright (C) 2010-2013
* "Ben Rady" <benrady@gmail.com>,
* "Rod Coffin" <rfciii@gmail.com>,
* "Ryan Breidenbach" <ryan.breidenbach@gmail.com>
* "David Gageot" <david@gageot.net>, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 39.054348 | 176 | 0.787643 |
e5b606b2aa510865d54694fcb9a6884d7b9aee50 | 2,137 | package com.alibaba.smart.framework.engine.service.query.impl;
import java.util.List;
import java.util.Map;
import com.alibaba.smart.framework.engine.configuration.ProcessEngineConfiguration;
import com.alibaba.smart.framework.engine.configuration.aware.ProcessEngineConfigurationAware;
import com.alibaba.smart.framew... | 35.032787 | 156 | 0.810014 |
f24637e5b3f785d5bfbf2b8543bf16e65841326a | 757 | package com.venkat.teamtemp.config;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import... | 30.28 | 94 | 0.791281 |
bfd22246720c56695fcbdbb0c57e243f42b2a98e | 2,413 | package com.infdot.wicket;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.IModel;
import com.infdot.wicket.property.PropertySet;
import com.infdot.wicket.property.PropertyValueSet;
import com.infdot.wicket.view.ViewDataProvider;
... | 23.201923 | 80 | 0.735184 |
dff0f5fe8b67b02e1c6803c7ca289c8b6732cd4f | 4,533 | package org.disges.thrift.plugin.testdata.pojo.package1;
public class TestMapStructPojo implements java.io.Serializable {
public enum Fields{
RefMap, RefValueMap, RefKeyMap, SimpleMap, RefOtherPackage
};
private java.util.Map<org.disges.thrift.plugin.testdata.pojo.package1.MapKeyPojo, org.disges.thrift.plugin.te... | 51.511364 | 565 | 0.737922 |
14f2217664d6d9f89919e2444d9058aa612c741a | 11,986 | package ca.cgjennings.graphics.filters;
import ca.cgjennings.algo.SplitJoin;
import static ca.cgjennings.graphics.filters.AbstractImageFilter.getARGBSynch;
import static ca.cgjennings.graphics.filters.AbstractImageFilter.setARGBSynch;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.awt.image.B... | 31.295039 | 108 | 0.530285 |
8da26383e7d88e0371475fed38cac3e2eec66a8f | 5,334 | /**
* 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"); yo... | 37.56338 | 82 | 0.72216 |
8b0d1829ce922abd019bfbecede27e17b96ad164 | 2,058 | package solution;
import java.util.Properties;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.KafkaStreams;
import org.apache.kafka.streams.StreamsConfig;
import org.apache.kafka.streams.kstream.KStream;
import org.apache.k... | 39.576923 | 105 | 0.783285 |
5090db986c800f6db8eb2143466ca5783c122c9d | 261 | package com.iva.VoiceAsvSpoofDetect;
public class AsvSpoofDetectOptions {
String config = " --enable-log=true";
public String getConfig() {
return config;
}
public void setConfig(String config) {
this.config = config;
}
}
| 18.642857 | 42 | 0.64751 |
fb72589ff0893e488118003e3e967bcbe5c54b54 | 5,155 | package org.recap.service;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.ListObjectsRequest;
import com.amazonaws.services.s3.model.ObjectListing;
import com.amazonaws.services.s3.model.S3Object;
import com.amazonaws.services.s3.model.S3ObjectInputStream;
import com.amazonaws.servic... | 47.731481 | 170 | 0.665955 |
dcdc23dd02efd169295bf19167d906fc1fe253ae | 11,033 | package com.my.project.jaxws;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml... | 32.738872 | 106 | 0.666999 |
20c017d08966631aa709471641a989747371bed7 | 6,270 | package ic2015.password_keeper;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.view.Window;
import android.widget.TextView;
import android.widget.Toast;
import com.gc.materialdesign.views.... | 28.761468 | 108 | 0.602552 |
2f9cc5cd66b5e1e7ddd2875ea836205d8fdb826e | 659 | package es.upm.miw.apaw_practice.domain.models.garage;
import java.util.List;
public interface DriverBuilder {
interface Id {
Dni id(String id);
}
interface Dni {
Name dni(String dni);
}
interface Name {
Telephone name(String name);
}
interface Telephone {
... | 16.897436 | 54 | 0.611533 |
cf31455a34dbb4681e47080b88d804d1595396d9 | 694 | /*******************************************************************************
* Copyright (c) 2012 Manning
* See the file license.txt for copying permission.
******************************************************************************/
package com.manning.androidhacks.hack034;
import android.app.Activity;
imp... | 27.76 | 80 | 0.586455 |
717117af7be81f62c8d05452239a54c0e5886327 | 243 | package html;
/**
* Represents literal text.
* @version 1.0
*/
public class Text implements Content {
private final String text;
public Text(String text) {
this.text = text;
}
@Override
public String toString() { return text; }
}
| 14.294118 | 42 | 0.679012 |
e9979ccdecf92bf7904ec9c4940699ed3afcc76d | 2,636 | package com.biomatters.plugins.biocode.labbench.fims.geome;
import com.biomatters.geneious.publicapi.databaseservice.DatabaseServiceException;
import com.biomatters.plugins.biocode.BiocodePlugin;
import com.biomatters.plugins.biocode.labbench.LoginOptions;
import com.biomatters.plugins.biocode.labbench.PasswordOptions... | 36.611111 | 146 | 0.729894 |
a0ea37dc80555f373058213946c0a6b54997f174 | 4,928 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
package aws.proserve.bcs.ce.service;
import aws.proserve.bcs.dr.aws.AwsInstance;
import aws.proserve.bcs.dr.aws.ImmutableAwsInstance;
import aws.proserve.bcs.dr.project.Project;
import aws.proserve.bcs.dr.project.S... | 39.111111 | 113 | 0.649554 |
812c1c8c3b9668f140abcb2959b809dd46742f66 | 2,977 | package info.bitrich.xchange.coinmate;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import info.bitrich.xchange.coinmate.dto.CoinmateWebSocketTrade;
import info.bitrich.xchangestream.core.StreamingMarketDataService;
import info.bitrich.xchangestream.service.... | 45.8 | 156 | 0.745381 |
eb6ae5a339a259dd1e9c879509988c0ffb9a374e | 1,162 | package lista_agregacao;
public class TestePC {
public static void main(String[] args) {
Teclado tc1 = new Teclado(105, "br-abnt2", "LG", "Usb", false);
Teclado tc2 = new Teclado(105, "us-acentos", "exbom", "BK-A1100", true);
Teclado tc3 = null;
WebCam wc1 = new WebCam("Logitech", "C920", 1920, 1080, tru... | 19.366667 | 74 | 0.623064 |
bb96904f2c3b7c62efe1e5cf706d76df92f2c64b | 6,010 | package org.jgroups;
import org.jgroups.util.UUID;
/**
* Global is a JGroups internal class defining global variables.
*
* @since 2.0
* @author Bela Ban
*/
public final class Global {
public static final int BYTE_SIZE = Byte.SIZE / 8; // 1
public static final int SHORT_SIZE = Short.SIZE / 8; //... | 41.164384 | 103 | 0.72629 |
117f49bf502ee31f24cc809a9d4b971891d4acf1 | 2,684 | package blatt02;
import java.util.Random;
public class InsertionSort {
public static void rand(int[] array) {
Random random = new Random();
for(int i = 0; i < array.length;i++) {
array[i] = random.nextInt();
}
}
public static void auf(int [] array) {
array[0] = 1;
for(int i = 1;... | 22.940171 | 83 | 0.568554 |
4a1376759138f6ff9b019c4886743f057449797c | 732 | package io.fabric.sdk.android.services.b;
public abstract class j
{
private final String a;
private final String b;
public j(String paramString1, String paramString2)
{
this.a = paramString1;
this.b = paramString2;
}
public String a()
{
return this.a;
}
public String b()
{
... | 15.574468 | 68 | 0.602459 |
f5b185ba16b808f96ee8c0ce1586a3cd8c863887 | 199 | package net.sf.l2j.gameserver.enums;
public enum TeamType
{
NONE(0),
BLUE(1),
RED(2);
private int _id;
private TeamType(int id)
{
_id = id;
}
public int getId()
{
return _id;
}
} | 9.95 | 36 | 0.61809 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.