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 |
|---|---|---|---|---|---|
57314025ed559b75a604dccae38a4c420fe2e50f | 4,463 | package com.catenax.tdm.sampledata;
import java.util.ArrayList;
import java.util.List;
import com.catenax.tdm.model.v1.BusinessPartner;
import com.catenax.tdm.model.v1.MemberCompany;
import com.catenax.tdm.model.v1.MemberCompanyRole;
public class InitialSampleData {
public static class BPMC {
private BusinessPa... | 40.207207 | 157 | 0.762268 |
9e4f517d8d0587de8b4e7ffbbae3c9bd583d0751 | 2,078 | package com.tumblr.backboard.example;
import android.annotation.SuppressLint;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import com.facebook.rebound.Spring;
import com.facebook.rebo... | 26.641026 | 84 | 0.714629 |
5013938d8545c235fcda2e0f582a40bd6a489968 | 5,591 | package com.example.betterweather;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;
import android.widget.LinearLayout;
import android.widget.Te... | 41.723881 | 141 | 0.682168 |
cd4ec57470ce16f7516d3e03367ad0a1f5b9ac81 | 2,051 | /*
* Copyright 2015 Adaptris 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 agree... | 36.625 | 127 | 0.744027 |
08d728add6bbcd087207e402bc7f0f0b2a309e6c | 1,575 | package redis.manager.controller.operation.panel;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Modality;
import javafx.stage.Stage;
import redis.manager.controller.ConnectController;
import java.io.IOException;
/**
* 连接属性面板.
* User: huang
* Da... | 23.863636 | 85 | 0.634286 |
0a9ba52bad8494dd4875f6e4d176430e37f9258a | 3,606 | package com.linuxtek.kona.app.util;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.linuxtek.kona.app.comm.entity.KEmailAddress;
import com... | 25.216783 | 84 | 0.584027 |
f4155ebebdc025348973097eb1d20b27de5b12c0 | 185 | package cast_in;
public class TestReturnValue4 {
Integer foo() {
return 1 + 1;
}
void x() {
/*]*/
int a = /*[*/
foo().intValue();
}
}
| 12.333333 | 31 | 0.427027 |
bebb5c46b463f7405f42a54bcb79a2225de21fa7 | 3,606 | package com.crc.service;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import com.crc.constants.Constants;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.gson.JsonArray;
imp... | 27.738462 | 156 | 0.695507 |
f6117c554d424ba19a74978162d0e84cadaca6cc | 2,604 | package net.canarymod.api.entity;
import net.canarymod.api.inventory.CanaryItem;
import net.canarymod.api.inventory.Item;
/**
* EntityItem wrapper implementation
*
* @author Jason (darkdiplomat)
*/
public class CanaryEntityItem extends CanaryEntity implements EntityItem {
/**
* Constructs a new wrapper ... | 17.714286 | 74 | 0.530722 |
545a71cb931a7d5814cef00b45c56b23ed33a6e5 | 1,923 | package co.com.ingenesys.utils;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.widget.CalendarView;
import android.widget.DatePicker;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.... | 33.736842 | 107 | 0.685907 |
5d3e7de863c313afd523d8e52314124268e6fc5d | 802 | package me.zhyd.oauth.enums.scope;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* Stackoverflow 平台 OAuth 授权范围
*
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0.0
* @since 1.0.0
*/
@Getter
@AllArgsConstructor
public enum AuthStackoverflowScope implements AuthScope {
/**
... | 26.733333 | 103 | 0.710723 |
c671bb70fad1ae69213da16046821a3c66ec0a7e | 599 | package inheritance;
public class Main {
public static void main(String[] args) {
IndividualCustomer yasin = new IndividualCustomer();
yasin.customerNumber = "12345";
CorporateCustomer zrBey = new CorporateCustomer();
zrBey.customerNumber = "54321";
Customer ali = new RetiredCustomer();
ali.customerNum... | 23.038462 | 60 | 0.712855 |
1c687fd3be873eb0ffdbc771e0e3dc4a01a8d5d9 | 2,687 | package com.gitlab.pedrioko.spring.beans;
import com.gitlab.pedrioko.config.AppInfo;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.apache.commons.configuration2.builder.FileBasedConfigurationBuilder;
import org.apache.commons.configuration2.builder.fluent.Parameters;
import org.apache.co... | 37.84507 | 116 | 0.681057 |
4278aecfcb80565045a6801d2776fab0e954b716 | 3,152 | package com.uddernetworks.lak.sounds.modulation;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jsyn.Synthesizer;
import com.jsyn.unitgen.VariableRateDataReader;
import com.uddernetworks.lak.sounds.SoundVariant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.sound.sampled.AudioF... | 29.185185 | 147 | 0.688769 |
a3415855d0118657c5b63f79a19c601bcd733b33 | 441 | package com.kent.gumiho.sql.dialect.ppas.ast.clause;
import com.kent.gumiho.sql.basic.ast.AbstractSQLObject;
import com.kent.gumiho.sql.basic.visitor.SQLVisitor;
import lombok.Getter;
import lombok.Setter;
/**
* @author kongtong.ouyang on 2018/2/8.
*/
@Setter
@Getter
public class SQLCallSpec extends AbstractSQLObje... | 18.375 | 55 | 0.755102 |
df7afb5f5c34056c39779bcdf031b729b5c3ce8a | 172 | package com.github.chenqimiao.component;
/**
* @Auther: chenqimiao
* @Date: 2019/11/3 20:41
* @Description:
*/
public interface IndexService {
void getIndex();
}
| 14.333333 | 40 | 0.674419 |
dc863591d10811ab5d97e5d9dbc806232104eb4f | 3,216 | /**
* Copyright (c) 2018-2019, Jie Li 李杰 (mqgnsds@163.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requ... | 33.5 | 108 | 0.666356 |
c164b5111a624f79c27e515c5a0f2c8c25bdc73e | 129 | package dev.wearkit.core.common;
import android.graphics.Bitmap;
public interface Stampable {
void stamp(Bitmap bitmap);
}
| 16.125 | 32 | 0.767442 |
f298f5c3305f85305bc160a72cbf16d5c515ce60 | 3,580 | /*
* The MIT License
*
* Copyright 2019 WildBees Labs, Inc.
*
* 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, co... | 36.161616 | 105 | 0.718715 |
66986779716d8c614765a9950921666bee3db23f | 1,799 | package com.gmail.willramanand.RamMMO.item.items.tools;
import com.gmail.willramanand.RamMMO.RamMMO;
import com.gmail.willramanand.RamMMO.item.Item;
import com.gmail.willramanand.RamMMO.item.ItemManager;
import com.gmail.willramanand.RamMMO.item.ItemRarity;
import com.gmail.willramanand.RamMMO.item.items.BaseItem;
imp... | 35.98 | 126 | 0.734853 |
b16e50574f81733bfa4af8ffcdcbe5e0ba683b8a | 2,683 | package scipts.postanalysis;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import model.Experiment;
import model.PSM;
import model.Peptide;
import model.Protein;
import model.ProteinGroup;
i... | 28.542553 | 142 | 0.576966 |
5dd30adad63db07485582e8142b86d706308e7f2 | 779 | package com.repomgr.repomanager.ui;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class UiErrorController implements ErrorController {
@GetMapping(value = "/error")... | 28.851852 | 86 | 0.709884 |
ef63bf99d946d026f4be8b3df49af4227e6b2569 | 1,235 | package com.montealegreluis.servicebuses.querybus.locator;
import com.montealegreluis.servicebuses.ReflectionsActionMapper;
import com.montealegreluis.servicebuses.querybus.Query;
import com.montealegreluis.servicebuses.querybus.QueryHandler;
import com.montealegreluis.servicebuses.querybus.Response;
import java.util.... | 37.424242 | 83 | 0.760324 |
2f24aab9f257c852ad830eec70577978bdca3f27 | 11,386 | package com.weique.overhaul.v2.mvp.presenter;
import android.app.Activity;
import android.app.Application;
import com.google.gson.Gson;
import com.jess.arms.di.scope.ActivityScope;
import com.jess.arms.http.imageloader.ImageLoader;
import com.jess.arms.integration.AppManager;
import com.jess.arms.integration.IReposit... | 36.610932 | 137 | 0.60996 |
bfae7723f1017b5e39bbcf00a95f68fd70bbedc6 | 9,449 | package de.metas.handlingunits.attribute.storage.impl;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program 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, e... | 35.927757 | 172 | 0.79437 |
5c456428e49ab73d71bb2cc4d153da1d4c7864a4 | 572 | package nl.knmi.geoweb.backend.product.sigmetairmet;
public enum SigmetAirmetDirection {
N(0),NNE(22.5),NE(45),ENE(67.5),E(90),ESE(112.5),SE(135),SSE(157.5),S(180),SSW(202.5),SW(225),WSW(247.5),W(270),WNW(292.5),NW(315),NNW(337.5);
public static SigmetAirmetDirection getDirection(String dir) {
for (SigmetAirmet... | 27.238095 | 144 | 0.685315 |
46672219c65b9dbaef0c41fb3fab58e62fbdd7cd | 1,042 | package io.undertow.servlet;
import org.jboss.logging.Logger;
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;
/**
* Annotation that can be applied to exceptions to ... | 26.717949 | 94 | 0.726488 |
43013a0fa9f22e3319a2c977009a0ae7246e2e43 | 1,260 | package com.atlassian.plugin.connect.testsupport.filter;
import com.atlassian.sal.api.user.UserManager;
import javax.servlet.FilterChain;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Record all requests to the fake add-on servlet, thr... | 39.375 | 138 | 0.769048 |
5d493955ad632059516ea7b34b1d9eb3bd1ddeb9 | 4,323 | package com.nepxion.thunder.common.container;
/**
* <p>Title: Nepxion Thunder</p>
* <p>Description: Nepxion Thunder For Distribution</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import java.util.List;
import com.nepxion.thunder.cluster.consis... | 29.408163 | 96 | 0.757113 |
066d40203cad848ce1c728862fbcf9f874f923f4 | 339 | package com.epam.training.microservice.service.pharmacies.service.load;
import com.google.common.collect.Lists;
import lombok.Data;
import java.util.Collection;
@Data
public class PharmacyLoadModel {
private String name;
private String address;
private Collection<PharmacyAvailableLoadModel> drugs = Lists... | 24.214286 | 80 | 0.79351 |
9d68a8e1dcf4f88396031cd6472f1b4cb7a45752 | 321 | package cz.tacr.elza.repository;
import cz.tacr.elza.domain.ArrRequestQueueItem;
import org.springframework.stereotype.Repository;
/**
* @author Martin Šlapa
* @since 12.12.2016
*/
@Repository
public interface RequestQueueItemRepositoryCustom {
ArrRequestQueueItem findNext(final Integer externalSystemId);
}... | 18.882353 | 65 | 0.791277 |
48dc83b3c689a868597242546bd8892a1a2f5eed | 9,906 | package com.example.bell_hangma;
/**
* This is an android hangman game, uses shared preferences on the device to keep the score
* This program filters keyboard input to only accept letters, and will convert to lowercase
* a reveal word button has been added for testing. at the end of each game, there is a 2 second ... | 36.021818 | 159 | 0.529679 |
4363eb2fe6953b2f9a7bcdeb4eecf420bb7778d7 | 1,365 | /* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.uccollaborationlib.impl;
import com.wilutions.com.*;
@SuppressWarnings("all")
@CoClass(guid="{1E4A4ED6-E300-9A93-0704-DB26E6B2805E}")
public class IModalityActionAvailabilityChangedEventDataImpl extends Dispatch implements com.wilutions.msli... | 48.75 | 174 | 0.76337 |
d1c37f591b02d817e71b28093fd7c08cb8148283 | 3,970 | package squire.Networking;
import squire.Users.Project;
import squire.Users.ProjectFile;
import squire.Users.Session;
import squire.Users.User;
import java.util.ArrayList;
/**
* The request handler dealing with all things Users
*/
@Route("project/")
class ProjectRequestHandler {
@Route("addProject")
static... | 33.644068 | 107 | 0.593955 |
80b2cc1052152ba42920fad8a0544d7bb8efc3a2 | 3,317 | package thredds.catalog2.simpleImpl;
import org.junit.Test;
import static org.junit.Assert.*;
import thredds.catalog2.builder.BuilderIssues;
import thredds.catalog2.builder.ThreddsMetadataBuilder;
import java.util.List;
/**
* _more_
*
* @author edavis
* @since 4.0
*/
public class VariableGroupTest
{
@Test
... | 32.203883 | 105 | 0.746156 |
f7564b7614aab1d1ebacfa5fae7fcac51a056df3 | 1,757 | /*
* Copyright © 2016 Cask Data, 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 t... | 33.788462 | 87 | 0.737052 |
4cfda404c0adf8588badb33bdcd36cccfbb62c3e | 3,347 | //The MIT License (MIT)
//
//Copyright (c) 2014 - Mathieu Nayrolles
//
//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, c... | 27.661157 | 96 | 0.66836 |
29a32102597b75391c225ebafa0da1e3b5ba4ec7 | 3,841 | /*
* Copyright 2020 Shinya Mochida
*
* Licensed under the Apache License,Version2.0(the"License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 24.00625 | 103 | 0.608435 |
8080b2208033e13adb6c707be2555763b5e03444 | 1,434 | package com.tangxiaolv.simple;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.tangxiaolv.router.AndroidRouter;
import com.tangxiaolv.route... | 30.510638 | 96 | 0.671548 |
701db4ae775c72c11fda4faa98455d2c26fd9726 | 2,252 | /*
* Copyright © 2017 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | 23.216495 | 78 | 0.713588 |
faa40004a530543db0b37ffd5903c67d8f0b9543 | 2,463 | package com.utility;
import java.util.Map;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;
import com.action.AbstractAc... | 20.525 | 119 | 0.707268 |
55e63a9150cd95686f1f60ad490dfab8ad854760 | 5,245 | package com.huaweicloud.sdk.cloudtest.v1;
import com.huaweicloud.sdk.core.HcClient;
import com.huaweicloud.sdk.core.ClientBuilder;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
import com.huaweicloud.sdk.cloudtest.v1.model.*;
public class CloudtestAsyncClient {
protected HcCl... | 31.787879 | 123 | 0.726787 |
8a9fe8c72c3a68612bd6fd0bf5b170f5b901048b | 795 | package de.hpi.isg.mdms.java.fk.feature;
import de.hpi.isg.mdms.java.fk.Dataset;
import de.hpi.isg.mdms.java.fk.Instance;
import java.util.Collection;
/**
* Super class for various feature classes.
* @author Lan Jiang
*/
abstract public class Feature implements FeatureUpdate {
protected String featureName;
... | 19.875 | 58 | 0.664151 |
47f0353014ab8c5c4cf94f9dc9fe7d4db6c8cb6c | 928 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 42.181818 | 118 | 0.642241 |
33ce1f8a48e16529616176a2e3679d69c1f091d3 | 2,661 | /*
* Copyright 2017 Hewlett-Packard Development Company, L.P.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 42.919355 | 180 | 0.730552 |
46550ba3995bcedee8bc2276d56be83b54d5a593 | 626 | package com.stylefeng.guns.rest.persistence.dao;
import com.stylefeng.guns.rest.persistence.model.MtimeFieldT;
import com.stylefeng.guns.rest.persistence.model.MtimeHallFilmInfoT;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.rest.vo.fields.FilmVo;
import org.apache.ibatis.annotations.Pa... | 24.076923 | 82 | 0.779553 |
2f5e92a1a105744edf988e92a848ea529debe344 | 2,268 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.alcatel.as.util.sctp;
/**
* The different options to that we can get/set </br>
* Each options returns/takes a different class: </br>
SCTP_STATUS (only get): sctp_status </br>
SCTP_D... | 31.5 | 59 | 0.745591 |
d1bf1d391f5a68288e72fd4612d9440f9ba449a0 | 695 |
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
/**
* The purpose of the this class is to provide a method that
* enables you to create an alert in a few of lines
*/
public class CustomAlert {
//Instance Variable Section
private Alert alert;
//Default ... | 26.730769 | 77 | 0.648921 |
c1bb24c8f26253efe1bca120fa33d496b606d284 | 1,671 | package com.bingoogol.smartbulb.ui.sub;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.bingoogol.smartbulb.App;
import com.bingoogol.smartbulb.... | 26.109375 | 82 | 0.767804 |
164998b211b1ce156dd2609e8e60b2e14a205f06 | 1,893 | /*
* Copyright 1999-2021 Seata.io Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 32.084746 | 111 | 0.696778 |
76058b9e963b415b7487d7b9677646c5ae1c957f | 7,417 | /*
* Copyright 2020 Confluent Inc.
*
* Licensed under the Confluent 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://www.confluent.io/confluent-community-license
*
* Unless required by applicable law or a... | 38.035897 | 100 | 0.735473 |
030ddd101768d00aedf83abfa02e127abfa81c14 | 485 | package org.telegram.ui.Components;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
public class HideViewAfterAnimation extends AnimatorListenerAdapter {
private final View view;
public HideViewAfterAnimation(View view) {
this.view = view... | 23.095238 | 69 | 0.740206 |
83aef8a140aa9c4aa9c4e3b750521f972471898e | 1,224 | package jadx.tests.integration.loops;
import jadx.core.dex.nodes.ClassNode;
import jadx.tests.api.IntegrationTest;
import java.lang.reflect.Method;
import org.junit.Test;
import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTha... | 24.979592 | 67 | 0.676471 |
efc579acd0671e262b1c90a9667d46457754de89 | 1,823 | package softuni.realestateapp.web.controllers;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
impo... | 28.936508 | 100 | 0.704882 |
25fcbc9154f6fd253ef5c32258129b9121d0abad | 6,500 | package cn.yiya.shiji.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.R... | 36.931818 | 133 | 0.545846 |
ec970c16c5cf8824fa93aeb4becbcce90267cccf | 1,816 | /*
* Copyright (C) 2011-2016 Rinde van Lon, iMinds-DistriNet, KU Leuven
*
* 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... | 31.859649 | 80 | 0.69989 |
9cb6b8e3fcb8163a47d23d4497d799670cf136c6 | 5,875 | /*
* Copyright 2018. Gatekeeper Contributors
*
* 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 a... | 53.409091 | 188 | 0.711319 |
07fda4984d66187a3459b8f4171a743b65ba02ed | 874 | package net.sf.jmoney.model;
/**
* An implementation of the Category interface
*/
public class SimpleCategory extends AbstractCategory {
private String categoryName;
private String fullCategoryName = null;
public SimpleCategory() {
}
public SimpleCategory(String aCategoryName) {
setCategoryName(aCategoryN... | 20.809524 | 57 | 0.709382 |
73f41bb1dda105526e7deb1c0bc2f5cfc46d4e7e | 4,660 | package com.ysyx.commons.wx.requests.stat.respbeans;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.List;
/**
* statisic data of article total.
*
* @author duanbn
*
*/
public class ArticleTotal {
@JsonProperty("list")
private List<Article> list;
/**
*
* @return
*/
public Lis... | 14.793651 | 63 | 0.612446 |
9b01a078d31367a7528f5dee9b89a5a587b9825f | 2,541 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | 37.925373 | 100 | 0.637151 |
2ecb8f1f667151644d43c0ef45c6bd3bbd805752 | 8,555 | /*
* Copyright (c) 2017 Antony Esik
*
* 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... | 39.243119 | 133 | 0.696435 |
5c12ee77ea94968a0dcb6d035e6910d6067ef985 | 2,609 | package com.langworthytech.simplebillingsystem.account.dto;
import javax.persistence.Column;
public class AccountViewResponse {
private Long id;
private String company;
private String address;
private String city;
private String state;
private String zip;
private String phone;
... | 19.183824 | 59 | 0.517056 |
fedd39bda1b46de93b2f732916fc889725a555c4 | 1,539 | package gov.nara.nwts.ftappImg.stats;
import gov.nara.nwts.ftapp.stats.Stats;
import gov.nara.nwts.ftappImg.tags.ImageTags.TAGS;
import gov.nara.nwts.ftappImg.tags.ImageTags.TAGLOC;
import gov.nara.nwts.ftappImg.tags.ImageTags.TAGTYPE;
import gov.nara.nwts.ftappImg.tags.ImageTags.NARAREQ;
import gov.nara.nwts.ftappImg... | 32.0625 | 174 | 0.723847 |
dfcaa1117cccfafa6a87c2b57c180959e8964244 | 1,128 |
public class CeaserCipher {
private String text;
private int key;
public CeaserCipher(String text, int key) {
this.text = text;
this.key = key;
}
public String getText() {
return text;
}
public int getKey() {
return key;
}
public static String enc... | 22.117647 | 66 | 0.487589 |
02003e24a2a9e12ee9bd6b82dea9078f4830f492 | 794 | package gov.nasa.pds.common;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.springframework.beans.factory.config.ListFactoryBean;
import org.springframework.core.io.Resource;
public class ResourceListFactoryBean extends ListFactoryBean {
public... | 27.37931 | 67 | 0.654912 |
3a994661e8fa610e5b0867c1da5bde1e1864caee | 2,595 | package com.example.mongodb.demo.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springf... | 30.529412 | 117 | 0.764547 |
8da19f4d8e579a2417f860a1bda02d31d8ad665c | 2,349 | package org.finos.springbot.teams.templating;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Collection;
import org.finos.springbot.workflow.templating.AbstractComplexTypeConverter;
import org.finos.springbot.workflow.templating.Rendering;
i... | 34.043478 | 143 | 0.719881 |
12846429287d97b1abe9eaa76ca2c7f0c7e69c65 | 1,304 | package com.newer.kt.Refactor.ui.Avtivity.Settings;
import android.os.Bundle;
import android.os.Message;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.frame.app.base.activity.BaseActivity;
import com.newer.kt.R;
import butterknife.Bind;
import butterk... | 19.757576 | 58 | 0.695552 |
805ab3dbbb1b54b446e3d17e064441b6b36bf033 | 6,982 | /*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates.
* Copyright (c) 2013, Regents of the University of California
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistr... | 41.070588 | 104 | 0.675021 |
b99cc4c972c3f5929b9e7b9ba8814c0ca756e88b | 5,236 | // Generated from graphql_java_gen gem
package de.florianbeetz.ma.graphql.client;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.shopify.graphql.support.AbstractResponse;
import com.shopify.graphql.support.Arguments;
i... | 27.270833 | 95 | 0.526165 |
a4a0f7217391c968204edf7a851102ccb0559173 | 1,595 | /*******************************************************************************
* Copyright (c) 2000, 2011 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... | 37.97619 | 117 | 0.633229 |
31ff2b6579dfa4891879e0de8dce739e936b6de0 | 1,413 | package com.github.vfyjxf.nee.processor;
import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.IRecipeHandler;
import java.util.*;
/**
* @author vfyjxf
*/
public class BloodMagicRecipeProcessor implements IRecipeProcessor {
@Override
public Set<String> getAllOverlayIdentifier() {
re... | 28.836735 | 109 | 0.632696 |
8edc2ded5e338571e79229ccaeda642861455e91 | 12,232 | /*
* 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 ... | 48.733068 | 123 | 0.697433 |
f64a628ac41c5c8258cf2bcfeaa4241076acd0c3 | 1,600 | package com.quancheng.saluki.gateway.oauth2.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.La... | 33.333333 | 98 | 0.78625 |
8a656d1c8f39dea363cd563fff4b9c04bbd8d050 | 751 | package io.github.talelin.latticy.service.impl;
import io.github.talelin.latticy.common.constant.IdentityConstant;
import io.github.talelin.core.util.EncryptUtil;
import io.github.talelin.latticy.model.UserIdentityDO;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.... | 34.136364 | 66 | 0.846871 |
991e8293974f128403eccd4995886dfa72fdfac8 | 2,258 |
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReque... | 37.633333 | 90 | 0.705049 |
bc7372f7fd7eb9dd596784d3367898f5ef2ed16c | 1,365 | package top.chenqwwq.leetcode.topic.tree._124;
import top.chenqwwq.leetcode.common.TreeNode;
/**
* 124. 二叉树中的最大路径和
* 路径 被定义为一条从树中任意节点出发,沿父节点-子节点连接,达到任意节点的序列。同一个节点在一条路径序列中 至多出现一次 。该路径 至少包含一个 节点,且不一定经过根节点。
* <p>
* 路径和 是路径中各节点值的总和。
* <p>
* 给你一个二叉树的根节点 root ,返回其 最大路径和 。
* <p>
* <p>
* 示例 1:
* <p>
* <p>
* 输入:ro... | 18.958333 | 89 | 0.587546 |
c2d38da590d076a947b1188f3ddc60401926d082 | 4,039 | /*-
* Copyright (C) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | 29.057554 | 96 | 0.611785 |
5848b823e928cafcef0315f21210412d410a1335 | 823 | package com.aap.engagingchoice.utility;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* This class is for DateUtils
*/
public class DateUtils {
public static String getDate(String dateInString) {
Stri... | 28.37931 | 87 | 0.648846 |
0991d0b083fa739e1747a386ba37341ef40e89d2 | 469 | import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n;
// Random random=new Random();
// int a=random.nextInt(20);
n = sc.nextInt();
// System.out.println(a);
int[] f1=new int[n+2];
f1[1]=1;
f1[2]=1;
... | 18.76 | 41 | 0.575693 |
8dc7583397182c734e603bb5b6acedf9148f0360 | 1,526 | package net.nazarsit;
import javax.annotation.Resource;
import javax.jms.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.core.Med... | 31.791667 | 113 | 0.699869 |
42b7a76152303c182f232d005520bafd986c2d7e | 1,341 | package com.upgrad.technical.service.common;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.text.MessageFormat;
public class UnexpectedException extends RuntimeException {
private static final long serialVersionUID = 2737472949025937415L;
private final ErrorCode errorCode;
private ... | 24.833333 | 110 | 0.689784 |
c01d29c032ebdfad501cfc68700a9eb30f2335ef | 2,875 | package what.whatandroid.artist;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.ProgressBar;
import api.torr... | 30.913978 | 111 | 0.767652 |
3d8467c2e1bb808015a867b1aaf729ad4c96fd31 | 202 | package com.volna80.betfair.api.model;
/**
* (c) All rights reserved
*
* @author nikolay.volnov@gmail.com
*/
public class MarketTypes {
public static final String MATCH_ODDS = "MATCH_ODDS";
}
| 16.833333 | 57 | 0.70297 |
28eccaf8ad7e3fa6a12ed0bd6f7eb5143620578a | 4,510 | package de.st_ddt.crazyplugin.data;
import java.util.Date;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import de.st_ddt.crazyutil.ChatHeaderProvider;
import de.st_ddt.crazyutil.ChatHelper;
import de.st_ddt.crazyutil.locales.Craz... | 33.161765 | 557 | 0.758315 |
b860df1634244f9fe2cb193620e58d345715663a | 2,706 | /* */ package Util;
/* */
/* */ import Entity.UserLog;
/* */ import Entity.Users;
/* */ import java.sql.Timestamp;
/* */ import java.util.Date;
/* */ import java.util.Iterator;
/* */ import java.util.List;
/* */ import org.hibernate.HibernateException;
/* */ import org.hibernate.... | 34.253165 | 92 | 0.503695 |
ba2860568a28b0e74c38199aa89f0ec8e596ecf5 | 1,399 | /*
* Copyright 2015 Michael Quigley
*
* 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... | 27.98 | 75 | 0.70193 |
4ef34460fca389242c911b379cd777e3477fba36 | 801 | package com.himanshu.graphqlserver.datastore;
import com.himanshu.graphqlserver.domain.Person;
import com.himanshu.graphqlserver.domain.PersonAddress;
import java.util.ArrayList;
import java.util.List;
public class PersonStore {
static List<Person> personList = new ArrayList<>();
/**
* Method to creat... | 25.83871 | 128 | 0.621723 |
2a4194e9094a28f71925702107bc899f8fdb13d1 | 3,559 | package com.wangrollin.leetcode.n0_normal.p900.p990.problem999;
/**
* 可以被一步捕获的棋子数
*
* 在一个 8 x 8 的棋盘上,有一个白色的车(Rook),用字符 'R' 表示。棋盘上还可能存在空方块,白色的象(Bishop)以及黑色的卒(pawn),
* 分别用字符 '.','B' 和 'p' 表示。不难看出,大写字符表示的是白棋,小写字符表示的是黑棋。
* 车按国际象棋中的规则移动。东,西,南,北四个基本方向任选其一,然后一直向选定的方向移动,直到满足下列四个条件之一:
* - 棋手选择主动停下来。
* - 棋子因到达棋盘的边缘而停下。
... | 27.589147 | 84 | 0.33043 |
836fe0131a27af6a3d19996c7a7e4d6029193a04 | 3,562 | package com.smhu.controller;
import com.smhu.iface.IModeration;
import com.smhu.system.SystemTime;
import com.smhu.web.ModerationController;
import java.sql.Date;
import java.sql.Time;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
im... | 36.721649 | 132 | 0.652442 |
87b02c3b638f5ae27addda32ea1cc80985edfe98 | 400 | package com.delmar.sysSettings.service;
import java.util.List;
import com.delmar.core.service.CoreService;
import com.delmar.sysSettings.model.SysSettingsItemTrl;
public interface SysSettingsItemTrlService extends CoreService<SysSettingsItemTrl>{
public SysSettingsItemTrl saveOrUpdate(SysSettingsItemTrl sysSetting... | 28.571429 | 83 | 0.8525 |
154dd130ec2aca6b74b100433f5df29a9f12a32f | 3,434 | /*package red.jackf.chesttracker.compat;
import me.shedaniel.rei.api.DisplayHelper;
import me.shedaniel.rei.api.EntryStack;
import me.shedaniel.rei.api.OverlayDecider;
import me.shedaniel.rei.api.client.plugins.REIClientPlugin;
import me.shedaniel.rei.api.client.registry.screen.ExclusionZones;
import me.shedaniel.rei.... | 39.022727 | 118 | 0.682003 |
c5246e4beeff818b43b2247df304eec6bc1020b3 | 6,705 | package uk.co.optimisticpanda.atom;
import static java.util.Collections.sort;
import static org.junit.Assert.assertEquals;
import static uk.co.optimisticpanda.atom.EntryFunctions.contentHasMediaType;
import static uk.co.optimisticpanda.atom.EntryFunctions.dontHaveCategory;
import static uk.co.optimisticpanda.atom.Entr... | 50.413534 | 126 | 0.677256 |
895ae64b0ad751545972b81faf0a77a942d43597 | 1,689 | package com.gikk.twirk.types.cheer;
import java.util.Objects;
/**
*
* @author Gikkman
*/
public class CheerImpl implements Cheer{
private final static String ROOT_URL = "static-cdn.jtvnw.net/bits/<theme>/<type>/<color>/<size>";
private final int bits;
private final String message;
public CheerImpl... | 24.128571 | 101 | 0.542925 |
435d102cc10cc631a901b4b36d0682a02ea6f6fe | 1,693 | package blackbird.core.network;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import blackbird.core.Connection;
/**
* Connection implementation for communication via network sockets.
*/
public class NetworkConnection extends Connection {
... | 26.873016 | 105 | 0.652097 |
7ea1656ef9161b82641ed387faa5bd1cce768430 | 6,759 | /*******************************************************************************
* 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... | 30.863014 | 184 | 0.684273 |
9167af14ac39e42698511cf51e7a7bfbfefd3004 | 510 | package com.osrsstreamers.handler;
import lombok.*;
import java.time.ZonedDateTime;
@Data
public class NearbyPlayer {
ZonedDateTime lastSeen;
StreamStatus status;
String twitchName;
public NearbyPlayer(String twitchName) {
this.status = StreamStatus.STREAMER;
this.twitchName = twitc... | 19.615385 | 48 | 0.680392 |
4d73feb14cdfb935ac230ebc90173a740ebd92fa | 209 | package lodVader.mongodb.collections.toplinks;
public class TopValidLinks extends SuperTop {
public static String COLLECTION_NAME = "TopValidLinks";
public TopValidLinks() {
super(COLLECTION_NAME);
}
}
| 20.9 | 56 | 0.789474 |
760ed8b5124701391af901711e051e9d9c9bb771 | 1,035 | /*
* Copyright (c) 2016 PrivatBank IT <acsk@privatbank.ua>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
package ua.privatbank.cryptonite.jnr.pkix;
import jnr.ffi.Pointer;
import jnr.ffi.mapper.FromNativeContext;
import jnr.ffi.mapper.FromNativeConverter;
import ... | 32.34375 | 98 | 0.761353 |
d863896c9617d8631bad1146a3cae5f42d8833b9 | 3,632 | package cn.fulushan.fuhttp.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.... | 26.903704 | 96 | 0.633535 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.