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 |
|---|---|---|---|---|---|
f5c9f94a98d35a58934ff5d4b523a73c14ac52f1 | 8,109 | /*
* Copyright 2016 Sebastian Kruse,
* code from: https://github.com/sekruse/profiledb-java.git
* Original license:
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.apache.wayang.commons.util.profiledb;
import org.apache.wayang.commons.util.profiledb.m... | 45.301676 | 115 | 0.70132 |
18947534f951382d4991944bebe94cdcd6e65df7 | 869 | package get.set;
/**
* Created by soumyay on 7/23/2016.
*/
public class CourseGetSet {
String easysubscribedon;
String intermediatesubscribedon;
String advancedsubscribedon;
public String getEasysubscribedon() {
return easysubscribedon;
}
public void setEasysubscribedon(String easys... | 24.828571 | 78 | 0.726122 |
c5c5b8bab3954a81d377a75614d1ecb3883ed8d2 | 5,157 | package csv2html;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
* 属性リスト:情報テーブルを入出力する際の属性情報を記憶。
*
* @author Okayama Kodai (Created by Aoki Atsushi)
* @version 3.0.0
*/
abstract class Attributes e... | 18.031469 | 83 | 0.656389 |
bf1861dcdcded26afbdb2d4e445830637f89e854 | 1,708 | package no.nav.vedtak.felles.prosesstask.api;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.enterprise.inject.S... | 28.466667 | 96 | 0.723068 |
ad854b141662a2aeac5cad6961e4c796714615d6 | 1,440 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 36.923077 | 187 | 0.583333 |
99bb303e401f52f5cb1caf2bb9289bf214ea5e41 | 5,635 | /*
* 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.apac... | 43.015267 | 120 | 0.677196 |
155a8dffcf946d2487215acc2ae94aa7a43b0602 | 1,277 | package br.com.zupacademy.adriano.casadocodigo.controller;
import br.com.zupacademy.adriano.casadocodigo.controller.form.CategoriaForm;
import br.com.zupacademy.adriano.casadocodigo.model.Categoria;
import br.com.zupacademy.adriano.casadocodigo.repository.CategoriaRepository;
import br.com.zupacademy.adriano.casadocod... | 38.69697 | 129 | 0.821457 |
4d05bdb869dab9e3db96f97cf9d14d30b16d581a | 6,487 | /*
* This file is part of ThermalRecycling, licensed under the MIT License (MIT).
*
* Copyright (c) OreCruncher
*
* 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, i... | 33.096939 | 83 | 0.75027 |
cbdeee07238dd4ee6b49b60097a233cb6a2fa11b | 1,265 | package me.xiaolei.room_lite.runtime.sqlite;
import android.database.ContentObserver;
import android.net.Uri;
import androidx.annotation.Nullable;
import java.util.List;
public abstract class RoomLiteContentObserver extends ContentObserver
{
private final String dbName;
private final String tableName;
p... | 25.3 | 79 | 0.66166 |
ab9e118bcbed03ebf4845f591b8d8c3afb989d5a | 839 | package com.logicaalternativa.forcomprehensions.poc.dummy;
import java.util.Scanner;
import com.logicaalternativa.forcomprehensions.option.AlterOption;
public class LanguageIOImpure implements LanguageIO {
public LanguageIOImpure() {
}
/* (non-Javadoc)
* @see com.logicaalternativa.forcomprehensions.poc... | 19.511628 | 92 | 0.713945 |
3bdbe8f8c3a887e90e2b978a0c962f0aa8f82cb3 | 120 | @ParametersAreNonnullByDefault
package im.getsocial.demo.utils;
import javax.annotation.ParametersAreNonnullByDefault;
| 24 | 54 | 0.883333 |
a707b9b952be6577368c0282424bb4b3bc096e02 | 4,050 | package com.github.nagyesta.abortmission.strongback.rmi.stats;
import com.github.nagyesta.abortmission.core.healthcheck.StageStatisticsSnapshot;
import com.github.nagyesta.abortmission.core.healthcheck.impl.DefaultStageStatisticsSnapshot;
import java.io.Serializable;
import java.util.Objects;
import java.util.StringJ... | 26.298701 | 122 | 0.613086 |
ea05b2fdb757cda8a861cbe009fa2aecc14ade05 | 282 | package daily._09_10;
public class NullpointerExceptionGenerator {
public static void main(String[] args) {
String str = null;
try {
str.concat(" world");
} catch (NullPointerException e) {
e.printStackTrace();
}
}
}
| 21.692308 | 44 | 0.567376 |
bbb2c360cdadb640366aa72d505c57d45a65a3ab | 601 | package com.example.cropad;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class wheat extends AppCompatActivity {
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState)... | 25.041667 | 62 | 0.737105 |
7737e6b49aa3e24759e956d2141a5027de7b6ed7 | 6,686 | /*
* Copyright (c) 2015-2019 Rocket Partners, LLC
* https://github.com/inversion-api
*
* 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
*
... | 29.715556 | 116 | 0.64822 |
b330a63a1062e3abf3f85bdffcb6a38a7d27b4a0 | 247 | package io.github.vm.patlego.html.sample.submit.constants;
public class Submit {
private Submit() {
throw new IllegalStateException("Utility class");
}
public static final String SUBMIT_URL = "/submit/examples/html";
}
| 20.583333 | 68 | 0.692308 |
262c3bfad3737322b62faed27021d36fdad448a8 | 270 | package cemthecebi.application.model.response;
import cemthecebi.domain.model.vo.HomePageTvShowVo;
import lombok.Data;
import java.util.List;
@Data
public class RetrieveTvShowListResponse extends Response {
private List<HomePageTvShowVo> homePageTvShowVoList;
}
| 20.769231 | 58 | 0.825926 |
4c44ca6e9f15819632732306c15098f005d8aeb9 | 667 | package com.quickblox.convo.ui.chats.emoji;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.List;
public class EmojisPagerAdapter extends FragmentPagerAdapter {
private List<EmojiGridFragment> fragmentsLi... | 24.703704 | 90 | 0.727136 |
8a8fd53ddbc2ccc49e0b4a2bed353eb841babcac | 752 | package ro.webdata.parser.xml.lido.core.leaf.legalBodyName;
import ro.webdata.parser.xml.lido.core.complex.appellationComplexType.AppellationComplexType;
/**
* <link rel="stylesheet" type="text/css" href="../../../../javadoc.css"/>
* <div class="lido">
* <div class="lido-title">Lido documentation:</div>
... | 28.923077 | 94 | 0.702128 |
1eebf796342760d498c684f026617261a4e1f641 | 1,388 | package net.varanus.util.collect;
import java.util.Collection;
import java.util.LinkedList;
/**
* A fixed length queue that evicts the oldest element when trying to add past
* the fixed limit.
*
* @param <E>
*/
public class LimitedQueue<E> extends LinkedList<E>
{
private static final long serialVersionUID... | 20.716418 | 78 | 0.577089 |
a81a48cbb76f27d33a5cafaa70e033ce90904500 | 529 | package org.openstack4j.model.trove;
import org.openstack4j.common.Buildable;
import org.openstack4j.model.ModelEntity;
import org.openstack4j.model.trove.builder.InstanceCreateBuilder;
public interface InstanceCreate extends ModelEntity, Buildable<InstanceCreateBuilder> {
void setFlavor(String flavorRef);
... | 25.190476 | 87 | 0.797732 |
a2edcd473953331090264b4cc4bb8eae7ff06dce | 4,811 | package seedu.address.model.person;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.VALID_EMAIL_AMY;
import static seedu.address.logic.commands.CommandTestUtil.VALID_EMAIL_BOB;
import stati... | 44.137615 | 119 | 0.727499 |
fcfccfabe2621d981351f4c04106aafbf090c9d1 | 1,858 | package net.minecraft.entity.ai;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.math.MathHelper;
public class EntityAILeapAtTarget extends EntityAIBase
{
EntityLiving leaper;
EntityLivingBase leapTarget;
float leapMotionY;
public Enti... | 26.927536 | 123 | 0.555974 |
7858d878afe14eb9b3854e16018dd5ee3965dad8 | 345 | public class A{
public void methodA() throws IOException{
}
}
public class B extends A {
public void MethodA() throws EOFException{
// Legal, because EOFException is the subclass of the IOException.
}
}
class C extends A {
public void methodA() throws Exception{
// Illegal, because Exception is the supercl... | 18.157895 | 68 | 0.727536 |
f63972df718a3cb83c332bec6b82f94032675419 | 12,973 | package com.mayinews.mv.home.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.s... | 32.513784 | 136 | 0.582055 |
93504af62bd717cc1ed194beb6ef4e72ad1073bc | 691 | /**
* you can invoke multiple methods in an object to create a object using method chaining
*
*/
package com.konzerntech.pattern;
/**
* @author konzerntech
*
*/
public class Hotel {
private int hotelId;
private String hotelName;
private String hotelDescription;
public Hotel setHotelId(int hotelId) {
... | 18.184211 | 89 | 0.713459 |
612ef92a3b17fc5c347f5ea77167156fedec95a4 | 4,348 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2017 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 43.049505 | 144 | 0.704692 |
f8dcb03cbda500685d2a13bcf80e255455ad9dd9 | 256 | package com.totoro.pay.routing.mapping;
/**
* 标题、简要说明. <br>
* 类详细说明.
* <p>
* Copyright: Copyright (c)
* <p>
* Company: xx
* <p>
*
* @author zhongcheng_m@yeah.net
* @version 1.0.0
*/
public interface HandlerDefinition {
//TODO 没想好 , 扩展使用
}
| 14.222222 | 39 | 0.605469 |
e30746983c5e7ffa2c2b931a23d30a92d14b5793 | 1,540 | package uk.ac.ox.well.cortexjdk.utils.performance;
/**
* A set of utilities for measuring performance metrics.
*/
public class PerformanceUtils {
private PerformanceUtils() {}
/**
* Get a string containing memory usage stats (used, free, total, and maximum available memory).
*
* @return a st... | 34.222222 | 127 | 0.645455 |
58c87a8095482a46b813a9f3e9d254eef18c28a4 | 15,452 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright 2015 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 * ... | 13.833483 | 623 | 0.780805 |
7f878a6a141a620c5bb4f7305b79c4e5024187e2 | 3,246 | /*******************************************************************************
* (c) Copyright 2021 Micro Focus or one of its affiliates
*
* 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 Soft... | 42.155844 | 97 | 0.745841 |
60c7fd6a9976fbc6401acf58b4a3244723962370 | 1,419 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.lib.integration.impl;
import java.util.Collection;
import java.util.HashSet;
import java.util.Map;
import org.lib.integration.BorrowDAO;
import org.lib.model.BookId;
import org.lib.model.Borrow;
import org.l... | 28.38 | 86 | 0.692037 |
9b038b688b6e64c4c7b1d6b2f23937bdd826ab2f | 1,298 | package cn.cicoding.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
@TableName(value = "user")
public class User impleme... | 20.28125 | 54 | 0.664099 |
1b2b4341836b712ea5b7a7ccf662973821973c58 | 2,904 | /*
* 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... | 33.37931 | 76 | 0.664256 |
c7478b1b366d85f363ab97268a3259490cd68195 | 357 | /*
* File: IntLiteralToken.java
* Author: Dale Skrien
* Date: Jun 6, 2006
*/
package ast6.token;
public class IntLiteralToken extends Token
{
public IntLiteralToken(String s, int p)
{
super(s, p);
}
public Object accept(TokenVisitor v, Object o)
{
return v.visit... | 17.85 | 51 | 0.59944 |
04e56c00f5335a1362d30a63e4712247d4f5439e | 336 | package com.twu.biblioteca;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class MovieTest {
@Test
public void checkoutMovie()
{
Movie movie = new Movie("A Movie", "A Person", 2018, 5);
movie.checkout("movie");
assertEquals(true, movie.getIsItemChecked... | 19.764706 | 64 | 0.654762 |
b09de356b278ec5894d318986801543f4fd33e5a | 3,024 | /*
* 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.490909 | 76 | 0.671296 |
e644acbe77ca4639ca9eef0b3b7504baacde1398 | 8,218 | package com.idvsbruck.pplflw.api;
import static org.springframework.test.web.client.ExpectedCount.manyTimes;
import static org.springframework.test.web.client.MockRestServiceServer.bindTo;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.method;
import static org.springframework.test.web... | 66.274194 | 120 | 0.790582 |
38c780f75ca86a4a2590d0c9ddd51f137a6e3873 | 1,415 | package com.jerry.bookcloud.homepage.dao;
import com.jerry.bookcloud.common.pojo.index.IndexBanner;
public interface IndexBannerMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table index_banner
*
* @mbg.generated
*/
int deleteB... | 26.698113 | 65 | 0.669965 |
97bbfa7e6b54b3fcd07a451046d5256b64f898e0 | 4,888 | package pl.edu.uwb.mobiuwb.controls.dialogs;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.widget.ListAdapter;
import pl.edu.uwb.mobiuwb.interfaces.OnValueChangedListener;
import pl.edu.uwb... | 31.133758 | 96 | 0.611702 |
e38f6625340dec5780d7c978cfb2ff97eaa17598 | 300 | package com.foreseeti.corelib.math;
public class FTruncatedNormalDistribution implements FDistribution<Double> {
public static FDistribution<Double> getDist(double m, double sd) {
return new FTruncatedNormalDistribution();
}
public Double sample() {
return Double.valueOf(0.0);
}
}
| 25 | 76 | 0.756667 |
9c8803176425aa7b793b3c3d497fe49ab938a927 | 7,997 | package dk.muj.derius;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Map.Entry;
import java.util.logging.Level;
import org.bukkit.Material;
import org.bukkit.plugin.Plugin;
import com.massivecraft.massivecore.MassivePlugin;
import com.massivecraft.massivecore.util.ReflectionUtil;
impo... | 27.4811 | 102 | 0.623859 |
7e93356cc891be2edbd3fd5cbbb3fa4d485cf8dd | 93 |
class i
{
public static void main(int f)
{
int c;
c=(5*f-160)/9;
System.out.println(c);
}
}
| 8.454545 | 30 | 0.623656 |
d99b7bafd7312c12620bd9766a74b32bcf350c33 | 1,363 | package tv.dyndns.kishibe.qmaclone.client.game;
import org.junit.Test;
import tv.dyndns.kishibe.qmaclone.client.QMACloneGWTTestCaseBase;
public class AnswerViewImplTest extends QMACloneGWTTestCaseBase {
private AnswerViewImpl view;
@Test
public void testSetGetWithoutFrame() {
view = new AnswerViewImpl(2, 4, fa... | 23.101695 | 65 | 0.669846 |
839a87815524427b812807655d981668e2139275 | 9,107 | package com.alisenturk.elasticlogviewer.dao;
import com.alisenturk.elasticlogger.data.Bucket;
import com.alisenturk.elasticlogger.data.ElasticData;
import com.alisenturk.elasticlogger.data.FilterType;
import com.alisenturk.elasticlogger.data.OrderByType;
import com.alisenturk.elasticlogger.data.SearchParam;
import com... | 41.967742 | 180 | 0.571758 |
7aba2e2ed5a56d290ea3d696c2cdd55a8d1454f1 | 4,636 | package com.example.android.miwok;
import android.app.Activity;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.provider.UserDictionary;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import androi... | 44.576923 | 119 | 0.649267 |
42cd8d1486e03afda1ce9024e546210a7eeff437 | 319 | package com.starterkit.springboot.brs.repository.user;
import com.starterkit.springboot.brs.model.user.User;
import org.springframework.data.repository.CrudRepository;
/**
* Created by Arpit Khandelwal.
*/
public interface UserRepository extends CrudRepository<User, Long> {
User findByEmail(String email);
}
| 22.785714 | 68 | 0.789969 |
4432a0a476610aef3fde8115810a70065a30d12b | 2,489 | package models;
import models.*;
import java.io.Serializable;
import java.util.List;
public class Test implements Serializable {
int id;
String name;
String subject;
int autoCorrectedTest;
int totalTime;
int teacher_id;
List<Question> questions;
List<Student> studen... | 22.026549 | 109 | 0.586179 |
fff6801b9291ce1a3dbb2e5112560b194109286b | 724 | package org.osrs.api.wrappers.proxies;
import org.osrs.injection.bytescript.BClass;
import org.osrs.injection.bytescript.BField;
import org.osrs.injection.bytescript.BFunction;
import org.osrs.injection.bytescript.BMethod;
import org.osrs.injection.bytescript.BGetter;
import java.awt.event.MouseWheelEvent;
@BClass(na... | 26.814815 | 84 | 0.808011 |
23193648a2fbf3c1ea24ffbf62885c88d864bcd3 | 3,778 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.tab.state;
import androidx.annotation.MainThread;
import androidx.annotation.VisibleForTesting;
import org.chromium.... | 35.308411 | 99 | 0.716517 |
9d5f7b2ba4b76f10dbf48d09816856939ddb6ed7 | 36,588 | package main.java;
// Imports
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.LinkedHashMap;
... | 39.683297 | 187 | 0.46589 |
a0e6c37c12f440afb03ed8ba521a2191baba80a6 | 738 | package Model;
import java.sql.Date;
public class UsuarioModel {
//Atributos
private String cpf;
private String nome;
private String email;
private String senha;
//Métodos Especiais
public String getCpf() {
return cpf;
}
public void setCpf(String cpf) {
th... | 18.923077 | 40 | 0.574526 |
0cd0fda2d2f612a90366c7b38384c2309598c9f2 | 2,319 | package com.jwhh.androidbooks;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity implements OnSelectedBookChangeListener {
boolean ... | 32.661972 | 85 | 0.628719 |
f936243774bbf934b697e7eb81beafd9380c1ac6 | 20,422 | package uk.gov.defra.datareturns.tests.integration;
import io.restassured.http.ContentType;
import org.hamcrest.Matchers;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.http.HttpStatus;
import org.springframework.test.context.junit4.SpringRunner;
import uk.gov... | 44.395652 | 132 | 0.619087 |
a005ccd337168111b6685bf5671cd7cbf76999c9 | 617 | package com.skytala.eCommerce.domain.product.relations.product.event.categoryLink;
import java.util.List;
import com.skytala.eCommerce.framework.pubsub.Event;
import com.skytala.eCommerce.domain.product.relations.product.model.categoryLink.ProductCategoryLink;
public class ProductCategoryLinkFound implements Event{
... | 29.380952 | 101 | 0.842788 |
c3cb71c6ae7f8bc5bf488da0914866c6f941ff8c | 1,709 | package com.robrua.orianna.type.core.match;
import com.robrua.orianna.api.core.RiotAPI;
import com.robrua.orianna.type.core.OriannaObject;
import com.robrua.orianna.type.core.staticdata.Rune;
import com.robrua.orianna.type.exception.MissingDataException;
public class ParticipantRune extends OriannaObject<com.r... | 25.893939 | 93 | 0.576946 |
dcdf1c9afb779c558a8934d353cc5842c73b17ad | 1,624 | package net.java_school.controller;
import static com.googlecode.objectify.ObjectifyService.ofy;
import java.util.List;
import java.util.Locale;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframewo... | 31.230769 | 123 | 0.751847 |
0d3d2211bf1123f288123b78e168436f437d3352 | 118 | package com.github.poad.examples.webauthn.exception;
public class UserNotFoundException extends RuntimeException {
}
| 23.6 | 61 | 0.847458 |
403901fd6993fb1d36ea956244b0db678cdbad00 | 5,577 | import android.graphics.Bitmap;
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cGyro;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualc... | 34.006098 | 161 | 0.647839 |
901cced692c6e5c94e9bd6c8fb6a712a9ea357b2 | 39,077 | /**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... | 37.074953 | 119 | 0.674463 |
75eeb30b9c35543c01ddfed59308e75709370465 | 1,048 | /*
* Copyright 2011-2018 ijym-lee
*
* 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... | 36.137931 | 110 | 0.727099 |
fbc112f460681abd98f417f688efb6f325aa1895 | 1,334 | package blackbeard.patches;
import com.evacipated.cardcrawl.modthespire.lib.*;
import com.evacipated.cardcrawl.modthespire.patcher.PatchingException;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.events.beyond.SensoryStone;
import com.megacrit.cardcrawl.localization.EventStrings;
impo... | 43.032258 | 106 | 0.781859 |
7a59bff3d30761bff2ee76352dd713291c548942 | 2,283 | package org.jgroups.protocols;
import org.jgroups.Global;
import org.jgroups.Header;
import urv.olsr.data.OLSRNode;
import java.io.*;
import java.net.InetAddress;
import java.util.function.Supplier;
public class OLSRHeader extends Header {
public static final int CONTROL = 0;
public static final int DATA = 1;
... | 19.025 | 75 | 0.595269 |
e00ce8f6aac1aed90655b3dd638b035805a2b5b6 | 803 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2020 FRC Team 2077. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. */
/*---------------------------------------------------------------------------... | 34.913043 | 87 | 0.557908 |
5bf0cdb7c7315dd7a8b4443e4c73a0e62955d198 | 391 | package dao.Interface;
import model.Gestore;
import model.Zona;
import java.sql.SQLException;
import java.util.ArrayList;
public interface ZonaDaoInterface {
ArrayList<Zona> LoadZona(ArrayList<Zona> zonal) throws SQLException;
ArrayList<Zona> LoadZonaGest(ArrayList<Zona> zonal, ArrayList<Gestore> gest) throw... | 27.928571 | 101 | 0.792839 |
7fd259ab64dcd9580ea556053536ed5501f825e5 | 3,339 | package com.bunchofstring.test.capture;
import com.bunchofstring.test.CoreUtils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.logging.Level;
import java.util.logging.Logger;
public final class Capture {
private static final Logger LOGGE... | 43.363636 | 129 | 0.683438 |
4868e019cdc7de8ac702c384945c9178b26d5792 | 3,331 | package nz.ac.vuw.engr300.weather.model;
/**
* Enum to represent WindDirection from the loaded data. Can provide an angle
* and retrieve the direction that matches the angle.
*
* @author Nathan Duckett
*
*/
public enum WindDirection {
NORTHWEST, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST;
... | 35.43617 | 92 | 0.618433 |
55db03f4fab572a518a7aaca2fd7c3084557e528 | 3,235 | package stepdefs;
import config.EndpointURLs;
import config.EnvGlobals;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import general.ReusableFunctions;
import payloads.EncounterPayload;
import static stepdefs.Hooks.RequestPayLoad;
import static stepdefs.Hooks.endPoint;
public class Encounter {... | 39.938272 | 103 | 0.762906 |
caf334af169a77550de98415c4fee89f0fefae20 | 730 | /*
* Copyright (C) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
*/
package com.huawei.example.demo.service;
/**
* 名称匹配的示例被拦截点
*
* @author HapThorin
* @version 1.0.0
* @since 2021/10/25
*/
public class DemoNameService {
/**
* 被拦截的构造函数
*/
public DemoNameService() {
Sys... | 17.804878 | 78 | 0.589041 |
886ffa38afdb9e8d38c1aac9add646690171e53d | 350 | package com.sgrailways.giftidea.wiring;
import android.app.Fragment;
import android.os.Bundle;
public class BaseFragment extends Fragment {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BaseActivity activity = (BaseActivity)getActivity();
a... | 26.923077 | 63 | 0.74 |
d4f77ab9f55b28db870706a4ea4d36f2364df889 | 3,689 | /**
* Copyright (C) 2014 The SciGraph 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 applicable... | 36.89 | 101 | 0.778802 |
115a73e5abce4f05ae4b0d1cb91f1626d1cdf77b | 263 | package com.csr.iticket.services;
import java.util.List;
import com.csr.iticket.dto.mongo.AgentDto;
public interface AgentService {
AgentDto getAgent(int agentId);
List<AgentDto> getAllAgents();
AgentDto validateLogin(String username,String password);
}
| 18.785714 | 57 | 0.787072 |
84fa2316c3733856f8691b32da68491245514c62 | 1,895 | /*MIT License
Copyright (c) 2020 Lucas Mendes,Marcela Cardoso,Luciano Jr.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy... | 33.245614 | 78 | 0.748813 |
189a84a5aabfe1df55b94c6c720350effb78b258 | 141 | /**
* FileName: package-info
* Author: Rust
* Date: 2018/6/21
* Description: netty heartbeat
*/
package com.rust.netty.heartbeat;
| 17.625 | 33 | 0.659574 |
7ec4654169e5ca16276d0b4a16d4f268bd3a0503 | 368 | package edt.texteditor;
import java.io.Serializable;
public abstract class TextElement implements Serializable {
private String _id = "";
public TextElement(){}
public TextElement(String id){
_id = id;
}
public String get_id(){
return _id;
}
public void set_id(String id){
_id = id;
... | 17.52381 | 60 | 0.668478 |
308cc85dc7441e38b21daf5029e5b23dd3c803ed | 754 | package cn.hutool.http;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* Http拦截器接口,通过实现此接口,完成请求发起前对请求的编辑工作
*
* @author looly
* @since 5.7.16
*/
@FunctionalInterface
public interface HttpInterceptor {
/**
* 处理请求
*
* @param request 请求
*/
void process(HttpRequest reque... | 16.755556 | 75 | 0.693634 |
64651eb4b1005debbe4784d6bdc955ba07bd779f | 4,449 | /**
* Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | 29.078431 | 103 | 0.636323 |
6be83b8f7a3a8c55ea782f55a037def6e0876051 | 2,735 | /*
120
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 +... | 29.095745 | 136 | 0.565996 |
06c4b533467f8f2d558607b5c261812dcd881b7f | 169 | package com.web.common.web.common.study.code;
/**
* @author: chengweixiong@uworks.cc
* @date: 2016年6月8日 下午5:41:56
*/
public class ConcurrentLinkQueue {
}
| 16.9 | 46 | 0.674556 |
e7d789b90fbda5c9e7376d99fac86eaed50ba790 | 6,733 | /*
* Copyright (c) 2016 Martin Davis.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* and Eclipse Distribution License v. 1.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.e... | 24.306859 | 87 | 0.621565 |
416a4cb4dfa596aeebdda89f46f8e9e113c773d1 | 8,447 | /*
* Copyright 2019 Monotonic Ltd.
*
* 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 applicable law or agreed to ... | 38.04955 | 112 | 0.747721 |
5e9fa64e70ddb32f3caa6501cd23d8d5e2663913 | 459 | package org.opencds.cqf.cds.hooks;
import org.opencds.cqf.cds.request.JsonHelper;
import org.opencds.cqf.cds.request.Request;
import com.google.gson.JsonElement;
public class OrderSelectHook extends Hook {
public OrderSelectHook(Request request) {
super(request);
}
@Override
public JsonEleme... | 25.5 | 103 | 0.738562 |
33a6eba967bb5ba979f6fe880776d66690818a63 | 465 | package com.web.project.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.NoArgsConstructor;
@Entity
@NoArgsConstructor
@Table(name = "publicacoes")
public class Publica... | 18.6 | 52 | 0.804301 |
41446a20c746a11245db379380006af30e81db95 | 963 | package com.wizzardo.http.framework.template.taglib.g;
import com.wizzardo.http.framework.template.Body;
import com.wizzardo.http.framework.template.ExpressionHolder;
import com.wizzardo.http.framework.template.RenderResult;
import com.wizzardo.http.framework.template.Tag;
import com.wizzardo.tools.evaluation.AsBoolea... | 29.181818 | 84 | 0.687435 |
08d482d4a0aa21efce399f64df635b007025075b | 3,361 | /*
* Copyright 2016 org.NLP4L
*
* 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... | 32.009524 | 107 | 0.705147 |
f46e0760f9304e8efcb6df9eb71f8112fe063b19 | 2,961 | package com.tongji.meeting.service;
import com.tongji.meeting.dao.CalendarDao;
import com.tongji.meeting.dao.EventDao;
import com.tongji.meeting.dao.UserCalendarDao;
import com.tongji.meeting.model.Calendar;
import com.tongji.meeting.model.UserCalendar;
import io.swagger.models.auth.In;
import org.springframework.bean... | 38.454545 | 93 | 0.721378 |
b5aa7c189868fc5f7f344944b85ee2575bd347b3 | 1,198 | package org.zstack.header.network.service;
import org.zstack.header.message.APIEvent;
import org.zstack.header.network.l3.L3NetworkInventory;
import org.zstack.header.rest.RestResponse;
import java.util.Arrays;
/**
* Created by frank on 1/4/2016.
*/
@RestResponse(allTo = "inventory")
public class APIDetachNetworkS... | 27.860465 | 106 | 0.74374 |
336f463113405e0dc5a3d952ce08d1adb446996c | 2,403 | /*
* Copyright 2013, Unitils.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... | 27.306818 | 82 | 0.669164 |
eefbb3bd5ea568e3e759a788ae7f7d05b659acd5 | 10,584 | /*
* Copyright 2020 The Error Prone 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 applicable law ... | 38.209386 | 99 | 0.691893 |
b873b6531ecd850a568115a5f3ef8f965ee45a4f | 1,157 | package io.hilamg.imservice.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.github.yuweiguocn.library.greendao.MigrationHelper;
import io.hilamg.imservice.bean.DaoMaster;
import io.hilamg.imservice.bean.SlowModeLocalBeanDao;
import org.greenrobot.greendao.database.Databa... | 32.138889 | 91 | 0.698358 |
a515df12721f8420fb63f234a25d2a3b068a452f | 21,453 | /*
* Copyright 2001-2004 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 b... | 39.508287 | 97 | 0.582622 |
69dd7dc2131a4079782c827d5caeb904123ffc5c | 10,414 | package de.metas.printing.api.impl;
import static org.adempiere.model.InterfaceWrapperHelper.create;
import static org.adempiere.model.InterfaceWrapperHelper.delete;
import static org.adempiere.model.InterfaceWrapperHelper.getCtx;
import static org.adempiere.model.InterfaceWrapperHelper.getTrxName;
import static org.a... | 36.929078 | 149 | 0.798925 |
28f5886b59f0f97ad64ac905866d4de37b730b4f | 239 | package com.flys.bible.dao.db.ifaces;
import com.flys.bible.entities.AppConfig;
import com.flys.generictools.dao.IDao.GenericDao;
public interface AppConfigDao extends GenericDao<AppConfig,Long> {
public AppConfig getAppConfig();
}
| 26.555556 | 66 | 0.799163 |
e8baacb838d64638719f032da695d8506d8f51c5 | 168 | /**
* This package tests strict builder generations
*/
@Value.Style(strictBuilder = true)
package org.immutables.fixture.strict;
import org.immutables.value.Value;
| 18.666667 | 48 | 0.767857 |
2653f6356fffca64be25c3aa65b43da3f96f89a1 | 1,057 | package model.services;
import java.util.Calendar;
import java.util.Date;
import model.entities.Contract;
import model.entities.Installment;
public class ContractService {
private OnlinePaymentService onlinePaymentService;
public ContractService (OnlinePaymentService onlinePaymentService) {
this.onlinePayment... | 27.815789 | 83 | 0.740776 |
a1fff842ed4e420802da425bee6efea9409a9f5d | 542 | package spoon.test.filters;
class FooLine {
void simple() {
int x = 3;
int z = 0;
System.out.println(z);
}
void loopBlock() {
for(int i = 0; i < 10; i++) {
System.out.println(i);
}
}
void loopNoBlock() {
for(int i = 0; i < 10; i++)
System.out.println(i);
}
void ifBlock() {
if (3 < 4) {
... | 12.904762 | 32 | 0.54059 |
67ef36430df962258de113098ad888442a6c0a3f | 2,663 | /*
* Copyright 2017 Nemanja Zbiljić
*
* 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... | 32.47561 | 91 | 0.678558 |
9be6405228b394a7ba931836d23725b64e76ef65 | 2,103 | package com.littledudu.redis.watch;
import static org.junit.Assert.*;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import com.littledudu.redis.watch.util.ParamKeyConvertor;
public class InfoTest {
@Before
public void setUp() throws Exception {
}
@Test
publi... | 26.961538 | 69 | 0.652401 |
8eebafd8b437f374b4112a56afc8f1c2d87dfc3a | 21,521 | /* Copyright 2002-2022 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 49.81713 | 167 | 0.68324 |
2e41bf6a853b04b66d18642439d1544dda900929 | 4,370 | package com.daviancorp.android.ui.detail;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
import andr... | 33.106061 | 83 | 0.779176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.