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 |
|---|---|---|---|---|---|
568586a345266d80dd5c2c87b07ff790e3499f2f | 1,913 | /*
* Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 33.561404 | 102 | 0.675379 |
c572d278ece36869e754e1e659f76a0b630284e4 | 3,953 | package ch.epfl.imhof.painting;
/**
*
** Une couleur représentée par ses composantes rouges, vertes et bleues.
*
* @author Pierre Gabioud (247216)
* @author Corto Callerisa (251769)
*
*/
public final class Color {
private final double r, g, b;
/**
* La couleur « rouge » (pur).
*/
public f... | 26.891156 | 96 | 0.558563 |
d646a5b76c7ff3b71ec4b5d5f63d5cb19622d95b | 103 | package jMapGen.com.nodename.Delaunay;
import jMapGen.Point;
interface ICoord
{
Point getCoord();
} | 11.444444 | 38 | 0.76699 |
890cb4a62c85282f3cafbd22845d86ee96befde4 | 284 | package com.scm.dao.inventory;
import com.scm.dao.common.GenericDao;
import com.scm.dao.domain.CededSupplier;
public interface CededSupplierDao extends GenericDao<CededSupplier, Long>{
public CededSupplier getCededSupplierDetails(Long supplierId) throws Throwable;
}
| 25.818182 | 81 | 0.795775 |
b3a316216a39531bd5305330e1a32237bf057362 | 2,224 | /**
* Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | 32.231884 | 125 | 0.718975 |
a8628ac52773e5120b4600ac7d527735fdca4b73 | 936 | /*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.internal.xml.xsd.typeprovider.schema;
import gw.internal.xml.xsd.typeprovider.XmlSchemaIndex;
import gw.lang.reflect.LocationInfo;
import java.util.Map;
public final class XmlSchemaEnumerationFacet extends XmlSchemaFacet<XmlSchemaEnumerationFacet> {
pr... | 30.193548 | 144 | 0.793803 |
bae064fedf59a2d840d59ba7c625f2b7adbfbeb5 | 1,493 | package me.acablade.ultimatebans;
import me.acablade.ultimatebans.commands.*;
import me.acablade.ultimatebans.data.MuteConfiguration;
import me.acablade.ultimatebans.listeners.ChatListener;
import me.acablade.ultimatebans.listeners.InventoryListener;
import me.acablade.ultimatebans.listeners.JoinListener;
import org.b... | 33.177778 | 80 | 0.705291 |
6b1a2517f0777e435885e8964abc8bb100495ae4 | 785 | package com.viktor.e_commerce;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
public class BaseActivity extends AppCompatActivity {
public static int userId = 0;
public static int storeId = ... | 26.166667 | 76 | 0.718471 |
6b4a50a1cd9a2d3fc9c9dfee49c62f71927628f5 | 3,572 | package teamcode.demo;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.hardware.*;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit;
import org.... | 48.27027 | 142 | 0.62542 |
ee02e63e961dce0738b9f5aaf6953f4f462c4753 | 3,100 | package io.lbry.browser.tasks.lbryinc;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.AsyncTask;
import java.util.HashMap;
import java.util.Map;
import io.lbry.browser.MainActivity;
import io.lbry.browser.data.DatabaseH... | 36.046512 | 158 | 0.640323 |
843e2c3892bff2f1eb411ab066cc21314dc5482a | 507 | package io.renren.modules.cbs.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.cbs.entity.CbsImgPurchaseInvoiceEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 出口发票附件图片表
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-02-20 1... | 25.35 | 91 | 0.794872 |
4712e5ee7ca6445026b3e660b3105885ce216833 | 2,319 | /*
* 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.dadoco.common.lazyModel;
import java.util.List;
import java.util.Map;
/**
*
* @author fernando
* @param <T>
*/
public... | 23.424242 | 103 | 0.586891 |
81a6c311ab50cb168dab62c2d07b622170d9c648 | 192 | package repositories;
import models.StockType;
import org.springframework.data.jpa.repository.JpaRepository;
public interface StockTypeRepository extends JpaRepository<StockType, Long> {
}
| 21.333333 | 77 | 0.838542 |
2be3a936c30cdc46b407c4d135bd002c79f8edb4 | 7,738 | // Copyright 2020 Goldman Sachs
//
// 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 ... | 37.201923 | 307 | 0.67679 |
0a5e4df3e76fc0466630ffad5831c81d53761cf5 | 2,142 | package auth.service;
import auth.dto.AuthDto;
import auth.entity.User;
import auth.repository.UserRepository;
import auth.service.impl.UserServiceImpl;
import edu.fudan.common.util.Response;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runn... | 30.169014 | 123 | 0.720822 |
1f5e880454ca90384f653450c89c0e272f98a8c5 | 1,036 | package ch.agent.crnickl.jdbc.junit;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllTests {
public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
//$JUnit-BEGIN$
suite.addTestSuite(T005_BasicTest.class);
suite.addTestSuite(T005_CacheTest.clas... | 33.419355 | 64 | 0.810811 |
bc1ca05e4359318f3c274d43625d650d8ce34739 | 3,075 | /**
* alert-common
*
* Copyright (C) 2019 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* 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 owne... | 36.176471 | 99 | 0.733008 |
5591f876a7603256d18cef6ac57cf4273e41617f | 6,684 | package com.example.bdafahim.easyrent;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import android.widget.Toast;
import com.google.fir... | 37.133333 | 145 | 0.648265 |
71fa1f8d71c4bc4ea0bfa0a4d5e921acc98f9c9f | 1,060 | package br.com.flaviogf.manager.controllers;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import br.com.flaviogf.manager.entities.Co... | 28.648649 | 100 | 0.754717 |
e612364065fadcbd0e6df4ed60137f5941b4634f | 1,247 | package kafkacollector.common;
import kafkacollector.exception.KafkaCollectorException;
/**
* Copyright 2017 Hiroki Uchida
*
* 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://... | 32.815789 | 75 | 0.708099 |
aa1d1adcdd5e7bc23b801bd92c0ecbe83289d290 | 194 | package ood.srp;
public interface InterCalc {
void resetResult();
void showMenu();
Operation getOperation(int key);
double getResult();
void setResult(double result);
}
| 13.857143 | 36 | 0.675258 |
389e25de3602871886122e8da1a0087a3e74edb6 | 1,595 | // Autor y desarrollador parcial o total: Santiago Hernández Plazas (santiago.h.plazas@gmail.com).
package co.gov.ideamredd.mbc.conexion;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import javax.sql.DataSource;
import oracle.jdbc.OracleTypes;
/**
* clase para consultar... | 24.166667 | 115 | 0.715361 |
3befc28c9de6634577926401bf53d37f6fd0ee81 | 1,493 | /*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2006-2008, Open Source Geospatial Foundation (OSGeo)
*
* This library 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 ... | 26.660714 | 74 | 0.668453 |
90bd1ba048177cebd4e661e291603f7e6506510f | 3,102 | /**
* Copyright 2019-2020 Zheng Jie
*
* 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 ... | 22.642336 | 91 | 0.624113 |
b9ca17ae7de72bb4ae165c00c78afb0dc50ec523 | 175 | package com.poc.poo.inheritance.Hierarchical;
public class FourWheeler extends Bike{
int noOfWheels;
public FourWheeler() {
noOfWheels = 4;
}
}
| 17.5 | 46 | 0.645714 |
12ac93ab994e04046d4b10503a4c8b4185029a20 | 298 | import java.lang.ArithmeticException;
public class Arithmetic {
public static void main(String[] args) {
System.out.println("Hello, World");
try {
int i = 0 / 0;
} catch (ArithmeticException e) {
System.out.println("ArithmeticException occured!");
}
}
} | 21.285714 | 58 | 0.624161 |
fe9b00e49238d983827dca13a37dddabe1594349 | 1,195 | package no.gorandalum.fluentresult;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.assertj.core.api.Assertions.*;
class Result_RunIfError_Test {
@Test
void runIfError_success_consumerShouldBeRun() {
Result<String, String> result = Result.succ... | 32.297297 | 67 | 0.658577 |
d0df9c0291d3239d371854178a847be98bc25b1c | 1,077 | package cn.itcast.service;
import cn.itcast.domain.PageBean;
import cn.itcast.domain.User;
import java.util.List;
import java.util.Map;
/**
* 用户管理的业务接口
*/
public interface UserService {
/**
* 查询所有用户信息
* @return
*/
public List<User> findAll();
/**
* 登录方法
*... | 16.074627 | 101 | 0.499536 |
ccaf951e712ed22ba3be298484910a68d49b7d78 | 286 | package com.example.context_ref;
import arez.annotations.ArezComponent;
import com.example.context_ref.other.BaseProtectedAccessContextRefModel;
@ArezComponent( allowEmpty = true )
abstract class ProtectedAccessFromBaseContextRefModel
extends BaseProtectedAccessContextRefModel
{
}
| 26 | 72 | 0.863636 |
0f2982055788374f6e7e51d1c3c4ec284be19460 | 7,371 | package de.hhu.stups.plues.ui.controller;
import com.google.inject.Inject;
import de.hhu.stups.plues.Delayed;
import de.hhu.stups.plues.data.Store;
import de.hhu.stups.plues.data.entities.Course;
import de.hhu.stups.plues.routes.RouteNames;
import de.hhu.stups.plues.services.SolverService;
import de.hhu.stups.plues.s... | 37.040201 | 99 | 0.746846 |
cab7a3f9bdb6c7e2aeace487c594ec68d1d45a76 | 961 | package mlog.ctrl.rt;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.List;
import reactor.core.publisher.Flux;
import reactor.core.publisher.UnicastProcessor;
import reactor.util.concurrent.Queues;
public class MessageQueue {
private UnicastProcessor<Message> processor = Unicast... | 23.439024 | 120 | 0.726327 |
66ef651977435b5cb94dadb6ca2a5ebf2ce59129 | 823 | package org.ovirt.engine.ui.webadmin.section.main.view.popup.pool;
import org.ovirt.engine.ui.common.view.popup.AbstractVmPopupView;
import org.ovirt.engine.ui.common.widget.uicommon.popup.pool.PoolNewPopupWidget;
import org.ovirt.engine.ui.webadmin.ApplicationConstants;
import org.ovirt.engine.ui.webadmin.Application... | 41.15 | 112 | 0.827461 |
6bd75f2409a7663574be77815c2257333775d2fd | 6,468 | package com.lesjuz.movy.Adapter;
import android.content.Context;
import android.content.res.Configuration;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
impo... | 31.705882 | 166 | 0.64363 |
608bfeccc36ef431b0d7c75daf76a0ab8c9cfc37 | 1,236 | package org.helper.gerrit.core.main;
import java.io.IOException;
import java.util.List;
import org.helper.gerrit.core.GerritApiUtils;
import org.helper.gerrit.core.PropertyUtils;
import org.helper.gerrit.model.GerritProperties;
import com.google.gerrit.extensions.api.GerritApi;
import com.google.gerrit.extensions.comm... | 35.314286 | 96 | 0.724919 |
7896f84ff1e891f56465866aef0d81c1e9f62e30 | 5,056 | package net.whg.we.ui;
import net.whg.we.utils.ComponentList;
import net.whg.we.utils.ObjectPool;
import net.whg.we.utils.Poolable;
public class UIStack
{
private ComponentList<UIComponent> _components = new ComponentList<>();
private ObjectPool<ComponentAction> _componentActions =
new ObjectPool<UIStack.Compone... | 18.588235 | 72 | 0.668513 |
e7cf93508bbea134e4be34a9dcbe8b224c58851a | 275 | package benchmarkdp.datagenerator.generator.ocl;
import benchmarkdp.datagenerator.core.ModelType;
import benchmarkdp.datagenerator.core.TestCase;
public interface OCLEvaluatorInterface {
public ModelType getModelType();
public void evaluateTestModel(TestCase tm);
}
| 21.153846 | 48 | 0.829091 |
53f84ae3783150d8014426e2b2e830bb2bc8ac45 | 3,832 | package com.wisdom.acm.sys.mapper;
import com.wisdom.acm.sys.po.SysOrgPo;
import com.wisdom.acm.sys.vo.ProjectTeamUserVo;
import com.wisdom.acm.sys.vo.SectionTreeVo;
import com.wisdom.acm.sys.vo.SectionVo;
import com.wisdom.acm.sys.vo.SysOrgUserVo;
import com.wisdom.base.common.mapper.CommMapper;
import com.wisdom.bas... | 26.797203 | 154 | 0.652401 |
9171b9f52790e1c4b6e38763f9c298e6ac4882a8 | 3,605 | package tech.quantit.northstar.strategy.api.indicator;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.springframework.util.StringUtils;
import lombok.extern.slf4j.Slf4j;
import tech.quantit.northstar.strategy.api.BarDataAware... | 21.716867 | 93 | 0.672954 |
9aed1c64677058d0a94a1ab6d69ed0d4c209fcec | 302 | package no.nav.foreldrepenger.mottak.infotrygd;
import no.nav.vedtak.exception.IntegrasjonException;
import no.nav.vedtak.feil.Feil;
public class InfotrygdPersonIkkeFunnetException extends IntegrasjonException {
public InfotrygdPersonIkkeFunnetException(Feil feil) {
super(feil);
}
}
| 27.454545 | 78 | 0.798013 |
942cfec12504ef2fa32bfbc2f5c41b814aeaf0eb | 2,407 | import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import javax.swing.JFileChooser;
import javax.crypto.Cipher;
import javax.crypto.CipherOutputStream;
import javax.crypto.spec.SecretKeySpec;
import javax.swing.JOptionPane;
import java.io.*;
import java.sql.*;
import javax.s... | 34.884058 | 136 | 0.635231 |
36646bf9b974c80528ba5cee41eb4887f4f01c1b | 2,486 | package entities;
import java.util.ArrayList;
public class Order {
// ATTRIBUTES
int id;
Client client;
// Foodstuffs breakfest;
// Foodstuffs appetizers;
// Foodstuffs principal;
// Foodstuffs dessert;
ArrayList<Foodstuffs> ItensOrdered = new ArrayList<Foodstuffs>();
float value = 0;
String paymentMeth... | 24.86 | 110 | 0.66251 |
fb3d2f1b396b79c6eb7793ebea6e7b5ab2a7d112 | 694 | package org.gjgr.exam.stack;
/**
* File Name : arithmetic4j - org.gjgr.exam.stack
* CopyRright (c) 1949-xxxx:
* File Number:
* Author:gwd
* Date:on 9/9/2017
* Modify:gwd
* Time :
* Comment:
* Description:
* Version:
*/
public final class HanoiDemo {
public static void hanoi(Integer n,Character A,Charac... | 20.411765 | 77 | 0.579251 |
fce82e1ad1b3d17f53a977ca1e1fccd0d3b0f8f1 | 3,689 | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.133333 | 107 | 0.777446 |
f138eb0af9b48d14ac2714e1bd1ffacd35069a0b | 446 | package com.sallyf.sallyf.Authentication.DeniedHandler;
import com.sallyf.sallyf.Authentication.SecurityDeniedHandler;
import com.sallyf.sallyf.Container.Container;
import com.sallyf.sallyf.Exception.HttpException;
import com.sallyf.sallyf.Server.Status;
public class ForbiddenHandler implements SecurityDeniedHandler
... | 27.875 | 62 | 0.800448 |
ba9efd9264e68b5bc9c0e51c7c6457df004f597a | 536 | package com.ay.test;
import org.junit.Test;
import org.springframework.data.redis.core.RedisTemplate;
import javax.annotation.Resource;
/**
* redis缓存测试
*
* @author Ay
* @create 2018/07/08
**/
public class RedisTest extends BaseJunit4Test {
@Resource
private RedisTemplate redisTemplate;
@Test
p... | 20.615385 | 71 | 0.675373 |
cce48811927bc9dabef09cfcc857700243cbe7d5 | 5,281 | package com.exiro.buildingList.delivery.agorashop;
import com.exiro.buildingList.Building;
import com.exiro.buildingList.BuildingCategory;
import com.exiro.buildingList.delivery.Agora;
import com.exiro.buildingList.delivery.AgoraShop;
import com.exiro.object.Case;
import com.exiro.object.City;
import com.exiro.object.... | 28.701087 | 183 | 0.571293 |
0ce779498c5666d52c070908a8749d069e430e60 | 505 | package com.lanluyug.leetCode.algorithm.simple;
import java.util.HashMap;
import java.util.Map;
public class Unique {
public boolean isUnique(String astr) {
Map map = new HashMap<>();
boolean flag = true;
for (int i = 0; i < astr.length(); i++) {
char s = astr.charAt(i);
... | 22.954545 | 49 | 0.481188 |
c932d4dc1ec95753adecfa41d52fa0911b55698a | 4,679 | package org.sagebionetworks.web.client.widget.table.v2.results.facets;
import static org.sagebionetworks.repo.model.table.TableConstants.NULL_VALUE_KEYWORD;
import static org.sagebionetworks.web.client.DisplayUtils.DO_NOTHING_CLICKHANDLER;
import java.util.HashSet;
import java.util.Set;
import org.sagebionetworks.repo... | 38.352459 | 124 | 0.783928 |
51f701183ee058b32159db4b6ab1b467215d2805 | 1,587 | package com.egangotri.monierWilliams.dao.vo;
import java.util.Calendar;
public class ClickLogMaster implements java.io.Serializable
{
private long id;
private String module;
private Calendar time;
private String ipAddress;
private String country;
private String city;
... | 15.259615 | 59 | 0.574669 |
0e4e8090b2b63c26412a887b0f8c14474cacfd64 | 2,324 | package com.lambdaschool.crudyrestauarants.controllers;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.Delet... | 34.686567 | 90 | 0.776678 |
076b8171c555214f75ab1b76867ca13f7c8200b2 | 2,044 | package ru.mdashlw.hypixel.pit.stats.util;
import com.mojang.authlib.GameProfile;
import java.lang.ref.WeakReference;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.... | 27.621622 | 110 | 0.706947 |
1e72601c62febb773080352aca582c479747f59f | 1,762 | package org.checkerframework.framework.qual;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation can be used two ways:
*
* <p>1. As a meta-annot... | 45.179487 | 108 | 0.76277 |
f52a6ab42a0816f433c6cf7f443f84d02f7f239e | 7,922 | package com.tkulpa.react.Zendrive;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
imp... | 50.782051 | 124 | 0.69124 |
ff71b2f71c8f1da95a1429b32d35698e31163e75 | 1,041 | package br.com.generation.Listas.HerancaPolimorfismo.Exercicio3;
public class Item {
private String nome;
private int quantidade;
private double preco;
private static int totalItems = 0;
public Item(String nome, int quantidade, double preco) {
this.nome = nome;
this.quantidade = quantidade;
this... | 20.82 | 73 | 0.650336 |
312a426ac78cb2bc7247ee79d7aaa26a0fc1aa60 | 116,859 | /*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... | 54.70927 | 238 | 0.640524 |
12c7e541e131b5487856eb9e67c432d55c0e7d23 | 3,758 | package de.geolykt.starloader.api.gui.screen;
import org.jetbrains.annotations.NotNull;
import de.geolykt.starloader.api.gui.Renderable;
/**
* A graphical component that can be added as a child object of a implementation of the {@link Screen} interface.
* Due to how galimulator's component hierarchy works, not eve... | 47.56962 | 135 | 0.709952 |
dd91588b81f2f2bac09765839bcf576a06bbfcf7 | 17,198 | package be.peopleware.bean_IV;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import be.peopleware.exception_I.LocalizedMessageException;
import be.peopleware.exception_I._Test_LocalizedMessageException;
import be.peopleware.i18n_I.DefaultResourceBundleLoadStrategy;
import be.peopleware.t... | 38.997732 | 92 | 0.532504 |
e579f6916bf1c912b3dc730849fdfc7948502eb6 | 12,686 | package com.tencent.weibo.api;
import org.apache.http.message.BasicNameValuePair;
import com.tencent.weibo.beans.OAuth;
import com.tencent.weibo.utils.QArrayList;
import com.tencent.weibo.utils.QHttpClient;
/**
* 关系链相关API
* @see <a href="http://wiki.open.t.qq.com/index.php/%E5%85%B3%E7%B3%BB%E9%93%BE%E7%9B%B8%E5%8... | 43.00339 | 248 | 0.67744 |
81a8324319b47de6c525402308d5c6f911d05361 | 1,372 | package ru.job4j.calculator;
/**
* Сlass Calculator.
*
* @author Evgeny Shevchenko (xxx-zet-xxx@yandex.ru)
* @version 001
* @since 07.11.2018
*/
public class Calculator {
private double result;
/**
* Method add.
* Adds two numbers.
* @param first type double.
* @param second type dou... | 22.129032 | 60 | 0.586006 |
14b109be2c4ca68840d9be9aae4ae73f06bdea7a | 365 | // This is a generated file. Not intended for manual editing.
package com.nasmlanguage.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface NASMIStruc extends PsiElement {
@NotNull
List<NASMExpr> getExprList();
@NotNull
PsiElement getIendTag();... | 18.25 | 61 | 0.758904 |
13d19513916f245ca8d025e384b7bc8e084652f6 | 887 | package com.loserico.junit.spring;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpringLiftcycleTest {
@Test
public void testLifecycle() {
System.out.println("Spring容器初始化");
System.out.println("=====================================");
... | 27.71875 | 79 | 0.630214 |
329dec1b6ebe607fb29488dd1cfccb58356ab842 | 1,635 | package de.netbeacon.xeniadiscord.util;
import de.netbeacon.xeniadiscord.modulemanagement.loader.CoreModuleLoader;
import de.netbeacon.xeniadiscord.modulemanagement.loader.ModuleLoader;
import de.netbeacon.xeniadiscord.util.extperm.ExtPermManager;
import de.netbeacon.xeniadiscord.util.log.Log;
import de.netbeacon.xeni... | 30.849057 | 79 | 0.606116 |
801afebbd2bc27d62a53f65984c3a80faf60538c | 49,731 | /*******************************************************************************
* Copyright (c) 2020-2021 Matt Tropiano
* This program and the accompanying materials are made available under
* the terms of the MIT License, which accompanies this distribution.
******************************************************... | 29.339823 | 172 | 0.642557 |
c86ffaa1030cb8056239d1fa0b09b883f28537af | 8,526 | package com.hendrix.collection;
import java.io.Serializable;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
/**
* FrequencySet is an implementation of a Set.
* frequency set allows to add and remove the same object as many times.... | 28.610738 | 107 | 0.58738 |
5b7b84983027f6ae67533be13a43618fc90641c5 | 11,156 | package net.floodlightcontroller.iphandler;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentHashMap;
import org.projectfloodlight.openflow.p... | 35.642173 | 110 | 0.726336 |
d539036ceb6460363bb4e31f2fbcab446e4bd21c | 759 | package com.github.freeacs.web;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
public class SeleniumConfig {
private WebDriver driver;
... | 29.192308 | 73 | 0.778656 |
b89830ad62c0eb03d9bf3e0f27d9bc7f3ddc0c34 | 6,661 | package gov.samhsa.ocp.ocpfis.service.mapping.dtotofhirmodel;
import gov.samhsa.ocp.ocpfis.constants.CareTeamConstants;
import gov.samhsa.ocp.ocpfis.domain.ParticipantTypeEnum;
import gov.samhsa.ocp.ocpfis.service.dto.CareTeamDto;
import gov.samhsa.ocp.ocpfis.service.dto.ParticipantDto;
import gov.samhsa.ocp.ocpfis.ut... | 47.920863 | 143 | 0.711455 |
8dd074ce97014674f6896ba1bc7e672e288525d0 | 1,013 | package net.engining.profile.invoker.check;
import net.engining.control.core.flow.FlowContext;
import net.engining.control.core.invoker.AbstractSkippableInvoker;
import net.engining.control.core.invoker.InvokerDefinition;
import net.engining.pg.support.core.exception.ErrorCode;
import net.engining.pg.support.core.exce... | 28.942857 | 92 | 0.731491 |
3522b2c6b0af58be3e3e26190269dfc4510daca2 | 1,845 | package io.github.vampirestudios.obsidian.api.obsidian.enchantments;
import io.github.vampirestudios.obsidian.api.obsidian.NameInformation;
import net.minecraft.enchantment.EnchantmentTarget;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.util.Identifier;
public class Enchantment {
public NameIn... | 30.75 | 76 | 0.685095 |
0c75c2f7e77101776e756253fe76db649bde06be | 1,525 | package ru.loolzaaa.sso.client.core.model;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.List;
import java.util.Objects;
public class User {
private Long id;
private String login;
private JsonNode config;
private String name;
private boolean enabled;
private List<String> au... | 19.805195 | 66 | 0.598033 |
fedee5baa567bfac548ed8ca9f68eba32debf7bb | 2,975 | package com.buuz135.industrial.block.resourceproduction;
import com.buuz135.industrial.block.IndustrialBlock;
import com.buuz135.industrial.block.resourceproduction.tile.LaserDrillTile;
import com.buuz135.industrial.module.ModuleResourceProduction;
import com.buuz135.industrial.utils.IndustrialTags;
import com.hrznstu... | 43.115942 | 142 | 0.696807 |
9af01107a6fda66d1a5fdeb1be81b78ae51bfaba | 2,831 | package com.vcom.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.Netty4ClientHttpRe... | 39.873239 | 121 | 0.650653 |
fc6357780f5945a056efc5dc8c50f33b4f7fcd86 | 8,286 | /*
* Copyright (c) 2016. Jan Wiemer
*/
package org.jacis.objectadapter.microstream;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;
import org.jacis.container.Jaci... | 41.848485 | 181 | 0.60922 |
2a8bf72fdd11df989c416b1a2928cb5b091a10e8 | 1,010 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: kythe/proto/common.proto
package com.google.devtools.kythe.proto;
public interface SymbolInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:kythe.proto.common.SymbolInfo)
com.google.protobuf.MessageOrBuilder {
/**
* ... | 21.956522 | 80 | 0.632673 |
d69b796b9f2259ef443d125d133ad115e5c1a96e | 1,787 | package com.huffingtonpost.chronos.agent;
import com.huffingtonpost.chronos.model.JobDao;
import com.huffingtonpost.chronos.model.JobSpec;
import com.huffingtonpost.chronos.model.PlannedJob;
import com.huffingtonpost.chronos.util.CronExpression;
import org.apache.log4j.Logger;
import org.joda.time.DateTime;
import ja... | 24.148649 | 82 | 0.669838 |
a5b30c846118261e2a49d60392b201de1d2c98a8 | 6,993 | /**
* 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... | 29.631356 | 93 | 0.68683 |
93c1f0536c45e01da5ec9f794633ffeb73e01d1b | 5,725 | /*
* 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 ... | 39.756944 | 104 | 0.752314 |
9ef208f8cb513ff8a4e9f78eb9d6e47603db137b | 1,054 | /*
* Copyright (c) Alexander <gasfull98@gmail.com> Chapchuk
* Project name: TradingPlatform
*
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
package ru.zendal.config.bundle;
import ru.zendal.config.bundle.builder.InventoryConfigBundleBuilder;
import java.util.... | 25.095238 | 96 | 0.705882 |
e06c7d9eaa2f1a5b401a3b2ce0b2c99e733c67bf | 2,663 | /**
* Copyright 2021 SPeCS.
*
* 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 writi... | 30.609195 | 118 | 0.674427 |
4154754b292e0199a22fdd0415efee77eec825a1 | 1,246 | package com.mtinge.yuugure.services.database.props;
import com.mtinge.yuugure.data.postgres.ReportTargetType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.sql.Timestamp;
@AllArgsConstructor
@NoArgsCons... | 23.961538 | 99 | 0.695827 |
b79f06de8afa037b0dab4c281ceeee2fafe987cf | 1,779 |
package eu.datex2.schema._2._2_0;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* <p>Java class for OpenlrExtendedLinear complex type.
*
* <p>The following schem... | 28.238095 | 128 | 0.690275 |
f3d8e0544e27775e72c4e59fdb1f2dac7a2b2898 | 1,394 | /**********************************************************************************
*
* $Header: /opt/CVS/osp/src/portfolio/org/theospi/portfolio/list/intf/CustomLinkListGenerator.java,v 1.2 2005/08/30 21:27:09 jellis Exp $
*
***********************************************************************************
*
* ... | 39.828571 | 138 | 0.598278 |
29ea7aa62e7f49d445f4028f2dfda917450df503 | 2,699 | package com.badlogic.audio.samples.part4;
import java.awt.Color;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import com.badlogic.audio.io.AudioDevice;
import com.badlogic.audio.io.MP3Decoder;
import com.badlogic.audio.visualization.Plot;
/**
* A simple example o... | 35.051948 | 94 | 0.72286 |
2573de8de7303451a66e287549c67b5188e361cf | 1,963 | package com.beanflame.ucemod.registry;
import com.beanflame.ucemod.block.tile.TileEntityCoreBlock;
import com.beanflame.ucemod.render.EntityRenderFactory;
//import com.douyan.ucemod.render.entity.RenderBasicMiningShip;
import com.beanflame.ucemod.render.tesr.TESRCoreBlock;
import net.minecraft.client.renderer.entity.R... | 36.351852 | 153 | 0.78757 |
3cfa9b972c7fa8a167581c70d1203bffaf010d87 | 5,718 | /*
* Copyright 2017 Exorath
*
* 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... | 43.648855 | 180 | 0.696572 |
4997d5fbf4e3f068a188a44df4a68cc773553e90 | 1,217 | package com.tutorialspoint.collections;
import java.util.TreeSet;
public class TreeSetDemo {
public static void main(String args[]) {
// Create a tree set
TreeSet<String> ts = new TreeSet<String>();
// Add elements to the tree set
ts.add("C");
ts.add("A");
ts.add("B");
ts.a... | 35.794118 | 98 | 0.565325 |
d7be0fc99bb6fc4dba1abbdf9289e4fee57ca5ae | 3,568 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... | 32.436364 | 95 | 0.621917 |
ec1c03ccd8abdca6551f8c6f4ef3d55480cb7a85 | 1,569 | /**
* Copyright (c) 2018 Evolveum
*
* 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... | 25.721311 | 97 | 0.751434 |
208bbaddf9f4bd8e3d918e193234b1c6bc76633f | 5,694 | /*
* Copyright 2017 Huawque
*
* 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,... | 31.285714 | 113 | 0.584299 |
a4c812f4f9a69a645579bd1b19ca80c577e94d7e | 558 | package tv.dyndns.kishibe.qmaclone.client.game.accuracyrate;
import tv.dyndns.kishibe.qmaclone.client.packet.PacketProblemMinimum;
public class AccuracyRateNormalizerMarubatsu implements AccuracyRateNormalizable {
@Override
public double normalize(PacketProblemMinimum problem) {
int good = problem.good;
int ba... | 23.25 | 82 | 0.68638 |
b5ab5c1ab732e32acbdda7ee0059bd2a5d7d2905 | 4,473 | package de.metas.ui.web.window.descriptor.factory;
import de.metas.bpartner.BPartnerId;
import de.metas.bpartner.quick_input.service.BPartnerQuickInputService;
import de.metas.logging.LogManager;
import de.metas.ui.web.window.datatypes.WindowId;
import de.metas.ui.web.window.descriptor.DocumentEntityDescriptor;
import... | 35.220472 | 125 | 0.788509 |
c892e1dd6d4dfbe22383dd7012c3a23a0e80a516 | 1,250 | package com.snapscreenapp.supervisor.impl;
import com.snapscreenapp.supervisor.MonitoringService;
import com.snapscreenapp.supervisor.PersistenceService;
import com.snapscreenapp.supervisor.ViewerService;
import com.snapscreenapp.supervisor.model.Account;
import com.snapscreenapp.supervisor.model.DeviceConnectio... | 34.722222 | 100 | 0.7936 |
cf2476f9cb6d42039b5b3a751fffcc1a9188a8ff | 2,104 | /*
* Copyright 2014 Semyon Proshev
*
* 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 ... | 24.183908 | 75 | 0.654943 |
30076b746937865f35b1e05f30712169713438b1 | 657 | package edu.ml.hw1.lei;
public class Counter {
private String name;
private int count;
private String code;
public static Counter getMax(Counter a, Counter b) {
return a.getCount() > b.getCount() ? a : b;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
... | 15.642857 | 54 | 0.6621 |
3ceb18a6daf002d6f69b696363c731028d7929b2 | 4,264 | /*
Copyright 2012-2013 Eduworks 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... | 27.509677 | 82 | 0.674953 |
6c9cc486063449c72bf416511b6eac49024e8e0b | 1,400 | //
// ========================================================================
// Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 30.434783 | 78 | 0.569286 |
8737fb83055cdedfbcb38d2a1e019824c647a9d9 | 1,449 | package uk.ac.cam.cl.dtg.segue.dao.content;
import ma.glasnost.orika.CustomConverter;
import ma.glasnost.orika.MappingContext;
import ma.glasnost.orika.metadata.Type;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* AudienceOrikaConverter A specialist converter class to work wi... | 42.617647 | 119 | 0.710835 |
a8005c0ac669b55568339d72efad2a31653dc387 | 2,592 | package tetris.model;
public class Game {
private final Board board;
private Piece nextPiece;
private boolean playing = false;
private boolean paused = false;
private boolean dropping = false;
private boolean gameOver = false;
private int freeFallIterations;
private int ... | 22.153846 | 75 | 0.504244 |
fb8c61994aa83413432d095f1575551656ea4d95 | 417 | package com.truthbean.ffmpeg.constant;
/**
* @author truthbean
*/
public enum ImageStreamType {
/**
* yuv420p
*/
YUV(0),
/**
* rgba
*/
RGB(1),
/**
* jpeg
*/
JPEG(2);
private int value;
ImageStreamType(int value) {
this.value = value;
}
... | 11.914286 | 38 | 0.467626 |
8bcbc2e960a51b18e0dce011c25c097448274da8 | 8,025 | package org.apereo.cas.web.flow.resolver.impl.mfa.adaptive;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.CentralAuthenticationService;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.AuthenticationException;
import org.apereo.cas.authentication.AuthenticationService... | 52.11039 | 136 | 0.672025 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.