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 |
|---|---|---|---|---|---|
d13e6752c3bc7a211ce73643d2758792f7cb93ea | 9,760 | /*
* Created by JFormDesigner on Tue Dec 21 03:40:01 MST 2021
*/
package xyz.wagyourtail.launcher.swing.screen.profile.create.versions;
import java.awt.event.*;
import xyz.wagyourtail.launcher.swing.screen.profile.create.GuiNewProfile;
import xyz.wagyourtail.launcher.minecraft.data.VersionManifest;
import javax.s... | 43.963964 | 149 | 0.627254 |
721482b9f50fde40e33b9befedaf8667517dbae1 | 8,899 | package ni.org.jug.subtiava.validation;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.MissingResourceException;
import java.util.Objects;
import java.util.ResourceBundle;... | 35.454183 | 138 | 0.711878 |
c875d525ba1be5ab740039ca5dc91222e1a0eaa1 | 708 | /** Generated Assertion Class - DO NOT CHANGE */
package au.org.greekwelfaresa.idempiere.test.assertj.cm_chattype;
import javax.annotation.Generated;
import org.compiere.model.X_CM_ChatType;
/** Generated assertion class for CM_ChatType
* @author idempiere-test model assertion generator
* @version Release 6.2 - $... | 35.4 | 98 | 0.783898 |
d8e42795c25a6cd4151418a5970d2a9e332f5b06 | 3,975 | package net.fodev.tools.frm.control;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import net.fodev.tools.frm.model.FrmFrame;
import net.fodev.tools.frm.model.FrmHeader;
public class FrmFileReader {
public static FrmHeader readFrm(S... | 32.317073 | 104 | 0.762516 |
16d5403c384e81d0871eb6544b5a2bc01776ee15 | 3,213 | package thinking.in.spring.boot.samples.externalized.configuration.context;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
impo... | 38.25 | 118 | 0.686897 |
1a4708f65e3b7a5447b97834682efa20f4469136 | 5,929 | /*
* Copyright 2016 UBIQ Studio S.n.c.
*
* 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 agr... | 32.222826 | 147 | 0.716816 |
59e3cfb9ed433b63be6befb3933de344e8002495 | 673 | package Controllers;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public final class ChangeSceneController {
public static void changeScene(ActionEvent e, St... | 30.590909 | 106 | 0.71471 |
ddfec10644543be85841ec29c2b5d69e745d30dd | 13,883 | /* ====================================================================
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 Y... | 30.445175 | 111 | 0.533242 |
f9c52424415c79192637269ff2d90fea12a2641d | 2,008 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.codeInsight.intentions;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
i... | 37.886792 | 140 | 0.77988 |
7ef2e683b80640e8bcfc6bfc5ecfde73a6eef354 | 1,679 | package org.vaadin.demo.push.components;
import com.vaadin.flow.component.ClientCallable;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.HtmlImport;
import com.vaadin.flow.component.polymertemplate.PolymerTemplate;
import com.vaadin.flow.internal.JsonSerializer;
import com.vaadin.flo... | 34.265306 | 92 | 0.777844 |
2a04db7e2a7181b7b793b8e0ab547bcdf86964a3 | 3,132 | /*
* Copyright (c) 2020 Bixbit s.c. All rights reserved.
* See LICENSE file for licensing information.
*/
package io.imunity.furms.unity.client;
import io.imunity.furms.domain.authz.roles.ResourceId;
import io.imunity.furms.domain.authz.roles.Role;
import io.imunity.furms.domain.users.PersistentId;
import io.imuni... | 34.417582 | 117 | 0.774904 |
df9203b32a17204a96f8795052af9e5d78067c58 | 680 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.opensource.org/licenses/mit-license.php
*/
package cbi... | 32.380952 | 128 | 0.777941 |
9eebbf3250936ad79d5b770ca011e3f5ffbec7b0 | 341 | package org.example.services.wordcloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class WordcloudApplication {
public static void main(String[] args) {
SpringApplication.run(WordcloudApplication.cl... | 24.357143 | 68 | 0.797654 |
e90ccf117356f4997b8526e6ef4cc675dbce1413 | 2,536 | /*
* Copyright (c) 2021 David Bergin
*/
package net.davidbergin.logger.util;
import java.io.IOException;
import java.util.Optional;
import java.util.Properties;
/** Singleton configuration cache, which loads the logger configuration from a properties file on the classpath. */
public class Config {
... | 36.753623 | 116 | 0.65418 |
8819e282c72dbe1011423e1aa8544961a28a9f0c | 1,367 | import org.apache.commons.dbcp.BasicDataSource;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
public class DBUtils {
Connection conn=n... | 29.717391 | 101 | 0.734455 |
7f69353de5babfa5ff4ba698e705bbac08ad1b38 | 9,402 | package cn.zxl.common;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.math.BigDecimal;
impor... | 31.34 | 167 | 0.644969 |
9cd35403078dcac7d671e1df4c105644c9750004 | 1,778 | package it.seaba83.sampleswipecards.compilers;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import it.seaba83.material_swipe_cards.co... | 37.041667 | 147 | 0.768841 |
e980df634cd62ed51f0e651ce1a6bb32e8d0331a | 2,809 | package org.apache.poi.ss.formula.functions;
import org.apache.poi.ss.formula.OperationEvaluationContext;
import org.apache.poi.ss.formula.eval.ErrorEval;
import org.apache.poi.ss.formula.eval.NumberEval;
import org.apache.poi.ss.formula.eval.OperandResolver;
import org.apache.poi.ss.formula.eval.RefEval;
import org.a... | 31.211111 | 129 | 0.61125 |
e3ed9e7c8625b002c5b2a60313ae2e3bda58a1bf | 1,226 | package com.merpyzf.xmshare;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import android.util.Log;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.ArrayList;
import java.util.List;
import static org.ju... | 23.132075 | 78 | 0.689233 |
ec98dff1a7876adf2f9f62a946a9d3291a34e813 | 1,163 | package org.smartregister.reporting;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import java.util.Calendar;
import java.util.Date;
@RunWith(RobolectricTestRunner.class)
@Config(sdk = 22)
public abstract class BaseUnitTest {
public stat... | 35.242424 | 102 | 0.683577 |
cdf1c7a8b1def3bb0ed838c05acd2e0518330b72 | 496 | package org.b2oplus.htmlservice.service.mail.subscription;
import org.b2oplus.htmlservice.service.HtmlServiceResponse;
/**
* Created by abuabdul
*/
public class HtmlServiceSubscriptionResponse extends HtmlServiceResponse {
public HtmlServiceSubscriptionResponse(String status) {
super(status);
}
... | 22.545455 | 74 | 0.667339 |
6cdd294eae314f1f432131041f6281cfdf87051e | 2,684 | package Graphs.AdjacencyListImpl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Graph {
private Map<Vertex, List<Vertex>> adjVertices;
public Graph() {
this.adjVertices = new HashMap<>();
}
public void addVertex(String key) {
adjVerti... | 23.752212 | 94 | 0.634873 |
9ef6409d20a17472bb9d904bccc338563538ff44 | 2,659 | package de.fraunhofer.abm.collection.dao.jpa;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.an... | 27.697917 | 106 | 0.732982 |
c9ebdf85a904520464f58fa4ac0071f3273314fb | 3,420 |
package com.survos.tracker.data;
/**
* Constant interface to hold SQL Strings. Do NOT implement.
*
*/
public interface SQLConstants {
public static final String CREATE_TABLE = "CREATE TABLE IF NOT EXISTS %s (%s);";
public static final String CREATE_VIEW = "CREATE VIEW IF NOT EXISTS %s... | 61.071429 | 103 | 0.574561 |
a01477c6024a572194d656be54b34f03b1bacdfd | 925 | package com.btk5h.skriptmirror.skript.custom.expression;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser;
import com.btk5h.skriptmirror.skript.custom.CustomSyntaxEvent;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class ExpressionGetEvent extends CustomSynt... | 26.428571 | 89 | 0.737297 |
28e8acc70f050e00b0527c0f9f21e0bc5c140daa | 4,218 | /*
* Copyright (C) 2022-2022 Huawei Technologies Co., Ltd. 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
*
* U... | 28.890411 | 92 | 0.632053 |
d23928c1ce5d7448786f5cbb52754e4ccb6f3c63 | 1,671 | package org.springframework.boot.context.properties.bind;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;
import org.springframework.boot.context.properties.bind.AggregateBinder;
import org.springframework.boot.context.properties.bind.AggregateElem... | 33.42 | 96 | 0.779174 |
806eac24cb61fa5333b42a45c47bf9eb764d7ba7 | 464 | package pruefungsvorbereitung;
import java.util.Scanner;
public class VCE2014ExamCQuestion174 {
public static void main(String[] args) {
String csv1 = "6,5,true,3";
Scanner scanner1 = new Scanner( csv1 );
scanner1.useDelimiter(",");
int age1 = scanner1.nextInt();
System.out.println(age1);
Stri... | 24.421053 | 42 | 0.670259 |
0882a30b798eddaa02591dc334af722caa9b0ef4 | 10,124 | package org.wikidata.wdtk.datamodel.implementation;
import com.fasterxml.jackson.annotation.*;
import org.apache.commons.lang3.Validate;
import org.wikidata.wdtk.datamodel.interfaces.DatatypeIdValue;
import org.wikidata.wdtk.datamodel.interfaces.EntityIdValue;
/*
* #%L
* Wikidata Toolkit Data Model
* %%
* Copyrig... | 29.260116 | 103 | 0.699131 |
491acd12c0ae8fd50631f22e73d65afa6cf275a8 | 149 | package com.puppycrawl.tools.checkstyle.checks.coding;
class InputPackageDeclaration {
public String value;
private void get(){
}
} | 18.625 | 54 | 0.711409 |
c7e33b07e9cddd483fd1c30e1ffaa8077288acab | 157 | package com.arkaces.aces_server.common.error;
import lombok.Data;
@Data
public class GeneralError {
private String code;
private String message;
}
| 15.7 | 45 | 0.757962 |
604dd0e5cf9ce07844a6420e213b283408fb6f0d | 12,936 | /*-
* ============LICENSE_START=======================================================
* openECOMP : SDN-C
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* ======================================... | 48.631579 | 145 | 0.552953 |
1981ab03b00ee9ae272a005ec05176213ab611fc | 316 | class org.junit.rules.Verifier$1 extends org.junit.runners.model.Statement {
final org.junit.runners.model.Statement val$base;
final org.junit.rules.Verifier this$0;
org.junit.rules.Verifier$1(org.junit.rules.Verifier, org.junit.runners.model.Statement);
public void evaluate() throws java.lang.Throwable;
}
| 45.142857 | 90 | 0.78481 |
ef20604f43f24a243510ec964613bdc113468e4a | 1,351 | package uk.gov.hmcts.reform.iacasenotificationsapi.infrastructure.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.web.context.annotation.RequestScope;
import uk.gov... | 37.527778 | 105 | 0.80755 |
804289bca75ed9290196328a8e93601967dd6cae | 14,716 | package cn.edu.cug.cs.gtl.series.app.cmd;
import cn.edu.cug.cs.gtl.common.Pair;
import cn.edu.cug.cs.gtl.ml.dataset.TestSet;
import cn.edu.cug.cs.gtl.ml.dataset.TrainSet;
import cn.edu.cug.cs.gtl.series.common.pax.TIOPlane;
import cn.edu.cug.cs.gtl.series.ml.MultiSeries;
import cn.edu.cug.cs.gtl.series.ml.Series;
impo... | 48.24918 | 148 | 0.544713 |
033c740d2870ef915031fde85948149dff56aed4 | 670 | package com.alison.date;
/**
* @Author alison
* @Date 2020/4/18
* @Version 1.0
* @Description 函数日期转换方式枚举
*/
public enum ChangeType {
ADD(0, "增加"),
KEEP(1, "不变"),
CUT(2, "减少"),
;
private Integer id;
private String description;
ChangeType(Integer id, String description) {
this... | 16.75 | 52 | 0.58209 |
7bbad719fc1ce45c534c79e04ab80f85c6940daa | 1,055 | package net.npg.abattle.communication.command.commands;
import net.npg.abattle.communication.command.commands.GameCountdownCommand;
import net.npg.abattle.communication.command.data.PlayerData;
@SuppressWarnings("all")
public class GameCountdownCommandBuilder {
private PlayerData[] players;
public Gam... | 25.119048 | 80 | 0.725118 |
bd75ba8ef0ba5350f4949dc5cb5c6e17637e28a0 | 1,389 | package org.thraex.security.handler;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.SavedRequestAwareAuthenticat... | 33.071429 | 109 | 0.770338 |
9311d200112f2cbb91eb13473a556a21ebfd7c60 | 780 | import java.util.Stack;
/**
* Created by Melissa Gu on 08/12/2017.
*/
public class test {
public static boolean solution(String input){
StringBuffer sb = new StringBuffer();
Stack<Character> stack = new Stack<Character>();
for( int i = 0; i< input.length() ; i++){
stack.push(... | 22.285714 | 56 | 0.510256 |
c34bd112f540ad1af2a7efe926c396c5a10c70a3 | 4,771 | /**
Copyright (c) 2009-2010, J. M. Dieterich and B. Hartke
2010-2013, J. M. Dieterich
2015, J. M. Dieterich and B. Hartke
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
... | 43.372727 | 107 | 0.695242 |
6bb43ffa482e8a5fbf38ce90fe81d0952c31dcd8 | 3,550 | package osgi.enroute.scheduler.api;
/**
* The software utility Cron is a time-based job scheduler in Unix-like computer
* operating systems. People who set up and maintain software environments use
* cron to schedule jobs (commands or shell scripts) to run periodically at
* fixed times, dates, or intervals. It typ... | 39.010989 | 99 | 0.615493 |
3222ab5d9c314e863bd7e1b7f1a186306f2d74a9 | 3,926 | /*
* Copyright 2012 Phil Pratt-Szeliga and other contributors
* http://chirrup.org/
*
* See the file LICENSE for copying permission.
*/
package edu.syr.pcpratts.rootbeer.runtime.memory;
import java.util.ArrayList;
import java.util.List;
public abstract class Memory {
private Pointer m_StaticPointer;
priv... | 23.939024 | 63 | 0.688232 |
25887282817123507a704ec0cc56f7ee11ed58cb | 539 | package com.qj.fight.bean;
public class Message {
private String name;
private String touxiang;
public Message() {
}
public Message(String name, String touxiang) {
this.name = name;
this.touxiang = touxiang;
}
public void setName(String name) {
this.name = name;
... | 17.387097 | 50 | 0.591837 |
fb7723537521d684abdc3fd46f7533e40e48a914 | 2,225 | package com.bigrestaurant.system.repositories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;
import com.bigrestaurant.system.mall.repositry.MallOrdersRepo;
import com.bigrestaurant.syst... | 23.670213 | 92 | 0.766742 |
9e22fb9f2e5ea61c51e7e75133bc834a8ff0c480 | 1,204 | package test.nz.co.example.dev.domain.model;
import java.net.InetAddress;
import java.net.UnknownHostException;
import junit.framework.Assert;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;
import nz.co.example.dev.domain.model.BaseCircuit;
import org.junit.Test;
public class B... | 28.666667 | 120 | 0.663621 |
bd51310031edf31b0d631f027dcbecd8327ee2e3 | 3,175 | /*****************************************************************
* 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
* ... | 34.89011 | 93 | 0.656378 |
5e9d3a5a83709b3849e5e1c3034c988b0407c515 | 3,750 | package idv.constx.api.common.client;
import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.web.bind.MissingServletRequestParameterException;
i... | 28.625954 | 105 | 0.637333 |
f4f8411835fe9d51ef23dc0b3fcd311ca0199a53 | 1,406 | package com.example.tddtutorial.authentication.impl;
import com.example.tddtutorial.authentication.interf.AuthenicatorInterface;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
... | 32.697674 | 87 | 0.742532 |
dcf85d31879ffa11af9789d0bd070a99ef2754f1 | 184 | package cellsociety_team16.Cell;
public interface CellWithElement extends Cell {
CellElement getElement();
void setElement();
boolean moveElementTo(CellWithElement anotherCell);
}
| 23 | 52 | 0.820652 |
7d363d8d39af5a2dee22a11609f6fa8335abec07 | 880 | package com.ice.test.flow;
import com.ice.core.context.IceRoam;
import com.ice.core.leaf.roam.BaseLeafRoamFlow;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Random;
/**
* @author zjn
* 取出roam中的值比较大小
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class ScoreFlow extends BaseLeafRoamF... | 20.952381 | 65 | 0.622727 |
14fcc8a3a9506f4f24088ad0622262361b736db0 | 1,519 | package entities.constructions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import repos.ConstructionRepo;
import java.text.NumberFormat;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
import static utils.StringUtils.show;
class ConstructionEntityTest {
... | 30.38 | 119 | 0.751152 |
a33b2adf420d56b2edaacf8a3904e30e9ac08aae | 525 | package validation;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class EmailValidator implements Validator{
// Supported email format:
// foo@bar.quux
private static final String emailRegex = "^[\\w-\\+]+(\\.[\\w]+)*@[\\w-]+(\\.[\\w]+)*(\\.[a-z]{2,})$";
private static Pattern pattern = ... | 27.631579 | 103 | 0.702857 |
8beca3b0d9fe297d8c61685ccdbd85e9079a6eb5 | 1,862 | package ca.gnewton.pst2json;
// From https://docs.microsoft.com/en-us/office/vba/outlook/concepts/forms/item-types-and-message-classes`
import java.util.Set;
import java.util.HashSet;
public class MessageClasses {
public static Set<String> messageClassesMap;
static {
messageClassesMap = new HashSet<String>(... | 37.24 | 111 | 0.807734 |
4d59de6be72de16de7dcc6772efec00d920ee3ea | 1,656 | import java.util.Scanner;
public class MatrixMultiplication {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter dimension of First matrix: ");
int m = sc.nextInt();
int n = sc.nextInt();
int[][] a = new int[m][n];
Sy... | 31.245283 | 63 | 0.371981 |
83595ae1055cf80dd53b1244f94c45a795a8ac67 | 1,447 | package algorithms.imageProcessing.util;
import junit.framework.TestCase;
/**
*
* @author nichole
*/
public class RANSACAlgorithmIterationsTest extends TestCase{
public RANSACAlgorithmIterationsTest() {
}
/**
* Test of numberOfSubsamplesOfSize7For95PercentInliers method, of class RANSACAlgor... | 32.886364 | 103 | 0.658604 |
7aad18b6b7d65b046ad9522532e446b49cbe472d | 5,382 | package com.auro.scholr.home.presentation.view.adapter.newuiadapter;
import android.content.Context;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcomp... | 38.442857 | 189 | 0.6479 |
79ba4b41fdfa2dc26751c136a90f249283525f00 | 1,313 | package com.liveaction.google.hashcode2019.model;
import com.google.common.base.MoreObjects;
import java.util.Objects;
import java.util.Set;
public final class IndexedPhoto implements Comparable<IndexedPhoto> {
public final int index;
public final Set<Integer> tags;
public final boolean horizontal;
... | 26.26 | 75 | 0.605484 |
7a3a57ab92f718ec303df22209d9155190085b04 | 1,877 | package vip.creatio.gca.type;
import vip.creatio.gca.TypeAnnotation;
import java.util.*;
public class TypeVariable implements Type, AnnotatedInfo {
private Type[] bounds;
private GenericDeclaration decl;
private String name;
//TODO:
private final List<TypeAnnotation> annotations = new ArrayList<... | 26.43662 | 100 | 0.617475 |
ffe0ccd40c6ec4db254edb55b7da24ece6e7d1d4 | 642 | package org.jeecg.modules.activiti.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.activiti.entity.ActZprocess;
import org.jeecg.modules.activiti.entity.HistoricIdentityLinkDo;
import java.util.List;
/**
* @Description: 流程定义扩展表
* @Author: pmc
* @Date: 2020-03-22
* @V... | 27.913043 | 89 | 0.794393 |
f4778cd975067da142666973447af7adcad49fdb | 1,066 | package com.sandy.codegen.config ;
import java.io.File ;
import java.io.FileInputStream ;
import java.io.InputStream ;
import org.apache.log4j.Logger ;
import com.fasterxml.jackson.databind.ObjectMapper ;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory ;
public class ConfigLoader {
private static Logg... | 29.611111 | 77 | 0.613508 |
76460c090977bd95a947e3351017103c98b7b1d1 | 3,787 | package io.pivotal.cla.mvc;
import io.pivotal.cla.data.User;
import io.pivotal.cla.data.repository.UserRepository;
import io.pivotal.cla.service.ClaPullRequestStatusRequest;
import io.pivotal.cla.service.ClaService;
import io.pivotal.cla.service.github.GitHubApi;
import org.eclipse.egit.github.core.PullRequest;
import... | 52.597222 | 209 | 0.800898 |
51b45214e586efa8a9800376e87669a0fd53201a | 6,801 | package com.github.pockethub.ui.user;
import com.alorma.github.sdk.bean.dto.response.GithubEvent;
import com.alorma.github.sdk.bean.dto.response.events.payload.IssueEventPayload;
import com.github.pockethub.ui.StyledText;
import com.github.pockethub.util.TypefaceUtils;
import com.google.gson.Gson;
import org.eclipse.... | 46.582192 | 162 | 0.715336 |
565616c08c2519fce59a53356104d50d54437e17 | 534 | package org.apache.eagle.alert.engine.publisher.external.openfalcon;
public class OpenFalconContant {
public static final String OPEN_FALCONF_CONFIG_ROOT = "application.openFalcon";
public static final String OPEN_FALCON_SERVER_URL = "serverUrl";
public static final String OPEN_FALCON_ENDPOINT = "endpoint"... | 44.5 | 83 | 0.801498 |
499b81fd6eecc90b8620959d0bbcb4f6b97eb946 | 312 | package com.altale.util;
public class Constant {
// 相对路径
public static final String jspath = "/var/www/html/account/";
public static final String logpath = "log/";
public static final String urlpath = "http://buaa-jj.cn/account/";
// 转账交税
public static final double texRatio = 0.1;
}
| 22.285714 | 70 | 0.666667 |
93392d4ed19f6acc66e1f6816c46f2b26b2f7aed | 255 | import test.*;
class JA extends A {
public JA() {
super(1);
}
@Override
boolean foo() {
return true;
}
}
class JTest {
void test() {
boolean x = new A(1).foo();
boolean y = new JA().foo();
}
} | 13.421053 | 35 | 0.458824 |
b2d7ad81f127cb926f859b8d640f14c9b8bd40bf | 76 | package io.shadowstack;
public enum Title {
Clerical,
Management
}
| 10.857143 | 23 | 0.697368 |
ab0f4bfb76db5a14ebde99190611d403b1d4c89b | 2,140 | // LICENSE
package com.forgedui.editor.edit;
import java.beans.PropertyChangeEvent;
import java.util.List;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
import com.forgedui.editor.figures.SplitWindowFigure;
import com.forgedui.ed... | 26.75 | 108 | 0.751402 |
705820f708ccf3796742062e5df2a00fa70d8f03 | 64,545 | /*
Copyright 2020, Rein (TNO MSG)
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 writing, software... | 45.136364 | 450 | 0.753691 |
956d52ead985069b1a641546b1b217636a6da4a2 | 176 | package models.json.lexer.token;
public class JsonSyntaxToken extends Token<Character> {
public JsonSyntaxToken(Character tokenValue) {
super(tokenValue);
}
}
| 22 | 55 | 0.732955 |
712ecb4e1217cfb64d3d3481f8bb8e214e5b5e59 | 581 | package com.alibaba.chaosblade.exec.common.model.action.threadpool;
/**
* @Author qianfan
* @package: com.alibaba.chaosblade.exec.common.model.action.threadpool
* @Date 2020/12/22 11:44 上午
*/
public class WaitThread extends Thread {
private final Object lock = new Object();
public void unlock(){
... | 20.034483 | 71 | 0.564544 |
b6b81bec6ab1074d63b72a50b4c08f72867afc71 | 5,786 | /*
* Copyright 2016 Phaneesh Nagaraja <phaneesh.n@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 42.233577 | 134 | 0.635845 |
b8c04eae61a1a96cfa2983eed01a2f1485b9f7a4 | 309 | package com.chensong.main.support;
import com.chensong.main.exception.SQLBadGrammarException;
@FunctionalInterface
public interface ExucuteSQLTimeoutFunction<T,R> {
/**
*
* @param t
* @return
* @throws SQLBadGrammarException
*/
R apply(T t)throws SQLBadGrammarException;
}
| 19.3125 | 58 | 0.705502 |
9f8223dd7f8b5caf25eb0fc96a09f93107b85637 | 451 | package es.bahiasoftware.airport.web.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@EnableAutoConfiguration
public class Application {
... | 26.529412 | 71 | 0.796009 |
08613e2a742e7a858df9b6caf33b73302524cc9b | 3,627 | /*
* Copyright (c) 2013 Christopher Thunes
*
* 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, merge, ... | 29.975207 | 83 | 0.669699 |
79c52a79b8a5e5e84a07b6c527edb6fed7f28c4b | 14,534 | package de.peerthing.scenarioeditor.editor.forms;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredContentProvider;
imp... | 31.664488 | 118 | 0.725747 |
40558507b24f2837c9f23f56455c6cd495f82c0d | 1,806 | /**
* Copyright (C) 2010 Asterios Raptis
*
* 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 ... | 33.444444 | 75 | 0.754707 |
424764988d626675a6d3410297f474ea6d369d96 | 1,882 | package org.keycloak.models;
import org.keycloak.provider.ProviderFactory;
import java.util.Date;
import java.util.Set;
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public interface UserFederationProviderFactory extends ProviderFactory<UserFederationP... | 31.898305 | 132 | 0.669501 |
43c8ef87ebcebb34a77bd153333ddca7afbc0433 | 143 | package de.lichess.users.activity;
import lombok.Getter;
@Getter
public class Opponent {
private String user;
private int rating;
}
| 13 | 34 | 0.734266 |
b445cd1f472c4066bba784b6989d176ef439fbc5 | 2,171 | package io.github.superbob.switches.websocket;
import io.github.superbob.switches.authentication.Authenticator;
import io.github.superbob.switches.websocket.mutable.MutableWebSocketActions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.... | 36.79661 | 117 | 0.744818 |
56cf32016d86426e0eef607c65a7d65e14754e01 | 5,858 | package com.logger.rout.service.db.mysql;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.... | 20.699647 | 188 | 0.684363 |
22c184ac36f44c20eecb419467b4b8b2baf856da | 972 | package com.learn.leetcode.designpattern.delegate;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Description:
* date: 2021/9/13 11:23
* Package: com.learn.leetcode.designpattern.delegate
*
* @author 李佳乐
* @email 18066550996@163.com
*/
@SuppressWarnings("all")
public class Leader i... | 23.142857 | 77 | 0.654321 |
ce0ddc51dd017b545587d6dcd8a05a3e88799265 | 4,256 | package utils;
import integration.INumericalIntegrationMulti;
import integration.TrapeziumIntegration;
import integration.TrapeziumIntegrationMultiCL;
import java.io.File;
import java.util.List;
import lightLogger.Level;
import lightLogger.Logger;
import mathFunction.FloatInterval;
import mathFunction.FloatPolynomia... | 29.150685 | 85 | 0.706532 |
4dbcae9d81d33429a91aeb5fe2cea82f28a19482 | 1,538 | package com.univteam.tetris.engine.block.blocks;
import com.univteam.tetris.engine.block.BlockStatus;
import com.univteam.tetris.engine.block.RotatedFailedException;
import com.univteam.tetris.engine.point.Point;
import com.univteam.tetris.engine.block.AbstractBlock;
/**
* 口
* 口 口 ... | 26.517241 | 63 | 0.563719 |
531c89a2cb41596e3980e4354196556dfaf083e8 | 1,952 | /**
* PermissionsEx
* Copyright (C) zml and PermissionsEx contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 33.084746 | 90 | 0.765881 |
fb80d992468d731f455fc1c4cabbb0afcae4f30c | 517 | /* vim: set sw=4:
* Copyright (c) 2018, Gennady Bystritsky <gennady@bystr.com>
*
* Distributed under the MIT License.
* This is free software. See 'LICENSE' for details.
* You must read and accept the license prior to use.
*/
/**
* General purpose facilities to make common tasks for development and testing
... | 32.3125 | 88 | 0.713733 |
7151ed7ed1f37f1703b77cc4d4534a948ac75bec | 2,338 | /*
* Copyright LWJGL. All rights reserved.
* License terms: http://lwjgl.org/license.php
*/
package org.lwjgl.jmh;
import org.lwjgl.*;
import org.openjdk.jmh.annotations.*;
import sun.misc.*;
import java.util.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libc.LibCString.*;
@State... | 26.568182 | 94 | 0.559025 |
fbd416439fde6c21cbf303d9bcef28643e12c3a4 | 562 | package de.repmek.springworkshop.rest;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.http.Header;
import org.junit.jupiter.api.Test;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
@QuarkusTest
public class HelloServiceTest {
@Test
public void te... | 24.434783 | 62 | 0.661922 |
641e37b8a8892966aeaef25e98fa1b63ec6b3479 | 2,934 | /*
* Copyright 2002-2017 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... | 38.103896 | 151 | 0.741309 |
f77ba06c8a0f8d82af98a7f6e2730652bfd1e211 | 578 | package com.curso.springcore.beans;
public class Persona {
private int id;
private String nombre;
private String apodo;
public Persona(int id, String nombre, String apodo) {
super();
this.id = id;
this.nombre = nombre;
this.apodo = apodo;
}
public int getId() {
return id;
}
public void setId(int ... | 15.621622 | 54 | 0.66609 |
4683bb1e8282a59e88eadf5b09af777068d27b98 | 170 | package com.ailk.ecs.esf.service.scall;
public class ServiceUtils {
public static ServiceAccessible getServiceDelegate(String module) {
return null;
}
}
| 21.25 | 71 | 0.729412 |
9fcacda324a34a6b227839cfd5af3356fd8670d0 | 1,004 | public class LisasWorkbook {
// n - numero de capítulos
// k - máximo de problemas por página
// arr - array com o número de problemas em cada capítulo
static int workbook(int n, int k, int[] arr) {
int numPagAtual = 1;
int contQuestaoNaPag = 0;
int contEspecialProblem = 0;
... | 30.424242 | 61 | 0.473108 |
4948a1c4d06e349699f80847795d8c07b46353be | 2,143 | package com.example.nctai_trading.kiteConnect;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class GTT {
@SerializedName("id")
public int id;
@SerializedName("condition")
public Condition condition;
@SerializedName("type")
public String triggerType;
@... | 22.322917 | 50 | 0.650957 |
438b8ef4c43bf1f79b101e15e2e0d7c53719c6ef | 6,770 | /*
*
* * ******************************************************************************
* * * Copyright (c) 2015-2019 Skymind Inc.
* * * Copyright (c) 2019 Konduit AI.
* * *
* * * This program and the accompanying materials are made available under the
* * * terms of the Apache License, Version 2.0 wh... | 36.994536 | 103 | 0.673117 |
73e0ee00daf682e6db7103452364f2f4b5b7aac4 | 2,201 | package com.example.test.datastoragedemo;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
/**
* SharedPreference存储:Demo3
* 用键值对的方式存储数据
* 支持多种不同的数据类型存储
*/... | 33.348485 | 100 | 0.615629 |
6514cac99996c5b2a0f761166857682027b8d7e9 | 3,877 |
package com.github.smartenergysystem.price.collector.priceCollector.xml;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the xml package.
* <p>An ObjectFactory allows you to programatically
... | 34.309735 | 131 | 0.738973 |
2fdf811894301f446f99c6fd0cd4bd97436888e3 | 2,045 | /*
* Developed by Paul Artjomow
* Last update 10.06.20, 17:50
* Copyright (c) 2020 Vaccum.de | Paul Artjomow
*/
package bungee.vaccum.api.rest;
import bungee.vaccum.api.vBungeeAPI;
import org.json.JSONObject;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.Standa... | 34.661017 | 146 | 0.695844 |
6429cfb4eeccf7749093081a7273430fc40382d5 | 296 | package uk.co.mruoc.demo.domain.service;
import uk.co.mruoc.demo.domain.entity.Payment;
import java.util.Collection;
import java.util.Optional;
public interface PaymentRepository {
void save(Payment payment);
Optional<Payment> read(String id);
Collection<Payment> readAll();
}
| 17.411765 | 46 | 0.75 |
76a0fb14b46d51312d938e1e532f93fe59c510bf | 916 | package kernel.language.thread;
import com.telenav.kivakit.kernel.language.threading.Threads;
import com.telenav.kivakit.kernel.language.threading.local.ThreadLocalMap;
import com.telenav.kivakit.kernel.language.values.count.Count;
import org.junit.Test;
import static com.telenav.kivakit.kernel.data.validation.ensure... | 28.625 | 83 | 0.599345 |
04fab6812db9d9bb057ed585fe69f1f79e98b731 | 6,727 | /*
* Copyright (C) 2010-2018 Christian Gleissner
*
* 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 ... | 40.281437 | 120 | 0.48729 |
d118ec9aeb375165562b84552056fa7550c4dd8d | 1,409 | package com.ontology2.bakemono;
import com.ontology2.haruhi.flows.Flow;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import java.io.File;
import java.i... | 29.978723 | 88 | 0.708304 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.