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 |
|---|---|---|---|---|---|
8ba2565aa7090e144e246728a172ad7d1270bf14 | 2,248 | package hr.fer.zemris.java.tecaj.hw5;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Path;
import java.nio.file.Paths;
p... | 30.378378 | 79 | 0.656584 |
8cba2cc7eb9dbe28cb1614c6a5489b792ae9d1ba | 14,269 | package com.yxlg.manage.member.service.impl;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resou... | 34.973039 | 195 | 0.741047 |
f007ca461fa4c60a5fba67d1f9b7aee8bdf4aa24 | 211 | package com.nuggetsworld.novel.module.reader.entity;
public class BookMark {
public int chapter;
public String title;
public int startPos;
public int endPos;
public String desc = "";
}
| 14.066667 | 52 | 0.687204 |
86cdaec2f7828cef5f56c548ba360a4f8cc93967 | 2,628 | package com.yanp.way;
import java.util.Locale;
import android.graphics.Color;
import android.os.Environment;
/**
* @class Constantes
*
* All the constants used by the app are here.
*
* @author YPierru
*
*/
public final class Constants {
/**
* <b>{@value}</b><br />
* If true, the position is calculat... | 21.719008 | 111 | 0.645358 |
fa3a5916bd2164e008a58aa2a1a480b7fb1b6f0a | 473 | package ai.elimu.dao;
import java.util.List;
import ai.elimu.model.admin.Application;
import ai.elimu.model.admin.ApplicationVersion;
import org.springframework.dao.DataAccessException;
public interface ApplicationVersionDao extends GenericDao<ApplicationVersion> {
ApplicationVersion read(Application applic... | 31.533333 | 101 | 0.824524 |
3d22c4a23509d0526281c584ccc7449026f98ab8 | 7,409 | /*
* 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 ... | 52.546099 | 121 | 0.662573 |
246fef92e3ef07f716e5e1bccfaf004da9cfb40e | 1,302 | package de.garbereder;
import junit.framework.AssertionFailedError;
import junit.framework.TestCase;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class TestAutomationTestGetterAndSetter extends TestCase {
@Rule
public ExpectedExceptio... | 23.672727 | 73 | 0.652074 |
f1addf90b51854d5b492ecb3813392ed7530975e | 704 | package com.common.api.vo;
import java.io.Serializable;
public class CacheData implements Serializable {
/**
*
*/
private static final long serialVersionUID = -4167770912646605408L;
private String key;
private String value;
private String md5;
private String time;
public String getKey() {
return k... | 13.283019 | 68 | 0.678977 |
dff60b8a8210a3d9c12b5c823564054da90fd445 | 155 | package se.lnu.siq.s4rdm3x.dmodel.classes.CPPCompatibility.simple;
public class Fuu {
public int getMagicNumber() {
return 17;
}
}
| 19.375 | 67 | 0.658065 |
bcd2dc4bc51522c03558b2af0af4a1c89248dbfa | 3,020 | /*
MIT License
Copyright (c) 2019 Emmanouil Sarris
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, publis... | 40.266667 | 106 | 0.675166 |
6c82cf7711e2051bde32ff6e873c190e3df1a46a | 510 | package com.example.dahai.photopicklib.photoview;
/**
* Interface definition for a callback to be invoked when the photo is experiencing a drag event
*/
public interface OnViewDragListener {
/**
* Callback for when the photo is experiencing a drag event. This cannot be invoked when the
* user is scali... | 30 | 96 | 0.701961 |
27276217f4f5c8d83f88c204c627c9ecc3ac786c | 3,469 | /*
Copyright (C) 2009 Ueli Hofstetter
This source code is release under the BSD License.
This file is part of JQuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://jquantlib.org/
JQuantLib is free software: you can redistribute it and/or modify it
under the ... | 31.252252 | 126 | 0.684924 |
8d509593274e0737d1be7da0eb20eada8447005f | 538 | package aquality.appium.mobile.elements;
import aquality.appium.mobile.elements.interfaces.ILabel;
import aquality.selenium.core.elements.ElementState;
import org.openqa.selenium.By;
/**
* The class that describes the label
*/
public class Label extends Element implements ILabel {
protected Label(final By loca... | 26.9 | 84 | 0.745353 |
1e38273c173a3a51d6fc14403763bc24ccb38f70 | 66,749 | /**
* Copyright 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 t... | 32.881281 | 100 | 0.668235 |
1392cefd512078055424277425de354dd0b5af55 | 596 | package statements.functions.meta.functionarity;
import interpreter.LimitedRemoveStack;
import interpreter.NoBracesStack;
import statements.EvaluationException;
import statements.functions.UnaryFunction;
import statements.literals.ListStatement;
public abstract class AryFunction extends UnaryFunction<ListStatement> {... | 28.380952 | 92 | 0.827181 |
3b8be8ea4ffcb67ea87e230c5c883846910cb033 | 1,009 | package com.noobanidus.hungering.compat.baubles;
import baubles.api.cap.BaublesCapabilities;
import com.noobanidus.hungering.item.ItemTorc;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.ICapabilityProvider;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
publi... | 40.36 | 146 | 0.801784 |
0b58acc046054cee9e8dd6c466a5c3d14ba82ac9 | 2,278 | package com.fasterxml.clustermate.service.cleanup;
import java.io.File;
import java.util.concurrent.atomic.AtomicBoolean;
import com.fasterxml.clustermate.service.SharedServiceStuff;
import com.fasterxml.clustermate.service.Stores;
import com.fasterxml.clustermate.service.cluster.ClusterViewByServer;
/**
* Bogus "c... | 28.123457 | 84 | 0.564091 |
704fff99b9f2c15b5d594510d2d8fe5b9122717d | 8,333 | class AEjSQ {
public static void lcSMFe (String[] MvH2f) throws EfE {
int Dlpp;
return;
void v_se84Q9dInC;
while ( zWQHWSpA8vH.QxhoBOtx5p9l3()) return;
}
public boolean[] EvzRi6jLLG () {
;
int[] goTnp = null[ this.V6bPRPFaiAbcG()] = !qy3GQ()[ -true.k1cLA6n4... | 36.073593 | 274 | 0.50354 |
de7a2e7166a481add3c826356e63c299c9d82237 | 4,691 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.nx42.maps4cim.util.gis;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.text.ParseException;
import org.junit.Test;
import de.nx42.maps4cim.util.gis.Area;
impo... | 28.779141 | 103 | 0.625027 |
7010b03c1c21dc76f4c53a013c1ed58768c3f2e6 | 3,856 | /*
* Copyright 2003-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 29.661538 | 94 | 0.713434 |
89f889525f616d2e2b15c6f40c22f9a7e7403f82 | 4,647 | package no.cantara.docsite.client;
import no.cantara.docsite.commands.BaseHystrixCommand;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
impor... | 42.633028 | 165 | 0.638261 |
47590fc5e2af58dded4646ae1a41fc0c162e247a | 879 | package com.xmomen.module.account.service;
import com.xmomen.module.user.entity.SysPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import com.xmomen.framework.mybatis.dao.MybatisDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactio... | 25.852941 | 71 | 0.770193 |
a0d5ec7b5ab6d584b4fe9be8c4c615980c8f5f6f | 812 | package daily;
/**
* @author ber
* @version 1.0
* @date 21/8/28 15:26
*/
public class T278 {
/* The isBadVersion API is defined in the parent class VersionControl.
boolean isBadVersion(int version); */
public class Solution extends VersionControl {
public int firstBadVersion(int n) {
... | 22.555556 | 74 | 0.472906 |
38d1c835a92574259df6b4e6d58196fd8e63d2c3 | 1,655 | /**
* Copyright (c) 2016, www.jd.com. All rights reserved.
*/
package freamwork.test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static freamwork.simple.common.UniqNumUtil.getUniqNum;
/**
* <b>类描述</b>: <br>
* <b>创建人</b>: <a href="mailto:cubber.zh@gmail.com">百墨</a> <br>... | 28.050847 | 65 | 0.575831 |
6729f07a4432937fd269cf29406519d1baea7dec | 618 | package wasmruntime.Enums;
import java.util.HashMap;
import java.util.Map;
public enum WasmType {
I32(0),
I64(1),
F32(2),
F64(3),
V128(4),
Funcref(5),
Externref(6);
private final int type;
WasmType(int type) {
this.type = type;
}
public static Map<Byte, WasmType> idMap = new HashMap<Byte,... | 17.166667 | 74 | 0.601942 |
e0f9d2cde0bc3c899e5462d612eae1e1eb7d53a6 | 527 | package webapp.demo1_handler;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.Handler;
/**
* 简单的http处理
* */
@Mapping("/demo1/run0/")
@Controller
public class Run0Handler implements Handler {
@... | 22.913043 | 54 | 0.660342 |
f291fe8e7070f5c2d290505cf1286ea9f5fba49d | 4,590 | /*
* Copyright 2017 David Karnok
*
* 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.48503 | 105 | 0.450763 |
60d00872b39101750023ba216721b283fe1af97a | 11,172 | package upAnalysis.summary;
import java.util.HashMap;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.dom.ASTNode;
import upAnalysis.summary.ops.Predicate;
import upAnalysis.summary.ops.Source;
import upAnalysis.summary.ops.TypeConstraintPredicate;
import upAnalysis.summary.summaryBuilder.rs... | 31.82906 | 117 | 0.70068 |
64ab83ede0666d37df2f684c7574d43c651902dd | 270 | package blingclock.visualiser;
public interface TimeVisualiser {
public void setCountdownTimeRemaining(int days,long countDownTenths,long hundredths);
public void setTargetSeconds(long targetSeconds);
public void reset();
public void flash(boolean onOrOff);
}
| 22.5 | 88 | 0.807407 |
537571acd0827df0eaeb3f20e88abff81b53f059 | 770 | package com.bbn.serif.sentences;
import com.bbn.bue.common.Finishable;
import com.bbn.serif.sentences.constraints.SentenceSegmentationConstraint;
import com.bbn.serif.theories.DocTheory;
import com.google.common.annotations.Beta;
import java.util.Set;
/**
* Segments a document into sentences. Input documents sho... | 27.5 | 99 | 0.806494 |
1e603a0be2486d87b12ffe71277454bbcfc509b1 | 732 | package com.zjtx.ocmall.framework.database.dialect;
public class Mysql5Dialect extends Dialect {
protected static final String SQL_END_DELIMITER = ";";
public Mysql5Dialect() {
}
public String getLimitString(String sql, boolean hasOffset) {
return Mysql5PageHelper.getLimitString(sql, -1, -1);... | 23.612903 | 69 | 0.678962 |
ff00f0f93b3f313b82ece5896dd5466848b7f80e | 1,186 | package com.poliveira.apps.example;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import com.poliveira.apps.imagewindow.ImageWindow;
public class MainActivity extend... | 34.882353 | 118 | 0.668634 |
168c8c89cc1384f7f63ee973743d624d2bac1479 | 2,066 | /**
* Copyright 2018 Taucoin Core Developers.
*
* 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 ... | 30.382353 | 101 | 0.630203 |
94ab870feadf2e79c30d3d35b0a361ef147eb97f | 409 | package com.google.android.gms.auth;
import android.content.Intent;
public class GooglePlayServicesAvailabilityException extends UserRecoverableAuthException {
private final int zzdzl;
GooglePlayServicesAvailabilityException(int i, String str, Intent intent) {
super(str, intent);
this.zzdzl =... | 24.058824 | 91 | 0.723716 |
6bc0563104a5290d5d76883343d9eae2d9fed22b | 1,272 | package com.github.appreciated.app.layout.component.menu.left.items;
import com.github.appreciated.app.layout.component.menu.RoundImage;
import com.vaadin.flow.component.Composite;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
/**
* A simple container com... | 37.411765 | 122 | 0.66195 |
8ca1c102bc9790d8563fa4c8697a60e449e632f5 | 570 |
package com.ronsoft.books.nio.buffers;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
public class Test
{
public static void main (String argv[])
{
ByteBuffer bb = ByteBuffer.allocate (100);
bb.mark();
bb.position(5);
bb.reset();
bb.mark().position(5).reset();
char [... | 18.387097 | 62 | 0.673684 |
fc830a10aec93a9ddf776bc7bc9f4b3028ef75ab | 6,767 | /*
* Copyright 2014 - 2020 Blazebit.
*
* 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... | 39.573099 | 120 | 0.348308 |
f4c39c8be161ff019669519a759b47a2d3aa2be5 | 257 | package de.osthus.ambeth;
import de.osthus.ambeth.bundle.Core;
public class TexTodosMain
{
public static void main(String[] args)
{
Ambeth.createEmptyBundle(Core.class).withApplicationModules(TexTodosModule.class).withArgs(args).startAndClose();
}
}
| 21.416667 | 115 | 0.785992 |
b0134b625f5096c4d49229fd5a32e6b0b4361ae9 | 169 | package dev.demo.landmarks.web.dto;
import lombok.Data;
import java.util.UUID;
@Data
public class CountryResponse {
private UUID id;
private String name;
}
| 12.071429 | 35 | 0.727811 |
ba04a6a063a9a175b7097374088348f1ce828314 | 1,398 | package cn.gdeiassistant.Pojo.DelayTask;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
public class DelayTask implements Delayed {
//延时任务元素基类,其子类类型决定延时任务内容
private final DelayTaskElement delayTaskElement;
//单位为毫秒,过期时间为用户输入的延时时间加上现在时间
private final long expire;
publi... | 25.888889 | 87 | 0.670243 |
4d54cb6131c40a5af7a9be9d41a2fe5ad748ec7a | 1,093 | package cn.zhku.test.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
/*
* 数据库创建连接类
* 该工具类不需要被继承
*/
public class JdbcUtils {
private static String url = "jdbc:mysql://localhost:3306/user";
private ... | 20.240741 | 71 | 0.646844 |
94327ad4194207e8060971007befb5a60ae95b0c | 19,292 | /*
* 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 poe.level.data;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayLi... | 34.26643 | 117 | 0.483361 |
8044d8df4f2f411980c48eefcba214fed3975413 | 2,284 | package org.vaadin.addon.audio.client.webaudio;
import java.util.logging.Logger;
import org.vaadin.addon.audio.shared.util.LogUtils;
import elemental.html.AudioContext;
public class GainNode extends AudioNode {
private static final native elemental.html.AudioNode
createGainNode(AudioContext ctx) /*-{
return ct... | 31.722222 | 152 | 0.724606 |
b488ac500a5ef077fad5215c4a8542051bbd98ee | 1,281 | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFF... | 31.243902 | 94 | 0.968774 |
70a70b39f9caa9f7ad48593baeab5b252fa67808 | 4,577 | /*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2020 the original authors 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 ma... | 34.413534 | 140 | 0.734105 |
275342a645330b4bb49a94c771252d82253ab269 | 1,752 | package net.minecraft.server;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import java.util.List;
import java.util.function.Function;
public class CommandList {
public static void a(com.mojang.brigadier.CommandDispatcher<CommandListenerWrapper> com_mojang_brigadier_commanddispatcher) {
com... | 48.666667 | 170 | 0.746005 |
6de942d69102cdc30075a92fb451e1bf1536192c | 4,432 | package provider;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.util.Log;
import dbhelper.Contact... | 29.350993 | 121 | 0.574684 |
56703d3623b565595833ab82255e209127b0fea2 | 1,256 | class Solution {
public void solveSudoku(char[][] board) {
boolean[][] rows=new boolean[9][9];
boolean[][] cols=new boolean[9][9];
boolean[][] myblocks=new boolean[9][9];
for(int i=0;i<9;i++){
for(int j=0;j<9;j++){
char c = board[i][j];
i... | 36.941176 | 117 | 0.479299 |
b1d609f9aba92970e8c761fea0656434b25b38e8 | 2,269 | package ru.apetrov.SearchFile;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by Andrey on 17.07.2017.
*/
public class Searcher {
/**
* Список всех файлов в заданной директории.
*/
private s... | 22.245098 | 89 | 0.543852 |
4cc65889e8958bc9f9a60364c3dac82df79d7fb1 | 981 | package com.mrbonono63.create.foundation.ponder.elements;
import java.util.function.Function;
import com.mrbonono63.create.foundation.ponder.PonderScene;
import com.mrbonono63.create.foundation.utility.outliner.Outline.OutlineParams;
import com.mrbonono63.create.foundation.utility.outliner.Outliner;
public class Out... | 27.25 | 79 | 0.77472 |
d707023aa95b176470f99282434ffe6c99638eb3 | 951 | package ru.job4j.chess.figures;
import ru.job4j.chess.*;
import ru.job4j.chess.exceptions.*;
/**
* Class Figure Каркас шахматной доски [#792]
* @author Aleksey Sidorenko (mailto:sidorenko.aleksey@gmail.com)
* @since 12.01.2018
*/
abstract public class Figure {
final Cell position;
/**
* Конструктор... | 25.026316 | 86 | 0.666667 |
5ecc8b19e7895c6fcd5c2360124afe0494103491 | 1,720 | package com.packt.webstore.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.function.Function;
public class Cart implements Serializable {
private static final long serialVersionUID = 6554623865768217431L;
private String id;
private List<CartItem> cartItem... | 22.051282 | 112 | 0.707558 |
051a08e5ea13e13f091b1b42de77c8b9284edcb0 | 4,157 | /*
* Copyright by Zoltán Cseresnyés, Ruman Gerst
*
* Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Kn... | 37.790909 | 120 | 0.673563 |
a7cde0e52e59dce8c750260486fa783ebcffcbdc | 7,084 | /*
* 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 org.keycloak.quickstart.springboot.config;
import org.keycloak.adapters.KeycloakConfigResolver;
import org.keycloak.adapters.s... | 47.543624 | 167 | 0.763834 |
26eabaa31d213c40ea9ede2556c566d3172fbc9d | 12,139 | package io.choerodon.devops.app.service.impl;
import java.io.InputStream;
import java.util.*;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import io.choerodon.core.convertor.ConvertHelper;
import io.choerodon.core.except... | 46.868726 | 117 | 0.69009 |
90c052a430b878a6bdf8b8656966ca656c582e5f | 1,356 | /*
* Copyright 2019-2021 Daniel Siviter
*
* 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... | 31.534884 | 99 | 0.781711 |
763409eb9945bfa4b13a3a64b0ad4dadca5b50f5 | 2,409 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.codeStyle;
import com.intellij.formatting.fileSet.FileSetDescriptor;
import com.intellij.formatting.fileSet.FileSetDescriptorFactory;
import com.intellij... | 30.493671 | 140 | 0.728933 |
94d5eae3b465f8873bd1b06af9dbf51dbaaae4e9 | 4,615 | package com.hedera.exchange;
/*-
*
* Hedera Exchange Rate Tool
*
* Copyright (C) 2019 - 2020 Hedera Hashgraph, 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
*
* ht... | 40.840708 | 98 | 0.759047 |
7c8bbab5b9d93239a1241bd6db139d78d1ca1dda | 3,207 | /**************************************************************
*
* 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 yo... | 21.098684 | 81 | 0.554412 |
b4b226994973fcd46b211206dfe1761f5ad17db0 | 1,085 | /**
* Copyright 2020 Alibaba Group Holding 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 required by applicab... | 36.166667 | 75 | 0.733641 |
251a6a5c5ac6d0eda7feb71b1e0ef5d6d63fa724 | 4,332 | package com.vaadin.flow.component.charts.model;
/*-
* #%L
* Vaadin Charts for Flow
* %%
* Copyright (C) 2014 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about li... | 20.727273 | 189 | 0.660896 |
05a82cad6da39cd4c61951747fbb2a77a494b474 | 2,355 | package com.lzt.operate.mybatis.base.service.impl;
import com.lzt.operate.mybatis.base.dao.BaseMapper;
import com.lzt.operate.mybatis.base.model.BaseExample;
import com.lzt.operate.mybatis.base.service.BaseService;
import com.lzt.operate.mybatis.common.PageInfo;
import java.util.List;
import java.util.Optional;
/**
... | 23.55 | 114 | 0.751592 |
26b65c839ff4aebaebc1c9b6188612492b93265c | 38,836 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.handmark.pulltorefresh.library;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawa... | 25.46623 | 127 | 0.525389 |
cfdcaf22f3253e1ea3a04ddef9047685ddf6968d | 1,288 | package com.laputa.laputa_sns.configurer;
import com.laputa.laputa_sns.interceptor.ValidateInterceptor;
import org.jetbrains.annotations.NotNull;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.se... | 32.2 | 102 | 0.684783 |
08ea8aaf99a0e07cd2362fba05191dbab0273d63 | 384 | package com.tiernebre.zone_blitz.user.exception;
import com.tiernebre.zone_blitz.exception.InvalidException;
import lombok.Getter;
import java.util.Set;
@Getter
public class InvalidUserException extends InvalidException {
public InvalidUserException(
Set<String> errors
) {
super("The requ... | 24 | 78 | 0.742188 |
e7b4e8c52785583478695ec40e66c64616901a2d | 1,872 | /**********************************************************************************
* $URL: $
* $Id: $
* **********************************************************************************
* <p>
* Author: David P. Bauer, dbauer1@udayton.edu
* <p>
* Copyright (c) 2016 University of Dayton
* <p>
* Licensed under ... | 27.529412 | 85 | 0.547009 |
0d0c4fefdb6c525d52e65be7f430fe715a719eb2 | 1,146 | package com.galaxy.galaxyquests.quests.quests.external;
import com.electro2560.dev.cluescrolls.events.PlayerClueCompletedEvent;
import com.electro2560.dev.cluescrolls.events.PlayerScrollCompletedEvent;
import com.galaxy.galaxyquests.QuestsPlugin;
import com.galaxy.galaxyquests.quests.quests.external.executor.ExternalQ... | 35.8125 | 85 | 0.756545 |
c9939ac03cb3b60cdedeb07903a1f9b509850850 | 4,384 | package promoter;
import java.util.Random;
import acculturative.PeriodWarden;
import manufacturingPieces.PannonianMatter;
import space.*;
import book.*;
public abstract class Manufacturers {
public int placeMilad = supplierSideboard++;
public space.Warehouse thirdShelving = null, successiveWarehouses = null;
pu... | 35.354839 | 99 | 0.703239 |
afdae7da0f0c818817476387d108d0f86ec284c2 | 2,625 | /*
* Copyright 2015 Lithium Technologies, 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 la... | 24.53271 | 91 | 0.720381 |
9101e0f029aa22793d176eaaa012143fc72c8f5f | 3,305 | /*
Copyright 2000-2005 University Duisburg-Essen, Working group "Information Systems"
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 ... | 26.023622 | 82 | 0.63298 |
e2cd648d8bbfd92162b16a6659897baf2b5519cc | 2,631 | package com.ruoyi.web.controller.system;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.json.JSONObject;
import com.ruoyi.common.utils.http.HttpUtils;
import com.ruoyi.system.domain.SysEva... | 29.561798 | 89 | 0.717598 |
cbeddea03bb1e0a64026761f0b24cac3d81e588a | 4,526 | package com.walkertribe.ian.protocol.core.world;
import com.walkertribe.ian.enums.ObjectType;
import com.walkertribe.ian.enums.OrdnanceType;
import com.walkertribe.ian.enums.TubeState;
import com.walkertribe.ian.iface.PacketReader;
import com.walkertribe.ian.iface.PacketWriter;
import com.walkertribe.ian.world.Artemis... | 28.465409 | 99 | 0.639638 |
1978e92ea5edd175f07c7a576f73b63a443c2850 | 597 | import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class E9_CopyAPicture01 {
public static void main(String[] args) throws IOException {
FileInputStream inputStream = new FileInputStream(new File("D:\\FilesStreams\\Exercise\\cosmo.jpg")... | 27.136364 | 109 | 0.670017 |
46484ea1620a5985850ac040aa84c6d670f21682 | 3,206 | package seedu.address.testutil;
import java.util.HashSet;
import java.util.Set;
import seedu.address.model.position.Description;
import seedu.address.model.position.Position;
import seedu.address.model.position.PositionName;
import seedu.address.model.position.PositionOpenings;
import seedu.address.model.position.Req... | 33.395833 | 105 | 0.699314 |
92e948bf8431043fd929c8e20b45bf979ce29e6b | 961 | package com.desertkun.brainout.events;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Contact;
import com.desertkun.brainout.data.active.ActiveData;
public class PhysicsContactEvent extends Event
{
public Vector2 speed;
public ActiveData activeData;
public PhysicsContactEvent... | 21.355556 | 68 | 0.649324 |
ab8e913ac98185847907048667d1f78fab2a7338 | 2,265 | /*
* 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
* di... | 22.425743 | 76 | 0.647682 |
16d420619089ac6b2a0b45d535dca21f1994b12c | 4,048 | package seedu.address.testutil.expenses;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import seedu.address.model.expenses.Expenses;
import seedu.address.model.expenses.ExpensesList;
/**
* A utility class containing a list of {@code expenses} objects to be used in tests.
*/
public cla... | 54.702703 | 116 | 0.702816 |
14ee89d4d6840e8f941d13ff2fb4b55ffacff86e | 719 | package com.astudio.sportsclubdemo.service;
import com.astudio.sportsclubdemo.entity.Drink;
import com.astudio.sportsclubdemo.entity.DrinkSales;
import com.astudio.sportsclubdemo.repository.DrinkRepository;
import com.astudio.sportsclubdemo.repository.DrinkSalesRepository;
import org.springframework.beans.factory.anno... | 27.653846 | 66 | 0.798331 |
ac2cbe9649d884ed9746a462a23570527077efec | 679 | package tv.nexx.flutter.android.estd.functional;
class Right<T, R> implements Either<T, R> {
private final R value;
Right(R value) {
this.value = value;
}
@Override
public <U> Either<T, U> map(Function<R, U> function) {
return new Right<>(function.apply(value));
}
@Overri... | 22.633333 | 73 | 0.599411 |
6a792d6a84c5fc08d30ebb2e1d066ef344e548d6 | 1,046 | package com.numerx.formboot.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlParserCountOptimize;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.spr... | 40.230769 | 94 | 0.826004 |
127cd3f79c488c0157adc60187f7b8668e108d78 | 4,562 | /*
* Copyright (c) 2009-@year@. The GUITAR group at the University of
* Maryland. Names of owners of this group may be obtained by sending
* an e-mail to atif@cs.umd.edu
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
*... | 27.98773 | 82 | 0.648838 |
6e20f1384fb6757bf92ff08a5730b75d1198c6da | 281 | package algorithms.trie;
public class TrieNode {
public boolean isWord;
public TrieNode[] children;
public TrieNode() {
children = new TrieNode[26];
for (int i=0; i < 26; i++){
children[i] = null;
}
isWord = false;
}
}
| 18.733333 | 36 | 0.540925 |
4687754044e818646a0a7c92b468e0588ec03829 | 4,937 | /*
* Copyright (C) 2021 Authlete, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 21.098291 | 77 | 0.514888 |
8836a0e353ee5ff35481f2e9d700e7344b2ee893 | 5,142 | /*
* Copyright (c) 2022 nosqlbench
*
* 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 ... | 42.495868 | 143 | 0.672112 |
08d6c8031e097f16f66aa57a01e814279909049b | 232 | package com.openthinks.demo.data.tree;
public interface TreeInterface<T> {
public T getRootData();
public int getHeight();
public int getNumberOfNodes();
public boolean isEmpty();
public void clear();
}
| 15.466667 | 39 | 0.676724 |
f38a25078ed335ab16efd5c4540f32ba62d37faa | 8,907 | /*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* NOTICE
*
* This software was produced for the U. S. Government
* under Basic Contract No. FA8702-17-C-0001, and is
* subject to the Rights in Noncommercial Computer Software
* and Noncommercial Computer Software Documentation
* C... | 31.810714 | 115 | 0.520939 |
23e676a8e253686984ceec034e5f4e692be4759a | 4,115 | /**
* Copyright [2020] JD.com, Inc. TIG. ChubaoStream 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... | 34.291667 | 124 | 0.639611 |
a3db0f1fff520f1d163d6026850b9f3cec5e1553 | 567 | package com.insilicokdd.gui;
import java.awt.*;
public class LayoutPlot {
public void addobjects(Component componente, Container yourcontainer, GridBagLayout layout, GridBagConstraints gbc, int gridx, int gridy, double weightx, double weighty, int gridwidth, int gridheigth){
gbc.gridx = gridx;
gbc... | 29.842105 | 205 | 0.686067 |
b4c9b1159d934aebd834c43d320566b45ca8e1b6 | 5,557 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 ... | 37.046667 | 115 | 0.679863 |
0704d5a1bde09c294934dfb7f48fed66555fb785 | 9,227 | package gg.projecteden.nexus.features.store.perks;
import com.destroystokyo.paper.event.player.PlayerPickupExperienceEvent;
import com.gmail.nossr50.events.experience.McMMOPlayerXpGainEvent;
import fr.minuskube.inv.ClickableItem;
import fr.minuskube.inv.SmartInventory;
import fr.minuskube.inv.content.InventoryContents... | 34.558052 | 150 | 0.719952 |
1a00df053fced78366e96bbf17f483b69359761a | 15,319 | /*
* Copyright 2016 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 42.201102 | 119 | 0.625563 |
cc08c82b65f4633bd46b632101b0af9dbc0de73e | 268 | package de.adorsys.xs2a.adapter.service.model;
public class UpdatePsuAuthentication {
private PsuData psuData;
public PsuData getPsuData() {
return psuData;
}
public void setPsuData(PsuData psuData) {
this.psuData = psuData;
}
}
| 19.142857 | 46 | 0.679104 |
2931eafbdb2c16246031eda913ba6dac9630dde1 | 462 | package com.twitter.finatra.json.internal.caseclass.validation.validators;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import com.twitter.finatra.validation.Validation;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;... | 27.176471 | 74 | 0.831169 |
e134b38f34e37603f36f1b236a9ae5f5d187acf1 | 2,675 | /**
* Copyright 2011 Peter Murray-Rust et. al.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 22.291667 | 87 | 0.650467 |
15e890924cb45d86ac429c399dc5901672ddab4c | 6,169 | /**
* MIT License
* <p>
* Copyright (c) 2017-2018 nuls.io
* <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 rights
* to use, ... | 40.585526 | 149 | 0.69136 |
546fe120c9feca066d2a72b0430f7d8d446e54cd | 3,050 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 33.152174 | 99 | 0.574754 |
ced72923c76cd2063b3e713b2ff639fd210f6874 | 1,924 | package life.catalogue.es.query;
import life.catalogue.es.EsNameUsage;
import life.catalogue.es.EsReadTestBase;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class PrefixQueryTest extends EsReadTestBase {
@Before
public void before() ... | 28.294118 | 92 | 0.674116 |
39994e252e65db3d3062cafbc92f4e0284cb8ff2 | 2,456 | /*
* Copyright 2000-2005 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 26.12766 | 101 | 0.763029 |
07a07a583cebaf2ad7817281a76780f276f04647 | 1,456 | package com.gzczy.concurrent.cas;
import lombok.Data;
import sun.misc.Unsafe;
import java.lang.reflect.Field;
/**
* @Description UnSafe反射调用测试
* 实际生产切勿使用UnSafe魔法类!!!!
* @Author chenzhengyu
* @Date 2020-11-28 18:59
*/
public class UnsafeAccessor {
static Unsafe unsafe;
static {
try {
... | 26.962963 | 73 | 0.649038 |
d86ed8e266f88be69669d302873ee7ed708ad677 | 1,906 | package datastructures.toolbox.UN;
/**
* Cola Array ( Queue )
*
* Estructura basada en arrays,
* Consta de 1 array.
*/
interface QueueGen<T> {
abstract public boolean isEmpty();
abstract public boolean isFull();
abstract public int numInside();
abstract public T peek();
abstract public T dequeu... | 20.717391 | 55 | 0.568206 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.