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 |
|---|---|---|---|---|---|
20bb660e0c32e1b8020f1356964323fa3ff960ee | 23,377 | /*
* Copyright (C) 2010 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 agreed to ... | 37.583601 | 102 | 0.73829 |
29cac0b08acf971b58805ebf0158f2bbd02fc798 | 63,384 | /*
* Copyright (c) 2001, 2018, 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.040816 | 155 | 0.497649 |
9e4cdf3f46733f5bfcfa350d415560f5ab75db8a | 3,534 | /*
* Copyright 2015 - 2021 TU Dortmund
*
* 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... | 33.028037 | 119 | 0.677985 |
253a93a676135a383fd1ed3b0df60734934452a4 | 788 | package se.l4.graphql.binding.resolver.directive;
import java.util.function.Consumer;
import graphql.schema.GraphQLFieldDefinition;
import se.l4.graphql.binding.resolver.DataFetchingSupplier;
public interface GraphQLDirectiveFieldEncounter<A>
extends GraphQLDirectiveApplyEncounter<A>
{
/**
* Get the field on whi... | 20.205128 | 72 | 0.734772 |
2b31faad15a56b8f2732ae538a6722c05782006c | 557 | package cz.mg.vulkan;
public class VkDescriptorSetLayoutCreateFlags extends VkFlags {
public VkDescriptorSetLayoutCreateFlags() {
}
protected VkDescriptorSetLayoutCreateFlags(VkMemory vkmemory) {
super(vkmemory);
}
protected VkDescriptorSetLayoutCreateFlags(VkMemory vkmemory, long vkaddre... | 22.28 | 83 | 0.716338 |
5460ea042b881f30e7ce56852849aceb814b584e | 978 | package com.yourtion.leetcode.daily.m07.d09;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.Arrays;
import ... | 33.724138 | 121 | 0.715746 |
afbb8aff6adba0ac048c364348ff627d4878e843 | 1,256 | package cn.obcp.user.controller;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.SessionException;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotat... | 26.166667 | 87 | 0.76035 |
6d78b9ad1838c9dda15b5b23d995e4e56d5c55f1 | 1,893 | package org.innovateuk.ifs.management.competition.setup.core.form;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.constraints.NotNull;
public class TermsAndConditionsForm e... | 31.032787 | 79 | 0.685156 |
e6cab116dae71b143cb8c113df71461fa5f8a667 | 562 | package com.peregud.patternbuilder;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
public final class PersonGeneratorUtil {
private PersonGeneratorUtil() {
}
public static List<Person> createPersonList(List<Person> list) {
return list.stream()
... | 26.761905 | 68 | 0.633452 |
4db15c6494763bb79a4a71f4e2056d891c1880de | 569 | package io.lktk;
import java.nio.ByteBuffer;
class JNI {
static native long create_hasher();
static native void destroy_hasher(long hasher);
static native void blake3_hasher_init(long hasher);
static native void blake3_hasher_init_keyed(long hasher, ByteBuffer byteBuff);
static native void bla... | 28.45 | 93 | 0.782074 |
8502c618c895271f14b206956b0f36a003a45821 | 11,763 | /*
* Copyright (c) 2014 Optimal Payments
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publ... | 21.387273 | 100 | 0.637762 |
73b733b1fe5b31c65db35cc73b698496f7e7d94a | 8,139 | package twg2.parser.textParser;
import twg2.functions.predicates.CharPredicate;
/** The conditional read methods for a {@link TextParser}
* @see TextParser
* @author TeamworkGuy2
* @since 2013-12-10
*/
public interface TextParserConditionals {
/** Read the next character from the line
* @param ch the characte... | 43.758065 | 147 | 0.739526 |
417538f56cf7eb6f73109f42681a70b5b3c7721d | 9,737 | /*
* 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 ... | 23.690998 | 81 | 0.701345 |
dbc34423f6787c4904b30c9861f391b71e4b40ca | 837 | package employeeRegister.web.mbeans;
import employeeRegister.service.EmployeeService;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;
import java.io.IOException;
@Named
@RequestS... | 26.15625 | 97 | 0.770609 |
67e197a043be4e1d5f647762bb2215698446a6fd | 7,036 | /*
* 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 ... | 34.490196 | 90 | 0.603184 |
70cf8df0f7121b5c09fb9c5068720e01d78fb2d7 | 1,453 | package net.minestom.script.utils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import net.minestom.server.entity.Entity;
import net.minestom.server.entity.EntityType;
import net.minestom.server.entity.Player;
import org.apache.commons.text.WordUtils;
import org.jet... | 38.236842 | 100 | 0.701308 |
08c136e89c2a49d3f224590bb324db098939a58a | 5,120 | /*
* Copyright (C) 2020 ActiveJ 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 applicable law or agreed to... | 27.089947 | 97 | 0.69043 |
3243e9360746f6200496c55010508b57f743adaf | 1,190 | package com.crud.tasks.trello.validator;
import com.crud.tasks.domain.TrelloBoard;
import com.crud.tasks.domain.TrelloCard;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.List;
import static java.util.stream.Collectors.toList;
@Component
pu... | 34 | 93 | 0.701681 |
90a6682352b783b9663490f8a96add57a0adf9b3 | 8,739 | /*
* Copyright 2019 IIT Software GmbH
*
* IIT Software GmbH licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 43.695 | 136 | 0.665065 |
b0fc95e6acecd85123ec3f5a414ba3d55ff43488 | 46,086 | /*
* 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 ... | 49.501611 | 176 | 0.709825 |
0485947716d221d79bf72648603faaa63ca89cc1 | 2,526 | package edu.drexel.se577.grouptwo.viz.visualization;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.image.WritableRaster;
import java.io.File;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.u... | 26.3125 | 97 | 0.713381 |
3aa3216ef3bc43e40a2fa93d6fc835ac10b6a474 | 4,663 | /*
* This file is part of Velocity Punishment, which is licensed under the MIT license.
*
* Copyright (c) 2022 JvstvsHD
*
* 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 restri... | 48.572917 | 169 | 0.722282 |
07f2f33110d6b53773d36450904be66d6862bfd4 | 3,276 | /*
* Copyright (c) 2014, 2021, 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 ... | 37.655172 | 99 | 0.683455 |
418849c8e73c5a14922cb8f9cb7c37f7d87b89a0 | 5,234 | /*
* Copyright (C) 2006-2013 Bitronix Software (http://www.bitronix.be)
*
* 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 requ... | 34.20915 | 132 | 0.67864 |
e8f761a8430a6f9c970afed8fe1ce86a8695e45e | 228 | package DependenceInversionPrinciple;
/**
* @Author: zcc
* @Created_on: 2022/3/8/15:30
* ./Book.java
*/
public class Book implements IRead{
@Override
public String getContent()
{
return "书上的故事";
}
}
| 15.2 | 37 | 0.627193 |
59766095ca25b5c0ff056d680d5258448a8a048d | 2,534 | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.domain.application;
import gov.nih.nci.caintegrator.web.action.analysis.PrincipalComponentAn... | 26.673684 | 104 | 0.6397 |
110177efb1da0d4d01bf8e7410daa9760777f720 | 3,610 | /*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 41.022727 | 99 | 0.729363 |
3747d7fd09581b1f342d2ba66db85629fb17a892 | 696 | package org.openecomp.sdc.asdctool.impl.validator.executers;
import org.junit.Test;
public class TopologyTemplateValidatorExecuterTest {
private TopologyTemplateValidatorExecuter createTestSubject() {
return new TopologyTemplateValidatorExecuter();
}
@Test
public void testSetName() throws Exception {
Top... | 17.846154 | 64 | 0.762931 |
367496577ae5f1fcc82ebe3db1e0922e7a948340 | 1,532 | package edu.teco.pavos.pke;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
import org.joda.time.ReadableInstant;;
/**
* Defines a time interval to be used for filtering the data
* @author Jean Baumgarten
*/
public class TimeIntervall {
... | 18.457831 | 67 | 0.666449 |
fa4bd332411229f5ed8addc560fd7cc3f5635829 | 13,964 | /*
* Copyright (c) 2021, the hapjs-platform Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.hapjs.widgets;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import andro... | 33.811138 | 98 | 0.56617 |
730f7dce67f6a9922a6ba26cf77507d51ac19164 | 1,539 | // ============================================================================
//
// Copyright (C) 2006-2017 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... | 33.456522 | 111 | 0.665367 |
8602eb22ff8a129767f4c6d93f6202d26e0c097b | 395 | package codeandchords;
import processing.core.PApplet;
public class FullScreenDisplay extends PApplet
{
public FullScreenDisplay()
{
}
public void startDisplay()
{
PApplet.main("core.FullScreenDisplay");
}
public void settings()
{
this.fullScreen();
}
public void setup()
{
}
public vo... | 10.128205 | 46 | 0.658228 |
778e7fd68196ea6c10119830fcf6810c1a91aaca | 14,233 | package es.uc3m.tsc.math;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.text.DecimalFormat;
import java.util.Arrays;
public class ArrayUtils {
public static boolean equ... | 30.874187 | 196 | 0.546828 |
d3b4b0c467ef2348c829161183f1c695e9f19323 | 851 | package io.github.linuxcounter.services.api;
import io.github.linuxcounter.common.value.AnonymousReportData;
/**
* Service for incoming reports from clients.
*
* <p>This service will validate requests:</p>
* <ul>
* <li>Check if anonymous data is correct and complete.</li>
* <li>Check if data of registered u... | 30.392857 | 114 | 0.709753 |
4c891ad3193f9a6c4b7e7fd8fda9ddce968c2900 | 460 | package covid.fukui.rss.articlefeeder.exception;
/**
* DateTimeの変換に失敗した場合の例外
*/
public class InvalidDateTimeFormatException extends ArticleFeederException {
private static final long serialVersionUID = 5337756106684712403L;
/**
* コンストラクタ
*
* @param message メッセージ
* @param cause Throwa... | 21.904762 | 88 | 0.704348 |
c8296018cf5f495b9c97b8523a607c1b3550bde4 | 2,914 | package com.github.yoma.core.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.github.pagehelper.PageInfo;
import com.github.yoma.common.persistence.BaseController;
import com.github.yoma.common.persistence.BatchDTO;
import com.gith... | 29.734694 | 81 | 0.699039 |
df435e16e7b24fc5e87e02d3bed231a2ba48a69a | 4,765 | package org.asyou.sequoia.transaction.proxy;
import net.sf.cglib.proxy.MethodProxy;
import org.asyou.sequoia.dao.SequoiaAdapter;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
/**
* Created by steven on 17/8/9.
*/
public abstract class AProxy<T> implements IProxy<T> {
// privat... | 33.090278 | 140 | 0.60063 |
87c8d0d469ad22d30d8542e78dd0c1ab752f9be6 | 2,578 | package sample;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
public class RectangleZone extends Rectangle implemen... | 28.644444 | 116 | 0.559348 |
7545bba15b72ed951483890355b1dfa7c1efe604 | 9,295 | package com.cedarwood.ademo.activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7... | 33.555957 | 212 | 0.625605 |
17f5b53be3e4f1995460e8d11ce28e8ed4f0ff00 | 6,921 | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.hyperlink.detectors;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;... | 45.532895 | 107 | 0.701633 |
2a9b32a7f4846db924c263f3c093fd08e5bcb574 | 3,827 | /*
* Copyright 2010 Softgress - http://www.softgress.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 27.532374 | 95 | 0.703162 |
24bbfeed5e43338aed7c79283a097295d758c883 | 1,005 | package com.array.controllers.requests;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
/**
* @author XIII
*/
@Getter
... | 27.162162 | 114 | 0.697512 |
422b720941509ee18e9f986b0f34d81c658f4696 | 238 | package com.genius.backend.domain.model.log;
public interface LogValue {
String getJsonValue(HttpRequestLog httpRequestLog);
String getJsonValue(HttpResponseLog httpResponseLog);
String getJsonValue(SendMessageLog sendTalkLog);
}
| 19.833333 | 54 | 0.827731 |
a5abb13b7eb700b95b614bf96bdc1ff2477ed67e | 858 | package cn.yihu.microboot.service.point;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import cn.yihu.microboot.util.Results;
import cn.yihu.microboot.vo.point.ItemPoint;
/**
*
* @author Yang
*
*/
public interface ItemPointService {
/**
* 获取所有上架兑换物品
* @return
*/
Results<List<Ite... | 13.83871 | 55 | 0.66317 |
68be327e917fa7ae0c56a8b3b5485260999e37b2 | 914 | package com.jason.hibernate.model.manytomany.bidirectional;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
@Entity
public class Dream i... | 19.446809 | 68 | 0.704595 |
2e0ff7b2e086a2d097baaddb32ae294c0e1b1aea | 1,589 | package io.smallrye.stork;
import java.util.List;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
public class Service {
private final LoadBalancer loadBalancer;
private final ServiceDiscovery serviceDiscovery;
private final String serviceName;
public Service(String serviceName, Loa... | 26.483333 | 109 | 0.660793 |
5bcb4fc75fa062209fb41b6210138b163cabefee | 4,606 | package com.samsung.sds.brightics.common.workflow.context.parameter;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;
import jav... | 31.121622 | 96 | 0.576639 |
a738f95c73d2dd970101bf2c0fbffe5d317cc195 | 1,396 | package org.openstreetmap.atlas.geography.atlas.items.complex.waters.handler;
import static org.openstreetmap.atlas.geography.atlas.items.ItemType.AREA;
import static org.openstreetmap.atlas.geography.atlas.items.ItemType.LINE;
import java.util.Arrays;
import java.util.List;
import org.openstreetmap.atlas.geography.... | 26.339623 | 87 | 0.745702 |
73ae63413f488acb2376b79641bae95cb886fa2c | 708 | package com.example.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.example.demo.entity.User;
public interface IUserRepository extends JpaRepository<User, Integer>{
@Query("SELECT u FROM User u WHERE u.user... | 30.782609 | 79 | 0.724576 |
0aa6266db00b79ed79f5c3b093410fa094caa2e4 | 6,301 | /*
* Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
*
* 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 b... | 37.730539 | 100 | 0.729249 |
de89422480bf6522af6751ab910a6047948d38e3 | 1,845 | /*
* Copyright (C) 2012 Brendan Robert (BLuRry) brendan.robert@gmail.com.
*
* This library 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; either
* version 2.1 of the License, or (at your option) ... | 36.176471 | 140 | 0.722493 |
b8cf8ba0dc1b01953abc46daff76b5f9725c1293 | 916 | public class Solution {
static Character vowels[] = { 'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U' };
static Set<Character> vowelsSet = new HashSet<>(Arrays.asList(vowels));
public int solve(String A) {
// What about spaces?
// length - vowelIndex -> number of substrings starting with t... | 25.444444 | 85 | 0.447598 |
10246ae6607a836cf3cd44214fc1c3dd1511fc89 | 1,164 | package flask.test;
import flak.Response;
import flak.annotations.Post;
import flak.annotations.Route;
import flak.login.FlakUser;
import flak.login.LoginNotRequired;
import org.junit.Assert;
import org.junit.Test;
/**
* Reproduce invalid cookie path generated when app path is null|""|/
*/
public class AuthCookiePa... | 23.755102 | 98 | 0.70189 |
bc5d241d12ac7bb8d7f1f1a946eabad2ff8bbabd | 175 | package ghissues;
import org.osgl.mvc.annotation.GetAction;
public class Gh1257 extends BaseController {
@GetAction("1257")
public void test(int[] data) {
}
}
| 14.583333 | 44 | 0.697143 |
3a660ee41111eb7fe66e886b6572fa2d298a5dd0 | 1,472 | package com.smilehacker.lego.util;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
/**
* Created by zhouquan on 17/2/28.
*/
public class ReflectionUtil {
private static final String TYPE_NAME_PREFIX = "class ";
public static String getClassName(Type type) {
if (type==nul... | 29.44 | 91 | 0.634511 |
eca2563259863e4354220b8abf4e5596fea1e629 | 1,543 | package com.dumblthon.messenger.auth.repository;
import org.jooq.Param;
import org.jooq.Query;
import org.jooq.conf.ParamType;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations;
im... | 30.86 | 86 | 0.685677 |
16b45f19531c10bfd5ddc5fc8d122d4a623f5217 | 3,228 | package com.microsoft.azure.functions.worker.binding;
import java.util.HashMap;
import java.util.Map;
import com.microsoft.azure.functions.HttpResponseMessage;
import com.microsoft.azure.functions.HttpStatus;
import com.microsoft.azure.functions.HttpStatusType;
import com.microsoft.azure.functions.rpc.messages.RpcHtt... | 33.625 | 144 | 0.713445 |
83bbb3894362624ac81598f58b5e04ec26137843 | 1,034 | package og;
import java.util.Random;
import java.util.function.Consumer;
public class ElementProperties {
public static Property color = new ColorProperty() {
@Override
public String getName() {
return "color";
}
@Override
public String getDefaultValue() {
return "black";
}
};
public static ... | 14.985507 | 58 | 0.658607 |
de53878c593fd00ea8dab2ae0c81e539ed56d445 | 9,478 | /*
* Copyright 2015 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 38.528455 | 111 | 0.684322 |
291a8355fd05e456f86f6d5648c234a2388cba9d | 1,829 | package com.reecycle.reecycleapp.form.SlidePages.Reepontos;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.re... | 31.534483 | 107 | 0.722253 |
5340cfe27207406f5cbc7f365564d11416bc2463 | 1,144 | package com.sypht;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.junit.Rule;
import org.junit.contrib.java.lang.system.EnvironmentVariables;
import java.io.IOException;
/**
* Unit test for simple App.
*/
public class OAuthClientTest extends TestCase {
... | 24.869565 | 77 | 0.66958 |
269199fd4a68958a118015de2ef4a040dbfa7b30 | 3,358 | /*
* Copyright 2019 Insurance Australia Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 29.716814 | 94 | 0.712031 |
debe99785c33c02f2e4d02af03ca81e85b880c29 | 491 | package org.maltparser.parser.history;
import org.maltparser.core.exception.MaltChainedException;
import org.maltparser.parser.history.action.GuideUserAction;
/**
*
* @author Johan Hall
*/
public interface HistoryNode {
public HistoryNode getPreviousNode();
public GuideUserAction getAction();
public v... | 28.882353 | 61 | 0.778004 |
577627fdc98f661cc783c1ce1e61f94cf94003ce | 303 | package org.jeecg.modules.device.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.device.entity.Device;
/**
* @Description: 设备信息
* @Author: jeecg-boot
* @Date: 2022-01-19
* @Version: V1.0
*/
public interface DeviceMapper extends BaseMapper<Device> {
}
| 18.9375 | 58 | 0.735974 |
508531f2a53177336fd919509be221d327564274 | 3,682 | package com.test.reflect;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import com.test.bean.Person;
/**
* 演示反射的使用:
* 通过反射找到方法名,参数名等
... | 27.684211 | 212 | 0.667572 |
0be2eae61d9a0bcd1ec6fa451c2b53883b2413cf | 1,414 | package fwlib32;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.g... | 37.210526 | 195 | 0.743281 |
d22c35d36ff1dcebcde365199e1441ac943a8395 | 635 | package com.bird.gateway.web.pipe.before.authorize;
import com.bird.core.session.BirdSession;
import org.springframework.web.server.ServerWebExchange;
/**
* @author liuxx
* @date 2018/12/3
*/
public interface IAuthorizeManager {
/**
* 解析session信息
* @param exchange exchange
* @return session
... | 22.678571 | 89 | 0.689764 |
453cb3aa01534e02b698075d6f517c024e2f9663 | 381 | package roth.lib.java.code.java;
public enum JavaModifier
{
STATIC,
FINAL,
ABSTRACT,
SYNCHRONIZED,
TRANSIENT,
VOLATILE,
NATIVE,
STRICTFP,
DEFAULT;
@Override
public String toString()
{
return name().toLowerCase();
}
public static JavaModifier parse(String value)
{
try
{
return valueOf(value)... | 10.885714 | 47 | 0.661417 |
de5271bb147b5b57de1214e9b142e423e8c951d9 | 11,847 | /*
* 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://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 45.918605 | 130 | 0.699418 |
56291c48a7b0882afd6665035dbe6f8b770cb4a7 | 1,310 | package com.github.rstockbridge.showstats;
import com.github.rstockbridge.showstats.api.models.City;
import com.github.rstockbridge.showstats.api.models.Coordinates;
import com.github.rstockbridge.showstats.api.models.Setlist;
import com.github.rstockbridge.showstats.api.models.SetlistArtist;
import com.github.rstockb... | 30.465116 | 100 | 0.69771 |
236fc83e51799cb3fae209906fd24168edee4cfd | 5,140 | package net.sitemorph.protostore.sql;
import net.sitemorph.protostore.CrudException;
import net.sitemorph.protostore.CrudIterator;
import net.sitemorph.protostore.MessageNotFoundException;
import com.google.protobuf.ByteString;
import com.google.protobuf.Descriptors.Descriptor;
import com.google.protobuf.Descriptors.... | 29.54023 | 79 | 0.601167 |
d262f6f4fb1ffdaed3f6fd4d21a23d3c764ab43a | 991 | public void notifyStartup(StartupEvent event) {
logger.info("Running revision info...");
Process pr = null;
try {
pr = Runtime.getRuntime().exec("svn info");
} catch (IOException e) {
e.printStackTrace();
}
logger.info("Running revision info...... | 39.64 | 116 | 0.565086 |
490d283b202faaed78aa9b9bca0303aff806d0f7 | 1,174 | /*
* 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 u... | 39.133333 | 135 | 0.803237 |
3822ce6525395f3a4c261cf0f307ed37884d1a51 | 91 | package com.mobile.communication.domain.enums;
public enum StatusCode {
OK,
KO
}
| 11.375 | 46 | 0.703297 |
7f658ca86ea4c62e1c19ddee0103bc26e1b2a199 | 1,275 | /*
By: facug91
From: http://coj.uci.cu/24h/problem.xhtml?abb=2549
Name: SETNJA
Number: 2549
Date: 22/10/2013
*/
import java.text.DecimalFormat;
import java.util.Scanner;
public class SETNJA {
static int square (int n) {
return (n * n);
}
public static void main (String[] args) {
Scann... | 19.615385 | 106 | 0.549804 |
2eecc1198c77435b8b7ec3acd3c4dc1d059e53a6 | 1,539 | /**
* boilerpipe
*
* Copyright (c) 2009, 2014 Christian Kohlschütter
*
* The author 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/licens... | 27 | 77 | 0.7141 |
0fdadb22354b393d0bc687ef86093cc1c7b8ae84 | 24,232 | package com.dianwoda.test.bassy.db.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DingdingNotifyExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DingdingNotifyExample() {
oredC... | 31.026889 | 102 | 0.56706 |
41ae8e1917152f37a1444e61b8b4305920bac511 | 8,338 | /*
* Copyright © 2021-present Arcade Data Ltd (info@arcadedata.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 34.312757 | 155 | 0.576157 |
df4f89b9b7ba78586571294552eadffed7135ea0 | 2,227 | package com.example.pragyaagrawal.levelmoneytask.adapters;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.pragyaagrawal.levelmoneytask.R;
impor... | 34.796875 | 95 | 0.727436 |
d5c2646fc0ee1c2eebb9d50abe388c17c0753e68 | 329 | package org.jeecg.modules.business.service;
import org.jeecg.modules.business.entity.SysWarnUser;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 报警短信接收人
* @Author: jeecg-boot
* @Date: 2020-07-09
* @Version: V1.0
*/
public interface ISysWarnUserService extends IService<SysWarnUs... | 21.933333 | 68 | 0.759878 |
fe9728649d5a8f776976e44daaa5909c8bab1004 | 430 | package s02.Cycle;
/**
* Description: NestedLoopTest
* Author: silence
* Update: silence(2017-04-20 16:47)
*/
public class NestedLoopTest {
public static void main(String[] args)
{
//外层循环
for (int i = 0 ; i < 5 ; i++ )
{
//内层循环
for (int j = 0; j < 3 ; j++ )
... | 19.545455 | 64 | 0.439535 |
ce4f2303c3f461703049fc06fdc456f71976bb00 | 396 | // Math.pow requires doubles, returns a double
public class Solution {
public int titleToNumber(String s) {
int ALPHABET=26;
int n=s.length();
char[] letters = s.toCharArray();
int num=0;
int base=1;
for(int i=n-1; i>=0; i--, base*=ALPHABET){
int d=letter... | 22 | 50 | 0.507576 |
4f9a234be134106126ccd98fdec8f47f5f41f0cf | 3,630 | package com.Nasa.ProjetoNasa.model;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.util.Date;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.SwingConstants;
public class Utils {
public static void ajustesBotao(JButton b, ... | 29.754098 | 93 | 0.67135 |
ff17f45a7563dc932df41e438adfaf56683467a1 | 697 | package com.cognizant.cognizantits.qcconnection.qcupdation;
import com4j.Com4jObject;
import com4j.DISPID;
import com4j.IID;
import com4j.NativeType;
import com4j.ReturnValue;
import com4j.VTID;
@IID("{49B715FA-458E-46EA-A171-0E0BFB38B3AF}")
public abstract interface ILinkFactory
extends IBaseFactory
{
@DISPID(8)... | 21.78125 | 59 | 0.731707 |
4845b597c3c2ee55b0bee96ccd625f65c3cff595 | 6,258 | package com.jbirdvegas.mgerrit.database;
/*
* Copyright (C) 2014 Android Open Kang Project (AOKP)
* Author: Evan Conway (P4R4N01D), 2014
*
* 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 Licens... | 41.443709 | 96 | 0.678651 |
e3227a612cee38263e578c6355435502a6e2360b | 2,255 | package file;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.IOException;
import java.nio.file.NoSuchFileException;
import java.util.HashMap;
import java.util.Map;
import path.MaldoPath;
import path.PathRegistry;
/**
... | 29.285714 | 92 | 0.736142 |
cbfe4e4625ae0304cbd4fa14c9965831cc4ab281 | 3,413 | /*
* Tencent is pleased to support the open source community by making Spring Cloud Tencent available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License");
* you may not use this file except in compliance with the License.
* ... | 34.826531 | 100 | 0.783768 |
f1ecb2407d802503c21dd97624a95cc4c2de55ce | 1,112 | package ata.util;
import com.alibaba.fastjson.JSONObject;
public class JSONResult {
public static String success() {
JSONObject json = new JSONObject();
json.put("result", true);
return json.toJSONString();
}
public static String success(Object data) {
JSONObject json = n... | 26.47619 | 61 | 0.598022 |
d02ac4e69fd6de002c81a9bbefb893a43c746eac | 9,365 |
package io.github.bigbio.pgatk.io.mzxml.mzxml.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElem... | 27.066474 | 144 | 0.586866 |
eae2809e6de82335771bdcb38353346ba08f0a76 | 167 | package com.vanessagl2.dojo;
public class Main {
public static void main(String[] args) {
System.out.println("Welcome to the Vending Machine!");
}
}
| 18.555556 | 62 | 0.664671 |
1e0c0dd3855a28810b75fd100fb4556ea55722db | 1,537 | /**
*
*/
package at.free23.shop.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
/**
* @author michael.vlasat... | 16.351064 | 110 | 0.648666 |
42f5b3cd7bab5e7fc79f16b2708b6a6235965fc8 | 1,198 |
package com.djs.learn.spring_sample.jpa;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.orm.jpa.JpaTemplate;
import com.djs.learn.spring_sample.db.Item;
import com.djs.learn.spring_sample.db.ItemDao;
public class ItemDaoJpaImplA implements ItemDao
{
private final Logger log = Lo... | 19.966667 | 91 | 0.68197 |
de917a80917f48627f52b92715004b86296d717a | 2,872 | package com.ba.captwo.eda.demo.routes;
import com.ba.captwo.eda.demo.model.Booking;
import com.ba.captwo.eda.demo.model.Person;
import com.ba.captwo.eda.demo.model.Reservation;
import org.apache.cxf.helpers.IOUtils;
import org.apache.cxf.jaxrs.client.WebClient;
import org.codehaus.jackson.map.ObjectMapper;
import org.... | 35.02439 | 88 | 0.610724 |
5c59e264d20155ff28664830e7574e5e47315981 | 1,400 | package org.minimallycorrect.tickthreading.mixin.extended.forge;
import java.util.List;
import lombok.val;
import org.minimallycorrect.mixin.Mixin;
import org.minimallycorrect.mixin.Overwrite;
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
impo... | 24.561404 | 119 | 0.705 |
5f8f0c2b20e85e433c73d2517c81c4d146282df9 | 5,067 | package at.ac.tuwien.oz.datatypes.postconditions.combinable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import at.ac.tuwien.oz.datatypes.postconditions.ChangeOperationCall;
import at.ac.tuwien.oz.datatypes.postconditions.ComplexChangePostconditionMapping;
import... | 35.683099 | 144 | 0.790606 |
95b04306edb91314e4f224fec405945e60667b1d | 534 | public class Alumno{
String nombre;
char sexo;
int edad;
double calif[];
public Alumno(String n, char s, int e double c){
nombre = n;
sexo = s;
edad = e;
c=calif;
}
public String getNombre(){
return nombre;
}
public char getSexo(){
... | 14.833333 | 56 | 0.514981 |
3e1dd97a99d4bbcfc66408f2bd6a05490fab007a | 23,740 | package com.prtech.svarog;
import java.lang.management.ManagementFactory;
import java.net.UnknownHostException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicBoolea... | 32.972222 | 119 | 0.714069 |
4a19e746d09a8d0d26630f783c0f736f6f6a001a | 805 | package ducky.core.levels;
import ducky.Game;
import ducky.core.entities.CV;
import ducky.graphics.DRenderer;
import ducky.graphics.Res;
public class PlayLevel2 extends PlayLevel {
public PlayLevel2() {
super(Res.LEVEL2_BACKGROUND, 82, Res.LEVEL2_INFO, Res.LEVEL2_EOTLR,
Res.LEVEL2_EOTLL, 4, 0, 0, 60);
int l... | 22.361111 | 70 | 0.677019 |
8cbc0b335bb12971215f7932cba46a54522c5802 | 44,564 | /**
* Autogenerated by Frugal Compiler (2.9.1)
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*
* @generated
*/
package variety.java;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrif... | 28.825356 | 198 | 0.683668 |
0b3d0dfaaa1622edf08a4789c65725173188346f | 3,994 | /*
* Copyright © 2020 Treblereel
*
* 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... | 38.403846 | 98 | 0.763645 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.