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 |
|---|---|---|---|---|---|
10fd9e7c6451fd4bdb4f322a7df32ca5d2c160b2 | 2,423 | /*
* Copyright (C) 2013 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... | 38.460317 | 99 | 0.666529 |
7b2e75f7e748264d6dc59054c8f73235a4c42f4c | 3,645 | package de.uni_mannheim.informatik.dws.jrdf2vec.walk_generation.entity_selector;
import de.uni_mannheim.informatik.dws.jrdf2vec.util.Util;
import de.uni_mannheim.informatik.dws.jrdf2vec.walk_generation.walk_generators.NtMemoryWalkGenerator;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.AfterAll;... | 41.420455 | 117 | 0.721262 |
5605a390b50b0a1c421631b9b8886abde5bbac66 | 5,389 | package com.github.ykrank.androidtools.binding;
import android.annotation.SuppressLint;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build;
import android.text.TextUtils;
import android.widget.ImageView;
import... | 40.216418 | 158 | 0.647244 |
516a8953e2ba25c90c9c6e8332d2352fbb61e063 | 50 | package com.osb.info.Joe;
public class KPop {
}
| 8.333333 | 25 | 0.7 |
d9b26e6e68779b5ec89f7899ff7a3d31053ee05d | 1,259 | package com.mas.showgalaxy.ui.content;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.mas.showgalaxy.R;
import com.mas.showgalaxy.moviedb.DataQuery;
import com.mas.showgalaxy.ui.responselistener.ShowSeasonResponseListener;
public class Seaso... | 28.613636 | 119 | 0.725179 |
1ce977f9aecbc8ea71d6afdd8829a9098d922e2c | 1,630 | package com.abdalkarimalbiekdev.noisybirds.Model;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.abdalkarimalbiekdev.noisybirds.R;
public class Background {
public int x = 0;
public int y = 0;
public Bitmap background;
public ... | 33.265306 | 92 | 0.598773 |
3567cac4adcf89014a3a7da3077ec5e072efeef8 | 1,881 | /*
* The MIT License
*
* Copyright 2018 luisboch.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | 30.836066 | 117 | 0.676236 |
5d2cb2691756505ff37b2685e7737ce352eb94aa | 3,683 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2013 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 27.901515 | 129 | 0.661146 |
222f7ab643c7206d656ee70f813734d45c532fc4 | 1,039 | package com.boot.security.server.model;
import java.util.Date;
public class BoxAd extends BaseEntity<Long> {
private String boxcode;
private String adid;
private Integer adsensetype;
private Date begintime;
private Date endtime;
private String adplayroleid;
private Integer satatus;
public String getBoxcode(... | 17.610169 | 45 | 0.723773 |
6b0d9b14d7f8a8a272d41234b6cc1305ad0b3eec | 5,602 | package br.com.reschoene.poc.architecture.domain.usecase.usecase;
import br.com.reschoene.poc.architecture.domain.model.Product;
import br.com.reschoene.poc.architecture.domain.usecase.helper.ProductCreator;
import br.com.reschoene.poc.architecture.domain.usecase.ProductManagementUseCase;
import br.com.reschoene.poc.a... | 40.014286 | 107 | 0.722421 |
4ab597d85c1a9f7f68a7548b1ea43861f90e974d | 4,185 | package cryptopangrams;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
*
* @au... | 33.214286 | 176 | 0.577539 |
449d48bd75a3fa05d20edece2351bfa376514844 | 3,962 | package org.example.demo.leetcode.dfs;
import java.util.HashSet;
public class LandsProblemSolution {
/**
* 200. 岛屿数量
* 难度
* 中等
* <p>
* 给你一个由 '1'(陆地)和 '0'(水)组成的的二维网格,请你计算网格中岛屿的数量。
* <p>
* 岛屿总是被水包围,并且每座岛屿只能由水平方向和/或竖直方向上相邻的陆地连接形成。
* <p>
* 此外,你可以假设该网格的四条边均被水包围。
* <p... | 27.513889 | 99 | 0.447754 |
3288768984f8ebecd69134f10a31e37b91fce123 | 1,197 | package com.qiniu.android;
import com.qiniu.android.http.ResponseInfo;
public class ResponseInfoTest extends BaseTest {
public void testCreate(){
ResponseInfo responseInfo = null;
responseInfo = ResponseInfo.zeroSize("");
assertTrue(responseInfo.statusCode == ResponseInfo.ZeroSizeFile);... | 34.2 | 76 | 0.715957 |
a7bcd45f2ea51a57c2ab2c1771eeebe9636129bb | 73 | /**
* Created by JurekKiler on 10.04.2017.
*/
public class Client {
}
| 10.428571 | 39 | 0.630137 |
60094dadad7f1a9cc966c652a6f61524c7f181d9 | 308 | package io.quarkus.ts.openshift.messaging.kafka;
import io.quarkus.ts.openshift.common.AdditionalResources;
import io.quarkus.ts.openshift.common.OpenShiftTest;
@OpenShiftTest
@AdditionalResources("classpath:deployments/kafka/strimzi.yaml")
public class KafkaStreamOpenShiftIT extends AbstractKafkaTest{
}
| 30.8 | 64 | 0.850649 |
6b7dacb461cedca55d085d09b83dc76f532a40a2 | 2,707 | package com.rossos.cryptography;
import java.util.Scanner;
/**
* @author Daniel Rossos
*
*/
public class PolybiusSquare extends Cipher {
// TODO consider adding a way to shif the alphabet to
// make is possible to shift the p.square
static String ALPHABET = "ABCDEFGHIKLMNOPQRSTUVWXYZ";
static Strin... | 27.907216 | 90 | 0.598448 |
ca8be394929366166fb41e013357c0cd58fe5045 | 199 | package com.example.android.materialdesigncodelab.config;
/**
* Created by wony on 2018/3/8.
*/
public class ChildHelplineConfig {
public static final String DEFAULT_USER_NAME = "default";
}
| 19.9 | 61 | 0.748744 |
d26c2bfb1f5fe312d1f32c441c43361e806ed51d | 871 | package tk.bookyclient.bookyclient.mixins.gui;
// Created by booky10 in bookyClient (12:09 09.01.21)
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiNewChat;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.R... | 41.47619 | 140 | 0.760046 |
cae9d2cb1b718ba4de718166f1fc5b5cb8f5e6f4 | 1,031 | package de.l3s.simpleml.tab2kg.graphcandidates.model;
public class DummyGraphEdge {
private DummyGraphNode node1;
private DummyGraphNode node2;
private String id;
public DummyGraphEdge(DummyGraphNode node1, DummyGraphNode node2) {
super();
this.node1 = node1;
this.node2 = node2;
node1.getNeighbours().... | 21.479167 | 92 | 0.685742 |
2a83692a39d1f6e91859f9580c72355768883f6b | 1,683 | /*
* Copyright (c) 2021, the hapjs-platform Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.hapjs.widgets.tab;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import androidx.viewpager.widget.ViewPager;
import org.hapjs.component.Component;
impor... | 31.754717 | 86 | 0.625668 |
070030d9421c57990a1138dc9cf6ea6a9d511cf4 | 1,150 | package frodez.constant.annotations.info;
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;
/**
* 对象描述
* @author Frodez
* @date 2019-12-08
*/
@Documen... | 20.535714 | 143 | 0.665217 |
7c35a0fb0c718a9a97b38f7fb0e236b93d0d9565 | 2,269 | /**
* @author Mansi B
* Class that deals cards from a deck in either random order, top card or a bottom card.
* Throws an exception when asked to deal from an empty deck.
*/
package CardUtilities;
import java.util.List;
import java.util.Random;
import CardExceptions.EmptyDeckException;
import CardFactory.PlayingD... | 31.082192 | 119 | 0.663288 |
4dfc6d6ef0e51174c2726b133d4dd2c1bd86dcb8 | 8,105 | /*
* 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 ... | 42.434555 | 100 | 0.671931 |
cf5dc54c986a330ff20b6df352c249938e6b4aa0 | 12,038 | package org.bds.test;
import java.io.File;
import java.io.IOException;
import org.bds.Config;
import org.bds.data.Data;
import org.bds.data.DataFile;
import org.bds.data.DataHttp;
import org.bds.data.DataRemote;
import org.bds.util.Gpr;
import org.junit.Before;
import org.junit.Test;
import junit.framework.Assert;
... | 29.077295 | 159 | 0.599684 |
f3c698436f6483b3b9390f456b14a5abc05b926b | 137 | package de.themonstrouscavalca.dbaser.enums.interfaces;
public interface IEnumerateAgainstDB{
long getId();
String getName();
}
| 19.571429 | 55 | 0.766423 |
214afca802a4b3a4ce263ea58b0a764ec8563fa8 | 2,015 | /**
*
*/
package model;
import java.util.ArrayList;
/**
* @author Arkadi Yoskovitz
*/
public class GuessingGame {
// Attribute
private final Target gameTarget;
private ArrayList<Score> gameResults;
private boolean active;
private boolean winner;
private int limit;
// Contractor
public Guessi... | 20.773196 | 71 | 0.683375 |
e29c0649824bbf584e6f08ff9dbd4ebf6fab79f5 | 1,239 | /**
* Copyright (c) 2017 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
package org.streamingpool.core.service.streamfactory;
import org.reactivestreams.Publisher;
import org.streamingpool.core.domain.ErrorDeflector;
import org.streamingpool.core.domain.ErrorStreamPair;
import org.stream... | 34.416667 | 107 | 0.753027 |
7f2b288faac1909e745d1de656a97ccbecf45f8a | 527 | package com.chornyi.spring.boot.vault.config;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import java.io.IOException;
public abstract class AbstractVaultTests {
private static VaultInitializer initializer;
@BeforeClass
public static void startServer() {
initializer = new VaultIni... | 21.958333 | 83 | 0.724858 |
d3e66b93d0a17223aa942b88a35f0765204a3dd5 | 1,493 | package com.dmi.api.v1.student;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
@RestController
@CrossOrigin
@RequestMapping("management/api/v1/student")
public class StudentManagementController {
... | 33.177778 | 105 | 0.693235 |
4aa5c851ae686f91e3610cc104ca34314af4a800 | 13,708 | package de.ableitner.vlcapi.url;
import java.util.HashMap;
import de.ableitner.vlcapi.helpers.Checker;
public class RequestUrlCreatorAdapter {
// ============================================================================================================================================
// =======================... | 41.539394 | 174 | 0.590677 |
bc355779bec620b982ae5d7d465eb1d2991f6ff7 | 2,237 | //Copyright (C) Jared Blackburn, 2014
package com.folkgeist.logic.place;
import com.folkgeist.ui.models.Model;
import com.folkgeist.ui.models.Models;
import static com.folkgeist.ui.models.Models.*;
/**
*
* @author JaredBGreat (Jared Blackburn)
*/
public class Building {
Model model;
float width; // ... | 28.316456 | 116 | 0.497541 |
596ca790cb865ee93e4315ed741646fd54f4db7e | 685 | package com.atguigu.gmall.pms;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.stereotype.Component;
import ... | 31.136364 | 68 | 0.820438 |
04242dd33814c13c76ad5ec37b54f55c1d7a5523 | 10,393 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 40.917323 | 152 | 0.628885 |
023918860426f5cd42e029992e7607a99feb9b15 | 599 | package com.wy.build;
import java.util.Arrays;
import com.wy.entity.StrollSkyJiuGe;
/**
*
*
* @author 飞花梦影
* @date 2021-11-04 13:43:21
* @git {@link https://github.com/dreamFlyingFlower }
*/
public class HubeiHeaven implements HeavenBuilder {
private StrollSkyJiuGe build = new StrollSkyJiuGe();
@Override
... | 16.189189 | 57 | 0.674457 |
de3c04034b3fecf48dc714d1203ed6b8f0c6696c | 16,450 | // 2014/11/22 Hiroyuki Ogasawara
// vim:ts=4 sw=4 noet:
// WearPlayer DAPP
package jp.flatlib.flatlib3.imageviewerw;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.view... | 26.923077 | 126 | 0.603526 |
e02f78fd3bbaf4162317d21cdf0d7f27ba84cd6a | 1,752 | package io.renren.modules.ewm.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;
/**
* 二维码生成记录表
*
* @author syb
* @email lovesleepbear@163.com
* @date 2018-10-10 13:34:29
*/
@TableName("code_re... | 14.722689 | 55 | 0.638699 |
e81801817dd97a4fc4cc6c97a73d40de30b39de4 | 1,419 | package tree;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Given the root of a binary tree, each node in the tree has a distinct value.
*
* After deleting all nodes with a value in to_delete, we are left with a forest (a disjoint union of trees).
*
* Re... | 30.191489 | 109 | 0.601832 |
07eb709da720270037103e3129ba9938cbbcbfed | 629 | package beso.laboratory;
import java.util.List;
import beso.pojo.Match;
import beso.recommendation.WagerOnFactory;
public class OptionsExplorerWagerOnSubject {
private final List<Match> matchesToEvaluate;
private final WagerOnFactory wagerOnFactory;
public OptionsExplorerWagerOnSubject(final WagerOnFactory w... | 24.192308 | 114 | 0.791733 |
06c569bf76cf42669c87ccd8ab6e1f9857d47b78 | 1,068 | package com.th.example.modal;
import com.cenboomh.hit.framework.mybatis.mapper.annotation.Id;
import java.util.Date;
/**
* @ClassName: TestData
* @Description:
* @author: acui
* @date: 2020/1/3 11:25
*/
public class TestData
{
@Id
private String id;
private String name;
private String sex;
p... | 14.052632 | 63 | 0.544007 |
535fc0fd79f7f3c12f4b8bd185b4839b0436bcfd | 226 | package org.reactivecommons.async.impl;
import org.reactivecommons.async.impl.communications.Message;
import reactor.core.publisher.Mono;
public interface DiscardNotifier {
Mono<Void> notifyDiscard(Message message);
}
| 20.545455 | 61 | 0.809735 |
afa9d7bba9691641100990441d64192b44beecf6 | 2,777 | package com.github.lunatrius.tracer.handler;
import com.github.lunatrius.tracer.trace.Trace;
import com.github.lunatrius.tracer.trace.registry.TraceRegistry;
import com.github.lunatrius.tracer.trace.registry.TraceRenderInformation;
import com.google.common.collect.ImmutableList;
import net.minecraft.client.Minecraft;
... | 28.628866 | 96 | 0.639899 |
a9aee2da62bcc3a3346d3f8df2ca771a286c3094 | 1,429 | package com.rotabuilder.dom.domain.employee;
import javax.jdo.annotations.IdentityType;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.rotabuilder.dom.domain.solver.AbstractPersistable;
import org.apache.commons.lang3.builder.CompareToBuilder;
import org.apache.isis.applib.annotation.DomainObjec... | 28.019608 | 78 | 0.643107 |
eace539c9ddc4e3312d7ddd5465c11a4d62e5469 | 720 | package by.Homework2;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* Created by arciom on 17.05.2017.
*/
public class PointTest {
@Test
public void rightResultTestDistance() {
Point p1 = new Point(2.8, 6.9);
Point p2 = new Point(6.9, 8.1);
Assert.assertEquals(p1.distance(p2), 4.... | 24.827586 | 60 | 0.658333 |
68eb007b441bc5307239a1f604b1fd220da50996 | 984 | // time complexity : O(n^2) , space complexity O (n)
/*
approach :
--> suppose we are at index i and we need to find the LIS length such that our subsequene ends with element nums[i]
--> so what elemenst we can take in this sequence? . a value arr[j] smaller than nums[i] and j<i can be added surely.
... | 37.846154 | 123 | 0.53252 |
c61f7004201e87c064b6baf3b8e0d04c6527e752 | 1,494 | package main;
/**
*
* @author MADHAVAN001
*
*/
public class CallData {
private int id;
private double time;
private int station;
private double callDuration;
private double velocity;
public CallData(int id, double time, int station, double callDuration, double velocity) {
this.id = id;
this.time = tim... | 14.94 | 90 | 0.609772 |
51746485a5c656c52a1b50f73d6d534f1955e4e9 | 7,323 | /*
* Copyright (c) 2021. Yash Kasera
*
* 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... | 40.683333 | 133 | 0.638536 |
bbc8724400a088e930ca42f006cba2ef24d5bd4d | 4,639 | /*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2021 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* p... | 35.143939 | 145 | 0.720198 |
f00be8d446507625f5af36f24a107f3b06cb9e15 | 665 | package org.keycloak.services.tmp;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* TODO Remove once fixed in WildFly (https://issues.jboss.org/browse/WFLY-2687)... | 30.227273 | 113 | 0.771429 |
284b671e0373152db283d4dfe2e87d5df7540768 | 2,128 | package net.congueror.cgalaxy.init;
import net.congueror.cgalaxy.CGalaxy;
import net.congueror.cgalaxy.blocks.fuel_loader.FuelLoaderRecipe;
import net.congueror.cgalaxy.blocks.fuel_refinery.FuelRefineryRecipe;
import net.congueror.cgalaxy.blocks.oxygen_compressor.OxygenCompressorRecipe;
import net.minecraft.core.Regis... | 56 | 171 | 0.791823 |
c86f50bc6511c02ed0c49581ce987d07b9294629 | 847 | package net.estinet.au5c.ClioteSky.Network.Protocol.Output;
import java.util.List;
import net.estinet.au5c.ClioteSky.ClioteConfigUtil;
import net.estinet.au5c.ClioteSky.ClioteSky;
import net.estinet.au5c.ClioteSky.Network.NetworkThread;
import net.estinet.au5c.ClioteSky.Network.Protocol.Packet;
public class OutputHe... | 33.88 | 80 | 0.753247 |
b882251876f3ae70c37a4d8b0ae99c0245233ee4 | 19,155 | /*
* 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 Form;
import Tool.KoneksiDB;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.sql.*;
import javax.swing.JOption... | 48.371212 | 212 | 0.642339 |
c667983fcb2a8f58b8ac36ce6e35fa4e1c78b606 | 2,406 | package coursemanagerapi.models.services;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.do... | 37.59375 | 105 | 0.759352 |
e1a19b462c13d13cf282695a46081be13fc19dd8 | 6,258 | package de.dhbw.softwareengineering.digitaljournal.controller;
import de.dhbw.softwareengineering.digitaljournal.business.GoalService;
import de.dhbw.softwareengineering.digitaljournal.domain.ContactRequest;
import de.dhbw.softwareengineering.digitaljournal.domain.Goal;
import de.dhbw.softwareengineering.digitaljourna... | 39.607595 | 148 | 0.698306 |
271c270f2d11cfe73b9b2104b8a0cd530747e5ed | 3,442 | package test;
import java.io.File;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.TrueFileFilter;
public class CompDirTree {
private String leftDirPath;
private String rightDirPath;
... | 29.930435 | 86 | 0.679837 |
dc59415dca11c44cd0cf198c3e5988e654f4f366 | 119 | import java.util.regex.Pattern;
public class InInjection {
static final Pattern p = Pattern.compile("\\d+<caret>")
} | 23.8 | 57 | 0.731092 |
e4e3245b57a8d89650401215584cae95af208271 | 153 | package secretsanta;
/**
*
* @author java
*/
public class InvalidPickException extends Exception {
public InvalidPickException() {
}
}
| 11.769231 | 53 | 0.660131 |
30ab6fc858a79b626c4e310307db14b1bcf2ee13 | 9,501 | package com._604robotics.robot2012;
import com._604robotics.robot2012.camera.CameraInterface;
import com._604robotics.robot2012.camera.RemoteCameraTCP;
import com._604robotics.robot2012.configuration.ActuatorConfiguration;
import com._604robotics.robot2012.configuration.PIDConfiguration;
import com._604robotics.robot2... | 42.226667 | 211 | 0.765288 |
e0453ff56eb7cdbdf49fc3e2ff0d418fba7d614a | 4,380 | package com.tinkerpop.blueprints.impls.orient;
import com.orientechnologies.orient.core.db.ODatabaseRecordThreadLocal;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.intent.OIntentMassiveInsert;
import org.junit.BeforeClass;
import org.junit.Test;
imp... | 30.629371 | 90 | 0.723059 |
93390a38f6f80240c7d3865fd6561be941bd5498 | 902 | import java.awt.*;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class P2_Deciphering {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String sentence = scanner.nextLine();
String[] letters = scanner.nex... | 28.1875 | 76 | 0.586475 |
97a95c585e6685916a2e42197c5e7e9c07de9f56 | 4,351 | package org.trimou.handlebars;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.trimou.AbstractEngineTest;
import org.trimou.Hammer;
import org.trimou.util.ImmutableList;
import org.trimou.util.ImmutableMap;
/**
* @author Martin Kouba
*/
public class EachHelperTest extends AbstractEng... | 43.949495 | 119 | 0.552746 |
08c9efbd29b25e2f6301a81f9651b9fff6c2b163 | 1,712 | /*
* Password Management Servlets (PWM)
* http://www.pwm-project.org
*
* Copyright (c) 2006-2009 Novell, Inc.
* Copyright (c) 2009-2019 The PWM 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 ... | 25.552239 | 103 | 0.695093 |
99785bd323b44cdba7855b1f3916dbfa8ed81278 | 4,070 | /*
* Copyright (C) 2019 The Flogger 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 applicable law or a... | 37 | 100 | 0.749631 |
41277801b8c4479abcd03ebb6012082ed4b4dc30 | 1,283 | package de.vorb.sokrates.generator.tpl.pebble;
import com.google.common.collect.ImmutableList;
import com.mitchellbosecke.pebble.extension.Filter;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public class SplitFilter implements Filter {
private static final Str... | 29.159091 | 91 | 0.64926 |
6a01ba717bc0c856c055122c23fe0cbf41148d28 | 5,583 | package test;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import org.testng.asserts.SoftAssert;
import org.tonyhsu17.utilities.HistoryLog;
import org.tonyhsu17.utilities.Logger;
import java.io.File... | 28.19697 | 133 | 0.505642 |
6422667d333af5b156794d9752dc01d96ea1b405 | 5,431 | package uk.ac.cam.amw223.raumschach;
import org.joml.Vector3f;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class modelLoader {
// todo: singleton design pattern?
priv... | 32.136095 | 97 | 0.51114 |
e45228c090ec867fb283f313a39b4bd66b01ffe6 | 1,508 | package org.jeecg.modules.system.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @Title: SysNoteBizNoVo
* @Description: 重复校验VO
* @Author 悠蓝王晓陆
* @Date 2019-03-25
* @Version V1.0
*/
@Data
@ApiModel(value="获取业务单... | 24.721311 | 74 | 0.753979 |
7aee943003293a9d9f027de4f6bf9cc59792959a | 814 | package org.jeecg.modules.vcapi.service.impl;
import java.awt.Desktop.Action;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.vcapi.entity.BaiweiProduct;
import org.jeecg.modules.vcapi.mapper.BaiweiProductMapper;
import org.jeecg.modules.vcapi.service.IBaiweiProductSevice;
... | 35.391304 | 126 | 0.826781 |
71491db3985843a0a0ddf834bb2142b7ed6a2c74 | 1,251 | package ru.betterend.world.features;
import java.util.Random;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.StructureWorldAccess;
import ru.betterend.blocks.basis.BlockPlantWithAge;
import ru.betterend.registry.BlockRegistry;
import ru.betterend.util.BlocksHelper;
import ru.betterend.ut... | 33.810811 | 146 | 0.748201 |
255f12464931421ce5d57ac635665e387becb988 | 6,568 | package controller;
import gateway.TemplateGateway;
import use_case.TemplateManager;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Controller for Templates.
*/
public class TemplateController{
private final TemplateManager templateManager;
private final TemplateGateway ... | 36.898876 | 117 | 0.676309 |
dd08160e0a02e5e244e3f16d5fde49451ad8ecc9 | 4,356 | package com.ruoyi.report.domain;
import com.alibaba.druid.sql.visitor.functions.If;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.No... | 22.6875 | 71 | 0.596419 |
709fe8f5b87a0046950ebd0805b88d66aa04d2fc | 7,890 | package features.spatial;
import features.spatial.elements.FeatureElement;
import features.spatial.elements.RelativeFeatureElement;
import gnu.trove.list.array.TFloatArrayList;
/**
* In an Absolute Feature, the Action-to-play is implied by
* absolute "from" and "to" positions (sometimes only a "to" position)
*
*... | 23.693694 | 84 | 0.615716 |
47e6104ea4004afc199039c715b5692601f390b4 | 23,722 | package umn.dcsg.wieralocalserver.datadistribution;
/**
* Created by Kwangsung on 12/31/2016.
*/
public class TripS
{
/* public final static String FASTEST = "fastest";
public final static String CHEAPEST = "cheapest";
HashMap<String, TierInfo.TIER_TYPE> m_targetLocaleList; //this can include myself with cost inf... | 28.615199 | 169 | 0.677135 |
90eee3dfffb95f2eb413cc09566546494d4c7744 | 535 | package com.miausoft.miaups.security.controller;
import com.miausoft.miaups.Role;
import com.miausoft.miaups.interceptors.Authorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@R... | 31.470588 | 62 | 0.773832 |
9652492c61a0603986bec5b0b77bcf46b28ce7d7 | 49,501 | /**
* 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.cognitiveservices.vision.contentmoderator;
import com.micro... | 40.016977 | 166 | 0.664754 |
e22f41f8fa861873c6df98d92744fab2e6072921 | 336 | package de.fhg.iais.roberta.visitor.collect;
import de.fhg.iais.roberta.bean.UsedMethodBean;
public class BotnrollUsedMethodCollectorVisitor extends AbstractUsedMethodCollectorVisitor implements IBotnrollCollectorVisitor {
public BotnrollUsedMethodCollectorVisitor(UsedMethodBean.Builder builder) {
super(bu... | 37.333333 | 129 | 0.827381 |
fbc730430bee5eb647e0f1d6629670fc5e152cd3 | 2,234 | package adoctor.application.refactoring;
import adoctor.application.bean.proposal.DWProposal;
import adoctor.application.bean.proposal.ERBProposal;
import adoctor.application.bean.proposal.MethodProposal;
import org.eclipse.jface.text.BadLocationException;
import org.junit.jupiter.params.ParameterizedTest;
import org.... | 43.803922 | 158 | 0.758281 |
39d4e084ce7eeba336aefacf227be9892de98c98 | 2,717 | /*
* #%L
* A collection of simple Java utilities.
* %%
* Copyright (C) 2006 - 2014 Board of Regents of the University of
* Wisconsin-Madison.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistri... | 36.716216 | 79 | 0.688995 |
9cfc53ed9e64dfebb9e9713ccdab44d8c638a0d1 | 4,493 | package it.necst.grabnrun;
import static it.necst.grabnrun.PackageNameHelper.isAValidPackageName;
import static it.necst.grabnrun.PackageNameHelper.revertPackageNameToURL;
import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
import static org.hamcrest.CoreMatchers.equalTo;... | 38.076271 | 184 | 0.759849 |
b3f164095c805ea266bffc4d0eb79f75b44b664d | 3,459 | package com.github.st1hy.countthemcalories.activities.addmeal.fragment.view;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
... | 30.610619 | 89 | 0.735473 |
1b71dcbb03fa7a333eb99d5bf9aef8412e0cacb3 | 3,566 | /*
* Copyright 2020 American Express Travel Related Services Company, 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 requ... | 33.327103 | 112 | 0.775379 |
7bb123c023a79f021c9066c15aa025f93a81c43e | 4,006 | package com.taxation.bean;
import java.io.Serializable;
import java.util.Date;
public class SmsCheckCodeEntity implements Serializable{
/**
*
*/
private static final long serialVersionUID = 5461489827007330529L;
private String smsCheckcodeId;
private String userPhone;
private Stri... | 23.426901 | 94 | 0.626061 |
5de7f018d678b5911b3b6f5e698c922ac3964e9c | 3,420 | package com.neko.seed.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neko.seed.entity.po.Communist;
import com.neko.seed.entity.po.CommunistRelation;... | 37.173913 | 106 | 0.672515 |
4cea0d0262b8b59a0d2879fbca1856c65f19cfb4 | 89 | package com.tfg.arduImuUtils;
public interface Observado {
public void notificar();
}
| 12.714286 | 29 | 0.764045 |
76088968c1ede56af068ae92c902e07cec9cee8b | 2,862 | package translate.http;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import translate.lang.LANG;
import java.io.IOExceptio... | 29.8125 | 86 | 0.644654 |
225099f25689ffcb2e3ade42fe36c4c496c239f3 | 2,940 | /*
* 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 ... | 47.419355 | 167 | 0.747619 |
f6acf79dcb03f315a6c00913b49dc90c0df9d917 | 2,785 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017-2019 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... | 26.273585 | 80 | 0.624057 |
accfe7be78ee1f757066d157826b9c8d78efa053 | 1,982 | /* Copyright 2015 Mirosław Romaniuk (mi9rom@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 26.426667 | 83 | 0.702825 |
57f91e531a81c8df918ac8741e9996e9cf4f9804 | 398 | package org.thingsboard.common.util;
import com.google.common.util.concurrent.ListenableFuture;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
public interface ListeningExecutor extends Executor {
<T> ListenableFuture<T> executeAsync(Callable<T> task);
default <T> ListenableFut... | 23.411765 | 62 | 0.758794 |
13778d6f5dd3a2e5d781a8daba6dc3a79815ea50 | 1,606 | /**
* Copyright 2015 Santhosh Kumar Tekuri
*
* The JLibs authors license this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 29.2 | 128 | 0.647572 |
ddd453599ee302ded836907cb26bfa7dd07ce4e5 | 853 | package com.develhack.lombok.javac.handlers.assertion;
import lombok.javac.JavacAnnotationHandler;
import org.mangosdk.spi.ProviderFor;
import com.develhack.annotation.assertion.Nonnull;
import com.develhack.annotation.assertion.Nullable;
import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
@ProviderFor(JavacAnno... | 23.694444 | 73 | 0.787808 |
ea2c0bf74bc0c997bc644599331c330d717bbba6 | 1,971 | package com.github.joostvdg.jpb.cli;
import com.github.joostvdg.jpb.api.GitChangeSetParser;
import java.util.ServiceLoader;
public class JpbApp {
public static void main(String[] args) {
if (args == null || args.length < 1) {
System.out.println("Not enough parameters, exiting");
... | 35.196429 | 111 | 0.542872 |
c1a8128f370ff73a555251d42cd2bc8656696743 | 5,960 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 48.064516 | 120 | 0.720302 |
01f6a7848b6b76b82f06c7f66f3eb3c6d5b0652f | 8,134 | package de.azrael.threads;
/**
* this class is meant to search for muted users and to restart the mute timer
* in case it was still running before the bot has been restarted.
*
* If there's a muted user on the server but there are no saved details, the mute
* role will be removed.
*/
import java.awt.... | 59.808824 | 369 | 0.723137 |
e6e24b8c9a48b3f12672172ed6c5e77c0fd1f6e9 | 663 | package com.atlassian.dbexporter;
import com.atlassian.activeobjects.spi.ImportExportException;
import java.sql.SQLException;
public interface ImportExportErrorService {
ImportExportException newImportExportException(String tableName, String message);
ImportExportException newImportExportSqlException(String... | 33.15 | 104 | 0.834087 |
6a341dcecdd0f7f33738650f42059a252ddd1cdc | 2,308 | /*
* 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.969697 | 100 | 0.694107 |
e9ee70a0cdc0096bb2754fe0fcda49fb1e325915 | 3,154 | package com.example.jwt.common.response;
public enum ResultCode {
/* 成功状态码 */
SUCCESS(0,"操作成功!"),
/* 错误状态码 */
FAIL(-1,"操作失败!"),
/* 参数错误:10001-19999 */
PARAM_IS_INVALID(10001, "参数无效"),
PARAM_IS_BLANK(10002, "参数为空"),
PARAM_TYPE_BIND_ERROR(10003, "参数格式错误"),
PARAM_NOT_COMPLETE(10004... | 30.921569 | 66 | 0.688332 |
0df198d84de6c0704829abbdcfd0542fcd9b7b18 | 391 | import java.util.Scanner;
class userAdmin{
String adminId, adminPass;
void admin(){
Scanner input = new Scanner(System.in);
System.out.print("user ID : ");
adminId = input.nextLine();
System.out.print("Password : ");
adminPass = input.nextLine();
if(adminId.equal... | 23 | 67 | 0.580563 |
da990c201e3fccb8b74cbefd59e9f8a92dd95cff | 1,307 | /*
* Copyright (C) 2017 Miles Talmey.
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
package com.emarte.regurgitator.core;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import static com.emarte.regurgitator.core.CoreTypes.DECIMAL;... | 27.229167 | 95 | 0.676358 |
352fbaaee007427445b7607e3410280b7e3c1d55 | 7,305 | import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.documentation.Format;
import com.structurizr.documentation.StructurizrDocumentationTemplate;
import com.structurizr.model.*;
import com.structurizr.view.*;
/**
* Simple class for manually constructing diagrams
*/
p... | 57.97619 | 164 | 0.716906 |
22279933893cc05d5ac7ecaa397e2221f85f5379 | 2,022 | package ie.gmit.dip;
/**
*
* @author Fabrice Williams
* This class is called 'SentenceToStringRunner' and runs the entire application by asking the user to input the words to be replaced
*
*/
import java.io.IOException;
import java.util.List;
import java.util.Scanner;
/**
* The SentenceToStringRun... | 29.735294 | 134 | 0.681009 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.