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 |
|---|---|---|---|---|---|
8168e5173f74fc2dc2d7c7b812cf746648e029df | 385 | package com.niton.reactj.utils.event;
import com.niton.reactj.api.event.CustomEventEmitter;
/**
* An event emitter that emits events without data
*/
public class GenericEventEmitter extends CustomEventEmitter<Void, GenericListener> {
@Override
protected void call(GenericListener listener, Void event) {
listene... | 20.263158 | 84 | 0.755844 |
565bd1e42d9cf7734410e05e6c40ab2485072697 | 784 | package com.imt3673.project.database;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import java.util.List;
/**
* DAO: Contains the methods used for accessing the database.
* Data Access... | 23.757576 | 103 | 0.741071 |
eaf8bb429f881af65adf5aa1eb1dbf0a551b48cf | 831 | package com.github.vbauer.caesar.bean;
/**
* @author Vladislav Bauer
*/
public class SimpleSync {
public static final boolean TIMEOUT_VALUE = true;
private final int id;
public SimpleSync(final int id) {
this.id = id;
}
public int getId() {
return id;
}
public Boole... | 17.3125 | 58 | 0.581227 |
2aa594afdad3c3cbc0ea8ea4583b13945acac381 | 1,638 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.cas.models;
import com.aliyun.tea.*;
public class IaasRequest extends TeaModel {
// requestMethod
@NameInMap("request_method")
public String requestMethod;
// requestUrl
@NameInMap("request_url")
publ... | 26.852459 | 98 | 0.684982 |
a4f97caf95fab9f32dcc751cd4a2ac280dd86630 | 507 | // Test case for Issue 102
public final class Bug102 {
class C<T extends @org.checkerframework.checker.nullness.qual.Nullable Object> {}
void bug1() {
C<String> c = new C<>();
m(c);
m(c); // note: the bug disapear if calling m only once
}
void bug2() {
C<String> c = new... | 26.684211 | 86 | 0.591716 |
bb731fc6558b989af9ec0675203e570f1cdcc2b7 | 3,507 | package com.tngtech.archunit.lang;
import com.tngtech.archunit.base.DescribedIterable;
import com.tngtech.archunit.base.DescribedPredicate;
import com.tngtech.archunit.core.domain.JavaClass;
import com.tngtech.archunit.core.domain.JavaClasses;
import org.junit.Test;
import static com.tngtech.archunit.core.domain.Test... | 41.75 | 137 | 0.73225 |
da57b5d72ac2a232770496d9163c4ffa45bbb9a8 | 2,402 | /*
* Copyright 2016 OPEN TONE 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 ... | 23.782178 | 87 | 0.632806 |
1e19735733a0926de3cf10a2e8acfe1070f74806 | 3,177 | /*
* Copyright 2014-2019 JKOOL, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 31.147059 | 115 | 0.697513 |
47824ac038609fdba1479c11625d2e4576757278 | 5,061 | package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.InvertType;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.RemoteSensorSource;
import com.ctre.phoenix.motorcontrol.StatorCurrentLimitConfiguration;
import com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice;
imp... | 34.903448 | 131 | 0.735625 |
188268bb7dc11653caf407c2b15158b3b54daef3 | 1,526 | package es.upm.miw.iwvg_devops.code;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class DecimalCollectionWithStreamTest {
private DecimalCollectionWithStream decimalCollectionWithStream;
@BeforeEach
void before()... | 26.310345 | 83 | 0.686763 |
85eedb47454e7bb6ee60e1177a50a8ca6c2ebab5 | 1,596 | /*
Author: Debjyoti Guha
Date: 06/05/2018
Description: Prim's Algorithm.
*/
import java.util.Scanner;
class PrimsAlgo {
void Prim (){
int[][] c;
int[] d,v;
int i, j, n, u, min, source,x,total=0;
Scanner s = new Scanner(System.in);
System.out.println("Enter no of vertices");
... | 26.6 | 75 | 0.37594 |
9dddedd66a7f56b920d317515c3156164b1669e8 | 1,289 | package org.elastos.wallet.ela.ui.Assets.bean;
import java.util.List;
public class AddressListEntity {
/**
* Addresses : ["ES1P3Tmf3qvJAv4NvS7vKp8Mr3QsG5WJyB","EZEDLbxX39NiVzEVhzuzZUbmmJRUhuGvdy","EbGBsajf2hpu4HomoP1nRhMFjFLBtZPjMA","EfKPzoQM8btgt1wyA4Cuwvnqnu2E2JAX5a","EfUMnEFn2B3EBNLvgX8n68YtfYKYxxPRrP","E... | 42.966667 | 760 | 0.791311 |
b14d8aa4c4a99a56a8aa2192f97c6b718f8979d5 | 56 | package com.jdc.app.view;
public class AuthorEdit {
}
| 9.333333 | 25 | 0.732143 |
0ee89fa879771cf262315978fbba191f3d6f75fd | 579 | // Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/bindings/java/gui/org/COPASI/gui/TaskRunEvent.java,v $
// $Revision: 1.1 $
// $Name: $
// $Author: gauges $
// $Date: 2007/06/20 14:01:24 $
// End CVS Header
// Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellect... | 23.16 | 118 | 0.668394 |
8dd5564f92b9d33337dce432d2e1900d50a17178 | 5,908 | package com.haoxt.mpos.fragment.tab;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.KeyEvent;
import com.haoxt.mpos.R;
import java.util.HashMap;
import tft.mpos.library.base.BaseBottomTabActivity;
import tft.mpos.l... | 28 | 116 | 0.493568 |
d4f6fcc1edcd0922d05e560daa5456931ec4389c | 4,944 | package com.vladykin.replicamap.kafka.impl.worker.flush;
import com.vladykin.replicamap.kafka.impl.msg.FlushRequest;
import java.util.ArrayDeque;
import java.util.List;
import java.util.stream.LongStream;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.OffsetAndMetadat... | 35.568345 | 130 | 0.634102 |
8405e45b70f5c57703230a66d5a56f6fd6f0d7b7 | 1,351 | package com.nedap.healthcare.aqlparser.model.clause;
import com.nedap.healthcare.aqlparser.AQLParser;
import com.nedap.healthcare.aqlparser.model.AQLValidationMessage;
import com.nedap.healthcare.aqlparser.model.Lookup;
import com.nedap.healthcare.aqlparser.model.QOMObject;
import com.nedap.healthcare.aqlparser.model.... | 32.95122 | 124 | 0.720947 |
48605685195ecc566dda76d3a407266a330d0bbf | 2,644 | // Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.handler;
import org.cef.browser.CefBrowser;
import org.cef.browser.CefFrame;
import org.cef.callback.CefContextMen... | 44.066667 | 97 | 0.713691 |
8cd45f28eb513a4206cf2f8c914abcc519893df4 | 1,175 | package edu.scripps.yates.maxquant;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Map;
import org.junit.Test;
import edu.scripps.yates.census.read.MaxLFQuantParser;
import edu.scripps.yates.census.read.QuantParserException;
import edu.scripps.yates.... | 30.921053 | 110 | 0.741277 |
ba5cd53cfb1adfb480d201b2f1fd5facf254875d | 1,574 | package com.hts.report.domain;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
... | 22.169014 | 64 | 0.761118 |
a43826a03950fee2cb8d8213b159c2acc015a89f | 2,724 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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... | 23.482759 | 91 | 0.682452 |
d0f770a812890a867321dd44ff205e1cf4f04a86 | 11,495 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
import static org.chromium.chrome.browser.base.SplitCompatUtils.CHROME_SPLIT_NAME;
import android.app.ActivityManag... | 42.416974 | 100 | 0.717007 |
ca780f7e47f9c10f71a1da54bf642a0b178d7092 | 1,183 | package com.mopub.simpleadsdemo;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
class DetailFragmentViewHolder {
final TextView mDescriptionView;
final Button mLoadButton;
final TextView mAdUnitIdView;
final EditText mKeywordsFie... | 36.96875 | 89 | 0.739645 |
538dbf425188e3e5db6241e98cd187f46c9fc7af | 927 | package com.practicaldime.jesty.client;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.api.ContentResponse;
import static org.junit.Assert.*;
import org.junit.Test;
public class HelloServletClient {
private final boolean ready = false;
@Test
public void testAsyncServlet() th... | 30.9 | 84 | 0.655879 |
f8b0429172c521fda75f6cd595cfca71f3fa3ef8 | 3,199 | /**
* Copyright 2013 Micro Focus. All rights reserved.
* Portions Copyright 1992-2009 Borland Software Corporation (a Micro Focus company).
*/
package silktest.insurancemobile;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.Acti... | 29.348624 | 141 | 0.683026 |
9c4b92b3d6735ac2b4b59d5779f72293896cc580 | 8,976 | package crossstitchmvc.controller;
import crossstitchmvc.controller.commands.Blur;
import crossstitchmvc.controller.commands.Dithering;
import crossstitchmvc.controller.commands.Grayscale;
import crossstitchmvc.controller.commands.Mosaic;
import crossstitchmvc.controller.commands.Pattern;
import crossstitchmvc.control... | 37.4 | 87 | 0.613079 |
f530e85451efbf8cf0ace9cfe7eb3d9d7ae6c413 | 1,449 | /*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.or... | 42.617647 | 116 | 0.645273 |
9dffdfb8dd42b31997294b2784d493c5cf4103d2 | 1,371 | package com.microservice;
import static springfox.documentation.builders.PathSelectors.regex;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import springfox.documentation.builders.ApiInfoBuil... | 31.159091 | 80 | 0.679796 |
4d0aca4e45f01a3ff038a067b4b45c4cf59fc56c | 3,328 | /*
* Copyright 2014 Open Networking Laboratory
*
* 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 la... | 36.173913 | 94 | 0.665565 |
09d07768f9fd6589f193a9784801ca4f10cdb85f | 8,750 | // ============================================================================
//
// Copyright (C) 2006-2019 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 38.377193 | 129 | 0.649143 |
2f7e30a9176bc152a33b5bd468d9e5cef63ae957 | 4,396 | package CodeWriting;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
public class TextEditor {
public static String str;
public static Stack<Map<String, String>> operation;
public static Stack<Map<String, String>> undo;
public static int selectStart;
... | 25.264368 | 79 | 0.472475 |
a6403808812e5d1514767f3e836769e0eef65d61 | 2,756 | package com.ruoyi.project.system.schoolresearchlearning.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.proj... | 27.838384 | 120 | 0.701742 |
2b03917b867b8f4787e952ff4de46957039e8d8d | 1,471 | package com.ka2kama;
import com.ka2kama.trampoline.Done;
import com.ka2kama.trampoline.More;
import com.ka2kama.trampoline.Trampoline;
import com.ka2kama.trampoline.TrampolineRunner;
import java.math.BigInteger;
import java.util.Objects;
public class Main {
public static void main(String[] args) {
... | 30.020408 | 90 | 0.562203 |
fc17c6dd845cc5358fcfb3bb8e91e23b91ed0c53 | 1,194 | package com.regnosys.rosetta.blueprints.runner.actions;
import com.regnosys.rosetta.blueprints.BlueprintInstance;
import com.regnosys.rosetta.blueprints.runner.CaptureDownstream;
import com.regnosys.rosetta.blueprints.runner.data.GroupableData;
import com.regnosys.rosetta.blueprints.runner.nodes.NamedNode;
import com.... | 34.114286 | 107 | 0.772194 |
6c95b173b89a0cea1f4ca9970a3b23a79bab153a | 7,640 | /*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
*... | 43.163842 | 118 | 0.692408 |
7690e4a4a37b1d9f07d67d30745d7bb123f4e42d | 4,641 | /*
* Copyright 2012-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 30.532895 | 113 | 0.759535 |
c97222ec5e6c852478a40bca51b1a05b8e0984ec | 1,264 |
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Queue;
import java.util.HashSet;
import java.util.LinkedList;
class Solution {
public int[][] generateMatrix(int n) {
int row_st... | 28.088889 | 61 | 0.477848 |
b8eb82d03c5951e40103c1faecd8ab0b400d88ac | 1,071 | package com.xiyan.controller;
import com.xiyan.constants.Constant;
import com.xiyan.vo.AesVO;
import com.xiyan.vo.BaseVO;
import io.swagger.annotations.Api;
import lombok.extern.log4j.Log4j2;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import or... | 26.121951 | 75 | 0.708683 |
848682c7fa2083db5e3cdc580ab6993520889ee8 | 411 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.compiler.sample.annotations;
@InheritedJavaAnnotation
public class JavaSuperWithAnnotations {
@InheritedJavaAnnotation
public JavaSuperWithAnnotations()
{
}
@InheritedJavaAnnotation
public void methodWithAnnotation() {
}
@In... | 17.125 | 53 | 0.761557 |
e3ffebabc3bc0439bcf49fc001ae9037579314fa | 1,653 | /**
* This class was created by <Vazkii>. It's distributed as
* part of the Quark Mod. Get the Source Code in github:
* https://github.com/Vazkii/Quark
*
* Quark is Open Source and distributed under the
* CC-BY-NC-SA 3.0 License: https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB
*
* File Created @ [0... | 29 | 109 | 0.764065 |
0d48190638d2249fd5f54a2b601b1f5c3467be31 | 810 | /**
* Implementation of a empty list.
*/
public class Nil<E> extends List<E> {
/**
* Compute the length of this list.
* @return The int 0 (zero).
*/
public int length () { return 0; }
/**
* Tell whether this list contains any object.
* @return The boolean value false.
*/
... | 27.931034 | 84 | 0.624691 |
6e9ff5900ed54fad3d03916c505083030e906f6b | 18,097 | package io.jenkins.plugins.folderauth;
import com.cloudbees.hudson.plugins.folder.AbstractFolder;
import hudson.Extension;
import hudson.model.AbstractItem;
import hudson.model.Api;
import hudson.model.Computer;
import hudson.model.Hudson;
import hudson.model.Item;
import hudson.model.ManagementLink;
import hudson.mod... | 41.698157 | 117 | 0.681715 |
30325ddb0f25ebdd4bcb9d05473821f67001709c | 349 | package com.cause.feignproduce.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author cause
* @date 2022/2/8
*/
@RestController
public class ProduceController {
@RequestMapping(value = "/m1")
public String m1() {
... | 18.368421 | 62 | 0.724928 |
94edb9bc43d2b4d31e3b4b1ab30d8312c1be23f9 | 8,527 | package org.apache.commons.mail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.time.Instant;
import java.util.Date;
import javax.mail.Address;
import javax.mail.Session;
import javax.mail.Message.RecipientType;
import... | 21.976804 | 111 | 0.707635 |
f0026030d4e4c6847fd8e5f3180609d04399e3f1 | 3,854 | package com.laboratorio.core.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
imp... | 26.217687 | 87 | 0.717955 |
33232b549d344d73907436895c88e9464e7d248f | 5,492 | package com.isystk.sample.web.base;
import static com.isystk.sample.common.Const.*;
import java.util.Arrays;
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.Web... | 35.895425 | 98 | 0.781136 |
0e517cda5bee8c094bdff42260a7553089c1c464 | 580 | package middleman.logging;
import middleman.model.RequestLogEntry;
import java.util.*;
public class RequestLogger {
List<RequestLogEntry> entries = Collections.synchronizedList(new ArrayList<RequestLogEntry>());
public List<RequestLogEntry> getEntries() {
List<RequestLogEntry> sorted = new... | 24.166667 | 100 | 0.662069 |
be0109a67eccf76f8afaa93b888d7b57ecb3c5eb | 5,343 | package pr.kandru.movieapp;
import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
im... | 37.626761 | 108 | 0.585252 |
1e7955345b0d48b872b1539885fb5ee97a2be39d | 4,774 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 33.152778 | 98 | 0.709468 |
9604b6809d1b00d3f3668186b31cc4f1b93474a9 | 1,534 | package org.basex.test.util;
import static org.junit.Assert.*;
import org.basex.util.BitArray;
import org.junit.Before;
import org.junit.Test;
/**
* Tests for {@link BitArray}.
*
* @author BaseX Team 2005-12, BSD License
* @author Dimitar Popov
*/
public final class BitArrayTest {
/** Instance of {@link BitArr... | 23.96875 | 71 | 0.612125 |
c92fd0fc45bbc06c679fd123b6592fc5c5c96ead | 2,893 | package com.johnsoft.samples;
import com.johnsoft.samples.utils.Nullable;
import java.lang.IllegalArgumentException;
import java.lang.String;
import java.util.ArrayList;
import java.util.List;
/**
* @author John Kenrinus Lee
* @version 2019-04-29
*/
public class Settings5 {
/**
* a comment will be copi... | 22.601563 | 80 | 0.542689 |
b5f6490085cb27dac582043b40890879ab8aeb93 | 3,723 | package controllers;
import com.github.cleverage.elasticsearch.IndexQuery;
import com.github.cleverage.elasticsearch.IndexResults;
import com.github.cleverage.elasticsearch.IndexService;
import indexing.IndexTest;
import indexing.Team;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search... | 38.78125 | 130 | 0.71018 |
75aae2f95e4e5a1dedc5ec344b32806c7653803a | 2,879 | package org.mpilone.hazelcastmq.camel;
import java.util.concurrent.TimeUnit;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.impl.PollingConsumerSupport;
import org.mpilone.hazelcastmq.core.HazelcastMQConsumer;
import org.mpilone.hazelcastmq.core.HazelcastMQContext;
import o... | 25.034783 | 78 | 0.703717 |
c6cf0c849bf9d41dc3d3160cf461d8c3f5022c36 | 910 | package io.github.biezhi.tgbot.api;
import lombok.Data;
import java.io.Serializable;
@Data
public class ChatMember implements Serializable {
private final static long serialVersionUID = 0L;
public enum Status {
creator, administrator, member, restricted, left, kicked;
}
private User user;... | 26.764706 | 65 | 0.767033 |
d62f183ad58017ade72ca3fcb4d9a4c776ff7f27 | 527 | package ase_cw.Models;
/**
* Exception class. Deals with the manipulation of wrong categories with menus & menu items
*
* Date: 10/02/2016
* Time: 8:18 PM
*
* @author Cécile Riquart
* @version 1.0
*/
public class WrongCategoryException extends Exception {
public WrongCategoryException(Category wrongCatego... | 27.736842 | 117 | 0.690702 |
91c7bae46e0dd6fa27fe1313b59b371fa480cb5f | 3,124 | package com.medication.medicationSystem.controller;
import java.util.List;
import com.medication.medicationSystem.model.AssignMedication;
import com.medication.medicationSystem.model.NotificationEmail;
import com.medication.medicationSystem.repository.MedicationRepository;
import com.medication.medicationSystem.servi... | 40.051282 | 108 | 0.762804 |
0cbdb5bbe441e75c8d6fe98a7c1f62a0a268b2fc | 3,013 | package cc.ccoder.controler;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import com.alibaba.fastjson.JSON;
import com.opensymp... | 24.495935 | 97 | 0.71457 |
aec0fbf0e27972335e53601337b120eae078b912 | 169 | package entities.services;
import model.entities.Installment;
public interface TaxService {
public Installment tax(int installmentNumber, Installment installment);
}
| 21.125 | 72 | 0.828402 |
f62d2348120fee82863c6c59ec473694954a1ca8 | 3,401 | package com.practica2.tap.views.planta;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.practica2.tap.logic.Building;
import com.practica2.tap.logic.Elevator;
import com.practica2.tap.logic.Floor;
import com.practica2.tap.views.main.MainView;
import com.vaadin.flow.component.Com... | 30.918182 | 80 | 0.744487 |
cc83b7d60a09ee07e5623b47304dd08f32797ac4 | 157 | package io.jenkins.plugins;
public class RandomClass {
public RandomClass() {
org.jenkinsci.plugins.workflow.steps.StepContext x = null;
}
}
| 22.428571 | 66 | 0.700637 |
805255831253e0f1d93731407081c8ba5c94a903 | 849 | package WayofTime.bloodmagic.registry;
import WayofTime.bloodmagic.soul.EnumDemonWillType;
import WayofTime.bloodmagic.core.RegistrarBloodMagicBlocks;
import WayofTime.bloodmagic.inversion.CorruptionHandler;
import net.minecraft.init.Blocks;
public class ModCorruptionBlocks {
public static void init() {
f... | 49.941176 | 150 | 0.787986 |
66b8a2129bc788e5d9d35cf7340f5acf137d9ca3 | 20,646 | package com.job.feign.provider.domain;
import java.util.ArrayList;
import java.util.List;
public class ResumeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ResumeExample() {
oredCriteria = new ArrayList<Criter... | 31.281818 | 103 | 0.545287 |
c3091a146d8748b3cf66fcfc91697a1b0a62a829 | 4,138 | package tk.desnex.gorecycle;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget... | 33.104 | 74 | 0.61334 |
7eed43daa3c603aea04c9b985e963ed9a42102fe | 12,238 | /*
* 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... | 40.523179 | 136 | 0.670371 |
95972312fe177cc2a62a83093ca3b6052be83b31 | 632 | package com.frewen.designpattern.chain.resposibility.sample.okhttp;
import java.util.ArrayList;
import java.util.List;
public class ChainManager {
private List<Interceptor> interceptors = new ArrayList<>();
public ChainManager() {
interceptors.add(new InterceptorOne());
interceptors.add(new ... | 27.478261 | 80 | 0.697785 |
259120398fa793f47b6a8e2bf692b79dcf4c10b6 | 567 | package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test.
*
* @author atrifonov
* @since 10.07.2017
* @version 1
*/
public class BubbleSortTest {
/**
* Test sort.
*/
@Test
public void whenSortArrayWithTenElementsThenSortedArray()... | 21 | 60 | 0.670194 |
b7a7f5d71ed1e7cb1443a351d597a7666f1308a8 | 23,142 | /*
* Copyright (c) 2013 Menny Even-Danan
*
* 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 agree... | 40.886926 | 99 | 0.628684 |
da2483ddb8d1ce2c51c85905957e6c52f7534dfe | 1,898 | package cn.xca.repository.cecezhipin;
import java.util.List;
import org.bson.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.qu... | 33.892857 | 81 | 0.769758 |
b3dc57657fabf6ce7b8dd20087f6952569aa1232 | 806 | package au.edu.uq.imb.memesuite.servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Redirects a page.
*/
public class PermanentRedirect extends HttpServle... | 32.24 | 91 | 0.769231 |
1cd7fc60f7ccb31f65413010b58040aea0a0edc8 | 329 | package eu.operando.swarmService.models;
import eu.operando.swarmclient.models.Swarm;
/**
* Created by Matei_Alexandru on 30.08.2017.
* Copyright © 2017 RomSoft. All rights reserved.
*/
public class UDESwarm extends Swarm {
public UDESwarm(String arg) {
super("UDESwarm.js", "registerDeviceId", arg);
... | 19.352941 | 54 | 0.705167 |
8a9255ec6cbf2bb43d37b60772590825d3dd91dc | 2,318 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 26.643678 | 86 | 0.695427 |
0eb2756565d26972d6cbb38a54e8721bfff8f623 | 567 | package data.structures.java.recursion;
public class BinarySearch
{
public static int binarySearch(int[] arr, int val)
{
return binarySearch(arr, 0, arr.length - 1, val);
}
private static int binarySearch(int[] arr, int low, int high, int val)
{
if(high < low)
{
return -1;
}
int m... | 17.71875 | 72 | 0.557319 |
a06ecb640b9987f6a4ad6f6c33957bdc1e7e1900 | 8,930 | package net.minecraft.client.model;
import net.minecraft.client.renderer.*;
import net.minecraft.entity.passive.*;
import net.minecraft.util.*;
import net.minecraft.entity.*;
public class ModelRabbit extends ModelBase
{
ModelRenderer rabbitLeftFoot;
ModelRenderer rabbitRightFoot;
ModelRenderer rabbitLeftT... | 52.222222 | 202 | 0.665174 |
1df721cdc19bbc1316cb65cbd4ac005f6697ee5e | 4,195 | package me.fhoz.notenoughaddons.machines;
import io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem;
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems;
import io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.ElectricDustWasher;
import io.github.thebusybis... | 32.51938 | 120 | 0.668892 |
86778e7e7fc3c6166304207e3f31e6c6572cc212 | 885 | package com.lion.manage.expose.department.impl;
import com.lion.core.service.impl.BaseServiceImpl;
import com.lion.manage.dao.department.DepartmentAlarmDao;
import com.lion.manage.entity.department.DepartmentAlarm;
import com.lion.manage.expose.department.DepartmentAlarmExposeService;
import org.apache.dubbo.config.an... | 34.038462 | 128 | 0.812429 |
2e87ca9ff3ae3a309fe3045ae769b32f76ad39e4 | 1,785 | package seedu.address.testutil;
import seedu.address.logic.command.edit.EditDescriptor;
import seedu.address.model.commons.Name;
import seedu.address.model.commons.WanderlustDate;
import seedu.address.model.travelplan.TravelPlan;
public class EditTravelPlanDescriptorBuilder {
private EditDescriptor descriptor;
... | 30.254237 | 98 | 0.69972 |
5de3b7f545ed8a0ef24c20893d2fe9f5dc9a1a2f | 1,533 | package bfrc.opts;
import java.util.Deque;
import java.util.List;
import bfrc.ast.AbstractTreeVisitor;
import bfrc.ast.BlockNode;
import bfrc.ast.ChangeNode;
import bfrc.ast.Node;
import bfrc.optimizer.Optimizer;
import bfrc.optimizer.OptimizerException;
/**
* This optimization merges consecutive absolute and relat... | 23.953125 | 79 | 0.647097 |
7daca5cda560f9d698824f0ac88895bdf478fc87 | 1,742 | package kandrm.JLatVis.gui;
import java.awt.Component;
import java.awt.HeadlessException;
import java.io.File;
import javax.swing.JFileChooser;
import kandrm.JLatVis.Application;
/**
*
* @author Michal Kandr
*/
public class LoadFileChooser extends JFileChooser {
protected LatVisFileFilter latVisFileFilter;
... | 32.259259 | 176 | 0.7124 |
dd69c9031bda708beceb0e49795d08d0b2af213a | 1,546 | /*
* Copyright 1999-2015 dangdang.com.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 29.169811 | 125 | 0.727684 |
3d653456f6e4dca818a307272ff4798370b6674c | 4,084 | /**
* vertigo - application development platform
*
* Copyright (C) 2013-2021, Vertigo.io, team@vertigo.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/li... | 39.650485 | 180 | 0.78379 |
5ffde023d0a049d4939c6cdf9abbfebbc5e40660 | 484 | package wint.mvc.url.config;
public abstract class AbstractUrlConfig {
private String name;
public AbstractUrlConfig(String name) {
super();
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public abstract Stri... | 16.133333 | 56 | 0.630165 |
c2fa2e40e18e5867ae7a115e26ebc6c193d61bb9 | 12,473 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, JBoss Inc., and individual contributors as indicated
* by the @authors tag.
*
* 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 ... | 33.619946 | 149 | 0.610358 |
074a02683737a878b363937fafe9443869fcbf60 | 4,932 | /*
* Copyright 2006 Ameer Antar.
*
* 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... | 27.248619 | 123 | 0.703163 |
69918208e8a0ac2eb7e9bda3c80425178984c4b1 | 1,481 | package io.suite.venus.job.admin.core.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persisten... | 24.683333 | 70 | 0.727887 |
10638fe75f55a97f422931bfd4ff0ff2c0f66f25 | 1,593 | /*
Copyright (c) 2014 Ahomé Innovation Technologies. 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 ... | 26.55 | 82 | 0.698054 |
1f0cc67aebf3618fddb482bda7e81921b9afd5c2 | 932 | package com.example.counter;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.Button;
public class FirstTimeLoginActivity extends AppCompatActivity {
private S... | 31.066667 | 66 | 0.707082 |
ce8bda2bb888a1b866b3d28c3a8cd4016f9c554b | 726 | package svenhjol.charm.mixin;
import net.minecraft.entity.passive.ChickenEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callba... | 36.3 | 77 | 0.779614 |
16e25019b87d0d7314f438150900247e3b91b473 | 1,285 | package ir.treeroot.psyazi.Database.Room.DataSource;
import java.util.List;
import io.reactivex.Flowable;
import ir.treeroot.psyazi.Database.Room.ModelDB.Favorite;
public class FavoriteRepository implements IFavoriteDateSource {
private final IFavoriteDateSource dateSource;
public static FavoriteRepository ... | 22.946429 | 91 | 0.708171 |
fea15d7352cff19e77ac394ba28b5ad211e4ba5c | 1,533 | package com.bjlx.QinShihuang.core.formatter.im;
import java.io.IOException;
import com.bjlx.QinShihuang.model.im.Post;
import com.bjlx.QinShihuang.model.misc.ImageItem;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.Serializ... | 41.432432 | 113 | 0.652968 |
950bbb25ee9d3e1156227599248358bc2f1284c7 | 230 | package net.minidev.ovh.api.email.exchange;
/**
* Exchange account license
*/
public class OvhAccountLicense {
/**
* canBeNull
*/
public OvhOvhLicenceEnum license;
/**
* canBeNull
*/
public Long licenseQuantity;
}
| 13.529412 | 43 | 0.691304 |
b2cc7b96e0112d7dafc352918e3bcc80d3b812e3 | 3,071 | /**
* Copyright (c) 2009, 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/LICE... | 33.747253 | 109 | 0.637252 |
b5aa01547c7b19ead28e0f4af6d3ba2704d55256 | 3,466 | package com.ermile.salamquran.android.salamquran.Learn;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.view.Vie... | 29.87931 | 80 | 0.694172 |
6e0ae18a5b973934f2ee5ab4c1c72182f8e11bff | 20,494 | package com.java110.code.relationship;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.code.BaseGenerator;
import com.java110.code.web.GeneratorStart;
import org.springframework.util.StringUtils;
public class GeneratorBindingComponent extends BaseGenerator {
pub... | 44.455531 | 202 | 0.57246 |
fedd2fe844672afdb1a5c95a2a1691393faf2fe3 | 11,568 | /*
* Copyright 2006-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 40.876325 | 218 | 0.686117 |
ab888dc727c8edd72bb02b6e5939e0ae90e2f0b9 | 2,871 | /*
* MIT License
*
* Copyright (c) 2018-2021 Alexis Jehan
*
* 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... | 37.776316 | 106 | 0.722048 |
b73d27c312a5017e0431c144358a41b4a5719508 | 1,647 | package net.teamio.teamioutils;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.... | 31.075472 | 123 | 0.771099 |
6b9b4f44691a37c81fd0e09f6be3f50bfc8b9227 | 1,830 | package com.imooc.aspectJ.demo1;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
@Aspect
public class MyAspectAnno {
@Before(value="myPointcut()")
public void before(JoinPoint joinPoint)
{
System.out.println("前置... | 30 | 88 | 0.580328 |
7ee192aadefee71b3602bf1a8d7fedd2409702a5 | 333 | package org.dddjava.jig.domain.model.interpret.relation.method;
import org.dddjava.jig.domain.model.declaration.method.MethodDeclaration;
public class CalleeMethod {
MethodDeclaration methodDeclaration;
public CalleeMethod(MethodDeclaration methodDeclaration) {
this.methodDeclaration = methodDeclarat... | 27.75 | 73 | 0.795796 |
918f29fb387ecbd16abf30705b2177ab84228bf3 | 578 | package Decorator;
public class AccountWithTransactionCost extends AccountDecorator{
private int transactionCost;
public AccountWithTransactionCost(IAccount decoratedAccount, int transactionCost) {
super(decoratedAccount);
this.transactionCost = transactionCost;
}
public void changeB... | 25.130435 | 87 | 0.717993 |
c00cf281562e63445a912da9ad97e01868701e42 | 7,392 | /*
* Licensed to the Indoqa Software Design und Beratung GmbH (Indoqa) under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Indoqa licenses this file to You under the Apache License, Version 2.0
* (the "Lice... | 36.96 | 129 | 0.677354 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.