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 |
|---|---|---|---|---|---|
bd974659c739d65584e22c095d193e60377a1aff | 328 | package me.javaroad.mcloud.oauth.dto.request;
import java.util.Set;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;
/**
* @author heyx
*/
@Getter
@Setter
public class ModifyClientRequest {
private String clientSecret;
@NotEmpty
private Set<String> redirec... | 18.222222 | 52 | 0.759146 |
5612debbbfe1079fde7470067f8b3e02d25c0f99 | 4,109 | /* THIS IS SAMPLE CODE PROVIDED WITH THE UNDERSTANDING THAT
* IT IS TO BE USED FOLLOWING LICENSE COMPLIANCE. THE SAMPLE
* CAN ONLY BE USED WITH A TRIAL OR LICENSED VERSION OF
* HYBRID DATA PIPELINE. FOR MORE INFORMATION ON HYBRID
* DATA PIPELINE, PLEASE VISIT:
* https://www.progress.com/cloud-and-hybrid-data-inte... | 26.856209 | 104 | 0.679727 |
f7ac1435ddf17ddb5b42b31b54ba9338b45862a7 | 4,356 | package wraith.smithee.mixin;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.EntityGroup;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.ListTag;... | 44 | 259 | 0.671717 |
85b79dca1ceb52148f834ed66f9782edcc9090ed | 2,019 | package thenewglobals;
import play.Configuration;
import play.Environment;
import play.Logger;
import play.api.OptionalSourceMapper;
import play.api.UsefulException;
import play.api.routing.Router;
import play.http.DefaultHttpErrorHandler;
import play.libs.F;
import play.mvc.Http;
import play.mvc.Result;
import javax... | 34.220339 | 183 | 0.759287 |
2e748e8f9b35cb6f004905aaf97c8082faee1b38 | 1,019 | package com.github.fppt.jedismock.operations.lists;
import com.github.fppt.jedismock.datastructures.RMList;
import com.github.fppt.jedismock.operations.AbstractRedisOperation;
import com.github.fppt.jedismock.operations.RedisCommand;
import com.github.fppt.jedismock.server.Response;
import com.github.fppt.jedismock.st... | 31.84375 | 67 | 0.711482 |
7bac82c851f98a2ec09e449232c34977091b0d78 | 2,088 | /*
* Copyright 2013-2014 must-be.org
*
* 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... | 28.60274 | 148 | 0.777299 |
3bb03487afb9ef56e65d930071eb0a248a6dddbc | 4,545 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.communityprofile.properties;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson... | 26.12069 | 120 | 0.631243 |
eaa5284ad559d6e6755af5f5e6e2837fe0c5ac10 | 13,535 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nextenso.mux.util;
import java.io.IOException;
import java.net.BindException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.Un... | 40.523952 | 150 | 0.713188 |
639ac96289e771640b480f64fd1455fdb5e09704 | 1,093 | // Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache 2.0 license.
// Please see LICENSE file in the project root for terms.
package com.yahoo.labs.yamall.ml;
/**
* Hinge loss.
*
* @author Francesco Orabona
* @version 1.0
*/
@SuppressWarnings("serial")
public class HingeLoss implements Loss {
... | 26.02381 | 107 | 0.613907 |
39a56fad663f2c9b5b3c9b4bc974caa417bdb0af | 4,687 | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: proto/Offers.proto
package com.google.play.proto;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoField;
import static com.squareup.wire.Message.Datatype.BOOL;
import static com.squareup.wire.Message.Datatype.INT64;
publ... | 37.496 | 174 | 0.756561 |
6133ecc5a8abcd7978d34d4e2b6eb4a353e172d2 | 2,238 | package com.github.sergueik.junitparams;
/**
* Copyright 2017-2018 Serguei Kouzmine
*/
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Paramete... | 31.083333 | 77 | 0.735925 |
ee44a766569cebb349ec68ef3a74dc6a2e2cee40 | 1,956 | package org.ovirt.engine.core.common.action;
import org.ovirt.engine.core.compat.Guid;
public class RemoveMemoryVolumesParameters extends ActionParametersBase {
/** comma-separated string of UUIDs representing the memory volumes */
private String memoryVolumes;
private Guid vmId;
/** In the general ca... | 30.092308 | 96 | 0.697853 |
71045dcb1f24499a22f1206e8ded883364dc9fb3 | 3,001 | package org.folio.search.service;
import static org.elasticsearch.search.sort.SortBuilders.fieldSort;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import java.util.concurrent.atomic.... | 35.305882 | 103 | 0.739087 |
a8a3dd9267890c2d91584d7f6c856b3d7d583c99 | 587 | package com.solvd.carinaproject.gui.pages;
import com.qaprosoft.carina.core.foundation.webdriver.decorator.ExtendedWebElement;
import com.qaprosoft.carina.core.gui.AbstractPage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
public class FacebookLoginErrorPage extends AbstractPage {
... | 27.952381 | 83 | 0.752981 |
dfdd3c7050ddd84776e36e9772d396d14b080fc6 | 94 | package cat.nyaa.nyaacore.cmdreceiver;
class NotPlayerException extends RuntimeException {
} | 18.8 | 51 | 0.840426 |
52cd71abca5c83d4aebe61658b728441c658c34f | 3,395 | package com.moelyon.learning.algorithm;
import java.util.Arrays;
import java.util.Random;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;
import java.util.concurrent.FutureTask;
public class ParallelQuickSort {
private static class QuickSort extends ForkJoinTask<Object>{
... | 27.379032 | 102 | 0.513108 |
a2c1d649731e0ab2ce7eefbff7369538b1ff23dc | 1,529 | /**
* 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.authorize;
import org.dspace.content.DSpaceObject;
/**
* Exception in... | 20.945205 | 81 | 0.580772 |
af674cedf98a0e01f8cfbbcfb4733c3d7cf3f7dd | 362 | package org.springframework.tutorial.tutorial1;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AppContext {
@Bean
public HelloWorld helloworld() {
HelloWorld helloworld = new HelloWorld();
helloworld.setMessage("Hell... | 21.294118 | 60 | 0.79558 |
7c46a7de5438c4f80d6931ecb6ce6f9253d8b1c0 | 2,479 | /*
* (C) Copyright IBM Corp. 2020.
*
* 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... | 25.295918 | 118 | 0.657523 |
facb2561ffd1d909be91b0ca59a48a1c08d8e762 | 825 | package org.asciidoctor.arquillian.api;
/**
* A marker class passed to the {@link org.jboss.arquillian.test.api.ArquillianResource} annotation
* to mark the {@link org.asciidoctor.Asciidoctor} instance as shared between multiple test methods.
*
* <p>Example for a field that is shared among multiple test methods</p... | 35.869565 | 100 | 0.713939 |
47dca2c53ec661d1bd474814193486994e37de56 | 1,354 | package cn.edu.seu.leetcode.dp;
/**
* @author personajian
* question:求解最长公共子序列LCS
*/
public class Lcs {
/**
* 动态规划求解LCS
* @param x是一个字符串序列
* @param y是另一个字符串序列
* @param b是对应计算c时所选择的子问题最优解
* @param c是保存了x和y的LCS长度
*/
public static void lcsLength(char[] x,char[] y,int[][] b,int[][] c) {
int m=x.length;... | 20.208955 | 70 | 0.49483 |
00313b615257b01f8da7fc2638b59859b4285822 | 3,707 | package ru.nsu.fit.mobdev.presentation.storagedemo;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
impo... | 43.104651 | 128 | 0.757756 |
5eeff294270395122ff5a1eb93d1f3395900e0c7 | 32,197 | package android.support.v4.app;
import android.os.Bundle;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
import android.support.v4.content.Loader;
import android.support.v4.content.Loader.OnLoadCanceledListener;
import android.support.v4.content.Loader.OnLoadCompleteListener;
import android.support.v4.ut... | 42.253281 | 131 | 0.546293 |
6c287c7a2114d451a85998268f9b4d74937e3d73 | 21,704 | package uk.co.plogic.gwt.lib.ui.layout;
import java.util.ArrayList;
import java.util.logging.Logger;
import uk.co.plogic.gwt.lib.map.GoogleMapAdapter;
import uk.co.plogic.gwt.lib.widget.mapControl.MapControl;
import uk.co.plogic.gwt.lib.widget.mapControl.MapControlPanel;
import com.google.gwt.core.client.GWT;
import... | 29.569482 | 96 | 0.647024 |
e8a9f50558d674e90d288b1d7a9ac88e3eb1dd4b | 709 | package com.bwheeler8715.wordsearch;
import java.util.Arrays;
import java.util.List;
/**
* An immutable POJO representing a word-search.
*/
public class WordSearch {
private char[][] field;
private List<String> wordList;
public WordSearch(char[][] field, List<String> wordList) {
this.field = f... | 20.257143 | 62 | 0.588152 |
126d4b9a8adbccdb7776a8c5b42408c54db73673 | 417 | package mpei.bkm.model.query;
import mpei.bkm.model.commonfeatures.Selector;
public class AggregateGoal extends Goal {
public static enum Aggregate {SUM, AVG, MAX, MIN}
private Aggregate aggregate;
public AggregateGoal(Selector selector, Aggregate aggregate) {
super(selector);
this.aggre... | 21.947368 | 66 | 0.697842 |
4062c38bbe98b7aa1d63ac3fdd70c8270eb06a65 | 592 | package com.apa70.idvalidation.entity;
import java.util.Map;
public class Distance {
private Map<Integer,Integer> positiveNumber;
private Map<Integer,Integer> minusSign;
public Map<Integer, Integer> getPositiveNumber() {
return positiveNumber;
}
public void setPositiveNumber(Map<Integer,... | 23.68 | 73 | 0.692568 |
e311734ced4bc1c9149f492a5fa3be2003ffc2c5 | 9,435 | package com.pg85.otg;
import com.pg85.otg.common.LocalBiome;
import com.pg85.otg.common.LocalWorld;
import com.pg85.otg.configuration.PluginConfig;
import com.pg85.otg.configuration.biome.settings.BiomeResourcesManager;
import com.pg85.otg.configuration.customobjects.CustomObjectResourcesManager;
import com.pg85.otg.c... | 29.210526 | 150 | 0.652252 |
8f8212d29cab00dc9e714c62ceca075b123d6bb8 | 2,346 | /* Copyright (C) 2018 Chris Deter Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, distribute... | 44.264151 | 120 | 0.757886 |
907f338e56b7b86ad693e02014b421f7b71dbc13 | 589 | package com.eduwin.modals;
public class UserOpinionPollBean {
private long userId;
private String votedOption;
private String opinionFeedback;
public long getUserId() {
return userId;
}
public void setUserId(long userId) {
this.userId = userId;
}
public String getVotedOption() {
return votedOpti... | 19.633333 | 57 | 0.748727 |
2b21a70f735e16be9d4154349cf0ab3faa4fc1f6 | 4,450 | /**
* Licensed to the TomTom International B.V. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. TomTom International B.V.
* licenses this file to you under the Apache License,
* Version 2.0 (t... | 29.470199 | 99 | 0.623371 |
936773cbabc476f30d6e36784975065906f70228 | 3,791 | /*
* 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.548673 | 108 | 0.705091 |
062ad67ab62bb96845e95fca35cf5876ffb85a31 | 1,050 | package game.components;
import com.badlogic.gdx.graphics.g3d.Model;
import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
import com.badlogic.gdx.graphics.g3d.utils.AnimationController;
import game.GameWorld;
import game.entities.Entity;
public class AnimatedModelComponent extends ModelComponent {
publi... | 23.863636 | 105 | 0.781905 |
3ae51bea45befcb7dbb1b6193b1ce4f3e84ca604 | 761 | package org.revolutio.jasb;
/**
* https://wiki.openoffice.org/wiki/Documentation/FAQ/Calc/Miscellaneous/What's_the_maximum_number_of_rows_and_cells_for_a_spreadsheet_file%3F
*
* @author Caio Santesso
*
*/
public enum FileFormat {
/**
* Max column name = IV.
*/
XLS(65_536, 256),
/**
* Max column name = X... | 16.191489 | 142 | 0.676741 |
e4d3c31e28599f8f95c7b1cf5e70df6ae7da359e | 4,238 | /*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.cuba.security;
import com.haulmont.cuba.core.*;
import com.haulmont.cuba.security.entity.Group;
import com.haulmont.cuba.security.entit... | 36.222222 | 90 | 0.540585 |
c1cce8278e597c7832baea89305c8a14ff793c81 | 2,795 | package net.ossrs.yasea.demo.Activity.View;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.LinearLayout;
/**
* Created by kang on 2017/6/8.
*/
public class MyScrollView extends LinearLayout {
... | 28.814433 | 90 | 0.503399 |
7986d6bdf67b86a10fad1505f80797c48d191f12 | 6,878 | package com.jtdev.webcomicreader.views;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.v4.view.GestureDetectorCompat;
import android.util.AttributeSet;
import andr... | 27.846154 | 116 | 0.733062 |
59057f73e9ead59c3a24bf56f879cca0d2c69622 | 1,105 | package tk.taroninak.cafe.models;
import javax.persistence.*;
import javax.persistence.Table;
@Entity
@Table(name="orders")
public class Order {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
@Column(name="id", unique=true)
private Long id;
@Column(name = "table_id")
private Long tableId;... | 19.051724 | 50 | 0.563801 |
c1a88b36580d6cef4965babade58389b35d02d5c | 4,946 | /*
* Copyright 2013-2016 must-be.org
*
* 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... | 25.895288 | 143 | 0.754347 |
a914b2c34f06ccda2a185ab162bce42676fd1aae | 3,239 | /**
* www.bplow.com
*/
package com.bplow.deep.sysmng.service.impl;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
i... | 26.54918 | 102 | 0.756098 |
506f9576b75ce39a993565f9129bb1c490aae857 | 2,866 | /*
* Licensed to the jNode FTN Platform Develpoment Team (jNode Team)
* under one or more contributor license agreements.
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
* The jNode Team licenses this file to you under the
* Apache License, Version ... | 31.844444 | 81 | 0.71284 |
e9e1caee482cfd5677fe57c0eb8433105e748e9b | 166 | package com.maxproj.dagger2demo3;
import dagger.Component;
@Component(modules = {MarkCarModule.class})
public interface CarComponent {
void inject(Car car);
}
| 16.6 | 43 | 0.76506 |
0956fa11ee5703a6c1f5b3f17655a4bda6069abd | 483 | package buildcraft.api.enums;
import java.util.Locale;
import net.minecraft.util.IStringSerializable;
public enum EnumDecoratedBlock implements IStringSerializable {
DESTROY(0),
BLUEPRINT(10),
TEMPLATE(10),
PAPER(10),
LEATHER(10);
public final int lightValue;
private EnumDecoratedBlock(... | 19.32 | 63 | 0.687371 |
77d1d310300a6702bf07f837034341304b9df23c | 374 | package com.dragoonsaga.mathex.parser;
/**
* Interface for an constant node
*
* @author Eric Brooks
*
*/
public interface NodeConstant extends Node {
/**
* The value of this constant
*
* @return the value
*/
float getValue();
/**
* Sets the value of this constant
*
* @param string
* ... | 13.851852 | 44 | 0.617647 |
25bf89f99c0bb93877f1f2a558ba82f4283ad7a4 | 5,159 | /*
* Copyright 2002-2020 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... | 41.604839 | 107 | 0.779221 |
959f298828108f081d232e56679bc4dad11f85c2 | 7,112 | package com.opencore.dsfinvk.models.stammdaten;
import java.math.BigDecimal;
import java.util.StringJoiner;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constr... | 38.236559 | 411 | 0.686867 |
f291eefffa67200b0c1043dd07aaf5caccf2b4bc | 1,211 | package prefuse.data.parser;
/**
* Exception indicating an error occurred during parsing of data values.
*
* @author <a href="http://jheer.org">jeffrey heer</a>
*/
public class DataParseException extends Exception {
/**
* Create a new DataParseException.
*/
public DataParseException() {
... | 23.288462 | 81 | 0.601982 |
0a345f293bd635ae85d0ce346679dd5b11e6d00c | 1,554 | package net.boomerangplatform.service.runner.misc;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import net.boomerangplatform.model.Task;
import net.boomerangplatform.mongo.model... | 32.375 | 91 | 0.790862 |
a07cdc6fb129ac7decc3a7a6e047a79b93757e44 | 1,171 | /**
*
*/
package com.marcestarlet.booksearcher.rest.model.dao;
import java.util.List;
import com.marcestarlet.booksearcher.rest.model.entity.Book;
/**
* BookDAO defines how the operations for a Book will be
* @author MarceStarlet
*
* mongodb-basics
*/
public interface BookDAO extends DAO<Book> {
/**
* C... | 20.189655 | 60 | 0.673783 |
2fba4ef039c4648fcf3e288c8a0699740ad3e608 | 2,493 | // 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 applicable ... | 32.802632 | 100 | 0.736462 |
b95969a96f3e0c7bdd2d23780e0f3542f9a0a1a3 | 3,017 | package ch.frostnova.force.based.layout.strategy.impl;
import ch.frostnova.force.based.layout.geom.Rectangle;
import ch.frostnova.force.based.layout.geom.Vector;
import ch.frostnova.force.based.layout.geom.domain.ShapeForces;
import ch.frostnova.force.based.layout.model.Scene;
import ch.frostnova.force.based.layout.mo... | 38.189873 | 130 | 0.623136 |
e2ac5d25a020cc33f95417ec30278e80c804636e | 909 | package com.fjut.pojo;
import java.util.Date;
import com.fjut.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
/**
* 操作日志
* @author LGX
*
*/
@Getter@Setter
public class SystemLog {
/**
* ID
*/
private int id;
/**
* 操作日期
*/
private Date date;
/**
* 主机名 + IP地址
*/
private String us... | 14.901639 | 90 | 0.585259 |
416720b1b3f67b76b9fde6a0fd8af19b6d6eb1b0 | 6,167 | package com.github.fgiannesini.libsass.gradle.plugin.installer;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import org.apache.commons.io.FileUtils;
import org.gradle.api.logging.Logger;
import com.github.fgiannesini.libsa... | 34.261111 | 82 | 0.603697 |
ef1db027036b5eb9b7e7470e16b7354877f15e65 | 3,653 | package com.jlkj.project.ws.controller;
import java.util.List;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.G... | 34.462264 | 109 | 0.722967 |
1909e9ff69ac2be9124ad780800f644dabc15d24 | 5,831 | /*
* Copyright (c) 2013-2017 xiaomi.com, Inc. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 35.339394 | 136 | 0.645344 |
f68ecf48afdf8be320335450577a3629e06afb13 | 8,606 | /*
* 02/21/2005
*
* CodeTemplate.java - A "template" (macro) for commonly-typed code.
* Copyright (C) 2005 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... | 31.874074 | 120 | 0.623751 |
a72b8631d76a22e36da3b22563d0263ae69eb902 | 4,068 | package gov.nara.opa.api.utils;
import gov.nara.opa.architecture.exception.OpaRuntimeException;
import gov.nara.opa.architecture.logging.OpaLogger;
import java.security.InvalidParameterException;
import java.util.HashSet;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
i... | 25.111111 | 80 | 0.692232 |
b509941e63a76f6e05fac78118f1d83dd3e1dd8f | 4,735 | package cube.ware.widget.voice;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.util.Log... | 27.690058 | 260 | 0.599789 |
474a0ca35febd5b81a69c5704506161d72438d67 | 193 | public class recursion1
{
static int f(int n)
{
if(n <= 0)
return 1;
else
return n * f(n-1);
}
public static void main(String[] args)
{
assert f(1)==1;
}
}
| 12.0625 | 40 | 0.512953 |
303256d11dcd175bb3f2984d0340134b6f88a738 | 566 | package org.kyojo.schemaorg.m3n4.doma.core.clazz;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n4.core.impl.RADIO_SEASON;
import org.kyojo.schemaorg.m3n4.core.Clazz.RadioSeason;
@ExternalDomain
public class RadioSeasonConverter implements Dom... | 24.608696 | 83 | 0.809187 |
c34d505a40124bc85b1884c6d7a157ca466123ae | 306 | package dev.alnat.moneykeeper.dao;
import dev.alnat.moneykeeper.model.Icon;
import org.springframework.data.repository.CrudRepository;
/**
* Created by @author AlNat on 02.08.2020.
* Licensed by Apache License, Version 2.0
*/
public interface IconRepository extends CrudRepository<Icon, Integer> {
}
| 23.538462 | 71 | 0.777778 |
1c6f4fdbdecd70f49df028ab9f1a535f3c23a648 | 208 | package repository;
public class StoredVacuousExemption extends Exception {
public StoredVacuousExemption() {
super();
}
public StoredVacuousExemption(String tagline) {
super(tagline);
}
}
| 16 | 55 | 0.730769 |
3a4db738bb582bdef31d9027b424c97ddf97304f | 350 | package codes.fepi.libuser;
import java.util.List;
public class TestEntity {
private String name;
private List<String> features;
public TestEntity(String name, List<String> features) {
this.name = name;
this.features = features;
}
public String getName() {
return name;
}
public List<String> getFeature... | 15.909091 | 56 | 0.714286 |
12db6cf3943403eeea93fe5e245815faff45b5c0 | 2,218 | package org.tsystems.javaschool.repository;
import org.tsystems.javaschool.model.entity.ScheduleSectionEntity;
import org.tsystems.javaschool.model.entity.SectionEntity;
import org.tsystems.javaschool.model.entity.StationEntity;
import org.tsystems.javaschool.model.entity.TrainEntity;
import java.time.LocalDate;
impo... | 26.404762 | 106 | 0.687556 |
35cc3f9a4cdc5b4fc7aef3ab00e9a9e98240b762 | 5,158 | package com.infernostats.wavehistory;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.NPC;
import net.runelite.api.coords.WorldPoint;
import org.apache.commons.lang3.time.DurationFormatUtils;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashMap;
import ja... | 25.408867 | 95 | 0.570958 |
fee7214410c9565e0391f2c86723673719e9cf2a | 679 | package ec.ware;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.transacti... | 29.521739 | 78 | 0.81296 |
ccca80f8a5bc41714b383683bfae3772a1ad3821 | 11,199 | /**
* Copyright: Copyright 2016-2020 JD.COM All Right Reserved
* FileName: test.com.jd.blockchain.ledger.data.LedgerTransactionImplTest
* Author: shaozhuguang
* Department: 区块链研发部
* Date: 2018/8/30 上午9:48
* Description:
*/
package test.com.jd.blockchain.ledger.core;
import static org.junit.Assert.assertArrayEqu... | 45.157258 | 112 | 0.803911 |
0d7cf30cb2ace759a992d56ad5c3de5ffa004ba4 | 193 | package crudvector;
public class CrudVector {
public static void main(String[] args) {
CrudVectorFrame cframe = new CrudVectorFrame();
cframe.show();
}
}
| 17.545455 | 59 | 0.606218 |
a30ffcb467ac0a5b3fd3868244b324c580b8a381 | 3,534 | package validation;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Validate model declaration
*/
public final class ModelDeclarationValidity implements Validation {
public ModelDeclarationValidity(final String code) {
this.code = code;
}
@Override
public boolean vali... | 36.061224 | 102 | 0.627617 |
d2cb4cc73e6256a8afe465e8c80a142297cc3067 | 242 | package me.saket.dank.utils.okhttp;
/**
* For listening to response read progress with {@link OkHttpRequestWriteProgressListener}.
*/
public interface OkHttpRequestWriteProgressListener {
void update(long bytesRead, long totalBytes);
}
| 24.2 | 91 | 0.789256 |
82b4d08c4b13b6f6aa670aea4dde6233f61b919c | 4,617 | package cruise.umple.ui.eclipse;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import o... | 29.980519 | 77 | 0.730561 |
6cb9ae77926bf80363104dd665e6d4a15ff8d6e9 | 2,194 | /*
* Copyright 2019-2021 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... | 33.242424 | 120 | 0.737922 |
e90c314b18f2d3da781e2d54fedf7da993fd25cc | 71 | /**
* JPA domain objects.
*/
package lv.rtu.homework.checker.domain;
| 14.2 | 39 | 0.690141 |
d3c6021df620e8687508f9911bff16d1cdc6c5dd | 140 | // "Replace with regular string literal" "true"
class TextBlockMigration {
void oneLineNoNewLine() {
String json = "foobar\n";
}
} | 17.5 | 47 | 0.678571 |
1c427c18967c1038aadbfc5c60478e81b57351eb | 1,280 | package com.xncoding.jwt.config;
import com.alibaba.druid.pool.DruidDataSource;
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import com.xncoding.jwt.config.properties.DruidProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
impor... | 26.666667 | 78 | 0.744531 |
ae26762fd4e6b27ede18c8ab98d6b069e90b3425 | 22,881 | package com.challengeandresponse.nonox;
/*
* <p>NoNox watches log files for events such as "failed password". When such a pattern is seen several
* times within a specified time period (for example, 4 failed login attempts within 10 minutes)
* from the same source, NoNox can execute a command to mitigate the beha... | 46.506098 | 236 | 0.553909 |
d926cec609d629fe7473ebb9567e807c700c1130 | 694 | package pl.sternik.kk.zadania;
import java.util.Scanner;
public class Zad04 {
public static void main(String[] args) {
System.out.println("linia 1");
System.out.println("lina 2");
int[] ssss = {2,3,4,6,7,0};
for (int i = 0; i < ssss.length; i++) {
System.out.... | 20.411765 | 47 | 0.449568 |
259361ab9f866b81d988106a48de7eb29801ad42 | 4,042 | /*
* MIT License
*
* Copyright (c) 2019 - 2020 Marvin (DerFrZocker)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... | 40.019802 | 232 | 0.730084 |
2fcb9ebe25079c681affb4808f207f2f18a09cbb | 1,844 | /*
* Copyright 2000-2009 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... | 25.971831 | 82 | 0.712039 |
5eb2403ca7f1f9f0b22a5267f98321c1b6116559 | 1,817 | /*
* 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 foodnet.foodnetserver.rest.controllers;
import foodnet.foodnetserver.BLL.Comment;
import foodnet.foodnetserver.rest.services.C... | 38.659574 | 109 | 0.758393 |
8e0201ad6a6615eb8d5e4e3cf5b4ec5a4c0b0a6b | 3,941 | package com.thinkgem.jeesite.modules.act.service;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.jeesite.modules.act.dao.LsAddressMapper;
import com.thinkgem.jeesite.modules.act.dao.LsOfficeMapper;
import com.thinkgem.jeesite.modules.act.entity.LsAddress;
import com.thinkgem.jeesite.modules... | 27.753521 | 179 | 0.639178 |
bb0c706c499c7fc2ddb49e86d2c7e424c394d11b | 1,595 | package memethespire.shoppatches;
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.evacipated.cardcrawl.modthespire.lib.SpirePostfixPatch;
import com.megacrit.cardcrawl.vfx.FastCardObtainEffect;
@SpirePatch(clz = FastCardObtainEffect.class, method = "update")
public class FastCardObtainEffectUpd... | 48.333333 | 89 | 0.697179 |
2ad7eb5263829a942f5e4601838e6e46345a2b04 | 2,357 | package server.any;
import org.omg.CORBA.SystemException;
import shared._AnyTestOperations;
import shared.AnyTestPackage.*;
import shared.Tree;
import shared.TreeHelper;
/**
* The AnyTest implementation class.
*/
class AnyTestImplementation implements _AnyTestOperations {
Tree[] empty = {};
Tree _tree_3 =... | 29.835443 | 125 | 0.624523 |
b57ad21e187a147bd35248cbe028f6da84dad2f5 | 11,328 | /*
* Copyright 2017 EntIT Software LLC, a Micro Focus company, L.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
*... | 36.307692 | 169 | 0.631974 |
0867abdf39e53f170fe7549d4c7768207cc23ecc | 3,654 | /*
* nusim-loader
*
* (c) 2020 Deutsche Telekom AG.
* Deutsche Telekom AG and all other contributors /
* copyright owners license 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... | 33.218182 | 165 | 0.679803 |
429d4f05a06f726a0eaab75e2234719d17032b30 | 1,428 | package com.gtdq.netty.netty03;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;
/**
* @author : Liu... | 30.382979 | 63 | 0.630952 |
a5ede5c87990a888ca42589e377446d8b3eca75a | 1,280 | package com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.resources;
import com.fasterxml.jackson.annotation.*;
import com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.nodes.*;
import com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.other.*;
import javax.persistence.... | 20.31746 | 84 | 0.659375 |
7e9bf4891831fbbc9ff7fc8af905129c98fcacf1 | 4,865 | /*******************************************************************************
* Copyright (c) 2013, Daniel Murphy
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* * Redistributions of ... | 32.006579 | 85 | 0.681398 |
7c27973221a245b8dc9c7d7cdb1a7c818ff3750c | 3,957 | /*
* Copyright 2017 MongoDB, 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... | 39.969697 | 118 | 0.654284 |
9b16af93bc598dd0e6470f0fc72aaa45aecef364 | 7,915 | /**
* Copyright Notice
*
* This is a work of the U.S. Government and is not subject to copyright
* protection in the United States. Foreign copyrights may apply.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | 29.314815 | 79 | 0.68844 |
407f7ebd2124a40342689fd085dd0a572d88ba37 | 2,802 | /*
* 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 ma... | 27.203883 | 82 | 0.705211 |
5fdb95a9e19b172d0734f91d1fc517e4ef62c837 | 8,050 | /*******************************************************************************
* # Copyright 2015 InfinitiesSoft Solutions 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
... | 43.513514 | 110 | 0.73913 |
83e15dbfd7ffb2a3dcdac204c6ffa505b2b94f92 | 2,140 | package com.taobao.api;
import java.util.Date;
import java.util.List;
import com.taobao.api.domain.DiscardInfo;
import com.taobao.api.domain.NotifyTrade;
import com.taobao.api.request.CometDiscardinfoGetRequest;
import com.taobao.api.request.IncrementCustomerPermitRequest;
import com.taobao.api.request.Incre... | 31.014493 | 125 | 0.751869 |
24f6bc85c7137859bf7c32cc5828d17e291af0a2 | 3,744 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* ... | 27.130435 | 94 | 0.69765 |
64cc8108596da463d5ed3d472d7eb28e2e4b540f | 15,097 | package com.hbm.render.tileentity;
import org.lwjgl.opengl.GL11;
import com.hbm.blocks.ModBlocks;
import com.hbm.lib.RefStrings;
import com.hbm.main.ResourceManager;
import com.hbm.render.model.ModelBroadcaster;
import com.hbm.render.model.ModelGeiger;
import com.hbm.render.model.ModelRadio;
import com.hbm.... | 36.91198 | 139 | 0.652315 |
daad2066f92f58d1ae4f032f093ca4481924a47c | 805 | package com.example.application.backend.entities;
import javax.persistence.*;
/**
* This is a basic setting class.
*
* @author Jessica Reistel, Laura Neuendorf and Sabrine Gamdou
* @version 4.0
* @since 21-12-2020
* @lastUpdated 05.02.2021 by Laura Neuendorf
*/
@Entity(name ="settings")
public class Setti... | 19.634146 | 63 | 0.668323 |
80211b88f3c974442b96a66e5621cce47ea975b7 | 4,648 | /*
* Copyright 2015 Netflix, 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... | 34.176471 | 81 | 0.779475 |
f7b6fc59e7f598d2cd6e5af19973bdb68feb1e56 | 5,308 | /*
* 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 n... | 30.682081 | 78 | 0.687641 |
a0e422f98c3c9c599d7b057533c309956816c9b2 | 319 | package com.talkingdata.dmpplus.dao;
import java.util.List;
import com.talkingdata.dmpplus.dao.entity.UserAppMapping;
public interface UserAppMappingMapper {
UserAppMapping selectByPrimaryKey(String id);
List<UserAppMapping> selectByUserId(String userId);
List<UserAppMapping> selectByAppId(String appId);
}
| 22.785714 | 57 | 0.815047 |
d509ba545ac4a4f8678c6dc9572c8bf211a15fb6 | 1,127 | package it.unica.foresee.tests;
import it.unica.foresee.datasets.DatasetElement;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import it.unica.foresee.datasets.interfaces.DoubleConvertible;
import org.junit.Test;
/**
* Test for the DatasetElement class.
*/
public cla... | 37.566667 | 99 | 0.72937 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.