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 |
|---|---|---|---|---|---|
44ce8311db698f06b7efc88e0375d9452e47270a | 660 | package cz.xtf.junit.annotation;
import cz.xtf.junit.filter.ExclusionTestNameFilter;
import cz.xtf.junit.filter.InclusionTestClassFilter;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Method anno... | 27.5 | 83 | 0.792424 |
d32f58b49b98a49efdf94aa9823c370f3c0bc83b | 2,867 | /*
* (C) Johannes Kepler University Linz, Austria, 2005-2013
* Institute for Systems Engineering and Automation (SEA)
*
* The software may only be used for academic purposes (teaching, scientific
* research). Any redistribution or commercialization of the software program
* and documentation (or any part thereo... | 36.291139 | 92 | 0.753052 |
4ecca48022bd36ad5052b36dd81edc0916d75b22 | 7,037 | package net.asifhossain.devopsbuddy.web.controllers;
import net.asifhossain.devopsbuddy.backend.persistence.domain.backend.PasswordResetToken;
import net.asifhossain.devopsbuddy.backend.persistence.domain.backend.User;
import net.asifhossain.devopsbuddy.service.EmailService;
import net.asifhossain.devopsbuddy.service.... | 39.533708 | 115 | 0.711525 |
a0c31cedf54e29e11e1f8e6e74160131b78f4f8b | 531 | package org.springframework.http.client;
import java.io.IOException;
import java.net.URI;
import org.springframework.http.HttpMethod;
@Deprecated
public interface AsyncClientHttpRequestFactory {
AsyncClientHttpRequest createAsyncRequest(URI paramURI, HttpMethod paramHttpMethod) throws IOException;
}
/* Location: ... | 33.1875 | 153 | 0.777778 |
40de94bd6af7ed00b99a5519bed5ed11c23fe1a4 | 558 | package org.openecomp.sdc.be.servlets;
import org.eclipse.jetty.http.HttpStatus;
import org.springframework.stereotype.Component;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Component
@Provider
public class DefaultExceptionMapper implements ExceptionMap... | 25.363636 | 75 | 0.743728 |
3c817e0be2195b5053b721e12376031c1165650e | 249 | package com.heroengineer.hero_engineer_backend.quiz;
import org.springframework.data.mongodb.repository.MongoRepository;
/**
* Repository for querying Quiz documents.
*/
public interface QuizRepository extends MongoRepository<Quiz, String> {
}
| 22.636364 | 71 | 0.811245 |
e30fefbdafb474ebdf8f597dc188d760beffce31 | 5,526 | // Copyright 1997-2000
// Association for Universities for Research in Astronomy, Inc.,
// Observatory Control System, Gemini Telescopes Project.
// See the file LICENSE for complete details.
//
// $Id: SeqRepeatSmartGcalObs.java 37915 2011-10-07 03:29:28Z fnussber $
//
package edu.gemini.spModel.gemini.seqcomp;
impor... | 30.032609 | 129 | 0.63536 |
228462a7a2437d16628316b18fc20d0adebd5f84 | 21,997 | /*
* 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... | 37.991364 | 95 | 0.559349 |
e827251b08c44c5c5ef42ffc91aedf83bfe9b555 | 2,935 | /*
*
* 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"); ... | 22.234848 | 76 | 0.678024 |
1c0227e666036dab7bdc462db8c2dc1bbb324e80 | 5,296 | /*
* Copyright 2020-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 36.777778 | 120 | 0.691654 |
3d225beaef0364feeaee8e5f559f3c341f158380 | 12,807 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 39.527778 | 138 | 0.703912 |
aa33012c245a75ca5b84eb574a3eed88c88aa59f | 2,886 | package collagene.io.trace;
import java.util.ArrayList;
import java.util.HashMap;
import collagene.sequtil.NucleotideUtil;
/**
*
* One sequence from a sequencer (that is, normally from Sanger sequencing)
*
* @author Johan Henriksson
*
*/
public class SequenceTrace
{
public int[] levelA, levelT, levelC, le... | 21.220588 | 90 | 0.676369 |
1ba84f273ef0f6637f825bfd60f6347fbee09853 | 1,989 | package net.simpleframework.workflow.engine;
import java.util.Properties;
import net.simpleframework.ado.query.IDataQuery;
import net.simpleframework.common.coll.KVMap;
import net.simpleframework.ctx.service.ado.db.IDbBeanService;
/**
* Licensed under the Apache License, Version 2.0
*
* @author 陈侃(cknet@126.com,... | 19.693069 | 98 | 0.693313 |
edf27b571f2325ab8fb25216ecfdf3b2c31e6aeb | 6,704 | /*-------------------------------------------------------------------------+
| |
| Copyright 2005-2011 The ConQAT Project |
| |
| Licensed u... | 38.090909 | 85 | 0.631862 |
c520bca6776db168e424777b333bc93afc20fb2e | 1,980 | package jep.test.numpy;
import jep.Jep;
import jep.JepException;
/**
* A test class that illustrates how numpy's floating point error handling can
* cause python to deadlock trying to acquire the GIL. More specifically,
* ufunc_object.c calls NPY_ALLOW_C_API which attempts to acquire the GIL.
* Python is confused... | 31.935484 | 79 | 0.582323 |
d3d49a3216c94494e6e227bfc0dabd02f212b5cf | 3,110 | package pt.ulisboa.tecnico.socialsoftware.tutor.statement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.ann... | 43.802817 | 162 | 0.749839 |
6b5323e470ec454e3cc11e8e1f4a4be4e824ed55 | 20,511 | // Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the 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 restricti... | 42.030738 | 170 | 0.687192 |
f947c34baac7a2b8f1be90040470b57439fb2867 | 3,149 | package exame;
import java.util.Arrays;
import java.util.LinkedList;
class Matriz {
char[][] m;
int size;
Matriz (int k) {
m = new char[k][k];
size = k;
for (int i = 0; i < k; i++)
for (int j = 0; j < k; j++) {
m[i][j] = '.';
}
}
p... | 24.992063 | 102 | 0.40362 |
486e1192604eb8f617f25ecaa96201739c5c65e8 | 1,754 | /*******************************************************************************
* Copyright (c) 2009, 2014 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany ... | 35.795918 | 82 | 0.687001 |
a85828103eea42b8bd27a54525ffaafec26d07d5 | 1,519 | package com.anthonyzero.seckill.common.exception;
import com.anthonyzero.seckill.common.core.Result;
import com.anthonyzero.seckill.common.enums.CodeMsgEnum;
import org.springframework.validation.BindException;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.annotation.Controller... | 33.755556 | 86 | 0.705069 |
fc746d06c8708d35de0cebd80009e5839b9ec52a | 843 | package es.raul.app.presentation.ui.example.interactors;
import es.raul.app.domain.model.Example;
import es.raul.app.presentation.internal.di.scope.PerFragment;
import es.raul.app.presentation.ui.base.BasePresenter;
import es.raul.app.presentation.ui.example.views.ExampleView;
import java.util.List;
import javax.injec... | 29.068966 | 90 | 0.742586 |
17a26b002167824bcafb5d885f0166526c488340 | 478 | package de.simsch.jdbc.mapper.type;
import java.lang.reflect.Field;
import java.sql.SQLException;
import java.sql.Timestamp;
final class TimestampType extends AbstractType {
TimestampType(Field field) {
super(field);
}
@Override
public void apply(Object entity) throws SQLException, IllegalAc... | 25.157895 | 88 | 0.721757 |
6d5069b30e5356fc6efbc6fe0cde50a565f38711 | 836 | package com.ximcomputerx.formusic.model;
import java.io.Serializable;
public class VersionInfo implements Serializable {
private String versionCode;
private String name;
private String url;
private String description;
public String getVersionCode() {
return versionCode;
}
public... | 19.44186 | 52 | 0.638756 |
a74e7d64ed500e9caa58181f096edf91f2fa77cc | 409 | package com.tgweb.struts2.day07;
import org.junit.Test;
public class DaoTest {
@Test
public void test() {
Dao dao = new Dao();
System.out.println(dao.getEmployees());
Employee emp1 = dao.get(100001L);
System.out.println(emp1);
dao.delete(100002L);
dao.add(new Employee(null, "EEE", "EEE@xxx.com"));
em... | 20.45 | 52 | 0.682152 |
84b232949a2665285f63f901fc68013130024f37 | 608 | package github.tornaco.android.thanox.module.activity.trampoline;
import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import util.Consumer;
public class DataBindingAdapters {
@SuppressWarnings({"unchecked", "ConstantConditions"})
@BindingAdap... | 32 | 119 | 0.78125 |
91f5bfcce4a48cf1b30931f766b742868cd04111 | 3,687 | package tn.esprit.ws.controllers;
import java.util.List;
import javax.ejb.EJB;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.... | 27.931818 | 78 | 0.697857 |
8b0dd7212b746b9a0f3df0921901d59d050e7449 | 10,108 | package gov.nist.registry.ws;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.stream.XMLStreamException;
import javax.xml.transform.TransformerConfigurationException;
import org.apache.axiom.om.OMElement;
import org.apache.axis2.context.MessageContext;
import org.apa... | 38.43346 | 137 | 0.771468 |
7b2bd966742cf00961b0aa922702606a6321fbc0 | 1,694 | /*
Priha - A JSR-170 implementation library.
Copyright (C) 2007-2009 Janne Jalkanen (Janne.Jalkanen@iki.fi)
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... | 26.46875 | 93 | 0.638135 |
c630bb075d4b718327b1ff921c91bb86ec92a337 | 708 | package com.project.convertedCode.globalNamespace.namespaces.Symfony.namespaces.Component.namespaces.Console.namespaces.Command.classes;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.runtimeconverter.runtime.nativeFunctions.runtime.function_class_exists;
import com.runtimeconverte... | 33.714286 | 136 | 0.844633 |
b6498221e3a7efe681935642aaada2a87a9203a1 | 24,822 | // ***************************************************************************************************************************
// * 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 regar... | 32.111255 | 151 | 0.635041 |
10718c5cf6f7ae9056bf03c8bd474861a08d53c8 | 6,308 | package net.markus.projects.rdfrpg.tools;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.io.IOException;
import javax.imageio.ImageIO;
import ja... | 38.938272 | 165 | 0.65409 |
fe571474a308f39e6fac00133e7d2f84950732a2 | 1,403 | package com.jimes.library.imagepicker.data;
import java.util.ArrayList;
/**
* 图片文件夹实体类
*/
public class MediaFolder {
private int folderId;
private String folderName;
private String folderCover;
private boolean isCheck;
private ArrayList<MediaFile> mediaFileList;
public MediaFolder(int fold... | 21.584615 | 113 | 0.660727 |
bd64980e5f3b4dc09970b9fd5df071ccc5e71868 | 1,747 | /*
* Copyright 2012 Benjamin Schneider
*
* 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... | 31.196429 | 76 | 0.676588 |
10bbc8b12a753e0607d747258c529061a35ebbbe | 1,346 | package xyz.mydev.msg.schedule.port;
import lombok.extern.slf4j.Slf4j;
import xyz.mydev.msg.schedule.bean.DelayMessage;
import xyz.mydev.msg.schedule.mq.producer.MqProducer;
import javax.validation.constraints.NotNull;
/**
* @author ZSP
*/
@Slf4j
public class DefaultDelayMessagePortTaskFactory implements PortTaskF... | 32.047619 | 130 | 0.684993 |
920b494a40447e8969efa9b423ebf68e0dfd589c | 3,982 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 37.214953 | 96 | 0.708438 |
f0be68519c77db8e24591ed4102e7b87fa78ffb2 | 2,020 | public class merge_two_sorted_linked_list {
public static void main(String[] args) {
ListNode list1 = new ListNode(111);
ListNode b = new ListNode(222);
ListNode c = new ListNode(333);
ListNode d = new ListNode(444);
ListNode e = new ListNode(555);
list1.se... | 28.055556 | 66 | 0.492574 |
1e2bfe369b83dda06fd93f3d8123612897c977fe | 15,120 | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... | 33.085339 | 117 | 0.756217 |
ba66b0af5b4265ceedf75978aa44c3b49d3c9d43 | 3,953 | package com.unisoft.core.workflow.work;
import com.unisoft.core.util.Context;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
/**
* implements an executable work that it's action execution result triggers a side job option work.
* th... | 31.624 | 113 | 0.601062 |
af4650866bb541f001d4942501d143cac997c2c6 | 4,001 | package com.lovecws.mumu.mmsns.modular.recommend.sqoop.jobconfig;
import org.apache.sqoop.model.MFromConfig;
import org.apache.sqoop.model.MToConfig;
import java.util.Arrays;
/**
* @author babymm
* @version 1.0-SNAPSHOT
* @Description: jdbc from link
* @date 2018-01-09 14:21:
*/
public class JdbcJobConfig exten... | 30.310606 | 144 | 0.683579 |
471b71eb722f1735bb4c7679137d11db53a7311a | 214 | package com.pizzaria.config.init;
import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer;
public class SecurityInitialize extends AbstractSecurityWebApplicationInitializer {
}
| 26.75 | 90 | 0.878505 |
cc109e3606b33cf8c1f8f1fa19e509783985614a | 511 | package com.liurui.blocking_queue_demo;
import lombok.extern.slf4j.Slf4j;
import java.util.PriorityQueue;
/**
* @author liu-rui
* @date 2020/5/25 下午4:04
* @description TODO: 源码PriorityQueue
* @since
*/
@Slf4j
public class Demo5 {
public static void main(String[] args) {
PriorityQueue<Integer> queue ... | 18.925926 | 61 | 0.60274 |
92f1a133d352a641c3555ad8ad9afa998d10b71b | 8,766 | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this s... | 40.211009 | 115 | 0.65697 |
2929af28e0159796ef69d063f416891e4e1508c0 | 448 | package io.renren.modules.house.service;
import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.house.entity.TatContractEntity;
import java.util.Map;
/**
* 合体业务主表
*
* @author zhoubin
* @email zhoubin@gigainfo.com.cn
* @date 2018-04-08 14:56:01
*/
pub... | 21.333333 | 73 | 0.765625 |
8dedce3c70919dc49eb48506f2e8913a768e0463 | 1,184 | package entity;
import java.io.Serializable;
/**
*
* @author upcnet
*/
public class Topic implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
public String name;
public Topic() {
}
public Topic(String name) {
this.name = name;
}
public Topic(Integ... | 17.671642 | 108 | 0.598818 |
01485ee8431a0ed2326b0d5d04f423cd551b6fb3 | 2,523 | /*
* Copyright 2000-2010 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... | 38.227273 | 93 | 0.773682 |
0529e99b8985aeed74837a83242bf2082c7094a5 | 703 | package com.spring.interceptor;
import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;
import java.lang.reflect.Method;
/**
* @ClassName : MyMethodCallBack
* @Description :
* @Author : Lin.cx
* @Date: 2020-07-09 22:40
*/
public class MyMethodCallBack imple... | 21.30303 | 111 | 0.732575 |
2e48249da4fb9d624ec0320df9dcf8a867d2cae2 | 699 | package com.qkbus.modules.config.service.dto;
import com.qkbus.base.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @author 少林一枝花
* @date 2021-06-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
public... | 19.971429 | 68 | 0.701001 |
6bde1baed910e3b07077ca6228995df941234f66 | 1,701 | /*
*
* 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 und... | 29.842105 | 118 | 0.705467 |
3beac418277d110b076678a6f0b89d9c5549c8fa | 2,644 | /*
* Copyright 2017-2019 University of Hildesheim, Software Systems Engineering
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | 33.897436 | 92 | 0.68003 |
46817ff1e5993ca08e80ccb28089e20c5ce3d63c | 3,446 | package com.bornium.security.oauth2openid.unit.tokenEndpoint;
import com.bornium.http.Exchange;
import com.bornium.security.oauth2openid.Constants;
import com.bornium.security.oauth2openid.ConstantsTest;
import com.bornium.security.oauth2openid.token.IdTokenVerifier;
import com.bornium.security.oauth2openid.unit.Commo... | 42.02439 | 184 | 0.614916 |
07a9a09cfcbd72f6e088d61f9a59eff29fe783ee | 5,019 | package com.skytala.eCommerce.domain.accounting.relations.giftCard;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServlet... | 33.684564 | 143 | 0.768081 |
909b2b8fc77f55ab9b503aebcbd2333639342838 | 1,517 | package com.vine.jdk8.lambda;
import java.util.Arrays;
import java.util.List;
import java.util.function.Predicate;
/**
* @author hekai
* @create 2018-04-10 下午5:10
*/
public class PredicateTest2 {
public static void main(String[] args) {
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 1... | 29.173077 | 114 | 0.576796 |
2e4b5a4cd63b4d472e3fa77fe94224246adbba77 | 1,855 | package com.browser.service;
import com.browser.dao.entity.TblBcTransaction;
import com.browser.dao.entity.TblBcTransactionEx;
import com.browser.protocol.EUDataGridResult;
import java.util.List;
import java.util.Map;
public interface TransactionService {
/**
*
* @Title: selectByPrimaryKey
* @Description:根据... | 19.123711 | 95 | 0.666307 |
be3a162dbf87deda5fdd4fb97ef18b6fc3558a1e | 352 | package service.transactionWay;
import mapper.transactionWay.TransactionWayMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class TransactionWayService implements TransactionWayMapper {
@Autowired
private TransactionWa... | 23.466667 | 68 | 0.849432 |
0bc2bce322f4bb66364dc5862984107655003155 | 336 | package com.heji.server.service;
import com.heji.server.data.mongo.MBill;
import com.heji.server.data.mongo.MBillBackup;
import java.util.List;
/**
* 目前仅仅备份已经删除的账单
*/
public interface BillBackupServer {
void backup(MBillBackup bill);
MBill getAllBacks(String book_id);
List<String> getAllBacksId(Stri... | 16.8 | 47 | 0.747024 |
a886aab116f15a6319f553f91e090357fead3ef7 | 1,707 | package com.killaxiao.library.help;
import android.content.Context;
import android.content.SharedPreferences;
/**
* 自定义sharepreferences
* @author KillaXiao
*
*/
public class MYSharedPreferences {
private SharedPreferences mySharedPreferences;
private Context _context;
private SharedPreferences.Editor editor;
... | 22.460526 | 89 | 0.745167 |
c548735dc5092cf77008cbd0ddc9abab8b564bd2 | 675 |
package mage.filter.predicate.permanent;
import java.util.Objects;
import java.util.UUID;
import mage.MageObject;
import mage.filter.predicate.Predicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
/**
*
* @author LevelX2
*/
public class EnchantedPredicate implements Predicate<Permanent> {
... | 21.09375 | 65 | 0.651852 |
38090cdc2a602064668b6c34da94de5bbdfc8cbc | 3,403 | package org.jembi.bsis.helpers.builders;
import java.util.Date;
import java.util.UUID;
import org.jembi.bsis.backingform.ComponentTypeBackingForm;
import org.jembi.bsis.backingform.LocationBackingForm;
import org.jembi.bsis.backingform.PatientBackingForm;
import org.jembi.bsis.backingform.TransfusionBackingForm;
impo... | 35.447917 | 128 | 0.81722 |
cdb5231b4118f874ab2ca289a35bbaa46136aeca | 5,041 | /*
* Copyright 2016 LINE Corporation
*
* LINE Corporation licenses this file 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 re... | 36.007143 | 108 | 0.698473 |
2ebad2fcb098b5741ec82965981df3fa0642327b | 3,993 | package javax.util.zip;
import static javax.io.File.*;
import static javax.io.Streams.*;
import static javax.util.Map.*;
import java.net.URI;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.Spliter... | 26.62 | 110 | 0.697471 |
a16c17d5cee6d9a608f173c36faf482b29099f18 | 2,920 | package com.ziroom.ziroomcustomer.newclean.b;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.growingio.android.sdk.agent.... | 25.172414 | 121 | 0.641096 |
aac1f4f2054db1c8b683adaef0b382823fadbb2e | 5,292 | package us.ihmc.footstepPlanning.graphSearch;
import us.ihmc.footstepPlanning.AStarFootstepPlanner;
import us.ihmc.footstepPlanning.graphSearch.graph.FootstepGraphNode;
import us.ihmc.footstepPlanning.graphSearch.stepChecking.FootstepCheckerInterface;
import us.ihmc.footstepPlanning.graphSearch.stepCost.FootstepCostCa... | 36.496552 | 175 | 0.711073 |
d082f35976e78fb47f10197a425cb8e906306bb0 | 664 | package de.azrael.constructors;
import de.azrael.enums.GoogleEvent;
public class GoogleSheet {
private GoogleEvent event;
private String sheetRowStart;
/**
* Default constructor
* @param _event
* @param _sheetRowStart
*/
public GoogleSheet(GoogleEvent _event, String _sheetRowStart) {
... | 17.473684 | 65 | 0.664157 |
015d81390836c476610a246faed650c9825d4d84 | 6,882 | /***********************************************************************************
* *
* Copyright (C) 2017 Erasmus MC, Rotterdam, The Netherlands *
* ... | 46.187919 | 100 | 0.537489 |
c4a4f2bf1719de5317d1b43b4c217f760bf116f6 | 210 | package org.kgmeng.sample;
public class Constant {
public static final String KEY = "image";
public static int [] images = {
R.mipmap.a,
R.mipmap.b,
R.mipmap.c,
R.mipmap.d,
R.mipmap.e};
}
| 15 | 42 | 0.633333 |
6ac71c49c9173f167facc56316c64c08abb641af | 1,168 | /**
* copyright © Nusino Technologies Inc, 2021, All rights reserved.
* dhuang05@gmail.com
*/
package com.nusino.microservices.vo.buscalendar;
import java.time.LocalDate;
import java.time.LocalTime;
public class OverridingBusinessHour {
private LocalDate day;
private LocalTime businessTimeFrom;
privat... | 23.836735 | 69 | 0.690925 |
1b9d976ee6d53679ebdd5044599f1c479a8f8110 | 1,709 | package com.example.ratatouille;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.widget.ProgressBar;
public class MainActivity extends AppCompatActivity {
ProgressBar progressbar;
priv... | 34.877551 | 90 | 0.544763 |
17d7ddbe1a437e7f55c9235e01e62f8bb21bdfbf | 12,086 | /*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 28.707838 | 80 | 0.558663 |
83e0deb983a02ae7cdf70434725805fed5b7141a | 3,739 | package repast.simphony.visualization.editor;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.piccolo2d.PNode;
import org.piccolo2d.extras.handles.PHandle;
import org.piccolo2d.extras.util.PBoundsLocator;
import org.piccolo2d.extras.util.PNodeLocator;
import org.piccolo2d.util... | 31.957265 | 91 | 0.681733 |
8009d7f1ccfd9ec555276644980512dbd256a089 | 301 | /**
* @Project : GoF
* @Package : cn.geekhall.arch.spi
* @File : Cat.java
* @Descriptioni : TODO
* @Author : yiny
* @Date : 2021/4/28 22:04
*/
package cn.geekhall.arch.spi;
public class Cat implements IShout {
@Override
public void shout() {
System.out.println("喵喵~");
}
}
| 17.705882 | 36 | 0.601329 |
1cac0baf0778c868d830e59c47f30ebfd0439902 | 1,862 | package com.github.diegopacheco.sandbox.java.netflixoss.governator.poc;
import java.util.List;
import com.github.diegopacheco.sandbox.java.netflixoss.governator.poc.exs.ExampleObjectA;
import com.github.diegopacheco.sandbox.java.netflixoss.governator.poc.exs.ExampleObjectB;
import com.google.common.collect.Lists;
imp... | 39.617021 | 126 | 0.704082 |
ff1d2101ac9d70a5d1eee191301b8b8641bb3b98 | 3,920 | package com.gt.jacoco.utils;
import com.gt.jacoco.entity.MethodReference;
import lombok.extern.slf4j.Slf4j;
import org.dom4j.Document;
import org.eclipse.jgit.diff.DiffEntry;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | 44.044944 | 190 | 0.680357 |
b6aa5b3bf9dc559110d75ea63c9a4d9cbae8e885 | 101 | package ftc.library.MaelUtils.robot.opmodes;
public interface StopCondition {
boolean stop();
}
| 16.833333 | 44 | 0.762376 |
8857e168de40cc25f1016ae791f0953d226a75f3 | 1,715 | package com.yunikov.algorithms.sort;
import com.yunikov.algorithms.AlgorithmTest;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
public class BigDataSortTest extends AlgorithmTest {
private static final int[] UNSORTED_RANDOM_BIG_NUMBERS_ARRAY = generateRandomAr... | 29.568966 | 109 | 0.692711 |
19064ba14f798945dcaac0a8dacb3c72d3a9d59b | 4,757 | /*
* The MIT License
*
* Copyright 2018
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | 30.88961 | 104 | 0.599327 |
38653126ddebe9e55efdfeda1cdf9d8c22ff7f70 | 377 | package cn.aurochs.www.config;
/**
* 配置对象
*/
public interface Config {
/**
* 获取配置项
* @param <T> -- 多态类型
* @param name -- 配置项名称
* @return -- 配置值
*/
<T> T getItem(String name);
/**
* 获取配置项
* @param <T> -- 多态类型
* @param name -- 配置项名称
* @param defaultValue -- 默认值,如果没有找到配置,返回默认值
* @return -- 配... | 14.5 | 45 | 0.557029 |
4029cf1b0676d0fb4f11306a1452aec7527bb9ef | 6,495 | /*
* Copyright (C) 2018 Raffaele Conforti (www.raffaeleconforti.com)
*
* This program 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 3 of the License, or
* (at your option) an... | 36.284916 | 99 | 0.654503 |
09603be193e541eadf0ef5d288ed1a6357d8359d | 1,939 | /* Demo 3 - We've seen that if an instance variable's class is not serializable,
* we will get a NotSerializableException. We can get around this by making it
* serializable. However, if we don't have access to the class, what can we do?
* Answer:
* Step 1: We can make the instance variable transient.
* ... | 33.431034 | 111 | 0.708613 |
adcae56b20571dec6f9678f5eb83902451dedd90 | 1,454 | package org.springframework.security.messaging.web.socket.server;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest;
i... | 34.619048 | 115 | 0.808116 |
5007f2f9e8b25cbf208cd726a8ce5455e4a1d719 | 2,118 | package com.github.tomakehurst.wiremock.http;
import org.apache.http.client.methods.HttpGet;
import org.junit.Test;
import org.junit.function.ThrowingRunnable;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import javax.net.ssl.SSLException;... | 37.157895 | 117 | 0.661473 |
f475bf2efb7110b8533bc123dcf43a8837450cbf | 4,058 | package com.checkmarx.sdk.utils.zip;
import com.checkmarx.sdk.utils.ScanUtils;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.util.Arrays;
import ... | 38.647619 | 131 | 0.579596 |
fdbc488c60a845af72eb70ef59c9e7b349f6f0ee | 961 | /**
* Leetcode - lemonade_change
*/
package com.duol.leetcode.y20.m12.d10.no860.lemonade_change;
import java.util.*;
import com.duol.common.*;
/**
*
*/
class Solution1 implements Solution {
public boolean lemonadeChange(int[] bills) {
int fiveCount = 0;
int tenCount = 0;
for (int bil... | 22.348837 | 60 | 0.394381 |
8bbdc8d03f6a0964419ceaa0610afab550763e52 | 6,193 | /*
package com.infoclinika.mssharing.autoimporter.service;
import com.google.common.base.Predicate;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.infoclinika.mssharing.autoimporter.model.Context;
import com.infoclinika.ms... | 41.844595 | 115 | 0.703698 |
5487f9236fc9da5458ba5e7437b1aef0b56d8973 | 3,748 | package problems;
/**
* https://leetcode.com/problems/unique-binary-search-trees/description/
* algorithms
* Medium (41.88%)
* Total Accepted: 149.4K
* Total Submissions: 355.3K
* Testcase Example: '3'
Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n?
Example:
... | 48.675325 | 796 | 0.628602 |
553d7740489fe729166c8ca8ef8c7834db3663ad | 2,519 | package org.bukkit.event.player;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Holds information for player teleport events
*/
public class PlayerTeleportEvent extends Playe... | 26.797872 | 157 | 0.607384 |
2a12757abddd6b60dcd886c0ce0550e2fd279cdc | 52,351 | /*******************************************************************************
* Copyright (c) 2015, 2016 Substance Abuse and Mental Health Services Administration (SAMHSA)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | 38.807265 | 187 | 0.749651 |
00eaf5ca71a96f03f4d385575ec363e2555677e3 | 1,651 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 33.693878 | 97 | 0.766202 |
f871f0ddd332804d79d505b2e9261d733036dc6d | 330 | package io.sharq.platform.kvs.kafka;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import io.vertx.mutiny.core.Vertx;
@ApplicationScoped
public class VertxMutinyProducer {
@Produces
public Vertx vertx(io.vertx.core.Vertx v) {
return Vertx.newInstance(v);... | 19.411765 | 50 | 0.754545 |
3f0fb3d2256dcb21400c5fe6b58eed004b7420cc | 796 | package com.ukefu.webim.service.repository;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import com.ukefu.webim.web.... | 31.84 | 83 | 0.785176 |
083437c2cc7b3ecfa28597f3451e630355280533 | 335 | enum Days {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
}
// this is actually
/*
public final class Days extends Enum<Days> {
public static final Days[] values { .. }
public static Days valueOf(String name) { .. }
public static final Days MONDAY;
public static final Days TUESDAY;
:
... | 16.75 | 64 | 0.680597 |
c5778483dfed1e2ae1876a1f8c45616a7be6d7ee | 5,899 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 NBCO YooMoney LLC
*
* 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... | 38.809211 | 109 | 0.661977 |
c8119c153ccb8e3bcfa406f808c172f2a044be45 | 1,701 | package cn.ezandroid.ezfilter.view;
import cn.ezandroid.ezfilter.EZFilter;
import cn.ezandroid.ezfilter.core.FBORender;
import cn.ezandroid.ezfilter.core.FilterRender;
import cn.ezandroid.ezfilter.core.RenderPipeline;
import cn.ezandroid.ezfilter.core.environment.IFitView;
import cn.ezandroid.ezfilter.extra.IAdjustabl... | 27 | 105 | 0.694297 |
8696aad5678a48ce6b34813467f44f5765cdb3ff | 3,680 | /**
* Copyright (c) 2008-2016, Massachusetts Institute of Technology (MIT)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyri... | 27.259259 | 81 | 0.760598 |
a2689143ea0e08b5f93b24663c1a16994736a70e | 624 | package org.innovateuk.ifs.competition.resource;
import org.innovateuk.ifs.organisation.resource.OrganisationTypeEnum;
/**
* Interface to be shared between the Competition and CompetitionResource to declare methods that define the configuration
* of a project form.
*/
public interface ProjectConfiguration {
A... | 36.705882 | 136 | 0.81891 |
4a0a91d20588bb6e542d08728333cbe11ca4f990 | 1,984 | package bdd.paroleparom1report;
import cucumber.api.java.en.Given;
import views.pages.paroleparom1report.SourcesPage;
import javax.inject.Inject;
public class SourcesSteps {
@Inject
private SourcesPage page;
@Given("^Delius user is on the \"Sources\" UI within the Parole Report$")
public void delius... | 56.685714 | 240 | 0.745968 |
5eb0892de3aca0598306802734e36c60c1f3cbc7 | 3,516 | package net.hcriots.hcfactions.tab;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.even... | 26.839695 | 173 | 0.732366 |
62e574e788a23fea7eb7f9d84a96963e1b64e28a | 4,739 | package foundation.icon.iconex.wallet.create;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import androi... | 32.238095 | 128 | 0.637898 |
2e9bd5594f38783d4f273a28987e4a687c2c3c15 | 2,102 | package org.apache.hadoop.mapreduce.jobhistory;
@SuppressWarnings("all")
public class TaskAttemptUnsuccessfulCompletion extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = org.apache.avro.Schema.parse("{\"type\"... | 52.55 | 528 | 0.682207 |
1044fc7666b4a80e1b6666fd045b09b9cb2838e6 | 1,480 | package com.aliyun.ros.cdk.core;
/**
* Converts all fragments to strings and concats those.
* <p>
* Drops 'undefined's.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.53.0 (build c071d26)", date = "2022-02-11T01:44:06.817Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.core.$Module.class, fqn = "@... | 41.111111 | 198 | 0.721622 |
cc102122da86b1bdad0be221250d0eb7c48e4f21 | 317 | package com.intel.realsense.librealsense;
import android.hardware.usb.UsbDeviceConnection;
class UsbDesc {
public UsbDesc(String n, int d, UsbDeviceConnection c) {
name = n;
descriptor = d;
connection = c;
}
String name;
int descriptor;
UsbDeviceConnection connection;
}
| 21.133333 | 60 | 0.675079 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.