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 |
|---|---|---|---|---|---|
820b7d9bbd4d388ed5294cc432e39a8838046099 | 971 | package com.softwaremill.common.test.util.reorder;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Marker to move m... | 34.678571 | 114 | 0.77034 |
6fcbd3c309053039a810bd079f3ccf16c39eae34 | 666 | import dyliang.config.MyConfig1;
import dyliang.domain.Person;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class SpringAnnotationTest {
@Test
public void testConfig1(){
AnnotationConfigApplicationContext applicationContext = new Anno... | 30.272727 | 120 | 0.728228 |
ad7839e216571b868ceee3f5c6a26f164d49a21e | 493 | package com.alkisum.android.sofatime.utils;
import java.text.SimpleDateFormat;
import java.util.Locale;
/**
* Utility class to format values.
*
* @author Alkisum
* @version 1.1
* @since 1.0
*/
public final class Format {
/**
* Format constructor.
*/
private Format() {
}
/**
* @... | 17 | 74 | 0.624746 |
e4db3da7cfe7e7035dfd3d75c86ce04418148444 | 3,192 | package org.zalando.nakadi.partitioning;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.zalando.nakadi.domain.EventCategory;
import org.zalando.nakadi.domain.EventType;
import org.zalando.nakadi.exceptions.runtime.I... | 41.454545 | 118 | 0.678571 |
3d60385572fcbc0ef76418da5c713836ada93ec7 | 4,346 | package tfb.status.handler;
import static com.google.common.collect.ImmutableList.toImmutableList;
import static com.google.common.net.MediaType.HTML_UTF_8;
import static io.undertow.util.Headers.CONTENT_TYPE;
import static io.undertow.util.Methods.GET;
import static java.nio.charset.StandardCharsets.UTF_8;
import co... | 34.220472 | 80 | 0.682467 |
00ff5ee788c5cae58e9826f61f9d21da4fef0508 | 562 | package functionalProgrammingExercises;
import java.util.Scanner;
import java.util.function.Function;
public class ReturnsAnEvenNumber {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long number = input.nextLong();
Function<Long, Long> getEven = x -> x % ... | 15.611111 | 87 | 0.651246 |
dc8214d28e63da2152f0c87babdd71d18dbd0822 | 1,888 | package com.packtpub.mmj.conductor.client;
import com.netflix.conductor.common.metadata.events.EventHandler;
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... | 35.622642 | 113 | 0.769068 |
b132e4d4b800ac0f9d179f71a2419eff3bc216d4 | 2,515 | package org.ovirt.engine.api.restapi.types;
import org.ovirt.engine.api.model.Host;
import org.ovirt.engine.api.model.StorageConnectionExtension;
import org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension;
import org.ovirt.engine.core.compat.Guid;
public class StorageServerConnectio... | 53.510638 | 152 | 0.749503 |
ce8c608c15a892afe11ea8ee8072049dcac6b97f | 12,793 | /**
* Created by rmpestano on 6/5/16.
*/
package com.github.jenkins.lastchanges.impl;
import com.github.jenkins.lastchanges.api.VCSChanges;
import com.github.jenkins.lastchanges.model.CommitInfo;
import com.github.jenkins.lastchanges.model.LastChanges;
import org.tmatesoft.svn.core.SVNDepth;
import org.tmatesoft.svn... | 44.574913 | 262 | 0.641523 |
fc6964101b4cb570b30a5628a4eba2cf5904b595 | 275 | package com.facebook.stetho.inspector.protocol.module;
class DOM$3 implements Runnable {
final /* synthetic */ DOM this$0;
DOM$3(DOM this$0) {
this.this$0 = this$0;
}
public void run() {
DOM.access$300(this.this$0).hideHighlight();
}
}
| 19.642857 | 54 | 0.614545 |
5a0f1bd95b34849d529efff4321fecef9da01c87 | 456 | class Solution {
public boolean XXX(int[] nums) {
int len = nums.length, max = 0;
for(int i=0;i<len;){
while(i<len&&nums[i]!=0){
max = Math.max(max,i + nums[i]);
i++;
}
if(max>=len-1){
return true;
}else... | 21.714286 | 48 | 0.346491 |
92199ffc54deface47b9cefc1a8e75494245d38d | 577 |
package mage.filter;
import mage.constants.TargetController;
import mage.filter.predicate.other.PlayerPredicate;
/**
*
* @author LevelX2
*/
public class FilterOpponent extends FilterPlayer {
public FilterOpponent() {
this("opponent");
}
public FilterOpponent(String text) {
super(text... | 18.03125 | 60 | 0.667244 |
c1adee8257b4dc16cb6d59775f3133197440d983 | 45,679 | package com.oculussoftware.bus;
import com.oculussoftware.system.*;
import com.oculussoftware.api.repi.*;
import com.oculussoftware.api.sysi.*;
import com.oculussoftware.api.sysi.sec.*;
import com.oculussoftware.api.sysi.license.*;
import com.oculussoftware.api.busi.*;
import com.oculussoftware.api.busi.mkt.prod.*;
im... | 33.005058 | 153 | 0.685392 |
61f42f6733cf945508315cd7d4522698a71e2b7b | 211 | package exception;
public class CartEmptyException extends RuntimeException {
private static final long serialVersionUID = 1L;
public CartEmptyException(String errorMsg) {
super(errorMsg);
}
}
| 19.181818 | 59 | 0.753555 |
81c2e009e852091581226171ad9ba43b297f27b1 | 1,317 |
package org.box2d.r3.gdx;
import org.box2d.jfixby.api.Box2DTransform;
import com.jfixby.scarabei.api.err.Err;
import com.jfixby.scarabei.api.floatn.Float2;
public class GdxTransform implements Box2DTransform {
public static final int POS_X = com.badlogic.gdx.physics.box2d.Transform.POS_X;
public static final int... | 30.627907 | 94 | 0.753227 |
dcb06bf2be0d6d685f60146be9c9283ab414d4e7 | 10,892 | /*
* Created by Lars Specht
* Copyright (c) 2022. All rights reserved.
* last modified by me on 03.01.22, 15:04
* project Alarm Clock in module Alarm_Clock.app
*/
package com.larsaars.alarmclock.app.service;
import android.app.Activity;
import android.app.PendingIntent;
import android.app.Service;
import and... | 39.039427 | 222 | 0.679214 |
617e8b54254a30f01b78d71641dbb634da33dbde | 6,317 | package net.minecraft.pathfinding;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import java.util.List;
import java.util.Set;
import javax.annotation.Nullable;
import net.minecraft.entity.Entity;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.math.BlockPos;
import... | 25.995885 | 139 | 0.600918 |
1df88ef2f75416a367cff3ec1093cb364a9303cf | 2,695 | package com.twizo.dataaccess.jsonparams;
public class RegistrationWidgetParams {
/**
* This is a optional array parameter. The allowedTypes defines which verification types the
* user can register for in the widget. Possible values are: ‘sms’, ‘call’, 'biovoice', 'push',
* 'totp', 'telegram', 'line... | 33.271605 | 102 | 0.682004 |
12151740357f262e7384c7b4b7a8795ff21cd470 | 60 | package lk.ijse.dep.Entities;
public class SuperEntity {
}
| 12 | 29 | 0.766667 |
6c9fe7967523136625e40112fff045a8dcc97598 | 483 | package com.supermonk.cloud.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloWorldController {
private static final Logger logger = LoggerF... | 25.421053 | 90 | 0.784679 |
09b3150f03351826c136460bf58b1617fb523deb | 4,741 | /*
* Copyright 2017-2021 original 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 applicable law or agr... | 34.355072 | 179 | 0.740983 |
b7f1454cc5dc6ea666b656da1870e1b07cd0cbe1 | 5,236 | import java.util.concurrent.ScheduledExecutorService;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("dy")
@Implements("SoundCache")
public class SoundCache {
@ObfuscatedName("ni")... | 25.920792 | 85 | 0.682964 |
ce6a84b8c5bb3736ee459b0ba4dc266e80c81fd4 | 10,020 | /*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a full listing
* of individual contributors.
* This copyrighted material is made available to anyone wishing to u... | 30.830769 | 195 | 0.688922 |
27f5f4f02a3fdb1ca727d44cae862a19da919553 | 96 | package com.gb.truecaller.model;
public enum UserCategory {
FREE,
GOLD,
PLATINUM
}
| 12 | 32 | 0.677083 |
9cbfa2cacf561a2c97b0d82ae0c03993413bd4c8 | 2,060 | package de.jlo.talendcomp.camunda.externaltask;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class CamundaClientTest {
privat... | 30.294118 | 99 | 0.737379 |
0db4a3a59a3dcb30a4c412f016b1e3949ce6bf00 | 610 | package net.sf.jabref.model.database;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import net.sf.jabref.model.entry.BibEntry;
public class EntrySorter {
private final List<BibEntry> entries;
public EntrySorter(List<BibEntry> entries, Comparat... | 21.785714 | 81 | 0.7 |
305e89bcdcf97204cf215debc8a6b96857fc1439 | 1,561 | package castle.comp3021.assignment.protocol;
import castle.comp3021.assignment.JesonMor;
import castle.comp3021.assignment.mock.MockPlayer;
import castle.comp3021.assignment.piece.Archer;
import castle.comp3021.assignment.piece.Knight;
import castle.comp3021.assignment.util.OptionalArcherImplementation;
import castle.... | 38.073171 | 74 | 0.669443 |
bf44d9e2560cc17273f8d924967fdf96b51ba82f | 480 | package my.suveng.statmachine.demo.spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.statemachine.StateMachine;
import org.springframework.stereotype.Component;
/**
*
* @author suwenguang
**/
@Component
public class SpringComponent {
@Autowired
private StateM... | 22.857143 | 62 | 0.752083 |
76f31621b840120f12a0150090582d9b6c944ae6 | 2,196 | package course.examples.ui.timepicker;
import java.util.Calendar;
import android.app.Activity;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.TimePicker;
//This app... | 25.835294 | 105 | 0.740893 |
91e872aece76b8d51c25a81d4c31ea0bb31999b0 | 61 | package ru.job4j.design.dip;
public interface Component {
}
| 12.2 | 28 | 0.770492 |
6e053a9fe6afe89af9b281ad47b93d6b85d41b7a | 4,880 | /*
* Copyright 2012-2015 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 32.533333 | 241 | 0.719672 |
11034880f720ed80064129f9d0d7e3cc26ed243d | 31,923 | package org.telegram.ui.Components;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import ... | 47.504464 | 274 | 0.628387 |
6fadbe709d8f5c04a7a7a74439073090e13cdd0b | 1,624 | /*
* Copyright (C) 2009-2012 University of Freiburg
*
* This file is part of SMTInterpol.
*
* SMTInterpol is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (a... | 33.833333 | 77 | 0.750616 |
1aa49b31a0914faa2ab7eac75f6eb389fa12fe00 | 922 | /**
* Created By Achmad Yusuf
* Github : abdullah1006
**/
package com.example.crudmysql;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import android.app.ActionBar;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class ... | 28.8125 | 88 | 0.686551 |
ba52df7aaa7e7d7858707d72122d56c090b3436d | 2,024 | package at.jku.se.grip.beans;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import at.jku.se.grip.enums.UpdateType;
import at.jku.se.grip.ui.events.IBeanCUDEvent;
import lombok.AllArgsConstructor;
import lombok.Ge... | 25.620253 | 123 | 0.725791 |
dc701985853b0107289976a6e3574d4403521d97 | 5,620 | /*
* Copyright (c) 2020 Richard Hauswald - https://quantummaid.de/.
*
* 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
* ... | 51.559633 | 125 | 0.739858 |
d0428e753a4d04ccbb8d90693dcd08b698d243ef | 857 | /*
* 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 GUI;
import Main.Offer;
import java.awt.*;
import java.util.ArrayList;
import java.util.Iterator;
import javax.swing.*;
/**
... | 18.630435 | 79 | 0.701284 |
9672c90ef0629fbaf755ee70cd4ee20d74f51831 | 2,660 | /*
* 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 ... | 34.102564 | 69 | 0.681955 |
7ce1483803606161ad520a77ffcb34efc3de9a0a | 6,115 | package org.joda.time.base;
import org.joda.time.DateTime;
import org.joda.time.DateTimeUtils;
import org.joda.time.Duration;
import org.joda.time.Interval;
import org.joda.time.MutableInterval;
import org.joda.time.Period;
import org.joda.time.PeriodType;
import org.joda.time.ReadableInstant;
import org.joda.time.Rea... | 33.054054 | 193 | 0.647751 |
5f12e80741992e9c00c013f1b0e65b3ba4b2b94f | 700 | package ch.astina.console.command;
import ch.astina.console.input.Input;
import ch.astina.console.output.Output;
import org.junit.Ignore;
@Ignore
public class TestCommand extends Command
{
@Override
protected void configure()
{
this
.setName("namespace:name")
.setAl... | 20 | 55 | 0.598571 |
0af66e53bbc6677c3ac66921b00d697f8be34247 | 6,423 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.customtabs;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static or... | 40.651899 | 98 | 0.749961 |
9278b45f8d42399bbac24198ee0d8761adc6c72c | 3,177 | /* ********************************************************************
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
... | 28.366071 | 79 | 0.620082 |
bbfbfce52faad945ee1f5440b2b180c21da8f58e | 45,560 | /*
* This file was automatically generated by EvoSuite
* Sun Nov 29 20:53:03 GMT 2020
*/
package com.soops.CEN4010.JMCA.JParser;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.soops.CEN... | 39.006849 | 176 | 0.707046 |
c73a678ace7d6883da089c3a7ef8e8f928c0d2f3 | 7,057 | /*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | 39.424581 | 98 | 0.684427 |
86f8f82ed9c6d3503ff242a136cd2a44cf152589 | 6,832 | package com.github.musiKk.mklang;
import static org.objectweb.asm.Opcodes.ACC_PUBLIC;
import static org.objectweb.asm.Opcodes.ALOAD;
import static org.objectweb.asm.Opcodes.GETSTATIC;
import static org.objectweb.asm.Opcodes.INVOKESPECIAL;
import static org.objectweb.asm.Opcodes.INVOKEVIRTUAL;
import static org.objectw... | 33.821782 | 112 | 0.650761 |
ee6091a58d550538720f46307300019d16fa20d5 | 547 | package xsierra.digitguesser.drawer.pipeline;
import java.awt.*;
import java.awt.image.BufferedImage;
public class ToRGBStep extends OrderablePipelineStep {
public ToRGBStep(int stepOpder) {
super(stepOpder);
}
@Override
public BufferedImage processImage(BufferedImage pngImage) {
Buf... | 28.789474 | 123 | 0.725777 |
f33f18a97fd4764793d488d82ad87a5bef613a29 | 1,952 | package eg.bazinga.sfgpetclinic.services.map;
import eg.bazinga.sfgpetclinic.models.Owner;
import eg.bazinga.sfgpetclinic.services.OwnerService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.*;
class OwnerServiceMapTe... | 22.697674 | 92 | 0.650102 |
bb8fd156e03efa62ae3b38abcb68ad727dff33e2 | 1,374 | /*
* Copyright [2020] [hogae.com]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 24.981818 | 86 | 0.75182 |
6c003b1c695e9133adf6511e65231ec15cb6c95d | 5,758 | package org.jasig.cas.web;
import org.apache.commons.lang3.StringEscapeUtils;
import org.jasig.cas.CasProtocolConstants;
import org.jasig.cas.CentralAuthenticationService;
import org.jasig.cas.authentication.principal.Service;
import org.jasig.cas.authentication.principal.WebApplicationServiceFactory;
import org.jasig... | 38.644295 | 131 | 0.711705 |
03d68e4ee06af19ca4c9a023470af98cf3b808da | 2,893 | /*
* Copyright (C) 2017 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... | 33.639535 | 100 | 0.741099 |
80b91c99599c64ec4f327a71a6a88c321264cfa2 | 1,192 | package com.flying.email.dao;
import java.sql.Connection;
import java.util.List;
import com.flying.email.bean.SubjectItems;
/**
* auth:flying date:2017年7月18日
**/
public interface ISubjectItems {
/**
* 根据条件获取项目信息
*
* @param connection
* @param condtion
* @return
*/
public SubjectItems getSubjectItems... | 18.060606 | 92 | 0.694631 |
94b610d42698e5462395b984018efd3f39f31bf7 | 141 | class Sum {
public static void main(String[] args) {
int a,b,c;
a = 10;
b=20;
c=a+b;
System.out.println("Sum = "+ c);
}
} | 15.666667 | 40 | 0.51773 |
0ebb43bc68c98f09247d5263f1825b7d289fb36f | 996 | package com.github.st1hy.countthemcalories.core.permissions;
import android.content.pm.PackageManager;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static com.github.st1hy.countthemcalories.core.permissions.Permission.DENIED;
import static com.github.st1hy.countthem... | 36.888889 | 98 | 0.808233 |
5b1571388b36ae2a6dce8d32281a9d2141c66a8e | 2,254 | package com.ciel.scaproducer1.controller;
import com.ciel.scaapi.crud.IScaUserService;
import com.ciel.scaapi.feign.FuckMyLifeFeign;
import com.ciel.scaapi.util.SysUtils;
import com.ciel.scaentity.entity.ScaGirls;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign... | 28.531646 | 88 | 0.679681 |
365e2c5a7b6e9712d1ca2c93793b0c4a84f4c330 | 2,278 | /*
* 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")... | 37.966667 | 157 | 0.705004 |
e4a08f90ec58de2df3bd7295ef0adcc771164cb7 | 1,603 | /*
* Copyright (C) 2014 Michell Bak
*
* 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... | 21.958904 | 75 | 0.656893 |
5b24d1d922b90dd7fca1c2b19ca7b825944a346e | 444 | package org.veritasopher.mypubservice.config;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("global")
@Getter
@Setter
public class GlobalProperties {
/**
* Folder location for workspace
*/
private Str... | 19.304348 | 75 | 0.720721 |
c78e428d3afc76e7e4ba4df9daea2b4deb7c9644 | 16,921 | /**
* Copyright (c) 2009/09-2012/08, Regents of the University of Colorado
* 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. Redistributions of source code must retain the above copy... | 34.74538 | 270 | 0.717865 |
dabee808c76a3d7d3aa9bd2b7d25f0e36ab57f8e | 5,333 | package org.acme.insurance.test;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import junit.framework.TestCase;
import org.acme.insurance.base.Driver;
import org.acme.insurance.base.Policy;
import org.acme.insurance.base.SupplementalInfo;
import org.acme.insurance.web.Insuranc... | 27.921466 | 77 | 0.602663 |
08d4e99e9c4b12249541b74b9be775e9d1fe90a2 | 495 | package com.rabbit.samples.springwebsocketserver.javaxbased.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
* @author Matteo Baiguini
* matteo@solidarchitectures.com
* 12 Apr 2019
*/... | 15 | 67 | 0.793939 |
df44f8014f96bfed08947cbbf323f7bc34ba9370 | 786 | package com.atguigu.gulimall.pms.service;
import com.atguigu.gulimall.pms.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.pms.entity.CategoryBrandRelationEntity;
import java.util.List;
import java.util.Map;
/**
* ... | 25.354839 | 93 | 0.778626 |
0c2239ec419c6512f596dfbc357f3c4de9232fbb | 4,348 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.faste... | 30.619718 | 118 | 0.692042 |
20a8cbbf6956b08950fecac5ef637492fe11744b | 657 | package com.whirlwin.regex_switch.internal;
public final class Case<T> {
private String testValue;
private T returnValue;
public Case(final String testValue) {
this.testValue = testValue;
}
public String getTestValue() {
return testValue;
}
public T getReturnValue() ... | 20.53125 | 53 | 0.569254 |
6d0a01b7c7666392a3139ee7971a17b43a0b57ed | 4,036 | package timesheet.fetcher.application.service;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.apache.commons.io.FileUtils.readFileToString;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
i... | 42.041667 | 117 | 0.725719 |
d81b5051c41773594c0b786411f86d9eae016587 | 22,235 | package jds.bibliocraft.gui;
import java.io.IOException;
import org.lwjgl.opengl.GL11;
import jds.bibliocraft.CommonProxy;
import jds.bibliocraft.containers.ContainerPainting;
import jds.bibliocraft.helpers.BiblioEnums.EnumBiblioPaintings;
import jds.bibliocraft.helpers.EnumPaintingFrame;
import jds.bibliocraft.help... | 31.185133 | 255 | 0.659006 |
8c4631cef22afeeb6671ba019c90ebbc5d4ebfc0 | 6,244 | package manager;
import models.User;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Rectangle;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.Ex... | 35.276836 | 139 | 0.569987 |
bb4b52cf805d5f57fc555b15e7b24c7a886a6440 | 3,196 | package com.curtisnewbie.webBrowserModel;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
/**
* This class is used to handle the prefix AndQuery, e.g., and(banana,apple). A
* AndQuery consists of a number of subqueries, where th... | 30.438095 | 91 | 0.662078 |
2269ec2213de099fb6cd0d43dad16dd9e59719e8 | 1,289 | package com.stonymoon.bboard.rank;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.stonymoon.bboard.R;
import com.stonymoon.bboard.util.ActivityUtil;
import butterknife.ButterKnife;
public class RankActivity exte... | 29.295455 | 108 | 0.733902 |
d1a07ce14dbe95b75e3728fe9faee3d27c6b992f | 5,024 | /*-
* ========================LICENSE_START=================================
* io.openslice.osom
* %%
* Copyright (C) 2019 - 2020 openslice.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... | 41.520661 | 121 | 0.720939 |
f73fad902fc383bbfc2aa2506b2a708646e32b55 | 950 | package com.sap.primetime.util.configuration;
import java.util.List;
import java.util.Properties;
import org.apache.commons.lang3.StringUtils;
import com.sap.primetime.dao.ConfigDAO;
import com.sap.primetime.dao.entities.Config;
public class ConfigDBAdapter implements ConfigAdapter {
@Override
public Properties g... | 25.675676 | 108 | 0.748421 |
9271fba81f32584f8967fd8056e5ec8f025474dc | 132 | package net.avicus.magma.api.graph.types.friend;
public interface FriendQueryDefinition {
void define(FriendQuery builder);
}
| 18.857143 | 48 | 0.787879 |
1042c6fbc3eaefc5b078bc45d2564ff0b2937d41 | 9,946 | import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
/* sh gives the position, im[sh gives the nb of the image 0 to 4 or highlighted 5-9
occ occupied by fixed shape, no memory for moving shape
*/
public class Rowof3 extends Applet implements KeyListener, Runnable , MouseListener
{ in... | 39.784 | 112 | 0.621355 |
2d4919a1b95c9bbfa36f766dd3f4f32ac3fced24 | 1,725 | package ejercicios2p.json;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.*;
public class CountryUI extends JFrame implements ItemListener {
... | 28.278689 | 64 | 0.606377 |
080e847572cbf1c43fce8653ab7dd1c179452735 | 21,028 | package fi.hut.soberit.agilefant.business.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.SpreadsheetVersion;
import org.apache.poi.ss.usermodel.Cell;
i... | 41.639604 | 94 | 0.64495 |
fa3cf453a42c2a2df83368aa856cba347f954005 | 175 | package poussecafe.attribute.set;
import java.util.Set;
import poussecafe.collection.SetEditor;
public interface EditableSet<T> extends Set<T> {
SetEditor<T> edit();
}
| 17.5 | 48 | 0.76 |
b3cbbb1209ee62d10b4de5daefee2f371ad5c9af | 4,660 | package org.dnacronym.hygene.persistence;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collections;
import static org.assertj.core.api.Assertions.... | 35.846154 | 115 | 0.695279 |
49de3118e19a8873f817580e72cc0672eca1bed3 | 4,599 | package edu.ucar.unidata.wmotables.domain;
import java.util.Date;
import java.io.Serializable;
/**
* Object representing a User.
*
* A User is person with an account in the wmotables web app.
* The User attributes correspond to database columns.
*/
public class User implements Serializable {
private int... | 22.325243 | 82 | 0.572951 |
76aeec61c36cca3801a0fda90ebf83a093d768f8 | 337 | package co.jdti.example.client.app.models;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@Data
@NoArgsConstructor
public class Producto {
private String id;
private String nombre;
private Double precio;
private Date createdAt;
private String foto;
private Catego... | 17.736842 | 42 | 0.750742 |
4256b6f1fed6f76ac4193c0ed391d6db520d4868 | 1,388 | /*
* Copyright (c) 2010, Rickard Öberg. 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 applicable l... | 44.774194 | 112 | 0.761527 |
4824051d07f4163c9ee3c5a91060152020da7a6b | 1,476 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this.left = left;
* ... | 25.448276 | 140 | 0.578591 |
a3e8b6ea9864ca9a9583b693d29b7b94ff5a0354 | 3,834 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 25.731544 | 89 | 0.608764 |
79c015a636cab7a7eab38c4c682c009551a48689 | 1,918 | /*
* Copyright 2016 JSpare.org.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 28.626866 | 80 | 0.716893 |
10f78e62e3dd9735da70decffa986e3c6f10fa2e | 29,349 | package com.j256.twofactorauth;
import java.security.GeneralSecurityException;
import java.security.SecureRandom;
import java.util.Arrays;
import java.util.Random;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
/**
* Implementation of the Time-based One-Time Password (TOTP) two factor authenticati... | 39.500673 | 120 | 0.694402 |
27982bae0e4b2be985ff88b48157c345e7bdc26b | 2,288 | package com.smartkaya.api.utils;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import com.smartkaya.bean.GridColumn;
/**
* MapUtils Class
* @author LiangChen 2018/4/27
* @version 1.0.0
*/
public class MapUtils {
public static class MapComparatorDesc implements Comparato... | 26.917647 | 105 | 0.670892 |
c585881a62ec13248d24c79502a28ad871692a63 | 4,531 | /**
* This class is generated by jOOQ
*/
package org.jooq.examples.sqlserver.adventureworks.production.tables;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings("all")
public class ProductCostHistory extends org.jooq.impl.TableImpl<org.jooq.examples.sqlserver.adventureworks.production.tables.re... | 46.234694 | 246 | 0.796954 |
c64d2b7d9a362e3f2e444431b50e659a9346120b | 1,801 | package com.mypls.model;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.*;
@Entity
@Table
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String first_name;
... | 21.698795 | 228 | 0.609106 |
2a688b06db1b8331b129213ecc944f3625c2921e | 33,647 | /**
* Copyright 2005 Sakai Foundation Licensed under the
* Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable law or a... | 39.261377 | 178 | 0.643237 |
1c774162f2de3f90c2be40bffb06bf95c054bfa6 | 28,308 | package com.braintreepayments.api;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentActivity;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import ... | 48.555746 | 146 | 0.736718 |
d523331361ea7d42d0e0c072cffca1d72d442fe3 | 1,793 | /**
*
*/
package org.irods.jargon.core.connection;
/**
* Factory that will create authenticated and connected
* {@code IRODSMidLevelProtocol} implementations.
*
* @author Mike Conway - DICE (www.irods.org) see http://code.renci.org for
* trackers, access info, and documentation
*
*/
public class IRODS... | 38.148936 | 91 | 0.762409 |
2ee85c0cd36e64cd91b5c3abfa8cc71a352bf39c | 311 | package com.youkol.designpattern.abastractfactory;
/**
* Create java product family.
* Java classroom note implementation for INote interface.
*
* @author jackiea
*/
public class JavaNote implements INote {
@Override
public void edit() {
System.out.println("java note...");
}
}
| 18.294118 | 58 | 0.672026 |
9825350e2e9752872be5c97c5a838f6f80fce8f7 | 4,711 | package com.fxyublib.android.FxAppTangPoetry.base;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wi... | 33.176056 | 125 | 0.670558 |
93cbdbb1855277a0af04a231fa825e5ce39411cf | 1,972 | /**
* Copyright 2017 Goldman Sachs.
* 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 ... | 42.869565 | 216 | 0.756085 |
6a24a923e8959c3880c17279ee25192eb2d57f88 | 492 | package br.edu.iftm.os.bean;
import br.edu.iftm.os.logic.DetalhesLogic;
import br.edu.iftm.os.model.Detalhes;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;
import lombok.Getter;
@Named
@SessionScoped
@Getter
public class DetalhesBean extends CrudBean<Detalhes, ... | 18.923077 | 69 | 0.739837 |
b7abbc022c5176c6e0609c9038e29b494136f221 | 1,937 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.87037 | 84 | 0.739804 |
1aa89b62b97de5fe3a48cdb7e201ff6afcf01c25 | 13,992 | package signature.chemistry;
import java.util.List;
import junit.framework.Assert;
import org.junit.Test;
import signature.ColoredTree;
import signature.SymmetryClass;
import signature.chemistry.AtomPermutor;
import signature.chemistry.AtomSignature;
import signature.chemistry.Molecule;
import signature.chemistry.M... | 34.80597 | 82 | 0.619068 |
a2f381262daa4fe4f1cb9cad494ba320f19361cd | 3,604 | /*
* MIT License
*
* Copyright (c) 2018-2019 Ctrip.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | 31.068966 | 81 | 0.624861 |
7a31f1fe8fc44ea5f8dc0fb893acf3703948dcbf | 307 | package java.net;
import java.io.IOException;
public class UnknownHostException extends IOException {
private static final long serialVersionUID = -8591190820764269618L;
public UnknownHostException(final String message) {
super(message);
}
public UnknownHostException() {
super();
}
}
| 19.1875 | 69 | 0.752443 |
4a0da20d26127c5f4d6c9c1b0c56d537f3dd5019 | 4,097 | package pushdown.transition;
import org.javatuples.Pair;
import org.javatuples.Triplet;
import static org.junit.Assert.*;
import org.javatuples.Tuple;
import org.junit.Before;
import org.junit.Test;
import pushdown.transition.PDATransition;
import state.State;
import symbol.Symbol;
import transition.SymbolList;
impo... | 28.451389 | 98 | 0.68001 |
de9a88dc02c0feeb3ff72be60df654851b349fcf | 1,393 | package study.ywork.web.config;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
import study.ywork.web.test.app.AppOneConfig;
import study.ywork.web.test.app.AppTwoC... | 43.53125 | 113 | 0.788227 |
bef6edff42fc3049ca2281d2a448f96ed2578c62 | 10,891 | /* ###
* IP: GHIDRA
*
* 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 writin... | 36.670034 | 102 | 0.704618 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.