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 |
|---|---|---|---|---|---|
53afc42353987238ccfb20169136b6191901d9f7 | 1,319 | /*
* Copyright © 2020 Treblereel
*
* 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 wri... | 24.425926 | 100 | 0.648976 |
c49d4f0dd8d87a71da000e4c03163fb8b49a2609 | 1,581 | package github.fushaolei.wpserver.entity;
/**
* http response
*/
public class Reply<T> {
private int code;
private String msg;
private T data;
public Reply() {
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
publi... | 20.802632 | 51 | 0.563567 |
9ced2cb1abed9431fa5914e9f5eaa375a16b7a23 | 6,231 | package hudson.init;
import com.google.inject.Injector;
import hudson.model.Hudson;
import jenkins.model.Jenkins;
import org.jvnet.hudson.annotation_indexer.Index;
import org.jvnet.hudson.reactor.Milestone;
import org.jvnet.hudson.reactor.MilestoneImpl;
import org.jvnet.hudson.reactor.Reactor;
import org.jvnet.hudson.... | 31.629442 | 116 | 0.600225 |
b3689041e8876f6c5fc8111117b95faf960b7315 | 2,286 | package gremlin.cards;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.RemoveSpecificPowerAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
impo... | 35.71875 | 105 | 0.707349 |
fdb45e5cbe59724d149cf58c11a265cf38e32404 | 10,312 | package com.simplelifestudio.letscook1.controller;
/*Desarrollado por
Ivan Escudero
Richar Quiroz
Todo los derechos reservado 2020*/
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Hand... | 42.089796 | 136 | 0.701125 |
7633f6ce2d2ac4c24de5f2410424154cc6b277f1 | 2,249 | package com.ruoyi.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbQueryInsrncMapper;
import com.ruoyi.system.domain.TbQueryInsrnc;
import com.ruoyi.system.service.ITbQueryInsrncSer... | 21.625 | 83 | 0.662517 |
1934e08f1a788114f7bbe5361b9c19f8aac624cf | 1,003 | /**
* @Title: LoginAttemptUserRepository.java
* @Package com.xdidian.keryhu.authserver.repository
* @Description: TODO(用一句话描述该文件做什么)
* @author keryhu keryhu@hotmail.com
* @date 2016年4月30日 下午1:55:49
* @version V1.0
*/
package com.xdidian.keryhu.auth_server.repository;
import org.springframework.data.mongodb.repo... | 23.325581 | 95 | 0.754736 |
408f32e84f5db015eaaad6c8923f601424489c97 | 177 | package wooteco.prolog;
import org.springframework.beans.factory.annotation.Autowired;
public class AcceptanceSteps {
@Autowired
public AcceptanceContext context;
}
| 16.090909 | 62 | 0.79096 |
353f62cd4fa20ad7ebb672845bb3bff88ace37a2 | 2,530 | /**
* 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 m... | 27.5 | 76 | 0.666008 |
481199b67083119cbc7e515e8ecb57b278052f3d | 15,757 | package online.Category;
import android.Manifest;
import android.app.ActivityOptions;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.su... | 40.821244 | 154 | 0.641429 |
44c6b3c73b74de00251b6e0083ac3e9fb0c85137 | 1,078 | package org.maracas.delta.internal;
import org.rascalmpl.interpreter.IEvaluatorContext;
import io.usethesource.vallang.IList;
import io.usethesource.vallang.ISourceLocation;
import io.usethesource.vallang.IString;
import io.usethesource.vallang.IValueFactory;
import io.usethesource.vallang.type.TypeStore;
public cla... | 32.666667 | 165 | 0.810761 |
0fffb1a007f8cfc2191587e858a069deafd09cb3 | 817 | /*
* Copyright (C) 2021 Baidu, Inc. All Rights Reserved.
*/
package com.baidu.iot.shared.sub.transport.enums;
/**
* Created by mafei01 in 6/1/21 10:25 AM
*/
public enum Qos {
AT_MOST_ONCE(0),
AT_LEAST_ONCE(1),
EXACTLY_ONCE(2),
FAILURE(0x80);
private final int value;
Qos(int value) {
... | 19.926829 | 76 | 0.523868 |
c9b8cafe755b764909c072b96112d0697dfecd86 | 32,015 | /* ###
* IP: GHIDRA
*
* 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 writin... | 29.588725 | 103 | 0.724598 |
5815ae044d8463ed3b5f62edeff7d39002e3d4d8 | 693 | package com.mygdx.game.managers;
import com.badlogic.gdx.physics.box2d.*;
import com.mygdx.game.states.GameState;
public class ContactManager implements ContactListener {
private GameState parent;
public ContactManager (GameState parent) {
this.parent = parent;
}
@Override
public void b... | 19.25 | 68 | 0.683983 |
d1b3f3f9c6d2ed212350b954a809a7c93669fb3e | 2,427 | package seedu.address.logic.commands.tasks;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
import static seedu.address.model.Model.PREDICATE_SHOW_ALL_GROUPS;
import static seedu.address.model.Model.PREDICATE_SHOW_ALL_TASKS;
import java.util.List;
import seedu.address.commons.core.Messages... | 35.173913 | 95 | 0.748661 |
4c5f9dfe68622ec2078560220703499f164ab4bc | 3,968 | package net.shrimpworks.unreal.archive.submitter;
import java.beans.ConstructorProperties;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import ... | 23.341176 | 116 | 0.703629 |
0803f7b48ebf6c5b6d2efeba47c630450be3d104 | 1,585 | /*
https://www.interviewbit.com/problems/length-of-longest-subsequence/
Length of Longest Subsequence
Asked in:
Microsoft
Problem Setter: mayank111 Problem Tester: glowing_glare
Given an array of integers, find the length of longest subsequence which is first increasing then decreasing.
**Example: **
For the g... | 22.642857 | 109 | 0.457413 |
eec5334ba4ba89fc1258df12d38c58c2d4266829 | 3,246 | /*
* Copyright 2007-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 32.46 | 135 | 0.791744 |
8c76313b69943f3952dc16aaf0c84b5ff7888369 | 926 | package com.example;
import java.util.HashMap;
import java.util.Map;
/**
* @author Binnur Kurt <binnur.kurt@gmail.com>
*/
public class StudyMap {
public static void main(String[] args) {
Map<String, Integer> areaCodes = new HashMap<>();
areaCodes.put("istanbul-anadolu", 216);
areaCodes.put("istanbul-avrupa"... | 22.047619 | 51 | 0.637149 |
7851ca609ddfb4fb9b6b6fbfbec5d322081cb09e | 307 | package com.capgemini.resilience.travel.service;
import com.capgemini.resilience.travel.rest.EmployerTO;
import rx.Observable;
/**
* Created by kso on 18.02.16.
*/
public interface EmployerProxy {
EmployerTO getEmployer(int number);
Observable<EmployerTO> getEmployerObservable(int number);
}
| 20.466667 | 61 | 0.76873 |
7a472375b297da2d99b175aba649198ae3e033a8 | 3,967 | /*
* 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 ... | 30.05303 | 123 | 0.663474 |
ce736d137c6e6503caafb6f61dd09c80e9b469e9 | 3,892 | package io.praveen.typenote;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
i... | 38.92 | 150 | 0.68705 |
622be55c98ffaaa93c546f2706533e48de41d77a | 6,680 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ziver Koc
*
* 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, co... | 44.533333 | 122 | 0.62515 |
b5055aa9601902ed70d4796eb7e09479b414947a | 21,053 | package com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.cqrs_indexed_repository;
import com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.indexer.PrefixFileIndexer;
import com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.serializer.CsvSerializer;
import com.gitlab.hillel.dnepr.java.ee.oleksii.zinkevych.serializer.J... | 39.647834 | 121 | 0.506151 |
b929928ebeb4b1ad796b97d316d2408b35c7d34c | 2,102 | package com.baeldung.si.security;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.security.channel.C... | 44.723404 | 162 | 0.824453 |
fda6a2b4420f6576b4a5929b448bef10139f24f3 | 2,759 | package hamsterwheel.util;
import hamsterwheel.core.MouseUpdate;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.function.Consum... | 33.646341 | 110 | 0.628851 |
be4621e2d90d47082095e247212ed9fc908ce0a7 | 655 | package com.alibaba.alink.operator.batch.dataproc.format;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.common.dataproc.format.FormatType;
import com.alibaba.alink.params.dataproc.format.VectorToKvParams;
/**
* Transform data type from Vector to Kv.
*/
public class VectorToKvB... | 27.291667 | 81 | 0.79542 |
81f975c537826e7407e3d7356177832e5eac686d | 1,180 | package com.example.lyl.refreshlayoutdemo;
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.ArrayList;
import java.util.List;
/**
* Created by dllo on 18/1/30.
*/
public clas... | 25.106383 | 111 | 0.679661 |
814aecb3b7547b90302eb0ecd02f22c7625334a1 | 5,146 | import java.io.IOException;
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("cv")
@Implements("PacketWriter")
public class PacketWriter ... | 23.824074 | 99 | 0.67295 |
1a3ea6096c823c797fb157cab0835b77a1db93ae | 4,913 | /*
* Copyright (C) 2018 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... | 39.304 | 97 | 0.686139 |
4e6a8f33a62c0bb31b350f421c9c4582a61b5887 | 2,083 | /*CopyrightHere*/
package repast.simphony.space.continuous;
import cern.jet.random.Uniform;
public interface CoordinateAccessor<T, U> {
/**
* Attempts to put the specified object at the specified location. Returns true if the put was
* successful. The semantics of the result will be determined by impleme... | 31.560606 | 96 | 0.646663 |
ff4dd57cab7b5689cacb348fbc30c3acf3beedf9 | 882 |
public class Robot1 {
private double batteryCharge = 5.0; // instance variable
// Instance Method #1 - Recharges the battery of the robot
public void batteryReCharge(double c) {
this.batteryCharge += c;
System.out.println("Battery charge is: " + this.batteryCharge);
}
// Instance Method #2 - Moves the rob... | 25.941176 | 67 | 0.643991 |
dcd7cfd1c202c15d38babb110bf5298392ee6156 | 417 | package net.loomchild.maligna.parser;
/**
* Represrnts TMX document parsing exception
*
* @author Jarek Lipski (loomchild)
*/
public class TmxParseException extends RuntimeException {
private static final long serialVersionUID = 5752610837896744124L;
public TmxParseException(String message) {
super(message);... | 19.857143 | 67 | 0.764988 |
e3015d15d0f22ecdc2de7eb7137cecc978dd9fe4 | 24,312 | /*
* Copyright (c) 2016 Tim Malseed
*
* 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.347003 | 194 | 0.659263 |
2932ca4272dcc1bc60888b0034723ea7714dd6b6 | 12,766 | /*
* 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 ... | 31.44335 | 113 | 0.625646 |
d9904ae185ae43f8394814f6dc401725565be1cb | 290 | package com.app.teacup.util;
import com.app.teacup.bean.book.Book;
import com.google.gson.Gson;
public class JsonUtils {
private static final Gson gson = new Gson();
public static Book parseJsonData(String jsonStr) {
return gson.fromJson(jsonStr, Book.class);
}
}
| 18.125 | 54 | 0.706897 |
01ed5b74d8f06806660a57e9a4cf35efeeb644c2 | 1,613 | /*
* © 2014 by Intellectual Reserve, Inc. All rights reserved.
*/
package org.sonar.plugins.xquery.checks;
import org.sonar.plugins.xquery.AbstractSonarTest;
import org.testng.annotations.Test;
public class XPathDescendantStepsCheckTest extends AbstractSonarTest {
private final AbstractCheck check = new XPath... | 24.074627 | 105 | 0.486051 |
a4fa7b61b109430f49b911f5e161a6fa9ff84394 | 129 | package se.jsa.twyn.internal.datamodel;
/**
* Created by joakim on 2017-02-19.
*/
public interface ValueNode extends Node {
}
| 16.125 | 41 | 0.72093 |
051f814b56e388a05618a77298ba6992f4b58f32 | 3,316 | /*
* The baseCode project
*
* Copyright (c) 2006 University of British Columbia
*
* 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... | 30.422018 | 119 | 0.644753 |
2cd1cb602a0abc1e7b02eae1d8880eda543b4fe6 | 4,115 | /**
* Copyright (C) 2011
* Can Yaman <can@yaman.me>
* Michael Mosmann <michael@mosmann.de>
* Martin Jöhren <m.joehren@googlemail.com>
*
* with contributions from
* konstantin-ba@github,Archimedes Trajano (trajano@github)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 39.951456 | 185 | 0.702309 |
8ceedfa0a64756be352f0705013c039b16175c02 | 4,882 | package yoshikihigo.cpanalyzer.viewer.clist;
import java.awt.Color;
import java.awt.event.MouseEvent;
import java.util.Observable;
import java.util.Observer;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import j... | 32.546667 | 100 | 0.723474 |
a0c7f31e7cb0d2997763df70d19ac4f8dde66e53 | 622 | package it.cnr.istc.stlab.lizard.commons.inmemory;
import org.apache.jena.ontology.OntResource;
import org.apache.jena.rdf.model.RDFNode;
import it.cnr.istc.stlab.lizard.commons.PropertyMap;
public class InMemoryLizardAnonClass extends InMemoryLizardClass {
public InMemoryLizardAnonClass() {
super();
}
... | 27.043478 | 105 | 0.773312 |
895e64b1733d1e8a2bb504961e1223a382351374 | 3,938 | package view.controllers.archive;
import java.net.URL;
import java.util.Optional;
import java.util.ResourceBundle;
import controller.chronology.ChronologyDAO;
import controller.chronology.ChronologyDAOImpl;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHan... | 33.372881 | 105 | 0.776282 |
022ec7f008db0bdbba083e22203182e0568c99a7 | 1,114 | package io.smartcat.berserker.rategenerator;
import io.smartcat.berserker.api.RateGenerator;
/**
* Rate generator that multiplies rates of two {@link RateGenerator}s.
*/
public class MultiplicationRateGenerator implements RateGenerator {
private final RateGenerator factor1;
private final RateGenerator fact... | 31.828571 | 92 | 0.686715 |
94a7cb776d07bcd362f57a1853af4b70bc0e3aa9 | 8,103 | package com.propelld.app.popularmovies;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
import android.os.AsyncTask;
import android.support.v7.app.ActionBar;
import android.support.v7.app.... | 33.209016 | 108 | 0.627916 |
5fe34ba07d68b0ca0e4065c4ed2e8b603b67236c | 6,293 | package org.firstinspires.ftc.teamcode.teleop;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.DcMotor;
import ... | 38.845679 | 104 | 0.628635 |
225b19b4ffbd88e28d09283c1053cc2eb227e6ea | 12,257 | /*
* 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 ... | 35.120344 | 119 | 0.561149 |
c48a80d64a84cbdae72264093855e55ef67dbe33 | 1,869 | package uebung_3_05;
import java.util.Scanner;
public class Datumscheck {
public static void main(String[] args) {
int day, month, year;
Scanner sc = new Scanner(System.in);
// read user-input
System.out.println("Geben Sie ein Datum ein:");
System.out.print("Tag:\t");
day = sc.nextInt();
// needs to b... | 21.732558 | 93 | 0.602996 |
38c57abe2efa3686172bf1e97166dc5941327f03 | 152 | package org.w3c.dom.svg;
public interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
SVGAnimatedString getIn1();
}
| 25.333333 | 92 | 0.828947 |
7498565a94182abfb25164db5ca5a6252dca8eaf | 456 | //,temp,FileSystemRMStateStore.java,566,573,temp,FileSystemRMStateStore.java,502,509
//,2
public class xxx {
@Override
public synchronized void
removeRMDTMasterKeyState(DelegationKey masterKey) throws Exception {
Path nodeCreatePath = getNodePath(rmDTSecretManagerRoot,
DELEGATION_KEY_PREFIX + ma... | 35.076923 | 84 | 0.765351 |
9fa91b1268cae3a0f8a4309518d373d58dcc129f | 271 | package tw.invictus.tventhusiast.view;
import tw.invictus.tventhusiast.model.pojo.Season;
/**
* Created by ivan on 2/20/16.
*/
public interface EpisodeListView {
void onSeasonLoaded(Season season);
void onEpisodeCheckChanged(int position, boolean checked);
}
| 22.583333 | 62 | 0.760148 |
1055de5a2724fca8f4834e73c6ce6f56583bd2ae | 2,436 | package pl.srw.billcalculator.persistence;
import org.greenrobot.greendao.Property;
public class SqlTriggerBuilder {
private final StringBuilder sql;
private SqlTriggerBuilder(final StringBuilder sql) {
this.sql = sql;
}
public static SqlTriggerBuilder createTrigger(final String triggerName... | 29.707317 | 89 | 0.62069 |
b8bfd205a3b64a8b4bfd9df0848213d4e8ec10a8 | 1,038 | package com.learn.thread;
import java.time.Duration;
import java.time.Instant;
import java.util.concurrent.ExecutionException;
import java.util.stream.LongStream;
/**
* description:
*
* @author klaus
* @date 2020/7/8
*/
public class ForkJoinPoolDemo {
public static void main(String[] args) throws ExecutionEx... | 23.066667 | 92 | 0.656069 |
7679f09bdd62f75bb1418c908fb5d6d9d413c154 | 1,936 | package de.dhbw.humbuch.model.entity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* @author David Vitt
*
*/
@Entity
@Table(name="permission")
public ... | 18.264151 | 86 | 0.695764 |
e5c2b1e11aa638d1a58b3d2f9f4a622219665f32 | 54 | package ch.heigvd.res;
public interface ICommand {
}
| 10.8 | 27 | 0.759259 |
3c76232402745ccc5d282c95a43cde26954f7e00 | 2,178 |
package org.whispercomm.shout.provider;
import org.whispercomm.shout.LocalShout;
import android.content.Context;
import android.database.Cursor;
import android.support.v4.widget.CursorAdapter;
import android.view.View;
import android.view.ViewGroup;
/**
* An extension of {@link CursorAdapter} that converts results... | 30.676056 | 89 | 0.752066 |
08d5679104fbc06c657d5fa723ba5a08082bd5b4 | 1,967 | /**
* Copyright 2015 The Javaslang Authors
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicabl... | 28.1 | 83 | 0.702593 |
a467e6c9a6ceff377fc466046435de6d5e4f4be8 | 1,629 | package top.chenqwwq.leetcode.archive.$20200418.common;
import lombok.extern.slf4j.Slf4j;
/**
* @author chen
* @description
* @email ai654778@vip.qq.com
* @date 19-1-27
*/
@Slf4j
public class LeetCode423 {
public static void main(String[] args) {
log.info("c-a:{}", ('z' - 'a'));
}
static cla... | 30.166667 | 89 | 0.467772 |
21202fb8c045cfb966a3d84522cef4edb505d20d | 204 | package me.philio.disqus.api.resources;
/**
* Media resource
*
* @see <a href="https://disqus.com/api/docs/media/">Documentation</a>
*/
public interface Media {
// No methods currently exist
}
| 15.692308 | 70 | 0.671569 |
df4566b28d8b598e20502e93972116135152716a | 5,838 | /*
* 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... | 41.112676 | 98 | 0.704351 |
1aae60411c628429c4adad69dcee5cf1fb455878 | 603 | package com.shoufeng.feign.learn.comsumer.controller;
import com.shoufeng.feign.learn.comsumer.service.FeignConsumerService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
* @author shoufeng
*/
@RestController
@RequestMapping("/feignconsumer")
public class FeignConsumerCont... | 26.217391 | 102 | 0.757877 |
73ddf202dbbfaa3041868863c0a43a2428024757 | 6,983 | /*
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
* This is licensed software from AccelByte Inc, for limitations
* and restrictions contact your company contract manager.
*
* Code generated. DO NOT EDIT.
*/
package net.accelbyte.sdk.api.platform.models;
import com.fasterxml.jackson.annotation.JsonIgno... | 24.07931 | 92 | 0.667049 |
ef035bb8aadf261bb6857d86c728629c32b56548 | 1,649 | package bomberman;
import org.jgrapht.alg.BellmanFordShortestPath;
import org.jgrapht.graph.DefaultDirectedWeightedGraph;
import org.jgrapht.graph.DefaultWeightedEdge;
import org.junit.Test;
import java.util.List;
import static junit.framework.Assert.assertEquals;
/**
* TODO: Description
*
* @author Codevise Sol... | 25.765625 | 133 | 0.631898 |
8d47aa2ce3d741fa8c200ee9221bf812655e1d33 | 2,514 | /*
* Copyright 2018 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 in... | 33.972973 | 117 | 0.774463 |
6781a9d96a8e3b7d25d541f79c9295b6f00ef903 | 1,051 | package com.aek.ebey.assets.model.request;
import java.util.Date;
import java.util.List;
public class AssetsDisApplyResponse {
private Long id;
private String num;
private String name;
private Date time;
private String type;
private String status;
private List<AssetsDisResponse> list;
public String getNum()... | 17.516667 | 52 | 0.689819 |
2c640fb9d467b939778b0055a7100a32f6c12242 | 530 | public static Splay selectKthAsRoot(Splay root, int k) {
if (root == NIL) {
return NIL;
}
Splay trace = root;
Splay father = NIL;
while (trace != NIL) {
father = trace;
trace.pushDown();
if (trace.left.size >= k) {
trace = trace.left;
} else {
... | 23.043478 | 56 | 0.430189 |
00008f1ebdcc14a75eb6865937b4c1555eb61e10 | 2,081 | /*
* 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 ... | 35.271186 | 81 | 0.745795 |
0e1671b7bda678a5a7cb52eae2e1366fa2b37580 | 2,070 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto
package com.google.cloud.recommendationengine.v1beta1;
public interface CreateCatalogItemRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.recomm... | 35.084746 | 132 | 0.696135 |
de139139f637f3d8d1526e53ddfbfadedce76cfe | 1,942 | package com.wxxr.nirvana.ui;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.wxxr.nirvana.IUIComponentContext;
import com.wxxr.nirvana.context.IRequestContext;
import com.wxxr.nirvana.workbench.IContributionItem;
public abstract class UIComponentContext i... | 22.321839 | 96 | 0.763131 |
3b790e9e332feba07d30ec2b34993d69bc98d84c | 794 | /*
* Copyright (C) 2015 see CREDITS.txt
* All rights reserved.
*/
package fi.uef.envi.emrooz.vocabulary;
import org.openrdf.model.URI;
/**
* <p>
* Title: SWEETMatrOrganicCompound
* </p>
* <p>
* Description:
* </p>
* <p>
* Project: Emrooz
* </p>
* <p>
* Copyright: Copyright (C) 2015
* </p>
*
* @auth... | 18.904762 | 89 | 0.662469 |
598f08c07fc798576bcdbeaf0b86347ffeae4593 | 8,934 | package com.wraptalk.wraptalk.adapter;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Base... | 34.361538 | 145 | 0.619879 |
2cee53b3e077ead16be4b1fb53cfc471d38d1bbb | 2,071 | package net.cartola.emissorfiscal.sped.fiscal.blocoE.service;
import static java.util.stream.Collectors.groupingBy;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
... | 35.101695 | 98 | 0.768228 |
23e0955273874c39b695f1008bce2738e6cae7c6 | 10,357 | /*
* This file is part of ELKI:
* Environment for Developing KDD-Applications Supported by Index-Structures
*
* Copyright (C) 2019
* ELKI Development Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the... | 35.469178 | 155 | 0.694603 |
877c2e82df1e77bca4eb2e300632391ccab71e13 | 475 | package fr.inra.urgi.rarebasket.dao;
import java.util.List;
import java.util.Optional;
import fr.inra.urgi.rarebasket.domain.Grc;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
/**
* DAO for the {@link Grc} entity
*/
public interface GrcDao exten... | 23.75 | 61 | 0.747368 |
e1511b6da2e972fda51d0c516fdc20afd458c98c | 4,116 | package de.hpi.des.hdes.engine.shared.join;
import de.hpi.des.hdes.engine.AData;
import de.hpi.des.hdes.engine.ADataWatermark;
import de.hpi.des.hdes.engine.operation.AbstractTopologyElement;
import de.hpi.des.hdes.engine.operation.OneInputOperator;
import de.hpi.des.hdes.engine.udf.KeySelector;
import de.hpi.des.hdes... | 36.424779 | 107 | 0.708941 |
b476cb994fa29b3207706a2688355163fc2ddee1 | 14,137 | package software.amazon.iot.thingtype;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
import software.amazon.awssdk.services.iot.model.CreateThingTypeRequest;
import software.amazon.awssdk.services.iot.model.CreateThingTypeRespon... | 50.131206 | 111 | 0.689326 |
1309f6dee4cfead1a43e9caf6c8c692838d2a168 | 578 | package drjoliv.jfunc.contorl;
import drjoliv.jfunc.function.F1;
/**
* Case2 represents the coproduct of a type {@code Base} that has two subclasses {@code A,B}.
* @author Desonte 'djoliv' Jolivet : drjoliv@gmail.com
*/
public interface Case2<Base,A extends Base,B extends Base> {
/**
* Applies the appropriat... | 30.421053 | 93 | 0.67474 |
9bf126e2dd4a1ec5a64c8039e6aa7d5cb8350aba | 1,417 | package com.grognak.responsehandler;
import com.grognak.IrcClient;
import com.grognak.MockSocket;
import com.grognak.TestUtils;
import org.junit.Before;
import org.junit.Test;
import java.net.Socket;
import java.util.ArrayList;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Created by Chris on 2/2... | 28.918367 | 104 | 0.725476 |
bb2966eda31c268e4e6490693c0f5c561f6f29ac | 172 | package org.openforis.collect.event;
/**
*
* @author D. Wiell
* @author S. Ricci
*
*/
public class RootEntityCreatedEvent extends EntityCreatedEvent {
}
| 14.333333 | 65 | 0.656977 |
0e524530df28824e20305a2e366738fc97f7d125 | 1,758 | package com.jiuye.mcp.response;
import java.io.Serializable;
import java.util.HashMap;
/**
* 接口返回的统一对象
*
* @param <T>
* 需要返回的业务对象
*
* @author ningyu
* @date 2016年12月27日 下午12:00:53
*/
public class Response<T> implements Serializable {
/**
*/
private static final long serialVersionUID = ... | 17.235294 | 71 | 0.503982 |
ec351adb4327e2fca2ac13f19dadd071a8678da7 | 3,438 | package cn.arvix.ontheway.attention.controller;
import cn.arvix.base.common.entity.JSONResult;
import cn.arvix.base.common.web.controller.ExceptionHandlerController;
import cn.arvix.ontheway.attention.service.AttentionService;
import cn.arvix.ontheway.attention.service.AttentionStatisticsService;
import io.swagger.ann... | 40.928571 | 107 | 0.716405 |
8bbf84827b90a5f8630484a429a0ae463473f9a1 | 5,163 | /*
* #%L
* Detection Framework (Release)
* %%
* Copyright (C) 2015 - 2020 Lawrence Livermore National Laboratory (LLNL)
* %%
* 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 re... | 36.359155 | 174 | 0.723804 |
06667d3e9f66d6d8a793ce28dc448263833b53e7 | 3,084 | /*
* The MIT License
*
* Copyright (c) 2016 Tim Fennell
*
* 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, ... | 45.352941 | 104 | 0.672503 |
4e95cd4a5a1530389a81ed3a046986749a70b60e | 920 | package questao29;
import java.util.Scanner;
public class Questao29 {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
int n1;
do {
System.out.print("Informe um número: ");
n1 = teclado.nextInt();
... | 21.395349 | 95 | 0.563043 |
d333b8ca7c6d2a290d58e64403ed334af401a5ec | 71 | /**
* Service API layer.
*/
package com.epam.summer.courses.service;
| 14.2 | 40 | 0.690141 |
1ddefb53268323e26de4ded01183274c59f40f57 | 3,419 | package com.dreamynomad.giferator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.Environment;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import java.io... | 37.163043 | 92 | 0.608365 |
b3820aca7a985a468a92318b86c53981224a004e | 409 | /*
* 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.
*/
/**
*
* @author 89655
*/
public class Driver
{
public static void main(String[] args)
{
SpellCheck ch... | 21.526316 | 80 | 0.623472 |
7874671ac58306a54324094c9b4bc260075bb4d0 | 1,878 | /*
*
* Copyright 2013 Wei-Ming Wu
*
* 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.450704 | 80 | 0.719382 |
5f45f5b480335559c05a26e2f98d39672aaf72b0 | 573 | package com.gmf.core;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* @author gmf
* @d... | 27.285714 | 79 | 0.783595 |
4b6fec4bf23b27cb4d24facc219aecb13a4c7a31 | 4,037 | /*
* #%L
* SciJava UI components for Java Swing.
* %%
* Copyright (C) 2010 - 2021 SciJava developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the ab... | 26.559211 | 79 | 0.725043 |
2a0dcbcbb71a727caa49ced5fac6b114c4fe59d0 | 7,601 | //=====================================================================
//
//File: $RCSfile: TextEditorReloadContentsTest.java,v $
//Version: $Revision: 1.11 $
//Modified: $Date: 2013/05/10 06:02:35 $
//
//(c) Copyright 2004-2014 by Mentor Graphics Corp. All rights reserved.
//
//=======================... | 39.38342 | 103 | 0.658992 |
8507abf4dcdd9f27a9f99d057ced3f7bbd4b7df7 | 1,723 | package com.cg.demo.misc;
class ThreadJoining extends Thread
{
@Override
public void run()
{
for (int i = 0; i < 2; i++)
{
try
{
Thread.sleep(500);
System.out.println("Current Thread: "
+ Thread.currentThread().... | 23.283784 | 60 | 0.437609 |
6e84c91463ce72cc1f6fbc2f9a220c2f56b90837 | 15,512 | /*
* Copyright 2015 OpenCB
*
* 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 wr... | 22.319424 | 97 | 0.738138 |
94aa67e41c152ff2578b76b26036541d576eb06e | 757 | package io.github.toquery.framework.webmvc.properties;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @author toquery
* @version 1
*/
@Setter... | 24.419355 | 91 | 0.782034 |
b8e588734dbd1d644a813d016e02a87a5cb066b4 | 491 | package Tennis_Reservanto;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Server app to manage tennis club`s courts reservations. It has four REST
* Endpoints described in CourtController and ReservationController classes.
*/
@SpringBoo... | 27.277778 | 76 | 0.816701 |
2e90f9d94c501b2d601c050db3a28564a54fc0b1 | 1,221 | package com.ztf.assist;
import java.util.concurrent.CountDownLatch;
/**
* @Author zhoutengfei
* @Date 2020/6/7 3:52 PM
* @Verson 1.0
* @Describtion 线程等待。减法计数器
**/
public class MyCountDownLatch {
public static void main(String[] args) {
CountDownLatch countDownLatch = new CountDownLatch(2);
... | 29.780488 | 74 | 0.571663 |
dcffa7e9f42b2c69feebb4f8009a893b1c8e6716 | 2,960 | /*
* Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... | 42.285714 | 152 | 0.794932 |
4d3f4c706499f1b6b417840cee61a205b5f7e60f | 2,980 | /*
* Copyright 2018 Crown Copyright
*
* 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... | 35.47619 | 123 | 0.721812 |
0e0502bbc6681170e704002b1a5ddb89fc62c18e | 1,077 | package tracks.singlePlayer.evaluacion.src_CANO_CAMARERO_BLANCA;
import java.util.PriorityQueue;
import ontology.Types.ACTIONS;
public class TestNodoEstrella {
public static void main(String[] args) {
PriorityQueue<NodoEstrella> abiertos = new PriorityQueue<>();
NodoEstrella inicial = new NodoEst... | 38.464286 | 85 | 0.649025 |
78d93f37449a2b3f1695c1db0ec7f290f7d73a2f | 441 | package com.adrenalinici.adrenaline.common.network.rmi;
import com.adrenalinici.adrenaline.common.network.inbox.InboxMessage;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface GameRmiServer extends Remote {
void acceptMessage(InboxMessage message, GameRmiClient client) throws RemoteExcepti... | 25.941176 | 88 | 0.829932 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.