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 |
|---|---|---|---|---|---|
921c9c0f0e7e9f243382f5bb29d0ea563d41a012 | 192 | //
// (C) Copyright 2015 Martin E. Nordberg III
// Apache 2.0 License
//
/**
* Package containing lower level utilities for file I/O.
*/
package org.barlom.persistence.ioutilities.fileio;
| 17.454545 | 57 | 0.708333 |
c72269db08a15aa256eb4eeef3abdff36debd151 | 915 | package com.feign.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* 通过添加fallback即可实现熔断器功能
*
* 微服务架构中服务被拆分成多... | 31.551724 | 84 | 0.795628 |
ba84a09eed3e05dcfa0e6994072d885800eb9625 | 3,000 | package com.lordofthejars.nosqlunit.mongodb;
import com.mongodb.MongoClient;
import com.mongodb.ServerAddress;
import com.mongodb.WriteConcern;
import java.util.ArrayList;
import java.util.List;
public class ReplicationMongoDbConfigurationBuilder {
private static final String DEFAULT_HOST = "localhost";
pri... | 29.126214 | 92 | 0.713333 |
19365917e55a4a524ae867366b79f7b1740c8d76 | 3,910 | package com.owsega.hackernews.data;
import com.google.gson.GsonBuilder;
import com.owsega.hackernews.data.model.Comment;
import com.owsega.hackernews.data.model.Post;
import java.util.ArrayList;
import java.util.List;
import retrofit.RestAdapter;
import retrofit.converter.GsonConverter;
import rx.Observable;
import ... | 37.238095 | 105 | 0.545013 |
b2394b5ee7fd56d94616e510db6d664ba56e27b2 | 480 | package com.google.sample.cast.refplayer.di.component;
import com.google.sample.cast.refplayer.di.module.ChannelListModule;
import com.codesyntax.jarrion.di.scope.FragmentScope;
import com.google.sample.cast.refplayer.ui.channellist.view.ChannelListFragment;
import dagger.Component;
@FragmentScope
@Component(modules... | 34.285714 | 88 | 0.8375 |
13c8a3ecad6059e7c148e48164d4fdbc3469b644 | 320 | package jorisdgffdemos.somebigsystem.cqrskit;
public class Acknowledgement {
public final String refferingEvent;
public final String message;
public Acknowledgement(String refferingEvent, String message){
this.refferingEvent = refferingEvent;
this.message = message;
}
}
| 22.857143 | 67 | 0.70625 |
0321d8edd3d3df96268f8183df1cf581fee0e49c | 5,507 | package de.taimos.gpsd4java.types.subframes;
/*
* #%L
* GPSd4Java
* %%
* Copyright (C) 2011 - 2012 Taimos GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | 20.321033 | 75 | 0.613583 |
5c82afe3276ad74098a6a42385ac6ac7c8ca8f4c | 454 | /**
* ObjectPropertyPresenter.java
*
* Created on 2. 11. 2021, 13:59:35 by burgetr
*/
package io.github.radkovo.owldocgen.pres;
import io.github.radkovo.owldocgen.DocBuilder;
import io.github.radkovo.owldocgen.model.ResourceObject;
/**
*
* @author burgetr
*/
public class ObjectPropertyPresenter extends Proper... | 18.916667 | 74 | 0.729075 |
530f776c95e99b4ba7c86a8c716f78f9b83db9b4 | 3,261 | /*
* Copyright 2013 Dominic Masters and Jordan Atkins
*
* 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... | 34.691489 | 89 | 0.693959 |
80b8d0a6981bc79da39c390e2e37ed1b1cbe7bb4 | 311 | package com.muggle.use.spring;
import java.util.Properties;
public class MyDataSourceProperties {
private Properties properties;
public Properties getProperties() {
return properties;
}
public void setProperties(Properties properties) {
this.properties = properties;
}
}
| 19.4375 | 54 | 0.710611 |
0b95fc7b8680fa4ccec309bc57edf6b13306127f | 11,643 | /**
* Copyright 2016 SPeCS.
*
* 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 writi... | 38.425743 | 118 | 0.631624 |
e6ce4d4170185c025587e251fa1932bd150d542d | 536 | package dev.sanda.javagraphqlspqrdemo.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.HashSet;
import java.util.Set;
@Data
@Entity... | 22.333333 | 54 | 0.761194 |
9f60714d49a5f9584c1e736b174dfa386330ab42 | 8,509 | /*
* ------------------------------------------------------------------
* This source code, its documentation and all appendant files
* are protected by copyright law. All rights reserved.
*
* Copyright, 2003 - 2010
* University of Konstanz, Germany
* Chair for Bioinformatics and Information Mining (Prof. M. Be... | 31.398524 | 146 | 0.598425 |
2eca47c6f7e97159af5b08eba2c0c228862c99ef | 231 | package com.aya.financegateway;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class FinanceGatewayApplicationTests {
@Test
void contextLoads() {
}
}
| 16.5 | 60 | 0.766234 |
a80d44ab1c0e8cac680174bb7f124e7e53e06276 | 822 | package de.oio.ui.views;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.server.ExternalResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
imp... | 30.444444 | 121 | 0.774939 |
475e861c89bcb5dcd10e1a3ba1c83a5bd0d2b738 | 4,203 | package pdbs3.csp8.cspapp;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Build;
import android.os.Bundle;
import android.p... | 38.916667 | 296 | 0.62955 |
8cb7a0b3269e4661098176e939db7ce062f3dcf4 | 1,934 | package ichttt.mods.mcpaint.networking;
import ichttt.mods.mcpaint.common.MCPaintUtil;
import ichttt.mods.mcpaint.common.block.TileEntityCanvas;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.network.PacketBuffer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Direct... | 34.535714 | 105 | 0.607032 |
3694be43a12a90c4d80a4132a516594e04cd386c | 9,305 | package com.sparo.leetcode.tree;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* description: 662. 二叉树最大宽度
* 给定一个二叉树,编写一个函数来获取这个树的最大宽度。树的宽度是所有层中的最大宽度。这个二叉树与满二叉树(full binary tree)结构相同,但一些节点为空。
*
* 每一层的宽度被定义为两个端点(该层最左和最右的非空节点,两端点间的null节点也计入长度)之间的长度。... | 32.649123 | 283 | 0.526814 |
c658cf3378e6638183605554d836c40661c603b0 | 864 | package com.ssrs.core.config;
import lombok.Data;
import org.springframework.stereotype.Component;
/**
* 支付宝配置类
* @author zhengjie.me
* @date 2018/08/24 13:50:06
*/
@Data
@Component
public class Alipay {
/**
* 应用ID,APPID,收款账号既是APPID对应支付宝账号
*/
private String appID;
/**
* 商户私钥,您的PKCS8格式... | 13.090909 | 48 | 0.540509 |
319e57194abb20d4bd0ba4fdc88158bf943c0688 | 1,333 | package com.hgys.iptv.model;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
/**
* QSysLog is a Querydsl query type for SysLog
*/
@Generated("com... | 26.66 | 106 | 0.723931 |
e5925710a7fb38f3e8c22eb3f52566ff254aca51 | 163 | package com.sunshine.cloudhttp.server;
/**
* Server
*
* @author wangjn
* @date 2019/3/31
*/
public interface Server {
void start();
void stop();
}
| 10.866667 | 38 | 0.613497 |
973b0a6b3a3cd9ce85acd3aabb039bd9de68d4db | 1,785 | /**
* Copyright 2011 Booz Allen Hamilton.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Booz Allen Hamilton
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with ... | 30.775862 | 78 | 0.727171 |
d30c1b4e732905b7e4f0ea0e65c11d937b795351 | 913 | /*
* 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.airhacks.items.entity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import j... | 20.288889 | 83 | 0.662651 |
143ef0c5e0f2781da9f3613bf4a1aeca665d963c | 1,409 | package com.midnightnoon.learn2code.springlearn2code;
import com.biblia.BibleVerses;
import com.midnightnoon.learn2code.springlearn2code.services.HelloWorldService;
import com.midnightnoon.learn2code.springlearn2code.services.RestApiService;
import com.midnightnoon.learn2code.springlearn2code.services.impl.PrintServic... | 36.128205 | 94 | 0.798439 |
e80adc7d444d54c8bd2ef45bb9a566bd9f8b13e7 | 4,775 | /**
* 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... | 33.865248 | 78 | 0.73445 |
552afc95de4f41b7ed4943a10aac992d7bb080e4 | 7,097 | package iurii.job.interview.cracking;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/**
* Stacks and Queues
*/
public class CrackingCodingInterview3 {
/**
* 3.1 implement 3 stacks using one array.
* This can be done in two ways.
* 1) just divide array into 3 equal par... | 27.191571 | 133 | 0.502889 |
e1bd3f3446917b30c3c31995b7f8acf68daa37a8 | 210 | package com.ingic.template.retrofit;
public class WebResponse<T> {
private T results;
public T getResults() {
return results;
}
public void setResults(T results) {
this.results = results;
}
}
| 10.5 | 36 | 0.690476 |
1b3834f25637a066984f766218c0521a7e1b15a3 | 889 | package cat.indiketa.degiro.model;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;
@Data
@Builder
public class DCashFunds {
private List<DCashFund> cashFunds;
public DCashFunds(){
cashFunds ... | 19.326087 | 49 | 0.598425 |
b93a26a8879c9aee86c738a9878af87475890624 | 11,314 | package com.conveyal.r5.speed_test.transit;
import com.conveyal.gtfs.model.Stop;
import com.conveyal.r5.profile.ProfileRequest;
import com.conveyal.r5.profile.StreetPath;
import com.conveyal.r5.profile.otp2.api.path.AccessPathLeg;
import com.conveyal.r5.profile.otp2.api.path.EgressPathLeg;
import com.conveyal.r5.profi... | 45.075697 | 181 | 0.651936 |
6bf6244684d26bc81ecd85957a5629500b505e1a | 3,391 | /*
* Copyright 2015-2019 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2... | 39.430233 | 117 | 0.747272 |
b9909239df2438cc2c26cf38a78e8a935eaf8955 | 1,187 | /*
* Copyright 2016 Jean-Bernard van Zuylen
*
* 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... | 26.377778 | 75 | 0.706824 |
0240158b25f09ce22e04561c3cce22cd908336b0 | 4,632 | package seedu.address.model;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.VALID_ADDRESS_BOB;
import static seedu.address.logi... | 35.906977 | 118 | 0.733377 |
bc0782db937d9ebf069d0a700f6da2bcbb795174 | 4,037 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 LeanIX GmbH
*
* 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 to
* use, copy,... | 24.466667 | 82 | 0.726034 |
76e2d8f80cc60e69fd24f6b22d903028fcdcba56 | 1,218 | package com.putao.ptx.qrcode.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.text.util.Linkify;
import android.widget.TextView;
import com.putao.ptx.qrcode.R;
import com.putao.ptx.qrcode.base.BaseActivity;... | 31.230769 | 71 | 0.740558 |
cf5b875211c14c78f20ee09c48d7df0f23d0e3da | 4,836 | package com.example;
import javaemul.internal.annotations.DoNotAutobox;
import javaemul.internal.annotations.HasNoSideEffects;
import javax.annotation.Generated;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsNonNull;
import jsin... | 32.24 | 137 | 0.747725 |
f5c2dfc994b072eeeb863567b33413ed4c9cfae7 | 13,044 | package com.espressif.iot.model.device.cache;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.apache.log4j.Logger;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastMa... | 33.792746 | 120 | 0.637381 |
0a4ba0eb95255409a93d9504f583139857f7e857 | 1,867 | package ai.djl.quarkus.runtime;
import java.io.IOException;
import ai.djl.Application;
import ai.djl.MalformedModelException;
import ai.djl.inference.Predictor;
import ai.djl.repository.zoo.Criteria;
import ai.djl.repository.zoo.ModelNotFoundException;
import ai.djl.repository.zoo.ModelZoo;
import ai.djl.repository.z... | 40.586957 | 113 | 0.746652 |
d12daafc88ac2beaab36f9431f7de56151735e63 | 1,536 | package me.matteomerola.codicefiscale;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
public class CityParser {
private static String DB_NAME = "dbcf.csv";
... | 26.033898 | 92 | 0.70638 |
94d8c29fbd73d64a57a3ee70980412ccb06c2a7e | 187 | package com.sushanqiang.statelayout.bean;
/**
* desc : 加载数据对象
*/
public class LoadingItem extends BaseItem {
public LoadingItem(String tip) {
setTip(tip);
}
}
| 13.357143 | 43 | 0.631016 |
7c3a37130b8039dcca79be7b80fbaf00b03e0eaf | 3,057 | /**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 35.964706 | 118 | 0.689892 |
bd0230a3e78cf53079831ed0683303985596368a | 22,313 | package org.telegram.android.fragments;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.ContactsContr... | 49.917226 | 200 | 0.560077 |
56e2832c43e1ce7a638aebf7fe2beffd013899f2 | 2,284 | package br.ufc.mdcc.mpos.persistence;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.util.Log;
import br.ufc.mdcc.mpos.R;
import br.ufscar.mcc.model.MethodProfile;
public class MethodDao extends Dao {
private ... | 27.853659 | 95 | 0.731611 |
cecdc3c9207314fee95ccfd20fc0e31ee6af7e39 | 1,315 | package com.groupdocs.conversion.examples.quick_start;
import com.groupdocs.conversion.licensing.License;
import com.groupdocs.conversion.examples.Constants;
import java.io.File;
/**
* This example demonstrates how to set license from file.
*
*
* The SetLicense method attempts to set a license from several locations ... | 38.676471 | 129 | 0.672243 |
14a1adfc8eab299ef11253fdeefc02598f4b10a2 | 8,973 | package net.es.nsi.dds.server;
import com.google.common.base.Optional;
import com.google.common.base.Strings;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import javax.net.ssl.SSLContext;
import net.es.... | 30.835052 | 140 | 0.619748 |
8b9460692aba8b0dca3d23adfdb1dd8b6c5c2e3a | 455 | /**
*
*/
package com.bluelightning.tools.transpiler.nodes;
import org.antlr.v4.runtime.ParserRuleContext;
/**
* @author NOOK
*
*/
public class TranslationOperatorNode extends TranslationNode {
String operator;
public TranslationOperatorNode(ParserRuleContext ctx, TranslationNode parent, String operator) {
... | 17.5 | 97 | 0.734066 |
0ba06a5646e335bec88345eeff5c3c80824224c9 | 2,789 | /*
* Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.lang.invoke;
import static java.lang.invoke.LambdaForm.BasicType.*;
import static java.la... | 27.343137 | 111 | 0.645034 |
67e9c462c50ff0e3c3e8b22d50b05a763fe806eb | 22,739 | package top.yokey.shopaisdk.bean;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
@SuppressWarnings("ALL")
public class MemberBean implements Serializable {
@SerializedName("user_name")
private String userName = "";
@SerializedName("avatar")
private String avatar = ""... | 27.495768 | 72 | 0.599103 |
1e8546ba3d4f738b73aa801263b006299c2af3bb | 2,680 | //quick sort program in java.
class Sort
{
void merge(int arr[], int left, int middle, int right)
{
int low = middle - left + 1; //size of the left subarray
int high = right - middle; //size of the right subarray
int L[] = new int[low]; ... | 30.454545 | 147 | 0.387687 |
a16521bdc8a10f50ad36536bc7f176566aad9b13 | 29,321 | package me.songbx.service;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import me.songbx.impl.AnnotationReadImpl;
import me.songbx.model.MapSingleRecord;
import m... | 37.882429 | 185 | 0.71147 |
4913337f9986248e823bef4afba6deadc8328b19 | 1,788 | package io.github.pleuvoir.requestresponse;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.BuiltinExchangeType;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
im... | 31.928571 | 109 | 0.732662 |
3fc43355b82e96b108d725d47d4e8cdafeb910ec | 1,305 | package cg;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
public class Demo2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
//g... | 27.1875 | 116 | 0.586207 |
f8832d972489cac99dfdfd12d0dc36356a5ca9f3 | 2,515 | /*
* 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 ... | 43.362069 | 98 | 0.722068 |
9e594a42ebc71c30d09d7dc633910535746c900c | 18,229 | /**
* @company 杭州盘石
* @copyright Copyright (c) 2018 - 2019
*/
package io.renren.api.rockmobi.payment.ph.util;
import com.alibaba.fastjson.JSONObject;
import io.renren.common.utils.DateUtils;
import io.renren.common.utils.LoggerUtils;
import io.renren.common.utils.RandomUtil;
import org.apache.commons.codec.binary.... | 38.296218 | 203 | 0.588952 |
8d7ae94da65175c971c0b25be9c51a5b1dc8f1a5 | 1,374 | package com.mans.sbugram.models.requests;
import com.mans.sbugram.models.Post;
import org.json.JSONObject;
import java.util.Objects;
public class SendPostRequest extends Request {
public final String username;
public final String password;
public final Post post;
public SendPostRequest(String usern... | 25.924528 | 106 | 0.637555 |
f4b67b6111574b3d2a35b9abb7ce410a8fb193f3 | 2,932 | package net.fosterzor.openfire.crowd.auth;
import com.atlassian.crowd.model.user.User;
import com.atlassian.crowd.service.client.CrowdClient;
import org.jivesoftware.openfire.auth.InternalUnauthenticatedException;
import org.jivesoftware.openfire.auth.UnauthorizedException;
import org.junit.Before;
import org.junit.Te... | 34.494118 | 140 | 0.735334 |
b44cc68dace94504e00184e19e663ff65c4c76db | 5,753 | /*
* 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
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed ... | 41.388489 | 89 | 0.663828 |
2a860dee1c3943a1d4a7ecd7765bfc552c45b7f1 | 730 | package com.gradle.enterprise.api.client;
public class FailedRequestException extends ApiClientException {
private final int httpStatusCode;
private final String responseBody;
public FailedRequestException(String message, int httpStatusCode, String responseBody) {
this(message, httpStatusCode, r... | 27.037037 | 109 | 0.717808 |
f7a4a40b5fd592a16d2d69c8b81f19e2bf335a0c | 5,437 | package com.palyrobotics.frc2022.subsystems;
import com.palyrobotics.frc2022.config.subsystem.ClimberConfig;
import com.palyrobotics.frc2022.robot.Commands;
import com.palyrobotics.frc2022.robot.HardwareAdapter;
import com.palyrobotics.frc2022.robot.RobotState;
import com.palyrobotics.frc2022.util.config.Configs;
impo... | 38.560284 | 116 | 0.814052 |
0f5232246912cf6be66cb0cf6bdec2cdb84b55d5 | 1,440 | package edu.sumdu.tss.elephant.helper.utils;
import edu.sumdu.tss.elephant.helper.exception.BackupException;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.junit.ju... | 23.225806 | 89 | 0.630556 |
48ccc56f9f0fada1ffa26f4ee277c1e8fff371f3 | 19,222 | package com.example.c.testwebapi;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundl... | 34.822464 | 143 | 0.482624 |
ff35ecd94e2b5d5dc153768257214b4b360042bc | 440 | package repositories;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import org.springframework.stereotype.Repository;
@Repository
public interface MasterFileParser {
public String getKindNameOf(int kind) throws FileNotFoundException, IOException;
public int getKindCodeO... | 27.5 | 85 | 0.834091 |
fbdb9c0b35f5197cd75c7481c2e416a502a28af9 | 3,181 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 18.934524 | 810 | 0.799749 |
dbfb3bdfe6738364b097b45ee63ffaf9bba48223 | 240 | package com.doktorum.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Doctor {
@Id
private int id;
private String name;
private String surname;
private Date age;
}
| 13.333333 | 32 | 0.754167 |
00992f69592cccc4e65a5cdfc411d83fdc6c4fd7 | 888 | package cn.fiona.pet.account.vo;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
/**
* uuid 视图对象
*
* Created by tom on 16/6/28.
*/
public class UuidVO implements Serializable{
... | 20.651163 | 56 | 0.641892 |
dfa15e29ccfbf48befc9769ff54046582a1d6181 | 687 | package com.kenshine.service;
import com.kenshine.domain.DocBean;
import org.springframework.data.domain.Page;
import java.util.Iterator;
import java.util.List;
/**
* @author :kenshine
* @date :Created in 2021/10/25 9:24
* @description:业务逻辑层
* @modified By:
* @version: $
*/
public interface IElasticService {
... | 19.083333 | 54 | 0.714702 |
b6ddf43403d7d4f72b9a5bb2442a24328ab9f0cf | 3,496 | /*******************************************************************************
* Copyright (C) 2015 Brocade Communications Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... | 34.96 | 83 | 0.641018 |
41cc0b37270a87c7817a0a078e0e9b67ee94350e | 21,582 | package io.swagger.codegen.languages;
import io.swagger.codegen.*;
import io.swagger.models.Info;
import io.swagger.models.Model;
import io.swagger.models.Operation;
import io.swagger.models.Swagger;
import io.swagger.models.parameters.Parameter;
import io.swagger.models.properties.*;
import org.slf4j.Logger;
import o... | 42.821429 | 161 | 0.590631 |
c99007895ee7d6691ebc26718281d75aa9dd550f | 20,004 | package console.common;
import console.exception.ConsoleMessageException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import net.sf.jsqlparser.JSQLParserException;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.Expression;
im... | 43.298701 | 99 | 0.562238 |
b0340c3242c74bc7e6abada8c5d861b0e6494ebc | 81 | open module listenablefuture {
// exports com.google.guava.listenablefuture;
} | 27 | 48 | 0.777778 |
6b6304527296c07d36067ae7cae4462d9f7fb9e2 | 6,928 | /**
* 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... | 28.987448 | 80 | 0.724452 |
7f545579d9532d197520892997e4568d67f62b6a | 548 | package xyz.flysium.photon.dao.entity;
/**
*
*
* @author zeno (Sven Augustus)
* @version 1.0
*/
public class Item {
private Long id;
private String title;
public Item() {
}
public Item(Long id, String title) {
this.id = id;
this.title = title;
}
public Long getId()... | 14.051282 | 40 | 0.536496 |
10cd4ec36e9aa189f20a066950104712c51732d0 | 690 | package br.com.safeguard.params;
import java.io.Serializable;
import br.com.safeguard.interfaces.BaseParam;
/**
*
* Classe pojo usada para servir de bind para validação de paramentros
*
* @author Gilmar Carlos
*
*/
public class Param implements Serializable{
private static final long serialVersionUID = 1L... | 17.692308 | 70 | 0.710145 |
a3762a94f428706dbccadf60435201cab727c941 | 983 | package com.github.athingx.athing.aliyun.config.thing.impl.domain;
import com.github.athingx.athing.aliyun.config.thing.Scope;
import com.google.gson.annotations.SerializedName;
/**
* 配置拉取
*/
public class Pull {
@SerializedName("id")
private final String token;
@SerializedName("version")
private f... | 21.369565 | 66 | 0.632757 |
2cc3e3658068b25446ae936f4fae6af5ff07ee33 | 3,576 | package org.atlasapi.output.annotation;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSet.Builder;
import com.metabroadcast.common.ids.NumberToShortStringCodec;
import com.metabroadcast.common.stream.MoreCollectors;
import org.a... | 36.865979 | 112 | 0.692673 |
ce0510e833f008eeeee191b5bae0713c7eb0adbf | 1,575 | package org.aries.launcher;
import org.aries.Assert;
import org.aries.launcher.JavaApplicationLauncher;
import org.aries.launcher.JavaProgram;
import org.aries.util.ObjectUtil;
import org.aries.util.test.AbstractMultiThreadedIT;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.r... | 24.230769 | 72 | 0.76127 |
826b3d97cb931c2afa3d7aa9c3e62984164b0427 | 623 | package fr.houseofcode.dap.server.gal;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//TODO gal by Djer |Audit Code| (re)-active PMD et Checkstyle. Commentaire Javadoc (de classe) manquant.
/**
*
* @author Alex
*/
@RestContr... | 27.086957 | 110 | 0.667737 |
e86e0f85eba9b0e309fdca30b78e2f464b85a78b | 64 | package com.example.libnavcompiler;
public class MyClass {
} | 16 | 36 | 0.765625 |
cb1b7729f7268851b768891791f9ec2a259f7ec9 | 553 | /*
* Copyright (c) 2020-2021 Pcap Project
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
package pcap.spi;
import java.nio.channels.SelectionKey;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
@RunWith(JU... | 25.136364 | 78 | 0.777577 |
eeed36128d8defae748e9186751fde563a34150e | 3,957 | package open.hui.ren.githubclientdemo.main.tabs.overview;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import com.google.android.agera.MutableRepository;
import com.google.android.agera.Result;
import java.util.ArrayList;
import javax.inject.Inject;
impo... | 31.91129 | 90 | 0.643164 |
d83c03b909b2202f2ce4244be423c76621161682 | 1,282 | package com.dandy.glengine;
import android.content.Context;
import com.dandy.helper.android.LogHelper;
import java.util.ArrayList;
import java.util.List;
public abstract class Group extends Actor {
private static final String TAG = "Group";
public Group(Context context) {
super(context);
}
... | 24.653846 | 85 | 0.536661 |
ab458b09de0d3bbdb70511a1504eb559958432a9 | 1,679 | package com.skytala.eCommerce.domain.product.relations.prodCatalog.command.invFacility;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.DelegatorFactory;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apache.ofbiz.entity.GenericValue;
import com.skytala.eCommerce.domain.produ... | 39.046512 | 114 | 0.848124 |
6191c8a110d5d8dc78ef37b4ed144ac58eacc094 | 2,618 | package com.packtpub.wflydevelopment.chapter5.controller;
import com.packtpub.wflydevelopment.chapter5.control.TicketService;
import com.packtpub.wflydevelopment.chapter5.entity.SeatPosition;
import com.packtpub.wflydevelopment.chapter5.entity.SeatType;
import javax.annotation.PostConstruct;
import javax.enter... | 30.44186 | 117 | 0.650879 |
3e1e497bcb30bec3335ee49019c8cd615e25d31c | 10,371 | /**
* Copyright (c) 2019, Sinlmao (888@1st.com).
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by app... | 31.910769 | 133 | 0.608717 |
12f5e5bd163535ac26f474e66b6722a11a6fb8c4 | 2,145 | package th.watsize.imageviewer;
import java.io.File;
import th.watsize.filebrowser.FileUtils;
import th.watsize.filebrowser.R;
import android.app.Activity;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;... | 27.5 | 74 | 0.731002 |
42a96c3c85fc0c4c01fecf7c2ddf8e16821b3bcd | 7,833 | /***************************************************************************
* Copyright 2020 Kieker Project (http://kieker-monitoring.net)
*
* 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 a... | 65.275 | 138 | 0.781182 |
bd1ead81bec16d30508dd7dbd5b8c7b07502cad2 | 3,543 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 33.742857 | 99 | 0.673441 |
af9a6a647569f616ff154426914a54cefa2aa4ba | 2,929 | /*
* Copyright (C) 2014 Carlos González.
* All rights reserved.
*
* The software in this package is published under the terms of the MIT
* license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on Jul 17, 2014 by Carlos González
*/
package com.github.chuckbucke... | 22.358779 | 88 | 0.692386 |
e992a1f1d9476261e3e607e8ba4eb2ea1370f96a | 1,886 | package com.web.produce.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicUpdate;
import com.app.base.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
/**
* 补卡处理
*/
@Entity(name = "ClassType")
@Table... | 20.06383 | 68 | 0.677625 |
fe5b21bca2c9f2a27f771bafae5d4cc8df4a940c | 5,113 | /**
* Original iOS version by Jens Alfke, ported to Android by Marty Schoch
* Copyright (c) 2012 Couchbase, Inc. All rights reserved.
*
* Modifications for this distribution by Cloudant, Inc., Copyright (c) 2013 Cloudant, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use th... | 45.247788 | 95 | 0.569724 |
2b304f9740a04c9e8e516a2f693dfbcd0f7cff3d | 2,877 | package io.lacuna.bifurcan;
import io.lacuna.bifurcan.durable.Bytes;
import io.lacuna.bifurcan.durable.codecs.Core;
import java.nio.ByteBuffer;
import java.nio.file.Path;
import java.util.function.Function;
import static io.lacuna.bifurcan.durable.codecs.Core.decodeCollection;
public interface IDurableCollection {
... | 26.88785 | 119 | 0.688564 |
0b4c7c66100f059bca1b4f109c9515237c57947e | 2,414 |
package org.springframework.beans.factory.config;
import java.util.LinkedHashSet;
import java.util.Set;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.TypeConverter;
import org.springframework.core.ResolvableType;
import org.springframework.lang.Nullable;
/**
* Simple factory for sha... | 28.069767 | 92 | 0.73488 |
e71e9b793cfa3a308339b4f9e22a3540bc09f3e3 | 2,104 | package com.lindronics.flirapp.activities;
import android.os.Bundle;
import android.view.View;
import android.widget.ToggleButton;
import com.lindronics.flirapp.R;
import com.lindronics.flirapp.camera.FrameDataHolder;
import com.lindronics.flirapp.camera.ImageWriter;
public class CameraActivity extends AbstractCamera... | 24.465116 | 88 | 0.646388 |
88475ca3dc163a18cdbb542e282971cb20e4003f | 1,558 | /*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.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 a... | 22.57971 | 75 | 0.66303 |
bb06713b17cdc7fb42907dacf6ad81d7623bc835 | 1,787 | // Copyright 2020 The KeepTry 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 applicable... | 34.365385 | 113 | 0.650811 |
165a5c47cbbbc9c3d498467091d15c5613abe33e | 3,121 | /*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2018, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version... | 32.175258 | 89 | 0.680551 |
22fc8a65ffe33e26f9a0d768cdf6cabcc7c33681 | 1,276 | package speedith.core.lang.cop;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.*;
import org.junit.Test;
import speedith.core.lang.cop.Arrow;
import speedith.core.lang.cop.Cardinality;
import speedith.core.lang.cop.Comparator;
public class ArrowTest {
private Arrow one = new Arrow("... | 20.253968 | 62 | 0.709248 |
63f9755c63d0c1a483c60d52b4c2c05af6eae832 | 671 | package fun.gengzi.codecopy.business.redis.controller.skiplistnew;
import org.junit.Test;
public class SkipListTest {
@Test
public void fun01(){
SkipList<Integer> integerSkipList = new SkipList<>();
// head <-------> tail
integerSkipList.put(1,1);
integerSkipList.put(2,2);... | 20.96875 | 66 | 0.627422 |
ac629ec0b10e5a52a9fcf14c523a86c63d32944e | 308 | package com.beibeiMajor.web.mapper.po;
import lombok.Data;
import java.io.Serializable;
/**
* @author lenovo
*/
@Data
public class DoubleAccountPo implements Serializable {
private static final long serialVersionUID = -63024680546901733L;
private Long matchId;
private String accountIds;
}
| 18.117647 | 69 | 0.756494 |
d659b57fd95a929c519a4603a204f91619f3c138 | 3,686 | /*
* $Id$
*
* Copyright (C) 2003-2013 JNode.org
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
*... | 30.97479 | 92 | 0.654639 |
65c9a7f8554e4171ce6ed0e59807ca9c39518c18 | 1,653 | package pl.oaza.warszawa.dor.rekolekcje.api.security.users;
import java.sql.Date;
import java.time.LocalDate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframew... | 37.568182 | 95 | 0.757411 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.