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 |
|---|---|---|---|---|---|
e7895c129ddedb875df5b99fbfa89d96c69f4b3f | 14,113 | package tracer.easings;
import processing.core.PApplet;
/**
*
* @author James Morrow [jamesmorrowdesign.com]
*
*/
public class Easings {
private static Linear linear = new Linear();
private static QuadEaseIn quadEaseIn;
private static QuadEaseOut quadEaseOut;
private static QuadEaseInOut... | 29.280083 | 94 | 0.508822 |
63bff3f8e0334031b73c901fe46f17cafcb8a978 | 1,240 | package rocks.inspectit.agent.java.proxy;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation has to be placed on subtypes of {@link IProxySubject}, to define the proxy class.
* This wa... | 31 | 100 | 0.741129 |
a99438a68770d4a9e8f2405a39be4518c07a0aed | 744 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.eldermoraes.apptest.beans;
/**
*
* @author eldermoraes
*/
public class TestData {
private String hostAddres... | 21.882353 | 79 | 0.696237 |
7b995b7473a9cca78545674cca93e4f7b96de9ac | 5,822 | package com.eventshop.eventshoplinux.util.datasourceUtil.wrapper;
import java.math.BigDecimal;
import java.math.MathContext;
import java.net.URI;
import java.util.ArrayList;
import java.util.Date;
import java.util.concurrent.LinkedBlockingQueue;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriBuilder;
... | 28.539216 | 74 | 0.683442 |
119ac48fbdb79c786b63accd2a4fa358c315a082 | 5,501 | /*
* Sematext Cloud API
* API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
*
* OpenAPI spec version: v3
*
*
* NOTE: This class is auto generat... | 24.558036 | 221 | 0.652063 |
b242b0d6c0069528a75ff44ef2a1544a2eb7f652 | 1,770 | /*
* Copyright (c) 2018 Absolute Apogee Technologies Ltd. All rights reserved.
*
* =============================================================================
* Revision History:
* Date Author Detail
* ----------- -------------- ------------------------------------------------
* 2018... | 24.246575 | 92 | 0.510734 |
ceafb8d21e1e3e3005cf094bc243778c6a55c5c0 | 954 | package ua.ikonovalov;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* class Converter
* @autor ikonovalov
* @since 11.12.18
*/
public class Converter {
/**
* @param it iterator
* @return
*/
Iterator<Integer> convert(Iterator<Iterator<Integer>> it) {
/**
* Anon... | 22.186047 | 68 | 0.512579 |
63e82b156a7a8b49f1c25f5eccb447d2ed0e503a | 3,345 | package com.whichard.spring.boot.blog.controlller;
import java.util.ArrayList;
import java.util.List;
import com.whichard.spring.boot.blog.domain.User;
import com.whichard.spring.boot.blog.service.AuthorityService;
import com.whichard.spring.boot.blog.service.BadIpLoginService;
import com.whichard.spring.boot.blog.se... | 33.45 | 150 | 0.715396 |
2e2b2eda74fc8c1f478efe44ba702452582d7f9c | 5,493 | package rpc.turbo.benchmark.bytebuf;
import java.nio.ByteBuffer;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.anno... | 24.198238 | 80 | 0.685964 |
05f0464e3bb59fc6fce4dca38cf82e3a18ae90f4 | 380 | package com.stylefeng.guns.film.common.persistence.dao;
import com.stylefeng.guns.film.common.persistence.model.MoocBannerT;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* banner信息表 Mapper 接口
* </p>
*
* @author wyw
* @since 2018-12-27
*/
public inter... | 21.111111 | 68 | 0.760526 |
e0da33e79b68df3695ee331ce1118b6963e35290 | 927 | package jcf.extproc.process;
import java.io.Serializable;
/**
*
* 외부 프로세스 정의
* @author setq
*
*/
public interface ExternalProcess extends Serializable {
/**
* 작업 명. (파일시스템 디렉토리 이름).
* <p>
* 작업 명이 같은 것은 동시 수행이 되지 않음.
* <p>
* 디렉토리 구조로 여러 계층을 둘 수 있지만, 일부 계층을 공유하는 작업들 끼리는 계층 수준이 같아야 한다.
* 예를 들어 a/... | 17.490566 | 94 | 0.632147 |
0d493e4941c1fba9525ca83e5355c425a88b92da | 500 | package ormmp;
import java.io.IOException;
import java.lang.reflect.Field;
public class pruebaORM {
public static void main(String[] args) throws IOException{
try {
Class cls = Class.forName("com.millenniumprogrammers.neocomer.model.Roles");
Field[]campos = cls.getDeclaredFields();
for(Field ... | 19.230769 | 79 | 0.692 |
60b2c0d4da60ec10811e68ba89f53f574707c4d4 | 986 | package com.amplifino.obelix.segments;
import java.util.Optional;
import java.util.stream.Stream;
import java.util.stream.IntStream;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
public class FlatStreamTest {
private int invocationCount;
public boolean tryAdd... | 21.434783 | 69 | 0.678499 |
ac20ce1f934414cd49e863e249204e1b7f7debf2 | 1,770 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicab... | 36.875 | 81 | 0.727119 |
a45644d38f02c914a216afc9f6b9f30380f5359b | 841 | /*
* Copyright (c) 2017. Ryan Davis <Ryandavis84@gmail.com> Swagger Diff java CLI
*/
package com.rdavis.swagger.parsers.impl;
import com.rdavis.swagger.parsers.SwaggerDiffParser;
import com.rdavis.swagger.rules.BrokenRule;
import com.rdavis.swagger.rules.Rule;
import v2.io.swagger.models.Swagger;
import java.util.... | 30.035714 | 114 | 0.737218 |
39e299e06ff2785582b1ae8209ecb5ced4febb9c | 9,530 | /*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.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 a... | 37.372549 | 206 | 0.666212 |
7d68682a1384f8cbaf1c118957e7dfd61ed62896 | 4,597 | /*
Copyright (c) 2019 LinkedIn Corp.
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.56391 | 114 | 0.746574 |
a6501ce8e5bf5b5edd369738a4acf4b0f11acf18 | 2,187 | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33.646154 | 98 | 0.763146 |
e8468a5be013a0f17bd8b13fd6cba6fdee4e8c7e | 521 | package apidemo3.model;
import java.util.Date;
public class UserValidateDo {
/** */
public long user_id;
/** 1 认证中 2 认证完成 */
public int id_status;
/** */
public int base_status;
/** */
public int sup_status;
/** */
public int bank_status;
/** 闪云验证信息 */
public Stri... | 17.366667 | 32 | 0.570058 |
0bb81d4659a2d9ff036dcef61e0adac7c5f06cee | 957 | package net.mh.kafkabrowser.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by markus on 09.04.17.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class BrowserConsumerRequest {
private String keyDeserializer;
private String valueDeserializer;
public BrowserCon... | 24.538462 | 85 | 0.722048 |
f28f80fa48db630cb9fb023de176cf578f96f2b0 | 260 | package com.ssafy.ssafience.model.notice;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@ToString
@Setter
@Getter
public class NoticeWriteRequest {
private String memberId;
private String noticeTitle;
private String noticeContent;
}
| 17.333333 | 41 | 0.811538 |
35027d0cc39c38d9f25a4b2bd8673ec605c8d23f | 3,574 | package ru.job4j.tracker;
import java.util.Arrays;
/**
* The Tracker collects tickets.
* The singleton version. .Private static final class. Lazy loading.
* @author RomanM
* @version 1.0 May 23, 2019
*/
public class TrackerSingleton3 {
private final Item[] items = new Item[100];
private int position = 0... | 28.141732 | 98 | 0.552602 |
cff7adb4474fcccd12a887c3aa5e4e08ef94a271 | 293 | package com.mikuac.bot.bean.saucenao;
import lombok.Data;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author Zero
* @date 2020/12/3 13:32
*/
@Data
@Component
public class SauceNaoBean {
private Header header;
private List<Results> results;
} | 14.65 | 48 | 0.726962 |
085802b91c8470e6083a24c91bbd1edfec658da6 | 8,362 | package com.dropbox.core.examples.android.internal;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import androidx.appcompat.widget.Toolbar;
import android.util.Base64;
import android.view.View;
import android.widget.... | 41.192118 | 111 | 0.65104 |
17abf355266365f9da2c7c2623127354b48920df | 26,005 | package com.bskms.bean;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class PayExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public PayExample() {
oredCriteria = new ArrayList<Cri... | 32.065351 | 103 | 0.550817 |
61ccc961c2d1346f041a7f767db0f571f7ccd013 | 2,398 | /**
*/
package org.sheepy.lily.vulkan.model.process.graphic;
import org.joml.Vector4fc;
import org.sheepy.lily.vulkan.model.VulkanEngine;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Image Attachment</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are support... | 32.849315 | 142 | 0.67181 |
a0b11daf283ae77b5bf406d7439b94078313f5f7 | 2,691 | package com.eyelinecom.whoisd.sads2.telegram.interceptors;
import com.eyelinecom.whoisd.sads2.RequestDispatcher;
import com.eyelinecom.whoisd.sads2.common.InitUtils;
import com.eyelinecom.whoisd.sads2.common.Initable;
import com.eyelinecom.whoisd.sads2.common.SADSInitUtils;
import com.eyelinecom.whoisd.sads2.common.SA... | 35.407895 | 118 | 0.722408 |
55fe6b2599b8946dc0f7b43f8041f78d2fba662b | 5,968 | /*
package com.apsidepoei.projetpoeitest.restTest;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.... | 27.502304 | 124 | 0.745979 |
50cc7545adab6514261ab6dbefa5d060fe396be7 | 608 | package org.hl7.davinci.atr.server.service;
import java.util.Date;
import java.util.List;
import org.hl7.davinci.atr.server.model.DafInsurancePlan;
import org.hl7.fhir.r4.model.InsurancePlan;
public interface InsurancePlanService {
InsurancePlan getInsurancePlanById(int id);
InsurancePlan getInsurancePlanByVersio... | 30.4 | 94 | 0.835526 |
4bb9ad79b28ebb4b2bf14e87b393967359bbd6f2 | 943 | package com.quorum.tessera.junixsocket.adapter;
import org.junit.Test;
import java.io.IOException;
import java.net.ServerSocket;
import java.nio.file.Files;
import java.nio.file.Path;
import static org.assertj.core.api.Assertions.assertThat;
public class DefaultUnixSocketFactoryTest {
private final DefaultUnix... | 24.179487 | 86 | 0.741251 |
734b611fbab8b2c74cbec47192bd3512d1281572 | 4,727 | /*
* Copyright 2013 Jon Iles
*
* 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.171569 | 102 | 0.577322 |
52ac82077cfb84c16fecd536202e72ec91618ad0 | 180 | package it.smartcommunitylab.mobile_attendance.model;
import java.util.Date;
public interface Rating {
String getAccount();
Date getTimestamp();
int getValue();
}
| 13.846154 | 53 | 0.722222 |
771e938d09ecbbc4ee709118c032529f1ea8cdb3 | 20,370 | package io.muserver.rest;
import io.muserver.*;
import io.netty.handler.codec.http.HttpHeaderNames;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.core.Cookie;
import javax.ws.rs.core.*;
import javax.ws.rs.ext.RuntimeDelegate;
import javax.ws.rs.e... | 30.177778 | 163 | 0.593029 |
b814ba050dcad425c7d4ee44d7b1c967133eb049 | 1,682 | package ru.job4j.tdd;
import org.junit.Test;
import java.util.Map;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
/**
* @author Alexander Abramov (alllexe@mail.ru)
* @version 1
* @since 03.07.2019
*/
public class SimpleGeneratorTest {
@Test
public void whenTwoKeysShouldRi... | 33.64 | 81 | 0.642093 |
9481db292cbb0e25db99f135297596f5d172c675 | 7,620 | package com.o3dr.services.android.lib.drone.companion.solo.tlv;
import com.MAVLink.enums.GOPRO_COMMAND;
import org.junit.Test;
import java.nio.ByteBuffer;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
impo... | 34.479638 | 125 | 0.652756 |
1ef934d91fdf95b29ec2a97e7edb9faac95431a8 | 11,113 | package chariot;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Supplier;
import java.util.prefs.Preferences;
import chariot.api.*;
import chariot.api.Builders.*;
import chariot.internal.Config;
/**
* Provides access to the <a href="https://lichess.org/api">Lichess API</a>.... | 29.015666 | 163 | 0.602987 |
9df63645b583f1857923fd60663f8225c3c3364d | 2,191 | package com.example.DemoGraphQL.service;
import com.example.DemoGraphQL.model.Person;
import com.example.DemoGraphQL.model.Skill;
import com.example.DemoGraphQL.repository.PersonRepository;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
imp... | 33.19697 | 76 | 0.635783 |
1d465662ac66283a9d165137167f249a49df0e1c | 1,010 | package epicara.UI;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
/**
* Created by nishant on 16-05-09.
*/
public class CardImageView extends ImageView {
private float mAspectRatio;
public CardImageView(Context context) {
super(contex... | 27.297297 | 81 | 0.631683 |
6dae12f01393f6f7f47cb631d4e837af0a544a78 | 720 | package com.jesus.lunape.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Perfiles")
public class Perfil {
@Id
@GeneratedValue(strategy=GenerationT... | 19.459459 | 58 | 0.683333 |
8378ad19f541f16abb4dd8b8a57730a0dd27aa7f | 859 | package org.togglz.core.spi;
import java.util.Collection;
import org.togglz.core.manager.TogglzConfig;
/**
*
* This SPI is used by Tooglz to lookup beans that are managed by bean containers like CDI or Spring. Currently Togglz uses this
* feature only for finding the {@link TogglzConfig} implementation.
*
* ... | 29.62069 | 128 | 0.701979 |
610c71f9b9e6cb32cdd84778b6e8e4d611b2756e | 633 | package org.arun.cucumber.sharingstate.entity;
import java.time.LocalDate;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import lombo... | 22.607143 | 61 | 0.794629 |
a112b8b3dc5524c15eb73d4b89cf2c14ba4cfdeb | 923 | package deltix.qsrv.hf.pub.codec.intp;
import deltix.qsrv.hf.pub.codec.*;
import deltix.qsrv.hf.pub.md.IntegerDataType;
import deltix.util.text.CharSequenceParser;
/**
*
*/
class IntTimeIntervalFieldEncoder extends IntegerFieldEncoder {
public IntTimeIntervalFieldEncoder (NonStaticFieldLayout f) {
super... | 26.371429 | 82 | 0.665222 |
a4a03c9ff6096079bbc73519c931ece266415251 | 4,356 | package atas.model.statistics;
import java.util.HashSet;
import java.util.Set;
import atas.model.session.Session;
/**
* Represents a set of statistical data of students in a session.
*/
public class SessionStatistics {
private final Set<Statistics> stats;
/**
* A constructor which initializes with ... | 30.041379 | 102 | 0.614784 |
620b855b6380adb6fb75047c79d3aba92146fa16 | 378 | package com.pleiterson.ecommerce.checkoutpaymentecommerce;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CheckoutPaymentEcommerceApplication {
public static void main(String[] args) {
SpringApplication.ru... | 27 | 73 | 0.849206 |
6b2190a4cf115c9358a95ac4d09e001e5d29aa81 | 889 | package in.srain.cube.views.banner;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.viewpager.widget.PagerAdapter;
public abstract class BannerAdapter extends PagerAdapter {
@Override
public Object instantiateItem(ViewGroup container, int position... | 26.147059 | 83 | 0.715411 |
b2960d539ae08fe5562da12b19ed89047050cc1b | 2,035 | package krasa.grepconsole.filter;
import com.intellij.execution.filters.InputFilter;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Pair;
import krasa.grepconsole.filter.support.FilterState;
import krasa.grepconsole.filter.support.... | 27.133333 | 86 | 0.759214 |
97a99103b94e6d5eec43860762a25d143562ff6d | 957 | package org.jdbcdslog;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Properties;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class DriverLoggingProxyTest extends TestCase {
public DriverLoggingProxyTest(String name) {
... | 29.90625 | 110 | 0.730408 |
c6feda92370fe092689e09c66416231813fb4f0c | 5,062 | /*
* Copyright 2019 Arcus Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 31.440994 | 112 | 0.696563 |
4743c0c33c2892cfc9d73a01edbfad5eeef22082 | 816 | package infrastructure.dao;
import java.sql.Connection;
import core.abstractions.DAOFactoryMethod;
import core.interfaces.dao.IDietaDAO;
import core.interfaces.dao.IPorcaoDeAlimentoDAO;
import core.interfaces.dao.IRegistroDeAtividadeDAO;
import core.interfaces.dao.IUsuarioDAO;
public class DAOFactory extends DAOFact... | 24.727273 | 73 | 0.811275 |
6c42b9c4bf2e2d55ccd66be3d4a83050c4f70c0a | 1,239 | package com.guagua.qiqi.gifteffect.animation.algorithm;
/**
* Created by yujintao on 15/7/4.
*/
public class RandomRangeAWhile extends RandomRange {
private float record;
private float last;
private float curValue;
private float lastTime;
private boolean refresh;
/**
* 妙为单位
* @para... | 21.736842 | 73 | 0.54883 |
2bd3fda2a384183c2539e8179fc7476f22a1c028 | 4,097 | /*
This program is to find the Path from a Node of the Binary Tree to Root of that Binary Tree
1. We are given a partially written BinaryTree class.
2. We are given an element.
3. We are required to complete the body of find and nodeToRoot function. The functions are expected to
3.1. find -> return true... | 24.532934 | 105 | 0.575055 |
e7cf8c911dacf48046e03376dccbf953807fd76b | 390 | package com.luna.common.anno;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 禁止重复提交
*
* @author luna_mac
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Not... | 20.526316 | 44 | 0.751282 |
5364d3765c46327319ef9c7ae56b18152bea25f9 | 2,432 | /*
* Copyright 2017, Flávio Keglevich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 33.777778 | 155 | 0.715872 |
82658c6ec22680e9c4751da012d1d65cfedf9c88 | 632 |
package com.houarizegai.quizappfx.dao.vo;
public class QuestionVo {
private String question;
private String[] response;
private String solution;
public String getQuestion() {
return question;
}
public void setQuestion(String question) {
this.question = question;
}
p... | 18.588235 | 48 | 0.625 |
6c6f6c82ab036305804be8321b05b737c3f98c5b | 7,850 | package org.crazycake.formSqlBuilder;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.persistence.Table;
import org.craz... | 24.153846 | 217 | 0.683694 |
68798fd6ce4cf94b039327cc2adc4e0bd56a5af3 | 858 | package com.hribol.bromium.common.browsers;
import com.google.common.collect.ImmutableMap;
import com.hribol.bromium.replay.settings.DriverServiceSupplier;
import org.openqa.selenium.remote.service.DriverService;
import java.io.File;
import java.io.IOException;
/**
* A base class for providing driver services for d... | 34.32 | 113 | 0.744755 |
ac9488e1ed8975c1669becbcff710f85ea667379 | 1,800 | /*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... | 30 | 87 | 0.683333 |
017094b0bda97796dc0f1465875119aa69550cef | 8,503 | package com.viktor.e_commerce;
import android.Manifest;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.sup... | 40.490476 | 179 | 0.580736 |
4e3cedf6c615125385411b630ed6e65d4f3b8344 | 1,100 | /*
* 文件名称:CategoryServiceImpl.java
* 系统名称:[系统名称]
* 模块名称:[模块名称]
* 软件版权:Copyright (c) 2011-2018, liming20110711@163.com All Rights Reserved.
* 功能说明:[请在此处输入功能说明]
* 开发人员:Rushing0711
* 创建日期:20180726 07:39
* 修改记录:
* <Version> <DateSerial> <Author> <Description>
* 1.0.0 20180726-01 ... | 33.333333 | 87 | 0.697273 |
486cf4b2a4e6400b7d0a20c2262197ac0fb856fa | 207 | package tk.jcseahawks.ocja.day_twenty_one.chapterthree.exercise;
class One {
//Create a float number type of any value, and assign it to a short using casting
//
float f = 234.56F;
short s = (short)f;
}
| 20.7 | 81 | 0.7343 |
c7db2e62fd939d6fb5f757e141097d882553405b | 1,803 | package es.uned.lsi.eped.DataStructures;
/* Representa un multiconjunto, que es un contenedor que *
* permite almacenar elementos de los que puede haber múltiples *
* instancias dentro del multiconjunto. */
public interface MultiSetIF<E> extends ContainerIF<E> {
/* Añade varias insta... | 43.97561 | 66 | 0.557959 |
840a707ea51cabe2620bb7c642d830239d074645 | 8,831 | package com.stx.xhb.enjoylife.ui.activity;
import android.Manifest;
import android.app.WallpaperManager;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.NonNull;
import android.sup... | 39.075221 | 177 | 0.581927 |
6fe154b0367468823b35808870ca47a4046a729b | 2,024 | package com.goebuy.biz.event;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.goebu... | 18.234234 | 62 | 0.731225 |
9d52b32855793e2d766e6a8fb01cb0972b079a90 | 991 | /**
* @author demo
* 二分查找算法实践
*/
public class BinarySearch {
public static void main(String[] args) {
System.out.println( binarySearch());
int a = 5,b=6,c=2;
int z = (a*b-c)/a;
System.out.println(z);
}
private static String binarySearch() {
int numbers[] = {1,2,3... | 24.775 | 62 | 0.434914 |
b8c3417242a140e8d1c3fb244e73d1de6ba1c734 | 1,711 | package com.icaroabreu.realmmigration.view;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.icaroabreu.realmmigration.R;
import com.i... | 24.797101 | 104 | 0.671537 |
c6a4211d4217f1ad254c97faab7e111cdaa8ce70 | 198 | package com.ggj.java.java.firstdemo.testkafakaperformance.testone;
/**
* @author:gaoguangjin
* @date 2016/7/4 17:02
*/
public class TopicOne {
public static String TOPIC="performance12";
}
| 19.8 | 66 | 0.727273 |
cdeea50499c62c7d4f3e06b5eae92f2381e41e51 | 4,314 | package cn.com.allunion.common.handler;
import org.springframework.core.Conventions;
import org.springframework.util.Assert;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 请求封装对象
* @author yang.jie
* @email yang.jie@all-union.com.cn
* @date 2016/5/12.
* @copyright http:... | 31.26087 | 97 | 0.631664 |
088a2ce2d492990f7559ef1c109b703461ce3d74 | 1,636 | package io.github.morichan.fescue.feature.value.expression;
import io.github.morichan.fescue.feature.value.expression.symbol.Symbol;
/**
* <p> 2項式クラス </p>
*
* <p>
* 使い方を次に示します。
* </p>
*
* <pre>
* {@code
* Binomial binomial = new Binomial("*",
* new OneIdentifier(1),
*... | 27.728814 | 105 | 0.573961 |
6dc2c711a072c2ffa34c43e140ba5c4d1fbff4a3 | 1,753 | /*******************************************************************************
* Copyright 2016-2017 Dell 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/... | 29.216667 | 100 | 0.658871 |
4258ef642963fc5670d96538c4b6eac697d12d8a | 1,639 | package gq.netin.auth.version.rewrite;
import java.nio.charset.Charset;
import java.util.UUID;
import com.mojang.authlib.GameProfile;
import gq.netin.auth.util.Messages;
import gq.netin.auth.util.Reflection;
import gq.netin.auth.util.Util;
import net.minecraft.server.v1_8_R1.EntityPlayer;
import net.minecraft.server... | 29.267857 | 109 | 0.758389 |
93be2bb3579af64583ab7aeffa9d6049ba90c47d | 6,104 | package uk.ac.liv.mzidlib.util;
/**
* This class contains some utility methods related to the Controlled Vocabulary
* (CV) at
*
* http://psidev.cvs.sourceforge.net/viewvc/\*checkout*\/psidev/psi/psi-ms/mzML/controlledVocabulary/psi-ms.obo
*
* @author Pieter
*
*/
//CORRECT URL : see http://psidev.cvs.sourceforg... | 44.882353 | 143 | 0.639089 |
e36e62ee6b031a25673ed1b7b1926ec93389cfa4 | 6,300 | package com.capitalone.dashboard.dao;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.sprin... | 31.979695 | 103 | 0.781905 |
2dd6745d50ebe23ac1b16c57d05d1646c938748c | 2,254 | package com.example.android.bakingapp.View;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.android.... | 25.908046 | 100 | 0.700976 |
8fcc2a99b941e30e267afed620b31a98bb1e8045 | 1,076 | package cn.asany.his.demo.graphql;
import cn.asany.his.demo.bean.User;
import cn.asany.his.demo.graphql.inputs.UserFilter;
import cn.asany.his.demo.graphql.types.UserConnection;
import cn.asany.his.demo.service.UserService;
import graphql.kickstart.tools.GraphQLQueryResolver;
import org.jfantasy.framework.dao.OrderBy;... | 35.866667 | 94 | 0.795539 |
40a7fe10eca74c01a1765fefdde4f326e630c7b0 | 454 | package com.kodilla.hibernate.task.dao;
import com.kodilla.hibernate.task.TaskFinancialDetails;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
import java.util.List;
@Transactional
@Repository
public interface TaskF... | 30.266667 | 96 | 0.848018 |
c15223441545173823a00c8e174a044bbb7ccc49 | 7,985 | package org.rcsb.cif.api.generated;
import org.rcsb.cif.model.*;
import javax.annotation.Generated;
import java.util.Map;
/**
* Data items in the PDBX_VALIDATE_SYMM_CONTACT category list the
* atoms within the entry that are in close contact with regard
* the distances expected from either covalent bonding or clo... | 34.270386 | 100 | 0.649343 |
4c0affe1d51a9355e03bcb28661eb98b6c28e06f | 2,281 | package fr.redstonneur1256.redutilities.graphics.swing.component.abstractComp;
import fr.redstonneur1256.redutilities.Validate;
import javax.swing.*;
import java.awt.*;
import java.util.Objects;
public class AbstractBar extends JComponent {
private int value;
private int maximum;
private String string;
... | 21.72381 | 93 | 0.611135 |
062eb75c58d07b85e408cda00cfd98b2bc47714c | 1,263 | package com.avseredyuk.configuration;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.co... | 31.575 | 60 | 0.70863 |
0d825a5562a555d445895fc8811d2e80b1c1b389 | 779 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package exemplosarray;
/**
*
* @author ederson.fernandes
*/
public class ExemploArray01 {
/**
* @param args the command l... | 22.911765 | 79 | 0.539153 |
8676a3533a0f7ed85f5c74bcd6f325e9dd2d8f66 | 1,335 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.sdk.extensions.trace.testbed.concurrentcommonrequesthandler;
import io.opentelemetry.sdk.extensions.trace.testbed.TestUtils;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;... | 28.404255 | 85 | 0.617228 |
3669a1788a1cc84ae9167abea723e8f0053fbf51 | 5,765 | package com.interview.codingblocks.week9DynamicProgrammming;
import java.util.Arrays;
public class ZeroOrOneKnapsack {
//Given a bag of 10 kg and items are:
//weight: 7 4 4
//price : 15 8 8
//If we use greedy, it picks price 15, and bag fills with weight:7
//Now, if we use dp, it picks optimal... | 35.368098 | 117 | 0.557329 |
57a1b31dfbeb0c38fed37becb6d351f931fb52e4 | 1,261 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.engine.query.spi;
import java.io.Serializable;
import java.u... | 26.829787 | 94 | 0.749405 |
369e3dfc6e6472f3b28ab6eef941a17d5b5a68d2 | 3,238 | /*
* Copyright (C) 2018 Janice Wildrick
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 25.698413 | 175 | 0.679432 |
034d6bd4c2cd86209153cc7ddae07fd814e7eb90 | 137 | /** Provides classes for mutating existing {@code Node} instances to create (evolve) new instances. */
package org.oakgp.evolve.mutate;
| 34.25 | 102 | 0.759124 |
cb664fe7b6a09403b9ba89bbfa796c5c2c2543dd | 1,607 | package org.jfw.util.execut;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import org.jfw.util.ConstData;
public class ServiceBean implements Service {
private Object bean;
private String startupMethodName;
private String shutdownMethodName;... | 27.706897 | 94 | 0.755445 |
e3223d6c1483ecca8d47b86b499b06cb6412e61c | 64,079 | // ----------------------------------------------------------------------------
// Copyright 2007-2017, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | 32.710056 | 126 | 0.541207 |
378a085779f3bb15fdd1d774a6a68a1af9221a34 | 2,019 | package leetcode.medium;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
public class P_220 {
public boolean containsNearbyAlmostDuplicateTS(int[] nums, int k, int t) {
if (t < 0) { return false; }
final TreeSet<Integer> ts... | 31.546875 | 89 | 0.463101 |
bc71517f216b8dc358c2d0ae3ad6a719e9a3ea40 | 3,969 | package uk.gov.hmcts.reform.iacaseapi.component.testutils.wiremock;
import static uk.gov.hmcts.reform.iacaseapi.component.testutils.fixtures.AsylumCaseForTest.anAsylumCase;
import static uk.gov.hmcts.reform.iacaseapi.component.testutils.fixtures.PreSubmitCallbackResponseForTest.PreSubmitCallbackResponseForTestBuilder.... | 38.911765 | 171 | 0.736458 |
763bdd736e8dd3a9c93042b1cc51f6dcceb364b5 | 2,188 | /**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | 36.466667 | 100 | 0.765082 |
04e96e7b37ce1a7e2bda67ebe02d7bb99784950e | 1,573 | package com.noah.solutions.system.repository;
import com.noah.solutions.system.entity.OrderRecord;
import com.noah.solutions.system.view.UserOrderNewRecordView;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.... | 56.178571 | 265 | 0.800381 |
e323ea039ee726634d05691f43f67199324fc93a | 17,320 | package com.kiven.kutils.logHelper;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import androidx.annotation.NonNull;
import androidx.appcompat.ap... | 41.336516 | 143 | 0.480658 |
8ad3070266122c85185f313630298bca789ec4ce | 1,706 | package aungpyaephyo.net.phandeeyarlivecoding.views;
import android.content.Context;
import android.support.v7.widget.CardView;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import aungpyaephyo.net.phandeeyarlivecoding.R;
import au... | 28.915254 | 81 | 0.69871 |
598daec6583b83ef6a4ece8ec9c99ade435264d8 | 1,883 | /*
* Copyright 2019 (c) Tim Langhammer
*
* 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... | 23.835443 | 93 | 0.651089 |
886853a7140b2792ebdffa355fdc495f57e3a034 | 163 | package com.example.c;
import com.example.a.A;
import com.example.b.B;
public class C extends B {
A a;
public static void badUseOfA() {
A.onlyInB();
}
}
| 10.866667 | 33 | 0.668712 |
3333cfde95fe329d4c712c4080f16be4dd932f3c | 301 | package p;
public class Annotation1_in {
public void foo() {
Cell1 c = Cell1.createCell1();
}
}
@interface Preliminary {
}
class Cell1 {
public static Cell1 createCell1() {
return new Cell1();
}
@Preliminary
private Cell1() /*[*/
/*]*/
{
}
}
| 12.04 | 39 | 0.541528 |
e1df0ecd7b8c63a94e9fae0e2fe3f6e7c393dbd0 | 6,223 | package edu.umd.lib.ole.profile;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax... | 33.637838 | 93 | 0.708661 |
093258f4e7dab5ff9fc78cb05edd7eaa599ee7ba | 937 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.client4j.permissions.groups;
import com.client4j.permissions.PermissionPattern;
import com.client4j.permissions.Permission... | 42.590909 | 316 | 0.766275 |
83c54e100696590eb2c7bc362da4a0d424a3d070 | 3,250 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.10
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... | 25.390625 | 91 | 0.662462 |
e309e0b3ebb015bb07c54e00bd265b7004b824d2 | 497 | package com.acnt.bugfree.activity.base;
import android.support.v7.app.AppCompatActivity;
import com.acnt.bugfree.util.EventBusUtil;
/**
* 应用的基础类,封装一些基础的方法,方便子类的调用
* Created by NiuKY on 9/30.
*/
public abstract class BaseActivity extends AppCompatActivity {
@Override
protected void onResume() {
su... | 19.88 | 62 | 0.682093 |
cc181f319843a4cba0ca55fc0f5da638e0538515 | 8,993 | package azathoth.util.prospecting.registry;
import azathoth.util.prospecting.Prospecting;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;
import net.minecraft.block.Block;
i... | 32.701818 | 195 | 0.662404 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.