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 |
|---|---|---|---|---|---|
be2044e5327e0866004f58a46e7299cd7e362dd3 | 377 | package com.graduation.project.IQInterviewKids;
import java.io.Serializable;
/**
* Created by Mohamed AbdelraZek on 6/17/2017.
*/
public class ResultBundle implements Serializable {
public String Name;
public String EmailAddress;
public String Type;
public int ActualResult;
public int MaxScore;... | 16.391304 | 51 | 0.724138 |
80e07d8ce2cc927e8cc34d69a4aac29e95d318fd | 14,845 | package com.yc.bookmark.ui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.L... | 46.102484 | 159 | 0.542674 |
457a0691eeaceaf50d268716cfc6547c9ce99ab3 | 3,473 | package com.centurylink.mdw.model.asset;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.HashMap;
import java.util.Map;
/**
* Maps known asset extension to mime type.
*/
public class ContentTypes {
public static final String DEFAULT = "application/octet-stream";
... | 36.177083 | 75 | 0.576735 |
e442840d35f3a1a5c2d485f6e79bd04c3f79be84 | 600 | package com.boohee.model.mine;
import com.boohee.utils.DateHelper;
import java.io.Serializable;
public class BaseRecord implements Serializable {
private static final long serialVersionUID = 3429400890940214781L;
public int id;
public String record_on;
public int getYear() {
return DateHe... | 25 | 75 | 0.718333 |
b89a27e808e688d48a77f03327ebbc8f891e185d | 1,793 | /*
* 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 ... | 26.367647 | 78 | 0.658115 |
2cd3e16ebff536de0f8b3a587097d21d1288c751 | 75 | package net.marcoreis.dataimport.hbase;
public class HBaseBulkImport {
}
| 12.5 | 39 | 0.8 |
21a225fa414f65679caac0744e72a50b8af07762 | 7,359 | package org.apache.commons.lang3;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
public class Lo... | 39.564516 | 125 | 0.540291 |
896ac88b42ac238f5608a90c4cad89189fea96c4 | 1,232 | package com.heaven7.java.reflecty.gson;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.lang.reflect.Type;
public class... | 33.297297 | 102 | 0.676948 |
2752c5734a330340f8287d8b7247007f84161810 | 2,112 | package com.omertron.imdbapi.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ImdbUserComment extends AbstractJsonMapping {
@JsonProperty("user_score")
private int userScore = -1;
@JsonProperty("summary")
private String summary = "";
@JsonProperty("user_location")
pri... | 21.333333 | 58 | 0.626894 |
48a6a4ebe7b60789207a08c93ee2bbb4d0e7b871 | 676 | package fi.aalto.cs.apluscourses.intellij.notifications;
import static org.hamcrest.Matchers.containsString;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
public class IoErrorNotificationTest {
@Test
public void testIoErrorNotification() {
IOException exception = new IOExceptio... | 30.727273 | 77 | 0.761834 |
3947816946099c58989b335b3c6c846f403f62ad | 2,199 | package com.martinwong.dormcleaner;
import android.content.Intent;
import android.database.Cursor;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
/**... | 34.904762 | 88 | 0.681219 |
bdab748fbada9bf676f07bf6eec3d46a2b530214 | 4,393 | package com.toxsickproductions.skyland.scenes3d.generators;
import com.badlogic.gdx.graphics.g3d.Model;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Matrix4;
import com.badlogic.gdx.math.Quaternion;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.physics.bullet.collision.*;
import... | 51.682353 | 224 | 0.706806 |
2d1e833ecd10888cda36e4cd58d1b186fea29325 | 3,248 | package tech.simter.embeddeddatabase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.bo... | 41.641026 | 120 | 0.766318 |
d90c6d68d1b3c5a07109af27f3a2155825de980f | 1,331 | package ru.justagod.justacore.gui.overlay.common;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.I18n;
import ru.justagod.justacore.gui.overlay.ScaledOverlay;
/**
* Created by JustAGod on 15.10.17.
*/
public class TextOverlay extends ScaledOverlay {
protected String text = "";
... | 23.350877 | 152 | 0.654395 |
dc5001286d4ed2508043d1e81b2f089b733b84f3 | 2,675 | /***********************************************************************************************************************
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | 32.228916 | 120 | 0.672523 |
8bf8bacc6705c49ad138d73a69a8fda5e3dd070f | 2,577 | /*
* Copyright 2020 OPPO ESA Stack Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 26.56701 | 117 | 0.664338 |
296f2ba6b49ce44255b1d205337afc5b3c43ab9d | 734 | package uk.co.reallysmall.cordova.plugin.firebase.crashlytics;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaInterface;
import org.json.JSONArray;
import org.apache.cordova.PluginResult;
public class InitialiseHandler implement... | 29.36 | 108 | 0.757493 |
dceb215fe60aa206f95a1cd05290495385148ae6 | 9,246 | /*
* This file was automatically generated by EvoSuite
* Mon Jun 01 13:44:49 GMT 2020
*/
package com.capitalone.dashboard.model;
import org.junit.Test;
import static org.junit.Assert.*;
import com.capitalone.dashboard.model.TestCase;
import com.capitalone.dashboard.model.TestCaseStatus;
import com.capitalone.dashb... | 31.026846 | 176 | 0.678347 |
531793e91203867980a110e15795a68e606dd7f8 | 3,180 | /* ************************************************************************
#
# designCraft.io
#
# http://designcraft.io/
#
# Copyright:
# Copyright 2014 eTimeline, LLC. All rights reserved.
#
# License:
# See the license.txt file in the project's top-level directory for details.
#
# Authors:
# ... | 26.949153 | 102 | 0.571384 |
6d62afa3d5686e31787cfcd40d331667c1810bda | 3,183 | /**
* 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... | 30.605769 | 118 | 0.736726 |
ee05ce979e283d16292ac93cba14577f06699900 | 1,479 |
//
// This file is part of the CNC-C implementation and
// distributed under the Modified BSD License.
// See LICENSE for details.
//
// I AM A GENERATED FILE. PLEASE DO NOT CHANGE ME!!!
//
package CnCParser.Ast;
import lpg.runtime.*;
/**
*<b>
*<li>Rule 31: item_type ::= item_type *
*</b>
*/
public class Poi... | 21.75 | 64 | 0.597025 |
fe3737891fb8c1d49b801d25f899aa873d2230dc | 577 | package org.math.R;
import org.slf4j.LoggerFactory;
public class RLogSlf4j implements RLog {
@Override
public void log(String text, Level level){
if(Level.OUTPUT.equals(level)){
LOGGER.debug(text);
}else if(Level.INFO.equals(level)){
LOGGER.info(text);
}else if(Level.WARNING.equals(level)){
LOGGER.w... | 20.607143 | 82 | 0.679376 |
6c89ac23ad9a1b2a23d18f16e62c8fb6b6a1c026 | 2,339 | package com.pkrete.jsip2.messages.responses;
import com.pkrete.jsip2.util.MessageUtil;
import com.pkrete.jsip2.util.StringUtil;
import java.util.Iterator;
/**
* Created by sudhishk on 9/11/16.
*/
public class SIP2CreateBibResponse extends SIP2CirculationTransactionResponse {
/**
* Instantiates a new Sip... | 26.885057 | 80 | 0.575887 |
26cbca3e94cee23396622d3c46921340fcafa43b | 4,353 | /**
Copyright 2008 University of Rochester
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... | 39.216216 | 133 | 0.726855 |
209f36779f2e52db3760514a0a5bdf68b9545127 | 225 | package example.service;
import example.repo.Customer1764Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1764Service {
public Customer1764Service(Customer1764Repository repo) {}
}
| 20.454545 | 59 | 0.84 |
9f805b70e0600cafb7c3b65acf1606812dd96478 | 7,547 | package cube.ware.ui.chat.activity.p2p;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.common.mvp.base.BasePresenter;
import com.common.mvp.rx.RxPermissionUtil;
import com.common.utils.utils.ToastUtil;
imp... | 37.361386 | 175 | 0.622897 |
0a66b3d4c4722a6b53b0f116be8ef116a0198235 | 307 | package de.uniks.networkparser.ext.io;
import java.io.OutputStream;
public class StringOutputStream extends OutputStream {
StringBuilder mBuf = new StringBuilder();
@Override
public String toString() {
return mBuf.toString();
}
@Override
public void write(int b) {
mBuf.append((char) b);
}
}
| 17.055556 | 54 | 0.732899 |
3202cd0eacab238b6c6147763656c1e08644abdd | 670 | package com.feihua.framework.message.dto;
import feihua.jdbc.api.pojo.BaseConditionDto;
/**
* Created by yangwei
* Created at 2018/11/2 13:30
*/
public class BaseMessageTargetClientParamsDto extends BaseConditionDto {
private String targetClient;
private String subTargetClient;
public String getTarg... | 21.612903 | 72 | 0.714925 |
b5d7a6afa8f58b01ed2ee0f7c5ec18552cbfb001 | 6,877 | package com.github.eirslett.maven.plugins.frontend.lib;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.... | 36.194737 | 178 | 0.666133 |
59584d72873429030520a415e1b5cf4defdb04f3 | 3,001 | /*
** Tim feel free to integrate this code here.
**
** This code has been placed into the Public Domain.
** This code was written by David M. Gaskin in 1999.
**
*/
package com.ice.tar;
import java.io.IOException;
import java.util.Enumeration;
import java.util.NoSuchElementException;
/**
* Enumerate t... | 22.066176 | 80 | 0.624792 |
9d2ccc220a4d57b8824a8a7235f373860bfb3053 | 2,049 | package com.example.mysterious.privacyshield.Adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.mysterious.privacys... | 28.068493 | 97 | 0.714007 |
d1b0eeb715e565fdcf0e42a565c580a77e36507c | 600 | package info.atende.audition.appclient.spring.test;
import info.atende.audition.appclient.spring.annotations.Auditable;
import info.atende.audition.appclient.spring.annotations.NoAudit;
import org.springframework.stereotype.Component;
/**
* @author Giovanni Silva.
*/
@Auditable
@Component
public class TestTargetNoA... | 26.086957 | 85 | 0.753333 |
99ca6db16b411458911490a3bd724e95bfa34d7a | 473 | package com.example.ReciPleaseLogin.data;
import com.example.ReciPleaseLogin.data.Recipe;
import java.util.List;
import java.util.Vector;
public class Recipes {
List<Recipe> recipes;
public Recipes(){
recipes=new Vector<Recipe>();
}
public List<Recipe> getRecipes(){
return recipes... | 15.766667 | 47 | 0.621564 |
db3a17eb5b8f2fa4843d06ba6c52698d190cfdf2 | 1,027 | package com.power.constant;
/**
* Created by yu on 2016/12/9.
*/
public class PackageConfig {
private String service = "service";
private String serviceImpl = "service.impl";
private String entity = "model";
private String controller = "controller";
private String dao = "dao";
private S... | 16.564516 | 48 | 0.591042 |
5ab1dcd7182d35a82a115828c5269c3882f14d61 | 9,571 | package com.osh.rvs.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 日报KPI数据
*/
public class DailyKpiDataEntity implements Serializable {
private static final long serialVersionUID = -5822192201410204094L;
private Date count_date;
/** 保修期内返品率 */
private BigDecimal... | 23.808458 | 83 | 0.797827 |
aac012d5b637a6d6411137cba416bc182eb6c9d8 | 351 | package com.java110.store.bmo.contractRoom;
import com.java110.po.contractRoom.ContractRoomPo;
import org.springframework.http.ResponseEntity;
public interface IUpdateContractRoomBMO {
/**
* 修改合同房屋
* add by wuxw
* @param contractRoomPo
* @return
*/
ResponseEntity<String> update(Contr... | 19.5 | 65 | 0.723647 |
a7b4f452351439dac0e5495d7825ac48dd53ce77 | 726 | package at.ac.fhcampus.master.monolith.user.entities;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persiste... | 21.352941 | 58 | 0.780992 |
a9349eb246e5266256646d23897decf2767c130f | 2,949 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto
package com.google.cloud.aiplatform.v1beta1.schema.predict.prediction;
public final class TabularRegressionPredictionResultProto {
private TabularRegressionPredic... | 48.344262 | 136 | 0.779586 |
12197f01ec11a3c8e6f595a7242cc986759f660c | 276 | package com.helospark.sparktemplatingplugin.support;
import java.util.Arrays;
import java.util.List;
public class ImplicitImportList {
public static final List<String> IMPLICIT_IMPORT_LIST = Arrays.asList(
"com.helospark.sparktemplatingplugin.wrapper.*");
}
| 27.6 | 74 | 0.771739 |
a20c10e688684e3f7502b0e91964ec0be394706f | 800 | package com.lstfight.carrieroperatorproxy.repository;
import org.apache.ibatis.jdbc.SQL;
import tk.mybatis.mapper.mapperhelper.MapperHelper;
import tk.mybatis.mapper.mapperhelper.MapperTemplate;
import java.util.List;
import java.util.Map;
/**
*
* <p>实现接口的细节,如果接口有父类的东西,实现接口可以不实现</p>
* <P>使用反射自动获取对象属性</P>
*
* @a... | 21.621622 | 76 | 0.67375 |
f9979f91936b761b499e8d2379e111c3eac2f2fc | 639 | package com.progbits.db;
import java.sql.SQLException;
import java.sql.Connection;
/**
* Used in try with resources to set Auto Commit state, and reset after done
*/
public class AutoSetAutoCommit implements AutoCloseable {
private final Connection conn;
private final boolean originalAutoCommit;
publi... | 25.56 | 87 | 0.72457 |
59bc53dc4cb600aac5c66fda82fdf376d84a7af5 | 706 | package com.openthinks.vimixer.ui.model;
import com.openthinks.libs.i18n.I18n;
import com.openthinks.vimixer.resources.bundles.ViMixerBundles;
import com.openthinks.vimixer.ui.controller.biz.figure.DynamicPaintType;
public enum ViFileStatus {
NOT_START(DynamicPaintType.INITIALIZED_ALL), IN_PROCESSING(DynamicP... | 27.153846 | 106 | 0.773371 |
5a62e685a3b1a15c28744c87c97bdc001c0d8592 | 1,308 |
/**
* Write a description of class Card here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Card
{
// instance variables - replace the example below with your own
private String suit;
private int value,weight;
private String description;
/**
... | 18.956522 | 78 | 0.544343 |
60c9ec3c5dacdbde48edd31e95945d83799e3741 | 5,860 | /*
* Copyright (c) 2012-2016, b3log.org & hacpai.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 applica... | 33.678161 | 126 | 0.662116 |
980b16933cdf37b3df063430eaf7146992e70377 | 2,745 | /*
* Copyright © 2013-2016 BLT, Co., Ltd. All Rights Reserved.
*/
package com.blt.talk.message.server.handler.impl;
import org.springframework.stereotype.Component;
import com.blt.talk.common.code.IMHeader;
import com.blt.talk.common.code.IMProtoMessage;
import com.blt.talk.common.code.proto.IMBaseDefine;
import c... | 36.118421 | 182 | 0.720583 |
3fdc477dce22559282d193893cf26b0b3e285ee8 | 240 | package zeroturnaround.org.jrebel4androidgettingstarted;
/**
* Created by shelajev on 16/12/15.
*/
public class Contributor {
String login;
String url;
@Override
public String toString() {
return login;
}
}
| 15 | 56 | 0.658333 |
7dae607c70773bdfc9bea6882875186ac08a5c17 | 2,547 | /*
* 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
* distributed u... | 25.727273 | 100 | 0.74362 |
f4f27f37404be51125fe865dc83368f36a73dbec | 2,943 | package edu.umass.cs.reconfiguration.reconfigurationpackets;
import java.net.InetSocketAddress;
import org.json.JSONException;
import org.json.JSONObject;
import edu.umass.cs.nio.interfaces.Stringifiable;
/**
* @author arun
*
* The primary purpose of this class is just to report to an app client
* ... | 27.504673 | 137 | 0.72545 |
ea97fff2c481e6d0ed9c7b83eefb207cf44ccbe5 | 1,162 | package com.booksaw.betterTeams.customEvents;
import com.booksaw.betterTeams.Team;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
public class LevelupTeamEvent extends TeamEvent {
private static final HandlerList HANDLERS = new HandlerList();
private... | 20.75 | 116 | 0.755594 |
b39e3486e32ab6db47ba16bc49da08c3d302cecc | 507 | package com.notes.designpattern.singleton;
/**
* 文件描述 枚举单例
**/
public enum SingletonEnum {
INSTANCE;
public SingletonEnum getInstance() {
return INSTANCE;
}
public static void main(String[] args) {
SingletonEnum instance = SingletonEnum.INSTANCE;
SingletonEnum instance2 = S... | 24.142857 | 57 | 0.658777 |
1aefc9e044b44dd74e34887c768450cdede07259 | 2,157 | package com.miu360.taxi_check.model;
public class LvyouDriverInfo extends Page {
/**
* 姓名
*/
private String driverName;
/**
* 身份证号
*/
private String id;
/**
* 电话号码
*/
private String telphone;
/**
* 地址
*/
private String address;
/**
* 从业资格证号
*/
private String cyzgNumber;
/**
* 公司名
... | 13.48125 | 53 | 0.664812 |
07cec87709740f6372408c2afba1b491da415ea0 | 130 | package se.coredev.week3;
public final class Cat extends Animal {
@Override
public String sound() {
return "Mjauu..";
}
}
| 11.818182 | 39 | 0.684615 |
b0fa04ea35af9d2a38661da4bf931c0a600af6dc | 4,999 | package de.wwag.hackathon.team2.web.rest;
import de.wwag.hackathon.team2.service.BuildingService;
import de.wwag.hackathon.team2.web.rest.errors.BadRequestAlertException;
import de.wwag.hackathon.team2.service.dto.BuildingDTO;
import io.github.jhipster.web.util.HeaderUtil;
import io.github.jhipster.web.util.ResponseU... | 42.364407 | 186 | 0.696139 |
ebd5c6737b5b098c86e26312c7a719b01b128269 | 561 | package com.joanna.Model.FactoryPattern;
import com.joanna.Enums.Color;
import com.joanna.Interfaces.Factory;
import com.joanna.Model.Hen;
import com.joanna.Model.BuilderPattern.HenBuilder;
public class FactoryHen implements Factory {
@Override
public Hen factoryHen(Color color) {
return switch (col... | 28.05 | 77 | 0.682709 |
beb211a364b9a6c3c3af730d1654e07061cff0ed | 2,072 | package suda.sudamodweather.util;
import android.content.Context;
import android.util.Log;
import com.baidu.location.BDLocationListener;
import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;
public class GpsUtil {
private LocationClient mLocationClient;
private Context co... | 37 | 128 | 0.700772 |
b0fa0f3f605fff5a61064f7a59a095091328f138 | 9,363 | /*
* Copyright (C) 2018 https://github.com/Minamoto54
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 37.452 | 101 | 0.664424 |
982d3ec6d32b7ca093711dae0349b6be9160b499 | 3,323 | /*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 39.094118 | 182 | 0.642191 |
24754888b9046bff3071d29a7832952019626337 | 1,054 | package betterwithmods.common.potion;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BWPotion extends Potion {
private Reso... | 28.486486 | 64 | 0.706831 |
e291f21f74ab984225f36f803dd1912d326f867f | 3,398 |
package icc;
/**
* Práctica 2 del curso de Introducción a Ciencias de la Computación.
* @author Joel Miguel Maya Castrejón 417112602
* @version 15/Octubre/2021.
* @since Laboratorio de Introducción a Ciencias de la Computación 2022-1.
*/
import icc.conversiones.DecimalToDegrees;
import icc.conversiones.DegreesToDec... | 30.339286 | 85 | 0.618011 |
e3c335f3bf84738086690ea1d087841e2b278bbf | 637 | package com.fema.gruposalunos.controledegrupoparaalunos.model.grupo;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.*;
@Builder
@Entity
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Table(name="grupo")
public class Grupo {
@Id
@GeneratedValue(strategy = G... | 19.90625 | 68 | 0.734694 |
e89bceceab44c4bc11b2b15fbeaa83444d4dc24c | 3,604 | /*
* Copyright 2018 Edmunds.com, 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... | 43.95122 | 118 | 0.727248 |
0570068a5c4e2fe2eaec2e6aff1aabed4a2af8eb | 4,418 | package com.jdawg3636.icbm.common.thread;
import net.minecraft.block.BlockState;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.server.ServerWorld;
import java.util.ArrayList;
impor... | 33.469697 | 138 | 0.655953 |
705188c1d7cb60cd51d92e5cd342e2f4222c8957 | 352 | package com.clemble.casino.server.security;
import com.clemble.casino.security.ClembleConsumerDetails;
import com.clemble.casino.registration.PlayerToken;
public interface PlayerTokenFactory {
// TODO make a separate management effort for Tokens & token protocol
PlayerToken create(String player, ClembleConsu... | 29.333333 | 78 | 0.818182 |
3ecb098bd095d4b2dcebb81a7031b2326dd6d127 | 122 | public class Class2 {
private int ab;
protected int z;
public void af(){}
public void zf(){}
public Class2(){}
} | 17.428571 | 21 | 0.639344 |
22258e262698b100fb149aaeb1d232966e514e76 | 2,615 | package com.amazon.external.elasticmapreduce.s3distcp;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.hadoop.util.Progressable;
public class ProgressableResettableBufferedFileInputStream extends InputSt... | 26.414141 | 113 | 0.69369 |
034676cca23a9c66747afc495672bc05fe28712e | 2,189 | package xj.property.beans;
import java.util.List;
/**
* Created by Administrator on 2015/10/20.
*/
public class SrroundingInfoBean {
/**
* status : yes
* info : [{"facilitiesClassId":217,"facilitiesClassName":"美食","weight":1,"picName":"nearby_food"},{"facilitiesClassId":218,"facilitiesCl... | 23.793478 | 467 | 0.572864 |
c027febfc9130706852e41181baf56885766b314 | 23,907 | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | 36.667178 | 131 | 0.544987 |
e3989fd86d489733a213f18e55857952422c4781 | 10,512 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.policy;
import com.yahoo.config.provision.Zone;
import com.yahoo.vespa.applicationmodel.ClusterId;
import com.yahoo.vespa.applicationmodel.ServiceType;
import com.... | 52.56 | 136 | 0.618056 |
0728dff55f1dd9a51b9cfa0c4a2e0d4890a2764a | 257 | package com.yju.bbs.mapper;
import org.springframework.stereotype.Repository;
import com.yju.bbs.dto.Board;
@Repository("com.yju.bbs.mapper.TestMapper")
public interface TestMapper {
public Board test();
public void BoardInsertTest(Board board);
}
| 18.357143 | 49 | 0.774319 |
27227556ba8328eb204a9d704ae113ac06a1e308 | 2,700 | package com.twoexample.adresslist.Utils.Adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.twoexample.adresslist.ContactI... | 29.032258 | 134 | 0.715556 |
4cb997e5409d18f6a15c832e0eab8fec46c32ff8 | 93 | package com.reactnativenavigation.utils;
public interface Task<T> {
void run(T param);
} | 18.6 | 40 | 0.741935 |
31514b79a25c30dfba4a186546257b7a4bdafc07 | 497 | package com.polidea.rxandroidble.internal;
import com.polidea.rxandroidble.RxBleDevice;
import com.polidea.rxandroidble.internal.connection.Connector;
import com.polidea.rxandroidble.internal.connection.ConnectorImpl;
import bleshadow.dagger.Binds;
import bleshadow.dagger.Module;
@Module
abstract class DeviceModuleBi... | 27.611111 | 77 | 0.828974 |
ee78bcc083f684700e83faaa799eeb53c1930b9b | 320 | package com.github.zxh0.luago.compiler.ast.exps;
import com.github.zxh0.luago.compiler.ast.Exp;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class FloatExp extends Exp {
private double val;
public FloatExp(int line, Double val) {
setLine(line);
this.val = val;
}
}
| 16.842105 | 48 | 0.69375 |
04eca30da8655662cfa52b59113138ae37ea8435 | 420 | package org.conceptoriented.bistro.formula;
import org.conceptoriented.bistro.core.Table;
public class FormulaExp4j extends FormulaBase {
public FormulaExp4j() {
super();
isExp4j = true;
isEvalex = false;
}
public FormulaExp4j(String formula, Table table) {
super(formula, ... | 21 | 54 | 0.635714 |
187932e37d9194951b95d93b6c60bce586cf7535 | 2,329 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 29.1125 | 76 | 0.692143 |
94818d04b91716b4079eefb1013bd33488d93c51 | 341 | package fun.mortnon.flyrafter.mvn.resolver;
import org.apache.maven.model.Resource;
import java.io.File;
import java.util.List;
import java.util.Map;
/**
* @author Moon Wu
* @date 2021/5/14
*/
public interface ResourcesResolver {
Map<String,Object> resolveResource(File file);
Object resolveResource(File... | 17.947368 | 50 | 0.739003 |
ba77ea868969d328f723a99591456644424be92c | 153 | package com.vinners.cube_vishwakarma.core.dowloader;
import java.io.File;
public interface DownloadSuccessListener {
void onComplete(File file);
}
| 19.125 | 52 | 0.797386 |
abe2b74b7f6cab4d62361e1c2d016c076ba0a605 | 3,259 | package com.freeter.modules.pc.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annot... | 17.062827 | 74 | 0.660939 |
ebc358d8eb23df769d4a7f32bd916b8fe1c1c5f8 | 168 | /*
* Copyright (c) 2013 Villu Ruusmann
*/
package org.jpmml.evaluator;
public interface HasConfidence extends ResultFeature {
Double getConfidence(String value);
} | 18.666667 | 54 | 0.767857 |
e16f0d0c541fa75fd700dc78d730c02611a426b9 | 1,432 | /*
* Copyright 2014 lorislab.org.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 26.518519 | 84 | 0.664804 |
cebebe1be29e6636db2915275a2022ff7b164f8d | 2,370 | /**
*
*/
package org.flowninja.security.web.spring.types;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import org.flowninja.persistence.generic.types.AdminRecord;
import org.flowninja.types.generic.AdminKey;
import org.springframework.security.core.GrantedAuthority;
import org.sprin... | 21.944444 | 104 | 0.740084 |
0d0431c26f2c7e7f875c2e404069398244c4433a | 1,108 | package org.openstack.android.summit.common.data_access;
import org.openstack.android.summit.common.utils.RealmFactory;
import org.powermock.api.mockito.PowerMockito;
import io.realm.Realm;
import io.realm.RealmObject;
import io.realm.RealmQuery;
import io.realm.RealmResults;
import static org.mockito.Mockito.mock;
... | 27.7 | 78 | 0.734657 |
59ba10b6a575e0eac7b8cd6f698b4147b4fdd9cb | 254 | package com.callhh.nn.listener;
import android.view.View;
public interface OnRecyclerViewItemClick {
/**
* 列表 行点击 点击事件
* @param childView 视图控件
* @param position 某行下标位置
*/
void onItemClick(View childView, int position);
}
| 16.933333 | 51 | 0.669291 |
fd18242fc5f997d9179dbd87d8b829993d391d88 | 6,912 | /*
*
* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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.o... | 40.899408 | 106 | 0.66739 |
d61891f57425d8a2cd3748c1341fb5d9702f6a63 | 1,286 | package mtg.parsing;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import model.catalog.KeywordAbility;
@Entity
public class KeywordAbilityInstance extends Ability {
... | 19.784615 | 57 | 0.722395 |
52bcf91e2bae08dc7f1f41c568a5f96c6064f03f | 193 | package com.github.kimmokarlsson.somvis.som.ui;
public interface SomVisualizerMenuItems
{
public static final int ITEM_CODE_OPEN = 102;
public static final int ITEM_CODE_EXIT = 103;
}
| 24.125 | 49 | 0.782383 |
1e50d84f3376308e2c8b575c3e7f5e2a585b43f2 | 1,733 | package com.gocardless.errors;
import java.util.Map;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMap;
/**
* Representation of an individual error handling an API request.
*/
public class ApiError {
private static final Joiner JOINER = Joiner.on(" ").skipNulls();
private ... | 24.069444 | 88 | 0.623774 |
be25035014c14602e86d6f4ea0d36b970a0e1ead | 1,161 | package tk.deftech.goeurotest;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.util.ArrayList;
import java.util.List;
/**
* Does the data processing/conversion
*/
public class GeoProcessor {
/**
* Reads a json and maps to the model class
* @param json Input json
... | 27.642857 | 99 | 0.633936 |
5e27f759487a6ac9317d8bd9844b95c842652a65 | 11,291 | /*
* 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 ... | 40.325 | 144 | 0.711806 |
a53ce82e746d58f71e11785a8eac4ea9b8a8cf17 | 1,356 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.viacaoCalango.models;
import java.util.HashSet;
/**
*
* @author Lucas
*/
public class Onibus {
//-... | 21.1875 | 101 | 0.646755 |
2c5020e525f6f417a9995e0de04f2c908d2c0279 | 752 | public class Solution {
public int maximalSquare(char[][] matrix) {
if (matrix.length == 0 || matrix[0].length == 0) return 0;
int m = matrix.length, n = matrix[0].length;
int[][] dp = new int[m+1][n+1];
for (int i = 0; i <= m; i++) {
dp[i][0] = 0;
}
for (... | 31.333333 | 92 | 0.359043 |
489c7e2c78dec800cfe0c88696a46d05ba1033f3 | 7,450 | package net.thevpc.nuts.runtime.standalone.io.path;
import net.thevpc.nuts.*;
import net.thevpc.nuts.runtime.standalone.xtra.glob.GlobUtils;
import java.util.*;
import java.util.regex.Pattern;
public class DirectoryScanner {
private NutsPath initialPattern;
// private String root;
// private String pattern... | 30.785124 | 128 | 0.500671 |
3313e17ea80ba365b208ab5832e0d9047d77d2e3 | 292 | package org.haobtc.onekey.event;
import androidx.annotation.StringRes;
/**
* @author
* @date 12/10/20
*/
public class RefreshViewEvent {
private int id;
public RefreshViewEvent(@StringRes int id) {
this.id = id;
}
public int getId() {
return id;
}
}
| 15.368421 | 48 | 0.619863 |
50e2495e60704c3d4c61adb6f8098f1d3c82e83c | 1,587 | package cz.cesnet.meta.accounting.server.service;
import cz.cesnet.meta.accounting.server.data.PBSRecord;
import cz.cesnet.meta.accounting.server.data.PbsRecordData;
import cz.cesnet.meta.accounting.server.util.Page;
import org.joda.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.ut... | 46.676471 | 177 | 0.767486 |
97056c46624b690e6b9ebafe400f07ff0ae6f2df | 1,761 | package weather.models;
/**
* temp - температура
* tempMin - минимальная температура
* tempMax - максимальная температура
* pressure - атмосферное давление на уровне моря по усолчанию
* seaLevel - атмосферное давление на уронне моря
* grndLevel - атмосферное давление на уровне земли
* humidity - влажность
* te... | 19.566667 | 62 | 0.627484 |
88c93a741c36ee300076f850e47c26ad13c65424 | 1,375 | package com.didi.carrera.console.dao.mapper;
import com.didi.carrera.console.dao.model.ConsumeSubscription;
import com.didi.carrera.console.dao.model.ConsumeSubscriptionCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ConsumeSubscriptionMapper {
long countByExample(Co... | 37.162162 | 133 | 0.818909 |
4b58178bbc0dbdbffdf2400d0f27e1f38cb6feb2 | 407 | package com.wp.steps;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
dryRun=false,
strict=true,
monochrome=false,
features= {"src/test/resources/"},
glue = {"com.wp.steps"},
plugin= {
"html:target/si... | 16.28 | 37 | 0.70516 |
fa49563e0f2b349bdedb17f68dceadf45b26deb5 | 4,995 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.935252 | 170 | 0.606607 |
b7f89784a12a3a64d1759c4cda578949f74f773e | 7,911 | package de.uni_hildesheim.sse.qmApp.dialogs;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.InetAddr... | 34.246753 | 119 | 0.626343 |
096d84b6408b680512d56fb1f8dfd1020c3bf858 | 880 | package cn.iocoder.mall.promotionservice.rpc.price;
import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.promotion.api.rpc.price.PriceRpc;
import cn.iocoder.mall.promotion.api.rpc.price.dto.PriceProductCalcReqDTO;
import cn.iocoder.mall.promotion.api.rpc.price.dto.PriceProductCalcRespDTO;
import ... | 35.2 | 102 | 0.822727 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.