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 |
|---|---|---|---|---|---|
ed0f7ddd042f72d37ea081aa1bd4494528d6201c | 23,052 | package com.sonal.meettheteam.Utils;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.graphi... | 33.312139 | 155 | 0.570536 |
936fbb15a5f33474462e86e1991c2a5d7b05c80d | 6,619 | /**
*
*/
package soars.application.visualshell.executor.simulator;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import soars.application.visualshell.common.file.ScriptFile;
import soars.application.visualshell.executor.comm... | 43.546053 | 242 | 0.699804 |
12644502caad7174f335653026176bcfac1afb95 | 853 | /**
* File: IReferenceContainer.java
* Author: Thomas Calmant
* Date: 10 janv. 2012
*/
package org.psem2m.sca.converter.model;
import org.psem2m.sca.converter.utils.QName;
/**
* Represents a SCA element which can contain references and services
*
* @author Thomas Calmant
*/
public interface IReferenceCon... | 24.371429 | 75 | 0.654162 |
593654ee26130a60c33c7e372a562d69d8f66fc4 | 1,725 | package net.estinet.gFeatures.Feature.EstiBans.Commands;
import com.velocitypowered.api.command.CommandSource;
import net.estinet.gFeatures.EstiCommand;
import net.estinet.gFeatures.gFeature;
import net.estinet.gFeatures.Feature.EstiBans.EstiBans;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.t... | 33.823529 | 135 | 0.747246 |
a0412df80970c588793cc5e5f80e5e6be713049c | 983 | /**
*
*/
package org.frameworkset.security.session.impl;
/**
* @author yinbp
*
* @Date:2016-12-22 12:49:29
*/
public class SessionID {
private String sessionId;
private String signSessionId;
/**
*
*/
public SessionID() {
// TODO Auto-generated constructor stub
}
public String getSessionId() {
ret... | 18.54717 | 65 | 0.692777 |
223acf80f37db50088b2746a4a58c9cacdd13360 | 5,317 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 59.077778 | 153 | 0.750235 |
8ab405fbde720c9a0864edc7ce13c14350637a71 | 152,852 | package haxe.at.dotpoint.spatial.transform;
import haxe.root.*;
@SuppressWarnings(value={"rawtypes", "unchecked"})
public class Transform<TEntity> extends haxe.at.dotpoint.core.entity.Component<TEntity> implements haxe.at.dotpoint.spatial.transform.ITransform
{
public Transform(haxe.lang.EmptyObject empty)
{
//li... | 58.541555 | 361 | 0.681522 |
bb74826400eec35fc75ca6b30c0127cf9928c904 | 2,835 | // This file is auto-generated, don't edit it. Thanks.
package com.alipay.easysdk.payment.common.models;
import com.aliyun.tea.*;
public class AlipayTradeFastpayRefundQueryResponse extends TeaModel {
@NameInMap("http_body")
@Validation(required = true)
public String httpBody;
@NameInMap("code")
@... | 27 | 110 | 0.717108 |
af9c45314ef7f50f7a9948dde7ef10249c90c8d3 | 4,184 | package io.github.novopashin;
import io.github.novopashin.annotations.XmlAttribute;
import io.github.novopashin.annotations.XmlObject;
import io.github.novopashin.annotations.XmlTag;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.io.OutputFormat;
import org.dom4j... | 36.382609 | 96 | 0.576004 |
9fa0f9043e100fcfb7895ea935aff03359b43980 | 2,154 | package com.lovecws.mumu.core.utils;
import org.apache.commons.lang3.StringUtils;
public class IPAddressUtil {
/**
* 将ip地址转换为二进制字符串
* @param ip 255.255.255.255
* @return
*/
public static final String toBinaryString(String ip) {
if (ip == null || "".equals(ip)) {
return null;
}
String[] ipAddress =... | 25.046512 | 77 | 0.688022 |
298faec58084355c2b27a7ef8cd867bf43632c24 | 4,003 | package com.netease.nim.avchatkit.teamavchat;
import android.content.Context;
import android.util.Pair;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.LinearLayout;
import com.netease.nim.avchatkit.AVChatKit;
import com.netease.nim.avchatkit.R;
import ... | 37.411215 | 117 | 0.636772 |
6e2130842f1cee217f00ef329c09d742f190969d | 10,149 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 63.830189 | 156 | 0.751798 |
ad6d893323763ae83617fe3ee352fdd7babe05e2 | 12,873 | /*
* Copyright 2015 John Persano
* 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... | 32.589873 | 131 | 0.676299 |
6f519be8e51cc6930397c2f17947df33cf971e1c | 381 | package com.mycompany.myapp.repository;
import com.mycompany.myapp.domain.ShoppingCart;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the ShoppingCart entity.
*/
@SuppressWarnings("unused")
@Repository
public interface Shopping... | 25.4 | 83 | 0.811024 |
54d54ea174afb29060406a96dd45d62272c1a301 | 39,123 | /*
* #%L
* de.metas.cucumber
* %%
* Copyright (C) 2022 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later v... | 48.003681 | 205 | 0.819135 |
68d6c6b69d7f17559125494c295a66fa418005b6 | 562 | package com.justandreyb.liquid_recipes.entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import org.hibernate.annotations.GenericGenerator;
import lombok.Data;
@MappedSuperclass
@Data
public abstract class BaseEn... | 21.615385 | 55 | 0.736655 |
80c7efee01b355fe9f86090d00a0099f85e92d74 | 4,572 | package com.example.libo.myapplication.Model;
import android.support.annotation.NonNull;
import android.util.Log;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseData... | 21.265116 | 121 | 0.575459 |
26835370c6e244fc761f76d359b6520e6128102f | 11,438 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 46.877049 | 139 | 0.649414 |
61e49ffe88e7748b52d24f10d87509891cdd764f | 4,372 | /*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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 req... | 35.836066 | 138 | 0.678408 |
081927423ece385c811ac240f9e3267c0cbcad18 | 6,362 | package org.apache.nifi.marklogic.processor;
import com.marklogic.client.document.JSONDocumentManager;
import com.marklogic.client.io.DocumentMetadataHandle;
import com.marklogic.client.io.StringHandle;
import com.marklogic.client.io.DocumentMetadataHandle.DocumentCollections;
import com.marklogic.junit5.spring.Abstra... | 45.769784 | 151 | 0.782458 |
de922fa6f9d42d5b7de2055e81a9482ed92a0117 | 10,841 | package tools;
import static utils.FindFiles.delete;
import static utils.FindFiles.findFiles;
import static utils.FindFiles.getFilter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.Input... | 30.366947 | 81 | 0.591182 |
f70b9ae9393fb8c7fcaedcc2aa2a23e4511b678a | 16,045 | package org.wikipedia.settings.languages;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.A... | 38.944175 | 140 | 0.652914 |
093efc2ab96eb8170e0ddbe3882d9162be8a8956 | 973 | package problems.easy;
/**
* Created by sherxon on 6/3/17.
*/
public class CanPlaceFlowers {
public boolean canPlaceFlowers(int[] a, int n) {
if (n == 0) {
return true;
}
//if(a.length/2 < n)return false;
if (a.length == 0) {
return false;
} else if (a.length == 1) {
if (a[0]... | 20.702128 | 65 | 0.35149 |
7a72cdbdd6cfd5785f0152afee98911e2d2de86c | 6,019 | /*
* Copyright 2018-2021 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... | 36.92638 | 104 | 0.641469 |
b673d68d220d704e4f9d4e3c5bd5486954615e2a | 1,666 | package com.netflix.spinnaker.orca.locks;
import com.netflix.spinnaker.kork.dynamicconfig.DynamicConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@Config... | 30.851852 | 111 | 0.790516 |
865b46f7a8beac5ae148cab14d0b4a0a543d333b | 31,301 | package common;
import fiji.InspectJar;
import ij.plugin.PlugIn;
import ij.IJ;
import ij.gui.GenericDialog;
import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.KeyStroke;
im... | 30.448444 | 129 | 0.658541 |
aa1fdef1e90a4cda4647d40d5d585d497e7d15f3 | 388 | package jsettlers.graphics.image.reader.shadowmap;
public class ShadowMapping1 implements ShadowMapping {
@Override
public int getShadowIndex(int settlerIndex) {
if(settlerIndex == 26) {
return -1;
} else if(settlerIndex > 26) {
settlerIndex--;
}
if(settlerIndex == 32) {
return -1;
} else if(sett... | 19.4 | 54 | 0.685567 |
da075e68fcd7384993d5a5c1c949e38eeaa72327 | 1,721 | package club.qqtim.util.lambda;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* @title: GenerateUtil
* @Author lijie78
* @Date: 2021/1/17
* @Version 1.0.0
*/
public final c... | 31.87037 | 143 | 0.529343 |
171af55878377c31e9f4faa7d270f55e93bc6ee5 | 1,675 | package engine.physics;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
* class for force, extends vector, super for all forces
*
* @author Ben
*
*/
public abstract class Force extends Vector implements Iterable<String> {
protected double myForceValue;
p... | 21.474359 | 77 | 0.703881 |
765cb267cefb806b6578065ec03541adac58d4b4 | 9,968 | /*
* $Id$
* $URL$
*
* ====================================================================
* Ikasan Enterprise Integration Platform
*
* Distributed under the Modified BSD License.
* Copyright notice: The copyright for this software and a full listing
* of individual contributors are as shown in the packaged... | 38.045802 | 143 | 0.680778 |
4d365931ce39022a8d19bc481cd40016bc98b081 | 355 | package org.alfasoftware.astra.core.refactoring.methods.methodInvocation;
import java.util.Optional;
import org.alfasoftware.astra.exampleTypes.A;
@SuppressWarnings("unused")
public class InvocationChainedWrappedExample {
Optional<A> wrappedA = Optional.of(new A());
private void a() {
wrappedA.... | 20.882353 | 74 | 0.71831 |
e4e339eed3375a8752f150658c281dfd4847d1c6 | 931 | /*
* 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 accounting;
import javax.swing.JFrame;
/**
*
* @author dkdks,harsh,abhishek
*/
public class Accounting ext... | 25.861111 | 80 | 0.632653 |
9240cc3fe16a911467685d278b0f8ba6bc816206 | 476 | package global.module;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.HashMap;
public class Test
{
public static void main(String[] args) throws JsonProcessingException
{
HashMap<String, String> map = new HashMap<>();
map.put("key... | 23.8 | 70 | 0.745798 |
8d7c5ce41547e14e2e0ae43941e9792e33f1b592 | 1,980 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 55 | 148 | 0.840909 |
a1c9fdbb7edcbf3078417ca5f8434fd992c068b6 | 16,545 | package com.netopyr.wurmloch.vectorclock;
import com.netopyr.wurmloch.vectorclock.VectorClock;
import org.testng.annotations.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
... | 47.956522 | 79 | 0.709519 |
3481d8d7e3ec4ef851d39ed9e09f8e8322d20ff0 | 351 | import java.io.*;
public class Cricket
{
class batsman
{
int brun;
int totalrun=0;
void getData(int x)
{
brun=x;
totalrun=totalrun + brun;
System.out.println("the runs scored by this team in the innings is:: " +totalrun );
}
}
class bowler
{}
public static... | 14.625 | 88 | 0.549858 |
1e48943c7e6ef44e24c80b889c6e0f68df1d6b4d | 186 | package org.apache.avro.perf.test.generic.jmh_generated;
public class GenericWithOutOfOrderTest_TestStateDecode_jmhType extends GenericWithOutOfOrderTest_TestStateDecode_jmhType_B3 {
}
| 37.2 | 125 | 0.897849 |
6a0944f70767a6eaab86d147881dec20c0d9503d | 1,936 | /*
* Copyright 2020-2021 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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... | 31.225806 | 104 | 0.76343 |
6ae838c15bd90d0f5ae8c71abd6b6e2b2db6550a | 3,888 | package com.github.athi.athifx.injector.injection;
import com.github.athi.athifx.injector.log.Log;
import com.google.inject.Binder;
import com.google.inject.Injector;
import org.reflections.Reflections;
import javax.enterprise.inject.Instance;
import javax.enterprise.util.TypeLiteral;
import javax.ws.rs.NotSupportedE... | 33.230769 | 102 | 0.664095 |
40712f04b7d1796e425646790aa23f695d86b407 | 5,864 | package com.oilfoot.senshi.items.throwables.shuriken;
import com.oilfoot.senshi.Senshi;
import com.oilfoot.senshi.registry.ModEntities;
import com.oilfoot.senshi.registry.ModItems;
import net.minecraft.block.BlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.en... | 38.578947 | 192 | 0.658083 |
7d25c44e0aa005b1f81c5f22a1817bbf7cb3b345 | 4,674 | package frames;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLa... | 23.725888 | 107 | 0.690415 |
2c2f91f63583ad0816604096d4f5a946b765c50c | 421 | package com.evolved.automata.parser.math;
import java.util.*;
public interface Argument
{
public enum ARGUMENT_TYPE
{
SIMPLE_DOUBLE,
BINARY_OPERATOR,
FUNCTION
}
public LinkedList<Argument> evaluate(LinkedList<Argument> evaluationStack);
public Argument evaluateBinary(BinaryOperator operator, Argument... | 23.388889 | 85 | 0.786223 |
b64e022601a753f33a25655ad096017370a1dc56 | 481 | package com.abocode.jfaster.api.system;
import lombok.Data;
/**
* Description:
*
* @author: guanxf
* @date: 2020/9/8
*/
@Data
public class UserDto {
private String id;// 用户名
private String username;// 用户名
private String realName;// 真实姓名
private String password;//用户密码
private String signature... | 20.041667 | 44 | 0.671518 |
46e72f702a10e4bb28e5ab194c1330b997264032 | 1,848 | package ch4.ex2;
import java.util.Arrays;
import java.util.function.Function;
public class Demo07_FilterRectangle {
public static void main(String[] args) {
Rectangle[] rectangles = {
new Rectangle(10, 10, 50, 75),
new Rectangle(30, 40, 30, 45),
new Rectangle(110, 70, ... | 23.692308 | 64 | 0.521104 |
56c3a8df091c3b91e10fe0373b71b432e04575bd | 2,100 | package com.lambdaschool.oktafoundation.services;
import com.lambdaschool.oktafoundation.models.RoleType;
import com.lambdaschool.oktafoundation.models.User;
import com.lambdaschool.oktafoundation.models.ValidationError;
import java.util.List;
/**
* Class contains helper functions - functions that are needed thro... | 26.582278 | 132 | 0.72381 |
707325a27c7b7de523e159d6795bee1b27e56136 | 2,577 |
package mage.cards.i;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.ExileSpellEffect;
import mage.abilities.effects.common.discard.DiscardHandAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.card... | 30.678571 | 106 | 0.668995 |
b87ae69f221e6903b0a0b53786733e7055a5d40f | 1,574 | package xyz.lius.andy.expression.ast;
import xyz.lius.andy.core.Definition;
import xyz.lius.andy.expression.*;
import xyz.lius.andy.expression.context.ExpressionContext;
import xyz.lius.andy.expression.operator.ColonExpression;
import xyz.lius.andy.expression.operator.DefineExpression;
import java.util.ArrayList;
imp... | 29.148148 | 94 | 0.675985 |
6b7ab58591eb8758390b2e324c26369c520f6854 | 9,679 | package com.tobe.client;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.StatusRuntimeException;
import io.grpc.netty.NettyChannelBuilder;
import org.tensorflow.framework.DataType;
import org.tensorflow.framework.TensorProto;
import org.tensorflow.framework.TensorShapeProto;
import ... | 42.827434 | 292 | 0.599649 |
69575e829e4a28e072e3ad66b334f6cb69a48a9b | 1,092 | package arekkuusu.implom.api.capability.data;
import arekkuusu.implom.api.IPMApi;
import net.minecraft.nbt.NBTBase;
import net.minecraftforge.common.util.INBTSerializable;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.anno... | 21 | 80 | 0.741758 |
99e4ae5b43c8afa893aecce4cea4fb7c2634525d | 342 | package com.tjudream.designpattern.iterator.general;
/**
* 描述:
* <p>
* Created by mengxiansen on 2018-11-30 14:40
*
* @author mengxs@lenovocloud.com
*/
public interface Aggregate {
//是容器必然有元素的增加
public void add(Object object);
//减少元素
public void remove(Object object);
//用迭代器来遍历元素
public I... | 19 | 52 | 0.678363 |
b6d17f6cd86fc1ff0d2a5f5ed017927592184def | 163 | package com.example.WalPP.dto.request;
public class BalanceRequest {
public Integer getUserId() {
return userId;
}
private Integer userId;
}
| 16.3 | 38 | 0.680982 |
7408528406ec3d29c12f59ae55e19bde76155783 | 1,635 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.databox.implementation;
import com.azure.resourcemanager.databox.fluent.models.ValidationResponseInner;
import com.azure.resourc... | 35.543478 | 111 | 0.75474 |
5dc1100591bd0505ff794ffe7fbfe7c47db07a3c | 1,515 | package com.carpool.weixin.templateMessage;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* 模板消息返回结果
*
* @author bjsonghongxu
* @create 2018-02-28 15:27
**/
public class TemplateMsgResult implements Serializable {
/*{
"errcode":0,
"errmsg":"ok",
}*/
... | 20.472973 | 89 | 0.592079 |
cc7ae18d0598c5b9e6748d866cb891e537c61462 | 1,136 | package pl.edu.agh.to2.acesandkings.game;
import com.google.inject.AbstractModule;
import pl.edu.agh.to2.acesandkings.common.model.GamePlayer;
import pl.edu.agh.to2.acesandkings.game.api.*;
import pl.edu.agh.to2.acesandkings.game.apiImpl.*;
import pl.edu.agh.to2.acesandkings.game.model.CardStackRepository;
import pl.e... | 47.333333 | 86 | 0.77993 |
6c9452baa181baf56be218bdf232a4e93bc752f2 | 8,475 | //
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 46.565934 | 118 | 0.543009 |
d01cb8bb6bc6c3b74f65c2cf88d60fa65ba09ece | 2,592 | package objects.definitions;
import java.io.Serializable;
import engine.DeepCloner;
import saveLoad.Definition;
public class GameObjectDef extends Definition implements Serializable {
private static final long serialVersionUID = 4862610181700766923L;
public final String jGameGraphicPath;
public final String orig... | 29.123596 | 102 | 0.706019 |
d1e9b62bb1ec564d684bfca7111cffeb73389b41 | 3,158 | /**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | 28.709091 | 119 | 0.735275 |
5070df200a0db4842fbf210b0263889473fe96b9 | 961 | package com.rakuten.tech.mobile.perf.rewriter.classes;
public class ClassWriter extends org.objectweb.asm.ClassWriter {
private final ClassProvider _classProvider;
public ClassWriter(ClassProvider classProvider, int arg0) {
super(arg0);
_classProvider = classProvider;
}
@Override
protected String ... | 25.972973 | 80 | 0.62539 |
31e0726e87bb6777f9706164d8624fe22b57703b | 1,513 | package br.com.zupacademy.isadora.proposta.cartao;
import br.com.zupacademy.isadora.proposta.proposta.Proposta;
import br.com.zupacademy.isadora.proposta.proposta.PropostaRepository;
import br.com.zupacademy.isadora.proposta.proposta.PropostaStatus;
import org.springframework.scheduling.annotation.Scheduled;
import or... | 35.186047 | 130 | 0.745539 |
6c26e13ed324067118f03b60a33dbe46834da60c | 178 | package com.nulabinc.backlog4j;
import java.util.List;
/**
* The interface for response list.
*
* @author nulab-inc
*/
public interface ResponseList<T> extends List<T> {
}
| 14.833333 | 50 | 0.707865 |
c22bb25ba09ebbbe3e8d9fc1eb89ea80d6b71932 | 1,157 | package io.hefuyi.zhihudaily.api;
import io.hefuyi.zhihudaily.mvp.model.DailyStories;
import io.hefuyi.zhihudaily.mvp.model.StartImage;
import io.hefuyi.zhihudaily.mvp.model.Story;
import io.hefuyi.zhihudaily.mvp.model.Theme;
import io.hefuyi.zhihudaily.mvp.model.Themes;
import retrofit2.http.GET;
import retrofit2.htt... | 29.666667 | 108 | 0.722558 |
51b1f0078ce2397947a1eba5f587e1f00ff6363e | 1,234 | package co.casterlabs.rakurai.io.http.server;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.jetbrains.annotations.Nullable;
import co.casterlabs.rakurai.io.http.TLSVersion;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.experimental.Accessors;
@Get... | 27.422222 | 95 | 0.752026 |
dc5f6bae5665b7c443360d5e13c6e96fcbd7b6a4 | 472 | package psidev.psi.mi.jami.datasource;
import psidev.psi.mi.jami.binary.BinaryInteractionEvidence;
/**
* A Data source of binary interaction evidences giving only a stream of interactions.
* It is not possible to get a full collection of interactions.
*
* @author Marine Dumousseau (marine@ebi.ac.uk)
* @version $... | 31.466667 | 111 | 0.777542 |
2f62a9c6c344c18d2c99bb5010a53111e5b9ef8e | 4,655 | /*
* Copyright 2017 Red Hat 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... | 31.241611 | 97 | 0.671321 |
90106499be35ff1024082baede95fdc9871f9dc6 | 2,765 | package hicp.message.event;
import java.util.Arrays;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import hicp.HeaderMap;
import hicp.message.Message;
import hicp.message.HeaderEnum;
public class EventInfo {
private static final Logger ... | 25.366972 | 65 | 0.585895 |
31dd9aa4ffb66dd520704a8d37fb593dfee66d90 | 2,052 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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... | 28.5 | 85 | 0.71345 |
b24e8590c4a4551db8ce74614750478c92a7edd1 | 2,154 | package cz.xtf.openshift.util.openshift;
import cz.xtf.openshift.OpenShiftUtil;
import io.fabric8.openshift.api.model.ImageStream;
import io.fabric8.openshift.api.model.ImageStreamBuilder;
import org.assertj.core.api.Assertions;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import... | 33.138462 | 139 | 0.784587 |
e83c46393956f2a1f85715dce6ac22e0fb950dbe | 1,111 | package org.snomed.snowstorm.core.data.services.postcoordination;
import org.snomed.languages.scg.SCGException;
import org.snomed.languages.scg.SCGExpressionParser;
import org.snomed.languages.scg.SCGObjectFactory;
import org.snomed.languages.scg.domain.model.Expression;
import org.snomed.snowstorm.core.data.services.... | 34.71875 | 123 | 0.812781 |
ade49c582bb7903d2f44bf2c51aeb8cb988133be | 1,679 | package com.multi.datasource;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.Spri... | 39.97619 | 111 | 0.745086 |
5326a3858e49e6c6c39efb1d469accdf435ee4a8 | 1,206 | /*
* Copyright 2019 StreamSets 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... | 34.457143 | 112 | 0.748756 |
e842ea5a5a1d958b977ec3eb51468e00859db2a4 | 2,759 | /*
* Copyright 2018 - 2021 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... | 21.724409 | 77 | 0.628489 |
727e56decee6a89f0f0d7a35e085525765c9a3ca | 613 | package bzh.medek.server.json.user;
public class JsonUser {
private Integer id;
private String login;
private String mail;
public JsonUser() {
super();
}
public JsonUser(Integer id, String login, String mail) {
super();
this.id = id;
this.login = login;
this.mail = mail;
}
public Integer getId() ... | 13.931818 | 57 | 0.65416 |
2bad79381a061cdc512bf19b3ccfe40169bc2393 | 726 | package java8lambda.main01;
import java.util.List;
import java8lambda.商品;
public class Main_01 {
/**
* バブルソートで原価の昇順にソート
* @param alist
* @return
*/
private static List<商品> sort原価昇順(List<商品> alist){
List<商品> list = alist;
for(int i=0 ; i<alist.size();i++){
for(int j=i+1 ; j<alist.size();j++){
... | 15.446809 | 50 | 0.581267 |
ee58cb84301da5d6c07a7f177b1334edf354463e | 11,432 | /**
* Copyright 2011-2013 FoundationDB, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 38.234114 | 117 | 0.585987 |
0deb0eadea7d6e47335d4539bd5884d5732d9e71 | 13,384 | package com.shareworx.ezfm.device.fmdata.service;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.shareworx.ezfm.device.fmdata_eq... | 31.640662 | 193 | 0.702779 |
164d8291ebf11b66416fcc561f607b1f4a71c71b | 362 | package io.nebula.leaf.genid;
import io.nebula.kernel.exchange.ResponseEntity;
import io.nebula.leaf.feign.LeafService;
import lombok.Data;
/**
* @author nebula
*/
@Data
public class LeafZKGenId extends AbstractGenId {
@Override
protected ResponseEntity<Long> generate(LeafService client, String key) {
... | 20.111111 | 77 | 0.737569 |
6bcdfa49a58778fbd7719fa05e90438735c3eb8a | 819 | package wooteco.subway.path;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import wooteco.subway.path.domain.fare.distance.DefaultDistance;
import wooteco.subway.path.domain.fare.distance.DistanceChain;
import wooteco.subway.path.domain.fare.distance.S... | 37.227273 | 93 | 0.791209 |
f24d3caf6e8b90e59c320aecf737630d3c9b0ab4 | 2,373 | /*********************************************************************
*
* Copyright (C) 2002 Andrew Khan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | 25.244681 | 76 | 0.634218 |
de1e503b878eb217ed4d3664eb296deff858bd96 | 695 | // This file is part of CPAchecker,
// a tool for configurable software verification:
// https://cpachecker.sosy-lab.org
//
// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.sosy_lab.cpachecker.cpa.arg.counterexamples;
import org.sosy_lab.... | 26.730769 | 74 | 0.772662 |
5584a6eb58fbe4882ef89a677266c5690ffdf9a1 | 3,765 | package com.mapbox.mapboxsdk.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import androi... | 30.12 | 111 | 0.705976 |
3cc2143b68f5a084ab2573c955a9fa4f0774e6c6 | 697 | package parser.decorators.expressions;
import java.util.Set;
import de.be4.classicalb.core.parser.node.ABooleanTrueExpression;
import de.be4.classicalb.core.parser.node.PExpression;
public class MyABooleanTrueExpression extends MyExpressionDecorator {
private ABooleanTrueExpression booleanTrueExpression;
pu... | 17.425 | 80 | 0.781923 |
fe62e368b05bd8a12b9897564eac5475a1aa2620 | 170 | package org.javaturk.oofp.ch03.flyer.vehicle;
public interface Vehicle {
public void turnOn();
public void turnOff();
public void go();
public void stop();
}
| 12.142857 | 45 | 0.7 |
d087d3f93112cce3c5f7493293c176c1d6b71424 | 1,821 | package com.esmooc.legion.core.common.limit;
//import com.esmooc.legion.core.common.annotation.RateLimiter;
import com.esmooc.legion.core.common.constant.CommonConstant;
import com.google.common.util.concurrent.RateLimiter;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RRateLimiter;
import org.redisson.ap... | 26.391304 | 104 | 0.692477 |
92bbcab9dab7463eff2ea4b1fa46103799bb0a8c | 398 | package com.zh;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@MapperScan("com.zh.dao")
@SpringBootApplication
public class SecurityDemoApplication {
public static void main(String[] args) {... | 24.875 | 68 | 0.79397 |
61dbac88362d83d47ed92ecc487804d4a71e52d2 | 1,753 | package com.dragontalker.bean;
public class Dept {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dept.did
*
* @mbggenerated Tue Jul 13 09:44:32 EDT 2021
*/
private Integer did;
/**
* This field was generated by MyBatis Ge... | 26.164179 | 70 | 0.608671 |
eb83eaff8f565a7d753f29992b267bba21b394b0 | 1,057 | package net.strongdesign.balsa.breezefile;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.TreeMap;
public class BreezeChannelListElement extends AbstractBreezeElement {
private static final long serialVersionUID = 8933781235650293491L;
TreeMap<Integer, BreezeChannelElement... | 24.581395 | 98 | 0.673605 |
2f725d9e2d4d25e25a79d013b28c47c46a1f560e | 1,303 | package com.jd.management.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.jd.management.condition.ResourcesCondition;
import com.jd.management.domain.Resources;
/**
* 资源Dao
* @author jiaodong
* @Date 2017-01-06 15:05:16
*/
@Repository("resourcesDao")
public class Resourc... | 22.084746 | 92 | 0.718342 |
757afa1667b3d4c4b3f6fe4572e3785b00289638 | 565 | package org.eaSTars.z80asm.assembler.visitors.oneparam;
import org.eaSTars.z80asm.ast.instructions.oneparam.PUSH;
import org.eaSTars.z80asm.parser.Z80AssemblerParser.InstructionPUSHPOPparametersContext;
import org.eaSTars.z80asm.parser.Z80AssemblerParser.PUSHContext;
public class PUSHVisitor extends PUSHPOPVisitor<PU... | 28.25 | 90 | 0.828319 |
d8aff25b582feda5646b384d2d128385b2fe0112 | 376 | package fr.maif.jdbc;
import akka.actor.ActorSystem;
import fr.maif.akka.AkkaExecutionContext;
public class JdbcExecutionContext extends AkkaExecutionContext {
public JdbcExecutionContext(ActorSystem system) {
this(system, "jdbc-execution-context");
}
public JdbcExecutionContext(ActorSystem syst... | 23.5 | 66 | 0.739362 |
50300c5c280fd42e72235503c6102e55c84276b2 | 2,645 | /* Copyright (c) 2010, Carl Burch. License information is located in the
* logisim_src.Main source code and at www.cburch.com/logisim/. */
package draw.undo;
import java.util.LinkedList;
import logisim_src.util.EventSourceWeakSupport;
public class UndoLog {
private static final int MAX_UNDO_SIZE = 64;
private E... | 21.680328 | 72 | 0.675614 |
0a850dfba71df25d33a18da0556df822bdddcd21 | 8,274 | /**
* 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... | 31.701149 | 97 | 0.685158 |
07edff4ac7e6c567be6e7a99867c9bac51b393fe | 2,816 | package home.java;
import com.jfoenix.controls.datamodels.treetable.RecursiveTreeObject;
import java.util.Date;
public class EntreStock extends RecursiveTreeObject<EntreStock> {
private int id;
private int typeProduit;
private String nom;
private int quantite;
private double prix;
private Dat... | 21.661538 | 154 | 0.572443 |
645e9d32248fc6dbe8f1670aaee72efe7a198150 | 5,566 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 26.131455 | 118 | 0.600252 |
26e15d0d69872d2ced62ad2ca507d14e0fcc73ea | 474 | package optifine;
import java.util.Comparator;
public class CustomItemsComparator implements Comparator
{
public int compare(Object o1, Object o2)
{
CustomItemProperties p1 = (CustomItemProperties)o1;
CustomItemProperties p2 = (CustomItemProperties)o2;
return p1.weight != p2.... | 33.857143 | 174 | 0.698312 |
78704480f3aafd7cfde975da2ce0ae4f9a89909f | 1,943 | package com.infoDiscover.solution.builder.vo;
/**
* Created by sun on 7/24/17.
*/
public class DataDateMappingVO {
private String relationMappingType;
private String sourceDataTypeKind;
private String sourceDataTypeName;
private String sourceDataPropertyName;
private String relationTypeName;
... | 26.256757 | 76 | 0.72877 |
d344d872023d6197ae0f7dd776a871c0f34bacb1 | 2,276 | package com.skcraft.plume.module.backtrack;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
public class LoggerConfig {
@Setting(comment = "Configure how search works")
public Search search = new Search();
@Setting(comm... | 36.709677 | 140 | 0.689807 |
cce8ee1fe0b50668dcb50cc06031812263e16932 | 2,415 | package mx.uam.archinaut.services;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
... | 38.333333 | 108 | 0.773085 |
a75ec1eb57674f83d6db748270c2f89144d91c7e | 412 | package de.libal.holidayapiclient.domain;
import java.util.ArrayList;
import java.util.List;
public class ResponseWrapperLanguage {
private List<Language> languages = new ArrayList<>();
public List<Language> getLanguages() {
return languages;
}
public ResponseWrapperLanguage setLanguages(Li... | 20.6 | 75 | 0.703883 |
3c2a6a49f10962370683160418b7069595974e8b | 1,377 | package com.bettercloud.kadmin.api.kafka;
import com.bettercloud.kadmin.kafka.QueuedKafkaMessageHandler;
import lombok.Builder;
import lombok.Data;
import lombok.NonNull;
import java.util.Collection;
/**
* Created by davidesposito on 7/23/16.
*/
@Data
@Builder
public class KadminConsumerGroupContainer {
@NonN... | 28.102041 | 135 | 0.705882 |
c6e8dad1df725f6080ce9e168b7dcd08945b9fe8 | 6,154 | package com.roden.study.redis.jedis;
import org.junit.BeforeClass;
import org.junit.Test;
import redis.clients.jedis.Jedis;
import java.util.Set;
import java.util.concurrent.TimeUnit;
/**
* @Test:将一个普通方法修饰成一个测试方法
* @Test(excepted=xx.class): xx.class表示异常类,表示测试的方法抛出此异常时,认为是正常的测试通过的
* @Test(timeout=毫秒数) :测... | 32.909091 | 169 | 0.628372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.