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 |
|---|---|---|---|---|---|
7f71865b21e5dca9e2334ea60a09874e4cab855e | 2,005 | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 26.381579 | 101 | 0.746135 |
54a62724de089c9abdf5046fc67ce85c3515323b | 3,138 | /*
* Copyright (c) 1996, 2011, 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 ... | 32.350515 | 81 | 0.643085 |
ab524384bd72d9f2b63552fe37d08d27f5cafb14 | 996 | package com.nativapps.arpia.database.dao;
import com.nativapps.arpia.database.EntityDao;
import com.nativapps.arpia.database.entity.Email;
import java.util.List;
/**
*
* @author Gustavo Pacheco <ryctabo@gmail.com>
* @version 1.0
*/
public class EmailDaoController extends EntityDao<Email, Long>
... | 26.210526 | 81 | 0.655622 |
0617d232108f69b1dba0f655c9d7f173ed4986fa | 2,916 | package net.ccfish.jvue.rest.test;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
impor... | 32.764045 | 116 | 0.752743 |
eab410ab8a25391a3fb51d468027b0bb395bd2ed | 108 | package com.github.uchan_nos.c_helper.analysis.values;
public abstract class ScalarValue extends Value {
}
| 21.6 | 54 | 0.824074 |
15ea17894d7ca05351729c4626719eddbc280bea | 7,241 | package hch.opencv.resident;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame;
import org.opencv.android.LoaderCallbackInterface;
import org.opencv.android.OpenCVLoader;
import org.opencv.android.Utils;
import org.opencv.core.CvType;
import org.open... | 35.669951 | 106 | 0.58735 |
dbbf775ebac8738da0aed73604d60d9b1e8bdd96 | 8,285 | package com.example.picupload;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProt... | 28.66782 | 124 | 0.694991 |
bc4cba09d7e5577096a7956064238fc860d891b6 | 11,395 | /*
* 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 ... | 33.613569 | 122 | 0.719351 |
012fb57ddce673b5e37a9689bbf2a32c7f2cec07 | 9,960 | /*
* Copyright (c) 2005-2014, 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.ap... | 43.876652 | 135 | 0.693876 |
702ccbdaed9111bfc24104df76ac34a347e7ee84 | 3,855 | package net.contargo.intermodal.domain;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* A location used in drop off, pick up and stops of an {@link Transport}. Also used to specify the city of birth of a
* {@link Person}.
*
* @author Isabell Dürlich - duerlich@synyx.de
* @version 2018-04
* @name_g... | 21.657303 | 118 | 0.60441 |
e45b34f10f6130bb00ac93ee8f7fdb1d1be7bfe0 | 1,503 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCrea... | 35.785714 | 108 | 0.74185 |
4cbc95fab07bf1848394dc93af63fde809830bef | 14,278 | package com.components.se.factory;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
imp... | 35.167488 | 188 | 0.702689 |
90c2cc97e710d3ba170ad52067f7c0efc21ad875 | 2,192 | /*
* 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 ma... | 32.716418 | 104 | 0.723084 |
d25f0a0d981ccdaff1ed263acdaf2b7da080c663 | 2,387 | package model.animal;
import View.helper.Graphics;
import View.helper.Pen;
import View.helper.PenContainer;
import javafx.animation.Animation;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
/**
* This is the Turtle class, which extends the Animal class, but contains an image for the turtle
*... | 22.518868 | 97 | 0.735233 |
e7f3d861a476b2eb8ec567913ea664fd0c783af0 | 6,092 | /**
* Copyright 2013 deib-polimi
* Contact: deib-polimi <marco.miglierina@polimi.it>
*
* 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... | 38.075 | 144 | 0.651182 |
3ca15997cd244aac27a8f2a448033f408ac5ef7a | 420 | package businessDelegate;
import lombok.Data;
/**
* Created by zhengwenzhan on 2019-03-13
*/
@Data
public class BusinessLookup {
private EjbService ejbService;
private JmsService jmsService;
public BusinessService getService(ServiceType serviceType) {
if (ServiceType.EJB.equals(serviceType))... | 17.5 | 64 | 0.654762 |
71e63d47d5bdee1458c8583057fb16cb20dec4f8 | 2,479 | /*
* Copyright 2010 Hippo.
*
* 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... | 27.241758 | 90 | 0.58814 |
10268c87a76b3a8be2d693cd5712102202ef1529 | 7,954 | package org.apache.continuum.builder.distributed.util;
/*
* 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 ... | 39.572139 | 118 | 0.624466 |
feae1a24dfad213400c830de9096e0bc09f975b3 | 729 | package com.lijq.mybatis.v2;
import com.lijq.mybatis.dao.User;
import com.lijq.mybatis.v2.executor.BaseExecutor;
import com.lijq.mybatis.v2.session.Configuration;
import com.lijq.mybatis.v2.session.SqlSession;
import org.junit.Test;
/**
* @author Lijq
* @date 2018/4/9 16:57
* @description
*/
public class V2Test {... | 21.441176 | 130 | 0.716049 |
53417beaa1030556918feb3aea971a59511c87c4 | 286 | package method;
public class Walking {
public static void main(String[] args) {
double Cal = calculateCalory(5000);
System.out.println("소모 칼로리: " + Cal + "kcal");
}
private static double calculateCalory(int walk) {
double result = walk * 0.02;
return result;
}
}
| 17.875 | 51 | 0.660839 |
1a3693f95de679c915dca206752ef2ce2d2a178c | 3,559 | /*******************************************************************************
* Copyright (c) 2015 OpenDSE
*
* 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, ... | 36.316327 | 108 | 0.70694 |
74e1e94809fd07f1af941217ff87ac0ea9659b4c | 739 | /*
* XML Type: FileIDType
* Namespace: urn:com.io7m.cardant.inventory:1
* Java type: com.io7m.cardant.protocol.inventory.v1.beans.FileIDType
*
* Automatically generated - do not modify.
*/
package com.io7m.cardant.protocol.inventory.v1.beans.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNa... | 29.56 | 165 | 0.749662 |
cff3e48b43e331df10b90d305d5815e58278c015 | 539 | package com.john.lazy;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* @Description: spring5.0-2018
* @Author: johnwonder
* @Date: 2021/6/15
*/
public class LazyAnnotaionDemo {
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx
= new An... | 22.458333 | 81 | 0.751391 |
21241817f82ac13fbcdfe4b126e22a8050e3ac95 | 633 | package com.jbtits.otus.lecture16.ms.dataSets;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "user")
public class UserDataSet extends DataSet {
@Column(name = "name", unique = true)
private String name;
public String getPassword() ... | 20.419355 | 46 | 0.658768 |
148f92e6826a8fca91f741a4f47fd3510c8c9820 | 1,480 | package com.rallydev.rest.response;
import com.google.gson.JsonArray;
/**
* Represents a WSAPI response from querying for objects.
*/
public class QueryResponse extends Response {
/**
* Create a new query response from the specified JSON encoded string.
*
* @param queryResponse the JSON encoded ... | 22.424242 | 96 | 0.602027 |
21858b0ebb88a59b011dc7334d8dd5d3aaad889d | 5,908 | package de.pacheco.popularMovies;
import de.pacheco.popularMovies.databinding.ActivityMainBinding;
import de.pacheco.popularMovies.model.Movie;
import de.pacheco.popularMovies.model.MoviesViewModel;
import de.pacheco.popularMovies.recycleviews.MoviePosterAdapter;
import de.pacheco.popularMovies.util.MoviesUtil;
impor... | 39.386667 | 132 | 0.645396 |
dbde59378485bdb1c4c96e53e83e120e1c836959 | 5,487 | package com.vipul.covidstatus.adapters;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import and... | 40.947761 | 108 | 0.677784 |
983f4dacf9f1a380faaa78a4990610978563bade | 3,444 | /**
* 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... | 33.764706 | 125 | 0.721545 |
f400bf311170d9b556333db8f1c91f21b3298d73 | 1,062 | package fiji.plugin.trackmate.gui;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.ImageIcon;
public final class GuiConstants
{
public static final Font FONT = new Font( "Arial", Font.PLAIN, 10 );
public static final Font BIG_FONT = new Font( "Arial", Font.PLAIN, 14 );
public static final Fo... | 33.1875 | 132 | 0.764595 |
7e88ce67f40d5b2ca2136dbd97cd93fbd2cb5c41 | 235 | package org.jeecg.modules.ticket.vo;
import lombok.Data;
@Data
public class OperateVO {
private String ticketId;
private String takerId;
private String nextTakerIds;
private String variable;
private String comment;
}
| 12.368421 | 36 | 0.753191 |
cafbc6e6186f159386bc3e92856d2c89ab3c09de | 4,841 | package io.tornadofaces.component.slider;
import io.tornadofaces.component.util.ComponentUtils;
import io.tornadofaces.component.util.StyleClass;
import io.tornadofaces.json.JSONArray;
import io.tornadofaces.json.JSONObject;
import io.tornadofaces.util.WidgetBuilder;
import javax.faces.component.UIComponent;
import j... | 36.674242 | 110 | 0.742202 |
63434d916c845a8743b5c7d42e238bbd1032d8e9 | 508 | package wuest.markus.vertretungsplan;
public class HWGrade {
private int _id;
private String _GradeName;
public HWGrade(){}
public HWGrade(String GradeName) {
this._GradeName = GradeName;
}
public void set_id(int _id) {
this._id = _id;
}
public void set_GradeName(St... | 16.933333 | 50 | 0.612205 |
de50bbdc688e5da8918e89cc591bfed0809370b2 | 1,446 | // Copyright 2014 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 applicable ... | 30.765957 | 94 | 0.732365 |
648d27cec117a531ba7426e241dd955da99eae03 | 904 | package com.revature.util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnFactory {
private static ConnFactory cf = new ConnFactory();
private static final String url = "jdbc:oracle:thin:@java2004usf.c3ze8kvqgwxn.us-east-2.rds.amazonaws.com:1521:ORCL";... | 23.789474 | 118 | 0.719027 |
0d73cd1105ce79a5459cf8e0dfe53b20829ba722 | 1,280 | package com.javarush.task.task19.task1922;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Ищем нужные строки
*/
public class Solution {
public static List<String> words = new ArrayList<... | 26.666667 | 90 | 0.536719 |
85280f7e420c2e7b5e974fe7606e4370bc55bc12 | 210 | package com.moneromint.solo.stratum.message;
import com.fasterxml.jackson.annotation.JsonProperty;
public enum StratumMethod {
@JsonProperty("login")
LOGIN,
@JsonProperty("submit")
SUBMIT,
}
| 17.5 | 53 | 0.733333 |
d6164b5df12042c8f472f798a721f935c8347e19 | 464 | package com.mars.start.startmap.impl;
import com.mars.start.startmap.StartMap;
import com.mars.start.startmap.StartParam;
/**
* 加载JDBC模块
*/
public class StartJDBC implements StartMap {
/**
* 加载JDBC模块
* @param startParam 参数
* @throws Exception 异常
*/
@Override
public void load(StartPa... | 20.173913 | 62 | 0.642241 |
293551030d3bc48a23e3a2ea58cc658b05f922ee | 2,416 | /*
* 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.514286 | 101 | 0.731788 |
76cc8ad7a6c81599092f64a7456e79996021ade9 | 900 | package com.github.cc3002.finalreality.Controller;
import com.github.cc3002.finalreality.model.character.Enemy;
import java.util.List;
public interface IEnemyTeam {
/**
* Return the enemies.
*/
List<Enemy> getTeam();
/**
* Add a enemy to the enemies.
*/
void addTeammate(Enemy opp... | 18.75 | 60 | 0.598889 |
777d66c031967d044a6e7a42d7ef3f3e353190b7 | 454 | package com.aem.ugam.core.service.impl;
import com.aem.ugam.core.service.MultiService;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.propertytypes.ServiceRanking;
@Component(service = MultiService.class,immediate = true,name = "serviceA")
@ServiceRanking(1000)
public class... | 28.375 | 75 | 0.77533 |
c2ebe8716b7a3eb3060c9bd855bd0c9d1dd9ce32 | 1,096 | package com.lichkin.application.apis.api50000.U.n00;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lichkin.framework.defines.LKFrameworkStatics;
import com.lichkin.... | 36.533333 | 100 | 0.843978 |
35307aae3f547a50dbb336cacae1d7ae82da7dc0 | 3,802 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.ent.models;
import com.aliyun.tea.*;
public class ExecTokenRedeemRequest extends TeaModel {
// OAuth模式下的授权token
@NameInMap("auth_token")
public String authToken;
@NameInMap("product_instance_id")
public S... | 24.849673 | 95 | 0.657023 |
a11257b33cd07e0efd22b5818e7d93ec771755a5 | 3,721 | package ad.simple.library;
import android.app.DialogFragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | 33.827273 | 119 | 0.772373 |
34e194191af2d3bfbea7209e8044df7ec0be15d0 | 4,467 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.SDBranchCurrencyDistributionRetrieveOutputModelBranchCurrencyDistributionOfferedSe... | 45.581633 | 310 | 0.860981 |
2b38ddf3a82bf98b5a4d83db9518fd331eea338d | 1,624 | package data.users_profile;
import com.wrapper.spotify.SpotifyApi;
import com.wrapper.spotify.exceptions.SpotifyWebApiException;
import com.wrapper.spotify.model_objects.specification.User;
import com.wrapper.spotify.requests.data.users_profile.GetUsersProfileRequest;
import java.io.IOException;
import java.util.conc... | 36.088889 | 193 | 0.748768 |
59e0cfef4c5aaaba02c1b85e5bcb163cdc1d53c2 | 3,603 | package com.codepath.apps.restclienttemplate;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import and... | 36.765306 | 96 | 0.70247 |
451a70510ec8a19f2d1147db1efb2f52bab39a2e | 1,394 | package edu.internet2.middleware.grouper.changeLog.consumer.model;
import com.squareup.moshi.Json;
import java.util.List;
import java.util.Objects;
public class GroupsOdata {
@Json(name = "@odata.context") public final String context;
@Json(name = "value") public final List<Group> groups;
@Json(name="@od... | 29.041667 | 77 | 0.590387 |
eaf5a5a7f68ac5b1db3691470d3f5814f0cd57ea | 4,931 | /*
* 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 ma... | 34.482517 | 108 | 0.730481 |
67be724f24b15993965ac11e800c9087d56f0a38 | 771 | /*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.types;
/**
* General purpose interface, useful for extending. Defines methods to get object
* name and description. This version is useful for objects providing a ... | 33.521739 | 106 | 0.753567 |
800602f237ebf67824e322af34357b46eba5b4bd | 21,990 | package com.imarcats.market.management;
import java.util.Date;
import com.imarcats.interfaces.client.v100.dto.MarketOperatorDto;
import com.imarcats.interfaces.client.v100.exception.ExceptionLanguageKeys;
import com.imarcats.interfaces.client.v100.exception.MarketRuntimeException;
import com.imarcats.internal.... | 38.989362 | 159 | 0.742383 |
acebd01cf86e82e6319d3ec0f6c683d701c18bf3 | 1,871 | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
*/
package com.lubanops.stresstest.redis.jedis;
import com.huawei.apm.core.agent.common.BeforeResult;
import com.huawei.apm.core.agent.interceptor.InstanceMethodInterceptor;
import com.huawei.apm.core.lubanops.bootstrap.log.LogFactory;... | 32.824561 | 98 | 0.695885 |
3d54d042f228bd1b6fbf8edb6832238d44528193 | 3,410 | /*
* Copyright 2017 - 2018 The ModiTect 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 applic... | 29.912281 | 93 | 0.613196 |
a112b62f827c8b614812fd1b9bb945cf648bd5d3 | 1,683 | package com.pelleplutt.operandi.proc;
import java.util.Map;
import com.pelleplutt.operandi.proc.Processor.M;
public class MMapRef implements MSet {
Map<Object, String> jm;
public MMapRef(Map<Object, String> jm) {
this.jm = jm;
}
@Override
public int size() {
return jm.size();
}
@Override
pu... | 18.910112 | 64 | 0.579323 |
5944599005166b82c81ad1a2f61157d87547d86f | 309 | package latmod.lib.annotations;
import java.lang.annotation.*;
/**
* Created by LatvianModder on 26.03.2016.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface NumberBounds
{
double min() default Double.NEGATIVE_INFINITY;
double max() default Double.POSITIVE_INFINITY;
} | 22.071429 | 47 | 0.779935 |
e58510475e27bbbd72576336026ed81dc05c28ec | 1,313 | package com.platypii.baseline.lasers;
import com.platypii.baseline.events.ProfileLayerEvent;
import com.platypii.baseline.views.charts.layers.ProfileLayer;
import androidx.annotation.NonNull;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.greenrobot.eventbus.EventBus;
/**
*... | 29.177778 | 93 | 0.665651 |
eee07c3c7b312e1f82e926919c1a46a10449c386 | 96 | package PrismaMod.actions.MonsterActions.Rider;
@Deprecated
public class MonstrousStrength {
}
| 16 | 47 | 0.833333 |
accfcb2be6e10a0f166369ef41389f724988a6c8 | 999 | package org.jeecg.modules.tools.service.impl;
import org.jeecg.modules.tools.entity.RunningToolsLicensemonitor;
import org.jeecg.modules.tools.mapper.RunningToolsLicensemonitorMapper;
import org.jeecg.modules.tools.service.IRunningToolsLicensemonitorService;
import org.springframework.stereotype.Service;
import java.u... | 35.678571 | 180 | 0.841842 |
de9923f48a9af11d3959fde1c2e52a7c3490faed | 1,778 | /**
* AddPetViewModelFactory.java
* @author Aavash Sthapit
* As you can see in the PetDao when we want to update a Pet, we need to call the
* loadPetById method, which requires the id of the pet of a parameter. Therefore,
* the ViewModel for the EditorActivity will need the id of the Pet, so we need to pass this v... | 35.56 | 119 | 0.732846 |
6492e086231f2c79303c3056d9b6eb6317f2a76e | 4,196 | package GUI;
import Listeners.*;
import UnitTest.MemoryTest;
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import javax.imageio.ImageIO;
import java.io.IOException;
public class OptionsEV {
private static JTextField textField;
private static JTextArea responseArea;
private... | 32.527132 | 125 | 0.617255 |
e65ba57f4126fe3782942e3604668245867af0ea | 1,002 | package net.stone_labs.strainsofascension.effects.strains;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.server.network.ServerPlayerEntity;
import net.stone_labs.strainsofascension.artifacts.ArtifactState;
import net.stone_labs.strainsof... | 37.111111 | 165 | 0.775449 |
72caeb2bf43a19acdd71a4642e0aa4ea4d82ce28 | 239 | package org.javaturk.wap.ch08.temperatureConverter.domain;
public class InvalidArgumentException extends Exception {
private static String message = "Invalid value passed: ";
public InvalidArgumentException(){
super(message);
}
}
| 21.727273 | 58 | 0.786611 |
369e0935ad9505b9628b7e1c5dd7da85e09b0513 | 801 | package com.hzqing.system.rest.converter;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzqing.system.api.dto.button.AddElementRequest;
import com.hzqing.system.api.dto.button.ElementDto;
import com.hzqing.system.api.dto.button.ElementListRequest;
import com.hzqing.system.api.dto.button... | 28.607143 | 66 | 0.792759 |
95d85961861d637545be4a9f1b4c4e463140fd39 | 2,073 | package com.sudhar.netizenEditor.ImageEditor;
import android.view.MotionEvent;
import android.view.View;
import android.widget.RelativeLayout;
public class RotateTouchListener implements View.OnTouchListener{
private RelativeLayout.LayoutParams layoutParams;
private RelativeLayout layBg;
private int pivx... | 33.435484 | 94 | 0.583213 |
e1331798bdd200ebf7f94d6c974ad87647e0659d | 1,036 | package com.github.st1hy.countthemcalories.activities.tags.fragment.model;
import com.github.st1hy.countthemcalories.database.Tag;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import org.parceler.Parcel;
import org.parceler.ParcelConstructor;
import java.util.List;
@Pa... | 20.72 | 74 | 0.642857 |
f550e4560eec19e9cf99c136238a4082e6862e78 | 322 | package org.innovateuk.ifs.workflow.audit;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface ProcessHistoryRepository extends CrudRepository<ProcessHistory, Long> {
void deleteByProcessId(long processId);
List<ProcessHistory> findByProcessId(long processId);... | 26.833333 | 88 | 0.819876 |
aba011cda70878bf404c0dbbbda760a627d349a6 | 877 | package com.timtrense.quic.impl;
import java.net.DatagramPacket;
import java.time.Instant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
/**
* A {@link DatagramPacket} that was received by a {@link Receiver}
*
* @author Tim Trense
*/
@Data
@Req... | 23.078947 | 91 | 0.697834 |
2bf364c030f79d23b05ea6a0ab018eff03486216 | 5,914 | /*
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package goodman.com.sun.corba.se.spi.ior.iiop;
import com.sun.corba.se.spi.ior.IOR ;
import com.sun.co... | 26.881818 | 99 | 0.604498 |
837ab723146068532fb30e7304c35480fd158a3e | 1,109 | /*
* Copyright 2020 nuwansa.
*
* 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... | 29.184211 | 75 | 0.695221 |
e61e0176128d12d93b09068f6dbfe3a1004a5b1f | 13,488 | import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
impor... | 28.04158 | 140 | 0.636788 |
5a53ce0e524aa098f3cbbb08fca41fefde038ff7 | 599 | package com.embed.candy;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import com.swarmconnect.Swarm;
public class CandyPreferenceActivity extends PreferenceActivity {
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
th... | 20.655172 | 66 | 0.716194 |
d208db8364d8f804aa8f1487d95959a1e850f1f1 | 375 | package ruboweb.pushetta.back.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ruboweb.pushetta.back.model.User;
/**
* CRUD Repository for the entity
*/
@Repository
public interface UserRepository extends JpaRepository<Use... | 23.4375 | 68 | 0.776 |
f2111f4dce9bbfc8459628cfb8d98cc311ec436b | 505 | package org.metaworks.viewer;
import java.util.*;
import org.metaworks.*;
public class LinkView extends AbstractWebViewer{
public LinkView(String action){
if(action!=null)
attributes.put("action", action);
}
public LinkView(){
this(null);
}
/////////////////// implements ///////////... | 21.041667 | 104 | 0.607921 |
a90eaf1f5c879490795b127674fa38c1ae4915cf | 265 | package com.auth0.net;
interface CustomizableRequest<T> extends Request<T> {
CustomizableRequest<T> addHeader(String name, String value);
CustomizableRequest<T> addParameter(String name, Object value);
CustomizableRequest<T> setBody(Object body);
}
| 24.090909 | 67 | 0.762264 |
ec62e2ca0c82f9c275cce4e42799dd975111eb6d | 2,332 | package model;
public class PokerHand extends Hand
{
private int myNumberCards;
private int myMaxNumberCards;
private int myRanking;
public PokerHand(int maxNum)
{
super(maxNum);
if (this.isHighCard())
{
myRanking = 1;
}
if (this.isPair())
{
myRanking = 2;
}
if (this.isTwoPair())
{
... | 13.25 | 43 | 0.629503 |
56817453771266813aedd3046fa259fd60880dec | 1,012 | package blue.internal.core.message;
import blue.core.message.Topic;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
/**
* @author Jin Zheng
* @since 1.0 2021-01-06
*/
public abstract class AbstractProducer<T extends Topic> implements Producer<T>, ... | 20.653061 | 99 | 0.745059 |
7dcb05cc7e0e9734841a0db46326cfd8bdb04fa1 | 4,589 | package com.example.flicks;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import com.google.android.youtube.player.YouTubeBaseActivity;
import com.google.android.youtube.player.YouTubeInitializationResult;
import com.google.android.youtube.player.YouTubePlayer;
import com.google.andr... | 41.342342 | 151 | 0.633907 |
86dee39e335f9e7c342b6db5ba6c73b0cb19ceef | 611 | package net.timardo.forgekit.capabilities.world.chunk;
import net.minecraft.nbt.NBTBase;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.Capability.IStorage;
public class BukkitChunkCapStorage implements IStorage<IBukkitChun... | 27.772727 | 109 | 0.818331 |
7f0b7744388ad805a44564b17627f716ddb62add | 2,154 | /*
* Copyright 2020 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 in wr... | 35.311475 | 100 | 0.737233 |
acd74efec46ce841bb1a9c74b10eb1bade40995a | 1,836 | package com.github.walterfan.devaid.domain;
public class Site {
private long siteID;
private String siteName;
private String siteUrl;
private int categoryID;
private int userID;
public Site() {
}
public Site(long siteID, String siteName) {
this.siteID = siteID;
this.siteName = siteName;
}
public Sit... | 19.125 | 53 | 0.625817 |
71d52d60e283f93cc82ff3c95215d368a29f7546 | 378 | // (c)2016 Flipboard Inc, All Rights Reserved.
package com.tutao.rxdemo.network.api;
import com.tutao.rxdemo.model.GankBeautyResult;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;
public interface GankApi {
@GET("data/福利/{number}/{page}")
Observable<GankBeautyResult> getBeauti... | 23.625 | 97 | 0.743386 |
73567c27adc1f70f8e23909e48398f6016af384e | 2,277 | package ibis.deploy.monitoring.visualization.gridvision.swing.listeners;
import ibis.deploy.monitoring.collection.MetricDescription;
import ibis.deploy.monitoring.visualization.gridvision.JungleGoggles;
import ibis.deploy.monitoring.visualization.gridvision.exceptions.MetricDescriptionNotAvailableException;
imp... | 36.142857 | 106 | 0.71278 |
5a064c536f162e9e9d08e1520068e176948a4814 | 1,998 | package com.doodeec.maroonfrog.data.model;
import com.doodeec.maroonfrog.data.persister.PackagingPersister;
import com.google.gson.annotations.SerializedName;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.List;
import static com.doodeec.maroonfrog.data.sto... | 28.140845 | 111 | 0.625626 |
4e99d2b65ae44b2d9915e17858be5d7b30869c1b | 2,207 | package org.bhavaya.ui.options;
import org.bhavaya.util.Transform;
/**
* Description
*
* @author Vladimir Hrmo
* @version $Revision: 1.3 $
*/
public class Option {
private Object target;
private String propertyBeanPath;
private String optionLabel;
private String optionDescription;
private Ob... | 29.426667 | 178 | 0.707295 |
18de999aaed7cc06409ad57cf45a0b042150863a | 9,896 | /*
* Copyright 2008-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 requi... | 35.725632 | 201 | 0.653496 |
5c93e98e1afcf75e3f9ab666cb5ab48bf3d4a402 | 610 | package CoinFlip;
public class CountFlips {
public static void main(String[] args) {
final int NUM_FLIPS = 1000;
int heads = 0, tails = 0;
Coin myCoin = new Coin();
for (int count = 1; count <= NUM_FLIPS; count++)
{
myCoin.flip();
i... | 25.416667 | 61 | 0.495082 |
e43436e5b105f5885cb1c6321ca329e88eb982ff | 353 | package org.mongodb.morphia.entities;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import org.mongodb.morphia.annotations.Indexed;
@Entity
public class NamedIndexOnValue {
@Id
private ObjectId id;
@Indexed(name = "value_ascending... | 23.533333 | 47 | 0.767705 |
78382702aba46333091b7d5d9baa5f9b054c604a | 497 | package io.github.jzdayz.spring.framework;
import org.springframework.core.ResolvableType;
import java.util.ArrayList;
public class ResolvableTypeTests {
public static void main(String[] args) {
test1();
}
private static void test1() {
ResolvableType resolvableType = ResolvableType.forCl... | 19.88 | 73 | 0.665996 |
4caaf64547731bd3313f73996bac901394f498c8 | 2,769 | /*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 35.5 | 99 | 0.749368 |
e3aaae9388b387774f18af5de145c934aad23f21 | 1,036 | package org.apache.spark.ml.tree;
/**
* Parameters for Random Forest algorithms.
*/
interface RandomForestParams extends org.apache.spark.ml.tree.TreeEnsembleParams {
/**
* Number of trees to train (>= 1).
* If 1, then no bootstrapping is used. If > 1, then bootstrapping is done.
* TODO: Change to alway... | 35.724138 | 105 | 0.679537 |
49e225f92480f2cdb12d27b33dac5bf25329304b | 463 | package ru.job4j.strategy;
import org.junit.Ignore;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
@Ignore
public class SquareTest {
@Test
public void whenDraweSquare() {
Square square = new Square();
assertThat(square.draw(),
... | 23.15 | 130 | 0.600432 |
574b7110c1cb395a7b970d4f3f9951cbb25f302b | 1,324 | package ru.assisttech.sdk.processor;
import android.app.Activity;
import ru.assisttech.sdk.AssistResult;
import ru.assisttech.sdk.storage.AssistTransaction;
/**
* Callbacks for AssistProcessor {@link AssistBaseProcessor}
*/
public interface AssistProcessorListener {
/**
* Called when AssistProcessor fini... | 25.960784 | 62 | 0.666163 |
ebb1ea2d6026fd2edbbdde9b197fa24aece0e4c3 | 3,556 | // CHANGES
// This is a customized copy of soot.tagkits.JasminAttribute class.
// It decodes the CodeAttribute format.
// Read comments on CodeAttr.java for more information.
// Feng Qian
// Jan 25, 2001
/* Soot - a J*va Optimization Framework
* Copyright (C) 2000 Patrice Pominville and Feng Qian
*
* This library ... | 25.768116 | 103 | 0.681665 |
4664650f5aa66ead3bd8b4b1ed5f059548dd1fff | 1,077 | package com.devmate.pub.client.models;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;
@JsonAutoDetect(getterVisibility = JsonAutoDetect.Visibility.NONE)
public class CustomersMeta {
@JsonProperty("total")
pri... | 25.046512 | 69 | 0.648097 |
f14507ff9a60e10701da5030f9a6b976f8008c41 | 873 | import java.awt.Color;
import acm.graphics.*;
public class myPiece
{
protected int x;//x board coordinate
protected int y;//y board coordinate
protected int gx;//x pixel coordinate
protected int gy;//y pixel coordinate
protected Color color;//piece color
protected GOval piece;
public myPiece(int pieceX, int ... | 30.103448 | 143 | 0.756014 |
d289d8c713052ccb2b566b606a1f29a7e6550b44 | 1,052 | package seedu.recruit.logic.parser;
import static seedu.recruit.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.recruit.logic.parser.CommandParserTestUtil.assertParseFailure;
import static seedu.recruit.logic.parser.CommandParserTestUtil.assertParseSuccess;
import static seedu.recruit.testuti... | 33.935484 | 85 | 0.794677 |
b1359e20e1f3fa33841686710d8847c86e0816db | 2,398 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 33.305556 | 89 | 0.69558 |
a4033f40c2accc1f40bdaa1dc39ca7e3caf98ecd | 708 | package javax.microedition.sensor;
/**
* Basic implementation of the JSR256 LimitCondition class
*
* @author Lawrie Griffiths
*/
public class LimitCondition extends OperatorTest implements Condition {
private double limit;
private String operator;
public LimitCondition(double limit, String operator) {
this.... | 19.135135 | 71 | 0.716102 |
ce301f2beb8e2118a47130b6f5935d7120ea7d2c | 7,926 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v4.hardware.display;
import android.content.Context;
import android.hardware.display.DisplayManager;
import android.view.Display;
... | 34.46087 | 109 | 0.581378 |
fc69d19c87e7f2b4ff269e452b2f7363647f3661 | 750 | package psidev.psi.mi.jami.xml.io.writer.elements.impl.extended;
import javax.xml.stream.XMLStreamWriter;
/**
* Xml writer for open cv terms
*
* @author Marine Dumousseau (marine@ebi.ac.uk)
* @version $Id$
* @since <pre>12/11/13</pre>
*/
public class XmlOpenCvTermWriter extends psidev.psi.mi.jami.xml.io.writer.... | 25.862069 | 109 | 0.681333 |
f18affd9338c62f015302c5914736a8f31e950a9 | 1,218 | /*
* Copyright © 2018 Edwin Njeru (mailnjeru@gmail.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 appl... | 32.918919 | 75 | 0.698686 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.