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 |
|---|---|---|---|---|---|
d8539b97c0626c2240e7a28355cb773798d2333a | 15,482 | package com.wincom.mstar.domain;
import java.util.ArrayList;
import java.util.List;
public class RoleInfoExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table nfjd502.dbo.RoleInfo
*
* @mbggenerated Thu Mar 02 11:23:21 CST 2017
*/
... | 30.840637 | 102 | 0.595982 |
0c5cdfecac6030635a47eab27c58e209a21f717e | 112 | package com.jakewharton.u2020.data.api;
/** The Imgur application client ID. */
public @interface ClientId {
}
| 18.666667 | 39 | 0.741071 |
e578aec32d7dbec06dc56890b7285cf686877db2 | 1,882 | package net.osmand.aidl.customization;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
public class SetWidgetsParams implements Parcelable {
private String widgetKey;
private List<String> appModesKeys;
public SetWid... | 19.810526 | 90 | 0.676408 |
53d4bdea07d83b7b6b2929c4241889a219ea39dd | 3,015 | package com.adaptris.core.jdbc;
import java.io.PrintWriter;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang3.BooleanUtils;
import com.adaptris.annotation.AdvancedConfig;
import com.adaptris.annotation.ComponentProfile;
import com.adaptris.annotation.InputFieldDefault;
import com.adaptris.util.Time... | 33.876404 | 102 | 0.793698 |
70ddf8ea5047a0decf214ba7f94a65efecc830d2 | 1,590 | package org.wowtools.learnopencv.lesson.l2;
import org.bytedeco.javacpp.opencv_videoio.CvCapture;
import org.bytedeco.javacpp.Pointer;
import org.bytedeco.javacpp.helper.opencv_core.CvArr;
import org.bytedeco.javacpp.indexer.IntBufferIndexer;
import org.wowtools.learnopencv.Constant;
import static org.bytedec... | 26.065574 | 73 | 0.694969 |
db265d49a911f3a08be1a96fc4a02d6ba5e47ace | 2,034 | import java.util.Scanner; import java.text.NumberFormat;
public class Bank
{
public static void main(String[] args)
{
Account munozAccount = new Account (250, "Maria", "Munoz", "110 Glades Road",
"My town", "FL", "33445");
Scanner input = new Scanner(System.in);
double da... | 40.68 | 160 | 0.572763 |
5a43ece4d46bcc9c9cd6502db06dee62e92de221 | 1,765 | package de.jnicrunner.controller;
import de.jnicrunner.JnicRunner;
import de.jnicrunner.util.JnicProcess;
import de.jnicrunner.util.Replacer;
import de.jnicrunner.util.enums.StageID;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
imp... | 39.222222 | 214 | 0.637394 |
8ab1da88feb16010d7720cf1dc777afbd3b0840f | 1,823 | package ralcock.cbf.model.dao;
import android.test.AndroidTestCase;
import android.test.RenamingDelegatingContext;
import ralcock.cbf.model.BeerDatabaseHelper;
import ralcock.cbf.model.BeerListTest;
import ralcock.cbf.model.Brewery;
import java.sql.SQLException;
public class BreweriesImplTest extends AndroidTestCase... | 32.553571 | 73 | 0.698848 |
6ff1648fbfe87a868935b8df47f35d8332bca722 | 20,980 | /*
* Copyright © 2014-2017 Cask Data, 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 agr... | 43.257732 | 119 | 0.631554 |
1afe56b6ea1f4a3131c3d8e88fca795d1725ce82 | 2,596 | package com.example.aidongprover2;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import android.widget.Toast;
import java.util.List;
import j... | 29.83908 | 97 | 0.645609 |
3de0fe2e7224489d67fb1b6ca3310ec1a0004c06 | 1,060 | package com.wsn.chapter18javaio;
/**
* Created by power on 2017/8/23,023.
*/
//: io/E33_PreferencesDemo.java
// {RunByHand}
/****************** Exercise 33 *****************
* Write a program that displays the current value
* of a directory called "base directory" and
* prompts you for a new value. Use the Prefe... | 32.121212 | 86 | 0.625472 |
6dda64591b3aba17822c6751319201996b029728 | 1,443 | package uk.gov.dwp.dataworks.integration;
import com.amazonaws.services.s3.AmazonS3;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boo... | 37 | 88 | 0.794179 |
08fff5fcd5b859db597cf3dc472ae390e143714b | 1,083 | package org.adoptopenjdk.lambda.tutorial.exercise5.musicplayer;
/*
* #%L
* lambda-tutorial
* %%
* Copyright (C) 2013 - 2014 Adopt OpenJDK
* %%
* 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 Founda... | 27.075 | 71 | 0.698061 |
949024697fed36f40f6a5a1f3c113c95053a3585 | 3,771 | package net.aryaman.algo.btree;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class TreeWalker {
private static List<Character> vowels = Arrays.asList('a', 'e', 'i', 'o', 'u', 'y');
static class BinaryTreeNode {
public BinaryTreeNode(int ... | 26.744681 | 88 | 0.588968 |
0459c7d2ed9305b384592d01a1ab5a47f55c234f | 398 | package com.redescooter.ses.service.scooter.dao;
import org.apache.ibatis.annotations.Param;
/**
* @ClassName:ScooterIotServiceMapper
* @description: ScooterIotServiceMapper
* @author: Alex
* @Version:1.3
* @create: 2019/12/27 17:51
*/
public interface ScooterIotServiceMapper {
void updateScooterLock(@Para... | 24.875 | 107 | 0.736181 |
b40eb412231511036df8b8802aa6905d51cdfb0d | 687 | package de.fhdw.mfwi415a.gop.kalorientagebuch.activites.navigation.fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import de.fhdw.mfwi415a.gop.kalorientagebuch.R;
... | 25.444444 | 113 | 0.767103 |
f624e105df90a92fa2458bfcd25fbd4f8f3ec8ba | 1,091 | package com.sx4.bot.entities.economy.item;
import com.sx4.bot.managers.EconomyManager;
import org.bson.Document;
public class Item {
private final EconomyManager manager;
private final long price;
private final String name;
private final int id;
//private final boolean purchasable;
private final ItemType type... | 19.140351 | 111 | 0.693859 |
f576140b0ff43eb289b489844a394c5792043fa0 | 1,452 | /*
* Copyright © 2019 Smoke Turner, LLC (github@smoketurner.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 require... | 32.266667 | 84 | 0.741047 |
d77d3df62c315098b32e20bbba9b7ddc9ada3f94 | 224 | package org.bingmaps.sdk;
/**
* Listener for when an Entity object is clicked.
* @author rbrundritt
*/
public interface EntityClickedListener {
public abstract void onAvailableChecked(String layerName, int entityId);
}
| 22.4 | 73 | 0.772321 |
c46058cd584480e6e493495e21cae20d6a4f5845 | 2,264 | /*
* Copyright 2005 Patrick Gotthardt
*
* 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... | 26.325581 | 95 | 0.720848 |
6abf675e94ad4a2038779dc57dfa85904db9ca21 | 1,221 | package io.github.pleuvoir.openapi.common.utils;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.integration.redis.util.RedisLockRegistry;
import org.... | 27.75 | 94 | 0.777232 |
63a21f16a37b834e7af578f5c4c62a4f5506cd7c | 297 | package fr.univtlse3.m2dl.magnetrade.magnet;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface MagnetRepository extends CrudRepository<Magnet, Long> {
List<Magnet> findAll();
}
| 21.214286 | 72 | 0.811448 |
dcbe405181f61d1e87e34332c2759947bfc00238 | 897 | package com.wrapper.spotify.enums;
import java.util.HashMap;
import java.util.Map;
/**
* An enumeration of all possible model object types.
*/
public enum ModelObjectType {
ALBUM("album"),
ARTIST("artist"),
AUDIO_FEATURES("audio_features"),
GENRE("genre"),
PLAYLIST("playlist"),
TRACK("track"),
USER("... | 19.085106 | 74 | 0.668896 |
5677e43ca1633a034ae4e874a9263d87f53ba023 | 1,702 | package uselesssolutions.morse_app_us;
public class MorseTextClass {
private String[] morseArray = {"%", ".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..",
"--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--..", ".----",
... | 46 | 146 | 0.343126 |
62210270e1c7b6da9dedc777c2f15dc494da2ee6 | 7,543 | package uk.ac.ebi.subs.validator.core.handlers;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit4.SpringRunner;
import uk.ac.ebi.subs.data.component.SampleR... | 40.994565 | 113 | 0.733395 |
31b57a10fbd3634b0529859710aeaef3b3f6ca18 | 216 | package thinkinginjava.generic;
import java.util.Comparator;
public class IntegerComparator implements Comparator<Integer> {
@Override
public int compare(Integer o1, Integer o2) {
return 0;
}
}
| 19.636364 | 63 | 0.722222 |
8dd5320ae0b8a8b7abb3077a79ac736c9774ceaa | 571 | package Questions;
public class Shift_Zeros_at_End {
static void pushZerosToEnd(int arr[], int n) {
int count = arr.length - 1;
for(int i = arr.length - 1; i >= 0; i--){
if(arr[i] == 0){
int temp = arr[count];
arr[count] = arr[i];
arr[i] = temp;
... | 25.954545 | 50 | 0.469352 |
591cdf7393dc5176de4a2e9027817fd47021326c | 7,193 | package elsu.sentence;
import java.util.ArrayList;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.regex.Matcher;
import elsu.ais.exceptions.IncompleteFragmentException;
import elsu.base.IAISEventListener;
import elsu.nmea.messages.NMEAMessage;
//import elsu.nmea.messages.VSISi... | 27.665385 | 106 | 0.669679 |
7dfa41ac3abc3160a3012902333e62306004ad86 | 250 | package com.jozufozu.flywheel.backend.source;
import net.minecraft.resources.ResourceLocation;
/**
* A minimal source file lookup function.
*/
@FunctionalInterface
public interface SourceFinder {
SourceFile findSource(ResourceLocation name);
}
| 19.230769 | 48 | 0.8 |
0c3fd55eb4b7c92d81d7d9f239ef0a5d4b95616e | 3,698 | //@@author quinnzzzzz
package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import static seedu.address.logic.parser.CliSyntaxBeneficiary.ASSIGNED_PROJECT_TITLE;
import static seedu.address.logic.parser.CliSyntaxVolunteer.PREFIX_REQUIRED_VOLUNTEER;
import java.util.List;
import java.ut... | 41.550562 | 112 | 0.715251 |
b772191fd1bfd39a7fd52d529180f6c85a266eb9 | 347 | package org.globsframework.gui.splits.color.utils;
import java.awt.*;
public class ForegroundColorUpdater extends ComponentColorUpdater {
public ForegroundColorUpdater(String key, Component component) {
super(key, component);
}
protected void doUpdateColor(Component component, Color color) {
component.... | 26.692308 | 67 | 0.778098 |
10bb48849875d3c39cbabbf31a395fc5331a8c24 | 2,546 | package cn.lambdalib2.util;
import cn.lambdalib2.auxgui.AuxGuiHandler;
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.PositionedSoundRecord;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.mi... | 33.5 | 118 | 0.667321 |
2a94f35bb9d75d696339b78bbe81d7f675a5217b | 301 | package org.pinkprogramming.javatesting.util;
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
public class UrlFetcher {
public static Document fetchPage(String url) throws IOException {
var doc = Jsoup.connect(url).get();
return doc;
}
}
| 23.153846 | 69 | 0.724252 |
bcc241e47f7f4b973aa73dbdf9a045f7149cf4aa | 368 | package stefan.firstapp;
import java.util.Random;
/**
* Created by Sebastian on 2015-07-27.
*/
public class FactBook {
public String[] facts={"Spierdalaj", "bo sie wylacze", "pa"};
public String getFact()
{
Random randomGenerator=new Random();
int randomNumber=randomGenerator.nextInt(3... | 18.4 | 65 | 0.649457 |
41c9735c85e4ec8571f9545946be8db0ba25efb5 | 327 | package com.qob.Pojo;
public class TMoney {
private int arg1;
private String arg2;
public int getArg1() {
return arg1;
}
public String getArg2() {
return arg2;
}
public TMoney(int arg1, String arg2){
this.arg1 = arg1;
this.arg2 = arg2;
... | 16.35 | 42 | 0.529052 |
9901ebe87066ee5648921aa44a483f2d4a4bb6fd | 3,166 | package com.mexus.homeleisure.upload.api.service;
import com.mexus.homeleisure.upload.api.exception.CantCreateFileDirectoryException;
import com.mexus.homeleisure.upload.api.exception.FileUploadException;
import com.mexus.homeleisure.upload.api.model.KeyPoints;
import com.mexus.homeleisure.upload.api.model.KeyPointsRe... | 40.589744 | 96 | 0.76216 |
c93265f89ff4b546bb37bc41c0f68c93ab3aa2fd | 3,130 | package org.communiquons.android.comunic.client.data.models;
import org.communiquons.android.comunic.client.data.enums.NotifElemType;
import org.communiquons.android.comunic.client.data.enums.NotificationTypes;
import org.communiquons.android.comunic.client.data.enums.NotificationVisibility;
/**
* Notification objec... | 22.681159 | 81 | 0.678594 |
37bff6a08b6435cdbc8ad1ba7fa910d51dd3d1e6 | 3,048 | package org.jtwig.functions.repository.model;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
public class Function implements Comparable<Function> {
public static FunctionBuilder functionFrom (Method method) {
return new Function... | 31.102041 | 103 | 0.569554 |
bf8c26fba92be100b1f7805cb7803cddd38bc925 | 116 | package decorator;
public enum SetParts {
SANDWICH,SMALL_DRINK,
SMALL_FRIES,
LARGE_DRINK,LARGE_FRIES
}
| 14.5 | 27 | 0.741379 |
49bfaa2753693172af5f722af8c4acd4c28307a9 | 492 | class TestExtendsVarAssign {
public static void main(String[] args) {
}
}
class A extends B {
public int a_method1(int x) {
A a;
int r1;
int r2;
a = new A();
r1 = a.bmethod1(x);
r2 = a.cmethod1(x);
r2 = this.cmethod1(x);
return a.bmethod1(x) + this.cmethod1(x);
}
}
class B extends C {
public int ... | 14.909091 | 45 | 0.619919 |
1a6b1ed3d11cec7963e8d28ece89511d7397fc7b | 500 | package xyz.zenheart.guiserial.modules.locale.mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import xyz.zenheart.guiserial.pojo.entity.UserEntity;
import java.util.List;
/**
* <p>项目名称: cgenerator </p>
* <p>描述: 配置类mapper </p>
* <p>创建时间: 2021/9/9 </p>
* <p>公司... | 20.833333 | 53 | 0.702 |
ae64cda90a7122bd9080e579ca9b3ad8f98472d3 | 1,128 | package cellsociety.rule;
/**
* General 'Rule' class, we want this to hold the information that essentially says "if a condition
* is met based off a comparator, give a condition result"
*/
abstract public class Rule {
private final int myComparator;
private final Integer myConditionIsMetResult;
/**
* Gi... | 28.923077 | 99 | 0.725177 |
d5d4719b48ce7af8cbc99c0bdf6f414b34b69049 | 1,292 | package es.redmic.test.vesselscommands.integration;
/*-
* #%L
* Vessels-management
* %%
* Copyright (C) 2019 REDMIC Project / Server
* %%
* 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 a... | 26.367347 | 75 | 0.708978 |
780e05998aac64d854ef2cfc5201c688eea241fb | 826 | package com.ctrip.xpipe.redis.console.model;
import com.ctrip.xpipe.endpoint.HostPort;
import java.util.List;
/**
* @author chen.zhu
* <p>
* Jan 05, 2018
*/
public class SentinelModel {
private String dcName;
private List<HostPort> sentinels;
private String desc;
public String getDcName() {
... | 17.574468 | 65 | 0.624697 |
4d3fd2b0044510d0480c7b5dd3b5228894386873 | 1,696 | package com.n3vr0s.aubergine.app.screens.screen1;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.n3vr0s.aubergine.app.R;
import com.n3vr0s.aubergine.app.Navigator;
import com.n3vr0s.aube... | 27.803279 | 82 | 0.740566 |
38294618f6594cb199b2965e953d173191e34e82 | 1,277 | /**
* User Factory class
*
* Produces a new userInfo, called from orchestrator.registerUser()
*
* Produces a new User using userInfo.
*
*
* @author Traae
* @version 1.0
* @since 3/31/2021
*/
package Cs2263.Project.tools;
import Cs2263.Project.Configuration;
import Cs2263.Project.Orchestrator;
import Cs226... | 23.648148 | 87 | 0.681284 |
68e1a0911e5bbe0d3121653035826fc57005b579 | 1,532 | package br.com.casadocodigo.cupom;
import br.com.casadocodigo.entity.Cupom;
import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;
import javax.validation.constraints.Future;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecim... | 27.357143 | 110 | 0.703655 |
89f91484939b6331b942ace468918b6bd51ee3a6 | 142 | package threads.lite.core;
public interface Progress extends Closeable {
void setProgress(int progress);
boolean doProgress();
}
| 12.909091 | 45 | 0.732394 |
71e54719e48ef14df5da19100cedb59ec4d4a274 | 2,030 | package generic;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* @author Egor Vasilyev (deseng_pgs@mail.ru)
* @version 1
* @since 06.12.2018
*/
public class SimpleArray<T> implements Iterable<T> {
private Object[] array;
private int index = 0;
/**
* Конструктор.
*... | 21.827957 | 89 | 0.502463 |
cec41e5080e7bbd1bccd8280997ab9eb7b65239a | 5,109 | package io.api.etherscan.util;
import io.api.etherscan.error.EtherScanException;
import io.api.etherscan.error.InvalidAddressException;
import io.api.etherscan.error.InvalidTxHashException;
import io.api.etherscan.model.utility.BaseResponseTO;
import io.api.etherscan.model.utility.BlockParam;
import org.jetbrains.anno... | 33.834437 | 149 | 0.624388 |
1adb7509c7c4aa7514769864ba7889d97dd251ca | 1,241 | package org.jp.illg.dstar.g123.model;
import java.net.InetAddress;
import org.jp.illg.dstar.model.defines.PacketType;
import org.jp.illg.dstar.util.dvpacket2.FrameSequenceType;
import org.jp.illg.dstar.util.dvpacket2.TransmitterPacket;
import org.jp.illg.dstar.util.dvpacket2.TransmitterPacketImpl;
import lombok.Gett... | 24.333333 | 95 | 0.809025 |
426ff58d4e644ee4ad087cbeb8a324996f56925b | 21,441 | // Copyright 2017 Andreas Bartels
//
// 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... | 40.001866 | 105 | 0.636911 |
3f4794ab5bd791d394463eaf3c893490c25e6a36 | 2,660 | /*
* (c) Copyright 2019 Palantir Technologies 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 ... | 33.25 | 119 | 0.658647 |
d980ebdc0a1ab77b2d536c44ef02fd62bf045a81 | 409 | package ru.vol.addressbook.tests;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
@Test
public class brow {
public static void main(String[] args){
System.setProperty("webdriver.chrome.driver", "C:\\Tools\\chromedriver.exe" );
W... | 25.5625 | 82 | 0.713936 |
d64d80934c16a60f0ce544662c95477601f936de | 347 | package org.ovirt.engine.core.bll.tasks.interfaces;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.compat.Guid;
public interface CommandContextsCache {
public CommandContext get(Guid commandId);
public void remove(Guid commandId);
public void put(Guid commandId, C... | 23.133333 | 60 | 0.783862 |
99e6c3db60508c94968da1e2217cd0569809710f | 402 | package com.book.study.zen.chapter29.demob;
public abstract class Corp {
// 定义一个抽象的产品对象,不知道具体是什么产品
private Product product;
// 构造函数,由子类定义传递具体的产品进来
public Corp(Product product) {
this.product = product;
}
// 公司是干什么的?赚钱的!
public void makeMoney() {
// 没家公司都一样,先生产
thi... | 19.142857 | 43 | 0.609453 |
9f45917029e66bbff03454ef2bf6fd9b0d65ad22 | 1,280 | /*
* Copyright 2018 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/
*
* 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
*
* Unl... | 25.098039 | 75 | 0.710156 |
002f5d151bddc89afce148a795b6ddaf3ec1fa0d | 1,878 | package test.concurrent;
import java.io.ObjectInputStream.GetField;
import java.util.Random;
/*
* @desc Java ThreadLocal test
* @time 2020-5-12
* @author zhouaryang
*/
public class ThreadLocalDemo implements Runnable{
private final static ThreadLocal<People> threadlocal = new ThreadLocal<>();
public static v... | 24.38961 | 80 | 0.645367 |
7d79f005e0bad1db3f5c7c07d20e4a31a60c824a | 94 | package com.gbss.framework.core.api.service.api;
public interface ObjectExtensionService {
}
| 18.8 | 48 | 0.819149 |
733142b96844ddef02255eb1bbe94baa02d64060 | 2,974 | /**
* Copyright 2020-2021 JinlongLiao
* <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 required by applicable law... | 23.603175 | 87 | 0.696369 |
0ce613ca30de119f809cb23f228870e87e56196c | 1,247 | package ca.uhn.fhir.example;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.parser.IParser;
import ca.uhn.fhir.validation.FhirValidator;
import org.hl7.fhir.dstu3.hapi.ctx.DefaultProfileValidationSupport;
import org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator;
import org.hl7.fhir.dstu3.model.Encou... | 40.225806 | 112 | 0.758621 |
ae668fffcd4e48c0661c94bc676f1d826b797bfd | 404 | package com.ql.util.express.rule;
/**
* <p>
* used for else statement <br>
* Created by hongkai.wang on 2020/11/12.
* </p>
*/
public class EmptyCondition extends Condition {
public static EmptyCondition INSTANCE = new EmptyCondition();
@Override
public String getText() {
return "";
}
... | 18.363636 | 65 | 0.628713 |
2ca2f70ca87c21e35a58b266bb0f6f888993f26a | 716 | package com.softicar.sqml.model.files.validation;
import com.softicar.sqml.model.files.FilesPackage;
import com.softicar.sqml.model.files.ISqmlImport;
import com.softicar.sqml.model.validation.AbstractSqmlWarning;
import org.eclipse.emf.ecore.EStructuralFeature;
public class SqmlIssueLocalPackageImport extends Abstra... | 26.518519 | 106 | 0.807263 |
c4ed7372815757112bea883f91cd28a49e151653 | 288 | package com.pilaf.cs.users.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.pilaf.cs.users.model.User;
public interface UserRepository extends JpaRepository<User, Long> {
User findByUsername(String username);
User findByEmail(String email);
}
| 20.571429 | 67 | 0.802083 |
793bdc6a84bb22648acbc223afa9b0cfa96cb20d | 1,481 | package main.java.IP.twoheaps;
import java.util.PriorityQueue;
class MedianOfAStream {
PriorityQueue<Integer> maxheap = new PriorityQueue<>((a,b) -> b-a);
PriorityQueue<Integer> minheap = new PriorityQueue<>((a,b) -> b-a);
public void insertNum(int num) {
if (maxheap.isEmpty() || maxheap.peek(... | 28.480769 | 87 | 0.596894 |
f7b0221e57c343c31c039fe86acb651f8cce2ea5 | 10,087 | /*
* Copyright 2010 Vrije Universiteit
*
* 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 ag... | 28.985632 | 79 | 0.572816 |
610a73211464adf9e9914e9381c4ec21ba3cd57d | 882 | package com.onebuilder.backend.entityDTO;
import java.util.Date;
import java.util.List;
public class SaleIngressDTO {
public Long saleID;
public Date dateTime;
public List<SaleItemIngressDTO> saleItems;
public Long clientID;
public void setSaleID(Long saleID) {
this.saleID = saleID;
}... | 22.615385 | 66 | 0.591837 |
684d7d3679b51ef3701933953dd452c68a758c9a | 636 | package com.laptrinhjavaweb.repository;
import com.laptrinhjavaweb.entity.BuildingEntity;
import com.laptrinhjavaweb.repository.custom.BuildingRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.Collection;
import java.... | 39.75 | 107 | 0.833333 |
2253bb1a277258631a65535053b448c02ff777ba | 3,655 | package org.codice.dominion.pax.exam.internal;
import java.io.File;
import java.nio.file.Paths;
import javax.annotation.Nullable;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.codice.dominion.pax.exam.interpolate.PaxExamInterpolator... | 34.158879 | 95 | 0.665116 |
81538541fe7c6ddc8089a155b55e087f0d97ce93 | 93 | package com.itunic.midas;
public interface RPCTest {
public String hello111(String abc);
}
| 15.5 | 36 | 0.774194 |
cbcde61a8e820750e7f3a9522302e1a04151a091 | 376 | package com.hiriver.unbiz.mysql.lib.protocol.binlog.exp;
/**
* 表结构已经被修改异常,当接收到的binlog事件描述的列总数大于当前数据库
* 中表的列数时,抛出该异常,表示表结构已经发生变化,将无法匹配到正确的列名
*
* @author hexiufeng
*
*/
public class TableAlreadyModifyExp extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public TableAl... | 17.090909 | 61 | 0.739362 |
9188f5435e78c257d8b31817069946dee8428a62 | 339 | package voltric.learning.structure.hillclimbing;
/**
* Esta clase define en su constructor los operadores a utilizar, deberia seguir algun tipo de jerarquia con HC y puede
* servir como base para otro tipo de algoritmos como el super parent o un k-db clasico en el caso de modelos
* naive bayes
*/
public class Simp... | 33.9 | 119 | 0.775811 |
55eb41bb51f79ea35d40ae6b0b60d6fa482f3928 | 1,005 | package competencies.us.screen;
import com.eduworks.ec.framework.browser.url.URLParams;
import com.eduworks.ec.framework.view.EcScreen;
import com.eduworks.ec.framework.view.manager.ModalManager;
import com.eduworks.ec.framework.view.manager.ScreenManager;
import org.stjs.javascript.functions.Callback0;
import org.stj... | 22.840909 | 78 | 0.754229 |
cd7899ea786542d58c832efea172812468a2802f | 2,185 | package us.ihmc.humanoidRobotics.communication.packets.sensing;
import java.util.Random;
import javax.vecmath.Point3d;
import javax.vecmath.Point3f;
import us.ihmc.communication.packets.Packet;
import us.ihmc.communication.packets.PacketDestination;
public class MultisenseMocapExperimentPacket extends Packet<Multis... | 28.012821 | 92 | 0.629291 |
045b25e1fa4c83311934e27b85be412b68a55668 | 1,286 | /*
Copyright 2010 Jonathan L. Elsas
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 ... | 27.956522 | 75 | 0.694401 |
2fb80d025faa1f48e451a7da61403b11a69403e7 | 4,685 | package optimizationgui;
import mit.cadlab.dome3.objectmodel.model.tool.AnalysisToolBase;
import mit.cadlab.dome3.objectmodel.modelinterface.ModelInterfaceBase;
import mit.cadlab.dome3.objectmodel.toolinterface.AnalysisToolInterfaceBase;
import mit.cadlab.dome3.objectmodel.toolinterface.optimizationinterface.run.... | 32.089041 | 142 | 0.613234 |
ac92e498c1f75fc2a9455cdc3b95edef1ff31c9c | 1,563 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.eventLog.validator.storage;
import com.intellij.internal.statistic.eventLog.EventLogBuild;
import com.intellij.internal.statistic.eventLog... | 41.131579 | 140 | 0.799744 |
0b65abc515d05354f03c09456a83c80c46fb05c6 | 707 | package com.wjwcloud.iot.utils.redis;
public interface CacheKeyConstant {
String INFORMATIONONEPAGE_KEY = "INFORMATIONONEPAGE_KEY";
String CURRSYSTEMP_KEY = "CURRSYSTEMP_KEY";
String CURRSTATISTICSCODE_KEY = "CURRSTATISTICSCODE_KEY";
String SHOPKUAISHANG_KEY = "SHOPKUAISHANG_KEY";
String CURRMOBSIT... | 39.277778 | 61 | 0.758133 |
5568e2b144d2e383f95619b4f58fe2b9cea8941f | 2,565 | /* ====================================================================
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 ... | 31.666667 | 93 | 0.598441 |
b7a9ff8ac7ff334e298ce733aa66fa6f44312047 | 2,546 | package net.ssehub.easy.producer.core.persistence.datatypes;
import java.util.LinkedHashMap;
import net.ssehub.easy.producer.core.persistence.internal.util.FileUtils;
/**
* This class represents the entities for the persistency data-model.
*
* @author Kapeluch
* @since 25.08.2011
*/
public class Entity {
p... | 28.606742 | 107 | 0.655538 |
3504d6c126a72eed32754d4aa63d7e885c8c47c5 | 894 | package org.riversun.d6.test.model;
import org.riversun.d6.D6Model;
import org.riversun.d6.annotation.DBColumn;
import org.riversun.d6.annotation.DBTable;
/**
* Model class for Testing D6
*
* @author Tom Misawa (riversun.org@gmail.com)
*
*/
@DBTable(tableName = "school")
public class School impleme... | 29.8 | 115 | 0.671141 |
2620a9228fea6718abdf7cb6829f7780ed4cfac9 | 2,389 | /*
* 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 co.edu.uniandes.csw.dispositivos.dtos;
import co.edu.uniandes.csw.dispositivos.entities.CategoriaEntity;
import co.edu.uniande... | 29.493827 | 101 | 0.645877 |
03030bcd742fd1e88cb32a63dc6894cf08377f13 | 1,182 | package com.group_finity.mascot.action;
import java.util.logging.Logger;
import com.group_finity.mascot.exception.VariableException;
import com.group_finity.mascot.script.VariableMap;
/**
* Original Author: Yuki Yamada of Group Finity (http://www.group-finity.com/Shimeji/)
* Currently developed by Shimeji-ee Group... | 27.488372 | 102 | 0.743655 |
e4745547832299814c0c4e58bf99b19a125268f0 | 2,074 | package kl.app.entities;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;
@Entity
public class Employee {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long id;
@ManyToOne
priv... | 18.684685 | 61 | 0.633076 |
3bdae9bf2b64d41915cc80ed20fdc858d5ff7989 | 9,009 | /*
* Copyright 2018 NEM
*
* 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... | 43.3125 | 119 | 0.743035 |
c3d3dcdc341c7b7e0c3786770404f2d7107c786f | 10,160 | package com.hkh.korealocal114.fragments;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.co... | 29.794721 | 89 | 0.73248 |
11e8ba4a308960508dcd8cafbf0ed7bfebf90608 | 2,061 | package com.sequenceiq.sdx.api.endpoint;
import javax.validation.Valid;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.springframework.validation.annotation... | 38.166667 | 129 | 0.779719 |
8b31accfa629bd6ed4c407c2c18766712c7900bb | 9,012 | package it.unipd.dei.bdc1718;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import java.io.FileNotFoundException;
import java.util.*;
import org.apache.spark.storage.StorageLevel;
import sc... | 46.9375 | 119 | 0.529405 |
8dd856c57f8f6273983fc51bc729cddae1963577 | 265 | import java.util.Arrays;
public class example{
public static void main(String[]args){
String[]grades = {"mango","strawberry","grapes"};
String[]scores = Arrays.copyOf(grades,4);
System.out.print(Arrays.toString(scores));
}
} | 29.444444 | 57 | 0.626415 |
67e9a8f404978c3e4de2a72fe11d787f93876be0 | 3,234 | /*
* Copyright 2020 ThoughtWorks, 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 agr... | 28.368421 | 91 | 0.669759 |
4e420ae372c477e1413137ceeea95e4021173a86 | 2,019 | package ch.want.funnel.extension;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import ch.want.funnel.extension.model.Traveler;
public abstract class MinimalConverterSettings extends AbstractSettings {
/**
* If activate - and only if - includes meal, seat, accommodatio... | 36.709091 | 95 | 0.699356 |
9d1668f4f5d4c243571c0848fb4f73fbadf5b739 | 4,355 | /*
* 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 tgs;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.util.logging.Lev... | 34.291339 | 98 | 0.607577 |
bfb1ff7b5e2eaff990ba68d03a4662c2ef720fd6 | 1,603 | package org.openstack4j.api.storage;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import java.io.IOException;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.sto... | 34.106383 | 87 | 0.7199 |
e709fe2182f729eb9442e45e288e3deb42d490f3 | 626 | package net.sf.anathema.platform.environment;
import net.sf.anathema.platform.repository.RepositoryPreference;
import net.sf.anathema.platform.repository.RepositoryPreferenceModel;
public class DummyInitializationPreferences implements RepositoryPreference {
private String repositoryLocation;
@Override
public... | 29.809524 | 77 | 0.808307 |
2b4e38fe498d2837e357006e517e4a339776e1ec | 1,736 | // This file was automatically generated from IFCDOC at https://technical.buildingsmart.org/.
// Very slight modifications were made to made content align with ifcXML reference examples.
// Use this class library to create IFC-compliant (web) applications with XML and JSON data.
// Author: Pieter Pauwels, Eindhoven Uni... | 34.72 | 146 | 0.814516 |
14b160a6c1d3abd7084d93dc346a8f0cd36fd00d | 2,287 | package com.sromku.simple.fb.actions;
import com.facebook.AccessToken;
import com.facebook.FacebookRequestError;
import com.facebook.GraphRequest;
import com.facebook.GraphResponse;
import com.facebook.HttpMethod;
import com.sromku.simple.fb.SessionManager;
import com.sromku.simple.fb.listeners.OnDeleteListener;
impor... | 35.734375 | 131 | 0.618277 |
b15c373cf02a41a63be5ebd59c2d66d20c4f76af | 4,548 | package com.xkcoding.async.task;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
im... | 25.266667 | 98 | 0.632366 |
b911b3610b3f7c6abc5413c0405367bf43b0b531 | 3,673 | package br.com.raulcaj.transactionmodule.domain;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.validation.constraints.NotNull;
import... | 30.355372 | 155 | 0.783556 |
05122f97b6fa2776b1cc4d2ae410baf60209a771 | 3,071 | /*
* Maisam Alatrach 20091817
* Oudai Fayek 20091861
* Latrobe University
* 29/05/2020
*/
package com.controllers;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
impo... | 32.670213 | 119 | 0.722566 |
885eb51863249c0df4fb614f19eccc2c222cc8d7 | 1,363 | /*
* Copyright (C) 2017 Dremio 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... | 32.452381 | 79 | 0.731475 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.