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 |
|---|---|---|---|---|---|
44856c153098e1010ff77f02bd7b56c9b46c62dd | 339 | package org.isisaddons.module.security.fixture.demoapp.demotenantedmodule.fixturescripts.sub;
public class TenantedEntity_create_it_mil extends AbstractTenantedEntityFixtureScript {
@Override
protected void execute(ExecutionContext executionContext) {
create("Tenanted in /it/mil", "/it/mil", execution... | 30.818182 | 93 | 0.784661 |
dc35cc020998bb7302dec6ac7dc3f40e6bcd9a7d | 1,538 | package com.company.project.modules.activeMQ;
import com.jeespring.common.utils.SendMailUtil;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat;
import java.util.Date... | 36.619048 | 140 | 0.742523 |
1dce6fe9087182ed2eb44a0b307e6deb74367f8c | 2,332 | package com.pengsoft.ss.service;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.p... | 28.096386 | 118 | 0.670669 |
ab0353c8658fd90f9547bca72d6e4f1ea31e98f2 | 2,315 | package multithread;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.concurrent.*;
/**
* Created by sun on 2017/2/7.
*/
public class ThreadPoolTest {
private static Log log = LogFactory.getLog(ThreadPoolTest.class);
public static void main(String[] arg... | 32.152778 | 108 | 0.594816 |
ef858993a5d54435d89b9d102ff6f05f89c97e24 | 1,768 | package org.gurpsdomain.domain;
import static org.gurpsdomain.domain.Attribute.*;
import static org.gurpsdomain.domain.DifficultyLevel.*;
public class Spell {
private final String name;
private final int cost;
private final String pageReference;
private final DifficultyLevel difficultyLevel;
priva... | 36.081633 | 215 | 0.707579 |
39cf7e88a632b6dfab147709073e082e46c4cc8c | 183 | package com.telerikacademy.agency.commands.listing;
import com.telerikacademy.agency.commands.contracts.Command;
public class ListVehiclesCommand implements Command {
// TODO
}
| 22.875 | 60 | 0.814208 |
7483eaae2fb0066cf170c72c188481188eb24402 | 463 | package de.renew.navigator.io;
/**
* @author Konstantin Simon Maria M??llers
* @version 0.1
*/
public interface ProgressListener {
/**
* Each execution informs the GUI about a new progress.
*
* @param progress the current progress.
* @param max the maximum progress.
*/
void progr... | 20.130435 | 61 | 0.643629 |
887828bcf5e0f5efb97fa43637795d17dd4c12c3 | 5,227 | /*
* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 41.816 | 105 | 0.715324 |
084b0ad33723b4e783dbee0633d067a7dff0f32c | 1,213 | /*
* Copyright 2020 Siphalor
*
* 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 writ... | 31.102564 | 95 | 0.781533 |
354385be6e0df2a8fdb54a3111f7577dee2826f9 | 318 | package com.ls.framework.jdbc.annotation;
import java.lang.annotation.*;
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface LSColumn {
String value() default "";
/**
* @return 标注非数据库字段
*/
boolean ignore() default false;
}
| 18.705882 | 42 | 0.663522 |
217e4b0802f3b32fe717fc73d924058aa0dd34a3 | 7,872 | package io.github.hooj0.springdata.template.repository.query.complex;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.data.repository.query.ParametersParameterAccessor;
import org.springframework.la... | 34.831858 | 142 | 0.7453 |
998c3c45aa09781fe1c1f4f3630992af83485afe | 110 | package com.kezong.demo.libaar;
public class AarFlavor {
private static final String TAG = "flavor2";
}
| 15.714286 | 48 | 0.727273 |
b050ad9be905fd980067cccaba583a11443aa2d5 | 3,777 | package org.insightcentre.uld.naisc.meas;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.riot.adapters.RDFReaderRIOT;
import org.insightcentre.uld.naisc.Dataset;
import org.insightcentre.uld.naisc.DatasetLoader;
import org.insightcentre.uld.naisc.main.Defa... | 36.669903 | 132 | 0.664813 |
2ed5fb1c05647361719faaa913a465f9fbacacfa | 212 | package org.distributeme.test.blacklisting;
public class BlacklistingTestServiceImpl implements BlacklistingTestService {
@Override
public void doSomeThing(int mod) {
System.out.println("mod " + mod);
}
}
| 21.2 | 77 | 0.783019 |
fc1f918c8db3791c97010ed6bc575efd9b9ec6e3 | 2,167 | package com.ql.util.express.instruction;
import com.ql.util.express.ExpressRunner;
import com.ql.util.express.InstructionSet;
import com.ql.util.express.exception.QLException;
import com.ql.util.express.instruction.detail.InstructionLoadLambda;
import com.ql.util.express.instruction.opdata.OperateDataLocalVar;
import ... | 38.696429 | 120 | 0.672358 |
4357513f6ce6748217cd2915c6e003eedf156cb7 | 226 |
package com.mbach231.diseasecraft.DiseaseEffects;
import org.bukkit.entity.LivingEntity;
abstract public class DiseaseEffect {
DiseaseEffect(){
}
abstract public void applyEffect(LivingEntity entity);
}
| 15.066667 | 58 | 0.747788 |
a3c09ba631130445a3d7716b6a3448761b784aab | 9,254 | /*
* MIT License
*
* Copyright (c) 2010 - 2021 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* 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... | 36.577075 | 117 | 0.650746 |
bd33bd2affdee742d009b4ab0b2adfd99c355d7f | 9,353 | package org.codenarc.rule;
import org.codehaus.groovy.ast.*;
import org.codehaus.groovy.ast.expr.*;
import org.codehaus.groovy.ast.stmt.*;
import org.codehaus.groovy.classgen.BytecodeExpression;
import java.util.List;
/**
* This is a horrible hack needed because method dispatch is broken in Groovy 1.8.
* When the... | 26.876437 | 86 | 0.718807 |
34bffc853b7702e8a3c88848b1cf9160c50cb384 | 322 | package cn.dmego.seata.at.business.serivce;
import cn.dmego.seata.common.dto.BusinessDTO;
/**
* @className: BusinessService
*
* @description: BusinessService
* @author: ZengKai<dmeago@gmail.com>
* @date: 2020/12/8 17:41
**/
public interface BusinessService {
String handleBusiness(BusinessDTO businessDTO);
... | 20.125 | 51 | 0.73913 |
22358af017da00ae06e9737cda352cf700d3788a | 14,536 |
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.util.Vector;
public class ClientUsers extends javax.swing.JFrame {
private DataOutputStream giden;
private DataInputStream gelen;
private String UserName;
private String UserCode; // Kullanıcıya has olan bir rastgele sayı
... | 40.946479 | 156 | 0.622179 |
20717ac04c61006cf025917a15c16707fc1701cd | 6,823 | package org.aion.avm.core.persistence;
import java.lang.reflect.Field;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.List;
import i.IObjectDeserializer;
import i.RuntimeAssertionError;
public class ByteBufferObjectDeserializer implements IObjectDeserializer {
private fin... | 37.284153 | 177 | 0.564268 |
1178755dd08d481d836ab638b758859d288d4a9d | 4,708 | package org.robolectric.shadows;
import android.R;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.view.animation.Transformation;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.TestRunners;
import org.rob... | 30.973684 | 92 | 0.75446 |
ddd9010d49ac7b679cf100335b2a9d20d5994f58 | 4,543 | package com.asw.alllistapp;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view... | 34.157895 | 125 | 0.654634 |
e03e61f52b9e15b66104e66ad11d9dd142e0611c | 1,017 | package cn.savory.esmanage.convertor;
import java.util.List;
import cn.savory.esmanage.contract.request.AliasCreateRequest;
import cn.savory.esmanage.contract.request.AliasUpdateRequest;
import cn.savory.esmanage.contract.vo.AliasBasicVo;
import cn.savory.esmanage.contract.vo.AliasExtendedVo;
import cn.savory.esmanag... | 23.651163 | 73 | 0.702065 |
4357ac8ba0641928f3586b586a26cfc424e645cc | 489 | package com.hr.framework.repo;
import com.hr.framework.po.business.crm.meeting.Rooms;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
@RepositoryRestResource(collectionResourceRel = "mee... | 32.6 | 90 | 0.803681 |
0fe26d369aed2804d6e495e36c11b6c94e3a61a6 | 3,803 | package org.ray.api.test;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ray.api.Ray;
import org.ray.api.RayActor;
import org.ray.api.RayObject;
import org.ray.api.RayRemote;
import org.ray.api.UniqueID;
@RunWith(MyRunner.... | 24.856209 | 78 | 0.646069 |
a84f54ef8ddd6609364e9c910f879150cf79783f | 436 | package br.com.salon.carine.lima.repositoriessdp;
import java.util.Calendar;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import br.com.salon.carine.lima.models.Lancamento;
@Repository
public interface LancamentoRepositorySJPA... | 25.647059 | 86 | 0.827982 |
ef5c1ee7503c130fdac0066408a325197b9437b3 | 271 | package no.nav.foreldrepenger.sikkerhet.abac.pdp;
import no.nav.foreldrepenger.sikkerhet.abac.domene.Tilgangsbeslutning;
import no.nav.foreldrepenger.sikkerhet.abac.pep.PdpRequest;
public interface Pdp {
Tilgangsbeslutning forespørTilgang(PdpRequest pdpRequest);
}
| 30.111111 | 70 | 0.833948 |
5367d9f852cb9e2fd93bab0eb70f2416a4f30659 | 2,348 | /*
* Copyright 1999,2005 The Apache Software Foundation.
*
* 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... | 41.192982 | 105 | 0.769165 |
4733f8a7c937f9a92bf1a0c1233e292cc1c23ce2 | 9,130 | // Generated from /home/gusta/googledrive/Github/NeuraLogic/Parsing/src/main/java/cz/cvut/fel/ida/logic/parsing/antlr/grammars/Neuralogic.g4 by ANTLR 4.8
package cz.cvut.fel.ida.logic.parsing.antlr;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link ... | 36.230159 | 153 | 0.704491 |
d18bba35a79268906369d7e7df58fd32f135c49d | 203 | package com.dvsnier.cache.base;
/**
* IEvictableManager
* Created by dovsnier on 2019-07-11.
*/
public interface IEvictableManager extends IAbstractEvictableManager, Evictable, MultipleEvictable {
}
| 22.555556 | 100 | 0.788177 |
855503acbd1f9bbe6ab10bbdbdb5a0352c6188f4 | 403 | package com.stanrnd.excel.exception;
public class ExcelBuilderException extends ExcelException {
private static final long serialVersionUID = 1L;
public ExcelBuilderException(String message) {
super(message);
}
public ExcelBuilderException(Throwable throwable) {
super(throwable);
}
public ExcelBuilderE... | 20.15 | 68 | 0.779156 |
689397a1164304cab110f52d51f5ddd9fe621c67 | 950 | package com.github.sibmaks.sp.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
/**
* @author sibmaks
* Created at 12-10-2021
*/
@Data
@Entity
@Table(name = "user")
@Builder
@NoArgsConstruc... | 26.388889 | 94 | 0.718947 |
d597765b3a864e391db735b1198929873d77615f | 3,009 | package edu.utexas.tacc.tapis.apps.dao;
import edu.utexas.tacc.tapis.search.parser.ASTNode;
import edu.utexas.tacc.tapis.shared.exceptions.TapisException;
import edu.utexas.tacc.tapis.shared.threadlocal.OrderBy;
import edu.utexas.tacc.tapis.sharedapi.security.ResourceRequestUser;
import edu.utexas.tacc.tapis.apps.mode... | 45.590909 | 120 | 0.784646 |
74d8685a7a37bc8d395861afe6938b82e2610801 | 2,286 | package com.direwolf20.logisticslasers.common.items.logiccards;
import com.direwolf20.logisticslasers.common.container.cards.StockerFilterContainer;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.inventory.container.SimpleNamedContainerProvi... | 40.105263 | 186 | 0.675853 |
1a33cbee604eb46b48308cea9995afaa92012226 | 3,537 | package velmm.com.glideandroid;
import android.graphics.drawable.Drawable;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.bumptech.glide.loa... | 32.75 | 158 | 0.580153 |
303fe8def4bf5d3e7ee2c26c5aa883a15093e559 | 445 | import java.util.function.Function;
public class FunctionCompose {
private static volatile double r = 0;
public static double executeTask(double i) {
Function<Double,Double> sin_asin = ((Function<Double,Double>)Math::sin).compose(Math::asin);
return sin_asin.apply((double)i);
}
public... | 22.25 | 101 | 0.635955 |
09f8a10c79efb747f849303f26e996d5504a11f8 | 7,878 | // 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... | 39.19403 | 129 | 0.625413 |
2626618b563783dcc5e2583e0ee8506a3fa03342 | 2,612 | /*
* L2jFrozen Project - www.l2jfrozen.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed ... | 25.115385 | 74 | 0.671516 |
0eda731f02ef613c4425751252de072544489a5a | 15,773 | package org.jrd.backend.data;
import java.io.File;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.jrd.backend.data.Cli.*;
/**
* Class for relaying help texts to the user.
*/
public final class ... | 40.340153 | 196 | 0.603753 |
125dddc24fe0cbc7af869a8d1f73340bc931c48e | 11,590 | package print;
import javax.swing.*;
import java.awt.*;
import java.util.*;
public class Printer
{
private String name;
private double tonerLevel = 100;
private int maxCapacity;
private int paperLeft;
private int size = 0;
private Node front, rear;
/**
* Constructs a ... | 31.155914 | 124 | 0.50811 |
b56d96346014743212e2d496be8e74736a19b5a3 | 7,395 | package com.example.myapplication.search;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SearchView;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import ... | 35.382775 | 122 | 0.563083 |
2248a14d8b3734f2b3402ab25cc89f122fc28be8 | 845 | package com.revolsys.beans;
/**
* An exception that wraps an object that caused the exception.
*/
public class ObjectException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
private final Object object;
public ObjectException(final Object object) {
this.obje... | 21.666667 | 92 | 0.697041 |
2a4882b2fbc37a5e19cdb41edd01cf99940c5893 | 875 | package Controlador;
import java.awt.event.*;
import javax.swing.JTextField;
import modelo.Modelo;
import vista.Login_alum;
import vista.Select_user;
public class CtrlLogin {
private Select_user selectUser;
private Login_alum log;
private Modelo model;
public CtrlLogin(Select_user sel, Modelo mod... | 23.648649 | 67 | 0.608 |
b0c81229fb1f83e4c2e86da9d15684584b8a0398 | 3,340 | package com.romickid.simpbook.fragments.Collection;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;... | 29.298246 | 86 | 0.652994 |
dd376d7843781853c4b9cc7b8b0a2821c14af95d | 4,382 | /** Manual tests for Text Generator.
* @author: Rafayel Mkrtchyan
**/
import java.util.TreeMap;
import java.io.IOException;
import java.util.ArrayList;
public class testing {
public static void main(String[] args) {
checkForEmpty();
System.out.println();
checkForOne();
System.out.println();
testToMap();... | 27.3875 | 68 | 0.644683 |
dd2d7883c8c0757ecbf8d0dbe68c1c2c4d67e2fd | 2,027 | package com.lf.mp.conf;
import com.github.lfopenjavaswagger2word.util.GenerateDocxUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClien... | 32.693548 | 86 | 0.640355 |
411414ca5703ef9dd9d0d797335d799df8d1045e | 4,495 | /**
* Copyright 2016 LinkedIn Corp. 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... | 32.572464 | 120 | 0.728365 |
4bb8d8152091a299d0badb9393fd44dbd4622bb9 | 184 | package org.jbehave.examples.core.steps;
import java.util.HashMap;
import java.util.Map;
public class MyContext {
Map<String,Object> variables = new HashMap<String, Object>();
}
| 16.727273 | 62 | 0.75 |
8015476299ef693ba1f43d0e93d05fe6402f0701 | 2,760 | /*
Derby - Class org.apache.derby.client.net.OpenSocketAction
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 un... | 33.658537 | 75 | 0.702899 |
9b90caa174a17136e38fa1b653820007c3417ecf | 3,420 | package com.wolper.config;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
im... | 36 | 93 | 0.781871 |
40dfb12527f6e24ad0f6800bcf53fea36e67c126 | 1,530 | package com.aspose.words.examples.programming_documents.bookmarks;
import com.aspose.words.Bookmark;
import com.aspose.words.*;
import com.aspose.words.Row;
import com.aspose.words.SaveFormat.*;
import com.aspose.words.examples.Utils;
public class InsertBookmarksWithWhiteSpaces
{
/**
* The main entry point... | 34 | 109 | 0.70719 |
6d26f5e9bea0cc3012b7715611442896c442c5d4 | 629 | package pravin.rv.quizzz.service.accesscontrol;
import org.springframework.stereotype.Service;
import pravin.rv.quizzz.exceptions.UnauthorizedActionException;
import pravin.rv.quizzz.model.AuthenticatedUser;
import pravin.rv.quizzz.model.Quiz;
@Service("AccessControlQuiz")
public class AccessControlServiceQuiz exten... | 27.347826 | 106 | 0.796502 |
9afb2f28203cde4517a318f65a965a5ad5cd5d91 | 892 | /*
* Copyright (c) 2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.coordinator.client.model;
import com.emc.storageos.svcs.errorhandling.resources.APIException;
/**
* Product name class
*
* Product name is initialized by bean file. It is used
* SoftwareVersion and the whole upgrade mac... | 26.235294 | 100 | 0.689462 |
311a51371a02905babd1b3eb2daf8d63d998621b | 2,415 | package mage.cards.i;
import mage.abilities.Ability;
import mage.abilities.common.SpellCastAllTriggeredAbility;
import mage.abilities.costs.Cost;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.FilterSpell;
import mage.... | 30.1875 | 144 | 0.675362 |
881bfc24d12109bd63e08d352506d367bab84e3b | 1,892 | /*
* Copyright 2016-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 31.016393 | 93 | 0.7537 |
54688c430ac8840dca9222bc3def8a3661d5d764 | 311 | package com.haulmont.yarg.util.converter;
/**
* Converts parameters from string to object and from object to string
*/
public interface ObjectToStringConverter {
String convertToString(Class parameterClass, Object paramValue);
Object convertFromString(Class parameterClass, String paramValueStr);
}
| 28.272727 | 73 | 0.794212 |
68d70096c159a5dc2011dba4a2aa8d9e473edb18 | 4,910 | /*
* Copyright (c) 2016 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.oauth.as.webauthz;
import java.util.Optional;
import org.apache.logging.log4j.Logger;
import com.nimbusds.oauth2.sdk.AuthorizationErrorResponse;
import com.nimbusds... | 40.916667 | 107 | 0.7778 |
91e1199af1fa720fa960da48e0424f7a1831ee10 | 689 | import java.io.*;
import java.text.DecimalFormat;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader (System.in));
DecimalFormat df = new DecimalFormat("0.00");
double salario, ve... | 29.956522 | 85 | 0.584906 |
e9cce54138297e414fea0d583a7cbf4a652d8b95 | 7,096 | package com.optimove.sdk.optimove_sdk.optitrack;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.gson.Gson;
import com.optimove.sdk.optimove_sdk.main.LifecycleObserver;
import com.optimove.sdk.optimove_sdk.main.sdk_configs.configs.OptitrackConfigs;
import com.o... | 42.491018 | 130 | 0.621195 |
5a558607790f88d7336922d8b1c3c056cb69afe2 | 331 | package com.shyam0507.github.repo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.shyam0507.github.model.User;
@Repository
public interface UserRepository extends JpaRepository<User,... | 27.583333 | 67 | 0.8429 |
b7ca6774c6d1e9ba09ffcfed623578ff9313dd33 | 654 | package org.qfox.jestful.core.io;
import org.qfox.jestful.core.Response;
import java.io.IOException;
import java.io.InputStream;
/**
* <p>
* Description:
* </p>
* <p>
* <p>
* Company: 广州市俏狐信息科技有限公司
* </p>
*
* @author Payne 646742615@qq.com
* @date 2016年5月10日 下午5:52:27
* @since 1.0.0
*/
public class Respo... | 18.685714 | 63 | 0.678899 |
dbc16ffc3c99dfb7298e71f2ce2ead4a47626234 | 1,634 | package org.danielpacker.restapi.service;
import java.util.DoubleSummaryStatistics;
// This class is a simple POJO for display in the controller.
// It is updated by the Statistics singleton.
public class StatisticsView {
private long count = 0;
private double sum = 0.0;
private double avg = 0.0;
pri... | 22.081081 | 74 | 0.593023 |
6f420d85e33fb8f27148edf26620c8e9daa07afe | 623 | package com.mobileteknoloji.runners;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "@target/rerun.txt",
glue = "com/mobileteknoloji/step_definitions",
// dryRun = false,
... | 23.961538 | 81 | 0.661316 |
76595193757a91e0e607819676fccd75ef98a1eb | 202 | package authoring.gui.cartography;
/**
* Delta class to help with dragging.
*
* @author Harry Guo, Aditya Srinivasan, Nick Lockett, Arjun Desai
*
*/
public class Delta {
double x;
double y;
}
| 15.538462 | 66 | 0.688119 |
ddd6d50ba52f3b489421e1ff365c7c8c9d880fc8 | 3,121 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.requestitem;
import org.apache.commons.lang.StringUtils;
import org.apache.log4... | 39.506329 | 137 | 0.735662 |
cd9c9f6c3a5e2277d445a1a4eed105f5fe8ac29c | 3,951 | // Copyright 2015-2020 SWIM.AI inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 29.051471 | 109 | 0.685396 |
26dacba0b593e94fcb772529c84b5159429e1f32 | 2,756 | /* *******************************************************************
* Copyright (c) 2002, 2010 Contributors
* 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 and is available at
... | 23.355932 | 115 | 0.690131 |
9dd881d1c2d13be024ab68fd7a9378f171d5e752 | 876 | package me.yingrui.simple.crawler.configuration.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.List;
import java.util.stream.Collectors;
@Configuration
@ConfigurationProperties(prefix = "wrappers")... | 28.258065 | 75 | 0.714612 |
e9be0718fbfe2752727f49788b912c681bf3c2f3 | 475 | package com.qfox.network.downloader;
/**
* <p>
* Description:
* </p>
*
* <p>
* Company: 广州市俏狐信息科技有限公司
* </p>
*
* @author yangchangpei 646742615@qq.com
*
* @date 2015年8月13日 下午12:20:16
*
* @version 1.0.0
*/
public interface Callback {
void success(AsynchronousDownloader<?> downloader);
void failure(A... | 17.592593 | 91 | 0.701053 |
7f7a2b1d4b7f43cbe56e197b0740752998b30972 | 6,298 | /*
* Copyright (c) 2010-2016. Axon Framework
*
* 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 ... | 40.896104 | 110 | 0.688314 |
e9abe3e181f3f3644f6e9376a9ca522d1dbc45f1 | 6,292 | package org.moskito.central.connectors.rest;
import com.sun.jersey.api.core.ResourceConfig;
import com.sun.jersey.core.util.Base64;
import com.sun.jersey.spi.container.ContainerRequest;
import com.sun.jersey.spi.container.ContainerRequestFilter;
import com.sun.jersey.test.framework.AppDescriptor;
import com.sun.jersey... | 31.939086 | 123 | 0.611252 |
800790793024387dd0bdbeb526c19f343b5863da | 6,099 | package cn.m1yellow.mypages.excavation.service.impl;
import cn.m1yellow.mypages.common.util.FileUtil;
import cn.m1yellow.mypages.common.util.ObjectUtil;
import cn.m1yellow.mypages.common.util.RedisUtil;
import cn.m1yellow.mypages.common.util.UUIDGenerateUtil;
import cn.m1yellow.mypages.excavation.bo.UserInfoItem;
imp... | 35.876471 | 127 | 0.657157 |
975b4df477d026e1d39c46a83588f0a90c1e10cd | 686 | package org.zstack.header.console;
import org.zstack.header.message.APIEvent;
/**
* Created with IntelliJ IDEA.
* User: frank
* Time: 11:27 PM
* To change this template use File | Settings | File Templates.
*/
public class APIRequestConsoleAccessEvent extends APIEvent {
private ConsoleInventory in... | 22.866667 | 65 | 0.666181 |
656608e5b4406b2bc4fe704758236f3adc8db636 | 2,229 | package org.protempa.proposition.value;
/*
* #%L
* Protempa Framework
* %%
* Copyright (C) 2012 - 2015 Emory University
* %%
* 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
*
* ... | 25.918605 | 86 | 0.628533 |
c0ccec187088ebef99b27adca6ec9627352033db | 7,360 | package com.salesorderapp.backend.ResourceControllers;
import java.util.List;
import java.util.Map;
import com.salesorderapp.backend.daos.CustomerDao;
import com.salesorderapp.backend.daos.OrderLineDao;
import com.salesorderapp.backend.daos.ProductDao;
import com.salesorderapp.backend.daos.SalesOrderDao;
import com.s... | 34.392523 | 116 | 0.692391 |
6e23e5f6a1bf89c67b1a9ef9fb2114078324da45 | 578 | package com.lin.aop.handler;
import com.lin.aop.aspect.JoinPointInfo;
import com.lin.aop.listener.LogTraceListener;
import java.util.List;
/**
* 切点处理器
*
* @author dadiyang
* @since 2019/3/1
*/
public interface JoinPointHandler {
/**
* 切点处理
*
* @param joinPointInfo 切点相关信息
* @return 处理结果
... | 18.0625 | 72 | 0.66263 |
00b703923e382908007690a4e06c16b1aada4d94 | 4,143 | /*
* TestResult.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... | 27.805369 | 103 | 0.658219 |
76db35f2abd1b93b03dc5db7de034c621cca67a7 | 437 | package com.voting.sessao.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class Sess... | 21.85 | 61 | 0.805492 |
801c17cfe61a6e517e36044982d8c3c40dbed3f5 | 3,186 | /**
* Copyright (c) 2014 SQUARESPACE, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 29.229358 | 111 | 0.695229 |
6ab280e4c16c45b5fc13c39c703bca3712a4e5ab | 350 | package com.revauniversity.revasdpapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class firstyearsdp extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ac... | 25 | 56 | 0.771429 |
e1186d56255ac6385fee999c3c1c43556e61c5b7 | 570 | package com.example.xsy.pocketmusic;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* A simple {@link Fragment} subclass.
*/
public class NetMusicListFragment extends ... | 19.655172 | 62 | 0.731579 |
8f54ec3fef97215cc3d0cc80a7d514a9d32137f9 | 3,190 | package com.codiform.moo.property.source;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import com.codiform.moo.MissingSourcePropertyValueException;
public class ReflectionSourceProperty implements SourceProperty {
private... | 30.380952 | 91 | 0.723824 |
b6ccb0dabf91a1761a5da27f7aecd8301905488a | 241 | package com.jpworks.datajdbc.employee.vo;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDate;
@Data
@Builder
public class Salary {
private LocalDate fromDate;
private long salary;
private LocalDate toDate;
}
| 17.214286 | 41 | 0.763485 |
aaff928d1750c254343c4a73ce5d4968e00057eb | 5,765 | /*
* Copyright 2016-2018 shardingsphere.io.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 54.386792 | 149 | 0.734085 |
2802505e9a8dbd17ad56e8eebae3b8bbe4f96ca5 | 477 | package com.dogigiri.core.concurrency.executiveframework.implementingasynchronousapi;
public class LongOperation {
public static void takeTime() {
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public static void takeTim... | 25.105263 | 85 | 0.587002 |
5257e093c0e69413325ffc18acd4d4e2ffdc4986 | 14,718 | package codes.writeonce.dispatcher;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java... | 42.051429 | 120 | 0.506319 |
740be3904584d99b9e150cff8391c6d0e7b627a6 | 394 | package listeners;
import java.util.List;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.widgets.Table;
public abstract class TableListener implements MouseListener
{
protected Table table;
protected List<?> data;
public void setTable(Table table)
{
this.table=table;
}... | 17.130435 | 61 | 0.692893 |
0ff0078d05ac67fe47734038c8e469f3787782da | 5,933 | package edu.gemini.spModel.gemini.seqcomp;
import edu.gemini.pot.sp.ISPNodeInitializer;
import edu.gemini.pot.sp.ISPSeqComponent;
import edu.gemini.pot.sp.SPComponentType;
import edu.gemini.shared.util.immutable.ImOption;
import edu.gemini.spModel.gemini.calunit.CalUnitConstants;
import edu.gemini.spModel.gemini.calu... | 36.623457 | 117 | 0.685151 |
80102a9262ae28a0ccd325e393fb281f9415418f | 2,018 | /*
* 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
* distribute... | 31.046154 | 87 | 0.578791 |
094e3e3e5fed0b561b5cfe311e8607ab22627228 | 6,345 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 36.465517 | 157 | 0.666351 |
4cb5c226c02896b5787511d23ae57268ca381c2f | 3,573 | /*
* Copyright (c) 2008, 2013, 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 ... | 34.68932 | 99 | 0.715925 |
bd1af33fa0804abe6ccd4be229e5a27fe8233a1c | 254 | package com.trusona.sdk.resources.exception;
public class ResourceNotProcessable extends TrusonaException {
private static final long serialVersionUID = 979016294537540040L;
public ResourceNotProcessable(String message) {
super(message);
}
} | 25.4 | 67 | 0.80315 |
ad0deb28879125e9156efe8ae2408909665c3956 | 1,439 | package main;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import main.utils.readwrite.ReadWriteFile;
import java.io.FileOutputStream;
import java.io.IOException;
import java.uti... | 27.150943 | 137 | 0.641418 |
eaed718b28e410ef5fb26e53d0454363fde6d6cd | 374 | package ghissues;
import act.controller.annotation.UrlContext;
import org.osgl.mvc.annotation.GetAction;
@UrlContext("821")
public class Gh821 extends BaseController {
@GetAction("invalid_json")
public String getInvalidJSON() {
return "abc";
}
@GetAction("valid_json")
public String getVa... | 18.7 | 44 | 0.668449 |
980e927dc7fed2774d56f0d92cd02f7a7cbc226f | 4,075 | package com.gdg.hanoi.demo;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.firebase.client.AuthData;
import com.firebase.client.DataSnapshot;
import com.firebase.... | 38.443396 | 96 | 0.60908 |
5bd184fe938493aba87b372c507eb00d8f450b90 | 1,686 | package www.bwsensing.com.common.netty.initializer;
import www.bwsensing.com.common.constant.NettyConstants;
import org.springframework.beans.factory.annotation.Autowired;
import www.bwsensing.com.common.netty.decoder.NettyServerDecoder;
import www.bwsensing.com.common.netty.handler.NettyTcpServerHandler;
import io.ne... | 39.209302 | 76 | 0.763345 |
5c44db8a6556cebf7a5cd1f7a8ece92fe35e984e | 481 | package com.ccrma.faust;
public class Smooth {
private float delay = 0;
private float s = 0;
public void reset(){
delay = 0;
}
// set the smoothing (pole)
public void setSmooth(float smooth){
s = smooth;
}
// compute one sample
public double tick(float input){
... | 20.041667 | 46 | 0.590437 |
6c26ee0fe3a6da4f6f0baf0a97ce0c4b3f6d6780 | 1,209 | package org.tests.basic.encrypt;
import io.ebean.BaseTestCase;
import io.ebean.DB;
import io.ebean.SqlRow;
import org.junit.jupiter.api.Test;
import org.tests.model.basic.EBasicEncryptBinary;
import java.sql.Timestamp;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestEncryptBinary exten... | 22.388889 | 75 | 0.686518 |
4a0a33cbcf31327c7fdcb40bc818645be8c037e1 | 7,674 | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 29.178707 | 115 | 0.752802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.