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 |
|---|---|---|---|---|---|
3d02fe5a9a7c7fbfee8906db24a905447e3d2d32 | 15,513 | /*
* Copyright 2000-2015 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... | 40.503916 | 144 | 0.663637 |
dddce60cd522de8a9a0d3a30842b548e9d9fe64c | 7,709 | /*
* 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 ... | 35.362385 | 78 | 0.600078 |
61d260cdc187c35285b3d5f1259a60d14c44f686 | 6,348 | /*******************************************************************************
* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* wh... | 44.391608 | 118 | 0.587902 |
42dbff5a4cc708419a02bced7c5f7db243a405ea | 2,665 | /*
* Copyright (c) 2007-2014 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | 24.449541 | 111 | 0.636398 |
839cfbe1fe5a699175d7b73c17060411db7a5df7 | 2,517 | /*
* Copyright (c) 2020. www.hoprxi.com 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... | 29.964286 | 103 | 0.647199 |
9e21b982fd106551931c668af9f928f8387e68c1 | 2,095 | package net.teamfruit.bnnwidget.component;
import javax.annotation.Nonnull;
import net.teamfruit.bnnwidget.OverridablePoint;
import net.teamfruit.bnnwidget.WEvent;
import net.teamfruit.bnnwidget.compat.OpenGL;
import net.teamfruit.bnnwidget.position.Area;
import net.teamfruit.bnnwidget.position.Coord;
import net.team... | 26.1875 | 170 | 0.734606 |
428df72d6aebb9a57dac90954eed0baf77e4c4c4 | 91 | package org.albianj.security;
public enum MACStyle {
MD5, SHA1, SHA256, SHA384, SHA512
}
| 15.166667 | 34 | 0.747253 |
e4daf1acc680c66c45956f334f23b4482aa270f1 | 448 | package com.ceiba.itemreserva.servicio;
import com.ceiba.itemreserva.puerto.repositorio.RepositorioItemReserva;
public class ServicioEliminarItemReserva {
private final RepositorioItemReserva repositorioItemReserva;
public ServicioEliminarItemReserva(RepositorioItemReserva repositorioItemReserva) {
this.reposit... | 26.352941 | 84 | 0.841518 |
8d6d8816b929223c1da287e56ce59f6768ee83d3 | 565 |
public class Henkilo {
private String nimi;
private Lemmikki lemmikki;
public Henkilo(String nimi, Lemmikki lemmikki) {
this.nimi = nimi;
this.lemmikki = lemmikki;
}
public Henkilo(String nimi) {
this(nimi, new Lemmikki("Karvinen", "kissa"));
}
public Henkilo() {... | 21.730769 | 107 | 0.60354 |
d17d9a3cdf064946be7777134ca992a84cb69461 | 23,696 | /*
* Copyright (C) 2006-2007 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... | 25.925602 | 109 | 0.513715 |
e86b65479eff903f3c7aa7a034a66abbc9b6ebe4 | 7,657 | import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;
/**
* Requests:
* An object oriented request based networking protocol
* suitable for almost all networking applications
*/
public class Requests {
/**
* An interface used for callbacks for when an `error` or `return` is received
... | 41.84153 | 102 | 0.629881 |
1e213d2254b953a6a674a2d02405b9f35e4e0d7b | 2,980 | package br.com.zup.proposta.bloqueio;
import java.util.Optional;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.s... | 38.701299 | 119 | 0.766779 |
5eb481df5334b0acc54ed15c5877d151c2961d8f | 524 | package com.packege_new;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class test {
WebDriver wd;
@BeforeClass
public void setUP() {
... | 16.375 | 47 | 0.662214 |
31d9e4ef9abb173f947a7a88a8b8870a597901cb | 12,999 | /*
LinkingKeyEventProfile.java
Copyright (c) 2016 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.deviceplugin.linking.linking.profile;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import org.d... | 36.310056 | 129 | 0.612432 |
cc55a1b7cd7931196cc82a239dd27bcd7ccbb7e5 | 347 | package io.sphere.sdk.annotations.processors.generators.examples;
/**
*
*/
import io.sphere.sdk.annotations.FactoryMethod;
import io.sphere.sdk.annotations.ResourceDraftValue;
@ResourceDraftValue(factoryMethods = {@FactoryMethod(parameterNames = {}) }, builderReturnsDslClass = false)
public class ExampleWithBuilde... | 26.692308 | 108 | 0.806916 |
437e8de4460f00865d7f86659728c8bc36f96c21 | 2,274 | package ru.bgbrakhi.carseller.models;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Objects;
@Entity
@Table(name = "ref_carmodel")
public class CarModel {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private long id;
@Man... | 22.07767 | 77 | 0.55277 |
2c00e35d1c00225ef23923251ab1dfc12de6fff7 | 211 | package vetcilinic.Repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import vetcilinic.Entities.Storage;
public interface StorageRepository extends JpaRepository<Storage,Integer> {
}
| 26.375 | 75 | 0.853081 |
2b5293278b78ee9aed55246ca089bcf63aaff98e | 15,729 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 54.804878 | 134 | 0.632399 |
0ba83d547c5c84d8c6e1e1bb22cd827c5dbe4a45 | 5,943 | /*
MIT License
Copyright (c) 2019 Michele Maione
Permission is hereby granted, free of charge, toE any person obtaining a copy of this software and associated documentation files (the "Software"), toE deal in the Software without restriction, including without limitation the rights toE use, copy, modify, merge, publish... | 25.397436 | 566 | 0.712771 |
e89af1bf783bdcaa3cb088e4d0f9c227f9b9258d | 1,067 | package pl.edu.agh.cs.app.backend.status;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.IntegerProperty;
import pl.edu.agh.cs.app.backend.status.states.PressedStatus;
import pl.edu.agh.cs.app.ui.game.panes.status.GameTimer;
public interface IGameStatus {
// yep, I know, the methods ar... | 18.719298 | 64 | 0.712277 |
2996498a60b15d066010074d0e8160e619e4e916 | 712 | package com.github.dev_brutus.bagel_ui.impl.listener;
import com.github.dev_brutus.bagel_ui.impl.DisplayWindow;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.awt.event.WindowEvent;
import java.awt.event.WindowStateListener;
/**
*
*/
public class WindowStateListenerImpl implements WindowState... | 26.37037 | 96 | 0.766854 |
1e575a4173862c874d3e2cf4483b575a4bc7867d | 1,218 | package de.javagl.flow.samples.weka;
import javax.swing.SwingUtilities;
import de.javagl.category.Categories;
import de.javagl.category.CategoriesBuilder;
import de.javagl.category.Category;
import de.javagl.flow.Flow;
import de.javagl.flow.gui.FlowEditorApplication;
import de.javagl.flow.module.creation.Mod... | 30.45 | 75 | 0.715107 |
d6019d0c7fbfc4ac86f7b7b66c3af7c987544379 | 9,150 | 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 ... | 14.500792 | 810 | 0.799235 |
14cbfc4f57ade1dc414da5c7a1f9a26fe80788fd | 526 | /*
* Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.proleap.cobol.preprocessor.sub.document;
import io.proleap.cobol.CobolPreprocesso... | 29.222222 | 80 | 0.80038 |
c86bacc8fee2086db2691a351bd4dc0c8b366e39 | 1,689 | package com.intentmedia.admm;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.mapred.Mapper;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mrunit.MapDriver;
import org.apache.hadoop.mrunit.ReduceDriver;
import org.apache.hadoop.mrunit.types... | 33.78 | 109 | 0.648905 |
7a3883c474ffd5d2e4aff78512858e6930d3316f | 1,758 | package edu.fudan.stormcv.service.monitor;
import edu.fudan.stormcv.service.db.DBManager;
import edu.fudan.stormcv.service.process.ProcessManager;
import edu.fudan.stormcv.service.process.TopologyManager;
import edu.fudan.stormcv.topology.TopologyH264;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.... | 24.082192 | 104 | 0.615472 |
330ffcdb5a8d54ba45c962575d9dcdef489d2cc2 | 25,033 | /*
* ModelGrid2D.java
*
* Created on November 29, 2005, 3:47 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
*TODO: create/import variable Hz
*/
package wts.roms.model;
import com.wtstockhausen.utils.MathFunctions;
import java.io.IOException;
impo... | 36.544526 | 130 | 0.557065 |
7984d9a2ef250d8547e23f469a6b3aa79c21f96a | 14,192 | package kr.hs.entrydsm.application.usecase;
import kr.hs.entrydsm.application.ApplicationFactory;
import kr.hs.entrydsm.application.entity.*;
import kr.hs.entrydsm.application.integrate.score.ScoreCalculator;
import kr.hs.entrydsm.application.integrate.user.ApplicantDocsService;
import kr.hs.entrydsm.application.integ... | 47.624161 | 130 | 0.70885 |
0271a2b2189cfe281e6620ed397167b31b77ad34 | 1,117 | package javaAdvanced.multidimensionalArrays.lab;
import java.util.Arrays;
import java.util.Scanner;
public class Task6 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String separator = "\\s+";
int [][] matrix = createMatrix(separator, scanner);
... | 30.189189 | 120 | 0.573859 |
c807b084421157e96697542f1a452c4b6d44343c | 2,930 | /*
* 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 ... | 29.59596 | 86 | 0.741297 |
49687a1752eae4c392207eb28ca364fd082c8e35 | 1,366 | package cn.edu.hbfu.server.controller;
import cn.edu.hbfu.server.db.PersonDB;
import cn.edu.hbfu.server.entity.Person;
import cn.edu.hbfu.server.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java... | 26.269231 | 62 | 0.618594 |
5ea95a8bf4a7ee1a496ae40d48f63f3daf5d3ba6 | 2,059 | /*
Copyright 2014-2016 Intel Corporation
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, s... | 37.436364 | 115 | 0.728995 |
c112c8c42fd9773f70832df4b42765ce10587796 | 605 | package test.example2.car;
import se.jbee.inject.binder.Installs;
import se.jbee.inject.binder.LocalEnvModule;
import se.jbee.inject.config.NamesBy;
import se.jbee.inject.config.ProducesBy;
import se.jbee.lang.Type;
import test.example2.Car;
import test.example2.car.pool.CarPoolEnvModule;
@Installs(bundles = CarPoolE... | 28.809524 | 91 | 0.781818 |
0c28ba0b978eafe1e4f3ce3ca50aa9aee7f1c86b | 6,335 | /*
Part of the NETLab Hub, which is part of the NETLab Toolkit project - http://netlabtoolkit.org
Copyright (c) 2006-2013 Ewan Branda
NETLab Hub 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 3 o... | 25.963115 | 105 | 0.685872 |
33b716dbaea25fe2ebc44b5c8eabaf62628a3a66 | 150 | /**
* Labelers set flags or characteristics of network links based on tags in the OSM data they are built from.
*/
package com.conveyal.r5.labeling; | 37.5 | 108 | 0.76 |
c8b4512d3f6fc05d1666fd5bae4e927b53e8a25f | 3,584 | /*
* Copyright (c) EngineHub
*
* 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, publish, distr... | 35.485149 | 138 | 0.666574 |
4d4890c847f4b6ca2ee471f5d73a210905255623 | 2,785 | /*****************************************************************
* 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
* ... | 33.154762 | 79 | 0.592819 |
0c2f8dbf1d070a0810cb4c136179c347934d261a | 14,863 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.pom.core.impl;
import com.intellij.lang.ASTNode;
import com.intellij.lang.FileASTNode;
import com.intellij.model.ModelBranch;
import com.intellij.openapi.Dis... | 39.320106 | 214 | 0.717217 |
9f2ef59de2f37a0f7dc42b2fbc1ebc4ade6ebc6b | 695 | package top.guoziyang.springframework.factory;
import top.guoziyang.springframework.entity.BeanDefinition;
/**
* Bean工厂接口
*
* @author ziyang
*/
public interface BeanFactory {
/**
* 根据名称从容器中获取bean
* @param name bean的名字
* @return bean实例对象
*/
Object getBean(String name) throws Exception;... | 19.857143 | 93 | 0.664748 |
db3c0e691b0a3829dfe77faee5199d69ae05e3c8 | 15,789 | /*
FRODO: a FRamework for Open/Distributed Optimization
Copyright (C) 2008-2013 Thomas Leaute, Brammert Ottens & Radoslaw Szymanek
FRODO is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of... | 41.769841 | 252 | 0.737095 |
971d7d4b8c7979e99fd7e6ed477f44c659883058 | 1,179 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2020 - 2021 The JfrUnit 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/LICENS... | 35.727273 | 80 | 0.751484 |
b63c1138f063270c1613322a13c54f5a2bfba7c9 | 644 | package com.springmvc.pojo;
import java.io.Serializable;
/**
* Ȩ��
* ��id��ʶ���洢Ȩ��ģ������
*
* @author shhz
*/
public class Jurisdiction implements Serializable {
private int j_id;// Ȩ��id
private String j_name;// Ȩ��ģ����
public int getJ_id() {
return j_id;
}
public void setJ_id(int j_id) {
this.j... | 15.333333 | 51 | 0.642857 |
d40cd381dbc45dbe8634da84985049a62bcc0820 | 7,776 | /*
* 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.517241 | 99 | 0.710391 |
9e022268d78a6097953b56971e62ec2acac4b46f | 972 |
import java.util.Scanner;
public class LeftRotationOfArray {
static void ArrayRotate(int arr[], int n) {
int temp = arr[0];
for (int i = 1; i < n; i++) {
arr[i - 1] = arr[i];
}
arr[n - 1] = temp;
}
public static void main(String[] args) {
Scanner cin =... | 27 | 65 | 0.466049 |
3b384e4d651fd3d558d7b2d582419e3eb88f3228 | 889 | package org.zalando.nakadi.service.subscription;
import org.junit.Test;
import org.zalando.nakadi.util.ThreadUtils;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class IdleStreamWatcherTest {
@Test
public void checkIdleStreamWatcher() throws InterruptedException {... | 32.925926 | 96 | 0.734533 |
608e30ad2f2f1684954aecaccb18a841177924b0 | 1,421 | package cz.nkp.differ.cmdline;
import com.beust.jcommander.Parameter;
import java.util.ArrayList;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: stavel
* Date: 1.1.13
* Time: 15:37
* To change this template use File | Settings | File Templates.
*/
public class CommandArgs {
@Parameter(des... | 38.405405 | 153 | 0.701619 |
8f3d2820c709ecd80ce2208204660e8b365a35ec | 741 | package br.com.orangetalents.proposta.integracao.response;
import br.com.orangetalents.proposta.domain.modelo.Bloqueio;
import java.time.LocalDateTime;
public class BloqueioResponseClient {
private String id;
private LocalDateTime bloqueadoEm;
private String sistemaResponsavel;
private boolean at... | 26.464286 | 115 | 0.739541 |
8a3dfa1f7ab104684c4dc2b4a3184fae56d5f095 | 1,398 | package com.dianwoda.test.bassy.common.enums;
import lombok.AllArgsConstructor;
import java.util.HashMap;
import java.util.Map;
/**
* Program type enum
*
* @author lichengkai
* 2018 - 04 - 28 : 20:23
* Copyright(c) for dianwoda
*/
@AllArgsConstructor
public enum ProgramTypeEn {
PROGRAM("program", "立项项目"),
... | 23.3 | 77 | 0.595851 |
24d4d940db1bee18a7e5434b24fec6d58ca40e81 | 1,388 | package com.musak.service.guest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import springfox.documentation.builders.R... | 40.823529 | 106 | 0.768012 |
f8310accca9923d04787ae0d97846154bbe486d3 | 911 | package com.hehe.sharingilive.homepage;
import com.hehe.sharingilive.BasePresenter;
import com.hehe.sharingilive.BaseView;
import com.hehe.sharingilive.model.entity.LiveList;
import com.hehe.sharingilive.model.entity.User;
import java.util.List;
/**
* 定义方法,用于数据交互
* 保存view presenter 的父接口
* 调用view中的方法,写抽象方法,然后在view... | 21.690476 | 63 | 0.636663 |
761202292e754e62c99e9ec81c02973bc8a8e97b | 225 | package jason.designpatterns.command;
/**
* 命令接口
* 抽象命令类,声明执行命令的接口,拥有执行命令的抽象方法 execute()
*
* @author Jason Hou
*/
public interface Command {
/**
* 执行命令
*
* @return 结果
*/
String execute();
} | 12.5 | 40 | 0.577778 |
a72aa0f796e6f4db5ad1abd1a12d77d9f9d5be29 | 464 | package com.etiir.mdm.mapper.symmetric;
import com.etiir.mdm.entity.TableTrigger;
import org.apache.ibatis.annotations.Mapper;
/**
* @author lmx
* @packageName com.etiir.mdm.mapper.symmetric
* @description
* @data 2019/6/13 10:29
*/
@Mapper
public interface TableTriggerMapper {
void insertSelective(TableTri... | 20.173913 | 53 | 0.752155 |
38efa7f44a77ac6779ada906f17157ea916a5d0b | 401 | package com.davidlares.davidAPI.service;
import java.util.List;
import com.davidlares.davidAPI.model.Course;
public interface CourseService {
void saveCourse(Course course);
void deleteCourseById(Long idCourse);
void updateCourse(Course course);
List<Course> findAllCourses();
Course findByID(Long idCourse);
C... | 22.277778 | 46 | 0.795511 |
72ae5a6f9bcec4122e3f2177d80399ff6a0444ec | 1,336 | /*
* Copyright 2017-2018 Valiantsin Kavalenka
*
* 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... | 38.171429 | 140 | 0.756737 |
a319fd214558e281bedde444c1efd4454823f251 | 1,994 | package com.icommerce.product.core.product;
import com.icommerce.product.core.shared.CreationValidationGroup;
import com.icommerce.product.core.shared.SelfValidating;
import com.icommerce.product.core.shared.UpdatingValidationGroup;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Not... | 24.617284 | 86 | 0.669007 |
69e1124910b3ebb2df25ef020edd344fc4386620 | 1,073 | package io.github.htools.extract.modules;
import io.github.htools.lib.Log;
/**
* A TokenSubProcessor can be assigned to a TokenProcessorWithSubs by calling
* {@link TokenProcessorWithSubs#addSubProcessor(java.lang.Class)} or by
* configuring +extractor.[token].process = [subprocessor]
* <p>
* When a TokenProce... | 34.612903 | 79 | 0.738117 |
3a478fbc55ca618656df88e828c3084643ef3b38 | 1,520 | /**
* Write a function to find the longest common prefix string amongst an array of strings.
* <p>
* If there is no common prefix, return an empty string "".
* <p>
* <b>Example 1:</b>
* <pre>
* Input: ["flower","flow","flight"]
* Output: "fl"
* </pre>
* <b>Example 2:</b>
* <pre>
* Input: ["dog","racecar","c... | 27.142857 | 93 | 0.531579 |
5c14f8738040968ea05026eea0a48c45e17525b4 | 521 |
package org.springframework.boot.devtools.remote.server;
import org.springframework.http.server.ServerHttpRequest;
/**
* Interface to provide a mapping between a {@link ServerHttpRequest} and a
* {@link Handler}.
*
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface HandlerMapper {
... | 20.84 | 75 | 0.723608 |
aab8bf328a173a6833ec5caeca0b72a571e3cdfd | 488 | package EdgeCounter;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* Class tests the funcationality of the EdgeFile class
* @author Lavanya Uppala
*
*/
public class EdgeFileTestCases
{
@Test
public void testBasicConstructor()
{
EdgeFile tester = new EdgeFile();
... | 17.428571 | 59 | 0.688525 |
0d2e0c7a467d2b7a6b75e48cfaa05c8e5f673e00 | 2,853 | package org.noear.solon.boot.ssl;
import org.noear.solon.Utils;
import org.noear.solon.boot.ServerConstants;
import javax.net.ssl.*;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.security.*;
import java.security.cert.CertificateException;
/**... | 36.113924 | 98 | 0.681388 |
8c99a7d6206c0ab4559e82230d1664c4cdb26f99 | 487 | package com.vanistudio.homer.Model;
/**
* Created by thuynh6 on 4/11/2016.
*/
public class Homer_Status {
private String status; //on-sale, sold, deleted
private String date; //date when status changes
public String getStatus() {
return status;
}
public void setStatus(String status) {
... | 18.730769 | 51 | 0.616016 |
f373dc69fb8f6365aded116117713671bd986d27 | 199 | package com.trifork.impromptu;
import java.util.Enumeration;
import java.util.List;
public interface HeaderValueResolver {
List<String> getValue(String key);
Enumeration<String> getKeys();
}
| 18.090909 | 38 | 0.773869 |
ebdb4f885f8dd8f0610a8ad565998452f3917c03 | 1,303 | package com.immoc.order.message.stream;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;
/**
* StreamClient 接口,通过 @Input和 @Output注... | 30.302326 | 66 | 0.749041 |
209d25639227974f2cd1f5cc6f85e67f9a8399a2 | 2,100 | package org.openforis.collect.metamodel.uiconfiguration.view;
import java.util.ArrayList;
import java.util.List;
import org.openforis.collect.metamodel.ui.UITable;
import org.openforis.collect.metamodel.ui.UITable.Direction;
import org.openforis.collect.metamodel.ui.UITableHeadingComponent;
import org.openforis.colle... | 26.582278 | 110 | 0.770952 |
3b32915a837519e1b81edebc168f88740cd4c6f0 | 99 | package com.company.move;
public abstract class Move {
public abstract void performMove();
}
| 14.142857 | 39 | 0.737374 |
61a6743e038f07ce893cfedec55f5172fe9634ba | 6,316 | /*
Copyright (C) 2012 Haowen Ning
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.
This program is distributed in the hope that... | 39.475 | 96 | 0.664345 |
132d639eae38b13017393160c84ba2b951fd6f41 | 156 | package org.springframework.context.annotation6;
import org.springframework.stereotype.Component;
@Component
public class ComponentForScanning {
}
| 19.5 | 49 | 0.807692 |
924320efb99438d3dbb52d1f883c039c7032e4be | 1,807 | package game.components;
import engine.GameContainer;
import engine.Renderer;
import game.GameManager;
import game.GameObject;
import game.Physics;
public class AABBComponent extends Component {
private GameObject parent;
private int centerX, centerY;
private int halfWidth, halfHeight;
public AABBComponent(Game... | 22.036585 | 107 | 0.702822 |
7196bc0a3033ac31822aba673c7b2c404f1b4211 | 3,304 | package seleniumutils.methods.helpers;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
i... | 35.148936 | 179 | 0.643462 |
528667b07afc9da8d5836a45f77f60f81f70afb5 | 1,047 | package mezz.jei.support;
import mezz.jei.api.ISubtypeRegistry;
import mezz.jei.api.ISubtypeRegistry.ISubtypeInterpreter;
import mezz.jei.util.Log;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fml.common.Loader;
import vazkii.patchouli.common.item.PatchouliItems;
/**
* A static class containing... | 34.9 | 89 | 0.672397 |
dc43dbd40dafeccf78292f64fcbb4c66ecb3e977 | 70 | package net.sqlcipher.database;
public class SQLiteCursorDriver {
}
| 11.666667 | 33 | 0.8 |
9811ea1e8f00e349bf84c410e186a4a018e2320b | 1,745 | package net.sf.okapi.applications.lapwing.soap;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.jws.WebService;
import javax.mail.util.ByteArrayDataSource;
import net.sf.okapi.applications.lapwing.core.Input;
import net.sf.okapi.applications.lapwing.core.Output;
import n... | 34.9 | 207 | 0.75702 |
5e06d1b4452a4270696bc5dd56ed32fcbd74d9e0 | 2,000 | /* ************************************************************************
#
# DivConq
#
# http://divconq.com/
#
# Copyright:
# Copyright 2014 eTimeline, LLC. All rights reserved.
#
# License:
# See the license.txt file in the project's top-level directory for details.
#
# Authors:
# * Andy ... | 25.316456 | 80 | 0.618 |
3f40399543ee57ff5c3887c486f67dd44cb5fc9e | 2,328 | package quiz.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.http.HttpStatus;
import org.spri... | 36.952381 | 107 | 0.733677 |
6b5ea9ea5d2c0e079322add8dfb60b51ae55d769 | 3,866 | /* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2008, by Barak Naveh ... | 40.270833 | 81 | 0.669684 |
47b5e223507e0a1e166ded47f1b7d18c04c99ac1 | 1,522 | package io.subutai.core.peer.impl.entity;
import java.io.Serializable;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
@Entity
@Table( n... | 16.543478 | 101 | 0.60841 |
671aa1db9ae804345eb203bf9eb54ff37c1457ba | 904 | package com.marqusm.example.moneytransaction.controller.base;
import static spark.Spark.*;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.marqusm.example.moneytransaction.configuration.ApiConfig;
import com.marqusm.example.moneytransaction.configuration.... | 25.828571 | 72 | 0.762168 |
542219ceaddbdad40322e8826c709214432b80ce | 223 | package playwell.common;
/**
* 该接口用于修饰Playwell标准集成组件,为组件约定一些统一的行为以便于集成
*
* @author chihongze
*/
public interface PlaywellComponent {
/**
* 执行初始化操作
*
* @param config 配置信息
*/
void init(Object config);
}
| 13.117647 | 42 | 0.663677 |
9ba08b71881214f0692ec52d4694e2d0e9a05a1c | 3,202 | /*
* Copyright 2016 Hammock and its contributors
*
* 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 ... | 41.584416 | 124 | 0.748595 |
1e351d3a4a3378f3b9406be269e19e9bc4eed28b | 3,845 | /*
* Copyright (C) 2014-2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 36.619048 | 104 | 0.749025 |
e32ab8c6f5abedf8296f5a10d44de1fa1879545e | 310 | package es.codeurjc.gamepost.repositories.enums;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import es.codeurjc.gamepost.objects.enums.Genre;
public interface GenreRepository extends JpaRepository<Genre, Integer>{
Optional<Genre> findByText(String text);
}
| 25.833333 | 71 | 0.819355 |
7de7b1a76c2722d64e9a116b8d0916ef1e06cf01 | 498 | package com.miaoshaproject.service;
import com.miaoshaproject.error.BussinessException;
import com.miaoshaproject.service.model.UserModel;
public interface UserService {
//通过对象id获取对象
UserModel getUserById(Integer id);
//注册
void register(UserModel userModel) throws BussinessException;
/**
* 登... | 24.9 | 93 | 0.748996 |
e3ec0a096a605c822e37f6265a836d06f9fe973a | 1,018 | package com.byd.zzjmes.modules.produce.service;
import java.util.List;
import java.util.Map;
import com.byd.utils.PageUtils;
/**
* 机台计划
* @author tangj
* @email
* @date 2019-09-03 15:12:08
*/
public interface MachinePlanService{
public PageUtils queryPage(Map<String, Object> params);
List<Map<String,Object... | 26.102564 | 74 | 0.747544 |
9246b4482503ad8860c8a1816aaea1f02fedcd89 | 608 | package org.xbib.elasticsearch.river.jdbc;
import org.xbib.elasticsearch.plugin.feeder.jdbc.JDBCFeeder;
import org.xbib.elasticsearch.plugin.jdbc.RiverContext;
public interface RiverFlow {
/**
* The river strategy
*
* @return the strategy
*/
String strategy();
RiverFlow setRiverContex... | 19.612903 | 60 | 0.639803 |
a56939018c2e599f39c4ea31cbdf3d6541c1c332 | 1,812 | package com.verdantartifice.primalmagick.common.containers.slots;
import java.util.function.Supplier;
import com.verdantartifice.primalmagick.common.crafting.WandInventory;
import com.verdantartifice.primalmagick.common.sources.SourceList;
import com.verdantartifice.primalmagick.common.wands.IWand;
import net.minecr... | 40.266667 | 220 | 0.739514 |
26edd2d8092476a168d8eebb4cae45eea870da20 | 629 | package ru.sdetteam.easygauge.model;
import lombok.Data;
/**
* Table: mantis_project_version_table
*/
@Data
public class ProjectVersion {
/**
* Column: id
*/
private Integer id;
/**
* Column: project_id
*/
private Integer projectId;
/**
* Column: version
*/
pr... | 14.295455 | 38 | 0.558029 |
cedf408ad18e9feaa234db282730488f696aa08e | 1,752 | package com.ctg.controller.portal;
import com.ctg.common.Const;
import com.ctg.common.ServerResponse;
import com.ctg.pojo.User;
import com.ctg.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annot... | 31.854545 | 93 | 0.742009 |
08c563cb1545694a7c5425a270054240f2b3ac71 | 1,568 | package org.activiti5.engine.impl.event.logger.handler;
import java.util.HashMap;
import java.util.Map;
import org.activiti.engine.delegate.event.ActivitiMessageEvent;
import org.activiti5.engine.impl.interceptor.CommandContext;
import org.activiti5.engine.impl.persistence.entity.EventLogEntryEntity;
/**
* @author ... | 43.555556 | 105 | 0.819515 |
1c1f27af6f8dd01baef96b25b2f994c95251c020 | 844 | import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
public class ScoringMatrixTest {
ScoringMatrix sm;
public ScoringMatrixTest(){
this.sm = new ScoringMatrix();
}
// @Before
// public void setup(){
// sm = ne... | 21.641026 | 74 | 0.593602 |
3054d684244381085140287af289261798ed242f | 1,183 | /**
* Classe used to produce calculator.
*
* @since 1.0
* @author Dinar Khalfin
* @version 1.0
*/
package ru.job4j.calculator;
/**
* Calculator.
*
* @author Dinar Khalfin (dinarhalfin@yahoo.com)
* @version $Id$
* @since 27.06.2017
*/
public class Calculator {
/**
* Result.
*/
pr... | 19.393443 | 58 | 0.56213 |
8b2c2f155edd1e88c8c34fd4190f774f26412c68 | 1,243 | package com.breakersoft.plow;
import java.util.UUID;
public class TaskE implements Task {
private UUID jobId;
private UUID layerId;
private UUID taskId;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
... | 18.833333 | 54 | 0.56074 |
96273bbc2536afba3ee6ba327917640d7ee26c07 | 9,472 | package com.thinkgem.jeesite.modules.gsp.service.t01complprod;
import com.thinkgem.jeesite.common.StatusEnum.ApprStatus;
import com.thinkgem.jeesite.common.service.GenericBusinessService;
import com.thinkgem.jeesite.common.service.ServiceFlag;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.j... | 38.979424 | 149 | 0.670503 |
9baa64f172978187b34c52a2d2dce04bc083fdc9 | 3,423 | package net.chestnut;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Hashtable;
import java.util.stream.Collectors;
import java.util.List;
import net.minecraft.entity.ItemEntity;
import net.minecraft.entity.player.PlayerEntity;
public final class PlayerRitualItem {
private ItemEntity it... | 45.64 | 132 | 0.684195 |
9c7f0e2df47bdf40221e6102aa26ab5f7973b755 | 1,234 | /*
* Java Examples
* Version 1.0
* Copyright (C) GiusNiyyel, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Daniel Campos <giusniyyel@gmail.com>, May 2018
*/
package Banco;
import java.util.Scanner;
/**
* @autho... | 28.045455 | 75 | 0.519449 |
24fc916c7c7ae2f3a7837d4d6b3f5399f48f0381 | 487 | package com.dlsc.workbenchfx.controls;
import com.dlsc.workbenchfx.Workbench;
import com.dlsc.workbenchfx.view.controls.module.Tab;
import javafx.scene.control.Skin;
public class CustomTab extends Tab {
/**
* Constructs a new {@link CustomTab}.
*
* @param workbench which created this {@link CustomTab}
*... | 22.136364 | 58 | 0.718686 |
42d04c15fe82170e2d1ef26a1d19548406f4c230 | 3,806 | package algo.leetcode;
import java.util.ArrayList;
import java.util.List;
public class SumDistancesTree {
class Node{
int father;
List<Integer> childs = new ArrayList<>();
int count;
int sum;
}
public int[] sumOfDistancesInTree(int N, int[][] edges) {
Node[] nodes... | 25.543624 | 67 | 0.386495 |
f71fa6184db95eb1b092f86abdd59e0ea7ceb539 | 2,563 | package mage.cards.p;
import mage.abilities.condition.Condition;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.common.UntapTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTarge... | 38.253731 | 159 | 0.736637 |
eb3652f80da19b3ae7095bf940e7a269ac3a8317 | 3,004 | package me.bscal.game.mapping;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import me.bscal.game.graphics.Render;
import me.bscal.game.sprites.AnimatedSprite;
import me.bscal.game.sprites.Sprite;
import me.bscal.game... | 26.121739 | 97 | 0.634487 |
2cba0b37b707409308daf30e69f580cd867d7eae | 57,697 | package com.rbmhtechnology.vind.solr.backend;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.rbmhtechnology.vind.SearchServerException;
import com.rbmhtechnology.vind.SearchServerProviderLoaderException;
import com.rbmhtechnology.vind.annotations.AnnotationUtil;
import com.rbmhtechnology.vind.api.Do... | 48.040799 | 249 | 0.586824 |
5362a8d88e53dc6742f73abdd5c90dd879407ab3 | 1,510 | package com.example.redis.config;
import com.example.redis.entity.User;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springfr... | 36.829268 | 95 | 0.792715 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.