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 |
|---|---|---|---|---|---|
c9380415a612ee8b50a2994714151b7d2aa301ac | 2,111 | /*
Copyright (c) 2020 - for information on the respective copyright owner
see the NOTICE file and/or the repository at
https://github.com/hyperledger-labs/business-partner-agent
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... | 32.476923 | 75 | 0.722406 |
7df1acab65afe1422d28f7ae6a5845d3cb80c12b | 2,779 | package slimeknights.tconstruct.tools.common;
import java.util.Set;
import javax.annotation.Nonnull;
import com.google.common.collect.ImmutableSet;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
impor... | 25.495413 | 97 | 0.689097 |
684132939a4f74b5e0237f7c9ffeec41e2c4738d | 1,180 | /*
* Copyright (c) 2020 Dario Lucia (https://www.dariolucia.eu)
*
* 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... | 34.705882 | 140 | 0.722881 |
c4e262980bd4058380d7cff18638dc36a34000ef | 389 |
package com.feedbactory.client.ui.feedback.personal;
final class NoCriteriaSubmissionScaleRenderer extends PersonalFeedbackSubmissionScaleRenderer
{
final int[] emptyControlGap = new int[] {0};
@Override
final String getSubmissionColumnHeader()
{
return "";
}
@Override
final int[] getS... | 17.681818 | 93 | 0.719794 |
0d534afd130761614498123d2fbc517c10708c40 | 1,528 | package com.symphony.bdk.workflow.engine.executor.group;
import com.symphony.bdk.ext.group.gen.api.model.GroupList;
import com.symphony.bdk.ext.group.gen.api.model.SortOrder;
import com.symphony.bdk.ext.group.gen.api.model.Status;
import com.symphony.bdk.workflow.engine.executor.ActivityExecutor;
import com.symphony.b... | 31.183673 | 95 | 0.740838 |
9fb7f3e0280d3a456022458242c65f9c7c122651 | 937 | package com.example.restservice;
import java.util.Date;
import lombok.Data;
/**
* This class is the model for Partidak.
*
* @author kalboetxeaga.ager
*
*/
@Data
public class Partida {
private String puntuazioa;
private String kills;
private String time;
private String date;
private Employee employee;
p... | 17.036364 | 47 | 0.701174 |
6df58c01b11981211763948bab71ee1fd9689e18 | 669 | package fr.adrienbrault.idea.symfony2plugin.templating.variable.resolver;
import fr.adrienbrault.idea.symfony2plugin.templating.variable.TwigTypeContainer;
import fr.adrienbrault.idea.symfony2plugin.templating.variable.dict.PsiVariable;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import ja... | 41.8125 | 232 | 0.835575 |
e82e870ca3eac4a7d25a10103dd32417173bab89 | 2,441 | package com.aljazkajtna.kamino.ui.residents;
import android.database.DataSetObserver;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.aljazkajtna... | 23.699029 | 88 | 0.636624 |
4e7616ad49029e11b07e8f41703e1bf3a6fd9879 | 10,913 | //name: date:
import java.util.*; //for the queue interface
public class TreeLab
{
public static TreeNode root = null;
public static String s = "XCOMPUTERSCIENCE";
//public static String s = "XSingaporeAmericanSchool";
//public static String s = "XAComputerScienceTreeHasItsRootAtTheTop";
p... | 24.97254 | 81 | 0.491249 |
6f4af005f35a84f7cc28b8cfbf8874515cba022a | 17,131 | /**************************************************************
*
* 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 y... | 42.720698 | 172 | 0.592318 |
705b2b7bda699c130f6464789fdcdb27a58bb989 | 347 | package edp.vap.dao;
import edp.vap.model.OperaLog;
public interface OperaLogMapper {
int deleteByPrimaryKey(Long id);
int insert(OperaLog record);
int insertSelective(OperaLog record);
OperaLog selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(OperaLog record);
int updateByPri... | 20.411765 | 53 | 0.757925 |
1bf8d0f7d6151922ee237f8c54f2c1f308b92da1 | 1,189 | package org.iotp.analytics.ruleengine.plugins.msg;
import java.util.Optional;
import org.iotp.analytics.ruleengine.api.device.ToDeviceActorNotificationMsg;
import org.iotp.analytics.ruleengine.common.msg.cluster.ServerAddress;
import org.iotp.infomgt.data.id.DeviceId;
import org.iotp.infomgt.data.id.PluginId;
import ... | 25.297872 | 106 | 0.789739 |
3430f313c35cf93836cf3be6aeb011fcddee2577 | 11,002 | package net.minecraft.world.phys.shapes;
import com.google.common.collect.Lists;
import com.google.common.math.DoubleMath;
import it.unimi.dsi.fastutil.doubles.DoubleList;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
import net.minecraft.Util;
import net.minecraft.core.AxisCycle;... | 45.090164 | 390 | 0.636157 |
5fac88bdf42451eba755fa201c420d96dde1d576 | 5,453 | // Copyright 2022 The Nomulus Authors. 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 a... | 41.625954 | 99 | 0.739226 |
68bf4392d361f8c71c88ee2b3ee142a71248f778 | 1,265 | package com.xiaobei.spring.demo.bean.lifecycle.domain;
import org.springframework.beans.factory.DisposableBean;
import javax.annotation.PreDestroy;
/**
* @author <a href="https://github.com/xiaobei-ihmhny">xiaobei-ihmhny</a>
* @date 2020/8/12 20:32
*/
public class DestructionDomain implements DisposableBean {
... | 19.765625 | 73 | 0.563636 |
5e0923b7bb3ca6844badf05ce2ef148ee54657b9 | 1,365 | package org.onap.usecaseui.server.service.lcm.domain.aai.bean;
/**
* Copyright (C) 2020 Huawei, Inc. and others. 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
*
... | 29.673913 | 75 | 0.721612 |
88b4bf6aa97981a6bf79362c64640a7fc5c21b4c | 381 | package com.dsm.nms.domain.image.exception;
import com.dsm.nms.global.error.ErrorCode;
import com.dsm.nms.global.error.exception.NmsException;
public class ImageNotFoundException extends NmsException {
public static NmsException EXCEPTION =
new ImageNotFoundException();
private ImageNotFoundExce... | 23.8125 | 58 | 0.750656 |
c109a21f777f078a756cad448b37a9527bb40ac8 | 3,978 | package com.vladmihalcea.book.hpjp.hibernate.bootstrap;
import com.vladmihalcea.book.hpjp.util.DataSourceProxyType;
import com.vladmihalcea.book.hpjp.util.PersistenceUnitInfoImpl;
import com.vladmihalcea.book.hpjp.util.providers.DataSourceProvider;
import com.vladmihalcea.book.hpjp.util.providers.Database;
import com.... | 31.571429 | 129 | 0.713424 |
af33e7dcb9e87a2a71e692b6cf82646506a52f7f | 1,994 | /*
* 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.79661 | 80 | 0.727182 |
f8e8296ab8074b0a927262d0156d8e5ce0113095 | 4,444 | package com.egoveris.ffdd.render.zk.form;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Hbox;
import org.zkoss.zul.Row;
import com... | 28.305732 | 124 | 0.732448 |
b815dc97b4c3a479eef96bf0df7a48da730b0764 | 2,959 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 26.185841 | 97 | 0.738763 |
ac774236a0a65b55139e135cce61950ca8f506d3 | 1,045 | package com.vcg.config;
import javax.sql.DataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DataSourceTransactionManag... | 29.027778 | 83 | 0.810526 |
b0d23ce2aa8527bfb43eafec957933ad17c9671c | 3,387 | package pl.dreamlab.persistentcollectionsbenchmark.list.plan;
import cyclops.data.Seq;
import io.vavr.collection.Vector;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.organicdesign.fp.co... | 35.652632 | 130 | 0.658105 |
c2404f4a639c7666f0064de6b23f81a6856bd6c1 | 1,999 | package com.tm.kafka.connect.rest.interpolator.source;
import com.tm.kafka.connect.rest.interpolator.InterpolationContext;
import org.junit.Before;
import org.junit.Test;
import java.net.URL;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
public class PropertyInterpolationSourc... | 30.753846 | 110 | 0.757379 |
c2c1c32222c3a025ce41609e9d6748fb3cb4a892 | 15,587 | package rsc.publisher;
import java.util.*;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.*;
import org.junit.*;
import org.reactivestreams.Publisher;
import rsc.processor.UnicastProcessor;
import rsc.test.TestSubscriber;
import rsc.util.*;
public class PublisherZipTest {
@Test
... | 29.134579 | 128 | 0.554693 |
020ec07a483445fae3554ec745b7fb7521379e6e | 1,930 | package com.disconf.web.service.impl;
import com.disconf.core.common.model.Response;
import com.disconf.web.common.SearchResult;
import com.disconf.web.entity.ConfigEntityHistory;
import com.disconf.web.mapper.ConfigEntityHistoryMapper;
import com.disconf.web.search.AppSearch;
import com.disconf.web.service.IAppServic... | 30.15625 | 101 | 0.755959 |
8a0bce1efb6aa1cf0ca41e49d8b029ae1ea38aa6 | 309 | package de.baltic_online.base.sql;
public class SimpleQuery extends AbstractQuery
{
public SimpleQuery(TableCache cache)
{
super( cache );
}
public SimpleQuery(TableCache cache,TableAttribute[] ta)
{
super( cache, ta );
}
public boolean find(Object toFind)
{
return true;
}
}
| 15.45 | 58 | 0.686084 |
fd4b5e7811104765609c4f95779721ffb22eea35 | 3,195 | package org.goodiemania.melinoe.framework.drivers.web;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.time.Duration;
import java.util.Objects;
import java.util.Optional;
import java.util.UUID;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;... | 31.019417 | 103 | 0.703912 |
4a4c1a60e35a9b3698c1de588b620074af32c51d | 325 | package com.akexorcist.knoxactivator.event;
/**
* Created by Akexorcist on 4/21/2016 AD.
*/
public class LicenseActivationFailedEvent {
int errorType;
public LicenseActivationFailedEvent(int errorType) {
this.errorType = errorType;
}
public int getErrorType() {
return errorType;
... | 19.117647 | 56 | 0.686154 |
5aedc8d5c514656095e31fe7bcb116b0511dccf0 | 7,418 | package com.paragon464.gameserver.model.content;
import com.paragon464.gameserver.model.entity.mob.player.Player;
import com.paragon464.gameserver.model.entity.mob.player.container.impl.BankTransfer;
public class BankPins {
static final String[] MESSAGES = {"Now click the SECOND digit.", "Time for the THIRD digi... | 46.074534 | 166 | 0.460097 |
6725de935cc2f374a011aa262d80ecb3ed97e442 | 1,662 | package com.mapswithme.maps.search;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import com.mapswithme.maps.R;
import com.mapswithme.util.UiUtils;
public class SearchFilterController
{
@NonN... | 22.16 | 87 | 0.659446 |
3bccf7eaff50b439f0a04c94dd1ff5e29d8d916e | 2,050 | /*
* Copyright 2018 Nextworks s.r.l.
*
* 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 w... | 24.698795 | 84 | 0.730244 |
0d2c9d4fdacf55cf86f8c2eb52d9065beaa7ca13 | 1,113 | package cucumber.runner;
import cucumber.runtime.Backend;
import cucumber.runtime.Glue;
import cucumber.runtime.RuntimeOptions;
import cucumber.runtime.snippets.FunctionNameGenerator;
import gherkin.pickles.PickleStep;
import java.util.Collections;
import java.util.List;
import static java.util.Collections.emptyList... | 22.714286 | 114 | 0.728661 |
8c2b71b647f114025e645950855db6935ae21900 | 115 | package io.github.educontessi.domain.service.validator;
public interface Validator {
public void validate();
}
| 14.375 | 55 | 0.782609 |
781553c8c31086caeadada4574a36de825a68eec | 3,793 | package us.codecraft.webmagic.proxy;
import lombok.extern.slf4j.Slf4j;
import us.codecraft.webmagic.Task;
import java.util.Comparator;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicReference;
/**
* @author yaoqiang
* 可刷新的代理提供商抽象实现
*/
@Slf4j
public abstract class AbstractRefreshableProxyP... | 30.58871 | 153 | 0.568679 |
b14bc922eb63daeec9debd6569c41db2ebcd7d82 | 4,131 | package com.example.pickyourcollege;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class CollegeActivity extends AppCompatActivity {
private Button btnCancel... | 47.482759 | 128 | 0.671992 |
319941da8c2d27ef52bf2edca40570a969df3de2 | 2,321 | package org.ovirt.engine.api.restapi.types.externalhostproviders;
import static org.ovirt.engine.api.restapi.utils.HexUtils.string2hex;
import java.util.Date;
import org.ovirt.engine.api.model.KatelloErratum;
import org.ovirt.engine.api.restapi.types.AbstractInvertibleMappingTest;
import org.ovirt.engine.api.restapi... | 45.509804 | 109 | 0.720379 |
ee264a2fe28a36a61b06ba3d1de896ba00084811 | 368 | public class Size extends Place{
private int width;
public Size(){
super("default size",34);
}
public void setwidth(int newwidth){
this.width=newwidth;
}
public int getwidth(){
return width;
}
public String toString(){
String out = super.toString();
... | 20.444444 | 39 | 0.548913 |
e3fb621b22c4c9f8d86b04f7e0139650462f5fa9 | 2,339 | /*
* Copyright 2014 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 applica... | 41.767857 | 221 | 0.756734 |
75077f1ffbbef6d93469a6fdc908ba6cc6258091 | 1,372 | package com.github.freshchen.keeping.prototype;
import java.util.ArrayList;
/**
* @program: fresh-design-pattern
* @Date: 2019/5/18 23:21
* @Author: Ling Chen
* @Description: 通过序列号实现深复制
* GirlFriendShallow{name='San Kong', hobbies=[food, make up], secrets=Secret{heigth='170', weight='50'}}
* GirlFriendShallow{n... | 39.2 | 128 | 0.672741 |
22e80e5a6427f8457f887c3fb389a2baac985170 | 7,687 | package fr.tse.lt2c.satin.matrix.extraction.ibr;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import fr.tse.lt2c.satin.matrix.beans.BinaryMatrix;
import fr.tse.lt2c.satin.matrix.beans.DecompositionResult;
import fr.tse.lt2c... | 29.339695 | 101 | 0.642513 |
75787af833026d86857091a27eb0c0d0d35a6444 | 2,111 | package solveur;
import instance.Instance;
import instance.model.Demande;
import instance.reseau.Client;
import io.InstanceReader;
import io.SolutionWriter;
import io.exception.ReaderException;
import solution.Solution;
import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;
import java.uti... | 34.048387 | 104 | 0.653719 |
ef3607fea04d97960ff4d423a40c7684f2f0a661 | 2,238 | /*
* Copyright (c) $today.year.devonline.academy
*
* 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 ... | 39.964286 | 112 | 0.766756 |
43e4dd0b5b109c9bc349cb6c967520c63c27f5fa | 11,568 | // Generate glue code
import java.io.*;
import java.util.*;
class typeinfo
{
String scm_name;
String java_name;
String java_inp_type[];
typeinfo(String sname, String jname, String jit[])
{
scm_name = sname;
java_name = jname;
java_inp_type = jit;
... | 38.431894 | 90 | 0.453665 |
f896851a2e7d270935826540913222747838b761 | 3,809 | 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.CRCustomerCampaignSpecificationRetrieveInputModelCustomerCampaignSpecificationInst... | 45.891566 | 218 | 0.873195 |
80758bf7fd5454f5491d1f97adfcdd6217f5fd56 | 3,366 | package de.ahus1.example.jdbi;
import de.ahus1.example.jdbi._10_CrudJbdiSelectAllTest.Sighting;
import de.ahus1.example.jdbi._10_CrudJbdiSelectAllTest.SightingResultMapper;
import org.assertj.core.api.Assertions;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.skife.jdbi.v2.DBI;
impo... | 36.989011 | 95 | 0.671123 |
092718f38bddf0db0d3a1a7b11255e98db646c54 | 1,122 | package com.example.BookTradingClub.presentation.controller;
import com.example.BookTradingClub.presentation.dto.UserBookDto;
import com.example.BookTradingClub.service.BookService;
import com.example.BookTradingClub.service.domain.UserBook;
import org.modelmapper.ModelMapper;
import org.modelmapper.TypeToken;
import ... | 29.526316 | 84 | 0.78877 |
53023d47c10fdafe3a04ccab0954df65e4c8df4f | 290 | package de.rieckpil.learning.highperformancejpa.entity;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.Instant;
@Data
@Entity
@Table(name= "announcement")
public class Announcement extends Topic {
private Instant validUntil;
}
| 18.125 | 55 | 0.796552 |
8b8ea6802dee2c16ccbc18fb8964fa06dadd449e | 7,966 | /*
* Copyright 2015-2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | 41.489583 | 117 | 0.638212 |
d7854ab6ec2fad333c6e17c99a0f864565d8897c | 989 | package nv.visualFX.cloth.libs;
/**
* Callback interface to manage the DirectX context/device used for compute<p></p>
* Created by mazhen'gui on 2017/9/12.
*/
public interface DxContextManagerCallback {
/**
* Acquire the D3D context for the current thread
*
* Acquisitions are allowed to be recur... | 29.088235 | 82 | 0.680485 |
3fdafe33b520ca6fe3febd0d33e9c709dc904333 | 526 | package cn.rui97.ruigou.mapper;
import cn.rui97.ruigou.domain.Brand;
import cn.rui97.ruigou.query.BrandQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import java.util.List;
/**
* <p>
* 品牌信息 Mapper 接口
* </p>
*
* @author lurui
* @since 2019-01-13
*/
publi... | 19.481481 | 67 | 0.68251 |
0fe0e83cfbd64f083b93f343471d9165a582fc4c | 2,161 | /*
* 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 ... | 37.912281 | 111 | 0.745951 |
9806384a8dd453d030f761d05e15cfafa94b92d6 | 798 | package org.tiankafei.jdbc.mybatis.dao;
import org.apache.ibatis.session.SqlSessionFactory;
import org.tiankafei.jdbc.dao.ICommonDAO;
/**
* @author 甜咖啡
*/
public interface ICommonMyBatisDAO extends ICommonDAO {
/**
* 获取mybatis的session会话工厂类
*
* @return mybatis的session会话工厂类
*/
public SqlS... | 17.347826 | 55 | 0.609023 |
d6a6cfd108da70e24106e69598aa6568196de28f | 545 | package javauygulamaları;
public class polindrome22 {
public static int dizi(String[] A){
int enUzun = A[0].length();
int indis=0;
for (int i = 0; i < A.length; i++) {
if (enUzun< A[i].length()) {
enUzun= A[i].length();
indis = i+1;
... | 18.793103 | 80 | 0.47156 |
0ee01285ffa9b4734a5378e33de39e3ad364a22b | 6,539 | package org.embulk.input.jdbc.getter;
import java.lang.reflect.Field;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import org.embulk.config.ConfigException;
import org.embulk.config.ConfigSource;
import org.embulk.config.Task;
import org.embulk.input.jdbc.AbstractJ... | 33.192893 | 221 | 0.632971 |
ae166217a31f9567e33b4b38432ff594b2e0070d | 2,016 | /*
* 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")... | 37.333333 | 79 | 0.737103 |
d4ad7e2ad57ce3d773d53bd3a1d405ad0e43fd02 | 1,070 | /*
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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 35.666667 | 79 | 0.745794 |
229a8288b2deabd1c12266e8f5e1d7b6cc2fa46c | 3,707 | package interactivespaces.service.image.depth.internal.openni2.libraries;
import interactivespaces.service.image.depth.internal.openni2.libraries.OpenNI2Library.OniSensorType;
import org.bridj.IntValuedEnum;
import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.CLong;
import org.bridj.ann.Field;... | 26.105634 | 183 | 0.694902 |
d59c3262d6127f8ed096de262223b7d473975370 | 594 | package playground;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.logging.Logger;
import static org.junit.jupiter.api.Assertions.assertTrue;
class AppTest {
private static final Logger LOG = Logger.getLogger(AppTest.class.getN... | 19.16129 | 78 | 0.681818 |
d7255bbabe19cb0d65d67119cf4a94d60e20ac70 | 1,553 | /*
* Copyright (C) 2007 The Guava 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 agre... | 28.759259 | 75 | 0.688989 |
0ac3381508529733229cfe4e2e52905048ad23da | 2,938 | /*
* The MIT License (MIT)
*
* Copyright (c) 2013-2014 Jeff Nelson, Cinchapi Software Collective
*
* 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 with... | 29.089109 | 80 | 0.653846 |
e0e6582010b32bde8db218daf169fe699deb9569 | 7,449 | package org.firstinspires.ftc.teamcode.opmodes.GenericTest;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
import org.firstinspires.ftc.teamcode.Lib.FTCL... | 42.084746 | 102 | 0.600752 |
28822034c871a2423806a053341b221575450295 | 2,359 | package com.data.tructure.array;
/**
* 二分查找
*
* @author cuishifeng
* @Title: BinarySearch
* @ProjectName com.dataStructure.array
* @date 2018-09-07
*/
public class BinarySearch {
private long[] array;
private int nElems;
public BinarySearch(int maxIndex) {
array = new long[maxIndex];
... | 21.842593 | 58 | 0.449767 |
534544c1f56c09c12e51d65d093f8316d734647d | 5,369 | /** HistoryManager.java
* @author Sunita Sarawagi
* @since 1.1
* @version 1.3
*/
package iitb.CRF;
import iitb.Utils.Counters;
import java.io.Serializable;
class EdgeGenerator implements Serializable {
/**
*
*/
private static final long serialVersionUID = -4872905008657745029L;
int offset;
int num... | 26.448276 | 97 | 0.64295 |
8e33d1185249d4742ce9da3af63386828094c241 | 1,381 | package com.xjbg.sso.server.authencation;
/**
* @author kesc
* @since 2019/5/18
*/
public interface AuthenticationInfo {
/**
* Returns all principals associated with the corresponding Subject. Each principal is an identifying piece of
* information useful to the application such as a username, or use... | 46.033333 | 120 | 0.721217 |
a1d6edacf1bf50e7fd35ffbf4d2db1d4675b3e91 | 684 | package awesome.data.structure.algorithm.sort.practice;
/**
* 冒泡排序
*
* @author: Andy
* @time: 2019/6/30 13:13
* @since
*/
public class BubbleSort extends Sort{
/**
* 冒泡排序
*
* @param a 要排序的数组
* @param n 要排序的数组长度
*/
public static void sort(int[] a, int n){
for(int i = n - 1... | 18.486486 | 55 | 0.419591 |
1dbb3a6284259a1c6d22c728e99b2729f6db93da | 4,904 | package com.kieserjw;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
public class InputandAnalysis {
private String inputFilename;
private ArrayList<String> stringList;
private ArrayList<Double> n... | 32.052288 | 139 | 0.549347 |
00b980fc07f82858891509e71751fca6c375dbfc | 3,317 | package test;
import com.kenshine.cglib.demo02.TestClass;
import com.kenshine.cglib.demo03.SampleClass;
import net.sf.cglib.proxy.*;
import org.junit.Assert;
import org.junit.Test;
import java.lang.reflect.Method;
/**
* @author :kenshine
* @date :Created in 2021/12/30 22:03
* @description:測試
* @modified By:
* @... | 32.519608 | 105 | 0.583358 |
296b77e9fdf666bd495bf05a34ee562d2b4e5754 | 4,268 | /*
* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 45.404255 | 122 | 0.709231 |
5a3e462eccb8e32c71cde8f51ade662b472a2f16 | 7,545 | // ParameterBasePanel.java
package mit.cadlab.dome3.gui.objectmodel.modelobject.parameter;
import mit.cadlab.dome3.gui.objectmodel.DomeObjectGui;
import mit.cadlab.dome3.gui.objectmodel.dataobject.DocumentationBasePanel;
import mit.cadlab.dome3.objectmodel.DomeObject;
import mit.cadlab.dome3.objectmodel.modelobj... | 30.546559 | 122 | 0.714115 |
f811d161a2f664fd92049cc2aa210be46e7a5e35 | 342 | package util;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;
/**
* Created by ZhouYing.
* www.zhouying.xyz
*/
public class LogTest {
static Logger logger = LogManager.getLogger();
@Test
public void test() {
logger.error("blabla -> {}... | 17.1 | 50 | 0.660819 |
a64db470beb3fff421e2c31299dfbdd592d47b61 | 2,450 | package user;
import java.util.HashMap;
import java.util.Map;
import lida.Lida;
import spark.Request;
import spark.Response;
public class UserController {
public static String login(Request req, Response res) {
// Obtain request parameters
String email = req.queryParams("login-email");
String password = ... | 25 | 71 | 0.659592 |
e3a3e7d7ac9c9d8a7e8c1a9df8f95b738616c1cf | 548 | package cn.yjxxclub.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* Author: Starry.Teng
* Email: tengxing7452@163.com
* Date: 17-9-12
* Time: 下午12:59
* Describe: ... | 26.095238 | 68 | 0.773723 |
a4566c900492ab3aed5d0de29d9eb14b453b7690 | 15,045 | /*-
* Copyright (C) 2013-2014 The JBromo Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 34.427918 | 91 | 0.529944 |
980d5a1f34dabf2750e5aca2429cb40c1704cee8 | 890 | package ui.ex1.screen.facets.lookupscreenfacet;
import io.jmix.ui.component.TextField;
import io.jmix.ui.screen.Install;
import io.jmix.ui.screen.Screen;
import io.jmix.ui.screen.UiController;
import io.jmix.ui.screen.UiDescriptor;
import org.springframework.beans.factory.annotation.Autowired;
import ui.ex1.entity.Cus... | 31.785714 | 77 | 0.746067 |
3d69b6b1b8a8faf412c5f0e49df4cf88ea8dd788 | 3,248 | /*
* Copyright 2017 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 applica... | 22.246575 | 75 | 0.744458 |
9b7e5b7e7c92999f9133e6986c51f43c431b20e2 | 858 | package com.hjay.tmall.Entity.Implement;
/*
CREATE TABLE productimage (
id int(11) NOT NULL AUTO_INCREMENT,
pid int(11) DEFAULT NULL,
type varchar(255) DEFAULT NULL,
PRIMARY KEY (id),
CONSTRAINT fk_productimage_product FOREIGN KEY (pid) REFERENCES product (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
*/
impor... | 20.428571 | 78 | 0.645688 |
305cfe024f87e1b6717112b0fb63b1f592f0ea03 | 800 | /**
* Copyright (C) 2016 EDIT
* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
package org.cybertaxonomy.utis.store;
import java.net.URI... | 24.242424 | 113 | 0.72875 |
61fa44d70d96057b239a4e4040dcd0d199b0fef1 | 2,146 | /*
* This is the MIT license, see also http://www.opensource.org/licenses/mit-license.html
*
* Copyright (c) 2001 Brian Pitcher
*
* 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... | 31.101449 | 133 | 0.671948 |
b9c00cf42222adf0645598f76ce7ea2330f1a227 | 2,996 | package com.lanking.uxb.service.adminSecurity.api.impl;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.spr... | 32.215054 | 98 | 0.76769 |
3de69598a4af18f03626a25f71c862807dd045e2 | 1,206 | package com.raj.moh.sanju.vines.singlevideoinforesponse;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.raj.moh.sanju.vines.pojo.channellistresponse.Thumbnails;
public class Snippet {
@SerializedName("publishedAt")
@Expose
private String published... | 22.754717 | 67 | 0.680763 |
ef5e024bc60f38aa340a207a6d76b5baa89c5833 | 296 | package com.deyatech.admin.mapper;
import com.deyatech.admin.entity.MetadataCategory;
import com.deyatech.common.base.BaseMapper;
/**
* <p>
* 元数据分类 Mapper 接口
* </p>
*
* @Author lee.
* @since 2019-08-07
*/
public interface MetadataCategoryMapper extends BaseMapper<MetadataCategory> {
}
| 17.411765 | 78 | 0.733108 |
99a580ae401de9211488a50c35ef7296012be5d0 | 823 | package gov.noaa.models.gridpoints;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.google.gson.GsonBuilder;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import gov.noaa.Feature;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstr... | 25.71875 | 91 | 0.784933 |
08f8ed8d1a588b18d19beece0e7d1a92d32ae0f1 | 1,250 | package edu.stanford.math.plex4.test_utility;
import cern.colt.Timer;
/**
* This class contains static methods for measuring time intervals. It is exists
* for convenience purposes so that one doesn't have to instantiate an object whenever
* one wishes to measure a time interval.
*
* @author Andrew Tausz
*
*/... | 18.382353 | 86 | 0.6312 |
1f6e6dd5907c70b1eeb21006bc4d43079a6d78b9 | 5,514 | /** */
package src.main.gov.va.vha09.grecc.raptat.gg.oneoffs.io;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import src.main.gov.va.vha09.grecc.raptat.gg.datastructures.annotationcomponents.AnnotatedPhrase;
import src.main.gov.va.vha09.grecc.raptat.gg.datastructur... | 27.708543 | 100 | 0.714908 |
6c9bfb4b6c725af9b12aea2e2c2820dd257c5b6e | 2,959 | package com.twu.biblioteca;
import com.twu.biblioteca.exceptions.BookNonexistentException;
import com.twu.biblioteca.exceptions.BookUnavailableException;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.core.Is.is;
... | 27.398148 | 113 | 0.634336 |
e0f9e348b1b9cd83f60535f64a6207974fc0f4cf | 2,684 | /**
* 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... | 44 | 123 | 0.762668 |
b2ea13dda8ae0eb3fca3e346736828cbf126a1dc | 2,334 | package com.qvalent.quickstreamapi.model.response;
import com.qvalent.quickstreamapi.model.common.Status;
public class Customer
{
private final String customerId;
private final String customerName;
private final String supplierBusinessCode;
private final String customerNumber;
private fi... | 24.3125 | 81 | 0.584404 |
7e0b743d40c9105db4ae7cacac63c755c1bf283a | 9,389 | /*
* Class: RandomStreamWithCache
* Description: random stream whose uniforms are cached for more efficiency
* Environment: Java
* Software: SSJ
* Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
* Organization: DIRO, Universite de Montreal
* @author
* @since
*
*
* Licensed... | 34.391941 | 77 | 0.653637 |
a53858265d62fe7aff6ba9be29a1b5c5cb45f506 | 2,243 | //
// Ce fichier a été généré par l'implémentation de référence JavaTM Architecture for XML Binding (JAXB), v2.2.8-b130911.1802
// Voir <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Toute modification apportée à ce fichier sera perdue lors de la recompilation du schéma source.
// Généré ... | 33.984848 | 194 | 0.730272 |
19dc22804bc4554c623a0fdf25b42b12c6f91ecb | 1,270 | /*
* File name: ArrayEval.java
*
* Programmer : Jake Botka
*
* Date: Aug 17, 2020
*
*/
package main.org.botka.utility.api.data.structures.arrays;
/**
* Utility class for array evaluations
*
* @author Jake Botka
*
*/
public class ArrayEval {
/**
*
* @param arr
* @return
*/
public static double ... | 14.767442 | 58 | 0.558268 |
0c53936137796c065d1f031d2de0c9bd79bbb18b | 7,413 | package org.gearvrf.animation.keyframe;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import org.gearvrf.GVRBone;
import org.gearvrf.GVRComponent;
import org.gearvrf.GVRContext;
import... | 33.849315 | 118 | 0.612573 |
e6c4929e1941f87f0dba372cbd6010f39415679a | 10,209 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
*/
package cbi... | 42.012346 | 188 | 0.765011 |
d4f43fbcd6ce7fd084fc00bee1d914634297d7f0 | 582 | package io.mzlnk.springframework.multitenant.oauth2.resourceserver.resolver.token;
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
import javax.servlet.http.HttpServletRequest;
public class ... | 32.333333 | 90 | 0.821306 |
8f805a03dfedc3221b846db247f93eca3a3a7fd4 | 710 | /**
*
* @author gurnoor
*/
package nl.esciencecenter.qtm.utils;
public class NumberFormat {
private String number;
private String format;
private float value;
public NumberFormat(String num, String form) {
this.number = num.replace(" ", "");
this.format = form;
try {
value = Float.parseFloat(num);
... | 16.511628 | 47 | 0.666197 |
3fee4c5749969b43980e58267b942b8d29da3e59 | 8,023 | package br.com.mvbos.fillit;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.... | 40.520202 | 160 | 0.67319 |
9e5a372685c147124e58a9e9f5491e953219e65f | 5,318 | package me.zohar.runscore.dictconfig.service;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.cri... | 35.691275 | 108 | 0.778112 |
54d7c71762e8011284409192627ca2d37b132aed | 4,818 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 47.70297 | 118 | 0.795558 |
6c965bc1dd40e79dd80c7c87488a6fb15fb8367a | 36,034 | package com.github.jarvisframework.tool.core.io;
import com.github.jarvisframework.tool.core.convert.Convert;
import com.github.jarvisframework.tool.core.exception.UtilException;
import com.github.jarvisframework.tool.core.lang.Assert;
import com.github.jarvisframework.tool.core.text.StringBuilder;
import com.github.j... | 29.367563 | 151 | 0.576039 |
fe39f902b58e54e055360071747502d94522573d | 15,627 | /*
* 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... | 40.908377 | 139 | 0.617521 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.