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 |
|---|---|---|---|---|---|
3ee25239ce7d60e67c43a9b045be4cd873eabe12 | 6,407 | package no.fint.xledger.okonomi.fakturautsteder;
import lombok.extern.slf4j.Slf4j;
import no.fint.model.resource.Link;
import no.fint.model.resource.administrasjon.personal.PersonalressursResource;
import no.fint.model.resource.okonomi.faktura.FakturautstederResource;
import no.fint.model.resource.utdanning.elev.Skole... | 43.585034 | 195 | 0.679881 |
bf0972b5b9354b8d07d78e07a16d19eb36662a06 | 575 | package com.dmytr0.requestbin.utils;
import org.jetbrains.annotations.NotNull;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.convert.ReadingConverter;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
@ReadingConverter
public class DateToLo... | 27.380952 | 85 | 0.770435 |
90df74057c6e5feb6dd8213c10f39d7ab4aa8bfe | 1,761 | package net.fabricmc.example;
import net.fabricmc.example.registry.BlockRegistry;
import net.fabricmc.example.registry.FluidBlockRegistry;
import net.fabricmc.example.registry.FluidRegistry;
import net.fabricmc.example.registry.ItemRegistry;
import net.minecraft.block.BlockState;
import net.minecraft.fluid.Fluid;
impo... | 25.157143 | 135 | 0.748438 |
19433ccbf2a70a58e2e3515b458c4ea69d1a282e | 11,264 | package com.cloupia.feature.infinidat.inventory.model;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import org.apache.log4j.Logger;
import com.cloupia.feature.infinidat.constants.INFINIDATConstants;
import com.cloupia.lib.easyui.annotations.ReportField;
import com.cloupia... | 42.50566 | 303 | 0.717152 |
046f91f1439c80df0a6174713199caac8b9ec2e8 | 712 | // Copyright 2020 Intel Corporation
// SPDX-License-Identifier: Apache 2.0
package org.sdo.iotplatformsdk.common.protocol.types;
import java.nio.ByteBuffer;
import org.sdo.iotplatformsdk.common.protocol.util.Buffers;
/**
* SDO cipher-text envelope.
*
* <p>@see "SDO Protocol Specification, 1.13b, 4.5: Encrypted Me... | 22.25 | 75 | 0.707865 |
a51d6714289b3b0bdda99cdf0286b5b46538f4bb | 174 | package model;
public class Employee extends User {
public Employee() {
}
public Employee(String email, String pass) {
super(email, pass);
}
}
| 14.5 | 48 | 0.603448 |
808a8eb30eed7af7b554b5848d206d8ed7131396 | 5,189 | package com.zzboot.system.query.impl;
import com.zzboot.framework.core.db.mybatis.query.CommonQueryImpl;
import com.zzboot.system.domain.VsFileUseEntity;
import java.io.Serializable;
import java.lang.Double;
import java.lang.Long;
import java.sql.Timestamp;
import java.lang.String;
import java.lang.Integer;
/**
* ... | 33.262821 | 119 | 0.67778 |
73a67b32a8c6a68a7de28d1be72f58f9fa608f6a | 9,816 | package com.newyith.fortressmod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.command.ICommandManager;
import net.minecraft.command.ServerCommandManager;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.It... | 46.301887 | 158 | 0.768236 |
f4bdbb0ebcddf983be24f25e8d6079c1af9a5c5a | 675 | package cn.t.rpc.core.data;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
/**
* 非法的,过期的key对象,用于延时删除,清理缓存
* @author TMQ
*
*/
public class InvalidKey implements Delayed {
public InvalidKey(String key) {
this.key = key;
// 5秒后过期
this.expiredTs = System.currentTimeMillis() + 5000... | 16.463415 | 53 | 0.697778 |
fb5a620b2cd4093459a1f5f470d560f13929306a | 2,125 | package core.exceptions;
/**
* Thrown to indicate that an action has been passed an illegal or
* inappropriate argument.
*
* @since 1.0
*/
public class InvalidActionException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 6982669554758479536L;
/**
* Constructs an {@co... | 28.716216 | 79 | 0.666824 |
154e98478c404262e60fab5933e8d38d8903b6bf | 346 | package proCat.dto;
import lombok.Data;
import java.math.BigDecimal;
import java.util.UUID;
@Data
public class RentInventoryDTO {
private UUID inventoryId;
private String inventoryName;
private String pathToImg;
private BigDecimal pricePerHour;
private Long typeId;
private Long stationId;
... | 19.222222 | 36 | 0.751445 |
880c731c8cff65dc9c6fbd70b9cababaecb3f540 | 277 | package org.jbehave.core.io.rest;
/**
* Exports resources to a REST root URI. Each implementation
* can export from different source systems, e.g. a filesystem.
*
* @author Mauro Talevi
*/
public interface ResourceExporter {
void exportResources(String rootURI);
}
| 19.785714 | 63 | 0.732852 |
47dc369c45bc0466dcb543d9501df571b4d8c26d | 1,940 | package com.tencent.qcloud.uikit.business.infos.model;
import java.io.Serializable;
import java.util.List;
/**
* Created by valxehuang on 2018/7/30.
*/
public class GroupInfoBean extends BaseInfoBean implements Serializable {
private String groupName;
private String iconUrl;
private String account;
... | 20.860215 | 73 | 0.645876 |
8841239563bf26957be938a1e7c29098b81eb36f | 2,544 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 33.92 | 122 | 0.733884 |
c99f4afaf38fee403eccfa3d6bb3c3be232002db | 813 | package hr.fer.zemris.jsdemo.servlets;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.Path;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet that get... | 28.034483 | 110 | 0.784748 |
a6303348fbf24ee695bc266b59a8c78f3e8cc646 | 3,124 | /*
* Copyright (c) 2003, KNOPFLERFISH project
* 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 source code must retain the above copyright
* notice, this list ... | 31.877551 | 70 | 0.71895 |
e14d836ed3415918a4edf4f5ba178ca5b029c89a | 7,618 | package org.boon.slumberdb.service.client;
import org.boon.slumberdb.service.protocol.Action;
import org.boon.slumberdb.service.protocol.ProtocolConstants;
import org.boon.slumberdb.service.protocol.requests.*;
import org.boon.slumberdb.service.results.BatchResult;
import org.boon.slumberdb.service.results.SingleResul... | 27.402878 | 137 | 0.654109 |
c05a020b50e8de61fcf7a1d0c2c607b449f3157a | 4,029 | package com.ragnarok.staticlayoutview.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.ragnarok.staticlayo... | 33.02459 | 136 | 0.623976 |
098427d7fbfbf8b0fcdf63c841dd36355ce74447 | 330 | package kore.botssdk.speechtotext;
/**
* Created by Ramachandra Pradeep on 1/24/2017.
*/
public interface SoundPlayCompletionListener {
enum Type {
START,
// error occurred, reconstruction needed
ERROR,
// recorder stopped
STOPPED
}
void onAudioCompleted(Type soun... | 19.411765 | 48 | 0.648485 |
1b4a361194032ac41a4000de86d13e9c8edfa486 | 67 | package com.tvajjala.cacading;
public class CascadingExample {
}
| 11.166667 | 31 | 0.791045 |
7a16bd551ae452b0519d3cb6b1cf671e931e97d9 | 375 | package org.mybatis.jpetstore.mapper;
import java.math.BigDecimal;
import java.util.List;
import org.mybatis.jpetstore.domain.AdoptItem;
public interface AdoptMapper {
void insertList(AdoptItem adoptitem);
List<AdoptItem> selectAdoptItem();
AdoptItem getItem(String itemId);
void deleteAdoptItem(String ite... | 19.736842 | 46 | 0.792 |
89dfd6629af0d3f45a39eb77f023cde7345c1a0e | 3,817 | /*******************************************************************************
* Copyright 2016 Ivan Shubin http://galenframework.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 41.945055 | 189 | 0.663872 |
8bdbd44daa6a836564f66963f2170771e99da067 | 4,793 | /*
* MIT License
*
* Copyright (c) 2020 Ridanisaurus
*
* 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, mod... | 45.647619 | 138 | 0.774463 |
7ed10d09d44576332c59fc9395d43d32900f8513 | 2,658 | /*
* SentinelDB RESTful API
* Read more at https://docs.sentineldb.io
*
* OpenAPI spec version: 1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.logsentinel.sentineldb.api;... | 26.058824 | 157 | 0.646351 |
9a90902d10668915d824ad8d24b9cb81f6b617f1 | 3,191 | /*
* Copyright (C) 2013 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... | 38.914634 | 125 | 0.721091 |
4cb28b882c43e207d22d036095ef90d4c0eb6a7b | 503 | import com.ailbb.act.$;
import com.ailbb.act.hdfs.$Hdfs;
import org.junit.Assert;
import org.junit.Test;
/*
* Created by Wz on 9/10/2018.
*/
public class HdfsTest {
@Test
public void test() throws Exception {
// Assert.assertEquals("", HdfsTest.init());
}
public static $Hdfs init() throws Exc... | 21.869565 | 58 | 0.636183 |
1e7a97209381d58bb9b8f584f714eabf32bc2ceb | 720 | /**
* Date de création : janvier 2021
* Groupe : AMT-D-Flip-Flop
* Description : Répertoire pour un utilisateur de la BDD
* Remarque : -
* Sources :
* https://www.codejava.net/frameworks/spring-boot/user-registration-and-login-tutorial
*/
package com.amt.dflipflop.Reposito... | 31.304348 | 87 | 0.744444 |
7416e56289c1acb5fc1a81bc0beb1e01a3344c0c | 2,844 | package com.mmtech.icecloud.manager.controller.sys;
import com.mmtech.icecloud.manager.common.entity.Pager;
import com.mmtech.icecloud.manager.common.AjaxResult;
import com.mmtech.icecloud.manager.server.sys.entity.SysRole;
import com.mmtech.icecloud.manager.server.sys.service.SysRoleService;
import org.springframewor... | 37.421053 | 120 | 0.721519 |
338f68cdd5f10519324863d496ea0788f3fc5134 | 3,672 | class Demo {
public static void main(String args[]) {
int cost_1[][] = {{4, 7, 12}};
get_total_cost(1, cost_1);
int cost_3[][] = {{5, 14, 73}, {1, 543, 875}, {231, 4, 531}, {7, 11, 14}};
get_total_cost(3,cost_3);
int cost_2[][] = {{1, 2, 3}, {10, 11, 12}};
get_total... | 27.609023 | 156 | 0.507081 |
2c03f0d83866fd6d24e0f4fbd0122a0d7b1a12b6 | 2,260 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.indexes.models;
import com.azure.core.a... | 43.461538 | 142 | 0.762389 |
13e721d891e2174ba8d080a5db33afbe34474af5 | 1,357 | import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
public class TopKFrequentElements {
static public List<Integer> topKFrequent(int[] nums, int k) {
Map<Integer,Integer> counts = new HashMap<>();
... | 28.270833 | 124 | 0.546057 |
6a4eff270737906e522bf54e75c39e0a724a86f6 | 3,402 | package tw.edu.mcyangstudentapp.ApiModel;
import android.app.Activity;
import androidx.annotation.Nullable;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
impo... | 32.4 | 113 | 0.608172 |
1d6ac4c151991cd47c3f11cb984fab909e4b29b0 | 694 | package org.jenkinsci.plugins.salto.utility.steps.docker;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import java.io.Serializable;
public class DockerParamsResponse implements Serializable {
private static final long serialVersionUID = 1L;
private String buildArgs = "";
... | 21.030303 | 75 | 0.693084 |
ce31e48561794e4d15c5b6033595ed3113c2f54f | 10,412 | /*
* An XML document type.
* Localname: ArrayOfArrayOfSearchResults
* Namespace: http://schemas.microsoft.com/crm/2011/Contracts
* Java type: com.microsoft.schemas.crm._2011.contracts.ArrayOfArrayOfSearchResultsDocument
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.crm._20... | 84.650407 | 290 | 0.764887 |
15befbeb1c9117d92cac420940e409482839ebe2 | 2,437 | package diploma.android.client;
import android.location.Location;
import com.google.android.gms.location.LocationListener;
import android.os.Bundle;
/**
* A very basic location listener. Holds a reference to the last location read.
*/
public class SimpleLocationListener implements LocationListener {
/**
* ... | 27.693182 | 81 | 0.641362 |
d4e1787356fb92cf535ed3f24007535b37dbb056 | 1,180 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
/*
* The easiest way is to iterate through the range and, for every number, check if that number is a perfect square.
* Unfortunately, this approach leads to a TLE.
* Instead of searching for the perfect squares,... | 34.705882 | 119 | 0.648305 |
bef5357308b74f77f59ed043fb0cbe6e18582907 | 384 | //package org.kingtec.utils.tools;
//
//import java.util.LinkedHashMap;
//
//public class LRUCache<K, V> extends LinkedHashMap<K, V> {
//
// private final int maxSize;
//
// public LRUCache(int maxSize) {
// this.maxSize = maxSize;
// }
//
//
//// @Override
//// protected boolean removeEldestEntry (En... | 20.210526 | 63 | 0.604167 |
f7e56be5ac37e191b2e81f8aa662e30b5e83e940 | 211 | package xyz.mcboyz.multiplayerhardcorefabric;
import net.fabricmc.api.ModInitializer;
public class MultiplayerHardcoreFabric implements ModInitializer {
@Override
public void onInitialize() {
}
}
| 19.181818 | 66 | 0.781991 |
41212a91884e367e59e7b27a6c57c27080057398 | 5,462 | /**
* MIT License
*
* Copyright (c) 2021 TriumphTeam
*
* 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, mod... | 32.129412 | 109 | 0.660198 |
96f4fca62d3daa056ee5ff4453908fe2e194e0d6 | 793 | /**
* Copyright (C) 2018 Jeebiz (http://jeebiz.net).
* All Rights Reserved.
*/
package net.jeebiz.admin.extras.inform.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import net.jeebiz.admin.extras.inform.dao.entities.InformRecordModel;
import... | 22.027778 | 75 | 0.727617 |
4a99ba3d72505e053d5a873d9e0d1d0d3c4f6bd4 | 4,674 | /*
* MIT License
*
* Copyright (C) 2013 - 2017 Philipp Nowak (https://github.com/xxyy) and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, includin... | 41.732143 | 165 | 0.708173 |
b226379c9843a46b25cc0c6fe70a60c1286edc90 | 532 | package htwz.search;
/**
* @author: wy
* @createDate: 2020/3/18/018 7:15
* @descption 线性查找
* @version: 1.0.0
*/
public class SeqSearch {
public static void main(String[] args) {
int[] arrays = {1, 9, 11, -1, 34, 89};
int result = seqSearch(arrays, 11);
System.out.println(result);
}
... | 20.461538 | 55 | 0.505639 |
70bdba130762e575b88d4b7c62fb7f56eff1e9c4 | 4,545 | /*
Copyright 2013 the original author or authors.
Licensed under the Apache License, Version 2.0 the "License";
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 30.3 | 140 | 0.655446 |
98913698b72c8c360d53a82c52b506ab62aa273c | 935 | package org.orthomcl.service.core.report;
import static org.gusdb.fgputil.functional.Functions.f0Swallow;
import static org.gusdb.wdk.model.answer.TransformUtil.transformToNewResultTypeAnswer;
import org.gusdb.wdk.model.answer.AnswerValue;
public class GroupFastaReporter extends FastaReporter {
private static fin... | 33.392857 | 97 | 0.780749 |
e15177a7705322d6be03859baa8e9202d77d0eb8 | 1,903 | package com.irtimaled.bbor.client.commands;
import com.irtimaled.bbor.client.providers.SlimeChunkProvider;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
impor... | 39.645833 | 104 | 0.668944 |
73b1518b7d5faf4d193990268ef80ba239d90270 | 628 | package ejerciciosMatrizes;
public class ejercicio3 {
public void transformada18(int dimen, int numInit) {
String[][] matriz=new String[dimen][dimen];// i = Fila; j=Columna
for (int j = matriz [0]. length -1 ; j >=0; j-- ) {
for (int i = 0; i < (matriz.length)-j; i++) {
... | 33.052632 | 73 | 0.546178 |
b5addd3111f99efb5147d28571063ba4c3280d72 | 581 | package com.sunny.grokkingalgorithms.fasttrack.dynamicprogrammingandrecursion;
/**
* Created by sundas on 6/12/2018.
*/
public class PowerOfX {
/**
*
* @param x
* @param n
* @return
*/
public static int power(int x,int n){
if(n==0){
return 1;
}
if(x==1){
return 1;
}
... | 16.138889 | 78 | 0.571429 |
c4b455d5d880147a5274f28e7385b60f6570a33e | 524 | package com.examples.leetcode.array_easy;
/** https://leetcode.com/problems/move-zeroes/ */
public class L283MoveZeros {
public void moveZeroes(int[] nums) {
int count = 0;
for (int i : nums) {
if (i == 0) {
++count;
}
}
int index = 0;
... | 20.96 | 51 | 0.408397 |
60fe18d6f7c80ec9dd7f2344e5ade19fa181599f | 1,099 | package javase8sample.chapter13.javafx8.features;
/**
* Created by deng on 2014/9/21.
*/
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.S... | 26.166667 | 57 | 0.650591 |
d118a6fc2fa5d82fe89782c13783cc1c0ac8da79 | 312 | package io.federecio.dropwizard.sample;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Saying {
private final String message;
public Saying(String message) {
this.message = message;
}
@JsonProperty
public String getMessage() {
return message;
}
}
| 17.333333 | 53 | 0.682692 |
aa11ae9595bbc58e8853500c4c6340e0d46c2052 | 23 | foo bar bar foo bar foo | 23 | 23 | 0.782609 |
500bc7d8a9ec8c8ea517d4e73ed8077a693d6d68 | 2,663 | ////////////////////////////////////////////////////////////
//
// Anime Warfare
// Copyright (C) 2016 TiWinDeTea - contact@tiwindetea.org
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this softwar... | 27.739583 | 101 | 0.691701 |
64ee32db258b2f1465381dbbc9be620a0f92eedd | 83 | package cn.cdut.a6pan.Bean;
public class ResultOfflineTaskPage extends Result {
}
| 16.6 | 51 | 0.807229 |
6b4cf8f0d7efba635506fbc69e541d97f573ad68 | 186 | package br.edu.infnet.controller;
import org.springframework.web.bind.annotation.RequestMapping;
@RequestMapping("/InfnetOpiniao")
public abstract class AbstractController {
} | 23.25 | 63 | 0.790323 |
08a65dbe668fc50bdf17800b3b658b4afa26bd4d | 1,231 | /**
*/
package es.udima.cesarlaso.tfm.gpiosactuators.tests;
import es.udima.cesarlaso.tfm.gpiosactuators.GpioTimerActuator;
import junit.framework.TestCase;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Gpio Timer Actuator</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public abs... | 21.982143 | 74 | 0.648253 |
5e8565587ab692d9aeb6dd98dbcbaf870157f238 | 2,613 | /*
* Licensed to STRATIO (C) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. The STRATIO (C) licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file... | 31.481928 | 107 | 0.640643 |
fced2f49d306c1f0de9b1bfa6a854131d8ea8a98 | 1,658 | import java.io.*;
/**
* This Entity class is built upon by
* the Pokemon and Trainer classes.
*
* @author Claude Daniel 2017
*/
public abstract class Entity implements Serializable {
/** The entity's name */
private String name;
/** The entity's hp */
private int hp;
/** The entity's max HP. *... | 19.27907 | 63 | 0.522316 |
0398e0ac5e22bafc1077d8bce531c63a31abf4cf | 529 | package cl.zpricing.commons.charts.vo;
import java.util.ArrayList;
import java.util.HashMap;
public class DatosGraficoSingleSeriesCharts extends DatosGrafico {
private ArrayList<HashMap<String, String>> valores;
public DatosGraficoSingleSeriesCharts() {
super();
valores = new ArrayList<HashMap<Strin... | 25.190476 | 70 | 0.731569 |
4dd2fce21f350fbbe3c76e2ff6bca6a3d5f965f3 | 4,670 | /*
* Copyright 2013-2016 Indiana University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 27.151163 | 75 | 0.641756 |
603088fadd32aa5002e2fda462aec54fa1cc7b90 | 1,732 | /*
* Copyright 2004-2009 the Seasar Foundation and the 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 ... | 32.679245 | 80 | 0.654734 |
60cb63a4a685301f21502b88dc14f07f85a0c62a | 1,154 | package org.batfish.common.topology;
import java.util.Optional;
import java.util.Set;
import org.batfish.datamodel.Configuration;
import org.batfish.datamodel.Interface;
/** A helper class for topology-related functions for interfaces. */
public final class InterfaceUtil {
/**
* Returns the name of an interface ... | 37.225806 | 100 | 0.734835 |
78d081a501f6bbc53da3dbb556f28f87ab8eaf46 | 854 | package edu.learn.cdi.demo.ws.config;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import javax.ws.rs.ext.Provider;
@Provider
public class ResponseCorsFilter implements ContainerResponseFilter {
... | 40.666667 | 124 | 0.771663 |
e12f235f9d8aa9fc125242b7da8bcce591939cbf | 1,266 | package engine.objects.shapes;
import org.lwjgl.util.vector.Vector2f;
import engine.graphics.BasicRenderer;
import engine.graphics.Color;
/**
* This class creates a rectangle using the shape class
* @author Sharhar
*
*/
public class RenderShapePoly extends RenderShape{
/**
* This constructor
* @param pos ... | 18.895522 | 70 | 0.657188 |
720338caecc701aab7073604bd5e521c90df7021 | 1,974 | package tk.thesuperlab.zapit;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
import jfxtras.styles.jmetro.JMetro;
import jfxtras.styles.jmetro... | 27.416667 | 89 | 0.753293 |
4ed3a4b414d71c25ac73d8bf3b3e0c7b7110a30b | 1,084 | package io.github.educontessi.domain.model;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import static io.github.educontessi.domain.helpers.util.FuncoesString.formatarNome;
/**
* Entidade {@link Bairro} para manipular tabela de bairros
*
* @au... | 19.017544 | 83 | 0.72417 |
d065ff5ac0f556656a597eaf4cefd2d8a812defe | 764 | package com.wya.uikit.notice.switcher;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import static com.wya.uikit.notice.switcher.SwitcherViewAnimDirection.DOWN_2_UP;
import static com.wya.uikit.notice.switcher.SwitcherViewAnimDirection.L... | 30.56 | 83 | 0.793194 |
c23bbfd521090d3aeda878101dac6211676f09ec | 1,942 | package dk.miracle.grapevine.realm_db.model;
import java.util.Date;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by mak on 25-02-2016.
*/
public class NotificationEntity extends RealmObject {
@PrimaryKey
private int id;
private int postId;
private int firstUser... | 20.442105 | 75 | 0.644696 |
e658d67fcb4236b776896f47a838a6ada71fc814 | 314 | package com.warumono.resource.services;
import org.springframework.stereotype.Service;
import com.warumono.resource.entities.Acceptance;
import com.warumono.resource.repositories.AbstractRepository;
@Service
public class AcceptanceService extends AbstractService<AbstractRepository<Acceptance>, Acceptance>
{
}
| 26.166667 | 98 | 0.853503 |
13363e478d5f968eb58089d4e5c6d21bd78fbe13 | 4,860 | package com.bluevortexflare.securevoip.communication;
import com.bluevortexflare.securevoip.session.UserSessionService;
import com.bluevortexflare.securevoip.users.register.VoIPUser;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.an... | 32.61745 | 111 | 0.562963 |
805f044f3c8abeb3c767b8189373156278e4c117 | 992 | /*
* Copyright (c) 2011-2017 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... | 29.176471 | 123 | 0.724798 |
f0f59597649cbbbe1df6544f59c33772fe8be09d | 388 | package com.baeldung.commons.chain;
import static com.baeldung.commons.chain.AtmConstants.NO_OF_FIFTIES_DISPENSED;
public class FiftyDenominationDispenser extends AbstractDenominationDispenser {
@Override
protected String getDenominationString() {
return NO_OF_FIFTIES_DISPENSED;
}
@Override
... | 25.866667 | 79 | 0.757732 |
87e6bad88b4de59f9712de3a7eeb78fe54836b49 | 365 | /*
* 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 ml.paulobatista.projetosoap;
/**
*
* @author paulo
*/
public class Teste {
public static void main(String args[]) ... | 20.277778 | 79 | 0.668493 |
1a8154ca43421d403e5d00ec8fe9b5c6b3c90b3e | 1,457 | /*
* Copyright (C) 2015 Atanas Gegov
*
* 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... | 33.113636 | 80 | 0.786548 |
01d0dc0f9fa245ce73158b4a849108edb5f3aa7f | 964 | package org.itevents.util.OneTimePassword;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.UUID;
@Component
public class OneTimePassword {
private String password;
private Date expirationDate;
public OneTimePassword() {
}
public String getPassword() {
... | 24.1 | 99 | 0.682573 |
eece92fdf6435b19b5f61e325a08f1dcf0005b43 | 2,024 | //Authored by : suin8
//Co-authored by : -
//Link : http://boj.kr/e4ac08ca21d54fa5bdfa599c5359a0b4
import java.util.*;
import java.io.*;
public class Main {
static int dp[];
static int arr[];
public static void main(String[] args) {
FastReader rd = new FastReader();
int N = rd.nex... | 26.285714 | 70 | 0.425395 |
46b8ddfa73f5c44a02acc86ef982eb9eabe1c2c8 | 5,064 | /*===========================================================================
Copyright (C) 2013 by the Okapi Framework contributors
-----------------------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in com... | 37.791045 | 112 | 0.691351 |
1efabc8b9fa7c736b14140d5333900eba2194316 | 2,548 | package com.rtalpha.pms.app.rest.external;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.annotation.Nonnull;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | 35.388889 | 110 | 0.789639 |
6470d65cae9e744f104f60d762c742c937563955 | 437 | package me.xenodevs.xeno.utils.other;
import me.xenodevs.xeno.Xeno;
import net.minecraft.client.Minecraft;
import net.minecraft.util.text.TextComponentString;
public class ChatUtil {
static Minecraft mc = Minecraft.getMinecraft();
public static void addChatMessage(String message) {
message = "\2479" + Xeno.NA... | 24.277778 | 80 | 0.75286 |
f27f21a1b0de67f5b46e33c85f53553c72c8c37c | 3,509 | package com.example.marta.battleorganizer_v1;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.util.Log;
... | 31.612613 | 90 | 0.648048 |
07098248431b75368234ec5d1823c5e3b296a52e | 15,060 | /* Copyright (c) 2001-2019, The HSQL Development Group
* 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 source code must retain the above copyright notice, this
* list... | 40.16 | 104 | 0.556906 |
f89c1cb2927f069209950b55408909f6ea560e00 | 1,301 | package com.rackspace.papi.commons.util.transform.xslt;
import com.rackspace.papi.commons.util.pooling.Pool;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
i... | 31.731707 | 114 | 0.738663 |
4584839eaef63c35a508027e39195366743a9620 | 1,138 | package com.mydomain.accounting.model.persistence;
import java.time.Instant;
public class TagPersistenceModel {
Long id;
String description;
Integer status;
Long userId;
Instant createTime;
Instant updateTime;
public Long getId() {
return id;
}
public void setId(Long id) ... | 18.655738 | 52 | 0.61775 |
05f68f091612394bdc957357730a92e37a4e5ab7 | 2,659 | package tauleap;
import java.util.Arrays;
import java.util.Comparator;
import umontreal.ssj.util.sort.MultiDimSort;
/**
* This abstract class takes multi-dimensional objects such as arrays or
* #MultiDim's, maps them to the real numbers via a #scoreFunction @f$h@f$ and
* then sorts the objects according to their ... | 23.324561 | 79 | 0.64009 |
4016f58e6e59f78154f5ad2cad381f4cc5ed61dd | 1,427 | package de.slothsoft.tribes;
import java.awt.Color;
/**
* The interface that does all the heavy work in this challenge.
*
* @author Stef Schulz
* @since 1.0.0
*/
public interface Tribe {
/**
* The maximum size for a tribe. After this value is achieved, a tribe will stop
* growing.
*/
i... | 17.402439 | 82 | 0.604064 |
ffe091cbaedbb5bf6f154d65e31abf2b943bde15 | 1,026 | package com.zwh.xingyutest.net;
import com.zwh.xingyutest.BuildConfig;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
/**
* @author Richard
* @time 2020/1/16
* @describe 设置给 Retrofit 的 OkHttpClient
* 内容不完整,有待完善
*/
public class HttpForRetro... | 27 | 78 | 0.663743 |
ef19da1106bde9806bbbda64f507db8ca1f80933 | 208 | package ru.mirea.ikbo1319.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ru.mirea.ikbo1319.model.Tour;
public interface TourRepository extends JpaRepository<Tour, Long> {}
| 29.714286 | 68 | 0.831731 |
3386476de5167dc5d81b4f1d995d7c2ba767b64f | 1,501 | package com.dcits.patchtools.svn.service.impl;
import com.dcits.patchtools.svn.TestBase;
import com.dcits.patchtools.svn.model.FileBlame;
import com.dcits.patchtools.svn.service.PathRuleService;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
/**
* @autho... | 31.93617 | 127 | 0.720853 |
85580bd3d403a3c537a49073323b311e79476cd1 | 1,844 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 34.792453 | 149 | 0.766811 |
91d57ebf44f88376a923b1dc581c7cd0c9fd72a0 | 429 | package com.essalah.recipescraper.model;
public class Instruction {
private int order;
private String description;
public int getOrder() {
return order;
}
public void setOrder(int order) {
this.order = order;
}
public String getDescription() {
return description;... | 17.875 | 52 | 0.638695 |
e9f3ac2d4ae6eb31c7f9ebc7f43e331d325122e9 | 753 | package A1_002;
import java.util.Scanner;
public class Java_02_A2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int i = 1, sum;
switch (N) {
case 1:
N = 1;
break;
case 2:
N = 2;
break;
case 3:
N = 3;
break;
case 4:
... | 13.944444 | 95 | 0.460823 |
03841feceeeaf746d05f95b810a6dc026f06fd02 | 21,453 | /*
* 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.818841 | 147 | 0.724048 |
91fde5178869a4c87425db2d330cd5f30694727b | 2,231 | package ca.pfv.spmf.test;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import ca.pfv.spmf.algorithms.frequentpatterns.MRCPPS.AlgoMRCPPS;
/*
* This file is part of the SPMF DATA MINING SOFTWARE *
* (http://www.philippe-fournier-viger.com/spmf).
*
* SPMF is free sof... | 38.465517 | 111 | 0.69879 |
749f443df97080362be326c4eaba00de5ca1753c | 3,900 | /*
* Copyright (c) 2011-2015 EPFL DATA Laboratory
* Copyright (c) 2014-2015 The Squall Collaboration (see NOTICE)
*
* 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... | 39.393939 | 90 | 0.666667 |
4ca66f79476576f1674b54cf220783863836c4e0 | 1,701 | package com.vosmann.flechette.server;
import org.hyperic.sigar.NetConnection;
import org.hyperic.sigar.NetFlags;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SystemMetricsService {
private static final Logger LOG = ... | 32.09434 | 90 | 0.670194 |
aadf0e40e7450684d8542211b3ba360c05d201c0 | 1,368 | package com.tinesoft.droidlinguist.server.json.translation.target;
import java.io.Serializable;
import java.util.Map;
/**
* Translation object.
*
* @author Tine Kondo
*
*/
public class TranslationResource implements Serializable
{
/**
*
*/
private static final long serialVersionUID = 1L;
private String ... | 16.682927 | 124 | 0.697368 |
10678b43166af6c9df864706778c6cd49dc1fcb9 | 2,459 | /*
* Copyright 2009 Joubin Mohammad Houshyar
*
* 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 b... | 30.358025 | 93 | 0.744205 |
9c1b2b14bfeac5b085e686aaa4edc4107030be17 | 673 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v4.view;
import android.graphics.Rect;
// Referenced classes of package android.support.v4.view:
// GravityCompat
static inter... | 28.041667 | 87 | 0.73997 |
978f5ba378c9c5afca3480474ba8074d11cab90f | 698 | package com.wingsofts.mvphelper.biz.config.impl;
import com.intellij.openapi.project.Project;
import com.wingsofts.mvphelper.biz.config.MvpConfigurable;
import com.wingsofts.mvphelper.gui.MvpHelperConfigPanel;
/**
* @author Administrator
* @since 2017/4/25.
*/
public class MvpConfig implements MvpConfigu... | 24.068966 | 65 | 0.69341 |
5937d94099fcf6948c459ae2ea4438c4f0ec4f9a | 2,797 | package com.github.filosganga.geogson.model;
import static com.google.common.collect.Iterables.transform;
import com.github.filosganga.geogson.model.positions.AreaPositions;
import com.github.filosganga.geogson.model.positions.LinearPositions;
import com.google.common.base.Function;
import com.google.common.collect.F... | 29.755319 | 115 | 0.656418 |
1aaba2acf132578135cf40e827dced67d72bde55 | 2,408 | package com.ectosense.nightowl.controller;
import com.ectosense.nightowl.service.UserService;
import com.ectosense.nightowl.controller.helper.ApiHelper;
import com.ectosense.nightowl.controller.helper.CustomApiResponse;
import com.ectosense.nightowl.data.entity.User;
import com.ectosense.nightowl.data.model.LoginPojo;... | 35.940299 | 106 | 0.747508 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.