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 |
|---|---|---|---|---|---|
f977c94eb1b42dc15600bd8e71084db586fb13d7 | 26,953 | /*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2019 Guardsquare NV
*
* 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
* Softwar... | 34.117722 | 151 | 0.565503 |
47df6d0c8097a55b156faa323ae34590453b6d7a | 4,007 | package com.github.zhuyizhuo.generator.mybatis.generator.service.template.freemarker;
import com.github.zhuyizhuo.generator.enums.TemplateTypeEnums;
import com.github.zhuyizhuo.generator.enums.ModuleTypeEnums;
import com.github.zhuyizhuo.generator.mybatis.generator.service.template.TemplateGenerateService;
import com.... | 46.057471 | 117 | 0.66883 |
6dbb8f0e77c3c00fba189c9b12eb901d526508c9 | 2,538 | /**
* Copyright 2014 NAVER Corp.
* 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 ... | 32.126582 | 111 | 0.652876 |
4610b6df01c9cac419250c52b415e746239d5d21 | 119 | package com.google.android.gms.tagmanager;
interface zzau {
void dispatch();
void zzg(long j, String str);
}
| 14.875 | 42 | 0.689076 |
7ddbc99e4f07bc15d55105a755f615881e83c07c | 2,461 | package com.creed;
import com.creed.constant.JobType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframew... | 36.731343 | 151 | 0.739943 |
247eacfd70a856f9edccaf1f8fd60241489f2eda | 86,134 | /*
* This file was automatically generated by EvoSuite
* Fri May 22 19:41:09 GMT 2020
*/
package com.alibaba.fastjson.parser;
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.alibaba.fast... | 39.348561 | 245 | 0.681322 |
b9dde7db2fd46f159f2b4079067b131cb56f38ce | 631 | package org.cang24.tests.changemaking.model.vault;
import org.cang24.tests.changemaking.model.ItemValue;
public class Cash implements ItemValue {
public enum CASH_TYPE{
COIN,
TICKET
}
private static int idCounters[] = new int[2];
private CASH_TYPE type;
private int value;
private int id;
... | 18.028571 | 56 | 0.651347 |
dbab22348806b01aa79e37a9b00734c88de49c5a | 220 | package de.dieklaut.camtool;
import java.time.Instant;
/**
* A {@link SourceFile} is the initial artifact of a {@link Group}
* @author mboonk
*
*/
public interface SourceFile {
public Instant getCreationDate();
}
| 16.923077 | 66 | 0.713636 |
05f93667ab68ab92a2f92d81950135852d8cb99e | 2,659 | package com.george.recipeapp.services;
import com.george.recipeapp.commands.RecipeCommand;
import com.george.recipeapp.converters.RecipeCommandToRecipe;
import com.george.recipeapp.converters.RecipeToRecipeCommand;
import com.george.recipeapp.domain.Recipe;
import com.george.recipeapp.repositories.reactive.RecipeReact... | 38.536232 | 171 | 0.711922 |
ce7593a2dc746e09dbb21ffbe22d84f2f2eb9df6 | 186 | class BitWiseNOT
{
public static void main(String arr[])
{
int x=2;
int a ;
a = ~x; // Bit-wise NOT operator
System.out.println("The bit-wise NOT of 2 is: " +a) ;
}
}
| 16.909091 | 55 | 0.580645 |
bf6203cf81ffce76f85d6d1abb14eb9f396bdf7b | 3,125 | package com.droidfoundry.droidmetronome.control;
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.os.Vibrator;
/**
* Created by pedro on 27/06/15.
*/
public class HardwareActions {
private static HardwareActions ourInstance = new HardwareA... | 26.939655 | 95 | 0.57888 |
36ae40ba5ddc8f1ede15cae1b546f245345d5311 | 847 | package it.unibo.pensilina14.bullet.ballet;
import it.unibo.pensilina14.bullet.ballet.menu.controller.Difficulties;
import it.unibo.pensilina14.bullet.ballet.menu.controller.Resolutions;
public class GameInfoImpl implements GameInfo{
private Resolutions resolution;
private Difficulties difficulty;
public GameIn... | 22.891892 | 83 | 0.792208 |
3a44c967c405a723e2d0033672320dddd0933f95 | 3,951 | package sample;
import javafx.application.Application;
import javafx.stage.Stage;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import sample.api.APIWrapper;
import sample.data.Champion;
import sample.data.RunePage;
import sample.imgcap.WindowScraper;
import java.util.ArrayList;
import ... | 35.918182 | 125 | 0.700076 |
7a75dd125b77b51ff2ca75d54c298736855ccd92 | 4,423 | /*
* 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")... | 48.076087 | 140 | 0.727108 |
7684f6a187831d1fcc16e24954a890f228969160 | 6,331 | package com.khorium.publicfarm.database;
import com.khorium.publicfarm.Utils.LogUtil;
import com.khorium.publicfarm.Utils.MsgUtil;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
public class D... | 32.803109 | 80 | 0.559153 |
092b524c7bcf629f55a7b6cbf705518871a715a4 | 274 | package client1;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import generic.Client;
import service.Service;
public class Client1 extends Client {
@Inject
public Client1(@Named("client1") Service service) {
super(service);
}
}
| 19.571429 | 55 | 0.722628 |
f4950b3e1602ffc2b0fdb01a57c06fb4f0fdc5bb | 948 |
interface Shape {
void draw();
}
class Rectangle implements Shape {
@Override
public void draw() {
System.out.println("Rectangle::draw()");
}
}
class Square implements Shape {
@Override
public void draw() {
System.out.println("Square::draw()");
}
}
class Circle implements Shape {
@Override
public void ... | 15.290323 | 43 | 0.67827 |
30041df8a8ae2148649e62c04b1ad9acda2d1f39 | 2,641 | /*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... | 28.706522 | 80 | 0.588413 |
902ed52e7fc3b42c2104676f9e1a9e9737fb48c0 | 573 | package duke.learn.lesson09.di.ci.inheritance.xml;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Application {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicatio... | 33.705882 | 90 | 0.701571 |
2637551fab261a373b0e73d9285f562ca579ee2c | 2,665 | /**
* LEIDOS CONFIDENTIAL
* __________________
*
* (C)[2007]-[2014] Leidos
* Unpublished - All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the exclusive property of Leidos and its suppliers, if any.
* The intellectual and technical concepts contained
* herein are proprieta... | 28.052632 | 95 | 0.697186 |
b5b51ca78304629b51f6c5ec741a9fd769ad4e4d | 206 | package com.deer.wms.bill.manage.model;
import com.deer.wms.project.seed.core.service.QueryCriteria;
/**
* Created by on 2018/12/30.
*/
public class MtAloneTagCriteria extends QueryCriteria {
}
| 20.6 | 61 | 0.73301 |
59d8650327391887f8b84a22d444f6a472679900 | 832 | package study.ywork.web.test.request.path;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
... | 29.714286 | 94 | 0.725962 |
3c56fafb939453dc2c1e7282d6172058e4371091 | 810 | package cn.felord.wepay.ali.sdk.api.domain;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField;
/**
* yufalingsanyaowub
*
* @author auto create
* @version $Id: $Id
*/
public class AlipayOpenAppYufalingsanyaowubYufalingsanyaowubQueryModel extends AlipayOb... | 20.25 | 93 | 0.690123 |
da0d9537d69bc7ec7abba300e184bb17a7b9d56a | 826 | package io.yaoo.test;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import java.util.Date;
import java.util.Map;
public class JWTSignVerify {
private byte[] secret;
public JWTSignVerify(String secret){
this.secret = secret.getBytes();
}
... | 22.944444 | 59 | 0.605327 |
53dce6d8d1954c999703ce03de6238ab94369c6c | 1,101 |
public class recursividadpregunta0a {
public static void main (String[] args) {
// Inicio
int kwconsumidos;
// Leer Consumo Kw/h en Cada Departamento del Condominio
kwconsumidos=358;
double precio;
precio=0;
// Calcular Precio
/... | 28.230769 | 66 | 0.518619 |
bbecd1b3b7a427a36fc31e6c86cc5ed633769927 | 3,171 | /*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS... | 34.096774 | 90 | 0.705456 |
0d4d4a029e72cb5f4a03ffb751befeafd4c81659 | 774 | package com.alibaba.alink.operator.batch.classification;
import org.apache.flink.ml.api.misc.param.Params;
import org.apache.flink.types.Row;
import com.alibaba.alink.operator.common.tree.TreeModelInfo;
import com.alibaba.alink.operator.common.tree.TreeModelInfo.GbdtModelInfo;
import com.alibaba.alink.operator.common... | 27.642857 | 82 | 0.813953 |
4c5f8e2bc052143eb4d06f4cf1e7a56462edba21 | 1,115 | package ast;
import lib.FOOLlib;
public class IfNode implements Node {
private Node cond;
private Node th;
private Node el;
public IfNode (Node c, Node t, Node e) {
cond=c;
th=t;
el=e;
}
public String toPrint(String s) {
return s+"If\n" + cond.toPrint(s+" ")
+ th.toPr... | 21.037736 | 68 | 0.565919 |
26ea3f6bd879fefa3212823c69811c081be89220 | 364 | class Solution {
public int longestPalindrome(String s) {
int[] map = new int[128];
for(char a : s.toCharArray()){
map[a] += 1;
}
boolean hasOdd = false;
int total = 0;
for(int m : map){
total += (m/2 * 2);
}
if(total < s.leng... | 24.266667 | 44 | 0.442308 |
15ae0ee6aef6d717705cb36efd41d6b7e22d1966 | 2,972 | package com.baomidou.mybatisplus.test.h2;
import com.baomidou.mybatisplus.test.h2.keygenerator.mapper.ExtendKeyGeneratorMapper;
import com.baomidou.mybatisplus.test.h2.keygenerator.mapper.KeyGeneratorMapper;
import com.baomidou.mybatisplus.test.h2.keygenerator.mapper.LongKeyGeneratorMapper;
import com.baomidou.mybatis... | 45.723077 | 88 | 0.80249 |
8449cb15cb36c06eca143bf6f8e7554375070714 | 204 | package com.example.openticket.command;
public class BookingCommand implements IBookingCommand {
@Override
public void bookShow() {
}
@Override
public void unBookShow() {
}
}
| 14.571429 | 57 | 0.676471 |
5a0af1cf0198900ed57ddc52eecee8e380a1a1cc | 3,736 | /* file: DataStructuresHomogenTensor.java */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* 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 ... | 33.357143 | 102 | 0.574143 |
544e9aff75aa9b8cedc26e3a41243a143f683907 | 6,324 | package com.radish.master.controller.project;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.hibernate.type.StringType;
import org.hibernate.type.Type;
import org.springframework.be... | 31.939394 | 157 | 0.695446 |
7f62b5f6695e328765f317291a0159a4f471c224 | 7,059 | package SortedMap;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import SkipList.*;
/* Coverage is 97.8 %, if you only look at the Sorted Map package and all 19 tests pass.
*/
public class UnitTesting {
SortedMap MAP = new SortedMap(... | 27.466926 | 142 | 0.657742 |
c427f0e1f564276a07d9407b78d09831679eaa00 | 2,431 | package com.github.jvmgo.classfile.attributes;
import com.github.jvmgo.classfile.ClassReader;
import com.github.jvmgo.classfile.constantpool.ConstantPool;
/*
attribute_info {
u2 attribute_name_index;
u4 attribute_length;
u1 info[attribute_length];
}
*/
public interface AttributeInfo {
void readInfo(C... | 33.763889 | 91 | 0.620732 |
87f89ce0f54dfd61f291689c9e6bc0f310cd69cb | 682 | package com.raven.example.dp.structural.proxy.ex2;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class InvocationSubject implements InvocationHandler {
private Object target;
public InvocationSubject(Object target) {
this.target = target;
}
private void... | 22 | 87 | 0.658358 |
57a6e086102bc07ce5a3613417160596ba7958fe | 930 | package com.plugin.gateway.configs;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOE... | 40.434783 | 170 | 0.788172 |
2950a0d52f12b27bb043c795f8fea6f7940bc1ce | 44,722 | /*******************************************************************************
* Copyright (c) 2017 Microsoft Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and... | 35.521843 | 95 | 0.620366 |
af81a63c89294313ae3aaadc048ad33a034e3c02 | 3,408 | package enigma.core.util;
import org.junit.jupiter.api.Test;
import static enigma.core.util.Letter.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* LetterTest
*
* @author diegodc 2017-02-05
*/
class LetterTest {
@Test
void... | 28.881356 | 114 | 0.588908 |
f93f4c4c8621384df74f13f6f76391fd3fab91b7 | 1,347 | package com.github.coderoute.users;
import com.github.coderoute.ResourceNotFoundException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
@Service
public class UserService ... | 28.659574 | 111 | 0.689681 |
05e86f5256366f7ba259b5caee2d4136953b444a | 7,595 | package io.scribeapp.settings;
import java.util.ArrayList;
import io.scribeapp.R;
import io.scribeapp.input.Utils;
import io.scribeapp.classifier.gesture.GestureLibraryClassifier;
import android.app.Activity;
import android.gesture.Gesture;
import android.gesture.GestureLibraries;
import android.gesture.GestureLibrary... | 29.324324 | 113 | 0.741409 |
5b96ec4c4c5048a2f2340c73ca2b38891627dd68 | 1,904 | package org.colorcoding.tools.btulz.transformer;
import java.io.File;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import org.colorcoding.tools.btulz.Environment;
import org.colorcoding.tools.btulz.transformer.region.RegionDomain;
/... | 29.75 | 100 | 0.638655 |
210342b8a60f47296da61977ffa7ec288c2edc56 | 6,560 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.az... | 27.679325 | 109 | 0.647256 |
18ae7a8a982f054d92ee7917fc8d9c73067e0b73 | 2,601 | // Template Source: BaseMethodCollectionPage.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -----------------------------... | 54.1875 | 267 | 0.7797 |
5e6f905dbe6887774ad34a95a578d3531e54d06d | 2,807 | /*
* 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 ... | 29.861702 | 75 | 0.609191 |
24a5a87da8a4c8a1da9bc4207f022d1e425fbffc | 2,145 | package data7.model.vulnerability;
/*-
* #%L
* Data7
* %%
* Copyright (C) 2018 University of Luxembourg, Matthieu Jimenez
* %%
* 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
*
* ... | 25.843373 | 75 | 0.67972 |
7fc9ca8012c427067fb3ef34e9acbacbe4d5342c | 2,068 | package ssm;
import com.google.gson.Gson;
import java.util.HashMap;
import java.util.Objects;
public class Parameter {
private final String name;
private final Environment environment;
private String value;
public Parameter(String name, Environment environment) {
this.name = name;
th... | 25.85 | 115 | 0.612669 |
710351b08604244e85cd4451e998fc6d608b5431 | 607 | package com.google.android.play.core.internal;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
/* renamed from: com.google.android.play.core.internal.ca */
public abstract class C1967ca implements Closeable {
/* renamed from: a */
public abstract long mo33992a();
/* acce... | 28.904762 | 77 | 0.710049 |
724aebf1fd8b2a393e57984e334c76eaf43d7293 | 3,280 | package com.btaz.util.files;
import com.btaz.util.mr.MapReduceException;
import com.btaz.util.mr.Mapper;
import com.btaz.util.mr.OutputCollector;
import com.btaz.util.unit.ResourceUtil;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import java.util.List;
import static o... | 30.37037 | 113 | 0.604573 |
80b63b3e652b36af858e9cacf6a3d0d92686bdb8 | 1,002 | package com.javayh.common.exception;
import com.javayh.common.constants.ResponseCode;
import com.javayh.common.constants.ServerResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springf... | 28.628571 | 72 | 0.765469 |
383014392040d9b8c5d70ef90cc7d27338735003 | 16,984 | /*
* Copyright 2022 Red Hat
*
* 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 ... | 37.492274 | 127 | 0.633302 |
55a3842d7def46bbba4eb13858302d4070e0bf6a | 354 | package com.moysklad.dao.domain.documentsDaoHibernate;
import com.moysklad.dao.hibernateDao.CrudHibernateDao;
import com.moysklad.model.MovingOfProduct;
import java.util.List;
public interface DocumentsMovingHibDao extends CrudHibernateDao<MovingOfProduct, Integer> {
List<MovingOfProduct> findAll();
MovingO... | 27.230769 | 91 | 0.819209 |
72eb0cc141bef507ce3704b9ca08ae4532b84bb0 | 8,091 | /**
* 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.800885 | 86 | 0.718205 |
e0085d57def9cbf51a047e511d196bc9853fc034 | 3,860 | package detailedTechnology.blocks.tanks.blockEntity;
import detailedTechnology.code.TankUtilities;
import detailedTechnology.code.ImplementedInventory;
import detailedTechnology.group.machine.Pipes;
import detailedTechnology.group.items.Materials;
import detailedTechnology.blocks.tanks.screenHandler.BarrelScreenHandle... | 32.991453 | 124 | 0.703368 |
83be08c64918ff40d8f85266dd6eb06f7869e7b8 | 1,686 | package com.rkb.springboot.caching.service;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cac... | 27.639344 | 93 | 0.723013 |
ed681767f2ec8cbf5b3addc449b6b5afcb69b2d3 | 4,789 | package net.savantly.aloha.importer.domain.itm;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.cache.annotation.Cacheable;
import ... | 18.490347 | 77 | 0.751096 |
d9158838a960410ce2a39099041a675b5cf03aba | 862 | package ec.edu.espe.monster.aerolineacondor.model.entity;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistenc... | 22.102564 | 57 | 0.774942 |
647009c89db30f09f5490a02b18cddbe43b14ed1 | 4,392 | package com.evvanErb.minesweeper.view.terminalview;
import com.evvanErb.minesweeper.model.board.GameStatus;
import com.evvanErb.minesweeper.viewmodel.gamemanager.GameManager;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Scanner;
import java.util.regex.Matcher;
... | 36.907563 | 134 | 0.607468 |
87a12a57653481df82902566101948395777c0a5 | 1,959 | package com.bartosektom.letsplayfolks.controller;
import com.bartosektom.letsplayfolks.constants.ActiveTabConstants;
import com.bartosektom.letsplayfolks.constants.GameConstants;
import com.bartosektom.letsplayfolks.exception.EntityNotFoundException;
import com.bartosektom.letsplayfolks.repository.GameRepository;
impo... | 42.586957 | 120 | 0.806023 |
6d2b4aa91237c17163ad49426dce9975a1d1ef3f | 7,674 | /*
* Copyright 2016 - 2019 Acosix GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 33.220779 | 131 | 0.623664 |
1de0d75651ebc65b6778aebbf497b9211bd45638 | 643 | package edu.tamu.scholars.middleware.graphql.config.model;
import java.util.ArrayList;
import java.util.List;
public class Composite {
private String type;
private List<CompositeReference> references;
public Composite() {
this.references = new ArrayList<CompositeReference>();
}
public ... | 19.484848 | 68 | 0.66874 |
e766a61617cadfb7329597e6162e73d42c3040cd | 1,104 | package com.java110.things.dao;
import com.java110.things.entity.parkingArea.ParkingBoxDto;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @ClassName IParkingBoxServiceDao
* @Description TODO
* @Author wuxw
* @Date 2020/5/15 21:02
* @Version 1.0
* add by wuxw 2020/5/15
**/
@Mapper
p... | 18.711864 | 68 | 0.632246 |
4cce4918b6f721f9d046738cddc5ca169f46e35b | 3,216 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. The ASF licenses this file to You
* under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 45.942857 | 466 | 0.708022 |
5c52985f84eab5e3c5275220386625dcbdde0d54 | 4,586 | package io.github.muddz.styleabletoast.demo;
import android.graphics.Color;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import io.github.muddz.styleabletoast.StyleableToast;
import io.github.muddz.styleabletoast.demo.databinding.ActivityMain... | 26.508671 | 99 | 0.573266 |
590d716af54e3872a4b902525945e6aa288daa17 | 13,137 | package mekanism.common.item;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import mekanism.api.Coord4D;
import mekanism.api.EnumColor;
import mekanism.common.config.MekanismConfig.general;
import mekanism.common.util.ItemDataUtils;
import mekan... | 29.721719 | 258 | 0.696125 |
59883c8066076292b0f32e05669e8d27382c4225 | 778 | package wxm.example.comical_music_server.exception;
/**
* @author Alex Wang
* @date 2020/05/12
*/
public class ParamIsNullException extends RuntimeException {
private final String parameterName;
private final String parameterType;
public ParamIsNullException(String parameterName, String parameterType) ... | 26.827586 | 113 | 0.679949 |
7fc787df0a9464fed06b0e6ed6f11a96a7eeadc8 | 3,107 | /*
* Copyright 2012 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 ... | 36.127907 | 159 | 0.657869 |
17626d012afe43194ab8f382b5edbea3ccea14ff | 2,243 | package controllers.ddmstructure;
import play.data.validation.ValidationError;
import java.util.ArrayList;
import java.util.List;
/**
* Backing class for the Ddmstructure data form.
* Requirements:
* <ul>
* <li> All fields are public,
* <li> All fields are of type String or List[String].
* <li> A public no-arg... | 22.887755 | 79 | 0.724922 |
4176089ced9735f7a4f296ce1d6d89d024c2aef8 | 1,244 | /**
* Definition of Events
*/
package eventbus2;
public interface Event{
public int filter();
}
/**
*
* Example Level1 Market Data Event published by the publisher
*
*/
class MarketDataL1Event implements Event{
/**
* Event Filters
*/
public static final int OPEN = 1;
public static final int ALL = 2;
... | 17.521127 | 74 | 0.692122 |
8b33eef55fcacba1b8e737cfc4abb59b4476b4d2 | 17,766 | package hu.unideb.inf.kondibazis.szolg.test;
import hu.unideb.inf.kondibazis.db.entitas.Konditerem;
import hu.unideb.inf.kondibazis.db.entitas.KonditeremBerlet;
import hu.unideb.inf.kondibazis.db.entitas.KonditeremTag;
import hu.unideb.inf.kondibazis.db.tarolo.KonditeremTagTarolo;
import hu.unideb.inf.kondibazis.szolg... | 43.758621 | 141 | 0.70224 |
0ebb57eaae2b8f02c3adc1162c36232f52698255 | 9,233 | package iiit.speech.dialog;
import android.graphics.Color;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
im... | 37.685714 | 180 | 0.5515 |
e6297e61ebc772439972ac2369d4c99256631901 | 3,754 | import java.util.Scanner;
public class Bank1
{
public static void main(String[] args)
{
Scanner input =new Scanner(System.in);
int userInput ;
//System.out.println(userInput); //this is use to test weather scanner works or not
int size=0; // id of customer
d... | 41.711111 | 264 | 0.577251 |
39e998dbc9788043e237612c01be8db9362b6304 | 1,505 | package com.amankj.news.viewmodel;
import com.amankj.news.BaseTest;
import com.amankj.news.UseCaseProvider;
import com.amankj.news.usecase.TopHeadlinesUseCase;
import io.reactivex.Flowable;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.powermock.api.mockito.PowerMockito;
import or... | 30.714286 | 87 | 0.757475 |
5b711884ef50e13aac0f0fc70a756a5f85207a32 | 87 | /**
* The home for all rest interfaces
*/
package fr.labri.progress.comet.endpoint;
| 14.5 | 41 | 0.712644 |
16bbcea49cfe3cc89d9534b5f3fcd67d289f9c1d | 3,148 | package de.unisiegen.gtitool.core.entities;
import de.unisiegen.gtitool.core.exceptions.alphabet.AlphabetException;
import de.unisiegen.gtitool.core.exceptions.state.StateException;
import de.unisiegen.gtitool.core.exceptions.transition.TransitionSymbolNotInAlphabetException;
import de.unisiegen.gtitool.core.exceptio... | 27.137931 | 94 | 0.609911 |
f003ea86cbc599b88ab8ce0a0cd3cca953415564 | 3,040 | package com.numberone.project.system.areaelectric.service.impl;
import java.util.List;
import java.util.ArrayList;
import com.numberone.framework.web.domain.Ztree;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.project.system.areaelect... | 25.546218 | 108 | 0.672697 |
2b641a7ef6749e1983892e160c0e2124d13e9aa6 | 341 | package me.melyukhov.messenger.common.packages;
import me.melyukhov.messenger.common.messages.TextMessage;
public class MessageFromClientPackage extends Package<TextMessage> {
private static final long serialVersionUID = 9146511765720612075L;
public MessageFromClientPackage(TextMessage message) {
super(... | 26.230769 | 69 | 0.791789 |
b420fd2788c9bdcba207075f57d2b6975e881c0d | 237 | import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({ FileNotFoundTest.class, InvalidInputFormatTest.class, InvalidArgumentTest.class})
public class SparkIndependentTestsSuite {
}
| 26.333333 | 103 | 0.827004 |
aa4632c53cbeb9d05f7abb91518103b09c0c5e81 | 511 | package jenkins.model;
import org.junit.Test;
import static org.junit.Assert.*;
public class IDStrategyTest {
@Test public void hex() throws Exception {
String fn = "$0041";
IdStrategy.CaseSensitive cs = new IdStrategy.CaseSensitive();
assertEquals("A", cs.idFromFilename(fn));
}
... | 25.55 | 69 | 0.659491 |
e98a89fe9c380c781529ce3292a71e0a94db15b0 | 212 | package com.fractal.model;
public class Debouncer {
private int lastvalue = 0;
public int debounce(int value) {
int ret = value < lastvalue ? 1 : 0;
lastvalue = value;
return ret;
}
}
| 15.142857 | 39 | 0.622642 |
45cae4badae368e2a5b687a1459431ede6528375 | 11,110 | /*
* 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 ... | 43.740157 | 129 | 0.611971 |
b6891f0e7d134139da9d77c882ecd65d06b40d67 | 2,803 | /**
* Copyright © 2016 Alibaba Inc . All rights reserved.
*
* @Title: Callback.java
* @Prject: tsmock
* @Package: com.alibaba.tsmock.model
* @Description: TODO
* @author: qinjun.qj
* @date: 2016年12月27日下午1:58:26
* @version: v1.0
*/
package com.alibaba.tsmock.po.http;
/**
* The Class Callback.
*
* @ClassNam... | 15.836158 | 115 | 0.569033 |
887b9695560d94033fab820837337f628e6a1793 | 2,594 | package com.eu.habbo.messages.outgoing.friends;
import com.eu.habbo.habbohotel.messenger.MessengerBuddy;
import com.eu.habbo.habbohotel.users.Habbo;
import com.eu.habbo.messages.ServerMessage;
import com.eu.habbo.messages.outgoing.MessageComposer;
import com.eu.habbo.messages.outgoing.Outgoing;
import gnu.trove.set.ha... | 32.835443 | 114 | 0.634927 |
4b45927fb10e9774e6cdd109bec8dae18362e7b5 | 8,638 | /**
* 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... | 39.990741 | 123 | 0.655823 |
ee70ff85ebf79ce7bab1a366b33b0a2cb5a5da7a | 2,313 | package cn.org.rookie.jeesdp.core.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import java.text.SimpleDateFormat;
/**
* JSON工具类
*
* @... | 21.820755 | 74 | 0.589278 |
bd2e8bed19203ada4c47894e93d0ea987cbe4f64 | 3,421 | package test.tck.msgflow.callflows.recroute;
import java.util.Hashtable;
import javax.sip.SipListener;
import javax.sip.SipProvider;
import org.apache.log4j.Logger;
import test.tck.msgflow.callflows.AssertUntil;
import test.tck.msgflow.callflows.NetworkPortAssigner;
import test.tck.msgflow.callflows.ScenarioHarness... | 30.274336 | 85 | 0.616779 |
689c56c5f44d892ab37911df6532890273d8708e | 3,718 | /*
*
* * Copyright 2022 EPAM Systems, Inc. (https://www.epam.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.... | 37.555556 | 114 | 0.71759 |
a11baf2f7242f2515e9000ef3aad9cc0cfe8b081 | 5,812 | package com.tramchester.livedata.repository;
import com.netflix.governator.guice.lazy.LazySingleton;
import com.tramchester.config.TramchesterConfig;
import com.tramchester.domain.Platform;
import com.tramchester.domain.places.Location;
import com.tramchester.domain.places.Station;
import com.tramchester.domain.places... | 45.76378 | 161 | 0.701308 |
fa2794edc461a8b2b556de5c627b4668b2840056 | 80 | package generics;
public abstract class State implements Comparable<State> {
}
| 16 | 58 | 0.8 |
900fdd43ea99027f55e260cad099eeb47380e22e | 1,913 | package com.tibco.as.spacebar.ui.handlers.space.browse;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.ui.IWorkbenchPage;
... | 36.788462 | 79 | 0.778881 |
29031b893f5ce3522eed4f3c32c3c2a4be75b026 | 2,355 | package utils.generators.base;
import static assertions.Assertions.assertGenerates;
import static assertions.Assertions.assertGeneratesNone;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
import utils.generators.Generator;
public class TerminatingGeneratorTest {
... | 32.708333 | 99 | 0.764756 |
13ffe12481a850940af417d69e46a993ad0c13fd | 876 | /**
*
*/
package com.github.cobolio.internal.util;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
* A loader class for messages used in the library.
*
* @author Andrew
*
*/
public final class Messages {
private static final String BUNDLE_NAME = "com.github.cobolio.internal.u... | 25.764706 | 113 | 0.737443 |
e689aa50266fe6f8d221525e1e57a2c02fc707bf | 289 |
import java.util.Scanner;
public class MainProgram {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
BookList bookList = new BookList();
UserInterface ui = new UserInterface(scanner, bookList);
ui.start();
}
}
| 20.642857 | 64 | 0.640138 |
b55133bebfc28f368fb5487b8e8dd20a3d5484df | 1,595 | package net.minecraft.world.level.levelgen.feature;
import java.util.Optional;
import java.util.Random;
import net.minecraft.core.BlockPosition;
import net.minecraft.world.level.GeneratorAccessSeed;
import net.minecraft.world.level.chunk.ChunkGenerator;
import net.minecraft.world.level.levelgen.feature.configurations.... | 30.673077 | 207 | 0.725392 |
b5ec9a6c79c845d6116d3b61548e759a8db22d67 | 95 | package eta.runtime.exception;
public class TrampolineBounceException extends StgException {}
| 23.75 | 62 | 0.852632 |
b068a9b49dae7bddf6971d3886f7b3b8fb1350d8 | 3,430 | package org.endeavourhealth.transform.tpp.csv.schema.unused.theatre;
import org.endeavourhealth.transform.common.AbstractCsvParser;
import org.endeavourhealth.transform.common.CsvCell;
import org.endeavourhealth.transform.tpp.TppCsvToFhirTransformer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import jav... | 27.66129 | 127 | 0.646356 |
c0750383adbb1772326cff6d2d17afd2ea14ceaf | 17,644 | /*
* Simplicite(R) for Google Android(R)
* http://www.simplicite.fr
*/
package com.simplicite.android.core;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.*;
import android.os.AsyncTask;
/**
* <p>Application user session data</p>
*/
... | 27.917722 | 123 | 0.618907 |
ace3e69be4bba3e59d18c01b04f806f877b665b9 | 1,142 | //
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/leg... | 30.052632 | 75 | 0.626095 |
775ada5c0db6d4f99a9229ed38f63dacb838c467 | 682 | package models;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import models.Car;
//import Car;
import static org.junit.Assert.assertEquals;
public class CarTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
... | 21.3125 | 75 | 0.673021 |
3d95ad803a29e115b1e8bedd649dd2d7c019f683 | 531 | package com.parse.starter;
/**
* Created by hau on 4/12/2015.
*/
public class DTTinTuc {
String idtuade;
String tuade;
String ngaytao;
String noidung;
public DTTinTuc() {
this.idtuade = null;
this.tuade = null;
this.ngaytao = null;
this.noidung = null;
}
p... | 21.24 | 83 | 0.595104 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.