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 |
|---|---|---|---|---|---|
2f2eb41145aa541e2aff4ffc8007cff3f433c75a | 133 | package usa.cactuspuppy.uhc_automation.game;
public enum GameState {
LOBBY,
INITIATING,
ACTIVE,
PAUSED,
ENDED
}
| 13.3 | 44 | 0.676692 |
f5066fad73216e5e2a843d76e743e77e784afac9 | 1,310 | /**
* Copyright 2014 Tampere University of Technology, Pori Department
*
* 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 ... | 22.982456 | 82 | 0.696183 |
702ca9c89448ec5dbdddf423bba2eadbc9530caa | 4,965 | package console;
import javax.swing.*;
import javax.swing.text.BadLocationException;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
import java.awt.*;
/* a class for managing and parsing colors */
public class Colors {
public static final c... | 28.371429 | 127 | 0.646526 |
c8de4d0a7ccd02dd647384e04c2bbcbf91ea3d77 | 3,074 | package xyz.a00000.blog.config;
import org.springframework.http.HttpHeaders;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.oauth2.common.exceptions.InvalidTokenException;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springf... | 48.793651 | 126 | 0.712101 |
05f7c944a877187e9ef3a0c9f3bdfeafbd415e26 | 58,796 | package tool.clients.diagrams;
import java.io.PrintStream;
import java.util.Hashtable;
import java.util.Vector;
import java.util.concurrent.CountDownLatch;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import javafx.application.Platform;
import javafx.scene.control.Tab;
import ja... | 35.785758 | 164 | 0.686322 |
f40164528ff32151c4a799573cc6ca2b61df1952 | 4,287 | package com.wpx.exception;
import static com.wpx.exception.ScheduleErrorCodes.*;
import static com.wpx.exception.ScheduleMessageCodes.*;
/**
* @author 不会飞的小鹏
* 定时任务异常
*/
public enum ScheduleExceptionMessage implements IExceptionMessage {
/**
* 定时任务创建异常
*/
QUARTZJOB_CREATE_EXCEPTION(4001, QUARTZ... | 27.480769 | 139 | 0.720551 |
10f6eb2f9f118b9315610dbb0aac3c463598717a | 3,424 | package net.oschina.app.improve.widget.adapter;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.Spanned;
import android.text.TextUtils;
import net.oschina.app.improve.tweet.activities.TweetTopicActivity;
import net.... | 33.90099 | 115 | 0.647488 |
e9ddc15899e299435ba0927c9bf9302e296fc7a0 | 927 | package com.ConquerorOfTheSky.base;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.Entit... | 34.333333 | 121 | 0.815534 |
cddebd51884b4499f74aa849357503f4c9d8b537 | 10,457 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2010... | 28.807163 | 175 | 0.621306 |
c2ee051f58c378005f395dd3edbae04345406359 | 263 | package ex4_firsttdd;
public class Template1 {
private String varInput;
public Template1(String templateText) {
}
public void set(String variable, String value) {
this.varInput = value;
}
public String evaluate() {
return "Hello, " + varInput;
}
} | 17.533333 | 49 | 0.711027 |
c94547680ca61cfbeebe189613fcf9808de12f1b | 3,539 | /*
* Copyright 2014-2016 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... | 28.772358 | 94 | 0.714326 |
3b61c249527d6fd32a7d5c14c30f29f061c458c8 | 943 | package com.xmen.miwok;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.ArrayList;
public class MainAppPagerAdapter extends FragmentPagerAdapter {
private final ArrayList<Fragment> mFragmentList = new A... | 24.815789 | 81 | 0.717922 |
54ae8d20d3c838681813517160697807af855a2f | 10,955 | package com.asifadam93.gestionnewsforum.activities;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.suppo... | 34.449686 | 136 | 0.591146 |
dc558d5096342c3b649992d6e794d91c66ae3916 | 3,503 | /*
* Swirepay API
* Swirepay REST APIs' are resource-oriented URLs that accept JSON-encoded request bodies, return JSON-encoded responses, and use standard HTTP response codes, authentication, and verbs. You can use the Swirepay API in test mode, which does not affect your live data or interact with the banking netwo... | 20.248555 | 413 | 0.588924 |
3803cc004f71c1f20fc46c31d1dff10f78a56346 | 200 | package com.yifeng.yfshop.commons.mapper;
import com.yifeng.yfshop.commons.domain.TbItemParam;
import tk.mybatis.mapper.MyMapper;
public interface TbItemParamMapper extends MyMapper<TbItemParam> {
} | 28.571429 | 66 | 0.835 |
1a25aab425a4b151e5aa411f96adb3149da0840e | 4,891 | /*
* 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 de.guntram.mcmod.easiercrafting;
import com.google.gson.JsonElement;
import java.io.File;
import java.io.IOException;
import j... | 30.955696 | 135 | 0.657534 |
7ba889942a3333b9c53ac8b20b2006d4c7958a6b | 2,505 | package saveTracks;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Label;
import java.awt.TextField;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.CompoundBorder;
import javax.swing.border.Empt... | 36.838235 | 103 | 0.742116 |
519bc60124e4dd827649d3fdff9a00d65c7461e0 | 21,912 | package com.fafu.polutionrepo.finished.Util;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.Typeface;
import android.icu.util.Calendar;
import android.media.ExifInterface;
import android.support.design.inter... | 43.824 | 845 | 0.636364 |
bbc47100ef5fcc0bc793eec9895df48525d47c53 | 3,583 | import com.pful.pico.db.Field;
import com.pful.pico.db.Finder;
import org.junit.Test;
import java.util.ArrayList;
/**
* Created by daeyeon on 12/22/15.
*/
public class UsageTest
{
@Test
public void simpleFieldUsageIsString()
{
System.out.println(
Finder.newQuery()
.field("a").is("b")
.t... | 17.915 | 69 | 0.531956 |
de5b06cd9f7b42a59205a5ffe105e4f190875ab4 | 1,964 | /**
* Copyright 2022 Joshua Zierman
*
* 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 applic... | 31.174603 | 78 | 0.645621 |
b431792ccea582c98395fb18aaafbbee73ec767c | 152 | package com.technawabs.pocketbank.ui.cloudchip;
public interface ChipListener {
void chipSelected(int index);
void chipDeselected(int index);
} | 25.333333 | 47 | 0.776316 |
4edd31b27e3cd4a9c533fe340077076ada6a73c9 | 11,053 | package com.github.florent37.bubbletab;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.annotation.ColorInt;
import android.support.annotation.DrawableRes;
import android.support.... | 34.433022 | 127 | 0.578033 |
3e561263f15f285f867991a2f1a6b71b58c7fa72 | 20,740 |
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
*
* @author LevelX2
*/
public final class Conspiracy extends ExpansionSet {
private static final Conspiracy instance = new Conspiracy();
public static Conspiracy getInstance() {
re... | 96.465116 | 130 | 0.722179 |
27389ceba28d2579af2c5ef88b66ea9e24924bac | 2,553 | package com.ectosense.nightowl.service.impl;
import com.ectosense.nightowl.data.entity.User;
import com.ectosense.nightowl.data.enums.UserRole;
import com.ectosense.nightowl.data.repository.UserRepository;
import com.ectosense.nightowl.exception.ResourceExistException;
import com.ectosense.nightowl.exception.ResourceN... | 33.155844 | 98 | 0.719546 |
535fffff0fc9b92c7f4c995500c25dc039054d9f | 1,176 | package orm.integ.eao.cache;
import java.util.Date;
import orm.integ.dao.DataAccessObject;
import orm.integ.dao.sql.QueryRequest;
public abstract class QueryCache<T> {
public QueryCache(QueryRequest queryRt) {
this.request = queryRt;
}
public abstract void doQuery(DataAccessObject dao) ;
protected final Q... | 17.552239 | 53 | 0.729592 |
b97790234ce4f8110f049eefda40bcfed4811fee | 6,833 | package de.dc.spring.bootstrap.blog.model.gen;
import de.dc.spring.bootstrap.blog.model.Tile;
import de.dc.spring.bootstrap.blog.model.TileSmallSection;
import de.dc.spring.bootstrap.blog.model.gen.IGenerator;
import org.eclipse.emf.common.util.EList;
import org.eclipse.xtend2.lib.StringConcatenation;
@Suppre... | 38.823864 | 156 | 0.560661 |
d62cb084e500c1cf53d7636d7f152baf14ecefae | 1,089 | package pl.greywarden.openr;
import de.saxsys.mvvmfx.FluentViewLoader;
import de.saxsys.mvvmfx.spring.MvvmfxSpringApplication;
import javafx.application.Application;
import javafx.beans.property.ReadOnlyBooleanProperty;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.springframework.boot.autoconfigure... | 35.129032 | 148 | 0.747475 |
0e0072ab432a6a9bac81d42b2dd2b8e531c5b736 | 14,065 | package cn.sy.ws.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOEx... | 28.762781 | 126 | 0.741628 |
cde170c617a6dbcb4aaedcbe5db708a24eb11af1 | 3,146 | package sample;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.github.fge.jackson.JsonLoader;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
import com.github.... | 37.452381 | 98 | 0.795931 |
606660eda4458fd4d352abdf6f78d910c10832d5 | 4,144 | /* This file was generated by SableCC's ObjectMacro. */
package org.sablecc.objectmacro.intermediate.macro;
public class Macros {
private VERSIONS version;
public Macros(
VERSIONS version) {
if (version == null) {
throw ObjectMacroException.versionNull();
}
... | 17.266667 | 76 | 0.618485 |
b46a40ef8c184eb6390d097489e79cecf4e78c60 | 3,661 | package com.rewedigital.composer.routing;
import static com.rewedigital.composer.routing.RouteTypeName.PROXY;
import static org.assertj.core.api.Assertions.assertThat;
import java.time.Duration;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
... | 41.134831 | 119 | 0.706911 |
66093fd09b970f1146fec569de38bebc2f20c09a | 756 | package br.com.brunofernandes.folhapagamento_b.domain;
public class Mensalista extends Funcionario {
protected double salario;
public Mensalista(int matricula, String nome, String cargo, double salario) {
super(matricula, nome, cargo);
this.salario = salario;
}
@Override
public String calcularSalario(... | 28 | 78 | 0.653439 |
b6b612b82a1264cc1283025defe8bce665951dd7 | 40,178 | /**
Copyright (c) 2016 HF Robotics (http://www.hfrobots.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, modify, ... | 40.831301 | 119 | 0.63256 |
de0cdb766424d6402fddf9cbd5512579e9a9cad2 | 10,255 | package my.poc.demo.widget;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import com.unionbroad.app.util.Logger;
import com.huamai.poc.greendao.ChatMessage;
... | 37.981481 | 183 | 0.577864 |
330d50b1dcdac4f69f173a61912a2f600162b0ac | 629 | package za.co.neildutoit.jSatisfactorySaveLoader.game.buildable.vehicle;
import za.co.neildutoit.jSatisfactorySaveLoader.game.SaveObjectClass;
import za.co.neildutoit.jSatisfactorySaveLoader.game.SaveProperty;
@SaveObjectClass("/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_Golfcart.BP_Golfcart_C")
public class Golf... | 33.105263 | 90 | 0.828299 |
cd56c10717f6cefad87bbdffc3cddf4345db84e9 | 5,231 | package com.wubaoguo.springboot.jwt;
import java.util.HashMap;
import java.util.Map;
import net.minidev.json.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.wustrive.java.core.exception... | 34.189542 | 103 | 0.610017 |
fc560d0966232a156e1640b0173568bace43076a | 857 | package io.metadew.iesi.runtime.definition;
public class LookupResult {
private String value;
private String type;
private String context;
private String inputValue;
// Constructors
public LookupResult() {
}
// Getters and setters
public String getValue() {
return value;... | 15.303571 | 50 | 0.603267 |
2c3619c80cc96bd8566a0c14c42f27ffc1697411 | 14,952 | /* Ideal over a Polynomial ring - Groebner basis methods
* @(#) $Id: Ideal.java $
* 2019-05-17: PolynomialParser -> Polynomial
* 2016-07-09: Signature
* 2015-11-16, Georg Fischer: extracted from Polynomial.java
*/
/*
* Copyright 2015 Dr. Georg Fischer <dr.georg.fischer@gmail.com>
*
* Licensed under the Apa... | 41.418283 | 122 | 0.491038 |
062693a6b3bb34f6020edeadedf403133cb06e5f | 1,648 | package com.github.ganity.shiro.redis;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.UnknownSessionException;
import org.apache.shiro.session.mgt.eis.AbstractSessionDAO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.util.Collection;
publi... | 27.016393 | 87 | 0.79733 |
000cccf5280fa737fe88e76b223a58ac9c841442 | 1,968 | /*
* Copyright 2014 Goodow.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 wr... | 31.741935 | 100 | 0.696646 |
eff69ba8ce8b94068c452dcdcb0cd0426b806f41 | 1,588 | package uk.gov.ida.notification.saml.validation.components;
import org.opensaml.saml.saml2.core.Assertion;
import se.litsec.opensaml.saml2.common.response.MessageReplayChecker;
import se.litsec.opensaml.saml2.common.response.MessageReplayException;
import uk.gov.ida.notification.saml.deprecate.DuplicateAssertionValida... | 42.918919 | 114 | 0.785894 |
f874987a0b41974344d73cf9415eb5b7d622962c | 5,994 | package basesource.convertor.utils;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.net.URLDecoder;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.jar.JarEntry;
... | 26.64 | 114 | 0.609943 |
3da8debb41f03e9450009d81f751c6267e3d7fef | 3,067 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterx... | 31.947917 | 118 | 0.705575 |
0ed5d8f1bd7d0b2335a456c890c5bd3a7053beef | 417 | package com.kevin.testa;
import com.kevin.testa.dbm.DBManage;
/**
* @author Kevin KDA on 2019/12/5 22:15
* @version 1.0
* @project JSP_Course_Assignments
* @package com.kevin.testa
* @classname Main
* @description TODO
* @interface/enum
*/
public class Main {
public static void main(String[] args) {
... | 20.85 | 58 | 0.640288 |
9db92a3f4b419bdef79dbd9a7e1010a6efecf70e | 91 | package factory.factory.ingridients.veggies;
public class Mushroom implements Veggies {
}
| 18.2 | 44 | 0.824176 |
c552e6915a007caf1c0bb8e2ed508febb59e44c3 | 5,766 | /**
* Copyright (C) 2014 Roman Ripp
*
* 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... | 29.269036 | 80 | 0.625911 |
65b8a92942e8feb1830a37ad0b9f4a3010b9aebd | 2,439 | package org.workspace7.infinispan.provider.config;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import feign.Feign;
import feign.Logger;
import feign.auth.BasicAuthRequestInterceptor;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import feign.slf4j.Slf4jLogger;
import lombok.extern.... | 31.675325 | 90 | 0.784748 |
30ba466abdd7fcada5d40e53ecb3482952b1b30a | 5,119 | /* $Id: ModelManagementFactory.java 17747 2010-01-10 21:16:51Z linus $
*******************************************************************************
* Copyright (c) 2009 Contributors - see below
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse ... | 37.639706 | 80 | 0.663802 |
de5f4a5da0b4884b16fc80705131d5a95942b17b | 2,200 | package org.neov.unicorn.server.services;
import lombok.extern.slf4j.Slf4j;
import org.neov.unicorn.ActiveMQConfig;
import org.neov.unicorn.common.models.Health;
import org.neov.unicorn.common.models.TrafficLight;
import org.neov.unicorn.server.repository.TrafficLightRepository;
import org.springframework.beans.factor... | 30.555556 | 76 | 0.759091 |
5287de07f3f5dd151ad4d13d603137891519cddc | 83 | package com.vemec.api.constants;
public enum Sexo {
FEMENINO,
MASCULINO
}
| 11.857143 | 32 | 0.698795 |
ac56cba71c5d1a4eb6201fbefef13c117628b7a3 | 779 | package com.idisfkj.hightcopywx.calendar.task.eventset;
import android.content.Context;
import com.jimmy.common.base.task.BaseAsyncTask;
import com.jimmy.common.bean.Schedule;
import com.jimmy.common.data.ScheduleDao;
import com.jimmy.common.listener.OnTaskFinishedListener;
import java.util.List;
public class GetSc... | 27.821429 | 116 | 0.756098 |
aea827fad3cf67e1d0098fa4d31b661ed72477fa | 819 | package com.fd.model;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public abstract class Card {
private String brand;
private int creditNumber;
private String cardHolder;
private Date expirationDate;
public String getBrand() {
return brand;
}
public void setBrand(Str... | 16.058824 | 53 | 0.744811 |
3f26f64aa6c45f7b5205a62f2f536061699eadab | 4,608 | //
// $Id: CssMarquee.java,v 1.3 2010-01-05 13:49:53 ylafon Exp $
// From Sijtsche de Jong (sy.de.jong@let.rug.nl)
//
// (c) COPYRIGHT 1995-2000 World Wide Web Consortium (MIT, INRIA, Keio University)
// Please first read the full copyright statement at
// http://www.w3.org/Consortium/Legal/copyright-software-19980720... | 23.272727 | 83 | 0.625 |
f7df3daf20c572b8163357be670a9b0b3b1e77ab | 1,260 | package com.example.notificationllistener;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
/**
* Created by fbernal ... | 23.773585 | 83 | 0.680952 |
356c2a1604531913bdf46d97969fcca66790e38f | 218 | package codes.uab.ats.soap_test;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class TestWebService {
@WebMethod
public String sayHello(String name) {
return "Hello " + name;
}
}
| 15.571429 | 38 | 0.747706 |
41efebb3d7c786ef18ff5abbd97b8a94d01e250d | 1,229 | package de.exceptionflug.protocolize.inventory;
import net.md_5.bungee.api.ProxyServer;
public enum LegacyWindow {
CHEST(0, "minecraft:chest"),
CRAFTING(1, "minecraft:crafting_table"),
FURNACE(2, "minecraft:furnace"),
DISPENSER(3, "minecraft:dispenser"),
ENCHANTMENT(4, "minecraft:enchanting_table"),
BREW... | 26.717391 | 122 | 0.70952 |
fb94f0df1ef40d7d55bdf2404b641654b1e5c520 | 3,132 | package com.tlys.dic.model.ctl;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
* TbZbcCtlCorptransportId entity.
*
* @author MyEclipse Persistence Tools
*/
@Embeddable
public class CtlCorptransportId implements java.io.Serializable {
// Fields
private String corpid;
private String... | 28.733945 | 143 | 0.69189 |
fd03baa5467cff5a9629778ec1f5ef0d6913f077 | 3,581 | /*
* Copyright 2020 IEXEC BLOCKCHAIN TECH
*
* 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 ... | 35.81 | 119 | 0.671321 |
ed6194d3083aff2790a3c69cf7e31ff9a9bbc0cf | 322 | package pl.makary.model.user;
import lombok.Data;
import pl.makary.validators.annotation.PasswordConstraint;
import pl.makary.validators.annotation.UsernameConstraint;
@Data
public class ChangeUsernameRequest {
@UsernameConstraint
private String username;
@PasswordConstraint
private String password;
... | 21.466667 | 58 | 0.801242 |
82a605d42799f1ab93c1f45c11dfd8092064e7f8 | 2,658 | package br.com.zup.casadocodigo.form;
import javax.persistence.EntityManager;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.internal.constraintvalidators.hv.br.CNPJValidator;
import org.hibernate.vali... | 26.316832 | 97 | 0.674567 |
fe31a6bd4774def55aac770917ba512f2f72e353 | 1,604 | package com.song.normalclient.News;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.devspark.progressfragment.ProgressFragment;
import com.song.normalclient.R;
/**
* Created by songsubei on ... | 27.655172 | 103 | 0.672693 |
93c28119d146ed82c6f240d1dd81f5ce3646d63b | 4,849 | package eu.operando.androidsdk.scdmodel;
import java.util.List;
/**
* Created by Matei_Alexandru on 11.10.2017.
* Copyright © 2017 RomSoft. All rights reserved.
*/
public class ScdModel {
private String title;
private String bundleId;
private AccessedHosts accessedHosts;
private List<AccessedInput... | 28.523529 | 86 | 0.514745 |
81b5b66eec7ccef85867452edee40dd1c1d30286 | 465 | package io.github.icefrozen.attempt.exception;
/**
* base exception
*
* @author Jason Lee
*/
public class BaseException extends FormativeException {
public BaseException() {
}
public BaseException(String message) {
super(message);
}
public BaseException(Throwable cause)... | 19.375 | 63 | 0.619355 |
dcab3a9b7341f397a07a63ce615eb04168591432 | 17,025 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package alcatel.tess.hometop.gateways.reactor;
// Log4j
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.Map;
/**
* Reactor channels are in... | 32.803468 | 164 | 0.656329 |
a7c39755d044169070a9214596326ace0c4d9412 | 1,578 | package play.api.rest.converter;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import play.api.rest.Converter;
import play.api.rest.Rest;
import play.libs.transport.http.HTTPUtils;
import java.io.IOExcepti... | 30.941176 | 151 | 0.712928 |
1430759590d0039ade9b1ebb5c3aa69de4690a61 | 3,372 | package engineer.nightowl.sonos.api.domain;
/**
* <p>SonosPlaybackSessionStatus class.</p>
*/
public class SonosPlaybackSessionStatus
{
// Should be an enum, but only has one value, and may be deprecated in the future
private String sessionState;
private String sessionId;
private Boolean sessionCreat... | 26.139535 | 143 | 0.593416 |
385c4969ba66f18ea6dd00682cc538aa8a83b486 | 690 | package com.kinvey.androidTest.store.data.network;
import com.google.api.client.util.Key;
import com.kinvey.java.LinkedResources.LinkedGenericJson;
public class LinkedPerson extends LinkedGenericJson {
public static final String COLLECTION = "LinkedPersonCollection";
@Key
private String _id;
@Key
... | 20.294118 | 69 | 0.662319 |
f003d7dc6e2835ca3c4e2385882478ab2e63857b | 323 | package io.github.ieu.jst;
public final class MathUtils {
private MathUtils() {}
public static int clamp(int val, int min, int max) {
if (val < min) {
return min;
} else if (val > max) {
return max;
} else {
return val;
}
}
... | 20.1875 | 57 | 0.467492 |
26ff19d5d115ea1f491309ae8223be5b6a5a56bb | 29,447 | // Copyright 2019 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 37.752564 | 100 | 0.693415 |
b788867f85d75fcdbe089e547c1712b9d41ad5e6 | 142 | package org.repositoryminer.domain;
/**
* Represents the types of references to a commit.
*/
public enum ReferenceType {
TAG, BRANCH;
} | 14.2 | 50 | 0.71831 |
f82ff20119fcb784f106609b40cda6eaa2e65137 | 931 | package org.androidtown.privatecloud;
import android.graphics.drawable.Drawable;
/**
* Created by neverstop on 2016-12-10.
*/
public class IconTextItem {
private Drawable mIcon;
private String mData;
private String mThumbnail;
public IconTextItem(Drawable icon, String obj){
this(icon, obj,... | 19.395833 | 74 | 0.625134 |
8873f89bcc4ec48694abf661f7db117e6672c4a3 | 559 | package com.auto.framework.reporter.appender;
/**
* User: Priytam Jee Pandey
* Date: 28/05/20
* Time: 1:17 pm
* email: mrpjpandey@gmail.com
*/
public class CheckData {
private boolean firstCheck;
private boolean inCheck;
public void setFirstCheck(boolean firstCheck) {
this.firstCheck = first... | 18.032258 | 51 | 0.647585 |
3f3b450d19724ab5ae4824d2edacbbdfc3951303 | 17,094 | package com.jivesoftware.robot.intellij.plugin.elements.search;
import com.google.common.base.Optional;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.ide.highlighter.JavaFileType;
import com.intellij.openapi.project.Pr... | 52.922601 | 216 | 0.717269 |
2a9e809df3b458259c3d64c3d410f01211ea9a73 | 58,652 | package com.khorn.terraincontrol.bukkit;
import com.khorn.terraincontrol.*;
import com.khorn.terraincontrol.bukkit.generator.BukkitVanillaBiomeGenerator;
import com.khorn.terraincontrol.bukkit.generator.TXChunkGenerator;
import com.khorn.terraincontrol.bukkit.generator.TXInternalChunkGenerator;
import com.khorn.terrai... | 36.911265 | 240 | 0.648844 |
41a5365fae1fd4dcd97dc88258074a466322aba9 | 10,878 | package org.apache.maven.scm.provider.clearcase.repository;
/*
* 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 u... | 48.5625 | 122 | 0.697187 |
fa701045da91e40d079cfae6b23b8aa670e8d207 | 2,271 | package com.vector.bitcoinj.explorer.wallet;
import org.bitcoinj.core.Address;
import org.bitcoinj.core.Coin;
import org.bitcoinj.core.ECKey;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.kits.WalletAppKit;
import org.bitcoinj.params.MainNetParams;
import org.bitcoinj.params.RegTestParams;
import org... | 38.491525 | 118 | 0.631 |
ca27bab8a049433e61de477d0eacda521f35ddbc | 2,124 | package configuration.annotation;
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.annotation.Bean;
import org.spri... | 23.340659 | 114 | 0.798493 |
9db8a9e3569577853f44bbe8b680f1aa50ba06ec | 10,502 | package net.ravendb.client.graph;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.ravendb.client.RemoteTestBase;
import net.ravendb.client.documents.IDocumentStore;
import net.ravendb.client.documents.session.IDocumentSession;
import net.ravendb.client.documents.session.IRawDocumentQuery;
import net.... | 38.610294 | 161 | 0.54561 |
1ef1c3e16cd820f08105511ff5930b8f45cdb86a | 1,472 | package psidev.psi.mi.jami.listener;
import psidev.psi.mi.jami.model.*;
/**
* Listener for changes in an entity
*
* @author Gabriel Aldam (galdam@ebi.ac.uk)
* @since 19/07/13
* @version $Id: $
*/
public interface EntityChangeListener<F extends Entity> extends EntityInteractorChangeListener {
/**
* <p>... | 27.259259 | 96 | 0.671196 |
936e0da68a81761179531b7ee769651ad4a6e1d8 | 607 | package com.zhuyl10.myspring;
public class Test {
public static void main(String[] args) {
MyAnnotationConfigApplicationContext applicationContext = new MyAnnotationConfigApplicationContext("com.zhuyl10.myspring.entity");
System.out.println(applicationContext.getBeanDefinitionCount());
Str... | 40.466667 | 138 | 0.736409 |
a8b3251641b23c68876b95c79e8d61982ae33cb2 | 13,850 | package com.koch.ambeth.merge.server.service;
/*-
* #%L
* jambeth-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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://ww... | 40.615836 | 98 | 0.78491 |
4106a85e4ec5f42264f989a8be251446e634491a | 41,183 | /*
* Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
* Generated on: Wed Sep 11 15:33:11 CEST 2019
*/
package org.apache.camel.component.zendesk.internal;
import java.lang.reflect.Method;
import java.util.List;
import org.zendesk.client.v2.Zendesk;
import org.apache.camel.util.component.... | 34.989805 | 97 | 0.629604 |
295a394d88e243d05e8c1356199b89b9c8d74d0a | 6,194 | package seedu.address.model.person;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
import java.util.Collections;
import java.util.HashSet;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import seedu.address.model.meeting.Meeting;
import seedu.address.model.tag.... | 30.81592 | 118 | 0.620601 |
a119dc3092b7659c01763342e074bb8e782b0940 | 3,523 | // 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.feed.library.sharedstream.scroll;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.... | 31.455357 | 95 | 0.716719 |
e3d664b2518f9a97bdd0b91ddc3f1d7458858b22 | 719 | package gapp.season.encryptlib.builder;
import java.security.spec.AlgorithmParameterSpec;
import gapp.season.encryptlib.symmetric.DESUtil;
/**
* 默认算法: "DES/CBC/PKCS5Padding"
*/
public class DESBuilder extends SymmetricBuilder {
public DESBuilder() {
super("DES");
}
@Override
protected byte... | 28.76 | 126 | 0.717663 |
9e8fbf14720242531dd1b7890e5565c572d65798 | 2,082 | package badgamesinc.hypnotic.ui;
import badgamesinc.hypnotic.utils.ColorUtils;
import badgamesinc.hypnotic.utils.render.RenderUtils;
import net.minecraft.client.util.math.MatrixStack;
public class Button {
private String text;
private int id;
private float x, y, width, height;
public boolean animation;
public b... | 22.630435 | 110 | 0.673391 |
f94bd08229d440f7dcb377012384927ee8331568 | 471 | /*
* 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 net.cofares;
/**
*
* @author ppfar
*/
public class DataFactory<D> {
Class<D> c;
public DataFactory(Class<D> c) {
... | 20.478261 | 80 | 0.658174 |
88bf64f92815f25c4abbe6362912160083ed2ee4 | 4,116 | package com.study.concurrent.pool.datasource.pool;
import com.dranawhite.common.exception.DranaSystemException;
import com.dranawhite.common.exception.GenericResultCode;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.AbstractQueuedSynchronizer... | 28 | 120 | 0.632167 |
cba223cf3cc5c004eb9bcaf6e6b5876562151608 | 1,186 | /*
* Copyright 2017 Netflix, 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... | 31.210526 | 79 | 0.712479 |
93e58b42fd3f7d2845b4faf836bf15ded14c928e | 3,889 |
package ar.com.system.afip.wsmtxca.service.api;
import org.simpleframework.xml.Element;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para ConsultarComprobanteResponseType complex type.</p>
*
* <p>E... | 29.915385 | 151 | 0.662381 |
c6bcaeee77c008b2f5c16fccbadda46a7b19b3a9 | 753 | package com.exerciseday7;
public class Shape {
private final String shapeType;
// private final String color;
// private final String texture;
public Shape(String shapeType) {
this.shapeType = shapeType;
// this.color = color;
// this.texture = texture;
}
@Override
public String toString() {
return St... | 20.916667 | 69 | 0.677291 |
957b0f9ec44f78188f2c66e7160b7705c1421b53 | 304 | package dndcharactercreator.backgrounds;
public interface Background
{
String[] getSkillProficiencies();
String[] getEquipment();
String[] getFeatures();
String[] getPersonalityTraits();
String[] getIdeals();
String[] getBonds();
String[] getFlaws();
String getBackgroundName();
} | 15.2 | 40 | 0.710526 |
2c6fd55f9eee6544b9ca1d54f428f51caa94921e | 5,198 | /*
* Copyright 2019 Qunar, 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 ... | 42.958678 | 160 | 0.686225 |
f4ea4a99f062e90cefae3e3a17edcb3410f508fc | 93 | package org.drools.compiler.cdi.example;
public interface Message {
String getText();
}
| 15.5 | 40 | 0.741935 |
a323486081cd348d6e705d17b9758c07489924b7 | 706 | package com.amazonaws.kafka.samples;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestCustomMM2ReplicationPolicy {
@Test
public void testCustomMM2ReplicationPolicy() {
CustomMM2ReplicationPolicy customMM2ReplicationPolicy = new CustomMM... | 39.222222 | 103 | 0.77762 |
85c28b74f0f0f97f7c5568b0cc489786b56cfb96 | 4,797 | package com.mcoding.pangolin.client.container;
import com.mcoding.pangolin.client.entity.AddressBridgeInfo;
import com.mcoding.pangolin.client.handler.HeartBeatHandler;
import com.mcoding.pangolin.client.handler.IntranetProxyChannelHandler;
import com.mcoding.pangolin.client.handler.LoginRequestHandler;
import com.mco... | 41.353448 | 137 | 0.720242 |
4a27cf276d54e764ad1ba367d500b12160510e29 | 576 | package com.hanyi.admin;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* ${DESCRIPTION}
*
* @autho... | 26.181818 | 72 | 0.795139 |
bdcf9728bdf0d82df091dc6baccb17233406b54c | 161 | class C {
public static void main(String[] args) {
for (if (true) i = 0; i < 10; i = i + 1) {
System.out.println(102);
}
}
}
| 20.125 | 50 | 0.447205 |
55bd95270669f1bd185955fa77ed3e45584cfc30 | 19,700 | package com.guider.map;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.location.Geocoder;
import android.location.Location;
import android.os.Bundle;
imp... | 34.083045 | 184 | 0.576091 |
2a450ffc09c7a6bb8fa652aeca669b334b06b561 | 1,522 | package com.alibaba.lib_utils.permission;
import android.content.pm.PackageManager;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import java.util.ArrayList;
import java.util.List;
/**
* create by 高 (。◕‿◕。) 磊
* 2020/11/14
* desc : 权限获取的fragment
*/
public class PermissionFragment ext... | 33.086957 | 121 | 0.662943 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.