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 |
|---|---|---|---|---|---|
5e8262ce5dbe2917f35379d8894cfd71f3fdc12d | 2,538 | package ecashie.view.start;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import ecashie.MainAppController;
import ecashie.controller.errorhandling.UnexpectedBehaviourException;
import ecashie.controller.gui.Gu... | 23.943396 | 98 | 0.804177 |
7fac0c55bfb39f0fc39d47f812ca842deb16b527 | 600 | package com.makefire.anonymous.exception;
/**
* packageName : com.makefire.anonymous.exception
* fileName : DuplicationException
* author : kjho94
* date : 2022-03-02
* description :
* =================================
* DATE AUTHOR NOTE
* 2022-03-02 kjho94 최초 생성
* ------------------------------... | 24 | 73 | 0.591667 |
3bc17cb8f4540fe7e05db9634c04c2f5c08ee3dd | 1,093 | package com.hlk.hlklib.etc;
import android.os.Build;
/**
* <b>功能:</b>Utility methods related to physical devies and emulators.<br />
* <b>作者:</b>Hsiang Leekwok <br />
* <b>时间:</b>2016/01/21 08:27 <br />
* <b>邮箱:</b>xiang.l.g@gmail.com <br />
*/
public class DeviceUtility {
/**
* 判断当前设备是模拟器或真机
*/
... | 36.433333 | 97 | 0.576395 |
37848c8e2c5fa657f03645ba678e8dc9f3d29608 | 3,198 | package q1700;
import java.util.Arrays;
import org.junit.runner.RunWith;
import util.runner.Answer;
import util.runner.LeetCodeRunner;
import util.runner.TestData;
import util.runner.data.DataExpectation;
/**
* [Hard] 1665. Minimum Initial Energy to Finish Tasks
* https://leetcode.com/problems/minimum-initial-energ... | 31.663366 | 117 | 0.600375 |
6f0e120ae2f29e4d4ee8dbccfbf0ce81e2efa1ad | 14,579 | package Test;
import Algorithmen.Resolution;
import Evaluator.List.Klausel;
import Evaluator.List.Klauselmenge;
import Evaluator.List.Literal;
import Evaluator.List.Ordnung;
import org.junit.Test;
import java.util.LinkedList;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class ResolutionTest {... | 28.308738 | 158 | 0.545785 |
5173cdf8b1ab0fc11c386ba86953d0e58a95ac64 | 1,940 | package com.xbw.spring.boot.snaker;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.snaker.engine.Expression;
import org.snaker.engine.impl.JuelExpression;
import org.snaker.engine.spring.SpelExpression;
import java.util.HashMap;
import j... | 33.448276 | 93 | 0.663918 |
6f7b899df6e2180b0726441d489c89c740be62c4 | 6,170 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 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") (... | 34.858757 | 100 | 0.654943 |
35d7b630d80a8350e791a1c310ba29cdee5623c3 | 1,975 | /*
* Copyright 2011-2012 Gregory P. Moyer
*
* 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 ... | 31.854839 | 77 | 0.669873 |
d785d8687ec53f6bd71563eccd350c7f15b621f9 | 671 | package work.notech.poker.room;
import work.notech.poker.logic.Cards;
import java.util.List;
public class GameRoom {
private Integer roomIds;
private List<Integer> clientIds;
private Cards cards;
public Integer getRoomIds() {
return roomIds;
}
public void setRoomIds(Integer roomIds)... | 18.638889 | 55 | 0.636364 |
d797f5ace4d5a105bcce575af05594f2f4e101a4 | 4,246 | /*
* Copyright (c) 2010-2017, sikuli.org, sikulix.com - MIT license
*/
package org.jdesktop.swingx.search;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jdesktop.swingx.JXList;
import org.jdesktop.swingx.decorator.AbstractHighlighter;
import org.jdesktop.swingx.decorator.Highlighter;
p... | 29.692308 | 98 | 0.539802 |
57fe90526b949252aed2f1051a4b5267596b20bb | 3,663 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.query.criteria.internal.path;
import java.io.Serializable;
i... | 30.781513 | 94 | 0.753754 |
4319ced95b07c7ed3aa0c8301a2ea088a6933c11 | 1,991 | /**
* DISCLAIMER: PLEASE TAKE NOTE THAT THE SAMPLE APPLICATION AND
* SOURCE CODE DESCRIBED HEREIN IS PROVIDED FOR TESTING PURPOSES ONLY.
* <p>
* Samsung expressly disclaims any and all warranties of any kind,
* whether express or implied, including but not limited to the implied warranties and conditions
* of mer... | 55.305556 | 103 | 0.767454 |
8bd441a38196edde7e0ef78cd3c45b3d55cb31c7 | 2,900 | package me.panavtec.cleancontacts.data.repository.contacts.datasources.api.entities;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ApiContact {
@Expose public String gender;
@Expose public ApiName name;
@Expose public ApiLocation location;
@Expose ... | 17.901235 | 84 | 0.66931 |
126db88a1dca83252b56b2ccc47d4d6f961a561b | 2,017 | /*
* Copyright 2016-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... | 38.788462 | 98 | 0.704512 |
3b570e0ab15ad9e4806b0253ec79c4f5be47b68c | 513 | package com.playground.nutrition.data;
/**
* Created by emil.ivanov on 10/17/18.
*/
public interface RecipeContract {
String _ID = "id";
String TABLE = "recipes";
String SINGLE_ITEM = "recipe";
String COL_TITLE = "title";
String COL_PREVIEW_URL = "href";
String COL_IMAGE_URL = "thumbnail";
... | 22.304348 | 48 | 0.666667 |
fc88fc676e8c9a929645c76318af5843d63caea9 | 441 | package com.ashley.tutorial.item;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;
public class TutorialItemGroups {
public static final ItemGroup TUTORIAL_ITEMS = FabricItemGroup... | 33.923077 | 80 | 0.764172 |
81a6a1b4791ea1efe9777c46f3ea33d30048c490 | 3,173 | /*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://ww... | 35.651685 | 102 | 0.678853 |
3e1bc8cd4f8c9e17a0ef1e492dec77ea41e9db2b | 1,217 | package com.ngdesk.websocket.workflow.dao;
import javax.validation.constraints.Pattern;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Condition {
@JsonProperty("REQUIREMENT_TYPE")
private String requirementType;
@JsonProperty("CONDITION")
private String condition;
@JsonProperty("OPERATOR... | 18.439394 | 92 | 0.748562 |
4d0f3ed6994f9e5a9073a596ad9ea04cc0d3b89e | 778 | package ru.iteco.fmh.converter.patient;
import lombok.NonNull;
import org.springframework.beans.BeanUtils;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import ru.iteco.fmh.dto.patient.PatientDto;
import ru.iteco.fmh.model.Patient;
import java.time.Insta... | 28.814815 | 106 | 0.748072 |
702adcbc714f4b1af1cfe142908836eceac50a0a | 11,091 | package Views;
import javax.swing.DefaultListModel;
import Message.*;
import Client.*;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.swing.JFileChooser;
public class Chat extends javax.swing.JFram... | 50.18552 | 150 | 0.641872 |
ecf08146b5e10911ba744f6d80880f3a5b4a3225 | 619 | package com.egoveris.te.base.model.rest;
import java.util.List;
public class FormsWsDTO {
// title
private String title;
// FormWsDTO
private List<FormWsDTO> form;
/**
* @return the title
*/
public String getTitle() {
return title;
}
/**
* @param title
* the title to set
... | 14.395349 | 45 | 0.573506 |
fdad1f04f65fffa025acab6a8d607101b891a628 | 4,520 | /*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 32.753623 | 87 | 0.661726 |
9cabeaca417532727fb90a12d4d83c960efee44d | 3,899 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("cb")
@Implements("PendingSpawn")
public final class PendingSpawn extends Node {
@Obfus... | 24.99359 | 131 | 0.703001 |
1ae9a2445a2315d52028737fda7c949c6a1d036b | 384 | package io.dreamstudio.springcloud.gateway;
import org.junit.Test;
import org.springframework.cloud.gateway.filter.factory.RequestRateLimiterGatewayFilterFactory;
/**
* @author Ricky Fung
*/
public class AppTest {
@Test
public void testApp() {
RequestRateLimiterGatewayFilterFactory configuration = ... | 24 | 118 | 0.773438 |
1e5dd2c5e6a560548168619f18bd8f494ad40fd3 | 22,250 | package edu.utexas.tacc.tapis.jobs.api.resources;
import java.io.InputStream;
import java.nio.charset.Charset;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax... | 48.901099 | 112 | 0.516854 |
afb3e51270df121a790704680664afaf87d7b61d | 698 | package ru.job4j.list;
public class Node<T> {
T value;
Node<T> next;
public Node(T value) {
this.value = value;
}
public static boolean hasCycle(Node start) {
Node firstOne = start;
Node secondOne = start;
if (start == null) {
throw new IndexOutOfBound... | 20.529412 | 71 | 0.511461 |
5965d8c4e32437dc1daa3dbb43eb2c433f350147 | 632 | package ar.com.bbva.got.service.funcional;
import java.util.List;
import ar.com.bbva.got.model.TramiteAutorizado;
import ar.com.bbva.got.model.TramiteAutorizadoKey;
public interface TramiteAutorizadoService {
Iterable<TramiteAutorizado> listAll();
TramiteAutorizado getById(TramiteAutorizadoKey id)... | 26.333333 | 70 | 0.759494 |
835a21a65fb90c51bc08a4a5ef1f6bd261a96156 | 6,537 | package org.ovirt.engine.core.bll.scheduling.policyunits;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl;
import org.ovirt.engine.core.common.businessentities.... | 39.618182 | 115 | 0.608383 |
703c932c9f0139199962a4c99340999a6b71dbba | 1,426 | package com.upseil.maze.core.configuration;
import java.util.Objects;
public class LabyrinthConfiguration implements GeneratorConfiguration {
public static final String Type = "Labyrinth";
public enum Border { Solid, None, Indifferent }
private Border border = Border.Indifferent;
@... | 25.017544 | 97 | 0.593268 |
ec0cd3b9c317c2d098b57267b4c1150e1da3685a | 1,538 | package us.ascendtech.highcharts.client.chartoptions.accessibility;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import us.ascendtech.highcharts.client.chartoptions.shared.functions.SeriesDescriptionFormatt... | 29.576923 | 112 | 0.840702 |
16c4430f64b3f2ac7d58ba315dbe2835fa6b3767 | 1,637 | package it.unibo.oop.lab.codeanalysis;
import java.util.ArrayList;
import java.util.Collection;
/*
* Checkstyle complains: the author and version Javadoc tags should not be used.
*/
/**
* This code triggers static code analyzers. You should use it to see how things
* SHOULD NOT be done.
*
* @author Danilo Piani... | 21.826667 | 80 | 0.530849 |
02eefe5ffae72a2cc4eb48853136c1c392bd4c2d | 1,177 | package com.github.wenzhu.maven.user.service;
import static org.easymock.EasyMock.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.github.wenzhu.maven.user.dao.IUserDao;
import com.github.wenzhu.maven.user.model.User;
import com.github.wenzhu.maven.user.service.IUserSer... | 24.520833 | 63 | 0.724724 |
955dcc6f26946bbfd18fcf13f6c0740d521d8fce | 594 | package saulmm.coordinatorexamples;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import java.util.ArrayList;
import java.util.List;
/**
* Copyright (C)
*
* @author : gongcb
* @date : 2019/6/6 10:46 AM
* @desc :
*/
public class DemoActivi... | 17.470588 | 66 | 0.715488 |
3d71aa95b6a6e55c8ab44514be5c8fa3b36f185d | 825 | package pacman;
public class MyThread extends Thread {
public BoardPlayer player;
public PacmanGame game;
private static final double pacSpeed = 0.1;
public MyThread(BoardPlayer p, PacmanGame g) {
player = p;
game = g;
if (pacSpeed != g.players[0].speed)
throw new R... | 26.612903 | 86 | 0.515152 |
02af3261121b8dc72a5c5bf70993c1e974dc4326 | 2,022 | //给出一个区间的集合,请合并所有重叠的区间。
//
//
//
// 示例 1:
//
// 输入: intervals = [[1,3],[2,6],[8,10],[15,18]]
//输出: [[1,6],[8,10],[15,18]]
//解释: 区间 [1,3] 和 [2,6] 重叠, 将它们合并为 [1,6].
//
//
// 示例 2:
//
// 输入: intervals = [[1,4],[4,5]]
//输出: [[1,5]]
//解释: 区间 [1,4] 和 [4,5] 可被视为重叠区间。
//
// 注意:输入类型已于2019年4月15日更改。 请重置默认代码定义以获取新方法签名。
//
/... | 27.69863 | 117 | 0.520277 |
baff8fedbd05ad93694ccc362b6a2f97146345af | 731 | package org.kohsuke.args4j.apt;
/**
* @author Kohsuke Kawaguchi
*/
public class IsolatingClassLoader extends ClassLoader {
public IsolatingClassLoader(ClassLoader parent) {
super(parent);
}
public Class<?> loadClass(String name) throws ClassNotFoundException {
throw new ClassNotFoundExce... | 29.24 | 107 | 0.705882 |
060e1ddbd4c3f1002a9fca1ce859169865fa9a7b | 2,528 | package seedu.address.logic.commands;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.Model;
import seedu.address.model.person.NameContainsKeywordsPredicate;
import seedu.address.model.person.Person;
import seedu.a... | 40.126984 | 101 | 0.724684 |
e1b53cbba70fb61ff909ba214a2f9efb8867b05e | 3,985 | package tictactoe;
public class Board {
private String[][] array;
private int turn = 0; //even = X, odd = O
public Board() {
array = new String[3][3];
}
public void updateBoard(String format) {
int row = 0;
int col = 0;
for (char c : format.toCharArray()) {
... | 31.88 | 99 | 0.403513 |
8b36c75ff594163c43b1fd63bd764c6c06e2c6b3 | 635 | package chapter03.section02.thread_3_2_2.pro_1_joinTest2;
/**
* Project Name:java-multi-thread-programming <br/>
* Package Name:chapter03.section02.thread_3_2_2.pro_1_joinTest2 <br/>
* Date:2019/11/23 16:31 <br/>
*
* @author <a href="turodog@foxmail.com">chenzy</a><br/>
*/
public class Test {
public static ... | 25.4 | 70 | 0.623622 |
c92908ebd7cf3d31908b1d71c9915e0131422812 | 2,410 | package com.gbmartins.redis.crud;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.... | 21.517857 | 111 | 0.700415 |
5070582456ca7f66252413e8f3d3f057158e44ed | 5,393 | package de.davelee.personalman.gui.admin;
import de.davelee.personalman.UserInterface;
import de.davelee.personalman.api.ResetUserRequest;
import de.davelee.personalman.gui.AdminScreen;
import de.davelee.personalman.gui.LoginScreen;
import de.davelee.personalman.gui.PersonalManBaseScreen;
import javax.swing.*;
import... | 53.39604 | 209 | 0.690896 |
5a5f1d3421e54a9940ce902e51cef3b0b1060dea | 932 | package net.reini.rabbitmq.cdi;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class JsonDecoderTest {
private Decoder<TestEvent> decoder;
@Before
public void setUp() {
decoder = new JsonDecoder<>(TestEvent.cla... | 23.3 | 79 | 0.717811 |
0e2371b88c032d44d11eb518c5865d78b8cd2aa1 | 19,451 | /**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.navercorp.pinpoint.thrift.dto.command;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Th... | 33.136286 | 185 | 0.677754 |
b2cb53bc0f90b4d2c8b96b8414d03759f2661667 | 524 | package iurii.job.interview.codility.cliqz;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Created by IuriiDziuban on 10/29/17.
*/
public class FibonacciTest {
@Test
public void test() {
Fibonacci fibonacci = new Fibonacci();
assertThat(fibonacci.fib... | 26.2 | 82 | 0.723282 |
0b57bf26c88db720050f048e28173911c93535e7 | 1,153 | package io.electrum.moneytransfer.server.backend;
import java.util.concurrent.ConcurrentHashMap;
import io.electrum.moneytransfer.server.backend.db.MockMoneyTransferDb;
public class MoneyTransferBackend {
private static MoneyTransferBackend instance;
private static ConcurrentHashMap<String, MockMoneyTransferDb... | 28.121951 | 78 | 0.674761 |
2fedd7c29d9755080689787fed10f02afacba7dd | 446 | package mantis.tests;
import mantis.appmanager.HttpSession;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.IOException;
public class LoginTests extends TestBase{
@Test
public void testLogin() throws IOException {
HttpSession session = app.newSession();
Assert.a... | 23.473684 | 67 | 0.730942 |
bcaa9c2e85634d8eb7c057983f1154e90f8da00e | 2,143 | // Update a log-based metric returns "OK" response
import com.datadog.api.v2.client.ApiClient;
import com.datadog.api.v2.client.ApiException;
import com.datadog.api.v2.client.Configuration;
import com.datadog.api.v2.client.api.LogsMetricsApi;
import com.datadog.api.v2.client.model.LogsMetricFilter;
import com.datadog.... | 42.019608 | 90 | 0.664022 |
9c2dc9d4e7e1b4de417ab846c05a64e090a6289a | 917 | package es.upm.miw.apaw_practice.adapters.mongodb.sportcentre.daos;
import es.upm.miw.apaw_practice.TestConfig;
import es.upm.miw.apaw_practice.adapters.mongodb.sportcentre.entities.AssistantEntity;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static org.jun... | 35.269231 | 86 | 0.770992 |
239e6dc89870379c2a51dbe7efe7c504192de3de | 1,574 | import common.SummaryWriter;
import macroutils.MacroUtils;
import macroutils.UserDeclarations;
import star.base.neo.DoubleVector;
import star.common.StarMacro;
/**
* This test is to prevent bug filed at Feb 14, 2017 from happening again (issue #14).
*
* @since MacroUtils v13.04
* @author Fabio Kasper
*/
public cl... | 31.48 | 91 | 0.653113 |
761fedf9f5ab044115a44b45d0d23ee085479dad | 6,825 | // Copyright 2017 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 34.821429 | 107 | 0.731429 |
c712264257613754ca0c663e10133ecb81738c27 | 1,579 | /* */ package net.a.a.f;
/* */
/* */ import java.awt.Font;
/* */ import java.awt.FontFormatException;
/* */ import java.io.File;
/* */ import java.io.IOException;
/* */ import java.io.InputStream;
/* */ import java.util.List;
/* */ import java.util.Set;
/* */
/* */
/* */
/* */... | 21.337838 | 118 | 0.424953 |
56cc73d70394227f9be36e7feaaa5594bce2611b | 476 | package io.mybatis.plus.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.mybatis.plus.entity.Product;
import io.mybatis.plus.mapper.ProductMapper;
import io.mybatis.plus.service.ProductService;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* ... | 22.666667 | 103 | 0.779412 |
cee7a2dcdc71b3ed243c3e698150240b6a70c755 | 1,879 | package com.github.lukaszbudnik.proparprog.complex.resource;
import com.google.inject.Injector;
import com.netflix.hystrix.HystrixRequestLog;
import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.util.concurrent.CompletableFuture;... | 34.163636 | 158 | 0.717935 |
d9abb512f9204333dba523b7fa0c8f8a0873c8b2 | 113 | public class IInvBasic {
// Failed to decompile, took too long to decompile: net/minecraft/inventory/IInvBasic
} | 37.666667 | 86 | 0.787611 |
d6ba0637cb1219e43a798c5262e5e6d02d6caf15 | 527 | public class SecondStringFunctionality {
public static void main(String[] args) {
String name="Mr. ABC"; //my string constant
String name1="Mr. KBC";
char[] character_array=new char[5];
//only valid java 8 or above
for(char c:character_array){
System.out.pr... | 31 | 62 | 0.552182 |
82ac368a447c8392e3f3ff3dcc7f89361f50f5d1 | 13,964 | /*
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.capfloor;
import static com.opengamma.strata.basics.currency.Currency.EUR;
import static com.opengamma.strata.basics.date.DayCounts.ACT_ACT_ISDA;
... | 50.411552 | 125 | 0.758952 |
b38d2c3f9b61ccffe8b9d1e9473f149a32852e56 | 17,699 | package org.prebid.pg.gp.server.jdbc;
import com.codahale.metrics.MetricRegistry;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.jdbc.JDBCClient;
import io.vertx.ext.sql.SQLConnection;
import io.vertx.ext.sql.UpdateResult;
import io.vertx.junit5.Vertx... | 41.352804 | 119 | 0.624329 |
d3ec1cde019ddbe2ee6c953b339a0fdb04ed30e9 | 3,840 | /*
* Copyright (C) 2016 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... | 40.851064 | 99 | 0.682813 |
9ea72bb3921806752b22746d3edf8ab67eead881 | 1,052 | package QueenMod.actions;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardGroup;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardc... | 28.432432 | 111 | 0.665399 |
39924a65400b723132d848876eedfc37759a4e07 | 6,510 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 17.131579 | 813 | 0.789094 |
788ed503ebc65cd0b31f59b88271b1c919b60b48 | 693 | package virtuoel.pehkui.mixin.compat115minus;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView;
import virtuoel.pehkui.ut... | 28.875 | 84 | 0.822511 |
8d73aa76e615df82ac454f805fa9131bd2094c01 | 788 |
package newtonraphson;
import static java.lang.Math.cos;
import static java.lang.Math.sin;
class Function{
static final float epsilon = 0.001f;
static float func(float x){
return (float) (3 * x - cos(x) - 1);
}
static float differentiate(float x){
return (float) (3 + sin(x));
... | 21.297297 | 86 | 0.549492 |
4811ce26aa9031765151390539f13b392ff67033 | 1,784 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 26.235294 | 81 | 0.598655 |
13f7f0e24a36f620e51420298d70936ae7058f2d | 1,344 | package cn.offer2020.pbj.demo.leetcode;
/**
* @ClassName: Demo1138
* @Author: pbj
* @Date: 2020/5/21 10:52
* @Description: TODO 1138. 字母板上的路径
*/
public class Demo1138 {
public String alphabetBoardPath(String target) {
String[] board = new String[]{"abcde", "fghij", "klmno", "pqrst", "uvwxy", "z"};
... | 30.545455 | 88 | 0.434524 |
f017bd78300e7f32534f1dcd64717a48b231ca7d | 5,973 | package com.cosmian.rest.kmip.data_structures;
import java.util.Objects;
import java.util.Optional;
import com.cosmian.rest.kmip.json.KmipStruct;
import com.cosmian.rest.kmip.types.Attributes;
import com.cosmian.rest.kmip.types.CryptographicAlgorithm;
import com.cosmian.rest.kmip.types.KeyCompressionType;
import com.... | 33.55618 | 119 | 0.6963 |
64a6bd78174c1b049aeb2f4f5d0aaa65da269d9e | 10,099 | /*
* Copyright (C) 2015 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... | 35.065972 | 100 | 0.655312 |
b4c13dae968f38942947bcb08a3947f858a2b6e1 | 1,605 | package checkers.algorithm;
import java.util.List;
import checkers.domain.CalculationContext;
import checkers.domain.Model;
import checkers.domain.Move;
import checkers.domain.Player;
import checkers.evaluation.IEvaluation;
import checkers.rules.ISuccessor;
/**
* Greedy Algoritması uygulaması
*
*/
... | 27.672414 | 89 | 0.719003 |
d02527e2153a09e9277b88fe983d43ad68465091 | 2,723 | package es.victorgv.cleverhelpdesk.DTO;
import java.time.LocalDate;
public class Ticket_ModifyDTO {
private Long ticketId;
private LocalDate opened; // DATE cuando se crea
private LocalDate assigned; // DATE cuando se asigna
private LocalDate closed; // DATE cuando se cierra
private String subject... | 23.678261 | 70 | 0.676093 |
5f318ee09d30bc69f31e25772c7cd568a325bde7 | 981 | package com.dbms.bookstore.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "business")
public class BusinessCustomer {
@Id
@Column(name = "id")
private int id;
@Column(name = "category_id")
private int cat... | 18.865385 | 70 | 0.72579 |
ac43d3b2d6efb50e34521a466a666ba648e455e0 | 3,008 | package org.opensrp.scheduler;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.joda.time.DateTime;
import org.motechproject.scheduler.MotechSchedulerService;
import org.motechproject.scheduler.domain.CronSchedulableJob;
import org.motechproject.scheduler.domain.MotechEvent;
import or... | 35.809524 | 136 | 0.773271 |
883159396e73236d9863028076b9c902862ee015 | 3,428 | /**
* 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... | 31.163636 | 78 | 0.694574 |
9cb4fdf31ee8680a1f95e1995bf37789fee48378 | 24,423 | package org.irods.jargon.modeshape.connector;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Calendar;
import java.util.Properties;
import java.util.... | 33.228571 | 96 | 0.757933 |
4205ad17c70faf211bc55b68acf1f5529e9556e1 | 352 | package com.yanovski.exchangeapi.repositories;
import com.yanovski.exchangeapi.entities.ApiCurrency;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ApiCurrencyRepository extends JpaRepository<ApiCurrency, Long> {
ApiCurr... | 32 | 81 | 0.846591 |
48e318439dfa4de8a90b1dbd47300bcccd58b8f1 | 4,007 | package kernbeisser.Windows.SynchronizeArticles;
import java.awt.event.ActionEvent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.Cancella... | 31.062016 | 100 | 0.669828 |
385d0c44a0395a847eb2f26f75b2ea456a3d1a83 | 763 | package com.vaddemgen.intelligenthouseclient.bme280.util;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
@Getter
@Builder
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class Bme280Value {
private final double celsiusTemp;
private final double ... | 27.25 | 79 | 0.726081 |
1a50d515e72f39687b058e6d78c1e53cb10e115c | 6,217 | package com.zy.service;
import com.zy.base.Result;
import com.zy.common.FoodCountConstants;
import com.zy.dao.FoodDao;
import com.zy.dao.OrderDao;
import com.zy.dao.OrderFoodDetailDao;
import com.zy.enums.OrderFoodDetailEnum;
import com.zy.enums.OrderStatusEnum;
import com.zy.enums.ResultCodeEnum;
import com.zy.model.... | 41.172185 | 151 | 0.618144 |
12be8350ef35ad440625a0ccc7a942d5ef82a75c | 5,737 | package ml.codeboy.engine.animation;
import ml.codeboy.engine.Sprites;
import javax.imageio.ImageIO;
import javax.imageio.ImageReader;
import javax.imageio.metadata.IIOMetadata;
import javax.imageio.metadata.IIOMetadataNode;
import javax.imageio.stream.ImageInputStream;
import java.awt.image.BufferedImage;
import jav... | 36.310127 | 143 | 0.637964 |
20b17608e394279c22916194f7ac39a1e229ac30 | 887 | package com.runcode.server.http.channelInitializer;
import com.google.protobuf.Api;
import com.runcode.server.http.handler.ApiServerHandler;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
... | 32.851852 | 75 | 0.73168 |
c51078bd7452391d6840c3a5b50d87d44985fe09 | 12,411 | package xyz.redtorch;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.spring... | 28.531034 | 138 | 0.716381 |
717f181ff52cd63547bc5d2b97c057de406c0d97 | 906 | package edu.uiowa.icts.util;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.Ostermiller.util.ExcelCSVPrinter;
public class CSVExport{
pub... | 26.647059 | 77 | 0.743929 |
3893938a781d4758d87680c5df15754210f027c6 | 1,773 | package im.tym.sparkcalc.parse;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.function.Consumer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author vit@tym.im
*/
public class BaseParser implements Parser{
private static final Pattern NUMBER_REGEXP = Pat... | 38.543478 | 139 | 0.547659 |
59deda1d6354f9ca8495e7f265249d432c426591 | 2,501 | /*
* Copyright 2021 Jeremy KUHN
*
* 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 i... | 26.052083 | 95 | 0.689724 |
6221df4e85fded19f7e86f1f6a2ec934639e32ca | 1,120 | private void triggerBuild(Properties props, String project, int rev) throws IOException {
boolean doBld = Boolean.parseBoolean(props.getProperty(project + ".bld"));
String url = props.getProperty(project + ".url");
if (!doBld || project == null || project.length() == 0) {
System.... | 58.947368 | 138 | 0.609821 |
68c6633d50504f571aff0e6b352c6931ab7c090f | 284 | package br.com.zupacademy.robson.ecommerce.product;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.JpaRepository;
/**
*
* @author Robson
*/
@Repository
public interface ProductRepository extends JpaRepository<Product, Long> {
}
| 20.285714 | 73 | 0.799296 |
798ed3b43893b8993964cebb02d76829e6d34727 | 874 | package engine.state;
import com.google.common.collect.ImmutableSet;
import java.util.Collection;
import java.util.Optional;
public class BooleanProperty extends Property<Boolean> {
public BooleanProperty(String propertyName) {
super(Boolean.class, propertyName);
}
@Override
public Collectio... | 24.971429 | 102 | 0.668192 |
df24640d260aab1f019ba5fa3afc644a1aa1d2df | 3,351 | package com.marverenic.music.activity;
import android.databinding.DataBindingUtil;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.design.widget.BottomSheetBehavior;
import android.view.View;
import com.marverenic.mu... | 33.51 | 100 | 0.717398 |
0a398930ec98b80dfa8724c7fdd7a4a6abb7520f | 6,489 | package com.mina_mikhail.fixed_solutions_task.ui.movie_details;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProvider;
import com.mina_mikhail.fixed_solutions_task.BR;
import com.mina_mikhail.fixed_solutions_task.R;
import com.mina_mikhail.... | 37.508671 | 100 | 0.74033 |
5983357969615ed903222d63ac771fee43c40b47 | 2,560 | package com.example.upgradedwolves.powerup;
public class PowerUpList {
public static final PowerUp[] StrengthWolf = {
new EnhanceDetectionPowerUp(4, 1, 2D),
new AutoAttackPowerUp(5),
new EnhanceAttackPowerUp(5, 1, 1),
new FleeHealthPowerUp(6),
new EnhanceSpeedPowe... | 37.101449 | 52 | 0.619141 |
ac1033604d8d305896cd15fd2f573345af770976 | 12,466 | package com.jiabangou.ninja.vertx.standalone;
import com.jiabangou.ninja.vertx.standalone.utils.DateParser;
import io.vertx.core.MultiMap;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.ext.web.RoutingContext;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.lang.reflec... | 26.35518 | 129 | 0.63613 |
1355336f4b641c294391e708febb5efb50e2fcaf | 680 | package br.com.aurum.astrea.dao;
import br.com.aurum.astrea.domain.Contact;
import com.googlecode.objectify.ObjectifyService;
import java.util.List;
import static com.googlecode.objectify.ObjectifyService.ofy;
public class ContactDao {
static {
ObjectifyService.register(Contact.class);
}
public void save(C... | 18.888889 | 60 | 0.698529 |
64fb0c5547c4cad9cbaf3fc41b1c08ce6e9cf93f | 3,169 | package apoc.merge;
import apoc.result.*;
import apoc.util.Util;
import org.neo4j.graphdb.*;
import org.neo4j.helpers.collection.Iterators;
import org.neo4j.procedure.*;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Merge {
@Context
public GraphDatabase... | 44.633803 | 201 | 0.644998 |
7f2eb64fabf892493ec746bb36d5fc250abad9b1 | 135 | package krasa.core.frontend.commons.table;
import java.util.List;
public interface IFilter<T> {
List<T> filter(List<T> newList);
}
| 15 | 42 | 0.740741 |
403bcbf30546b8cfef8685dc3d661ff171d60af5 | 739 | package net.moltak.soap.adapter;
import net.moltak.soap.model.BaseRequest;
import net.moltak.soap.model.SoapBaseResponse;
import net.moltak.soap.parser.SoapParser;
import rx.Observable;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
/**
* Created by moltak on 15. 2. 5..
*/
public interfa... | 27.37037 | 93 | 0.755074 |
10a65a451d24b4103846c197e64cdf71ecbb6562 | 380 | package vip.testops.gungnir.agent.core.data;
public class ExtraInfo {
private final String projectName;
public String getProjectName() {
return projectName;
}
public ExtraInfo(final String projectName) {
this.projectName = projectName;
}
@Override
public String toString()... | 20 | 48 | 0.647368 |
4a555b6b0e048d34bb6b15713965ada018bfd4a6 | 37,678 | package jetbrains.mps.lang.dataFlow.generator.baseLanguage.template.main;
/*Generated by MPS */
import jetbrains.mps.generator.runtime.Generated;
import jetbrains.mps.generator.impl.query.QueryProviderBase;
import jetbrains.mps.generator.template.CreateRootRuleContext;
import jetbrains.mps.lang.smodel.generator.smode... | 55.985141 | 227 | 0.763337 |
75fe767b718ed7cccb90233c116a8d3a9d5833ad | 16,434 | /**
* Copyright (C) 2013-2017 Vasilis Vryniotis <bbriniotis@datumbox.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 35.190578 | 200 | 0.590787 |
eadf95d2718e482aa1248c0f44d99b49acc6d28d | 1,048 | package homework3;
import java.io.IOException;
import java.util.ArrayList;
import java.util.StringTokenizer;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class PairsMapper extends Mapper<Object, Text, TextPairWritable, IntWritable> {
... | 36.137931 | 107 | 0.668893 |
353833af003854bdd1494d14b4be0f9da796c07e | 4,731 | /**
* Copyright 2020 the original author, Lin Tang
*
* 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... | 30.326923 | 121 | 0.70577 |
93869521ad3db91cf4239cfd0e69abc9fd84f7be | 6,440 | // Copyright 2017 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 35.58011 | 99 | 0.676398 |
579b95bb5394bc33c0fa71baff4ab162247c8177 | 1,340 | package com.hx.read.presenter.iraq.read.ME152;
import com.hexing.libhexbase.inter.RxBasePresenterImpl;
import com.hx.base.model.FeaturesMenuBean;
import com.hx.read.R;
import com.hx.read.contact.iraq.read.HXE12_DL.FeaturesContact;
import com.hx.read.view.iraq.read.ME152.EnergyActivity;
import com.hx.read.view.i... | 35.263158 | 118 | 0.708955 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.