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 |
|---|---|---|---|---|---|
60a5625f28fe370a8fade165404fd34c82424dec | 13,428 | package com.triggertrap.widget;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import andro... | 29.382932 | 169 | 0.750894 |
40ed4ac1625a723be4cf6d3952b97a546b9556bd | 625 | package org.chim.altass.core.executor;
import java.io.Serializable;
import java.util.Map;
/**
* Class Name: ContextAttrWrapper
* Create Date: 18-1-4 上午9:38
* Creator: Chim·Zigui
* Version: v1.0
* Updater:
* Date Time:
* Description:
*/
public class ContextAttrWrapper implements Serializable {
private sta... | 22.321429 | 71 | 0.7056 |
f7df73a2e6f6fbb4a49099603942b552ce8da626 | 493 | // onjava/Enums.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
package onjava;
import java.util.*;
public class Enums {
private static Random rand = new Random(47);
public static
<T extends Enu... | 27.388889 | 63 | 0.697769 |
96f3f2c37bbdf199946a06e22925420a81e946c5 | 441 | package pedro.pouzada.exemplopostconstructpredestroy.model;
import lombok.*;
import org.springframework.stereotype.Component;
/**
* @author Pedro Pouzada
* @version 1.0
* @since 13/06/2020 - 14:07
*/
//Lombok
@ToString
@Getter @Setter
@AllArgsConstructor
//Springboot
@Component
public class Client {
private... | 16.333333 | 59 | 0.707483 |
c9e2f8f757b92695497846b8872fcb379415c1ea | 223 | package io.java.springboot.dao;
import org.springframework.data.repository.CrudRepository;
import io.java.springboot.model.Technology;
public interface TechnologyRepository extends CrudRepository<Technology, String> {
} | 24.777778 | 82 | 0.838565 |
0d19f008d9d53a5f5a1afcfd9763e2e533c3f0da | 367 | package br.com.angeliski.repository;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import br.com.angeliski.modelos.PessoaComEnderecoIdGerado;
public interface PessoaComEnderecoIdGeradoRepository extends CrudRepository<PessoaComEnderecoIdGerado, Long> {
List<PessoaComEndereco... | 26.214286 | 110 | 0.847411 |
1f39fcc54d23f23eb4f778b9934748355f784eae | 4,707 | /**
* Copyright 2013 Canada Health Infoway, 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 applicab... | 42.790909 | 125 | 0.789675 |
cc0ceb889f09aaf4ca412d1419898ae11756db48 | 123,776 | package org.cronhub.managesystem.commons.thrift.gen;
/**
* Autogenerated by Thrift Compiler (0.8.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardS... | 34.315498 | 434 | 0.659482 |
f45c2aedb3bb8e2d1a4a9a2c9ed3b41065c4b331 | 5,510 | package lightning3d.Shaders;
import lightning3d.Engine.Entity;
import com.badlogic.gdx.graphics.g3d.Attributes;
import com.badlogic.gdx.graphics.g3d.Renderable;
import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
import com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute;
import com.badlogic.gdx.gra... | 29.623656 | 120 | 0.755535 |
a3184f1d864b4e65c90ee0cd48eea2a5a70942fc | 280 | package com.areebbeigh.webclip.dtos;
import lombok.*;
import javax.validation.constraints.NotNull;
@AllArgsConstructor
@NoArgsConstructor
@Getter @Setter
@ToString
public class Credentials {
@NotNull
private String username;
@NotNull
private String password;
}
| 16.470588 | 44 | 0.767857 |
7723e421e04083c18eeb2c488a57ac9063ab24fc | 297 | package id.mni.job.models.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpStatus;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseDto {
private HttpStatus status;
private String message;
}
| 19.8 | 43 | 0.811448 |
ff9cc27426047347ada84f6817372e3e8bef8629 | 958 | package com.sshubhadeep.twitter;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.auth.AccessToken;
public class TwitterPost {
static String consumerKeyStr = "XXXXXXXXXXXXXXXXXXXXXXXXXXXX";
static String consumerSecretStr = "XXXXXXXXXXXXXXXXXXXXXXXXXXX... | 27.371429 | 69 | 0.786013 |
e5c017b13b09edcddb3ca031d2c6e2f127a8d693 | 1,054 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates.
* 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 applic... | 32.9375 | 76 | 0.716319 |
50c4271abe22aad1511152188bb0e9194271aa35 | 491 | package klasyOrazMetody;
/**
* Created by Piotr Dzwiniel.
*
* Odcinek 8_4
* "Dziedziczenie"
*/
public class Spiderman extends Superbohater {
public Spiderman(int punktyZycia, int sila, int zrecznosc, int wytrzymalosc) {
super(punktyZycia, sila, zrecznosc, wytrzymalosc);
}
public void chodzPo... | 21.347826 | 82 | 0.672098 |
81a5527e8f169abf93b5c185defc869ebfd68656 | 2,243 | /*
* Copyright 2016 Tomas Kunovsky.
*
* 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... | 30.310811 | 185 | 0.676326 |
3097b2f0765fe0cdee1ce99981571938912fdb4a | 1,063 | package server;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import io.grpc.Server;
import io.grpc.ServerBuilder;
public class KeyStoreServer {
private Server server;
private static final int SERVER_PORT = 50051;
private void start() throws IOException {
server = ServerBuilder.forPort(SE... | 25.309524 | 93 | 0.73095 |
10af4cf9d4b76cdb07f64f5d3270dc61ac26d573 | 489 | package e.b.b.a.c.e;
final class g2 implements Runnable {
/* renamed from: b reason: collision with root package name */
private final /* synthetic */ s f7275b;
/* renamed from: c reason: collision with root package name */
private final /* synthetic */ f2 f7276c;
g2(f2 f2Var, s sVar) {
... | 23.285714 | 67 | 0.595092 |
fe21ca9132527633852f481808891b6e685da32e | 16,954 | package any.xxx.anypeer.moudle.chat;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
// import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... | 41.553922 | 142 | 0.525835 |
7f631f3d0e7b91718b57683628798171786de727 | 586 | package org.ovirt.engine.core.bll;
import org.ovirt.engine.core.common.queries.IdQueryParameters;
import org.ovirt.engine.core.dal.dbbroker.DbFacade;
public class GetFenceAgentsByVdsIdQuery<P extends IdQueryParameters>
extends QueriesCommandBase<P> {
public GetFenceAgentsByVdsIdQuery(P parameters) {
... | 27.904762 | 68 | 0.713311 |
d9c15fe0b831147aabb838796051f090c1477fba | 372 | package org.achartengine.easyshop.service;
import java.util.Collection;
import org.achartengine.easyshop.model.Product;
public interface IProductService {
Collection<Product> getProducts();
void addProduct(Product product);
void updateProduct(long id, Product product);
Product findP... | 18.6 | 50 | 0.704301 |
1a9244978b28e7f4f4992c6dc5f167b391305dcc | 1,311 | package medium.leetcode153;
/**
* 寻找旋转排序数组中的最小值:
* 假设按照升序排序的数组在预先未知的某个点上进行了旋转。
* ( 例如,数组 [0,1,2,4,5,6,7] 可能变为 [4,5,6,7,0,1,2] )。
* 请找出其中最小的元素。
* 你可以假设数组中不存在重复元素。
* 示例 1:
* 输入: [3,4,5,1,2]
* 输出: 1
* 示例 2:
* 输入: [4,5,6,7,0,1,2]
* 输出: 0
*/
public class Solution {
boolean isValid = false;
/**
* ... | 24.277778 | 62 | 0.509535 |
b99003fc9186acacbbdb99abef155fc5b82a86fd | 4,485 | package byps.stdio.client;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.util.Random;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ThreadFactory;
import... | 31.145833 | 113 | 0.687179 |
fe9db43d0bab45134dd3db1ecc718b0bcbd10720 | 3,189 | /*
* Copyright 2019 AraguaneyBits.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 applicable law... | 22.778571 | 132 | 0.575729 |
a50ac1f81fe6219ad5b8331632d94e98aea19da5 | 6,536 | /*
* (C) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 45.075862 | 108 | 0.731487 |
da948e332aa280525ff871829fa5c11a371a88ee | 1,134 | package top.wilsonlv.jaguar.cloud.websocket.wrapper;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import top.wilsonlv.jaguar.cloud.websocket.sdk.dto.WebsocketMess... | 27 | 89 | 0.768078 |
dc0e11e4deac68ac7e905ca120ad3f646897d71c | 2,006 | /*
* 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 ... | 29.5 | 96 | 0.727817 |
9ed57dec7525d642efa784a5855e2612930e517c | 1,830 | package ca.uwaterloo.joos1wc.ast.expression;
import ca.uwaterloo.joos1wc.ast.Expression;
import ca.uwaterloo.joos1wc.ast.Literal;
import ca.uwaterloo.joos1wc.ast.Terminal;
import ca.uwaterloo.joos1wc.ast.Visitor;
import ca.uwaterloo.joos1wc.diagnostics.CastException;
import ca.uwaterloo.joos1wc.diagnostics.ConstantEva... | 32.105263 | 111 | 0.737158 |
febd2709b26dd5f060dfd531673d083ba6130277 | 995 | package org.protege.editor.owl.model.idrange;
import org.junit.Before;
import org.junit.Test;
import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyManager;
import java.io.InputStream;
/**
* Matthew Horridge
* Stanford C... | 30.151515 | 121 | 0.763819 |
d64890f24ff241d56be4202524ed38cda920fc06 | 1,752 | package com.querydsl.core.types;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class JavaTemplatesTest {
private Templates templates = JavaTemplates.DEFAULT;
@Test
public void Precedence() {
// postfix expr++ expr--
... | 29.2 | 95 | 0.54395 |
a2bf5d95d85880d1609a477656e3a93671105e86 | 41,685 | package bc.zongshuo.com.controller.user;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
im... | 39.177632 | 159 | 0.55797 |
1f64ab8d28eec5a44473cfa07e3e7c94d5c721cd | 3,407 | package dk.in2isoft.commons.http;
import java.io.File;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.google.common.collect.ImmutableMap;
import dk.in2isoft.commons.util.RegExpUtil;
public class HeaderUtil {
private static long secondsInWeek = 604800;
private static long second... | 37.032609 | 233 | 0.696507 |
825f20e7af23dbbd3afe298ac99606184759eaaa | 3,474 | package org.wso2.carbon.apimgt.rest.api.publisher.v1.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.wso2... | 26.930233 | 88 | 0.708405 |
37e4d0f2fa1b75ccbf4870d2114c0d6587e5fab4 | 411 | package org.prepwork.fiorella;
import java.util.Scanner;
public class Hello {
@SuppressWarnings("resource")
public static void main (String[] args) {
Scanner scan = new Scanner (System.in);
String name;
name = scan.nextLine();
if (name.trim() .equals("")) {
System.out.println("Hello, Unk... | 22.833333 | 48 | 0.596107 |
5ad916eb1ab89482f9995efa345c72daadb864f8 | 804 | /*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*/
package vdm.namespaces.bydproduct.selectable;
import com.sap.cloud.sdk.s4hana.datamodel.odata.helper.EntitySelectable;
import vdm.namespaces.bydproduct.CodeList;
/**
* Interface to enable OData entity selectors for {@link vdm.nam... | 29.777778 | 266 | 0.762438 |
bf1a7e46dbdc5827675e29094341b54da92adc85 | 550 | package sample.generics.userdefined;
/**
* 自定义泛型类
*
* @author xiaodong
*
* @param <T>
*/
public class PersonG<T> { // 泛型参数为T
private int id;
private String name;
private T secrecy;
public PersonG(int id) {
this.setId(id);
}
public void setSecrecy(T secrecy) {
this.secrecy = secrecy;
}
public T ge... | 12.790698 | 36 | 0.636364 |
1647072b885fc8bce99d658ecafca5796eef9248 | 1,288 | package edu.cnm.deepdive.roulette.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import edu.cnm.deepdive.roulette.R;
import... | 35.777778 | 92 | 0.774845 |
d3e13163f6db96d244bdef40954b732a182027a8 | 3,393 | /**
*
*/
package hu.hw.cloud.shared.dto.filter;
import java.util.Date;
import hu.hw.cloud.shared.dto.Dto;
/**
* @author CR
*
*/
@SuppressWarnings("serial")
public class RoomStatusFilterDto implements Dto {
private String hotelKey;
private Date date;
private String fromRoom;
privat... | 18.642857 | 111 | 0.672856 |
b04b59f08f4ae638d06aa37e6da9a9a178f35be0 | 2,210 | package org.frekele.nikoday.api.config;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventLi... | 40.925926 | 112 | 0.757014 |
de4a9fc7536511c8ab43e1880f25a62aaf54ff2c | 4,933 | package com.yooyor.photo.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.support.design.widget.Navigation... | 34.985816 | 106 | 0.676465 |
99b25724348fb5b96b6cfce09d0dbba601a517e5 | 6,703 | /*
* Copyright 2021 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 applica... | 40.624242 | 100 | 0.649411 |
4f5362b722df076b712c859eac176d64d3a7b6c2 | 1,966 | /*
* Copyright (c) 2017, Robert Bosch (Suzhou) All Rights Reserved. This software is property of
* Robert Bosch (Suzhou). Unauthorized duplication and disclosure to third parties is prohibited.
*/
package com.iboitech.util;
import org.apache.commons.lang.StringUtils;
import com.openthinks.plc.core.ApplicationConfi... | 28.911765 | 97 | 0.72177 |
5eb2138a27a30ec08fdabff66357bbab3c39a911 | 1,564 | package com.kky;
/**
* @author 柯凯元
* @create 2021/6/3 2:17
*/
/*
* throws:声明异常
* 在异常情况出现的时候,可以使用try...catch...finally的方式对异常进行处理,除此之外,可以将异常向外跑出,由外部的进行处理
* 1、在方法调用过程中,可以存在N多个方法之间的调用,此时假如每个方法中都包含了异常情况
* 那么就需要在每个方法中都进行try。。catch,另外一种比较简单的方式,就是在方法的最外层调用处理一次即可
* 使用throws的方法,对所有执行过程中的所有方法出现的异常进行统一集中处理
... | 24.061538 | 73 | 0.570972 |
82d63df9f27473857c4b7757a11fc2669bbe0220 | 2,769 | package Journey.input;
import Journey.output.ControlsOutput;
import com.studiohartman.jamepad.ControllerAxis;
import com.studiohartman.jamepad.ControllerButton;
import com.studiohartman.jamepad.ControllerIndex;
import com.studiohartman.jamepad.ControllerManager;
import com.studiohartman.jamepad.ControllerUnpluggedExce... | 35.5 | 134 | 0.641748 |
ab692a30bac7be2df926201d7ffa6c46a36c247f | 2,673 | /*
* Copyright ScenPro, Inc and SemanticBits, LLC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/labviewer/LICENSE.txt for details.
*/
package gov.nih.nci.lv.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Cd ... | 23.654867 | 65 | 0.619155 |
7ff6254c39f18a424c55badf4af88c6d20b1c560 | 3,826 | /*
* 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 pkg2048;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics2D;
import... | 24.369427 | 100 | 0.535285 |
096689e112a4fd59eebd2e2f51ffadefa6295859 | 5,446 | package com.vendomatica.vendroid.Fragment;
/*
This is the pending task list of the main screen.
when the user click the pending task, the event appears in this files.
*/
import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import a... | 36.797297 | 110 | 0.704187 |
b531c377199c4d2658c9b36a92558efe18e0187f | 4,437 | package com.anbaoxing.e_marketing.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import ... | 33.11194 | 109 | 0.64165 |
7a0fcccc6b8879628ccd4e612993d75770fad41a | 653 | package io.varhttp.filterorder;
import io.varhttp.Controller;
import io.varhttp.ControllerClass;
import io.varhttp.HttpMethod;
import io.varhttp.controllers.withfilters.FilterCatcher;
import javax.inject.Inject;
@ClassFilter1
@ClassFilter2
@OverridingFilter
@ControllerClass
public class FilterControllerClass {
priv... | 21.766667 | 66 | 0.807044 |
8eea2b9ed333f56ccf6a21dd0a585fa5f68253f1 | 3,667 | package com.sleekbit.ovuview.service.v1;
import android.os.Parcel;
import android.os.Parcelable;
import com.sleekbit.ovuview.service.Constants;
import com.sleekbit.ovuview.service.OvuUtil;
import java.util.UUID;
/**
* Blood pressure value - composed value in a single object.
*
* Systolic pressure is present iff ... | 32.166667 | 111 | 0.611944 |
cc255648ac68093310a9dda647c49045714164b5 | 33,386 | /**
*
* Copyright (c) Microsoft and contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 54.731148 | 348 | 0.641646 |
75e42c2fca966be36957396927b4915ed8cea426 | 1,766 | /*
* The MIT License
*
* Copyright 2017 Leif Lindbäck <leifl@kth.se>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | 36.791667 | 82 | 0.711212 |
7a30c4e6adc9c400d726378577a589f3d53df90a | 4,591 | package joeltio.thoughts;
import org.junit.Test;
import java.util.Date;
import java.util.HashSet;
import static org.junit.Assert.*;
public class ThoughtTest {
@Test
public void thoughtsKeepsAttributes() {
String thoughtName = "name";
String thoughtBody = "body";
HashSet<String> tags ... | 30.812081 | 88 | 0.614027 |
1ba1f888f0526354bcebad401fe3a26693601651 | 2,171 | package com.ankhrom.base.common.statics;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import java.util.List;
public final class FragmentHelper {
public static void removePage(Context context... | 27.481013 | 96 | 0.715799 |
fb1f458717121661e9e1f001108c2184cd4b06a2 | 2,006 | package com.github.eugenemsv.amqp.rabbit;
import com.github.eugenemsv.amqp.rabbit.properties.AmqpProperties;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springf... | 46.651163 | 134 | 0.821037 |
bb5a3edcaaab9743cafda63dd9868561af90497d | 6,857 | package com.dev.doc.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.util.CollectionUtils;
import com.dev.base.utils.MapUtils;
/**
*
* <p>Title: 有向图的拓扑排序(深度优先搜索)</p>
* <p>Descr... | 21.295031 | 90 | 0.63293 |
018abb1a231ec6cc07302db8893ebb1593108182 | 1,373 | package com.iab.gdpr;
import java.util.ArrayList;
import java.util.List;
public class PubRestrictionEntry {
private int purposeId;
private RestrictionType type;
private List<RangeEntry> entries;
public PubRestrictionEntry(int purposeId, RestrictionType type) {
this.purposeId = purposeId;
this.type = type;
... | 19.898551 | 92 | 0.717407 |
d078ec24a36ad4ca23484d3ec41917eb513b1146 | 34,002 | package org.apache.cordova.facebook;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import com.facebook.AccessToken;
import com.facebook.CallbackManager;
import com.facebook.CallbackManager.Factory;
import com.facebook.FacebookA... | 46.324251 | 319 | 0.606435 |
926eba22b64399f40cd687cf6b7618a319a7a2e1 | 2,567 | package com.nucleus.cache;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.infinispan.Cache;
import org.infinispan.conte... | 25.929293 | 105 | 0.742501 |
a5f20e78c0a33b9dba1da98df4461127eeec62ee | 76 | package wb.model;
public interface Cursor {
void update(Board board);
}
| 9.5 | 26 | 0.723684 |
c57729844c4f10d55cac02aaab1811a5805b1509 | 98 | package strategy;
public interface Strategy {
public double getPrice(double stardarPrice);
}
| 16.333333 | 48 | 0.77551 |
60f5583a1e162623ea36ef85367d83550b4fd02a | 327 | package poussecafe.shop.domain.mongo;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import poussecafe.shop.domain.CustomerId;
public interface MessageMongoRepository extends MongoRepository<MessageData, String> {
List<MessageData> findByCustomerId(CustomerId customerI... | 27.25 | 86 | 0.834862 |
7b2f65c0a14222e13b3fcf6380a219cf9c4176d7 | 384 | package edu.mit.voicesurvey.androidapplication.model;
public class ConsentStep {
public String title = "";
public String description = "";
public String image = "";
public String additionalInfo = "";
public ConsentStep(String t, String d, String i, String aI) {
title = t;
descripti... | 24 | 65 | 0.619792 |
b143482ac07434a5f459d4b4f5c34c66015dd979 | 3,490 | package com.justransform.application;
import java.util.ArrayList;
import java.util.List;
import com.justransform.model.TransactionVo;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dependency.HtmlImport;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.htm... | 35.612245 | 90 | 0.726934 |
e7aaa933d4ef8f0f47e1e9a220bc39de33e1c9d3 | 4,281 | /*
* Copyright 2017 Wultra 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 agreed to in... | 35.97479 | 124 | 0.698435 |
b96b64fad760daa7d62e8f9d0096acefebe6e92d | 863 | package com.ccs.lockscreen.utils;
import android.app.admin.DeviceAdminReceiver;
import android.content.Context;
import android.content.Intent;
import com.ccs.lockscreen.myclocker.SaveData;
public class DeviceAdmin extends DeviceAdminReceiver{
@Override
public void onEnabled(Context context,Intent i... | 26.151515 | 75 | 0.714948 |
efdc6af4af8156b103d81a36a8402083cfa7f749 | 1,191 | package com.yqf.rabbitmq.demo.simple;
import com.rabbitmq.client.Channel;
import com.yqf.rabbitmq.demo.manager.ConnectionManager;
import java.nio.charset.StandardCharsets;
/**
* @author huawei
* @desc RabbitMQ 简单队列实战
* @email huawei_code@163.com
* @date 2021/1/29
*/
public class SimpleSend {
public static ... | 27.697674 | 94 | 0.575147 |
fd9b0e404c2eabcb71fe69bdbe7d9488f9246203 | 661 | package com.wanhive.iot.bean;
public class Challenge {
private String challenge;
private String context;
private String secret;
private String captcha;
public String getChallenge() {
return challenge;
}
public void setChallenge(String challenge) {
this.challenge = challenge;
}
public String getContext(... | 16.121951 | 45 | 0.718608 |
69c7e5ba7cfefdc9c2df49f289dbdc78d7aa8e54 | 1,132 | package ExerciciosExtras.exercicios.vendas;
import java.util.Objects;
public class Produto {
private String nome;
private double valor;
public Produto() {
}
public Produto(String nome, int valor) {
this.nome = nome;
setValor(valor);
}
public String getNome() {
r... | 18.557377 | 50 | 0.518551 |
4fdad72dfc63f1e94140064752e25821ba2b414b | 2,268 | /*
* (C) Copyright IBM Corp. 2022
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.persistence.blob.app;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.ibm.fhir.config.FHIRRequestContext;
import com.ibm.fhir.exception.FHIRException;
import com.ibm.fhir.persistence.blo... | 33.850746 | 97 | 0.634039 |
42927573a4e6a15e84c5aef25b32dc63668b61a1 | 4,146 | package com.nepxion.discovery.platform.server.entity.dto;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
*
* @author Ning Zhang
* @version 1.0
*/
import org.apache.commons.lang3.builder.EqualsBuilder;
import o... | 24.104651 | 88 | 0.679209 |
fe349e1d9337ed4dcb961a1d1b801da29339d43e | 549 | package Admin;
public class Company {
String name, reference, image, website;
int id;
public Company(String name, String reference, int id) {
this.name = name;
this.reference = reference;
this.id = id;
}
public String getName() {
return name;
}
public Stri... | 16.636364 | 59 | 0.559199 |
dfb069b6494952332f0def5a4afccf8e5a0570bb | 3,712 | package de.aoc.days.day1;
import de.aoc.days.AbstractDay;
import de.aoc.utils.ArrayUtils;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;
/**
* # JMH version: 1.26
* # VM version: JDK 15, OpenJDK 64-Bit Server VM, 15+36
* <p>
* Bench... | 32 | 104 | 0.534752 |
d1794e105a0e2392c5360a0244ade2d05733d768 | 2,426 | package com.yf.filterchain.support;
import com.google.common.collect.Lists;
import com.yf.filterchain.base.BaseFilter;
import com.yf.filterchain.base.BaseFilterBuild;
import com.yf.filterchain.base.BaseFilterChain;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
/**
* All rights Reserved... | 28.541176 | 102 | 0.624897 |
cf4ca605bc5cf4a4637f7470ec1bd5743f425a1b | 2,405 | /*
* Copyright (c) 2019 Spotify AB.
*
* 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,... | 34.855072 | 98 | 0.730146 |
0738ad7b423dbc16b38cad83ab1d43fa4d671013 | 3,820 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | 34.107143 | 123 | 0.693979 |
001a0c3376f606cdd29bebba010fbfa969f07681 | 7,846 | package com.spaceman.tport.commands.tport;
import com.spaceman.tport.fancyMessage.colorTheme.ColorTheme;
import com.spaceman.tport.commandHander.ArgumentType;
import com.spaceman.tport.commandHander.EmptyCommand;
import com.spaceman.tport.commandHander.SubCommand;
import com.spaceman.tport.fancyMessage.Message;
import... | 50.619355 | 159 | 0.633699 |
3dcf85f78e3575cf378af058b3096dcc8b2508c1 | 1,560 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.data.cosmos.internal;
import com.azure.data.cosmos.CosmosClientException;
/**
* Models session token.
*
* We make assumption that instances of this interface are immutable (read only after they are co... | 35.454545 | 133 | 0.717308 |
94c6713672ff78b295a874fd389adf8d9607684e | 2,921 | package entity.hospitalDatabase;
import entity.footballBettingDatabase.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "patient")
public... | 22.29771 | 61 | 0.637111 |
5a177346bcda5c4f02c9e6aa2a2111cf221c19bb | 2,416 | package com.example.hdd.loginapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import cn.bmob.v3.socketio.I;
public class diandaActiv... | 35.529412 | 95 | 0.635762 |
08008a412fe705333da9131b1d18505235314cbf | 1,078 | package com.github.thbrown.softballsim.util;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class CollectionUtils {
// https://stackoverflow.com/questions/80476/how-can-i-concatenate-two-arrays-in-java
public static <T> ... | 27.641026 | 91 | 0.663265 |
1425d55cd91c3acd30580db773df9da0c55cf51a | 1,267 | package leetcode.lc241_different_ways_to_add_parentheses;
import org.junit.jupiter.api.Test;
import java.util.Collections;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* https://leetcode.com/problems/different-ways-to-add-parentheses/ #medium
*/
public final class LC241D... | 31.675 | 94 | 0.672455 |
7cde7b865e0c952e3e1602ec62c6dceb2598e8d5 | 109 | package adapterPattern;
public interface Client {
public String connectToFileSystem(String CustomerID);
}
| 15.571429 | 54 | 0.816514 |
b9230e4fd88617f25acba6e8da1670c86621c4e7 | 3,152 | import java.io.*;
import java.util.*;
import java.util.Map.Entry;
public class Meetings2 {
public static class Cow {
int position;
int weight;
boolean direction;
Cow(int weight, int position, boolean direction) {
this.position = position;
this.weight = weight;
this.direction = direc... | 25.419355 | 131 | 0.562817 |
f6fdae554e10b188d3250d7a22e6665609a7f529 | 464 | package com.helloingob.accsum.data.to;
public class PostingTO {
private Integer pk;
private String text;
public PostingTO() {}
public PostingTO(String text) {
this.text = text;
}
public Integer getPk() {
return pk;
}
public void setPk(Integer pk) {
this.pk =... | 14.967742 | 38 | 0.56681 |
5f43aec745dd7e7cdc9d498caefd6d3d3a7f2281 | 60,436 | /**
* personium.io
* Copyright 2014 FUJITSU LIMITED
*
* 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 ... | 37.819775 | 121 | 0.590062 |
81faefe7f6220d137bdf246e3e8315490c4791e2 | 349 | package com.yusys.biapp.input.index.util.vo;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target( { FIELD })
@Retention(RUNTIME)
public @interface TableColumn {
String ... | 21.8125 | 59 | 0.782235 |
fca680ab2d15194b182d6d54dacd8dbd58696389 | 17,753 | package com.schiztech.rovers.app.utils;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Re... | 32.336976 | 134 | 0.637132 |
0d31cf1df4c33cfe17e3227c18d9bf4a4c0ef518 | 408 | package ren.consoles.spring.el;
public class Item {
private String name;
private int total;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
@Override
publ... | 16.32 | 57 | 0.64951 |
c4903ce624e708458f6b390d821bda1967187a46 | 4,500 | package edu.vt.vbi.patric.circos;
import edu.vt.vbi.patric.beans.Genome;
import edu.vt.vbi.patric.beans.GenomeFeature;
import edu.vt.vbi.patric.beans.GenomeSequence;
import edu.vt.vbi.patric.common.DataApiHandler;
import edu.vt.vbi.patric.common.SolrCore;
import org.apache.solr.client.solrj.SolrQuery;
import org.apach... | 34.615385 | 136 | 0.730222 |
a9e1e76f6cdf0e47eed21fec0647fbc6c46935e7 | 1,124 | package Library;
import java.awt.Font;
import java.awt.FontFormatException;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
//A statically used class for loading image resources
//Ensures that images aren't loaded into memory more than necessary
p... | 29.578947 | 113 | 0.712633 |
52a89cc97eb2399fc1610e342a03d3fccf2b8ef3 | 2,549 | /*
* Copyright 2019-2020 Zheng Jie
*
* 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... | 24.990196 | 105 | 0.698313 |
d232fb68ef3c4fb909cf3e817dd9dea2c2d76d71 | 221 | package io.odpf.firehose.error;
public enum ErrorType {
DESERIALIZATION_ERROR,
INVALID_MESSAGE_ERROR,
UNKNOWN_FIELDS_ERROR,
SINK_4XX_ERROR,
SINK_5XX_ERROR,
SINK_UNKNOWN_ERROR,
DEFAULT_ERROR
}
| 18.416667 | 31 | 0.751131 |
69c840c13010fbeedd2f23e97ddbadd0b67e36d3 | 524 | package com.teambullrush.repository;
import com.teambullrush.domain.PersistentToken;
import com.teambullrush.domain.User;
import java.time.LocalDate;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Spring Data JPA repository for the PersistentToken entity.
*/
public inter... | 26.2 | 91 | 0.812977 |
4a7737d418b0e42d120b97321e922315e1f149e3 | 2,867 | /*
* Copyright (c) 2008 Kasper Nielsen.
*
* 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... | 29.255102 | 114 | 0.66969 |
7c5f3829a56d0e8ffafbee1368376356c4f53356 | 729 | package be.dekleinekobini.tornapi.models.user;
import be.dekleinekobini.tornapi.models.user.partial.BaseItem;
import java.util.Objects;
public class BazaarItem extends BaseItem {
private long price;
public long getPrice() {
return price;
}
public void setPrice(long price) {
this.pr... | 21.441176 | 66 | 0.621399 |
f0abb511e946e535568e9a6972cbf7599c6def1a | 926 | package com.otavio.cursojava.aula19.labs;
import java.util.Scanner;
public class Exer27 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] vetorA = new int[10];
String[] vetorB = new String[vetorA.length];
for (int i=0;i<vetorA.length;i++) {
System.out.prin... | 18.897959 | 60 | 0.561555 |
d1196840e81e16d6a5fe48014b4cc548e08cbf68 | 2,354 | /*L
* Copyright Duke Comprehensive Cancer Center
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catrip/LICENSE.txt for details.
*/
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packim... | 23.306931 | 82 | 0.665251 |
b8dcb13c5d923b84ca54ff20a689742b41c8265a | 1,016 | package jploot.config.loader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import jploot.api.IFileLoader;
/**
* <p>Load a file from a path ; abstraction used for:
* <ul>
* <li>ease testing</li>
* <li>allow resourc... | 23.090909 | 89 | 0.677165 |
48ec05182e926ea47238052c867f10d7000616bb | 4,333 | /*
* Copyright 2013 A.Ishikawa
*
* 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.954839 | 112 | 0.711285 |
e484b308e14caf4bcc1189c6a854f5686df827d3 | 1,374 | package com.nanyin.service;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;
@Aspect
@Co... | 26.423077 | 74 | 0.737991 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.