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 |
|---|---|---|---|---|---|
6750b3e0aaed67717ea725e148dddc4a3c1db123 | 9,003 | /*
* 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 ... | 37.987342 | 179 | 0.74253 |
8906223caf5b85c5197f32c7f3b0290131aa2ebb | 23,398 | /*
* 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 Interface.EntregadorView;
import Negocio.Diversos;
import Negocio.Pedido;
import Persistencia.DaoPedido;
import Persistencia.... | 52.698198 | 232 | 0.654415 |
d028df56ede4a7df7807637c416b0341fb5bf752 | 2,790 | /*
* Forge Mod Loader
* Copyright (c) 2012-2013 cpw.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
... | 37.702703 | 155 | 0.755914 |
820327c3912403de1f8d92ce07e78d063147ec89 | 4,723 | package xf.xfvrp.opt.init.solution.vrp;
import xf.xfvrp.base.Node;
import xf.xfvrp.base.NormalizeSolutionService;
import xf.xfvrp.base.Util;
import xf.xfvrp.base.XFVRPModel;
import xf.xfvrp.base.exception.XFVRPException;
import xf.xfvrp.base.monitor.StatusManager;
import xf.xfvrp.base.preset.BlockNameConverter;
import... | 33.027972 | 120 | 0.73682 |
d49b582db1c4a84d7b0201e6fc0c636e270cc71a | 651 | package com.example.demo.exception;
public class ClassifierNotFoundException extends Exception {
public ClassifierNotFoundException() { super(); }
public ClassifierNotFoundException(String message) { super(message); }
public ClassifierNotFoundException(String message, Throwable cause) { super(message, c... | 36.166667 | 98 | 0.729647 |
e62023113fb281d8efea488e6c58dbf105e2cd6d | 3,244 | package com.dt.betting.controller.championship;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframewo... | 38.164706 | 131 | 0.790691 |
2c6acacc5c6d2ab232b2597e2f9cce31f0228ed5 | 3,637 | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 Dries K. Aka Dries007 and the CCM modding crew.
*
* 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 witho... | 36.37 | 283 | 0.707451 |
b858ad9134987a8b3ccc7f5bd8b7d6f7f15fba47 | 352 | package com.nullpointerbay.turbochat.utils;
import android.content.Context;
import android.widget.ImageView;
/**
* Created by charafau on 2017/02/12.
*/
public interface ImageLoader {
void loadImage(Context context, String url, ImageView target);
void loadImageWithCircleTransformation(Context context, St... | 20.705882 | 90 | 0.772727 |
60b552ecc864ffad8e1b4e6cfd8eef4860908d8e | 2,809 | /*
* Copyright (C) 2017 Oracle
*
* 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 ... | 31.211111 | 77 | 0.686365 |
f36760d7d5b40c1ede512e76213575352f24cec5 | 3,410 | /*
* This file is part of the Wayback archival access software
* (http://archive-access.sourceforge.net/projects/wayback/).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); y... | 32.169811 | 79 | 0.71085 |
c3c56fdf1f2bcf1bce01d9605501ddb265dec461 | 3,292 | package de.lessvoid.nifty.slick2d.render;
import org.newdawn.slick.Color;
import org.newdawn.slick.ShapeFill;
import org.newdawn.slick.geom.Shape;
import org.newdawn.slick.geom.Vector2f;
import javax.annotation.Nonnull;
/**
* This shape fill implementation is used to render the rectangles of slick that that have a ... | 29.392857 | 116 | 0.706561 |
24563bc77914c47fb9724619c7a34270bbe8cba4 | 764 | package ru.daniilazarnov.bot.core.memory;
import ru.daniilazarnov.common.model.entity.Action;
import ru.daniilazarnov.common.model.entity.Actor;
import ru.daniilazarnov.common.model.entity.State;
import java.util.Set;
public interface MemoryDao {
boolean isInitSession(String sessionId);
void updateAppraisa... | 27.285714 | 85 | 0.78534 |
e073b2f21c13544e5fbec3dc098451e854ff322b | 2,035 |
package org.springframework.boot.autoconfigure.http;
import javax.json.bind.Jsonb;
import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import... | 31.307692 | 120 | 0.837838 |
b06ebc55c358b7b8f3868de4d898f36fcce99c78 | 1,007 | package io.ebean.util;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CamelCaseHelperTest {
@Test
public void when_underscore() throws Exception {
assertEquals(CamelCaseHelper.toCamelFromUnderscore("hello_there"), "helloThere");
assertEquals(CamelCaseHelper.toCamelFrom... | 31.46875 | 92 | 0.775571 |
4d28f316459cc9f89246e2c2408757a682e94c65 | 14,131 | package com.isaacsheff.charlotte.yaml;
import static java.time.LocalTime.now;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.net.ssl.SSLException;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
import org.bouncyca... | 41.078488 | 121 | 0.709645 |
8337f2785a673bf48c53a4db5658a83e49a1ad47 | 2,550 | package com.be.library.worker.annotations.compiler.statements;
import com.be.library.worker.annotations.compiler.FieldInfo;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.TypeVariableName;
/**
* Generates extra setter for ForkJoinJob
*
* Created by Dzhe... | 39.230769 | 118 | 0.62902 |
fd477718f232652d3d4c59ddcae7afb7ad14e4b7 | 2,327 | package com.github.cjqcn.tiny.statemachine.core.impl;
import com.github.cjqcn.tiny.statemachine.core.*;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
public class StateMachineManagerBuilderImpl<S, E> implements StateMa... | 31.876712 | 107 | 0.654491 |
cbd9f967c07c927c1485ceed2007f596ee077d1c | 1,402 | import kareltherobot.*;
/**
* Abstract Hurdler Robot.
*
* @author Bryan Wu
* @version 2/23/15
*
* @author Period - 7
* @author Assignment - ch4_2RacerRobot
*
* @author Sources - Dave Wittry
*/
public abstract class AbstractHurdlerRobot extends AbstractRacerRobot
{
public AbstractHurdlerRobot( int st, i... | 16.891566 | 77 | 0.485735 |
f67d3d72df9b88927cbb8c2bb0ff012d5260daad | 311 | package com.springinaction.springidol;
public class ThinkerImpl implements Thinker {
private String thoughts;
public void thinkOfSomething(String thoughts) {
this.thoughts = thoughts;
System.out.println("thinkOfSomething executed");
}
public String getThoughts() {
return thoughts;
}
}
| 23.923077 | 51 | 0.742765 |
695f272911771d9bbe7d730f01e5f4cb0b8bec45 | 6,733 | /*
Copyright 2014 Magnus Bridén
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 39.605882 | 163 | 0.694193 |
241223353af1f41b392b6798fe8347a7a7c37dc8 | 1,897 | package bamboo.crawl;
import bamboo.core.Fixtures;
import bamboo.util.Pager;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Li... | 27.492754 | 107 | 0.639958 |
52c6c4284210e8eab6a5928fc599df64bb3aac19 | 3,597 | package be.glever.antplus.speedcadence;
import be.glever.ant.AntException;
import be.glever.ant.channel.AntChannel;
import be.glever.ant.constants.AntPlusDeviceType;
import be.glever.ant.message.channel.ChannelEventOrResponseMessage;
import be.glever.ant.message.channel.ChannelEventResponseCode;
import be.glever.ant.m... | 52.130435 | 152 | 0.76675 |
fca1b366410942aa86f8aa73966d89ca86a238e3 | 371 | package com.mgilangjanuar.dev.goscele.base;
import com.activeandroid.Model;
import com.activeandroid.query.From;
import com.activeandroid.query.Select;
/**
* Created by mgilangjanuar (mgilangjanuar@gmail.com)
*
* @since 2017
*/
public class BaseModel extends Model {
public From find() {
return new S... | 18.55 | 53 | 0.681941 |
13597ce5d3ad3734f30837d74eca1845f6b7f0a6 | 2,099 | /*
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | 35.576271 | 113 | 0.722249 |
eb5f3666115fadb5bab9970a09bdeda4d4c383c6 | 30,807 | // $Id: LogQueueActivityExt.java,v 1.3 2009/12/14 21:48:22 jim Exp $
package us.temerity.pipeline.plugin.LogQueueActivityExt.v2_1_1;
import java.io.*;
import java.text.*;
import java.util.*;
import us.temerity.pipeline.*;
/*------------------------------------------------------------------------------------------*/... | 27.238727 | 94 | 0.560392 |
22e863862979c9f4f7184e7a597eb2c762d32484 | 500 | package eu.xenit.contentcloud.opa.client.api;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import lombok.Data;
import lombok.EqualsAndHashCode;
public interface QueryApi {
<T> CompletableFuture<QueryResponse> query(String query);
@Data
class QueryRespon... | 20.833333 | 61 | 0.738 |
581fd25cbd56d67314752081b31be7c861f3c1ad | 509 | package com.github.peacetrue.sample.lock;
import java.util.Objects;
import java.util.concurrent.locks.Lock;
/**
* @author : xiayx
* @since : 2021-06-01 19:28
**/
//tag::class[]
public class LockAdapter implements CustomLock {
private final Lock lock;
public LockAdapter(Lock lock) {
this.lock = Ob... | 16.966667 | 49 | 0.62279 |
b2fc0c5ff87e2d58d519e2ca25948aed907bbfb2 | 1,302 | /*
Copyright M-Gate Labs 2007
Can be edited with permission only.
*/
package com.mgatelabs.swftools.support.swf.objects;
public class FTexture extends FFill {
/*
BitmapID If type = 0x40 or 0x41 UI16 ID of bitmap character for fill
BitmapMatrix if ty... | 23.672727 | 107 | 0.588326 |
2ad7b69de9afc41eaf539f29790d50d6af4a9798 | 3,752 | /*
* This file is a part of MI
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Roj234
*
* 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 limita... | 38.680412 | 116 | 0.724147 |
1e45aeb308c1d08bd01d5806722b438548aceb0a | 1,026 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | 25.65 | 75 | 0.689084 |
e39c872f1fc13f2812061a211508ef75249c754d | 3,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 ... | 28.272727 | 80 | 0.698714 |
fb6e0230dfe3c9cc64dfd03d8bf3e0f3237b5dce | 568 | package com.workflowconversion.portlet.core.exception;
/**
* Resource thrown when it is attempted to edit a read-only resource.
*
* @author delagarza
*
*/
public class ResourceNotEditableException extends ApplicationException {
private static final long serialVersionUID = 9177207244367838146L;
/**
* @param... | 19.586207 | 72 | 0.71831 |
521dbb8ff924b14ddcdef9e6be556356daa5da5b | 8,346 | package alex.mojaki.s3upload.test;
import alex.mojaki.s3upload.MultiPartOutputStream;
import alex.mojaki.s3upload.StreamTransferManager;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.SDKGlobalConfiguration;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3Client;... | 39.183099 | 117 | 0.654445 |
66a29547bcb584527205b97b54730dc74ed4c9ab | 287 | package com.fans.service;
import com.alibaba.fastjson.JSONObject;
/**
* interfaceName: IUserService
*
* @author k
* @version 1.0
* @description
* @date 2020-06-29 15:29
**/
public interface IUserService {
void updateUserWxInfo(JSONObject weChatUserInfo);
}
| 16.882353 | 54 | 0.675958 |
5408639242e615d58f494c02e04d572906cffbe1 | 9,370 | package uk.gov.homeoffice.pontus;
/**
* Created by leo on 04/11/2016.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
*... | 40.387931 | 139 | 0.693383 |
0717faee98b72585091b8055d72703429643111b | 2,668 | /**
* Cash-Register
* Copyright (c) 1995-2018 All Rights Reserved.
*/
package cn.cash.register.controller.frontstage;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springf... | 27.791667 | 81 | 0.643178 |
f476ffaad1a215daecb6482e43a914edaf009eef | 63,789 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 45.336887 | 157 | 0.626989 |
3ba70bdef1d4050cbf5aa5586c607f77c4a84bd1 | 152 | package com.coolweather.app.util;
public interface HttpCallbackListener {
void onFinish(String response);
void onError(Exception Exception);
}
| 16.888889 | 39 | 0.776316 |
4446a75e11a865ba2280938a41ae91ce7932bc22 | 768 | /*
* Copyright oVirt Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.ovirt.engine.api.v3.adapters;
import org.ovirt.engine.api.model.CustomProperty;
import org.ovirt.engine.api.v3.V3Adapter;
import org.ovirt.engine.api.v3.types.V3CustomProperty;
public class V3CustomPropertyOutAdapter implements V3Ada... | 27.428571 | 96 | 0.65625 |
26d745e86bce66e1cecf7a29f68319c2492b7a35 | 176 | package com.example.framework.mvvm.ui.login;
public interface LoginNavigator {
void handleError(Throwable throwable);
void login();
void openMainActivity();
}
| 14.666667 | 44 | 0.727273 |
0d4f473322ca390db447ecefe172fb3d55fbb244 | 3,494 | package com.o3dr.services.android.lib.drone.companion.solo.tlv.mpcc;
import android.os.Parcel;
import com.o3dr.services.android.lib.drone.companion.solo.tlv.TLVMessageTypes;
import com.o3dr.services.android.lib.drone.companion.solo.tlv.TLVPacket;
import java.nio.ByteBuffer;
/**
* Sent by: App -> ShotManager.
* Va... | 29.116667 | 149 | 0.632513 |
b7e02d39a4853a446ee7f7f54ebbd878ba676c18 | 876 | /**
*
*/
package com.ppang;
/**
* @author ppang
*
*/
public class TrieNode {
public TrieNode[] children;
public boolean hasWord;
public String word;
public int rank;
public TrieNode() {
children = new TrieNode[26];
hasWord = false;
word = "";
rank = Integer.MAX_VALUE;
}
publ... | 18.638298 | 54 | 0.576484 |
fe4fb0dc6ad503fb5c663c79124c1be46f480478 | 1,407 | package com.celesea.runtime.annotation;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.UUID;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;
import org.springfram... | 24.258621 | 94 | 0.735608 |
eff8368a1fb51df877540fcf00eef440d872390d | 2,590 | package it.algos.vaad23.backend.packages.utility.preferenza;
import static it.algos.vaad23.backend.boot.VaadCost.*;
import it.algos.vaad23.backend.logic.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.data.mongodb.repository.*;
import org.springframework.stereotype.*;
import java.... | 34.533333 | 115 | 0.707336 |
f62f3f502ea1971123ba76490712c8c344f4a956 | 2,303 | package com.github.ashwinikb.amazon;
import com.github.ashwinikb.Configuration;
import com.github.ashwinikb.DriverSetUp;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import... | 46.06 | 120 | 0.721667 |
121eea18649d8c41e3ccbcd4ceba7b18674af5ea | 1,648 | package org.nlpcn.es4sql.query;
import org.durid.sql.SQLUtils;
import org.durid.sql.ast.expr.SQLQueryExpr;
import org.durid.sql.ast.statement.SQLDeleteStatement;
import org.durid.sql.parser.SQLParserUtils;
import org.durid.sql.parser.SQLStatementParser;
import org.durid.util.JdbcUtils;
import org.elasticsearch.client... | 32.96 | 120 | 0.762743 |
b8bdd083ed88aab3b1a34c981d689b9d2ee7f977 | 139 | package Eighth.Homework;
public class Homework01 {
public static void main(String[] args) {
Num nu = new Num(1,10);
}
} | 13.9 | 44 | 0.618705 |
6ecf37d0df29039ffcff930a7bb1855edd955cec | 4,257 | /*
* Copyright 2019 Tallence AG
*
* 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 ... | 29.358621 | 94 | 0.724454 |
d87b01557edf923dd9f573dead75de89c96c315e | 7,577 | /*
* Copyright (c) Octopus Deploy and contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* these files except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 43.545977 | 100 | 0.784215 |
9791a021ef0fd88a529e7a561f17989958ffd267 | 2,398 | package com.douglas.cursomc.domain;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Entity;
/**
* Cat... | 22.838095 | 79 | 0.619683 |
9ae781166e504b973f9da6b1a9379865b3c4c523 | 2,090 | /*******************************************************************************
* MoonLight: a light-weight framework for runtime monitoring
* Copyright (C) 2018
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* Licensed under the Apache Licens... | 27.5 | 89 | 0.654545 |
658ad978114e9f8f5bd8cd1fa0e872dfa4b02937 | 968 | package com.salmon.TO;
import javax.persistence.*;
import java.io.Serializable;
/**
* Created by Aprin on 1/20/2019.
*/
@Entity(name = "Ant")
@Table(name = "ANT")
public class Annotation implements Serializable {
@Id
@SequenceGenerator(name = "ANT_SEQ",sequenceName = "ANT_SEQ")
@GeneratedValue(strateg... | 19.755102 | 73 | 0.623967 |
986f037f68608013ed9b3718755e5c858ee2318f | 2,349 | package com.braintreepayments.api.dropin.adapters;
import android.content.Context;
import com.braintreepayments.api.dropin.DropInRequest;
import com.braintreepayments.api.dropin.utils.PaymentMethodType;
import com.braintreepayments.api.models.CardNonce;
import com.braintreepayments.api.models.Configuration;
import co... | 37.887097 | 184 | 0.715624 |
a0d4738c55ec139aa8ad2003c6c6ae7f45a7e3d9 | 3,894 | package eu.monnetproject.ontology.owlapi;
import eu.monnetproject.ontology.*;
import eu.monnetproject.ontology.Class;
import org.semanticweb.owlapi.model.*;
import java.util.*;
public class OWLAPIClass extends OWLAPIEntity implements Class {
final OWLClassExpression clazz;
public OWLAPIClass(OWLClassExpression wr... | 33.568966 | 101 | 0.653056 |
ee45e217c3c80a0ce5eb039e997c55cb7a5a534b | 2,200 | package org.trefoil.pat.entity;
import java.util.Date;
public class Period {
private Integer sid;
private Integer projectsid;
private String sequence;
private String iterationname;
private Date starttime;
private Date endtime;
private Integer createdBy;
private Date createdDt;
... | 19.130435 | 81 | 0.625 |
418f57a8cf4cfe8954f47582da4e07efb892ec0b | 5,749 | package com.dnastack.ga4gh.dataconnect.adapter.security;
import com.dnastack.ga4gh.dataconnect.adapter.security.AuthConfig.OauthClientConfig;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.time.Instant;
import java.util.Base64... | 40.77305 | 142 | 0.641677 |
ec40214e4becfa2383a3362cae6884517258110c | 857 | package com.pay.aphrodite.core.service.impl;
import com.pay.aphrodite.core.dao.hive.HqlExecuteDao;
import com.pay.aphrodite.core.service.HqlExecuteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
*... | 23.805556 | 65 | 0.745624 |
a1248e78b7e190b330de45c58330bac9c224c829 | 626 | package pl.coderslab.spring01hibernate.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.time.LocalDate;
public class IsOverXYOValidator
implements ConstraintValidator<IsOverXYO, Integer> {
private int minimumAge;
@Override
pu... | 28.454545 | 79 | 0.738019 |
0d387437f79a66a27ad75be793ef561e09a3291c | 432 | package com.joe.easysocket.client.ext;
/**
* 序列化器
*
* @author joe
*/
public interface Serializer {
/**
* 序列化对象
*
* @param obj 要序列化的对象,不能为null
* @return 序列化后的数据
*/
byte[] write(Object obj);
/**
* 反序列化对象
*
* @param data 对象数据,不能为null
* @param clazz 对象的Class,不... | 16 | 44 | 0.530093 |
91d426bce924731faf527ee1368b81ce1f8c146f | 5,567 | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.sap.sapcpiorderexchange.service.impl;
import de.hybris.platform.sap.core.configuration.global.dao.SAPGlobalConfigurationDAO;
import de.hybris.platform.sap.sapcpiorderexchange.exceptions.SapCpiOmmOrderConver... | 39.204225 | 178 | 0.791629 |
62922e45a4e40c22aeadc7540e44d5fa12b0e92d | 812 | package utils;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import org.json.JSONArray;
public class MotionPlayer {
private static final Object lock = new Object();
private static final ExecutorService service = Executors.newSingleThreadExe... | 20.820513 | 84 | 0.724138 |
2ea6a0dcd94573af5718d660ec71108e0ef07b15 | 901 | package com.github.damianwajser.model;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.github.damianwajser.utils.ReflectionUtils;
@JsonAutoDetect(f... | 23.102564 | 66 | 0.73141 |
118fa87e36add6e1e1c6c1cd2453a9adcccbbfb8 | 298 | package api.wynn.structs;
public class ForumId {
private String username;
private String ign;
private int id;
public String getUsername() {
return username;
}
public String getIgn() {
return ign;
}
public int getId() {
return id;
}
}
| 14.9 | 33 | 0.583893 |
a3cc20d693ae70659cb5c68d5d937aaf6336664f | 677 | package net.n2oapp.security.admin;
import net.n2oapp.security.admin.api.service.UserDetailsService;
import net.n2oapp.security.admin.rest.api.UserDetailsRestService;
import net.n2oapp.security.admin.rest.impl.UserDetailsRestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | 32.238095 | 70 | 0.825702 |
bbec6b7dcddf7a3114ba7ba28c21cf0e7ca7e139 | 12,437 | package org.openobservatory.ooniprobe.activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcomp... | 52.256303 | 133 | 0.665675 |
d272847febc00dcdd5f3cd6bd777b5e5bdfff102 | 569 | package cz.cuni.mff.d3s.deeco.processor;
import java.io.File;
import java.io.FilenameFilter;
/**
* Generic filter class used to filter files by their extensions.
*
* @author Michal Kit
*
*/
public class FileExtensionFilter implements FilenameFilter {
private String ext = "*";
public FileExtensionFilter(Str... | 18.966667 | 70 | 0.704745 |
68dd477ab13b873d553a523b1c513728596c0fe8 | 7,417 | /*
* Copyright 2022 Creek Contributors (https://github.com/creek-service)
*
* 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
*
* Unles... | 40.309783 | 118 | 0.64851 |
160e49d4770f6e155734944a1ba8328c60c1c52d | 6,997 | /*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 TechReborn
*
* 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, inc... | 47.924658 | 150 | 0.798342 |
14478d641bfc5410c97ea27e75d8b0cb2db93951 | 7,314 | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2011, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | 30.348548 | 79 | 0.615258 |
ae646e6ba7c876464d52a2c30519c4c0e4cefb26 | 1,132 | package cityguide.datastorage.view;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.jupiter.api.Test;
import cityguide.datastorage.model.Description;
import cityguide.datastorage.model.ShowPlace;
class TelegramMessageViewImplTest ... | 31.444444 | 121 | 0.737633 |
cbda426e9dcab3fc749501cb9e144ddfd3c872e3 | 1,401 | /*
* Copyright (c) 2021 www.hoprxi.com 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 required by ... | 28.02 | 77 | 0.698073 |
a4fa9c9752d8a129a6731e21665e325b8994374c | 1,737 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.Digi... | 20.197674 | 74 | 0.680484 |
3416afc2e0f5580abcefc3bceeffa0846123980a | 5,476 | package org.seqcode.viz.metaprofile;
import java.awt.Color;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import ... | 34.440252 | 114 | 0.673667 |
9207bf9bbfe0bf03ea081142afa5ed3eba271756 | 10,228 | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... | 37.602941 | 138 | 0.70571 |
3227faffbf6b3261780e595c56277c476f438fb9 | 474 | /*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.task.quartzimpl.statistics;
/**
*
*/
public interface WorkBucketStatisticsCollector {
void ... | 27.882353 | 160 | 0.772152 |
abd659030d7babc2a072cfda63cf4f7e044d1f74 | 4,540 | package cn.myzju.jzbook.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.dd.processbutton.iml.ActionProcessButton;
import cn.myzju.jzbook.R;
import cn.m... | 42.037037 | 104 | 0.576872 |
0e15d9c348f1de23b839288835707c54382a2878 | 2,144 | /**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... | 31.072464 | 98 | 0.766791 |
01e0de369063892935191ea1c75be6387e58b5e4 | 1,156 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.acidmanic.cicdassistant.html.theme;
import com.acidmanic.cicdassistant.html.styles.StyleColor;
/**
*
* @author diego
*... | 19.266667 | 79 | 0.630623 |
c294287551bc8c4092e7d5c38d9ad64e759187ff | 2,999 | package com.fourlife.plugins.sprig;
import com.getcapacitor.JSObject;
import com.getcapacitor.Plugin;
import com.getcapacitor.PluginCall;
import com.getcapacitor.PluginMethod;
import com.getcapacitor.annotation.CapacitorPlugin;
import android.content.Context;
import androidx.fragment.app.FragmentActivity;
import co... | 30.292929 | 81 | 0.623208 |
b04488112f230e68c42e87a4df6e69080a929271 | 3,311 | package com.intellij.execution.testframework.actions;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configurations.RunProfileState;
import com.intellij.execution.executors.DefaultRunExecutor;
import com.intellij.execution.runners.ExecutionEnvironment;
import com.intellij.execution.run... | 34.489583 | 119 | 0.743582 |
534566318cad936033a06f4b5b3d67bf1b4aad25 | 3,337 | /*
* Copyright (c) 2017-2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the Licen... | 38.802326 | 103 | 0.698831 |
6d33172e64128f6033a72ac2ace51af2f3ce80ff | 1,788 | /*
* Copyright (c) 2008-2017 Haulmont.
*
* 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.380952 | 93 | 0.738255 |
33b17a3a4be91cf71b6b9341d0bab646c7297fd5 | 4,249 | /* (c) 2014 LinkedIn Corp. 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 required by applicable law or ag... | 35.408333 | 115 | 0.655684 |
ced840623a7dca4c251bcff790cc04c98f30c0e0 | 596 | package com.accedia.tutorial.spring.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplicat... | 35.058824 | 85 | 0.822148 |
fabc9573b57c63fe650f3555ba759906efb5dfcb | 3,401 | package jenkins.plugins.accurev;
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
import edu.umd.cs.findbugs.annotations.NonNull;
import jenkins.scm.api.SCMFile;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.FileVi... | 36.967391 | 140 | 0.631579 |
2c0d4f3a3c0d8eadbe26f8e64efb077e33ec6089 | 96,655 | package onemessageui.dialog;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
impor... | 42.281277 | 241 | 0.576152 |
1cb66e3951ffec8d015966df609da2e82f55869c | 8,579 | /**
* Copyright 2009 Humboldt-Universität zu Berlin, INRIA.
*
* 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 b... | 39.717593 | 117 | 0.780744 |
76c3c876358335437df7095a8fc3a0ee95bd8e6d | 1,239 | package com.kalessil.phpStorm.phpInspectionsEA.codeStyle;
import com.kalessil.phpStorm.phpInspectionsEA.PhpCodeInsightFixtureTestCase;
import com.kalessil.phpStorm.phpInspectionsEA.inspectors.codeStyle.ComparisonOperandsOrderInspector;
import com.kalessil.phpStorm.phpInspectionsEA.settings.ComparisonStyle;
final publ... | 49.56 | 100 | 0.788539 |
40a7993ea114d6bde913d26358d0c582db184d3d | 5,603 | package com.codepath.apps.restclienttemplate.activities;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast... | 38.909722 | 118 | 0.627342 |
eeb69f1f7c455c0cc82da44adfa63928bfddee4c | 125 | package uk.co.alt236.apkdetails.repo.signing;
public enum SignatureStatus {
ERROR,
ABSENT,
VALID,
INVALID
}
| 13.888889 | 45 | 0.688 |
3611e26830b8b0cc3834b10829dfe82196ab4924 | 3,278 | package org.orienteer.bpm.component.widget;
import java.util.Optional;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.model.ResourceModel;
import org.camunda.bpm.BpmPlatform;
import org.camunda.bpm.engine.P... | 39.02381 | 126 | 0.748017 |
f693dd7c1a527ec2c96149acd6c56b3cb6296360 | 119 | /**
* Domain interfaces
*
* @author mckelvym
* @since May 11, 2018
*
*/
package gov.usgs.warc.iridium.sbd.domain; | 14.875 | 41 | 0.655462 |
aceb7ad1ac9ee2f812d9316dc97c89386823151d | 567 | package com.zhihuianxin.xyaxf.app.home.business;
import modellib.thrift.business.Business;
import com.zhihuianxin.xyaxf.app.BasePresenter;
import com.zhihuianxin.xyaxf.app.BaseView;
import io.realm.RealmResults;
/**
* Created by zcrpro on 2016/10/31.
*/
public interface BusinessGridContract {
interface IBusin... | 23.625 | 74 | 0.749559 |
11aab7a5232353fa3716890fad0553edc52fc25b | 3,422 | package io.renren.modules.org_cbs.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.common.validator.ValidatorUtils;
import io.renren.modules.org_cbs.entity.OrgCbsCompanyEntity;
import io.renren.mod... | 30.828829 | 119 | 0.701929 |
29a8e40c388dd59694bf57869a83876a8e5e579c | 2,169 | package com.honvay.cola.service.attachment.configuration;
import com.honvay.cola.service.attachment.validator.FileValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.Multi... | 39.436364 | 120 | 0.719225 |
49f4137c3208d884cff35aae9bffa1d247080789 | 4,135 | package top.ftas.util.glide;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import androidx.annotation.NonNull;
import android.util.Log;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.bitmap.BitmapTransformation;
import com.bumptech.glide.load... | 32.559055 | 158 | 0.674486 |
0a47ca9e2dfa51a13683e06b622cd3f0e5f23697 | 1,473 | package mq.rabbitmq.demo05_topic_mode;
import com.rabbitmq.client.*;
import lombok.SneakyThrows;
import mq.rabbitmq.demo01_hello.ConnectionHelper;
import java.io.IOException;
/**
* @Author KJ
* @Date 2020-03-30 10:21 PM
* @Description
*/
public class Consumer01 {
private final static String QUEUE_NAME = "tes... | 28.326923 | 144 | 0.643585 |
21d031555b49c5379877de76e007cd854e1153e7 | 355 | package com.baeldung.concurrentrequest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ConcurrentRequestApplication {
public static void main(String[] args) {
SpringApplication.run(ConcurrentReques... | 29.583333 | 72 | 0.814085 |
0e641c247aa5defcc821413e7c57aba7728c9ce3 | 3,932 | package com.example.jpro;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import ... | 35.423423 | 103 | 0.576806 |
8d6616a49ca55c678b0a9ff22ce689c8c6637f03 | 1,836 | package hu.akarnokd.rxjava2;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;
import org.junit.Test;
import io.reactivex.Observable;
import io.reactivex.disposables.Disposable;
import io.reactivex.subjects.*;
public class RetryWhenPlain {
public static <T> O... | 33.381818 | 125 | 0.563725 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.