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 |
|---|---|---|---|---|---|
5185a49f270cf328e81fcaf810ca8559febb383a | 2,950 | /*
* Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics
*
* 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-... | 40.410959 | 110 | 0.756271 |
6af73270425166403554aa403623597481e72bc9 | 2,564 | /*
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* MIT License
*
* 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
* ... | 42.733333 | 118 | 0.74922 |
4d8e06051d19b7ac7bd30e663102aae09ce26a06 | 7,653 | package com.softwareverde.bitcoin.server.main;
import com.softwareverde.bitcoin.server.configuration.DatabaseProperties;
import com.softwareverde.bitcoin.server.database.Database;
import com.softwareverde.bitcoin.server.database.DatabaseConnection;
import com.softwareverde.bitcoin.server.database.DatabaseConnectionFac... | 52.061224 | 240 | 0.711747 |
0f6cf6d78eb7bc5e89f5660b568b4af1dce98d00 | 584 | /*
* 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 labguide5_q3;
/**
*
* @author Levent
*/
public class CityMain {
public static void main(String[] args) {
City ... | 23.36 | 79 | 0.606164 |
0d1b247cf54420e1c6eaf14de5981b9c71495311 | 1,387 | package com.example.android.sandegotour;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import java.util.ArrayList;
/**
* A simple {@link Fragment} subclass.
*/
public cl... | 27.74 | 86 | 0.685652 |
3f966fed8fab8ad709c22a983721986f04917c41 | 537 | package main;
public class PrintNumbers implements Runnable {
private int start, end, delay;
public PrintNumbers(int start, int end, int delay) {
this.start = start;
this.end = end;
this.delay = delay;
}
@Override
public void run() {
for(int i=start; i <= end; i++... | 20.653846 | 56 | 0.502793 |
d7685d59c930ef67caff5db7c9240d4a36e7a162 | 1,614 | package com.flat.tools.font;
import com.flat.tools.font.enums.FontLocal;
import com.flat.tools.font.enums.FontLocal.FontFamily;
import javafx.scene.text.Font;
import java.io.FileInputStream;
import static javafx.scene.layout.Region.USE_PREF_SIZE;
/**
* @author Christopher Brantley <c_brantl@uncg.edu>
*/
public clas... | 33.625 | 148 | 0.630731 |
edbc7ab0f0945cc3da5cb778a7ecfb1fe1c7f62b | 809 | package cn.szjlxh.push.handler;
import io.netty.buffer.Unpooled;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import io.netty.util.CharsetUtil;
public class PushClientInitializer extends ... | 40.45 | 126 | 0.755253 |
92060462bfe38ff429eb9355a7f64328139836f4 | 3,864 | package com.github.gantleman.shopd.controller.admin;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import com.github.gantleman.shopd.entity.Activity;
import com.github.gantleman.shopd.entity.Admin;
import com.github.gantleman.shopd.entity.Goods;
import co... | 33.310345 | 128 | 0.699275 |
98b0477bb7c0f0ffcc86f6abad065ab944ddd1c3 | 6,496 | /*
* Copyright © 2017 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | 28.366812 | 83 | 0.722137 |
01fce5579390a5ad63a7d043ebae4c102f4030c0 | 949 | package io.github.quickmsg.core.http;
import io.github.quickmsg.common.channel.MockMqttChannel;
import io.github.quickmsg.common.context.ContextHolder;
import io.github.quickmsg.common.message.SmqttMessage;
import io.github.quickmsg.common.http.HttpActor;
import io.github.quickmsg.core.DefaultTransport;
import io.nett... | 32.724138 | 104 | 0.70706 |
f202b37dc28cca3ff2e3733b54ed55bdf6aa9125 | 427 | /*
This program creates a collage of two separate pictures
*/
public class CollageV1
{
public static void main(String[] args)
{
Picture collage = new Picture(1300, 800);
// The two pictures being referenced for the collage
Picture input1 = new Picture("smash.jpg");
Picture input2 = ne... | 22.473684 | 57 | 0.651054 |
20b9fb5aa54301b208d18b1b2612e126f643b722 | 822 | /*
* 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 lab3_franciscosanto_ingriddominguez;
import java.util.Date;
/**
*
* @author 1234
*/
public class Comida extends Producto{
... | 20.04878 | 95 | 0.626521 |
0b8338de4f4e7c78a68000a4164b49888c3b2a2c | 4,647 | package net.mcft.copy.wearables.client;
import org.lwjgl.opengl.GL11;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.mcft.copy.wearables.WearablesCommon;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.BufferBuilder;
import net.minecraft.client.rende... | 36.880952 | 115 | 0.639768 |
e87bca285328ed71ba2bfa5e7b4f86e3df5d954d | 4,499 | /**
* Copyright (c) 2000-2013 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 later... | 31.027586 | 80 | 0.777284 |
ed1c4aa2f401cda4ab707da2264997d42d0a14f5 | 1,123 | package com.wondernect.stars.user.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.wondernect.elements.rdb.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHa... | 25.522727 | 70 | 0.777382 |
fec70eda148fd45b87d5fc8e0209ed0ced6c1c3c | 2,471 | package org.egov.tenant.domain.service;
import java.util.ArrayList;
import java.util.List;
import org.egov.tenant.domain.exception.DuplicateTenantCodeException;
import org.egov.tenant.domain.exception.TenantInvalidCodeException;
import org.egov.tenant.domain.model.Tenant;
import org.egov.tenant.persistence.repository... | 29.416667 | 128 | 0.790368 |
23a03b2c81c1ed9dce38b8e4196b3a10c41bc17c | 995 | package com.github.czyzby.lml.parser.impl.attribute.label;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
import com.github.czyzby.lml.util.LmlUtilities;
/** See {@lin... | 39.8 | 117 | 0.757789 |
ee20b58efcfec8f2955d7f17ae32a4167b8012c8 | 3,703 | package info.smart_tools.smartactors.das.commands;
import info.smart_tools.smartactors.base.exception.invalid_argument_exception.InvalidArgumentException;
import info.smart_tools.smartactors.base.interfaces.iaction.IAction;
import info.smart_tools.smartactors.base.interfaces.iaction.exception.ActionExecuteException;
i... | 44.083333 | 127 | 0.617337 |
87e4e5e4163022cc159ec17844b8548c6f8a5c4d | 1,668 | package com.revature;
import com.revature.models.Coach;
import com.revature.models.FootballCoach;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpringDriver {
public static void main(String[] args) {
System.out.println("Creating bean container");
try (C... | 36.26087 | 106 | 0.624101 |
5581046d10182a96269b8b871d5b4d59a6eeeae8 | 2,575 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.jabber.extensions.coin;
import net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension;
import org.... | 23.409091 | 89 | 0.63068 |
dea035d4e4fe2ca4ca0f7f6636a363e279841b4a | 144 | package com.github.galimru.tinkoff.json.streaming;
public class InstrumentInfoSubscribeResponse extends EventResponse<InstrumentInfoEvent> {
}
| 28.8 | 89 | 0.861111 |
5a1cbf25dd450e143ad520af74536019e57bc1d3 | 11,913 | /*
* Apache License
*
* Copyright (c) 2019 halower (halower@foxmail.com).
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
... | 48.426829 | 191 | 0.705028 |
af75eafd37a1e54849e7a3ac3e15bf329653101f | 1,007 | import java.util.LinkedList;
/**
* Algorithm which pushes integers to a dynamic (growing) array (here LinkedList)
*/
class growList {
public static void main(String[] args) {
long startTime;
int maxNum = 1000000; // by default 1 million integers in array
LinkedList<Integer> intArray = new LinkedList<In... | 23.97619 | 88 | 0.642502 |
dcc373794946b5ebf4ec1354716706994746cf4a | 456 | package cn.xf.warehousing.service;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.xf.common.utils.PageUtils;
import cn.xf.warehousing.entity.WareOrderTaskDetailEntity;
import java.util.Map;
/**
* 库存工作单
*
* @author XF
* @email xialuke98@gmail.com
* @date 2022-02-05 23:13:33
*/
public inte... | 21.714286 | 89 | 0.774123 |
1ad484a430fe1460ca951b74a62a812f6753721a | 3,602 | /*-
* #%L
* rapidoid-rest
* %%
* Copyright (C) 2014 - 2020 Nikolche Mihajlovski 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/li... | 26.291971 | 128 | 0.5794 |
f747ef49f7cd9c4e2ab63e604cb42d061e56d9a4 | 564 | package com.fc.test.model.custom;
import com.fc.test.model.auto.TsysRole;
/**
* 角色自定义数据
* @author fuce
* @date: 2018年9月8日 上午12:18:59
*/
public class RoleVo extends TsysRole{
private static final long serialVersionUID = 1L;
private boolean ischeck;//判断是否又这个权限
public boolean isIscheck() {
retu... | 18.8 | 57 | 0.666667 |
0f1d19c53ea8fa057b58fd71b6da359592a66762 | 1,095 | /*Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.
Formally the function should:
Return true if there exists i, j, k
such that arr[i] < arr[j] < arr[k] given 0 ≤ i < j < k ≤ n-1 else return false.
Your algorithm should run in O(n) time complexity and O... | 26.071429 | 106 | 0.569863 |
4f64433a64e79ce367d57406e877174662592291 | 2,225 | package yecheng.music.fingerprint;
/**
* Created by hsyec_000 on 2015/6/11.
* Find local peaks in fft data.
*/
@SuppressWarnings("WeakerAccess")
public class FindPeaks {
final float[] power;
final int[] locate;
private final int nPeaks;
public FindPeaks(int nPeaks){
super();
this.... | 25.872093 | 78 | 0.422921 |
6d64fecc4b202162f1ebbb415b75c6261a634af1 | 2,235 | /*
* Copyright 2021 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://www.apach... | 27.9375 | 118 | 0.72528 |
e26bbc0efdabcd29da12c6baa0b6b9111ddb1eca | 456 | package com.wizeline.omarsanchez.nytimessearch.interfaces;
import android.content.Context;
import com.wizeline.omarsanchez.nytimessearch.models.Filter;
/**
* Created by omarsanchez on 3/16/17.
*/
public interface DocsRequest {
void getArticles(Context context, String search, String page, ResultRequest resulRe... | 28.5 | 109 | 0.791667 |
0b5f68a4434b51395e2c3315b6199c276f6fd9dc | 1,100 | package firstPass.easy._203;
import firstPass.structure.ListNode;
/**
* @description:
* @author: tc
* @create: 2019/07/05 14:18
*/
/*
简单的单链表删除,需要在head前加两个前置指针
Simple deletion of single linked list, need two pointers before head pointer
执行用时 :1 ms, 在所有 Java 提交中击败了100.00%的用户
内存消耗 :39.3 MB, 在所有 Java 提交中击败了94.47%的用... | 26.829268 | 95 | 0.611818 |
9953a1bbc34a4971c59cf5fbd9a9dcdae6a5ee31 | 4,665 | package hk.hku.cecid.piazza.corvus.core;
import java.io.File;
import java.util.Date;
import java.util.Properties;
import hk.hku.cecid.piazza.commons.servlet.http.HttpDispatcherContext;
import hk.hku.cecid.piazza.commons.spa.PluginRegistry;
import hk.hku.cecid.piazza.commons.Sys;
/**
* Kernel is the nucleus of Piazz... | 30.490196 | 85 | 0.56313 |
aa781d94398a8f25b25156ce6901475ca3c531cc | 656 | package com.mrh0.horth.instructions.high.stackops.base;
import com.mrh0.horth.ast.nodes.ITok;
import com.mrh0.horth.instructions.high.HighInst;
import com.mrh0.horth.typechecker.IContract;
public class HDup2 extends HighInst {
private static IContract contract = (s, t) -> {
var a = s.pop(t);
var b... | 21.866667 | 55 | 0.592988 |
60ecc6d71450ceffe6de5d517494be382eca9525 | 3,407 | package com.wxdgut.chap6;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
/**
* @author Administrator
* @program: leetcodeStudy
* @date 2021-11-25 10:26:35
* <p>
* 145. 二叉树的后序遍历 难度:简单
* 链接:https://leetcode-cn.com/problems/binary-tree-postorder-traversal
*... | 28.872881 | 80 | 0.561491 |
8ab68dcf8a3ca2ca97590ad4e51a9ee6a70667c1 | 37 | package com.ishland.c2me.mixin.fixes; | 37 | 37 | 0.837838 |
d26e594f5b63fa0372564444c4b495c5ad1f5bdb | 1,808 | package hlf.java.rest.client.config;
import java.util.List;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.... | 29.16129 | 100 | 0.785951 |
8cc0ac8ff8a19ff1ee19c0b18e6031a9f1aba21c | 3,522 | package com.ruoyi.tickets.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;... | 30.626087 | 107 | 0.689097 |
0297c6452a6aea4196b5943b3746424a8c7fc106 | 1,098 | package org.apache.pdfbox.contentstream.operator.markedcontent;
import java.io.IOException;
import java.util.List;
import org.apache.pdfbox.contentstream.operator.Operator;
import org.apache.pdfbox.contentstream.operator.OperatorProcessor;
import org.apache.pdfbox.cos.COSBase;
import org.apache.pdfbox.cos.COSName;
im... | 26.142857 | 93 | 0.678506 |
3b7748eb9ef57f58dd46b5ec909d6f32760d4117 | 20,530 | package com.aliyun.ros.cdk.ros;
/**
* A ROS template type: `ALIYUN::ROS::CustomResource`.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.53.0 (build c071d26)", date = "2022-02-11T01:44:08.417Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ros.$Module.class, fqn = "@alicloud/ros-cdk-ros.RosCustomRe... | 44.727669 | 389 | 0.635265 |
c70848ef9d62a6e1e84c3dea49975e705fee7eed | 4,057 | package ShadowSiren.relics;
import ShadowSiren.ShadowSirenMod;
import ShadowSiren.util.TextureLoader;
import basemod.abstracts.CustomRelic;
import com.badlogic.gdx.graphics.Texture;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.megacrit.cardcrawl.actions.... | 34.381356 | 173 | 0.681292 |
240b1c909728d4912e19e1bf9c60d5fb54d80f55 | 540 | package com.fil.ap.rabbitmq;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
pub... | 20.769231 | 62 | 0.777778 |
016dbd36c7d78866a24278853591f4a1877183a5 | 4,901 | /*
* Copyright 2019-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 32.673333 | 96 | 0.693532 |
07d6b9f739ac48d4d17aeee6195b62230e8113bd | 1,830 | /*
* Copyright 2007-2009 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 requi... | 39.782609 | 81 | 0.697268 |
a3f2b7fa3f7697500c4f13177708a05b42c9e409 | 288 | package com.cn.mvparms.demo.app.constant;
/**
* Created by sfeng on 2017/12/13. <>
*/
public class DataConstant {
public static final String AccessToken = "AccessToken";// 存储网络中获取的AccessToken
public static final String AccessSecret = "AccessSecret";// 存储网络中获取的AccessSecret
}
| 24 | 84 | 0.736111 |
3117dcc53be44009d8cd61ec5fced9e295d34bee | 6,060 | package com.reactnativenavigation.viewcontrollers.component;
import android.app.Activity;
import android.content.res.Configuration;
import android.view.View;
import com.reactnativenavigation.viewcontrollers.viewcontroller.ScrollEventListener;
import com.reactnativenavigation.options.Options;
import com.reactnativenav... | 35.232558 | 165 | 0.683828 |
7d6411b23b73d4366ea4b8336ed662106f90677e | 878 | package com.tonysfriend.ms.proxy.core.invocation;
import java.lang.reflect.Method;
import com.tonysfriend.ms.proxy.core.BaseAction;
import com.tonysfriend.ms.proxy.core.Return;
/**
* 封装了action拦截器和调用的过程
* @author yunfeng.cheng
* @create 2016-08-08
*/
public class ActionInvocation {
private ActionProxy proxy;
... | 20.418605 | 51 | 0.738041 |
4b1e58be23310b4acf56a161645530d17d8d57cd | 4,322 | package com.cologne.hackaton.wearstopwatch.service;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.CountDownTimer;
import android.os.IBinder;
import android.util.Log;
import com.colog... | 27.35443 | 118 | 0.651087 |
bc1be7f4fd082116d9c1014e6bf04f1cee14c993 | 2,588 | package me.brainmix.nickapi.spigot;
import me.brainmix.nickapi.Nick;
import me.brainmix.nickapi.spigot.utils.SinglePair;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class NickCache {
... | 36.450704 | 144 | 0.651855 |
2f3c7af2e9f1adfb00422d7a051405537d6b00aa | 2,264 | package com.devel.photogallery;
import android.content.Context;
import android.preference.PreferenceManager;
public class QueryPreferences {
private static final String PREF_SEARCH_QUERY = "searchQuery";
private static final String PREF_LAST_RESULT_ID = "lastResultId";
private static final String PREF_FE... | 36.516129 | 78 | 0.654152 |
ab28e932bcbd422213de55148a58e786eea84dcb | 559 | package methods;
import java.util.Scanner;
public class IntroductionToMethods {
public static void main(String[] args) {
System.out.println("enter two numbers");
System.out.println();
Scanner sc =new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
System.out.println("the greatest of... | 20.703704 | 83 | 0.652952 |
fdbd0cf4d7b0e3f128d78d8693facb8910248e11 | 2,854 | package graph;
import java.awt.Point;
import java.awt.Polygon;
import java.util.ArrayList;
import java.util.List;
/**
* A hexagonal lattice where each cell has 6 neighbors set up in a honeycone
* pattern.
*
* @author Brian Nakayama
*/
public class HexagonMap extends GraphMap {
/**
* The x component of the di... | 21.621212 | 97 | 0.594254 |
5839856a91f6fd7ffbbf3dc4fe5b795b84f83331 | 93 | package de.geolykt.starloader.api.event;
public abstract class Event {
// Dummy class
}
| 15.5 | 40 | 0.731183 |
9f9b6615172201576c717d9fbef0f2b1c62d7b31 | 633 | package generated.fiji.IJ_Trails;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import scala.Tuple2;
import scala.Tuple3;
import java.util.ArrayList;
import java.util.List;
/**
* Trails_.java: line 151
*/
public class Benchmark1 {
public JavaPairRDD<Integer, Float> bench... | 28.772727 | 125 | 0.707741 |
826ad050e76a75a3ea613b64f6d3bc50f8f52347 | 536 | package model;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class TypeVTest {
public void setupScenary5() {
}
@Test
void testTypeV() {
int quality = 100;
int codeTv = 1;
String nameTv = "Deportivo";
int refTv = 0;
TypeV newTypeV = new TypeV(quality, ... | 19.142857 | 61 | 0.703358 |
c097e1467b73a2b37369325bb5ecb4c42de9d8ab | 2,176 | package ca.lukegrahamlandry.mercenaries.mixin;
import ca.lukegrahamlandry.mercenaries.MercConfig;
import ca.lukegrahamlandry.mercenaries.events.AddVillagerHouse;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.shapes.IBooleanFunction;
import net.min... | 53.073171 | 292 | 0.837776 |
ee5c32c57bbef47d31a6c1b3df104059f33cb2de | 339 | @FunctionalInterface
interface Function {
double apply(double x);
}
public class TwiceApp {
private static double twice(Function f, double x) {
return f.apply(f.apply(x));
}
public static void main(String[] args) {
assert twice(x->x+2, 10) == 14;
assert twice(Math::floor, -11.7... | 21.1875 | 55 | 0.60767 |
d828013e667f5d265e5c0cec15c42d6d18509c52 | 22,704 | package org.kuse.payloadbuilder.core.parser;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyMap;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.ToIntBiFunction;
import org.junit.Test;
import org.kuse.payloadbuilder.core.cat... | 36.737864 | 132 | 0.473441 |
7eb60e034c630111b448f369a887367636ef54d5 | 1,089 | package io.costax.relationships.onetomany;
import io.github.jlmc.jpa.test.annotation.JpaTest;
import org.junit.jupiter.api.*;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@JpaTest(persistenceUnit = "it")
@DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class)
@Te... | 28.657895 | 91 | 0.724518 |
a4e83f89d2c9d980c70297f65a52b95523494d5a | 534 | package net.wyun.wcrs.wechat.po;
/**
* ��ʱ��ά����Ϣ
*
* @author qikuo
* @date 2017-2-28
*/
public class WeixinQRCode {
// ��ȡ�Ķ�ά��ticket
private String ticket;
// ��ά�����Чʱ�䣬��λΪ�룬�����1800
private int expireSeconds;
public String getTicket() {
return ticket;
}
public void setTick... | 17.225806 | 51 | 0.621723 |
25c88e554b3c272c9448bd4ea3821703c72a190d | 2,743 | package pageObjects;
import java.io.IOException;
import java.util.List;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Action;
import org.openqa.selenium.interactions.Actions;
import org.openqa.sel... | 28.873684 | 115 | 0.7284 |
e380f85c3367f488863d9121c4fd317be77aa84e | 536 | package pl.panryba.mc.ban;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
/**
* @author PanRyba.pl
*/
public class BukkitServer implements GameServer {
@Override
public List<GamePlayer> getOnlinePlayers() {
Player[] players = Bukkit.get... | 21.44 | 66 | 0.664179 |
ca7ba50e4ffc0f09cc6fbe4b0e444ce04aaad14a | 3,375 | /*
* 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/l... | 43.831169 | 120 | 0.640593 |
066b6760e7925823000d22d888d3c51a2093266d | 320 | package org.ikasan.spec.replay;
public interface ReplayRecordService<EVENT>
{
/**
* Record an EVENT so that it can be replayed.
*
* @param event
* @param moduleName
* @param flowname
* @param timeToLiveDays
*/
public void record(EVENT event, String moduleName, String flowname, int timeToLiveDays);
}
| 21.333333 | 89 | 0.715625 |
34d1f0b2d32f17b037fd9664e44dac2fb1528649 | 2,842 | /*
* Copyright (C) 2022 The PSYCHOPATH Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package psychopath.operation;
i... | 38.405405 | 80 | 0.533779 |
bba35c64248f7ac804af3d88f73cf8266c00d5ec | 15,046 | package com.fox2code.repacker;
import com.fox2code.repacker.layout.DirLayout;
import com.fox2code.repacker.layout.MavenDirLayout;
import com.fox2code.repacker.patchers.ClientAnnotationPatcher;
import com.fox2code.repacker.patchers.Mapping;
import com.fox2code.repacker.patchers.PostPatcher;
import com.fox2code.repacker... | 42.027933 | 146 | 0.632992 |
ee49d08cc7e5440b7425e96b4442bc780063e19a | 2,515 | /*
* Copyright (c) 2020-2021 CertifAI Sdn. Bhd.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* d... | 32.662338 | 128 | 0.704573 |
0e8d9a4a9e95b90c1fe471945a7c45b3f17b8068 | 3,456 | /******************************************************************************
* Copyright (c) 2014 cocos2d-java.org
*
* http://www.cocos2d-java.org
*
* The MIT License (MIT)
*
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this software and associated documenta... | 30.857143 | 94 | 0.643808 |
aa40cc6ee9638c71a1b0690f4ac9be3de07ef1f1 | 1,109 | package ca.bc.gov.educ.api.studentgraduation.model.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.Immutable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
@Data
@Eq... | 23.595745 | 58 | 0.752931 |
434352fb78b6b8a84c6bd701fbed038585336c90 | 7,724 | /*
* 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 ... | 37.31401 | 122 | 0.584153 |
e05011f7f03b19a8bcdfa97cd14fcfde778926a1 | 1,352 | package jason.architecture;
import org.w3c.dom.Document;
import jason.asSemantics.Agent;
import jason.util.Config;
public abstract class MindInspectorWeb {
private static MindInspectorWeb singleton = null;
protected String httpServerURL = "http://localhost:3272";
protected int httpServer... | 28.166667 | 127 | 0.625 |
fb4d31180ad5e6eef0f824ac3a00e01d0340259b | 1,134 | package io.vertigo.chatbot.designer.builder.services.topic.export;
import javax.inject.Inject;
import io.vertigo.chatbot.commons.LogsUtils;
import io.vertigo.chatbot.commons.domain.BotExport;
import io.vertigo.chatbot.commons.domain.Chatbot;
import io.vertigo.chatbot.commons.domain.topic.KindTopicEnum;
import io.vert... | 35.4375 | 96 | 0.810406 |
17097dacc833a9ce78f77a2cf4859bda7ca95261 | 10,165 | package com.cgfay.cainfilter.glfilter.base;
import android.graphics.PointF;
import android.opengl.GLES30;
import android.opengl.Matrix;
import android.util.Log;
import com.cgfay.cainfilter.utils.GlUtil;
import com.cgfay.cainfilter.utils.TextureRotationUtils;
import java.nio.FloatBuffer;
import java.util.Arrays;
imp... | 29.293948 | 106 | 0.574619 |
edfa9cef52faa7ca1abb9cf932be5d6fc97c1a54 | 1,010 |
package ProductinisEn;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JOptionPane;
/**
*
* @author By Gatoman
*/
public class Congeladinis extends Productos {
private Date fecha;
private String pa... | 22.954545 | 98 | 0.652475 |
f5414784c1c45042dd7ec88d7001ed72136a185f | 1,517 |
package com.commercetools.api.models.payment;
import java.util.*;
import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;
@Generated(value = "io.vrap.rmf.codegen.rendring.CoreCodeGenerator", comments = "https://github.com/vrapio/rmf-codegen")
public class PaymentSetInterfaceIdActionB... | 32.978261 | 120 | 0.750824 |
2d571b4bf29dff0710a5ddb40713232e8bcc002e | 1,224 | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Scanner;
public class UserLogin {
public static void main(String[] args) throws IOException {
Scanner input = new Scanner(System.in);
System.out.println("请输入用户名与密码");
... | 29.853659 | 83 | 0.518791 |
e991d42603b7c0ca46fc4bde97fb90204f2da637 | 2,090 | /*
* Copyright (c) 2016 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.store.objstore.reg;
import java.util.List;
import pl.edu.icm.unity.store.ReferenceUpdateHandler;
import pl.edu.icm.unity.store.api.generic.NamedCRUDDAOWithTS;
import... | 33.174603 | 104 | 0.75311 |
cf5ab2e086e492ec82127b05584c0d6dca2f25ce | 837 | package org.pac4j.jax.rs.servlet.features;
import javax.ws.rs.core.FeatureContext;
import org.pac4j.core.config.Config;
import org.pac4j.jax.rs.features.Pac4JFeature;
/**
*
* Extends {@link Pac4JFeature} to register the default providers for
* servlet-based containers
*
* @see Pac4JFeature
* @author Michael ... | 23.914286 | 78 | 0.731183 |
48535dc9a88393a6518caff068767c1afc4cc2fe | 1,197 | package com.appsmith.server.helpers;
import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.Mustache;
import com.github.mustachejava.MustacheFactory;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Map;
public class TemplateUtils {
/**
* This function... | 41.275862 | 120 | 0.725146 |
70df4be7f5055a7c3e376735db8b24b236c9dc8d | 2,432 | /* Copyright 2017 Zutubi Pty Ltd
*
* 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... | 34.253521 | 107 | 0.670641 |
b8107929e563cc363fced2390cdb7905dfc72165 | 907 | /*
* SPDX-License-Identifier: CC0-1.0
*
* Copyright 2018-2020 Will Sargent.
*
* Licensed under the CC0 Public Domain Dedication;
* You may obtain a copy of the License at
*
* http://creativecommons.org/publicdomain/zero/1.0/
*/
package com.tersesystems.logback.ringbuffer;
import com.tersesystems.logback.clas... | 28.34375 | 100 | 0.762955 |
1a7841bba6e7a2768602c87e378f7231a23049f7 | 263 | package fortiss.gui.commands;
import fortiss.biminterface.BimSession;
public class LoadFromServerCommand implements Command {
@Override
public void execute() {
System.out.println("Loading from BIM Server");
BimSession.getInstance().loadTopology();
}
}
| 18.785714 | 55 | 0.771863 |
6c5daf6e4525ce19d49ae21552032e27f4e396e8 | 505 | package com.example.appnotes.dao;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import com.example.appnotes.entities.Note;
import java.util.List;
@Dao
public interface NoteDao {
@Query("SELECT * FROM note... | 19.423077 | 52 | 0.748515 |
590b5dc42e4d703414b2a789b15e3ded90c99a7d | 2,230 | package unipu.hr.unibooking;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Array... | 34.307692 | 131 | 0.718386 |
1d490475c0c3bde16c3fe6fd253985260f0365bc | 2,515 | package openj9.internal.tools.attach.target;
import java.io.IOException;
/**
* Indicates failure in Attach API operation after target attached.
* Need a private copy since the public version is in a different module.
*/
@SuppressWarnings("serial")
/*******************************************************************... | 34.452055 | 135 | 0.680318 |
3ca4858edfc9d49a2d13f79a643a2dfc1663e01c | 1,191 | package biz.hahamo.dev.variations.controller;
import org.springframework.transaction.annotation.Transactional;
import biz.hahamo.dev.variations.controller.repository.GenericRepository;
import biz.hahamo.dev.variations.controller.repository.PersistenceQueryFactory;
import biz.hahamo.dev.variations.model.Driver;
/**
... | 32.189189 | 117 | 0.766583 |
0ab2f8ec4624c49f6c0a9ec8bd89420b5bcf1d14 | 10,327 | package com.github.malyszaryczlowiek.cpcdb.util;
import com.github.malyszaryczlowiek.cpcdb.compound.Compound;
import com.github.malyszaryczlowiek.cpcdb.compound.TempStability;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class SearchEngine
{
... | 45.69469 | 130 | 0.447274 |
a6682e981fbcfc278db791574fdd9af20fe6cfcd | 667 | package com.lightbend.akkassembly;
import java.util.Objects;
import java.util.UUID;
class SerialNumber {
private final UUID value;
UUID getValue() {
return value;
}
SerialNumber() {
this.value = UUID.randomUUID();
}
SerialNumber(UUID value) {
this.value = value;
... | 19.617647 | 66 | 0.592204 |
62511085294bed772ab3c9bb01b917242bb50057 | 2,516 | /*
*
* The MIT License (MIT)
* Copyright (c) 2016 Daniel Cortes Pichardo
*
* 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 right... | 37.552239 | 135 | 0.752782 |
d6594cfb07786358748f1fde5c6a5f749e37de64 | 6,224 | /*
* 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 GUI;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import static java.nio.file.Files.list;
import static java.rm... | 37.493976 | 137 | 0.635283 |
9779d15dfa1bd624ac28a909fefd643aacb63e6b | 1,373 | package com.project.EStore.model.entity.product;
import com.project.EStore.model.entity.base.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Entity
@Table(name = "products_supplies")
@NoArgsConstructor
@Gette... | 25.425926 | 66 | 0.705025 |
e3a22bd560c6e7d308701eadd3143688f3a08053 | 4,439 | /**
* 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... | 39.283186 | 110 | 0.635954 |
eff8b6c01e0e5b1f6f49602918796343522e36d1 | 6,634 | /*
* The MIT License
*
* Copyright 2017 Orlando Miramontes <https://github.com/orland0m>.
*
* 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 limit... | 33.004975 | 86 | 0.615918 |
fd61555e03757fd98c69afa08a849ec3f9733469 | 29,976 | package com.jwkj.activity;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import org.json.JSONArray;
import org.json.JSONObje... | 31.787911 | 116 | 0.697191 |
b2b3a1111b1fd2900b851d0d1c46a1d8de1e2e8e | 257 | package net.skriptland.bungeecord.listeners;
import net.md_5.bungee.api.plugin.PluginManager;
public class RegisterListeners {
public static void register(PluginManager pluginManager) {
if (pluginManager == null)
return;
}
}
| 19.769231 | 62 | 0.712062 |
b09259a674e45f6c2969955da5c51715805af4d5 | 6,820 | /*
* This file is generated by jOOQ.
*/
package com.talentfront.jooq.tables.records;
import com.talentfront.jooq.tables.UserImage;
import java.time.LocalDateTime;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record6;
import org.jooq.Row6;
import or... | 22.287582 | 151 | 0.552053 |
9ec819f0587401b641304647c6bdcb5b1a1b29c2 | 5,321 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uit.tkorg.cspublicationcrawler.dbaccess;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import uit.tkorg.cspublicationcrawler.utility.CSPubl... | 36.445205 | 116 | 0.555911 |
4c5fdaea5bf92c2984585f71fd7d956b0bac36e3 | 2,519 | package com.alibaba.tesla.appmanager.common.enums;
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode;
import com.alibaba.tesla.appmanager.common.exception.AppException;
import com.google.common.base.Enums;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* 组件类型 Enum
*
* @author qiuqi... | 19.083333 | 103 | 0.575625 |
0f3919ddf558624c8a660c59d2f590865bfcd5e3 | 565 | package org.tron.core.db.common.iterator;
import org.tron.core.capsule.BlockCapsule;
import org.tron.core.exception.BadItemException;
import java.util.Iterator;
import java.util.Map.Entry;
public class BlockIterator extends AbstractIterator<BlockCapsule> {
public BlockIterator(Iterator<Entry<byte[], byt... | 23.541667 | 68 | 0.693805 |
4f1809ef69605aec1d34e90d475127ad14215871 | 1,138 | /*
* Copyright (c) 2019-2021
* Mateusz Hermanowicz - All rights reserved.
* My Pantry
* https://www.mypantry.eu
*
* 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.or... | 27.095238 | 75 | 0.742531 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.