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 |
|---|---|---|---|---|---|
725b75a6b7abb4c925a0cae5b52495580ccea2eb | 125 | package momo.com.day58_xutils;
/**
* Created by Administrator on 2016/12/28 0028.
*/
public @interface MyAnnotation {
}
| 12.5 | 47 | 0.712 |
d8ff4a0d0b08df455a7107b390d6e07dd92bf4ed | 176 | package org.apache.avro.perf.test.reflect.jmh_generated;
public class ReflectLongArrayTest_TestStateDecode_jmhType extends ReflectLongArrayTest_TestStateDecode_jmhType_B3 {
}
| 35.2 | 115 | 0.892045 |
9b4f2b47ae264e2d383ed10f13994129b191e826 | 182 | package com.example.util;
/**
* Created by DELL on 2017/3/30.
*/
public interface OnNetRequestCallback {
void onFailed(String reason);
void onSuccess(String response);
}
| 16.545455 | 39 | 0.708791 |
2c188b02cf66f0beb25c41a83a35b86ea64c193d | 807 | package club.cser.leetcode;
import java.util.HashMap;
import java.util.Map;
class FourSumII {
public int fourSumCount(int[] A, int[] B, int[] C, int[] D) {
Map<Integer, Integer> AB = new HashMap<>();
Map<Integer, Integer> CD = new HashMap<>();
for (int i = 0; i < A.length; ++ i) {
... | 28.821429 | 72 | 0.465923 |
fc10e10c9b0ff01c8447370f6a2d7e0b731760d3 | 1,238 | package com.example.haushaltsapp.slideshow;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.RecyclerView;
import com.example.h... | 33.459459 | 146 | 0.758481 |
75fdaf2c15cd26c874040c7661f3ba1a9f607bdf | 13,201 | package com.ejlchina.okhttps;
import com.ejlchina.data.Array;
import com.ejlchina.data.Mapper;
import com.ejlchina.data.TypeRef;
import com.ejlchina.okhttps.HttpResult.State;
import com.ejlchina.okhttps.internal.*;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;
import java.io.IOException;
impo... | 24.133455 | 124 | 0.641164 |
527257da72084fce60124c39195e57321230d847 | 35,809 | /*
Copyright 2009 Wallace Wadge
This file is part of BoneCP.
BoneCP 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 3 of the License, or
(at your option) any later version.
BoneCP is dist... | 27.953942 | 187 | 0.722723 |
feea87f9baab5cbc19eeb1e80a3503b1ab630e1e | 2,791 | /*
* Copyright (c) 2012 Maciej Walkowiak
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 30.010753 | 110 | 0.736295 |
f2a8ce8f9f0e1a90665b094782af15d582e03ee7 | 1,425 | package src.SudokuSolver;
/**
* @author mingqiao
* @Date 2019/8/18
*/
public class SudokuSolver {
public void solveSudoku(char[][] board) {
if (board == null || board.length == 0) { return; }
dfs(board);
}
/**
* 类似八皇后问题,枚举每个节的值看下全图填充方案是否合理,注意回溯时需要根据回溯结果将节点值进行更改
* @param board... | 27.941176 | 119 | 0.352281 |
74c6653682dbca766cd5df170d6174eca93d35f8 | 1,693 | package org.utn.edu.ar.model.domain;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.utn.edu.ar.model.MatchService;
import org.utn.edu.ar.model.SportService;
import org.utn.edu.ar.model.exceptions.match.PlayerAlreadyConfirmedException;
import org.utn.edu.ar.... | 36.021277 | 114 | 0.714708 |
1ce1fde399949d1d6a6755ecef5d8241415c1a16 | 2,983 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.438776 | 93 | 0.659068 |
1420fa3379f2f2c18998c7543b4777dd40c756df | 45,275 | /*
* 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 ... | 43.450096 | 136 | 0.581093 |
78f3e070703e51a03cf36b9fe9d35e7bdb495221 | 345 | package com.my.learning.service;
import com.my.learning.entity.User;
import java.util.List;
import java.util.Optional;
public interface IEntityService<T> {
T add(T entity);
List get();
long count();
Optional<T> get(Long id);
void delete(Long id);
Optional<T> findByProperty(String proper... | 15.681818 | 66 | 0.692754 |
7704c46bf4f13471c3e70e5e18f7e66eda2cbf4a | 4,845 | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MainClass {
static int type = 0;
static GUI view;
static JFrame frame;
static ChangeBoard list = new ChangeBoard();
static App inst;
static int size;
public static ... | 45.707547 | 99 | 0.499278 |
840aa9f9452744ef6e6f14d84c87ebbf2b9d7b60 | 477 | package future;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
/**
* zbj: created on 2021/4/11 21:08.
*/
public class CompletableFutureDemo {
public static void main(String[] args) throws ExecutionException, InterruptedException {
CompletableFuture<Void> ... | 25.105263 | 92 | 0.704403 |
16f5fbb422c482240afec91db9831b74b1748bb4 | 6,483 | /*
* Copyright (c) 2011-2017, 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... | 28.310044 | 96 | 0.686719 |
f2f93f732439b787041c432e228eaf7318e76508 | 1,445 | package com.usst.app.good.ware.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.usst.app.good.ware.model.WareSpecificationVal;
import com.usst.code.ibatis.impl.PublicDAO;
import com.usst.code.service.BaseService;
public class WareS... | 35.243902 | 110 | 0.779931 |
90039e6df37698fd986691f502fcf2abcaa3a791 | 338 | package com.koi.ring.widgets.dialog.product.view;
/**
* Created by wuhenzhizao on 2017/8/2.
*/
public class SkuViewDelegate {
private OnSkuListener listener;
public OnSkuListener getListener() {
return listener;
}
public void setListener(OnSkuListener listener) {
this.listener = li... | 16.9 | 53 | 0.677515 |
5f770b799b8a073462c676f2188fd2bd77565c92 | 4,170 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 48.488372 | 114 | 0.759472 |
f8f6f40563b38db14962e6ee642eec69f26d3998 | 5,600 | /*
* 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... | 40 | 103 | 0.680893 |
7496637c41492c9cff4cb08636256825402c4b26 | 94 | package ast;
//Class SingleCommandAST
public abstract class SingleCommandAST extends AST {
}
| 15.666667 | 52 | 0.808511 |
12aa371d771c9efea6735496f187e24efcfca76a | 199 | package _003HighQualityMistakes;
/**
* Created by IntelliJ IDEA.
* User: LAPD
* Date: 24.7.2018 г.
* Time: 10:51 ч.
*/
public class Main {
public static void main(String[] args) {
}
} | 14.214286 | 44 | 0.628141 |
17059dd6f428bf353d917584d5a10fafe83d9cdc | 3,788 | package io.github.salemlockwood.flyther.utils;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Typeface;
public class Colors {
public static Paint getScoreColor(Context context) {
Paint white = new Paint();
white.setTextSize(80... | 35.074074 | 97 | 0.665787 |
627a3d9ff125a5a6f053edbc7c0e723ef1bcfb97 | 311 | package com.n26.challenge.service;
import com.n26.challenge.domain.Transaction;
import org.springframework.stereotype.Service;
/**
* Created by ychahbi on 14/07/2018.
*/
public interface TransactionService {
void handleTransaction(final Transaction transaction, final long latestAcceptedTimestamp);
}
| 22.214286 | 94 | 0.794212 |
b5d16e0b75ed84e9959561f907faade9359d2fb1 | 9,661 | package me.calebjones.spacelaunchnow.ui.orbiter;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatButton;
import android.support.v7.widget.RecyclerView;
import android.view.Layou... | 36.319549 | 158 | 0.637719 |
6c499d04b1ae50be3ee01f41c6af09e459ac13c1 | 2,047 | /*
* Copyright (C) 1999-2008 Jive Software. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 28.430556 | 95 | 0.684416 |
bdfa0af249ec812de1cd9439ac6b5f4c3e0bc880 | 293 | package net.pl3x.map.fabric.configuration.options;
import net.minecraft.text.Text;
import net.pl3x.map.fabric.gui.screen.widget.Button;
public interface Option<T> {
T getValue();
void setValue(T value);
Button.PressAction onPress();
Text getName();
Text tooltip();
}
| 17.235294 | 52 | 0.706485 |
0d38122323893fa2aeedfbc961d9afb3c58eb1c3 | 2,772 | package com.yunussen.artbook;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import ... | 33.804878 | 91 | 0.664502 |
2397ab187b5abd79d2337676b8a1389a5ff07eea | 675 | package br.com.lutztechnology.appveterinario.api.mappers;
import br.com.lutztechnology.appveterinario.api.dto.CustomerDTO;
import br.com.lutztechnology.appveterinario.model.Customer;
import org.springframework.stereotype.Component;
@Component
public class CustomerMapper {
public Customer convertToEntity(Customer... | 30.681818 | 64 | 0.746667 |
f7df8361ff75d6a04cbc8470a4944e6106618291 | 1,239 | package com.sensiblemetrics.api.streamer.analyzer;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.uti... | 34.416667 | 144 | 0.717514 |
60ccb700355465d5746e04314694c71eb01cf87b | 764 | /**
* Copyright (c) 2005-2012 https://github.com/zhuruiboqq
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.sishuok.es.common.utils;
import org.springframework.context.MessageSource;
/**
* <p>User: Zhang Kaitao
* <p>Date: 13-2-9 下午8:49
* <p>Version: 1.0
*/
public class Messa... | 21.828571 | 69 | 0.632199 |
5220cb1e5f19cc1555dc52dd83e9ef8761d4fed6 | 796 | package ch.difty.scipamato.core.persistence.paper.searchorder;
import static ch.difty.scipamato.common.persistence.TranslationUtilsKt.deCamelCase;
import org.jetbrains.annotations.NotNull;
import org.jooq.Condition;
import org.jooq.impl.DSL;
import ch.difty.scipamato.core.entity.search.BooleanSearchTerm;
/**
* {@l... | 29.481481 | 91 | 0.756281 |
9c1dc392c36837456c78aaa3331386547404bba6 | 2,664 | package cz.romario.opensudoku.game.command;
import java.util.Stack;
import cz.romario.opensudoku.game.CellCollection;
import android.os.Bundle;
public class CommandStack {
private Stack<AbstractCommand> mCommandStack = new Stack<AbstractCommand>();
// TODO: I need cells collection, because I have to call valida... | 23.785714 | 97 | 0.689565 |
a274ec982cfd327c9121153ae6578c5a42ccf050 | 7,561 | /*
* Copyright (c) 2020 Dzikoysk
*
* 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... | 44.216374 | 153 | 0.680201 |
34862d21dff3423844ae31d4b19ca85ba183b5a7 | 3,109 | package org.glob3.mobile.generated;
//
// Vector2D.cpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 31/05/12.
//
//
// Vector2D.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 31/05/12.
//
//class Angle;
//class MutableVector2D;
public class Vector2D
{
//C++ TO JAVA CONVER... | 18.288235 | 100 | 0.570923 |
1a646d6cd0cd4fbbaef2eb8c66baa8d47c539ad0 | 1,554 | package com.vikashkothary.life.ui.about;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.vikashkothary.life.R;
import com.vikashkothary.life.ui.base.BaseFragmen... | 30.470588 | 104 | 0.719434 |
e3a32af262fdc9bf339787682c20689b784ff33a | 80,083 | /*
* Copyright (c) 2008-2019, Hazelcast, 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 required ... | 45.142616 | 128 | 0.699462 |
304a3e7d4fa84c29eed22529844776c40637d43b | 2,917 | package com.learning.lesson13binarysorttree;
/**
* 二叉排序树结点
*
* @author Zongheng Ma
* @date 2020/8/5
*/
public class Node {
/**
* 数据域
*/
private Integer val;
/**
* 左子结点
*/
private Node left;
/**
* 右子结点
*/
private Node right;
public Node(int val) {
... | 19.843537 | 78 | 0.442235 |
bd332ec3e9e075b27e20583940ecb79a40967d2a | 700 | package com.active4j.hr.hr.service.impl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.active4j.hr.hr.dao.OaHrUserPactDao;
import com.active4j.hr.hr.entity.OaHrUserPactEntity;
import com.active4j.hr.hr.service.OaHrUserPactService;
import com... | 26.923077 | 126 | 0.808571 |
bd44dd7913d48d365a1ed9fabd00b202ad605390 | 1,807 | /*
* This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
* including this file, may be copied, modified, propagated, or distributed except according to th... | 36.14 | 115 | 0.716657 |
6ae094fe0fde4c3388baf9d512a1367ee9568f33 | 2,843 | package com.szczepix.quitsmoker.views;
import com.szczepix.quitsmoker.managers.IStageManager;
import javafx.embed.swing.JFXPanel;
import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.scene.control.Control;
import javafx.scene.layout.AnchorPane;
import org.junit.Before;
import org.junit.Te... | 29.309278 | 81 | 0.710517 |
ff96f280fc5925f301911bbf2eaa10f01e2f5603 | 3,157 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011, 2012, 2013, 2014, 2016 Synacor, Inc.
*
* 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 Foundation,
* versi... | 43.847222 | 121 | 0.74121 |
d7b6ce0cde08cfa1d0754f3be68e2f35dac5fcc4 | 1,751 | /**
* Copyright (c) 2019-2030 panguBpm All rights reserved.
* <p>
* http://www.pangubpm.com/
* <p>
* (盘古BPM工作流平台)
*/
package com.pangubpm.bpm.model.xml.impl.validation;
import java.util.Collection;
import com.pangubpm.bpm.model.xml.impl.ModelInstanceImpl;
import com.pangubpm.bpm.model.xml.instance.ModelElementI... | 29.677966 | 125 | 0.744146 |
8b8ab86224b058c9c0f75d82b4eb7f8a5796a0a7 | 1,905 | package com.myriad.auto2.model;
import java.io.Serializable;
import java.util.ArrayList;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CopyOnWriteArrayList;
public class TestCase implements Serializable {
/**
*
*/
priva... | 20.052632 | 67 | 0.591076 |
f681a45c62ab23f7a86df75cdf61de101ecdcc98 | 4,587 | // Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE
package org.bytedeco.opencv.opencv_face;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import... | 47.28866 | 132 | 0.729671 |
c3bf953517cd546c9e29fb8de800a25fa0e2be8b | 490 | package hardcoded.assembly.x86;
final class NumberUtils {
public static int getBitsSize(long value) {
value = (value < 0 ? - (value + 1):value);
// The eight was added because 0xff should be treated as 16 bit
// otherwise it would encode -1 as a 8 bit value and that is wrong.
if((value & 0xffffffff... | 32.666667 | 70 | 0.626531 |
f204be0bf64dec2ae7c2043a1996e3d5b97481a0 | 1,112 | package io.ami2018.ntmy.model;
import org.json.JSONException;
import org.json.JSONObject;
public class Color {
private Integer red;
private Integer green;
private Integer blue;
private int intColor;
public Color(int red, int green, int blue) {
this.red = red;
this.green = green;
... | 26.47619 | 83 | 0.594424 |
c4e42bdd114145dfb60cadac36101847975b6a6b | 1,925 | /**
*
*/
package org.atum.jvcp.net.codec.newcamd;
import org.atum.jvcp.net.codec.Packet;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
/**
* @author <a href="https://github.com/atum-martin">atum-martin</a>
* @since 20 Dec 2016 21:53:06
*/
public class NewcamdPacket implements P... | 20.478723 | 68 | 0.641039 |
183bd390d7b5a6cbbaf452fb69288ffd0bd29702 | 1,653 | package com.eas.designer.explorer.project;
import java.io.File;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.List;
import org.netbeans.spi.search.SearchFilterDefinition;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;
/**
* Platypus project's search filter.... | 34.4375 | 147 | 0.69026 |
2ff8be19ec5eea0caf08f986322236f4f173028e | 1,028 | package threads.server.utils;
import android.view.MotionEvent;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.selection.ItemDetailsLookup;
import androidx.recyclerview.widget.RecyclerView;
public class PinsItemDetailsLookup extends Item... | 32.125 | 90 | 0.723735 |
74b4f360645261e053918b7303a6215e9f5e0d76 | 96 |
class RangerParamEventHandler {
public void callback( RangerAppParamDesc param ) {
}
}
| 13.714286 | 52 | 0.71875 |
7a6196e10e912f7d558f074e8e519128bad61b7d | 1,000 | package it.unimib.disco.gruppoade.gamenow.fragments.shared;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import java.util.ArrayList;
import it.unimib.disco.gruppoade.game... | 28.571429 | 86 | 0.738 |
fc37607e3351c2457d82cc1f55f9513316462551 | 375 | package cart;
/** Demo file, it may not be correct and/or complete.
* Please watch the corresponding lecture(s) for more explanations.
* @author ashesh
*/
import java.util.ArrayList;
public class ShippingAirTransport implements ShippingOption {
@Override
public double calculateCharges(ArrayList<Item> list) {
... | 20.833333 | 67 | 0.746667 |
3965d565fd471da2121f597f10b0b12f8517203a | 4,858 | package com.xkzhangsan.time.cron;
import com.xkzhangsan.time.formatter.DateTimeFormatterUtil;
import com.xkzhangsan.time.utils.CollectionUtil;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Cron表达式工具
* <p>
* Cron表达式从左到右(用空格隔开):秒(0~59) 分(0~59) 小时(0~... | 26.11828 | 127 | 0.702964 |
e25db1810db0fe4514f9ead12caf4e0be1b8b746 | 2,337 | package com.lc.dfs;
import java.util.HashSet;
import java.util.Set;
public class NumIslandsUnionFind {
private static int height;
private static int width;
private static int count;
private static int[] parent;
private static Set<Integer> set;
public static int numIslands(char[][] grid) {
... | 30.350649 | 132 | 0.389816 |
cd3c07e513c77b4eb6dc3ede782951c0166bb744 | 911 | package prototype;
import java.util.ArrayList;
public class PrototypeDemo {
static void plotShapeFamily(Shape prototype, int fromSize, int toSize) {
for (int size=fromSize; size<toSize; ++size) {
Shape shape = prototype.clone();
shape.setSize(size);
shape.plot();
}
}
static void simpleTest() {
Sha... | 22.219512 | 73 | 0.673985 |
121eab5970548998b77f440f3abffb36475b75d2 | 1,305 | package fhscs.snake;
import java.awt.Point;
/**
* Represents the board that the snake game plays on,
* a grid of squares.
*
* The bottom-left corner is (1,1), the top-right corner is (width, height)
*/
public interface Board {
/**
*
* @return the number of squares in the horizontal movement
... | 16.518987 | 75 | 0.529502 |
8114886372461329244adc654860651e4d3a3af9 | 10,664 | /*
* Copyright (C) 2013 Square, 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 agreed to in ... | 38.919708 | 107 | 0.74156 |
bdc890514db4c80153d9aadac5a35b17fa4af8d3 | 212 | package com.trunk.joda.clock;
import org.joda.time.DateTime;
/**
* A shim to allow the injection of time into objects that depend on
* {@link DateTime#now()}.
*/
public interface Clock {
DateTime now();
}
| 17.666667 | 68 | 0.698113 |
0f18ffd480480e08c73759a7e85de2342a9abbfb | 356 | package com.example.flight.application.web.model;
import com.example.flight.domain.model.BuyTicketInput;
import lombok.Data;
import java.util.UUID;
@Data
public class BuyTicketRequest {
private UUID ticketId;
private UUID customerId;
public BuyTicketInput toBuyTicketInput() {
return new BuyTicketInput(thi... | 20.941176 | 62 | 0.783708 |
71d115d7a7186b3c8f2f492c41415196af4dcc86 | 3,916 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 39.959184 | 148 | 0.741318 |
81303325873d20eb78ce8ddc4461620d858563e7 | 454 | package model.command.zeroParameter.turtle;
import model.command.AbstractCommand;
import model.command.zeroParameter.IZeroParameterCommand;
import java.util.List;
public class Turtles extends AbstractCommandZeroParameterTurtle implements IZeroParameterCommand {
public Turtles (List<AbstractCommand> parameters) ... | 25.222222 | 98 | 0.76652 |
3aa34db7f73a284578a96a9d85ad106c1fbba721 | 44,505 | package com.angadi.tripmanagementa.Activities;
import android.Manifest;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.pm.PackageManager;
import android.graphics.Typeface;
import an... | 38.399482 | 256 | 0.602517 |
82b3a3385e9983df3ee73db328afaf9d00cd0c20 | 10,288 | package datawave.ingest.data.config;
import java.util.Map;
import datawave.data.type.Type;
import org.junit.Assert;
import org.junit.Test;
public class NormalizedFieldAndValueTest {
public static class NonGroupedInstance implements NormalizedContentInterface {
private String _fieldName;
... | 28.186301 | 143 | 0.544032 |
ac9286b8cc1554ff7746dbc991e767abe2401db2 | 2,731 | package liquibase.parser.core.xml;
import liquibase.parser.LiquibaseParser;
import liquibase.parser.NamespaceDetails;
import liquibase.serializer.LiquibaseSerializable;
import liquibase.serializer.LiquibaseSerializer;
import liquibase.serializer.core.xml.XMLChangeLogSerializer;
import java.util.regex.Matcher;
import ... | 33.716049 | 130 | 0.701575 |
5fd6eb42f14241ef6d952827bc5cefb68f02b1da | 27,512 | /*-
* ===============LICENSE_START=======================================================
* Acumos
* ===================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
* ==========================================================... | 46.238655 | 173 | 0.742403 |
2bb011aca4ec55fb6365f724b2ddad226d5e7e1d | 3,033 | package cn.itsite.aguider.demo;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import cn.itsite.aguider.demo.demo.AnywhereActivity;
import cn.itsite.aguider.demo.demo.CombinationActivity;
import cn.itsit... | 34.078652 | 85 | 0.652819 |
23a4dbf641f08d40f3185ea359e33f51d53d990a | 465 | package com.realz.swords.swordeffects;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.SwordItem;
import net.minecraft.world.item.Tier;
public class HellIronSword extends SwordItem {
public HellIronSword(Tier tier, int attackDamageIn, float attackSpeedIn, Properties builderIn) {
... | 27.352941 | 100 | 0.756989 |
428cc9e9f952f74c9c7681e30a172e99dd636113 | 521 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.logic.players.event;
import org.terasology.engine.entitySystem.event.Event;
/**
* This event gets sent when the player respawns.<br/>
* The player entity is preserved along with its components during r... | 34.733333 | 81 | 0.775432 |
e12cdfe1e563295dc35b110ee7603d4a769634a0 | 3,200 | /*
* Copyright 2010-2012 VMware and contributors
*
* 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... | 34.782609 | 115 | 0.709063 |
a793fc20fe80f1cb530309f750d3ea00db4b6ef0 | 1,182 | package tests;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.testng.annotations.Test;
import java.util.List;
public class MenuItemsTest extends LoginAdminFixture {
@Test
public void clickAllMenuItems() {
Lis... | 40.758621 | 99 | 0.669205 |
fc0541ec1e93caf091a45cc7d798da5d9696ad49 | 2,986 | package io.moonman.emergingtechnology.helpers.machines;
import io.moonman.emergingtechnology.config.EmergingTechnologyConfig;
import io.moonman.emergingtechnology.helpers.StackHelper;
import io.moonman.emergingtechnology.item.items.BlueBulb;
import io.moonman.emergingtechnology.item.items.BulbItem;
import io.moonman.e... | 32.813187 | 98 | 0.67716 |
8db94ebf77bce7db7ec4aca5dd71a3d26de18e81 | 534 | package com.github.payments.service;
import com.github.payments.service.impl.EthereumService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(
name = "ethereum",
... | 26.7 | 64 | 0.745318 |
44babb590596c1c7f8e1f1e786d5c29e120a56cf | 4,165 | package jp.co.rediscovery.firstflight;
/*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
*
* License Agreement
* (3-clause BSD Li... | 35.905172 | 88 | 0.757023 |
1264bf839f94e3af2e5a0d429c10a201532af5cf | 1,029 | package org.hsmak.reactive.repository;
import org.hsmak.reactive.entity.Movie;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
import java.time.Duration;
import java.util.List;
@Repository
public class MovieRepositoryImp implements MovieRepository {
private final List<Movie... | 29.4 | 69 | 0.620991 |
c05241e450f5fbb4752ccfc3cbb2ebbd1fc9aee0 | 750 | package com.easymicro.persistence.config;
import com.easymicro.persistence.core.factory.CustomRepositoryFactoryBean;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;... | 35.714286 | 151 | 0.742667 |
f76fde9ef19c8521a7dc783c7370e8a756561b44 | 5,051 | /*-
* ============LICENSE_START=======================================================
* ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* =============================================================... | 43.17094 | 119 | 0.641457 |
3517b0dd1337a114d8c0b6eefbf0b3468c3e8d70 | 8,917 | package com.enderio.base.common.item.tool;
import com.enderio.base.common.capability.EIOCapabilities;
import com.enderio.base.common.capability.entity.EntityStorage;
import com.enderio.base.common.capability.entity.IEntityStorage;
import com.enderio.base.common.item.EIOCreativeTabs;
import com.enderio.base.common.item... | 36.395918 | 143 | 0.652798 |
31b1f9f968ac553fb00544562f27c356508b0531 | 3,629 | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 50.402778 | 129 | 0.754202 |
f4104921df223b18f3c181526cf3b630c7cb14de | 245 | package com.giffing.wicket.spring.boot.example.web.general.action.panel.items;
import org.apache.wicket.markup.html.panel.Panel;
public abstract class AbstrractActionItem extends Panel {
public AbstrractActionItem() {
super("item");
}
}
| 20.416667 | 78 | 0.779592 |
5e8cab191eddd3aeb60e9003fdf84c373575be32 | 563 | package com.stormmq.java.parsing.adaptors.javaparser.voidVisitors.bodyDeclarations.usefuls;
import com.github.javaparser.ast.expr.Expression;
import com.stormmq.java.parsing.ast.details.fieldValueDetails.FieldValueDetail;
import org.jetbrains.annotations.NotNull;
public final class UsefulFieldValueDetail implements F... | 35.1875 | 130 | 0.849023 |
f8b3bc03e36152bdd173faaa2905feeee8ec458d | 1,072 | package xws.util;
import xws.neuron.Tensor;
import java.util.ArrayList;
import java.util.List;
/**
* RNN DATA
* Created by xws on 2019/5/19.
*/
public class RnnSequence {
private List<Cifar10> list = new ArrayList<>();
public Cifar10 get(int index) {
return list.get(index);
}
public T... | 18.482759 | 56 | 0.587687 |
aa9c63a3c1c031a5984c884b033e8ce531640fa9 | 3,015 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.6875 | 100 | 0.701161 |
52c7e249613fefd87830a1e0731b7233e693769e | 6,852 | package org.vandeseer.integrationtest;
import org.apache.pdfbox.io.IOUtils;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.font.PDFont;
import org.apache.pdfbox.pdmodel.font.PDType0Font;
import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject;
import org.junit.Before;
import org.j... | 42.03681 | 161 | 0.561734 |
53da9fd5f47f9c5b95212d346223d388604fe610 | 5,737 | package com.sauzny.ssq.oak.stream;
import static java.util.stream.Collectors.counting;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.toList;
import java.io.File;
import java.io.RandomAccessFile;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
imp... | 30.515957 | 112 | 0.469583 |
2682b0f013e38752a67ade97e5f36964616dc9e5 | 25,015 | package rastreio;
/**
* Inferred tracking object service type from object code.
* @see <a href="https://www.correios.com.br/enviar-e-receber/precisa-de-ajuda/siglas-utilizadas-no-rastreamento-de-objeto"></a>
*/
public enum TrackObjectServiceType {
/**
* AA - ETIQUETA LÓGICA SEDEX.
*/
AA("AA", "ETIQUETA LÓ... | 22.078553 | 128 | 0.559624 |
320ba45d236948406fd9670880ea22e13a6abe74 | 2,753 | // Copyright 2019 Marco Bavagnoli <marco.bavagnoli@gmail.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | 32.011628 | 105 | 0.65129 |
96c0de93612cdf1f61c01aca2474070fe19fb19e | 8,665 | package com.wherehoo;
import java.net.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import java.security.*;
public class WHInsertOperation extends WHOperation {
private WHPolygon poly;
private double height;
private byte[] data;
private WHTimeInterval time;
private Str... | 34.384921 | 145 | 0.664974 |
da6d164a4b51c94b7948a259fb3ac52963845c9a | 939 | package com.unity3d.ads.android.zone;
import org.json.JSONException;
import org.json.JSONObject;
import com.unity3d.ads.android.item.UnityAdsRewardItem;
import com.unity3d.ads.android.item.UnityAdsRewardItemManager;
import com.unity3d.ads.android.properties.UnityAdsConstants;
public class UnityAdsIncentivizedZone ex... | 31.3 | 145 | 0.832801 |
a0fbcf3707893ed630d03c2e359217e242b917b7 | 2,687 | /**
* Copyright (DigitalChina) 2016-2020, DigitalChina.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.988095 | 113 | 0.710086 |
5c4ddc7d9eea9d616aae6293a92de6439066771d | 2,183 | package com.avast.syringe.aop.cglib;
import com.avast.syringe.aop.Interceptor;
import com.avast.syringe.aop.MethodPointcut;
import com.avast.syringe.aop.ProxyFactory;
import net.sf.cglib.proxy.Callback;
import net.sf.cglib.proxy.CallbackFilter;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.NoOp;
/**
... | 30.319444 | 105 | 0.610628 |
e39319d3407e27d34fc87769d978c0051ffa6ca6 | 7,629 | /**
* Copyright 2014 Google 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 required by applicable... | 39.324742 | 100 | 0.679643 |
9e085d1cb15b03f22ef4cf35433a963fe2a62687 | 6,672 | package com.group_track.model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.... | 23.410526 | 64 | 0.625749 |
c902775e583ded1cc43e7f917dce7a5633d943fb | 972 | package org.jeecg.modules.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.business.entity.SourceDirectory;
import java.util.List;
import java.util.M... | 38.88 | 254 | 0.781893 |
b45677bb309b712ac60c6db8cb73755fdfac3868 | 424 | package edu.wmi.blindsign;
import java.security.SecureRandom;
/**
* Created by lupus on 02.11.16.
*/
public class MessageGenerator {
private SecureRandom secureRandom;
public MessageGenerator() {
this.secureRandom = new SecureRandom();
}
public byte[] getRandomBytes(int size) {
by... | 19.272727 | 47 | 0.658019 |
235ed166c1fa716f792c144d4dfc2c446ca7ea5b | 336 | package com.tduck.cloud.wx.mp.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxMpUserVO {
/**
* 昵称
*/
private String nickname;
/**
* 头像
*/
private String headImgUrl;
private S... | 15.272727 | 33 | 0.678571 |
07051a07040175fa4d17246f8ea6e8fb41bb1b4b | 4,423 | /*
* Copyright 2005-2010 the original author or authors.
*
* 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 ap... | 46.072917 | 118 | 0.664255 |
ef598bea8d18047053b6959f5ac90a569c23dba5 | 5,039 | package com.mercandalli.android.apps.files.file.local.provider;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.test.espresso.Espresso;
import android.support.test.espresso.idling.CountingIdlingResource;
import android.util.L... | 34.513699 | 98 | 0.713435 |
cb6ea9bfd8ff2f842dfb3cf71191c083a3e866be | 5,367 | package org.pubref.grpc.greetertimer;
import com.google.common.base.Preconditions;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.Server;
import io.grpc.ServerBuilder;
import io.grpc.StatusRuntimeException;
import io.grpc.stub.StreamObserver;
import java.io.IOException;
import ja... | 31.757396 | 92 | 0.664431 |
8e190195778eb8ff1ca4c0210f127ccadc751ba1 | 8,716 | package org.synyx.urlaubsverwaltung.absence;
import org.synyx.urlaubsverwaltung.person.Person;
import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
/**
* Defines absence periods of a {@link Person}.
*
* e.g. Bruce Wayne is absent on:... | 30.582456 | 154 | 0.605438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.