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 |
|---|---|---|---|---|---|
54a1f8ddd69a76e5f29087d58b4769a69fdd8e81 | 1,614 | package designPatterns.builder;
import java.util.ArrayList;
import java.util.Collections;
public class HtmlElement {
public String name, text;
// this is a recursive structure
public ArrayList<HtmlElement> elements = new ArrayList<>();
// utility helpers
private final int indentSize = 2;
pri... | 31.038462 | 87 | 0.599133 |
07a4bd640e4d5ef13e0d28b0bcd0c1a7b7b9650d | 2,006 | package ub.edu.view;
import ub.edu.controller.IController;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
* Formulari amb el detall d'un post. Aquesta classe hereta de JDialog
*/
public class FerPost extends JDialog {
// Atributos
private JTextArea AreaMissatge;
private JButton s... | 28.253521 | 149 | 0.647059 |
062536aa1626aec961380642c1d53b9638fc25b8 | 395 | //------------------------------------------------------------------------------
// Copyright Siemens Switzerland Ltd., 2014
//------------------------------------------------------------------------------
package patterns.observer.headfirst.weatherstation;
/**
* @author z003d3hv
*
*/
public interface Observer {
... | 26.333333 | 80 | 0.443038 |
3030346acb879f089f5925d25b5d00a8569783b8 | 7,579 | /*
* Copyright 2021 4Paradigm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 28.81749 | 97 | 0.546906 |
84f10ee1bc3aae30ccf4df25e97308bae2591121 | 2,657 | /*
*
* Copyright (c) )2022 Marco Marini, marco.marini@mmarini.org
*
* 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 us... | 29.197802 | 79 | 0.694016 |
6bc5f1043c911d41d3ede882a43117d8749eb267 | 4,265 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 32.067669 | 81 | 0.621336 |
2ab065952379c05c8e32c2ef3826513bea1cb030 | 3,107 | package io.github.yezhihao.protostar.schema;
import io.github.yezhihao.protostar.PrepareLoadStrategy;
import io.github.yezhihao.protostar.Schema;
import io.github.yezhihao.protostar.field.BasicField;
import io.github.yezhihao.protostar.util.IntTool;
import io.github.yezhihao.protostar.util.KeyValuePair;
import io.nett... | 34.142857 | 87 | 0.594786 |
9700f6d2429a64f7649c4148913ccd9d51b215a8 | 15,198 | package com.ztory.lib.reflective;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.... | 37.068293 | 107 | 0.577642 |
50a2b70b8f97afd1c427b0e6e6244303805111d7 | 497 | import org.apache.commons.io.FileUtils;
import play.Application;
import play.GlobalSettings;
import java.io.File;
import java.io.IOException;
/**
* Created by anthony on 7/10/15.
*/
public class Global extends GlobalSettings {
public void onStart(Application app) {
try {
FileUtils.deleteDire... | 23.666667 | 66 | 0.645875 |
244fde0d5fd140d74e8ac516bc4761d3f46a0183 | 6,191 | package master2019.flink.YellowTaxiTrip;
import master2019.flink.YellowTaxiTrip.utils.DatasetReader;
import org.apache.flink.api.java.tuple.Tuple;
import org.apache.flink.api.java.tuple.Tuple3;
import org.apache.flink.api.java.tuple.Tuple5;
import org.apache.flink.api.java.utils.ParameterTool;
import org.apache.flink.... | 47.623077 | 154 | 0.588435 |
07b9ba3a38c35b7cfbedfd380fc1ca705c5fa675 | 390 | package day11;
public class Seat extends Tile {
private boolean isOccupied;
public Seat(Position position) {
super(position);
}
public boolean isOccupied() {
return isOccupied;
}
public void setOccupied(boolean occupied) {
this.isOccupied = occupied;
}
publi... | 16.956522 | 47 | 0.625641 |
3232b851ba5ad16af187b896facc3096a90808a8 | 6,866 | package sample;
import javafx.application.Platform;
import javafx.scene.chart.LineChart;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.ScatterChart;
import javafx.scene.chart.XYChart;
import javafx.scene.control.Label;
/**
* Background communication /w MotorDaemon for real-time informations
*/
pub... | 34.159204 | 153 | 0.603991 |
419f57670cf9663a661a56338411f52935471ab1 | 2,320 | package medigram.medigram;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import io.searchbox.annotations.JestId;
public class CareProvider extends User implements Serializable {
private PatientList patientList = new PatientList();
private String userType = "CareProvider";
... | 24.680851 | 80 | 0.646552 |
d330dd949547ec05cc5df296e1a5f830bd10b394 | 2,062 | /*
* Copyright 2021 IBM 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 30.776119 | 85 | 0.732784 |
9ba8f9db4935ac2f67c3b832d9541bfcf285cf0d | 893 | package com.logzc.webzic.json;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.logzc.common.util.Assert;
import com.logzc.webzic.exception.ZicException;
import com.logzc.webzic.bean.AppContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFac... | 25.514286 | 81 | 0.712206 |
01e61ccf0822211803cff44b8537d8c6e628be6c | 262 | package tw.com.fcb.mimosa.workshop.vaccine.ddd.rest;
import java.util.List;
import lombok.Data;
import tw.com.fcb.mimosa.workshop.vaccine.sharedkernel.Vaccine;
@Data
public class ResidentInfo {
Long id;
String nhiNo;
String phoneNo;
Long residentId;
}
| 18.714286 | 63 | 0.770992 |
31c506ffe342ec9ad20e740a9af6af4e301291bc | 5,235 | /*
* Copyright 2008-2017 by Emeric Vernat
*
* This file is part of Java Melody.
*
* 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/LI... | 29.24581 | 87 | 0.731614 |
9abf42d8d2636acb16d6de49a6aae0d850e0767c | 3,642 | /*
* Copyright 2019 The nity.io gRPC Spring Boot Project 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 require... | 47.298701 | 133 | 0.760022 |
8bd1d6d0fe408c8a214003fda0ed85fa3b13f770 | 1,411 | package piftik.github.com.weatherproject.request.parser;
import com.google.gson.Gson;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.ArrayList;
import piftik.github.com.weatherproject.Weather;
import piftik.github.com.weatherproject.request.parser.GsonParsing.Re... | 37.131579 | 97 | 0.705882 |
e42a72feb1546dc92faae68009cf2ecd4fe561dd | 877 | package com.prancingdonkey;
import com.prancingdonkey.model.Order;
import junit.framework.Assert;
import org.junit.Test;
import org.mule.api.MuleMessage;
import org.mule.api.client.MuleClient;
import org.mule.tck.junit4.FunctionalTestCase;
import static junit.framework.Assert.*;
public class BPMFunctionalTestCase ex... | 28.290323 | 90 | 0.720639 |
c6c085e5e12b7871420768d84c10e4144a965511 | 624 | package me.zenisbestwolf.canyoudumbass.Listeners;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import me.zenisbestwolf.canyoudumbass.Main;
public class Block implements Listener {
private static Main plugin;
p... | 29.714286 | 101 | 0.727564 |
24a8d3101a75e86156758211006b3e0e9cd06e48 | 1,731 | /*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
package com.oracle.idcs.oauth.util;
public class Constants {
// Properties for assertion
public final static String CLIENT_... | 44.384615 | 164 | 0.729636 |
d7078961c94d7a46555edc7a48a3195e351f1201 | 969 | package vswe.stevescarts.Buttons;
import net.minecraft.entity.player.EntityPlayer;
import vswe.stevescarts.Modules.ModuleBase;
import vswe.stevescarts.Modules.Workers.ModuleComputer;
import vswe.stevescarts.Computer.ComputerProg;
import vswe.stevescarts.Computer.ComputerTask;
import java.util.ArrayList;
public class B... | 22.534884 | 101 | 0.749226 |
0f6c94e4f8fe994f40088efbfef137d1076f7bbf | 4,509 | /*
* 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 in... | 37.890756 | 144 | 0.634952 |
a4850028b41254222e04e3e8d366c6ef0a3aa1c5 | 2,094 | package org.accela.minesweeper.model.operation;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.io.Serializable;
public class Operation implements Serializable
{
private static final long serialVersionUID = 1L;
public static enum Type
{
MOUSE_CLICKED,
MOUSE_PRESSED,
... | 19.388889 | 108 | 0.680038 |
291ee7677ced18b9b24f9dbf46edb6ed3a656a53 | 1,057 | package com.chengxiaoxiao.web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.omg.CORBA.Request;
import com.chengxiaoxiao.do... | 22.489362 | 80 | 0.733207 |
b3cdc58a357a08ab478d4957a25f83436b2c9a6e | 1,774 | package io.thorntail.openshift.ts.healthcheck;
import org.arquillian.cube.openshift.impl.client.OpenShiftAssistant;
import org.arquillian.cube.openshift.impl.enricher.AwaitRoute;
import org.arquillian.cube.openshift.impl.enricher.RouteURL;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.test.... | 27.71875 | 82 | 0.624014 |
1ff18ef1d687473ab70bf7bbeebf7a917a059c76 | 3,077 | package com.github.wgx731.kirby.service.impl;
import com.github.wgx731.kirby.helper.ReviewStatisticsCalculator;
import com.github.wgx731.kirby.model.Review;
import com.github.wgx731.kirby.service.ReviewService;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.... | 33.086022 | 96 | 0.705232 |
296afd46b23722321cf6ef42c8dbf5d24e3e8fd7 | 192 | package com.vmware.data.demo.retail.store.api.order.product;
/**
* ProductCacheService
*
* @author Gregory Green
*/
public interface ProductCacheService
{
void loadProductsCache();
}
| 16 | 60 | 0.739583 |
2353d5c3beb4759b9f353170f7c13ed7ca4c7fe6 | 12,185 | /*
* validateapi
* The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated ... | 33.847222 | 456 | 0.737054 |
1463af2334048bb25a06e54fe45d19064b745f39 | 9,032 | /*
* Copyright © 2019 Cask Data, 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 t... | 39.269565 | 120 | 0.646258 |
4bc0b0b9340823bb363442597a8c6555d0a72478 | 1,393 | package io.github.ingvarc.text;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.Ave... | 28.428571 | 90 | 0.694903 |
46bb6b7a3c64acff88f0947ef3972265d543eec7 | 377 | package com.redhat.service.smartevents.manager.dao;
import com.redhat.service.smartevents.infra.models.processors.ProcessorType;
/**
* Custom Type for {@link ProcessorType} enumeration.
*/
public class EnumTypeProcessorType extends EnumTypeBase<ProcessorType> {
@Override
protected Class<ProcessorType> getE... | 25.133333 | 76 | 0.761273 |
0d556292fd2b144e147e21fb3236907917d97e66 | 4,229 | package daos;
import models.Home;
import models.User;
import play.db.jpa.JPAApi;
import javax.inject.Inject;
import javax.persistence.NoResultException;
import javax.persistence.TypedQuery;
import java.util.Collection;
import java.util.List;
public class UserdaoImpl implements Userdao{
final JPAApi jpaApi;
... | 24.876471 | 140 | 0.60227 |
60e2b5eb066d1a166a6d1a8dfe69e13df13403fb | 3,916 | package com.ray.model.service;
import java.util.List;
import com.ray.model.dao.ImageRepository;
import com.ray.model.dao.RepositoryFactory;
import com.ray.model.entities.Arquivo;
import com.ray.util.ArquivosUtil;
import com.ray.util.Miniatura;
import com.ray.util.ThreadMiniature;
public class ImageService {
pri... | 34.052174 | 106 | 0.660368 |
81745f1158cc4f474638414e581ae25310c0e7b8 | 737 | package com.semmle.ts.ast;
import com.semmle.js.ast.Expression;
import com.semmle.js.ast.Identifier;
import com.semmle.js.ast.SourceLocation;
import com.semmle.js.ast.Statement;
import com.semmle.js.ast.Visitor;
/**
* An import of form <tt>import a = E</tt>.
*/
public class ImportWholeDeclaration extends Statement ... | 21.057143 | 84 | 0.720488 |
eb6325eb4658aa3c796002142148cad4eecb7440 | 7,751 | package cortador;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.... | 30.636364 | 105 | 0.645336 |
f162d726cd0d7ee2f540104b61c02dcfd1db30e0 | 1,036 | package org.firstinspires.ftc.teamcode.testers;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.AnalogInput;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
i... | 34.533333 | 64 | 0.73166 |
b4fd0966baaf6f94b457f6a41c10be8bc8fcee7e | 2,364 | package backend.core.Staff;
import backend.core.Staff.domain.Staff;
import backend.core.Staff.domain.StaffStatus;
import backend.core.Staff.dto.StaffResponseDto;
import backend.core.Staff.service.StaffService;
import backend.core.global.response.ApiResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.... | 35.283582 | 94 | 0.702623 |
66f73db7ccab6d9f37e0395c3abde067f1bad42a | 1,966 | package com.cwj.datasource.configuration;
import lombok.Data;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;... | 36.407407 | 119 | 0.717192 |
23649cf33a42d1c7680da6ede27f33c340572477 | 213 | package org.drools.spi;
import org.drools.base.ClassObjectType;
public interface AcceptsClassObjectType
extends
Acceptor {
public void setClassObjectType(ClassObjectType classObjectType);
}
| 21.3 | 69 | 0.765258 |
0e4bb8fdc202cf866ee56e03ef35f361276a9afe | 1,241 | /*
* Copyright © 2022 Pl4yingNight (pl4yingnight@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 req... | 31.820513 | 76 | 0.743755 |
434a189f8ebd995f17e9ab6604c272cfc7cbc9a5 | 3,759 | /**
* 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... | 40.858696 | 132 | 0.701782 |
c9b5cd6b3b890ea8671caf0d11d7c328adc35a12 | 429 | package behavioral_patterns.strategy.after.client;
import behavioral_patterns.strategy.after.flybehavior.FlyWithWings;
import behavioral_patterns.strategy.after.quackbehavior.Quack;
public class RedheadDuck extends Duck {
public RedheadDuck() {
flyBehavior = new FlyWithWings();
quackBehavior = new... | 26.8125 | 67 | 0.724942 |
50c641112f073849d8ff31bbc847dbd287f90e78 | 9,235 | /*
* 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... | 24.112272 | 89 | 0.642447 |
6447b0438cd684f3b673f2af7722abb662b4deec | 1,220 | package com.vihanga.sample.scim2.java.client;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.PropertyResourceBundle;
/**
* Test class to demonstrate SCIM2 Java API Usage.
*/
public class SCIMTest {
public static void main(String[] args) {
try {
String property... | 34.857143 | 114 | 0.664754 |
1cf3baaac7cdf09455853014ad77e904e2e227cd | 2,059 | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2020, Nordix Foundation. All rights reserved.
* ===========================================================================... | 34.898305 | 119 | 0.578922 |
7a89a6542fd88c7b8a46cd5a99de775eac5d9fd6 | 506 | package kr.co.popone.fitts.feature.post.detail;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;
final class PostActivity$defaultPostId$2 extends Lambda implements Function0<Long> {
final /* synthetic */ PostActivity this$0;
PostActivity$defaultPostId$2(PostActivity postActiv... | 28.111111 | 85 | 0.683794 |
88de518e40c6eb36586593ebbde98269071869fb | 792 | package com.lunaticaliens.bankingapp.ui.launch;
import android.app.Application;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
public class LaunchViewModel extends AndroidViewModel {
private static final String TAG = "LaunchViewModel";
private Laun... | 24.75 | 71 | 0.752525 |
32ddd251cd03f71582aab0a87d2dec2a8aab4bcb | 1,516 | package com.animsh.newsdeap.data;
import java.io.Serializable;
/**
* Created by animsh on 1/18/2021.
*/
public class Article implements Serializable {
private final NewsSource source; // News Source
private final String author; // News Author
private final String title; // News Title
private final S... | 24.852459 | 155 | 0.645119 |
e6376dcb7ce5b839dd086d5e66069437d145275e | 2,235 | package io.github.inventories;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player... | 37.25 | 107 | 0.727517 |
060b4be58c85c50e024aa9f069d0f0510d42209d | 4,749 | package com.workflowconversion.portlet.ui.table.resource;
import org.apache.commons.lang3.Validate;
import com.vaadin.data.Item;
import com.vaadin.ui.Label;
import com.workflowconversion.portlet.core.exception.ApplicationException;
import com.workflowconversion.portlet.core.resource.Resource;
import com.workflowconve... | 35.706767 | 144 | 0.78585 |
a1b348bf39de5de2a965ace2050dc46c08cce18b | 3,029 | package eu.telecomnancy.pcd2k17;
import org.gitlab4j.api.models.Group;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class FileManager {
public static String getFilePath(String name) {
String directoryPath = System.getProperty("user.dir") + File.separator + "saves";
... | 28.575472 | 98 | 0.508088 |
04bed55264906cc4d0c81dcc525cb9ff5754b88a | 6,446 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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
*
* http://www.apache.... | 48.104478 | 121 | 0.64319 |
76d4e1889ca98c1caf62ee3b18162000ebd1b580 | 3,092 | /*
* Copyright (C) 2012 Zach Melamed
*
* Latest version available online at https://github.com/zach-m/jonix
* Contact me at zach@tectonica.co.il
*
* 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 ... | 28.366972 | 117 | 0.586999 |
f97933342c74f1c2f19eb01280a4986aaf393f59 | 1,947 | package org.thoughtcrime.securesms.insights;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.thoughtcrime.securesms.recipients.Recipient;
import java.util.Collections;
import java.util.List;
final class InsightsDashboardState {
private final List<Recipient> insecureRecipien... | 27.422535 | 114 | 0.741654 |
119a8c8d9aff6d43548f327906333d68777a5a15 | 15,926 | package com.assistant.mediatransfer;
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import com.assistant.connection.Connection;
import com.assistant.connection.ConnectionCreationResponse;
i... | 34.471861 | 107 | 0.604986 |
76361845dedb0ccd56185aac21200ee34b6ba33f | 2,601 | package com.qa.ims.controller;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.Spy;
import org.mockito.junit.... | 29.556818 | 92 | 0.75125 |
06549d2d564014c0f3ad68671a4b88f53e1cf954 | 2,022 | package org.nextrtc.server.dao.provider;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
impo... | 22.977273 | 64 | 0.736894 |
9731944ce16dc044abefb8f02eecd87be6ac25e3 | 535 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nokia.as.kafka.stest.producer;
import org.osgi.framework.*;
public class Activator implements BundleActivator {
@Override
public void start(BundleContext ctx) {
System.out.println("Star... | 19.814815 | 75 | 0.706542 |
ef29609f989b0b3e9aed0c49f241925c2121a169 | 297 | package p7.form_template_method2.org;
public class MainProgram {
public static void main(String[] args) {
System.out.println("Before Refactoring:");
System.out.println("A: " + new SubClassA().compute(5, 10));
System.out.println("B: " + new SubClassA().compute(7, 4));
}
}
| 29.7 | 65 | 0.656566 |
8b3e53f821362630a33dca4260fccbc8f52a3d87 | 3,632 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 44.292683 | 94 | 0.636839 |
6b16e9d62794ad34b30e2afd1a3b9bd9dae0a097 | 2,631 | package net.n2oapp.framework.autotest.impl.component.control;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.SelenideElement;
import net.n2oapp.framework.autotest.api.component.control.NumberPicker;
import org.openqa.selenium.Keys;
/**
* Компонент ввода числа из диапазона
*/
public class N2o... | 27.989362 | 85 | 0.655644 |
51b10e5296ba0aa2c1197997bbe9742283675232 | 1,250 | /*
* Copyright (c) 2019. houbinbin Inc.
* idoc All rights reserved.
*/
package com.github.houbb.idoc.common.util;
import com.github.houbb.idoc.common.handler.IHandler;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 数组工具类
* @author binbin.hou
* @since 0.0.1
*/
public f... | 21.551724 | 93 | 0.5544 |
87d6d4b54dc8546f8a4650e1f861affc44419918 | 371 | package learning02.server.codec;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
import lombok.extern.slf4j.Slf4j;
/**
* @author z201.coding@gmail.com
* @date 11/21/21
**/
@Slf4j
public class FrameDecoder extends LengthFieldBasedFrameDecoder {
public FrameDecoder() {
super(Integer.MAX_VALU... | 20.611111 | 64 | 0.708895 |
5ba074f1b9f24f402b54778d23daf221902e6e2b | 4,800 | /* Copyright 2004-2005 Graeme Rocher
*
* 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... | 22.429907 | 88 | 0.611667 |
3f0f717148e98b4a564451a2028a9710f96bec66 | 1,967 | package com.ababqq.buzzvil_test_android.utilities;
import android.util.Log;
import com.ababqq.buzzvil_test_android.models.AdBean;
import com.ababqq.buzzvil_test_android.models.ArticleBean;
import com.ababqq.buzzvil_test_android.models.CampaignBean;
import java.util.ArrayList;
import java.util.Collections;
import jav... | 40.142857 | 109 | 0.683782 |
465efe3febdd2b2f96bc8f874a4471c4ef562013 | 187 | package com.cloudtemple.mattermost.traders.file;
import com.cloudtemple.mattermost.traders.MmId;
public class FileId extends MmId
{
public FileId(final String id)
{
super(id);
}
}
| 15.583333 | 48 | 0.764706 |
5794020210068742954575e6276881d50a2af967 | 1,950 | package android.text.method;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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://... | 33.62069 | 120 | 0.740513 |
6fe68430913c8b57409c36c571ae4eba12a67e14 | 653 | package io.github.apace100.apoli.util;
import net.minecraft.entity.attribute.EntityAttribute;
import net.minecraft.entity.attribute.EntityAttributeModifier;
public class AttributedEntityAttributeModifier {
private final EntityAttribute attribute;
private final EntityAttributeModifier modifier;
public At... | 27.208333 | 107 | 0.761103 |
0fbdac86b19059ef2742e60ebb543b73aaaa0207 | 3,804 | /*
* Copyright (C) 2017 Piotr Wittchen
*
* 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 ... | 31.7 | 96 | 0.688486 |
d35d1231bb0f1f4e9cbf0a682f2bb5a218272584 | 4,167 | package ru.job4j.search;
import org.apache.commons.cli.*;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.StringJoiner;
import java.util.regex.Pattern;
import java.... | 33.336 | 123 | 0.612911 |
c548191d027dd72f67c094d148e2c378ea44212e | 5,311 | /**************************************************************************
Exchange Web Services Java API
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Sof... | 28.86413 | 461 | 0.710036 |
688d582072beabd22da9b05fd0c4b33276472e5f | 403 | package ua.dp.markos.onvif.discovery;
import org.junit.jupiter.api.Test;
import ua.dp.markos.onvif.model.OnvifDeviceInfo;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class IPCDiscoveryTest {
@Test
void testDiscovery() throws Exception {
List<OnvifDeviceInfo> onvifDevice... | 22.388889 | 74 | 0.744417 |
81720f897fee791caa052a1fce153ffe6f9ed1fa | 4,438 | /**
* Copyright 2007-2013 Zuse Institute Berlin
*
* 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 a... | 22.876289 | 85 | 0.581343 |
35630943f2227eb02e9b062ac73676f030c46269 | 50,366 | package mat.client.cqlworkspace;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.gwtbootstrap3.client.ui.Anchor;
import org.gwtbootstrap3.clie... | 33.026885 | 119 | 0.781678 |
b9edb694adce3f2e8f93211508247022994bef0d | 763 | package eg.edu.alexu.csd.datastructure.stack;
/**
* IStack.
* created on April 20, 2016
* @author Amr Hedny
*
*/
public interface IStack {
/**
* @param index where we want to add
* @param element which we want to add
*/
public void add(int index, Object element);
/**
* @return "Ob... | 18.609756 | 64 | 0.568807 |
56759b603b817ce75b9dafe566a4f96ad680bec7 | 463 | package net.eightlives.friendlyssl.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
@Configuration
public class SchedulerConfig {
@Bean(name = "upd... | 27.235294 | 60 | 0.803456 |
150055102b8ed35d27c00af78b09a3bd38c17f6f | 10,055 | package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.stream... | 37.518657 | 163 | 0.695276 |
a4d7b8b510b6cc2feb7e8d6ba27a0ee0328dc949 | 3,954 | /*
* MIT License
*
* Copyright (c) 2021 Azortis
*
* 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, ... | 37.657143 | 106 | 0.68083 |
527a9c76ecf3af0564de403a8d1f8b13aeca3ae6 | 3,407 | /*
* 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 gr.spinellis.ckjm;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Lis... | 35.123711 | 121 | 0.540652 |
f0b20bb8ad81fa89e942904a3840da85bfb24007 | 1,626 | package com.kevintweber.kimpachi.board;
import org.junit.jupiter.api.Test;
import java.util.List;
import java.util.Set;
import static org.assertj.core.api.Assertions.assertThat;
class GroupsTest {
@Test
void associateNothing() {
List<Group> groupList = Groups.associate(Set.of());
assertTha... | 32.52 | 76 | 0.552891 |
d2f707ab3e8c7cc8cbdf1979a697e6eb18514e3d | 98 | package com.android.gl2jni;
/**
* Created by julian on 02/07/15.
*/
public @interface Keep {
}
| 12.25 | 33 | 0.663265 |
ea26341d2c16957da00947d9a81a22602fbe8ca7 | 150 | package com.laolang.notespring.aopone;
public interface ForumService {
void removeTopic( int topicId );
void removeForum( int forumId );
}
| 16.666667 | 38 | 0.733333 |
8eac9a8d46457e8d9ed271ebcf645546ff280fe8 | 2,383 | package aperture.config;
import aperture.filter.JWTAuthenticationFilter;
import aperture.filter.JWTLoginFilter;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBui... | 40.389831 | 107 | 0.695762 |
80844bb838c27b0dd8df86ecf21c734daa66e46b | 1,567 | package com.sid.leetcode.problem.puzzle;
/**
* 52. N-Queens II.
*
* <blockquote>
* The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens atack each other.
* <p><img src="https://assets.leetcode.com/uploads/2018/10/12/8-queens.png"/>
* <p>Given an integer n, return th... | 22.710145 | 120 | 0.553287 |
ad964406ff71447c0b976f9ea35b4004073f909f | 1,655 | package se.natusoft.osgi.aps.api.messaging;
import se.natusoft.docutations.Optional;
import se.natusoft.osgi.aps.exceptions.APSValidationException;
import java.util.Map;
/**
* This represents a common base for all messages. aps-core-lib provides an implementation of this.
*
* A message structure will as a minimum... | 21.217949 | 99 | 0.566163 |
6524c687361b1f207ce7c6f578c55fd134e28d4c | 4,510 | package com.ojcoleman.ahni.experiments;
import org.apache.log4j.Logger;
import com.anji_ahni.integration.ActivatorTranscriber;
import com.ojcoleman.ahni.evaluation.HyperNEATTargetFitnessFunction;
import com.ojcoleman.ahni.hyperneat.Properties;
import com.ojcoleman.ahni.transcriber.HyperNEATTranscriber;
/**
* A te... | 38.220339 | 166 | 0.706652 |
337282a47eb8740a6f423dcae2650eef20d22592 | 391 | package br.com.zupacademy.mateuschacon.mercadolivre.ProductResource.Repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import br.com.zupacademy.mateuschacon.mercadolivre.ProductResource.Models.ProductOpinion;
@Repository
public interface ProductOp... | 32.583333 | 89 | 0.861893 |
6e97309f35f09a6ca80c3d4f132261fde7ef75bb | 3,216 | /*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.ldap.client;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.List;
import java.util.Properties;
import eu.unic... | 33.154639 | 115 | 0.796331 |
d80335aa2c76eb022584931ee56ecf11ff361839 | 1,519 | package com.test.ahmedorabi.movieapp.viewmodel;
import android.app.Application;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.Transformations;
import androidx.annotation.NonNull;
import com.test.ahmedorabi.movieapp.... | 28.660377 | 91 | 0.740619 |
32b1004077d10842b512a566546a3a0c5cdc43b1 | 5,847 | package br.com.jadson.mailframe.client;
import br.com.jadson.mailframe.client.dtos.AttachmentDto;
import br.com.jadson.mailframe.client.dtos.MailDto;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.util.*;
/**
* Class to builder a Mail Dto Object.... | 27.7109 | 157 | 0.585599 |
a1a83f2e7d594bd2da090a7920b76e107c6f5584 | 9,562 | package example.app.model;
import android.content.Context;
import android.support.test.runner.AndroidJUnit4;
import android.test.InstrumentationTestCase;
import android.test.mock.MockContext;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Arr... | 45.533333 | 143 | 0.635641 |
c294def6af25c03d1ebb19d20e938a948bc0ea50 | 1,941 | package restPackage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class getDetailsRoot {
public static void main(String []args) throws IOException, JSONExceptio... | 23.962963 | 89 | 0.656363 |
c2ccce9c520a0ed063b3ef59937e9decaf0bdf44 | 2,435 | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | 25.364583 | 80 | 0.728953 |
e54fdc34babb69af2ed59c035b37a493b9e0d57d | 3,313 | /* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.components.documents.processors;
public class DocumentProperties {
public static final String CUSTOM_PREFIX = "custom.";
public static final String AUTHOR = "author";
public static final String APPLICATION = "application";
public static ... | 51.765625 | 80 | 0.778147 |
ff913e886aa1b911333e3d44fbabc9deb70fcf4b | 1,762 | package Entity;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;
import java.util.Date;
/**
* @Author Hekai
* @Date 2019/4/3 10:23
* @Description TODO
**/
@Alias("User")
public class User{
@Serializ... | 18.547368 | 52 | 0.627128 |
87595ebce86b75a1ebadadf4c1477d03a87cacdc | 2,653 | package bus.ticketer.passenger;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.NfcAdapter;
import android.nfc.NfcAdapter.CreateNdefMessageCallback;
import android.nfc.NfcAdapter.OnNdefPushCompleteCallback;
import android.nfc.NfcEvent;
import android.os.Bundle;
import android.os.Handl... | 26.53 | 116 | 0.747456 |
60b0a2272daf129685b268167981033cf5ca969f | 666 | package glass.phil.monzo.model.account;
import javax.inject.Singleton;
import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import glass.phil.monzo.model.Authorized;
import glass.phil.monzo.model.Store;
import retrofit2.Retrofit;
@Module public abstract class AccountModule {
@Provides static AccountA... | 28.956522 | 94 | 0.794294 |
1c31352d9d00eda87c4695c11773f8b9d3644a5f | 15,140 | package com.hitzd.his.ReportBuilder.PEAAS.Day;
import java.util.List;
import com.hitzd.DBUtils.CommonMapper;
import com.hitzd.DBUtils.JDBCQueryImpl;
import com.hitzd.DBUtils.TCommonRecord;
import com.hitzd.Factory.DBQueryFactory;
import com.hitzd.Transaction.*;
import com.hitzd.his.ReportBuilder.Interfaces.I... | 48.216561 | 234 | 0.428798 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.