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 |
|---|---|---|---|---|---|
e8b6abcc280f44e51868e296f6f14ee95504a544 | 2,206 | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 43.254902 | 112 | 0.790571 |
778477e8993f68372ab0446faeef882a8fcfa42b | 611 | package au.com.totemsoft.shoppingcart.domain;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
//@lombok.Data
public class ShoppingCart {
private final UUID id;
private final List<ShoppingCartItem> items = new ArrayList<>();
public ShoppingCart() {
this.id = UUID.random... | 16.972222 | 67 | 0.621931 |
099f6ec46082517d8c27fa72ab4ab3db4aa9f87f | 3,589 | /*
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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... | 33.542056 | 116 | 0.641126 |
29bf95462a006750879ec421ee7995d59b2c96ce | 1,272 | package b01.l3;
import b01.foc.gui.FGCheckBox;
import b01.foc.gui.FPanel;
import b01.foc.gui.FValidationPanel;
@SuppressWarnings("serial")
public class L3ApplicationGuiDetailsPanel extends FPanel{
public L3ApplicationGuiDetailsPanel (int view, L3Application application){
add(application, L3ApplicationDesc.FLD... | 38.545455 | 99 | 0.761792 |
ecaaaffff30e4e1f0347819dca78789224945beb | 9,948 | package com.example;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind... | 34.783217 | 323 | 0.555991 |
e4d6d491a69b04ba4406a1b0eea406da5219ac6c | 2,877 | /*
* MIT License
*
* Copyright 2018 Sabre GLBL Inc.
*
* 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, modi... | 30.606383 | 106 | 0.665624 |
1c132d9e5b20cc485eec2ea58bd21caa9156281a | 3,989 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2018 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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... | 41.123711 | 132 | 0.692905 |
79fc041bf4e9d37b5a2dfbd6a2c95d0e27983977 | 36,302 | /*
* Copyright (c) OSGi Alliance (2008, 2009, 2010, 2017). 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
*
... | 33.33517 | 117 | 0.697124 |
5287d91173aa6adc0da822ab114ff8a6412dfc97 | 1,609 | /*
* 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 binarysearchtree;
/**
*
* @author Ali
*/
public class B1 {
class Node {
int key;
Node left... | 22.041096 | 79 | 0.511498 |
cdf5582988906a475308d38ad55d1fb102a3cca3 | 991 | package nextstep.subway.applicaion;
import nextstep.subway.applicaion.dto.PathResponse;
import nextstep.subway.domain.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
public class PathService {
private final Station... | 31.967742 | 86 | 0.75782 |
8dbea1590cc5509f9110468b2f7e32f72da06c93 | 9,048 | package gg.projecteden.nexus.features.itemtags;
import de.tr7zw.nbtapi.NBTItem;
import gg.projecteden.nexus.utils.StringUtils;
import gg.projecteden.nexus.utils.StringUtils.Gradient;
import lombok.Getter;
import lombok.NonNull;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.B... | 29.861386 | 118 | 0.69695 |
bd31ad4d51fa6949f6c6741520e99ac9fb7d29a9 | 155 | /**
* This package contains classes for configuring the current project.
*/
package net.ssehub.easy.producer.ui.productline_editor.project_configuration; | 38.75 | 77 | 0.812903 |
e379c149fdfa14b231236b79fd01c7fbc3d97f2c | 9,185 | /**
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Cloudera, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | 30.616667 | 80 | 0.670985 |
f86fe41a07438e78d5512da48da85c1456672ae1 | 456 | package com.surgical.decision3.common.bean.player;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;
@Root
public class PlayCase
{
@Attribute(required=false)
int id;
@Attribute(required=false)
int case_id;
public int getId()
{
return id;
}
public void setId(int id)
{
thi... | 13.028571 | 50 | 0.70614 |
2b162f9a2c46bffaae411de8da61dc80881ee8b6 | 769 | package lexer;
public class LexerException extends Exception {
private static final long serialVersionUID = -8673728574812248899L;
public final int line;
public final int character;
public final Object[] avaiableCharacter;
public LexerException(int line, int character, Object[] avaiableCharacter) {
this.... | 28.481481 | 77 | 0.736021 |
d3e2629932f80f9974ef33f8e0fd0580d8a20136 | 2,388 | package org.jdb2de.core.data;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.io.Serializable;
/**
*
* @author Rodrigo Tavares
*/
@Component
@Scope(value = "singleto... | 19.414634 | 82 | 0.585427 |
b3af6254be576ed4c4085b6242cca80b515b46a2 | 2,178 | package com.cuiot.openservices.sdk.entity.request;
import com.cuiot.openservices.sdk.entity.ICheck;
import com.cuiot.openservices.sdk.util.Utils;
import io.netty.util.internal.StringUtil;
import java.util.ArrayList;
import java.util.List;
/**
* 请求参数params:事件上报
*
* @author yht
*/
public class ParamsEventPub imple... | 20.942308 | 67 | 0.565197 |
d5e6df82f4811c6261b29b3702d4435aacffb81c | 2,061 | package cpath.web;
import cpath.service.Settings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.anno... | 34.932203 | 117 | 0.764677 |
c064f0ff80884ccfa2f6e191a67476cc8a3e1d6f | 658 | package tk.ddvudo.multiThread.ThreadState;
public class Testskill extends Thread {
private Integer TimesCount = 0;
@Override
public void run() {
while (true) {
try {
if (TimesCount < 3) {
System.out.println("doing skill");
Thread.... | 26.32 | 55 | 0.43921 |
f6d786068cc5ba6fe951b49d6c837865499d81d2 | 3,254 | /*
* Copyright 2014 NAVER 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 ... | 33.546392 | 140 | 0.617701 |
8835e45b5df3f09601723ca4d861871ca492723e | 212 | package com.norswap.autumn.test.languages.clike;
import com.norswap.autumn.state.patterns.OutputAccumulator;
public class CLikeState extends OutputAccumulator<String>
{
{
items.push("int");
}
}
| 19.272727 | 59 | 0.735849 |
9cfb8e4022c3f176ec59827b4707f05deb3f2016 | 237 | package com.cvdnn.exception;
public class OnMainThreadException extends RuntimeException {
public OnMainThreadException() {
super();
}
public OnMainThreadException(String message) {
super(message);
}
}
| 18.230769 | 61 | 0.687764 |
72df16a593bf1f81cb72727a8b3be770daf36df2 | 675 | package com.example.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
// http://localhost:6100 /gateway /lottery /api/v1 /numbers?column=3
// server.servlet.context-path=/gateway /\ /\ /\
// spring.ap... | 35.526316 | 83 | 0.632593 |
59da4d93e481c1271783ab078638ecb13f155a0a | 2,758 | package de.tinycodecrank.xmlConfig4J.parser.assignable;
import static de.tinycodecrank.xmlConfig4J.utils.Utils.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Set;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.w3c.dom.Document;
import org.w3c.d... | 23.982609 | 94 | 0.687092 |
84a4413de5dda7925ce2d8d5eb42ad298fb3750d | 2,488 | package org.thingsboard.server.dft.repositories;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
impo... | 47.846154 | 108 | 0.647508 |
0d58b86400e33bc30ac945183f6e7df8ffc7bb2a | 4,361 | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | 40.757009 | 120 | 0.723687 |
7513dd881deb8cc3e2d97c5f03996006a8448200 | 1,508 | package com.github.llamarama.team.block;
import com.github.llamarama.team.Llamarama;
import com.github.llamarama.team.util.IdBuilder;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
impor... | 33.511111 | 130 | 0.737401 |
a7dc6687719e93d7b279da3b11cf4960dc8563a5 | 86 | package edu.ucam.enums;
public enum Convocatoria {
FEBRERO, JUNIO, SEPTIEMBRE;
}
| 10.75 | 28 | 0.732558 |
1dfbe85f7f56a4831d3c1ebc29918d351546d17c | 31,907 | package org.apache.xerces.impl.dtd;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.StringTokenizer;
import org.apache.xerces.impl.XMLErrorReporter;
import org.apache.xerces.util.SymbolTable;
import org.apache.xerces.util.XMLChar;
import org.apache.... | 47.339763 | 313 | 0.727019 |
ad185e9706bffea7d1c84f493a8af52ee5cc8f53 | 1,252 | package com.networknt.bot.core;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import org.slf4j.Logger;
public class LoggingOutputStream extends OutputStream {
private final ByteArrayOutputStream baos = new ByteArrayOutputStream(1000);
private final Logger logger;
private final LogLe... | 24.54902 | 79 | 0.491214 |
638b2fe23e88d9058f6dcd3d1c69db6bd0e58805 | 1,354 | package com.google.android.gms.internal;
import android.content.Context;
import android.os.DeadObjectException;
import android.os.IBinder;
import android.os.Looper;
import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedL... | 35.631579 | 154 | 0.747415 |
9939cd2a83855c967da5d27164a82dbc498e9616 | 7,768 | package com.stopclimatechange.earthgarden.controller;
import com.stopclimatechange.earthgarden.config.JwtTokenProvider;
import com.stopclimatechange.earthgarden.domain.User;
import com.stopclimatechange.earthgarden.domain.UserDto;
import com.stopclimatechange.earthgarden.service.MailService;
import com.stopclimatechan... | 41.540107 | 124 | 0.641092 |
7ad843aa46f8439b6df12613b6a0fc24e508b1ed | 2,398 | package world.ucode.game;
import javafx.animation.AnimationTimer;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import javafx.u... | 30.35443 | 84 | 0.542535 |
c2fc78449865af901674347d28c6b31e9aa8bc7c | 684 | package mensal.locadora;
import java.math.BigDecimal;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.... | 21.375 | 55 | 0.777778 |
5e313b5182ab7f8304411c2e16409f6a71f62bfc | 2,687 | /*
* Copyright (c) 2008 Nathan Sweet
*
* 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, pub... | 44.783333 | 131 | 0.734276 |
b82400a3e25f75d412832f4474ccead949805af5 | 2,001 | package br.com.Modelo;
import java.util.Date;
/**
* @author Brenno
*
* Copyright (c) 2016 Brenno Dário Pimenta de Almeida
* A permissão é concedida, gratuitamente, a qualquer pessoa que obtenha uma cópia deste software e
* dos arquivos de documentação associados (o "Software"), para lidar com o Software sem re... | 29.865672 | 108 | 0.729135 |
1aa877b570488f74efe30702cc02b6ab18262636 | 2,797 | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 36.324675 | 108 | 0.696103 |
de7397bf1450e7702775781c241eb12744fc6b9a | 817 | package com.daomtthuan.chatnow.ejb.facade;
import com.daomtthuan.chatnow.ejb.entity.Role;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Stateless
public class RoleFacade extends AbstractFacade<Role> implements RoleFacadeLocal {... | 24.029412 | 121 | 0.747858 |
c90aa89448075b09bbacb988d5823a8485b46b52 | 1,820 | /*
* 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 a... | 33.703704 | 100 | 0.752198 |
617713348989a146606039f3c207a25a61181184 | 8,498 | /*
* SonarQube PDF Report
* Copyright (C) 2010-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the... | 31.947368 | 116 | 0.642622 |
63d244d66bbf4e344117c2b972c7012b53886f26 | 312 | package pl.aprilapps.easyphotopicker;
/**
* Created by Jacek Kwiecień on 03.11.2015.
*/
public interface EasyImageConfig {
int REQ_PICK_PICTURE_FROM_DOCUMENTS = 7457;
int REQ_PICK_PICTURE_FROM_GALLERY = 7458;
int REQ_TAKE_PICTURE = 7459;
int REQ_SOURCE_CHOOSER = 7460;
int REQ_IMAGE=1;
}
| 22.285714 | 47 | 0.737179 |
550b2f07f481f0a3484f2b7c263842482557ef14 | 5,026 | package com.example.massa.luxvilla.Actividades;
import android.content.Intent;
import android.preference.CheckBoxPreference;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.SwitchPreference;
import android.support.design.widget.Snackbar;
import android.supp... | 40.208 | 149 | 0.644648 |
95a7baae84f22d28700e9cd4a0cf71efc9541fb8 | 903 | package reega.main;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reega.data.remote.RemoteConnection;
import reega.generation.DataFiller;
import reega.generation.OnDemandDataFiller;
import java.io.IOException;
public final class GenerationLauncher {
private static final Logger LOGGER = LoggerF... | 25.8 | 91 | 0.697674 |
bbc17dc4b7a6702a5c9b330aae81330194f6a68e | 14,833 | /*
* Copyright 2008 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 47.694534 | 137 | 0.563608 |
54e3f429ce8f8aae8b2b35657a3c2051e5f72372 | 1,774 | /*
* Copyright (c) 2002-2022 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | 23.972973 | 75 | 0.669109 |
fa4c58311010bff86fd7fe7d6ab63f53840ad9b4 | 1,929 | /*
* framework: org.nrg.framework.constants.Scope
* XNAT http://www.xnat.org
* Copyright (c) 2017, Washington University School of Medicine
* All Rights Reserved
*
* Released under the Simplified BSD.
*/
package org.nrg.framework.constants;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
... | 25.72 | 80 | 0.587869 |
749c4fff3ca940d06b86c3ed562b98931986e811 | 8,762 | package com.eterno.joshspy.app;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.app.usage.UsageEvents;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;... | 33.570881 | 96 | 0.656243 |
33d38499195e94b76486da4a61e1bd59a47a31eb | 464 | // 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.history.utils;
import com.intellij.util.ExceptionUtil;
public abstract class RunnableAdapter implements Runnable {
@Override
public void run() {
try... | 24.421053 | 140 | 0.704741 |
8939eae9cd28bce975a77f7f481b6c100ed4c2b9 | 3,235 | package org.hzero.wechat.dto;
import java.util.List;
import java.util.Map;
public class GetMaterialResultDTO {
// "title":TITLE,
// "description":DESCRIPTION,
// "down_url":DOWN_URL,
private Map<String,List<NewsItemBean>> news_item;
private Map<String,String> title;
privat... | 24.323308 | 73 | 0.580216 |
3bb338350cc24d6c684bb1e01822e866e9c06963 | 6,214 | /**
* 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.771739 | 86 | 0.663985 |
fbdda15ad6c702e9a2755af1994d4c3dd34fa5f7 | 4,457 | /*----------------------------------------------------------------------------
* Copyright IBM Corp. 2015, 2016 All Rights Reserved
* Copyright Universitat Rovira i Virgili. 2015, 2016 All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | 39.794643 | 172 | 0.627328 |
024ff0f08aee86c858ecad63b2572f201f1491c4 | 2,432 | package pt.tecnico.hds.client;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.sql.*;
public class DatabaseManager {
private static DatabaseManager databaseManager;
private static final String url = "jdbc:sqlite:db/client.db";
private static Connection c = null;
public static Conne... | 30.78481 | 93 | 0.555921 |
87000a9580322aff654a58deb6dd227b91e582ed | 2,127 | package esz.dev.delaunay;
import org.opencv.core.Point;
public class Triangle {
private final Edge ab;
private final Edge bc;
private final Edge ca;
private final Circle circumCircle;
public Triangle(Point a, Point b, Point c) {
this.ab = new Edge(a, b);
this.bc = new Edge(b, c);... | 37.982143 | 155 | 0.554302 |
a46947593aef851ee46b0664e03f3291e0fe962c | 9,111 | package com.acgist.ding.view.common;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.Robot;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.regex.Matcher;
impor... | 32.308511 | 130 | 0.714192 |
4a30538f43c08cbc89046b5ddcb705855e49c05e | 1,651 | /*
* Copyright 2013 Swedish E-identification Board (E-legitimationsnämnden)
*
* Licensed under the EUPL, Version 1.1 or ñ as soon they will be approved by the
* European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* ... | 31.150943 | 86 | 0.672925 |
a2cbf9aec0df70c1e9ad29c1f3bbdf7b485e0456 | 254 | package kr.ac.hs.oing.post.dto.request;
public class PostUpdateRequest {
private String title;
private String content;
public String getTitle() {
return title;
}
public String getContent() {
return content;
}
}
| 16.933333 | 39 | 0.641732 |
47cd13b0f3dbfb42d41573948ec73adf608fcf47 | 629 | package br.com.zupacademy.charles.transacao.repository;
import br.com.zupacademy.charles.transacao.model.Transacoes;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository... | 39.3125 | 81 | 0.828299 |
28d36027414ba953b3aeb5a6d19111cd3333afce | 3,999 | package com.civfactions.SabreCore;
import java.util.Collection;
import java.util.UUID;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.plugin.java.JavaPlugin;
import com.civfactions.SabreApi.BlockPermission;
import com.civfactions.SabreApi.PlayerSpawner;
import com.civfactions.SabreApi.P... | 25.471338 | 95 | 0.778195 |
06e5c9b18ccf860e64972200fbe5160b1d3bf95e | 125 | package testclasses.exceptions.nullpointer;
public class SupportClassObject {
public String a;
public String[] b;
}
| 17.857143 | 43 | 0.752 |
9bddf4d3ef320bb7a77e95015cd11797d45b0586 | 2,975 | package com.refinedmods.refinedstorage2.platform.forge.render.model.baked;
import com.refinedmods.refinedstorage2.platform.common.util.BiDirection;
import java.util.List;
import java.util.function.Function;
import com.google.common.collect.ImmutableList;
import com.mojang.math.Matrix4f;
import com.mojang.math.Quater... | 37.1875 | 146 | 0.703866 |
bd8a95987690a1284a3aee710abb66ddc929db90 | 80 | package org.pitest.plugin;
public enum ToggleStatus {
ACTIVATE, DEACTIVATE
}
| 13.333333 | 26 | 0.775 |
0c9f467372a69ba7b734319f26f2718d60827aed | 741 | package com.zhangshuo.user.dao;
import com.zhangshuo.user.domain.User;
/**
* 用户添加等
* interface
*/
public interface UserDao {
/**
* 添加用户
* @param user
*/
public int add(User user);
/**
* 由用户的身份(姓名或邮箱)获取用户信息
* @param LoginIdentity
* @return
*/
public User getDbUser(String LoginIdentity);
/**
... | 15.4375 | 64 | 0.662618 |
b13e45e62d19593260b83eb96f6c2ef095868825 | 416 | package io.github.codejanovic.java.shortcuts;
import java.util.Objects;
public final class Shortcuts {
public static String f(String format, Object... args) {
return String.format(format, args);
}
public static <T> T nn(T obj) {
return Objects.requireNonNull(obj);
}
public static... | 23.111111 | 59 | 0.658654 |
6dc7d2552cc61f9b409b445f2cd48077a5c24c8f | 10,839 | /*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.rate;
import static com.opengamma.strata.basics.currency.Currency.GBP;
import static com.opengamma.strata.basics.currency.Currency.USD;
import sta... | 45.927966 | 124 | 0.698496 |
049542d657f5b8bdb6cc5b55c0dfddb1e9be4ad5 | 1,547 | // Copyright (c) Aetheros, Inc. See COPYRIGHT
package com.aetheros.aos.onem2m.common.resources;
/**
* Structure class for payload container serialization.
*/
public class PC {
AE ae;
Node nod;
/**
* Default constructor.
*/
public PC() {}
/**
* Constructor II
*
* @par... | 18.2 | 64 | 0.444732 |
806ac7d26193776ee2a009041c5efe9370b7d5e1 | 4,135 | package com.manywords.softworks.tafl.network.server.database.file;
import com.manywords.softworks.tafl.network.server.NetworkServer;
import com.manywords.softworks.tafl.network.server.database.PlayerDatabase;
import com.manywords.softworks.tafl.network.server.database.PlayerRecord;
import java.io.*;
import java.util.... | 31.325758 | 95 | 0.596131 |
cc4b4b8bbf31e74192f0fbe126453efeae51a3ec | 895 | package org.vrhel.graphics;
abstract class AbstractBuffer {
private static int nextID = 0;
protected int id;
protected boolean enabled;
AbstractBuffer() {
this.enabled = true;
this.id = nextID;
nextID++;
AbstractBufferHandler.getHandler().add(this);
}
/**
* Returns the ID of this buffer.
*
... | 16.272727 | 48 | 0.656983 |
b85d3c66e06f8204dfe0a4d84656f0174cfec1f4 | 1,721 | /*
* Company
* Copyright (C) 2014-2020 All Rights Reserved.
*/
package com.cwenao.leetcode.algs.first;
import java.util.Arrays;
/**
* TODO : Statement the class description
*
* @author cwenao
* @version $Id CanPartition.java, v1.0.0 2020-12-17 21:16 cwenao Exp $$
*/
public class CanPartition {
public bool... | 26.075758 | 73 | 0.463684 |
f3871a8569e2708876ce1cd1d46ba917ac1013c7 | 637 | package fr.tse.fise2.heapoverflow.wikidata;
public class WdTemplateLangCode {
private String value;
private String language;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getLanguage() {
retur... | 18.735294 | 50 | 0.55102 |
a997febfb88a8e0cb54c1b8e6f75a5e359a2f2fa | 1,516 | package org.folio.rest.validator;
import org.apache.commons.lang.RandomStringUtils;
import org.folio.rest.exception.InputValidationException;
import org.folio.rest.jaxrs.model.ProviderPutDataAttributes;
import org.folio.rest.jaxrs.model.ProviderPutData;
import org.folio.rest.jaxrs.model.ProviderPutRequest;
import org.... | 35.255814 | 122 | 0.794855 |
5a25e1bf47570af5e318d7cfae8ecdcef263c96e | 736 | /**
*
*/
package fr.n7.stl.tam.ast;
/**
* Sequence of TAMInstruction.
* @author Marc Pantel
*
*/
public interface Fragment {
/**
* Adds a TAM instruction at the end of the fragment.
* @param _instruction TAM instruction added at the end of the fragment.
*/
public void add(TAMInstruction _instruction);... | 23 | 86 | 0.703804 |
64de135a8208f0fa4bdadcf2eac80a8a43c0c013 | 708 | package by.andd3dfx.hello;
import by.andd3dfx.grpc.HelloRequest;
import by.andd3dfx.grpc.HelloResponse;
import by.andd3dfx.grpc.HelloServiceGrpc.HelloServiceImplBase;
import io.grpc.stub.StreamObserver;
public class HelloServiceImpl extends HelloServiceImplBase {
@Override
public void hello(HelloRe... | 33.714286 | 104 | 0.716102 |
232c377c43918ea43a90fa083eebf80c598f56e7 | 3,271 | package cn.leancloud.kafka.consumer;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.function.BiConsumer;
import static java.util.Objects.requireNonNull;
/**
* A wrapper over a {@link ConsumerRecordHandler} to catch and swallow all ... | 48.102941 | 133 | 0.727301 |
f4042ad4380d3af44d011facf4bb5bcd0603144d | 6,987 | package com.ruoyi.weeklySchedule.backSystem.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 项目周进度对象 weekly_project_scheduel
*
* @author mengdehu
... | 25.5 | 108 | 0.625877 |
7da4d2a7893718b30aa64ca0d995bcd004802eb0 | 751 | /*
* 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 FSAApp;
/**
*
* @author 12084819
*/
import java.awt.EventQueue;
import javax.swing.JFrame;
public cla... | 23.46875 | 80 | 0.599201 |
dde4474ea50d4c48f002bc51064cdcc7e3adb93d | 1,195 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 32.297297 | 88 | 0.6159 |
62feb5c9ddadfd6a19ca38a5180fe46b50f1e26f | 1,054 | package hu.kalee.multi.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import o... | 43.916667 | 203 | 0.804554 |
7aff179386bce7e9506f1d3c29e6f2b0d321a05e | 359 | package wallet;
public class WalletElement {
public String masterPrivateKey;
public String privateKey;
public String mnemonic;
public WalletElement(String masterPrivateKey, String privateKey, String mnemonic) {
this.masterPrivateKey = masterPrivateKey;
this.privateKey = privateKey;
... | 25.642857 | 87 | 0.718663 |
f698f41ef0830def2f42a316e3cf03ff81ae5c98 | 1,805 | package org.springframework.netty.http.support;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
/**
* @author thinking
* @version 1.0
* @since 2020-03-16
*/
public class GenericsUtils {
private static final Logger log = Logg... | 37.604167 | 152 | 0.654848 |
e08ea4a5047ae02cbe24d062036fa2de5721b1ba | 9,079 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 43.440191 | 120 | 0.708007 |
59c027cbeb99038a518d6cf877bccb787a581a2b | 740 | package com.myproject.thymeleaf.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.myproject.thymeleaf.mapper.UserRoleMapper;
import com.myproject.thymeleaf.model.entity.UserRole;
import com.myproject.thymeleaf.service.UserRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springfra... | 29.6 | 110 | 0.806757 |
8e26101c0abede14c127147cd8ccc0bbd76bae6d | 305 | package io.datatok.djobi.engine.stage.livecycle;
import io.datatok.djobi.engine.check.CheckResult;
import io.datatok.djobi.engine.stage.Stage;
/**
* @since v2.2.8 (rename on v3.1.0)
*/
public interface ActionPreChecker extends Action {
CheckResult preCheck(final Stage stage) throws Exception;
} | 23.461538 | 61 | 0.763934 |
d8f9c0381879efa8050c5494ededd66927e3f64e | 230 | package test;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
public class UsedImport132980 {
{
new LinkedList(Collections.<Comparator<? super String>>emptyList());
}
}
| 19.166667 | 76 | 0.717391 |
9fc1eb3c5176482d0216f5ce7614fe7f7dd3d9ef | 6,882 | package com.walmartlabs.concord.server.process.state;
/*-
* *****
* Concord
* -----
* Copyright (C) 2017 - 2018 Walmart 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
*
... | 37.402174 | 136 | 0.671607 |
ac5a0de0dab8288976400c905ac577852536a8c5 | 1,467 | package com.jspxcms.core.web.directive;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import com.jspxcms.common.freemarker.Freemarkers;
import com.jspxcms.core.service.SQLService;
import freemarker.core.Environment;... | 30.5625 | 76 | 0.751193 |
b4b44bba479f561debe842cc4a6353dbef0de1f4 | 2,347 | package io.fotoapparat.hardware.v1;
import android.hardware.Camera;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import java.util.Collections;
import java.util.Set;
import static... | 26.370787 | 81 | 0.660844 |
1332a50ce0cead8dde61dde0391a0ea3e50261c1 | 540 | package com.itacademy.java.oop.basics;
public class Square {
double length;
double width;
public Square() {
}
public Square(double length, double width) {
this.length = length;
this.width = width;
}
public double getLength() {
return length;
}
public doub... | 17.419355 | 48 | 0.509259 |
10e43a026f9d75d660b156f7c7d613505bcfa9d3 | 3,016 | package com.gra.local.controllers;
import com.gra.local.persistence.EntityHelper;
import com.gra.local.persistence.domain.VendorAccount;
import com.gra.local.persistence.services.VendorAccountService;
import com.gra.local.persistence.services.dtos.VendorAccountDto;
import org.springframework.beans.factory.annotation.A... | 41.888889 | 183 | 0.744032 |
a5a80de4dca52bb007707335257c5446b32ee8ae | 267 | package dydeve.common.util;
/**
* @see com.netflix.hystrix.util.InternMap
* Created by yuduy on 2017/8/17.
*/
public interface InternStorage<K, V>{
V interned(K key);
int size();
interface ValueConstructor<K, V> {
V create(K key);
}
}
| 14.833333 | 42 | 0.625468 |
979e26ee5e753313534215a4262cc1db81e94a07 | 113 | package com.episode6.hackit.pausable;
/**
*
*/
public interface Pausable {
void pause();
void resume();
}
| 11.3 | 37 | 0.654867 |
48dbb840f93c7238df434c7a7b0d53133bedf718 | 815 | package com.miniprofiler.serialization;
import java.io.IOException;
import java.time.Instant;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerialize... | 28.103448 | 89 | 0.743558 |
0751ba835e5604bebc8bf9ee5e8a0486b53232d3 | 2,023 | /*
* Kimberly M. Praxel
* 10/20/16
* JsonWriter.java
*/
package edu.greenriver.it.fileio;
import java.io.*;
import org.json.simple.*;
import org.json.simple.parser.JSONParser;
import java.util.*;
import edu.greenriver.it.products.*;
public class JsonWriter implements Writer{
/**
* This saves an object to... | 24.670732 | 73 | 0.687593 |
075c67cd4e0a8ade45cba38976958b086c6419be | 831 | package com.ll.demo.view;
import android.content.Context;
import android.support.v7.widget.AppCompatCheckBox;
import android.util.AttributeSet;
import com.ll.chart.compat.FontConfig;
/**
* 自定义字体库的CheckBox
*/
public class FontCheckBox extends AppCompatCheckBox {
public FontCheckBox(Context context) {
super(co... | 22.459459 | 78 | 0.705174 |
21d33b43ee6ddbecb765265e9082cee260a8cdc6 | 833 | package com.qaprosoft.carina.demo.gui.pages;
import com.qaprosoft.carina.core.foundation.webdriver.decorator.ExtendedWebElement;
import com.qaprosoft.carina.core.gui.AbstractPage;
import com.qaprosoft.carina.demo.gui.components.Filter;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
p... | 28.724138 | 83 | 0.732293 |
5ae3d31658f58f744ce0a3fbebcbb651bba393bf | 2,482 | package cn.iocoder.mall.order.biz.bo.order;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 订单退货 info
*
* @author Sin
* @time 2019-04-27 10:19
*/
@Data
@Accessors(chain = true)
public class OrderReturnInfoBO implements Se... | 17.478873 | 56 | 0.431507 |
b0ca7a1b1d9eaa5446e761ede57771a06736fe40 | 877 | package authoring.resourceutility;
import authoring.VoogaScene;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;
/**
* An abstract class inherited by ImagePreviewer and AudioPreviewer to allow
* users to preview resources
* @author DoovalSalad
*
*/
public abstract class Previewer ... | 19.931818 | 76 | 0.713797 |
2299022caf3c82fd0016f7d55f9cf4ab7dfed97f | 1,432 | package classify.twopointers;
/**
* @author yutiantang
* @create 2021/3/28 5:39 PM
*/
public class RemoveDuplicatesFromSortedArrayII {
/**
* 1ms 80.57%
* 38.6MB 61.12%
* @param nums
* @return
*/
public int removeDuplicates(int[] nums) {
if (nums.length < 3) {
... | 23.47541 | 76 | 0.403631 |
9a2f3f0a1ca98beee6c28e8fac7385f03f413f67 | 1,225 | package it.polimi.ingsw.PSP48.networkMessagesToClient;
import it.polimi.ingsw.PSP48.DivinitiesWithDescription;
import it.polimi.ingsw.PSP48.ViewInterface;
import java.util.ArrayList;
/**
* Network message used to request the challenger to choose the available divinities in the game.
* It contains the divinities av... | 33.108108 | 109 | 0.733878 |
8ac730e8a39c95a186bb822b3e2f7348b77a7295 | 359 | package com.example.gmall.wms.dao;
import com.example.gmall.wms.entity.ShAreaEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 全国省市区信息
*
* @author mousse
* @email 958860184@qq.com
* @date 2020-09-06 14:12:08
*/
@Mapper
public interface ShAreaDao ... | 19.944444 | 61 | 0.754875 |
d2071465ac99b5bcb79e2e00f82c6c5f27874116 | 4,048 | /*
Copyright (C) 2010 by
*
* Cam-Tu Nguyen
* ncamtu@ecei.tohoku.ac.jp or ncamtu@gmail.com
*
* Xuan-Hieu Phan
* pxhieu@gmail.com
*
* College of Technology, Vietnamese University, Hanoi
* Graduate School of Information Sciences, Tohoku University
*
* JVnTextPro-v.2.0 is a free software;... | 26.285714 | 95 | 0.673666 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.