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 |
|---|---|---|---|---|---|
b24a4972a170fb3c2f61a91b33d04f0b8896e7a7 | 333 | package org.theparanoidtimes.undodemo;
public class FocusLostEvent implements Event {
@Override
public void apply(Environment environment) {
throw new UnsupportedOperationException();
}
@Override
public void unapply(Environment environment) {
throw new UnsupportedOperationExceptio... | 22.2 | 50 | 0.720721 |
f9ab00aa9fedade67d7114f24558f94370f6a534 | 423 | package tree;
public class Diameter_of_Binary_Tree {
int ans;
public int diameterOfBinaryTree(TreeNode root) {
ans = 0;
depth(root);
return ans;
}
public int depth(TreeNode root){
if(root == null) return 0;
int L = depth(root.left);
int R = ... | 22.263158 | 53 | 0.527187 |
249efe6531846c48ec68b69ddde9af6de12a8d91 | 272 | package net.minecraft.realms;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public interface RealmsConfirmResultListener {
void confirmResult(boolean p_confirmResult_1_, int p_confirmResult_2_);
} | 30.222222 | 74 | 0.838235 |
11a58ed7fa96d6bc80bf18199daafee41355ce7f | 1,894 | /*
* Copyright 2011 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 applicable l... | 39.458333 | 80 | 0.805702 |
4f406b4208bb3ca2f22e9c4cf2ede45ef1331d68 | 6,047 | package de.moritzkanzler.utils;
import de.moritzkanzler.exception.GeoCoordinatesNotFoundException;
import de.moritzkanzler.exception.ParameterNotFoundException;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.flink.api.java.utils.ParameterTool;
import org.json.simple.JSONArray;
import org.json.simp... | 34.163842 | 167 | 0.585084 |
c322b1823a49ae9fa4418f34ddf5ce3cffb301f1 | 2,635 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | 35.608108 | 130 | 0.716129 |
9755e99ad234e9188ea840da94ac4f081ad67895 | 1,321 | package au.gov.nehta.model.clinical.diagnostic.imaging;
import au.gov.nehta.model.cda.common.code.Coded;
import au.gov.nehta.model.clinical.common.types.UniqueIdentifier;
/**
* Region of body (e.g. head, lower limb) that includes the anatomical
* locations of interest (e.g. jaw, foot).
* <p>
* Anatomical Region T... | 32.219512 | 80 | 0.698713 |
73833bd24188662c005aff4e5f9f567ea9558919 | 1,275 | package smitebot.embed_objects;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.TimeZone;
import org.json.JSONException;
import org.json.JSONObject;
import smitebot.Utils;
public class TeamMember {
/*
* Sample Output From GetTeamPlayers
*
* A... | 23.611111 | 84 | 0.695686 |
3277809fe6080ee814680379175ac162ecbc3bcd | 2,128 | /*
* Tencent is pleased to support the open source community by making QMUI_Android available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain ... | 34.322581 | 121 | 0.718515 |
c9c4081cfd5ec180460ac5a636ed6d6c5479119e | 1,379 | package com.tfm.mastermind.back.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class Board {
private int actualIntent;
private SecretCombination secretCombination;
private ProposalCombination[] proposalCombinations;
private Result[] results;
public Board() {
this.secretCombination = new ... | 24.625 | 86 | 0.778825 |
e0abf1472fb548eb651f7b2ac2e4f0cf3350f67f | 1,380 | package uk.gov.ida.integrationtest;
import com.codahale.metrics.MetricFilter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.graphite.Graphite;
import com.codahale.metrics.graphite.GraphiteReporter;
import io.dropwizard.testing.junit.DropwizardAppRule;
import org.junit.ClassRule;
import org.ju... | 39.428571 | 125 | 0.754348 |
fc6560dd454c5f8db5f32203edbfd723012750e3 | 7,763 | /*
* 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 ... | 31.556911 | 80 | 0.698313 |
4382af6edb9d9d743c643f330c14911b8933e543 | 1,701 | package com.griffiths.hugh.declarative_knitting.core.rendering;
import com.griffiths.hugh.declarative_knitting.core.model.patterns.Pattern;
import com.griffiths.hugh.declarative_knitting.core.model.patterns.PatternSegment;
import java.io.ByteArrayOutputStream;
import org.junit.Before;
import org.junit.Test;
import org... | 32.09434 | 98 | 0.777778 |
8736ce797f0556007f1bc4720de797ef529e2f1a | 5,405 | package java_servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java_bean.clothe_bean;
import java_bean.java_bean;
import java... | 39.166667 | 104 | 0.616836 |
8d7f0f4d4215f24a286cdbfaaab1ea28a48c0dad | 319 | package com.at.fizzbuzz.rules;
/**
* Created by angelo on 14/11/2016.
*
* This Rule will care of produce number results.
*
*/
public class RuleNumbers extends Rule {
@Override
public void apply(int number) {
if (builder.length() ==0)
builder.append(String.valueOf(number));
}
}
| 16.789474 | 51 | 0.630094 |
ae20830a8d9221932247d66370814ccb32aabbc8 | 2,443 | /*
* Copyright 2018 StreamSets 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... | 30.5375 | 88 | 0.747851 |
20fb0cba0666570f304d898d4dc0b6aa22c06c17 | 102 | package de.zekro.magicstaffs.items;
/**
* Base Staff Interface.
*/
public interface IBaseStaff { }
| 14.571429 | 35 | 0.715686 |
aadbbbf4ce2e3cbc34dcc4c236df7334d7e5159d | 1,732 | package net.aegistudio.mcinject.block;
import net.aegistudio.reflect.clazz.SamePackageClass;
import net.aegistudio.reflect.method.AbstractExecutor;
import net.aegistudio.reflect.method.NamedExecutor;
import net.aegistudio.mcinject.MinecraftServer;
import net.aegistudio.reflect.clazz.DelegateClass;
import net.aegistudi... | 29.862069 | 88 | 0.763857 |
b7e0d6102f7f6c265615534337e64dcf0257d298 | 380 | package appeng.api.storage;
import appeng.api.config.IncludeExclude;
import appeng.api.storage.data.IAEItemStack;
public interface ICellInventoryHandler extends IMEInventoryHandler<IAEItemStack>
{
/**
* @return get access to the Cell Inventory.
*/
ICellInventory getCellInv();
boolean isPreformatted();
bool... | 18.095238 | 80 | 0.781579 |
56721ac97ab75cc3e9371f1f0ae6638026e25795 | 2,649 | // Copyright 2017 Twitter. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 35.797297 | 87 | 0.738014 |
a3871724d9250f05a855b5bd60505318e0456a18 | 599 | package org.yogurtcat.server.common.message.service;
import java.util.List;
import org.yogurtcat.server.common.constant.MessageType;
import org.yogurtcat.server.common.message.domain.MessageConfig;
/**
* 消息配置service
* @author s
*
*/
public interface MessageConfigService {
/**
* 查询所有
* @return
*/
List<Me... | 14.609756 | 64 | 0.676127 |
68aa38dd89728ea7e362b2751a222b239536809c | 4,974 | /*
* Copyright 2000-2010 JetBrains s.r.o.
* 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 ... | 30.515337 | 122 | 0.582831 |
dc8f4e10ca8ffabe3f8a768f48fe3e2aa5419ac8 | 982 | public class Main {
public static void main(String[] args) {
// assume that the radius of the circle is 1
double lSectionArea = 1 - Math.PI / 4;
int n = 2;
while(true) {
if (concaveTriangleArea(n) / lSectionArea < 0.001) {
System.out.println(n);
... | 33.862069 | 95 | 0.526477 |
d5116c139bfcb6808ba8a2f4647d5bc82a7f1fb3 | 1,247 | package com.shiro.utils;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
public class DBConnection {
// 获取连接对象
public static Connection getConnection() {
try {
Class.forName("com.mysql.jdbc.Driver");
System.out.println("加载驱动成功");
} catch (Except... | 21.5 | 102 | 0.614274 |
3522bf017632e8a50cb54231ea7c8531739eeb9a | 1,614 | package com.redhat.uxl.webapp.web.rest;
import com.codahale.metrics.annotation.Timed;
import com.redhat.uxl.services.service.WikipageService;
import com.redhat.uxl.services.service.dto.WikipageDTO;
import io.swagger.annotations.ApiOperation;
import javax.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import org.spri... | 32.28 | 85 | 0.733581 |
1578c660437821b68d57e7b4dfedf1247fa6ac4c | 2,800 | /*
* Copyright (c) 2013. Knowledge Media Institute - The Open University
*
* 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... | 29.787234 | 96 | 0.715714 |
6cf3ea317714c32319b0f2ba07a45f4afc68ebb2 | 772 | package ru.bgbrakhi.carseller.service;
import ru.bgbrakhi.carseller.models.*;
import java.util.List;
public interface IStorage {
// Car getCar(String login, String cityName, String carType, String carMark, String carModel, String carBody, Integer year, Integer price, String fileName);
Car getCar(CarData carDa... | 35.090909 | 159 | 0.737047 |
d035cd828bb940371a789c0313ab2b17b14e7c74 | 844 | package array;
/**
* 定义局部最小的概念。arr长度为1时,arr[0]是局部最小。arr的长度为N(N>1)时,
* 如果arr[0]<arr[1],那么arr[0]是局部最小;如果arr[N-1]<arr[N-2],那么arr[N-1]是局部最小;
* 如果0<i<N-1,既有arr[i]<arr[i-1]又有arr[i]<arr[i+1],那么arr[i]是局部最小。
* 给定无序数组arr,已知arr中任意两个相邻的数都不相等,写一个函数,只需返回arr中任意一个局部最小出现的位置即可。
*
* @author dell
*
*/
public class getLess {
pub... | 21.1 | 69 | 0.562796 |
c6dc05feaee0c18d7329742b115847bd508578e6 | 4,058 | package org.dllwh.service;
import java.io.IOException;
import java.util.concurrent.CopyOnWriteArraySet;
import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.PathParam;
i... | 23.321839 | 115 | 0.649581 |
1913d7fc860ffb46a2db991ce1fbf920033de7ed | 510 | package org.wystriframework.core.definition;
import java.io.Serializable;
import java.util.Objects;
import java.util.stream.Stream;
public interface IRecordView<E> extends Serializable {
IRecord<E> getRecord();
<F> Stream<IFieldView<E, F>> fields();
@SuppressWarnings("unchecked")
default <F> IFieldV... | 24.285714 | 61 | 0.643137 |
46aa169f62e5d770d96404c1031a4d2e3affe493 | 226 | public class FactoryProducer {
public static AbstractFactory getFactory(String type){
if(type.equalsIgnoreCase("shape")){
return new ShapeFactory();
}
return new ColorFactory();
}
}
| 25.111111 | 58 | 0.628319 |
6825de8320d265522c6ab0ecec7a0a67792db05c | 709 | /**
*
*/
package org.jboss.resteasy.test.providers.iioimage;
import org.jboss.resteasy.annotations.providers.img.ImageWriterParams;
import javax.imageio.IIOImage;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
/**
* A ImageResource.
*
* @author <a hre... | 17.292683 | 70 | 0.669958 |
4b314b31e618e125f24a550b65262aac41c151f0 | 1,416 | package com.rafaelkarlo.workmode.mainscreen.service.alarm;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import static android.app.PendingIntent.FLAG_UPDATE_CURRENT;
public class WorkModeAlarmUtils {
public static fina... | 41.647059 | 121 | 0.787429 |
579bcd4ed13266f5280a70d3a9206a73960299c1 | 5,389 | package com.paul.camera.utils;
import android.util.Log;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Created by yang on 2016/12/23.
* paulyung@outlook.com
*/
public class LogUtil {
private static boolean _DEBUG = true;
public static final Strin... | 34.324841 | 151 | 0.424569 |
ed1c747369698ea230c41162a88527460fdb5def | 2,750 | package com.yiluxiangbei.joey.haoqiu.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.yiluxiangbei.joey.haoqiu.R;
import com.yiluxiangbei.joey.haoqiu.entit... | 30.21978 | 82 | 0.670909 |
65a7d3751e53a3dd902047862da5af2a9ae9b56c | 130 | package ai.board_heuristic;
import game.Game;
public interface BoardHeuristic {
int calculateHeuristicValue(Game game);
}
| 13 | 43 | 0.776923 |
f1eb47f5e1252e3e4bcf5432d9655653fbcda5fc | 2,644 | /**
* $Id$
* Copyright(C) 2012-2016 configx.com. All rights reserved.
*/
package com.configx.client.env;
import com.configx.client.item.ConfigItemList;
import com.configx.client.listener.ConfigItemChangeEvent;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.ConfigurableEnv... | 33.05 | 127 | 0.712557 |
0f5fe48179f838c078f049983b5e6f27fa5a363d | 1,634 |
package com.laegler.openbanking.soap.service;
import javax.xml.ws.WebFault;
/**
* Method Not Allowed
*
* This class was generated by Apache CXF 3.3.3
* 2019-10-21T07:01:27.251+13:00
* Generated source version: 3.3.3
*/
@WebFault(name = "GET_GetDomesticScheduledPaymentConsentsConsentId_405", targetNamespace =... | 35.521739 | 175 | 0.788862 |
15eb8d952687ba38861d9e4d287b1c9e35f67624 | 5,166 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014 The Billing Project, LLC
*
* Ning 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/lice... | 41 | 134 | 0.707511 |
30ef1409b64f819c07b7d21442635e0862983622 | 6,143 | /*
* Copyright 2002-2014 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... | 30.562189 | 121 | 0.711053 |
5ca650580a266f4e75873b078760dd00c5f64446 | 6,025 | package pretence;
import lapse.MinutesNurse;
import produceProjectiles.NeocomianElement;
import emitter.*;
import warehouses.*;
import best.*;
import static java.lang.String.format;
public class Simulator {
private static final String synX1862String = " ----------------------------------------------- ";
private s... | 43.035714 | 99 | 0.674357 |
4a9b2014b414f59bbb1a7a37d78c451d585b090b | 8,059 | package com.qualixium.playnb.filetype.conf.visualconfs;
import com.qualixium.playnb.filetype.conf.visualconfs.dto.ConfConnectionDTO;
import com.qualixium.playnb.util.MiscUtil;
import static com.qualixium.playnb.util.MiscUtil.LINE_SEPARATOR;
import java.util.List;
import java.util.Optional;
public class ConfFileUpdate... | 41.756477 | 129 | 0.510609 |
484652b684c601348f6005bae1eb15c532c51bd5 | 1,715 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 28.114754 | 100 | 0.585423 |
356d48c9aedca3515bf21d76825e8da513215bf5 | 3,729 | package iot.mqtt;
import java.util.Arrays;
import java.util.NoSuchElementException;
/**
* Class of utils to manage all the mqtt topics
*/
public class Topics {
private final static String UPSTREAM_SUFFIX = "/rx";
private final static String DOWNSTREAM_SUFFIX = "/tx";
private final static String MOTE_ID... | 32.426087 | 120 | 0.631 |
8433414e051fd017d4c4cdb5459baf3ee78f7721 | 4,187 | package org.ostrya.presencepublisher.ui;
import android.content.Context;
import android.os.Bundle;
import android.security.KeyChain;
import androidx.preference.*;
import org.ostrya.presencepublisher.R;
import org.ostrya.presencepublisher.ui.dialog.CheckConnectionDialogFragment;
import org.ostrya.presencepublisher.ui.u... | 47.579545 | 160 | 0.717698 |
9a31dc0b50e993976ed94bd5ab4d1dc48a1846f6 | 518 | package com.revature.beans;
public class Career {
private int GamesPlayed,GoalsScored,TrophiesWon;
public int getGamesPlayed() {
return GamesPlayed;
}
public void setGamesPlayed(int gamesPlayed) {
GamesPlayed = gamesPlayed;
}
public int getGoalsScored() {
return GoalsScored;
}
public void setGoalsSco... | 16.709677 | 49 | 0.739382 |
706941072248cbde00e9e77d70140a747be036f3 | 824 | package fun_with_java_enums.enums.strategies;
import fun_with_java_enums.services.TokenService;
import fun_with_java_enums.beans.CustomerToken;
import fun_with_java_enums.enums.CustomerTypeEnum;
public class CustomerTokenStrategy implements CustomerTypeEnum.CustomerStrategy<CustomerToken> {
private TokenService ... | 27.466667 | 96 | 0.737864 |
6f1c631aec49ceda8b3383a34f9b2235e65d0dd0 | 667 | package betterquesting.api2.client.gui.events;
/**
* Utility for safely casting events and their sub-types
*/
public class PEventFilter<T extends PanelEvent>
{
private final Class<T> type;
public PEventFilter(Class<T> type)
{
this.type = type;
}
public Class<T> getType()
{
return this.type;
}
publi... | 17.102564 | 69 | 0.691154 |
54e8e1e7e698d3034f573fcaf0503fc5ffb7ad03 | 541 | package uk.gov.hmcts.reform.sscs.ccd.domain;
import com.fasterxml.jackson.annotation.*;
import lombok.Builder;
import lombok.Data;
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@Builder(toBuilder = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Role {
private String name;
private String de... | 23.521739 | 66 | 0.711645 |
4924145e6790668c1012bf6c8cc4246d44c6733f | 667 | package com.lmd.ggzy.repository;
import java.io.Serializable;
import javax.persistence.EntityManager;
import org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.core.support.RepositoryFactorySuppor... | 31.761905 | 141 | 0.835082 |
62f27faa903c36295649d4c4f23ae912064458b8 | 2,241 | package ca.pfv.spmf.algorithms.frequentpatterns.zart;
/* This file is copyright (c) 2008-2013 Philippe Fournier-Viger
*
* This file is part of the SPMF DATA MINING SOFTWARE
* (http://www.philippe-fournier-viger.com/spmf).
*
* SPMF is free software: you can redistribute it and/or modify it under the
* terms of ... | 35.571429 | 103 | 0.709505 |
6208003ea9ac14dbc3a20663658d718228d3aa1e | 9,062 | /*---
iGeo - http://igeo.jp
Copyright (c) 2002-2013 Satoru Sugihara
This file is part of iGeo.
iGeo is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3.
iGeo is distri... | 52.994152 | 164 | 0.694107 |
21a5e37d2e67f2ddd9c6b38c9f9c1a53f983fa75 | 4,877 | package com.shoping.kiku.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shoping.kiku.entity.UserDeliveryEntity;
import com.shoping.kiku.entity.UserLoginEntity;
import com.sh... | 33.40411 | 93 | 0.751692 |
a751b57c2b5cbd4f2e91e39b70814a1d979ff855 | 572 | package com.xinshang.modular.biz.dto;
import com.xinshang.modular.biz.model.ReceiptsPayments;
import lombok.Data;
import java.util.List;
/**
*
* @author jyz
*/
@Data
public class AllinPayQueryInExpRespDetailDTO {
/**
* 商户系统用户标识
*/
private String bizUserId;
/**
* 该账户收支明细总条数
*/
... | 13.95122 | 55 | 0.622378 |
c06bb0338d3b41cc94793448b85d3d298c88cabd | 104 | package cn.hacktons.leakdemo;
/**
* Created by aven on 17/04/2018.
*/
public class CameraHelper {
}
| 11.555556 | 33 | 0.682692 |
7a31941731a5123a885fdfce456235d89bf9f1b2 | 2,692 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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... | 34.512821 | 140 | 0.764859 |
e1c0999264564d51461fc71be0796b466187c250 | 7,675 | package aima.test.core.unit.logic.fol.inference;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import aima.core.logic.fol.CNFConverter;
import aima.core.logic.fol.domain.FOLDomain;
import aima.core.logic.fol.inference.FOLOTTERLikeTheoremProver;
import aima.core.lo... | 33.081897 | 229 | 0.769902 |
80a76239a1e4f3f6fddbfb97c4f16886b7f42d1e | 5,870 | package org.pecker.proxy.utils.beanutils;
import lombok.extern.slf4j.Slf4j;
import net.sf.cglib.beans.BeanCopier;
import net.sf.cglib.core.Converter;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.con... | 45.859375 | 151 | 0.606474 |
8b8ddd8c92675655a579f542999d3c09c77a3ac1 | 3,188 | /*
* Decompiled with CFR 0.150.
*/
package us.myles.viaversion.libs.javassist.bytecode.annotation;
import java.io.IOException;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import us.myles.viaversion.libs.javassist.ClassPool;
import us.myles.viaversion.libs.javassist.bytecode.ConstPool;
import us.... | 30.075472 | 96 | 0.595671 |
1cc0beb211169e807ec72f89646e650fa208cf5c | 6,807 | /*
* 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 Views;
import Controllers.LoginController;
import Models.Configuracao;
import javax.swing.JOptionPane;
/**
*
* @author gabr... | 39.575581 | 148 | 0.62803 |
7ed9261187fe0102d6915d019739f5ce7042f6d8 | 4,738 | package org.nzvirtual.api.controllers;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swa... | 38.520325 | 121 | 0.573238 |
99b93aeef4bacafa810ff46f5e1511e2e6ef9500 | 2,696 | package com.xdroid.blogcodes.broadcast;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.widget.... | 30.292135 | 117 | 0.632789 |
058651ca1fabc994f6167d42638abbfbdc113625 | 3,590 | package com.iexec.worker.tee.post.compute.web2;
import com.iexec.common.utils.FileHelper;
import com.iexec.common.worker.result.ResultUtils;
import com.iexec.worker.tee.post.compute.utils.EnvUtils;
import lombok.extern.slf4j.Slf4j;
import java.io.File;
import java.util.Base64;
import static com.iexec.common.chain.De... | 41.264368 | 126 | 0.686908 |
ff6f17bc53831cdbf124e7d18933360c4128aeae | 379 | package screens.settings;
import aquality.appium.mobile.screens.Screen;
import org.openqa.selenium.By;
public abstract class SettingsScreen extends Screen {
protected SettingsScreen(By locator) {
super(locator, "Settings");
}
public abstract void openAccounts();
public abstract void openDebu... | 22.294118 | 53 | 0.741425 |
b30637612ace9d4017a0b73cb15bc057696ec137 | 867 | package fr.choralegourmande.misc.images;
import static org.imgscalr.Scalr.resize;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import javax.imageio.ImageIO;
import org.imgscalr.Scalr.Method;
public class ImageEnhancement... | 26.272727 | 91 | 0.794694 |
7b374d168db91903bb567becf80f4b851e04753f | 639 | /**
* <html>
* <body>
* <P> Copyright 1994 JsonInternational</p>
* <p> All rights reserved.</p>
* <p> Created by Jason</p>
* </body>
* </html>
*/
package cn.ucaner.core.annotation.example;
/**
* @Package:cn.ucaner.core.annotation.example
* @ClassName:People
* @Description: <p>... | 16.384615 | 49 | 0.507042 |
64a3f7e15bf6b6fa2cbb88e63f198284c3a4173b | 1,147 | package org.forum.server.specific_code;
import java.util.List;
import javax.annotation.Resource;
import org.dataloader.BatchLoaderEnvironment;
import org.forum.server.graphql.DataFetchersDelegateMember;
import org.forum.server.graphql.Member;
import org.forum.server.jpa.MemberRepository;
import org.slf4j.Logger;
imp... | 29.410256 | 106 | 0.781168 |
b9188194e2656f3c32c9ef322949a19a921a9390 | 332 | /**
*
*/
package com.gojek.jpa.util;
import java.sql.Types;
import org.hibernate.dialect.PostgreSQL95Dialect;
/**
* @author ganeshs
*
*/
public class ExtendedPostgreSQL94Dialect extends PostgreSQL95Dialect {
public ExtendedPostgreSQL94Dialect() {
this.registerHibernateType(Types.ARRAY, ArrayType.class.getNa... | 16.6 | 70 | 0.753012 |
42e83ec3c3a41baeb525ddbfd58d1b307856ac32 | 2,886 | /*
* Copyright (C) 2013-2017 microG Project Team
*
* 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 ... | 36.075 | 121 | 0.757796 |
3ce99c971bfe689ff5869078896589afb194b4c3 | 3,861 | package net.neoremind.fountain.test.it.template.singletable.saveeventposition;
import org.junit.Test;
import net.neoremind.fountain.changedata.ChangeDataSet;
import net.neoremind.fountain.test.constants.TableName;
import net.neoremind.fountain.test.it.template.BaseTest;
import net.neoremind.fountain.test.support.Asyn... | 34.168142 | 116 | 0.612277 |
632a9288dfc05e42ca3da4eaef1a6081ebc96bcd | 2,317 | package com.ahmetroid.popularmovies.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.ahmetroid.popularmovies.R;
import com.ahmetroid.popularmovies.databinding... | 29.705128 | 99 | 0.679758 |
c9d46061274767bbf696dc22db8392e8127cbc46 | 10,013 | package com.github.florent37.materialviewpager.sample;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.android.volley.AuthFailureError;
import com.android.volley... | 35.888889 | 117 | 0.572156 |
eb5843e6c092c960f30ab8e2f5aba5c237adcd26 | 532 | package com.example.martinruiz.snapnotes.utils;
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
/**
* Created by isaac on 11/14/17.
*/
public class DisplayTool {
public static int convertDpToPixel(float dp, Context context){
Resources resources... | 23.130435 | 85 | 0.718045 |
b765d01533a761b8976a7029c63236de9b74403d | 156 | package cn.test;
public class test05 {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("test05");
}
}
| 14.181818 | 41 | 0.698718 |
6fb612e1428ac5f536d4849e2e05a8f70eee7215 | 2,031 | package br.com.driw.spring;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.BDDMockito.willAnswer;
import static org.mockito.Mockito.when;
import org.ju... | 29.434783 | 88 | 0.787789 |
efafc56bfc0c96379501c588297d71ad08a69244 | 534 |
package DAO;
import java.sql.DriverManager;
import java.sql.Connection;
/**
* @author Pedro Fuschino
*/
public class Conexao {
public Connection getConexao(){
try{
Class.forName("com.mysql.jdbc.Driver");
return DriverManager.getConnection("jdbc:mysql://localhost/dbavali... | 24.272727 | 146 | 0.599251 |
04ecd9ed673e3ec6f8933179f12b6893fb87f06d | 1,168 | package gov.nasa.jpl.mbee.mdk.generator.graphs;
import java.util.HashSet;
import java.util.Set;
public class DirectedEdgeVector<VertexType> extends UndirectedEdgeVector<VertexType> implements
DirectedEdge<VertexType> {
/**
*
*/
private static final long serialVersionUID = 1L;
public Dir... | 24.851064 | 95 | 0.659247 |
d51faed0038fcccf7f35e2ec98e6f43ec2436e88 | 723 | package com.testerhome.nativeandroid.data.remote;
import com.testerhome.nativeandroid.data.remote.model.BannerResponse;
import com.testerhome.nativeandroid.data.remote.model.TopicsResponse;
import io.reactivex.Observable;
import retrofit2.http.Query;
/**
* Created by Bin Li on 2016/12/18.
*/
public class MockTHRe... | 24.931034 | 112 | 0.739972 |
34186fd020055a8903d113f300e33655faae3a25 | 395 | package com.fionapet.tenant.repository;
import com.fionapet.tenant.security.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface RoleRepository extends JpaRepository<Role, Long> {
Optiona... | 23.235294 | 67 | 0.817722 |
725695bae8344021c9b891ead0efe18cb8245bb6 | 4,183 | package com.ucar.streamsuite.user.web;
import com.ucar.streamsuite.common.dto.OperResultDTO;
import com.ucar.streamsuite.common.dto.PageQueryDTO;
import com.ucar.streamsuite.common.dto.PageResultDTO;
import com.ucar.streamsuite.user.dto.UserGroupDTO;
import com.ucar.streamsuite.user.po.UserGroupPO;
import com.ucar.str... | 34.570248 | 97 | 0.710734 |
72d0f82ed9b00717d9bf4830348c7aff754ea24b | 184 | package springfive.airline.airlinebooking.domain.fare;
import lombok.Data;
@Data
public class Passenger {
String id;
String name;
String email;
String fidelityNumber;
}
| 10.823529 | 54 | 0.744565 |
a0bdd24911bece98d8a30627366d6568b3f7053d | 532 | package com.ecaresoft.cumulus.components;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.ecaresoft.cumulus.R;
/**
* Created by erodriguez on 10/10/2015.
*/
public class I... | 22.166667 | 61 | 0.75 |
d8ce883290974352ff3cfdc600dbbfad3df000d9 | 610 | package org.archcorner.pojo;
public class CustomerCampaign {
private int customerCampaignId;
private int campaignId;
private int customerId;
public int getCustomerCampaignId() {
return customerCampaignId;
}
public void setCustomerCampaignId(int customerCampaignId) {
this.customerCampaignId = customer... | 16.944444 | 60 | 0.755738 |
0f75f839176cd6d262f139b52951c1e7198605cc | 1,907 | // automatically generated by the FlatBuffers compiler, do not modify
package krypto.serialization;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class InstrumentRequest extends Table {
public static void ValidateVersion() { Con... | 45.404762 | 212 | 0.754588 |
3e1dd8bdd5d390dbb39fd8d1cb0ef1510103ab6d | 743 | /*
* Created on :29 Aug, 2014
* Author :songlin
* Change History
* Version Date Author Reason
* <Ver.No> <date> <who modify> <reason>
* Copyright 2014-2020 songlin.li All right reserved.
*/
package cn.wuxia.wechat;
public class WeChatException extends Exception {
/**
... | 21.852941 | 70 | 0.60969 |
a0e454f9d2cadf442b4f45ccb5b4bc5ffd9835e7 | 5,265 | /*
Copyright 2015 Adobe. All rights reserved.
This file is licensed 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 required by applicable law or agre... | 39.586466 | 129 | 0.619943 |
478b8c6bf5fbb0a6cd51fa0f9492dcaacace7543 | 997 | package com.textquo.twist.entity;
import com.textquo.twist.annotations.Alias;
import com.textquo.twist.annotations.Entity;
import com.textquo.twist.annotations.Id;
@DummyAnnotation
@Entity(name = "Entity")
public class EntityAlias {
@Id
private Long id;
private String content;
@Alias(field = "activ... | 17.803571 | 51 | 0.631896 |
289da652c08f41ed90864fd7be8c247b014bbeb4 | 184 | package cn.howardliu.gear.logback.appender.kafka.key;
/**
* <br>created at 16-12-21
*
* @author liuxh
* @since 1.0.1
*/
public interface KeyingStrategy<K, E> {
K key(E e);
}
| 15.333333 | 53 | 0.641304 |
d84c3348f821e40d1e28e0486439264a5d89b406 | 10,811 | package com.hapramp.ui.fragments;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.... | 33.470588 | 109 | 0.715567 |
a854f59d70ecb09c198cef4da50047f6af731665 | 2,953 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | 42.185714 | 111 | 0.712834 |
99b01397d4149aa6907eeca0c63c8c63b34ef849 | 332 | package com.theflopguyproductions.ticktrack.ui.lottie.animation.keyframe;
import com.theflopguyproductions.ticktrack.ui.lottie.value.Keyframe;
import java.util.List;
abstract class KeyframeAnimation<T> extends BaseKeyframeAnimation<T, T> {
KeyframeAnimation(List<? extends Keyframe<T>> keyframes) {
super(keyfra... | 27.666667 | 73 | 0.795181 |
cd4f0a86e046f4759985da4c8c7ce6bc93aa2f4f | 1,789 | package com.nagappans.dsalgolab.queue;
public class DynamicQueue<T> implements IQueue<T> {
private static final int DEFAULT_CAPACITY = 3;
private int current_capacity = DEFAULT_CAPACITY;
private Object[] arr = new Object[current_capacity];
private int front, rear=0;
@Override
public void e... | 22.935897 | 65 | 0.555618 |
5ebf0a3b9e16b3a18de22b4c51d225422fc1e2e9 | 1,462 | package com.mumu.cake.ui.recycler;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;
import java.util.LinkedHashMap;
/**
* @ClassName: MultipleItemEntity
* @Description: 描述
* @Author: 范琳琳
* @CreateDate: 2019/3/16 17:38
* @Versio... | 28.666667 | 101 | 0.707934 |
f15212412c65a0618c7b00eb736fe354cc09a325 | 2,673 | package cc.eevee.turbo.core.persistence;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.List;
public abstract class Table {
private Db mDb;
private String mName;
public Table(Db db, String... | 26.205882 | 85 | 0.560045 |
8e8877965994aa7b961428eb0ca51b0c36c10eda | 520 | package com.pengsoft.system.api;
import com.pengsoft.support.Constant;
import com.pengsoft.support.api.EntityApi;
import com.pengsoft.system.domain.EmailMessage;
import com.pengsoft.system.service.EmailMessageService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.a... | 34.666667 | 91 | 0.842308 |
821af92a23d10ca9ffe31869c3528efcbea21efe | 1,942 | //
// $Id$
package client.mail;
/**
* Mail related utility methods.
*/
public class MailUtil
{
/**
* Scans a text, generating HTML that respects leading/consecutive spaces and newlines, while
* escaping actual HTML constructs.
*/
public static String textToHTML (String message)
{
... | 27.742857 | 97 | 0.407312 |
efb9c0869818146484e23664eeb155b4c4fcd974 | 369 | /*
* Created by 郑明亮 on 2021/5/30 7:46.
*/
//
package top.wuyongshi.webapi.utils;
/**
* <ol>
*
* </ol>
*
* @author 郑明亮
* @version 1.0
* @date 2021/5/30 7:46
* @email mpro@vip.qq.com
*/
public class PayEventHandler implements EventHandler<Number>{
@Override
public void notice(Number message) {
... | 14.76 | 62 | 0.609756 |
397b6fd713143aafe0e3fbb3ef88dabd7cce3550 | 14,479 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2018 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | 14.508016 | 124 | 0.812763 |
6243dc0f9b822fbf5295c14726a8ae68e08fc094 | 1,615 | package me.lake.live4danmaku.tools;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.text.TextPaint;
import android.util.TypedValue;
/**
* Created by Lakeinchina(lakeinchina@hotmail.com) on 2015/10/23.
* Live4Danmaku Project
*
* Copyright (C) 2015 Po H... | 31.057692 | 81 | 0.705263 |
b0b8e980b385caebd69004b62c3d9bd8ebb23995 | 223 | package com.mdikkii.fancytogglebutton.EaseTypes;
/**
* Created by Weiping on 2016/3/3.
*/
public class EaseInOutQuad extends CubicBezier {
public EaseInOutQuad() {
init(0.455, 0.03, 0.515, 0.955);
}
}
| 15.928571 | 48 | 0.659193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.