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 |
|---|---|---|---|---|---|
79d94e8cac9a8fc5619a27134417a55d2c2c8b57 | 401 | package io.renren.modules.sys.dao;
import io.renren.modules.sys.entity.NideshopUserIntegralEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户积分表
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-07-04 19:31:22
*/
@Mapper
public interf... | 22.277778 | 89 | 0.780549 |
2b816f560f2766af68e86e0ffab76f7d5c56f49f | 2,659 | package com.grupa1.SopoProject.database;
import com.grupa1.SopoProject.handlers.UserAlreadyVotedException;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
/**
* @author Michal on 22.12.2018
*/
@Entity
@Table(name = "Project")
@Getter
@Sette... | 27.412371 | 169 | 0.658518 |
674b3a15b49cd7517470342354579c7e7db46ceb | 1,059 | package ua.com.fielden.platform.sample.domain;
import com.google.inject.Inject;
import ua.com.fielden.platform.dao.CommonEntityDao;
import ua.com.fielden.platform.entity.annotation.EntityType;
import ua.com.fielden.platform.entity.fetch.IFetchProvider;
import ua.com.fielden.platform.entity.query.IFilter;
/**
* DAO ... | 35.3 | 153 | 0.766761 |
044caf9abfa163c73745a7523227733bb17b8c8b | 2,567 | package com.afirme.payment.example.rest.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Transaction {
@SerializedName("status")
@Expose
private String status;
@SerializedName("payment_date")
@Expose
private String paymentDate;
... | 21.391667 | 64 | 0.652123 |
fde715044547c026527e9e0102157b8bdd7c5af1 | 5,699 | package models;
import org.sql2o.Connection;
import java.util.List;
public class EndangeredAnimal implements AnimalInterface {
//Declaring our variables
public String name;
public int id;
public boolean endangered;
private int health;
private int age;
//Declaring our constants.
publi... | 33.327485 | 109 | 0.582207 |
d82483832770a8ac91c301eae59aea5c30c328ef | 4,998 | /* LanguageTool, a natural language style checker
* Copyright (C) 2009 Daniel Naber (http://www.danielnaber.de)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... | 30.290909 | 157 | 0.72609 |
1a5ccb619504aeab791aedd3167788c96ed171d8 | 4,799 | /*
* Copyright 2017 StreamSets Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 28.064327 | 128 | 0.651177 |
fe76f48588e4d70fda66af782b96d249c8e20e9d | 5,584 | /**
*
* Copyright (c) 2017 Yoshio Terada
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, p... | 41.058824 | 119 | 0.703976 |
4c8334357829d63524cb5da897c04b0f5d6b0988 | 6,212 | /**
*
*/
package org.sagacity.sqltoy.plugins.id.macro.impl;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util... | 31.532995 | 109 | 0.645364 |
301ef7d631abfc1e835b10e00e5a4f38ef5d5996 | 12,791 | package seedu.address.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static seedu.address.testutil.TypicalPersons.AMY;
import static seedu.address.testutil.Typ... | 42.779264 | 120 | 0.731843 |
06563320c8fced9c7a2d61f96c064c7884793b06 | 146 | package com.justcorrections.grit.data;
public class StorageHelper {
public static final String USER_PROFILE_PATH = "User_Profile_Images";
}
| 20.857143 | 73 | 0.794521 |
fec9cac69b970747821eaf34767b1b0ef183f7c7 | 428 | package iuniversity.controller.exams;
import java.time.LocalDate;
import iuniversity.model.didactics.Course;
import iuniversity.model.exams.ExamCall.ExamType;
public interface ExamCreationController {
void initializeChoices();
void initializeExamTypeChoices();
void initilizeCourseChoices();
void ... | 21.4 | 79 | 0.775701 |
2e6e350ee6bc01683f10ce628ab4e45e7bfad220 | 836 | package org.audit4j.microservice.core;
import java.io.Serializable;
public class Ack implements Serializable{
/**
*
*/
private static final long serialVersionUID = -8707468501787579530L;
private String message;
private int code;
public String getMessage() {
return message;
}
public void setMessage... | 15.773585 | 68 | 0.675837 |
207e8a89ef3d501044136e0ae92ee76267924497 | 1,121 | package cl.injcristianrojas.spring.data.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import cl.injcristianrojas.spring.da... | 24.369565 | 62 | 0.767172 |
eb6d5ea5f9a726efd953c1db647ad1c1a47193af | 1,847 | /*******************************************************************************
* Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
*
* 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 a... | 26.385714 | 80 | 0.67948 |
e35f39eec34afa1cda09bcce42eb4771d317ba45 | 3,438 | /*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | 34.38 | 142 | 0.703898 |
d1e6732b4b63b430132063103c097ab18a0710db | 288 | package de.epages.ws.order7;
import de.epages.ws.WebServiceConfiguration;
import de.epages.ws.order7.stub.OrderService;
import de.epages.ws.order7.stub.Port_Order;
public interface OrderServiceStubFactory {
Port_Order create(WebServiceConfiguration config, OrderService service);
}
| 28.8 | 76 | 0.826389 |
119ea714d2de38a072294823f8134b44acf2ebee | 1,095 | package com.antyzero.fadingactionbar.example;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Created by iwopolanski on 28.01.15.
*/
public class RandomTextGenerator {
private static final String ALPHABET = "abcdefghijklmnoprstquwxzABCDEFGHIJKLMNOPRSTQUWXZ";
private List<... | 24.333333 | 94 | 0.625571 |
8a181092fb3beace0584ae34eefd8e9837775967 | 926 | /*******************************************************************************
* Copyright (c) 2019-10-29 @author <a href="mailto:iffiff1@gmail.com">Tyler Chen</a>.
* All rights reserved.
*
* Contributors:
* <a href="mailto:iffiff1@gmail.com">Tyler Chen</a> - initial API and implementation.
****************... | 34.296296 | 90 | 0.615551 |
17d844181d333fa64cc04343f5eedf85be55f076 | 2,538 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class ClientSocketTask11 {
private Socket socket = null;
private BufferedReader in;
private PrintWriter out;
public ClientSocketTask11(String ip, int ... | 32.126582 | 84 | 0.516942 |
ee8701e05e0dd5da33b403b8643421c527acd23f | 307 | // "Replace with text block" "true"
class TextBlockMigration {
void concatenationWithMultipleNewLines() {
String html = "<html>\n" +<caret>
" <body>\n" +
" <p>Hello, world</p>\n" +
" </body>\n" +
"</html>\n";
}
} | 25.583333 | 51 | 0.429967 |
09ce419aa84ad62a192fe65ea7cc3db38f19660c | 3,605 | /*
* Copyright 2014 Dan Haywood
*
* 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 a... | 29.793388 | 110 | 0.726491 |
34cb240878eb3c537665049e9a870f9c08705a76 | 4,930 | /*
* 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 co.edu.uniandes.csw.turismo.test.logic;
import co.edu.uniandes.csw.turismo.ejb.CiudadLogic;
import co.edu.uniandes.csw.turismo... | 32.222222 | 87 | 0.683367 |
c0725a86b6f4d046ccf984ce60bb66c0dd788e08 | 2,908 | package com.huanmedia.videochat.common.widget.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.InputType;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widge... | 24.436975 | 94 | 0.641678 |
8d432c2d50021b0241e88eafc9dafac3f4d1d025 | 2,449 | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | 38.265625 | 106 | 0.710902 |
2edce443e0999020334043a40f8586564f61a899 | 376 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.ins.auto.user.oil.exchange response.
*
* @author auto create
* @since 1.0, 2019-07-04 17:35:01
*/
public class AlipayInsAutoUserOilExchangeResponse extends AlipayResponse {
private static final long s... | 17.904762 | 75 | 0.710106 |
e19387239d4d16357f6d278ac460acf34429d8e9 | 3,513 | package co.edu.javeriana.configuracion.error;
import co.edu.javeriana.configuracion.utils.BundleUtil;
import co.edu.javeriana.configuracion.utils.error.ProcessError;
import co.edu.javeriana.configuracion.utils.error.ProcessError;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
i... | 32.527778 | 94 | 0.633931 |
e39c6ebed0ee091e5c98d3fc3eda69d908659b58 | 659,679 | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest35 {
public static boolean debug = false;
@Test
public void test17501() throws Throwable {
if (debug)
System.out.for... | 71.517671 | 578 | 0.730595 |
d249bd4225de0f55c441e2806fa858b0f2808e0d | 7,730 | /**
* personium.io
* Copyright 2014 FUJITSU LIMITED
*
* 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 ... | 27.21831 | 97 | 0.560543 |
383a8991d3290835a2823a7a6c49bddda8def9ea | 4,609 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import java.util.ArrayList;
import butterknife.BindView;
import butterknif... | 42.675926 | 115 | 0.659579 |
3962ec94c79e1de25eac07a43c3afc226658bc60 | 3,243 | package de.Hero.clickgui.elements.menu;
import java.awt.Color;
import me.lc.vodka.setting.Setting;
import net.minecraft.client.gui.Gui;
import net.minecraft.util.MathHelper;
import de.Hero.clickgui.elements.Element;
import de.Hero.clickgui.elements.ModuleButton;
import de.Hero.clickgui.util.ColorUtil;
import de.Hero.... | 30.885714 | 155 | 0.679618 |
bf6f2688ac916d598fe2fa9f0902f1971118ccfa | 738 | package com.aspose.pdf.examples.AsposePdfExamples.DocumentConversion;
import com.aspose.pdf.Document;
import com.aspose.pdf.HtmlSaveOptions;
public class PDFToHTMLAvoidSavingImagesInSVGFormat {
public static void main(String[] args) {
// Open source PDF document
Document pdfDocument = new Document("input.pdf");... | 33.545455 | 114 | 0.798103 |
6b8bf1fffaec2a53cf1a56468983f869caf64c88 | 1,089 | package com.qdone.module.service;
import java.util.List;
import com.qdone.module.model.Staff;
import com.qdone.framework.core.page.PageList;
/**
* TODO 本代码由代码生成工具生成
*
* @author 付为地
* @date 2018-05-06 04:16:56
*/
public interface StaffService {
/**
* 分页查询
* @param entity
* @return
*/
public PageList<S... | 13.280488 | 49 | 0.596878 |
96684a00b11e6c959fcb2bcb6ad136b1650a34e6 | 80,806 | /*
* This file was automatically generated by EvoSuite
* Sun Nov 29 08:43:32 GMT 2020
*/
package com.werken.saxpath;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.werken.saxpath.Token;
import com.werken.saxpath.XPathLexer;
import org.evosuit... | 30.050576 | 176 | 0.644123 |
3dc907bfadfb9b5495e84b6ac19d8602106c9ea1 | 3,634 | package com.softicar.platform.emf.action;
import com.softicar.platform.common.core.user.CurrentBasicUser;
import com.softicar.platform.common.core.user.IBasicUser;
import com.softicar.platform.dom.element.DomElementTag;
import com.softicar.platform.dom.elements.DomDiv;
import com.softicar.platform.dom.elements.DomElem... | 28.390625 | 113 | 0.762796 |
4b4a4929fe62f43d3c63b7ea4430009ec25dbb99 | 1,746 | package com.nothing.mark.popmoviesapp.Database;
import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
public class MoviesContract {
public interface MoviesColumns {
String MOVIE_ID = "movie_id";
String MOVIE_TITLE = "title";
String MOVIE_OVERV... | 39.681818 | 138 | 0.700458 |
c6280870f448ebe98939410ff65d9e3131594514 | 2,916 | package duckutil.gatecontrol;
import duckutil.jsonrpc.JsonRpcServer;
import duckutil.Config;
import com.thetransactioncompany.jsonrpc2.JSONRPC2Request;
import com.thetransactioncompany.jsonrpc2.JSONRPC2Response;
import com.thetransactioncompany.jsonrpc2.server.Dispatcher;
import com.thetransactioncompany.jsonrpc2.ser... | 21.6 | 80 | 0.671468 |
f6a667308907896db1054518309af018c634799d | 3,346 | /*
* Copyright (c) 2018 AITIA International Inc.
*
* This work is part of the Productive 4.0 innovation project, which receives grants from the
* European Commissions H2020 research and innovation programme, ECSEL Joint Undertaking
* (project no. 737459), the free state of Saxony, the German Federal Ministry o... | 29.095652 | 108 | 0.720861 |
364efb47171423b79dcb56bfd0b81e761993339e | 269 | package de.adorsys.sts.keymanagement.service;
import de.adorsys.keymanagement.api.types.template.provided.ProvidedKey;
import java.util.function.Supplier;
public interface SecretKeyGenerator {
ProvidedKey generate(String alias, Supplier<char[]> keyPassword);
}
| 24.454545 | 72 | 0.810409 |
2c2cfbfd183c03d026224c4b983bb2513c46827d | 2,448 | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | 25.5 | 79 | 0.732026 |
411ce4613db42b56a64e017135e31a1e0737734c | 3,114 | /**
* easyWSDL - easyWSDL toolbox Platform.
* Copyright (c) 2008, eBM Websourcing
* 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 abo... | 33.847826 | 129 | 0.742453 |
cb933b3e312454683920d3ca2fb2f21310348946 | 314 | package ru.job4j.search;
import java.util.Comparator;
public class AllFieldsComparator implements Comparator<User> {
@Override
public int compare(User o1, User o2) {
final int name = o1.getName().compareTo(o2.getName());
return name != 0 ? name : o1.getAge().compareTo(o2.getAge());
}
} | 34.888889 | 69 | 0.678344 |
3698d2b37a5958c446909894330952ccb9d40583 | 232 | package com.slimgears.sample;
import com.google.common.collect.ImmutableList;
import com.slimgears.util.autovalue.annotations.AutoValuePrototype;
@AutoValuePrototype
public interface SampleList<T> {
ImmutableList<T> list();
}
| 23.2 | 67 | 0.810345 |
3e0af1b6fe8287f83b4f5e44709c8cbe0418dc48 | 2,412 | /*
* 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 ... | 45.509434 | 143 | 0.762023 |
690fbb89e640f94c37f25bc4e8f614563ced1b8f | 5,636 | package com.example.administrator.shoppingcartproject;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Looper;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutMan... | 33.748503 | 120 | 0.633605 |
232333f4c1981343fd1a3ba96ef0402a10abf13b | 904 | package com.tepidpond.tum;
import com.tepidpond.tum.PlateTectonics.Lithosphere;
public class G {
public static final String ModID = "TUM";
public static final String ModName = "The Unknown Mod";
// see http://en.wikipedia.org/wiki/Linear_congruential_generator
public static final long LCG_Mult_A = 6364136223846... | 36.16 | 66 | 0.771018 |
c0c68688f31f4b03978031e0afd13a0be55117c7 | 2,769 | package com.example.soc.find;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
i... | 36.92 | 113 | 0.61719 |
8b42f6be45aaf95e36737887f042ac6dc46cac10 | 22,239 | class MXtcBhizeE0 {
public void UB;
public void bbP_AzMgZjzA6;
public static void NfLwo17GwvOQ_ (String[] POBEwwbrpC5) throws F {
!!new z20VB17EKA1Qj[ ZiqiJV_xhDV3sn.DkPQGyVCWiex()].fqReR();
L0ZFmNmCT[] ICmlEdF = true[ ---!-!!new eI()[ !-true.rJwf1QZ2uDVip()]];
int[][][] sQ0SddIB4;
... | 38.21134 | 285 | 0.497594 |
b538a6d03ddb3df3d6d31b5e9d598c1107e14a3b | 4,639 | /*
* Copyright 2021 Verizon Media
*
* 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... | 35.143939 | 102 | 0.664798 |
b0113f77010e83ba61147d43dac6bb62acb8133a | 2,031 | package nu.esox.gui.aspect;
import java.util.*;
import java.awt.*;
import javax.swing.*;
import nu.esox.util.*;
public class VisiblePredicateAdapter implements ObservableListener
{
private final LinkedList<JComponent> m_trueComponents = new LinkedList<JComponent>();
private final LinkedList<JComponent>... | 31.246154 | 92 | 0.577548 |
187d45e6ae786f4637f397eb276ee1895b8ffbc8 | 5,304 | package eu.modernmt.cli;
import eu.modernmt.io.IOCorporaUtils;
import eu.modernmt.model.corpus.BilingualCorpus;
import eu.modernmt.model.corpus.impl.parallel.ParallelFileCorpus;
import eu.modernmt.model.corpus.impl.properties.ParallelPropertiesCorpus;
import eu.modernmt.model.corpus.impl.tmx.TMXCorpus;
import eu.moder... | 38.158273 | 120 | 0.660068 |
92c65955422b74cb6c2403333686f92f9a095f4a | 1,042 | package functionalInterface;
import java.util.function.Supplier;
/**
* @program: my-design-patterns
* @description: Supplier<T> 接口称为生产型接口,指定接口的泛型是什么,那么接口中的get()方法就会生成什么类型的数据
* @author: Rui.Zhou
* @create: 2019-07-02 16:48
**/
public class Demo04Supplier {
//定义一个方法,方法的参数传递Supplier接口
public static String... | 18.607143 | 74 | 0.525912 |
8647db3d9da100669b40e58d973f62f16cb1cab5 | 6,208 | package jpg.k.simplyimprovedterrain.biome;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeManager;
import net.minecraft.world.biome.IBiomeMagnifier;
import jpg.k.simplyimprovedterrain.biome.blending.LinkedBiomeWeightMap;
import jpg.k.simplyimprovedterrain.biome.blending.ScatteredBiomeBle... | 46.676692 | 161 | 0.628866 |
9c48b6c733225473e03c7b87a2c90152f5c0e18e | 554 | package com.techmojo.ratelimiter.services;
import com.techmojo.ratelimiter.entities.Ticket;
import com.techmojo.ratelimiter.repository.TicketRepository;
import org.springframework.stereotype.Service;
@Service
public class TicketServiceImpl implements TicketService {
private final TicketRepository ticketReposito... | 26.380952 | 65 | 0.792419 |
f03864ca74cc9c7426c703a47442eafc40934702 | 448 | /*
* 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 mz.e.aula3;
/**
*
* @author Valter Massango
* @author Jose Seie
* @author Filipe Mangue
* @author José Romão
* @autho... | 20.363636 | 79 | 0.696429 |
91f1f55e95f0f26ea1798f242ef29ce70c07b3ce | 1,868 | package com.google.android.gms.internal;
import android.app.Activity;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
import android.view.ViewTreeObserver.OnScrollChangedListener;
import com.google.android.gms.ads.internal.zzp;
@zzha
public final class zzja {
private boolean zzLA;
private boolean... | 24.906667 | 132 | 0.557281 |
f223763641e466750eb6d3f2419bdf1520fb3db6 | 518 | package com.rtalpha.base.mongo.crud;
import javax.annotation.Nonnull;
import com.rtalpha.base.kernel.dto.BaseDto;
import com.rtalpha.base.mongo.document.BaseDocument;
/**
* Superclass of all database services for local CRUD
*
* @author Ricky
* @param <Doc>
* @since Jun 29, 2017
*/
public interface CrudService... | 22.521739 | 77 | 0.743243 |
0bf4f103a10f68d0626ec0e38d1918f5a0ef0dac | 3,055 | package com.sequenceiq.cloudbreak.controller;
import java.util.Set;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.inject.Named;
import javax.transaction.Transactional;
import javax.transaction.Transactional.TxType;
import org.springframework.core.convert.ConversionService;
import org.s... | 38.670886 | 95 | 0.785597 |
02ee5e03dbb6254043b793cf30ea058061e0460b | 964 | package com.egoveris.te.base.model;
import com.egoveris.te.base.model.rest.FormsWsDTO;
import com.egoveris.te.model.model.ValidateUser;
public class SaveFormRequestAppDTO {
private FormsWsDTO formInput;
private TareaAppDTO task;
private ValidateUser user;
/**
* @return the formInput
*/
public FormsW... | 16.62069 | 50 | 0.618257 |
6cc3224e8ded74e8418784631e6e0255b0436a70 | 10,192 | package com.totoro.db.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table product
*/
public class Product implements Serializable {
/**
* Database Column Rem... | 25.737374 | 79 | 0.609301 |
5784d39eca36bb8a3bf8ec77bf7f36ad5821868f | 37,945 | /*
* Copyright 2019-2021 The Polypheny Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 37.869261 | 270 | 0.608855 |
e6fc05fc95bc5fc066ec1e7066d1f81ac5f2502f | 2,549 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 32.679487 | 106 | 0.739113 |
54b9e7c8218aca949850ead65416d23c7f2d103a | 2,148 | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 34.095238 | 80 | 0.770484 |
705ab693bb0b7bc0d121244ae35b437823cce915 | 19,708 | package wstxtest.vstream;
import javax.xml.stream.*;
import org.codehaus.stax2.*;
import org.codehaus.stax2.validation.*;
/**
* This is a simple base-line "smoke test" that checks that RelaxNG
* validation works at least minimally.
*/
public class TestRelaxNG
extends BaseValidationTest
{
final static Stri... | 36.161468 | 124 | 0.53014 |
23b34ac821dbc1779501d93428a48a1bbe32065a | 2,741 | package com.example.main.view;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support... | 34.2625 | 134 | 0.732944 |
5e812d9ab4962b111348f630cbe0c6ae5696a0d2 | 1,711 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
/**
* Reads from a url and discusses exceptions in more depth
*
* @author J. Evan Noynaert
* @since December 2021
*/
public class App {
public static void main(String[] args) {
... | 28.04918 | 106 | 0.5564 |
97cdbfd63c29c8e9c33b614b47a51f7a8e1424ac | 5,085 | /**
*
*/
package com.nitobi.jsp.combo;
import javax.servlet.jsp.JspException;
import com.nitobi.jsp.NitobiBodyTag;
/**
* @author mhan
* @jsp.tag name="combobutton"
* description="A tag to output a ntb:ComboButton element"
*
*/
public class ComboButton extends NitobiBodyTag
{
private static final long serial... | 21.455696 | 68 | 0.691642 |
291dce80d331a94fd6ea0cf43e977fce6d1295df | 791 | package com.geekidea.slutheSample.slutheSampleClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframew... | 31.64 | 88 | 0.811631 |
75f6eb53e91249419e0df93f723e28cc67305e8d | 109 | package io.github.classgraph.test.accepted;
/**
* Impl1.
*/
public class Impl1 implements IfaceSubSub {
}
| 13.625 | 43 | 0.724771 |
857ca0582121ae96a6a84c28b886bb7e63be6f1b | 6,649 | package uk.gov.hmcts.reform.blobrouter.services.storage;
import com.azure.core.util.polling.PollResponse;
import com.azure.core.util.polling.SyncPoller;
import com.azure.storage.blob.BlobServiceClient;
import com.azure.storage.blob.models.BlobCopyInfo;
import com.azure.storage.blob.sas.BlobContainerSasPermission;
impo... | 38.656977 | 112 | 0.586705 |
f8404f00ab2cd0bb910b0d5c8c4346f2ffcbaf12 | 21,936 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms;
public final class R {
public static final class attr {
public static final int adSize = 0x7f010000;
... | 65.091988 | 246 | 0.833835 |
5b701fa08f9c28600b2d26b1af886454705c082b | 788 | package com.chamabem.util;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.map.annotate.JsonSerialize;
@XmlRootElement
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class ValidationResponse {
List<Validation> valid... | 20.205128 | 67 | 0.779188 |
a2906adf30a5a518c1d4e3f486471f505c719721 | 873 | import java.lang.Math;
import java.util.ArrayList;
class Boundary
{
double indexRefraction;
Math_Vector vec;
double b1;
double b2;
double b3;
double c1;
double c2;
double c3;
public Boundary(Math_Vector Vec, double IndexOfRefraction, double B1, double B2, double B3,
double C1, double C2, doubl... | 19.4 | 95 | 0.664376 |
0e092dcdc3f9d9b1bbc7156b194554cf2b983ced | 1,246 | /**
*
*/
package com.jchatting.server.thread;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
import com.jchatting.db.DbHanddle;
import com.jchatting.db.bean.Friend;
import com.jchatting.pack.DataPackage;
import com.jchatting.server.util.ClientPool;
import com.jchatting.se... | 21.482759 | 69 | 0.662119 |
69dd420d675d570b61269f20835df251266122f3 | 1,375 | /*
* Copyright 2021 https://github.com/hukacode/huka-common
*
* 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 ... | 31.25 | 77 | 0.733091 |
1a577098894f0720095a48f7a0979ce281138901 | 2,385 | /*
* Copyright (C) 2015 Sebastian Daschner, sebastian-daschner.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/LICENSE2.0
*
* Unless requi... | 27.732558 | 117 | 0.65283 |
2b73278f4a3c02135ac05a6a9854dbf9fc6347f6 | 2,112 | package org.functions.Bukkit.API;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.functions.Bukkit.Main.Functions;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.UUID;
public class SpeedPerSeconds {
List<Long> speed = new ArrayList<>();... | 28.16 | 113 | 0.546402 |
653c97f174a1f1df21012d6b5d2eb16c59230ce3 | 2,573 | package net.de1mos.jbox.webclient.controllers;
import java.io.FileInputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import net.... | 25.22549 | 73 | 0.748931 |
6102f91a36f869a6102de43455ede579aa2f44e9 | 4,977 | package com.andedit.badtrucks.world;
import static com.badlogic.gdx.math.Interpolation.smooth;
import static com.badlogic.gdx.math.MathUtils.floor;
import static com.badlogic.gdx.math.MathUtils.clamp;
import java.util.Random;
import com.andedit.badtrucks.chunk.Chunk;
import com.andedit.badtrucks.chunk.ChunkStatic;
i... | 31.301887 | 127 | 0.651195 |
bf665b6d521c5a7e8b36d52fbb7a1c54bed6d6c3 | 423 | package org.telegram.android.preview.media;
/**
* Created by ex3ndr on 26.02.14.
*/
public class SmallRawTask extends BaseTask {
private String fileName;
public SmallRawTask(String fileName) {
super(true);
this.fileName = fileName;
}
public String getFileName() {
return file... | 18.391304 | 44 | 0.626478 |
9c577d617439bc76821f1af862ab228c564b6797 | 5,993 | package rim.util;
/**
* アルファベット半角全角チェック処理.
*/
public class Alphabet {
/** char文字のチェックを行う配列. **/
protected static final byte[] CHECK_CHAR = new byte[65536];
static {
// スペース系は1.
// ドットは2.
// 数字の終端文字は3.
CHECK_CHAR[' '] = 1;
CHECK_CHAR['\t'] = 1;
CHECK_CHAR['\r'] = 1;
CHECK_CHAR['\n'] = 1;
CHECK_CHA... | 20.881533 | 102 | 0.531954 |
0aedc17cdc617936049e3a209f70556b47537629 | 635 | package net.sourceforge.ondex.ovtk2.ui.popup;
import edu.uci.ics.jung.visualization.VisualizationViewer;
/**
* An interface for menu items that are interested in knowning the currently
* selected edge and its visualization component context. Used with
* PopupVertexEdgeMenuMousePlugin.
*
* @author Dr. G... | 25.4 | 77 | 0.67874 |
0a19f3a9d6b15c157644a56ce39be7239d8c64f7 | 2,265 |
package com.anjiplus.template.gaea.business.modules.dataSource.controller;
import com.anji.plus.gaea.annotation.Permission;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.ga... | 32.826087 | 106 | 0.756733 |
e3731536be1aab983448082ae3fea19df1093553 | 6,596 | package cropcert.entities.service;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import javax.servlet.http... | 31.559809 | 114 | 0.754851 |
751f62df5ea2075e4cf89f54fd8638cf06ba24c9 | 403 | package org.apache.commons.mail;
import org.apache.commons.mail.Email;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;
import junit.framework.TestCase;
public class simpleTest extends TestCase {
public void testsimple() {
System.out.println("This is a message from the s... | 22.388889 | 64 | 0.764268 |
33b0fa3b0005e4404128894bd953983dfd545e48 | 3,152 | package edu.ucsb.courses.documents;
import java.util.List;
import java.util.Objects;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.EqualsBuilder;
im... | 27.172414 | 150 | 0.630076 |
37da76b8639afd058849e1fd25f1710c019cac6f | 492 | package trb1914.rogue.ui;
import processing.core.PImage;
/**
* A tile button makes any tile from the game fit on that button
* @author trb1914
*/
public class TileButton extends IconButton{
/**
* Creates a new TileButton that will resize the provided image to fit on a button
* @param x
* @param y
* @par... | 20.5 | 83 | 0.670732 |
cfa9311d60daca46542c15c5a8b8acf1e5afc1e9 | 3,752 | package org.jivesoftware.smackx.workgroup.packet;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.jitsi.gov.nist.core.Separators;
import org.jitsi.org.xmlpull.v1.XmlPullParser;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
public c... | 34.109091 | 143 | 0.557569 |
395b8e4532ce699eef6d6fc489093e4219419014 | 6,050 | /*
* Copyright 2017 Globus Ltd.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or... | 30.555556 | 97 | 0.634876 |
82815c5a948c4124c98813dbb53b186b10610e1e | 19,386 | /*
* MIT License
*
* Copyright (c) 2017 Barracks Inc.
*
* 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, mo... | 45.400468 | 157 | 0.691375 |
213ee67dd83e1f5264e6b9410471b2ef744a6acc | 12,263 | package com.github.gizmo0320.PowerfulPerms.common;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map.Entry;
import java.util.TreeMap;
import java.util.concurrent.locks.ReentrantLock;
import com.github.gizmo0320.PowerfulPermsAPI.CachedGro... | 32.614362 | 189 | 0.59333 |
6b6d466f5b99e29aaf40aab29e56d364b8e56907 | 1,423 | /*
* ModeShape (http://www.modeshape.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 30.276596 | 75 | 0.741391 |
900776da4ded968eef260e50ac5358ac772c8366 | 2,174 | package com.zzx.gank.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.ProgressBar;
import com.zzx.gank.R;
import com.zzx.gank.mvp.model.entity.Reader;
im... | 24.704545 | 100 | 0.717111 |
760fb2fed828729299e1b40dd2c10c39df6bc595 | 2,120 | /**
* Copyright 2019 Pramati Prism, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 26.17284 | 75 | 0.624528 |
f1b529ffc4371036db0feac17c851bedc6299145 | 1,799 | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
*************************************... | 40.886364 | 117 | 0.702613 |
1a281c000fb89b0a8545cdadc600a6fb63d85f1b | 9,606 | package org.contentmine.graphics.svg.path;
import java.io.File;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.contentmine.eucl.euclid.Real2Array;
import org.contentmine.graphics.AbstractCMElement;
import org.contentmine.graphics.svg.SVGG;
import org.contentmine.graphics.svg.SVGHTM... | 41.405172 | 379 | 0.627004 |
2ec9c84c1acf231ab630f98f74dc1a756c32fbd3 | 1,903 | /*
package unit.com.bitdubai.fermat_ccp_plugin.layer.actor.intra_user.developer.bitdubai.version_1.structure.IntraWalletUserActor;
import com.bitdubai.fermat_ccp_api.layer.actor.intra_wallet_user.enums.ContactState;
import com.bitdubai.fermat_api.layer.osa_android.file_system.PluginFileSystem;
import com.bitdubai.ferm... | 25.716216 | 127 | 0.735155 |
32a0c6392c38acf1499a7903f27c37a62f9d4713 | 302 | package gr.iti.mklab.framework.client.search.solr.beans;
import org.apache.solr.client.solrj.beans.Field;
public class Bean {
@Field(value = "id")
protected String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
| 15.894737 | 56 | 0.619205 |
aecd6b59ef2b29c1fc0b8f9915bb3286b6103163 | 3,804 | package org.fluentcodes.projects.elasticobjects.calls.db;
import org.fluentcodes.projects.elasticobjects.calls.HostBean;
import org.fluentcodes.projects.elasticobjects.calls.HostConfig;
import org.fluentcodes.projects.elasticobjects.exceptions.EoException;
import org.fluentcodes.projects.elasticobjects.exceptions.EoIn... | 30.677419 | 108 | 0.575184 |
09fe17c1fc058bd4a7ff47db92414ad976c2a7d2 | 1,581 | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazon.dataprepper.pipeline.server;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManagerFactory;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.secu... | 38.560976 | 135 | 0.696395 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.