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 |
|---|---|---|---|---|---|
3e6638f3041d7d463491f135dbc824808f99c5b1 | 528 | package hackerrank;
/*
We say that a string contains the word hackerrank if a subsequence of its characters spell the word
hackerrank. For example, if string it does contain hackerrank, but does not. In the second case,
the second r is missing. If we reorder the first string as , it no longer contains th... | 31.058824 | 103 | 0.702652 |
f860c47e17966e3a4e44e2d6984a240faf770b48 | 4,712 | /*
* This file is part of MAME4droid.
*
* Copyright (C) 2013 David Valdeita (Seleuco)
*
* This program 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 Software Foundation; either version 2 of the License, or
* (at your opt... | 34.394161 | 145 | 0.749151 |
cd88131975848565e7acd69ab299a14efe6e2c53 | 2,204 | package co.matisses.bcs.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author dbotero
*/
public class ObjectUtils {
private static final Logger log = Logger.getLogger(ObjectUtil... | 38 | 137 | 0.461887 |
85810aecd2e78b0c9a06a255dec42a48e1416174 | 2,329 | /*
* The MIT License (MIT) Copyright (c) 2020-2021 artipie.com
* https://github.com/artipie/rpm-adapter/LICENSE.txt
*/
package com.artipie.rpm;
import com.artipie.asto.Content;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Flowable;
import io.reactivex.FlowableOnSubscribe;
import io.reactivex.Single... | 30.644737 | 93 | 0.514384 |
5761353c1399ecc3640156cf64c156a08c73ed91 | 2,225 | package com.duck8823.web.facebook;
import com.duck8823.context.word.TokenizedWordCount;
import com.duck8823.model.facebook.FacebookAuthentication;
import com.duck8823.service.FacebookService;
import facebook4j.Facebook;
import facebook4j.FacebookException;
import lombok.extern.log4j.Log4j;
import org.springframework.b... | 30.902778 | 90 | 0.798202 |
d5c4a2788ae3d2dad59358e8ad71c8b790dcffbc | 307 | package com.leetcode.offer;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class Solution_44Test {
@Test
public void testFindNthDigit() {
Solution_44 solution_44 = new Solution_44();
System.out.println(solution_44.findNthDigit(1000000000));
}
} | 21.928571 | 65 | 0.71987 |
856af1151728cc59509bdf19a5a58442dc75ff20 | 1,930 | package com.xlx.ssmshiro.dto;
import lombok.Data;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 统一操作结果
*
* @author xielx on 2019/7/13
*/
@Data
public class ResultDTO {
private static final String SUCCESS = "操作成功";
private stat... | 18.207547 | 78 | 0.667358 |
61609f40c544329d7ce5e9aa65c60ee57dbe1dac | 2,044 | package zy.com.leetcode;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import java.util.Timer;
import java.util.TimerTask;
import network.LeetCodeSpider;
import utils.Logger;
imp... | 25.873418 | 84 | 0.587573 |
99b48a45c438e92a66d1d84cf12d8ad106eb201a | 6,071 | package joveleex.demo.springboot.security.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.*;
import org.springframework.security.config.annotat... | 45.992424 | 118 | 0.580959 |
6d1797fb121f244cee43f65a89a8dd1781c6f39a | 328 | import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void sample() {
assertEquals("100+20+6", DecimalDecomposition.decimalDecomposition(126));
assertEquals("700000+10000+2000+600+50+4", DecimalDecomposition.decimalDecomposition(712654))... | 27.333333 | 98 | 0.765244 |
d6cbfcbfb4d80ba2ccd61380b725b1df8baa684b | 560 | package models;
import play.Play;
import java.io.Serializable;
/**
* Created by demory on 4/3/15.
*/
public class AgencyBranding implements Serializable {
private static final long serialVersionUID = 1L;
public String agencyId;
public Boolean hasLogo;
public String urlRoot;
// TODO: route-... | 18.666667 | 99 | 0.692857 |
e381eca04bcada7e995da3f3049be876f9725b0c | 2,624 | package de.djuelg.vostore.storage.model;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.Required;
/**
* Created by Domi on 03.09.2016.
*/
public class TodoListItemDAO extends RealmObject {
@PrimaryKey
private String uuid;
@Required
private String ti... | 22.817391 | 202 | 0.651296 |
8c0e740576884ebf4240e4c9bc05869953b85130 | 530 | package org.core4j.xml;
public class XComment extends XNode {
private String value;
public XComment(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public XmlNodeType getNodeType() {
return XmlNodeType.COMMENT;
}
@Override... | 17.096774 | 45 | 0.611321 |
e6f06b3d9719405b8dc1de08fa36aee862ea4307 | 1,675 | /*
* 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 br.com.bytebank.banco.test.util;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Samuel
*/
public class... | 27.916667 | 105 | 0.608955 |
089c3ccdcd010fcf8b2472282cbbba4216f7ce40 | 60,284 | /*
* This file was automatically generated by EvoSuite
* Sat Nov 07 13:35:49 GMT 2020
*/
package net.sourceforge.squirrel_sql.plugins.dbcopy.util;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
im... | 31.512807 | 477 | 0.633352 |
b29f37c485cd3f0c62ce272708fb172c1871685f | 4,462 | /**
* This class is generated by jOOQ
*/
package org.jooq.examples.sqlserver.adventureworks.production.tables.records;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings("all")
@javax.persistence.Entity
@javax.persistence.Table(name = "ScrapReason", schema = "Production")
public class ScrapReaso... | 29.163399 | 233 | 0.653967 |
74ea825265044bf82f14b84f2cdd15c9bb65f50f | 4,874 | /*
* 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... | 36.924242 | 100 | 0.695527 |
bd3bb586e1a450ec5834971f4850de2d5dd7e29c | 1,483 | package com.avasthi.roadcompanion.service;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.widget.Toast;
import com.google.android.gms.gcm.GoogleCloudMessaging;
import java.util.log... | 33.704545 | 107 | 0.675657 |
64cf729b419c817b03967314e0c4fadd21422a45 | 12,516 | package it.univaq.disim.mobile.myunivaq;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springfra... | 42.141414 | 141 | 0.778444 |
eaee050f92902073fe07cd9875cc4b2b05433373 | 3,623 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.samples.connectors.orgsync.secadmin.client;
import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
import org.odpi.openmetadata.samples.connectors.orgsync.ffdc.Or... | 27.037313 | 126 | 0.618824 |
2088b3852e072be1e4379c35fec95c2826987e9b | 2,002 | package com.atguigu.gulimall.product.service.impl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;
import com.atguigu.gulimall.product.dao.SkuInfoDao;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.service.SkuInfoService;
import com.baomi... | 41.708333 | 144 | 0.676324 |
e6f907be996655e6a0aee2195e1d38afb9a93733 | 3,045 | /*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... | 43.5 | 210 | 0.665025 |
8839f9359a3c56151059fc63358088d999f204f7 | 6,860 | package xyz.joestr.mycmd.util;
import java.io.File;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.logging.Level;
import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection... | 21.708861 | 107 | 0.676968 |
bd9cf4d7320175362f46b7ffaefc86acb2563c00 | 166 | package fi.helsinki.cs.tmc.cli.utils;
@FunctionalInterface
public interface BiConsumerWithException<R, T> {
void apply(R r, T t) throws BadValueTypeException;
}
| 23.714286 | 54 | 0.777108 |
986ca2279c2e125820a1b6cb67f032b2767f5626 | 903 | package com.github.ssullivan.core;
import com.github.ssullivan.core.analytics.Sets;
import com.google.common.collect.ImmutableSet;
import org.hamcrest.Matchers;
import org.hamcrest.junit.MatcherAssert;
import org.junit.jupiter.api.Test;
public class SetsTest {
@Test
public void testAnyOfInt() {
MatcherAssert... | 25.8 | 85 | 0.685493 |
1a58ee1ac98aa9d0489bd94f118393f0c54ad0f5 | 17,790 | /**
* 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... | 28.601286 | 93 | 0.618269 |
19a378c4f8850503a170e32343bf4132fe6e4f4f | 4,128 |
package quiz;
import java.util.Scanner;
public class Quiz {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int rightAnswers = 0;
System.out.println("Here comes a quiz. No cheating!");
System.out.println("Question 1: What is t... | 33.836066 | 97 | 0.529554 |
3361fde0d503b995eacf0adfc78eb8a6d03991df | 2,501 | package me.peanut.hydrogen.module.modules.combat;
import com.darkmagician6.eventapi.EventTarget;
import net.minecraft.client.gui.GuiChat;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemAxe;
i... | 46.314815 | 384 | 0.714514 |
07443b824faf81a6480eaa005912d9f26108720e | 592 |
/********************************************Character Variable********************************************/
// Char variables are kept in unicode for, hence you can use this to inatilize the variable
public class charBool{
public static void main(String[] args){
char myChar = 'D';
char myUnicode = '\u0044'; //... | 34.823529 | 108 | 0.586149 |
cc6a04df67f5966f09496f5ccd1519c47d7074bf | 160 | package base;
public class Dog extends Mammal{
public Dog(boolean hasFur, Integer height, Integer weight) {
super(hasFur, height, weight);
}
}
| 20 | 64 | 0.68125 |
437e9cf2beb35412e5f4229795f775273c5b0527 | 6,552 | /*******************************************************************************
* Copyright (c) 2005, 2007 Remy Suen
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... | 37.872832 | 135 | 0.512668 |
980f5e85cbe60cb38f663a9ad984df25a2985eed | 1,645 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 37.386364 | 133 | 0.631003 |
3cf39505403700e5c20e625109abe24a8d979971 | 13,654 | /*
* Copyright (C) 2012 Tobias Brunner
* Copyright (C) 2012 Giuliano Grassi
* Copyright (C) 2012 Ralf Sager
* Hochschule fuer Technik Rapperswil
*
* This program 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 Software Fou... | 30.82167 | 113 | 0.749085 |
d2e66f3eaafffb5175789cef68d19b5c72502d4c | 1,680 | //Name:Amey Puranik
//Netid - axp1390
//Date : 03/27/2018
import java.nio.file.Paths;
import java.nio.file.Files;
import java.util.Arrays;
public class hmwk_02{
public static void processToken( String token ) {
String inttoken= "^[0][dD][0-9]+$";
String Flotingpoint= "^[0-9]+\\.[0-9]+$";
String I... | 26.25 | 77 | 0.464881 |
3d537eeaf0ef433914c9ea68a4d5c1acfff5f0ff | 862 | package ru.vibrotek;
import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Predicate;
/**
*
*/
public class ViMap<K, V> {
public void put(K key, V measuringNode) {
}
public void add(K key, V value) {
}
public V remove(K key) {
return null;
}
pub... | 14.610169 | 50 | 0.573086 |
415265547785204ae51bcda3db0a4e8bbef2a458 | 1,191 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) fieldsfirst
// Source File Name: AVProbeData.java
package com.yw.ffmpegj.libavformat;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Array... | 20.186441 | 64 | 0.618808 |
1a3d98a8baf5b673d8fed29825fcc5a5a7330a55 | 1,130 | package org.batfish.grammar.f5_bigip_imish.parsing;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
import javax.annotation.ParametersAreNonnullByDefault;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.batfish.grammar.BatfishParser;
/**
* F... | 31.388889 | 99 | 0.725664 |
3bef2b8bd9a18e4d53b8b492be3dc3b7f9979067 | 13,233 | /*
The MIT License (MIT)
Copyright (c) Terry Evans Vaughn "VCSCode"
All rights reserved.
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 limitatio... | 41.096273 | 412 | 0.636968 |
c6fc019988e19a7f2c8321ec3a1e8d55f4acae3e | 596 | package view;
import javax.swing.JLabel;
import javax.swing.JTextField;
public class QuestaoDiscursiva extends MostraQuestao{
private JLabel label;
public QuestaoDiscursiva(){
super("Questão Discursiva");
criarBotoes("Discursiva", null, null, null);
}
@Override
public void c... | 24.833333 | 53 | 0.645973 |
c527793a9f7a1bfa07a29685275cc4dd2145c631 | 3,149 | package org.czw.flight.controller;
import com.alibaba.fastjson.JSONObject;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.authz.annotation.RequiresUser;
import org.czw.flight.model.Admin;
import org.czw.flight.model.Route;
i... | 37.047059 | 112 | 0.710702 |
d023fe2eb9db97869b80767a83fce079d4726e59 | 8,951 | package eu.sajato.logw;
import eu.sajato.logw.javaLogging.JavaLoggingWrapper;
import java.util.Iterator;
import java.util.ServiceLoader;
import java.util.function.Supplier;
/**
* This is the main class of the logging wrapper.
* You can use the static logging methods to directly log messages
* to the wrapped loggi... | 39.959821 | 197 | 0.665401 |
c5e4653ef12829afc18ca93c3d8ef8631cef9623 | 2,659 | package com.shikhar.mario.objects.creatures;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.Random;
import com.shikhar.mario.core.animation.Animation;
import com.shikhar.mario.core.sound.specific.MarioSoundManager22050Hz;
import com.shikhar.mario.core.tile.TileMap;
import com.sh... | 28.287234 | 89 | 0.689357 |
3736c72e9bfc1dcb40c2c67d821a9b47eb74a2df | 3,188 | /*
* 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")... | 26.789916 | 115 | 0.710477 |
78504f11a2c560b431eb8b9a4539a82af7ad6b2f | 537 | package io.github.benzwreck.wykop4j.links;
/**
* This class represents related link's vote data.
*/
public class RelatedLinkVoteData {
private final int voteCount;
public RelatedLinkVoteData(int voteCount) {
this.voteCount = voteCount;
}
/**
* Gets related link's vote count.
*/
... | 19.888889 | 50 | 0.590317 |
37d7c57a002f99b8baaab16f04b20d6921915c3b | 5,099 | /*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 39.835938 | 97 | 0.710531 |
e003638066c6ec956a450ec2f8686428f1ba4f29 | 19,172 | /* Copyright (C) 1999, 2002 Hewlett-Packard Company
This file is part of Mauve.
Mauve 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 Software Foundation; either version 2, or (at your option)
any later version.
M... | 29.862928 | 98 | 0.621844 |
7c8716c7230f5a86b2b959407c1fd3f6ed84f5f1 | 2,360 | package io.github.sleepingraven.util.datastructure.binarytree;
import io.github.sleepingraven.util.datastructure.common.Formatter;
import io.github.sleepingraven.util.datastructure.common.annotations.Meta;
import io.github.sleepingraven.util.datastructure.common.annotations.Meta.Represent;
import io.github.sleepingrav... | 44.528302 | 100 | 0.719492 |
8cc93ad162facf8b681ef486bcaf8da93947f749 | 2,836 | package id.ac.stiepertiba.pertiba.models;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayL... | 34.168675 | 100 | 0.657264 |
48c9f991e3a2a1a10120a886dd7d3909564bd70c | 116 | package com.nepfix.sim.core;
public interface Processor extends NepElement {
String process(String input);
}
| 14.5 | 47 | 0.758621 |
96956e5a25a488adaa4aa075df99d6d8b6ac635b | 3,369 | package otomir23.connect.server.util;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Date;
import java.util.Random;
p... | 28.794872 | 226 | 0.560107 |
ac51473e2e0232c7089f4f1352db11afc6582f8a | 857 | package mailzy.exchange;
import java.awt.AWTException;
import java.awt.Image;
import java.awt.SystemTray;
import java.awt.Toolkit;
import java.awt.TrayIcon;
import java.awt.TrayIcon.MessageType;
import java.util.ArrayList;
import java.util.List;
import mailzy.MainForm;
public class Notification {
public void displ... | 27.645161 | 105 | 0.718786 |
8c5340920a9aae6fe90ac84e195c1b4b7ded8641 | 185 | package com.aek56.atm.company.MGYS3_GYSTJYYXX;
import org.jfpc.framework.support.ISDatabaseSupport;
/** 供应商添加医院信息*/
public interface MGYS3_GYSTJYYXXDao extends ISDatabaseSupport{
}
| 20.555556 | 62 | 0.821622 |
c73d9e3b201506ee51a69ab3dc65484ab7538a35 | 3,431 | package joshie.enchiridion.library;
import joshie.enchiridion.ECommonProxy;
import joshie.enchiridion.EConfig;
import joshie.enchiridion.api.EnchiridionAPI;
import joshie.enchiridion.lib.EInfo;
import joshie.enchiridion.util.SafeStack;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemSta... | 31.768519 | 105 | 0.672399 |
7f7e985dc8af2f7a75f146428d74c420df1810be | 9,696 | package module;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import com.mysql.jdbc.Connection;
import Bean.AlumnoBean;
import jdbc.Cursor;
import jdbc.JDBCTemplate;
import jdbc.MySQLConfiguration;
... | 36.179104 | 193 | 0.682859 |
f8b04babb5ce42a85ba9794f9919af26d2222f97 | 1,280 | package ru.job4j.crud.servlets;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import static ru.job4j.crud.Constants.URI... | 31.219512 | 96 | 0.721094 |
331e6ba6d23a363ecae0d0288d2743c908a7c65c | 3,676 | package com.onevgo.j2se.collection;
import java.util.*;
public class MapMain {
public static void main(String[] args) {
}
public void testHashMap1() {
Map map = new HashMap();
map.put("AA", 213);
map.put("BB", 456);
map.put("BB", 456);
map.put(123, "CC");
... | 30.131148 | 80 | 0.489935 |
a5f52a8c91222d7b86f9f8c0d5d5895bc3ecbdb3 | 3,299 | /*******************************************************************************
* Copyright (c) 2015-2017 Uwe Köckemann <uwe.kockemann@oru.se>
*
* 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 ... | 37.488636 | 107 | 0.719309 |
6727969cb3785b43ff3454610f52ffde4aa4d0fa | 5,062 | /*
* Copyright 2018-2019 adorsys GmbH & Co KG
*
* 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 ... | 50.118812 | 125 | 0.561241 |
65d87f791fe46f4ee2adfd7bca0971fdc49f47e2 | 2,449 | package app.project.gamestart.web.controllers;
import org.springframework.web.servlet.ModelAndView;
public abstract class BaseController {
private static final String BASE_PAGE_LAYOUT = "/base/base-layout";
private static final String PROPERTY_VIEW_NAME = "viewName";
private static final String PROPERTY_... | 38.265625 | 165 | 0.727236 |
e9203708e503294763fdbd1d61c662f2b9e906f1 | 366 | package com.flat.view.popups.base.buttons;
import javafx.scene.control.Button;
/**
*
* @author Christopher Brantley <c_brantl@uncg.edu>
*/
public class IconButton extends Button {
public IconButton () {
super.getStyleClass().removeAll(super.getStyleClass());
super.getStyleClass().add("popupIco... | 21.529412 | 63 | 0.68306 |
85ed372808a1f3e7c24398ca12086b1781d87726 | 2,918 | /*
* Copyright (c) 2009, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condition... | 40.527778 | 104 | 0.728581 |
abd64eac802e3bcd689b7b9604b4e33b9e24565c | 7,649 | /*
* NewJDialog.java
*
* Created on 20. M�rz 2008, 22:44
*/
package dimm.home.Panels;
import home.shared.SQL.SQLResult;
import dimm.home.Models.OverviewModel;
import dimm.home.Rendering.GlossTable;
import dimm.home.Rendering.TitlePanel;
import dimm.home.Rendering.SQLOverviewDialog;
import dimm.home.UserMain;
impor... | 25.667785 | 161 | 0.587266 |
99e7c2e676f4949e07d6e905fb40064dae66d48b | 1,796 | package org.jboss.resteasy.spi;
import javax.ws.rs.core.Response;
/**
* Any exception thrown by a MessageBodyWriter chain that is not an instance of a WriterException is caught internally
* by the Resteasy runtime and wrapped with an instance of WriterException.
*
* If you want to have special exception handling ... | 26.411765 | 141 | 0.709911 |
962a8a5a9b414d070c197a912811bac1c4d425f9 | 6,951 | /**
*
*/
package com.cheetah.dubbo.common.utils;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.Consts;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.fluent.Request;
i... | 25.368613 | 111 | 0.656021 |
875a2083d2a3e1c9d19691e17ec4a0a56ebb84a9 | 352 | package com.ryulth.klashelper.repository;
import com.ryulth.klashelper.dto.Comment;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface CommentRepository extends CrudRepository<Comment,Long> {
List<Commen... | 27.076923 | 73 | 0.829545 |
b0a2ebc42af33e5ee03aa5c726c3001f382b7636 | 4,867 | /*
* Copyright 2020-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 45.915094 | 121 | 0.811383 |
f56ebfe9c17c6c01844474f1590a6fe34352d131 | 520 | package org.erhmutlu.algrthms.traversal;
public class TreeRotation {
public static Node rotateRight(Node oldRoot) {
Node newRoot = oldRoot.getLeftChild();
oldRoot.setLeftChild(newRoot.getRightChild());
newRoot.setRightChild(oldRoot);
return newRoot;
}
public static Node ro... | 26 | 54 | 0.675 |
de5f5cfb455f0d7d567772f2321077864a0e649f | 4,027 | package cn.jhc.um.servlet;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.MessageFormat;
import java.util.Collection;
import java.util.Properties;
import java.util.ResourceBundle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.Servle... | 32.475806 | 100 | 0.732555 |
3ac0755976cb9c84a420b637252b801799993c50 | 614 | package edu.uw.edm.pws.model.search;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import edu.uw.edm.pws.model.Person;
import lombok.Data;
/**
* @author Maxime Deravet Date: 2019-02-15
*/
@Data
@JsonIgnoreProperties(ignor... | 20.466667 | 61 | 0.7443 |
040d6d8769d35a8b15928ed8a959a15a67732004 | 6,888 | package com.rain.utils.android.robocop.model;
import com.google.gson.annotations.SerializedName;
/**
* Created with IntelliJ IDEA.
* User: dustin
* Date: 2/4/14
* Time: 4:52 PM
*/
public class ContentProviderRelationshipModel {
public static final String RELATIONSHIP_TYPE_TO_ONE = "to_one";
public stati... | 33.931034 | 149 | 0.704123 |
745b6365492175d6652dfc25c77f182674759274 | 345 | package tech.tablesaw.sorting;
/**
*
*/
public class IntComparisonUtil {
private static IntComparisonUtil instance = new IntComparisonUtil();
private IntComparisonUtil() {
}
public static IntComparisonUtil getInstance() {
return instance;
}
public int compare(int a, int b) {
... | 16.428571 | 72 | 0.643478 |
605f2a0c20de375fa7934ad5b3fb05a8e59b6c1e | 273 | import java.io.*;
public class BufferedInputStreamTest {
public static void main(String[] args) throws Exception {
BufferedInputStream stream = new BufferedInputStream(new StringBufferInputStream("1234567890"));
stream.reset();
int c = stream.read();
}
}
| 27.3 | 99 | 0.728938 |
fb4c7328cb73b969188d47a0a6159eedfa17b74e | 5,604 | package com.pesho.fileshare.controllers;
import com.pesho.fileshare.models.ConfirmationToken;
import com.pesho.fileshare.models.DBFile;
import com.pesho.fileshare.models.DBFileType;
import com.pesho.fileshare.models.User;
import com.pesho.fileshare.repositories.ConfirmationTokenRepository;
import com.pesho.fileshare.r... | 39.188811 | 136 | 0.708244 |
e9955c147ef36c3dc53bb659a0a91eea99e08d71 | 1,758 | /*
* Copyright 2021 Alibaba Group Holding Limited.
*
* 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 ... | 23.756757 | 75 | 0.637088 |
88033cc06df0121d22748889c5b331f70dcfeea7 | 9,638 | package com.iget.flog;
import android.util.Log;
import com.iget.datatranshub.callback.ISoload;
import com.iget.datatranshub.callback.IUploadCallback;
import com.iget.datatranshub.callback.IUploadImp;
public class Flog implements com.iget.flog.Log.LogImp {
private long mNativeFlog = 0;
private static ISoload ... | 31.394137 | 123 | 0.611953 |
72db64d2e3fa7ad37d2835932fead2e3fc5c099a | 2,351 | package com.aos.testbed;
import java.io.IOException;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import com.aos.client.TestClient;
import com.aos.common.HandlerQueueObject;
import com.aos.common.Que... | 26.41573 | 107 | 0.70353 |
c2ffe0ac61d6edce2ad1a20b122aed511f53de93 | 12,858 | package seaweedfs.client;
import com.google.common.base.Strings;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class FilerClient extends FilerGrpcClient {
private static ... | 37.929204 | 142 | 0.56704 |
ddff331ceed989233863d8984ec1fc7d1ee7db48 | 352 | package net.timardo.forgekit.capabilities.entity;
public interface IEntityAgeableBukkitCapability {
/**
* Sets the locked state of age of an entity, if true, its age will remain same until unlocked or killed
*/
public void setAgeLocked(boolean value);
/**
* Gets the locked state of age of an entity
*/
pu... | 23.466667 | 105 | 0.738636 |
195ddd0932622ac04709eea46c23e10578ccb7ab | 316 | package com.wangjiegulu.rapidooo.vo.simple;
import com.wangjiegulu.rapidooo.api.OOOs;
/**
* Author: wangjie
* Email: tiantian.china.2@gmail.com
* Date: 18/04/2018.
*/
@OOOs(suffix = "VO", fromSuffix = "BO", ooosPackages = "com.wangjiegulu.rapidooo.depmodule.bll.xbo.simple")
public class SimpleVOGenerator {
}
| 24.307692 | 107 | 0.731013 |
3752f49fd2854da68463b53165ecf007206e8bb4 | 172 | package com.faust.security.secret;
@FunctionalInterface
public interface WorkThatCanThrow<T> {
T work(final DestroyableSecrets destroyableSecrets) throws Throwable;
}
| 24.571429 | 73 | 0.819767 |
496a263230668185eb8cb350caa7873da81bac5f | 978 | package com.ss.android.apker.jar.loader;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
/**
* LayoutInflater的构造器是protected类型,无法通过new实例化,
* 通过自定义提高访问权限
* @author chenlifeng1
*
*/
public class JarLayoutInflater extends La... | 26.432432 | 145 | 0.715746 |
d4296144e8a39a09e43dac020677702afd650d01 | 20,290 | /*
* Copyright 2010-2012 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 41.239837 | 121 | 0.662494 |
e393209ce40bbd542ac6799b1f916bdb0470b896 | 369 | package guru.springframework.MockitoTest;
import org.junit.jupiter.api.Test;
import java.util.Map;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.mock;
public class InlineMockTest {
@Test
void inLineMockTestMethod() {
Map mockMap = mock(Map.class);
... | 18.45 | 60 | 0.720867 |
a159a92b25f7065f3f0efa5d9496088311a34bf2 | 1,642 | package ch.vorburger.webdriver.runner.core.providers;
import java.io.IOException;
import org.openqa.selenium.chrome.ChromeDriverService;
/**
* DriverService which starts up lazily on first invocation of
* getDriverService(), subsequently returns the same, and auto-stops it on
* shutdown or GC.
*
* Quote: "Star... | 26.483871 | 127 | 0.733252 |
a12e91dc7a774e5f2383c3b5eba83dbd4b6fe8e3 | 627 |
import java.io.*;
import java.util.*;
public class ketchup {
public static void main(String[] args) {
// Open in the input
Scanner in = new Scanner(System.in);
// Read in the number of items
int numItems = in.nextInt();
// Loop for each item
... | 25.08 | 76 | 0.527911 |
8d72ce57031c9281b0190c567a0e1ce07f57c791 | 6,222 | package com.progzc.blog.common.utils;
import com.progzc.blog.common.enums.ErrorEnum;
import com.progzc.blog.common.exception.MyException;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvPar... | 32.920635 | 125 | 0.624237 |
f549d38e0b7afef073cbf174de533ac991e63b0d | 3,677 | package cn.xianyum.proxy.metrics;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
public class... | 28.503876 | 121 | 0.646995 |
897f4eaa6815bad910407986ed6686ad7858a08c | 1,492 | package com.raoulvdberge.refinedstorage.network;
import com.raoulvdberge.refinedstorage.api.network.grid.IGrid;
import com.raoulvdberge.refinedstorage.container.ContainerGrid;
import io.netty.buffer.ByteBuf;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.Container;
import net.minecra... | 29.84 | 114 | 0.69571 |
640fb01fd824f79107f3dda8b2700f24b21ec05b | 1,728 | package org.dimdev.utilities;
import java.util.ArrayList;
import java.util.Collections;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.network.IGuiHandler;
import net.minecraftforge.fml.common.network.NetworkRegistry;
public abstract class GuiH... | 26.181818 | 107 | 0.701389 |
c495d9a8d0e0c467871cf1733ec9ee3151301346 | 26,503 | /*
* 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")... | 39.556716 | 363 | 0.665849 |
f34db83cf559d9699000349a69a22c35bc298af0 | 204 | package uk.co.terminological.bibliography.clinicaltrials;
public class ClinicalTrialsClient {
//TODO: https://clinicaltrials.gov/api/gui/ref/responses
//https://aact.ctti-clinicaltrials.org/r
}
| 20.4 | 58 | 0.769608 |
70c637c041bbdc5cd366c8b09bbb98f4d4ee39a3 | 346 | package yolocorp.fowlercastle.model;
public class Ouvert extends EtatCoffre {
private static EtatCoffre instance;
public synchronized static EtatCoffre getInstance() {
if (instance == null) {
instance = new Ouvert();
}
return instance;
}
public void fermerCoffre (Coffre coffre) {
coffre.setEtat(Fer... | 18.210526 | 54 | 0.722543 |
4c37cb653a950a6355f9dcdf770a5196a1dcc54d | 1,299 | package com.octoperf.cluster.api;
import com.google.common.testing.NullPointerTester;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static com.google.common.testing.NullPointerTester.Visibility.PACKAGE;
import static org.mockito.Mockito.mock;
public abstract class AbstractClusteredTo... | 25.470588 | 83 | 0.752887 |
4604b93410c4a54167e149aaac2a6d2c977a3b80 | 2,503 | package sb.behaviours.manual;
import java.util.Date;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;
import jade.core.behaviours.OneShotBehaviour;
import jade.domain.FIPANames;
import jade.domain.FIPAAgentManagement.NotUnderstoodExcepti... | 27.811111 | 120 | 0.723132 |
339168fec947f7c2a4a9fa09b200dca0e1c6e12b | 1,400 | package org.incode.platform.dom.alias.integtests.demo.fixture.data;
import org.apache.isis.applib.annotation.Programmatic;
import org.apache.isis.applib.services.registry.ServiceRegistry2;
import org.incode.module.fixturesupport.dom.data.DemoData;
import org.incode.module.fixturesupport.dom.data.DemoDataPersistAbstra... | 27.45098 | 114 | 0.725 |
7575305a8d932b9df19af7e2879c9bfdec7e917e | 1,765 | package com.star.easydoc.config;
import java.util.Objects;
import java.util.TreeMap;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;
import com.star.easydoc.m... | 37.553191 | 103 | 0.746176 |
5e48e2e2017b39be1ec7941cc2a3472fc79b2143 | 468 | package dyliang.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
public class Pet {
@Getter
@Setter
private String name;
@Getter
@Setter
private Integer age;
@Override
public... | 16.714286 | 40 | 0.583333 |
28a887c6bdb136b8d35b3eff54339bded737689f | 10,602 | /*
The MIT License (MIT)
Copyright (c) 2015 Florian
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, merg... | 36.558621 | 162 | 0.603377 |
e79c54109b752091543ecc5b2b5557c274bd0421 | 1,881 | /***
Copyright (c) 2012-15 CommonsWare, LLC
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,... | 31.881356 | 78 | 0.763424 |
c92da5312431b6ce4037250cbad5371b3ce9eb9c | 2,537 | package com.galigaigai.jobbridge.controller;
import com.galigaigai.jobbridge.model.Company;
import com.galigaigai.jobbridge.model.Student;
import com.galigaigai.jobbridge.model.StudentDetail;
import com.galigaigai.jobbridge.repository.StudentDetailRepository;
import com.galigaigai.jobbridge.repository.StudentRepositor... | 41.590164 | 124 | 0.750887 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.