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 |
|---|---|---|---|---|---|
84cde4baa224ab3fe2e99d515afc885c05240f09 | 1,953 | /*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS... | 31 | 110 | 0.676395 |
ef630dc2c498bf7271491fa80fa62066be587ec0 | 62 | package naef.mvo;
public enum PortMode {
VLAN,
IP
}
| 7.75 | 22 | 0.612903 |
8fadc3572fbcc10dc7b6731997f6885620228103 | 1,829 | package frontEnd.Skeleton.AoTools.AttributeVisualization;
import javafx.scene.Node;
/**
* This interface serves as a way to visualize all attribute types of the
* project. If any attribute types are added a new method is required here.
*
* @author Miguel Anderson
*
*/
public interface AttributeVisualization {... | 20.784091 | 77 | 0.671405 |
ab78314442dd531498799581280ce635a7a775ba | 62,797 | /* The following code was generated by JFlex 1.4.1 on 3/24/13 12:59 AM */
/*
* 03/24/2013
*
* VisualBasicTokenMaker.java - Scanner for Visual Basic
*
* This library is distributed under a modified BSD license. See the included
* RSyntaxTextArea.License.txt file for details.
*/
package org.fife.ui.rs... | 38.76358 | 163 | 0.504212 |
ecf2249db678e6c86730732b435f42dfa432de95 | 657 | package com.louisblogs.louismall.member.config;
import com.louisblogs.louismall.member.interceptor.LoginUserInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.We... | 26.28 | 77 | 0.806697 |
c9344915abc2af128642c0349cb6de861f929602 | 4,599 | package org.jgroups.protocols.mklinger;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.util.Objects;
import java.util.function.Supplier;
import org.... | 25.131148 | 110 | 0.688411 |
4d7066b9c654aea5e197442b70d5ca9fcfe19e64 | 1,931 | package com.gtc.tradinggateway.service.gdax;
import com.appunite.websocket.rx.object.messages.RxObjectEventConnected;
import com.fasterxml.jackson.databind.JsonNode;
import com.gtc.tradinggateway.config.GdaxConfig;
import com.gtc.tradinggateway.meta.TradingCurrency;
import com.gtc.tradinggateway.service.BaseWsClient;
... | 25.077922 | 107 | 0.690316 |
7f5ef5b138c6fb6cc17185e5aa079c3d7080e34f | 2,536 | package com.campcode.maanav.digimate.activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatSeekBar;
import android.view.View;
import android.widget.ImageView;
import android.widget.Se... | 37.850746 | 126 | 0.736199 |
65d0ca31867a585de862ee6d9bd8927188b4a0cd | 1,236 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 34.333333 | 75 | 0.723301 |
ad0459442d3fe94a880c3e3c8dc4e10479d44e62 | 1,707 | package com.github.jinsen47.baidu;
import java.util.Scanner;
/**
* Created by Jinsen on 16/9/20.
* ss请cc来家里钓鱼,鱼塘可划分为n*m的格子,每个格子有不同的概率钓上鱼,cc一直在坐标(x,y)的格子钓鱼,而ss每分钟随机钓一个格子。问t分钟后他们谁至少钓到一条鱼的概率大?为多少?
* 第一行五个整数n,m,x,y,t(1≤n,m,t≤1000,1≤x≤n,1≤y≤m);
* 接下来为一个n*m的矩阵,每行m个一位小数,共n行,第i行第j个数代表坐标为(i,j)的格子钓到鱼的概率为p(0≤p≤1)
*
* 输出两行... | 33.470588 | 97 | 0.485062 |
17682da603e635baf924fa8f232b4de603a45acc | 3,360 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
*
* 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/LICE... | 28.965517 | 342 | 0.716964 |
fee3812324e62751fe1014aa32853258a330cddf | 7,218 | /*
* 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 SVGPath2TextTest;
import static SVGPath2TextTest.AddViewport.setViewBoxPageSize;
import static SVGPath2TextTest.ExtraktLetters... | 40.324022 | 115 | 0.634802 |
ee56b3cec4b3b6c7e01d1e9dbc19f4b94f3a9184 | 5,419 | package org.firstinspires.ftc.teamcode.test;
import android.graphics.Bitmap;
import android.graphics.Color;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
//import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
//import org.firstinspires.ftc.teamco... | 32.644578 | 109 | 0.53091 |
67d66a7073071d164e7864cea6a61719e2d52b84 | 237 | package creational.builder;
public interface Builder {
public String getName();
void buildComponent1(String component1);
void buildComponent2(String component2);
void buildComponent3(String component3);
Product getProduct();
} | 26.333333 | 42 | 0.78903 |
80001b7155c993f76d53ce9ae748815158671f86 | 10,028 | package net.minecraft.server;
import java.util.List;
import java.util.UUID;
import javax.annotation.Nullable;
public abstract class EntityProjectile extends Entity implements IProjectile {
private int blockX;
private int blockY;
private int blockZ;
private Block inBlockId;
protected boolean inGro... | 35.434629 | 204 | 0.550459 |
8ffb7872b2bb1df05ff6e8f9fe6539477435a244 | 791 | package com.szh.offer1;
/**
* 在一个递增数组中,找两个和为s的数
* @author kexun
*
*/
public class Day29 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Day29 d = new Day29();
int[] array = {
1,2,4,7,11,15
};
d.findSumEqS(array, 15);
}
/**
* 维护两个指针 头和尾
* 和大于s的时候,尾指针向前移一位,小于s的时候... | 16.479167 | 50 | 0.594185 |
4d229f9e9a297dc1557ff366a7354c336d838a81 | 1,089 | /* Initializes the Unix words.txt dictionary as a hashmap for constant time access */
import java.io.*;
import java.util.*;
public class Dictionary {
private final String FILENAME = "dictionary.ser";
HashMap<String,Boolean> dictionary = new HashMap<String,Boolean>();
public Dictionary() {
try {
S... | 24.75 | 86 | 0.62259 |
54c637af2cb4ed98477a8c4c581bf930c9fb87e4 | 595 | package com.sri.ai.util.explanation.logging.core.handler;
import java.io.IOException;
/**
* A handler producing files in the format required by Squirrel (http://www.ai.sri.com/~braz/detaillogging.html)
* @author braz
*
*/
public class SquirrelFileExplanationHandler extends FileExplanationHandler {
pu... | 25.869565 | 113 | 0.729412 |
3e85cdc8ac7fee1f29551514c27d8bf1c60fa4e6 | 2,555 | /**
Copyright 2015 Osiris 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 law or agreed to ... | 23.440367 | 75 | 0.640313 |
48407792e3d80144b795cd88ec2be545eae30648 | 556 | package com.morph.game.shooting.entities.powerups;
import com.morph.engine.entities.EntityRectangle;
import com.morph.engine.graphics.Color;
import com.morph.engine.graphics.Shader;
import com.morph.engine.graphics.Texture;
import com.morph.game.shooting.entities.components.powerups.SpeedBoost;
public class SpeedBoos... | 37.066667 | 98 | 0.784173 |
409c4456c73a240fb568109a0faddcff9cb018e9 | 4,807 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.607407 | 180 | 0.707094 |
bbaec49847a85a2e1c96d3885886d39451cab470 | 6,155 | package fr.anatom3000.gwwhit.command;
import com.mojang.brigadier.arguments.StringArgumentType;
import fr.anatom3000.gwwhit.GWWHIT;
import fr.anatom3000.gwwhit.Python;
import fr.anatom3000.gwwhit.block.entity.InfectedMassBlockEntity;
import fr.anatom3000.gwwhit.block.entity.RandomisingBlockEntity;
import fr.anatom3000... | 52.606838 | 147 | 0.516653 |
e066ac329731f93d7178ee7f60b0a214c307d81f | 256 | package org.ldk.enums;
/**
* An enum representing the available verbosity levels of the logger.
*/
public enum Level {
LDKLevel_Trace,
LDKLevel_Debug,
LDKLevel_Info,
LDKLevel_Warn,
LDKLevel_Error,
; static native void init();
static { init(); }
} | 18.285714 | 69 | 0.730469 |
39bf9b136a39b3cb6621dea530358c9f6389917f | 3,353 | package com.prometrx.myinstagramclone.UserLoginSignup;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
i... | 33.868687 | 203 | 0.641217 |
12b0249ac0d7e583a843b5fcb28cfb47f735cd74 | 5,348 | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.hybris.sapcpioaaorderintegration.sourcing.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logg... | 31.833333 | 106 | 0.792633 |
80c5fc95e081f94752658f54423f4465042fdc0f | 11,039 |
package ca.bcit.geekkit;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.awt.LayoutManager2;
import java.awt.Rectangle;
import java.util.Hashtable;
/**
* The <code>GraphPaperLayout</code> class is a layout manager th... | 32.467647 | 118 | 0.684573 |
27ac3cd4041e501fff5e0c7cbd859341ebf34506 | 4,020 | package ru.stm.rpc.kafkaredis.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.validation.constraints.NotEmpty;
import java.util.Map;
/**
* Configuration for KafkaRedis RPC
*/
@Data
@ConfigurationPr... | 26.979866 | 138 | 0.662438 |
daeb1dfdf96891a140c1d21ff6e8863b823424eb | 1,141 | package com.onaple.itemizer.commands.manager;
import com.onaple.itemizer.data.beans.ItemBean;
import com.onaple.itemizer.utils.managers.ItemLoreManager;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import ... | 36.806452 | 98 | 0.751096 |
cf5eb523394f394a63d70267dc3bccd3ade839b6 | 5,175 | /*
Good read:
http://www.cs.yale.edu/homes/aspnes/pinewiki/SuffixArrays.html
Generally speaking, suffix arrays are used to do multiple queries
efficiently on one piece of data rather than to do one operation
then move on to another piece of text.
Some things suffix trees are great for are:
1) Searching if a substr... | 26.675258 | 91 | 0.606184 |
28db93bb9f04a0ab289b3fdfcdd0cf09dc74315c | 1,171 | package edu.ccsu.cs417.decorator;
import edu.ccsu.cs417.composite.CPU;
import edu.ccsu.cs417.composite.ComputerComponent;
import edu.ccsu.cs417.composite.ComputerComposite;
import edu.ccsu.cs417.composite.GraphicsCard;
import edu.ccsu.cs417.composite.Motherboard;
import edu.ccsu.cs417.composite.RAMChip;
/**
* Demons... | 34.441176 | 71 | 0.736977 |
fa0cba5b7894048f8e7e9c203cefef6c4903c03a | 162 | package com.baeldung.cglib.mixin;
public class Class1 implements Interface1 {
@Override
public String first() {
return "first behaviour";
}
} | 20.25 | 43 | 0.679012 |
64f717a52e411eac106402a19901f153c5e62db0 | 7,168 | package com.hjcenry.util.enumutil;
import com.hjcenry.log.KtucpLog;
import com.hjcenry.util.Assert;
import org.slf4j.Logger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* 从0开始的可索引枚举接口定义,实现此接口的枚举各个元素的index可以不连续,但此接口的实现类多为稀疏数组结构,保持index连续可以节省空间
*
* @author guowei
* @since 2010-... | 34.796117 | 140 | 0.502232 |
18860da1f1d417210fe6d7bc83c99b004792546c | 55 | package os.microsoft.System32;
public class mkdir {
}
| 11 | 30 | 0.763636 |
78b7e53d6a71b728f742bc8d9dd0b0e0bc2008ec | 5,042 | package org.cfpa;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.options.GameOptions;
import net.minecraft.client.resource.language.LanguageDefinition;
import org.apache.commons... | 31.31677 | 125 | 0.714796 |
5753fe8c9233d195d2c4faf5c6862e854b90c6f5 | 48,983 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
// third_party/blink/public/mojom/mediastream... | 40.548841 | 217 | 0.620889 |
025e6846293b1fc29c6caa42d8b13468dddbd91e | 1,665 | /*
* Project jmxprofiler.
*
* Created by Maxim Morozov on 2017.04.23 22:20.
*
* Copyright (c) 2017 Maxim Morozov. All rights reserved.
*/
package ru.ixtal.jmxprofiler.jmx.core.mbean;
import ru.ixtal.jmxprofiler.jmx.core.mbean.filters.JMXMBeanFilter;
import javax.management.AttributeList;
import javax.management... | 28.220339 | 103 | 0.643243 |
a93125342f702028bf065653273289b5496e6bc3 | 3,260 | package no.mnemonic.act.platform.service.ti.helpers;
import no.mnemonic.act.platform.api.exceptions.InvalidArgumentException;
import no.mnemonic.act.platform.dao.cassandra.FactManager;
import no.mnemonic.act.platform.dao.cassandra.entity.FactTypeEntity;
import java.util.UUID;
import static no.mnemonic.act.platform.s... | 40.75 | 139 | 0.743558 |
c40bc169ae70b1390fc14674bdbce80b26207b79 | 1,796 | /*
* Copyright 2018-present Open Networking Foundation
*
* 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 applicabl... | 33.259259 | 77 | 0.722717 |
c8c763851a17d4e12ed9ce74c0c814e2aa21fc2d | 9,146 | /*
* Copyright (c) 2016 Kristjan Veskimae
*
* 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, ... | 45.73 | 182 | 0.760223 |
bac8f8d4fc866dad1db74ce28a5a5803daa23594 | 5,559 | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be us... | 29.257895 | 240 | 0.722072 |
68cf80906e77c091faf887333e7ac24dfedea1ed | 7,590 | package bg.connectFour.game;
import bg.connectFour.lang.Language;
import bg.connectFour.popup.MyAlert;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.application.Platform;
import javafx.geometry.HPos;
import javafx.geometry.Pos;
import javafx.scene.c... | 30.119048 | 132 | 0.493808 |
c7c2dedc33a24d1084d953bcbaa8368a8e43c0bc | 3,261 | package scratch.kevin.ucerf3;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.zip.ZipException;
import org.dom4j.DocumentException;
import org.opensha.commons.util.ComparablePairing;
import org.opens... | 37.918605 | 129 | 0.729837 |
55ccd06e509e505ee626b3c811986352ee7f7aa3 | 305 | package com.enjoy;
import lombok.Data;
/**
* @Author:waken
* @Date: Created in 2019/4/25 20:52
* @Description:
*/
@Data
public class Person {
private String name;
private Integer age;
public Person(String name, Integer age) {
this.name = name;
this.age = age;
}
}
| 13.863636 | 45 | 0.609836 |
187689c29d5d825a0dd25941daccd7497ed2636a | 6,137 | package cn.yiya.shiji.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import andr... | 37.650307 | 114 | 0.560697 |
220839b6cad937961a9b952bef864fd2adb3cdd6 | 3,247 | /*
* Copyright (C) 2013 Square, 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 agre... | 31.524272 | 99 | 0.719741 |
282df5bf8a8554430f6444e171ba9eb1bee94fa3 | 314 | package com.vida.android.util;
/**
* Created by heaven7 on 2019/5/8.
*/
public class Reflection {
static {
System.loadLibrary("c++_shared");
System.loadLibrary("music_annotator");
}
//jni impl is build by qtcreator. see src of qt/music_annotator
public native String hello();
}
| 20.933333 | 67 | 0.656051 |
bd3f999908ec15132d2806e06be2f3a459b31f7a | 972 | package demo;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.transaction.Transactional;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@Path("/products")
public class CatalogApi {
private static final... | 21.6 | 81 | 0.713992 |
ae59506d7be6c022fd7a07f985b9ec479d9cd978 | 5,773 | package dev.turgaycan.springboothttp2.configuration;
import lombok.extern.log4j.Log4j2;
import okhttp3.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.anno... | 45.101563 | 165 | 0.718864 |
c1fc09a21f316b0cc285a1fc2a446c4f70cc95bc | 947 | /*
* 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 info.novatec.jcache.spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.Res... | 30.548387 | 79 | 0.73812 |
a9851bea5458cbd5ef44972e8e420a6b74a46de7 | 7,765 | package com.comxa.makemore.easybudget;
import android.app.Activity;
import android.app.Notification;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import a... | 35.619266 | 96 | 0.438506 |
c702292f7729a8e8cb58a422a03135ca1b0a67c5 | 2,214 | package humanize.measure;
import humanize.Humanize;
import humanize.spi.MessageFormat;
import humanize.text.FormatFactory;
import java.text.Format;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import javax.measure.Measure;
import javax.measure.MeasureFormat;
import javax.measure.unit.NonS... | 33.044776 | 114 | 0.677958 |
22c6654d0e1ceffc5c2f5f3a7411644a643daaea | 557 | package com.kkbnart.wordis.exception;
public class BlockCreateException extends Exception {
private static final long serialVersionUID = 7637854732310798213L;
public static final int ID_OVERFLOW = 1;
public BlockCreateException() {
String msg = "Can not create block";
System.err.println(msg);
}
public Bl... | 22.28 | 67 | 0.721724 |
0cb1734e2fffbd2008c08246b69c1e6234c9dc82 | 3,680 | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS;
import static seedu.address.logic.parser.CliSyntax.PREFIX_AUTHOR;
import static seedu.address.logic.parser.CliSyntax.PREFIX_CATEGORY;
... | 48.421053 | 111 | 0.759239 |
b6b4414dbcde81f7cd02505151ecaa90df39ec84 | 931 | package com.example.springboot.service.impl;
import com.example.springboot.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl implements IUserServi... | 26.6 | 88 | 0.717508 |
0799fbd5068b9f689a3f600e6f82c7c129efffa6 | 4,412 | /**
* Copyright (C) 2015 Johannes Schnatterer
*
* 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... | 34.740157 | 124 | 0.727335 |
285e57680fe98807c96f0038826a83cba4cca819 | 15,928 | /* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This file contains original code and/or modifications of original code.
* Any modifications made by VoltDB Inc. are licensed under the following
* terms and conditions:
*
* Permission is hereby granted, free of charge, to any person obtain... | 34.929825 | 102 | 0.608614 |
0ff41c810de89a4817f09cbae6aaf388b071879b | 6,717 | package com.akjava.gwt.equirectangular.client;
import java.util.List;
import com.akjava.gwt.jszip.client.JSZip;
import com.akjava.gwt.lib.client.LogUtils;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.gwt.http.client.Request;
import com.google.gwt.... | 35.352632 | 150 | 0.689594 |
a7c138ab633ba0ea3909e5cb020df430b590828f | 1,414 | /***********************************************************************************************
*
* Copyright 2018 Infosys Ltd.
* Use of this source code is governed by MIT license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*
***************************************************... | 18.605263 | 97 | 0.552334 |
1fb369240e6540d83418252e22250286a2694580 | 3,234 | package com.enremmeta.rtb.proto.liverail;
import javax.ws.rs.core.MediaType;
import com.enremmeta.rtb.Bidder;
import com.enremmeta.rtb.Lot49RuntimeException;
import com.enremmeta.rtb.api.Ad;
import com.enremmeta.rtb.api.proto.openrtb.Bid;
import com.enremmeta.rtb.api.proto.openrtb.OpenRtbRequest;
import com.enremmeta... | 31.096154 | 121 | 0.680581 |
99521e3ca7547b201bf3320c527b956c5c6a56e2 | 1,434 | package com.wteam.delay_queue;
import com.wteam.car.bean.entity.Order;
import com.wteam.car.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Optional;
@Component
public class OrderJobHandler {
private final Or... | 24.724138 | 79 | 0.530683 |
74777173e2cb895b90c3b88d16f81b0257d40e6c | 40,699 | /*
* Copyright (c) 2011 - 2016, Zhenyu Wu, NEC Labs America Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,... | 29.816117 | 97 | 0.684955 |
a02590d93fe282cdc61fc366d8ace76991741fac | 1,919 | package com.example;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class EventbriteUser {
private String id;
private String name;
private String first_name;
private String last_name;
public String getId() {
return id;
... | 24.291139 | 75 | 0.540386 |
0fb7e4c989366ab0461973bf90d6b2c5f637fc20 | 1,664 | package com.guigarage.shell.service;
import com.canoo.dolphin.server.event.DolphinEventBus;
import com.guigarage.shell.event.Topics;
import com.guigarage.shell.event.VarData;
import jdk.jshell.JShell;
import jdk.jshell.SnippetEvent;
import jdk.jshell.VarSnippet;
import org.springframework.beans.factory.annotation.Auto... | 31.396226 | 72 | 0.700721 |
3ecd550d0043c4e801582b84a7ba39405378d08d | 271 | package top.chengdongqing.common.pay.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 交易通道
*
* @author Luyao
*/
@Getter
@AllArgsConstructor
public enum TradeChannel {
WXPAY("微信"),
ALIPAY("支付宝");
private final String description;
}
| 13.55 | 43 | 0.704797 |
5f22d67e527cf1578798c127b8e8969a8aa27c7c | 3,186 | package ru.job4j.optimization;
import java.sql.SQLException;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.PreparedStatement;
public class Connect {
/**
* Count of numbers witch need add to database.
*/
private int field;
private String url;... | 27.230769 | 89 | 0.500314 |
72cd908f64332742accb030e3b6b91c3dd1aeb92 | 153 | public class ItemCameraTransforms {
// Failed to decompile, took too long to decompile: net/minecraft/client/renderer/block/model/ItemCameraTransforms
} | 51 | 115 | 0.823529 |
b354b0dbbb3cdf61f054b837af013a3d5ac4c2c2 | 1,412 | package no.bibsys.web.model;
import no.bibsys.utils.JsonUtils;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import jav... | 34.439024 | 121 | 0.755666 |
5030bfe71c2a2772eeb71521562994730ccc4c56 | 1,568 | package com.bluegosling.util;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* A marker interface for "value types". A value type is a concrete class that is b... | 44.8 | 100 | 0.752551 |
18bca51bb1a603e2c814eaaa4a490f31af5823b2 | 3,993 | /**
* Copyright (c) 2018 AppDynamics LLC and its affiliates
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 33.554622 | 91 | 0.620586 |
68a3537c9cac8ab0b340e2672d9b4db2538f3606 | 39,759 | package org.onebillion.onecourse.mainui.generic;
import android.animation.Animator;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.PointF;
import android.graphics.RectF;
import android.graphics.Typeface;
import org.onebillion.onecourse.controls.OBControl;
import org.onebillion.o... | 35.883574 | 241 | 0.56264 |
19346475a4427249dd6c1666b28bb04d6c7f0cc2 | 1,168 | package ru.job4j.map;
import java.util.Calendar;
import java.util.Objects;
/**
* Класс, в котором переопределены оба метода и equals() и hashCode()
*/
public class UserHashAndEquals {
private String name;
private int children;
private Calendar birthday;
public UserHashAndEquals(String name, int ch... | 24.333333 | 76 | 0.561644 |
b54dbf6c9b42d9eefcd94f82bfb6e52a708a5c05 | 5,923 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.bstek.urule.runtime.builtinaction;
import com.bstek.urule.Utils;
import com.bstek.urule.model.library.action.annotation.ActionBean;
import com.bstek.urule.model.library.action.annotation.ActionMethod;
... | 28.07109 | 121 | 0.517474 |
eddb8c95c03be387845c8f291686af9266340212 | 6,162 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.client.common.framework.resources.filter;
import org.eclipse.core.resources.IResource;
import com.microsoft.tfs.client.common.framework.resources.compatibility.LinkedR... | 38.5125 | 112 | 0.682895 |
80bb415853ac3d9bf7192a67530941fe14eb7611 | 3,367 | package org.javers.repository.sql.repositories;
import org.javers.common.exception.JaversException;
import org.javers.common.exception.JaversExceptionCode;
import org.javers.core.commit.CommitId;
import org.javers.core.commit.CommitMetadata;
import org.javers.core.json.typeadapter.util.UtilTypeCoreAdapters;
import org... | 39.151163 | 146 | 0.697951 |
8a25c79deb07ce6d7027b1954329d6aac18fe87d | 7,830 | package com.robert.image.compose.demo;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toas... | 34.955357 | 114 | 0.527331 |
9c7948dc8cf89eaee40acbf160a5c5f964831bb2 | 327 | package com.factorydesign.serviceImpl;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
@Service
@Qualifier("HeadFirstJava")
public class HeadFirstJava implements Book {
@Override
public String getBook() {
return "This is Head First Java Book Object.";... | 20.4375 | 62 | 0.792049 |
261e9ecf4e6688dd52d8cde830ccc92697200ec3 | 1,455 | package link.linkmerge;
import java.io.*;
class link1
{
lnk first,newlink,cur,cur1;
lnk1 first1,newlink1,cur3;
int k;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
public link1()
{
first=null;
first1=null;
k=1;
}
voi... | 19.4 | 75 | 0.457045 |
eed67023d7ac346eea73e74c467c742ab2c4a7a0 | 465 | package forms;
import services.question.types.DropdownQuestionDefinition;
import services.question.types.QuestionType;
/** Form for updating a dropdown question. */
public class DropdownQuestionForm extends MultiOptionQuestionForm {
public DropdownQuestionForm() {
super();
}
public DropdownQuestionForm(Dr... | 21.136364 | 67 | 0.765591 |
2bde155e9d0ad60678db07008f4335259b83d6a9 | 616 | package org.keycloak.testsuite.console.page.roles;
import org.jboss.arquillian.graphene.page.Page;
/**
*
* @author tkyjovsk
*/
public class Role extends RealmRoles {
public static final String ROLE_ID = "roleId";
@Override
public String getUriFragment() {
return super.getUriFragment() + "/{" ... | 18.117647 | 61 | 0.633117 |
2f9f1f07b5954f593f6dcf9aff36a2d280c3f629 | 46,701 | /* ===========================================================
* AFreeChart : a free chart library for Android(tm) platform.
* (based on JFreeChart and JCommon)
* ===========================================================
*
* (C) Copyright 2010, by ICOMSYSTECH Co.,Ltd.
* (C) Copyright 2000-2008, by ... | 32.795646 | 109 | 0.584441 |
b4125a89a056180be4c1e4adb26065c41965da13 | 114 | package com.lilypuree.caloric.api;
/**
* Public Caloric Capabilities
*/
public class CaloricCapabilities {
}
| 11.4 | 34 | 0.736842 |
b12cda9401669080023fe6dd0f3319bf8a3362c4 | 3,521 | /*
* Copyright (C) 2015-2017 NS Solutions Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 22.28481 | 110 | 0.697813 |
416f937cbbffdc3da45c68877135143bbc90d932 | 1,899 | package com.sensepost.yeti.persistence.dao;
import com.sensepost.yeti.persistence.HibernateUtil;
import com.sensepost.yeti.persistence.entities.HostAttribute;
import java.util.List;
import org.hibernate.Query;
/**
*
* @author Johan Snyman
*/
public class HostAttributeDao extends DatabaseEntityDao<HostAttribute> {
... | 35.830189 | 144 | 0.652975 |
8d812356c85b722d36079df49a9ddfbec23c8031 | 1,130 | package com.nukkitx.protocol.bedrock.compat;
import protocol.bedrock.BedrockPacketCodec;
import com.nukkitx.protocol.bedrock.compat.serializer.DisconnectSerializerCompat;
import com.nukkitx.protocol.bedrock.compat.serializer.LoginSerializerCompat;
import com.nukkitx.protocol.bedrock.compat.serializer.PlayStatusSeriali... | 47.083333 | 91 | 0.770796 |
ecb88c2e35d32b4b3753b757091cf2c46a2b9479 | 3,095 | /*
* gml-objects - A Java mapping for the OGC Geography Markup Language (GML)
* https://github.com/xmlobjects/gml-objects
*
* Copyright 2019-2020 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 43.591549 | 165 | 0.757674 |
8812d38ee34d7b78f2a0a04616de5200438e2209 | 1,241 | package uk.ac.ox.cs.diadem.webapi.dom.mutation;
import java.util.Set;
import uk.ac.ox.cs.diadem.webapi.dom.DOMElement;
public interface MutationFormSummary {
Set<DOMElement> getFieldsHavingNewOptions();
Set<DOMElement> getFieldsHavingRemovedOptions();
Set<DOMElement> getNewEnabledFields();
Set<DOMElement... | 22.981481 | 50 | 0.709911 |
30b57b15303deec4be4c22697f10e19292133fae | 549 | package com.ma.home;
class Building
{
Building()
{
System.out.println("Geek-Buiding");
}
Building(String name)
{
this();
System.out.println("Geek-building: String Constructor " + name);
}
}
public class House extends Building
{
House()
{
System.out.printl... | 17.709677 | 72 | 0.551913 |
b4e0efb264f9e1a2e86a9de0491b7c43471e96d9 | 254 | package htmlcompiler.pojos.httpmock;
public class Header {
public final String name;
public final String value;
public Header(final String name, final String value) {
this.name = name;
this.value = value;
}
}
| 21.166667 | 59 | 0.633858 |
493edf82cfd0371879740e812ba49b0c905839db | 300 | package com.example.administrator.testone.util;
import android.util.Log;
/**
* 日志类
*/
public class LL {
private static boolean flag = true;
private static String TAG = "日志";
public static void d(Object msg) {
if (flag) {
Log.d(TAG, " " + msg);
}
}
}
| 15.789474 | 47 | 0.57 |
6302d77194b7eaf789e5b03e5d234d07efc33de2 | 3,912 | package com.amazon.ion.impl.bin.utf8;
import com.amazon.ion.IonException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CoderResult;
/**
* Decodes {@link String}s from UTF-8. Instances of this class are reusab... | 39.918367 | 135 | 0.697086 |
268566af549843baf9d18d5b7063bca317a1723d | 1,001 | package in.mahabhujal.mahabhujal.borewellApi;
import in.mahabhujal.mahabhujal.model.BorewellRegisterModel;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
public interface BorewellRegisterApi {
@FormUrlEncoded
@POST("borewellregisterpost/"... | 40.04 | 88 | 0.517483 |
e29ff06775bb1976fe2562eddc5a224eeba6b69a | 606 | package search;
import java.util.LinkedList;
public class PriorityQueue {
private LinkedList<Task> tasks = new LinkedList<>();
/**
* Метод вставляет в нужную позицию элемент
* @param task
*/
public void put(Task task) {
int count = (int) tasks.stream().filter(element -> element.get... | 21.642857 | 110 | 0.574257 |
d68f4f7a78f624c2517f103f08b578e83ad3ee9c | 2,143 |
package controller;
import dao.UnidadeSaudeDao;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import model.UnidadeSaudeModel;
import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSo... | 28.197368 | 116 | 0.680355 |
7faab34d34b14163aeadd2fac02ac7e49e3a0016 | 218 | package com.testsigma.automator.actions.mobile.mobileweb.ifconditional;
import com.testsigma.automator.actions.mobile.mobileweb.verify.VerifyTextAction;
public class ElementHasTextAction extends VerifyTextAction {
}
| 31.142857 | 80 | 0.862385 |
fd4f34ac8f71657a757ef8d451879a576f347bdf | 2,348 | package org.gbif.pipelines.validator.rules;
import static org.gbif.validator.api.EvaluationType.*;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.gbif.api.model.pipel... | 35.575758 | 96 | 0.66184 |
1ffadb680b39baff4b183b911c8be32975fd8337 | 161 | class Test {
void simpleMethod() {
int x = 0;
int y = 0;
Runnable t = () -> System.out.println(x);
int k = <caret>1;
}
}
| 17.888889 | 49 | 0.440994 |
50a262eade01e7251b740526f65214d9363213bc | 6,640 | package Zigzag;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.InputMismatchException;
import java.util.Random;
import java.util.Scanner;
impo... | 33.877551 | 166 | 0.649548 |
432ec9568682e73004b2fe1302c3f879a9b916cd | 9,299 | /*
* Copyright 2021 vg2902.org
*
* 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 i... | 37.345382 | 178 | 0.684805 |
ade0286cbbf3e98f1c9417b5d2fc543bfbe89931 | 11,387 | package trees.layout;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import trees.style.Orientation;
import trees.style.Size;
import trees.style.Style;
import static trees.layout.Action... | 25.026374 | 142 | 0.6597 |
f43c46bd0f4abe82cd54fa69c21be0d385e0db61 | 1,111 | package com.couchbase.lite.android;
import com.couchbase.lite.Context;
import com.couchbase.lite.NetworkReachabilityManager;
import java.io.File;
public class AndroidContext implements Context {
private android.content.Context wrappedContext;
private NetworkReachabilityManager networkReachabilityManager;
... | 27.775 | 102 | 0.747975 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.