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 |
|---|---|---|---|---|---|
a7bb6994ab20628e96b36dc2335a441088dba463 | 3,572 | // Copyright 2006, 2007, 2008 The Apache Software Foundation
//
// 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 ... | 29.520661 | 88 | 0.655095 |
4afe6cd001059aeff99aa609415ae6fe712c51bd | 366 | package com.lambdaschool;
public class Dollar extends Coins
{
public Dollar(int numAdded)
{
super(numAdded);
}
public Dollar()
{
super();
}
@Override
public String getNumAdded()
{
return "$" + numAdded;
}
@Override
public double getTotal()
... | 13.555556 | 34 | 0.530055 |
1c082cd566888303d53d2d503ef9059c33e63f70 | 4,019 | package io.boodskap.iot.spi.storage.jpa.dao;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import io.boodskap.iot.StorageException;
import io.boodskap.iot.dao.EntityIterator;
import io.boodskap.iot.dao.NodeScheduledRuleDAO;
import io.boodskap.iot.model.INodeScheduledRule;
import io.bood... | 30.44697 | 108 | 0.762379 |
558e96b8a4f7efee467d045fc41c5d95416cfeaa | 2,219 | package net.minecraft.tags;
import java.util.Collection;
import java.util.Optional;
import net.minecraft.fluid.Fluid;
import net.minecraft.util.ResourceLocation;
public class FluidTags {
private static TagCollection<Fluid> collection = new TagCollection<>((p_206955_0_) -> {
return Optional.empty();
}, "",... | 31.253521 | 90 | 0.66922 |
6bbc9548fd45305cddee20f4e84722f3d6486b57 | 3,032 | /*
*
* Copyright 2012-2015 Eurocommercial Properties NV
*
*
* 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... | 36.53012 | 126 | 0.719987 |
0b83b8099fe4b6fb148ba5201409ce68e3bb6891 | 1,535 | /**
* Copyright 2015-2016 Debmalya Jash
* <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... | 23.257576 | 76 | 0.575896 |
16e040ae42883e10bcdd7517a0ee31c0e146708e | 2,609 | package com.mploed.dddwithspring.creditsalesfunnel.model.financing;
import com.mploed.dddwithspring.creditsalesfunnel.model.validation.ApplicationSubmissionGroup;
import org.hibernate.annotations.IndexColumn;
import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.Min;
import ja... | 23.718182 | 94 | 0.76811 |
264210875fcd1f6550a6772e325329ece717e552 | 2,315 | /*
* Copyright (c) 2021 ByteSkript org (Moderocky)
* View the full licence information and permissions:
* https://github.com/Moderocky/ByteSkript/blob/master/LICENSE
*/
package org.byteskript.skript.lang.syntax.timing;
import mx.kenzie.foundation.MethodBuilder;
import mx.kenzie.foundation.Type;
import org.byteskr... | 31.712329 | 115 | 0.676026 |
729458d229b0ce33c0bfffdf6f2e1595c8b5d51f | 2,637 | /*
* Copyright 2011-2019 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... | 31.392857 | 99 | 0.695108 |
a047397ca8b4be884c1d9d4c0f508bc73d5cdeee | 1,418 | package org.ff4j.elastic.store;
/*
* #%L
* ff4j-store-elastic
* %%
* Copyright (C) 2013 - 2016 FF4J
* %%
* 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.o... | 29.541667 | 75 | 0.711566 |
c20f153c830e6edfd7abec21656fc808800d8f0c | 6,813 | /*
* Cloud Resource & Information Management System (CRIMSy)
* Copyright 2020 Leibniz-Institut f. Pflanzenbiochemie
*
* 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.... | 41.542683 | 116 | 0.730809 |
858f32ced4c2126ae5b97641960767e4476df1d0 | 1,677 | /**
* Copyright 2018 StrongJoshua (strongjoshua@hotmail.com)
* <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 requir... | 27.95 | 139 | 0.624329 |
44696c1a39b731741b13d0adc0c0fc4fb209bd74 | 1,821 | /**
*
* Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.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.... | 36.42 | 123 | 0.723778 |
ae4f676eb02262a02fd73d12ba2bfb4878715aa9 | 1,146 | package org.objectagon.core.object;
import org.objectagon.core.msg.Message;
import org.objectagon.core.msg.Protocol;
import org.objectagon.core.msg.protocol.ProtocolNameImpl;
import org.objectagon.core.task.Task;
/**
* Created by christian on 2016-03-07.
*/
public interface RelationProtocol extends Protocol<Relatio... | 29.384615 | 105 | 0.751309 |
c6a09831effae2dc2b3e6fe75e5b9ecaebea3b8f | 727 | package com.winsun.fruitmix.eventbus;
import com.winsun.fruitmix.model.OperationTargetType;
import com.winsun.fruitmix.model.OperationType;
/**
* Created by Administrator on 2016/11/9.
*/
public class AbstractFileRequestEvent extends RequestEvent {
private String folderUUID;
private String rootUUID;
... | 24.233333 | 142 | 0.731774 |
91aea0a6143130ab53560f1969194505ea445854 | 3,269 | package hard.newYearAndFireworks;
import java.io.*;
import java.util.AbstractMap.SimpleEntry;
import java.util.HashSet;
import java.util.StringTokenizer;
public class NewYearAndFireworks {
public static FastScanner in = new FastScanner(System.in);
public static class FastScanner {
public BufferedReader reader;
... | 24.214815 | 95 | 0.577547 |
d8860f067ed668e1bcc64f3d99438db1cb000cb1 | 2,394 | package com.vtxsystems.statemachine;
import org.junit.Test;
import java.util.List;
import static com.vtxsystems.statemachine.CharacterHelpers.*;
import static java.util.stream.Collectors.toList;
import static org.junit.Assert.assertTrue;
public class NumberParse {
private static <E> void swallowException(StateM... | 41.275862 | 123 | 0.647034 |
9de3be1226edfff9ee5671302a5e0beeb822bfa8 | 1,488 | package lf.com.android.blackfishdemo.util;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class WebSettingUtil {
public static void setSetting(WebView webView) {
... | 32.347826 | 95 | 0.689516 |
f4408b02f8afa7dd948d158b4dd8f30547eadb28 | 3,402 | package org.firstinspires.ftc.teamcode.subsystems;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import org.firstinspires.ftc.teamcode.Constants;
import org.firstinspires.ftc.teamcode.PIDController;
p... | 36.191489 | 82 | 0.687537 |
c17ec3cfd311802f7e08a5b162c9c734218ad35c | 3,341 | /*
* 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 ... | 45.767123 | 115 | 0.744987 |
a07a7846462fdeb4eb80cb0f72ce36eaaf3e1e6d | 2,505 | package edu.colorado.csdms.bmiheat;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* JUnit tests for the grid information methods of the {@link BmiHeat} class.
*/
public class TestGridMethods {
private int gridId;
private int[] shape;
private ... | 22.168142 | 77 | 0.663074 |
ce8d3cd753782acce122798d33220b2ca1daa79b | 5,271 | package seedu.address.model;
import static java.util.Objects.requireNonNull;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javafx.collections.ObservableList;
import seedu.address.commons.core.amount.Amount;
import seedu.address.model.tag.Tag;
import seedu.a... | 29.121547 | 112 | 0.632707 |
1d098566006e8a3510527493ae7555c6d0dfec4e | 157 | package com.example.kaio.findpackrecycler.Model;
public class Cod {
private String cod;
public Cod(String cod) {
this.cod = cod;
}
}
| 13.083333 | 48 | 0.636943 |
9cf81e2f7d0bfa87985848cd741d64df6ccb2405 | 512 | package blcs.lwb.lwbtool.utils.wheelview;
/**
* @author vondear
* Wheel clicked listener interface.
* <p>The onItemClicked() method is called whenever a wheel item is clicked
* <li> New Wheel position is set
* <li> Wheel view is scrolled
*/
public interface OnWheelClickedListener {
/**
* Callback method... | 28.444444 | 75 | 0.708984 |
03c2997803f50b2e71572d78b7591f32ff268081 | 290 | package com.example.modules.sys.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.modules.sys.entity.SysOauthClientDetails;
/**
* 客户端管理
*
* @author jinghong
*/
public interface SysOauthClientDetailsMapper extends BaseMapper<SysOauthClientDetails> {
} | 22.307692 | 88 | 0.803448 |
ec3762316b496e61b183385a105b826c54870c9d | 230 | package com.team1458.turtleshell.component;
public interface TurtleRobotComponent {
/**
* Initialise a component. Will be called once.
*/
public abstract void init();
public void teleUpdate();
public void stop();
}
| 16.428571 | 48 | 0.717391 |
14c7efef652db716259ed807f24bf8a23f5a628f | 3,624 | package com.android.home.threelibs.customview;
import android.app.Fragment;
import android.content.Context;
import android.graphics.*;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vie... | 28.761905 | 132 | 0.560155 |
8a00933acac97f544e84ec17e5f4bdb0e6953474 | 4,806 | /*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | 46.660194 | 116 | 0.741989 |
1b9b24ef1d91359ed8a33437983780463cd98743 | 1,404 | package org.springframework.samples.petclinic.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation... | 18.72 | 52 | 0.735755 |
909c2432992420c2f8cb33296b5b806dc479e031 | 2,247 | /*
* Copyright 2014 The Board of Trustees of The Leland Stanford Junior University.
*
* 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
... | 21.815534 | 81 | 0.708055 |
46bb46decdc826c0c380f148d8fa1b8ee4ad7345 | 8,889 | package params;
import java.io.Serializable;
import javax.swing.JPanel;
import controllers.TD.ntuple2.SarsaAgt;
import controllers.TD.ntuple2.TDNTuple3Agt;
import games.Arena;
import games.Nim.ArenaNim2P;
import games.Nim.NimConfig;
/**
* N-tuple parameters and TC (temporal coherence) parameters for TD agents
*... | 25.324786 | 106 | 0.697154 |
612d4d53165183777340d045ed9f5c33e69a2f88 | 2,524 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | 29.694118 | 93 | 0.716323 |
a2c556d06d8a42cc7501bdb8e448c11420463405 | 775 | package webmail.pages;
import org.stringtemplate.v4.ST;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Created by JOKER on 11/26/14.
*/
public class SendEmailWithToPage extends Page {
public SendEmailWithToPage(HttpServletRequest request, HttpServletResponse ... | 24.21875 | 90 | 0.664516 |
b38eccb756c2d6e8e4362d534c1ff7db98a10b8b | 1,300 | package com.spldeolin.allison1875.querytransformer;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
/**
* @author Deolin 2020-08-09
*/
@Data
public final class QueryTransformerConfig {
/**
* Mapper方法签名中Condition类的包名
*/
@NotEmpty
private String mapperConditionPackage;
/*... | 24.074074 | 89 | 0.630769 |
1779cd3baa3da66148de304bf046204b0d6fb561 | 456 | package dubbo.consumer;
import dubbo.config.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;
/**
* 2 * @Author: han,zhansheng
* 3 * @Date: 2019/12/12 8:20 PM
* 4
*/
@Service
public class ConsumerDemo {
@Reference(version = "1.0.0", timeout = 200... | 20.727273 | 72 | 0.690789 |
1c3be224daf45570203464a1c82a3c1c7d440bc3 | 9,788 | /*
* 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 org.fmi.aq.enfuser.datapack.reader;
import org.fmi.aq.essentials.gispack.Masks.MapPack;
import org.fmi.aq.enfuser.data... | 34.586572 | 106 | 0.526257 |
e5e768174e3afcce5b9b73cdc823680e5c7af9f2 | 4,136 | package edu.log;
import java.util.StringTokenizer;
import javax.swing.table.AbstractTableModel;
/**
* Esta clase convierte el valor de una formula entrada a una expresion matematica para
* que sea evaluada por la clase <i>DemultiplexorExpresion</i>.<p>
* La forma en la que se reconoce de que se trata de ... | 28.923077 | 108 | 0.635155 |
c9ef5173b66821dfb484ef4cebaf198bdd81fed8 | 5,519 | package org.oddjob.beancmpr.matchables;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import junit.framework.TestCase;
import org.oddjob.arooa.beanutils.BeanUtilsPropertyAccessor;
import org.oddjob.arooa.reflect.PropertyAccessor;
imp... | 26.661836 | 78 | 0.668599 |
76316c7011c8a27661f8400fddc4638f3ac6e258 | 5,885 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | 38.717105 | 127 | 0.693118 |
1add4f51a13d667fb5e0b01af9cd11f4d582dca2 | 1,611 | package com.readonlydev.lib.world.terrain.heighteffect;
import com.readonlydev.lib.world.ExoplanetWorld;
import com.readonlydev.lib.world.terrain.TerrainBase;
/**
* @author Zeno410
*/
public class MountainsWithPassesEffect extends HeightEffect {
// not going to bother to set up a creator shell to make sure ev... | 38.357143 | 115 | 0.688392 |
37c71c53f5525e25989f6b4eb7373effdafb7824 | 621 | package br.com.zup.orangetalents.proposta.proposta.dto.response;
public class ResultadoAnalise {
private String documento;
private String nome;
private ResultadoSolicitacao resultadoSolicitacao;
private String idProposta;
public ResultadoAnalise(String documento, String nome, ResultadoSolicitacao resu... | 28.227273 | 99 | 0.772947 |
aa32dd5ce8749aba0cc317af211cf94c497fdba6 | 203 | package dev.quantumfusion.bettersleepplus.parser;
public record ActionString(String text) implements Action {
@Override
public void get(StringBuilder sb, Object[] objects) {
sb.append(text);
}
}
| 20.3 | 59 | 0.763547 |
7219d09c54e5aac13eefdc0fef3fe5ce9e7c5ffc | 2,940 | package com.gatebuzz.oxfordapi.api;
import com.gatebuzz.oxfordapi.model.Wordlist;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;
@SuppressWarnings("unused")
public interface SearchApi {
/**
* Find results for sear... | 55.471698 | 305 | 0.72381 |
fb6a5b9901a3ba9db37722512bad2aa30dfae3be | 1,137 | /*
* This file is generated by jOOQ.
*/
package pl.jdata.samples.jooqsample.jooqmodel;
import javax.annotation.Generated;
import org.jooq.Sequence;
import org.jooq.impl.SequenceImpl;
/**
* Convenience access to all sequences in public
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ ver... | 27.731707 | 156 | 0.686895 |
4f529f7568309bcf0152a2e4885105b51f683223 | 466 | package com.mempoolexplorer.bitcoind.adapter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableSched... | 31.066667 | 78 | 0.860515 |
f255fe4b298e2aad148ffd83ad9f819a1848b542 | 7,915 | package com.feitianzhu.fu700.model;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* Created by dicallc on 2017/9/22 0022.
*/
public class ShopOrderModel implements Parcelable {
/**
* list : [{"orderNo":"BB20170915141253888730","userId":14,"type":2,"consumePlaceImg":"h... | 33.824786 | 903 | 0.631838 |
1e18462a9485971f22ba75d3195fa13fa288b332 | 6,281 | /*
* Created by ishaanjav
* github.com/ishaanjav
*/
package app.ij.mlwithtensorflowlite;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.media.ThumbnailUtils;
import android.os.Bundle;
import android.provider.MediaStore... | 38.533742 | 174 | 0.614233 |
b4ec5b2e2251f8b704d9f8191d38d275e113ed76 | 2,841 | /*
* 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 ... | 27.582524 | 146 | 0.684618 |
e77a55a7c930bdd7a8ecdf74af984d82fbe505b7 | 3,533 | package org.xbib.elx.common;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.Version;
import org.elasticsearch.client.ElasticsearchClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.comm... | 31.544643 | 110 | 0.692613 |
a4ff033d246a6110fb4adc0af093bf4bfa09fe7f | 7,019 | package deformablemesh.gui.meshinitialization;
import deformablemesh.DeformableMesh3DTools;
import deformablemesh.SegmentationController;
import deformablemesh.SegmentationModel;
import deformablemesh.geometry.DeformableMesh3D;
import ij.ImagePlus;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import java... | 27.743083 | 126 | 0.588688 |
b5d475f3cc409406f07fcbb28b2202e49b27b608 | 229 | package org.incode.module.base.dom.with;
public interface WithDescriptionComparable<T extends WithDescriptionComparable<T>>
extends Comparable<T>, WithDescriptionGetter {
void setDescription(String description);
} | 28.625 | 83 | 0.790393 |
4bfa5f67756eb0f600e35163dac9f348a0899af5 | 1,206 | /*
* Copyright (C) 2012 Leander Perera
*
* 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 ... | 29.414634 | 80 | 0.698176 |
322ff5379e73e7acd9ad88428ee4aae8a3f44964 | 2,512 | package com.quartz.zielclient;
import com.google.android.gms.maps.model.LatLng;
import com.quartz.zielclient.map.CoordinateService;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
... | 29.904762 | 84 | 0.726513 |
928a6a901735c6ff0f5049618f73d4411fc8c281 | 830 | package com.example;
import android.widget.TextView;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static org.fest.assertions.api.ANDROID.assertThat;
@RunWith(RobolectricTestR... | 33.2 | 106 | 0.791566 |
4c19860b9cbc799a032ececddf9e221206d4d0c8 | 499 | // For an arithmetic progression a + (a + d) + (a + 2d) + (a + 3d) + ...
// with a being the initial term and d being the common difference
public class arithmetic_progression {
// This function calculates the nth term
public static int nth_term(int a, int d, int n) {
return a + (n - 1) * d;
}
... | 31.1875 | 72 | 0.591182 |
d8eb95787aee115bccccfd4a065fa678e5edf0a6 | 25,890 | package imports.k8s;
/**
* JobSpec describes how the job execution will look like.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.39.0 (build 8af72c2)", date = "2021-10-15T13:35:33.448Z")
@software.amazon.jsii.Jsii(module = imports.k8s.$Module.class, fqn = "k8s.JobSpec")
@software.amazon.jsii.Jsii.Proxy(JobSp... | 59.109589 | 661 | 0.66937 |
f3fb03e00aa9e0707f86e32af934644a95c0cf77 | 6,763 | /*
* 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 ... | 49.727941 | 198 | 0.775987 |
1f5daab86507161ceb7d4019fb7e6b07dc8fa022 | 7,503 | package com.demo.opencv;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.appcompat.app.AlertDialog;... | 41.916201 | 97 | 0.432227 |
7cb5d8f6248e6d7f81261ac3267ecef4f52e8c37 | 2,405 | package com.assetco.hotspots.optimization;
import com.assetco.search.results.*;
import java.math.*;
import static com.assetco.search.results.HotspotKey.HighValue;
// uses sales data for slotting assets if a slot has not already been filled
class SalesInfoBasedOptimizer {
public void optimize(SearchResults searc... | 44.537037 | 137 | 0.629106 |
3c967a88cc70c7d0e7c617fecf1b5a089b013f30 | 324 | package com.sapient.productcatalogue.service;
import com.sapient.productcatalogue.model.Color;
import java.util.List;
import java.util.Optional;
public interface ColorService {
Optional<List<Color>> findAll();
Optional<Color> getColorById(Integer id);
Optional<List<Color>> getAllColorByCode(String code)... | 23.142857 | 57 | 0.774691 |
300e7a04a5c7b6778bb68bf8f469d801ead5ef72 | 10,349 | /*
* 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 ... | 44.800866 | 174 | 0.688376 |
b7dc98d66544a1956ab188fa436e535a7bb82965 | 2,489 | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 40.803279 | 99 | 0.766171 |
3030656eb36d7bdd739090be5e0ed2952fdb4d0f | 8,086 | /* LanguageTool, a natural language style checker
* Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de)
*
* This library 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 ... | 35.937778 | 138 | 0.6442 |
9364b0da8b5933ed913b86e66832c626a353379c | 2,201 | /*
* (C) Copyright IBM Corp. 1998-2007. All Rights Reserved.
*
* The program is provided "as is" without any warranty express or
* implied, including the warranty of non-infringement and the implied
* warranties of merchantibility and fitness for a particular purpose.
* IBM will not be liable for any damages suf... | 31 | 76 | 0.69105 |
f1aa16f4301bb86a4f852271cae13b64c286d5a4 | 16,437 | package net.petafuel.fuelifints.dataaccess;
import net.petafuel.fuelifints.FinTSVersionSwitch;
import net.petafuel.fuelifints.dataaccess.dataobjects.*;
import net.petafuel.fuelifints.model.Dialog;
import net.petafuel.fuelifints.model.IMessageElement;
import net.petafuel.fuelifints.model.client.ClientProductInfo;
impor... | 41.195489 | 374 | 0.728235 |
c966b0101c96192d53eba649bb9c2c30e39efaa9 | 5,535 | import org.stellar.base.Asset;
import org.stellar.base.ChangeTrustOperation;
import org.stellar.base.Keypair;
import org.stellar.base.PaymentOperation;
import org.stellar.base.Transaction;
import org.stellar.sdk.Account;
import org.stellar.sdk.Server;
import org.stellar.sdk.SubmitTransactionResponse;
import java.io.IO... | 38.978873 | 100 | 0.739295 |
c43841330c78f86b8091f0d4cee9e6be251d5212 | 2,759 | package sharedmobility;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import javax.persistence.*;
import org.springframework.beans.BeanUtils;
import sharedmobility.external.PaymentInfo;
import sharedmobility.external.PaymentInfoService;
@Entity
@Table(name="OrderInfo_table")
public class OrderInfo {... | 24.201754 | 65 | 0.618702 |
ad1c722983eab69543245d8f8eb5a6b9df4a522b | 1,417 | /**
* Copyright 2020 Ray Cole
*
* 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 l... | 27.25 | 101 | 0.646436 |
a00f6ebeeaf55c816fb122fca6f79aeaefafb4fc | 731 | /**
*
*/
package jp.terasoluna.fw.batch.constants;
import junit.framework.TestCase;
/**
*
*/
public class EventConstantsTest extends TestCase {
/*
* (non-Javadoc)
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
super.setUp();
... | 18.275 | 59 | 0.563611 |
bd45047246b606de63e7b148a95f406c80b07c9a | 1,049 | package com.amtodev.audios_kids.Alphabet_en;
import android.media.MediaPlayer;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.amtodev.audios_kids.R;
public clas... | 27.605263 | 102 | 0.684461 |
26e5a464a64cd99aa81c7c00541b2e05149474e5 | 10,125 | //
// ========================================================================
// Copyright (c) 1995-2019 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 36.552347 | 154 | 0.625086 |
fcd9c3171aee2405adcb5ffe26037cc6d458f87a | 3,674 | package org.folio.rest.tools.utils;
import java.lang.annotation.Annotation;
import java.net.URI;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.ws.rs.core.EntityTag;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.Link;
import javax.ws.rs.core.Lin... | 19.542553 | 80 | 0.679096 |
4df194a3085498b2da06a5fcbf2c6dadd58ef825 | 342 | package mekanism.common;
import java.util.HashSet;
import mekanism.api.Object3D;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
public class DynamicTankCache
{
public ItemStack[] inventory = new ItemStack[2];
public FluidStack fluid;
public HashSet<Object3D> locations = new H... | 21.375 | 62 | 0.789474 |
bf0bd1efd6e8a51abe44590e792c17d6694bcfad | 4,260 | /* Copyright 2019 Telstra Open Source
*
* 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... | 34.354839 | 103 | 0.692019 |
001fda93d0314f828cf2c2d5d85fb5124ae282fd | 3,177 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.apex.metrics.impl.visitors;
import org.apache.commons.lang3.mutable.MutableInt;
import net.sourceforge.pmd.lang.apex.ast.ASTCatchBlockStatement;
import net.sourceforge.pmd.lang.apex.ast.ASTDoLoopS... | 31.147059 | 116 | 0.70853 |
af63df1893d004c75d74e1a84af1dd9ec299cddb | 4,901 | package com.abings.baby.ui.main.fm.school;
import com.abings.baby.R;
import com.abings.baby.data.injection.DaggerUtils;
import com.abings.baby.ui.event.EventDetailActivity;
import com.abings.baby.ui.event.EventListMvpView;
import com.abings.baby.ui.event.EventListPresenter;
import com.alibaba.fastjson.JSONArray;
impor... | 36.849624 | 157 | 0.673128 |
22be4801638a378a2a760d669918ace59969d177 | 1,735 | package com.popush.triela.common.github;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.... | 30.982143 | 77 | 0.770605 |
a6f4d2693fe273808783a22c4fa556ff7dd1c12e | 321 | package ch.frostnova.mimic.api.service;
import ch.frostnova.mimic.api.MimicMapping;
import java.util.List;
/**
* Mimic mapping service
*/
public interface MappingService {
MimicMapping get(String id);
MimicMapping save(MimicMapping mapping);
List<MimicMapping> list();
void delete(String id);
}... | 15.285714 | 44 | 0.722741 |
8a72b4b2aa0284b7b11853f452cac7a4114445aa | 424 | package com.willlee.leetcode.problems101_200;
public class Leetcode125 {
public boolean isPalindrome(int x) {
int y = x;
if (x < 0 || (x % 10 == 0 && x != 0)) {
return false;
}
int newNum = 0;
while (x != 0) {
newNum = x % 10 + newNum * 10;
... | 22.315789 | 47 | 0.436321 |
60d1470f38d5c25b4cd82a69e8ac7ad4746a0143 | 5,474 | /*
* Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory
* CODE-743439.
* All rights reserved.
* This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool.
*
* Licensed under the Apache License, Version 2.0 (the “Licensee... | 41.78626 | 209 | 0.75338 |
541a1b8862f235bb382d7325999d1ffb3c211a88 | 5,263 | package com.cubolabs.bibliaofflinearc.ui;
import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.RelativeSizeSpan;
import android.... | 39.276119 | 117 | 0.648299 |
f5214629609ea0ced3d6536ed1f42b2c3b72a4e2 | 2,248 | package com.refinedmods.refinedstorage.tile;
import com.refinedmods.refinedstorage.RSTiles;
import com.refinedmods.refinedstorage.apiimpl.network.node.CrafterNetworkNode;
import com.refinedmods.refinedstorage.screen.CrafterTileDataParameterClientListener;
import com.refinedmods.refinedstorage.tile.data.TileDataParamet... | 44.96 | 280 | 0.761566 |
fadd1a28dc8489483fea3e2c4d95e1860c785bf3 | 2,151 | /*
* Copyright 2015-2016 Lexteam
*
* 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... | 26.8875 | 90 | 0.642027 |
52d5abdc38a56e9a9d72781869a10bb41d898038 | 1,743 | /**
*
* Copyright 2020 American Express Travel Related Services Company, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | 38.733333 | 126 | 0.767068 |
3a21a811c09d4824f8aabff42c4fd028360499f7 | 4,027 | package org.noear.perona;
import android.app.Application;
import android.content.res.AssetManager;
import org.noear.perona.protocol.XHandler;
import org.noear.perona.protocol.XModule;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
/** 通用应用(同时是个通用代理) */
public class XApp {
private ... | 25.980645 | 85 | 0.531165 |
02759eddda28c7cbc8ed7d516856eb45f20e5b43 | 533 | package com.stockex.mvc.dao;
import java.util.List;
import javax.sql.DataSource;
import com.stockex.mvc.entities.Order;
public interface OrderDAO {
public void setDataSource(DataSource ds);
public void placeOrder(Order order, String email);
public List<Order> getPlacedOrder(String email);
public Order get... | 19.740741 | 51 | 0.765478 |
9c7721dd2c3738bfc53fcd94fe015f44fd4a8a01 | 336 | package com.bergerkiller.bukkit.common.map.util;
import com.bergerkiller.bukkit.common.math.Vector3;
/**
* Deprecated: use {@link Vector3} instead
*/
@Deprecated
public class Vector3f extends Vector3 {
public Vector3f() {
super();
}
public Vector3f(float x, float y, float z) {
super(x,... | 17.684211 | 51 | 0.64881 |
d3c016fe7807cda82069a497e19c0c47034815df | 146 | package org.rapharino.base.models;
import java.io.Serializable;
/**
*
*/
public interface IAggregateRoot extends Serializable {
}
| 13.272727 | 55 | 0.691781 |
d7f252945a5b85c9483730b5f070aab726f831cd | 4,407 | package com.stockmarket.www.controller.system;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Scanner;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | 28.432258 | 118 | 0.659405 |
9b1dcaff6af36ab5315d22fe34be449369e70109 | 647 | package util.RouterMessage;
import util.FullAddress;
import util.RouterTable.RouterTableEntry;
import java.io.Serializable;
import java.util.Map;
public class RouterMessage implements Serializable {
private final FullAddress address;
private final Map<FullAddress, RouterTableEntry> routingMap;
public Ro... | 24.884615 | 94 | 0.734158 |
df613f07ec74b0c0d2f8e5c204d5761b9b7d661a | 314 | package com.un.utilj.model.state.constant;
/**
* 载入状态常亮,用于标识异步载入数据,如网络请求
*/
public class StateLoad {
/**
* 初始化状态
*/
public static final int STATE_INIT = -1,
/**
* 无数据
*/
STATE_NONE = 0,
/**
* 加载中
*/
STATE_LOADING = 1,
/**
* 加载失败
*/
STATE_FAILED = 2,
/**
* 加载成功
*/
STATE_SUC = 3;
}
| 11.214286 | 42 | 0.55414 |
1c5b6be54867641138ee175c482cc20a77e827d9 | 966 | import consoleio.C;
/**
* Copyright (c) 2017 Arjun Nair
*/
/**
* Tree node for the > operator.
* @author Arjun Nair
*/
public class ASTGreaterThan extends SimpleNode
{
public ASTGreaterThan(int id)
{
super(id);
}
public ASTGreaterThan(ParfA p, int id)
{
super(p, id);
}
publi... | 26.108108 | 265 | 0.620083 |
1290d0a0200e77906b30d16c209da9241d206822 | 4,024 | package com.bogspot.diegopacheco.sandbox.java.fast;
import java.util.Properties;
import com.fastsearch.esp.search.ISearchFactory;
import com.fastsearch.esp.search.SearchFactory;
import com.fastsearch.esp.search.query.BaseParameter;
import com.fastsearch.esp.search.query.IQuery;
import com.fastsearch.esp.searc... | 34.393162 | 113 | 0.598658 |
281f274000dcab8508e69e93edd253d2621a4246 | 1,366 | package com.discoveri.heartihealth.entities;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
/**
* The persistent class for the wearabledevicedata database table.
*
*/
@Entity
@Table(name="wearabledevicedata")
public class Wearabledevicedata implements Serializable {
private stat... | 18.459459 | 70 | 0.752562 |
1127d31e6f198f27f214a1ef4a6170d8e25946eb | 540 | package domain;
import json.*;
/**
* Created by Andrii_Rodionov on 1/5/2017.
*/
public class BasicStudent implements Jsonable {
protected String name;
protected String surname;
protected Integer year;
public BasicStudent() {
}
public BasicStudent(String name, String surnam... | 18.62069 | 69 | 0.590741 |
96a8fac98c782be73bdbbf1bcfbe9f2e086facf4 | 2,203 | /*
* Copyright 2017 Daniel Pedraza-Arcega
*
* 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... | 31.927536 | 110 | 0.724467 |
4b1767cf0a7a1be9718968d6466c396e76e60c91 | 810 | package com.kuropatin.zenbooking.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public final class EmptyOrShortInRangeValidator implements ConstraintValidator<EmptyOrShortInRange, Short> {
private int min;
private int max;
@Override
publi... | 28.928571 | 108 | 0.669136 |
ad20dc6ff1119eec1854f0feb70930be5303e9db | 1,708 | package com.cariochi.recordo.mockserver.interceptors.apache;
import com.cariochi.recordo.mockserver.model.MockRequest;
import com.cariochi.recordo.mockserver.model.MockResponse;
import lombok.RequiredArgsConstructor;
import org.apache.http.HttpException;
import org.apache.http.client.methods.CloseableHttpResponse;
imp... | 41.658537 | 111 | 0.741218 |
360e18c91d3ac528d9933e79cc5e4278b9d8049a | 1,564 | package it.smartcommunitylab.aac.profiles.claims;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Component;
import it.smartcommunitylab.aac.Config;
import it.smartcommunitylab.aac.claims.ScopeClaimsExtractor;
import it.smartcommunitylab.aac.claims.S... | 28.962963 | 84 | 0.719309 |
46575065609cae03a154749e2c7b7cef37ae6825 | 2,593 | package com.example.prabhat.locationsample;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import android.widget.Toast;
import com.example.easywaylocation.EasyWayLocation;
import com.example.easywaylocation.Listener;
import st... | 32.4125 | 158 | 0.697262 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.