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 |
|---|---|---|---|---|---|
40e381ec33cf00568890e95ef348f6a70944e3b2 | 1,575 | /*
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... | 35 | 106 | 0.737143 |
20e881af2df34ae9005ce90bb558017479cba106 | 2,701 | package org.egov.tl.entity;
import java.util.Date;
import javax.persistence.CascadeType;
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.per... | 23.692982 | 152 | 0.755276 |
c8b4ef8160dc7e563909c044cf80f56a4d08f1ab | 8,855 | package com.elepy.utils;
import com.elepy.annotations.Identifier;
import com.elepy.annotations.PrettyName;
import com.elepy.annotations.Unique;
import com.elepy.exceptions.ElepyConfigException;
import com.elepy.exceptions.ElepyException;
import com.elepy.http.*;
import com.fasterxml.jackson.annotation.JsonProperty;
im... | 36.895833 | 142 | 0.615359 |
68a16935c90e75753893505c7afe3a8a5b0544db | 101 | package org.firstinspires.ftc.teamcode;
public enum NavigationTypesEnum {
VUFORIA,
SENSORS
} | 16.833333 | 39 | 0.762376 |
058b80091f9acda375d7214fac81afe814d37f33 | 2,748 | package com.ilab.yougetmobiledl.base.event;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.Observer;
import... | 28.040816 | 104 | 0.618996 |
c6f59a859e5774729a0ba41799a6cca4aa8f0035 | 2,333 | //$Id$
package sample;
import java.io.*;
import java.net.URL;
import org.jsonschema2pojo.DefaultGenerationConfig;
import org.jsonschema2pojo.GenerationConfig;
import org.jsonschema2pojo.Jackson2Annotator;
import org.jsonschema2pojo.SchemaGenerator;
import org.jsonschema2pojo.SchemaMapper;
import org.jsonschema2pojo.S... | 32.859155 | 140 | 0.666952 |
ce10c5a8b478e76da0c49613e247436f60800a2b | 366 | package io.agora.meeting.ui.http.body.req;
import io.agora.meeting.core.annotaion.Keep;
/**
* Description:
*
*
* @since 2/16/21
*/
@Keep
public final class RoomUpdateReq {
public String userId;
public String password;
public RoomUpdateReq(String userId, String password) {
this.userId = user... | 16.636364 | 58 | 0.666667 |
482b1b7215f761cd154b6af733f301e46990e526 | 3,570 | package cn.poile.blog.service;
import cn.poile.blog.controller.model.request.ArticleRequest;
import cn.poile.blog.entity.Article;
import cn.poile.blog.vo.ArticleArchivesVo;
import cn.poile.blog.vo.ArticleCategoryStatisticsVo;
import cn.poile.blog.vo.ArticleTagStatisticsVo;
import cn.poile.blog.vo.ArticleVo;
import com... | 19.833333 | 152 | 0.60112 |
c50ef8000865013660e1278c510bc61553940a73 | 3,373 | import java.util.ArrayList;
import java.util.List;
import org.sql2o.*;
public class Client {
private String clientFirstName;
private String clientLastName;
private String clientPhoneNo;
private String clientEmail;
private int id;
private int stylistId;
public Client(String clientFirstName... | 36.268817 | 205 | 0.60332 |
f0bceaa97f094edd8e6ddb048fc71b9c0308a1ac | 1,830 | package yte.intern.spring.application.usecases.manageevent.controller;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import yte.intern.spring.application.usecases.common.MessageResponse;
import yte.intern.spring.application.usecases.manageevent.dto.EventDTO;
import yte.inter... | 33.888889 | 103 | 0.772131 |
d5d536cf90d96070e2531833cbf920a88c386df2 | 6,426 | package ru.spbhse.smirnov.database;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.testng.collections.Lists;
import java.sql.SQLException;
import java.util.Arrays;
import static org.junit.jupiter.api.Assertions.*;
class PhoneDatabaseTest {
private PhoneDatabase testDatab... | 38.945455 | 108 | 0.659041 |
a312b41278c9f659d4a0b558719005cd12be2fa8 | 935 | // Passes the Nullness Checker but fails with a ClassCastException!
import org.checkerframework.checker.nullness.qual.Nullable;
public class Figure3NC {
static class Type<A> {
class Constraint<B extends A> extends Type<B> {}
<B> @Nullable Constraint<? super B> bad() {
return null;
... | 22.804878 | 67 | 0.534759 |
57edebdd57ab0e9aed4d59e84a22279cfa317f74 | 11,154 | package com.king.android.details.view;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import andr... | 44.616 | 179 | 0.641833 |
6835065156103c41642590d9e596c8644977b1b6 | 756 | package com.fun.uncle.springboot2020.dto.base;
/**
* @Description: 随机配置
* @Author: Summer
* @DateTime: 2020/10/13 10:20 上午
* @Version: 0.0.1-SNAPSHOT
*/
public class RandomConfigDTO {
/**
* id
*/
private Long id;
/**
* 库存:-1代表无库存限制
*/
private Integer stock;
/**
* 权重... | 14.823529 | 46 | 0.539683 |
ff2e456a8dce2db8d48635e0bd471b2b53d8dbc4 | 4,425 | /*
* The MIT License
*
* Copyright 2020 PolySwarm PTE. LTD.
*
* 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, co... | 44.25 | 121 | 0.697627 |
32df7cd36b14c672c2b6371d6c8e13abcca471c9 | 974 | import java.util.Scanner;
public class Eligibility {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int num = Integer.parseInt(in.nextLine());
while (num > 0) {
String[] line = in.nextLine().split("\\s");
String name = line[0];
... | 33.586207 | 73 | 0.477413 |
f3fb8e21b630815447f62af11119d871ec7017fb | 1,508 | /*
* Copyright information and license terms for this software can be
* found in the file LICENSE that is included with the distribution
*/
package org.epics.pvdata.misc;
/**
* The scan priorities for a record instance that is event or periodically scanned.
* @author mrk
*
*/
public enum ThreadPriority {
... | 20.378378 | 83 | 0.579576 |
6bbc2fe5574cdfb787d988512c3071eed6e85e28 | 8,820 | package ca.cgjennings.apps.arkham.deck.item;
import ca.cgjennings.apps.arkham.StrangeEons;
import ca.cgjennings.apps.arkham.commands.Commands;
import ca.cgjennings.apps.arkham.component.AbstractGameComponent;
import ca.cgjennings.apps.arkham.component.GameComponent;
import ca.cgjennings.apps.arkham.deck.DeckDeserializ... | 31.3879 | 107 | 0.641497 |
7631c00bda1d1d1a8c35817d38ff0e5d92cd85e4 | 1,189 | package combinatorial;
import handler.ConstraintHandler;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* A basic data structure of CT test suite.
*/
public class TestSuite {
public List<int[]> suite;
public TestSuite() {
this.suite = new ArrayList<>();
}
public Test... | 20.152542 | 77 | 0.592094 |
a52b41b3014adeea4f26f8ab97459540c424c21f | 365 | package asciiPanel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ConfigForSpring {
@Bean
public AsciiFont getAsciiFont(){
return AsciiFont.CP437_8x8;
}
@Bean
public AsciiPanel getAsciiPanel(){... | 16.590909 | 60 | 0.717808 |
0d3a89f147018f7b4439d90b5d199d917136931e | 621 | package com.github.leleact.jtest.mybatis.db2.mapper;
import com.github.leleact.jtest.mybatis.db2.dto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface UserMapper {
int deleteByPrimaryKey(@Param("host") String host, @Param("user") String user);
... | 27 | 84 | 0.758454 |
1f4e265c3114a1ad1d19d38f3c95faf68891922a | 4,226 | /*
* Copyright 2007 skynamics AG
*
* 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 applic... | 22.125654 | 82 | 0.678893 |
91b8e6ef37dd494eda74d55e42edda417b7c4291 | 3,406 | package com.jhbim.bimvr.dao.entity.pojo;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.jhbim.bimvr.helper.Lo... | 25.044118 | 90 | 0.644451 |
5d9641e56167babdf07d4074ed17a61da97dc918 | 1,354 | package com.example.equals;
public class Person {
private String name;
private int age;
public Person(String name, int age) {
this.name = name;
this.age = age;
}
public Person() {
this.name = "Unknown";
this.age = 0;
}
public String getName() {
return name;
}
public void setName(String name) {
... | 19.342857 | 71 | 0.646972 |
1ca264e23fa8c4c610969e20919cd3045fc1a401 | 1,156 | package ru.ifmo.ailab.drools.tester;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Enumeration;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import org.slf4j.Logger;
import org... | 29.641026 | 75 | 0.697232 |
b071036aafdabb8269612698481279efd6344282 | 2,448 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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... | 33.081081 | 83 | 0.747549 |
85da5920d4a687be7608e9cf610d6ffb770283d8 | 5,959 | /**
* Copyright 2011 Mark ter Maat, Human Media Interaction, University of Twente.
* All rights reserved. This program is distributed under the BSD License.
*/
package hmi.flipper.behaviourselection.template.effects;
import hmi.flipper.behaviourselection.TemplateController;
import hmi.flipper.behaviourselection.te... | 40.263514 | 140 | 0.633831 |
caa9f5e4de7696962421fe1598f236d558b34f3b | 6,224 | package org.flixel.examples.box2d;
import org.flixel.FlxG;
import org.flixel.examples.box2d.objects.Ghost;
import org.flixel.plugin.flxbox2d.collision.shapes.B2FlxBox;
import org.flixel.plugin.flxbox2d.collision.shapes.B2FlxShape;
import org.flixel.plugin.flxbox2d.dynamics.B2FlxContactEvent;
import org.flixel.p... | 33.462366 | 142 | 0.686697 |
9ec8d42ab29f46e9c84a93f722074d5d016882bf | 541 | package com.apwglobal.nice.conv;
import com.apwglobal.nice.domain.Journal;
import pl.allegro.webapi.SiteJournal;
public class JournalConv {
public static Journal convert(SiteJournal sj) {
return new Journal.Builder()
.rowId(sj.getRowId())
.itemId(sj.getItemId())
... | 27.05 | 51 | 0.589649 |
8d6b6b179765c86066d1cb8171ed2645a97cd8c5 | 1,815 | package com.ejserver.apps.ej.service.Impl;
import java.util.List;
import javax.annotation.Resource;
import com.ejserver.apps.ej.bean.Customer;
import com.ejserver.apps.ej.bean.CustomerExample;
import com.ejserver.apps.ej.dao.CustomerMapper;
import com.ejserver.apps.ej.service.ICustomerService;
import org.springfram... | 24.527027 | 69 | 0.684848 |
ed3b61978ec709471fe79398e5a729d2489c9877 | 1,065 | package com.khopa.oneStory.core.controllers.animation.transition.scenes;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.khopa.oneStory.core.AGC;
import com.khopa.oneStory.core.views.scene.Scene;
public class SlideOutSlideInTransition extends SceneTransitionAction {
public static final int LEFT ... | 39.444444 | 93 | 0.686385 |
a7101322fa3e221b5b960c26112c44224a375213 | 296 | package fp.spotify.pojo;
import com.fasterxml.jackson.annotation.JsonProperty;
public enum TipoAlbum {
/* Para poder anotar los valores del enumerado, es necesario Jackson 2.7.2 */
@JsonProperty("album")
ALBUM,
@JsonProperty("single")
SINGLE,
@JsonProperty("compilation")
COMPILATION;
}
| 21.142857 | 78 | 0.756757 |
a6fa664c3d1f0ee6d90bcf720106c8973a405a14 | 309 | package com.concurnas.compiler.ast;
import com.concurnas.compiler.ast.interfaces.Expression;
public abstract class AbstractExpression extends Node implements Expression {
public AbstractExpression(int line, int column) {
super(line, column);
}
public boolean hasBeenVectorized(){
return false;
}
}
| 22.071429 | 77 | 0.786408 |
0580777df385077e53b6aeab9e7a09c5c42d10bd | 2,500 | package com.jackwdev;
public class QuickSort {
// Declare method to perform the sort, taking an array as param
public static void quickSort(int[] arr, int firstIndex, int lastIndex) {
// Quick sort: Selects an index (pivot) and sorts around it, meaning that all left items are lesser and
// a... | 43.859649 | 112 | 0.5404 |
4d5d6de094dcc32552d7d5cebc24f0646d05916d | 2,598 | package org.meridor.perspective.shell.interactive.commands;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.meridor.perspective.shell.common.request.InvalidRequestException;
import org.meridor.perspective.shell.common.request.Request;
import org.meridor.perspective.shell.interactive.TestLogger;
impo... | 35.108108 | 99 | 0.711701 |
4b1befe784ee13ea4a9f213ab7de1a6c292eadcb | 618 | package org.apereo.cas;
import org.apereo.cas.util.spring.boot.AbstractCasSpringBootServletInitializer;
import org.springframework.core.metrics.ApplicationStartup;
import java.util.List;
/**
* This is {@link CasConfigurationServerServletInitializer}.
*
* @author Misagh Moayyed
* @since 5.1.0
*/
public class Ca... | 28.090909 | 103 | 0.791262 |
4abb0f95e5e382d4996327d8356520454c0a1e4a | 35,356 | package com.zebrunner.reporting.service;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zebrunner.reporting.domain.db.Job;
import com.zebrunner.reporting.domain.db.Project;
import com.zebrunner.reporting.domain.db.Status;
import com.zebrunner.reporting.domain.db.Test;
import com.zebrunner.reporting.dom... | 43.169719 | 186 | 0.666563 |
c5410650ccb64926df5463b43ef5a89f8e6c0987 | 3,100 | /*
* 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 ed.biodare2.backend.repo.isa_dom.assets;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializab... | 27.927928 | 89 | 0.593548 |
935ff933231b3960de4a9c800eb09a14a410aa44 | 940 | package com.group_finity.mascot.action;
import java.awt.Point;
import com.group_finity.mascot.config.XmlIdentifiers;
import com.group_finity.mascot.exception.VariableException;
import com.group_finity.mascot.script.VariableMap;
/**
* 少しずれるアクション.
* @author Yuki Yamada
*/
public class Offset extends InstantAction {... | 24.736842 | 99 | 0.760638 |
1bb277a5eb68936d1dbae2c24b24a1d6d7fa12ef | 682 | package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.can.WPI_VictorSPX;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.constants.PortConstants;
//Creates index class
public class IndexToShooter extends SubsystemBase {
// Creates the index motor
// private final WPI_VictorSP... | 22 | 78 | 0.734604 |
e8daace6175a6668f860a8284f389a413b2ed695 | 887 | package FactoryAndData.B2C;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import CommonFunction.Common;
import TestData.PropsUtils;
import TestScript.B2C.DR18Test;
public class DR18 {
@DataProvider(name = "DR-18")
public static Object[][] Data18() {
return Common.getFactoryD... | 28.612903 | 135 | 0.717024 |
9b2471d1579865bfb859ac4bba6068d238ac6534 | 3,665 | package com.shang.springboot.readinglist.config;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.support.http.StatViewServlet;
import com.alibaba.druid.support.http.WebStatFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... | 44.156627 | 110 | 0.752524 |
385dd58688028947752ee8928038fb3740705bbd | 1,548 | package unitauto.demo.server;
import org.junit.Assert;
import org.junit.Test;
import unitauto.test.TestUtil;
//@RunWith(SpringRunner.class)
//@SpringBootTest
public class ApplicationTests {
@Test
public void contextLoads() {
}
/**
* FIXME 为了测试一个方法,参数值的范围往往很大,多个参数组合起来更是数量爆炸,根本没有时间精力去编码和测试!
* 而 UnitAuto 只要配置... | 34.4 | 107 | 0.624677 |
0b679e0c9b9dec49d799965e640a245f199e105a | 2,760 | package com.bluebrim.swing.client.maskfield;
/*
=====================================================================
JMaskFieldTest.java
Created by Claude Duguay
Copyright (c) 1998
=====================================================================
*/
import java.awt.BorderLayout;
import java.awt.GridLayout... | 29.677419 | 69 | 0.626812 |
feca829df803ec67b154a03141efb71aa5b32a8a | 184 | package com.appnext.banners;
import com.appnext.core.AppnextError;
public class BannersError extends AppnextError {
public BannersError(String str) {
super(str);
}
}
| 18.4 | 48 | 0.722826 |
b3513bcefdcfda7ee9a9da2ef8efae65ea230a13 | 793 | /*
* Copyright (c) 2011-2025 PiChen
*/
package com.github.peterchenhdu.site4j.biz.dto.view;
/**
* Created by chenpi5 on 2019/3/29.
*/
public class ZTreeNodeDto {
private String id;
private String pId;
private boolean checked;
private String name;
public String getId() {
return id;
... | 16.183673 | 52 | 0.577554 |
f67098a9acd38dae51e2eb930da2a5e0d6f6f448 | 503 | package com.runescape.network;
import com.google.common.collect.ImmutableList;
/**
* @author Tyluur <itstyluur@gmail.com>
* @since 5/4/2016
*/
public class NetworkConstants {
/**
* The list of exceptions that are ignored and discarded
*/
public static final ImmutableList<String> IGNORED_EXCEPTIONS = Immutab... | 29.588235 | 250 | 0.765408 |
8243c63f151070bec9a75a72ba53d7ea899e6a58 | 1,477 | //package com.luban.aop;
//
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.stereotype.Component;
//
//@Component//添加这个才会生效,作为aspect
//@Aspect
//public class NotVeryUsefulAspect {
// // 切点:找出来com.luban.... | 29.54 | 70 | 0.701422 |
bca6f97e7f50d1f7afac67e63058e90b4c441b69 | 1,351 | package org.kot.time.workday;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.io.IOException;
import java.net.URL;
import java.time.LocalDate;
import java.util.NavigableSet;
import java.util.TreeS... | 32.166667 | 76 | 0.766099 |
f84fe0c1da3901933627325bc0ed0ce9a915eab4 | 333 | package pl.frackiewicz.vtuberapi.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class YouTubeVideo {
private String id;
private Snippet snippet;
private ContentDetails contentDetails;
private Statistics s... | 20.8125 | 42 | 0.804805 |
eff98181b40e82a1b7588351892dca65679c5951 | 2,602 | package cz.metacentrum.perun.webgui.widgets;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.*;
import... | 30.255814 | 128 | 0.727902 |
583dfb256640ecaa846d8b4cfbcb8fe4f212392a | 2,764 | package org.zerozill.muldijson.model;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
@JsonObject
public class Clients {
@JsonField
private Set<St... | 25.831776 | 195 | 0.571635 |
e96ad9cc1457a0f83fec65c1d7aceeaa2466f469 | 894 | package org.example.entity;
public class Pet {
private int id;
private String name;
private int age;
private String breed;
public Pet() {
}
public Pet(int id, String name, int age, String breed) {
this.id = id;
this.name = name;
this.age = age;
this.breed =... | 17.192308 | 60 | 0.545861 |
3324d1c37affbc9232b0b1ca5a44020fef03bb4f | 4,111 | package com.ruoyi.system.utils;
import com.alibaba.fastjson.JSONObject;
import okhttp3.*;
import java.io.IOException;
/**
* @author jiangxianwei
* @version 1.0
* @description: oktttp3的调用工具
* @date 2022/2/15 13:28
*/
public class OkHttpUtil {
private OkHttpsClientUtil httpsClientUtil = new OkHttpsClientUtil... | 35.136752 | 101 | 0.581854 |
fce44f419e533be5645e5bb18b93ef615e62be09 | 4,171 | /*
* 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 ... | 27.084416 | 116 | 0.69216 |
4cad6c9e5b9f92bafe51e4145b9b679b6da3de27 | 2,140 | /*
* Copyright 2008-2020 Async-IO.org
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 32.923077 | 92 | 0.730374 |
dd94aa56f349523f7a2fe231888cacd5aaac1243 | 3,700 | package UserInterface;
import java.io.IOException;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import MainSystem.Comment;
import MainSystem.Employee;
import MainSystem.IT_Personnel;
import MainSystem.Notification;
import java.awt.*;
import j... | 31.623932 | 117 | 0.547297 |
c512ecfc548eacbb90fb0886d54ff524792ea912 | 28,911 | /*
* Copyright (C) 2012 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... | 37.792157 | 101 | 0.607693 |
b4667f2ab7a32706d6656f0657e34ad47e957a0e | 1,736 | package mage.cards.s;
import java.util.UUID;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEf... | 37.73913 | 156 | 0.709677 |
348e170e38f964d53181bd3a2d0e5da9d5b6c5c4 | 1,093 | package fr.gouv.interieur.dmgp.remettant.application.ui.data;
import fr.gouv.interieur.dmgp.remettant.domain.entities.TypeMasque;
import org.springframework.stereotype.Component;
import java.util.Map;
import static fr.gouv.interieur.dmgp.remettant.domain.entities.TypeMasque.*;
@Component
public class InfosDemandeur... | 45.541667 | 142 | 0.782251 |
7b411308b22129315d9f055afbb8b2ae9e243f04 | 142 | package br.com.generation.polimorfismo;
public class TesteGeral {
public void fazerSom(Animal animal) {
animal.emitirSom();
}
}
| 11.833333 | 39 | 0.704225 |
0910de0410daddbe5d752209c071624cba33c4a3 | 1,914 | package com.wy.model;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import com.wy.common.Const;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoAr... | 20.804348 | 90 | 0.696447 |
df6925c7a7317ae004317dbd85dff61475045842 | 2,024 | package net.minecraft.network.protocol.game;
import javax.annotation.Nullable;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.protocol.Packet;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundSource;
public class ClientboundStopSoundPacket implements Packet... | 26.631579 | 103 | 0.642292 |
c2ab91e4c30cce31d7490d7ba2e90a3e7e7e36d9 | 1,288 | package com.tenforce.mu_semtech.mu_j_dispatcher;
import java.net.*;
import java.io.*;
/*
The Main entry class.
Calling this function will start a proxy that will listen on the specified
port or if no port was specified it will lilsten on port 80.
The idiomatic usage of this class is:
java com.ten... | 28.622222 | 158 | 0.597826 |
223609806dc4bd8ff2e129522042ad382d3e6d96 | 1,046 | package cartago.tools.inspector;
import cartago.*;
import java.util.concurrent.*;
public class Inspector {
private LinkedBlockingQueue<LoggerEvent> eventQueue;
private InspectorLogger logger;
private WorkspaceScene scene;
private Updater updater;
private Renderer renderer;
private InspectorView ... | 20.509804 | 58 | 0.702677 |
472181d8856469c7f50b0a5b3f2684098a8611c0 | 13,801 | package com.orange.poi.word;
import com.microsoft.schemas.office.word.CTWrap;
import com.microsoft.schemas.office.word.STWrapType;
import com.microsoft.schemas.vml.CTFill;
import com.microsoft.schemas.vml.CTGroup;
import com.microsoft.schemas.vml.CTShape;
import com.microsoft.schemas.vml.CTShapetype;
import com.micros... | 35.387179 | 182 | 0.625969 |
225494b6f681978772376cd68332be5fe485bd7f | 330 | package at.rseiler.homeauto.common.watcher;
import at.rseiler.homeauto.common.network.HostReachable;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class HostReachableTest {
@Test
public void testLocalhost() throws Exception {
assertTrue(new HostReachable("127.0.0.1").call()... | 25.384615 | 58 | 0.745455 |
0d9fb45daf01e913428f89538c1a404cbd078aec | 472 | package com.kuiren.common.util;
public class IntUtil {
public static int getInt(Integer i) {
if (i == null) {
return 0;
} else {
return i.intValue();
}
}
public static boolean eq(Integer i, int i1) {
if (i == null) {
return false;
} else if (i.intValue() == i1) {
return true;
}
return f... | 13.882353 | 46 | 0.580508 |
ab7c87f0fd1fb757a8ea37754c1c07a05c90af6f | 1,542 | /*
* Copyright 2002-2016 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... | 35.860465 | 135 | 0.697795 |
d888bd38796ff81dea9d1cde6626ad5b50466542 | 859 | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.danger.dao;
import java.util.List;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
imp... | 33.038462 | 108 | 0.804424 |
9de7ef94c0d57187b6ba5cdfa42a5488e6e928ed | 696 | package samples;
import net.thucydides.core.annotations.Steps;
import net.thucydides.core.annotations.Story;
import net.thucydides.junit.runners.ThucydidesRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(ThucydidesRunner.class)
@Story(Application.MakeWidgets.MakeBigWidgets.class)
public class ... | 23.2 | 53 | 0.70977 |
ceed2160e76ebdf1a407463506fc52040d2eb8bf | 4,865 | /*
* Copyright 2002-2018 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 ap... | 38.307087 | 132 | 0.784173 |
af6d7778f0d81428ef0e591be6a68ef927dc56bc | 9,478 | package org.hobbit.smlbenchmark_v2.utils;
import org.hobbit.smlbenchmark_v2.benchmark.generator.DataPoint;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import static org.hobbit.smlbenchmark_v2.Co... | 36.175573 | 273 | 0.567736 |
d367df3c21900f4e56f1626f25ae5b864ff4e273 | 869 | package com.chatty.common;
import io.netty.channel.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLoc... | 31.035714 | 88 | 0.764097 |
bf02e5e5fe72580d0689a806b6f9f03c301e41cc | 931 | /*
* (C) 2001 by Argonne National Laboratory
* See COPYRIGHT in top-level directory.
*/
/*
* @author Anthony Chan
*/
package viewer.zoomable;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import javax.swing.*;
import javax.swing.tree.*;
public class ActionTimelineRemove implements Acti... | 22.166667 | 71 | 0.604726 |
f04fa5741236ff28c1bef0c5c49446ec01aa0478 | 261 | package io.caiorocha.diazero.incidentezero.domain.dto;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class IncidentCreateDTO {
@NotNull
private final String name;
@NotNull
private final String description;
}
| 16.3125 | 54 | 0.762452 |
36d9f52a0123c8981102b2f07f0cf7936c317ab2 | 1,782 | package de.bitsharesmunich.graphenej;
/**
* Enum type used to keep track of all the operation types and their corresponding ids.
*
* <a href="https://bitshares.org/doxygen/operations_8hpp_source.html">Source</a>
*
* Created by nelson on 11/6/16.
*/
public enum OperationType {
TRANSFER_OPERATION,
LIMIT_OR... | 31.821429 | 87 | 0.798541 |
8d92c273e5aeeaa133ce38d3ca3399f4c97ffc19 | 4,770 | package com.baymax.clean_adapter;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 辅助生成ItemType与创建ViewHolder
* <p>
* 当RecyclerView中需要展示的元素类型比较多的时候
* Adapter的getItemType、createViewHolder和onBindViewHolder方法中会存在大量的代码
* 增加了复杂性并造成... | 45.428571 | 164 | 0.727883 |
c620c4c3cd71bedf9125bbb33b6dd5d69306a1a7 | 1,028 | package router.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import router.config.LoginControllerConfig;
import router.connectors.HttpConnection;
import org.springframework.web... | 29.371429 | 73 | 0.7393 |
7690cc5064b84eaf935ebc84cb911043e298b1a2 | 220 | package smile.wangsy.january.merchant.mapper;
import smile.wangsy.january.merchant.model.ProductCategory;
import wang.smile.common.base.Mapper;
public interface ProductCategoryMapper extends Mapper<ProductCategory> {
} | 31.428571 | 72 | 0.845455 |
356286933b93824ce3e2d75cb394f4a57ba55cc8 | 261 | package Bank;
public class ATM {
private Card card;
public boolean isNoCardInserted() {
return card == null;
}
public Card getCard() {
return card;
}
public void setCard(Card card) {
this.card = card;
}
}
| 14.5 | 39 | 0.563218 |
be7cfe07164022fad9d382bfb675b939b363f244 | 625 | package net.sourceforge.dynamicgmf.diagram.navigator;
import net.sourceforge.dynamicgmf.diagram.part.EcoreModelVisualIDRegistry;
import org.eclipse.jface.viewers.ViewerSorter;
/**
* @generated
*/
public class EcoreModelNavigatorSorter extends ViewerSorter {
/**
* @generated
*/
private static final int GROUP... | 21.551724 | 74 | 0.7648 |
cde82cae8619df5ba25adae0860e465e914c47ba | 1,540 | package com.fr.swift.cloud.cube.io.impl.mem;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
* @author anchore
* @date 2019/1/4
*/
public class SwiftObjectMemIoTest {... | 26.101695 | 81 | 0.62013 |
067f44ed4b24f895ae61161b339d14dbc400ba7d | 717 | package com.jhcomn.lambda.packages.result.hfct1500;
import com.jhcomn.lambda.packages.result.ProcessResultModel;
import com.jhcomn.lambda.packages.tag.hfct1500.HfctTagWithResult;
import java.util.List;
/**
* Created by shimn on 2017/5/25.
*/
public class HfctProcessResultModel extends ProcessResultModel ... | 23.9 | 78 | 0.67643 |
db57974ad1164e395204be230612dd09b433b3c0 | 606 | package com.neusoft.view.Impl;
import com.neusoft.dao.impl.AdminDaoImpl;
import com.neusoft.domain.Admin;
import com.neusoft.view.AdminView;
import java.util.Scanner;
public class AdminViewImpl implements AdminView {
@Override
public Admin login() {
Scanner input = new Scanner(System.in);
Sys... | 27.545455 | 70 | 0.686469 |
b82fb7e801662a692401e43561393c0b912c6083 | 6,915 | 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 ... | 16.425178 | 810 | 0.809111 |
f332f7cc730312bf4f0bf7f22f3275684d1dd32b | 20,433 | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class control extends JFrame implements ActionListener {
/* instead of using a string (too much memory), get the type
* of the user so we can check later which panels to show
* depending on the privileges.
*/
enum user_type {STUDENT, ADMI... | 42.392116 | 116 | 0.69838 |
1fdfa699683cb78506794f106a4bb79713306f24 | 232 | package com.codurance.training.tasks.actions;
import com.codurance.training.tasks.CommandContext;
import com.codurance.training.tasks.Console;
public abstract class Action {
abstract public void execute(CommandContext ctx);
}
| 25.777778 | 53 | 0.814655 |
df5acc5e91ed1083b3f6ff406674b6a86851ec6e | 3,330 | package com.jivesoftware.jivesdk.api;
import com.jivesoftware.jivesdk.api.tiles.ActivityData;
import com.jivesoftware.jivesdk.api.tiles.TileData;
import org.apache.http.HttpEntity;
import org.codehaus.jackson.JsonGenerationException;
import javax.annotation.Nonnull;
import java.io.IOException;
import java.io.Unsuppor... | 35.052632 | 127 | 0.769069 |
5f16f9c436e716f49fac6ee8c1819e5f887f0389 | 2,831 | package com.xuhai.wngs;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.baidu.android.pushservice.PushManager;
import com.... | 32.918605 | 152 | 0.65136 |
094ddb2d60a118de713f95f87197b54b6087a947 | 14,562 | /**
* Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
... | 41.965418 | 163 | 0.671748 |
98b0716e16f0345368866593b19d8d07c3286cb8 | 4,105 | package net.drewke.tdme.utils;
import java.util.Iterator;
/**
* Array list implementation
* @author Andreas Drewke
* @version $Id$
*/
public final class ArrayList<V> implements Iterator<V>, Iterable<V> {
private int capacity;
private int size;
private V[] elements;
private int iteratorIdx;
/**
* Public ... | 16.82377 | 75 | 0.569793 |
a29e3ce8f722ff92acc29d0d51e6f5d898d51121 | 2,091 | package org.apache.spark.rpc;
// no position
class RpcTimeout$ implements scala.Serializable {
/**
* Static reference to the singleton instance of this Scala object.
*/
public static final RpcTimeout$ MODULE$ = null;
public RpcTimeout$ () { throw new RuntimeException(); }
/**
* Lookup the timeout p... | 52.275 | 202 | 0.751315 |
b59f811129783ddd9eef94473ad5e981d121b6f1 | 785 |
package com.technicise;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for PasteDrugForm.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="PasteDrugForm">
* <res... | 19.146341 | 95 | 0.640764 |
4b93d70f107b035ee2c7f8bdffa95915af797691 | 44,456 | /* Copyright 2002-2021 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 40.086564 | 116 | 0.604913 |
e40f734dec72386e534f671eb0d25e3ceb0b6593 | 644 | import java.text.DecimalFormat;
public class Array {
public static void main(String[] args) {
DecimalFormat myFormatter = new DecimalFormat("###.##");
double[] bob = {3.5, 2.75, 3.21, 3.8, 3.32};
double[] tina = {2.5, 2.75, 2.34, 3.09, 3.2, 3.41, 3.21};
double sum_bob = 0;
double sum_tina = 0;
fo... | 23.851852 | 65 | 0.596273 |
1c86fb04e5e871b1c6f1e8811e7f70514212487e | 712 | package net.scadsdnd.randomatic;
import android.os.Bundle;
import android.view.KeyEvent;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidAppl... | 28.48 | 81 | 0.831461 |
af1f9b63ebb1c36acd046dfd3667348efb7eb265 | 225 | package com.github.SokolovRV.jtb;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class JavaTelegramBotApplicationTests {
@Test
void contextLoads() {
}
}
| 16.071429 | 60 | 0.795556 |
84f27693e1ce5a47b8ec12b1da6b0ffa72e00d49 | 1,240 | package backtrce;
import java.util.ArrayList;
import java.util.List;
/**
* @author yuanyuan
*/
public class LeetCode_22 {
//https://leetcode-cn.com/problems/generate-parentheses/
public static List<String> generateParenthesis(int n) {
List<String> ret = new ArrayList<>();
//特殊情况
if ... | 28.837209 | 107 | 0.568548 |
5b33a7580e194e6506d76a1de7411473baaa9f29 | 1,890 | package org.goagent.loglib.util;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.telephony.TelephonyManager;
import java.util.Locale;
/**************************************
* SystemUtil 系统工具类
* company:setmath(数韬)
* author:Arlen
* version:v1.0... | 20.543478 | 98 | 0.586772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.