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 |
|---|---|---|---|---|---|
f1df6edda7b23878184c74b5a798dbcd669ce72b | 2,595 | /**
* RELOAD TOOLS
*
* Copyright (c) 2003 Oleg Liber, Bill Olivier, Phillip Beauvoir
*
* 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 withou... | 34.6 | 150 | 0.715992 |
42ac9386777a136817e39ee384f74fe984cfe3c5 | 6,532 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 38.19883 | 96 | 0.73959 |
3ef21d0679e255de4c7d6b7038ef6ed93d035d4b | 3,605 | package org.jcodec.codecs.h264;
import org.jcodec.common.model.ColorSpace;
import org.jcodec.common.model.Picture8Bit;
import org.jcodec.platform.Platform;
import org.junit.Ignore;
import org.junit.Test;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOExceptio... | 31.622807 | 91 | 0.595839 |
abe4297e1ccda3d20fb33eab9e3d63a3bd9b567c | 2,460 | /*
* 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.928571 | 120 | 0.75935 |
ab4f196735e1b440cdc23308063dde3caad50325 | 406 | import Colonists.Colonist;
import java.util.HashMap;
import java.util.Map;
public class Family {
private String id;
private Map<String,Colonist> colonists;
public Family(String id) {
this.id = id;
this.colonists = new HashMap<>();
}
public String getId() {
return id;
}... | 18.454545 | 49 | 0.62069 |
a6069f8bb3c080de9e7d59febd8b7cb9e9ecdec0 | 18,567 | package AST;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.io.File;
import java.util.*;
import beaver.*;
import java.util.ArrayList;
import java.util.zip.*;
import java.io.*;
import java.util.Stack;
import java.util.regex.Pattern;
import java.io.FileOutputStream;
import java.io.IOException;
im... | 28.433384 | 172 | 0.669844 |
48896931440e82511d8a8b5f527976b96b33e2d2 | 6,846 | // Copyright 2007-2018 Maen Artimy
//
// 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, merg... | 48.211268 | 116 | 0.591294 |
a21c22defff86f902e22cf7baae9f4bcae907e32 | 3,371 | /*
* 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 ... | 24.427536 | 109 | 0.62385 |
a73624852df08a54e4194892c1fadccb7bc00e4d | 6,883 | package com.sktlab.android.base.location;
import android.annotation.SuppressLint;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.Looper;
import android.util.Log;
import and... | 44.121795 | 138 | 0.580561 |
e3a763382b9d597888cbcae15046ba4ed22a2494 | 1,231 | package io.morethan.javabenchmarks.showcase.params;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
im... | 28.627907 | 58 | 0.737612 |
43fa22b128ec11e128991d780f6690825c605caf | 1,061 | package cn.org.atool.fluent.mybatis.annotation;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.TypeHandler;
import org.apache.ibatis.type.UnknownTypeHandler;
import java.lang.annotation.*;
/**
* 表字段标识
*
* @author darui.wu
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementTy... | 17.983051 | 80 | 0.606032 |
9c7e7b636fc975db6be9df74ef047cd812754774 | 518 | package com.js.ls.api.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserAddress implements Serializable {
private long id;
private long userId;
private String username;
pri... | 19.923077 | 50 | 0.789575 |
05baa8decbe600e7e0216c0a2df91b61a313f09c | 749 | package xosrt.binding.test.foundation.Utils.XMLParser;
import xosrt.binding.annotation.NativeSelector;
import xosrt.binding.core.Registrator;
import xosrt.binding.foundation.NSObject;
import xosrt.binding.foundation.NSString;
public class Person extends NSObject {
public NSString gender = null;
pub... | 26.75 | 55 | 0.718291 |
8286a2a5cad111ede0251bd8954bfa52dc0b5e03 | 580 | package cardHandling;
import cards.Card;
import java.util.ArrayList;
public class Deck {
ArrayList<Card> deckOfCards;
public void addCardToDeck(Card card) {
deckOfCards.add(card);
}
public Card drawCard(int index) {
if (index < deckOfCards.size()) {
return deckOfCards.r... | 19.333333 | 56 | 0.582759 |
18cd9f36676532d2347e51f25b3e02a4da6a384d | 614 | package com.example.injector.circular;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("sting.processor.StingProcessor")
public final class SupplierBrokenChainedCircularDependencyModel_Sting_MyModel2 {
private SupplierBrokenChainedCircularDependenc... | 34.111111 | 160 | 0.832248 |
03e18230482658785e008895b2fc2463cd6f3b3a | 122 | package com.caicy.pattern.observer.mouse;
public enum MouseEventType {
ON_CLICK,
ON_DOUBLE_CLICK,
ON_OVER;
}
| 15.25 | 41 | 0.729508 |
692c7cad8fcffdca682dc812df7bdf584340af22 | 2,126 | package jalview.io;
import jalview.datamodel.*;
import java.lang.reflect.*;
import java.util.*;
public class FormatFactory {
public static AlignFile get(int index, AlignSequenceI [] s) {
try {
Class c = Class.forName(FormatProperties.getClassName(index));
Class [] paramTypes = new Class[1];
... | 28.72973 | 72 | 0.646284 |
2fa44aed7ed82ef6037682f01d093ceebb1016a3 | 5,700 | //==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to t... | 35.849057 | 115 | 0.683509 |
132c99732acdfc0a99806c7b1762062b064560df | 768 | package ch.wetwer.moviedbapi.data.groupinvite;
import ch.wetwer.moviedbapi.data.user.User;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
im... | 20.210526 | 61 | 0.759115 |
32cd2e8a51b577063441e6f9c3057427f009721c | 225 | package ch.unisg.tapasexecutorpool.pool.application.port.out;
import ch.unisg.tapasexecutorpool.pool.domain.Executor;
import java.util.List;
public interface LoadExecutorListPort {
List<Executor> loadExecutorList();
}
| 22.5 | 61 | 0.808889 |
f66b9bb117444c54d29ee1fc7ce7609449025251 | 1,202 | package org.firstinspires.ftc.teamcode.relicRecovery.main.hardware;
import com.qualcomm.robotcore.hardware.DcMotor;
import static com.qualcomm.robotcore.hardware.DcMotor.RunMode.RUN_TO_POSITION;
/**
* Created by recharged on 12/7/17.
*/
public class Dumper {
volatile private boolean dumping;
private final... | 21.087719 | 78 | 0.625624 |
bb791e256deb1eb176c14fc231066a0f3008eb1e | 571 | package org.kyojo.schemaorg.m3n4.doma.pending.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n4.pending.impl.IN_CODE_SET;
import org.kyojo.schemaorg.m3n4.pending.Container.InCodeSet;
@ExternalDomain
public class InCodeSetConverter im... | 24.826087 | 79 | 0.810858 |
0afe84a26af90e969881a7a170b8366915a5b4ac | 253 | package net.dengzixu.maine.entity;
import lombok.Data;
@Data
public class TaskRecord {
private Long id;
private String serialID;
private Long userId;
private Long taskId;
private String createTime;
private String modifyTime;
}
| 18.071429 | 34 | 0.727273 |
d23571f663e382df9450a8669256e20cd561ee64 | 440 | class Node
{
int data; Node Right, Left;
int x, y;
public Node()
{
data = 0; x = 0; y = 0;
Right = null;
Left = null;
}
public Node(int data)
{
this.data = data; x = 0; y = 0;
Right = null;
Left = null;
}
public Node(int data, int x, ... | 18.333333 | 39 | 0.422727 |
227445b157ef1aec5a265665cf5105bc00b55277 | 4,485 | package com.tzutalin.dlibtest.Utility;
import android.content.Context;
import android.media.MediaPlayer;
import android.util.Log;
import android.util.Printer;
import android.widget.Toast;
import com.tzutalin.dlibtest.CameraActivity;
import com.tzutalin.dlibtest.R;
import java.io.File;
import java.util.HashMap;
impor... | 31.584507 | 88 | 0.577703 |
968cc4b2d1fbc3a2eee5e3c8d67ac3a09fadc29d | 1,928 | package com.fonepay.model;
public class FonepayPaymentVerificationRequest {
private String merchantCodePid;
private String merchantRequestedAmountAmt;
private String productNumberPrn;
private String billIdBid;
private String fonepayTraceIdUniqueUid;
private String merchantSecretKey;
... | 24.405063 | 82 | 0.726141 |
89082bc20e1d38d1d6e7ad58441f6519de22eb8d | 1,153 | package uk.co.thomasc.steamkit.steam3.handlers.steamfriends.callback;
import uk.co.thomasc.steamkit.base.generated.SteammessagesClientserverFriends;
import uk.co.thomasc.steamkit.steam3.handlers.steamfriends.types.Friend;
import uk.co.thomasc.steamkit.steam3.steamclient.callbackmgr.CallbackMsg;
import java.util.Array... | 30.342105 | 107 | 0.741544 |
7cebffd5c68b1a348db5899566631b33ad53bc86 | 3,534 | package practicework.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
public class ReserveInputPage {
private final WebDriver driver;
private final By datePick = By.... | 31 | 71 | 0.64601 |
cead5e4f56723a63e123c8b88af5c0da829e1a8e | 4,450 | /*
* 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 edu.pse.beast.booleanexpeditor.booleanExpCodeArea.errorFinder;
import java.util.ArrayList;
import javax.swing.JTextPane;
imp... | 44.949495 | 119 | 0.674831 |
aed394e9a90602945da4e857c46dac6b8f39d0e7 | 2,228 | package io.github.vcuswimlab.stackintheflow.controller;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;
import org.jasypt.properties.EncryptableProperties;
import javax.ws.rs.... | 31.380282 | 156 | 0.637343 |
f58c3aa80b02d386a1126a4abe846e14e7a3b91d | 2,745 | /*
* Created on 28 ago 2017 ( Time 17:51:39 )
* Generated by Telosys Tools Generator ( version 2.1.1 )
*/
package com.tuin.bean;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.math.BigDecimal;
public class Clienteviajeservicio implements Serializable {
private static final l... | 26.394231 | 80 | 0.446266 |
8d0f28e99d86fc13c0da83fb4db4d6ebeae75914 | 2,632 | /*
* Copyright 2020 Albert Tregnaghi
*
* 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... | 25.553398 | 86 | 0.665274 |
e0cc7c98ec2cc489ac778c5b2b80364f9693c490 | 10,959 | /**
* 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... | 26.92629 | 132 | 0.649512 |
491dc20451f1024c8be7202d636da9038d3c018e | 925 | /*
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2019, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.solver;
import org.chocosolver.solver.lear... | 24.342105 | 141 | 0.717838 |
535a272f7ff7f0c49befb17f698f65e9515022fc | 4,337 | package com.ilya40umov.badge.dto;
import com.ilya40umov.badge.entity.Privilege;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.json.JsonTest;
import org.springframework.boot.test.json.JacksonTeste... | 49.284091 | 98 | 0.701868 |
0ce606f5ca841fc2bd9f894d4a9040b6baaffeeb | 190 | package org.ibase4j.dao.sys;
import org.ibase4j.core.base.BaseMapper;
import org.ibase4j.model.sys.SysUserMenu;
public interface SysUserMenuMapper extends BaseMapper<SysUserMenu> {
} | 27.142857 | 69 | 0.8 |
935367cc1cbd201cd291c794c23c64778c80d74d | 8,564 | /**
* $RCSfile$
* $Revision$
* $Date$
*
* Copyright 2003-2007 Jive Software.
*
* 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/lice... | 34.813008 | 92 | 0.57333 |
5371e4c0fb12238fa93076657c06ee38c3ec3fbb | 1,786 | package testing.magnum.io.testingexample;
import android.support.test.espresso.assertion.ViewAssertions.*;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import static android.support.test.espresso.Espresso.*;
import static android.support.test.espresso.matcher.V... | 30.271186 | 112 | 0.716125 |
74314d6b3b5ca1d0e8437e441cbfa4c5b6bcbb98 | 23,496 | /*******************************************************************************
* Copyright 2012 Geoscience Australia
*
* 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
*
* ht... | 31.453815 | 120 | 0.626404 |
89528d388557cdcff474855f16f4b082bd4763e6 | 1,416 | package mysqldbhelper;
import bobthebuildtool.pojos.buildfile.Project;
import bobthebuildtool.pojos.error.VersionTooOld;
import org.flywaydb.core.Flyway;
import java.nio.file.Files;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Map;
import static bobthebuildtool.services.Update.requir... | 34.536585 | 121 | 0.672316 |
0cde9ec8a1114fc0d0eeb36dbdc7b5d84d0bcb71 | 4,573 | /*
* Copyright 2000-2018 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... | 27.548193 | 75 | 0.696042 |
0e5239d5431416f1ce07bcf9dcd41fcae366dc68 | 425 | package br.com.luismunhoz.model;
import java.util.List;
public class TextFileDifference extends FileDifference {
private List<LineDifference> lines;
public List<LineDifference> getLines() {
return lines;
}
public void setLines(List<LineDifference> lines) {
this.lines = lines;
}
@Override
public String... | 18.478261 | 84 | 0.717647 |
c145f91e89832055ced749cf5b4055c0c3ee831a | 1,329 | package lykrast.mysticalwildlife.client.renderer;
import lykrast.mysticalwildlife.client.render.RenderKrill;
import lykrast.mysticalwildlife.common.entity.EntityKrill;
import lykrast.mysticalwildlife.core.MysticalWildlife;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.... | 35.918919 | 134 | 0.770504 |
59ccbf2e351e1bbc67761aced7169bbb42d4a141 | 1,372 | import org.apache.hadoop.io.Writable;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public class HomeAwayStore implements Writable {
private float pts_diff;
private float ast_diff;
private float reb_diff;
public float getPts_diff() {
return pts_diff;
}
... | 23.254237 | 68 | 0.618805 |
a0897a379549ddd7c92ec74da59c53a8f09e47ae | 7,473 | package io.github.sarifsystems.sarif.client;
import android.net.Uri;
import com.google.gson.JsonObject;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.Socket;
i... | 29.654762 | 113 | 0.533654 |
51df14772eed5bfa9aa7859b0ce4b721dbadd82d | 7,378 | /**
* 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.689498 | 82 | 0.702087 |
e520ecc0e9a150a767445fc7fdc818bc07d3f880 | 3,660 | package com.brightspirit.crm;
import java.io.PrintWriter;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import ... | 32.678571 | 110 | 0.764754 |
7a60fdba2f499238350b26e38af4524ca130ad6b | 12,021 | package com.example.dell.diary;
import android.support.test.espresso.ViewInteraction;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;
import android.view.View;
import android.view.ViewGroup;
import android.view... | 43.397112 | 112 | 0.467682 |
84e8b3ddfc52baa30dabf6bddf7cd5c483dc0389 | 4,249 | package com.zyd.blog.spider.processor;
import com.zyd.blog.spider.model.Article;
import com.zyd.blog.spider.model.BaseModel;
import com.zyd.blog.spider.util.WriterUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import us.codecr... | 38.627273 | 168 | 0.611909 |
54446adc26a52cce23abe5ac3fbcb7616f788e1d | 1,654 | /**
* Copyright 2020 the original author or authors.
* <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>
* Unless re... | 41.35 | 125 | 0.773277 |
a8a53c5c5e249b0b0c13f3675b9236a006e59271 | 1,538 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 31.387755 | 84 | 0.612484 |
3831bd4b164fd57b1cf71394e2512844d630abfa | 841 | package com.alma.boutique.application.controllers;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import com.alma.boutique.domain.Shop;
import com.alma.boutique.domain.exceptions.IllegalDiscountException;
import com.alma.boutique... | 20.512195 | 93 | 0.764566 |
1965ee32f87589dc724386c1f19f78ed69c45ec4 | 1,022 | package com.wz.activemq.p2p;
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*;
public class Consumer {
public static void main(String[] args) throws JMSException {
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(ActiveMQConnectionFactory.DEFAULT_USER,
... | 36.5 | 115 | 0.663405 |
43bd19fc4b8cea200968e3c38bfa1c272b4fdcb4 | 2,058 | package com.abin.lee.algorithm.tree.binary.traversal;
import com.abin.lee.algorithm.common.json.jackson.JsonUtil;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
/**
* Created by abin on 2017/12/17 2017/12/17.
* algorithm-svr
* com.abin.lee.algorithm.tree.bi... | 27.810811 | 71 | 0.59378 |
b9307e4ab3546628c02f0304f2d7e6d3f2260585 | 1,275 | import java.nio.ByteBuffer;
import java.util.Base64;
class Test {
static String mqttPayload = "{\"app_id\":\"fhnw-iot\",\"dev_id\":\"fhnw-iot-0\",\"hardware_serial\":\"003B6B567F66163D\",\"port\":1,\"counter\":2647,\"payload_raw\":\"EagIjg==\",\"payload_fields\":{\"h\":45.2,\"t\":21.9},\"metadata\":{\"time\":\"202... | 53.125 | 550 | 0.611765 |
719e7acd9137f171677925a1d48223a619002232 | 2,036 | import bc.*;
public class botHealer extends Attackable {
static pii getPri(Unit U) {
pii cloc = toPii(U);
Unit best = null, best1 = null;
for (int i = -5; i <= 5; ++i)
for (int j = -5; j <= 5; ++j) if (i*i+j*j <= 30) {
int x = cloc.f+i, y = cloc.s+j;
if (fastGC.valid(x,y) && fastGC.yourDamagedUnit... | 28.676056 | 86 | 0.513261 |
c7d8dec0ea4251b76c5f55ac483fee806e6e8cbb | 5,931 | package com.ncov.module.service;
import com.ncov.module.common.enums.UserRole;
import com.ncov.module.common.exception.DuplicateException;
import com.ncov.module.controller.resp.user.SignInResponse;
import com.ncov.module.entity.HospitalInfoEntity;
import com.ncov.module.entity.SupplierInfoEntity;
import com.ncov.modu... | 52.486726 | 258 | 0.764795 |
490347a360cce153c24f24059f60d6646d7d5603 | 4,953 | package com.ru.devit.mediateka.models.mapper;
import com.ru.devit.mediateka.models.db.ActorEntity;
import com.ru.devit.mediateka.models.db.CinemaEntity;
import com.ru.devit.mediateka.models.model.Actor;
import com.ru.devit.mediateka.models.model.Cinema;
import java.util.ArrayList;
import java.util.List;
im... | 44.223214 | 124 | 0.695942 |
c3c448327a3c155664038a9c837765ae09cbe607 | 944 | import java.util.Scanner;
public class Day29 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int testCases = scanner.nextInt();
while (testCases-- > 0) {
int n = scanner.nextInt();
int k = scanner.nextInt();
System.out... | 31.466667 | 79 | 0.488347 |
e1aa2ee46abb0c196a699f534a3f638c02954d33 | 577 | package packExcepciones;
public class NoHaySudokuCargadoException extends Exception {
public NoHaySudokuCargadoException()
{
}
/**
* @param pArg0
*/
public NoHaySudokuCargadoException(String pArg0)
{
super(pArg0);
}
/**
* @param pArg0
*/
p... | 16.485714 | 70 | 0.577123 |
5271d710ba55dddbb5bad78a031562751568829b | 4,380 | /*
* Copyright (c) 2019, Temple University
* 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 of con... | 42.941176 | 90 | 0.694977 |
faad20d915004b9eb83389bb4b43a3e3ab0df113 | 913 | package io.choerodon.devops.api.dto;
/**
* Created by younger on 2018/4/25.
*/
public class IngressDTO {
private String name;
private String hosts;
private String address;
private String ports;
private String age;
public String getName() {
return name;
}
public void setName(... | 17.226415 | 44 | 0.579409 |
a6a3e532971959ffb422c423cf94803c2488a8c1 | 2,981 | package ru.parsentev.storages;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.parsentev.models.Role;
import ru.parsentev.models.User;
import javax.sql.DataSource;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CopyOnWrit... | 33.494382 | 82 | 0.576652 |
21d6451743e95db04d6a9d1c17eaee17696e03e0 | 2,203 | package net.wangjifeng.config;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.Initia... | 31.927536 | 112 | 0.696777 |
38da0c2c45cf18209460e5a15cccb1b9f3c46ecb | 1,059 | /*
Copyright (c) Xerox Corporation 1998-2002. All rights reserved.
Use and copying of this software and preparation of derivative works based
upon this software are permitted. Any distribution of this software or
derivative works must comply with all applicable United States export control
laws.
This softwa... | 29.416667 | 79 | 0.666667 |
357944ce55ba83f37b1c4e5d5b6116ac563e6e0b | 1,692 | package io.jexxa.core.convention;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.util.Properties;
import io.jexxa.application.applicationservice.InvalidApplicationService;
import io.jexxa.application.domainservice.IJexxaEntityRepository;
import org.apache.commons.lang3.Validate;
import org.... | 33.84 | 190 | 0.741135 |
2de9a7a15ce8296ec841e5332a74ff82e0f6de39 | 810 | package com.sequenceiq.cloudbreak.repository;
import javax.transaction.Transactional;
import javax.transaction.Transactional.TxType;
import com.sequenceiq.cloudbreak.aspect.DisableHasPermission;
import com.sequenceiq.cloudbreak.aspect.workspace.WorkspaceResourceType;
import com.sequenceiq.cloudbreak.authorization.Wor... | 42.631579 | 103 | 0.876543 |
ae983cf7beb42bbdb548834115de57d94c5bb7f3 | 1,326 | import java.util.*;
/*
* Takes in a queue of integers as parameter and modifies it by placing
* all the even numbers to the back of the queue. The order of the
* even-to-even numbers and the odd-to-odd numbers is not affected.
*
* Example -
* Passed Stack = front [4, 7, -11, 2, 3, -18, 22, 6, 17, 51, 10] back
... | 21.737705 | 72 | 0.546003 |
1e9bf3d71cb636192bad2c694acc517ae69ca5ff | 4,441 | /*
* Copyright 2014 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 ... | 36.401639 | 94 | 0.691061 |
c4067010b3aecb60de2a0777d72ec84a6ffa8dd5 | 4,059 | package panda.gems.media.entity;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import panda.dao.DaoTypes;
import panda.dao.entity.annotation.Column;
import panda.dao.entity.annotation.Comment;
import panda.dao.entity.annotation.FK;
import panda.dao.entity.annotation.ForeignKeys;
import panda.dao.en... | 19.703883 | 84 | 0.554077 |
64311bf327f073fcc8f19b94d1394edaa3ff31e7 | 837 | package org.uncommons.zeitgeist.filters;
import java.util.Collections;
import org.testng.annotations.Test;
import org.uncommons.zeitgeist.Article;
import org.uncommons.zeitgeist.Image;
/**
* Unit test for the {@link HeadlineRegexFilter} class.
* @author Daniel Dyer
*/
public class HeadlineRegexFilterTest
{
@Te... | 34.875 | 114 | 0.704898 |
606a28965c410377edfc02c45a2e68eee06f7bcd | 8,552 | package testcomponent.heyongrui.com.componenta.ui.qingmang.view;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.blankj.utilcode.util.ToastUtils;
import com.chad.library.adapter.b... | 43.85641 | 137 | 0.674579 |
6c84c9697d8f5c2155897b2131f798ec45296918 | 565 | /**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.templates;
import org.eclipse.ui.IStartup;
/**
* Early Startup class - shakes the plugin to come alive!
* Implement IS... | 23.541667 | 80 | 0.722124 |
03af1c0f9a1bf21b381e23b1e45a592765a76330 | 1,611 | package jp.co.internous.ecsite.model.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="purchase")
publ... | 16.957895 | 50 | 0.716946 |
54277e769c13ba8dfeac87dda8652b99cd8edafa | 2,975 | /**
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 Yegor Bugayenko
*
* 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 limitatio... | 34.195402 | 73 | 0.653445 |
5fe8a9f1f75c653209dce0f94a677ce7bbd4f186 | 551 | package net.akehurst.filesystem.api.virtual;
import net.akehurst.filesystem.api.DirectoryEntry;
import net.akehurst.filesystem.api.readwrite.FilesystemReadWrite;
public interface FilesystemVirtual extends FilesystemReadWrite {
/**
*
* @param path
* the path to a directory entry in this (virtual fil... | 29 | 95 | 0.744102 |
3aa35d4081fa25a653d392819eba0fea3a88c889 | 88 | package com.noseparte.common.battle;
public enum MatchEnum {
CANCEL, DISCONNECT;
}
| 14.666667 | 36 | 0.75 |
64efb9c5ec0cb7f3d1350cda93c49d4d2e5fed31 | 2,167 | package com.example.crm.handler;
import java.util.Set;
import java.util.stream.Collectors;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import org.springframework.http.HttpStatus;
import org.springframework.validation.ObjectError;
import org.springframework.web.b... | 37.362069 | 99 | 0.809414 |
1a43a30a0b87c273776755e0f08657612c9dd166 | 7,364 | /*******************************************************************************
* ============LICENSE_START====================================================
* * org.onap.aaf
* * ===========================================================================
* * Copyright © 2017 AT&T Intellectual Property. All right... | 28.10687 | 130 | 0.591391 |
19518d82c87519faca59c2cf9093cf316735db67 | 82,031 | /**
*
*/
package com.ycsoft.business.service.impl;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autow... | 40.132583 | 194 | 0.738416 |
a2e0e489eb24c92d9b8110e498643a45315897b5 | 19,572 | package org.workcraft.plugins.son.tools;
import org.workcraft.dom.Node;
import org.workcraft.dom.math.MathNode;
import org.workcraft.gui.events.GraphEditorMouseEvent;
import org.workcraft.gui.tools.Decorator;
import org.workcraft.gui.tools.GraphEditor;
import org.workcraft.plugins.builtin.settings.SimulationDecoration... | 41.117647 | 145 | 0.626661 |
53cdf76e1c6cc4d36c78b451957d7c6e5c7c131f | 1,188 | package com.github.wuxudong.rncharts.charts;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.highlight.Highlight;
import com.github.mikephil.charting.listener.PieRadarChartTouchL... | 27 | 78 | 0.665825 |
2b7de127ade9b0a35f41d59a98d13ffce5f608bc | 3,170 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.util.Range;
/**
* Created by Sam on 04/23/2019.
Adapted from:
https://github.com/MSMHS-Robotics/FTC4962_Examples/blob/master/Tea... | 32.680412 | 144 | 0.612618 |
f03cdaf56dde834159fa0d74a34b05feaa1dcd84 | 7,813 | package com.example.admin.mybledemo.timeservice;
/* Copyright (C) 2017 Relish Technologies Ltd. - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please visit https://opensourc... | 45.958824 | 206 | 0.704851 |
b1640c395b60c180d78354cf095cc2ab74a24d08 | 838 | package com.thinkaurelius.titan.diskstorage.cassandra.embedded;
import org.apache.commons.configuration.Configuration;
import org.junit.experimental.categories.Category;
import com.thinkaurelius.titan.CassandraStorageSetup;
import com.thinkaurelius.titan.diskstorage.LockKeyColumnValueStoreTest;
import com.thinkaureli... | 44.105263 | 118 | 0.850835 |
047437e59f3416e3eabb639c5de0a5bc1991d3e7 | 1,274 | package org.aksw.simba.quetsal.core.algebra;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import org.aksw.simba.quetsal.core.algebra.TopKSourceStatementPattern.Entry;
import org.eclipse.rdf4j.query.algebra.TupleExpr;
import com.fluidops.fedx.algebra.FedXExprVisito... | 27.106383 | 102 | 0.77865 |
b8d6a29ad5af195e0be009610d32ec3787696727 | 1,916 | package io.joshatron.tak.server.database;
import io.joshatron.tak.server.exceptions.GameServerException;
import io.joshatron.tak.server.request.From;
import io.joshatron.tak.server.request.Read;
import io.joshatron.tak.server.request.RecipientType;
import io.joshatron.tak.server.response.Message;
import io.joshatron.t... | 58.060606 | 154 | 0.81785 |
dc226ebf25940ee4f3427687580075f392502a82 | 1,350 | package com.graphhopper.routing.util.parsers;
import java.util.List;
import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.profiles.EncodedValue;
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profi... | 34.615385 | 87 | 0.728889 |
5b75fee8ecce4473438d586c328c46a28f5d116b | 565 | package com.dcj.singleton;
/**
* 饿汉式
* 类加载到内存后,只实例化一个单例,jvm保证线程安全
* 简单实用
* 缺点 不管用到与否,类装载时就完成实例化
*/
public class Singleton01 {
private static final Singleton01 INSTANCE = new Singleton01();
private Singleton01(){}; //要用私有方法让其无法new 对象
public static Singleton01 getInstance(){
return INSTANCE;
... | 20.925926 | 66 | 0.658407 |
0d7a5a80e97055ab9eea8f692affc276c37b6343 | 3,518 | package net.beaconcontroller.devicemanager;
import java.util.Arrays;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import net.beaconcontroller.packet.IPv4;
import net.beaconcontroller.topology.SwitchPortTuple;
import org.openflow.util.HexString;
/**
*
*
* @author David Erickson (davi... | 28.370968 | 97 | 0.603752 |
5432918ebe848ae4442d8df7aed0d2221a9141f1 | 560 | package net.dontdrinkandroot.gitki.wicket.model;
import net.dontdrinkandroot.gitki.model.User;
import net.dontdrinkandroot.gitki.wicket.GitkiWebSession;
import org.apache.wicket.model.AbstractReadOnlyModel;
/**
* @author Philip Washington Sorst <philip@sorst.net>
*/
public class CurrentUserFullNameModel extends Abs... | 24.347826 | 75 | 0.696429 |
7ae3423c2bfb3db0ad2d438bf1e13064b22d8f09 | 1,364 | protected String contentString() {
String result = null;
URL url;
String encoding = null;
try {
url = url();
URLConnection connection = url.openConnection();
connection.setDoInput(true);
connection.setDoOutput(false);
connec... | 38.971429 | 101 | 0.530059 |
e9f8fcd398a28034b4164f3750b4599e5a5d7cd0 | 1,716 | package cn.com.esrichina.adapter.h3cloud.domain;
import java.util.List;
import cn.com.esrichina.adapter.AdapterException;
import cn.com.esrichina.adapter.domain.IDatacenter;
import cn.com.esrichina.adapter.domain.IOrganization;
import cn.com.esrichina.adapter.h3cloud.H3CloudMethod;
import cn.com.esrichina.ada... | 23.833333 | 77 | 0.675408 |
9a6337c09a5ba7a58ecb90d85927473c7ebbcbdd | 2,073 | package site.aprengo.api.employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import site.aprengo.api.exceptionhandling.ResourceNotFoundException;
import java.util.List;
@RestController
public class Empl... | 31.892308 | 116 | 0.6411 |
00cc8b47bce42be121d8091f2d05279289db4514 | 2,160 | package com.castle.integration.dubbo;
import java.lang.reflect.Method;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.fac... | 37.894737 | 105 | 0.746296 |
83a08529c546a06ef4bd0fead693bc868f9742b5 | 1,527 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import java.util.Arrays;
import java.util.Collection;
import org.junit.runners.Parameterized.Parameters;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.LanguageVersi... | 44.911765 | 154 | 0.756385 |
0ad4e7989c0c355ba037f45dd8eda4f8375c9f45 | 5,598 | /*
* Copyright 2017 David Karnok
*
* 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... | 25.678899 | 86 | 0.601286 |
89287a260118650bcfeb944d7709f06a1f610775 | 2,832 | package com.shareworx.ezfm.problem.details.service;
import java.util.List;
import com.shareworx.ezfm.problem.details.model.YJWYProblemDetailsModel;
import com.shareworx.platform.exception.ShareworxServiceException;
import com.shareworx.platform.metadata.MetaField;
import com.shareworx.platform.persist.Delete;
import ... | 24.626087 | 131 | 0.753178 |
c02d7fb35792356181a31c75de95350a3ad92177 | 6,153 | /*-
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ==================================================================... | 42.434483 | 114 | 0.67203 |
3914f56dec31ce82de097a99c4521b8578caf441 | 2,431 | package example_usage;
import java.io.IOException;
import sessionbuddy.KeywordSearch;
import sessionbuddy.wrappers.resultsets.SearchResultDiscussions;
/**
* Example usage of the searchDiscussions method of KeywordSearch class to
* search thesession.org API for a discussion based on a set of search terms,
... | 39.852459 | 125 | 0.63842 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.