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 |
|---|---|---|---|---|---|
5a8fc8305e8bbd087677837dfd868bb187ffc51a | 326 | package com.sudoplay.mc.kor.spi.util;
/**
* Created by sk3lls on 1/27/2017.
*/
public class FloatUtils {
public static float HALF_PI = (float) (Math.PI / 2D);
public static final float EPSILON = 1.1920928955078125E-7f;
public static boolean compare(float a, float b) {
return Math.abs(a - b) < EPSILON;
... | 19.176471 | 61 | 0.677914 |
34bbccadd9c0eb6b32ce2bf4d8627068c9807b1b | 1,955 | /*******************************************************************************
* Copyright 2015 Google 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
*
* ... | 25.723684 | 81 | 0.582097 |
2552c2f1601bcf2a23985bfcba17db04b59e3792 | 16,212 | /**
* Copyright (C) 2012 Google, 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 ... | 35.474836 | 200 | 0.686652 |
ddaac1eb4a0457f935d000f5fd301aca8ed8298d | 9,132 | package com.cloud.legacymodel.network;
import com.cloud.legacymodel.network.LoadBalancerContainer.Scheme;
import com.cloud.legacymodel.utils.Pair;
import java.util.List;
public class LoadBalancingRule {
private final LoadBalancer lb;
private final Ip sourceIp;
private List<LbDestination> destinations;
... | 27.756839 | 177 | 0.625164 |
2ad507aa73f9233293d5dcd1398c471ef4ce0eaf | 887 | /**
* Copyright (C) 2020-2021 Dominik Glaser
*
* 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 ... | 26.878788 | 75 | 0.711387 |
2a332aaff53de81668594df7999c7bb9d2aa5eb8 | 1,741 | package com.echopen.asso.echopen.model.Painter;
import android.graphics.Paint;
import android.graphics.PathEffect;
import android.graphics.Typeface;
import android.text.TextPaint;
/**
* Created by mehdibenchoufi on 28/06/16.
*
* A class aiming to make work together Paint and TexPaint instances
* Implementing self... | 22.61039 | 68 | 0.658817 |
62114726a3906b9d08f67b4ee2dd33c374e53720 | 3,190 | /**
* $Id: TestHibernateLikeBean.java 45 2008-11-13 13:23:21Z azeckoski $
* $URL: http://reflectutils.googlecode.com/svn/trunk/src/test/java/org/azeckoski/reflectutils/classes/TestHibernateLikeBean.java $
* TestHibernateLikeBean.java - reflectutils - Nov 13, 2008 1:03:31 PM - azeckoski
*****************************... | 26.806723 | 131 | 0.633542 |
77011914e2d25079205829ba9611db345ee49bb0 | 136 | package toti.url;
public interface ParamConsumer {
void accept(Class<?> clazz, String paramName, boolean isRequestParam);
}
| 17 | 72 | 0.720588 |
b0d2912e36b7d99dff91ce0f437b73c73ba13d98 | 2,059 | package org.ibase4j.service.sys;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.session.data.redis.RedisOperationsSessionRepository;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.plugins.... | 27.092105 | 87 | 0.644973 |
da669d282db87b53cc92c70c366626e4244fed09 | 627 | package chapter02.section03.thread_2_3_6.pro_1_atomicIntergerNoSafe;
import java.util.concurrent.atomic.AtomicLong;
/**
* Project Name:java-multi-thread-programming <br/>
* Package Name:chapter02.section03.thread_2_3_6.pro_1_atomicIntergerNoSafe <br/>
* Date:2019/11/19 22:57 <br/>
*
* @author <a href="turodog@fo... | 27.26087 | 81 | 0.698565 |
4afc51d6bd07c7e1c9f346ee29ce9cec5a10bcc6 | 1,585 | package com.gmail.thelimeglass.SkellettProxy;
import ch.njol.skript.lang.Effect;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser.ParseResult;
import ch.njol.util.Kleenean;
import java.util.ArrayList;
import java.util.Arrays;
import javax.annotation.Nullable;
import org.bukkit.event.E... | 33.020833 | 104 | 0.770347 |
a1b63c7a79371c328a8472112d0aad886cb57ae6 | 662 | package org.jtwig.util;
public class UrlPath {
private static final String PATH_SEPARATOR = "/";
private String url;
public UrlPath append (String path) {
if (url == null) url = path;
else {
if (url.endsWith(PATH_SEPARATOR)) {
if (path.startsWith(PATH_SEPARATOR)... | 24.518519 | 53 | 0.501511 |
51a994212c2ea52572a4e998abff0ba8b8d0054f | 186 | package satori.problem;
import satori.common.SIdReader;
public interface STestSuiteBasicReader extends SIdReader {
long getProblemId();
String getName();
String getDescription();
}
| 18.6 | 58 | 0.795699 |
26f2d350e1f657e026f3812808386db289678322 | 13,717 | /*
* 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 ... | 60.162281 | 151 | 0.778013 |
191a3b264857fe98d924cf051811adc7338e24b8 | 301 | package rikka.sponge.entity.projectile;
import org.spongepowered.api.entity.projectile.arrow.Arrow;
import rikka.api.entity.projectile.IArrow;
public class SpongeArrow<T extends Arrow> extends SpongeProjectile<T> implements IArrow {
public SpongeArrow(T source) {
super(source);
}
}
| 27.363636 | 89 | 0.767442 |
ba351eb8dbccf8463a461839a3c0fc4184f97dc1 | 2,086 | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2021 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.core.protocol.serializer.ext... | 45.347826 | 119 | 0.75791 |
60b9399daaf917fbabc12f75d4c7db233cf5cee9 | 1,944 | /*
* Copyright 2012 - 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 29.014925 | 119 | 0.71965 |
e6ca59ddb2dc5aed6e8adb4be763013543b17526 | 4,823 | package app.touchlessChef.fragment.recipe;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText... | 35.20438 | 106 | 0.680904 |
134ad3e3ba7aa7f158ac741da632a3900002987f | 551 | package de.flingelli.security.openvas.reports.data;
import javax.xml.bind.annotation.*;
import java.util.List;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Field {
@XmlElementRef(name = "field", type = Field.class)
@XmlMixed
private List<String> mixedContent;
@XmlElement
priv... | 21.192308 | 54 | 0.647913 |
623b4f175b62d3da4ae4f11f342bdf702dd52ac3 | 3,963 | /*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
... | 38.105769 | 84 | 0.654302 |
fc14aa50fb1b1eaed4005721b35a5bb3c9c7de7c | 4,792 | package org.jeecgframework.core.util;
import java.util.List;
import java.util.Map;
import org.apache.commons.dbcp.BasicDataSource;
import org.apache.commons.lang.ArrayUtils;
import org.apache.log4j.Logger;
import org.jeecgframework.web.system.pojo.base.DynamicDataSourceEntity;
import org.springframework.jdbc.core.Jdb... | 31.735099 | 152 | 0.74207 |
2d75798e2f8cc4938162893cf7e9f7803b3693e9 | 5,112 | package de.bauhaus.digital.repository;
import static de.bauhaus.digital.DomainFactory.createSampleProjektBuilder;
import static de.bauhaus.digital.DomainFactory.createSampleTeilnehmer;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
i... | 37.043478 | 106 | 0.70403 |
6c5dd3cd78470524aaf74b42274ad41129641962 | 3,810 | /*
* Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 34.017857 | 105 | 0.725459 |
2c4681f964dc34dae532acb1ef492e5106b53f8d | 1,535 | package dataforms.devtool.page.query;
import java.util.Map;
import org.apache.log4j.Logger;
import dataforms.annotation.WebMethod;
import dataforms.controller.Response;
import dataforms.dao.Dao;
import dataforms.dao.Table;
import dataforms.devtool.page.base.DeveloperPage;
/**
* ページクラス。
*/
public ... | 19.679487 | 78 | 0.662541 |
6b32cea81999fe39656b9e6a18d90a1a1b23e4b8 | 199 | package generalNetwork.data;
import com.google.gson.annotations.Expose;
public class JsonSplitRatios {
@Expose
public int node_id;
@Expose
public JsonJunctionSplitRatios[] split_ratios;
}
| 16.583333 | 48 | 0.78392 |
14c685c335df2440b78caa4871e0100d6ff1273c | 3,028 | package week4.calculator;
import java.util.*;
public class Lijst
{
private Entry header;
private int size;
// Constructor voor een lege lijst
public Lijst()
{
header = new Entry( null, null, null );
header.next = header;
header.previous = header;
}
// Object vooraan toe... | 18.463415 | 57 | 0.580911 |
fc5cd4e0746664ff008abeaa40a86a231c4e8b15 | 1,174 | package com.ziyang.jms.activemq.orderinventory.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ziyang.jms.activemq.order.model.InventoryResponse;
import com.ziyang.jms.activemq.or... | 29.35 | 84 | 0.805792 |
69479fe1718043b95ecf12232cabb5c4a404857b | 761 | package be.woutschoovaerts.mollie.data.onboarding;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Optional;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OnboardingProfileRequest {
@Builder.Default
private O... | 21.742857 | 62 | 0.749014 |
c6768ca6db4eab2d9894741cb4a89d237d9a2fbd | 531 | package com.arrggh.eve.api.sde.model.universe;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import lombok.Builder;
import lombok.Value;
@Value
@Builder
@JsonDeserialize(builder = Star.StarBuilder.class)
public class Star {
priv... | 25.285714 | 65 | 0.772128 |
7fc23eb10bd5cfab326a4ef62cbecbc2272db1bc | 421 | package paya.hz.test;
import javax.naming.InitialContext;
import javax.naming.NamingException;
/**
* Created by sorin on 08.11.2016.
*/
public class Injector {
public static <E> E inject(Class<E> c) {
try {
return (E) new InitialContext().lookup("java:module/" + c.getSimpleName());
}... | 22.157895 | 87 | 0.603325 |
f53b5a2ce6d603e9d23c71aec3a806270083aa1d | 14,959 | package database.querys.cypherWrapper.cmu.wiggle;
import database.nodes.NodeTypes;
import database.querys.cypherWrapper.AbstractQuery;
import database.querys.cypherWrapper.AnonymousNode;
import database.querys.cypherWrapper.Any;
import database.querys.cypherWrapper.Cardinalidad;
import database.querys.cypherWrapper.Ca... | 55.609665 | 627 | 0.699044 |
ec63553af5012ec2b5752c7da041b1c7d3f1aa77 | 1,591 | package edu.brown.cs.counterpointer.rules.species3;
import edu.brown.cs.counterpointer.notenotation.Melody;
import edu.brown.cs.counterpointer.notenotation.Note;
import edu.brown.cs.counterpointer.rules.Rule;
import edu.brown.cs.counterpointer.rules.RuleUtilities;
import java.util.List;
/**
* Species 3 counterpoint... | 28.410714 | 90 | 0.697046 |
6bb269f504c37b2b1f9c8b71528fc626cfca890d | 4,913 | package com.jlcsoftware.callrecorder;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import androi... | 38.685039 | 145 | 0.569917 |
37c2a86c78aa739994e66387f5f6548f06e41c6f | 1,795 | package io.github.codingspeedup.blueprint.master.sheets;
import io.github.codingspeedup.toolbox.documents.xlsx.XlsxUtil;
import lombok.Getter;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class AnchorMatrix {
private final Map<String, Integer> anchorColumn = new HashMap<>();
... | 29.42623 | 130 | 0.621727 |
72dace7233640b8f2a51d4384572419678712563 | 2,220 | /*
* Copyright (C) 2018 Seoul National 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 required by applic... | 34.6875 | 120 | 0.732883 |
f23407fc748316e21b26e5e832df2cf6db57573e | 2,315 | /*
* The MIT License (MIT)
* <p/>
* Copyright (c) 2016-2017 Bertrand Martel
* <p/>
* 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... | 34.044118 | 83 | 0.715767 |
898e751c3972ae0b0c0ad2a6cdce5ad702d8787a | 2,716 | package org.honton.chas.checkstats;
import java.io.File;
import javax.xml.stream.events.StartElement;
public class JacocoParser extends XmlParser {
JacocoParser(File srcDir) {
super(srcDir);
}
@Override
Element getRootElement() {
return new RootElement();
}
private clas... | 29.204301 | 112 | 0.582842 |
d932492d30ccf4fae7e8ff1f4b7b69412aeec474 | 136 | package com.airbnb.lottie.value;
public interface SimpleLottieValueCallback<T> {
T getValue(LottieFrameInfo<T> lottieFrameInfo);
}
| 22.666667 | 51 | 0.794118 |
903f5077b55f936c3d38decc2281d631bf6d78f2 | 10,273 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 42.983264 | 182 | 0.713618 |
848ca33f69609e0fd0feeb2953d2ec0c45479f2e | 425 | package org.blueskiron.goldilocks.api.statemachine;
import java.io.Serializable;
/**
* @author jzachar
* @param <T> Type of the StateMachine
*/
public interface Command<T> extends Serializable {
/**
* @return
*/
public String getStateMachineId();
/**
* @return
*/
public Class<... | 16.346154 | 51 | 0.616471 |
05dec61cef3debb88357d1034d4117168932fe0e | 518 | package org.apache.http.auth;
public final class AUTH {
public static final String WWW_AUTH = "WWW-Authenticate";
public static final String WWW_AUTH_RESP = "Authorization";
public static final String PROXY_AUTH = "Proxy-Authenticate";
public static final String PROXY_AUTH_RESP = "Proxy-Authorization"... | 30.470588 | 121 | 0.714286 |
76aa8c130e67233877bfd3d0c266856cbbb2effe | 2,204 | package com.demoxin.minecraft.tmc;
import tterrag.core.IModTT;
import tterrag.core.common.compat.CompatabilityRegistry;
import com.demoxin.minecraft.tmc.common.CommonProxy;
import com.demoxin.minecraft.tmc.data.OreHelper;
import com.demoxin.minecraft.tmc.materialhelpers.FluidHelper;
import com.demoxin.minecraft.tmc.u... | 27.55 | 152 | 0.779946 |
6503de3ab2120c159e8d9350d41fee51ca9f6e72 | 143 | package com.pangu.fristapp.activitys;
/**
* Created by oyh on 15/12/24.
*/
public class ConstructRootActivty extends BaseSlidingActivty {
}
| 17.875 | 62 | 0.755245 |
6bc52a806a74736ae9132932bceb8bfadc44f4e1 | 46,644 | /*
* 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 ... | 48.536941 | 227 | 0.590301 |
6a06393ad80d8978a7792b8dc3d64928087d8ff3 | 1,571 | package dynamic_programming.one_d_dp;
public class HouseRobber {
//TAG: LinkedIn
//TAG: DP
//Difficulty: Easy
/**
* 198. House Robber
* You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you fro... | 42.459459 | 343 | 0.665181 |
8f8bc08acd5f1024f670cbf33514db025aac77b6 | 199 | package org.xzhi.af.ingredient.impl;
import org.xzhi.af.ingredient.Clams;
public class FrozenClams implements Clams {
public String toString() {
return "Frozen Clams from Chesapeake Bay";
}
}
| 18.090909 | 44 | 0.758794 |
6138a1acbeb24f5cf261e7755ee0b9b43d3f82b2 | 1,180 | /**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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 requi... | 34.705882 | 82 | 0.748305 |
2809825bdc13675e2e07dbaf70270ca27abfa80c | 2,088 | package com.tasfe.framework.netty.embed;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.FilterRegistration;
import javax.servlet.ServletException;
import java.util.Collection;
import java.util.EnumSet;
/**
* A {@link org.springframework.boot.context.embedded.netty.NettyEmbedde... | 31.636364 | 130 | 0.630747 |
4edd17b651297aa3e868ad9cef20481495a35a63 | 1,201 | package dev.foolen.bungeeplaytime.config;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import dev.foolen.bungeeplaytime.BungeePlayTimePlugin;
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bu... | 25.020833 | 82 | 0.681099 |
60e46b73826cf9fb9b4f1e45683225c252de8731 | 2,474 | package io.github.pleuvoir.gateway.model.vo;
import java.io.Serializable;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import io.github.pleuvoir.gateway.constants.RspCodeEnum;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 返回消息
*
* @author pleuvoir
*/
@Dat... | 26.042105 | 112 | 0.667745 |
969cf1a711746795269887708f07ac2101766676 | 1,550 | /*-------------------------*
| Rodrigo CavanhaMan |
| URI 2031 |
| Pedra Papel Ataque Aereo |
*--------------------------*/
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = Integer.parseInt(sc.nextLine());
... | 29.245283 | 55 | 0.592258 |
ec95150596cfe177d6220dee3c091672b7511351 | 1,756 | package org.iton.messenger.api;
import io.netty.buffer.ByteBuf;
import org.iton.messenger.core.TLContext;
import org.iton.messenger.core.TLVector;
import java.io.IOException;
import static org.iton.messenger.core.utils.StreamingUtils.*;
public class TLPhoto extends Photo {
public static final int CLASS_ID = 0x2... | 29.266667 | 133 | 0.635535 |
5a57beb3fe1ebaa7bd1fcdffe18a3737a7f43e78 | 1,558 | package ch.usi.dag.disl.marker;
import java.util.LinkedList;
import java.util.List;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.MethodNode;
import ch.usi.dag.disl.snippet.Shadow.WeavingRegion;
import ch.usi.dag.disl.util.AsmHelper;
import ch.usi.dag.disl.util.AsmHelper.Insns;
/**
... | 29.396226 | 83 | 0.673941 |
2568a94aa807b2db5e56fe302ca2067201f63324 | 691 | /*******************************************************************************
* Copyright (c) 2017 by JoyLau. All rights reserved
******************************************************************************/
package cn.joylau.mybatis.mapper.common.condition;
import cn.joylau.mybatis.mapper.provider.ConditionPr... | 27.64 | 80 | 0.547033 |
9f09bb73b41909d90fb2a1fab62ade644dcd6a66 | 3,615 | /*
* Copyright 2018. AppDynamics LLC and its affiliates.
* All Rights Reserved.
* This is unpublished proprietary source code of AppDynamics LLC and its affiliates.
* The copyright notice above does not evidence any actual or intended publication of such source code.
*
*/
package com.appdynamics.extensions.l... | 40.166667 | 121 | 0.696266 |
edd5118320634db4a950b1eb6d599e7cc179d144 | 4,798 | package com.github.merkurevsergei.todo.controllers;
import com.github.merkurevsergei.todo.model.Item;
import com.github.merkurevsergei.todo.model.User;
import com.github.merkurevsergei.todo.store.Store;
import org.apache.commons.lang3.math.NumberUtils;
import org.json.JSONArray;
import org.json.JSONObject;
import jav... | 39.983333 | 96 | 0.557732 |
10ae34091218bd29a01dff912e559d9bfa299663 | 4,512 | /*
* Copyright (C) 2017 CenturyLink, 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 applicab... | 43.384615 | 101 | 0.691046 |
fc0642d790d4bca13d27ad1551932a1488582826 | 2,188 | /*
* Copyright (C) 2014 Naver Business Platform Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 31.710145 | 93 | 0.764168 |
7cdb72073c49de85e77733074bd653590ab6f1cc | 285 | package org.sjtugo.api.DAO;
import org.sjtugo.api.entity.Schedule;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface ScheduleRepository extends JpaRepository<Schedule,Integer> {
List<Schedule> findByUserID(Integer userID);
}
| 23.75 | 77 | 0.810526 |
b0ee9bb55150ac1b0594567d6cd827e56b9f3d4e | 2,238 | package com.simibubi.create.foundation.utility;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.client.util.math.Vector3f;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.Vec3i;
public class... | 26.963855 | 121 | 0.71403 |
f519e541231c9a61203bceaa18ab22feea3e243b | 4,398 | /*
* This software is OSI Certified Open Source Software
*
* The MIT License (MIT)
* Copyright 2000-2001 by Wet-Wired.com Ltd., Portsmouth England
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to dea... | 31.414286 | 81 | 0.71487 |
66688546a3d9e7c0d9a71f5ff14334e8f749ccd8 | 10,793 | package com.alphagao.done365.ui.fragment;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Message;
import android.support.annotation.N... | 34.592949 | 119 | 0.620958 |
9082e91536732076a9901bacc83e2d69c33d56a8 | 4,161 | /*
* www.javagl.de - Rendering
*
* Copyright 2010-2016 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, including... | 31.763359 | 74 | 0.638789 |
8a52174750ff307893d575992eb26d539ac5e905 | 821 | package com.github.houbb.valid.test.core;
import com.github.houbb.valid.api.api.result.IResult;
import com.github.houbb.valid.core.api.constraint.Constraints;
import com.github.houbb.valid.core.bs.ValidBs;
import org.junit.Assert;
import org.junit.Test;
/**
* 值指定范围内测试
* @author binbin.hou
* @since 0.1.2
*/
public... | 23.457143 | 90 | 0.643118 |
8cfd28ce432e8ad9456d9fb856ab0ccf6ac7e957 | 2,818 | /*
* Copyright (c) 2019-2020 Dzikoysk
*
* 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... | 43.353846 | 153 | 0.752661 |
3d3fde47556904803319226c8e4d88acbca4f24b | 6,737 | /**
* Copyright 2010-present Facebook.
*
* 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 la... | 43.185897 | 128 | 0.65786 |
47cce694d9e9426a64a73e356d42d4a7eda244ae | 266 | package com.yuanshijia.demologinapp.http;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
/**
* Created by 49118 on 2018/3/17.
*/
public interface Service
{
@GET("/") // 因为我们是解析首页,也就是根目录,所以这边写"/"
Call<String> getBaidu();
}
| 16.625 | 42 | 0.699248 |
308f9b29aab58c362fdac050d1a9d1c0401e30c5 | 665 | package com.vexonelite.typefacetest;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
public class okHttpUtils {
public static final long CONNECTION_TIME = 10000;
public static final long READ_TIMEOUT = 120000;
public static final long WRITE_TIMEOUT = 120000;
public static OkHttpC... | 25.576923 | 71 | 0.742857 |
7904e8b896ec063851cc4c987780756a1b6ffc0c | 2,181 | package com.tuya.smart.tuyasmart_photoframe.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.tuya.smart.android.photoframe.api.ITuyaResultCallback;
import com.tuya.smart.android.photoframe.bean.Capacity;
impor... | 37.603448 | 144 | 0.710225 |
0a541f14a4fc1f2903cb6d0dbae7211ee3b69084 | 6,429 | package org.whattf.checker;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
public class UnsupportedFeatureChecker extends Checker {
/**
* @see org.whattf.checker.Checker#startElement(java.lang.String,
* java.lang.String, java.lang.String, org.xml.sax.Attributes)
*/
@Overr... | 69.129032 | 186 | 0.636024 |
49e5bc9cf5a012c673389f96cc3b9fa47845aee0 | 2,595 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 36.549296 | 85 | 0.717919 |
a18ca46318c75362902ae9e8a210004faa18aa09 | 1,310 | package com.swayzetrain.inventory.test.common.builder;
import java.sql.Timestamp;
import com.swayzetrain.inventory.common.model.Instance;
import com.swayzetrain.inventory.common.service.CommonService;
public class InstanceBuilder {
CommonService commonService = new CommonService();
private String instanceName ... | 21.833333 | 100 | 0.768702 |
4641cd6e4791dd91334e0bd24eb81ae865e67f38 | 555 | package io.github.opensanca.arqv.utils;
import java.util.stream.Stream;
import io.github.opensanca.arqv.enums.ArqvGroupRules;
import io.github.opensanca.arqv.enums.ArqvRules;
public class Defaults {
public static ArqvRules[] rules() {
return Stream.of(
ArqvGroupRules.SPRING_REST_GROUPS_R... | 30.833333 | 76 | 0.711712 |
192d5bbbf10e9df28006ffed09706dbd48d2b74f | 552 | package org.kyojo.schemaorg.m3n5.doma.core.bookFormatType;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n5.core.bookFormatType.E_BOOK;
import org.kyojo.schemaorg.m3n5.core.BookFormatType.EBook;
@ExternalDomain
public class EBookConverter impl... | 24 | 71 | 0.804348 |
e4e9724e17c2b6e435e380278b76c037a51ca51d | 963 | package net.valneas.account.api.commands.arguments;
import io.github.llewvallis.commandbuilder.ArgumentParser;
import io.github.llewvallis.commandbuilder.CommandContext;
import net.valneas.account.permission.PermissionDatabase;
import org.bukkit.Bukkit;
import org.bukkit.permissions.Permission;
import java.util.List;... | 38.52 | 125 | 0.788162 |
2d08a1937fdbbb655bcb4ab349705bdb62102f0e | 21,354 | package pxf.toolkit.basic.sql;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.Pr... | 32.801843 | 99 | 0.729606 |
6e0374b7e1988011531b50c668e4e116044bebd8 | 4,661 | package cn.jsyjst.dictionary.adapter;
import android.content.Context;
import android.media.MediaPlayer;
import android.os.Environment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.RadioButton;
import android.widg... | 33.775362 | 152 | 0.575842 |
99c7ef2c33b72a4cca28dff08ba51d03bf52d382 | 482 | package edu.fiuba.algo3.modelo;
public class Canje {
private int cantidadDeCanjes;
private final int CANJEMINIMO = 4;
public Canje(){
cantidadDeCanjes = 0;
}
public void sumarCanje(){
cantidadDeCanjes++;
}
public int cantidadACanjear(){
if(cantidadDeCanjes == 0) r... | 21.909091 | 58 | 0.628631 |
9f11983ee67ff6bc68319bb750bb395ab0066b70 | 3,284 | package com.bumptech.glide.load.model;
import androidx.annotation.NonNull;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import com.bumptech.glide.load.Options;
import com.bumptech.glide.load.data.DataFetcher;
import com.bumptech.glide.load.data.DataFetcher.DataCallback;
import... | 32.196078 | 114 | 0.610536 |
542d5dd15c9e816b1bc949653333ffed3d3f92e8 | 6,066 | package com.superiorcraft.api;
/*package com.superiorcraft.Forge;
import java.util.HashSet;
import org.bukkit.Material;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.FallingBlock;
import org.bukkit.entity.Player;
import o... | 35.473684 | 336 | 0.610287 |
0d1b6b53d9f89a467a844dd88ad227de7c3796f7 | 6,397 | package com.codepath.apps.TwitterClientR3.net;
import org.scribe.builder.api.Api;
import org.scribe.builder.api.FlickrApi;
import org.scribe.builder.api.TwitterApi;
import android.content.Context;
import com.codepath.apps.TwitterClientR3.models.Tweet;
import com.codepath.oauth.OAuthBaseClient;
import com.loopj.andro... | 37.629412 | 122 | 0.672815 |
aa5241c264a14919d0813d203bef5e02c1634e0a | 692 | package com.dodo.common.database.data;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* <p>Dodo Framework. <a href="https://www.bydodo.com">https://www.bydodo.com</a>
*
* @author uncle.code@bydodo.com
* @author mingming@bydodo.com
* @author dodo@bydodo.com
* @version v 1.0
*/
publ... | 19.222222 | 81 | 0.680636 |
26197e03627776a956a745082fcadca16c7299ee | 17,913 | package com.compomics.mslims.util.fileio.mergefiles;
import org.apache.log4j.Logger;
import com.compomics.mslims.util.fileio.MascotGenericFile;
import com.compomics.mascotdatfile.util.mascot.Query;
import java.io.File;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileReader;
import java.... | 48.413514 | 191 | 0.546977 |
5224f21297c55e436d92d2ad32f4e1ccbd6f9d9d | 2,598 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 37.652174 | 105 | 0.693226 |
295d0e93131cdfc88e6d0fe708650e99b8c324d3 | 795 | package com.cd.igitandroid.utils;
import android.util.Base64;
/**
* Created by ruandong on 2019/9/27.
*/
public class Base64Util {
public static String decode(String content) {
// return new String(Base64.decode(content.getBytes(), Base64.URL_SAFE));
// return new String(Base64.decode(content.get... | 31.8 | 82 | 0.690566 |
00070a3dccd81294de0e4d0a96f65a5801b71519 | 1,806 | package bitcoupon.transaction;
import java.io.ByteArrayOutputStream;
import bitcoupon.Bitcoin;
/**
* This class is used by transactions to refer to existing coupons that are sent.
*/
public class Input {
/**
* Id of this input. This is set by the server when the input is added to the database.
*/
privat... | 25.43662 | 115 | 0.697121 |
9760c4bd2ac3865c1807071f5e77ca9f4bab8f26 | 1,174 | package claudioteles.com.github.backendpessoas.dao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import claudioteles.com.github.backendpessoas.models.Chat;
import claudioteles.com.github.backendpessoas.models.Mensagem;
import ... | 23.959184 | 74 | 0.762351 |
71b057f0d147c5976843073d110add9e950fa23a | 213 | package io.eberlein.adocs.objects.events;
public class EventUrl {
private String url;
public EventUrl(String url){
this.url = url;
}
public String getUrl() {
return url;
}
}
| 15.214286 | 41 | 0.610329 |
abe33aa58abfcc302cbec41460d737bfd661e19c | 2,384 | /*
* 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 ... | 40.40678 | 127 | 0.741191 |
e6075a6497a55f549a12f9d7c6ec0cbe8e9b5e7a | 779 | package entity;
public class Course {
private String courseName;
private int hoursPerWeek;
private String teacherName;
public Course(String courseName, int hoursPerWeek, String teacherName) {
this.courseName = courseName;
this.hoursPerWeek = hoursPerWeek;
this.teacherName = teacherName;
}
pu... | 19.974359 | 74 | 0.720154 |
668fae7856e572b3c0423983b2b806077a34ce87 | 1,588 | package fr.xephi.authme.settings.commandconfig;
import ch.jalu.configme.configurationdata.ConfigurationDataBuilder;
import ch.jalu.configme.resource.PropertyResource;
import ch.jalu.configme.resource.YamlFileResource;
import fr.xephi.authme.TestHelper;
import fr.xephi.authme.settings.SettingsMigrationService;
import o... | 30.538462 | 105 | 0.77267 |
8b8ccdde355adc7c9310af8674dfa582d8ea3693 | 727 | package com.octo.model.dto.project;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class NewProjectDTOTest {
@Test
public void testGetterAndSetter() {... | 25.068966 | 50 | 0.676754 |
8541e89d08b40fb99ba4df2fd0595892b396e5cd | 1,280 | package tika.issue3591.commands;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Lo... | 28.444444 | 74 | 0.757813 |
6d5f0ac86cc06df833ae38cfcfef094d0337a3d6 | 448 | package com.recursia.popularmovies.data.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class GenresResponse {
@SerializedName("genres")
@Expose
private List<GenreModel> genres = null;
public List<GenreModel> getGenr... | 21.333333 | 52 | 0.707589 |
ed0c756bd43e61abba687804112d7dbc69bfb796 | 639 | package exercise.two;
public class EnchancedHouse implements HouseBuilder {
private House advanced;
public EnchancedHouse() {
advanced = new House();
}
@Override
public void buildBackyard() {
advanced.setBackyard(30.0);
}
@Override
public void buildKitchen() {
advanced.setKitchen(5.0);... | 18.257143 | 54 | 0.665102 |
4d1710dfc906dc13ad64d01477dd4694f31bb6b7 | 6,840 | /*
* Created on Oct 25, 2010
*
* 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... | 33.694581 | 130 | 0.690205 |
85bec491ba13c17015203ed8521cfd639a83821e | 1,387 | package com.example.smartdoc;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import androidx.appcompat.app.AppCompatActivity;
public class PrescriptionActivity extends AppCompatActivity {
ImageButton prescription_accept;
ImageButton pre... | 28.895833 | 80 | 0.66186 |
9a06f140ea2f73dc3ad4a5ed7efb5fd10075d1d8 | 1,607 | /*
* Copyright (c) 2010-2013 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.prism.path;
/**
* @author semancik
*
*/
public class IdItemPathSegment extends ItemPathSegment {... | 22.957143 | 73 | 0.581829 |
b5da23de481f200891ca2c802578c385ec8b3cef | 142,446 | package com.zimbra.qa.unittest;
import com.zimbra.client.ZMailbox.OwnerBy;
import com.zimbra.client.ZMailbox.SharedItemBy;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import stat... | 48.782877 | 197 | 0.644792 |
700a14d0ef8472dc8198e030e153b38b07054feb | 2,197 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/common/extensions.proto
package com.google.ads.googleads.v8.common;
public interface StructuredSnippetFeedItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v8.common.StructuredSnip... | 25.252874 | 107 | 0.632226 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.