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 |
|---|---|---|---|---|---|
4c9060158c0c473dfc88ce995b601a524611109d | 54,955 | /*
* 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 office_man_system;
import java.awt.Color;
import java.awt.Toolkit;
import java.awt.event.WindowEvent;
import java.sql.*;
impor... | 41.950382 | 179 | 0.582258 |
93fe975f0ddc9a4f6fe81ad1e8808c17afb615bf | 688 | package com.itjing.pool;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 线程池
*/
public class TestPool {
public static void main(String[] args) {
//1.创建服务,创建线程池
//newFixedThreadPool 参数为:线程池大小
ExecutorService service = Executors.newFixedThreadPool... | 22.933333 | 67 | 0.643895 |
38d1af615c5706b2067a20d129d8b58d336800d3 | 363 | package com.google.android.gms.common;
import java.util.Arrays;
final class zzf extends zze {
private final byte[] zzu;
zzf(byte[] bArr) {
super(Arrays.copyOfRange(bArr, 0, 25));
this.zzu = bArr;
}
/* access modifiers changed from: 0000 */
public final byte[] getByte... | 20.166667 | 48 | 0.581267 |
d3bc5e0b1b4bc315a80b2195cb578d384feb6715 | 7,732 | package info.u250.c2d.box2deditor.ui.controls;
import info.u250.c2d.box2d.model.b2BodyDefModel;
import info.u250.c2d.box2d.model.b2FixtureDefModel;
import info.u250.c2d.box2d.model.b2JointDefModel;
import info.u250.c2d.box2d.model.fixture.b2CircleFixtureDefModel;
import info.u250.c2d.box2d.model.fixture.b2RectangleFix... | 40.270833 | 155 | 0.636963 |
314e173946cdacd5580368fe3d784300adfeda5c | 8,082 | package ar.com.system.afip.wsaa.business.impl;
import ar.com.system.afip.wsaa.business.api.Service;
import ar.com.system.afip.wsaa.business.api.WsaaManager;
import ar.com.system.afip.wsaa.business.api.XmlConverter;
import ar.com.system.afip.wsaa.data.api.CompanyInfo;
import ar.com.system.afip.wsaa.data.api.SetupDao;
i... | 40.009901 | 91 | 0.623855 |
8da6a9dee00a0de3581c4afaccc4bf4abcf2b4bd | 2,812 | package net.minecraft.client.renderer.entity;
import com.mojang.blaze3d.matrix.MatrixStack;
import java.util.Random;
import net.minecraft.block.BlockRenderType;
import net.minecraft.block.BlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecra... | 53.056604 | 293 | 0.758179 |
225c37c32b134bbeb207fa784cd30c464ce8974b | 5,216 | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... | 36.732394 | 112 | 0.738689 |
36e5c40b57ba3246c577df8e54c60b46be051ee0 | 963 |
package ExerciciosEstruturaCondicional;
import java.util.Scanner;
public class FormuladeBhaskara03 {
public static void main (String[] args) {
double a, b, c;
Scanner scan = new Scanner(System.in);
System.out.println("Informe o valor de A, B, C: ");
a = scan... | 26.75 | 100 | 0.498442 |
d34315ecaad412b2b4c437feaeda1a3e257199c1 | 21,092 | package p002b.p003c.p062h.p070f;
import android.support.p001v7.widget.RecyclerView.C0970a;
import android.support.v7.util.DiffUtil.Range;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
/* renamed from: b.c.h.f.d */
/* compiled fro... | 37.731664 | 195 | 0.440309 |
0cd3a43f60e9af61c7c3231b7ffcb75b594c538a | 2,852 | /*
* 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 ... | 50.035088 | 165 | 0.782258 |
90d606b173926a76b70b6cd73499ac3f4425a579 | 29,575 | /*
* Copyright 2010-2020 Alfresco Software, 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 ... | 54.266055 | 174 | 0.56825 |
a7fd13d56eba357cb5744a0f03c4d026b2975d47 | 142 | package com.example.orders.services;
import com.example.orders.models.Order;
public interface OrderService
{
Order save(Order order);
}
| 15.777778 | 39 | 0.774648 |
54448e79312c420830fbb3f52bafaa14ecbff188 | 11,196 | package io.reflectoring.coderadar.rest.query;
import io.reflectoring.coderadar.analyzer.port.driver.StartAnalyzingCommand;
import io.reflectoring.coderadar.projectadministration.domain.InclusionType;
import io.reflectoring.coderadar.projectadministration.port.driver.analyzerconfig.create.CreateAnalyzerConfigurationCom... | 58.3125 | 159 | 0.734727 |
e368893190170f82d38c582ba27c12dc343040d0 | 9,084 | /*
* Copyright 2016 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... | 36.191235 | 91 | 0.534346 |
102e360dc29f6f824b14a4abb506efecb0678fe2 | 1,120 | package org.health.service;
import java.util.*;
import org.health.entity.*;
public interface MedicalCareService {
/**
* method required for adding medical care
*
* @param medicalCare - medical care for adding
* @return created medical care
*/
MedicalCare addMedicalCare(MedicalCare me... | 23.829787 | 59 | 0.645536 |
4deef01a9c5f2c467c1dbaedb901f579a3772dc0 | 5,708 |
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.bu... | 26.924528 | 182 | 0.625788 |
354ffd27245dd24561c7448b6ec5ec4247872fa0 | 848 | package com.github.sylphlike.framework.utils.excel;
import java.io.Serializable;
/**
* <p> time 17:56 2018/12/29 星期五 </p>
* <p> email 15923508369@163.com </P>
* @author Gopal.pan
* @version 1.0.0
*/
public class ExcelException extends RuntimeException implements Serializable {
private static final... | 22.315789 | 115 | 0.691038 |
a0cafa1a2b5db9fbeff3878c67b6c07f021e1d0e | 6,519 | package com.project.web.proxysale;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.project.bean.proxysale.PriceDetailQuery;
import com.project.bean.vo.AjaxResult;
import com.project.common.Constants;
import com.project.core.orm.Page;
import com.project.entity.proxysale.ProxyInn;
im... | 36.016575 | 137 | 0.65056 |
28acf3f2e85fd07997111e2b7a0b4d96ae669bf4 | 344 | /**
*
*/
package com.dev.appx.sns.tools;
import spark.ResponseTransformer;
import com.google.gson.Gson;
/**
* @author nthusitha
*
*/
public class JSONUtil {
public static String toJson(Object obj) {
return obj != null ? new Gson().toJson(obj) : "{}";
}
public static ResponseTransformer json() {
return... | 14.333333 | 53 | 0.665698 |
a0cbb9dcc149490ae2b91d8b8857042f370ef1a2 | 1,253 | package michael.hackerrank.string;
import java.util.Scanner;
public class StringSimilarity {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner in = new Scanner(System.in);
i... | 28.477273 | 120 | 0.466879 |
a7debbfc8c8ebcbbfcd0f6d8c50ab3880e83cb7d | 2,814 | package com.rmv.oop.task9;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.concurrent.Phaser;
@SpringBootApplication
public class Main implements CommandLineRunner {
public... | 37.026316 | 104 | 0.638237 |
17485c94b43bb31840e990f89f25f865b19f67df | 207 | package com.ziningmei.mybatis.exception;
public class ExceptionFactory {
public static RuntimeException wrapException(String msg, Exception e) {
return new PersistenceException(msg,e);
}
}
| 23 | 75 | 0.748792 |
4f9e80f3a4a7e58e6f4a011314883ada3b412f38 | 483 | package com.muhlenxi.dao;
import java.util.List;
import com.muhlenxi.domain.QueryObject;
import com.muhlenxi.domain.Student;
public interface IStudentDao {
List<Student> findAll();
void saveStudent(Student student);
void deleteStudent(int id);
void updateStudent(Student student);
Student findS... | 20.125 | 65 | 0.745342 |
41797b9b5fcd8a8b19db8ea07af65cc01dc6fef2 | 2,568 | package com.intellij.cvsSupport2;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* author: lesya
*/
public class RcsDiffErrorTest extends CvsTestsWorkingWithImportedProject{
private List myLines = new ArrayList();
private static final String ANOTHER_LINE_SEPARATOR = "\r";
@... | 24.932039 | 87 | 0.673676 |
d9a5b29f9111f0eb3f59c50ddae2d0b2c657c479 | 567 | package com.rmh.guitar.bestposition.domain.request;
import com.rmh.guitar.bestposition.domain.request.options.FretboardSettings;
import com.rmh.guitar.bestposition.domain.request.options.SearchOptions;
import com.rmh.guitar.bestposition.domain.request.options.WeightOptions;
import lombok.AllArgsConstructor;
import lom... | 28.35 | 76 | 0.839506 |
c29dae5fe7977539a35380dc56a843111bc57636 | 2,692 | package io.github.task.quartz;
import com.alibaba.fastjson.JSON;
import io.github.entity.SysTaskEntity;
import io.github.entity.enums.TaskCallbackTypeEnum;
import io.github.frame.prj.constant.SysModuleConst;
import io.github.service.SysTaskService;
import io.github.util.spring.SpringContextUtils;
import lombok.extern.... | 30.247191 | 122 | 0.600297 |
e378149883de13ae6df1f580ca2b18f3304e0430 | 405 | package io.hyperfoil.core.builder;
import org.junit.Test;
import io.hyperfoil.core.handlers.RangeStatusValidator;
import io.hyperfoil.core.steps.HttpRequestStep;
public class LambdaCopyTest {
@Test
public void test() {
HttpRequestStep.Builder builder = new HttpRequestStep.Builder()
.handler()... | 25.3125 | 77 | 0.728395 |
ffc22bbe12a2746684e61355d45ef5781e8eb3b5 | 774 | /*
* @lc app=leetcode id=970 lang=java
*
* [970] Powerful Integers
*/
// @lc code=start
class Solution {
public List<Integer> powerfulIntegers(int x, int y, int bound) {
HashSet<Integer> h = new HashSet();
List<Integer> l = new LinkedList<Integer>();
int bx = 1;
while (bx <= bou... | 22.114286 | 68 | 0.366925 |
171c346a442aa663675e7462e82008bf0fac5a07 | 1,610 | package com.apress.springbootrecipes.order.web;
import java.math.BigDecimal;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.boot.test.mock.mockito.SpyBean;
import ... | 32.857143 | 76 | 0.658385 |
218931b4950c5d5b5a25420aad1a7ee5dd73d4e4 | 815 | package org.janelia.jacs2.asyncservice;
import org.janelia.jacs2.asyncservice.common.ServiceProcessor;
import org.janelia.model.service.JacsServiceData;
import org.janelia.model.service.JacsServiceState;
import java.util.List;
public interface JacsServiceEngine {
void setProcessingSlotsCount(int nProcessingSlots... | 40.75 | 118 | 0.82454 |
f4fcea6ce5ad687ef420854c7635192356a46c4e | 213 | package edu.prahlad.patterns2.structural.facade;
public class Main {
public static void main(String[] args) {
var service = new NotificationService();
service.send("hello", "target");
}
}
| 23.666667 | 48 | 0.661972 |
b8574ef4ba9426c1505b04a041a6a9a64d3cc66a | 3,889 | package com.ibm.safr.we.model.utilities;
/*
* Copyright Contributors to the GenevaERS Project. SPDX-License-Identifier: Apache-2.0 (c) Copyright IBM Corporation 2008.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | 41.37234 | 124 | 0.644639 |
9532ac692396c3dd78ec882b930718e93f0ed5b8 | 937 | package code401challenges.utilities;
import code401challenges.tree.Node;
import code401challenges.tree.Tree;
public class FizzBuzzTree extends Tree{
public FizzBuzzTree(){
super();
}
public void fizzBuzzOnNode(Node<Object> current){
if(current != null) {
if((int)current.getDa... | 25.324324 | 83 | 0.557097 |
5c40ea9d1a51449e42d269adbe4e7d3320131217 | 5,674 | /**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INSTIT... | 28.512563 | 130 | 0.59288 |
7e1339c8dc7986fc27c4638aa858a495032f24f0 | 1,066 | package async.net;
import java.io.IOException;
import async.net.callback.ExceptionCallback;
import async.net.callback.IOCallback;
/**
* Used to start ASync callback to console.
*
* <pre>
* <!--Code start[doc.JavaDocExample1.aSyncConsol] [2897DEF2DC1FB0B799E04C82F92A53F6]-->
* ASyncConsol console = new ASync(... | 24.227273 | 88 | 0.669794 |
6a493f9d95abacaa063ac56a4f8a3bd13f5d69f4 | 7,462 |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | 32.585153 | 77 | 0.592871 |
870c612ddc7fb1747ba7ed8322477497969c739f | 508 | package mobi.chouette.exchange.importer.updater;
import java.util.Comparator;
import mobi.chouette.model.ChouetteIdentifiedObject;
public class NeptuneIdentifiedObjectComparator implements
Comparator<ChouetteIdentifiedObject> {
public static final Comparator<ChouetteIdentifiedObject> INSTANCE = new NeptuneIdentif... | 29.882353 | 109 | 0.832677 |
dec5958f45aeeece863d8409da1b9b47d36a4d38 | 322 | package tech.valery.partnersrestservices.services;
import tech.valery.partnersrestservices.model.PartnerMapping;
import java.util.Optional;
public interface PartnerMappingService {
Optional<PartnerMapping> findById(Long aLong);
<S extends PartnerMapping> S save(S entity);
void deleteById(Long aLong);
... | 21.466667 | 61 | 0.78882 |
b2e8c6eca6700479a96a80409c1e198267a4c0c6 | 3,117 | package ru.barsk.view;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import ru.barsk.moc.Coordinates;
import ru.barsk.moc.MainActivity;
import ru.barsk.moc.Player;
im... | 36.244186 | 194 | 0.760346 |
3d6fab60a6fb0f83210f2004d3a23c7f052b20cd | 423 | package br.com.objectos.css.keyword;
import br.com.objectos.code.annotations.Generated;
import br.com.objectos.css.type.FontFamilyValue;
@Generated("br.com.objectos.css.boot.CssBoot")
public final class MonospaceKeyword extends StandardKeyword implements FontFamilyValue {
static final MonospaceKeyword INSTANCE = n... | 28.2 | 88 | 0.78487 |
dd3f00192e1676c9e17664ad42fd7e639ac06d55 | 333 | package com.github.mkopylec.rpggame.domain.items;
import com.github.mkopylec.ddd.buildingblocks.Repository;
import java.util.UUID;
@Repository
public interface ItemRepository {
void save(Item item);
HealingPotion findOneHealingPotion(UUID potionId);
Sword findOneSword(UUID swordId);
void delete(I... | 18.5 | 57 | 0.768769 |
bc6e2b2b3c29b7719379b5f544aab9bfadb57029 | 2,574 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 25.485149 | 111 | 0.60373 |
5bb6de38e76722a43c059a650bb832b1014bf9d3 | 370 | package com.mempoolexplorer.txmempool.services;
import com.mempoolexplorer.txmempool.controllers.entities.RecalculateAllStatsResult;
import com.mempoolexplorer.txmempool.entites.IgnoringBlock;
public interface StatisticsService {
RecalculateAllStatsResult recalculateAllStats();
void saveStatisticsToDB(IgnoringBlo... | 30.833333 | 84 | 0.87027 |
fca62fc9bc3ac674f70add0f0d9e9b80a1716801 | 297 | package com.hly.march.exception;
import org.apache.shiro.subject.Subject;
public class MyForbiddenException extends SysException {
private Subject subject;
public MyForbiddenException(String msg, Subject subject) {
super("你的账户已被封禁:"+msg);
this.subject = subject;
}
}
| 24.75 | 62 | 0.723906 |
2c10c795752e39abe867ba808fd26284b125bb1a | 7,347 | package org.kie.maven.plugin;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Dependency;
import org.apache.maven.project.MavenProject;
import org.appformer.maven.support.AFReleaseId;
import org.appformer.mav... | 48.019608 | 96 | 0.705186 |
b8e12caf769e5548ba6fcbf7506662f7a6ab677e | 5,995 | /* RSASignatureFactory.java -- A Factory class to instantiate RSA Signatures
Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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 Soft... | 33.870056 | 79 | 0.699917 |
2932b66146f1d6f5a3a3279f6dc20cefd652cec6 | 587 | package io.github.greyp9.arwo.core.xsd.instance;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.Collection;
public class TypeInstances {
private final QName nameParent;
private final Collection<TypeInstance> instances;
public final QName getQNameParent() {
return n... | 24.458333 | 62 | 0.713799 |
e7b680f10ed8acef2d236e4f8eed31f51226da10 | 1,478 | /**
* Copyright 2022 Google LLC
*
* <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 agreed t... | 34.372093 | 99 | 0.747632 |
5efad04745a533570011e12cdd597e79dbab540f | 369 | package com.aditiva.ISO8583.builders;
import com.aditiva.ISO8583.builders.BaseMessageClassBuilder;
/**
* Created by aditiva on 18/04/01.
*/
public class GeneralMessageClassBuilder extends BaseMessageClassBuilder<GeneralMessageClassBuilder> {
public GeneralMessageClassBuilder(String version, String messageClass... | 28.384615 | 101 | 0.785908 |
8bbb00beffb662dba9aefd96cb471e517c8efc4d | 426 | package vswe.stevescarts.containers.slots;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
public class SlotCartCrafter extends SlotFake {
public SlotCartCrafter(final IInventory iinventory, final int i, final int j, final int k) {
super(iinventory,... | 23.666667 | 93 | 0.779343 |
e90a0d451969e698dda049b4186693540651306f | 2,251 | package com.github.sejoslaw.vanillamagic2.common.networks;
import com.github.sejoslaw.vanillamagic2.common.registries.PlayerQuestProgressRegistry;
import net.minecraft.client.network.play.IClientPlayNetHandler;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.network.PacketBuffer;
import net.minec... | 29.618421 | 94 | 0.692581 |
2fa8376826053b4809baabe09e410a52e2c1561d | 6,855 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.compute.v2017_12_01;
import java.util.List;
impo... | 28.094262 | 114 | 0.646973 |
70d0906399f8583a2b9feec5a9103870ba83765d | 801 | package demands;
import enums.DeliverySchema;
import java.time.LocalDate;
// Entity
public class DemandReadModelEntity {
private LocalDate atDay;
private String productRefNo;
private DeliverySchema deliverySchema;
private long level;
public DemandReadModelEntity(LocalDate atDay, String productRe... | 21.648649 | 115 | 0.679151 |
6c969e43d2d4d52af9be22cbd64eb87e9a23af05 | 5,108 | package org.apereo.cas.adaptors.duo.authn;
import org.apereo.cas.authentication.AuthenticationHandlerExecutionResult;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.MultifactorAuthenticationCredential;
import org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcess... | 46.436364 | 136 | 0.702428 |
7a7d824b1d06a0856dd180c12e58131b4f5edd32 | 5,161 | /*
* (C) Copyright 2006-2019 Nuxeo (http://nuxeo.com/) and others.
*
* 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... | 38.22963 | 120 | 0.683007 |
36b769f9c503f82325cbbfa8d628b1a7f207d186 | 9,089 | package com.clutcher.comments.gui;
import com.clutcher.comments.configuration.HighlightTokenConfiguration;
import com.clutcher.comments.highlighter.HighlightTokenType;
import com.intellij.CommonBundle;
import com.intellij.openapi.application.ApplicationBundle;
import com.intellij.openapi.application.ApplicationManager... | 43.697115 | 176 | 0.599186 |
6abf247666ab47b27e96d2b4307414972740e382 | 511 | import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* Title: Server
* Descrption: TODO
* Date:2019-12-15 23:09
* Email:woo0nise@gmail.com
* Company:www.j2ee.app
*
* @author R4v3zn
* @version 1.0.0
*/
public interface Server extends Remote {
/**
* 执行命令
* @param cmd 执行命令
* @param cl... | 19.653846 | 89 | 0.655577 |
5b2271eb00be18779436c429dab740a50d00a549 | 2,742 | /*
* Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
*/
package msf.ecmm.ope.receiver.pojo;
import java.util.ArrayList;
import msf.ecmm.ope.execute.OperationType;
import msf.ecmm.ope.receiver.pojo.parts.VlanIfsCreateL3VlanIf;
/**
* L3VLAN IF Batch Generation.
*/
public class BulkCreateL3VlanIf exte... | 21.761905 | 100 | 0.641867 |
2d736011a69fe538dd707c06e848eb36820920ea | 307 | package me.jtghawk137.hwk.block;
import me.jtghawk137.hwk.Parameter;
public class Catch extends Block
{
Parameter[] params;
public Catch(Block superBlock, Parameter[] params)
{
super(superBlock);
this.params = params;
}
@Override
public void run()
{
}
}
| 14.619048 | 54 | 0.628664 |
405e65b56c514fb8437a7d78dfdd4c4761dc0927 | 2,317 | package org.apache.harmony.security.x509;
/*
* #%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
*
*... | 26.329545 | 110 | 0.694864 |
c70149958e3f24277a8b0a1a583833b0cc894f24 | 438 | package uk.gov.hmcts.reform.divorce.orchestration.framework.workflow.task;
import java.util.Optional;
public interface TaskContext {
void setTaskFailed(boolean status);
boolean hasTaskFailed();
void setTransientObject(String key, Object data);
<T> T getTransientObject(String key);
<T> Optiona... | 20.857143 | 74 | 0.751142 |
6669c91cb5a611bb5a96e9a626753a218d8988c3 | 1,144 | /*
Copyright 2016 Goldman Sachs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 28.6 | 66 | 0.710664 |
a880547ee840f8447d339ce48901975c9b9e6537 | 4,114 | package com.egbert.rconcise.internal;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import com.orhanobut.logger.FormatStrategy;
import com.orhanobut.logger.LogStrategy;
import com.orhanobut.logger.LogcatLogStrategy;
import static com.egbert.rconcise... | 33.447154 | 102 | 0.622509 |
be3a90d09176888bedbfcb9e22944268ca9a17c5 | 2,546 | package com.ttz.taungthuzay.photoview.view;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.view.GestureDetector;
import android.view.View;
import android.widget.ImageView;
public interface IPhotoView {
public static final float DEFAULT_MAX_SCALE = 3.... | 24.960784 | 97 | 0.771799 |
dcbe68e1abcdee3764ea0e6a87f92de821c0c0b5 | 2,497 | package io.opensphere.core.common.util;
import java.awt.Color;
import java.awt.Transparency;
import java.awt.image.IndexColorModel;
import java.awt.image.RenderedImage;
/**
* The PaletteBuilder this class extends implements the octree quantization
* method as it is described in the "Graphics Gems" (ISBN 0-12-286166... | 32.428571 | 91 | 0.614738 |
f71455fd0bb09af55ba8fccd774a44a893549100 | 1,552 | /*
* Decompiled with CFR 0_113.
*/
package modpow;
import gov.nasa.jpf.symbc.Debug;
import java.math.BigInteger;
import java.util.Random;
public class ModPow {
//public static final int MAX_LEN = 20;
public static BigInteger modPowNoNoise(BigInteger base, BigInteger exponent,
BigInteger modulus) {
BigIn... | 27.714286 | 110 | 0.588273 |
2f356db67850384049dffade4667a3c34e966195 | 3,724 | /*
* User.java
*
* 1.0
*
* 3/12/2014
*
* Copyright
*/
package models;
// model
import javax.persistence.*;
import play.db.ebean.*;
import com.avaje.ebean.*;
// added
import play.data.format.*; // date format
import play.data.validation.*; // constraints
import play.libs.Crypto; // crypt AES
import java.util... | 26.791367 | 68 | 0.730397 |
8e9e68bd9ba697e22a9cffef004803fe3ba357af | 5,060 | /*
* The MIT License (MIT)
*
* FXGL - JavaFX Game Library
*
* Copyright (c) 2015-2017 AlmasB (almaslvl@gmail.com)
*
* 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 restrictio... | 28.75 | 91 | 0.639723 |
1a5aa81b3a71a5df090febb698d1cbcca4f1fa48 | 4,196 | package de.endrullis.lazyseq;
import org.testng.annotations.Test;
import java.util.List;
import static de.endrullis.lazyseq.LazySeq.empty;
import static de.endrullis.lazyseq.LazySeq.of;
import static de.endrullis.lazyseq.samples.Seqs.primes;
import static java.util.Arrays.asList;
import static org.fest.assertions.ap... | 24.97619 | 82 | 0.719733 |
f3638d8c3a77a0e15c67dd5038cdaa242b2ef9cf | 7,819 | package com.huawei.opensdk.callmgr;
import com.huawei.ecterminalsdk.base.TsdkDtmfTone;
import com.huawei.ecterminalsdk.models.call.TsdkCall;
import com.huawei.opensdk.commonservice.util.LogUtil;
/**
* This class is about call session
* 呼叫会话类
*/
public class Session {
private static final String TAG ... | 22.087571 | 116 | 0.507738 |
09a0ed0776de35b43ff4093fecea7f5bd34c31fa | 3,937 | package com.svs.ensign.resort.helper;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
public class C_ResortHelper {
@Autowired
DataSource ds;
priva... | 19.587065 | 87 | 0.663957 |
16e86c6cccf46d606b31b92594fc05c983313580 | 4,779 | package Prog1;
import Tools.IOTools;
public class Ubung2 {
public static void main(String[] args) {
Ubung2.aufgabe20();
}
public static void aufgabe18() {
double r = IOTools.readDouble("radius = ");
System.out.println("radius > 0 und < 10: " + (r > 0 && r < 10));
doub... | 33.41958 | 117 | 0.435865 |
762ef903ae5641603fb8d8507f2b21420eea92ad | 726 | package com.qty.sample;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.qty.log.QTLog;
public class MainActivity extends AppCompatActivity {
private QTLog Log = new QTLog(MainActivity.class);
private String name;
@Override
protected ... | 24.2 | 84 | 0.655647 |
7e97d8e0a03b955521848a700afba64265688c66 | 5,097 | package com.yue.demo.jsontest;
//package org.yue.mytest.jsontest;
//
//@Test
//public void testPersonsJson()
//{
// List<Person> persons = new ArrayList<Person>();
// Person person = new Person(1, "xiaoluo", "广州");
// Person person2 = new Person(2, "android", "上海");
// persons.add(person);
// persons.ad... | 30.159763 | 99 | 0.483814 |
9304265eda5feb9516f177864c5b5d6696296e2f | 127 | package com.mirkocaserta.example;
import java.util.List;
public interface TimeValueProvider {
List<TimeValue> get();
}
| 12.7 | 36 | 0.748031 |
be93c82cf61ab1ece8b7b9df2ed48c52497929c5 | 330 | package org.tbk.bitcoin.regtest.electrum.faucet;
import org.bitcoinj.core.Coin;
import org.bitcoinj.core.Sha256Hash;
import org.tbk.bitcoin.regtest.common.AddressSupplier;
import reactor.core.publisher.Mono;
public interface ElectrumRegtestFaucet {
Mono<Sha256Hash> requestBitcoin(AddressSupplier address, Coin am... | 25.384615 | 74 | 0.818182 |
98e47abd62f9888eb89670943e23cbcf109fb784 | 3,817 | /*
* Copyright 2019 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 app... | 37.792079 | 101 | 0.716007 |
a14760f7bbbcd0a4fe6c1465554b2ec9520fdf5b | 1,067 | /* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.uccollaborationlib.impl;
import com.wilutions.com.*;
@SuppressWarnings("all")
@CoClass(guid="{523E72F0-218D-9F0F-3EAC-69246CB2465E}")
public class _IDelegatorClientEventsImpl extends Dispatch implements com.wilutions.mslib.uccollaborationlib... | 50.809524 | 224 | 0.773196 |
ae5e0de078be529b4caee77b01b768b75e58e5f6 | 8,871 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import net.dv8tion.jda.api.Permission;
import ne... | 50.118644 | 236 | 0.573667 |
400ee5360351a12ac3bc44c86607fd61c61c8ec2 | 1,628 | package com.transcendensoft.hedbanz.utils;
/**
* Copyright 2017. Andrii Chernysh
* <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
... | 33.22449 | 81 | 0.70516 |
e4ae74dfd48432e56e169d984637eadafbe2cc0b | 2,745 | package com.ontraport.mobileapp.main.collection.asynctasks;
import android.text.TextUtils;
import com.ontraport.mobileapp.AbstractAsyncTask;
import com.ontraport.mobileapp.OntraportApplication;
import com.ontraport.mobileapp.main.collection.CollectionAdapter;
import com.ontraport.mobileapp.utils.FieldUtils;
import com... | 34.746835 | 101 | 0.647723 |
dbe3ae3bb76203944da2af9d0a712fb2b6cfe595 | 3,468 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQQuoteInitiateInputModelMarketTradeTransactionInstanceRecordMarketOrderTransactio... | 35.387755 | 207 | 0.818339 |
442fcdb95eda002fa87b41b546cc89835ed2294a | 9,120 | /**
* Copyright 2012-2021 Digital.ai
*
* 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 appli... | 42.616822 | 156 | 0.698355 |
1431800170023edfb56ab05ba742ec2fa2ba0aae | 3,352 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
... | 42.974359 | 79 | 0.548628 |
2c0d94304a82f571c28ba32809d7f8cae394d015 | 6,521 | /**
* maps4cim - a real world map generator for CiM 2
* Copyright 2013 Sebastian Straub
*
* 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-... | 37.912791 | 112 | 0.649287 |
5018a77e7d54567ab73f9d261fd0d197f1220980 | 1,160 | package com.momo5502.stauanalyse.backend;
import com.momo5502.stauanalyse.util.Callback;
import com.momo5502.stauanalyse.util.Downloader;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class AvailableCamerasLoader {
private BackendConnector backendConnector;
... | 29.74359 | 71 | 0.593103 |
f301a96d88eb0e5a487f01793ef01f131938b581 | 817 | package sample;
import javafx.fxml.FXMLLoader;
import javafx.event.ActionEvent;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
public class SampleController extends javafx.application.Application {
public Label helloWorld;
public void sayH... | 24.757576 | 77 | 0.685435 |
fa7efb459fa67bef3dbeb06c7d0f2dc3aba63f03 | 1,289 | /*
This class implements the KDebug interface. It logs debug messages to the java console, if the
debug level is high enough.
The default debug level is 1.
*/
package com.teambox.util;
import java.lang.System;
// local
import com.teambox.util.KDebug;
public class KDebugConsole implements KDebug
{
// D... | 21.131148 | 97 | 0.61443 |
fa683641fed01b7bf829701e236f811986f8e335 | 2,063 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 37.509091 | 79 | 0.730974 |
60a8816b52e1f3016d752304735c12e18c26925c | 11,148 | /*
* Copyright 2012-present Facebook, 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... | 36.194805 | 99 | 0.665231 |
25f2abaed1c6a683f3ecce1ad5dc53d65db64cb8 | 1,046 | package com.ubx.tools;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.ubx.ocean.http.ApiResponse;
import com.ubx.ocean.http.RetrofitManager;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class MainActivity extends AppCompatActivity {
... | 30.764706 | 92 | 0.67782 |
aed13ee89f6825343b095798ad73c7e26cce84e8 | 3,329 | /*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS... | 28.452991 | 111 | 0.689396 |
db3bb146d9080995bd047ce2bb139521004a1a1b | 4,162 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL")... | 40.019231 | 98 | 0.740029 |
758f3945a40d7b1fdef41285bf0dd5360c67b123 | 13,007 | /*
* 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 rmi;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.google.gson.Gson;
import com.mongodb.MongoCli... | 38.143695 | 132 | 0.624433 |
b6d0f2cfe4578e9416e1b96ea06ad6a6577af9f6 | 1,413 | package com.ontology2.telepath.normalizeMonthlies;
import com.ontology2.centipede.parser.ContextualConverter;
import com.ontology2.centipede.parser.HasOptions;
import com.ontology2.centipede.parser.Option;
import com.ontology2.centipede.parser.Required;
import com.ontology2.telepath.bloom.CreateBloomOptions;
import or... | 31.4 | 78 | 0.728238 |
29078f255210cdd13bafe0fe07cda3c6def5353d | 1,162 | package de.uni_kassel.vs.cn.planDesigner.view.editor;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.shape.Polyline;
import java.util.List;
public class MouseClickHandler implements EventHandler<MouseEvent> {
private List<TransitionContainer> transitionContainers;
... | 29.794872 | 78 | 0.629088 |
1ff6e7101444994cafa3c34a2c096404477f5d61 | 635 | package starter.lichess.screenplay.questions;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import net.serenitybdd.screenplay.targets.Target;
import starter.lichess.screenplay.pages.InviteAFriendPage;
import static starte... | 28.863636 | 79 | 0.784252 |
5e7da69c0622a8a9adca2e13425b5a224644a6fe | 528 | //: annotations/Multiplier.java
// APT-based annotation processing.
package com.skillip.java.annotations;
@ExtractInterface("IMultiplier")
public class Multiplier {
public int multiply(int x, int y) {
int total = 0;
for(int i = 0; i < x; i++)
total = add(total, y);
return total;
}
private int a... | 25.142857 | 56 | 0.628788 |
04431258ccd3d61cf316ce49d356c2e212b136e5 | 1,258 | /*
* Copyright 2012 Soichiro Kashima
*
* 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 agree... | 32.25641 | 106 | 0.741653 |
7b29788136501f89b33d18b2e2fc8a7ec63ace7f | 369 | package swarm_wars_library.sound;
import processing.sound.SoundFile;
import processing.core.PApplet;
// Add via composition to relevant entity.
public class PlayShotSound{
private SoundFile soundFile;
public PlayShotSound(PApplet sketch){
// this.soundFile = new SoundFile(sketch, "resources/sound/vibrapho... | 21.705882 | 80 | 0.745257 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.