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 |
|---|---|---|---|---|---|
2f0c5722c94724206c4e96b9ba92c56084c5a222 | 7,511 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 35.098131 | 88 | 0.586074 |
6f73e3093b434e15f5b3724925de56324af3ef3a | 2,679 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 25.514286 | 98 | 0.7081 |
bed64052091e4084783735ac13860752aa906e48 | 413 | package go.timothy.config;
import lombok.Builder;
import lombok.Data;
/**
* @author TimothyZz
* @description 请求配置
* @program my-spider
* @date 2018-10-19 15:09
**/
@Data
@Builder
public class RequestConfig {
/**
* 连接建立超时
*/
private int connectTimeout;
/**
* 数据包间隔超时
*/
private ... | 14.75 | 43 | 0.612591 |
1feb852c0a44a667bac04075fa4626140fb75781 | 1,504 | package de.gigagagagigo.sagma.packet;
import java.io.IOException;
import java.io.InputStream;
public class PacketInputStream implements AutoCloseable {
private final PacketDataInputStream in;
public PacketInputStream(InputStream in) {
this.in = new PacketDataInputStream(in);
}
@SuppressWarnings(... | 27.345455 | 100 | 0.701463 |
a688f7705bdf16ddb322e7cbc832acf212b73191 | 655 | /* Financial Application: calculate tips
Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and
total.
*/
import java.util.Scanner;
public class CalculateTips {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print... | 29.772727 | 93 | 0.670229 |
e718b8d8e9a5b1689adb21d41a688be2a03dba53 | 662 | package com.stqa.pages;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class AccountPage extends FieldWorkerPage {
public AccountPage(WebDriver driver) {
super(driver);
}
WebElement buttonLogout = driver... | 28.782609 | 102 | 0.702417 |
4c8f831db037113638a80a6a3fd335425b1eef6a | 1,135 | package com.ticketing.demo.dao;
import com.ticketing.demo.exception.NotFoundException;
import com.ticketing.demo.model.Airline;
import com.ticketing.demo.repository.AirlineRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.s... | 30.675676 | 86 | 0.748018 |
dd9eddeaf26dc30c941693a41b9b5e09f3e60cdc | 2,941 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 45.953125 | 75 | 0.733764 |
bbf76bc079372d3189ad8e08f6732708cea7978d | 336 | package org.prosolo.config.fileManagement;
import org.prosolo.util.StringUtils;
import org.simpleframework.xml.Element;
public class ImagesConfig {
@Element(name = "file-type-icons-path")
public String fileTypeIconsPath;
@Override
public String toString() {
return StringUtils.toStringByReflection... | 21 | 49 | 0.747024 |
f7ce527c83e959cfc3f3591a956a574c907d37ad | 2,984 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 26.882883 | 81 | 0.664209 |
64b45ca5048a303c56591ff7dcf11cf3e8a54904 | 235 | package top.xmindguoguo.redis.model;
import lombok.Data;
import java.io.Serializable;
/**
* @author: 于国帅
* @Description:
* @Date: 2021/1/16 2:13
* @Version: v1.0
*/
@Data
public class RedisTestModel implements Serializable {
}
| 14.6875 | 53 | 0.706383 |
7f0a0aab412e07580802faf5a7ac8587a6726747 | 5,232 | /*
* Copyright 2009-2011 Jon Stevens et al.
*
* 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 o... | 32.90566 | 122 | 0.715979 |
c26e44f4a3efa40741b7e24cf2b24a26e0e97777 | 292 | package es.amplia.oda.dispatcher.opengate.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Parameter {
private String name;
private String type;
private ValueObject value;
}
| 19.466667 | 49 | 0.797945 |
6f7f3939b9e656f0acf829214e4fdf354b4afa2a | 9,841 | /*
* www.javagl.de - Reflection
*
* Copyright 2013-2017 Marco Hutter - http://www.javagl.de
*
* 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, includin... | 33.817869 | 77 | 0.61508 |
dd49cf37a3f2b838bce3a4e801b79f1a0839327b | 1,491 | package io.github.vampirestudios.obsidian.api.obsidian.enchantments;
import net.minecraft.entity.damage.DamageSource;
public class ProtectionAmount {
public int level = 1;
public String damage_source = "generic";
public int protection_amount = 1;
public DamageSource getDamageSource() {
retur... | 39.236842 | 68 | 0.62106 |
b2afebfdd248ea1990d4044a2e3dc717b317a6de | 955 | package com.bbg.STATISTICS.service;
import com.bbg.STATISTICS.model.ResultModel.FirmResumeResult;
import java.util.List;
/**
* Author: yangkunlin
* Date: 2018/10/12
* Domain: pla.hc10
*/
public interface ResumeService {
String cityQuery(String category);
String veteranTimeQuery(String category);
... | 24.487179 | 87 | 0.77801 |
80f08bb44cf5cf1096094d33f86015577e4318e2 | 400 | //: ForEachString.java
package com.wuroc.chapterfour;
/**
* @author WuRoc
* @GitHub www.github.com/WuRoc
* @version 1.0
* @2020年7月5日
*
*
*/
public class ForEachString {
public static void main(String[] args) {
for(char c : "An African Swallow".toCharArray())
System.out.print(c + " ... | 14.814815 | 51 | 0.5525 |
3d35a5e1e2d2ee4704dc6dbda1f1be8125b43dfc | 21,933 | /**
* @author Adrian Rodriguez Bazaga
* @version 1.0.0
* @date 26 September 2016
* @email alu0100826456@ull.edu.es / arodriba@ull.edu.es
* @subject Complejidad Computacional
* @title Pushdown Automaton
*/
package gui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.... | 26.204301 | 120 | 0.747595 |
147069dedd8973dedca2c945594681a7b1fee1fa | 33,206 | package de.baumann.browser.browser;
import static androidx.constraintlayout.motion.utils.Oscillator.TAG;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.net.Uri;
import android.net.http.SslError;
import android.os.... | 56.568995 | 333 | 0.502379 |
75d8d95d4d970d5cf0bbae4e1e42d3f7ac3f0b66 | 11,673 | package com.charles.funmusic.fragment;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.Line... | 37.654839 | 132 | 0.586567 |
46fc24deb071e68fde97e4ad9f6891ed8558261a | 103 | /**
* Package is containing highlighter classes.
**/
package com.gentics.cr.lucene.search.highlight;
| 17.166667 | 47 | 0.747573 |
d3e5f28f84437f3922fa80d4260c49ccefa44d8e | 2,542 | /**
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith... | 40.349206 | 246 | 0.698269 |
6c9b6bb4a982043db139b3e3267bfd05f5a3c696 | 6,324 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.rankingexpression.rule;
import com.google.common.annotations.Beta;
import com.yahoo.searchlib.rankingexpression.Reference;
import com.yahoo.searchlib.rankingexpression.eval... | 38.797546 | 127 | 0.634409 |
aca1e8a801d87e242f4237979fd727df4a05f5c8 | 388 | package org.jeecg.modules.business.service;
import org.jeecg.modules.business.entity.SiteMonitorDevice;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 监测点检测设备
* @Author: jeecg-boot
* @Date: 2020-07-08
* @Version: V1.0
*/
public interface ISiteMonitorDeviceService extends IServi... | 24.25 | 80 | 0.770619 |
ce9ddc8f29525862cd2e38bc8822c5ba903eab0f | 5,557 | /*
Copyright 2019 Samsung SDS
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 applica... | 41.162963 | 93 | 0.668886 |
7c01baee1a263ef4f24dba9931e70c3f83f61d0b | 2,695 | /*
* Copyright (C) 2013 Facebook, 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 agr... | 31.337209 | 173 | 0.687941 |
2fe436f574b9614f95dc16ff3134dde10c8b1c55 | 1,376 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int T = scanner.nextInt();
long modulo = scanner.nextLong();
int[][] pos = new int[N][2];
for (int i = 0; i < N; i++) {
pos[i][0] ... | 25.481481 | 68 | 0.465116 |
3df2891dd658da71bfcb89a7215c62eb82d2862e | 1,603 |
package mage.cards.c;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.ab... | 32.06 | 155 | 0.738615 |
4c7468c7013e6ad0aacf9c04c0c8a0b77124668f | 3,401 | package hu.szte.vizz.config;
import hu.szte.vizz.service.user.UserDetailsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.dao.Da... | 38.213483 | 107 | 0.704499 |
394a215e63c0a74e973fc4b9c80341cae4d1099c | 15,365 | package ca.bc.gov.catchment.scripts;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.uti... | 35.484988 | 120 | 0.723202 |
d069c28f9b399eefcccb8c0f27b552d4b5a75f2a | 1,801 | package pl.multishop.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import pl.multishop.dao.ClientDao;
import pl.multis... | 30.016667 | 81 | 0.695725 |
94c5f0d80c3e49f76db93f35d28a0127a06b7293 | 306 | package org.apache.ibatis.demo.select;
import org.apache.ibatis.demo.BlogMapper;
public class Test {
public static void main(String[] args) {
SqlSessionF sqlSessionF = new SqlSessionF();
BlogMapper mapper = (BlogMapper) sqlSessionF.getMapper(BlogMapper.class);
mapper.selectBlog(1);
}
}
| 23.538462 | 77 | 0.738562 |
dd6f434a5df4ce3a1864cc5aa595447ae64891e9 | 7,951 | package org.rnorth.ducttape.unreliables;
import org.junit.Test;
import org.rnorth.ducttape.RetryCountExceededException;
import org.rnorth.ducttape.TimeoutException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import static org.rnorth.visibleassertions.VisibleAssertions.ass... | 38.785366 | 129 | 0.618161 |
4cc02a198a4524a9feaef1a5c27869779476fa81 | 4,521 | package org.jgroups.protocols;
import org.jgroups.annotations.ManagedAttribute;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.LongAdder;
import java.util.stream.Stream;
/**
* Class which has all the stats about received/sent messages etc (in TP)
* @author Bela Ban
* @since ... | 55.814815 | 120 | 0.72307 |
c8559bb9963d1178be1e13f70d9ac405adda344e | 2,806 | package uk.ac.open.kmi.iserve.discovery.api.freetextsearch.sparql.impl;
import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.hp.hpl.jena.update.U... | 37.413333 | 217 | 0.695652 |
7c3eb41148d0f0988ff51ffa225b51338a8da556 | 1,098 | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.commerce.task.operation.create response.
*
* @author auto create
* @since 1.0, 2022-05-18 15:16:48
*/
public class AlipayCommerceTaskOperationCreateResponse extends A... | 19.263158 | 79 | 0.73224 |
1c7609c0189955594196d4f78f229b59ee1a8d19 | 1,822 | package com.qqxhb.curator.leader;
import java.io.Closeable;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.leader.LeaderSelector;
import org.apache.cur... | 29.387097 | 103 | 0.763996 |
f842b1a3a20f075d5b1b0cf7fde47186116e31a6 | 695 | package com.yisu.elasticsearch.util;
import java.util.List;
import java.util.Map;
/**
* @author xuyisu
* @description 判空工具类
* @date 2020/10/26
*/
public class EmptyUtils {
public static boolean isEmpty(Object s) {
if (s == null) {
return true;
}
if ((s instanceof String) ... | 20.441176 | 74 | 0.492086 |
9f413b432f69883e6676eb63f800af7e4350c26b | 2,726 | /*
* Copyright 2000-2016 Vaadin Ltd.
*
* 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... | 29.311828 | 80 | 0.687821 |
efc00b5fce69efbf5f1c553e5aebc861e40558ee | 10,766 | package me.j360.dubbo.trace.brave.http;
import com.alibaba.dubbo.common.utils.StringUtils;
import com.github.kristofa.brave.*;
import com.github.kristofa.brave.http.HttpServerRequestAdapter;
import com.github.kristofa.brave.http.SpanNameProvider;
import com.github.kristofa.brave.internal.Nullable;
import com.github.kr... | 39.007246 | 138 | 0.66998 |
fa1e4c39ffb524d1b80fa9924ffe4c0d2b337ad7 | 6,888 | /*
* Copyright 2016-2017 Huawei Technologies Co., Ltd.
*
* 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 appli... | 39.36 | 115 | 0.658246 |
d406dc7e3a9e26239c8e09a63bcfc504c5cd63a1 | 208 | package com.googlecode.yatspec.state.givenwhenthen;
public class InterestingGivens extends NiceMap<InterestingGivens> {
public InterestingGivens(Object... instances) {
super(instances);
}
}
| 23.111111 | 67 | 0.75 |
1f38b3a1aa1bc6adbe80c0a23e9b2883bb7bb255 | 1,388 | package bl.userbl;
import java.util.ArrayList;
import util.ResultMessage;
import util.UserLimits;
import util.UserPosition;
import vo.UserVO;
public class MockUser extends User{
private UserVO financialStaff = new UserVO("000001", "123456", "Aster", UserPosition.FINANCIAL_STAFF, UserLimits.STAFF);
... | 22.387097 | 122 | 0.715418 |
98d10821838ed18fd80175a84c2d0aac8c53b146 | 18,724 | package com.example.Eric_app;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import and... | 40.704348 | 131 | 0.410222 |
06b66a26b8ab85231085fe3cedf06e2cf9826aab | 4,496 | /**
* Copyright 2011-2015 DEIB - Politecnico di Milano
*
* 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 applica... | 35.968 | 152 | 0.707073 |
72600909ab9350b3b03b2a4c08bab555ce63f414 | 23,319 | package org.soraworld.attrib.manager;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.soraworld.attrib.data.ItemAttrib;
import org.soraworld.attrib.data.LoreInfo;
import org.soraworld.attrib.data.Potion;
import org.soraworld.attrib.task.Play... | 42.092058 | 120 | 0.53643 |
76a798d8fd5f27fb4ce1200ba3292c2a827dbf60 | 2,771 | package com.example.android.musicapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
public class PlaylistActivity extends AppCompatActivity... | 39.585714 | 96 | 0.643811 |
5d1aff4758b98b9df913d058efe88198c578dcc5 | 818 | package gov.cms.dpc.macaroons.caveats;
import gov.cms.dpc.macaroons.config.TokenPolicy;
import gov.cms.dpc.macaroons.CaveatSupplier;
import gov.cms.dpc.macaroons.MacaroonCaveat;
import gov.cms.dpc.macaroons.MacaroonCondition;
/**
* Implementation of {@link CaveatSupplier} which generates a version token based on the... | 31.461538 | 120 | 0.771394 |
fdc9c60ed66ed91488b188859f3ca57d03ecca8f | 1,422 | package fi.riista.feature.gis.geojson;
public class GeoJSONConstants {
public static final String ID_EXCLUDED = "excluded";
public static final String ID_PREFIX_MH_HIRVI = "mh-hirvi-";
public static final String ID_PREFIX_OTHER = "other-";
public static final String PROPERTY_NUMBER = "number";
pub... | 40.628571 | 74 | 0.750352 |
6a7698835f97d2458d49a86b68ab88f7bf596b6c | 10,418 | package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.asse... | 36.683099 | 110 | 0.682569 |
92aba16b9ef5e931170b4c71ebe74faaf68d934f | 62,567 | /*
* CLOUD API
* An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, ... | 82.433465 | 553 | 0.716224 |
dae3fa382a1e36e4557689554e6f383df0849fc2 | 762 | package com.softicar.platform.ajax.request.parameters;
import com.softicar.platform.common.core.exceptions.SofticarIOException;
import com.softicar.platform.dom.event.upload.IDomFileUpload;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.http.Part;
class AjaxFileUpload implements IDomFile... | 19.05 | 72 | 0.761155 |
a63085dc9d151381e026d3896e6315331fcd6ea1 | 1,335 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37.083333 | 75 | 0.74382 |
e02760bedbc8e0484263dfc987bb0e903cb90dd2 | 3,137 | package org.apereo.cas.config;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apereo.cas.audit.AuditableExecution;
import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan;
import org.apereo.cas.authentication.AuthenticationServiceSelectionStrategy;
import org.... | 46.132353 | 147 | 0.826267 |
6b1a6294fc42145b881ef8c348a26de514a37a3d | 4,672 | package ecommercejava.cms.icommyjava.config;
import ecommercejava.cms.icommyjava.Helpers;
import ecommercejava.cms.icommyjava.helper.Cookies;
import org.apache.commons.lang.LocaleUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.... | 42.09009 | 155 | 0.649187 |
3721455a5614df85653e3d5902877856d8891e43 | 135 | package jp.co.pickles.salesautomation.domain.base;
public interface ValueObject<T> {
boolean same(T that);
String asText();
}
| 19.285714 | 50 | 0.725926 |
db803e42803a092d5f18d603869548ceadfa7878 | 6,921 | package com.gae.scaffolder.plugin;
import android.app.IntentService;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import androi... | 34.432836 | 127 | 0.595723 |
4eae24d909256529ff15ff903c0f760a1db57da6 | 4,333 | package com.miotech.kun.commons.db;
import com.google.inject.Inject;
import com.miotech.kun.commons.testing.DatabaseTestBase;
import org.junit.jupiter.api.Test;
import java.sql.SQLException;
import java.util.List;
import java.util.Objects;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcres... | 28.136364 | 103 | 0.562659 |
7204e904eff2367993f282af9f914ef0ea6f37dd | 855 | package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.GroupData;
import java.util.List;
public class ContactGetListTests extends TestBase{
@Test
public void testGetlist() {
app.goTo().groupPage();
... | 24.428571 | 72 | 0.665497 |
74959fb8bd38030f0932b107256db03dc89c08c6 | 4,712 | /*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 32.722222 | 85 | 0.583829 |
7f0f3ac07651f4ff42bd7ef26d4168e59cb7fe57 | 1,883 | class Solution {
public String decodeString(String s) {
Stack<Character> stack = new Stack<>();
for(char c : s.toCharArray())
{
if(c != ']')
stack.push(c); //push everything but ]
else
{
//st... | 33.625 | 81 | 0.404673 |
46b7f3955302cc15283fad2e01e9f47031775678 | 290 | package com.lfp.zt.javabase.dynamicProxy;
/**
* Project: zt-javabase
* Title:
* Description:
* Date: 2018-12-08
* Copyright: Copyright (c) 2018
* Company: LFP
*
* @author ZhuTao
* @version 2.0
*/
public interface Subject {
void hello();
Object handle(Object param);
}
| 13.809524 | 41 | 0.648276 |
a941ecfc992806f8e732618b66e2e36af06c6abd | 1,233 | package com.simon.magiccube.engine.impl;
import com.simon.magiccube.dao.domain.DubboInterfaceManage;
import com.simon.magiccube.engine.IDubboInterfaceManageEngine;
import com.simon.magiccube.facade.dto.DubboInterfaceManageDTO;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @version: j... | 26.234043 | 117 | 0.749392 |
4d366e0d42509c38176123ac3db0de384328d26a | 10,659 | // 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 org.zmlx.hg4idea.repo;
import com.google.common.io.BaseEncoding;
import com.intellij.dvcs.DvcsUtil;
import com.intellij.dvcs.repo.RepoStateException;
import com.intellij.... | 37.010417 | 140 | 0.715733 |
811649132bc0da18cc26f95c150274e02c93bbe7 | 1,836 | /*
* SonarQube Doxygen Plugin
* Copyright (c) 2012-2018 SonarSource SA
* mailto:info AT sonarsource DOT 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.ap... | 37.469388 | 137 | 0.732571 |
bd94ec050a9cef063d090693c057996ff58f7bee | 8,837 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | 33.473485 | 120 | 0.692995 |
8399a65a57e08d287782405ca3bc61022f5ad087 | 3,755 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 33.526786 | 119 | 0.663116 |
52fcd271f8a2e8e19b1ff76088536103e073d9d4 | 525 | package com.s16.datatable;
/**
* Created by Soe Minn Minn on 6/17/2017.
*/
/* package */ final class Constants {
/* package */ static final String VND_PREFIX = "vnd.datatable";
/* package */ static final String NAME_QUOTES = "`";
/* package */ static final String[] DATA_TYPES = new String[] {
... | 29.166667 | 70 | 0.592381 |
4a06eb70ba6e4487a4cdee10e4e4d12694113cde | 6,733 | package org.entitypedia.games.common.api.controllers;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.cl... | 39.605882 | 133 | 0.65632 |
157b72d861c8768da6ee51b56b923bdf8dbd867c | 379 | package com.bfsi.mfi.dao.jdbc;
import org.springframework.stereotype.Component;
import com.bfsi.mfi.dao.AgentValidatorDao;
import com.bfsi.mfi.entity.BaseServiceRequest;
/**
*
* @author Shabu
*
*/
@Component
public class AgentValidatorJdbcDao implements AgentValidatorDao{
@Override
public String validateAge... | 16.478261 | 64 | 0.770449 |
fc800cb21f252761c040026052acdeeaea532276 | 454 | package com.farzadz.addressbook.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@JsonInclude(Include.NON_NULL)
public cla... | 20.636364 | 60 | 0.814978 |
6507b5b6e2fd9c65e591c7fc0a9151c7f8e4005c | 10,955 | /*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) <2019> eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* is availa... | 46.816239 | 126 | 0.588955 |
40829b66e32a1c0e48683e4261ea5337b879b835 | 1,522 | /*
*
* * 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
* ... | 35.395349 | 200 | 0.740473 |
730cafde8804f390a183b879226354e59d18189b | 706 | package com.dong.blog.application;
import java.io.Serializable;
import java.util.List;
import com.dong.blog.core.AbstractEntity;
public interface BaseApplication<T extends AbstractEntity, PK extends Serializable> {
/**
* 查找单个数据
*
* @param pk
* @param clazz
* @return
*/
T get(PK pk);
/**
* 查找单个数据
... | 10.861538 | 85 | 0.545326 |
9b1c26c7ab1c6e7f9fe5ab1af38764e663592342 | 4,295 | package net.shadew.debug.api.menu;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TranslatableComponent;
/**
* A context passed into {@link DebugOption#onClick}. This can be used to obtain informati... | 26.677019 | 120 | 0.615367 |
59d561d91f8aa43109faf643a2f668a4df44f960 | 2,540 | package org.sampsonlab.nephvseqtlserver.domain;
import java.io.Serializable;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Query implements Serializable{
/**
*
*/
private static final long serialVersionUID = -7424470679583729081L;
private final String query;
private final Type... | 22.882883 | 112 | 0.666929 |
644683407324e2837d6341906257a6d20b0b1ccd | 7,534 | /**
* Copyright (C) 2022, Tigerbotics' team members and all other contributors.
* Open source software; you can modify and/or share this software.
*/
package frc.tigerlib.input.controller;
import edu.wpi.first.hal.FRCNetComm.tResourceType;
import edu.wpi.first.hal.HAL;
import edu.wpi.first.wpilibj.GenericHID;
impor... | 28.430189 | 96 | 0.601805 |
4c383f1fa631820614bde0bdaf49b245b8f32dfd | 495 | package ru.stqa.pft.mantis.appmanager;
import org.openqa.selenium.By;
public class AdminUISessionHelper extends BaseHelper {
public AdminUISessionHelper(ApplicationManager app) {
super(app);
}
public void login() {
type(By.name("username"), app.getProperty("web.adminLogin"));
cli... | 26.052632 | 72 | 0.650505 |
4ef61daebfd7a80b49f8b94e2a91f6201d8c0fd0 | 2,183 | /*
* Copyright 2017-present Open Networking Laboratory
*
* 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 appli... | 33.584615 | 96 | 0.717361 |
c62ec421e0cb0f5e4513f0f30555d7c7cf8fc8b5 | 5,699 | package de.adito.irradiate;
import de.adito.irradiate.common.DecayedException;
import de.adito.irradiate.emitters.CombiningEmitter;
import de.adito.irradiate.extra.*;
import org.junit.*;
import javax.swing.*;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.atomic.AtomicBoolean;
import ... | 29.225641 | 119 | 0.618705 |
4558806f8098054c54d86bc824a25bcb6948b68a | 7,701 | package com.lahiya;
import com.lahiya.annotations.Description;
import com.google.gson.Gson;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureExcepti... | 35.818605 | 146 | 0.615894 |
325404eaf14279f8c237dade1475674ce0459fcf | 3,074 | /*
* Copyright (C) 2011 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 30.435644 | 75 | 0.636304 |
e78f41515cafc5f7fe76f829eb7f186d428d92e6 | 3,583 | /**
* Copyright 2016-2017 Symphony Integrations - Symphony LLC
*
* 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... | 39.373626 | 128 | 0.777282 |
a36e960375658e36fb489649d419308df49a3b07 | 2,060 | package ieee.access;
import java.io.File;
import de.ovgu.featureide.fm.core.base.IFeatureModel;
import de.ovgu.featureide.fm.core.configuration.Configuration;
import de.ovgu.featureide.fm.core.io.manager.FeatureModelManager;
import ieee.access.utils.Stopwatch;
/**
* Obtains processing time of counting products in a... | 28.611111 | 116 | 0.688835 |
645a8c9fcc48ec1d57d2eb336b93aa341b2b5d8f | 2,093 | /**
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the ... | 32.2 | 99 | 0.647874 |
ffb3647e62591fff94e9411ee7fab700d277484e | 5,590 | /**
* 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... | 38.551724 | 100 | 0.716637 |
4ced3383a00a61e554b6832816d557744c442710 | 2,422 | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.model.table.exec.descs;
import org.rf.ide.core.testdata.model.FilePosition;
import org.rf.ide.core.testdata.model.table.exec.descs.ast.C... | 39.704918 | 119 | 0.68621 |
b596afd19aecc1e1f321dee36da42e4382874016 | 2,920 | package io.github.jmcleodfoss.msg;
/** Constants and classes for dealing with sectors
* @see <a href="https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/9d33df18-7aee-4065-9121-4eabe41c29d4">MS-CFB Section 2.1: Compound Sector Numbers and Types</a>
*/
@SuppressWarnings("PMD.ClassNamingConventions")
cl... | 44.242424 | 180 | 0.741781 |
e88149c1dc457ca664f6797de2c3a79e03ed4954 | 1,121 | package org.sagebionetworks.research.mpower.tracking.fragment;
import android.os.Bundle;
import androidx.annotation.NonNull;
import org.sagebionetworks.research.mpower.tracking.view_model.SymptomTrackingTaskViewModel;
import org.sagebionetworks.research.mpower.tracking.view_model.configs.SimpleTrackingItemConfig;
imp... | 40.035714 | 133 | 0.79661 |
44eab29ad6fe575fa310f7c297fae2e474c30345 | 619 | package com.mantledillusion.injection.hura.core.adjustment.injectables;
import com.mantledillusion.injection.hura.core.annotation.injection.Inject;
import com.mantledillusion.injection.hura.core.annotation.instruction.Adjust;
import com.mantledillusion.injection.hura.core.property.injectables.InjectableWithProperty;
... | 41.266667 | 118 | 0.852989 |
a4d2e9d300a173135746d8c0efc83b0618dd0da2 | 5,220 | package problem2;
import static org.junit.Assert.*;
import java.util.HashSet;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
public class CatalogTest {
Catalog aCatalog;
Catalog empty;
Music bandMusic;
Book book;
Music onePersonMusic;
Author author;
RecordingArtist first;
Reco... | 30.887574 | 98 | 0.676245 |
9664c1a24f218db4ab1ef71005fab881fbd3068a | 536 | package team23.smartHomeSimulator;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import team23.smartHomeSimulator.controller.DashboardController;
... | 26.8 | 64 | 0.824627 |
6ee50732f1eef2d0e436d1a48011c41954e2eca5 | 3,315 | /*
* Instituto Politécnico Nacional
* Centro de Investigación en Computación (CIC-IPN)
* Laboratorio de Robótica y Mecatrónica
* Todos los derechos reservados
*/
package ipn.cic.sistmr.modelo;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
impo... | 29.336283 | 143 | 0.689593 |
6248e5eb238491a9d8417bf7e22100f4db5f7bba | 278 | package io.boomerang.mongo.model;
public class WorkflowProperty extends AbstractConfigurationProperty {
private String jsonPath;
public String getJsonPath() {
return jsonPath;
}
public void setJsonPath(String jsonPath) {
this.jsonPath = jsonPath;
}
}
| 17.375 | 69 | 0.733813 |
ef6f2ec83e6021e0aea73478a157ee55efcdf4ae | 6,740 | package com.clueride.poc.geotools;
import com.clueride.domain.factory.LineFeatureFactory;
import com.clueride.feature.Edge;
import com.clueride.feature.LineFeature;
import com.clueride.geo.TranslateUtil;
import com.clueride.gpx.TrackUtil;
import com.jettmarks.gmaps.encoder.Track;
import com.vividsolutions.jts.geom.*;
... | 40.60241 | 83 | 0.590059 |
24ddaeef3a566ca926ef54f2920a2f25c8ca5e9c | 1,570 | package client.ui.controller;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
p... | 32.040816 | 91 | 0.740127 |
8548656b3558fb73a3df4141eaeed2d523d30018 | 815 | package io.voucherify.client.model.promotion;
import io.voucherify.client.utils.AbstractFilter;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.HashMap;
import java.util.Map;
@NoArgsCon... | 22.027027 | 74 | 0.760736 |
3b083d48d2714351706e8ce20dff80db5a33417b | 1,666 | package org.motechproject.scheduletracking.service.impl;
import org.joda.time.DateTime;
import org.motechproject.commons.date.model.Time;
import org.motechproject.scheduletracking.service.EnrollmentActionService;
import org.motechproject.scheduletracking.service.EnrollmentRequest;
import org.motechproject.scheduletrac... | 43.842105 | 101 | 0.747299 |
a4790e4e66fecac40818daf6b97b61c5a4819d25 | 3,396 | // Copyright 2019 Oath Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.web.apirequest.generator;
import static com.yahoo.bard.webservice.web.ErrorMessageFormat.INVALID_ASYNC_AFTER;
import com.yahoo.bard.webservi... | 41.925926 | 120 | 0.700824 |
0d27288247203d394aa355f6dc27fb0c4c388054 | 1,217 | package com.documentflow.entities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.Collection;
@Getter
@Setter
@Entity
@NoArgsConstructor
@Table(name = "sys_users")
public class User {
@... | 21.732143 | 63 | 0.686113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.