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 |
|---|---|---|---|---|---|
1797204347a9dba692d44ae15229a4bb0d2100ee | 1,071 | package TwoDimensionalArray;
/**
* @author Muhammad Elgendi
**/
public class TwoDimensionalArray {
public static void main(String[] args) {
//intialization process
int arr1[][]=new int[][]{
{1,2,3},
{5,6,7},
{8,9,11}
};
int arr2[][]=... | 26.775 | 77 | 0.437908 |
0cf37e84d1512c0b70b4493fae34ef0bf3d31a97 | 1,753 | package seedu.knowitall.storage.csvmanager;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Represents a Csv file for either import or export
*/
public class CsvFile {
public static final String MESSAGE_CONSTRAINTS = "File name should not be left blank and should have"
+ ".cs... | 28.737705 | 105 | 0.652025 |
ba717201d6c5cfb8cfd58f5a119cbe187512fc0c | 3,162 | package cn.wildfire.chat.kit.group.manage;
import android.widget.Toast;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import com.kyleduo.switchbutton.SwitchButton;
import java.util.Collections;
import java.util.List;
import butterknife.BindView;
import cn.wildfire.chat.kit.WfcBa... | 33.638298 | 139 | 0.590133 |
77ee5cca7fa789bc2dfc867c52c8560768276d2f | 860 | package seedu.address.testutil.notes;
import static seedu.address.logic.parser.CliSyntax.PREFIX_DESCRIPTION;
import static seedu.address.logic.parser.CliSyntax.PREFIX_TITLE;
import seedu.address.logic.commands.notes.EditNoteCommand.EditNoteDescriptor;
/**
* A utility class for Note.
*/
public class NoteUtil {
... | 35.833333 | 106 | 0.72907 |
2263afa9582ada34c3efa2bd6557a93143fc6b96 | 482 | package com.kh.yeokku.model.dao;
import java.util.List;
import java.util.Map;
import com.kh.yeokku.model.dto.LikeTourCourseDto;
import com.kh.yeokku.model.dto.RoomDto;
public interface RoomDao {
String NAMESPACE="room.";
public int createRoom(Map<String, Object> map, String pw);
public List<RoomDto> selectAll(... | 24.1 | 59 | 0.771784 |
11f631204a0906fad39323818b2bfedf3e72ff83 | 3,558 | package com.net.comy;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
... | 38.673913 | 98 | 0.701799 |
387f12cb1df31d82b0c470fcfef309958868ae9f | 2,176 | package com.explore.weeboos.gaodemap;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.widget.ViewDragHelper;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widge... | 27.544304 | 100 | 0.671415 |
6efc7d5d91abe579d8ff450dbb1d8a019cca56d8 | 866 | package com.blocklang.marketplace.service;
import java.util.Optional;
import com.blocklang.marketplace.model.ApiRepoVersion;
/**
* Api 仓库版本管理数据服务接口。
*
* <p> 一个 Api 仓库中有多个稳定版本和一个 master 版本。
* 使用 git tag 标注稳定版本,在 master 分支中存最新版本。
*
* @author Zhengwei Jin
*
*/
public interface ApiRepoVersionSer... | 20.619048 | 70 | 0.678984 |
876bd4ff70fe6341f96ef2e549454ffa778245e6 | 566 | package me.vilsol.nmswrapper.wraps.unparsed;
import me.vilsol.nmswrapper.*;
import me.vilsol.nmswrapper.reflections.*;
import me.vilsol.nmswrapper.wraps.*;
@ReflectiveClass(name = "AchievementList")
public class NMSAchievementList extends NMSWrap {
public NMSAchievementList(Object nmsObject){
super(nmsOb... | 24.608696 | 60 | 0.689046 |
22f0940a22dffb74de2cb76b3983484ff267ace7 | 188 | package com;
import org.junit.Test;
/**
* Created by bruce.ge on 2016/11/21.
*/
public class FirstTest {
@Test
public void test(){
System.out.println("nimei");
}
}
| 13.428571 | 37 | 0.601064 |
36b3d5e026b56094563d4e1ab8797aa2a647d27f | 333 | package cn.keking.dao;
import cn.keking.entity.DataList;
import org.springframework.data.mongodb.repository.MongoRepository;
/**
* @Author mingyuan
* @Date 2020.06.14 16:10
*/
public interface DataListDao extends MongoRepository<DataList, String> {
DataList findByOid(String oid);
DataList findFirstByUid(St... | 23.785714 | 72 | 0.765766 |
5ff8a476c8fb15bc291d12b8507b791bf3a3d7bd | 2,684 | package org.dataalgorithms.chap11.projection.memorysort;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
imp... | 37.277778 | 84 | 0.711252 |
80471b6b3c1d2897b3599727cf05c93b946351c2 | 7,430 | package playn.core;
import org.jbox2d.callbacks.DebugDraw;
import org.jbox2d.common.Color3f;
import org.jbox2d.common.OBBViewportTransform;
import org.jbox2d.common.Transform;
import org.jbox2d.common.Vec2;
import static playn.core.PlayN.log;
public class DebugDrawBox2D extends DebugDraw {
private static String C... | 26.726619 | 88 | 0.634186 |
8d93bd1715aa84117365112debede6d49ec37aa7 | 10,614 | /*
* Copyright 2019 Dmitriy Ponomarenko
*
* 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 agr... | 32.458716 | 103 | 0.704353 |
12c052851c8d78e5484699337775c5b2e3364b9b | 1,572 | package com.callfire.api11.client.api.common.model;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBui... | 24.5625 | 60 | 0.65458 |
84db7e8315a554b5dbf8e2651daafd6deeed77bc | 1,574 | package fi.iki.maf;
import java.util.ArrayList;
public class Option {
static public ArrayList<Option> getOptionList()
{
ArrayList<Option> options = GameData.getOptions();
return options;
}
public Option(int firstRound, int lastRound, String beforeText, String afterText, String missedText, String completedTex... | 30.862745 | 193 | 0.759848 |
2778482b6e42655aa758d1cf011635ed2b72f1e4 | 92 | package cn.aezo.springboot.datasource.enums;
public enum HobbyEnum {
GAME, CODE, READ
} | 18.4 | 44 | 0.75 |
c5523c73d83bfd25754293e15002df265f594d28 | 1,832 | /*
* 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 ... | 36.64 | 146 | 0.74345 |
f203e23c48788e637c16b26c9270d7c8e38ecc3b | 249 | package com.lyq.util.hibernate;
import com.lyq.model.PaymentWay;
/**
* 支付方式Hibernate映射类型
* @author Li Yongqiang
*/
public class PaymentWayType extends EnumType<PaymentWay> {
public PaymentWayType() {
super(PaymentWay.class);
}
}
| 19.153846 | 59 | 0.710843 |
554243d0e08a3ea470b8094ca5498f66135d2130 | 9,466 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tcp.client.view;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import model.ObjectWrapper;
import model.Customer;... | 50.892473 | 170 | 0.65149 |
70c95bfedd1450c1de4315fcd2456a7dee6819c9 | 2,279 | package com.jocelyne.mesh.instructor.hype;
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.jocelyne.mesh.R;
import com.jocelyne.me... | 27.457831 | 114 | 0.694164 |
c973064f8d3955346ea5b50be877d8fc15ca87ee | 1,073 | package interceptor;
/**
* @Author Froid_Li
* @Email 269504518@qq.com
* @Date 2017/9/5 14:37
*/
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class JsonAccessInterceptor extends Handl... | 35.766667 | 106 | 0.707363 |
5795d5312a12d9a4e6093dd45d89aea28b9559d8 | 1,828 | package nl.mvdr.adventofcode.adventofcode2020.day18;
import org.junit.jupiter.api.Test;
import nl.mvdr.adventofcode.SolverTest;
/**
* Unit test cases for {@link OperationOrderPart1}.
*
* @author Martijn van de Rijdt
*/
public class OperationOrderPart1Test extends SolverTest<OperationOrderPart1> {
/** Constr... | 27.283582 | 78 | 0.626915 |
3d9297ddedd8558b3ae16e827090bd287a47c3a9 | 1,162 | /*L
* Copyright Northwestern University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.io/psc/LICENSE.txt for details.
*/
package edu.northwestern.bioinformatics.studycalendar.restlets;
import junit.framework.TestCase;
import org.restlet.data.MediaType;
import org.restlet.... | 27.666667 | 88 | 0.716007 |
08514e414df2e57fa5bddcfeb9c083265aeee7fe | 144 | package com.agatsenko.mongo.mapper.util;
@FunctionalInterface
public interface Procedure3<A1, A2, A3> {
void apply(A1 a1, A2 a2, A3 a3);
}
| 20.571429 | 41 | 0.729167 |
73199a0b4d59af0c17b139bcc89f0f13c0a58b78 | 2,647 | package noobanidus.mods.glimmering.client.render.entity.layer;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GameRenderer;
import net.minecraft.client.renderer.entity.IEntityRenderer;
import net.minecraft.client.renderer.entity.layers.Lay... | 44.116667 | 166 | 0.762372 |
c9870c25ff1c096d2e565a83c25c692f4fbb804b | 3,357 | /*
* Copyright 2017 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information.
*
*/
package com.linkedin.kafka.cruisecontrol.analyzer;
import com.linkedin.kafka.cruisecontrol.analyzer.goals.Goal;
import java.util.ArrayList;
import java.util.Hash... | 35.336842 | 146 | 0.708966 |
2029dc5d5b1fff4fc844f588efe733dbf46e6621 | 775 | package com.gpnk.models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.Map;
@Getter
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnorePropert... | 25 | 70 | 0.745806 |
cfe160abe59145ab58bca4926ad3e412bc4786ea | 3,697 | package com.bullhornsdk.data.model.entity.association.paybill;
import com.bullhornsdk.data.model.entity.association.AssociationField;
import com.bullhornsdk.data.model.entity.association.EntityAssociations;
import com.bullhornsdk.data.model.entity.association.standard.StandardAssociationField;
import com.bullhornsdk.d... | 52.070423 | 245 | 0.80687 |
c15630f0c400e8d0aba0800d0c09be6c4ed663bc | 30,781 | /*
* Copyright 2018 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 applica... | 34.315496 | 100 | 0.643254 |
a06dc197a039c3a91f55c7ca36f9694de5f9f302 | 3,305 | package cz.znj.kvr.sw.exp.java.dynamodb.basic;
import com.amazonaws.services.dynamodbv2.document.Table;
import com.amazonaws.services.dynamodbv2.model.*;
import com.google.common.base.Throwables;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**... | 29.774775 | 102 | 0.70348 |
75298978a6ba221bed4cb10c7d9b0481c7cbc873 | 1,766 | /*
* Copyright 2017 Daniel Sawano
*
* 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 ... | 33.961538 | 112 | 0.728199 |
c82009d434e70a9101909a7ef35d978cd80b2a93 | 1,939 | package be.phury.relax;
import com.google.gson.JsonObject;
import javax.inject.Inject;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import java.util.List;
import java.util.NoSuchElementException;
public class JsonResourceImpl implements JsonResource {
@Inje... | 28.514706 | 85 | 0.663228 |
e1f8c777752f722e6277cd2e1d44a7eda326fde0 | 1,414 | package com.loenan.bricks.sphere.generator.color.image;
import com.loenan.bricks.ldraw.color.Color;
import com.loenan.bricks.ldraw.color.ColorSet;
import com.loenan.bricks.sphere.generator.color.CoordinatesColorScheme;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
impo... | 30.73913 | 95 | 0.74611 |
5c7587f5db4b33ca94c1bd513278c05226ccd007 | 8,456 | /*******************************************************************************
* Copyright (C) 2020 FVA GmbH
*
* 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.... | 35.982979 | 95 | 0.777554 |
686001cc9af70d4c5cb90122f531dd270c83fed6 | 2,583 | package ru.intertrust.cm.core.config;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
import ru.intertrust.cm.core.config.base.TopLevelConfig;
/**
*
* @author atsvetkov
*
*/
@Root(name = "notification")
public class NotificationConfig impleme... | 27.774194 | 127 | 0.617499 |
c9c828315ee204e85aeb576b049ad8c1d7b4301f | 20,067 | /*
Copyright 2006 by Sean Luke
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package ec.gp.breed;
import ec.*;
import ec.util.*;
import ec.gp.*;
import java.util.ArrayList;
import java.util.HashMap;
/*
* MutateDemotePipeline.java
*
* Created: Wed Dec ... | 41.290123 | 276 | 0.554891 |
e6b1ed238ee7f6e144866d90303320f172b5637c | 2,126 | /*
* 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 m... | 34.852459 | 80 | 0.713547 |
72d002550e3492f18d261378c2bc5e711ee8b4cf | 3,760 | package display;
import cellsociety.CellSociety;
import javafx.animation.Animation;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javaf... | 28.484848 | 112 | 0.746543 |
e117ba536f4d28948ca1f19f4a0f91f9d9592536 | 17,960 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | 36.87885 | 116 | 0.658018 |
2dbaf7074b8fdcdc2e217df3fde00ec2045685c1 | 13,556 | package dev.squaremile.asynctcp.internal.transport.nonblockingimpl;
import java.io.IOException;
import java.net.ConnectException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import ... | 40.465672 | 172 | 0.602464 |
9f084650f769bcb4b2de1fa9a776d348574ce80b | 10,646 | /*
* 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... | 39.723881 | 158 | 0.800113 |
1a3ec383ee942e1177976a06e701725648e1708b | 3,663 | package com.jackie.media_preview.ui;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.MediaController;
import android.widget.VideoView;
import com.jackie.media_p... | 29.540323 | 106 | 0.632542 |
a811a98c6eca2f34fbfe0af065be02a5a2cd41a8 | 4,538 | package io.github.gecko10000.GeckoSpawners;
import de.tr7zw.nbtapi.NBTCompound;
import de.tr7zw.nbtapi.NBTContainer;
import io.github.gecko10000.GeckoSpawners.guis.MainEditor;
import io.github.gecko10000.GeckoSpawners.guis.SpawnerEditor;
import io.github.gecko10000.GeckoSpawners.objects.SpawnCandidate;
import io.githu... | 39.46087 | 114 | 0.705377 |
6459bddf062486dcefeb8c81a03c00705943e457 | 1,009 | package ru.betterend.registry;
import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry;
import net.minecraft.client.render.entity.MobEntityRenderer;
import net.minecraft.entity.EntityType;
import ru.betterend.entity.render.RendererEntityDragonfly;
import ru.betterend.entity.render.Rendere... | 36.035714 | 109 | 0.763132 |
93a0277fec46a331118a19bba1acd3729493afce | 1,153 | package sorting;
public class QuickSortRecursive {
public void quickSort(int[] arr) {
if (arr == null || arr.length == 0) {
throw new IllegalArgumentException();
}
quickSort(arr, 0, arr.length -1);
}
private void quickSort(int[] arr, int left, int right) {
int ... | 23.530612 | 60 | 0.452732 |
e01d2f8272b21eb0790c17c407f5a1812da8b3b6 | 666 | /*
* © 2021. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.datamodel.io.extractor;
/**
* This interface should be implemented only by other interfaces that should be used by the {@link
* E... | 37 | 98 | 0.756757 |
dc0e8e47cbb278c4d5592c0f9082f5a05d58f70b | 645 | package io.github.xerprojects.xerj.commandstack.exceptions;
/**
* Base exception for command stack library.
*
* @author Joel Jeremy Marquez
*/
public class CommandStackException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* Constructor.
* @param message The excep... | 22.241379 | 67 | 0.688372 |
66de3e312e3a4fb64787d18d639bbac32b0b0d51 | 3,241 | package engine.graph;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import org.lwjgl.system.MemoryStack;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL11.glTexParameteri;
import static org.lwjgl.opengl.GL14.GL_TEXTURE_LOD_BIAS;
import static or... | 28.681416 | 108 | 0.583153 |
4bf81019b6bb623e22d1182cf016bdf01d308c99 | 1,864 | /*
* Copyright 2012 Objectos, Fábrica de Software LTDA.
*
* 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 applicab... | 26.253521 | 80 | 0.711373 |
006f8d712c1e863b0ce6c337f2d8bdaae8cb451f | 759 | package org.mi.adminui.web.core.configuration;
import nz.net.ultraq.thymeleaf.LayoutDialect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.... | 33 | 81 | 0.779974 |
11d5ddc011c9dee941ff9866b678bd8acd296d13 | 500 | package org.oagi.score.repo.component.bccp;
import java.math.BigInteger;
public class UpdateBccpBdtRepositoryResponse {
private final BigInteger bccpManifestId;
private final String den;
public UpdateBccpBdtRepositoryResponse(BigInteger bccpManifestId, String den) {
this.bccpManifestId = bccpMa... | 20.833333 | 83 | 0.702 |
58f03a525af0dd0511ee14efcc58ab92d954ef5a | 197 | package com.example.exceptions.username;
public class InvalidUsernameFormatException extends RuntimeException {
public InvalidUsernameFormatException(String message) {
super(message);
}
}
| 24.625 | 70 | 0.812183 |
619b9b0041ff607e0a30a9693b5d464d3a0b7b2f | 6,527 | package com.ieoca.algorithm.ga;
import com.ieoca.components.problem.Problem;
import com.ieoca.problem.TSP;
import java.util.Arrays;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class GeneticAlgorithm extends GA {
private final Logger logger = LogManager.getLogger(Genet... | 32.635 | 97 | 0.645932 |
8ccad4e480156cb41d72620421a7470a35bb3815 | 1,531 | package com.tbot.ruler.plugins.jwavez.switchmultilevel;
import com.rposcro.jwavez.core.commands.controlled.SwitchMultiLevelCommandBuilder;
import com.rposcro.jwavez.core.commands.controlled.ZWaveControlledCommand;
import com.rposcro.jwavez.core.exceptions.JWaveZException;
import com.rposcro.jwavez.core.model.NodeId;
i... | 36.452381 | 87 | 0.7629 |
073c32f0a50fe330afb9b960a56cbf8f8da588eb | 8,157 | /*
* Copyright (C) 2008 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 ... | 31.133588 | 156 | 0.697438 |
689a97ddd2a81c18e1a853d2ad942b29d9f799c3 | 1,109 | package develop.odata.etl.repository.googleplaces;
import java.util.Date;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import develop.od... | 38.241379 | 113 | 0.788097 |
26e1ef3ac06c856663a7b8e5468c2f3a5427db8a | 663 | package com.lvsrobot.http.commands;
import com.lvsrobot.http.ExampleCommAdapter;
import org.opentcs.drivers.vehicle.AdapterCommand;
import org.opentcs.drivers.vehicle.VehicleCommAdapter;
public class SetPauseVehicle implements AdapterCommand {
private final boolean paused;
public SetPauseVehicle(boolean pau... | 27.625 | 77 | 0.746606 |
f5d52cca2653282a8ad0fe8aeffe6a90c95e4fef | 6,502 | package com.orctom.jenkins.plugin.buildtimestamp;
import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Descriptor;
import hudson.tasks.BuildWrapper;
import hudson.tasks.BuildWrapperDescriptor;
import hudson.util.ComboBoxModel;
import hudson.util.FormValidation;
import net.sf.json.JSONArray... | 30.24186 | 124 | 0.724392 |
4952aa3f2bdaa0b48cdeb4ef9a5af9f0f1588fbe | 13,657 | /*
* Copyright 2008-2016 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
*
* Unl... | 37.936111 | 173 | 0.576701 |
5d0946e0172b3aed6c90429349e918e86b8ea0f7 | 489 | package com.example.zju.markmark;
import android.graphics.PointF;
/**
* Created by 本 on 2017-11-27.
*/
public class Bang {
private PointF mOrigin;
private PointF mCurrent;
public Bang(PointF origin) {
mOrigin = origin;
mCurrent = origin;
}
public PointF getCurrent() {
... | 15.774194 | 44 | 0.609407 |
b9deb13582b063da9fec7d06110a08b57c6b1048 | 809 | package ru.greenpix.civilization.buildings.wonders;
import org.bukkit.Location;
import ru.greenpix.civilization.buildings.Structure;
import ru.greenpix.civilization.buildings.Style;
import ru.greenpix.civilization.buildings.common.Cottage;
import ru.greenpix.civilization.objects.Town;
import ru.greenpix.mysql.api.Res... | 26.966667 | 102 | 0.76267 |
64bc0a746d139914e8ec1289f4a011ce90a4222c | 803 | package reposense.git;
import java.nio.file.Paths;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reposense.git.exception.GitBranchException;
import reposense.template.GitTestTemplate;
public class GitRevParseTest extends GitTestTemplate {
@Test
public void assertBranchE... | 30.884615 | 102 | 0.753425 |
ee0137064c768b398aedbb81857fb59e45cf50e7 | 3,196 | /*
* Copyright 2000-2016 Vaadin 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 33.642105 | 80 | 0.668023 |
d98f861bc9aa8f489b6a579c71daa02e4dcabbc4 | 3,421 | /*******************************************************************************
* Copyright (c) 2011 GigaSpaces Technologies Ltd. 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 th... | 27.368 | 99 | 0.646595 |
015c8edd1db1bc0a3bf495670ed434828f1129cf | 8,806 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test.proto
package com.example.mentor.proto;
/**
* <pre>
* The request message containing the user's name.
* </pre>
*
* Protobuf type {@code GrpcService.GetPictureRequest}
*/
public final class GetPictureRequest extends
com.google.proto... | 32.614815 | 109 | 0.671701 |
b3fdf7795bb016127faf004d71fe19b2e0a62594 | 4,926 | // Copyright 2017 The Nomulus Authors. 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 a... | 42.102564 | 97 | 0.72026 |
935e8cc09984db0be2307f346e9be2dc81555941 | 288 | package fr.pizzeria.admin.metier;
public enum PizzaEventType {
CREATE("Create"), UPDATE("Update"), DELETE("Delete");
private String name = "";
/**
* @param name
*/
PizzaEventType(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
| 14.4 | 54 | 0.652778 |
7087cbd9a5a8eb083d81b4d56d35b3944d942282 | 198 | package solid.openclosed.after;
import java.math.BigDecimal;
public class ContractorEmployee implements Employee {
@Override
public BigDecimal getSalary() {
return null;
}
}
| 15.230769 | 53 | 0.712121 |
919f85f01d8d318017a07caf4e77fe38e37110fd | 11,814 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 52.977578 | 139 | 0.726426 |
a1280ecf9bc8d4d77686f39ef457baaa1fec3e5d | 4,306 | package xmminer.xmserver.xmgraph.xmdnode.xmdatamanage;
import java.util.*;
import java.util.Vector;
import xmminer.xmlib.xmfileprocess.*;
import xmminer.xmlib.xmtable.*;
public class CXMCalculateMetaDataManager
{
private CXMMetaDataReader cdr;
private CXMMetaDataSaver cds;
private String project;
priv... | 30.978417 | 130 | 0.588017 |
fb1cd8d736a920c8a5d068be84354da49fd15c3d | 4,073 | package com.github.sardine;
import com.github.sardine.model.Principal;
import javax.xml.namespace.QName;
public class DavPrincipal
{
public static final String KEY_SELF = "self";
public static final String KEY_UNAUTHENTICATED = "unauthenticated";
public static final String KEY_AUTHENTICATED = "authenticated";
pu... | 25.298137 | 151 | 0.690646 |
01e00fe8ba34d5e687975e27e545c0c4a57d53f3 | 1,323 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.test;
import com.yahoo.jdisc.application.OsgiFramework;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import java.util.Collection;
import java.util.Collections;... | 22.05 | 104 | 0.694633 |
1f7259cb67cad2aa72449ab8ffcf477043c6a22c | 3,371 | package com.bindstone.transport.service;
import com.bindstone.transport.repository.TransportRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stre... | 35.114583 | 126 | 0.605458 |
d330d0eb3f1132b064d1f0a234ef6890f116202c | 13,825 | package com.carpediem.homer.funswitch;
import android.animation.Animator;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import an... | 33.968059 | 122 | 0.638481 |
0c95d3ba08a91cf304ab8279fe59dd0115ec7d5f | 659 | package fr.syncrase.ecosyst.domain;
import static org.assertj.core.api.Assertions.assertThat;
import fr.syncrase.ecosyst.web.rest.TestUtil;
import org.junit.jupiter.api.Test;
class PlanteTest {
@Test
void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(Plante.class);
Plante plant... | 27.458333 | 57 | 0.6783 |
4e8fe3877acedd27a7e94cd8f1a2c3ab18a73f56 | 1,003 | package cn.smallmartial.demo.web;
import cn.smallmartial.demo.annotation.AutoIdempotent;
import cn.smallmartial.demo.service.TokenService;
import cn.smallmartial.demo.utils.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframewo... | 27.108108 | 62 | 0.749751 |
dbc2eb24c8d3afe7b7c544ded77f5259b2504d97 | 3,661 | /*
* Copyright (C) 2017 Julien Viet
*
* 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 ... | 29.524194 | 110 | 0.643813 |
9bb2b97b8c889ff7a9f939cc403976e9727982e3 | 676 | package org.aion.avm.core.miscvisitors.interfaceVisitor;
public class ClassWithMultipleFieldSuffix {
interface InnerInterface {
int a = 1;
String b = "abc";
Object c = new Object();
class FIELDS{ }
class FIELDS0{ }
class FIELDS1{ }
class FIELDS2{ }
c... | 23.310345 | 56 | 0.538462 |
f233658ffe5799f81118faa929728a0ac2f8c89a | 41,218 | import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Random;
import java.util.Scanner;
import java.util.TreeMap... | 28.173616 | 118 | 0.430249 |
37344361ff276860a029dcacbc741e0f5d8ed94c | 897 | package org.symly.cli.validation;
import java.util.Collection;
import java.util.Optional;
import java.util.function.BooleanSupplier;
import java.util.function.Predicate;
public interface Constraint {
Optional<String> violation();
static Constraint of(String constraint, BooleanSupplier validator) {
r... | 32.035714 | 107 | 0.665552 |
ad84752531838822c122b2d192523e0c6da5b404 | 6,362 | package com.skjanyou.javafx.inter.impl;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Set;
import com.skjanyou.javafx.anno.FxAnnotation.FxController;
import com.skjanyou.javafx.anno.FxAnnotation.FxDecorator;
import com.skjanyou.javafx.anno.FxAnnotation.ResponsiveBean;
import com.skjanyo... | 32.963731 | 158 | 0.718485 |
718b103912a606a255075bf50f3d994bca3be784 | 6,710 | /**
* generated by Xtext 2.13.0
*/
package io.typefox.xtext.langserver.example.myDsl.impl;
import io.typefox.xtext.langserver.example.myDsl.MyDslPackage;
import io.typefox.xtext.langserver.example.myDsl.exclude_attributes_definition;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.E... | 28.553191 | 174 | 0.684054 |
5877fc796b0e82279ce1735edfaf611e47a9841c | 180 | package net.opengrabeso.glg2d.examples;
public class LWJGLG2DExample {
public static void main(String[] args) {
LWJGLExampleFactory.display(new G2DExample());
}
}
| 22.5 | 54 | 0.716667 |
e3941f2a8e59c47e2ddbdb46e08d6d26850acf38 | 11,029 | package com.gymnast.view.home.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.Fra... | 39.530466 | 186 | 0.673769 |
1a9e065f4d888ed479bb226ffd65a77d5665a4f7 | 2,776 | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | 37.513514 | 94 | 0.661383 |
8f6fa8fe7820a7b7a93063df2a3c08f31a6a7e7d | 828 | package ca.gc.aafc.seqdb.api.testsupport.factories;
import java.util.UUID;
import ca.gc.aafc.seqdb.api.entities.sanger.PcrBatchItem;
public class PcrBatchItemFactory implements TestableEntityFactory<PcrBatchItem> {
@Override
public PcrBatchItem getEntityInstance() {
return newPcrBatchItem().build();
}
... | 26.709677 | 99 | 0.705314 |
87ee44b0593e3a6417e53aa29ce43c96651177e8 | 585 | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.core.util;
/**
* Represents a predicate (boolean-valued function) of one argument.
*
* @param <T> the type of the input to the predicate
*/
public interfac... | 22.5 | 72 | 0.651282 |
c3f505bc2b9292c9c1a879a454e9d1fe6536af12 | 313 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.coviam.t3login.service;
import com.coviam.t3login.dto.AccessTokenDTO;
import com.coviam.t3login.entity.Login;
public interface GoogleService {
Login getGmailDetails(AccessTokenDTO var1);
}
| 22.357143 | 60 | 0.779553 |
0c71dde758ede81199bd86bd10de6359ea955417 | 6,079 | /*
* 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 ... | 41.074324 | 100 | 0.734331 |
9ddf9f5293002d5f5da1f7a64c93a439ee8ea01c | 2,488 | /*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 28.930233 | 85 | 0.764469 |
3aab9fcd4ae6bdcc83ec7aebbaea60da504e19f4 | 2,102 | /*-
* -\-\-
* FastForward Core
* --
* Copyright (C) 2016 - 2018 Spotify AB
* --
* 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
*... | 32.84375 | 95 | 0.724072 |
e7673ac9c8298dda81bf885f163ac7bd18dc283f | 1,769 | package com.boyscouts.util.schedule;
/*
* Tim Cutler
*/
public class Slot
{
/**
*
* @uml.property name="race"
*/
private int race = -1;
/**
*
* @uml.property name="track"
*/
private int track = -1;
public static final Player empty = new Player();
public static ... | 16.847619 | 97 | 0.554551 |
87adc9d2de7cf2c56fc147713995bd43f8f71eaa | 2,724 | package org.jnd.microservices.sso.controller;
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.http.*;
import org.springframework.web.bind.annotation.*;
import or... | 30.954545 | 152 | 0.640602 |
c653683b955be28f892781783bc47d97a1181303 | 24,292 | /*
* 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
* dis... | 39.307443 | 136 | 0.69208 |
6c5bd8a774dbefa4688b5da29b3125969cd96e52 | 3,521 | /*
* Copyright 2020 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 37.457447 | 111 | 0.724226 |
438e060e4c9d12ec003b6f9fa6b657f76e267898 | 1,029 | package de.daxu.swamp.api.containertemplate.dto;
import de.daxu.swamp.common.ValueObject;
public class PortMappingDTO extends ValueObject {
private Integer internal;
private Integer external;
@SuppressWarnings("unused")
private PortMappingDTO() {
}
private PortMappingDTO(Integer internal, I... | 21.893617 | 64 | 0.62585 |
4122e65fa40d2f14dcacc8f4686e243b39cca975 | 2,416 | // Copyright (C) 2005, Free Software Foundation, Inc.
//
// This file is part of Mauve.
//
// Mauve is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.... | 29.82716 | 73 | 0.633692 |
16884c274229028aef99d4cd82796064e6555c35 | 474 | package com.rbinternational.awstools.awsjwtvalidator;
import io.jsonwebtoken.io.Encoders;
import java.net.URL;
import java.security.PublicKey;
public class MockPublicKeyReader implements PublicKeyReader {
private PublicKey publicKey;
public MockPublicKeyReader(PublicKey publicKey) {
this.publicKey ... | 21.545455 | 67 | 0.746835 |
a11924ee26bc27137d68ce848027c882ed15bc44 | 1,444 | package com.winston.aop.annotation;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Enab... | 26.740741 | 95 | 0.700831 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.