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 |
|---|---|---|---|---|---|
fec5752d02ae957e74ae0bee2753d7856d3ffd7e | 3,582 | /*
* Copyright 2017 Apereo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 38.934783 | 91 | 0.661921 |
583ab3c3aa6b88462fb5b677d348af9bb8a7136c | 991 | package org.randomcoder.midi.mac.corefoundation;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
public class CFRange extends Structure {
public long loc;
public long len;
@Override protected List<String> getFieldOrder() {
return Arrays.asList("lo... | 18.351852 | 76 | 0.65893 |
96d37ec39d575d9e8529b08e145dd9dc168416a1 | 7,293 | // Copyright 2014 theaigames.com (developers@theaigames.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless req... | 31.986842 | 139 | 0.71027 |
e1b9c36c4821fb5fa98de1758486c4c1a092af05 | 551 |
/**
* @Title: Test.java
* @Package com.winterchen.controller
* @Description: TODO(用一句话描述该文件做什么)
* @author hemin
* @date 2020年7月3日 下午2:41:58
* @version V1.0
*/
package com.winterchen.controller;
/**
* @ClassName: Test
* @Description: TODO(这里用一句话描述这个类的作用)
... | 16.69697 | 41 | 0.548094 |
cdae9d58ab64863359affc43b7a6e3e64d6bea42 | 4,723 | import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("b")
final class class2 implements class0 {
@ObfuscatedName("es")
@ObfuscatedSignature(
signature = "Leq;"
)
@Export("urlRequester")
static UrlRequester ... | 31.072368 | 153 | 0.527207 |
92e0907b178cd7b038a278775c7f3d36b04c1197 | 249 | package in.clouthink.synergy.support.management;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
/**
*/
@Configuration
@Profile("prod")
public class MonitoringConfiguration {
}
| 19.153846 | 60 | 0.811245 |
ec798bd9ec8dc87fd391642168cab5f0da26c5eb | 489 | package com.cnews.guji.smart.ui.adapter.movie;
import com.cnews.guji.smart.R;
import com.github.library.BaseQuickAdapter;
import com.github.library.BaseViewHolder;
/**
* 获奖情况
*/
public class MovieAwardsAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
public MovieAwardsAdapter() {
super(R.layout... | 24.45 | 81 | 0.736196 |
e05572b8c9ff73bdf1aca4d81353b8ebae710e91 | 4,858 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 44.981481 | 165 | 0.728901 |
1a5b81c995b8fd76073516ed55c66f13ce435858 | 52,958 | package eu.bcvsolutions.idm.extras.sync;
import eu.bcvsolutions.idm.InitApplicationData;
import eu.bcvsolutions.idm.acc.domain.*;
import eu.bcvsolutions.idm.acc.dto.*;
import eu.bcvsolutions.idm.acc.dto.filter.*;
import eu.bcvsolutions.idm.acc.service.api.*;
import eu.bcvsolutions.idm.core.api.dto.*;
import eu.bcvsolu... | 41.797948 | 161 | 0.792232 |
2d08471fe6d7dc88a2c077c6ef63c506de7db60d | 9,182 | /*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | 49.632432 | 120 | 0.740688 |
f81daebf38b2266bebe0f0f0f0880d777cf83ca0 | 34 | non-sealed class C implements I {} | 34 | 34 | 0.764706 |
8f6c76ae11f90405e5c0b5eed3b045031eb36c53 | 10,880 | package com.wffwebdemo.wffwebdemoproject.page.template.users;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Logger;
import com.webfirmframework.wffweb.server.page.BrowserPageContext;
import com.webfirmframework.wffweb.tag.html.AbstractHtml;
import com.webfirmframework.wffweb.tag.html.Br... | 31.536232 | 89 | 0.483456 |
d884112900202048abaf6ccce91f6a3cdd0a230e | 556 | package br.com.sysagro.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import br.com.sysagro.models.Fazenda;
public interface FazendaRepository extends JpaRepository<Fazenda, Long> {
@Query("select f from Faze... | 29.263158 | 103 | 0.791367 |
8805c85b9fb00203ce55c188fcce292815011f77 | 203 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
public class RedCrater extends LinearOpMode {
@Override
public void runOpMode() {
}
}
| 16.916667 | 60 | 0.753695 |
74a5c2984f95dce36ee1f7f4ad5b293f5df61514 | 5,014 | /*
* This file is generated by jOOQ.
*/
package com.yg.gqlwfdl.dataaccess.db.tables.records;
import com.yg.gqlwfdl.dataaccess.db.tables.CompanyPartnership;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record3;
import org.jooq.Row3;
import org.jooq.impl.Updatab... | 20.979079 | 130 | 0.515756 |
71a59505f08043ba4601db5bd1f0becf96ebb777 | 5,438 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.wearable.internal;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.zzb;
import com.googl... | 32.957576 | 163 | 0.522986 |
ccfff96abf7e610cb33e34a2331e8e7465cb5ab7 | 797 | package com.example.a68.databaseapplication;
import java.io.Serializable;
public class Student implements Serializable {
private String name;
private String phone;
private String career;
public Student() {
}
public Student(String name, String phone, String career) {
this.name = nam... | 17.711111 | 62 | 0.602258 |
8773070b1b3fd55392f2f1a4916cbc7ab88b0d5a | 299 | package dtt.cms.app.common;
public class ResourceMapping {
public final static String LOGIN_PAGE_URL = "/login";
public final static String LOGIN_PAGE_RESOURCE = "login/index";
public static final String HOME_PAGE_URL = "/";
public static final String HOME_PAGE_RESOURCE = "/home/index";
}
| 27.181818 | 64 | 0.762542 |
dca0025f54bb78681bf2e1216c2adbe3d93d281d | 2,903 | package com.ibm.fsd.sba.training.repository;
import com.ibm.fsd.sba.training.entity.Trainings;
import com.ibm.fsd.sba.training.model.TrainingsDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
... | 39.22973 | 105 | 0.495005 |
f107dc8438984a815168d5f596aa9c029efa27db | 923 | package com.builtbroken.atomic.config.mods;
import net.minecraftforge.common.config.Config;
/**
*
* Created by Dark(DarkGuardsman, Robert) on 9/14/2018.
*/
public class ConfigIC2
{
@Config.Name("enable_recipes")
@Config.Comment("Enable recipes that offer alternatives using IC2 items")
@Config.LangKey("... | 34.185185 | 106 | 0.72481 |
374775f1b3fbb346fb7199c4198e0264d0356ca9 | 3,102 | /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 35.655172 | 79 | 0.644423 |
5748f8395f382f326318f9d94036ab776b508c21 | 1,551 | /*
* Copyright 2012 Evgeny Dolganov (evgenij.dolganov@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 27.696429 | 75 | 0.717602 |
85a19d93f09ee0101c1dece6a9e65b0f2e39d65e | 1,589 | /*
* Copyright 2013 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 31.156863 | 100 | 0.687225 |
3f876a18b0d0d18868d8ed71b13611c1fdcffa9d | 2,959 | package codepath.kaughlinpractice.fridgefone.model;
import android.util.Log;
import com.parse.ParseClassName;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseQuery;
import com.parse.SaveCallback;
import org.json.JSONException;
import org.json.JSONObject;
import codepath.kaughlin... | 28.180952 | 112 | 0.624535 |
b36645f459db967be7363f55ab1278d8d50300cc | 15,399 | package harlan.paradoxie.dizzypassword.activity;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import andro... | 47.091743 | 163 | 0.557309 |
392752cddbd37fa33f0d017419bdae9f76fd560f | 3,619 | package com.example.valuepaljava.config;
import com.example.valuepaljava.auth.ApplicationUserService;
import com.example.valuepaljava.jwt.JwtAuthenticationFilter;
import com.example.valuepaljava.jwt.JwtTokenVerifier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ann... | 41.125 | 107 | 0.687206 |
18ecab5ce0d2fca418daa4dc157cf4ef9edf863c | 207 | package me.philcali.rss.api.ompl;
public interface IOutline extends IOutlineContainer {
String getType();
String getTitle();
String getText();
String getHtmlUrl();
String getXmlUrl();
}
| 20.7 | 53 | 0.700483 |
2f21cd7bcb9f408c38a832f8c11cfaadb20150ac | 1,868 | package space.dubovitsky.hibernate.dao.impl;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.java.Log;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation... | 31.661017 | 153 | 0.718415 |
12ebf9192f049a01cca1dcfd8ae13bcb3498c13a | 4,194 | /*
* Copyright (C) 2004-2016 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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 3 of the License, or
* (at your option... | 28.147651 | 138 | 0.67382 |
353469fcc5c1c4a5dee29fd9a7a5ef38cc863882 | 531 | package io.choerodon.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 加在 DTO 的某个 field 上,表示这个 field 是用存放子节点信息.
* <p>
* 头行结构中行的标记,也可以用作单个对象的子属性标记
* <p>
* 起作用的地方
* <ul>
* <li>自动校... | 22.125 | 44 | 0.734463 |
6396798ab76e95731a26bf92f97d0b0e3f23c4a4 | 646 | package ac.cn.saya.payment.provider.repository;
import ac.cn.saya.alibaba.cloud.api.entity.PaymentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @Title: PaymentDao
* @ProjectName springcloudalibabastudy
* @Description: TODO
* @Author liunengkai
* @Date: 202... | 18.457143 | 62 | 0.651703 |
c09394895a2109b296cd77829e0ebd5c7c89b75b | 3,207 | package com.experian.aperture.streaming.client.response;
import com.experian.aperture.streaming.client.ErrorCode;
import com.experian.aperture.streaming.client.StreamingMethod;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
im... | 38.178571 | 160 | 0.741191 |
1fd7f90826e9530fb384f60161fefba0499258a2 | 813 | package org.mongodb.morphia.issue45;
import org.junit.Test;
import org.mongodb.morphia.TestBase;
import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Transient;
import org.mongodb.morphia.testutil.TestEntity;
import org.junit.Assert;
... | 21.972973 | 70 | 0.718327 |
85bbafeef150e0f2966d226bec9dee02969f33e1 | 1,815 | package me.mrletsplay.mrcore.bukkitimpl;
import java.util.Map;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import me.mrletsplay.mrcore.json.JSONArray;
import me.mrletsplay.mrcore.json.JSONObject;
import net.md_5.bungee.api.chat.BaseCom... | 25.928571 | 78 | 0.663361 |
afb390f87766b7c4260028f1854d63236eb291c9 | 1,765 | package org.pp.modules.dev.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
/**
* Generated by JFinal, do not modify this file.
*/
@SuppressWarnings("serial")
public abstract class BaseModels<M extends BaseModels<M>> extends Model<M> implements IBean {
/**
* 自增长主键I... | 14.233871 | 93 | 0.6017 |
a51bf070928605203c758bf9a05d66d89a967865 | 3,225 | package com.example.ywang.diseaseidentification.application;
import android.app.Application;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.baidu.lbsapi.BMapManager;
import com.baidu.lbsapi.MKGeneralListener;
import com.baidu.mapapi.CoordType;
import com.baidu.mapapi.S... | 36.235955 | 100 | 0.688992 |
f50ff7541a814e63036d642048902dc8c9c452e9 | 2,274 | package org.fornever.koala.local;
import java.util.Map;
import org.dizitart.no2.Document;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.NitriteCollection;
import org.dizitart.no2.NitriteId;
import org.dizitart.no2.WriteResult;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ... | 28.78481 | 87 | 0.726473 |
c2829aa5702224cede84333d6fbd897f0ce7b5d5 | 21,140 | package edu.gatech.gtri.trustmark.v1_0.impl.tip;
import edu.gatech.gtri.trustmark.v1_0.model.TrustInteroperabilityProfile;
import edu.gatech.gtri.trustmark.v1_0.tip.TrustExpression;
import edu.gatech.gtri.trustmark.v1_0.tip.TrustExpressionFailure;
import edu.gatech.gtri.trustmark.v1_0.tip.TrustExpressionType;
import e... | 74.43662 | 208 | 0.792952 |
423d6292618c571859c967e12b442c436cbb38d2 | 1,219 | package net.minecraft.network.play.client;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayServer;
public class C0DPacketCloseWindow extends Packet
{
private int f... | 25.93617 | 76 | 0.721083 |
2a5d2231b7ab6ee3721cd38cb82d96c7b3b4440f | 160 | package org.jeecg.modules.datasources.model;
import lombok.Data;
@Data
public class WaterfallJobLock {
/**
* 锁名称
*/
private String lockName;
} | 14.545455 | 44 | 0.68125 |
92f12c5c0a5777fc8babbcf42e72a36313602c7e | 2,144 | package base;
public class Main {
/**
* # Lab Three
*
* Ok for this lab we're going to reiterate a lot of the things that we went over in class.
*
* Our Goals are:
* - Conditionals
* - If
* - Else
* - Else If
*/
public static void main(String[] args... | 36.338983 | 117 | 0.577425 |
ffb40e6fe0f9da634c6fc26a6d007e1d73fafa2e | 1,901 | /*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for t... | 29.246154 | 71 | 0.644398 |
3311732832930dd9ee7ec6cfe7f6084463a5363d | 45,029 | /*
* Copyright 2011-2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... | 32.511913 | 89 | 0.580737 |
c67223224bd99ac7742dea41ff2f57f3861ca43d | 1,304 | package com.twu.biblioteca;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class BookTest {
@Test
public void getNameTest() {
Book book = new Book("1984", "George Orwell", 1949);
assertEquals("1984", book.getName());
... | 26.08 | 65 | 0.630368 |
b3c74add09b013eeec28d987618d14d045dd2517 | 1,312 | /*
* Copyright © 2013-2016 The Nxt Core Developers.
* Copyright © 2016-2020 Jelurida IP B.V.
*
* See the LICENSE.txt file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with Jelurida B.V.,
* no part of the Nxt software, in... | 31.238095 | 93 | 0.747713 |
be18d641955b74bb7efbbefc5f0e08580c1e66b9 | 13,587 | /*
* Copyright (C) 2016 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... | 30.601351 | 99 | 0.694046 |
321af5abdfeae33f3e00cbc1f7ee2f9447554984 | 1,080 | package net.george.alltestdemo;
import android.support.design.widget.TabLayout;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import net.george.alltestdemo.adapter.PagerAdapter;
/**
* @author G... | 32.727273 | 82 | 0.761111 |
10f2fd9631342f7d8b550f57a1c4f083df5f5055 | 219 | package swingdemo;
public class SwingImple
{
public static void main(String[] args)
{
System.out.println("Creating an Object of SwingDemo...");
SwingDemo obj = null;
obj = new SwingDemo();
}
}
| 15.642857 | 60 | 0.643836 |
321d1aa0c58428d8fc1810c1dcbb1216068dc7ec | 1,159 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFilextem/Templates/Classes/Class.java to edit this template
*/
package fxproject.filters.locals;
import fxproject.models.RawImage;
/**
*
* @author vixx_
*/
public class CircleFilte... | 35.121212 | 103 | 0.593615 |
b4c018b7bce22a1c3eea7cf7db3be3e16f36e412 | 131 | package it.unibz.inf.ontop.iq.optimizer;
public interface PushUpBooleanExpressionOptimizer extends IntermediateQueryOptimizer{
}
| 21.833333 | 85 | 0.862595 |
5796f9c99b9a02fe2ab5cddddcfb60b7b4e480b6 | 2,633 | package jetbrains.mps.lang.behavior.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractNonTypesystemRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.NonTypesystemRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inference.TypeChec... | 53.734694 | 272 | 0.816559 |
142012389695d7eae48fdd4a2346682d4227041a | 114 | package com.budget.wiz.skip.app.domain.value;
public enum BudgetStatus {
APPROVED, CANCELED, IN_PROCESS;
}
| 14.25 | 45 | 0.745614 |
d41e858a4a2fd8c332b563c7ebe01940d393ed21 | 2,963 | package net.robinfriedli.jxp.persist;
import java.io.File;
import java.util.List;
import java.util.Objects;
import org.slf4j.Logger;
import com.google.common.collect.Lists;
import net.robinfriedli.jxp.api.JxpBackend;
import net.robinfriedli.jxp.api.StaticXmlElementFactory;
import net.robinfriedli.jxp.api.Uninitializ... | 37.506329 | 131 | 0.740466 |
db98ad4ad81e729eaf5169f005f24c0227b4208f | 3,336 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.interaction.web.entry;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.Require... | 40.192771 | 131 | 0.805755 |
368472859ca4ffb3f7f43a414772438743e78021 | 110 | package com.vlad.newsapi4j.utils;
@FunctionalInterface
public interface Callback<T> {
void invoke(T t);
}
| 12.222222 | 33 | 0.754545 |
4786a478bc2311c0a3a1282c98ea5cac2cb67906 | 7,376 | /************************************************************************
*
* 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... | 32.782222 | 118 | 0.701871 |
dd30e3348452deb9e46fbc1fc5a60cf4357957bc | 650 | package mvi.diceapp.request;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.val;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Data
public class DiceRollResponse {
List<HitEntry> distribution;
@Data
@AllArgsConstructor
public static class HitEntry {
... | 21.666667 | 88 | 0.683077 |
37b12504ff7650161a8f43a7f962b5377956e889 | 797 | package edu.java.common;
public class ExampleInstanceof {
/**
* @param args
* the subclass of a superclass can change the class of the instance
* example:
* Object obj = new Integer(5);
* String str = (String)obj;
* while this would not cause a compile error but when the program actually running there w... | 22.771429 | 115 | 0.685069 |
e6aa2aa503242cd1818aebb40fdee5222d2f876e | 903 | package io.cucumber.skeleton;
import io.cucumber.java.Before;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class StepDefinitions {
Belly belly;
@Before
public void setup(){
belly = new Belly();
}
@Given("I have {int} cukes i... | 25.8 | 105 | 0.673311 |
0c11e08b327a96483870081d1e311cfdf453d723 | 2,685 | package pl.java.scalatech.performance1;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
import org.assertj.core.api.Assertions;
import org.hibernate.Session;
import org.hibernate.transform.AliasToEntityMapResultTransformer;
import org.hibernate.transform.Transformers;
import org.... | 36.283784 | 178 | 0.705028 |
9d8831cf25c715fc59cf00c88623950d549a771a | 1,207 | package org.gg.scoot.fixture;
import org.gg.scoot.entity.unit.BuildingEntity;
import org.gg.scoot.entity.unit.UnitEntity;
import org.gg.scoot.entity.unit.UnitOrBuildingBaseEntity;
import java.util.List;
import static org.gg.scoot.fixture.BuildingFixture.CIVILIZATIONS_ID;
public class UnitFixture {
public stati... | 30.175 | 71 | 0.686827 |
cc68751773b6dbd72f537e20d13f42da6c4809ef | 12,502 | package org.simpleflatmapper.jdbc;
import org.simpleflatmapper.jdbc.impl.JdbcKeySourceGetter;
import org.simpleflatmapper.map.MappingException;
import org.simpleflatmapper.map.SetRowMapper;
import org.simpleflatmapper.map.SourceFieldMapper;
import org.simpleflatmapper.map.MapperConfig;
import org.simpleflatmapper.map.... | 42.815068 | 207 | 0.68877 |
eaeec77baaef7c80e6607e6fb5c4e95bb86aaaca | 27,555 | /*
Copyright � 1999 CERN - European Organization for Nuclear Research.
Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose
is hereby granted without fee, provided that the above copyright notice appear in all copies and
that both that copyright notice and this perm... | 44.659643 | 177 | 0.679477 |
025519a9799fd526354fc88a9deca81336ab5602 | 1,031 | package AllAboutArrays;
import java.util.Arrays;
public class ModifyingArrayElements {
public static void main(String[] args) {
// Using the provided 2D array
int[][] intMatrix = {
{1, 1, 1, 1, 1},
{2, 4, 6, 8, 0},
{9, 8, 7, 6, 5}
... | 36.821429 | 219 | 0.57517 |
cff99d3e267090f3b5970919f17b9be53e976545 | 91 | package com.cloud.model.enumeration;
public enum OptimiseFor {
Generic,
Windows
}
| 13 | 36 | 0.725275 |
6bc6f93e242c537c131fa5270d293cf077614e09 | 2,327 | package org.acm.sviet.schedulerama.hod.tabs;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInf... | 29.0875 | 103 | 0.702621 |
9e81f805eb5fa80e2b1d8edb4fa37f4c4ca53f61 | 993 | package com.cqust.pojo;
import java.util.Date;
public class TStoretuisong {
private Integer id;
private Integer storeid;
private String storename;
private Date tstime;
private String tstext;
public Integer getId() {
return id;
}
public void setId(Integer id) {
thi... | 18.054545 | 69 | 0.599194 |
d8602acd73f66a0890f60df6e0d2e403630a5fa5 | 681 | package edu.planon.lib.client.common.dto;
import java.io.Serializable;
import java.util.Arrays;
import org.apache.wicket.util.lang.Bytes;
public class DownloadFile implements Serializable {
private static final long serialVersionUID = 1L;
private final String fileName;
private final byte[] byteArr;
public Down... | 22.7 | 58 | 0.74743 |
525c4cf4b24d486c2e0f9c0b6ce266a919339ec9 | 667 | package ru.atom.enums;
/**
* Created by sergey on 2/28/17.
*/
public enum Gender {
Male,
Female,
Other;
/**
* Check couple.
*
* @param country - target country
* @param partner - available partner
* @return legal status
*/
public boolean isLegalCouple(Country countr... | 21.516129 | 67 | 0.473763 |
511fc6598e4b3550d9cfa788d09ac03b16db13c6 | 1,554 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 30.470588 | 76 | 0.749678 |
de93db492a4fb5cf2058385f2484cc59dc69f8e1 | 13,240 | /**
* DescriptionFacadeImpl.java
* Copyright James Dempsey, 2011
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any late... | 27.355372 | 110 | 0.740861 |
08c2d5888e1b8c6afdd067badf16c98e09be8c10 | 8,875 | package com.qugengting.audio;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.AudioManager;
imp... | 29.098361 | 93 | 0.567775 |
1602f6b70d6b16d8f9dcf7aca457b51b1698535b | 1,541 | package com.adriencadet.downthere.models.bll.jobs;
import com.adriencadet.downthere.ApplicationConfiguration;
import com.adriencadet.downthere.models.bll.serializers.IPictureBLLDTOSerializer;
import com.adriencadet.downthere.models.bll.serializers.ITextFileBLLDTOSerializer;
import com.adriencadet.downthere.models.dao.... | 32.104167 | 94 | 0.779364 |
9cb271cb104c16d1208fa8ba0f39bbf79c22a8b0 | 2,420 | package com.levi9.rxnuclearbinding.adapters;
import android.databinding.DataBindingUtil;
import android.support.annotation.UiThread;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.levi9.rxnuclearbinding.R;
import c... | 27.816092 | 109 | 0.684711 |
83730266d26f969991135945586087fd35d4122e | 698 | package ru.gbooking.apiv2;
import java.io.IOException;
import com.fasterxml.jackson.annotation.*;
public enum FieldElement {
EMAIL, NAME, SURNAME;
@JsonValue
public String toValue() {
switch (this) {
case EMAIL: return "email";
case NAME: return "name";
case SU... | 25.851852 | 74 | 0.624642 |
2dc0b70e13130acee91ad56a85071ee72080c001 | 1,799 | package com.deliveredtechnologies.rulebook;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
/**
* Tests for {@link Fact}.
*/
public class FactTest {
@Test
public void factsCanBeCreatedFromOtherFacts() {
Fact<String> fact1 = new Fact<String>("fact1", "Fact One");
Fact<String>... | 28.555556 | 71 | 0.689828 |
60c5a85945490752de1ec6157919a74fd6206453 | 1,079 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 订单更新接口
*
* @author auto create
* @since 1.0, 2019-08-29 11:17:41
*/
public class AlipayEcoMycarParkingOrderUpdateModel extends AlipayObject {
private static final long serialVe... | 19.267857 | 74 | 0.68582 |
de1b01368af5bd4a359f10a67fcea38fa7e056d3 | 3,953 | package io.joyrpc.transport.http2;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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... | 20.805263 | 96 | 0.55578 |
1ff9bb71eb5fa72c460de96c9ebe9aa524879479 | 990 | package calendar;
import util.Dorminhoco;
import java.text.SimpleDateFormat;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.Locale;
import java.util.TimeZone;
/**
* @author dibpereira@rd.com.br @created on 19/01/2021
*/
pub... | 24.75 | 81 | 0.643434 |
17a568bb53bf8ac663c0274348bdcf43b86c3628 | 3,355 | package org.anddev.andengine.opengl.texture.region;
import org.anddev.andengine.opengl.texture.*;
import org.anddev.andengine.opengl.texture.region.buffer.*;
public class TiledTextureRegion extends BaseTextureRegion
{
private int mCurrentTileColumn;
private int mCurrentTileRow;
private final int mTileColu... | 34.234694 | 218 | 0.677496 |
ac0339e277a50d32f99c78aa49b84027806f047e | 1,002 | package com.smatechnologies.opcon.command.api.interfaces;
import java.util.List;
import com.smatechnologies.opcon.command.api.arguments.OpConCliArguments;
import com.smatechnologies.opcon.command.api.modules.JobLogData;
import com.smatechnologies.opcon.restapiclient.api.OpconApi;
import com.smatechnologies.opcon.rest... | 50.1 | 109 | 0.858283 |
02692ad020c8c11e5f1e9027f07108f2b6cab531 | 4,543 | /*
* 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... | 52.825581 | 153 | 0.736298 |
d54f3539a4a490af418667145f1bfb1530e24b68 | 238 | package com.sys.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/comment")
public class CommentController {
}
| 18.307692 | 62 | 0.823529 |
60d493705bfa8e9afb34daf2f7a6499deb9894e5 | 4,338 | package com.liveaction.google.hashcode2019.model;
import com.google.common.collect.Sets;
import com.liveaction.google.hashcode2019.input.Input;
import com.liveaction.google.hashcode2019.output.writer.OutputWriter;
import org.junit.Test;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths... | 32.863636 | 101 | 0.611803 |
405e8478886b458de77d88205dde56b165616733 | 574 | package com.fishercoder;
import com.fishercoder.common.classes.Point;
import com.fishercoder.solutions._149;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class _149Test {
private static _149.Solution1 solution1;
private static Point[] points;
@Before... | 22.96 | 85 | 0.724739 |
cfeb8f553652e9ffaba7cbac30d879178328da87 | 3,964 | /*
* Copyright 2016 peter.
*
* 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 w... | 34.469565 | 146 | 0.663724 |
79db342405cfcf13efc2304ae868b4b8b5c51730 | 431 | package com.zc.zcbucks.repository;
import com.zc.zcbucks.model.CoffeeOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* @description:
* @author: Zhangc
* @date: 2019-02-27
*/
public interface CoffeeOrderRepository extends JpaRepository<CoffeeOrder,Long> {
Lis... | 21.55 | 80 | 0.772622 |
1ab157cf673e6e5885ade662e232e44b4a1ee7dc | 17,346 | package puzzledice;
import gui.AreaEditPanel;
import gui.PuzzleEditPanel;
import gui.WindowMain;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.swing.BoxLayout;
import javax.swin... | 32.062847 | 161 | 0.704773 |
b09a49f80fb7883597dc5b1d36bb9b0d14482b98 | 7,028 | /*
* *****************************************************************
*
* Copyright 2018 DEKRA Testing and Certification, S.A.U. All Rights Reserved.
*
* *****************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... | 42.593939 | 139 | 0.545532 |
b8c3780afd3202992ffa238bf3c186f375889ace | 13,505 | package org.aion.txpool;
import static org.aion.txpool.TxPoolA0.MIN_ENERGY_CONSUME;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.Random;
import org.aion.base.AionTransaction;
import org.aion.base.PooledTransaction;
import org.aion.base.T... | 38.919308 | 108 | 0.522103 |
e9806101f6a637ad4db48f1558d5f21c11c87b75 | 662 | package com.project.wanderlust.DataClasses;
import android.graphics.Bitmap;
public class Contact {
private Bitmap photo;
private String name;
private String phone;
public Contact(Bitmap photo, String name, String phone) {
this.photo = photo;
this.name = name;
this.phone = pho... | 22.827586 | 62 | 0.660121 |
86c7208f9b06b9cf5c3ba6252b88bb362dd2a0df | 2,402 | /*
Copyright (c) 2022 Preponderous Software
MIT License
*/
package preponderous.ponder.minecraft.bukkit.services;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;
import preponderous.ponder.minecraft.bukkit.ab... | 32.026667 | 98 | 0.666528 |
09cf58b6f04b3fe42f6c8cf3c5ce92d9800e0091 | 169 | /**
* Package for ru.job4j.multithreading.monitor task.
*
* @author Vladimir Ivanov
* @version 0.1
* @since 28.11.2017
*/
package ru.job4j.multithreading.monitor; | 18.777778 | 52 | 0.704142 |
7170b188cff5595ca2516154e3bf510214e7a7cc | 513 | import java.io.StreamTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
StreamTokenizer st = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
int n, a... | 22.304348 | 99 | 0.631579 |
fa84f4d7aa9b746bccdf0d5a819fe630aa77db02 | 2,609 | package pl.droidsonroids.examplerealmmvp.ui.books;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import butterknife.Bind;
import butterknife.ButterKnife;
import butt... | 26.896907 | 107 | 0.715217 |
6cfc237cf8a40fb31ab1c4d697873b7ccfe068f8 | 2,068 | package org.apache.spark.sql.execution.command;
/**
* A command used to write the result of a query to a directory.
* <p>
* The syntax of using this command in SQL is:
* <pre><code>
* INSERT OVERWRITE DIRECTORY (path=STRING)?
* USING format OPTIONS ([option1_name "option1_value", option2_name "option2_value",... | 68.933333 | 254 | 0.754352 |
4b1172016b94ed53f62da988e648ee2042710917 | 202 |
public class TestForInnerClass2 {
public Destination destination(final String dest) {
return new Destination() {
private String label =dest;
public String readLabel() {
return label;
}
};
}
}
| 14.428571 | 51 | 0.722772 |
d50625328f077362dc0d998f94dbd639f69775a1 | 339 | package g191210385;
import java.sql.SQLException;
public class KritikSogutma implements IObserver{
@Override
public int kritikDurum(int kritikSicaklik,String roomId, IEyleyici eyleyici) throws InterruptedException, SQLException {
Thread.sleep(500);
return eyleyici.sogutucuAc(kritikSicaklik, ... | 22.6 | 122 | 0.752212 |
1858f6b48b110442201860cdbe2a57ec8180d52e | 1,033 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing;
import com.intellij.util.io.DataExternalizer;
import com.intellij.util.io.VoidDataExternalizer;
import org.jetbrains.annotations.ApiStatus;
i... | 34.433333 | 140 | 0.776379 |
80bd5da2e1ea7d7848d2d0218924bfdd01367ee5 | 8,505 | package com.mathgame.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.TextView;
import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.components.Legend;
im... | 48.050847 | 139 | 0.661493 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.