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 |
|---|---|---|---|---|---|
5ab041f61a469269bdea06e30349119f68b488e9 | 314 | package com.chinayin.wework.chatdata.service;
/**
* @author chianyin <whereismoney@qq.com>
*/
public interface MediaService {
/**
* 下载企业微信媒体文件
*
* @param sdkFileId
* @param file
* @param fileSize
*/
void downloadMediaFile(String sdkFileId, String file, long fileSize);
}
| 17.444444 | 73 | 0.640127 |
f62d9531acbb4b172e7b302f1e9facd1a6b0bf82 | 76,215 | /*******************************************************************************
* 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 f... | 49.586858 | 120 | 0.741914 |
fcc58cf361d3991b6ec68eca0fb7851e8614fd62 | 1,146 | package me.desht.pneumaticcraft.api.item;
import net.minecraft.item.Item;
import java.util.List;
public interface IItemRegistry {
enum EnumUpgrade {
VOLUME, DISPENSER, ITEM_LIFE, ENTITY_TRACKER, BLOCK_TRACKER, SPEED, SEARCH, COORDINATE_TRACKER, RANGE, SECURITY, THAUMCRAFT /*Only around when Thaumcraft is... | 29.384615 | 175 | 0.693717 |
1ef4bc951acfd4eb08da12625cb9280f0fcaf825 | 632 | /*
Desafio 011
problema: Faça um programa que leia a largura e a algura de uma parede em
metros, calcule a sua área e a quantidade de tinta necessária para
pintá-la, sabendo que cada litro de tinta pinta uma área de 2m².
resolução:
*/
import java.util.Scanner;
class Main {
public static void main(Strin... | 30.095238 | 77 | 0.639241 |
5217ec740d74a8eb1c4e4ad579f5e63154025a64 | 6,486 | package io.kubernetes.client.extended.controller.builder;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static org.junit.Assert.*;
import com.github.tomakehurst.wiremock.junit.WireMockRule;
import io.kubernetes.client.ApiClient;
import io.kubernetes.client.JSON;
import io.kubernetes.client.a... | 32.592965 | 100 | 0.63136 |
60d46866148862ff43703ee5ea08e57500de7190 | 10,129 | /*
* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
* or agreed to in writing, ... | 31.166154 | 156 | 0.728502 |
411b7b2d154dbe3e7abc53842351e67d811ea539 | 2,646 | /*
* Copyright 2020 Kato Shinya.
*
* 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... | 27.852632 | 100 | 0.676493 |
c0f693f4614880a971225dddbac8b5bd044d53a4 | 12,440 | package fortifyscanner.ui.view;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ITableL... | 32.311688 | 132 | 0.741158 |
b9aa73b0e0ea4a80ffbe7084c070d36a7b498732 | 948 | public class NonRecursiveMergeSort<T extends Comparable<T>> {
public T[] MergeSort(T[] M) {
int length = M.length;
int size = 1;
int p;
while (size < length) {
p = -1;
while (p + size < length) {
int left = p + 1;
int right = left + size - 1;
if (right + size <= length) {
p = right + s... | 16.631579 | 61 | 0.440928 |
e761299e91a29cb4849f15f3d5a9b4b97249b5a3 | 950 | /*
* Copyright (C) 2020 Alibaba Group Holding Limited
*/
package com.aliyun.auth.model;
/**
* 创建视频凭证的Response
* Created by Mulberry on 2017/11/3.
*/
public class CreateVideoForm {
private String RequestId;
private String UploadAddress;
private String UploadAuth;
private String VideoId;
publi... | 19.387755 | 56 | 0.649474 |
7fdc41f909b1092acd7e11b84b3fbc9a2e895672 | 4,702 | /*
* Copyright 2000-2015 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... | 27.658824 | 95 | 0.744577 |
408702a262a338a891aacf27f1c94f5c95e71a70 | 6,185 | /*
* Copyright (c) 2017, Regents of the University of Massachusetts Amherst
* 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 copyri... | 34.361111 | 157 | 0.720776 |
a85cfa48baa95461d6d4586edd2b749ea3875ebf | 405 | package edu.gemini.spModel.template;
import edu.gemini.pot.sp.ISPFactory;
import edu.gemini.pot.sp.ISPNode;
import edu.gemini.pot.sp.ISPNodeInitializer;
public final class TemplateParametersNI implements ISPNodeInitializer {
public void initNode(ISPFactory factory, ISPNode node) {
node.setDataObject(ne... | 22.5 | 71 | 0.753086 |
6d03c6232798af86b9cda990fd66d8a97bb1d7f7 | 1,745 | package cj.solstice.swing.sfind;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JButton;
import javax.swing.UIManager;
... | 25.661765 | 78 | 0.699713 |
e7a85dcea4fd08800c719386fc9832b37ec60d79 | 249 | package RMI_Chat;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface ChatClientInterface extends Remote {
public String getName() throws RemoteException;
public void print(String message) throws RemoteException;
}
| 20.75 | 61 | 0.795181 |
95f0b9a64774941437887a1475e5a6096ae34e88 | 6,659 | package seedu.exercise.model.util;
import static seedu.exercise.model.resource.ResourceComparator.DEFAULT_EXERCISE_COMPARATOR;
import static seedu.exercise.model.resource.ResourceComparator.DEFAULT_REGIME_COMPARATOR;
import static seedu.exercise.model.resource.ResourceComparator.DEFAULT_SCHEDULE_COMPARATOR;
import ja... | 47.906475 | 111 | 0.635531 |
3b627aa3ce19cef96378900754575813cded9b28 | 1,002 | package org.jerry.transfercash.service;
import org.apache.log4j.Logger;
import org.jerry.transfercash.exception.CustomException;
import org.jerry.transfercash.exception.ErrorResponse;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Pr... | 31.3125 | 127 | 0.799401 |
817a6d683df033c205a37873883f88a26fdad489 | 2,373 | package com.example.demo.controllers;
import com.example.demo.conceptHeader.ConceptHeader;
import com.example.demo.conceptHeader.OpenTabs;
import com.example.demo.user.User;
import com.example.demo.user.UserComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.... | 40.913793 | 87 | 0.670881 |
c3f4779e5f4075f02552a2c162c454a5e86bb40f | 563 | package com.example.reservationandlivraisonapi.entity.reclamation;
import com.example.reservationandlivraisonapi.entity.acteurs.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;
@Entity
@NoArgsConstructor
@AllArgsConstruct... | 18.766667 | 66 | 0.817052 |
461e503f1dc0d339714d192767ee15b310348921 | 134 | package com.twilio.demo.minotaur;
import io.dropwizard.Configuration;
public class MinotaurConfiguration extends Configuration {
}
| 16.75 | 58 | 0.828358 |
2f2b03065c5b012d0b1676734c00f178d5bdc81e | 3,303 | /* */ package org.springframework.context.support;
/* */
/* */ import java.util.Locale;
/* */ import org.springframework.context.HierarchicalMessageSource;
/* */ import org.springframework.context.MessageSource;
/* */ import org.springframework.context.MessageSourceResolvable;
/* */ import org.spr... | 31.160377 | 151 | 0.540721 |
9d626ebb7b523602b34cd0d49e5c963a9fc70ce0 | 627 | package com.secbro2.pattern;
/**
* @author sec
* @version 1.0
* @date 2021/6/23
**/
public class Client {
public static void main(String[] args) {
// 普通配置电脑的组装
ComputerBuilder builder = new CommonComputerBuilder();
Director director = new Director(builder);
Computer product = ... | 20.9 | 62 | 0.577352 |
a3b40ee485c1c0bc82a34ab6179f6c9fde93928d | 1,817 | package com.tmall.web;
import com.tmall.pojo.Product;
import com.tmall.service.CategoryService;
import com.tmall.service.ProductService;
import com.tmall.service.ProductImageService;
import com.tmall.util.Page4Navigator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind... | 33.648148 | 209 | 0.714364 |
e1b887638739e96e8855e3bdbd5a5cbafadce7bf | 895 | package com.jn.langx.test.util.enums;
import com.jn.langx.DelegateHolder;
import com.jn.langx.util.enums.base.CommonEnum;
import com.jn.langx.util.enums.base.EnumDelegate;
public enum Period implements DelegateHolder<EnumDelegate>, CommonEnum {
MINUTES(0, "minutes", "minutes"),
HOURS(1, "hours", "hours"),
... | 24.189189 | 72 | 0.661453 |
25bde18901256528b43cc99c7cb58692ebbd8f19 | 6,180 | package com.google.javascript.clutz;
import static java.nio.charset.StandardCharsets.UTF_8;
import com.google.common.collect.ImmutableList;
import com.google.common.io.Files;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.io.File;
import java.io.FileNotFoundException;
import java.i... | 35.113636 | 98 | 0.646278 |
63dcbb46754497251692b843988b1eb1e87ec5d7 | 824 | package me.itzg.helpers.get;
import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.HttpException;
import org.apache.hc.core5.http.io.HttpClientResponseHandler;
import org.apache.hc.core5.http.io.entity.EntityUtils;
@Slf4j
cla... | 29.428571 | 96 | 0.809466 |
62e23745128b7ca6c40543bf1a9a8a9133301223 | 398 | package e;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support
.ClassPathXmlApplicationContext;
public class Client {
public static void main(String[] args) {
try (ConfigurableApplicationContext context =
... | 28.428571 | 73 | 0.665829 |
c589202e4ca56568f14c653d64c4eec0ee69ca84 | 4,559 | package pohkahkong.game.rainbow.bean.animation;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
/**
*
* @author Poh Kah Kong
*
*/
public class PropertySpriteAnimation extends SpriteAnimation ... | 25.187845 | 108 | 0.670322 |
ec22876a10291d74eafa43b22525af238eae34bc | 3,571 | package p320f.p321a.p327d.p336f;
import io.reactivex.internal.queue.MpscLinkedQueue.LinkedQueueNode;
import java.util.concurrent.atomic.AtomicReference;
import p320f.p321a.p327d.p330c.C13273h;
/* renamed from: f.a.d.f.a */
/* compiled from: MpscLinkedQueue */
public final class C13703a<T> implements C13273h<T> {
... | 25.876812 | 80 | 0.536264 |
58fcb1dd4b91228337820875342006398550f0ae | 396 | package com.oldlie.exam.repository;
import java.util.List;
import com.oldlie.exam.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
public interface StudentRepository extends JpaRepository<Student, Long> {
List<Student> findAllByExamNumber(String examNumber);
Student findOneByN... | 26.4 | 95 | 0.815657 |
1e85463520c3b0d5c7236dc8c70364e1e7fc014e | 1,050 | package com.example.lithography.service;
import com.example.lithography.adapter.PinglunBean;
import com.example.lithography.bean.Dabean;
import com.example.lithography.bean.ReDianBean;
import com.example.lithography.bean.TanBean;
import com.example.lithography.bean.XiangqingBean;
import java.util.Map;
import io.reac... | 25.609756 | 73 | 0.731429 |
7f0e3f1fbebfe4909e8d1b79a27fe174107c3588 | 465 | package com.effective;
public enum EnumTest {
/* MON, TUE, WED, THU, FRI, SAT, SUN;*/
MON(1), TUE(2), WED(3), THU(4), FRI(5), SAT(6), SUN(7);
private int value;
private EnumTest(int value){
this.value = value;
}
public int getValue() {
return value;
}
public static void main(String[] args) {
/*f... | 17.884615 | 56 | 0.615054 |
14d410146dbc7018c22c4625fece4b1653da80e0 | 1,331 | /*
* Copyright 2016-2020 The OpenTracing 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 applicable law or ... | 32.463415 | 118 | 0.731029 |
2dcd3946249ed0227335e195257d1b855b1849ae | 1,177 | package com.td.common.bean;
public class Body {
private final static String SUCCESS_CODE = "200";
private final static String ERROR_CODE = "300";
private final static String CLOSE_CURRENT = "closeCurrent";
private String statusCode;
private String message;
public String getStatusCode() {
return statusCode;... | 19.295082 | 92 | 0.64486 |
57b92ddf357607791d8dc8fd3c29b02f054fe7c1 | 1,194 | package sqlancer.postgres.ast;
import sqlancer.Randomly;
import sqlancer.postgres.PostgresSchema.PostgresDataType;
public class PostgresJoin implements PostgresExpression {
public enum PostgresJoinType {
INNER, LEFT, RIGHT, FULL, CROSS;
public static PostgresJoinType getRandom() {
re... | 23.88 | 112 | 0.693467 |
9e3449388bb39ddbfbca0faac4e86ffb3f0a6153 | 3,067 | /**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, eit... | 34.460674 | 86 | 0.676883 |
2691e0d502e00c4982c06b615ef6abd2cb48e1ce | 3,339 | package com.thegongoliers.output.drivetrain.swerve;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.kinematics.ChassisSpeeds;
import edu.wpi.first.math.kinematics.SwerveDriveKinematics;
import edu.wpi.first.math.kinematics.SwerveDriveOdometry;
import ... | 35.521277 | 167 | 0.685834 |
c03cc654f31db8da1df4a3a9ed8d51ef3dc4c92e | 17,408 | package com.armadialogcreator.gui.main.stringtable;
import com.armadialogcreator.ArmaDialogCreator;
import com.armadialogcreator.HelpUrls;
import com.armadialogcreator.core.stringtable.*;
import com.armadialogcreator.gui.GenericResponseFooter;
import com.armadialogcreator.gui.SimpleResponseDialog;
import com.armadialo... | 35.096774 | 187 | 0.74213 |
0ad016ea9471d69550d69f705ad37bbe8a50bdd2 | 876 | // Copyright 2015 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.
package org.chromium.chrome.browser.media.ui;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/... | 33.692308 | 79 | 0.767123 |
2269985cd7d058abfea9a7166e93bd606efb96e0 | 509 | package ScreenShotAndWaits;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
public class PageWait {
public static void main(String[] args) {
WebDriver driver = new Firefo... | 20.36 | 69 | 0.70334 |
54eb7eb352a1bcefb7291e47f974fe8544d44eb0 | 890 | class Solution {
public String minWindow(String S, String T) {
final int m = T.length();
final int n = S.length();
// dp[i][j] := start index (1-indexed) of
// the minimum window of T[0..i] and S[0..j)
int[][] dp = new int[m + 1][n + 1];
// fill in placeholder values
for (int j = 0; j <= ... | 27.8125 | 93 | 0.469663 |
44d4479779cb5744d3daa9502495517f6748b390 | 2,483 | package com.imooc.miaoshaproject.service.impl;
import com.imooc.miaoshaproject.dao.PromoDOMapper;
import com.imooc.miaoshaproject.dataobject.PromoDO;
import com.imooc.miaoshaproject.service.ItemService;
import com.imooc.miaoshaproject.service.PromoService;
import com.imooc.miaoshaproject.service.model.ItemModel;
impor... | 31.833333 | 103 | 0.69271 |
4378426a02dccee5e02cdb95f551b3abe0f0a78a | 632 | /*
* 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 commandPattern;
/**
*
* @author Steve
*/
public class CommandGarageDoorOpen implements Command {
private ... | 20.387097 | 80 | 0.623418 |
bee78b4c0db51ae54039cbc0ecb49fa9234f6fa7 | 4,732 | /**
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* MIT License
*
* 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
*... | 43.018182 | 118 | 0.680051 |
3077f8b7009a0637c64c09f35725390ba35473df | 3,410 | package com.jspxcms.core.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import ... | 22.142857 | 78 | 0.68651 |
f58233656b45ed6ed2f1e795cfe4f52c822053d6 | 72 | /**
*
* Classe Macaco
*/
public class Macaco extends Animal {
}
| 9 | 36 | 0.583333 |
ac89dc7900d01a588cf2f51a20517fea3161b69d | 2,728 | package com.gao.yingjian.mobiledevelopmentassignmentone.Views;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import androidx.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fr... | 35.894737 | 188 | 0.743768 |
efc3016987ac0591d5a3d39f45d2f594f7806619 | 10,281 | package org.stellasql.stella.gui.statement;
import java.sql.Types;
import java.util.Iterator;
import org.dom4j.DocumentException;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Point;
import org.eclipse.sw... | 29.458453 | 109 | 0.645171 |
bf848b2209b6dde4c08bf2601a2d41f4d0782756 | 1,695 | package io.github.oldborn.atspot.spotifywebapi.nexttrack;
import com.intellij.openapi.components.ServiceManager;
import io.github.oldborn.atspot.spotifywebapi.SptfyGetAccessTokenService;
import io.github.oldborn.atspot.spotifywebapi.SptfyRefreshAccessTokenService;
import io.github.oldborn.atspot.util.UnsafeOkHttpServi... | 39.418605 | 116 | 0.722714 |
2ae8036094da7d0c0a44fae6f50edeb35ea79187 | 3,037 | /*
* 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.arpablue.arpaimage.layers;
import com.arpablue.arpaimage.core.IDraw;
import java.awt.AlphaComposite;
import java.awt.Color... | 25.308333 | 101 | 0.587422 |
c1c962fc2e164e2956b81580002858d243e9fa94 | 2,179 | package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.model.Sbz003cRes;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.... | 26.253012 | 145 | 0.682423 |
b8a3f808bfd2410092cb4db36fb65f77a9c71554 | 3,165 | package com.example.graph_editor.draw;
import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.widget.Toast;
import androidx.activity.result.ActivityResult;
import com.example.graph_editor.model.graph_storage.GraphScanner;
import com.example.graph_editor.model.graph_storag... | 42.2 | 104 | 0.666351 |
6bc5d29ac3023b94c0d4e1e071da215577e9fad6 | 260 | class Book extends MediaItem
{ protected String author;
public Book(String mediaType,String itemTitle,String itemReference,double itemPrice,String author)
{ super(mediaType,itemTitle,itemReference,itemPrice);
this.author=author;
}
} | 32.5 | 102 | 0.742308 |
c7cd291a11e81a6e007168256629c9e672c0d11d | 36,344 | /*
* This file was automatically generated by EvoSuite
* Fri Aug 24 16:08:45 GMT 2018
*/
package net.sourceforge.squirrel_sql.plugins.dbcopy.util;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
im... | 41.583524 | 426 | 0.684405 |
eceae56639b1e4b1fe998d93951133a3cfa1ce08 | 497 | /*
https://leetcode.com/problems/boats-to-save-people/
881. Boats to Save People
*/
class Solution {
public int numRescueBoats(int[] people, int limit) {
Arrays.sort(people);
int i =0;
int j = people.length-1;
int result = 0;
while(i<=j){
if(people[i]+pe... | 20.708333 | 56 | 0.432596 |
92e89deefbe6785ca8e583c3365448fdae8af000 | 3,108 | // automatically generated by the FlatBuffers compiler, do not modify
package Neodroid.FBS.Reaction;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class FConfiguration extends Table {
public static FConfiguration getRootAsFConfi... | 47.815385 | 203 | 0.723616 |
5214be12df67907570b5123c218c203c586c716e | 16,091 | /*
* Copyright © 2015 - 2021 ReSys (info@dialob.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 required by applicab... | 26.818333 | 204 | 0.677087 |
a32a8df08ec3e2ef23e5a4505679d91e37d187b9 | 1,717 | package org.softuni.residentevil.utils;
import org.softuni.residentevil.domain.entities.Role;
import org.softuni.residentevil.repositories.RoleRepository;
import org.softuni.residentevil.repositories.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Co... | 31.796296 | 85 | 0.677927 |
0c9f9d55f0fdfb09d19c68166c9f2d43f4b0933d | 416 | package org.linuxlsx.algo.rete;
/**
* @author linuxlsx
* @date 2019-04-26
*/
public class EqualEvalNode implements EvalNode{
public String attr;
public String value;
public EqualEvalNode() {
}
public EqualEvalNode(String attr, String value) {
this.attr = attr;
this.value = val... | 16.64 | 53 | 0.625 |
eda42dcd495a15bfaf7c7dbd5ccff06a3444fe78 | 1,022 | package com.github.wautsns.project.per1024.auth.business.service;
import java.math.BigInteger;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.stereotype.Service;
import com.github.wautsns.project.per1024.auth.business.repository.mapper.UserMn2nRole... | 27.621622 | 97 | 0.746575 |
63f66c338e7348d7d8cbe3e6a2c565860c63582f | 10,793 | package me.dinnerbeef.compressium;
import net.minecraft.block.*;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.registries.ForgeRegistries;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
/**
* @author LatvianModder / DinnerBeef (Just Coped And Pasted So... | 46.321888 | 119 | 0.625776 |
6569e88dca87cea8a2a2cf1fd4c51218901f24a7 | 3,190 | /**
* Copyright 2011 The Open Source Research Group,
* University of Erlangen-Nürnberg
*
* 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/lic... | 20.986842 | 77 | 0.577116 |
ede279590a5fa68c6052d2f3f2d55dc2cbb9e948 | 4,312 | /*
* #%L
* Hootsuite Integration
* %%
* Copyright 2020 Adobe. All rights reserved.
* %%
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache... | 22.112821 | 89 | 0.653293 |
a8eff415a1413175a7ed51261ade226eec939ba4 | 3,476 | package nyla.solutions.core.patterns.observer;
import nyla.solutions.core.exception.RequiredException;
import nyla.solutions.core.security.user.data.UserProfile;
import nyla.solutions.core.util.Text;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assert... | 24.307692 | 82 | 0.634638 |
1e314cde30698eb9851b31d9f63368664fd04aa2 | 120,161 | package com.lilithsthrone.game.sex.sexActions.baseActions;
import com.lilithsthrone.game.character.GameCharacter;
import com.lilithsthrone.game.character.attributes.CorruptionLevel;
import com.lilithsthrone.game.character.body.valueEnums.BreastShape;
import com.lilithsthrone.game.character.body.valueEnums.CupSize;
imp... | 62.162959 | 230 | 0.684041 |
66234893ded76978eb8689cb1860685f877a5559 | 2,499 | package com.github.draylar.beebetter.block;
import com.github.draylar.beebetter.entity.ApiaryBlockEntity;
import com.github.draylar.beebetter.entity.ModdedBeehiveBlockEntity;
import com.github.draylar.beebetter.registry.BeeEntities;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.mi... | 33.77027 | 139 | 0.751501 |
b2567f0ff67c19f6f5957d12660efcd9f03e3f1d | 3,520 |
package org.sorus.oneseventen.util.input;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import org.sorus.client.version.input.Button;
import org.sorus.client.version.input.Key;
public class InputMap {
private static final BiMap<Integer, Key> KEY_MAP = HashBiMap.create();... | 30.08547 | 80 | 0.582386 |
35f380a12fa86adf9f7d810bc00f779f60f8875a | 856 | package com.github.games647.scoreboardstats.pvpstats;
import com.avaje.ebeaninternal.server.util.ClassPathReader;
import org.apache.commons.lang.ArrayUtils;
/**
* This is workaround to a bug in Java 6. eBean 2.7.3 has a bug catching up
* the wrong exception while scanning through the ebean.properties. Spigot
* fi... | 34.24 | 81 | 0.748832 |
60f9923add3feb41d6e1486031728e06358b7c3e | 272 | package uk.gov.dft.bluebadge.webapp.citizen.client.applicationmanagement.model;
/** Gets or Sets EligibilityCodeField */
public enum EligibilityCodeField {
PIP,
DLA,
AFRFCS,
WPMS,
BLIND,
WALKD,
ARMS,
CHILDBULK,
CHILDVEHIC,
TERMILL,
NONE,
HIDDEN
}
| 15.111111 | 79 | 0.716912 |
ff7c8c5abeb0cba5b00489768e38585486d0f021 | 1,676 | package com.github.nenomm.groovyboot.builder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public class FileFetcher {
private ... | 28.896552 | 145 | 0.647971 |
9da9a3e114b9e3ee41217aca7446ebe8b01cbd4b | 4,411 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.interestrate.capletstripping;
import com.opengamma.analytics.financial.model.interestrate.curve.ForwardCurve;
import com.opengamma.analyti... | 65.835821 | 203 | 0.815461 |
8d762b05372da35572f024bad77b6cabb00cd6b7 | 2,615 | package net.cattaka.hungrycatball.ui;
import net.cattaka.hungrycatball.HungryCatBallConstants;
import net.cattaka.hungrycatball.core.SceneBundle;
import net.cattaka.hungrycatball.gl.CtkGL;
import net.cattaka.hungrycatball.stage.StageInfo;
import net.cattaka.hungrycatball.utils.DrawingUtil.Align;
import net.cattaka.hun... | 40.859375 | 147 | 0.676864 |
b0f3544821d436969c145a866d54b148952b216e | 340 | package cn.shishuihao.thirdparty.api.pay.domain.merchant.business_info;
import lombok.Data;
import lombok.experimental.SuperBuilder;
/**
* 经营场景.
* 一种经营场景只能一项
*
* @author shishuihao
* @version 1.0.0
*/
@SuperBuilder
@Data
public class SalesScenes {
/**
* 经营场景类型.
*/
private final SalesScenesType... | 16.190476 | 71 | 0.705882 |
14d2b281bcf7636ad32cf632c1ab22f978d43d11 | 3,757 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.CRBranchLocationManagementPlanRetrieveInputModelBranchLocationManagementPlanInstan... | 45.26506 | 214 | 0.87144 |
d753bb1daba3d82c9a9b317244c1ddb15a6258e6 | 3,130 | /*
* Copyright (c) 2016-2017, Salesforce.com, Inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see the LICENSE.txt file in repo root
* or https://opensource.org/licenses/BSD-3-Clause
*/
package com.salesforce.pyplyn.util;
import static org.hamcrest.MatcherAs... | 38.170732 | 103 | 0.72524 |
e1448fa265410d2bd1959550cacee84a81218db3 | 2,836 | /*
* Copyright 2012-2014 Dan Cioca
*
* 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 ag... | 34.585366 | 85 | 0.601199 |
c67162438efb876e35d71ddd8988de401067b0ba | 808 | package com.shoukailiang.community.util.base;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* 请求参数基础类、带... | 23.085714 | 73 | 0.709158 |
0caa188183c363d039c65d549d9742f39dbe5936 | 7,445 | /**
* Copyright 2009 Humboldt-Universität zu Berlin.
*
* 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... | 27.072727 | 117 | 0.654936 |
b0b776fec289f54b5ebf7585860a70447ae96b58 | 3,125 | /*
* Copyright 2002-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... | 37.650602 | 90 | 0.7632 |
22fe3f29860c6a50171c41132ebdc4a5eacccd5a | 749 | package net.openid.conformance.condition.client;
import net.openid.conformance.condition.PostEnvironment;
import net.openid.conformance.condition.PreEnvironment;
import net.openid.conformance.testmodule.Environment;
public class BuildRequestObjectByValueRedirectToAuthorizationEndpoint extends AbstractBuildReque... | 39.421053 | 138 | 0.813084 |
641e1b78e5b2d0825869016daaef0350be817acb | 4,338 | package com.z.controller;
import com.z.pojo.Goods;
import com.z.service.GoodsService;
import com.z.service.impl.GoodsServiceImpl;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fil... | 36.762712 | 115 | 0.621946 |
d66e07e33ada7157630e315d27e8a766c3ca82a7 | 3,584 | package com.bina.varsim.types;
import java.util.logging.Logger;
/**
* Used to represent the chromosome name, able to useful things like determine sex
* <p/>
* Created by johnmu on 1/27/15.
*/
public class ChrString implements Comparable<ChrString>{
private final static Logger log = Logger.getLogger(ChrString.... | 27.782946 | 100 | 0.567801 |
ad7f5fe6f983d91b41923670eee212703e27cd99 | 1,802 | package Algorithmique.hexGame.view;
import Algorithmique.hexGame.model.Cell;
import Algorithmique.hexGame.model.HexModel;
import javax.swing.*;
import java.awt.*;
/*................................................................................................................................
. Copyright (c)
.
. ... | 27.723077 | 130 | 0.508879 |
063b918a9dcb17810c6b8aa3886a36b35b2e087b | 1,799 | package filters;
// cc InclusiveStopFilterExample Example using a filter to include a stop row
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Connection;
import ... | 35.27451 | 77 | 0.75542 |
fb4e092b3be8a6c7a4d9567b0d0eb9d56cbe7a3d | 1,045 | package com.fh.service.news;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.util.PageData;
@Service("newsService")
public class NewsService{
@Resource(name = "daoSupport")
private DaoS... | 19 | 75 | 0.722488 |
36c6961030b601882935db928b008c0a23620669 | 380 | package dkrylov.petprojects.devschool.repository;
import dkrylov.petprojects.devschool.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* Student repository
*/
public interface StudentRepository extends JpaRepos... | 31.666667 | 108 | 0.839474 |
cc1a76e85eeef831c66cbfdd35223314dbd595a0 | 393 | package com.eis.broker.repository;
import com.eis.broker.entity.QuantityLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
public interface QuantityLogRepository extends JpaRepository<QuantityLog, Integer> {
... | 35.727273 | 84 | 0.834606 |
976d54a0e36b6ad08056675b720f63afeb02e808 | 3,413 | package dao.custom.impl;
import dao.CrudUtil;
import dao.custom.LecturerDAO;
import entity.Lecturer;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class LecturerDAOImpl implements LecturerDAO {
@Override
public String getLastLecturerId() ... | 32.504762 | 179 | 0.588046 |
be7284a4db3bd8f62bbf278568137090785194c6 | 1,393 | package com.wjiec.springaio.webflux.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.security.core.Granted... | 22.836066 | 75 | 0.713568 |
2b321f302e09b4ef6524681e45b5746afc30e360 | 430 | package org.googlecode.userapi;
import java.util.List;
/**
* Created by Ildar Karimov
* Date: Aug 26, 2009
*/
public class ListWithTotal<T> {
private List<T> list;
private long count;
public ListWithTotal(List<T> list, long count) {
this.list = list;
this.count = count;
}
publ... | 16.538462 | 52 | 0.595349 |
ebd35af9375cac116fe47f29ac259239896344aa | 2,542 | package com.javaee.hotel.service;
import com.sun.xml.messaging.saaj.packaging.mime.internet.MimeUtility;
import org.mybatis.logging.Logger;
import org.mybatis.logging.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.spri... | 36.314286 | 97 | 0.670338 |
24df76e0fbfd33290e7a82cee8e1c7777fa1f924 | 3,578 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 33.439252 | 101 | 0.64114 |
ceb0925d0a0acb2a041a796d371f7117e1b9eb94 | 1,226 | package br.com.alura.teste.util;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import br.com.alura.modelo.Conta;
import br.com.alura.modelo.ContaCorrente;
import br.com.alura.modelo.ContaPoupanca;
public class TesteComparatorConta {
public static void main(String[] args) {
Conta ... | 20.098361 | 69 | 0.681077 |
7a5b556e1be9888af18759de9ef15660dff89c7e | 2,022 | package me.idarkyy.nanocore.commands;
import me.idarkyy.nanocore.constructors.ActionPlayer;
import me.idarkyy.nanocore.managers.ConfigurationManager;
import me.idarkyy.nanocore.managers.PrivateMessageManager;
import net.minecraft.util.org.apache.commons.lang3.StringUtils;
import org.bukkit.OfflinePlayer;
import org.bu... | 44.933333 | 110 | 0.62364 |
6394cae6854bbb60fc37f9ebbe3a6769a219d7ad | 12,202 | package net.minecraft.world.level.block;
import com.google.common.base.MoreObjects;
import java.util.Random;
import javax.annotation.Nullable;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.sounds.SoundEvents;
import net.mine... | 44.860294 | 222 | 0.695296 |
f0b33b4bf8309e52cd561bea761dfe5b2c6f0b79 | 722 | package codewars;
import challenges.BinarySearch;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.junit.runners.JUnit4;
public class InsaneColouredTrianglesTest {
@Test
public void examples() {
assertEquals('B', InsaneColouredTriangles.triangle("B... | 32.818182 | 84 | 0.67313 |
7fe3fbfe13ed357fe760157cc46f4c86354c0380 | 4,735 | // Copyright 2007-2021 Information & Computational Sciences, JHI. All rights
// reserved. Use is subject to the accompanying licence terms.
package jhi.flapjack.gui.visualization;
import java.awt.*;
import java.text.*;
import jhi.flapjack.data.*;
import jhi.flapjack.gui.*;
import jhi.flapjack.gui.table.*;
... | 28.184524 | 157 | 0.655544 |
5fd458eaf2cdcec5a37ed858a0f9ec5e164dd916 | 384 | package assignments;
public class assign4 {
public static void main(String[] args) {
System.out.println("Test Data");
int a = -5+8*6;
System.out.println("a. " +a);
int b = (55+9) %9;
System.out.println("b. " + b);
int c = 20+ -3*5/8;
System.out.println("c. " + c);
int ... | 16.695652 | 42 | 0.513021 |
9588258bc31b246bfaf61e959c369b9489cd873f | 953 | package JavaSyntaxExercises;
import java.util.Arrays;
import java.util.Scanner;
public class MaxSequenceOfIncreasingElements {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] numbers = Arrays.stream(scanner.nextLine()
.split("\\s+"))
... | 26.472222 | 56 | 0.498426 |
4613c47a8af0e43b12feca95c50cb1afc3b88b88 | 14,187 | /*
* Copyright 2017-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... | 36.849351 | 147 | 0.779728 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.