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 |
|---|---|---|---|---|---|
ee3259ec08069b34be181cc85b5c75b6d5b49259 | 1,125 | package vimeoextractor;
import org.jetbrains.annotations.NotNull;
/**
* Parser for a given Vimeo Link
*/
public class VimeoParser {
//Full URL of Vimeo video
private String url;
/**
* Initialise VideoParser with url
* @param url Vimeo Video url
*/
public VimeoParser(@NotNull String... | 21.634615 | 72 | 0.597333 |
ed097e6745b5a91138aa1e7811f03236d87fea13 | 3,058 | package hust.cs.javacourse.search.index.impl;
import hust.cs.javacourse.search.index.AbstractPosting;
import hust.cs.javacourse.search.index.AbstractPostingList;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Arrays;
import java.util.Collections;
impo... | 23.343511 | 59 | 0.56671 |
7f9b869e4dbcd9c06d526015ab325c3294d4741c | 5,319 | /*
* 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 ... | 37.195804 | 90 | 0.65877 |
352461a1d0d0078ef7fc8e2dd652047986950b54 | 8,410 | // ------------------------------------------------------------------------------
// <copyright file="Interceptorutility.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>
// Utility for service host
// </summary>
// ------------------------------... | 39.299065 | 122 | 0.657907 |
b5c52e4b2e71186abf6e1ba1dad30db58a4de6e9 | 2,565 | package com.atilika.kuromoji.util;
import org.apache.commons.io.FileUtils;
import org.deeplearning4j.util.ArchiveUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
/**
* Created by k... | 36.126761 | 137 | 0.676803 |
857c05d7711cc62833397b7025ac0fd7ef3bf01d | 186 | package com.thinkgem.jeesite.modules.paimai.front.aop;
public class NotLoginException extends RuntimeException {
public NotLoginException(String str) {
super(str);
}
}
| 23.25 | 58 | 0.736559 |
88211a522540776c3efe32b19ff6a11ba37de17a | 8,193 | package org.firstinspires.ftc.teamswerve;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import org.firstinspires.ftc.robotcore.external.Func;
import org.f... | 33.716049 | 110 | 0.58074 |
2c8856896df0291c185c396da2571bb1fa694bcc | 515 | package com.tudog.graphqldemo01.repository;
import com.cosium.spring.data.jpa.entity.graph.repository.EntityGraphJpaRepository;
import com.tudog.graphqldemo01.entity.BladeVisual;
import com.tudog.graphqldemo01.entity.BladeVisualCategory;
import org.springframework.data.domain.Page;
import org.springframework.data.dom... | 42.916667 | 92 | 0.856311 |
7e647f84b445d3c25c09f23b8894e7dcabe452a1 | 857 | package ca.ulaval.glo4003.accesspasses.helpers;
import static ca.ulaval.glo4003.accesspasses.helpers.AccessPassTypeMother.createAccessFeeByPeriod;
import static ca.ulaval.glo4003.cars.helpers.CarMother.createConsumptionType;
import ca.ulaval.glo4003.accesspasses.domain.AccessPassType;
import ca.ulaval.glo4003.accessp... | 35.708333 | 98 | 0.823804 |
8f2f45984926f2f0b5f1a8c8e8237381c28b5e5f | 22,097 | /*
* Copyright (C) 2016-2021, Stichting Mapcode Foundation (http://www.mapcode.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
... | 40.176364 | 150 | 0.521247 |
e91452310f64309f35bfb49975f9c55253daa09b | 595 | package com.welkinbai.algorithm;
import com.welkinbai.algorithm.sort.SortAlgorithm;
/**
* Created by Welkin Bai on 2016/8/16 0016.
* codingAllInAll
* English:This is a menu of algorithm project. Just for giving a clearly view to you.
* If you use IDE,it will be helpful to navigate somewhere you want to go... | 28.333333 | 90 | 0.742857 |
4dffad639ead417a8328261f423bd4ab8d550620 | 593 | package testemonico.controller.customer.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import testemonico.domain.entity.Customer;
@Data
@NoArgsConstructor
public class CustomerDTO {
private String id;
private String name;
public CustomerDTO(Customer request) {
setId(request.getId());... | 22.807692 | 65 | 0.666105 |
284088bb31b0151347725dad658b535a8046c6f6 | 6,808 | import java.io.*;
import java.util.*;
public class IntelligenceInfection {
public static IO io;
public static int messages = 0;
public static Spy[] spies;
public static boolean debug = false;
public static boolean printEnemylessGraph = false;
public static boolean[] cycleReached;
public st... | 30.80543 | 88 | 0.501322 |
eaf54ce6469bb5bee513bf36d3173440f998f6f6 | 988 | package io.snow.core.nio;
/**
*
* @author zhangliang 2018.11.23
*
*/
public interface IoFilter {
/** 连接创建 */
void connectCreated(NioConnect connect, NextFilter nextFilter);
/** 连接正常关闭 */
void connectClosed(NioConnect connect, NextFilter nextFilter);
/** 连接非正常关闭 */
void connectAbnomalClosed(NioConnect c... | 22.976744 | 98 | 0.72166 |
09329df1ff4bfd3c0f9897ecf973089541bbd136 | 2,103 | // Copyright (c) 2020-2022 Yinsen (Tesla) Zhang.
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.core.def;
import kala.collection.immutable.ImmutableSeq;
import org.aya.concrete.stmt.Decl;
import org.aya.core.term.CallTerm;
import org.aya.core.term.Te... | 30.042857 | 115 | 0.691869 |
40458b93c318993a2fe943ed69d2c9ccc1530246 | 971 | package org.miage.m2.dto;
public class EpisodeDTO {
private String concept;
private String href;
private String statut;
public EpisodeDTO() {
}
public EpisodeDTO(EpisodeDTO episode) {
this.concept = episode.concept;
this.href = episode.href;
this.statut = episode.statut;
}
public EpisodeDTO(String co... | 17.339286 | 64 | 0.651905 |
ce699fdc9952bfb6285de4c7fe596a08b4a1c7c1 | 2,192 | package com.piksel.sequoia.clientsdk;
/*-
* #%L
* Sequoia Java Client SDK
* %%
* Copyright (C) 2018 Piksel
* %%
* 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.a... | 32.235294 | 107 | 0.680201 |
62d18af3e81e005e0bf0f06c0bf819d5b4b6a5d6 | 8,427 | /* Copyright 2018 Google LLC All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless req... | 42.77665 | 165 | 0.586448 |
510b1f4c1b0f168c8075f19a98920aa84eb50596 | 1,892 | package gov.nara.opa.server.export;
import gov.nara.opa.architecture.exception.OpaRuntimeException;
import gov.nara.opa.architecture.logging.OpaLogger;
import gov.nara.opa.server.export.services.impl.ExportRequestsControllerProxy;
import org.springframework.context.ApplicationContext;
import org.springframework.conte... | 36.384615 | 87 | 0.747886 |
d5b7390730b4cdc2c28ba340bd2374b6ce9ae2d6 | 2,782 | package uk.co.lukestevens.encryption;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.security.SecureRandom;
import java.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import javax.inject.Inject;
import javax.inject.Singl... | 28.680412 | 77 | 0.71028 |
c91433f082b6a31b9663fadabb21690b7db8f997 | 1,417 | package org.embulk.executor.mapreduce;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.JobID;
import org.apache.hadoop.mapreduce.task.JobContextImpl;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import static org.... | 25.763636 | 85 | 0.676782 |
da6d20227b2b7389bf46b92e56666c5f831ad49d | 114 | package fixtures.genericresponse;
@SuppressWarnings("javadoc")
public class Item {
String id;
String desc;
}
| 11.4 | 33 | 0.754386 |
e0e66ba66faab65308bfcc506ac08351be2e3d44 | 1,996 | package io.github.picodotdev.plugintapestry;
import io.github.picodotdev.plugintapestry.spring.AppConfiguration;
import org.apache.catalina.Context;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.Spr... | 45.363636 | 91 | 0.727956 |
ddfed3307e233ae1cb9ee2eec03a4c7f346011cf | 6,671 | package com.ctrip.soa.caravan.util.net.apache.trace;
import org.apache.http.HttpEntity;
import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.config.MessageConstraints;
import org.apache.h... | 40.186747 | 160 | 0.736921 |
e0455991cf38da82264b566f68a6050e115595a5 | 8,491 | package org.synyx.urlaubsverwaltung.application.domain;
import org.junit.jupiter.api.Test;
import org.synyx.urlaubsverwaltung.period.DayLength;
import org.synyx.urlaubsverwaltung.period.Period;
import org.synyx.urlaubsverwaltung.person.Person;
import java.sql.Time;
import java.time.Duration;
import java.time.LocalDat... | 35.978814 | 120 | 0.664822 |
0dde24c155fee1f0dcf72a490041009ed13841cc | 933 | package reka.modules.admin;
import java.util.function.Function;
import reka.app.manager.ApplicationManager;
import reka.config.configurer.annotations.Conf;
import reka.data.Data;
import reka.module.setup.OperationConfigurer;
import reka.module.setup.OperationSetup;
import reka.util.Path;
import reka.util.StringWithVa... | 25.916667 | 81 | 0.78135 |
5bdc82c01485188112072f48a39ff9fc8ccb3a2d | 1,421 |
package io.micronaut.test.junit5;
import io.micronaut.context.annotation.Property;
import io.micronaut.http.client.HttpClient;
import io.micronaut.http.client.annotation.Client;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.T... | 27.862745 | 70 | 0.706545 |
388532bbe89f198b51bf3cef6dc0c5a8a69f6b31 | 8,885 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.selection.resulttype;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.tools.Diag... | 35.97166 | 119 | 0.66933 |
30dd05ffde29225186ed6bf47f67555db0362752 | 1,583 | package org.zmsoft.framework.beans.common;
import org.zmsoft.framework.ObjectBean;
import org.zmsoft.framework.constants.ICFrameworkConstants;
/**
* 基底共通
*
* @author ZmSoft
* @version 2.0.0 2018/10/10
* @since 2.0.0 2018/10/10
*/
public class FrameworkDataBean extends ObjectBean implements ICFrameworkConstants... | 13.646552 | 83 | 0.602021 |
20c1f06d48a27e7262a464d88f76368ac59d4347 | 899 | package com.magicline.codingexercise.plain.calc;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class CalculatorImplTest {
private final Calculator calculator = new CalculatorImpl(new ScannerImpl(), new ParserImpl(), new TranslatorImpl(),
new ProcessorImpl());
... | 24.972222 | 116 | 0.746385 |
8394048a0509c34ba8ea3bc7c247e9723f2873f6 | 767 | package at.arz.latte.rodeo.api;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
public class Messages {
private static final String BUNDLE_NAME = "at.arz.latte.rodeo.api.messages"; //$NON-NLS-1$
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBund... | 23.242424 | 93 | 0.720991 |
2d0e98e073e09fcba025e4d4d0b9020ff311e8e3 | 2,518 | package com.aldes.jcsnets.net.mina;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.CumulativeProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolDecoderOutput;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.... | 31.475 | 101 | 0.636219 |
56fd2408a9bdeef59e4cbdd9435d3d99357fd3ed | 1,934 | /**
* 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... | 29.753846 | 84 | 0.692347 |
400f2cc7d2b10c0dccd5ff2de79a95cd8056c5ea | 7,041 | package com.example.android.starwarsquizz;
import android.app.Activity;
import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethod... | 47.574324 | 124 | 0.645079 |
ea261e18f623a4bb062483645d9966fea2c790a2 | 595 | package com.hideakin.textsearch.index.model;
public class ObjectDisposition {
public static final int UNDETERMINED = 0;
public static final int CREATED = 1;
public static final int UPDATED = 2;
public static final int GROUP_NOT_FOUND = -1;
private int value;
public ObjectDisposition() {
this.set... | 18.030303 | 47 | 0.67395 |
0471cd0218570c4fed677a36db5928537654dbd3 | 921 | /*
* This file was last modified at 2020.02.10 21:35 by Victor N. Skurikhin.
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
* BigIntegerUtil.java
* $Id: 0471cd0218570c4fed677a36db5928537654dbd3 $
*/
package su.svn.showcase.... | 29.709677 | 79 | 0.741585 |
78ae68b62475ae588c4df338a2d867556896cb11 | 2,187 | package com.lumyk.gitpub_projets;
import android.content.Context;
import java.io.*;
import android.os.Handler;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.... | 29.958904 | 80 | 0.663923 |
d2b1bc097cc1e4708d647fd93a8909152e891ea0 | 978 | package nl.tudelft.jpacman.level;
import nl.tudelft.jpacman.board.Board;
import nl.tudelft.jpacman.board.Unit;
import nl.tudelft.jpacman.npc.Ghost;
import java.util.List;
public class PlayerCollisionsEffects {
private final List<Ghost> ghosts;
private final Board board;
public PlayerCollisionsEffects(L... | 25.076923 | 71 | 0.655419 |
601cbd23f74b49fe6585efff2332703e5cba6e22 | 1,071 | package org.p4.p4plugin;
import com.intellij.openapi.components.AbstractProjectComponent;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
public class P4Plugin extends AbstractProjectComponent {
private static final String DEFAULT_P4_INCLUDE_PATH = "/usr/local/share/p4c/p4i... | 24.340909 | 100 | 0.677871 |
7e835f52a3daa0fed31f8ee3b9c56ea2721682e9 | 487 | package com.ftunram.secsurf.toolkit;
import java.io.File;
import java.io.FileFilter;
public class EncrypFilter implements FileFilter {
public boolean accept(File f) {
if (f.isDirectory()) {
return true;
}
String extension = Utils.getExtension(f);
if (extension != null) ... | 22.136364 | 49 | 0.601643 |
99d0bd1f15b39d6628c261d8336143a69e53da2d | 453 | package de.melsicon.kafka.sensors.topology;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
import org.apache.kafka.streams.Topology;
/** Provides the single {@link Topology} of our Kafka streams example. */
@Module
public abstract class TopologyModule {
private TopologyModule() {}
@... | 23.842105 | 73 | 0.759382 |
168a51a078df048a5d4880a56aef318c4bbb851e | 2,172 | /******************************************************************
*
* CyberVRML97 for Java
*
* Copyright (C) Satoshi Konno 1997-1998
*
* File : StringValue.java
*
******************************************************************/
package org.cybergarage.x3d.field;
import java.io.*;
import java.util.*;
public clas... | 21.50495 | 95 | 0.646409 |
e36eb16b5de4e95f5a3f4ae11c3040215688263c | 209 | package cn.jason.spring.bean.chapter09.service;
import cn.jason.spring.bean.chapter09.bean.User;
import org.springframework.stereotype.Service;
@Service
public class UserService extends BaseService<User>{
}
| 23.222222 | 51 | 0.822967 |
c6f3891e72ae6fc2f805e4a838f409ee5c9f541a | 337 | package pl.jojczykp.kafka_cqrs.producer.assembler;
import org.springframework.stereotype.Service;
import pl.jojczykp.kafka_cqrs.producer.response.CreateResponse;
import java.util.UUID;
@Service
public class ResponseAssembler {
public CreateResponse toResponse(UUID id) {
return new CreateResponse(id.toSt... | 22.466667 | 63 | 0.780415 |
4f214de413aaa1f4145b1fdcf3e08497b58d07ee | 3,817 | package org.maestro.plotter.amqp.inspector.routerlink;
import org.maestro.plotter.common.ReportData;
import org.maestro.plotter.common.properties.annotations.PropertyName;
import org.maestro.plotter.common.properties.annotations.PropertyProvider;
import org.maestro.plotter.common.statistics.Statistics;
import org.maes... | 31.286885 | 128 | 0.694524 |
41c358237f5ddd9b0c047def1fc20fde3ad46f12 | 1,681 | /*
* Copyright 2021 vg2902.org
*
* 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... | 34.306122 | 144 | 0.740036 |
e4c59e8c4eb0241cae3494ae203f4fc2c5323242 | 3,289 | /*
* Copyright 2009 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... | 28.111111 | 79 | 0.700517 |
05ed3eca72d6d4632b6e19345bb58c89f63e2abe | 2,243 | package de.scravy.bedrock;
import javax.annotation.Nonnull;
import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
import static de.scravy.bedrock.Functions.curry... | 24.922222 | 91 | 0.683905 |
fc2c95fd534b7a1e6ea9e8be8509ded6680d8385 | 762 | package org.unclesniper.json.tool.syntax;
import org.unclesniper.json.tool.values.Value;
import org.unclesniper.json.tool.TransformationContext;
import org.unclesniper.json.tool.TransformationException;
import org.unclesniper.json.tool.UndefinedConstantException;
public class NameValue extends UntransformedValue {
... | 23.090909 | 82 | 0.771654 |
656d24846c9ab47cd739046c8363fd216a01b9b0 | 326 | /*
* Copyright (C) 2013-2018 Pierre-François Gimenez
* Distributed under the MIT License.
*/
package pfg.kraken.astar.tentacles.endCheck;
import pfg.kraken.robot.Cinematique;
/**
*
* @author pf
*
*/
public interface EndOfTrajectoryCheck
{
public boolean isArrived(Cinematique endPoint, Cinematique robotPoin... | 16.3 | 72 | 0.742331 |
84b34a1f491b18221ed8944bbf530034f9aef103 | 1,036 | package com.atguigu.gmall.oms.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com... | 34.533333 | 115 | 0.749035 |
4a652b96b410349d04252e59f8b6f380ba9cd6bc | 3,966 | /*
* 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 services;
import dao.ProductDao;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import jav... | 39.66 | 144 | 0.642461 |
3e3465eb792a21855883f8631c4e0ee6ed6850fa | 385 | package org.zstack.header.core.workflow;
import java.util.Map;
/**
* Created by xing5 on 2016/4/29.
*/
public class NopeFlow implements Flow {
String __name__ = "nope";
@Override
public void run(FlowTrigger trigger, Map data) {
trigger.next();
}
@Override
public void rollback(FlowR... | 18.333333 | 58 | 0.646753 |
44a1914c2aa6f3a36b5b0f8a5456389d901fa600 | 2,352 | /*
* Distributed under the MIT license (see LICENSE.txt or https://opensource.org/licenses/MIT).
*/
/*
* Distributed under the MIT license (see LICENSE.txt or https://opensource.org/licenses/MIT).
*/
package org.wmn4j.notation.directions;
import java.util.Objects;
import java.util.Optional;
/**
* Represents a p... | 22.188679 | 105 | 0.681973 |
c940e2c40e95efd331fbd7240a8859e348317a8b | 2,351 | /**
* Opt4J is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* Opt4J is distributed in the hope that it will be us... | 27.337209 | 86 | 0.661421 |
058a4eff674a88fcab446991eba87776c64e59c8 | 5,886 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009 Red Hat Inc. and/or its affiliates and other
* contributors as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistri... | 36.7875 | 99 | 0.659191 |
6ad537542b4af17f34a8653a593b2338e9a73e83 | 95 | package edu.isu.cs2263.hw01;
public interface Output{
public void printOut(String exp);
}
| 15.833333 | 37 | 0.747368 |
5b7a1b937ab2a40af28966af92d8b7eaac1cc721 | 385 | package com.bytex.android.plugin.sample;
import com.android.build.gradle.AppExtension;
import com.ss.android.ugc.bytex.common.BaseContext;
import org.gradle.api.Project;
public class SampleContext extends BaseContext<SampleExtension> {
public SampleContext(Project project, AppExtension android, SampleExtension ... | 27.5 | 92 | 0.784416 |
86707f4fd597191100b74991b540f0a7d3216892 | 9,257 | /*
* Copyright 2022 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 "license" ... | 49.239362 | 122 | 0.659177 |
da742cd6d5d1417b3b02c907dc165231e8a621f2 | 938 | package seedu.unite.logic.parser;
import static seedu.unite.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import seedu.unite.logic.commands.SwitchThemeCommand;
import seedu.unite.logic.parser.exceptions.ParseException;
import seedu.unite.ui.theme.Theme;
public class SwitchThemeCommandParser implements Parser... | 40.782609 | 118 | 0.755864 |
6d38ade5756a00f6e868b4d3d460e4eb04600ab9 | 5,529 | package com.hyl.atcrowdfunding.web.controller;
import com.hyl.atcrowdfunding.model.Member;
import com.hyl.atcrowdfunding.service.MemberService;
import com.hyl.atcrowdfunding.service.TicketService;
import com.hyl.atcrowdfunding.utils.AjaxResult;
import com.hyl.atcrowdfunding.utils.Page;
import org.activiti.engine.Proce... | 29.725806 | 116 | 0.648942 |
46acf2cd7e9fdfb31f0a3fbb44fe7f1d5223fb37 | 248 | class Solution {
public int XXX(int[] nums) {
int a=0;
for(int i=1;i<nums.length;i++){
if(nums[a]!=nums[i])
{
nums[++a]=nums[i];
}
}
return a+1;
}
}
| 17.714286 | 39 | 0.350806 |
aea520450d6bc8b56cca5289ac14f42ad3bab830 | 1,897 | package com.github.apycazo.nimbus.service.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.confi... | 40.361702 | 115 | 0.712704 |
3c2f4cb5b2f7a1fc6011e0104faad389854fcc91 | 1,766 | /**
* This test class is used to test the LibraryParser class.
*/
package roslab.processors.verification;
import java.nio.file.Paths;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import roslab.model.verification.ElectricalSpecs;
... | 24.873239 | 147 | 0.69026 |
c25bf2465965a55ec2a0074eba5509da2c58c12d | 5,427 | package com.amadeus;
import java.util.Map;
import java.util.logging.Logger;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
* <p>
* The configuration for the Amadeus API client. To initialize, use the builder as follows:
* </p>
*
* <pre>
* Amadeus am... | 32.497006 | 100 | 0.686936 |
bc8e455a2b7a4e98347e829ad104666f35dfbdf5 | 1,351 | package com.tencent.bk.codecc.defect.dao.mongorepository;
import com.tencent.bk.codecc.defect.model.BuildDefectEntity;
import com.tencent.bk.codecc.defect.model.BuildDefectV2Entity;
import java.util.List;
import java.util.Set;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframewo... | 46.586207 | 120 | 0.795707 |
f9332694126145c72896351949403ae79fde2153 | 3,849 | package main;
import static spark.Spark.get;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.... | 35.311927 | 125 | 0.647701 |
eb3d8932ebce9aec1a9b02b8454767c6a95a755e | 2,702 | package crux.bphc.cms.models.enrol;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.core.text.HtmlCompat;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import crux.bphc.cms.network.MoodleServices;
/**
* Model class to represent objects in the <code>courses</cod... | 26.752475 | 112 | 0.676166 |
dd6d6325b3eae9d1c16863882e7ad174dfba7c97 | 2,040 | package com.landtanin.studentattendancecheck.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import com.landtanin.student... | 29.142857 | 119 | 0.737745 |
874c3ffb0414c1d8732899444a06f1eebe00f9dd | 1,680 | /**
* Copyright 2018 VMware, Inc.
* <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>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or... | 31.111111 | 88 | 0.7125 |
2594a65092ad1c2943734b12d53d81d3b023720c | 4,215 | package resolutioncontrol;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.keybinding.FabricKeyBinding;
import net.fabricmc.fabric.api.client.keybinding.KeyBindingRegistry;
import net.fabricmc.fabric.api.event.client.ClientTickCallback;
import net.minecraft.client.MinecraftClient;
import ... | 26.509434 | 86 | 0.751601 |
533c3f17b8d3ec309f65ddc2f56f8e6247b23dd6 | 3,318 | import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import org.bson.conversions.Bson;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.c... | 37.704545 | 153 | 0.601266 |
08d611adeddb08517a4c19740cd635bcc133765f | 4,336 | /*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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
*
*... | 40.90566 | 113 | 0.70572 |
b18c3a4087939d34284604b2afc2c88061aac74a | 2,116 | /* Autor : Javier Arroyo (Jarroyo@hiberus.com)
*
* Fecha: 14/07/2014,14:09:20
*
* Name: MenuLateralItemsAdapter.java
*
* Comentarios:
*
* M�todos:
*/
package com.eventerzgz.view.adapter;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.vi... | 24.604651 | 98 | 0.687618 |
c2ed9add3b5c4da3139f2a47d00fe1402d0841b2 | 6,863 | /*
* Copyright 2002-2012 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... | 36.312169 | 112 | 0.752295 |
e4eb98f71bf58706ea5452f716f3b7b2e145da05 | 1,672 | 1、配置如下:
(1)module配置如下
dependencies {
compile 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
}
(2)整个工程配置如下
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.jakewharton:butterknife-gradle-plugin... | 22.594595 | 68 | 0.697967 |
fbfe6891bd40b656b54103f98acdb74edaf545fb | 892 | package no.fint.p360.data.noark.codes.saksstatus;
import lombok.extern.slf4j.Slf4j;
import no.fint.model.resource.administrasjon.arkiv.SaksstatusResource;
import no.fint.p360.data.p360.P360SupportService;
import no.fint.p360.data.utilities.BegrepMapper;
import org.springframework.beans.factory.annotation.Autowired;
im... | 31.857143 | 74 | 0.790359 |
918572a24c246b68deee4c19f4c114734b86eb14 | 1,912 | package com.spring.ex03;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... | 32.40678 | 119 | 0.768305 |
f656ffbf0a17b2b400bafca276111d71c9a08798 | 404 | package com.mriganka.microservices.config_server.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* Created by Mriganka Shekhar Roy on 12/11/2018.
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConfigProperty... | 20.2 | 57 | 0.757426 |
3b1a8aedfe53a0aa319aaf33201a7cfafc4b00cc | 4,969 | package cn.jingzhuan.lib.chart.renderer;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.RectF;
import android.support.annotation.NonNull;
import cn.jingzhuan.lib.chart.base.Chart;
import cn.jingzhuan.lib.chart.component.AxisY;
import cn.jingz... | 32.477124 | 108 | 0.652646 |
104d64e1b9251476740cd9a591c1af1fc428bde2 | 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 ... | 26.017699 | 76 | 0.59966 |
db7b12e189b6b7b87ee72178f92467e29c29014c | 1,551 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* 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 a... | 36.069767 | 81 | 0.656351 |
f0999df49d111e4f6b8c95dcc31fb05a213178e1 | 81 | package ru.otus.patterns.observer;
/**
* Created by tully.
*/
class Event {
}
| 10.125 | 34 | 0.654321 |
609ff09d7591ef632be0a7474c952dfe72ba86b6 | 1,183 | /*
* Copyright 2009 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 applica... | 38.16129 | 84 | 0.761623 |
c8c00b36d4083013cd6c05ef0d1dd20765668fb4 | 232 | package com.anzaiyun.shoppingmall.product.vo.ItemPage;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
public class SpuBaseAttrVo {
private Long attrId;
private String attrName;
private String attrValue;
}
| 17.846154 | 54 | 0.771552 |
a4347fc6ae47a4e2d289c0c0e50de911e5389001 | 4,118 | import tio.*;
class opgave8_16 {
public static void main(String[] args) {
int input, i, times = 0;
String givenString, newString, helpString;
System.out.println("Geef een woord in");
givenString = Console.in.readLine();
System.out.println("1 : Verschuiven naar rechts");
System.out.println("2 : Verschuiven n... | 29.205674 | 68 | 0.642059 |
c63d6d991007c0d43af1a27c7ee5e6e244d4e3e2 | 2,625 | // Grade 11, Computer Science, Assignment 11
package assignments.programming_assignment_11;
import java.util.Scanner;
public class assignment_11 {
public static double Xvalue;
public static double Yvalue;
public static String answer;
public static String linebreak = "--------------------------";
public static do... | 34.539474 | 268 | 0.674667 |
b96b65e858dc537a33c6053664eb8536b47a4619 | 1,718 | import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.ArrayList;
import java.util.List;
public class home2_2 extends home2_1 {
public static void main(String[] args) {
WebDriver ffDriver = initFirfoxDriver();
ffDriver.get("htt... | 34.36 | 156 | 0.626892 |
aeddd8ce50c4420957ddcc66d170d7a361111b42 | 291 | package kala.value.primitive;
import org.jetbrains.annotations.NotNull;
public interface MutableBooleanValue extends MutablePrimitiveValue<Boolean>, BooleanValue {
void set(boolean value);
@Override
default void setValue(@NotNull Boolean value) {
set(value);
}
}
| 20.785714 | 91 | 0.738832 |
1431ed5d0e9075a12ee6e2913b2192b0fc5a9bf7 | 4,178 | /**
* 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... | 41.366337 | 84 | 0.74629 |
53fe92a3c4467c700c1dc940170517f69b8c6ab3 | 7,389 | package net.minecraft.client.gui.widget.list;
import com.google.common.collect.ImmutableList;
import com.mojang.blaze3d.matrix.MatrixStack;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.IGuiEventListener;
import net.... | 45.611111 | 225 | 0.700095 |
0f5a2c00ace38198408e55962895a87cdf18afe1 | 107 | package com.github.enviableyapper0.beans;
public enum FoodType {
MAIN_DISH, SOUP, BEVERAGE, DESSERT
}
| 17.833333 | 41 | 0.766355 |
64da1353b5d5a98e6869d01aae6b089207b56ab2 | 413 | /*
* Copyright (c) TIKI Inc.
* MIT license. See LICENSE file in root directory.
*/
package com.mytiki.blockchain.config;
import com.mytiki.blockchain.features.latest.address.AddressConfig;
import com.mytiki.blockchain.features.latest.block.BlockConfig;
import org.springframework.context.annotation.Import;
@Import... | 22.944444 | 67 | 0.760291 |
f6f1348428165571c23ef8ca7709bcf166fb89e3 | 461 | package com.github.terma.jenkins.githubprcoveragestatus;
interface SettingsRepository {
String getGitHubApiUrl();
String getPersonalAccessToken();
String getJenkinsUrl();
String getIconClickUrl();
int getYellowThreshold();
int getGreenThreshold();
boolean isPrivateJenkinsPublicGitHub... | 17.074074 | 56 | 0.73102 |
fb3549c84045848ed0a3f7a5d8b66520a9dc3588 | 2,266 | // 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 applicable ... | 36.548387 | 92 | 0.759488 |
481d91e162fc7bacd662629eb65295595882e286 | 17,814 | package org.apache.maven.plugin.surefire;
/*
* 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 Li... | 29.39604 | 115 | 0.610026 |
923e5614e3e1a7b13a180a8395aaaa2c085ec8e4 | 1,276 | package sortingalogorithm;
/**
*
* InsertionSort.
*
* @version 1.0 2017/05/24
* @author ALEX-CHUN-YU
*
*/
public class QuickSort {
/**
* @param data number sequence
* @param start left
* @param end right
* @return return sort number sequence
*/
public static int[] getQucikSort(fina... | 24.538462 | 88 | 0.484326 |
2bf04fbcd1502fa89485799c06e64fc891d189d8 | 1,071 | package com.hazz.cow.net;
import com.google.gson.Gson;
import retrofit2.Converter;
public class GsonDConverterFactory extends Converter.Factory {
public static GsonDConverterFactory create() {
return create(new Gson());
}
public static GsonDConverterFactory create(Gson gson) {
return ne... | 31.5 | 170 | 0.695612 |
51ff1d21cb513939b1ee6b0591d37f62349d8677 | 2,221 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 28.474359 | 83 | 0.660513 |
bc0749f38de724020e310671665bebdcfcc067ad | 598 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
*/
package cbi... | 27.181818 | 68 | 0.737458 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.