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 |
|---|---|---|---|---|---|
e1900b374289bf9205def3330199d917616e4add | 1,318 | package com.quantum.steps;
import com.qmetry.qaf.automation.step.QAFTestStepProvider;
import com.qmetry.qaf.automation.ui.WebDriverTestCase;
import com.quantum.pages.*;
import com.quantum.utils.DeviceUtils;
import cucumber.api.java.en.Given;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import or... | 33.794872 | 77 | 0.74431 |
e19caa3bf02058ed9ac7da52fe5a645272a9906b | 1,505 | package com.flextrade.jfixture.behaviours.tracing;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.lang.reflect.Member;
import static org.junit.Assert.assertEquals;
public class TestMemberOnlyResponseStrategy {
private MemberOnlyResponseStrategy strategy;
private Str... | 30.714286 | 106 | 0.730233 |
bfc7c5bc218ca981bed9c6ea24538fba193c7946 | 2,237 | package com.yuuko.modules.nsfw.commands;
import com.google.gson.JsonObject;
import com.yuuko.MessageDispatcher;
import com.yuuko.Yuuko;
import com.yuuko.events.entity.MessageEvent;
import com.yuuko.io.RequestHandler;
import com.yuuko.modules.Command;
import net.dv8tion.jda.api.EmbedBuilder;
import java.util.Arrays;
i... | 54.560976 | 685 | 0.652213 |
4c54d3f3c6bf0ec24381f55c04fc56c5767f3e3d | 8,482 | /**
* Copyright Arnaud Bailly, 2003-2013. All Rights Reserved.
*
*
*/
package fr.lifl.jaskell.compiler.bytecode;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.*;
import fr.lifl.jaskell.compiler.CompilerPass;
import fr.lifl.jaskell.compiler.types.PrimitiveType;
import ... | 29.866197 | 120 | 0.506366 |
c40051ad4c73428daf362d23d168113f8adc8395 | 14,137 | package com.caishi.zhanghai.im.ui.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextV... | 40.507163 | 331 | 0.557332 |
6b741d4e196658bf2b0ed96a9c7ace2fc8593c93 | 8,283 | package cn.hippo4j.config.service.biz.impl;
import cn.hippo4j.common.config.ApplicationContextHolder;
import cn.hippo4j.common.toolkit.*;
import cn.hippo4j.config.event.LocalDataChangeEvent;
import cn.hippo4j.config.mapper.ConfigInfoMapper;
import cn.hippo4j.config.mapper.ConfigInstanceMapper;
import cn.hippo4j.config... | 39.255924 | 167 | 0.653024 |
791389c3b59d61886fb3408eb51376daa2c4dc4c | 9,028 | package com.parkinfo.web.parkCulture;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.vod.model.v20170321.CreateUploadVideoResponse;
import com.aliyuncs.vod.model.v20170321.GetPlayInfoResponse;
import com.aliyuncs.vod.model.v20170321.RefreshUploadVideoResponse;
import com.parkinfo.common.Result;
im... | 42.584906 | 145 | 0.701706 |
5ebbefee217fa5a50c61f8676cc0a8c10efc4def | 536 | package com.metricalab.saying.converter;
import java.util.Date;
import com.metricalab.saying.entity.Saying;
import com.metricalab.saying.pojo.SayingDTO;
public class SayingConverter implements GenericConverter<Saying, SayingDTO> {
@Override
public SayingDTO apply(final Saying input) {
return new SayingDTO(input... | 26.8 | 94 | 0.766791 |
1c09a49b4932982585af0b22d715b4e61038308c | 601 | package nessiesson.usefulmod.mixins;
import nessiesson.usefulmod.LiteModUsefulMod;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLiquid;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import org.spongepowered.asm.mixin.Mixin;
@Mixin(BlockLiquid.class)
p... | 28.619048 | 87 | 0.821963 |
7a0e1a86b901b42d745fd312d8c29db3e410616b | 439 | package instruction.TurtleCommands;
import java.util.List;
import instruction.InstructionData;
public class Forward extends TurtleCommand{
public Forward(InstructionData instructionData, List<String> args, String myText) {
super(instructionData, args, myText);
}
@Override
public double execute() {
double ... | 20.904762 | 84 | 0.779043 |
08dcfc49214da6fd398eea3295921e8aa48f3953 | 2,044 | /*
* This software is licensed under the Apache License, Version 2.0
* (the "License") agreement; 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 agree... | 29.623188 | 82 | 0.704501 |
a8414d95355c9b0977f06615bfe8910ab5eb177f | 260 | package com.gpmall.user.dto;
import com.gpmall.commons.result.AbstractResponse;
import lombok.Data;
/**
* 腾讯课堂搜索【咕泡学院】
* 官网:www.gupaoedu.com
* 风骚的Mic 老师
* create-date: 2019/7/31-19:11
*/
@Data
public class HeadImageResponse extends AbstractResponse {
}
| 17.333333 | 57 | 0.742308 |
1c7e89284850f44d257045de187b1d7b105bebb8 | 582 | package com.atjl.util.thread.domain;
public class ThreadStatus {
private String id;
private String state;
private Long startTs;
public Long getStartTs() {
return startTs;
}
public void setStartTs(Long startTs) {
this.startTs = startTs;
}
publi... | 15.72973 | 43 | 0.542955 |
b68b86f5ad06495f154de83c79477dd74b01b161 | 1,769 | package com.github.thewilly.jpanda.client;
import com.github.thewilly.jpanda.client.exception.JobNotFoundException;
import com.github.thewilly.jpanda.client.exception.MasterNodeNotAvailableException;
import com.github.thewilly.jpanda.client.exception.ResultsNotAvailableException;
import com.github.thewilly.jpanda.core... | 31.035088 | 106 | 0.712267 |
d37c74e781ceaca34673fb2ee903f82911907709 | 278 | package org.tron.tronj.client;
public class IllegalException extends Exception {
public IllegalException(){
super("The query failed, please check if the parameters are correct.");
}
public IllegalException(String message){
super(message);
}
}
| 23.166667 | 79 | 0.690647 |
c414020b77d9310dd8712988c294719f3038259b | 2,781 | package net.saka1.joptparse.parser;
import net.saka1.joptparse.util.Tuple;
import net.saka1.joptparse.util.Util;
import java.util.*;
import java.util.function.BinaryOperator;
import java.util.stream.Collectors;
public class ParseResult {
private final Map<String, List<String>> argsMap;
private final List<Str... | 31.247191 | 95 | 0.641496 |
0847b960ddbec968044af9ab2e51ffe67bf97dff | 224 | package ibm.gse.orderqueryms.app;
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
public class NativeOrderQueryResourceIT extends OrderQueryResourceTest {
// Execute the same tests but in native mode.
} | 24.888889 | 72 | 0.8125 |
aaab4e3f56345b1b514dd34ed07cf0907294ef52 | 2,789 | package com.github.bbonanno;
import org.junit.Test;
import org.reflections.Reflections;
import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.scanners.SubTypesScanner;
import org.reflections.scanners.TypeAnnotationsScanner;
import javax.ws.rs.*;
import java.lang.annotation.Annotation;
impor... | 38.736111 | 138 | 0.714593 |
b62d9fb2f0d44996fe9abbe27e985eea7607376c | 626 | package com.kchmielewski.sda.concurrency.task16;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.stream.IntStream;
public class OneThreadedExecutor {
public static void main(String[] args) {
ExecutorService executorService = Execu... | 32.947368 | 111 | 0.758786 |
7fd993e62dab69393af6085e5131d3a241b44488 | 2,167 | package datadog.trace.instrumentation.netty38.client;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.activateSpan;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.noopSpan;
import static datadog.trace.instrumentation.netty38.client.NettyHttpClientDecorator.DECORATE;
import... | 38.696429 | 93 | 0.777573 |
f08f381129f28681fb955ab9f124974a51c276de | 4,576 | package cn.edu.cug.cs.gtl.series.common.sax;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Implement Iterable doubly linked list.
*
* @param <T> the elemnt type.
* @author psenin
*/
public class DoublyLinkedSortedList<T> {
private class MyIterator imp... | 26 | 82 | 0.468313 |
3c9ca682171073b3db00c0636ad347e2f4aa8f4c | 560 | package com.somecompany.phoneBook.exception;
import org.springframework.stereotype.Component;
/**
* Exception when customer phone number is invalid.<br/>
*
* @author patrick
*
*/
@Component
public class InvalidCustNumException extends Exception {
private static final long serialVersionUID = 1L;
private stat... | 24.347826 | 122 | 0.757143 |
f70f1cfb69b548cefb6957098208b8103e3a7199 | 14,219 | package io.metadew.iesi.metadata.configuration.user;
import io.metadew.iesi.common.configuration.metadata.repository.MetadataRepositoryConfiguration;
import io.metadew.iesi.common.configuration.metadata.tables.MetadataTablesConfiguration;
import io.metadew.iesi.connection.tools.SQLTools;
import io.metadew.iesi.metadat... | 58.27459 | 191 | 0.67016 |
f52d9a5115de612b0cdac51dcd04e6cbdbe91efa | 1,880 | package com.devicehive.shim.kafka.serializer;
/*
* #%L
* DeviceHive Shim Kafka Implementation
* %%
* Copyright (C) 2016 DataArt
* %%
* 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
* ... | 29.84127 | 90 | 0.704255 |
923a7b7b585b572d8c60825e2857f7a5a206d7f3 | 183 | package ca.bc.gov.educ.api.sld.notification.constants;
/**
* The enum Topics.
*/
public enum Topics {
/**
* The Pen services events topic.
*/
PEN_SERVICES_EVENTS_TOPIC
}
| 15.25 | 54 | 0.677596 |
fb3720742e3d1ac5249898bace31fa2e40384e62 | 947,035 | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest35 {
public static boolean debug = false;
@Test
public void test17501() throws Throwable {
if (debug)
System.out.for... | 58.814744 | 172 | 0.650328 |
1c19fdf0422ee944aa21d2d55f537f8375e112ec | 4,462 | package com.hortonworks.iotas.streams.schema;
import com.codahale.metrics.annotation.Timed;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.hortonworks.iotas.common.util.WSUtils;
import com.hortonworks.iotas.streams.catalog.service.CatalogService;
import com.hortonworks.iotas.streams.catalog.service.St... | 45.530612 | 133 | 0.743837 |
2948b6745f00dd809a46c5e987c09430ebfedf87 | 12,073 | package com.issac.studio.app;
import com.alibaba.fastjson.JSONObject;
import com.issac.studio.app.entity.domain.*;
import com.issac.studio.app.entity.domain.config.handle.AbstractHandleConfig;
import com.issac.studio.app.entity.domain.config.sink.AbstractSinkConfig;
import com.issac.studio.app.entity.domain.config.sou... | 37.377709 | 146 | 0.601673 |
cd3ea92122f21c30c1cfc70e45e30e71d974877a | 2,700 | /*
Copyright (c) 2015, Dominika Salawa <vereena42@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list ... | 30.337079 | 84 | 0.671481 |
287daa0be1498ed60c61773f0e95797044a18a4c | 4,211 | package neqsim.processSimulation.processEquipment;
import neqsim.processSimulation.SimulationInterface;
import neqsim.processSimulation.controllerDevice.ControllerDeviceInterface;
import neqsim.processSimulation.mechanicalDesign.MechanicalDesign;
import neqsim.thermo.system.SystemInterface;
/**
* <p>
* ProcessEquip... | 22.163158 | 99 | 0.597483 |
c4dc0a616c8e3cd0118377935138ce3ef35c620e | 696 | package com.mstruzek.ccbyte.attribute.typeant;
import com.mstruzek.ccbyte.annotation.ArrayLength;
import com.mstruzek.ccbyte.annotation.Discriminator;
import com.mstruzek.ccbyte.annotation.Range;
import com.mstruzek.ccbyte.attribute.ant.element_value_pair;
import com.mstruzek.ccbyte.attribute.typeant.target.supertype_... | 38.666667 | 69 | 0.831897 |
5083b5cd17be10f8b44fcab1c56673e14c7de24c | 4,030 | /**
* Copyright (C) 2019 Regents of the University of California.
* @author: Jeff Thompson <jefft0@remap.ucla.edu>
* @author: From the PSync library https://github.com/named-data/PSync/blob/master/PSync/producer-base.cpp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... | 35.982143 | 106 | 0.734243 |
a7019f1abb2eb08b9845190135f29b9393c70655 | 323 | package com.jay.thread.chap01;
import net.jcip.annotations.NotThreadSafe;
/**
* UnsafeSequence
*
* @author Brian Goetz and Tim Peierls
*/
@NotThreadSafe
public class UnsafeSequence {
private int value=0;
/**
* Returns a unique value.
*/
public int getNext() {
return ++value;
}... | 14.043478 | 42 | 0.634675 |
be431af605576b6f7251f957947f59b697be3f89 | 6,820 | /*
* Copyright 2010 Proofpoint, 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 agree... | 31.72093 | 137 | 0.683578 |
21263a501eb066e85d0555f84d61256419091448 | 780 | package org.apache.commons.io.test;
import java.io.IOException;
import java.net.URL;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.springframework.util.ResourceUtils;
public class ResourceTest {
@Test
public void test() throws IOException {
System.out.println("test2");... | 24.375 | 82 | 0.7 |
f3b0b9edcaebd57a1a819f8fcdfbbddeb29c57fc | 2,580 | /*
*
* Copyright (c) 2006-2020, Speedment, Inc. 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 requi... | 28.043478 | 80 | 0.620155 |
ce25b7ca4cfd1be692dcf20be54b9fed11d9a15f | 5,292 | /*
* This file is part of JFlowMap.
*
* Copyright 2009 Ilya Boyandin
*
* 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 r... | 28.451613 | 102 | 0.652116 |
eef5b7d576cc8651cfdb4f9b368ac27c6e4ccf01 | 2,281 | /**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... | 35.640625 | 116 | 0.738273 |
ad4b5a451b7d427dd4c69873072a6a2124ea039b | 3,337 | package fi.riista.feature.account.user;
import fi.riista.security.authentication.TestAuthenticationTokenUtil;
import fi.riista.security.authorization.EntityAuthorizationStrategy;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.Mockito;
im... | 36.67033 | 109 | 0.757567 |
36b1d35abc827b220e5ea065919a506c7ef51edc | 11,444 | /*
* 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 View;
import javax.swing.*;
/**
*
*/
public class AddCars extends javax.swing.JFrame {
/**
* Creates new form Add... | 51.782805 | 194 | 0.648637 |
e16f1666e2182e4706a126d942347e6f59a47a09 | 1,428 | package ru.job4j.collectionspro.list;
import org.junit.Before;
import org.junit.Test;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class ContainerListTest {
private ContainerList<Integer> li... | 25.5 | 72 | 0.601541 |
228a4b2b64f0deb8df9b71ce84e27ce6981ddb3e | 3,496 | package ljl.com.homuraproject.Adapter;
import android.content.ClipData;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.io.File;
i... | 35.673469 | 105 | 0.645881 |
ee8266582894f435b4c4aaa38f9391c284a2f365 | 3,947 | /*
* Copyright 2019 Mark Tripoli
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, dist... | 42.44086 | 129 | 0.731948 |
c359c576209b7e1c6fa470e7261947a5bccdeb0e | 4,631 | package org.apereo.cas.web.flow.authentication;
import org.apereo.cas.authentication.AuthenticationCredentialsThreadLocalBinder;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlan;
import org.apereo.cas.authentication.AuthenticationHandler;
import org.apereo.cas.authentication.AuthenticationServiceS... | 43.688679 | 131 | 0.725545 |
51b3a6a563d73427eb2b4b2f499330bab37476fa | 2,657 | package al.jdi.dao.model;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
imp... | 26.04902 | 97 | 0.703049 |
5822246073ab7c3137024ae48c43ef51dcf1f4b4 | 1,343 | package ru.temsky.ipgeo.service;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class PageParserJsoup implements PageParser {
private Logger logger = Logg... | 26.86 | 109 | 0.695458 |
36fc05437f576492af6ea65969f55e5a5ada5ba6 | 9,007 | 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 ... | 15.266102 | 810 | 0.773509 |
b3653d781897f7e569dfefdf4e31d2d7e715d7ed | 4,817 | package kr.ac.konkuk.ccslab.cm.info;
import java.io.IOException;
import java.nio.channels.*;
import kr.ac.konkuk.ccslab.cm.entity.CMChannelInfo;
import kr.ac.konkuk.ccslab.cm.entity.CMList;
import kr.ac.konkuk.ccslab.cm.entity.CMUnknownChannelInfo;
import kr.ac.konkuk.ccslab.cm.event.CMBlockingEventQueue;
import kr.ac... | 23.965174 | 96 | 0.773095 |
e3869bb29dad1d931c55e186368183364ca70e4f | 706 | package com.ixuea.courses.mymusic.domain;
/**
* Created by smile on 02/03/2018.
*/
public class Session extends Base{
private String id; //当前用户的user id
private String token;
/**
* 聊天用的token
*/
private String im_token;
public String getIm_token() {
return im_token;
}
p... | 17.219512 | 46 | 0.580737 |
4d221cd35beed14c22c56368585cc73be160d874 | 7,717 | /*
* Copyright (c) 2020. ForteScarlet All rights reserved.
* Project simple-robot-core
* File CoreSystem.java
*
* You can contact the author through the following channels:
* github https://github.com/ForteScarlet
* gitee https://gitee.com/ForteScarlet
* email ForteScarlet@163.com
* QQ 1149159218
*... | 34.918552 | 221 | 0.60749 |
c0efb9c81dc349160631dd0ca4bd3ae64f3c5b9c | 616 | package com.massoftware.c.persist.dao.ds.ex;
import java.sql.SQLException;
import com.massoftware.c.persist.dao.ds.info.ConnectionInfo;
import com.massoftware.c.persist.dao.ds.info.Statement;
public class DeleteForeignKeyViolationException extends DeleteException {
public DeleteForeignKeyViolationException(SQLExce... | 29.333333 | 90 | 0.715909 |
5e4fc058d5c7fc8b49b45ca6d828b1472979772a | 1,396 | package org.test.towerdefense;
public class TowerLevel {
public TowerLevel(int cost, float range, int damage, float reloadTime,
float releaseTime, float upgradeTime) {
this.setCost(cost);
this.setRange(range);
this.setDamage(damage);
this.setReloadTime(reloadTime);
this.setReleaseTime(releaseTime);
t... | 18.864865 | 71 | 0.745702 |
07179bca498c5a34db3e4ac4330682536dd04f64 | 3,916 | package kalang.compiler.compile.codegen.op;
import kalang.compiler.util.Exceptions;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static org.objectweb.asm.Opcodes.*;
/**
* @author KasonYang
*/
public class OpOptimizer {
public void optimize(OpCollector... | 30.59375 | 121 | 0.474974 |
20870f029c509ad3de81231bc33ac2208d83431b | 1,122 | package com.acme.architecture.common.entity;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.Serializable;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.acme.architecture.common.entity.example.ExampleCoverageCustomEntitySerializableClass;
import com... | 33 | 100 | 0.855615 |
57b8e44c04987106d4d54cea6ce29e015cb27428 | 12,069 | package de.jeha.photo.mosaic;
import de.jeha.photo.mosaic.concurrents.MosaicThreadPoolHandler;
import de.jeha.photo.mosaic.core.*;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.time.StopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.imageio.ImageIO;
import j... | 43.413669 | 146 | 0.601458 |
76da5a509dfc9291a96471c206b46df6345a8686 | 14,515 | /*
* JBoss, Home of Professional Open Source
* Copyright 2017 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | 37.799479 | 106 | 0.566931 |
6c156ad0074ddee11dd4e055d54542c798d6965f | 768 | package ssh.domain;
import java.util.ArrayList;
import java.util.List;
/**
* 角色对象
* Created by liang on 2018/4/4.
*/
public class Role extends BaseDomain {
private String name;//角色名称
private String sn; //角色编码
//一个角色拥有多个权限,一个权限可以赋给多个角色
private List<Permission> permissions = new ArrayList<Permissio... | 18.285714 | 71 | 0.626302 |
c8b8c4a20868f5cb6dc3a1a73ea96ed94894c7bc | 3,321 | /*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | 27.221311 | 94 | 0.642276 |
3f35fb4d2b0f1fad80e588dc69cd2aed8edab55e | 2,155 | /*
* 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 MomentFunctions;
/**
*
* @author Will_and_Sara
*/
public class BasicProductMomentsHistogram extends BasicProductMoments{
... | 39.181818 | 133 | 0.628306 |
7eef66db49355735c250d21723a4f2206ed3b3c2 | 335 | package net.dzikoysk.funnyguilds.data.database.element;
public enum SQLType {
INT("int"),
BIGINT("bigint"),
VARCHAR("varchar"),
TEXT("text"),
BOOLEAN("boolean");
private final String type;
SQLType(String type) {
this.type = type;
}
public String getName() {
return... | 16.75 | 55 | 0.59403 |
cfd993a9608ab4a4956e1bcd2746cb02c5f75d24 | 2,626 | package redstone.multimeter.client.gui.screen;
import org.lwjgl.glfw.GLFW;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import redstone.multimeter.client.gui.CursorType;
public class ScreenWrapper extends Screen {
private final ... | 22.444444 | 108 | 0.73115 |
e8804206b23545f562a602697c3e97c05b8cffdf | 554 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
package tla2sany.drivers;
/**
* Exception thrown by SANY on errors
* @author Leslie Lamport
*/
public class FrontEndException extends Exception {
// SZ Feb 20, 2009: fixed the exception chaining
// instead of having the cause as a member, the
... | 26.380952 | 63 | 0.696751 |
745488cb8d192f3abb68900dfb01cef3481adc30 | 23,687 | package com.github.cc3002.finalreality.gui;
import com.github.cc3002.finalreality.Controller.GameController;
import com.github.cc3002.finalreality.model.character.Enemy;
import com.github.cc3002.finalreality.model.character.ICharacter;
import com.github.cc3002.finalreality.model.character.IPlayerCharacter;
import com.... | 37.243711 | 149 | 0.67784 |
3d6eb6bf5671c923296db4fc7bb0e68d76b178ea | 2,971 | /*
* Copyright 2006-2021 Prowide
*
* 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.011111 | 82 | 0.668798 |
ce52d95037f44d8b6e96d2362f3b3e9c1413cc73 | 403 | package com.tngtech.archunit.library.dependencies.testexamples.cyclewithunbalanceddependencies;
/**
* Marker class to find root package of slices resulting in a graph with unbalanced dependencies,
* i.e. some edge has only one dependency, some edge many dependencies, so we can test that
* dependencies are omitted i... | 40.3 | 97 | 0.80397 |
eec60f8eda58db4c1fd5fdfee467292e985f5145 | 18,242 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | 30.866328 | 94 | 0.622191 |
e16bd25dbdde1b3819ed0ce1632cf307d5e2db91 | 3,420 | package com.trigyn.jws.dbutils.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.DigestInputStream;
import java.security.MessageDigest;... | 33.861386 | 110 | 0.758187 |
d41798070923b3294caeec743acdc4ba0a925faf | 3,974 | package com.example.david.technical_coding_test.view.pager;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.HashMap;
import java.util.Sta... | 27.034014 | 121 | 0.646452 |
04e420859ccdc44c97466fba9f29302cafb0351c | 2,020 | package me.idra.multiblocksystem.commands;
import java.util.Arrays;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.idra.multiblocksystem.bases.BaseCommand;
import me.idra.multiblocksystem.h... | 28.857143 | 122 | 0.739109 |
02411c4701f6b38a71243a1288cf9a2f4d772c5d | 3,023 | package com.alachisoft.ncache.samples.compactSerializationImpl;
import com.alachisoft.ncache.serialization.core.io.ICompactSerializable;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectInput;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectOutput;
import java.io.IOException;
import java.... | 26.752212 | 109 | 0.652663 |
ad106a43acd12a99bdccf0f4a552beea42e199d3 | 2,126 | package com.youlai.mall.oms.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.youlai.common.base.Query;
import com.youlai.common.mybatis.utils.PageUtils;
i... | 37.964286 | 118 | 0.719191 |
8a87b5d0e71e1afae3a7f56f14c5fc1e1ecb4d19 | 3,044 | package com.example.android.miwok;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;
import java.util.ArrayList;... | 41.69863 | 124 | 0.686925 |
cd06fe41a3c5f75ec5dbfb29289c4f0713c2923a | 4,743 | /*
Copyright 2013 Michael DiGiovanni glass@mikedg.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 35.395522 | 156 | 0.670462 |
c3801a12ad9b565bec1257e6c141c165b1cb8c94 | 5,003 | package net.whxxykj.maya.app.repository;
import java.util.List;
import java.util.Map;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import net.whxxykj.maya.common.repository.BaseRepository;
import net.whx... | 79.412698 | 454 | 0.789926 |
e86189f85daf4b08d39600101474a263d2c5c9d6 | 9,922 | package com.github.ciselab.lampion.transformations.transformers;
import com.github.ciselab.lampion.transformations.*;
import spoon.reflect.code.BinaryOperatorKind;
import spoon.reflect.code.CtLiteral;
import spoon.reflect.code.CtVariableRead;
import spoon.reflect.declaration.CtElement;
import spoon.reflect.declaration... | 38.607004 | 144 | 0.644124 |
5b21d61be7b21e925de747ed7aa07f73a24a7e49 | 1,867 | /*
* Copyright 2003-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 30.606557 | 90 | 0.719871 |
4af59acb515c0228ad40247c3cc8bbeb307e9506 | 3,003 | /**
*
*/
package com.blockhouse.android.poreceiving;
import java.util.ArrayList;
import java.util.List;
/**
* @author mbarr
* Date Created: Jul 29, 2013
*
*/
public class RcvRecord {
private final String itemNum;
private final String lineNum;
private int reqDate = -1;
private final double ... | 23.833333 | 215 | 0.584416 |
737ea75019dee5ee24834f800975ddaab46ea978 | 351 | package com.levelapp.annotation.chopperable;
/**
* Use this interface to prepare own implementation of object destroying
* @param <T> is the annotated field
* @param <E> is enclosed object
*
* @author rafaldziuryk on 27.12.16.
*/
public interface Chopperable<T, E> {
int DEFAULT_LEVEL = 20;
void chopp(T ta... | 21.9375 | 72 | 0.7151 |
903d5335167bf7e762f302590e7b4e1ab93ffe4f | 2,791 | // ============================================================================
//
// Copyright (C) 2006-2019 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 receiv... | 22.508065 | 87 | 0.638123 |
f7eb97d928ab94cc7b8844e10f32f7fb469b26ee | 3,022 | package edu.virginia.vcgr.genii.container.cservices.history;
import java.util.Map;
import edu.virginia.vcgr.genii.client.context.ICallingContext;
import edu.virginia.vcgr.genii.client.history.HistoryEventCategory;
import edu.virginia.vcgr.genii.client.history.HistoryEventLevel;
import edu.virginia.vcgr.genii.client.h... | 43.797101 | 120 | 0.841827 |
98fb0923b19f855768099b749884dfdefdbe84d3 | 40,404 | /*
* 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 ... | 32.092137 | 113 | 0.588506 |
4263575509a0a6d5c8c843177407ebb07d87dc56 | 4,421 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 49.674157 | 177 | 0.775843 |
0ac7484ec01e29a3e9c716b0170ab5d40a221fea | 373 | package com.wikipedia.feed.announcement;
import androidx.annotation.NonNull;
import com.wikipedia.feed.model.CardType;
public class FundraisingCard extends AnnouncementCard {
public FundraisingCard(@NonNull Announcement announcement) {
super(announcement);
}
@NonNull @Override public CardType t... | 21.941176 | 64 | 0.742627 |
57909fba82b9c245f3160ff5b6a14aca3b97c4ff | 1,372 | package com.redislabs.provider.redis;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import java.io.Serializable;
import java.util.Set;
public class JedisClusterPlus extends JedisCluster implements Serializable {
pub... | 45.733333 | 104 | 0.761662 |
cf34d74d972ab501ae57c0b629a450310c45acf4 | 744 | package net.cakecdn.api.admin.all.domain.dto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.domain.Page;
import java.util.List;
@Getter
@Setter
@ToString
public class CustomPage<T> {
private List<T> list;
private int pageCount;
private int page;
p... | 23.25 | 57 | 0.680108 |
0285b7902ac2ea5bea492de95b49a4d42ddaf826 | 687 | package com.example.demo.entity;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import lombok.D... | 20.818182 | 58 | 0.739447 |
337034da0e69d66b24f0647a788bc94dc1788ff9 | 560 | package com.bsnbase.sdk.util.xuper;
public class Account {
public static byte[] subBytes(byte[] src, int begin, int count) {
byte[] bs = new byte[count];
System.arraycopy(src, begin, bs, 0, count);
return bs;
}
public static byte[] byteMerger(byte[] bt1, byte[] bt2){
byte[]... | 22.4 | 69 | 0.491071 |
ef9baa56ceed50ddbc13612c083c7ce0cea3943e | 945 | /**
* Generated by OpenJPA MetaModel Generator Tool.
**/
package org.apache.ode.dao.jpa;
import javax.persistence.metamodel.CollectionAttribute;
import javax.persistence.metamodel.SingularAttribute;
@javax.persistence.metamodel.StaticMetamodel
(value=org.apache.ode.dao.jpa.ProcessDAOImpl.class)
@javax.annotation.... | 42.954545 | 102 | 0.822222 |
7b59fa742b387402c9cedde535f6a5e092e70686 | 4,615 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 44.805825 | 106 | 0.678873 |
f9066eff07b7274f96e3db6162c1f7d6b89f313d | 2,553 | package com.dewey.rpc.client;
import com.dewey.rpc.common.base.Request;
import com.dewey.rpc.common.base.Response;
import com.dewey.rpc.registry.Discovery;
import org.apache.log4j.Logger;
import org.springframework.util.StringUtils;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import ... | 31.518519 | 129 | 0.59812 |
14cfa609019c3eba904884474563d5f1db05f45c | 690 | package com.haiyan.deflower.service;
import com.haiyan.deflower.pojo.Address;
import java.util.List;
/**
* @author maple
*/
public interface AddressService {
/**
* 新增收货地址
* @param address 地址
* @return 地址id
*/
Long addAddress(Address address);
/**
* 修改收货地址
* @param addres... | 14.680851 | 43 | 0.547826 |
1eca23490fd5f6d88f782690eb9a6fbbd87dee17 | 1,031 | /**
* TLS-Scanner - A TLS Configuration Analysistool based on TLS-Attacker
*
* Copyright 2017-2019 Ruhr University Bochum / Hackmanit GmbH
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlsscanner.report.result;
import de.rub.nds.tlsscanner.constants.Pro... | 28.638889 | 87 | 0.751697 |
7b70df6d0b56cce497dd097a2985a3dec2b8cd7a | 718 | /**
* Copyright (C) 2017 thinh ho
* This file is part of 'keestore' which is released under the MIT license.
* See LICENSE at the project root directory.
*/
package keestore.vault.model;
import org.springframework.util.Assert;
import keestore.access.KeeItem;
/**
* <p>
* The main UI model that enforces a vault... | 21.117647 | 75 | 0.654596 |
a532e0d15b280d8f0f1a045809379c7b0862e623 | 1,684 | package com.fishercoder;
import com.fishercoder.solutions._395;
import org.junit.BeforeClass;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
public class _395Test {
private static _395.Solution1 solution1;
private static _395.Solution2 solution2;
private static String s;
p... | 24.764706 | 65 | 0.60867 |
057336d828852f905187398aea510d1f1eaee5e8 | 1,432 | package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.Constants.BallElevatorConstants.BallStates;
import frc.robot.subsystems.BallElevator;
public class RunElevator extends CommandBase{
BallElevator m_elevator;
public RunElevator(BallElevator elevator) {
... | 28.64 | 75 | 0.662011 |
7491e5d91e5e5db1891f2915fb84a80e25e6e2d9 | 1,688 | /**
* Copyright (C) 2012 cogroo <cogroo@cogroo.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 appl... | 35.914894 | 78 | 0.695498 |
46d845055cebb15563ee7e3bf555b6864f6fac4c | 1,519 | package com.codecool.dogmate.model;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;
import java.util.Objects;
@Embeddable
public class FriendsKey implements Serializable {
@Column(nullable = false, name = "relating_user_id")
Long relatingUserId;
@Column... | 25.316667 | 70 | 0.664911 |
8856cc7e9fa5c3ec75e96b8b58a0f95c58771951 | 10,896 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 45.589958 | 286 | 0.673733 |
e12d14ca5c7769cd09fd6a0112769ed783a3d0e7 | 2,630 | /*
* 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, software
* distributed u... | 47.818182 | 132 | 0.789354 |
9648dea3ed35434877198c784dff5457476806e2 | 3,987 | package org.opensingular.singular.form.showcase.component.internal.modal.sform;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.markup.html.basic.Label;
import ... | 37.971429 | 114 | 0.651618 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.