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 |
|---|---|---|---|---|---|
7f6d7a6d049a92d1c2dd2ee4d7ab23e2db702a94 | 915 | package com.schlimm.java7.nio;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousFileChannel;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
public class CallGraph_Defau... | 32.678571 | 102 | 0.785792 |
ab0863bbffcf3ef8de77409d0af1aa81d86c1b97 | 423 | package com.wayki.wallet.dialog;
import android.content.Context;
import android.support.annotation.NonNull;
public class ActiveDialog extends WalletDailog {
public ActiveDialog(@NonNull Context context, int theme, int layoutid) {
super(context, theme, layoutid);
}
@Override
public void initUI... | 21.15 | 76 | 0.687943 |
0e2be721a6e5c2027568008a9ebdfcaf6cc086af | 1,066 | package glitch.kraken.services.request;
import glitch.api.http.HttpClient;
import glitch.api.http.Routes;
import glitch.kraken.object.json.Team;
import glitch.kraken.object.json.collections.Teams;
import glitch.service.AbstractRequest;
import reactor.core.publisher.Mono;
public class TeamsRequest extends AbstractRequ... | 25.380952 | 64 | 0.65197 |
3951c08ad88392a708d882741baae88dee00fedb | 484 | package com.vidolima.doco.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation is applied to the entity class. Specifies that other ann... | 30.25 | 117 | 0.816116 |
76a24cf39678441076d564f5ff1ea7ec64d0a408 | 7,025 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 34.101942 | 88 | 0.606406 |
e69567e1528fa452ce3f184095698792b79d8138 | 1,458 | package base.service.impl;
import java.util.List;
import java.util.function.Predicate;
import base.data.Gender;
import base.data.Person;
import base.service.Task;
import base.service.util.PersonLambda;
public class ProcessPersons implements Task {
@Override
public void execute() throws Exception {
System.out... | 34.714286 | 115 | 0.64952 |
80a3910dd2e540ef7b96713322e0e6122ea848b8 | 5,696 | /**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... | 32.363636 | 110 | 0.614642 |
355a115babb88698c82c8b077e8285efc9092468 | 6,667 | package com.pushtorefresh.storio3.sqlite.operations.put;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.pushtorefresh.storio3.StorIOException;
import com.pushtorefresh.storio3.operations.PreparedOperation;
import com.pus... | 33.335 | 152 | 0.60987 |
dfe8501466fd3068b37cd5c0ec113c4ec434a60e | 471 | package com.geektcp.alpha.console.mps.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.geektcp.alpha.console.mps.model.entity.RolePermission;
/**
* <p>
* 角色权限表 服务类
* </p>
*/
public interface RolePermissionService extends IService<RolePermission> {
/**
* 更新角色权限
*
... | 19.625 | 73 | 0.677282 |
4af3e9607a8f6d9fab31f5aebe46ec89126cd5e6 | 966 | package com.kristijangeorgiev.softdelete.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.rest.webmvc.RepositoryRestController;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | 33.310345 | 75 | 0.833333 |
b119a40d1ebbd7a7a1eb165df22020a76fa9d09d | 158 | package models.shape;
// shapes
public abstract sealed class Shape permits Circle, Rectangle, Square {
public double getArea() {
return 0.0;
}
}
| 17.555556 | 70 | 0.689873 |
1045a2929c0975c61a00c6738a8b9804c7a464cf | 20,868 | /*
* 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 ... | 32.353488 | 103 | 0.690004 |
bfdddf0f8dd9566d84f4a75f6004cc530bcf52f8 | 1,047 | /*
* Copyright (C) 2015 Karumi.
*
* 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 w... | 31.727273 | 81 | 0.725883 |
33da2bb0bd5c735540097c86aa6d80a50252537f | 511 | package org.shkim.codility.sorting;
import java.util.HashSet;
/**
* https://codility.com/demo/results/trainingE437UV-PU6/ 41% not allow 0
* https://codility.com/demo/results/trainingB2WS6U-TKT/ 75% timeout
* last this code is 100 use hashset.
*
* @author parad
*
*/
public class Distinct
{
public static int s... | 16.483871 | 72 | 0.630137 |
a0cf071e81eb6efff61650b56eb2d1a7914a99aa | 2,615 | package ch.sebastianhaeni.semantic.web;
import org.apache.jena.query.*;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.util.FileManager;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
clas... | 31.890244 | 96 | 0.634417 |
8e28a9b0850311ddb6305d6fb31b0e9533d7e699 | 667 | package com.purgeteam.log.trace.service.a.demo;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
/**
* @author purgeyao
* @since 1.0
*/
@Slf4j
@Aspect... | 24.703704 | 92 | 0.70015 |
56b21719ae100babc2648492efa3b62a04b4696e | 1,402 | package com.bombo.cheatbot.images;
import com.bombo.cheatbot.CheatApplication;
import com.bombo.cheatbot.ScreenCapture;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import java.awt.*;
import java.awt.image.BufferedImage;
public class ImageAnalyze {
@Getter@Sett... | 28.04 | 148 | 0.686876 |
c74070bd5595f4a93209ad6da8b1241b02a03537 | 2,374 | import jgh.javagraph.geometry.voronoi.CircleEvent;
import jgh.javagraph.geometry.voronoi.TreeItem;
import jgh.javagraph.geometry.voronoi.Node2d;
import org.junit.Assert;
import org.junit.Test;
public class VoronoiTest {
@Test
public void CircleEventTest1(){
Node2d n1 = new Node2d(0, 10);
Node2... | 33.43662 | 95 | 0.625527 |
22bdab44c07fe51e60a19d984e2575ba879a1293 | 8,505 | package com.github.unidbg.hook.hookzz;
import com.github.unidbg.Emulator;
import com.github.unidbg.Family;
import com.github.unidbg.Svc;
import com.github.unidbg.Symbol;
import com.github.unidbg.arm.Arm64Svc;
import com.github.unidbg.arm.ArmSvc;
import com.github.unidbg.arm.context.RegisterContext;
import com.github.u... | 40.5 | 150 | 0.657496 |
60e9ee337a8fe8d483e9717c4493cb0b20597812 | 3,507 | /*
* Copyright 2014 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 applicabl... | 26.568182 | 90 | 0.659253 |
cb9f9643d0ca946771b92c97739dbabeae8af93c | 386 | package com.java3y.austin.pipeline;
import java.util.List;
/**
* 业务执行模板(把责任链的逻辑串起来)
* @author 3y
*/
public class ProcessTemplate {
private List<BusinessProcess> processList;
public List<BusinessProcess> getProcessList() {
return processList;
}
public void setProcessList(List<BusinessProce... | 20.315789 | 67 | 0.702073 |
5d68b780ffa24d920af6a8c5a1d76550d3426900 | 2,118 | package de.unioninvestment.eai.portal.portlet.crud.scripting.domain.container.database;
import com.vaadin.data.util.sqlcontainer.query.generator.filter.QueryBuilder;
import de.unioninvestment.eai.portal.portlet.crud.domain.model.DatabaseQueryContainer;
import de.unioninvestment.eai.portal.portlet.crud.domain.model.Tab... | 34.721311 | 131 | 0.694995 |
5e29ac1f5ec6c0470885bf1198c611c901ad107f | 4,209 | package com.ximalaya.ting.android.opensdk.model.banner;
import com.google.gson.annotations.SerializedName;
import com.ximalaya.ting.android.opensdk.datatrasfer.XimalayaResponse;
public class Banner extends XimalayaResponse
{
@SerializedName("album_id")
private long albumId;
@SerializedName("banner_content_typ... | 21.045 | 570 | 0.711333 |
82cc931daee001f3527c8d3c7bcdfd1cf54c040b | 2,479 | package org.apache.nifi.graphml.scripts;
import java.io.File;
import java.net.URL;
import java.util.Objects;
public class Bundle {
private final File workingDirectory;
private final BundleDescriptor bundleDescriptor;
private final BundleDescriptor dependencyDescriptor;
private final ClassLoader class... | 28.825581 | 86 | 0.672449 |
700cc558aea8b9498ca38e6041f11a8ce117279e | 2,127 | package org.jboss.resteasy.test.resource.patch;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.PATCH;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces... | 23.633333 | 111 | 0.661025 |
1c27ddd0cb185cd91f10b013e41b7a01ace4ad2a | 1,520 | package main.io;
import main.utils.Constants;
import java.io.File;
import java.io.PrintWriter;
import java.util.Scanner;
public class AuthFile {
private static File authFile = new File(Constants.CONFIG_FILE);
private static File authPath = new File(Constants.CONFIG_PATH);
private static Scanner sc = null... | 27.142857 | 88 | 0.568421 |
e463f601446248237d3c6de341af2f4001b67c36 | 961 | import java.util.Arrays;
import java.util.Scanner;
class Bubble {
public static void main(String [] args) {
Scanner in = new Scanner(System.in);
System.out.print("Length: ");
int length = in.nextInt();
int[] array = new int[length];
for (int i = 0; i < length; i++) {
... | 23.439024 | 69 | 0.443288 |
ce2eaf76af1015ae770e440a4f457e000d4bce1c | 63,259 | /*
* 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 calculations;
import java.awt.event.KeyEvent;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
impor... | 49.771046 | 163 | 0.642754 |
031c63fe168924074767447100b0ec4ea92f4403 | 2,887 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | 27.759615 | 75 | 0.701767 |
554240d1c72dc0c327b05b002999e47899e2341f | 1,323 | package controllers;
import models.ConnectionRequest;
import models.User;
import play.mvc.Controller;
import play.mvc.Result;
/**
* Created by lubuntu on 10/23/16.
*/
public class RequestController extends Controller {
public Result sendRequest(Long senderid, Long recieverid)
{
if(senderid==null || recieverid==... | 30.767442 | 112 | 0.62963 |
76d48b0a1e8042c77d69469204d55dbfa149ae8a | 3,108 | package net.sf.odinms.provider;
import java.awt.Point;
import java.awt.image.BufferedImage;
import net.sf.odinms.provider.wz.MapleDataType;
public class MapleDataTool {
private MapleDataTool() {
}
public static String getString(MapleData data) {
return ((String) data.getData());
}
public static String getSt... | 24.472441 | 74 | 0.685006 |
d79faca6a907d7a79fe27423afd37b22674076ee | 2,382 | /*
* Examples for Java
*
* Copyright (c) 2021. Elex. All Rights Reserved.
* https://www.elex-project.com/
*/
package kr.pe.elex.examples;
import com.elex_project.abraxas.Console;
import lombok.extern.slf4j.Slf4j;
import javax.sound.sampled.*;
import java.io.IOException;
import java.util.Objects;
@Slf4j
public ... | 29.775 | 102 | 0.690596 |
13464eb53e762c890ce23aa87fcfcc83da6512e8 | 9,904 | /*******************************************************************************
* Copyright 2000-2014 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.a... | 40.590164 | 129 | 0.712338 |
69baf10ab9cd68ba9566e1c3fdaba07cea99b614 | 398 | /**
* The scraping package contains all scraping code used by asvc.
* An overview of what is scraped per site is given in their respective files.
*
* @author dbarenholz
* @version 1.0
* @since 13
*
* @see com.dbarenholz.asvc.scraping.ForvoScraper
* @see com.dbarenholz.asvc.scraping.JishoScraper
* @see com.dba... | 30.615385 | 78 | 0.748744 |
a1dc27f6a2c95b8ec8a72c082f8e359324fe8bbc | 338 | package com.zhangyf.bidirectio.net.exception;
/**
* Created on 2018-03-09 09:33.
* App异常
*
* @author zyf
*/
public class AppException extends RuntimeException {
public int code;
public String msg;
public AppException(int code, String msg) {
super(msg);
this.code = code;
this.m... | 17.789474 | 52 | 0.627219 |
c671f42cdaaadf79c3018c0b4ee96921c5e0f7a3 | 6,020 | /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Copyright (c) 2019, Eldar Timraleev (aka CRaFT4ik).
+
+ 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
+
... | 20.47619 | 113 | 0.522425 |
6ec6092b63472043a9d5215fc69febb95a786279 | 7,795 | /*
* Copyright (C) 2017 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... | 42.82967 | 142 | 0.757152 |
912978eb0a32bf64ecd68f006a2dacfdab989b56 | 4,577 | package com.digistratum.microhost.RestServer;
import com.digistratum.microhost.RestServer.Controller.Controller;
import com.digistratum.microhost.Exception.MHException;
import com.digistratum.Config.Config;
import com.digistratum.microhost.RestServer.Controller.ControllerBaseMicroHostImpl;
import com.digistratum.micro... | 32.460993 | 115 | 0.735853 |
261a0d698dc68097efa663be00acba5d065c6ec4 | 1,973 | package android.os;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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... | 28.185714 | 105 | 0.714648 |
231a0d45340edfb950c510f0306df85f8dc92905 | 2,044 | /*
* 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.employees.utils;
import java.util.prefs.Preferences;
import javafx.beans.property.IntegerProperty;
import javafx.... | 28.788732 | 80 | 0.650685 |
7497862c5ec13093c1f76a71f2245c3f0c319567 | 2,169 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 32.863636 | 149 | 0.733057 |
0d13e0b0ec7b1afbc1c59c9ecbc7456fc82c3095 | 3,277 | package com.nitkarsh.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import an... | 34.861702 | 128 | 0.647543 |
7cadfedd6ea285e1ebfab7c57c8ca6d02d0178ef | 918 | package com.gildedrose.test;
public class ItemBackstagePasses extends Item implements IStrategy {
public ItemBackstagePasses(String name, int sellIn, int quality) {
super(name, sellIn, quality);
}
public void updateQuality() {
if (this.sellIn <= Constants.LIMIT.EXPIRED.day) {
... | 32.785714 | 70 | 0.64488 |
050e71f3a3ef76d07fa560da9ea30422a58822eb | 1,000 | package com.megait.mymall.service;
import com.megait.mymall.domain.Member;
import lombok.RequiredArgsConstructor;
import org.springframework.mail.MailSender;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional... | 30.30303 | 78 | 0.721 |
61133fc122baf0dede28c66e2c4de8e80087402a | 1,449 |
package com.universign.javaclient.signature;
/**
* Describes a requester of a transaction.
* InitiatorInfo is used as a return value only.
*
*/
public class InitiatorInfo
{
private String email;
private String firstname;
private String lastname;
/**
* The InitiatorInfo Constructor.
*/
InitiatorInfo()
{... | 16.280899 | 52 | 0.674948 |
cf444316b62ce332145a32c522ebf1fe24bb0d17 | 1,439 | package me.zhehua.uilibrary.range;
import android.content.Context;
import android.support.annotation.ColorInt;
import android.text.SpannableString;
import android.text.Spanned;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Created by Zhehua on 2016/10/27.
*/
public class RangedTextView ex... | 25.696429 | 84 | 0.694927 |
2f8c002fe540d9a95eda845bb56913bdb59f2a60 | 2,065 | package com.excilys.db.page;
import java.util.List;
import java.util.Scanner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.excilys.db.exception.CompaniesInexistantException;
import com.excilys.db.model.Computer;
import com.excilys.db.servi... | 22.944444 | 89 | 0.59322 |
8e84f10ae6a28ad67bfa129c4a41de47bc33e9c3 | 6,082 | /**
* "First, solve the problem. Then, write the code. -John Johnson"
* "Or use Vangav M"
* www.vangav.com
* */
/**
* MIT License
*
* Copyright (c) 2016 Vangav
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... | 31.512953 | 79 | 0.706018 |
7de7442efaf6e7ece0bc2816e0a1b2282a2e4064 | 4,142 | /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 34.231405 | 78 | 0.56929 |
b49eee62d53f61be499b7f3c33ed711811116ec5 | 346 | package com.akash.showoffapp.modules.jobs;
import com.akash.showoffapp.base.BasePresenter;
import com.akash.showoffapp.modules.jobs.view.IJobsView;
public class JobsPresenter extends BasePresenter<IJobsView> {
@Override
protected void setupDataObservers() {
}
@Override
protected void createViewS... | 20.352941 | 61 | 0.754335 |
c7811ecae70c202f736f4f665139d249ae2834cf | 3,524 | package it.unive.golisa.cfg.expression.literal;
import it.unive.golisa.cfg.statement.assignment.GoShortVariableDeclaration.NumericalTyper;
import it.unive.golisa.cfg.type.composite.GoTypesTuple;
import it.unive.golisa.cfg.type.numeric.signed.GoIntType;
import it.unive.lisa.analysis.AbstractState;
import it.unive.lisa.... | 41.458824 | 111 | 0.764472 |
60f831593607010facdfa40f4e915342198e6653 | 3,469 | /*
* Copyright 2019 YugaByte, Inc. and Contributors
*
* Licensed under the Polyform Free Trial License 1.0.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://github.com/YugaByte/yugabyte-db/blob/master/licenses/POLYFORM-FREE-... | 33.679612 | 100 | 0.715768 |
5f696498d2996bd5cee5fbfbcb620081cd1f8a9f | 385 | package com.ullink.slack.simpleslackapi.events;
import com.ullink.slack.simpleslackapi.SlackChannel;
import lombok.Data;
@Data
public class SlackChannelRenamed implements SlackEvent {
private final SlackChannel slackChannel;
private final String newName;
@Override
public SlackEventType getEventType()... | 22.647059 | 56 | 0.776623 |
86b1e14238ebcdeef13f8a630090800fd9cfe19c | 2,229 | /*
Copyright 2001 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | 28.21519 | 75 | 0.676537 |
8459d0491073f934a5f5e10d5604c77fcbf08205 | 1,172 | package com.bumptech.glide.supportapp.stackoverflow._35107329_rounded_drawable;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.v4.graphics.drawable.*;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.Resource;
import com.bumptech.glide.load.engine.bitmap_r... | 36.625 | 105 | 0.80802 |
f1e71e76197f8c4a085e48389fd0e76819edbef9 | 1,459 | package com.education.common;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
/**
* @Author: haojie
* @qq :1422471205
* @CreateTime: 2021-07-29-09-27
*/
@Data
public class Result {
/**
* 是否成功
*/
private Boolean success;
/**
* 返回码
*/
private Integer code;
... | 18.705128 | 69 | 0.580535 |
6c250aac81ffb17815229022808b60194e37a8a1 | 524 | /*
* Copyright (C) Byte-Store.DE, Inc - All Rights Reserved
*
* Unauthorized copying of this file, via any medium is strictly prohibited.
*/
package de.packet.mailbox.core;
import net.dv8tion.jda.api.entities.User;
import java.util.ArrayList;
public class CacheHandler {
public static String TOKEN = "YOUR_TO... | 26.2 | 76 | 0.736641 |
6471c4f3dc70a45a5048e5b2fc2950df33c04128 | 958 | package tools.balok;
import balok.causality.AccessMode;
import balok.causality.Epoch;
import balok.causality.Event;
public class ExclusiveState implements BalokShadowLocation {
private Event<Epoch> event;
private AccessMode mode;
private final int lastTid;
public ExclusiveState(Event<Epoch> event,... | 19.55102 | 77 | 0.604384 |
6f0b2a57a3c180ac7b5574bf298f1fc75f061720 | 895 | package net.consensys.eventeum.config;
import net.consensys.eventeum.annotation.ConditionalOnRocketRequired;
import net.consensys.eventeum.dto.message.EventeumMessage;
import net.consensys.eventeum.integration.RocketSettings;
import net.consensys.eventeum.utils.RocketTemplate;
import org.springframework.beans.factory.... | 31.964286 | 77 | 0.805587 |
5d9c04a9b1d64aefa155aaa08be95707ba441e96 | 164 | package com.benefire.framework.repository.query;
/**
* @param <T> the domain type the repository manages
* @author jiang
*/
public interface Repository<T> {
}
| 16.4 | 52 | 0.719512 |
987962478b0110f78d47a28984d7a918fc3f4360 | 21,823 | package kbasesearchengine.test.parse;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;... | 39.320721 | 161 | 0.640379 |
10edb990e8a51f465657c165ce0566169318a7a1 | 5,256 | package com.adshow.ad.entity;
import java.util.Date;
import com.adshow.core.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;... | 21.365854 | 70 | 0.60293 |
4442aaddf94f2519e51a79a80d1d9126e4c73aa3 | 4,450 | package org.jax.phenopacketgenerator.model;
import com.google.common.collect.ImmutableList;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* A POJO class that contains all of the data we need to export a Phenopacket
*... | 26.646707 | 95 | 0.634382 |
b4b2950a0f311b17ae0ae0ecf4331b2f0c635d56 | 2,895 | /**
* Copyright (c) 2008-2010 Andrey Somov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 41.357143 | 110 | 0.671848 |
3f81384f1c03e37296553308ca0dc8af937fa5f9 | 513 | package interpreter.bytecode;
import interpreter.VirtualMachine;
public class FalseBranchCode extends JumpCode {
private String label;
public void init(String a, String b) {
label = a;
}
public void execute(VirtualMachine vm) {
if (vm.popStack() == 0) {
vm.programCounter... | 20.52 | 47 | 0.602339 |
882934bc13614f37e5be601465c841f4d3021457 | 9,993 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 35.18662 | 111 | 0.520064 |
4827b2c4a22f5b463f13f8ff32964580f730db89 | 2,110 | package com.mina_mikhail.fixed_solutions_task.di.module;
import com.mina_mikhail.fixed_solutions_task.BuildConfig;
import dagger.Module;
import dagger.Provides;
import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;... | 29.305556 | 101 | 0.697156 |
4c512931f85902f7d907a1f2589ff8f97c961100 | 2,084 | package org.funnycoin.transactions;
import org.funnycoin.wallet.SignageUtils;
import java.security.*;
import java.security.spec.EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.util.Base64;
import static java.nio.charset.StandardCharsets.UTF_8;
public class Transaction {
String ownerKe... | 27.786667 | 105 | 0.636276 |
d47bcd63d8038d81deb0d0c3486f6a8561ff5b08 | 3,225 | /*
*
*/
package net.community.chest.spring.test.listener;
import java.io.IOException;
import java.util.Set;
import javax.annotation.Resource;
import net.community.chest.io.EOLStyle;
import org.hibernate.HibernateException;
import org.hibernate.event.DeleteEvent;
import org.hibernate.event.def.DefaultDeleteEventLi... | 28.794643 | 119 | 0.611783 |
012f469250bc6278d8af5c06819b4aa616964b89 | 27,193 | /*
* This file is part of ReplayStudio, licensed under the MIT License (MIT).
* It is partially derived from MCProtocolLib <https://github.com/ReplayMod/MCProtocolLib>, under the same license.
*
* Copyright (c) 2020 johni0702 <https://github.com/johni0702>
* Copyright (c) ReplayStudio contributors (see git)
* Cop... | 37.455923 | 233 | 0.543154 |
ddf5aa793ee766742f2e890e69a5c9df96e62103 | 5,788 | /**
* Copyright 2015 Daniel Götten
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or... | 31.977901 | 117 | 0.691776 |
38273c1a6696d0a30e3304b0a53ef5fc0353456e | 657 | package picard.util;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
public class MiscTest {
@Test
public void canWri... | 24.333333 | 89 | 0.712329 |
6dedd90bcf09ca212a07da0c601d2cdd8ec00003 | 694 | package leetCode;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import org.testng.annotations.Test;
public class LeetCode202Test {
@Test
public void isHappy() {
LeetCode202 l = new LeetCode202();
assertTrue(l.isHappy(1));
assertTrue(l.isHappy(7));
asser... | 23.931034 | 44 | 0.685879 |
caf72def8ff6b9d007344f693cccd3f3404d0962 | 2,041 | package com.eltechs.axs.xconnectors.epoll.impl;
import com.eltechs.axs.annotations.UsedByNativeCode;
import com.eltechs.axs.helpers.Assert;
import com.eltechs.axs.xconnectors.impl.SocketReader;
import com.eltechs.axs.xconnectors.impl.SocketWriter;
import java.io.IOException;
import java.nio.ByteBuffer;
public class S... | 31.890625 | 129 | 0.656541 |
ce3951bcd8a55101121f3ff5e764fd814f2d2734 | 872 | package com.yueny.fw.practice.design.single;
import java.lang.reflect.Constructor;
/**
* @Author yueny09 <deep_blue_yang@126.com>
* @Date 2019-11-25 10:36
*/
public class LazyHolderTest {
public static void main(String[] args) {
try{
// 第一次。 因为没有被初始化过,所以允许初始化了
Object object = La... | 26.424242 | 63 | 0.582569 |
226e928e768b7958895e750accda1e5b293c71b4 | 1,097 | /*
* Java
*
* Copyright 2014 IS2T. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found at http://www.is2t.com/open-source-bsd-license/.
*/
package com.is2t.transition;
import ej.flow.mwt.MWTFlowManager;
import ej.flow.mwt.TransitionManager;
/**
* Defines a vertica... | 28.128205 | 128 | 0.727438 |
9f1a0aefb61c756ed056b0948a184acc07c05004 | 810 | package org.sb.libevl;
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class JsonHelper
{
public static String json(String name, Object val)
{
return quote(name) + " : " + quote(String.valueOf(val));
}
public static String obj(String... pair... | 23.823529 | 94 | 0.580247 |
71eb45d0981900b963728b1e74339f700d060f0c | 589 | package ru.stqa.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.Test;
public class GroupDeletionTests extends TestBase {
@Test
public void testGroupDeletion() {
app.getNavigationHelper().gotoGroupPage();
int before = app.getGroupHelper().getGroupCount();
... | 25.608696 | 58 | 0.689304 |
76d4ed89c47aa1cf6954461b471c7d4145597845 | 3,889 | // Copyright 2009-2022 Information & Computational Sciences, JHI. All rights
// reserved. Use is subject to the accompanying licence terms.
package jhi.curlywhirly.gui;
import scri.commons.gui.*;
import javax.swing.*;
import java.awt.event.*;
public class Actions
{
private final WinMain winMain;
pu... | 23.858896 | 104 | 0.683209 |
19b32ed1ea03a52877984fe976b77cd15eaf2db9 | 1,306 | /**
* Copyright (c) 2008 Perforce Software. All rights reserved.
*/
package com.perforce.team.ui.labels;
import org.eclipse.swt.widgets.Table;
import com.perforce.team.core.p4java.IP4Label;
import com.perforce.team.ui.BaseTableSorter;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
public class LabelSort... | 28.391304 | 75 | 0.618683 |
28cf992f2584dbd770bd96bb9e9966f487e06e44 | 306 | package com.jackie.wowjava.design.pattern.proxy.staticproxy;
/**
* @Author: Jackie
* @Date: 2018/10/10
*/
public class StaticProxyDemo {
public static void main(String[] args) {
User user = new RealUser();
User proxyUser = new ProxyUser(user);
proxyUser.request();
}
}
| 20.4 | 60 | 0.640523 |
71f47e91ee873bd35330c0797a05e96f454deaa9 | 3,900 | // Copyright 2015-2021 Nkisi 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... | 28.467153 | 94 | 0.688974 |
4d640b7614ed8d01b541533389d50d3966231202 | 252 | package com.griddynamics.msd365fp.manualreview.queues.model;
import lombok.Data;
@Data
public class NameApiResponse {
private DisposabilityStatus disposable;
public enum DisposabilityStatus {
YES,
NO,
UNKNOWN
}
}
| 16.8 | 60 | 0.698413 |
83b36a9e2eca2781c0f1095010efcae994cd5ac4 | 6,180 | package com.axway.apim.apiimport.actions.tasks;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.Closeable... | 43.829787 | 146 | 0.728479 |
d1816e5aa26d4659c27da631e5197d7b247f55b3 | 2,051 | package com.nuclearfurnace.oscilloscope.discovery;
public class ClusterInstance {
public enum Status {
UP, DOWN
}
private final String hostname;
private final int port;
private final String cluster;
private final Status status;
public ClusterInstance(String hostname, int port, Str... | 25.6375 | 96 | 0.548025 |
23563421f88e92138c42b7ec245524ebc5b2c7fa | 331 | package pa.edu.uip;
public class Vector1 implements Vectores {
@Override
public double[] sumar(int[] vectores) {
return new double[0];
}
@Override
public double[] restar(int[] vectores) {
return new double[0];
}
@Override
public double productoPunto() {
return ... | 17.421053 | 44 | 0.592145 |
8cefcfe345a6d542cab130404ce354e794965960 | 1,172 | package net.andreho.haxxor.spi.impl.visitors;
import net.andreho.asm.org.objectweb.asm.MethodVisitor;
import net.andreho.haxxor.Hx;
import net.andreho.haxxor.api.HxLazyType;
import net.andreho.haxxor.api.HxMethod;
import net.andreho.haxxor.api.HxType;
import net.andreho.haxxor.cgen.impl.AsmExecutableMethodVisitor;
im... | 29.3 | 96 | 0.681741 |
3f0fa55138ad3df3bfaef3fe3c41437cc7d9a9a6 | 11,929 | package lk.dinuka.translate;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Co... | 43.695971 | 175 | 0.657641 |
9566c09f8392310f858b873868f52a6707564701 | 1,780 | package models;
import java.util.ArrayList;
import java.util.List;
import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;
import com.et.ar.exception.ActiveRecordException;
@Table(name="intercourseTypes")
public class IntercourseTyp... | 21.707317 | 93 | 0.692135 |
bbffb3c3da015a71e9930bb8c4898a0695f7ee41 | 12,246 | package org.knowm.xchange.lgo;
import static org.assertj.core.api.Assertions.assertThat;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.net.URISyntaxException;
im... | 35.912023 | 100 | 0.65352 |
c411fb159631a68eb390d223dde6b9fcc83c2be6 | 725 | package org.medimob.orm.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Index definition.
*/
@Documented
@Target(value = {ElementType.FIELD, Elem... | 19.594595 | 54 | 0.684138 |
00f375511fc3f9602f5b1997652de6af17555cf1 | 3,409 | package org.mpilone.hazelcastmq.example.jms;
import static java.util.Arrays.asList;
import javax.jms.*;
import org.mpilone.hazelcastmq.core.HazelcastMQ;
import org.mpilone.hazelcastmq.core.HazelcastMQConfig;
import org.mpilone.hazelcastmq.core.HazelcastMQInstance;
import org.mpilone.hazelcastmq.example.Assert;
impor... | 32.778846 | 94 | 0.743326 |
86d71d072c79243553b4228fff2fb4df01402f98 | 5,880 | /*
* Copyright 2017 Axway Software
*
* 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... | 36.07362 | 149 | 0.616667 |
a487b6cb6478afa67fb1dfdf6911087786794c91 | 5,397 | /*
* Copyright 2000-2013 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... | 37.479167 | 140 | 0.761719 |
2f7645012d41222aa3d6afcf27f203d1ec36e047 | 373 | package io.spring.dataflow.sample.usagedetailsenderkafka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class UsageDetailSenderKafkaApplication {
public static void main(String[] args) {
SpringApplication.run(U... | 26.642857 | 71 | 0.844504 |
ce953df926d59d86a57ebea431f4a524fb5841d5 | 2,452 | package ru.swayfarer.swl2.resource.rlink.types;
import java.net.JarURLConnection;
import java.net.URL;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import ru.swayfarer.swl2.collections.CollectionsSWL;
import ru.swayfarer.swl2.collections.extended.IExtendedList;
import ru.... | 25.541667 | 131 | 0.674959 |
8bccbf29502894ad60cdd434df8e70ef2ca85c93 | 1,674 | package mage.cards.s;
import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
import mage.abilities.keyword.EncoreAbility;
import mage.cards.CardImpl;
import mage.cards.Card... | 30.436364 | 118 | 0.70908 |
fe15ab6c4536788b36ab57c4f37518983982cef6 | 6,981 | /**
* Copyright 2017-2020 Philip Helger, pgcc@helger.com
*
* Copyright 2011 Google Inc. All Rights Reserved.
* Author: sreeni@google.com (Sreeni Viswanadha)
*
* Copyright (c) 2006, Sun Microsystems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificati... | 27.484252 | 88 | 0.7158 |
c8ccca8ecb8fcea7ec840d49e12059142d72b4f5 | 1,057 | package pinacolada.stances.pcl;
import com.badlogic.gdx.graphics.Color;
import pinacolada.cards.base.PCLAffinity;
import pinacolada.powers.affinity.EndurancePower;
import pinacolada.stances.PCLStance;
import pinacolada.stances.PCLStanceHelper;
import pinacolada.utilities.PCLGameUtilities;
public class EnduranceStance... | 24.581395 | 79 | 0.701987 |
251689718ad83ac95fded11de882269f4e46d660 | 36 | //class
final class Comparable<T> {} | 18 | 28 | 0.722222 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.