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 |
|---|---|---|---|---|---|
4afc1d10c6a1b992c4db2b56047971c6a9f7297e | 861 | public class Solution {
public List<List<String>> groupAnagrams(String[] strs) {
Map<String, List<String>> map = new HashMap();
int n = strs.length;
for (String s : strs) {
char[] chars = s.toCharArray();
Arrays.sort(chars);
String keyStr = String.valueOf(... | 30.75 | 75 | 0.509872 |
bb3e3d5a6cb7561b12532ed591732ce93a614d9b | 2,583 | package cn.jungmedia.android.ui.user.presenter;
import cn.jungmedia.android.ui.user.bean.UserInfo;
import cn.jungmedia.android.R;
import cn.jungmedia.android.ui.user.presenter.UserContract.LoginPresenter;
import com.leon.common.basebean.BaseRespose;
import com.leon.common.baserx.RxSubscriber;
/***
*
* @Copyright 2... | 28.7 | 122 | 0.577236 |
79fef2838fb7563a6b7e92cabad023e3ee4ef62a | 217 | package com.cisco.restAPI.repository;
import com.cisco.restAPI.dataObjects.Task;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TaskRepository extends JpaRepository<Task,Integer> {
}
| 27.125 | 69 | 0.83871 |
c461b1356c76c2dab038e03dc133d131c46a46fd | 3,081 | package com.example.mybatis.demomybatis.algorithms;
import lombok.extern.slf4j.Slf4j;
/**
* 归并排序是稳定的:时间复杂度nlogn
* 相较于{@link MergeSort},不使用辅助数组
* @author jacksparrow414
* @date 2021/3/6
*/
@Slf4j
public class AdvancedMergeSort {
/**
* 不允许使用辅助数组,如何判断到了递归的终止条件处?
* 只能根据现有条件来找思路。
* 现在只有一个数组,能找... | 33.857143 | 75 | 0.614411 |
30a97d4409c8c2c597e5a62170dee0e5200d6da9 | 1,425 | package com.ivsom.ops.app.service;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;
import com.jess.arms.utils.LogUtils;
/**
* @author HanN on 2019/11/5 11:38
* @email: 1356548475@qq.com
* @project mvparms
... | 21.590909 | 62 | 0.600702 |
f87c265303e67ca6e2ea6aa35730d40f39673751 | 501 | /**
* https://leetcode.com/problems/find-peak-element/
* https://leetcode.com/problems/find-peak-element/solution/
*/
class Solution {
public int findPeakElement(int[] nums) {
return binarySearch(nums, 0, nums.length - 1);
}
private int binarySearch(int[] nums, int left, int right) {
if (left == right... | 31.3125 | 72 | 0.650699 |
0c1cc1598453670e5469012d6ad8a03815580dba | 2,715 | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package parameter.store.app;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplicat... | 36.2 | 102 | 0.724125 |
964c476e8e619029871acf21b656b92922ac452e | 1,416 | package org.echocat.kata.java.part1.service;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.echocat.kata.java.part1.pojo.Author;
import org.echocat.kata.java.part1.pojo.Book;
import org.echocat.kata.java.part1.pojo.Magazine;
import com.fasterxml.jackson.databind.MappingIterator;
... | 32.930233 | 143 | 0.781073 |
7e5db0cd7780a88cf6598287d883d37f672721b7 | 1,105 | /*
* 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 net.iatsoftware.iat.config;
/**
*
* @author michael
*/
import org.springframework.core.annotation.Order;
import org.spring... | 30.694444 | 79 | 0.743891 |
c533e0046e13beca36a231e90f795515becdb125 | 644 | /*
* jenkins-common
*
* Copyright (c) 2021 Synopsys, Inc.
*
* Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
*/
package com.synopsys.integration.stepworkflow;
public abstract class AbstractSupplyingSubStep<R> implements ... | 30.666667 | 142 | 0.698758 |
fc574b8dc78b46c512d80fca7ec47b10dc26f769 | 2,431 | package ar.com.gorosite.tablas;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Random;
public class Main {
private static Random random = new Random(System.currentTimeMillis());
public static void main(String[] args) {
int cuantas=0;
long comienz... | 23.375 | 94 | 0.672974 |
317d9fb36145fdfebdb08cd4d93d91a8c67982dc | 375 | package ca.blarg.tiles3.basicexample.entities.events;
import com.badlogic.gdx.math.Vector3;
import ca.blarg.gdx.entities.Entity;
import ca.blarg.gdx.events.Event;
public class MoveInDirectionEvent extends Event {
public Entity entity;
public final Vector3 direction = new Vector3();
@Override
public void reset() ... | 22.058824 | 53 | 0.768 |
3f49a724e2f3da16d60c04f548efa2d1659d61fd | 227 | package com.mi.http.resource;
import java.io.Serializable;
/**
* Copyright (C) 2013, niuxiaowei Inc. All rights reserved.
*
* Created by niuxiaowei
* on 18-1-27.
*/
public interface DataProtocol extends Serializable {
}
| 17.461538 | 59 | 0.722467 |
c2044939d9e5a1088b145b6fc9fcf88594ac7a02 | 924 | package org.walkframework.shiro.web.filter.authz;
import java.io.IOException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.web.filter.authz.RolesAuthorizationFilter;
/**
* 拓展org.apache.shiro.web.filter.authz.R... | 33 | 126 | 0.766234 |
62f3d4d48e2fe435999710291b8344038c0319d5 | 863 | package mpinard.jbrains.tdd.poswo;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class DisplayTest {
private static final Barcode BARCODE = new Barcode("12345");
@Test
public void displayBeforeAnyBarcodeReceived() {
final Display display = new Display();... | 25.382353 | 108 | 0.667439 |
29acc99e8b60af313f6a86a67624e29d12d7a710 | 3,066 | package com.acod.play.app;
import android.content.Context;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Pr... | 34.066667 | 89 | 0.589367 |
6683cd75c7bf34eb73a40232f5c0197e7aa92180 | 4,485 | package javachr.rules;
import javachr.constraints.Constraint;
import javachr.exceptions.AlreadyDefinedException;
import javachr.rules.body.Body;
import javachr.rules.body.BodyStore;
import javachr.rules.guard.Guard;
import javachr.rules.head.Head;
import java.util.List;
/**
* The type of rule that just adds new con... | 33.721805 | 117 | 0.668004 |
ebad38b8a0368e93e337abf682507e6f8fc9dfdb | 1,726 | package wiki.tony.chat.logic.service;
import com.google.protobuf.InvalidProtocolBufferException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.stereotype.Component;
import... | 30.821429 | 102 | 0.70394 |
cc4be6221bc4d465e5738f8a21422f4f8f98fcd3 | 732 | /*
* @author Anna Balazinska (abalazinska@hotmail.com)
*/
package marek.client.table;
import java.util.ArrayList;
import java.util.List;
import marek.client.model.LoginInfo;
public class LoginDataSource {
private final List<LoginInfo> loginL;
private List<String> loginHeader;
public LoginDataSo... | 20.914286 | 55 | 0.693989 |
0c6b759e2ccef963ae43a31376308ae0d9d7def0 | 2,091 | package com.daya.logger.sample.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TabHost;
import com.... | 29.450704 | 87 | 0.692013 |
bd402420419b85f8dbff2f45e0f0e565888d96cc | 17,883 | /**
* MIT License
*
* Copyright (c) 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, ... | 39.476821 | 304 | 0.650394 |
d4380a9edded2dfde78fb8b8deb6b79f6710e2e3 | 980 | package com.greenfield.SpEL.domain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
... | 22.272727 | 78 | 0.757143 |
189cab11417f546d7597a899e043e0974e294e0c | 64 | package com.kaizenko.vendingmachine;
public class Product {
}
| 10.666667 | 36 | 0.78125 |
da18f62f10cd669f75c6e1c4ff36c62607119a08 | 659 | package bernard.problem;
public class NoOfBrief {
static void minimumBribes(int[] q) {
int count=0;
for(int i=0; i< q.length-1 ;i++){
if(q[i+1]<q[i]){
int diff=q[i]-q[i+1];
if((q[i]- (i+1+2))>2){
System.out.println("Too chaotic");
... | 23.535714 | 54 | 0.37481 |
ddb2ff07a63611772c56bfcf6284e175fd74a9eb | 877 | package com.kymjs.arty.module.base;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
/... | 26.575758 | 123 | 0.751425 |
94099ebd866e2aba97dcc238245dbe053d251075 | 1,993 |
/*
* Copyright (c) 2019. http://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 applicabl... | 34.964912 | 101 | 0.755143 |
202a0fe475dd063ad485a5486194cda8821b882a | 1,182 | package com.ezextended.registry;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.ItemModelMesher;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fml.relauncher.Side;
import net... | 31.105263 | 147 | 0.778342 |
0bdd253b4a6b25d756d8d4cb6551666d9a2938f7 | 346 | package org.robolectric.shadows;
public class ShadowAClassWithoutShadowOfAssert extends AbstractShadowAClassWithoutShadowOfAssert<ShadowAClassWithoutShadowOfAssert, ShadowAClassWithoutShadowOf> {
public ShadowAClassWithoutShadowOfAssert(ShadowAClassWithoutShadowOf actual) {
super(actual, ShadowAClassWithoutSha... | 34.6 | 162 | 0.869942 |
de2ac1c47cabd31b314b15ecfb97748bb0858eb5 | 2,118 | package com.ibm.webapi;
import javax.enterprise.context.ApplicationScoped;
// Tenant
//import io.quarkus.oidc.TenantResolver;
import io.quarkus.oidc.TenantConfigResolver;
import io.quarkus.oidc.OidcTenantConfig;
import io.vertx.ext.web.RoutingContext;
// ConfigProperties
import org.eclipse.microprofile.config.inject... | 38.509091 | 143 | 0.680359 |
bc9df2564bfc34900f1785643d65209b7e4e1b15 | 3,758 | /**
* Copyright 2014-2015 Joshua Asbury (@theoriginalbit)
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless req... | 26.27972 | 146 | 0.636243 |
ea278787dcf01d1a3cacd54ff2633f4b85e3c94b | 1,872 | package br.com.zupacademy.fabio.casadocodigo.controller;
import br.com.zupacademy.fabio.casadocodigo.controller.dto.ClienteDto;
import br.com.zupacademy.fabio.casadocodigo.controller.form.ClienteForm;
import br.com.zupacademy.fabio.casadocodigo.entity.Cliente;
import br.com.zupacademy.fabio.casadocodigo.repository.Cli... | 41.6 | 100 | 0.797543 |
10abecf8ace09c560e3534b598ef29aca09f6530 | 1,939 | package paycalc;
import java.nio.charset.StandardCharsets;
import org.apache.commons.codec.binary.Base64;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apac... | 35.907407 | 99 | 0.75606 |
5a4ca78fff858de29a9c14c93eced8d16fc960b8 | 1,648 | package at.renehollander.advancedmanager.block.base;
import at.renehollander.advancedmanager.Reference;
import at.renehollander.advancedmanager.creative.AwesomeModCreativeTab;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraftforge.fml.common.registry.GameRegistry;
imp... | 28.413793 | 103 | 0.688714 |
0480c9a46bddc69df077202cfa5e4a6b3404ef0f | 4,023 | package es.ucm.fdi.tp.view;
import java.awt.Color;
import es.ucm.fdi.tp.base.model.GameState;
import es.ucm.fdi.tp.ttt.TttAction;
import es.ucm.fdi.tp.ttt.TttState;
public class TableTtt extends Table {
int numOfRows = 3;
int numOfCols = 3;
private GameView grande;
// Tablero
private GameState... | 21.745946 | 122 | 0.637832 |
84119a8f6cbf13b3e0d880f461cb07e85a2ebaa8 | 1,984 | package codeforces.round_650_699.round_657;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public final class C {
public static void main(String[] args) {
final Scanner in = new Sc... | 34.807018 | 93 | 0.410282 |
82ef5725cb1e9b8b764e8ae5164d0e6fc3559d09 | 8,592 | package com.paypal.integ.odak.stmts;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import... | 23.096774 | 112 | 0.767225 |
261510acf3e735c92b410f552f23c06c5911055b | 8,683 | /*
* 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.93722 | 153 | 0.640908 |
3621f2ef72f414e3a1a872aed3e55276778bbb00 | 1,005 | package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BasWord;
/**
* wordService接口
*
* @author ruoyi
* @date 2020-08-06
*/
public interface IBasWordService
{
/**
* 查询word
*
* @param id wordID
* @return word
*/
public BasWord selectBasWordById(... | 16.209677 | 60 | 0.553234 |
6a166ba81ea7359aa4d31b0bad0379d6f2e514a0 | 4,736 | package fitaview.automaton.transition;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import fitaview.Pair;
import fitaview.Triple;
import fitaview.automaton.Variable;
public abstract class Transitions<K, V>
{
protected Map<Pai... | 32.438356 | 105 | 0.653927 |
33606a51adb2143b84ebff71055ccb459137127e | 1,324 | package legacyfeed;
import java.util.HashMap;
import java.util.Map;
public class SimpleMessage {
String name;
Map<String,String> values = new HashMap<String, String>();
public SimpleMessage(String name) {
this.name = name;
}
public void put(String attribute, String value) {
values.put(attribute, value);... | 20.6875 | 68 | 0.701662 |
91cc2153ad80f58e7db2a6a4ec9b278799362c3f | 1,580 | package com.song.deviceinfo.ui.partitions;
import com.song.deviceinfo.model.beans.PartitionsBean;
import com.song.deviceinfo.ui.base.BaseAdapter;
import com.song.deviceinfo.ui.base.BaseFragment;
import com.song.deviceinfo.ui.base.BaseViewModel;
import com.song.deviceinfo.utils.LogUtils;
import com.song.deviceinfo.util... | 28.727273 | 74 | 0.648101 |
5e8277f859d6775e0ce547f10c5c4fa8a0d21589 | 1,498 | package de.quinscape.exceed.runtime.template;
import com.google.common.collect.ImmutableMap;
import de.quinscape.exceed.runtime.util.RequestUtil;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Map;
import static org.hamcrest.MatcherAssert.*;
import static or... | 37.45 | 104 | 0.622163 |
e4735a0934a7f7bf6fc9c0af89d619324628adac | 923 | package com.example.activitytest.view;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.activitytest.R;
import com.example.activitytest.view.BaseActivity;
import java.util.List;
public class random1Activity extends BaseActivity {
... | 23.666667 | 58 | 0.655471 |
b97baf4627f58a3958ea39ef63e931ca8386a20a | 1,918 | /*
* Copyright (c) 2020. Yuriy Stul
*/
package com.stulsoft.pjava.basics.optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
/**
* Playing with Optional
*
* @author Yur... | 27.797101 | 89 | 0.605318 |
d1968928ea43bed2fcf39b2366cfe61613253763 | 968 | package net.java.main.factories;
import net.java.main.enums.UnitType;
import net.java.main.interfaces.Position;
import net.java.main.interfaces.Unit;
import net.java.main.models.PositionImpl;
import net.java.main.models.units.Carrier;
import net.java.main.models.units.Marine;
public final class UnitFactory {
pri... | 28.470588 | 102 | 0.665289 |
20e089893218073e8172554652cd7a990a86810c | 3,150 | /*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.hybris.ymkt.recommendationwebservices.validators;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.times;
import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.cms2.mod... | 36.627907 | 104 | 0.815873 |
bed5aaffd0f93c65054825dc000241f8852de014 | 537 | package com.duff.animation;
/**
* Created by dingfeng on 2017/6/15.
*/
public class WipeDirection {
public final static int LEFT_TO_RIGHT = 0; // 从左向右
public final static int RIGHT_TO_LEFT = 1; // 从右向左
public final static int TOP_TO_BOTTOM = 2; // 从上到下
public final static int BOTTOM_TO_TOP = 3; // 从... | 29.833333 | 62 | 0.696462 |
fe8ba4c32ef6f5a8ae94123e776d111c93c96dcf | 12,949 | /*
* This file is part of Baritone.
*
* Baritone 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) any later version.
*
* Baritone is distrib... | 50.980315 | 199 | 0.558267 |
2c1524dd54c3ac7e5f18191622632c04005b6cb0 | 753 | package ss.parser.mail;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.mail.internet.InternetAddress;
import java.time.Duration;
@Getter
@Sette... | 24.290323 | 75 | 0.739708 |
931a97adfe28652a78cff17a79850c1ed96c9d3f | 1,098 | package ramdan.file.line.token.listener;
import ramdan.file.line.token.Line;
import ramdan.file.line.token.Tokens;
import ramdan.file.line.token.callback.Callback;
import ramdan.file.line.token.handler.DefaultLineTokenConverter;
import ramdan.file.line.token.handler.LineTokenConverter;
public class TokensCallbackLine... | 29.675676 | 95 | 0.700364 |
afa1cc84b738e4ce9771ca7ea257a5c9dd3dd510 | 1,382 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.reference;
import java.util.List;
import org.joda.time.DateTime;
import java.io.Serializable;
import com.fasterxml... | 28.204082 | 218 | 0.748191 |
d69808989e33c85d8143ae227d882ca6a53c9fa2 | 6,715 | /*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 37.099448 | 150 | 0.658228 |
3132eb877c13e0568b2de77455417711c5fec456 | 4,897 | package io.choerodon.iam.infra.annotation;
import io.choerodon.core.exception.CommonException;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.PropertyAccessorFactory;
import org.springframework.core.MethodParameter;
import org.springframework.... | 43.336283 | 175 | 0.630182 |
0f2b907108cac50328bc295b8b441e7301d2dc12 | 2,340 | 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 javax.validation.Valid;
/**
* BQOutboundInitiateOutputModelOutboundInstanceRecord
*/
publ... | 34.411765 | 306 | 0.806838 |
236e04b8201f8e3f19d1c522405770b73405c994 | 968 | package com.pharmacySystem.DTOs;
import com.pharmacySystem.model.grade.GradeType;
public class CreateGradeDTO {
private Long patientId;
private Long gradedId;
private GradeType gradeType;
private int grade;
public CreateGradeDTO() {
}
public CreateGradeDTO(Long patientId, Long gradedId, GradeType gradeTy... | 17.925926 | 87 | 0.725207 |
6df5e9dd9cb276aed134ad69d572a1fdb751f76d | 179 | package br.acme.exception;
@SuppressWarnings("serial")
public class CpfInvalidoException extends Exception{
public CpfInvalidoException(String msgErro){
super(msgErro);
}
}
| 17.9 | 52 | 0.793296 |
51db7eb606171af45d1894c901978797d545e243 | 2,967 | package com.thaidt.testopencv;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.B... | 38.532468 | 121 | 0.675093 |
bb5468935c0475b3a6e2f3f807264d497b5fc169 | 3,703 | package com.gempukku.swccgo.cards.set5.dark;
import com.gempukku.swccgo.cards.AbstractUsedOrLostInterrupt;
import com.gempukku.swccgo.cards.GameConditions;
import com.gempukku.swccgo.cards.effects.CancelWeaponTargetingEffect;
import com.gempukku.swccgo.common.CardSubtype;
import com.gempukku.swccgo.common.Icon;
import... | 42.563218 | 210 | 0.644072 |
6c75f8a0b0a7c20ce5815677960e59a75a29674a | 7,088 | /*
* 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
* distribut... | 44.3 | 163 | 0.709227 |
a42674385cadc2a0b59d00716446bdd4433e831f | 810 | package com.sercapnp.lang;
/**
* Created by striky on 6/26/17.
*/
import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.*;
import javax.swing.*;
public class CapnpFileType extends LanguageFileType {
public static final CapnpFileType INSTANCE = new CapnpFileType();
priv... | 17.608696 | 69 | 0.639506 |
525435dab43b0172275626f102cd0960f49fe625 | 329 | package com.rajesh.spring.core;
public class OldRunner {
public static void main(String[] args) {
HelloBean1 bean1 = new HelloBean1();
bean1.setMessage("Hello World !!");
bean1.sayHello();
HelloBean2 bean2 = new HelloBean2();
bean2.setMessage("Hello World !!");
bean2.setPerson("Rajesh");
bean2.sayHell... | 21.933333 | 41 | 0.693009 |
8643bbf722bc2edc06540c6cae8e22775e1e710b | 567 | package plugins.haesleinhuepf.implementations.generated;
import plugins.haesleinhuepf.AbstractCLIJ2Block;
import net.haesleinhuepf.clij2.plugins.DivideByGaussianBackground;
// this is generated code. See src/test/java/net/haesleinhuepf/clicy/codegenerator for details
public class CLIJ2_DivideByGaussianBackgroundBlock e... | 37.8 | 94 | 0.790123 |
29b19cb6de9248ef931916a641fe15984adb620c | 5,068 | package net.qreact.app.apprate;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.util.Log;
import android.view.View;
import android.widget.RatingBar;
import androidx.annotation.NonNull;
public final class QreactRate {
... | 30.715152 | 109 | 0.588003 |
721f5382c47436c240a2e56cfc27ec8584792c81 | 5,240 | import java.io.*;
import java.util.*;
class WordPuzzle {
public static void main(String[] args) {
new WordPuzzle().run();
}
class $R {
InputStream in; byte b; byte[] buf; int bi, bz;
$R(InputStream I) { in=I; buf=new byte[65536]; bi=bz=0; read(); }
boolean hasNext() { skip(... | 34.248366 | 78 | 0.422328 |
a431503f5993fe471568f5fc6288b01327ca7789 | 24,876 | package com.dwarfeng.tpnclib.core.control;
import java.net.URL;
import java.util.Arrays;
import java.util.Collections;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Set;
... | 28.925581 | 118 | 0.696133 |
5e1dc5bd289c3f3dd4f294685fdc126fde10da14 | 1,805 | package view.buttons;
import units.Status;
import view.labels.ArmyInfoLabel;
import javax.swing.*;
import java.awt.*;
public class ArmyButton extends CustomToggleButton {
private Status status;
private String cityName;
private ImageIcon image;
private final ArmyInfoLabel armyInfoLabel;
public A... | 28.650794 | 95 | 0.628255 |
a77dc8fd2d14defe83d5213993272ded18e76d19 | 7,065 | /*
* Copyright (C) 2005-2020 Gregory Hedlund & Yvan Rose
*
* 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... | 26.36194 | 123 | 0.6661 |
09e520a68acc6144d5e4b28f37ea8c8bedc27699 | 1,325 | /**
* Copyright (c) 2014, by the Authors: Antonio Sanchez (UBC)
*
* This software is freely available under a 2-clause BSD license. Please see
* the LICENSE file in the ArtiSynth distribution directory for details.
*/
package artisynth.core.mfreemodels;
import maspack.render.RenderProps;
import artisynth.core.mod... | 25.980392 | 80 | 0.673208 |
af347c0ad31545524ed13a6dc98966f5a6c18d85 | 5,603 | package com.centurylink.mdw.service.data.process;
import com.centurylink.mdw.dataaccess.DataAccessException;
import com.centurylink.mdw.dataaccess.DatabaseAccess;
import com.centurylink.mdw.dataaccess.DocumentDbAccess;
import com.centurylink.mdw.model.event.EventInstance;
import com.centurylink.mdw.model.event.EventWa... | 33.753012 | 104 | 0.798679 |
193d71f4be034ef5e1a45caecec5541dc7ff3516 | 2,098 | package com.example.demo.controller;
import java.util.List;
import java.util.Optional;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.Response... | 31.787879 | 114 | 0.791706 |
5c79f5fff2dee3b93c864bed911839ba7f5f8a73 | 693 | package com.atusoft.infrastructure;
import java.time.LocalDateTime;
import com.atusoft.util.Util;
import lombok.Data;
@Data
public class BaseEvent {
String eventId=Util.getUUID();
LocalDateTime timestamp=LocalDateTime.now();
protected String businessId; // from client
protected String causeEventId; //event ... | 20.382353 | 64 | 0.735931 |
8cb8382885f4e41b0a98e2c72b4b38e7faa6489b | 6,099 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | 44.518248 | 147 | 0.742417 |
0f03719d1f04821185bd4d79a0ed3ac9101d97ef | 2,285 | package com.zm.json;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
/**
* Created by Administrator on 2017/3/15.
*/
public class JsonAnalysis {
public static void main(String[] args){
String json = "{aa:11,bb:{cc:{dd:22}},ee:{ff:'33',gg:44}}";
if (json.length() - json... | 27.53012 | 108 | 0.461269 |
2d05f6d6a7a27d0d7be1ed119f9faf73a1090422 | 3,939 | package nl.tudelft.jpacman.level.specialpellet;
import nl.tudelft.jpacman.board.Direction;
import nl.tudelft.jpacman.board.Unit;
import nl.tudelft.jpacman.level.Level;
import nl.tudelft.jpacman.level.Player;
import nl.tudelft.jpacman.npc.Ghost;
import nl.tudelft.jpacman.npc.ghost.Navigation;
import nl.tudelft.jpacman.... | 34.552632 | 120 | 0.667428 |
4f3018038ef6a47b7f8876e4181aac11ece2df49 | 5,899 | package ro.pub.cs.systems.eim.lab04.contactsmanager;
import java.util.ArrayList;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.view.Menu;
import android.view.MenuItem;
import android.... | 35.969512 | 112 | 0.748771 |
c016ec2d4b97257b1003336af96c8088633282db | 396 | package com.example.demo.cipher.keypair.service;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;
import com.example.demo._domain.KeyPairPEM;
public interface IKeyPairGeneratorProvider {
KeyPair generateKeyPair();
KeyPairPEM generateKeyPairPEM(PublicKey publicKey, Pr... | 23.294118 | 75 | 0.833333 |
216d5fc5dbf651ae1b5fe0e66d4c77927df34356 | 1,115 | package ddd;
import ddd.application.service.pedidocasamento.PedidoCasamentoService;
import ddd.domain.pedidocasamento.command.PedidoCasamentoCriarCommand;
import ddd.domain.pedidocasamento.command.PedidoCasamentoMarcarEmAndamentoCommand;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframewor... | 29.342105 | 121 | 0.827803 |
6cda1ee5b27137b7fa0075196fc44df97310e716 | 1,663 | package common.toolkit.java.util;
import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Description:一个统计程序,用于统计压力测试时候的TPS计算
*
* @author 银时 yinshi.nc@taobao.com
*/
public class StatisticsUtil {
private static Log ... | 24.820896 | 139 | 0.669874 |
5eb5ed2f843fb4109c9e2cccf90ab34602ca4bec | 2,856 | package de.codingair.codingapi.player.gui.inventory.gui.simple;
import de.codingair.codingapi.player.gui.inventory.gui.GUI;
import de.codingair.codingapi.player.gui.inventory.gui.itembutton.ItemButton;
import de.codingair.codingapi.player.gui.inventory.gui.itembutton.ItemButtonOption;
import de.codingair.codingapi.ser... | 26.691589 | 83 | 0.660014 |
e8ad5dd767acb9f1d075e41282bee66c0e29edc2 | 3,542 | package uk.gov.companieshouse.orders.api.util;
import uk.gov.companieshouse.orders.api.model.TimestampedEntity;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.core.... | 40.712644 | 135 | 0.705816 |
6bfd3a007be7d39600b0736529bc30077bbc476b | 5,532 | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | 45.719008 | 99 | 0.690709 |
abb66b48c8fcb369217b4e673aa680532dce3d28 | 1,161 | /*
Copyright 2015 Software Freedom Conservancy
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 wri... | 25.23913 | 88 | 0.740741 |
023ff3878642870f6b2e23e41033edc147e61167 | 1,126 | /*
* Copyright 2019 The JIMDB 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 agr... | 33.117647 | 74 | 0.746004 |
b1c1f39df416da4f63d0c55ad5145ea61e11910c | 6,325 | /*
* Copyright (c) 2021 Tobias Briones. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* This file is part of Course Project at UNAH-MM545: Distributed Text File
* System.
*
* This source code is licensed under the BSD-3-Clause License found in the
* LICENSE file in the root directory of this... | 35.533708 | 102 | 0.67004 |
9d4fa6ace3cfd25ba35992c4a7ec325ea2fb3fb6 | 778 | package jp.chang.myclinic.recordbrowser.tracking.modelold;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import jp.chang.myclinic.dto.ConductShinryouDTO;
import jp.chang.myclinic.dto.ShinryouMasterDTO;
public class ConductShinryou {
private int conductShinryouId;... | 25.933333 | 78 | 0.733933 |
5b49bf22755a3d07a8716224388dc90008b56748 | 2,870 | /*
* Copyright 2017 David Karnok
*
* 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... | 28.7 | 126 | 0.597213 |
03f84febb5af76a7ea130cd0c7681cb9e8e0c1f5 | 3,276 | package ru.stq.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stq.pft.addressbook.model.ContactData;
import ru.stq.pft.addressbook.model.Groups;
import java.io.File;
import java.util.Arrays;
import java.util.stream.Collectors;
import static org.hamcre... | 40.95 | 115 | 0.632479 |
83b9ca5b3ec7217c37f274fe5c9cb189417f5502 | 3,126 | /*
* Copyright 2000-2017 Vaadin 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 agreed to... | 34.351648 | 111 | 0.680102 |
904d1f63abd001af04b7e432b5d24abc54478d46 | 3,542 | package com.wwls.modules.shoppingmall.web.goods;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
i... | 35.069307 | 109 | 0.774421 |
ba83dbb3b7b69889f6f9928e7c0199c739a37a2e | 292 | package com.ucloud.library.netanalysis.module;
/**
* Created by joshua on 2018/9/19 15:14.
* Company: UCloud
* E-mail: joshua.yin@ucloud.cn
*/
public enum UCSdkStatus {
/** 注册模块成功 */
REGISTER_SUCCESS,
/**
* appKey或者appSecret无效
*/
APPKEY_OR_APPSECRET_ILLEGAL,
}
| 18.25 | 46 | 0.657534 |
7acb1b4af325b83ab2005fb3a68d9ead167e9c74 | 682 | package switchtwentytwenty.project.domain.aggregates.ledger;
import org.junit.jupiter.api.Test;
import switchtwentytwenty.project.domain.valueobject.ID;
import static org.junit.jupiter.api.Assertions.*;
class TransferTest {
@Test
void temporaryConstructorTest() {
Transfer transfer = new Transfer();
... | 23.517241 | 60 | 0.664223 |
c526108b2e762ac78ec15cd0c937b3731ce66a5d | 1,873 | package se.basile.compax;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.Observable;
import java.util.Observer;
import se.basile.compax.nmea.ECRMB;
import se.basile.compax.nmea.SentenceAbstr;
import se.basile.compax.nmea.YDHDM;
public class Bearing implements Observer {
privat... | 28.378788 | 105 | 0.675387 |
fdbb83b0e0030c1d9f3e56b543a64d489e476b59 | 824 | package io.github.wrobezin.eunha.data.entity.rule;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDateTime;
import java.uti... | 20.6 | 62 | 0.725728 |
9ff678e73e8f27b81767eb884264bc2959d53c50 | 2,495 | package com.bughunters.site.ems.controller;
import com.bughunters.site.ems.domain.Employee;
import com.bughunters.site.ems.service.EmplpyeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfram... | 25.459184 | 67 | 0.670541 |
54d4aa4e9fab5797f78c008ce727e85efe2b93f8 | 1,611 | package org.hisp.dhis.hr.action.indicator;
import java.util.ArrayList;
import java.util.Collection;
import org.hisp.dhis.hr.AggregateAttribute;
import org.hisp.dhis.hr.AggregateAttributeService;
import org.hisp.dhis.hr.Attribute;
import org.hisp.dhis.hr.AttributeService;
import com.opensymphony.xwork2.Action;
publi... | 27.775862 | 101 | 0.517691 |
313fb345ba34b3e014a8694611483cab5b739a50 | 8,398 | /*
* $Id: TestCopyFormToContext.java 376714 2006-02-10 14:50:57Z husted $
*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 34.846473 | 122 | 0.68552 |
7334d5e4e174a55dbb1bc51ccfa3f8f81af0b8be | 749 | /*
* File: SymbolTableError.java
*
* Desc: contains the errors associated with
* symbol table routines.
*/
package main.java.table.errors;
/**
* SymbolTableError
* @author Luis Serazo
*/
public class SymbolTableError extends Error{
/**
* SymbolTableError constructor
* @param msg: the erro... | 24.16129 | 95 | 0.672897 |
0ba72805511ddad6170dabbe7c31f2311b0e245c | 4,269 | package calcmalc.structures;
import org.junit.Test;
import static org.junit.Assert.*;
public class ListTest {
@Test
public void testListIsCreatedWithCorrectSize() {
List<Integer> list = new List<>();
assertEquals(list.getSpace(), 8);
}
@Test
public void testElementCanBePushedT... | 26.68125 | 82 | 0.545561 |
266f16d8a7d7d735d07eda15f2737817058d7cc7 | 1,144 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.darkmidnight.slacklights;
/**
*
* @author anthony
*/
public class DataSingleton {
private static DataSingleton sin... | 20.428571 | 79 | 0.637238 |
cf2f6a74260ef3c0d7535f0a5ff8dd9ab54ac419 | 8,929 | /*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 41.147465 | 111 | 0.612163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.