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 |
|---|---|---|---|---|---|
fa98b31df7aa65fc1829f5278b2906cfd2a508d7 | 1,509 | package nl.jaapcoomans.boardgame.domain.command;
import java.util.List;
import java.util.UUID;
import nl.jaapcoomans.boardgame.domain.BoardGame;
import nl.jaapcoomans.boardgame.domain.GameMechanic;
public class CreateBoardGameCommand {
private String title;
private String publisher;
private String author;
privat... | 21.869565 | 139 | 0.758118 |
e43e044f11e6cad912b4c550bd94ac33940bcca5 | 2,346 | package com.blithe.cms.controller.system;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.blithe.cms.common.exception.R;
import com.blithe.cms.common.tools.StringUtil;
import com.blithe.cms.pojo.system.Loginfo;
import com.blithe.cms.service.system.LoginfoS... | 34 | 104 | 0.664962 |
7c2ce81455476b0062a302d2caed58d7cfae897d | 2,260 | package com.fongmi.android.tv.source;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.net.Uri;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import com.fongmi.android.tv.App;... | 25.681818 | 118 | 0.715044 |
836d25e637086fbb31f8d42093355ff1b7652b8a | 127,800 | // uniCenta oPOS - Touch Friendly Point Of Sale
// Copyright (c) 2009-2015 uniCenta & previous Openbravo POS works
// http://www.unicenta.com
//
// This file is part of uniCenta oPOS
//
// uniCenta oPOS is free software: you can redistribute it and/or modify
// it under the terms of the GNU General P... | 58.894009 | 358 | 0.689264 |
8c685e07205af9a486287037b948b49c739dbaeb | 7,589 | // Copyright 2007 Google 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 required by
// applicable law or agre... | 33.139738 | 94 | 0.651601 |
6dfd21880c2fbba5253d0514b0ca4808be334e49 | 2,003 | /*
* Copyright 2004-2011 H2 Group.
* Copyright 2011 James Moger.
*
* 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
*
* Unl... | 23.845238 | 76 | 0.654518 |
0dc6c2a980ccdb6178e1dab9550bd605e999e198 | 1,463 | /*
* Copyright (c) 2022 DenaryDev
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package io.sapphiremc.chromium.client.dummy;
import io.sapphiremc.chromium.ChromiumMod;
import net.minecraft.client.world.Clien... | 39.540541 | 256 | 0.766234 |
64ca7eda0821bab1ea39290d28bb2ac607d12cd3 | 93 | class HDnmzDfnIR8E {
}
class KEsFD2lV {
}
class vL3uclvroC {
public boolean[][] O;
}
| 7.75 | 25 | 0.634409 |
49065cbbc8e87c9ad3be44985fcfefa9aa96d144 | 1,464 | ///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//package net.clementlevallois.utils;
//
///**
// *
// * @author C. Levallois
// * @param <T>
// */
//public class Pair<T> {
//
// private T left;
// private T right;
//
// public Pair(T ... | 22.181818 | 102 | 0.446721 |
fb31c9c127a28b65ce94ed31b24b5e635d024cbb | 1,078 | package com.learn.leetcode.onehundredFiftyToTwohundred;
/**
* Description:
* date: 2021/6/28 13:29
* Package: com.learn.leetcode.onehundredFiftyToTwohundred
*
* @author 李佳乐
* @email 18066550996@163.com
*/
@SuppressWarnings("all")
public class LC165 {
public static void main(String[] args) {
String s... | 25.666667 | 72 | 0.528757 |
727d4f445d63c30dff02f3aa540c774bc8088b98 | 2,422 | package org.opencyc.api;
/**
* Class CycApiServerException indicates an error condition during
* a Cyc API call that occurred on the Cyc server. If an error is
* detected on the Java client, then a CycApiException is thrown
* instead.
*
* @version $Id: CycApiServerSideException.java 138070 2012-01-10 19:46:08... | 35.101449 | 86 | 0.726259 |
5f180487353382b6e6adba220a8cf62d0c3b26d2 | 14,753 | /**********************************************************************
Copyright (c) 2004 Andy Jefferson and others. 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
h... | 38.023196 | 163 | 0.589168 |
7981ff9d3dd0849bd86cf7a5a62a1191085c8fbf | 868 | package jepperscore.dao.model;
import javax.annotation.Nonnull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonProperty... | 20.666667 | 54 | 0.693548 |
e360a2c584d2b50852d3cf3f3cc44189423601d4 | 25,916 | /*
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 40.684458 | 107 | 0.503434 |
bc3677c75516f0d39fccb673ac784d3ab95bd9d8 | 989 | package de.sandstorm.junit.examples.nestedEntities;
import de.sandstorm.junit.examples.simpleEntity.Person;
/**
* test entity with references to another one
*/
public class Mail {
private final Person recipient;
private final Person sender;
/**
* constructor for mail with unknown sender
*
... | 19.392157 | 55 | 0.584429 |
48b60884d21d208951f47b3945c54bb9ba4ad6c2 | 3,051 | package se.chalmers.ju2jmh.experiments.workloads;
import com.github.javaparser.ast.CompilationUnit;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ParseJavaSourceTest {
private String input = ParseJavaSource.INPUT;
private CompilationUnit expected = ParseJavaSource.getOutpu... | 37.207317 | 132 | 0.71452 |
6eeecb730189099fcef8ff0dfa11b9bf28a8696b | 644 | package leetcode;
/**
* https://leetcode.com/problems/smallest-string-with-a-given-numeric-value/
*/
public class Problem1663 {
public String getSmallestString(int n, int k) {
char[] chars = new char[n];
int remaining = k;
for (int i = chars.length - 1; i >= 0; i--) {
int x = ... | 26.833333 | 76 | 0.439441 |
106f6538a4331b99b5ff023b83c533c1e3b0ade7 | 1,753 | package tests;
import java.io.FileWriter;
import java.io.IOException;
import mitl.MiTL;
import model.Trajectory;
import parsers.MitlFactory;
import rand.ApacheMT;
import ssa.CTMCModel;
import ssa.GillespieSSA;
import ssa.StochasticSimulationAlgorithm;
import biopepa.BiopepaFile;
public class TestSSA {
public stati... | 26.560606 | 74 | 0.710211 |
32decb005f4de96910973cc324478475f1909685 | 571 | package ru.dm.shop.service;
import ru.dm.shop.entity.SignupConfirmation;
import java.util.List;
/**
* Created by alt on 16.03.17.
*/
public interface SignupConfirmationService {
SignupConfirmation create(SignupConfirmation signupConfirmation);
SignupConfirmation delete(SignupConfirmation signupConfirmatio... | 22.84 | 69 | 0.782837 |
a08442561ae14d58ab38817348b259a11d7ffffa | 250 | class Dummy {
public static void main(String... args) {
if (args.length == 0) {
System.err.println("99 TSP - No input file");
System.exit(1);
}
System.out.println("99 TSP - Input file is " + args[0] + ".tsp or .xml");
}
}
| 25 | 77 | 0.564 |
e71ce26cd9739469fe3f1cd8b7472c78cd964092 | 1,144 | package org.cloudburstmc.protocol.java.codec.v754.serializer.play.clientbound;
import io.netty.buffer.ByteBuf;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.cloudburstmc.protocol.common.util.VarInts;
import org.cloudburstmc.protocol.java.codec.JavaCodecHelper;
import org.cloudburstmc.protocol.... | 42.37037 | 92 | 0.802448 |
ad7c49bca1d5d1edc40e94473b74b7a1f6afe483 | 2,816 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 31.640449 | 121 | 0.78267 |
539a0411021315385400df13c6d5a02fbe5b04e7 | 17,484 | import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
public class PacMan extends Shape {
/**
* Class which "controls" most of ... | 37.681034 | 107 | 0.518989 |
eb8de6da19891cd2ddca7de299697880e99800ad | 7,398 | package ca.gc.ip346.classification.resource;
import static javax.ws.rs.HttpMethod.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Date;
import java.util.HashMap;
import ... | 39.989189 | 181 | 0.679102 |
e58a85c8d18cf185dac429edc7615d1929a727c7 | 4,707 | /*
* Sender - Testing topics support with AMQP 1.0 brokers
*/
package test;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.DeliveryMode;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageProducer;
import javax.jms.S... | 32.239726 | 103 | 0.682175 |
3fd26ec84fef6281a48a56c3afe2bbeaa4ef937e | 3,119 | /*
* MIT License
*
* Copyright (c) 2019 Udo Borkowski, (ub@abego.org)
*
* 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
* ... | 37.130952 | 81 | 0.716896 |
9f071f1dd036c9168a1486f355d7431475822d68 | 4,317 | /*
* Copyright 2018 Key Bridge.
*
* 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.992126 | 233 | 0.763262 |
b58855bd7da11d468395ef4bb8145ddab3580796 | 4,590 | /*
* 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.26087 | 117 | 0.629412 |
e77e7b88800e82556b28395a4530d0161b3621f3 | 3,154 | /*
*
* MIT License
*
* Copyright (c) 2017 朱辉 https://blog.yeetor.com
*
* 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
* ... | 37.105882 | 101 | 0.716867 |
8efdb88fb9a0a4a0b66434a1014693fc115c92c4 | 3,447 | package com.jlfex.hermes.model;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.jlfex.hermes.common.dict.Dicts;
import com.jlfex.he... | 15.052402 | 67 | 0.637076 |
ba0526284181df56b01a0b0af5aa6e8c8e76ea1f | 4,161 | /*
* Copyright 2020 White Magic Software, Ltd.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright
* notice, this li... | 40.398058 | 79 | 0.724826 |
93b4f021377829552919e5aff602b9beadaed2e2 | 7,202 | /*
* This file is generated by jOOQ.
*/
package com.epam.ta.reportportal.jooq.tables.records;
import com.epam.ta.reportportal.jooq.tables.JAclObjectIdentity;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record6;
import org.jooq.Row6;
import org.jooq... | 23.847682 | 153 | 0.583727 |
20efe0df5b9bab66be8e4b6e47b23200b8f1ade7 | 6,067 | package com.github.hilol14707.customservermod.util;
import java.io.File;
import net.minecraftforge.common.config.Configuration;
public class ConfigHandler {
private File configFolder;
private Configuration config;
private ConfigValues configValues = new ConfigValues();
public ConfigHandler(File modC... | 60.67 | 278 | 0.681556 |
212ef4b6dc8f28d50c2a4eedf3ec0e8c6fb6a197 | 1,196 | package janktastic.jankbot.audio;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
import com.sedmelluq.discord.lavaplayer.track.playback.MutableAudioFrame;
import java.nio.Buffer;
import net.dv8tion.jda.api.audio.AudioSendHandler;
import java.nio.ByteBuffer;
//Implementation of JDA AudioSendHandler that ... | 28.47619 | 85 | 0.758361 |
8f85864547732b9277d0b3964d222addf00f0eb2 | 3,157 | /**
* 언더스코어 문자열과 CamelCase 간의 상호변환 규칙 테스트
*/
package jcf.naming;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import junit.framework.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
import org.junit.rules.ExpectedException;
/**
* @author ... | 22.076923 | 79 | 0.712702 |
25ebf458a30f2f8895b4ae053405c90dde4007f6 | 1,747 | package net.predictblty.machinelearning.mlcommon;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.DataSerializable;
import java.io.IOException;
import java.io.Serializable;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
... | 26.876923 | 86 | 0.704064 |
b2af73cbb148d1037191332ea2ffa1ef5f4cd321 | 2,189 | package org.naddeo.elm.features.imports;
import java.util.Optional;
import org.junit.Test;
import org.naddeo.elm.lang.Exposed;
import org.naddeo.elm.lang.ImportStatement;
import org.naddeo.elm.lang.ImportStatements;
import org.naddeo.elm.lang.Module;
import org.naddeo.elm.lang.ModuleDefinition;
import static junit.f... | 39.089286 | 98 | 0.676565 |
bad589df42d7d90369bc219e33328959c85679a5 | 4,909 | package com.ceiba.categoria.entidad;
import com.ceiba.BasePrueba;
import com.ceiba.categoria.modelo.entidad.Categoria;
import com.ceiba.categoria.servicio.testdatabuilder.CategoriaTestDataBuilder;
import com.ceiba.dominio.excepcion.ExcepcionLongitudValor;
import com.ceiba.dominio.excepcion.ExcepcionValorInvalido;
impo... | 39.272 | 138 | 0.686902 |
6929763e566ae64eca99484e0011d5e535110ef8 | 451 | package org.phoenix.leetcode.challenges;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class Problem11_FloodFillTest {
private final Problem11_FloodFill test = new Problem11_FloodFill();
@Test
void floodFill() {
int[][] arr = new int[][]{{0, 0, 0}, {0, 1, ... | 26.529412 | 71 | 0.620843 |
9aa00398a304e1ba86015029956ccacaf70ebb01 | 1,754 | package com.ramamosr;
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
public class RotationGameArray {
public static void main(String[] args) throws IOException {
Scanner input = new Scanner(System.in);
int useCaseCount = input.nextInt();
input.nextLine();
... | 38.977778 | 118 | 0.527366 |
8c84e99106f1fbff30e156eec8ea2a0aa29f8619 | 198 | package com.github.datalking.web.mvc.condition;
/**
* @author yaoo on 4/28/18
*/
public interface NameValueExpression<T> {
String getName();
T getValue();
boolean isNegated();
}
| 12.375 | 47 | 0.656566 |
69580e19103a4b2e1cad0521d9ea399ee17bf367 | 2,261 | package edu.pku.gg.pokemonbutton.type;
import android.animation.ArgbEvaluator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.util.AttributeSet;
import edu.pku.gg.pokemonbutton.TypeView;
import ... | 29.75 | 102 | 0.670942 |
2bc9e7f814388c97edf25ee809c75401b0f468b3 | 34,101 | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) 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
*
* Un... | 37.89 | 130 | 0.747808 |
bc4b8cf5d92d648ab51c7f3881279c74105e7332 | 286 | package city.restaurant.omar;
public class FoodTicket {
OmarCustomerRole c;
OmarWaiterRole w;
public FoodTicket(OmarWaiterRole w, OmarCustomerRole c){
this.w = w;
this.c = c;
}
public OmarCustomerRole getC(){
return c;
}
public OmarWaiterRole getW(){
return w;
}
}
| 15.052632 | 57 | 0.706294 |
f44ed1ec9a7898d7acc6a2b57373d53eb1acd92e | 1,858 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 40.391304 | 114 | 0.772336 |
f947f388a243b1594542b529a7fb6330f69e8bb8 | 692 | package com.example.electrowayfinal.repositories;
import com.example.electrowayfinal.models.Favourite;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;
public interface FavouriteRepository extends JpaRepository<Favourite, Long> {
List<Favourite> fi... | 25.62963 | 88 | 0.773121 |
d426765ffc1470467f010d63138930b6df4440dd | 3,616 | package com.crud.cloud.evanliu2968.controller.file;
import com.baomidou.mybatisplus.plugins.Page;
import com.crud.cloud.evanliu2968.dto.ResponseData;
import com.crud.cloud.evanliu2968.dto.request.GetFileReq;
import com.crud.cloud.evanliu2968.dto.response.FileGroupRes;
import com.crud.cloud.evanliu2968.dto.response.Fil... | 37.666667 | 126 | 0.721792 |
18eaa448b20876ff1d6739b8886a38ac88f492a2 | 3,436 | package ru.project.cscm.model;
import java.util.Calendar;
import java.util.Collection;
import java.util.Set;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persisten... | 27.488 | 126 | 0.774447 |
874f8b8d49ed30ae273fba6f434fbaa768ba4cfd | 1,223 | package io.treehopper.desktop.demos.sandbox;
import java.util.ArrayList;
import java.util.List;
import io.treehopper.ConnectionService;
import io.treehopper.*;
import io.treehopper.libraries.io.adc.nau7802.ConversionRates;
import io.treehopper.libraries.io.adc.nau7802.Gains;
import io.treehopper.libraries.io.adc.nau7... | 31.358974 | 97 | 0.623058 |
bf0b424277e1a57623d1026b1737a6198442c5fc | 1,122 | package cn.iocoder.springboot.lab03.kafkademo.producer;
import cn.iocoder.springboot.lab03.kafkademo.message.Demo01Message;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.support.SendResult;
import org.springframework.stereotype.Component;
import org.springframework.util.concurre... | 32.057143 | 92 | 0.746881 |
f39ff775ff70d38c88433141202fffc1c4dcc1d1 | 1,606 | package ru.vyarus.guice.persist.orient.db.scheme.initializer.core.ext;
import com.google.common.collect.LinkedHashMultimap;
import com.google.common.collect.Multimap;
import ru.vyarus.guice.persist.orient.db.scheme.initializer.core.spi.field.FieldExtension;
import ru.vyarus.guice.persist.orient.db.scheme.initializer.c... | 27.689655 | 93 | 0.655044 |
aabe59accd3c7b09d8a3c973ec4ad17278b8217e | 415 | package ai.cellbots.robotlib;
import org.jboss.netty.buffer.ChannelBuffer;
import nav_msgs.MapMetaData;
import std_msgs.Header;
/**
* Interface to generate an {@link nav_msgs.OccupancyGrid} to be published by
* {@link ROSNode}.
*/
public interface OccupancyGridGenerator {
void fillHeader(Header header);
v... | 24.411765 | 77 | 0.775904 |
2df29bfa391814924bab920a5c9040e513d154a4 | 1,009 | package com.xhhf.shaika.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;
import java.util.List;
/**
* 商家界面viewpager适配器
*/
public class MyFragmentAdapter extends FragmentStatePage... | 22.931818 | 99 | 0.702676 |
da45c83a60fe3cab55ab3066a8791d0472850338 | 661 | package StoreInventoryMV;
import StoreInventoryMV.controller.StoreController;
import StoreInventoryMV.ui.StoreUI;
import java.io.IOException;
public class App {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// Product p=new Product();
//p.read();
... | 20.030303 | 60 | 0.685325 |
0f553e2322ef97551659b9c09998351ba97cf92f | 431 |
// Author: Pierce Brooks
package com.piercelbrooks.common;
import androidx.annotation.NonNull;
import android.util.Log;
public class UnimplementedException extends RuntimeException
{
private static final String TAG = "PLB-UnimplementExcept";
public UnimplementedException(@NonNull String tag)
{
... | 21.55 | 62 | 0.698376 |
a026db23e68a79169f8e37a4771924bdbfecce98 | 7,831 | package org.s3s3l.yggdrasil.orm.bind.express.common;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Collectors;
import org.s3s3l.yggdrasil.orm.bind.ColumnStruct;
import org.s3s3l.yggdrasil.orm.bind.Table;
imp... | 36.25463 | 115 | 0.656366 |
099c02c36a525f97f5a82e331f12ac19e17a3cce | 2,701 | package org.zmsoft.jfp.framework.oss;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.zmsoft.jfp.framework.constants.IFrameworkConstants;
import org.zmsoft.jfp.framework.utils.DateHelper;
import org.zmsoft.jfp.framework.util... | 32.154762 | 86 | 0.750833 |
2151a6421ed8805dd80912215be3fdb3e0b3b803 | 712 | package com.infinityworks.pafclient.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.immutables.value.Valu... | 32.363636 | 70 | 0.766854 |
6ef20a0b026fbd1896392a31dc3b5c5e2a89037f | 13,130 | /*
* ======================================================================
* || Copyright (c) 2020 Colin Robertson (wobblyyyy@gmail.com) ||
* || ||
* || This file is part of the "Pathfinder" project, which is licensed ||
* || and distributed... | 38.279883 | 79 | 0.606931 |
0e8d0dcfbd6b224186d1d6da9793171f45d83624 | 23,980 | package com.bewitchment.client.render.entity.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
/**
* lilith2 - cybercat5555
* Created using Tabula 5.1.0
*/
public class ModelLilith extends ModelBase {
public ModelRenderer biped... | 46.472868 | 95 | 0.706422 |
9dbfb6b135909eb578b3763b7c6e32338fbdbdae | 2,365 | package org.sunbird.cb.hubservices.model;
import java.util.Date;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ConnectionRequest {
@NotNull
@JsonProperty("userIdFrom")
private String userId;
@NotNull
@JsonProperty("userIdTo")
private String c... | 19.072581 | 67 | 0.757717 |
156bb812c268edaa2cabe56dde9d164e58f1648f | 364 | package com.t.core.remote.exception;
/**
* @author tb
* @date 2018/12/18 13:52
*/
public class RemoteCommandFieldCheckException extends Exception {
public RemoteCommandFieldCheckException(String message) {
super(message);
}
public RemoteCommandFieldCheckException(String message, Throwable caus... | 21.411765 | 78 | 0.708791 |
f4a42496e805fa1f833f234f4b5b5c8cbe4ad34f | 639 | package ru.job4j.tracker;
import java.util.ArrayList;
/**
* Interface for the "Tracker" class.
*
* @author Dmitrii Eskov (eskovdmi@gmail.com)
* @version 1.0
* @since 12.12.2018
*/
public interface Input {
/**
* Asks user a question and returns their answer.
* @param question - a question
* @... | 23.666667 | 99 | 0.649452 |
e4d47c1cff0f99c51fc6d42c33ecb1dd24d946a1 | 7,800 | /*
* 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 ... | 37.320574 | 128 | 0.609872 |
886dac5c3b3969884da01ffb3eaec567b639a430 | 4,601 | /*
* 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 ... | 36.515873 | 129 | 0.667681 |
5e4b377c61b253f45880cc472afe8fb9fdc283c2 | 1,442 | package uk.gov.hmcts.reform.sscs.migration;
import java.util.Optional;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import uk.gov.hmcts.reform.sscs.ccd.domain.Benefit;
import uk.gov.hmcts.reform.sscs.ccd.domain.SscsCaseData;
@Service
@C... | 37.947368 | 96 | 0.744799 |
3f2a2388f82dbf90c93c6b17a788843a804e18f0 | 5,043 | /*
* MIT License
*
* Copyright (c) 2020 TerraForged
*
* 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, modi... | 32.535484 | 109 | 0.690065 |
424ccd55bd2765324f6e799b96586793f4255512 | 654 | package weather.sunrays.com.helper;
import android.net.Uri;
import java.util.Map;
/**
* Created by brajesh on 16/11/14.
*/
public class NetworkHelper {
// making it private so the that it cant be instantiated
private NetworkHelper(){}
public static String makeUrl(String baseUrl, Map<String , String > ... | 27.25 | 82 | 0.639144 |
ff003053393d89fa335f6d34335d082ca23a820d | 1,225 | package bean;
import java.io.Serializable;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.Date;
import database.annotation.Column;
import database.annotation.Id;
import database.annotation.Table;
@Table(name = "user")
public class User implements Serializable {
private static final ... | 20.081967 | 70 | 0.658776 |
c333e47e1c2224966ef24e3200ce3f6c258b8e9d | 870 | package org.jboss.resteasy.test.providers.jaxb.resource;
public class JaxbElementReadableWritableEntity {
private String entity;
public static final String NAME = "READABLEWRITEABLE";
private static final String PREFIX = "<" + NAME + ">";
private static final String SUFFIX = "</" + NAME + ">";
public J... | 30 | 78 | 0.698851 |
9dcaff7f8ec029f9672b0086d5c1713ebe1348ce | 268 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package visao.processos;
/**
*
* @author brunn_000
*/
public class BuscaVenda extends Thread{
@Override
public void run(){
}
}
| 12.761905 | 52 | 0.597015 |
dcdd32ae081a37057da156c3a931d3a1f0658a12 | 3,565 | /**
* 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... | 41.941176 | 114 | 0.752595 |
43b85d9cc0bbda18525b22ad45e05bd8c5d42702 | 820 | package pl.jkkk.task0;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
public class Map extends Mapper<LongWritable, Text, Text, IntWritable> {
/*------------------------ F... | 31.538462 | 72 | 0.591463 |
3bad58856c9c4568c522a885b045d2492a444cf9 | 363 | package eps.focuspro.test_data_dtos;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement
public class TestData {
@XmlElement
public List<TestGroup> testGroups;
@XmlElement
public List<TestUser> testUsers;
@XmlElement
... | 20.166667 | 48 | 0.76584 |
e561377cecdb792c1d62643ecfdaeb1aac727ef0 | 4,232 | package com.jhomlala.persons.view;
import android.app.ProgressDialog;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultItemA... | 35.266667 | 132 | 0.710066 |
40d3532a44409c83a253edbda0de10bf361bcbee | 5,011 | package servidor;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import comandos.ComandosServer;
import mensajeria.Comando;
import mensajeria.Paquete;
import mensajeria.PaqueteAt... | 27.233696 | 123 | 0.789663 |
a0ce63a880069c6b9a8bc000026ed213dca0f855 | 933 | package au.id.tindall.distalg.raft.log.storage;
import au.id.tindall.distalg.raft.log.Term;
import au.id.tindall.distalg.raft.log.entries.LogEntry;
import java.util.List;
import java.util.Optional;
public interface LogStorage {
void add(LogEntry logEntry);
void truncate(int fromIndex);
default boolean... | 20.733333 | 76 | 0.636656 |
6b01c3e3d80808d9b7954c7557bd9e5bfa94dcb3 | 5,938 | package com.datastax.tutorial;
import java.time.Duration;
import java.util.Arrays;
import java.util.stream.Collectors;
import org.apache.hc.client5.http.auth.StandardAuthScheme;
import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.client5.http.cookie.StandardCookieSpec;
import org.apache.hc.co... | 50.322034 | 126 | 0.64062 |
7810d7f8396009a58daade0e456de3b1fd6711a5 | 11,048 | /* */ package net.querz.nbt;
/* */
/* */ import java.io.DataInputStream;
/* */ import java.io.DataOutputStream;
/* */ import java.io.IOException;
/* */ import java.util.Collection;
/* */ import java.util.HashMap;
/* */ import java.util.Iterator;
/* */ import java.util.Map;
/* */... | 35.524116 | 121 | 0.478639 |
b2767cc422d2246fc9838dde586063096a1e39a5 | 10,597 | /*
* The MIT License
*
* Copyright 2016 Liu.
*
* 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, mer... | 41.720472 | 204 | 0.662074 |
36e13e99463dc2ef3ff2afc98c02a7235970d57b | 1,308 | package org.firstinspires.ftc.robotcontroller.external.samples;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.Ser... | 22.947368 | 65 | 0.659786 |
ab1e7cf29fa27b9e8d9eca10eb5a31ceef52f7f9 | 435 | package at.medunigraz.imi.bst.n2c2.model.metrics;
import at.medunigraz.imi.bst.n2c2.model.Criterion;
import java.util.List;
import java.util.Map;
public interface Metrics {
double getOfficialRankingMeasure();
double getOfficialRankingMeasureByCriterion(Criterion c);
void add(Metrics addend);
void... | 19.772727 | 61 | 0.751724 |
f3be05e6515a52ee3fbda45450c7f657fa7dcd87 | 7,340 | package co.com.codesoftware.beans.contabilidad;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces... | 24.965986 | 129 | 0.692234 |
81af67b76a13f10d41a412ce255bfbe3a05f1388 | 2,368 | package com.newxton.nxtframework.controller.api.admin;
import com.google.gson.Gson;
import com.newxton.nxtframework.entity.NxtProduct;
import com.newxton.nxtframework.service.NxtProductService;
import com.newxton.nxtframework.struct.NxtStructApiResult;
import com.newxton.nxtframework.struct.admin.NxtStructAdminProduct... | 33.352113 | 88 | 0.660473 |
1a438c54a0e472193a1416295f450ef89643e156 | 8,865 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.eventgrid.models.EventTypeInf... | 36.632231 | 120 | 0.718443 |
e4ce7ca8e17acbc606bf7876c8aef67191c84a3f | 3,228 | /*
* 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 ... | 32.938776 | 98 | 0.662949 |
1c6d711f59ca718408feabca54903939db91ae65 | 1,155 | package com.logscape.disco.grokit;
import com.liquidlabs.common.Pool;
import java.lang.management.ManagementFactory;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: neil
* Date: 23/06/2014
* Time: 13:04
* To change this template use File | Settings | File Templates.
*/
public class GrokItPool i... | 23.571429 | 94 | 0.625108 |
355dc81ce3cf3a0ef5bc54adac3876b6f49aece7 | 717 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 商品标签返回结果集
*
* @author auto create
* @since 1.0, 2021-12-31 09:40:21
*/
public class GoodsTagResult extends AlipayObject {
private static final long serialVersionUID = 3849141367645341515L;
... | 16.674419 | 67 | 0.705718 |
bd598bf011caa560c0d15497ceb1d07f03bf6128 | 1,257 | /*
* @lc app=leetcode.cn id=154 lang=java
*
* [154] Find Minimum in Rotated Sorted Array II
*/
// Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
// (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
// Find the minimum element.
// The array may contain duplic... | 24.647059 | 98 | 0.522673 |
fd4cf6a9f81cfd5853d8ff4cab0e4fae7b210fcd | 1,684 | package UltimaAula;
import java.util.Scanner;
public class Pagar {
static final int n = 3;
public double valor[] = new double [ n ];
public double vlpagar[] = new double [ n ];
public double multa, juros;
public final double taxamulta = 0.02, taxajuros = 0.00033;
public int dias[] = new int ... | 26.3125 | 85 | 0.456651 |
a82f48d1a3804b4d51a3df886dda6f9df9d5815d | 368 | package com.ppfuns.report.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ppfuns.report.entity.NoappAlbumUserCountRankWeek;
/**
* 所有专区专辑播放用户数周排行榜(NoappAlbumUserCountRankWeek)表数据库访问层
*
* @author jdq
* @since 2021-07-08 11:39:40
*/
public interface NoappAlbumUserCountRankWeekMapper exten... | 24.533333 | 100 | 0.8125 |
360b9ace35ba717419b97c42c444bb03fa92c303 | 250 | package org.acme.metric;
import io.micrometer.core.instrument.MeterRegistry;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public abstract class CommonMetricDetails {
protected String identifier;
protected MeterRegistry registry;
}
| 22.727273 | 51 | 0.824 |
6140760cf02092ed161a2b741d826d9ce8978cc5 | 46,119 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/iot/v1/resources.proto
package com.google.cloud.iot.v1;
/**
*
*
* <pre>
* Details of an X.509 certificate. For informational purposes only.
* </pre>
*
* Protobuf type {@code google.cloud.iot.v1.X509CertificateDetails}
*/
publi... | 28.860451 | 100 | 0.624883 |
903ddb8ba03509a8ebb2f71bc72d4d596c26cbff | 10,143 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911
// .1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.... | 33.365132 | 116 | 0.63709 |
10de9624b0447ae8c6260991f2b4958d89253549 | 1,426 | package com.houseninja.web.svc;
import com.houseninja.db.dao.PlannedCookDao;
import com.houseninja.db.gen.tables.pojos.Plannedcooks;
import com.houseninja.sec.HouseninjaUserDetails;
import com.houseninja.web.svc.util.UserPrincipalUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | 37.526316 | 90 | 0.784011 |
4e9a59fae031266a730a34eb69ab2f8bca22c0a3 | 630 | package br.com.zupacademy.mercadolivre.dto.requests;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
public class RankingRequest {
@NotNull
@Positive
private Long idCompra;
@NotNull
@Positive
private Long idDonoProduto;
public RankingRequest(Long... | 24.230769 | 77 | 0.669841 |
ec3e738a44d622e9a39692d10630d683a35e206e | 795 | // Modulo Arithmetics | Compute answer modulo 1000000007
package problem7.mathsalgo;
import java.util.Scanner;
public class Problem7MathsAlgo {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter Number : ");
int n1 = in... | 22.714286 | 72 | 0.480503 |
60cffdfba12a33217d03ef54e3a31296cf0c828f | 146,854 | /*
* Copyright (C) 2009 The Guava 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 agre... | 29.793873 | 100 | 0.621924 |
48c01cf29573ebf67b6e2662231e4e5498f3479c | 1,580 | package com.tryadhawk.airtable;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tryadhawk.airtable.internal.http.AirtableHttpClient;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;
public class AirtableTest {
private AirtableHttpClient ... | 37.619048 | 113 | 0.711392 |
662c482fba7960db9559db36b07a96fa78cd6df1 | 2,690 | /*
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 25.865385 | 79 | 0.649814 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.