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 |
|---|---|---|---|---|---|
47a4ea5cc768116e5eecd412771da3f525b5200f | 391 | package com.sxu.smartpicture.choosepicture;
import android.net.Uri;
/**
* @author Freeman
* @date 17/11/8
*/
public interface OnChoosePhotoListener {
/**
* 从相册选择图片
* @param uri uri != null表示成功,否则表示失败
*/
void choosePhotoFromAlbum(Uri uri);
/**
* 拍照
* @param uri
*/
void choosePhotoFromCamera(Ur... | 12.612903 | 43 | 0.636829 |
22ef2eff50f09017617cee88a37d07db8a36250f | 2,609 | package org.cloudbus.cloudsim.container.containerVmProvisioners;
import org.cloudbus.cloudsim.container.core.ContainerVm;
/**
* Created by sareh on 10/07/15.
*/
public abstract class ContainerVmRamProvisioner {
/**
* The ram.
*/
private float ram;
/**
* The available availableRam.
... | 22.110169 | 90 | 0.623227 |
08561ff425c7f3964ba822abc34bb35f2970ce63 | 290 | package at.uibk.dps.ee.guice.modules;
import org.opt4j.core.config.annotations.Category;
/**
* Parent class for all modules configuring the creation of the input for the
* EE.
*
* @author Fedor Smirnov
*
*/
@Category("Input")
public abstract class InputModule extends EeModule {
}
| 19.333333 | 77 | 0.734483 |
f681cd88c2d0f19fee7da66602b8305e584b19f9 | 2,496 | package com.qht.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 在线课堂
*
* @author yangtonggan
* @email 2466607841@qq.com
* @date 2018-11-19 18:25:28
*/
@Table(name = "classroom")
p... | 17.213793 | 52 | 0.595753 |
11255148553093b06df845aeb028eb59d8437fa1 | 2,679 | /*
* Copyright 2018-2020 The Code Department.
*
* 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 applic... | 27.618557 | 81 | 0.602464 |
62e5c92e3d6bf6c19e99d911683432d1bd4999ce | 3,862 | package commons.tools;
import jade.core.AID;
import jade.core.Agent;
import jade.domain.DFService;
import jade.domain.FIPAAgentManagement.DFAgentDescription;
import jade.domain.FIPAAgentManagement.Property;
import jade.domain.FIPAAgentManagement.SearchConstraints;
import jade.domain.FIPAAgentManagement.ServiceDescript... | 30.650794 | 109 | 0.627136 |
729270e9063feec22f3893071f1887f291aa55e8 | 2,678 | package uk.gov.ida.notification.contracts.verifyserviceprovider;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.joda.time.DateTime;
import org.joda.time.chrono.ISOChronology;
import org.joda.time.format.ISODateTimeFormat;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
impor... | 28.795699 | 99 | 0.666169 |
e378f0d4906871eb34bda52ee142cf3075a3e221 | 201 | package dmt.server.service.dto;
import dmt.server.data.entity.UserEntity;
/**
* @author Marco Romagnolo
*/
public class UserDTO {
public UserDTO(UserEntity user) {
}
public UserDTO() {
}
}
| 11.166667 | 41 | 0.691542 |
b351a298c872241adabf64cb504da8850eb398a9 | 30,463 | package com.madzera.happytree;
import com.madzera.happytree.exception.TreeException;
/**
* Provides ways of handling elements within the tree session. With this, turn
* on possible to create, persist, update, cut, copy, remove, retrieve elements
* and any other operations within the tree.
*
* <p>This interface ... | 38.031211 | 81 | 0.667827 |
870631bc75e77aff1c1f4caa9ed01be60fb78ca0 | 10,372 | /*
* Copyright (c) 2017, Keitaro Makii and Hiromu Ohtsuka
*/
package tw.heuristic;
import java.util.ArrayList;
import java.util.BitSet;
public class CutDecomposer{
public static final int LN = 2000;
public static final int HN = 100000;
public static final int HM = 1000000;
public static final int ONET = 400... | 23.680365 | 98 | 0.573949 |
5176a69b963d4ddd124db32efcb440183bc41eb6 | 808 | package Imm.AsN.Expression.Arith;
import CGen.MemoryMap;
import CGen.RegSet;
import CGen.StackSet;
import Exc.CGEN_EXC;
import Imm.ASM.ASMInstruction;
import Imm.ASM.Processing.Arith.ASMSub;
import Imm.ASM.Util.Operands.RegOp;
import Imm.ASM.Util.Operands.RegOp.REG;
import Imm.AST.Expression.Arith.Sub;
import Imm.AsN.... | 25.25 | 89 | 0.738861 |
cefdff1870f8777c3daf27f633c00a0139dbc2f0 | 7,435 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.ml.action;
import org.apache.logg... | 50.578231 | 137 | 0.682313 |
cbdef9f8793ef413141cb82db4ef746e0231edb9 | 779 | package com.dslplatform.patterns;
public class Either<T> {
private final T value;
private final Throwable error;
private Either(final T value, final Throwable error) {
this.value = value;
this.error = error;
}
public boolean isSuccess() { return error == null; }
public T get() { return value; }
public Thr... | 26.862069 | 72 | 0.686778 |
9934cc349844e3a176324b01599f67d61474080d | 2,473 | package uk.co.castlewater.myaccount.integration.service.impl;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InOrder;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;
import uk.co.castlew... | 31.705128 | 91 | 0.746866 |
a3e6639b9bd205e0fc98515da1db5c10491e2410 | 497 | package com.revolsys.swing.map.layer.record;
import com.revolsys.record.AbstractRecord;
public abstract class AbstractLayerRecord extends AbstractRecord implements LayerRecord {
private final AbstractRecordLayer layer;
public AbstractLayerRecord(final AbstractRecordLayer layer) {
if (layer == null) {
t... | 24.85 | 89 | 0.752515 |
04fcc590e2382753d82c0ef4d5c92088ba9a076e | 2,947 |
package org.apereo.cas.config;
import com.google.common.base.Throwables;
import org.apereo.cas.config.monitor.ConfigurationDirectoryPathWatchService;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.CasConfigurationPropertiesEnvironmentManager;
import org.slf4j.Logge... | 42.1 | 145 | 0.743807 |
0e123979af2240ae8c3a4532b4c9ece2b9db28ae | 1,848 | package ru.job4j.list;
import org.hamcrest.core.Is;
import org.junit.Before;
import org.junit.Test;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/**
* Class Кл... | 27.176471 | 90 | 0.643398 |
f234bcba52b5878c5adc4a22e94c27b421e18cc7 | 8,837 | /*
* Copyright 2011-2018 Hippo B.V. (http://www.onehippo.com)
*
* 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... | 36.366255 | 162 | 0.670929 |
25405975cac45200f2ef9fa0427b377a5e6662d3 | 3,169 | /**
* MIT License
*
* Copyright (c) 2017-2021 Julb
*
* 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, modif... | 37.282353 | 107 | 0.713159 |
944d676ccd1b534c0600ecd5f15e9feba8cc6a59 | 6,117 | package org.fluxtream.admintools;
import java.sql.*;
import java.util.*;
/**
* User: candide
* Date: 15/05/13
* Time: 10:33
*/
class CleanupNullApiKeyIds {
public static final String FACET_TABLE_NAMES = "Facet_BodymediaBurn " +
"Facet_BodymediaSleep " +
"Facet_BodymediaSteps " +
... | 46.340909 | 245 | 0.620893 |
62077f4be534995b2611a4841297f6bb071d75d4 | 1,208 | package pl.mmorpg.prototype.client.objects;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.utils.Array;
public class CustomAnimation<T> extends Animation<T>
{
private float stateTime = 0.0f;
public CustomAnimation(float frameDuration, Array<? extends T> keyFrames, PlayMode playMode)
{
... | 21.963636 | 93 | 0.737583 |
e62cd792800d02d66708e3452acd9d9c9daf5b04 | 283 | package com.yrainy.library.server.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yrainy.library.server.pojo.Area;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zhanglun
* @since 2022-02-27
*/
public interface AreaMapper extends BaseMapper<Area> {
}
| 16.647059 | 55 | 0.713781 |
7a780bc84ded1f2695e6b0567a01def62628fbb0 | 3,529 | // --------------------------------------------------------------------------------
// Copyright 2002-2022 Echo Three, 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:/... | 40.563218 | 182 | 0.702749 |
6adc4168e6167b33d65957bb4199331754bbe3b1 | 506 | package it.smartcommunitylab.aac.api.scopes;
import it.smartcommunitylab.aac.scope.Resource;
public class AdminResource extends Resource {
public static final String RESOURCE_ID = "aac.admin";
@Override
public String getResourceId() {
return RESOURCE_ID;
}
// TODO replace with keys for ... | 20.24 | 57 | 0.666008 |
80f93ec359459d2fa8c9cda036b4553bd0a071be | 12,594 | package io.scalecube.cluster.utils;
import io.scalecube.cluster.transport.api.Message;
import io.scalecube.net.Address;
import java.time.Duration;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadLocalRandom;
im... | 30.567961 | 100 | 0.690091 |
453b72de245dda67adb5aabe7a16be90612e6949 | 11,636 | import javax.swing.*;
import java.awt.*;
import java.awt.datatransfer.StringSelection;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStre... | 32.322222 | 105 | 0.575885 |
29c1a8835e9bfbe1eb573b061afa0abf68faf2f1 | 3,831 | /**
* 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 PerDa;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.sql.Timest... | 33.605263 | 138 | 0.579483 |
05ed1e64d4b512eb7a5f70118fa5b118e39f1ca7 | 5,934 | package i2.act.util;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Predicate;
public final class LRUCache<K, V> implements Map<K, V>... | 24.024291 | 84 | 0.656555 |
e4cf075990228e411e043febc606e17c43a2d5d0 | 7,593 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.opentelemetry.exporter.azuremonitor.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* An instance of R... | 28.761364 | 119 | 0.638483 |
70c4ea876f0eee5e88794b325315d7e79a7a34fe | 934 | package org.spring.services.users;
import org.spring.helpers.HelperUser;
import org.spring.models.User;
import org.spring.repository.RepositoryUser;
import org.spring.responses.ResponseBuilderUser;
import org.spring.services.StrategyService;
import org.spring.responses.Response;
import org.springframework.beans.factor... | 23.948718 | 64 | 0.72591 |
f7d36f7295f402dce141d809db53c729cc800c63 | 3,664 | package me.javaroad.mcloud.demo.config;
import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.C... | 35.572816 | 120 | 0.715338 |
93cd9ecb50bc08437c3bcd85ebf27d748a84dece | 21,753 | package com.binance.connector.client.impl.spot;
import com.binance.connector.client.enums.HttpMethod;
import com.binance.connector.client.utils.ParameterChecker;
import com.binance.connector.client.utils.RequestHandler;
import java.util.ArrayList;
import java.util.LinkedHashMap;
/**
* <h2>Wallet Endpoints</h2>
* Al... | 46.480769 | 134 | 0.671034 |
4b7697bb325e194e8747a8b868b259289be62e25 | 1,523 | package io.junq.examples.usercenter.client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
import io.junq.examples.common.client.CommonPath... | 26.258621 | 68 | 0.720946 |
47805ca37e9f7c627534244bee3ffef04a3f7399 | 179 | /**
*
*/
package com.isaacbrodsky.freeze2.menus;
/**
* @author isaac
*
*/
public interface TypingInteraction extends UIInteraction {
boolean keyTyped(int key, int mod);
}
| 13.769231 | 58 | 0.692737 |
c45a837d6ba141b35c8a8fb14ac22aac8424219e | 3,810 | package ru.job4j.h3servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ru.job4j.h2http.User;
import ru.job4j.h2http.UserServlet;
/**
* Вкладка /edit.
* @author Vitaly Vasilyev, date: 28.10.2018, e-mail: ... | 45.357143 | 127 | 0.361417 |
6e4cc29dbc7ea078453bc23a5e5b55eac133813e | 239 | package victor.training.jpa.app.repo;
import victor.training.jpa.app.common.data.CustomJpaRepository;
import victor.training.jpa.app.domain.entity.LabActivity;
public interface LabRepo extends CustomJpaRepository<LabActivity, Long> {
}
| 26.555556 | 73 | 0.828452 |
8051c85d05d6934c3da898f9b38cc8c4559c9ec0 | 901 | package org.simpleframework.xml.core;
import java.util.List;
import junit.framework.TestCase;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Path;
@SuppressWarnings("all")
public class ScannerCreatorTest extends TestCase {
private st... | 28.15625 | 93 | 0.660377 |
7fed1bef5aff2edf27c6fc5efe32d9c9aa143f7e | 1,282 | package com.github.j1stiot.mqtt.broker.handler;
import com.github.j1stiot.mqtt.api.metrics.MessageDirection;
import com.github.j1stiot.mqtt.api.metrics.MetricsService;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.Ch... | 32.871795 | 107 | 0.725429 |
a23358c014729d7a61070ba0ee6cfd893f7d7809 | 967 | package com.gwtent.gen.reflection;
import com.google.gwt.core.ext.typeinfo.JClassType;
import com.google.gwt.core.ext.typeinfo.NotFoundException;
import com.google.gwt.core.ext.typeinfo.TypeOracle;
import com.gwtent.reflection.client.Reflectable;
import com.gwtent.reflection.client.annotations.Reflect_Full;
p... | 29.30303 | 80 | 0.778697 |
e9e38e90a79e71f992745dcfbe11225f4d77cbad | 2,561 | import java.util.*;
public class FindNode
{
final int ROWS = 4;
public String findTrue(boolean[][] matrix)
{
int count = 0;
int tempHigh =0;
ArrayList<Node> tracker = new ArrayList<Node>();
Node temp;
for(int i = 0; i < ROWS ; i++)
{
for(int j = 0 ; j < matrix[i].length ; j ++ )
{
if(matri... | 21.521008 | 72 | 0.583366 |
8b2ed7ce7a0d00ffee246b23a39d378d11f41367 | 2,015 | /*
* Copyright 2013-2018 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICEN... | 30.530303 | 123 | 0.699256 |
859cc841c10c398edce8256c5a372a7735c92508 | 1,586 | package com.ray3k.template.entities;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.dongbat.jbump.Collisions;
import com.dongbat.jbump.Response.Result;
public class CameraEntity extends Entity {
private Viewport viewport;
private OrthographicCa... | 27.344828 | 92 | 0.656999 |
787f2d8af0f4696facae5a17ac62003213519eae | 2,873 | /*
* Copyright (c) 2018. Alexander Dunn
*
* 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... | 31.922222 | 115 | 0.646711 |
4c0b780f3671c2e10dfd0287507ce2f8b14db79e | 717 | package com.github.siboxd.fatturapa.model;
import org.simpleframework.xml.core.Persister;
import org.simpleframework.xml.stream.Format;
/**
* A class that will persist and read files with standard XML header<br>
* <br>
* <code><?xml version="1.0" encoding="UTF-8"?></code>
*
* @author Enrico
*/
public final clas... | 29.875 | 118 | 0.722455 |
7c4fd789fd6020f85ca621f1b1d6476a7fcd5aca | 2,091 | __________________________________________________________________________________________________
sample 1 ms submission
class Solution {
public int minCut(String s) {
int len = s.length();
int[] f = new int[len];
for (int i = 0; i < len; i++) {
f[i] = i;
}
for (... | 33.190476 | 98 | 0.455285 |
934195bccfa23e1f73f70a7c79b3c66457d09730 | 4,986 | /**
* 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... | 35.112676 | 96 | 0.6785 |
228525072f9353205742aca96887781b6f96f231 | 8,055 | package com.capitalone.dashboard.event;
import com.capitalone.dashboard.event.sync.SyncDashboard;
import com.capitalone.dashboard.model.BaseModel;
import com.capitalone.dashboard.model.Build;
import com.capitalone.dashboard.model.BuildStatus;
import com.capitalone.dashboard.model.Collector;
import com.capitalone.dashb... | 50.981013 | 184 | 0.697455 |
397ec7887a362a18424601086727a5cd22977d82 | 5,832 | /**
* 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... | 38.88 | 104 | 0.719307 |
e22d0abd85b7569751b519977d199e0a27baa5b9 | 15,406 | package com.hugocastelani.ivory.ui.myprofile;
import android.app.ActivityManager;
import android.content.Intent;
import android.content.res.Resources;
import android.support.annotation.NonNull;
import android.support.design.widget.BaseTransientBottomBar;
import android.support.design.widget.Snackbar;
import android.su... | 41.302949 | 125 | 0.585097 |
bfd1a9c62e6545326f2b8085868afd8101cc7971 | 1,214 | package fi.hiq.reference.spring_boot_reference.service.impl;
import fi.hiq.reference.spring_boot_reference.entity.Example;
import fi.hiq.reference.spring_boot_reference.repository.ExampleRepository;
import fi.hiq.reference.spring_boot_reference.service.ExampleService;
import lombok.AccessLevel;
import lombok.experimen... | 25.291667 | 75 | 0.763591 |
dce192143cf761fbfa86cb7e318bd220843583ca | 1,725 |
package com.mulama.beer_superior.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
@Parcel
public class Stats {
@SerializedName("total_count")
@Expose
Integer totalCount;
@SerializedName("monthly_count")
@Expose
... | 21.296296 | 103 | 0.652754 |
839d4d42a134c7423881f32139033ca10cef6516 | 3,401 | package de.mickare.schematicbooks.reflection;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import com.google.common.base.Preconditions;
import de.mickare.schematicbooks.util.UnsafeFunction;
import de.mickare.schematicbooks.util.UnsafeSupplier;
import lombok.Getter;
public class ReflectionFunc... | 38.647727 | 100 | 0.744781 |
2a715a8572166756acf9cf02ee2e414edea08d50 | 2,923 | /*
* Copyright 2019 Haulmont.
*
* 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... | 30.447917 | 118 | 0.725624 |
41cd4190e72ede8726142141a91805cf2c338d55 | 765 | /**
* EpocProtoGrapher v1a
* Class & Project by Stéphane Adam Garnier - 2012
*
*/
/**
*
* This file /class is a 'main' designed to be consumed by the command line
* It uses the 'EpocProtoGrapherRenderer' class to handle the drawings using Processing (..)
*
*/
package stephaneag.epocprotocomp;
public class Epoc... | 26.37931 | 101 | 0.688889 |
f6d18a981642528da4db180c6c92c98d529e9d36 | 4,352 | /* ====================================================================
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... | 36.266667 | 91 | 0.651195 |
2d3a09708c4fe2d585afe85feb4baa0ed2a35835 | 350 | //Copyright
package com.ethercis.servicemanager.common.property;
import junit.framework.TestCase;
public class PropStringTest extends TestCase {
/** java org.xmlBlaster.common.property.PropString */
public void testString() {
PropString dummy = new PropString("propName", null);
System.out.pr... | 23.333333 | 60 | 0.714286 |
ef8992599bbe0606b63e75c7dbc85ab3595b03c3 | 566 | package com.sct.service.database.condition;
public class ScPropertyStaffCondition implements ConditionQuery {
private Integer staffType;
private String name;
public static ScPropertyStaffCondition of() {
return new ScPropertyStaffCondition();
}
public String getName() {
return na... | 20.214286 | 65 | 0.662544 |
efcfda07c36233a9aefeef5ad82cc5da95358e19 | 731 | /**
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
package com.wegas.core.persistence.game;
import com.wegas.core.Helper;
import javax.persistence.Entity;
/**
*
* @author Francois-Xavier Aeberhard (fx at r... | 22.151515 | 152 | 0.659371 |
ff25aa52ba0f2bd40c3826551b72aa0553a119a4 | 2,745 | package dhdhxji.ui;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import dhdhxji.ui.common.LoginInterface;
import java.awt.*;
import java.awt.event.*;
import java.util.Vector;
public class Login extends JFrame {
public Login() {
super("L... | 25.896226 | 88 | 0.586521 |
c6c4464b7966cf4f32c22034fb28f64749ae5bbe | 2,118 | package lwjar.build;
import lwjar.cli.Command;
import lwjar.OutputDirectory;
import lwjar.packaging.ApplicationMainClass;
import lwjar.packaging.JarName;
import lwjar.packaging.PackageCommand;
import lwjar.packaging.SourceDirectory;
import lwjar.precompile.ApplicationSourceDirectory;
import lwjar.precompile.J... | 33.09375 | 91 | 0.696884 |
c8120c0010c502d3608ef34b563e0615fa69ea86 | 703 | package com.vc.medium;
import com.vc.hard.TreeNode;
import java.util.Stack;
class L285 {
public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {
Stack<TreeNode> st = new Stack<>();
TreeNode current = root, prev = null;
while(current != null || !st.isEmpty()) {
if(current... | 25.107143 | 65 | 0.459459 |
40cdbd3047babce5206d6530c2db1c0607599510 | 6,175 |
/* First created by JCasGen Tue Sep 03 12:34:17 CEST 2019 */
package de.julielab.jcore.types;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.StringArray;
import org.apache.uima.jcas.cas.TOP_Type;
/** This type refers to the likelihood aspect of epistemic... | 42.881944 | 417 | 0.733603 |
c33ba71c94a560cd7e31cf92bfdb65201c498c6a | 237 | package com.repetentia.component.csv;
import org.junit.jupiter.api.Test;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class CsvReadService {
@Test
public void readCsv() {
log.info("Reading CSV");
}
} | 18.230769 | 38 | 0.658228 |
631b398303bc7ca5b105370df88541e77368b505 | 307 | package de.domschmidt.koku.persistence.dao;
import de.domschmidt.koku.persistence.model.CustomerAppointmentSoldProduct;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CustomerAppointmentSoldProductRepository extends JpaRepository<CustomerAppointmentSoldProduct, Long> {
}
| 34.111111 | 119 | 0.872964 |
6076dc99e05003d8148cf758fd917095066b2b05 | 2,744 | /**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | 36.105263 | 150 | 0.749636 |
b830c2dc38c9828670cfd95d79a5072d0baca5ee | 376 | package de.byjoker.myjfql.database;
import de.byjoker.myjfql.util.Sorter;
import java.util.List;
public interface ColumnHandler {
void addColumn(Column column);
void removeColumn(String identifier);
Column getColumn(String identifier);
List<Column> getColumns();
List<Column> getColumns(Sorte... | 18.8 | 85 | 0.739362 |
aec69cf58b84d35c38f4e6b1b6fe8b82f48b6840 | 1,502 | package com.zl.sysadminservice.user.controller;
import com.zl.common.dto.ResultDto;
import com.zl.common.error.ErrDict;
import com.zl.common.util.MD5Util;
import com.zl.common.util.ResultUtil;
import com.zl.domain.User;
import com.zl.sysadminservice.user.service.UserService;
import org.springframework.beans.factory.an... | 30.653061 | 71 | 0.744341 |
dce5376fa76d2c4965155372e8f06eb977fa81a1 | 564 | package com.example.dealball.main.course.friends;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.dealball.R;
public class FriendsFragment extends Fragment {
@Override
public View... | 29.684211 | 89 | 0.741135 |
10a0820b4aac0c62762ba23291af546ca656346d | 494 | package lsieun.basic.d_socket;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
public class A_Instance_Connecting {
public static void main(String[] args) {
try {
Socket toOReilly = new Socket("www.oreilly.com", 80);
// send and receive dat... | 26 | 65 | 0.615385 |
7b5415556cb94839a9a79299268f0f50f9b409e8 | 1,349 | package com.smartsync.validator;
import com.smartsync.dto.HouseholdDTO;
import com.smartsync.dto.UserAndHouseholdDTO;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
/**
* @author Jack Meyer (jackcmeyer@gmail.com)
*
* Validates the add user process
*/
public class Us... | 29.977778 | 99 | 0.676056 |
71ed9b92c4ab80ddd566bf3e4d7de205d504b218 | 3,022 | package com.chosencraft.www.modreqrevised.commands;
import com.chosencraft.purefocus.Chat;
import com.chosencraft.www.modreqrevised.Permissions;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.defaults.BukkitCommand;
public class ModReqCommand extends BukkitCom... | 43.797101 | 215 | 0.58769 |
fe1c35c782de08522ba477058be5d00edb6c7af7 | 4,503 | package com.malmstein.yahnac.settings;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import com.google.android.material.snackbar.Snackbar;
import android.view.View;
import com.google.android.gms.appinvite.AppInvite;
im... | 37.840336 | 172 | 0.707306 |
12632e8bce9ae9ab6abca2f135bbe38670fd3272 | 71 | package mn.btgt.safetyinst.database;
public class UsersDataSource {
}
| 14.2 | 36 | 0.802817 |
402a0e970fc2458710e57a757f415e58eaf03919 | 920 | package seedu.address.ui;
import static java.util.Objects.requireNonNull;
import javafx.fxml.FXML;
import javafx.scene.layout.Region;
import javafx.scene.text.Text;
/**
* The UI component that is responsible for displaying CAP.
*/
public class SemBox extends UiPart<Region> {
private static final String FXML = ... | 23 | 70 | 0.665217 |
e204a5fc390f6811738c2cb3c9a6cde95ab7a672 | 3,383 | package io.split.android.client.storage.events;
import androidx.annotation.NonNull;
import com.google.gson.JsonParseException;
import java.util.List;
import io.split.android.client.dtos.Event;
import io.split.android.client.storage.db.EventDao;
import io.split.android.client.storage.db.EventEntity;
import io.split.... | 32.219048 | 168 | 0.710316 |
19c97205edbd8952c80aa7ea1cc7465319781daf | 1,191 | package net.chiappone.unix.remote.command;
import net.chiappone.unix.CommandResult;
import net.chiappone.unix.UnixCommander;
import net.chiappone.unix.remote.json.JsonRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
/**
* Catch-all Unix command. Th... | 26.466667 | 96 | 0.698573 |
efed314996ea93e78b6bfbb236b7f9bc4ebbbaf1 | 9,579 | package com.daxiang.taojin.ui;
import android.Manifest;
import android.app.AlertDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.BitmapFactory;
import... | 37.127907 | 149 | 0.607997 |
4f0e0b8a606f50f0aeb9327b98900613ef342b20 | 1,900 | package com.example.rh.ec.sign;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.example.rh.core.app.user.AccountManager;
import com.example.rh.ec.database.DatabaseManager;
import com.example.rh.ec.database.UserProfile;
/**
* @author RH
* @date 2018/10/20
*/
public class SignHa... | 36.538462 | 88 | 0.693684 |
5fcbb70d6680d4fffcfbf3b8dd91e922fda5c13b | 1,760 | package org.xfh.mid.db.po;
import java.util.Date;
/**
* 用于保存不确定上传文件数的附件.
*
* @author cys
*
*/
public class UploadAttach{
public static final String BACK_USER_AVATAR = "BACK_USER_AVATAR"; // 用户头像
public static final String PRODUCT_BRAND_LOGO = "PRODUCT_BRAND_LOGO"; // 品牌logo
public static final String P... | 17.087379 | 96 | 0.692614 |
2d59d7e4763ad8464918ae2162ced834f6d0b3e2 | 5,069 | /*
* Copyright (c) 2021 Huawei Device Co., 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 ... | 38.112782 | 110 | 0.698165 |
7013c76d7d26633e349260af2cec45f5f939dd31 | 8,339 | package com.shuyu.gsyvideoplayer.render.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.SurfaceTexture;
import android.util.AttributeSet;
import android.view.Surface;
import android.view.TextureView;
import android.view.View;
import android.... | 29.157343 | 157 | 0.656194 |
99c5ceae1bf4b0cf2047c3fe9c6a5f03b24ea068 | 1,221 | /*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.tools.jaotc.collect.jar;
import jdk.tools.jaotc.collect.ClassSource;
import jdk.tools.jaotc.co... | 20.694915 | 110 | 0.682228 |
dfea64f221030d87aa9f59636646750e1ebb28c7 | 1,248 | package com.satyam.operation.search;
/**
1. Find index of middle element
2. Compare middle element with its neighbours (if neighbours exist)
3. If middle element is not peak and its left neighbor is greater than it,then left half must have a peak element
4. If middle element is not peak and its right neighbor is ... | 28.363636 | 117 | 0.525641 |
603c79e73817f86164c779820b49c323157cb986 | 502 | package de.uni_koeln.info.data;
public class UnscoredAnswer {
private final long id;
private final String answer;
private final long questionId;
public UnscoredAnswer(long id, long questionId, final String answer) {
this.id = id;
this.questionId = questionId;
this.answer = answe... | 17.928571 | 74 | 0.635458 |
66fc3a0a986d76936d7fcb2ae93231da9ba10d5b | 225 | package com.buildupchao.algorithm.leetcode.leveliterate;
/**
* @author buildupchao
* @date 2020/11/25 18:27
* @since JDK 1.8
*/
public class LevelOrderBottomExample {
// public List<List<Integer>> levelOrderBottom
}
| 18.75 | 56 | 0.728889 |
59f3bcb96fa4058d41284a927ffcbdc0b6139ed1 | 777 | package com.zxkuba.reservationapp.mapper;
import com.zxkuba.reservationapp.domain.currency.FixerCurrencyRateDto;
import com.zxkuba.reservationapp.entity.currency.FixerCurrencyRate;
import org.springframework.stereotype.Component;
@Component
public class FixerCurrencyRateMapper {
public FixerCurrencyRate mapToFix... | 35.318182 | 95 | 0.761905 |
1acfb80fd9c727b579a91287a507aeac0b7593eb | 1,537 | package integration;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.junit.jupiter.api.extension.ConditionEvaluationResult;
import org.junit.jupiter.api.extension.ExecutionCondition;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.extension... | 36.595238 | 100 | 0.721535 |
23826875dfffaad9a91ecefc40c97bb662e9a290 | 84 | @Override
protected String getDefaultLogConfig() {
return "sales-logback.xml";
} | 21 | 40 | 0.75 |
7af586f5b6fdf490422d2581ba16c7365d9ec954 | 1,313 | package com.goldendance.client.test;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.goldendance.client.R;
import java.util.ArrayList;
/**
* Created by Hemingway1014@gmail.com on 2... | 25.25 | 95 | 0.718203 |
a8a810fa95c12eb5c2fcd105921c8f26368abec4 | 4,229 | /*
* Copyright 2020 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 applicab... | 32.782946 | 88 | 0.646961 |
b0f6bfbfa490f53cb057be6f7e4e50984c65439a | 759 | package cn.e3mall.order.pojo;
import java.io.Serializable;
import java.util.List;
import cn.e3mall.pojo.TbOrder;
import cn.e3mall.pojo.TbOrderItem;
import cn.e3mall.pojo.TbOrderShipping;
/**
* @date 2017年11月7日上午10:55:52
* @Description: TODO
* @authorAdministrator
*/
public class OrderInfo extends TbOrder impleme... | 23.71875 | 65 | 0.801054 |
9a33d80ebb72b47cf52644530357ccb8918addb5 | 50,053 | /*
* Copyright (C) 2014 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... | 38.561633 | 100 | 0.625537 |
56e9f83e8b2ef548541401e4d0e7a2a75c7226f9 | 141 | package com.shakeup.setgamelibrary.enums;
/**
* Created by Jayson on 2/15/2017.
*/
public enum CardShape {
OVAL, DIAMOND, SQUIGGLE
}
| 14.1 | 41 | 0.695035 |
6e879131d88ea44aee644e3bda2d6bcdcb1bb74d | 2,191 | package com.testdroid.api.dto;
import com.testdroid.api.APIEntity;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;
import static com.testdroid.c... | 38.438596 | 104 | 0.612506 |
676b3ecd88a780edf6795ed54b82acb28920f780 | 2,652 | package com.camunda.consulting.selfhealing_incident_handler_plugin;
import org.apache.ibatis.logging.LogFactory;
import org.camunda.bpm.engine.ProcessEngineException;
import org.camunda.bpm.engine.runtime.Incident;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.test.ProcessEngineR... | 31.2 | 140 | 0.749246 |
2f151d00cfb4fcfead984163b57043ba6f34573d | 385 | package no.cantara.jau.duplicatehandler;
import org.testng.annotations.Test;
import java.io.IOException;
public class UnixProcessExecutorTest {
@Test
public void shouldKillProcessByProcessName() throws IOException, InterruptedException {
ProcessExecutor processExecutor = new UnixProcessExecutor();
... | 25.666667 | 91 | 0.774026 |
3dabd0eed86752a8887ffe9ebc251c7ebce307e3 | 4,619 | package uk.gov.hmcts.reform.fpl.service.orders.generator;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.reform.fpl.model.order.Order;
import java.util.List;
import java.util.Map;
import java.ut... | 52.488636 | 120 | 0.798874 |
c4d60b429e6cd12bd426bd3a392a056b1f7b374f | 995 | package org.kuali.ole.describe.keyvalue;
import org.kuali.rice.core.api.util.ConcreteKeyValue;
import org.kuali.rice.core.api.util.KeyValue;
import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
import org.kuali.rice.krad.uif.view.ViewModel;
import java.util.ArrayList;
import java.util.List;
/**
... | 33.166667 | 96 | 0.708543 |
dde46ffb89dea9534d0f067a1774a4bb6f5fc3e4 | 1,959 | package tutoraid.logic.parser;
import static java.util.Objects.requireNonNull;
import static tutoraid.logic.parser.CliSyntax.PREFIX_LESSON;
import static tutoraid.logic.parser.CliSyntax.PREFIX_STUDENT;
import java.util.ArrayList;
import tutoraid.commons.core.Messages;
import tutoraid.commons.core.index.Index;
import... | 41.680851 | 108 | 0.745789 |
b79c5c71ba37ea3cb25dfc0e3280c10927dc7faa | 817 | package beans;
public class User {
private String userID;
private String userPassword;
private String userName;
private String userAdd;
private String userTel;
public String getUserID() {
return userID;
}
public void setUserID(String userID) {
this.userID = userID;
}
public String getUserPassword() {
... | 18.155556 | 51 | 0.724602 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.