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 |
|---|---|---|---|---|---|
53111707583f7db82eefc75599909cc4c96bd26d | 686 | package daggerok.coffee;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import reactor.core.publisher.Flux;
import javax.annotation.PostConstruct;
@Configuration
@RequiredArgsConstructor
public class CoffeeTestData {
final CoffeeRepository coffeeRepository;
... | 27.44 | 83 | 0.704082 |
f8c1ccaba2f0058f3aa265e18213117ecf65141f | 273 | package edu.tamu.app.model;
import java.util.List;
import java.util.stream.Stream;
import javax.persistence.EntityManager;
public interface ExtractorService {
public TernSchema describeSchema();
public Stream<RowsResult> extractData(List<TernTable> ternTables);
} | 19.5 | 68 | 0.798535 |
1441253f770a2b6274f7b4d65295cecf252d6cdc | 2,457 | /*
* 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 ... | 33.202703 | 88 | 0.72731 |
f2e850060309de5bc04dea7d3eb6850e00b0de09 | 3,070 | package io.mockxe.carDatabase.engine.dao.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.sql.DataSource;
import io.mockxe.carDatabase.engine.dao.EngineDAO;
import io.mockxe.carDatabase.engine.model.... | 21.319444 | 83 | 0.650163 |
3e09d1dc7b2e5120def883429e54f16833dacda8 | 144 | package com.sununiq.snippet.jianzhioffer;
/**
* 旋转数组最小的数字 TODO
*/
public class Question8 {
public static void main(String[] args) {
}
}
| 13.090909 | 42 | 0.6875 |
e986a22f1565a58fd64fb829624d530c650f411b | 15,118 | package neureka.calculus.assembly;
import neureka.backend.api.Operation;
import neureka.backend.api.OperationContext;
import neureka.calculus.Function;
import neureka.calculus.implementations.FunctionConstant;
import neureka.calculus.implementations.FunctionInput;
import neureka.calculus.implementations.FunctionNode;
... | 47.540881 | 151 | 0.520968 |
f38c3162215cc86a1ba957c25841166b3eaea377 | 1,641 | /**
*
*/
package de.darwinspl.feature.evolution.atomic.operations;
import java.util.Date;
import de.darwinspl.feature.evolution.invoker.EvolutionOperation;
import eu.hyvar.feature.HyFeature;
import eu.hyvar.feature.HyFeatureChild;
import eu.hyvar.feature.HyFeatureFactory;
import eu.hyvar.feature.HyGroup;
/**
* a... | 22.791667 | 76 | 0.750762 |
5d225db6c4a866da368c09aefd3c53d5b3a076d3 | 56,732 | package com.simeoreig.lab3;
public class Primers {
public static long[] primesFrom2two80k = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67,
71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181,
191, 193, 197, 199, 211, 223, 227, 2... | 95.669477 | 128 | 0.685345 |
fbf082b54f0d8468502409936396a180c6721e20 | 1,052 | package com.example.currencyrateshtml5;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Window;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends Activity {
long startTime = 0;
long endTime = 0;
@Override
pro... | 25.658537 | 58 | 0.758555 |
3318be23c1661b48d52f160cc9e8b66e3eebaeac | 3,063 | //
// Copyright (c) 2017-present, ViroMedia, Inc.
// All rights reserved.
//
// 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 ... | 36.903614 | 126 | 0.699314 |
737d4de31d878473f18354d672a4214998a3a9da | 595 | /**
* https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/
* https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/discuss/888949/JavaC%2B%2BPython-Parentheses-Problem-Foundation
* Count the depth, plus 1 and minus 1 for ( and ) respectively; The max value of depth is the solution... | 35 | 137 | 0.626891 |
b73f8b456c5166505f87c5f7c6c61478ad19110b | 401 | package sn.taskrunner;
/**
* Created by Sumanth on 17/10/14.
*/
public abstract class TaskParameters {
protected int timeout;
protected int retry;
protected TaskParameters(int timeout, int retry) {
this.timeout = timeout;
this.retry = retry;
}
public int getTimeout() {
... | 16.708333 | 54 | 0.610973 |
968f10e4a6bf162ba1c740bcf93d6323e4478460 | 1,186 | package com.lin.factoryBean;
import com.lin.anno.MySelect;
import org.springframework.beans.factory.FactoryBean;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* @author Lin
* @version 1.0
* @date 2020/8/8 11:40
*/
/**
* 通过传一个Class clazz对象构造一个My... | 23.72 | 97 | 0.747049 |
9a8417c6c76e7e22ffe025db96baa283fb2a601d | 1,634 | package com.smartsheet.platform.cs.helloworld.controller;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web... | 34.041667 | 94 | 0.779682 |
9db12853508e74acfbbfd3a2cc06a934cb507347 | 2,224 | /**
* Copyright © 2016-2022 The Thingsboard Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 39.017544 | 130 | 0.742356 |
82d0b0212fc7c8f19ecd751d338721819e15f308 | 1,153 | package com.distributedDL.streaming.batch.cache.mapping;
import org.apache.flink.types.Row;
import com.distributedDL.streaming.batch.mapping.AppBatchMapping;
import com.distributedDL.streaming.cachedb.RocksDbCache;
import com.distributedDL.streaming.common.CommonUtils;
import com.distributedDL.streaming.models.consum... | 36.03125 | 81 | 0.81353 |
074065afae3d5c623e68c1d792f8a7dfde56deaa | 2,452 | package com.ultraschemer.microweb.controller;
import com.ultraschemer.microweb.domain.JwtSecurityManager;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.core.json.Json;
import io.vertx.ext.web.Route;
import io.vertx.ext.web.handler.BodyHandler;
import com.ultraschemer.microwe... | 42.275862 | 118 | 0.66721 |
f113a40c558c891bd7e071109b756493dd19d8d1 | 373 | package edu.ucsb.cs156.spring.backenddemo.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class ReactController {
@GetMapping(value = {"/", "/{x:^(?!v2/api-docs$)[\\w\\-]+}", "/{x:^(?!api$).*$}/**/{y:[\\w\\-]+}"})
public... | 26.642857 | 101 | 0.656836 |
c837de72c5e4f17f524e28e4f6c5031f0c68d449 | 1,032 | package team.unstudio.udpl.nms.inventory;
import org.bukkit.inventory.ItemStack;
import team.unstudio.udpl.nms.NmsHelper;
import team.unstudio.udpl.nms.nbt.NBTTagCompound;
/**
* {@link NmsHelper#createNmsItemStack(ItemStack)}
*/
public interface NmsItemStack {
/**
* 获取{@link ItemStack}实例
*/
It... | 19.111111 | 62 | 0.661822 |
eff3f47fe12ee00719a8efdf891d074a615e884c | 2,893 | package mandelbrot.ocamljava_maven_plugin;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import org.apache.commons.io.FileUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import com.google.common.base.Preconditions;... | 27.817308 | 113 | 0.757691 |
fc0ff15dc9c327965686aa2f8aa0b025080474f4 | 1,990 | /*
* IntersectionResult.java
*
* Created on 6 janvier 2006, 12:58
*/
package RaytracedObjects;
import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;
import Materials.Material;
/**
* Result of an intersection with an object.
*
* @author Guilhem Duche
*/
public class IntersectionResult {
private Vec... | 20.729167 | 76 | 0.679899 |
7d7044065690d116247e6901f1879cb8b7c234a5 | 1,255 | package me.senseiwells.essentialclient.rule.client;
import com.google.gson.JsonObject;
import me.senseiwells.essentialclient.rule.impl.SimpleRule;
import java.util.ArrayList;
import java.util.List;
public abstract class ClientRule<T> extends SimpleRule<T> {
private List<RuleListener<T>> listeners;
public ClientRu... | 26.702128 | 69 | 0.743426 |
8855f8f24f3b4da5a9d168a4ab7f11ad8462f6c3 | 3,263 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 42.376623 | 96 | 0.646338 |
928719b7f2704575a5e1944c63e26ff37b383398 | 553 | package fr.inra.urgi.faidare.domain.data.germplasm;
import com.fasterxml.jackson.annotation.JsonView;
import fr.inra.urgi.faidare.domain.JSONView;
/**
* @author gcornut
*/
public interface Photo {
@JsonView(JSONView.GnpISFields.class)
String getFile();
@JsonView(JSONView.GnpISFields.class)
String g... | 22.12 | 51 | 0.735986 |
5ca7f3f16dc261044ab9c470892352564ff9574f | 1,137 |
package cp.swing;
import javax.swing.JTextArea;
public class ThreadExemplo extends Thread{
private int tempo=0;
private JTextArea jTxArea;
public ThreadExemplo(){}
public ThreadExemplo(String nome, int prioridade, int tempo, JTextArea jTxArea){
this.setName(nome);
thi... | 27.071429 | 84 | 0.549692 |
68baf9893ed58f02fd0d3e355ccc8e79a967b506 | 972 | package org.beanpod.switchboard.entity;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import... | 23.707317 | 80 | 0.799383 |
cf3d6e2c858ebe1c946543d92c24464795756c3c | 1,149 | package com.example.demo.controllers;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
@Controller
publi... | 33.794118 | 91 | 0.684073 |
e22d736402f83a513b99010d7b48c6ce53ce7c3a | 1,723 | package jet.opengl.renderer.Unreal4.api;
public interface RHIDefinitions {
/** Maximum number of miplevels in a texture. */
int MAX_TEXTURE_MIP_COUNT = 14;
/** The maximum number of vertex elements which can be used by a vertex declaration. */
int MaxVertexElementCount = 16;
/** The alignment in b... | 53.84375 | 303 | 0.737667 |
fb6ef54c179959b2f846baf58eb1b25f9bf77f43 | 514 | /*
* 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 com.mmnaseri.utils.spring.data.sample.repositories;
import com.mmnaseri.utils.spring.data.sample.models.PersonSerializable;
im... | 28.555556 | 101 | 0.782101 |
ffe0010c2f7d386ba71b1a4253772ab60dd112b0 | 458 | package com.marticus.employeeapp.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.marticus.employeeapp.entity.EmployeeEntity;
@Repository
public interface EmployeeRepo extends JpaRepository<EmployeeEntity, Integer>{
Employ... | 19.083333 | 78 | 0.831878 |
074886c1a3a2f62216cfb1a661b36c3e52195a6f | 1,676 | /*
* Copyright 2016 Liam Williams <liam.williams@zoho.com>.
*
* This file is part of thin-http-client.
*
* 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/lice... | 34.916667 | 93 | 0.709427 |
bfbde6fe8b70811cacd4097fb611a4a707b6bf55 | 2,022 | /*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... | 32.612903 | 122 | 0.752226 |
2e6473f09e68eea07ef1514da9f1cf856dd76e78 | 1,335 | package com.fancenxing.fanchen.framelibrary.skin.config;
import android.content.Context;
/**
* 功能描述:
* Created by 孙中宛 on 2018/5/21.
*/
public class SkinPreUtils {
private static SkinPreUtils mInstance;
private Context mContext;
private SkinPreUtils(Context context) {
this.mContext = context... | 22.25 | 93 | 0.579026 |
08062e69a8621f0b4fcaec0b7caa2a31602c3806 | 4,464 | /**
*
* Copyright (c) Microsoft and contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 42.923077 | 162 | 0.748208 |
d0a36b960a7463116610de5a7eda2a2f287afa08 | 1,299 | package andrepnh.mtg.sim.model;
import static andrepnh.mtg.sim.model.Mana.B;
import static andrepnh.mtg.sim.model.Mana.G;
import static andrepnh.mtg.sim.model.Mana.R;
import static andrepnh.mtg.sim.model.Mana.U;
import static andrepnh.mtg.sim.model.Mana.W;
import static com.google.common.base.Preconditions.checkArgume... | 24.980769 | 86 | 0.686682 |
07abb79e830ed28a20501c13134425d5e704035f | 1,508 | package cz.metacentrum.perun.core.impl;
import cz.metacentrum.perun.audit.events.AuditEvent;
import cz.metacentrum.perun.core.api.PerunSession;
import java.util.Objects;
/**
* Wrapper for AuditEvent associating it with originating user session.
* It is supposed to be used solely inside Auditer to store runtime sta... | 22.848485 | 90 | 0.723475 |
56159b38f756d9e8f2c2699a1b9828df62c642fb | 1,697 | package org.agoncal.application;
import org.agoncal.application.model.Game;
import org.agoncal.application.model.Player;
public class BottCardGameMain {
public static void main(String[] args) {
BottCardGame service = new BottCardGame();
Game game = service.startANewGame();
System.out.println("########... | 32.018868 | 145 | 0.639953 |
f5d6eb898735854f9af4ca84db40588e21f67c8b | 2,058 | /**
* This class is generated by jOOQ
*/
package org.carbon.sample.ext.jooq.tables.daos;
import java.util.List;
import javax.annotation.Generated;
import org.carbon.sample.ext.jooq.tables.LecturerApplyHistory;
import org.carbon.sample.ext.jooq.tables.records.LecturerApplyHistoryRecord;
import org.jooq.Configuratio... | 31.661538 | 150 | 0.705539 |
9fc6eb9723637c65bdbac0740b3e09e391018740 | 826 | package view.chessGame;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JLabel;
import model.enumeration.Colour;
import model.enumeration.PieceType;
public class PieceGUI ext... | 19.666667 | 76 | 0.676755 |
08a93f1d6954949492d167a8642d34f5b685a32e | 2,806 | package com.takeaway.movies.status.describing;
import com.takeaway.movies.model.Movie;
import org.assertj.core.util.Arrays;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit... | 35.518987 | 105 | 0.715609 |
fb1cd6a2ebd5ceee072c99d7acc5aec714a94127 | 440 | package com.roo.viralatas.web;
import com.roo.viralatas.domain.TipoMoradias;
import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@RequestMapping("/tipomoradiases")
@Controller
@... | 36.666667 | 80 | 0.840909 |
889a03942c6c77a7dd6c1769b78827c298905b2f | 1,839 | package com.projectjava.mapgen.util;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
public class Config {
// The size of a packed sector
public static final int SECTOR_WIDTH = 48;
// The size of a packed sector
public static final int SECTOR_HEIGHT = 48;
// The g... | 35.365385 | 124 | 0.698206 |
1e27b6b04b36aae18efc295436347e963f3c21b0 | 2,432 | package io.github.alloffabric.olbm;
import io.github.alloffabric.olbm.api.LootBagType;
import io.github.alloffabric.olbm.inventory.LootBagContainer;
import io.github.alloffabric.olbm.util.OLBRegistry;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import... | 34.742857 | 127 | 0.759868 |
746604e32492d5adf1b2e1ab3c60e7f8c21f1593 | 1,428 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 24.62069 | 83 | 0.591737 |
b7c6531ee0e93ac1ed64e61e1a28c6066c04daac | 3,085 | package org.atlasapi.remotesite.opta.events;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.Set;
import org.atlasapi.remotesite.FetchException;
import org.atlasapi.remotesite.opta.events.model.OptaMatch;
... | 36.72619 | 116 | 0.680389 |
f2d48cebef22fd9e079e3e57c4e2868c88633a67 | 3,873 | /*
* Copyright (c) 2010, Stanislav Muhametsin. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by appli... | 51.64 | 114 | 0.804028 |
2fedcb25d8db93c8c3f437ee97a62e0dac7f8a9c | 12,444 | /*
* Name: Dina Bernstein and Zihe Zhang
* : ICS4UE
* Teacher: Mr. Benum
* Purpose: Creates the main game screen of mario poker, with interactive and visual elements
*/
//Imports necessary libraries
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.M... | 33.36193 | 164 | 0.686114 |
c7b4521adada34a5288e626faf591947c4e3f806 | 2,153 | package com.compuware.ispw.git;
public class GitToIspwConstants
{
public static final String FILE_QUEUE = "file_queue.txt";
public static final String VAR_REF_ID = "refId"; //$NON-NLS-1$
public static final String VAR_REF = "ref"; //$NON-NLS-1$
public static final String VAR_HASH = "hash"; //$NON-NLS-1$
... | 55.205128 | 125 | 0.72457 |
10afb0dab7ff97d0f191e386efdde19369c072aa | 709 | package String;
public class mergeStrings {
public static void main(String[] args) {
// main function
String s1 = "abc2", s2 = "pqr0000";
System.out.println(alter(s1, s2));
}
private static String alter(String s1, String s2) {
int i = 0, j = 0, k = 0;
StringBuilder ss = new StringBuilder(""... | 18.657895 | 53 | 0.495063 |
704579bcb400cdc73b044ab47ced8d7e1bf7553e | 3,476 | package DynamicProgramming;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
/** @author Varun Upadhyay (https://github.com/varunu28) */
public class Fibonacci {
private static Map<Integer, Integer> map = new HashMap<>();
public static void main(String[] args) {
// Methods all retu... | 22.282051 | 99 | 0.532221 |
c140d788f0443258b2fe8e47165161be1a8ccc04 | 8,374 | package gov.faa.ang.swac.common.entities;
import gov.faa.ang.swac.common.flightmodeling.IResourceInfo.ResourceType;
import gov.faa.ang.swac.common.interfaces.VisitorTwo;
import gov.faa.ang.swac.datalayer.storage.fileio.TextSerializable;
import gov.faa.ang.swac.datalayer.storage.fileio.WithHeader;
import java.io.Buffe... | 34.319672 | 136 | 0.671244 |
0038eda548c6a1541b1a5c7984137ad816084530 | 224 | package com.github.edgar615.gateway.core.plugin.predicate;
import com.github.edgar615.gateway.core.dispatch.ApiContext;
import java.util.function.Predicate;
public interface ApiPredicate extends Predicate<ApiContext> {
}
| 24.888889 | 61 | 0.830357 |
9665a0b4d2d7313921e6576b3f7fdc7e3d084795 | 910 | package org.ril.madera.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/*
* This is our model class and it corresponds to Country table in database
... | 18.958333 | 74 | 0.732967 |
f752408165269cc56655f1323d8379e7a024a17a | 4,274 | package com.kalessil.phpStorm.phpInspectionsEA.inspectors.languageConstructions;
import com.intellij.codeInspection.ProblemHighlightType;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.tree.IElementType;
import c... | 48.568182 | 146 | 0.648807 |
471f9a3daad70a515c951f2a6a1710498c149dd7 | 3,143 | package dv606.tn222ei.assignment1.weather;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import android.app.ListActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.widget.List... | 32.402062 | 112 | 0.629653 |
da0de2a3457fb544ce51719d446be4e115209faa | 12,073 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.google.ratel.ant;
import com.google.ratel.core.*;
import com.google.ratel.deps.io.*;
import com.google.ratel.deps.jackson.databind.*;
import com.google.ratel.deps.lang3.*;
import com.google.ratel.service.cla... | 30.642132 | 117 | 0.55446 |
93bf7cdc09e80813deec6a8a19c7e620e533c9b9 | 2,402 | /*
* Copyright 2016 predic8 GmbH, www.vopen.xyz
* 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... | 43.672727 | 177 | 0.748127 |
7bcac1d28845b54b4a1bffe5bece0b73f4931c32 | 7,869 | package org.silentsoft.arguments.parser;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Optional;
import java.util.TreeSet;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;
i... | 37.471429 | 151 | 0.751557 |
d770c5938c8308a0397c67c949e470cdaa3b9095 | 1,493 | package commandPackage;
import fileSystem.Directory;
import fileSystem.FileSystemEntity;
import fileSystem.FileSystemErrors;
import fileSystem.Permission;
public class Chmod extends FileCommand {
public Chmod(String commandName, String commandArguments) {
super(commandName, commandArguments);
}
@Override
pub... | 27.648148 | 88 | 0.754186 |
a1bcbdbb496d0724305e04c4e583a1e57ec11fb5 | 1,281 | package github.dragondreamer749.dreamengine.sprites;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import github.dragondreamer749.dreamengine.resources.ResourceLocation;
import javax.imageio.ImageIO;
public class Sequences ... | 21 | 124 | 0.708041 |
2230bb52e19d1641c0315e191acdd74b2ded55b7 | 2,607 | package de.eacg.ecs.plugin;
import org.apache.ivy.core.module.descriptor.ModuleDescriptor;
import org.apache.ivy.core.module.id.ModuleRevisionId;
import org.apache.ivy.core.report.ResolveReport;
import org.apache.tools.ant.Project;
/**
* Wraps an Ant-project and provides the information needed by the plugin.
*/
pub... | 28.336957 | 143 | 0.639816 |
39aa115cd2d104e242c04641658acedeb41e97cd | 497 | package com.org.generation.blogpessoal_1.repository;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.org.generation.blogpessoal_1.Model.Usuario;
@Repository
public interface UsuarioRepositor... | 22.590909 | 73 | 0.826962 |
308fe9fdb0072cc4f0598e304431c4cf2cd574e6 | 643 | package com.renanfch.delibird.core.usecase;
import com.renanfch.delibird.core.entity.ScheduleMessage;
import com.renanfch.delibird.core.exception.ScheduleNotFoundException;
import com.renanfch.delibird.core.port.ScheduleRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
... | 30.619048 | 70 | 0.800933 |
a7896b327c9c3e8f92393a09a8e44d22e8ff6eaf | 1,730 | package moe.caa.fabric.hadesgame.server;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.server.network.ServerPlayerEntity;
import java.util.ArrayList;
import java.util.List;
public class HgPlayerInventory {
public final List<ItemStack> main;
publ... | 33.269231 | 100 | 0.654335 |
45fe50492e7db0a1d0d421bf4666bacd28fc5590 | 20,515 | /*
* Copyright 2008-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 43.098739 | 147 | 0.636949 |
4a13ee6293c057c7e48857ed63205954ed3dedba | 544 | package page21.q2041;
import java.util.Scanner;
public class Main {
private static final String seasons[] = {
"Spring", "Summer", "Autumn", "Winter"
};
private static final String months[] = {
"March", "April", "May", "June", "July", "August", "September",
"October", "November", "December", "Januar... | 24.727273 | 67 | 0.612132 |
734583446f8e3bc0dba85950beb559178da0ec68 | 3,105 | /**
* I waive copyright and related rights in the this work worldwide
* through the CC0 1.0 Universal public domain dedication.
* https://creativecommons.org/publicdomain/zero/1.0/legalcode
*/
package gov.usgs.volcanoes.pensive;
import com.martiansoftware.jsap.JSAPResult;
import com.martiansoftware.jsap.Parameter... | 31.683673 | 92 | 0.719485 |
15fe2ad9d932e6cb8cf234067388d51cc5c293eb | 1,415 | package ms.db;
import ms.db.MergedQuery.Type;
public interface Query {
public static <T> RangeQuery<T> between(String indexName,
T smallest,
boolean includeSmallest,
T largest,
... | 32.906977 | 95 | 0.588693 |
813b115ad18b74cbfaa71872ad08f84f3a35a8c8 | 586 | package com.livelocationsharing;
import lombok.Data;
import lombok.Getter;
import net.runelite.api.coords.WorldPoint;
@Data
public class LiveLocationSharingData {
@Getter
private final String name;
@Getter
private final String type;
@Getter
private final WorldPoint waypoint;
@Getter
... | 21.703704 | 98 | 0.679181 |
4fc03e0b2e7bf2639fb1aeba4e927f1e85bf5bb4 | 3,605 | /*
* 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 | 79 | 0.674064 |
01845a857c01c8b0347806e77d718c1c86737534 | 2,033 | package com.example.bozhilun.android.xwatch.ble;
import android.content.Context;
import android.util.Log;
import com.example.bozhilun.android.MyApp;
import com.example.bozhilun.android.bean.UserInfoBean;
import com.example.bozhilun.android.siswatch.utils.WatchUtils;
import com.google.gson.Gson;
import com.suchengkeji... | 28.236111 | 122 | 0.687162 |
e8981046953253aeaf5c3e613ad39ca7a2b3c698 | 6,301 | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... | 32.647668 | 119 | 0.641327 |
2902c156f3b9e3a19fa33303ea82c570c211d531 | 512 | package de.jdsr.java.exercise.beispiele.file;
import java.io.*;
public class Lesen
{
public static void main(String[] args)
{
try
{
FileInputStream in = new FileInputStream("Lesen.java");
int zeichen = 0;
while(( zeichen = in.read()) != -1)
System.out.print((char)zeichen);
in.close();
}
cat... | 17.655172 | 60 | 0.634766 |
dc99de7b3965dd7e5509a6e7de1d73853ad605fe | 5,557 | /*
* (C) Copyright 2006-2014 Nuxeo SA (http://nuxeo.com/) 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/LICENSE-2.0
*
* Unless re... | 45.54918 | 136 | 0.719633 |
1f25ed9096aee54e26b03d191383f6cb2f726bac | 296 | package org.tview.visualization.model.redis.info;
public class RedisCliInfoCluster {
private String clusterEnabled;
public String getClusterEnabled() {
return clusterEnabled;
}
public void setClusterEnabled(String clusterEnabled) {
this.clusterEnabled = clusterEnabled;
}
}
| 19.733333 | 56 | 0.766892 |
1e42abd31b8b7cdf1b8f7630499b92b61468c74e | 2,587 | /*
* (C) Copyright 2019 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 39.19697 | 120 | 0.742559 |
531a34c2bcfb1a4cd0cc1f6b56094ef762ba2e8b | 967 | package com.dua3.utility.math.geometry;
import com.dua3.utility.math.Vector2f;
/**
* Move current position.
* <p>
* <strong>NOTE: </strong> Only valid at start of path.
*/
public class MoveTo2f extends Segment2f {
/**
* Segment type name.
*/
public static final String NAME = "MOVE_TO";
/**... | 17.907407 | 55 | 0.552223 |
ba7912bd84d5c51226f7042d4d7abdadf2c5073c | 1,280 | package org.nakedobjects.metamodel.commons.lang;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class StringUtilsNaturalNameTest {
@Test
public void shouldCreateANaturalNameForABooleanPropertyAccessorName() {
assertThat(StringUti... | 29.767442 | 88 | 0.7375 |
25c2b42c50a4ff25c7e614ae3d882f09b8086605 | 2,012 | package org.hspconsortium.client.operations.util;
import java.util.Map;
import org.hspconsortium.client.auth.Scopes;
import org.hspconsortium.client.auth.SimpleScope;
import org.hspconsortium.client.auth.access.AccessTokenProvider;
import org.hspconsortium.client.auth.credentials.Credentials;
import org.hspconsortium... | 47.904762 | 221 | 0.831511 |
8e214cccde410c087dad094f46a90e5e49c72d39 | 5,433 | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... | 39.086331 | 95 | 0.709369 |
213cbe414b7744f623fb100a2fb8a3b70f312973 | 1,911 | package org.loomdev.api.entity.boss.enderdragon;
import org.jetbrains.annotations.NotNull;
import org.loomdev.api.entity.ComplexEntity;
import org.loomdev.api.entity.ComplexEntityPart;
import org.loomdev.api.entity.boss.Boss;
import org.loomdev.api.entity.monster.MobEntity;
import org.loomdev.api.entity.monster.Enemy;... | 26.541667 | 76 | 0.641549 |
ef9f95218d0086a49d6e248b144d8c91e29c40e7 | 1,628 | import javax.security.auth.login.LoginException;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.requests.GatewayIntent;
import xyz.spedcord.commandlib.CommandLibSettings;
import xyz.spedcord.commandlib.CommandLibSettingsBuilder;
import xyz.spedcord.commandlib.command.C... | 36.177778 | 120 | 0.644349 |
176185b3ea845df2270dede6c7b67316c8ecd341 | 1,359 | package domain.molecule;
import java.util.Random;
import domain.atom.Atom;
public class AlphaMolecule extends Molecule{
/**
*
*/
private static final long serialVersionUID = 1L;
Random rand = new Random();
int i = 0;
public AlphaMolecule(){
this.setWidth((int) (Molecule.L/4));
this.setHeight((int) (Mo... | 17.423077 | 65 | 0.648271 |
cce74c74ffe653fe9621d426e3a0a9507cff617c | 245 | package cn.zhaotianen.oa.dao.impl;
import cn.zhaotianen.oa.base.DaoSupportImpl;
import cn.zhaotianen.oa.dao.UserDao;
import cn.zhaotianen.oa.domain.User;
public class UserDaoImpl extends DaoSupportImpl<User> implements UserDao {
}
| 22.272727 | 75 | 0.77551 |
cb3599e3e787a2fc9c19c27d14d55462f2d0b38d | 2,115 | package org.twdata.pkgscanner;
import java.io.File;
/**
* Represents an export consisting of a package name and version
*
* Note: this class has a natural ordering that is inconsistent with equals.
*/
public class ExportPackage implements Comparable<ExportPackage> {
private final String packageName;
priv... | 29.375 | 97 | 0.637352 |
cc1b1310c29e68557edff4b5f122926fd6813117 | 3,316 | package com.kunlun.system.service.impl;
import com.kunlun.common.model.OperatorLogModel;
import com.kunlun.common.model.Page;
import com.kunlun.common.utils.ExcelUtil;
import com.kunlun.system.config.dataSource.DataSourceType;
import com.kunlun.system.config.dataSource.DbContextHolder;
import com.kunlun.system.dao.IOp... | 42.512821 | 248 | 0.724367 |
c1d7c535dc074fbf1bb8108c6dcd939ce7487efc | 1,937 | package com.muralijha.sup;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.ImageView;
import android.widget.Toast;
import static com.muralijha.sup.profile.profi... | 31.241935 | 89 | 0.667011 |
7968a46458437f6b85fb5b1374062c43dc687c0f | 1,510 | package com.charlyghislain.dispatcher.example;
import com.charlyghislain.dispatcher.example.resource.ExampleResourceController;
import com.charlyghislain.dispatcher.management.api.security.DispatcherManagementRoles;
import com.charlyghislain.dispatcher.management.provider.DispatcherWebExceptionMapper;
import com.charl... | 41.944444 | 100 | 0.819868 |
dd96d6d0e98260ebdf65ef12027373dc15716e96 | 5,411 | /*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.systemtest.iot.isolated.tls;
import static io.enmasse.systemtest.TestTag.ISOLATED;
import static io.enmasse.systemtest.condition.OpenShiftVersion.OCP4;
im... | 39.210145 | 109 | 0.57956 |
772cc72096fb93ced8a793e71333843d3e7fa6d1 | 541 | package edu.berkeley.nlp.util;
public class IntPair extends IntTuple {
public IntPair() {
elements = new int[2];
}
public IntPair(int src, int trgt) {
elements = new int[2];
elements[0] = src;
elements[1] = trgt;
}
public int getSource() {
return get(0);
}
public int getTarget... | 12.880952 | 55 | 0.591497 |
795bf7e05436879ab7bf7f528744c142ebb4e8b9 | 2,834 | /*
* Copyright (c) 2018, The University of Memphis, MD2K Center of Excellence
*
* 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 c... | 38.297297 | 116 | 0.739591 |
7436d15398adc4034ce497b768de9d4bef43275d | 9,197 | package io.vertx.up.util;
import io.vertx.core.json.JsonObject;
import io.vertx.up.eon.Strings;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalUnit;
import java.util.HashSet;
impo... | 37.538776 | 107 | 0.514951 |
db086475758e6673513fb9afb3101ceba9ba9a6a | 106 | class Test {
public static final int FOO = 0, BAR = 2;
void foo() {
System.out.println(FOO);
}
} | 17.666667 | 43 | 0.59434 |
ec77f2410ba473e044376be2c3128e58b1129bf3 | 2,123 | package com.dev.crm.core.rest;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation... | 34.803279 | 150 | 0.804522 |
4d0b204aefcc122793682496fb01d1d7ee442b61 | 604 | package com.docsdk.processor.content;
import com.google.common.base.Charsets;
import com.google.common.io.ByteSource;
import java.io.IOException;
import java.io.InputStream;
public class DefaultContentPreProcessor implements ContentPreProcessor {
@Override
public String preProcess(final InputStream inputStr... | 26.26087 | 80 | 0.693709 |
81d2ce3f7d3ea9fea87a7d54aa198eafec28d8c8 | 4,699 | package org.bluedb.disk.segment.path;
import static java.util.Arrays.asList;
import static org.bluedb.disk.segment.path.SegmentPathTimeUnits.ONE_HOUR;
import static org.bluedb.disk.segment.path.SegmentPathTimeUnits.ONE_MILLI;
import static org.bluedb.disk.segment.path.SegmentPathTimeUnits.ONE_MINUTE;
import stat... | 44.330189 | 101 | 0.764205 |
c382b1b36905e29aa980037adb076fa27eaa3cff | 744 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.rpc.client.java;
import io.github.mmm.bean.Bean;
import io.github.mmm.property.number.integers.IntegerProperty;
import io.github.mmm.property.string.StringProperty;
/*... | 24 | 82 | 0.682796 |
839f4e3600b09829c4734cef89b1f989a83da3ae | 695 | /*
* Copyright Calvin Lee Since 2016.
* All Rights Reserved.
*/
package org.calvin.DesignPatterns.Creational.Builder;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class NutritionFactsLombokTest {
NutritionFactsLombok fixture;
@Test
public void shouldCreateObjectUsingBui... | 28.958333 | 113 | 0.697842 |
b68eb77e40545099ab71c79e76d49f7495bab709 | 2,345 | package edu.ucla.cs.wis.bigdatalog.interpreter.pipelined.relation;
import edu.ucla.cs.wis.bigdatalog.compiler.variable.Binding;
import edu.ucla.cs.wis.bigdatalog.database.Database;
import edu.ucla.cs.wis.bigdatalog.interpreter.Status;
import edu.ucla.cs.wis.bigdatalog.interpreter.argument.NodeArguments;
import edu.ucl... | 33.5 | 116 | 0.779531 |
921415b97fb455b8553c57a23bfdb9d90c0911f7 | 463 | package com.dunnkers.util;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
/**
*
* @author Dunnkers
*/
public class Verification {
/**
* Determines whether this string contains HTML tags or not.
* @param string The string.
* @return <tt>True</tt> if the string contained HTML.
*/
public static ... | 21.045455 | 61 | 0.699784 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.