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 |
|---|---|---|---|---|---|
0276ee14723fb0709c03a7cc9be6f5da8a8dde72 | 230 | package de.uniba.dsg.concurrency.exercises.documentation;
public class Class7 {
private final int x;
public Class7(int x) {
super();
this.x = x;
}
public int getX() {
return x;
}
}
| 13.529412 | 57 | 0.565217 |
69cd683dd182b2d055f716be03f92c293f4c7ff5 | 1,479 | package net.enigmablade.lol.lolitem.ui.models;
import java.util.*;
import javax.swing.*;
public class MovableListModel<E> extends DefaultListModel<E>
{
//Physical up, indices decrease
public int[] moveUp(int[] indecies)
{
int[] newIndecies = new int[indecies.length];
Arrays.sort(indecies);
... | 21.434783 | 73 | 0.616633 |
92e4d6ce1eacd136281c86f182f9805bdfb91be3 | 4,774 | package sch.frog.learn.spring.mybatis.gen.mapper;
import sch.frog.learn.spring.mybatis.gen.model.GCoffee;
import sch.frog.learn.spring.mybatis.gen.model.GCoffeeExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.... | 34.846715 | 149 | 0.675744 |
c65001d18d225bf79518e773db8eeeaf1974877b | 3,117 | package io.reactivex.internal.operators.flowable;
import io.reactivex.Flowable;
import io.reactivex.FlowableSubscriber;
import io.reactivex.Single;
import io.reactivex.SingleObserver;
import io.reactivex.disposables.Disposable;
import io.reactivex.exceptions.Exceptions;
import io.reactivex.internal.disposables.EmptyDi... | 35.420455 | 255 | 0.676933 |
8b754bdd0aff028bbf3e96283785580589354c1c | 546 | package basics.exceptionHandling;
public class G
{
public static void main(String[] args)
{
int[] arr1={10,20,30,40,50,60,70,80};
int[] arr2={10,0,30,0,50};
for(int i=0;i<arr1.length;i++)
{
try
{
System.out.println(arr1[i]/arr2[i]);
//arr[5]/arr[5];
//60/no values
}
catch(Arithme... | 16.545455 | 42 | 0.591575 |
0f11df4f9dbcaa3f536362e8d0bc832eb215acf2 | 3,404 | /*
###############################################################################
# #
# Copyright 2016, AdeptJ (http://www.adeptj.com) #
# ... | 39.581395 | 79 | 0.515276 |
d72840e3a086d958a49347eaafd7e659c797a196 | 1,232 | //
// ========================================================================
// Copyright (c) Webtide LLC and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/legal/epl-2.0
//
// This Sour... | 32.421053 | 75 | 0.633929 |
c620f89c257f1f0f6cfb15a4fdf9c553493874c1 | 1,160 | package eu.epfc.cours3449.LibrarySQL;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class MySQL {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
Class.f... | 34.117647 | 102 | 0.557759 |
d9f975631149beba1467046e57623bfaccde9f37 | 8,275 | /*
* Copyright 2001-2014 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Words. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package programmingwithdocumen... | 45.467033 | 145 | 0.627915 |
31ed3562fb76f435c9d412e70fed110a9dafbe7d | 10,609 | package ch.pascal_mueller.frackstock;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.os.Handler;
import android.os.IBinder;
impor... | 34.898026 | 121 | 0.629089 |
ae24c9746396605f2afbe03807ef635c24eb8fda | 104,642 | package com.alwaysallthetime.messagebeast.manager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.location.Address;
import android.location.Geocoder;
import android.util.Log;
import com.alwaysallthetime.adnli... | 49.1277 | 221 | 0.673372 |
9f56a1ea15ad33b652e55f00b1628a580e4bd257 | 2,831 | package com.ca.agency.car.seller.domain;
import java.io.Serializable;
import java.time.LocalDate;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
impo... | 22.648 | 146 | 0.666196 |
7b77478e4b8d94bbcc2cf0dad6d52efbc43ddc6f | 1,269 | package io.github.herobrine2nether.netherLauncher.backend.files;
import io.github.herobrine2nether.netherLauncher.backend.Util.Logging;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
public class FileOps {
public static void NewInstall() {
try {
FileU... | 25.38 | 73 | 0.613081 |
1891640e019a7112ca8d01d182cbb07f8d7ea574 | 1,116 | package binarysearch;
import java.util.LinkedList;
import java.util.Queue;
/*
* Problem: https://binarysearch.com/problems/Binary-Tree-to-Linked-List
* Submission: https://binarysearch.com/problems/Binary-Tree-to-Linked-List/submissions/6916754
*/
public class P0231 {
class Solution {
public LLNod... | 20.290909 | 96 | 0.547491 |
eb45e476752bceaeebe730187925379907f28121 | 2,921 | package com.moon.util;
import org.junit.jupiter.api.Test;
import java.util.Date;
import static org.junit.jupiter.api.Assertions.*;
/**
* @author benshaoye
*/
class DateUtilTestTest {
@Test
void testNow() {
}
@Test
void testNowDate() {
}
@Test
void testNowSqlDate() {
}
@... | 11.5 | 59 | 0.503595 |
7ea356762ee690db310b50e5add43fdbd31ba689 | 1,189 | /*
* Copyright (C) 2008 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... | 22.865385 | 75 | 0.640875 |
51329750fdf62de3c86764844f1389299c8e28c3 | 2,571 | package com.example.administrator.myjournal.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.example.administrator.myjournal.R;
import com.e... | 37.26087 | 107 | 0.669389 |
e323c4fea5230bf30f50c474b9e8648d68c765e8 | 148 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.parser.template;
public interface StringEscaper {
String escape(String str);
} | 16.444444 | 42 | 0.736486 |
26073f92af3460b694888b86f5ae223ba99538d2 | 2,921 | package com.wuest.prefab;
import com.wuest.prefab.proxy.messages.TagMessage;
import com.wuest.prefab.structures.messages.StructureTagMessage;
import io.netty.util.internal.StringUtil;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.TextComponent;
import org.... | 33.574713 | 150 | 0.680931 |
03922c49d65fc7323966ccc2fc603f85f93d330f | 203 | package dev.cheerfun.pixivic.biz.web.admin.dto;
import lombok.Data;
/**
* @author OysterQAQ
* @version 1.0
* @date 2020/4/24 3:26 下午
* @description CommentDTO
*/
@Data
public class CommentDTO {
}
| 14.5 | 47 | 0.694581 |
543916629acec62f084ed8f26f5150c7f4d31b37 | 4,991 | package com.bitdubai.fermat_ccp_plugin.layer.request.crypto_payment.developer.bitdubai.version_1.structure;
import com.bitdubai.fermat_api.layer.all_definition.enums.Actors;
import com.bitdubai.fermat_api.layer.all_definition.enums.BlockchainNetworkType;
import com.bitdubai.fermat_api.layer.all_definition.money.Crypto... | 36.698529 | 151 | 0.553997 |
4bed0e39bcfc4f2089b864c142ad1a19d38da183 | 2,643 | /*
* 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 ... | 26.43 | 100 | 0.608778 |
1e07b5fccb118bb3e80f9571688aff08816e689e | 3,985 | package befaster.solutions.CHK;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class CheckoutSolutionTest {
private final CheckoutSolution checkoutSolution = new CheckoutSolution();
@Test
public void shouldReturnMinusOneForInvalidInput() {
a... | 41.947368 | 165 | 0.685571 |
d78baab7d435caf78441aa5c7f5bf18e35bde27d | 354 | /*******************************************************************************
* © 2012 Global Retail Information Ltd.
******************************************************************************/
package com.epa.plugins.exception;
/**
* @author programador6
* @version $Revision: 1.0 $
*/
public class DeviceI... | 27.230769 | 80 | 0.389831 |
d7e411a9ae0d9340cfecf1fa8240a545c6948c37 | 331 | package cn.xjjdog.bcmall.module.product.persistence.dao;
import cn.xjjdog.bcmall.module.product.persistence.BrandEntity;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* Copyright (c) 2021. All Rights Reserved.
*
* @author xjjdog
*/
public interface BrandDao extends JpaRepository<BrandEntity, S... | 25.461538 | 70 | 0.785498 |
45800128ed52a8cc60634db417256806ca0580d7 | 2,359 | package ru.illine.weather.geomagnetic.config;
import ru.illine.weather.geomagnetic.config.property.RestProperties;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | 43.685185 | 122 | 0.718525 |
7a36ee714c44631bda50600f3153be042f3ab8c0 | 1,066 | package service.food.app.Service;
import service.food.app.persistence.jpa.dto.RestaurantDto;
import service.food.app.persistence.jpa.entity.RestaurantEntity;
import service.food.app.persistence.jpa.repository.RestaurantRespository;
import service.food.app.persistence.jpa.service.RestaurantPersistanceService;
import lo... | 31.352941 | 77 | 0.816135 |
dd25b7e3df005ca1c33ad54801169a01f8e6079c | 944 | package com.github.pixelstuermer.patterns.composite.model;
import java.util.Iterator;
import com.github.pixelstuermer.patterns.composite.composite.SpeisekartenComponent;
import com.github.pixelstuermer.patterns.composite.iterator.NullIterator;
public class Speise extends SpeisekartenComponent {
private String na... | 20.085106 | 83 | 0.664195 |
8689e399458b3ef8ebfad6451ed2c9570147c398 | 1,601 | /*
* Copyright 2022 Apollo 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 to i... | 33.354167 | 95 | 0.74391 |
05174224d31211f433b25e73780d6e3a510b945b | 166 | package com.rabbit.lancealance.service;
import com.rabbit.lancealance.model.lance.Partida;
public interface IPartidaService extends IBaseService<Partida, Long> {
}
| 23.714286 | 70 | 0.825301 |
14a48088d23380d96691b2a57f8fe3892c7ec4bf | 6,071 | /*
* 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 ... | 40.744966 | 129 | 0.726404 |
98b4f09939ba14d0b676669c77033ad855463fc5 | 4,039 | /**
* (C) Copyright 2011-2015 FastConnect SAS
* (http://www.fastconnect.fr/) and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | 28.048611 | 100 | 0.71998 |
c2705dc7a2ac12bec946fa0e7f9baafe87c50775 | 1,782 | package parsing;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
*
* @author exponential-e
* 백준 1388번: 바닥 장식
*
* @see https://www.acmicpc.net/problem/1388/
*
*/
public class Boj1388 {
private static boolean[][] used;
public static void main(String... | 26.205882 | 90 | 0.494388 |
4b2eb0d3d59e706814ae56b6c912e206a17d3a9d | 1,891 | /**
* Copyright (C) 2013-2016 The Rythm Engine project
* for LICENSE and other details see:
* https://github.com/rythmengine/rythmengine
*/
package org.rythmengine.cache;
/*-
* #%L
* Rythm Template Engine
* %%
* Copyright (C) 2017 - 2021 OSGL (Open Source General Library)
* %%
* Licensed under the Apache Lic... | 21.988372 | 81 | 0.669487 |
16f37a3d4a6010e2f2db7a25eb669b176e96f0ae | 852 | package com.compomics.icelogo.core.enumeration;
/**
* Created by IntelliJ IDEA.
* User: kenny
* Date: Jun 18, 2009
* Time: 4:04:16 PM
* <p/>
* This class
*/
public enum LogoProperties {
FASTAFILE_1("FASTAFILE_1"),
FASTAFILE_2("FASTAFILE_2"),
FASTAFILE_3("FASTAFILE_3"),
PVALUE("PVALUE"),
HEAT... | 23.027027 | 53 | 0.680751 |
d6bdb2b2d743e47e55712227c28d98ebdbdc692c | 512 | package com.tassioauad.gamecheck.dagger;
import android.app.Application;
import android.content.Context;
import dagger.Module;
import dagger.Provides;
@Module(library = true)
public class AppModule {
private static Application app;
public AppModule(Application app) {
this.app = app;
}
publ... | 16 | 45 | 0.666016 |
a55c54526c4ce5a89b6c2979f490ff95373d95b8 | 462 | public class PessoaJuridica extends Pessoa{
private String CNPJ;
public PessoaJuridica(String nome, String CNPJ){
super(nome);
this.CNPJ = CNPJ;
}
// Getters
public String getCNPJ(){
return this.CNPJ;
}
// Setters
public void setCNPJ(String CNPJ){
this.... | 19.25 | 69 | 0.573593 |
f7ebfc6bd413e3492dd7934c8cec2134a8ced6b0 | 3,877 | /*
* #%L
* Learnr
* %%
* Copyright (C) 2014 Ondrej Skopek
* %%
* 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, ... | 36.92381 | 88 | 0.689709 |
62560909444d1f63198adb03e35315cbdd5eaf01 | 1,302 | package org.red5.server;
import org.red5.server.api.scope.IScope;
import org.red5.server.api.stream.IStreamFilenameGenerator;
public class FilenameGenerator implements IStreamFilenameGenerator {
/** Path that will store recorded videos */
public String recordPath = "recordedStreams/";
/** Path that contains VOD ... | 25.038462 | 99 | 0.740399 |
1f9b494e5a7ef841b51f90077670a54e1aeadb1e | 414 | package com.leetcode.algorithm.easy.implementqueueusingstacks;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class MyQueueTest {
@Test
public void testCase1() {
MyQueue queue = new MyQueue();
queue.push(1);
queue.push(2);
assertEquals(1, q... | 21.789474 | 62 | 0.707729 |
6101089f68d40bd99d6a4829cd381dab9f21559f | 475 | package tp5;
import static org.junit.Assert.*;
import org.junit.Test;
public class CalculatriceAvecMemoireTest {
@Test
public void testSaveAndReload() {
CalculatriceAvecMemoire calc = new CalculatriceAvecMemoire();
calc.setValeurCourante(5);
assertEquals(5.0, calc.getValeurCourante(), 0.0);
calc.save();
... | 21.590909 | 63 | 0.734737 |
7f3c61e44a8ada35752d5936332aa5f62ad56df7 | 710 | package it.redhat.demo.ogm;
import static org.assertj.core.api.Assertions.assertThat;
import javax.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
import io.thorntail.test.ThorntailTestRunner;
/**
* Integration test using Hibernate OGM application within Thorntail framework.
*
* This test... | 20.882353 | 79 | 0.746479 |
8f48d09d42f2f3cadb03189b9484b8353d47ac7a | 520 | package com.nukkitx.network;
import com.nukkitx.network.util.DisconnectReason;
import java.net.InetSocketAddress;
public interface SessionConnection<T> {
InetSocketAddress getAddress();
default InetSocketAddress getRealAddress() {
return getAddress();
}
void close();
void close(Discon... | 16.774194 | 49 | 0.703846 |
0c8a890c2f9717b535fc7abea15cc2a71a153546 | 1,919 | package com.tumblr.b1moz.caderninho003.adapters;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RatingBar;
import android.widget.TextView;
import com.tumblr.b1m... | 30.951613 | 119 | 0.730589 |
70901bc71e5fdeb7250b3bd2f4c3782707145589 | 5,258 | /*
* Copyright (c) 2014, Kustaa Nyholm / SpareTimeLabs
* 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 ... | 36.013699 | 125 | 0.735831 |
c52ee33af186797758ea2006b734a5dddc99c94b | 188 | package br.ufsc.bridge.res.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum Sort {
ASC(""),
DESC("-");
private String code;
}
| 12.533333 | 34 | 0.734043 |
b23e6846602886c96985e8eb2b4d8342ee919495 | 436 | package com.mehdi.shortcutdemo.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.mehdi.shortcutdemo.R;
public class FavoriteActivity extends AppCompatActivity {
@Override
public void onCreate(@Nullable Bundle savedInsta... | 27.25 | 63 | 0.78211 |
0693ae4f912f7397d0cb515e72afec7f0ce06bc1 | 541 | package org.nutz.validate.impl;
import org.nutz.validate.NutValidateException;
import org.nutz.validate.NutValidator;
public class StrValueValidator implements NutValidator {
private String str;
public StrValueValidator(Object any){
this.str = any.toString();
}
@Override
public ... | 19.321429 | 65 | 0.63586 |
d5a67f1d169ac71d6457ff288a0c34422a7d7ed2 | 234 | // this is my favorite file
package io.github.opencubicchunks.cubicchunks.chunk;
public interface VerticalViewDistanceListener {
void setIncomingVerticalViewDistance(int verticalDistance);
int getVerticalViewDistance();
}
| 21.272727 | 63 | 0.807692 |
e8b0f49e4d9ecde6ba9d7f54f607ab6317c0d119 | 28,137 | package com.google.android.rappor;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import com.google.common.io.BaseEncoding;
import com.google.common.primitives.Bytes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/**
* Unit ... | 43.022936 | 88 | 0.76195 |
78f5d206f2100d51af222e49541e42cc0d44f00d | 403 | package com.github.eostermueller.perfgoat;
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
public class ITBlock {
@Test
public void test() throws IOException {
String killFileName = System.getProperty("com.github.eostermueller.snail4j.kill.file");
BlockOnSentinelFi... | 18.318182 | 89 | 0.746898 |
eeec6f99cfb9e6e95fe938ee02b24075c0ca4739 | 3,207 | /**
* 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
* distribu... | 35.241758 | 130 | 0.758029 |
8e941f258add95b50a344a23f1d60aaaa4c80126 | 10,638 | /*
* 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 ... | 41.717647 | 382 | 0.554428 |
fbcf23fc0f3de9dce773e9376a589fb47d09ea25 | 862 | package cc.mrbird.febs;
import cc.mrbird.febs.common.entity.BaseEntity;
import cc.mrbird.febs.system.entity.DictDetail;
import cc.mrbird.febs.system.mapper.DictDetailMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ClassUtils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.a... | 26.121212 | 62 | 0.772622 |
2c7d0f04b283c5c500eb24e73aa3048cd2f53f2e | 557 | package org.checkerframework.common.reflection.qual;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation for methods of the form:
* <br>
* <code>{@li... | 29.315789 | 70 | 0.771993 |
5801d7dde575177709626e25125723ab59e57831 | 969 | package swarm.client.view;
import swarm.shared.utils.U_Math;
public class Tweener
{
private double m_tweenTime;
private double m_startValue;
private double m_endValue;
private double m_elapsedTime;
public Tweener(double tweenTime)
{
m_tweenTime = tweenTime;
m_elapsedTime = m_tweenTime;
m_startValue = m_... | 19 | 78 | 0.72549 |
c90b05a63255c057d02bfd4c53a19c1815b08a11 | 5,418 | package hs.strategy;
import hs.Timer;
import hs.heuristic.HeuristicFunction;
import hs.representation.Board;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Random;
public class IDAlphaBetaSearchH_RandomMoves implements SearchStrategy {
private int plyThreshold;
p... | 23.353448 | 72 | 0.637135 |
b005f716f40d46fc142ee21aff4421d9aa8879b7 | 12,727 | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | 35.352778 | 108 | 0.53579 |
874fd9be065a11a8a4630758c49f8ae1f07cf4a0 | 2,020 | package lv.lumii.obis.schema.services.extractor;
import lombok.extern.slf4j.Slf4j;
import lv.lumii.obis.schema.model.*;
import lv.lumii.obis.schema.services.common.dto.QueryResult;
import lv.lumii.obis.schema.services.extractor.dto.*;
import org.springframework.stereotype.Service;
import javax.annotation.Nonnull;
imp... | 43.913043 | 211 | 0.824752 |
9ae02f177db703f099a05c91f282df6fb777ea49 | 3,515 | package edu.colorado.csdms.heat;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* JUnit tests for the grid information methods of the {@link BmiHeat} class.
*/
public class TestGridInfo {
private String varName;
private int gridId;
private int... | 22.532051 | 77 | 0.654339 |
3a1a7019c248f92f24b09eee384fbeb32ebf8b42 | 2,902 | /*
* Copyright 2017 Ribose Inc. <https://www.ribose.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 35.390244 | 88 | 0.75603 |
c074726bef66ae4258f01e994e47282c38696573 | 3,035 | package ru.job4j.board;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Класс StartTest.
* @author Konstantin Kolganov (kkolganov.92@gmail.com)
* @since 07.10.2017
* @version 2.0
*/
public class StartTest {
/**
* Тест метод.
* Если в текущей ячейке стоит... | 30.049505 | 83 | 0.708402 |
cbd920b65323d05e6243f29de4921e726d9ae79d | 879 | package org.gillius.jagnet.netty;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Output;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
public class KryoEncoder extends MessageToByteEncoder<Object> {
priva... | 29.3 | 93 | 0.782708 |
689e9414b3920266e025b3523d542ee6512394a6 | 11,537 | package ui.custom.fx;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.beans.WeakInvalidationListener;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.ObservableValue;
import javafx.scene.Node;
import java... | 35.94081 | 112 | 0.542515 |
5f562edd34ee1b01fe8e7f94055ff3f53a85f074 | 653 | package im.wangbo.java.leetcode.tree;
/**
* See https://leetcode-cn.com/explore/interview/card/top-interview-questions-medium/32/trees-and-graphs/87/
*
* 根据一棵树的前序遍历与中序遍历构造二叉树。
*
* 注意:
* 你可以假设树中没有重复的元素。
*
* 例如,给出
*
* 前序遍历 preorder = [3,9,20,15,7]
* 中序遍历 inorder = [9,3,15,20,7]
* 返回如下的二叉树:
*
* 3
* ... | 19.205882 | 108 | 0.600306 |
c46df6d25d012a75017e9a65c7677bba464c8f29 | 1,039 | package com.didiglobal.logi.log.common.enums;
/**
* @author jinbinbin
* @version $Id: StorageEnum.java, v 0.1 2018年03月22日 23:31 jinbinbin Exp $
*/
public enum StorageEnum {
//
KAFKA(0, "kafka"),
//
DATA_CENTER(1, "da... | 24.162791 | 74 | 0.347449 |
bcbab632b769a000defb63186063371c1eaf92e6 | 1,066 | package poussecafe.attribute;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* @param <U> Stored type
* @param <T> Attribute type
*/
public class AdaptingReadWriteOptionalAttributeBuilder<U, T> {
AdaptingReadWriteOption... | 28.052632 | 91 | 0.660413 |
64602728d7d865c6814e8acfcda0cd0aec813983 | 94 | package org.jvnet.jaxb2_commons.xml.bind.model;
public interface MTransientPropertyInfo {
}
| 15.666667 | 47 | 0.819149 |
7693c8afe1eaeb95aa00ec1c9810e9beab0a4f54 | 6,916 | /*
* 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... | 31.870968 | 138 | 0.64893 |
d8572e98a4f9c3841955e6ea5bd9e1db0b012605 | 5,599 | /*
* This file is part of BDF
* BDF,Bstek Development Framework
* Copyright 2002-2013, BSTEK
* Dual licensed under the Bstek Commercial or GPL Version 2 licenses.
* http://www.bstek.com/
*/
package com.bstek.bdf.plugins.databasetool.wizard.pages.dialog;
import java.io.File;
import org.eclipse.jface.dialogs.Dial... | 28.712821 | 120 | 0.746026 |
dff28a44de8b6ad25879c9c0cef61dfa939f571c | 46,106 | // 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.v7.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
impor... | 40.232112 | 172 | 0.56433 |
3697bbc22d1aaceeb28aac574127ee6a0fa5ec9f | 2,094 | /*
* 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 ... | 34.9 | 84 | 0.782235 |
141af6668ad3710cff1d70061fe495b9fe569780 | 3,029 | package com.aromero.theamcrmservice.security;
import com.aromero.theamcrmservice.api.user.User;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.c... | 23.850394 | 115 | 0.62859 |
81f22eff55523661071980994b9ca7bcae8ea796 | 156,213 | package functionalj.list;
import static functionalj.TestHelper.assertAsString;
import static functionalj.functions.TimeFuncs.Sleep;
import static functionalj.lens.Access.theDouble;
import static functionalj.lens.Access.theInteger;
import static functionalj.lens.Access.theLong;
import static functionalj.ref.Run.With;
i... | 38.091441 | 167 | 0.433792 |
1bd47e4fbd554159dd9cb8a26bf62cbc960fe460 | 198 | package seedu.planner.model.module;
/**
* Class to represent a Laboratory-type Lesson.
*/
public class Laboratory extends Lesson {
public ModuleTime getTime() {
return null;
}
}
| 16.5 | 47 | 0.676768 |
08fc1fe871ccfbf653f5877a808e426a4c4872a0 | 21,951 | /*
* This file is generated by jOOQ.
*/
package cn.vertxup.ambient.domain.tables.records;
import cn.vertxup.ambient.domain.tables.XEmailServer;
import cn.vertxup.ambient.domain.tables.interfaces.IXEmailServer;
import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo;
import java.time.LocalDateTime;
impo... | 23.756494 | 349 | 0.585076 |
98dea07424fb2037e4a33f9cbce6ebc0c94343b1 | 5,825 | /*****************************************************************************
* 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 *
* r... | 36.40625 | 122 | 0.601717 |
bc1d70d08d22ab1b9d1169b877f6b0b6c258ce8d | 917 | package example.spring.filter;
import example.spring.ApplicationStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.s... | 30.566667 | 121 | 0.769902 |
34ff5e0696810d2a5ef63ac5d3c3c71d38eacc98 | 1,249 | package com.oceanbase.foldermonitor.executor;
import lombok.Getter;
import org.springframework.util.StreamUtils;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
/**
* @Author: Knox
* @Date: 2020/5/31 11:41 上午
* @Description: You Know
* @Version 1.0
*/
public abst... | 25.489796 | 114 | 0.651721 |
5cbb8863ba475bd20459659efd26f6c748f84882 | 386 | package me.inassar.didemo.services.impl;
import me.inassar.didemo.services.interfaces.GreetingService;
import org.springframework.stereotype.Service;
@Service
public class GreetingServiceImpl implements GreetingService {
public static final String HELLO_NASSAR = "Hello Nassar!! - Original";
@Override
pu... | 24.125 | 74 | 0.764249 |
aedaf5b95118e153ddaa3434abaa67ae6defe8da | 191 | package ro.ase.csie.cts.g1067.seminar14.state;
public class StareNormala implements InterfataStareSuperErou{
@Override
public void deplasare() {
System.out.println("Alearga !");
}
}
| 17.363636 | 61 | 0.753927 |
a523e7ea1bbd36ee6348ee7d1b908dc694100c47 | 828 | package authzplay;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.AuditAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.CacheStatisticsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfiguration... | 46 | 109 | 0.850242 |
aa688859445c5d4073e55a24a7a178e8d8670741 | 5,569 | package io.opensphere.featureactions.editor.ui;
import java.util.List;
import javafx.scene.control.ListCell;
import javafx.scene.input.ClipboardContent;
import javafx.scene.input.Dragboard;
import javafx.scene.input.TransferMode;
import io.opensphere.featureactions.editor.model.SimpleFeatureAction;
import ... | 31.642045 | 98 | 0.530795 |
8c25888d9df4e4a02a31ccc6fe5b175b07326f76 | 1,981 | package io.github.bananapuncher714.ngui.objects;
import java.io.Serializable;
/**
* Comparable, with top left corner being the least and bottom right being the greatest
*
* @author BananaPuncher714
*/
public class BoxCoord implements Comparable< BoxCoord >, Cloneable, Serializable {
protected int x, y, height, ... | 18.009091 | 87 | 0.610298 |
3daf98c7b21632019cb2a9452d0cebaac2bb659b | 2,842 | package ewhine.http.api;
import java.io.File;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spark.Request;
import spark.Response;
import ewhine.config.Config;
import ewhine.tools.SU;
public class Main {
private static final Logger LOG = LoggerFactory.getLogger(Main.class);
... | 21.530303 | 78 | 0.651654 |
7d84a7f875c728f5850d289ee579882ea5052c88 | 740 | package models;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class DecodeTest {
@Test
public void runEncryption_ifInputIsString() {
Encode testEncryption = new Encode("abc",3);
assertEquals("abc", testEncryption.getmInputString());
}
@Test
pu... | 25.517241 | 97 | 0.659459 |
100e0521861e67e538a20f56d7543426b1403e0e | 1,374 | package com.example.canta.project3;
/**
* Created by a_tur on 2/25/2017.
*/
public class QuestionHolder {
private static QuestionHolder ourInstance = new QuestionHolder();
public static QuestionHolder getInstance() {
return ourInstance;
}
public static int questionList[] = new int[15];
... | 25.444444 | 100 | 0.703057 |
501ec99219aae3b756d3c2eec52339fa8db62e91 | 2,369 | // Copyright (c) 2020-2022 ginlo.net GmbH
package eu.ginlo_apps.ginlo.fragment;
import android.app.Activity;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widg... | 37.603175 | 136 | 0.68721 |
bac08c9b5387396487977a03f75f970859c5c269 | 1,093 | package com.company;
public class Snack
{
private int id;
private String name;
private int quantity;
private double cost;
private int vendingMachineId;
public Snack(int id, String name, int quantity, double cost, int vendingMachineId)
{
this.id = id;
this.name = name;
... | 21.019231 | 86 | 0.535224 |
716c2ae7564339f1d5a43fe6870b102da62d7da4 | 3,921 | /*
* Copyright 2017 Urs Fässler
* SPDX-License-Identifier: Apache-2.0
*/
package world.bilo.stack;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class Vector_operation_Test {
@Test
public void rotate_0_degree() {
assertEquals(new Vector(0, 0, 0), new Vector(0, 0, 0).rotateOnZ... | 43.087912 | 95 | 0.669217 |
2e5fdcd6122a26e27d22b7dac391d6d9d536a92c | 3,495 | package com.nightlycommit.idea.twigextendedplugin.tests.stubs.indexes;
import com.intellij.ide.highlighter.XmlFileType;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.indexing.FileBasedIndex;
import com.intellij.util.indexing.FileBasedIndex... | 48.541667 | 197 | 0.688412 |
a28fcaac97c03ac5c21a12cd9ab20bf8944783cf | 1,443 | /*
* Copyright 2009-2017 University of Hildesheim, Software Systems Engineering
*
* 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... | 34.357143 | 109 | 0.682606 |
03b07667fb557d5cf716ad058f589ec4cfe8082f | 375 | package com.knowledge_network.user.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by pentonbin on 18-3-20
*/
@Controller
@RequestMapping(value = "")
public class LoginController {
@RequestMapping(value = "/login")
p... | 20.833333 | 62 | 0.725333 |
40de30f3a405e68c9b27c07c5b4a7e9524d3a96f | 1,171 | package Unitex;
import java.util.ArrayList;
import java.util.List;
/**
* Created by spyridons on 8/18/2016.
*/
public class UnitexJniResult {
private String term;
private String concept;
private List<String> BabelNet;
private List<String> DBPedia;
public UnitexJniResult()
{
this.Ba... | 17.742424 | 52 | 0.600342 |
8b228a8532295c031acd63fa3f68a73d30ffb7b3 | 127 | package mujina.ping;
public class OpenTokenException extends Exception {
public OpenTokenException(String s) {super(s);}
}
| 18.142857 | 51 | 0.779528 |
3b4cf9bf662199d8643fbbc8ddfafb2310ef8684 | 10,501 | /*
* 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 swim.sim.uwswarm.intelli.brain.struct.artif;
import com.jme3.math.FastMath;
import java.util.ArrayList;
import java.u... | 38.892593 | 107 | 0.589182 |
b3bc88136faec067753fc1550fd5af308b034319 | 9,614 | package com.aboutsip.performance.config;
import io.parsenip.ArgParser;
import io.parsenip.Argument;
import io.parsenip.CommandLine;
import io.parsenip.Parsenip;
import io.pkts.buffer.Buffer;
import io.pkts.buffer.Buffers;
import io.pkts.packet.sip.impl.SipParser;
import net.sourceforge.argparse4j.ArgumentParsers;
impo... | 37.40856 | 137 | 0.59871 |
dec7707934faab52d206b64c682e63dcd6f7688b | 4,203 | /*
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 f... | 39.650943 | 130 | 0.681894 |
706529f46c0b99d6064091fb808a803d64c37e79 | 3,730 | package com.zuccessful.trueharmony.pojo;
import android.content.Context;
import java.io.Serializable;
public class Injection implements Serializable {
private String id;
private String name;
private String reminderStatus;
private String hour;
private String min;
private String day;
... | 21.436782 | 101 | 0.542627 |
689f7bf14d86e0478ce41fdd5eeb6f2fe65401c4 | 8,531 | /*
* Copyright (c) 2010-2017, Numdata BV, The Netherlands.
* 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
* not... | 24.944444 | 121 | 0.635564 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.