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 |
|---|---|---|---|---|---|
4f345eacc5b110017264f6d105c418c273260b79 | 521 | package com.wemirr.platform.authority.service;
import com.wemirr.framework.db.mybatis.SuperService;
import com.wemirr.platform.authority.domain.entity.tenant.Tenant;
import com.wemirr.platform.authority.domain.entity.tenant.TenantConfig;
/**
* @author Levin
*/
public interface TenantService extends SuperService<Ten... | 21.708333 | 71 | 0.735125 |
30c72e5d68ada3a67980c1775d0e4d12893b76de | 2,565 | package com.quran.labs.androidquran.model.bookmark;
import com.quran.labs.androidquran.R;
import com.quran.labs.androidquran.dao.BookmarkData;
import com.quran.labs.androidquran.database.BookmarksDBAdapter;
import android.content.Context;
import android.net.Uri;
import android.support.v4.content.FileProvider;
import... | 31.666667 | 86 | 0.71462 |
2a74e7593a66f7e6221f15f3d2d481ed9d09aab3 | 4,012 | package tech.linjiang.android.pandora.ui;
import android.graphics.Color;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Gl... | 60.787879 | 133 | 0.740279 |
3eb8170ad001481f3af2f45927efb9d4a0dca780 | 3,840 | /**
* @author Virtusa
*/
package org.bian.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.bian.dto.*;
import org.bian.util.JsonReader;
import com.fasterxml.jackson.core.type.TypeReference;
@Service
public class CustomerCaseApiServiceImpl implements CustomerCaseApiService {... | 49.87013 | 154 | 0.841927 |
8cd033653d2eae78afd2d2a115b442b59016b22a | 773 | package com.example.haams.myapplication.sms;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by haams on 2017-08-28.
*/
public class RandomAuthNumber {
Context context;
public RandomAuthNumber(Context context) {
this.context = context;
}
public void ... | 27.607143 | 93 | 0.707633 |
b0d39e20a25bfa1cf2c3b2ca4b16790082202987 | 3,836 | package org.season.ymir.core.heartbeat;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelId;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler... | 39.142857 | 146 | 0.699948 |
c0f4192b4f6553da5a92d6482bb47f6939891fae | 739 | package com.teashurov.algo.sort;
import com.teashurov.algo.commons.Printer;
import com.teashurov.algo.commons.Swapper;
/*
* O(n2) time complexity quadratic
* In our case, larger number will bubble to end of the array in each unsorted iteration
* stable
* */
public class BubbleSort extends Swapper {
public voi... | 27.37037 | 103 | 0.581867 |
e943800d8a6d5aa0abcc5cae6018857f13ce4b8c | 195 | package com.k8s.xmetrics.service.hardware;
import com.k8s.xmetrics.model.hardware.ComputerInfo;
/**
* @author apastoriza
*/
public interface ComputerInfoService {
ComputerInfo readInfo();
}
| 17.727273 | 52 | 0.774359 |
9cbba8ae9cbb260ce6528e0cc26fb8dd348b7eee | 11,881 | /*
* 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 ... | 38.954098 | 122 | 0.621076 |
6c7b999045383354d52b117d141d98b1da0cba8b | 923 | package com.baeldung.string.tostring;
import java.util.List;
public class CustomerWrapperCollectionToString extends Customer {
private Integer score;
private List<String> orders;
private StringBuffer fullname;
public Integer getScore() {
return score;
}
public void setScore(Integer... | 23.075 | 85 | 0.619718 |
edfcd4c2cf82ad5612899e07065c39eb5d20abc3 | 3,177 | /************************************************************************************************
* ____________ _ _ _____ _ _____ _ _ _______ __ _ _ _
* |___ / ____| \ | |/ ____| | | / ____| | | |_ _\ \ / / | | | | |
* / /| |__ | \| | | ... | 38.277108 | 97 | 0.540447 |
0e3f76a417129c3f2d186908cf5c476a7487e908 | 13,659 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2017 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 43.224684 | 204 | 0.62823 |
0f08b96aea085343d2ae5fdddf239d7c025f8cef | 237 | package com.alibaba.alink.params.dataproc;
import com.alibaba.alink.params.shared.colname.HasWeightCol;
/**
* Params for WeightSampleBatchOp.
*/
public interface WeightSampleParams<T> extends
HasWeightCol <T>,
SampleParams <T> {
}
| 19.75 | 60 | 0.772152 |
5386dc4212aba766ee833993aa636a794b1af908 | 1,840 | package com.alexstyl.specialdates.events.namedays.calendar.resource;
import com.alexstyl.specialdates.date.Date;
import com.alexstyl.specialdates.events.namedays.NameCelebrations;
import com.alexstyl.specialdates.events.namedays.NamesInADate;
import com.alexstyl.specialdates.events.namedays.calendar.EasternNameday;
im... | 36.078431 | 123 | 0.753261 |
cae7e1ee193da7fd9a00f1db8b50493dea916e86 | 3,060 | package lu.uni.bicslab.greenbot.android.ui.fragment.help;
import android.content.Context;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
... | 31.875 | 104 | 0.684641 |
0b98c7cff7fd58a1b9137e0ddfa45ee13f387af1 | 13,060 | /*
* Copyright 2016 Netflix, 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 t... | 45.664336 | 120 | 0.686371 |
1ee50c285f652267fef32370b89530e475dbb21b | 4,266 | package com.skrumaz.app.data.WebService;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;
import com.skrumaz.app.classes.User;
import com.skrumaz.app.data.Preferences;
import com.skrumaz.app.data.Store.Users;
import com.skrumaz.app.utils.C... | 39.137615 | 142 | 0.654712 |
f3680389418235dacecb19fb547112f4bb658a2b | 2,337 | package org.springframework.samples.petclinic.integration;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.time.LocalDate;
import java.time.Month;
import java.util.List;
i... | 30.350649 | 97 | 0.768079 |
1efa1c3b55e85d974983494e5b940bc0f9916a08 | 1,061 | package com.ps.quibbler.base;
import com.ps.quibbler.enums.ErrorCodeEnum;
import lombok.Getter;
import org.apache.commons.lang3.ObjectUtils;
import java.util.HashMap;
import java.util.Map;
/**
* @author paksu
*/
@Getter
public abstract class BaseException extends RuntimeException {
private final ErrorCodeEnum... | 26.525 | 97 | 0.675778 |
8bda85f775b35163b0d18478d4d9938cf2808fec | 11,210 | package testJpa.simple.parentChild.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
import java.util.Optional;
import... | 36.633987 | 129 | 0.697324 |
bd7f30fa4c10cf2329195fb9600b62df5270f429 | 15,521 | /*
* Copyright 2014-2019 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 "licen... | 33.378495 | 137 | 0.623349 |
3a5bca6d45691e78e97dd55cfefb538546f20eab | 2,895 | package com.lin.web.dto;
import java.io.Serializable;
public class AdvertiserTrendAnalysisHeaderDTO implements Serializable{
private String bookedImpressions;
private String impressions;
private String lifeTimeImpresions;
private String clicks;
private String lifeTimeClicks;
private String CPM;
private Strin... | 21.444444 | 70 | 0.759585 |
044dc312f055d2f4249f1efc4d6dc820a4901762 | 1,925 | package org.logstash.benchmark.cli;
import java.io.IOException;
import java.nio.file.Path;
import java.security.NoSuchAlgorithmException;
import org.logstash.benchmark.cli.util.LsBenchDownloader;
/**
* JRuby Installation.
*/
public final class JRubyInstallation {
private static final String JRUBY_DEFAULT_VERSI... | 27.5 | 90 | 0.633766 |
b0a45e8b7a0b977cdb2793ad80de9c6508c9aee9 | 2,016 | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 34.169492 | 101 | 0.706845 |
c1c9e95956dcc0a2ae2790740dda8939de95bedf | 1,231 | package eubrazil.atmosphere.qualitymodel;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
... | 30.775 | 99 | 0.850528 |
fd093e09c627e281fe4598302a9be6dcd2e2db9c | 1,395 | package vos;
import org.codehaus.jackson.annotate.JsonProperty;
public class PedidoMesa
{
@JsonProperty(value="id")
private Long id;
@JsonProperty(value="idMesa")
private Long idMesa;
@JsonProperty(value="idProducto")
private Long idProducto;
@JsonProperty(value="idMenu")
private Long idMenu;
@JsonP... | 13.811881 | 232 | 0.705376 |
793b2e0d5959b5b081362cc4bd71bb4b42ce2b5b | 1,633 | public class Solution {
// 深度优先遍历(回溯算法)
private int[][] graph;
private boolean[] visited;
private int res = Integer.MAX_VALUE;
public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {
K = Math.min(K, n - 2);
// 建图(有向图)
this.graph = new int[n][n];
... | 23.666667 | 83 | 0.415799 |
221dac77e1480c851aa467f7904f287d8debafbf | 12,374 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 34.564246 | 120 | 0.610474 |
4c29b55e2b1b47fd64eb4682c235ad7a7bcdd842 | 498 | package com.cbeardsmore.scart.domain.commands;
import com.cbeardsmore.scart.domain.command.CheckoutCommand;
import com.cbeardsmore.scart.domain.exception.CommandValidationException;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;
class CheckoutCommandTest {
@Test
... | 31.125 | 73 | 0.779116 |
54a57b574575774bd975ca8704d272b98a4f8365 | 1,202 | package com.thinkaurelius.titan.graphdb.loadingstatus;
import com.thinkaurelius.titan.graphdb.query.InternalTitanQuery;
import com.thinkaurelius.titan.graphdb.relations.EdgeDirection;
import com.thinkaurelius.titan.util.datastructures.BitMap;
public class DirectionTypeEncoder {
public static final boolean hasAllC... | 30.05 | 81 | 0.704659 |
94be312ab5fc2d7309ec9ca91c3cc6218ac9d5c9 | 13,359 | /*
* 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 ... | 41.616822 | 154 | 0.706191 |
3512b26a63ee62ddaeda992caa47d18d26a2284a | 4,554 | /*
*
* *
* * * Copyright 2015 Skymind,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/L... | 30.979592 | 112 | 0.612429 |
f394b1323855afa10eaf69858c114ba94007897c | 581 | package frc.robot.commands.intake;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.IntakeSubsystem;
public class RunIntake extends CommandBase {
// The subsystem the command runs on
private final IntakeSubsystem m_intakeSubsystem;
public RunIntake(IntakeSubsystem subsystem)... | 23.24 | 52 | 0.710843 |
e7532ffd4dd5ae3c271144a0575a02d5b3eedef6 | 83,360 | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 50.247137 | 92 | 0.727639 |
73c19f9a2936b0cb5b8984c9b9de2cc6088dac38 | 438 | package com.aunghan.stockmanagementsystem.service;
import com.aunghan.stockmanagementsystem.entity.Stock;
import java.util.List;
public interface StockService {
Stock saveStock(Stock stock);
List<Stock> getStocks();
Stock getStockById(int id);
String deleteStock(int id);
Stock updateStock(Sto... | 19.909091 | 54 | 0.753425 |
e1c059ef0e4c8c0653d1d1b05f259837cbdb57f0 | 9,068 | /* Copyright 2005-2006 Tim Fennell
*
* 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 t... | 38.587234 | 99 | 0.656815 |
6a0d750df782e954f7c18d589fc7c0572460308b | 1,935 | package net.sojoner.functional;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class App
{
static void converterExample(){
System.out.println("Converter Example.");
Converter converter = new Converter();
... | 32.79661 | 89 | 0.575194 |
cd28de42d95ea4dcddb540fbf005ef81246d1fa9 | 1,113 | /*
* APIv3SandboxLib
*
* This file was automatically generated by APIMATIC BETA v2.0 on 03/10/2015
*/
package com.voxbone.sandbox.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
public class DidListModel
im... | 22.26 | 77 | 0.592992 |
83eac3e29edac1053907da2ccd30fb95c9368ce3 | 1,682 | /* Copyright (c) 2008-2011, The University of Edinburgh.
* All Rights Reserved
*/
package uk.ac.ed.ph.snuggletex.samples;
import uk.ac.ed.ph.snuggletex.SerializationMethod;
import uk.ac.ed.ph.snuggletex.SnuggleEngine;
import uk.ac.ed.ph.snuggletex.SnuggleInput;
import uk.ac.ed.ph.snuggletex.SnuggleSession;
import uk... | 37.377778 | 98 | 0.681926 |
5b8d1e7e20938e0f123aec116afc2febc83a6b7f | 602 | @Override
public void actionPerformed(ActionEvent e) {
if (fileChooser.showOpenDialog(getMainWindow()) == JFileChooser.APPROVE_OPTION) {
File file = fileChooser.getSelectedFile();
resetOutput();
try {
... | 46.307692 | 125 | 0.48505 |
e062e31d19e58c543f424bab00dd0252ce11e258 | 1,025 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.ir.builder;
import gw.lang.ir.IRType;
import gw.lang.ir.statement.IRFieldDecl;
import gw.lang.reflect.IType;
import gw.lang.UnstableAPI;
@UnstableAPI
public class IRFieldBuilder extends IRFeatureBuilder<IRFieldBuilder> {
private IRClassBuilder _cla... | 22.282609 | 78 | 0.72 |
df12738472f272aacf3b8c81126c2984be002150 | 811 | package kbasesearchengine.main;
import kbasesearchengine.SearchTypesInput;
import kbasesearchengine.SearchTypesOutput;
import kbasesearchengine.SearchObjectsInput;
import kbasesearchengine.SearchObjectsOutput;
import kbasesearchengine.GetObjectsInput;
import kbasesearchengine.GetObjectsOutput;
import kbasesearchengine... | 30.037037 | 89 | 0.805179 |
52143dcc132e95c9ce87bb7c0d12493d5bee812d | 932 | package com.jsoniter.any;
import com.jsoniter.ValueType;
import com.jsoniter.output.JsonStream;
import java.io.IOException;
/**
* @author MaxiBon
*
*/
class TrueAny extends Any {
/**
* public final static TrueAny INSTANCE = new TrueAny();
*
* @author MaxiBon
*
*/
public final static TrueAny INSTANC... | 13.126761 | 60 | 0.666309 |
efd108abaefdf194b8788ae131cefaa9ee4178f7 | 410 | package com.novoda.bonfire.channel.displayer;
public interface NewChannelDisplayer {
void attach(ChannelCreationListener channelCreationListener);
void detach(ChannelCreationListener channelCreationListener);
void showChannelCreationError();
interface ChannelCreationListener {
void onCreat... | 22.777778 | 75 | 0.770732 |
68bbd1c549c6cc61a05c590ad572395786d7df21 | 936 | package com.itijavafinalprojectteam8.view.gamechooserscreen;
import com.itijavafinalprojectteam8.view.interfaces.GameAppView;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import java.io.IOException;
public class GameChooserController {
@FXML
private Button p... | 24.631579 | 72 | 0.744658 |
7b47ef484f0fe4e399ccedbd5da3856c57044b05 | 688 | package com.example;
import io.arivera.oss.jchatops.MessageType;
import io.arivera.oss.jchatops.annotations.MessageHandler;
import io.arivera.oss.jchatops.responders.Response;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.security.access.annotation.Secured;
import org.springframework.s... | 31.272727 | 107 | 0.777616 |
f3a0f24bd3d7d6e7c2c3eab782926d4ea68b0d85 | 1,192 | package com.classycode.nfcsockets.sockets;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import javax.net.SocketFactory;
/**
* @author Alex Suzuki, Classy Code GmbH, 2017
*/
public class NFCSocketFactory extends SocketFactory {
public NF... | 27.72093 | 134 | 0.723993 |
38aad8a0da71eb93f89ce35ea84e3ef7bf39770d | 505 | package pojo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
/*
请求传输的格式
服务端需要相关的信息确定调用哪个接口方法
*/
@Data
@AllArgsConstructor
@Builder
public class RpcRequestFormat implements Serializable {
//待调用的接口名
private String interFaceName;
//待调用的方法名
... | 15.78125 | 55 | 0.730693 |
01073f3fc93a745b5033446a770ce2bfdeb45561 | 1,771 | package org.displaytag.jsptests;
import com.meterware.httpunit.WebRequest;
import com.meterware.httpunit.GetMethodWebRequest;
import com.meterware.httpunit.WebResponse;
import com.meterware.httpunit.WebTable;
import org.displaytag.test.DisplaytagCase;
import org.displaytag.test.KnownTypes;
import org.apache.commons.la... | 31.625 | 113 | 0.663467 |
0c22a15107e3c878a077536e2035e58803093ec7 | 601 | package org.bcos.web3j.abi.datatypes.generated;
import java.math.BigInteger;
import org.bcos.web3j.abi.datatypes.Fixed;
/**
* <p>Auto generated code.<br>
* <strong>Do not modifiy!</strong><br>
* Please use {@link org.bcos.web3j.codegen.AbiTypesGenerator} to update.</p>
*/
public class Fixed160x24 extends Fixed {
... | 27.318182 | 80 | 0.698835 |
68e700a0cbb10e001a683d60c7c327fb325487c3 | 6,386 | package com.nominum.build;
import org.apache.commons.vfs2.*;
import org.apache.commons.vfs2.impl.DefaultFileMonitor;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;... | 32.090452 | 104 | 0.62684 |
9705e2e66b2950f9250879df371f3a8ee4a5b229 | 388 | package sovsen.plejeren;
import sovsen.plejeren.view.presenter.Client;
import static org.junit.Assert.assertEquals;
public class MTest {
Client client = new Client("Mads", "Kværredevej", "12.00");
@org.junit.Test
public void TestClient() {
// Tester om navn bliver hentet som String fra task o... | 17.636364 | 68 | 0.680412 |
a46fb3140c51f70bf438290270e9d7dc6d4da94b | 3,769 | /*
* $Id$
*/
/*
Copyright (c) 2015 Board of Trustees of Leland Stanford Jr. University,
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... | 29.445313 | 79 | 0.697267 |
2a16dd3d4616f985744fee0805a51f0792ff5853 | 2,346 | package com.apteligent.display;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Created by levy on 7/19/16.
*/
public class BreadcrumbTrail {
public enum BreadcrumbType {
UNKNOWN, NORMAL, NETWORK_CALL, FOREGROUND_BACKGROUND, NETWORK_CONNECTION_CHANGE, VIEW_CHANGE... | 36.65625 | 126 | 0.560529 |
1cf880c62fe71a87be01d3d036bb595e8da77415 | 1,344 | package com.osomapps.pt.dictionary;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
impor... | 28.595745 | 92 | 0.719494 |
6c644f3fbb88f4b3fce2e0c12ccf482a09801f1c | 1,696 | package org.teavm.libgdx;
import com.badlogic.gdx.Files;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.utils.GdxRuntimeException;
import org.teavm.jso.browser.Storage;
/**
*
* @author Alexey Andreev
*/
public class TeaVMFiles implements Files {
public static final Storage localStorage = Sto... | 24.941176 | 98 | 0.675118 |
ac668816a11fcac8beb69ad8862c2383631185a5 | 156 | package org.nearbyshops.enduserappnew.Interfaces;
/**
* Created by sumeet on 29/9/16.
*/
public interface NotifySort {
void notifySortChanged();
}
| 14.181818 | 49 | 0.717949 |
8e32aab8bf04c75aea8471053da2da51511d5cbc | 325 | package com.angkorteam.fintech.ddl;
public interface MSavingsProductCharge {
public static final String NAME = "m_savings_product_charge";
public interface Field {
public static final String CHARGE_ID = "charge_id";
public static final String SAVINGS_PRODUCT_ID = "savings_product_id";
... | 20.3125 | 77 | 0.729231 |
3eda416c36e88bfebd01a2ecf8b03950cbb2a9f6 | 1,059 | package cpw.mods.fml.common;
import java.io.File;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Properties;
import java.util.logging.Logger;
import cpw.mods.fml.common.modloader.BaseMod;
import cpw.mods.fml.common.modloader.ModProperty;
public interface IFMLSided... | 33.09375 | 87 | 0.778093 |
a630ab804c27c72dd03338f55f992eaae1fc63a5 | 1,575 | package dev.willbanders.storm.serializer.primitive;
import com.google.common.collect.Sets;
import dev.willbanders.storm.config.Node;
import dev.willbanders.storm.serializer.SerializationException;
import dev.willbanders.storm.serializer.Serializer;
import java.util.Set;
/**
* Serializes an {@link Enum} constant to ... | 33.510638 | 123 | 0.693333 |
bc6a08d678a63095536834947803bb8fe67035e2 | 1,290 | package cs455.scaling.task;
import cs455.scaling.threadpool.Task;
import cs455.scaling.util.LOGGER;
import java.util.concurrent.LinkedBlockingQueue;
/**
* This class is not meant to be used directly. This class is only meant to be used by the {@link BatchTaskManager}.
* This class contains a list of tasks that are... | 26.875 | 117 | 0.709302 |
520d9a4fcfb3147712a47d96412acd8d4eddfa1b | 2,563 | package cn.mcmod.sakura.block.crops;
import cn.mcmod.sakura.block.BlockRegistry;
import cn.mcmod.sakura.item.ItemRegistry;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.LevelReader;
import net.minecraft.worl... | 38.253731 | 120 | 0.704253 |
b39acd8da1d10b9d85ad35fe76167d13b8e4d78a | 9,741 | package com.scriptsbundle.adforest.home;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.recyclerview.widget.G... | 43.681614 | 178 | 0.616261 |
555ec7efadc659c8478c329b3bfbdf63f7e236bf | 211 | package ru.protei.system.devices;
import ru.protei.system.inspection.ServerStatus;
public class SmallDevice extends Device {
public ServerStatus getStatus() {
return ServerStatus.ONLINE;
}
}
| 17.583333 | 48 | 0.739336 |
28cea3b7b47b7ca577d040ef281dee5f772e3117 | 529 | package com.dlink.parser;
/**
* UpdateSqlParser
*
* @author wenmo
* @since 2021/6/14 16:52
*/
public class UpdateSqlParser extends BaseSingleSqlParser {
public UpdateSqlParser(String originalSql) {
super(originalSql);
}
@Override
protected void initializeSegments() {
segments.add... | 22.041667 | 77 | 0.610586 |
1813e12015f422138fbfbea0d5b3b2131f7ce3fd | 7,432 | package org.firstinspires.ftc.teamcode;
import android.util.Log;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware... | 30.838174 | 95 | 0.560011 |
27cb84fce8c08831dacec87f4942b90ac6715b1e | 2,142 | package com.octoperf.metrics.iis.pdh.cache;
import com.google.common.collect.ImmutableSet;
import com.octoperf.metrics.condition.IsWindows;
import com.octoperf.metrics.iis.api.cache.WebServiceCacheMetadataMetrics;
import com.octoperf.metrics.iis.pdh.IsIIS;
import com.octoperf.metrics.windows.pdh.api.PerfmonQueryServic... | 27.461538 | 88 | 0.764239 |
f82a49dc179d4004898ca2de969eb7aec016c575 | 1,967 | /*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the BSD-3 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://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicab... | 33.913793 | 96 | 0.71937 |
79a4775214946f144f6f191704d49e9c63990573 | 1,532 | package Debug;
import java.util.ArrayList;
import java.util.HashMap;
import math.Vector3;
public class Registers {
HashMap<String, String> registers, turns;
public Registers(HashMap<String, String> defaults, HashMap<String, String> turns){
this.registers = defaults;
this.turns = turns;
}
... | 27.854545 | 96 | 0.568538 |
3ac7db843cef77ac8a3c7d2ba6ac31c1bf8d5598 | 13,212 | package bost7517.oldprojects;
import java.awt.Color;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
i... | 31.759615 | 110 | 0.691038 |
4be6ad26c5cf4c152e01f286d391df2fd8621deb | 1,039 | package com.eldarian.carina;
import com.eldarian.carina.gui.pages.SeleniumEasyFormPage;
import com.qaprosoft.carina.core.foundation.IAbstractTest;
import com.qaprosoft.carina.core.foundation.utils.R;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class ... | 29.685714 | 92 | 0.688162 |
c53bfc9ee01ab786c52d17bffdd01ac2603bccc0 | 546 | /*
SPDX-FileCopyrightText: (C)2021 SAP SE or an affiliate company and aas-transformation-library contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package com.sap.dsc.aas.lib.aml.placeholder.exceptions;
public class PlaceholderValueMissingException extends IllegalStateException {
... | 34.125 | 131 | 0.767399 |
a35f58f2a218205ec0d8f4a168c11b816c5a0a80 | 6,258 | /*
* 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 ... | 34.196721 | 118 | 0.576542 |
9afa1b583fb473238a3da03af595a3043169d794 | 309 | package schema.creation.abstractFactory.dao.product;
import schema.creation.abstractFactory.bean.Product;
/**
* Created by forgot on 2017/6/18.
*/
public interface IProductDao {
void addProduct(Product product);
void removeProduct(Product product);
Product getProduct(String productName);
}
| 20.6 | 52 | 0.760518 |
a2b967c1788f7d8ffa08cf7a39b2555521f64bda | 19,277 | /*
* 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 com.minventario.vistas;
import com.minventario.modelos.algoritmos.Politica;
import com.minventario.modelos.tablas.TablaProbabi... | 58.95107 | 192 | 0.661462 |
35e6e3c27d9b7ae09cd913f529d69ed56fde43b6 | 120 | package builder.components.wheels;
import builder.components.Details;
public abstract class Wheel extends Details{
}
| 15 | 44 | 0.816667 |
dfd9aabda28823176d619c80f86c8158ea07efd4 | 6,148 | import java.util.Arrays;
public class ChatonsPhotos {
public static void main(String[] args) {
// Tableau contenant les votes de chaque chaton
int[] votes = new int[10];
// Nombre de votants total
int nombreVotants = 0;
// Tableau avec les surnoms de chaque chaton
String[] chatons = {
... | 31.367347 | 108 | 0.626383 |
4c4263b04d2f0699b01c08f35ef9d20425c01f6a | 2,699 | package com.jsoniter.output;
import com.jsoniter.spi.TypeLiteral;
import junit.framework.TestCase;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class TestNested extends TestCase {
priva... | 29.988889 | 90 | 0.525009 |
27a06c109bbbecd2140402eb29fc48bf7219e947 | 481 | package com.zookeeper.client.zkclient;
import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.serialize.SerializableSerializer;
/**
* @author Wang danning
* @since 2020-02-21 23:24
**/
public class ZkClientWatchTest {
public static void main(String[] args) {
ZkClient zkClient = new ZkClient("... | 22.904762 | 60 | 0.642412 |
82e49a25e2855251278cf70547926050cbac7155 | 1,183 | /*
* 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, software
* distribut... | 35.848485 | 113 | 0.72612 |
d19c5ae7bbf1f855626d27ca32bb818a48f672de | 17,056 | package simplied.katara;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
import org.supercsv.io.CsvBeanWriter;
import... | 28.665546 | 141 | 0.644758 |
617140ca7f876793da39d335e929bbbdd1a1d69d | 1,377 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.TreeMap;
public class PhonebookUpgrade {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamRead... | 33.585366 | 86 | 0.519245 |
418b2febd802c805946b73c9a61661ffe0c7ac83 | 17,124 | /*
* (C) Copyright IBM Corp. 2016,2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.whc.deid.providers.masking;
import static org.hamcrest.core.StringContains.containsString;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Asse... | 40.578199 | 99 | 0.730495 |
06b1b8c88224695e56628264426e18a195f3aeea | 6,094 | /**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | 41.739726 | 163 | 0.714801 |
8594eeb8e68c95fc37a3fa0741665f9a08851ec9 | 895 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.core.externaltools.validators;
/**
* <p>
* Validates arguments for compare tools.
* </p>
*
* @since TEE-SDK-10.1
* @threadsafety immutable
*/
public final class ... | 21.309524 | 74 | 0.550838 |
750805d65e71ec3672b009d27776443bbbcdd3b9 | 201 | package com.backend.jobsity_challenge.controller;
import org.mockito.InjectMocks;
import static org.junit.Assert.*;
import static org.mockito.Mockito.when;
public class OutputControllerImplTest {
} | 20.1 | 49 | 0.820896 |
8550ad5267093a69e5ef80daefb81fea224d5c0b | 4,898 | package com.twu.biblioteca;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
public class PredefinedMenuOptionTest {
PredefinedMenuOption menu;
BibliotecaApp library = new BibliotecaApp();
Book bookProgrammingInJava = new Book("Programming in Java", "Gabriela Andrade"... | 40.479339 | 99 | 0.678849 |
aaefce5ccf6d01dad066051e079defc4e160d000 | 15,070 | /*
* Copyright (c) Joachim Ansorg, mail@ansorg-it.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 53.439716 | 164 | 0.74081 |
e8c44f9ea110ecb477237092bf8264cd6c8473eb | 1,075 | package ru.job4j.singletons;
import ru.job4j.models.Item;
/**
* TrackerSingletonLazy.
*
* @author Maxim Vanny.
* @version 2.0
* @since 0.1
*/
public final class TrackerSingletonLazy {
/**
* Create TrackSingletonLazy link.
*/
private static TrackerSingletonLazy instance;
/**
* Constru... | 18.859649 | 57 | 0.571163 |
3961536b39cce83dd0549ca9d876ef5d168072c4 | 31,204 | package com.wzq.jz_app.ui.fragment;
import android.app.DatePickerDialog;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.wi... | 39.151819 | 222 | 0.550186 |
53d656988a5d6f9aaff6d6e19b108317e9187b9c | 10,604 | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 64.658537 | 170 | 0.338834 |
6cc18e587fb157dd08002804058eb56ea55144a0 | 183 | package SemantifyingBPMN;
public enum ActivityType {
Task , SendTask , ReceiveTask , ManualTask , Compensation ,
SendTaskWithBoundaryRollback , ManualTaskWithBoundaryRollback;
}
| 22.875 | 64 | 0.808743 |
083ca6f5ee82899fde52783a2bda3d661204bec9 | 227 | import java.io.Serializable;
public class SQLTimePair implements Serializable {
public Long timeStamp;
public String clause;
public SQLTimePair(Long a,String b){
timeStamp = a;
clause = b;
}
}
| 18.916667 | 50 | 0.665198 |
182bef806116934427c870062a4671dfa963372e | 523 | package br.com.zup.bootcamp.ecommerce.product;
import java.io.IOException;
import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.springframework.web.multipart.MultipartFile;
class ImageFile {
private final MultipartFile file;
ImageFile(MultipartFile file) {
this.fil... | 18.678571 | 55 | 0.676864 |
e7ea53fc41f3557c9fbb04f2ad92950adb0ac16a | 418 | package bayern.steinbrecher.dbConnector;
/**
* @author Stefan Huber
* @since 0.1
*/
public class AuthException extends Exception {
public AuthException() {
}
public AuthException(String message) {
super(message);
}
public AuthException(String message, Throwable cause) {
super(... | 17.416667 | 59 | 0.643541 |
5c052f840e7f2acd36f772242cf6a91dd8e3b5ce | 2,085 | /*
Copyright 2015 David Standish
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, software
... | 28.561644 | 72 | 0.680096 |
24843b438a7fe682104536939d66cb2685fd7346 | 795 | package offer55_2;
// 平衡二叉树
public class Solution {
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
public boolean isBalanced(TreeNode root) {
return recur(root) != -1;
}
private int recur(TreeNode root) {
// 用... | 27.413793 | 75 | 0.577358 |
90ab51243d40d53821966d84d21ee4a7b99f3cec | 5,712 | /*
* Copyright © 2022 JINSPIRED B.V.
*/
package io.humainary.devkit.perfkit;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.results.AverageTimeResult;
import org.openjdk.jmh.results.BenchmarkResult;
import org.openjdk.jmh.results.RunResult;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.j... | 22.756972 | 86 | 0.556022 |
6737274d95747c79b93312ea56453dcc8280f30c | 441 | package com.nsyw.routerdemo.module_chat;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.nsyw.routerdemo.router_compiler.annotation.Route;
@Route(path = "/chat/two")
public class ChatTwoActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle saved... | 24.5 | 60 | 0.770975 |
5bf9af860eb9c651bcab4f38d0d4b262eea1941e | 2,646 | package org.jsoup.parser;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mockito;
import org.mockito.junit.jupiter.MockitoExtension;
import org.mockito.InOrder;
import org.junit.jupiter.api.Test;
import static org.mockito.Mockito.times;
@ExtendWith(MockitoExtension.class)
public class Tokenizer... | 37.267606 | 101 | 0.704082 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.