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 |
|---|---|---|---|---|---|
53b976d8d37685ecbb34dab6c9718fe313257d30 | 6,585 | package eu.smartdatalake.simsearch.engine.processor;
import java.util.HashMap;
import java.util.Map;
import eu.smartdatalake.simsearch.engine.IResult;
import eu.smartdatalake.simsearch.engine.measure.ISimilarity;
import eu.smartdatalake.simsearch.manager.DatasetIdentifier;
import eu.smartdatalake.simsearch.ma... | 51.850394 | 261 | 0.719666 |
59d3de2b54d7197cc549180fd0fde15ea08d4b46 | 1,577 | package at.co.svc.bs;
import javax.json.bind.annotation.JsonbProperty;
import javax.json.bind.annotation.JsonbPropertyOrder;
import at.co.svc.jareto.common.exceptions.AppExceptionData;
/**
* Custom, extended data to be transported along with an exception.
* Note that we add explicitly annotated getters an... | 21.60274 | 98 | 0.679138 |
1d30a2d724ca2a49402d380b545c74a1873cf85b | 530 | package no.nnsn.seisanquakemljpa.models.quakeml.v12;
import lombok.Data;
import lombok.NoArgsConstructor;
import no.nnsn.seisanquakemljpa.models.quakeml.v12.event.elements.EventParametersDto;
import javax.xml.bind.annotation.*;
@Data
@NoArgsConstructor
@XmlRootElement(name = "quakeml")
@XmlAccessorType(XmlAccessType... | 24.090909 | 85 | 0.784906 |
ae02415f590e6e2b75e6610e9910232c7b820742 | 5,725 | /*
* Copyright 2016 Bjoern Bilger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 28.341584 | 113 | 0.7469 |
eaa221e6bb4257c3104c55fab3d0dc3de7872d3a | 469 | package com.handcoding.template.controller;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class RootController implements ErrorController {
@GetMapping({"/", "/erro... | 23.45 | 66 | 0.724947 |
fe184872fd869345e618bdf6659e823605751840 | 247 | package com.clsaa.tiad.buidlingblock.enums;
/**
* @author clsaa
*/
public enum ContextMappingRole {
/**
* UPSTREAM
*/
UPSTREAM,
/**
* CONSUMER
*/
DOWNSTREAM,
/**
* PARTNER
*/
PARTNER,
}
| 10.291667 | 43 | 0.502024 |
5dbdc608fbaca244d3eb9bbb62a28c865ac20e0f | 2,218 | package io.github.mightycoderx.quiteusefulcommands.maps;
import io.github.mightycoderx.quiteusefulcommands.QuiteUsefulCommands;
import io.github.mightycoderx.quiteusefulcommands.utils.HTTPUtils;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack... | 23.347368 | 81 | 0.710099 |
9812f230032610cc0d55be10e75bbe46ee3cb9ed | 2,655 | package natlab.refactoring;
import ast.FunctionList;
import mclint.MatlabProgram;
import mclint.McLintTestCase;
public class FunctionInlinerTest extends McLintTestCase {
private void assertInliningOutput(String... expectedCode) {
MatlabProgram f1 = project.getMatlabProgram("f1.m");
FunctionInliner in... | 25.528846 | 112 | 0.401883 |
c63460456966728253b3030b1f511e705c6883c4 | 1,626 | package com.yelelen.sfish.helper;
import android.support.annotation.NonNull;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* Created by y... | 29.035714 | 71 | 0.648216 |
d3bb416dfaf68666e9048d73fb8c71250185bbef | 1,409 | package org.cloudfoundry.multiapps.mta.parsers;
import static org.cloudfoundry.multiapps.mta.handlers.v2.Schemas.MODULE_TYPE;
import java.util.Map;
import org.cloudfoundry.multiapps.common.ParsingException;
import org.cloudfoundry.multiapps.mta.model.ModuleType;
import org.cloudfoundry.multiapps.mta.schema.MapElemen... | 29.978723 | 79 | 0.699787 |
558784808159128a64115f969b6e706bdb0353ed | 3,061 | /**
* Copyright (c) 2013-2015 www.javahih.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.hihsoft.sso.business.service;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.hihsoft.baseclass.service.BaseService;
import c... | 41.931507 | 152 | 0.67625 |
459bd503023e7c6d2e8cc4942168e89fb7e27612 | 342 | package com.svn.gsheetsserviceaccount.repositories;
import com.svn.gsheetsserviceaccount.model.Contact;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface ContactRepository extends MongoRepository<Contact, ObjectId> {
public boolean existsContactB... | 31.090909 | 79 | 0.842105 |
c187dbde934cd7c2ad14e5919382c679307431ab | 6,388 | /*
* 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 ... | 45.628571 | 115 | 0.724953 |
22ea408d77732b8f93e334df21f6939553a5db26 | 10,274 | package gov.va.escreening.dto.ae;
import static com.google.common.base.Preconditions.*;
import com.google.common.base.Strings;
import gov.va.escreening.constants.AssessmentConstants;
import gov.va.escreening.entity.MeasureAnswer;
import gov.va.escreening.entity.MeasureAnswerBaseProperties;
import gov.va.esc... | 33.357143 | 165 | 0.638018 |
698efc1fcd5c6f2becc86b542fa01ded41a06aa4 | 785 | package com.sinotrans.transport.dto.out;
import com.sinotrans.transport.dto.common.RestResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Created by jason on 2016/5/18.
*/
public class QueryCrmResponse extends RestResponse {
List<Map<String,Object>> crms = new ArrayList<M... | 20.657895 | 72 | 0.650955 |
886ce105e82bc5f305e7d64c4393e3882dfab99f | 16,039 | /*
* Copyright 2020 The Apache Software Foundation.
*
* 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 applica... | 44.184573 | 184 | 0.712451 |
5d7192a77364b15804d4a7b11036cebbc67a82fa | 935 | package Chapter07.P162_GetPublicAndPrivateFields.src.modern.challenge;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
Class<Melon> clazz = Melon.class;
Field[] fie... | 25.27027 | 70 | 0.616043 |
5ab2274642db56f15f69fb3cf33edce59bab2b14 | 10,324 | /*
* __ .__ .__ ._____.
* _/ |_ _______ __|__| ____ | | |__\_ |__ ______
* \ __\/ _ \ \/ / |/ ___\| | | || __ \ / ___/
* | | ( <_> > <| \ \___| |_| || \_\ \\___ \
* |__| \____/__/\_ \__|\___ >____/__||___ /____ >
* \/ \/ ... | 29.413105 | 80 | 0.5432 |
308d9f079db47749ac6ba739c89d5a2b844aef90 | 1,614 | package se.david.moviesimporter.importers;
import java.io.IOException;
import java.util.List;
import java.util.function.Consumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import se.david.moviesimporter.domain.tmdb.ProductionCompany;
import se.david... | 31.647059 | 90 | 0.780669 |
5b4eb7c8dc574dbb48dd1bd3f8830bb7e45380ad | 1,375 | package es.luepg.es.worlddata;
import java.util.Collection;
import java.util.List;
/**
* Applies custom overrides
*
* @author elmexl
* Created on 28.05.2019.
*/
public class ManualOverrides {
/**
* Custom renaming for properties
* @param blockname the blockname (reversed order)
* @param proper... | 32.738095 | 113 | 0.584 |
9d933c7e8f628c2aff70e9a94d94a405ae8c8f8a | 1,333 | /*
* Copyright (C) 2019-2021 ConnectorIO Sp. z o.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 applicab... | 29.622222 | 75 | 0.756939 |
824226497bde67c3df22f288fb0c58b7b6fa1720 | 110 |
public class HelloWorld3 {
public static void main(String[] args) {
System.out.println("TESTE");
}
}
| 10 | 41 | 0.663636 |
590f3c76d6b8806cffc4d0e33ac1536887978961 | 1,069 | package com.mtapo.app.entity;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.Email;
import java.util.Set;
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
@ToString
@Entity
@Table(name = "user")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTIT... | 23.23913 | 74 | 0.679139 |
b22bd4db8cc8b2559c725b7990bc8b085bee260b | 5,868 | package org.jacobvv.calendar.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import org.jacobvv.calendar.model.BaseLunarDataSource.GetLunarCallback;
import org.jacobvv.calendar.util.Utils;
import java.util.ArrayList;
import java.util.Calendar;
import java.uti... | 26.313901 | 106 | 0.605658 |
c2fa9e6e91208b0572695431e7cbddf6b444ba5f | 4,109 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 29.992701 | 137 | 0.639572 |
7c76a29f8e773551d45f1823af243094cec5278f | 2,266 | package org.hydev.veracross.sdk.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* This class is the data POJO class for faculty and staff directory:
* https://portals-app.v... | 22 | 106 | 0.704766 |
77d3e057791b7f65d23224db6881d77c6662f5f5 | 317 | package org.adorsys.adpharma.client.jpa.documentstore;
import org.adorsys.javafx.crud.extensions.InitialScreenController;
public class DocumentStoreIntialScreenController extends InitialScreenController<DocumentStore>
{
@Override
public DocumentStore newEntity()
{
return new DocumentStore();
}
}
| 24.384615 | 95 | 0.798107 |
ef80f6d0a38c63ad10a1e044559b10b72914fe05 | 9,499 | package com.weikaiyun.fragmentation;
import android.os.Bundle;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.app.ActivityCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx... | 33.925 | 120 | 0.694599 |
eca42ac7c0d298c833294b5aabba96d8b62ed9c0 | 890 | package de.samply.share.client.quality.report.file.id.path;
import de.samply.share.client.quality.report.file.csvline.manager.QualityResultCsvLineManager002;
import de.samply.share.client.quality.report.file.excel.pattern.ExcelPattern002;
import de.samply.share.client.quality.report.file.metadata.txtcolumn.MetadataTxt... | 32.962963 | 97 | 0.819101 |
d931fcbf79157f4be25334e2106b38a3ef85e161 | 3,798 | package com.alibaba.tc.table;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.NavigableMap;
import java.util.TreeMap;
import static java.util.Objects.requireNonNull;
public class SortedTable {
private Tr... | 28.772727 | 127 | 0.558452 |
5275af4d49697dc174065abf82d71d8a7b635bf9 | 29,216 | // This is a generated file. Not intended for manual editing.
package org.intellij.clojure.parser;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiBuilder.Marker;
import static org.intellij.clojure.psi.ClojureTypes.*;
import static com.intellij.lang.parser.GeneratedParserUtilBase.*;
import com.intelli... | 33.620253 | 94 | 0.550452 |
7dc3d2e3e889044f1ca3f98e0c019f870817455a | 248 | package br.com.zup.desafioproposta.repository;
import br.com.zup.desafioproposta.model.AvisoViagem;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AvisoViagemRepository extends JpaRepository<AvisoViagem, Long> {
}
| 31 | 81 | 0.846774 |
399725b9167188a9ddccde331878c43bae57ef96 | 97 | package com.tvd12.ezyfoxserver.command;
public interface EzyAppResponse extends EzyResponse {
}
| 19.4 | 53 | 0.835052 |
3091e9df95a0818171f4cbc9c7b387ed5e17f1a5 | 1,179 | package gov.usgs.volcanoes.swarm.data;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author Dan Cervelli
*/
public class GulperList {
public final static GulperList INSTANCE = new GulperList();
private Map<String, Gulper> gulpers;
private GulperList() {
gulpers = new HashMap<String, Gulper>(... | 22.245283 | 99 | 0.605598 |
992abb85492b4398d69163e8def4b1e13f47f93a | 1,102 | package com.genius.backend.domain.repository;
import com.genius.backend.domain.model.alimy.AlimyDto;
import com.genius.backend.domain.model.alimy.QAlimy;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.Predicate;
public class AlimyPredicate {
private AlimyPredicate() {
throw new IllegalSta... | 24.488889 | 63 | 0.708711 |
f4a2189c1350edafe2dd218650f6056fd03b29dd | 2,131 | /**
*/
package substationStandard.Dataclasses;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Point</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link substationStandard.Dataclass... | 27.320513 | 105 | 0.626936 |
6201223cb3a63b53be372dad7ee5af91f714cdc0 | 484 | package com.javatraining.abstraction;
import java.util.Arrays;
import com.javatraining.interfaces.Library;
public abstract class AbstractLibrary implements Library {
public boolean validateAndCheckoutBook(String isbn, String id) {
String[] idArr = new String[]{"111","222","333","444"};
if(Arrays.asList(idArr).... | 25.473684 | 87 | 0.737603 |
34366a1ccbcc4da4776fd81bd7ad8cc6d231fd57 | 303 | package com.graly.mes.prd.designer.model;
public class PriorityType {
public static final String HIGHEST = "highest";
public static final String HIGH = "high";
public static final String NORMAL = "normal";
public static final String LOW = "low";
public static final String LOWEST = "lowest";
}
| 25.25 | 48 | 0.739274 |
f2ce3e5f47d11c29629940696941e85a0a03ebd7 | 2,794 | package salvo.jesus.graph.xml;
/**
* Defines constants and literals within the XGMML vocabulary.
*
* @author Jesus M. Salvo Jr.
*/
public class XGMML {
/**
* Public ID of XGMML
*/
public static final String PUBLIC_ID = "-//John Punin//DTD graph description//EN";
/**
* System I... | 41.088235 | 97 | 0.716535 |
2843dd8450a44d89c22060b3e8c120d1d10200a6 | 1,114 |
public class Member {
private int memberID;
private String fName, lName;
private double donationAmount;
public Member() {
this(1000, "John", "Smith", 250.0);
}
public Member(String fn, String ln) {
this(1001, fn, ln, 500.0);
}
public Member(int membe... | 31.828571 | 85 | 0.539497 |
008ecdc8dab849c7561b7b1f07f2a660094e1f53 | 1,591 | package seedu.address.logic.commands.main;
import seedu.address.logic.commands.Command;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.ExitCommand;
import seedu.address.model.Model;
/**
* Format full help instructions for every command for display.
*/
public class HelpBudgetC... | 38.804878 | 101 | 0.674419 |
62a23ee8d6273e4f84720180dfc3477de1ea65a7 | 1,113 | package com.cloud.network.nicira;
import static org.junit.Assert.assertTrue;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.junit.Test;
public class NatRuleTest {
@Test
public void testNatRuleEncoding() {
final Gson gson =
... | 31.8 | 101 | 0.65319 |
cba9a5c950eb94c4cd21077f6bc0a6f8e581f4b0 | 330 | package com.dennyy.oldschoolcompanion.interfaces;
import com.dennyy.oldschoolcompanion.customviews.ObservableWebView;
public interface WebViewScrollListener {
void onWebViewScrollDown(ObservableWebView observableWebView, int y, int oldY);
void onWebViewScrollUp(ObservableWebView observableWebView, int y, int... | 33 | 83 | 0.833333 |
6d1289f78decf54f0a986914f1900d346ef9a441 | 2,595 | package com.eyelinecom.whoisd.sads2.telegram.interceptors;
import com.eyelinecom.whoisd.sads2.RequestDispatcher;
import com.eyelinecom.whoisd.sads2.connector.SADSRequest;
import com.eyelinecom.whoisd.sads2.connector.Session;
import com.eyelinecom.whoisd.sads2.content.ContentRequest;
import com.eyelinecom.whoisd.sads2.... | 30.892857 | 95 | 0.679383 |
ee5521828f52e97dca24aa3f934b5bfdd1764082 | 6,110 | /*
* 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 ... | 33.206522 | 117 | 0.672504 |
34911f1e28cbe3a3f0300924beb581b506c6e57a | 26,577 | /*
* This file was automatically generated by EvoSuite
* Fri Nov 06 14:17:22 GMT 2020
*/
package weka.core.stemmers;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
i... | 32.851669 | 325 | 0.683072 |
c6c48601cd4cae4264ae2b2f2b533dc7d5082a22 | 2,555 | package owlmoney.logic.command.transaction;
import static owlmoney.commons.log.LogsCenter.getLogger;
import java.util.Date;
import java.util.logging.Logger;
import owlmoney.logic.command.Command;
import owlmoney.model.bank.exception.BankException;
import owlmoney.model.profile.Profile;
import owlmoney.model.transact... | 39.921875 | 110 | 0.723679 |
e695ef55087fc0217ae34342217ccda476188767 | 2,891 | package com.dea42.watchlist.search;
import com.dea42.watchlist.controller.FieldMatch;
import com.dea42.watchlist.controller.UniqueEmail;
import com.dea42.watchlist.controller.ValidatePassword;
import com.dea42.watchlist.entity.Account;
import com.dea42.watchlist.utils.MessageHelper;
import com.fasterxml.jackson... | 30.114583 | 410 | 0.711173 |
0125850c3d648828f0703dc97c0a2e298abf53ce | 825 | package com.example.android.popularmovies;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import com.example.android.popularmovies.database.AppDatabase;
public class DetailViewModelFactory extends ViewModelProvider.NewInstanceFacto... | 30.555556 | 89 | 0.757576 |
ec49dfc54a8b5cd2043b82a0705b75bfbc800590 | 10,700 | package org.xiaoxingqi.gmdoc.entity.user;
import org.xiaoxingqi.gmdoc.entity.BaseRespData;
/**
* Created by yzm on 2017/11/7.
*/
public class UserInfoData extends BaseRespData {
/**
* state : 200
* data : {"username":"大王","top_image":null,"sex":1,"avatar":"/images/avatar_default.png","desc":null,"... | 24.597701 | 565 | 0.542243 |
9f8bc7700de7030c3c1647ba9890c929c87e2165 | 762 | package ru.revuelArvida.pomodoroTelegramBot.command.messageCommands.settingsMenu.pesonalSettings;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
class Checker {
enum SetField{
WORK("Длительность работы"),
SHORT("Длительность коротк... | 21.771429 | 97 | 0.686352 |
6ac8eabbcd934990ed16f4738434edaa86090b4b | 1,556 | /*
* Copyright (C) 2015 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 applicable l... | 50.193548 | 134 | 0.764781 |
498117324f5f332366430cc4bd5578a197166b8f | 3,287 | package com.mycompany.drawingboard.light;
import grizzly.MyGrizzlyServerContainer;
import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
import org.glassfish.jersey.server.ResourceConfig;
import java.io.IOException;
import java.net.URI;
... | 42.688312 | 125 | 0.684819 |
cb1888c7311b7fc41dc4f070083486b0149ad6e5 | 2,514 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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... | 33.52 | 108 | 0.737868 |
add065fd07d715d05322abdc5396408807af5e2f | 6,719 | package com.cxm.android.semaforo;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Vibrator;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.LinearLayout;
i... | 30.680365 | 131 | 0.592797 |
765a3292db63cbbaf0da326cff65c6289f041a2a | 1,576 | /*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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... | 27.649123 | 75 | 0.721447 |
bb90e9c5fa6e00a6f2b7d82c15e8b9e2e20afa62 | 1,285 | package org.example.second;
public class Customer extends Thread {
private final BarberShop barberShop;
private volatile boolean cut = false;
public Customer(BarberShop barberShop) {
this.barberShop = barberShop;
}
@Override
public void run() {
while (!cut) {
if (barberShop.hasFreeSpace()) ... | 22.946429 | 95 | 0.622568 |
0cc945a86da9019f9ed38305f053ea42f868fc60 | 1,707 | /**
* Copyright (c) 2016 Julian Sven Baehr
*
* See the file license.txt for copying permission.
*/
package de.eternity.input;
/**
* Handles button related input.
* @author Julian Sven Baehr
*
*/
public class ButtonInput {
public static final boolean STATE_PRESSED = true, STATE_RELEASED = false;
private b... | 23.067568 | 74 | 0.674868 |
24caa59cd5b8b6dd7b86176f0d41ada85ad866c6 | 5,093 | /*
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 41.745902 | 128 | 0.709601 |
76d74e588c2576417a5d5f5b6f9065b67d7906c6 | 3,736 | package cn.ucai.SuperWechat.activity;
import java.util.Collections;
import java.util.List;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Men... | 26.877698 | 113 | 0.658458 |
93598c252bec6a1e8b6c70ca021fb6b824d0c8d2 | 6,551 | /*******************************************************************************
* Copyright (c) 2010, 2011 Tran Nam Quang.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availab... | 30.050459 | 81 | 0.691192 |
002a25365676aa421c3c6b9aca02b5d75e96901b | 6,924 | package com.aaa.project.system.planInfo.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aaa.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat... | 19.07438 | 65 | 0.679376 |
7049d0f1db6e504e81478a5892ee7e865a943bbd | 8,892 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 39.874439 | 113 | 0.747301 |
5384b8c41f3a7311c0cc512e09a715d5c3fe55b5 | 34,620 | 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 ... | 14.725649 | 810 | 0.809301 |
05c532f35d44f2a3a3a3b856749c50a4cd763707 | 2,277 | package net.Nephty.rgbee.data;
import net.Nephty.rgbee.Rgbee;
import net.Nephty.rgbee.setup.ModTags;
import net.minecraft.data.BlockTagsProvider;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.ItemTagsProvider;
import net.minecraftforge.common.Tags;
import net.minecraftforge.common.data.Exi... | 56.925 | 137 | 0.754502 |
2cf09c3bc2af2626bc97cf8c78180d53b3413f0f | 3,183 | /*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS... | 43.013514 | 98 | 0.768457 |
64931e6639eb27b9b4e5f530083199d124cd5b76 | 3,835 | package ru.andreymarkelov.atlas.plugins.jira.groovioli.listeners;
import com.atlassian.event.api.EventListener;
import com.atlassian.event.api.EventPublisher;
import com.atlassian.jira.event.DashboardViewEvent;
import com.atlassian.jira.event.issue.IssueEvent;
import com.atlassian.jira.event.user.LoginEvent;
import co... | 39.536082 | 112 | 0.71395 |
9df74ad5ce9a94a6d0ca52a4b811767d5e01d4f6 | 4,297 | package cn.orgid.common.sms;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Date;
import java.util.Random;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.squareup.okhttp.MediaType;
import com.squareup... | 22.73545 | 108 | 0.665813 |
506d5a26d758a2d72262e9336adb7d5d71ccf3ac | 496 | class auto
{
public static void main(String args[])
{
int i,k,m,s,s1,s2,f,m1;
for(i=1;i<=1000;i++)
{
k=i;
m=k*k;
s1=m;
s=0;
while(m>0)
{
s++;
m=m/10;
}
... | 19.84 | 50 | 0.27621 |
8e80951c053436d9b029362b6082dca276dc2755 | 141 | import foo.bar.*;
class Main {
void foo() throws ReflectiveOperationException {
Test.class.getDeclaredAnnotationsByType(<caret>);
}
} | 23.5 | 53 | 0.737589 |
14e4a6f88e6dee3964d75da18fda50b92d484bb7 | 5,583 | /*
Derby - Class com.pivotal.gemfirexd.internal.impl.store.access.sort.SortScan
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 t... | 28.340102 | 118 | 0.70249 |
a7ff0412ffc17e9ca6407bf98e3490173ccdaaab | 747 | package com.tks.wearosheartbeatsample;
import android.app.AlertDialog;
import android.content.Context;
public class ErrDialog {
/* AlertDialog生成 */
public static AlertDialog.Builder create(Context context, String ErrStr) {
return new AlertDialog.Builder(context)
.setMessage(ErrStr)
.setNegativeButton(R.st... | 29.88 | 75 | 0.732262 |
1b666ecfc6b1ede0264266c3364f3e6f991e5009 | 1,124 | package com.duckblade.runelite.togindicator;
import javax.inject.Inject;
import net.runelite.api.Client;
import net.runelite.api.GameState;
import net.runelite.api.events.WidgetLoaded;
import net.runelite.api.widgets.WidgetInfo;
import net.runelite.client.eventbus.Subscribe;
import net.runelite.client.plugins.Plugin;
... | 20.436364 | 70 | 0.77758 |
1a383140fe2f90fbdfbe34303bbf4c6b408fe2fc | 2,575 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.logic.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.core.u... | 47.685185 | 114 | 0.79767 |
58041844b0da56e54fb30891fba4350ba8d2300e | 44,350 | /*
* 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 br.com.park.screen;
import br.com.park.dtbase.ServicoDAO;
import br.com.park.dtbase.TBdao;
import br.com.park.dtbase.bdBack;
i... | 51.569767 | 179 | 0.656009 |
ef2bc347b920a6c2a03f6fdabe8bfa8b10202785 | 2,692 | /*
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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... | 34.075949 | 96 | 0.726597 |
223d4fbc2f17ac125be7e846cf9641f391dfa4c5 | 377 | package com.sky.signal.stat.util;
/**
* Created by ChenHu <chenhu1008@me.com> on 2020/3/25.
*/
/**
* 人口类别分类器接口,通过传入 出现天数 和 一天在指定基站停留的时间,返回人员类别,可能为
* 常住人口、旅游商务人口、流动人口、其他 等等。
*/
public interface PersonClassification {
/**
* 分类
* @param days 出现天数
* @param seconds 一天在指定基站停留的时间(秒)
* @return 类别... | 18.85 | 54 | 0.6313 |
5cf143f17dafcfa5b019aeac310b83ef5857b0aa | 7,099 | package com.cloupia.feature.infinidat.reports.device.pools.actions;
import org.apache.log4j.Logger;
import com.cloupia.feature.infinidat.constants.INFINIDATConstants;
import com.cloupia.feature.infinidat.device.functions.INFINIDATFunctions;
import com.cloupia.model.cIM.ConfigTableAction;
import com.cloupia.model.cIM.... | 50.707143 | 238 | 0.721369 |
12385da8ca97d0be75693143b54275f416d25770 | 1,025 | package com.github.dc.menu.config;
import com.github.mybatis.crud.config.MyBatisSqlSessionFactoryConfig;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import o... | 34.166667 | 88 | 0.805854 |
4b2c557a43f7e06415012398c9b777282ef366e8 | 900 | package es.upm.miw.apaw_practice.adapters.mongodb.library.daos;
import es.upm.miw.apaw_practice.TestConfig;
import es.upm.miw.apaw_practice.adapters.mongodb.library.entities.BookEntity;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static org.junit.jupiter.ap... | 34.615385 | 80 | 0.754444 |
e44f63f147d746a1af041b24b13bf781e46fe5f8 | 14,116 | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | 24.984071 | 80 | 0.682488 |
2ecc02336bcddd78f1621fddedf7377b6c463463 | 2,588 | /**
* 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... | 34.506667 | 94 | 0.768934 |
6d2062a8509f83d133b830a87c6cb710a1f6b204 | 4,933 | /*
* 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")... | 31.825806 | 97 | 0.661869 |
1b15125e279fa3fca0643c0eec2d63b5cea30baf | 2,564 | /**
* The long data type is a 64-bit two's complement integer.
* The signed long has a minimum value of -2^63 and a maximum value of 2^63-1.
* In Java SE 8 and later, you can use the long data type to represent an unsigned 64-bit long,
* which has a minimum value of 0 and a maximum value of 2^64-1.
* The unsigned ... | 32.05 | 95 | 0.575663 |
e0326e14608c56664ff057b88954309499549977 | 3,847 | /*
* Copyright (c) 2017 Uber Technologies, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | 22.497076 | 95 | 0.652197 |
3ea788c109e085f1c5db849618122bff111eafc2 | 633 | package com.dungeonstory.backend.data.enums;
import com.dungeonstory.backend.Labels;
public enum Condition implements I18nEnum {
BLINDED,
CHARMED,
CURSED,
DEAFENED,
FRIGHTENED,
GRAPPLED,
INCAPACITATED,
INVISIBLE,
MUTED,
PARALYZED,
PETRIFIED,
POISONED,
PRONE,
... | 15.825 | 71 | 0.595577 |
8dc6416708e31efff4179e7d3afa78776567dfaf | 6,053 | package com.sct.application.authorization.controller;
import com.sct.application.authorization.controller.entity.UserLoginStatus;
import com.sct.application.authorization.properties.ILoginProperties;
import com.sct.application.authorization.support.session.CustomSessionRegistry;
import com.sct.commons.utils.JsonUtils;... | 47.289063 | 144 | 0.701305 |
c8fe030b46ba222b857aee6f5e3d1c4f487e6886 | 113 | package org.jrd.backend.communication;
public interface JrdAgent {
String submitRequest(String request);
}
| 16.142857 | 41 | 0.778761 |
bab43c6f39aa2893db3c091e8439f78351b450c2 | 519 | package domainapp.dom.syncengine;
public interface SyncAble {
// implementing https://unterwaditzer.net/2016/sync-algorithm.html
/**
* unique identifier of the instance
* @return
*/
String getUniqueId();
/**
* sets unique identifier of the instance
*/
void setUniqueId(fi... | 21.625 | 140 | 0.633911 |
e3747bb04b8cdca981f8673fc804bf4d57b10c11 | 4,440 | /*
* 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 ... | 38.608696 | 118 | 0.705405 |
4597d4266c13ea833cf6b1210eef7a823c0153fb | 770 | package com.fw.beans;
import java.util.ArrayList;
import java.util.List;
/**
*
*
* @author Narendra Gurjar
*
*/
public class UserDashBoardBean {
private List<LoadAndBidRequestBean> dashboard;
private List<UserLoadRequestBean> bidDashboard;
public UserDashBoardBean() {
dashboard = new ArrayList<LoadAnd... | 18.780488 | 70 | 0.757143 |
3454ef278cb094199b53d9db68b3593d2063923c | 888 | package com.ibm.webapi.apis;
import javax.enterprise.context.ApplicationScoped;
import javax.json.Json;
import javax.json.JsonObject;
import com.ibm.webapi.business.Article;
import com.ibm.webapi.business.CoreArticle;
@ApplicationScoped
public class ArticleAsJson {
public ArticleAsJson() {}
public JsonObject cr... | 34.153846 | 133 | 0.759009 |
f8a3f700b398873fb5b6b5a412e1661f81dce82c | 3,097 | /*
* Licensed to the Warcraft4J Project under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Warcraft4J Project licenses
* this file to you under the Apache License, Version 2.0 (the
* "License"); you... | 38.234568 | 103 | 0.727801 |
a0fad326dd12e9d3b0d58190f0b36b9c54bb92bb | 1,784 | package com.andbase.demo.activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import com.ab.activity.AbActivity;
import com.... | 26.626866 | 69 | 0.788117 |
ade293541a6cc7e099ab2061920bb0197bd46497 | 414 | package com.mikedeejay2.mikedeejay2lib.gui;
/**
* Simple Interface for constructing GUIs upon calling the {@link GUIConstructor#get()} method.
*
* @author Mikedeejay2
*/
@FunctionalInterface
public interface GUIConstructor
{
/**
* Get a newly constructed {@link GUIContainer}. Constructed when this method ... | 23 | 95 | 0.695652 |
2fae45118da4d4cca2d6bf5b0a597f545dd3c84f | 465 | package org.nhindirect.stagent;
public class NHINDAgentAccessor
{
public static void bindAddresses(NHINDAgent agent, IncomingMessage message)
{
if (agent instanceof DefaultNHINDAgent)
((DefaultNHINDAgent)agent).bindAddresses(message);
}
public static void bindAddresses(NHINDAgent age... | 25.833333 | 79 | 0.731183 |
3219179114c39b516fb076064826e3f9cad468fb | 4,633 | package hudson.plugins.dry;
import static org.junit.Assert.*;
import hudson.util.FormValidation;
import org.junit.Test;
/**
* Tests the class {@link ThresholdValidation}.
*
* @author Ulli Hafner
*/
public class ThresholdValidationTest {
private static final String WRONG_VALUE_FOR_NORMAL_THRESHOLD = "Wrong va... | 49.817204 | 114 | 0.738398 |
93794425ec204b4834ecc09eb5325c59d448d589 | 876 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
/** Samples for Certificates Get. */
public final class Certificat... | 35.04 | 132 | 0.719178 |
c4bcbfb12cdebaabea0c9ce812a6182d1093765d | 2,210 | package de.hpi.bp2013n1.anonymizer;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mock... | 34.53125 | 86 | 0.775566 |
1404fb78873d6aeda3fb67281ffbbe24b2817935 | 4,618 | package com.customfabs.animation;
import android.animation.Animator;
import android.graphics.Point;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import com.customfabs.FloatingActionMenu;
/**
* An abstract class that is a p... | 35.251908 | 145 | 0.6466 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.