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 |
|---|---|---|---|---|---|
2e42a3f7445c5a7840ec2f8652a29c15ec536480 | 273 | package com.baeldung.customannotation;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan("com.baeldung.customannotation")
public class CustomAnnotationConfiguration {
}
| 27.3 | 60 | 0.860806 |
04c6671bbcb6206cbfbeda4ad7efbef78fa9d763 | 3,807 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 18.215311 | 810 | 0.807197 |
f72ddbdb6ae60a4641888d78a26a5b81442e7829 | 1,725 | package seedu.notor.logic.executors.person;
import static seedu.notor.commons.util.CollectionUtil.requireAllNonNull;
import seedu.notor.commons.core.index.Index;
import seedu.notor.logic.commands.CommandResult;
import seedu.notor.logic.executors.exceptions.ExecuteException;
import seedu.notor.model.person.Person;
/*... | 27.822581 | 105 | 0.674203 |
8c6ebc7da01c4736a26532727e497ef08770b301 | 9,670 | package gov.va.vinci.chartreview.model.schema;
import com.mysema.query.sql.SQLQuery;
import com.mysema.query.sql.SQLQueryFactoryImpl;
import com.mysema.query.sql.SQLTemplates;
import com.mysema.query.sql.dml.SQLDeleteClause;
import com.mysema.query.sql.dml.SQLInsertClause;
import com.mysema.query.sql.dml.SQLUpdateClau... | 36.217228 | 118 | 0.637642 |
100ca9968b7999c0f9e6c4abf665e878ffbb66c7 | 969 | package io.vertx.tp.plugin.ali.sms;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.up.plugin.TpClient;
/**
* AliSmsClient for platform of https://dysms.console.aliyun.com/dys... | 26.189189 | 74 | 0.695562 |
09dcdfd8c2176f74e7dc96a05157628cc3b36425 | 2,381 | package me.young1lin.spring.batch.job.config.clean.named;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import or... | 29.395062 | 84 | 0.765225 |
42485a42363030d3a45a870853805da373353a62 | 3,566 | package de.htwsaar.pib2021.inet.model;
import java.time.LocalDateTime;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import j... | 22.858974 | 106 | 0.73051 |
b276eec30a7e8355817363eed2b37bc5ec769472 | 918 | package com.relations.relations.one2many.lecturer;
import com.relations.relations.one2many.common.AuditModel;
import com.relations.relations.one2many.student.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.hibernate.annotations.Fetch;
import org.hibernate... | 27 | 66 | 0.772331 |
2e9525d1a8e3b51b18c264305175462563f509a6 | 1,123 | package ir.sk.algorithm.graph;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class DepthFirstOrderTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void preOrder() {
}
@Te... | 21.188679 | 59 | 0.542297 |
d8f563e70856a2a40145b61722ba87feab3ba2b3 | 1,920 | package functions;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
//IntStreamOperations.java
//Demonstrating IntStream operations.
public class IntStreamOperations {
public static void main(String[] args) {
int[] values = {3, 10, 6, 1, 4, 8, 2, 5, 9, 7};
// display o... | 35.555556 | 72 | 0.554167 |
d8b73c91ba27b1c0ce9d72c3c65413ddf3c09f74 | 40,538 | /* */ package mcheli.mcheli;
/* */
/* */ import cpw.mods.fml.relauncher.Side;
/* */ import cpw.mods.fml.relauncher.SideOnly;
/* */ import mcheli.MCH_ClientEventHook;
/* */ import mcheli.MCH_ClientTickHandlerBase;
/* */ import mcheli.MCH_Config;
/* */ import mcheli.MCH_GuiCommon;
/* ... | 42.271116 | 689 | 0.510385 |
4521a3d166e0823bd33672508ba97bade6b14a5f | 9,116 | /**
* Siri Product - Produit SIRI
*
* a set of tools for easy application building with
* respect of the France Siri Local Agreement
*
* un ensemble d'outils facilitant la realisation d'applications
* respectant le profil France de la norme SIRI
*
* Copyright DRYADE 2009-2010
*/
package irys.s... | 41.625571 | 218 | 0.72093 |
7fb50cb744098b8e8089b8e09f16a9060fce8895 | 3,562 | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | 37.104167 | 115 | 0.701572 |
c9c34705b49ee706ea09ee72622544ff90721855 | 4,157 | /*
* Copyright (c) 2020 Kevin KDA. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellent... | 32.476563 | 97 | 0.574693 |
1e6981de587d56cdead68ae4feeaf1460c230912 | 943 | package io.automatiko.engine.workflow.compiler.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import org.junit.jupiter.api.Test;
import io.automatiko.engine.workflow.compiler.util.ClassUtils;
public class ClassUtilsTest {
@Test
public void testJavaLangTypeWithoutPackage()... | 20.955556 | 71 | 0.756098 |
89be1a8e90d4396f7e7be87550497e0c29636772 | 3,300 | /*******************************************************************************
* Copyright (c) 2013 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"... | 35.106383 | 103 | 0.634545 |
887c647cb329f27d6764c7fe53cfecb1a702ef1b | 1,029 | /*
* Tiled Map Editor, (c) 2004
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Adam Turk <aturk@big... | 19.788462 | 72 | 0.714286 |
60cd968baf1c0725eb011a51ebc2e58e8a78edfd | 2,519 | /*
* Open Source Physics software is free software as described near the bottom of this code file.
*
* For additional information and documentation on Open Source Physics please see:
* <http://www.opensourcephysics.org/>
*/
package org.opensourcephysics.display;
/**
* Title: Measurable
* Desc... | 34.986111 | 102 | 0.697102 |
c2b03ba4071ece65fe2d3c7eaf6a5d78b2b3f739 | 2,134 | /*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 34.983607 | 94 | 0.735708 |
926bf3bfa582e3ac79759bc1e8c6ab5d244eac8f | 398 | package br.com.devdojo.awesome;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication// e amesma coisa que @EnableAutoConfiguration @ComponentScan @Configuration
public class ApplicationStart {
public static void main(String[... | 33.166667 | 98 | 0.80402 |
88945c7157b7f099eadd5665dbedad7e1c964d0d | 8,922 | package org.infinispan.server.hotrod;
import static org.infinispan.server.hotrod.test.HotRodTestingUtil.assertStatus;
import static org.infinispan.server.hotrod.test.HotRodTestingUtil.k;
import static org.infinispan.server.hotrod.test.HotRodTestingUtil.v;
import static org.infinispan.test.TestingUtil.extractIntercepto... | 46.46875 | 163 | 0.739744 |
3d1c6a7613073fb43aef86ff6253c5c6c5df2d1d | 6,659 | package org.folio.rest.impl.changeManager;
import static com.github.tomakehurst.wiremock.client.WireMock.get;
import static com.github.tomakehurst.wiremock.client.WireMock.notFound;
import static com.github.tomakehurst.wiremock.client.WireMock.ok;
import static com.github.tomakehurst.wiremock.client.WireMock.serverErr... | 36.587912 | 119 | 0.736747 |
b23f9e2d299b4341bbedcd6d6c7678156ffff33f | 750 | package edu.columbia.cs.psl.mountaindew.adapter;
import java.net.URL;
import java.net.URLClassLoader;
public class AdapterLoader {
private String className;
public static Class<? extends AbstractAdapter> loadClass(String className) {
try {
URL classUrl = AdapterLoader.class.getProtectionDomain().getCodeSou... | 25 | 90 | 0.728 |
d8173340b900a080aaf3dc7897620045000c986a | 544 | package group.project.unknown.gamestates;
public abstract class GameState {
/** Holder for the instance of GameStateManager. */
protected GameStateManager gsm;
/** Inits the state. */
public abstract void init();
/** Updates once per second. */
public abstract void tick();
/** Updates 60 times ... | 22.666667 | 58 | 0.676471 |
6c7cf58e77bb1dd1ab6450572df4cbb508de4ef0 | 1,480 | package remotefndload.wf.sort;
import java.util.TreeSet;
public class WfBlock implements Comparable<WfBlock> {
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
private String begin;
private String end;
private StringBuffer bodyBuffer;
private TreeSet<WfBlock> childWfBlocks;
... | 22.424242 | 84 | 0.715541 |
bbf48d48b7e8909f17e9b1e472cfb7eba98e1633 | 2,450 | /*
* Copyright 2020-2020 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 34.507042 | 126 | 0.721224 |
0953df72546a1138c671677cc37252724f3c0940 | 14,593 | /**
* Copyright 2016 Shwet Shashank
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in w... | 51.748227 | 118 | 0.568903 |
ba4db06eb04a609b447012a2326eda73227f422d | 594 | package org.w3c.dom.svg;
import org.w3c.dom.DOMException;
public interface SVGColorProfileElement extends SVGElement, SVGRenderingIntent, SVGURIReference {
String getLocal();
void setLocal(String paramString) throws DOMException;
String getName();
void setName(String paramString) throws DOMException;... | 25.826087 | 97 | 0.737374 |
96ee68318e1fcfcdc7f8a78c9a64412e5eaa6e30 | 3,997 | package com.pentaho.test.swing;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.InputEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swi... | 34.456897 | 118 | 0.74706 |
223c1c17746b180dbd631b0196d898d0819a3399 | 2,327 | /**
*
* Original work Copyright (c) 2011-2019, James Zhan 詹波 (jfinal@126.com).
* Modified work Copyright (c) 2020 WeiHua Lyu [ready.work]
*
* 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... | 25.021505 | 84 | 0.660507 |
1a75aff4ba5d9463092841248625fc12f1c05081 | 1,635 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 33.367347 | 78 | 0.722324 |
c4bfd47483f6fe29b62056be5cdb8a4f8d833776 | 783 | package top.ryan1h.springcloud.template.user.web.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotatio... | 27 | 67 | 0.730524 |
e19f847e44058c21930a68998fe763345ab0595b | 176 | package cn.it.shop.util;
import cn.it.shop.model.FileImage;
public interface FileUpload {
public String uploadFile(FileImage fileImage);
public String[] getBankImage();
} | 19.555556 | 48 | 0.772727 |
5df76aefd5c78214e9ea213817bd59d319cce589 | 9,756 | package eu.okaeri.commands.brigadier;
import com.mojang.brigadier.arguments.*;
import com.mojang.brigadier.suggestion.SuggestionProvider;
import com.mojang.brigadier.tree.ArgumentCommandNode;
import com.mojang.brigadier.tree.CommandNode;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.mojang.brigadier.... | 47.130435 | 158 | 0.584768 |
104bd9711e03ecc04cf8ddc9a5840083bf0db678 | 262 | package com.bugpass.service;
import java.util.List;
import com.bugpass.entity.Statistics;
public interface StatisticsService {
List<Statistics> returnQueryALLProjcetBugs();
List<Statistics> returnQueryProjectBugsByname(String projectName);
}
| 20.153846 | 68 | 0.778626 |
11f9c8ba9cdeab3e892d3e10fa3deb81797ea600 | 430 | package classify.twopointers;
/**
* @author yutiantang
* @create 2021/3/24 11:36 PM
*/
public class MaxConsecutiveOnes {
public int findMaxConsecutiveOnes(int[] nums) {
int cur = 0, max = 0;
for (int num : nums) {
if (num == 1) {
cur++;
max = Math.max... | 19.545455 | 51 | 0.451163 |
20814d08e5acfc1e448a4b4fe0a8c14e996bdffb | 848 | package jaxb2;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.File;
public class Demo {
public static void main(String[] args) throws JAXBException {
JAXBContext jc = JAXBContext.newInstance(Root.... | 32.615385 | 107 | 0.701651 |
4283b362d8e35aa1144404d51522d0b146340344 | 2,107 | package io.joyrpc.protocol.telnet;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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... | 26.670886 | 105 | 0.707641 |
30bac1a4b709bd2b2f852c5175281a54fe8ff959 | 705 | package configuration;
import static org.junit.Assert.assertEquals;
import it.commons.BaseTest;
import org.junit.Test;
/**
* Test class for the {@link SymLoadBalancedConfig}.
*
* @author Thibault Pensec
* @since 10/03/2020
*/
public class SymLoadBalancedConfigTest extends BaseTest {
@Test
public void testC... | 24.310345 | 81 | 0.750355 |
683f3e19fc4387ef2f196f09765d66bbb0c0e2ef | 4,262 | /*
* Copyright 2018 iserge.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 36.741379 | 98 | 0.664008 |
349414d7e43d233acefe448e30d1fc408df7a032 | 1,654 | /**
* Copyright (c) Dell Inc., or its subsidiaries. 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
*/
package ... | 34.458333 | 104 | 0.654172 |
a4a179ec010172a7b70021ddc48f1be1421b082f | 574 | package com.tukeping.nowcoder;
/**
* @author tukeping
* @date 2021/7/7
**/
public class NC7 {
/**
*
* @param prices int整型一维数组
* @return int整型
*/
public int maxProfit(int[] prices) {
if (prices == null || prices.length < 1) {
return 0;
}
int maxProfit ... | 21.259259 | 66 | 0.508711 |
badc1ca6d7515f941220975ecc90106b31effdce | 4,004 | /*
* (C) Copyright 2020 Nuxeo (http://nuxeo.com/) 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-2.0
*
* Unless required b... | 35.75 | 102 | 0.683317 |
7d9964e47a9974156e62ff4b59aef3e850d14c01 | 938 | package org.folio.dew.repository;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.kafka.support.Acknowledgment;
import org.springframework.stereotype.Repository;
import java.util.concurrent.ConcurrentHashMap;
@Sc... | 32.344828 | 108 | 0.827292 |
ef0bc6c16ec132b60044c5903ec051dd0d8cf69b | 322 | package com.broadcom;
import com.broadcom.apdk.api.BaseAction;
import com.broadcom.apdk.api.annotations.Action;
@Action(
name = "ACTION1",
title = "Action #1 for testing the API"
)
public class TestAction1 extends BaseAction {
@Override
public void run() {
System.out.println(this.getClass().getName());
}
... | 17.888889 | 48 | 0.723602 |
e24ac0a7e4ba52c5121ad6aebf199f8ee5614c81 | 23,728 | /*
* Project Ren @ 2018
* Rinkako, Ariana, Gordan. SYSU SDCS.
*/
package org.sysu.renResourcing.restful;
import org.springframework.web.bind.annotation.*;
import org.sysu.renResourcing.RScheduler;
import org.sysu.renCommon.enums.RServiceType;
import org.sysu.renResourcing.context.ResourcingContext;
import org.sysu.... | 43.697974 | 138 | 0.59748 |
8ada9429f74eb9c8cccf6b9e8a8a4e21df1da0f7 | 256 | package com.github.twitch4j.pubsub.domain;
import lombok.Data;
@Data
public class CreateNotificationData {
private NotificationSummary summary;
private OnsiteNotification notification;
private Boolean persistent;
private Boolean toast;
}
| 21.333333 | 44 | 0.789063 |
80302e269ca5e19ab6682f6ed484bb0e7efb85a8 | 1,212 | package androidx.lifecycle;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import androidx.annotation.CallSuper;
import androidx.annotation.Nullable;
public class LifecycleService extends Service implements LifecycleOwner {
private final ServiceLifecycleDispatcher m... | 26.347826 | 97 | 0.670792 |
f0cd705673c36f1750673ebf58121887a906b9fc | 2,567 | /*
* 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
* distributed u... | 30.927711 | 95 | 0.616284 |
e9423304349b4b734b962df3c081d4f0bcfe0abe | 759 | package com.tuyenmonkey.showmetheway.presentation.di.component;
import com.tuyenmonkey.showmetheway.presentation.di.PerActivity;
import com.tuyenmonkey.showmetheway.presentation.di.module.ActivityModule;
import com.tuyenmonkey.showmetheway.presentation.di.module.NetModule;
import com.tuyenmonkey.showmetheway.presentat... | 36.142857 | 96 | 0.83004 |
0b69e918ca99e5ea61e60e87e0164f522c508b9f | 738 | package br.com.biblioteca.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import lombo... | 23.0625 | 55 | 0.780488 |
166848edef704399f3ba8ab25891e4c93c777116 | 5,240 | package io.opensphere.mantle.data.cache.impl;
import static org.easymock.EasyMock.createStrictMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNot... | 32.147239 | 110 | 0.69313 |
b061a33650b726210d0400767bced258f6c77cfe | 3,245 | package df.sifriah.xmlParser;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStre... | 27.974138 | 70 | 0.67057 |
9686fd1988fbfd38aefe21f6eb28b611f7a9f350 | 1,091 | package org.springframework.samples.ioc;
import org.springframework.samples.utils.ToString;
import java.beans.ConstructorProperties;
/**
* Happy day, happy life.
*
* @author andy
* @version 1.0-SNAPSHOT
* Created date: 2014-11-15 11:42
*/
public class ExampleBean {
private String email;
privat... | 23.212766 | 78 | 0.636114 |
71dba5cf7e04122288378cc3eb7e7b07dd9de652 | 2,847 | /*
* JEF - Copyright 2009-2010 Jiyi (mr.jiyi@gmail.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 app... | 25.19469 | 96 | 0.712329 |
84bd071c6f643464b43c66583b190e24f341c5ee | 3,097 | package com.hzy.retrofit.util;
import android.content.Context;
import android.text.TextUtils;
import com.hzy.retrofit.converter.FastJsonConverterFactory;
import com.hzy.retrofit.service.ApiService;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import okhttp3.Interceptor;
import okhttp3.OkHttpCli... | 29.216981 | 273 | 0.624798 |
e44e4d53e91ef764d70acb6ea5895ba8440d4cc2 | 2,139 | /*
* 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 ... | 35.65 | 80 | 0.719028 |
4dd56e3f6f703aaabc6819722649ad9fe7583682 | 2,463 | package info.Mr.Yang.mongodb.dto;
import info.Mr.Yang.mongodb.model.Address;
import info.Mr.Yang.mongodb.model.Coupon;
import info.Mr.Yang.mongodb.model.Favorite;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import java.util.List;
/**
* @program: Shop
* @descriptio... | 20.697479 | 59 | 0.649208 |
7bd43a573f75d65da54cedf9337ca85623df78b3 | 693 | package TreeRelatedProblem;
import java.util.*;
public class ConvetSortedListToBST {
public TreeNode sortedListToBST(ListNode head){
List<Integer> list = new ArrayList<>();
while(head != null){
list.add(head.val);
head = head.next;
}
return helper(list, 0... | 23.896552 | 68 | 0.562771 |
5f470128fce704ed3c11b7a2162bac3118fc1395 | 952 | package Ej_4;
import java.util.concurrent.Semaphore;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Adrian Tesore
*/
public class SumaNatural extends Thread {
Semaphore sem;
long[] sumaTotal;
long ini;
long fin;
public SumaNatural(Semaphore sem, long[] su... | 22.666667 | 86 | 0.543067 |
fac94d59cfffd0abbc08f62dc569dd35dca09fd6 | 5,344 | package com.example.sqlmvvm.view_models;
import android.app.Application;
import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
imp... | 37.370629 | 108 | 0.628743 |
b38982807c81fdc845ffd57ae928c3fdb3b218bd | 573 | package me.piggypiglet.docdex.bootstrap.implementations;
import me.piggypiglet.docdex.bootstrap.framework.Registerable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
// ------------------------------
// Copyright (c) PiggyPiglet 2020
// https://www.piggypiglet.me
// ------------------------------
public fi... | 30.157895 | 75 | 0.677138 |
e449d5e2550270beec2160a0158eac47b75dc78c | 2,315 | package org.deta.tinos.stock;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StockCode{
public List<String> list;
publi... | 30.866667 | 80 | 0.651836 |
8c5493dca4e02746c13c794ae2673ecf04b68294 | 26,791 | package cn.threefishes.cloudrepository.entity;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DistributionBillExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public Dist... | 36.155196 | 111 | 0.631182 |
b4bc53d0094690760cd76e053a8fc77937cf29a8 | 4,829 | package org.fatmansoft.teach.service.academic_activity;
import lombok.Getter;
import lombok.Setter;
import org.fatmansoft.teach.models.academic_activity.Internship;
import org.fatmansoft.teach.models.academic_activity.Practice;
import org.fatmansoft.teach.models.student_basic.Student;
import org.fatmansoft.teach.repos... | 40.241667 | 109 | 0.663284 |
612c81d97df61c133da70998ec48443b1fba8ba4 | 2,933 | /*
* Copyright 2010 Phil Burk, Mobileer 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... | 31.202128 | 96 | 0.607228 |
3bde1bab44b8776f71f95b330adef7f2da9949d8 | 1,142 | package at.wirecube.additiveanimations.helper;
import android.view.animation.Interpolator;
public class SpringInterpolator implements Interpolator {
// curve parameters generated with https://www.desmos.com/calculator/6gbvrm5i0s
private static final double BOUNCY_AMPLITUDE = 0.13;
private static final dou... | 32.628571 | 100 | 0.729422 |
edc2eb1e21d3201d2cac401b4883c8e0f89f6d9c | 434 | //13.Write a program in java to reverse of a pyramid.
class JavaProgram
{
public static void main(String args[])
{
int i, j, k=1;
for(i=0; i<5; i++)
{
for(j=0; j<k; j++)
{
System.out.print("* ");
}
k = k +1;
... | 14.466667 | 54 | 0.341014 |
7ff863983f585c528325b800ce1b48fd6f81e830 | 1,357 | /*
* ice4j, the OpenSource Java Solution for NAT and Firewall Traversal.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.apa... | 27.693878 | 75 | 0.665438 |
197da18212ab04cee93b259b4ae45ac18e57f6c0 | 128 | package com.rohan.dp.visitor.solution.ex2;
// Visitable
public interface Segment {
void applyFilter(AudioFilter filter);
}
| 18.285714 | 42 | 0.765625 |
2d37f08443a737e5bf5fc27315c9dada4b1a4d1c | 213 | package com.packt.springhighperformance.ch6.bankingapp.service;
import com.packt.springhighperformance.ch6.bankingapp.model.Account;
public interface AccountService {
Account findAccountById(Long accountId);
}
| 26.625 | 68 | 0.84507 |
334c547a1acd304306f5108c55ada2e11b7bd920 | 725 | package com.example.parstagram.ui.fragments.camera;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.parse.ParseFile;
public class CameraViewModel extends ViewModel {
private MutableLiveData<String> description;
private MutableLiv... | 23.387097 | 51 | 0.697931 |
327925fa42e3ba8c5cda56266dba58ed87c620d8 | 1,367 | package ru.job4j.tracker.initializationrder;
public class A {
{
System.out.println("A class. No static block 1");
}
{
System.out.println("A class. No static block 2");
}
{
System.out.println("A class. No static block 3");
}
static {
System... | 19.528571 | 60 | 0.51207 |
7f67b4b9d5251889967f1c90c87085e2d7709bcb | 1,100 | package org.aerogear.plugin.intellij.mobile.services.configuration;
import com.intellij.openapi.project.Project;
import com.intellij.psi.xml.XmlTag;
import java.io.File;
public class AndroidManifest extends ConfigurationXml{
private static final String MODULE_APP = "app";
private static final String DIR_SRC... | 32.352941 | 177 | 0.708182 |
9ebcc849acdb37efccb88b1482daae19163dd53e | 305 | package eu.galjente.zooplus.currency.exception;
/*
HTTP Status 403
Access restricted for repeated over-use (status: 429), or other reason given in ‘description’ (403).
API not available with this App ID
*/
public class OpenExchangeRatesAccessForbiddenException extends OpenExchangeRatesException {
}
| 30.5 | 101 | 0.8 |
4b1e144dbd6c04ebfab47a9a71cbdbc383c88a7e | 1,950 | package edu.upc.fib.meetnrun.asynctasks;
import android.os.AsyncTask;
import java.util.ArrayList;
import java.util.List;
import edu.upc.fib.meetnrun.adapters.IFriendsAdapter;
import edu.upc.fib.meetnrun.asynctasks.callbacks.AsyncTaskCallbackFriends;
import edu.upc.fib.meetnrun.asynctasks.callbacks.AsyncTaskException... | 33.050847 | 136 | 0.667692 |
2c692165a49f318a86c18a0a70816ce22675187b | 103 | package com.github.msu.sdk.response;
public class PaymentSystemDisableResponse extends ApiResponse {}
| 25.75 | 64 | 0.84466 |
70a7113fbc97f24b96012e5fc3afd6ead6b46578 | 10,013 | /**
* Copyright (C) 2012 Maxim Gurkin <redmax3d@gmail.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 ... | 39.266667 | 112 | 0.75372 |
689f32af725501126d4b83818be2444e14c2c1a8 | 4,005 | package com.bitdubai.fermat_cbp_plugin.layer.stock_transactions.crypto_money_destock.developer.bitdubai.version_1.utils;
import com.bitdubai.fermat_api.layer.all_definition.enums.interfaces.FermatEnum;
import com.bitdubai.fermat_cbp_api.all_definition.enums.BalanceType;
import com.bitdubai.fermat_cbp_api.all_definitio... | 30.572519 | 120 | 0.661673 |
b16850624a4959bcaca9f6f9679fd97d2dc0aa71 | 2,575 | package io.github.ageofwar.telejam.connection;
import java.io.*;
/**
* A file ready to be sent.
*/
public final class UploadFile implements Closeable {
/**
* The name of the file.
*/
private final String fileName;
/**
* The content of the file.
*/
private final InputStream inputStream;
... | 27.688172 | 87 | 0.634563 |
d31386ba18677edc23a3d9adf47e3df000bbfde9 | 327 | package com.nekohit.neo.ozkens;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class OzkensApplication {
public static void main(String[] args) {
SpringApplication.run(OzkensApplication.class, args);
... | 23.357143 | 68 | 0.788991 |
3b212f9915e0b52f72eef2f9549cbc9f57c9c324 | 379 | package th.co.geniustree.springdata.jpa.repository;
import lombok.Data;
@Data
public class ClassDocumentParent {
private Long id;
private String description;
private String documentType;
private String documentCategory;
private ParentDTO parent;
@Data
public class ParentDTO {
pr... | 18.047619 | 51 | 0.707124 |
e2201771aa8397f9dfc5fdf06173b9145e817d5b | 1,696 | package org.qianyan.prescriptionmanager.controller;
import org.qianyan.prescriptionmanager.domain.User;
import org.qianyan.prescriptionmanager.service.impl.UserServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.ht... | 29.754386 | 118 | 0.684552 |
d6a5d129e037381f8b8d11f5163ce18431803fb2 | 1,175 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... | 26.111111 | 75 | 0.725957 |
8f41f8481ed82db67d606fbc052981922b66ec60 | 867 | package io.github.melangad.spring.config.server.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Tempo... | 20.642857 | 55 | 0.777393 |
bb778094bb71ffa78fff2289c2dc15520e104640 | 2,800 | /**
* Copyright 2014-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 28 | 100 | 0.658214 |
fec27a08f3e38f879f3c18a74ffdede6e4a8a82c | 6,646 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 38.416185 | 100 | 0.607884 |
cee658f3f0408b522c7dc2b3f8306d0a9f5f6da1 | 3,572 | /*
* 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
* distributed u... | 56.698413 | 150 | 0.809071 |
10e2d6801c2024a39d902532fed4b19e711984a4 | 4,621 | package com.hhbgk.webservice.discovery.ui.fragment;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... | 36.968 | 153 | 0.621294 |
13c1fdc0188fd1ec092aec658dae11017c8bedcb | 1,351 | package io.choerodon.notify.api.controller.v1;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bi... | 32.95122 | 84 | 0.741673 |
2a1c0bce8e5e0400be9c6e08e787b185d5dfa57a | 854 | package org.firstinspires.ftc.team7316.commands;
import org.firstinspires.ftc.team7316.maps.OI;
import org.firstinspires.ftc.team7316.maps.Subsystems;
import org.firstinspires.ftc.team7316.util.commands.Command;
public class TeleopContainer extends Command {
@Override
public void init() {
r... | 24.4 | 61 | 0.639344 |
a1f6dacc84b798c6a6fa67286a8dc3ea64a49155 | 340 | package main.studentOrder.src.ru.studentorder.exception;
public class CityRegisterException extends Exception {
public CityRegisterException() {
super();
}
public CityRegisterException(String message) {
super(message);
}
public CityRegisterException(String message, Throwable cause) {
super(mes... | 20 | 65 | 0.741176 |
b059df9dbacabd9c772f21de322e719bba3a6f49 | 3,485 | package view_inspector.aspect;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.provider.Settings;
import android.util.Log;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.... | 32.268519 | 98 | 0.713917 |
cd3bfae1fd75c0509d4cf171d66c53a95b708122 | 606 | package br.com.zupacademy.giovannimoratto.ecommerce.images;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;
/**
* @Author giovanni.moratto
*/
public class ImageRequest {
/* Attributes */
... | 20.2 | 59 | 0.689769 |
beda5357ee999bcd640e8588b47f9fb5c49f2f25 | 2,056 | /*
* 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.266667 | 117 | 0.727626 |
ee31db5c141c746c929a65f38894df0148664278 | 249 | package io.rancher.base;
import java.util.List;
public class TypeCollection<T> {
private List<T> data;
public List<T> getData() {
return this.data;
}
public void setData(List<T> data) {
this.data = data;
}
}
| 14.647059 | 39 | 0.60241 |
92a407c83989509b42051ce5ba4d1b6c678b0286 | 633 | /*
* Copyright (c) 2012-2015 iWave Software LLC
* All Rights Reserved
*/
package com.emc.sa.service.linux.tasks;
import java.util.Collection;
import com.iwave.ext.linux.command.RescanHBAsCommand;
import com.iwave.ext.linux.model.HBAInfo;
public class RescanHBAs extends LinuxExecutionTask<Void> {
private Coll... | 23.444444 | 60 | 0.7109 |
6319b06af475e183753ef3618f71ef6ab0cd5401 | 6,323 | package com.amplifino.obelix.maps;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.OptionalLong;
import java.util.Set;
import java.util.function.LongUnaryOperator;
import java.util.stream.Collectors;
import java.util.stream.LongStream;
... | 27.491304 | 118 | 0.674522 |
a258a8215f740dec58c00888328c3c1b5f76f9b9 | 538 | package com.bootdo.wx.dao;
import com.bootdo.wx.domain.WcontentDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
* 文章内容
* @author yanwen
* @email blueyan163@163.com
* @date 2018-06-27 15:50:19
*/
@Mapper
public interface WcontentDao {
WcontentDO get(Long cid);
... | 16.30303 | 47 | 0.717472 |
dcc704ec5d7282a66165a528195ab9eb4e26339f | 516 | import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
public class Main {
public static void main(String[] args) {
Cliente cliente = new Cliente();
cliente.setNome("Francisco");
cliente.setSobrenome("Chaves");
cliente.setIdade(24);
cliente.setIdentificador(1);
... | 22.434783 | 71 | 0.715116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.