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 |
|---|---|---|---|---|---|
42d6d7cfab78b2078252c8fa2b7184e0da6f7a0e | 4,318 | /*
* #%L
* Health Services Platform Consortium - HSPC Client
* %%
* Copyright (C) 2014 - 2015 Healthcare Services Platform Consortium
* %%
* 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... | 40.35514 | 108 | 0.738768 |
9ec4244c515ca12c3e02a34d7adf4587d25f7529 | 762 | package com.nowakArtur97.globalTerrorismAPI.advice;
import com.github.wnameless.spring.bulkapi.BulkApiController;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframew... | 42.333333 | 132 | 0.843832 |
0c97620d63cc95208a9500e1d64aaa977303c60e | 2,389 | /*
* 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... | 30.628205 | 93 | 0.662202 |
87b93adc18c2a46e62463d9cbff4897f27505447 | 1,394 | package com.showka.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.pe... | 24.034483 | 107 | 0.74462 |
87f9aa3833174ea0481c7e5ef93226a7f86cc519 | 3,849 | package eu.okaeri.commons.indexedset;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
@RequiredArgsConstructor
public class A... | 26.006757 | 130 | 0.631593 |
94c22b1ed10dcfb815319dc2a3e0762eaa9ba4e6 | 966 | package com.study.shop.business.controller.fallback;
import com.study.shop.business.dto.UserInfo;
import com.study.shop.business.feign.fallback.ProfileFeignFallback;
import com.study.shop.commons.dto.ResponseResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Tiger
* @date 2019-09-16
* @... | 31.16129 | 119 | 0.73499 |
96c6bf3c525b20f7cab58d9e5a60d5589c836433 | 998 | // $Id: ElementTest.java 96 2005-02-28 21:07:29Z blindsey $
package com.blnz.xsl.expr;
import com.blnz.xsl.om.*;
/**
* A compiled XPath expression (component)
* tests a node for being an ELEMENT with a
* given Name
*/
class ElementTest extends PathPatternBase
{
private final Name name;
/**
* c... | 17.206897 | 59 | 0.566132 |
b08d361ff11d179d433ceafae2e3df1256f5ecf8 | 3,689 | /*
Copyright 2019 The TensorFlow Authors. 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 applicable la... | 30.741667 | 108 | 0.57441 |
349821df7cbe5b04768d5e20cabe2f87e93fe3bb | 60 | /**
* Blade Render
*/
package com.blade.mvc.view.template; | 15 | 36 | 0.683333 |
8f6aa73ea790d53247cb955c2b14586fd750f226 | 4,251 | package l.s.common.util;
import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class CookieService {
private static CookieService cookieService;
private String path = "cookies.sqlite";
private CookieService(boolean reset)th... | 25.153846 | 96 | 0.599388 |
aa0db93d1ebe79863b577e8ceadf23c8385ccc1c | 1,753 | package cn.e3mall.cart.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframe... | 29.216667 | 116 | 0.789504 |
2313cd302e5f17fd5f3b9d59e5d63f8dd9e99677 | 8,202 | /*
* Copyright 2019 Arcus 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 law or agreed to ... | 37.623853 | 143 | 0.642039 |
288c5d760374cec2a73e6dfd99ded851ef7b8484 | 1,017 | package application;
import javafx.geometry.Pos;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
public class AlertBox {
public static void display(String title, St... | 24.804878 | 59 | 0.702065 |
229e3617f9d6443143ee03a244d7c98988f9b185 | 3,221 | package com.yz.service.imp;
import com.yz.dao.AnalyzeManDao;
import com.yz.model.AnalyzeMan;
import com.yz.model.UserRole;
import com.yz.service.AnalyzeManService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.List;
@Component("analyzeManService")
public class An... | 27.29661 | 75 | 0.631791 |
2fdea7c36e6ec4f5bf7a90bc750a9493f11abeef | 823 | package com.lujiatao.ims.web.controller;
import com.lujiatao.ims.common.model.BaseVO;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annot... | 28.37931 | 91 | 0.739976 |
3ac55b55c93c90da44494087ac4bdaf83dc1e4c7 | 2,721 | package com.haxademic.demo.hardware.dmx;
import com.haxademic.core.app.P;
import com.haxademic.core.app.PAppletHax;
import com.haxademic.core.debug.DebugView;
import com.haxademic.core.draw.color.EasingColor;
import com.haxademic.core.hardware.dmx.DMXWrapper;
import com.haxademic.core.hardware.mouse.Mouse;
import com.... | 29.258065 | 136 | 0.676222 |
1023befeced64a56812f10d0107a88fc68075501 | 4,193 | package com.google.android.material.textview;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StyleableRes;
import androidx.... | 50.518072 | 210 | 0.749106 |
37bc6d1a351247d4f50cd105713dd86cef0d7d67 | 1,644 | package org.oliverweber.tools.sps.domain;
/**
*
* @author oweber - orlosch74@gmail.com
*
*/
public class PortStatistics
{
private int portNumber;
private Long totalBytesReceived;
private Long totalBytesSent;
private Long totalCrcErrorPackets;
public PortStatistics( int portNumber, Long t... | 22.833333 | 140 | 0.692214 |
28e2da479603e13a0e213f0e36508de7844ab612 | 21,270 | package io.panyu.skydrill.hive;
import com.facebook.presto.hive.ForCachingHiveMetastore;
import com.facebook.presto.hive.HdfsConfiguration;
import com.facebook.presto.hive.HdfsEnvironment;
import com.facebook.presto.hive.HiveBasicStatistics;
import com.facebook.presto.hive.HiveConnectorId;
import com.facebook.p... | 46.85022 | 138 | 0.612553 |
4c7a6b168181e0eb3fe9d1b620e44de2f44a6e53 | 5,947 | /*
* Copyright (c) 2007-2017 MetaSolutions AB
*
* 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... | 37.16875 | 182 | 0.74794 |
24fd1175fa29d96432c46250631fbeb24cabdac7 | 4,580 | /*
* 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 ... | 42.803738 | 117 | 0.735153 |
edda328e1fb0f9124a8913ff9e7d4a7b787012a2 | 3,300 | package cc.protea.util.http;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/*
Copyright 2012 Joe J. Ernst
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 ... | 29.72973 | 126 | 0.65 |
7facfe4a1289324fa6e2738abc65dc6a87c770af | 1,223 | /*
* Copyright 2021 EPAM Systems, Inc
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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 Li... | 42.172414 | 134 | 0.637776 |
0ee8c54a99197e320066423ca26b6ccd1e4cce15 | 782 | /*
HashSet implements Set interface which does not allow duplicate value.It is not
synchronized and is not thread safe.
Definition of duplicate can be quite tricky sometimes.
Lets consider two cases here.
In case of primitive types(such as interger, String)
Source:: https://java2blog.com/how-hashset-works-in-java... | 27.928571 | 80 | 0.686701 |
d4ff0283206e1d6724629a831dbabcadb3ea7ed8 | 445 | package com.codeborne.selenide.impl;
import com.codeborne.selenide.Driver;
import org.openqa.selenium.OutputType;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.Optional;
@ParametersAreNonnullByDefault
public interfac... | 26.176471 | 74 | 0.829213 |
fcaadfbe9cd8cf884dac584a6f47e1573a02fed5 | 520 | package academy.devdojo.maratonajava.javacore.Lclassesabstratas.dominio;
public class Desenvolvedor extends Funcionario{
public Desenvolvedor(String nome, double salario) {
super(nome, salario);
}
@Override
public void calcularBonus() {
this.salario = this.salario + this.salario * 0.0... | 23.636364 | 72 | 0.578846 |
dcf3d6a1de061952e284567e149c52901274c813 | 1,031 | package com.sdl.dxa.api.datamodel.model;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.sdl.dxa.api.datamodel.model.util.ModelDataWrapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
@Eq... | 23.431818 | 61 | 0.697381 |
c793ec1d1058ade1b27823445ebeb39eaee69f95 | 6,443 | /*
* Copyright (c) 2016 Tibor Adam Varga (tibor.adam.varga on gmail)
*
* 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... | 37.459302 | 125 | 0.603446 |
7cc867d13978d1268ea4766097a6a5b606d5b601 | 69 | class Test {
int myT;
public int getMyT() {
return myT;
}
} | 11.5 | 23 | 0.565217 |
e37fb477aefc3ae7405404437b3c8b079a03714b | 2,656 | /*
* Copyright (c) 2020 - 2022 Microsoft Corporation
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* ... | 31.247059 | 98 | 0.648343 |
e7e34615b218ab36725ccc42a38b9565588c7754 | 613 | package com.github.edgar615.gateway.plugin.ratelimit;
import com.github.edgar615.gateway.core.dispatch.Filter;
import com.github.edgar615.gateway.core.dispatch.FilterFactory;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
/**
* RateLimiterFilter的工厂类.
* Created by edgar on 16-12-11.
*/
public cla... | 26.652174 | 64 | 0.745514 |
0219c95da380113b3055be8fe7566935e4957b3a | 3,062 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 39.25641 | 100 | 0.8145 |
4ae1f1eafe354982131f48d8544ee58e77ecff4b | 311 | package com.mea.site.common.base.model;
import java.io.Serializable;
/**
* @author Michael Jou
* @PACKAGE com.gladtrust.measite.common.base.model
* @program: measite-manage
* @description: ${description}
* @create: 2018-02-24 10:28
*/
public abstract class AbstractEntity<T> implements Serializable {
}
| 22.214286 | 65 | 0.736334 |
9802a49b30de31039bafc4023d72c3759dd5ef86 | 1,851 | package mapper;
import nl.jiankai.mapper.ResultSetMapper;
import nl.jiankai.mapper.ResultSetMapperFactory;
import nl.jiankai.mapper.strategies.IdentityFieldNamingStrategy;
import nl.jiankai.mapper.strategies.LowerCaseDashesFieldNamingStrategy;
import nl.jiankai.mapper.strategies.LowerCaseUnderscoreFieldNamingStrategy;... | 38.5625 | 129 | 0.810913 |
55cc53500b99ad829e79c714827d94139b375c36 | 1,525 | package com.zyd.blog.spider.processor;
import com.zyd.blog.spider.model.BaseModel;
import org.apache.commons.lang3.StringUtils;
import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.selector.Html;
import java.util.Arrays;
/**
* 解析处理普通的Html网页
*
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @ve... | 40.131579 | 124 | 0.672131 |
5822bea72db539f38622ae800d2aefeba247e27d | 947 | package com.gogh.floattouchkey.receiver;
import android.app.admin.DeviceAdminReceiver;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.content.Context;
import android.support.annotation.Keep;
import com.gogh.floattouchkey.provider.SensorProvider;
/**
* C... | 31.566667 | 91 | 0.721225 |
c0413a261c7a46878f308a7503b3e670fc54e3c2 | 390 | package org.ovirt.engine.ui.uicommonweb.builders;
/**
* Equivalent of {@link CompositeBuilder} purely for synchronously running builders (i.e. descendants of
* {@link SyncBuilder}).
*/
public class CompositeSyncBuilder<S, D> extends CompositeBuilder<S, D> implements SyncBuilder<S, D> {
public CompositeSyncBuil... | 30 | 104 | 0.723077 |
ffee7d47df5a5d49e10bbb11184fe48d9cd7c445 | 5,723 | package eeui.android.eeuiGetui.module;
import com.alibaba.fastjson.JSONArray;
import com.igexin.sdk.PushManager;
import com.igexin.sdk.Tag;
import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.bridge.JSCallback;
import app.eeui.framework.extend.base.WXModuleBase;
import app.eeui.framework.ui.eeui;
publ... | 22.892 | 119 | 0.602306 |
97b6b7511af4436fd1276666d2b0b068e99801da | 3,190 | package gov.va.med.imaging.protocol.vista;
import gov.va.med.OID;
import gov.va.med.RoutingToken;
import gov.va.med.RoutingTokenImpl;
import gov.va.med.exceptions.RoutingTokenFormatException;
import gov.va.med.imaging.artifactsource.ArtifactSourceMemento;
import gov.va.med.imaging.exchange.business.Site;
import gov.va... | 16.878307 | 78 | 0.721944 |
961a14041a83954bc061f00d635232f74c3af411 | 2,460 | package base;
public class Main {
/**
* # Lab Three
*
* Ok for this lab we're going to reiterate a lot of the things that we went over in class.
*
* Our Goals are:
* - Conditionals
* - If
* - Else
* - Else If
*/
public static void main(String[] args... | 32.8 | 117 | 0.545935 |
176b4c50b310f56283f1ea74865e3d3b72ab722e | 189 | package example;
public class Persister {
public int persist(int value) {
if(value > 1000) {
throw new RuntimeException();
}
return value;
}
}
| 15.75 | 41 | 0.550265 |
55fd34ca30f694af643622b01d3ca6fb5d0ceecc | 3,322 | package org.solovyev.android.fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import org.solovyev.common.Builder;
import org.solovyev.common.JPredicate;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public final class MultiPaneFragmentD... | 32.891089 | 237 | 0.649007 |
028c432c22c86ae2cfe69183351df7f038d58c7c | 1,152 | package GameObjects;
import ConstantTypes.Variables;
import GameCore.GameState;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class MainBuilding extends Building {
public MainBuilding(int xPos, int yPos, BufferedImage... | 28.8 | 105 | 0.570313 |
6f0b50f69f4357ccd06e498a32a8166a1b299e10 | 19,548 | package alpha.nomagichttp.testutil;
import alpha.nomagichttp.Config;
import alpha.nomagichttp.HttpServer;
import alpha.nomagichttp.handler.ClientChannel;
import alpha.nomagichttp.handler.ErrorHandler;
import alpha.nomagichttp.message.Response;
import org.assertj.core.api.AbstractThrowableAssert;
import org.junit.jupit... | 34.907143 | 108 | 0.611162 |
9942aaffb018d0bc83ffe7c18f6342fff692812c | 3,493 | /*
* 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 util.command;
import bonus.chain.ProcessadorBonus;
import bonus.regiao.ProcessadorRegiao;
import bonus.strategy.IBonusStrategy... | 39.693182 | 192 | 0.687947 |
9960849f336f46be938cb4fa55cb3f1579fd5ab0 | 261 | package com.in2bits.shims;
/**
* Created by Tim on 7/4/17.
*/
public class WebException extends RuntimeException {
public WebException() {
super();
}
public WebException(String message, Throwable t) {
super(message, t);
}
}
| 16.3125 | 54 | 0.624521 |
aebc92250873e9abf9497e2f0456b58840638bdd | 75 | package com.kshrd.derphsar_api.repository.dto;
public class ReportDto {
}
| 15 | 46 | 0.8 |
e9012cd40e79a67b4b11b88e045f9641bc64aa20 | 684 | package com.yeyu.dearinformaton.global.module;
import android.content.Context;
import com.yeyu.dearinformaton.global.prepare.ContextLife;
import com.yeyu.dearinformaton.global.prepare.PreApp;
import com.yeyu.dearinformaton.MyApplication;
import dagger.Module;
import dagger.Provides;
/**
* Created by gaoyehua on 20... | 22.064516 | 58 | 0.754386 |
880de5b063f0476f241be146a77aa680fb95974b | 908 | package com.sereno.vfv.Data;
import java.io.File;
public class CloudPointDataset extends Dataset
{
/**\brief Constructor
* Read the data contained in file.
* @param file the file to read at*/
public CloudPointDataset(File file)
{
this(file.getAbsolutePath(), file.getName());
}
/... | 25.942857 | 74 | 0.648678 |
0892f3c1e36f1fa0f4e5c15eeb1804e2df8eab1b | 2,823 |
package mage.cards.c;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.BecomesMonstrousSourceTriggeredAbility;
import mage.abilities.common.DiesCreatureTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.... | 38.148649 | 154 | 0.758767 |
6751d5b3f8db429287950467f0d851728cfc3ea0 | 3,940 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 45.287356 | 146 | 0.698985 |
6193ae6b718862bb73efbd6f0aaeca32879614bf | 756,106 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package team.uptech.motionviews;
public final class R {
public static final class anim {
public static final int abc_fade_in=... | 58.019184 | 185 | 0.663291 |
84257834a34e5c42e5b22d4e03f2c60a44755196 | 4,143 | // Autogenerated by extract.py for Jgments: Do not edit!
package com.google.jgments.syntax;
import com.google.jgments.TokenActions;
import com.google.jgments.TokenMatcher;
import com.google.jgments.StateActions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
/**
* Th... | 33.144 | 93 | 0.547429 |
debaa8ae075428b0f4fcd63e571164daccb95d46 | 2,786 | package net.mamot.bot.timertasks;
import com.pengrad.telegrambot.TelegramBot;
import net.mamot.bot.feed.Entry;
import net.mamot.bot.feed.Feed;
import net.mamot.bot.feed.printer.EntryPrinter;
import net.mamot.bot.timertasks.FeedTask.FeedRepo;
import org.mockito.ArgumentMatcher;
import org.mockito.InOrder;
import org.mo... | 26.283019 | 89 | 0.653984 |
624351bd3d11e9998ee65aeb3ca72086d0c1dc92 | 4,544 | package org.imageconverter.domain.imagetype;
import static com.jparams.verifier.tostring.NameStyle.SIMPLE_NAME;
import static java.util.Optional.ofNullable;
import static javax.validation.Validation.buildDefaultValidatorFactory;
import static nl.jqno.equalsverifier.Warning.NONFINAL_FIELDS;
import static nl.jqno.equals... | 31.776224 | 137 | 0.768486 |
244f3fce9c0353f8b35e30e9940bf2dc900a0e47 | 750 | import java.io.*;
class BRRead {
public static void main(String args[]) throws IOException
{
char c;
int i;
FileOutputStream fout = new FileOutputStream(args[0]);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter characters, 'q' to quit.");
// read charact... | 27.777778 | 75 | 0.648 |
be966a65a85c138e9b1c3b25566d794ce685d354 | 5,185 | package org.bsc.confluence.rest.scrollversions.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.Value;
import org.bsc.confluence.ConfluenceService;
import java.util.List;
import static java.util.Optional.ofNullable;
public interface ScrollVersions {
interfa... | 31.047904 | 115 | 0.590164 |
b7083c5502ecd3823e0780057438eb691333dabd | 2,334 | /*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... | 27.139535 | 78 | 0.666238 |
f0d8445a82575caa4191f6886d540529e61d0013 | 387 | package easylog.spring;
import easylog.core.Log;
import easylog.core.LogLevel;
import easylog.core.LogPosition;
import org.springframework.stereotype.Component;
@Component
public class TestClass {
@Log(detailed = true)
@Log(value = "Exit ${methodName}...", position = LogPosition.AFTER, level = LogLevel.WARN)... | 22.764706 | 94 | 0.702842 |
64b57a5678a1e8ee53ba2d0cf1eaf4a0c1d4d56d | 3,374 | package com.app.dmm.other;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
import Decoder.BASE64Decoder;
public class EncryptUtil {
/*
* 加密用的Key 可以用26个字母和数字组成 此处使用AES-1... | 33.078431 | 167 | 0.629223 |
24e3b89f30c8e95867016a4510d24f47193eef3e | 1,173 | package com.ultimatesoftware.aeon.core.command.execution.commands.mobile;
import com.ultimatesoftware.aeon.core.command.execution.commands.initialization.WebCommandInitializer;
import com.ultimatesoftware.aeon.core.common.Resources;
import com.ultimatesoftware.aeon.core.common.web.interfaces.IByWeb;
import com.ultimat... | 40.448276 | 114 | 0.774084 |
39f1113e91faddefd044e7728425d5e306a69e85 | 8,550 | package no.nav.foreldrepenger.behandlingslager.behandling.historikk;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.persistence.Entity;
import javax.persisten... | 37.012987 | 194 | 0.715439 |
364270c3ef6945e3a8d0640239a694f2a0e4903e | 563 | package paxos.fragmentation;
import java.io.Serializable;
class MessageFragment implements Serializable {
long id;
byte[] part;
int fragmentNo;
int totalFragments;
public MessageFragment(long id, byte[] part, int fragmentNo, int totalFragments) {
this.id = id;
this.part = part;
... | 24.478261 | 100 | 0.64476 |
c5ed175b48c1a1de513985b44dcce9225ca73889 | 2,100 | package com.alibaba.json.bvt.path;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;
public class JSONPath_reverse_test extends TestCase
{
public void test_reser... | 47.727273 | 135 | 0.605714 |
98eb24cf92e0872a3c9ed5fcdf83381cfe7649d9 | 2,587 | /*******************************************************************************
* Copyright (c) 2000, 2014 IBM Corporation and others.
* 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, an... | 27.817204 | 84 | 0.662543 |
1a4f93ba83be28048493d376ac100d58a29f1222 | 2,762 | package org.ovirt.engine.core.bll;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.common.AuditLogType;
import org.ovirt.engine.core.common.action.ApproveVdsParameters;
import org.ovirt.engine.core.common.action.LockProperties;
import org.ovirt.engine.core.common.businessentities.... | 38.361111 | 117 | 0.689356 |
4feb0ee473c6d7ba651134d647e4cd3e5651be84 | 12,900 | package org.esupportail.smsu.business;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import org.esupportail.commons.services.logging.Logger;
import org.esupportail.commons.services.logging.LoggerImpl;
import org.esupportail.smsu.business.beans.Member... | 33.59375 | 154 | 0.716512 |
176069efdfae817760c9b61452b3d418fc2a7aec | 1,716 | package com.michaelsimionidi.ci346;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.*;
public class Database
{
//Creates a connection to the database for the session
public Database() throws Exception {
try {
Class.forName("c... | 26.8125 | 174 | 0.708625 |
c7a6ffcace2afd3630601cec187ee83445fd5502 | 900 | package com.hausontech.hrs.daoImpl.dataPorcessing.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.hausontech.hrs.bean.dataProcess.RequestInstanceBean;
@Repository
public interface RequestInstanceMapper {
public List <RequestIn... | 45 | 100 | 0.866667 |
70bb34b26e3e39b1d48adad63254f793cad487ac | 102 | package com.blocklang.develop.designer.data;
public class InputSequencePort extends SequencePort{
}
| 17 | 52 | 0.833333 |
76e511ee02f3dab577cdc1666d7a7ddb3ae293bf | 330 | package tk.mybatis.mapper;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;
/**
* 统一tk.mybatis接口
* <p>
* 人皆知有用之用,而莫知无用之用也
* </p>
* @version v1.0.0
* @author 佐斯特勒
* @date 2020/3/2 15:14
* @see CommonsMapper
**/
public interface CommonsMapper<T> extends Mapper<T>, MySqlMapp... | 19.411765 | 69 | 0.693939 |
017a5d1af765ff9889a14e3b77aa0ac16534bde7 | 4,720 | package com.kuahusg.weather.receiver.AppWidget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import com.kuahusg.weather.R;
import com.kuahusg.weather.UI.activities.WeatherMainActivity;
imp... | 42.522523 | 116 | 0.614831 |
3498e08132f2b860403b4df917416b4297e7deea | 25,676 | /*
* 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 ... | 42.793333 | 175 | 0.60835 |
081d98fd47564981e8c46cb9f5b545fb93638e50 | 10,596 | package test;
import main.Armazenamento;
import org.junit.Before;
import org.junit.Test;
import org.xml.sax.SAXException;
import javax.xml.parsers.ParserConfigurationException;
import java.io.*;
import java.nio.file.Files;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
impor... | 40.911197 | 140 | 0.667894 |
82887d2f48725563cd3b92bd8893e322f314c3ba | 5,348 | package io.renren;
import com.baomidou.mybatisplus.generator.config.GlobalConfig;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.baomidou.mybatisplus.generator.AutoGenerator;
im... | 32.412121 | 148 | 0.620045 |
6cd9149298cb2bfbfb68a04f2900a25e193a4c57 | 19,941 | /*
* Copyright 2005-2014 The Kuali Foundation.
*
* Licensed under the Educational Community License, Version 1.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/ecl1.php
*
* Unless required b... | 54.632877 | 192 | 0.687328 |
1f5799ba5809b0966b94dceb208c8d7f7f6a6ffb | 1,711 | package org.bhavaya.ui.diagnostics;
import EDU.oswego.cs.dl.util.concurrent.Mutex;
import org.bhavaya.ui.MenuGroup;
import org.bhavaya.util.ThreadUtilities;
import javax.swing.*;
import java.awt.*;
/**
* Description
*
* @author Brendon McLean
* @version $Revision: 1.3 $
*/
public abstract class DiagnosticContex... | 20.614458 | 60 | 0.617183 |
ac92900fc8caa67e61482a6ae1e37e2f0558a01a | 699 | package org.alcha.algalonj.network;
/**
* <p>Created by Alcha on 8/9/2017.</p>
*/
public enum StatusCodes {
OK(200),
BAD_REQUEST(400),
NOT_FOUND(404),
NOT_ACCEPTABLE(406),
INTERNAL_SERVER_ERROR(500),
SERVICE_UNAVAILABLE(503),
UNKNOWN;
private int code;
StatusCodes() {
t... | 17.923077 | 61 | 0.575107 |
9a9efa2a227f6dbde04e8da3f55b2b3f97d77b46 | 394 | package pointGroups.gui.event.types;
import pointGroups.gui.event.Event;
public class ShowNextEvent
extends Event<ShowNextHandler>
{
public final static Class<ShowNextHandler> TYPE = ShowNextHandler.class;
@Override
public Class<ShowNextHandler> getType() {
return TYPE;
}
@Override
protected void... | 18.761905 | 74 | 0.753807 |
dddfdbbee8920a8b7dd8adcef061d53d2dd61f1c | 322 | package com.gopivotal.cf.workshop.repository;
import org.springframework.data.repository.CrudRepository;
import com.gopivotal.cf.workshop.entity.Attendee;
/**
* JPA repository for the Attendee entity.
*
* @author Brian Jimerson
*
*/
public interface AttendeeRepository extends CrudRepository<Attendee, Long> {
... | 20.125 | 76 | 0.779503 |
5d0cabb4dc6a75c7993358353397ff806e369f0e | 703 | package rule.engine.aviator.result;
import java.util.Map;
/**
* 匹配结果
* @author tao.yang
* @date 2020-08-31
*/
public class Result {
private String ruleId;
private String ruleName;
private Map<String, Object> result;
public String getRuleId() {
return ruleId;
}
public void setR... | 16.738095 | 55 | 0.613087 |
1faf57c1db3573f0b873052fd5a2c792a2b0c157 | 1,537 | package org.cats.giftcertificate.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Donor {
@Id
@Column(name = "donor_id")
private Long id;
private String name;
private String shortName;
private String code;
private b... | 21.347222 | 108 | 0.644112 |
b6c5d342863022e3509e5201c7f4c546b3c93f1b | 2,067 | package com.yilian.mall.entity;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by liuyuqi on 2016/10/25 0025.
*/
public class JPMyFavoriteStorEntity extends BaseEntity {
/**
* collect_index :
* collect_id :
* collect_name :
* collect_icon :
... | 29.528571 | 62 | 0.536043 |
4dccbdf6bf66c41b4e2e418e9e116536145d0b74 | 4,024 | package com.delmar.utils.model;
import java.util.Date;
import java.util.List;
/**
* Created by admin on 2016/9/5.
*/
public class User {
private String username;
private String password;
private String name;
private String email;
private String telephone;
private byte[] userPic;
priva... | 19.439614 | 56 | 0.620527 |
37ec0e583457f03264e7f77bc9b0e75bfdf4913b | 403 | package com.blogspot.applications4android.comicreader.comics.GoComics;
import java.util.Calendar;
import com.blogspot.applications4android.comicreader.comictypes.DailyGoComicsCom;
public class CaricaturesbyKerryWaghorn extends DailyGoComicsCom {
public CaricaturesbyKerryWaghorn() {
super();
mComicName = "facesin... | 28.785714 | 81 | 0.806452 |
1a9f53a6bbf15c4d2127fec23ab5806b91e237e0 | 693 | package com.example.mq.testimage;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.GestureDetector;
import android.widget.ListView;
public class MainActivity extends AppCompatActivity {
private ListView listView;
Bitmap bitmap;
... | 28.875 | 75 | 0.748918 |
56b1529f00955ddc95dd9d257e06e22ef05cc1a3 | 813 | package com.phaxio.entities;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
/**
* A fax recipient
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Recipient
{
@JsonProperty("phone_number")
public String p... | 19.829268 | 61 | 0.723247 |
386ce034396913b93b8d09fbe0197d205045b9f2 | 215 | package day1;
public class Sample102 {
public static void main(String[] args) {
System.out.print(123);
System.out.println(456);
System.out.print("ABC");
System.out.println("DEF");
}
}
| 19.545455 | 43 | 0.618605 |
a5c8e44bed19240113f6bde0d10a066c4987c08c | 2,138 | package com.duguang.baseanimation.ui.splash;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import com.duguang.baseanimation.ContantValue;
import com.duguang.baseanimation.R;
import com.... | 23.494505 | 85 | 0.766604 |
09ea791d7cc1c3fdf4cde1f3b5b805493802f51c | 1,141 | package com.hit.thought.chapter3;
/**
* author:Charies Gavin
* date:2017/12/09,12:40
* https:github.com/guobinhit
* description:测试赋值操作符,赋值对象引用
*/
public class AssignmentOperator {
public static void main(String[] args) {
// 创建两个对象
Apple apple1 = new Apple("green");
Apple apple2 = new A... | 24.276596 | 112 | 0.580193 |
fc03b72fe838945ff3f8e52b56e576532911f92e | 49,422 | package com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task;
import com.google.common.collect.Maps;
import com.raoulvdberge.refinedstorage.RS;
import com.raoulvdberge.refinedstorage.api.autocrafting.*;
import com.raoulvdberge.refinedstorage.api.autocrafting.craftingmonitor.ICraftingMonitorElement;
import com.rao... | 39.985437 | 248 | 0.594634 |
50fb5164e12423fcabf8785ea754c70c217bf073 | 1,553 | /*
* Copyright 2012 SURFnet bv, The Netherlands
*
* 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 ... | 28.759259 | 75 | 0.780425 |
72c779a410eafed8d35f1b199225f4d7ad799b9a | 4,351 | package com.kkb.project.admin.controller;
import com.kkb.project.admin.domain.Project;
import com.kkb.project.admin.domain.ProjectWorkStyle;
import com.kkb.project.admin.domain.ProjectWorkType;
import com.kkb.project.admin.domain.vo.ProjectVo;
import com.kkb.project.admin.domain.vo.ProjectWorkTypeAndStyleVo;
import co... | 38.504425 | 151 | 0.730407 |
1493aa44093dac7d11541368ad6a2ecad9cdde35 | 410 | package loose.oose.fis.documents;
public abstract class Document {
protected String[] continut;
public Document(String[] continut) {
this.continut = continut;
}
public abstract String[] analizeaza();
@Override
public String toString() {
String res = "";
for (String cu... | 19.52381 | 42 | 0.570732 |
c54803405936ed7af41cf1acafb081c0d71b5a40 | 828 | package com.refinedmods.refinedstorage2.api.resource.list;
import com.refinedmods.refinedstorage2.api.resource.ResourceAmount;
import java.util.UUID;
import org.apiguardian.api.API;
/**
* Represents the result of an operation in a {@link ResourceList}.
*
* @param <T> the type of resource
* @param res... | 37.636364 | 100 | 0.690821 |
1e064f471cc6a9dc9b7f2e8e6e99250a4905def6 | 4,870 | package io.domisum.lib.auxiliumlib.util;
import com.google.common.collect.Sets;
import io.domisum.lib.auxiliumlib.annotations.API;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import jav... | 24.35 | 106 | 0.710472 |
97af732654b88132508aa67e42e8bfa87da17d02 | 3,893 | /*
* Copyright 2009-2012 Amazon Technologies, 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://aws.amazon.com/apache2.0
*
* This file is distributed on an "AS ... | 33.560345 | 132 | 0.656306 |
e6ae12d495503e2a9a02afd6e381ea29a0451ff9 | 810 | package com.booking.replication.commons.metrics;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.jmx.JmxReporter;
import java.util.Map;
public class JMXMetrics extends Metrics<JmxReporter> {
public JMXMetrics(Map<String, Object> configuration) {
super(configuration);
}
pr... | 26.129032 | 99 | 0.7 |
ae53206bfa5d31c096f2d53da48e44418a1d905f | 449 | package me.iHDeveloper.api.permission;
public enum Permissions {
;
private final String name;
private final Permission permission;
Permissions(String name) {
this.name = name;
this.permission = PermissionsManager.get(name);
}
public Permission get() {
return this.permission;
}
... | 16.62963 | 51 | 0.665924 |
4d560967c717521c2ef415fa26cb71466bf2ce23 | 864 | package ServerShellTests;
import Mocks.MockSocketDealer;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import ServerShell.SocketWriter;
import java.nio.channels.AsynchronousSocketChannel;
import static org.junit.jupiter.api.Assertions.*;
class So... | 23.351351 | 57 | 0.688657 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.