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 |
|---|---|---|---|---|---|
7fa25fca825d913a3adc477d1d4a2ba36a3b6bac | 6,695 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat 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/licenses/LICENSE-2.0
*
* Unless r... | 38.477011 | 161 | 0.640627 |
73aeac69f6a2aed78bcd2a13602776cca5320fb4 | 1,501 | package com.example;
import org.junit.Test;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
public class JxcTest {
@Test
public void testProcess() throws IOException {
Map<String, Integer> expected = new HashMa... | 33.355556 | 101 | 0.63491 |
17598f7292b64890725019800f25d799d98e5067 | 1,544 | package com.mycompany.mutiprocess.database;
import com.mycompany.mutiprocess.database.handlers.GetAllUsersRequestHandler;
import com.mycompany.mutiprocess.database.handlers.StoreUserRequestHandler;
import com.mycompany.mutiprocess.database.service.DBService;
import com.mycompany.mutiprocess.database.service.DBServiceI... | 36.761905 | 98 | 0.734456 |
f8e4cdfedaa20e256f86ddcb592c8e0417c6ef89 | 5,595 | package com.dengjian.chestnutshell.imageloader.nutimageloader.cache;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Environment;
import com.dengjian.chestnutshell.... | 30.243243 | 100 | 0.593923 |
2613b00e1ba6574c7ba642465a4f67582354c3a9 | 1,872 | /* @generated from adl module test2 */
package adl.test2;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import org.adl.runtime.Factory;
import org.adl.runtime.JsonBinding;
import org.adl.runtime.JsonBindings;
import org.adl.runtime.Lazy;
import org.adl.runtime.sys.adlast.ScopedName;
import or... | 20.8 | 65 | 0.651709 |
7a117c8c593d1510b3572f668b107a05099be5f4 | 362 | package io.quarkus.vault.sys;
public enum VaultSecretEngine {
KEY_VALUE("kv"),
KEY_VALUE_2("kv-v2"),
DATABASE("database"),
PKI("pki"),
TOTP("totp"),
TRANSIT("transit"),
;
private final String type;
VaultSecretEngine(String type) {
this.type = type;
}
public String... | 16.454545 | 36 | 0.582873 |
44cfc7d2bffa9a43e220e5aedc6f1c762deff2c3 | 15,104 | package com.simpmangareader.provider.mangadex;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import com.simpmangareader.callbacks.NetworkChapterPageFailed;
import com.simpmangareader.callbacks.NetworkChapterAllPagesSucceed;
import com... | 34.801843 | 143 | 0.691009 |
e84ddb05d37b69fdc03a891c7e23583870928e14 | 368 | /*
* Copyright (c) 2011-2025 PiChen
*/
package com.github.peterchenhdu.site4j.enums;
/**
* <p>
* Created by chenpi on 2019/02/05.
*/
public enum NoticeStatusEnum {
RELEASE("已发布"),
NOT_RELEASE("未发布");
private String desc;
NoticeStatusEnum(String desc) {
this.desc = desc;
}
public ... | 16 | 45 | 0.605978 |
ec13c8ce81c2091dc0122e252ca7cd29cdb0773f | 1,811 | package RoR_Engineer.actions;
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.AbstractGameAction.ActionType;
import com.megacrit.cardcrawl.actions.common.ApplyPower... | 38.531915 | 210 | 0.775814 |
297694fb94291406146e60e6fd417e7d80be964f | 3,747 | package com.vilyever.reflectkit;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
/**
* ReflectKit
* AndroidReflectKit <com.vilyever.reflectkit>
* Created by vilyever on 2015/8/18.
* Feature:
*/
public class ReflectKit {
private final ReflectKit self = this;
/... | 32.582609 | 132 | 0.619429 |
8bca7af171c97b082660b125c022e3cfef39592c | 1,104 | package com.tcc.api.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
impo... | 20.444444 | 113 | 0.73913 |
36bfcd976c8032943f0fc8c76208fc1f9241dec6 | 22,621 | package com.arcadeanalytics.service;
/*-
* #%L
* Arcade Analytics
* %%
* Copyright (C) 2018 - 2019 ArcadeAnalytics
* %%
* 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:... | 36.020701 | 151 | 0.639229 |
116075579b2c1bfe0f8f7cd374942a9115e40b99 | 365 | package com.zx.sms.connect.manager.cmpp;
import com.zx.sms.connect.manager.ClientEndpoint;
/**
*@author Lihuanghe(18852780@qq.com)
*/
public class CMPPClientEndpointEntity extends CMPPEndpointEntity implements ClientEndpoint {
@Override
public CMPPClientEndpointConnector buildConnector() {
return ne... | 24.333333 | 93 | 0.772603 |
99312d704121834751eec6746a7f73878fe454c1 | 7,340 | package com.runhuaoil.yyweather.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.runhuaoil.yyweather.db.WeatherDB;
import com.runhuaoil.yyweather.model.City;
import com.runhu... | 33.21267 | 142 | 0.56049 |
26ee1b011e9bc4610c08b38ada9d871a4427b4b6 | 9,551 | package io.quarkus.oidc.client.deployment;
import java.lang.reflect.Modifier;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.function.BooleanSupplier;
import java.util.stream.Collectors;
import javax.enterprise.context.RequestScoped;
import javax.inject.Singleton;
import ... | 42.261062 | 123 | 0.711444 |
af51016ae05a83b866df06d806f58e0d843a91e4 | 1,702 | package sia.jdbc.util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class DBManager {
private String classPath;
private String username;
private String password;
private String url;
public DB... | 26.59375 | 86 | 0.487074 |
b2aecc539b1a24f259efb5dc3413cbe3ea96ae86 | 280 | package dynamic_proxy;
public class BankServiceImp implements BankService {
@Override
public void deposit() {
System.out.println("Making a deposit");
}
@Override
public void withdraw() {
System.out.println("Withdrawing some money");
}
}
| 18.666667 | 53 | 0.653571 |
dd7a953f5ac09bcf15a79b1a6fd3e5c3230e5ea9 | 2,900 | /*******************************************************************************
* Copyright (c) 2005, 2009 SAP. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanie... | 31.521739 | 95 | 0.650345 |
e7261a8ce747333bb3d91afc147b05e80cfc58f9 | 1,497 |
package com.example.uweather.db;
import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
/**
* @author Manuuuuu
* Date: 2016年8月2... | 22.343284 | 89 | 0.724115 |
e9138e443c4860e83d796d736808a9ed219570e1 | 2,043 | /*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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 ... | 36.482143 | 88 | 0.723935 |
5935332c51ffd5246d5404a3a4b3d2c5aec3432a | 2,218 | package pt.isel.pc.examples.synchronizers;
import pt.isel.pc.utils.Timeouts;
import java.util.concurrent.TimeUnit;
/**
* Unary semaphore without FIFO policy and using {@link Object#notifyAll} on the
* {@link SimpleUnarySemaphoreV0#release} method. This algorithm is not efficient and can be improved,
* since it pr... | 30.383562 | 104 | 0.555005 |
76f21136524af62de8ffc06ba6699905a4718ebf | 4,193 | package com.japg.ticseguro.view;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import androi... | 32.007634 | 145 | 0.568328 |
9858c162ea79ff381aa01bc925d85f7f95383331 | 315 | package br.com.techHouse.zmed.exception;
public class PacienteNaoEncontradoException extends PacienteException {
private static final long serialVersionUID = -4853133312302007985L;
public PacienteNaoEncontradoException() {
super();
}
public PacienteNaoEncontradoException(String msg) {
super(msg);
}
} | 21 | 71 | 0.796825 |
7622d90b678a481f5d05b408297c9bde1c06ef23 | 2,604 | package kotlinx.coroutines;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.Deferred;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0... | 60.55814 | 665 | 0.723886 |
75a9db3275d22e7e57faec8654a2904b3485d13d | 353 | package ca.corefacility.bioinformatics.irida.repositories.remote;
import ca.corefacility.bioinformatics.irida.model.sequenceFile.SingleEndSequenceFile;
/**
* {@link RemoteRepository} for storing and reading {@link SingleEndSequenceFile}s
*/
public interface SingleEndSequenceFileRemoteRepository extends RemoteReposi... | 32.090909 | 104 | 0.84136 |
074dc880d480840027a06410e5acaae373e06230 | 297 | package com.witchcraft.common.block.magic;
/**
* Created by Joseph on 9/3/2017.
*/
public class BlockFakeIceSlabDouble extends BlockFakeIceSlab {
public BlockFakeIceSlabDouble(String unlocalizedName) {
super(unlocalizedName);
}
@Override
public boolean isDouble() {
return true;
}
}
| 17.470588 | 62 | 0.750842 |
b91091591ab33ef1c8c9f82f9ee1a50c937e0897 | 654 | package com.hedera.hcsapp.restclasses;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class SettlementPaidOrCompleteTest {
@Test
public void testSettlemePaidOrComplete() {
SettlementPaidOrComplete settlementPaidOrComplete = new SettlementPa... | 32.7 | 91 | 0.750765 |
4facf060d98b1df9f1a12b307ca1fea25e9750e3 | 2,844 | package aima.core.environment.map;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import aima.core.agent.Action;
import aima.core.agent.EnvironmentViewNotifier;
import aima.core.agent.Percept;
import aima.core.agent.State;
import aima.core.agent.impl.DynamicPercept;
import aima.core.agent.im... | 24.307692 | 76 | 0.726442 |
1a20c371ba5a06b2c4cf39b474272f55730e0664 | 38,723 | /*
* 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 ... | 32.871817 | 102 | 0.767787 |
bac8fda4015bb03e5ddb8ac4d3d41e7c35a25c82 | 5,353 | package org.apache.ofbiz.content.survey.service.base;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.apache.ofbiz.common.ExecuteFindService.In;
import org.apache.ofbiz.common.ExecuteFindService.Out;
import org.apache.ofbiz.common.ExecuteFindService;
import java.util.Array... | 30.588571 | 76 | 0.734541 |
f46cedff8033020ddd0a2d3d8e2b3563441c80c9 | 7,956 | package com.lebinh.skeleton.web.rest;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pa... | 42.545455 | 100 | 0.731272 |
46ac35e2238937067285e87d4232667217c58d90 | 4,712 | //package com.hitesh_sahu.retailapp.domain.mock;
//
//import android.content.Context;
//
//import com.android.volley.AuthFailureError;
//import com.android.volley.Request;
//import com.android.volley.toolbox.HttpStack;
//import com.android.volley.toolbox.StringRequest;
//import com.google.common.base.Charsets;
//import... | 38.308943 | 97 | 0.604414 |
795d86d85acb5af37f98b9fd79252544543d9c0d | 456 | package dev.kurama.api.core.hateoas.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.hateoas.RepresentationModel;
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
... | 22.8 | 73 | 0.835526 |
7ada0966ad0ad7fbaf001f7287ca2cc3e57b6309 | 707 | package com.diana.actions;
import java.util.regex.Pattern;
import com.diana.main.Action;
import com.walkertribe.ian.enums.AlertStatus;
import com.walkertribe.ian.iface.ArtemisNetworkInterface;
import com.walkertribe.ian.protocol.core.comm.ToggleRedAlertPacket;
import com.walkertribe.ian.world.ArtemisPlayer;
/**
* <... | 28.28 | 97 | 0.777935 |
76d7a8e4e69a1b4fab93bceb6177ab46519e6b25 | 8,372 | /*
* Copyright 2015 Simone Filice and Giuseppe Castellucci and Danilo Croce and Roberto Basili
* 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/... | 27.44918 | 107 | 0.692785 |
c72deb9bab8aab26d44f8d3fab7bd6eecd323dcb | 4,105 | package kr.neosarchizo.retrofit;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.util.List;
import retrofit.Callback;
import retrofit.RestAdapter;
import retrofit.RetrofitError;
import retro... | 36.008772 | 119 | 0.490378 |
37b70eac9d8b5ae9101489d7707ed57e2f83fa0f | 3,417 | /**
* <html>
* <body>
* <P> Copyright 1994 JsonInternational</p>
* <p> All rights reserved.</p>
* <p> Created on 19941115</p>
* <p> Created by Jason</p>
* </body>
* </html>
*/
package cn.ucaner.alpaca.framework.interceptor;
import java.io.Serializable;
import java.lang.reflect.Method;
imp... | 31.638889 | 139 | 0.707053 |
4c2c803bb498e3e43037da66c0717454f540b008 | 3,953 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 33.5 | 117 | 0.758411 |
2d8771487adc1d7142ad5e1fd09a9acd1503c2af | 2,406 | package ulcambridge.foundations.viewer.crowdsourcing.model;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Charsets;
import io.jsonwebtoken.lang.Assert;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriUtils;
import java.io.UnsupportedEn... | 30.455696 | 76 | 0.653782 |
f381ef6e1215a0c83d89e7546eb51460579d6e10 | 240 | package com.github.eulerlcs.study.mybatis3.get01.dao;
import com.github.eulerlcs.study.mybatis3.get01.dto.Teacher;
import java.util.List;
public interface TeacherMapper {
List<Teacher> selectAll();
Teacher selectByPK(int id);
}
| 20 | 60 | 0.766667 |
0b957f8a151a4037ed3547cb133404ab1e7710bf | 2,400 | package mcjty.arienteworld.ai;
import mcjty.ariente.api.ICityAISystem;
import mcjty.lib.worlddata.AbstractWorldData;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.math.ChunkPos;
import net.minecraft.world.World;
import net.minecraftforge.common.util.Constants;
... | 29.62963 | 92 | 0.640417 |
38f0d62dbbef54d3a708fd1fab64a81a8289bd30 | 13,266 | package pokecube.core.inventory.pc;
import java.util.HashMap;
import java.util.HashSet;
import java.util.UUID;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.IInventory;
import net.minecraft.i... | 31.889423 | 118 | 0.586989 |
a1cccfce291d1e7735a4f76ccd85133558deb021 | 2,570 | package sort;
public class QuickSort {
/**
* Implementace algoritmu quick sort.
* @param input pole k seřazení
* @author Vojtěch Hordějčuk
*/
public static <T extends Comparable<? super T>> void quickSort(final T[] input) {
quickSort(input, 0, input.length - 1);
}
/**
... | 29.883721 | 120 | 0.581712 |
1e2eac5abf2dd44849f2c968394621023fc022ea | 15,945 | /*
* 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 UserInterface.WomanRole;
import Business.Enterprise.Enterprise;
import Business.Network.Network;
import Business.Organization.... | 48.465046 | 191 | 0.654876 |
7991360a32adc3ccd09118fcd029f8c890afc4ec | 11,938 | /*
* Copyright 2019 André Cipriani Bandarra
*
* 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 o... | 32.796703 | 83 | 0.455688 |
a3ba52f6bac2e34cde028da6b220dd2724a0b5c5 | 4,101 | /*
* Copyright 2014 Parity 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 applicable law or agreed ... | 27.897959 | 77 | 0.600829 |
356494f508eb4b26ed0839a8319354605b96e75a | 3,470 | package sicnu.sixteam.englishbackstage.model;
import lombok.Builder;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.Date;
//@Data
//@Builder
//@Entity
//@... | 22.532468 | 177 | 0.54928 |
3a6f196820d7d48fcb4cb0d204ec611acd001c74 | 332 | package com.lujianbo.app.http.common;
import com.google.common.net.HostAndPort;
import io.netty.handler.codec.http.HttpRequest;
/**
* Created by jianbo on 2017/3/29.
*/
public class LocationMapping {
public static HostAndPort getAddress(HttpRequest request){
return HostAndPort.fromParts("127.0.0.1",808... | 22.133333 | 62 | 0.731928 |
de001daa0b3bba338956c488ce36508b59c795b0 | 8,208 | package tran.nam.alarmtimer.application.view.alarm;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.text.TextUtils;
import android.view.View;
import com.google.gson.Gson;
import java.util.List;
... | 38.176744 | 256 | 0.677266 |
8574f86dd22d789ef96ca1f2d66bccf37108dc02 | 918 | package org.sagebionetworks.repo.manager.token;
import org.sagebionetworks.StackConfigurationSingleton;
import org.sagebionetworks.common.util.ClockImpl;
/**
* This is a temporary class used to bridge static access to
* {@link TokenGenerator}.
*
* @deprecated The {@link TokenGenerator} has dependencies and shoul... | 26.228571 | 100 | 0.733115 |
864f53850118adcd1b9bf1a05b6e3a95bd669276 | 1,155 | package com.example.vera_liu.twitter;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import com.codepath.oauth.OAuthLoginActivity;
public class LoginActivity extends OAuthLoginActivity<TwitterClient> {
// This fires once the user is authenticated, or f... | 28.875 | 78 | 0.700433 |
c0e0ed6e40e519b61002e52fe60fc7cd5246ebdd | 349 | package com.github.cloudyrock.mongock.exception;
/**
*
*/
public class MongockException extends RuntimeException {
public MongockException(Exception exception) {
super(exception);
}
public MongockException(String message) {
super(message);
}
public MongockException(String message, Exception e) {
... | 18.368421 | 56 | 0.719198 |
2863a00634a4246a3fb009fadaf23e1c3e6f5a6e | 548 | package br.com.zupacademy.juliana.casadocodigo.request;
import br.com.zupacademy.juliana.casadocodigo.model.Pais;
import br.com.zupacademy.juliana.casadocodigo.validation.annotation.Unique;
import javax.validation.constraints.NotBlank;
public class NovoPaisRequisicao {
@NotBlank
@Unique(field = "name", model... | 21.92 | 75 | 0.708029 |
b6986956277c9a7eef55363b8d3f2706d6fcea95 | 1,722 | /*
* Copyright 2012 BMW Car IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 44.153846 | 112 | 0.747967 |
e61e8f26731b2bf1f5475556d7dadaff85827077 | 81,346 | /*
* #%L
* PistonNC
* %%
* Copyright (C) 2021 AlexProgrammerDE
* %%
* 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 3 of the
* License, or (at your option) any later vers... | 63.551563 | 822 | 0.482163 |
41b2a804584a9f8149f676f0e6a86c34548ea4b4 | 3,324 | /**
* Copyright 2013 OpenSocial Foundation
* Copyright 2013 International Business Machines 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/licen... | 28.410256 | 147 | 0.672383 |
944037e6945cbe96d9617c903c58b0521872a802 | 2,165 | package com.jolandaverhoef.annotatedexception.processor;
import com.jolandaverhoef.annotatedexception.annotation.Exception;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.TypeSpec;
import java.io.IOException;
import javax.annotation.processing.Filer;
import javax.lang.model.element.Modifier;
imp... | 33.828125 | 88 | 0.713164 |
588017a68665f97d99eaf4919822f81c8793e217 | 375 | package edu.demo.simpletodo.repository;
import edu.demo.simpletodo.model.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRoleRepository extends JpaRepository<UserRole, Long>
{
UserRole findByRole(String rol... | 23.4375 | 73 | 0.808 |
0c9a39c023a094a6fc8b7dc4321cefd9b1667825 | 3,692 | /*
* Copyright 2014-2021 Lukas Krejci
* and other 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 License at
*
* http://www.apache.org/licenses... | 32.672566 | 121 | 0.679036 |
fe294dbbd5b0de5919e330055a4e2140d69b5f7a | 2,307 | /*
* 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 at.rocworks.oa4j.base;
import at.rocworks.oa4j.var.DpIdentifierVar;
import java.util.ArrayList;
/**
* @author vogler
*/
pu... | 26.517241 | 122 | 0.584742 |
b6853305b8e04d3469a7da97d53b2afc3e30c43c | 985 | package com.intkr.saas.domain.type.order;
/**
*
* @author Beiden
* @date 2016-6-4 上午10:49:50
* @version 1.0
*/
public enum OrderFromType {
BuyNow("buyNow", "立即购买"), //
ShoppingCart("shoppingCart", "购物车结算"), //
Error("error", "异常");
public String code;
public String name;
private OrderFromType(String co... | 16.982759 | 57 | 0.656853 |
088ba138c351ac24a3b9c0ee768d5265693005c9 | 5,679 | package org.springframework.aop.aspectj;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Retentio... | 31.904494 | 120 | 0.773376 |
9b2d6b573e406d93b8898b011bca0147dcf9c55b | 2,680 | package me.philcali.device.pool.ssm;
import me.philcali.device.pool.connection.Connection;
import me.philcali.device.pool.connection.ConnectionFactory;
import me.philcali.device.pool.exceptions.ConnectionException;
import me.philcali.device.pool.model.ApiModel;
import me.philcali.device.pool.model.Host;
import org.imm... | 39.411765 | 111 | 0.694403 |
c2144d0e062f5f663733eb9d2a04a80be80c72f2 | 20,697 | package ir.treeco.aftabe2.View.Fragment;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import ir.treeco.aftabe2.Util... | 32.138199 | 197 | 0.631154 |
b768ca1723363384e874ea8be44f9857177a15a3 | 493 | package com.lzc.mapper;
import com.lzc.pojo.SelectCondition;
import com.lzc.pojo.Specialty;
import java.util.List;
public interface SpecialtyMapper {
public int add(Specialty specialty);
public int delete(int id);
public Specialty get(int id);
public int update(Specialty specialty);
pub... | 15.40625 | 65 | 0.718053 |
811a9a4dfa71a4022dea101e24ba54725a3df17b | 16,840 | /**
* File: $HeadURL: https://hdt-java.googlecode.com/svn/trunk/hdt-java/src/org/rdfhdt/hdt/hdt/impl/HDTImpl.java $
* Revision: $Rev: 202 $
* Last modified: $Date: 2013-05-10 18:04:41 +0100 (vie, 10 may 2013) $
* Last modified by: $Author: mario.arias $
*
* This library is free software; you can redistribute it a... | 30.125224 | 148 | 0.721853 |
5aa831c78d5574f3a73955eef28b3e703cfc7428 | 435 | package de.hpi.smm.drawing;
import javax.swing.*;
import java.util.List;
class CartesianFrame extends JFrame {
CartesianPanel panel;
public CartesianFrame(List<Point> points) {
panel = new CartesianPanel(points);
add(panel);
}
public void showUI() {
setDefaultCloseOperation(J... | 20.714286 | 55 | 0.648276 |
fcacf90bba5c72c4abcb22a4456a36b0ae04aef1 | 5,555 | /*
* This file is part of Buttermilk
* Copyright 2011-2016 David R. Smith. All Rights Reserved.
*
*/
package com.cryptoregistry.workbench.action;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
imp... | 33.263473 | 113 | 0.70333 |
a58acb99a4433321caacc606d78892b3af61af4b | 12,313 | package com.microfocus.cluster.tasks;
import com.microfocus.cluster.tasks.api.builders.TaskBuilders;
import com.microfocus.cluster.tasks.api.dto.ClusterTask;
import com.microfocus.cluster.tasks.api.dto.ClusterTaskPersistenceResult;
import com.microfocus.cluster.tasks.api.enums.ClusterTaskInsertStatus;
import com.micro... | 45.268382 | 174 | 0.785917 |
6e11dfa8260cf262ba202736630980fb93d55259 | 483 | package com.renewable.terminal.configuration;
import com.renewable.terminal.TerminalApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitialize... | 34.5 | 82 | 0.84058 |
bcb2010e575e197b94be80c39b5eb95232f2151c | 240 | package service;
import java.util.Map;
public interface ActivityService {
/**
* show activity
*/
Map<String,Object> showActivity();
/**
* add activity
*/
void addActivity(String theme,String site);
}
| 14.117647 | 47 | 0.6125 |
8db5aac90c771fe3a756ee6d2346c77e16c72624 | 376 | package org.sagebionetworks.repo.model.table.parser;
public class StringParser extends AbstractValueParser {
@Override
public Object parseValueForDatabaseWrite(String value) throws IllegalArgumentException {
return value;
}
@Override
public String parseValueForDatabaseRead(String value)
throw... | 20.888889 | 90 | 0.768617 |
0af1fa7a0bfdaed77376c026ccfcd843a871a0b6 | 4,820 | /*
* Copyright 2019 Google 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 to in w... | 38.253968 | 93 | 0.757469 |
36227b02c3df585f6800d5129b3d92b80318f748 | 737 | package jenkins.plugins.github.api.mock;
/**
* @author Stephen Connolly
*/
public class MockObject {
private final MockGitHub app;
private final long id;
private long created;
private long updated;
public MockObject(MockGitHub app) {
this.app = app;
this.id = app.nextId();
... | 18.425 | 50 | 0.595658 |
8ada28a7da759163ae04442a004cec8bcd777efb | 2,103 | /**
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 use this ... | 34.47541 | 117 | 0.757489 |
d160f9203cf401ae47c80bbbb02ed0303075986d | 2,288 | /*
* Copyright 2018 Philipp Niedermayer (github.com/eltos)
*
* 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... | 22.88 | 95 | 0.592657 |
f4eefe21755a3b8f0590cc6d0efdeeabc46ffbee | 95 | package hr.fer.zemris.java.tecaj.hw5;
public enum ShellInputMode {
SINGLELINE,
MULTILINE;
}
| 13.571429 | 37 | 0.768421 |
f4bb4420987be62c4158a051735516fda0b76471 | 151 | package b.l.a.c.f.i;
public final class c4 extends x3 {
public final void a(Throwable th, Throwable th2) {
th.addSuppressed(th2);
}
}
| 18.875 | 54 | 0.642384 |
43850d6a4e002c5943da0b46ecc0f734497fc107 | 1,259 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.approxteam.casino.generalLogic.actions;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOExcep... | 25.693878 | 80 | 0.686259 |
ba4a6b714e1675f97bca1ff673f45105fdcfc8dd | 8,042 | /*
* 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 ... | 51.883871 | 120 | 0.764735 |
7462d10719dae28918b2dc35e8d796319744bd90 | 286 | package com.yousushare.modules.express.repository;
import com.yousushare.modules.express.base.BaseDao;
import com.yousushare.modules.express.domain.KdgCity;
/**
* @Auther Liupeiqing
* @Date 2020-06-12 21:55
*/
public interface KdgCityRepository extends BaseDao<KdgCity,String> {
}
| 23.833333 | 68 | 0.786713 |
edfac60ddea3a1c29d2e249b536138af2c9e3217 | 46,601 | package org.ellab.magman;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.fil... | 40.417173 | 120 | 0.540461 |
ac4356bde3540119548f238e921239dc12e9de27 | 2,933 | package com.cdyne.ws.weatherws;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 3.1.2
* 2... | 54.314815 | 185 | 0.735765 |
8154e8746b777ae45aabf36bba72146eee04c739 | 707 |
package xtqh.framework.i18n;
import java.util.ResourceBundle;
/**
*
*
* @ClassName: ResourceUtil
*
* @Description: TODO
*
* @author Comsys-Yan Fugen
*
* @date Sep 13, 2016 4:54:50 PM
*
*
*/
public class ResourceUtil {
/**
* for i18n
*/
private static String CONFIG_FILE = "i18n";
private st... | 14.729167 | 57 | 0.64215 |
1a77b422cebb335cba8f408e0febb45e4bcac0a9 | 4,135 | /* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.implementations.pipeline;
import io.annot8.api.components.ProcessorDescriptor;
import io.annot8.api.components.SourceDescriptor;
import io.annot8.api.exceptions.IncompleteException;
import io.annot8.api.pipelines.ErrorConfiguration;
import io.anno... | 28.715278 | 94 | 0.726239 |
4c5d5dfd6d604be14b9a7045a540d8e3e6289d9f | 313 | package club.dlblog.jxls;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BlogJxlsApplication {
public static void main(String[] args) {
SpringApplication.run(BlogJxlsApplication.class, args);
}
}
| 22.357143 | 68 | 0.821086 |
b2f1741a2ef406fce9aefb58b61d5e5c10846cd6 | 2,453 | /* */ package org.apache.batik.bridge;
/* */
/* */ import java.awt.font.FontRenderContext;
/* */ import java.text.AttributedCharacterIterator;
/* */ import org.apache.batik.gvt.font.AltGlyphHandler;
/* */ import org.apache.batik.gvt.font.GVTGlyphVector;
/* */ import org.apache.batik.gvt.font.Glyph... | 26.095745 | 147 | 0.480636 |
924d2ee1e90b5f72bdb2d5a2626bceac12b26aee | 7,367 | /*
* 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.234127 | 120 | 0.599023 |
003db2217d8932eaf3e61ccda362468483086004 | 2,819 | /*
* 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 org.thespheres.betula.services.ui.ks;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
impor... | 28.474747 | 85 | 0.672224 |
e9ae02eeeef748dc2109fb6cbc8020370c802706 | 1,334 | package com.polidea.statemachine.sample.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.polidea.statemachine.samp... | 30.318182 | 103 | 0.729385 |
936fea1b63181f4b84202276d9994e960311c062 | 1,257 | package com.arrggh.eve.utilities;
import org.jdom2.Element;
/**
* A set of helper methods to make working with JDOM XML elements easier.
*/
public interface XmlUtilities {
/**
* Get the named attribute from the XML element and convert it into a double.
*
* Note: This will currently throw an Numbe... | 33.972973 | 118 | 0.699284 |
f7f9d48970f9bceed87a12dc8b284e7758b1f9ae | 314 | package net.mwahba.codeeval.moderate;
import java.nio.ByteOrder;
public class SystemEndianness {
public static void main(String[] args) {
if(ByteOrder.nativeOrder().equals(ByteOrder.BIG_ENDIAN)) {
System.out.println("BigEndian");
} else {
System.out.println("LittleEndian");
}
}
}
| 19.625 | 61 | 0.684713 |
0c012a24fe80d8eb5f1d68c92a90eafd296b9d35 | 3,433 | package viachaslavau.onlinelibrary.dao.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import viachaslavau... | 33.656863 | 212 | 0.714244 |
a5e4b358793d6b717c32daaed7bd469a45029dc6 | 660 | package ec327.project.x5tictactoe;
/*
* @author Fangliang Ye (Ted)
* EC327, Spring 2014
* Boston University, Boston, MA
*/
import android.app.Application;
public class GlobalVariables extends Application {
private ConnectionService mConnectionService = null;
private int symbol;
@Override
public void onCre... | 17.368421 | 73 | 0.748485 |
8df47567346b36878dbfed369decae8fc5d40463 | 414 | package slimeknights.tconstruct.tools.item;
import net.minecraft.util.DamageSource;
import slimeknights.mantle.item.TooltipItem;
/** Explosion immune tooltip item */
public class DragonScaleItem extends TooltipItem {
public DragonScaleItem(Properties properties) {
super(properties);
}
@Override
public bo... | 24.352941 | 58 | 0.780193 |
9bdc8a2fbd13b94814a883bcad30ecc6baf894b0 | 1,322 | package javarepl.examples;
import javarepl.console.ConsoleConfig;
import javarepl.console.SimpleConsole;
import javarepl.console.commands.EvaluateFromHistory;
import javarepl.console.commands.ListValues;
import javarepl.console.commands.SearchHistory;
import javarepl.console.commands.ShowHistory;
import javarepl.conso... | 34.789474 | 118 | 0.673222 |
19a9f542666707fe9d6cfcf39e8fcd14f00fac1e | 241 | package com.github.dreamhead.moco;
import com.google.common.base.Optional;
public interface RestSetting {
boolean isSimple();
Optional<ResponseHandler> getMatched(final RestIdMatcher resourceName, final HttpRequest httpRequest);
}
| 26.777778 | 106 | 0.80083 |
0e50c37365543a93b91d43950f645f55dd4d322d | 7,471 | /*
* Copyright 2016 Albert Tregnaghi
*
* 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 i... | 36.443902 | 83 | 0.503547 |
890736decdb0c81339e49600fd56a32c005260bb | 2,051 | package net36px.passport.app.support;
import net36px.passport.app.client.ClientAgent;
import net36px.passport.app.client.PassportClient;
import net36px.passport.app.client.PassportClientFactory;
import net36px.passport.app.client.PassportConfiguration;
import net36px.passport.app.client.PassportSession;
import ... | 31.553846 | 87 | 0.631887 |
877f7c8cd75effe5365fc696d0a5592c38d01303 | 3,047 | /*
* Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution Lic... | 35.022989 | 71 | 0.746308 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.