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 |
|---|---|---|---|---|---|
78d05b32f4c98276364866bb2c6bdb7440571324 | 3,106 | package edu.udel.cis.vsl.abc;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.io.File;
import org.junit.Test;
import edu.udel.cis.vsl.abc.ast.IF.AST;
import edu.udel.cis.vsl.abc.ast.entity.IF.Function;
import edu.udel.... | 31.693878 | 76 | 0.725048 |
c8f5354de166fe123d1c8fd86e70986788927008 | 494 | class Question{
private String text;
private String answer;
Question() { }
Question(String t, String a) {
this.text = t;
this.answer = a;
}
public void setText(String text) {
this.text = text;
}
public void setAnswer(String answer) {
this.answer = answ... | 17.642857 | 42 | 0.566802 |
de808bc143820ae60d0b0a4c35da95506044fa93 | 6,129 | package com.lnwazg.kit.shell;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.apache.commons.exec.PumpStreamHandler;
import org.apache.commons.lang3... | 26.764192 | 161 | 0.572361 |
26fabd1510ddaff15cd699fc825005e3e5d9edfd | 1,748 | package org.batfish.specifier.parboiled;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.auto.service.AutoService;
import org.batfish.specifier.RoutingPolicySpecifier;
import org.batfish.specifier.RoutingPolicySpecifierFactory;
import org.parboiled.errors.InvalidInputError;
import ... | 34.27451 | 98 | 0.75286 |
36f5abd9d7980049b06a8d024abb7876d546de70 | 615 | package com.source.hot.ioc.book.conditional;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ConditionBeans {
@Bean
@Conditional(LinuxCondition.class)
public Inte... | 18.636364 | 60 | 0.725203 |
5d402c7e5f40593edf5d008aff020d3c592878ed | 1,411 | package tamaized.dalquor.client.entity.nonliving;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
imp... | 36.179487 | 244 | 0.75691 |
19b4acb098e14bcf252b476f0420cc6d9a70dde1 | 1,961 | package io.virtualan.apifirst.config;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.ser.key.Jsr310NullKeySerializer;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import org.springframework.bean... | 36.314815 | 102 | 0.760836 |
5b921070bb9acdd3dd77520871fb6f5a769f45ac | 2,534 | package bsoelch.noret.lang.expression;
import bsoelch.noret.ProgramContext;
import bsoelch.noret.lang.*;
import java.util.ArrayList;
public class IfExpr implements Expression {
public final Expression cond;
public final Expression ifVal;
public final Expression elseVal;
final Type expect... | 32.487179 | 116 | 0.64483 |
13d83fffe06b5fc4f58088f4b10fd8a7863538ad | 3,075 | /*
* 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 ... | 38.924051 | 97 | 0.771382 |
261c78be7a6b0647db872c0fcd06be098fba2d74 | 3,127 | package it.camera.hackathon.datasource.sparql.query;
import it.camera.hackathon.datasource.sparql.IQuery;
import it.camera.hackathon.datasource.sparql.IQueryEngine;
import java.util.Iterator;
import java.util.NoSuchElementException;
// TODO change name?
public class IterableQueryResult<T> implements Iterable<T> {
... | 25.631148 | 104 | 0.720819 |
8487b74e80c706dd1802d39722c44ccf9a5b1ee2 | 5,629 | package com.tterrag.k9.commands;
import java.time.Duration;
import java.time.Instant;
import java.util.LinkedList;
import java.util.concurrent.TimeoutException;
import java.util.function.Function;
import com.google.common.base.Charsets;
import com.tterrag.k9.commands.api.Argument;
import com.tterrag.k9.commands.api.C... | 38.554795 | 178 | 0.593001 |
cec16f1fb099e711a63fd7732b77a2af63434922 | 3,875 | package com.store.system.controller;
import com.store.common.core.domain.StoreResult;
import com.store.system.domain.Category;
import com.store.system.domain.Product;
import com.store.system.domain.WebProduct;
import com.store.system.service.IProductService;
import java.util.ArrayList;
import java.util.List;
import or... | 32.838983 | 134 | 0.721806 |
6c4a113478c84499cb8f280f48a0172c5bee3202 | 241 | package com.fraktalio.courier.query;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
interface CourierRepository extends JpaRepository<CourierEntity, String> {
}
| 24.1 | 74 | 0.846473 |
a2cf2e493bef569c31149fd790f6c76fca148b6c | 150 | import scala.collection.immutable.List;
class B {
void Nothingness(){
A a = new A();
List<scala.runtime.Nothing$> strings = a.no();
}
}
| 16.666667 | 50 | 0.626667 |
ad0d37ef78123ccb5cee2968279d37ce259c5b89 | 301 | /**
* @Package: kr.smoh.todoapp
* @File: TestRequestDTO.java
* @Date: 2022/01/28 12:26 AM
* @Author: smoh
* @Desc: Test DTO for @RequestBody
* @History:
**/
package kr.smoh.todoapp.dto;
import lombok.Data;
@Data
public class TestRequestDTO {
private int id;
private String message;
}
| 15.842105 | 35 | 0.671096 |
60465d35ddbbd2c3a950563a8d807bce0a102e73 | 4,286 | /**
* Copyright © 2012-2016 <a href="https://github.com/tlkzzz/jeesite">JeeSite</a> All rights reserved.
*/
package com.tlkzzz.jeesite.modules.ps.entity;
import org.hibernate.validator.constraints.Length;
import com.tlkzzz.jeesite.common.persistence.DataEntity;
import javax.validation.constraints.NotNull;
/*... | 19.570776 | 106 | 0.694354 |
c5247d0bdff76e92d56c801e16b13e14051c6401 | 2,124 | /*
* 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 not ... | 49.395349 | 100 | 0.776365 |
ef0d6b3ea22c31977478663c7b195150905f0357 | 2,060 | package com.dianping.pigeon.util;
public class VersionUtils {
public static final String VERSION = "2.9.12-SNAPSHOT";
public static final String DP_THRIFT_VERSION = "2.8.0";
public static final String MT_THRIFT_VERSION = "mtthrift-v1.7.1";
public static final String MT_THRIFT_VERSION_BASE = "mtthrift... | 29.428571 | 72 | 0.549515 |
d8899dfedd57b6d0856b7f1c6a4a7963de52dd99 | 487 | package Storage;
public interface IStorage {
/**
* Adds a key-value pair in storage
* @param key
* @param value
* @return true if the key was already present in storage
*/
public boolean put(String key, String value);
public String get(String key);
/**
* Unsets the give... | 19.48 | 63 | 0.61807 |
9b6e6899c7ec04d589daa8b83b735832f82e4d0b | 274 | package com.abatra.android.wheelie.demo;
import com.abatra.android.wheelie.core.debug.StrictModeInitializer;
public class DebugStrictModeInitializer extends StrictModeInitializer {
@Override
protected boolean isDebug() {
return BuildConfig.DEBUG;
}
}
| 22.833333 | 71 | 0.770073 |
1c091e1a7b2a07e32db3ed0d90f2615fa708e475 | 206 | package kendzi.josm.kendzi3d.dao;
import kendzi.josm.kendzi3d.dto.PointModelDTO;
public interface PointModelDao {
PointModelDTO findAll();
void save(PointModelDTO pPointModelDTO);
}
| 17.166667 | 47 | 0.73301 |
609d093dcb156d3811711a953f9e77b9a6ed464a | 590 | package team.fjut.cf.pojo.po;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* @author axiang [2019/10/18]
*/
@Data
@Table(name = "t_problem_view")
public class ProblemView {
@Id
@Generat... | 19.032258 | 75 | 0.715254 |
9a0ff600fd8fd160d2175a85e33f78b1ded8faf1 | 1,158 | package applica.framework.widgets.fields.renderers;
import applica.framework.widgets.Form;
import applica.framework.widgets.FormField;
import applica.framework.library.utils.TypeUtils;
public class BasicTypesFieldRenderer extends TemplateFormFieldRenderer {
@Override
protected String createTemplatePath(Form ... | 30.473684 | 118 | 0.57513 |
7090a73170b4d7ce0064d1dfd109947ab81ea7a3 | 390 | package org.xmlet.htmlapi;
import org.xmlet.xsdasm.classes.infrastructure.EnumInterface;
public enum EnumWrapTextarea implements EnumInterface<String> {
HARD(String.valueOf("hard")),
SOFT(String.valueOf("soft"));
private final String value;
private EnumWrapTextarea(String var3) {
this.value = var3... | 20.526316 | 63 | 0.710256 |
4bfe0cb340ca92222903e7ce1172918ee1693416 | 3,410 | package io.nadron.protocols.impl;
import io.nadron.app.PlayerSession;
import io.nadron.handlers.netty.DefaultToServerHandler;
import io.nadron.handlers.netty.MessageBufferEventDecoder;
import io.nadron.handlers.netty.MessageBufferEventEncoder;
import io.nadron.protocols.AbstractNettyProtocol;
import io.nadron.util.Net... | 32.169811 | 129 | 0.806158 |
01f6790858c9d1048d5baf265f161cc4233c3043 | 425 | package org.buddycloud.channelserver.db.exception;
public class ItemNotFoundException extends NodeStoreException {
private static final long serialVersionUID = 1L;
public ItemNotFoundException(String message, Throwable t) {
super(message, t);
}
public ItemNotFoundException(String message) {
... | 22.368421 | 63 | 0.703529 |
cea2296996b89ae4b120f49b99e86a42d84afcf9 | 3,071 | package kr.go.seoul.seoulian.activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.PagerAdapter;... | 31.336735 | 134 | 0.689678 |
ac4ddac351d7fc9e6660d050cdab4fe19325eec5 | 5,991 | package org.apereo.cas.web.flow;
import org.apereo.cas.web.support.CasLocaleChangeInterceptor;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.function.Executable;
import org.springframework.binding.expression.Expression;
import org.springframework.... | 54.963303 | 129 | 0.780337 |
5d5701deff582ac0c300f4752968a1bf8bab8d3a | 602 | /*
* Author: Pieda (2014)
* File Name: ContactLastNameComparator.java
* Course Name: Object-Oriented Programming
* Lab Section: 302
* Student Name: Lucas Pazelo Vargas de Oliveira (040799663)
* Date: 10/11/2014
*(Stanley Pieda (2014) personal communication)
*/
package exceptions;
import java.util.Comparator;
... | 26.173913 | 72 | 0.737542 |
b8ed1b5fa62369842ea0ecaa9ba9a12682ee0dcd | 656 | package com.inxedu.os.edu.entity.article;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @author www.inxedu.com
* 文章查询条件
*/
@Data
public class QueryArticle implements Serializable {
private static final long serialVersion... | 25.230769 | 68 | 0.775915 |
02d2d5b4d3eff472c14e4c8a9187f58c25d5f299 | 1,168 | package ftn.ktsnvt.culturalofferings.mapper;
import ftn.ktsnvt.culturalofferings.dto.CulturalOfferingSubTypeDTO;
import ftn.ktsnvt.culturalofferings.model.CulturalOfferingSubType;
import ftn.ktsnvt.culturalofferings.service.CulturalOfferingTypeService;
import org.springframework.beans.factory.annotation.Autowired;
imp... | 35.393939 | 123 | 0.743151 |
b862a9d92e11a6a2a87391ad9c8b034b89f29636 | 4,647 | /*
* 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 "Lic... | 39.717949 | 131 | 0.707984 |
b741dcfebcd86e5d1fcfa44133e8f091fc29603d | 3,261 | package org.sunchaser.lombok.impl.process;
import com.google.auto.service.AutoService;
import com.sun.source.util.Trees;
import com.sun.tools.javac.processing.JavacProcessingEnvironment;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.tree.TreeMaker;
import com.sun.tools.javac.util.Context;
import c... | 29.917431 | 104 | 0.683226 |
1f53e133b92672cdf435e88b4c3aa7aad5a61385 | 99 | public class Animal {
public Animal() {
System.out.println("making an Animal");
}
} | 19.8 | 47 | 0.59596 |
1761179ae3e265c69333444c31cb169b8d133bdb | 5,819 | /*
* JFugue, an Application Programming Interface (API) for Music Programming
* http://www.jfugue.org
*
* Copyright (C) 2003-2014 David Koelle
*
* 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 o... | 36.829114 | 140 | 0.721258 |
71c6725615f3f769239be591840df94eab04b163 | 1,757 | package net.haesleinhuepf.clij2.plugins;
import net.haesleinhuepf.clij.clearcl.interfaces.ClearCLImageInterface;
import net.haesleinhuepf.clij.macro.CLIJMacroPlugin;
import net.haesleinhuepf.clij.macro.CLIJOpenCLProcessor;
import net.haesleinhuepf.clij.macro.documentation.OffersDocumentation;
import net.haesleinhuepf.... | 34.45098 | 145 | 0.75185 |
46b67732e58a8787786cfd99dace377077ce755d | 2,825 | package com.redhat.eclipseDependencyAnalysis.dependenciesActions;
import java.util.ArrayList;
import java.util.List;
import org.apache.maven.model.Dependency;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import com.redhat.eclipseDependencyAnalysis.jsonHttp.DAJsonHttp;
public class ContentFor... | 29.736842 | 130 | 0.697699 |
a22880dc8edcd36c05f909cb9495e191866f8be2 | 2,161 | package com.dq.easy.cloud.pay.model.base.constant;
import org.springframework.stereotype.Component;
import com.dq.easy.cloud.model.basic.constant.error.DqBaseErrorCodeInf;
/**
*
* <p>
* 支付错误代码
* </p>
*
* @author daiqi
* 创建时间 2018年2月23日 下午3:23:52
*/
public enum DqPayErrorCode implements DqB... | 34.301587 | 72 | 0.726516 |
7337cc042c00e28b10a4bcea3c6081cd3f6734b2 | 465 | package com.ncr.geocode.configs;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import static org.junit.Assert.assertNotNull;
public class JacksonConfigTest {
@Test
public void testObjectMapper() {
... | 25.833333 | 104 | 0.778495 |
756697b2c335c70560d58b868c8c7bf451a2f8db | 760 | package net.minidev.ovh.api.license;
import java.util.Date;
/**
* licenses Todos
*/
public class OvhTask {
/**
* The last time this Task was updated
*
* canBeNull && readOnly
*/
public Date lastUpdate;
/**
* This Task name
*
* canBeNull && readOnly
*/
public String name;
/**
* This Task des... | 13.103448 | 39 | 0.614474 |
3e2f1dd2481ab39c50946464aff1f627f475cab7 | 3,592 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 32.654545 | 93 | 0.658129 |
c0ed3424463a8cf13471ef5e04ef2f7ab424188e | 179 | package cn.yysg.crm.mapper;
import java.util.List;
import cn.yysg.crm.domain.Menu;
public interface MenuMapper extends BaseMapper<Menu> {
List<Menu> getUserMenu(Long id);
}
| 14.916667 | 54 | 0.759777 |
2cee2194b190a23b91c8bf215ca916646ba621ef | 1,111 | package net.tvburger.sjawl.config;
public class InvalidSettingException extends InvalidSpecificationException {
private final Specification.Setting setting;
public InvalidSettingException(Specification configurationSpecification, Specification.Setting setting) {
super(configurationSpecification);
... | 34.71875 | 142 | 0.756976 |
0ef6c42579bbf7887d106966992d13fbb80e53b3 | 2,554 | /*
* Copyright 2013-2017 EMC Corporation. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* or in the "license" ... | 41.868852 | 292 | 0.726312 |
d701a5bda48e7e17b48caf741f5e17bf5535f50f | 9,289 | package util;
import java.util.ArrayList;
import java.util.List;
import core.Population;
import util.Comparator.Comparator;
import util.Comparator.DominationComparator;
/*
* this implement needs For the Hypervolume calculation
*all Front must be non Dominated Solution set
*/
public class Front {
private int nO... | 23.516456 | 138 | 0.611907 |
585511e59438edbb661eaa5ac8e4f0872ee3a16a | 3,515 | package com.nbkuk.tabapplication;
import android.app.Activity;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import ... | 33.798077 | 94 | 0.669132 |
70ca941896af008dc26c7a1383d467f113d89230 | 1,929 | /*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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 requ... | 33.842105 | 80 | 0.772421 |
862b059e4101b919822ad9db2c0107f6fe2699dd | 715 | package org.ovirt.engine.core.common.action;
import org.ovirt.engine.core.common.businessentities.storage.Disk;
import org.ovirt.engine.core.compat.Guid;
public class ExtendManagedBlockStorageDiskSizeParameters extends UpdateDiskParameters {
private static final long serialVersionUID = 5002115812827491485L;
... | 26.481481 | 87 | 0.763636 |
4cbe4668e17bdc004582197b5dd275901024b731 | 2,088 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.hql;
import java.util.Set;
import javax.persistence.Col... | 30.26087 | 109 | 0.758142 |
744364205e9a6806c47e73f26803f9dbf1e6b1ab | 3,256 | /*
* Copyright (C) 2017 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... | 24.854962 | 79 | 0.734644 |
924d32bd20a761360aae214be6508c8d5106e228 | 1,621 | package com.jerrio.mbg;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCa... | 30.018519 | 93 | 0.665022 |
2a0be0a2b234bf3e96b7cb16dbf068f12cfcf3f8 | 416 | public class Assembler {
public static void main(String[] args) {
AssemblyParser parser = new AssemblyParser();
AssemblyCode assemblyCode = parser.runAssemblyParser("D:\\Software\\SoftwareEngineer\\src\\Add.asm");
InstructionAssembler assembler = new InstructionAssembler(assemblyCode);
... | 41.6 | 109 | 0.706731 |
1a413d94497159d468d2ab443a788a821b96b3b4 | 4,937 | package som.interpreter.actors;
import java.util.concurrent.ForkJoinPool;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.instrumentation.GenerateWrapper;
import com.ora... | 36.843284 | 93 | 0.763014 |
1bac2eaa0d34bb646737ac033be4e59d5da9667a | 2,684 | /*
* Copyright (c) 2013-2018, Bingo.Chen (finesoft@gmail.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 appl... | 34.410256 | 100 | 0.747019 |
74ad7da4529c893292f94fb73dd05bc361a9c1c8 | 7,343 | /*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of ... | 42.94152 | 99 | 0.716056 |
13509a12d69529e788430dcf3174f10115b7e14c | 2,560 | package gate.controller.logined;
import base.correspond.CorrespondBean;
import base.correspond.ForwardUtil;
import com.auth0.jwt.JWT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.sp... | 36.571429 | 134 | 0.683984 |
9da5af9e95023e4d3431fd6d07603c455117f061 | 608 | package com.android.betterway.settingactivity.daggerneed;
import android.app.Fragment;
import com.android.betterway.settingactivity.presenter.SettingPresenterImpel;
import dagger.Component;
/**
* @author Jackdow
* @version 1.0
* BetterWay
*/
@Component(modules = SettingFragmentModule.class)
public int... | 20.965517 | 77 | 0.725329 |
15c76b02ef057980166361d905f930268392ed22 | 449 | package com.vivek.microservices.accountservice.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Account does not exist.")
public class AccountNotFoundException extends Exception{
private stat... | 28.0625 | 80 | 0.808463 |
fc17a9d6b97759c21563acc1a05a4f7cd88e7551 | 146 | package pw.erler.peerbuddy.common.values;
import lombok.Value;
@Value
public class AccountAttributePair {
String key;
AccountValue value;
}
| 12.166667 | 41 | 0.780822 |
2a67494b00e19d9cfd9557778e7c61177b9165fa | 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 | 79 | 0.748754 |
f6505cb41d3126f392384e75af02f5cc74003ac0 | 7,668 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 48.531646 | 120 | 0.720657 |
a69baac370320b054be834ac52e5f6b9b8cfe4b9 | 1,949 | package io.smileyjoe.icons.util;
import android.graphics.drawable.Drawable;
import androidx.annotation.DrawableRes;
import androidx.collection.LruCache;
/**
* Memory cache for the icons
* <br/>
* Uses 2 LruCache caches, each using 1/25th of the available memory for this memory cache
*/
public class IconCache {
... | 24.987179 | 90 | 0.624936 |
cbab59aae5b57adfc7f27084291d2e0e92154a84 | 385 | package com.github.yizzuide.milkomeda.particle;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
/**
* EnableParticle
*
* @author yizzuide
* @since 2.0.0
* Create at 2019/12/13 00:57
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@I... | 18.333333 | 53 | 0.761039 |
d250d5127d9bea5ee54d244324448bcdae163352 | 1,712 | /*
* Copyright (c) 2018 Baidu.com, Inc. 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 required by applica... | 21.4 | 118 | 0.652453 |
22beda3b759fba0d2e25ab223fa07934d296b4cb | 2,820 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | 39.71831 | 116 | 0.760993 |
f817b913255b35f57ea72ae2477bcab4ad51cc96 | 398 | package cn.locusc.ga.dingding.api.client.common.constant;
/**
* @author Jay Chan
* 常用常量
**/
public class GadCommonConstants {
/**
* 分页显示的最大数量
**/
public static final String MAX_PAGE_SIZE = "100";
/**
* 分页显示的最小数量
**/
public static final String MIN_PAGE_SIZE = "20";
/**
... | 15.92 | 57 | 0.592965 |
6dea3c87a88853522a934b5a5101a3b76469bfd6 | 5,473 |
package com.thinkgem.jeesite.modules.sys.entity;
import com.thinkgem.jeesite.common.persistence.TreeEntity;
import org.hibernate.validator.constraints.Length;
/**
* 区域 Entity .
*
* @author ThinkGem
* @version 2013-05-15
*/
public class Area extends TreeEntity<Area> {
private static final long serialVersion... | 18.679181 | 58 | 0.511602 |
354c7090bc6c2e0b7c1f5197fd405df15adec164 | 270,281 | package bsh;
import java.io.FileReader;
import java.io.InputStream;
import java.io.Reader;
public class Parser implements ParserConstants, ParserTreeConstants {
/* renamed from: a */
protected JJTParserState f642a = new JJTParserState();
/* renamed from: b */
boolean f643b = false;
/* renamed f... | 34.620341 | 174 | 0.457602 |
2142861cae51e87b1696d3227fc34085ac812436 | 4,773 | /*
* 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... | 61.192308 | 150 | 0.79824 |
b642052001fba0df7e4eb27252a736e28eb7cd9c | 6,252 | package io.picopalette.apps.event_me.Activities;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;... | 43.117241 | 152 | 0.632758 |
34f0975dca18629153a276f4af0e56ee89e98b80 | 870 | package com.argent.aiyunzan.common.model.bean.response;
/**
* @author
* @description:
* @date :
*/
public class TakeStartRsp {
/**
* code : 302
* msg : 每分享5个好友才能进行一次抽奖哦
*/
private int code;
private String msg;
private Data data;
public int getCode() {
return code;
}... | 15.818182 | 55 | 0.532184 |
b2caed9b46b67a1c34c36d39a92c0b66a313e13d | 200 | package com.company;
import org.jetbrains.annotations.Contract;
/**
* Hello world!
*/
public class App
{
public static long add(int a, int b)
{
return (long) a + (long) b;
}
}
| 13.333333 | 42 | 0.605 |
ad5d8aa07b95b9975d10d3305510f6ea27358c11 | 4,722 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | 33.971223 | 118 | 0.707751 |
cdd1fdb381f6bf96b90ecb31213fe1640f87eade | 2,108 | /*
* 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.020408 | 100 | 0.787476 |
44b3a46469ad8383fe962fbc4bbb2bf972ab63f8 | 3,897 | package com.cloudhopper.commons.util;
/*
* #%L
* ch-commons-util
* %%
* Copyright (C) 2012 Cloudhopper by Twitter
* %%
* 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:... | 26.331081 | 124 | 0.562997 |
23cc37d1f132f6a2e13125875bc3c46b9d0daab2 | 8,676 | /*
* Copyright (C) 2009 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... | 32.988593 | 131 | 0.588866 |
17f660f60a3ed4900f947711180fb46bfbc354ca | 17,787 | /*
* MIT License
*
* Copyright 2017 Broad Institute
*
* 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, modi... | 39.970787 | 242 | 0.741497 |
3faf3ce32df163c9e18f4e73d57308a528c8449e | 1,346 | package fr.anarchick.skriptframe.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.Serializable;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import org.bukkit.util.io.BukkitObjectInputStre... | 30.590909 | 132 | 0.650817 |
1a39e8dad4b98eb4e77488ee98204699c23f5bbc | 857 | package com.scs.splitscreentowerdefence.blocks;
import java.io.IOException;
import com.scs.splitscreenfpsengine.entities.VoxelTerrainEntity;
import mygame.texturesheet.TextureSheetGenerator;
public class GenerateTDTextureSheet {
private static final int TILE_SIZE_PIXELS = 64;
public static void main(String[] a... | 24.485714 | 134 | 0.735123 |
9d4cde94c8d98c89886d492f0907796911bb1ce6 | 1,608 | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 30.339623 | 101 | 0.710821 |
2060a9c9aa93a5a1226027cd4971ca6ab99dddb8 | 192 | package com.avaje.ebeaninternal.api;
import com.avaje.ebean.SqlUpdate;
public interface SpiSqlUpdate extends SqlUpdate {
BindParams getBindParams();
void setGeneratedSql(String sql);
}
| 17.454545 | 49 | 0.796875 |
62bb144404bb610520e2ccf9940f35560220e65d | 4,625 | /*
* Copyright by Zoltán Cseresnyés, Ruman Gerst
*
* Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Kn... | 41.666667 | 152 | 0.68973 |
3026173d491a00abf274a8ac307c65c96497e4ed | 20,320 | package edu.unm.health.biocomp.bard.hscaf;
import java.io.*;
import java.util.*;
import java.util.regex.*;
import java.net.*; // MalformedURLException, URI, URISyntaxException, URL, URLEncoder
import java.sql.*;
import javax.servlet.*; // ServletConfig, ServletContext
import javax.servlet.http.HttpServletRequest;
imp... | 37.080292 | 168 | 0.672982 |
1d08b81a77aa4c958b7f79504af26e1ef78a74f6 | 551 | package org.yaml.snakeyaml.constructor;
import org.yaml.snakeyaml.nodes.Node;
import org.yaml.snakeyaml.nodes.ScalarNode;
public class SafeConstructor$ConstructYamlBool extends AbstractConstruct {
// $FF: synthetic field
final SafeConstructor this$0;
public SafeConstructor$ConstructYamlBool(SafeConstructor ... | 29 | 74 | 0.745917 |
7b0d3aaaf34efcd2ecd4a2f61a76266de478cf0c | 903 | package com.eyeem.decorator.processor;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.PackageElement;
/**
* Created by vishna on 24/07/15.
*/
public class Utils {
public static PackageElement getPackage(Element type) {
while (type.getKi... | 24.405405 | 62 | 0.610188 |
e993d1aaf74c904e1ffb01abd1a485eabe0e4320 | 20,452 | package ru.thewizardplusplus.wizardbudget;
import java.io.*;
import java.util.*;
import java.text.*;
import javax.xml.parsers.*;
import org.xmlpull.v1.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import android.content.*;
import android.webkit.*;
import android.database.sqlite.*;
import android.database.*;
import... | 24.790303 | 68 | 0.62126 |
8552d7a54215f7e9a42cc308e0057ee45d5ead53 | 323 | package hu.flowacademy.holiday.repository;
import hu.flowacademy.holiday.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User,Long> {
public User findByName (String name);... | 26.916667 | 66 | 0.826625 |
f76948998bcffc904711a9fbec202a7127d5c4e4 | 429 | package best.reich.ingros.events.render;
import net.b0at.api.event.Event;
import net.minecraft.client.gui.GuiScreen;
public class DisplayGuiEvent extends Event {
private GuiScreen screen;
public DisplayGuiEvent(GuiScreen screen) {
this.screen = screen;
}
public GuiScreen getScreen() {
... | 19.5 | 46 | 0.685315 |
e3e2fe4115fcb665e1a10feb785b8d9477c1a1ed | 3,387 | package io.cool;
import java.io.IOException;
import java.nio.file.ClosedWatchServiceException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.WatchEvent;
import java.nio.file.WatchKey;
import java.nio.file.WatchService;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concur... | 27.762295 | 133 | 0.701211 |
7a374180dc1f13b7ba4f33279302c53973583739 | 6,219 | package com.android.settings.katsuna.settings;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.database.ContentObserver;
import android.os.Handler;
import android.provider.Settings;
import android.support.annotation.Nullable;
import android.util.Att... | 32.056701 | 96 | 0.644959 |
1017767a7ebfbb3863726db4e5aa421bc38fead0 | 595 | package com.ty.lc.base;
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) {
val = x;
}
public static void traverse(ListNode head) {
if (head == null) {
System.out.println("null");
return;
}
System.out.print... | 19.833333 | 48 | 0.507563 |
54cb443af2e984bbe2ac6157c4073642458193cf | 665 | package com.binance.futures.sdk.examples.account_or_trade;
import com.binance.futures.sdk.examples.constants.RestApiClient;
import com.binance.futures.sdk.interfaces.RestApiRequest;
import com.binance.futures.sdk.model.enums.IncomeType;
import com.binance.futures.sdk.model.rest_api_response.account_or_trade.income_his... | 35 | 107 | 0.81203 |
bb552084e16293fa56339f1712cd8f5306457b91 | 335 | public abstract class org.junit.rules.ExternalResource implements org.junit.rules.TestRule {
public org.junit.rules.ExternalResource();
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement, org.junit.runner.Description);
protected void before() throws java.lang.Throwable;
protected v... | 47.857143 | 114 | 0.8 |
35fc7c42ea32e73dbfb3ab67155c8f11cac731c5 | 488 | package p01_weekdays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class WeeklyCalendar {
private List<WeeklyEntry> weeklySchedule;
public WeeklyCalendar() {
this.weeklySchedule = new ArrayList<>();
}
public Iterable<WeeklyEntry> getWeeklySchedule() {
Collection... | 19.52 | 54 | 0.762295 |
69b68190746c64c0efa7569c9f99f910e0e4fb42 | 3,525 | package com.microsoft.applicationinsights.agent.internal.sampling;
import java.util.List;
import javax.annotation.Nullable;
import com.microsoft.applicationinsights.agent.Exporter;
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.api.trace.SpanKind;
import io.opentelemetry.context.Context;
impor... | 39.606742 | 118 | 0.685106 |
64eb3b5ed3d76e0c7336a54c6f5624fceaa1bbb0 | 3,361 | package com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.spring_data_repository.service;
import com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.spring_data_repository.entity.Address;
import com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.spring_data_repository.entity.City;
import com.gitlab.hillel.dnepr.java.ee.o... | 39.081395 | 121 | 0.767034 |
c65da31ed0a9d4cbd3f611a18bcae5bcc914c753 | 4,626 | /**
* Copyright (c) 2011, Tim Buktu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditio... | 33.280576 | 81 | 0.644185 |
c55326dd9f16ceffead339154d752ba6a8f09110 | 9,447 | package org.robolectric.res;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import org.robolectric.util.Logger;
import org.robolectric.util.PerfStatsCollector;
public class ResourceTableFactory {
/** Builds an Android framework resource table in the "android" package ... | 50.518717 | 142 | 0.650789 |
75bf13cbd6db335f1c5738cbc05f63e652c8d984 | 11,088 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 46.393305 | 142 | 0.637716 |
a28bcd7be821cc3104262d750df87130ee5923bd | 1,551 | package com.example.toycathon;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.... | 33.717391 | 117 | 0.687943 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.